@michengai/dsh-archive-manager 1.0.20 → 1.1.0

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/lib/client.js CHANGED
@@ -7,282 +7,7 @@ window.__ModuleLoader__.load({
7
7
  globalThis.__dshArchiveReactDOMClient = require("react-dom/client");
8
8
  var module = { exports: {} };
9
9
  var exports = module.exports;
10
- "use strict";var Ek=Object.create;var hd=Object.defineProperty;var $k=Object.getOwnPropertyDescriptor;var Ik=Object.getOwnPropertyNames;var Pk=Object.getPrototypeOf,Nk=Object.prototype.hasOwnProperty;var o=(e,t)=>hd(e,"name",{value:t,configurable:!0});var Mi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l0=(e,t)=>{for(var r in t)hd(e,r,{get:t[r],enumerable:!0})},c0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ik(t))!Nk.call(e,i)&&i!==r&&hd(e,i,{get:()=>t[i],enumerable:!(n=$k(t,i))||n.enumerable});return e};var Ti=(e,t,r)=>(r=e!=null?Ek(Pk(e)):{},c0(t||!e||!e.__esModule?hd(r,"default",{value:e,enumerable:!0}):r,e)),Mk=e=>c0(hd({},"__esModule",{value:!0}),e);var Y0=Mi(ao=>{"use strict";var Yh=Symbol.for("react.transitional.element"),Kh=Symbol.for("react.portal"),Pm=Symbol.for("react.fragment"),Nm=Symbol.for("react.strict_mode"),Mm=Symbol.for("react.profiler"),Tm=Symbol.for("react.consumer"),Om=Symbol.for("react.context"),km=Symbol.for("react.forward_ref"),Dm=Symbol.for("react.suspense"),Am=Symbol.for("react.suspense_list"),_m=Symbol.for("react.memo"),Lm=Symbol.for("react.lazy"),X0=Symbol.for("react.view_transition"),Jk=Symbol.for("react.client.reference");function gi(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yh:switch(e=e.type,e){case Pm:case Mm:case Nm:case Dm:case Am:case X0:return e;default:switch(e=e&&e.$$typeof,e){case Om:case km:case Lm:case _m:return e;case Tm:return e;default:return t}}case Kh:return t}}}o(gi,"typeOf");ao.ContextConsumer=Tm;ao.ContextProvider=Om;ao.Element=Yh;ao.ForwardRef=km;ao.Fragment=Pm;ao.Lazy=Lm;ao.Memo=_m;ao.Portal=Kh;ao.Profiler=Mm;ao.StrictMode=Nm;ao.Suspense=Dm;ao.SuspenseList=Am;ao.isContextConsumer=function(e){return gi(e)===Tm};ao.isContextProvider=function(e){return gi(e)===Om};ao.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yh};ao.isForwardRef=function(e){return gi(e)===km};ao.isFragment=function(e){return gi(e)===Pm};ao.isLazy=function(e){return gi(e)===Lm};ao.isMemo=function(e){return gi(e)===_m};ao.isPortal=function(e){return gi(e)===Kh};ao.isProfiler=function(e){return gi(e)===Mm};ao.isStrictMode=function(e){return gi(e)===Nm};ao.isSuspense=function(e){return gi(e)===Dm};ao.isSuspenseList=function(e){return gi(e)===Am};ao.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pm||e===Mm||e===Nm||e===Dm||e===Am||e===X0||typeof e=="object"&&e!==null&&(e.$$typeof===Lm||e.$$typeof===_m||e.$$typeof===Om||e.$$typeof===Tm||e.$$typeof===km||e.$$typeof===Jk||e.getModuleId!==void 0)};ao.typeOf=gi});var Q0=Mi((bW,K0)=>{"use strict";K0.exports=Y0()});var dw=Mi((o3,Hm)=>{"use strict";Hm.exports=cb;Hm.exports.isMobile=cb;Hm.exports.default=cb;var hD=/(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,bD=/CrOS/,vD=/android|ipad|playbook|silk/i;function cb(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 r=hD.test(t)&&!bD.test(t)||!!e.tablet&&vD.test(t);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf("Macintosh")!==-1&&t.indexOf("Safari")!==-1&&(r=!0),r}o(cb,"isMobile")});var Vg=Mi((AS,_S)=>{(function(e,t){typeof AS=="object"&&typeof _S<"u"?_S.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(AS,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",s="minute",a="hour",l="day",c="week",d="month",u="quarter",m="year",p="date",g="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(N){var k=["th","st","nd","rd"],D=N%100;return"["+N+(k[(D-20)%10]||k[D]||k[0])+"]"},"ordinal")},x=o(function(N,k,D){var A=String(N);return!A||A.length>=k?N:""+Array(k+1-A.length).join(D)+N},"m"),S={s:x,z:o(function(N){var k=-N.utcOffset(),D=Math.abs(k),A=Math.floor(D/60),B=D%60;return(k<=0?"+":"-")+x(A,2,"0")+":"+x(B,2,"0")},"z"),m:o(function N(k,D){if(k.date()<D.date())return-N(D,k);var A=12*(D.year()-k.year())+(D.month()-k.month()),B=k.clone().add(A,d),L=D-B<0,F=k.clone().add(A+(L?-1:1),d);return+(-(A+(D-B)/(L?B-F:F-B))||0)},"t"),a:o(function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},"a"),p:o(function(N){return{M:d,y:m,w:c,d:l,D:p,h:a,m:s,s:i,ms:n,Q:u}[N]||String(N||"").toLowerCase().replace(/s$/,"")},"p"),u:o(function(N){return N===void 0},"u")},y="en",C={};C[y]=v;var w="$isDayjsObject",E=o(function(N){return N instanceof T||!(!N||!N[w])},"S"),R=o(function N(k,D,A){var B;if(!k)return y;if(typeof k=="string"){var L=k.toLowerCase();C[L]&&(B=L),D&&(C[L]=D,B=L);var F=k.split("-");if(!B&&F.length>1)return N(F[0])}else{var q=k.name;C[q]=k,B=q}return!A&&B&&(y=B),B||!A&&y},"t"),$=o(function(N,k){if(E(N))return N.clone();var D=typeof k=="object"?k:{};return D.date=N,D.args=arguments,new T(D)},"O"),I=S;I.l=R,I.i=E,I.w=function(N,k){return $(N,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var T=function(){function N(D){this.$L=R(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[w]=!0}o(N,"M");var k=N.prototype;return k.parse=function(D){this.$d=function(A){var B=A.date,L=A.utc;if(B===null)return new Date(NaN);if(I.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var F=B.match(h);if(F){var q=F[2]-1||0,X=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)):new Date(F[1],q,F[3]||1,F[4]||0,F[5]||0,F[6]||0,X)}}return new Date(B)}(D),this.init()},k.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},k.$utils=function(){return I},k.isValid=function(){return this.$d.toString()!==g},k.isSame=function(D,A){var B=$(D);return this.startOf(A)<=B&&B<=this.endOf(A)},k.isAfter=function(D,A){return $(D)<this.startOf(A)},k.isBefore=function(D,A){return this.endOf(A)<$(D)},k.$g=function(D,A,B){return I.u(D)?this[A]:this.set(B,D)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(D,A){var B=this,L=!!I.u(A)||A,F=I.p(D),q=o(function(re,ne){var oe=I.w(B.$u?Date.UTC(B.$y,ne,re):new Date(B.$y,ne,re),B);return L?oe:oe.endOf(l)},"l"),X=o(function(re,ne){return I.w(B.toDate()[re].apply(B.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(ne)),B)},"$"),W=this.$W,j=this.$M,Z=this.$D,J="set"+(this.$u?"UTC":"");switch(F){case m:return L?q(1,0):q(31,11);case d:return L?q(1,j):q(0,j+1);case c:var U=this.$locale().weekStart||0,ee=(W<U?W+7:W)-U;return q(L?Z-ee:Z+(6-ee),j);case l:case p:return X(J+"Hours",0);case a:return X(J+"Minutes",1);case s:return X(J+"Seconds",2);case i:return X(J+"Milliseconds",3);default:return this.clone()}},k.endOf=function(D){return this.startOf(D,!1)},k.$set=function(D,A){var B,L=I.p(D),F="set"+(this.$u?"UTC":""),q=(B={},B[l]=F+"Date",B[p]=F+"Date",B[d]=F+"Month",B[m]=F+"FullYear",B[a]=F+"Hours",B[s]=F+"Minutes",B[i]=F+"Seconds",B[n]=F+"Milliseconds",B)[L],X=L===l?this.$D+(A-this.$W):A;if(L===d||L===m){var W=this.clone().set(p,1);W.$d[q](X),W.init(),this.$d=W.set(p,Math.min(this.$D,W.daysInMonth())).$d}else q&&this.$d[q](X);return this.init(),this},k.set=function(D,A){return this.clone().$set(D,A)},k.get=function(D){return this[I.p(D)]()},k.add=function(D,A){var B,L=this;D=Number(D);var F=I.p(A),q=o(function(j){var Z=$(L);return I.w(Z.date(Z.date()+Math.round(j*D)),L)},"y");if(F===d)return this.set(d,this.$M+D);if(F===m)return this.set(m,this.$y+D);if(F===l)return q(1);if(F===c)return q(7);var X=(B={},B[s]=t,B[a]=r,B[i]=e,B)[F]||1,W=this.$d.getTime()+D*X;return I.w(W,this)},k.subtract=function(D,A){return this.add(-1*D,A)},k.format=function(D){var A=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var L=D||"YYYY-MM-DDTHH:mm:ssZ",F=I.z(this),q=this.$H,X=this.$m,W=this.$M,j=B.weekdays,Z=B.months,J=B.meridiem,U=o(function(ne,oe,te,ie){return ne&&(ne[oe]||ne(A,L))||te[oe].slice(0,ie)},"h"),ee=o(function(ne){return I.s(q%12||12,ne,"0")},"d"),re=J||function(ne,oe,te){var ie=ne<12?"AM":"PM";return te?ie.toLowerCase():ie};return L.replace(b,function(ne,oe){return oe||function(te){switch(te){case"YY":return String(A.$y).slice(-2);case"YYYY":return I.s(A.$y,4,"0");case"M":return W+1;case"MM":return I.s(W+1,2,"0");case"MMM":return U(B.monthsShort,W,Z,3);case"MMMM":return U(Z,W);case"D":return A.$D;case"DD":return I.s(A.$D,2,"0");case"d":return String(A.$W);case"dd":return U(B.weekdaysMin,A.$W,j,2);case"ddd":return U(B.weekdaysShort,A.$W,j,3);case"dddd":return j[A.$W];case"H":return String(q);case"HH":return I.s(q,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return re(q,X,!0);case"A":return re(q,X,!1);case"m":return String(X);case"mm":return I.s(X,2,"0");case"s":return String(A.$s);case"ss":return I.s(A.$s,2,"0");case"SSS":return I.s(A.$ms,3,"0");case"Z":return F}return null}(ne)||F.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(D,A,B){var L,F=this,q=I.p(A),X=$(D),W=(X.utcOffset()-this.utcOffset())*t,j=this-X,Z=o(function(){return I.m(F,X)},"D");switch(q){case m:L=Z()/12;break;case d:L=Z();break;case u:L=Z()/3;break;case c:L=(j-W)/6048e5;break;case l:L=(j-W)/864e5;break;case a:L=j/r;break;case s:L=j/t;break;case i:L=j/e;break;default:L=j}return B?L:I.a(L)},k.daysInMonth=function(){return this.endOf(d).$D},k.$locale=function(){return C[this.$L]},k.locale=function(D,A){if(!D)return this.$L;var B=this.clone(),L=R(D,A,!0);return L&&(B.$L=L),B},k.clone=function(){return I.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},N}(),M=T.prototype;return $.prototype=M,[["$ms",n],["$s",i],["$m",s],["$H",a],["$W",l],["$M",d],["$y",m],["$D",p]].forEach(function(N){M[N[1]]=function(k){return this.$g(k,N[0],N[1])}}),$.extend=function(N,k){return N.$i||(N(k,T,$),N.$i=!0),$},$.locale=R,$.isDayjs=E,$.unix=function(N){return $(1e3*N)},$.en=C[y],$.Ls=C,$.p={},$})});var mT=Mi((LS,BS)=>{(function(e,t){typeof LS=="object"&&typeof BS<"u"?BS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekday=t()})(LS,function(){"use strict";return function(e,t){t.prototype.weekday=function(r){var n=this.$locale().weekStart||0,i=this.$W,s=(i<n?i+7:i)-n;return this.$utils().u(r)?s:this.subtract(s,"day").add(r,"day")}}})});var pT=Mi((FS,HS)=>{(function(e,t){typeof FS=="object"&&typeof HS<"u"?HS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_localeData=t()})(FS,function(){"use strict";return function(e,t,r){var n=t.prototype,i=o(function(d){return d&&(d.indexOf?d:d.s)},"o"),s=o(function(d,u,m,p,g){var h=d.name?d:d.$locale(),b=i(h[u]),v=i(h[m]),x=b||v.map(function(y){return y.slice(0,p)});if(!g)return x;var S=h.weekStart;return x.map(function(y,C){return x[(C+(S||0))%7]})},"u"),a=o(function(){return r.Ls[r.locale()]},"i"),l=o(function(d,u){return d.formats[u]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,g,h){return g||h.slice(1)})}(d.formats[u.toUpperCase()])},"a"),c=o(function(){var d=this;return{months:o(function(u){return u?u.format("MMMM"):s(d,"months")},"months"),monthsShort:o(function(u){return u?u.format("MMM"):s(d,"monthsShort","months",3)},"monthsShort"),firstDayOfWeek:o(function(){return d.$locale().weekStart||0},"firstDayOfWeek"),weekdays:o(function(u){return u?u.format("dddd"):s(d,"weekdays")},"weekdays"),weekdaysMin:o(function(u){return u?u.format("dd"):s(d,"weekdaysMin","weekdays",2)},"weekdaysMin"),weekdaysShort:o(function(u){return u?u.format("ddd"):s(d,"weekdaysShort","weekdays",3)},"weekdaysShort"),longDateFormat:o(function(u){return l(d.$locale(),u)},"longDateFormat"),meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}},"s");n.localeData=function(){return c.bind(this)()},r.localeData=function(){var d=a();return{firstDayOfWeek:o(function(){return d.weekStart||0},"firstDayOfWeek"),weekdays:o(function(){return r.weekdays()},"weekdays"),weekdaysShort:o(function(){return r.weekdaysShort()},"weekdaysShort"),weekdaysMin:o(function(){return r.weekdaysMin()},"weekdaysMin"),months:o(function(){return r.months()},"months"),monthsShort:o(function(){return r.monthsShort()},"monthsShort"),longDateFormat:o(function(u){return l(d,u)},"longDateFormat"),meridiem:d.meridiem,ordinal:d.ordinal}},r.months=function(){return s(a(),"months")},r.monthsShort=function(){return s(a(),"monthsShort","months",3)},r.weekdays=function(d){return s(a(),"weekdays",null,null,d)},r.weekdaysShort=function(d){return s(a(),"weekdaysShort","weekdays",3,d)},r.weekdaysMin=function(d){return s(a(),"weekdaysMin","weekdays",2,d)}}})});var fT=Mi((zS,VS)=>{(function(e,t){typeof zS=="object"&&typeof VS<"u"?VS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekOfYear=t()})(zS,function(){"use strict";var e="week",t="year";return function(r,n,i){var s=n.prototype;s.week=function(a){if(a===void 0&&(a=null),a!==null)return this.add(7*(a-this.week()),"day");var l=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=i(this).startOf(t).add(1,t).date(l),d=i(this).endOf(e);if(c.isBefore(d))return 1}var u=i(this).startOf(t).date(l).startOf(e).subtract(1,"millisecond"),m=this.diff(u,e,!0);return m<0?i(this).startOf("week").week():Math.ceil(m)},s.weeks=function(a){return a===void 0&&(a=null),this.week(a)}}})});var gT=Mi((jS,WS)=>{(function(e,t){typeof jS=="object"&&typeof WS<"u"?WS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekYear=t()})(jS,function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var r=this.month(),n=this.week(),i=this.year();return n===1&&r===11?i+1:r===0&&n>=52?i-1:i}}})});var hT=Mi((US,qS)=>{(function(e,t){typeof US=="object"&&typeof qS<"u"?qS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=t()})(US,function(){"use strict";return function(e,t){var r=t.prototype,n=r.format;r.format=function(i){var s=this,a=this.$locale();if(!this.isValid())return n.bind(this)(i);var l=this.$utils(),c=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return a.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return a.ordinal(s.week(),"W");case"w":case"ww":return l.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return l.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return l.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return n.bind(this)(c)}}})});var bT=Mi((GS,XS)=>{(function(e,t){typeof GS=="object"&&typeof XS<"u"?XS.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(GS,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,n=/\d\d/,i=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},l=o(function(h){return(h=+h)+(h>68?1900:2e3)},"a"),c=o(function(h){return function(b){this[h]=+b}},"f"),d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var v=b.match(/([+-]|\d\d)/g),x=60*v[1]+(+v[2]||0);return x===0?0:v[0]==="+"?-x:x}(h)}],u=o(function(h){var b=a[h];return b&&(b.indexOf?b:b.s.concat(b.f))},"u"),m=o(function(h,b){var v,x=a.meridiem;if(x){for(var S=1;S<=24;S+=1)if(h.indexOf(x(S,0,b))>-1){v=S>12;break}}else v=h===(b?"pm":"PM");return v},"d"),p={A:[s,function(h){this.afternoon=m(h,!1)}],a:[s,function(h){this.afternoon=m(h,!0)}],Q:[r,function(h){this.month=3*(h-1)+1}],S:[r,function(h){this.milliseconds=100*+h}],SS:[n,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,c("seconds")],ss:[i,c("seconds")],m:[i,c("minutes")],mm:[i,c("minutes")],H:[i,c("hours")],h:[i,c("hours")],HH:[i,c("hours")],hh:[i,c("hours")],D:[i,c("day")],DD:[n,c("day")],Do:[s,function(h){var b=a.ordinal,v=h.match(/\d+/);if(this.day=v[0],b)for(var x=1;x<=31;x+=1)b(x).replace(/\[|\]/g,"")===h&&(this.day=x)}],w:[i,c("week")],ww:[n,c("week")],M:[i,c("month")],MM:[n,c("month")],MMM:[s,function(h){var b=u("months"),v=(u("monthsShort")||b.map(function(x){return x.slice(0,3)})).indexOf(h)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[s,function(h){var b=u("months").indexOf(h)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[n,function(h){this.year=l(h)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(h){var b,v;b=h,v=a&&a.formats;for(var x=(h=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,I,T){var M=T&&T.toUpperCase();return I||v[T]||e[T]||v[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,k,D){return k||D.slice(1)})})).match(t),S=x.length,y=0;y<S;y+=1){var C=x[y],w=p[C],E=w&&w[0],R=w&&w[1];x[y]=R?{regex:E,parser:R}:C.replace(/^\[|\]$/g,"")}return function($){for(var I={},T=0,M=0;T<S;T+=1){var N=x[T];if(typeof N=="string")M+=N.length;else{var k=N.regex,D=N.parser,A=$.slice(M),B=k.exec(A)[0];D.call(I,B),$=$.replace(B,"")}}return function(L){var F=L.afternoon;if(F!==void 0){var q=L.hours;F?q<12&&(L.hours+=12):q===12&&(L.hours=0),delete L.afternoon}}(I),I}}return o(g,"l"),function(h,b,v){v.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(l=h.parseTwoDigitYear);var x=b.prototype,S=x.parse;x.parse=function(y){var C=y.date,w=y.utc,E=y.args;this.$u=w;var R=E[1];if(typeof R=="string"){var $=E[2]===!0,I=E[3]===!0,T=$||I,M=E[2];I&&(M=E[2]),a=this.$locale(),!$&&M&&(a=v.Ls[M]),this.$d=function(A,B,L,F){try{if(["x","X"].indexOf(B)>-1)return new Date((B==="X"?1e3:1)*A);var q=g(B)(A),X=q.year,W=q.month,j=q.day,Z=q.hours,J=q.minutes,U=q.seconds,ee=q.milliseconds,re=q.zone,ne=q.week,oe=new Date,te=j||(X||W?1:oe.getDate()),ie=X||oe.getFullYear(),se=0;X&&!W||(se=W>0?W-1:oe.getMonth());var xe,me=Z||0,Ee=J||0,$e=U||0,he=ee||0;return re?new Date(Date.UTC(ie,se,te,me,Ee,$e,he+60*re.offset*1e3)):L?new Date(Date.UTC(ie,se,te,me,Ee,$e,he)):(xe=new Date(ie,se,te,me,Ee,$e,he),ne&&(xe=F(xe).week(ne).toDate()),xe)}catch{return new Date("")}}(C,R,w,v),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),T&&C!=this.format(R)&&(this.$d=new Date("")),a={}}else if(R instanceof Array)for(var N=R.length,k=1;k<=N;k+=1){E[1]=R[k-1];var D=v.apply(this,E);if(D.isValid()){this.$d=D.$d,this.$L=D.$L,this.init();break}k===N&&(this.$d=new Date(""))}else S.call(this,y)}}})});var YO=Mi((YC,KC)=>{(function(e,t){typeof YC=="object"&&typeof KC<"u"?KC.exports=t(Vg()):typeof define=="function"&&define.amd?define(["dayjs"],t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_locale_zh_cn=t(e.dayjs)})(YC,function(e){"use strict";function t(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}o(t,"_");var r=t(e),n={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:o(function(i,s){return s==="W"?i+"\u5468":i+"\u65E5"},"ordinal"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:o(function(i,s){var a=100*i+s;return a<600?"\u51CC\u6668":a<900?"\u65E9\u4E0A":a<1100?"\u4E0A\u5348":a<1300?"\u4E2D\u5348":a<1800?"\u4E0B\u5348":"\u665A\u4E0A"},"meridiem")};return r.default.locale(n,null,!0),n})});var C5={};l0(C5,{startArchiveClient:()=>S5});module.exports=Mk(C5);function Ur(e){if(typeof e!="object"||e===null||Array.isArray(e))throw new TypeError("\u53C2\u6570\u5FC5\u987B\u4E3A\u5BF9\u8C61");return e}o(Ur,"record");function xn(e){return String(e&&typeof e=="object"&&"message"in e?e.message??e:e)}o(xn,"errorMessage");function Hl(e){return e&&typeof e=="object"&&"code"in e?e.code:void 0}o(Hl,"errorCode");var d0={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 ln=Math.round;function Rh(e,t){let r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)n[i]=t(n[i]||0,r[i]||"",i);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}o(Rh,"splitColorStr");var u0=o((e,t,r)=>r===0?e:e/100,"parseHSVorHSL");function bd(e,t){let r=t||255;return e>r?r:e<0?0:e}o(bd,"limitRange");var ur=class e{static{o(this,"FastColor")}isValid=!0;r=0;g=0;b=0;a=1;_h;_hsl_s;_hsv_s;_l;_v;_max;_min;_brightness;constructor(t){function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(o(r,"matchFormat"),t)if(typeof t=="string"){let i=function(s){return n.startsWith(s)};o(i,"matchPrefix");let n=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(n))this.fromHexString(n);else if(i("rgb"))this.fromRgbString(n);else if(i("hsl"))this.fromHslString(n);else if(i("hsv")||i("hsb"))this.fromHsvString(n);else{let s=d0[n.toLowerCase()];s&&this.fromHexString(parseInt(s,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(r("rgb"))this.r=bd(t.r),this.g=bd(t.g),this.b=bd(t.b),this.a=typeof t.a=="number"?bd(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("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 r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(s){let a=s/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}o(t,"adjustGamma");let r=t(this.r),n=t(this.g),i=t(this.b);return .2126*r+.7152*n+.0722*i}getHue(){if(typeof this._h>"u"){let t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ln(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 r=this.getLightness();this._hsl_s=t/255/(1-Math.abs(2*r-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 r=this.getHue(),n=this.getSaturation(),i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:r,s:n,l:i,a:this.a})}lighten(t=10){let r=this.getHue(),n=this.getSaturation(),i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:r,s:n,l:i,a:this.a})}mix(t,r=50){let n=this._c(t),i=r/100,s=o(l=>(n[l]-this[l])*i+this[l],"calc"),a={r:ln(s("r")),g:ln(s("g")),b:ln(s("b")),a:ln(s("a")*100)/100};return this._c(a)}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 r=this._c(t),n=this.a+r.a*(1-this.a),i=o(s=>ln((this[s]*this.a+r[s]*r.a*(1-this.a))/n),"calc");return this._c({r:i("r"),g:i("g"),b:i("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="#",r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;let n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;let i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){let s=ln(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let t=this.getHue(),r=ln(this.getHSLSaturation()*100),n=ln(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${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,r,n){let i=this.clone();return i[t]=bd(r,n),i}_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 r=t.replace("#","");function n(i,s){return parseInt(r[i]+r[s||i],16)}o(n,"connectNum"),r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:i}){let s=(t%360+360)%360;if(this._h=s,this._hsl_s=r,this._l=n,this.a=typeof i=="number"?i:1,r<=0){let g=ln(n*255);this.r=g,this.g=g,this.b=g;return}let a=0,l=0,c=0,d=s/60,u=(1-Math.abs(2*n-1))*r,m=u*(1-Math.abs(d%2-1));d>=0&&d<1?(a=u,l=m):d>=1&&d<2?(a=m,l=u):d>=2&&d<3?(l=u,c=m):d>=3&&d<4?(l=m,c=u):d>=4&&d<5?(a=m,c=u):d>=5&&d<6&&(a=u,c=m);let p=n-u/2;this.r=ln((a+p)*255),this.g=ln((l+p)*255),this.b=ln((c+p)*255)}fromHsv({h:t,s:r,v:n,a:i}){let s=(t%360+360)%360;this._h=s,this._hsv_s=r,this._v=n,this.a=typeof i=="number"?i:1;let a=ln(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;let l=s/60,c=Math.floor(l),d=l-c,u=ln(n*(1-r)*255),m=ln(n*(1-r*d)*255),p=ln(n*(1-r*(1-d))*255);switch(c){case 0:this.g=p,this.b=u;break;case 1:this.r=m,this.b=u;break;case 2:this.r=u,this.b=p;break;case 3:this.r=u,this.g=m;break;case 4:this.r=p,this.g=u;break;case 5:default:this.g=u,this.b=m;break}}fromHsvString(t){let r=Rh(t,u0);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){let r=Rh(t,u0);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){let r=Rh(t,(n,i)=>i.includes("%")?ln(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Em=2,m0=.16,Tk=.05,Ok=.05,kk=.15,h0=5,b0=4,Dk=[{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 p0(e,t,r){let n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Em*t:Math.round(e.h)+Em*t:n=r?Math.round(e.h)+Em*t:Math.round(e.h)-Em*t,n<0?n+=360:n>=360&&(n-=360),n}o(p0,"getHue");function f0(e,t,r){if(e.h===0&&e.s===0)return e.s;let n;return r?n=e.s-m0*t:t===b0?n=e.s+m0:n=e.s+Tk*t,n>1&&(n=1),r&&t===h0&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}o(f0,"getSaturation");function g0(e,t,r){let n;return r?n=e.v+Ok*t:n=e.v-kk*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}o(g0,"getValue");function Xi(e,t={}){let r=[],n=new ur(e),i=n.toHsv();for(let s=h0;s>0;s-=1){let a=new ur({h:p0(i,s,!0),s:f0(i,s,!0),v:g0(i,s,!0)});r.push(a)}r.push(n);for(let s=1;s<=b0;s+=1){let a=new ur({h:p0(i,s),s:f0(i,s),v:g0(i,s)});r.push(a)}return t.theme==="dark"?Dk.map(({index:s,amount:a})=>new ur(t.backgroundColor||"#141414").mix(r[s],a).toHexString()):r.map(s=>s.toHexString())}o(Xi,"generate");var hs={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"},Eh=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Eh.primary=Eh[5];var $h=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];$h.primary=$h[5];var Ih=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ih.primary=Ih[5];var Ph=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Ph.primary=Ph[5];var Nh=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Nh.primary=Nh[5];var Mh=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Mh.primary=Mh[5];var Th=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Th.primary=Th[5];var Oh=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Oh.primary=Oh[5];var kh=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];kh.primary=kh[5];var Dh=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Dh.primary=Dh[5];var Ah=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ah.primary=Ah[5];var _h=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_h.primary=_h[5];var Lh=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Lh.primary=Lh[5];var $m={red:Eh,volcano:$h,orange:Ih,gold:Ph,yellow:Nh,lime:Mh,green:Th,cyan:Oh,blue:kh,geekblue:Dh,purple:Ah,magenta:_h,grey:Lh},v0=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];v0.primary=v0[5];var y0=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];y0.primary=y0[5];var x0=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];x0.primary=x0[5];var S0=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];S0.primary=S0[5];var C0=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];C0.primary=C0[5];var w0=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];w0.primary=w0[5];var R0=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];R0.primary=R0[5];var E0=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];E0.primary=E0[5];var $0=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];$0.primary=$0[5];var I0=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];I0.primary=I0[5];var P0=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];P0.primary=P0[5];var N0=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];N0.primary=N0[5];var M0=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];M0.primary=M0[5];var pn=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var vd={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"},Ak={...vd,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
11
- 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
12
- '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},bs=Ak;function yd(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){let{colorSuccess:n,colorWarning:i,colorError:s,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,u=t(l),m=t(n),p=t(i),g=t(s),h=t(a),b=r(c,d),v=e.colorLink||e.colorInfo,x=t(v),S=new ur(g[1]).mix(new ur(g[3]),50).toHexString(),y={};return pn.forEach(C=>{let w=e[C];if(w){let E=t(w);y[`${C}Hover`]=E[5],y[`${C}Active`]=E[7]}}),{...b,colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:g[1],colorErrorBgHover:g[2],colorErrorBgFilledHover:S,colorErrorBgActive:g[3],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorLinkHover:x[4],colorLink:x[6],colorLinkActive:x[7],...y,colorBgMask:new ur("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}o(yd,"genColorMapToken");var _k=o(e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}},"genRadius"),T0=_k;function Bh(e){let{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return{motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1,...T0(n)}}o(Bh,"genCommonMapToken");var Lk=o(e=>{let{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},"genControlHeight"),O0=Lk;function zl(e){return(e+8)/e}o(zl,"getLineHeight");function Fh(e){let t=Array.from({length:10}).map((r,n)=>{let i=n-1,s=e*Math.E**(i/5),a=n>1?Math.floor(s):Math.ceil(s);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:zl(r)}))}o(Fh,"getFontSizes");var Bk=o(e=>{let t=Fh(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),i=r[1],s=r[0],a=r[2],l=n[1],c=n[0],d=n[2];return{fontSizeSM:s,fontSize:i,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*i),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*s),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},"genFontMapToken"),k0=Bk;function Hh(e){let{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}o(Hh,"genSizeMapToken");var Qn=o((e,t)=>new ur(e).setA(t).toRgbString(),"getAlphaColor"),Ha=o((e,t)=>new ur(e).darken(t).toHexString(),"getSolidColor");var D0=o(e=>{let t=Xi(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]}},"generateColorPalettes"),A0=o((e,t,r)=>{let n=e||"#fff",i=t||"#000";return{colorBgBase:n,colorTextBase:i,colorShadow:r||"#000",colorText:Qn(i,.88),colorTextSecondary:Qn(i,.65),colorTextTertiary:Qn(i,.45),colorTextQuaternary:Qn(i,.25),colorFill:Qn(i,.15),colorFillSecondary:Qn(i,.06),colorFillTertiary:Qn(i,.04),colorFillQuaternary:Qn(i,.02),colorBgSolid:Qn(i,1),colorBgSolidHover:Qn(i,.75),colorBgSolidActive:Qn(i,.95),colorBgLayout:Ha(n,4),colorBgContainer:Ha(n,0),colorBgElevated:Ha(n,0),colorBgSpotlight:Qn(i,.85),colorBgBlur:"transparent",colorBorder:Ha(n,15),colorBorderDisabled:Ha(n,15),colorBorderSecondary:Ha(n,6)}},"generateNeutralColorPalettes");function za(e){hs.pink=hs.magenta,$m.pink=$m.magenta;let t=Object.keys(vd).map(r=>{let n=e[r]===hs[r]?$m[r]:Xi(e[r]);return Array.from({length:10},()=>1).reduce((i,s,a)=>(i[`${r}-${a+1}`]=n[a],i[`${r}${a+1}`]=n[a],i),{})}).reduce((r,n)=>(r={...r,...n},r),{});return{...e,...t,...yd(e,{generateColorPalettes:D0,generateNeutralColorPalettes:A0}),...k0(e.fontSize),...Hh(e),...O0(e),...Bh(e)}}o(za,"derivative");var Zn=o((e,t)=>new ur(e).setA(t).toRgbString(),"getAlphaColor"),zs=o((e,t)=>new ur(e).lighten(t).toHexString(),"getSolidColor");var zh=o(e=>{let t=Xi(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]}},"generateColorPalettes"),_0=o((e,t,r)=>{let n=e||"#000",i=t||"#fff";return{colorBgBase:n,colorTextBase:i,colorShadow:r||"rgba(255, 255, 255, 0.2)",colorText:Zn(i,.85),colorTextSecondary:Zn(i,.65),colorTextTertiary:Zn(i,.45),colorTextQuaternary:Zn(i,.25),colorFill:Zn(i,.18),colorFillSecondary:Zn(i,.12),colorFillTertiary:Zn(i,.08),colorFillQuaternary:Zn(i,.04),colorBgSolid:Zn(i,.95),colorBgSolidHover:Zn(i,1),colorBgSolidActive:Zn(i,.9),colorBgElevated:zs(n,12),colorBgContainer:zs(n,8),colorBgLayout:zs(n,0),colorBgSpotlight:zs(n,26),colorBgBlur:Zn(i,.04),colorBorder:zs(n,26),colorBorderDisabled:zs(n,26),colorBorderSecondary:zs(n,19)}},"generateNeutralColorPalettes");var Fk=o((e,t)=>{let r=Object.keys(vd).map(a=>{let l=Xi(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,d,u)=>(c[`${a}-${u+1}`]=l[u],c[`${a}${u+1}`]=l[u],c),{})}).reduce((a,l)=>(a={...a,...l},a),{}),n=t??za(e),i=yd(e,{generateColorPalettes:zh,generateNeutralColorPalettes:_0}),s=pn.reduce((a,l)=>{let c=e[l];if(c){let d=zh(c);a[`${l}Hover`]=d[7],a[`${l}Active`]=d[5]}return a},{});return{...n,...r,...i,...s,colorPrimaryBg:i.colorPrimaryBorder,colorPrimaryBgHover:i.colorPrimaryBorderHover}},"derivative"),L0=Fk;var G={};l0(G,{Children:()=>vs,Component:()=>xd,Fragment:()=>rr,Profiler:()=>Hk,PureComponent:()=>Vh,StrictMode:()=>zk,Suspense:()=>Vk,cloneElement:()=>so,createContext:()=>bt,createElement:()=>f,createRef:()=>jh,default:()=>_,forwardRef:()=>le,isValidElement:()=>Tr,lazy:()=>jk,memo:()=>Yi,startTransition:()=>Wk,useCallback:()=>At,useContext:()=>K,useDebugValue:()=>Uk,useDeferredValue:()=>qk,useEffect:()=>fe,useId:()=>Wh,useImperativeHandle:()=>ft,useInsertionEffect:()=>Uh,useLayoutEffect:()=>Va,useMemo:()=>V,useReducer:()=>qh,useRef:()=>H,useState:()=>ce,useSyncExternalStore:()=>Gk,useTransition:()=>Xk,version:()=>Gh});var B0=Function("return globalThis.__dshArchiveReact")(),{Children:vs,Component:xd,Fragment:rr,Profiler:Hk,PureComponent:Vh,StrictMode:zk,Suspense:Vk,cloneElement:so,createContext:bt,createElement:f,createRef:jh,forwardRef:le,isValidElement:Tr,lazy:jk,memo:Yi,startTransition:Wk,useCallback:At,useContext:K,useDebugValue:Uk,useDeferredValue:qk,useEffect:fe,useId:Wh,useImperativeHandle:ft,useInsertionEffect:Uh,useLayoutEffect:Va,useMemo:V,useReducer:qh,useRef:H,useState:ce,useSyncExternalStore:Gk,useTransition:Xk,version:Gh}=B0,_=B0;var Yk=o(e=>{let t=H(e);return t.current=e,At((...n)=>t.current?.(...n),[])},"useEvent"),De=Yk;function go(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}o(go,"canUseDom");var F0=go()?Va:fe,H0=o((e,t)=>{let r=H(!0);F0(()=>e(r.current),t),F0(()=>(r.current=!1,()=>{r.current=!0}),[])},"useLayoutEffect"),Vs=o((e,t)=>{H0(r=>{if(!r)return e()},t)},"useLayoutUpdateEffect"),Pt=H0;var Kk=o(e=>{let t=H(!1),[r,n]=ce(e);fe(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(s,a){a&&t.current||n(s)}return o(i,"safeSetState"),[r,i]},"useSafeState"),Vl=Kk;function Ft(e,t){let[r,n]=ce(e),i=t!==void 0?t:r;return Pt(s=>{s||n(t)},[t]),[i,n]}o(Ft,"useControlledState");var V0=o(e=>+setTimeout(e,16),"raf"),j0=o(e=>clearTimeout(e),"caf");typeof window<"u"&&"requestAnimationFrame"in window&&(V0=o(e=>window.requestAnimationFrame(e),"raf"),j0=o(e=>window.cancelAnimationFrame(e),"caf"));var z0=0,Xh=new Map;function W0(e){Xh.delete(e)}o(W0,"cleanup");var U0=o((e,t=1)=>{z0+=1;let r=z0;function n(i){if(i===0)W0(r),e();else{let s=V0(()=>{n(i-1)});Xh.set(r,s)}}return o(n,"callRef"),n(t),r},"wrapperRaf");U0.cancel=e=>{let t=Xh.get(e);return W0(e),j0(t)};var St=U0;function Im(e){let[t,r]=ce(e),n=H(null),i=De(()=>{if(n.current){let[a,l]=n.current;a?St.cancel(l):clearTimeout(l),n.current=null}}),s=De((a,l)=>{let c=l||{frame:1};i(),c===!0?r(a):"ms"in c?n.current=[!1,setTimeout(()=>r(a),c.ms)]:n.current=[!0,St(()=>r(a),c.frame)]});return[t,s]}o(Im,"useDelayState");function Qk(){return{...G}.useId}o(Qk,"getUseId");var q0=0;var G0=Qk(),Wo=G0?o(function(t){let r=G0();return t||r},"useId"):o(function(t){let[r,n]=ce("ssr-id");return fe(()=>{let i=q0;q0+=1,n(`rc_unique_${i}`)},[]),t||r},"useCompatId");function Jn(e,t,r){let n=H({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}o(Jn,"useMemo");function Zk(e){let[,t]=qh(s=>s+1,0),r=H(e),n=De(()=>r.current),i=De(s=>{r.current=typeof s=="function"?s(r.current):s,t()});return[n,i]}o(Zk,"useSyncState");var jl=Zk;var Cd=Ti(Q0());var eD=Symbol.for("react.element"),tD=Symbol.for("react.transitional.element"),rD=Symbol.for("react.fragment");function Sd(e){return e&&typeof e=="object"&&(e.$$typeof===eD||e.$$typeof===tD)&&e.type===rD}o(Sd,"isFragment");var oD=Number(Gh.split(".")[0]),Z0=o((e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},"fillRef"),qr=o((...e)=>{let t=e.filter(Boolean);return t.length<=1?t[0]:r=>{e.forEach(n=>{Z0(n,r)})}},"composeRef"),Qo=o((...e)=>Jn(()=>qr(...e),e,(t,r)=>t.length!==r.length||t.every((n,i)=>n!==r[i])),"useComposeRef"),hi=o(e=>{if(!e)return!1;if(Qh(e)&&oD>=19)return!0;let t=(0,Cd.isMemo)(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==Cd.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==Cd.ForwardRef)},"supportRef");function Qh(e){return Tr(e)&&!Sd(e)}o(Qh,"isReactElement");var wd=o(e=>Qh(e)&&hi(e),"supportNodeRef"),Zo=o(e=>{if(e&&Qh(e)){let t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},"getNodeRef");function ja(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}o(ja,"contains");var J0="data-rc-order",ew="data-rc-priority",nD="rc-util-key",Zh=new Map;function tw({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:nD}o(tw,"getMark");function Bm(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}o(Bm,"getContainer");function iD(e){return e==="queue"?"prependQueue":e?"prepend":"append"}o(iD,"getOrder");function Jh(e){return Array.from((Zh.get(e)||e).children).filter(t=>t.tagName==="STYLE")}o(Jh,"findStyles");function eb(e,t={}){if(!go())return null;let{csp:r,prepend:n,priority:i=0}=t,s=iD(n),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(J0,s),a&&i&&l.setAttribute(ew,`${i}`),r?.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;let c=Bm(t),{firstChild:d}=c;if(n){if(a){let u=(t.styles||Jh(c)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(J0)))return!1;let p=Number(m.getAttribute(ew)||0);return i>=p});if(u.length)return c.insertBefore(l,u[u.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}o(eb,"injectCSS");function rw(e,t={}){let{styles:r}=t;return r||=Jh(Bm(t)),r.find(n=>n.getAttribute(tw(t))===e)}o(rw,"findExistNode");function Oi(e,t={}){let r=rw(e,t);r&&Bm(t).removeChild(r)}o(Oi,"removeCSS");function sD(e,t){let r=Zh.get(e);if(!r||!ja(document,r)){let n=eb("",t),{parentNode:i}=n;Zh.set(e,i),e.removeChild(n)}}o(sD,"syncRealContainer");function Fn(e,t,r={}){let n=Bm(r),i=Jh(n),s={...r,styles:i};sD(n,s);let a=rw(t,s);if(a)return s.csp?.nonce&&a.nonce!==s.csp?.nonce&&(a.nonce=s.csp?.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let l=eb(e,s);return l.setAttribute(tw(s),t),l}o(Fn,"updateCSS");function Ki(e){return e instanceof HTMLElement||e instanceof SVGElement}o(Ki,"isDOM");function ei(e){return e&&typeof e=="object"&&Ki(e.nativeElement)?e.nativeElement:Ki(e)?e:null}o(ei,"getDOM");var ys=o(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){let{width:t,height:r}=e.getBBox();if(t||r)return!0}if(e.getBoundingClientRect){let{width:t,height:r}=e.getBoundingClientRect();if(t||r)return!0}}return!1},"default");function ow(e,t=!1){if(ys(e)){let r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i),a=null;return i&&!Number.isNaN(s)?a=s:n&&a===null&&(a=0),n&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}o(ow,"focusable");function Rd(e,t=!1){let r=[...e.querySelectorAll("*")].filter(n=>ow(n,t));return ow(e,t)&&r.unshift(e),r}o(Rd,"getFocusNodeList");function Ws(e,t){if(!e)return;e.focus(t);let{cursor:r}=t||{};if(r&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}o(Ws,"triggerFocus");var Wl=null,js=[],rb=new Map,ob=new Map;function nb(){return js[js.length-1]}o(nb,"getLastElement");function aD(e){let t=nb();if(e&&t){let r;for(let[i,s]of rb.entries())if(s===t){r=i;break}let n=ob.get(r);return!!n&&(n===e||n.contains(e))}return!1}o(aD,"isIgnoredElement");function lD(e){let{activeElement:t}=document;return e===t||e.contains(t)}o(lD,"hasFocus");function tb(){let e=nb(),{activeElement:t}=document;if(!aD(t))if(e&&!lD(e)){let r=Rd(e);(r.includes(Wl)?Wl:r[0])?.focus({preventScroll:!0})}else Wl=t}o(tb,"syncFocus");function nw(e){if(e.key==="Tab"){let{activeElement:t}=document,r=nb(),n=Rd(r),i=n[n.length-1];e.shiftKey&&t===n[0]?Wl=i:!e.shiftKey&&t===i&&(Wl=n[0])}}o(nw,"onWindowKeyDown");function iw(e,t){return e&&(rb.set(t,e),js=js.filter(r=>r!==e),js.push(e),window.addEventListener("focusin",tb),window.addEventListener("keydown",nw,!0),tb()),()=>{Wl=null,js=js.filter(r=>r!==e),rb.delete(t),ob.delete(t),js.length===0&&(window.removeEventListener("focusin",tb),window.removeEventListener("keydown",nw,!0))}}o(iw,"lockFocus");function cD(e,t){let r=H(0),[n,i]=ce(0);fe(()=>{r.current=0},t),fe(()=>{let[s,a]=e(r.current);return a||(r.current+=1,i(l=>l+1)),s},[...t,n])}o(cD,"useRetryEffect");function ib(e,t){let r=Wo(),n=H(t);return n.current=t,cD(o(a=>{if(!e)return[void 0,!0];let l=n.current();return l?[iw(l,r),!0]:[void 0,a>=1]},"lockEffect"),[r,e]),[o(a=>{a&&ob.set(r,a)},"ignoreElement")]}o(ib,"useLockFocus");function sw(e){return e?.getRootNode?.()}o(sw,"getRoot");function dD(e){return sw(e)instanceof ShadowRoot}o(dD,"inShadow");function Ul(e){return dD(e)?sw(e):null}o(Ul,"getShadowRoot");var Yt={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:o(function(t){let{keyCode:r}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Yt.F1&&r<=Yt.F12)return!1;switch(r){case Yt.ALT:case Yt.CAPS_LOCK:case Yt.CONTEXT_MENU:case Yt.CTRL:case Yt.DOWN:case Yt.END:case Yt.ESC:case Yt.HOME:case Yt.INSERT:case Yt.LEFT:case Yt.MAC_FF_META:case Yt.META:case Yt.NUMLOCK:case Yt.NUM_CENTER:case Yt.PAGE_DOWN:case Yt.PAGE_UP:case Yt.PAUSE:case Yt.PRINT_SCREEN:case Yt.RIGHT:case Yt.SHIFT:case Yt.UP:case Yt.WIN_KEY:case Yt.WIN_KEY_RIGHT:return!1;default:return!0}},"isTextModifyingKeyEvent"),isCharacterKey:o(function(t){if(t>=Yt.ZERO&&t<=Yt.NINE||t>=Yt.NUM_ZERO&&t<=Yt.NUM_MULTIPLY||t>=Yt.A&&t<=Yt.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Yt.SPACE:case Yt.QUESTION_MARK:case Yt.NUM_PLUS:case Yt.NUM_MINUS:case Yt.NUM_PERIOD:case Yt.NUM_DIVISION:case Yt.SEMICOLON:case Yt.DASH:case Yt.EQUALS:case Yt.COMMA:case Yt.PERIOD:case Yt.SLASH:case Yt.APOSTROPHE:case Yt.SINGLE_QUOTE:case Yt.OPEN_SQUARE_BRACKET:case Yt.BACKSLASH:case Yt.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},"isCharacterKey"),isEditableTarget:o(function(t){let r=t.target;if(!(r instanceof HTMLElement))return!1;let n=r.tagName;return!!(n==="INPUT"||n==="TEXTAREA"||n==="SELECT"||r.isContentEditable)},"isEditableTarget")},xt=Yt;function uD(e){let t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,r=document.createElement("div");r.id=t;let n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";let i,s;if(e){let c=getComputedStyle(e);n.scrollbarColor=c.scrollbarColor,n.scrollbarWidth=c.scrollbarWidth;let d=getComputedStyle(e,"::-webkit-scrollbar"),u=parseInt(d.width,10),m=parseInt(d.height,10);try{let p=u?`width: ${d.width};`:"",g=m?`height: ${d.height};`:"";Fn(`
13
- #${t}::-webkit-scrollbar {
14
- ${p}
15
- ${g}
16
- }`,t)}catch(p){console.error(p),i=u,s=m}}document.body.appendChild(r);let a=e&&i&&!Number.isNaN(i)?i:r.offsetWidth-r.clientWidth,l=e&&s&&!Number.isNaN(s)?s:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Oi(t),{width:a,height:l}}o(uD,"measureScrollbarSize");function sb(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:uD(e)}o(sb,"getTargetScrollBarSize");var ab={},mD=[],pD=o(e=>{mD.push(e)},"preMessage");function aw(e,t){}o(aw,"warning");function fD(e,t){}o(fD,"note");function lw(){ab={}}o(lw,"resetWarned");function cw(e,t,r){!t&&!ab[r]&&(e(!1,r),ab[r]=!0)}o(cw,"call");function Fm(e,t){cw(aw,e,t)}o(Fm,"warningOnce");function lb(e,t){cw(fD,e,t)}o(lb,"noteOnce");Fm.preMessage=pD;Fm.resetWarned=lw;Fm.noteOnce=lb;var Hr=Fm;function gD(e,t,r=!1){let n=new Set;function i(s,a,l=1){let c=n.has(s);if(Hr(!c,"Warning: There may be circular references"),c)return!1;if(s===a)return!0;if(r&&l>1)return!1;n.add(s);let d=l+1;if(Array.isArray(s)){if(!Array.isArray(a)||s.length!==a.length)return!1;for(let u=0;u<s.length;u++)if(!i(s[u],a[u],d))return!1;return!0}if(s&&a&&typeof s=="object"&&typeof a=="object"){let u=Object.keys(s);return u.length!==Object.keys(a).length?!1:u.every(m=>i(s[m],a[m],d))}return!1}return o(i,"deepEqual"),i(e,t)}o(gD,"isEqual");var ki=gD;function lo(e){return e!=null}o(lo,"isNonNullable");function yr(e){return lo(e)&&e!==!1&&e!==""}o(yr,"isReactRenderable");var yD=Ti(dw());function _t(e,t){let r=Object.assign({},e);return Array.isArray(t)&&t.forEach(n=>{delete r[n]}),r}o(_t,"omit");var xD=`accept acceptCharset accessKey action allowFullScreen allowTransparency
17
- alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
18
- charSet checked classID className colSpan cols content contentEditable contextMenu
19
- controls coords crossOrigin data dateTime default defer dir disabled download draggable
20
- encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
21
- headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
22
- is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
23
- mediaGroup method min minLength multiple muted name noValidate nonce open
24
- optimum pattern placeholder poster preload radioGroup readOnly rel required
25
- reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
26
- shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
27
- summary tabIndex target title type useMap value width wmode wrap`,SD=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
28
- onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
29
- onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
30
- onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
31
- onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
32
- onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
33
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad
34
- onPointerDown onPointerMove onPointerUp onPointerCancel onPointerEnter onPointerLeave onPointerOver onPointerOut onGotPointerCapture onLostPointerCapture
35
- onAnimationStart onAnimationEnd onAnimationIteration
36
- onTransitionEnd onTransitionRun onTransitionStart onTransitionCancel
37
- onBeforeInput onReset onInvalid
38
- onAuxClick onToggle onBeforeToggle onCancel onClose onResize onScrollEnd`,CD=`${xD} ${SD}`.split(/[\s\n]+/),wD="aria-",RD="data-";function uw(e,t){return e.indexOf(t)===0}o(uw,"match");function Zr(e,t=!1){let r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r={...t};let n={};return Object.keys(e).forEach(i=>{(r.aria&&(i==="role"||uw(i,wD))||r.data&&uw(i,RD)||r.attr&&CD.includes(i))&&(n[i]=e[i])}),n}o(Zr,"pickAttrs");function zm(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get(r,n){if(t[n])return t[n];let i=r[n];return typeof i=="function"?i.bind(r):i}}):e}o(zm,"proxyObject");function co(e,t={}){let r=[];return _.Children.forEach(e,n=>{n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(co(n)):Sd(n)&&n.props?r=r.concat(co(n.props.children,t)):r.push(n))}),r}o(co,"toArray");function ED(...e){let t={};for(let r of e)if(r)for(let n of Object.keys(r))r[n]!==void 0&&(t[n]=r[n]);return t}o(ED,"mergeProps");var ql=ED;function Jo(e,t){let r=e;for(let n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}o(Jo,"get");function pw(e,t,r,n){if(!t.length)return r;let[i,...s]=t,a;return!e&&typeof i=="number"?a=[]:Array.isArray(e)?a=[...e]:a={...e},n&&r===void 0&&s.length===1?delete a[i][s[0]]:a[i]=pw(a[i],s,r,n),a}o(pw,"internalSet");function fn(e,t,r,n=!1){return t.length&&n&&r===void 0&&!Jo(e,t.slice(0,-1))?e:pw(e,t,r,n)}o(fn,"set");function $D(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}o($D,"isObject");function mw(e){return Array.isArray(e)?[]:{}}o(mw,"createEmpty");var ID=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function fw(e,t={}){let{prepareArray:r}=t,n=r||(()=>[]),i=mw(e[0]);return e.forEach(s=>{function a(l,c){let d=new Set(c),u=Jo(s,l),m=Array.isArray(u);if(m||$D(u)){if(!d.has(u)){d.add(u);let p=Jo(i,l);m?i=fn(i,l,n(p,u)):(!p||typeof p!="object")&&(i=fn(i,l,mw(u))),ID(u).forEach(g=>{Object.getOwnPropertyDescriptor(u,g).enumerable&&a([...l,g],d)})}}else i=fn(i,l,u)}o(a,"internalMerge"),a([])}),i}o(fw,"mergeWith");function Hn(...e){return fw(e)}o(Hn,"merge");var Gl=Function("return globalThis.__dshArchiveReactDOM")(),gw=Function("return globalThis.__dshArchiveReactDOMClient")(),hw=Gl.createPortal,Wa=Gl.flushSync,bw=gw?.createRoot,R3=gw?.hydrateRoot,E3=Gl.findDOMNode,$3=Gl.unmountComponentAtNode,vw=Gl.unstable_batchedUpdates,I3=Gl.version;var Vm="__rc_react_root__";function Ed(e,t){let r=t[Vm]||bw(t);r.render(e),t[Vm]=r}o(Ed,"render");async function $d(e){return Promise.resolve().then(()=>{e[Vm]?.unmount(),delete e[Vm]})}o($d,"unmount");function yw(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=yw(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}o(yw,"r");function O(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=yw(e))&&(n&&(n+=" "),n+=t);return n}o(O,"clsx");var xw=O;function Id(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}o(Id,"_arrayLikeToArray");function Sw(e){if(Array.isArray(e))return Id(e)}o(Sw,"_arrayWithoutHoles");function Cw(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}o(Cw,"_iterableToArray");function jm(e,t){if(e){if(typeof e=="string")return Id(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Id(e,t):void 0}}o(jm,"_unsupportedIterableToArray");function ww(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
39
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}o(ww,"_nonIterableSpread");function to(e){return Sw(e)||Cw(e)||jm(e)||ww()}o(to,"_toConsumableArray");var Oo=o(e=>typeof e=="number"&&!Number.isNaN(e),"isNumber"),cn=o(e=>typeof e=="string","isString"),Ut=o(e=>e!==null&&typeof e=="object","isPlainObject"),er=o(e=>typeof e=="function","isFunction"),Wm=o(e=>lo(e)&&er(e.then),"isThenable"),Rw=o(e=>typeof e!="object"&&!er(e)||e===null,"isPrimitive"),Um=o(e=>Ut(e)&&"propertyName"in e&&cn(e.propertyName),"isTransitionEvent");var qm=o((e,t)=>{let r={...e};return Object.keys(t).forEach(n=>{t[n]._default?r[n]||(r[n]={}):r[n]=qm(r[n],t[n])}),r},"fillObjectBySchema");var $w=o((e={},...t)=>t.filter(r=>!!r).reduce((r,n)=>(Object.keys(n).forEach(i=>{let s=e[i],a=n[i];if(s)if(Ut(a))r[i]=$w(s,r[i],a);else{let{_default:l}=s;l&&(r[i]=r[i]||{},r[i][l]=O(r[i][l],a))}else r[i]=O(r[i],a)}),r),{}),"mergeClassNames"),ND=o((e,...t)=>V(()=>$w.apply(void 0,[e].concat(t)),[e].concat(t)),"useSemanticClassNames"),MD=o((...e)=>e.filter(t=>!!t).reduce((t,r={})=>(Object.keys(r).forEach(n=>{t[n]={...t[n],...r[n]}}),t),{}),"mergeStyles"),TD=o((...e)=>V(()=>MD.apply(void 0,e),[].concat(e)),"useSemanticStyles"),$t=o((e,t="root")=>V(()=>e?{[t]:e}:void 0,[e,t]),"useSemanticRootStyle"),Ew=o((e,t)=>er(e)?e(t):e,"resolveStyleOrClass"),Qt=o((e,t,r,n)=>{let i=e.map(c=>c?Ew(c,r):void 0),s=t.map(c=>c?Ew(c,r):void 0),a=ND.apply(void 0,[n].concat(to(i))),l=TD.apply(void 0,to(s));return V(()=>n?[qm(a,n),qm(l,n)]:[a,l],[a,l,n])},"useMergeSemantic");function OD(){}o(OD,"noop");var{resetWarned:s9}=Hr;var Iw=bt({}),kD=()=>{let e=o(()=>{},"noopWarning");return e.deprecated=OD,e},Xl=kD;function DD(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){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)}o(DD,"murmur2");var Us=DD;var AD="%";function Gm(e){return e.join(AD)}o(Gm,"pathKey");var Pw=0,db=class{static{o(this,"Entity")}instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(Gm(t))}opGet(t){return this.cache.get(t)||null}update(t,r){return this.opUpdate(Gm(t),r)}opUpdate(t,r){let n=this.cache.get(t),i=r(n);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,Pw),Pw+=1)}},Nw=db;var Ua="data-token-hash",Nn="data-css-hash";var Qi="__cssinjs_instance__";function Mw(){let e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){let t=document.body.querySelectorAll(`style[${Nn}]`)||[],{firstChild:r}=document.head;Array.from(t).forEach(i=>{i[Qi]||=e,i[Qi]===e&&document.head.insertBefore(i,r)});let n={};Array.from(document.querySelectorAll(`style[${Nn}]`)).forEach(i=>{let s=i.getAttribute(Nn);n[s]?i[Qi]===e&&i.parentNode?.removeChild(i):n[s]=!0})}return new Nw(e)}o(Mw,"createCache");var _D=bt({hashPriority:"low",cache:Mw(),defaultCache:!0,autoPrefix:!1});var Di=_D;var BD="CALC_UNIT",R9=new RegExp(BD,"g");function FD(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}o(FD,"sameDerivativeOption");var Yl=class e{static{o(this,"ThemeCache")}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,r=!1){let n={map:this.cache};return t.forEach(i=>{n?n=n?.map?.get(i):n=void 0}),n?.value&&r&&(n.value[1]=this.cacheCallTimes++),n?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,r){if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){let[i]=this.keys.reduce((s,a)=>{let[,l]=s;return this.internalGet(a)[1]<l?[a,this.internalGet(a)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(t)}let n=this.cache;t.forEach((i,s)=>{if(s===t.length-1)n.set(i,{value:[r,this.cacheCallTimes++]});else{let a=n.get(i);a?a.map||(a.map=new Map):n.set(i,{map:new Map}),n=n.get(i).map}})}deleteByPath(t,r){let n=t.get(r[0]);if(r.length===1)return n.map?t.set(r[0],{map:n.map}):t.delete(r[0]),n.value?.[0];let i=this.deleteByPath(n.map,r.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(r[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(r=>!FD(r,t)),this.deleteByPath(this.cache,t)}};var Tw=0,xs=class{static{o(this,"Theme")}derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Tw,t.length===0&&(t.length>0,void 0),Tw+=1}getDerivativeToken(t){return this.derivatives.reduce((r,n)=>n(t,r),void 0)}};var ub=new Yl;function qs(e){let t=Array.isArray(e)?e:[e];return ub.has(t)||ub.set(t,new xs(t)),ub.get(t)}o(qs,"createTheme");var zD=new WeakMap,mb={};function kw(e,t){let r=zD;for(let n=0;n<t.length;n+=1){let i=t[n];r.has(i)||r.set(i,new WeakMap),r=r.get(i)}return r.has(mb)||r.set(mb,e()),r.get(mb)}o(kw,"memoResult");var Ow=new WeakMap;function Kl(e){let t=Ow.get(e)||"";return t||(Object.keys(e).forEach(r=>{let n=e[r];t+=r,n instanceof xs?t+=n.id:n&&typeof n=="object"?t+=Kl(n):t+=n}),t=Us(t),Ow.set(e,t)),t}o(Kl,"flattenToken");function Dw(e,t){return Us(`${t}_${Kl(e)}`)}o(Dw,"token2key");var tU=`random-${Date.now()}-${Math.random()}`.replace(/\./g,"");var Pd=go();function Q(e){return typeof e=="number"?`${e}px`:e}o(Q,"unit");function Gs(e,t,r,n={},i=!1){if(i)return e;let s={...n,[Ua]:t,[Nn]:r};return`<style ${Object.keys(s).map(l=>{let c=s[l];return c?`${l}="${c}"`:null}).filter(l=>l).join(" ")}>${e}</style>`}o(Gs,"toStyleStr");function Xm(e){let{hashCls:t,hashPriority:r="low"}=e||{};if(!t)return"";let n=`.${t}`;return r==="low"?`:where(${n})`:n}o(Xm,"where");var Aw=o(e=>e!=null,"isNonNullable");function Ql(e,t){let r=typeof t=="function"?t():t;return r?{...e,csp:{...e.csp,nonce:r}}:e}o(Ql,"injectCSPNonce");var Zl=o((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(),"token2CSSVar"),VD=o((e,t,r)=>{let{hashCls:n,hashPriority:i="low",scope:s}=r||{};if(!Object.keys(e).length)return"";let a=`${Xm({hashCls:n,hashPriority:i})}.${t}`,l=[s].flat().filter(Boolean);return`${l.length?l.map(d=>`${a}.${d}`).join(", "):a}{${Object.entries(e).map(([d,u])=>`${d}:${u};`).join("")}}`},"serializeCSSVar"),Ym=o((e,t,r)=>{let{hashCls:n,hashPriority:i="low",prefix:s,unitless:a,ignore:l,preserve:c}=r||{},d={},u={};return Object.entries(e).forEach(([m,p])=>{if(c?.[m])u[m]=p;else if((typeof p=="string"||typeof p=="number")&&!l?.[m]){let g=Zl(m,s);d[g]=typeof p=="number"&&!a?.[m]?`${p}px`:String(p),u[m]=`var(${g})`}}),[u,VD(d,t,{scope:r?.scope,hashCls:n,hashPriority:i})]},"transformToken");function jD(){return!1}o(jD,"useProdHMR");var _w=jD;var Km=new Map;function qa(e,t,r,n,i){let{cache:s}=K(Di),a=[e,...t],l=Gm(a),c=_w(),d=o(p=>{s.opUpdate(l,g=>{let[h=0,b]=g||[void 0,void 0],x=b||r(),S=[h,x];return p?p(S):S})},"buildCache");V(()=>{d()},[l]);let m=s.opGet(l)[1];return Uh(()=>(d(([p,g])=>[p+1,g]),Km.has(l)||(i?.(m),Km.set(l,!0),Promise.resolve().then(()=>{Km.delete(l)})),()=>{s.opUpdate(l,p=>{let[g=0,h]=p||[];return g-1===0?(n?.(h,!1),Km.delete(l),null):[g-1,h]})}),[l]),m}o(qa,"useGlobalCache");var WD={},UD="css",Ga=new Map;function qD(e){Ga.set(e,(Ga.get(e)||0)+1)}o(qD,"recordCleanToken");function GD(e,t){typeof document<"u"&&document.querySelectorAll(`style[${Ua}="${e}"]`).forEach(n=>{n[Qi]===t&&n.parentNode?.removeChild(n)})}o(GD,"removeStyleTags");var XD=-1;function YD(e,t){Ga.set(e,(Ga.get(e)||0)-1);let r=new Set;Ga.forEach((n,i)=>{n<=0&&r.add(i)}),Ga.size-r.size>XD&&r.forEach(n=>{GD(n,t),Ga.delete(n)})}o(YD,"cleanTokenStyle");var Lw=o((e,t,r,n)=>{let s={...r.getDerivativeToken(e),...t};return n&&(s=n(s)),s},"getComputedToken"),pb="token";function Qm(e,t,r){let{cache:{instanceId:n},container:i,hashPriority:s}=K(Di),{salt:a="",override:l=WD,formatToken:c,getComputedToken:d,cssVar:u,nonce:m}=r,p=kw(()=>Object.assign({},...t),t),g=Kl(p),h=Kl(l),b=Kl(u);return qa(pb,[a,e.id,g,h,b],()=>{let x=d?d(p,l,e):Lw(p,l,e,c),S={...x},y=`${a}_${u.prefix}`,C=Us(y),w=`${UD}-${C}`;S._tokenKey=Dw(S,y);let[E,R]=Ym(x,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve,hashPriority:s,hashCls:u.hashed?w:void 0});return E._hashId=C,qD(u.key),[E,w,S,R,u.key]},([,,,,x])=>{YD(x,n)},([,,,x,S])=>{if(!x)return;let y={mark:Nn,prepend:"queue",attachTo:i,priority:-999};y=Ql(y,m);let C=Fn(x,Us(`css-var-${S}`),y);C[Qi]=n,C.setAttribute(Ua,S)})}o(Qm,"useCacheToken");var Bw=o((e,t,r)=>{let[,,n,i,s]=e,{plain:a}=r||{};if(!i)return null;let l=n._tokenKey,c=-999,d={"data-rc-order":"prependQueue","data-rc-priority":`${c}`},u=Gs(i,s,l,d,a);return[c,l,u]},"extract");var KD={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},fb=KD;var uo="-ms-",Xa="-moz-",_r="-webkit-",Zm="comm",Jl="rule",ec="decl";var Fw="@import";var Hw="@namespace",Jm="@keyframes";var zw="@layer";var Vw=Math.abs,Ya=String.fromCharCode,Nd=Object.assign;function jw(e,t){return ko(e,0)^45?(((t<<2^ko(e,0))<<2^ko(e,1))<<2^ko(e,2))<<2^ko(e,3):0}o(jw,"hash");function ep(e){return e.trim()}o(ep,"trim");function Ai(e,t){return(e=t.exec(e))?e[0]:e}o(Ai,"match");function mr(e,t,r){return e.replace(t,r)}o(mr,"replace");function tp(e,t){return e.indexOf(t)}o(tp,"indexof");function ko(e,t){return e.charCodeAt(t)|0}o(ko,"charat");function _i(e,t,r){return e.slice(t,r)}o(_i,"substr");function Sn(e){return e.length}o(Sn,"strlen");function rp(e){return e.length}o(rp,"sizeof");function Ka(e,t){return t.push(e),e}o(Ka,"append");function Ww(e,t){return e.map(t).join("")}o(Ww,"combine");function gb(e,t){return e.filter(function(r){return!Ai(r,t)})}o(gb,"filter");var op=1,tc=1,Uw=0,bi=0,Uo=0,oc="";function Md(e,t,r,n,i,s,a,l){return{value:e,root:t,parent:r,type:n,props:i,children:s,line:op,column:tc,length:a,return:"",siblings:l}}o(Md,"node");function Ss(e,t){return Nd(Md("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}o(Ss,"copy");function Qa(e){for(;e.root;)e=Ss(e.root,{children:[e]});Ka(e,e.siblings)}o(Qa,"lift");function qw(){return Uo}o(qw,"char");function Gw(){return Uo=bi>0?ko(oc,--bi):0,tc--,Uo===10&&(tc=1,op--),Uo}o(Gw,"prev");function vi(){return Uo=bi<Uw?ko(oc,bi++):0,tc++,Uo===10&&(tc=1,op++),Uo}o(vi,"next");function Cs(){return ko(oc,bi)}o(Cs,"peek");function Td(){return bi}o(Td,"caret");function np(e,t){return _i(oc,e,t)}o(np,"slice");function rc(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}o(rc,"token");function Xw(e){return op=tc=1,Uw=Sn(oc=e),bi=0,[]}o(Xw,"alloc");function Yw(e){return oc="",e}o(Yw,"dealloc");function ip(e){return ep(np(bi-1,hb(e===91?e+2:e===40?e+1:e)))}o(ip,"delimit");function Kw(e){for(;(Uo=Cs())&&Uo<33;)vi();return rc(e)>2||rc(Uo)>3?"":" "}o(Kw,"whitespace");function Qw(e,t){for(;--t&&vi()&&!(Uo<48||Uo>102||Uo>57&&Uo<65||Uo>70&&Uo<97););return np(e,Td()+(t<6&&Cs()==32&&vi()==32))}o(Qw,"escaping");function hb(e){for(;vi();)switch(Uo){case e:return bi;case 34:case 39:e!==34&&e!==39&&hb(Uo);break;case 40:e===41&&hb(e);break;case 92:vi();break}return bi}o(hb,"delimiter");function Zw(e,t){for(;vi()&&e+Uo!==57;)if(e+Uo===84&&Cs()===47)break;return"/*"+np(t,bi-1)+"*"+Ya(e===47?e:vi())}o(Zw,"commenter");function Jw(e){for(;!rc(Cs());)vi();return np(e,bi)}o(Jw,"identifier");function bb(e){return Yw(sp("",null,null,null,[""],e=Xw(e),0,[0],e))}o(bb,"compile");function sp(e,t,r,n,i,s,a,l,c){for(var d=0,u=0,m=a,p=0,g=0,h=0,b=1,v=1,x=1,S=0,y=0,C="",w=i,E=s,R=n,$=C;v;)switch(h=y,y=vi()){case 40:h!=108&&ko($,m-1)==58?(S++,$+="("):$+=ip(y);break;case 41:S--,$+=")";break;case 34:case 39:case 91:$+=ip(y);break;case 9:case 10:case 13:case 32:if(S>0){$+=Ya(y);break}$+=Kw(h);break;case 92:$+=Qw(Td()-1,7);continue;case 47:switch(Cs()){case 42:case 47:Ka(QD(Zw(vi(),Td()),t,r,c),c),(rc(h||1)==5||rc(Cs()||1)==5)&&Sn($)&&_i($,-1,void 0)!==" "&&($+=" ");break;default:$+="/"}break;case 123*b:l[d++]=Sn($)*x;case 125*b:case 59:case 0:if(S>0&&y){$+=Ya(y);break}switch(y){case 0:case 125:v=0;case 59+u:x==-1&&($=mr($,/\f/g,"")),g>0&&(Sn($)-m||b===0)&&Ka(g>32?tR($+";",n,r,m-1,c):tR(mr($," ","")+";",n,r,m-2,c),c);break;case 59:$+=";";default:if(Ka(R=eR($,t,r,d,u,i,l,C,w=[],E=[],m,s),s),y===123)if(u===0)sp($,t,R,R,w,s,m,l,E);else{switch(p){case 99:if(ko($,3)===110)break;case 108:if(ko($,2)===97)break;default:u=0;case 100:case 109:case 115:}u?sp(e,R,R,n&&Ka(eR(e,R,R,0,0,i,l,C,i,w=[],m,E),E),i,E,m,l,n?w:E):sp($,R,R,R,[""],E,0,l,E)}}d=u=g=0,b=x=1,C=$="",m=a;break;case 58:m=1+Sn($),g=h;default:if(b<1){if(y==123)--b;else if(y==125&&b++==0&&Gw()==125)continue}switch($+=Ya(y),y*b){case 38:x=u>0?1:($+="\f",-1);break;case 44:if(S>0)break;l[d++]=(Sn($)-1)*x,x=1;break;case 64:Cs()===45&&($+=ip(vi())),p=Cs(),u=m=Sn(C=$+=Jw(Td())),y++;break;case 45:h===45&&Sn($)==2&&(b=0)}}return s}o(sp,"parse");function eR(e,t,r,n,i,s,a,l,c,d,u,m){for(var p=i-1,g=i===0?s:[""],h=rp(g),b=0,v=0,x=0;b<n;++b)for(var S=0,y=_i(e,p+1,p=Vw(v=a[b])),C=e;S<h;++S)(C=ep(v>0?g[S]+" "+y:mr(y,/&\f/g,g[S])))&&(c[x++]=C);return Md(e,t,r,i===0?Jl:l,c,d,u,m)}o(eR,"ruleset");function QD(e,t,r,n){return Md(e,t,r,Zm,Ya(qw()),_i(e,2,-2),0,n)}o(QD,"comment");function tR(e,t,r,n,i){return Md(e,t,r,ec,_i(e,0,n),_i(e,n+1,-1),n,i)}o(tR,"declaration");function vb(e,t,r){switch(jw(e,t)){case 5103:return _r+"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 _r+e+e;case 4855:return _r+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return Xa+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _r+e+Xa+e+uo+e+e;case 5936:switch(ko(e,t+11)){case 114:return _r+e+uo+mr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _r+e+uo+mr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _r+e+uo+mr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return _r+e+uo+e+e;case 6165:return _r+e+uo+"flex-"+e+e;case 5187:return _r+e+mr(e,/(\w+).+(:[^]+)/,_r+"box-$1$2"+uo+"flex-$1$2")+e;case 5443:return _r+e+uo+"flex-item-"+mr(e,/flex-|-self/g,"")+(Ai(e,/flex-|baseline/)?"":uo+"grid-row-"+mr(e,/flex-|-self/g,""))+e;case 4675:return _r+e+uo+"flex-line-pack"+mr(e,/align-content|flex-|-self/g,"")+e;case 5548:return _r+e+uo+mr(e,"shrink","negative")+e;case 5292:return _r+e+uo+mr(e,"basis","preferred-size")+e;case 6060:return _r+"box-"+mr(e,"-grow","")+_r+e+uo+mr(e,"grow","positive")+e;case 4554:return _r+mr(e,/([^-])(transform)/g,"$1"+_r+"$2")+e;case 6187:return mr(mr(mr(e,/(zoom-|grab)/,_r+"$1"),/(image-set)/,_r+"$1"),e,"")+e;case 5495:case 3959:return mr(e,/(image-set\([^]*)/,_r+"$1$`$1");case 4968:return mr(mr(e,/(.+:)(flex-)?(.*)/,_r+"box-pack:$3"+uo+"flex-pack:$3"),/space-between/,"justify")+_r+e+e;case 4200:if(!Ai(e,/flex-|baseline/))return uo+"grid-column-align"+_i(e,t)+e;break;case 2592:case 3360:return uo+mr(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(n,i){return t=i,Ai(n.props,/grid-\w+-end/)})?~tp(e+(r=r[t].value),"span")?e:uo+mr(e,"-start","")+e+uo+"grid-row-span:"+(~tp(r,"span")?Ai(r,/\d+/):+Ai(r,/\d+/)-+Ai(e,/\d+/))+";":uo+mr(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(n){return Ai(n.props,/grid-\w+-start/)})?e:uo+mr(mr(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return mr(e,/(.+)-inline(.+)/,_r+"$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(Sn(e)-1-t>6)switch(ko(e,t+1)){case 109:if(ko(e,t+4)!==45)break;case 102:return mr(e,/(.+:)(.+)-([^]+)/,"$1"+_r+"$2-$3$1"+Xa+(ko(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tp(e,"stretch")?vb(mr(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return mr(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(n,i,s,a,l,c,d){return uo+i+":"+s+d+(a?uo+i+"-span:"+(l?c:+c-+s)+d:"")+e});case 4949:if(ko(e,t+6)===121)return mr(e,":",":"+_r)+e;break;case 6444:switch(ko(e,ko(e,14)===45?18:11)){case 120:return mr(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+_r+(ko(e,14)===45?"inline-":"")+"box$3$1"+_r+"$2$3$1"+uo+"$2box$3")+e;case 100:return mr(e,":",":"+uo)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return mr(e,"scroll-","scroll-snap-")+e}return e}o(vb,"prefix");function Za(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}o(Za,"serialize");function yb(e,t,r,n){switch(e.type){case zw:if(e.children.length)break;case Fw:case Hw:case ec:return e.return=e.return||e.value;case Zm:return"";case Jm:return e.return=e.value+"{"+Za(e.children,n)+"}";case Jl:if(!Sn(e.value=e.props.join(",")))return""}return Sn(r=Za(e.children,n))?e.return=e.value+"{"+r+"}":""}o(yb,"stringify");function rR(e){var t=rp(e);return function(r,n,i,s){for(var a="",l=0;l<t;l++)a+=e[l](r,n,i,s)||"";return a}}o(rR,"middleware");function oR(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ec:e.return=vb(e.value,e.length,r);return;case Jm:return Za([Ss(e,{value:mr(e.value,"@","@"+_r)})],n);case Jl:if(e.length)return Ww(r=e.props,function(i){switch(Ai(i,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Qa(Ss(e,{props:[mr(i,/:(read-\w+)/,":"+Xa+"$1")]})),Qa(Ss(e,{props:[i]})),Nd(e,{props:gb(r,n)});break;case"::placeholder":Qa(Ss(e,{props:[mr(i,/:(plac\w+)/,":"+_r+"input-$1")]})),Qa(Ss(e,{props:[mr(i,/:(plac\w+)/,":"+Xa+"$1")]})),Qa(Ss(e,{props:[mr(i,/:(plac\w+)/,uo+"input-$1")]})),Qa(Ss(e,{props:[i]})),Nd(e,{props:gb(r,n)});break}return""})}}o(oR,"prefixer");var xb="data-ant-cssinjs-cache-path",Sb="_FILE_STYLE__";var Ja,nR=!0;function rA(){if(!Ja&&(Ja={},go())){let e=document.createElement("div");e.className=xb,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[i,s]=n.split(":");Ja[i]=s});let r=document.querySelector(`style[${xb}]`);r&&(nR=!1,r.parentNode?.removeChild(r)),document.body.removeChild(e)}}o(rA,"prepare");function iR(e){return rA(),!!Ja[e]}o(iR,"existPath");function sR(e){let t=Ja[e],r=null;if(t&&go())if(nR)r=Sb;else{let n=document.querySelector(`style[${Nn}="${Ja[e]}"]`);n?r=n.innerHTML:delete Ja[e]}return[r,t]}o(sR,"getStyleAndHash");var oA="_skip_check_",lR="_multi_value_";function ap(e,t){return(t?Za(bb(e),rR([oR,yb])):Za(bb(e),yb)).replace(/\{%%%\:[^;];}/g,";")}o(ap,"normalizeStyle");function nA(e){return typeof e=="object"&&e&&(oA in e||lR in e)}o(nA,"isCompoundCSSProperty");function aR(e,t,r="high"){if(!t)return e;let n=Xm({hashCls:t,hashPriority:r});return e.split(",").map(s=>{let a=s.trim().split(/\s+/),l=a[0]||"",c=l.match(/^\w+/)?.[0]||"";return l=`${c}${n}${l.slice(c.length)}`,[l,...a.slice(1)].join(" ")}).join(",")}o(aR,"injectSelectorHash");var Cb=o((e,t={},{root:r,injectHash:n,parentSelectors:i}={root:!0,parentSelectors:[]})=>{let{hashId:s,layer:a,path:l,hashPriority:c,transformers:d=[],linters:u=[]}=t,m="",p={};function g(v){let x=v.getName(s);if(!p[x]){let[S]=Cb(v.style,t,{root:!1,parentSelectors:i});p[x]=`@keyframes ${v.getName(s)}${S}`}}o(g,"parseKeyframes");function h(v,x=[]){return v.forEach(S=>{Array.isArray(S)?h(S,x):S&&x.push(S)}),x}return o(h,"flattenList"),h(Array.isArray(e)?e:[e]).forEach(v=>{let x=typeof v=="string"&&!r?{}:v;if(typeof x=="string")m+=`${x}
40
- `;else if(x._keyframe)g(x);else{let S=d.reduce((y,C)=>C?.visit?.(y)||y,x);Object.keys(S).forEach(y=>{let C=S[y];if(typeof C=="object"&&C&&(y!=="animationName"||!C._keyframe)&&!nA(C)){let w=!1,E=y.trim(),R=!1;(r||n)&&s?E.startsWith("@")?w=!0:E==="&"?E=aR("",s,c):E=aR(y,s,c):r&&!s&&(E==="&"||E==="")&&(E="",R=!0);let[$,I]=Cb(C,t,{root:R,injectHash:w,parentSelectors:[...i,E]});p={...p,...I},m+=`${E}${$}`}else{let w=function(R,$){let I=R.replace(/[A-Z]/g,M=>`-${M.toLowerCase()}`),T=$;!fb[R]&&typeof T=="number"&&T!==0&&(T=`${T}px`),R==="animationName"&&$?._keyframe&&(g($),T=$.getName(s)),m+=`${I}:${T};`};o(w,"appendStyle");let E=C?.value??C;typeof C=="object"&&C?.[lR]&&Array.isArray(E)?E.forEach(R=>{w(y,R)}):Aw(E)&&w(y,E)}})}}),r?a&&(m&&(m=`@layer ${a.name} {${m}}`),a.dependencies&&(p[`@layer ${a.name}`]=a.dependencies.map(v=>`@layer ${v}, ${a.name};`).join(`
41
- `))):m=`{${m}}`,[m,p]},"parseStyle");function wb(e,t){return Us(`${e.join("%")}${t}`)}o(wb,"uniqueHash");var Rb="style";function Xs(e,t){let{path:r,hashId:n,layer:i,nonce:s,clientOnly:a,order:l=0}=e,{mock:c,hashPriority:d,container:u,transformers:m,linters:p,cache:g,layer:h,autoPrefix:b}=K(Di),v=[n||""];h&&v.push("layer"),v.push(...r);let x=Pd;qa(Rb,v,()=>{let S=v.join("|");if(iR(S)){let[$,I]=sR(S);if($)return[$,I,{},a,l]}let y=t(),[C,w]=Cb(y,{hashId:n,hashPriority:d,layer:h?i:void 0,path:r.join("-"),transformers:m,linters:p}),E=ap(C,b||!1),R=wb(v,E);return[E,R,w,a,l]},(S,y)=>{let[,C]=S;y&&Pd&&Oi(C,{mark:Nn,attachTo:u})},S=>{let[y,C,w,,E]=S;if(x&&y!==Sb){let R={mark:Nn,prepend:h?!1:"queue",attachTo:u,priority:E};R=Ql(R,s);let $=[],I=[];Object.keys(w).forEach(M=>{M.startsWith("@layer")?$.push(M):I.push(M)}),$.forEach(M=>{Fn(ap(w[M],b||!1),`_layer-${M}`,{...R,prepend:!0})});let T=Fn(y,C,R);T[Qi]=g.instanceId,I.forEach(M=>{Fn(ap(w[M],b||!1),`_effect-${M}`,R)})}})}o(Xs,"useStyleRegister");var cR=o((e,t,r)=>{let[n,i,s,a,l]=e,{plain:c,autoPrefix:d}=r||{};if(a)return null;let u=n,m={"data-rc-order":"prependQueue","data-rc-priority":`${l}`};return u=Gs(n,void 0,i,m,c),s&&Object.keys(s).forEach(p=>{if(!t[p]){t[p]=!0;let g=ap(s[p],d||!1),h=Gs(g,void 0,`_effect-${p}`,m,c);p.startsWith("@layer")?u=h+u:u+=h}}),[l,i,u]},"extract");var Eb="cssVar",iA=o((e,t)=>{let{key:r,prefix:n,unitless:i,ignore:s,token:a,hashId:l,scope:c,nonce:d}=e,{cache:{instanceId:u},container:m,hashPriority:p}=K(Di),{_tokenKey:g}=a,h=Array.isArray(c)?c.join("@@"):c,b=[...e.path,r,h,g];return qa(Eb,b,()=>{let x=t(),[S,y]=Ym(x,r,{prefix:n,unitless:i,ignore:s,scope:c,hashPriority:p,hashCls:l}),C=wb(b,y);return[S,y,C,r]},([,,x])=>{Pd&&Oi(x,{mark:Nn,attachTo:m})},([,x,S])=>{if(!x)return;let y={mark:Nn,prepend:"queue",attachTo:m,priority:-999};y=Ql(y,d);let C=Fn(x,S,y);C[Qi]=u,C.setAttribute(Ua,r)})},"useCSSVarRegister"),dR=o((e,t,r)=>{let[,n,i,s]=e,{plain:a}=r||{};if(!n)return null;let l=-999,c={"data-rc-order":"prependQueue","data-rc-priority":`${l}`},d=Gs(n,s,i,c,a);return[l,i,d]},"extract"),$b=iA;var aq={[Rb]:cR,[pb]:Bw,[Eb]:dR};var Ib=class{static{o(this,"Keyframe")}name;style;constructor(t,r){this.name=t,this.style=r}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0},ir=Ib;function nc(e){return e.notSplit=!0,e}o(nc,"noSplit");var mq={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:nc(["borderTop","borderBottom"]),borderBlockStart:nc(["borderTop"]),borderBlockEnd:nc(["borderBottom"]),borderInline:nc(["borderLeft","borderRight"]),borderInlineStart:nc(["borderLeft"]),borderInlineEnd:nc(["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 sA=bt({}),ic=sA;var uR=bt(void 0);var aA={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"},lp=aA;var sc={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var lA={...sc,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"},mR=lA;var cA={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},cp=cA;var dA={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"],...mR},timePickerLocale:{...cp}},Ys=dA;var pR=Ys;var ti="${label} is not a valid ${type}",uA={locale:"en",Pagination:lp,DatePicker:Ys,TimePicker:cp,Calendar:pR,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:ti,method:ti,array:ti,object:ti,number:ti,date:ti,boolean:ti,integer:ti,float:ti,regexp:ti,email:ti,url:ti,hex:ti},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"}},Mn=uA;var dp={...Mn.Modal},up=[],fR=o(()=>up.reduce((e,t)=>({...e,...t}),Mn.Modal),"generateLocale");function gR(e){if(e){let t={...e};return up.push(t),dp=fR(),()=>{up=up.filter(r=>r!==t),dp=fR()}}dp={...Mn.Modal}}o(gR,"changeConfirmLocale");function mp(){return dp}o(mp,"getConfirmLocale");var mA=bt(void 0),ac=mA;var pA=o((e,t)=>{let r=K(ac),n=V(()=>{let s=t||Mn[e],a=r?.[e]??{};return{...er(s)?s():s,...a||{}}},[e,t,r]),i=V(()=>{let s=r?.locale;return r?.exist&&!s?Mn.locale:s},[r]);return[n,i]},"useLocale"),Do=pA;var hR="internalMark",fA=o(e=>{let{locale:t={},children:r,_ANT_MARK__:n}=e;fe(()=>gR(t?.Modal),[t]);let i=V(()=>({...t,exist:!0}),[t]);return f(ac.Provider,{value:i},r)},"LocaleProvider"),bR=fA;var gA=qs(za),kd=gA;var Dd={token:bs,override:{override:bs},hashed:!0},Ad=_.createContext(Dd);var hA=bt(null),pp=hA;var vR=!1;function Pb(e){return typeof e=="boolean"&&(vR=e),vR}o(Pb,"inlineMock");var yR=[];function Nb(e,t){let[r]=ce(()=>go()?document.createElement("div"):null),n=H(!1),i=K(pp),[s,a]=ce(yR),l=i||(n.current?void 0:u=>{a(m=>[u,...m])});function c(){r.parentElement||document.body.appendChild(r),n.current=!0}o(c,"append");function d(){r.parentElement?.removeChild(r),n.current=!1}return o(d,"cleanup"),Pt(()=>(e?i?i(c):c():d(),d),[e]),Pt(()=>{s.length&&(s.forEach(u=>u()),a(yR))},[s]),[r,l]}o(Nb,"useDom");function xR(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}o(xR,"isBodyOverflowing");var bA=`rc-util-locker-${Date.now()}`,SR=0;function Mb(e){let t=!!e,[r]=ce(()=>(SR+=1,`${bA}_${SR}`));Pt(()=>{if(t){let n=sb(document.body).width,i=xR();Fn(`
42
- html body {
43
- overflow-y: hidden;
44
- ${i?`width: calc(100% - ${n}px);`:""}
45
- }`,r)}else Oi(r);return()=>{Oi(r)}},[t,r])}o(Mb,"useScrollLocker");var el=[],vA=200,CR=0;var wR=o(e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-CR<vA)return;let r=el.length;for(let n=r-1;n>=0;n-=1)el[n].onEsc({top:n===r-1,event:e})}},"onGlobalKeyDown"),RR=o(()=>{CR=Date.now()},"onGlobalCompositionEnd");function yA(){window.addEventListener("keydown",wR),window.addEventListener("compositionend",RR)}o(yA,"attachGlobalEventListeners");function xA(){el.length===0&&(window.removeEventListener("keydown",wR),window.removeEventListener("compositionend",RR))}o(xA,"detachGlobalEventListeners");function Tb(e,t){let r=Wo(),n=De(t),i=o(()=>{el.find(a=>a.id===r)||el.push({id:r,onEsc:n})},"ensure"),s=o(()=>{el=el.filter(a=>a.id!==r)},"clear");V(()=>{e?i():e||s()},[e]),fe(()=>{if(e)return i(),yA(),()=>{s(),xA()}},[e])}o(Tb,"useEscKeyDown");var ER=o(e=>e===!1?!1:!go()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,"getPortalContainer"),SA=le((e,t)=>{let{open:r,autoLock:n,getContainer:i,debug:s,autoDestroy:a=!0,children:l,onEsc:c}=e,[d,u]=ce(r),m=d||r;fe(()=>{(a||r)&&u(r)},[r,a]);let[p,g]=ce(()=>ER(i));fe(()=>{let w=ER(i);g(()=>w??null)});let[h,b]=Nb(m&&!p,s),v=p??h;Mb(n&&r&&go()&&(v===h||v===document.body)),Tb(r,c);let x=null;l&&hi(l)&&t&&(x=Zo(l));let S=Qo(x,t);if(!m||!go()||p===void 0)return null;let y=v===!1||Pb(),C=l;return t&&(C=so(l,{ref:S})),f(pp.Provider,{value:b},y?C:hw(C,v))}),$R=SA;var tl=$R;var fp=bt(null);function IR({children:e,onBatchResize:t}){let r=H(0),n=H([]),i=K(fp),s=At((a,l,c)=>{r.current+=1;let d=r.current;n.current.push({size:a,element:l,data:c}),Promise.resolve().then(()=>{d===r.current&&(t?.(n.current),n.current=[])}),i?.(a,l,c)},[t,i]);return f(fp.Provider,{value:s},e)}o(IR,"Collection");var Ks=new Map;function CA(e){e.forEach(t=>{let{target:r}=t;Ks.get(r)?.forEach(n=>n(r))})}o(CA,"onResize");var Ob;function PR(){return Ob||(Ob=new ResizeObserver(CA)),Ob}o(PR,"ensureResizeObserver");function NR(e,t){Ks.has(e)||(Ks.set(e,new Set),PR().observe(e)),Ks.get(e).add(t)}o(NR,"observe");function MR(e,t){Ks.has(e)&&(Ks.get(e).delete(t),Ks.get(e).size||(PR().unobserve(e),Ks.delete(e)))}o(MR,"unobserve");function lc(e,t,r,n){let i=H({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),s=De(c=>{let{width:d,height:u}=c.getBoundingClientRect(),{offsetWidth:m,offsetHeight:p}=c,g=Math.floor(d),h=Math.floor(u);if(i.current.width!==g||i.current.height!==h||i.current.offsetWidth!==m||i.current.offsetHeight!==p){let b={width:g,height:h,offsetWidth:m,offsetHeight:p};i.current=b;let v=m===Math.round(d)?d:m,x=p===Math.round(u)?u:p,S={...b,offsetWidth:v,offsetHeight:x};n?.(S,c),Promise.resolve().then(()=>{r?.(S,c)})}}),a=typeof t=="function",l=H(0);fe(()=>{let c=a?t():t;return c&&e?NR(c,s):e&&a&&(l.current+=1),()=>{c&&MR(c,s)}},[e,a?l.current:t])}o(lc,"useResizeObserver");function wA(e,t){let{children:r,disabled:n,onResize:i,data:s}=e,a=H(null),l=K(fp),c=typeof r=="function",d=c?r(a):r,u=!c&&Tr(d)&&hi(d),m=u?Zo(d):null,p=Qo(m,a),g=o(()=>ei(a.current),"getDomElement");return ft(t,()=>g()),lc(!n,g,i,(h,b)=>{l?.(h,b,s)}),u?so(d,{ref:p}):d}o(wA,"SingleObserver");var RA=le(wA),TR=RA;function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kb.apply(this,arguments)}o(kb,"_extends");var EA="rc-observer-key";function $A(e,t){let{children:r}=e;return(typeof r=="function"?[r]:co(r)).map((i,s)=>{let a=i?.key||`${EA}-${s}`;return f(TR,kb({},e,{key:a,ref:s===0?t:void 0}),i)})}o($A,"ResizeObserver");var OR=le($A);OR.Collection=IR;var Cn=OR;var Db=bt({}),IA=o(e=>{let{children:t,...r}=e,n=V(()=>({motion:r.motion}),[r.motion]);return f(Db.Provider,{value:n},t)},"MotionProvider"),Ab=IA;var yi="none",_d="appear",Ld="enter",Bd="leave",_b="none",zn="prepare",Zi="start",ws="active",gp="end",hp="prepared";function kR(e,t){let r={};return r[e.toLowerCase()]=t.toLowerCase(),r[`Webkit${e}`]=`webkit${t}`,r[`Moz${e}`]=`moz${t}`,r[`ms${e}`]=`MS${t}`,r[`O${e}`]=`o${t.toLowerCase()}`,r}o(kR,"makePrefixMap");function PA(e,t){let r={animationend:kR("Animation","AnimationEnd"),transitionend:kR("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}o(PA,"getVendorPrefixes");var NA=PA(go(),typeof window<"u"?window:{}),DR={};go()&&({style:DR}=document.createElement("div"));var bp={};function AR(e){if(bp[e])return bp[e];let t=NA[e];if(t){let r=Object.keys(t),n=r.length;for(let i=0;i<n;i+=1){let s=r[i];if(Object.prototype.hasOwnProperty.call(t,s)&&s in DR)return bp[e]=t[s],bp[e]}}return""}o(AR,"getVendorPrefixedEventName");var _R=AR("animationend"),LR=AR("transitionend"),vp=!!(_R&&LR),Lb=_R||"animationend",Bb=LR||"transitionend";function Fb(e,t){if(!e)return null;if(typeof e=="object"){let r=t.replace(/-\w/g,n=>n[1].toUpperCase());return e[r]}return`${e}-${t}`}o(Fb,"getTransitionName");var BR=o(e=>{let t=H();function r(i){i&&(i.removeEventListener(Bb,e),i.removeEventListener(Lb,e))}o(r,"removeMotionEvents");function n(i){t.current&&t.current!==i&&r(t.current),i&&i!==t.current&&(i.addEventListener(Bb,e),i.addEventListener(Lb,e),t.current=i)}return o(n,"patchMotionEvents"),fe(()=>()=>{r(t.current),t.current=null},[]),[n,r]},"default");var MA=go()?Va:fe,yp=MA;var FR=o(()=>{let e=H(null);function t(){St.cancel(e.current)}o(t,"cancelNextFrame");function r(n,i=2){t();let s=St(()=>{i<=1?n({isCanceled:o(()=>s!==e.current,"isCanceled")}):r(n,i-1)});e.current=s}return o(r,"nextFrame"),fe(()=>()=>{t()},[]),[r,t]},"default");var TA=[zn,Zi,ws,gp],OA=[zn,hp],Hb=!1,HR=!0;function xp(e){return e===ws||e===gp}o(xp,"isActive");var zR=o((e,t,r)=>{let[n,i]=Vl(_b),[s,a]=FR();function l(){i(zn,!0)}o(l,"startQueue");let c=t?OA:TA;return yp(()=>{if(n!==_b&&n!==gp){let d=c.indexOf(n),u=c[d+1],m=r(n);m===Hb?i(u,!0):u&&s(p=>{function g(){p.isCanceled()||i(u,!0)}o(g,"doNext"),m===!0?g():Promise.resolve(m).then(g)})}},[e,n]),fe(()=>()=>{a()},[]),[l,n]},"default");function zb(e,t,r,{motionEnter:n=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:a,motionLeaveImmediately:l,onAppearPrepare:c,onEnterPrepare:d,onLeavePrepare:u,onAppearStart:m,onEnterStart:p,onLeaveStart:g,onAppearActive:h,onEnterActive:b,onLeaveActive:v,onAppearEnd:x,onEnterEnd:S,onLeaveEnd:y,onVisibleChanged:C}){let[w,E]=ce(),[R,$]=jl(yi),[I,T]=ce([null,null]),M=R(),N=H(!1),k=H(null);function D(){return r()}o(D,"getDomElement");let A=H(!1);function B(){$(yi),T([null,null])}o(B,"updateMotionEndStatus");let L=De(ne=>{let oe=R();if(oe===yi)return;let te=D();if(ne&&!ne.deadline&&ne.target!==te)return;let ie=A.current,se;oe===_d&&ie?se=x?.(te,ne):oe===Ld&&ie?se=S?.(te,ne):oe===Bd&&ie&&(se=y?.(te,ne)),ie&&se!==!1&&B()}),[F]=BR(L),q=o(ne=>{switch(ne){case _d:return{[zn]:c,[Zi]:m,[ws]:h};case Ld:return{[zn]:d,[Zi]:p,[ws]:b};case Bd:return{[zn]:u,[Zi]:g,[ws]:v};default:return{}}},"getEventHandlers"),X=V(()=>q(M),[M]),[W,j]=zR(M,!e,ne=>{if(ne===zn){let oe=X[zn];return oe?oe(D()):Hb}return ne in X&&T([X[ne]?.(D(),null)||null,ne]),ne===ws&&M!==yi&&(F(D()),a>0&&(clearTimeout(k.current),k.current=setTimeout(()=>{L({deadline:!0})},a))),ne===hp&&B(),HR}),Z=xp(j);A.current=Z;let J=H(null);yp(()=>{if(N.current&&J.current===t)return;E(t);let ne=N.current;N.current=!0;let oe;!ne&&t&&i&&(oe=_d),ne&&t&&n&&(oe=Ld),(ne&&!t&&s||!ne&&l&&!t&&s)&&(oe=Bd);let te=q(oe);oe&&(e||te[zn])?($(oe),W()):$(yi),J.current=t},[t]),fe(()=>{(M===_d&&!i||M===Ld&&!n||M===Bd&&!s)&&$(yi)},[i,n,s]),fe(()=>()=>{N.current=!1,clearTimeout(k.current)},[]);let U=H(!1);fe(()=>{w&&(U.current=!0),w!==void 0&&M===yi&&((U.current||w)&&C?.(w),U.current=!0)},[w,M]);let ee=I[0];X[zn]&&j===Zi&&(ee={transition:"none",...ee});let re=I[1];return[R,j,ee,w??t,!N.current&&M===yi&&e&&i?"NONE":j===Zi||j===ws?re===j:!0]}o(zb,"useStatus");function Vb(e){return e?.length<2}o(Vb,"isRefNotConsumed");function VR(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function r(i,s){return!!(i.motionName&&t&&s!==!1)}o(r,"isSupportTransition");let n=le((i,s)=>{let{visible:a=!0,removeOnLeave:l=!0,forceRender:c,children:d,motionName:u,leavedClassName:m,eventProps:p}=i,{motion:g}=K(Db),h=r(i,g),b=H();function v(){return ei(b.current)}o(v,"getDomElement");let[x,S,y,C,w]=zb(h,a,v,i),E=x(),R=H(C);C&&(R.current=!0);let $=V(()=>{let M={};return Object.defineProperties(M,{nativeElement:{enumerable:!0,get:v},inMotion:{enumerable:!0,get:o(()=>()=>x()!==yi,"get")},enableMotion:{enumerable:!0,get:o(()=>()=>h,"get")}}),M},[]);ft(s,()=>$,[]);let I=H(0);w&&(I.current+=1);let T=V(()=>{if(w==="NONE")return null;let M,N={...p,visible:a};if(!d)M=null;else if(E===yi)C?M=d({...N},b):!l&&R.current&&m?M=d({...N,className:m},b):c||!l&&!m?M=d({...N,style:{display:"none"}},b):M=null;else{let k;S===zn?k="prepare":xp(S)?k="active":S===Zi&&(k="start");let D=Fb(u,`${E}-${k}`);M=d({...N,className:O(Fb(u,E),{[D]:D&&k,[u]:typeof u=="string"}),style:y},b)}return M},[I.current]);if(Vb(d)&&wd(T)){let M=Zo(T);if(M!==b)return so(T,{ref:qr(M,b)})}return T});return n.displayName="CSSMotion",n}o(VR,"genCSSMotion");var Sp=VR(vp);var Cp="add",wp="keep",Rp="remove",$p="removed";function kA(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}o(kA,"wrapKeyToObject");function Ep(e=[]){return e.map(kA)}o(Ep,"parseKeys");function jR(e=[],t=[]){let r=[],n=0,i=t.length,s=Ep(e),a=Ep(t);s.forEach(d=>{let u=!1;for(let m=n;m<i;m+=1){let p=a[m];if(p.key===d.key){n<m&&(r=r.concat(a.slice(n,m).map(g=>({...g,status:Cp}))),n=m),r.push({...p,status:wp}),n+=1,u=!0;break}}u||r.push({...d,status:Rp})}),n<i&&(r=r.concat(a.slice(n).map(d=>({...d,status:Cp}))));let l={};return r.forEach(({key:d})=>{l[d]=(l[d]||0)+1}),Object.keys(l).filter(d=>l[d]>1).forEach(d=>{r=r.filter(({key:u,status:m})=>u!==d||m!==Rp),r.forEach(u=>{u.key===d&&(u.status=wp)})}),r}o(jR,"diffKeys");function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jb.apply(this,arguments)}o(jb,"_extends");var DA=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function AA(e,t=Sp){class r extends xd{static{o(this,"CSSMotionList")}static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:s}){let a=Ep(i);return{keyEntities:jR(s,a).filter(c=>{let d=s.find(({key:u})=>c.key===u);return!(d&&d.status===$p&&c.status===Rp)})}}removeKey=o(i=>{this.setState(s=>({keyEntities:s.keyEntities.map(l=>l.key!==i?l:{...l,status:$p})}),()=>{let{keyEntities:s}=this.state;s.filter(({status:l})=>l!==$p).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})},"removeKey");render(){let{keyEntities:i}=this.state,{component:s,children:a,onVisibleChanged:l,onAllRemoved:c,...d}=this.props,u=s||rr,m={};return DA.forEach(p=>{m[p]=d[p],delete d[p]}),delete d.keys,f(u,d,i.map(({status:p,...g},h)=>{let b=p===Cp||p===wp;return f(t,jb({},m,{key:g.key,visible:b,eventProps:g,onVisibleChanged:o(v=>{l?.(v,{key:g.key}),v||this.removeKey(g.key)},"onVisibleChanged")}),Vb(a)?v=>a({...v,index:h}):(v,x)=>a({...v,index:h},x))}))}}return r}o(AA,"genCSSMotionList");var _A=AA(vp);var Bo=Sp;function Wb(e){let{prefixCls:t,align:r,arrow:n,arrowPos:i}=e,{className:s,content:a,style:l}=n||{},{x:c=0,y:d=0}=i,u=H(null);if(!r||!r.points)return null;let m={position:"absolute"};if(r.autoArrow!==!1){let p=r.points[0],g=r.points[1],h=p[0],b=p[1],v=g[0],x=g[1];h===v||!["t","b"].includes(h)?m.top=d:h==="t"?m.top=0:m.bottom=0,b===x||!["l","r"].includes(b)?m.left=c:b==="l"?m.left=0:m.right=0}return f("div",{ref:u,className:O(`${t}-arrow`,s),style:{...m,...l}},a)}o(Wb,"Arrow");function Ub(){return Ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ub.apply(this,arguments)}o(Ub,"_extends");function qb(e){let{prefixCls:t,open:r,zIndex:n,mask:i,motion:s,mobile:a}=e;return i?f(Bo,Ub({},s,{motionAppear:!0,visible:r,removeOnLeave:!0}),({className:l})=>f("div",{style:{zIndex:n},className:O(`${t}-mask`,a&&`${t}-mobile-mask`,l)})):null}o(qb,"Mask");var LA=Yi(({children:e})=>e,(e,t)=>t.cache),WR=LA;function Fd(e,t,r,n,i,s,a,l){let c="auto",d=e?{}:{left:"-1000vw",top:"-1000vh",right:c,bottom:c};if(!e&&(t||!r)){let{points:u}=n,m=n.dynamicInset||n._experimental?.dynamicInset,p=m&&u[0][1]==="r",g=m&&u[0][0]==="b";p?(d.right=i,d.left=c):(d.left=a,d.right=c),g?(d.bottom=s,d.top=c):(d.top=l,d.bottom=c)}return d}o(Fd,"useOffsetStyle");function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gb.apply(this,arguments)}o(Gb,"_extends");var BA=le((e,t)=>{let{onEsc:r,popup:n,className:i,prefixCls:s,style:a,target:l,onVisibleChanged:c,open:d,keepDom:u,fresh:m,onClick:p,mask:g,arrow:h,arrowPos:b,align:v,motion:x,maskMotion:S,mobile:y,forceRender:C,getPopupContainer:w,autoDestroy:E,portal:R,children:$,zIndex:I,onMouseEnter:T,onMouseLeave:M,onPointerEnter:N,onPointerDownCapture:k,ready:D,offsetX:A,offsetY:B,offsetR:L,offsetB:F,onAlign:q,onPrepare:X,onResize:W,stretch:j,targetWidth:Z,targetHeight:J}=e,U=typeof n=="function"?n():n,ee=d||u,re=!!y,[ne,oe,te]=V(()=>y?[y.mask,y.maskMotion,y.motion]:[g,S,x],[y,g,S,x]),ie=w?.length>0,[se,xe]=ce(!w||!ie);Pt(()=>{!se&&ie&&l&&xe(!0)},[se,ie,l]);let me=De((he,ye)=>{W?.(he,ye),q()}),Ee=Fd(re,D,d,v,L,F,A,B);if(!se)return null;let $e={};return j&&(j.includes("height")&&J?$e.height=J:j.includes("minHeight")&&J&&($e.minHeight=J),j.includes("width")&&Z?$e.width=Z:j.includes("minWidth")&&Z&&($e.minWidth=Z)),d||($e.pointerEvents="none"),f(R,{open:C||ee,getContainer:w&&(()=>w(l)),autoDestroy:E,onEsc:r},f(qb,{prefixCls:s,open:d,zIndex:I,mask:ne,motion:oe,mobile:re}),f(Cn,{onResize:me,disabled:!d},he=>f(Bo,Gb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:`${s}-hidden`},te,{onAppearPrepare:X,onEnterPrepare:X,visible:d,onVisibleChanged:o(ye=>{x?.onVisibleChanged?.(ye),c(ye)},"onVisibleChanged")}),({className:ye,style:He},Se)=>{let Ce=O(s,ye,i,{[`${s}-mobile`]:re});return f("div",{ref:qr(he,t,Se),className:Ce,style:{"--arrow-x":`${b.x||0}px`,"--arrow-y":`${b.y||0}px`,...Ee,...$e,...He,boxSizing:"border-box",zIndex:I,...a},onMouseEnter:T,onMouseLeave:M,onPointerEnter:N,onClick:p,onPointerDownCapture:k},h&&f(Wb,{prefixCls:s,arrow:h,arrowPos:b,align:v}),f(WR,{cache:!d&&!m},U))})),$)}),Ip=BA;var FA=bt(null),cc=FA,Pp=bt(null);function UR(e){return e?Array.isArray(e)?e:[e]:[]}o(UR,"toArray");function Xb(e,t,r){return V(()=>{let n=UR(t??e),i=UR(r??e),s=new Set(n),a=new Set(i);return s.has("hover")&&!s.has("click")&&s.add("touch"),a.has("hover")&&!a.has("click")&&a.add("touch"),[s,a]},[e,t,r])}o(Xb,"useAction");function HA(e=[],t=[],r){let n=o((i,s)=>i[s]||"","getVal");return r?n(e,0)===n(t,0):n(e,0)===n(t,0)&&n(e,1)===n(t,1)}o(HA,"isPointsEq");function Np(e,t,r,n){let{points:i}=r,s=Object.keys(e);for(let a=0;a<s.length;a+=1){let l=s[a];if(HA(e[l]?.points,i,n))return`${t}-placement-${l}`}return""}o(Np,"getAlignPopupClassName");function Qs(e){return e.ownerDocument.defaultView}o(Qs,"getWin");function zd(e){let t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];for(;r;){let{overflowX:i,overflowY:s,overflow:a}=Qs(r).getComputedStyle(r);[i,s,a].some(l=>n.includes(l))&&t.push(r),r=r.parentElement}return t}o(zd,"collectScroller");function dc(e,t=1){return Number.isNaN(e)?t:e}o(dc,"toNum");function Hd(e){return dc(parseFloat(e),0)}o(Hd,"getPxValue");function Yb(e,t){let r={...e};return(t||[]).forEach(n=>{if(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)return;let{overflow:i,overflowClipMargin:s,borderTopWidth:a,borderBottomWidth:l,borderLeftWidth:c,borderRightWidth:d}=Qs(n).getComputedStyle(n),u=n.getBoundingClientRect(),{offsetHeight:m,clientHeight:p,offsetWidth:g,clientWidth:h}=n,b=Hd(a),v=Hd(l),x=Hd(c),S=Hd(d),y=dc(Math.round(u.width/g*1e3)/1e3),C=dc(Math.round(u.height/m*1e3)/1e3),w=(g-h-x-S)*y,E=(m-p-b-v)*C,R=b*C,$=v*C,I=x*y,T=S*y,M=0,N=0;if(i==="clip"){let L=Hd(s);M=L*y,N=L*C}let k=u.x+I-M,D=u.y+R-N,A=k+u.width+2*M-I-T-w,B=D+u.height+2*N-R-$-E;r.left=Math.max(r.left,k),r.top=Math.max(r.top,D),r.right=Math.min(r.right,A),r.bottom=Math.min(r.bottom,B)}),r}o(Yb,"getVisibleArea");function qR(e,t=0){let r=`${t}`,n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}o(qR,"getUnitOffset");function GR(e,t){let[r,n]=t||[];return[qR(e.width,r),qR(e.height,n)]}o(GR,"getNumberOffset");function XR(e=""){return[e[0],e[1]]}o(XR,"splitPoints");function uc(e,t){let r=t[0],n=t[1],i,s;return r==="t"?s=e.y:r==="b"?s=e.y+e.height:s=e.y+e.height/2,n==="l"?i=e.x:n==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:s}}o(uc,"getAlignPoint");function Zs(e,t){let r={t:"b",b:"t",l:"r",r:"l"},n=[...e];return n[t]=r[e[t]]||"c",n}o(Zs,"reversePoints");function YR(e){return e.join("")}o(YR,"flatPoints");function Vd(e,t,r,n,i,s,a,l){let[c,d]=ce({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[n]||{}}),u=H(0),m=V(()=>!t||l?[]:zd(t),[t]),p=H({});e||o(()=>{p.current={}},"resetFlipCache")();let h=De(()=>{if(t&&r&&e&&!l){let gt=function(Nt,zo,Lo=$e){let ci=A.x+Nt,Yn=A.y+zo,mt=ci+U,lr=Yn+J,rn=Math.max(ci,Lo.left),di=Math.max(Yn,Lo.top),yt=Math.min(mt,Lo.right),ar=Math.min(lr,Lo.bottom);return Math.max(0,(yt-rn)*(ar-di))},Je=function(){Ae=A.y+je,ct=Ae+J,Be=A.x+Ze,ut=Be+U};o(gt,"getIntersectionVisibleArea"),o(Je,"syncNextPopupPosition");let x=t,S=x.ownerDocument,y=Qs(x),{position:C}=y.getComputedStyle(x),w=x.style.left,E=x.style.top,R=x.style.right,$=x.style.bottom,I=x.style.overflow,T=x.style.overflowX,M=x.style.overflowY,N={...i[n],...s},k=S.createElement("div");x.parentElement?.appendChild(k),k.style.left=`${x.offsetLeft}px`,k.style.top=`${x.offsetTop}px`,k.style.position=C,k.style.height=`${x.offsetHeight}px`,k.style.width=`${x.offsetWidth}px`,x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";let D;if(Array.isArray(r))D={x:r[0],y:r[1],width:0,height:0};else{let Nt=r.getBoundingClientRect();Nt.x=Nt.x??Nt.left,Nt.y=Nt.y??Nt.top,D={x:Nt.x,y:Nt.y,width:Nt.width,height:Nt.height}}let A=x.getBoundingClientRect(),{height:B,width:L}=y.getComputedStyle(x);A.x=A.x??A.left,A.y=A.y??A.top;let{clientWidth:F,clientHeight:q,scrollWidth:X,scrollHeight:W,scrollTop:j,scrollLeft:Z}=S.documentElement,J=A.height,U=A.width,ee=D.height,re=D.width,ne={left:0,top:0,right:F,bottom:q},oe={left:-Z,top:-j,right:X-Z,bottom:W-j},{htmlRegion:te}=N,ie="visible",se="visibleFirst";te!=="scroll"&&te!==se&&(te=ie);let xe=te===se,me=Yb(oe,m),Ee=Yb(ne,m),$e=te===ie?Ee:me,he=xe?Ee:$e;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";let ye=x.getBoundingClientRect();x.style.left=w,x.style.top=E,x.style.right=R,x.style.bottom=$,x.style.overflow=I,x.style.overflowX=T,x.style.overflowY=M,x.parentElement?.removeChild(k);let He=dc(Math.round(U/parseFloat(L)*1e3)/1e3),Se=dc(Math.round(J/parseFloat(B)*1e3)/1e3);if(He===0||Se===0||Ki(r)&&!ys(r))return;let{offset:Ce,targetOffset:ue}=N,[Pe,ve]=GR(A,Ce),[Ue,pe]=GR(D,ue);D.x-=Ue,D.y-=pe;let[Oe,Ie]=N.points||[],ke=XR(Ie),We=XR(Oe),ze=uc(D,ke),Ne=uc(A,We),lt={...N},qe=[We,ke],Ze=ze.x-Ne.x+Pe,je=ze.y-Ne.y+ve,rt=gt(Ze,je),qt=gt(Ze,je,Ee),Tt=uc(D,["t","l"]),Xe=uc(A,["t","l"]),Rt=uc(D,["b","r"]),Lt=uc(A,["b","r"]),jt=N.overflow||{},{adjustX:Ve,adjustY:it,shiftX:Fe,shiftY:Wt}=jt,ge=o(Nt=>typeof Nt=="boolean"?Nt:Nt>=0,"supportAdjust"),Ae,ct,Be,ut;Je();let Ct=ge(it),Gt=We[0]===ke[0];if(Ct&&We[0]==="t"&&(ct>he.bottom||p.current.bt)){let Nt=je;Gt?Nt-=J-ee:Nt=Tt.y-Lt.y-ve;let zo=gt(Ze,Nt),Lo=gt(Ze,Nt,Ee);zo>rt||zo===rt&&(!xe||Lo>=qt)?(p.current.bt=!0,je=Nt,ve=-ve,qe=[Zs(qe[0],0),Zs(qe[1],0)]):p.current.bt=!1}if(Ct&&We[0]==="b"&&(Ae<he.top||p.current.tb)){let Nt=je;Gt?Nt+=J-ee:Nt=Rt.y-Xe.y-ve;let zo=gt(Ze,Nt),Lo=gt(Ze,Nt,Ee);zo>rt||zo===rt&&(!xe||Lo>=qt)?(p.current.tb=!0,je=Nt,ve=-ve,qe=[Zs(qe[0],0),Zs(qe[1],0)]):p.current.tb=!1}let Xt=ge(Ve),Er=We[1]===ke[1];if(Xt&&We[1]==="l"&&(ut>he.right||p.current.rl)){let Nt=Ze;Er?Nt-=U-re:Nt=Tt.x-Lt.x-Pe;let zo=gt(Nt,je),Lo=gt(Nt,je,Ee);zo>rt||zo===rt&&(!xe||Lo>=qt)?(p.current.rl=!0,Ze=Nt,Pe=-Pe,qe=[Zs(qe[0],1),Zs(qe[1],1)]):p.current.rl=!1}if(Xt&&We[1]==="r"&&(Be<he.left||p.current.lr)){let Nt=Ze;Er?Nt+=U-re:Nt=Rt.x-Xe.x-Pe;let zo=gt(Nt,je),Lo=gt(Nt,je,Ee);zo>rt||zo===rt&&(!xe||Lo>=qt)?(p.current.lr=!0,Ze=Nt,Pe=-Pe,qe=[Zs(qe[0],1),Zs(qe[1],1)]):p.current.lr=!1}lt.points=[YR(qe[0]),YR(qe[1])],Je();let Sr=Fe===!0?0:Fe;typeof Sr=="number"&&(Be<Ee.left&&(Ze-=Be-Ee.left-Pe,D.x+re<Ee.left+Sr&&(Ze+=D.x-Ee.left+re-Sr)),ut>Ee.right&&(Ze-=ut-Ee.right-Pe,D.x>Ee.right-Sr&&(Ze+=D.x-Ee.right+Sr)));let zr=Wt===!0?0:Wt;typeof zr=="number"&&(Ae<Ee.top&&(je-=Ae-Ee.top-ve,D.y+ee<Ee.top+zr&&(je+=D.y-Ee.top+ee-zr)),ct>Ee.bottom&&(je-=ct-Ee.bottom-ve,D.y>Ee.bottom-zr&&(je+=D.y-Ee.bottom+zr)));let Ke=A.x+Ze,So=Ke+U,Et=A.y+je,zt=Et+J,Kt=D.x,vt=Kt+re,kt=D.y,xr=kt+ee,Br=Math.max(Ke,Kt),pr=Math.min(So,vt),Co=(Br+pr)/2-Ke,_o=Math.max(Et,kt),mn=Math.min(zt,xr),Ln=(_o+mn)/2-Et;a?.(t,lt);let tn=ye.right-A.x-(Ze+A.width),vn=ye.bottom-A.y-(je+A.height);He===1&&(Ze=Math.floor(Ze),tn=Math.floor(tn)),Se===1&&(je=Math.floor(je),vn=Math.floor(vn));let Ii={ready:!0,offsetX:Ze/He,offsetY:je/Se,offsetR:tn/He,offsetB:vn/Se,arrowX:Co/He,arrowY:Ln/Se,scaleX:He,scaleY:Se,align:lt};d(Ii)}}),b=o(()=>{u.current+=1;let x=u.current;Promise.resolve().then(()=>{u.current===x&&h()})},"triggerAlign"),v=o(()=>{d(x=>({...x,ready:!1}))},"resetReady");return Pt(v,[n]),Pt(()=>{e||v()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,b]}o(Vd,"useAlign");function jd(){let e=H(null),t=o(()=>{e.current&&(clearTimeout(e.current),e.current=null)},"clearDelay"),r=o((n,i)=>{t(),i===0?n():e.current=setTimeout(()=>{n()},i*1e3)},"delayInvoke");return fe(()=>()=>{t()},[]),r}o(jd,"useDelay");function Kb(e,t,r,n,i){Pt(()=>{if(e&&t&&r){let m=function(){n(),i()};o(m,"notifyScroll");let s=t,a=r,l=zd(s),c=zd(a),d=Qs(a),u=new Set([d,...l,...c]);return u.forEach(p=>{p.addEventListener("scroll",m,{passive:!0})}),d.addEventListener("resize",m,{passive:!0}),n(),()=>{u.forEach(p=>{p.removeEventListener("scroll",m),d.removeEventListener("resize",m)})}}},[e,t,r])}o(Kb,"useWatch");function Qb(e,t,r,n,i,s,a,l){let c=H(e);c.current=e;let d=H(!1);fe(()=>{if(t&&n&&(!i||s)){let m=o(()=>{d.current=!1},"onPointerDown"),p=o(b=>{c.current&&!a(b.composedPath?.()?.[0]||b.target)&&!d.current&&l(!1)},"onTriggerClose"),g=Qs(n);g.addEventListener("pointerdown",m,!0),g.addEventListener("mousedown",p,!0),g.addEventListener("contextmenu",p,!0);let h=Ul(r);return h&&(h.addEventListener("mousedown",p,!0),h.addEventListener("contextmenu",p,!0)),()=>{g.removeEventListener("pointerdown",m,!0),g.removeEventListener("mousedown",p,!0),g.removeEventListener("contextmenu",p,!0),h&&(h.removeEventListener("mousedown",p,!0),h.removeEventListener("contextmenu",p,!0))}}},[t,r,n,i,s]);function u(){d.current=!0}return o(u,"onPopupPointerDown"),u}o(Qb,"useWinClick");function Zb(){let[e,t]=_.useState(null),[r,n]=_.useState(!1),[i,s]=_.useState(!1),a=_.useRef(null),l=De(d=>{d===!1?(a.current=null,n(!1)):i&&r?a.current=d:(n(!0),t(d),a.current=null,r||s(!0))}),c=De(d=>{d?(s(!1),a.current&&(t(a.current),a.current=null)):(s(!1),a.current=null)});return[l,r,e,c]}o(Zb,"useTargetState");function Jb(){return Jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jb.apply(this,arguments)}o(Jb,"_extends");var zA=o(e=>{let{prefixCls:t,isMobile:r,ready:n,open:i,align:s,offsetR:a,offsetB:l,offsetX:c,offsetY:d,arrowPos:u,popupSize:m,motion:p,uniqueContainerClassName:g,uniqueContainerStyle:h}=e,b=`${t}-unique-container`,[v,x]=_.useState(!1),S=Fd(r,n,i,s,a,l,c,d),y=_.useRef(S);n&&(y.current=S);let C={};return m&&(C.width=m.width,C.height=m.height),_.createElement(Bo,Jb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${b}-hidden`},p,{visible:i,onVisibleChanged:o(w=>{x(w)},"onVisibleChanged")}),({className:w,style:E})=>{let R=O(b,w,g,{[`${b}-visible`]:v});return _.createElement("div",{className:R,style:{"--arrow-x":`${u?.x||0}px`,"--arrow-y":`${u?.y||0}px`,...y.current,...C,...E,...h}})})},"UniqueContainer"),KR=zA;var VA=o(({children:e,postTriggerProps:t})=>{let[r,n,i,s]=Zb(),a=V(()=>!i||!t?i:t(i),[i,t]),[l,c]=ce(null),[d,u]=ce(null),m=H(null),p=De(F=>{m.current=F,Ki(F)&&l!==F&&c(F)}),g=H(null),h=jd(),b=De((F,q)=>{g.current=q,h(()=>{r(F)},F.delay)}),v=o(F=>{h(()=>{g.current?.()||r(!1)},F)},"hide"),x=De(F=>{s(F)}),[S,y,C,w,E,R,$,,,I,T]=Vd(n,l,a?.target,a?.popupPlacement,a?.builtinPlacements||{},a?.popupAlign,void 0,!1),M=V(()=>{if(!a)return"";let F=Np(a.builtinPlacements||{},a.prefixCls||"",I,!1);return O(F,a.getPopupClassNameFromAlign?.(I))},[I,a?.getPopupClassNameFromAlign,a?.builtinPlacements,a?.prefixCls]),N=V(()=>({show:b,hide:v}),[]);fe(()=>{T()},[a?.target]);let k=De(()=>(T(),Promise.resolve())),D=H({}),A=K(cc),B=V(()=>({registerSubPopup:o((F,q)=>{D.current[F]=q,A?.registerSubPopup(F,q)},"registerSubPopup")}),[A]),L=a?.prefixCls;return f(Pp.Provider,{value:N},e,a&&f(cc.Provider,{value:B},f(Ip,{ref:p,portal:tl,onEsc:a.onEsc,prefixCls:L,popup:a.popup,className:O(a.popupClassName,M,`${L}-unique-controlled`),style:a.popupStyle,target:a.target,open:n,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:x,ready:S,offsetX:y,offsetY:C,offsetR:w,offsetB:E,onAlign:T,onPrepare:k,onResize:o(F=>u({width:F.offsetWidth,height:F.offsetHeight}),"onResize"),arrowPos:{x:R,y:$},align:I,zIndex:a.zIndex,mask:a.mask,arrow:a.arrow,motion:a.popupMotion,maskMotion:a.maskMotion,getPopupContainer:a.getPopupContainer},f(KR,{prefixCls:L,isMobile:!1,ready:S,open:n,align:I,offsetR:w,offsetB:E,offsetX:y,offsetY:C,arrowPos:{x:R,y:$},popupSize:d,motion:a.popupMotion,uniqueContainerClassName:O(a.uniqueContainerClassName,M),uniqueContainerStyle:a.uniqueContainerStyle}))))},"UniqueProvider"),ev=VA;function jA(e=tl){return le((r,n)=>{let{prefixCls:i="rc-trigger-popup",children:s,action:a="hover",showAction:l,hideAction:c,disabled:d=!1,popupVisible:u,defaultPopupVisible:m,onOpenChange:p,afterOpenChange:g,onPopupVisibleChange:h,afterPopupVisibleChange:b,mouseEnterDelay:v,mouseLeaveDelay:x=.1,focusDelay:S,blurDelay:y,mask:C,maskClosable:w=!0,getPopupContainer:E,forceRender:R,autoDestroy:$,popup:I,popupClassName:T,uniqueContainerClassName:M,uniqueContainerStyle:N,popupStyle:k,popupPlacement:D,builtinPlacements:A={},popupAlign:B,zIndex:L,stretch:F,getPopupClassNameFromAlign:q,fresh:X,unique:W,alignPoint:j,onPopupClick:Z,onPopupAlign:J,arrow:U,popupMotion:ee,maskMotion:re,mobile:ne,...oe}=r,te=$||!1,ie=u===void 0,se=!!ne,xe=H({}),me=K(cc),Ee=V(()=>({registerSubPopup:o((ot,cr)=>{xe.current[ot]=cr,me?.registerSubPopup(ot,cr)},"registerSubPopup")}),[me]),$e=K(Pp),he=Wo(),[ye,He]=ce(null),Se=H(null),Ce=De(ot=>{Se.current=ot,Ki(ot)&&ye!==ot&&He(ot),me?.registerSubPopup(he,ot)}),[ue,Pe]=ce(null),ve=H(null),Ue=De(ot=>{let cr=ei(ot);Ki(cr)&&ue!==cr&&(Pe(cr),ve.current=cr)}),pe={},Oe=De(ot=>{let cr=ue;return cr?.contains(ot)||Ul(cr)?.host===ot||ot===cr||ye?.contains(ot)||Ul(ye)?.host===ot||ot===ye||Object.values(xe.current).some(Na=>Na?.contains(ot)||ot===Na)}),Ie=U?{...U!==!0?U:{}}:null,[ke,We]=Ft(m||!1,u),ze=ke||!1,Ne=ze&&!d,lt=V(()=>{let ot=typeof s=="function"?s({open:Ne}):s;return vs.only(ot)},[s,Ne]),qe=lt?.props||{},Ze=De(()=>Ne),je=De((ot=0)=>({popup:I,target:ue,delay:ot,prefixCls:i,popupClassName:T,uniqueContainerClassName:M,uniqueContainerStyle:N,popupStyle:k,popupPlacement:D,builtinPlacements:A,popupAlign:B,zIndex:L,mask:C,maskClosable:w,popupMotion:ee,maskMotion:re,arrow:Ie,getPopupContainer:E,getPopupClassNameFromAlign:q,id:he,onEsc:Xe}));Pt(()=>{$e&&W&&ue&&!ie&&!me&&(Ne?$e.show(je(v),Ze):$e.hide(x))},[Ne,ue]);let gt=H(Ne);gt.current=Ne;let rt=De(ot=>{Wa(()=>{ze!==ot&&(We(ot),p?.(ot),h?.(ot))})}),qt=jd(),Tt=o((ot,cr=0)=>{if(u!==void 0){qt(()=>{rt(ot)},cr);return}if($e&&W&&ie&&!me){ot?$e.show(je(cr),Ze):$e.hide(cr);return}qt(()=>{rt(ot)},cr)},"triggerOpen");function Xe({top:ot}){ot&&Tt(!1)}o(Xe,"onEsc");let[Rt,Lt]=ce(!1);Pt(ot=>{(!ot||Ne)&&Lt(!0)},[Ne]);let[jt,Ve]=ce(null),[it,Fe]=ce(null),Wt=o(ot=>{Fe([ot.clientX,ot.clientY])},"setMousePosByEvent"),[ge,Ae,ct,Be,ut,Je,Ct,Gt,Xt,Er,Sr]=Vd(Ne,ye,j&&it!==null?it:ue,D,A,B,J,se),[zr,Ke]=Xb(a,l,c),So=zr.has("click"),Et=Ke.has("click")||Ke.has("contextMenu"),zt=De(()=>{Rt||Sr()});Kb(Ne,ue,ye,zt,o(()=>{gt.current&&j&&Et&&Tt(!1)},"onScroll")),Pt(()=>{zt()},[it,D]),Pt(()=>{Ne&&!A?.[D]&&zt()},[JSON.stringify(B)]);let vt=V(()=>{let ot=Np(A,i,Er,j);return O(ot,q?.(Er))},[Er,q,A,i,j]);ft(n,()=>({nativeElement:ve.current,popupElement:Se.current,forceAlign:zt}));let[kt,xr]=ce(0),[Br,pr]=ce(0),Or=o(()=>{if(F&&ue){let ot=ue.getBoundingClientRect();xr(ot.width),pr(ot.height)}},"syncTargetSize"),Co=o(()=>{Or(),zt()},"onTargetResize"),_o=o(ot=>{Lt(!1),Sr(),g?.(ot),b?.(ot)},"onVisibleChanged"),mn=o(()=>new Promise(ot=>{Or(),Ve(()=>ot)}),"onPrepare");Pt(()=>{jt&&(Sr(),jt(),Ve(null))},[jt]);function bn(ot,cr,Na,hm,$l){pe[ot]=(id,...bm)=>{(!$l||!$l())&&(hm?.(id),Tt(cr,Na)),qe[ot]?.(id,...bm)}}o(bn,"wrapperAction");let Ln=zr.has("touch"),tn=Ke.has("touch"),vn=H(!1);(Ln||tn)&&(pe.onTouchStart=(...ot)=>{vn.current=!0,gt.current&&tn?Tt(!1):!gt.current&&Ln&&Tt(!0),qe.onTouchStart?.(...ot)}),(So||Et)&&(pe.onClick=(ot,...cr)=>{gt.current&&Et?Tt(!1):!gt.current&&So&&(Wt(ot),Tt(!0)),qe.onClick?.(ot,...cr),vn.current=!1});let Ii=Qb(Ne,Et||tn,ue,ye,C,w,Oe,Tt),Nt=zr.has("hover"),zo=Ke.has("hover"),Lo,ci,Yn=o(()=>vn.current,"ignoreMouseTrigger");if(Nt){let ot=o(cr=>{Wt(cr)},"onMouseEnterCallback");bn("onMouseEnter",!0,v,ot,Yn),bn("onPointerEnter",!0,v,ot,Yn),Lo=o(cr=>{(Ne||Rt)&&ye?.contains(cr.target)&&Tt(!0,v)},"onPopupMouseEnter"),j&&(pe.onMouseMove=cr=>{qe.onMouseMove?.(cr)})}zo&&(bn("onMouseLeave",!1,x,void 0,Yn),bn("onPointerLeave",!1,x,void 0,Yn),ci=o(()=>{Tt(!1,x)},"onPopupMouseLeave")),zr.has("focus")&&bn("onFocus",!0,S),Ke.has("focus")&&bn("onBlur",!1,y),zr.has("contextMenu")&&(pe.onContextMenu=(ot,...cr)=>{gt.current&&Ke.has("contextMenu")?Tt(!1):(Wt(ot),Tt(!0)),ot.preventDefault(),qe.onContextMenu?.(ot,...cr)});let mt=H(!1);mt.current||=R||Ne||Rt;let lr={...qe,...pe},rn={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(ot=>{oe[ot]&&(rn[ot]=(...cr)=>{lr[ot]?.(...cr),oe[ot](...cr)})});let yt={x:Je,y:Ct};lc(Ne,ue,Co);let ar=Qo(Ue,Zo(lt)),on=so(lt,{...lr,...rn,ref:ar});return f(rr,null,on,mt.current&&(!$e||!W)&&f(cc.Provider,{value:Ee},f(Ip,{portal:e,ref:Ce,prefixCls:i,popup:I,className:O(T,!se&&vt),style:k,target:ue,onMouseEnter:Lo,onMouseLeave:ci,onPointerEnter:Lo,zIndex:L,open:Ne,keepDom:Rt,fresh:X,onClick:Z,onPointerDownCapture:Ii,mask:C,motion:ee,maskMotion:re,onVisibleChanged:_o,onPrepare:mn,forceRender:R,autoDestroy:te,getPopupContainer:E,onEsc:Xe,align:Er,arrow:Ie,arrowPos:yt,ready:ge,offsetX:Ae,offsetY:ct,offsetR:Be,offsetB:ut,onAlign:zt,stretch:F,targetWidth:kt/Gt,targetHeight:Br/Xt,mobile:ne})))})}o(jA,"generateTrigger");var Ji=jA(tl);function Mp(e){return e&&_.isValidElement(e)&&e.type===_.Fragment}o(Mp,"isFragment");var WA=o((e,t,r)=>_.isValidElement(e)?_.cloneElement(e,er(r)?r(e.props||{}):r):t,"replaceElement");function ho(e,t){return WA(e,e,t)}o(ho,"cloneElement");var Js="ant",mc="anticon",tv=["outlined","borderless","filled","underlined"],UA=o((e,t)=>t||(e?`${Js}-${e}`:Js),"defaultGetPrefixCls"),at=bt({getPrefixCls:UA,iconPrefixCls:mc}),{Consumer:qA}=at,QR={};function Mt(e){let t=K(at),{getPrefixCls:r,direction:n,getPopupContainer:i,renderEmpty:s}=t,a=t[e];return{classNames:QR,styles:QR,...a,getPrefixCls:r,direction:n,getPopupContainer:i,renderEmpty:s}}o(Mt,"useComponentConfig");var GA=o(({children:e})=>{let{getPrefixCls:t}=_.useContext(at),r=t();return _.isValidElement(e)?_.createElement(Bo,{visible:!0,motionName:`${r}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:n,className:i})=>ho(e,s=>({className:O(s.className,i),style:{...s.style,...n}}))):e},"MotionContent"),ZR=GA;var Tp=[null,null];function XA(e){if(Tp[0]!==e){let t={};Object.keys(e).forEach(r=>{t[r]={...e[r],dynamicInset:!1}}),Tp[0]=e,Tp[1]=t}return Tp[1]}o(XA,"uniqueBuiltinPlacements");var YA=o(({children:e})=>{let t=o(r=>{let{id:n,builtinPlacements:i,popup:s}=r,a=er(s)?s():s,l=XA(i);return{...r,getPopupContainer:null,arrow:!1,popup:_.createElement(ZR,{key:n},a),builtinPlacements:l}},"renderPopup");return _.createElement(ev,{postTriggerProps:t},e)},"UniqueProvider"),Op=YA;var rv=bt(!1),kp=o(({children:e,disabled:t})=>{let r=K(rv);return f(rv.Provider,{value:t??r},e)},"DisabledContextProvider"),Fo=rv;var ov=bt(void 0),JR=o(({children:e,size:t})=>{let r=K(ov);return f(ov.Provider,{value:t||r},e)},"SizeContextProvider"),rl=ov;function KA(){let e=K(Fo),t=K(rl);return{componentDisabled:e,componentSize:t}}o(KA,"useConfig");var eE=KA;function dn(e){"@babel/helpers - typeof";return dn=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},dn(e)}o(dn,"_typeof");function tE(e){if(Array.isArray(e))return e}o(tE,"_arrayWithHoles");function rE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,s,a,l=[],c=!0,d=!1;try{if(s=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=s.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(u){d=!0,i=u}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw i}}return l}}o(rE,"_iterableToArrayLimit");function oE(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
46
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}o(oE,"_nonIterableRest");function ol(e,t){return tE(e)||rE(e,t)||jm(e,t)||oE()}o(ol,"_slicedToArray");function nE(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}o(nE,"toPrimitive");function Dp(e){var t=nE(e,"string");return dn(t)=="symbol"?t:t+""}o(Dp,"toPropertyKey");function ro(e,t,r){return(t=Dp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}o(ro,"_defineProperty");function iE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}o(iE,"ownKeys");function gn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iE(Object(r),!0).forEach(function(n){ro(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}o(gn,"_objectSpread2");function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}o(Vn,"_classCallCheck");function sE(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dp(n.key),n)}}o(sE,"_defineProperties");function jn(e,t,r){return t&&sE(e.prototype,t),r&&sE(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}o(jn,"_createClass");function ea(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}o(ea,"_assertThisInitialized");function Ap(e,t){return Ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ap(e,t)}o(Ap,"_setPrototypeOf");function _p(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&&Ap(e,t)}o(_p,"_inherits");function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Wd(e)}o(Wd,"_getPrototypeOf");function nv(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nv=o(function(){return!!e},"_isNativeReflectConstruct"))()}o(nv,"_isNativeReflectConstruct");function aE(e,t){if(t&&(dn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ea(e)}o(aE,"_possibleConstructorReturn");function Lp(e){var t=nv();return function(){var r,n=Wd(e);if(t){var i=Wd(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return aE(this,r)}}o(Lp,"_createSuper");var QA=jn(o(function e(){Vn(this,e)},"AbstractCalculator")),Bp=QA;var lE="CALC_UNIT",ZA=new RegExp(lE,"g");function iv(e){return typeof e=="number"?"".concat(e).concat(lE):e}o(iv,"unit");var cE=function(e){_p(r,e);var t=Lp(r);function r(n,i){var s;Vn(this,r),s=t.call(this),ro(ea(s),"result",""),ro(ea(s),"unitlessCssVar",void 0),ro(ea(s),"lowPriority",void 0);var a=dn(n);return s.unitlessCssVar=i,n instanceof r?s.result="(".concat(n.result,")"):a==="number"?s.result=iv(n):a==="string"&&(s.result=n),s}return o(r,"CSSCalculator"),jn(r,[{key:"add",value:o(function(i){return i instanceof r?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(iv(i))),this.lowPriority=!0,this},"add")},{key:"sub",value:o(function(i){return i instanceof r?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(iv(i))),this.lowPriority=!0,this},"sub")},{key:"mul",value:o(function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this},"mul")},{key:"div",value:o(function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof r?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this},"div")},{key:"getResult",value:o(function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result},"getResult")},{key:"equal",value:o(function(i){var s=this,a=i||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(d){return s.result.includes(d)})&&(c=!1),this.result=this.result.replace(ZA,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result},"equal")}]),r}(Bp);var JA=function(e){_p(r,e);var t=Lp(r);function r(n){var i;return Vn(this,r),i=t.call(this),ro(ea(i),"result",0),n instanceof r?i.result=n.result:typeof n=="number"&&(i.result=n),i}return o(r,"NumCalculator"),jn(r,[{key:"add",value:o(function(i){return i instanceof r?this.result+=i.result:typeof i=="number"&&(this.result+=i),this},"add")},{key:"sub",value:o(function(i){return i instanceof r?this.result-=i.result:typeof i=="number"&&(this.result-=i),this},"sub")},{key:"mul",value:o(function(i){return i instanceof r?this.result*=i.result:typeof i=="number"&&(this.result*=i),this},"mul")},{key:"div",value:o(function(i){return i instanceof r?this.result/=i.result:typeof i=="number"&&(this.result/=i),this},"div")},{key:"equal",value:o(function(){return this.result},"equal")}]),r}(Bp),dE=JA;var e_=o(function(t,r){var n=t==="css"?cE:dE;return function(i){return new n(i,r)}},"genCalc"),Fp=e_;var t_=o(function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))},"getCompVarPrefix"),sv=t_;function r_(e,t,r,n){var i=gn({},t[e]);if(n!=null&&n.deprecatedTokens){var s=n.deprecatedTokens;s.forEach(function(l){var c=ol(l,2),d=c[0],u=c[1];if(i!=null&&i[d]||i!=null&&i[u]){var m;(m=i[u])!==null&&m!==void 0||(i[u]=i?.[d])}})}var a=gn(gn({},r),i);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}o(r_,"getComponentToken");var av=r_;var uE=typeof CSSINJS_STATISTIC<"u",lv=!0;function wt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!uE)return Object.assign.apply(Object,[{}].concat(t));lv=!1;var n={};return t.forEach(function(i){if(dn(i)==="object"){var s=Object.keys(i);s.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:o(function(){return i[a]},"get")})})}}),lv=!0,n}o(wt,"merge");var Hp={};function o_(){}o(o_,"noop");var n_=o(function(t){var r,n=t,i=o_;return uE&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:o(function(a,l){if(lv){var c;(c=r)===null||c===void 0||c.add(l)}return a[l]},"get")}),i=o(function(a,l){var c;Hp[a]={global:Array.from(r),component:gn(gn({},(c=Hp[a])===null||c===void 0?void 0:c.component),l)}},"flush")),{token:n,keys:r,flush:i}},"statisticToken"),zp=n_;function i_(e,t,r){if(typeof r=="function"){var n;return r(wt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}o(i_,"getDefaultComponentToken");var cv=i_;function s_(e){return e==="js"?{max:Math.max,min:Math.min}:{max:o(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"max(".concat(n.map(function(s){return Q(s)}).join(","),")")},"max"),min:o(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return"min(".concat(n.map(function(s){return Q(s)}).join(","),")")},"min")}}o(s_,"genMaxMin");var mE=s_;var a_=1e3*60*10,l_=function(){function e(){Vn(this,e),ro(this,"map",new Map),ro(this,"objectIDMap",new WeakMap),ro(this,"nextID",0),ro(this,"lastAccessBeat",new Map),ro(this,"accessBeat",0)}return o(e,"ArrayKeyMap"),jn(e,[{key:"set",value:o(function(r,n){this.clear();var i=this.getCompositeKey(r);this.map.set(i,n),this.lastAccessBeat.set(i,Date.now())},"set")},{key:"get",value:o(function(r){var n=this.getCompositeKey(r),i=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,i},"get")},{key:"getCompositeKey",value:o(function(r){var n=this,i=r.map(function(s){return s&&dn(s)==="object"?"obj_".concat(n.getObjectID(s)):"".concat(dn(s),"_").concat(s)});return i.join("|")},"getCompositeKey")},{key:"getObjectID",value:o(function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n},"getObjectID")},{key:"clear",value:o(function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(i,s){n-i>a_&&(r.map.delete(s),r.lastAccessBeat.delete(s))}),this.accessBeat=0}},"clear")}]),e}(),pE=new l_;function c_(e,t){return _.useMemo(function(){var r=pE.get(t);if(r)return r;var n=e();return pE.set(t,n),n},t)}o(c_,"useUniqueMemo");var fE=c_;var d_=o(function(){return{}},"useDefaultCSP"),gE=d_;function u_(e){var t=e.useCSP,r=t===void 0?gE:t,n=e.useToken,i=e.usePrefix,s=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(p,g,h,b){var v=Array.isArray(p)?p[0]:p;function x($){return"".concat(String(v)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}o(x,"prefixToken");var S=b?.unitless||{},y=typeof l=="function"?l(p):{},C=gn(gn({},y),{},ro({},x("zIndexPopup"),!0));Object.keys(S).forEach(function($){C[x($)]=S[$]});var w=gn(gn({},b),{},{unitless:C,prefixToken:x}),E=u(p,g,h,w),R=d(v,h,w);return function($){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,T=E($,I),M=b?.extraCssVarPrefixCls,N=typeof M=="function"?M({prefixCls:$,rootCls:I}):M,k=R(N!=null&&N.length?[I].concat(to(N)):I);return[T,k]}}o(c,"genStyleHooks");function d(p,g,h){var b=h.unitless,v=h.prefixToken,x=h.ignore;return function(S){var y=n(),C=y.cssVar,w=y.realToken,E=r();return $b({path:[p],prefix:C.prefix,key:C.key,unitless:b,ignore:x,token:w,scope:S,nonce:o(function(){return E.nonce},"nonce")},function(){var R=cv(p,w,g),$=av(p,w,R,{deprecatedTokens:h?.deprecatedTokens});return R&&Object.keys(R).forEach(function(I){$[v(I)]=$[I],delete $[I]}),$}),C?.key}}o(d,"genCSSVarRegister");function u(p,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(p)?p:[p,p],x=ol(v,1),S=x[0],y=v.join("-"),C=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,R=n(),$=R.theme,I=R.realToken,T=R.hashId,M=R.token,N=R.cssVar,k=R.zeroRuntime,D=V(function(){return k},[]);if(D)return T;var A=i(),B=A.rootPrefixCls,L=A.iconPrefixCls,F=r(),q="css",X=fE(function(){var U=new Set;return Object.keys(b.unitless||{}).forEach(function(ee){U.add(Zl(ee,N.prefix)),U.add(Zl(ee,sv(S,N.prefix)))}),Fp(q,U)},[q,S,N?.prefix]),W=mE(q),j=W.max,Z=W.min,J={theme:$,token:M,hashId:T,nonce:o(function(){return F.nonce},"nonce"),clientOnly:b.clientOnly,layer:C,order:b.order||-999};return typeof s=="function"&&Xs(gn(gn({},J),{},{clientOnly:!1,path:["Shared",B]}),function(){return s(M,{prefix:{rootPrefixCls:B,iconPrefixCls:L},csp:F})}),Xs(gn(gn({},J),{},{path:[y,w,L]}),function(){if(b.injectStyle===!1)return[];var U=zp(M),ee=U.token,re=U.flush,ne=cv(S,I,h),oe=".".concat(w),te=av(S,I,ne,{deprecatedTokens:b.deprecatedTokens});ne&&dn(ne)==="object"&&Object.keys(ne).forEach(function(me){ne[me]="var(".concat(Zl(me,sv(S,N.prefix)),")")});var ie=wt(ee,{componentCls:oe,prefixCls:w,iconCls:".".concat(L),antCls:".".concat(B),calc:X,max:j,min:Z},ne),se=g(ie,{hashId:T,prefixCls:w,rootPrefixCls:B,iconPrefixCls:L});re(S,te);var xe=typeof a=="function"?a(ie,w,E,b.resetFont):null;return[b.resetStyle===!1?null:xe,se]}),T}}o(u,"genComponentStyleHook");function m(p,g,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(p,g,h,gn({resetStyle:!1,order:-998},b)),x=o(function(y){var C=y.prefixCls,w=y.rootCls,E=w===void 0?C:w;return v(C,E),null},"StyledComponent");return x}return o(m,"genSubStyleComponent"),{genStyleHooks:c,genSubStyleComponent:m,genComponentStyleHook:u}}o(u_,"genStyleUtils");var dv=u_;var hE="6.6.5";var bE=hE;function uv(e){return e>=0&&e<=255}o(uv,"isStableColor");function m_(e,t){let{r,g:n,b:i,a:s}=new ur(e).toRgb();if(s<1)return e;let{r:a,g:l,b:c}=new ur(t).toRgb();for(let d=.01;d<=1;d+=.01){let u=Math.round((r-a*(1-d))/d),m=Math.round((n-l*(1-d))/d),p=Math.round((i-c*(1-d))/d);if(uv(u)&&uv(m)&&uv(p))return new ur({r:u,g:m,b:p,a:Math.round(d*100)/100}).toRgbString()}return new ur({r,g:n,b:i,a:1}).toRgbString()}o(m_,"getAlphaColor");var nl=m_;function mv(e){let{override:t,...r}=e,n={...t};Object.keys(bs).forEach(v=>{delete n[v]});let i={...r,...n},s=new ur(i.colorShadow),a=s.a,l=o(v=>s.clone().setA(a*v).toRgbString(),"getShadowColor"),c=480,d=576,u=768,m=992,p=1200,g=1600,h=1920;if(i.motion===!1){let v="0s";i.motionDurationFast=v,i.motionDurationMid=v,i.motionDurationSlow=v}return{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:nl(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:nl(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:nl(i.colorWarningBg,i.colorBgContainer),colorErrorAffix:i.colorError,colorWarningAffix:i.colorWarning,fontHeight:Math.round(i.fontSize*i.lineHeight),fontHeightSM:Math.round(i.fontSizeSM*i.lineHeightSM),fontHeightLG:Math.round(i.fontSizeLG*i.lineHeightLG),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.focusOutline===!1?0:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:nl(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
47
- 0 6px 16px 0 ${l(.08)},
48
- 0 3px 6px -4px ${l(.12)},
49
- 0 9px 28px 8px ${l(.05)}
50
- `,boxShadowSecondary:`
51
- 0 6px 16px 0 ${l(.08)},
52
- 0 3px 6px -4px ${l(.12)},
53
- 0 9px 28px 8px ${l(.05)}
54
- `,boxShadowTertiary:`
55
- 0 1px 2px 0 ${l(.05)},
56
- 0 1px 6px -1px ${l(.03)},
57
- 0 2px 4px 0 ${l(.03)}
58
- `,screenXS:c,screenXSMin:c,screenXSMax:d-1,screenSM:d,screenSMMin:d,screenSMMax:u-1,screenMD:u,screenMDMin:u,screenMDMax:m-1,screenLG:m,screenLGMin:m,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,screenXXLMax:h-1,screenXXXL:h,screenXXXLMin:h,boxShadowPopoverArrow:`2px 2px 5px ${l(.05)}`,dropShadowPopover:`drop-shadow(0 6px 16px ${l(.08)}) drop-shadow(0 3px 6px ${l(.12)}) drop-shadow(0 9px 28px ${l(.05)})`,boxShadowCard:`
59
- 0 1px 2px -2px ${l(.16)},
60
- 0 3px 6px 0 ${l(.12)},
61
- 0 5px 12px 4px ${l(.09)}
62
- `,boxShadowDrawerRight:`
63
- -6px 0 16px 0 ${l(.08)},
64
- -3px 0 6px -4px ${l(.12)},
65
- -9px 0 28px 8px ${l(.05)}
66
- `,boxShadowDrawerLeft:`
67
- 6px 0 16px 0 ${l(.08)},
68
- 3px 0 6px -4px ${l(.12)},
69
- 9px 0 28px 8px ${l(.05)}
70
- `,boxShadowDrawerUp:`
71
- 0 6px 16px 0 ${l(.08)},
72
- 0 3px 6px -4px ${l(.12)},
73
- 0 9px 28px 8px ${l(.05)}
74
- `,boxShadowDrawerDown:`
75
- 0 -6px 16px 0 ${l(.08)},
76
- 0 -3px 6px -4px ${l(.12)},
77
- 0 -9px 28px 8px ${l(.05)}
78
- `,boxShadowTabsOverflowLeft:`inset 10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowRight:`inset -10px 0 8px -8px ${l(.08)}`,boxShadowTabsOverflowTop:`inset 0 10px 8px -8px ${l(.08)}`,boxShadowTabsOverflowBottom:`inset 0 -10px 8px -8px ${l(.08)}`,...n}}o(mv,"formatToken");var pv={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},p_={motionBase:!0,motionUnit:!0},f_={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=o((e,t,r)=>{let n=r.getDerivativeToken(e),{override:i,...s}=t,a={...n,override:i};return a=mv(a),s&&Object.entries(s).forEach(([l,c])=>{let{theme:d,...u}=c,m=u;d&&(m=vE({...a,...u},{override:u},d)),a[l]=m}),a},"getComputedToken");function Gr(){let{token:e,hashed:t,theme:r,override:n,cssVar:i,zeroRuntime:s}=_.useContext(Ad),{csp:a,getPrefixCls:l}=_.useContext(at),c={prefix:i?.prefix??l(),key:i?.key??"css-var-root"},d=`${bE}-${t||""}`,u=r||kd,[m,p,g]=Qm(u,[bs,e],{salt:d,override:n,getComputedToken:vE,cssVar:{...c,unitless:pv,ignore:p_,preserve:f_},nonce:a?.nonce});return[u,g,t?p:"",m,c,!!s]}o(Gr,"useToken");var en={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},hr=o((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}),"resetComponent"),ri=o(()=>({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"}}),"resetIcon"),g_=new ir("loadingCircle",{"100%":{transform:"rotate(360deg)"}}),il=o(()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),"clearFix"),wn=o((e,t)=>({outline:`${Q(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:["outline-offset","outline"].map(r=>`${r} 0s`).join(", ")}),"genFocusOutline"),Wn=o((e,t)=>({"&:focus-visible":wn(e,t)}),"genFocusStyle"),yE=o(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},...Wn(e),"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),"genLinkStyle"),xE=o((e,t,r,n)=>{let i=`[class^="${t}"], [class*=" ${t}"]`,s=r?`.${r}`:i,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},l={};return n!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...l,...a,[i]:a}}},"genCommonStyle"),Vp=o(e=>({[`.${e}`]:{...ri(),"&::before":{display:"none"},"&[tabindex]":{cursor:"pointer"}},[`.${e} .${e}-icon`]:{display:"block"},[`.${e}-spin`]:{animationName:g_,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}}),"genIconStyle");var{genStyleHooks:Ht,genComponentStyleHook:fv,genSubStyleComponent:sl}=dv({usePrefix:o(()=>{let{getPrefixCls:e,iconPrefixCls:t}=K(at);return{rootPrefixCls:e(),iconPrefixCls:t}},"usePrefix"),useToken:o(()=>{let[e,t,r,n,i,s]=Gr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:i,zeroRuntime:s}},"useToken"),useCSP:o(()=>{let{csp:e}=K(at);return e??{}},"useCSP"),getResetStyles:o((e,t)=>{let r=yE(e);return[r,{"&":r},Vp(t?.prefix.iconPrefixCls??mc)]},"getResetStyles"),getCommonStyle:xE,getCompUnitless:o(()=>pv,"getCompUnitless")}),br=o((e,t)=>{let r=`--${e.replace(/\./g,"")}-${t}-`;return[o(s=>`${r}${s}`,"varName"),o((s,a)=>a?`var(${r}${s}, ${a})`:`var(${r}${s})`,"varRef")]},"genCssVar");function jp(e,t){return pn.reduce((r,n)=>{let i=e[`${n}1`],s=e[`${n}3`],a=e[`${n}6`],l=e[`${n}7`];return{...r,...t(n,{lightColor:i,lightBorderColor:s,darkColor:a,textColor:l})}},{})}o(jp,"genPresetColor");var h_=o((e,t)=>{let[r,n]=Gr();return Xs({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:o(()=>t?.nonce,"nonce"),layer:{name:"antd"}},()=>Vp(e))},"useResetIconStyle"),Wp=h_;function gv(e,t,r){let n=Xl("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?{...Dd,hashed:t?.hashed??Dd.hashed,cssVar:t?.cssVar,zeroRuntime:t?.zeroRuntime}:t,a=Wh();return Jn(()=>{if(!e)return t;let l={...s.components};Object.keys(e.components||{}).forEach(u=>{l[u]={...l[u],...e.components[u]}});let c=`css-var-${a.replace(/:/g,"")}`,d={prefix:r?.prefixCls,...s.cssVar,...i.cssVar,key:i.cssVar?.key||c};return{...s,...i,token:{...s.token,...i.token},components:l,cssVar:d}},[i,s,r?.prefixCls,a],(l,c)=>l.some((d,u)=>{let m=c[u];return!ki(d,m,!0)}))}o(gv,"useTheme");var SE=bt(!0);function hv(e){let t=K(SE),{children:r}=e,[,n]=Gr(),{motion:i}=n,s=H(!1);return s.current||(s.current=t!==i),s.current?f(SE.Provider,{value:i},f(Ab,{motion:i},r)):r}o(hv,"MotionWrapper");var CE=()=>null;var b_=o(({iconPrefixCls:e,csp:t})=>(Wp(e,t),null),"IconStyle");var v_=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"],Up,wE,RE,EE;function bv(){return Up||Js}o(bv,"getGlobalPrefixCls");function y_(){return wE||mc}o(y_,"getGlobalIconPrefixCls");var x_=o(e=>{let{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:i}=e;t!==void 0&&(Up=t),r!==void 0&&(wE=r),"holderRender"in e&&(EE=i),n&&(RE=n)},"setGlobalConfig"),$E=o(()=>({getPrefixCls:o((e,t)=>t||(e?`${bv()}-${e}`:bv()),"getPrefixCls"),getIconPrefixCls:y_,getRootPrefixCls:o(()=>Up||bv(),"getRootPrefixCls"),getTheme:o(()=>RE,"getTheme"),holderRender:EE}),"globalConfig"),S_=o(e=>{let{children:t,csp:r,autoInsertSpaceInButton:n,alert:i,affix:s,anchor:a,app:l,form:c,locale:d,componentSize:u,direction:m,space:p,splitter:g,virtual:h,dropdownMatchSelectWidth:b,popupMatchSelectWidth:v,popupOverflow:x,legacyLocale:S,parentContext:y,iconPrefixCls:C,theme:w,componentDisabled:E,segmented:R,statistic:$,spin:I,calendar:T,carousel:M,cascader:N,collapse:k,typography:D,checkbox:A,descriptions:B,divider:L,drawer:F,skeleton:q,steps:X,image:W,layout:j,list:Z,listy:J,mentions:U,modal:ee,progress:re,result:ne,slider:oe,breadcrumb:te,masonry:ie,menu:se,pagination:xe,input:me,inputPassword:Ee,inputSearch:$e,textArea:he,otp:ye,empty:He,badge:Se,borderBeam:Ce,radio:ue,rate:Pe,ribbon:ve,switch:Ue,transfer:pe,avatar:Oe,message:Ie,tag:ke,table:We,card:ze,cardMeta:Ne,tabs:lt,timeline:qe,timePicker:Ze,upload:je,notification:gt,tree:rt,colorPicker:qt,datePicker:Tt,rangePicker:Xe,flex:Rt,wave:Lt,dropdown:jt,warning:Ve,tour:it,tooltip:Fe,popover:Wt,popconfirm:ge,qrcode:Ae,floatButton:ct,floatButtonGroup:Be,variant:ut,inputNumber:Je,treeSelect:Ct,watermark:Gt}=e,Xt=V(()=>Ut(d)&&Object.prototype.hasOwnProperty.call(d,"default")&&d.default?.locale?d.default:d,[d]),Er=At((pr,Or)=>{let{prefixCls:Co}=e;if(Or)return Or;let _o=Co||y.getPrefixCls("");return pr?`${_o}-${pr}`:_o},[y.getPrefixCls,e.prefixCls]),Sr=C||y.iconPrefixCls||mc,zr=r||y.csp,Ke=gv(w,y.theme,{prefixCls:Er("")}),So={csp:zr,autoInsertSpaceInButton:n,alert:i,affix:s,anchor:a,app:l,locale:Xt||S,direction:m,space:p,splitter:g,virtual:h,popupMatchSelectWidth:v??b,popupOverflow:x,getPrefixCls:Er,iconPrefixCls:Sr,theme:Ke,segmented:R,statistic:$,spin:I,calendar:T,carousel:M,cascader:N,collapse:k,typography:D,checkbox:A,descriptions:B,divider:L,drawer:F,skeleton:q,steps:X,image:W,input:me,inputPassword:Ee,inputSearch:$e,textArea:he,otp:ye,layout:j,list:Z,listy:J,mentions:U,modal:ee,progress:re,result:ne,slider:oe,breadcrumb:te,masonry:ie,menu:se,pagination:xe,empty:He,badge:Se,borderBeam:Ce,radio:ue,rate:Pe,ribbon:ve,switch:Ue,transfer:pe,avatar:Oe,message:Ie,tag:ke,table:We,card:ze,cardMeta:Ne,tabs:lt,timeline:qe,timePicker:Ze,upload:je,notification:gt,tree:rt,colorPicker:qt,datePicker:Tt,rangePicker:Xe,flex:Rt,wave:Lt,dropdown:jt,warning:Ve,tour:it,tooltip:Fe,popover:Wt,popconfirm:ge,qrcode:Ae,floatButton:ct,floatButtonGroup:Be,variant:ut,inputNumber:Je,treeSelect:Ct,watermark:Gt},Et={...y};Object.keys(So).forEach(pr=>{So[pr]!==void 0&&(Et[pr]=So[pr])}),v_.forEach(pr=>{let Or=e[pr];Or&&(Et[pr]=Or)}),typeof n<"u"&&(Et.button={autoInsertSpace:n,...Et.button});let zt=Jn(()=>Et,Et,(pr,Or)=>{let Co=Object.keys(pr),_o=Object.keys(Or);return Co.length!==_o.length||Co.some(mn=>pr[mn]!==Or[mn])}),{layer:Kt}=K(Di),vt=V(()=>({prefixCls:Sr,csp:zr,layer:Kt?"antd":void 0,zeroRuntime:!!Kt||Ke?.zeroRuntime}),[Sr,zr,Kt,Ke?.zeroRuntime]),kt=f(rr,null,f(b_,{iconPrefixCls:Sr,csp:zr}),f(CE,{dropdownMatchSelectWidth:b}),t),xr=V(()=>Hn(Mn.Form?.defaultValidateMessages||{},zt.locale?.Form?.defaultValidateMessages||{},zt.form?.validateMessages||{},c?.validateMessages||{}),[zt,c?.validateMessages]);Object.keys(xr).length>0&&(kt=f(uR.Provider,{value:xr},kt)),Xt&&(kt=f(bR,{locale:Xt,_ANT_MARK__:hR},kt)),(Sr||zr)&&(kt=f(ic.Provider,{value:vt},kt)),u&&(kt=f(JR,{size:u},kt)),kt=f(hv,null,kt),Fe?.unique&&(kt=f(Op,null,kt));let Br=V(()=>{let{algorithm:pr,token:Or,components:Co,cssVar:_o,...mn}=Ke||{},bn=pr&&(!Array.isArray(pr)||pr.length>0)?qs(pr):kd,Ln={};Object.entries(Co||{}).forEach(([vn,Ii])=>{let Nt={...Ii};"algorithm"in Nt&&(Nt.algorithm===!0?Nt.theme=bn:(Array.isArray(Nt.algorithm)||er(Nt.algorithm))&&(Nt.theme=qs(Nt.algorithm)),delete Nt.algorithm),Ln[vn]=Nt});let tn={...bs,...Or};return{...mn,theme:bn,token:tn,components:Ln,override:{override:tn,...Ln},cssVar:_o}},[Ke]);return w&&(kt=f(Ad.Provider,{value:Br},kt)),zt.warning&&(kt=f(Iw.Provider,{value:zt.warning},kt)),E!==void 0&&(kt=f(kp,{disabled:E},kt)),f(at.Provider,{value:zt},kt)},"ProviderChildren"),pc=o(e=>{let t=K(at),r=K(ac);return f(S_,{parentContext:t,legacyLocale:r,...e})},"ConfigProvider");pc.ConfigContext=at;pc.SizeContext=rl;pc.config=x_;pc.useConfig=eE;Object.defineProperty(pc,"SizeContext",{get:o(()=>rl,"get")});var es=pc;var C_=o(e=>{let{componentCls:t,colorPrimary:r,motionDurationSlow:n,motionEaseInOut:i,motionEaseOutCirc:s,antCls:a}=e,[,l]=br(a,"wave");return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:l("color",r),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s","opacity 2s"].map(c=>`${c} ${s}`).join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow","opacity"].map(c=>`${c} ${n} ${i}`).join(",")}}}}},"genWaveStyle"),IE=fv("Wave",C_);var fc=`${Js}-wave-target`;var PE=o(e=>e?cn(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,"isValidWaveColor");function NE(e,t=null){let r=getComputedStyle(e),{borderTopColor:n,borderColor:i,backgroundColor:s}=r;return t&&PE(r[t])?r[t]:[n,i,s].find(PE)??null}o(NE,"getTargetWaveColor");function vv(e){return Number.isNaN(e)?0:e}o(vv,"validateNum");var w_=o(e=>{let{className:t,target:r,component:n,colorSource:i}=e,s=H(null),{getPrefixCls:a}=K(at),l=a(),[c]=br(l,"wave"),[d,u]=ce(null),[m,p]=ce([]),[g,h]=ce(0),[b,v]=ce(0),[x,S]=ce(0),[y,C]=ce(0),[w,E]=ce(!1),R={left:g,top:b,width:x,height:y,borderRadius:m.map(T=>`${T}px`).join(" ")};d&&(R[c("color")]=d);function $(){let T=getComputedStyle(r);u(NE(r,i));let M=T.position==="static",{borderLeftWidth:N,borderTopWidth:k}=T;h(M?r.offsetLeft:vv(-Number.parseFloat(N))),v(M?r.offsetTop:vv(-Number.parseFloat(k))),S(r.offsetWidth),C(r.offsetHeight);let{borderTopLeftRadius:D,borderTopRightRadius:A,borderBottomLeftRadius:B,borderBottomRightRadius:L}=T;p([D,A,L,B].map(F=>vv(Number.parseFloat(F))))}if(o($,"syncPos"),fe(()=>{if(r){let T=St(()=>{$(),E(!0)}),M;return typeof ResizeObserver<"u"&&(M=new ResizeObserver($),M.observe(r)),()=>{St.cancel(T),M?.disconnect()}}},[r]),!w)return null;let I=(n==="Checkbox"||n==="Radio")&&r?.classList.contains(fc);return f(Bo,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:o((T,M)=>{if(M.deadline||Um(M)&&M.propertyName==="opacity"){let N=s.current?.parentElement;$d(N).then(()=>{N?.remove()})}return!1},"onAppearEnd")},({className:T},M)=>f("div",{ref:qr(s,M),className:O(t,T,{"wave-quick":I}),style:R}))},"WaveEffect"),R_=o((e,t)=>{let{component:r}=t;if(r==="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),Ed(f(w_,{...t,target:e}),n)},"showWaveEffect"),ME=R_;var E_=o((e,t,r,n)=>{let{wave:i}=K(at),[,s,a]=Gr(),l=De(u=>{let m=e.current;if(i?.disabled||!m)return;let p=m.querySelector(`.${fc}`)||m,{showEffect:g}=i||{};(g||ME)(p,{className:t,token:s,component:r,event:u,hashId:a,colorSource:n})}),c=H(null);return fe(()=>()=>{St.cancel(c.current)},[]),o(u=>{St.cancel(c.current),c.current=St(()=>{l(u)})},"showDebounceWave")},"useWave"),TE=E_;var OE={click:"click",mousedown:"mousedown",mouseup:"mouseup",pointerdown:"pointerdown",pointerup:"pointerup"},$_=o(e=>{let{children:t,disabled:r,component:n,colorSource:i}=e,{getPrefixCls:s,wave:a}=K(at),l=H(null),c=s("wave"),d=IE(c),u=TE(l,O(c,d),n,i);if(_.useEffect(()=>{let p=l.current;if(!p||p.nodeType!==window.Node.ELEMENT_NODE||r)return;let g=o(v=>{!ys(v.target)||!p.getAttribute||p.getAttribute("disabled")||p.disabled||p.className.includes("disabled")&&!p.className.includes("disabled:")||p.getAttribute("aria-disabled")==="true"||p.className.includes("-leave")||u(v)},"onClick"),h=a?.triggerType,b=h&&h in OE?OE[h]:"click";return p.addEventListener(b,g,!0),()=>{p.removeEventListener(b,g,!0)}},[r,a?.triggerType]),!_.isValidElement(t))return t??null;let m=hi(t)?qr(Zo(t),l):l;return ho(t,{ref:m})},"Wave"),qp=$_;var I_=o(e=>{let t=_.useContext(rl);return _.useMemo(()=>e?cn(e)?e??t:er(e)?e(t):t:t,[e,t])},"useSize"),Rr=I_;var P_={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"},kE=P_;var DE="data-rc-order",AE="data-rc-priority",N_="rc-util-key",yv=new Map;function LE(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}o(LE,"canUseDom");function M_(e,t){if(!e||!t)return!1;if(e.contains)return e.contains(t);let r=t;for(;r;){if(r===e)return!0;r=r.parentNode}return!1}o(M_,"contains");function BE({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:N_}o(BE,"getMark");function xv(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}o(xv,"getContainer");function T_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}o(T_,"getOrder");function Sv(e){return Array.from((yv.get(e)||e).children).filter(t=>t.tagName==="STYLE")}o(Sv,"findStyles");function FE(e,t={}){if(!LE())return null;let{csp:r,prepend:n,priority:i=0}=t,s=T_(n),a=s==="prependQueue",l=document.createElement("style");l.setAttribute(DE,s),a&&i&&l.setAttribute(AE,`${i}`),r?.nonce&&(l.nonce=r.nonce),l.innerHTML=e;let c=xv(t),{firstChild:d}=c;if(n){if(a){let u=(t.styles||Sv(c)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(DE)))return!1;let p=Number(m.getAttribute(AE)||0);return i>=p});if(u.length)return c.insertBefore(l,u[u.length-1].nextSibling),l}c.insertBefore(l,d)}else c.appendChild(l);return l}o(FE,"injectCSS");function O_(e,t={}){let{styles:r}=t;return r||=Sv(xv(t)),r.find(n=>n.getAttribute(BE(t))===e)}o(O_,"findExistNode");function k_(e,t){let r=yv.get(e);if(!r||!M_(document,r)){let n=FE("",t);if(!n)return;let{parentNode:i}=n;yv.set(e,i),e.removeChild(n)}}o(k_,"syncRealContainer");function HE(e,t,r={}){if(!LE())return null;let n=xv(r),i=Sv(n),s={...r,styles:i};k_(n,s);let a=O_(t,s);if(a)return s.csp?.nonce&&a.nonce!==s.csp.nonce&&(a.nonce=s.csp.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;let l=FE(e,s);return l?.setAttribute(BE(s),t),l}o(HE,"updateCSS");function D_(e){return e?.getRootNode?.()}o(D_,"getRoot");function zE(e){let t=D_(e);return typeof ShadowRoot<"u"&&t instanceof ShadowRoot?t:null}o(zE,"getShadowRoot");var _E={};function VE(e,t){e||_E[t]||(_E[t]=!0)}o(VE,"warningOnce");function A_(e){return e.replace(/-(.)/g,(t,r)=>r.toUpperCase())}o(A_,"camelCase");function Xp(e,t){VE(e,`[@ant-design/icons] ${t}`)}o(Xp,"warning");function gc(e){return e!==null&&typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}o(gc,"isIconDefinition");function jE(e={}){return Object.keys(e).reduce((t,r)=>{let n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[A_(r)]=n}return t},{})}o(jE,"normalizeAttrs");function Gp(e,t,r){return r?_.createElement(e.tag,{key:t,...jE(e.attrs),...r},(e.children||[]).map((n,i)=>Gp(n,`${t}-${e.tag}-${i}`))):_.createElement(e.tag,{key:t,...jE(e.attrs)},(e.children||[]).map((n,i)=>Gp(n,`${t}-${e.tag}-${i}`)))}o(Gp,"generate");var __=`
79
- .anticon {
80
- display: inline-flex;
81
- align-items: center;
82
- color: inherit;
83
- font-style: normal;
84
- line-height: 0;
85
- text-align: center;
86
- text-transform: none;
87
- vertical-align: -0.125em;
88
- text-rendering: optimizeLegibility;
89
- -webkit-font-smoothing: antialiased;
90
- -moz-osx-font-smoothing: grayscale;
91
- }
92
-
93
- .anticon > * {
94
- line-height: 1;
95
- }
96
-
97
- .anticon svg {
98
- display: inline-block;
99
- vertical-align: inherit;
100
- }
101
-
102
- .anticon::before {
103
- display: none;
104
- }
105
-
106
- .anticon .anticon-icon {
107
- display: block;
108
- }
109
-
110
- .anticon[tabindex] {
111
- cursor: pointer;
112
- }
113
-
114
- .anticon-spin {
115
- -webkit-animation: loadingCircle 1s infinite linear;
116
- animation: loadingCircle 1s infinite linear;
117
- }
118
-
119
- @-webkit-keyframes loadingCircle {
120
- 100% {
121
- -webkit-transform: rotate(360deg);
122
- transform: rotate(360deg);
123
- }
124
- }
125
-
126
- @keyframes loadingCircle {
127
- 100% {
128
- -webkit-transform: rotate(360deg);
129
- transform: rotate(360deg);
130
- }
131
- }
132
- `,WE=o(e=>{let{csp:t,prefixCls:r,layer:n,zeroRuntime:i}=K(ic),s=__;r&&(s=s.replace(/anticon/g,r)),n&&(s=`@layer ${n} {
133
- ${s}
134
- }`),fe(()=>{if(i)return;let a=e.current,l=zE(a);HE(s,"@ant-design-icons",{prepend:!n,csp:t,attachTo:l})},[])},"useInsertStyles");var UE=o(e=>{let{icon:t,className:r,onClick:n,style:i,primaryColor:s,secondaryColor:a,...l}=e,c=H(null);if(WE(c),Xp(gc(t),`icon should be icon definiton, but got ${typeof t}`),!gc(t))return null;let d=t;return Gp(d.icon,`svg-${d.name}`,{className:r,onClick:n,style:i,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...l,ref:c})},"IconBase");UE.displayName="IconReact";var qE=UE;function Cv(){return Cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cv.apply(this,arguments)}o(Cv,"_extends");var L_=le((e,t)=>{let{className:r,icon:n,spin:i,rotate:s,tabIndex:a,onClick:l,twoToneColor:c,...d}=e,{prefixCls:u="anticon",rootClassName:m}=K(ic);if(Xp(gc(n),`icon should be icon definiton, but got ${typeof n}`),!gc(n))return null;let p=O(m,u,{[`${u}-${n.name}`]:!!n.name,[`${u}-spin`]:!!i||n.name==="loading"},r),g=a;g===void 0&&l&&(g=-1);let h=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0;return f("span",Cv({role:"img","aria-label":n.name},d,{ref:t,tabIndex:g,onClick:l,className:p}),f(qE,{icon:n,style:h}))}),sr=L_;function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wv.apply(this,arguments)}o(wv,"_extends");var B_=o((e,t)=>f(sr,wv({},e,{ref:t,icon:kE})),"CloseCircleFilled"),F_=le(B_),ta=F_;function yo(...e){return e.find(t=>t!==void 0)}o(yo,"fallbackProp");var ra=o(e=>{let{allowClear:t,clearIcon:r,contextAllowClear:n,contextClearIcon:i,defaultAllowClear:s,componentName:a}=e;return V(()=>t??n??s?{clearIcon:yo(Ut(t)?t?.clearIcon:r,Ut(n)?n?.clearIcon:i,_.createElement(ta,null)),disabled:(Ut(t)?t?.disabled:void 0)??(Ut(n)?n?.disabled:void 0)}:!1,[t,r,n,i,s])},"useAllowClear");var H_={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"},GE=H_;function Rv(){return Rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rv.apply(this,arguments)}o(Rv,"_extends");var z_=o((e,t)=>f(sr,Rv({},e,{ref:t,icon:GE})),"CloseOutlined"),V_=le(z_),Li=V_;var Ev=o(e=>{if(!e)return;let{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}},"pickClosable"),YE={},XE=o((e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!lo(e)&&!lo(t))return null;let r={closeIcon:typeof t!="boolean"&&lo(t)?t:void 0};return Ut(e)&&(r={...r,...e}),r},"computeClosableConfig"),j_=o((e,t,r)=>e===!1?!1:e?ql(r,t,e):t===!1?!1:t?ql(r,t):r.closable?r:!1,"mergeClosableConfigs"),W_=o((e,t,r)=>{let{closeIconRender:n}=t,{closeIcon:i,...s}=e,a=i,l=Zr(s,!0);return lo(a)&&(n&&(a=n(a)),a=_.isValidElement(a)?_.cloneElement(a,{"aria-label":r,...a.props,...l}):_.createElement("span",{"aria-label":r,...l},a)),[a,{"aria-label":r,...l}]},"computeCloseIcon"),U_=o((e,t,r=YE,n="Close")=>{let i=XE(e?.closable,e?.closeIcon),s=XE(t?.closable,t?.closeIcon),a={closeIcon:_.createElement(Li,null),...r},l=j_(i,s,a),c=typeof l!="boolean"?!!l?.disabled:!1;if(l===!1)return[!1,null,c,{}];let[d,u]=W_(l,a,n);return[!0,d,c,u]},"computeClosable"),KE=o((e,t,r=YE)=>{let[n]=Do("global",Mn.global);return _.useMemo(()=>U_(e,t,{closeIcon:_.createElement(Li,null),...r},n.close),[e,t,r,n.close])},"useClosable");var QE=o(()=>_.useReducer(e=>e+1,0),"useForceUpdate");var Yp=o((e,t)=>{let r={};return Ut(e)&&(r={...e}),typeof e=="boolean"&&(r={enabled:e}),r.closable===void 0&&t!==void 0&&(r.closable=t),r},"normalizeMaskConfig"),ZE=o((e,t,r,n)=>V(()=>{let i=Yp(e,n),s=Yp(t),a={blur:!1,...s,...i,closable:i.closable??n??s.closable??!0},l=a.blur?`${r}-mask-blur`:void 0;return[a.enabled!==!1,{mask:l},!!a.closable]},[e,t,r,n]),"useMergedMask");var JE=o(e=>e==="horizontal"||e==="vertical","isValidOrientation"),hc=o((e,t,r)=>V(()=>{let n=JE(e),i;return n?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=JE(r)?r:"horizontal",[i,i==="vertical"]},[r,e,t]),"useOrientation");var e$=o(()=>{let[e,t]=ce([]),r=At(n=>(t(i=>[].concat(to(i),[n])),()=>{t(i=>i.filter(s=>s!==n))}),[]);return[e,r]},"usePatchElement");var q_=_.createContext(void 0),oa=q_;var Rs=100,G_=10,$v=Rs*G_,poe=$v+Rs,t$={Modal:Rs,Drawer:Rs,Popover:Rs,Popconfirm:Rs,Tooltip:Rs,Tour:Rs,FloatButton:Rs},X_={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},Y_=o(e=>e in t$,"isContainerType"),Un=o((e,t)=>{let[,r]=Gr(),n=_.useContext(oa),i=Y_(e),s;if(t!==void 0)s=[t,t];else{let a=n??0;i?a+=(n?0:r.zIndexPopupBase)+t$[e]:a+=X_[e],s=[n===void 0?t:a,a]}return s},"useZIndex");var K_=o(e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},"genSpaceCompactStyle"),r$=Ht(["Space","Compact"],K_,()=>({}),{resetStyle:!1});var Kp=bt(null),qo=o((e,t)=>{let r=K(Kp),n=V(()=>{if(!r)return"";let{compactDirection:i,isFirstItem:s,isLastItem:a}=r,l=i==="vertical"?"-vertical-":"-";return O(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:s,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},"useCompactItemContext"),o$=o(e=>{let{children:t}=e;return f(Kp.Provider,{value:null},t)},"NoCompactStyle"),Q_=o(e=>{let{children:t,...r}=e;return f(Kp.Provider,{value:V(()=>r,[r])},t)},"CompactItem"),Z_=le((e,t)=>{let{getPrefixCls:r,direction:n}=K(at),{size:i,direction:s,orientation:a,block:l,prefixCls:c,className:d,rootClassName:u,children:m,vertical:p,...g}=e,[h,b]=hc(a,p,s),v=Rr($=>i??$),x=r("space-compact",c),[S]=r$(x),y=O(x,S,{[`${x}-rtl`]:n==="rtl",[`${x}-block`]:l,[`${x}-vertical`]:b},d,u),C=K(Kp),w=H(null);ft(t,()=>({nativeElement:w.current}));let E=co(m),R=V(()=>E.map(($,I)=>{let T=$?.key||`${x}-item-${I}`;return f(Q_,{key:T,compactSize:v,compactDirection:h,isFirstItem:I===0&&(!C||C?.isFirstItem),isLastItem:I===E.length-1&&(!C||C?.isLastItem)},$)}),[E,C,h,v,x]);return E.length===0?null:f("div",{ref:w,className:y,...g},R)}),bc=Z_;var Iv=bt(void 0),J_=o(e=>{let{getPrefixCls:t,direction:r}=K(at),{prefixCls:n,size:i,className:s,...a}=e,l=t("btn-group",n),[,,c]=Gr(),d=V(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),u=O(l,{[`${l}-${d}`]:d,[`${l}-rtl`]:r==="rtl"},s,c);return f(Iv.Provider,{value:i},f("div",{...a,className:u}))},"ButtonGroup"),n$=J_;var i$=/^[\u4E00-\u9FA5]{2}$/,Qp=i$.test.bind(i$);function Zp(e){return e==="danger"?{danger:!0}:{type:e}}o(Zp,"convertLegacyProps");function Jp(e){return e==="text"||e==="link"}o(Jp,"isUnBorderedButtonVariant");function e2(e,t,r,n){if(!yr(e))return;let i=t?" ":"";return!cn(e)&&!Oo(e)&&cn(e.type)&&Qp(e.props.children)?ho(e,s=>{let a=O(s.className,n)||void 0,l={...r,...s.style};return{...s,children:s.children.split("").join(i),className:a,style:l}}):cn(e)?_.createElement("span",{className:n,style:r},Qp(e)?e.split("").join(i):e):Mp(e)?_.createElement("span",{className:n,style:r},e):ho(e,s=>({...s,className:O(s.className,n)||void 0,style:{...s.style,...r}}))}o(e2,"splitCNCharsBySpace");function s$(e,t,r,n){let i=!1,s=[];return _.Children.forEach(e,a=>{let l=cn(a)||Oo(a);if(i&&l){let c=s.length-1,d=s[c];s[c]=`${d}${a}`}else s.push(a);i=l}),_.Children.map(s,a=>e2(a,t,r,n))}o(s$,"spaceChildren");var Foe=["default","primary","danger"].concat(to(pn));var t2={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"},a$=t2;function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Pv.apply(this,arguments)}o(Pv,"_extends");var r2=o((e,t)=>f(sr,Pv({},e,{ref:t,icon:a$})),"LoadingOutlined"),o2=le(r2),ef=o2;var n2=le((e,t)=>{let{className:r,style:n,children:i,prefixCls:s}=e,a=O(`${s}-icon`,r);return _.createElement("span",{ref:t,className:a,style:n},i)}),tf=n2;var l$=le((e,t)=>{let{prefixCls:r,className:n,style:i,iconClassName:s}=e,a=O(`${r}-loading-icon`,n);return _.createElement(tf,{prefixCls:r,className:a,style:i,ref:t},_.createElement(ef,{className:s}))}),Nv=o(()=>({width:0,opacity:0,transform:"scale(0)"}),"getCollapsedWidth"),Mv=o(e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),"getRealWidth"),i2=o(e=>{let{prefixCls:t,loading:r,existIcon:n,className:i,style:s,mount:a}=e,l=!!r;return n?_.createElement(l$,{prefixCls:t,className:i,style:s}):_.createElement(Bo,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:Nv,onAppearActive:Mv,onEnterStart:Nv,onEnterActive:Mv,onLeaveStart:Mv,onLeaveActive:Nv},({className:c,style:d},u)=>{let m={...s,...d};return _.createElement(l$,{prefixCls:t,className:O(i,c),style:m,ref:u})})},"DefaultLoadingIcon"),c$=i2;var s2=o(e=>{let{componentCls:t,antCls:r,motionDurationMid:n,motionEaseInOut:i}=e;return{[t]:{[`${r}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`${["height","opacity"].map(s=>`${s} ${n} ${i}`).join(", ")} !important`}},[`${r}-motion-collapse`]:{overflow:"hidden",transition:`${["height","opacity"].map(s=>`${s} ${n} ${i}`).join(", ")} !important`}}}},"genCollapseMotion"),Ud=s2;var d$=o(e=>({animationDuration:e,animationFillMode:"both"}),"initMotionCommon"),na=o((e,t,r,n,i=!1)=>{let s=i?"&":"";return{[`
135
- ${s}${e}-enter,
136
- ${s}${e}-appear
137
- `]:{...d$(n),animationPlayState:"paused"},[`${s}${e}-leave`]:{...d$(n),animationPlayState:"paused"},[`
138
- ${s}${e}-enter${e}-enter-active,
139
- ${s}${e}-appear${e}-appear-active
140
- `]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},"initMotion");var u$=new ir("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),m$=new ir("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),qd=o((e,t=!1)=>{let{antCls:r}=e,n=`${r}-fade`,i=t?"&":"";return[na(n,u$,m$,e.motionDurationMid,t),{[`
141
- ${i}${n}-enter,
142
- ${i}${n}-appear
143
- `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${n}-leave`]:{animationTimingFunction:"linear"}}]},"initFadeMotion");var p$=new ir("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f$=new ir("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),g$=new ir("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),h$=new ir("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),b$=new ir("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v$=new ir("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),y$=new ir("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),x$=new ir("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),a2={"move-up":{inKeyframes:y$,outKeyframes:x$},"move-down":{inKeyframes:p$,outKeyframes:f$},"move-left":{inKeyframes:g$,outKeyframes:h$},"move-right":{inKeyframes:b$,outKeyframes:v$}},ts=o((e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:s}=a2[t];return[na(n,i,s,e.motionDurationMid),{[`
144
- ${n}-enter,
145
- ${n}-appear
146
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},"initMoveMotion");var ia=new ir("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),sa=new ir("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),aa=new ir("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),la=new ir("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),rf=new ir("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),of=new ir("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),nf=new ir("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),sf=new ir("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),l2={"slide-up":{inKeyframes:ia,outKeyframes:sa},"slide-down":{inKeyframes:aa,outKeyframes:la},"slide-left":{inKeyframes:rf,outKeyframes:of},"slide-right":{inKeyframes:nf,outKeyframes:sf}},Tn=o((e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:s}=l2[t];return[na(n,i,s,e.motionDurationMid),{[`
147
- ${n}-enter,
148
- ${n}-appear
149
- `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},"initSlideMotion");var Gd=o(()=>({"@media (prefers-reduced-motion: reduce)":{"&, &::before, &::after":{transition:"none",animation:"none"}}}),"genNoMotionStyle"),af=o(()=>({"@media (prefers-reduced-motion: reduce)":{transition:"none",animation:"none"}}),"genNoMotionRawStyle");var S$=new ir("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),C$=new ir("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Tv=new ir("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Ov=new ir("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),w$=new ir("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),R$=new ir("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),E$=new ir("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$$=new ir("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),I$=new ir("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),P$=new ir("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),N$=new ir("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),M$=new ir("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),c2={zoom:{inKeyframes:S$,outKeyframes:C$},"zoom-big":{inKeyframes:Tv,outKeyframes:Ov},"zoom-big-fast":{inKeyframes:Tv,outKeyframes:Ov},"zoom-left":{inKeyframes:E$,outKeyframes:$$},"zoom-right":{inKeyframes:I$,outKeyframes:P$},"zoom-up":{inKeyframes:w$,outKeyframes:R$},"zoom-down":{inKeyframes:N$,outKeyframes:M$}},Es=o((e,t)=>{let{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:s}=c2[t];return[na(n,i,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
150
- ${n}-enter,
151
- ${n}-appear
152
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},"initZoomMotion");var T$=o((e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),"genButtonBorderStyle"),d2=o(e=>{let{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:i,colorErrorHover:s}=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:r}},T$(`${t}-primary`,i),T$(`${t}-danger`,s)]}},"genGroupStyle"),O$=d2;var kv=o(e=>Math.round(Number(e||0)),"getRoundNumber"),u2=o(e=>{if(e instanceof ur)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){let{b:t,...r}=e;return{...r,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},"convertHsb2Hsv"),On=class extends ur{static{o(this,"Color")}constructor(t){super(u2(t))}toHsbString(){let t=this.toHsb(),r=kv(t.s*100),n=kv(t.b*100),i=kv(t.h),s=t.a,a=`hsb(${i}, ${r}%, ${n}%)`,l=`hsba(${i}, ${r}%, ${n}%, ${s.toFixed(s===0?0:2)})`;return s===1?a:l}toHsb(){let{v:t,...r}=this.toHsv();return{...r,b:t,a:this.a}}};var Dv=o(e=>e instanceof On?e:new On(e),"generateColor"),m2=Dv("#1677ff");var y2=o((e,t)=>e?.replace(/[^0-9a-f]/gi,"").slice(0,t?8:6)||"","toHexFormat"),x2=o((e,t)=>e?y2(e,t):"","getHex"),Xd=function(){function e(t){if(Vn(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 r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:n,percent:i})=>({color:new e(n),percent:i})),this.metaColor=new On(this.colors[0].color.metaColor)):this.metaColor=new On(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return o(e,"AggregationColor"),jn(e,[{key:"toHsb",value:o(function(){return this.metaColor.toHsb()},"toHsb")},{key:"toHsbString",value:o(function(){return this.metaColor.toHsbString()},"toHsbString")},{key:"toHex",value:o(function(){return x2(this.toHexString(),this.metaColor.a<1)},"toHex")},{key:"toHexString",value:o(function(){return this.metaColor.toHexString()},"toHexString")},{key:"toRgb",value:o(function(){return this.metaColor.toRgb()},"toRgb")},{key:"toRgbString",value:o(function(){return this.metaColor.toRgbString()},"toRgbString")},{key:"isGradient",value:o(function(){return!!this.colors&&!this.cleared},"isGradient")},{key:"getColors",value:o(function(){return this.colors||[{color:this,percent:0}]},"getColors")},{key:"toCssString",value:o(function(){let{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()},"toCssString")},{key:"equals",value:o(function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,i)=>{let s=r.colors[i];return n.percent===s.percent&&n.color.equals(s.color)}):this.toHexString()===r.toHexString()},"equals")}])}();var S2={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"},D$=S2;function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Av.apply(this,arguments)}o(Av,"_extends");var C2=o((e,t)=>f(sr,Av({},e,{ref:t,icon:D$})),"RightOutlined"),w2=le(C2),al=w2;function Ho(){return Ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ho.apply(null,arguments)}o(Ho,"_extends");var R2=_.forwardRef((e,t)=>{let{prefixCls:r,forceRender:n,className:i,style:s,children:a,isActive:l,role:c,classNames:d,styles:u}=e,[m,p]=_.useState(l||n);return _.useEffect(()=>{(n||l)&&p(!0)},[n,l]),m?_.createElement("div",{ref:t,className:O(`${r}-panel`,{[`${r}-panel-active`]:l,[`${r}-panel-inactive`]:!l},i),style:s,role:c},_.createElement("div",{className:O(`${r}-body`,d?.body),style:u?.body},a)):null}),A$=R2;var E2=_.forwardRef((e,t)=>{let{showArrow:r=!0,headerClass:n,isActive:i,onItemClick:s,forceRender:a,className:l,classNames:c={},styles:d={},prefixCls:u,collapsible:m,accordion:p,panelKey:g,extra:h,header:b,expandIcon:v,openMotion:x,destroyOnHidden:S,children:y,...C}=e,w=m==="disabled",E=h!=null&&typeof h!="boolean",R={onClick:o(()=>{s?.(g)},"onClick"),onKeyDown:o(k=>{(k.key==="Enter"||k.keyCode===xt.ENTER||k.which===xt.ENTER)&&s?.(g)},"onKeyDown"),role:p?"tab":"button","aria-expanded":i,"aria-disabled":w,tabIndex:w?-1:0},$=typeof v=="function"?v(e):_.createElement("i",{className:"arrow"}),I=$&&_.createElement("div",Ho({className:O(`${u}-expand-icon`,c?.icon),style:d?.icon},["header","icon"].includes(m)?R:{}),$),T=O(`${u}-item`,{[`${u}-item-active`]:i,[`${u}-item-disabled`]:w},l),N={className:O(n,`${u}-header`,{[`${u}-collapsible-${m}`]:!!m},c?.header),style:d?.header,...["header","icon"].includes(m)?{}:R};return _.createElement("div",Ho({},C,{ref:t,className:T}),_.createElement("div",N,r&&I,_.createElement("span",Ho({className:O(`${u}-title`,c?.title),style:d?.title},m==="header"?R:{}),b),E&&_.createElement("div",{className:`${u}-extra`},h)),_.createElement(Bo,Ho({visible:i,leavedClassName:`${u}-panel-hidden`},x,{forceRender:a,removeOnLeave:S}),({className:k,style:D},A)=>_.createElement(A$,{ref:A,prefixCls:u,className:k,classNames:c,style:D,styles:d,isActive:i,forceRender:a,role:p?"tabpanel":void 0},y)))}),lf=E2;function _$(e,t,r){if(!e||!t)return e||t;let n=Array.from(new Set([...Object.keys(e),...Object.keys(t)])),i={};return n.forEach(s=>{i[s]=r(e[s],t[s])}),i}o(_$,"mergeSemantic");function $2(e,t){return _$(e,t,(r,n)=>xw(r,n))}o($2,"mergeSemanticClassNames");function I2(e,t){return _$(e,t,(r,n)=>({...r,...n}))}o(I2,"mergeSemanticStyles");var P2=o((e,t)=>{let{prefixCls:r,accordion:n,collapsible:i,destroyOnHidden:s,onItemClick:a,activeKey:l,openMotion:c,expandIcon:d,classNames:u,styles:m}=t;return e.map((p,g)=>{let{children:h,label:b,key:v,collapsible:x,onItemClick:S,destroyOnHidden:y,classNames:C,styles:w,...E}=p,R=String(v??g),$=x??i,I=y??s,T=o(N=>{$!=="disabled"&&(a(N),S?.(N))},"handleItemClick"),M=!1;return n?M=l[0]===R:M=l.indexOf(R)>-1,_.createElement(lf,Ho({},E,{classNames:$2(u,C),styles:I2(m,w),prefixCls:r,key:R,panelKey:R,isActive:M,accordion:n,openMotion:c,expandIcon:d,header:b,collapsible:$,onItemClick:T,destroyOnHidden:I}),h)})},"convertItemsToNodes"),N2=o((e,t,r)=>{if(!e)return null;let{prefixCls:n,accordion:i,collapsible:s,destroyOnHidden:a,onItemClick:l,activeKey:c,openMotion:d,expandIcon:u,classNames:m,styles:p}=r,g=e.key||String(t),{header:h,headerClass:b,destroyOnHidden:v,collapsible:x,onItemClick:S}=e.props,y=!1;i?y=c[0]===g:y=c.indexOf(g)>-1;let C=x??s,w=o(R=>{C!=="disabled"&&(l(R),S?.(R))},"handleItemClick"),E={key:g,panelKey:g,header:h,headerClass:b,classNames:m,styles:p,isActive:y,prefixCls:n,destroyOnHidden:v??a,openMotion:d,accordion:i,children:e.props.children,onItemClick:w,expandIcon:u,collapsible:C};return typeof e.type=="string"?e:(Object.keys(E).forEach(R=>{typeof E[R]>"u"&&delete E[R]}),_.cloneElement(e,E))},"getNewChild");function M2(e,t,r){return Array.isArray(e)?P2(e,r):co(t).map((n,i)=>N2(n,i,r))}o(M2,"useItems");var L$=M2;function B$(e){let t=e;if(!Array.isArray(t)){let r=typeof t;t=r==="number"||r==="string"?[t]:[]}return t.map(r=>String(r))}o(B$,"getActiveKeysArray");var T2=_.forwardRef((e,t)=>{let{prefixCls:r="rc-collapse",destroyOnHidden:n=!1,style:i,accordion:s,className:a,children:l,collapsible:c,openMotion:d,expandIcon:u,activeKey:m,defaultActiveKey:p,onChange:g,items:h,classNames:b,styles:v}=e,x=O(r,a),[S,y]=Ft(p,m),C=B$(S),w=De($=>{let I=B$($);y(I),g?.(I)}),E=o($=>{w(s?C[0]===$?[]:[$]:C.includes($)?C.filter(I=>I!==$):[...C,$])},"onItemClick");Hr(!l,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");let R=L$(h,l,{prefixCls:r,accordion:s,openMotion:d,expandIcon:u,collapsible:c,destroyOnHidden:n,onItemClick:E,activeKey:C,classNames:b,styles:v});return _.createElement("div",Ho({ref:t,className:x,style:i,role:s?"tablist":void 0},Zr(e,{aria:!0,data:!0})),R)}),_v=Object.assign(T2,{Panel:lf});var cf=_v,{Panel:Use}=_v;var Lv=o(()=>({height:0,opacity:0}),"getCollapsedHeight"),F$=o(e=>({height:e?.scrollHeight??0,opacity:e?1:0}),"getRealHeight"),O2=o(e=>({height:e?.offsetHeight??0}),"getCurrentHeight"),Bv=o((e,t)=>t?.deadline===!0||Um(t)&&t.propertyName==="height","skipOpacityTransition"),k2=o((e=Js)=>({motionName:`${e}-motion-collapse`,onAppearStart:Lv,onEnterStart:Lv,onAppearActive:F$,onEnterActive:F$,onLeaveStart:O2,onLeaveActive:Lv,onAppearEnd:Bv,onEnterEnd:Bv,onLeaveEnd:Bv,motionDeadline:500}),"initCollapseMotion");var rs=o((e,t,r)=>r!==void 0?r:`${e}-${t}`,"getTransitionName");var df=k2;var D2=le((e,t)=>{let{getPrefixCls:r}=K(at),{prefixCls:n,className:i,showArrow:s=!0}=e,a=r("collapse",n),l=O({[`${a}-no-arrow`]:!s},i);return f(cf.Panel,{ref:t,...e,prefixCls:a,className:l})}),H$=D2;var A2=o(e=>{let{componentCls:t,contentBg:r,padding:n,headerBg:i,headerPadding:s,headerPaddingSM:a,headerPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:d,lineType:u,colorBorder:m,colorText:p,colorTextHeading:g,colorTextDisabled:h,fontSizeLG:b,lineHeight:v,lineHeightLG:x,marginSM:S,paddingSM:y,paddingLG:C,paddingXS:w,motionDurationSlow:E,fontSizeIcon:R,contentPadding:$,contentPaddingSM:I,contentPaddingLG:T,fontHeight:M,fontHeightLG:N}=e,k=`${Q(d)} ${u} ${m}`;return{[t]:{...hr(e),backgroundColor:i,border:k,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:k,"&:first-child":{[`
153
- &,
154
- & > ${t}-header`]:{borderRadius:`${Q(c)} ${Q(c)} 0 0`}},"&:last-child":{[`
155
- &,
156
- & > ${t}-header`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:g,lineHeight:v,cursor:"pointer",transition:`all ${E}, visibility 0s`,...Wn(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:M,display:"flex",alignItems:"center",marginInlineEnd:S},[`${t}-arrow`]:{...ri(),fontSize:R,transition:`transform ${E}`,svg:{transition:`transform ${E}`}},[`${t}-title`]:{marginInlineEnd:"auto","> svg":{display:"inline-block",verticalAlign:"middle",marginBlockEnd:"0.2em"}}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:p,backgroundColor:r,borderTop:k,[`& > ${t}-body`]:{padding:$},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(w).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:I}}},"&-large":{[`> ${t}-item`]:{fontSize:b,lineHeight:x,[`> ${t}-header`]:{padding:l,[`> ${t}-expand-icon`]:{height:N,marginInlineStart:e.calc(C).sub(n).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:T}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${Q(c)} ${Q(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"&, & > .arrow":{color:h,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:S}}}}}}},"genBaseStyle"),_2=o(e=>{let{componentCls:t}=e,r=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[r]:{transform:"rotate(180deg)"}}}},"genArrowStyle"),L2=o(e=>{let{componentCls:t,headerBg:r,borderlessContentPadding:n,borderlessContentBg:i,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:r,border:0,[`> ${t}-item`]:{borderBottom:`${Q(e.lineWidth)} ${e.lineType} ${s}`},[`
157
- > ${t}-item:last-child,
158
- > ${t}-item:last-child ${t}-header
159
- `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:n}}}},"genBorderlessStyle"),B2=o(e=>{let{componentCls:t,paddingSM:r}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:r}}}}}},"genGhostStyle"),F2=o(e=>({headerPadding:`${Q(e.paddingSM)} ${Q(e.padding)}`,headerPaddingSM:`${Q(e.paddingXS)} ${Q(e.paddingSM)} ${Q(e.paddingXS)} ${Q(e.paddingXS)}`,headerPaddingLG:`${Q(e.padding)} ${Q(e.paddingLG)} ${Q(e.padding)} ${Q(e.padding)}`,headerBg:e.colorFillAlter,contentPadding:`${Q(e.padding)} ${Q(16)}`,contentPaddingSM:e.paddingSM,contentPaddingLG:e.paddingLG,contentBg:e.colorBgContainer,borderlessContentPadding:`${Q(e.paddingXXS)} ${Q(16)} ${Q(e.padding)}`,borderlessContentBg:"transparent"}),"prepareComponentToken"),z$=Ht("Collapse",e=>{let t=wt(e,{collapsePanelBorderRadius:e.borderRadiusLG});return[A2(t),L2(t),B2(t),_2(t),Ud(t)]},F2);var H2=le((e,t)=>{let{getPrefixCls:r,direction:n,expandIcon:i,className:s,style:a,classNames:l,styles:c}=Mt("collapse"),{prefixCls:d,className:u,rootClassName:m,style:p,bordered:g=!0,ghost:h,size:b,expandIconPlacement:v,expandIconPosition:x,children:S,destroyInactivePanel:y,destroyOnHidden:C,expandIcon:w,classNames:E,styles:R}=e,$=Rr(J=>b??J??"middle"),I=r("collapse",d),T=r(),[M,N]=z$(I),k=v??x??"start",D={...e,size:$,bordered:g,expandIconPlacement:k},A=$t(a),B=$t(p),[L,F]=Qt([l,E],[c,A,R,B],{props:D}),q=w??i,X=At((J={})=>{let U=J.collapsible==="header"||J.collapsible==="icon",ee=er(q)?q(J):f(al,{rotate:J.isActive?n==="rtl"?-90:90:void 0,...U?{"aria-label":J.isActive?"expanded":"collapsed"}:{"aria-hidden":!0}});return ho(ee,re=>({className:O(re.className,`${I}-arrow`)}))},[q,I,n]),W=O(`${I}-icon-placement-${k}`,{[`${I}-borderless`]:!g,[`${I}-rtl`]:n==="rtl",[`${I}-ghost`]:!!h,[`${I}-large`]:$==="large",[`${I}-small`]:$==="small"},s,u,m,M,N,L.root),j=V(()=>({...df(T),motionAppear:!1,leavedClassName:`${I}-panel-hidden`}),[T,I]),Z=V(()=>S?co(S).map(J=>J):null,[S]);return f(cf,{ref:t,openMotion:j,..._t(e,["rootClassName"]),expandIcon:X,prefixCls:I,className:W,style:F.root,classNames:L,styles:F,destroyOnHidden:C??y},Z)}),V$=Object.assign(H2,{Panel:H$});var j$=V$;var W$=o(e=>e instanceof Xd?e:new Xd(e),"generateColor");var U$=o((e,t)=>{let{r,g:n,b:i,a:s}=e.toRgb(),a=new On(e.toRgbString()).onBackground(t).toHsv();return s<=.5?a.v>.5:r*.299+n*.587+i*.114>192},"isBright");var uf=o(e=>{let{paddingInline:t,onlyIconSize:r,borderColorDisabled:n}=e;return wt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r,colorBorderDisabled:n})},"prepareToken"),mf=o(e=>{let t=e.contentFontSize??e.fontSize,r=e.contentFontSizeSM??e.fontSize,n=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??zl(t),s=e.contentLineHeightSM??zl(r),a=e.contentLineHeightLG??zl(n),l=U$(new Xd(e.colorBgSolid),"#fff")?"#000":"#fff",c=pn.reduce((m,p)=>({...m,[`${p}ShadowColor`]:`0 ${Q(e.controlOutlineWidth)} 0 ${nl(e[`${p}1`],e.colorBgContainer)}`}),{}),d=e.colorBgContainerDisabled,u=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:l,contentFontSize:t,contentFontSizeSM:r,contentFontSizeLG:n,contentLineHeight:i,contentLineHeightSM:s,contentLineHeightLG:a,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-r*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-n*a)/2-e.lineWidth,0),defaultBgDisabled:d,dashedBgDisabled:u}},"prepareComponentToken");var z2=o(e=>{let{componentCls:t,antCls:r,lineWidth:n,lineType:i}=e,[s,a]=br(r,"btn");return{[t]:[{[s("border-width")]:n,[s("border-color")]:"#000",[s("border-color-hover")]:a("border-color"),[s("border-color-active")]:a("border-color"),[s("border-color-disabled")]:a("border-color"),[s("border-style")]:i,[s("text-color")]:"#000",[s("text-color-hover")]:a("text-color"),[s("text-color-active")]:a("text-color"),[s("text-color-disabled")]:a("text-color"),[s("bg-color")]:"#ddd",[s("bg-color-hover")]:a("bg-color"),[s("bg-color-active")]:a("bg-color"),[s("bg-color-disabled")]:e.colorBgContainerDisabled,[s("bg-color-container")]:e.colorBgContainer,[s("shadow")]:"none"},{border:[a("border-width"),a("border-style"),a("border-color")].join(" "),color:a("text-color"),backgroundColor:a("bg-color"),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a("border-width"),a("border-style"),a("border-color-hover")].join(" "),color:a("text-color-hover"),backgroundColor:a("bg-color-hover")},"&:active":{border:[a("border-width"),a("border-style"),a("border-color-active")].join(" "),color:a("text-color-active"),backgroundColor:a("bg-color-active")}}},{[`&${t}-variant-solid`]:{[s("solid-bg-color")]:a("color-base"),[s("solid-bg-color-hover")]:a("color-hover"),[s("solid-bg-color-active")]:a("color-active"),[s("border-color")]:"transparent",[s("text-color")]:e.colorTextLightSolid,[s("bg-color")]:a("solid-bg-color"),[s("bg-color-hover")]:a("solid-bg-color-hover"),[s("bg-color-active")]:a("solid-bg-color-active"),boxShadow:a("shadow")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("border-color")]:a("color-base"),[s("border-color-hover")]:a("color-hover"),[s("border-color-active")]:a("color-active"),[s("bg-color")]:a("bg-color-container"),[s("text-color")]:a("color-base"),[s("text-color-hover")]:a("color-hover"),[s("text-color-active")]:a("color-active"),boxShadow:a("shadow")},[`&${t}-variant-dashed`]:{[s("border-style")]:"dashed",[s("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[s("border-color")]:"transparent",[s("text-color")]:a("color-base"),[s("bg-color")]:a("color-light"),[s("bg-color-hover")]:a("color-light-hover"),[s("bg-color-active")]:a("color-light-active")},[`&${t}-variant-text, &${t}-variant-link`]:{[s("border-color")]:"transparent",[s("text-color")]:a("color-base"),[s("text-color-hover")]:a("color-hover"),[s("text-color-active")]:a("color-active"),[s("bg-color")]:"transparent",[s("bg-color-hover")]:"transparent",[s("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[s("bg-color-hover")]:a("color-light"),[s("bg-color-active")]:a("color-light-active")}},{[`&${t}-variant-link`]:{[s("color-base")]:e.colorLink,[s("color-hover")]:e.colorLinkHover,[s("color-active")]:e.colorLinkActive,[s("bg-color-hover")]:e.linkHoverBg},[`&${t}-color-primary`]:{[s("color-base")]:e.colorPrimary,[s("color-hover")]:e.colorPrimaryHover,[s("color-active")]:e.colorPrimaryActive,[s("color-light")]:e.colorPrimaryBg,[s("color-light-hover")]:e.colorPrimaryBgHover,[s("color-light-active")]:e.colorPrimaryBorder,[s("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[s("text-color")]:e.primaryColor,[s("text-color-hover")]:a("text-color"),[s("text-color-active")]:a("text-color")}},[`&${t}-color-dangerous`]:{[s("color-base")]:e.colorError,[s("color-hover")]:e.colorErrorHover,[s("color-active")]:e.colorErrorActive,[s("color-light")]:e.colorErrorBg,[s("color-light-hover")]:e.colorErrorBgFilledHover,[s("color-light-active")]:e.colorErrorBgActive,[s("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[s("text-color")]:e.dangerColor,[s("text-color-hover")]:a("text-color"),[s("text-color-active")]:a("text-color")}},[`&${t}-color-default`]:{[s("solid-bg-color")]:e.colorBgSolid,[s("solid-bg-color-hover")]:e.colorBgSolidHover,[s("solid-bg-color-active")]:e.colorBgSolidActive,[s("color-base")]:e.defaultBorderColor,[s("color-hover")]:e.defaultHoverBorderColor,[s("color-active")]:e.defaultActiveBorderColor,[s("color-light")]:e.colorFillTertiary,[s("color-light-hover")]:e.colorFillSecondary,[s("color-light-active")]:e.colorFill,[s("text-color")]:e.defaultColor,[s("text-color-hover")]:e.defaultHoverColor,[s("text-color-active")]:e.defaultActiveColor,[s("shadow")]:e.defaultShadow,[`&${t}-variant-outlined`]:{[s("bg-color-disabled")]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[s("text-color")]:e.solidTextColor,[s("text-color-hover")]:a("text-color"),[s("text-color-active")]:a("text-color")},[`&${t}-variant-filled, &${t}-variant-text`]:{[s("text-color-hover")]:a("text-color"),[s("text-color-active")]:a("text-color")},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("text-color")]:e.defaultColor,[s("text-color-hover")]:e.defaultHoverColor,[s("text-color-active")]:e.defaultActiveColor,[s("bg-color-container")]:e.defaultBg,[s("bg-color-hover")]:e.defaultHoverBg,[s("bg-color-active")]:e.defaultActiveBg},[`&${t}-variant-text`]:{[s("text-color")]:e.textTextColor,[s("text-color-hover")]:e.textTextHoverColor,[s("text-color-active")]:e.textTextActiveColor,[s("bg-color-hover")]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("text-color")]:e.defaultGhostColor,[s("border-color")]:e.defaultGhostBorderColor}}}},pn.map(l=>{let c=e[`${l}6`],d=e[`${l}1`],u=e[`${l}Hover`],m=e[`${l}2`],p=e[`${l}3`],g=e[`${l}Active`],h=e[`${l}ShadowColor`];return{[`&${t}-color-${l}`]:{[s("color-base")]:c,[s("color-hover")]:u,[s("color-active")]:g,[s("color-light")]:d,[s("color-light-hover")]:m,[s("color-light-active")]:p,[s("shadow")]:h}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:a("bg-color-disabled"),color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[s("bg-color")]:e.ghostBg,[s("bg-color-hover")]:e.ghostBg,[s("bg-color-active")]:e.ghostBg,[s("shadow")]:"none",[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[s("bg-color-hover")]:e.ghostBg,[s("bg-color-active")]:e.ghostBg}}}]}},"genVariantStyle"),q$=z2;var V2=o(e=>{let{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:i,motionDurationSlow:s,motionEaseInOut:a,iconGap:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:l,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",...Gd(),"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:ri(),[`${t}-icon`]:{display:"inline-flex",alignItems:"center",[r]:{verticalAlign:"middle","&:before":{content:'"\\a0"',display:"inline-block",width:0}}},"> a":{color:"currentColor"},"&:not(:disabled)":Wn(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(d=>`${d} ${s} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineEnd:c(l).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start, &-appear-prepare, &-enter-prepare":{marginInlineStart:c(l).mul(-1).equal(),opacity:0},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},"genSharedButtonStyle"),j2=o(e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),"genCircleButtonStyle"),Fv=o((e,t="")=>{let{componentCls:r,controlHeight:n,fontSize:i,borderRadius:s,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:d}=e;return[{[t]:{fontSize:i,height:n,padding:`${Q(c)} ${Q(a)}`,borderRadius:s,[`&${r}-icon-only`]:{width:n,[l]:{fontSize:d}}}},{[`${r}${r}-circle${t}`]:j2(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},"genButtonStyle"),W2=o(e=>{let t=wt(e,{fontSize:e.contentFontSize});return Fv(t,e.componentCls)},"genSizeBaseButtonStyle"),U2=o(e=>{let t=wt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Fv(t,`${e.componentCls}-sm`)},"genSizeSmallButtonStyle"),q2=o(e=>{let t=wt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Fv(t,`${e.componentCls}-lg`)},"genSizeLargeButtonStyle"),G2=o(e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},"genBlockButtonStyle"),G$=Ht("Button",e=>{let t=uf(e);return[V2(t),W2(t),U2(t),q2(t),G2(t),q$(t),O$(t)]},mf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function X2(e,t,r,n){let{focusElCls:i,focus:s,borderElCls:a}=r,l=a?"> *":"",c=l?` ${l}`:"",d=o(p=>p.filter(Boolean).map(g=>`&:${g}${c}`).join(","),"genEffects"),u=d(["hover",i?`hover${i}`:null]),m=d([s?"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":{[m]:{zIndex:3},[u]:{zIndex:4},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${l}`]:{zIndex:0}}}}o(X2,"compactItemBorder");function Y2(e,t,r){let{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}o(Y2,"compactItemBorderRadius");function xi(e,t={focus:!0}){let{componentCls:r}=e,{componentCls:n}=t,i=n||r,s=`${i}-compact`;return{[s]:{...X2(e,s,t,i),...Y2(i,s,t)}}}o(xi,"genCompactItemStyle");function K2(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:focus,&:active":{zIndex:3},"&:hover":{zIndex:4},"&[disabled]":{zIndex:0}}}}o(K2,"compactItemVerticalBorder");function Q2(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}}}}o(Q2,"compactItemBorderVerticalRadius");function X$(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...K2(e,t,e.componentCls),...Q2(e.componentCls,t)}}}o(X$,"genCompactItemVerticalStyle");var Z2=o(e=>{let{antCls:t,componentCls:r,lineWidth:n,calc:i,colorBgContainer:s}=e,a=`${r}-variant-solid:not([disabled])`,l=i(n).mul(-1).equal(),[c,d]=br(t,"btn"),u=o(m=>({[`${r}-compact${m?"-vertical":""}-item`]:{[c("compact-connect-border-color")]:d("bg-color-hover"),[`&${a}`]:{transition:"none",[`& + ${a}:before`]:[{position:"absolute",backgroundColor:d("compact-connect-border-color"),content:'""'},m?{top:l,insetInline:l,height:n}:{insetBlock:l,insetInlineStart:l,width:n}],"&:hover:before":{display:"none"}}}}),"getCompactBorderStyle");return[u(),u(!0),{[`${a}${r}-color-default`]:{[c("compact-connect-border-color")]:`color-mix(in srgb, ${d("bg-color-hover")} 75%, ${s})`}}]},"genButtonCompactStyle"),Y$=sl(["Button","compact"],e=>{let t=uf(e);return[xi(t),X$(t),Z2(t)]},mf);function J2(e){if(Ut(e)){let t=e?.delay;return t=Oo(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}o(J2,"getLoadingConfig");var eL={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},tL=_.forwardRef((e,t)=>{let{_skipSemantic:r,loading:n=!1,prefixCls:i,color:s,variant:a,type:l,danger:c=!1,shape:d,size:u,disabled:m,className:p,rootClassName:g,children:h,icon:b,iconPosition:v,iconPlacement:x,ghost:S=!1,block:y=!1,htmlType:C="button",classNames:w,styles:E,style:R,autoInsertSpace:$,autoFocus:I,...T}=e,M=co(h),N=l||"default",{getPrefixCls:k,direction:D,autoInsertSpace:A,className:B,style:L,classNames:F,styles:q,loadingIcon:X,shape:W,color:j,variant:Z}=Mt("button"),J=d||W||"default",[U,ee]=V(()=>{if(s&&a)return[s,a];if(l||c){let Fe=eL[N]||[];return c?["danger",Fe[1]]:Fe}return a==="solid"?["primary",a]:j&&Z?[j,Z]:Z==="solid"?["primary",Z]:["default","outlined"]},[s,a,l,c,j,Z,N]),[re,ne]=V(()=>S&&ee==="solid"?[U,"outlined"]:[U,ee],[U,ee,S]),oe=re==="danger",te=oe?"dangerous":re,ie=$??A??!0,se=k("btn",i),[xe,me]=G$(se),Ee=K(Fo),$e=m??Ee,he=K(Iv),ye=V(()=>J2(n),[n]),[He,Se]=Im(ye.loading),[Ce,ue]=ce(!1),Pe=H(null),ve=Qo(t,Pe),Ue=M.length===1&&!b&&!Jp(ne),pe=H(!0);_.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),Pt(()=>{ye.delay>0?Se(!0,{ms:ye.delay}):Se(ye.loading,!0)},[ye.delay,ye.loading]),fe(()=>{if(!Pe.current||!ie)return;let Fe=Pe.current.textContent||"";Ue&&Qp(Fe)?Ce||ue(!0):Ce&&ue(!1)}),fe(()=>{I&&Pe.current?.focus()},[]);let Oe=_.useCallback(Fe=>{if(He||$e){Fe.preventDefault();return}e.onClick?.(("href"in e,Fe))},[e.onClick,He,$e]),{compactSize:Ie,compactItemClassnames:ke}=qo(se,D),We=Rr(Fe=>u??Ie??he??Fe),ze=He?"loading":b,Ne=x??v??"start",lt=_t(T,["navigate"]),qe={...e,type:N,color:re,variant:ne,danger:oe,shape:J,size:We,disabled:$e,loading:He,iconPlacement:Ne},Ze=$t(L),je=$t(R),[gt,rt]=Qt([r?void 0:F,w],[r?void 0:q,Ze,E,je],{props:qe}),qt=O(se,xe,me,{[`${se}-${J}`]:J!=="default"&&J!=="square"&&J,[`${se}-${N}`]:N,[`${se}-dangerous`]:c,[`${se}-color-${te}`]:te,[`${se}-variant-${ne}`]:ne,[`${se}-lg`]:We==="large",[`${se}-sm`]:We==="small",[`${se}-icon-only`]:!h&&h!==0&&!!ze,[`${se}-background-ghost`]:S&&!Jp(ne),[`${se}-loading`]:He,[`${se}-two-chinese-chars`]:Ce&&ie&&!He,[`${se}-block`]:y,[`${se}-rtl`]:D==="rtl",[`${se}-icon-end`]:Ne==="end"},ke,p,g,B,gt.root),Tt={className:gt.icon,style:rt.icon},Xe=o(Fe=>_.createElement(tf,{prefixCls:se,...Tt},Fe),"iconWrapperElement"),Rt=_.createElement(c$,{existIcon:!!b,prefixCls:se,loading:He,mount:pe.current,...Tt}),Lt=Ut(n)&&n.icon||X,jt;b&&!He?jt=Xe(b):n&&Lt?jt=Xe(Lt):jt=Rt;let Ve=yr(h)?s$(h,Ue&&ie,rt.content,gt.content):null;if(lt.href!==void 0)return _.createElement("a",{...lt,className:O(qt,{[`${se}-disabled`]:$e}),href:$e?void 0:lt.href,style:rt.root,onClick:Oe,ref:ve,tabIndex:$e?-1:0,"aria-disabled":$e},jt,Ve);let it=_.createElement("button",{...T,type:C,className:qt,style:rt.root,onClick:Oe,disabled:$e,ref:ve},jt,Ve,ke&&_.createElement(Y$,{prefixCls:se}));return Jp(ne)||(it=_.createElement(qp,{component:"Button",disabled:He},it)),it}),Hv=tL;Hv.Group=n$;Hv.__ANT_BUTTON=!0;var Si=Hv;var Yd=Si;function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zv.apply(this,arguments)}o(zv,"_extends");var rL=le((e,t)=>{let{prefixCls:r="rc-checkbox",className:n,style:i,checked:s,disabled:a,defaultChecked:l=!1,type:c="checkbox",title:d,onChange:u,...m}=e,p=H(null),g=H(null),[h,b]=Ft(l,s);ft(t,()=>({focus:o(S=>{p.current?.focus(S)},"focus"),blur:o(()=>{p.current?.blur()},"blur"),input:p.current,nativeElement:g.current}));let v=O(r,n,{[`${r}-checked`]:h,[`${r}-disabled`]:a}),x=o(S=>{a||("checked"in e||b(S.target.checked),u?.({target:{...e,type:c,checked:S.target.checked},stopPropagation(){S.stopPropagation()},preventDefault(){S.preventDefault()},nativeEvent:S.nativeEvent}))},"handleChange");return f("span",{className:v,title:d,style:i,ref:g},f("input",zv({},m,{className:`${r}-input`,ref:p,onChange:x,disabled:a,checked:!!h,type:c})))}),K$=rL;var oL=o(e=>`${e}-css-var`,"useCSSVarCls"),oo=oL;var Bi="RC_FORM_INTERNAL_HOOKS",no=o(()=>{Hr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},"warningFunc"),nL=bt({getFieldValue:no,getFieldsValue:no,getFieldError:no,getFieldWarning:no,getFieldsError:no,isFieldsTouched:no,isFieldTouched:no,isFieldValidating:no,isFieldsValidating:no,resetFields:no,setFields:no,setFieldValue:no,setFieldsValue:no,validateFields:no,submit:no,getInternalHooks:o(()=>(no(),{dispatch:no,initEntityValue:no,registerField:no,useSubscribe:no,setInitialValues:no,destroyForm:no,setCallbacks:no,registerWatch:no,getFields:no,setValidateMessages:no,setPreserve:no,getInitialValue:no}),"getInternalHooks")}),Fi=nL;var iL=bt(null),ca=iL;function Kd(e){return e==null?[]:Array.isArray(e)?e:[e]}o(Kd,"toArray");function Q$(e){return e&&!!e._init}o(Q$,"isFormInstance");function pf(){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}}}o(pf,"newMessages");var ff=pf();var sL=/%[sdj%]/g,J$=o(()=>{},"warning");typeof process<"u"&&process.env;function gf(e){if(!e||!e.length)return null;let t={};return e.forEach(r=>{let n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}o(gf,"convertFieldsError");function Go(e,...t){let r=0,n=t.length;return typeof e=="function"?e.apply(null,t):typeof e=="string"?e.replace(sL,s=>{if(s==="%%")return"%";if(r>=n)return s;switch(s){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch{return"[Circular]"}break;default:return s}}):e}o(Go,"format");function aL(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}o(aL,"isNativeStringType");function Lr(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||aL(t)&&typeof e=="string"&&!e)}o(Lr,"isEmptyValue");function lL(e,t,r){let n=[],i=0,s=e.length;function a(l){n.push(...l||[]),i++,i===s&&r(n)}o(a,"count"),e.forEach(l=>{t(l,a)})}o(lL,"asyncParallelArray");function Z$(e,t,r){let n=0,i=e.length;function s(a){if(a&&a.length){r(a);return}let l=n;n=n+1,l<i?t(e[l],s):r([])}o(s,"next"),s([])}o(Z$,"asyncSerialArray");function cL(e){let t=[];return Object.keys(e).forEach(r=>{t.push(...e[r]||[])}),t}o(cL,"flattenObjArr");var hf=class extends Error{static{o(this,"AsyncValidationError")}errors;fields;constructor(t,r){super("Async Validation Error"),this.errors=t,this.fields=r}};function eI(e,t,r,n,i){if(t.first){let m=new Promise((p,g)=>{let h=o(v=>(n(v),v.length?g(new hf(v,gf(v))):p(i)),"next"),b=cL(e);Z$(b,r,h)});return m.catch(p=>p),m}let s=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),l=a.length,c=0,d=[],u=new Promise((m,p)=>{let g=o(h=>{if(d.push.apply(d,h),c++,c===l)return n(d),d.length?p(new hf(d,gf(d))):m(i)},"next");a.length||(n(d),m(i)),a.forEach(h=>{let b=e[h];s.indexOf(h)!==-1?Z$(b,r,g):lL(b,r,g)})});return u.catch(m=>m),u}o(eI,"asyncMap");function dL(e){return!!(e&&e.message!==void 0)}o(dL,"isErrorObj");function uL(e,t){let r=e;for(let n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}o(uL,"getValue");function Vv(e,t){return r=>{let n;return e.fullFields?n=uL(t,e.fullFields):n=t[r.field||e.fullField],dL(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}o(Vv,"complementError");function jv(e,t){if(t){for(let r in t)if(t.hasOwnProperty(r)){let n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]={...e[r],...n}:e[r]=n}}return e}o(jv,"deepMerge");var vc="enum",mL=o((e,t,r,n,i)=>{e[vc]=Array.isArray(e[vc])?e[vc]:[],e[vc].indexOf(t)===-1&&n.push(Go(i.messages[vc],e.fullField,e[vc].join(", ")))},"enumerable"),tI=mL;var pL=o((e,t,r,n,i)=>{e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||n.push(Go(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern=="string"&&(new RegExp(e.pattern).test(t)||n.push(Go(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},"pattern"),rI=pL;var fL=o((e,t,r,n,i)=>{let s=typeof e.len=="number",a=typeof e.min=="number",l=typeof e.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=t,u=null,m=typeof t=="number",p=typeof t=="string",g=Array.isArray(t);if(m?u="number":p?u="string":g&&(u="array"),!u)return!1;g&&(d=t.length),p&&(d=t.replace(c,"_").length),s?d!==e.len&&n.push(Go(i.messages[u].len,e.fullField,e.len)):a&&!l&&d<e.min?n.push(Go(i.messages[u].min,e.fullField,e.min)):l&&!a&&d>e.max?n.push(Go(i.messages[u].max,e.fullField,e.max)):a&&l&&(d<e.min||d>e.max)&&n.push(Go(i.messages[u].range,e.fullField,e.min,e.max))},"range"),oI=fL;var gL=o((e,t,r,n,i,s)=>{e.required&&(!r.hasOwnProperty(e.field)||Lr(t,s||e.type))&&n.push(Go(i.messages.required,e.fullField))},"required"),bf=gL;var vf,nI=o(()=>{if(vf)return vf;let e="[a-fA-F\\d:]",t=o(w=>w&&w.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|$))`:"","b"),r="(?: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}",a=`(?:${[`(?:${n}:){7}(?:${n}|:)`,`(?:${n}:){6}(?:${r}|:${n}|:)`,`(?:${n}:){5}(?::${r}|(?::${n}){1,2}|:)`,`(?:${n}:){4}(?:(?::${n}){0,1}:${r}|(?::${n}){1,3}|:)`,`(?:${n}:){3}(?:(?::${n}){0,2}:${r}|(?::${n}){1,4}|:)`,`(?:${n}:){2}(?:(?::${n}){0,3}:${r}|(?::${n}){1,5}|:)`,`(?:${n}:){1}(?:(?::${n}){0,4}:${r}|(?::${n}){1,6}|:)`,`(?::(?:(?::${n}){0,5}:${r}|(?::${n}){1,7}|:))`].join("|")})(?:%[0-9a-zA-Z]{1,})?`,l=new RegExp(`(?:^${r}$)|(?:^${a}$)`),c=new RegExp(`^${r}$`),d=new RegExp(`^${a}$`),u=o(w=>w&&w.exact?l:new RegExp(`(?:${t(w)}${r}${t(w)})|(?:${t(w)}${a}${t(w)})`,"g"),"ip");u.v4=w=>w&&w.exact?c:new RegExp(`${t(w)}${r}${t(w)}`,"g"),u.v6=w=>w&&w.exact?d:new RegExp(`${t(w)}${a}${t(w)}`,"g");let m="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,h=u.v6().source,C=`(?:${m}|www\\.)${p}(?:localhost|${g}|${h}|(?:(?:[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 vf=new RegExp(`(?:^${C}$)`,"i"),vf},"default");var Wv={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},Qd={integer(e){return Qd.number(e)&&parseInt(e,10)===e},float(e){return Qd.number(e)&&!Qd.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"&&!Qd.array(e)},method(e){return typeof e=="function"},email(e){return typeof e=="string"&&e.length<=320&&!!e.match(Wv.email)},tel(e){return typeof e=="string"&&e.length<=32&&!!e.match(Wv.tel)},url(e){return typeof e=="string"&&e.length<=2048&&!!e.match(nI())},hex(e){return typeof e=="string"&&!!e.match(Wv.hex)}},hL=o((e,t,r,n,i)=>{if(e.required&&t===void 0){bf(e,t,r,n,i);return}let s=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],a=e.type;s.indexOf(a)>-1?Qd[a](t)||n.push(Go(i.messages.types[a],e.fullField,e.type)):a&&typeof t!==e.type&&n.push(Go(i.messages.types[a],e.fullField,e.type))},"type"),iI=hL;var bL=o((e,t,r,n,i)=>{(/^\s+$/.test(t)||t==="")&&n.push(Go(i.messages.whitespace,e.fullField))},"whitespace"),sI=bL;var Vt={required:bf,whitespace:sI,type:iI,range:oI,enum:tI,pattern:rI};var vL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i)}r(s)},"any"),aI=vL;var yL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(t==null&&!e.required)return r();Vt.required(e,t,n,s,i,"array"),t!=null&&(Vt.type(e,t,n,s,i),Vt.range(e,t,n,s,i))}r(s)},"array"),lI=yL;var xL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&Vt.type(e,t,n,s,i)}r(s)},"boolean"),cI=xL;var SL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t,"date")&&!e.required)return r();if(Vt.required(e,t,n,s,i),!Lr(t,"date")){let l;t instanceof Date?l=t:l=new Date(t),Vt.type(e,l,n,s,i),l&&Vt.range(e,l.getTime(),n,s,i)}}r(s)},"date"),dI=SL;var CL="enum",wL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&Vt[CL](e,t,n,s,i)}r(s)},"enumerable"),uI=wL;var RL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&(Vt.type(e,t,n,s,i),Vt.range(e,t,n,s,i))}r(s)},"floatFn"),mI=RL;var EL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&(Vt.type(e,t,n,s,i),Vt.range(e,t,n,s,i))}r(s)},"integer"),pI=EL;var $L=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&Vt.type(e,t,n,s,i)}r(s)},"method"),fI=$L;var IL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(t===""&&(t=void 0),Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&(Vt.type(e,t,n,s,i),Vt.range(e,t,n,s,i))}r(s)},"number"),gI=IL;var PL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),t!==void 0&&Vt.type(e,t,n,s,i)}r(s)},"object"),hI=PL;var NL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t,"string")&&!e.required)return r();Vt.required(e,t,n,s,i),Lr(t,"string")||Vt.pattern(e,t,n,s,i)}r(s)},"pattern"),bI=NL;var ML=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t)&&!e.required)return r();Vt.required(e,t,n,s,i),Lr(t)||Vt.type(e,t,n,s,i)}r(s)},"regexp"),vI=ML;var TL=o((e,t,r,n,i)=>{let s=[],a=Array.isArray(t)?"array":typeof t;Vt.required(e,t,n,s,i,a),r(s)},"required"),yI=TL;var OL=o((e,t,r,n,i)=>{let s=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t,"string")&&!e.required)return r();Vt.required(e,t,n,s,i,"string"),Lr(t,"string")||(Vt.type(e,t,n,s,i),Vt.range(e,t,n,s,i),Vt.pattern(e,t,n,s,i),e.whitespace===!0&&Vt.whitespace(e,t,n,s,i))}r(s)},"string"),xI=OL;var kL=o((e,t,r,n,i)=>{let s=e.type,a=[];if(e.required||!e.required&&n.hasOwnProperty(e.field)){if(Lr(t,s)&&!e.required)return r();Vt.required(e,t,n,a,i,s),Lr(t,s)||Vt.type(e,t,n,a,i)}r(a)},"type"),Zd=kL;var yc={string:xI,method:fI,number:gI,boolean:cI,regexp:vI,integer:pI,float:mI,array:lI,object:hI,enum:uI,pattern:bI,date:dI,url:Zd,hex:Zd,email:Zd,tel:Zd,required:yI,any:aI};var Uv=class e{static{o(this,"Schema")}static register=o(function(r,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");yc[r]=n},"register");static warning=J$;static messages=ff;static validators=yc;rules=null;_messages=ff;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(r=>{let n=t[r];this.rules[r]=Array.isArray(n)?n:[n]})}messages(t){return t&&(this._messages=jv(pf(),t)),this._messages}validate(t,r={},n=()=>{}){let i=t,s=r,a=n;if(typeof s=="function"&&(a=s,s={}),!this.rules||Object.keys(this.rules).length===0)return a&&a(null,i),Promise.resolve(i);function l(m){let p=[],g={};function h(b){Array.isArray(b)?p=p.concat(...b):p.push(b)}o(h,"add");for(let b=0;b<m.length;b++)h(m[b]);p.length?(g=gf(p),a(p,g)):a(null,i)}if(o(l,"complete"),s.messages){let m=this.messages();m===ff&&(m=pf()),jv(m,s.messages),s.messages=m}else s.messages=this.messages();let c={};(s.keys||Object.keys(this.rules)).forEach(m=>{let p=this.rules[m],g=i[m];p.forEach(h=>{let b=h;typeof b.transform=="function"&&(i===t&&(i={...i}),g=i[m]=b.transform(g),g!=null&&(b.type=b.type||(Array.isArray(g)?"array":typeof g))),typeof b=="function"?b={validator:b}:b={...b},b.validator=this.getValidationMethod(b),b.validator&&(b.field=m,b.fullField=b.fullField||m,b.type=this.getType(b),c[m]=c[m]||[],c[m].push({rule:b,value:g,source:i,field:m}))})});let u={};return eI(c,s,(m,p)=>{let g=m.rule,h=(g.type==="object"||g.type==="array")&&(typeof g.fields=="object"||typeof g.defaultField=="object");h=h&&(g.required||!g.required&&m.value),g.field=m.field;function b(S,y){return{...y,fullField:`${g.fullField}.${S}`,fullFields:g.fullFields?[...g.fullFields,S]:[S]}}o(b,"addFullField");function v(S=[]){let y=Array.isArray(S)?S:[S];!s.suppressWarning&&y.length&&e.warning("async-validator:",y),y.length&&g.message!==void 0&&g.message!==null&&(y=[].concat(g.message));let C=y.map(Vv(g,i));if(s.first&&C.length)return u[g.field]=1,p(C);if(!h)p(C);else{if(g.required&&!m.value)return g.message!==void 0?C=[].concat(g.message).map(Vv(g,i)):s.error&&(C=[s.error(g,Go(s.messages.required,g.field))]),p(C);let w={};g.defaultField&&Object.keys(m.value).map($=>{w[$]=g.defaultField}),w={...w,...m.rule.fields};let E={};Object.keys(w).forEach($=>{let I=w[$],T=Array.isArray(I)?I:[I];E[$]=T.map(b.bind(null,$))});let R=new e(E);R.messages(s.messages),m.rule.options&&(m.rule.options.messages=s.messages,m.rule.options.error=s.error),R.validate(m.value,m.rule.options||s,$=>{let I=[];C&&C.length&&I.push(...C),$&&$.length&&I.push(...$),p(I.length?I:null)})}}o(v,"cb");let x;if(g.asyncValidator)x=g.asyncValidator(g,m.value,v,m.source,s);else if(g.validator){try{x=g.validator(g,m.value,v,m.source,s)}catch(S){console.error?.(S),s.suppressValidatorError||setTimeout(()=>{throw S},0),v(S.message)}x===!0?v():x===!1?v(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||`${g.fullField||g.field} fails`):x instanceof Array?v(x):x instanceof Error&&v(x.message)}x&&x.then&&x.then(()=>v(),S=>v(S))},m=>{l(m)},i)}getType(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!yc.hasOwnProperty(t.type))throw new Error(Go("Unknown rule type %s",t.type));return t.type||"string"}getValidationMethod(t){if(typeof t.validator=="function")return t.validator;let r=Object.keys(t),n=r.indexOf("message");return n!==-1&&r.splice(n,1),r.length===1&&r[0]==="required"?yc.required:yc[this.getType(t)]||void 0}},SI=Uv;var qn="'${name}' is not a valid ${type}",yf={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:qn,method:qn,array:qn,object:qn,number:qn,date:qn,boolean:qn,integer:qn,float:qn,regexp:qn,email:qn,tel:qn,url:qn,hex:qn},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 CI=SI;function DL(e,t){return e.replace(/\\?\$\{\w+\}/g,r=>{if(r.startsWith("\\"))return r.slice(1);let n=r.slice(2,-1);return t[n]})}o(DL,"replaceMessage");var wI="CODE_LOGIC_ERROR";async function qv(e,t,r,n,i){let s={...r};if(delete s.ruleIndex,CI.warning=()=>{},s.validator){let p=s.validator;s.validator=(...g)=>{try{return p(...g)}catch(h){return console.error(h),Promise.reject(wI)}}}let a=null;s&&s.type==="array"&&s.defaultField&&(a=s.defaultField,delete s.defaultField);let l=new CI({[e]:[s]}),c=Hn(yf,n.validateMessages);l.messages(c);let d=[];try{await Promise.resolve(l.validate({[e]:t},{...n}))}catch(p){p.errors&&(d=p.errors.map(({message:g},h)=>{let b=g===wI?c.default:g;return Tr(b)?so(b,{key:`error_${h}`}):b}))}if(!d.length&&a&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((g,h)=>qv(`${e}.${h}`,g,a,n,i)))).reduce((g,h)=>[...g,...h],[]);let u={...r,name:e,enum:(r.enum||[]).join(", "),...i};return d.map(p=>typeof p=="string"?DL(p,u):p)}o(qv,"validateRule");function RI(e,t,r,n,i,s){let a=e.join("."),l=r.map((d,u)=>{let m=d.validator,p={...d,ruleIndex:u};return m&&(p.validator=(g,h,b)=>{let v=!1,S=m(g,h,o((...y)=>{Promise.resolve().then(()=>{Hr(!v,"Your validator function has already return a promise. `callback` will be ignored."),v||b(...y)})},"wrappedCallback"));v=S&&typeof S.then=="function"&&typeof S.catch=="function",Hr(v,"`callback` is deprecated. Please return a promise instead."),v&&S.then(()=>{b()}).catch(y=>{b(y||" ")})}),p}).sort(({warningOnly:d,ruleIndex:u},{warningOnly:m,ruleIndex:p})=>!!d==!!m?u-p:d?1:-1),c;if(i===!0)c=new Promise(async(d,u)=>{for(let m=0;m<l.length;m+=1){let p=l[m],g=await qv(a,t,p,n,s);if(g.length){u([{errors:g,rule:p}]);return}}d([])});else{let d=l.map(u=>qv(a,t,u,n,s).then(m=>({errors:m,rule:u})));c=(i?_L(d):AL(d)).then(u=>Promise.reject(u))}return c.catch(d=>d),c}o(RI,"validateRules");async function AL(e){return Promise.all(e).then(t=>[].concat(...t))}o(AL,"finishOnAllFailed");async function _L(e){let t=0;return new Promise(r=>{e.forEach(n=>{n.then(i=>{i.errors.length&&r([i]),t+=1,t===e.length&&r([])})})})}o(_L,"finishOnFirstFailed");function bo(e){return Kd(e)}o(bo,"getNamePath");function Gv(e,t){let r={};return t.forEach(n=>{let i=Jo(e,n);r=fn(r,n,i)}),r}o(Gv,"cloneByNamePathList");function da(e,t,r=!1){return e&&e.some(n=>xc(t,n,r))}o(da,"containsNamePath");function xc(e,t,r=!1){return!e||!t||!r&&e.length!==t.length?!1:t.every((n,i)=>e[i]===n)}o(xc,"matchNamePath");function EI(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;let r=Object.keys(e),n=Object.keys(t);return[...new Set([...r,...n])].every(s=>{let a=e[s],l=t[s];return typeof a=="function"&&typeof l=="function"?!0:a===l})}o(EI,"isSimilar");function $I(e,...t){let r=t[0];return r&&r.target&&typeof r.target=="object"&&e in r.target?r.target[e]:r}o($I,"defaultGetValueFromEvent");function Xv(e,t,r){let{length:n}=e;if(t<0||t>=n||r<0||r>=n)return e;let i=e[t],s=t-r;return s>0?[...e.slice(0,r),i,...e.slice(r,t),...e.slice(t+1,n)]:s<0?[...e.slice(0,t),...e.slice(t+1,r+1),i,...e.slice(r+1,n)]:e}o(Xv,"move");var Yv=o(e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},"macroTask"),Jd=class{static{o(this,"WatcherCenter")}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(r=>{this.namePathList.every(n=>!xc(n,r))&&this.namePathList.push(r)}),this.doBatch()}doBatch(){this.taskId+=1;let t=this.taskId;Yv(()=>{if(t===this.taskId&&this.watcherList.size){let r=this.form.getForm(),n=r.getFieldsValue(),i=r.getFieldsValue(!0);this.watcherList.forEach(s=>{s(n,i,this.namePathList)}),this.namePathList=[]}})}};async function Kv(){return new Promise(e=>{Yv(()=>{St(()=>{e()})})})}o(Kv,"delayFrame");function Zv(){return Zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zv.apply(this,arguments)}o(Zv,"_extends");var ll=[],eu=[];function Qv(e,t,r,n,i,s){return typeof e=="function"?e(t,r,"source"in s?{source:s.source}:{}):n!==i}o(Qv,"requireUpdate");var Jv=class extends Vh{static{o(this,"Field")}static contextType=Fi;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=ll;warnings=eu;constructor(t){if(super(t),t.fieldContext){let{getInternalHooks:r}=t.fieldContext,{initEntityValue:n}=r(Bi);n(this)}}componentDidMount(){let{shouldUpdate:t,fieldContext:r}=this.props;if(this.mounted=!0,r){let{getInternalHooks:n}=r,{registerField:i}=n(Bi);this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=o(()=>{let{preserve:t,isListField:r,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(r,t,bo(n)),this.cancelRegisterFunc=null},"cancelRegister");getNamePath=o(()=>{let{name:t,fieldContext:r}=this.props,{prefixName:n=[]}=r;return t!==void 0?[...n,...t]:[]},"getNamePath");getRules=o(()=>{let{rules:t=[],fieldContext:r}=this.props;return t.map(n=>typeof n=="function"?n(r):n)},"getRules");reRender(){this.mounted&&this.forceUpdate()}refresh=o(()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))},"refresh");metaCache=null;triggerMetaEvent=o(t=>{let{onMetaChange:r}=this.props;if(r){let n={...this.getMeta(),destroy:t};ki(this.metaCache,n)||r(n),this.metaCache=n}else this.metaCache=null},"triggerMetaEvent");onStoreChange=o((t,r,n)=>{let{shouldUpdate:i,dependencies:s=[],onReset:a}=this.props,{store:l}=n,c=this.getNamePath(),d=this.getValue(t),u=this.getValue(l),m=r&&da(r,c);switch(n.type==="valueUpdate"&&n.source==="external"&&!ki(d,u)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=ll,this.warnings=eu,this.triggerMetaEvent()),n.type){case"reset":if(!r||m){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=ll,this.warnings=eu,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case"remove":{if(i&&Qv(i,t,l,d,u,n)){this.reRender();return}break}case"setField":{let{data:p}=n;if(m){"touched"in p&&(this.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(this.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(this.errors=p.errors||ll),"warnings"in p&&(this.warnings=p.warnings||eu),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in p&&da(r,c,!0)){this.reRender();return}if(i&&!c.length&&Qv(i,t,l,d,u,n)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(bo).some(g=>da(n.relatedFields,g))){this.reRender();return}break}default:if(m||(!s.length||c.length||i)&&Qv(i,t,l,d,u,n)){this.reRender();return}break}i===!0&&this.reRender()},"onStoreChange");validateRules=o(t=>{let r=this.getNamePath(),n=this.getValue(),{triggerName:i,validateOnly:s=!1,delayFrame:a}=t||{},l=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:c=!1,messageVariables:d,validateDebounce:u}=this.props;a&&await Kv();let m=this.getRules();if(i&&(m=m.filter(g=>g).filter(g=>{let{validateTrigger:h}=g;return h?Kd(h).includes(i):!0})),u&&i&&(await new Promise(g=>{setTimeout(g,u)}),this.validatePromise!==l))return[];let p=RI(r,n,m,t,c,d);return p.catch(g=>g).then((g=ll)=>{if(this.validatePromise===l){this.validatePromise=null;let h=[],b=[];g.forEach?.(({rule:{warningOnly:v},errors:x=ll})=>{v?b.push(...x):h.push(...x)}),this.errors=h,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),p});return s||(this.validatePromise=l,this.dirty=!0,this.errors=ll,this.warnings=eu,this.triggerMetaEvent(),this.reRender()),l},"validateRules");isFieldValidating=o(()=>!!this.validatePromise,"isFieldValidating");isFieldTouched=o(()=>this.touched,"isFieldTouched");isFieldDirty=o(()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:t}=this.props,{getInitialValue:r}=t.getInternalHooks(Bi);return r(this.getNamePath())!==void 0},"isFieldDirty");getErrors=o(()=>this.errors,"getErrors");getWarnings=o(()=>this.warnings,"getWarnings");isListField=o(()=>this.props.isListField,"isListField");isList=o(()=>this.props.isList,"isList");isPreserve=o(()=>this.props.preserve,"isPreserve");getMeta=o(()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null}),"getMeta");getOnlyChild=o(t=>{if(typeof t=="function"){let n=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),n,this.props.fieldContext)),isFunction:!0}}let r=co(t);return r.length!==1||!Tr(r[0])?{child:r,isFunction:!1}:{child:r[0],isFunction:!1}},"getOnlyChild");getValue=o(t=>{let{getFieldsValue:r}=this.props.fieldContext,n=this.getNamePath();return Jo(t||r(!0),n)},"getValue");getControlled=o((t={})=>{let{name:r,trigger:n="onChange",validateTrigger:i,getValueFromEvent:s,normalize:a,valuePropName:l="value",getValueProps:c,fieldContext:d}=this.props,u=i!==void 0?i:d.validateTrigger,m=this.getNamePath(),{getInternalHooks:p,getFieldsValue:g}=d,{dispatch:h}=p(Bi),b=this.getValue(),v=c||(w=>({[l]:w})),x=t[n],S=r!==void 0?v(b):{},y={...t,...S};return y[n]=(...w)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let E=this.getValue(),R;s?R=s(...w):R=$I(l,...w),a&&(R=a(R,E,g(!0))),R!==E&&h({type:"updateValue",namePath:m,value:R}),x&&x(...w)},Kd(u||[]).forEach(w=>{let E=y[w];y[w]=(...R)=>{E&&E(...R);let{rules:$}=this.props;$&&$.length&&h({type:"validateField",namePath:m,triggerName:w})}}),y},"getControlled");render(){let{resetCount:t}=this.state,{children:r}=this.props,{child:n,isFunction:i}=this.getOnlyChild(r),s;return i?s=n:Tr(n)?s=so(n,this.getControlled(n.props)):(Hr(!n,"`children` of Field is not validate ReactElement."),s=n),f(rr,{key:t},s)}};function LL({name:e,...t}){let r=K(Fi),n=K(ca),i=e!==void 0?bo(e):void 0,s=t.isListField??!!n,a="keep";return s||(a=`_${(i||[]).join("_")}`),f(Jv,Zv({key:a,name:i,isListField:s},t,{fieldContext:r}))}o(LL,"WrapperField");var xf=LL;function BL({name:e,initialValue:t,children:r,rules:n,validateTrigger:i,isListField:s}){let a=K(Fi),l=K(ca),d=H({keys:[],id:0}).current,u=V(()=>[...bo(a.prefixName)||[],...bo(e)],[a.prefixName,e]),m=V(()=>({...a,prefixName:u}),[a,u]),p=V(()=>({getKey:o(h=>{let b=u.length,v=h[b];return[d.keys[v],h.slice(b+1)]},"getKey")}),[d,u]);if(typeof r!="function")return Hr(!1,"Form.List only accepts function as children."),null;let g=o((h,b,{source:v})=>v==="internal"?!1:h!==b,"shouldUpdate");return f(ca.Provider,{value:p},f(Fi.Provider,{value:m},f(xf,{name:[],shouldUpdate:g,rules:n,validateTrigger:i,initialValue:t,isList:!0,isListField:s??!!l},({value:h=[],onChange:b},v)=>{let{getFieldValue:x}=a,S=o(()=>x(u||[])||[],"getNewValue"),y={add:o((w,E)=>{let R=S();E>=0&&E<=R.length?(d.keys=[...d.keys.slice(0,E),d.id,...d.keys.slice(E)],b([...R.slice(0,E),w,...R.slice(E)])):(d.keys=[...d.keys,d.id],b([...R,w])),d.id+=1},"add"),remove:o(w=>{let E=S(),R=new Set(Array.isArray(w)?w:[w]);R.size<=0||(d.keys=d.keys.filter(($,I)=>!R.has(I)),b(E.filter(($,I)=>!R.has(I))))},"remove"),move(w,E){if(w===E)return;let R=S();w<0||w>=R.length||E<0||E>=R.length||(d.keys=Xv(d.keys,w,E),b(Xv(R,w,E)))}},C=h||[];return Array.isArray(C)||(C=[]),r(C.map((w,E)=>{let R=d.keys[E];return R===void 0&&(d.keys[E]=d.id,R=d.keys[E],d.id+=1),{name:E,key:R,isListField:!0}}),y,v)})))}o(BL,"List");var II=BL;function PI(e){let t=!1,r=e.length,n=[];return e.length?new Promise((i,s)=>{e.forEach((a,l)=>{a.catch(c=>(t=!0,c)).then(c=>{r-=1,n[l]=c,!(r>0)&&(t&&s(n),i(n))})})}):Promise.resolve([])}o(PI,"allPromiseFinish");var ey="__@field_split__";function Sf(e){return e.map(t=>`${typeof t}:${t}`).join(ey)}o(Sf,"normalize");var ty=class{static{o(this,"NameMap")}kvs=new Map;set(t,r){this.kvs.set(Sf(t),r)}get(t){return this.kvs.get(Sf(t))}getAsPrefix(t){let r=Sf(t),n=r+ey,i=[],s=this.kvs.get(r);return s!==void 0&&i.push(s),this.kvs.forEach((a,l)=>{l.startsWith(n)&&i.push(a)}),i}update(t,r){let n=this.get(t),i=r(n);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(Sf(t))}map(t){return[...this.kvs.entries()].map(([r,n])=>{let i=r.split(ey);return t({key:i.map(s=>{let[,a,l]=s.match(/^([^:]*):(.*)$/);return a==="number"?Number(l):l}),value:n})})}toJSON(){let t={};return this.map(({key:r,value:n})=>(t[r.join(".")]=n,null)),t}},cl=ty;var ry=class{static{o(this,"FormStore")}formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new Jd(this);constructor(t){this.forceRootUpdate=t}getForm=o(()=>({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}),"getForm");getInternalHooks=o(t=>t===Bi?(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}):(Hr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null),"getInternalHooks");useSubscribe=o(t=>{this.subscribable=t},"useSubscribe");prevWithoutPreserves=null;setInitialValues=o((t,r)=>{if(this.initialValues=t||{},r){let n=Hn(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{n=fn(n,i,Jo(t,i))}),this.prevWithoutPreserves=null,this.updateStore(n)}},"setInitialValues");destroyForm=o(t=>{if(t)this.updateStore({});else{let r=new cl;this.getFieldEntities(!0).forEach(n=>{this.isMergedPreserve(n.isPreserve())||r.set(n.getNamePath(),!0)}),this.prevWithoutPreserves=r}},"destroyForm");getInitialValue=o(t=>{let r=Jo(this.initialValues,t);return t.length?Hn(r):r},"getInitialValue");setCallbacks=o(t=>{this.callbacks=t},"setCallbacks");setValidateMessages=o(t=>{this.validateMessages=t},"setValidateMessages");setPreserve=o(t=>{this.preserve=t},"setPreserve");registerWatch=o(t=>this.watcherCenter.register(t),"registerWatch");notifyWatch=o((t=[])=>{this.watcherCenter.notify(t)},"notifyWatch");timeoutId=null;warningUnhooked=o(()=>{},"warningUnhooked");updateStore=o(t=>{this.store=t},"updateStore");getFieldEntities=o((t=!1)=>t?this.fieldEntities.filter(r=>r.getNamePath().length):this.fieldEntities,"getFieldEntities");getFieldsMap=o((t=!1)=>{let r=new cl;return this.getFieldEntities(t).forEach(n=>{let i=n.getNamePath();r.set(i,n)}),r},"getFieldsMap");getFieldEntitiesForNamePathList=o((t,r=!1)=>{if(!t)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return r?t.flatMap(i=>{let s=bo(i),a=n.getAsPrefix(s);return a.length?a:[{INVALIDATE_NAME_PATH:s}]}):t.map(i=>{let s=bo(i);return n.get(s)||{INVALIDATE_NAME_PATH:bo(i)}})},"getFieldEntitiesForNamePathList");getFieldsValue=o((t,r)=>{this.warningUnhooked();let n,i;if(t===!0||Array.isArray(t)?(n=t,i=r):t&&typeof t=="object"&&(i=t.filter),n===!0&&!i)return this.store;let s=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],l=[];s.forEach(d=>{let u=d.INVALIDATE_NAME_PATH||d.getNamePath();if(d.isList?.()){l.push(u);return}if(!i)a.push(u);else{let m="getMeta"in d?d.getMeta():null;i(m)&&a.push(u)}});let c=Gv(this.store,a.map(bo));return l.forEach(d=>{Jo(c,d)||(c=fn(c,d,[]))}),c},"getFieldsValue");getFieldValue=o(t=>{this.warningUnhooked();let r=bo(t);return Jo(this.store,r)},"getFieldValue");getFieldsError=o(t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((n,i)=>n&&!n.INVALIDATE_NAME_PATH?{name:n.getNamePath(),errors:n.getErrors(),warnings:n.getWarnings()}:{name:bo(t[i]),errors:[],warnings:[]})),"getFieldsError");getFieldError=o(t=>{this.warningUnhooked();let r=bo(t);return this.getFieldsError([r])[0].errors},"getFieldError");getFieldWarning=o(t=>{this.warningUnhooked();let r=bo(t);return this.getFieldsError([r])[0].warnings},"getFieldWarning");isFieldsTouched=o((...t)=>{this.warningUnhooked();let[r,n]=t,i,s=!1;t.length===0?i=null:t.length===1?Array.isArray(r)?(i=r.map(bo),s=!1):(i=null,s=r):(i=r.map(bo),s=n);let a=this.getFieldEntities(!0),l=o(m=>m.isFieldTouched(),"isFieldTouched");if(!i)return s?a.every(m=>l(m)||m.isList()):a.some(l);let c=new cl;i.forEach(m=>{c.set(m,[])}),a.forEach(m=>{let p=m.getNamePath();i.forEach(g=>{g.every((h,b)=>p[b]===h)&&c.update(g,h=>[...h,m])})});let d=o(m=>m.some(l),"isNamePathListTouched"),u=c.map(({value:m})=>m);return s?u.every(d):u.some(d)},"isFieldsTouched");isFieldTouched=o(t=>(this.warningUnhooked(),this.isFieldsTouched([t])),"isFieldTouched");isFieldsValidating=o(t=>{this.warningUnhooked();let r=this.getFieldEntities();if(!t)return r.some(i=>i.isFieldValidating());let n=t.map(bo);return r.some(i=>{let s=i.getNamePath();return da(n,s)&&i.isFieldValidating()})},"isFieldsValidating");isFieldValidating=o(t=>(this.warningUnhooked(),this.isFieldsValidating([t])),"isFieldValidating");resetWithFieldInitialValue=o((t={})=>{let r=new cl,n=this.getFieldEntities(!0);n.forEach(a=>{let{initialValue:l}=a.props,c=a.getNamePath();if(l!==void 0){let d=r.get(c)||new Set;d.add({entity:a,value:l}),r.set(c,d)}});let i=o(a=>{a.forEach(l=>{let{initialValue:c}=l.props;if(c!==void 0){let d=l.getNamePath();if(this.getInitialValue(d)!==void 0)Hr(!1,`Form already set 'initialValues' with path '${d.join(".")}'. Field can not overwrite it.`);else{let m=r.get(d);if(m&&m.size>1)Hr(!1,`Multiple Field with path '${d.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(m){let p=this.getFieldValue(d);!l.isListField()&&(!t.skipExist||p===void 0)&&this.updateStore(fn(this.store,d,[...m][0].value))}}}})},"resetWithFields"),s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(a=>{let l=r.get(a);l&&s.push(...[...l].map(c=>c.entity))})):s=n,i(s)},"resetWithFieldInitialValue");resetFields=o(t=>{this.warningUnhooked();let r=this.store;if(!t){this.updateStore(Hn(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(r,null,{type:"reset"}),this.notifyWatch();return}let n=t.map(bo);n.forEach(i=>{let s=this.getInitialValue(i);this.updateStore(fn(this.store,i,s))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(r,n,{type:"reset"}),this.notifyWatch(n)},"resetFields");setFields=o(t=>{this.warningUnhooked();let r=this.store,n=[];t.forEach(i=>{let{name:s,...a}=i,l=bo(s);n.push(l),"value"in a&&this.updateStore(fn(this.store,l,a.value)),this.notifyObservers(r,[l],{type:"setField",data:i})}),this.notifyWatch(n)},"setFields");getFields=o(()=>this.getFieldEntities(!0).map(n=>{let i=n.getNamePath(),a={...n.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(a,"originRCField",{value:!0}),a}),"getFields");initEntityValue=o(t=>{let{initialValue:r}=t.props;if(r!==void 0){let n=t.getNamePath();Jo(this.store,n)===void 0&&this.updateStore(fn(this.store,n,r))}},"initEntityValue");isMergedPreserve=o(t=>(t!==void 0?t:this.preserve)??!0,"isMergedPreserve");registerField=o(t=>{this.fieldEntities.push(t);let r=t.getNamePath();if(this.notifyWatch([r]),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,i,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(a=>a!==t),!this.isMergedPreserve(i)&&(!n||s.length>1)){let a=n?void 0:this.getInitialValue(r);if(r.length&&this.getFieldValue(r)!==a&&this.fieldEntities.every(l=>!xc(l.getNamePath(),r))){let l=this.store;this.updateStore(fn(l,r,a,!0)),this.notifyObservers(l,[r],{type:"remove"}),this.triggerDependenciesUpdate(l,r)}}this.notifyWatch([r])}},"registerField");dispatch=o(t=>{switch(t.type){case"updateValue":{let{namePath:r,value:n}=t;this.updateValue(r,n);break}case"validateField":{let{namePath:r,triggerName:n}=t;this.validateFields([r],{triggerName:n});break}default:}},"dispatch");notifyObservers=o((t,r,n)=>{if(this.subscribable){let i={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,r,i)})}else this.forceRootUpdate()},"notifyObservers");triggerDependenciesUpdate=o((t,r)=>{let n=this.getDependencyChildrenFields(r);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(t,n,{type:"dependenciesUpdate",relatedFields:[r,...n]}),n},"triggerDependenciesUpdate");updateValue=o((t,r)=>{let n=bo(t),i=this.store;this.updateStore(fn(this.store,n,r)),this.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),this.notifyWatch([n]);let s=this.triggerDependenciesUpdate(i,n),{onValuesChange:a}=this.callbacks;if(a){let l=Gv(this.store,[n]),c=this.getFieldsValue(),d=fn(c,n,Jo(l,n));a(l,d)}this.triggerOnFieldsChange([n,...s])},"updateValue");setFieldsValue=o(t=>{this.warningUnhooked();let r=this.store;if(t){let n=Hn(this.store,t);this.updateStore(n)}this.notifyObservers(r,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()},"setFieldsValue");setFieldValue=o((t,r)=>{this.setFields([{name:t,value:r,errors:[],warnings:[],touched:!0}])},"setFieldValue");getDependencyChildrenFields=o(t=>{let r=new Set,n=[],i=new cl;this.getFieldEntities().forEach(a=>{let{dependencies:l}=a.props;(l||[]).forEach(c=>{let d=bo(c);i.update(d,(u=new Set)=>(u.add(a),u))})});let s=o(a=>{(i.get(a)||new Set).forEach(c=>{if(!r.has(c)){r.add(c);let d=c.getNamePath();c.isFieldDirty()&&d.length&&(n.push(d),s(d))}})},"fillChildren");return s(t),n},"getDependencyChildrenFields");triggerOnFieldsChange=o((t,r)=>{let{onFieldsChange:n}=this.callbacks;if(n){let i=this.getFields();if(r){let a=new cl;r.forEach(({name:l,errors:c})=>{a.set(l,c)}),i.forEach(l=>{l.errors=a.get(l.name)||l.errors})}let s=i.filter(({name:a})=>da(t,a));s.length&&n(s,i)}},"triggerOnFieldsChange");validateFields=o((t,r)=>{this.warningUnhooked();let n,i;Array.isArray(t)||typeof t=="string"||typeof r=="string"?(n=t,i=r):i=t;let s=!!n,a=s?n.map(bo):[],l=[...a],c=[],d=String(Date.now()),u=new Set,{recursive:m,dirty:p}=i||{};this.getFieldEntities(!0).forEach(v=>{let x=v.getNamePath();if(s||((!v.isList()||!a.some(S=>xc(S,x,!0)))&&l.push(x),a.push(x)),!(!v.props.rules||!v.props.rules.length)&&!(p&&!v.isFieldDirty())&&(u.add(x.join(d)),!s||da(a,x,m))){let S=v.validateRules({validateMessages:{...yf,...this.validateMessages},...i});c.push(S.then(()=>({name:x,errors:[],warnings:[]})).catch(y=>{let C=[],w=[];return y.forEach?.(({rule:{warningOnly:E},errors:R})=>{E?w.push(...R):C.push(...R)}),C.length?Promise.reject({name:x,errors:C,warnings:w}):{name:x,errors:C,warnings:w}}))}});let g=PI(c);this.lastValidatePromise=g,g.catch(v=>v).then(v=>{let x=v.map(({name:S})=>S);this.notifyObservers(this.store,x,{type:"validateFinish"}),this.triggerOnFieldsChange(x,v)});let h=g.then(()=>this.lastValidatePromise===g?Promise.resolve(this.getFieldsValue(l)):Promise.reject([])).catch(v=>{let x=v.filter(y=>y&&y.errors.length),S=x[0]?.errors?.[0];return Promise.reject({message:S,values:this.getFieldsValue(a),errorFields:x,outOfDate:this.lastValidatePromise!==g})});h.catch(v=>v);let b=a.filter(v=>u.has(v.join(d)));return this.triggerOnFieldsChange(b),h},"validateFields");submit=o(()=>{this.warningUnhooked(),this.validateFields().then(t=>{let{onFinish:r}=this.callbacks;if(r)try{r(t)}catch(n){console.error(n)}}).catch(t=>{let{onFinishFailed:r}=this.callbacks;r&&r(t)})},"submit")};function FL(e){let t=H(null),[,r]=ce({});if(!t.current)if(e)t.current=e;else{let n=o(()=>{r({})},"forceReRender"),i=new ry(n);t.current=i.getForm()}return[t.current]}o(FL,"useForm");var Cf=FL;var oy=bt({triggerFormChange:o(()=>{},"triggerFormChange"),triggerFormFinish:o(()=>{},"triggerFormFinish"),registerForm:o(()=>{},"registerForm"),unregisterForm:o(()=>{},"unregisterForm")}),ny=o(({validateMessages:e,onFormChange:t,onFormFinish:r,children:n})=>{let i=K(oy),s=H({});return f(oy.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:o((a,l)=>{t&&t(a,{changedFields:l,forms:s.current}),i.triggerFormChange(a,l)},"triggerFormChange"),triggerFormFinish:o((a,l)=>{r&&r(a,{values:l,forms:s.current}),i.triggerFormFinish(a,l)},"triggerFormFinish"),registerForm:o((a,l)=>{a&&(s.current={...s.current,[a]:l}),i.registerForm(a,l)},"registerForm"),unregisterForm:o(a=>{let l={...s.current};delete l[a],s.current=l,i.unregisterForm(a)},"unregisterForm")}},n)},"FormProvider");var NI=oy;function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iy.apply(this,arguments)}o(iy,"_extends");var HL=o((e,t)=>{let{name:r,initialValues:n,fields:i,form:s,preserve:a,children:l,component:c="form",validateMessages:d,validateTrigger:u="onChange",onValuesChange:m,onFieldsChange:p,onFinish:g,onFinishFailed:h,clearOnDestroy:b,...v}=e,x=H(null),S=K(NI),[y]=Cf(s),{useSubscribe:C,setInitialValues:w,setCallbacks:E,setValidateMessages:R,setPreserve:$,destroyForm:I}=y.getInternalHooks(Bi);ft(t,()=>({...y,nativeElement:x.current})),fe(()=>(S.registerForm(r,y),()=>{S.unregisterForm(r)}),[S,y,r]),R({...S.validateMessages,...d}),E({onValuesChange:m,onFieldsChange:o((B,...L)=>{S.triggerFormChange(r,B),p&&p(B,...L)},"onFieldsChange"),onFinish:o(B=>{S.triggerFormFinish(r,B),g&&g(B)},"onFinish"),onFinishFailed:h}),$(a);let T=H(null);w(n,!T.current),T.current||(T.current=!0),fe(()=>()=>I(b),[]);let M,N=typeof l=="function";if(N){let B=y.getFieldsValue(!0);M=l(B,y)}else M=l;C(!N);let k=H(null);fe(()=>{EI(k.current||[],i||[])||y.setFields(i||[]),k.current=i},[i,y]);let D=V(()=>({...y,validateTrigger:u}),[y,u]),A=f(ca.Provider,{value:null},f(Fi.Provider,{value:D},M));return c===!1?A:f(c,iy({},v,{ref:x,onSubmit:o(B=>{B.preventDefault(),B.stopPropagation(),y.submit()},"onSubmit"),onReset:o(B=>{B.preventDefault(),y.resetFields(),v.onReset?.(B)},"onReset")}),A)},"Form"),MI=HL;function sy(e){try{return JSON.stringify(e)}catch{return Math.random()}}o(sy,"stringify");function zL(...e){let[t,r={}]=e,n=Q$(r)?{form:r}:r,i=n.form,[s,a]=ce(()=>typeof t=="function"?t({}):void 0),l=V(()=>sy(s),[s]),c=H(l);c.current=l;let d=K(Fi),u=i||d,m=u&&u._init,{getFieldsValue:p,getInternalHooks:g}=u,{registerWatch:h}=g(Bi),b=De((x,S)=>{let y=n.preserve?S??p(!0):x??p(),C=typeof t=="function"?t(y):Jo(y,bo(t));sy(s)!==sy(C)&&a(C)}),v=typeof t=="function"?t:JSON.stringify(t);return fe(()=>{m&&b()},[m,v]),fe(()=>m?h((S,y)=>{b(S,y)}):void 0,[m]),s}o(zL,"useWatch");var TI=zL;var VL=le(MI),tu=VL;tu.FormProvider=ny;tu.Field=xf;tu.List=II;tu.useForm=Cf;tu.useWatch=TI;var Ao=bt({}),OI=o(({children:e,status:t,override:r})=>{let n=K(Ao),i=V(()=>{let s={...n};return r&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,r,n]);return f(Ao.Provider,{value:i},e)},"NoFormStyle"),kI=bt(void 0);var jL=_.createContext(null),wf=jL;var WL=o(e=>{let{checkboxCls:t,checkboxSize:r,lineWidth:n}=e,i=`${t}-wrapper`,s="@media (hover: hover) and (pointer: fine)";return[{[`${t}-group`]:{...hr(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...hr(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0}},[t]:{...hr(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:r,height:r,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Q(n)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...Gd(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${r} / 2 - ${n})`,insetInlineStart:`calc(${r} / 4 - ${n})`,display:"table",width:e.calc(r).div(14).mul(5).equal(),height:e.calc(r).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}`,...af()},[`${t}-input`]:{position:"absolute",inset:`calc(-1 * (${n}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:wn(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[s]:{[`
160
- ${i}:not(${i}-disabled),
161
- ${t}:not(${t}-disabled)
162
- `]:{[`&:hover ${t}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-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}`,...af()},[s]:{[`&: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:'""'},[s]:{[`&:not(${t}-disabled):hover`]:{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}}},{[`${i}-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}}}]},"genCheckboxStyle");function UL(e,t){let r=wt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return WL(r)}o(UL,"getStyle");var Rf=Ht("Checkbox",(e,{prefixCls:t})=>[UL(t,e)]);function ay(e){let t=_.useRef(null),r=o(()=>{St.cancel(t.current),t.current=null},"clearLock");return[o(()=>{r(),t.current=St(()=>{t.current=null})},"onLabelClick"),o(s=>{t.current&&(s.stopPropagation(),r()),e?.(s)},"onInputClick")]}o(ay,"useBubbleLock");var qL=o((e,t)=>{let{prefixCls:r,children:n,indeterminate:i=!1,onMouseEnter:s,onMouseLeave:a,skipGroup:l=!1,disabled:c,rootClassName:d,className:u,style:m,classNames:p,styles:g,name:h,value:b,checked:v,defaultChecked:x,onChange:S,...y}=e,{getPrefixCls:C,direction:w,className:E,style:R,classNames:$,styles:I}=Mt("checkbox"),T=K(wf),{isFormItemInput:M}=K(Ao),N=K(Fo),k=c??T?.disabled??N,[D,A]=Ft(x,v),B=D,L=De(me=>{A(me.target.checked),S?.(me),!l&&T?.toggleOption&&T.toggleOption({label:n,value:b})});T&&!l&&(B=T.value.includes(b));let F=H(null),q=Qo(t,F);fe(()=>{if(!(l||!T))return T.registerValue(b),()=>{T.cancelValue(b)}},[b,l]),fe(()=>{F.current?.input&&(F.current.input.indeterminate=i)},[i]);let X=C("checkbox",r),W=oo(X),[j,Z]=Rf(X,W),J={...y},U={...e,indeterminate:i,disabled:k,checked:B},ee=$t(R),re=$t(m),[ne,oe]=Qt([$,p],[I,ee,g,re],{props:U}),te=O(`${X}-wrapper`,{[`${X}-rtl`]:w==="rtl",[`${X}-wrapper-checked`]:B,[`${X}-wrapper-disabled`]:k,[`${X}-wrapper-in-form-item`]:M},E,u,ne.root,d,Z,W,j),ie=O(ne.icon,{[`${X}-indeterminate`]:i},fc,j),[se,xe]=ay(J.onClick);return f(qp,{component:"Checkbox",disabled:k},f("label",{className:te,style:oe.root,onMouseEnter:s,onMouseLeave:a,onClick:se},f(K$,{...J,name:!l&&T?T.name:h,checked:B,onClick:xe,onChange:L,prefixCls:X,className:ie,style:oe.icon,disabled:k,ref:q,value:b}),yr(n)&&f("span",{className:O(`${X}-label`,ne.label),style:oe.label},n)))},"InternalCheckbox"),GL=le(qL),Ef=GL;var XL=le((e,t)=>{let{defaultValue:r,children:n,options:i=[],prefixCls:s,className:a,rootClassName:l,style:c,onChange:d,role:u="group",...m}=e,{getPrefixCls:p,direction:g}=K(at),[h,b]=Ft(r||[],m.value),v=h||[],[x,S]=ce([]),y=V(()=>i.map(B=>cn(B)||Oo(B)?{label:B,value:B}:B).filter(B=>lo(B)&&lo(B.value)),[i]),C=o(B=>{S(L=>L.filter(F=>F!==B))},"cancelValue"),w=o(B=>{S(L=>[].concat(to(L),[B]))},"registerValue"),E=o(B=>{let L=v.indexOf(B.value),F=to(v);L===-1?F.push(B.value):F.splice(L,1),b(F),d?.(F.filter(q=>x.includes(q)).sort((q,X)=>{let W=y.findIndex(Z=>Z.value===q),j=y.findIndex(Z=>Z.value===X);return W-j}))},"toggleOption"),R=p("checkbox",s),$=`${R}-group`,I=oo(R),[T,M]=Rf(R,I),N=_t(m,["value","disabled"]),k=Array.isArray(y)&&y.length>0?y.map(B=>f(Ef,{prefixCls:R,key:B.value.toString(),disabled:"disabled"in B?B.disabled:m.disabled,value:B.value,checked:v.includes(B.value),onChange:B.onChange,className:O(`${$}-item`,B.className),style:B.style,title:B.title,id:B.id,required:B.required},B.label)):n,D=V(()=>({toggleOption:E,value:v,disabled:m.disabled,name:m.name,registerValue:w,cancelValue:C}),[E,v,m.disabled,m.name,w,C]),A=O($,{[`${$}-rtl`]:g==="rtl"},a,l,M,I,T);return f("div",{className:A,style:c,role:u,...N,ref:t},f(wf.Provider,{value:D},k))});var DI=XL;var ly=Ef;ly.Group=DI;ly.__ANT_CHECKBOX=!0;var AI=ly;var YL={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"},_I=YL;function cy(){return cy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cy.apply(this,arguments)}o(cy,"_extends");var KL=o((e,t)=>f(sr,cy({},e,{ref:t,icon:_I})),"LeftOutlined"),QL=le(KL),ru=QL;var{ESC:ZL,TAB:JL}=xt;function dy({visible:e,triggerRef:t,onVisibleChange:r,autoFocus:n,overlayRef:i}){let s=H(!1),a=o(()=>{e&&(t.current?.focus?.(),r?.(!1))},"handleCloseMenuAndReturnFocus"),l=o(()=>i.current?.focus?(i.current.focus(),s.current=!0,!0):!1,"focusMenu"),c=o(d=>{switch(d.keyCode){case ZL:a();break;case JL:{let u=!1;s.current||(u=l()),u?d.preventDefault():a();break}}},"handleKeyDown");fe(()=>e?(window.addEventListener("keydown",c),n&&St(l,3),()=>{window.removeEventListener("keydown",c),s.current=!1}):()=>{s.current=!1},[e])}o(dy,"useAccessibility");var eB=le((e,t)=>{let{overlay:r,arrow:n,prefixCls:i}=e,s=V(()=>{let l;return typeof r=="function"?l=r():l=r,l},[r]),a=qr(t,Zo(s));return _.createElement(_.Fragment,null,n&&_.createElement("div",{className:`${i}-arrow`}),_.cloneElement(s,{ref:hi(s)?a:void 0}))}),LI=eB;var Sc={adjustX:1,adjustY:1},Cc=[0,0],tB={topLeft:{points:["bl","tl"],overflow:Sc,offset:[0,-4],targetOffset:Cc},top:{points:["bc","tc"],overflow:Sc,offset:[0,-4],targetOffset:Cc},topRight:{points:["br","tr"],overflow:Sc,offset:[0,-4],targetOffset:Cc},bottomLeft:{points:["tl","bl"],overflow:Sc,offset:[0,4],targetOffset:Cc},bottom:{points:["tc","bc"],overflow:Sc,offset:[0,4],targetOffset:Cc},bottomRight:{points:["tr","br"],overflow:Sc,offset:[0,4],targetOffset:Cc}},BI=tB;function uy(){return uy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uy.apply(this,arguments)}o(uy,"_extends");var rB=_.forwardRef((e,t)=>{let{arrow:r=!1,prefixCls:n="rc-dropdown",transitionName:i,animation:s,align:a,placement:l="bottomLeft",placements:c=BI,getPopupContainer:d,showAction:u,hideAction:m,overlayClassName:p,overlayStyle:g,visible:h,trigger:b=["hover"],autoFocus:v,overlay:x,children:S,onVisibleChange:y,disabled:C,...w}=e,[E,R]=_.useState(),$="visible"in e?h:E,I=s?`${n}-${s}`:i,T=_.useRef(null),M=_.useRef(null),N=_.useRef(null);_.useImperativeHandle(t,()=>T.current);let k=o(J=>{R(J),y?.(J)},"handleVisibleChange");dy({visible:$,triggerRef:N,onVisibleChange:k,autoFocus:v,overlayRef:M});let D=o(J=>{let{onOverlayClick:U}=e;R(!1),U&&U(J)},"onClick"),A=o(()=>_.createElement(LI,{ref:M,overlay:x,prefixCls:n,arrow:r}),"getMenuElement"),B=o(()=>typeof x=="function"?A:A(),"getMenuElementOrLambda"),L=o(()=>{let{minOverlayWidthMatchTrigger:J,alignPoint:U}=e;return"minOverlayWidthMatchTrigger"in e?J:!U},"getMinOverlayWidthMatchTrigger"),F=o(()=>{let{openClassName:J}=e;return J!==void 0?J:`${n}-open`},"getOpenClassName"),q=S,X=O(q.props?.className,$&&F()),W={className:X,ref:qr(N,Zo(q))},j=hi(q)?_.cloneElement(q,W):_.createElement("span",{className:X,ref:N},_.cloneElement(q,{className:X})),Z=m;return!Z&&b.indexOf("contextMenu")!==-1&&(Z=["click"]),_.createElement(Ji,uy({builtinPlacements:c},w,{prefixCls:n,ref:T,popupClassName:O(p,{[`${n}-show-arrow`]:r}),popupStyle:g,action:b,showAction:u,hideAction:Z,popupPlacement:l,popupAlign:a,popupMotion:{motionName:I},popupVisible:$,stretch:L()?"minWidth":"",popup:B(),onOpenChange:k,onPopupClick:D,getPopupContainer:d}),j)}),FI=rB;var HI=FI;function wc(e){let{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,i=t/2,s=0,a=i,l=n*1/Math.sqrt(2),c=i-n*(1-1/Math.sqrt(2)),d=i-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),m=2*i-d,p=u,g=2*i-l,h=c,b=2*i-s,v=a,x=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),S=n*(Math.sqrt(2)-1),y=`polygon(${S}px 100%, 50% ${S}px, ${2*i-S}px 100%, ${S}px 100%)`,C=`path('M ${s} ${a} A ${n} ${n} 0 0 0 ${l} ${c} L ${d} ${u} A ${r} ${r} 0 0 1 ${m} ${p} L ${g} ${h} A ${n} ${n} 0 0 0 ${b} ${v} Z')`;return{arrowShadowWidth:x,arrowPath:C,arrowPolygon:y}}o(wc,"getArrowToken");var $f=o((e,t,r)=>{let{sizePopupArrow:n,arrowPolygon:i,arrowPath:s,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e,d={content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Q(l)} 0`},transform:"translateY(50%) rotate(-135deg)",zIndex:0,background:"transparent"};return r&&(d.boxShadow=r),{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:[i,s]},content:'""'},"&::after":d}},"genRoundedArrow");var my=8;function Rc(e){let{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?my:n}}o(Rc,"getArrowOffsetToken");var oB=o((e,t,r)=>{let{componentCls:n,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:a,antCls:l}=e,[c]=br(l,"tooltip"),{arrowDistance:d=0,arrowShadow:u=!0}=r||{};return{[n]:{[`${n}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...$f(e,t,u?i:!1),"&:before":{background:t}}],[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:d,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")]:a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{[c("arrow-offset-x")]:`calc(100% - ${Q(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}},[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{[c("arrow-offset-x")]:a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{[c("arrow-offset-x")]:`calc(100% - ${Q(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}},[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},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:s},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:s},[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},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:s},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:s}}}},"getArrowStyle"),If=oB;function nB(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};let i=Ut(n)?n:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+r,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+r,s.shiftX=!0,s.adjustX=!0;break}let a={...s,...i};return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}o(nB,"getOverflowOptions");var zI={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"]}},iB={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"]}},sB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ou(e){let{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:i,borderRadius:s,visibleFirst:a}=e,l=t/2,c={},d=Rc({contentRadius:s,limitVerticalRadius:!0});return Object.keys(zI).forEach(u=>{let p={...n&&iB[u]||zI[u],offset:[0,0],dynamicInset:!0};switch(c[u]=p,sB.has(u)&&(p.autoArrow=!1),u){case"top":case"topLeft":case"topRight":p.offset[1]=-l-i;break;case"bottom":case"bottomLeft":case"bottomRight":p.offset[1]=l+i;break;case"left":case"leftTop":case"leftBottom":p.offset[0]=-l-i;break;case"right":case"rightTop":case"rightBottom":p.offset[0]=l+i;break}if(n)switch(u){case"topLeft":case"bottomLeft":p.offset[0]=-d.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":p.offset[0]=d.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":p.offset[1]=-d.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":p.offset[1]=d.arrowOffsetHorizontal*2-l;break}p.overflow=nB(u,d,t,r),a&&(p.htmlRegion="visibleFirst")}),c}o(ou,"getPlacements");function py(e){return t=>f(es,{theme:{token:{motion:!1,zIndexPopupBase:0}}},f(e,{...t}))}o(py,"withPureRenderTheme");var aB=o((e,t,r,n,i)=>py(o(a=>{let{prefixCls:l,style:c}=a,d=H(null),[u,m]=ce(0),[p,g]=ce(0),[h,b]=Ft(!1,a.open),{getPrefixCls:v}=K(at),x=v(n||"select",l);fe(()=>{if(b(!0),typeof ResizeObserver<"u"){let C=new ResizeObserver(E=>{let R=E[0].target;m(R.offsetHeight+8),g(R.offsetWidth)}),w=setInterval(()=>{let E=i?`.${i(x)}`:`.${x}-dropdown`,R=d.current?.querySelector(E);R&&(clearInterval(w),C.observe(R))},10);return()=>{clearInterval(w),C.disconnect()}}},[x]);let S={...a,style:{...c,margin:0},open:h,getPopupContainer:o(()=>d.current,"getPopupContainer")};return r&&(S=r(S)),t&&(S={...S,[t]:{overflow:{adjustX:!1,adjustY:!1}}}),f("div",{ref:d,style:{paddingBottom:u,position:"relative",minWidth:p}},f(e,{...S}))},"PurePanel")),"genPurePanel"),dl=aB;var Ec=void 0;function lB(e,t){let{prefixCls:r,invalidate:n,item:i,renderItem:s,responsive:a,responsiveDisabled:l,registerSize:c,itemKey:d,className:u,style:m,children:p,display:g,order:h,component:b="div",...v}=e,x=a&&!g;function S(R){c(d,R)}o(S,"internalRegisterSize"),fe(()=>()=>{S(null)},[]);let y=s&&i!==Ec?s(i,{index:h}):p,C;n||(C={opacity:x?0:1,height:x?0:Ec,overflowY:x?"hidden":Ec,order:a?h:Ec,pointerEvents:x?"none":Ec,position:x?"absolute":Ec});let w={};x&&(w["aria-hidden"]=!0);let E=f(b,Ho({className:O(!n&&r,u),style:{...C,...m}},w,v,{ref:t}),y);return a&&(E=f(Cn,{onResize:o(({offsetWidth:R})=>{S(R)},"onResize"),disabled:l},E)),E}o(lB,"InternalItem");var cB=le(lB),ul=cB;function fy(e){if(typeof MessageChannel>"u")St(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}o(fy,"channelUpdate");function VI(){let e=H(null);return o(r=>{e.current||(e.current=[],fy(()=>{vw(()=>{e.current.forEach(n=>{n()}),e.current=null})})),e.current.push(r)},"notifyEffectUpdate")}o(VI,"useBatcher");function ua(e,t){let[r,n]=ce(t),i=De(s=>{e(()=>{n(s)})});return[r,i]}o(ua,"useEffectState");var ml=_.createContext(null);var dB=o((e,t)=>{let r=K(ml);if(!r){let{component:l="div",...c}=e;return f(l,Ho({},c,{ref:t}))}let{className:n,...i}=r,{className:s,...a}=e;return f(ml.Provider,{value:null},f(ul,Ho({ref:t,className:O(n,s)},i,a)))},"InternalRawItem"),uB=le(dB),jI=uB;var WI="responsive",UI="invalidate";function mB(e){return`+ ${e.length} ...`}o(mB,"defaultRenderRest");function pB(e,t){let{prefixCls:r="rc-overflow",data:n=[],renderItem:i,renderRawItem:s,itemKey:a,itemWidth:l=10,ssr:c,style:d,className:u,maxCount:m,renderRest:p,renderRawRest:g,prefix:h,suffix:b,component:v="div",itemComponent:x,onVisibleChange:S,...y}=e,C=c==="full",w=VI(),[E,R]=ua(w,null),$=E||0,[I,T]=ua(w,new Map),[M,N]=ua(w,0),[k,D]=ua(w,0),[A,B]=ua(w,0),[L,F]=ua(w,0),[q,X]=ce(null),[W,j]=ce(null),Z=V(()=>W===null&&C?Number.MAX_SAFE_INTEGER:W||0,[W,E]),[J,U]=ce(!1),ee=`${r}-item`,re=Math.max(M,k),ne=m===WI,oe=n.length&&ne,te=m===UI,ie=oe||typeof m=="number"&&n.length>m,se=V(()=>{let ze=n;return oe?E===null&&C?ze=n:ze=n.slice(0,Math.min(n.length,$/l)):typeof m=="number"&&(ze=n.slice(0,m)),ze},[n,l,E,m,oe]),xe=V(()=>oe?n.slice(Z+1):n.slice(se.length),[n,se,oe,Z]),me=At((ze,Ne)=>typeof a=="function"?a(ze):(a&&ze?.[a])??Ne,[a]),Ee=At(i||(ze=>ze),[i]);function $e(ze,Ne,lt){W===ze&&(Ne===void 0||Ne===q)||(j(ze),lt||(U(ze<n.length-1),S?.(ze)),Ne!==void 0&&X(Ne))}o($e,"updateDisplayCount");function he(ze,Ne){R(Ne.clientWidth)}o(he,"onOverflowResize");function ye(ze,Ne){T(lt=>{let qe=new Map(lt);return Ne===null?qe.delete(ze):qe.set(ze,Ne),qe})}o(ye,"registerSize");function He(ze,Ne){D(Ne),N(k)}o(He,"registerOverflowSize");function Se(ze,Ne){B(Ne)}o(Se,"registerPrefixSize");function Ce(ze,Ne){F(Ne)}o(Ce,"registerSuffixSize");function ue(ze){return I.get(me(se[ze],ze))}o(ue,"getItemWidth"),Pt(()=>{if($&&typeof re=="number"&&se){let ze=A+L,Ne=se.length,lt=Ne-1;if(!Ne){$e(0,null);return}for(let qe=0;qe<Ne;qe+=1){let Ze=ue(qe);if(C&&(Ze=Ze||0),Ze===void 0){$e(qe-1,void 0,!0);break}if(ze+=Ze,lt===0&&ze<=$||qe===lt-1&&ze+ue(lt)<=$){$e(lt,null);break}else if(ze+re>$){$e(qe-1,ze-Ze-L+k);break}}b&&ue(0)+L>$&&X(null)}},[$,I,k,A,L,me,se]);let Pe=J&&!!xe.length,ve={};q!==null&&oe&&(ve={position:"absolute",top:0,insetInlineStart:q});let Ue={prefixCls:ee,responsive:oe,component:x,invalidate:te},pe=s?(ze,Ne)=>{let lt=me(ze,Ne);return f(ml.Provider,{key:lt,value:{...Ue,order:Ne,item:ze,itemKey:lt,registerSize:ye,display:Ne<=Z}},s(ze,Ne))}:(ze,Ne)=>{let lt=me(ze,Ne);return f(ul,Ho({},Ue,{order:Ne,key:lt,item:ze,renderItem:Ee,itemKey:lt,registerSize:ye,display:Ne<=Z}))},Oe={order:Pe?Z:Number.MAX_SAFE_INTEGER,className:`${ee}-rest`,registerSize:He,display:Pe},Ie=p||mB,ke=g?f(ml.Provider,{value:{...Ue,...Oe}},g(xe)):f(ul,Ho({},Ue,Oe),typeof Ie=="function"?Ie(xe):Ie),We=f(v,Ho({className:O(!te&&r,u),style:d,ref:t},y),h&&f(ul,Ho({},Ue,{responsive:ne,responsiveDisabled:!oe,order:-1,className:`${ee}-prefix`,registerSize:Se,display:!0}),h),se.map(pe),ie?ke:null,b&&f(ul,Ho({},Ue,{responsive:ne,responsiveDisabled:!oe,order:Z,className:`${ee}-suffix`,registerSize:Ce,display:!0,style:ve}),b));return ne?f(Cn,{onResize:he,disabled:!oe},We):We}o(pB,"Overflow");var Pf=le(pB);Pf.Item=jI;Pf.RESPONSIVE=WI;Pf.INVALIDATE=UI;var qI=Pf;var Ci=qI;var gy=bt(null);function hy(e,t){return`${e}-${t}`}o(hy,"getMenuId");function Nf(e){let t=K(gy);return hy(t,e)}o(Nf,"useMenuId");var Xo=bt(null);function fB(e,t){let r={...e};return Object.keys(t).forEach(n=>{let i=t[n];i!==void 0&&(r[n]=i)}),r}o(fB,"mergeProps");function $s({children:e,locked:t,...r}){let n=K(Xo),i=Jn(()=>fB(n,r),[n,r],(s,a)=>!t&&(s[0]!==a[0]||!ki(s[1],a[1],!0)));return f(Xo.Provider,{value:i},e)}o($s,"InheritableContextProvider");var gB=[],by=bt(null);function ma(){return K(by)}o(ma,"useMeasure");var vy=bt(gB);function Hi(e){let t=K(vy);return V(()=>e!==void 0?[...t,e]:t,[t,e])}o(Hi,"useFullPath");var Mf=bt(null);var hB=bt({}),$c=hB;var{LEFT:yy,RIGHT:xy,UP:Sy,DOWN:Tf,ENTER:Of,ESC:YI,HOME:nu,END:iu}=xt,GI=[Sy,Tf,yy,xy];function bB(e,t,r,n){let i="prev",s="next",a="children",l="parent";if(e==="inline"&&n===Of)return{inlineTrigger:!0};let c={[Sy]:i,[Tf]:s},d={[yy]:r?s:i,[xy]:r?i:s,[Tf]:a,[Of]:a},u={[Sy]:i,[Tf]:s,[Of]:a,[YI]:l,[yy]:r?a:l,[xy]:r?l:a};switch({inline:c,horizontal:d,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?"":"Sub"}`]?.[n]){case i:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case a:return{offset:1,sibling:!1};default:return null}}o(bB,"getOffset");function vB(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}o(vB,"findContainerUL");function yB(e,t){let r=e||document.activeElement;for(;r;){if(t.has(r))return r;r=r.parentElement}return null}o(yB,"getFocusElement");function kf(e,t){return Rd(e,!0).filter(n=>t.has(n))}o(kf,"getFocusableElements");function XI(e,t,r,n=1){if(!e)return null;let i=kf(e,t),s=i.length,a=i.findIndex(l=>r===l);return n<0?a===-1?a=s-1:a-=1:n>0&&(a+=1),a=(a+s)%s,i[a]}o(XI,"getNextFocusElement");var su=o((e,t)=>{let r=new Set,n=new Map,i=new Map;return e.forEach(s=>{let a=document.querySelector(`[data-menu-id='${hy(t,s)}']`);a&&(r.add(a),i.set(a,s),n.set(s,a))}),{elements:r,key2element:n,element2key:i}},"refreshElements");function KI(e,t,r,n,i,s,a,l,c,d){let u=H(void 0),m=H(void 0);m.current=t;let p=o(()=>{St.cancel(u.current)},"cleanRaf");return fe(()=>()=>{p()},[]),g=>{let{which:h}=g;if([...GI,Of,YI,nu,iu].includes(h)){let b=s(),v=su(b,n),{elements:x,key2element:S,element2key:y}=v,C=S.get(t),w=yB(C,x),E=y.get(w),R=bB(e,a(E,!0).length===1,r,h);if(!R&&h!==nu&&h!==iu)return;(GI.includes(h)||[nu,iu].includes(h))&&g.preventDefault();let $=o(I=>{if(I){let T=I,M=I.querySelector("a");M?.getAttribute("href")&&(T=M);let N=y.get(I);l(N),p(),u.current=St(()=>{m.current===N&&T.focus()})}},"tryFocus");if([nu,iu].includes(h)||R.sibling||!w){let I;!w||e==="inline"?I=i.current:I=vB(w);let T,M=kf(I,x);h===nu?T=M[0]:h===iu?T=M[M.length-1]:T=XI(I,x,w,R.offset),$(T)}else if(R.inlineTrigger)c(E);else if(R.offset>0)c(E,!0),p(),u.current=St(()=>{v=su(b,n);let I=w.getAttribute("aria-controls"),T=document.getElementById(I),M=XI(T,v.elements);$(M)},5);else if(R.offset<0){let I=a(E,!0),T=I[I.length-2],M=S.get(T);c(T,!1),$(M)}}d?.(g)}}o(KI,"useAccessibility");function QI(e){Promise.resolve().then(e)}o(QI,"nextSlice");var Cy="__RC_UTIL_PATH_SPLIT__",ZI=o(e=>e.join(Cy),"getPathStr"),xB=o(e=>e.split(Cy),"getPathKeys"),Df="rc-menu-more";function wy(){let[,e]=ce({}),t=H(new Map),r=H(new Map),[n,i]=ce([]),s=H(0),a=H(!1),l=o(()=>{a.current||e({})},"forceUpdate"),c=At((b,v)=>{let x=ZI(v);r.current.set(x,b),t.current.set(b,x),s.current+=1;let S=s.current;QI(()=>{S===s.current&&l()})},[]),d=At((b,v)=>{let x=ZI(v);r.current.delete(x),t.current.delete(b)},[]),u=At(b=>{i(b)},[]),m=At((b,v)=>{let x=t.current.get(b)||"",S=xB(x);return v&&n.includes(S[0])&&S.unshift(Df),S},[n]),p=At((b,v)=>b.filter(x=>x!==void 0).some(x=>m(x,!0).includes(v)),[m]),g=o(()=>{let b=[...t.current.keys()];return n.length&&b.push(Df),b},"getKeys"),h=At(b=>{let v=`${t.current.get(b)}${Cy}`,x=new Set;return[...r.current.keys()].forEach(S=>{S.startsWith(v)&&x.add(r.current.get(S))}),x},[]);return fe(()=>()=>{a.current=!0},[]),{registerPath:c,unregisterPath:d,refreshOverflowKeys:u,isSubPathKey:p,getKeyPath:m,getKeys:g,getSubPathKeys:h}}o(wy,"useKeyRecords");function pa(e){let t=H(e);t.current=e;let r=At((...n)=>t.current?.(...n),[]);return e?r:void 0}o(pa,"useMemoCallback");function au(e,t,r,n){let{activeKey:i,onActive:s,onInactive:a}=K(Xo),l={active:i===e};return t||(l.onMouseEnter=c=>{r?.({key:e,domEvent:c}),s(e)},l.onMouseLeave=c=>{n?.({key:e,domEvent:c}),a(e)}),l}o(au,"useActive");function lu(e){let{mode:t,rtl:r,inlineIndent:n}=K(Xo);if(t!=="inline")return null;let i=e;return r?{paddingRight:i*n}:{paddingLeft:i*n}}o(lu,"useDirectionStyle");function cu({icon:e,props:t,children:r}){let n;return e===null||e===!1?null:(typeof e=="function"?n=f(e,{...t}):typeof e!="boolean"&&(n=e),n||r||null)}o(cu,"Icon");function pl({item:e,...t}){return Object.defineProperty(t,"item",{get:o(()=>(Hr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e),"get")}),t}o(pl,"warnItemProp");function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},du.apply(this,arguments)}o(du,"_extends");var Ry=class extends xd{static{o(this,"LegacyMenuItem")}render(){let{title:t,attribute:r,elementRef:n,...i}=this.props,s=_t(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Hr(!r,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),f(Ci.Item,du({},r,{title:typeof t=="string"?t:void 0},s,{ref:n}))}},SB=le((e,t)=>{let{style:r,className:n,eventKey:i,warnKey:s,disabled:a,itemIcon:l,children:c,itemData:d,role:u,onMouseEnter:m,onMouseLeave:p,onClick:g,onKeyDown:h,onFocus:b,...v}=e,x=Nf(i),{prefixCls:S,onItemClick:y,disabled:C,overflowDisabled:w,itemIcon:E,selectedKeys:R,onActive:$}=K(Xo),{_internalRenderMenuItem:I}=K($c),T=`${S}-item`,M=H(null),N=H(null),k=C||a,D=Qo(t,N),A=Hi(i),B=o(re=>{let ne=d||{key:i||"",label:c,itemIcon:l,extra:e.extra,title:e.title};return{key:i,keyPath:[...A].reverse(),item:M.current,domEvent:re,itemData:d||ne}},"getEventInfo"),L=l||E,{active:F,...q}=au(i,k,m,p),X=R.includes(i),W=lu(A.length),j=o(re=>{if(k)return;let ne=B(re);g?.(pl(ne)),y(ne)},"onInternalClick"),Z=o(re=>{if(h?.(re),re.which===xt.ENTER){let ne=B(re);g?.(pl(ne)),y(ne)}},"onInternalKeyDown"),J=o(re=>{$(i),b?.(re)},"onInternalFocus"),U={};e.role==="option"&&(U["aria-selected"]=X);let ee=f(Ry,du({ref:M,elementRef:D,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":w&&x?null:x},_t(v,["extra"]),q,U,{component:"li","aria-disabled":a,style:{...W,...r},className:O(T,{[`${T}-active`]:F,[`${T}-selected`]:X,[`${T}-disabled`]:k},n),onClick:j,onKeyDown:Z,onFocus:J}),c,f(cu,{props:{...e,isSelected:X},icon:L}));return I&&(ee=I(ee,e,{selected:X})),ee});function CB(e,t){let{eventKey:r}=e,n=ma(),i=Hi(r);return fe(()=>{if(n)return n.registerPath(r,i),()=>{n.unregisterPath(r,i)}},[i]),n?null:f(SB,du({},e,{ref:t}))}o(CB,"MenuItem");var fa=le(CB);function Ey(){return Ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ey.apply(this,arguments)}o(Ey,"_extends");var wB=o(({className:e,children:t,...r},n)=>{let{prefixCls:i,mode:s,rtl:a}=K(Xo);return f("ul",Ey({className:O(i,a&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},r,{"data-menu-list":!0,ref:n}),t)},"InternalSubMenuList"),RB=le(wB),Af=RB;function Ic(e,t){return co(e).map((r,n)=>{if(Tr(r)){let{key:i}=r,s=r.props?.eventKey??i;return s==null&&(s=`tmp_key-${[...t,n].join("-")}`),so(r,{key:s,eventKey:s})}return r})}o(Ic,"parseChildren");var Rn={adjustX:1,adjustY:1},JI={topLeft:{points:["bl","tl"],overflow:Rn},topRight:{points:["br","tr"],overflow:Rn},bottomLeft:{points:["tl","bl"],overflow:Rn},bottomRight:{points:["tr","br"],overflow:Rn},leftTop:{points:["tr","tl"],overflow:Rn},leftBottom:{points:["br","bl"],overflow:Rn},rightTop:{points:["tl","tr"],overflow:Rn},rightBottom:{points:["bl","br"],overflow:Rn}},e1={topLeft:{points:["bl","tl"],overflow:Rn},topRight:{points:["br","tr"],overflow:Rn},bottomLeft:{points:["tl","bl"],overflow:Rn},bottomRight:{points:["tr","br"],overflow:Rn},rightTop:{points:["tr","tl"],overflow:Rn},rightBottom:{points:["br","bl"],overflow:Rn},leftTop:{points:["tl","tr"],overflow:Rn},leftBottom:{points:["bl","br"],overflow:Rn}};function _f(e,t,r){if(t)return t;if(r)return r[e]||r.other}o(_f,"getMotion");var EB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function $y({prefixCls:e,visible:t,children:r,popup:n,popupStyle:i,popupClassName:s,popupOffset:a,disabled:l,mode:c,onVisibleChange:d}){let{getPopupContainer:u,rtl:m,subMenuOpenDelay:p,subMenuCloseDelay:g,builtinPlacements:h,triggerSubMenuAction:b,forceSubMenuRender:v,rootClassName:x,motion:S,defaultMotions:y}=K(Xo),[C,w]=ce(!1),E=m?{...e1,...h}:{...JI,...h},R=EB[c],$=_f(c,S,y),I=H($);c!=="inline"&&(I.current=$);let T={...I.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},M=H(void 0);return fe(()=>(M.current=St(()=>{w(t)}),()=>{St.cancel(M.current)}),[t]),f(Ji,{prefixCls:e,popupClassName:O(`${e}-popup`,{[`${e}-rtl`]:m},s,x),stretch:c==="horizontal"?"minWidth":null,getPopupContainer:u,builtinPlacements:E,popupPlacement:R,popupVisible:C,popup:n,popupStyle:i,popupAlign:a&&{offset:a},action:l?[]:[b],mouseEnterDelay:p,mouseLeaveDelay:g,onPopupVisibleChange:d,forceRender:v,popupMotion:T,fresh:!0},r)}o($y,"PopupTrigger");function Iy(){return Iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Iy.apply(this,arguments)}o(Iy,"_extends");function Py({id:e,open:t,keyPath:r,children:n}){let i="inline",{prefixCls:s,forceSubMenuRender:a,motion:l,defaultMotions:c,mode:d}=K(Xo),u=H(!1);u.current=d===i;let[m,p]=ce(!u.current),g=u.current?t:!1;fe(()=>{u.current&&p(!1)},[d]);let h={..._f(i,l,c)};r.length>1&&(h.motionAppear=!1);let b=h.onVisibleChanged;return h.onVisibleChanged=v=>(!u.current&&!v&&p(!0),b?.(v)),m?null:f($s,{mode:i,locked:!u.current},f(Bo,Iy({visible:g},h,{forceRender:a,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:v,style:x})=>f(Af,{id:e,className:v,style:x},n)))}o(Py,"InlineSubMenuList");function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uu.apply(this,arguments)}o(uu,"_extends");var $B=le((e,t)=>{let{style:r,className:n,styles:i,classNames:s,title:a,itemTitle:l,eventKey:c,warnKey:d,disabled:u,internalPopupClose:m,children:p,itemIcon:g,expandIcon:h,popupClassName:b,popupOffset:v,popupStyle:x,onClick:S,onMouseEnter:y,onMouseLeave:C,onTitleClick:w,onTitleMouseEnter:E,onTitleMouseLeave:R,popupRender:$,...I}=e,T=Nf(c),{prefixCls:M,mode:N,openKeys:k,disabled:D,overflowDisabled:A,activeKey:B,selectedKeys:L,itemIcon:F,expandIcon:q,onItemClick:X,onOpenChange:W,onActive:j,popupRender:Z}=K(Xo),{_internalRenderSubMenuItem:J}=K($c),{isSubPathKey:U}=K(Mf),ee=Hi(),re=`${M}-submenu`,ne=D||u,oe=H(null),te=H(null),ie=g??F,se=h??q,xe=k.includes(c),me=!A&&xe,Ee=U(L,c),{active:$e,...he}=au(c,ne,E,R),[ye,He]=ce(!1),Se=o(je=>{ne||He(je)},"triggerChildrenActive"),Ce=o(je=>{Se(!0),y?.({key:c,domEvent:je})},"onInternalMouseEnter"),ue=o(je=>{Se(!1),C?.({key:c,domEvent:je})},"onInternalMouseLeave"),Pe=V(()=>$e||(N!=="inline"?ye||U([B],c):!1),[N,$e,B,ye,c,U]),ve=lu(ee.length),Ue=o(je=>{ne||(w?.({key:c,domEvent:je}),N==="inline"&&W(c,!xe))},"onInternalTitleClick"),pe=pa(je=>{S?.(pl(je)),X(je)}),Oe=o(je=>{N!=="inline"&&W(c,je)},"onPopupVisibleChange"),Ie=o(()=>{j(c)},"onInternalFocus"),ke=T&&`${T}-popup`,We=V(()=>f(cu,{icon:N!=="horizontal"?se:void 0,props:{...e,isOpen:me,isSubMenu:!0}},f("i",{className:`${re}-arrow`})),[N,se,e,me,re]),ze=f("div",uu({role:"menuitem",style:ve,className:`${re}-title`,tabIndex:ne?null:-1,ref:oe,title:l??(typeof a=="string"?a:null),"data-menu-id":A&&T?null:T,"aria-expanded":me,"aria-haspopup":!0,"aria-controls":ke,"aria-disabled":ne,onClick:Ue,onFocus:Ie},he),a,We),Ne=H(N);N!=="inline"&&ee.length>1?Ne.current="vertical":Ne.current=N;let lt=Ne.current,qe=V(()=>{let je=f($s,{classNames:s,styles:i,mode:lt==="horizontal"?"vertical":lt},f(Af,{id:ke,ref:te},p)),gt=$||Z;return gt?gt(je,{item:e,keys:ee}):je},[$,Z,ee,ke,p,e,lt]);if(!A){let je=Ne.current;ze=f($y,{mode:je,prefixCls:re,visible:!m&&me&&N!=="inline",popupClassName:b,popupOffset:v,popupStyle:x,popup:qe,disabled:ne,onVisibleChange:Oe},ze)}let Ze=f(Ci.Item,uu({ref:t,role:"none"},I,{component:"li",style:r,className:O(re,`${re}-${N}`,n,{[`${re}-open`]:me,[`${re}-active`]:Pe,[`${re}-selected`]:Ee,[`${re}-disabled`]:ne}),onMouseEnter:Ce,onMouseLeave:ue}),ze,!A&&f(Py,{id:ke,open:me,keyPath:ee},p));return J&&(Ze=J(Ze,e,{selected:Ee,active:Pe,open:me,disabled:ne})),f($s,{classNames:s,styles:i,onItemClick:pe,mode:N==="horizontal"?"vertical":N,itemIcon:ie,expandIcon:se},Ze)}),IB=le((e,t)=>{let{eventKey:r,children:n}=e,i=Hi(r),s=Ic(n,i),a=ma();fe(()=>{if(a)return a.registerPath(r,i),()=>{a.unregisterPath(r,i)}},[i]);let l;return a?l=s:l=f($B,uu({ref:t},e),s),f(vy.Provider,{value:i},l)}),ga=IB;function fl({className:e,style:t}){let{prefixCls:r}=K(Xo);return ma()?null:f("li",{role:"separator",className:O(`${r}-item-divider`,e),style:t})}o(fl,"Divider");function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lf.apply(this,arguments)}o(Lf,"_extends");var PB=le((e,t)=>{let{className:r,title:n,eventKey:i,children:s,...a}=e,{prefixCls:l,classNames:c,styles:d}=K(Xo),u=`${l}-item-group`;return f("li",Lf({ref:t,role:"presentation"},a,{onClick:o(m=>m.stopPropagation(),"onClick"),className:O(u,r)}),f("div",{role:"presentation",className:O(`${u}-title`,c?.listTitle),style:d?.listTitle,title:typeof n=="string"?n:void 0},n),f("ul",{role:"group",className:O(`${u}-list`,c?.list),style:d?.list},s))}),NB=le((e,t)=>{let{eventKey:r,children:n}=e,i=Hi(r),s=Ic(n,i);return ma()?s:f(PB,Lf({ref:t},_t(e,["warnKey"])),s)}),Pc=NB;function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nc.apply(this,arguments)}o(Nc,"_extends");function Ny(e,t,r){let{item:n,group:i,submenu:s,divider:a}=t;return(e||[]).map((l,c)=>{if(l&&typeof l=="object"){let{label:d,children:u,key:m,type:p,extra:g,...h}=l,b=m??`tmp-${c}`;if(u||p==="group"){if(p==="group")return f(i,Nc({key:b},h,{title:d}),Ny(u,t,r));let{title:x,...S}=h;return f(s,Nc({key:b},S,{title:d,itemTitle:typeof x=="string"?x:void 0}),Ny(u,t,r))}if(p==="divider")return f(a,Nc({key:b},h));let v=!!g||g===0;return f(n,Nc({key:b},h,{extra:g,itemData:{...l,key:b}}),v?f(rr,null,f("span",{className:`${r}-item-label`},d),f("span",{className:`${r}-item-extra`},g)):d)}return null}).filter(l=>l)}o(Ny,"convertItemsToNodes");function My(e,t,r,n,i){let s=e,a={divider:fl,item:fa,group:Pc,submenu:ga,...n};return t&&(s=Ny(t,a,i)),Ic(s,r)}o(My,"parseItems");function Ty(){return Ty=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ty.apply(this,arguments)}o(Ty,"_extends");var gl=[],MB=le((e,t)=>{let{prefixCls:r="rc-menu",rootClassName:n,style:i,className:s,styles:a,classNames:l,tabIndex:c=0,items:d,children:u,direction:m,id:p,mode:g="vertical",inlineCollapsed:h,disabled:b,disabledOverflow:v,subMenuOpenDelay:x=.1,subMenuCloseDelay:S=.1,forceSubMenuRender:y,defaultOpenKeys:C,openKeys:w,activeKey:E,defaultActiveFirst:R,selectable:$=!0,multiple:I=!1,defaultSelectedKeys:T,selectedKeys:M,onSelect:N,onDeselect:k,inlineIndent:D=24,motion:A,defaultMotions:B,triggerSubMenuAction:L="hover",builtinPlacements:F,itemIcon:q,expandIcon:X,overflowedIndicator:W="...",overflowedIndicatorPopupClassName:j,getPopupContainer:Z,onClick:J,onOpenChange:U,onKeyDown:ee,openAnimation:re,openTransitionName:ne,_internalRenderMenuItem:oe,_internalRenderSubMenuItem:te,_internalComponents:ie,popupRender:se,...xe}=e,[me,Ee]=V(()=>[My(u,d,gl,ie,r),My(u,d,gl,{},r)],[u,d,ie]),[$e,he]=ce(!1),ye=H(null),He=Wo(),Se=p??`rc-menu-uuid-${He}`,Ce=m==="rtl",[ue,Pe]=Ft(C,w),ve=ue||gl,Ue=o((Et,zt=!1)=>{function Kt(){Pe(Et),U?.(Et)}o(Kt,"doUpdate"),zt?Wa(Kt):Kt()},"triggerOpenKeys"),[pe,Oe]=ce(ve),Ie=H(!1),[ke,We]=V(()=>(g==="inline"||g==="vertical")&&h?["vertical",h]:[g,!1],[g,h]),ze=ke==="inline",[Ne,lt]=ce(ke),[qe,Ze]=ce(We);fe(()=>{lt(ke),Ze(We),Ie.current&&(ze?Pe(pe):Ue(gl))},[ke,We]);let[je,gt]=ce(0),rt=je>=me.length-1||Ne!=="horizontal"||v;fe(()=>{ze&&Oe(ve)},[ve]),fe(()=>(Ie.current=!0,()=>{Ie.current=!1}),[]);let{registerPath:qt,unregisterPath:Tt,refreshOverflowKeys:Xe,isSubPathKey:Rt,getKeyPath:Lt,getKeys:jt,getSubPathKeys:Ve}=wy(),it=V(()=>({registerPath:qt,unregisterPath:Tt}),[qt,Tt]),Fe=V(()=>({isSubPathKey:Rt}),[Rt]);fe(()=>{Xe(rt?gl:me.slice(je+1).map(Et=>Et.key))},[je,rt]);let[Wt,ge]=Ft(E||R&&me[0]?.key,E),Ae=pa(Et=>{ge(Et)}),ct=pa(()=>{ge(void 0)});ft(t,()=>({list:ye.current,focus:o(Et=>{let zt=jt(),{elements:Kt,key2element:vt,element2key:kt}=su(zt,Se),xr=kf(ye.current,Kt),Br;Wt&&zt.includes(Wt)?Br=Wt:Br=xr[0]?kt.get(xr[0]):me.find(Or=>!Or.props.disabled)?.key;let pr=vt.get(Br);Br&&pr&&pr?.focus?.(Et)},"focus"),findItem:o(({key:Et})=>{let zt=jt(),{key2element:Kt}=su(zt,Se);return Kt.get(Et)||null},"findItem")}));let[Be,ut]=Ft(T||[],M),Je=V(()=>Array.isArray(Be)?Be:Be==null?gl:[Be],[Be]),Ct=o(Et=>{if($){let{key:zt}=Et,Kt=Je.includes(zt),vt;I?Kt?vt=Je.filter(xr=>xr!==zt):vt=[...Je,zt]:vt=[zt],ut(vt);let kt={...Et,selectedKeys:vt};Kt?k?.(kt):N?.(kt)}!I&&ve.length&&Ne!=="inline"&&Ue(gl)},"triggerSelection"),Gt=pa(Et=>{J?.(pl(Et)),Ct(Et)}),Xt=pa((Et,zt)=>{let Kt=ve.filter(vt=>vt!==Et);if(zt)Kt.push(Et);else if(Ne!=="inline"){let vt=Ve(Et);Kt=Kt.filter(kt=>!vt.has(kt))}ki(ve,Kt,!0)||Ue(Kt,!0)}),Sr=KI(Ne,Wt,Ce,Se,ye,jt,Lt,ge,o((Et,zt)=>{let Kt=zt??!ve.includes(Et);Xt(Et,Kt)},"triggerAccessibilityOpen"),ee);fe(()=>{he(!0)},[]);let zr=V(()=>({_internalRenderMenuItem:oe,_internalRenderSubMenuItem:te}),[oe,te]),Ke=Ne!=="horizontal"||v?me:me.map((Et,zt)=>f($s,{key:Et.key,overflowDisabled:zt>je,classNames:l,styles:a},Et)),So=f(Ci,Ty({id:p,ref:ye,prefixCls:`${r}-overflow`,component:"ul",itemComponent:fa,className:O(r,`${r}-root`,`${r}-${Ne}`,s,{[`${r}-inline-collapsed`]:qe,[`${r}-rtl`]:Ce},n),dir:m,style:i,role:"menu",tabIndex:c,data:Ke,renderRawItem:o(Et=>Et,"renderRawItem"),renderRawRest:o(Et=>{let zt=Et.length,Kt=zt?me.slice(-zt):null;return f(ga,{eventKey:Df,title:W,disabled:rt,internalPopupClose:zt===0,popupClassName:j},Kt)},"renderRawRest"),maxCount:Ne!=="horizontal"||v?Ci.INVALIDATE:Ci.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:o(Et=>{gt(Et)},"onVisibleChange"),onKeyDown:Sr},xe));return f($c.Provider,{value:zr},f(gy.Provider,{value:Se},f($s,{prefixCls:r,rootClassName:n,classNames:l,styles:a,mode:Ne,openKeys:ve,rtl:Ce,disabled:b,motion:$e?A:null,defaultMotions:$e?B:null,activeKey:Wt,onActive:Ae,onInactive:ct,selectedKeys:Je,inlineIndent:D,subMenuOpenDelay:x,subMenuCloseDelay:S,forceSubMenuRender:y,builtinPlacements:F,triggerSubMenuAction:L,getPopupContainer:Z,itemIcon:q,expandIcon:X,onItemClick:Gt,onOpenChange:Xt,popupRender:se},f(Mf.Provider,{value:Fe},So),f("div",{style:{display:"none"},"aria-hidden":!0},f(by.Provider,{value:it},Ee)))))}),t1=MB;var mu=t1;mu.Item=fa;mu.SubMenu=ga;mu.ItemGroup=Pc;mu.Divider=fl;var r1=mu;var Bf=bt({});var TB={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"},o1=TB;function Oy(){return Oy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Oy.apply(this,arguments)}o(Oy,"_extends");var OB=o((e,t)=>f(sr,Oy({},e,{ref:t,icon:o1})),"EllipsisOutlined"),kB=le(OB),Mc=kB;var DB=bt({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),hl=DB;var AB=o(e=>{let{prefixCls:t,className:r,dashed:n,...i}=e,{getPrefixCls:s}=K(at),a=s("menu",t),l=O({[`${a}-item-divider-dashed`]:!!n},r);return f(fl,{className:l,...i})},"MenuDivider"),Ff=AB;var _B=o(e=>{let{children:t,prefixCls:r,id:n,classNames:i,styles:s,className:a,style:l}=e;return f("div",{id:n,className:O(`${r}-container`,i?.container,a),style:{...s?.container,...l},role:"tooltip"},typeof t=="function"?t():t)},"Popup"),pu=_B;var Tc={shiftX:64,adjustY:1},Oc={adjustX:1,shiftY:!0},wi=[0,0],n1={left:{points:["cr","cl"],overflow:Oc,offset:[-4,0],targetOffset:wi},right:{points:["cl","cr"],overflow:Oc,offset:[4,0],targetOffset:wi},top:{points:["bc","tc"],overflow:Tc,offset:[0,-4],targetOffset:wi},bottom:{points:["tc","bc"],overflow:Tc,offset:[0,4],targetOffset:wi},topLeft:{points:["bl","tl"],overflow:Tc,offset:[0,-4],targetOffset:wi},leftTop:{points:["tr","tl"],overflow:Oc,offset:[-4,0],targetOffset:wi},topRight:{points:["br","tr"],overflow:Tc,offset:[0,-4],targetOffset:wi},rightTop:{points:["tl","tr"],overflow:Oc,offset:[4,0],targetOffset:wi},bottomRight:{points:["tr","br"],overflow:Tc,offset:[0,4],targetOffset:wi},rightBottom:{points:["bl","br"],overflow:Oc,offset:[4,0],targetOffset:wi},bottomLeft:{points:["tl","bl"],overflow:Tc,offset:[0,4],targetOffset:wi},leftBottom:{points:["br","bl"],overflow:Oc,offset:[-4,0],targetOffset:wi}};function ky(){return ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ky.apply(this,arguments)}o(ky,"_extends");var LB=le((e,t)=>{let{trigger:r=["hover","focus"],mouseEnterDelay:n=0,mouseLeaveDelay:i=.1,prefixCls:s="rc-tooltip",children:a,onVisibleChange:l,afterVisibleChange:c,motion:d,placement:u="right",align:m={},destroyOnHidden:p=!1,defaultVisible:g,getTooltipContainer:h,arrowContent:b,overlay:v,id:x,showArrow:S=!0,classNames:y,styles:C,...w}=e,E=Wo(x),R=H(null);ft(t,()=>R.current);let $={...w};"visible"in e&&($.popupVisible=e.visible);let I=V(()=>{if(!S)return!1;let M=S===!0?{}:S;return{...M,className:O(M.className,y?.arrow),style:{...M.style,...C?.arrow},content:M.content??b}},[S,y?.arrow,C?.arrow,b]),T=o(({open:M})=>{let N=vs.only(a),A={"aria-describedby":[N.props["aria-describedby"],v&&M?E:void 0].filter(Boolean).join(" ")||void 0};return so(N,A)},"getChildren");return f(Ji,ky({popupClassName:y?.root,prefixCls:s,popup:f(pu,{key:"content",prefixCls:s,id:E,classNames:y,styles:C},v),action:r,builtinPlacements:n1,popupPlacement:u,ref:R,popupAlign:m,getPopupContainer:h,onOpenChange:l,afterOpenChange:c,popupMotion:d,defaultPopupVisible:g,autoDestroy:p,mouseLeaveDelay:i,popupStyle:C?.root,mouseEnterDelay:n,arrow:I,uniqueContainerClassName:y?.uniqueContainer,uniqueContainerStyle:C?.uniqueContainer},$),T)}),i1=LB;var s1=i1;var BB=o(e=>{let{space:t,form:r,children:n}=e;if(!yr(n))return null;let i=n;return r&&(i=_.createElement(OI,{override:!0,status:!0},i)),t&&(i=_.createElement(o$,null,i)),i},"ContextIsolator"),hn=BB;var FB=_.createContext(!1),a1=FB;var HB=o((e,t)=>{let r=o(n=>typeof n=="boolean"?{show:n}:n||{},"toConfig");return _.useMemo(()=>{let n=r(e),i=r(t);return{...i,...n,show:n.show??i.show??!0}},[e,t])},"useMergedArrow"),l1=HB;var c1="50%",zB=o(e=>{let{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:i,tooltipBg:s,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,dropShadowPopover:d,paddingSM:u,paddingXS:m,arrowOffsetHorizontal:p,sizePopupArrow:g,antCls:h}=e,[b,v]=br(h,"tooltip"),x=t(a).add(g).add(p).equal(),y={minWidth:t(a).mul(2).add(g).equal(),minHeight:c,padding:`${Q(e.calc(u).div(2).equal())} ${Q(m)}`,color:v("overlay-color",i),textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:a,boxSizing:"border-box"},C={[b("valid-offset-x")]:v("arrow-offset-x","var(--arrow-x)"),transformOrigin:[v("valid-offset-x",c1),`var(--arrow-y, ${c1})`].join(" ")};return[{[r]:{...hr(e),position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:n,visibility:"visible",filter:d,...C,"&-hidden":{display:"none"},[b("arrow-background-color")]:s,[`${r}-container`]:[y,qd(e,!0)],[`&:has(~ ${r}-unique-container)`]:{[`${r}-container`]:{border:"none",background:"transparent"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:x},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,my)}},[`${r}-content`]:{position:"relative"},...jp(e,(w,{darkColor:E})=>({[`&${r}-${w}`]:{[`${r}-container`]:{backgroundColor:E},[`${r}-arrow`]:{[b("arrow-background-color")]:E}}})),"&-rtl":{direction:"rtl"}}},If(e,v("arrow-background-color"),{arrowShadow:!1}),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${r}-unique-container`]:{...y,...C,position:"absolute",zIndex:t(l).sub(1).equal(),filter:d,"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},"genTooltipStyle"),VB=o(e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Rc({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...wc(wt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),"prepareComponentToken"),Hf=o((e,t,r=!0)=>Ht("Tooltip",i=>{let{borderRadius:s,colorTextLightSolid:a,colorBgSpotlight:l,maxWidth:c}=i,d=wt(i,{tooltipMaxWidth:c,tooltipColor:a,tooltipBorderRadius:s,tooltipBg:l});return[zB(d),Es(i,"zoom-big-fast")]},VB,{resetStyle:!1,injectStyle:r})(e,t),"default");var jB=pn.map(e=>`${e}-inverse`);function d1(e,t=!0){return t?[].concat(to(jB),to(pn)).includes(e):pn.includes(e)}o(d1,"isPresetColor");var zf=o((e,t,r)=>{let n=d1(r),[i]=br(e,"tooltip"),s=O({[`${t}-${r}`]:r&&n}),a={},l={},c=W$(r).toRgb(),u=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return r&&!n&&(a.background=r,a[i("overlay-color")]=u,l[i("arrow-background-color")]=r),{className:s,overlayStyle:a,arrowStyle:l}},"parseColor");var WB=o(e=>{let{prefixCls:t,className:r,placement:n="top",title:i,color:s,overlayInnerStyle:a,classNames:l,styles:c}=e,{getPrefixCls:d}=K(at),u=d("tooltip",t),m=d(),p=oo(u),[g,h]=Hf(u,p),b=zf(m,u,s),v=b.arrowStyle,x=V(()=>({container:{...a,...b.overlayStyle}}),[a,b.overlayStyle]),S={...e,placement:n},[y,C]=Qt([l],[x,c],{props:S}),w=O(p,g,h,u,`${u}-pure`,`${u}-placement-${n}`,r,b.className);return f("div",{className:w,style:v},f("div",{className:`${u}-arrow`}),f(pu,{...e,className:g,prefixCls:u,classNames:y,styles:C},i))},"PurePanel"),u1=WB;var UB=le((e,t)=>{let{prefixCls:r,openClassName:n,getTooltipContainer:i,color:s,children:a,afterOpenChange:l,arrow:c,destroyTooltipOnHide:d,destroyOnHidden:u,title:m,overlay:p,trigger:g,builtinPlacements:h,autoAdjustOverflow:b=!0,motion:v,getPopupContainer:x,placement:S="top",mouseEnterDelay:y,mouseLeaveDelay:C,rootClassName:w,styles:E,classNames:R,onOpenChange:$,overlayInnerStyle:I,overlayStyle:T,overlayClassName:M,...N}=e,[,k]=Gr(),D=e["data-popover-inject"],{getPopupContainer:A,getPrefixCls:B,direction:L,...F}=Mt("tooltip"),{className:q,style:X,classNames:W,styles:j,arrow:Z,trigger:J,mouseEnterDelay:U,mouseLeaveDelay:ee}=D?{}:F,re=y??U??.1,ne=C??ee??.1,oe=l1(c,Z),te=oe.show,ie=g||J||"hover",se=x||i||A,xe=u??!!d,me=K(a1),Ee=Xl("Tooltip"),$e=H(null),he=o(()=>{$e.current?.forceAlign()},"forceAlign");ft(t,()=>({forceAlign:he,nativeElement:$e.current?.nativeElement,popupElement:$e.current?.popupElement}));let[ye,He]=Ft(e.defaultOpen??!1,e.open),Se=!m&&!p&&m!==0,Ce=o(Fe=>{He(Se?!1:Fe),!Se&&$&&$(Fe)},"onInternalOpenChange"),ue=V(()=>h||ou({arrowPointAtCenter:oe?.pointAtCenter??!1,autoAdjustOverflow:b,arrowWidth:te?k.sizePopupArrow:0,borderRadius:k.borderRadius,offset:k.marginXXS,visibleFirst:!0}),[oe,h,k,te,b]),Pe=V(()=>m===0?m:p||m||"",[p,m]),ve=f(hn,{space:!0,form:!0},er(Pe)?Pe():Pe),Ue={...e,trigger:ie,builtinPlacements:ue,getPopupContainer:se,destroyOnHidden:xe,mouseEnterDelay:re,mouseLeaveDelay:ne},pe=$t(X),Oe=$t(T),[Ie,ke]=Qt([W,R],[j,pe,E,Oe],{props:Ue}),We=B("tooltip",r),ze=B(),Ne=ye;(!("open"in e)&&Se||me)&&(Ne=!1);let lt=Tr(a)&&!Mp(a)?a:f("span",null,a),qe=lt.props,Ze=!qe.className||typeof qe.className=="string"?O(qe.className,n||`${We}-open`):qe.className,je=oo(We),[gt,rt]=Hf(We,je,!D),qt=zf(ze,We,s),Tt=qt.arrowStyle,Xe=O(je,gt,rt),Rt=O(M,{[`${We}-rtl`]:L==="rtl"},qt.className,w,Xe,q,Ie.root),[Lt,jt]=Un("Tooltip",N.zIndex),Ve={...ke.container,...I,...qt.overlayStyle},it=f(s1,{unique:!0,...N,zIndex:Lt,showArrow:te,placement:S,mouseEnterDelay:re,mouseLeaveDelay:ne,prefixCls:We,classNames:{root:Rt,container:Ie.container,arrow:Ie.arrow,uniqueContainer:O(Xe,Ie.container)},styles:{root:{...Tt,...ke.root},container:Ve,uniqueContainer:Ve,arrow:ke.arrow},ref:$e,overlay:ve,visible:Ne,onVisibleChange:Ce,afterVisibleChange:l,arrowContent:f("span",{className:`${We}-arrow-content`}),motion:{motionName:rs(ze,"zoom-big-fast",typeof v?.motionName=="string"?v?.motionName:void 0),motionDeadline:1e3},trigger:ie,builtinPlacements:ue,getTooltipContainer:se,destroyOnHidden:xe},Ne&&!N.disabled?ho(lt,{className:Ze}):lt);return f(oa.Provider,{value:jt},it)}),Dy=UB;Dy._InternalPanelDoNotUseOrYouWillBeFired=u1;Dy.UniqueProvider=Op;var kc=Dy;var qB=o(e=>{let{className:t,children:r,icon:n,title:i,danger:s,extra:a}=e,{prefixCls:l,firstLevel:c,direction:d,disableMenuItemTitleTooltip:u,tooltip:m,inlineCollapsed:p,styles:g,classNames:h}=K(hl),{siderCollapsed:b}=K(Bf),v=!!(b||p),[x,S]=ce(!1);fe(()=>{S(!1)},[v]);let y=o(T=>{let M=r?.[0],N=f("span",{className:O(`${l}-title-content`,c?h?.itemContent:h?.subMenu?.itemContent,{[`${l}-title-content-with-extra`]:!!a||a===0}),style:c?g?.itemContent:g?.subMenu?.itemContent},r);return(!n||Tr(r)&&r.type==="span")&&r&&T&&c&&typeof M=="string"?f("div",{className:`${l}-inline-collapsed-noicon`},M.charAt(0)):N},"renderItemChildren"),C=i;typeof i>"u"?C=c?r:"":i===!1&&(C="");let w=m===!1?void 0:m,E=w&&w.title!==void 0?w.title:C,R={...w??null,title:E};v?(R.open=w?.open??x,R.onOpenChange=T=>{S(T),w?.onOpenChange?.(T)}):(R.title=null,R.open=!1);let $=co(r).length,I=f(fa,{..._t(e,["title","icon","danger"]),className:O(c?h?.item:h?.subMenu?.item,{[`${l}-item-danger`]:s,[`${l}-item-only-child`]:(n?$+1:$)===1},t),style:{...c?g?.item:g?.subMenu?.item,...e.style},title:typeof i=="string"?i:void 0,itemData:e?.itemData??{...e,key:e.eventKey}},ho(n,T=>({className:O(`${l}-item-icon`,c?h?.itemIcon:h?.subMenu?.itemIcon,T.className),style:{...c?g?.itemIcon:g?.subMenu?.itemIcon,...T.style}})),y(p));if(!u&&m!==!1){let T=w&&w.placement?w.placement:d==="rtl"?"left":"right",M=`${l}-inline-collapsed-tooltip`,N=o(D=>({...D,root:O(M,D?.root)}),"mergeTooltipRootClassName"),k=er(w?.classNames)?D=>{let A=w.classNames(D);return N(A)}:N(w?.classNames);I=f(kc,{...R,placement:T,classNames:k},I)}return I},"MenuItem"),Vf=qB;var Ay=bt(null),m1=le((e,t)=>{let{children:r,...n}=e,i=K(Ay),s=V(()=>({...i,...n}),[i,n.prefixCls,n.mode,n.selectable,n.rootClassName]),a=wd(r),l=Qo(t,a?Zo(r):null);return f(Ay.Provider,{value:s},f(hn,{space:!0},a?so(r,{ref:l}):r))}),_y=Ay;var GB=o(e=>{let{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:i,lineWidth:s,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${Q(s)} ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
163
- > ${t}-item-active,
164
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:["border-color","background-color"].map(c=>`${c} ${r}`).join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},"getHorizontalStyle"),p1=GB;var XB=o(({componentCls:e,menuArrowOffset:t,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
165
- ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Q(r(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Q(t)})`}}}}),"getRTLStyle"),f1=XB;var g1=o(e=>wn(e),"accessibilityFocus"),YB=o((e,t)=>{let{componentCls:r,itemColor:n,itemSelectedColor:i,subMenuItemSelectedColor:s,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:d,activeBarHeight:u,activeBarWidth:m,activeBarBorderWidth:p,motionDurationSlow:g,motionEaseInOut:h,motionEaseOut:b,itemPaddingInline:v,motionDurationMid:x,itemHoverColor:S,lineType:y,colorSplit:C,itemDisabledColor:w,dangerItemColor:E,dangerItemHoverColor:R,dangerItemSelectedColor:$,dangerItemActiveBg:I,dangerItemSelectedBg:T,popupBg:M,itemHoverBg:N,itemActiveBg:k,menuSubMenuBg:D,horizontalItemSelectedColor:A,horizontalItemSelectedBg:B,horizontalItemBorderRadius:L,horizontalItemHoverBg:F}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:l,[`&${r}-root:focus-visible`]:{...g1(e)},[`${r}-item`]:{"&-group-title, &-extra":{color:a}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:s},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:{...g1(e)}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${w} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:S}},[`${r}-submenu:not(${r}-submenu-selected)`]:{[`> ${r}-submenu-title:hover`]:{color:S}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:k}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:k}}},[`${r}-item-danger`]:{color:E,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:R}},[`&${r}-item:active`]:{background:I}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:i,[`&${r}-item-danger`]:{color:$},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:d,[`&${r}-item-danger`]:{backgroundColor:T}},[`&${r}-submenu > ${r}`]:{backgroundColor:D},[`&${r}-popup > ${r}`]:{backgroundColor:M},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:M},[`&${r}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${r}-item, > ${r}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:L,"&::after":{position:"absolute",insetInline:v,bottom:0,pointerEvents:"none",borderBottom:`${Q(u)} solid transparent`,transition:`border-color ${g} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:B,"&:hover":{backgroundColor:B},"&::after":{borderBottomWidth:u,borderBottomColor:A}}}},[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${Q(p)} ${y} ${C}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:c},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Q(m)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:["transform","opacity"].map(q=>`${q} ${x} ${b}`).join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:$}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform","opacity"].map(q=>`${q} ${x} ${h}`).join(",")}}}}}},"getThemeStyle"),Ly=YB;var h1=o(e=>{let{componentCls:t,itemHeight:r,itemMarginInline:n,padding:i,menuArrowSize:s,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:d}=e,u=e.calc(s).add(i).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:Q(r),paddingInline:d,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:l,width:c},[`> ${t}-item,
166
- > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:Q(r)},[`${t}-item-group-list ${t}-submenu-title,
167
- ${t}-submenu-title`]:{paddingInlineEnd:u}}},"getVerticalInlineStyle"),KB=o(e=>{let{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:i,dropdownWidth:s,controlHeightLG:a,padding:l,paddingXL:c,itemMarginInline:d,fontSizeLG:u,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:g,collapsedWidth:h,collapsedIconSize:b}=e,v={height:n,lineHeight:Q(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...h1(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...h1(e),boxShadow:g}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${Q(e.calc(a).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 ${m}`,`background-color ${m}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:v,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:v}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{transition:["border-color","background-color"].map(x=>`${x} ${m}`).join(","),[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center",width:"100%"}}},[`> ${t}-item,
168
- > ${t}-item-group > ${t}-item-group-list > ${t}-item,
169
- > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
170
- > ${t}-submenu > ${t}-submenu-title`]:{display:"flex",alignItems:"center",justifyContent:"flex-start",insetInlineStart:0,paddingInline:`calc(50% - ${Q(e.calc(b).div(2).equal())} - ${Q(d)})`,textOverflow:"clip",[`
171
- ${t}-submenu-arrow,
172
- ${t}-submenu-expand-icon
173
- `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:"hidden"},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:b,lineHeight:Q(n),"+ span":{display:"inline-block",width:0,opacity:0,overflow:"hidden",marginInlineStart:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},[`${t}-item-extra`]:{paddingInlineStart:l},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...en,paddingInline:p}}}]},"getVerticalStyle"),b1=KB;var v1=o(e=>{let{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:i,motionEaseOut:s,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background-color ${r}`,`padding calc(${r} + 0.1s) ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${n} ${s}`,`margin ${r} ${i}`,`color ${r}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${r} ${i}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:{...ri()},[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},"genMenuItemStyle"),y1=o(e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:i,menuArrowSize:s,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:["transform","opacity"].map(l=>`${l} ${r}`).join(",")},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:["background-color","transform","top","color"].map(l=>`${l} ${r} ${n}`).join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${Q(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Q(a)})`}}}}},"genSubMenuArrowStyle"),QB=o(e=>{let{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:i,motionDurationMid:s,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:d,lineWidth:u,zIndexPopup:m,borderRadiusLG:p,subMenuItemBorderRadius:g,menuArrowSize:h,menuArrowOffset:b,lineType:v,groupTitleLineHeight:x,groupTitleFontSize:S,iconSize:y,iconMarginInlineEnd:C}=e,w=[`> ${t}-typography-ellipsis-single-line`,`> ${r}-item-label > ${t}-typography-ellipsis-single-line`].join(",");return[{"":{[r]:{...il(),"&-hidden":{display:"none"}}},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:{...hr(e),...il(),marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${Q(l)} ${Q(c)}`,fontSize:S,lineHeight:x,transition:`all ${i}`},[`&-horizontal ${r}-submenu`]:{transition:["border-color","background-color"].map(E=>`${E} ${i} ${a}`).join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${s}`].map(E=>`${E} ${a}`).join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:["background-color","padding"].map(E=>`${E} ${i} ${a}`).join(",")},[`${r}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%",minWidth:0},[`${r}-item-label`]:{flex:"auto",minWidth:0,...en},[w]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{flex:"none",marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item-icon + ${r}-title-content-with-extra`]:{width:`calc(100% - ${Q(e.calc(y).add(C??0).equal())})`},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:d,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}},...v1(e),[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${Q(e.calc(n).mul(2).equal())} ${Q(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:{borderRadius:p,...v1(e),...y1(e),[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:g},[`${r}-submenu-title::after`]:{transition:`transform ${i} ${a}`}}},"&-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}},...y1(e),[`&-inline-collapsed ${r}-submenu-arrow,
174
- &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Q(b)})`},"&::after":{transform:`rotate(45deg) translateX(${Q(e.calc(b).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${Q(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Q(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Q(b)})`}}}},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},"getBaseStyle"),ZB=o(e=>{let{colorPrimary:t,colorError:r,colorTextDisabled:n,colorErrorBg:i,colorText:s,colorTextDescription:a,colorBgContainer:l,colorFillAlter:c,colorFillContent:d,lineWidth:u,lineWidthBold:m,controlItemBgActive:p,colorBgTextHover:g,controlHeightLG:h,lineHeight:b,colorBgElevated:v,marginXXS:x,padding:S,fontSize:y,controlHeightSM:C,fontSizeLG:w,colorTextLightSolid:E,colorErrorHover:R}=e,$=e.activeBarWidth??0,I=e.activeBarBorderWidth??u,T=e.itemMarginInline??e.marginXXS,M=new ur(E).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:a,groupTitleColor:a,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:l,itemBg:l,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:d,itemActiveBg:p,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:$,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:u,activeBarBorderWidth:I,colorItemTextDisabled:n,itemDisabledColor:n,colorDangerItemText:r,dangerItemColor:r,colorDangerItemTextHover:r,dangerItemHoverColor:r,colorDangerItemTextSelected:r,dangerItemSelectedColor:r,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:T,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:h*2,popupBg:v,itemMarginBlock:x,itemPaddingInline:S,horizontalLineHeight:`${h*1.15}px`,iconSize:y,iconMarginInlineEnd:C-y,collapsedIconSize:w,groupTitleFontSize:y,darkItemDisabledColor:new ur(E).setA(.25).toRgbString(),darkItemColor:M,darkDangerItemColor:r,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:E,darkItemSelectedBg:t,darkDangerItemSelectedBg:r,darkItemHoverBg:"transparent",darkGroupTitleColor:M,darkItemHoverColor:E,darkDangerItemHoverColor:R,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:r,itemWidth:$?`calc(100% + ${I}px)`:`calc(100% - ${T*2}px)`}},"prepareComponentToken"),x1=o((e,t=e,r=!0)=>Ht("Menu",i=>{let{colorBgElevated:s,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:d,darkItemBg:u,darkSubMenuItemBg:m,darkItemSelectedColor:p,darkItemSelectedBg:g,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:v,darkItemHoverColor:x,darkItemDisabledColor:S,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:w,popupBg:E,darkPopupBg:R}=i,$=i.calc(l).div(7).mul(5).equal(),I=wt(i,{menuArrowSize:$,menuHorizontalHeight:i.calc(a).mul(1.15).equal(),menuArrowOffset:i.calc($).mul(.25).equal(),menuSubMenuBg:s,calc:i.calc,popupBg:E}),T=wt(I,{itemColor:c,itemHoverColor:x,groupTitleColor:v,itemSelectedColor:p,subMenuItemSelectedColor:p,itemBg:u,popupBg:R,subMenuItemBg:m,itemActiveBg:"transparent",itemSelectedBg:g,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:S,dangerItemColor:d,dangerItemHoverColor:y,dangerItemSelectedColor:C,dangerItemActiveBg:w,dangerItemSelectedBg:h,menuSubMenuBg:m,horizontalItemSelectedColor:p,horizontalItemSelectedBg:g});return[QB(I),p1(I),b1(I),Ly(I,"light"),Ly(T,"dark"),f1(I),Ud(I),Tn(I,"slide-up"),Tn(I,"slide-down"),Es(I,"zoom-big")]},ZB,{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:r,unitless:{groupTitleLineHeight:!0}})(e,t),"default");var JB=o(e=>{let{popupClassName:t,icon:r,title:n,theme:i}=e,s=K(hl),{prefixCls:a,inlineCollapsed:l,theme:c,classNames:d,styles:u}=s,m=Hi(),p;if(!r)p=l&&!m.length&&n&&typeof n=="string"?f("div",{className:`${a}-inline-collapsed-noicon`},n.charAt(0)):f("span",{className:`${a}-title-content`},n);else{let b=Tr(n)&&n.type==="span";p=f(rr,null,ho(r,v=>({className:O(v.className,`${a}-item-icon`,d?.itemIcon),style:{...v.style,...u?.itemIcon}})),b?n:f("span",{className:`${a}-title-content`},n))}let g=V(()=>({...s,firstLevel:!1}),[s]),[h]=Un("Menu");return f(hl.Provider,{value:g},f(ga,{..._t(e,["icon"]),title:p,classNames:{list:d?.subMenu?.list,listTitle:d?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:O(a,t,d?.popup?.root,`${a}-${i||c}`),popupStyle:{zIndex:h,...e.popupStyle,...u?.popup?.root}}))},"SubMenu"),jf=JB;function By(e){return e===null||e===!1}o(By,"isEmptyIcon");var eF={item:Vf,submenu:jf,divider:Ff},tF=le((e,t)=>{let r=K(_y),n=r||{},{prefixCls:i,className:s,style:a,theme:l="light",expandIcon:c,_internalDisableMenuItemTitleTooltip:d,tooltip:u,inlineCollapsed:m,siderCollapsed:p,rootClassName:g,mode:h,selectable:b,onClick:v,overflowedIndicatorPopupClassName:x,classNames:S,styles:y,...C}=e,{menu:w}=K(at),{getPrefixCls:E,getPopupContainer:R,direction:$,className:I,style:T,classNames:M,styles:N}=Mt("menu"),k=E(),D=_t(C,["collapsedWidth"]);n.validator?.({mode:h});let A=De((...se)=>{v?.(...se),n.onClick?.()}),B=n.mode||h,L=b??n.selectable,F=m??p,q={...e,mode:B,inlineCollapsed:F,selectable:L,theme:l},X=$t(T),W=$t(a),[j,Z]=Qt([M,S],[N,X,y,W],{props:q},{popup:{_default:"root"},subMenu:{_default:"item"}}),J={horizontal:{motionName:`${k}-slide-up`},inline:df(k),other:{motionName:`${k}-zoom-big`}},U=E("menu",i||n.prefixCls),ee=oo(U),[re,ne]=x1(U,ee,!r),oe=O(`${U}-${l}`,I,s),te=V(()=>{if(er(c)||By(c))return c||null;if(er(n.expandIcon)||By(n.expandIcon))return n.expandIcon||null;if(er(w?.expandIcon)||By(w?.expandIcon))return w?.expandIcon||null;let se=c??n?.expandIcon??w?.expandIcon;return ho(se,{className:O(`${U}-submenu-expand-icon`,Tr(se)?se.props?.className:void 0)})},[c,n?.expandIcon,w?.expandIcon,U]),ie=V(()=>({prefixCls:U,inlineCollapsed:F||!1,direction:$,firstLevel:!0,theme:l,mode:B,disableMenuItemTitleTooltip:d,tooltip:u,classNames:j,styles:Z}),[U,F,$,d,l,B,j,Z,u]);return f(_y.Provider,{value:null},f(hl.Provider,{value:ie},f(r1,{getPopupContainer:R,overflowedIndicator:f(Mc,null),overflowedIndicatorPopupClassName:O(U,`${U}-${l}`,x),classNames:{list:j.list,listTitle:j.itemTitle},styles:{list:Z.list,listTitle:Z.itemTitle},mode:B,selectable:L,onClick:A,...D,inlineCollapsed:F,style:Z.root,className:oe,prefixCls:U,direction:$,defaultMotions:J,expandIcon:te,ref:t,rootClassName:O(g,re,n.rootClassName,ne,ee,j.root),_internalComponents:eF})))}),S1=tF;var fu=le((e,t)=>{let r=H(null),n=K(Bf);return ft(t,()=>({menu:r.current,focus:o(i=>{r.current?.focus(i)},"focus")})),f(S1,{ref:r,...e,...n})});fu.Item=Vf;fu.SubMenu=jf;fu.Divider=Ff;fu.ItemGroup=Pc;var C1=fu;var rF=o(e=>{let{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:i}=e,s=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:n,"&:hover":{color:i,backgroundColor:n}}}}}},"genStatusStyle"),w1=rF;var oF=o(e=>{let{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:i,sizePopupArrow:s,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:d,fontSize:u,dropdownEdgeChildPadding:m,colorTextDisabled:p,fontSizeIcon:g,controlPaddingHorizontal:h,colorBgElevated:b,controlHeightLG:v}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:`calc(100vh - ${Q(e.calc(v).mul(2.5).equal())})`,overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:g}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
175
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
176
- &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
177
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
178
- &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
179
- &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ia},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
180
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
181
- &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
182
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
183
- &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
184
- &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:aa},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
185
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
186
- &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:sa},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
187
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
188
- &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:la},[`&${a}-slide-right-enter${a}-slide-right-enter-active${t}-placement-right,
189
- &${a}-slide-right-appear${a}-slide-right-appear-active${t}-placement-right,
190
- &${a}-slide-right-enter${a}-slide-right-enter-active${t}-placement-rightTop,
191
- &${a}-slide-right-appear${a}-slide-right-appear-active${t}-placement-rightTop,
192
- &${a}-slide-right-enter${a}-slide-right-enter-active${t}-placement-rightBottom,
193
- &${a}-slide-right-appear${a}-slide-right-appear-active${t}-placement-rightBottom`]:{animationName:rf},[`&${a}-slide-left-enter${a}-slide-left-enter-active${t}-placement-left,
194
- &${a}-slide-left-appear${a}-slide-left-appear-active${t}-placement-left,
195
- &${a}-slide-left-enter${a}-slide-left-enter-active${t}-placement-leftTop,
196
- &${a}-slide-left-appear${a}-slide-left-appear-active${t}-placement-leftTop,
197
- &${a}-slide-left-enter${a}-slide-left-enter-active${t}-placement-leftBottom,
198
- &${a}-slide-left-appear${a}-slide-left-appear-active${t}-placement-leftBottom`]:{animationName:nf},[`&${a}-slide-right-leave${a}-slide-right-leave-active${t}-placement-right,
199
- &${a}-slide-right-leave${a}-slide-right-leave-active${t}-placement-rightTop,
200
- &${a}-slide-right-leave${a}-slide-right-leave-active${t}-placement-rightBottom`]:{animationName:of},[`&${a}-slide-left-leave${a}-slide-left-leave-active${t}-placement-left,
201
- &${a}-slide-left-leave${a}-slide-left-leave-active${t}-placement-leftTop,
202
- &${a}-slide-left-leave${a}-slide-left-leave-active${t}-placement-leftBottom`]:{animationName:sf}}},If(e,b),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...hr(e),[r]:{padding:m,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...Wn(e),"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${Q(d)} ${Q(h)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> a, > ${r}-item-label > a`]:{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:{display:"flex",margin:0,padding:`${Q(d)} ${Q(h)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Wn(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:b,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:g,fontStyle:"normal"}}},[`${r}-item-group-list`]:{margin:`0 ${Q(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(h).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:p,backgroundColor:b,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Tn(e,"slide-up"),Tn(e,"slide-down"),Tn(e,"slide-left"),Tn(e,"slide-right"),ts(e,"move-up"),ts(e,"move-down"),Es(e,"zoom-big")]]},"genBaseStyle"),nF=o(e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Rc({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...wc(e)}),"prepareComponentToken"),R1=Ht("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:i}=e,s=wt(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[oF(s),w1(s)]},nF,{resetStyle:!1});var Fy=le((e,t)=>{let{menu:r,arrow:n,prefixCls:i,children:s,trigger:a,disabled:l,dropdownRender:c,popupRender:d,getPopupContainer:u,overlayClassName:m,rootClassName:p,overlayStyle:g,open:h,onOpenChange:b,mouseEnterDelay:v=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:S=!0,placement:y="",transitionName:C,classNames:w,styles:E,destroyPopupOnHide:R,destroyOnHidden:$}=e,{getPrefixCls:I,direction:T,getPopupContainer:M,className:N,style:k,classNames:D,styles:A}=Mt("dropdown"),B={...e,mouseEnterDelay:v,mouseLeaveDelay:x,autoAdjustOverflow:S},L=$t(k),F=$t(g),[q,X]=Qt([D,w],[A,L,E,F],{props:B}),W={...X.root},j=d||c,Z=Xl("Dropdown"),J=V(()=>{let pe=I();return C!==void 0?C:y.startsWith("top")?`${pe}-slide-down`:y.startsWith("left")?`${pe}-slide-right`:y.startsWith("right")?`${pe}-slide-left`:`${pe}-slide-up`},[I,y,C]),U=V(()=>y?y.includes("Center")?y.slice(0,y.indexOf("Center")):y:T==="rtl"?"bottomRight":"bottomLeft",[y,T]),ee=I("dropdown",i),re=oo(ee),[ne,oe]=R1(ee,re),[,te]=Gr(),ie=vs.only(Rw(s)?f("span",null,s):s),se=Qo(t,Zo(ie)),xe=ho(ie,{className:O(`${ee}-trigger`,{[`${ee}-rtl`]:T==="rtl"},ie.props.className),disabled:ie.props.disabled??l,ref:se}),me=l?[]:a,Ee=!!me?.includes("contextMenu"),[$e,he]=Ft(!1,h),ye=De(pe=>{b?.(pe,{source:"trigger"}),he(pe)}),He=O(m,p,ne,oe,re,N,q.root,{[`${ee}-rtl`]:T==="rtl"}),Se=ou({arrowPointAtCenter:Ut(n)&&n.pointAtCenter,autoAdjustOverflow:S,offset:te.marginXXS,arrowWidth:n?te.sizePopupArrow:0,borderRadius:te.borderRadius}),Ce=De(()=>{r?.selectable&&r?.multiple||(b?.(!1,{source:"menu"}),he(!1))}),ue=o(()=>{let pe=_t(q,["root"]),Oe=_t(X,["root"]),Ie;return r?.items&&(Ie=f(C1,{...r,classNames:{...pe,subMenu:{...pe}},styles:{...Oe,subMenu:{...Oe}}})),j&&(Ie=j(Ie)),cn(Ie)?Ie=f("span",null,Ie):Tr(Ie)||(Ie=f(rr,null,Ie)),f(m1,{prefixCls:`${ee}-menu`,rootClassName:O(oe,re),expandIcon:f("span",{className:`${ee}-menu-submenu-arrow`},T==="rtl"?f(ru,{className:`${ee}-menu-submenu-arrow-icon`}):f(al,{className:`${ee}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Ce,validator:o(({mode:ke})=>{},"validator")},Ie)},"renderOverlay"),[Pe,ve]=Un("Dropdown",W.zIndex),Ue=f(HI,{alignPoint:Ee,..._t(e,["rootClassName","onOpenChange"]),mouseEnterDelay:v,mouseLeaveDelay:x,visible:$e,builtinPlacements:Se,arrow:!!n,overlayClassName:He,prefixCls:ee,getPopupContainer:u||M,transitionName:J,trigger:me,overlay:ue,placement:U,onVisibleChange:ye,overlayStyle:{...W,zIndex:Pe},autoDestroy:$??R},xe);return Pe&&(Ue=f(oa.Provider,{value:ve},Ue)),Ue}),iF=dl(Fy,"align",void 0,"dropdown",e=>e),sF=o(e=>f(iF,{...e},f("span",null)),"WrapPurePanel");Fy._InternalPanelDoNotUseOrYouWillBeFired=sF;var Wf=Fy;function Hy(e){return["small","middle","medium","large"].includes(e)}o(Hy,"isPresetSize");function zy(e){return e?Oo(e):!1}o(zy,"isValidGapNumber");var kn=o((e,t,r)=>O({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r}),"getStatusClassNames"),Gn=o((e,t)=>t||e,"getMergedStatus");var aF=o(e=>{let{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:i,paddingXS:s,fontSizeLG:a,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:d,colorBgContainerDisabled:u,lineWidth:m,lineType:p,antCls:g}=e,[h,b]=br(g,"space-addon");return{[t]:[{...hr(e),display:"inline-flex",alignItems:"center",gap:0,whiteSpace:"nowrap",paddingInline:n,margin:0,borderWidth:m,borderStyle:p,borderRadius:r,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:a,borderRadius:c},"&-small":{paddingInline:s,borderRadius:d,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[h("addon-border-color")]:i,[h("addon-background")]:u,[h("addon-border-color-outlined")]:i,[h("addon-background-filled")]:u,borderColor:b("addon-border-color"),background:b("addon-background"),"&-variant-outlined":{[h("addon-border-color")]:b("addon-border-color-outlined")},"&-variant-filled":{[h("addon-border-color")]:"transparent",[h("addon-background")]:b("addon-background-filled"),[`&${t}-disabled`]:{[h("addon-border-color")]:i,[h("addon-background")]:u}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{[h("addon-border-color-outlined")]:e.colorError,[h("addon-background-filled")]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[h("addon-border-color-outlined")]:e.colorWarning,[h("addon-background-filled")]:e.colorWarningBg,color:e.colorWarning}}]}},"genSpaceAddonStyle"),E1=Ht("Addon",e=>[aF(e),xi(e,{focus:!1})]);var lF=_.forwardRef((e,t)=>{let{className:r,children:n,style:i,prefixCls:s,variant:a="outlined",disabled:l,status:c,...d}=e,{getPrefixCls:u,direction:m}=_.useContext(at),p=u("space-addon",s),[g,h]=E1(p),{compactItemClassnames:b,compactSize:v}=qo(p,m),x=kn(p,c),S=O(p,g,b,h,`${p}-variant-${a}`,x,{[`${p}-${v}`]:v,[`${p}-disabled`]:l},r);return _.createElement("div",{ref:t,className:S,style:i,...d},n)}),Uf=lF;var Vy=_.createContext({latestIndex:0}),$1=Vy.Provider;var cF=o(e=>{let{className:t,prefix:r,index:n,children:i,separator:s,style:a,classNames:l,styles:c}=e,{latestIndex:d}=K(Vy);return yr(i)?f(rr,null,f("div",{className:t,style:a},i),n<d&&s&&f("span",{className:O(`${r}-item-separator`,l?.separator),style:c?.separator},s)):null},"Item"),I1=cF;var dF=o(e=>{let{componentCls:t,antCls:r}=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 > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},"genSpaceStyle"),uF=o(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}}}},"genSpaceGapStyle");var P1=Ht("Space",e=>{let t=wt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[dF(t),uF(t)]},()=>({}),{resetStyle:!1});var mF=le((e,t)=>{let{getPrefixCls:r,direction:n,size:i,className:s,style:a,classNames:l,styles:c}=Mt("space"),{size:d=i??"small",align:u,className:m,rootClassName:p,children:g,direction:h,orientation:b,prefixCls:v,split:x,separator:S,style:y,vertical:C,wrap:w=!1,classNames:E,styles:R,...$}=e,[I,T]=Array.isArray(d)?d:[d,d],M=Hy(T),N=Hy(I),k=zy(T),D=zy(I),A=co(g,{keepEmpty:!0}),[B,L]=hc(b,C,h),F=u===void 0&&!L?"center":u,q=S??x,X=r("space",v),[W,j]=P1(X),Z={...e,size:d,orientation:B,align:F},J=$t(a),U=$t(y),[ee,re]=Qt([l,E],[c,J,R,U],{props:Z}),ne=O(X,s,W,`${X}-${B}`,{[`${X}-rtl`]:n==="rtl",[`${X}-align-${F}`]:F,[`${X}-gap-row-${T}`]:M,[`${X}-gap-col-${I}`]:N},m,p,j,ee.root),oe=O(`${X}-item`,ee.item),te=A.map((xe,me)=>{let Ee=xe?.key||`${oe}-${me}`;return f(I1,{prefix:X,classNames:ee,styles:re,className:oe,key:Ee,index:me,separator:q,style:re.item},xe)}),ie=V(()=>({latestIndex:A.reduce((me,Ee,$e)=>yr(Ee)?$e:me,0)}),[A]);if(A.length===0)return null;let se={};return w&&(se.flexWrap="wrap"),!N&&D&&(se.columnGap=I),!M&&k&&(se.rowGap=T),f("div",{ref:t,className:ne,style:{...se,...re.root},...$},f($1,{value:ie},te))}),jy=mF;jy.Compact=bc;jy.Addon=Uf;var qf=jy;var N1=o(e=>{let{getPopupContainer:t,getPrefixCls:r,direction:n}=K(at),{prefixCls:i,type:s="default",danger:a,disabled:l,loading:c,onClick:d,htmlType:u,children:m,className:p,menu:g,arrow:h,autoFocus:b,trigger:v,align:x,open:S,onOpenChange:y,placement:C,getPopupContainer:w,href:E,icon:R=f(Mc,null),title:$,buttonsRender:I=o(te=>te,"buttonsRender"),mouseEnterDelay:T,mouseLeaveDelay:M,overlayClassName:N,overlayStyle:k,destroyOnHidden:D,destroyPopupOnHide:A,dropdownRender:B,popupRender:L,...F}=e,q=r("dropdown",i),X=`${q}-button`,j={menu:g,arrow:h,autoFocus:b,align:x,disabled:l,trigger:l?[]:v,onOpenChange:y,getPopupContainer:w||t,mouseEnterDelay:T,mouseLeaveDelay:M,classNames:{root:N},styles:{root:k},destroyOnHidden:D,popupRender:L||B},{compactSize:Z,compactItemClassnames:J}=qo(q,n),U=O(X,J,p);"destroyPopupOnHide"in e&&(j.destroyPopupOnHide=A),"open"in e&&(j.open=S),"placement"in e?j.placement=C:j.placement=n==="rtl"?"bottomLeft":"bottomRight";let ee=f(Yd,{type:s,danger:a,disabled:l,loading:c,onClick:d,htmlType:u,href:E,title:$},m),re=f(Yd,{type:s,danger:a,icon:R}),[ne,oe]=I([ee,re]);return f(qf.Compact,{className:U,size:Z,block:!0,...F},ne,f(Wf,{...j},oe))},"DropdownButton");N1.__ANT_BUTTON=!0;var M1=N1;var T1=Wf;T1.Button=M1;var O1=T1;function Dn(e){return wt(e,{inputAffixPadding:e.paddingXXS})}o(Dn,"initInputToken");var An=o(e=>{let{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:i,lineWidthFocus:s,controlHeightSM:a,controlHeightLG:l,fontSizeLG:c,lineHeightLG:d,paddingSM:u,controlPaddingHorizontalSM:m,controlPaddingHorizontal:p,colorFillAlter:g,colorPrimaryHover:h,colorPrimary:b,controlOutlineWidth:v,controlOutline:x,colorErrorOutline:S,colorWarningOutline:y,colorBgContainer:C,inputFontSize:w,inputFontSizeLG:E,inputFontSizeSM:R}=e,$=w||r,I=R||$,T=E||c,M=Math.round((t-$*n)/2*10)/10-i,N=Math.round((a-I*n)/2*10)/10-i,k=Math.ceil((l-T*d)/2*10)/10-i;return{lineWidthFocus:s===0?0:i,paddingBlock:Math.max(M,0),paddingBlockSM:Math.max(N,0),paddingBlockLG:Math.max(k,0),paddingInline:u-i,paddingInlineSM:m-i,paddingInlineLG:p-i,addonBg:g,activeBorderColor:b,hoverBorderColor:h,activeShadow:`0 0 0 ${v}px ${x}`,errorActiveShadow:`0 0 0 ${v}px ${S}`,warningActiveShadow:`0 0 0 ${v}px ${y}`,hoverBg:C,activeBg:C,inputFontSize:$,inputFontSizeLG:T,inputFontSizeSM:I}},"initComponentToken");var pF=o(e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),"genHoverStyle"),Dc=o(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])":{...pF(wt(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),"genDisabledStyle"),Gf=o((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}}),"genBaseOutlinedStyle"),k1=o((e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...Gf(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),"genOutlinedStatusStyle"),Ac=o((e,t)=>({"&-outlined":{...Gf(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Dc(e)},...k1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...k1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),"genOutlinedStyle"),D1=o((e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),"genOutlinedGroupStatusStyle"),F1=o(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}},...D1(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...D1(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Dc(e)}}}}),"genOutlinedGroupStyle"),H1="&:focus-visible, &:has(input:focus-visible), &:has(textarea:focus-visible)",z1=o((e,t)=>({outline:`${Q(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:Q(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(r=>`${r} 0s`).join(", ")}),"genBorderlessFocusVisibleStyle"),A1=o((e,t)=>({"&, & input, & textarea":{color:t.color},[H1]:z1(e,t.color),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),"genBorderlessStatusStyle"),_c=o((e,t)=>{let{componentCls:r}=e;return{"&-borderless":{background:"transparent",border:"none",paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${r}-sm, &${r}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${r}-lg, &${r}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:"none"},[H1]:z1(e,e.activeBorderColor),[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:A1(e,{color:e.colorError,affixColor:e.colorErrorAffix}),[`&${r}-status-warning`]:A1(e,{color:e.colorWarning,affixColor:e.colorWarningAffix}),...t}}},"genBorderlessStyle"),V1=o((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}}),"genBaseFilledStyle"),_1=o((e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...V1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),"genFilledStatusStyle"),Lc=o((e,t)=>({"&-filled":{...V1(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Dc(e)},..._1(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorErrorAffix}),..._1(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarningAffix}),...t}}),"genFilledStyle"),L1=o((e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),"genFilledGroupStatusStyle"),j1=o(e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...L1(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...L1(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}`}}}}}),"genFilledGroupStyle"),W1=o((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}}),"genBaseUnderlinedStyle"),B1=o((e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...W1(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`}}),"genUnderlinedStatusStyle"),Bc=o((e,t)=>({"&-underlined":{...W1(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"},...B1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorErrorAffix}),...B1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarningAffix}),...t}}),"genUnderlinedStyle");var gu=o(e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),"genPlaceholderStyle");var Xf=o(e=>{let{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:i}=e;return{padding:`${Q(t)} ${Q(i)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},"genInputLargeStyle"),Yf=o(e=>({padding:`${Q(e.paddingBlockSM)} ${Q(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),"genInputSmallStyle"),Fc=o((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}`,...gu(e.colorTextPlaceholder),"&-lg":{...Xf(e),...t.largeStyle},"&-sm":{...Yf(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),"genBasicInputStyle"),fF=o(e=>{let{componentCls:t,antCls:r}=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`]:{...Xf(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...Yf(e)},[`&-lg ${r}-select-single`]:{height:e.controlHeightLG},[`&-sm ${r}-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,[`${r}-select`]:{margin:`${Q(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${Q(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${r}-cascader-picker`]:{margin:`-9px ${Q(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-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,[`${r}-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,[`${r}-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",...il(),[`${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},[`
203
- & > ${t}-affix-wrapper,
204
- & > ${t}-number-affix-wrapper,
205
- & > ${r}-picker-range
206
- `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select,
207
- & > ${r}-select-auto-complete ${t},
208
- & > ${r}-cascader-picker ${t},
209
- & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
210
- & > ${r}-select:first-child,
211
- & > ${r}-select-auto-complete:first-child ${t},
212
- & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
213
- & > ${r}-select:last-child,
214
- & > ${r}-cascader-picker:last-child ${t},
215
- & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{}}}}},"genInputGroupStyle"),gF=o(e=>{let{componentCls:t,controlHeightSM:r,lineWidth:n,calc:i}=e,a=i(r).sub(i(n).mul(2)).sub(16).div(2).equal();return{[t]:{...hr(e),...Fc(e),...Ac(e),...Lc(e),..._c(e),...Bc(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},"genInputStyle"),hF=o(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,...wn(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Q(e.inputAffixPadding)}`}}}},"genAllowClearStyle"),bF=o(e=>{let{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:s,colorIconHover:a}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:{...Fc(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:r},"&-suffix":{marginInlineStart:r},"&-password-icon":{display:"inline-flex",color:s,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}},...hF(e)},[`${t}-underlined`]:{borderRadius:0},[c]:{[`${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},"genAffixStyle"),vF=o(e=>{let{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:{...hr(e),...fF(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}},...F1(e),...j1(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}}}}}},"genGroupStyle"),yF=o(e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},"genRangeStyle"),Kf=Ht(["Input","Shared"],e=>{let t=wt(e,Dn(e));return[gF(t),bF(t)]},An,{resetFont:!1}),Qf=Ht(["Input","Component"],e=>{let t=wt(e,Dn(e));return[vF(t),yF(t),xi(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},An,{resetFont:!1});var xF=o(e=>{let{getPrefixCls:t,direction:r}=K(at),{prefixCls:n,className:i}=e,s=t("input-group",n),a=t("input"),[l,c]=Qf(a),d=O(s,c,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:r==="rtl"},l,i),u=K(Ao),m=V(()=>({...u,isFormItemInput:!1}),[u]);return f(Ao.Provider,{value:m},f(qf.Compact,{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},"Group"),U1=xF;function G1(e){return!!(e.addonBefore||e.addonAfter)}o(G1,"hasAddon");function X1(e){return!!(e.prefix||e.suffix||e.allowClear)}o(X1,"hasPrefixSuffix");function q1(e,t,r){let n=t.cloneNode(!0),i=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=(...s)=>{t.setSelectionRange(...s)},i}o(q1,"cloneEvent");function Hc(e,t,r,n){if(!r)return;let i=t;if(t.type==="click"){i=q1(t,e,""),r(i);return}if(e.type!=="file"&&n!==void 0){i=q1(t,e,n),r(i);return}r(i)}o(Hc,"resolveOnChange");function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wy.apply(this,arguments)}o(Wy,"_extends");var SF=_.forwardRef((e,t)=>{let{inputElement:r,children:n,prefixCls:i,prefix:s,suffix:a,addonBefore:l,addonAfter:c,className:d,style:u,disabled:m,readOnly:p,focused:g,triggerFocus:h,allowClear:b,value:v,handleReset:x,hidden:S,classes:y,classNames:C,dataAttrs:w,styles:E,components:R,onClear:$}=e,I=n??r,T=R?.affixWrapper||"span",M=R?.groupWrapper||"span",N=R?.wrapper||"span",k=R?.groupAddon||"span",D=H(null),A=o(q=>{D.current?.contains(q.target)&&h?.()},"onInputClick"),B=X1(e),L=so(I,{value:v,className:O(I.props?.className,!B&&C?.variant)||null}),F=H(null);if(_.useImperativeHandle(t,()=>({nativeElement:F.current||D.current})),B){let q=null;if(b){let Z=!m&&!p&&v&&!(typeof b=="object"&&b.disabled),J=`${i}-clear-icon`,U=typeof b=="object"&&b?.clearIcon?b.clearIcon:"\u2716";q=_.createElement("button",{type:"button",onClick:o(ee=>{x?.(ee),$?.()},"onClick"),onMouseDown:o(ee=>ee.preventDefault(),"onMouseDown"),className:O(J,{[`${J}-hidden`]:!Z,[`${J}-has-suffix`]:!!a},C?.clear),style:E?.clear},U)}let X=`${i}-affix-wrapper`,W=O(X,{[`${i}-disabled`]:m,[`${X}-disabled`]:m,[`${X}-focused`]:g,[`${X}-readonly`]:p,[`${X}-input-with-clear-btn`]:a&&b&&v},y?.affixWrapper,C?.affixWrapper,C?.variant),j=(a||b)&&_.createElement("span",{className:O(`${i}-suffix`,C?.suffix),style:E?.suffix},q,a);L=_.createElement(T,Wy({className:W,style:E?.affixWrapper,onClick:A},w?.affixWrapper,{ref:D}),s&&_.createElement("span",{className:O(`${i}-prefix`,C?.prefix),style:E?.prefix},s),L,j)}if(G1(e)){let q=`${i}-group`,X=`${q}-addon`,W=`${q}-wrapper`,j=O(`${i}-wrapper`,q,y?.wrapper,C?.wrapper),Z=O(W,{[`${W}-disabled`]:m},y?.group,C?.groupWrapper);L=_.createElement(M,{className:Z,ref:F},_.createElement(N,{className:j},l&&_.createElement(k,{className:X},l),L,c&&_.createElement(k,{className:X},c)))}return _.cloneElement(L,{className:O(L.props?.className,d)||null,style:{...L.props?.style,...u},hidden:S})}),hu=SF;function bu(e,t){return V(()=>{let r={};t&&(r.show=typeof t=="object"&&t.formatter?t.formatter:!!t),r={...r,...e};let{show:n,...i}=r;return{...i,show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:i.strategy||(s=>s.length)}},[e,t])}o(bu,"useCount");function vu({countConfig:e,value:t,maxLength:r}){return V(()=>{let n=e.max??r,i=e.strategy(t),s=!!n&&i>n,a=Number(n)>0,l=e.show?e.showFormatter?e.showFormatter({value:t,count:i,maxLength:n}):`${i}${a?` / ${n}`:""}`:void 0;return{mergedMax:n,isOutOfRange:s,dataCount:l}},[e,r,t])}o(vu,"useCountDisplay");function yu({countConfig:e,getTarget:t}){let[r,n]=ce(null),i=H(t);return fe(()=>{i.current=t},[t]),fe(()=>{r&&(i.current()?.setSelectionRange(...r),n(null))},[r]),At((a,l)=>{let c=a;return!l&&e.exceedFormatter&&e.max&&e.strategy(a)>e.max&&(c=e.exceedFormatter(a,{max:e.max}),a!==c&&n([i.current()?.selectionStart||0,i.current()?.selectionEnd||0])),c},[e])}o(yu,"useCountExceed");function xu(e,t){let[r,n]=Ft(e,t),i=r==null?"":String(r);return{value:r,setValue:n,formatValue:i}}o(xu,"useMergedValue");function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zf.apply(this,arguments)}o(Zf,"_extends");var CF=le((e,t)=>{let{autoComplete:r,onChange:n,onFocus:i,onBlur:s,onPressEnter:a,onKeyDown:l,onKeyUp:c,prefixCls:d="rc-input",disabled:u,htmlSize:m,className:p,maxLength:g,suffix:h,showCount:b,count:v,type:x="text",classes:S,classNames:y,styles:C,onCompositionStart:w,onCompositionEnd:E,...R}=e,[$,I]=ce(!1),T=H(!1),M=H(!1),N=H(null),k=H(null),D=o(se=>{N.current&&Ws(N.current,se)},"focus"),{setValue:A,formatValue:B}=xu(e.defaultValue,e.value),L=bu(v,b),{isOutOfRange:F,dataCount:q}=vu({countConfig:L,value:B,maxLength:g}),X=yu({countConfig:L,getTarget:o(()=>N.current,"getTarget")});ft(t,()=>({focus:D,blur:o(()=>{N.current?.blur()},"blur"),setSelectionRange:o((se,xe,me)=>{N.current?.setSelectionRange(se,xe,me)},"setSelectionRange"),select:o(()=>{N.current?.select()},"select"),input:N.current,nativeElement:k.current?.nativeElement||N.current})),fe(()=>{M.current&&(M.current=!1),I(se=>se&&u?!1:se)},[u]);let W=o((se,xe,me)=>{let Ee=X(xe,T.current);me.source==="compositionEnd"&&xe===Ee||(A(Ee),N.current&&Hc(N.current,se,n,Ee))},"triggerChange"),j=o(se=>{W(se,se.target.value,{source:"change"})},"onInternalChange"),Z=o(se=>{T.current=!1,W(se,se.currentTarget.value,{source:"compositionEnd"}),E?.(se)},"onInternalCompositionEnd"),J=o(se=>{a&&se.key==="Enter"&&!M.current&&!se.nativeEvent.isComposing&&(M.current=!0,a(se)),l?.(se)},"handleKeyDown"),U=o(se=>{se.key==="Enter"&&(M.current=!1),c?.(se)},"handleKeyUp"),ee=o(se=>{I(!0),i?.(se)},"handleFocus"),re=o(se=>{M.current&&(M.current=!1),I(!1),s?.(se)},"handleBlur"),ne=o(se=>{A(""),D(),N.current&&Hc(N.current,se,n)},"handleReset"),oe=F&&`${d}-out-of-range`,te=o(()=>{let se=_t(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return _.createElement("input",Zf({autoComplete:r},se,{onChange:j,onFocus:ee,onBlur:re,onKeyDown:J,onKeyUp:U,className:O(d,{[`${d}-disabled`]:u},y?.input),style:C?.input,ref:N,size:m,type:x,onCompositionStart:o(xe=>{T.current=!0,w?.(xe)},"onCompositionStart"),onCompositionEnd:Z}))},"getInputElement"),ie=o(()=>h||L.show?_.createElement(_.Fragment,null,L.show&&_.createElement("span",{className:O(`${d}-show-count-suffix`,{[`${d}-show-count-has-suffix`]:!!h},y?.count),style:{...C?.count}},q),h):null,"getSuffix");return _.createElement(hu,Zf({},R,{prefixCls:d,className:O(p,oe),handleReset:ne,value:B,focused:$,triggerFocus:D,suffix:ie(),disabled:u,classes:S,classNames:y,styles:C,ref:k}),te())}),Y1=CF;var wF=`
216
- min-height:0 !important;
217
- max-height:none !important;
218
- height:0 !important;
219
- visibility:hidden !important;
220
- overflow:hidden !important;
221
- position:absolute !important;
222
- z-index:-1000 !important;
223
- top:0 !important;
224
- right:0 !important;
225
- pointer-events: none !important;
226
- `,RF=["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"],Uy={},oi;function EF(e,t=!1){let r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Uy[r])return Uy[r];let n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),s=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),c={sizingStyle:RF.map(d=>`${d}:${n.getPropertyValue(d)}`).join(";"),paddingSize:s,borderSize:a,boxSizing:i};return t&&r&&(Uy[r]=c),c}o(EF,"calculateNodeStyling");function qy(e,t=!1,r=null,n=null){oi||(oi=document.createElement("textarea"),oi.setAttribute("tab-index","-1"),oi.setAttribute("aria-hidden","true"),oi.setAttribute("name","hiddenTextarea"),document.body.appendChild(oi)),e.getAttribute("wrap")?oi.setAttribute("wrap",e.getAttribute("wrap")):oi.removeAttribute("wrap");let{paddingSize:i,borderSize:s,boxSizing:a,sizingStyle:l}=EF(e,t);oi.setAttribute("style",`${l};${wF}`),oi.value=e.value||e.placeholder||"";let c,d,u,m=oi.scrollHeight;if(a==="border-box"?m+=s:a==="content-box"&&(m-=i),r!==null||n!==null){oi.value=" ";let g=oi.scrollHeight-i;r!==null&&(c=g*r,a==="border-box"&&(c=c+i+s),m=Math.max(c,m)),n!==null&&(d=g*n,a==="border-box"&&(d=d+i+s),u=m>d?void 0:"hidden",m=Math.min(d,m))}let p={height:m,overflowY:u,resize:"none"};return c&&(p.minHeight=c),d&&(p.maxHeight=d),p}o(qy,"calculateAutoSizeStyle");function Ky(){return Ky=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ky.apply(this,arguments)}o(Ky,"_extends");var Gy=0,Xy=1,Yy=2,$F=le((e,t)=>{let{prefixCls:r,defaultValue:n,value:i,autoSize:s,onResize:a,className:l,style:c,disabled:d,onChange:u,onInternalAutoSize:m,...p}=e,[g,h]=Ft(n,i),b=g??"",v=o(A=>{h(A.target.value),u?.(A)},"onInternalChange"),x=H(null);ft(t,()=>({textArea:x.current}));let[S,y]=V(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),C=!!s,[w,E]=ce(Yy),[R,$]=ce(),I=o(()=>{E(Gy)},"startResize");Pt(()=>{C&&I()},[i,S,y,C]),Pt(()=>{if(w===Gy)E(Xy);else if(w===Xy){let A=qy(x.current,!1,S,y);E(Yy),$(A)}},[w]);let T=H(void 0),M=o(()=>{T.current!==void 0&&St.cancel(T.current)},"cleanRaf"),N=o(A=>{w===Yy&&(a?.(A),s&&(M(),T.current=St(()=>{I()})))},"onInternalResize");fe(()=>M,[]);let D={...c,...C?R:null};return(w===Gy||w===Xy)&&(D.overflowY="hidden",D.overflowX="hidden"),f(Cn,{onResize:N,disabled:!(s||a)},f("textarea",Ky({},p,{ref:x,style:D,className:O(r,l,{[`${r}-disabled`]:d}),disabled:d,value:b,onChange:v})))}),Qy=$F;function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}o(Zy,"_extends");var IF=_.forwardRef(({defaultValue:e,value:t,onFocus:r,onBlur:n,onChange:i,allowClear:s,maxLength:a,onCompositionStart:l,onCompositionEnd:c,suffix:d,prefixCls:u="rc-textarea",showCount:m,count:p,className:g,style:h,disabled:b,hidden:v,classNames:x,styles:S,onResize:y,onClear:C,onPressEnter:w,readOnly:E,autoSize:R,onKeyDown:$,...I},T)=>{let[M,N]=_.useState(!1),k=_.useRef(!1),[D,A]=_.useState(null),B=H(null),L=H(null),F=o(()=>L.current?.textArea||null,"getTextArea"),{setValue:q,formatValue:X}=xu(e,t),W=bu(p,m),{isOutOfRange:j,dataCount:Z}=vu({countConfig:W,value:X,maxLength:a}),J=yu({countConfig:W,getTarget:o(()=>L.current?.textArea||null,"getTarget")}),U=o(()=>{F()?.focus()},"focus");ft(T,()=>({resizableTextArea:L.current,focus:U,blur:o(()=>{F()?.blur()},"blur"),nativeElement:B.current?.nativeElement||F()})),fe(()=>{N(he=>!b&&he)},[b]);let ee=o((he,ye)=>{let He=J(ye,k.current);q(He),Hc(he.currentTarget,he,i,He)},"triggerChange"),re=o(he=>{k.current=!0,l?.(he)},"onInternalCompositionStart"),ne=o(he=>{k.current=!1,ee(he,he.currentTarget.value),c?.(he)},"onInternalCompositionEnd"),oe=o(he=>{ee(he,he.target.value)},"onInternalChange"),te=o(he=>{he.key==="Enter"&&w&&!he.nativeEvent.isComposing&&w(he),$?.(he)},"handleKeyDown"),ie=o(he=>{N(!0),r?.(he)},"handleFocus"),se=o(he=>{N(!1),n?.(he)},"handleBlur"),xe=o(he=>{q(""),U();let ye=F();ye&&Hc(ye,he,i)},"handleReset"),me=d;W.show&&(me=_.createElement(_.Fragment,null,me,_.createElement("span",{className:O(`${u}-data-count`,x?.count),style:S?.count},Z)));let Ee=o(he=>{y?.(he),F()?.style.height&&A(!0)},"handleResize"),$e=!R&&!m&&!s;return _.createElement(hu,{ref:B,value:X,allowClear:s,handleReset:xe,suffix:me,prefixCls:u,classNames:{...x,affixWrapper:O(x?.affixWrapper,{[`${u}-show-count`]:m,[`${u}-textarea-allow-clear`]:s})},disabled:b,focused:M,className:O(g,j&&`${u}-out-of-range`),style:{...h,...D&&!$e?{height:"auto"}:{}},dataAttrs:typeof Z=="string"?{affixWrapper:{"data-count":Z}}:void 0,styles:S,hidden:v,readOnly:E,onClear:C},_.createElement(Qy,Zy({},I,{autoSize:R,maxLength:a,onKeyDown:te,onChange:oe,onFocus:ie,onBlur:se,onCompositionStart:re,onCompositionEnd:ne,className:O(x?.textarea),style:{resize:h?.resize,...S?.textarea},disabled:b,prefixCls:u,onResize:Ee,ref:L,readOnly:E})))}),Jy=IF;var K1=Y1;var PF=o((e,t,r,n)=>{let i=K(at),{variant:s,[e]:a}=i,l=K(kI),c=n?i[n]:void 0,d=a?.variant??c?.variant,u=typeof t<"u"||r===!1||typeof l<"u"||typeof d<"u"||typeof s<"u",m;typeof t<"u"?m=t:r===!1?m="borderless":m=l??d??s??"outlined";let p=tv.includes(m);return[m,p,u]},"useVariant"),jo=PF;function Su(e,t){let r=H([]),n=o(()=>{r.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))},"removePasswordTimeout");return fe(()=>(t&&n(),()=>r.current.forEach(i=>{i&&clearTimeout(i)})),[t]),n}o(Su,"useRemovePasswordTimeout");function Q1(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}o(Q1,"hasPrefixSuffix");var NF=le((e,t)=>{let{prefixCls:r,bordered:n=!0,status:i,size:s,disabled:a,onBlur:l,onFocus:c,suffix:d,allowClear:u,addonAfter:m,addonBefore:p,className:g,style:h,styles:b,rootClassName:v,onChange:x,classNames:S,variant:y,...C}=e,{getPrefixCls:w,direction:E,allowClear:R,autoComplete:$,className:I,style:T,classNames:M,styles:N}=Mt("input"),k=w("input",r),D=H(null),A=oo(k),[B,L]=Kf(k,v);Qf(k,A);let{compactSize:F,compactItemClassnames:q}=qo(k,E),X=Rr(ue=>s??F??ue),W=_.useContext(Fo),j=a??W,Z={...e,size:X,disabled:j},J=$t(T),U=$t(h),[ee,re]=Qt([M,S],[N,J,b,U],{props:Z}),{status:ne,hasFeedback:oe,feedbackIcon:te}=K(Ao),ie=Gn(ne,i),se=Q1(e)||!!oe,xe=H(se),me=Su(D,!0),Ee=o(ue=>{me(),l?.(ue)},"handleBlur"),$e=o(ue=>{me(),c?.(ue)},"handleFocus"),he=o(ue=>{me(),x?.(ue)},"handleChange"),ye=(oe||d)&&_.createElement(_.Fragment,null,d,oe&&te),He=ra({allowClear:u,contextAllowClear:R,componentName:"Input"}),[Se,Ce]=jo("input",y,n);return _.createElement(K1,{ref:qr(t,D),prefixCls:k,autoComplete:$,...C,disabled:j,onBlur:Ee,onFocus:$e,style:re.root,styles:re,suffix:ye,allowClear:He,className:O(g,v,L,A,q,I,ee.root),onChange:he,addonBefore:p&&_.createElement(hn,{form:!0,space:!0},p),addonAfter:m&&_.createElement(hn,{form:!0,space:!0},m),classNames:{...ee,input:O({[`${k}-sm`]:X==="small",[`${k}-lg`]:X==="large",[`${k}-rtl`]:E==="rtl"},ee.input,B),variant:O({[`${k}-${Se}`]:Ce},kn(k,ie)),affixWrapper:O({[`${k}-affix-wrapper-sm`]:X==="small",[`${k}-affix-wrapper-lg`]:X==="large",[`${k}-affix-wrapper-rtl`]:E==="rtl"},B),wrapper:O({[`${k}-group-rtl`]:E==="rtl"},B),groupWrapper:O({[`${k}-group-wrapper-sm`]:X==="small",[`${k}-group-wrapper-lg`]:X==="large",[`${k}-group-wrapper-rtl`]:E==="rtl",[`${k}-group-wrapper-${Se}`]:Ce},kn(`${k}-group-wrapper`,ie,oe),B)}})}),ha=NF;var MF=o(e=>{let{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${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}}}},"genOTPStyle"),Z1=Ht(["Input","OTP"],e=>{let t=wt(e,Dn(e));return MF(t)},An);var TF="\u2022",OF=le((e,t)=>{let{className:r,value:n,onChange:i,onActiveChange:s,index:a,mask:l,onFocus:c,type:d,...u}=e,{getPrefixCls:m}=K(at),p=m("otp"),g=typeof l=="string"?l:TF,h=H(null);ft(t,()=>h.current);let b=o(y=>{i(a,y.target.value)},"onInternalChange"),v=o(()=>{St(()=>{let y=h.current?.input;document.activeElement===y&&y&&y.select()})},"syncSelection"),x=o(y=>{c?.(y),v()},"onInternalFocus"),S=o(y=>{let{key:C,ctrlKey:w,metaKey:E}=y;C==="ArrowLeft"?s(a-1):C==="ArrowRight"?s(a+1):C==="z"&&(w||E)?y.preventDefault():C==="Backspace"&&!n&&s(a-1),v()},"onInternalKeyDown");return f("span",{className:`${p}-input-wrapper`,role:"presentation"},l&&n!==""&&n!==void 0&&f("span",{className:`${p}-mask-icon`,"aria-hidden":"true"},g),f(ha,{"aria-label":`OTP Input ${a+1}`,...u,type:d??(l?"password":"text"),ref:h,value:n,onInput:b,onFocus:x,onKeyDown:S,onMouseDown:v,onMouseUp:v,className:O(r,{[`${p}-mask-input`]:l})}))}),J1=OF;function Jf(e){return(e||"").split("")}o(Jf,"strToArr");var kF=o(e=>{let{index:t,prefixCls:r,separator:n,className:i,style:s}=e,a=er(n)?n(t):n;return a?f("span",{className:O(`${r}-separator`,i),style:s},a):null},"Separator"),DF=le((e,t)=>{let{prefixCls:r,length:n=6,size:i,defaultValue:s,value:a,onChange:l,formatter:c,separator:d,variant:u,disabled:m,status:p,autoFocus:g,mask:h,type:b,autoComplete:v,onInput:x,onFocus:S,inputMode:y,classNames:C,styles:w,className:E,style:R,...$}=e,{classNames:I,styles:T,getPrefixCls:M,direction:N,style:k,className:D}=Mt("otp"),A=M("otp",r),[B]=jo("otp",u,void 0,"input"),L={...e,length:n,variant:B},F=$t(k),q=$t(R),[X,W]=Qt([I,C],[T,F,w,q],{props:L}),j=Zr($,{aria:!0,data:!0,attr:!0}),[Z,J]=Z1(A),U=Rr(Se=>i??Se),ee=K(Ao),re=Gn(ee.status,p),ne=V(()=>({...ee,status:re,hasFeedback:!1,feedbackIcon:null}),[ee,re]),oe=H(null),te=H({});ft(t,()=>({focus:o(()=>{te.current[0]?.focus()},"focus"),blur:o(()=>{for(let Se=0;Se<n;Se+=1)te.current[Se]?.blur()},"blur"),nativeElement:oe.current}));let ie=o(Se=>c?c(Se):Se,"internalFormatter"),[se,xe]=ce(()=>Jf(ie(s||"")));fe(()=>{a!==void 0&&xe(Jf(a))},[a]);let me=De(Se=>{xe(Se),x&&x(Se),l&&Se.length===n&&Se.every(Ce=>Ce)&&Se.some((Ce,ue)=>se[ue]!==Ce)&&l(Se.join(""))}),Ee=De((Se,Ce)=>{let ue=to(se);for(let ve=0;ve<Se;ve+=1)ue[ve]||(ue[ve]="");Ce.length<=1?ue[Se]=Ce:ue=ue.slice(0,Se).concat(Jf(Ce)),ue=ue.slice(0,n);for(let ve=ue.length-1;ve>=0&&!ue[ve];ve-=1)ue.pop();let Pe=ie(ue.map(ve=>ve||" ").join(""));return ue=Jf(Pe).map((ve,Ue)=>ve===" "&&!ue[Ue]?ue[Ue]:ve),ue}),$e=o((Se,Ce)=>{let ue=Ee(Se,Ce),Pe=Math.min(Se+Ce.length,n-1);Pe!==Se&&ue[Se]!==void 0&&te.current[Pe]?.focus(),me(ue)},"onInputChange"),he=o(Se=>{te.current[Se]?.focus()},"onInputActiveChange"),ye=o((Se,Ce)=>{for(let ue=0;ue<Ce;ue+=1)if(!te.current[ue]?.input?.value){te.current[ue]?.focus();break}S?.(Se)},"onInputFocus"),He={variant:B,disabled:m,status:re,mask:h,type:b,inputMode:y,autoComplete:v};return f("div",{...j,ref:oe,className:O(E,A,{[`${A}-sm`]:U==="small",[`${A}-lg`]:U==="large",[`${A}-rtl`]:N==="rtl"},J,Z,D,X.root),style:W.root,role:"group"},f(Ao.Provider,{value:ne},Array.from({length:n}).map((Se,Ce)=>{let ue=`otp-${Ce}`,Pe=se[Ce]||"";return f(rr,{key:ue},f(J1,{ref:o(ve=>{te.current[Ce]=ve},"ref"),index:Ce,size:U,htmlSize:1,className:O(X.input,`${A}-input`),style:W.input,onChange:$e,value:Pe,onActiveChange:he,autoFocus:Ce===0&&g,onFocus:o(ve=>ye(ve,Ce),"onFocus"),...He}),Ce<n-1&&f(kF,{separator:d,index:Ce,prefixCls:A,className:O(X.separator),style:W.separator}))})))}),eP=DF;var AF={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"},tP=AF;function ex(){return ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ex.apply(this,arguments)}o(ex,"_extends");var _F=o((e,t)=>f(sr,ex({},e,{ref:t,icon:tP})),"EyeInvisibleOutlined"),LF=le(_F),rP=LF;var BF={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"},oP=BF;function tx(){return tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tx.apply(this,arguments)}o(tx,"_extends");var FF=o((e,t)=>f(sr,tx({},e,{ref:t,icon:oP})),"EyeOutlined"),HF=le(FF),nP=HF;var zF=o(e=>e?f(nP,null):f(rP,null),"defaultIconRender"),VF={click:"onClick",hover:"onMouseOver"},jF=le((e,t)=>{let{disabled:r,action:n="click",visibilityToggle:i=!0,iconRender:s,prefixCls:a,inputPrefixCls:l,suffix:c,className:d,style:u,classNames:m,styles:p,variant:g,...h}=e,{getPrefixCls:b,className:v,style:x,classNames:S,styles:y,iconRender:C}=Mt("inputPassword"),[w]=jo("inputPassword",g,e.bordered,"input"),[E]=Do("global"),R=K(Fo),$=r??R,I={...e,disabled:$,variant:w},T=$t(x),M=$t(u),[N,k]=Qt([S,m],[y,T,p,M],{props:I}),D=Ut(i)&&i.visible!==void 0,[A,B]=ce(()=>D?i.visible:!1),L=H(null);fe(()=>{D&&B(i.visible)},[D,i]);let F=Su(L),q=o(()=>{if($)return;A&&F();let ee=!A;D||B(ee),Ut(i)&&i.onVisibleChange?.(ee)},"onVisibleChange"),X=o(ee=>{let re=VF[n]||"",oe=(s||C||zF)(A),te=Ut(i)?i.tabIndex:void 0;return f("span",{key:"passwordIcon",role:"button",tabIndex:$?-1:te??0,className:`${ee}-icon`,"aria-disabled":$,"aria-pressed":A,"aria-label":A?E.hide:E.show,onMouseDown:o(ie=>{ie.preventDefault()},"onMouseDown"),onMouseUp:o(ie=>{ie.preventDefault()},"onMouseUp"),onKeyDown:o(ie=>{(ie.key==="Enter"||ie.key===" ")&&(ie.preventDefault(),ie.repeat||q())},"onKeyDown"),[re]:q},oe)},"getIcon"),W=b("input",l),j=b("input-password",a),Z=i&&X(j),J=O(j,v,d,{[`${j}-${e.size}`]:!!e.size}),U={...h,type:A?"text":"password",prefixCls:W,suffix:f(rr,null,Z,c),disabled:$,className:J,classNames:N,styles:k,variant:w};return f(ha,{ref:qr(t,L),...U})}),iP=jF;var WF={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"},sP=WF;function rx(){return rx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rx.apply(this,arguments)}o(rx,"_extends");var UF=o((e,t)=>f(sr,rx({},e,{ref:t,icon:sP})),"SearchOutlined"),qF=le(UF),eg=qF;var GF=o(e=>{let{componentCls:t,antCls:r,calc:n,max:i}=e,s=`${t}-btn`,[a,l]=br(r,"input-search"),c=e.inputFontSizeSM??e.fontSize,d=i(e.controlHeightSM,n(c).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[a("btn-height")]:Q(e.controlHeight),width:"100%",[s]:{height:l("btn-height"),"&:focus-visible":{zIndex:5},[`&${r}-btn-icon-only`]:{width:l("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[a("btn-height")]:Q(e.controlHeightLG)},[`&${t}-small`]:{[a("btn-height")]:Q(e.controlHeightSM)},[`&${t}-small ${s}`]:{minHeight:d,[`&${e.antCls}-btn-icon-only`]:{minWidth:d}}}}},"genSearchStyle"),aP=Ht(["Input","Search"],e=>{let t=wt(e,Dn(e));return GF(t)},An);var XF=le((e,t)=>{let{prefixCls:r,inputPrefixCls:n,className:i,size:s,style:a,enterButton:l=!1,searchIcon:c,addonAfter:d,loading:u,disabled:m,onSearch:p,onChange:g,onCompositionStart:h,onCompositionEnd:b,variant:v,onPressEnter:x,classNames:S,styles:y,hidden:C,...w}=e,{direction:E,getPrefixCls:R,className:$,style:I,classNames:T,styles:M,searchIcon:N}=Mt("inputSearch"),k=K(Fo),D=m??k,[A,,B]=jo("inputSearch",v,e.bordered),L=B?A:void 0,[F]=jo("inputSearch",v,e.bordered,"input"),q={...e,enterButton:l,variant:L},X=$t(I),W=$t(a),[j,Z]=Qt([T,S],[M,X,y,W],{props:q},{button:{_default:"root"}}),J=H(!1),U=R("input-search",r),ee=R("input",n),[re,ne]=aP(U),{compactSize:oe}=qo(U,E),te=Rr(Oe=>s??oe??Oe),ie=H(null),se=o(Oe=>{Oe?.target&&Oe.type==="click"&&p&&p(Oe.target.value,Oe,{source:"clear"}),g?.(Oe)},"onChange"),xe=o(Oe=>{document.activeElement===ie.current?.input&&Oe.preventDefault()},"onMouseDown"),me=o(Oe=>{p&&p(ie.current?.input?.value,Oe,{source:"input"})},"onSearch"),Ee=o(Oe=>{J.current||u||(x?.(Oe),me(Oe))},"onPressEnter"),$e=typeof l=="boolean"?yo(c,N,f(eg,null)):null,he=`${U}-btn`,ye=O(he,{[`${he}-${L}`]:L}),He,Se=l||{},Ce=Se.type&&Se.type.__ANT_BUTTON===!0;if(Ce||Se.type==="button"){let Oe=Se.props;He=ho(Se,{disabled:D||Oe.disabled||!Ce&&u,onMouseDown:o(Ie=>{Oe.onMouseDown?.(Ie),xe(Ie)},"onMouseDown"),onClick:o(Ie=>{Se?.props?.onClick?.(Ie),me(Ie)},"onClick"),key:"enterButton",...Ce?{className:O(ye,Oe.className),loading:u||Oe.loading,size:te}:{}})}else He=f(Si,{classNames:j.button,styles:Z.button,className:ye,color:l?"primary":"default",size:te,disabled:m,key:"enterButton",onMouseDown:xe,onClick:me,loading:u,icon:$e,variant:L==="borderless"||L==="filled"||L==="underlined"?"text":l?"solid":void 0},l);d&&(He=[He,ho(d,{key:"addonAfter"})]);let ue=O(U,ne,{[`${U}-rtl`]:E==="rtl",[`${U}-${te}`]:!!te,[`${U}-with-button`]:!!l},i,$,re,j.root),Pe=o(Oe=>{J.current=!0,h?.(Oe)},"handleOnCompositionStart"),ve=o(Oe=>{J.current=!1,b?.(Oe)},"handleOnCompositionEnd"),Ue=Zr(w,{data:!0}),pe=_t({...w,classNames:_t(j,["button","root"]),styles:_t(Z,["button","root"]),prefixCls:ee,type:"search",size:te,variant:F,onPressEnter:Ee,onCompositionStart:Pe,onCompositionEnd:ve,onChange:se,disabled:m},Object.keys(Ue));return f(bc,{className:ue,style:Z.root,...Ue,hidden:C},f(ha,{ref:qr(ie,t),...pe}),He)}),lP=XF;var YF=o(e=>{let{componentCls:t,paddingLG:r}=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"}},[`
227
- &-allow-clear > ${t},
228
- &-affix-wrapper${n}-has-feedback ${t}
229
- `]:{paddingInlineEnd:r},[`&-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}}}}}},"genTextAreaStyle"),cP=Ht(["Input","TextArea"],e=>{let t=wt(e,Dn(e));return YF(t)},An,{resetFont:!1});var KF=le((e,t)=>{let{prefixCls:r,bordered:n=!0,size:i,disabled:s,status:a,allowClear:l,classNames:c,rootClassName:d,className:u,style:m,styles:p,variant:g,showCount:h,onMouseDown:b,onResize:v,...x}=e,{getPrefixCls:S,direction:y,allowClear:C,autoComplete:w,className:E,style:R,classNames:$,styles:I}=Mt("textArea"),T=K(Fo),M=s??T,{status:N,hasFeedback:k,feedbackIcon:D}=K(Ao),A=Gn(N,a),B=$t(R),L=$t(m),[F,q]=Qt([$,c],[I,B,p,L],{props:e}),X=H(null);ft(t,()=>({resizableTextArea:X.current?.resizableTextArea,focus:o(he=>{Ws(X.current?.resizableTextArea?.textArea,he)},"focus"),blur:o(()=>X.current?.blur(),"blur"),nativeElement:X.current?.nativeElement||null}));let W=S("input",r),j=oo(W),[Z,J]=Kf(W,d);cP(W,j);let{compactSize:U,compactItemClassnames:ee}=qo(W,y),re=Rr(he=>i??U??he),[ne,oe]=jo("textArea",g,n),te=ra({allowClear:l,contextAllowClear:C,componentName:"TextArea"}),[ie,se]=ce(!1),[xe,me]=ce(!1),Ee=o(he=>{se(!0),b?.(he);let ye=o(()=>{se(!1),document.removeEventListener("mouseup",ye)},"onMouseUp");document.addEventListener("mouseup",ye)},"onInternalMouseDown"),$e=o(he=>{if(v?.(he),ie&&er(getComputedStyle)){let ye=X.current?.nativeElement?.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&me(!0)}},"onInternalResize");return f(Jy,{autoComplete:w,...x,style:q.root,styles:q,disabled:M,allowClear:te,className:O(J,j,u,d,ee,E,F.root,{[`${W}-textarea-affix-wrapper-resize-dirty`]:xe}),classNames:{...F,textarea:O({[`${W}-sm`]:re==="small",[`${W}-lg`]:re==="large"},Z,F.textarea,ie&&`${W}-mouse-active`),variant:O({[`${W}-${ne}`]:oe},kn(W,A)),affixWrapper:O(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:y==="rtl",[`${W}-affix-wrapper-sm`]:re==="small",[`${W}-affix-wrapper-lg`]:re==="large",[`${W}-textarea-show-count`]:h||e.count?.show},Z)},prefixCls:W,suffix:k&&f("span",{className:`${W}-textarea-suffix`},D),showCount:h,ref:X,onResize:$e,onMouseDown:Ee})}),dP=KF;var zc=ha;zc.Group=U1;zc.Search=lP;zc.TextArea=dP;zc.Password=iP;zc.OTP=eP;var uP=zc;var QF={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"},mP=QF;function ox(){return ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ox.apply(this,arguments)}o(ox,"_extends");var ZF=o((e,t)=>f(sr,ox({},e,{ref:t,icon:mP})),"DownOutlined"),JF=le(ZF),tg=JF;var eH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},pP=eH;function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nx.apply(this,arguments)}o(nx,"_extends");var tH=o((e,t)=>f(sr,nx({},e,{ref:t,icon:pP})),"MinusOutlined"),rH=le(tH),fP=rH;var oH={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"},gP=oH;function ix(){return ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ix.apply(this,arguments)}o(ix,"_extends");var nH=o((e,t)=>f(sr,ix({},e,{ref:t,icon:gP})),"PlusOutlined"),iH=le(nH),hP=iH;var sH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},bP=sH;function sx(){return sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sx.apply(this,arguments)}o(sx,"_extends");var aH=o((e,t)=>f(sr,sx({},e,{ref:t,icon:bP})),"UpOutlined"),lH=le(aH),vP=lH;function Cu(){return typeof BigInt=="function"}o(Cu,"supportBigInt");function rg(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}o(rg,"isEmpty");function zi(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",i=n.split("."),s=i[0]||"0",a=i[1]||"0";s==="0"&&a==="0"&&(r=!1);var l=r?"-":"";return{negative:r,negativeStr:l,trimStr:n,integerStr:s,decimalStr:a,fullStr:"".concat(l).concat(n)}}o(zi,"trimNumber");function Vc(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}o(Vc,"isE");function yP(e){var t=e.toLowerCase().split("e"),r=ol(t,2),n=r[0],i=r[1],s=i===void 0?"0":i,a=n.startsWith("-"),l=a?n.slice(1):n,c=l.split("."),d=ol(c,2),u=d[0],m=u===void 0?"0":u,p=d[1],g=p===void 0?"":p,h="".concat(m).concat(g).replace(/^0+/,"")||"0";return{decimal:g,digits:h,exponent:Number(s),integer:m,negative:a}}o(yP,"parseScientificNotation");function cH(e){var t=e.decimal,r=e.digits,n=e.exponent,i=e.integer,s=e.negative;if(r==="0")return"0";var a=i.replace(/^0+/,"").length,l=(t.match(/^0*/)||[""])[0].length,c=a||-l,d=c+n,u="";return d<=0?u="0.".concat("0".repeat(-d)).concat(r):d>=r.length?u="".concat(r).concat("0".repeat(d-r.length)):u="".concat(r.slice(0,d),".").concat(r.slice(d)),"".concat(s?"-":"").concat(u)}o(cH,"expandScientificNotation");function xP(e){return e.exponent>=0?Math.max(0,e.decimal.length-e.exponent):Math.abs(e.exponent)+e.decimal.length}o(xP,"getScientificPrecision");function os(e){var t=String(e);return Vc(e)?xP(yP(t)):t.includes(".")&&jc(t)?t.length-t.indexOf(".")-1:0}o(os,"getNumberPrecision");function Is(e){var t=String(e);if(Vc(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Cu()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Cu()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);var r=yP(t),n=xP(r);t=n>100?cH(r):e.toFixed(n)}return zi(t).fullStr}o(Is,"num2str");function jc(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}o(jc,"validateNumber");var SP=function(){function e(t){if(Vn(this,e),ro(this,"origin",""),ro(this,"negative",void 0),ro(this,"integer",void 0),ro(this,"decimal",void 0),ro(this,"decimalLen",void 0),ro(this,"empty",void 0),ro(this,"nan",void 0),rg(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var r=t;if(Vc(r)&&(r=Number(r)),r=typeof r=="string"?r:Is(r),jc(r)){var n=zi(r);this.negative=n.negative;var i=n.trimStr.split(".");this.integer=BigInt(i[0]);var s=i[1]||"0";this.decimal=BigInt(s),this.decimalLen=s.length}else this.nan=!0}return o(e,"BigIntDecimal"),jn(e,[{key:"getMark",value:o(function(){return this.negative?"-":""},"getMark")},{key:"getIntegerStr",value:o(function(){return this.integer.toString()},"getIntegerStr")},{key:"getDecimalStr",value:o(function(){return this.decimal.toString().padStart(this.decimalLen,"0")},"getDecimalStr")},{key:"alignDecimal",value:o(function(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)},"alignDecimal")},{key:"negate",value:o(function(){var r=new e(this.toString());return r.negative=!r.negative,r},"negate")},{key:"cal",value:o(function(r,n,i){var s=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),a=this.alignDecimal(s),l=r.alignDecimal(s),c=n(a,l).toString(),d=i(s),u=zi(c),m=u.negativeStr,p=u.trimStr,g="".concat(m).concat(p.padStart(d+1,"0"));return new e("".concat(g.slice(0,-d),".").concat(g.slice(-d)))},"cal")},{key:"add",value:o(function(r){if(this.isInvalidate())return new e(r);var n=new e(r);return n.isInvalidate()?this:this.cal(n,function(i,s){return i+s},function(i){return i})},"add")},{key:"multi",value:o(function(r){var n=new e(r);return this.isInvalidate()||n.isInvalidate()?new e(NaN):this.cal(n,function(i,s){return i*s},function(i){return i*2})},"multi")},{key:"isEmpty",value:o(function(){return this.empty},"isEmpty")},{key:"isNaN",value:o(function(){return this.nan},"isNaN")},{key:"isInvalidate",value:o(function(){return this.isEmpty()||this.isNaN()},"isInvalidate")},{key:"equals",value:o(function(r){return this.toString()===r?.toString()},"equals")},{key:"lessEquals",value:o(function(r){return this.add(r.negate().toString()).toNumber()<=0},"lessEquals")},{key:"toNumber",value:o(function(){return this.isNaN()?NaN:Number(this.toString())},"toNumber")},{key:"toString",value:o(function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":zi("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin},"toString")}]),e}();var CP=function(){function e(t){if(Vn(this,e),ro(this,"origin",""),ro(this,"number",void 0),ro(this,"empty",void 0),rg(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return o(e,"NumberDecimal"),jn(e,[{key:"negate",value:o(function(){return new e(-this.toNumber())},"negate")},{key:"add",value:o(function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var i=this.number+n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(os(this.number),os(n));return new e(i.toFixed(s))},"add")},{key:"multi",value:o(function(r){var n=Number(r);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var i=this.number*n;if(i>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(i<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var s=Math.max(os(this.number),os(n));return new e(i.toFixed(s))},"multi")},{key:"isEmpty",value:o(function(){return this.empty},"isEmpty")},{key:"isNaN",value:o(function(){return Number.isNaN(this.number)},"isNaN")},{key:"isInvalidate",value:o(function(){return this.isEmpty()||this.isNaN()},"isInvalidate")},{key:"equals",value:o(function(r){return this.toNumber()===r?.toNumber()},"equals")},{key:"lessEquals",value:o(function(r){return this.add(r.negate().toString()).toNumber()<=0},"lessEquals")},{key:"toNumber",value:o(function(){return this.number},"toNumber")},{key:"toString",value:o(function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Vc(this.number)&&os(this.number)>100?String(this.number):Is(this.number):this.origin},"toString")}]),e}();function og(e){return Cu()?new SP(e):new CP(e)}o(og,"getMiniDecimal");function wu(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var i=zi(e),s=i.negativeStr,a=i.integerStr,l=i.decimalStr,c="".concat(t).concat(l),d="".concat(s).concat(a);if(r>=0){var u=Number(l[r]);if(u>=5&&!n){var m=og(e).add("".concat(s,"0.").concat("0".repeat(r)).concat(10-u));return wu(m.toString(),t,r,n)}return r===0?d:"".concat(d).concat(t).concat(l.padEnd(r,"0").slice(0,r))}return c===".0"?d:"".concat(d).concat(c)}o(wu,"toFixed");var Vi=og;function ax(e,t){let r=H(null);function n(){try{let{selectionStart:s,selectionEnd:a,value:l}=e,c=l.substring(0,s),d=l.substring(a);r.current={start:s,end:a,value:l,beforeTxt:c,afterTxt:d}}catch{}}o(n,"recordCursor");function i(){if(e&&r.current&&t)try{let{value:s}=e,{beforeTxt:a,afterTxt:l,start:c}=r.current,d=s.length;if(s.startsWith(a))d=a.length;else if(s.endsWith(l))d=s.length-r.current.afterTxt.length;else{let u=a[c-1],m=s.indexOf(u,c-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(s){Hr(!1,`Something warning of cursor restore. Please fire issue about this: ${s.message}`)}}return o(i,"restoreCursor"),[n,i]}o(ax,"useCursor");var dH=200,uH=600;function ng({prefixCls:e,action:t,children:r,disabled:n,className:i,style:s,onStep:a}){let l=t==="up",c=H(),d=H([]),u=o(()=>{clearTimeout(c.current)},"onStopStep"),m=o(b=>{b.preventDefault(),u(),a(l,"handler");function v(){a(l,"handler"),c.current=setTimeout(v,dH)}o(v,"loopStep"),c.current=setTimeout(v,uH)},"onStepMouseDown");fe(()=>()=>{u(),d.current.forEach(b=>{St.cancel(b)})},[]);let p=`${e}-action`,g=O(p,`${p}-${t}`,{[`${p}-${t}-disabled`]:n},i),h=o(()=>d.current.push(St(u)),"safeOnStopStep");return f("span",{unselectable:"on",role:"button",onMouseUp:h,onMouseLeave:h,onMouseDown:o(b=>{m(b)},"onMouseDown"),"aria-label":l?"Increase Value":"Decrease Value","aria-disabled":n,className:g,style:s},r||f("span",{unselectable:"on",className:`${e}-action-${t}-inner`}))}o(ng,"StepHandler");function lx(e){let t=typeof e=="number"?Is(e):zi(e).fullStr;return t.includes(".")?zi(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}o(lx,"getDecupleSteps");var wP=o(()=>{let e=H(0),t=o(()=>{St.cancel(e.current)},"cleanUp");return fe(()=>t,[]),r=>{t(),e.current=St(()=>{r()})}},"default");function Ru(){return Ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ru.apply(this,arguments)}o(Ru,"_extends");var RP=o((e,t)=>e||t.isEmpty()?t.toString():t.toNumber(),"getDecimalValue"),EP=o(e=>{let t=Vi(e);return t.isInvalidate()?null:t},"getDecimalIfValidate"),mH=le((e,t)=>{let{mode:r="input",prefixCls:n="rc-input-number",className:i,style:s,classNames:a,styles:l,min:c,max:d,step:u=1,defaultValue:m,value:p,disabled:g,readOnly:h,upHandler:b,downHandler:v,keyboard:x,changeOnWheel:S=!1,controls:y=!0,prefix:C,suffix:w,stringMode:E,parser:R,formatter:$,precision:I,decimalSeparator:T,onChange:M,onInput:N,onPressEnter:k,onStep:D,onMouseDown:A,onClick:B,onMouseUp:L,onMouseLeave:F,onMouseMove:q,onMouseEnter:X,onMouseOut:W,changeOnBlur:j=!0,...Z}=e,[J,U]=ce(!1),ee=H(!1),re=H(!1),ne=H(!1),oe=H(null),te=H(null);ft(t,()=>zm(te.current,{focus:o(Ve=>{Ws(te.current,Ve)},"focus"),blur:o(()=>{te.current?.blur()},"blur"),nativeElement:oe.current}));let[ie,se]=ce(()=>Vi(p??m));function xe(Ve){p===void 0&&se(Ve)}o(xe,"setUncontrolledDecimalValue");let me=At((Ve,it)=>{if(!it)return I>=0?I:Math.max(os(Ve),os(u))},[I,u]),Ee=At(Ve=>{let it=String(Ve);if(R)return R(it);let Fe=it;return T&&(Fe=Fe.replace(T,".")),Fe.replace(/[^\w.-]+/g,"")},[R,T]),$e=H(""),he=At((Ve,it)=>{if($)return $(Ve,{userTyping:it,input:String($e.current)});let Fe=typeof Ve=="number"?Is(Ve):Ve;if(!it){let Wt=me(Fe,it);jc(Fe)&&(T||Wt>=0)&&(Fe=wu(Fe,T||".",Wt))}return Fe},[$,me,T]),[ye,He]=ce(()=>{let Ve=m??p;return ie.isInvalidate()&&["string","number"].includes(typeof Ve)?Number.isNaN(Ve)?"":Ve:he(ie.toString(),!1)});$e.current=ye;function Se(Ve,it){He(he(Ve.isInvalidate()?Ve.toString(!1):Ve.toString(!it),it))}o(Se,"setInputValue");let Ce=V(()=>EP(d),[d,I]),ue=V(()=>EP(c),[c,I]),Pe=V(()=>!Ce||!ie||ie.isInvalidate()?!1:Ce.lessEquals(ie),[Ce,ie]),ve=V(()=>!ue||!ie||ie.isInvalidate()?!1:ie.lessEquals(ue),[ue,ie]),[Ue,pe]=ax(te.current,J),Oe=o(Ve=>Ce&&!Ve.lessEquals(Ce)?Ce:ue&&!ue.lessEquals(Ve)?ue:null,"getRangeValue"),Ie=o(Ve=>!Oe(Ve),"isInRange"),ke=o((Ve,it)=>{let Fe=Ve,Wt=Ie(Fe)||Fe.isEmpty();if(!Fe.isEmpty()&&!it&&(Fe=Oe(Fe)||Fe,Wt=!0),!h&&!g&&Wt){let ge=Fe.toString(),Ae=me(ge,it);return Ae>=0&&(Fe=Vi(wu(ge,".",Ae)),Ie(Fe)||(Fe=Vi(wu(ge,".",Ae,!0)))),Fe.equals(ie)||(xe(Fe),M?.(Fe.isEmpty()?null:RP(E,Fe)),p===void 0&&Se(Fe,it)),Fe}return ie},"triggerValueUpdate"),We=wP(),ze=o(Ve=>{if(Ue(),$e.current=Ve,He(Ve),!re.current){let it=Ee(Ve),Fe=Vi(it);Fe.isNaN()||ke(Fe,!0)}N?.(Ve),We(()=>{let it=Ve;R||(it=Ve.replace(/。/g,".")),it!==Ve&&ze(it)})},"collectInputValue"),Ne=o(()=>{re.current=!0},"onCompositionStart"),lt=o(()=>{re.current=!1,ze(te.current.value)},"onCompositionEnd"),qe=o(Ve=>{ze(Ve.target.value)},"onInternalInput"),Ze=De((Ve,it)=>{if(Ve&&Pe||!Ve&&ve)return;ee.current=!1;let Fe=Vi(ne.current?lx(u):u);Ve||(Fe=Fe.negate());let Wt=(ie||Vi(0)).add(Fe.toString()),ge=ke(Wt,!1);D?.(RP(E,ge),{offset:ne.current?lx(u):u,type:Ve?"up":"down",emitter:it}),te.current?.focus()}),je=o(Ve=>{let it=Vi(Ee(ye)),Fe;it.isNaN()?Fe=ke(ie,Ve):Fe=ke(it,Ve),p!==void 0?Se(ie,!1):Fe.isNaN()||Se(Fe,!1)},"flushInputValue"),gt=o(()=>{ee.current=!0},"onBeforeInput"),rt=o(Ve=>{let{key:it,shiftKey:Fe}=Ve;ee.current=!0,ne.current=Fe,it==="Enter"&&(re.current||(ee.current=!1),je(!1),k?.(Ve)),x!==!1&&!re.current&&["Up","ArrowUp","Down","ArrowDown"].includes(it)&&(Ze(it==="Up"||it==="ArrowUp","keyboard"),Ve.preventDefault())},"onKeyDown"),qt=o(()=>{ee.current=!1,ne.current=!1},"onKeyUp");fe(()=>{if(S&&J){let Ve=o(Fe=>{Ze(Fe.deltaY<0,"wheel"),Fe.preventDefault()},"onWheel"),it=te.current;if(it)return it.addEventListener("wheel",Ve,{passive:!1}),()=>it.removeEventListener("wheel",Ve)}});let Tt=o(()=>{j&&je(!1),U(!1),ee.current=!1},"onBlur"),Xe=o(Ve=>{te.current&&Ve.target!==te.current&&(te.current.focus(),Ve.preventDefault()),A?.(Ve)},"onInternalMouseDown");Vs(()=>{ie.isInvalidate()||Se(ie,!1)},[I,$]),Vs(()=>{let Ve=Vi(p);se(Ve);let it=Vi(Ee(ye));(!Ve.equals(it)||!ee.current||$)&&Se(Ve,ee.current)},[p]),Vs(()=>{$&&pe()},[ye]);let Rt={prefixCls:n,onStep:Ze,className:a?.action,style:l?.action},Lt=f(ng,Ru({},Rt,{action:"up",disabled:Pe}),b),jt=f(ng,Ru({},Rt,{action:"down",disabled:ve}),v);return f("div",{ref:oe,className:O(n,`${n}-mode-${r}`,i,a?.root,{[`${n}-focused`]:J,[`${n}-disabled`]:g,[`${n}-readonly`]:h,[`${n}-not-a-number`]:ie.isNaN(),[`${n}-out-of-range`]:!ie.isInvalidate()&&!Ie(ie)}),style:{...l?.root,...s},onMouseDown:Xe,onMouseUp:L,onMouseLeave:F,onMouseMove:q,onMouseEnter:X,onMouseOut:W,onClick:B,onFocus:o(()=>{U(!0)},"onFocus"),onBlur:Tt,onKeyDown:rt,onKeyUp:qt,onCompositionStart:Ne,onCompositionEnd:lt,onBeforeInput:gt},r==="spinner"&&y&&jt,C!==void 0&&f("div",{className:O(`${n}-prefix`,a?.prefix),style:l?.prefix},C),f("input",Ru({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":d,"aria-valuenow":ie.isInvalidate()?null:ie.toString(),step:u,ref:te,className:O(`${n}-input`,a?.input),style:l?.input,value:ye,onChange:qe,disabled:g,readOnly:h},Z)),w!==void 0&&f("div",{className:O(`${n}-suffix`,a?.suffix),style:l?.suffix},w),r==="spinner"&&y&&Lt,r==="input"&&y&&f("div",{className:O(`${n}-actions`,a?.actions),style:l?.actions},Lt,jt))}),$P=mH;var IP=$P;var PP=o(e=>{let t=e.handleVisible??"auto",r=e.controlHeightSM-e.lineWidth*2;return{...An(e),controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:t,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new ur(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:t===!0?1:0,handleVisibleWidth:t===!0?r:0}},"prepareComponentToken");var pH=o(e=>{let{componentCls:t,lineWidth:r,lineType:n,borderRadius:i,inputFontSizeSM:s,inputFontSizeLG:a,colorError:l,paddingInlineSM:c,paddingBlockSM:d,paddingBlockLG:u,paddingInlineLG:m,colorIcon:p,colorTextDisabled:g,motionDurationMid:h,handleHoverColor:b,handleOpacity:v,paddingInline:x,paddingBlock:S,handleBg:y,handleActiveBg:C,inputAffixPadding:w,borderRadiusSM:E,controlWidth:R,handleBorderColor:$,filledHandleBg:I,lineHeightLG:T,antCls:M}=e,N=`${Q(r)} ${n} ${$}`,[k,D]=br(M,"input-number");return[{[t]:{...hr(e),...Fc(e),[k("input-padding-block")]:Q(S),[k("input-padding-inline")]:Q(x),display:"inline-flex",width:R,margin:0,paddingBlock:0,borderRadius:i,...Ac(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:N}}}),...Lc(e,{[`${t}-actions`]:{background:I,[`${t}-action-down`]:{borderBlockStart:N}},"&:focus-within":{[`${t}-actions`]:{background:y}}}),...Bc(e,{[`${t}-actions`]:{background:y,[`${t}-action-down`]:{borderBlockStart:N}}}),..._c(e),[`&${t}-borderless`]:{paddingBlock:0,[k("input-padding-block")]:Q(e.calc(S).add(r).equal())},[`&${t}-borderless${t}-sm`]:{paddingBlock:0,[k("input-padding-block")]:Q(e.calc(d).add(r).equal())},[`&${t}-borderless${t}-lg`]:{paddingBlock:0,[k("input-padding-block")]:Q(e.calc(u).add(r).equal())},"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},[`&${t}-out-of-range`]:{[`${t}-input`]:{color:l}},[`${t}-input`]:{...hr(e),width:"100%",paddingBlock:D("input-padding-block"),textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:0,outline:0,transition:`all ${h} linear`,appearance:"textfield",fontSize:"inherit",lineHeight:"inherit",...gu(e.colorTextPlaceholder),'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&-disabled ${t}-input`]:{cursor:"not-allowed",color:e.colorTextDisabled}}},{[t]:{[`${t}-action`]:{...ri(),userSelect:"none",overflow:"hidden",fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",transition:`all ${h} linear`,[`&:active:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{background:C},[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{color:b},[`&${t}-action-up-disabled, &${t}-action-down-disabled`]:{cursor:"not-allowed",color:g}},"&-mode-input":{overflow:"hidden",[`${t}-actions`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:v,height:"100%",borderRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${h}`,overflow:"hidden",[`${t}-action`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",marginInlineEnd:0,fontSize:e.handleFontSize}},[`&:hover ${t}-actions, &-focused ${t}-actions`]:{width:e.handleWidth,opacity:1},[`${t}-action`]:{color:p,height:"50%",borderInlineStart:N,[`&:hover:not(${t}-action-up-disabled):not(${t}-action-down-disabled)`]:{height:"60%"}},[`&${t}-disabled, &${t}-readonly`]:{[`${t}-actions`]:{display:"none"}}},[`&${t}-mode-spinner`]:{padding:0,width:"auto",[`${t}-action`]:{flex:"none",paddingInline:D("input-padding-inline"),"&-up":{borderInlineStart:N},"&-down":{borderInlineEnd:N}},[`${t}-input`]:{textAlign:"center",paddingInline:D("input-padding-inline")}}}},{[t]:{"&-lg":{[k("input-padding-block")]:Q(u),[k("input-padding-inline")]:Q(m),paddingBlock:0,fontSize:a,lineHeight:T},"&-sm":{[k("input-padding-block")]:Q(d),[k("input-padding-inline")]:Q(c),paddingBlock:0,fontSize:s,borderRadius:E}}},{[t]:{[`${t}-prefix, ${t}-suffix`]:{display:"flex",flex:"none",alignItems:"center",alignSelf:"center",pointerEvents:"none"},[`${t}-prefix`]:{marginInlineEnd:w},[`${t}-suffix`]:{height:"100%",marginInlineStart:w,transition:`margin ${h}`},[`&:hover:not(${t}-without-controls)`]:{[`${t}-suffix`]:{marginInlineEnd:e.handleWidth}}}}]},"genInputNumberStyles"),fH=o(e=>{let{componentCls:t,antCls:r}=e;return{[`${t}-addon`]:{[`&:has(${r}-select)`]:{border:0,padding:0}}}},"genCompatibleStyles"),NP=Ht("InputNumber",e=>{let t=wt(e,Dn(e));return[pH(t),fH(t),xi(t)]},PP,{unitless:{handleOpacity:!0},resetFont:!1});var gH=le((e,t)=>{let r=H(null);ft(t,()=>r.current);let{rootClassName:n,size:i,disabled:s,prefixCls:a,addonBefore:l,addonAfter:c,prefix:d,suffix:u,bordered:m,readOnly:p,status:g,controls:h=!0,variant:b,className:v,style:x,classNames:S,styles:y,mode:C,...w}=e,{direction:E,className:R,style:$,styles:I,classNames:T}=Mt("inputNumber"),M=K(Fo),N=s??M,k=V(()=>!h||N||p?!1:h,[h,N,p]),{compactSize:D,compactItemClassnames:A}=qo(a,E),B=C==="spinner"?f(hP,null):f(vP,null),L=C==="spinner"?f(fP,null):f(tg,null),F=typeof k=="boolean"?k:void 0;Ut(k)&&(B=k.upIcon||B,L=k.downIcon||L);let{hasFeedback:q,isFormItemInput:X,feedbackIcon:W}=K(Ao),j=Rr(ie=>i??D??ie),[Z,J]=jo("inputNumber",b,m),U=(q||u)&&f(rr,null,u,q&&W),ee={...e,size:j,disabled:N,controls:k},re=$t($),ne=$t(x),[oe,te]=Qt([T,S],[I,re,y,ne],{props:ee});return f(IP,{ref:r,mode:C,disabled:N,className:O(v,n,oe.root,R,A,kn(a,g,q),{[`${a}-${Z}`]:J,[`${a}-lg`]:j==="large",[`${a}-sm`]:j==="small",[`${a}-rtl`]:E==="rtl",[`${a}-in-form-item`]:X,[`${a}-without-controls`]:!k}),style:te.root,upHandler:B,downHandler:L,prefixCls:a,readOnly:p,controls:F,prefix:d,suffix:U,classNames:oe,styles:te,...w})}),MP=le((e,t)=>{let{addonBefore:r,addonAfter:n,prefixCls:i,className:s,status:a,rootClassName:l,...c}=e,{getPrefixCls:d}=Mt("inputNumber"),u=d("input-number",i),{status:m}=K(Ao),p=Gn(m,a),g=oo(u),[h,b]=NP(u,g),v=r||n,x=f(gH,{ref:t,...c,prefixCls:u,status:p,className:O(b,g,h,s),rootClassName:v?void 0:l});if(v){let S=o(w=>w?f(Uf,{className:O(`${u}-addon`,b,h),variant:e.variant,disabled:e.disabled,status:p},f(hn,{form:!0},w)):null,"renderAddon"),y=S(r),C=S(n);return f(bc,{rootClassName:l},y,x,C)}return x}),TP=MP,hH=o(e=>f(es,{theme:{components:{InputNumber:{handleVisible:!0}}}},f(MP,{...e})),"PureInputNumber");TP._InternalPanelDoNotUseOrYouWillBeFired=hH;var OP=TP;var bH={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"},kP=bH;function cx(){return cx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cx.apply(this,arguments)}o(cx,"_extends");var vH=o((e,t)=>f(sr,cx({},e,{ref:t,icon:kP})),"CheckCircleFilled"),yH=le(vH),ig=yH;var xH={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"},DP=xH;function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dx.apply(this,arguments)}o(dx,"_extends");var SH=o((e,t)=>f(sr,dx({},e,{ref:t,icon:DP})),"ExclamationCircleFilled"),CH=le(SH),AP=CH;var wH={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"},_P=wH;function ux(){return ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ux.apply(this,arguments)}o(ux,"_extends");var RH=o((e,t)=>f(sr,ux({},e,{ref:t,icon:_P})),"InfoCircleFilled"),EH=le(RH),LP=EH;var $H=o(e=>{let{type:t,children:r,prefixCls:n,buttonProps:i,close:s,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:d,actionFn:u}=e,m=H(!1),p=H(null),[g,h]=Vl(!1),b=o((...S)=>{s?.(...S)},"onInternalClose");fe(()=>{let S=null;return a&&(S=setTimeout(()=>{p.current?.focus({preventScroll:!0})})),()=>{S&&clearTimeout(S)}},[a]);let v=o(S=>{Wm(S)&&(h(!0),S.then((...y)=>{h(!1,!0),b.apply(void 0,y),m.current=!1},y=>{if(h(!1,!0),m.current=!1,!c?.())return Promise.reject(y)}))},"handlePromiseOnOk"),x=o(S=>{if(m.current)return;if(m.current=!0,!u){b();return}let y;if(l){if(y=u(S),d&&!Wm(y)){m.current=!1,b(S);return}}else if(u.length)y=u(s),m.current=!1;else if(y=u(),!Wm(y)){b();return}v(y)},"onClick");return f(Si,{...Zp(t),onClick:x,loading:g,prefixCls:n,...i,ref:p},r)},"ActionButton"),sg=$H;var Ps=_.createContext({}),{Provider:ag}=Ps;var IH=o(()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:i,rootPrefixCls:s,close:a,onCancel:l,onConfirm:c,onClose:d}=K(Ps);return i?_.createElement(sg,{isSilent:n,actionFn:l,close:o((...u)=>{a?.(...u),c?.(!1),d?.()},"close"),autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},r):null},"ConfirmCancelBtn"),mx=IH;var PH=o(()=>{let{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:i,okTextLocale:s,okType:a,onConfirm:l,onOk:c,onClose:d}=K(Ps);return _.createElement(sg,{isSilent:r,type:a||"primary",actionFn:c,close:o((...u)=>{t?.(...u),l?.(!0),d?.()},"close"),autoFocus:e==="ok",buttonProps:n,prefixCls:`${i}-btn`},s)},"ConfirmOkBtn"),px=PH;var lg=bt({});function fx(e,t,r){let n=t;return!n&&r&&(n=`${e}-${r}`),n}o(fx,"getMotionName");function BP(e,t){let r=e[`page${t?"Y":"X"}Offset`],n=`scroll${t?"Top":"Left"}`;if(typeof r!="number"){let i=e.document;r=i.documentElement[n],typeof r!="number"&&(r=i.body[n])}return r}o(BP,"getScroll");function FP(e){let t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,i=n.defaultView||n.parentWindow;return r.left+=BP(i),r.top+=BP(i,!0),r}o(FP,"offset");var HP=Yi(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function cg(){return cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cg.apply(this,arguments)}o(cg,"_extends");var NH=_.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:i,title:s,ariaId:a,footer:l,closable:c,closeIcon:d,onClose:u,children:m,bodyStyle:p,bodyProps:g,modalRender:h,onMouseDown:b,onMouseUp:v,holderRef:x,visible:S,forceRender:y,width:C,height:w,classNames:E,styles:R,isFixedPos:$,focusTrap:I}=e,{panel:T}=_.useContext(lg),M=H(null),N=Qo(x,T,M),[k]=ib(S&&$&&I!==!1,()=>M.current);_.useImperativeHandle(t,()=>({focus:o(()=>{M.current?.focus({preventScroll:!0})},"focus")}));let D={};C!==void 0&&(D.width=C),w!==void 0&&(D.height=w);let A=l?_.createElement("div",{className:O(`${r}-footer`,E?.footer),style:{...R?.footer}},l):null,B=s?_.createElement("div",{className:O(`${r}-header`,E?.header),style:{...R?.header}},_.createElement("div",{className:O(`${r}-title`,E?.title),id:a,style:{...R?.title}},s)):null,L=V(()=>typeof c=="object"&&c!==null?c:c?{closeIcon:d??_.createElement("span",{className:`${r}-close-x`})}:{},[c,d,r]),F=Zr(L,!0),q=typeof c=="object"&&c.disabled,X=c?_.createElement("button",cg({type:"button",onClick:u,"aria-label":"Close"},F,{className:O(`${r}-close`,E?.close),disabled:q,style:R?.close}),L.closeIcon):null,W=_.createElement("div",{className:O(`${r}-container`,E?.container),style:R?.container},X,B,_.createElement("div",cg({className:O(`${r}-body`,E?.body),style:{...p,...R?.body}},g),m),A);return _.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?a:null,"aria-modal":"true",ref:N,style:{...i,...D},className:O(r,n),onMouseDown:b,onMouseUp:v,tabIndex:-1,onFocus:o(j=>{k(j.target)},"onFocus")},_.createElement(HP,{shouldUpdate:S||y},h?h(W):W))}),Eu=NH;function gx(){return gx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gx.apply(this,arguments)}o(gx,"_extends");var MH=le((e,t)=>{let{prefixCls:r,title:n,style:i,className:s,visible:a,forceRender:l,destroyOnHidden:c,motionName:d,ariaId:u,onVisibleChanged:m,mousePosition:p}=e,g=H(null),h=H(null);ft(t,()=>({...h.current,inMotion:g.current.inMotion,enableMotion:g.current.enableMotion}));let[b,v]=ce(),x={};b&&(x.transformOrigin=b);function S(){if(!g.current?.nativeElement)return;let y=FP(g.current.nativeElement);v(p&&(p.x||p.y)?`${p.x-y.left}px ${p.y-y.top}px`:"")}return o(S,"onPrepare"),f(Bo,{visible:a,onVisibleChanged:m,onAppearPrepare:S,onEnterPrepare:S,forceRender:l,motionName:d,removeOnLeave:c,ref:g},({className:y,style:C},w)=>f(Eu,gx({},e,{ref:h,title:n,ariaId:u,prefixCls:r,holderRef:w,style:{...C,...i,...x},className:O(s,y)})))}),zP=MH;function hx(){return hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hx.apply(this,arguments)}o(hx,"_extends");var TH=o(e=>{let{prefixCls:t,style:r,visible:n,maskProps:i,motionName:s,className:a}=e;return f(Bo,{key:"mask",visible:n,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:l,style:c},d)=>f("div",hx({ref:d,style:{...c,...r},className:O(`${t}-mask`,l,a)},i)))},"Mask"),VP=TH;function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$u.apply(this,arguments)}o($u,"_extends");var OH=o(e=>{let{prefixCls:t="rc-dialog",zIndex:r,visible:n=!1,focusTriggerAfterClose:i=!0,wrapStyle:s,wrapClassName:a,wrapProps:l,onClose:c,afterOpenChange:d,afterClose:u,transitionName:m,animation:p,closable:g=!0,mask:h=!0,maskTransitionName:b,maskAnimation:v,maskClosable:x=!0,maskStyle:S,maskProps:y,rootClassName:C,rootStyle:w,classNames:E,styles:R}=e,$=H(null),I=H(null),T=H(null),[M,N]=ce(n),[k,D]=ce(!1),A=Wo();function B(){ja(I.current,document.activeElement)||($.current=document.activeElement)}o(B,"saveLastOutSideActiveElementRef");function L(){ja(I.current,document.activeElement)||T.current?.focus()}o(L,"focusDialogContent");function F(){if(N(!1),h&&$.current&&i){try{$.current.focus({preventScroll:!0})}catch{}$.current=null}M&&u?.()}o(F,"doClose");function q(U){U?L():F(),d?.(U)}o(q,"onDialogVisibleChanged");function X(U){c?.(U)}o(X,"onInternalClose");let W=H(!1),j=null;x&&(j=o(U=>{I.current===U.target&&W.current&&X(U)},"onWrapperClick"));function Z(U){W.current=U.target===I.current}o(Z,"onWrapperMouseDown"),fe(()=>{if(n){if(W.current=!1,N(!0),B(),I.current){let U=getComputedStyle(I.current);D(U.position==="fixed")}}else M&&T.current.enableMotion()&&!T.current.inMotion()&&F()},[n]);let J={zIndex:r,...s,...R?.wrapper,display:M?null:"none"};return f("div",$u({className:O(`${t}-root`,C),style:w},Zr(e,{data:!0})),f(VP,{prefixCls:t,visible:h&&n,motionName:fx(t,b,v),style:{zIndex:r,...S,...R?.mask},maskProps:y,className:E?.mask}),f("div",$u({className:O(`${t}-wrap`,a,E?.wrapper),ref:I,onClick:j,onMouseDown:Z,style:J},l),f(zP,$u({},e,{isFixedPos:k,ref:T,closable:g,ariaId:A,prefixCls:t,visible:n&&M,onClose:X,onVisibleChanged:q,motionName:fx(t,m,p)}))))},"Dialog"),jP=OH;function bx(){return bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bx.apply(this,arguments)}o(bx,"_extends");var kH=o(e=>{let{visible:t,getContainer:r,forceRender:n,destroyOnHidden:i=!1,afterClose:s,closable:a,panelRef:l,keyboard:c=!0,scrollLock:d=!0,onClose:u}=e,{scrollLock:m,...p}=e,[g,h]=ce(t),b=V(()=>({panel:l}),[l]),v=o(({top:x,event:S})=>{if(x&&c){S.stopPropagation(),u?.(S);return}},"onEsc");return fe(()=>{t&&h(!0)},[t]),!n&&i&&!g?null:f(lg.Provider,{value:b},f(tl,{open:t||n||g,onEsc:v,autoDestroy:!1,getContainer:r,autoLock:d&&(t||g)},f(jP,bx({},p,{destroyOnHidden:i,afterClose:o(()=>{let x=a&&typeof a=="object"?a:{},{afterClose:S}=x||{};S?.(),s?.(),h(!1)},"afterClose")}))))},"DialogWrap"),WP=kH;var UP=WP;var qP=o(()=>go()&&window.document.documentElement,"canUseDocElement");function vx(e,t,r){return V(()=>({...{trap:t??!0,focusTriggerAfterClose:r??!0},...e}),[e,t,r])}o(vx,"useFocusable");var DH=o(e=>{let{prefixCls:t,className:r,style:n,size:i,shape:s}=e,a=O({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),l=O({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),c=V(()=>Oo(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return f("span",{className:O(t,a,l,r),style:{...c,...n}})},"Element"),ba=DH;var AH=new ir("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Cx=o(e=>({height:e,lineHeight:Q(e)}),"genSkeletonElementCommonSize"),va=o(e=>({width:e,...Cx(e)}),"genSkeletonElementSize"),_H=o(e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:AH,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),"genSkeletonColor"),yx=o((e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Cx(e)}),"genSkeletonElementInputSize"),LH=o(e=>{let{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:i,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:r,...va(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...va(i)},[`${t}${t}-sm`]:{...va(s)}}},"genSkeletonElementAvatar"),BH=o(e=>{let{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:i,controlHeightSM:s,gradientFromColor:a,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:r,...yx(t,l)},[`${n}-lg`]:{...yx(i,l)},[`${n}-sm`]:{...yx(s,l)}}},"genSkeletonElementInput"),GP=o(e=>{let{gradientFromColor:t,borderRadiusSM:r,imageSizeBase:n,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:r,...va(i(n).mul(2).equal())}},"genSkeletonElementShape"),FH=o(e=>({[e.skeletonNodeCls]:{...GP(e)}}),"genSkeletonElementNode"),HH=o(e=>{let{skeletonImageCls:t,imageSizeBase:r,calc:n}=e;return{[t]:{...GP(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...va(r),maxWidth:n(r).mul(4).equal(),maxHeight:n(r).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},"genSkeletonElementImage"),xx=o((e,t,r)=>{let{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},"genSkeletonElementButtonShape"),Sx=o((e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Cx(e)}),"genSkeletonElementButtonSize"),zH=o(e=>{let{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:i,controlHeightSM:s,gradientFromColor:a,calc:l}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal(),...Sx(n,l)},...xx(e,n,r),[`${r}-lg`]:{...Sx(i,l)},...xx(e,i,`${r}-lg`),[`${r}-sm`]:{...Sx(s,l)},...xx(e,s,`${r}-sm`)}},"genSkeletonElementButton"),VH=o(e=>{let{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:i,skeletonButtonCls:s,skeletonInputCls:a,skeletonNodeCls:l,skeletonImageCls:c,controlHeight:d,controlHeightLG:u,controlHeightSM:m,gradientFromColor:p,padding:g,marginSM:h,borderRadius:b,titleHeight:v,blockRadius:x,paragraphLiHeight:S,controlHeightXS:y,paragraphMarginTop:C}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:g,verticalAlign:"top",[r]:{display:"inline-block",verticalAlign:"top",background:p,...va(d)},[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:{...va(u)},[`${r}-sm`]:{...va(m)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:v,background:p,borderRadius:x,[`+ ${i}`]:{marginBlockStart:m}},[i]:{padding:0,"> li":{width:"100%",height:S,listStyle:"none",background:p,borderRadius:x,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${i} > li`]:{borderRadius:b}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:h,[`+ ${i}`]:{marginBlockStart:C}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...zH(e),...LH(e),...BH(e),...FH(e),...HH(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
230
- ${n},
231
- ${i} > li,
232
- ${r},
233
- ${s},
234
- ${a},
235
- ${l},
236
- ${c}
237
- `]:{..._H(e)}}}},"genBaseStyle"),jH=o(e=>{let{colorFillContent:t,colorFill:r}=e,n=t,i=r;return{color:n,colorGradientEnd:i,gradientFromColor:n,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},"prepareComponentToken"),ns=Ht("Skeleton",e=>{let{componentCls:t,calc:r}=e,n=wt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:r(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 VH(n)},jH,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var WH=o(e=>{let{prefixCls:t,className:r,classNames:n,rootClassName:i,active:s,style:a,styles:l,shape:c="circle",size:d,...u}=e,{getPrefixCls:m}=K(at),p=m("skeleton",t),[g,h]=ns(p),b=Rr(x=>d??x),v=O(p,`${p}-element`,{[`${p}-active`]:s},n?.root,r,i,g,h);return f("div",{className:v,style:l?.root},f(ba,{prefixCls:`${p}-avatar`,className:n?.content,style:{...l?.content,...a},shape:c,size:b,...u}))},"SkeletonAvatar"),XP=WH;var UH=o(e=>{let{prefixCls:t,className:r,rootClassName:n,classNames:i,active:s,style:a,styles:l,block:c=!1,size:d,...u}=e,{getPrefixCls:m}=K(at),p=m("skeleton",t),[g,h]=ns(p),b=Rr(x=>d??x),v=O(p,`${p}-element`,{[`${p}-active`]:s,[`${p}-block`]:c},i?.root,r,n,g,h);return f("div",{className:v,style:l?.root},f(ba,{prefixCls:`${p}-button`,className:i?.content,style:{...l?.content,...a},size:b,...u}))},"SkeletonButton"),YP=UH;var qH=o(e=>{let{prefixCls:t,className:r,classNames:n,rootClassName:i,internalClassName:s,style:a,styles:l,active:c,children:d}=e,{getPrefixCls:u}=K(at),m=u("skeleton",t),[p,g]=ns(m),h=O(m,`${m}-element`,{[`${m}-active`]:c},p,n?.root,r,i,g);return f("div",{className:h,style:l?.root},f("div",{className:O(n?.content,s||`${m}-node`),style:{...l?.content,...a}},d))},"SkeletonNode"),dg=qH;var GH=o(e=>{let{getPrefixCls:t}=K(at),r=t("skeleton",e.prefixCls);return f(dg,{...e,internalClassName:`${r}-image`},f("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${r}-image-svg`,"aria-hidden":"true",focusable:"false"},f("title",null,"Image placeholder"),f("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:`${r}-image-path`})))},"SkeletonImage"),KP=GH;var XH=o(e=>{let{prefixCls:t,className:r,classNames:n,rootClassName:i,active:s,block:a,style:l,styles:c,size:d,...u}=e,{getPrefixCls:m}=K(at),p=m("skeleton",t),[g,h]=ns(p),b=Rr(x=>d??x),v=O(p,`${p}-element`,{[`${p}-active`]:s,[`${p}-block`]:a},n?.root,r,i,g,h);return f("div",{className:v,style:c?.root},f(ba,{prefixCls:`${p}-input`,className:n?.content,style:{...c?.content,...l},size:b,...u}))},"SkeletonInput"),QP=XH;var YH=o((e,t)=>{let{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},"getWidth"),KH=o(e=>{let{prefixCls:t,className:r,style:n,rows:i=0}=e,s=Array.from({length:i}).map((a,l)=>f("li",{key:l,style:{width:YH(l,e)}}));return f("ul",{className:O(t,r),style:n},s)},"Paragraph"),ZP=KH;var QH=o(({prefixCls:e,className:t,width:r,style:n})=>f("h3",{className:O(e,t),style:{width:r,...n}}),"Title"),JP=QH;function wx(e){return Ut(e)?e:{}}o(wx,"getComponentProps");function ZH(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}o(ZH,"getAvatarBasicProps");function JH(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}o(JH,"getTitleBasicProps");function ez(e,t){let r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}o(ez,"getParagraphBasicProps");var Wc=_.forwardRef((e,t)=>{let{prefixCls:r,loading:n,className:i,rootClassName:s,classNames:a,style:l,styles:c,children:d,avatar:u=!1,title:m=!0,paragraph:p=!0,active:g,round:h}=e,{getPrefixCls:b,direction:v,className:x,style:S,classNames:y,styles:C}=Mt("skeleton"),w=b("skeleton",r),[E,R]=ns(w),$={...e,avatar:u,title:m,paragraph:p},I=$t(S),T=$t(l),[M,N]=Qt([y,a],[C,I,c,T],{props:$}),k=_.useRef(null);if(_.useImperativeHandle(t,()=>({nativeElement:k.current})),n||!("loading"in e)){let D=!!u,A=!!m,B=!!p,L;if(D){let X={className:M.avatar,prefixCls:`${w}-avatar`,...ZH(A,B),...wx(u),style:N.avatar};L=_.createElement("div",{className:O(M.header,`${w}-header`),style:N.header},_.createElement(ba,{...X}))}let F;if(A||B){let X;if(A){let j={className:M.title,prefixCls:`${w}-title`,...JH(D,B),...wx(m),style:N.title};X=_.createElement(JP,{...j})}let W;if(B){let j={className:M.paragraph,prefixCls:`${w}-paragraph`,...ez(D,A),...wx(p),style:N.paragraph};W=_.createElement(ZP,{...j})}F=_.createElement("div",{className:O(M.section,`${w}-section`),style:N.section},X,W)}let q=O(w,{[`${w}-with-avatar`]:D,[`${w}-active`]:g,[`${w}-rtl`]:v==="rtl",[`${w}-round`]:h},M.root,x,i,s,E,R);return _.createElement("div",{ref:k,className:q,style:N.root},L,F)}return d??null});Wc.Button=YP;Wc.Avatar=XP;Wc.Input=QP;Wc.Image=KP;Wc.Node=dg;var eN=Wc;var tN=eN;function rN(){}o(rN,"voidFunc");var tz=bt({add:rN,remove:rN});function oN(e){let t=K(tz),r=H(null);return De(i=>{if(i){let s=e?i.querySelector(e):i;s&&(t.add(s),r.current=s)}else t.remove(r.current)})}o(oN,"usePanelRef");var rz=o(()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=K(Ps),n=o(i=>{r?.(i),e?.onClick?.(i)},"onInternalClick");return _.createElement(Si,{...e,onClick:n},t)},"NormalCancelBtn"),Rx=rz;var oz=o(()=>{let{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:i}=K(Ps);return _.createElement(Si,{...Zp(r),loading:e,onClick:i,...t},n)},"NormalOkBtn"),Ex=oz;function ug(e,t){return _.createElement("span",{className:`${e}-close-x`},yr(t)?t:_.createElement(Li,{className:`${e}-close-icon`}))}o(ug,"renderCloseIcon");var mg=o(e=>{let{okText:t,okType:r="primary",cancelText:n,confirmLoading:i,onOk:s,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:d}=e,[u]=Do("Modal",mp()),m=yo(t,u?.okText),p=yo(n,u?.cancelText),g=_.useMemo(()=>({confirmLoading:i,okButtonProps:l,cancelButtonProps:c,okTextLocale:m,cancelTextLocale:p,okType:r,onOk:s,onCancel:a}),[i,l,c,m,p,r,s,a]),h;return er(d)||typeof d>"u"?(h=_.createElement(_.Fragment,null,_.createElement(Rx,null),_.createElement(Ex,null)),er(d)&&(h=d(h,{OkBtn:Ex,CancelBtn:Rx})),h=_.createElement(ag,{value:g},h)):h=d,_.createElement(kp,{disabled:!1},h)},"Footer");var nz=o(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"}}}},"genGridRowStyle"),iz=o(e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},"genGridColStyle"),sz=o((e,t)=>{let{componentCls:r,gridColumns:n,antCls:i}=e,[s,a]=br(i,"grid"),[,l]=br(i,"col"),c={};for(let d=n;d>=0;d--)d===0?(c[`${r}${t}-${d}`]={display:"none"},c[`${r}-push-${d}`]={insetInlineStart:"auto"},c[`${r}-pull-${d}`]={insetInlineEnd:"auto"},c[`${r}${t}-push-${d}`]={insetInlineStart:"auto"},c[`${r}${t}-pull-${d}`]={insetInlineEnd:"auto"},c[`${r}${t}-offset-${d}`]={marginInlineStart:0},c[`${r}${t}-order-${d}`]={order:0}):(c[`${r}${t}-${d}`]=[{[s("display")]:"block",display:"block"},{display:a("display"),flex:`0 0 ${d/n*100}%`,maxWidth:`${d/n*100}%`}],c[`${r}${t}-push-${d}`]={insetInlineStart:`${d/n*100}%`},c[`${r}${t}-pull-${d}`]={insetInlineEnd:`${d/n*100}%`},c[`${r}${t}-offset-${d}`]={marginInlineStart:`${d/n*100}%`},c[`${r}${t}-order-${d}`]={order:d});return c[`${r}${t}-flex`]={flex:l(`${t.replace(/-/,"")}-flex`)},c},"genLoopGridColumnsStyle"),$x=o((e,t)=>sz(e,t),"genGridStyle"),az=o((e,t,r)=>({[`@media (min-width: ${Q(t)})`]:{...$x(e,r)}}),"genGridMediaStyle"),lz=o(()=>({}),"prepareRowComponentToken"),cz=o(()=>({}),"prepareColComponentToken"),nN=Ht("Grid",nz,lz),Ix=o(e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),"getMediaSize"),iN=Ht("Grid",e=>{let t=wt(e,{gridColumns:24}),r=Ix(t);return delete r.xs,[iz(t),$x(t,""),$x(t,"-xs"),Object.keys(r).map(n=>az(t,r[n],`-${n}`)).reduce((n,i)=>({...n,...i}),{})]},cz);function sN(e){return{position:e,inset:0}}o(sN,"box");var dz=o(e=>{let{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...sN("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...sN("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:qd(e)}]},"genModalMaskStyle"),uz=o(e=>{let{componentCls:t,motionDurationMid:r}=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]:{...hr(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,...wn(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} ${r}`).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},...Wn(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,
238
- ${t}-body,
239
- ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},"genModalStyle"),mz=o(e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},"genRTLStyle"),pz=o(e=>{let{componentCls:t}=e,r=Ix(e),n={...r};delete n.xs;let i=`--${t.replace(".","")}-`,s=Object.keys(n).map(a=>({[`@media (min-width: ${Q(n[a])})`]:{width:`var(${i}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(to(Object.keys(r).map((a,l)=>{let c=Object.keys(r)[l-1];return c?{[`${i}${a}-width`]:`var(${i}${c}-width)`}:null})),[{width:`var(${i}xs-width)`}],to(s))}}},"genResponsiveWidthStyle"),Px=o(e=>{let t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return wt(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).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()})},"prepareToken"),Nx=o(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}),"prepareComponentToken"),pg=Ht("Modal",e=>{let t=Px(e);return[uz(t),mz(t),dz(t),Es(t,"zoom"),pz(t)]},Nx,{unitless:{titleLineHeight:!0}});var Mx,fz=o(e=>{Mx={x:e.pageX,y:e.pageY},setTimeout(()=>{Mx=null},100)},"getClickPosition");qP()&&document.documentElement.addEventListener("click",fz,!0);var gz=o(e=>{let{prefixCls:t,className:r,rootClassName:n,open:i,wrapClassName:s,centered:a,getContainer:l,style:c,width:d=520,footer:u,classNames:m,styles:p,children:g,loading:h,confirmLoading:b,zIndex:v,mousePosition:x,onOk:S,onCancel:y,okButtonProps:C,cancelButtonProps:w,destroyOnHidden:E,destroyOnClose:R,panelRef:$=null,closable:I,mask:T,modalRender:M,maskClosable:N,_semanticOmit:k,scrollLock:D,focusTriggerAfterClose:A,focusable:B,_renderSemanticContent:L,...F}=e,{getPopupContainer:q,getPrefixCls:X,direction:W,className:j,style:Z,classNames:J,styles:U,centered:ee,cancelButtonProps:re,okButtonProps:ne,mask:oe,focusable:te}=Mt("modal"),{modal:ie}=K(at),[se,xe]=V(()=>typeof I=="boolean"?[void 0,void 0]:[I?.afterClose,I?.onClose],[I]),me=X("modal",t),Ee=X(),[$e,he,ye]=ZE(T,oe,me,N),He=vx({...te,...B},$e,A),Se=o(Fe=>{b||(y?.(Fe),xe?.())},"handleCancel"),Ce=o(Fe=>{S?.(Fe),xe?.()},"handleOk"),ue=oo(me),[Pe,ve]=pg(me,ue),Ue=O(s,{[`${me}-centered`]:a??ee,[`${me}-wrap-rtl`]:W==="rtl"}),pe=u!==null&&!h?f(mg,{...e,okButtonProps:{...ne,...C},onOk:Ce,cancelButtonProps:{...re,...w},onCancel:Se}):null,[Oe,Ie,ke,We]=KE(Ev(e),Ev(ie),{closable:!0,closeIcon:f(Li,{className:`${me}-close-icon`}),closeIconRender:o(Fe=>ug(me,Fe),"closeIconRender")}),ze=Oe?{disabled:ke,closeIcon:Ie,afterClose:se,...We}:!1,Ne=M?Fe=>f("div",{className:`${me}-render`},M(Fe)):void 0,lt=`.${me}-${M?"render":"container"}`,qe=oN(lt),Ze=qr($,qe),[je,gt]=Un("Modal",v),rt={...e,width:d,panelRef:$,focusTriggerAfterClose:He.focusTriggerAfterClose,focusable:He,mask:$e,maskClosable:ye,zIndex:je},[qt,Tt]=Qt([J,m,he],[U,p],{props:rt}),Xe=k?_t(qt,k):qt,Rt=k?_t(Tt,k):Tt,Lt=L?L({classNames:qt,styles:Tt}):g,[jt,Ve]=V(()=>Ut(d)?[void 0,d]:[d,void 0],[d]),it=V(()=>{let Fe={};return Ve&&Object.keys(Ve).forEach(Wt=>{let ge=Ve[Wt];lo(ge)&&(Fe[`--${me}-${Wt}-width`]=Oo(ge)?`${ge}px`:ge)}),Fe},[me,Ve]);return f(hn,{form:!0,space:!0},f(oa.Provider,{value:gt},f(UP,{width:jt,...F,zIndex:je,getContainer:l===void 0?q:l,prefixCls:me,rootClassName:O(Pe,n,ve,ue,Xe.root),rootStyle:Rt.root,footer:pe,visible:i,mousePosition:x??Mx,onClose:Se,closable:ze,closeIcon:Ie,transitionName:rs(Ee,"zoom",e.transitionName),maskTransitionName:rs(Ee,"fade",e.maskTransitionName),mask:$e,maskClosable:ye,scrollLock:D,className:O(Pe,r,j),style:{...Z,...c,...it},classNames:{...Xe,wrapper:O(Xe.wrapper,Ue)},styles:Rt,panelRef:Ze,destroyOnHidden:E??R,modalRender:Ne,focusTriggerAfterClose:He.focusTriggerAfterClose,focusTrap:He.trap},h?f(tN,{active:!0,title:!1,paragraph:{rows:4},className:`${me}-body-skeleton`}):Lt)))},"Modal"),fg=gz;var hz=o(e=>{let{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:i,fontSize:s,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:d}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:{...il()},[`&${t} ${t}-body`]:{padding:d},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${Q(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${Q(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-container`]:{color:e.colorText,fontSize:s,lineHeight:a},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
240
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},"genModalConfirmStyle"),aN=sl(["Modal","confirm"],e=>{let t=Px(e);return hz(t)},Nx,{order:-1e3});var bz=["body"],Tx=o(e=>{let{prefixCls:t,icon:r,okText:n,cancelText:i,confirmPrefixCls:s,type:a,okCancel:l,footer:c,locale:d,autoFocusButton:u,focusable:m,contentClassName:p,contentStyle:g,...h}=e,{infoIcon:b,successIcon:v,errorIcon:x,warningIcon:S}=Mt("modal"),y=r;if(r===void 0)switch(a){case"info":y=yo(b,f(LP,null));break;case"success":y=yo(v,f(ig,null));break;case"error":y=yo(x,f(ta,null));break;default:y=yo(S,f(AP,null))}let C=l??a==="confirm",w=V(()=>{let L=m?.autoFocusButton||u;return L||L===null?L:"ok"},[u,m?.autoFocusButton]),[E]=Do("Modal"),R=d||E,$=yo(n,C?R?.okText:R?.justOkText),I=yo(i,R?.cancelText),{closable:T}=h,{onClose:M}=Ut(T)?T:{},N=V(()=>({autoFocusButton:w,cancelTextLocale:I,okTextLocale:$,mergedOkCancel:C,onClose:M,...h}),[w,I,$,C,M,h]),k=f(rr,null,f(mx,null),f(px,null)),D=yr(e.title),A=yr(y),B=`${s}-body`;return f("div",{className:`${s}-body-wrapper`},f("div",{className:O(B,{[`${B}-has-title`]:D,[`${B}-no-icon`]:!A})},y,f("div",{className:`${s}-paragraph`},D&&f("span",{className:`${s}-title`},e.title),f("div",{className:O(`${s}-content`,p),style:g},e.content))),c===void 0||er(c)?f(ag,{value:N},f("div",{className:`${s}-btns`},er(c)?c(k,{OkBtn:px,CancelBtn:mx}):k)):c,f(aN,{prefixCls:t}))},"ConfirmContent"),vz=o(e=>{let{close:t,zIndex:r,maskStyle:n,direction:i,prefixCls:s,wrapClassName:a,rootPrefixCls:l,bodyStyle:c,closable:d=!1,onConfirm:u,styles:m,title:p,mask:g,maskClosable:h,okButtonProps:b,cancelButtonProps:v}=e,{cancelButtonProps:x,okButtonProps:S}=Mt("modal"),y=`${s}-confirm`,C=e.width||416,w=e.style||{},E=er(m)?N=>({body:c,mask:n,...m(N)}):{body:c,mask:n,...m},R=_t(e,["bodyStyle","maskStyle"]),$=O(y,`${y}-${e.type}`,{[`${y}-rtl`]:i==="rtl"},e.className),I=V(()=>{let N=Yp(g,h);return N.closable??(N.closable=!1),N},[g,h]),[,T]=Gr(),M=V(()=>r!==void 0?r:T.zIndexPopupBase+$v,[r,T]);return f(fg,{...R,className:$,wrapClassName:O({[`${y}-centered`]:!!e.centered},a),onCancel:o(()=>{t?.({triggerCancel:!0}),u?.(!1)},"onCancel"),title:p,footer:null,transitionName:rs(l||"","zoom",e.transitionName),maskTransitionName:rs(l||"","fade",e.maskTransitionName),mask:I,style:w,styles:E,width:C,zIndex:M,closable:d,_semanticOmit:bz,_renderSemanticContent:o(({classNames:N,styles:k})=>f(Tx,{...e,confirmPrefixCls:y,okButtonProps:{...S,...b},cancelButtonProps:{...x,...v},contentClassName:N.body,contentStyle:k.body}),"_renderSemanticContent")})},"ConfirmDialog"),yz=o(e=>{let{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:i}=e;return f(es,{prefixCls:t,iconPrefixCls:r,direction:n,theme:i},f(vz,{...e}))},"ConfirmDialogWrapper"),gg=yz;var xz=[],is=xz;var lN="";function cN(){return lN}o(cN,"getRootPrefixCls");var Sz=o(e=>{let{prefixCls:t,getContainer:r,direction:n}=e,i=mp(),s=K(at),a=cN()||s.getPrefixCls(),l=t||`${a}-modal`,c=r;return c===!1&&(c=void 0),_.createElement(gg,{...e,rootPrefixCls:a,prefixCls:l,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:n??s.direction,locale:s.locale?.Modal??i,getContainer:c})},"ConfirmDialogWrapper");function bl(e){let t=$E(),r=document.createDocumentFragment(),n={...e,close:l,open:!0},i;function s(...d){d.some(m=>m?.triggerCancel)&&e.onCancel?.(()=>{},...d.slice(1));for(let m=0;m<is.length;m++)if(is[m]===l){is.splice(m,1);break}$d(r).then(()=>{})}o(s,"destroy");let a=o(d=>{clearTimeout(i),i=setTimeout(()=>{let u=t.getPrefixCls(void 0,cN()),m=t.getIconPrefixCls(),p=t.getTheme(),g=_.createElement(Sz,{...d});Ed(_.createElement(es,{prefixCls:u,iconPrefixCls:m,theme:p},er(t.holderRender)?t.holderRender(g):g),r)})},"scheduleRender");function l(...d){n={...n,open:!1,afterClose:o(()=>{er(e.afterClose)&&e.afterClose(),s.apply(this,d)},"afterClose")},a(n)}o(l,"close");function c(d){er(d)?n=d(n):n={...n,...d},a(n)}return o(c,"update"),a(n),is.push(l),{destroy:l,update:c}}o(bl,"confirm");function hg(e){return{...e,type:"warning"}}o(hg,"withWarn");function bg(e){return{...e,type:"info"}}o(bg,"withInfo");function vg(e){return{...e,type:"success"}}o(vg,"withSuccess");function yg(e){return{...e,type:"error"}}o(yg,"withError");function xg(e){return{...e,type:"confirm"}}o(xg,"withConfirm");function dN({rootPrefixCls:e}){lN=e}o(dN,"modalGlobalConfig");var Cz=o(e=>{let{prefixCls:t,className:r,closeIcon:n,closable:i,type:s,title:a,children:l,footer:c,style:d,classNames:u,styles:m,...p}=e,{getPrefixCls:g}=K(at),{className:h,style:b,classNames:v,styles:x}=Mt("modal"),S=g(),y=t||g("modal"),C=oo(S),[w,E]=pg(y,C),R=$t(b),$=$t(d),[I,T]=Qt([v,u],[x,R,m,$],{props:e}),M=`${y}-confirm`,N={};return s?N={closable:i??!1,title:"",footer:"",children:f(Tx,{...e,prefixCls:y,confirmPrefixCls:M,rootPrefixCls:S,content:l})}:N={closable:i??!0,title:a,footer:c!==null&&f(mg,{...e}),children:l},f(Eu,{prefixCls:y,className:O(w,`${y}-pure-panel`,s&&M,s&&`${M}-${s}`,r,h,E,C,I.root),style:T.root,...p,closeIcon:ug(y,n),closable:i,classNames:I,styles:T,...N})},"PurePanel"),uN=py(Cz);var wz=le((e,t)=>{let{afterClose:r,config:n,...i}=e,[s,a]=ce(!0),[l,c]=ce(n),{direction:d,getPrefixCls:u}=K(at),m=u("modal"),p=u(),g=o(()=>{r(),l.afterClose?.()},"afterClose"),h=o((...x)=>{a(!1),x.some(y=>y?.triggerCancel)&&l.onCancel?.(()=>{},...x.slice(1))},"close");ft(t,()=>({destroy:h,update:o(x=>{c(S=>{let y=er(x)?x(S):x;return{...S,...y}})},"update")}));let b=l.okCancel??l.type==="confirm",[v]=Do("Modal",Mn.Modal);return f(gg,{prefixCls:m,rootPrefixCls:p,...l,close:h,open:s,afterClose:g,okText:yo(l.okText,b?v?.okText:v?.justOkText),direction:l.direction||d,cancelText:yo(l.cancelText,v?.cancelText),...i})}),mN=wz;var pN=0,Rz=Yi(le((e,t)=>{let[r,n]=e$();return ft(t,()=>({patchElement:n}),[n]),f(rr,null,r)}));function Ez(){let e=H(null),[t,r]=ce([]);fe(()=>{t.length&&(to(t).forEach(a=>{a()}),r([]))},[t]);let n=At(s=>o(function(l){pN+=1;let c=jh(),d,u=new Promise(b=>{d=b}),m=!1,p,g=f(mN,{key:`modal-${pN}`,config:s(l),ref:c,afterClose:o(()=>{p?.()},"afterClose"),isSilent:o(()=>m,"isSilent"),onConfirm:o(b=>{d(b)},"onConfirm")});return p=e.current?.patchElement(g),p&&is.push(p),{destroy:o(()=>{function b(){c.current?.destroy()}o(b,"destroyAction"),c.current?b():r(v=>[].concat(to(v),[b]))},"destroy"),update:o(b=>{function v(){c.current?.update(b)}o(v,"updateAction"),c.current?v():r(x=>[].concat(to(x),[v]))},"update"),then:o(b=>(m=!0,u.then(b)),"then")}},"hookConfirm"),[]);return[V(()=>({info:n(bg),success:n(vg),error:n(yg),warning:n(hg),confirm:n(xg)}),[n]),f(Rz,{key:"modal-holder",ref:e})]}o(Ez,"useModal");var fN=Ez;function gN(e){return bl(hg(e))}o(gN,"modalWarn");var ji=fg;ji.useModal=fN;ji.info=o(function(t){return bl(bg(t))},"infoFn");ji.success=o(function(t){return bl(vg(t))},"successFn");ji.error=o(function(t){return bl(yg(t))},"errorFn");ji.warning=gN;ji.warn=gN;ji.confirm=o(function(t){return bl(xg(t))},"confirmFn");ji.destroyAll=o(function(){for(;is.length;){let t=is.pop();t&&t()}},"destroyAllFn");ji.config=dN;ji._InternalPanelDoNotUseOrYouWillBeFired=uN;var hN=ji;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"},bN=$z;function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ox.apply(this,arguments)}o(Ox,"_extends");var Iz=o((e,t)=>f(sr,Ox({},e,{ref:t,icon:bN})),"CheckOutlined"),Pz=le(Iz),Sg=Pz;var kx={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},Dx=o(()=>{let e=H([]),t=H(null);return fe(()=>{let r=Date.now(),n=!1;e.current.forEach(i=>{if(!i)return;n=!0;let s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&r-t.current<100&&(s.transitionDuration="0s, 0s")}),n&&(t.current=Date.now())}),e.current},"useTransitionDuration");var vN=o(({bg:e,children:t})=>f("div",{style:{width:"100%",height:"100%",background:e}},t),"Block");function yN(e,t){return Object.keys(e).map(r=>{let n=parseFloat(r),i=`${Math.floor(n*t)}%`;return`${e[r]} ${i}`})}o(yN,"getPtgColors");var Nz=le((e,t)=>{let{prefixCls:r,color:n,gradientId:i,radius:s,className:a,style:l,ptg:c,strokeLinecap:d,strokeWidth:u,size:m,gapDegree:p}=e,g=n&&typeof n=="object",h=g?"#FFF":void 0,b=m/2,v=f("circle",{className:O(`${r}-circle-path`,a),r:s,cx:b,cy:b,stroke:h,strokeLinecap:d,strokeWidth:u,opacity:c===0?0:1,style:l,ref:t});if(!g)return v;let x=`${i}-conic`,S=p?`${180+p/2}deg`:"0deg",y=yN(n,(360-p)/360),C=yN(n,1),w=`conic-gradient(from ${S}, ${y.join(", ")})`,E=`linear-gradient(to ${p?"bottom":"top"}, ${C.join(", ")})`;return f(rr,null,f("mask",{id:x},v),f("foreignObject",{x:0,y:0,width:m,height:m,mask:`url(#${x})`},f(vN,{bg:E},f(vN,{bg:w}))))}),xN=Nz;var Cg=o((e,t,r,n,i,s,a,l,c,d,u=0)=>{let m=r/100*360*((360-s)/360),p=s===0?0:{bottom:0,top:180,left:90,right:-90}[a],g=(100-n)/100*t;c==="round"&&n!==100&&(g+=d/2,g>=t&&(g=t-.01));let h=100/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:g+u,transform:`rotate(${i+m+p}deg)`,transformOrigin:`${h}px ${h}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}},"getCircleStyle");var SN=o(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let r=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${r} 1s linear infinite`},indeterminateStyleAnimation:_.createElement("style",null,`@keyframes ${r} {
241
- 0% { transform: rotate(0deg); }
242
- 100% { transform: rotate(360deg); }
243
- }`)}},"default");function Ax(){return Ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ax.apply(this,arguments)}o(Ax,"_extends");function CN(e){let t=e??[];return Array.isArray(t)?t:[t]}o(CN,"toArray");var Mz=o(e=>{let{id:t,prefixCls:r,classNames:n={},styles:i={},steps:s,strokeWidth:a,railWidth:l,gapDegree:c=0,gapPosition:d,railColor:u,strokeLinecap:m,style:p,className:g,strokeColor:h,percent:b,loading:v,...x}={...kx,...e},S=100/2,y=Wo(t),C=`${y}-gradient`,w=S-a/2,E=Math.PI*2*w,R=c>0?90+c/2:-90,$=E*((360-c)/360),{count:I,gap:T}=typeof s=="object"?s:{count:s,gap:2},M=CN(b),N=CN(h),k=N.find(j=>j&&typeof j=="object"),A=k&&typeof k=="object"?"butt":m,{indeterminateStyleProps:B,indeterminateStyleAnimation:L}=SN({id:y,loading:v}),F=Cg(E,$,0,100,R,c,d,u,A,a),q=Dx(),X=o(()=>{let j=0;return M.map((Z,J)=>{let U=N[J]||N[N.length-1],ee=Cg(E,$,j,Z,R,c,d,U,A,a);return j+=Z,f(xN,{key:J,color:U,ptg:Z,radius:w,prefixCls:r,gradientId:C,className:n.track,style:{...ee,...B,...i.track},strokeLinecap:A,strokeWidth:a,gapDegree:c,ref:o(re=>{q[J]=re},"ref"),size:100})}).reverse()},"getStokeList"),W=o(()=>{let j=Math.round(I*(M[0]/100)),Z=100/I,J=0;return new Array(I).fill(null).map((U,ee)=>{let re=ee<=j-1?N[0]:u,ne=re&&typeof re=="object"?`url(#${C})`:void 0,oe=Cg(E,$,J,Z,R,c,d,re,"butt",a,T);return J+=($-oe.strokeDashoffset+T)*100/$,f("circle",{key:ee,className:O(`${r}-circle-path`,n.track),r:w,cx:S,cy:S,stroke:ne,strokeWidth:a,opacity:1,style:{...oe,...i.track},ref:o(te=>{q[ee]=te},"ref")})})},"getStepStokeList");return f("svg",Ax({className:O(`${r}-circle`,n.root,g),viewBox:`0 0 ${100} ${100}`,style:{...i.root,...p},id:t,role:"presentation"},x),!I&&f("circle",{className:O(`${r}-circle-rail`,n.rail),r:w,cx:S,cy:S,stroke:u,strokeLinecap:A,strokeWidth:l||a,style:{...F,...i.rail}}),I?W():X(),L)},"Circle"),_x=Mz;function Ns(e){return!e||e<0?0:e>100?100:e}o(Ns,"validProgress");function Uc({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}o(Uc,"getSuccessPercent");var wN=o(({percent:e,success:t})=>{let r=Ns(Uc({success:t}));return[r,Ns(Ns(e)-r)]},"getPercentage"),RN=o(({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||hs.green,t||null]},"getStrokeColor"),ya=o((e,t,r)=>{let n=-1,i=-1;if(t==="step"){let s=r.steps,a=r.strokeWidth;typeof e=="string"||typeof e>"u"?(n=e==="small"?2:14,i=a??8):Oo(e)?[n,i]=[e,e]:[n=14,i=8]=Array.isArray(e)?e:[e.width,e.height],n*=s}else if(t==="line"){let s=r?.strokeWidth;typeof e=="string"||typeof e>"u"?i=s||(e==="small"?6:8):Oo(e)?[n,i]=[e,e]:[n=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[n,i]=e==="small"?[60,60]:[120,120]:Oo(e)?[n,i]=[e,e]:Array.isArray(e)&&(n=e[0]??e[1]??120,i=e[0]??e[1]??120));return[n,i]},"getSize");var Tz=3,Oz=o(e=>Tz/e*100,"getMinPercent"),EN=["root","body","indicator"],kz=o(e=>{let{prefixCls:t,classNames:r,styles:n,railColor:i,trailColor:s,strokeLinecap:a="round",gapPosition:l,gapPlacement:c,gapDegree:d,width:u=120,type:m,children:p,success:g,size:h=u,steps:b}=e,{direction:v}=Mt("progress"),x=i??s,[S,y]=ya(h,"circle"),{strokeWidth:C}=e;C===void 0&&(C=Math.max(Oz(S),6));let w={width:S,height:y,fontSize:S*.15+6},E=V(()=>{if(d||d===0)return d;if(m==="dashboard")return 75},[d,m]),R=wN(e),$=V(()=>{let A=(c??l)||m==="dashboard"&&"bottom"||void 0,B=v==="rtl";switch(A){case"start":return B?"right":"left";case"end":return B?"left":"right";default:return A}},[v,c,l,m]),I=Ut(e.strokeColor),T=RN({success:g,strokeColor:e.strokeColor}),M=O(`${t}-body`,{[`${t}-circle-gradient`]:I},r.body),N=f(_x,{steps:b,percent:b?R[1]:R,strokeWidth:C,railWidth:C,strokeColor:b?T[1]:T,strokeLinecap:a,railColor:x,prefixCls:t,gapDegree:E,gapPosition:$,classNames:_t(r,EN),styles:_t(n,EN)}),k=S<=20,D=f("div",{className:M,style:{...w,...n.body}},N,!k&&p);return k?f(kc,{title:p},D):D},"Circle"),$N=kz;var Rg="--progress-line-stroke-color",Dz=o(e=>{let t=e?"100%":"-100%";return new ir(`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}})},"genAntProgressActive"),Az=o(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{...hr(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},"genBaseStyle"),_z=o(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)"}}}}},"genLineStyle"),Lz=o(e=>{let{componentCls:t,iconCls:r}=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%)",[r]:{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"}}}},"genCircleStyle"),Bz=o(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}}}}}},"genStepStyle"),Fz=o(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${r}`]:{fontSize:e.fontSizeSM}}}},"genSmallLine"),Hz=o(e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),"prepareComponentToken"),IN=Ht("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=wt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Az(r),_z(r),Lz(r),Bz(r),Fz(r)]},Hz);var zz=o(e=>{let t=[];return Object.keys(e).forEach(r=>{let n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},"sortGradient"),Vz=o((e,t)=>{let{from:r=hs.blue,to:n=hs.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){let l=zz(s),c=`linear-gradient(${i}, ${l})`;return{background:c,[Rg]:c}}let a=`linear-gradient(${i}, ${r}, ${n})`;return{background:a,[Rg]:a}},"handleGradient"),jz=o(e=>{let{prefixCls:t,classNames:r,styles:n,direction:i,percent:s,size:a,strokeWidth:l,strokeColor:c,strokeLinecap:d="round",children:u,railColor:m,trailColor:p,percentPosition:g,success:h}=e,{align:b,type:v}=g,x=m??p,S=d==="square"||d==="butt"?0:void 0,y=a??[-1,l||(a==="small"?6:8)],[C,w]=ya(y,"line",{strokeWidth:l}),E={backgroundColor:x||void 0,borderRadius:S,height:w},R=`${t}-track`,$=c&&typeof c!="string"?Vz(c,i):{[Rg]:c,background:c},I={width:`${Ns(s)}%`,height:w,borderRadius:S,...$},T=Uc(e),M={width:`${Ns(T)}%`,height:w,borderRadius:S,backgroundColor:h?.strokeColor};return f("div",{className:O(`${t}-body`,r.body,{[`${t}-body-layout-bottom`]:b==="center"&&v==="outer"}),style:{width:C>0?C:"100%",...n.body}},f("div",{className:O(`${t}-rail`,r.rail),style:{...E,...n.rail}},f("div",{className:O(R,r.track),style:{...I,...n.track}},v==="inner"&&u),T!==void 0&&f("div",{className:O(R,`${R}-success`,r.track),style:{...M,...n.track}})),v==="outer"&&u)},"Line"),PN=jz;var Wz=o(e=>{let{classNames:t,styles:r,size:n,steps:i,rounding:s=Math.round,percent:a=0,strokeWidth:l=8,strokeColor:c,railColor:d,trailColor:u,prefixCls:m,children:p}=e,g=s(i*(a/100)),b=n??[n==="small"?2:14,l],[v,x]=ya(b,"step",{steps:i,strokeWidth:l}),S=v/i,y=Array.from({length:i}),C=d??u;for(let w=0;w<i;w++){let E=Array.isArray(c)?c[w]:c;y[w]=f("div",{key:w,className:O(`${m}-steps-item`,{[`${m}-steps-item-active`]:w<=g-1},t.track),style:{backgroundColor:w<=g-1?E:C,width:S,height:x,...r.track}})}return f("div",{className:O(`${m}-steps-body`,t.body),style:r.body},y,p)},"Steps"),NN=Wz;var Uz=["normal","exception","active","success"],qz=le((e,t)=>{let{prefixCls:r,className:n,rootClassName:i,classNames:s,styles:a,steps:l,strokeColor:c,percent:d=0,size:u="medium",showInfo:m=!0,type:p="line",status:g,format:h,style:b,percentPosition:v={},...x}=e,{align:S="end",type:y="outer"}=v,C=Array.isArray(c)?c[0]:c,w=typeof c=="string"||Array.isArray(c)?c:void 0,E=V(()=>{if(C){let oe=typeof C=="string"?C:Object.values(C)[0];return new ur(oe).isLight()}return!1},[c]),R=V(()=>{let oe=Uc(e);return Number.parseInt(oe!==void 0?(oe??0)?.toString():(d??0)?.toString(),10)},[d,e.success]),$=V(()=>!Uz.includes(g)&&R>=100?"success":g||"normal",[g,R]),{getPrefixCls:I,direction:T,className:M,style:N,classNames:k,styles:D}=Mt("progress"),A=I("progress",r),[B,L]=IN(A),F={...e,percent:d,type:p,size:u,showInfo:m,percentPosition:v},q=$t(N),X=$t(b),[W,j]=Qt([k,s],[D,q,a,X],{props:F}),Z=p==="line",J=Z&&!l,U=V(()=>{if(!m)return null;let oe=Uc(e),te,ie=h||(xe=>`${xe}%`),se=Z&&E&&y==="inner";return y==="inner"||h||$!=="exception"&&$!=="success"?te=ie(Ns(d),Ns(oe)):$==="exception"?te=Z?f(ta,null):f(Li,null):$==="success"&&(te=Z?f(ig,null):f(Sg,null)),f("span",{className:O(`${A}-indicator`,{[`${A}-indicator-bright`]:se,[`${A}-indicator-${S}`]:J,[`${A}-indicator-${y}`]:J},W.indicator),style:j.indicator,title:typeof te=="string"?te:void 0},te)},[m,d,R,$,p,A,h,Z,E,y,S,J,W.indicator,j.indicator]),ee={...e,classNames:W,styles:j},re;p==="line"?re=l?f(NN,{...ee,strokeColor:w,prefixCls:A,steps:Ut(l)?l.count:l},U):f(PN,{...ee,strokeColor:C,prefixCls:A,direction:T,percentPosition:{align:S,type:y}},U):(p==="circle"||p==="dashboard")&&(re=f($N,{...ee,strokeColor:C,prefixCls:A,progressStatus:$},U));let ne=O(A,`${A}-status-${$}`,{[`${A}-${p==="dashboard"&&"circle"||p}`]:p!=="line",[`${A}-inline-circle`]:p==="circle"&&ya(u,"circle")[0]<=20,[`${A}-line`]:J,[`${A}-line-align-${S}`]:J,[`${A}-line-position-${y}`]:J,[`${A}-steps`]:l,[`${A}-show-info`]:m,[`${A}-small`]:u==="small",[`${A}-rtl`]:T==="rtl"},M,n,i,W.root,B,L);return f("div",{ref:t,style:j.root,className:ne,role:"progressbar","aria-valuenow":R,"aria-valuemin":0,"aria-valuemax":100,..._t(x,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},re)}),MN=qz;var TN=MN;var ON=o((e,t)=>{if(!e)return null;let r={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:r.top,bottom:r.bottom,height:r.height}:{left:r.left,right:r.right,width:r.width,top:0,bottom:0,height:0}},"calcThumbStyle"),ss=o(e=>e!==void 0?`${e}px`:void 0,"toPX");function Lx(e){let{prefixCls:t,containerRef:r,value:n,getValueIndex:i,motionName:s,onMotionStart:a,onMotionEnd:l,direction:c,vertical:d=!1}=e,u=H(null),[m,p]=ce(n),g=o(R=>{let $=i(R),I=r.current?.querySelectorAll(`.${t}-item`)[$];return I?.offsetParent&&I},"findValueElement"),[h,b]=ce(null),[v,x]=ce(null);Pt(()=>{if(m!==n){let R=g(m),$=g(n),I=ON(R,d),T=ON($,d);p(n),b(I),x(T),R&&$?a():l()}},[n]);let S=V(()=>ss(d?h?.top??0:c==="rtl"?-h?.right:h?.left),[d,c,h]),y=V(()=>ss(d?v?.top??0:c==="rtl"?-v?.right:v?.left),[d,c,v]),C=o(()=>d?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},"onAppearStart"),w=o(()=>d?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},"onAppearActive"),E=o(()=>{b(null),x(null),l()},"onVisibleChanged");return!h||!v?null:f(Bo,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:C,onAppearActive:w,onVisibleChanged:E},({className:R,style:$},I)=>{let T={...$,"--thumb-start-left":S,"--thumb-start-width":ss(h?.width),"--thumb-active-left":y,"--thumb-active-width":ss(v?.width),"--thumb-start-top":S,"--thumb-start-height":ss(h?.height),"--thumb-active-top":y,"--thumb-active-height":ss(v?.height)},M={ref:qr(u,I),style:T,className:O(`${t}-thumb`,R)};return f("div",M)})}o(Lx,"MotionThumb");function Eg(){return Eg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Eg.apply(this,arguments)}o(Eg,"_extends");function Gz(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}o(Gz,"getValidTitle");function Xz(e){return e.map(t=>{if(typeof t=="object"&&t!==null){let r=Gz(t);return{...t,value:t.value,title:r}}return{label:t?.toString(),title:t?.toString(),value:t}})}o(Xz,"normalizeOptions");var Yz=o(({prefixCls:e,className:t,style:r,styles:n,classNames:i,data:s,disabled:a,checked:l,label:c,title:d,value:u,name:m,onChange:p,onFocus:g,onBlur:h,onKeyDown:b,onKeyUp:v,onMouseDown:x,itemRender:S=o(y=>y,"itemRender")})=>{let y=o(w=>{a||p(w,u)},"handleChange"),C=f("label",{className:O(t,{[`${e}-item-disabled`]:a}),style:r,onMouseDown:x},f("input",{name:m,className:`${e}-item-input`,type:"radio",disabled:a,checked:l,onChange:y,onFocus:g,onBlur:h,onKeyDown:b,onKeyUp:v}),f("div",{className:O(`${e}-item-label`,i?.label),title:d,style:n?.label},c));return S(C,{item:s})},"InternalSegmentedOption"),Kz=le((e,t)=>{let{prefixCls:r="rc-segmented",direction:n,vertical:i,options:s=[],disabled:a,defaultValue:l,value:c,name:d,onChange:u,className:m="",style:p,styles:g,classNames:h,motionName:b="thumb-motion",itemRender:v,...x}=e,S=H(null),y=V(()=>qr(S,t),[S,t]),C=V(()=>Xz(s),[s]),[w,E]=Ft(l??C[0]?.value,c),[R,$]=ce(!1),I=o((j,Z)=>{E(Z),u?.(Z)},"handleChange"),T=_t(x,["children"]),[M,N]=ce(!1),[k,D]=ce(!1),A=o(()=>{D(!0)},"handleFocus"),B=o(()=>{D(!1)},"handleBlur"),L=o(()=>{N(!1)},"handleMouseDown"),F=o(j=>{j.key==="Tab"&&N(!0)},"handleKeyUp"),q=o(j=>{let Z=C.filter(ne=>ne.value===w||!ne.disabled),J=Z.findIndex(ne=>ne.value===w),U=Z.length,ee=(J+j+U)%U,re=Z[ee];re&&re.value!==w&&(E(re.value),u?.(re.value))},"onOffset"),X=o(j=>{switch(j.key){case"ArrowLeft":case"ArrowUp":q(-1);break;case"ArrowRight":case"ArrowDown":q(1);break}},"handleKeyDown"),W=o(j=>{let{value:Z,disabled:J}=j;return f(Yz,Eg({},j,{name:d,data:j,itemRender:v,key:Z,prefixCls:r,className:O(j.className,`${r}-item`,h?.item,{[`${r}-item-selected`]:Z===w&&!R,[`${r}-item-selected-text`]:Z===w,[`${r}-item-focused`]:k&&M&&Z===w}),style:g?.item,classNames:h,styles:g,checked:Z===w,onChange:I,onFocus:A,onBlur:B,onKeyDown:X,onKeyUp:F,onMouseDown:L,disabled:!!a||!!J}))},"renderOption");return f("div",Eg({role:"radiogroup","aria-label":"segmented control",tabIndex:a?void 0:0,"aria-orientation":i?"vertical":"horizontal",style:p},T,{className:O(r,{[`${r}-rtl`]:n==="rtl",[`${r}-disabled`]:a,[`${r}-vertical`]:i},m),ref:y}),f("div",{className:`${r}-group`},f(Lx,{vertical:i,prefixCls:r,value:w,containerRef:S,motionName:`${r}-${b}`,direction:n,getValueIndex:o(j=>C.findIndex(Z=>Z.value===j),"getValueIndex"),onMotionStart:o(()=>{$(!0)},"onMotionStart"),onMotionEnd:o(()=>{$(!1)},"onMotionEnd")}),C.map(W)))}),Qz=Kz,kN=Qz;function DN(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}o(DN,"getItemDisabledStyle");var AN=o(e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),"getItemSelectedStyle"),Zz={overflow:"hidden",...en},Jz=o(e=>{let{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,motionDurationMid:i}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),a=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),l=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...hr(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Wn(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 ${i}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...AN(e),color:e.itemSelectedColor},"&-selected-text":{color:e.itemSelectedColor,transition:`color ${i}`},"&-focused":wn(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} ${i}`).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:s,lineHeight:Q(s),padding:`0 ${Q(e.segmentedPaddingHorizontal)}`,...Zz},"&-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`]:{...AN(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:a,lineHeight:Q(a),padding:`0 ${Q(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:Q(l),padding:`0 ${Q(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...DN(`&-disabled ${t}-item`,e),...DN(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(c=>`${c} ${r} ${n}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},"genSegmentedStyle"),eV=o(e=>{let{colorTextLabel:t,colorText:r,colorFillSecondary:n,colorBgElevated:i,colorFill:s,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:r,itemHoverBg:n,itemSelectedBg:i,itemActiveBg:s,itemSelectedColor:r}},"prepareComponentToken"),_N=Ht("Segmented",e=>{let{lineWidth:t,calc:r}=e,n=wt(e,{segmentedPaddingHorizontal:r(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:r(e.controlPaddingHorizontalSM).sub(t).equal()});return Jz(n)},eV);function tV(e){return Ut(e)&&!!e?.icon}o(tV,"isSegmentedLabeledOptionWithIcon");var rV=le((e,t)=>{let r=Wo(),{prefixCls:n,className:i,rootClassName:s,block:a,options:l=[],size:c,style:d,vertical:u,orientation:m,shape:p="default",name:g=r,styles:h,classNames:b,...v}=e,{getPrefixCls:x,direction:S,className:y,style:C,classNames:w,styles:E}=Mt("segmented"),R={...e,options:l,size:c,shape:p},$=$t(C),I=$t(d),[T,M]=Qt([w,b],[E,$,h,I],{props:R}),N=x("segmented",n),[k,D]=_N(N),A=Rr(c),B=V(()=>l.map(X=>{if(tV(X)){let{icon:W,label:j,...Z}=X;return{...Z,label:f(rr,null,f("span",{className:O(`${N}-item-icon`,T.icon),style:M.icon},W),yr(j)&&f("span",null,j))}}return X}),[l,N,T.icon,M.icon]),[,L]=hc(m,u),F=O(i,s,y,T.root,{[`${N}-block`]:a,[`${N}-sm`]:A==="small",[`${N}-lg`]:A==="large",[`${N}-vertical`]:L,[`${N}-shape-${p}`]:p==="round"},k,D),q=o((X,{item:W})=>{if(!W.tooltip)return X;let j=Ut(W.tooltip)?W.tooltip:{title:W.tooltip};return f(kc,{...j},X)},"itemRender");return f(kN,{...v,name:g,className:F,style:M.root,classNames:T,styles:M,itemRender:q,options:B,ref:t,prefixCls:N,direction:S,vertical:L})}),oV=rV,LN=oV;var Ri=["xxxl","xxl","xl","lg","md","sm","xs"],BN=[].concat(Ri).reverse(),nV=o(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),"getResponsiveMap"),iV=o(e=>{let t=e,r=[].concat(Ri).reverse();return r.forEach((n,i)=>{let s=n.toUpperCase(),a=`screen${s}Min`,l=`screen${s}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(i<r.length-1){let c=`screen${s}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${t[c]})`);let u=`screen${r[i+1].toUpperCase()}Min`;if(!(t[c]<=t[u]))throw new Error(`${c}<=${u} fails : !(${t[c]}<=${t[u]})`)}}),e},"validateBreakpoints");var sV=o(()=>{let[,e]=Gr(),t=nV(iV(e));return _.useMemo(()=>{let r=new Map,n=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return i=s,r.forEach(a=>{a(i)}),r.size>=1},subscribe(s){return r.size||this.register(),n+=1,r.set(n,s),s(i),n},unsubscribe(s){r.delete(s),r.size||this.unregister()},register(){Object.entries(t).forEach(([s,a])=>{let l=o(({matches:d})=>{this.dispatch({...i,[s]:d})},"listener"),c=window.matchMedia(a);er(c.addEventListener)&&c.addEventListener("change",l),this.matchHandlers[a]={mql:c,listener:l},l(c)})},unregister(){Object.values(t).forEach(s=>{let a=this.matchHandlers[s];er(a?.mql.removeEventListener)&&a.mql.removeEventListener("change",a?.listener)}),r.clear()}}},[t])},"useResponsiveObserver"),FN=sV;var Ms=o((e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new ur(e).onBackground(t).toHexString(),"getAsSolidColor");var aV=o(()=>{let[,e]=Gr(),[t]=Do("Empty"),{colorBgContainer:r,colorFill:n,colorFillSecondary:i,colorFillTertiary:s,colorTextQuaternary:a}=e,{panelBgColor:l,borderColor:c,detailColor:d,shadowColor:u,iconColor:m}=V(()=>({panelBgColor:Ms(s,r),borderColor:Ms(a,r),detailColor:Ms(n,r),shadowColor:Ms(i,r),iconColor:r}),[r,n,i,s,a]);return f("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},f("title",null,t?.description||"Empty"),f("g",{fill:"none",fillRule:"evenodd"},f("g",{transform:"translate(24 31.7)"},f("ellipse",{fillOpacity:".8",fill:u,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),f("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"}),f("path",{fill:l,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"}),f("path",{fill:d,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"})),f("path",{fill:d,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"}),f("g",{fill:m,transform:"translate(149.7 15.4)"},f("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),f("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},"Empty"),HN=aV;var lV=o(()=>{let[,e]=Gr(),[t]=Do("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:a,shadowColor:l,contentColor:c}=V(()=>({borderColor:Ms(r,s),shadowColor:Ms(n,s),contentColor:Ms(i,s)}),[r,n,i,s]);return f("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},f("title",null,t?.description||"Empty"),f("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},f("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),f("g",{fillRule:"nonzero",stroke:a},f("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),f("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}))))},"Simple"),zN=lV;var cV=o(e=>{let{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:s,lineHeight:a}=e;return{[t]:{marginInline:n,fontSize:s,lineHeight:a,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:r},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},"genSharedEmptyStyle"),VN=Ht("Empty",e=>{let{componentCls:t,controlHeightLG:r,calc:n}=e,i=wt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return cV(i)});var jN=f(HN,null),WN=f(zN,null),Bx=le((e,t)=>{let{className:r,rootClassName:n,prefixCls:i,image:s,description:a,children:l,imageStyle:c,style:d,classNames:u,styles:m,...p}=e,{getPrefixCls:g,direction:h,className:b,style:v,classNames:x,styles:S,image:y}=Mt("empty"),C=g("empty",i),[w,E]=VN(C),R=$t(v),$=$t(d),[I,T]=Qt([x,u],[S,R,m,$],{props:e}),[M]=Do("Empty"),N=typeof a<"u"?a:M?.description,k=typeof N=="string"?N:"empty",D=s??y??jN,A=null;typeof D=="string"?A=f("img",{draggable:!1,alt:k,src:D}):A=D;let B=H(null);return ft(t,()=>({nativeElement:B.current})),f("div",{ref:B,className:O(w,E,C,b,{[`${C}-normal`]:D===WN,[`${C}-rtl`]:h==="rtl"},r,n,I.root),style:T.root,...p},f("div",{className:O(`${C}-image`,I.image),style:{...c,...T.image}},A),yr(N)&&f("div",{className:O(`${C}-description`,I.description),style:T.description},N),yr(l)&&f("div",{className:O(`${C}-footer`,I.footer),style:T.footer},l))});Bx.PRESENTED_IMAGE_DEFAULT=jN;Bx.PRESENTED_IMAGE_SIMPLE=WN;var qc=Bx;var dV=o(e=>{let{componentName:t}=e,{getPrefixCls:r}=K(at),n=r("empty");switch(t){case"Table":case"List":return _.createElement(qc,{image:qc.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return _.createElement(qc,{image:qc.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return _.createElement(qc,null)}},"DefaultRenderEmpty"),$g=dV;var uV=bt({}),Ig=uV;function UN(e){return e==="auto"?"1 1 auto":Oo(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}o(UN,"parseFlex");var mV=le((e,t)=>{let{getPrefixCls:r,direction:n}=K(at),{gutter:i,wrap:s}=K(Ig),{prefixCls:a,span:l,order:c,offset:d,push:u,pull:m,className:p,children:g,flex:h,style:b,...v}=e,x=r("col",a),S=r(),[y,C]=iN(x),[w]=br(S,"col"),E={},R={};BN.forEach(T=>{let M={},N=e[T];Oo(N)?M.span=N:Ut(N)&&(M=N||{}),delete v[T],R={...R,[`${x}-${T}-${M.span}`]:lo(M.span),[`${x}-${T}-order-${M.order}`]:M.order||M.order===0,[`${x}-${T}-offset-${M.offset}`]:M.offset||M.offset===0,[`${x}-${T}-push-${M.push}`]:M.push||M.push===0,[`${x}-${T}-pull-${M.pull}`]:M.pull||M.pull===0,[`${x}-rtl`]:n==="rtl"},(M.flex||M.flex===0)&&(R[`${x}-${T}-flex`]=!0,E[w(`${T}-flex`)]=UN(M.flex))});let $=O(x,{[`${x}-${l}`]:l!==void 0,[`${x}-order-${c}`]:c,[`${x}-offset-${d}`]:d,[`${x}-push-${u}`]:u,[`${x}-pull-${m}`]:m},p,R,y,C),I={};if(i?.[0]){let T=Oo(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`;I.paddingInline=T}return(h||h===0)&&(I.flex=UN(h),s===!1&&!I.minWidth&&(I.minWidth=0)),f("div",{...v,style:{...I,...b,...E},className:$,ref:t},g)}),Fx=mV;function pV(e=!0,t={}){let r=H(t),[,n]=QE(),i=FN();return Pt(()=>{let s=i.subscribe(a=>{r.current=a,e&&n()});return()=>i.unsubscribe(s)},[e]),r.current}o(pV,"useBreakpoint");var Gc=pV;function Hx(e,t){let r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return n.forEach((s,a)=>{if(Ut(s))for(let l=0;l<Ri.length;l++){let c=Ri[l];if(i[c]&&s[c]!==void 0){r[a]=s[c];break}}else r[a]=s}),r}o(Hx,"useGutter");var qN=o((e,t)=>{if(cn(e))return e;if(Ut(e))for(let r=0;r<Ri.length;r++){let n=Ri[r];if(!t||!t[n])continue;let i=e[n];if(i!==void 0)return i}return""},"getMergedPropByScreen"),fV=le((e,t)=>{let{prefixCls:r,justify:n,align:i,className:s,style:a,children:l,gutter:c=0,wrap:d,...u}=e,{getPrefixCls:m,direction:p}=K(at),g=Gc(!0,null),h=qN(i,g),b=qN(n,g),v=m("row",r),[x,S]=nN(v),y=Hx(c,g),C=O(v,{[`${v}-no-wrap`]:d===!1,[`${v}-${b}`]:b,[`${v}-${h}`]:h,[`${v}-rtl`]:p==="rtl"},s,x,S),w={};if(y?.[0]){let I=Oo(y[0])?`${y[0]/-2}px`:`calc(${y[0]} / -2)`;w.marginInline=I}let[E,R]=y;w.rowGap=R;let $=V(()=>({gutter:[E,R],wrap:d}),[E,R,d]);return f(Ig.Provider,{value:$},f("div",{...u,className:C,style:{...w,...a},ref:t},l))}),zx=fV;var gV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},GN=gV;function Vx(){return Vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vx.apply(this,arguments)}o(Vx,"_extends");var hV=o((e,t)=>f(sr,Vx({},e,{ref:t,icon:GN})),"DoubleLeftOutlined"),bV=le(hV),jx=bV;var vV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},XN=vV;function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wx.apply(this,arguments)}o(Wx,"_extends");var yV=o((e,t)=>f(sr,Wx({},e,{ref:t,icon:XN})),"DoubleRightOutlined"),xV=le(yV),Ux=xV;var SV={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"},Pg=SV;var CV=[10,20,50,100],wV=o(e=>{let{pageSizeOptions:t=CV,locale:r,changeSize:n,pageSize:i,goButton:s,quickGo:a,rootPrefixCls:l,disabled:c,buildOptionText:d,showSizeChanger:u,sizeChangerRender:m}=e,[p,g]=_.useState(""),h=_.useMemo(()=>!p||Number.isNaN(p)?void 0:Number(p),[p]),b=typeof d=="function"?d:$=>`${$} ${r.items_per_page}`,v=o($=>{let I=$.target.value;/^\d*$/.test(I)&&g(I)},"handleChange"),x=o($=>{s||p===""||(g(""),!($.relatedTarget&&($.relatedTarget.className.includes(`${l}-item-link`)||$.relatedTarget.className.includes(`${l}-item`)))&&a?.(h))},"handleBlur"),S=o($=>{p!==""&&($.keyCode===xt.ENTER||$.type==="click")&&(g(""),a?.(h))},"go"),y=o(()=>t.some($=>$.toString()===i.toString())?t:t.concat([i]).sort(($,I)=>{let T=Number.isNaN(Number($))?0:Number($),M=Number.isNaN(Number(I))?0:Number(I);return T-M}),"getPageSizeOptions"),C=`${l}-options`;if(!u&&!a)return null;let w=null,E=null,R=null;return u&&m&&(w=m({disabled:c,size:i,onSizeChange:o($=>{n?.(Number($))},"onSizeChange"),"aria-label":r.page_size,className:`${C}-size-changer`,options:y().map($=>({label:b($),value:$}))})),a&&(s&&(R=typeof s=="boolean"?_.createElement("button",{type:"button",onClick:S,onKeyUp:S,disabled:c,className:`${C}-quick-jumper-button`},r.jump_to_confirm):_.createElement("span",{onClick:S,onKeyUp:S},s)),E=_.createElement("div",{className:`${C}-quick-jumper`},r.jump_to,_.createElement("input",{disabled:c,type:"text",value:p,onChange:v,onKeyUp:S,onBlur:x,"aria-label":r.page}),r.page,R)),_.createElement("li",{className:C},w,E)},"Options"),YN=wV;var RV=o(e=>{let{rootPrefixCls:t,page:r,active:n,className:i,style:s,showTitle:a,onClick:l,onKeyPress:c,itemRender:d}=e,u=`${t}-item`,m=O(u,`${u}-${r}`,{[`${u}-active`]:n,[`${u}-disabled`]:!r},i),p=o(()=>{l(r)},"handleClick"),g=o(b=>{c(b,l,r)},"handleKeyPress"),h=d(r,"page",_.createElement("a",{rel:"nofollow"},r));return h?_.createElement("li",{title:a?String(r):null,className:m,style:s,onClick:p,onKeyDown:g,tabIndex:0},h):null},"Pager"),Xc=RV;function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xa.apply(this,arguments)}o(xa,"_extends");var EV=o((e,t,r)=>r,"defaultItemRender");function qx(){}o(qx,"noop");function KN(e){let t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}o(KN,"isInteger");function vl(e,t,r){let n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}o(vl,"calculatePage");var $V=o(e=>{let{prefixCls:t="rc-pagination",selectPrefixCls:r="rc-select",className:n,classNames:i,styles:s,current:a,defaultCurrent:l=1,total:c=0,pageSize:d,defaultPageSize:u=10,onChange:m=qx,hideOnSinglePage:p,align:g,showPrevNextJumpers:h=!0,showQuickJumper:b,showLessItems:v,showTitle:x=!0,onShowSizeChange:S=qx,locale:y=Pg,style:C,totalBoundaryShowSizeChanger:w=50,disabled:E,simple:R,showTotal:$,showSizeChanger:I=c>w,sizeChangerRender:T,pageSizeOptions:M,itemRender:N=EV,jumpPrevIcon:k,jumpNextIcon:D,prevIcon:A,nextIcon:B}=e,L=_.useRef(null),[F,q]=Ft(u,d),[X,W]=Ft(l,a),j=Math.max(1,Math.min(X,vl(void 0,F,c))),[Z,J]=_.useState(j);fe(()=>{J(j)},[j]);let U=m!==qx,ee="current"in e,re=Math.max(1,j-(v?3:5)),ne=Math.min(vl(void 0,F,c),j+(v?3:5));function oe(ge,Ae){let ct=ge||_.createElement("button",{type:"button","aria-label":Ae,className:`${t}-item-link`});return typeof ge=="function"&&(ct=_.createElement(ge,e)),ct}o(oe,"getItemIcon");function te(ge){let Ae=ge.target.value,ct=vl(void 0,F,c),Be;return Ae===""?Be=Ae:Number.isNaN(Number(Ae))?Be=Z:Ae>=ct?Be=ct:Be=Number(Ae),Be}o(te,"getValidValue");function ie(ge){return KN(ge)&&ge!==j&&KN(c)&&c>0}o(ie,"isValid");let se=c>F?b:!1;function xe(ge){(ge.keyCode===xt.UP||ge.keyCode===xt.DOWN)&&ge.preventDefault()}o(xe,"handleKeyDown");function me(ge){let Ae=te(ge);switch(Ae!==Z&&J(Ae),ge.keyCode){case xt.ENTER:he(Ae);break;case xt.UP:he(Ae-1);break;case xt.DOWN:he(Ae+1);break;default:break}}o(me,"handleKeyUp");function Ee(ge){he(te(ge))}o(Ee,"handleBlur");function $e(ge){let Ae=vl(ge,F,c),ct=j>Ae&&Ae!==0?Ae:j;q(ge),J(ct),S?.(j,ge),W(ct),m?.(ct,ge)}o($e,"changePageSize");function he(ge){if(ie(ge)&&!E){let Ae=vl(void 0,F,c),ct=ge;return ge>Ae?ct=Ae:ge<1&&(ct=1),ct!==Z&&J(ct),W(ct),m?.(ct,F),ct}return j}o(he,"handleChange");let ye=j>1,He=j<vl(void 0,F,c);function Se(){ye&&he(j-1)}o(Se,"prevHandle");function Ce(){He&&he(j+1)}o(Ce,"nextHandle");function ue(){he(re)}o(ue,"jumpPrevHandle");function Pe(){he(ne)}o(Pe,"jumpNextHandle");function ve(ge,Ae,...ct){(ge.key==="Enter"||ge.charCode===xt.ENTER||ge.keyCode===xt.ENTER)&&Ae(...ct)}o(ve,"runIfEnter");function Ue(ge){ve(ge,Se)}o(Ue,"runIfEnterPrev");function pe(ge){ve(ge,Ce)}o(pe,"runIfEnterNext");function Oe(ge){ve(ge,ue)}o(Oe,"runIfEnterJumpPrev");function Ie(ge){ve(ge,Pe)}o(Ie,"runIfEnterJumpNext");function ke(ge){let Ae=N(ge,"prev",oe(A,"prev page"));return _.isValidElement(Ae)?_.cloneElement(Ae,{disabled:!ye}):Ae}o(ke,"renderPrev");function We(ge){let Ae=N(ge,"next",oe(B,"next page"));return _.isValidElement(Ae)?_.cloneElement(Ae,{disabled:!He}):Ae}o(We,"renderNext");function ze(ge){(ge.type==="click"||ge.keyCode===xt.ENTER)&&he(Z)}o(ze,"handleGoTO");let Ne=null,lt=Zr(e,{aria:!0,data:!0}),qe=$&&_.createElement("li",{className:`${t}-total-text`},$(c,[c===0?0:(j-1)*F+1,j*F>c?c:j*F])),Ze=null,je=vl(void 0,F,c);if(p&&c<=F)return null;let gt=[],rt={rootPrefixCls:t,onClick:he,onKeyPress:ve,showTitle:x,itemRender:N,page:-1,className:i?.item,style:s?.item},qt=j-1>0?j-1:0,Tt=j+1<je?j+1:je,Xe=b&&b.goButton,Rt=typeof R=="object"?R.readOnly:!R,Lt=Xe,jt=null;R&&(Xe&&(typeof Xe=="boolean"?Lt=_.createElement("button",{type:"button",onClick:ze,onKeyUp:ze},y.jump_to_confirm):Lt=_.createElement("span",{onClick:ze,onKeyUp:ze},Xe),Lt=_.createElement("li",{title:x?`${y.jump_to}${j}/${je}`:null,className:`${t}-simple-pager`},Lt)),jt=_.createElement("li",{title:x?`${j}/${je}`:null,className:O(`${t}-simple-pager`,i?.item),style:s?.item},Rt?Z:_.createElement("input",{type:"text","aria-label":y.jump_to,value:Z,disabled:E,onKeyDown:xe,onKeyUp:me,onChange:me,onBlur:Ee,size:3}),_.createElement("span",{className:`${t}-slash`},"/"),je));let Ve=v?1:2;if(je<=3+Ve*2){je||gt.push(_.createElement(Xc,xa({},rt,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let ge=1;ge<=je;ge+=1)gt.push(_.createElement(Xc,xa({},rt,{key:ge,page:ge,active:j===ge})))}else{let ge=v?y.prev_3:y.prev_5,Ae=v?y.next_3:y.next_5,ct=N(re,"jump-prev",oe(k,"prev page")),Be=N(ne,"jump-next",oe(D,"next page"));h&&(Ne=ct?_.createElement("li",{title:x?ge:null,key:"prev",onClick:ue,tabIndex:0,onKeyDown:Oe,className:O(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!k})},ct):null,Ze=Be?_.createElement("li",{title:x?Ae:null,key:"next",onClick:Pe,tabIndex:0,onKeyDown:Ie,className:O(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!D})},Be):null);let ut=Math.max(1,j-Ve),Je=Math.min(j+Ve,je);j-1<=Ve&&(Je=1+Ve*2),je-j<=Ve&&(ut=je-Ve*2);let Ct=!!Ne&&j-1>=Ve*2&&j!==3,Gt=!!Ze&&je-j>=Ve*2&&j!==je-2;!v&&Ct&&Je!==je&&(ut+=1),!v&&Gt&&ut!==1&&(Je-=1);for(let Xt=ut;Xt<=Je;Xt+=1)gt.push(_.createElement(Xc,xa({},rt,{key:Xt,page:Xt,active:j===Xt})));if(Ct&&(gt[0]=_.cloneElement(gt[0],{className:O(`${t}-item-after-jump-prev`,gt[0].props.className)}),gt.unshift(Ne)),Gt){let Xt=gt[gt.length-1];gt[gt.length-1]=_.cloneElement(Xt,{className:O(`${t}-item-before-jump-next`,Xt.props.className)}),gt.push(Ze)}ut!==1&&gt.unshift(_.createElement(Xc,xa({},rt,{key:1,page:1}))),Je!==je&&gt.push(_.createElement(Xc,xa({},rt,{key:je,page:je})))}let it=ke(qt);if(it){let ge=!ye||!je;it=_.createElement("li",{title:x?y.prev_page:null,onClick:Se,tabIndex:ge?null:0,onKeyDown:Ue,className:O(`${t}-prev`,i?.item,{[`${t}-disabled`]:ge}),style:s?.item,"aria-disabled":ge},it)}let Fe=We(Tt);if(Fe){let ge,Ae;R?(ge=!He,Ae=ye?0:null):(ge=!He||!je,Ae=ge?null:0),Fe=_.createElement("li",{title:x?y.next_page:null,onClick:Ce,tabIndex:Ae,onKeyDown:pe,className:O(`${t}-next`,i?.item,{[`${t}-disabled`]:ge}),style:s?.item,"aria-disabled":ge},Fe)}let Wt=O(t,n,{[`${t}-start`]:g==="start",[`${t}-center`]:g==="center",[`${t}-end`]:g==="end",[`${t}-simple`]:R,[`${t}-disabled`]:E});return _.createElement("ul",xa({className:Wt,style:C,ref:L},lt),qe,it,R?jt:gt,Fe,_.createElement(YN,{locale:y,rootPrefixCls:t,disabled:E,selectPrefixCls:r,changeSize:$e,pageSize:F,pageSizeOptions:M,quickGo:se?he:null,goButton:Lt,showSizeChanger:I,sizeChangerRender:T}))},"Pagination"),Gx=$V;var QN=o((e,t,r,n,i=!1,s,a)=>{let l=V(()=>typeof r=="boolean"?{allowClear:r}:r&&typeof r=="object"?r:{allowClear:!1},[r]);return V(()=>{let c=!i&&l.allowClear!==!1&&(t.length||s)&&!(a==="combobox"&&s==="");return{allowClear:c,clearIcon:c?l.clearIcon||n||"\xD7":null,label:c?l.label??"Clear":""}},[l,n,i,t.length,s,a])},"useAllowClear");var Xx=bt(null);function En(){return K(Xx)}o(En,"useBaseProps");function Yx(e=250){let t=H(null),r=H(null);fe(()=>()=>{window.clearTimeout(r.current)},[]);function n(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(r.current),r.current=window.setTimeout(()=>{t.current=null},e)}return o(n,"doLock"),[()=>t.current,n]}o(Yx,"useLock");function Kx(e,t){return e.filter(r=>r).some(r=>r.contains(t)||r===t)}o(Kx,"isInside");function Qx(e,t,r,n){let i=De(s=>{if(n)return;let a=s.target;a.shadowRoot&&s.composed&&(a=s.composedPath()[0]||a),s._ori_target&&(a=s._ori_target),t&&!Kx(e(),a)&&r(!1)});fe(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}o(Qx,"useSelectTriggerControl");function Zx(){return Zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zx.apply(this,arguments)}o(Zx,"_extends");var IV=o(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"}}},"getBuiltInPlacements"),PV=o((e,t)=>{let{prefixCls:r,disabled:n,visible:i,children:s,popupElement:a,animation:l,transitionName:c,popupStyle:d,popupClassName:u,direction:m="ltr",placement:p,builtinPlacements:g,popupMatchSelectWidth:h,popupRender:b,popupAlign:v,getPopupContainer:x,empty:S,onPopupVisibleChange:y,onPopupMouseEnter:C,onPopupMouseDown:w,onPopupBlur:E,...R}=e,$=`${r}-dropdown`,I=a;b&&(I=b(a));let T=V(()=>g||IV(h),[g,h]),M=l?`${$}-${l}`:c,N=typeof h=="number",k=V(()=>h===!1||N?"minWidth":"width",[h,N]),D=d;N&&(D={...d,width:h});let A=H(null);return ft(t,()=>({getPopupElement:o(()=>A.current?.popupElement,"getPopupElement")})),f(Ji,Zx({},R,{showAction:y?["click"]:[],hideAction:y?["click"]:[],popupPlacement:p||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:$,popupMotion:{motionName:M},popup:f("div",{onMouseEnter:C,onMouseDown:w,onBlur:E},I),ref:A,stretch:k,popupAlign:v,popupVisible:i,getPopupContainer:x,popupClassName:O(u,{[`${$}-empty`]:S}),popupStyle:D,onPopupVisibleChange:y}),s)},"SelectTrigger"),NV=le(PV),ZN=NV;function JN(e,t){let{key:r}=e,n;return"value"in e&&({value:n}=e),r??(n!==void 0?n:`rc-index-key-${t}`)}o(JN,"getKey");function Iu(e){return typeof e<"u"&&!Number.isNaN(e)}o(Iu,"isValidCount");function Jx(e,t){let{label:r,value:n,options:i,groupLabel:s}=e||{},a=r||(t?"children":"label");return{label:a,value:n||"value",options:i||"options",groupLabel:s||a}}o(Jx,"fillFieldNames");function eM(e,{fieldNames:t,childrenAsData:r}={}){let n=[],{label:i,value:s,options:a,groupLabel:l}=Jx(t,!1);function c(d,u){Array.isArray(d)&&d.forEach(m=>{if(u||!(a in m)){let p=m[s];n.push({key:JN(m,n.length),groupOption:u,data:m,label:m[i],value:p})}else{let p=m[l];p===void 0&&r&&(p=m.label),n.push({key:JN(m,n.length),group:!0,data:m,label:p}),c(m[a],!0)}})}return o(c,"dig"),c(e,!1),n}o(eM,"flattenOptions");function Pu(e){let t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return Hr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}o(Pu,"injectPropsWithOption");var tM=o((e,t,r)=>{if(!t||!t.length)return null;let n=!1,i=o((a,[l,...c])=>{if(!l)return[a];let d=a.split(l);return n=n||d.length>1,d.reduce((u,m)=>[...u,...i(m,c)],[]).filter(Boolean)},"separate"),s=i(e,t);return n?typeof r<"u"?s.slice(0,r):s:null},"getSeparatedContent");function eS(e){let{visible:t,values:r}=e;if(!t)return null;let n=50;return f("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${r.slice(0,n).map(({label:i,value:s})=>["number","string"].includes(typeof i)?i:s).join(", ")}`,r.length>n?", ...":null)}o(eS,"Polite");var MV=o(e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},"internalMacroTask"),Ng=o((e,t=1)=>{if(t<=0){e();return}MV(()=>{Ng(e,t-1)})},"macroTask");function tS(e,t,r,n){let[i,s]=ce(!1);fe(()=>{s(!0)},[]);let[a,l]=Ft(e,t),[c,d]=ce(!1),u=i?a:!1,m=n(u),p=H(0),g=De(b=>{r&&m!==b&&r(b),l(b)}),h=De((b,v={})=>{let{cancelFun:x}=v;p.current+=1;let S=p.current,y=typeof b=="boolean"?b:!m;d(!y);function C(){S===p.current&&!x?.()&&(g(y),d(!1))}o(C,"triggerUpdate"),y?C():Ng(()=>{C()})});return[u,m,h,c]}o(tS,"useOpen");function Mg(e){let{children:t,...r}=e;return t?f("div",r,t):null}o(Mg,"Affix");var rM=bt(null);function as(){return K(rM)}o(as,"useSelectInputContext");var oM=rM;var TV=le((e,t)=>{let{onChange:r,onKeyDown:n,onBlur:i,style:s,syncWidth:a,value:l,className:c,autoComplete:d,...u}=e,{prefixCls:m,mode:p,onSearch:g,onSearchSubmit:h,onInputBlur:b,autoFocus:v,tokenWithEnter:x,placeholder:S,components:{input:y="input"}}=as(),{id:C,classNames:w,styles:E,open:R,activeDescendantId:$,role:I,disabled:T}=En()||{},M=O(`${m}-input`,w?.input,c),N=H(!1),k=H(null),D=H(null);ft(t,()=>D.current);let A=o(U=>{let{value:ee}=U.target;if(x&&k.current&&/[\r\n]/.test(k.current)){let re=k.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");ee=ee.replace(re,k.current)}k.current=null,g&&g(ee,!0,N.current),r?.(U)},"handleChange"),B=o(U=>{let{key:ee}=U,{value:re}=U.currentTarget;ee==="Enter"&&p==="tags"&&!R&&!N.current&&h&&h(re),n?.(U)},"handleKeyDown"),L=o(U=>{b?.(),i?.(U)},"handleBlur"),F=o(()=>{N.current=!0},"handleCompositionStart"),q=o(U=>{if(N.current=!1,p!=="combobox"){let{value:ee}=U.currentTarget;g?.(ee,!0,!1)}},"handleCompositionEnd"),X=o(U=>{let{clipboardData:ee}=U,re=ee?.getData("text");k.current=re||""},"handlePaste"),[W,j]=ce(void 0);Pt(()=>{let U=D.current;if(a&&U){U.style.width="0px";let ee=U.scrollWidth;j(ee),U.style.width=""}},[a,l]);let Z={id:C,type:"text",...u,ref:D,style:{...E?.input,...s,"--select-input-width":W},autoFocus:v,autoComplete:d||"new-password",className:M,disabled:T,value:l||"",onChange:A,onKeyDown:B,onBlur:L,onPaste:X,onCompositionStart:F,onCompositionEnd:q,role:I||"combobox","aria-expanded":R||!1,"aria-haspopup":"listbox","aria-owns":R?`${C}_list`:void 0,"aria-autocomplete":"list","aria-controls":R?`${C}_list`:void 0,"aria-activedescendant":R?$:void 0};if(Tr(y)){let U=y.props||{},ee={placeholder:e.placeholder||S,...Z,...U};return Object.keys(U).forEach(re=>{let ne=U[re];typeof ne=="function"&&(ee[re]=(...oe)=>{ne(...oe),Z[re]?.(...oe)})}),ee.ref=qr(y.ref,Z.ref),so(y,ee)}return f(y,Z)}),Tg=TV;function Nu(e){let{prefixCls:t,placeholder:r,displayValues:n}=as(),{classNames:i,styles:s}=En(),{show:a=!0}=e;return n.length?null:f("div",{className:O(`${t}-placeholder`,i?.placeholder),style:{...a?{}:{visibility:"hidden"},...s?.placeholder}},r)}o(Nu,"Placeholder");var OV=bt(null),Yc=OV;function Mu(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}o(Mu,"toArray");var yAe=typeof window<"u"&&window.document&&window.document.documentElement;function iM(e){return e!=null}o(iM,"hasValue");function sM(e){return!e&&e!==0}o(sM,"isComboNoValue");function nM(e){return["string","number"].includes(typeof e)}o(nM,"isTitleType");function Tu(e){let t;return e&&(nM(e.title)?t=e.title.toString():nM(e.label)&&(t=e.label.toString())),t}o(Tu,"getTitle");function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rS.apply(this,arguments)}o(rS,"_extends");var kV=le(({inputProps:e},t)=>{let{prefixCls:r,searchValue:n,activeValue:i,displayValues:s,maxLength:a,mode:l,components:c}=as(),{triggerOpen:d,title:u,showSearch:m,classNames:p,styles:g}=En(),h=K(Yc),[b,v]=ce(!1),x=l==="combobox",S=s[0],y=V(()=>x&&i&&!b&&d?i:m?n:"",[x,i,b,d,n,m]),[C,w,E,R]=V(()=>{let M,N,k;if(S&&h?.flattenOptions){let A=h.flattenOptions.find(B=>B.value===S.value);A?.data&&(M=A.data.className,N=A.data.style,k=Tu(A.data))}return S&&!k&&(k=Tu(S)),u!==void 0&&(k=u),[M,N,k,!!M||!!N]},[S,h?.flattenOptions,u]);fe(()=>{x&&v(!1)},[x,i]);let $=S&&S.label!==null&&S.label!==void 0&&String(S.label).trim()!=="",T=!(x&&c?.input)?S?R?f("div",{className:O(`${r}-content-value`,C),style:{...y?{visibility:"hidden"}:{},...w},title:E},S.label):S.label:f(Nu,{show:!y}):null;return f("div",{className:O(`${r}-content`,$&&`${r}-content-has-value`,y&&`${r}-content-has-search-value`,R&&`${r}-content-has-option-style`,p?.content),style:g?.content,title:R?void 0:E},T,f(Tg,rS({ref:t},e,{value:y,maxLength:l==="combobox"?a:void 0,onChange:o(M=>{v(!0),e.onChange?.(M)},"onChange")})))}),aM=kV;var DV=o(e=>{let{className:t,style:r,customizeIcon:n,customizeIconProps:i,children:s,onMouseDown:a,onClick:l}=e,c=typeof n=="function"?n(i):n;return f("span",{className:t,onMouseDown:o(d=>{d.preventDefault(),a?.(d)},"onMouseDown"),style:{userSelect:"none",WebkitUserSelect:"none",...r},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:f("span",{className:O(t.split(/\s+/).map(d=>`${d}-icon`))},s))},"TransBtn"),Og=DV;function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oS.apply(this,arguments)}o(oS,"_extends");function AV(e){return e.key??e.value}o(AV,"itemKey");var lM=o(e=>{e.preventDefault(),e.stopPropagation()},"onPreventMouseDown"),cM=le(o(function({inputProps:t},r){let{prefixCls:n,displayValues:i,searchValue:s,mode:a,onSelectorRemove:l,removeIcon:c}=as(),{disabled:d,showSearch:u,triggerOpen:m,rawOpen:p,toggleOpen:g,autoClearSearchValue:h,tagRender:b,maxTagPlaceholder:v,maxTagTextLength:x,maxTagCount:S,classNames:y,styles:C}=En(),w=`${n}-selection-item`,E=s;!p&&a==="multiple"&&h!==!1&&(E="");let R=u&&E||"",$=u&&!d,I=c??"\xD7",T=v??(F=>`+ ${F.length} ...`),M=b,N=o(F=>{g(F)},"onToggleOpen"),k=o(F=>{l?.(F)},"onRemove"),D=o((F,q,X,W,j)=>f("span",{title:Tu(F),className:O(w,{[`${w}-disabled`]:X},y?.item),style:C?.item},f("span",{className:O(`${w}-content`,y?.itemContent),style:C?.itemContent},q),W&&f(Og,{className:O(`${w}-remove`,y?.itemRemove),style:C?.itemRemove,onMouseDown:lM,onClick:j,customizeIcon:I},"\xD7")),"defaultRenderSelector"),A=o((F,q,X,W,j,Z,J)=>f("span",{onMouseDown:o(ee=>{lM(ee),N(!m)},"onMouseDown")},M({label:q,value:F,index:J?.index,disabled:X,closable:W,onClose:j,isMaxTag:!!Z})),"customizeRenderSelector"),B=o((F,q)=>{let{disabled:X,label:W,value:j}=F,Z=!d&&!X,J=W;if(typeof x=="number"&&(typeof W=="string"||typeof W=="number")){let ee=String(J);ee.length>x&&(J=`${ee.slice(0,x)}...`)}let U=o(ee=>{ee&&ee.stopPropagation(),k(F)},"onClose");return typeof M=="function"?A(j,J,X,Z,U,void 0,q):D(F,J,X,Z,U)},"renderItem"),L=o(F=>{if(!i.length)return null;let q=typeof T=="function"?T(F):T;return typeof M=="function"?A(void 0,q,!1,!1,void 0,!0):D({title:q},q,!1)},"renderRest");return f(Ci,{prefixCls:`${n}-content`,className:y?.content,style:C?.content,prefix:!i.length&&!R&&f(Nu,null),data:i,renderItem:B,renderRest:L,suffix:f(Tg,oS({ref:r,disabled:d,readOnly:!$},t,{value:R||"",syncWidth:!0})),itemKey:AV,maxCount:S})},"MultipleContent"));var _V=le(o(function(t,r){let{multiple:n,onInputKeyDown:i,tabIndex:s}=as(),a=En(),{showSearch:l}=a,d={...Zr(a,{aria:!0}),onKeyDown:i,readOnly:!l,tabIndex:s};return n?f(cM,{ref:r,inputProps:d}):f(aM,{ref:r,inputProps:d})},"SelectContent")),dM=_V;function uM(e){return e&&![xt.ESC,xt.SHIFT,xt.BACKSPACE,xt.TAB,xt.WIN_KEY,xt.ALT,xt.META,xt.WIN_KEY_RIGHT,xt.CTRL,xt.SEMICOLON,xt.EQUALS,xt.CAPS_LOCK,xt.CONTEXT_MENU,xt.UP,xt.LEFT,xt.RIGHT,xt.F1,xt.F2,xt.F3,xt.F4,xt.F5,xt.F6,xt.F7,xt.F8,xt.F9,xt.F10,xt.F11,xt.F12].includes(e)}o(uM,"isValidateOpenKey");function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kg.apply(this,arguments)}o(kg,"_extends");var LV=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],mM=le(o(function(t,r){let{prefixCls:n,className:i,style:s,prefix:a,suffix:l,clearIcon:c,clearLabel:d,children:u,multiple:m,displayValues:p,placeholder:g,mode:h,searchValue:b,onSearch:v,onSearchSubmit:x,onInputBlur:S,maxLength:y,autoFocus:C,onMouseDown:w,onClearMouseDown:E,onInputKeyDown:R,onSelectorRemove:$,tokenWithEnter:I,components:T,...M}=t,{triggerOpen:N,toggleOpen:k,showSearch:D,disabled:A,loading:B,classNames:L,styles:F}=En(),q=H(null),X=H(null),W=De(oe=>{let{which:te}=oe,ie=X.current instanceof HTMLTextAreaElement;if(!ie&&N&&(te===xt.UP||te===xt.DOWN)&&oe.preventDefault(),R&&R(oe),ie&&!N&&~[xt.UP,xt.DOWN,xt.LEFT,xt.RIGHT].indexOf(te))return;!(oe.ctrlKey||oe.altKey||oe.metaKey)&&uM(te)&&k(!0)});ft(r,()=>({focus:o(oe=>{(X.current||q.current).focus?.(oe)},"focus"),blur:o(()=>{(X.current||q.current).blur?.()},"blur"),nativeElement:ei(q.current)}));let j=De(oe=>{if(!A){let te=ei(X.current);oe.nativeEvent._ori_target=te;let ie=te===oe.target||te?.contains(oe.target);te&&!ie&&oe.preventDefault();let me=N&&!m&&(h==="combobox"||D)||N&&m&&ie;oe.nativeEvent._select_lazy?N&&!m&&k(!1):(X.current?.focus(),me||k())}w?.(oe)}),Z=o(oe=>{(oe.key==="Enter"||oe.key===" ")&&oe.stopPropagation()},"onClearKeyDown"),{root:J}=T,U=_t(M,LV),ee=Zr(U,{aria:!0}),re=Object.keys(ee),ne={...t,onInputKeyDown:W};if(J){let oe=J.props||{},te={...oe,...U};return Object.keys(oe).forEach(ie=>{let se=oe[ie],xe=U[ie];typeof se=="function"&&typeof xe=="function"&&(te[ie]=(...me)=>{xe(...me),se(...me)})}),Tr(J)?so(J,{...te,ref:qr(J.ref,q)}):f(J,kg({},te,{ref:q}))}return f(oM.Provider,{value:ne},f("div",kg({},_t(U,re),{ref:q,className:i,style:s,onMouseDown:j}),f(Mg,{className:O(`${n}-prefix`,L?.prefix),style:F?.prefix},a),f(dM,{ref:X}),f(Mg,{className:O(`${n}-suffix`,{[`${n}-suffix-loading`]:B},L?.suffix),style:F?.suffix},l),c&&f("button",{type:"button","aria-label":d,className:O(`${n}-clear`,L?.clear),style:F?.clear,onMouseDown:o(oe=>{oe.preventDefault(),oe.nativeEvent._select_lazy=!0},"onMouseDown"),onKeyDown:Z,onClick:E},c),u))},"SelectInput"));function nS(e,t,r){return V(()=>{let{root:n,input:i}=e||{};return r&&(n=r()),t&&(i=t()),{root:n,input:i}},[e,t,r])}o(nS,"useComponents");function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iS.apply(this,arguments)}o(iS,"_extends");var Ou=o(e=>e==="tags"||e==="multiple","isMultiple"),BV=le((e,t)=>{let{id:r,prefixCls:n,className:i,styles:s,classNames:a,showSearch:l,tagRender:c,showScrollBar:d="optional",direction:u,omitDomProps:m,displayValues:p,onDisplayValuesChange:g,emptyOptions:h,notFoundContent:b="Not Found",onClear:v,maxCount:x,placeholder:S,mode:y,disabled:C,loading:w,getInputElement:E,getRawInputElement:R,open:$,defaultOpen:I,onPopupVisibleChange:T,activeValue:M,onActiveValueChange:N,activeDescendantId:k,searchValue:D,autoClearSearchValue:A,onSearch:B,onSearchSplit:L,tokenSeparators:F,allowClear:q,prefix:X,suffix:W,suffixIcon:j,clearIcon:Z,OptionList:J,animation:U,transitionName:ee,popupStyle:re,popupClassName:ne,popupMatchSelectWidth:oe,popupRender:te,popupAlign:ie,placement:se,builtinPlacements:xe,getPopupContainer:me,showAction:Ee=[],onFocus:$e,onBlur:he,onKeyUp:ye,onKeyDown:He,onMouseDown:Se,components:Ce,...ue}=e,Pe=Ou(y),ve=H(null),Ue=H(null),pe=H(null),[Oe,Ie]=ce(!1);ft(t,()=>({focus:ve.current?.focus,blur:ve.current?.blur,scrollTo:o(vt=>pe.current?.scrollTo(vt),"scrollTo"),nativeElement:ei(ve.current)}));let ke=nS(Ce,E,R),We=V(()=>{if(y!=="combobox")return D;let vt=p[0]?.value;return typeof vt=="string"||typeof vt=="number"?String(vt):""},[D,y,p]),ze=y==="combobox"&&typeof E=="function"&&E()||null,Ne=!b&&h,[lt,qe,Ze,je]=tS(I||!1,$,T,vt=>C||Ne?!1:vt),gt=V(()=>typeof F=="function"||(F||[]).some(vt=>[`
244
- `,`\r
245
- `].includes(vt)),[F]),rt=V(()=>typeof F=="function"?(vt,kt)=>{let xr=F(vt),Br=Array.isArray(xr)&&xr.length===1&&xr[0]===vt;return!Array.isArray(xr)||!xr.length||Br?null:typeof kt<"u"?xr.slice(0,kt):xr}:(vt,kt)=>tM(vt,F,kt),[F]),qt=o((vt,kt,xr)=>{if(Pe&&Iu(x)&&p.length>=x)return;let Br=!0,pr=vt;N?.(null);let Or=Iu(x)?x-p.length:void 0,Co=xr?null:rt(vt,Or);return y!=="combobox"&&Co&&(pr="",L?.(Co),Ze(!1),Br=!1),B&&We!==pr&&B(pr,{source:kt?"typing":"effect"}),vt&&kt&&Br&&Ze(!0),Br},"onInternalSearch"),Tt=o(vt=>{!vt||!vt.trim()||B(vt,{source:"submit"})},"onInternalSearchSubmit");fe(()=>{!lt&&!Pe&&y!=="combobox"&&qt("",!1,!1)},[lt]),fe(()=>{C&&(Ze(!1),Ie(!1))},[C,qe]);let[Xe,Rt]=Yx(),Lt=H(!1),jt=o(vt=>{let kt=Xe(),{key:xr}=vt,Br=xr==="Enter",pr=xr===" ";if(Br||pr){let Or=y==="combobox";(pr&&!(Or||l)||Br&&!Or)&&vt.preventDefault(),qe||Ze(!0)}if(Rt(!!We),xr==="Backspace"&&!kt&&Pe&&!We&&p.length){let Or=[...p],Co=null;for(let _o=Or.length-1;_o>=0;_o-=1){let mn=Or[_o];if(!mn.disabled){Or.splice(_o,1),Co=mn;break}}Co&&g(Or,{type:"remove",values:[Co]})}qe&&(!Br||!Lt.current)&&!pr&&(Br&&(Lt.current=!0),pe.current?.onKeyDown(vt)),He?.(vt)},"onInternalKeyDown"),Ve=o((vt,...kt)=>{qe&&pe.current?.onKeyUp(vt,...kt),vt.key==="Enter"&&(Lt.current=!1),ye?.(vt,...kt)},"onInternalKeyUp"),it=De(vt=>{let kt=p.filter(xr=>xr!==vt);g(kt,{type:"remove",values:[vt]})}),Fe=o(()=>{Lt.current=!1},"onInputBlur"),Wt=o(()=>[ei(ve.current),Ue.current?.getPopupElement()],"getSelectElements");Qx(Wt,qe,Ze,!!ke.root);let ge=H(!1),Ae=o(vt=>{Ie(!0),C||(Ee.includes("focus")&&Ze(!0),$e?.(vt))},"onInternalFocus"),ct=o(()=>{qe&&!ge.current&&Ze(!1,{cancelFun:o(()=>Kx(Wt(),document.activeElement),"cancelFun")})},"onRootBlur"),Be=o(vt=>{Ie(!1),We&&(y==="tags"?B(We,{source:"submit"}):y==="multiple"&&B("",{source:"blur"})),ct(),C||he?.(vt)},"onInternalBlur"),ut=o((vt,...kt)=>{let{target:xr}=vt;Ue.current?.getPopupElement()?.contains(xr)&&Ze&&Ze(!0),Se?.(vt,...kt),ge.current=!0,Ng(()=>{ge.current=!1})},"onRootMouseDown"),[,Je]=ce({});function Ct(){Je({})}o(Ct,"onPopupMouseEnter");let Gt;ke.root&&(Gt=o(vt=>{Ze(vt)},"onTriggerVisibleChange"));let Xt=V(()=>({...e,notFoundContent:b,open:qe,triggerOpen:qe,rawOpen:lt,id:r,showSearch:l,multiple:Pe,toggleOpen:Ze,showScrollBar:d,styles:s,classNames:a,lockOptions:je}),[e,b,Ze,r,l,Pe,qe,lt,d,s,a,je]),Er=V(()=>{let vt=W??j;return typeof vt=="function"?vt({searchValue:We,open:qe,focused:Oe,showSearch:l,loading:w}):vt},[W,j,We,qe,Oe,l,w]),Sr=o(()=>{v?.(),ve.current?.focus(),g([],{type:"clear",values:p}),qt("",!1,!1)},"onClearMouseDown"),{allowClear:zr,clearIcon:Ke,label:So}=QN(n,p,q,Z,C,We,y),Et=f(J,{ref:pe}),zt=O(n,i,{[`${n}-focused`]:Oe,[`${n}-multiple`]:Pe,[`${n}-single`]:!Pe,[`${n}-allow-clear`]:zr,[`${n}-show-arrow`]:Er!=null,[`${n}-disabled`]:C,[`${n}-loading`]:w,[`${n}-open`]:qe,[`${n}-customize-input`]:ze,[`${n}-show-search`]:l}),Kt=f(mM,iS({},ue,{ref:ve,prefixCls:n,className:zt,focused:Oe,prefix:X,suffix:Er,clearIcon:Ke,clearLabel:So,multiple:Pe,mode:y,displayValues:p,placeholder:S,searchValue:We,activeValue:M,onSearch:qt,onSearchSubmit:Tt,onInputBlur:Fe,onFocus:Ae,onBlur:Be,onClearMouseDown:Sr,onKeyDown:jt,onKeyUp:Ve,onSelectorRemove:it,tokenWithEnter:gt,onMouseDown:ut,components:ke}));return Kt=f(ZN,{ref:Ue,disabled:C,prefixCls:n,visible:qe,popupElement:Et,animation:U,transitionName:ee,popupStyle:re,popupClassName:ne,direction:u,popupMatchSelectWidth:oe,popupRender:te,popupAlign:ie,placement:se,builtinPlacements:xe,getPopupContainer:me,empty:h,onPopupVisibleChange:Gt,onPopupMouseEnter:Ct,onPopupMouseDown:ut,onPopupBlur:ct},Kt),f(Xx.Provider,{value:Xt},f(eS,{visible:Oe&&!qe,values:p}),Kt)}),sS=BV;var pM=o(()=>null,"OptGroup");pM.isSelectOptGroup=!0;var ku=pM;var fM=o(()=>null,"Option");fM.isSelectOption=!0;var Du=fM;function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aS.apply(this,arguments)}o(aS,"_extends");var gM=le(({height:e,offsetY:t,offsetX:r,children:n,prefixCls:i,onInnerResize:s,innerProps:a,rtl:l,extra:c},d)=>{let u={},m={display:"flex",flexDirection:"column"};return t!==void 0&&(u={height:e,position:"relative",overflow:"hidden"},m={...m,transform:`translateY(${t}px)`,[l?"marginRight":"marginLeft"]:-r||0,position:"absolute",left:0,right:0,top:0}),f("div",{style:u},f(Cn,{onResize:o(({offsetHeight:p})=>{p&&s&&s()},"onResize")},f("div",aS({style:m,className:O({[`${i}-holder-inner`]:i}),ref:d},a),n,c)))});gM.displayName="Filler";var hM=gM;function bM({children:e,setRef:t}){let r=At(n=>{t(n)},[t]);return so(e,{ref:r})}o(bM,"Item");function lS(e,t,r,n,i,s,a,{getKey:l}){return e.slice(t,r+1).map((c,d)=>{let u=t+d,m=a(c,u,{style:{width:n},offsetX:i}),p=l(c);return f(bM,{key:p,setRef:o(g=>s(c,g),"setRef")},m)})}o(lS,"useChildren");function vM(e,t,r){let n=e.length,i=t.length,s,a;if(n===0&&i===0)return null;n<i?(s=e,a=t):(s=t,a=e);let l={__EMPTY_ITEM__:!0};function c(m){return m!==void 0?r(m):l}o(c,"getItemKey");let d=null,u=Math.abs(n-i)!==1;for(let m=0;m<a.length;m+=1){let p=c(s[m]),g=c(a[m]);if(p!==g){d=m,u=u||p!==c(a[m+1]);break}}return d===null?null:{index:d,multiple:u}}o(vM,"findListDiffIndex");function cS(e,t,r){let[n,i]=ce(e),[s,a]=ce(null);return fe(()=>{let l=vM(n||[],e||[],t);l?.index!==void 0&&(r?.(l.index),a(e[l.index])),i(e)},[e]),[s]}o(cS,"useDiffItem");var FV=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),dS=FV;var Dg=o((e,t,r,n)=>{let i=H(!1),s=H(null);function a(){clearTimeout(s.current),i.current=!0,s.current=setTimeout(()=>{i.current=!1},50)}o(a,"lockScroll");let l=H({top:e,bottom:t,left:r,right:n});return l.current.top=e,l.current.bottom=t,l.current.left=r,l.current.right=n,(c,d,u=!1)=>{let m=c?d<0&&l.current.left||d>0&&l.current.right:d<0&&l.current.top||d>0&&l.current.bottom;return u&&m?(clearTimeout(s.current),i.current=!1):(!m||i.current)&&a(),!i.current&&m}},"default");function uS(e,t,r,n,i,s,a){let l=H(0),c=H(null),d=H(null),u=H(!1),m=Dg(t,r,n,i);function p(S,y){if(St.cancel(c.current),m(!1,y))return;let C=S;if(!C._virtualHandled)C._virtualHandled=!0;else return;l.current+=y,d.current=y,dS||C.preventDefault(),c.current=St(()=>{let w=u.current?10:1;a(l.current*w,!1),l.current=0})}o(p,"onWheelY");function g(S,y){a(y,!0),dS||S.preventDefault()}o(g,"onWheelX");let h=H(null),b=H(null);function v(S){if(!e)return;St.cancel(b.current),b.current=St(()=>{h.current=null},2);let{deltaX:y,deltaY:C,shiftKey:w}=S,E=y,R=C;(h.current==="sx"||!h.current&&w&&C&&!y)&&(E=C,R=0,h.current="sx");let $=Math.abs(E),I=Math.abs(R);h.current===null&&(h.current=s&&$>I?"x":"y"),h.current==="y"?p(S,R):g(S,E)}o(v,"onWheel");function x(S){e&&(u.current=S.detail===d.current)}return o(x,"onFireFoxScroll"),[v,x]}o(uS,"useFrameWheel");function yM(e,t,r,n){let[i,s]=V(()=>[new Map,[]],[e,r.id,n]);return o((l,c=l)=>{let d=i.get(l),u=i.get(c);if(d===void 0||u===void 0){let m=e.length;for(let p=s.length;p<m;p+=1){let g=e[p],h=t(g);i.set(h,p);let b=r.get(h)??n;if(s[p]=(s[p-1]||0)+b,h===l&&(d=p),h===c&&(u=p),d!==void 0&&u!==void 0)break}}return{top:s[d-1]||0,bottom:s[u]}},"getSize")}o(yM,"useGetSize");var mS=class{static{o(this,"CacheMap")}maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,r){this.diffRecords.set(t,this.maps[t]),this.maps[t]=r,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}},xM=mS;function SM(e){let t=parseFloat(e);return isNaN(t)?0:t}o(SM,"parseNumber");function pS(e,t,r){let[n,i]=ce(0),s=H(new Map),a=H(new xM),l=H(0);function c(){l.current+=1}o(c,"cancelRaf");function d(m=!1){c();let p=o(()=>{let g=!1;s.current.forEach((h,b)=>{if(h&&h.offsetParent){let{offsetHeight:v}=h,{marginTop:x,marginBottom:S}=getComputedStyle(h),y=SM(x),C=SM(S),w=v+y+C;a.current.get(b)!==w&&(a.current.set(b,w),g=!0)}}),g&&i(h=>h+1)},"doCollect");if(m)p();else{l.current+=1;let g=l.current;Promise.resolve().then(()=>{g===l.current&&p()})}}o(d,"collectHeight");function u(m,p){let g=e(m),h=s.current.get(g);p?(s.current.set(g,p),d()):s.current.delete(g),!h!=!p&&(p?t?.(m):r?.(m))}return o(u,"setInstanceRef"),fe(()=>c,[]),[u,d,a.current,n]}o(pS,"useHeights");var CM=14/15;function fS(e,t,r){let n=H(!1),i=H(0),s=H(0),a=H(null),l=H(null),c,d=o(p=>{if(n.current){let g=Math.ceil(p.touches[0].pageX),h=Math.ceil(p.touches[0].pageY),b=i.current-g,v=s.current-h,x=Math.abs(b)>Math.abs(v);x?i.current=g:s.current=h;let S=r(x,x?b:v,!1,p);S&&p.preventDefault(),clearInterval(l.current),S&&(l.current=setInterval(()=>{x?b*=CM:v*=CM;let y=Math.floor(x?b:v);(!r(x,y,!0)||Math.abs(y)<=.1)&&clearInterval(l.current)},16))}},"onTouchMove"),u=o(()=>{n.current=!1,c()},"onTouchEnd"),m=o(p=>{c(),p.touches.length===1&&!n.current&&(n.current=!0,i.current=Math.ceil(p.touches[0].pageX),s.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",d,{passive:!1}),a.current.addEventListener("touchend",u,{passive:!0}))},"onTouchStart");c=o(()=>{a.current&&(a.current.removeEventListener("touchmove",d),a.current.removeEventListener("touchend",u))},"cleanUpEvents"),Pt(()=>(e&&t.current.addEventListener("touchstart",m,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",m),c(),clearInterval(l.current)}),[e])}o(fS,"useMobileTouchMove");function wM(e){return Math.floor(e**.5)}o(wM,"smoothScrollOffset");function Au(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}o(Au,"getPageXY");function HV(e){let t=e;for(;t;){if(t.draggable)return!0;t=t.parentElement}return!1}o(HV,"isDraggable");function gS(e,t,r){fe(()=>{let n=t.current;if(e&&n){let i=!1,s,a,l=o(()=>{St.cancel(s)},"stopScroll"),c=o(()=>{l(),s=St(()=>{r(a),c()})},"continueScroll"),d=o(()=>{i=!1,l()},"clearDragState"),u=o(p=>{if(HV(p.target)||p.button!==0)return;let g=p;g._virtualHandled||(g._virtualHandled=!0,i=!0)},"onMouseDown"),m=o(p=>{if(i){let g=Au(p,!1),{top:h,bottom:b}=n.getBoundingClientRect();if(g<=h){let v=h-g;a=-wM(v),c()}else if(g>=b){let v=g-b;a=wM(v),c()}else l()}},"onMouseMove");return n.addEventListener("mousedown",u),n.ownerDocument.addEventListener("mouseup",d),n.ownerDocument.addEventListener("mousemove",m),n.ownerDocument.addEventListener("dragend",d),()=>{n.removeEventListener("mousedown",u),n.ownerDocument.removeEventListener("mouseup",d),n.ownerDocument.removeEventListener("mousemove",m),n.ownerDocument.removeEventListener("dragend",d),l()}}},[e])}o(gS,"useScrollDrag");var zV=10;function VV(e,t){let r=typeof e=="function"?e(t):e;return Number.isFinite(r)?r:0}o(VV,"getOffset");function hS(e,t,r,n,i,s,a,l,c){let d=H(void 0),[u,m]=ce(null);return Pt(()=>{if(u&&u.times<zV){if(!e.current){m(E=>({...E}));return}a();let{targetAlign:p,originAlign:g,offset:h}=u,b=u.index>=0?u.index:t.findIndex(E=>i(E)===u.key),v=p||g,x=VV(h,{getSize:s,align:v}),S=e.current.clientHeight,y=b<0,C=p,w=null;if(S&&b>=0){let E=0,R=0,$=0,I=Math.min(t.length-1,b);for(let M=0;M<=I;M+=1){let N=i(t[M]);R=E;let k=r.get(N);$=R+(k===void 0?n:k),E=$}let T=v==="top"?x:S-x;for(let M=I;M>=0;M-=1){let N=i(t[M]),k=r.get(N);if(k===void 0){y=!0;break}if(T-=k,T<=0)break}switch(v){case"top":w=R-x;break;case"bottom":w=$-S+x;break;default:{let{scrollTop:M}=e.current,N=M+S;R<M?C="top":$>N&&(C="bottom")}}w!==null&&l(w),w!==u.lastTop&&(y=!0)}y&&m(E=>({...E,times:E.times+1,index:b,targetAlign:C,lastTop:w}))}},[u,e.current]),p=>{if(p==null){c();return}if(St.cancel(d.current),typeof p=="number")l(p);else if(p&&typeof p=="object"){let g,h,{align:b}=p;"index"in p?{index:g}=p:(h=p.key,g=t.findIndex(x=>i(x)===h));let{offset:v=0}=p;m({times:0,index:g,key:h,offset:v,originAlign:b})}}}o(hS,"useScrollTo");function RM(e,t,r){if(t<=0||r<=0)return 0;let i=Math.max(Math.min(e,r),0)/r,s=Math.ceil(i*t);return s=Math.max(s,0),s=Math.min(s,t),s}o(RM,"getScrollOffsetByThumbTop");var jV=le((e,t)=>{let{prefixCls:r,rtl:n,scrollOffset:i,scrollRange:s,onStartMove:a,onStopMove:l,onScroll:c,horizontal:d,spinSize:u,containerSize:m,style:p,thumbStyle:g,showScrollBar:h}=e,[b,v]=ce(!1),[x,S]=ce(null),[y,C]=ce(null),w=!n,E=H(null),R=H(null),[$,I]=ce(h),T=H(void 0),M=o(()=>{h===!0||h===!1||(clearTimeout(T.current),I(!0),T.current=setTimeout(()=>{I(!1)},3e3))},"delayHidden"),N=s-m||0,k=m-u||0,D=V(()=>i===0||N===0?0:i/N*k,[i,N,k]),A=o(U=>!!U&&R.current?.contains(U),"isThumbTarget"),B=o(U=>{let ee=E.current;if(!ee)return;let re=ee.getBoundingClientRect(),ne=Au(U,d),oe;if(Number.isFinite(ne)){if(d){let te=w?re.left:re.right;if(!Number.isFinite(te))return;oe=(w?ne-te:te-ne)-u/2}else{if(!Number.isFinite(re.top))return;oe=ne-re.top-u/2}c(RM(oe,N,k),d)}},"scrollToTrackPosition"),L=o(U=>{U.stopPropagation(),U.preventDefault(),!(U.button!==0||A(U.target))&&B(U)},"onContainerMouseDown"),F=H({top:D,dragging:b,pageY:x,startTop:y});F.current={top:D,dragging:b,pageY:x,startTop:y};let q=De(U=>{v(!0),S(Au(U,d)),C(F.current.top),a(),U.stopPropagation(),U.preventDefault()});fe(()=>{let U=o(ne=>{ne.preventDefault()},"onScrollbarTouchStart"),ee=E.current,re=R.current;return ee.addEventListener("touchstart",U,{passive:!1}),re.addEventListener("touchstart",q,{passive:!1}),()=>{ee.removeEventListener("touchstart",U),re.removeEventListener("touchstart",q)}},[q]);let X=H(void 0);X.current=N;let W=H(void 0);W.current=k,fe(()=>{if(b){let U,ee=o(ne=>{let{dragging:oe,pageY:te,startTop:ie}=F.current;St.cancel(U);let se=E.current.getBoundingClientRect(),xe=m/(d?se.width:se.height);if(oe){let me=(Au(ne,d)-te)*xe,Ee=ie;!w&&d?Ee-=me:Ee+=me;let $e=X.current,he=W.current,ye=RM(Ee,$e,he);U=St(()=>{c(ye,d)})}},"onMouseMove"),re=o(()=>{v(!1),l()},"onMouseUp");return window.addEventListener("mousemove",ee,{passive:!0}),window.addEventListener("touchmove",ee,{passive:!0}),window.addEventListener("mouseup",re,{passive:!0}),window.addEventListener("touchend",re,{passive:!0}),()=>{window.removeEventListener("mousemove",ee),window.removeEventListener("touchmove",ee),window.removeEventListener("mouseup",re),window.removeEventListener("touchend",re),St.cancel(U)}}},[b]),fe(()=>(M(),()=>{clearTimeout(T.current)}),[i]),ft(t,()=>({delayHidden:M}));let j=`${r}-scrollbar`,Z={position:"absolute",visibility:$?null:"hidden"},J={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return d?(Object.assign(Z,{height:8,left:0,right:0,bottom:0}),Object.assign(J,{height:"100%",width:u,[w?"left":"right"]:D})):(Object.assign(Z,{width:8,top:0,bottom:0,[w?"right":"left"]:0}),Object.assign(J,{width:"100%",height:u,top:D})),f("div",{ref:E,className:O(j,{[`${j}-horizontal`]:d,[`${j}-vertical`]:!d,[`${j}-visible`]:$}),style:{...Z,...p},onMouseDown:L,onMouseMove:M},f("div",{ref:R,className:O(`${j}-thumb`,{[`${j}-thumb-moving`]:b}),style:{...J,...g},onMouseDown:q}))}),bS=jV;function vS(e=0,t=0){let r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,20),Math.floor(r)}o(vS,"getSpinSize");function yS(){return yS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yS.apply(this,arguments)}o(yS,"_extends");var WV=[],UV={overflowY:"auto",overflowAnchor:"none"};function xS(e,t){let{prefixCls:r="rc-virtual-list",className:n,height:i,itemHeight:s,fullHeight:a=!0,style:l,data:c,children:d,itemKey:u,virtual:m,direction:p,scrollWidth:g,component:h="div",onScroll:b,onVirtualScroll:v,onVisibleChange:x,innerProps:S,extraRender:y,styles:C,showScrollBar:w="optional",...E}=e,R=At(ge=>typeof u=="function"?u(ge):ge?.[u],[u]),[$,I,T,M]=pS(R,null,null),N=!!(m!==!1&&i&&s),k=V(()=>Object.values(T.maps).reduce((ge,Ae)=>ge+Ae,0),[T.id,T.maps]),D=N&&c&&(Math.max(s*c.length,k)>i||!!g),A=p==="rtl",B=O(r,{[`${r}-rtl`]:A},n),L=c||WV,F=H(null),q=H(null),X=H(null),[W,j]=ce(0),[Z,J]=ce(0),[U,ee]=ce(!1),re=o(()=>{ee(!0)},"onScrollbarStartMove"),ne=o(()=>{ee(!1)},"onScrollbarStopMove"),oe={getKey:R};function te(ge){j(Ae=>{let ct;typeof ge=="function"?ct=ge(Ae):ct=ge;let Be=Oe(ct);return F.current.scrollTop=Be,Be})}o(te,"syncScrollTop");let ie=H({start:0,end:L.length}),se=H(void 0),[xe]=cS(L,R);se.current=xe;let{scrollHeight:me,start:Ee,end:$e,offset:he}=V(()=>{if(!N)return{scrollHeight:void 0,start:0,end:L.length-1,offset:void 0};if(!D)return{scrollHeight:q.current?.offsetHeight||0,start:0,end:L.length-1,offset:void 0};let ge=0,Ae,ct,Be,ut=L.length;for(let Je=0;Je<ut;Je+=1){let Ct=L[Je],Gt=R(Ct),Xt=T.get(Gt),Er=ge+(Xt===void 0?s:Xt);Er>=W&&Ae===void 0&&(Ae=Je,ct=ge),Er>W+i&&Be===void 0&&(Be=Je),ge=Er}return Ae===void 0&&(Ae=0,ct=0,Be=Math.ceil(i/s)),Be===void 0&&(Be=L.length-1),Be=Math.min(Be+1,L.length-1),{scrollHeight:ge,start:Ae,end:Be,offset:ct}},[D,N,W,L,M,i]);ie.current.start=Ee,ie.current.end=$e,Va(()=>{let ge=T.getRecord();if(ge.size===1){let Ae=Array.from(ge.keys())[0],ct=ge.get(Ae),Be=L[Ee];if(Be&&ct===void 0&&R(Be)===Ae){let Ct=T.get(Ae)-s;te(Gt=>Gt+Ct)}}T.resetRecord()},[me]);let[ye,He]=ce({width:0,height:i}),Se=o(ge=>{He({width:ge.offsetWidth,height:ge.offsetHeight})},"onHolderResize"),Ce=H(null),ue=H(null),Pe=V(()=>vS(ye.width,g),[ye.width,g]),ve=V(()=>vS(ye.height,me),[ye.height,me]),Ue=me-i,pe=H(Ue);pe.current=Ue;function Oe(ge){let Ae=ge;return Number.isNaN(pe.current)||(Ae=Math.min(Ae,pe.current)),Ae=Math.max(Ae,0),Ae}o(Oe,"keepInRange");let Ie=W<=0,ke=W>=Ue,We=Z<=0,ze=Z>=g,Ne=Dg(Ie,ke,We,ze),lt=o(()=>({x:A?-Z:Z,y:W}),"getVirtualScrollInfo"),qe=H(lt()),Ze=De(ge=>{if(v){let Ae={...lt(),...ge};(qe.current.x!==Ae.x||qe.current.y!==Ae.y)&&(v(Ae),qe.current=Ae)}});function je(ge,Ae){let ct=ge;Ae?(Wa(()=>{J(ct)}),Ze()):te(ct)}o(je,"onScrollBar");function gt(ge){let{scrollTop:Ae}=ge.currentTarget;Ae!==W&&te(Ae),b?.(ge),Ze()}o(gt,"onFallbackScroll");let rt=o(ge=>{let Ae=ge,ct=g?g-ye.width:0;return Ae=Math.max(Ae,0),Ae=Math.min(Ae,ct),Ae},"keepInHorizontalRange"),qt=De((ge,Ae)=>{Ae?(Wa(()=>{J(ct=>{let Be=ct+(A?-ge:ge);return rt(Be)})}),Ze()):te(ct=>ct+ge)}),[Tt,Xe]=uS(N,Ie,ke,We,ze,!!g,qt);fS(N,F,(ge,Ae,ct,Be)=>{let ut=Be;return Ne(ge,Ae,ct)?!1:!ut||!ut._virtualHandled?(ut&&(ut._virtualHandled=!0),Tt({preventDefault(){},deltaX:ge?Ae:0,deltaY:ge?0:Ae}),!0):!1}),gS(D,F,ge=>{te(Ae=>Ae+ge)}),Pt(()=>{function ge(ct){let Be=Ie&&ct.detail<0,ut=ke&&ct.detail>0;N&&!Be&&!ut&&ct.preventDefault()}o(ge,"onMozMousePixelScroll");let Ae=F.current;return Ae.addEventListener("wheel",Tt,{passive:!1}),Ae.addEventListener("DOMMouseScroll",Xe,{passive:!0}),Ae.addEventListener("MozMousePixelScroll",ge,{passive:!1}),()=>{Ae.removeEventListener("wheel",Tt),Ae.removeEventListener("DOMMouseScroll",Xe),Ae.removeEventListener("MozMousePixelScroll",ge)}},[N,Ie,ke]),Pt(()=>{if(g){let ge=rt(Z);J(ge),Ze({x:ge})}},[ye.width,g]);let Rt=o(()=>{Ce.current?.delayHidden(),ue.current?.delayHidden()},"delayHideScrollBar"),Lt=yM(L,R,T,s),jt=hS(F,L,T,s,R,Lt,()=>I(!0),te,Rt);ft(t,()=>({nativeElement:X.current,getScrollInfo:lt,scrollTo:o(ge=>{function Ae(ct){return ct&&typeof ct=="object"&&("left"in ct||"top"in ct)}o(Ae,"isPosScroll"),Ae(ge)?(ge.left!==void 0&&J(rt(ge.left)),jt(ge.top)):jt(ge)},"scrollTo")})),Pt(()=>{if(x){let ge=L.slice(Ee,$e+1);x(ge,L)}},[Ee,$e,L]);let Ve=y?.({start:Ee,end:$e,virtual:D,offsetX:Z,scrollTop:W,offsetY:he,rtl:A,getSize:Lt}),it=lS(L,Ee,$e,g,Z,$,d,oe),Fe=null;i&&(Fe={[a?"height":"maxHeight"]:i,...UV},N&&(Fe.overflowY="hidden",g&&(Fe.overflowX="hidden"),U&&(Fe.pointerEvents="none")));let Wt={};return A&&(Wt.dir="rtl"),f("div",yS({ref:X,style:{...l,position:"relative"},className:B},Wt,E),f(Cn,{onResize:Se},f(h,{className:`${r}-holder`,style:Fe,ref:F,onScroll:gt,onMouseEnter:Rt},f(hM,{prefixCls:r,height:me,offsetX:Z,offsetY:he,scrollWidth:g,onInnerResize:I,ref:q,innerProps:S,rtl:A,extra:Ve},it))),D&&me>i&&f(bS,{ref:Ce,prefixCls:r,scrollOffset:W,scrollRange:me,rtl:A,onScroll:je,onStartMove:re,onStopMove:ne,spinSize:ve,containerSize:ye.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:w}),D&&g>ye.width&&f(bS,{ref:ue,prefixCls:r,scrollOffset:Z,scrollRange:g,rtl:A,onScroll:je,onStartMove:re,onStopMove:ne,spinSize:Pe,containerSize:ye.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:w}))}o(xS,"RawList");var EM=le(xS);EM.displayName="List";var $M=EM;var qV=le((e,t)=>xS({...e,virtual:!1},t));qV.displayName="List";var IM=$M;function PM(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}o(PM,"isPlatformMac");function _u(){return _u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_u.apply(this,arguments)}o(_u,"_extends");function NM(e){return typeof e=="string"||typeof e=="number"}o(NM,"isTitleType");var GV=o((e,t)=>{let{prefixCls:r,id:n,open:i,multiple:s,mode:a,searchValue:l,toggleOpen:c,notFoundContent:d,onPopupScroll:u,showScrollBar:m,lockOptions:p}=En(),{maxCount:g,flattenOptions:h,onActiveValue:b,defaultActiveFirstOption:v,onSelect:x,menuItemSelectedIcon:S,rawValues:y,fieldNames:C,virtual:w,direction:E,listHeight:R,listItemHeight:$,optionRender:I,classNames:T,styles:M}=K(Yc),N=`${r}-item`,k=Jn(()=>h,[i,p],(te,ie)=>ie[0]&&!ie[1]),D=H(null),A=V(()=>s&&Iu(g)&&y?.size>=g,[s,g,y?.size]),B=o(te=>{te.preventDefault()},"onListMouseDown"),L=o(te=>{D.current?.scrollTo(typeof te=="number"?{index:te}:te)},"scrollIntoView"),F=At(te=>a==="combobox"?!1:y.has(te),[a,[...y].toString(),y.size]),q=o((te,ie=1)=>{let se=k.length;for(let xe=0;xe<se;xe+=1){let me=(te+xe*ie+se)%se,{group:Ee,data:$e}=k[me]||{};if(!Ee&&!$e?.disabled&&(F($e.value)||!A))return me}return-1},"getEnabledActiveIndex"),[X,W]=ce(()=>q(0)),j=o((te,ie=!1)=>{W(te);let se={source:ie?"keyboard":"mouse"},xe=k[te];if(!xe){b(null,-1,se);return}b(xe.value,te,se)},"setActive");fe(()=>{j(v!==!1?q(0):-1)},[k.length,l]);let Z=At(te=>a==="combobox"?String(te).toLowerCase()===l.toLowerCase():y.has(te),[a,l,[...y].toString(),y.size]);fe(()=>{let te;if(!s&&i&&y.size===1){let ie=Array.from(y)[0],se=k.findIndex(({data:xe})=>l?String(xe.value).startsWith(l):xe.value===ie);se!==-1&&(j(se),te=setTimeout(()=>{L(se)}))}return i&&D.current?.scrollTo(void 0),()=>clearTimeout(te)},[i,l]);let J=o(te=>{te!==void 0&&x(te,{selected:!y.has(te)}),s||c(!1)},"onSelectValue");if(ft(t,()=>({onKeyDown:o(te=>{let{which:ie,ctrlKey:se}=te;switch(ie){case xt.N:case xt.P:case xt.UP:case xt.DOWN:{let xe=0;if(ie===xt.UP?xe=-1:ie===xt.DOWN?xe=1:PM()&&se&&(ie===xt.N?xe=1:ie===xt.P&&(xe=-1)),xe!==0){let me=q(X+xe,xe);L(me),j(me,!0)}break}case xt.TAB:case xt.ENTER:{let xe=k[X];if(!xe||xe.data.disabled)return J(void 0);!A||y.has(xe.value)?J(xe.value):J(void 0),i&&te.preventDefault();break}case xt.ESC:c(!1),i&&te.stopPropagation()}},"onKeyDown"),onKeyUp:o(()=>{},"onKeyUp"),scrollTo:o(te=>{L(te)},"scrollTo")})),k.length===0)return f("div",{role:"listbox",id:`${n}_list`,className:`${N}-empty`,onMouseDown:B},d);let U=Object.keys(C).map(te=>C[te]),ee=o(te=>te.label,"getLabel");function re(te,ie){let{group:se}=te;return{role:se?"presentation":"option",id:`${n}_list_${ie}`}}o(re,"getItemAriaProps");let ne=o(te=>{let ie=k[te];if(!ie)return null;let se=ie.data||{},{value:xe,disabled:me}=se,{group:Ee}=ie,$e=Zr(se,!0),he=ee(ie);return ie?f("div",_u({"aria-label":typeof he=="string"&&!Ee?he:null},$e,{key:te},re(ie,te),{"aria-selected":Z(xe),"aria-disabled":me}),xe):null},"renderItem"),oe={role:"listbox",id:`${n}_list`};return f(rr,null,w&&f("div",_u({},oe,{style:{height:0,width:0,overflow:"hidden"}}),ne(X-1),ne(X),ne(X+1)),f(IM,{prefixCls:`${r}-dropdown-list`,itemKey:"key",ref:D,data:k,height:R,itemHeight:$,fullHeight:!1,onMouseDown:B,onScroll:u,virtual:w,direction:E,innerProps:w?null:oe,showScrollBar:m,className:T?.popup?.list,style:M?.popup?.list},(te,ie)=>{let{group:se,groupOption:xe,data:me,label:Ee,value:$e}=te,{key:he}=me;if(se){let lt=me.title??(NM(Ee)?Ee.toString():void 0);return f("div",{className:O(N,`${N}-group`,me.className),title:lt},Ee!==void 0?Ee:he)}let{disabled:ye,title:He,children:Se,style:Ce,className:ue,...Pe}=me,ve=_t(Pe,U),Ue=F($e),pe=ye||!Ue&&A,Oe=`${N}-option`,Ie=O(N,Oe,ue,T?.popup?.listItem,{[`${Oe}-grouped`]:xe,[`${Oe}-active`]:X===ie&&!pe,[`${Oe}-disabled`]:pe,[`${Oe}-selected`]:Ue}),ke=ee(te),We=!S||typeof S=="function"||Ue,ze=typeof ke=="number"?ke:ke||$e,Ne=NM(ze)?ze.toString():void 0;return He!==void 0&&(Ne=He),f("div",_u({},Zr(ve),w?{}:re(te,ie),{"aria-selected":w?void 0:Z($e),"aria-disabled":pe,className:Ie,title:Ne,onMouseMove:o(()=>{X===ie||pe||j(ie)},"onMouseMove"),onClick:o(()=>{pe||J($e)},"onClick"),style:{...M?.popup?.listItem,...Ce}}),f("div",{className:`${Oe}-content`},typeof I=="function"?I(te,{index:ie}):ze),Tr(S)||Ue,We&&f(Og,{className:`${N}-option-state`,customizeIcon:S,customizeIconProps:{value:$e,disabled:pe,isSelected:Ue}},Ue?"\u2713":null))}))},"OptionList"),XV=le(GV),MM=XV;var TM=o((e,t)=>{let r=H({values:new Map,options:new Map}),n=V(()=>{let{values:s,options:a}=r.current,l=e.map(u=>u.label===void 0?{...u,label:s.get(u.value)?.label}:u),c=new Map,d=new Map;return l.forEach(u=>{c.set(u.value,u),d.set(u.value,t.get(u.value)||a.get(u.value))}),r.current.values=c,r.current.options=d,l},[e,t]),i=At(s=>t.get(s)||r.current.options.get(s),[t]);return[n,i]},"default");function SS(e,t){return Mu(e).join("").toUpperCase().includes(t)}o(SS,"includes");var OM=o((e,t,r,n,i)=>V(()=>{if(!r||n===!1)return e;let{options:s,label:a,value:l}=t,c=[],d=typeof n=="function",u=r.toUpperCase(),m=d?n:(g,h)=>i&&i.length?i.some(b=>SS(h[b],u)):h[s]?SS(h[a!=="children"?a:"label"],u):SS(h[l],u),p=d?g=>Pu(g):g=>g;return e.forEach(g=>{if(g[s]){if(m(r,p(g)))c.push(g);else{let b=g[s].filter(v=>m(r,p(v)));b.length&&c.push({...g,[s]:b})}return}m(r,p(g))&&c.push(g)}),c},[e,n,i,r,t]),"default");function YV(e){let{key:t,props:{children:r,value:n,...i}}=e;return{key:t,value:n!==void 0?n:t,children:r,...i}}o(YV,"convertNodeToOption");function Ag(e,t=!1){return co(e).map((r,n)=>{if(!Tr(r)||!r.type)return null;let{type:{isSelectOptGroup:i},key:s,props:{children:a,...l}}=r;return t||!i?YV(r):{key:`__RC_SELECT_GRP__${s===null?n:s}__`,label:s,...l,options:Ag(a)}}).filter(r=>r)}o(Ag,"convertChildrenToData");var KV=o((e,t,r,n,i)=>V(()=>{let s=e;!e&&(s=Ag(t));let l=new Map,c=new Map,d=o((m,p,g)=>{g&&typeof g=="string"&&m.set(p[g],p)},"setLabelOptions"),u=o((m,p=!1)=>{for(let g=0;g<m.length;g+=1){let h=m[g];!h[r.options]||p?(l.set(h[r.value],h),d(c,h,r.label),n.forEach(b=>{d(c,h,b)}),d(c,h,i)):u(h[r.options],!0)}},"dig");return u(s),{options:s,valueOptions:l,labelOptions:c}},[e,t,r,n,i]),"useOptions"),kM=KV;function _g(e){let t=H(e);return t.current=e,At((...n)=>t.current(...n),[])}o(_g,"useRefFunc");function CS(e,t,r){let{filterOption:n,searchValue:i,optionFilterProp:s,filterSort:a,onSearch:l,autoClearSearchValue:c}=t;return V(()=>{let d=typeof e=="object",u={filterOption:n,searchValue:i,optionFilterProp:s,filterSort:a,onSearch:l,autoClearSearchValue:c,...d?e:{}};return[d||r==="combobox"||r==="tags"||r==="multiple"&&e===void 0?!0:e,u]},[r,e,n,i,s,a,l,c])}o(CS,"useSearchConfig");function wS(){return wS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wS.apply(this,arguments)}o(wS,"_extends");var QV=["inputValue"];function ZV(e){return!e||typeof e!="object"}o(ZV,"isRawValue");var JV=le((e,t)=>{let{id:r,mode:n,prefixCls:i="rc-select",backfill:s,fieldNames:a,showSearch:l,searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:m,optionFilterProp:p,filterSort:g,onSelect:h,onDeselect:b,onActive:v,popupMatchSelectWidth:x=!0,optionLabelProp:S,options:y,optionRender:C,children:w,defaultActiveFirstOption:E,menuItemSelectedIcon:R,virtual:$,direction:I,listHeight:T=200,listItemHeight:M=20,labelRender:N,value:k,defaultValue:D,labelInValue:A,onChange:B,maxCount:L,classNames:F,styles:q,...X}=e,W={searchValue:c,onSearch:d,autoClearSearchValue:u,filterOption:m,optionFilterProp:p,filterSort:g},[j,Z]=CS(l,W,n),{filterOption:J,searchValue:U,optionFilterProp:ee,filterSort:re,onSearch:ne,autoClearSearchValue:oe=!0}=Z,te=V(()=>ee?Array.isArray(ee)?ee:[ee]:[],[ee]),ie=Wo(r),se=Ou(n),xe=!!(!y&&w),me=V(()=>J===void 0&&n==="combobox"?!1:J,[J,n]),Ee=V(()=>Jx(a,xe),[JSON.stringify(a),xe]),[$e,he]=Ft("",U),ye=$e||"",He=kM(y,w,Ee,te,S),{valueOptions:Se,labelOptions:Ce,options:ue}=He,Pe=At(Be=>Mu(Be).map(Je=>{let Ct,Gt,Xt,Er;ZV(Je)?Ct=Je:(Gt=Je.label,Ct=Je.value);let Sr=Se.get(Ct);return Sr&&(Gt===void 0&&(Gt=Sr?.[S||Ee.label]),Xt=Sr?.disabled,Er=Sr?.title),{label:Gt,value:Ct,key:Ct,disabled:Xt,title:Er}}),[Ee,S,Se]),[ve,Ue]=Ft(D,k),pe=V(()=>{let ut=Pe(se&&ve===null?[]:ve);return n==="combobox"&&sM(ut[0]?.value)?[]:ut},[ve,Pe,n,se]),[Oe,Ie]=TM(pe,Se),ke=V(()=>{if(!n&&Oe.length===1){let Be=Oe[0];if(Be.value===null&&(Be.label===null||Be.label===void 0))return[]}return Oe.map(Be=>({...Be,label:(typeof N=="function"?N(Be):Be.label)??Be.value}))},[n,Oe,N]),We=V(()=>new Set(Oe.map(Be=>Be.value)),[Oe]);fe(()=>{if(n==="combobox"){let Be=Oe[0]?.value;he(iM(Be)?String(Be):"")}},[Oe]);let ze=_g((Be,ut)=>{let Je=ut??Be;return{[Ee.value]:Be,[Ee.label]:Je}}),Ne=V(()=>{if(n!=="tags")return ue;let Be=[...ue],ut=o(Je=>Se.has(Je),"existOptions");return[...Oe].sort((Je,Ct)=>Je.value<Ct.value?-1:1).forEach(Je=>{let Ct=Je.value;ut(Ct)||Be.push(ze(Ct,Je.label))}),Be},[ze,ue,Se,Oe,n]),lt=OM(Ne,Ee,ye,me,te),qe=V(()=>{let Be=o(ut=>te.length?te.some(Je=>ut?.[Je]===ye):ut?.value===ye,"hasItemMatchingSearch");return n!=="tags"||!ye||lt.some(ut=>Be(ut))||lt.some(ut=>ut[Ee.value]===ye)||Se.get(ye)?.disabled?lt:[ze(ye),...lt]},[ze,te,n,lt,ye,Ee,Se]),Ze=o(Be=>[...Be].sort((Je,Ct)=>re(Je,Ct,{searchValue:ye})).map(Je=>Array.isArray(Je.options)?{...Je,options:Je.options.length>0?Ze(Je.options):Je.options}:Je),"sorter"),je=V(()=>re?Ze(qe):qe,[qe,re,ye]),gt=V(()=>eM(je,{fieldNames:Ee,childrenAsData:xe}),[je,Ee,xe]),rt=o(Be=>{let ut=Pe(Be);if(Ue(ut),B&&(ut.length!==Oe.length||ut.some((Je,Ct)=>Oe[Ct]?.value!==Je?.value))){let Je=A?ut.map(({label:Gt,value:Xt})=>({label:Gt,value:Xt})):ut.map(Gt=>Gt.value),Ct=ut.map(Gt=>Pu(Ie(Gt.value)));B(se?Je:Je[0],se?Ct:Ct[0])}},"triggerChange"),[qt,Tt]=ce(null),[Xe,Rt]=ce(0),Lt=E!==void 0?E:n!=="combobox",jt=H(void 0),Ve=At((Be,ut,{source:Je="keyboard"}={})=>{Rt(ut),s&&n==="combobox"&&Be!==null&&Je==="keyboard"&&Tt(String(Be));let Ct=Promise.resolve().then(()=>{jt.current===Ct&&v?.(Be)});jt.current=Ct},[s,n,v]),it=o((Be,ut,Je)=>{let Ct=o(()=>{let Gt=Ie(Be);return[A?{label:Gt?.[Ee.label],value:Be}:Be,Pu(Gt)]},"getSelectEnt");if(ut&&h){let[Gt,Xt]=Ct();h(Gt,Xt)}else if(!ut&&b&&Je!=="clear"){let[Gt,Xt]=Ct();b(Gt,Xt)}},"triggerSelect"),Fe=_g((Be,ut)=>{let Je,Ct=se?ut.selected:!0;Ct?Je=se?[...Oe,Be]:[Be]:Je=Oe.filter(Gt=>Gt.value!==Be),rt(Je),it(Be,Ct),n==="combobox"?Tt(""):(!Ou||oe)&&(he(""),Tt(""))}),Wt=o((Be,ut)=>{rt(Be);let{type:Je,values:Ct}=ut;(Je==="remove"||Je==="clear")&&Ct.forEach(Gt=>{it(Gt.value,!1,Je)})},"onDisplayValuesChange"),ge=o((Be,ut)=>{if(he(Be),Tt(null),ut.source==="submit"){let Je=(Be||"").trim();if(Je){if(Se.get(Je)?.disabled){he("");return}let Ct=Array.from(new Set([...We,Je]));rt(Ct),it(Je,!0),he("")}return}ut.source!=="blur"&&(n==="combobox"&&rt(Be),ne?.(Be))},"onInternalSearch"),Ae=o(Be=>{let ut=Be;n!=="tags"&&(ut=Be.map(Ct=>Ce.get(Ct)?.value).filter(Ct=>Ct!==void 0)),n==="tags"&&(ut=ut.filter(Ct=>!Se.get(Ct)?.disabled));let Je=Array.from(new Set([...We,...ut]));rt(Je),Je.forEach(Ct=>{it(Ct,!0)})},"onInternalSearchSplit"),ct=V(()=>({...He,flattenOptions:gt,onActiveValue:Ve,defaultActiveFirstOption:Lt,onSelect:Fe,menuItemSelectedIcon:R,rawValues:We,fieldNames:Ee,virtual:$!==!1&&x!==!1,direction:I,listHeight:T,listItemHeight:M,childrenAsData:xe,maxCount:L,optionRender:C,classNames:F,styles:q}),[L,He,gt,Ve,Lt,Fe,R,We,Ee,$,x,I,T,M,xe,C,F,q]);return f(Yc.Provider,{value:ct},f(sS,wS({},X,{id:ie,prefixCls:i,ref:t,omitDomProps:QV,mode:n,classNames:F,styles:q,displayValues:ke,onDisplayValuesChange:Wt,maxCount:L,direction:I,showSearch:j,searchValue:ye,onSearch:ge,autoClearSearchValue:oe,onSearchSplit:Ae,popupMatchSelectWidth:x,OptionList:MM,emptyOptions:!gt.length,activeValue:qt,activeDescendantId:`${ie}_list_${Xe}`})))}),RS=JV;RS.Option=Du;RS.OptGroup=ku;var DM=RS;var AM=DM;var ej=o((e,t,r)=>e===!1?null:e===!0?r:e&&t&&e[t]!==void 0?e[t]:r,"normalizeIcon"),ES=ej;var tj=o(e=>{let r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...r,points:["tl","bl"],offset:[0,4]},bottomRight:{...r,points:["tr","br"],offset:[0,4]},topLeft:{...r,points:["bl","tl"],offset:[0,-4]},topRight:{...r,points:["br","tr"],offset:[0,-4]}}},"getBuiltInPlacements");function rj(e,t){return e||tj(t)}o(rj,"mergedBuiltinPlacements");var _M=rj;var LM=o(e=>{let{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},"genItemStyle"),oj=o(e=>{let{antCls:t,componentCls:r}=e,n=`${r}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${r}-dropdown-placement-`,c=`${n}-option-selected`;return[{[`${r}-dropdown`]:{...hr(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,[`
246
- ${i}${l}bottomLeft,
247
- ${s}${l}bottomLeft
248
- `]:{animationName:ia},[`
249
- ${i}${l}topLeft,
250
- ${s}${l}topLeft,
251
- ${i}${l}topRight,
252
- ${s}${l}topRight
253
- `]:{animationName:aa},[`${a}${l}bottomLeft`]:{animationName:sa},[`
254
- ${a}${l}topLeft,
255
- ${a}${l}topRight
256
- `]:{animationName:la},"&-hidden":{display:"none"},[`${r}-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",...en},"&-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"}}},Tn(e,"slide-up"),Tn(e,"slide-down"),ts(e,"move-up"),ts(e,"move-down")]},"genSingleStyle"),BM=oj;var nj=o(e=>{let{antCls:t,componentCls:r}=e,n={background:"transparent"},i=["> input[disabled]","> textarea[disabled]",`> ${r}-input`,`> ${t}-input-affix-wrapper-disabled`,`> ${t}-input-search`].join(", ");return{[`&${r}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${r}-placeholder`]:{display:"none"},[`${r}-content`]:{margin:0,padding:0,"&-value":{display:"none"}},[`&${r}-filled ${r}-content`]:{[`${t}-input-filled`]:n},[`&${r}-disabled ${r}-content`]:{[i]:n,"input[disabled], textarea[disabled]":n}}}},"genSelectInputCustomizeStyle"),FM=nj;var HM=4,ij=o(e=>{let{componentCls:t,calc:r,iconCls:n,paddingXS:i,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:a,lineWidth:l,lineType:c,colorIcon:d,colorIconHover:u,inputPaddingHorizontalBase:m,antCls:p}=e,[g,h]=br(p,"select");return{"&-multiple":{[g("multi-item-background")]:e.multipleItemBg,[g("multi-item-border-color")]:"transparent",[g("multi-item-border-radius")]:e.borderRadiusSM,[g("multi-item-height")]:e.multipleItemHeight,[g("multi-padding-base")]:`calc((${h("height")} - ${h("multi-item-height")}) / 2)`,[g("multi-padding-vertical")]:`calc(${h("multi-padding-base")} - ${a} - ${l})`,[g("multi-item-padding-horizontal")]:`calc(${m} - ${h("multi-padding-vertical")} - ${l} * 2)`,paddingBlock:h("multi-padding-vertical"),paddingInlineStart:`calc(${h("multi-padding-base")} - ${l})`,[`${t}-prefix`]:{marginInlineStart:h("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:h("line-height"),insetInlineStart:h("multi-item-padding-horizontal"),width:`calc(100% - ${h("multi-item-padding-horizontal")})`,top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:h("font-size")},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${HM}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
257
- ${t}-content-item-suffix:first-child`]:{marginInlineStart:h("multi-item-padding-horizontal")},[`${t}-selection-item`]:{lineHeight:`calc(${h("multi-item-height")} - ${l} * 2)`,border:`${l} ${c} ${h("multi-item-border-color")}`,display:"flex",marginBlock:a,marginInlineEnd:r(a).mul(2).equal(),background:h("multi-item-background"),borderRadius:h("multi-item-border-radius"),paddingInlineStart:i,paddingInlineEnd:s,transition:["height","line-height","padding"].map(b=>`${b} ${e.motionDurationSlow}`).join(","),"&-content":{...en,marginInlineEnd:s},"&-remove":{...ri(),display:"inline-flex",alignItems:"center",color:d,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}}},[`${t}-input`]:{lineHeight:r(a).mul(2).add(h("multi-item-height")).equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:HM,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[g("multi-item-height")]:e.multipleItemHeightSM,[g("multi-item-border-radius")]:e.borderRadiusXS},[`&${t}-lg`]:{[g("multi-item-height")]:e.multipleItemHeightLG,[g("multi-item-border-radius")]:e.borderRadius},[`&${t}-filled`]:{[g("multi-item-border-color")]:e.colorSplit,[g("multi-item-background")]:e.colorBgContainer,[`&${t}-disabled`]:{[g("multi-item-border-color")]:"transparent"}}}}},"genSelectInputMultipleStyle"),zM=ij;var $S=o((e,t)=>{let{componentCls:r,antCls:n}=e,[i]=br(n,"select"),{border:s,borderHover:a,borderActive:l,borderOutline:c}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{[i("border-color")]:s,[i("background-color")]:d,[i("affix-color")]:t.affixColor,[`&:not(${r}-disabled)`]:{"&:hover":{[i("border-color")]:a,[i("background-color")]:t.backgroundHover||d},[`&${r}-focused`]:{[i("border-color")]:l,[i("background-color")]:t.backgroundActive||d,boxShadow:`0 0 0 ${Q(e.controlOutlineWidth)} ${c}`}},[`&${r}-disabled`]:{[i("border-color")]:t.borderDisabled||t.border,[i("background-color")]:t.backgroundDisabled||t.background}}},"genSelectInputVariableStyle"),Lg=o((e,t,r,n,i,s)=>{let{componentCls:a}=e;return{[`&${a}-${t}`]:[$S(e,r),{[`&${a}-status-error`]:$S(e,{...r,...n}),[`&${a}-status-warning`]:$S(e,{...r,...i})},s]}},"genSelectInputVariantStyle"),IS=o((e,t)=>({outline:`${Q(e.lineWidthFocus)} ${e.lineType} ${t}`,outlineOffset:Q(e.calc(e.lineWidth).mul(-1).equal()),transition:["outline-offset","outline"].map(r=>`${r} 0s`).join(", ")}),"genSelectInputFocusVisibleStyle"),sj=o(e=>{let{componentCls:t,fontHeight:r,controlHeight:n,fontSizeIcon:i,showArrowPaddingInlineEnd:s,iconCls:a,antCls:l,max:c,calc:d}=e,[u,m]=br(l,"select"),p=c(d(s).sub(i).equal(),0);return{[t]:[{[u("border-radius")]:e.borderRadius,[u("border-color")]:"#000",[u("border-size")]:e.lineWidth,[u("background-color")]:e.colorBgContainer,[u("font-size")]:e.fontSize,[u("line-height")]:e.lineHeight,[u("font-height")]:r,[u("color")]:e.colorText,[u("affix-color")]:e.colorText,[u("height")]:n,[u("padding-horizontal")]:d(e.paddingSM).sub(e.lineWidth).equal(),[u("padding-vertical")]:`calc((${m("height")} - ${m("font-height")}) / 2 - ${m("border-size")})`,...hr(e),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:m("border-radius"),borderWidth:m("border-size"),borderStyle:e.lineType,borderColor:m("border-color"),background:m("background-color"),fontSize:m("font-size"),lineHeight:m("line-height"),color:m("color"),paddingInline:m("padding-horizontal"),paddingBlock:m("padding-vertical"),[`${t}-prefix`]:{color:m("affix-color"),flex:"none",lineHeight:1},[`${t}-placeholder`]:{...en,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:p,"&: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(g=>`${g} ${e.motionDurationMid} ease`).join(", "),"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[a]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,[u("color")]:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{[u("height")]:e.controlHeightSM,[u("padding-horizontal")]:d(e.paddingXS).sub(e.lineWidth).equal(),[u("border-radius")]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:m("padding-horizontal")}},"&-lg":{[u("height")]:e.controlHeightLG,[u("font-size")]:e.fontSizeLG,[u("line-height")]:e.lineHeightLG,[u("font-height")]:e.fontHeightLG,[u("border-radius")]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:m("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`]:{...en,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),Lg(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}),Lg(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}),Lg(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)`]:IS(e,e.activeBorderColor),[`&${t}-status-error:not(${t}-disabled):has(input:focus-visible), &${t}-status-error:not(${t}-disabled):has(textarea:focus-visible)`]:IS(e,e.colorError),[`&${t}-status-warning:not(${t}-disabled):has(input:focus-visible), &${t}-status-warning:not(${t}-disabled):has(textarea:focus-visible)`]:IS(e,e.colorWarning)}),Lg(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"}),FM(e)]}},"genSelectInputStyle"),VM=sj;var jM=o(e=>{let{fontSize:t,lineHeight:r,lineWidth:n,lineWidthFocus:i,controlHeight:s,controlHeightSM:a,controlHeightLG:l,paddingXXS:c,controlPaddingHorizontal:d,zIndexPopupBase:u,colorText:m,fontWeightStrong:p,controlItemBgActive:g,controlItemBgHover:h,colorBgContainer:b,colorFillSecondary:v,colorBgContainerDisabled:x,colorTextDisabled:S,colorPrimaryHover:y,colorPrimary:C,controlOutline:w}=e,E=c*2,R=n*2,$=Math.min(s-E,s-R),I=Math.min(a-E,a-R),T=Math.min(l-E,l-R),M=Math.floor(c/2);return{lineWidthFocus:i===0?0:n,INTERNAL_FIXED_ITEM_MARGIN:M,zIndexPopup:u+50,optionSelectedColor:m,optionSelectedFontWeight:p,optionSelectedBg:g,optionActiveBg:h,optionPadding:`${(s-t*r)/2}px ${d}px`,optionFontSize:t,optionLineHeight:r,optionHeight:s,selectorBg:b,clearBg:b,singleItemHeightLG:l,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:$,multipleItemHeightSM:I,multipleItemHeightLG:T,multipleSelectorBgDisabled:x,multipleItemColorDisabled:S,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:y,activeBorderColor:C,activeOutlineColor:w,selectAffixPadding:c}},"prepareComponentToken");var aj=o(e=>{let{antCls:t,componentCls:r,motionDurationMid:n,inputPaddingHorizontalBase:i}=e,s={[`${r}-clear`]:{opacity:1},[`${r}-suffix:not(:last-child)`]:{opacity:0,pointerEvents:"none"},[`&${r}-allow-clear:not(${r}-show-arrow):not(${r}-customize) ${r}-content`]:{marginInlineEnd:e.showArrowPaddingInlineEnd}};return{[r]:{...hr(e),[`${r}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...en,[`> ${t}-typography`]:{display:"inline"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:i,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(a=>`${a} ${n} ease`).join(", "),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":s,"&:hover":s},[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},"genBaseStyle"),lj=o(e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},aj(e),BM(e),{[`${t}-rtl`]:{direction:"rtl"}},xi(e,{focusElCls:`${t}-focused`})]},"genSelectStyle"),WM=Ht("Select",(e,{rootPrefixCls:t})=>{let r=wt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[lj(r),VM(r)]},jM,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function Lu({suffixIcon:e,contextSuffixIcon:t,clearIcon:r,contextClearIcon:n,menuItemSelectedIcon:i,contextMenuItemSelectedIcon:s,removeIcon:a,contextRemoveIcon:l,loading:c,loadingIcon:d,contextLoadingIcon:u,searchIcon:m,contextSearchIcon:p,multiple:g,hasFeedback:h,showSuffixIcon:b,feedbackIcon:v,showArrow:x,componentName:S}){return V(()=>{let y=yo(r,n,f(ta,null)),C=o($=>e===null&&!h&&!x?null:f(rr,null,b!==!1&&$,h&&v),"getSuffixIconNode"),w=null;e!==void 0?w=C(e):c?w=C(yo(d,u,f(ef,{spin:!0}))):w=o(({open:$,showSearch:I})=>C($&&I?yo(m,p,f(eg,null)):yo(t,f(tg,null))),"mergedSuffixIcon");let E=yo(i,s,g?f(Sg,null):null),R=yo(a,l,f(Li,null));return{clearIcon:y,suffixIcon:w,itemIcon:E,removeIcon:R}},[e,t,r,n,i,s,a,l,c,d,u,m,p,g,h,b,v,x])}o(Lu,"useIcons");function cj(e){return _.useMemo(()=>{if(e)return(...t)=>_.createElement(hn,{space:!0},e.apply(void 0,t))},[e])}o(cj,"usePopupRender");var UM=cj;function PS(e,t){return t!==void 0?t:e!==null}o(PS,"useShowArrow");var qM="SECRET_COMBOBOX_MODE_DO_NOT_USE",dj=o((e,t)=>{let{prefixCls:r,bordered:n,className:i,rootClassName:s,getPopupContainer:a,popupClassName:l,dropdownClassName:c,listHeight:d=256,placement:u,listItemHeight:m,size:p,disabled:g,notFoundContent:h,status:b,builtinPlacements:v,dropdownMatchSelectWidth:x,popupMatchSelectWidth:S,direction:y,style:C,allowClear:w,variant:E,popupStyle:R,dropdownStyle:$,transitionName:I,tagRender:T,maxCount:M,prefix:N,dropdownRender:k,popupRender:D,onDropdownVisibleChange:A,onOpenChange:B,styles:L,classNames:F,clearIcon:q,showSearch:X,...W}=e,{getPopupContainer:j,getPrefixCls:Z,renderEmpty:J,direction:U,virtual:ee,popupMatchSelectWidth:re,popupOverflow:ne}=K(at),{showSearch:oe,allowClear:te,style:ie,styles:se,className:xe,classNames:me,clearIcon:Ee,loadingIcon:$e,menuItemSelectedIcon:he,removeIcon:ye,suffixIcon:He}=Mt("select"),[,Se]=Gr(),Ce=m??Se?.controlHeight,ue=Z("select",r),Pe=Z(),ve=y??U,{compactSize:Ue,compactItemClassnames:pe}=qo(ue,ve),[Oe,Ie]=jo("select",E,n),ke=oo(ue),[We,ze]=WM(ue,ke),Ne=V(()=>{let{mode:Kt}=e;if(Kt!=="combobox")return Kt===qM?"combobox":Kt},[e.mode]),lt=Ne==="multiple"||Ne==="tags",qe=PS(e.suffixIcon,e.showArrow),Ze=S??x??re,je=UM(D||k),gt=B||A,{status:rt,hasFeedback:qt,isFormItemInput:Tt,feedbackIcon:Xe}=K(Ao),Rt=Gn(rt,b),Lt;h!==void 0?Lt=h:Ne==="combobox"?Lt=null:Lt=J?.("Select")||f($g,{componentName:"Select"});let{suffixIcon:jt,itemIcon:Ve,removeIcon:it,clearIcon:Fe}=Lu({...W,multiple:lt,hasFeedback:qt,feedbackIcon:Xe,showSuffixIcon:qe,prefixCls:ue,componentName:"Select",clearIcon:q,searchIcon:ES(X,"searchIcon"),contextClearIcon:Ee,contextLoadingIcon:$e,contextMenuItemSelectedIcon:he,contextRemoveIcon:ye,contextSearchIcon:ES(oe,"searchIcon"),contextSuffixIcon:He}),Wt=w??te,ge=Wt===!0?{clearIcon:Fe}:Wt,Ae=X??oe,ct=_t(W,["suffixIcon","itemIcon"]),Be=Rr(Kt=>p??Ue??Kt),ut=K(Fo),Je=g??ut,Ct={...e,variant:Oe,status:Rt,disabled:Je,size:Be},Gt=$t(ie),Xt=$t(C),[Er,Sr]=Qt([me,F],[se,Gt,L,Xt],{props:Ct},{popup:{_default:"root"}}),zr=O(Er.popup.root,l,c,{[`${ue}-dropdown-${ve}`]:ve==="rtl"},s,ze,ke,We),Ke={...Sr.popup?.root,...R??$},So=O({[`${ue}-lg`]:Be==="large",[`${ue}-sm`]:Be==="small",[`${ue}-rtl`]:ve==="rtl",[`${ue}-${Oe}`]:Ie,[`${ue}-in-form-item`]:Tt},kn(ue,Rt,qt),pe,xe,i,Er.root,s,ze,ke,We),Et=V(()=>u!==void 0?u:ve==="rtl"?"bottomRight":"bottomLeft",[u,ve]),[zt]=Un("SelectLike",Sr.popup.root?.zIndex??Ke.zIndex);return f(AM,{ref:t,virtual:ee,classNames:Er,styles:Sr,showSearch:Ae,...ct,style:Sr.root,popupMatchSelectWidth:Ze,transitionName:rs(Pe,"slide-up",I),builtinPlacements:_M(v,ne),listHeight:d,listItemHeight:Ce,mode:Ne,prefixCls:ue,placement:Et,direction:ve,prefix:N,suffixIcon:jt,menuItemSelectedIcon:Ve,removeIcon:it,allowClear:ge,notFoundContent:Lt,className:So,getPopupContainer:a||j,popupClassName:zr,disabled:Je,popupStyle:{...Sr.popup.root,...Ke,zIndex:zt},maxCount:lt?M:void 0,tagRender:lt?T:void 0,popupRender:je,onPopupVisibleChange:gt})},"InternalSelect"),Kc=le(dj),uj=dl(Kc,"popupAlign");Kc.SECRET_COMBOBOX_MODE_DO_NOT_USE=qM;Kc.Option=Du;Kc.OptGroup=ku;Kc._InternalPanelDoNotUseOrYouWillBeFired=uj;var Bg=Kc;var mj=o(e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},"genPaginationDisabledStyle"),pj=o(e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...Yf(e),width:e.paginationMiniQuickJumperInputWidth}}}}},"genPaginationSmallStyle"),fj=o(e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...Xf(e)}}}}},"genPaginationLargeStyle"),gj=o(e=>{let{componentCls:t,antCls:r}=e,[,n]=br(r,"pagination");return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:n("item-size-actual"),lineHeight:n("item-size-actual"),verticalAlign:"top",[`${t}-item-link`]:{height:n("item-size-actual"),backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:n("item-size-actual"),lineHeight:n("item-size-actual")}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:n("item-size-actual"),marginInlineEnd:n("item-spacing-actual"),input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${Q(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${Q(e.inputOutlineOffset)} 0 ${Q(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},"genPaginationSimpleStyle"),hj=o(e=>{let{componentCls:t}=e,r=`${t}-options-quick-jumper input, ${t}-simple-pager input`;return{[`&${t}-filled`]:{[r]:{background:e.colorFillTertiary,borderColor:"transparent","&:hover":{background:e.colorFillSecondary},"&:focus":{borderColor:e.activeBorderColor,outline:0,backgroundColor:e.activeBg},"&[disabled]":{...Dc(e)}}},[`&${t}-borderless`]:{[r]:{background:"transparent",border:"none","&:focus":{outline:"none",boxShadow:"none"},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-underlined`]:{[r]:{background:e.colorBgContainer,borderWidth:`${Q(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${e.colorBorder} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg},"&[disabled]":{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"}}}}},"genPaginationInputVariantStyle"),bj=o(e=>{let{componentCls:t,iconCls:r,sizeLG:n,antCls:i}=e,[,s]=br(i,"pagination");return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",inset:0,display:"inline-flex",justifyContent:"center",alignItems:"center",margin:"auto",color:e.colorTextDisabled,textAlign:"center",opacity:1,transition:`all ${e.motionDurationMid}`,[`${r}-ellipsis > svg`]:{width:n,height:n}}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
258
- ${t}-prev,
259
- ${t}-jump-prev,
260
- ${t}-jump-next
261
- `]:{marginInlineEnd:s("item-spacing-actual")},[`
262
- ${t}-prev,
263
- ${t}-next,
264
- ${t}-jump-prev,
265
- ${t}-jump-next
266
- `]:{display:"inline-block",minWidth:s("item-size-actual"),height:s("item-size-actual"),color:e.colorText,fontFamily:e.fontFamily,lineHeight:s("item-size-actual"),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle",[`&-size-changer, &-size-changer${t}-options-size-changer-select`]:{width:"auto"},"&-quick-jumper":{display:"inline-block",height:s("item-size-actual"),marginInlineStart:e.marginXS,lineHeight:s("item-size-actual"),verticalAlign:"baseline",input:{...Fc(e),...Gf(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Dc(e)},width:e.quickJumperInputWidth,height:s("item-size-actual"),boxSizing:"border-box",margin:0,marginInlineStart:s("item-spacing-actual"),marginInlineEnd:s("item-spacing-actual")}}}}},"genPaginationJumpStyle"),vj=o(e=>{let{componentCls:t,antCls:r}=e,[,n]=br(r,"pagination");return{[`${t}-item`]:{display:"inline-block",minWidth:n("item-size-actual"),height:n("item-size-actual"),marginInlineEnd:n("item-spacing-actual"),fontFamily:e.fontFamily,lineHeight:Q(e.calc(n("item-size-actual")).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Q(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Q(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},"genPaginationItemStyle"),yj=o(e=>{let{componentCls:t,antCls:r}=e,[n,i]=br(r,"pagination");return{[t]:{[n("item-size-actual")]:Q(e.itemSize),[n("item-spacing-actual")]:Q(e.marginXS),"&-small":{[n("item-size-actual")]:Q(e.itemSizeSM),[n("item-spacing-actual")]:Q(e.marginXXS)},"&-large":{[n("item-size-actual")]:Q(e.itemSizeLG),[n("item-spacing-actual")]:Q(e.marginSM)},...hr(e),display:"flex",alignItems:"center","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:i("item-size-actual"),marginInlineEnd:i("item-spacing-actual"),lineHeight:Q(e.calc(i("item-size-actual")).sub(2).equal()),verticalAlign:"middle"},...vj(e),...bj(e),...gj(e),...hj(e),...pj(e),...fj(e),...mj(e),[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},"genPaginationStyle"),xj=o(e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Wn(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...wn(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:wn(e)}}}},"genPaginationFocusStyle"),NS=o(e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...An(e)}),"prepareComponentToken"),MS=o(e=>wt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Dn(e)),"prepareToken"),GM=Ht("Pagination",e=>{let t=MS(e);return[yj(t),xj(t)]},NS);var Sj=o(e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},"genBorderedStyle"),XM=sl(["Pagination","bordered"],e=>{let t=MS(e);return Sj(t)},NS);function Fg(e){return V(()=>typeof e=="boolean"?[e,{}]:Ut(e)?[!0,e]:[void 0,void 0],[e])}o(Fg,"useShowSizeChanger");var Cj=o(e=>{let{align:t,prefixCls:r,selectPrefixCls:n,className:i,rootClassName:s,style:a,size:l,locale:c,responsive:d,showSizeChanger:u,components:m,selectComponentClass:p,pageSizeOptions:g,styles:h,classNames:b,...v}=e,{xs:x}=Gc(d),[,S]=Gr(),{getPrefixCls:y,direction:C,showSizeChanger:w,className:E,style:R,classNames:$,styles:I,totalBoundaryShowSizeChanger:T}=Mt("pagination"),M=y("pagination",r),[N,k]=GM(M),D=Rr(l),A=D==="small"||!!(x&&!D&&d),[B,L]=jo("input"),F={...e,size:D},q=$t(R),X=$t(a),[W,j]=Qt([$,b],[I,q,h,X],{props:F}),[Z]=Do("Pagination",lp),J={...Z,...c},[U,ee]=Fg(u),[re,ne]=Fg(w),oe=U??re,te=ee??ne,ie=p||Bg,se=V(()=>g?g.map(Number):void 0,[g]),xe=o(ye=>{let{disabled:He,size:Se,onSizeChange:Ce,"aria-label":ue,className:Pe,options:ve}=ye,Ue=m?.sizeChanger;if(Ue)return f(Ue,{value:Se,onChange:Ce,disabled:!!He,className:Pe});let{className:pe,onChange:Oe}=te||{},Ie=ve.find(ke=>String(ke.value)===String(Se))?.value;return f(ie,{disabled:He,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:o(ke=>ke.parentNode,"getPopupContainer"),"aria-label":ue,options:ve,...te,value:Ie,onChange:o((ke,We)=>{Ce?.(ke),Oe?.(ke,We)},"onChange"),size:D,className:O(`${M}-options-size-changer-select`,Pe,pe)})},"sizeChangerRender"),me=V(()=>{let ye=f("span",{className:`${M}-item-ellipsis`},f(Mc,null)),He=f("button",{className:`${M}-item-link`,type:"button",tabIndex:-1},C==="rtl"?f(al,null):f(ru,null)),Se=f("button",{className:`${M}-item-link`,type:"button",tabIndex:-1},C==="rtl"?f(ru,null):f(al,null)),Ce=f("a",{className:`${M}-item-link`},f("div",{className:`${M}-item-container`},C==="rtl"?f(Ux,{className:`${M}-item-link-icon`}):f(jx,{className:`${M}-item-link-icon`}),ye)),ue=f("a",{className:`${M}-item-link`},f("div",{className:`${M}-item-container`},C==="rtl"?f(jx,{className:`${M}-item-link-icon`}):f(Ux,{className:`${M}-item-link-icon`}),ye));return{prevIcon:He,nextIcon:Se,jumpPrevIcon:Ce,jumpNextIcon:ue}},[C,M]),Ee=y("select",n),$e=O({[`${M}-${t}`]:!!t,[`${M}-${D}`]:D,[`${M}-${B}`]:L&&B!=="outlined",[`${M}-mini`]:A,[`${M}-rtl`]:C==="rtl",[`${M}-bordered`]:S.wireframe},E,i,s,W.root,N,k),he={...j.root};return f(rr,null,S.wireframe&&f(XM,{prefixCls:M}),f(Gx,{...me,...v,styles:j,classNames:W,style:he,prefixCls:M,selectPrefixCls:Ee,className:$e,locale:J,pageSizeOptions:se,showSizeChanger:oe,totalBoundaryShowSizeChanger:v.totalBoundaryShowSizeChanger??T,sizeChangerRender:xe}))},"Pagination"),YM=Cj;var KM=YM;function wj(e,t,r){var n=r||{},i=n.noTrailing,s=i===void 0?!1:i,a=n.noLeading,l=a===void 0?!1:a,c=n.debounceMode,d=c===void 0?void 0:c,u,m=!1,p=0;function g(){u&&clearTimeout(u)}o(g,"clearExistingTimeout");function h(v){var x=v||{},S=x.upcomingOnly,y=S===void 0?!1:S;g(),m=!y}o(h,"cancel");function b(){for(var v=arguments.length,x=new Array(v),S=0;S<v;S++)x[S]=arguments[S];var y=this,C=Date.now()-p;if(m)return;function w(){p=Date.now(),t.apply(y,x)}o(w,"exec");function E(){u=void 0}o(E,"clear"),!l&&d&&!u&&w(),g(),d===void 0&&C>e?l?(p=Date.now(),s||(u=setTimeout(d?E:w,e))):w():s!==!0&&(u=setTimeout(d?E:w,d===void 0?e-C:e))}return o(b,"wrapper"),b.cancel=h,b}o(wj,"throttle");function QM(e,t,r){var n=r||{},i=n.atBegin,s=i===void 0?!1:i;return wj(e,t,{debounceMode:s!==!1})}o(QM,"debounce");var Hg=100,eT=Hg/5,tT=Hg/2-eT/2,TS=tT*2*Math.PI,ZM=50,JM=o(e=>{let{dotClassName:t,style:r,hasCircleCls:n}=e;return f("circle",{className:O(`${t}-circle`,{[`${t}-circle-bg`]:n}),r:tT,cx:ZM,cy:ZM,strokeWidth:eT,style:r})},"CustomCircle"),Rj=o(({percent:e,prefixCls:t})=>{let r=`${t}-dot`,n=`${r}-holder`,i=`${n}-hidden`,[s,a]=ce(!1);Pt(()=>{e!==0&&a(!0)},[e]);let l=Math.max(Math.min(e,100),0);if(!s)return null;let c={strokeDashoffset:`${TS/4}`,strokeDasharray:`${TS*l/100} ${TS*(100-l)/100}`};return f("span",{className:O(n,`${r}-progress`,{[i]:l<=0})},f("svg",{viewBox:`0 0 ${Hg} ${Hg}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":l},f(JM,{dotClassName:r,hasCircleCls:!0}),f(JM,{dotClassName:r,style:c})))},"Progress"),rT=Rj;function OS(e){let{prefixCls:t,percent:r=0,className:n,style:i}=e,s=`${t}-dot`,a=`${s}-holder`,l=`${a}-hidden`;return f(rr,null,f("span",{className:O(a,n,r>0&&l),style:i},f("span",{className:O(s,`${t}-dot-spin`)},[1,2,3,4].map(c=>f("i",{className:`${t}-dot-item`,key:c})))),f(rT,{prefixCls:t,percent:r}))}o(OS,"Looper");function kS(e){let{prefixCls:t,indicator:r,percent:n,className:i,style:s}=e,a=`${t}-dot`;return r&&Tr(r)?ho(r,l=>({className:O(l.className,a,i),style:{...l.style,...s},percent:n})):f(OS,{prefixCls:t,percent:n,className:i,style:s})}o(kS,"Indicator");var Ej=new ir("antSpinMove",{to:{opacity:1}}),$j=new ir("antRotate",{to:{transform:"rotate(405deg)"}}),Ij=o(e=>{let{componentCls:t}=e,r=`${t}-section`;return{[t]:{...hr(e),position:"relative","&-rtl":{direction:"rtl"},[`&${r}, > ${r}`]:{display:"flex",alignItems:"center",flexDirection:"column",gap:e.paddingSM,color:e.colorPrimary},[`&${r}`]:{display:"inline-flex"},[`> ${r}`]:{position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)",zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-fullscreen":{position:"fixed",inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:"none",transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:"auto"},[`> ${r}`]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},"genSpinStyle"),Pj=o(e=>{let{componentCls:t,antCls:r,motionDurationSlow:n}=e,[i,s]=br(r,"spin");return{[t]:{[i("dot-holder-size")]:e.dotSize,[i("dot-item-size")]:`calc((${s("dot-holder-size")} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:"1em",height:"1em",fontSize:s("dot-holder-size"),display:"inline-block",transition:["transform","opacity"].map(a=>`${a} ${n} ease`).join(", "),transformOrigin:"50% 50%",lineHeight:1,"&-hidden":{transform:"scale(0.3)",opacity:0}},position:"relative",display:"inline-block",fontSize:s("dot-holder-size"),width:"1em",height:"1em","&-spin":{transform:"rotate(45deg)",animationName:$j,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-item":{position:"absolute",display:"block",width:s("dot-item-size"),height:s("dot-item-size"),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ej,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-progress":{position:"absolute",left:"50%",top:0,transform:"translateX(-50%)"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(a=>`${a} ${n} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},"genIndicatorStyle"),Nj=o(e=>{let{componentCls:t}=e,[r]=br(e.antCls,"spin");return{[t]:{"&-sm":{[r("dot-holder-size")]:e.dotSizeSM},"&-lg":{[r("dot-holder-size")]:e.dotSizeLG}}}},"genSizeStyle"),Mj=o(e=>{let{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},"prepareComponentToken"),oT=Ht("Spin",e=>{let t=wt(e,{spinDotDefault:e.colorTextDescription});return[Ij(t),Pj(t),Nj(t)]},Mj);var Tj=200,nT=[[30,.05],[70,.03],[96,.01]];function DS(e,t){let[r,n]=ce(0),i=H(null),s=t==="auto";return fe(()=>(s&&e&&(n(0),i.current=setInterval(()=>{n(a=>{let l=100-a;for(let c=0;c<nT.length;c+=1){let[d,u]=nT[c];if(a<=d)return a+l*u}return a})},Tj)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[s,e]),s?r:t}o(DS,"usePercent");var iT;function Oj(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}o(Oj,"shouldDelay");var sT=le((e,t)=>{let{prefixCls:r,spinning:n=!0,delay:i=0,className:s,rootClassName:a,size:l,tip:c,description:d,wrapperClassName:u,style:m,children:p,fullscreen:g=!1,indicator:h,percent:b,classNames:v,styles:x,...S}=e,{getPrefixCls:y,direction:C,indicator:w,className:E,style:R,classNames:$,styles:I}=Mt("spin"),T=y("spin",r),[M,N]=oT(T),[k,D]=ce(()=>n&&!Oj(n,i)),A=DS(k,b);fe(()=>{if(n){let re=QM(i,()=>{D(!0)});return re(),()=>{re?.cancel?.()}}D(!1)},[i,n]);let B=Rr(re=>l??re),L=d??c,F={...e,size:B,spinning:k,tip:L,description:L,fullscreen:g,children:p,percent:A},q=$t(R),[X,W]=Qt([$,v],[I,q,x],{props:F}),j=h??w??iT,Z=typeof p<"u",J=Z||g,U=f(rr,null,f(kS,{className:O(X.indicator),style:W.indicator,prefixCls:T,indicator:j,percent:A}),L&&f("div",{className:O(`${T}-description`,X.tip,X.description),style:{...W.tip,...W.description}},L)),ee=H(null);return ft(t,()=>({nativeElement:ee.current})),f("div",{ref:ee,className:O(T,{[`${T}-sm`]:B==="small",[`${T}-lg`]:B==="large",[`${T}-spinning`]:k,[`${T}-rtl`]:C==="rtl",[`${T}-fullscreen`]:g},a,X.root,g&&X.mask,J?u:[`${T}-section`,X.section],E,s,M,N),style:{...W.root,...J?{}:W.section,...g?W.mask:{},...m},"aria-live":"polite","aria-busy":k,...S},k&&(J?f("div",{className:O(`${T}-section`,X.section),style:W.section},U):U),Z&&f("div",{className:O(`${T}-container`,X.container),style:W.container},p))});sT.setDefaultIndicator=e=>{iT=e};var aT=sT;var Bu=_.createContext({}),HHe=Bu.Consumer;var kj=_.forwardRef((e,t)=>{let{prefixCls:r,className:n,avatar:i,title:s,description:a,...l}=e,{getPrefixCls:c}=K(at),d=c("list",r),u=O(`${d}-item-meta`,n),m=_.useRef(null);_.useImperativeHandle(t,()=>({nativeElement:m.current}));let p=_.createElement("div",{className:`${d}-item-meta-content`},s&&_.createElement("h4",{className:`${d}-item-meta-title`},s),a&&_.createElement("div",{className:`${d}-item-meta-description`},a));return _.createElement("div",{ref:m,...l,className:u},i&&_.createElement("div",{className:`${d}-item-meta-avatar`},i),(s||a)&&p)}),Dj=_.forwardRef((e,t)=>{let{prefixCls:r,children:n,actions:i,extra:s,styles:a,className:l,classNames:c,colStyle:d,...u}=e,{grid:m,itemLayout:p}=K(Bu),{getPrefixCls:g,list:h}=K(at),b=o(R=>O(h?.item?.classNames?.[R],c?.[R]),"moduleClass"),v=o(R=>({...h?.item?.styles?.[R],...a?.[R]}),"moduleStyle"),x=o(()=>{let R=co(n);return R.some(cn)&&R.length>1},"isItemContainsTextNodeAndNotSingular"),S=o(()=>p==="vertical"?!!s:!x(),"isFlexMode"),y=g("list",r),C=i&&i.length>0&&_.createElement("ul",{className:O(`${y}-item-action`,b("actions")),key:"actions",style:v("actions")},i.map((R,$)=>_.createElement("li",{key:`${y}-item-action-${$}`},R,$!==i.length-1&&_.createElement("em",{className:`${y}-item-action-split`})))),w=m?"div":"li",E=_.createElement(w,{...u,...m?{}:{ref:t},className:O(`${y}-item`,{[`${y}-item-no-flex`]:!S()},l)},p==="vertical"&&s?[_.createElement("div",{className:`${y}-item-main`,key:"content"},n,C),_.createElement("div",{className:O(`${y}-item-extra`,b("extra")),key:"extra",style:v("extra")},s)]:[n,C,ho(s,{key:"extra"})]);return m?_.createElement(Fx,{ref:t,flex:1,style:d},E):E}),lT=Dj;lT.Meta=kj;var zg=lT;var Aj=o(e=>{let{listBorderedCls:t,componentCls:r,paddingLG:n,margin:i,itemPaddingSM:s,itemPaddingLG:a,marginLG:l,borderRadiusLG:c}=e,d=Q(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${r}-header`]:{borderRadius:`${d} ${d} 0 0`},[`${r}-footer`]:{borderRadius:`0 0 ${d} ${d}`},[`${r}-header,${r}-footer,${r}-item`]:{paddingInline:n},[`${r}-pagination`]:{margin:`${Q(i)} ${Q(l)}`}},[`${t}${r}-sm`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:s}},[`${t}${r}-lg`]:{[`${r}-item,${r}-header,${r}-footer`]:{padding:a}}}},"genBorderedStyle"),_j=o(e=>{let{componentCls:t,screenSM:r,screenMD:n,marginLG:i,marginSM:s,margin:a}=e;return{[`@media screen and (max-width:${n}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${r}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:s}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Q(a)}`}}}}}},"genResponsiveStyle"),Lj=o(e=>{let{componentCls:t,antCls:r,controlHeight:n,minHeight:i,paddingSM:s,marginLG:a,padding:l,itemPadding:c,colorPrimary:d,itemPaddingSM:u,itemPaddingLG:m,paddingXS:p,margin:g,colorText:h,colorTextDescription:b,motionDurationSlow:v,lineWidth:x,headerBg:S,footerBg:y,emptyTextPadding:C,metaMarginBottom:w,avatarMarginRight:E,titleMarginBottom:R,descriptionFontSize:$}=e;return{[t]:{...hr(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:S},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:a,[`${r}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:c,color:h,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:E},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:h},[`${t}-item-meta-title`]:{margin:`0 0 ${Q(e.marginXXS)} 0`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:h,transition:`all ${v}`,"&:hover":{color:d}}},[`${t}-item-meta-description`]:{color:b,fontSize:$,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Q(p)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:x,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Q(l)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}},[`${t}-grid ${r}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:w,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:R,color:h,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${Q(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:n},[`${t}-split${t}-something-after-last-item ${r}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:m},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},"genBaseStyle"),Bj=o(e=>({contentWidth:220,itemPadding:`${Q(e.paddingContentVertical)} 0`,itemPaddingSM:`${Q(e.paddingContentVerticalSM)} ${Q(e.paddingContentHorizontal)}`,itemPaddingLG:`${Q(e.paddingContentVerticalLG)} ${Q(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),"prepareComponentToken"),cT=Ht("List",e=>{let t=wt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[Lj(t),Aj(t),_j(t)]},Bj,{extraCssVarPrefixCls:o(({prefixCls:e})=>[`${e}-container`],"extraCssVarPrefixCls")});var Fj=o((e,t)=>{let{pagination:r=!1,prefixCls:n,bordered:i=!1,split:s=!0,className:a,rootClassName:l,style:c,children:d,itemLayout:u,loadMore:m,grid:p,dataSource:g=[],size:h,header:b,footer:v,loading:x=!1,rowKey:S,renderItem:y,locale:C,...w}=e,E=Ut(r)?r:{},[R,$]=ce(E.defaultCurrent||1),[I,T]=ce(E.defaultPageSize||10),{getPrefixCls:M,direction:N,className:k,style:D}=Mt("list"),{renderEmpty:A}=K(at),B={current:1,total:0,position:"bottom"},L=o(ue=>(Pe,ve)=>{$(Pe),T(ve),r&&r?.[ue]?.(Pe,ve)},"triggerPaginationEvent"),F=L("onChange"),q=L("onShowSizeChange"),X=o((ue,Pe)=>{if(!y)return null;let ve;return er(S)?ve=S(ue):S?ve=ue[S]:ve=ue.key,ve??(ve=`list-item-${Pe}`),f(rr,{key:ve},y(ue,Pe))},"renderInternalItem"),W=!!(m||r||v),j=M("list",n),[Z,J]=cT(j),U=x;typeof U=="boolean"&&(U={spinning:U});let ee=!!U?.spinning,re=Rr(h),ne="";switch(re){case"large":ne="lg";break;case"small":ne="sm";break;default:break}let oe=O(j,{[`${j}-vertical`]:u==="vertical",[`${j}-${ne}`]:ne,[`${j}-split`]:s,[`${j}-bordered`]:i,[`${j}-loading`]:ee,[`${j}-grid`]:!!p,[`${j}-something-after-last-item`]:W,[`${j}-rtl`]:N==="rtl"},k,a,l,Z,J),te=`${j}-container`,ie=ql(B,{total:g.length,current:R,pageSize:I},r||{}),se=Math.ceil(ie.total/ie.pageSize);ie.current=Math.min(ie.current,se);let xe=r&&f("div",{className:O(`${j}-pagination`)},f(KM,{align:"end",...ie,onChange:F,onShowSizeChange:q})),me=to(g);r&&g.length>(ie.current-1)*ie.pageSize&&(me=to(g).splice((ie.current-1)*ie.pageSize,ie.pageSize));let Ee=Object.keys(p||{}).some(ue=>Ri.includes(ue)),$e=Gc(Ee),he=V(()=>{for(let ue=0;ue<Ri.length;ue+=1){let Pe=Ri[ue];if($e[Pe])return Pe}},[$e]),ye=V(()=>{if(!p)return;let ue=he&&p[he]?p[he]:p.column;if(ue)return{width:`${100/ue}%`,maxWidth:`${100/ue}%`}},[JSON.stringify(p),he]),He=ee&&f("div",{style:{minHeight:53}});if(me.length>0){let ue=me.map(X);He=p?f(zx,{className:O(te,J),gutter:p.gutter},vs.map(ue,Pe=>f("div",{key:Pe?.key,style:ye},Pe))):f("ul",{className:O(`${j}-items`,te,J)},ue)}else!d&&!ee&&(He=f("div",{className:`${j}-empty-text`},C?.emptyText||A?.("List")||f($g,{componentName:"List"})));let Se=ie.position,Ce=V(()=>({grid:p,itemLayout:u}),[JSON.stringify(p),u]);return f(Bu.Provider,{value:Ce},f("div",{ref:t,style:{...D,...c},className:oe,...w},(Se==="top"||Se==="both")&&xe,b&&f("div",{className:`${j}-header`},b),f(aT,{...U},He,d),v&&f("div",{className:`${j}-footer`},v),m||(Se==="bottom"||Se==="both")&&xe))},"InternalList"),Hj=le(Fj),dT=Hj;dT.Item=zg;var uT=dT;var un=Ti(Vg()),yT=Ti(mT()),xT=Ti(pT()),ST=Ti(fT()),CT=Ti(gT()),wT=Ti(hT()),RT=Ti(bT());un.default.extend(RT.default);un.default.extend(wT.default);un.default.extend(yT.default);un.default.extend(xT.default);un.default.extend(ST.default);un.default.extend(CT.default);un.default.extend((e,t)=>{let r=t.prototype,n=r.format;r.format=o(function(s){let a=(s||"").replace("Wo","wo");return n.bind(this)(a)},"f")});var zj={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},yl=o(e=>zj[e]||e.split("_")[0],"parseLocale"),vT=o(()=>{},"parseNoMatchNotice"),xo=o(e=>!un.default.isDayjs(e)||e instanceof un.default?e:(0,un.default)(e.valueOf()),"getUDayjs"),Vj={getNow:o(()=>{let e=(0,un.default)();return typeof e.tz=="function"?e.tz():e},"getNow"),getFixedDate:o(e=>(0,un.default)(e,["YYYY-M-DD","YYYY-MM-DD"]),"getFixedDate"),getEndDate:o(e=>xo(e).endOf("month"),"getEndDate"),getWeekDay:o(e=>{let t=xo(e).locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},"getWeekDay"),getYear:o(e=>xo(e).year(),"getYear"),getMonth:o(e=>xo(e).month(),"getMonth"),getDate:o(e=>xo(e).date(),"getDate"),getHour:o(e=>xo(e).hour(),"getHour"),getMinute:o(e=>xo(e).minute(),"getMinute"),getSecond:o(e=>xo(e).second(),"getSecond"),getMillisecond:o(e=>xo(e).millisecond(),"getMillisecond"),addYear:o((e,t)=>xo(e).add(t,"year"),"addYear"),addMonth:o((e,t)=>xo(e).add(t,"month"),"addMonth"),addDate:o((e,t)=>xo(e).add(t,"day"),"addDate"),setYear:o((e,t)=>xo(e).year(t),"setYear"),setMonth:o((e,t)=>xo(e).month(t),"setMonth"),setDate:o((e,t)=>xo(e).date(t),"setDate"),setHour:o((e,t)=>xo(e).hour(t),"setHour"),setMinute:o((e,t)=>xo(e).minute(t),"setMinute"),setSecond:o((e,t)=>xo(e).second(t),"setSecond"),setMillisecond:o((e,t)=>xo(e).millisecond(t),"setMillisecond"),isAfter:o((e,t)=>xo(e).isAfter(xo(t)),"isAfter"),isValidate:o(e=>xo(e).isValid(),"isValidate"),locale:{getWeekFirstDay:o(e=>(0,un.default)().locale(yl(e)).localeData().firstDayOfWeek(),"getWeekFirstDay"),getWeekFirstDate:o((e,t)=>xo(t).locale(yl(e)).weekday(0),"getWeekFirstDate"),getWeek:o((e,t)=>xo(t).locale(yl(e)).week(),"getWeek"),getShortWeekDays:o(e=>(0,un.default)().locale(yl(e)).localeData().weekdaysMin(),"getShortWeekDays"),getShortMonths:o(e=>(0,un.default)().locale(yl(e)).localeData().monthsShort(),"getShortMonths"),format:o((e,t,r)=>xo(t).locale(yl(e)).format(r),"format"),parse:o((e,t,r)=>{let n=yl(e);for(let i=0;i<r.length;i+=1){let s=r[i],a=t;if(s.includes("wo")||s.includes("Wo")){let c=a.split("-")[0],d=a.split("-")[1],u=(0,un.default)(c,"YYYY").startOf("year").locale(n);for(let m=0;m<=52;m+=1){let p=u.add(m,"week");if(p.format("Wo")===d)return p}return vT(),null}let l=(0,un.default)(a,s,!0).locale(n);if(l.isValid())return l}return t&&vT(),null},"parse")}},ET=Vj;var jj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},$T=jj;function YS(){return YS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},YS.apply(this,arguments)}o(YS,"_extends");var Wj=o((e,t)=>f(sr,YS({},e,{ref:t,icon:$T})),"SwapRightOutlined"),Uj=le(Wj),IT=Uj;function PT(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}o(PT,"getRealPlacement");var qj=bt(null),Io=qj;var Gj={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Xj({popupElement:e,popupStyle:t,popupClassName:r,popupAlign:n,transitionName:i,getPopupContainer:s,children:a,range:l,placement:c,builtinPlacements:d=Gj,direction:u,visible:m,onClose:p}){let{prefixCls:g}=K(Io),h=`${g}-dropdown`,b=PT(c,u==="rtl");return f(Ji,{showAction:[],hideAction:["click"],popupPlacement:b,builtinPlacements:d,prefixCls:h,popupMotion:{motionName:i},popup:e,popupAlign:n,popupVisible:m,popupClassName:O(r,{[`${h}-range`]:l,[`${h}-rtl`]:u==="rtl"}),popupStyle:t,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:o(v=>{v||p()},"onPopupVisibleChange")},a)}o(Xj,"PickerTrigger");var jg=Xj;function Fu(e,t,r="0"){let n=String(e);for(;n.length<t;)n=`${r}${n}`;return n}o(Fu,"leftPad");function Xn(e){return e==null?[]:Array.isArray(e)?e:[e]}o(Xn,"toArray");function ls(e,t,r){let n=[...e];return n[t]=r,n}o(ls,"fillIndex");function Sa(e,t){let r={};return(t||Object.keys(e)).forEach(i=>{e[i]!==void 0&&(r[i]=e[i])}),r}o(Sa,"pickProps");function Wg(e,t,r){if(r)return r;switch(e){case"time":return t.fieldTimeFormat;case"datetime":return t.fieldDateTimeFormat;case"month":return t.fieldMonthFormat;case"year":return t.fieldYearFormat;case"quarter":return t.fieldQuarterFormat;case"week":return t.fieldWeekFormat;default:return t.fieldDateFormat}}o(Wg,"getRowFormat");function Ug(e,t,r){let n=t.find(i=>e[i]);return r!==n?e[n]:void 0}o(Ug,"getFromDate");function qg(e){return Sa(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}o(qg,"pickTriggerProps");function Ca(e,t,r){return!e&&!t||e===t?!0:!e||!t?!1:r()}o(Ca,"nullableCompare");function Gg(e,t,r){return Ca(t,r,()=>{let n=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(r)/10);return n===i})}o(Gg,"isSameDecade");function wa(e,t,r){return Ca(t,r,()=>e.getYear(t)===e.getYear(r))}o(wa,"isSameYear");function NT(e,t){return Math.floor(e.getMonth(t)/3)+1}o(NT,"getQuarter");function Yj(e,t,r){return Ca(t,r,()=>wa(e,t,r)&&NT(e,t)===NT(e,r))}o(Yj,"isSameQuarter");function Xg(e,t,r){return Ca(t,r,()=>wa(e,t,r)&&e.getMonth(t)===e.getMonth(r))}o(Xg,"isSameMonth");function Yg(e,t,r){return Ca(t,r,()=>wa(e,t,r)&&Xg(e,t,r)&&e.getDate(t)===e.getDate(r))}o(Yg,"isSameDate");function MT(e,t,r){return Ca(t,r,()=>e.getHour(t)===e.getHour(r)&&e.getMinute(t)===e.getMinute(r)&&e.getSecond(t)===e.getSecond(r))}o(MT,"isSameTime");function Hu(e,t,r){return Ca(t,r,()=>Yg(e,t,r)&&MT(e,t,r)&&e.getMillisecond(t)===e.getMillisecond(r))}o(Hu,"isSameTimestamp");function Qc(e,t,r,n){return Ca(r,n,()=>{let i=e.locale.getWeekFirstDate(t,r),s=e.locale.getWeekFirstDate(t,n);return wa(e,i,s)&&e.locale.getWeek(t,r)===e.locale.getWeek(t,n)})}o(Qc,"isSameWeek");function Po(e,t,r,n,i){switch(i){case"date":return Yg(e,r,n);case"week":return Qc(e,t.locale,r,n);case"month":return Xg(e,r,n);case"quarter":return Yj(e,r,n);case"year":return wa(e,r,n);case"decade":return Gg(e,r,n);case"time":return MT(e,r,n);default:return Hu(e,r,n)}}o(Po,"isSame");function Ra(e,t,r,n){return!t||!r||!n?!1:e.isAfter(n,t)&&e.isAfter(r,n)}o(Ra,"isInRange");function zu(e,t,r,n,i){return Po(e,t,r,n,i)?!0:e.isAfter(r,n)}o(zu,"isSameOrAfter");function TT(e,t,r){let n=t.locale.getWeekFirstDay(e),i=t.setDate(r,1),s=t.getWeekDay(i),a=t.addDate(i,n-s);return t.getMonth(a)===t.getMonth(r)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}o(TT,"getWeekStartDate");function Jr(e,{generateConfig:t,locale:r,format:n}){return e?typeof n=="function"?n(e):t.locale.format(r.locale,e,n):""}o(Jr,"formatValue");function Zc(e,t,r){let n=t,i=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach((a,l)=>{r?n=e[a](n,e[i[l]](r)):n=e[a](n,0)}),n}o(Zc,"fillTime");function xl(e,t,r,n){let i=V(()=>e||((a,l)=>{let c=a;return t&&l.type==="date"?t(c,l.today):r&&l.type==="month"?r(c,l.locale):l.originNode}),[e,r,t]);return At((a,l)=>i(a,{...l,range:n}),[i,n])}o(xl,"useCellRender");function Vu(e,t,r=[]){let[n,i]=ce([!1,!1]),s=o((l,c)=>{i(d=>ls(d,c,l))},"onSelectorInvalid");return[V(()=>n.map((l,c)=>{if(l)return!0;let d=e[c];return d?!!(!r[c]&&!d||d&&t(d,{activeIndex:c})):!1}),[e,n,t,r]),s]}o(Vu,"useFieldsInvalidate");function KS(e,t,r,n,i){let s=[];e&&s.push(i?"hh":"HH"),t&&s.push("mm"),r&&s.push("ss");let a=s.join(":");return n&&(a+=".SSS"),i&&(a+=" A"),a}o(KS,"fillTimeFormat");function Kj(e,t,r,n,i,s){let{fieldDateTimeFormat:a,fieldDateFormat:l,fieldTimeFormat:c,fieldMonthFormat:d,fieldYearFormat:u,fieldWeekFormat:m,fieldQuarterFormat:p,yearFormat:g,cellYearFormat:h,cellQuarterFormat:b,dayFormat:v,cellDateFormat:x}=e,S=KS(t,r,n,i,s);return{...e,fieldDateTimeFormat:a||`YYYY-MM-DD ${S}`,fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||S,fieldMonthFormat:d||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:m||"gggg-wo",fieldQuarterFormat:p||"YYYY-[Q]Q",yearFormat:g||"YYYY",cellYearFormat:h||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:x||v||"D"}}o(Kj,"fillLocale");function ju(e,t){let{showHour:r,showMinute:n,showSecond:i,showMillisecond:s,use12Hours:a}=t;return _.useMemo(()=>Kj(e,r,n,i,s,a),[e,r,n,i,s,a])}o(ju,"useLocale");function Wu(e,t,r){return r??t.some(n=>e.includes(n))}o(Wu,"checkShow");var Qj=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Zj(e){let t=Sa(e,Qj),{format:r,picker:n}=e,i=null;return r&&(i=r,Array.isArray(i)&&(i=i[0]),i=typeof i=="object"?i.format:i),n==="time"&&(t.format=i),[t,i]}o(Zj,"pickTimeProps");function Jj(e){return e&&typeof e=="string"}o(Jj,"isStringFormat");function OT(e,t,r,n){return[e,t,r,n].some(i=>i!==void 0)}o(OT,"existShowConfig");function kT(e,t,r,n,i){let s=t,a=r,l=n;if(!e&&!s&&!a&&!l&&!i)s=!0,a=!0,l=!0;else if(e){let c=[s,a,l].some(m=>m===!1),d=[s,a,l].some(m=>m===!0),u=c?!0:!d;s=s??u,a=a??u,l=l??u}return[s,a,l,i]}o(kT,"fillShowConfig");function Kg(e){let{showTime:t}=e,[r,n]=Zj(e),i=t&&typeof t=="object"?t:{},s={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...r,...i},{showMillisecond:a}=s,{showHour:l,showMinute:c,showSecond:d}=s,u=OT(l,c,d,a);return[l,c,d]=kT(u,l,c,d,a),[s,{...s,showHour:l,showMinute:c,showSecond:d,showMillisecond:a},s.format,n]}o(Kg,"getTimeProps");function Qg(e,t,r,n,i){if(e==="datetime"||e==="time"){let a=n,c=Wg(e,i,null),d=[t,r];for(let S=0;S<d.length;S+=1){let y=Xn(d[S])[0];if(Jj(y)){c=y;break}}let{showHour:u,showMinute:m,showSecond:p,showMillisecond:g}=a,{use12Hours:h}=a,b=Wu(c,["a","A","LT","LLL","LTS"],h),v=OT(u,m,p,g);v||(u=Wu(c,["H","h","k","LT","LLL"]),m=Wu(c,["m","LT","LLL"]),p=Wu(c,["s","LTS"]),g=Wu(c,["SSS"])),[u,m,p]=kT(v,u,m,p,g);let x=t||KS(u,m,p,g,b);return{...a,format:x,showHour:u,showMinute:m,showSecond:p,showMillisecond:g,use12Hours:b}}return null}o(Qg,"fillShowTimeConfig");function DT(e,t,r){if(t===!1)return null;let n=t&&typeof t=="object"?t:{};return yr(n.clearIcon)?n.clearIcon:yr(r)?r:f("span",{className:`${e}-clear-btn`})}o(DT,"fillClearIcon");function QS(e,t,r,n,i){return De((a,l)=>!!(r&&r(a,l)||n&&e.isAfter(n,a)&&!Po(e,t,n,a,l.type)||i&&e.isAfter(a,i)&&!Po(e,t,i,a,l.type)))}o(QS,"useDisabledBoundary");function AT(e,t,r){return V(()=>{let n=Wg(e,t,r),i=Xn(n),s=i[0],a=typeof s=="object"&&s.type==="mask"?s.format:null;return[i.map(l=>typeof l=="string"||typeof l=="function"?l:l.format),a]},[e,t,r])}o(AT,"useFieldFormat");function ZS(e,t,r){return typeof e[0]=="function"||r?!0:t}o(ZS,"useInputReadOnly");function JS(e,t,r,n){return De((s,a)=>{let l={type:t,...a};if(delete l.activeIndex,!e.isValidate(s)||r&&r(s,l))return!0;if((t==="date"||t==="time")&&n){let c=a&&a.activeIndex===1?"end":"start",{disabledHours:d,disabledMinutes:u,disabledSeconds:m,disabledMilliseconds:p}=n.disabledTime?.(s,c,{from:l.from})||{},{disabledHours:g,disabledMinutes:h,disabledSeconds:b}=n,v=d||g,x=u||h,S=m||b,y=e.getHour(s),C=e.getMinute(s),w=e.getSecond(s),E=e.getMillisecond(s);if(v&&v().includes(y)||x&&x(y).includes(C)||S&&S(y,C).includes(w)||p&&p(y,C,w).includes(E))return!0}return!1})}o(JS,"useInvalidate");function Zg(e,t=!1){return V(()=>{let n=e&&Xn(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}o(Zg,"useList");function Uu(e,t){let{generateConfig:r,locale:n,picker:i="date",prefixCls:s="rc-picker",previewValue:a="hover",styles:l={},classNames:c={},order:d=!0,components:u={},inputRender:m,allowClear:p,clearIcon:g,needConfirm:h,multiple:b,format:v,inputReadOnly:x,disabledDate:S,minDate:y,maxDate:C,showTime:w,value:E,defaultValue:R,pickerValue:$,defaultPickerValue:I}=e,T=Zg(E),M=Zg(R),N=Zg($),k=Zg(I),D=i==="date"&&w?"datetime":i,A=D==="time"||D==="datetime",B=A||b,L=h??A,[F,q,X,W]=Kg(e),j=ju(n,q),Z=V(()=>Qg(D,X,W,F,j),[D,X,W,F,j]),J=V(()=>({...e,previewValue:a,prefixCls:s,locale:j,picker:i,styles:l,classNames:c,order:d,components:{input:m,...u},clearIcon:DT(s,p,g),showTime:Z,value:T,defaultValue:M,pickerValue:N,defaultPickerValue:k,...t?.()}),[e]),[U,ee]=AT(D,j,v),re=ZS(U,x,b),ne=QS(r,n,S,y,C),oe=JS(r,i,ne,Z);return[V(()=>({...J,needConfirm:L,inputReadOnly:re,disabledDate:ne}),[J,L,re,ne]),D,B,U,ee,oe]}o(Uu,"useFilledProps");function Sl(e,t){return t.some(r=>!!r&&(r===e||r.contains(e)))}o(Sl,"isTargetInContainers");function qu(e,t,r,n){let[i,s]=ce(null),a=De((c,d,u)=>{s(c),t?.(c,u)}),l=De((c,d,u)=>{d==="panel"&&u.target.hasAttribute("disabled")?u.currentTarget.focus({preventScroll:!0}):e(u.relatedTarget)||(s(null),n?.(c,u)),r?.(c,u)});return[i!==null,a,l]}o(qu,"useFocusEvents");function eC(e,t,r,n,i){let s=De(()=>{i(!0)});fe(()=>{e!==null&&t&&(s(),r.current?.focus(e))},[e,t,s]),Pt(()=>{if(e===null)return;let a=[r.current?.startInput,r.current?.endInput],c=a[e]?.getRootNode()?.activeElement??document.activeElement;if(Sl(c,[n.current]))return;a.some((u,m)=>m!==e&&Sl(c,[u]))&&a[e]?.focus()})}o(eC,"useFocusLock");function tC(e,t,r){let[n,i]=Ft(t,e),[,s]=_.useState({}),a=De(p=>{i(p),s({})}),l=_.useRef(e),c=_.useRef(void 0),d=o(()=>{St.cancel(c.current)},"cancelRaf"),u=De(()=>{a(l.current),r&&n!==l.current&&r(l.current)}),m=De((p,g)=>{d(),l.current=p,p||g?u():c.current=St(u)});return _.useEffect(()=>d,[]),[n,m]}o(tC,"useDelayState");function Gu(e,t,r=[],n){let i=r.every(c=>c)?!1:e,[s,a]=tC(i,t||!1,n);function l(c,d={}){(!d.inherit||s)&&a(c,d.force)}return o(l,"setOpen"),[s,l]}o(Gu,"useOpen");function Xu(e){let t=H(null);return ft(e,()=>({nativeElement:t.current?.nativeElement,focus:o(r=>{t.current?.focus(r)},"focus"),blur:o(()=>{t.current?.blur()},"blur")})),t}o(Xu,"usePickerRef");function Yu(e,t){return V(()=>e||(t?(Hr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([r,n])=>({label:r,value:n}))):[]),[e,t])}o(Yu,"usePresets");function rC(e,t,r,n,i,s,a){return o((c,d)=>{let[u,m]=e,p={...d,from:Ug(e,n,r)};return r===1&&t[0]&&u&&!Po(i,s,u,c,p.type)&&i.isAfter(u,c)||r===0&&t[1]&&m&&!Po(i,s,m,c,p.type)&&i.isAfter(c,m)?!0:a?.(c,p)},"rangeDisabledDate")}o(rC,"useRangeDisabledDate");function Jc(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,n*10);case"decade":return e.addYear(r,n*100);default:return r}}o(Jc,"offsetPanelDate");var oC=[];function Ku(e,t,r,n,i,s,a,l,c,d=oC,u=oC,m=oC,p,g,h){let b=l==="time",v=a||0,[x,S]=r,y=v===0?x:S,C=v===0?S:x,w=o(L=>{let F=e.getNow();b&&(F=Zc(e,F));let q=L===0?x:S;return d[L]||q||F},"getDefaultPickerValue"),[E,R]=u,[$,I]=Ft(()=>w(0),E),[T,M]=Ft(()=>w(1),R),N=V(()=>{let L=[$,T][v];return b?L:Zc(e,L,m[v])},[b,$,T,v,e,m]),k=o((L,F="panel")=>{let q=[I,M][v];q(L);let X=[$,T];X[v]=L,p&&(!Po(e,t,$,X[0],l)||!Po(e,t,T,X[1],l))&&p(X,{source:F,range:v===1?"end":"start",mode:n})},"setCurrentPickerValue"),D=o((L,F)=>l==="year"?Math.floor(e.getYear(L)/10)===Math.floor(e.getYear(F)/10):Po(e,t,L,F,l==="month"||l==="quarter"?"year":"month"),"isSamePanel"),A=o((L,F)=>{if(!c||!L)return F;let q=Jc(e,l,L,1);return D(L,F)||D(q,F)?L:Jc(e,l,F,-1)},"getEndDatePickerValue"),B=H(null);return Pt(()=>{if(i&&!d[v]){let L=b?null:e.getNow();if(s&&B.current!==null&&B.current!==v?L=[$,T][v^1]:y?L=v===0?x:A(x,S):C&&(L=C),L){g&&e.isAfter(g,L)&&(L=g);let F=c?Jc(e,l,L,1):L;h&&e.isAfter(F,h)&&(L=c?Jc(e,l,h,-1):h),k(L,"reset")}}},[i,s,v,r[v]]),fe(()=>{i&&s?B.current=v:B.current=null},[i,s,v]),Pt(()=>{i&&d&&d[v]&&k(d[v],"reset")},[i,v]),[N,k]}o(Ku,"useRangePickerValue");function Jg(e,t){let r=H(e),[,n]=ce({}),i=o(a=>a&&t!==void 0?t:r.current,"getter");return[i,o(a=>{r.current=a,n({})},"setter"),i(!0)]}o(Jg,"useSyncState");var e6=[];function _T(e,t,r){return[o(s=>s.map(a=>Jr(a,{generateConfig:e,locale:t,format:r[0]})),"getDateTexts"),o((s,a)=>{let l=Math.max(s.length,a.length),c=-1;for(let d=0;d<l;d+=1){let u=s[d]||null,m=a[d]||null;if(u!==m&&!Hu(e,u,m)){c=d;break}}return[c<0,c!==0]},"isSameDates")]}o(_T,"useUtil");function LT(e,t){return[...e].sort((r,n)=>t.isAfter(r,n)?1:-1)}o(LT,"orderDates");function t6(e){let[t,r]=Jg(e),n=De(()=>{r(e)});return fe(()=>{n()},[e]),[t,r]}o(t6,"useCalendarValue");function eh(e,t,r,n,i,s,a,l,c){let[d,u]=Ft(s,a),m=d||e6,[p,g]=t6(m),[h,b]=_T(e,t,r),v=De(S=>{let y=[...S];if(n)for(let E=0;E<2;E+=1)y[E]=y[E]||null;else i&&(y=LT(y.filter(E=>E),e));let[C,w]=b(p(),y);if(!C&&(g(y),l)){let E=h(y);l(y,E,{range:w?"end":"start"})}});return[m,u,p,v,o(()=>{c&&c(p())},"triggerOk")]}o(eh,"useInnerValue");function Qu(e,t,r,n,i,s,a,l){let{generateConfig:c,locale:d,picker:u,onChange:m,allowEmpty:p,order:g}=e,h=s.some(R=>R)?!1:g,[b,v]=_T(c,d,a),[x,S]=Jg(t),y=De(()=>{S(t)});fe(()=>{y()},[t]);let C=De(R=>{let $=R===null,I=[...R||x()];if($){let F=Math.max(s.length,I.length);for(let q=0;q<F;q+=1)s[q]||(I[q]=null)}h&&I[0]&&I[1]&&(I=LT(I,c)),i(I);let[T,M]=I,N=!T,k=!M,D=p?(!N||p[0])&&(!k||p[1]):!0,A=!g||N||k||Po(c,d,T,M,u)||c.isAfter(M,T),B=(s[0]||!T||!l(T,{activeIndex:0}))&&(s[1]||!M||!l(M,{from:T,activeIndex:1})),L=$||D&&A&&B;if(L){r(I);let[F]=v(I,t);if(m&&!F){let q=I.every(X=>!X);m($&&q?null:I,q?null:b(I))}}return L}),w=De((R,$)=>{let I=ls(x(),R,n()[R]);S(I),$&&C()}),E=De(R=>{if(R===void 0){i(t),y();return}i(ls(n(),R,t[R])),S(ls(x(),R,t[R]))});return[w,C,E]}o(Qu,"useRangeValue");function Zu(e,t,r,n,i,s,a){let l=H([]),c=H(null),d=H(!1),[u,m]=jl(null),[p,g]=jl(!1),h=H(void 0),b=De(()=>{l.current=[],c.current=null,d.current=!1,m(null),g(!1)}),v=o((E,R)=>{let $=l.current.find(I=>I.index===E);$?R!==void 0&&($.modified=R):l.current=[...l.current,{index:E,modified:R??!1}]},"recordTriggeredField"),x=o(E=>{v(E);let R=l.current.length>=e;return s(E,R),R&&b(),R},"submitField"),S=o((E,R,$,I)=>{if($==="esc")return"resetAll";if(E===null)return $==="popupClose"?"resetAll":"abort";let T=I===void 0?n()[E]:I,N=!(T==null)||r[E],k=$==="remove"||N;if($==="field-switch"){if(R===E)return"abort";let D=(E+1)%e;if(R!==D)return"abort";let A=l.current.some(B=>B.index===D);return t?c.current===E?"switchNext":r[E]?"resetCurrentAndSwitchNext":"abort":N?"switchNext":A?"resetCurrentAndSwitchNext":"resetCurrent"}if(R!==E)return"abort";if($==="popupClose"){if(!l.current.some(A=>A.modified))return"finish";if(t){let A=l.current.some(L=>L.index===E&&L.modified);return!(l.current.length>=e)||!N?"resetAll":A?r[E]?"resetCurrentAndSwitchNext":"resetAll":"switchNext"}return k?"switchNext":"resetAll"}return $==="input"||$==="panel-intermediate"?"modify":$==="panel-final"?t?"modify":"switchNext":$==="keyboard-submit-weak"?k?"submitCurrent":"abort":($==="keyboard-submit"||$==="confirm"||$==="remove")&&k?"switchNext":"abort"},"resolveAction"),y=De((E,R,$)=>{let I=u();R!=="popupClose"&&(d.current=R==="input"),I===null&&R!=="popupClose"&&R!=="esc"&&(I=E,m(E),g(!1),v(E,!1));let T=S(I,E,R,$),M=I??E;switch(T){case"modify":v(M,!0),c.current===M&&(c.current=null),$!==void 0&&i(M,$);break;case"submitCurrent":t&&(c.current=M),x(M);break;case"switchNext":{(R==="panel-final"||$!==void 0)&&v(M,!0),$!==void 0&&i(M,$),t&&(R==="keyboard-submit"||R==="confirm")&&(c.current=M);let N=R==="confirm"||R==="keyboard-submit"||R==="panel-final"||R==="popupClose"&&!d.current,k=x(M);if(k&&R==="field-switch")m(E),g(!1);else if(!k){let D=(M+1)%e;m(D),g(N)}R==="field-switch"&&v(E,!1);break}case"finish":b();break;case"resetCurrent":a(M),c.current===M&&(c.current=null),l.current=l.current.filter(N=>N.index!==M);break;case"resetCurrentAndSwitchNext":{a(M),c.current===M&&(c.current=null),R==="field-switch"?(l.current.some(k=>k.index===E)&&(l.current=[]),m(E),g(!1),v(E,!1)):b();break}case"resetAll":a(),b();break;case"abort":R==="field-switch"&&E===M&&v(E);break}}),C=u();h.current=C??h.current??0;let w=l.current.map(E=>E.index);return[C,h.current,p(),w,y,b]}o(Zu,"useRangeValueChange");function Ju(e,t,r,n,i){return t!=="date"&&t!=="time"?!1:r!==void 0?r:n!==void 0?n:!i&&(e==="date"||e==="time")}o(Ju,"useShowNow");function BT(e,t,r,n,i,s){let a=e;function l(m,p,g){let h=s[m](a),b=g.find(v=>v.value===h);if(!b||b.disabled){let v=g.filter(y=>!y.disabled),S=[...v].reverse().find(y=>y.value<=h)||v[0];S&&(h=S.value,a=s[p](a,h))}return h}o(l,"alignValidate");let c=l("getHour","setHour",t()),d=l("getMinute","setMinute",r(c)),u=l("getSecond","setSecond",n(c,d));return l("getMillisecond","setMillisecond",i(c,d,u)),a}o(BT,"findValidateTime");function th(){return[]}o(th,"emptyDisabled");function rh(e,t,r=1,n=!1,i=[],s=2){let a=[],l=r>=1?r|0:1;for(let c=e;c<=t;c+=l){let d=i.includes(c);(!d||!n)&&a.push({label:Fu(c,s),value:c,disabled:d})}return a}o(rh,"generateUnits");function Cl(e,t={},r){let{use12Hours:n,hourStep:i=1,minuteStep:s=1,secondStep:a=1,millisecondStep:l=100,hideDisabledOptions:c,disabledTime:d,disabledHours:u,disabledMinutes:m,disabledSeconds:p}=t||{},g=V(()=>r||e.getNow(),[r,e]),h=At(I=>{let T=d?.(I)||{};return[T.disabledHours||u||th,T.disabledMinutes||m||th,T.disabledSeconds||p||th,T.disabledMilliseconds||th]},[d,u,m,p]),[b,v,x,S]=V(()=>h(g),[g,h]),y=At((I,T,M,N)=>{let k=rh(0,23,i,c,I());return[n?k.map(F=>({...F,label:Fu(F.value%12||12,2)})):k,o(F=>rh(0,59,s,c,T(F)),"getMinuteUnits"),o((F,q)=>rh(0,59,a,c,M(F,q)),"getSecondUnits"),o((F,q,X)=>rh(0,999,l,c,N(F,q,X),3),"getMillisecondUnits")]},[c,i,n,l,s,a]),[C,w,E,R]=V(()=>y(b,v,x,S),[y,b,v,x,S]);return[o((I,T)=>{let M=o(()=>C,"getCheckHourUnits"),N=w,k=E,D=R;if(T){let[B,L,F,q]=h(T),[X,W,j,Z]=y(B,L,F,q);M=o(()=>X,"getCheckHourUnits"),N=W,k=j,D=Z}return BT(I,M,N,k,D,e)},"getValidTime"),C,w,E,R]}o(Cl,"useTimeInfo");function nC(e){let{mode:t,internalMode:r,renderExtraFooter:n,showNow:i,showTime:s,onSubmit:a,onNow:l,invalid:c,needConfirm:d,generateConfig:u,disabledDate:m}=e,{prefixCls:p,locale:g,button:h="button",classNames:b,styles:v}=K(Io),x=u.getNow(),[S]=Cl(u,s,x),y=n?.(t),C=m(x,{type:t}),w=o(()=>{if(!C){let M=S(x);l(M)}},"onInternalNow"),E=`${p}-now`,R=`${E}-btn`,$=i&&f("li",{className:E},f("a",{className:O(R,C&&`${R}-disabled`),"aria-disabled":C,onClick:w},r==="date"?g.today:g.now)),I=d&&f("li",{className:`${p}-ok`},f(h,{disabled:c,onClick:a},g.ok)),T=($||I)&&f("ul",{className:`${p}-ranges`},$,I);return!yr(y)&&!yr(T)?null:f("div",{className:O(`${p}-footer`,b.popup.footer),style:v.popup.footer},yr(y)&&f("div",{className:`${p}-footer-extra`},y),T)}o(nC,"Footer");function em(e,t,r){function n(i,s){let a=i.findIndex(c=>Po(e,t,c,s,r));if(a===-1)return[...i,s];let l=[...i];return l.splice(a,1),l}return o(n,"toggleDates"),n}o(em,"useToggleDates");var iC=bt(null),ni=bt(null);function Ea(){return K(ni)}o(Ea,"usePanelContext");function Ei(e,t){let{prefixCls:r,generateConfig:n,locale:i,disabledDate:s,minDate:a,maxDate:l,cellRender:c,hoverValue:d,hoverRangeValue:u,onHover:m,values:p,pickerValue:g,onSelect:h,prevIcon:b,nextIcon:v,superPrevIcon:x,superNextIcon:S}=e,{classNames:y,styles:C}=K(iC),w=n.getNow();return[{now:w,values:p,pickerValue:g,prefixCls:r,classNames:y,styles:C,disabledDate:s,minDate:a,maxDate:l,cellRender:c,hoverValue:d,hoverRangeValue:u,onHover:m,locale:i,generateConfig:n,onSelect:h,panelType:t,prevIcon:b,nextIcon:v,superPrevIcon:x,superNextIcon:S},w]}o(Ei,"useInfo");var ii=bt({});function Wi(e){let{rowNum:t,colNum:r,baseDate:n,getCellDate:i,prefixColumn:s,rowClassName:a,titleFormat:l,getCellText:c,getCellClassName:d,headerCells:u,cellSelection:m=!0,disabledDate:p}=e,{prefixCls:g,classNames:h,styles:b,panelType:v,now:x,disabledDate:S,cellRender:y,onHover:C,hoverValue:w,hoverRangeValue:E,generateConfig:R,values:$,locale:I,onSelect:T}=Ea(),M=p||S,N=`${g}-cell`,{onCellDblClick:k}=K(ii),D=o(B=>$.some(L=>L&&Po(R,I,B,L,v)),"matchValues"),A=[];for(let B=0;B<t;B+=1){let L=[],F;for(let q=0;q<r;q+=1){let X=B*r+q,W=i(n,X),j=M?.(W,{type:v});q===0&&(F=W,s&&L.push(s(F)));let Z=!1,J=!1,U=!1;if(m&&E){let[ne,oe]=E;Z=Ra(R,ne,oe,W),J=Po(R,I,W,ne,v),U=Po(R,I,W,oe,v)}let ee=l?Jr(W,{locale:I,format:l,generateConfig:R}):void 0,re=f("div",{className:`${N}-inner`},c(W));L.push(f("td",{key:q,title:ee,className:O(N,h.item,{[`${N}-disabled`]:j,[`${N}-hover`]:(w||[]).some(ne=>Po(R,I,W,ne,v)),[`${N}-in-range`]:Z&&!J&&!U,[`${N}-range-start`]:J,[`${N}-range-end`]:U,[`${g}-cell-selected`]:!E&&v!=="week"&&D(W),...d(W)}),style:b.item,onClick:o(()=>{j||T(W)},"onClick"),onDoubleClick:o(()=>{!j&&k&&k()},"onDoubleClick"),onMouseEnter:o(()=>{j||C?.(W)},"onMouseEnter"),onMouseLeave:o(()=>{j||C?.(null)},"onMouseLeave")},y?y(W,{prefixCls:g,originNode:re,today:x,type:v,locale:I}):re))}A.push(f("tr",{key:B,className:a?.(F)},L))}return f("div",{className:O(`${g}-body`,h.body),style:b.body},f("table",{className:O(`${g}-content`,h.content),style:b.content},lo(u)&&f("thead",null,f("tr",null,u)),f("tbody",null,A)))}o(Wi,"PanelBody");var oh={visibility:"hidden"};function r6(e){let{offset:t,superOffset:r,onChange:n,getStart:i,getEnd:s,children:a}=e,{prefixCls:l,classNames:c,styles:d,prevIcon:u="\u2039",nextIcon:m="\u203A",superPrevIcon:p="\xAB",superNextIcon:g="\xBB",minDate:h,maxDate:b,generateConfig:v,locale:x,pickerValue:S,panelType:y}=Ea(),C=`${l}-header`,{hidePrev:w,hideNext:E,hideHeader:R}=K(ii),$=V(()=>{if(!h||!t||!s)return!1;let F=s(t(-1,S));return!zu(v,x,F,h,y)},[h,t,S,s,v,x,y]),I=V(()=>{if(!h||!r||!s)return!1;let F=s(r(-1,S));return!zu(v,x,F,h,y)},[h,r,S,s,v,x,y]),T=V(()=>{if(!b||!t||!i)return!1;let F=i(t(1,S));return!zu(v,x,b,F,y)},[b,t,S,i,v,x,y]),M=V(()=>{if(!b||!r||!i)return!1;let F=i(r(1,S));return!zu(v,x,b,F,y)},[b,r,S,i,v,x,y]),N=o(F=>{t&&n(t(F,S))},"onOffset"),k=o(F=>{r&&n(r(F,S))},"onSuperOffset");if(R)return null;let D=`${C}-prev-btn`,A=`${C}-next-btn`,B=`${C}-super-prev-btn`,L=`${C}-super-next-btn`;return f("div",{className:O(C,c.header),style:d.header},r&&f("button",{type:"button","aria-label":x.previousYear,onClick:o(()=>k(-1),"onClick"),tabIndex:-1,className:O(B,I&&`${B}-disabled`),disabled:I,style:w?oh:{}},p),t&&f("button",{type:"button","aria-label":x.previousMonth,onClick:o(()=>N(-1),"onClick"),tabIndex:-1,className:O(D,$&&`${D}-disabled`),disabled:$,style:w?oh:{}},u),f("div",{className:`${C}-view`},a),t&&f("button",{type:"button","aria-label":x.nextMonth,onClick:o(()=>N(1),"onClick"),tabIndex:-1,className:O(A,T&&`${A}-disabled`),disabled:T,style:E?oh:{}},m),r&&f("button",{type:"button","aria-label":x.nextYear,onClick:o(()=>k(1),"onClick"),tabIndex:-1,className:O(L,M&&`${L}-disabled`),disabled:M,style:E?oh:{}},g))}o(r6,"PanelHeader");var $i=r6;function aC(){return aC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aC.apply(this,arguments)}o(aC,"_extends");function $a(e){let{prefixCls:t,panelName:r="date",locale:n,generateConfig:i,pickerValue:s,onPickerValueChange:a,onModeChange:l,mode:c="date",disabledDate:d,onSelect:u,onHover:m,showWeek:p}=e,g=`${t}-${r}-panel`,h=`${t}-cell`,b=c==="week",[v,x]=Ei(e,c),S=i.locale.getWeekFirstDay(n.locale),y=i.setDate(s,1),C=TT(n.locale,i,y),w=i.getMonth(s),R=(p===void 0?b:p)?L=>{let F=d?.(L,{type:"week"});return f("td",{key:"week",className:O(h,`${h}-week`,{[`${h}-disabled`]:F}),onClick:o(()=>{F||u(L)},"onClick"),onMouseEnter:o(()=>{F||m?.(L)},"onMouseEnter"),onMouseLeave:o(()=>{F||m?.(null)},"onMouseLeave")},f("div",{className:`${h}-inner`},i.locale.getWeek(n.locale,L)))}:null,$=[],I=n.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(n.locale):[]);R&&$.push(f("th",{key:"empty"},f("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},n.week)));for(let L=0;L<7;L+=1)$.push(f("th",{key:L},I[(L+S)%7]));let T=o((L,F)=>i.addDate(L,F),"getCellDate"),M=o(L=>Jr(L,{locale:n,format:n.cellDateFormat,generateConfig:i}),"getCellText"),N=o(L=>({[`${t}-cell-in-view`]:Xg(i,L,s),[`${t}-cell-today`]:Yg(i,L,x)}),"getCellClassName"),k=n.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(n.locale):[]),D=f("button",{type:"button","aria-label":n.yearSelect,key:"year",onClick:o(()=>{l("year",s)},"onClick"),tabIndex:-1,className:`${t}-year-btn`},Jr(s,{locale:n,format:n.yearFormat,generateConfig:i})),A=f("button",{type:"button","aria-label":n.monthSelect,key:"month",onClick:o(()=>{l("month",s)},"onClick"),tabIndex:-1,className:`${t}-month-btn`},n.monthFormat?Jr(s,{locale:n,format:n.monthFormat,generateConfig:i}):k[w]),B=n.monthBeforeYear?[A,D]:[D,A];return f(ni.Provider,{value:v},f("div",{className:O(g,p&&`${g}-show-week`)},f($i,{offset:o(L=>i.addMonth(s,L),"offset"),superOffset:o(L=>i.addYear(s,L),"superOffset"),onChange:a,getStart:o(L=>i.setDate(L,1),"getStart"),getEnd:o(L=>{let F=i.setDate(L,1);return F=i.addMonth(F,1),i.addDate(F,-1)},"getEnd")},B),f(Wi,aC({titleFormat:n.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:C,headerCells:$,getCellDate:T,getCellText:M,getCellClassName:N,prefixColumn:R,cellSelection:!b}))))}o($a,"DatePanel");var o6=1/3;function lC(e,t){let r=H(!1),n=H(null),i=H(null),s=o(()=>r.current,"isScrolling"),a=o(()=>{St.cancel(n.current),r.current=!1},"stopScroll"),l=H(void 0);return[De(o(()=>{let u=e.current;if(i.current=null,l.current=0,u){let m=u.querySelector(`[data-value="${t}"]`),p=u.querySelector("li"),g=o(()=>{a(),r.current=!0,l.current+=1;let{scrollTop:h}=u,b=p.offsetTop,v=m.offsetTop,x=v-b;if(v===0&&m!==p||!ys(u)){l.current<=5&&(n.current=St(g));return}let S=h+(x-h)*o6,y=Math.abs(x-S);if(i.current!==null&&i.current<y){a();return}if(i.current=y,y<=1){u.scrollTop=x,a();return}u.scrollTop=S,n.current=St(g)},"doScroll");m&&p&&g()}},"startScroll")),a,s]}o(lC,"useScrollTo");var n6=300;function i6(e){return e.map(({value:t,label:r,disabled:n})=>[t,r,n].join(",")).join(";")}o(i6,"flattenUnits");function wl(e){let{units:t,value:r,optionalValue:n,type:i,onChange:s,onHover:a,onDblClick:l,changeOnScroll:c}=e,{prefixCls:d,cellRender:u,now:m,locale:p,classNames:g,styles:h}=Ea(),b=`${d}-time-panel`,v=`${d}-time-panel-cell`,x=H(null),S=H(void 0),y=o(()=>{clearTimeout(S.current)},"clearDelayCheck"),[C,w,E]=lC(x,r??n);Pt(()=>(C(),y(),()=>{w(),y()}),[r,n,i6(t)]);let R=o(I=>{y();let T=I.target;!E()&&c&&(S.current=setTimeout(()=>{let M=x.current,N=M.querySelector("li").offsetTop,A=Array.from(M.querySelectorAll("li")).map(q=>q.offsetTop-N).map((q,X)=>t[X].disabled?Number.MAX_SAFE_INTEGER:Math.abs(q-T.scrollTop)),B=Math.min(...A),L=A.findIndex(q=>q===B),F=t[L];F&&!F.disabled&&s(F.value)},n6))},"onInternalScroll"),$=`${b}-column`;return f("ul",{className:$,ref:x,"data-type":i,onScroll:R},t.map(({label:I,value:T,disabled:M})=>{let N=f("div",{className:`${v}-inner`},I);return f("li",{key:T,style:h.item,className:O(v,g.item,{[`${v}-selected`]:r===T,[`${v}-disabled`]:M}),onClick:o(()=>{M||s(T)},"onClick"),onDoubleClick:o(()=>{!M&&l&&l()},"onDoubleClick"),onMouseEnter:o(()=>{a(T)},"onMouseEnter"),onMouseLeave:o(()=>{a(null)},"onMouseLeave"),"data-value":T},u?u(T,{prefixCls:d,originNode:N,today:m,type:"time",subType:i,locale:p}):N)}))}o(wl,"TimeColumn");function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rl.apply(this,arguments)}o(Rl,"_extends");function Ia(e){return e<12}o(Ia,"isAM");function cC(e){let{showHour:t,showMinute:r,showSecond:n,showMillisecond:i,use12Hours:s,changeOnScroll:a}=e,{prefixCls:l,classNames:c,styles:d,values:u,generateConfig:m,locale:p,onSelect:g,onHover:h=o(()=>{},"onHover"),pickerValue:b}=Ea(),v=u?.[0]||null,{onCellDblClick:x}=K(ii),[S,y,C,w,E]=Cl(m,e,v),R=o(pe=>{let Oe=v&&m[pe](v),Ie=b&&m[pe](b);return[Oe,Ie]},"getUnitValue"),[$,I]=R("getHour"),[T,M]=R("getMinute"),[N,k]=R("getSecond"),[D,A]=R("getMillisecond"),B=$===null?null:Ia($)?"am":"pm",L=V(()=>s?Ia($)?y.filter(pe=>Ia(pe.value)):y.filter(pe=>!Ia(pe.value)):y,[$,y,s]),F=o((pe,Oe)=>{let Ie=pe.filter(ke=>!ke.disabled);return Oe??Ie?.[0]?.value},"getEnabled"),q=F(y,$),X=V(()=>C(q),[C,q]),W=F(X,T),j=V(()=>w(q,W),[w,q,W]),Z=F(j,N),J=V(()=>E(q,W,Z),[E,q,W,Z]),U=F(J,D),ee=V(()=>{if(!s)return[];let pe=m.getNow(),Oe=m.setHour(pe,9),Ie=m.setHour(pe,15),ke=o((We,ze)=>{let{cellMeridiemFormat:Ne}=p;return Ne?Jr(We,{generateConfig:m,locale:p,format:Ne}):ze},"formatMeridiem");return[{label:ke(Oe,"AM"),value:"am",disabled:y.every(We=>We.disabled||!Ia(We.value))},{label:ke(Ie,"PM"),value:"pm",disabled:y.every(We=>We.disabled||Ia(We.value))}]},[y,s,m,p]),re=o(pe=>{let Oe=S(pe);g(Oe)},"triggerChange"),ne=V(()=>{let pe=v||b||m.getNow();return lo($)?(pe=m.setHour(pe,$),pe=m.setMinute(pe,T),pe=m.setSecond(pe,N),pe=m.setMillisecond(pe,D)):lo(I)?(pe=m.setHour(pe,I),pe=m.setMinute(pe,M),pe=m.setSecond(pe,k),pe=m.setMillisecond(pe,A)):lo(q)&&(pe=m.setHour(pe,q),pe=m.setMinute(pe,W),pe=m.setSecond(pe,Z),pe=m.setMillisecond(pe,U)),pe},[v,b,$,T,N,D,q,W,Z,U,I,M,k,A,m]),oe=o((pe,Oe)=>pe===null?null:m[Oe](ne,pe),"fillColumnValue"),te=o(pe=>oe(pe,"setHour"),"getNextHourTime"),ie=o(pe=>oe(pe,"setMinute"),"getNextMinuteTime"),se=o(pe=>oe(pe,"setSecond"),"getNextSecondTime"),xe=o(pe=>oe(pe,"setMillisecond"),"getNextMillisecondTime"),me=o(pe=>pe===null?null:pe==="am"&&!Ia($)?m.setHour(ne,$-12):pe==="pm"&&Ia($)?m.setHour(ne,$+12):ne,"getMeridiemTime"),Ee=o(pe=>{re(te(pe))},"onHourChange"),$e=o(pe=>{re(ie(pe))},"onMinuteChange"),he=o(pe=>{re(se(pe))},"onSecondChange"),ye=o(pe=>{re(xe(pe))},"onMillisecondChange"),He=o(pe=>{re(me(pe))},"onMeridiemChange"),Se=o(pe=>{h(te(pe))},"onHourHover"),Ce=o(pe=>{h(ie(pe))},"onMinuteHover"),ue=o(pe=>{h(se(pe))},"onSecondHover"),Pe=o(pe=>{h(xe(pe))},"onMillisecondHover"),ve=o(pe=>{h(me(pe))},"onMeridiemHover"),Ue={onDblClick:x,changeOnScroll:a};return f("div",{className:O(`${l}-content`,c.content),style:d.content},t&&f(wl,Rl({units:L,value:$,optionalValue:I,type:"hour",onChange:Ee,onHover:Se},Ue)),r&&f(wl,Rl({units:X,value:T,optionalValue:M,type:"minute",onChange:$e,onHover:Ce},Ue)),n&&f(wl,Rl({units:j,value:N,optionalValue:k,type:"second",onChange:he,onHover:ue},Ue)),i&&f(wl,Rl({units:J,value:D,optionalValue:A,type:"millisecond",onChange:ye,onHover:Pe},Ue)),s&&f(wl,Rl({units:ee,value:B,type:"meridiem",onChange:He,onHover:ve},Ue)))}o(cC,"TimePanelBody");function tm(e){let{prefixCls:t,value:r,locale:n,generateConfig:i,showTime:s}=e,{format:a}=s||{},l=`${t}-time-panel`,[c]=Ei(e,"time");return f(ni.Provider,{value:c},f("div",{className:O(l)},f($i,null,r?Jr(r,{locale:n,format:a,generateConfig:i}):"\xA0"),f(cC,s)))}o(tm,"TimePanel");function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dC.apply(this,arguments)}o(dC,"_extends");function uC(e){let{prefixCls:t,generateConfig:r,showTime:n,onSelect:i,value:s,pickerValue:a,onHover:l}=e,c=`${t}-datetime-panel`,[d]=Cl(r,n),u=o(g=>s?Zc(r,g,s):Zc(r,g,a),"mergeTime");return f("div",{className:c},f($a,dC({},e,{onSelect:o(g=>{let h=u(g);i(d(h,h))},"onDateSelect"),onHover:o(g=>{l?.(g&&u(g))},"onDateHover")})),f(tm,e))}o(uC,"DateTimePanel");function mC(){return mC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mC.apply(this,arguments)}o(mC,"_extends");function pC(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:i,disabledDate:s,onPickerValueChange:a}=e,l=`${t}-decade-panel`,[c]=Ei(e,"decade"),d=o(y=>{let C=Math.floor(n.getYear(y)/100)*100;return n.setYear(y,C)},"getStartYear"),u=o(y=>{let C=d(y);return n.addYear(C,99)},"getEndYear"),m=d(i),p=u(i),g=n.addYear(m,-10),h=o((y,C)=>n.addYear(y,C*10),"getCellDate"),b=o(y=>{let C=r.cellYearFormat,w=Jr(y,{locale:r,format:C,generateConfig:n}),E=Jr(n.addYear(y,9),{locale:r,format:C,generateConfig:n});return`${w}-${E}`},"getCellText"),v=o(y=>({[`${t}-cell-in-view`]:Gg(n,y,m)||Gg(n,y,p)||Ra(n,m,p,y)}),"getCellClassName"),x=s?(y,C)=>{let w=n.setDate(y,1),E=n.setMonth(w,0),R=n.setYear(E,Math.floor(n.getYear(E)/10)*10),$=n.addYear(R,10),I=n.addDate($,-1);return s(R,C)&&s(I,C)}:null,S=`${Jr(m,{locale:r,format:r.yearFormat,generateConfig:n})}-${Jr(p,{locale:r,format:r.yearFormat,generateConfig:n})}`;return f(ni.Provider,{value:c},f("div",{className:l},f($i,{superOffset:o(y=>n.addYear(i,y*100),"superOffset"),onChange:a,getStart:d,getEnd:u},S),f(Wi,mC({},e,{disabledDate:x,colNum:3,rowNum:4,baseDate:g,getCellDate:h,getCellText:b,getCellClassName:v}))))}o(pC,"DecadePanel");function fC(){return fC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fC.apply(this,arguments)}o(fC,"_extends");function gC(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:i,disabledDate:s,onPickerValueChange:a,onModeChange:l}=e,c=`${t}-month-panel`,[d]=Ei(e,"month"),u=n.setMonth(i,0),m=r.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(r.locale):[]),p=o((x,S)=>n.addMonth(x,S),"getCellDate"),g=o(x=>{let S=n.getMonth(x);return r.monthFormat?Jr(x,{locale:r,format:r.monthFormat,generateConfig:n}):m[S]},"getCellText"),h=o(()=>({[`${t}-cell-in-view`]:!0}),"getCellClassName"),b=s?(x,S)=>{let y=n.setDate(x,1),C=n.setMonth(y,n.getMonth(y)+1),w=n.addDate(C,-1);return s(y,S)&&s(w,S)}:null,v=f("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:o(()=>{l("year")},"onClick"),tabIndex:-1,className:`${t}-year-btn`},Jr(i,{locale:r,format:r.yearFormat,generateConfig:n}));return f(ni.Provider,{value:d},f("div",{className:c},f($i,{superOffset:o(x=>n.addYear(i,x),"superOffset"),onChange:a,getStart:o(x=>n.setMonth(x,0),"getStart"),getEnd:o(x=>n.setMonth(x,11),"getEnd")},v),f(Wi,fC({},e,{disabledDate:b,titleFormat:r.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:p,getCellText:g,getCellClassName:h}))))}o(gC,"MonthPanel");function hC(){return hC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hC.apply(this,arguments)}o(hC,"_extends");function bC(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:i,onPickerValueChange:s,onModeChange:a}=e,l=`${t}-quarter-panel`,[c]=Ei(e,"quarter"),d=n.setMonth(i,0),u=o((h,b)=>n.addMonth(h,b*3),"getCellDate"),m=o(h=>Jr(h,{locale:r,format:r.cellQuarterFormat,generateConfig:n}),"getCellText"),p=o(()=>({[`${t}-cell-in-view`]:!0}),"getCellClassName"),g=f("button",{type:"button",key:"year","aria-label":r.yearSelect,onClick:o(()=>{a("year")},"onClick"),tabIndex:-1,className:`${t}-year-btn`},Jr(i,{locale:r,format:r.yearFormat,generateConfig:n}));return f(ni.Provider,{value:c},f("div",{className:l},f($i,{superOffset:o(h=>n.addYear(i,h),"superOffset"),onChange:s,getStart:o(h=>n.setMonth(h,0),"getStart"),getEnd:o(h=>n.setMonth(h,11),"getEnd")},g),f(Wi,hC({},e,{titleFormat:r.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:d,getCellDate:u,getCellText:m,getCellClassName:p}))))}o(bC,"QuarterPanel");function vC(){return vC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vC.apply(this,arguments)}o(vC,"_extends");function yC(e){let{prefixCls:t,generateConfig:r,locale:n,value:i,hoverValue:s,hoverRangeValue:a}=e,l=n.locale,c=`${t}-week-panel-row`;return f($a,vC({},e,{mode:"week",panelName:"week",rowClassName:o(u=>{let m={};if(a){let[p,g]=a,h=Qc(r,l,p,u),b=Qc(r,l,g,u);m[`${c}-range-start`]=h,m[`${c}-range-end`]=b,m[`${c}-range-hover`]=!h&&!b&&Ra(r,p,g,u)}return s&&(m[`${c}-hover`]=s.some(p=>Qc(r,l,u,p))),O(c,{[`${c}-selected`]:!a&&Qc(r,l,i,u)},m)},"rowClassName")}))}o(yC,"WeekPanel");function xC(){return xC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xC.apply(this,arguments)}o(xC,"_extends");function SC(e){let{prefixCls:t,locale:r,generateConfig:n,pickerValue:i,disabledDate:s,onPickerValueChange:a,onModeChange:l}=e,c=`${t}-year-panel`,[d]=Ei(e,"year"),u=o(C=>{let w=Math.floor(n.getYear(C)/10)*10;return n.setYear(C,w)},"getStartYear"),m=o(C=>{let w=u(C);return n.addYear(w,9)},"getEndYear"),p=u(i),g=m(i),h=n.addYear(p,-1),b=o((C,w)=>n.addYear(C,w),"getCellDate"),v=o(C=>Jr(C,{locale:r,format:r.cellYearFormat,generateConfig:n}),"getCellText"),x=o(C=>({[`${t}-cell-in-view`]:wa(n,C,p)||wa(n,C,g)||Ra(n,p,g,C)}),"getCellClassName"),S=s?(C,w)=>{let E=n.setMonth(C,0),R=n.setDate(E,1),$=n.addYear(R,1),I=n.addDate($,-1);return s(R,w)&&s(I,w)}:null,y=f("button",{type:"button",key:"decade","aria-label":r.decadeSelect,onClick:o(()=>{l("decade")},"onClick"),tabIndex:-1,className:`${t}-decade-btn`},Jr(p,{locale:r,format:r.yearFormat,generateConfig:n}),"-",Jr(g,{locale:r,format:r.yearFormat,generateConfig:n}));return f(ni.Provider,{value:d},f("div",{className:c},f($i,{superOffset:o(C=>n.addYear(i,C*10),"superOffset"),onChange:a,getStart:u,getEnd:m},y),f(Wi,xC({},e,{disabledDate:S,titleFormat:r.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:b,getCellText:v,getCellClassName:x}))))}o(SC,"YearPanel");function CC(){return CC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CC.apply(this,arguments)}o(CC,"_extends");var s6={date:$a,datetime:uC,week:yC,month:gC,quarter:bC,year:SC,decade:pC,time:tm};function a6(e,t){let{classNames:r,styles:n,locale:i,generateConfig:s,direction:a,prefixCls:l,tabIndex:c=0,multiple:d,defaultValue:u,value:m,onChange:p,onSelect:g,defaultPickerValue:h,pickerValue:b,onPickerValueChange:v,mode:x,onPanelChange:S,picker:y="date",showTime:C,hoverValue:w,hoverRangeValue:E,cellRender:R,dateRender:$,monthCellRender:I,components:T={},hideHeader:M}=e,{prefixCls:N,classNames:k,styles:D}=K(Io)||{},A=N||l||"rc-picker",B=H(null);ft(t,()=>({nativeElement:B.current}));let[L,F,q,X]=Kg(e),W=ju(i,F),j=y==="date"&&C?"datetime":y,Z=V(()=>Qg(j,q,X,L,W),[j,q,X,L,W]),J=s.getNow(),[U,ee]=Ft(y||"date",x),re=U==="date"&&Z?"datetime":U,ne=em(s,i,j),[oe,te]=Ft(u,m),ie=V(()=>{let Ie=Xn(oe).filter(ke=>ke);return d?Ie:Ie.slice(0,1)},[oe,d]),se=De(Ie=>{te(Ie),p&&(Ie===null||ie.length!==Ie.length||ie.some((ke,We)=>!Po(s,i,ke,Ie[We],j)))&&p?.(d?Ie:Ie[0])}),xe=De(Ie=>{if(g?.(Ie),U===y){let ke=d?ne(ie,Ie):[Ie];se(ke)}}),[me,Ee]=Ft(h||ie[0]||J,b);fe(()=>{ie[0]&&!b&&Ee(ie[0])},[ie[0]]);let $e=o((Ie,ke)=>{S?.(Ie||b,ke||U)},"triggerPanelChange"),he=o((Ie,ke=!1)=>{Ee(Ie),v?.(Ie),ke&&$e(Ie)},"setPickerValue"),ye=o((Ie,ke)=>{ee(Ie),ke&&he(ke),$e(ke,Ie)},"triggerModeChange"),He=o(Ie=>{if(xe(Ie),he(Ie),U!==y){let ke=["decade","year"],We=[...ke,"month"],Ne={quarter:[...ke,"quarter"],week:[...We,"week"],date:[...We,"date"]}[y]||We,lt=Ne.indexOf(U),qe=Ne[lt+1];qe&&ye(qe,Ie)}},"onPanelValueSelect"),Se=V(()=>{let Ie,ke;return Array.isArray(E)?[Ie,ke]=E:Ie=E,!Ie&&!ke?null:(Ie=Ie||ke,ke=ke||Ie,s.isAfter(Ie,ke)?[ke,Ie]:[Ie,ke])},[E,s]),Ce=xl(R,$,I),ue=T[re]||s6[re]||$a,Pe=V(()=>({classNames:k?.popup??r??{},styles:D?.popup??n??{}}),[k,r,D,n]),ve=K(ii),Ue=V(()=>({...ve,hideHeader:M}),[ve,M]),pe=`${A}-panel`,Oe=Sa(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return f(iC.Provider,{value:Pe},f(ii.Provider,{value:Ue},f("div",{ref:B,tabIndex:c,className:O(pe,{[`${pe}-rtl`]:a==="rtl"})},f(ue,CC({},Oe,{showTime:Z,prefixCls:A,locale:W,generateConfig:s,onModeChange:ye,pickerValue:me,onPickerValueChange:o(Ie=>{he(Ie,!0)},"onPickerValueChange"),value:ie[0],onSelect:He,values:ie,cellRender:Ce,hoverRangeValue:Se,hoverValue:w})))))}o(a6,"PickerPanel");var l6=Yi(le(a6)),rm=l6;function wC(){return wC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wC.apply(this,arguments)}o(wC,"_extends");function RC(e){let{picker:t,multiplePanel:r,pickerValue:n,onPickerValueChange:i,needConfirm:s,onSubmit:a,range:l,hoverValue:c,hoverRangeValue:d}=e,{prefixCls:u,generateConfig:m}=K(Io),p=At((S,y)=>Jc(m,t,S,y),[m,t]),g=V(()=>p(n,1),[n,p]),h=o(S=>{i(p(S,-1))},"onSecondPickerValueChange"),b={onCellDblClick:o(()=>{s&&a()},"onCellDblClick")},x={...e,hoverValue:null,hoverRangeValue:null,hideHeader:t==="time"};return x.hoverValue=c,l&&(x.hoverRangeValue=d),r?f("div",{className:`${u}-panels`},f(ii.Provider,{value:{...b,hideNext:!0}},f(rm,x)),f(ii.Provider,{value:{...b,hidePrev:!0}},f(rm,wC({},x,{pickerValue:g,onPickerValueChange:h})))):f(ii.Provider,{value:{...b}},f(rm,x))}o(RC,"PopupPanel");function FT(e){return typeof e=="function"?e():e}o(FT,"executeValue");function EC(e){let{prefixCls:t,presets:r,onClick:n,onHover:i}=e;return r.length?f("div",{className:`${t}-presets`},f("ul",null,r.map(({label:s,value:a},l)=>f("li",{key:l,onClick:o(()=>{n(FT(a))},"onClick"),onMouseEnter:o(()=>{i(FT(a))},"onMouseEnter"),onMouseLeave:o(()=>{i(null)},"onMouseLeave")},s)))):null}o(EC,"PresetPanel");function nh(){return nh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nh.apply(this,arguments)}o(nh,"_extends");function om(e){let{containerRef:t,panelRender:r,internalMode:n,picker:i,showNow:s,range:a,multiple:l,activeInfo:c=[0,0,0],presets:d,onPresetHover:u,onPresetSubmit:m,onFocus:p,onBlur:g,onPanelMouseDown:h,direction:b,value:v,onSelect:x,isInvalid:S,defaultOpenValue:y,onOk:C,onSubmit:w,classNames:E,styles:R}=e,{prefixCls:$}=K(Io),I=`${$}-panel`,T=b==="rtl",M=H(null),N=H(null),[k,D]=ce(0),[A,B]=ce(0),[L,F]=ce(0),q=o(he=>{he.width&&D(he.width)},"onResize"),[X,W,j]=c,[Z,J]=ce(0);fe(()=>{J(10)},[X]),fe(()=>{if(a&&N.current){let he=M.current?.offsetWidth||0,ye=N.current.getBoundingClientRect();if(!ye.height||ye.right<0){J(Se=>Math.max(0,Se-1));return}let He=(T?W-he:X)-ye.left;if(F(He),k&&k<j){let Se=T?ye.right-(W-he+k):X+he-ye.left-k,Ce=Math.max(0,Se);B(Ce)}else B(0)}},[Z,T,k,X,W,j,a]);function U(he){return he.filter(ye=>ye)}o(U,"filterEmpty");let ee=V(()=>U(Xn(v)),[v]),re=i==="time"&&!ee.length,ne=V(()=>re?U([y]):ee,[re,ee,y]),oe=re?y:ee,te=V(()=>ne.length?ne.some(he=>S(he)):!0,[ne,S]),ie=o(()=>{re&&x(y),C(),w()},"onFooterSubmit"),se=f("div",{className:`${$}-panel-layout`},f(EC,{prefixCls:$,presets:d,onClick:m,onHover:u}),f("div",null,f(RC,nh({},e,{value:oe})),f(nC,nh({},e,{showNow:l?!1:s,invalid:te,onSubmit:ie}))));r&&(se=r(se));let xe=`${I}-container`,me="marginLeft",Ee="marginRight",$e=f("div",{ref:t,onMouseDown:h,tabIndex:-1,className:O(xe,`${$}-${n}-panel-container`,E?.popup?.container),style:{[T?Ee:me]:A,[T?me:Ee]:"auto",...R?.popup?.container},onFocus:p,onBlur:g},se);return a&&($e=f("div",{onMouseDown:h,ref:N,className:O(`${$}-range-wrapper`,`${$}-${i}-range-wrapper`)},f("div",{ref:M,className:`${$}-range-arrow`,style:{left:L}}),f(Cn,{onResize:q},$e))),$e}o(om,"Popup");function nm(e,t){let{format:r,maskFormat:n,generateConfig:i,locale:s,preserveInvalidOnBlur:a,inputReadOnly:l,required:c,"aria-required":d,onSubmit:u,onFocus:m,onBlur:p,onInputChange:g,onInvalid:h,open:b,onOpenChange:v,onKeyDown:x,onChange:S,activeHelp:y,name:C,autoComplete:w,id:E,value:R,invalid:$,placeholder:I,disabled:T,activeIndex:M,allHelp:N,picker:k}=e,D=o((W,j)=>{let Z=i.locale.parse(s.locale,W,[j]);return Z&&i.isValidate(Z)?Z:null},"parseDate"),A=r[0],B=At(W=>Jr(W,{locale:s,format:A,generateConfig:i}),[s,i,A]),L=V(()=>R.map(B),[R,B]),F=V(()=>{let W=k==="time"?8:10,j=typeof A=="function"?A(i.getNow()).length:A.length;return Math.max(W,j)+2},[A,k,i]),q=o(W=>{for(let j=0;j<r.length;j+=1){let Z=r[j];if(typeof Z=="string"){let J=D(W,Z);if(J)return J}}return!1},"validateFormat");return[o(W=>{function j(U){return W!==void 0?U[W]:U}o(j,"getProp");let J={...Zr(e,{aria:!0,data:!0}),format:n,validateFormat:o(U=>!!q(U),"validateFormat"),preserveInvalidOnBlur:a,readOnly:l,required:c,"aria-required":d,name:C,autoComplete:w,size:F,id:j(E),value:j(L)||"",invalid:j($),placeholder:j(I),active:M===W,helped:N||y&&M===W,disabled:j(T),onFocus:o(U=>{m(U,W)},"onFocus"),onBlur:o(U=>{p(U,W)},"onBlur"),onSubmit:u,onChange:o(U=>{g();let ee=q(U);if(ee){h(!1,W),S(ee,W);return}h(!!U,W)},"onChange"),onHelp:o(()=>{v(!0,{index:W})},"onHelp"),onKeyDown:o(U=>{let ee=!1;if(x?.(U,()=>{ee=!0}),!U.defaultPrevented&&!ee)switch(U.key){case"Escape":v(!1,{index:W});break;case"Enter":b||v(!0);break}},"onKeyDown"),...t?.({valueTexts:L})};return Object.keys(J).forEach(U=>{J[U]===void 0&&delete J[U]}),J},"getInputProps"),B]}o(nm,"useInputProps");var c6=["onMouseEnter","onMouseLeave"];function im(e){return V(()=>Sa(e,c6),[e])}o(im,"useRootProps");function $C(){return $C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$C.apply(this,arguments)}o($C,"_extends");function El({icon:e,...t}){let{prefixCls:r,classNames:n,styles:i}=K(Io);return yr(e)?f("span",$C({className:O(`${r}-suffix`,n.suffix),style:i.suffix},t),e):null}o(El,"Icon");function IC(){return IC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IC.apply(this,arguments)}o(IC,"_extends");function ed({icon:e,onClear:t,...r}){let{prefixCls:n,classNames:i,styles:s,locale:a}=K(Io);return f("button",IC({},r,{type:"button","aria-label":a.clear,className:O(`${n}-clear`,i.suffix),style:s.suffix,onMouseDown:o(l=>{l.preventDefault()},"onMouseDown"),onClick:o(l=>{l.stopPropagation(),t()},"onClick")}),e)}o(ed,"ClearIcon");function PC(e,t,r=1){let n=H(t);n.current=t,Vs(()=>{if(e)n.current(e);else{let i=St(()=>{n.current(e)},r);return()=>{St.cancel(i)}}},[e])}o(PC,"useLockEffect");var NC=["YYYY","MM","DD","HH","mm","ss","SSS"],HT="\u9867",sm=class{static{o(this,"MaskFormat")}format;maskFormat;cells;maskCells;constructor(t){this.format=t;let r=NC.map(l=>`(${l})`).join("|"),n=new RegExp(r,"g");this.maskFormat=t.replace(n,l=>HT.repeat(l.length));let i=new RegExp(`(${NC.join("|")})`),s=(t.split(i)||[]).filter(l=>l),a=0;this.cells=s.map(l=>{let c=NC.includes(l),d=a,u=a+l.length;return a=u,{text:l,mask:c,start:d,end:u}}),this.maskCells=this.cells.filter(l=>l.mask)}getSelection(t){let{start:r,end:n}=this.maskCells[t]||{};return[r||0,n||0]}match(t){for(let r=0;r<this.maskFormat.length;r+=1){let n=this.maskFormat[r],i=t[r];if(!i||n!==HT&&n!==i)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(t){let r=Number.MAX_SAFE_INTEGER,n=0;for(let i=0;i<this.maskCells.length;i+=1){let{start:s,end:a}=this.maskCells[i];if(t>=s&&t<=a)return i;let l=Math.min(Math.abs(t-s),Math.abs(t-a));l<r&&(r=l,n=i)}return n}};function zT(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}o(zT,"getMaskRange");function MC(){return MC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},MC.apply(this,arguments)}o(MC,"_extends");var d6=le((e,t)=>{let{className:r,active:n,showActiveCls:i=!0,suffixIcon:s,format:a,validateFormat:l,onChange:c,onInput:d,helped:u,onHelp:m,onSubmit:p,onKeyDown:g,preserveInvalidOnBlur:h=!1,invalid:b,clearIcon:v,...x}=e,{value:S,onFocus:y,onBlur:C,onMouseUp:w}=e,{prefixCls:E,input:R="input",classNames:$,styles:I}=K(Io),T=`${E}-input`,[M,N]=ce(!1),[k,D]=ce(S),[A,B]=ce(""),[L,F]=ce(null),[q,X]=ce(null),W=k||"";fe(()=>{D(S)},[S]);let j=H(null),Z=H(null),J=H(!1);ft(t,()=>({nativeElement:j.current,inputElement:Z.current,focus:o(Ce=>{Z.current.focus(Ce)},"focus"),blur:o(()=>{Z.current.blur()},"blur")}));let U=V(()=>new sm(a||""),[a]),[ee,re]=V(()=>u?[0,0]:U.getSelection(L),[U,L,u]),ne=o(Ce=>{Ce&&Ce!==a&&Ce!==S&&m()},"onModify"),oe=De(Ce=>{l(Ce)&&c(Ce),D(Ce),ne(Ce)}),te=o(Ce=>{if(!a){let ue=Ce.target.value;ne(ue),D(ue),c(ue)}},"onInternalChange"),ie=o(Ce=>{if(J.current){Ce.preventDefault();return}let ue=Ce.clipboardData.getData("text");l(ue)&&oe(ue)},"onFormatPaste"),se=o(()=>{J.current=!0},"onFormatMouseDown"),xe=o(Ce=>{let{selectionStart:ue}=Ce.target,Pe=U.getMaskCellIndex(ue);F(Pe),X({}),w?.(Ce),J.current=!1},"onFormatMouseUp"),me=o(Ce=>{N(!0),F(0),B(""),y(Ce)},"onFormatFocus"),Ee=o(Ce=>{C(Ce)},"onSharedBlur"),$e=o(Ce=>{N(!1),Ee(Ce)},"onFormatBlur");PC(n,()=>{!n&&!h&&D(S)});let he=o(Ce=>{Ce.key==="Enter"&&l(W)&&p(),g?.(Ce)},"onSharedKeyDown"),ye=o(Ce=>{if(J.current){Ce.preventDefault();return}he(Ce);let{key:ue}=Ce,Pe=null,ve=null,Ue=re-ee,pe=a.slice(ee,re),Oe=o(ke=>{F(We=>{let ze=We+ke;return ze=Math.max(ze,0),ze=Math.min(ze,U.size()-1),ze})},"offsetCellIndex"),Ie=o(ke=>{let[We,ze,Ne]=zT(pe),lt=W.slice(ee,re),qe=Number(lt);if(isNaN(qe))return String(Ne||(ke>0?We:ze));let Ze=qe+ke,je=ze-We+1;return String(We+(je+Ze-We)%je)},"offsetCellValue");switch(ue){case"Backspace":case"Delete":Pe="",ve=pe;break;case"ArrowLeft":Pe="",Oe(-1);break;case"ArrowRight":Pe="",Oe(1);break;case"ArrowUp":Pe="",ve=Ie(1);break;case"ArrowDown":Pe="",ve=Ie(-1);break;default:isNaN(Number(ue))||(Pe=A+ue,ve=Pe);break}if(Pe!==null&&(B(Pe),Pe.length>=Ue&&(Oe(1),B(""))),ve!==null){let ke=W.slice(0,ee)+Fu(ve,Ue)+W.slice(re);oe(ke.slice(0,a.length))}X({})},"onFormatKeyDown"),He=H(void 0);Pt(()=>{if(!(!M||!a||J.current)){if(!U.match(W)){oe(a);return}return Z.current.setSelectionRange(ee,re),He.current=St(()=>{Z.current.setSelectionRange(ee,re)}),()=>{St.cancel(He.current)}}},[U,a,M,W,L,ee,re,q,oe]);let Se=a?{onFocus:me,onBlur:$e,onKeyDown:ye,onMouseDown:se,onMouseUp:xe,onPaste:ie}:{};return f("div",{ref:j,className:O(T,{[`${T}-active`]:n&&i,[`${T}-placeholder`]:u},r)},f(R,MC({ref:Z,"aria-invalid":b,autoComplete:"off"},x,{onKeyDown:he,onBlur:Ee},Se,{value:W,onChange:te,className:$.input,style:I.input})),f(El,{icon:s}),v)}),am=d6;function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lm.apply(this,arguments)}o(lm,"_extends");function u6(e,t){let{id:r,prefix:n,clearIcon:i,suffixIcon:s,separator:a="~",activeIndex:l,activeHelp:c,allHelp:d,focused:u,onFocus:m,onBlur:p,onKeyDown:g,locale:h,generateConfig:b,placeholder:v,className:x,style:S,onClick:y,onClear:C,value:w,onChange:E,onSubmit:R,onInputChange:$,format:I,maskFormat:T,preserveInvalidOnBlur:M,onInvalid:N,disabled:k,invalid:D,inputReadOnly:A,direction:B,onOpenChange:L,onActiveInfo:F,placement:q,onMouseDown:X,required:W,"aria-required":j,autoFocus:Z,tabIndex:J,...U}=e,ee=B==="rtl",{prefixCls:re,classNames:ne,styles:oe}=K(Io),te=V(()=>{if(typeof r=="string")return[r];let ve=r||{};return[ve.start,ve.end]},[r]),ie=H(null),se=H(null),xe=H(null),me=o(ve=>[se,xe][ve]?.current,"getInput");ft(t,()=>({nativeElement:ie.current,startInput:se.current.inputElement,endInput:xe.current.inputElement,focus:o(ve=>{if(typeof ve=="object"){let{index:Ue=0,...pe}=ve||{};me(Ue)?.focus(pe)}else me(ve??0)?.focus()},"focus"),blur:o(()=>{me(0)?.blur(),me(1)?.blur()},"blur")}));let Ee=im(U),$e=V(()=>Array.isArray(v)?v:[v,v],[v]),[he]=nm({...e,id:te,placeholder:$e}),[ye,He]=ce({position:"absolute",width:0}),Se=De(()=>{let ve=me(l);if(ve){let Ue=ve.nativeElement.getBoundingClientRect(),pe=ie.current.getBoundingClientRect(),Oe=Ue.left-pe.left;He(Ie=>({...Ie,width:Ue.width,left:Oe})),F([Ue.left,Ue.right,pe.width])}});fe(()=>{Se()},[l]);let Ce=yr(i)&&(w[0]&&!k[0]||w[1]&&!k[1]),ue=Z&&!k[0],Pe=Z&&!ue&&!k[1];return f(Cn,{onResize:Se},f("div",lm({},Ee,{className:O(re,`${re}-range`,{[`${re}-focused`]:u,[`${re}-disabled`]:k.every(ve=>ve),[`${re}-invalid`]:D.some(ve=>ve),[`${re}-rtl`]:ee},x),style:S,ref:ie,onClick:y,onMouseDown:o(ve=>{let{target:Ue}=ve;Ue!==se.current.inputElement&&Ue!==xe.current.inputElement&&ve.preventDefault(),X?.(ve)},"onMouseDown")}),yr(n)&&f("div",{className:O(`${re}-prefix`,ne.prefix),style:oe.prefix},n),f(am,lm({ref:se},he(0),{className:`${re}-input-start`,autoFocus:ue,tabIndex:J,"date-range":"start"})),f("div",{className:`${re}-range-separator`},a),f(am,lm({ref:xe},he(1),{className:`${re}-input-end`,autoFocus:Pe,tabIndex:J,"date-range":"end"})),f("div",{className:`${re}-active-bar`,style:ye}),f(El,{icon:s}),Ce&&f(ed,{icon:i,onClear:C})))}o(u6,"RangeSelector");var m6=le(u6),VT=m6;function cm(e,t){return V(()=>{let r={...e,popup:e?.popup||{}},n={...t,popup:t?.popup||{}};return[r,n]},[e,t])}o(cm,"useSemantic");function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dm.apply(this,arguments)}o(dm,"_extends");function jT(e,t){let r=e??t;return Array.isArray(r)?r:[r,r]}o(jT,"separateConfig");function ih(e){return e===1?"end":"start"}o(ih,"getActiveRange");function p6(e,t){let[r,n,i,s,a,l]=Uu(e,()=>{let{disabled:yt,allowEmpty:ar}=e,on=jT(yt,!1),ot=jT(ar,!1);return{disabled:on,allowEmpty:ot}}),{prefixCls:c,rootClassName:d,styles:u,classNames:m,previewValue:p,defaultValue:g,value:h,needConfirm:b,onClear:v,onKeyDown:x,disabled:S,allowEmpty:y,disabledDate:C,minDate:w,maxDate:E,defaultOpen:R,open:$,onOpenChange:I,locale:T,generateConfig:M,picker:N,showNow:k,showToday:D,showTime:A,mode:B,onPanelChange:L,onCalendarChange:F,onOk:q,defaultPickerValue:X,pickerValue:W,onPickerValueChange:j,inputReadOnly:Z,suffixIcon:J,onFocus:U,onBlur:ee,presets:re,ranges:ne,components:oe,cellRender:te,dateRender:ie,monthCellRender:se,onClick:xe}=r,me=Xu(t),Ee=H(null),[$e,he]=cm(m,u),[ye,He]=Gu($,R,S,I),Se=o((yt,ar)=>{(S.some(on=>!on)||!yt)&&He(yt,ar)},"triggerOpen"),[Ce,ue,Pe,ve,Ue]=eh(M,T,s,!0,!1,g,h,F,q),pe=Pe(),Oe=De(yt=>Sl(yt,[me.current.nativeElement,Ee.current])),[Ie,ke,We]=qu(Oe,(yt,ar)=>{U?.(ar,{range:ih(yt)})},(yt,ar)=>{ee?.(ar,{range:ih(yt)})},()=>{Se(!1)}),[ze,Ne,lt]=Qu(r,Ce,ue,Pe,ve,S,s,l),qe=De((yt,ar)=>{ve(ls(Pe(),yt,ar))}),Ze=De((yt,ar)=>{ze(yt,ar),ar&&Se(!1,{force:!0})}),je=S.filter(yt=>!yt).length,[gt,rt,qt,Tt,Xe,Rt]=Zu(je,b,y,Pe,qe,Ze,lt);eC(gt,qt,me,Ee,Se),Pt(yt=>{!yt&&!ye&&Xe(gt??rt,"popupClose")},[ye]);let Lt=V(()=>{if(!A)return null;let{disabledTime:yt}=A;return{...A,disabledTime:yt?on=>{let ot=ih(rt),cr=Ug(pe,Tt,rt);return yt(on,ot,{from:cr})}:void 0}},[A,rt,pe,Tt]),[jt,Ve]=Ft([N,N],B),it=jt[rt]||N,Fe=it==="date"&&Lt?"datetime":it,Wt=Fe===N&&Fe!=="time",ge=Ju(N,it,k,D,!0),Ae=rC(pe,S,rt,Tt,M,T,C),[ct,Be]=Vu(pe,l,y),[ut,Je]=Ku(M,T,pe,jt,ye,Ie,rt,n,Wt,X,W,Lt?.defaultOpenValue,j,w,E),Ct=De((yt,ar,on)=>{let ot=ls(jt,rt,ar);if((ot[0]!==jt[0]||ot[1]!==jt[1])&&Ve(ot),L&&on!==!1){let cr=[...pe];yt&&(cr[rt]=yt),L(cr,ot)}}),Gt=o((yt,ar)=>ls(pe,ar,yt),"fillCalendarValue"),Xt=o((yt,ar="confirm")=>{Xe(rt,ar,yt??void 0)},"triggerPartConfirm"),Er=o(yt=>{let ar=yt.target.getRootNode();if(!me.current.nativeElement.contains(ar.activeElement??document.activeElement)){let on=S.findIndex(ot=>!ot);on>=0&&me.current.focus({index:on})}Se(!0),xe?.(yt)},"onSelectorClick"),Sr=o(()=>{Rt(),Ne(null),Se(!1,{force:!0}),v?.()},"onSelectorClear"),[zr,Ke]=ce(null),[So,Et]=ce(null),zt=V(()=>So||pe,[pe,So]),Kt=zr==="cell"&&!pe[(rt+1)%2]&&!Hu(M,pe[rt],Ce[rt]),vt=So?.[rt];fe(()=>{ye||Et(null)},[ye]);let[kt,xr]=ce([0,0,0]),Br=o((yt,ar)=>{p==="hover"&&(Et(yt),Ke(ar))},"onSetHover"),pr=Yu(re,ne),Or=o(yt=>{Br(yt,"preset")},"onPresetHover"),Co=o(yt=>{Ne(yt)&&Se(!1,{force:!0})},"onPresetSubmit"),_o=o(yt=>{Xt(yt)},"onNow"),mn=o(yt=>{Br(yt?Gt(yt,rt):null,"cell")},"onPanelHover"),bn=o(yt=>{Se(!0),ke(rt,"panel",yt)},"onPanelFocus"),Ln=o(yt=>{Xe(rt,!i&&n===Fe?"panel-final":"panel-intermediate",yt)},"onPanelSelect"),tn=o(()=>{Se(!1)},"onPopupClose"),vn=xl(te,ie,se,ih(rt)),Ii=pe[rt]||null,Nt=De(yt=>l(yt,{activeIndex:rt})),zo=V(()=>{let yt=Zr(r,!1);return _t(r,[...Object.keys(yt),"onChange","onCalendarChange","onClear","style","className","onPanelChange","disabledTime","classNames","styles"])},[r]),Lo=f(om,dm({containerRef:Ee},zo,{showNow:ge,showTime:Lt,range:!0,multiplePanel:Wt,activeInfo:kt,disabledDate:Ae,onFocus:bn,onBlur:o(yt=>We(rt,"panel",yt),"onBlur"),picker:N,mode:it,internalMode:Fe,onPanelChange:Ct,format:a,value:Ii,isInvalid:Nt,onChange:null,onSelect:Ln,pickerValue:ut,defaultOpenValue:Xn(A?.defaultOpenValue)[rt],onPickerValueChange:Je,hoverValue:Kt&&vt?[vt]:null,hoverRangeValue:Kt?null:zt,onHover:mn,needConfirm:b,onSubmit:o(yt=>Xt(yt,"confirm"),"onSubmit"),onOk:Ue,presets:pr,onPresetHover:Or,onPresetSubmit:Co,onNow:_o,cellRender:vn,classNames:$e,styles:he})),ci=o((yt,ar)=>{Xe(ar,"input",yt)},"onSelectorChange"),Yn=o(()=>{Xe(rt,"input")},"onSelectorInputChange"),mt=o((yt,ar)=>{Xe(ar,"field-switch"),Se(!0,{inherit:!0}),ke(ar,"input",yt)},"onSelectorFocus"),lr=o((yt,ar)=>{We(ar,"input",yt)},"onSelectorBlur"),rn=o((yt,ar)=>{yt.key==="Tab"?Xt(null,"keyboard-submit-weak"):yt.key==="Escape"&&(Xe(rt,"esc"),Se(!1)),x?.(yt,ar)},"onSelectorKeyDown"),di=V(()=>({prefixCls:c,locale:T,generateConfig:M,button:oe.button,input:oe.input,classNames:$e,styles:he}),[c,T,M,oe.button,oe.input,$e,he]);return Pt(()=>{ye&&rt!==void 0&&Ct(null,N,!1)},[ye,rt,N]),f(Io.Provider,{value:di},f(jg,dm({},qg(r),{popupElement:Lo,popupStyle:he.popup.root,popupClassName:O(d,$e.popup.root),visible:ye,onClose:tn,range:!0}),f(VT,dm({},r,{ref:me,className:O(r.className,d,$e.root),style:{...he.root,...r.style},suffixIcon:J,activeIndex:Ie||ye?rt:null,activeHelp:!!So,allHelp:!!So&&zr==="preset",focused:Ie,onFocus:mt,onBlur:lr,onKeyDown:rn,onSubmit:o(()=>Xt(null,"keyboard-submit"),"onSubmit"),value:zt,maskFormat:a,onChange:ci,onInputChange:Yn,format:s,inputReadOnly:Z,disabled:S,open:ye,onOpenChange:Se,onClick:Er,onClear:Sr,invalid:ct,onInvalid:Be,onActiveInfo:xr}))))}o(p6,"RangePicker");var f6=le(p6),TC=f6;function OC(e){let{prefixCls:t,value:r,onRemove:n,removeIcon:i="\xD7",formatDate:s,disabled:a,maxTagCount:l,tagRender:c,placeholder:d}=e,u=`${t}-selector`,m=`${t}-selection`,p=`${m}-overflow`;function g(v,x){return f("span",{className:O(`${m}-item`),title:typeof v=="string"?v:null},f("span",{className:`${m}-item-content`},v),!a&&x&&f("span",{onMouseDown:o(S=>{S.preventDefault()},"onMouseDown"),onClick:x,className:`${m}-item-remove`},i))}o(g,"renderSelector");function h(v){let x=s(v),S=!a,y=o(C=>{C&&C.stopPropagation(),a||n(v)},"onClose");return c?c({label:x,value:v,disabled:!!a,closable:S,onClose:y}):g(x,y)}o(h,"renderItem");function b(v){let x=`+ ${v.length} ...`;return g(x)}return o(b,"renderRest"),f("div",{className:u},f(Ci,{prefixCls:p,data:r,renderItem:h,renderRest:b,itemKey:o(v=>s(v),"itemKey"),maxCount:l}),!r.length&&f("span",{className:`${t}-selection-placeholder`},d))}o(OC,"MultipleDates");function sh(){return sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sh.apply(this,arguments)}o(sh,"_extends");function g6(e,t){let{id:r,open:n,prefix:i,clearIcon:s,suffixIcon:a,activeHelp:l,allHelp:c,focused:d,onFocus:u,onBlur:m,onKeyDown:p,locale:g,generateConfig:h,placeholder:b,className:v,style:x,onClick:S,onClear:y,internalPicker:C,value:w,onChange:E,onSubmit:R,onInputChange:$,multiple:I,maxTagCount:T,tagRender:M,format:N,maskFormat:k,preserveInvalidOnBlur:D,onInvalid:A,disabled:B,invalid:L,inputReadOnly:F,direction:q,onOpenChange:X,onMouseDown:W,required:j,"aria-required":Z,autoFocus:J,tabIndex:U,removeIcon:ee,...re}=e,ne=q==="rtl",{prefixCls:oe,classNames:te,styles:ie}=K(Io),se=H(null),xe=H(null);ft(t,()=>({nativeElement:se.current,focus:o(Ce=>{xe.current?.focus(Ce)},"focus"),blur:o(()=>{xe.current?.blur()},"blur")}));let me=im(re),Ee=o(Ce=>{E([Ce],"input")},"onSingleChange"),$e=o(Ce=>{let ue=w.filter(Pe=>Pe&&!Po(h,g,Pe,Ce,C));E(ue,n?"input":"remove")},"onMultipleRemove"),[he,ye]=nm({...e,onChange:Ee},({valueTexts:Ce})=>({value:Ce[0]||"",active:d})),He=yr(s)&&!!w.length&&!B,Se=I?f(rr,null,f(OC,{prefixCls:oe,value:w,onRemove:$e,formatDate:ye,maxTagCount:T,tagRender:M,disabled:B,removeIcon:ee,placeholder:b}),f("input",{className:`${oe}-multiple-input`,value:w.map(ye).join(","),ref:xe,readOnly:!0,autoFocus:J,tabIndex:U}),f(El,{icon:a}),He&&f(ed,{icon:s,onClear:y})):f(am,sh({ref:xe},he(),{autoFocus:J,tabIndex:U,suffixIcon:a,clearIcon:He&&f(ed,{icon:s,onClear:y}),showActiveCls:!1}));return f("div",sh({},me,{className:O(oe,{[`${oe}-multiple`]:I,[`${oe}-focused`]:d,[`${oe}-disabled`]:B,[`${oe}-invalid`]:L,[`${oe}-rtl`]:ne},v),style:x,ref:se,onClick:S,onMouseDown:o(Ce=>{let{target:ue}=Ce;ue!==xe.current?.inputElement&&Ce.preventDefault(),W?.(Ce)},"onMouseDown")}),yr(i)&&f("div",{className:O(`${oe}-prefix`,te.prefix),style:ie.prefix},i),Se)}o(g6,"SingleSelector");var h6=le(g6),WT=h6;function um(){return um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},um.apply(this,arguments)}o(um,"_extends");function b6(e,t){let[r,n,i,s,a,l]=Uu(e),{prefixCls:c,rootClassName:d,styles:u,classNames:m,previewValue:p,order:g,defaultValue:h,value:b,needConfirm:v,onChange:x,onClear:S,onKeyDown:y,disabled:C,disabledDate:w,minDate:E,maxDate:R,defaultOpen:$,open:I,onOpenChange:T,locale:M,generateConfig:N,picker:k,showNow:D,showToday:A,showTime:B,mode:L,onPanelChange:F,onCalendarChange:q,onOk:X,multiple:W,defaultPickerValue:j,pickerValue:Z,onPickerValueChange:J,inputReadOnly:U,suffixIcon:ee,removeIcon:re,tagRender:ne,onFocus:oe,onBlur:te,presets:ie,components:se,cellRender:xe,dateRender:me,monthCellRender:Ee,onClick:$e}=r,he=Xu(t),ye=H(null);function He(mt){return mt===null?null:W?mt:mt[0]}o(He,"pickerParam");let Se=em(N,M,n),[Ce,ue]=cm(m,u),[Pe,ve]=Gu(I,$,[C],T),Ue=o((mt,lr,rn)=>{if(q){let di={...rn};delete di.range,q(He(mt),He(lr),di)}},"onInternalCalendarChange"),pe=o(mt=>{X?.(He(mt))},"onInternalOk"),[Oe,Ie,ke,We,ze]=eh(N,M,s,!1,g,h,b,Ue,pe),Ne=ke(),lt=De(mt=>Sl(mt,[he.current.nativeElement,ye.current])),[qe,Ze,je]=qu(lt,(mt,lr)=>{oe?.(lr,{})},(mt,lr)=>{te?.(lr,{})},()=>{ve(!1)}),[gt,rt]=Ft(k,L),qt=gt==="date"&&B?"datetime":gt,Tt=Ju(k,gt,D,A),Xe=x&&((mt,lr)=>{x(He(mt),He(lr))}),[,Rt,Lt]=Qu({...r,onChange:Xe},Oe,Ie,ke,We,[],s,l),jt=De(()=>{let mt=ke();return[mt.length?mt:null]}),Ve=De((mt,lr)=>{We(lr)}),it=De((mt,lr)=>{lr&&(Rt(ke()),ve(!1,{force:!0}))}),Fe=De(()=>{Lt()}),[,Wt,,,ge,Ae]=Zu(1,v,[!1],jt,Ve,it,Fe);Pt(mt=>{!mt&&!Pe&&ge(0,"popupClose")},[Pe]);let[ct,Be]=Vu(Ne,l),ut=V(()=>ct.some(mt=>mt),[ct]),Je=o((mt,lr)=>{if(J){let rn={...lr,mode:lr.mode[0]};delete rn.range,J(mt[0],rn)}},"onInternalPickerValueChange"),[Ct,Gt]=Ku(N,M,Ne,[gt],Pe,!1,Wt,n,!1,j,Z,Xn(B?.defaultOpenValue),Je,E,R),Xt=De((mt,lr,rn)=>{if(rt(lr),F&&rn!==!1){let di=mt||Ne[Ne.length-1];F(di,lr)}}),Er=o((mt="confirm")=>{ge(0,mt)},"triggerConfirm"),Sr=o(mt=>{!C&&!he.current.nativeElement.contains(document.activeElement)&&he.current.focus(),ve(!0),$e?.(mt)},"onSelectorClick"),zr=o(()=>{Ae(),Rt(null),ve(!1,{force:!0}),he.current.focus(),S?.()},"onSelectorClear"),[Ke,So]=ce(null),[Et,zt]=ce(null),Kt=V(()=>{let mt=[Et,...Ne].filter(lr=>lr);return W?mt:mt.slice(0,1)},[Ne,Et,W]),vt=V(()=>!W&&Et?[Et]:Ne.filter(mt=>mt),[Ne,Et,W]);fe(()=>{Pe||zt(null)},[Pe]);let kt=o((mt,lr)=>{p==="hover"&&(zt(mt),So(lr))},"onSetHover"),xr=Yu(ie),Br=o(mt=>{kt(mt,"preset")},"onPresetHover"),pr=o(mt=>{let lr=W?Se(ke(),mt):[mt];Rt(lr)&&!W&&ve(!1,{force:!0})},"onPresetSubmit"),Or=o(mt=>{pr(mt)},"onNow"),Co=o(mt=>{kt(mt,"cell")},"onPanelHover"),_o=o(mt=>{ve(!0),Ze(0,"panel",mt)},"onPanelFocus"),mn=o(mt=>{if(W&&qt!==k)return;let lr=W?Se(ke(),mt):[mt];ge(0,!i&&n===qt?"panel-final":"panel-intermediate",lr)},"onPanelSelect"),bn=o(()=>{ve(!1)},"onPopupClose"),Ln=xl(xe,me,Ee),tn=V(()=>{let mt=Zr(r,!1);return{..._t(r,[...Object.keys(mt),"onChange","onCalendarChange","onClear","style","className","onPanelChange","classNames","styles"]),multiple:r.multiple}},[r]),vn=f(om,um({containerRef:ye},tn,{showNow:Tt,showTime:B,disabledDate:w,onFocus:_o,onBlur:o(mt=>je(0,"panel",mt),"onBlur"),picker:k,mode:gt,internalMode:qt,onPanelChange:Xt,format:a,value:Ne,isInvalid:l,onChange:null,onSelect:mn,pickerValue:Ct,defaultOpenValue:B?.defaultOpenValue,onPickerValueChange:Gt,hoverValue:Kt,onHover:Co,needConfirm:v,onSubmit:o(()=>Er("confirm"),"onSubmit"),onOk:ze,presets:xr,onPresetHover:Br,onPresetSubmit:pr,onNow:Or,cellRender:Ln,classNames:Ce,styles:ue})),Ii=o((mt,lr="input")=>{ge(0,lr,mt)},"onSelectorChange"),Nt=o(()=>{ge(0,"input")},"onSelectorInputChange"),zo=o(mt=>{ge(0,"field-switch"),ve(!0,{inherit:!0}),Ze(0,"input",mt)},"onSelectorFocus"),Lo=o(mt=>{je(0,"input",mt)},"onSelectorBlur"),ci=o((mt,lr)=>{mt.key==="Tab"?Er("keyboard-submit-weak"):mt.key==="Escape"&&(ge(0,"esc"),ve(!1)),y?.(mt,lr)},"onSelectorKeyDown"),Yn=V(()=>({prefixCls:c,locale:M,generateConfig:N,button:se.button,input:se.input,classNames:Ce,styles:ue}),[c,M,N,se.button,se.input,Ce,ue]);return Pt(()=>{Pe&&Wt!==void 0&&Xt(null,k,!1)},[Pe,Wt,k]),f(Io.Provider,{value:Yn},f(jg,um({},qg(r),{popupElement:vn,popupStyle:ue.popup.root,popupClassName:O(d,Ce.popup.root),visible:Pe,onClose:bn}),f(WT,um({},r,{ref:he,className:O(r.className,d,Ce.root),style:{...ue.root,...r.style},suffixIcon:ee,removeIcon:re,tagRender:ne,activeHelp:!!Et,allHelp:!!Et&&Ke==="preset",focused:qe,onFocus:zo,onBlur:Lo,onKeyDown:ci,onSubmit:o(()=>Er("keyboard-submit"),"onSubmit"),value:vt,maskFormat:a,onChange:Ii,onInputChange:Nt,internalPicker:n,format:s,inputReadOnly:U,disabled:C,open:Pe,onOpenChange:ve,onClick:Sr,onClear:zr,invalid:ut,onInvalid:o(mt=>{Be(mt,0)},"onInvalid")}))))}o(b6,"Picker");var v6=le(b6),UT=v6;var qT=UT;var y6=o((e,t,r,n,i,s,a)=>{let{classNames:l,style:c,styles:d}=Mt(e),m=$t(a===null?void 0:a??c),[p,g]=Qt([l,t],[d,m,r],{props:s},{popup:{_default:"root"}});return V(()=>{let h={...p,popup:{...p.popup,root:O(p.popup?.root,n)}},b={...g,popup:{...g.popup,root:{...g.popup?.root,...i}}};return[h,b]},[p,g,n,i])},"useMergedPickerSemantic"),ah=y6;var GT=o(e=>{let{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:i}=e,s=e.max(e.calc(r).sub(n).equal(),0),a=e.max(e.calc(s).sub(i).equal(),0);return{basePadding:s,containerPadding:a,itemHeight:Q(t),itemLineHeight:Q(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},"getMultipleSelectorUnit"),XT=o(e=>{let{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:i,paddingXS:s,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:d,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:["font-size","line-height","height"].map(p=>`${p} ${i}`).join(", "),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:s,paddingInlineEnd:e.calc(s).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(s).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...ri(),display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:d}}}}}},"genOverflowStyle");var kC=o((e,t)=>{let{componentCls:r,controlHeight:n}=e,i=t?`${r}-${t}`:"",s=GT(e);return[{[`${r}-multiple${i}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:n,[`${r}-selection-item`]:{height:s.itemHeight,lineHeight:Q(s.itemLineHeight)}}}]},"genSize"),x6=o(e=>{let{componentCls:t,calc:r,lineWidth:n}=e,i=wt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=wt(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[kC(i,"small"),kC(e),kC(s,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:"none",...en}},...XT(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},"genPickerMultipleStyle"),YT=x6;var S6=o(e=>{let{pickerCellCls:t,pickerCellInnerCls:r,cellHeight:n,borderRadiusSM:i,motionDurationMid:s,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:d,cellActiveWithRangeBg:u,colorTextLightSolid:m,colorTextDisabled:p,cellBgDisabled:g,colorFillSecondary:h}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:Q(n),borderRadius:i,transition:`background-color ${s}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
267
- &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[r]:{background:a}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Q(l)} ${c} ${d}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
268
- &-in-view${t}-range-start,
269
- &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
270
- &-in-view${t}-range-start,
271
- &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${r}`]:{color:m,background:d},[`&${t}-disabled ${r}`]:{background:h}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${r}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:p,cursor:"not-allowed",[r]:{background:"transparent"},"&::before":{background:g}},[`&-disabled${t}-today ${r}::before`]:{borderColor:p}}},"genPickerCellInnerStyle"),KT=o(e=>{let{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:i,pickerControlIconSize:s,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:d,colorBgContainer:u,lineWidth:m,lineType:p,borderRadiusLG:g,colorPrimary:h,colorTextHeading:b,colorSplit:v,pickerControlIconBorderWidth:x,colorIcon:S,textHeight:y,motionDurationMid:C,colorIconHover:w,fontWeightStrong:E,cellHeight:R,pickerCellPaddingVertical:$,colorTextDisabled:I,colorText:T,fontSize:M,motionDurationSlow:N,withoutTimeCellHeight:k,pickerQuarterPanelContentHeight:D,borderRadiusSM:A,colorTextLightSolid:B,cellHoverBg:L,timeColumnHeight:F,timeColumnWidth:q,timeCellHeight:X,controlItemBgActive:W,marginXXS:j,pickerDatePanelPaddingHorizontal:Z,pickerControlIconMargin:J}=e,U=e.calc(a).mul(7).add(e.calc(Z).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:g,outline:"none","&-focused":{borderColor:h},"&-rtl":{[`${t}-prev-icon,
272
- ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
273
- ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:"flex",flexDirection:"column",width:U},"&-header":{display:"flex",padding:`0 ${Q(c)}`,color:b,borderBottom:`${Q(m)} ${p} ${v}`,"> *":{flex:"none"},button:{padding:0,color:S,lineHeight:Q(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:Q(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:h}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:"relative",width:s,height:s,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:"absolute",top:J,insetInlineStart:J,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:x,borderInlineStartWidth:x,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:R,fontWeight:"normal"},th:{height:e.calc(R).add(e.calc($).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":{padding:`${Q($)} 0`,color:I,cursor:"pointer","&-in-view":{color:T},...S6(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(k).mul(4).equal()},[n]:{padding:`0 ${Q(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:D}},"&-decade-panel":{[n]:{padding:`0 ${Q(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${Q(c)}`},[n]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${Q(c)} ${Q(Z)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${C}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:L},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:h},[`&${t}-cell-week`]:{color:new ur(B).setA(.5).toHexString()},[n]:{color:B}}},"&-range-hover td:before":{background:W}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Q(c)} ${Q(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Q(m)} ${p} ${v}`},[`${t}-date-panel,
274
- ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel,
275
- ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:q,margin:`${Q(d)} 0`,padding:0,overflowY:"auto",textAlign:"start",listStyle:"none",transition:`background-color ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Q(X)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Q(m)} ${p} ${v}`},"&-active":{background:new ur(W).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(q).sub(e.calc(j).mul(2)).equal(),height:X,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(q).sub(X).div(2).equal(),color:T,lineHeight:Q(X),borderRadius:A,cursor:"pointer",transition:`background-color ${C}`,"&:hover":{background:L}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:W}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}}}}},"genPanelStyle"),C6=o(e=>{let{componentCls:t,textHeight:r,lineWidth:n,paddingSM:i,antCls:s,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:d,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Q(n)} ${d} ${u}`,"&-extra":{padding:`0 ${Q(i)}`,lineHeight:Q(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Q(n)} ${d} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Q(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Q(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${s}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}},"genPickerPanelStyle"),QT=C6;var ZT=o(e=>{let{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(n).div(2)).equal()}},"initPickerPanelToken"),JT=o(e=>{let{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:i,paddingXXS:s,lineWidth:a}=e,l=s*2,c=a*2,d=Math.min(r-l,r-c),u=Math.min(n-l,n-c),m=Math.min(i-l,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ur(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ur(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:d,multipleItemHeightSM:u,multipleItemHeightLG:m,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},"initPanelComponentToken"),eO=o(e=>({...An(e),...JT(e),...wc(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),"prepareComponentToken");var w6=o(e=>{let{componentCls:t}=e;return{[t]:[{...Ac(e),...Bc(e),...Lc(e),..._c(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Q(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Q(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},"genVariantsStyle"),tO=w6;var DC=o((e,t)=>({padding:`${Q(e)} ${Q(t)}`}),"genPickerPadding"),R6=o(e=>{let{componentCls:t,colorError:r,colorWarning:n}=e,[i]=br(e.antCls,"date-picker");return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i("affix-color")]:e.colorErrorAffix,[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[i("affix-color")]:e.colorWarningAffix,[`${t}-active-bar`]:{background:n}}}}},"genPickerStatusStyle"),E6=o(e=>{let{componentCls:t,antCls:r,paddingInline:n,lineWidth:i,lineType:s,colorBorder:a,borderRadius:l,motionDurationMid:c,colorTextDisabled:d,colorTextPlaceholder:u,colorTextQuaternary:m,fontSizeLG:p,inputFontSizeLG:g,fontSizeSM:h,inputFontSizeSM:b,controlHeightSM:v,paddingInlineSM:x,paddingXS:S,marginXS:y,colorIcon:C,lineWidthBold:w,colorPrimary:E,motionDurationSlow:R,zIndexPopup:$,paddingXXS:I,sizePopupArrow:T,colorBgElevated:M,borderRadiusLG:N,boxShadowSecondary:k,borderRadiusSM:D,colorSplit:A,cellHoverBg:B,presetsWidth:L,presetsMaxWidth:F,boxShadowPopoverArrow:q,fontHeight:X,lineHeightLG:W}=e,[j,Z]=br(r,"date-picker");return[{[t]:{[j("affix-color")]:"inherit",...hr(e),...DC(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:["border","box-shadow","background-color"].map(J=>`${J} ${c}`).join(", "),[`${t}-prefix`]:{color:Z("affix-color"),flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`,...gu(u),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:d,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:u}}},"&-large":{...DC(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:g??p,lineHeight:W}},"&-small":{...DC(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:b??h}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(S).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:["opacity","color"].map(J=>`${J} ${c}`).join(", "),"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0,appearance:"none",transform:"translateY(-50%)",cursor:"pointer",opacity:0,pointerEvents:"none",transition:["opacity","color"].map(J=>`${J} ${c}`).join(", "),"> *":{verticalAlign:"top"},"&:hover":{color:C},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...wn(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:"auto"},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:m,fontSize:p,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:C},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:w,background:E,opacity:0,transition:`all ${R} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Q(S)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:n},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x}}},"&-dropdown":{...hr(e),...KT(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
276
- &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
277
- &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft,
278
- &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight,
279
- &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft,
280
- &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:aa},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
281
- &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
282
- &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
283
- &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:ia},[`&${r}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft,
284
- &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:la},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
285
- &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:sa},[`${t}-panel > ${t}-time-panel`]:{paddingTop:I},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(n).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${R} ease-out`,...$f(e,M,q),"&:before":{insetInlineStart:e.calc(n).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:M,borderRadius:N,boxShadow:k,transition:`margin ${R}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:L,maxWidth:F,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:S,borderInlineEnd:`${Q(i)} ${s} ${A}`,li:{...en,borderRadius:D,paddingInline:S,paddingBlock:e.calc(v).sub(X).div(2).equal(),cursor:"pointer",transition:`all ${R}`,"+ li":{marginTop:y},"&:hover":{background:B}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:a}}}},"&-dropdown-range":{padding:`${Q(e.calc(T).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Tn(e,"slide-up"),Tn(e,"slide-down"),ts(e,"move-up"),ts(e,"move-down")]},"genPickerStyle"),lh=Ht("DatePicker",e=>{let t=wt(Dn(e),ZT(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[QT(t),E6(t),tO(t),R6(t),YT(t),xi(e,{focusElCls:`${e.componentCls}-focused`})]},eO);var rO=o((e,t,r)=>lo(r)?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,"getPlaceholder"),oO=o((e,t,r)=>lo(r)?r:t==="year"&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,"getRangePlaceholder"),nO=o((e,t)=>{let{allowClear:r=!0}=e,{clearIcon:n,removeIcon:i}=Lu({...e,prefixCls:t,componentName:"DatePicker"});return[V(()=>r===!1?!1:{clearIcon:n,...r===!0?{}:r},[r,n]),i]},"useIcons");var[iO,sO]=["week","WeekPicker"],[aO,lO]=["month","MonthPicker"],[cO,dO]=["year","YearPicker"],[uO,mO]=["quarter","QuarterPicker"],[td,ch]=["time","TimePicker"];var $6=o(e=>f(Si,{size:"small",type:"primary",...e}),"PickerButton"),pO=$6;function mm(e){return V(()=>({button:pO,...e}),[e])}o(mm,"useComponents");var I6={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},fO=I6;function AC(){return AC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AC.apply(this,arguments)}o(AC,"_extends");var P6=o((e,t)=>f(sr,AC({},e,{ref:t,icon:fO})),"CalendarOutlined"),N6=le(P6),gO=N6;var M6={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},hO=M6;function _C(){return _C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_C.apply(this,arguments)}o(_C,"_extends");var T6=o((e,t)=>f(sr,_C({},e,{ref:t,icon:hO})),"ClockCircleOutlined"),O6=le(T6),bO=O6;var k6=o(({picker:e,hasFeedback:t,feedbackIcon:r,suffixIcon:n})=>n===null||n===!1?null:n===!0||n===void 0?_.createElement(_.Fragment,null,e===td?_.createElement(bO,{"aria-hidden":"true"}):_.createElement(gO,{"aria-hidden":"true"}),t&&r):n,"useSuffixIcon"),dh=k6;var D6=o(e=>le((r,n)=>{let{prefixCls:i,getPopupContainer:s,components:a,className:l,style:c,classNames:d,styles:u,placement:m,size:p,disabled:g,bordered:h=!0,placeholder:b,status:v,variant:x,picker:S,dropdownClassName:y,popupClassName:C,popupStyle:w,rootClassName:E,suffixIcon:R,separator:$,allowClear:I,clearIcon:T,...M}=r,N=S===td?"timePicker":"datePicker",{suffixIcon:k,clearIcon:D,allowClear:A}=Mt(N),{getPrefixCls:B,direction:L,getPopupContainer:F,rangePicker:q}=K(at),X=H(null),W=B("picker",i),{compactSize:j,compactItemClassnames:Z}=qo(W,L),J=B(),U=$??q?.separator,ee=lo(U),[re,ne]=jo("rangePicker",x,h),oe=oo(W),[te,ie]=lh(W,oe),se=O(te,ie,oe,E),xe=ra({componentName:"RangePicker",allowClear:I,clearIcon:T,contextAllowClear:A,contextClearIcon:D,defaultAllowClear:!0}),me=mm(a),Ee=Rr(ke=>p??j??ke),$e=K(Fo),he=g??$e,ye={...r,size:Ee,disabled:he,status:v,variant:x},[He,Se]=ah(N,d,u,C||y,w,ye,q?.style??null),Ce=K(Ao),{hasFeedback:ue,status:Pe,feedbackIcon:ve}=Ce,Ue=dh({picker:S,hasFeedback:ue,feedbackIcon:ve,suffixIcon:R===void 0?k:R});ft(n,()=>X.current);let[pe]=Do("Calendar",Ys),Oe=Hn(pe,r.locale||{}),[Ie]=Un("DatePicker",Se?.popup?.root?.zIndex);return f(hn,{space:!0},f(TC,{separator:f("span",{"aria-hidden":ee?void 0:!0,className:`${W}-separator`},ee?U:f(IT,null)),disabled:he,ref:X,placement:m,placeholder:oO(Oe,S,b),suffixIcon:Ue,prevIcon:f("span",{className:`${W}-prev-icon`}),nextIcon:f("span",{className:`${W}-next-icon`}),superPrevIcon:f("span",{className:`${W}-super-prev-icon`}),superNextIcon:f("span",{className:`${W}-super-next-icon`}),transitionName:`${J}-slide-up`,picker:S,...M,locale:Oe.lang,getPopupContainer:s||F,generateConfig:e,components:me,direction:L,prefixCls:W,rootClassName:se,className:O({[`${W}-large`]:Ee==="large",[`${W}-small`]:Ee==="small",[`${W}-${re}`]:ne},kn(W,Gn(Pe,v),ue),Z,l,q?.className),style:c,classNames:He,styles:{...Se,popup:{...Se.popup,root:{...Se.popup.root,zIndex:Ie}}},allowClear:xe}))}),"generateRangePicker"),vO=D6;var A6=o(e=>{let t=o((c,d="DatePicker")=>{let u=d===ch?"timePicker":"datePicker";return le((p,g)=>{let{prefixCls:h,getPopupContainer:b,components:v,style:x,className:S,size:y,bordered:C,placement:w,placeholder:E,disabled:R,status:$,variant:I,onCalendarChange:T,classNames:M,styles:N,dropdownClassName:k,popupClassName:D,popupStyle:A,rootClassName:B,suffixIcon:L,allowClear:F,clearIcon:q,...X}=p,{suffixIcon:W,clearIcon:j,allowClear:Z}=Mt(d===ch?"timePicker":"datePicker"),{getPrefixCls:J,direction:U,getPopupContainer:ee,[u]:re}=K(at),ne=J("picker",h),{compactSize:oe,compactItemClassnames:te}=qo(ne,U),ie=Rr(Rt=>y??oe??Rt),se=K(Fo),xe=R??se,me={...p,size:ie,disabled:xe,status:$,variant:I},[Ee,$e]=ah(u,M,N,D||k,A,me,re?.style),he=H(null),[ye,He]=jo("datePicker",I,C),Se=oo(ne),[Ce,ue]=lh(ne,Se),Pe=O(Ce,ue,Se,B);ft(g,()=>he.current);let ve={showToday:!0},Ue=c||p.picker,pe=J(),{onSelect:Oe,multiple:Ie}=X,ke=Oe&&c==="time"&&!Ie,We=o((Rt,Lt,jt)=>{T?.(Rt,Lt,jt),ke&&Oe(Rt)},"onInternalCalendarChange"),[,ze]=nO(p,ne),Ne=ra({componentName:d,allowClear:F,clearIcon:q,contextAllowClear:Z,contextClearIcon:j,defaultAllowClear:!0}),lt=mm(v),qe=K(Ao),{hasFeedback:Ze,status:je,feedbackIcon:gt}=qe,rt=dh({picker:Ue,hasFeedback:Ze,feedbackIcon:gt,suffixIcon:L===void 0?W:L}),[qt]=Do("DatePicker",Ys),Tt=Hn(qt,p.locale||{}),[Xe]=Un("DatePicker",$e?.popup?.root?.zIndex);return f(hn,{space:!0},f(qT,{ref:he,placeholder:rO(Tt,Ue,E),suffixIcon:rt,placement:w,prevIcon:f("span",{className:`${ne}-prev-icon`}),nextIcon:f("span",{className:`${ne}-next-icon`}),superPrevIcon:f("span",{className:`${ne}-super-prev-icon`}),superNextIcon:f("span",{className:`${ne}-super-next-icon`}),transitionName:`${pe}-slide-up`,picker:c,onCalendarChange:We,...ve,...X,locale:Tt.lang,getPopupContainer:b||ee,generateConfig:e,components:lt,direction:U,disabled:xe,prefixCls:ne,rootClassName:Pe,className:O({[`${ne}-large`]:ie==="large",[`${ne}-small`]:ie==="small",[`${ne}-${ye}`]:He},kn(ne,Gn(je,$),Ze),te,re?.className,S),style:x,classNames:Ee,styles:{...$e,popup:{...$e.popup,root:{...$e.popup.root,zIndex:Xe}}},allowClear:Ne,removeIcon:ze}))})},"getPicker"),r=t(),n=t(iO,sO),i=t(aO,lO),s=t(cO,dO),a=t(uO,mO),l=t(td,ch);return{DatePicker:r,WeekPicker:n,MonthPicker:i,YearPicker:s,TimePicker:l,QuarterPicker:a}},"generatePicker"),yO=A6;var _6=o(e=>{let{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:i,TimePicker:s,QuarterPicker:a}=yO(e),l=vO(e),c=t;return c.WeekPicker=r,c.MonthPicker=n,c.YearPicker=i,c.RangePicker=l,c.TimePicker=s,c.QuarterPicker=a,c},"generatePicker"),LC=_6;var rd=LC(ET),L6=dl(rd,"popupAlign",void 0,"picker");rd._InternalPanelDoNotUseOrYouWillBeFired=L6;var B6=dl(rd.RangePicker,"popupAlign",void 0,"picker");rd._InternalRangePanelDoNotUseOrYouWillBeFired=B6;rd.generatePicker=LC;var xO=rd;var F6={...sc,locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",week:"\u5468",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708",nextMonth:"\u4E0B\u4E2A\u6708",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",previousYear:"\u4E0A\u4E00\u5E74",nextYear:"\u4E0B\u4E00\u5E74",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA",yearFormat:"YYYY\u5E74",cellDateFormat:"D",monthBeforeYear:!1},SO=F6;var H6={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]},uh=H6;var CO={lang:{placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"],...SO},timePickerLocale:{...uh}};CO.lang.ok="\u786E\u5B9A";var mh=CO;var wO=mh;var si="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",z6={locale:"zh-cn",Pagination:Pg,DatePicker:mh,TimePicker:uh,Calendar:wO,global:{placeholder:"\u8BF7\u9009\u62E9",close:"\u5173\u95ED",sortable:"\u53EF\u6392\u5E8F",show:"\u663E\u793A",hide:"\u9690\u85CF"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckAll:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",emptyText:"\u6682\u65E0\u6570\u636E",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",deselectAll:"\u53D6\u6D88\u5168\u9009",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00",collapse:"\u6536\u8D77"},Carousel:{prevSlide:"\u4E0A\u4E00\u5F20\u5E7B\u706F\u7247",nextSlide:"\u4E0B\u4E00\u5F20\u5E7B\u706F\u7247"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:si,method:si,array:si,object:si,number:si,date:si,boolean:si,integer:si,float:si,regexp:si,email:si,url:si,hex:si},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0",scanned:"\u5DF2\u626B\u63CF"},ColorPicker:{presetEmpty:"\u6682\u65E0",transparent:"\u65E0\u8272",singleColor:"\u5355\u8272",gradientColor:"\u6E10\u53D8\u8272"}},RO=z6;var V6={items_per_page:"/ \u0441\u0442\u0440.",jump_to:"\u041F\u0435\u0440\u0435\u0439\u0442\u0438",jump_to_confirm:"\u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",page:"\u0421\u0442\u0440\u0430\u043D\u0438\u0446\u0430",prev_page:"\u041D\u0430\u0437\u0430\u0434",next_page:"\u0412\u043F\u0435\u0440\u0435\u0434",prev_5:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0435 5",next_5:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 5",prev_3:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0435 3",next_3:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 3",page_size:"\u0440\u0430\u0437\u043C\u0435\u0440 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B"},EO=V6;var j6={...sc,locale:"ru_RU",today:"\u0421\u0435\u0433\u043E\u0434\u043D\u044F",now:"\u0421\u0435\u0439\u0447\u0430\u0441",backToToday:"\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u0430\u0442\u0430",ok:"\u041E\u041A",clear:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",week:"\u041D\u0435\u0434\u0435\u043B\u044F",month:"\u041C\u0435\u0441\u044F\u0446",year:"\u0413\u043E\u0434",timeSelect:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0440\u0435\u043C\u044F",dateSelect:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443",monthSelect:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u043C\u0435\u0441\u044F\u0446",yearSelect:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0433\u043E\u0434",decadeSelect:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0435",previousMonth:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",nextMonth:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u043C\u0435\u0441\u044F\u0446",previousYear:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0433\u043E\u0434",nextYear:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0433\u043E\u0434",previousDecade:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0435 \u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0435",nextDecade:"\u0421\u043B\u0435\u0434\u0443\u0449\u0435\u0435 \u0434\u0435\u0441\u044F\u0442\u0438\u043B\u0435\u0442\u0438\u0435",previousCentury:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0432\u0435\u043A",nextCentury:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0432\u0435\u043A"},$O=j6;var W6={placeholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0440\u0435\u043C\u044F",rangePlaceholder:["\u0412\u0440\u0435\u043C\u044F \u043D\u0430\u0447\u0430\u043B\u0430","\u0412\u0440\u0435\u043C\u044F \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F"]},ph=W6;var U6={lang:{placeholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443",yearPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u043E\u0434",quarterPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0432\u0430\u0440\u0442\u0430\u043B",monthPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043C\u0435\u0441\u044F\u0446",weekPlaceholder:"\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0435\u0434\u0435\u043B\u044E",rangePlaceholder:["\u041D\u0430\u0447\u0430\u043B\u044C\u043D\u0430\u044F \u0434\u0430\u0442\u0430","\u041A\u043E\u043D\u0435\u0447\u043D\u0430\u044F \u0434\u0430\u0442\u0430"],rangeYearPlaceholder:["\u041D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0439 \u0433\u043E\u0434","\u0413\u043E\u0434 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F"],rangeQuarterPlaceholder:["\u041D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B","\u041A\u043E\u043D\u0435\u0447\u043D\u044B\u0439 \u043A\u0432\u0430\u0440\u0442\u0430\u043B"],rangeMonthPlaceholder:["\u041D\u0430\u0447\u0430\u043B\u044C\u043D\u044B\u0439 \u043C\u0435\u0441\u044F\u0446","\u041A\u043E\u043D\u0435\u0447\u043D\u044B\u0439 \u043C\u0435\u0441\u044F\u0446"],rangeWeekPlaceholder:["\u041D\u0430\u0447\u0430\u043B\u044C\u043D\u0430\u044F \u043D\u0435\u0434\u0435\u043B\u044F","\u041A\u043E\u043D\u0435\u0447\u043D\u0430\u044F \u043D\u0435\u0434\u0435\u043B\u044F"],shortWeekDays:["\u0412\u0441","\u041F\u043D","\u0412\u0442","\u0421\u0440","\u0427\u0442","\u041F\u0442","\u0421\u0431"],shortMonths:["\u042F\u043D\u0432","\u0424\u0435\u0432","\u041C\u0430\u0440","\u0410\u043F\u0440","\u041C\u0430\u0439","\u0418\u044E\u043D","\u0418\u044E\u043B","\u0410\u0432\u0433","\u0421\u0435\u043D","\u041E\u043A\u0442","\u041D\u043E\u044F","\u0414\u0435\u043A"],...$O},timePickerLocale:{...ph}},fh=U6;var IO=fh;var ai="${label} \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0442\u0438\u043F\u043E\u043C ${type}",q6={locale:"ru",Pagination:EO,DatePicker:fh,TimePicker:ph,Calendar:IO,global:{placeholder:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435",close:"\u0417\u0430\u043A\u0440\u044B\u0442\u044C",show:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",hide:"\u0421\u043A\u0440\u044B\u0442\u044C",sortable:"\u0441\u043E\u0440\u0442\u0438\u0440\u0443\u0435\u043C\u044B\u0439"},Table:{filterTitle:"\u0424\u0438\u043B\u044C\u0442\u0440",filterConfirm:"OK",filterReset:"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C",filterEmptyText:"\u0411\u0435\u0437 \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u0432",filterCheckAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",filterSearchPlaceholder:"\u041F\u043E\u0438\u0441\u043A \u0432 \u0444\u0438\u043B\u044C\u0442\u0440\u0430\u0445",emptyText:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0451",selectInvert:"\u0418\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440",selectNone:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0434\u0430\u043D\u043D\u044B\u0435",selectionAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0434\u0430\u043D\u043D\u044B\u0435",sortTitle:"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430",expand:"\u0420\u0430\u0437\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0442\u0440\u043E\u043A\u0443",triggerDesc:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0438 \u043F\u043E \u0443\u0431\u044B\u0432\u0430\u043D\u0438\u044E",triggerAsc:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435 \u0434\u043B\u044F \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0438 \u043F\u043E \u0432\u043E\u0437\u0440\u0430\u0441\u0442\u0430\u043D\u0438\u044E",cancelSort:"\u041D\u0430\u0436\u043C\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443"},Tour:{Next:"\u0414\u0430\u043B\u0435\u0435",Previous:"\u041D\u0430\u0437\u0430\u0434",Finish:"\u0417\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C"},Modal:{okText:"OK",cancelText:"\u041E\u0442\u043C\u0435\u043D\u0430",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"\u041E\u0442\u043C\u0435\u043D\u0430"},Transfer:{titles:["",""],searchPlaceholder:"\u041F\u043E\u0438\u0441\u043A",itemUnit:"\u044D\u043B\u0435\u043C.",itemsUnit:"\u044D\u043B\u0435\u043C.",remove:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C",selectAll:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0434\u0430\u043D\u043D\u044B\u0435",deselectAll:"\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C \u0432\u0441\u0435 \u0434\u0430\u043D\u043D\u044B\u0435",selectCurrent:"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443",selectInvert:"\u0418\u043D\u0432\u0435\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u043E\u0440",removeAll:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u0434\u0430\u043D\u043D\u044B\u0435",removeCurrent:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0442\u0435\u043A\u0443\u0449\u0443\u044E \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443"},Upload:{uploading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430...",removeFile:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B",uploadError:"\u041F\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0435 \u043F\u0440\u043E\u0438\u0437\u043E\u0448\u043B\u0430 \u043E\u0448\u0438\u0431\u043A\u0430",previewFile:"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0444\u0430\u0439\u043B\u0430",downloadFile:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u0430\u0439\u043B"},Empty:{description:"\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"},Icon:{icon:"\u0438\u043A\u043E\u043D\u043A\u0430"},Text:{edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copy:"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C",copied:"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E",expand:"\u0420\u0430\u0441\u043A\u0440\u044B\u0442\u044C",collapse:"\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C"},Carousel:{prevSlide:"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0441\u043B\u0430\u0439\u0434",nextSlide:"\u0421\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0439 \u0441\u043B\u0430\u0439\u0434"},Form:{optional:"(\u043D\u0435\u043E\u0431\u044F\u0437\u0430\u0442\u0435\u043B\u044C\u043D\u043E)",defaultValidateMessages:{default:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u043F\u043E\u043B\u044F ${label}",required:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 ${label}",enum:"${label} \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u043E\u0434\u043D\u0438\u043C \u0438\u0437 [${enum}]",whitespace:"${label} \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0443\u0441\u0442\u044B\u043C",date:{format:"${label} \u043D\u0435 \u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0434\u0430\u0442\u044B",parse:"${label} \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u043D\u043E \u0432 \u0434\u0430\u0442\u0443",invalid:"${label} \u043D\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u043E\u0439 \u0434\u0430\u0442\u043E\u0439"},types:{string:ai,method:ai,array:ai,object:ai,number:ai,date:ai,boolean:ai,integer:ai,float:ai,regexp:ai,email:ai,url:ai,hex:ai},string:{len:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C ${len} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",min:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 ${min} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",max:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 ${max} \u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432",range:"\u0414\u043B\u0438\u043D\u0430 ${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043C\u0435\u0436\u0434\u0443 ${min}-${max} \u0441\u0438\u043C\u0432\u043E\u043B\u0430\u043C\u0438"},number:{len:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0440\u0430\u0432\u043D\u0430 ${len}",min:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 ${min}",max:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u0430 ${max}",range:"${label} \u0434\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u043C\u0435\u0436\u0434\u0443 ${min}-${max}"},array:{len:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 ${label} \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0440\u0430\u0432\u043D\u043E ${len}",min:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 ${label} \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u043E ${min}",max:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 ${label} \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435 \u0438\u043B\u0438 \u0440\u0430\u0432\u043D\u043E ${max}",range:"\u041A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432 ${label} \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043C\u0435\u0436\u0434\u0443 ${min} \u0438 ${max}"},pattern:{mismatch:"${label} \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${pattern}"}}},QRCode:{expired:"QR-\u043A\u043E\u0434 \u0443\u0441\u0442\u0430\u0440\u0435\u043B",refresh:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",scanned:"\u041E\u0442\u0441\u043A\u0430\u043D\u0438\u0440\u043E\u0432\u0430\u043D\u043E"},ColorPicker:{presetEmpty:"\u041F\u0443\u0441\u0442\u043E\u0439",transparent:"\u041F\u0440\u043E\u0437\u0440\u0430\u0447\u043D\u044B\u0439",singleColor:"\u041E\u0434\u0438\u043D \u0446\u0432\u0435\u0442",gradientColor:"\u0413\u0440\u0430\u0434\u0438\u0435\u043D\u0442"}},PO=q6;var G6=Mn.default,NO=RO.default,X6=PO.default;function BC(e){return e==="en"?G6:e==="ru"?X6:NO}o(BC,"antdLocale");function FC(){if(typeof document>"u")return NO;let e=document.documentElement.lang.toLowerCase();return BC(e.startsWith("en")?"en":e.startsWith("ru")?"ru":"zh")}o(FC,"antdLocaleFromDocument");function MO(){return typeof document>"u"?!1:document.documentElement.hasAttribute("data-ds-dark-theme")||document.body?.hasAttribute("data-ds-dark-theme")===!0}o(MO,"hostIsDark");function TO(){let[e,t]=_.useState(MO);return _.useEffect(()=>{let r=o(()=>t(MO()),"update");r();let n=new MutationObserver(r);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}o(TO,"useHostDark");function $n(e){let t=e;for(let r=0;r<4&&t&&typeof t=="object"&&t.$$typeof==null&&t.default;r+=1)t=t.default;return t}o($n,"unwrap");var OO=$n(uP),kO=$n(OP),_n=$n(Yd),HC=$n(AI),Y6=$n(j$),K6=$n(es),zC=$n(O1),gh=$n(hN),DO=$n(TN),hh=$n(LN),AO=$n(Bg),Q6=$n(xO),_O=Q6.RangePicker,Z6=$n(zg),VC=Object.assign($n(uT),{Item:Z6}),J6=$n(L0),e5=$n(za),t5={colorBgContainer:"var(--dsw-alias-bg-layer-3)",colorBgElevated:"var(--dsw-alias-button-elevated-fill)",colorBgLayout:"var(--dsw-alias-bg-layer-2)",colorBgSpotlight:"var(--dsw-alias-button-elevated-fill)",colorBorder:"var(--dsw-alias-border-l3)",colorBorderSecondary:"var(--dsw-alias-border-l2)",colorSplit:"var(--dsw-alias-border-l2)",colorText:"var(--dsw-alias-label-primary)",colorTextSecondary:"var(--dsw-alias-label-secondary)",colorTextTertiary:"var(--dsw-alias-label-tertiary)",colorTextQuaternary:"var(--dsw-alias-label-tertiary)",colorTextPlaceholder:"var(--dsw-alias-label-tertiary)",colorTextDisabled:"var(--dsw-alias-label-tertiary)",colorFill:"var(--dsw-alias-interactive-bg-hover)",colorFillSecondary:"var(--dsw-alias-interactive-bg-hover)",colorFillTertiary:"var(--dsw-alias-interactive-bg-hover)",colorFillQuaternary:"transparent",controlItemBgHover:"var(--dsw-alias-interactive-bg-hover)",controlItemBgActive:"var(--dsw-alias-button-ghost-active-fill)"},Ts={light:"#4176e6",dark:"#7aaaff",active:"#4868b2"};function r5(e){let t=e?J6:e5,r=e?Ts.dark:Ts.light,n=e?Ts.light:Ts.dark;return(i,s)=>({...t(i,s),colorPrimary:r,colorPrimaryHover:n,colorPrimaryActive:Ts.active,colorInfo:r,colorInfoHover:n,colorInfoActive:Ts.active,colorLink:r,colorLinkHover:n,colorLinkActive:Ts.active})}o(r5,"hostThemeAlgorithm");var o5={Segmented:{trackBg:"var(--dsw-alias-bg-module-platform, var(--dsw-alias-bg-layer-2))",itemColor:"var(--dsw-alias-label-secondary)",itemHoverBg:"var(--dsw-alias-interactive-bg-hover)",itemSelectedBg:"var(--dsw-alias-button-elevated-fill)",itemSelectedColor:"var(--dsw-alias-label-primary)"},Input:{activeBorderColor:"var(--dsw-alias-state-business-primary)",hoverBorderColor:"var(--dsw-alias-border-l3)",activeShadow:"none"},Select:{optionSelectedBg:"var(--dsw-alias-interactive-bg-hover)",optionSelectedColor:"var(--dsw-alias-label-primary)"},Button:{defaultBorderColor:"var(--dsw-alias-border-l3)",defaultBg:"var(--dsw-alias-bg-layer-3)",defaultColor:"var(--dsw-alias-label-primary)",defaultHoverBg:"var(--dsw-alias-interactive-bg-hover)",defaultHoverBorderColor:"var(--dsw-alias-border-l3)",defaultHoverColor:"var(--dsw-alias-label-primary)"}};function od(e){let t=TO(),r=typeof document<"u"?document.documentElement.lang.toLowerCase().startsWith("en")?"en":document.documentElement.lang.toLowerCase().startsWith("ru")?"ru":"zh":"zh";return _.createElement(K6,{locale:e.locale??BC(r),button:{autoInsertSpace:!1},theme:{algorithm:r5(t),token:{...t5,colorPrimary:t?Ts.dark:Ts.light},components:o5}},e.children)}o(od,"AntdProvider");function nd(e){return _.createElement(Y6,{className:e.className,ghost:!0,activeKey:e.open?["open"]:[],onChange:o(()=>e.onToggle(),"onChange"),items:[{key:"open",label:e.title,children:e.children}]})}o(nd,"Disclosure");var pm={"health.archived":"\u5DF2\u5F52\u6863\u4F1A\u8BDD\u9700\u8981\u68C0\u67E5","health.unarchived":"\u672A\u5F52\u6863\u4F1A\u8BDD\u9700\u8981\u68C0\u67E5","health.heading":"\u8BCA\u65AD\u4E0E\u4FEE\u590D","health.scopeArchived":"\u68C0\u67E5\u8303\u56F4\uFF1A\u5168\u90E8\u5DF2\u5F52\u6863\u4F1A\u8BDD\uFF0C\u4E0D\u53D7\u5217\u8868\u7B5B\u9009\u5F71\u54CD\u3002","health.scopeUnarchived":"\u68C0\u67E5\u8303\u56F4\uFF1A\u5168\u90E8\u672A\u5F52\u6863\u4F1A\u8BDD\uFF0C\u4E0D\u53D7\u5217\u8868\u7B5B\u9009\u5F71\u54CD\u3002\u4FEE\u590D\u524D\u9700\u5148\u5F52\u6863\u5E76\u5173\u95ED\u4F1A\u8BDD\u3002","health.retry":"\u91CD\u65B0\u68C0\u6D4B","health.busy":"\u5904\u7406\u4E2D\u2026","health.confirm":"\u786E\u8BA4\u4FEE\u590D","health.diagnose":"\u8BCA\u65AD\u4F1A\u8BDD","health.technical":"\u6280\u672F\u8BE6\u60C5","health.notice":"\u4F1A\u8BDD\u4FEE\u590D\u5B8C\u6210\uFF0C\u5DF2\u91CD\u65B0\u8BFB\u53D6\u8BE6\u60C5\u3002","health.legacy-source.reason":"\u65E7\u7248\u6D88\u606F\u6765\u6E90\u4E0D\u53D7\u65B0\u7248 DSH \u652F\u6301","health.legacy-source.advice":"\u8FD0\u884C\u8BCA\u65AD\uFF0C\u68C0\u67E5\u662F\u5426\u4E3A\u53EF\u8F6C\u6362\u7684\u65E7\u7248\u6765\u6E90\u3002","health.repair-frame.reason":"\u65E7\u7248\u4FEE\u590D\u751F\u6210\u7684\u538B\u7F29\u683C\u5F0F\u4E0D\u7B26\u5408\u5BBF\u4E3B\u8981\u6C42","health.repair-frame.advice":"\u91CD\u65B0\u8BCA\u65AD\u53EF\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u539F\u59CB\u65E5\u5FD7\u4FDD\u6301\u4E0D\u53D8\u3002","health.missing.reason":"\u4F1A\u8BDD\u65E5\u5FD7\u6216\u9644\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728","health.missing.advice":"\u68C0\u67E5\u539F\u76EE\u5F55\u6216\u78C1\u76D8\u662F\u5426\u53EF\u7528\uFF1B\u7F3A\u5931\u6B63\u6587\u4E0D\u80FD\u901A\u8FC7\u91CD\u5EFA\u7F13\u5B58\u6062\u590D\u3002","health.permission.reason":"\u6CA1\u6709\u6743\u9650\u8BFB\u53D6\u4F1A\u8BDD\u6587\u4EF6","health.permission.advice":"\u68C0\u67E5\u76EE\u5F55\u8BBF\u95EE\u6743\u9650\u3001\u6587\u4EF6\u5360\u7528\u4E0E\u5B89\u5168\u8F6F\u4EF6\u9650\u5236\uFF0C\u518D\u91CD\u8BD5\u3002","health.corrupt.reason":"\u4F1A\u8BDD\u65E5\u5FD7\u53EF\u80FD\u635F\u574F\u6216\u672A\u5B8C\u6574\u5199\u5165","health.corrupt.advice":"\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u5220\u9664\u6D88\u606F\u3002","health.unknown.reason":"\u4F1A\u8BDD\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6","health.unknown.advice":"\u5148\u91CD\u8BD5\uFF1B\u4ECD\u5931\u8D25\u65F6\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\uFF0C\u6309\u5177\u4F53\u9519\u8BEF\u68C0\u67E5\u5BBF\u4E3B\u517C\u5BB9\u6027\u3002","health.healthy.reason":"\u4F1A\u8BDD\u5DF2\u53EF\u6B63\u5E38\u8BFB\u53D6","health.healthy.advice":"\u5237\u65B0\u4F1A\u8BDD\u8BE6\u60C5\u5373\u53EF\uFF0C\u65E0\u9700\u4FEE\u590D\u3002","health.ready.reason":"\u53D1\u73B0 {n} \u5904\u65E7\u7248\u6765\u6E90\uFF0C\u5DF2\u901A\u8FC7\u5BBF\u4E3B\u683C\u5F0F\u8F6C\u6362\u6821\u9A8C","health.ready.advice":"\u5C06\u6765\u6E90\u6539\u5199\u4E3A\u5BBF\u4E3B\u652F\u6301\u7684\u63D2\u4EF6\u5F52\u5C5E\uFF0C\u4FDD\u7559\u6B63\u6587\uFF0C\u751F\u6210\u65B0\u7248\u65E5\u5FD7\uFF1B\u65E7\u65E5\u5FD7\u539F\u6837\u4FDD\u7559\u3002\u8BF7\u786E\u4FDD\u5176\u4ED6 DSH \u8FDB\u7A0B\u672A\u6253\u5F00\u8BE5\u4F1A\u8BDD\u3002","health.ready-frame.reason":"\u53D1\u73B0\u65E7\u7248\u4FEE\u590D\u7684\u538B\u7F29\u5E27\u95EE\u9898\uFF0C\u5DF2\u901A\u8FC7\u5BBF\u4E3B\u8BFB\u53D6\u6821\u9A8C","health.ready-frame.advice":"\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u4FDD\u7559\u6B63\u6587\u53CA\u539F\u59CB\u65E5\u5FD7\u3002\u8BF7\u786E\u4FDD\u5176\u4ED6 DSH \u8FDB\u7A0B\u672A\u6253\u5F00\u8BE5\u4F1A\u8BDD\u3002","health.blocked.reason":"\u6682\u4E0D\u80FD\u81EA\u52A8\u4FEE\u590D","health.blocked.advice":"\u8BF7\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\u67E5\u770B\u5177\u4F53\u9650\u5236\uFF0C\u5904\u7406\u540E\u91CD\u65B0\u8BCA\u65AD\u3002","health.repaired.reason":"\u4FEE\u590D\u5B8C\u6210\uFF0C\u5BBF\u4E3B\u5DF2\u80FD\u6B63\u5E38\u8BFB\u53D6","health.repaired.advice":"\u65E7\u65E5\u5FD7\u4FDD\u7559\uFF0C\u5F52\u6863\u72B6\u6001\u4E0D\u53D8\uFF1B\u53EF\u4EE5\u91CD\u65B0\u9884\u89C8\u6216\u6253\u5F00\u4F1A\u8BDD\u3002","health.published-unreadable.reason":"\u65B0\u7248\u65E5\u5FD7\u5DF2\u751F\u6210\uFF0C\u4F46\u5BBF\u4E3B\u590D\u8BFB\u672A\u901A\u8FC7","health.published-unreadable.advice":"\u65E7\u65E5\u5FD7\u4ECD\u4FDD\u7559\uFF0C\u8BF7\u91CD\u542F DSH \u540E\u91CD\u65B0\u8BCA\u65AD\uFF1B\u4E0D\u8981\u53CD\u590D\u4FEE\u590D\u6216\u5220\u9664\u65E5\u5FD7\u3002","health.failed.reason":"\u64CD\u4F5C\u672A\u5B8C\u6210","health.failed.advice":"\u8BF7\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\u67E5\u770B\u9519\u8BEF\uFF0C\u5904\u7406\u540E\u91CD\u65B0\u8BCA\u65AD\u3002"},jC={"health.archived":"Archived sessions need attention","health.unarchived":"Unarchived sessions need attention","health.heading":"Diagnosis and repair","health.scopeArchived":"Checks all archived sessions, regardless of list filters.","health.scopeUnarchived":"Checks all unarchived sessions, regardless of list filters. Archive and close a session before repairing it.","health.retry":"Check again","health.busy":"Processing\u2026","health.confirm":"Confirm repair","health.diagnose":"Diagnose session","health.technical":"Technical details","health.notice":"Session repaired. Details have been refreshed.","health.legacy-source.reason":"The new DSH version does not support this legacy message source","health.legacy-source.advice":"Run a diagnosis to check whether the legacy source can be converted.","health.repair-frame.reason":"A previous repair used an unsupported compression format","health.repair-frame.advice":"Run a diagnosis to correct the compression frames while preserving the original log.","health.missing.reason":"The session log or attachment path does not exist","health.missing.advice":"Check the original directory and disk. Rebuilding the cache cannot recover missing messages.","health.permission.reason":"Permission to read the session files was denied","health.permission.advice":"Check directory permissions, file locks and security software, then retry.","health.corrupt.reason":"The session log may be corrupt or incomplete","health.corrupt.advice":"Keep the existing log and check the disk and original files. Messages will not be truncated or deleted automatically.","health.unknown.reason":"The session cannot currently be read","health.unknown.advice":"Retry first. If it still fails, expand technical details to check host compatibility.","health.healthy.reason":"The session can be read normally","health.healthy.advice":"Refresh the session details. No repair is needed.","health.ready.reason":"Found {n} legacy sources; host format validation passed","health.ready.advice":"Rewrite the sources to a host-supported plugin attribution and generate a new log, preserving messages and the original log. Ensure no other DSH process has the session open.","health.ready-frame.reason":"Found compression frame issues from a previous repair; host validation passed","health.ready-frame.advice":"Correct the compression frames, preserving messages and the original log. Ensure no other DSH process has the session open.","health.blocked.reason":"Automatic repair is currently unavailable","health.blocked.advice":"Expand technical details to see the restriction. Resolve it before diagnosing again.","health.repaired.reason":"Repair complete; the host can read the session","health.repaired.advice":"The original log and archive status are preserved. You can preview or open the session again.","health.published-unreadable.reason":"A new log was generated, but the host could not read it back","health.published-unreadable.advice":"The original log is preserved. Restart DSH and diagnose again. Do not repeatedly repair or delete logs.","health.failed.reason":"The operation did not complete","health.failed.advice":"Expand technical details to inspect the error. Resolve it before diagnosing again."},WC={"health.archived":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u044F","health.unarchived":"\u041D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u044F","health.heading":"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0430 \u0438 \u0440\u0435\u043C\u043E\u043D\u0442","health.scopeArchived":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0432\u0441\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u0432 \u0441\u043F\u0438\u0441\u043A\u0430.","health.scopeUnarchived":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0432\u0441\u0435 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u0432 \u0441\u043F\u0438\u0441\u043A\u0430. \u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u0437\u0430\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0435\u0441\u0441\u0438\u044E \u043F\u0435\u0440\u0435\u0434 \u0440\u0435\u043C\u043E\u043D\u0442\u043E\u043C.","health.retry":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u043D\u043E\u0432\u0430","health.busy":"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430\u2026","health.confirm":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0440\u0435\u043C\u043E\u043D\u0442","health.diagnose":"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","health.technical":"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438","health.notice":"\u0421\u0435\u0441\u0441\u0438\u044F \u043E\u0442\u0440\u0435\u043C\u043E\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u0421\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B.","health.legacy-source.reason":"\u041D\u043E\u0432\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F DSH \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044D\u0442\u043E\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439","health.legacy-source.advice":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C, \u043C\u043E\u0436\u043D\u043E \u043B\u0438 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u0442\u044C \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A.","health.repair-frame.reason":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0440\u0435\u043C\u043E\u043D\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B \u043D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0441\u0436\u0430\u0442\u0438\u044F","health.repair-frame.advice":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443, \u0447\u0442\u043E\u0431\u044B \u0438\u0441\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0434\u0440\u044B \u0441\u0436\u0430\u0442\u0438\u044F, \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0432 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B.","health.missing.reason":"\u041F\u0443\u0442\u044C \u043A \u0436\u0443\u0440\u043D\u0430\u043B\u0443 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u044E \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442","health.missing.advice":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u043A\u0430\u0442\u0430\u043B\u043E\u0433 \u0438 \u0434\u0438\u0441\u043A. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u044D\u0448\u0430 \u043D\u0435 \u0432\u0435\u0440\u043D\u0451\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u044E\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","health.permission.reason":"\u041E\u0442\u043A\u0430\u0437\u0430\u043D\u043E \u0432 \u0434\u043E\u0441\u0442\u0443\u043F\u0435 \u043A \u0444\u0430\u0439\u043B\u0430\u043C \u0441\u0435\u0441\u0441\u0438\u0438","health.permission.advice":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u0440\u0430\u0432\u0430 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0430, \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0444\u0430\u0439\u043B\u043E\u0432 \u0438 \u0430\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441, \u0437\u0430\u0442\u0435\u043C \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435.","health.corrupt.reason":"\u0416\u0443\u0440\u043D\u0430\u043B \u0441\u0435\u0441\u0441\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0451\u043D \u0438\u043B\u0438 \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u043C","health.corrupt.advice":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0434\u0438\u0441\u043A \u0438 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B. \u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u044B \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0435\u043D\u044B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438.","health.unknown.reason":"\u0421\u0435\u0441\u0441\u0438\u044E \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C","health.unknown.advice":"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435. \u0415\u0441\u043B\u0438 \u043D\u0435 \u043F\u043E\u043C\u043E\u0436\u0435\u0442, \u0440\u0430\u0441\u043A\u0440\u043E\u0439\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0441\u0442\u0438 \u0441 \u0445\u043E\u0441\u0442\u043E\u043C.","health.healthy.reason":"\u0421\u0435\u0441\u0441\u0438\u044F \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044F \u043D\u043E\u0440\u043C\u0430\u043B\u044C\u043D\u043E","health.healthy.advice":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E \u0441\u0435\u0441\u0441\u0438\u0438. \u0420\u0435\u043C\u043E\u043D\u0442 \u043D\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F.","health.ready.reason":"\u041D\u0430\u0439\u0434\u0435\u043D\u043E \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432: {n}; \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u0445\u043E\u0441\u0442\u0430 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u0430","health.ready.advice":"\u041F\u0435\u0440\u0435\u043F\u0438\u0448\u0438\u0442\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0432 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u0443\u044E \u0445\u043E\u0441\u0442\u043E\u043C \u0430\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u044E \u043F\u043B\u0430\u0433\u0438\u043D\u0430 \u0438 \u0441\u043E\u0437\u0434\u0430\u0439\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B, \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0432 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0438 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0441\u0435\u0441\u0441\u0438\u044E \u043D\u0435 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 DSH.","health.ready-frame.reason":"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u043A\u0430\u0434\u0440\u043E\u0432 \u0441\u0436\u0430\u0442\u0438\u044F \u043E\u0442 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u0440\u0435\u043C\u043E\u043D\u0442\u0430; \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0445\u043E\u0441\u0442\u0430 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u0430","health.ready-frame.advice":"\u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043A\u0430\u0434\u0440\u044B \u0441\u0436\u0430\u0442\u0438\u044F, \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0432 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0438 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0441\u0435\u0441\u0441\u0438\u044E \u043D\u0435 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 DSH.","health.blocked.reason":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0440\u0435\u043C\u043E\u043D\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D","health.blocked.advice":"\u0420\u0430\u0441\u043A\u0440\u043E\u0439\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435. \u0423\u0441\u0442\u0440\u0430\u043D\u0438\u0442\u0435 \u0435\u0433\u043E \u043F\u0435\u0440\u0435\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0439 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u043E\u0439.","health.repaired.reason":"\u0420\u0435\u043C\u043E\u043D\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D; \u0445\u043E\u0441\u0442 \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","health.repaired.advice":"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0430\u0440\u0445\u0438\u0432\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B. \u041C\u043E\u0436\u043D\u043E \u0441\u043D\u043E\u0432\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E.","health.published-unreadable.reason":"\u041D\u043E\u0432\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0441\u043E\u0437\u0434\u0430\u043D, \u043D\u043E \u0445\u043E\u0441\u0442 \u043D\u0435 \u0441\u043C\u043E\u0433 \u0435\u0433\u043E \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C","health.published-unreadable.advice":"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D. \u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 DSH \u0438 \u043F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443 \u0441\u043D\u043E\u0432\u0430. \u041D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u0440\u0435\u043C\u043E\u043D\u0442 \u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u044F\u0439\u0442\u0435 \u0436\u0443\u0440\u043D\u0430\u043B\u044B.","health.failed.reason":"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430","health.failed.advice":"\u0420\u0430\u0441\u043A\u0440\u043E\u0439\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438, \u0447\u0442\u043E\u0431\u044B \u0438\u0437\u0443\u0447\u0438\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0443. \u0423\u0441\u0442\u0440\u0430\u043D\u0438\u0442\u0435 \u0435\u0451 \u043F\u0435\u0440\u0435\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0439 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u043E\u0439."};var ks=o(e=>{if(typeof e!="string"||!e.length||e.length>1024)throw new TypeError("\u4F1A\u8BDD ID \u65E0\u6548");return e},"id"),HO=o((e,t=!1)=>{if(typeof e!="string"||e.length>200||t&&!e.trim())throw new TypeError("\u5173\u952E\u8BCD\u987B\u4E3A 1\uFF5E200 \u4E2A\u5B57\u7B26");return e.trim()},"queryText"),LO={parse(e){let t=Ur(e);if(!t||!Array.isArray(t.sessionIds)||!t.sessionIds.length||t.sessionIds.length>20)throw new TypeError("\u6BCF\u6B21\u68C0\u7D22\u987B\u5305\u542B 1\uFF5E20 \u4E2A\u4F1A\u8BDD");return{sessionIds:[...new Set(t.sessionIds.map(ks))],query:HO(t.query,!0)}}},n5={parse(e){let t=Ur(e);if(!t)throw new TypeError("\u9884\u89C8\u53C2\u6570\u65E0\u6548");return{sessionId:ks(t.sessionId),query:HO(t.query??"")}}},Os=o((e,t)=>{if(typeof e!="string"||e.length>t)throw new TypeError("\u8FD4\u56DE\u6587\u672C\u65E0\u6548");return e},"boundedString"),fm=o(e=>{if(typeof e!="number"||!Number.isSafeInteger(e)||e<0)throw new TypeError("\u6D88\u606F\u5E8F\u53F7\u65E0\u6548");return e},"sequence"),UC={parse(e){let t=Ur(e);if(!t||!Array.isArray(t.items)||!Array.isArray(t.failures)||t.items.length>20||t.failures.length>20)throw new TypeError("\u68C0\u7D22\u7ED3\u679C\u65E0\u6548");return{items:t.items.map(Ur).map(r=>({sessionId:ks(r.sessionId),seq:fm(r.seq),snippet:Os(r.snippet,400)})),failures:t.failures.map(Ur).map(r=>({sessionId:ks(r.sessionId),message:Os(r.message,500)}))}}},i5={parse(e){let t=Ur(e);if(!t||!Array.isArray(t.messages)||t.messages.length>8||typeof t.hasEarlier!="boolean"||typeof t.hasLater!="boolean")throw new TypeError("\u9884\u89C8\u7ED3\u679C\u65E0\u6548");return{sessionId:ks(t.sessionId),hasEarlier:t.hasEarlier,hasLater:t.hasLater,messages:t.messages.map(Ur).map(r=>{if(typeof r.role!="string"||!["user","assistant"].includes(r.role)||typeof r.truncated!="boolean")throw new TypeError("\u6D88\u606F\u89D2\u8272\u6216\u622A\u65AD\u72B6\u6001\u65E0\u6548");return{seq:fm(r.seq),role:r.role,text:Os(r.text,2e3),truncated:r.truncated}})}}},s5={parse(e){let t=Ur(e);if(!t||!Array.isArray(t.sessionIds)||!t.sessionIds.length||t.sessionIds.length>20)throw new TypeError("\u6BCF\u6B21\u987B\u5305\u542B 1\uFF5E20 \u4E2A\u4F1A\u8BDD");return{sessionIds:[...new Set(t.sessionIds.map(ks))]}}},qC={parse(e){let t=Ur(e);if(!t||!Array.isArray(t.items)||t.items.length>20)throw new TypeError("\u4F1A\u8BDD\u8BE6\u60C5\u65E0\u6548");return{items:t.items.map(Ur).map(r=>({sessionId:ks(r.sessionId),...r.createdAt!==void 0?{createdAt:fm(r.createdAt)}:{},turnCount:r.turnCount===null?null:fm(r.turnCount),path:r.path===null?null:Os(r.path,32768),error:Os(r.error,500)}))}}};function GC(e,t,r){let n=typeof e=="number"&&Number.isSafeInteger(e)&&e>=0,i=typeof t=="number"&&Number.isSafeInteger(t)&&t>=0;return n!==i?n?-1:1:n&&i?r==="turnsAsc"?e-t:t-e:0}o(GC,"compareTurnCounts");async function zO(e,t=globalThis.navigator?.clipboard){if(typeof e!="string"||!e)throw Object.assign(new Error("\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9"),{code:"copy.empty"});if(!t?.writeText)throw Object.assign(new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u526A\u8D34\u677F\uFF0C\u8BF7\u5728 HTTPS \u6216\u672C\u673A\u5730\u5740\u4E2D\u6253\u5F00\u9875\u9762"),{code:"copy.unavailable"});try{await t.writeText(e)}catch{throw Object.assign(new Error("\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u5141\u8BB8\u6D4F\u89C8\u5668\u8BBF\u95EE\u526A\u8D34\u677F\u540E\u91CD\u8BD5"),{code:"copy.denied"})}}o(zO,"copySessionText");function VO(){let e=o((r,n)=>({mode:"strict",typeSymbol:`@michengai/dsh-archive-manager/types#${r}`,create:o(()=>n,"create"),schema:n}),"codec");return[["searchSessionContent",LO,UC],["diagnoseSession",BO,FO],["repairSession",BO,FO],["sessionDetails",s5,qC],["searchArchivedContent",LO,UC],["previewArchivedSession",n5,i5]].map(([r,n,i])=>({id:`@michengai/dsh-archive-manager#workspaceRegistry/${r}`,service:"workspaceRegistry",namespace:"workspaceRegistry",method:r,invocation:{kind:"direct"},parameters:[{name:"input",wire:"input",source:"json",codec:e(r+"Input",n)}],result:e(r+"Result",i),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}}))}o(VO,"discoveryInvocations");function jO(e,t){let r=t?.trim().toLowerCase();if(!r)return null;let n=e.toLowerCase().indexOf(r);if(n<0)return null;let i=0,s=0,a;for(let l of e){let c=s+l.toLowerCase().length;if(a===void 0&&c>n&&(a=i),i+=l.length,c>=n+r.length)return{start:a??i,end:i};s=c}return null}o(jO,"findTextRange");function WO(e,t){return[...new Set(e)].map(r=>t[r]??{id:r})}o(WO,"sessionDetailCandidates");function bh(e,t=!1){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return NaN;let[r,n,i]=e.split("-").map(Number),s=new Date(r,n-1,i);return s.getFullYear()!==r||s.getMonth()!==n-1||s.getDate()!==i?NaN:(t&&s.setDate(s.getDate()+1),s.getTime())}o(bh,"dayBoundary");function XC(e,t){return(!e||Number.isFinite(bh(e)))&&(!t||Number.isFinite(bh(t)))&&(!e||!t||e<=t)}o(XC,"validUpdatedRange");function UO(e,t,r){if(!XC(t,r))return!1;if(!t&&!r)return!0;let n=typeof e=="number"?e:Date.parse(e??"");return Number.isFinite(n)&&(!t||n>=bh(t))&&(!r||n<bh(r,!0))}o(UO,"matchesUpdatedRange");async function qO(e,t,r,{signal:n,onProgress:i}={}){let s=[],a=[],l=[...new Set(e)],c=o(()=>{if(n?.aborted)throw new Error("\u641C\u7D22\u5DF2\u53D6\u6D88")},"check");for(let d=0;d<l.length;d+=20){c();let u=UC.parse(await r({sessionIds:l.slice(d,d+20),query:t}));c(),s.push(...u.items),a.push(...u.failures),i?.({done:Math.min(d+20,l.length),total:l.length,items:[...s],failures:[...a]})}return c(),{items:s,failures:a}}o(qO,"searchArchiveBatches");function GO(e){let t=xn(e),r={"repair-frame":["\u65E7\u7248\u4FEE\u590D\u751F\u6210\u7684\u538B\u7F29\u683C\u5F0F\u4E0D\u7B26\u5408\u5BBF\u4E3B\u8981\u6C42","\u91CD\u65B0\u8BCA\u65AD\u53EF\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u539F\u59CB\u65E5\u5FD7\u4FDD\u6301\u4E0D\u53D8\u3002"],"legacy-source":["\u65E7\u7248\u6D88\u606F\u6765\u6E90\u4E0D\u53D7\u65B0\u7248 DSH \u652F\u6301","\u8FD0\u884C\u8BCA\u65AD\uFF0C\u68C0\u67E5\u662F\u5426\u4E3A\u53EF\u8F6C\u6362\u7684\u65E7\u7248\u6765\u6E90\u3002"],missing:["\u4F1A\u8BDD\u65E5\u5FD7\u6216\u9644\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728","\u68C0\u67E5\u539F\u76EE\u5F55\u6216\u78C1\u76D8\u662F\u5426\u53EF\u7528\uFF1B\u7F3A\u5931\u6B63\u6587\u4E0D\u80FD\u901A\u8FC7\u91CD\u5EFA\u7F13\u5B58\u6062\u590D\u3002"],permission:["\u6CA1\u6709\u6743\u9650\u8BFB\u53D6\u4F1A\u8BDD\u6587\u4EF6","\u68C0\u67E5\u76EE\u5F55\u8BBF\u95EE\u6743\u9650\u3001\u6587\u4EF6\u5360\u7528\u4E0E\u5B89\u5168\u8F6F\u4EF6\u9650\u5236\uFF0C\u518D\u91CD\u8BD5\u3002"],corrupt:["\u4F1A\u8BDD\u65E5\u5FD7\u53EF\u80FD\u635F\u574F\u6216\u672A\u5B8C\u6574\u5199\u5165","\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u5220\u9664\u6D88\u606F\u3002"],unknown:["\u4F1A\u8BDD\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6","\u5148\u91CD\u8BD5\uFF1B\u4ECD\u5931\u8D25\u65F6\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\uFF0C\u6309\u5177\u4F53\u9519\u8BEF\u68C0\u67E5\u5BBF\u4E3B\u517C\u5BB9\u6027\u3002"]},n={ENOENT:"missing",EACCES:"permission",EPERM:"permission"},i=[["repair-frame",/first frame is not exactly one header line/],["legacy-source",/unclassified message source/],["missing",/ENOENT|不存在|not found/i],["permission",/EACCES|EPERM|permission/i],["corrupt",/corrupt|JSON|incomplete|truncat|损坏|SessionFormatError/i]],s=Hl(e),a=e&&typeof e=="object"&&"name"in e?String(e.name??""):"",l=typeof s=="string"?n[s]??s:"";if(Object.hasOwn(r,l)){let[g,h]=r[l];return{code:l,reason:g,advice:h}}if(/requires toolCallId matching its tool source|tool call id requires a nonempty string/i.test(t))return{code:"corrupt",reason:"\u65E5\u5FD7\u5C3E\u90E8\u6709\u672A\u95ED\u5408\u7684\u5DE5\u5177\u8C03\u7528\uFF0C\u4E14 toolCallId \u4E3A\u7A7A",advice:"\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u6539\u5199\u65E5\u5FD7\u3002"};let u=(a==="SessionFormatError"||a==="SessionPersistenceCorruptionError"?"corrupt":void 0)??i.find(([,g])=>g.test(t))?.[0]??"unknown",[m,p]=r[u];return{code:u,reason:m,advice:p}}o(GO,"classifySessionError");var BO={parse(e){let t=Ur(e),r=ks(t?.sessionId);if(t?.token!==void 0&&(typeof t.token!="string"||!/^[a-f0-9]{64}$/.test(t.token)))throw new TypeError("\u4FEE\u590D\u51ED\u636E\u65E0\u6548");return{sessionId:r,...t.token!==void 0?{token:t.token}:{}}}},FO={parse(e){let t=Ur(e);if(!t||typeof t.repairable!="boolean"||typeof t.repaired!="boolean")throw new TypeError("\u8BCA\u65AD\u7ED3\u679C\u65E0\u6548");return{...t.code!==void 0?{code:Os(t.code,64)}:{},sessionId:ks(t.sessionId),repairable:t.repairable,repaired:t.repaired,reason:Os(t.reason,1e3),advice:Os(t.advice,1e3),token:Os(t.token??"",64),count:fm(t.count??0)}}};var a5=o((e,t={})=>Object.entries(t).reduce((r,[n,i])=>r.replaceAll("{"+n+"}",String(i)),pm[e]??e),"defaultT"),l5=`
10
+ "use strict";var Un=Object.defineProperty;var Fa=Object.getOwnPropertyDescriptor;var La=Object.getOwnPropertyNames;var Ga=Object.prototype.hasOwnProperty;var t=(r,o)=>Un(r,"name",{value:o,configurable:!0});var qa=(r,o)=>{for(var d in o)Un(r,d,{get:o[d],enumerable:!0})},Ua=(r,o,d,y)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of La(o))!Ga.call(r,n)&&n!==d&&Un(r,n,{get:()=>o[n],enumerable:!(y=Fa(o,n))||y.enumerable});return r};var Va=r=>Ua(Un({},"__esModule",{value:!0}),r);var ui={};qa(ui,{startArchiveClient:()=>di});module.exports=Va(ui);function we(r){if(typeof r!="object"||r===null||Array.isArray(r))throw new TypeError("\u53C2\u6570\u5FC5\u987B\u4E3A\u5BF9\u8C61");return r}t(we,"record");function et(r){return String(r&&typeof r=="object"&&"message"in r?r.message??r:r)}t(et,"errorMessage");function cn(r){return r&&typeof r=="object"&&"code"in r?r.code:void 0}t(cn,"errorCode");var lr=Function("return globalThis.__dshArchiveReact")(),{Children:fi,Component:vi,Fragment:yi,Profiler:wi,PureComponent:bi,StrictMode:xi,Suspense:Si,cloneElement:ki,createContext:_i,createElement:Ri,createRef:Ci,forwardRef:Ii,isValidElement:Ai,lazy:Ei,memo:ji,startTransition:Di,useCallback:Ti,useContext:Ni,useDebugValue:Mi,useDeferredValue:Oi,useEffect:Hi,useId:Pi,useImperativeHandle:zi,useInsertionEffect:Bi,useLayoutEffect:Fi,useMemo:Li,useReducer:Gi,useRef:qi,useState:Ui,useSyncExternalStore:Vi,useTransition:Wi,version:Xi}=lr,L=lr;function cr(r){return L.createElement("input",{className:"dsham_number",type:"number",min:r.min,max:r.max,value:r.value??"",disabled:r.disabled,"aria-label":r["aria-label"],onChange:t(o=>{let d=o.target.value;if(d===""){r.onChange(null);return}let y=Number(d);r.onChange(Number.isNaN(y)?null:y)},"onChange")})}t(cr,"NumberField");function dr(r){function o(d,y){let n=d==="from"?y:r.from,i=d==="to"?y:r.to;if(n===""&&i===""){r.onClear();return}d==="from"?r.onFrom(y):r.onTo(y)}return t(o,"change"),L.createElement("div",{className:"dsham_dateRange",role:"group","aria-label":r.label},L.createElement("input",{className:"dsham_date",type:"date",value:r.from,"aria-label":r.fromLabel,"aria-invalid":r.invalid||void 0,onChange:t(d=>o("from",d.target.value),"onChange")}),L.createElement("span",{className:"dsham_dateSep","aria-hidden":!0,children:"\u2013"}),L.createElement("input",{className:"dsham_date",type:"date",value:r.to,"aria-label":r.toLabel,"aria-invalid":r.invalid||void 0,onChange:t(d=>o("to",d.target.value),"onChange")}),r.from||r.to?L.createElement("button",{type:"button",className:"dsham_dateClearBtn","aria-label":"clear",title:"clear",onClick:r.onClear,children:"\xD7"}):null)}t(dr,"DateRange");function dn(r){return L.createElement("div",{className:r.className},L.createElement("button",{type:"button",className:"dsham_disclosure","aria-expanded":r.open,onClick:r.onToggle},Wa(L.createElement,r.open),r.title),r.open?L.createElement("div",null,r.children):null)}t(dn,"Disclosure");function Wa(r,o){return r("svg",{className:"dsham_foldChevron"+(o?" is-open":""),viewBox:"0 0 16 16",width:12,height:12,fill:"none",stroke:"currentColor",strokeWidth:1.5,"aria-hidden":!0},r("path",{d:"M4 6l4 4 4-4",strokeLinecap:"round",strokeLinejoin:"round"}))}t(Wa,"foldChevron");function os(r){let o=L.useRef(null);return L.useEffect(()=>{o.current&&(o.current.indeterminate=!!r.indeterminate&&!r.checked)},[r.indeterminate,r.checked]),L.createElement("input",{ref:o,className:"dsham_checkbox",type:"checkbox",checked:r.checked,disabled:r.disabled,"aria-label":r.label,onChange:t(d=>r.onChange({target:{checked:d.target.checked}}),"onChange")})}t(os,"SelectionCheckbox");var Rn={"health.archived":"\u5DF2\u5F52\u6863\u4F1A\u8BDD\u9700\u8981\u68C0\u67E5","health.unarchived":"\u672A\u5F52\u6863\u4F1A\u8BDD\u9700\u8981\u68C0\u67E5","health.heading":"\u8BCA\u65AD\u4E0E\u4FEE\u590D","health.scopeArchived":"\u68C0\u67E5\u8303\u56F4\uFF1A\u5168\u90E8\u5DF2\u5F52\u6863\u4F1A\u8BDD\uFF0C\u4E0D\u53D7\u5217\u8868\u7B5B\u9009\u5F71\u54CD\u3002","health.scopeUnarchived":"\u68C0\u67E5\u8303\u56F4\uFF1A\u5168\u90E8\u672A\u5F52\u6863\u4F1A\u8BDD\uFF0C\u4E0D\u53D7\u5217\u8868\u7B5B\u9009\u5F71\u54CD\u3002\u4FEE\u590D\u524D\u9700\u5148\u5F52\u6863\u5E76\u5173\u95ED\u4F1A\u8BDD\u3002","health.retry":"\u91CD\u65B0\u68C0\u6D4B","health.busy":"\u5904\u7406\u4E2D\u2026","health.confirm":"\u786E\u8BA4\u4FEE\u590D","health.diagnose":"\u8BCA\u65AD\u4F1A\u8BDD","health.technical":"\u6280\u672F\u8BE6\u60C5","health.notice":"\u4F1A\u8BDD\u4FEE\u590D\u5B8C\u6210\uFF0C\u5DF2\u91CD\u65B0\u8BFB\u53D6\u8BE6\u60C5\u3002","health.legacy-source.reason":"\u65E7\u7248\u6D88\u606F\u6765\u6E90\u4E0D\u53D7\u65B0\u7248 DSH \u652F\u6301","health.legacy-source.advice":"\u8FD0\u884C\u8BCA\u65AD\uFF0C\u68C0\u67E5\u662F\u5426\u4E3A\u53EF\u8F6C\u6362\u7684\u65E7\u7248\u6765\u6E90\u3002","health.repair-frame.reason":"\u65E7\u7248\u4FEE\u590D\u751F\u6210\u7684\u538B\u7F29\u683C\u5F0F\u4E0D\u7B26\u5408\u5BBF\u4E3B\u8981\u6C42","health.repair-frame.advice":"\u91CD\u65B0\u8BCA\u65AD\u53EF\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u539F\u59CB\u65E5\u5FD7\u4FDD\u6301\u4E0D\u53D8\u3002","health.missing.reason":"\u4F1A\u8BDD\u65E5\u5FD7\u6216\u9644\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728","health.missing.advice":"\u68C0\u67E5\u539F\u76EE\u5F55\u6216\u78C1\u76D8\u662F\u5426\u53EF\u7528\uFF1B\u7F3A\u5931\u6B63\u6587\u4E0D\u80FD\u901A\u8FC7\u91CD\u5EFA\u7F13\u5B58\u6062\u590D\u3002","health.permission.reason":"\u6CA1\u6709\u6743\u9650\u8BFB\u53D6\u4F1A\u8BDD\u6587\u4EF6","health.permission.advice":"\u68C0\u67E5\u76EE\u5F55\u8BBF\u95EE\u6743\u9650\u3001\u6587\u4EF6\u5360\u7528\u4E0E\u5B89\u5168\u8F6F\u4EF6\u9650\u5236\uFF0C\u518D\u91CD\u8BD5\u3002","health.corrupt.reason":"\u4F1A\u8BDD\u65E5\u5FD7\u53EF\u80FD\u635F\u574F\u6216\u672A\u5B8C\u6574\u5199\u5165","health.corrupt.advice":"\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u5220\u9664\u6D88\u606F\u3002","health.unknown.reason":"\u4F1A\u8BDD\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6","health.unknown.advice":"\u5148\u91CD\u8BD5\uFF1B\u4ECD\u5931\u8D25\u65F6\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\uFF0C\u6309\u5177\u4F53\u9519\u8BEF\u68C0\u67E5\u5BBF\u4E3B\u517C\u5BB9\u6027\u3002","health.healthy.reason":"\u4F1A\u8BDD\u5DF2\u53EF\u6B63\u5E38\u8BFB\u53D6","health.healthy.advice":"\u5237\u65B0\u4F1A\u8BDD\u8BE6\u60C5\u5373\u53EF\uFF0C\u65E0\u9700\u4FEE\u590D\u3002","health.ready.reason":"\u53D1\u73B0 {n} \u5904\u65E7\u7248\u6765\u6E90\uFF0C\u5DF2\u901A\u8FC7\u5BBF\u4E3B\u683C\u5F0F\u8F6C\u6362\u6821\u9A8C","health.ready.advice":"\u5C06\u6765\u6E90\u6539\u5199\u4E3A\u5BBF\u4E3B\u652F\u6301\u7684\u63D2\u4EF6\u5F52\u5C5E\uFF0C\u4FDD\u7559\u6B63\u6587\uFF0C\u751F\u6210\u65B0\u7248\u65E5\u5FD7\uFF1B\u65E7\u65E5\u5FD7\u539F\u6837\u4FDD\u7559\u3002\u8BF7\u786E\u4FDD\u5176\u4ED6 DSH \u8FDB\u7A0B\u672A\u6253\u5F00\u8BE5\u4F1A\u8BDD\u3002","health.ready-frame.reason":"\u53D1\u73B0\u65E7\u7248\u4FEE\u590D\u7684\u538B\u7F29\u5E27\u95EE\u9898\uFF0C\u5DF2\u901A\u8FC7\u5BBF\u4E3B\u8BFB\u53D6\u6821\u9A8C","health.ready-frame.advice":"\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u4FDD\u7559\u6B63\u6587\u53CA\u539F\u59CB\u65E5\u5FD7\u3002\u8BF7\u786E\u4FDD\u5176\u4ED6 DSH \u8FDB\u7A0B\u672A\u6253\u5F00\u8BE5\u4F1A\u8BDD\u3002","health.blocked.reason":"\u6682\u4E0D\u80FD\u81EA\u52A8\u4FEE\u590D","health.blocked.advice":"\u8BF7\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\u67E5\u770B\u5177\u4F53\u9650\u5236\uFF0C\u5904\u7406\u540E\u91CD\u65B0\u8BCA\u65AD\u3002","health.repaired.reason":"\u4FEE\u590D\u5B8C\u6210\uFF0C\u5BBF\u4E3B\u5DF2\u80FD\u6B63\u5E38\u8BFB\u53D6","health.repaired.advice":"\u65E7\u65E5\u5FD7\u4FDD\u7559\uFF0C\u5F52\u6863\u72B6\u6001\u4E0D\u53D8\uFF1B\u53EF\u4EE5\u91CD\u65B0\u9884\u89C8\u6216\u6253\u5F00\u4F1A\u8BDD\u3002","health.published-unreadable.reason":"\u65B0\u7248\u65E5\u5FD7\u5DF2\u751F\u6210\uFF0C\u4F46\u5BBF\u4E3B\u590D\u8BFB\u672A\u901A\u8FC7","health.published-unreadable.advice":"\u65E7\u65E5\u5FD7\u4ECD\u4FDD\u7559\uFF0C\u8BF7\u91CD\u542F DSH \u540E\u91CD\u65B0\u8BCA\u65AD\uFF1B\u4E0D\u8981\u53CD\u590D\u4FEE\u590D\u6216\u5220\u9664\u65E5\u5FD7\u3002","health.failed.reason":"\u64CD\u4F5C\u672A\u5B8C\u6210","health.failed.advice":"\u8BF7\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\u67E5\u770B\u9519\u8BEF\uFF0C\u5904\u7406\u540E\u91CD\u65B0\u8BCA\u65AD\u3002"},ls={"health.archived":"Archived sessions need attention","health.unarchived":"Unarchived sessions need attention","health.heading":"Diagnosis and repair","health.scopeArchived":"Checks all archived sessions, regardless of list filters.","health.scopeUnarchived":"Checks all unarchived sessions, regardless of list filters. Archive and close a session before repairing it.","health.retry":"Check again","health.busy":"Processing\u2026","health.confirm":"Confirm repair","health.diagnose":"Diagnose session","health.technical":"Technical details","health.notice":"Session repaired. Details have been refreshed.","health.legacy-source.reason":"The new DSH version does not support this legacy message source","health.legacy-source.advice":"Run a diagnosis to check whether the legacy source can be converted.","health.repair-frame.reason":"A previous repair used an unsupported compression format","health.repair-frame.advice":"Run a diagnosis to correct the compression frames while preserving the original log.","health.missing.reason":"The session log or attachment path does not exist","health.missing.advice":"Check the original directory and disk. Rebuilding the cache cannot recover missing messages.","health.permission.reason":"Permission to read the session files was denied","health.permission.advice":"Check directory permissions, file locks and security software, then retry.","health.corrupt.reason":"The session log may be corrupt or incomplete","health.corrupt.advice":"Keep the existing log and check the disk and original files. Messages will not be truncated or deleted automatically.","health.unknown.reason":"The session cannot currently be read","health.unknown.advice":"Retry first. If it still fails, expand technical details to check host compatibility.","health.healthy.reason":"The session can be read normally","health.healthy.advice":"Refresh the session details. No repair is needed.","health.ready.reason":"Found {n} legacy sources; host format validation passed","health.ready.advice":"Rewrite the sources to a host-supported plugin attribution and generate a new log, preserving messages and the original log. Ensure no other DSH process has the session open.","health.ready-frame.reason":"Found compression frame issues from a previous repair; host validation passed","health.ready-frame.advice":"Correct the compression frames, preserving messages and the original log. Ensure no other DSH process has the session open.","health.blocked.reason":"Automatic repair is currently unavailable","health.blocked.advice":"Expand technical details to see the restriction. Resolve it before diagnosing again.","health.repaired.reason":"Repair complete; the host can read the session","health.repaired.advice":"The original log and archive status are preserved. You can preview or open the session again.","health.published-unreadable.reason":"A new log was generated, but the host could not read it back","health.published-unreadable.advice":"The original log is preserved. Restart DSH and diagnose again. Do not repeatedly repair or delete logs.","health.failed.reason":"The operation did not complete","health.failed.advice":"Expand technical details to inspect the error. Resolve it before diagnosing again."},cs={"health.archived":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u044F","health.unarchived":"\u041D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u044E\u0442 \u0432\u043D\u0438\u043C\u0430\u043D\u0438\u044F","health.heading":"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0430 \u0438 \u0440\u0435\u043C\u043E\u043D\u0442","health.scopeArchived":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0432\u0441\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u0432 \u0441\u043F\u0438\u0441\u043A\u0430.","health.scopeUnarchived":"\u041F\u0440\u043E\u0432\u0435\u0440\u044F\u0435\u0442 \u0432\u0441\u0435 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u0432 \u0441\u043F\u0438\u0441\u043A\u0430. \u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u0437\u0430\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0435\u0441\u0441\u0438\u044E \u043F\u0435\u0440\u0435\u0434 \u0440\u0435\u043C\u043E\u043D\u0442\u043E\u043C.","health.retry":"\u041F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C \u0441\u043D\u043E\u0432\u0430","health.busy":"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430\u2026","health.confirm":"\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C \u0440\u0435\u043C\u043E\u043D\u0442","health.diagnose":"\u0414\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","health.technical":"\u0422\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438","health.notice":"\u0421\u0435\u0441\u0441\u0438\u044F \u043E\u0442\u0440\u0435\u043C\u043E\u043D\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0430. \u0421\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u044B.","health.legacy-source.reason":"\u041D\u043E\u0432\u0430\u044F \u0432\u0435\u0440\u0441\u0438\u044F DSH \u043D\u0435 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u044D\u0442\u043E\u0442 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439","health.legacy-source.advice":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0432\u0435\u0440\u0438\u0442\u044C, \u043C\u043E\u0436\u043D\u043E \u043B\u0438 \u043F\u0440\u0435\u043E\u0431\u0440\u0430\u0437\u043E\u0432\u0430\u0442\u044C \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A.","health.repair-frame.reason":"\u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0438\u0439 \u0440\u0435\u043C\u043E\u043D\u0442 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B \u043D\u0435\u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u044B\u0439 \u0444\u043E\u0440\u043C\u0430\u0442 \u0441\u0436\u0430\u0442\u0438\u044F","health.repair-frame.advice":"\u0417\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443, \u0447\u0442\u043E\u0431\u044B \u0438\u0441\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u043A\u0430\u0434\u0440\u044B \u0441\u0436\u0430\u0442\u0438\u044F, \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0432 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B.","health.missing.reason":"\u041F\u0443\u0442\u044C \u043A \u0436\u0443\u0440\u043D\u0430\u043B\u0443 \u0441\u0435\u0441\u0441\u0438\u0438 \u0438\u043B\u0438 \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u044E \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442","health.missing.advice":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u043A\u0430\u0442\u0430\u043B\u043E\u0433 \u0438 \u0434\u0438\u0441\u043A. \u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u043A\u044D\u0448\u0430 \u043D\u0435 \u0432\u0435\u0440\u043D\u0451\u0442 \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u044E\u0449\u0438\u0435 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","health.permission.reason":"\u041E\u0442\u043A\u0430\u0437\u0430\u043D\u043E \u0432 \u0434\u043E\u0441\u0442\u0443\u043F\u0435 \u043A \u0444\u0430\u0439\u043B\u0430\u043C \u0441\u0435\u0441\u0441\u0438\u0438","health.permission.advice":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043F\u0440\u0430\u0432\u0430 \u043A\u0430\u0442\u0430\u043B\u043E\u0433\u0430, \u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0444\u0430\u0439\u043B\u043E\u0432 \u0438 \u0430\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441, \u0437\u0430\u0442\u0435\u043C \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435.","health.corrupt.reason":"\u0416\u0443\u0440\u043D\u0430\u043B \u0441\u0435\u0441\u0441\u0438\u0438 \u043C\u043E\u0436\u0435\u0442 \u0431\u044B\u0442\u044C \u043F\u043E\u0432\u0440\u0435\u0436\u0434\u0451\u043D \u0438\u043B\u0438 \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u043C","health.corrupt.advice":"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0434\u0438\u0441\u043A \u0438 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0435 \u0444\u0430\u0439\u043B\u044B. \u0421\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u043D\u0435 \u0431\u0443\u0434\u0443\u0442 \u043E\u0431\u0440\u0435\u0437\u0430\u043D\u044B \u0438\u043B\u0438 \u0443\u0434\u0430\u043B\u0435\u043D\u044B \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438.","health.unknown.reason":"\u0421\u0435\u0441\u0441\u0438\u044E \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u043B\u044C\u0437\u044F \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C","health.unknown.advice":"\u0421\u043D\u0430\u0447\u0430\u043B\u0430 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435. \u0415\u0441\u043B\u0438 \u043D\u0435 \u043F\u043E\u043C\u043E\u0436\u0435\u0442, \u0440\u0430\u0441\u043A\u0440\u043E\u0439\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u0434\u043B\u044F \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0441\u043E\u0432\u043C\u0435\u0441\u0442\u0438\u043C\u043E\u0441\u0442\u0438 \u0441 \u0445\u043E\u0441\u0442\u043E\u043C.","health.healthy.reason":"\u0421\u0435\u0441\u0441\u0438\u044F \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044F \u043D\u043E\u0440\u043C\u0430\u043B\u044C\u043D\u043E","health.healthy.advice":"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E \u0441\u0435\u0441\u0441\u0438\u0438. \u0420\u0435\u043C\u043E\u043D\u0442 \u043D\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F.","health.ready.reason":"\u041D\u0430\u0439\u0434\u0435\u043D\u043E \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u043E\u0432: {n}; \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u0445\u043E\u0441\u0442\u0430 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u0430","health.ready.advice":"\u041F\u0435\u0440\u0435\u043F\u0438\u0448\u0438\u0442\u0435 \u0438\u0441\u0442\u043E\u0447\u043D\u0438\u043A\u0438 \u0432 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043C\u0443\u044E \u0445\u043E\u0441\u0442\u043E\u043C \u0430\u0442\u0440\u0438\u0431\u0443\u0446\u0438\u044E \u043F\u043B\u0430\u0433\u0438\u043D\u0430 \u0438 \u0441\u043E\u0437\u0434\u0430\u0439\u0442\u0435 \u043D\u043E\u0432\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B, \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0432 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0438 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0441\u0435\u0441\u0441\u0438\u044E \u043D\u0435 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 DSH.","health.ready-frame.reason":"\u041E\u0431\u043D\u0430\u0440\u0443\u0436\u0435\u043D\u044B \u043F\u0440\u043E\u0431\u043B\u0435\u043C\u044B \u043A\u0430\u0434\u0440\u043E\u0432 \u0441\u0436\u0430\u0442\u0438\u044F \u043E\u0442 \u043F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0435\u0433\u043E \u0440\u0435\u043C\u043E\u043D\u0442\u0430; \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0430 \u0445\u043E\u0441\u0442\u0430 \u043F\u0440\u043E\u0439\u0434\u0435\u043D\u0430","health.ready-frame.advice":"\u0418\u0441\u043F\u0440\u0430\u0432\u044C\u0442\u0435 \u043A\u0430\u0434\u0440\u044B \u0441\u0436\u0430\u0442\u0438\u044F, \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0432 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F \u0438 \u0438\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B. \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044C, \u0447\u0442\u043E \u0441\u0435\u0441\u0441\u0438\u044E \u043D\u0435 \u043E\u0442\u043A\u0440\u044B\u0432\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043E\u0439 \u043F\u0440\u043E\u0446\u0435\u0441\u0441 DSH.","health.blocked.reason":"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u0440\u0435\u043C\u043E\u043D\u0442 \u0441\u0435\u0439\u0447\u0430\u0441 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D","health.blocked.advice":"\u0420\u0430\u0441\u043A\u0440\u043E\u0439\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438, \u0447\u0442\u043E\u0431\u044B \u0443\u0432\u0438\u0434\u0435\u0442\u044C \u043E\u0433\u0440\u0430\u043D\u0438\u0447\u0435\u043D\u0438\u0435. \u0423\u0441\u0442\u0440\u0430\u043D\u0438\u0442\u0435 \u0435\u0433\u043E \u043F\u0435\u0440\u0435\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0439 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u043E\u0439.","health.repaired.reason":"\u0420\u0435\u043C\u043E\u043D\u0442 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D; \u0445\u043E\u0441\u0442 \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","health.repaired.advice":"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u0430\u0440\u0445\u0438\u0432\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B. \u041C\u043E\u0436\u043D\u043E \u0441\u043D\u043E\u0432\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u0438\u043B\u0438 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E.","health.published-unreadable.reason":"\u041D\u043E\u0432\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0441\u043E\u0437\u0434\u0430\u043D, \u043D\u043E \u0445\u043E\u0441\u0442 \u043D\u0435 \u0441\u043C\u043E\u0433 \u0435\u0433\u043E \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C","health.published-unreadable.advice":"\u0418\u0441\u0445\u043E\u0434\u043D\u044B\u0439 \u0436\u0443\u0440\u043D\u0430\u043B \u0441\u043E\u0445\u0440\u0430\u043D\u0451\u043D. \u041F\u0435\u0440\u0435\u0437\u0430\u043F\u0443\u0441\u0442\u0438\u0442\u0435 DSH \u0438 \u043F\u0440\u043E\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u0443 \u0441\u043D\u043E\u0432\u0430. \u041D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u0440\u0435\u043C\u043E\u043D\u0442 \u0438 \u043D\u0435 \u0443\u0434\u0430\u043B\u044F\u0439\u0442\u0435 \u0436\u0443\u0440\u043D\u0430\u043B\u044B.","health.failed.reason":"\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F \u043D\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u0430","health.failed.advice":"\u0420\u0430\u0441\u043A\u0440\u043E\u0439\u0442\u0435 \u0442\u0435\u0445\u043D\u0438\u0447\u0435\u0441\u043A\u0438\u0435 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438, \u0447\u0442\u043E\u0431\u044B \u0438\u0437\u0443\u0447\u0438\u0442\u044C \u043E\u0448\u0438\u0431\u043A\u0443. \u0423\u0441\u0442\u0440\u0430\u043D\u0438\u0442\u0435 \u0435\u0451 \u043F\u0435\u0440\u0435\u0434 \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E\u0439 \u0434\u0438\u0430\u0433\u043D\u043E\u0441\u0442\u0438\u043A\u043E\u0439."};var Rt=t(r=>{if(typeof r!="string"||!r.length||r.length>1024)throw new TypeError("\u4F1A\u8BDD ID \u65E0\u6548");return r},"id"),mr=t((r,o=!1)=>{if(typeof r!="string"||r.length>200||o&&!r.trim())throw new TypeError("\u5173\u952E\u8BCD\u987B\u4E3A 1\uFF5E200 \u4E2A\u5B57\u7B26");return r.trim()},"queryText"),ur={parse(r){let o=we(r);if(!o||!Array.isArray(o.sessionIds)||!o.sessionIds.length||o.sessionIds.length>20)throw new TypeError("\u6BCF\u6B21\u68C0\u7D22\u987B\u5305\u542B 1\uFF5E20 \u4E2A\u4F1A\u8BDD");return{sessionIds:[...new Set(o.sessionIds.map(Rt))],query:mr(o.query,!0)}}},Xa={parse(r){let o=we(r);if(!o)throw new TypeError("\u9884\u89C8\u53C2\u6570\u65E0\u6548");return{sessionId:Rt(o.sessionId),query:mr(o.query??"")}}},_t=t((r,o)=>{if(typeof r!="string"||r.length>o)throw new TypeError("\u8FD4\u56DE\u6587\u672C\u65E0\u6548");return r},"boundedString"),Cn=t(r=>{if(typeof r!="number"||!Number.isSafeInteger(r)||r<0)throw new TypeError("\u6D88\u606F\u5E8F\u53F7\u65E0\u6548");return r},"sequence"),ds={parse(r){let o=we(r);if(!o||!Array.isArray(o.items)||!Array.isArray(o.failures)||o.items.length>20||o.failures.length>20)throw new TypeError("\u68C0\u7D22\u7ED3\u679C\u65E0\u6548");return{items:o.items.map(we).map(d=>({sessionId:Rt(d.sessionId),seq:Cn(d.seq),snippet:_t(d.snippet,400)})),failures:o.failures.map(we).map(d=>({sessionId:Rt(d.sessionId),message:_t(d.message,500)}))}}},Ka={parse(r){let o=we(r);if(!o||!Array.isArray(o.messages)||o.messages.length>8||typeof o.hasEarlier!="boolean"||typeof o.hasLater!="boolean")throw new TypeError("\u9884\u89C8\u7ED3\u679C\u65E0\u6548");return{sessionId:Rt(o.sessionId),hasEarlier:o.hasEarlier,hasLater:o.hasLater,messages:o.messages.map(we).map(d=>{if(typeof d.role!="string"||!["user","assistant"].includes(d.role)||typeof d.truncated!="boolean")throw new TypeError("\u6D88\u606F\u89D2\u8272\u6216\u622A\u65AD\u72B6\u6001\u65E0\u6548");return{seq:Cn(d.seq),role:d.role,text:_t(d.text,2e3),truncated:d.truncated}})}}},$a={parse(r){let o=we(r);if(!o||!Array.isArray(o.sessionIds)||!o.sessionIds.length||o.sessionIds.length>20)throw new TypeError("\u6BCF\u6B21\u987B\u5305\u542B 1\uFF5E20 \u4E2A\u4F1A\u8BDD");return{sessionIds:[...new Set(o.sessionIds.map(Rt))]}}},us={parse(r){let o=we(r);if(!o||!Array.isArray(o.items)||o.items.length>20)throw new TypeError("\u4F1A\u8BDD\u8BE6\u60C5\u65E0\u6548");return{items:o.items.map(we).map(d=>({sessionId:Rt(d.sessionId),...d.createdAt!==void 0?{createdAt:Cn(d.createdAt)}:{},turnCount:d.turnCount===null?null:Cn(d.turnCount),path:d.path===null?null:_t(d.path,32768),error:_t(d.error,500)}))}}};function hs(r,o,d){let y=typeof r=="number"&&Number.isSafeInteger(r)&&r>=0,n=typeof o=="number"&&Number.isSafeInteger(o)&&o>=0;return y!==n?y?-1:1:y&&n?d==="turnsAsc"?r-o:o-r:0}t(hs,"compareTurnCounts");async function gr(r,o=globalThis.navigator?.clipboard){if(typeof r!="string"||!r)throw Object.assign(new Error("\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9"),{code:"copy.empty"});if(!o?.writeText)throw Object.assign(new Error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u526A\u8D34\u677F\uFF0C\u8BF7\u5728 HTTPS \u6216\u672C\u673A\u5730\u5740\u4E2D\u6253\u5F00\u9875\u9762"),{code:"copy.unavailable"});try{await o.writeText(r)}catch{throw Object.assign(new Error("\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u5141\u8BB8\u6D4F\u89C8\u5668\u8BBF\u95EE\u526A\u8D34\u677F\u540E\u91CD\u8BD5"),{code:"copy.denied"})}}t(gr,"copySessionText");function fr(){let r=t((d,y)=>({mode:"strict",typeSymbol:`@michengai/dsh-archive-manager/types#${d}`,create:t(()=>y,"create"),schema:y}),"codec");return[["searchSessionContent",ur,ds],["diagnoseSession",hr,pr],["repairSession",hr,pr],["sessionDetails",$a,us],["searchArchivedContent",ur,ds],["previewArchivedSession",Xa,Ka]].map(([d,y,n])=>({id:`@michengai/dsh-archive-manager#workspaceRegistry/${d}`,service:"workspaceRegistry",namespace:"workspaceRegistry",method:d,invocation:{kind:"direct"},parameters:[{name:"input",wire:"input",source:"json",codec:r(d+"Input",y)}],result:r(d+"Result",n),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}}))}t(fr,"discoveryInvocations");function vr(r,o){let d=o?.trim().toLowerCase();if(!d)return null;let y=r.toLowerCase().indexOf(d);if(y<0)return null;let n=0,i=0,c;for(let O of r){let T=i+O.toLowerCase().length;if(c===void 0&&T>y&&(c=n),n+=O.length,T>=y+d.length)return{start:c??n,end:n};i=T}return null}t(vr,"findTextRange");function yr(r,o){return[...new Set(r)].map(d=>o[d]??{id:d})}t(yr,"sessionDetailCandidates");function Vn(r,o=!1){if(!/^\d{4}-\d{2}-\d{2}$/.test(r))return NaN;let[d,y,n]=r.split("-").map(Number),i=new Date(d,y-1,n);return i.getFullYear()!==d||i.getMonth()!==y-1||i.getDate()!==n?NaN:(o&&i.setDate(i.getDate()+1),i.getTime())}t(Vn,"dayBoundary");function ps(r,o){return(!r||Number.isFinite(Vn(r)))&&(!o||Number.isFinite(Vn(o)))&&(!r||!o||r<=o)}t(ps,"validUpdatedRange");function wr(r,o,d){if(!ps(o,d))return!1;if(!o&&!d)return!0;let y=typeof r=="number"?r:Date.parse(r??"");return Number.isFinite(y)&&(!o||y>=Vn(o))&&(!d||y<Vn(d,!0))}t(wr,"matchesUpdatedRange");async function br(r,o,d,{signal:y,onProgress:n}={}){let i=[],c=[],O=[...new Set(r)],T=t(()=>{if(y?.aborted)throw new Error("\u641C\u7D22\u5DF2\u53D6\u6D88")},"check");for(let B=0;B<O.length;B+=20){T();let I=ds.parse(await d({sessionIds:O.slice(B,B+20),query:o}));T(),i.push(...I.items),c.push(...I.failures),n?.({done:Math.min(B+20,O.length),total:O.length,items:[...i],failures:[...c]})}return T(),{items:i,failures:c}}t(br,"searchArchiveBatches");function xr(r){let o=et(r),d={"repair-frame":["\u65E7\u7248\u4FEE\u590D\u751F\u6210\u7684\u538B\u7F29\u683C\u5F0F\u4E0D\u7B26\u5408\u5BBF\u4E3B\u8981\u6C42","\u91CD\u65B0\u8BCA\u65AD\u53EF\u7EA0\u6B63\u538B\u7F29\u5E27\u683C\u5F0F\uFF0C\u539F\u59CB\u65E5\u5FD7\u4FDD\u6301\u4E0D\u53D8\u3002"],"legacy-source":["\u65E7\u7248\u6D88\u606F\u6765\u6E90\u4E0D\u53D7\u65B0\u7248 DSH \u652F\u6301","\u8FD0\u884C\u8BCA\u65AD\uFF0C\u68C0\u67E5\u662F\u5426\u4E3A\u53EF\u8F6C\u6362\u7684\u65E7\u7248\u6765\u6E90\u3002"],missing:["\u4F1A\u8BDD\u65E5\u5FD7\u6216\u9644\u4EF6\u8DEF\u5F84\u4E0D\u5B58\u5728","\u68C0\u67E5\u539F\u76EE\u5F55\u6216\u78C1\u76D8\u662F\u5426\u53EF\u7528\uFF1B\u7F3A\u5931\u6B63\u6587\u4E0D\u80FD\u901A\u8FC7\u91CD\u5EFA\u7F13\u5B58\u6062\u590D\u3002"],permission:["\u6CA1\u6709\u6743\u9650\u8BFB\u53D6\u4F1A\u8BDD\u6587\u4EF6","\u68C0\u67E5\u76EE\u5F55\u8BBF\u95EE\u6743\u9650\u3001\u6587\u4EF6\u5360\u7528\u4E0E\u5B89\u5168\u8F6F\u4EF6\u9650\u5236\uFF0C\u518D\u91CD\u8BD5\u3002"],corrupt:["\u4F1A\u8BDD\u65E5\u5FD7\u53EF\u80FD\u635F\u574F\u6216\u672A\u5B8C\u6574\u5199\u5165","\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u5220\u9664\u6D88\u606F\u3002"],unknown:["\u4F1A\u8BDD\u6682\u65F6\u65E0\u6CD5\u8BFB\u53D6","\u5148\u91CD\u8BD5\uFF1B\u4ECD\u5931\u8D25\u65F6\u5C55\u5F00\u6280\u672F\u8BE6\u60C5\uFF0C\u6309\u5177\u4F53\u9519\u8BEF\u68C0\u67E5\u5BBF\u4E3B\u517C\u5BB9\u6027\u3002"]},y={ENOENT:"missing",EACCES:"permission",EPERM:"permission"},n=[["repair-frame",/first frame is not exactly one header line/],["legacy-source",/unclassified message source/],["missing",/ENOENT|不存在|not found/i],["permission",/EACCES|EPERM|permission/i],["corrupt",/corrupt|JSON|incomplete|truncat|损坏|SessionFormatError/i]],i=cn(r),c=r&&typeof r=="object"&&"name"in r?String(r.name??""):"",O=typeof i=="string"?y[i]??i:"";if(Object.hasOwn(d,O)){let[M,G]=d[O];return{code:O,reason:M,advice:G}}if(/requires toolCallId matching its tool source|tool call id requires a nonempty string/i.test(o))return{code:"corrupt",reason:"\u65E5\u5FD7\u5C3E\u90E8\u6709\u672A\u95ED\u5408\u7684\u5DE5\u5177\u8C03\u7528\uFF0C\u4E14 toolCallId \u4E3A\u7A7A",advice:"\u4FDD\u7559\u73B0\u6709\u65E5\u5FD7\uFF0C\u68C0\u67E5\u78C1\u76D8\u548C\u539F\u59CB\u6587\u4EF6\uFF1B\u4E0D\u81EA\u52A8\u622A\u65AD\u6216\u6539\u5199\u65E5\u5FD7\u3002"};let I=(c==="SessionFormatError"||c==="SessionPersistenceCorruptionError"?"corrupt":void 0)??n.find(([,M])=>M.test(o))?.[0]??"unknown",[Z,R]=d[I];return{code:I,reason:Z,advice:R}}t(xr,"classifySessionError");var hr={parse(r){let o=we(r),d=Rt(o?.sessionId);if(o?.token!==void 0&&(typeof o.token!="string"||!/^[a-f0-9]{64}$/.test(o.token)))throw new TypeError("\u4FEE\u590D\u51ED\u636E\u65E0\u6548");return{sessionId:d,...o.token!==void 0?{token:o.token}:{}}}},pr={parse(r){let o=we(r);if(!o||typeof o.repairable!="boolean"||typeof o.repaired!="boolean")throw new TypeError("\u8BCA\u65AD\u7ED3\u679C\u65E0\u6548");return{...o.code!==void 0?{code:_t(o.code,64)}:{},sessionId:Rt(o.sessionId),repairable:o.repairable,repaired:o.repaired,reason:_t(o.reason,1e3),advice:_t(o.advice,1e3),token:_t(o.token??"",64),count:Cn(o.count??0)}}};var Ya=t((r,o={})=>Object.entries(o).reduce((d,[y,n])=>d.replaceAll("{"+y+"}",String(n)),Rn[r]??r),"defaultT"),Za=`
286
11
  .dsham_health{margin:0 0 16px;font-size:13px;line-height:1.6;color:var(--dsw-alias-label-primary);--health-accent:var(--dsw-alias-state-business-primary,#507fe5);--health-warning:var(--dsw-alias-state-warn-label)}
287
12
  .dsham_health p{margin:0}.dsham_healthPanel{border:1px solid var(--dsw-alias-border-l2);border-radius:12px;background:var(--dsw-alias-bg-layer-2);overflow:hidden}
288
13
  .dsham_healthSummary{display:flex;align-items:center;gap:10px;min-height:52px;padding:12px 16px;list-style:none;cursor:pointer;box-sizing:border-box}
@@ -300,800 +25,17 @@ ${s}
300
25
  .dsham_health button:focus-visible,.dsham_health summary:focus-visible{outline:2px solid var(--health-accent);outline-offset:3px}.dsham_health svg{flex:none}
301
26
  @media(max-width:520px){.dsham_healthSummary{padding:12px}.dsham_healthSummaryHint{display:none}.dsham_healthBody{padding:10px}.dsham_healthItem{padding:12px}.dsham_healthRow{align-items:flex-start;flex-wrap:wrap;gap:12px}.dsham_healthCopy{flex-basis:65%}.dsham_healthIntro{align-items:flex-start}.dsham_healthIntro>span{flex:1}}
302
27
  @media(prefers-reduced-motion:reduce){.dsham_health *{transition:none!important}}
303
- `;function XO(e,t={}){let r=e.createElement,n=o((a,l)=>t[a]?r("span",{className:l,"aria-hidden":!0},r(t[a],{width:16,height:16})):null,"icon");function i(a,l,c){let d=l.primary?"primary":l.subtle?"text":"default";return r(_n,{shape:"round",type:d,disabled:l.disabled,onClick:l.onClick,icon:c??void 0},a)}o(i,"actionButton");function s({title:a,glyph:l,children:c}){let[d,u]=e.useState(!1);return r(nd,{className:"dsham_healthTech",title:r(e.Fragment,null,l,a),open:d,onToggle:o(()=>u(m=>!m),"onToggle")},c)}return o(s,"TechnicalDetails"),o(function({items:l,sessions:c,t:d=a5,isArchived:u=!0,diagnoseSession:m,repairSession:p,retry:g,pending:h}){let[b,v]=e.useState({}),[x,S]=e.useState(""),[y,C]=e.useState(""),w=l.filter(R=>R.error),E=o(async(R,$)=>{if(!x){S(R.sessionId),C("");try{let I=await($&&p?p({sessionId:R.sessionId,token:b[R.sessionId].token}):m({sessionId:R.sessionId}));v(T=>({...T,[R.sessionId]:I})),I.repaired&&(C(!0),g())}catch(I){v(T=>({...T,[R.sessionId]:{repairable:!1,code:"failed",reason:"",advice:xn(I).slice(0,1e3)}}))}finally{S("")}}},"run");return r("div",{className:"dsham_health"},r("style",null,l5),y&&r("p",{role:"status",className:"dsham_healthNotice"},n("check"),d("health.notice")),w.length>0&&r("details",{className:"dsham_healthPanel"},r("summary",{className:"dsham_healthSummary"},n("warning","dsham_healthIcon"),r("span",{className:"dsham_healthSummaryText"},d(u?"health.archived":"health.unarchived"),r("span",{className:"dsham_healthCount"},w.length)),r("span",{className:"dsham_healthSummaryHint"},d("health.heading")),n("chevron","dsham_healthChevron")),r("div",{className:"dsham_healthBody"},r("div",{className:"dsham_healthIntro"},r("span",null,d(u?"health.scopeArchived":"health.scopeUnarchived")),i(d("health.retry"),{subtle:!0,disabled:h||!!x,onClick:g},n("refresh"))),w.map(R=>{let $=GO(R.error),I=b[R.sessionId],T=I?Object.hasOwn(pm,"health."+I.code+".reason")?I.code:I.repaired?"repaired":I.repairable?"ready":"blocked":$.code,M=c.find(k=>k.id===R.sessionId),N=I?.repairable&&p;return r("section",{key:R.sessionId,className:"dsham_healthItem","aria-busy":x===R.sessionId},r("div",{className:"dsham_healthRow"},r("div",{className:"dsham_healthCopy"},r("strong",{className:"dsham_healthTitle"},M?.displayTitle||M?.title||R.sessionId),r("div",{className:"dsham_healthState","data-state":I?.repaired?"success":N?"ready":"pending",role:I?"status":void 0},n(I?.repaired?"check":"info"),d("health."+T+".reason",{n:I?.count??0}))),m&&i(d(x===R.sessionId?"health.busy":N?"health.confirm":"health.diagnose"),{primary:!!N,disabled:!!x,onClick:o(()=>E(R,!!N),"onClick")},n(x===R.sessionId?"refresh":N?"check":"search"))),I&&r("p",{className:"dsham_healthAdvice"},d("health."+T+".advice")),!I&&$.code!=="legacy-source"&&r("p",{className:"dsham_healthAdvice"},d("health."+T+".advice")),r(s,{title:d("health.technical"),glyph:n("chevron","dsham_healthChevron")},r("div",{className:"dsham_healthLog"},r("p",null,R.sessionId),r("p",null,R.error),I?.reason&&r("p",null,I.reason),I?.advice&&r("p",null,I.advice))))}))))},"SessionHealthPanel")}o(XO,"createSessionHealthPanel");var vh=Ti(Vg(),1),LUe=Ti(YO(),1);function KO(e){let t=e.createElement;function r({text:m,query:p=""}){let g=jO(m,p);return g?t(e.Fragment,null,m.slice(0,g.start),t("mark",null,m.slice(g.start,g.end)),m.slice(g.end)):m}o(r,"HighlightedText");function n(m,p,g,h){let b=JSON.stringify(m),v=JSON.stringify([b,p]),[x,S]=e.useState(0),[y,C]=e.useState({key:"",status:"idle",items:[],failures:[]});return e.useEffect(()=>{if(!g||!p.trim()||!h)return;let E=new AbortController;C({key:v,status:"loading",items:[],failures:[],done:0,total:m.length});let R=setTimeout(()=>{qO(JSON.parse(b),p,h,{signal:E.signal,onProgress:o($=>{E.signal.aborted||C({key:v,status:"loading",...$})},"onProgress")}).then($=>{E.signal.aborted||C({key:v,status:"ready",done:m.length,total:m.length,...$})}).catch($=>{E.signal.aborted||C(I=>({...I,key:v,status:"error",error:xn($)}))})},350);return()=>{E.abort(),clearTimeout(R)}},[b,p,g,h,x]),{...g&&p.trim()&&h?y.key===v?y:{key:v,status:"loading",items:[],failures:[],done:0,total:m.length}:{status:"idle",items:[],failures:[]},retry:o(()=>S(E=>E+1),"retry")}}o(n,"useArchiveSearch");function i(m,p,g,h=!1){let b=JSON.stringify(m.map(E=>[E.id,E.updatedAt])),[v,x]=e.useState(0),[S,y]=e.useState({key:"",items:[],pending:!1});e.useEffect(()=>{if(!p||h)return;let E=!0,R=[...new Set(JSON.parse(b).map(I=>I[0]))];return y({key:b,items:[],pending:R.length>0}),o(async()=>{let I=[];for(let T=0;T<R.length&&E;T+=20){let M=R.slice(T,T+20);try{let N=qC.parse(await p({sessionIds:M})),k=new Map(N.items.map(D=>[D.sessionId,D]));I.push(...M.map(D=>k.get(D)??{sessionId:D,turnCount:null,path:null,error:"",errorKey:"details.notReturned"}))}catch(N){I.push(...M.map(k=>({sessionId:k,turnCount:null,path:null,error:xn(N)})))}E&&y({key:b,items:[...I],pending:T+20<R.length})}},"load")(),()=>{E=!1}},[b,p,v,h]);let C=p&&S.key===b?S:{items:[],pending:!!(p&&m.length)},w=C.items.map(E=>E.errorKey?{...E,error:g?g(E.errorKey):E.errorKey}:E);return{...C,items:w,byId:Object.fromEntries(w.map(E=>[E.sessionId,E])),retry:o(()=>x(E=>E+1),"retry")}}o(i,"useSessionDetails");function s(m,p){let[g,h]=e.useState(null),[b,v]=e.useState({status:"idle"}),[x,S]=e.useState(0),y=g,C=g&&p.includes(g.session.id);return e.useEffect(()=>{g&&!C&&h(null)},[g,C]),e.useEffect(()=>{if(!C||typeof window>"u")return;let w=o(E=>{E.key==="Escape"&&(E.preventDefault(),E.stopPropagation(),E.stopImmediatePropagation(),h(null))},"onKeyDown");return window.addEventListener("keydown",w,!0),()=>window.removeEventListener("keydown",w,!0)},[C]),e.useEffect(()=>{if(!g||!C||!m)return;let w=!0;return v({key:y,status:"loading"}),Promise.resolve().then(()=>m({sessionId:g.session.id,query:g.query})).then(E=>{w&&v({key:y,status:"ready",value:E})}).catch(E=>{w&&v({key:y,status:"error",error:xn(E)})}),()=>{w=!1}},[y,C,m,x]),{target:C?g:null,...b.key===y?b:{status:"loading"},open:o((w,E="")=>h({session:w,query:E}),"open"),close:o(()=>h(null),"close"),retry:o(()=>S(w=>w+1),"retry")}}o(s,"useArchivePreview");function a({title:m,failures:p,separator:g}){let[h,b]=e.useState(!1),v=t("ul",null,p.map(x=>t("li",{key:x.sessionId},x.sessionId,g,x.message)));return t(nd,{title:m,open:h,onToggle:o(()=>b(x=>!x),"onToggle")},v)}o(a,"FailureDetails");function l(m,p){return t(_n,{shape:"round",...p},m)}o(l,"textButton");function c({t:m,from:p,to:g,onFrom:h,onTo:b,invalid:v,onClear:x}){vh.default.locale(typeof document<"u"&&document.documentElement.lang.toLowerCase().startsWith("en")?"en":"zh-cn");let S=p===""?null:(0,vh.default)(p),y=g===""?null:(0,vh.default)(g);return t("div",{className:"dsham_dateFilter"},t(_O,{allowClear:!0,format:"YYYY-MM-DD",inputReadOnly:!0,status:v?"error":"","aria-label":m("discovery.date"),placeholder:[m("discovery.from"),m("discovery.to")],value:[S,y],onChange:o(C=>{if(C==null||C[0]==null&&C[1]==null){x();return}h(C[0]==null?"":C[0].format("YYYY-MM-DD")),b(C[1]==null?"":C[1].format("YYYY-MM-DD"))},"onChange")}),v?t("p",{role:"alert"},m("discovery.invalidDate")):null)}o(c,"DiscoveryFilters");function d({state:m,t:p}){return m.status==="idle"?null:t("div",{className:"dsham_discoveryStatus",role:"status","aria-live":"polite"},t("p",null,p(m.status==="loading"?"discovery.searching":m.status==="error"?"discovery.searchError":"discovery.searched",{done:m.done??0,total:m.total??0})),m.status==="error"&&t("p",null,m.error),m.failures.length>0&&t(a,{title:p("discovery.failed",{n:m.failures.length}),failures:m.failures,separator:p("common.separator")}),(m.status==="error"||m.status==="ready"&&m.failures.length>0)&&l(p("discovery.retry"),{onClick:m.retry}))}o(d,"SearchStatus");function u({preview:m,t:p,MarkdownText:g}){let[h,b]=e.useState(!1);if(m.status==="loading")return t("p",{role:"status"},p("discovery.loading"));if(m.status==="error")return t("div",null,t("p",{role:"alert"},m.error),l(p("discovery.retry"),{onClick:m.retry}));let v=m.value;return v?t("div",{className:"dsham_previewMessages"},t("div",{className:"dsham_previewToolbar"},t("span",{title:p("discovery.previewHint")},p("discovery.readOnly")," \xB7 ",p("discovery.messageCount",{n:v.messages.length})),g&&t(hh,{"aria-label":p("discovery.displayMode"),value:h?"raw":"formatted",options:[{value:"formatted",label:p("discovery.formatted")},{value:"raw",label:p("discovery.raw")}],onChange:o(x=>b(x==="raw"),"onChange")})),v.hasEarlier&&t("p",null,p("discovery.earlier")),!v.messages.length&&t("p",null,p("discovery.empty")),v.messages.map(x=>t("article",{key:x.seq,className:"dsham_previewMessage"},t("div",{className:"dsham_previewRole","data-role":x.role},t("span",{"aria-hidden":!0},p(x.role==="user"?"discovery.you":"discovery.ai")),t("strong",null,p("discovery."+x.role))),h||!g?t("pre",{className:"dsham_previewRaw"},t(r,{text:x.text,query:m.target?.query})):t(g,{text:x.text,streaming:!1,labels:{code:{copyLabel:p("discovery.copyCode"),copiedLabel:p("details.copied")},footnotes:p("discovery.footnotes")}}),x.truncated&&t("small",null,p("discovery.truncated")))),v.hasLater&&t("p",null,p("discovery.later"))):null}return o(u,"PreviewContent"),{HighlightedText:r,useSessionDetails:i,useArchiveSearch:n,useArchivePreview:s,DiscoveryFilters:c,SearchStatus:d,PreviewContent:u}}o(KO,"createDiscoveryTools");var QO=".dsham_dateFilter{flex:1 1 140px;width:auto;min-width:0;max-width:none;display:flex;flex-direction:column;overflow:hidden}.dsham_dateFilter .ant-picker{width:100%;min-width:0}.dsham_dateFilter p{margin:4px 0 0;font-size:12px}.dsham_discoveryStatus{font-size:12px;margin-bottom:12px;overflow-wrap:anywhere}.dsham_settingsSnippet{display:block;width:100%;padding:0;margin:4px 0 0;border:0;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.dsham_previewMessages{max-height:65vh;overflow:auto;overflow-wrap:anywhere;padding-right:8px}.dsham_previewToolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;color:var(--dsw-alias-label-secondary);font-size:12px}.dsham_previewRole{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:13px}.dsham_previewRole>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--dsw-alias-bg-layer-3);font-size:11px}.dsham_previewRole[data-role=user]>span{color:var(--dsw-alias-state-business-primary)}.dsham_previewRaw{white-space:pre-wrap;font:13px/1.8 ui-monospace,monospace;overflow-wrap:anywhere}.dsham_previewMessage pre:not(.dsham_previewRaw){white-space:pre;overflow-x:auto;max-width:100%}.dsham_previewMessage table{display:block;max-width:100%;overflow-x:auto}.dsham_previewMessage img{max-width:100%}@media(max-width:520px){.dsham_previewToolbar{align-items:flex-start;flex-wrap:wrap}}.dsham_previewMessage{padding:18px 0;border-bottom:1px solid var(--dsw-alias-border-l2)}.dsham_previewMessage p{font-size:14px;line-height:1.8}.dsham_previewHint,.dsham_previewMessage small{color:var(--dsw-alias-label-secondary);font-size:12px}.dsham_settings mark,.dsham_previewMessages mark{background:var(--dsw-alias-state-warn-tertiary);color:inherit;border-radius:2px}.dsham_settingsSnippet:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}",ZO={"common.separator":"\uFF1A","details.notReturned":"\u5BBF\u4E3B\u672A\u8FD4\u56DE\u4F1A\u8BDD\u8BE6\u60C5","copy.empty":"\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9","copy.unavailable":"\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u526A\u8D34\u677F\uFF0C\u8BF7\u5728 HTTPS \u6216\u672C\u673A\u5730\u5740\u4E2D\u6253\u5F00\u9875\u9762","copy.denied":"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u5141\u8BB8\u6D4F\u89C8\u5668\u8BBF\u95EE\u526A\u8D34\u677F\u540E\u91CD\u8BD5","discovery.you":"\u4F60","discovery.ai":"AI","discovery.readOnly":"\u53EA\u8BFB\u9884\u89C8","discovery.messageCount":"\u672C\u6B21\u663E\u793A {n} \u6761\u6D88\u606F","discovery.displayMode":"\u663E\u793A\u65B9\u5F0F","discovery.formatted":"\u6392\u7248","discovery.raw":"\u539F\u6587\u4E0E\u9AD8\u4EAE","discovery.copyCode":"\u590D\u5236\u4EE3\u7801","discovery.footnotes":"\u6CE8\u91CA","details.turns":"{n} \u8F6E","details.unknown":"\u8F6E\u6B21\u672A\u77E5","details.pending":"\u8F6E\u6B21\u8BFB\u53D6\u4E2D","details.hint":"\u6309\u7528\u6237\u63D0\u4EA4\u6D88\u606F\u6570\u7EDF\u8BA1\uFF0C\u4E0D\u542B\u5DE5\u5177\u8C03\u7528\u548C\u63D2\u4EF6\u6CE8\u5165","details.more":"\u8F6E\u6B21\u6700\u591A","details.less":"\u8F6E\u6B21\u6700\u5C11","details.failed":"{n} \u6761\u4F1A\u8BDD\u8BE6\u60C5\u8BFB\u53D6\u5931\u8D25","details.copyId":"\u590D\u5236\u4F1A\u8BDD ID","details.copyPath":"\u590D\u5236\u4F1A\u8BDD\u8DEF\u5F84","details.copied":"\u5DF2\u590D\u5236","details.noPath":"\u5BBF\u4E3B\u672A\u63D0\u4F9B\u53EF\u590D\u5236\u7684\u4F1A\u8BDD\u8DEF\u5F84","discovery.date":"\u65E5\u671F","discovery.dateActive":"\u65E5\u671F\xB7\u5DF2\u9009","discovery.clearDate":"\u6E05\u9664\u65E5\u671F","discovery.active":"\u5DF2\u542F\u7528","discovery.scope":"\u67E5\u627E\u8303\u56F4","discovery.titleOnly":"\u4EC5\u6807\u9898","discovery.titleAndContent":"\u6807\u9898\u4E0E\u6B63\u6587","discovery.from":"\u66F4\u65B0\u65F6\u95F4\u4ECE","discovery.to":"\u81F3","discovery.clear":"\u6E05\u9664\u6761\u4EF6","discovery.invalidDate":"\u5F00\u59CB\u65E5\u671F\u4E0D\u80FD\u665A\u4E8E\u7ED3\u675F\u65E5\u671F\uFF0C\u8BF7\u68C0\u67E5\u65E5\u671F\u8303\u56F4\u3002","discovery.searching":"\u6B63\u5728\u68C0\u7D22\u6B63\u6587\uFF1A{done} / {total}","discovery.searched":"\u6B63\u6587\u68C0\u7D22\u5B8C\u6210\uFF1A{done} / {total}","discovery.searchError":"\u6B63\u6587\u68C0\u7D22\u672A\u5B8C\u6210\uFF0C\u5F53\u524D\u7ED3\u679C\u53EF\u80FD\u4E0D\u5B8C\u6574\u3002","discovery.failed":"{n} \u6761\u4F1A\u8BDD\u8BFB\u53D6\u5931\u8D25","discovery.retry":"\u91CD\u8BD5","discovery.preview":"\u5FEB\u901F\u9884\u89C8","discovery.loading":"\u6B63\u5728\u8BFB\u53D6\u4F1A\u8BDD\u2026","discovery.previewHint":"\u53EA\u8BFB\u9884\u89C8\u539F\u59CB\u5BF9\u8BDD\u6587\u672C\uFF0C\u4E0D\u6062\u590D\u4F1A\u8BDD\uFF1B\u4E0D\u542B\u5DE5\u5177\u8F93\u51FA\u3001\u9644\u4EF6\u3001\u63A8\u7406\u548C\u7CFB\u7EDF\u5185\u5BB9\u3002","discovery.earlier":"\u524D\u9762\u8FD8\u6709\u6D88\u606F\uFF0C\u53EF\u6253\u5F00\u5B8C\u6574\u4F1A\u8BDD\u67E5\u770B\u3002","discovery.later":"\u540E\u9762\u8FD8\u6709\u6D88\u606F\uFF0C\u53EF\u6253\u5F00\u5B8C\u6574\u4F1A\u8BDD\u67E5\u770B\u3002","discovery.empty":"\u6CA1\u6709\u53EF\u9884\u89C8\u7684\u7528\u6237\u6216\u52A9\u624B\u6587\u672C\u3002","discovery.truncated":"\u672C\u6761\u4EC5\u663E\u793A\u90E8\u5206\u5185\u5BB9\u3002","discovery.user":"\u7528\u6237","discovery.assistant":"\u52A9\u624B","discovery.openFull":"\u6253\u5F00\u5B8C\u6574\u4F1A\u8BDD","discovery.searchPlaceholder":"\u641C\u7D22\u6807\u9898\u6216\u6B63\u6587"},JO={"common.separator":": ","details.notReturned":"The host did not return session details","copy.empty":"Nothing to copy","copy.unavailable":"Clipboard unavailable. Open the page over HTTPS or localhost.","copy.denied":"Copy failed. Allow clipboard access and retry.","discovery.you":"You","discovery.ai":"AI","discovery.readOnly":"Read-only preview","discovery.messageCount":"Showing {n} messages","discovery.displayMode":"Display mode","discovery.formatted":"Formatted","discovery.raw":"Source and highlights","discovery.copyCode":"Copy code","discovery.footnotes":"Footnotes","details.turns":"{n} turns","details.unknown":"Unknown turns","details.pending":"Loading turns","details.hint":"User submissions; excludes tool calls and injected messages","details.more":"Most turns","details.less":"Fewest turns","details.failed":"Could not read turns for {n} sessions","details.copyId":"Copy session ID","details.copyPath":"Copy session path","details.copied":"Copied","details.noPath":"The host did not provide a session path","discovery.date":"Date","discovery.dateActive":"Date \xB7 Set","discovery.clearDate":"Clear dates","discovery.active":"Active","discovery.scope":"Search in","discovery.titleOnly":"Titles","discovery.titleAndContent":"Titles and content","discovery.from":"Updated from","discovery.to":"To","discovery.clear":"Clear filters","discovery.invalidDate":"Check the date range: the start must not be after the end.","discovery.searching":"Searching content: {done} / {total}","discovery.searched":"Content search complete: {done} / {total}","discovery.searchError":"Content search is incomplete; results may be missing.","discovery.failed":"Could not read {n} conversations","discovery.retry":"Retry","discovery.preview":"Quick preview","discovery.loading":"Reading conversation\u2026","discovery.previewHint":"Read-only original conversation text; keeps the conversation archived. Excludes tools, attachments, reasoning and system content.","discovery.earlier":"More messages before this preview. Open the full conversation to read them.","discovery.later":"More messages after this preview. Open the full conversation to read them.","discovery.empty":"No user or assistant text to preview.","discovery.truncated":"Only part of this message is shown.","discovery.user":"User","discovery.assistant":"Assistant","discovery.openFull":"Open full conversation","discovery.searchPlaceholder":"Search titles or content"},ek={"common.separator":": ","details.notReturned":"\u0425\u043E\u0441\u0442 \u043D\u0435 \u0432\u0435\u0440\u043D\u0443\u043B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E \u0441\u0435\u0441\u0441\u0438\u0438","copy.empty":"\u041D\u0435\u0447\u0435\u0433\u043E \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C","copy.unavailable":"\u0411\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u043F\u043E HTTPS \u0438\u043B\u0438 localhost.","copy.denied":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0431\u0443\u0444\u0435\u0440\u0443 \u043E\u0431\u043C\u0435\u043D\u0430 \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435.","discovery.you":"\u0412\u044B","discovery.ai":"\u0418\u0418","discovery.readOnly":"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F","discovery.messageCount":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439: {n}","discovery.displayMode":"\u0420\u0435\u0436\u0438\u043C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","discovery.formatted":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043E","discovery.raw":"\u0418\u0441\u0445\u043E\u0434\u043D\u0438\u043A \u0438 \u043F\u043E\u0434\u0441\u0432\u0435\u0442\u043A\u0430","discovery.copyCode":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434","discovery.footnotes":"\u0421\u043D\u043E\u0441\u043A\u0438","details.turns":"{n} \u0445\u043E\u0434\u043E\u0432","details.unknown":"\u0425\u043E\u0434\u043E\u0432 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E","details.pending":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0445\u043E\u0434\u043E\u0432","details.hint":"\u041F\u043E \u0447\u0438\u0441\u043B\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F; \u0431\u0435\u0437 \u0432\u044B\u0437\u043E\u0432\u043E\u0432 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u0438\u043D\u044A\u0435\u043A\u0446\u0438\u0439 \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u0432","details.more":"\u0411\u043E\u043B\u044C\u0448\u0435 \u0445\u043E\u0434\u043E\u0432","details.less":"\u041C\u0435\u043D\u044C\u0448\u0435 \u0445\u043E\u0434\u043E\u0432","details.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0445\u043E\u0434\u044B \u0434\u043B\u044F {n} \u0441\u0435\u0441\u0441\u0438\u0439","details.copyId":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C ID \u0441\u0435\u0441\u0441\u0438\u0438","details.copyPath":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0443\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u0438","details.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","details.noPath":"\u0425\u043E\u0441\u0442 \u043D\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u043F\u0443\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u0438","discovery.date":"\u0414\u0430\u0442\u0430","discovery.dateActive":"\u0414\u0430\u0442\u0430 \xB7 \u0412\u044B\u0431\u0440\u0430\u043D\u0430","discovery.clearDate":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0434\u0430\u0442\u044B","discovery.active":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E","discovery.scope":"\u0418\u0441\u043A\u0430\u0442\u044C \u0432","discovery.titleOnly":"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u044F","discovery.titleAndContent":"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0438 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435","discovery.from":"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0441","discovery.to":"\u041F\u043E","discovery.clear":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B","discovery.invalidDate":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D \u0434\u0430\u0442: \u043D\u0430\u0447\u0430\u043B\u043E \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043F\u043E\u0437\u0436\u0435 \u043A\u043E\u043D\u0446\u0430.","discovery.searching":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443: {done} / {total}","discovery.searched":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D: {done} / {total}","discovery.searchError":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443 \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u0439; \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u043C\u0438.","discovery.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C {n} \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u043E\u0432","discovery.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","discovery.preview":"\u0411\u044B\u0441\u0442\u0440\u044B\u0439 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440","discovery.loading":"\u0427\u0442\u0435\u043D\u0438\u0435 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430\u2026","discovery.previewHint":"\u0422\u043E\u043B\u044C\u043A\u043E \u0447\u0442\u0435\u043D\u0438\u0435 \u0438\u0441\u0445\u043E\u0434\u043D\u043E\u0433\u043E \u0442\u0435\u043A\u0441\u0442\u0430 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430; \u0441\u0435\u0441\u0441\u0438\u044F \u043E\u0441\u0442\u0430\u0451\u0442\u0441\u044F \u0432 \u0430\u0440\u0445\u0438\u0432\u0435. \u0411\u0435\u0437 \u0432\u044B\u0432\u043E\u0434\u0430 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u0439, \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043D\u0438\u0439 \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u043E\u0433\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0433\u043E.","discovery.earlier":"\u041F\u0435\u0440\u0435\u0434 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u043E\u043C \u0435\u0441\u0442\u044C \u0435\u0449\u0451 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440, \u0447\u0442\u043E\u0431\u044B \u0438\u0445 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C.","discovery.later":"\u041F\u043E\u0441\u043B\u0435 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0435\u0441\u0442\u044C \u0435\u0449\u0451 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440, \u0447\u0442\u043E\u0431\u044B \u0438\u0445 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C.","discovery.empty":"\u041D\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438\u043B\u0438 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442\u0430 \u0434\u043B\u044F \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430.","discovery.truncated":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u0430 \u0442\u043E\u043B\u044C\u043A\u043E \u0447\u0430\u0441\u0442\u044C \u044D\u0442\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","discovery.user":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C","discovery.assistant":"\u0410\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442","discovery.openFull":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u043B\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440","discovery.searchPlaceholder":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F\u043C \u0438\u043B\u0438 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443"};var Pa=class extends Error{static{o(this,"ArchiveNavigationError")}code;constructor(t){super(t),this.name="ArchiveNavigationError",this.code=t}};function tk(e,t){return e instanceof Pa?t(`archives.${e.code}`):xn(e)}o(tk,"formatArchiveNavigationError");function c5(e,t){if(typeof e?.retainInfo!="function")return;let r=e.retainInfo(t),n=r&&typeof r=="object"&&"getSnapshot"in r&&typeof r.getSnapshot=="function"?r.getSnapshot():r;if(!n||typeof n!="object"||!("retainedBy"in n))return;let i=n.retainedBy;if(!(!i||typeof i!="object"||!("mainView"in i)||typeof i.mainView!="number"))return{retainedBy:{mainView:i.mainView}}}o(c5,"retainInfoSnapshot");function d5(e){let t=e?.byId;if(t!==void 0){for(let r of Object.values(t))if(r&&(r.retainedBy?.mainView??0)>0)return r.id}}o(d5,"mainViewSessionId");function li(e){return d5(e)??e?.current}o(li,"currentSessionId");function u5(e,t,r){return t===void 0||t===""?!1:(e?.byId?.[t]?.retainedBy?.mainView??0)>0||(c5(r,t)?.retainedBy?.mainView??0)>0?!0:e?.current===t}o(u5,"sessionIsCurrent");async function rk(e,t,r,n=()=>!0){if(r){if(typeof e.prepare=="function"&&await e.prepare(t),!n())return;await e.restore(t)}n()&&await e.open(t)}o(rk,"openArchivedConversation");function ok(e,t,r,{onOpened:n=o(()=>{},"onOpened"),beginNavigation:i,warn:s=o((...a)=>console.warn(...a),"warn")}={}){let a,l=e?.clearArchivedCurrent,c=e&&Object.getOwnPropertyDescriptor(e,"clearArchivedCurrent"),d=o(p=>u5(t.list.getSnapshot(),p,t),"viewing"),u=o(function(...p){return a!==void 0&&d(a)&&r.list.getSnapshot().archivedSessionIds.includes(a)?!1:(a=void 0,l?.apply(this,p))},"wrapped"),m=o(()=>e&&Object.getOwnPropertyDescriptor(e,"clearArchivedCurrent")?.value===u,"ownsWrapper");if(e&&typeof l=="function")try{if(e.clearArchivedCurrent=u,!m())throw new Error("\u5BFC\u822A\u65B9\u6CD5\u672A\u63A5\u7EB3\u5F52\u6863\u9002\u914D")}catch(p){s("archive-manager: \u65E0\u6CD5\u9002\u914D\u5F52\u6863\u5BFC\u822A\uFF0C\u8BF7\u6062\u590D\u4F1A\u8BDD\u540E\u6253\u5F00\u3002",p)}return{open(p){a=p;try{if(typeof l=="function"&&!m()&&r.list.getSnapshot().archivedSessionIds.includes(p))throw s("archive-manager: \u5F52\u6863\u5BFC\u822A\u9002\u914D\u4E0D\u53EF\u7528\u6216\u5DF2\u88AB\u66FF\u6362\u3002"),new Pa("navigationUnavailable");if(i?.(),typeof t.retain=="function"&&typeof e?.openSession=="function")e.openSession(p);else if(typeof t.open=="function")t.open(p);else if(typeof e?.openSession=="function")e.openSession(p);else throw s("archive-manager: \u5BBF\u4E3B\u672A\u63D0\u4F9B\u4F1A\u8BDD\u6253\u5F00\u63A5\u53E3\u3002"),new Pa("navigationUnavailable");if(!d(p))throw s("archive-manager: \u5BBF\u4E3B\u672A\u4FDD\u7559\u76EE\u6807\u4F1A\u8BDD\u3002",{cleanupAvailable:typeof l=="function"}),new Pa("sessionNotRetained");n()}catch(g){throw a=void 0,g}},dispose(){a=void 0,!(!e||Object.getOwnPropertyDescriptor(e,"clearArchivedCurrent")?.value!==u)&&(c?Object.defineProperty(e,"clearArchivedCurrent",c):delete e.clearArchivedCurrent,l?.call(e))}}}o(ok,"allowArchivedNavigation");function nk(e,t){let r="sidebar.workspaces.directoryFlow";return e.slots.inject(t,()=>e.effect(()=>{let n=new Map,i,s=o((d,u)=>{n.delete(d);try{u()}catch(m){console.error(`archive-manager: \u6E05\u7406\u76EE\u5F55\u955C\u50CF\u5931\u8D25 ${r} -> ${t}\uFF08${d.registrant??"\u672A\u77E5\u6765\u6E90"}\uFF09`,m)}},"release"),a=o(()=>{for(let[d,u]of n)s(d,u)},"clearMounted"),l=o(()=>{i=void 0;let d=e.slots.entries(r);for(let[u,m]of n)d.includes(u)||s(u,m);for(let u of d)if(!n.has(u)){if(Object.keys(u.children??{}).length>0){console.warn("archive-manager: \u4E0D\u652F\u6301\u5E26\u5B50\u63D2\u69FD\u7684\u76EE\u5F55\u7EC4\u4EF6\uFF0C\u8BF7\u4F7F\u7528\u5B98\u65B9\u9996\u9875\u5165\u53E3");continue}i=u.registrant,n.set(u,e.slots.register({...u.options,name:t,registrant:u.registrant,inject:u.inject,store:u.store,locale:u.locale},u.component))}},"reconcile"),c=e.on("slots/changed",d=>{if(d===r)try{l()}catch(u){a(),console.error(`archive-manager: \u540C\u6B65\u76EE\u5F55\u955C\u50CF\u5931\u8D25 ${r} -> ${t}\uFF08${i??"\u672A\u77E5\u6765\u6E90"}\uFF09\uFF1B\u8BF7\u4F7F\u7528\u5B98\u65B9\u9996\u9875\u5165\u53E3\uFF0C\u540E\u7EED\u6E90\u63D2\u69FD\u53D8\u5316\u65F6\u91CD\u8BD5`,u)}});try{l()}catch(d){throw c(),a(),d}return()=>{c(),a()}},"dsh-archive-manager: official directory flow"))}o(nk,"mirrorDirectoryFlow");var ik={check:"\u68C0\u67E5\u66F4\u65B0",update:"\u66F4\u65B0",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",manualHintDesktop:"\u81EA\u52A8\u66F4\u65B0\u5931\u8D25\u65F6\uFF0C\u8BF7\u5148\u5B8C\u5168\u9000\u51FA DSH Desktop\uFF0C\u518D\u7528 Desktop \u81EA\u5E26\u7684 dsh \u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u3002\u666E\u901A dsh \u4F1A\u62D2\u7EDD desktop profile\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",restartDesktop:"\u66F4\u65B0\u5B8C\u6210\uFF0C\u8BF7\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u65B0\u6253\u5F00 DSH Desktop\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"},sk={check:"Check for updates",update:"Update",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.",manualHintDesktop:"If automatic update fails, fully quit DSH Desktop, then run this command with Desktop's own dsh. A regular dsh rejects the desktop profile.",intro:"Only this plugin is checked and updated. Other plugins are not changed.",restart:"Update complete. Restart DSH Web.",restartDesktop:"Update complete. Fully quit and reopen DSH Desktop.",restarting:"Update complete. Restarting DSH Desktop\u2026",unavailable:"Automatic update is unavailable. Use the manual command."};function gm(e){return e.toLowerCase().startsWith("zh")?ik:sk}o(gm,"pluginUpdateCopy");function m5(e,t,r,n){let i=gm(e),s=t?.restartDesktop===!0||t?.profileName==="desktop",a=s?{...i,manualHint:i.manualHintDesktop}:i,l=r!=="idle",c=a.checking,d="";return r==="checking"?c=a.checking:r==="updating"?c=a.updating:n.type==="error"?(c=n.message||a.failed,d="error"):n.type==="restart"?(c=s?a.restartDesktop:a.restart,d="success"):n.type==="restarting"?(c=a.restarting,d="success"):t===void 0?c=a.checking:t.latestCheckFailed?(c=a.failed,d="error"):!t.canAutoUpdate&&t.updateAvailable?(c=a.unavailable,d="update"):t.updateAvailable?(c=`${a.found}: v${t.latestVersion??a.unknown}`,d="update"):(c=a.latest,d="success"),{copy:a,busy:l,message:c,kind:d,loading:r==="updating",updateLabel:r==="updating"?a.updating:a.auto,disabled:l||t?.canAutoUpdate!==!0||t.updateAvailable!==!0,currentVersion:t===void 0?a.unknown:`v${t.currentVersion}`,latestVersion:t?.latestVersion===void 0?a.unknown:`v${t.latestVersion}`,profileName:t?.profileName??a.unknown,profileRaw:t?.profileName??"",latestRaw:t?.latestVersion??"latest"}}o(m5,"describePluginUpdate");function ak(e,t,r){let n="idle",i=t,s={type:"status"},a=0,l=new Set,c=o(()=>{for(let u of l)u()},"emit"),d=o(u=>{i=u,r?.(u)},"assign");return{get posts(){return a},subscribe(u){return l.add(u),()=>{l.delete(u)}},view(u){return m5(u,i,n,s)},async check(){if(n==="idle"){n="checking",s={type:"status"},c();try{d(await e("GET")),s={type:"status"}}catch(u){s={type:"error",message:u instanceof Error?u.message:""}}finally{n="idle",c()}}},async update(){if(n==="idle"){n="updating",s={type:"status"},a+=1,c();try{let u=await e("POST");d(u),s={type:u.autoReload===!0?"restarting":"restart"}}catch(u){s={type:"error",message:u instanceof Error?u.message:""}}finally{n="idle",c()}}}}}o(ak,"createUpdateFlow");function lk(e,t,r){return`dsh plugin${e.trim()===""?"":` --profile ${e.trim()}`} add ${t}@${r} --registry=https://registry.npmjs.org/`}o(lk,"manualPluginUpdateCommand");function ck(e,t){return e.key!=="Escape"?!1:(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),t(),!0)}o(ck,"handlePluginUpdateEscape");function dk(e){let r=Function("return globalThis.__dshArchiveReactDOMClient")()?.createRoot;if(r===void 0)throw new Error("createRoot unavailable");return r(e)}o(dk,"mountRoot");var p5="x-michengai-plugin-update",uk="michengai-plugin-update-ui",QC=`
28
+ `;function Sr(r,o={},d){let y=r.createElement,n=t((O,T)=>o[O]?y("span",{className:T,"aria-hidden":!0},y(o[O],{width:16,height:16})):null,"icon");function i(O,T,B){let I=T.primary?"primary":T.subtle?"ghost":"outline";return y(d??(R=>y("button",{type:"button",disabled:R.disabled,onClick:R.onClick},R.children)),{variant:I,size:"sm",disabled:T.disabled,onClick:T.onClick,icon:B??void 0},O)}t(i,"actionButton");function c({title:O,glyph:T,children:B}){let[I,Z]=r.useState(!1);return y(dn,{className:"dsham_healthTech",title:y(r.Fragment,null,T,O),open:I,onToggle:t(()=>Z(R=>!R),"onToggle")},B)}return t(c,"TechnicalDetails"),t(function({items:T,sessions:B,t:I=Ya,isArchived:Z=!0,diagnoseSession:R,repairSession:M,retry:G,pending:z}){let[ie,ne]=r.useState({}),[Q,Be]=r.useState(""),[be,Oe]=r.useState(""),Ge=T.filter(xe=>xe.error),Y=t(async(xe,at)=>{if(!Q){Be(xe.sessionId),Oe("");try{let fe=await(at&&M?M({sessionId:xe.sessionId,token:ie[xe.sessionId].token}):R({sessionId:xe.sessionId}));ne(tt=>({...tt,[xe.sessionId]:fe})),fe.repaired&&(Oe(!0),G())}catch(fe){ne(tt=>({...tt,[xe.sessionId]:{repairable:!1,code:"failed",reason:"",advice:et(fe).slice(0,1e3)}}))}finally{Be("")}}},"run");return y("div",{className:"dsham_health"},y("style",null,Za),be&&y("p",{role:"status",className:"dsham_healthNotice"},n("check"),I("health.notice")),Ge.length>0&&y("details",{className:"dsham_healthPanel"},y("summary",{className:"dsham_healthSummary"},n("warning","dsham_healthIcon"),y("span",{className:"dsham_healthSummaryText"},I(Z?"health.archived":"health.unarchived"),y("span",{className:"dsham_healthCount"},Ge.length)),y("span",{className:"dsham_healthSummaryHint"},I("health.heading")),n("chevron","dsham_healthChevron")),y("div",{className:"dsham_healthBody"},y("div",{className:"dsham_healthIntro"},y("span",null,I(Z?"health.scopeArchived":"health.scopeUnarchived")),i(I("health.retry"),{subtle:!0,disabled:z||!!Q,onClick:G},n("refresh"))),Ge.map(xe=>{let at=xr(xe.error),fe=ie[xe.sessionId],tt=fe?Object.hasOwn(Rn,"health."+fe.code+".reason")?fe.code:fe.repaired?"repaired":fe.repairable?"ready":"blocked":at.code,Ct=B.find(It=>It.id===xe.sessionId),$e=fe?.repairable&&M;return y("section",{key:xe.sessionId,className:"dsham_healthItem","aria-busy":Q===xe.sessionId},y("div",{className:"dsham_healthRow"},y("div",{className:"dsham_healthCopy"},y("strong",{className:"dsham_healthTitle"},Ct?.displayTitle||Ct?.title||xe.sessionId),y("div",{className:"dsham_healthState","data-state":fe?.repaired?"success":$e?"ready":"pending",role:fe?"status":void 0},n(fe?.repaired?"check":"info"),I("health."+tt+".reason",{n:fe?.count??0}))),R&&i(I(Q===xe.sessionId?"health.busy":$e?"health.confirm":"health.diagnose"),{primary:!!$e,disabled:!!Q,onClick:t(()=>Y(xe,!!$e),"onClick")},n(Q===xe.sessionId?"refresh":$e?"check":"search"))),fe&&y("p",{className:"dsham_healthAdvice"},I("health."+tt+".advice")),!fe&&at.code!=="legacy-source"&&y("p",{className:"dsham_healthAdvice"},I("health."+tt+".advice")),y(c,{title:I("health.technical"),glyph:n("chevron","dsham_healthChevron")},y("div",{className:"dsham_healthLog"},y("p",null,xe.sessionId),y("p",null,xe.error),fe?.reason&&y("p",null,fe.reason),fe?.advice&&y("p",null,fe.advice))))}))))},"SessionHealthPanel")}t(Sr,"createSessionHealthPanel");function kr(r,o={}){let d=r.createElement;function y({text:R,query:M=""}){let G=vr(R,M);return G?d(r.Fragment,null,R.slice(0,G.start),d("mark",null,R.slice(G.start,G.end)),R.slice(G.end)):R}t(y,"HighlightedText");function n(R,M,G,z){let ie=JSON.stringify(R),ne=JSON.stringify([ie,M]),[Q,Be]=r.useState(0),[be,Oe]=r.useState({key:"",status:"idle",items:[],failures:[]});return r.useEffect(()=>{if(!G||!M.trim()||!z)return;let Y=new AbortController;Oe({key:ne,status:"loading",items:[],failures:[],done:0,total:R.length});let xe=setTimeout(()=>{br(JSON.parse(ie),M,z,{signal:Y.signal,onProgress:t(at=>{Y.signal.aborted||Oe({key:ne,status:"loading",...at})},"onProgress")}).then(at=>{Y.signal.aborted||Oe({key:ne,status:"ready",done:R.length,total:R.length,...at})}).catch(at=>{Y.signal.aborted||Oe(fe=>({...fe,key:ne,status:"error",error:et(at)}))})},350);return()=>{Y.abort(),clearTimeout(xe)}},[ie,M,G,z,Q]),{...G&&M.trim()&&z?be.key===ne?be:{key:ne,status:"loading",items:[],failures:[],done:0,total:R.length}:{status:"idle",items:[],failures:[]},retry:t(()=>Be(Y=>Y+1),"retry")}}t(n,"useArchiveSearch");function i(R,M,G,z=!1){let ie=JSON.stringify(R.map(Y=>[Y.id,Y.updatedAt])),[ne,Q]=r.useState(0),[Be,be]=r.useState({key:"",items:[],pending:!1});r.useEffect(()=>{if(!M||z)return;let Y=!0,xe=[...new Set(JSON.parse(ie).map(fe=>fe[0]))];return be({key:ie,items:[],pending:xe.length>0}),t(async()=>{let fe=[];for(let tt=0;tt<xe.length&&Y;tt+=20){let Ct=xe.slice(tt,tt+20);try{let $e=us.parse(await M({sessionIds:Ct})),It=new Map($e.items.map(Ye=>[Ye.sessionId,Ye]));fe.push(...Ct.map(Ye=>It.get(Ye)??{sessionId:Ye,turnCount:null,path:null,error:"",errorKey:"details.notReturned"}))}catch($e){fe.push(...Ct.map(It=>({sessionId:It,turnCount:null,path:null,error:et($e)})))}Y&&be({key:ie,items:[...fe],pending:tt+20<xe.length})}},"load")(),()=>{Y=!1}},[ie,M,ne,z]);let Oe=M&&Be.key===ie?Be:{items:[],pending:!!(M&&R.length)},Ge=Oe.items.map(Y=>Y.errorKey?{...Y,error:G?G(Y.errorKey):Y.errorKey}:Y);return{...Oe,items:Ge,byId:Object.fromEntries(Ge.map(Y=>[Y.sessionId,Y])),retry:t(()=>Q(Y=>Y+1),"retry")}}t(i,"useSessionDetails");function c(R,M){let[G,z]=r.useState(null),[ie,ne]=r.useState({status:"idle"}),[Q,Be]=r.useState(0),be=G,Oe=G&&M.includes(G.session.id);return r.useEffect(()=>{G&&!Oe&&z(null)},[G,Oe]),r.useEffect(()=>{if(!Oe||typeof window>"u")return;let Ge=t(Y=>{Y.key==="Escape"&&(Y.preventDefault(),Y.stopPropagation(),Y.stopImmediatePropagation(),z(null))},"onKeyDown");return window.addEventListener("keydown",Ge,!0),()=>window.removeEventListener("keydown",Ge,!0)},[Oe]),r.useEffect(()=>{if(!G||!Oe||!R)return;let Ge=!0;return ne({key:be,status:"loading"}),Promise.resolve().then(()=>R({sessionId:G.session.id,query:G.query})).then(Y=>{Ge&&ne({key:be,status:"ready",value:Y})}).catch(Y=>{Ge&&ne({key:be,status:"error",error:et(Y)})}),()=>{Ge=!1}},[be,Oe,R,Q]),{target:Oe?G:null,...ie.key===be?ie:{status:"loading"},open:t((Ge,Y="")=>z({session:Ge,query:Y}),"open"),close:t(()=>z(null),"close"),retry:t(()=>Be(Ge=>Ge+1),"retry")}}t(c,"useArchivePreview");function O({title:R,failures:M,separator:G}){let[z,ie]=r.useState(!1),ne=d("ul",null,M.map(Q=>d("li",{key:Q.sessionId},Q.sessionId,G,Q.message)));return d(dn,{title:R,open:z,onToggle:t(()=>ie(Q=>!Q),"onToggle")},ne)}t(O,"FailureDetails");function T(R,M){let G=o.Button??(z=>d("button",{type:"button",disabled:z.disabled,onClick:z.onClick},z.children));return d(G,{variant:"outline",size:"sm",...M},R)}t(T,"textButton");function B({t:R,from:M,to:G,onFrom:z,onTo:ie,invalid:ne,onClear:Q}){return d("div",{className:"dsham_dateFilter"},d(dr,{from:M,to:G,invalid:ne,label:R("discovery.date"),fromLabel:R("discovery.from"),toLabel:R("discovery.to"),onFrom:z,onTo:ie,onClear:Q}),ne?d("p",{className:"dsham_dateAlert",role:"alert"},R("discovery.invalidDate")):null)}t(B,"DiscoveryFilters");function I({state:R,t:M}){return R.status==="idle"?null:d("div",{className:"dsham_discoveryStatus",role:"status","aria-live":"polite"},d("p",null,M(R.status==="loading"?"discovery.searching":R.status==="error"?"discovery.searchError":"discovery.searched",{done:R.done??0,total:R.total??0})),R.status==="error"&&d("p",null,R.error),R.failures.length>0&&d(O,{title:M("discovery.failed",{n:R.failures.length}),failures:R.failures,separator:M("common.separator")}),(R.status==="error"||R.status==="ready"&&R.failures.length>0)&&T(M("discovery.retry"),{onClick:R.retry}))}t(I,"SearchStatus");function Z({preview:R,t:M,MarkdownText:G}){let[z,ie]=r.useState(!1);if(R.status==="loading")return d("p",{role:"status"},M("discovery.loading"));if(R.status==="error")return d("div",null,d("p",{role:"alert"},R.error),T(M("discovery.retry"),{onClick:R.retry}));let ne=R.value;return ne?d("div",{className:"dsham_previewMessages"},d("div",{className:"dsham_previewToolbar"},d("span",{title:M("discovery.previewHint")},M("discovery.readOnly")," \xB7 ",M("discovery.messageCount",{n:ne.messages.length})),G&&d(o.SegmentedControl??"div",{id:"dsham-preview-mode",label:M("discovery.displayMode"),value:z?"raw":"formatted",options:[{value:"formatted",label:M("discovery.formatted")},{value:"raw",label:M("discovery.raw")}],onChange:t(Q=>ie(Q==="raw"),"onChange")})),ne.hasEarlier&&d("p",null,M("discovery.earlier")),!ne.messages.length&&d("p",null,M("discovery.empty")),ne.messages.map(Q=>d("article",{key:Q.seq,className:"dsham_previewMessage"},d("div",{className:"dsham_previewRole","data-role":Q.role},d("span",{"aria-hidden":!0},M(Q.role==="user"?"discovery.you":"discovery.ai")),d("strong",null,M("discovery."+Q.role))),z||!G?d("pre",{className:"dsham_previewRaw"},d(y,{text:Q.text,query:R.target?.query})):d(G,{text:Q.text,streaming:!1,labels:{code:{copyLabel:M("discovery.copyCode"),copiedLabel:M("details.copied")},footnotes:M("discovery.footnotes")}}),Q.truncated&&d("small",null,M("discovery.truncated")))),ne.hasLater&&d("p",null,M("discovery.later"))):null}return t(Z,"PreviewContent"),{HighlightedText:y,useSessionDetails:i,useArchiveSearch:n,useArchivePreview:c,DiscoveryFilters:B,SearchStatus:I,PreviewContent:Z}}t(kr,"createDiscoveryTools");var _r=[".dsham_dateFilter{display:flex;align-items:center;gap:8px;min-width:0}",".dsham_dateAlert{margin:0;font-size:12px;color:var(--dsw-alias-state-error-primary)}",".dsham_dateRange{display:flex;align-items:center;gap:4px;flex:1 1 auto;min-width:0;height:32px;padding:0 8px;border:0.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-sm,8px);background:var(--dsw-alias-bg-layer-1);box-sizing:border-box}",".dsham_dateRange:hover{border-color:var(--dsw-alias-border-l3)}",".dsham_dateRange:focus-within{border-color:var(--dsw-alias-state-business-primary);outline:1px solid var(--dsw-alias-state-business-primary)}",".dsham_date{border:0;outline:none;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;line-height:20px;height:24px;padding:0;color-scheme:dark;flex:1 1 0;min-width:0}",".dsham_dateSep{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px;user-select:none}",".dsham_dateClearBtn{flex:none;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;padding:0;margin-left:2px;border:0;background:transparent;color:var(--dsw-alias-label-tertiary);border-radius:50%;cursor:pointer;font-size:14px;line-height:1}",".dsham_dateClearBtn:hover{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}",".dsham_discoveryStatus{font-size:12px;margin-bottom:12px;overflow-wrap:anywhere}",".dsham_settingsSnippet{display:block;width:100%;padding:0;margin:4px 0 0;border:0;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}",".dsham_previewMessages{max-height:65vh;overflow:auto;overflow-wrap:anywhere;padding-right:8px}",".dsham_previewToolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;color:var(--dsw-alias-label-secondary);font-size:12px}",".dsham_previewRole{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:13px}",".dsham_previewRole>span{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--dsw-alias-bg-layer-3);font-size:11px}",".dsham_previewRole[data-role=user]>span{color:var(--dsw-alias-state-business-primary)}",".dsham_previewRaw{white-space:pre-wrap;font:13px/1.8 ui-monospace,monospace;overflow-wrap:anywhere}",".dsham_previewMessage pre:not(.dsham_previewRaw){white-space:pre;overflow-x:auto;max-width:100%}",".dsham_previewMessage table{display:block;max-width:100%;overflow-x:auto}",".dsham_previewMessage img{max-width:100%}","@media(max-width:520px){.dsham_previewToolbar{align-items:flex-start;flex-wrap:wrap}}",".dsham_previewMessage{padding:18px 0;border-bottom:1px solid var(--dsw-alias-border-l2)}",".dsham_previewMessage p{font-size:14px;line-height:1.8}",".dsham_previewHint,.dsham_previewMessage small{color:var(--dsw-alias-label-secondary);font-size:12px}",".dsham_settings mark,.dsham_previewMessages mark{background:var(--dsw-alias-state-warn-tertiary);color:inherit;border-radius:2px}",".dsham_settingsSnippet:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}"].join(""),Rr={"common.separator":"\uFF1A","details.notReturned":"\u5BBF\u4E3B\u672A\u8FD4\u56DE\u4F1A\u8BDD\u8BE6\u60C5","copy.empty":"\u6CA1\u6709\u53EF\u590D\u5236\u7684\u5185\u5BB9","copy.unavailable":"\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301\u526A\u8D34\u677F\uFF0C\u8BF7\u5728 HTTPS \u6216\u672C\u673A\u5730\u5740\u4E2D\u6253\u5F00\u9875\u9762","copy.denied":"\u590D\u5236\u5931\u8D25\uFF0C\u8BF7\u5141\u8BB8\u6D4F\u89C8\u5668\u8BBF\u95EE\u526A\u8D34\u677F\u540E\u91CD\u8BD5","discovery.you":"\u4F60","discovery.ai":"AI","discovery.readOnly":"\u53EA\u8BFB\u9884\u89C8","discovery.messageCount":"\u672C\u6B21\u663E\u793A {n} \u6761\u6D88\u606F","discovery.displayMode":"\u663E\u793A\u65B9\u5F0F","discovery.formatted":"\u6392\u7248","discovery.raw":"\u539F\u6587\u4E0E\u9AD8\u4EAE","discovery.copyCode":"\u590D\u5236\u4EE3\u7801","discovery.footnotes":"\u6CE8\u91CA","details.turns":"{n} \u8F6E","details.unknown":"\u8F6E\u6B21\u672A\u77E5","details.pending":"\u8F6E\u6B21\u8BFB\u53D6\u4E2D","details.hint":"\u6309\u7528\u6237\u63D0\u4EA4\u6D88\u606F\u6570\u7EDF\u8BA1\uFF0C\u4E0D\u542B\u5DE5\u5177\u8C03\u7528\u548C\u63D2\u4EF6\u6CE8\u5165","details.more":"\u8F6E\u6B21\u6700\u591A","details.less":"\u8F6E\u6B21\u6700\u5C11","details.failed":"{n} \u6761\u4F1A\u8BDD\u8BE6\u60C5\u8BFB\u53D6\u5931\u8D25","details.copyId":"\u590D\u5236\u4F1A\u8BDD ID","details.copyPath":"\u590D\u5236\u4F1A\u8BDD\u8DEF\u5F84","details.copied":"\u5DF2\u590D\u5236","details.noPath":"\u5BBF\u4E3B\u672A\u63D0\u4F9B\u53EF\u590D\u5236\u7684\u4F1A\u8BDD\u8DEF\u5F84","discovery.date":"\u65E5\u671F","discovery.timeRange":"\u65F6\u95F4\u8303\u56F4","discovery.allTime":"\u5168\u90E8\u65F6\u95F4","discovery.today":"\u4ECA\u5929","discovery.last7Days":"\u8FD1 7 \u5929","discovery.last30Days":"\u8FD1 30 \u5929","discovery.last90Days":"\u8FD1 90 \u5929","discovery.customRange":"\u81EA\u5B9A\u4E49\u2026","discovery.dateActive":"\u65E5\u671F\xB7\u5DF2\u9009","discovery.clearDate":"\u6E05\u9664\u65E5\u671F","discovery.active":"\u5DF2\u542F\u7528","discovery.scope":"\u67E5\u627E\u8303\u56F4","discovery.titleOnly":"\u4EC5\u6807\u9898","discovery.titleAndContent":"\u6807\u9898\u4E0E\u6B63\u6587","discovery.from":"\u66F4\u65B0\u65F6\u95F4\u4ECE","discovery.to":"\u81F3","discovery.clear":"\u6E05\u9664\u6761\u4EF6","discovery.invalidDate":"\u5F00\u59CB\u65E5\u671F\u4E0D\u80FD\u665A\u4E8E\u7ED3\u675F\u65E5\u671F\uFF0C\u8BF7\u68C0\u67E5\u65E5\u671F\u8303\u56F4\u3002","discovery.searching":"\u6B63\u5728\u68C0\u7D22\u6B63\u6587\uFF1A{done} / {total}","discovery.searched":"\u6B63\u6587\u68C0\u7D22\u5B8C\u6210\uFF1A{done} / {total}","discovery.searchError":"\u6B63\u6587\u68C0\u7D22\u672A\u5B8C\u6210\uFF0C\u5F53\u524D\u7ED3\u679C\u53EF\u80FD\u4E0D\u5B8C\u6574\u3002","discovery.failed":"{n} \u6761\u4F1A\u8BDD\u8BFB\u53D6\u5931\u8D25","discovery.retry":"\u91CD\u8BD5","discovery.preview":"\u5FEB\u901F\u9884\u89C8","discovery.loading":"\u6B63\u5728\u8BFB\u53D6\u4F1A\u8BDD\u2026","discovery.previewHint":"\u53EA\u8BFB\u9884\u89C8\u539F\u59CB\u5BF9\u8BDD\u6587\u672C\uFF0C\u4E0D\u6062\u590D\u4F1A\u8BDD\uFF1B\u4E0D\u542B\u5DE5\u5177\u8F93\u51FA\u3001\u9644\u4EF6\u3001\u63A8\u7406\u548C\u7CFB\u7EDF\u5185\u5BB9\u3002","discovery.earlier":"\u524D\u9762\u8FD8\u6709\u6D88\u606F\uFF0C\u53EF\u6253\u5F00\u5B8C\u6574\u4F1A\u8BDD\u67E5\u770B\u3002","discovery.later":"\u540E\u9762\u8FD8\u6709\u6D88\u606F\uFF0C\u53EF\u6253\u5F00\u5B8C\u6574\u4F1A\u8BDD\u67E5\u770B\u3002","discovery.empty":"\u6CA1\u6709\u53EF\u9884\u89C8\u7684\u7528\u6237\u6216\u52A9\u624B\u6587\u672C\u3002","discovery.truncated":"\u672C\u6761\u4EC5\u663E\u793A\u90E8\u5206\u5185\u5BB9\u3002","discovery.user":"\u7528\u6237","discovery.assistant":"\u52A9\u624B","discovery.openFull":"\u6253\u5F00\u5B8C\u6574\u4F1A\u8BDD","discovery.searchPlaceholder":"\u641C\u7D22\u6807\u9898\u6216\u6B63\u6587"},Cr={"common.separator":": ","details.notReturned":"The host did not return session details","copy.empty":"Nothing to copy","copy.unavailable":"Clipboard unavailable. Open the page over HTTPS or localhost.","copy.denied":"Copy failed. Allow clipboard access and retry.","discovery.you":"You","discovery.ai":"AI","discovery.readOnly":"Read-only preview","discovery.messageCount":"Showing {n} messages","discovery.displayMode":"Display mode","discovery.formatted":"Formatted","discovery.raw":"Source and highlights","discovery.copyCode":"Copy code","discovery.footnotes":"Footnotes","details.turns":"{n} turns","details.unknown":"Unknown turns","details.pending":"Loading turns","details.hint":"User submissions; excludes tool calls and injected messages","details.more":"Most turns","details.less":"Fewest turns","details.failed":"Could not read turns for {n} sessions","details.copyId":"Copy session ID","details.copyPath":"Copy session path","details.copied":"Copied","details.noPath":"The host did not provide a session path","discovery.date":"Date","discovery.timeRange":"Time range","discovery.allTime":"All time","discovery.today":"Today","discovery.last7Days":"Past 7 days","discovery.last30Days":"Past 30 days","discovery.last90Days":"Past 90 days","discovery.customRange":"Custom\u2026","discovery.dateActive":"Date \xB7 Set","discovery.clearDate":"Clear dates","discovery.active":"Active","discovery.scope":"Search in","discovery.titleOnly":"Titles","discovery.titleAndContent":"Titles and content","discovery.from":"Updated from","discovery.to":"To","discovery.clear":"Clear filters","discovery.invalidDate":"Check the date range: the start must not be after the end.","discovery.searching":"Searching content: {done} / {total}","discovery.searched":"Content search complete: {done} / {total}","discovery.searchError":"Content search is incomplete; results may be missing.","discovery.failed":"Could not read {n} conversations","discovery.retry":"Retry","discovery.preview":"Quick preview","discovery.loading":"Reading conversation\u2026","discovery.previewHint":"Read-only original conversation text; keeps the conversation archived. Excludes tools, attachments, reasoning and system content.","discovery.earlier":"More messages before this preview. Open the full conversation to read them.","discovery.later":"More messages after this preview. Open the full conversation to read them.","discovery.empty":"No user or assistant text to preview.","discovery.truncated":"Only part of this message is shown.","discovery.user":"User","discovery.assistant":"Assistant","discovery.openFull":"Open full conversation","discovery.searchPlaceholder":"Search titles or content"},Ir={"common.separator":": ","details.notReturned":"\u0425\u043E\u0441\u0442 \u043D\u0435 \u0432\u0435\u0440\u043D\u0443\u043B \u0441\u0432\u0435\u0434\u0435\u043D\u0438\u044F \u043E \u0441\u0435\u0441\u0441\u0438\u0438","copy.empty":"\u041D\u0435\u0447\u0435\u0433\u043E \u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C","copy.unavailable":"\u0411\u0443\u0444\u0435\u0440 \u043E\u0431\u043C\u0435\u043D\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443 \u043F\u043E HTTPS \u0438\u043B\u0438 localhost.","copy.denied":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C. \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u0435 \u0434\u043E\u0441\u0442\u0443\u043F \u043A \u0431\u0443\u0444\u0435\u0440\u0443 \u043E\u0431\u043C\u0435\u043D\u0430 \u0438 \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435.","discovery.you":"\u0412\u044B","discovery.ai":"\u0418\u0418","discovery.readOnly":"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F","discovery.messageCount":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439: {n}","discovery.displayMode":"\u0420\u0435\u0436\u0438\u043C \u043E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u044F","discovery.formatted":"\u0424\u043E\u0440\u043C\u0430\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043E","discovery.raw":"\u0418\u0441\u0445\u043E\u0434\u043D\u0438\u043A \u0438 \u043F\u043E\u0434\u0441\u0432\u0435\u0442\u043A\u0430","discovery.copyCode":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043A\u043E\u0434","discovery.footnotes":"\u0421\u043D\u043E\u0441\u043A\u0438","details.turns":"{n} \u0445\u043E\u0434\u043E\u0432","details.unknown":"\u0425\u043E\u0434\u043E\u0432 \u043D\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043D\u043E","details.pending":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0445\u043E\u0434\u043E\u0432","details.hint":"\u041F\u043E \u0447\u0438\u0441\u043B\u0443 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0439 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F; \u0431\u0435\u0437 \u0432\u044B\u0437\u043E\u0432\u043E\u0432 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u0438\u043D\u044A\u0435\u043A\u0446\u0438\u0439 \u043F\u043B\u0430\u0433\u0438\u043D\u043E\u0432","details.more":"\u0411\u043E\u043B\u044C\u0448\u0435 \u0445\u043E\u0434\u043E\u0432","details.less":"\u041C\u0435\u043D\u044C\u0448\u0435 \u0445\u043E\u0434\u043E\u0432","details.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C \u0445\u043E\u0434\u044B \u0434\u043B\u044F {n} \u0441\u0435\u0441\u0441\u0438\u0439","details.copyId":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C ID \u0441\u0435\u0441\u0441\u0438\u0438","details.copyPath":"\u041A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u0443\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u0438","details.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","details.noPath":"\u0425\u043E\u0441\u0442 \u043D\u0435 \u043F\u0440\u0435\u0434\u043E\u0441\u0442\u0430\u0432\u0438\u043B \u043F\u0443\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u0438","discovery.date":"\u0414\u0430\u0442\u0430","discovery.timeRange":"\u041F\u0435\u0440\u0438\u043E\u0434","discovery.allTime":"\u0412\u0441\u0435 \u0432\u0440\u0435\u043C\u044F","discovery.today":"\u0421\u0435\u0433\u043E\u0434\u043D\u044F","discovery.last7Days":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 7 \u0434\u043D\u0435\u0439","discovery.last30Days":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 30 \u0434\u043D\u0435\u0439","discovery.last90Days":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0435 90 \u0434\u043D\u0435\u0439","discovery.customRange":"\u0421\u0432\u043E\u0439 \u043F\u0435\u0440\u0438\u043E\u0434\u2026","discovery.dateActive":"\u0414\u0430\u0442\u0430 \xB7 \u0412\u044B\u0431\u0440\u0430\u043D\u0430","discovery.clearDate":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0434\u0430\u0442\u044B","discovery.active":"\u0412\u043A\u043B\u044E\u0447\u0435\u043D\u043E","discovery.scope":"\u0418\u0441\u043A\u0430\u0442\u044C \u0432","discovery.titleOnly":"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u044F","discovery.titleAndContent":"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u044F \u0438 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435","discovery.from":"\u041E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0441","discovery.to":"\u041F\u043E","discovery.clear":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0444\u0438\u043B\u044C\u0442\u0440\u044B","discovery.invalidDate":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D \u0434\u0430\u0442: \u043D\u0430\u0447\u0430\u043B\u043E \u043D\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043F\u043E\u0437\u0436\u0435 \u043A\u043E\u043D\u0446\u0430.","discovery.searching":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443: {done} / {total}","discovery.searched":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443 \u0437\u0430\u0432\u0435\u0440\u0448\u0451\u043D: {done} / {total}","discovery.searchError":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443 \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u0439; \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u043D\u0435\u043F\u043E\u043B\u043D\u044B\u043C\u0438.","discovery.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C {n} \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u043E\u0432","discovery.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C","discovery.preview":"\u0411\u044B\u0441\u0442\u0440\u044B\u0439 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440","discovery.loading":"\u0427\u0442\u0435\u043D\u0438\u0435 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430\u2026","discovery.previewHint":"\u0422\u043E\u043B\u044C\u043A\u043E \u0447\u0442\u0435\u043D\u0438\u0435 \u0438\u0441\u0445\u043E\u0434\u043D\u043E\u0433\u043E \u0442\u0435\u043A\u0441\u0442\u0430 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440\u0430; \u0441\u0435\u0441\u0441\u0438\u044F \u043E\u0441\u0442\u0430\u0451\u0442\u0441\u044F \u0432 \u0430\u0440\u0445\u0438\u0432\u0435. \u0411\u0435\u0437 \u0432\u044B\u0432\u043E\u0434\u0430 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0432\u043B\u043E\u0436\u0435\u043D\u0438\u0439, \u0440\u0430\u0441\u0441\u0443\u0436\u0434\u0435\u043D\u0438\u0439 \u0438 \u0441\u0438\u0441\u0442\u0435\u043C\u043D\u043E\u0433\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0433\u043E.","discovery.earlier":"\u041F\u0435\u0440\u0435\u0434 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u043E\u043C \u0435\u0441\u0442\u044C \u0435\u0449\u0451 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440, \u0447\u0442\u043E\u0431\u044B \u0438\u0445 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C.","discovery.later":"\u041F\u043E\u0441\u043B\u0435 \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0435\u0441\u0442\u044C \u0435\u0449\u0451 \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F. \u041E\u0442\u043A\u0440\u043E\u0439\u0442\u0435 \u043F\u043E\u043B\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440, \u0447\u0442\u043E\u0431\u044B \u0438\u0445 \u043F\u0440\u043E\u0447\u0438\u0442\u0430\u0442\u044C.","discovery.empty":"\u041D\u0435\u0442 \u0442\u0435\u043A\u0441\u0442\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u0438\u043B\u0438 \u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442\u0430 \u0434\u043B\u044F \u043F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430.","discovery.truncated":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u0430 \u0442\u043E\u043B\u044C\u043A\u043E \u0447\u0430\u0441\u0442\u044C \u044D\u0442\u043E\u0433\u043E \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u044F.","discovery.user":"\u041F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C","discovery.assistant":"\u0410\u0441\u0441\u0438\u0441\u0442\u0435\u043D\u0442","discovery.openFull":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u043F\u043E\u043B\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440","discovery.searchPlaceholder":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F\u043C \u0438\u043B\u0438 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443"};var Ot=class extends Error{static{t(this,"ArchiveNavigationError")}code;constructor(o){super(o),this.name="ArchiveNavigationError",this.code=o}};function Ar(r,o){return r instanceof Ot?o(`archives.${r.code}`):et(r)}t(Ar,"formatArchiveNavigationError");function Ja(r,o){if(typeof r?.retainInfo!="function")return;let d=r.retainInfo(o),y=d&&typeof d=="object"&&"getSnapshot"in d&&typeof d.getSnapshot=="function"?d.getSnapshot():d;if(!y||typeof y!="object"||!("retainedBy"in y))return;let n=y.retainedBy;if(!(!n||typeof n!="object"||!("mainView"in n)||typeof n.mainView!="number"))return{retainedBy:{mainView:n.mainView}}}t(Ja,"retainInfoSnapshot");function Qa(r){let o=r?.byId;if(o!==void 0){for(let d of Object.values(o))if(d&&(d.retainedBy?.mainView??0)>0)return d.id}}t(Qa,"mainViewSessionId");function ot(r){return Qa(r)}t(ot,"currentSessionId");function ei(r,o,d){return o===void 0||o===""?!1:(r?.byId?.[o]?.retainedBy?.mainView??0)>0||(Ja(d,o)?.retainedBy?.mainView??0)>0}t(ei,"sessionIsCurrent");async function Er(r,o,d,y=()=>!0){if(d){if(typeof r.prepare=="function"&&await r.prepare(o),!y())return;await r.restore(o)}y()&&await r.open(o)}t(Er,"openArchivedConversation");function jr(r,o,d,{onOpened:y=t(()=>{},"onOpened"),beginNavigation:n,warn:i=t((...c)=>console.warn(...c),"warn")}={}){let c,O=r?.clearArchivedCurrent,T=r&&Object.getOwnPropertyDescriptor(r,"clearArchivedCurrent"),B=t(R=>ei(o.list.getSnapshot(),R,o),"viewing"),I=t(function(...R){return c!==void 0&&B(c)&&d.list.getSnapshot().archivedSessionIds.includes(c)?!1:(c=void 0,O?.apply(this,R))},"wrapped"),Z=t(()=>r&&Object.getOwnPropertyDescriptor(r,"clearArchivedCurrent")?.value===I,"ownsWrapper");if(r&&typeof O=="function")try{if(r.clearArchivedCurrent=I,!Z())throw new Error("\u5BFC\u822A\u65B9\u6CD5\u672A\u63A5\u7EB3\u5F52\u6863\u9002\u914D")}catch(R){i("archive-manager: \u65E0\u6CD5\u9002\u914D\u5F52\u6863\u5BFC\u822A\uFF0C\u8BF7\u6062\u590D\u4F1A\u8BDD\u540E\u6253\u5F00\u3002",R)}return{open(R){c=R;try{if(typeof O=="function"&&!Z()&&d.list.getSnapshot().archivedSessionIds.includes(R))throw i("archive-manager: \u5F52\u6863\u5BFC\u822A\u9002\u914D\u4E0D\u53EF\u7528\u6216\u5DF2\u88AB\u66FF\u6362\u3002"),new Ot("navigationUnavailable");if(n?.(),typeof r?.openSession!="function")throw i("archive-manager: \u5BBF\u4E3B\u672A\u63D0\u4F9B\u4F1A\u8BDD\u6253\u5F00\u63A5\u53E3\u3002"),new Ot("navigationUnavailable");if(r.openSession(R),!B(R))throw i("archive-manager: \u5BBF\u4E3B\u672A\u4FDD\u7559\u76EE\u6807\u4F1A\u8BDD\u3002",{cleanupAvailable:typeof O=="function"}),new Ot("sessionNotRetained");y()}catch(M){throw c=void 0,M}},dispose(){c=void 0,!(!r||Object.getOwnPropertyDescriptor(r,"clearArchivedCurrent")?.value!==I)&&(T?Object.defineProperty(r,"clearArchivedCurrent",T):delete r.clearArchivedCurrent,O?.call(r))}}}t(jr,"allowArchivedNavigation");var Xt=require("@deepseek-ai/dsh-client-ui-primitives");var Dr={check:"\u68C0\u67E5\u66F4\u65B0",update:"\u66F4\u65B0",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",manualHintDesktop:"\u81EA\u52A8\u66F4\u65B0\u5931\u8D25\u65F6\uFF0C\u8BF7\u5148\u5B8C\u5168\u9000\u51FA DSH Desktop\uFF0C\u518D\u7528 Desktop \u81EA\u5E26\u7684 dsh \u6267\u884C\u4EE5\u4E0B\u547D\u4EE4\u3002\u666E\u901A dsh \u4F1A\u62D2\u7EDD desktop profile\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",restartDesktop:"\u66F4\u65B0\u5B8C\u6210\uFF0C\u8BF7\u5B8C\u5168\u9000\u51FA\u5E76\u91CD\u65B0\u6253\u5F00 DSH Desktop\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"},Tr={check:"Check for updates",update:"Update",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.",manualHintDesktop:"If automatic update fails, fully quit DSH Desktop, then run this command with Desktop's own dsh. A regular dsh rejects the desktop profile.",intro:"Only this plugin is checked and updated. Other plugins are not changed.",restart:"Update complete. Restart DSH Web.",restartDesktop:"Update complete. Fully quit and reopen DSH Desktop.",restarting:"Update complete. Restarting DSH Desktop\u2026",unavailable:"Automatic update is unavailable. Use the manual command."};function In(r){return r.toLowerCase().startsWith("zh")?Dr:Tr}t(In,"pluginUpdateCopy");function ti(r,o,d,y){let n=In(r),i=o?.restartDesktop===!0||o?.profileName==="desktop",c=i?{...n,manualHint:n.manualHintDesktop}:n,O=d!=="idle",T=c.checking,B="";return d==="checking"?T=c.checking:d==="updating"?T=c.updating:y.type==="error"?(T=y.message||c.failed,B="error"):y.type==="restart"?(T=i?c.restartDesktop:c.restart,B="success"):y.type==="restarting"?(T=c.restarting,B="success"):o===void 0?T=c.checking:o.latestCheckFailed?(T=c.failed,B="error"):!o.canAutoUpdate&&o.updateAvailable?(T=c.unavailable,B="update"):o.updateAvailable?(T=`${c.found}: v${o.latestVersion??c.unknown}`,B="update"):(T=c.latest,B="success"),{copy:c,busy:O,message:T,kind:B,loading:d==="updating",updateLabel:d==="updating"?c.updating:c.auto,disabled:O||o?.canAutoUpdate!==!0||o.updateAvailable!==!0,currentVersion:o===void 0?c.unknown:`v${o.currentVersion}`,latestVersion:o?.latestVersion===void 0?c.unknown:`v${o.latestVersion}`,profileName:o?.profileName??c.unknown,profileRaw:o?.profileName??"",latestRaw:o?.latestVersion??"latest"}}t(ti,"describePluginUpdate");function Nr(r,o,d){let y="idle",n=o,i={type:"status"},c=0,O=new Set,T=t(()=>{for(let I of O)I()},"emit"),B=t(I=>{n=I,d?.(I)},"assign");return{get posts(){return c},subscribe(I){return O.add(I),()=>{O.delete(I)}},view(I){return ti(I,n,y,i)},async check(){if(y==="idle"){y="checking",i={type:"status"},T();try{B(await r("GET")),i={type:"status"}}catch(I){i={type:"error",message:I instanceof Error?I.message:""}}finally{y="idle",T()}}},async update(){if(y==="idle"){y="updating",i={type:"status"},c+=1,T();try{let I=await r("POST");B(I),i={type:I.autoReload===!0?"restarting":"restart"}}catch(I){i={type:"error",message:I instanceof Error?I.message:""}}finally{y="idle",T()}}}}}t(Nr,"createUpdateFlow");function Mr(r,o,d){return`dsh plugin${r.trim()===""?"":` --profile ${r.trim()}`} add ${o}@${d} --registry=https://registry.npmjs.org/`}t(Mr,"manualPluginUpdateCommand");function Or(r,o){return r.key!=="Escape"?!1:(r.preventDefault(),r.stopPropagation(),r.stopImmediatePropagation(),o(),!0)}t(Or,"handlePluginUpdateEscape");function Hr(r){let d=Function("return globalThis.__dshArchiveReactDOMClient")()?.createRoot;if(d===void 0)throw new Error("createRoot unavailable");return d(r)}t(Hr,"mountRoot");var ni="x-michengai-plugin-update",Pr="michengai-plugin-update-ui",ms=`
304
29
  .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}
305
30
  .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-status[data-kind=update]{color:#e8b15a !important}.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}}
306
- `;function f5(){let e=document.getElementById(uk);if(e!==null){e.textContent!==QC&&(e.textContent=QC);return}let t=document.createElement("style");t.id=uk,t.textContent=QC,(document.head??document.documentElement).append(t)}o(f5,"ensureStyle");function g5(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")}o(g5,"validPayload");async function mk(e,t,r){let n=r===void 0?{}:{signal:r},i=await fetch(e,t==="GET"?{cache:"no-store",...n}:{method:"POST",headers:{"content-type":"application/json",[p5]:"1"},body:"{}",...n}),s=await i.json();if(!i.ok||!g5(s))throw new Error(s&&typeof s=="object"&&"error"in s&&typeof s.error=="string"?s.error:gm(document.documentElement.lang).failed);return s}o(mk,"requestStatus");function h5(e){let t=_.useRef(null);return _.useLayoutEffect(()=>{t.current?.replaceChildren(e.node)},[e.node]),_.createElement("span",{ref:t,className:"mpi-icon","aria-hidden":!0})}o(h5,"HostIcon");function b5(e){let t=_.useRef(null),[,r]=_.useState(0),[n,i]=_.useState("idle");_.useEffect(()=>e.flow.subscribe(()=>r(u=>u+1)),[e.flow]),_.useEffect(()=>{let u=document.documentElement,m=new MutationObserver(()=>r(p=>p+1));return m.observe(u,{attributes:!0,attributeFilter:["lang"]}),()=>m.disconnect()},[]),_.useEffect(()=>{e.flow.check()},[e.flow]),_.useEffect(()=>{function u(m){ck(m,e.onClose)}return o(u,"onKey"),document.addEventListener("keydown",u,!0),()=>document.removeEventListener("keydown",u,!0)},[e.onClose]);let s=document.documentElement.lang,a=e.flow.view(s),l=s.toLowerCase().startsWith("zh")?e.zhName:s.toLowerCase().startsWith("ru")?e.ruName:e.enName,c=lk(a.profileRaw,e.packageName,a.latestRaw),d=n==="copied"?a.copy.copied:n==="failed"?a.copy.copyFailed:a.copy.copy;return _.createElement(od,{locale:FC()},_.createElement(gh,{open:!0,width:680,zIndex:1200,title:`${l} ${a.copy.update}`,keyboard:!1,destroyOnHidden:!0,onCancel:e.onClose,afterOpenChange:o(u=>{u&&t.current&&(t.current.tabIndex=-1,t.current.focus())},"afterOpenChange"),footer:[_.createElement(_n,{key:"check",disabled:a.busy,loading:a.busy&&!a.loading,onClick:o(()=>{e.flow.check()},"onClick")},a.copy.recheck),_.createElement(_n,{key:"update",type:"primary",disabled:a.disabled,loading:a.loading,onClick:o(()=>{e.flow.update()},"onClick")},a.updateLabel)]},_.createElement("div",{ref:t},_.createElement("p",{className:"mpi-intro"},a.copy.intro),_.createElement("dl",{className:"mpi-meta"},_.createElement("dt",null,a.copy.current),_.createElement("dd",null,_.createElement("span",{className:"mpi-mono"},a.currentVersion)),_.createElement("dt",null,a.copy.latestLabel),_.createElement("dd",{className:"mpi-latest"},_.createElement("span",{className:"mpi-mono"},a.latestVersion),_.createElement("span",{className:"mpi-status",role:"status","data-kind":a.kind,...a.kind==="update"?{style:{color:"#e8b15a"}}:{}},a.message)),_.createElement("dt",null,a.copy.profile),_.createElement("dd",null,_.createElement("span",{className:"mpi-mono"},a.profileName))),a.busy?_.createElement(DO,{percent:100,showInfo:!1,status:"active"}):null,_.createElement("section",{className:"mpi-manual"},_.createElement("h3",null,a.copy.manual),_.createElement("p",null,a.copy.manualHint),_.createElement("div",{className:"mpi-command"},_.createElement("code",null,c),_.createElement(_n,{disabled:a.busy,onClick:o(()=>{let u=navigator.clipboard?.writeText(c);if(u===void 0){i("failed");return}u.then(()=>{i("copied"),window.setTimeout(()=>i("idle"),1400)}).catch(()=>i("failed"))},"onClick")},d))))))}o(b5,"UpdateDialog");function pk(e){if(typeof document>"u"||document.body===null)return()=>{};f5();let t=new AbortController,r,n,i,s,a,l,c;function d(){i?.unmount(),i=void 0,n=void 0,s=void 0}o(d,"unmountCheck");function u(){if(i===void 0)return;s===void 0&&(s=e.createIcon("refresh"));let b=s;i.render(_.createElement(od,{locale:FC()},_.createElement(_n,{size:"small",shape:"default",onClick:p,icon:_.createElement(h5,{node:b})},_.createElement("span",{"data-mpi-label":""},gm(document.documentElement.lang).check))))}o(u,"renderCheck");function m(){l?.unmount(),l=void 0,a?.remove(),a=void 0}o(m,"closeDialog");function p(){m();let b=document.createElement("div");b.className="mpi-dialog-root",document.body.append(b),a=b,l=dk(b),l.render(_.createElement(b5,{flow:ak(v=>mk(e.endpoint,v,t.signal),r,v=>{r=v,g()}),packageName:e.packageName,zhName:e.zhName,enName:e.enName,ruName:e.ruName,onClose:m}))}o(p,"openDialog");function g(){let b=document.querySelector(e.titleRowSelector);if(b===null)return;let v=b.querySelector("h1,h2");if(v!==null&&r!==void 0){let C=v.querySelector(`.mpi-version[data-package="${e.packageName}"]`);C===null&&(C=document.createElement("span"),C.className="mpi-version",C.dataset.package=e.packageName,v.append(C));let w=`v${r.currentVersion}`;C.textContent!==w&&(C.textContent=w)}n!==void 0&&!n.isConnected&&d();let x=b.querySelector(e.linksSelector);if(x===null)return;let S=x.querySelector(`[data-mpi-check="${e.packageName}"]`);if(S!==null){let C=S.querySelector("[data-mpi-label]");(C===null||C.textContent!==gm(document.documentElement.lang).check)&&u();return}let y=document.createElement("span");y.dataset.mpiCheck=e.packageName,y.className="mpi-check-host",x.append(y),n=y,i=dk(y),u()}o(g,"applyControls");let h=new MutationObserver(()=>{c===void 0&&(c=window.requestAnimationFrame(()=>{c=void 0,g()}))});return h.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["lang"]}),g(),mk(e.endpoint,"GET",t.signal).then(b=>{r=b,g()}).catch(()=>{}),()=>{t.abort(),h.disconnect(),m(),d(),c!==void 0&&window.cancelAnimationFrame(c),document.querySelectorAll(`[data-mpi-check="${e.packageName}"],.mpi-version[data-package="${e.packageName}"]`).forEach(b=>b.remove())}}o(pk,"observePluginUpdate");function ZC(e){if(typeof e!="string"||e.length===0||e.length>1024)throw new TypeError("\u4F1A\u8BDD ID \u957F\u5EA6\u987B\u4E3A 1\uFF5E1024 \u4E2A\u5B57\u7B26");return e}o(ZC,"checkedId");var v5={parse(e){let t=Ur(e);if(!t||typeof t!="object"||typeof t.favorite!="boolean")throw new TypeError("\u6536\u85CF\u72B6\u6001\u5FC5\u987B\u4E3A\u5E03\u5C14\u503C");return{sessionId:ZC(t.sessionId),favorite:t.favorite}}},y5={parse(e){let t=Ur(e);if(!t||!Array.isArray(t.favoriteSessionIds)||t.favoriteSessionIds.length>1e5)throw new TypeError("\u6536\u85CF\u96C6\u5408\u65E0\u6548");return{favoriteSessionIds:[...new Set(t.favoriteSessionIds.map(ZC))]}},safeParse(e){try{return{success:!0,data:this.parse(e)}}catch(t){return{success:!1,error:t}}}};function fk(){let e=o((t,r)=>({mode:"strict",typeSymbol:`@michengai/dsh-archive-manager/types#${t}`,create:o(()=>r,"create"),schema:r}),"codec");return["favoriteSessions","setSessionFavorite"].map(t=>({id:`@michengai/dsh-archive-manager#workspaceRegistry/${t}`,service:"workspaceRegistry",namespace:"workspaceRegistry",method:t,invocation:{kind:"direct"},parameters:t==="favoriteSessions"?[]:[{name:"input",wire:"input",source:"json",codec:e("FavoriteInput",v5)}],result:e("FavoriteState",y5),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}}))}o(fk,"favoriteInvocations");function JC(e,{days:t,now:r=Date.now(),favorites:n=new Set,currentId:i,pending:s=new Map}){if(!e||!Number.isInteger(t)||t<1||t>36500||n.has(e.id)||e.id===i||(e.retainedBy?.mainView??0)>0||e.running||(e.runningSubagentCount??0)>0||e.pendingInteraction!=null||s.has(e.id))return!1;let a=typeof e.updatedAt=="number"?e.updatedAt:Date.parse(e.updatedAt??"");return Number.isFinite(a)&&a<=r-t*864e5}o(JC,"idleArchiveCandidate");async function x5(e,t,{onProgress:r,refresh:n}={}){let i=[...new Set(e.map(ZC))],s={requested:i,succeeded:[],skipped:[],failures:[],unprocessed:[],remaining:[],refreshError:null},a=o(()=>r?.({total:i.length,done:s.succeeded.length+s.skipped.length+s.failures.length,succeeded:s.succeeded.length,skipped:s.skipped.length,failed:s.failures.length}),"report");a();for(let[l,c]of i.entries()){try{(await t(c)?s.succeeded:s.skipped).push(c)}catch(d){s.failures.push({sessionId:c,message:d instanceof Error?d.message:String(d)}),s.unprocessed=i.slice(l+1),s.remaining=i.slice(l),a();break}a()}try{await n?.()}catch(l){s.refreshError=l instanceof Error?l.message:String(l)}return s}o(x5,"runSessionBatch");function gk({workspaces:e,sessions:t,archive:r,restore:n,deleteOne:i,getFavorites:s,refresh:a,currentSessionId:l}){return async(c,d,u={})=>{if(!["archive","restore","undo","delete"].includes(c))throw new TypeError("\u672A\u77E5\u6279\u91CF\u64CD\u4F5C");return x5(d,async m=>{let g=e.getSnapshot().archivedSessionIds.includes(m);if(c==="archive"){if(g||!t.getSnapshot().byId[m])return!1;if(u.idleDays!==void 0){let S=new Set((await s()).favoriteSessionIds),y=t.getSnapshot();if(!JC(y.byId[m],{days:u.idleDays,favorites:S,currentId:l(y),pending:u.getPending?.()??u.pending}))return!1}return await r(m),e.getSnapshot().archivedSessionIds.includes(m)}return g?c==="delete"?(await i(m),!0):!((await n(m))?.archivedSessionIds??e.getSnapshot().archivedSessionIds).includes(m):!1},{onProgress:u.onProgress,refresh:a})}}o(gk,"createSessionOrganizer");function hk(e){let t=e.createElement;function r(i,s){return t(_n,{shape:"round",...s},i)}o(r,"textButton");function n({title:i,failures:s,separator:a}){let[l,c]=e.useState(!1),d=t("ul",null,s.map(u=>t("li",{key:u.sessionId},u.sessionId,a,u.message)));return t(nd,{title:i,open:l,onToggle:o(()=>c(u=>!u),"onToggle")},d)}return o(n,"FailureDetails"),o(function({t:s,archived:a,busy:l,ready:c,days:d,onDays:u,count:m,onPreview:p,progress:g,result:h,onRetry:b,undoCount:v,onUndo:x,onReload:S}){return t(e.Fragment,null,t("style",null,".dsham_organizer,.dsham_batchFeedback{display:grid;gap:12px;margin:0 0 16px;padding:12px;border:1px solid var(--dsw-alias-border-l2);border-radius:10px}.dsham_organizerControls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.dsham_organizer label{display:inline-flex;align-items:center;gap:8px}.dsham_organizer p,.dsham_batchFeedback p{margin:0;font-size:12px;color:var(--dsw-alias-label-secondary)}.dsham_batchFeedback progress{width:100%}.dsham_batchFeedback details{font-size:12px;overflow-wrap:anywhere}.dsham_archivePreview{max-height:260px;overflow:auto;display:grid;gap:8px;padding:8px 0}.dsham_archivePreview label{display:flex;gap:8px;align-items:center;overflow-wrap:anywhere}"),(!a||!c)&&t("div",{className:"dsham_organizer"},t("div",{className:"dsham_organizerControls"},!c&&r(s("organizer.reloadFavorites"),{disabled:l,onClick:S}),!a&&t(e.Fragment,null,t("label",null,s("organizer.idleDays"),t(kO,{min:1,max:36500,value:d===""?null:Number(d),disabled:l,"aria-label":s("organizer.idleDays"),onChange:o(y=>u(y==null?"":String(y)),"onChange")})),r(s("organizer.preview",{n:m}),{disabled:l||!c||m===0,onClick:p}))),!a&&t("p",null,s("organizer.rules"))),(g||h||v>0)&&t("section",{className:"dsham_batchFeedback","aria-label":s("organizer.feedback")},g&&t("div",{role:"status","aria-live":"polite"},t("progress",{value:g.done,max:Math.max(1,g.total),"aria-label":s("organizer.progress")}),s("organizer.progressCount",{done:g.done,total:g.total})),h&&t("div",{role:"status"},t("strong",null,s(`organizer.${h.kind??"archive"}Result`)),t("p",null,s("organizer.result",{succeeded:h.succeeded.length,skipped:h.skipped.length,failed:h.failures.length,remaining:h.unprocessed.length})),h.failures.length>0&&t(n,{title:s("organizer.failureDetails"),failures:h.failures,separator:s("common.separator")}),h.refreshError&&t("p",{role:"alert"},s("organizer.refreshError",{detail:h.refreshError})),h.remaining.length>0&&r(s("organizer.retry",{n:h.remaining.length}),{disabled:l,onClick:b})),v>0&&t("div",{className:"dsham_organizerControls"},r(s("organizer.undo",{n:v}),{disabled:l,onClick:x}),t("p",null,s("organizer.undoHint")))))},"OrganizerPanel")}o(hk,"createOrganizerPanel");var bk={"organizer.feedback":"\u64CD\u4F5C\u53CD\u9988","organizer.allSessions":"\u5168\u90E8\u4F1A\u8BDD","organizer.favoriteFilter":"\u6536\u85CF\u7B5B\u9009","organizer.archiveResult":"\u5F52\u6863\u7ED3\u679C","organizer.restoreResult":"\u6062\u590D\u7ED3\u679C","organizer.deleteResult":"\u5220\u9664\u7ED3\u679C","organizer.undoResult":"\u64A4\u56DE\u7ED3\u679C","organizer.favorite":"\u6536\u85CF","organizer.unfavorite":"\u53D6\u6D88\u6536\u85CF","organizer.favoritesOnly":"\u53EA\u770B\u6536\u85CF","organizer.reloadFavorites":"\u91CD\u65B0\u52A0\u8F7D\u6536\u85CF","organizer.idleDays":"\u95F2\u7F6E\u5929\u6570","organizer.preview":"\u9884\u89C8\u95F2\u7F6E\u5F52\u6863\uFF08{n}\uFF09","organizer.rules":"\u6309\u6700\u540E\u6D3B\u52A8\u65F6\u95F4\u7B5B\u9009\uFF0C\u9075\u5FAA\u5F53\u524D\u5217\u8868\u7B5B\u9009\u6761\u4EF6\uFF1B\u6392\u9664\u6536\u85CF\u3001\u5F53\u524D\u6253\u5F00\u3001\u6B63\u5728\u6267\u884C\u53CA\u7B49\u5F85\u4EA4\u4E92\u7684\u4F1A\u8BDD\u3002","organizer.progress":"\u6279\u91CF\u64CD\u4F5C\u8FDB\u5EA6","organizer.progressCount":"\u5DF2\u5904\u7406 {done} / {total}","organizer.result":"\u6210\u529F {succeeded} \xB7 \u8DF3\u8FC7 {skipped} \xB7 \u5931\u8D25 {failed} \xB7 \u672A\u5904\u7406 {remaining}","organizer.failureDetails":"\u67E5\u770B\u5931\u8D25\u8BE6\u60C5","organizer.refreshError":"\u64CD\u4F5C\u7ED3\u679C\u5DF2\u4FDD\u7559\uFF0C\u4F46\u5217\u8868\u5237\u65B0\u5931\u8D25\uFF1A{detail}","organizer.retry":"\u91CD\u8BD5\u5269\u4F59 {n} \u6761","organizer.undo":"\u64A4\u56DE\u672C\u6B21\u5F52\u6863\uFF08{n}\uFF09","organizer.undoHint":"\u4EC5\u4FDD\u7559\u672C\u6B21\u6253\u5F00\u7BA1\u7406\u9875\u671F\u95F4\u6700\u8FD1\u4E00\u6279\u5F52\u6863\uFF1B\u5173\u95ED\u9875\u9762\u6216\u5237\u65B0\u540E\u6E05\u9664\u3002\u64A4\u56DE\u4E0D\u4F1A\u6062\u590D\u5DF2\u5220\u9664\u7684\u4F1A\u8BDD\u3002","organizer.idleConfirm":"\u8BF7\u68C0\u67E5\u4EE5\u4E0B\u5019\u9009\uFF0C\u53EF\u53D6\u6D88\u52FE\u9009\uFF1B\u6267\u884C\u524D\u518D\u6B21\u6392\u9664\u6536\u85CF\u53CA\u6D3B\u8DC3\u4F1A\u8BDD\u3002","organizer.manualConfirm":"\u4EC5\u5F52\u6863\u4EE5\u4E0B\u52FE\u9009\u4F1A\u8BDD\uFF1B\u53EF\u9010\u6761\u53D6\u6D88\u3002\u5F52\u6863\u540E\u53EF\u64A4\u56DE\u672C\u6279\u64CD\u4F5C\u3002"},vk={"organizer.feedback":"Operation feedback","organizer.allSessions":"All sessions","organizer.favoriteFilter":"Favorites filter","organizer.archiveResult":"Archive results","organizer.restoreResult":"Restore results","organizer.deleteResult":"Delete results","organizer.undoResult":"Undo results","organizer.favorite":"Favorite","organizer.unfavorite":"Unfavorite","organizer.favoritesOnly":"Favorites only","organizer.reloadFavorites":"Reload favorites","organizer.idleDays":"Idle days","organizer.preview":"Preview idle archives ({n})","organizer.rules":"Uses last activity, the current list filters. Excludes favorites, open, running and waiting sessions.","organizer.progress":"Batch progress","organizer.progressCount":"Processed {done} / {total}","organizer.result":"Succeeded {succeeded} \xB7 Skipped {skipped} \xB7 Failed {failed} \xB7 Unprocessed {remaining}","organizer.failureDetails":"Failure details","organizer.refreshError":"Results retained, but refresh failed: {detail}","organizer.retry":"Retry remaining {n}","organizer.undo":"Undo this archive batch ({n})","organizer.undoHint":"Only the latest archive batch while this page is open is retained. Closing or refreshing clears undo. Deleted sessions cannot be restored.","organizer.idleConfirm":"Review and deselect candidates. Favorites and active sessions are checked again before archiving.","organizer.manualConfirm":"Only checked sessions below will be archived. You can undo this batch afterward."},yk={"organizer.feedback":"\u041E\u0442\u0437\u044B\u0432 \u043E\u0431 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438","organizer.allSessions":"\u0412\u0441\u0435 \u0441\u0435\u0441\u0441\u0438\u0438","organizer.favoriteFilter":"\u0424\u0438\u043B\u044C\u0442\u0440 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E","organizer.archiveResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438","organizer.restoreResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F","organizer.deleteResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F","organizer.undoResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043E\u0442\u043C\u0435\u043D\u044B","organizer.favorite":"\u0412 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","organizer.unfavorite":"\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E","organizer.favoritesOnly":"\u0422\u043E\u043B\u044C\u043A\u043E \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","organizer.reloadFavorites":"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","organizer.idleDays":"\u0414\u043D\u0438 \u043F\u0440\u043E\u0441\u0442\u043E\u044F","organizer.preview":"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u0440\u0445\u0438\u0432\u0430 \u043F\u0440\u043E\u0441\u0442\u043E\u044F ({n})","organizer.rules":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044E\u044E \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B \u0441\u043F\u0438\u0441\u043A\u0430. \u0418\u0441\u043A\u043B\u044E\u0447\u0430\u0435\u0442 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435, \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0435, \u0437\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u0438 \u043E\u0436\u0438\u0434\u0430\u044E\u0449\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438.","organizer.progress":"\u0425\u043E\u0434 \u043F\u0430\u043A\u0435\u0442\u043D\u043E\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438","organizer.progressCount":"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E {done} / {total}","organizer.result":"\u0423\u0441\u043F\u0435\u0448\u043D\u043E {succeeded} \xB7 \u041F\u0440\u043E\u043F\u0443\u0449\u0435\u043D\u043E {skipped} \xB7 \u041E\u0448\u0438\u0431\u043E\u043A {failed} \xB7 \u041D\u0435 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E {remaining}","organizer.failureDetails":"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043E\u0448\u0438\u0431\u043E\u043A","organizer.refreshError":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B, \u043D\u043E \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043F\u0438\u0441\u043A\u0430 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C: {detail}","organizer.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043E\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044F {n}","organizer.undo":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u0442\u0443 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044E ({n})","organizer.undoHint":"\u0421\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u043F\u0430\u043A\u0435\u0442\u043D\u0430\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F, \u043F\u043E\u043A\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u0430 \u044D\u0442\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430. \u0417\u0430\u043A\u0440\u044B\u0442\u0438\u0435 \u0438\u043B\u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442 \u043E\u0442\u043C\u0435\u043D\u0443. \u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043D\u0435\u043B\u044C\u0437\u044F.","organizer.idleConfirm":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u0430\u043D\u0434\u0438\u0434\u0430\u0442\u043E\u0432, \u043C\u043E\u0436\u043D\u043E \u0441\u043D\u044F\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443. \u041F\u0435\u0440\u0435\u0434 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0435\u0439 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u044E\u0442\u0441\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E.","organizer.manualConfirm":"\u0411\u0443\u0434\u0443\u0442 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435 \u043D\u0438\u0436\u0435 \u0441\u0435\u0441\u0441\u0438\u0438. \u042D\u0442\u0443 \u043F\u0430\u043A\u0435\u0442\u043D\u0443\u044E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E \u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435."};function S5(e){var t={exports:{}},r=t.exports;Object.defineProperty(r,Symbol.toStringTag,{value:"Module"});let n,i=!0;try{n=e("@deepseek-ai/dsh-client-store")}catch{i=!1,n=e("@deepseek-ai/dsh-client-runtime/client")}let s=e("react/jsx-runtime"),a=e("react"),l=e("@deepseek-ai/dsh-client-ui-primitives");l=new Proxy(l,{get(P,z,Y){let ae=Reflect.get(P,z,Y);if(ae!==void 0||typeof z!="string")return ae;let be=z.replace(/(\D)\d+$/,"$1Medium");return be===z?ae:Reflect.get(P,be,Y)}});function c({open:P,onClose:z,title:Y,description:ae,footer:be,children:we,className:Me,width:Le}){let et=a.useRef(null),ht=a.useCallback(()=>et.current?.closest(".dsham_settings")??document.body,[]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{hidden:!0,ref:et}),(0,s.jsx)(gh,{open:P,onCancel:z,title:Y,footer:be,className:Me,width:Le,getContainer:ht,destroyOnHidden:!0,children:ae==null?we:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("p",{children:ae}),we]})})]})}o(c,"SettingsModal");function d({variant:P="outline",icon:z,children:Y,danger:ae=!1,className:be,disabled:we,title:Me,onClick:Le,"aria-label":et,"aria-pressed":ht,"aria-expanded":Qe,"aria-haspopup":Ye}){let tt=P==="primary"?"primary":P==="ghost"||P==="toolbar"?"text":"default";return(0,s.jsx)(_n,{type:tt,danger:ae,shape:"round",icon:z,className:be,disabled:we,title:Me,onClick:Le,"aria-label":et,"aria-pressed":ht,"aria-expanded":Qe,"aria-haspopup":Ye,children:Y})}o(d,"settingsButton");function u(P,z){let Y={className:P?"dsham_archiveTabsLocked":void 0,children:z};return P&&(Y.inert=""),Y}o(u,"tabsShell");let m=hk(a),{HighlightedText:p,useSessionDetails:g,useArchiveSearch:h,useArchivePreview:b,DiscoveryFilters:v,SearchStatus:x,PreviewContent:S}=KO(a),y=XO(a,{warning:l.IconWarningOutline16,info:l.IconInfoOutline14,check:l.IconCheckOutline16,refresh:l.IconRefreshOutline16,search:l.IconSearchOutline16,chevron:l.IconChevronDownOutline14}),C={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 w(P){let z=document.createElement("span"),Y=document.createElementNS("http://www.w3.org/2000/svg","svg");Y.setAttribute("viewBox","0 0 16 16"),Y.setAttribute("width","16"),Y.setAttribute("height","16"),Y.setAttribute("fill","none"),Y.setAttribute("stroke","currentColor"),Y.setAttribute("stroke-width","1.5"),Y.setAttribute("stroke-linecap","round"),Y.setAttribute("stroke-linejoin","round"),Y.setAttribute("aria-hidden","true");for(let ae of C[P]){let be=document.createElementNS("http://www.w3.org/2000/svg","path");be.setAttribute("d",ae),Y.append(be)}return z.append(Y),z}o(w,"createPluginUpdateIcon");let E={parse(P){if(typeof P!="string"||P.length===0)throw new TypeError(`sessionId must be a non-empty string, got ${String(P)}`);return P}},R={parse(P){let z=Ur(P);if(typeof z!="object"||z===null||Array.isArray(z))throw new TypeError("result must be an object");let Y=z.archivedSessionIds;if(!Array.isArray(Y)||Y.some(ae=>typeof ae!="string"))throw new TypeError("archivedSessionIds must be a string array");return z}},$={parse(P){let z=Ur(P);if(typeof z!="object"||z===null||Array.isArray(z)||z.deleted!==!0)throw new TypeError("deleted must be true");return z}},I={parse(P){let z=Ur(P);if(typeof z!="object"||z===null||Array.isArray(z))throw new TypeError("target must be an object");if(z.scope==="all"||z.scope==="ungrouped"||z.scope==="workspace"&&typeof z.workspaceId=="string"&&z.workspaceId.length>0||z.scope==="sessions"&&Array.isArray(z.sessionIds)&&z.sessionIds.length>0&&z.sessionIds.every(Y=>typeof Y=="string"&&Y.length>0))return z;throw new TypeError("target.scope must be all, ungrouped, workspace with a non-empty workspaceId, or sessions with non-empty sessionIds")}},T={parse(P){let z=Ur(P);if(typeof z!="object"||z===null||Array.isArray(z))throw new TypeError("result must be an object");for(let Y of["requestedSessionIds","deletedSessionIds","skippedSessionIds"])if(!Array.isArray(z[Y])||z[Y].some(ae=>typeof ae!="string"))throw new TypeError(`${Y} must be a string array`);if(!Array.isArray(z.failures)||z.failures.some(Y=>typeof Y!="object"||Y===null||typeof Y.sessionId!="string"||typeof Y.message!="string"))throw new TypeError("failures must contain sessionId/message objects");return z}},M={parse(P){let z=Ur(P);if(typeof z!="object"||z===null||Array.isArray(z)||!Array.isArray(z.items))throw new TypeError("result.items must be an array");if(z.items.some(Y=>typeof Y!="object"||Y===null||typeof Y.sessionId!="string"||typeof Y.createdAt!="number"||!Number.isFinite(Y.createdAt)))throw new TypeError("items must contain sessionId/createdAt objects");if(z.repairedSessionIds!==void 0&&(!Array.isArray(z.repairedSessionIds)||z.repairedSessionIds.some(Y=>typeof Y!="string")))throw new TypeError("repairedSessionIds must be a string array");return z}};function N(P,z){return{mode:"strict",typeSymbol:P,create:o(()=>z,"create"),schema:z}}o(N,"strictCodec");let k={package:"@michengai/dsh-archive-manager",descriptors:[...fk(),...VO(),{id:"@michengai/dsh-archive-manager#workspaceRegistry/unarchiveSession",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"unarchiveSession",invocation:{kind:"direct"},parameters:[{name:"sessionId",wire:"sessionId",source:"json",codec:N("@deepseek-ai/dsh-session/types#SessionId",E)}],result:N("@michengai/dsh-archive-manager/types#ArchivedSessionIds",R),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}},{id:"@michengai/dsh-archive-manager#workspaceRegistry/deleteSession",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"deleteSession",invocation:{kind:"direct"},parameters:[{name:"sessionId",wire:"sessionId",source:"json",codec:N("@deepseek-ai/dsh-session/types#SessionId",E)}],result:N("@michengai/dsh-archive-manager/types#Deleted",$),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}},{id:"@michengai/dsh-archive-manager#workspaceRegistry/deleteArchivedSessions",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"deleteArchivedSessions",invocation:{kind:"direct"},parameters:[{name:"target",wire:"target",source:"json",codec:N("@michengai/dsh-archive-manager/types#ArchivedBatchTarget",I)}],result:N("@michengai/dsh-archive-manager/types#DeletedBatch",T),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}},{id:"@michengai/dsh-archive-manager#workspaceRegistry/archivedSessionMetadata",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"archivedSessionMetadata",invocation:{kind:"direct"},parameters:[],result:N("@michengai/dsh-archive-manager/types#ArchivedSessionMetadata",M),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}}]},D={row:"dsham_archivedRow",title:"dsham_archivedTitle",badge:"dsham_archivedBadge",content:"dsham_archiveCardContent",meta:"dsham_archiveCardMeta",actions:"dsham_archiveCardActions",unarchive:"dsham_archiveCardUnarchive",delete:"dsham_archiveCardDelete"},A=".dshamRow_sessionRow.dsham_archivedRow{box-sizing:border-box;cursor:default;min-height:64px;height:auto;background:var(--dsw-alias-button-elevated-fill);border:1px solid var(--dsw-alias-border-l2);border-radius:16px;gap:12px;margin:8px 0;padding:10px 16px}.dshamRow_sessionRow.dsham_archivedRow:hover{background:var(--dsw-alias-button-elevated-fill);border-color:var(--dsw-alias-border-l3)}.dshamRow_searchResultRow.dsham_archivedRow{background:var(--dsw-alias-button-elevated-fill);border:1px solid var(--dsw-alias-border-l2);border-radius:16px;margin:8px 0;padding:10px 16px}.dsham_archivedTitle{color:var(--dsw-alias-label-primary);font-weight:600}.dsham_archivedBadge{display:none}.dsham_archiveCardContent{min-width:0;flex:1;flex-direction:column;gap:2px;display:flex}.dsham_archiveCardMeta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.dshamRow_sessionRow.dsham_archivedRow>.dshamRow_time,.dshamRow_sessionRow.dsham_archivedRow>.dshamRow_rowActions{display:none}.dsham_archiveCardActions{align-items:center;gap:12px;display:inline-flex}.dsham_archiveCardActions button{cursor:pointer;border:none;flex:none}.dsham_archiveCardDelete{width:28px;height:28px;color:var(--dsw-alias-label-tertiary);background:transparent;border-radius:8px;align-items:center;justify-content:center;display:inline-flex}.dsham_archiveCardDelete:hover{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover)}.dsham_archiveCardUnarchive{height:32px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-button-elevated-fill);border:1px solid var(--dsw-alias-border-l2)!important;border-radius:10px;padding:0 12px;font-size:13px;font-weight:600;line-height:20px}.dsham_archiveCardUnarchive:hover{background:var(--dsw-alias-interactive-bg-hover)}";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify("dsh-archive-manager/Archived.module.css")+"]")===null){let P=document.createElement("style");P.dataset.plugin="@michengai/dsh-archive-manager",P.dataset.pluginCss="dsh-archive-manager/Archived.module.css",P.textContent=A,document.head.appendChild(P)}function B(P){let z=new Map;for(let Y of Object.values(P)){if(Y.origin!=="subagent")continue;let ae=new Set,be=Y;for(;be?.origin==="subagent"&&be.parentId!==void 0&&!ae.has(be.id);){ae.add(be.id);let we=z.get(be.parentId);we===void 0?z.set(be.parentId,{count:1,runningCount:Y.running?1:0}):(we.count+=1,Y.running&&(we.runningCount+=1)),be=P[be.parentId]}}return z}o(B,"indexSubagentDescendants");let L="__flat_session_order__",F="dsh.archive-manager.workspace.view.v1",q="dsh.workspace.view.v5";function X(P){let z=P??globalThis.localStorage;if(z==null||typeof z.getItem!="function"||typeof z.setItem!="function")return!1;try{if(z.getItem(F)!=null)return!1;let Y=z.getItem(q);return Y==null?!1:(z.setItem(F,Y),!0)}catch{return!1}}o(X,"migrateWorkspaceViewPersist");function W(){return X(),(0,n.defineStore)({init:o(()=>({groupBy:"workspace",orderBy:"updated",showArchived:!1,groupExpansion:{},sessionOrderByAccount:{},sessionUpdatedAtByAccount:{}}),"init"),persist:F,actions:{setGroupBy:o((P,z)=>{P.groupBy=z},"setGroupBy"),setOrderBy:o((P,z)=>{P.orderBy=z},"setOrderBy"),setShowArchived:o((P,z)=>{P.showArchived=z===!0},"setShowArchived"),setGroupExpanded:o((P,z,Y)=>{P.groupExpansion[z]=Y},"setGroupExpanded"),retainAccountKeys:o((P,z)=>{let Y=new Set(z);P.groupExpansion=Object.fromEntries(Object.entries(P.groupExpansion).filter(([ae])=>Y.has(ae))),P.sessionOrderByAccount=Object.fromEntries(Object.entries(P.sessionOrderByAccount).filter(([ae])=>Y.has(ae))),P.sessionUpdatedAtByAccount=Object.fromEntries(Object.entries(P.sessionUpdatedAtByAccount).filter(([ae])=>Y.has(ae)))},"retainAccountKeys"),syncSessionOrderAccount:o((P,z,Y,ae)=>{P.sessionOrderByAccount[z]=Y,P.sessionUpdatedAtByAccount[z]=ae},"syncSessionOrderAccount"),setSessionOrder:o((P,z,Y)=>{P.sessionOrderByAccount[z]=Y},"setSessionOrder")}})}o(W,"createWorkspaceViewStore");function j(){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,focusable:"false",children:(0,s.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"})})}o(j,"GithubMark16");function Z({archiveSessions:P,archiveSession:z,sessionStore:Y,workspaceStore:ae,unarchiveSession:be,deleteSession:we,unarchiveSessions:Me,deleteArchivedSessions:Le,archivedSessionMetadata:et,openConversation:ht,focusSessionWorkspace:Qe,viewState:Ye,close:tt,t:de,diagnoseSession:io,repairSession:vo,sessionDetails:Ir,searchSessionContent:No,searchArchivedContent:Mo,previewArchivedSession:Pr,favoriteSessions:It,setSessionFavorite:Zt,organizeBatch:kr,useSessionPendingInteraction:Cr,useSessionStatus:wo}){let st=(0,a.useSyncExternalStore)(Y.subscribe,Y.getSnapshot),wr=(0,a.useSyncExternalStore)(ae.subscribe,ae.getSnapshot),[Dr,mo]=(0,a.useState)("archived"),or=Dr==="archived",[Fr,jr]=(0,a.useState)(null),[Yo,Jt]=(0,a.useState)(null),[Nr,vr]=(0,a.useState)(null),nr=o((Re,dt=null)=>{fr(null),nt(null),_s(!1),Jt(dt),jr(Re)},"requestArchive"),To=o(()=>{Bt||(jr(null),Jt(null),fr(null))},"closeArchive"),Vr=(0,a.useRef)(!1),[dr,Ro]=(0,a.useState)(null),po=(0,a.useRef)(!1),[Bt,Wr]=(0,a.useState)(!1),[nn,fr]=(0,a.useState)(null),[_e,nt]=(0,a.useState)(null),Ot=o(Re=>{fr(null),nt(null),Ro(Re)},"requestDelete"),[eo,Eo]=(0,a.useState)(Ye?.query??""),[$r,Vo]=(0,a.useState)(Ye?.project??"all"),[Ge,gr]=(0,a.useState)(Ye?.sortBy??"updated"),[Xr,Ko]=(0,a.useState)({}),[Yr,sn]=(0,a.useState)(()=>new Set),Dt=(0,a.useRef)(new Set),[fo,Kr]=(0,a.useState)([]),[Bn,$o]=(0,a.useState)([]),[ui,Ma]=(0,a.useState)(!1),[Il,sd]=(0,a.useState)(!1),qi=(0,a.useRef)(!1),[Pl,ym]=(0,a.useState)(!1),[Ds,cs]=a.useState("title"),[Nl,ad]=a.useState(""),[Ml,ld]=a.useState(""),[As,cd]=(0,a.useState)(()=>new Set),[Tl,xm]=(0,a.useState)("30"),[Ta,_s]=(0,a.useState)(!1),[In,ds]=(0,a.useState)(null),[dd,Oa]=(0,a.useState)(null),[Ol,ka]=(0,a.useState)([]),us=(0,a.useRef)(!1),Gi=(0,a.useRef)(null),Da=qe(Cr??We,wo??ze,typeof wo=="function"),Ls=(0,a.useRef)(Da.pending);Ls.current=Da.pending;let mi=(0,a.useMemo)(()=>new Set(Bn),[Bn]),Sm=o(async()=>{if(It)try{let Re=await It();$o(Re.favoriteSessionIds),Ma(!0)}catch(Re){Ma(!1),fr(xn(Re))}},"loadFavorites");(0,a.useEffect)(()=>{let Re=!0;return It&&It().then(dt=>{Re&&($o(dt.favoriteSessionIds),Ma(!0))}).catch(dt=>{Re&&fr(xn(dt))}),()=>{Re=!1}},[It]);let kl=o(async Re=>{if(!(qi.current||Bt||!ui)){qi.current=!0,sd(!0),fr(null);try{let dt=await Zt({sessionId:Re,favorite:!mi.has(Re)});$o(dt.favoriteSessionIds)}catch(dt){fr(xn(dt))}finally{qi.current=!1,sd(!1)}}},"toggleFavorite"),Aa=o(async(Re,dt,{idle:tr=!1,retry:Mr=!1}={})=>{if(!(us.current||qi.current||Dt.current.size>0||!kr)){us.current=!0,Wr(!0),fr(null),nt(null),Oa(null),Re==="archive"&&!Mr&&ka([]);try{let pt=await kr(Re,dt,{idleDays:tr?Number(Tl):void 0,getPending:o(()=>Ls.current,"getPending"),onProgress:o(Qr=>{ds(Qr),Re==="archive"&&Qr.total>0&&Qr.done>=Qr.total&&(jr(null),Jt(null),_s(!1))},"onProgress")});return Oa({...pt,kind:Re,tab:Dr}),Gi.current=pt.remaining.length?{kind:Re,ids:pt.remaining,idle:tr}:null,Re==="archive"&&ka(Qr=>[...new Set([...Qr,...pt.succeeded])]),(Re==="undo"||Re==="restore"||Re==="delete")&&ka(Qr=>Qr.filter(Pn=>!pt.succeeded.includes(Pn)&&!pt.skipped.includes(Pn))),Kr(Qr=>Qr.filter(Pn=>!pt.succeeded.includes(Pn)&&!pt.skipped.includes(Pn))),Re==="delete"&&$o(Qr=>Qr.filter(Pn=>!pt.succeeded.includes(Pn))),pt}catch(pt){fr(xn(pt))}finally{us.current=!1,Wr(!1),ds(null)}}},"executeBatch"),Pi=(0,a.useRef)(!0),ud=(0,a.useRef)(!1);(0,a.useEffect)(()=>(Pi.current=!0,()=>{Pi.current=!1}),[]);let Kn=o(async(Re,dt=!1)=>{if(Bt||ud.current)return;ud.current=!0,Wr(!0),fr(null);let tr=!1;try{await rk({prepare:dt?async Mr=>{await Qe?.(Mr)}:void 0,restore:o(async Mr=>{await be(Mr),tr=!0},"restore"),open:o(async Mr=>{await ht(Mr),Pi.current&&tt?.()},"open")},Re.id,dt,()=>Pi.current)}catch(Mr){if(!Pi.current)return;if(tr){mo("unarchived");let pt=pi.find(Qr=>Qr.sessions.some(Pn=>Pn.id===Re.id));pt!==void 0&&Vo(pt.key)}fr(tk(Mr,de))}finally{ud.current=!1,Pi.current&&Wr(!1)}},"viewConversation");(0,a.useEffect)(()=>{Ye&&Object.assign(Ye,{query:eo,project:$r,sortBy:Ge})},[eo,$r,Ge,Ye]);let ms=(0,a.useMemo)(()=>or?wr.archivedSessionIds:bm(st.byId,wr.archivedSessionIds),[or,st.byId,wr.archivedSessionIds]),Bs=WO(ms,st.byId),Dl=(0,a.useRef)(Bs);Bt||(Dl.current=Bs);let pi=(0,a.useMemo)(()=>e0(st.byId,wr.items,ms,de("group.ungrouped")),[st.byId,wr,ms,de]),Al=o(Re=>{Bt||Dt.current.size>0||(yn.close(),mo(Re),Kr([]),jr(null),Jt(null),fr(null),nt(null),Vo("all"),Eo(""))},"switchTab"),md=o(async(Re,dt=!1)=>{if(!(Vr.current||Bt||!Re?.length)){if(kr){Vr.current=!0;try{let tr=await Aa("archive",Re,{idle:dt}),Mr=tr?.failures.map(pt=>$e(pt.sessionId,pt.message)).find(pt=>pt!==void 0);if(Mr!==void 0&&typeof z=="function"){let pt=st.byId[Mr.sessionId];vr({sessionId:Mr.sessionId,title:pt===void 0?Mr.sessionId:Rt(pt,de),kinds:Mr.kinds.join(", ")}),jr(null),Jt(null),fr(null);return}tr&&(jr(null),Jt(null),_s(!1))}finally{Vr.current=!1}return}Vr.current=!0,Wr(!0),fr(null),nt(null);try{let tr=await P(Re);Kr([]),mo("archived"),Vo("all"),Eo(""),nt(de("archives.archiveSuccess",{n:tr.archivedSessionIdsAdded.length})),jr(null),Jt(null)}catch(tr){let Mr=Ee(tr);if(Mr!==void 0&&typeof z=="function"){let pt=st.byId[Mr.sessionId];vr({sessionId:Mr.sessionId,title:pt===void 0?Mr.sessionId:Rt(pt,de),kinds:Mr.kinds.join(", ")}),jr(null),Jt(null),fr(null)}else{let pt=me(tr);fr(pt===void 0?de("archives.archiveBatchFailed",{detail:tr instanceof Error?tr.message:String(tr)}):de("archives.archiveActive",{kinds:pt.join(", ")}))}}finally{Vr.current=!1,Wr(!1)}}},"performArchive"),Ch=o(()=>md(Fr,Ta),"confirmArchive"),fi=g(Dl.current,Ir,de,Bt),ps=o(async(Re,dt)=>{fr(null),nt(null);try{let tr=Re.id;if(dt==="path"){let Mr=fi.byId[Re.id];if(Mr||(Mr=(await Ir({sessionIds:[Re.id]})).items[0]),!Mr?.path)throw new Error(de("details.noPath"));tr=Mr.path}await zO(tr),Pi.current&&nt(de("details.copied"))}catch(tr){Pi.current&&fr(typeof Hl(tr)=="string"&&String(Hl(tr)).startsWith("copy.")?de(String(Hl(tr))):xn(tr))}},"copyDetail"),_l=(0,a.useMemo)(()=>t0(pi,Ge,Xr,de,fi.byId),[pi,Ge,Xr,de,fi.byId]);(0,a.useEffect)(()=>{if(Bt)return;let Re=!1;return et().then(dt=>{Re||Ko(Object.fromEntries(dt.items.map(tr=>[tr.sessionId,tr.createdAt])))}).catch(()=>{Re||Ko({})}),()=>{Re=!0}},[et,wr.archivedSessionIds,Bt]),(0,a.useEffect)(()=>{$r!=="all"&&!pi.some(Re=>Re.key===$r)&&Vo("all")},[pi,$r]);let Fs=!XC(Nl,Ml),Ll=_l.filter(Re=>$r==="all"||$r===Re.key).map(Re=>({...Re,sessions:Re.sessions.filter(dt=>(!Pl||mi.has(dt.id))&&UO(dt.updatedAt,Nl,Ml))})).filter(Re=>Re.sessions.length),_a=Ds==="content"&&!Fs,fs=h(Ll.flatMap(Re=>Re.sessions.map(dt=>dt.id)),eo,_a,No??Mo),Bl=new Map(fs.items.map(Re=>[Re.sessionId,Re])),yn=b(Pr,or?wr.archivedSessionIds:[]),pd=eo.trim().toLocaleLowerCase(),La=Ll.map(Re=>({...Re,sessions:Re.sessions.filter(dt=>!pd||Rt(dt,de).toLocaleLowerCase().includes(pd)||Bl.has(dt.id))})).filter(Re=>Re.sessions.length),fd=ui?La.flatMap(Re=>Re.sessions).filter(Re=>JC(Re,{days:Number(Tl),favorites:mi,currentId:li(st),pending:Da.pending})).map(Re=>Re.id):[],Ni=(0,a.useMemo)(()=>Na(La),[La]),gs=(0,a.useMemo)(()=>new Set(fo),[fo]),Ba=(0,a.useMemo)(()=>{let Re=new Set(wr.archivedSessionIds);return Ol.reduce((dt,tr)=>dt+(Re.has(tr)?1:0),0)},[Ol,wr.archivedSessionIds]),Hs=Ni.filter(Re=>gs.has(Re)).length,Fl=Ni.length>0&&Hs===Ni.length;(0,a.useEffect)(()=>{Kr(Re=>hm(Re,ms))},[ms]);let Cm=o((Re,dt)=>{Kr(tr=>$l(tr,[Re],dt))},"toggleSessionSelection"),wm=o(Re=>{Kr(dt=>$l(dt,Ni,Re))},"toggleVisibleSelection"),Fa=o(Re=>{Bt||Dt.current.has(Re)||(Dt.current.add(Re),sn(new Set(Dt.current)),fr(null),nt(null),be(Re).catch(dt=>{fr(se(dt,de))}).finally(()=>{Dt.current.delete(Re),sn(new Set(Dt.current))}))},"onUnarchive"),gd=o(async Re=>{if(!Bt){if(kr){let dt=cr(wr.archivedSessionIds,wr.items,Re),tr=await Aa("restore",dt);return tr&&{unarchivedSessionIds:tr.succeeded}}Wr(!0),fr(null),nt(null);try{let dt=await Me(Re);return nt(de("archives.restoreSuccess",{n:dt.unarchivedSessionIds.length})),dt}catch(dt){fr(de("archives.restoreBatchFailed",{detail:dt instanceof Error?dt.message:String(dt)}))}finally{Wr(!1)}}},"onBatchUnarchive"),wh=o(async()=>{if(fo.length===0)return;let Re=await gd({scope:"sessions",sessionIds:fo});if(Re!==void 0){let dt=new Set(Re.unarchivedSessionIds);Kr(tr=>tr.filter(Mr=>!dt.has(Mr)))}},"onSelectedUnarchive"),Te=o(()=>{Bt||Ro(null)},"closeDelete");(0,a.useEffect)(()=>{if(dr===null)return;let Re=o(dt=>{dt.key==="Escape"&&(dt.preventDefault(),dt.stopPropagation(),"stopImmediatePropagation"in dt&&typeof dt.stopImmediatePropagation=="function"&&dt.stopImmediatePropagation(),Bt||Ro(null))},"onKeyDown");return window.addEventListener("keydown",Re,!0),()=>window.removeEventListener("keydown",Re,!0)},[dr,Bt]);let Ar=o(async()=>{if(Bt||po.current||dr===null)return;if(dr.kind!=="batch"){po.current=!0,Wr(!0),fr(null),nt(null);try{await we(dr.session.id),Ro(null)}catch(dt){fr(ie(dt,de))}finally{po.current=!1,Wr(!1)}return}if(us.current||qi.current||Dt.current.size>0)return;let{target:Re}=dr;if(Re.scope==="sessions"&&cr(wr.archivedSessionIds,wr.items,Re).length===0){Ro(null);return}us.current=!0,Wr(!0),fr(null),nt(null),Oa(null),ds(null);try{let dt=await Le(Re),tr=id(dt,de);tr.kind==="error"?fr(tr.message):nt(tr.message);let Mr=new Set([...dt.deletedSessionIds,...dt.skippedSessionIds]);ka(Qr=>Qr.filter(Pn=>!Mr.has(Pn))),Kr(Qr=>Qr.filter(Pn=>!Mr.has(Pn))),$o(Qr=>Qr.filter(Pn=>!Mr.has(Pn)));let pt=dt.failures.map(Qr=>Qr.sessionId);Gi.current=pt.length>0?{kind:"delete",ids:pt,idle:!1}:null,Oa({requested:dt.requestedSessionIds,succeeded:dt.deletedSessionIds,skipped:dt.skippedSessionIds,failures:dt.failures,unprocessed:[],remaining:pt,refreshError:"refreshError"in dt&&typeof dt.refreshError=="string"?dt.refreshError:null,kind:"delete",tab:Dr}),Ro(null)}catch(dt){fr(ie(dt,de))}finally{us.current=!1,Wr(!1)}},"confirmDelete"),an=dr?.kind==="batch"?dr.target.scope:null,Rm=an==="ungrouped"?de("archives.deleteUngroupedTitle"):an==="workspace"?de("archives.deleteProjectTitle",{name:dr?.kind==="batch"?dr.title:""}):de(an==="sessions"?"archives.deleteSelectedTitle":"deleteSession.title"),a0=dr===null?void 0:an==="ungrouped"?de("archives.deleteUngroupedDesc",{n:dr.kind==="batch"?dr.count:0}):an==="workspace"?de("archives.deleteProjectDesc",{name:dr?.kind==="batch"?dr.title:"",n:dr.kind==="batch"?dr.count:0}):an==="sessions"?de("archives.deleteSelectedDesc",{n:dr.kind==="batch"?dr.count:0}):de("deleteSession.desc",{name:Rt(dr.kind==="session"?dr.session:{},de)}),Rk=de(an==="ungrouped"?"archives.deleteUngroupedConfirm":an==="workspace"?"archives.deleteProjectConfirm":an==="sessions"?"archives.deleteSelectedConfirm":"deleteSession.title");return(0,s.jsx)(od,{children:(0,s.jsxs)("section",{className:"dsham_settings","aria-label":de("archives.title"),children:[(0,s.jsx)("style",{children:Ii+Nt+zo+Lo+Yn+ci}),(0,s.jsxs)("div",{className:"dsham_settingsHeader",children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"dsham_settingsTitleRow",children:[(0,s.jsx)("h2",{children:de("archives.title")}),(0,s.jsxs)("div",{className:"dsham_settingsLinks",children:[(0,s.jsx)(_n,{size:"small",shape:"default",href:"https://github.com/MichengAI/dsh-archive-manager",target:"_blank",rel:"noreferrer","aria-label":de("archives.viewProject"),icon:(0,s.jsx)(j,{}),children:de("archives.viewProject")}),(0,s.jsx)(_n,{size:"small",shape:"default",href:"https://github.com/MichengAI/dsh-archive-manager/issues",target:"_blank",rel:"noreferrer","aria-label":de("archives.feedback"),icon:(0,s.jsx)(l.IconListPenOutline16,{}),children:de("archives.feedback")})]})]}),(0,s.jsx)("p",{className:"dsham_settingsIntro",children:de("archives.description")})]}),a.createElement("div",u(Bt||Yr.size>0,(0,s.jsx)(hh,{block:!0,"aria-label":de("archives.title"),value:Dr==="unarchived"?"unarchived":"archived",onChange:o(Re=>Al(String(Re)==="unarchived"?"unarchived":"archived"),"onChange"),options:[{value:"archived",label:de("archives.tab.archived")},{value:"unarchived",label:de("archives.tab.unarchived")}]})))]}),(0,s.jsxs)("div",{id:"dsham-archive-panel",role:"region","aria-label":de(Dr==="unarchived"?"archives.tab.unarchived":"archives.tab.archived"),children:[(0,s.jsxs)("div",{className:"dsham_settingsToolbar",children:[(0,s.jsxs)("div",{className:"dsham_settingsSearch",children:[typeof Zt=="function"&&(0,s.jsx)(lr,{id:"dsham-favorite-filter",value:Pl?"favorites":"all",disabled:Bt||Il||!ui,options:[{value:"all",label:de("organizer.allSessions")},{value:"favorites",label:de("organizer.favoritesOnly")}],onChange:o(Re=>ym(Re==="favorites"),"onChange"),"aria-label":de("organizer.favoriteFilter")}),a.createElement(lr,{id:"dsham-search-scope",value:Ds,"aria-label":de("discovery.scope"),disabled:Bt||Yr.size>0,onChange:cs,options:[{value:"title",label:de("discovery.titleOnly")},{value:"content",label:de("discovery.titleAndContent")}]}),(0,s.jsx)(OO,{className:"dsham_searchField",type:"search",maxLength:200,allowClear:!0,value:eo,onChange:o(Re=>Eo(Re.target.value),"onChange"),placeholder:de(_a?"discovery.searchPlaceholder":or?"archives.searchPlaceholder":"archives.searchUnarchived"),"aria-label":de(_a?"discovery.searchPlaceholder":or?"archives.searchPlaceholder":"archives.searchUnarchived")})]}),(0,s.jsxs)("div",{className:"dsham_settingsFilters",children:[(0,s.jsx)(lr,{id:"dsham-project-filter",className:"dsham_projectFilter",value:$r,options:[{value:"all",label:de("archives.allProjects"),title:de("archives.allProjects")},..._l.map(Re=>({value:Re.key,label:Re.title,title:Re.title}))],onChange:Vo,"aria-label":de("archives.projectFilter")}),a.createElement(v,{t:de,from:Nl,to:Ml,onFrom:ad,onTo:ld,invalid:Fs,onClear:o(()=>{ad(""),ld("")},"onClear")}),(0,s.jsxs)("div",{className:"dsham_settingsSort",children:[(0,s.jsx)("span",{className:"dsham_settingsSortLabel","aria-hidden":!0,children:de("archives.sortLabel")}),(0,s.jsx)(lr,{id:"dsham-sort-filter",value:Ge,options:[{value:"updated",label:de("archives.sortUpdated")},{value:"created",label:de("archives.sortCreated")},{value:"alphabetical",label:de("archives.sortAlphabetical")},...typeof Ir=="function"?[{value:"turnsDesc",label:de("details.more")},{value:"turnsAsc",label:de("details.less")}]:[]],onChange:gr,"aria-label":de("archives.sortBy")})]})]})]}),a.createElement("style",null,QO),a.createElement(x,{state:fs,t:de}),a.createElement(y,{key:Dr,t:de,isArchived:or,items:fi.items,sessions:pi.flatMap(Re=>Re.sessions),diagnoseSession:io,repairSession:vo,retry:fi.retry,pending:fi.pending}),kr&&(0,s.jsx)(m,{t:de,archived:or,busy:Bt||Il||Yr.size>0,ready:ui,days:Tl,onDays:xm,count:fd.length,onPreview:o(()=>{nr(fd),_s(!0)},"onPreview"),progress:In,result:dd?.tab===Dr?dd:null,onRetry:o(()=>{let Re=Gi.current;Re&&(Re.kind==="delete"?Ot({kind:"batch",target:{scope:"sessions",sessionIds:Re.ids},count:Re.ids.length}):Aa(Re.kind,Re.ids,{idle:Re.idle,retry:!0}))},"onRetry"),undoCount:Ba,onUndo:o(()=>Aa("undo",Ol,{retry:!0}),"onUndo"),onReload:Sm}),pi.length>0&&(0,s.jsx)(rn,{selectedCount:fo.length,hiddenCount:fo.length-Hs,allVisibleSelected:Fl,selectedVisibleCount:Hs,visibleCount:Ni.length,busy:Bt,t:de,onToggle:wm,onClear:o(()=>Kr([]),"onClear"),onArchive:or?void 0:()=>nr([...fo]),onRestore:wh,onDelete:o(()=>Ot({kind:"batch",target:{scope:"sessions",sessionIds:fo},count:fo.length}),"onDelete")}),pi.length===0?(0,s.jsx)("div",{className:"dsham_settingsEmpty",children:de(or?"archives.empty":"archives.emptyUnarchived")}):La.length===0?(0,s.jsx)("div",{className:"dsham_settingsEmpty",children:fs.status==="loading"||fs.status==="error"||fs.failures.length?null:de("archives.emptyFiltered")}):La.map(Re=>{let dt=ot(Re.key),tr=pi.find(pt=>pt.key===Re.key)?.sessions.map(pt=>pt.id)??[],Mr=or?cr(wr.archivedSessionIds,wr.items,dt).length:tr.length;return(0,s.jsxs)("section",{className:"dsham_settingsGroup",children:[(0,s.jsxs)("div",{className:"dsham_settingsGroupHeading",children:[(0,s.jsx)("h3",{className:"dsham_settingsGroupTitle",children:(0,s.jsxs)("button",{type:"button",className:"dsham_groupToggle","aria-expanded":!As.has(Re.key),"aria-controls":"dsham-group-"+encodeURIComponent(Re.key),onClick:o(()=>cd(pt=>{let Qr=new Set(pt);return Qr.has(Re.key)?Qr.delete(Re.key):Qr.add(Re.key),Qr}),"onClick"),children:[(0,s.jsx)(As.has(Re.key)?l.IconChevronRightOutline14:l.IconChevronDownOutline14,{}),(0,s.jsx)(l.IconFolderOpenOutline16,{}),(0,s.jsx)("span",{children:Re.title})]})}),(0,s.jsxs)("div",{className:"dsham_settingsGroupMeta",children:[(0,s.jsx)("span",{className:"dsham_settingsCount",children:de("archives.sessionCount",{n:Re.sessions.length})}),(0,s.jsx)(ar,{group:Re,busy:Bt,onArchive:or?void 0:()=>nr(tr,Re),onRestore:o(()=>gd(dt),"onRestore"),onDelete:o(()=>Ot({kind:"batch",target:dt,title:Re.title,count:Mr}),"onDelete"),t:de})]})]}),(0,s.jsx)(VC,{className:"dsham_settingsList",id:"dsham-group-"+encodeURIComponent(Re.key),size:"small",split:!1,style:As.has(Re.key)?{display:"none"}:void 0,children:!As.has(Re.key)&&Re.sessions.map(pt=>(0,s.jsxs)(VC.Item,{className:"dsham_settingsRow","data-selected":gs.has(pt.id),children:[(0,s.jsx)(di,{checked:gs.has(pt.id),disabled:Bt,label:de("archives.selectSession",{name:Rt(pt,de)}),onChange:o(Qr=>Cm(pt.id,Qr.target.checked),"onChange")}),(0,s.jsxs)("div",{className:"dsham_settingsContent",children:[(0,s.jsx)("button",{type:"button",className:"dsham_settingsTitleLink",title:Rt(pt,de),"aria-label":de("archives.openSession")+de("common.separator")+Rt(pt,de),disabled:Bt||Yr.has(pt.id),onClick:o(()=>Kn(pt),"onClick"),children:Rt(pt,de)}),(0,s.jsx)("div",{className:"dsham_settingsMeta",children:[jt(pt.updatedAt,de),typeof Ir=="function"&&a.createElement("span",{key:"turns",title:fi.byId[pt.id]?.error||de("details.hint")}," \xB7 ",de(typeof fi.byId[pt.id]?.turnCount=="number"?"details.turns":fi.byId[pt.id]?"details.unknown":"details.pending",{n:fi.byId[pt.id]?.turnCount}))]}),Bl.has(pt.id)&&a.createElement("button",{type:"button",className:"dsham_settingsSnippet",disabled:Bt,title:de(or?"discovery.preview":"archives.openSession"),onClick:o(()=>or?yn.open(pt,eo):Kn(pt),"onClick")},a.createElement(p,{text:Bl.get(pt.id)?.snippet??"",query:eo}))]}),(0,s.jsxs)("div",{className:"dsham_settingsActions",children:[typeof Zt=="function"&&d({variant:"ghost",className:mi.has(pt.id)?"dsham_favoriteOn":void 0,title:de(mi.has(pt.id)?"organizer.unfavorite":"organizer.favorite"),"aria-pressed":mi.has(pt.id),"aria-label":de(mi.has(pt.id)?"organizer.unfavorite":"organizer.favorite")+de("common.separator")+Rt(pt,de),disabled:Bt||Il||!ui,onClick:o(()=>kl(pt.id),"onClick"),children:(0,s.jsx)("span",{"aria-hidden":!0,children:mi.has(pt.id)?"\u2605":"\u2606"})}),d({variant:"ghost",title:de(or?"archives.restore":"archives.archiveSelected"),"aria-label":de(or?"archives.restore":"archives.archiveSelected"),disabled:Bt||Yr.has(pt.id),onClick:o(()=>or?Fa(pt.id):md([pt.id]),"onClick"),icon:(0,s.jsx)(or?l.IconRefreshOutline16:l.IconArchiveOutline20,{size:16})}),(or||typeof Ir=="function")&&(0,s.jsx)(yt,{busy:Bt||Yr.has(pt.id),t:de,title:Rt(pt,de),onCopyId:o(()=>ps(pt,"id"),"onCopyId"),onCopyPath:typeof Ir=="function"?()=>ps(pt,"path"):void 0,onPreview:or&&typeof Pr=="function"?()=>yn.open(pt,eo):void 0,onRestoreOpen:or?()=>Kn(pt,!0):void 0,onDelete:or?()=>Ot({kind:"session",session:pt}):void 0})]})]},pt.id))})]},Re.key)}),a.createElement(c,{width:900,open:yn.target!==null,onClose:yn.close,title:yn.target?Rt(yn.target.session,de):de("discovery.preview"),footer:d({disabled:Bt,onClick:o(()=>{if(yn.target){let Re=yn.target.session;return yn.close(),Kn(Re)}},"onClick"),children:de("discovery.openFull")}),children:a.createElement(S,{preview:yn,t:de,MarkdownText:l.MarkdownText})}),Fr===null&&nn!==null&&(0,s.jsx)("div",{className:"dsham_settingsError",role:"alert",children:nn}),_e!==null&&(0,s.jsx)("div",{className:"dsham_settingsStatus",role:"status",children:_e}),(0,s.jsx)(c,{open:Fr!==null,onClose:To,title:de("archives.archiveTitle",{n:Fr?.length??0}),description:Yo===null?de("archives.archiveSelectedDesc"):de(Yo.key===on?"archives.archiveUngroupedDesc":"archives.archiveProjectDesc",{name:Yo.title,n:Fr?.length??0}),footer:(0,s.jsxs)(s.Fragment,{children:[d({disabled:Bt,onClick:To,children:de("cancel")}),d({danger:!0,disabled:Bt||!Fr?.length,onClick:Ch,children:de("archives.archiveSelected")})]}),children:(0,s.jsxs)(s.Fragment,{children:[kr&&(0,s.jsx)("p",{children:de(Ta?"organizer.idleConfirm":"organizer.manualConfirm")}),kr&&(0,s.jsx)("div",{className:"dsham_archivePreview",children:(Fr??[]).map(Re=>(0,s.jsxs)("label",{children:[(0,s.jsx)(HC,{checked:!0,disabled:Bt,onChange:o(()=>jr(dt=>(dt??[]).filter(tr=>tr!==Re)),"onChange")}),Rt(st.byId[Re]??{id:Re},de)]},Re))}),In&&(0,s.jsxs)("div",{role:"status",children:[(0,s.jsx)("progress",{value:In.done,max:Math.max(1,In.total)}),de("organizer.progressCount",{done:In.done,total:In.total})]}),nn!==null&&(0,s.jsx)("div",{className:"dsham_settingsError",role:"alert",children:nn})]})}),(0,s.jsx)(c,{open:Nr!==null,onClose:o(()=>{Bt||(vr(null),fr(null))},"onClose"),title:de("archiveActive.title"),...Nr===null?{}:{description:de("archiveActive.desc",{name:Nr.title,kinds:Nr.kinds})},footer:(0,s.jsxs)(s.Fragment,{children:[d({disabled:Bt,onClick:o(()=>{Bt||(vr(null),fr(null))},"onClick"),children:de("cancel")}),d({disabled:Bt,onClick:o(async()=>{if(!(Vr.current||Bt||Nr===null||typeof z!="function")){Vr.current=!0,Wr(!0),fr(null);try{await z(Nr.sessionId,{stopActivity:!0}),Kr(Re=>Re.filter(dt=>Nr===null||dt!==Nr.sessionId)),mo("archived"),nt(de("archives.archiveSuccess",{n:1})),vr(null)}catch(Re){fr(Re instanceof Error?Re.message:String(Re))}finally{Vr.current=!1,Wr(!1)}}},"onClick"),children:de("archiveActive.confirm")})]}),children:nn!==null&&(0,s.jsx)("div",{className:"dsham_settingsError",role:"alert",children:nn})}),(0,s.jsx)(c,{open:dr!==null,onClose:Te,title:Rm,...a0===void 0?{}:{description:a0},footer:(0,s.jsxs)(s.Fragment,{children:[d({disabled:Bt,onClick:Te,children:de("cancel")}),d({danger:!0,disabled:Bt,onClick:Ar,children:Rk})]}),children:(0,s.jsxs)(s.Fragment,{children:[Bt&&(0,s.jsxs)("div",{role:"status",children:[dr?.kind==="batch"?de("archives.deleteBatchPending"):de("deleteSession.pending"),In&&(0,s.jsx)("progress",{value:In.done,max:Math.max(1,In.total),"aria-label":de("organizer.progress")}),In&&de("organizer.progressCount",{done:In.done,total:In.total})]}),nn!==null&&(0,s.jsx)("div",{className:"dsham_settingsError",role:"alert",children:nn})]})})]})]})})}o(Z,"ArchivedSessionsSection");function J(P){var z,Y,ae="";if(typeof P=="string"||typeof P=="number")ae+=P;else if(typeof P=="object")if(Array.isArray(P)){var be=P.length;for(z=0;z<be;z++)P[z]&&(Y=J(P[z]))&&(ae&&(ae+=" "),ae+=Y)}else for(Y in P)P[Y]&&(ae&&(ae+=" "),ae+=Y);return ae}o(J,"r");function U(...P){for(var z,Y,ae=0,be="",we=arguments.length;ae<we;ae++)(z=arguments[ae])&&(Y=J(z))&&(be&&(be+=" "),be+=Y);return be}o(U,"clsx");let ee="Ungrouped";function re(P,z=ee){if(P===void 0||P==="")return z;let Y=P.replace(/[/\\]+$/,"").split(/[/\\]/).pop();return Y!==void 0&&Y!==""?Y:P}o(re,"workspaceLabel");function ne(P,z){return z.updatedAt!==P.updatedAt?z.updatedAt-P.updatedAt:P.id<z.id?-1:1}o(ne,"byRecency");function oe(P,z,Y,ae){return P.origin!=="subagent"&&(!Y.has(P.id)||ae===!0)&&(!P.blank||P.id===z)}o(oe,"sessionVisible");function te(P){let z=P instanceof Error?P.message:String(P);return z.includes("UNKNOWN_SESSION")||z.includes("no such session")}o(te,"isUnknownSessionError");function ie(P,z){if(te(P))return z("deleteSession.unknown");let Y=P instanceof Error?P.message:String(P);return z("deleteSession.failed",{detail:Y})}o(ie,"formatDeleteError");function se(P,z){if(te(P))return z("archives.unarchiveUnknown");let Y=P instanceof Error?P.message:String(P);return z("archives.unarchiveFailed",{detail:Y})}o(se,"formatUnarchiveError");function xe(P,z){if(te(P))return z("archives.archiveUnknown");let Y=P instanceof Error?P.message:String(P);return z("archives.archiveFailed",{detail:Y})}o(xe,"formatArchiveError");function me(P){if(P===null||typeof P!="object")return;let z=Ur(P),Y=z.rpcError!==null&&typeof z.rpcError=="object"?Ur(z.rpcError):void 0,ae=z.name==="WorkspaceActiveSessionError"?z.activity:void 0,be=Y?.details,we=z.name==="WorkspaceArchiveError"&&Y?.code==="workspace/session-active"&&be!==null&&typeof be=="object"?Ur(be).activity:void 0,Me=Array.isArray(ae)?ae:Array.isArray(we)?we:void 0;if(Me===void 0)return;let Le=Me.flatMap(et=>{if(et===null||typeof et!="object")return[];let ht=Ur(et).kind;return typeof ht=="string"&&ht.length>0?[ht]:[]});return Le.length>0?Le:void 0}o(me,"activeSessionActivity");function Ee(P){let z=me(P);if(z===void 0||P===null||typeof P!="object")return;let Y=Ur(P),ae=Y.rpcError!==null&&typeof Y.rpcError=="object"?Ur(Y.rpcError).details:void 0,be=ae!==null&&typeof ae=="object"?Ur(ae).sessionId:void 0,we=typeof Y.sessionId=="string"?Y.sessionId:typeof be=="string"?be:void 0;return we===void 0?void 0:{sessionId:we,kinds:z}}o(Ee,"activeSessionRefusal");function $e(P,z){let Y=/^cannot archive session '(?:[^'\\]|\\')*': the session is active \((.*)\)$/.exec(z);if(Y===null)return;let ae=Y[1].split(", ").filter(be=>be.length>0);return ae.length>0?{sessionId:P,kinds:ae}:void 0}o($e,"activeArchiveFromMessage");function he(P,z){let Y=P instanceof Error?P.message:String(P);return z("archives.forkFailed",{detail:Y})}o(he,"formatForkError");function ye(P){return P.blank?"New Session":P.displayTitle}o(ye,"sessionTitle");function He(P,z,Y,ae,be,we,Me){let Le=[...we];return Me==="recency"&&Le.sort(ne),{key:P,workspaceId:z,cwd:Y,createdAt:ae,label:be,sessions:Le}}o(He,"buildGroup");function Se(P,z){let Y=new Map(P.map(we=>[we.id,we])),ae=new Set,be=[];for(let we of z){let Me=Y.get(we);Me===void 0||ae.has(we)||(be.push(Me),ae.add(we))}for(let we of[...P].sort(ne))ae.has(we.id)||be.push(we);return be}o(Se,"orderedUngrouped");function Ce(P,z,Y,ae,be){let we=[],Me=new Set;for(let et of z){let ht=[];for(let Qe of et.sessionIds){let Ye=P.byId[Qe];Ye!==void 0&&(Me.add(Qe),oe(Ye,li(P),Y,be)&&ht.push(Ye))}we.push(He(et.workspaceId,et.workspaceId,et.path,Date.parse(et.createdAt),et.title,ht,"account"))}let Le=P.ids.map(et=>P.byId[et]).filter(et=>et!==void 0&&!Me.has(et.id)&&oe(et,li(P),Y,be));return Le.length>0&&we.push(He("",void 0,void 0,void 0,ee,ae===void 0?Le:Se(Le,ae),ae===void 0?"recency":"account")),we}o(Ce,"groupByWorkspace");function ue(P,z){let Y=z instanceof Set?z:new Set(z);return[...new Set(P.sessionIds)].filter(ae=>!Y.has(ae)).length}o(ue,"archiveableWorkspaceSessionCount");function Pe(P,z,Y,ae){let be=P.find(Me=>Me.workspaceId===z);if(be===void 0)return null;let we=ue(be,ae);return we===0?null:{workspaceId:z,title:Y,count:we}}o(Pe,"archiveWorkspaceDialogTarget");function ve(P,z,Y){return{target:P,archiving:!1,error:xe(z,Y)}}o(ve,"archiveWorkspaceDialogFailureState");function Ue(P){switch(P){case"approval":case"plan-review":case"question":return P;default:return}}o(Ue,"visiblePendingKind");function pe(P,z){let Y=z.get(P.id),ae=Y===void 0?P.pendingInteraction:Y.kind;return Ue(ae)}o(pe,"pendingInteractionForSession");let Oe=new Map,Ie=new Set,ke=new Map;function We(P){return P(Oe)}o(We,"useEmptySessionPendingInteraction");function ze(P){return P(ke)}o(ze,"useEmptySessionStatus");function Ne(P){return P instanceof Map||P==null?{pending:P??Oe,completed:Ie}:{pending:P.pending??Oe,completed:P.completed??Ie}}o(Ne,"pendingFacts");function lt(P){let z=new Map,Y=new Set;if(P instanceof Map)for(let[ae,be]of P)be?.pendingInteraction!==void 0&&z.set(ae,be.pendingInteraction),be?.completionUnread===!0&&Y.add(ae);return{pending:z,completed:Y}}o(lt,"factsFromSessionStatus");function qe(P,z,Y){let ae=P(we=>we),be=z(we=>we);return Y?lt(be):{pending:ae,completed:Ie}}o(qe,"useSessionUiFacts");function Ze(P,z,Y,ae){let be=Ne(ae),we=pe(P,be.pending);return{id:P.id,title:ye(P),blank:P.blank,running:P.running,runningSubagentCount:z.get(P.id)?.runningCount??0,completed:P.completed===!0||be.completed.has(P.id),updatedAt:P.updatedAt,archived:Y.has(P.id),...we===void 0?{}:{pendingInteraction:we}}}o(Ze,"sessionNode");function je(P,z,Y,ae,be){let we=new Set(Y),Me=new Set(be.expandedGroups),Le=B(P.byId),et=li(P),ht=et===void 0?void 0:z.find(Ye=>Ye.sessionIds.includes(et))?.workspaceId??"",Qe=[];for(let Ye of Ce(P,z,we,be.ungroupedOrder,be.showArchived)){let tt=Me.has(Ye.key);Qe.push({key:Ye.key,workspaceId:Ye.workspaceId,cwd:Ye.cwd,createdAt:Ye.createdAt,label:Ye.label,sessionCount:Ye.sessions.length,expanded:tt,containsCurrent:Ye.key===ht,sessions:tt?Ye.sessions.map(de=>Ze(de,Le,we,ae)):[]})}return Qe}o(je,"deriveGroups");function gt(P,z,Y,ae){let be=new Set(z),we=B(P.byId),Me=[];for(let Le of P.ids){let et=P.byId[Le];et===void 0||!oe(et,li(P),be,ae)||Me.push(et)}return Me.sort(ne),Me.map(Le=>Ze(Le,we,be,Y))}o(gt,"deriveFlat");function rt(P,z,Y,ae,be,we,Me,Le,et=ee){let ht=Y.trim().toLowerCase();if(ht==="")return{items:[],hasMore:!1};let Qe=new Set(ae),Ye=B(P.byId),tt=new Map;for(let It of z)for(let Zt of It.sessionIds)tt.has(Zt)||tt.set(Zt,It.title);let de=o(It=>tt.get(It.id)??re(It.cwd,et),"labelOf"),io=new Map;for(let It of we.items)io.has(It.sessionId)||io.set(It.sessionId,It);let vo=[];for(let It of P.ids){let Zt=P.byId[It];Zt===void 0||Zt.blank||!oe(Zt,li(P),Qe,Le)||(ye(Zt).toLowerCase().includes(ht)||de(Zt).toLowerCase().includes(ht))&&vo.push(Zt)}vo.sort(ne);let Ir=[],No=new Set,Mo=o(It=>{No.has(It.id)||(No.add(It.id),Ir.push(It))},"include");for(let It of vo)Mo(It);for(let It of we.items){let Zt=P.byId[It.sessionId];Zt!==void 0&&!Zt.blank&&oe(Zt,li(P),Qe,Le)&&Mo(Zt)}let Pr=Ne(be);return{items:Ir.slice(0,Me).map(It=>{let Zt=io.get(It.id),kr=pe(It,Pr.pending);return{id:It.id,title:ye(It),workspace:de(It),running:It.running,runningSubagentCount:Ye.get(It.id)?.runningCount??0,archived:Qe.has(It.id),...kr===void 0?{}:{pendingInteraction:kr},completed:It.completed===!0||Pr.completed.has(It.id),...Zt===void 0?{}:{snippet:Zt.snippet}}}),hasMore:we.hasMore||Ir.length>Me}}o(rt,"deriveSearchResults");function qt(P,z){let we=Math.max(0,z-P);return we<6e4?{unit:"now",n:0}:we<36e5?{unit:"minutes",n:Math.floor(we/6e4)}:we<864e5?{unit:"hours",n:Math.floor(we/36e5)}:we<30*864e5?{unit:"days",n:Math.floor(we/864e5)}:we<365*864e5?{unit:"months",n:Math.floor(we/(30*864e5))}:{unit:"years",n:Math.floor(we/(365*864e5))}}o(qt,"relativeTime");let Tt='.dshamRow_projectRow,.dshamRow_sessionRow{cursor:pointer;user-select:none;color:var(--dsw-alias-label-primary);border-radius:8px;align-items:center;gap:6px;padding:0 8px;display:flex}.dshamRow_projectRow:hover,.dshamRow_sessionRow:hover,.dshamRow_sessionRow.dshamRow_selected{background:var(--dsw-alias-interactive-bg-hover)}.dshamRow_searchResultRow{box-sizing:border-box;cursor:pointer;text-align:left;width:100%;min-height:48px;color:var(--dsw-alias-label-primary);background:0 0;border:none;border-radius:8px;flex-direction:column;align-items:stretch;padding:4px 8px;display:flex}.dshamRow_searchResultRow:hover,.dshamRow_searchResultRow.dshamRow_selected{background:var(--dsw-alias-interactive-bg-hover)}.dshamRow_searchResultHeading{align-items:center;min-width:0;display:flex}.dshamRow_searchResultTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin-left:4px;font-size:14px;line-height:20px;overflow:hidden}.dshamRow_searchResultMeta{align-items:center;gap:6px;min-width:0;margin-left:20px;display:flex}.dshamRow_searchResultWorkspace,.dshamRow_searchResultSnippet{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.dshamRow_searchResultWorkspace{max-width:40%;color:var(--dsw-alias-label-tertiary);flex:none}.dshamRow_searchResultSnippet{min-width:0;color:var(--dsw-alias-label-secondary);flex:1}.dshamRow_projectRow{box-sizing:border-box;align-items:center;height:34px}.dshamRow_projectRow .dshamRow_rowActions{height:20px}.dshamRow_sessionRow{height:32px;animation:dshamRow_row-in .15s var(--ds-ease-in-out);gap:0}.dshamRow_sessionRow .dshamRow_title{margin:0 6px 0 4px}.dshamRow_flatSessionRowWithoutStatus .dshamRow_title{margin-left:0}@keyframes dshamRow_row-in{0%{opacity:0}}.dshamRow_slot{width:16px;height:20px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;display:inline-flex}.dshamRow_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.dshamRow_folderActive{color:var(--dsw-alias-state-business-primary)}.dshamRow_projectRow .dshamRow_chevron{display:none}.dshamRow_projectRow:hover .dshamRow_chevron{display:inline-flex}.dshamRow_projectRow:hover .dshamRow_folder{display:none}.dshamRow_arrow{transition:transform .15s var(--ds-ease-in-out)}.dshamRow_arrowOpen{transform:rotate(90deg)}.dshamRow_projectText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.dshamRow_title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.dshamRow_renameInput{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-button-elevated-fill);min-width:0;color:inherit;border-radius:4px;outline:none;padding:0 2px;font-size:14px;line-height:20px}.dshamRow_sessionRow .dshamRow_title{flex:1}.dshamRow_meta{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow:hidden}.dshamRow_time{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px;line-height:20px}.dshamRow_dot{flex:none}.dshamRow_rowActions{flex:none;align-items:center;gap:12px;display:none}.dshamRow_projectRow:hover .dshamRow_rowActions,.dshamRow_sessionRow:hover .dshamRow_rowActions,.dshamRow_projectRow.dshamRow_menuOpen .dshamRow_rowActions,.dshamRow_sessionRow.dshamRow_menuOpen .dshamRow_rowActions{display:inline-flex}.dshamRow_sessionRow:hover .dshamRow_time,.dshamRow_sessionRow.dshamRow_menuOpen .dshamRow_time{display:none}.dshamRow_projectRow.dshamRow_menuOpen,.dshamRow_sessionRow.dshamRow_menuOpen{background:var(--dsw-alias-interactive-bg-hover)}.dshamRow_sessionRow.dshamRow_dropBefore,.dshamRow_sessionRow.dshamRow_dropAfter{position:relative}.dshamRow_sessionRow.dshamRow_dropBefore:before,.dshamRow_sessionRow.dshamRow_dropAfter:after{content:"";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:4px}.dshamRow_sessionRow.dshamRow_dropBefore:before{top:-7px}.dshamRow_sessionRow.dshamRow_dropAfter:after{bottom:-7px}.dshamRow_hoverContent{flex-direction:column;gap:8px;display:flex}.dshamRow_hoverTitle{color:#fff;overflow-wrap:break-word;font-size:14px;line-height:20px}.dshamRow_hoverPath{color:#cfd3d6;word-break:break-all;font-size:12px;line-height:16px}.dshamRow_hoverTime{color:#cfd3d6;font-size:12px;line-height:16px}.dshamRow_hoverStatus{color:#adb2b8;align-items:center;gap:8px;font-size:12px;line-height:20px;display:flex}.dshamRow_iconButton{cursor:pointer;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.dshamRow_iconButton:hover{color:var(--dsw-alias-label-primary)}.dshamRow_chevron{color:var(--dsw-alias-label-caption)}@media (prefers-reduced-motion:reduce){.dshamRow_sessionRow,.dshamRow_arrow{transition:none;animation:none}}';var Xe={hoverTitle:"dshamRow_hoverTitle",title:"dshamRow_title",hoverContent:"dshamRow_hoverContent",dropAfter:"dshamRow_dropAfter",renameInput:"dshamRow_renameInput",dot:"dshamRow_dot",hoverTime:"dshamRow_hoverTime",iconButton:"dshamRow_iconButton",flatSessionRowWithoutStatus:"dshamRow_flatSessionRowWithoutStatus","row-in":"dshamRow_row-in",folder:"dshamRow_folder",menuOpen:"dshamRow_menuOpen",selected:"dshamRow_selected",searchResultHeading:"dshamRow_searchResultHeading",searchResultWorkspace:"dshamRow_searchResultWorkspace",visuallyHidden:"dshamRow_visuallyHidden",projectRow:"dshamRow_projectRow",hoverStatus:"dshamRow_hoverStatus",arrowOpen:"dshamRow_arrowOpen",rowActions:"dshamRow_rowActions",chevron:"dshamRow_chevron",arrow:"dshamRow_arrow",searchResultTitle:"dshamRow_searchResultTitle",searchResultMeta:"dshamRow_searchResultMeta",slot:"dshamRow_slot",folderActive:"dshamRow_folderActive",time:"dshamRow_time",sessionRow:"dshamRow_sessionRow",meta:"dshamRow_meta",dropBefore:"dshamRow_dropBefore",searchResultSnippet:"dshamRow_searchResultSnippet",projectText:"dshamRow_projectText",hoverPath:"dshamRow_hoverPath",searchResultRow:"dshamRow_searchResultRow"};function Rt(P,z){return P.blank?z("session.new"):P.title??P.displayTitle??""}o(Rt,"displayTitle");function Lt(P,z,Y){let{unit:ae,n:be}=qt(P,z);return ae==="now"?Y("time.now"):Y(`time.${ae}`,{n:be})}o(Lt,"timeLabel");function jt(P,z){let Y=new Date(P),ae=`${String(Y.getHours()).padStart(2,"0")}:${String(Y.getMinutes()).padStart(2,"0")}`;return z("archives.timestamp",{date:z("date.ymd",{y:Y.getFullYear(),m:Y.getMonth()+1,d:Y.getDate()}),time:ae})}o(jt,"archiveTimeLabel");function Ve(P,z,Y){let{unit:ae,n:be}=qt(P,z);return ae==="now"?Y("time.now"):Y("time.ago",{t:Y(`time.${ae}`,{n:be})})}o(Ve,"hoverTimeLabel");function it(P,z){let Y=new Date(P??NaN),ae=o(be=>String(be).padStart(2,"0"),"pad2");return z("hover.created",{time:`${z("date.ymd",{y:Y.getFullYear(),m:Y.getMonth()+1,d:Y.getDate()})} ${ae(Y.getHours())}:${ae(Y.getMinutes())}`})}o(it,"createdLabel");function Fe({label:P,cwd:z,createdAt:Y,t:ae}){return(0,s.jsxs)("div",{className:Xe.hoverContent,children:[(0,s.jsx)("div",{className:Xe.hoverTitle,children:P}),(0,s.jsx)("div",{className:Xe.hoverPath,children:z}),(0,s.jsx)("div",{className:Xe.hoverTime,children:it(Y,ae)})]})}o(Fe,"WorkspaceHoverContent");function Wt(P){let z=P.currentTarget.getBoundingClientRect();return P.clientY<z.top+z.height/2?"before":"after"}o(Wt,"rowHalf");function ge({group:P,onToggle:z,onCreate:Y,actions:ae,drag:be,t:we}){let Me=P,Le=Me.workspaceId===void 0?we("group.ungrouped"):Me.label,et=P.expanded&&P.containsCurrent,[ht,Qe]=(0,a.useState)(!1),Ye=[{id:"rename",label:we("rename"),icon:(0,s.jsx)(l.IconEditOutline16,{})},...ae?.canArchive===!0?[{id:"archive-workspace",label:we("menu.archiveWorkspace"),icon:(0,s.jsx)(l.IconArchiveOutline20,{size:16})}]:[],{id:"delete",label:we("delete.workspace"),icon:(0,s.jsx)(l.IconTrashOutline16,{}),danger:!0}],tt=(0,s.jsxs)("div",{className:U(Xe.projectRow,ht&&Xe.menuOpen),role:"treeitem","aria-expanded":Me.expanded,onClick:z,draggable:be!==void 0,onDragStart:be===void 0?void 0:de=>{de.dataTransfer.effectAllowed="move",de.dataTransfer.setData("text/plain",Me.key),be.start()},onDragEnd:be?.end,children:[(0,s.jsx)("span",{className:U(Xe.slot,Xe.folder,et&&Xe.folderActive),children:Me.expanded?(0,s.jsx)(l.IconFolderOpen16,{}):(0,s.jsx)(l.IconFolderClose16,{})}),(0,s.jsx)("span",{className:U(Xe.slot,Xe.chevron),children:(0,s.jsx)(l.IconTriangleRightFill14,{className:U(Xe.arrow,Me.expanded&&Xe.arrowOpen)})}),(0,s.jsx)("span",{className:Xe.projectText,children:(0,s.jsx)("span",{className:Xe.title,children:Le})}),(0,s.jsxs)("span",{className:Xe.rowActions,children:[ae!==void 0&&(0,s.jsx)(l.Menu,{open:ht,onClose:o(()=>{Qe(!1)},"onClose"),items:Ye,onSelect:o(de=>{Qe(!1),!(de!=="rename"&&de!=="archive-workspace"&&de!=="delete")&&(de==="rename"?ae.rename():de==="archive-workspace"?ae.archive():ae.delete())},"onSelect"),portal:!0,closeOnPointerLeave:!0,anchor:(0,s.jsx)("button",{type:"button",className:Xe.iconButton,"aria-label":we("actions.workspace.aria",{name:Le}),onClick:o(de=>{de.stopPropagation(),Qe(io=>!io)},"onClick"),children:(0,s.jsx)(l.IconEllipsisOutline16,{})})}),(0,s.jsx)("button",{type:"button",className:Xe.iconButton,"aria-label":we("actions.newSession.aria",{name:Le}),onClick:o(de=>{de.stopPropagation(),Y()},"onClick"),children:(0,s.jsx)(l.IconPlusOutline16,{})})]})]});return Me.createdAt===void 0?tt:(0,s.jsx)(l.HoverCard,{anchor:tt,content:(0,s.jsx)(Fe,{label:Me.label,cwd:Me.cwd,createdAt:Me.createdAt,t:we}),disabled:ht,copyText:Me.cwd,copyLabel:we("copy"),copiedLabel:we("hover.copied")})}o(ge,"ProjectRowItem");function Ae(P){throw new Error(`unknown pending interaction: ${String(P)}`)}o(Ae,"assertNever");function ct(P,z){let Y=P.runningSubagentCount===0?void 0:{state:"ongoing",label:z(P.runningSubagentCount===1?"status.subagentsRunning.one":"status.subagentsRunning.other",{n:P.runningSubagentCount})},ae;switch(P.pendingInteraction){case"approval":ae={state:"warning",label:z("status.waitingApproval")};break;case"plan-review":ae={state:"warning",label:z("status.planReview")};break;case"question":ae={state:"warning",label:z("status.waitingAnswer")};break;case void 0:break;default:return Ae(P.pendingInteraction)}if(ae!==void 0)return Y===void 0?[ae]:[ae,Y];if(P.running){let be={state:"ongoing",label:z("status.running")};return Y===void 0?[be]:[be,Y]}return Y!==void 0?[Y]:P.completed?[{state:"done",label:z("status.completed")}]:[{state:"done",label:z("status.idle")}]}o(ct,"sessionStatuses");function Be({statuses:P}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.StateDot,{state:P[0].state}),P.map(z=>(0,s.jsx)("span",{className:Xe.visuallyHidden,children:z.label},z.label))]})}o(Be,"SessionStatusDots");function ut({node:P,now:z,t:Y}){let ae=ct(P,Y);return(0,s.jsxs)("div",{className:Xe.hoverContent,children:[(0,s.jsx)("div",{className:Xe.hoverTitle,children:Rt(P,Y)}),!P.blank&&(0,s.jsx)("div",{className:Xe.hoverTime,children:Ve(P.updatedAt,z,Y)}),ae.map(be=>(0,s.jsxs)("div",{className:Xe.hoverStatus,children:[(0,s.jsx)(l.StateDot,{state:be.state}),(0,s.jsx)("span",{children:be.label})]},be.label))]})}o(ut,"SessionHoverContent");function Je({result:P,currentId:z,onOpen:Y,t:ae}){let be=P.id===z,we=ct(P,ae),Me=we[0];return(0,s.jsxs)("button",{type:"button",className:U(Xe.searchResultRow,be&&Xe.selected,P.archived===!0&&D.row),role:"treeitem","aria-selected":be,onClick:o(()=>{Y(P.id)},"onClick"),children:[(0,s.jsxs)("span",{className:Xe.searchResultHeading,children:[(0,s.jsx)("span",{className:Xe.slot,children:(Me.state!=="done"||P.completed)&&(0,s.jsx)(Be,{statuses:we})}),P.archived===!0&&(0,s.jsx)("span",{className:D.badge,children:ae("archived.badge")}),(0,s.jsx)("span",{className:U(Xe.searchResultTitle,P.archived===!0&&D.title),children:P.title})]}),(0,s.jsxs)("span",{className:Xe.searchResultMeta,children:[(0,s.jsx)("span",{className:Xe.searchResultWorkspace,children:P.workspace}),P.snippet!==void 0&&(0,s.jsx)("span",{className:Xe.searchResultSnippet,children:P.snippet})]})]})}o(Je,"SearchResultItem");function Ct({node:P,currentId:z,now:Y,onOpen:ae,onRename:be,onFork:we,onArchive:Me,onUnarchive:Le,onDeleteSession:et,onReveal:ht,drag:Qe,flat:Ye=!1,t:tt}){let de=P,io=Rt(P,tt),vo=P.id===z,Ir=de.archived===!0,No=ct(P,tt),Mo=No[0].state!=="done"||de.completed,[Pr,It]=(0,a.useState)(!1),Zt=(0,a.useRef)(null);(0,a.useEffect)(()=>{ht!==void 0&&(Zt.current?.scrollIntoView({block:"nearest"}),ht())},[ht]);let kr=Ir?[{id:"unarchive",label:tt("menu.unarchive"),icon:(0,s.jsx)(l.IconArchiveOutline20,{size:16})},{id:"delete-session",label:tt("menu.deleteSession"),icon:(0,s.jsx)(l.IconTrashOutline16,{}),danger:!0}]:[{id:"rename",label:tt("rename"),icon:(0,s.jsx)(l.IconEditOutline16,{})},{id:"fork",label:tt("menu.fork"),icon:(0,s.jsx)(l.IconBranchOutline16,{})},{id:"archive",label:tt("menu.archiveSession"),icon:(0,s.jsx)(l.IconArchiveOutline20,{size:16})},{id:"delete-session",label:tt("menu.deleteSession"),icon:(0,s.jsx)(l.IconTrashOutline16,{}),danger:!0}];return(0,s.jsx)(l.HoverCard,{anchor:(0,s.jsxs)("div",{ref:Zt,className:U(Xe.sessionRow,vo&&Xe.selected,Pr&&Xe.menuOpen,Ye&&!Mo&&Xe.flatSessionRowWithoutStatus,Ir&&D.row,Qe?.marker==="before"&&Xe.dropBefore,Qe?.marker==="after"&&Xe.dropAfter),role:"treeitem","aria-selected":vo,onClick:o(()=>{Ir||ae(P.id)},"onClick"),draggable:Qe!==void 0,onDragStart:Qe===void 0?void 0:Cr=>{Cr.dataTransfer.effectAllowed="move",Cr.dataTransfer.setData("text/plain",P.id),Qe.start()},onDragEnd:Qe?.end,onDragOver:Qe===void 0?void 0:Cr=>{Qe.active&&(Cr.preventDefault(),Cr.dataTransfer.dropEffect="move",Qe.hover(Wt(Cr)))},onDrop:Qe===void 0?void 0:Cr=>{Qe.active&&(Cr.preventDefault(),Qe.drop(Wt(Cr)))},children:[(!Ye||Mo)&&(0,s.jsx)("span",{className:Xe.slot,children:Mo&&(0,s.jsx)(Be,{statuses:No})}),Ir&&(0,s.jsx)("span",{className:D.badge,children:tt("archived.badge")}),Ir?(0,s.jsxs)("span",{className:D.content,children:[(0,s.jsx)("span",{className:U(Xe.title,D.title),children:io}),!de.blank&&(0,s.jsx)("span",{className:D.meta,children:Lt(de.updatedAt,Y,tt)})]}):(0,s.jsx)("span",{className:Xe.title,children:io}),!de.blank&&(0,s.jsx)("span",{className:Xe.time,children:Lt(de.updatedAt,Y,tt)}),Ir&&!de.blank&&(0,s.jsxs)("span",{className:D.actions,onClick:o(Cr=>{Cr.stopPropagation()},"onClick"),children:[(0,s.jsx)("button",{type:"button",className:D.delete,"aria-label":tt("menu.deleteSession"),onClick:o(()=>et(P.id,de.title),"onClick"),children:(0,s.jsx)(l.IconTrashOutline16,{})}),(0,s.jsx)("button",{type:"button",className:D.unarchive,onClick:o(()=>Le(P.id),"onClick"),children:tt("menu.unarchive")})]}),!de.blank&&(0,s.jsx)("span",{className:Xe.rowActions,children:(0,s.jsx)(l.Menu,{open:Pr,onClose:o(()=>{It(!1)},"onClose"),items:kr,onSelect:o(Cr=>{It(!1),Cr==="rename"&&be(P.id,de.title),Cr==="fork"&&we(P.id),Cr==="archive"&&Me(P.id),Cr==="unarchive"&&Le(P.id),Cr==="delete-session"&&et(P.id,de.title)},"onSelect"),portal:!0,closeOnPointerLeave:!0,anchor:(0,s.jsx)("button",{type:"button",className:Xe.iconButton,"aria-label":tt("actions.session.aria",{name:io}),onClick:o(Cr=>{Cr.stopPropagation(),It(wo=>!wo)},"onClick"),children:(0,s.jsx)(l.IconEllipsisOutline16,{})})})})]}),content:(0,s.jsx)(ut,{node:P,now:Y,t:tt}),disabled:Pr||Qe?.active===!0,copyText:de.blank?void 0:de.title,copyLabel:tt("copy"),copiedLabel:tt("hover.copied")})}o(Ct,"SessionNodeItem");let Gt="._G5b-a_modalAction{min-width:72px}._G5b-a_modalError,._G5b-a_menuStatus{margin-top:8px;font-size:12px;line-height:18px}._G5b-a_modalError{color:var(--dsw-alias-state-error-primary)}._G5b-a_menuStatus{color:var(--dsw-alias-label-secondary)}";var Xt={modalAction:"_G5b-a_modalAction",menuStatus:"_G5b-a_menuStatus",modalError:"_G5b-a_modalError"};let Er="::add-workspace";function Sr({t:P,open:z,anchorRef:Y,useWorkspaces:ae,createWorkspace:be,useDirectoryFlow:we,renderDirectoryFlow:Me,onPick:Le,onClose:et,addOnly:ht=!1,side:Qe="bottom",selectedId:Ye}){let tt=ae(nr=>nr),de=tt.items,io=(0,a.useCallback)(()=>Y?.current?.getBoundingClientRect()??null,[Y]),[vo,Ir]=(0,a.useState)(!1),[No,Mo]=(0,a.useState)(null),[Pr,It]=(0,a.useState)(!1),[Zt,kr]=(0,a.useState)(!1),Cr=Pr||Zt,wo=we(nr=>nr);(0,a.useEffect)(()=>{Pr&&!wo&&It(!1)},[Pr,wo]);let st=wo?[{id:Er,label:P("menu.addWorkspace"),icon:(0,s.jsx)(l.IconPlusOutline16,{size:16}),disabled:Cr}]:[],wr=!ht&&de.length>0,Dr=wr?de.map(nr=>({id:nr.workspaceId,label:nr.title,icon:(0,s.jsx)(l.IconFolderClose16,{size:16}),disabled:Cr})):st,mo=Dr.length===0,or=o(()=>{Ir(!1),Mo(null)},"closeModal"),Fr=o(nr=>be({path:nr}).then(To=>{It(!1),Le(To.workspaceId)}).catch(To=>{Mo(To instanceof Error?To.message:String(To)),It(!1),Ir(!0)}),"adoptDirectory"),jr=(0,a.useCallback)(()=>{et(),Ir(!1),Mo(null),It(!0)},[et]),Yo=ht||tt.phase==="ready",Jt=!wr&&Yo&&st.length===1;(0,a.useEffect)(()=>{z&&Jt&&!Cr&&jr()},[z,Jt,Cr,jr]);let Nr={open:Pr,busy:Zt,onPicked:o(nr=>{kr(!0),Fr(nr).finally(()=>{kr(!1)})},"onPicked"),onCancel:o(()=>{It(!1)},"onCancel"),onError:o(nr=>{It(!1),Mo(nr),Ir(!0)},"onError")},vr=o(nr=>{if(nr===Er){jr();return}Le(nr)},"handleSelect");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Menu,{open:z&&!Jt&&!mo,anchor:null,items:Dr,...wr?{footer:st}:{},selectedId:Ye,onSelect:vr,onClose:et,side:Qe,portal:!0,getAnchorRect:io}),z&&!Jt&&!mo&&tt.phase==="pending"&&(0,s.jsx)("div",{className:Xt.menuStatus,role:"status",children:P("picker.loading")}),Me(Nr),(0,s.jsx)(l.Modal,{open:vo,onClose:or,closeLabel:P("close"),title:P("folderError.title"),footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",className:Xt.modalAction,onClick:or,children:P("cancel")}),(0,s.jsx)(l.Button,{variant:"primary",className:Xt.modalAction,disabled:!wo,onClick:jr,children:P("folderError.retry")})]}),children:(0,s.jsx)("div",{className:Xt.modalError,role:"alert",children:No})})]})}o(Sr,"WorkspacePickFlow");let zr='.qDHVXG_root{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding);--dsh-session-list-scrollbar-width:8px;--dsh-session-list-scrollbar-offset:2px;box-sizing:border-box;min-height:0;padding-right:var(--dsh-session-list-edge-inset);flex-direction:column;flex:1;display:flex}.qDHVXG_root.qDHVXG_rail{padding-right:0}.qDHVXG_iconButton{cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qDHVXG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_sectionHeader{box-sizing:border-box;height:36px;color:var(--dsw-alias-label-tertiary);border-radius:12px;flex:none;justify-content:flex-end;align-items:center;gap:4px;margin-bottom:4px;padding-left:4px;display:flex;overflow:hidden}.qDHVXG_root:not(.qDHVXG_rail) .qDHVXG_sectionHeader{margin-top:2px;margin-right:-4px}.qDHVXG_sectionLabel{white-space:nowrap;opacity:1;visibility:visible;min-width:0;max-width:45%;transition:max-width .18s var(--ds-ease-in-out), margin-right .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;line-height:20px;overflow:hidden}.qDHVXG_sectionLabelHidden{opacity:0;visibility:hidden;max-width:0;margin-right:-4px;transition-delay:0s,0s,0s,0s,.18s;transform:translate(-4px)}.qDHVXG_searchSlot{box-sizing:border-box;min-width:0;max-width:28px;transition:max-width .18s var(--ds-ease-in-out), padding-left .18s var(--ds-ease-in-out);flex:1;align-items:center;margin-left:auto;padding-left:0;display:flex}.qDHVXG_searchSlotExpanded{max-width:100%;padding-left:0}.qDHVXG_headerActions{opacity:1;visibility:visible;max-width:60px;transition:max-width .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;align-items:center;gap:4px;display:flex;overflow:hidden}.qDHVXG_headerActionsHidden{opacity:0;visibility:hidden;pointer-events:none;max-width:0;transition-delay:0s,0s,0s,.18s;transform:translate(4px)}.qDHVXG_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), padding .18s var(--ds-ease-in-out), border-color .18s var(--ds-ease-in-out), background-color .18s var(--ds-ease-in-out);background:0 0;border:none;border-radius:50%;flex:none;align-items:center;gap:0;margin:0;padding:0;display:flex;overflow:hidden}.qDHVXG_searchExpanded{border:1px solid var(--dsw-alias-border-l2);width:calc(100% + 4px);height:30px;color:var(--dsw-alias-label-caption);background:0 0;border-radius:10px;margin-inline:-2px;padding:0 4px 0 0}.qDHVXG_searchButton{cursor:pointer;width:28px;height:28px;color:inherit;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qDHVXG_searchExpanded .qDHVXG_searchButton{width:28px;height:30px}.qDHVXG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_searchExpanded .qDHVXG_searchButton:hover{background:0 0}.qDHVXG_searchInput{opacity:0;pointer-events:none;width:0;min-width:0;color:var(--dsw-alias-label-primary);transition:opacity .12s var(--ds-ease-in-out);background:0 0;border:none;outline:none;flex:1;font-size:13px;line-height:18px}.qDHVXG_searchExpanded .qDHVXG_searchInput{opacity:1;pointer-events:auto;margin-left:-2px}.qDHVXG_searchInput::placeholder{color:var(--dsw-alias-label-tertiary)}.qDHVXG_clearButton{cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qDHVXG_clearButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_rail .qDHVXG_sectionHeader{justify-content:flex-start;gap:0;margin-bottom:12px;padding-left:0}.qDHVXG_rail .qDHVXG_headerActions{max-width:none}.qDHVXG_rail .qDHVXG_iconButton{width:36px;height:36px;color:var(--dsw-alias-label-primary)}.qDHVXG_rail .qDHVXG_search{background:0 0;border-color:#0000;gap:0;width:36px;height:36px;margin:0 0 12px;padding:0}.qDHVXG_rail .qDHVXG_searchButton{width:36px;height:36px;color:var(--dsw-alias-label-primary)}.qDHVXG_rail .qDHVXG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_listArea{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}.qDHVXG_rail .qDHVXG_listArea{margin-left:0;margin-right:0;padding-left:0}.qDHVXG_treeBody{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.qDHVXG_fade{left:0;right:var(--dsh-session-list-edge-inset);background:linear-gradient(to bottom, transparent, var(--dsw-specific-sidebar-fill));pointer-events:none;height:24px;position:absolute;bottom:0}.qDHVXG_wide{animation:qDHVXG_wide-in .2s var(--ds-ease-in-out)}@keyframes qDHVXG_wide-in{0%{opacity:0}}.qDHVXG_list{min-height:0;margin-left:-4px;margin-right:var(--dsh-session-list-scrollbar-offset);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;flex:1;padding-bottom:16px;overflow-y:auto}.qDHVXG_flatList>*+*,.qDHVXG_searchTree>[role=treeitem]+[role=treeitem],.qDHVXG_groupSection>*+*{margin-top:2px}.qDHVXG_searchStatus,.qDHVXG_searchWarning{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.qDHVXG_searchWarning{color:var(--dsw-alias-label-secondary)}.qDHVXG_groupSection{position:relative}.qDHVXG_groupSection+.qDHVXG_groupSection{margin-top:4px}.qDHVXG_listTopDropIndicator,.qDHVXG_workspaceDropBefore:before,.qDHVXG_workspaceDropAfter:after{content:"";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:0}.qDHVXG_listTopDropIndicator{top:-8px;left:0;right:var(--dsh-session-list-edge-inset)}.qDHVXG_listTopDropActive>.qDHVXG_workspaceDropBefore:first-child:before{display:none}.qDHVXG_workspaceDropBefore:before{top:-8px}.qDHVXG_workspaceDropAfter:after{bottom:-8px}.qDHVXG_sessionOverflowButton{cursor:pointer;text-align:left;width:100%;height:28px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;border-radius:8px;padding:0 12px 0 28px;font-size:12px}.qDHVXG_groupSection>.qDHVXG_sessionOverflowButton{margin-top:0}.qDHVXG_sessionOverflowButton:hover{color:var(--dsw-alias-label-secondary);background:0 0}.qDHVXG_empty{color:var(--dsw-alias-label-tertiary);padding:16px 12px;font-size:13px}.qDHVXG_renameInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);width:100%;height:44px;color:var(--dsw-alias-label-primary);background:0 0;border-radius:22px;outline:none;padding:7px 14px;font-size:14px;font-weight:400;line-height:22px}.qDHVXG_renameInput:disabled{color:var(--dsw-alias-label-dimmed)}.qDHVXG_renameError{color:var(--dsw-alias-state-error-primary);margin-top:8px;font-size:12px;line-height:18px}.qDHVXG_deleteAction:not(:disabled){color:var(--dsw-alias-state-error-primary)}.qDHVXG_deleteStatus{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}@media (prefers-reduced-motion:reduce){.qDHVXG_wide{animation:none}.qDHVXG_search,.qDHVXG_sectionLabel,.qDHVXG_searchSlot,.qDHVXG_searchInput,.qDHVXG_headerActions{transition:none}}';var Ke={"wide-in":"qDHVXG_wide-in",searchWarning:"qDHVXG_searchWarning",empty:"qDHVXG_empty",deleteStatus:"qDHVXG_deleteStatus",search:"qDHVXG_search",fade:"qDHVXG_fade",workspaceDropAfter:"qDHVXG_workspaceDropAfter",searchSlot:"qDHVXG_searchSlot",rail:"qDHVXG_rail",searchSlotExpanded:"qDHVXG_searchSlotExpanded",searchButton:"qDHVXG_searchButton",workspaceDropBefore:"qDHVXG_workspaceDropBefore",deleteAction:"qDHVXG_deleteAction",root:"qDHVXG_root",clearButton:"qDHVXG_clearButton",listTopDropIndicator:"qDHVXG_listTopDropIndicator",listTopDropActive:"qDHVXG_listTopDropActive",headerActions:"qDHVXG_headerActions",searchStatus:"qDHVXG_searchStatus",sectionLabelHidden:"qDHVXG_sectionLabelHidden",searchInput:"qDHVXG_searchInput",listArea:"qDHVXG_listArea",searchExpanded:"qDHVXG_searchExpanded",list:"qDHVXG_list",iconButton:"qDHVXG_iconButton",sectionLabel:"qDHVXG_sectionLabel",groupSection:"qDHVXG_groupSection",renameInput:"qDHVXG_renameInput",sessionOverflowButton:"qDHVXG_sessionOverflowButton",treeBody:"qDHVXG_treeBody",wide:"qDHVXG_wide",flatList:"qDHVXG_flatList",searchTree:"qDHVXG_searchTree",sectionHeader:"qDHVXG_sectionHeader",headerActionsHidden:"qDHVXG_headerActionsHidden",renameError:"qDHVXG_renameError"};let So=300,Et=250,zt=500,Kt=5;function vt(P){let z=P.replaceAll("\0","");if(z.length<=zt)return z;let Y=zt,ae=z.charCodeAt(Y-1),be=z.charCodeAt(Y);return ae>=55296&&ae<=56319&&be>=56320&&be<=57343&&Y--,z.slice(0,Y)}o(vt,"sanitizeSearchQuery");function kt(P,z){return P.includes(z)?P.filter(Y=>Y!==z):[...P,z]}o(kt,"toggled");function xr(P){(0,a.useEffect)(()=>{if(!P)return;let z=o(ae=>{ae.preventDefault(),ae.dataTransfer!==null&&(ae.dataTransfer.dropEffect="move")},"acceptDrag"),Y=o(ae=>{ae.preventDefault()},"acceptDrop");return document.addEventListener("dragover",z),document.addEventListener("drop",Y),()=>{document.removeEventListener("dragover",z),document.removeEventListener("drop",Y)}},[P])}o(xr,"useNativeDragAcceptance");function Br(P,z){if(z===void 0)return[...P];let Y=new Map(P.map(we=>[we,we])),ae=[],be=new Set;for(let we of z){let Me=Y.get(we);Me===void 0||be.has(we)||(ae.push(Me),be.add(we))}for(let we of P)be.has(we)||ae.push(we);return ae}o(Br,"reconciledSessionOrder");function pr(P,z,Y){let ae=Y[P]?.updatedAt??Number.NEGATIVE_INFINITY,be=Y[z]?.updatedAt??Number.NEGATIVE_INFINITY;return ae!==be?be-ae:P<z?-1:1}o(pr,"compareSessionRecency");function Or({sessionIds:P,previousOrder:z,previousUpdatedAt:Y,list:ae,orderBy:be,sortByRecency:we}){let Me=Br(P,z);if(we)Me.sort((Qe,Ye)=>pr(Qe,Ye,ae.byId));else if(be==="updated"){let Qe=P.filter(Ye=>{let tt=ae.byId[Ye];return tt!==void 0&&(Y[Ye]===void 0||tt.updatedAt>Y[Ye])}).sort((Ye,tt)=>pr(Ye,tt,ae.byId));if(Qe.length>0){let Ye=new Set(Qe);Me=[...Qe,...Me.filter(tt=>!Ye.has(tt))]}}let Le={};for(let Qe of P){let Ye=ae.byId[Qe];Ye!==void 0&&(Le[Qe]=Ye.updatedAt)}let et=z===void 0||Me.length!==z.length||Me.some((Qe,Ye)=>Qe!==z[Ye]),ht=Object.keys(Le).length!==Object.keys(Y).length||Object.entries(Le).some(([Qe,Ye])=>Y[Qe]!==Ye);return{order:Me,updatedAt:Le,changed:et||ht}}o(Or,"nextSessionOrderAccount");function Co({groupBy:P,orderBy:z,onGroupPick:Y,onOrderPick:ae,t:be}){let[we,Me]=(0,a.useState)(!1);return(0,s.jsx)(l.Menu,{open:we,onClose:o(()=>{Me(!1)},"onClose"),items:[{type:"label",id:"group-by",text:be("groupBy.label")},{id:"workspace",label:be("groupBy.workspace")},{id:"flat",label:be("groupBy.flat")},{type:"separator",id:"order-by-separator"},{type:"label",id:"order-by",text:be("orderBy.label")},{id:"manual",label:be("orderBy.manual")},{id:"updated",label:be("orderBy.updated")}],selectedIds:[P,z],onSelect:o(Le=>{Le==="workspace"||Le==="flat"?Y(Le):(Le==="manual"||Le==="updated")&&ae(Le),Me(!1)},"onSelect"),align:"end",dense:!0,portal:!0,anchor:(0,s.jsx)(l.Tooltip,{label:be("viewOptions.label"),side:"bottom",delayMs:500,children:(0,s.jsx)("button",{type:"button",className:U(Ke.iconButton,Ke.wide),"aria-label":be("viewOptions.label"),onClick:o(()=>{Me(Le=>!Le)},"onClick"),children:(0,s.jsx)(l.IconPersonalizationOutline16,{})})})})}o(Co,"ViewOptionsMenu");function _o(P){let z=P.currentTarget.getBoundingClientRect();return P.clientY<z.top+z.height/2?"before":"after"}o(_o,"workspaceGroupHalf");function mn({useSessions:P,useSessionPendingInteraction:z,useSessionStatus:Y,preferSessionStatus:ae,startSession:be,open:we,forkSession:Me,workspaces:Le,archivedSessionIds:et,showArchived:ht,onRenameRequest:Qe,onArchiveRequest:Ye,onDeleteRequest:tt,onSessionRename:de,onSessionArchive:io,onSessionUnarchive:vo,onSessionDelete:Ir,insertWorkspaceBefore:No,insertSessionBefore:Mo,orderBy:Pr,groupExpansion:It,setGroupExpanded:Zt,sessionOrderByAccount:kr,sessionUpdatedAtByAccount:Cr,syncSessionOrderAccount:wo,setSessionOrder:st,t:wr,revealSessionId:Dr,onSessionRevealed:mo,showArchivedToast:or}){let Fr=P(Ge=>Ge),jr=qe(z,Y,ae),Yo=li(Fr),[Jt,Nr]=(0,a.useState)([]),[vr,nr]=(0,a.useState)(null),To=(0,a.useRef)(!1),[Vr,dr]=(0,a.useState)(null),Ro=(0,a.useRef)(!1),po=(0,a.useRef)(Pr);xr(vr!==null||Vr!==null);let Bt=Yo===void 0?void 0:Le.find(Ge=>Ge.sessionIds.includes(Yo))?.workspaceId??"",Wr=Dr===void 0?void 0:Le.find(Ge=>Ge.sessionIds.includes(Dr))?.workspaceId??"";(0,a.useEffect)(()=>{Yo===void 0||Bt===void 0||Object.hasOwn(It,Bt)||Zt(Bt,!0)},[Yo,Bt,Zt,It]),(0,a.useEffect)(()=>{Wr===void 0||It[Wr]===!0||Zt(Wr,!0)},[It,Wr,Zt]);let nn=(0,a.useMemo)(()=>Object.entries(It).filter(([,Ge])=>Ge).map(([Ge])=>Ge),[It]),fr=(0,a.useMemo)(()=>{let Ge=new Set(Le.flatMap(gr=>gr.sessionIds));return Fr.ids.filter(gr=>Fr.byId[gr]!==void 0&&!Ge.has(gr))},[Fr,Le]);(0,a.useEffect)(()=>{if(Fr.phase!=="ready")return;let Ge=po.current!=="updated"&&Pr==="updated";po.current=Pr;let gr=[...Le.map(Xr=>({key:Xr.workspaceId,sessionIds:Xr.sessionIds.filter(Ko=>Fr.byId[Ko]!==void 0)})),{key:"",sessionIds:fr}];for(let{key:Xr,sessionIds:Ko}of gr){let Yr=kr[Xr],sn=Or({sessionIds:Ko,previousOrder:Yr,previousUpdatedAt:Cr[Xr]??{},list:Fr,orderBy:Pr,sortByRecency:Pr==="updated"&&(Yr===void 0||Ge)});sn.changed&&typeof wo=="function"&&wo(Xr,sn.order.map(Dt=>Dt),sn.updatedAt)}},[Fr,Pr,kr,Cr,wo,fr,Le]);let _e=(0,a.useMemo)(()=>Le.map(Ge=>{let gr=kr[Ge.workspaceId],Xr=Br(Ge.sessionIds,gr);return{...Ge,sessionIds:Xr}}),[kr,Le]),nt=(0,a.useMemo)(()=>Br(fr,kr[""]),[kr,fr]),Ot=(0,a.useMemo)(()=>je(Fr,_e,et,jr,{expandedGroups:nn,showArchived:ht,...kr[""]===void 0?{}:{ungroupedOrder:kr[""]}}),[Fr,_e,et,jr,ht,nn,kr]);(0,a.useEffect)(()=>{if(Dr===void 0||Wr===void 0)return;let Ge=Ot.find(gr=>gr.key===Wr);Ge===void 0||!Ge.expanded||!Ge.sessions.some(gr=>gr.id===Dr)||Ge.sessions.slice(0,Kt).some(gr=>gr.id===Dr)||Nr(gr=>gr.includes(Wr)?gr:[...gr,Wr])},[Ot,Wr,Dr]);let eo=Date.now(),Eo=o((Ge,gr)=>{if(To.current)return;To.current=!0,nr(null);let Xr=Ot.find($o=>$o.key===Ge.accountKey);if(Xr===void 0)return;let Ko=Xr.sessions.findIndex($o=>$o.id===gr.id);if(Ko===-1)return;let Yr=gr.half==="before"?gr.id:Xr.sessions[Ko+1]?.id;if(Yr===Ge.sessionId)return;let sn=Xr.sessions.findIndex($o=>$o.id===Ge.sessionId),Dt=Yr===void 0?Xr.sessions.length:Xr.sessions.findIndex($o=>$o.id===Yr);if(sn!==-1&&(Dt===sn||Dt===sn+1))return;let fo=Ge.accountKey===""?nt:_e.find($o=>$o.workspaceId===Ge.accountKey)?.sessionIds;if(fo===void 0)return;let Kr=fo.filter($o=>$o!==Ge.sessionId),Bn=Yr===void 0?Kr.length:Kr.indexOf(Yr);Kr.splice(Bn===-1?Kr.length:Bn,0,Ge.sessionId),st(Ge.accountKey,Kr.map($o=>$o)),!(Pr==="updated"||Ge.accountKey==="")&&Mo(Ge.accountKey,Ge.sessionId,Yr).catch($o=>{console.warn("session reorder rejected:",$o)})},"commitSessionDrag"),$r=o((Ge,gr)=>{if(Ro.current)return;Ro.current=!0,dr(null);let Xr=Le.findIndex(Dt=>Dt.workspaceId===gr.id);if(Xr===-1)return;let Ko=gr.half==="before"?gr.id:Le[Xr+1]?.workspaceId;if(Ko===Ge.workspaceId)return;let Yr=Le.findIndex(Dt=>Dt.workspaceId===Ge.workspaceId),sn=Ko===void 0?Le.length:Le.findIndex(Dt=>Dt.workspaceId===Ko);Yr!==-1&&(sn===Yr||sn===Yr+1)||No(Ge.workspaceId,Ko).catch(Dt=>{console.warn("workspace reorder rejected:",Dt)})},"commitWorkspaceDrag"),Vo=Ot[0]?.workspaceId!==void 0&&Vr?.over?.id===Ot[0].workspaceId&&Vr.over.half==="before";return(0,s.jsxs)("div",{className:U(Ke.treeBody,Ke.wide),children:[Vo&&(0,s.jsx)("span",{className:Ke.listTopDropIndicator,"aria-hidden":"true"}),(0,s.jsxs)("div",{className:U(Ke.list,Vo&&Ke.listTopDropActive),role:"tree","aria-label":wr("section.sessions"),children:[Ot.length===0&&(0,s.jsx)("div",{className:Ke.empty,children:wr("empty.none")}),Ot.map(Ge=>{let gr=Ge.workspaceId,Xr=gr!==void 0&&Vr?.over?.id===gr?Vr.over.half:null,Ko=gr===void 0?void 0:{start:o(()=>{Ro.current=!1,dr({workspaceId:gr,over:null})},"start"),end:o(()=>{Vr?.over!==null&&Vr?.over!==void 0?$r(Vr,Vr.over):dr(null),Ro.current=!1},"end")},Yr=gr===void 0?void 0:Dt=>{dr(fo=>fo===null?fo:{...fo,over:{id:gr,half:Dt}})},sn=gr===void 0?void 0:Dt=>{Vr!==null&&$r(Vr,{id:gr,half:Dt})};return(0,s.jsxs)("div",{className:U(Ke.groupSection,Xr==="before"&&Ke.workspaceDropBefore,Xr==="after"&&Ke.workspaceDropAfter),onDragOver:Vr===null||Yr===void 0?void 0:Dt=>{Dt.preventDefault(),Dt.dataTransfer.dropEffect="move",Yr(_o(Dt))},onDrop:Vr===null||sn===void 0?void 0:Dt=>{Dt.preventDefault(),sn(_o(Dt))},children:[(0,s.jsx)(ge,{group:Ge,t:wr,onToggle:o(()=>{Ge.expanded&&Nr(Dt=>Dt.filter(fo=>fo!==Ge.key)),Zt(Ge.key,!Ge.expanded)},"onToggle"),onCreate:o(()=>{Ge.workspaceId!==void 0&&(Zt(Ge.key,!0),be(Ge.workspaceId))},"onCreate"),drag:Ko,actions:Ge.workspaceId===void 0?void 0:{canArchive:(()=>{let Dt=Le.find(fo=>fo.workspaceId===Ge.workspaceId);return Dt!==void 0&&ue(Dt,et)>0})(),rename:o(()=>{Ge.workspaceId!==void 0&&Qe(Ge.workspaceId,Ge.label)},"rename"),archive:o(()=>{Ge.workspaceId!==void 0&&Ye(Ge.workspaceId,Ge.label)},"archive"),delete:o(()=>{Ge.workspaceId!==void 0&&tt(Ge.workspaceId,Ge.label)},"delete")}}),(Jt.includes(Ge.key)?Ge.sessions:Ge.sessions.slice(0,Kt)).map(Dt=>{let fo=vr!==null&&vr.accountKey===Ge.key;return(0,s.jsx)(Ct,{node:Dt,currentId:Yo,now:eo,onOpen:we,onRename:de,onFork:o(Kr=>{Sh(Kr,Me,or,wr)},"onFork"),onArchive:io,onUnarchive:vo,onDeleteSession:Ir,onReveal:Dt.id===Dr&&Ge.key===Wr?()=>{mo?.(Dt.id)}:void 0,drag:{start:o(()=>{To.current=!1,nr({accountKey:Ge.key,sessionId:Dt.id,over:null})},"start"),active:fo,marker:fo&&vr.over?.id===Dt.id?vr.over.half:null,hover:o(Kr=>{nr(Bn=>Bn===null?Bn:{...Bn,over:{id:Dt.id,half:Kr}})},"hover"),drop:o(Kr=>{vr!==null&&Eo(vr,{id:Dt.id,half:Kr})},"drop"),end:o(()=>{vr?.over!==null&&vr?.over!==void 0?Eo(vr,vr.over):nr(null),To.current=!1},"end")},t:wr},Dt.id)}),Ge.sessions.length>Kt&&(0,s.jsx)("button",{type:"button",className:Ke.sessionOverflowButton,"aria-expanded":Jt.includes(Ge.key),onClick:o(()=>{Nr(Dt=>kt(Dt,Ge.key))},"onClick"),children:Jt.includes(Ge.key)?wr("sessions.collapse"):wr("sessions.expand",{n:Ge.sessions.length-Kt})})]},Ge.key)})]}),(0,s.jsx)("span",{className:Ke.fade})]})}o(mn,"SessionTree");function bn({useSessions:P,useSessionPendingInteraction:z,useSessionStatus:Y,preferSessionStatus:ae,open:be,forkSession:we,onSessionRename:Me,onSessionArchive:Le,onSessionUnarchive:et,onSessionDelete:ht,archivedSessionIds:Qe,showArchived:Ye,orderBy:tt,sessionOrderByAccount:de,sessionUpdatedAtByAccount:io,syncSessionOrderAccount:vo,setSessionOrder:Ir,t:No,revealSessionId:Mo,onSessionRevealed:Pr,showArchivedToast:It}){let Zt=P(Jt=>Jt),kr=qe(z,Y,ae),Cr=li(Zt),wo=(0,a.useMemo)(()=>gt(Zt,Qe,kr,Ye),[Zt,Qe,kr,Ye]),st=(0,a.useMemo)(()=>wo.map(Jt=>Jt.id),[wo]),wr=(0,a.useRef)(tt);(0,a.useEffect)(()=>{if(Zt.phase!=="ready")return;let Jt=de[L],Nr=io[L]??{},vr=wr.current!=="updated"&&tt==="updated";wr.current=tt;let nr=Or({sessionIds:st,previousOrder:Jt,previousUpdatedAt:Nr,list:Zt,orderBy:tt,sortByRecency:tt==="updated"&&(Jt===void 0||vr)});nr.changed&&vo(L,nr.order.map(To=>To),nr.updatedAt)},[Zt,tt,de,io,st,vo]);let Dr=(0,a.useMemo)(()=>{let Jt=new Map(wo.map(Nr=>[Nr.id,Nr]));return Br(st,de[L]).flatMap(Nr=>{let vr=Jt.get(Nr);return vr===void 0?[]:[vr]})},[wo,de,st]),[mo,or]=(0,a.useState)(null),Fr=(0,a.useRef)(!1);xr(mo!==null);let jr=o((Jt,Nr)=>{if(Fr.current)return;Fr.current=!0,or(null);let vr=Dr.findIndex(po=>po.id===Nr.id);if(vr===-1)return;let nr=Nr.half==="before"?Nr.id:Dr[vr+1]?.id;if(nr===Jt.sessionId)return;let To=Dr.findIndex(po=>po.id===Jt.sessionId),Vr=nr===void 0?Dr.length:Dr.findIndex(po=>po.id===nr);if(To!==-1&&(Vr===To||Vr===To+1))return;let dr=Dr.map(po=>po.id).filter(po=>po!==Jt.sessionId),Ro=nr===void 0?dr.length:dr.indexOf(nr);dr.splice(Ro===-1?dr.length:Ro,0,Jt.sessionId),Ir(L,dr.map(po=>po))},"commitDrag"),Yo=Date.now();return(0,s.jsxs)("div",{className:U(Ke.treeBody,Ke.wide),children:[(0,s.jsxs)("div",{className:U(Ke.list,Ke.flatList),role:"tree","aria-label":No("section.sessions"),children:[Dr.length===0&&(0,s.jsx)("div",{className:Ke.empty,children:No("empty.none")}),Dr.map(Jt=>{let Nr=mo!==null;return(0,s.jsx)(Ct,{node:Jt,currentId:Cr,now:Yo,onOpen:be,onRename:Me,onFork:o(vr=>{Sh(vr,we,It,No)},"onFork"),onArchive:Le,onUnarchive:et,onDeleteSession:ht,onReveal:Jt.id===Mo?()=>{Pr?.(Jt.id)}:void 0,flat:!0,drag:{start:o(()=>{Fr.current=!1,or({accountKey:L,sessionId:Jt.id,over:null})},"start"),active:Nr,marker:Nr&&mo.over?.id===Jt.id?mo.over.half:null,hover:o(vr=>{or(nr=>nr===null?nr:{...nr,over:{id:Jt.id,half:vr}})},"hover"),drop:o(vr=>{mo!==null&&jr(mo,{id:Jt.id,half:vr})},"drop"),end:o(()=>{mo?.over!==null&&mo?.over!==void 0?jr(mo,mo.over):or(null),Fr.current=!1},"end")},t:No},Jt.id)})]}),(0,s.jsx)("span",{className:Ke.fade})]})}o(bn,"FlatList");function Ln({useSessions:P,useSessionPendingInteraction:z,useSessionStatus:Y,preferSessionStatus:ae,open:be,workspaces:we,archivedSessionIds:Me,showArchived:Le,query:et,remote:ht,resultLimit:Qe,t:Ye}){let tt=P(Pr=>Pr),de=qe(z,Y,ae),io=Ye("group.ungrouped"),vo=ht.query===et?ht:{query:et,status:"loading",items:[],hasMore:!1},Ir=(0,a.useMemo)(()=>rt(tt,we,et,Me,de,vo,Qe,Le,io),[tt,we,et,Me,de,vo,Qe,Le,io]),No=vo.status==="loading",Mo=vo.status==="error";return(0,s.jsxs)("div",{className:U(Ke.treeBody,Ke.wide),children:[(0,s.jsxs)("div",{className:Ke.list,children:[(0,s.jsx)("div",{className:Ke.searchTree,role:"tree","aria-label":Ye("search.results.aria"),children:Ir.items.map(Pr=>(0,s.jsx)(Je,{result:Pr,currentId:li(tt),onOpen:be,t:Ye},Pr.id))}),No&&(0,s.jsx)("div",{className:Ke.searchStatus,role:"status",children:Ye("search.pending")}),Mo&&(0,s.jsx)("div",{className:Ke.searchWarning,role:"status",children:Ye("search.unavailable")}),!No&&Ir.items.length===0&&(0,s.jsx)("div",{className:Ke.empty,children:Ye("search.noMatches")}),Ir.hasMore&&(0,s.jsx)("div",{className:Ke.searchStatus,children:Ye("search.hasMore",{n:Qe})})]}),(0,s.jsx)("span",{className:Ke.fade})]})}o(Ln,"SearchResults");let tn={listeners:new Set,request(P){for(let z of this.listeners)z(P)},subscribe(P){return this.listeners.add(P),()=>{this.listeners.delete(P)}}};function vn({wide:P,expandSidebar:z,useSessions:Y,useSessionPendingInteraction:ae,useSessionStatus:be,useWorkspaces:we,useStore:Me,actions:Le,startSession:et,open:ht,renameSession:Qe,forkSession:Ye,renameWorkspace:tt,deleteWorkspace:de,insertWorkspaceBefore:io,archiveSession:vo,archiveWorkspaceSessions:Ir,unarchiveSession:No,deleteSession:Mo,insertSessionBefore:Pr,createWorkspace:It,searchSessions:Zt,searchResultLimit:kr,useDirectoryFlow:Cr,renderSlot:wo,t:st}){let wr=typeof be=="function",Dr=ae??We,mo=be??ze,or=we(Te=>Te.items),Fr=we(Te=>Te.phase),jr=we(Te=>Te.archivedSessionIds),Yo=Y(Te=>Te),Jt=Cr(Te=>Te),Nr=Me(Te=>Te.groupBy),vr=Me(Te=>Te.orderBy),nr=Me(Te=>Te.showArchived)===!0,To=Me(Te=>Te.groupExpansion),Vr=Me(Te=>Te.sessionOrderByAccount),dr=Me(Te=>Te.sessionUpdatedAtByAccount),Ro=(0,a.useMemo)(()=>new Set(jr),[jr]),[po,Bt]=(0,a.useState)(void 0);(0,a.useEffect)(()=>tn.subscribe(Te=>Bt(Te)),[]);let Wr=o(Te=>{Bt(Ar=>Ar===Te?void 0:Ar)},"acknowledgeSessionReveal"),[nn,fr]=(0,a.useState)(null),_e=(0,a.useRef)(0),nt=o(Te=>{_e.current+=1,fr({text:Te,seq:_e.current})},"showArchivedToast"),Ot=o(Te=>{if(Ro.has(Te)){nt(st("archived.notOpenable"));return}ht(Te)},"guardedOpen");(0,a.useEffect)(()=>{Fr==="ready"&&Le.retainAccountKeys(["",L,...or.map(Te=>Te.workspaceId)])},[Le.retainAccountKeys,Fr,or]);let[eo,Eo]=(0,a.useState)(""),[$r,Vo]=(0,a.useState)(!1),Ge=vt(eo).trim(),[gr,Xr]=(0,a.useState)({query:"",status:"idle",items:[],hasMore:!1}),Ko=(0,a.useRef)(null),Yr=(0,a.useRef)(null),[sn,Dt]=(0,a.useState)(!1),fo=(0,a.useRef)(null),Kr=(0,a.useRef)(!1),[Bn,$o]=(0,a.useState)(!1);(0,a.useEffect)(()=>{if(P&&Bn){let Te=window.setTimeout(()=>{Yr.current?.focus({preventScroll:!0}),$o(!1)},So);return()=>{window.clearTimeout(Te)}}},[P,Bn]),(0,a.useEffect)(()=>{!P||!$r||Bn||Yr.current?.focus({preventScroll:!0})},[P,$r,Bn]),(0,a.useEffect)(()=>{if(!P||!$r)return;let Te=o(Ar=>{!(Ar.target instanceof Node)||Ko.current?.contains(Ar.target)===!0||(Yr.current?.blur(),Ge===""&&Vo(!1))},"onClick");return document.addEventListener("click",Te),()=>{document.removeEventListener("click",Te)}},[Ge,P,$r]),(0,a.useEffect)(()=>{if(Ge===""){Xr({query:"",status:"idle",items:[],hasMore:!1});return}let Te=new AbortController;Xr({query:Ge,status:"loading",items:[],hasMore:!1});let Ar=window.setTimeout(()=>{Zt(Ge,Te.signal).then(an=>{Te.signal.aborted||Xr({query:Ge,status:"ready",items:an.items,hasMore:an.hasMore})}).catch(()=>{Te.signal.aborted||Xr({query:Ge,status:"error",items:[],hasMore:!1})})},Et);return()=>{window.clearTimeout(Ar),Te.abort()}},[Ge,Zt]);let[ui,Ma]=(0,a.useState)(null),[Il,sd]=(0,a.useState)(""),[qi,Pl]=(0,a.useState)(!1),[ym,Ds]=(0,a.useState)(null),cs=Il.trim(),Nl=ui!==null&&cs!==""&&cs!==ui.currentTitle&&or.some(Te=>Te.title===cs),ad=qi||cs===""||ui===null||cs===ui.currentTitle||Nl,Ml=o(()=>{qi||(Ma(null),Ds(null))},"closeRename"),ld=o(()=>{ad||(Pl(!0),Ds(null),tt(ui.workspaceId,cs).then(()=>{Pl(!1),Ma(null)}).catch(Te=>{Pl(!1),Ds(Te instanceof Error?Te.message:String(Te))}))},"confirmRename"),[As,cd]=(0,a.useState)(null),[Tl,xm]=(0,a.useState)(""),[Ta,_s]=(0,a.useState)(!1),[In,ds]=(0,a.useState)(null),dd=Tl.trim(),Oa=Ta||dd===""||As===null,Ol=o(()=>{Ta||(cd(null),ds(null))},"closeSessionRename"),ka=o(()=>{Oa||(_s(!0),ds(null),Qe(As.sessionId,dd).then(()=>{_s(!1),cd(null)}).catch(Te=>{_s(!1),ds(Te instanceof Error?Te.message:String(Te))}))},"confirmSessionRename"),us=o((Te,Ar)=>{cd({sessionId:Te,currentTitle:Ar}),xm(Ar),ds(null)},"onSessionRename"),[Gi,Da]=(0,a.useState)(null),[Ls,mi]=(0,a.useState)(!1),[Sm,kl]=(0,a.useState)(null),Aa=o(()=>{Ls||(Da(null),kl(null))},"closeStopArchive"),Pi=o(Te=>{vo(Te).catch(Ar=>{let an=me(Ar);if(an!==void 0){let Rm=Yo.byId[Te];Da({sessionId:Te,title:Rm===void 0?Te:Rt(Rm,st),kinds:an.join(", ")}),kl(null);return}nt(xe(Ar,st))})},"onSessionArchive"),ud=o(()=>{Ls||Gi===null||(mi(!0),kl(null),vo(Gi.sessionId,{stopActivity:!0}).then(()=>{mi(!1),Da(null)}).catch(Te=>{mi(!1),kl(xe(Te,st))}))},"confirmStopArchive"),[Kn,ms]=(0,a.useState)(null),[Bs,Dl]=(0,a.useState)(!1),[pi,Al]=(0,a.useState)(null),md=o(()=>{Bs||(ms(null),Al(null))},"closeArchiveWorkspace"),Ch=o((Te,Ar)=>{let an=Pe(or,Te,Ar,Ro);an!==null&&(ms(an),Al(null))},"onArchiveWorkspaceRequest"),fi=o(()=>{Bs||Kn===null||(Dl(!0),Al(null),Ir(Kn.workspaceId).then(()=>{Dl(!1),ms(null)}).catch(Te=>{let Ar=ve(Kn,Te,st);Dl(Ar.archiving),Al(Ar.error)}))},"confirmArchiveWorkspace"),[ps,_l]=(0,a.useState)(null),[Fs,Ll]=(0,a.useState)(!1),[_a,fs]=(0,a.useState)(null),[Bl,yn]=(0,a.useState)(null);(0,a.useEffect)(()=>{_a===null||or.some(Te=>Te.workspaceId===_a)||(Ll(!1),fs(null),_l(null))},[_a,or]);let pd=o(()=>{Fs||(_l(null),yn(null))},"closeDelete"),La=o(()=>{Fs||ps===null||(Ll(!0),fs(null),yn(null),de(ps.workspaceId).then(()=>{fs(ps.workspaceId)}).catch(Te=>{Ll(!1),yn(Te instanceof Error?Te.message:String(Te))}))},"confirmDelete"),fd=o(Te=>{No(Te).catch(Ar=>{nt(se(Ar,st))})},"onSessionUnarchive"),[Ni,gs]=(0,a.useState)(null),[Ba,Hs]=(0,a.useState)(!1),[Fl,Cm]=(0,a.useState)(null),[wm,Fa]=(0,a.useState)(null);(0,a.useEffect)(()=>{Fl===null||Ro.has(Fl)||or.some(Te=>Te.sessionIds.includes(Fl))||(Hs(!1),Cm(null),gs(null))},[Fl,Ro,or]);let gd=o(()=>{Ba||(gs(null),Fa(null))},"closeDeleteSession"),wh=o(()=>{if(Ba||Ni===null)return;Hs(!0),Fa(null);let Te=Ni.sessionId;Mo(Te).then(()=>{Hs(!1),gs(null),Cm(Te)}).catch(Ar=>{Hs(!1),Fa(ie(Ar,st))})},"confirmDeleteSession");return(0,s.jsxs)("div",{className:U(Ke.root,!P&&Ke.rail),children:[(0,s.jsxs)("div",{className:Ke.sectionHeader,children:[P&&(0,s.jsx)("span",{className:U(Ke.sectionLabel,Ke.wide,$r&&Ke.sectionLabelHidden),children:st(Nr==="flat"?"section.sessions":"section.workspaces")}),P&&(0,s.jsx)("div",{className:U(Ke.searchSlot,$r&&Ke.searchSlotExpanded),children:(0,s.jsxs)("div",{ref:Ko,className:U(Ke.search,$r&&Ke.searchExpanded),onClick:o(()=>{Dt(!1),Vo(!0),Yr.current?.focus()},"onClick"),children:[(0,s.jsx)(l.Tooltip,{label:st("search"),side:"bottom",delayMs:500,disabled:$r,children:(0,s.jsx)("button",{type:"button",className:Ke.searchButton,"aria-label":st("search.sessions.aria"),"aria-expanded":$r,onClick:o(()=>{Dt(!1),Vo(!0)},"onClick"),children:(0,s.jsx)(l.IconSearchOutline16,{size:$r?11:14})})}),(0,s.jsx)("input",{ref:Yr,className:Ke.searchInput,type:"text",placeholder:st("search.placeholder"),maxLength:zt,value:eo,tabIndex:$r?0:-1,onChange:o(Te=>{Eo(vt(Te.target.value))},"onChange"),onKeyDown:o(Te=>{Te.key==="Escape"&&(Eo(""),Vo(!1))},"onKeyDown")}),$r&&(0,s.jsx)("button",{type:"button",className:Ke.clearButton,"aria-label":st("search.clear"),onClick:o(Te=>{Te.stopPropagation(),Eo(""),Vo(!1)},"onClick"),children:(0,s.jsx)(l.IconCloseFill14,{})})]})}),(0,s.jsxs)("div",{className:U(Ke.headerActions,P&&$r&&Ke.headerActionsHidden),children:[P&&(0,s.jsx)(Co,{groupBy:Nr,orderBy:vr,onGroupPick:o(Te=>{Le.setGroupBy(Te)},"onGroupPick"),onOrderPick:o(Te=>{Le.setOrderBy(Te)},"onOrderPick"),t:st}),Jt&&(0,s.jsx)(l.Tooltip,{label:st("workspace.add"),side:"bottom",delayMs:500,children:(0,s.jsx)("button",{ref:fo,type:"button",className:Ke.iconButton,"aria-label":st("workspace.add"),onClick:o(()=>{Dt(Te=>!Te)},"onClick"),children:(0,s.jsx)(l.IconProjectAddOutline16,{size:P?16:18})})})]}),(0,s.jsx)(Sr,{t:st,open:sn,anchorRef:fo,useWorkspaces:we,createWorkspace:It,useDirectoryFlow:Cr,renderDirectoryFlow:o(Te=>wo(vm,Te),"renderDirectoryFlow"),addOnly:!0,side:"right",onPick:o(Te=>{Dt(!1),et(Te)},"onPick"),onClose:o(()=>{Dt(!1)},"onClose")})]}),!P&&(0,s.jsx)("div",{className:Ke.search,children:(0,s.jsx)(l.Tooltip,{label:st("search"),children:(0,s.jsx)("button",{type:"button",className:Ke.searchButton,"aria-label":st("search.sessions.aria"),onClick:o(()=>{Vo(!0),$o(!0),z()},"onClick"),children:(0,s.jsx)(l.IconSearchOutline16,{size:18})})})}),(0,s.jsx)("div",{className:Ke.listArea,children:P&&(Ge!==""?(0,s.jsx)(Ln,{useSessions:Y,useSessionPendingInteraction:Dr,useSessionStatus:mo,preferSessionStatus:wr,open:o(Te=>{Bt(Te),Eo(""),Vo(!1),Ot(Te)},"open"),workspaces:or,archivedSessionIds:jr,showArchived:nr,query:Ge,remote:gr,resultLimit:kr,t:st}):Nr==="flat"?(0,s.jsx)(bn,{useSessions:Y,useSessionPendingInteraction:Dr,useSessionStatus:mo,preferSessionStatus:wr,open:Ot,revealSessionId:po,onSessionRevealed:Wr,showArchivedToast:nt,forkSession:Ye,onSessionRename:us,onSessionArchive:Pi,onSessionUnarchive:fd,onSessionDelete:o((Te,Ar)=>{gs({sessionId:Te,title:Ar}),Fa(null)},"onSessionDelete"),archivedSessionIds:jr,showArchived:nr,orderBy:vr,sessionOrderByAccount:Vr,sessionUpdatedAtByAccount:dr,syncSessionOrderAccount:Le.syncSessionOrderAccount,setSessionOrder:Le.setSessionOrder,t:st}):(0,s.jsx)(mn,{useSessions:Y,useSessionPendingInteraction:Dr,useSessionStatus:mo,preferSessionStatus:wr,revealSessionId:po,onSessionRevealed:Wr,showArchivedToast:nt,onSessionRename:us,onSessionArchive:Pi,onSessionUnarchive:fd,onSessionDelete:o((Te,Ar)=>{gs({sessionId:Te,title:Ar}),Fa(null)},"onSessionDelete"),forkSession:Ye,workspaces:or,groupExpansion:To,setGroupExpanded:Le.setGroupExpanded,sessionOrderByAccount:Vr,sessionUpdatedAtByAccount:dr,syncSessionOrderAccount:Le.syncSessionOrderAccount,setSessionOrder:Le.setSessionOrder,archivedSessionIds:jr,showArchived:nr,startSession:et,open:Ot,insertWorkspaceBefore:io,insertSessionBefore:Pr,orderBy:vr,t:st,onRenameRequest:o((Te,Ar)=>{Ma({workspaceId:Te,currentTitle:Ar}),sd(Ar),Ds(null)},"onRenameRequest"),onArchiveRequest:Ch,onDeleteRequest:o((Te,Ar)=>{_l({workspaceId:Te,title:Ar}),yn(null)},"onDeleteRequest")}))}),(0,s.jsxs)(l.Modal,{open:ui!==null,onClose:Ml,closeLabel:st("close"),title:st("rename.workspace.title"),footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",disabled:qi,onClick:Ml,children:st("cancel")}),(0,s.jsx)(l.Button,{variant:"primary",disabled:ad,onClick:ld,children:st("rename")})]}),children:[(0,s.jsx)("input",{className:Ke.renameInput,value:Il,"aria-label":st("field.workspaceName"),autoFocus:!0,disabled:qi,onFocus:o(Te=>{Te.target.select()},"onFocus"),onChange:o(Te=>{sd(Te.target.value),Ds(null)},"onChange"),onCompositionStart:o(()=>{Kr.current=!0},"onCompositionStart"),onCompositionEnd:o(()=>{Kr.current=!1},"onCompositionEnd"),onKeyDown:o(Te=>{Te.key==="Enter"&&!Kr.current&&(Te.preventDefault(),ld())},"onKeyDown")}),Nl&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:st("conflict.named",{name:cs})}),ym!==null&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:ym})]}),(0,s.jsxs)(l.Modal,{open:As!==null,onClose:Ol,closeLabel:st("close"),title:st("rename.session.title"),footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",disabled:Ta,onClick:Ol,children:st("cancel")}),(0,s.jsx)(l.Button,{variant:"primary",disabled:Oa,onClick:ka,children:st("rename")})]}),children:[(0,s.jsx)("input",{className:Ke.renameInput,value:Tl,"aria-label":st("field.sessionName"),autoFocus:!0,disabled:Ta,onFocus:o(Te=>{Te.target.select()},"onFocus"),onChange:o(Te=>{xm(Te.target.value),ds(null)},"onChange"),onCompositionStart:o(()=>{Kr.current=!0},"onCompositionStart"),onCompositionEnd:o(()=>{Kr.current=!1},"onCompositionEnd"),onKeyDown:o(Te=>{Te.key==="Enter"&&!Kr.current&&(Te.preventDefault(),ka())},"onKeyDown")}),In!==null&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:In})]}),(0,s.jsxs)(l.Modal,{open:ps!==null,onClose:pd,closeLabel:st("close"),title:st("delete.workspace"),...ps===null?{}:{description:st("delete.desc",{name:ps.title})},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",disabled:Fs,onClick:pd,children:st("cancel")}),(0,s.jsx)(l.Button,{variant:"outline",className:Ke.deleteAction,disabled:Fs,onClick:La,children:st("delete.workspace")})]}),children:[Fs&&(0,s.jsx)("div",{className:Ke.deleteStatus,role:"status",children:st("delete.pending")}),Bl!==null&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:Bl})]}),(0,s.jsxs)(l.Modal,{open:Kn!==null,onClose:md,closeLabel:st("close"),title:Kn===null?"":st("archiveWorkspace.title",{n:Kn.count}),...Kn===null?{}:{description:st("archiveWorkspace.desc",{name:Kn.title})},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",disabled:Bs,onClick:md,children:st("cancel")}),(0,s.jsx)(l.Button,{variant:"outline",className:"dsham_archiveWorkspaceConfirm",disabled:Bs,onClick:fi,children:st("archiveWorkspace.confirm")})]}),children:[Bs&&(0,s.jsx)("div",{className:Ke.deleteStatus,role:"status",children:st("archiveWorkspace.pending")}),pi!==null&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:pi})]}),(0,s.jsxs)(l.Modal,{open:Ni!==null,onClose:gd,closeLabel:st("close"),title:st("deleteSession.title"),...Ni===null?{}:{description:st("deleteSession.desc",{name:Ni.title})},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",disabled:Ba,onClick:gd,children:st("cancel")}),(0,s.jsx)(l.Button,{variant:"outline",className:Ke.deleteAction,disabled:Ba,onClick:wh,children:st("deleteSession.title")})]}),children:[Ba&&(0,s.jsx)("div",{className:Ke.deleteStatus,role:"status",children:st("deleteSession.pending")}),wm!==null&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:wm})]}),(0,s.jsxs)(l.Modal,{open:Gi!==null,onClose:Aa,closeLabel:st("close"),title:st("archiveActive.title"),...Gi===null?{}:{description:st("archiveActive.desc",{name:Gi.title,kinds:Gi.kinds})},footer:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.Button,{variant:"outline",disabled:Ls,onClick:Aa,children:st("cancel")}),(0,s.jsx)(l.Button,{variant:"outline",className:"dsham_archiveWorkspaceConfirm",disabled:Ls,onClick:ud,children:st("archiveActive.confirm")})]}),children:[Ls&&(0,s.jsx)("div",{className:Ke.deleteStatus,role:"status",children:st("archiveActive.pending")}),Sm!==null&&(0,s.jsx)("div",{className:Ke.renameError,role:"alert",children:Sm})]}),nn!==null&&(0,s.jsx)(l.Toast,{key:nn.seq,text:nn.text,onDone:o(()=>{fr(null)},"onDone")})]})}o(vn,"WorkspaceBrowser");let Ii=".dsham_archiveTabsLocked{opacity:.5}",Nt=".dsham_settings{container-type:inline-size;min-width:0;box-sizing:border-box;width:min(100%,760px);margin:0 auto;padding:0 0 32px;color:var(--dsw-alias-label-primary)}.dsham_settingsHeader{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-bottom:16px}.dsham_settings h2{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;white-space:nowrap}.dsham_settingsIntro{margin:12px 0 0;max-width:42em;color:var(--dsw-alias-label-tertiary);font-size:14px;line-height:22px}.dsham_settingsToolbar{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.dsham_settingsSearch{display:flex;align-items:center;gap:8px;min-width:0}.dsham_settingsFilters{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;min-width:0}.dsham_settingsSort{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}.dsham_settingsSortLabel{color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px;white-space:nowrap}.dsham_settingsFilter{width:100%;min-width:0}.dsham_settingsSearch .dsham_settingsFilter{flex:none;width:128px}.dsham_settingsFilters>.dsham_settingsFilter{flex:1 1 112px;width:auto;min-width:96px;max-width:148px}.dsham_settingsFilters>.dsham_projectFilter{flex:none;width:128px;min-width:128px;max-width:128px}.dsham_projectFilter .ant-select-selection-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dsham_settingsSort .dsham_settingsFilter{flex:none;width:128px}@container(max-width:560px){.dsham_settingsFilters{flex-wrap:wrap}}.dsham_settingsSearch .ant-input-affix-wrapper,.dsham_settingsSearch .dsham_searchField{flex:1;min-width:0;width:auto}.dsham_menuLabel{display:inline-flex;align-items:center;gap:8px;line-height:22px}.dsham_menuLabel svg{position:static;display:block;width:16px;height:16px;flex:none}.dsham_settingsGroup{margin:0 0 20px}.dsham_settingsGroupHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}.dsham_settingsGroupTitle{display:flex;align-items:center;gap:8px;min-width:0;margin:0;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600}.dsham_settingsGroupTitle svg{flex:none;color:var(--dsw-alias-label-secondary)}.dsham_settingsCount{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px}.dsham_settingsList{overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:12px;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-button-elevated-fill))}.ant-list-item.dsham_settingsRow{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.ant-list-item.dsham_settingsRow:last-child{border-bottom:0}.dsham_settingsRow{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.dsham_settingsRow:last-child{border-bottom:0}.dsham_settingsContent{min-width:0;flex:1}.dsham_settingsTitle{overflow:hidden;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}.dsham_settingsMeta{margin-top:2px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:16px}.dsham_settingsActions{display:flex;align-items:center;gap:4px;flex:none}.dsham_settingsAction{min-height:32px;padding:0 12px;color:var(--dsw-alias-label-primary);background:transparent;border:1px solid var(--dsw-alias-border-l2);border-radius:8px;cursor:pointer;font:inherit;font-size:13px;font-weight:500}.dsham_settingsAction:hover{filter:brightness(1.12)}.dsham_settingsDelete{display:flex;align-items:center;justify-content:center;width:28px;height:28px;color:var(--dsw-alias-label-tertiary);background:transparent;border:0;border-radius:8px;cursor:pointer}.dsham_settingsDelete:hover{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-interactive-bg-hover)}.dsham_settingsEmpty{padding:28px 8px;color:var(--dsw-alias-label-secondary);text-align:center}.dsham_settingsError{margin-top:10px;color:var(--dsw-alias-state-error-primary);font-size:12px}@container(max-width:520px){.dsham_settingsHeader{margin-bottom:16px}.dsham_settingsToolbar{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:16px}.dsham_settingsSearch{grid-column:1/-1}.dsham_settingsFilter{flex:1;min-width:0}.dsham_settingsGroup{margin-bottom:32px}.dsham_settingsRow{padding:10px 12px}.dsham_settingsActions{gap:4px}}",zo=".dsham_settingsTitleLink{display:block;max-width:100%;padding:0;border:0;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;font-weight:600;line-height:20px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.dsham_settingsTitleLink:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}.dsham_settingsTitleLink:disabled{cursor:default;opacity:.6}.dsham_groupToggle{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:4px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.dsham_groupToggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dsham_settingsRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.dsham_settingsRow[data-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}.dsham_settingsTitleLink:focus-visible,.dsham_groupToggle:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#3b82f6);outline-offset:2px}@container(max-width:620px){.dsham_settingsToolbar{grid-template-columns:repeat(3,minmax(0,1fr))}.dsham_settingsSearch{grid-column:1/-1}}@container(max-width:400px){.dsham_settingsRow{gap:8px;padding:10px 8px}.dsham_settingsActions{gap:0}.dsham_settingsMeta{font-size:11px}}.dsham_settingsGroupMeta{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap}.dsham_settingsStatus{margin-top:10px;color:var(--dsw-alias-label-secondary);font-size:12px}.ant-btn.dsham_favoriteOn{--ant-btn-text-color:#e8b931;--ant-btn-text-color-hover:#e8b931;--ant-btn-text-color-active:#e8b931;color:#e8b931}",Lo=".dsham_settingsTitleRow{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}.dsham_settingsLinks{display:flex;align-items:center;gap:8px;flex-wrap:wrap}@media(max-width:720px){.dsham_settingsTitleRow{flex-wrap:wrap}}",ci=".dsham_archiveWorkspaceConfirm{color:var(--dsw-alias-state-error-primary)!important;background:transparent!important;border-color:var(--dsw-alias-state-error-primary)!important}.dsham_archiveWorkspaceConfirm:hover:not(:disabled){background:color-mix(in srgb,var(--dsw-alias-state-error-primary) 20%,transparent)!important}.dsham_archiveWorkspaceConfirm:focus-visible{outline:2px solid var(--dsw-alias-state-error-secondary);outline-offset:2px}.dsham_archiveWorkspaceConfirm:disabled{cursor:not-allowed;opacity:.5}",Yn=".dsham_settingsSelection{margin:-8px 0 16px;padding:4px 0 12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.dsham_settingsSelectionMain{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;min-height:36px}.dsham_settingsSelectionSummary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0;max-width:100%}.dsham_settingsSelectionToggle{display:inline-flex;flex:none;white-space:nowrap;align-items:center;gap:12px;color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px;cursor:pointer}.dsham_settingsSelectionClear{flex:none;min-height:28px;padding:0 0 0 12px;border:0;border-left:1px solid var(--dsw-alias-border-l2);background:transparent;color:var(--dsw-alias-state-business-primary,#3b82f6);font:inherit;font-size:13px;white-space:nowrap;cursor:pointer}.dsham_settingsSelectionClear:hover:not(:disabled){text-decoration:underline}.dsham_settingsSelectionActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:100%;margin-left:auto}.dsham_settingsSelectionAction{flex:none;white-space:nowrap;min-height:32px;padding:0 14px;color:var(--dsw-alias-label-primary);background:transparent;border:1px solid var(--dsw-alias-border-l2);border-radius:7px;cursor:pointer;font:inherit;font-size:13px;font-weight:500}.dsham_settingsSelectionAction:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.dsham_settingsSelectionArchive,.dsham_settingsSelectionScope{margin:8px 0 0;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow-wrap:anywhere}.dsham_settingsSelectionAction:disabled,.dsham_settingsSelectionClear:disabled{cursor:not-allowed;opacity:.5}.dsham_settingsSelectionAction:focus-visible,.dsham_settingsSelectionClear:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#3b82f6);outline-offset:3px}",mt=".dsham_settings{margin:0 auto!important}@media(max-width:720px){.dsham_settings{margin:0 auto!important}}";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify("dsh-archive-manager/ArchiveSettings.layout.css")+"]")===null){let P=document.createElement("style");P.dataset.plugin="@michengai/dsh-archive-manager",P.dataset.pluginCss="dsh-archive-manager/ArchiveSettings.layout.css",P.textContent=mt+ci,document.head.appendChild(P)}function lr({id:P,className:z,value:Y,options:ae,onChange:be,disabled:we=!1,"aria-label":Me}){let Le=ae.find(et=>et.value===Y);return(0,s.jsx)(AO,{id:P,className:z===void 0?"dsham_settingsFilter":`dsham_settingsFilter ${z}`,"aria-label":Me,disabled:we,value:Y,options:ae,title:Le?.title??Le?.label,popupMatchSelectWidth:!1,onChange:o(et=>{we||be(String(et))},"onChange")})}o(lr,"ArchiveProjectSelect");function rn({selectedCount:P,hiddenCount:z,allVisibleSelected:Y,selectedVisibleCount:ae,visibleCount:be,busy:we,t:Me,onToggle:Le,onClear:et,onRestore:ht,onDelete:Qe,onArchive:Ye}){let tt=P>0;return(0,s.jsxs)("div",{className:"dsham_settingsSelection",children:[(0,s.jsxs)("div",{className:"dsham_settingsSelectionMain",children:[(0,s.jsxs)("div",{className:"dsham_settingsSelectionSummary",children:[(0,s.jsxs)("label",{className:"dsham_settingsSelectionToggle",title:Me("archives.selectAllFiltered"),children:[(0,s.jsx)(di,{checked:Y,indeterminate:ae>0&&!Y,disabled:we||be===0,label:Me("archives.selectAllFiltered"),onChange:o(de=>Le(de.target.checked),"onChange")}),(0,s.jsx)("span",{"aria-live":"polite",children:tt?Me("archives.selectedCount",{n:P}):Me("archives.selectAllFiltered")})]}),tt&&d({disabled:we,"aria-label":Me("archives.clearSelection"),onClick:et,children:Me("archives.clearSelectionShort")})]}),tt&&(0,s.jsxs)("div",{className:"dsham_settingsSelectionActions",children:Ye?[d({disabled:we,onClick:Ye,children:Me("archives.archiveSelected")})]:[d({disabled:we,"aria-label":Me("archives.restoreSelected"),onClick:ht,children:Me("archives.restore")}),d({danger:!0,disabled:we,"aria-label":Me("archives.deleteSelected"),onClick:Qe,children:Me("archives.deleteSelectionShort")})]})]}),z>0&&(0,s.jsx)("p",{className:"dsham_settingsSelectionScope",role:"status",children:Me("archives.selectionHiddenHint",{hidden:z})})]})}o(rn,"ArchiveSelectionToolbar");function di({checked:P,indeterminate:z=!1,disabled:Y=!1,label:ae,onChange:be}){return(0,s.jsx)(HC,{checked:P,indeterminate:z,disabled:Y,"aria-label":ae,onChange:be})}o(di,"ArchiveSelectionCheckbox");function yt({busy:P,title:z,t:Y,onPreview:ae,onRestoreOpen:be,onDelete:we,onCopyId:Me,onCopyPath:Le}){let[et,ht]=(0,a.useState)(!1),Qe=o(tt=>{if(!P){if(tt==="copyId")return Me?.();if(tt==="copyPath")return Le?.();if(tt==="preview")return ae?.();if(tt==="restoreOpen")return be?.();tt==="delete"&&we?.()}},"choose"),Ye=[...ae?[{id:"preview",label:Y("discovery.preview"),danger:!1}]:[],...be?[{id:"restoreOpen",label:Y("archives.restoreOpen"),danger:!1}]:[],...Me?[{id:"copyId",label:Y("details.copyId"),danger:!1}]:[],...Le?[{id:"copyPath",label:Y("details.copyPath"),danger:!1}]:[],...we?[{id:"delete",label:Y("menu.deleteSession"),danger:!0}]:[]];return(0,s.jsx)(zC,{trigger:["click"],placement:"bottomRight",open:P?!1:et,onOpenChange:o(tt=>{P||ht(tt)},"onOpenChange"),menu:{items:Ye.map(tt=>({key:tt.id,label:tt.label,danger:tt.danger,disabled:P,onClick:o(()=>Qe(tt.id),"onClick")}))},children:d({variant:"ghost",disabled:P,title:Y("archives.moreActions"),"aria-label":Y("archives.moreActions")+Y("common.separator")+z,"aria-haspopup":"menu","aria-expanded":et&&!P,icon:(0,s.jsx)(l.IconEllipsisOutline16,{})})})}o(yt,"ArchivedSessionMenu");function ar({group:P,busy:z,onArchive:Y,onRestore:ae,onDelete:be,t:we}){let Me=P.key===on,Le=o((de,io)=>(0,s.jsxs)("span",{className:"dsham_menuLabel",children:[de,io]}),"menuLabelNode"),et=Y?[{id:"archive",label:Le((0,s.jsx)(l.IconArchiveOutline20,{size:16}),we(Me?"archives.archiveUngrouped":"archives.archiveProject")),danger:!0}]:[{id:"restore",label:Le((0,s.jsx)(l.IconRefreshOutline16,{size:16}),we(Me?"archives.restoreUngrouped":"archives.restoreProject")),danger:!1},{id:"delete",label:Le((0,s.jsx)(l.IconTrashOutline16,{size:16}),we(Me?"archives.deleteUngrouped":"archives.deleteProject")),danger:!0}],[ht,Qe]=(0,a.useState)(!1),Ye=we(Me?"archives.ungroupedActions":"archives.projectActions",{name:P.title}),tt=o(de=>{z||(de==="archive"?Y?.():de==="restore"?ae?.():de==="delete"&&be?.())},"choose");return(0,s.jsx)(zC,{trigger:["click"],placement:"bottomRight",open:z?!1:ht,onOpenChange:o(de=>{z||Qe(de)},"onOpenChange"),menu:{items:et.map(de=>({key:de.id,label:de.label,danger:de.danger,disabled:z,onClick:o(()=>tt(de.id),"onClick")}))},children:d({variant:"ghost",disabled:z,"aria-label":Ye,"aria-haspopup":"menu","aria-expanded":ht&&!z,icon:(0,s.jsx)(l.IconEllipsisOutline16,{})})})}o(ar,"ArchivedGroupActions");let on="__ungrouped__";function ot(P){return P===on?{scope:"ungrouped"}:{scope:"workspace",workspaceId:P}}o(ot,"archivedBatchTargetForGroup");function cr(P,z,Y){let ae=[...new Set(P??[])];if(Y.scope==="all")return ae;if(Y.scope==="sessions"){let we=new Set(Y.sessionIds??[]);return ae.filter(Me=>we.has(Me))}if(Y.scope==="workspace"){let we=new Set(z.find(Me=>Me.workspaceId===Y.workspaceId)?.sessionIds??[]);return ae.filter(Me=>we.has(Me))}let be=new Set(z.flatMap(we=>we.sessionIds));return ae.filter(we=>!be.has(we))}o(cr,"deriveArchivedBatchIds");function Na(P){return[...new Set(P.flatMap(z=>z.sessions.map(Y=>Y.id)))]}o(Na,"archivedSessionIdsInGroups");function hm(P,z){let Y=new Set(z);return[...new Set(P)].filter(ae=>Y.has(ae))}o(hm,"pruneArchivedSelection");function $l(P,z,Y){let ae=new Set(P);for(let be of z)Y?ae.add(be):ae.delete(be);return[...ae]}o($l,"toggleArchivedSelection");function id(P,z){let Y=P.deletedSessionIds.length,ae=P.skippedSessionIds.length;return P.failures.length>0?{kind:"error",message:z("archives.deletePartial",{deleted:Y,skipped:ae,failed:P.failures.length,detail:P.failures[0].message})}:ae>0&&Y>0?{kind:"notice",message:z("archives.deleteSuccessWithSkipped",{deleted:Y,skipped:ae})}:ae>0?{kind:"notice",message:z("archives.deleteSkipped",{n:ae})}:{kind:"notice",message:z("archives.deleteSuccess",{n:Y})}}o(id,"archivedDeleteFeedback");function bm(P,z){let Y=new Set(z);return Object.values(P).filter(ae=>ae.origin!=="subagent"&&!ae.blank&&!Y.has(ae.id)).map(ae=>ae.id)}o(bm,"unarchivedSessionIds");function e0(P,z,Y,ae){let be=z.map(Le=>({key:Le.workspaceId,title:Le.title,ids:new Set(Le.sessionIds),sessions:[]})),we=[];for(let Le of Y){let et=P[Le];if(et===void 0||et.origin==="subagent")continue;let ht=be.find(Qe=>Qe.ids?.has(Le));(ht===void 0?we:ht.sessions).push(et)}let Me=be.filter(Le=>Le.sessions.length>0);return we.length>0&&Me.push({key:on,title:ae,sessions:we}),Me}o(e0,"deriveArchivedGroups");function t0(P,z,Y,ae,be={}){let we=o((ht,Qe)=>String(ht).localeCompare(String(Qe),void 0,{numeric:!0,sensitivity:"base"}),"compareText"),Me=o(ht=>{let Qe=z==="created"?be[ht.id]?.createdAt??Y[ht.id]:ht.updatedAt;return typeof Qe=="number"&&Number.isFinite(Qe)?Qe:Number.NEGATIVE_INFINITY},"timestampOf"),Le=o((ht,Qe)=>{if(z==="turnsAsc"||z==="turnsDesc"){let Ye=GC(be[ht.id]?.turnCount,be[Qe.id]?.turnCount,z);if(Ye)return Ye}if(z!=="alphabetical"){let Ye=Me(Qe)-Me(ht);if(Number.isFinite(Ye)&&Ye!==0)return Ye}return we(Rt(ht,ae),Rt(Qe,ae))||we(ht.id,Qe.id)},"compareSessions");return P.map(ht=>({...ht,sessions:[...ht.sessions].sort(Le)})).sort((ht,Qe)=>{if(z==="turnsAsc"||z==="turnsDesc"){let Ye=GC(be[ht.sessions[0]?.id]?.turnCount,be[Qe.sessions[0]?.id]?.turnCount,z);if(Ye)return Ye}if(z!=="alphabetical"){let Ye=Me(Qe.sessions[0])-Me(ht.sessions[0]);if(Number.isFinite(Ye)&&Ye!==0)return Ye}return we(ht.title,Qe.title)||we(ht.key,Qe.key)})}o(t0,"sortArchivedGroups");let r0={...bk,...ZO,...pm,"locale.language":"zh","service.unavailable":"\u670D\u52A1\u5C1A\u672A\u5C31\u7EEA\uFF0C\u8BF7\u91CD\u8BD5","archives.archiveProject":"\u5F52\u6863\u8BE5\u9879\u76EE\u7684\u5168\u90E8\u804A\u5929","archives.archiveUngrouped":"\u5F52\u6863\u5168\u90E8\u672A\u5206\u7EC4\u804A\u5929","archives.archiveProjectDesc":"\u5C06\u201C{name}\u201D\u4E2D\u5168\u90E8 {n} \u6761\u672A\u5F52\u6863\u4F1A\u8BDD\u5F52\u6863\uFF0C\u4E0D\u53D7\u5F53\u524D\u641C\u7D22\u7B5B\u9009\u5F71\u54CD\u3002\u4E4B\u540E\u53EF\u5728\u201C\u5DF2\u5F52\u6863\u201D\u4E2D\u6062\u590D\u3002","archives.archiveUngroupedDesc":"\u5C06\u5168\u90E8 {n} \u6761\u672A\u5206\u7EC4\u7684\u672A\u5F52\u6863\u4F1A\u8BDD\u5F52\u6863\uFF0C\u4E0D\u53D7\u5F53\u524D\u641C\u7D22\u7B5B\u9009\u5F71\u54CD\u3002\u4E4B\u540E\u53EF\u5728\u201C\u5DF2\u5F52\u6863\u201D\u4E2D\u6062\u590D\u3002","archives.tab.archived":"\u5DF2\u5F52\u6863","archives.tab.unarchived":"\u672A\u5F52\u6863","archives.searchUnarchived":"\u641C\u7D22\u672A\u5F52\u6863\u804A\u5929","archives.emptyUnarchived":"\u6682\u65E0\u672A\u5F52\u6863\u4F1A\u8BDD\u3002","archives.archiveSelected":"\u5F52\u6863","archives.openSession":"\u6253\u5F00","archives.moreActions":"\u66F4\u591A\u64CD\u4F5C","archives.archiveSelectedDesc":"\u5C06\u9009\u4E2D\u7684\u4F1A\u8BDD\u5F52\u6863\uFF0C\u5305\u542B\u5F53\u524D\u7B5B\u9009\u9690\u85CF\u7684\u5DF2\u9009\u9879\u3002\u4E4B\u540E\u53EF\u5728\u201C\u5DF2\u5F52\u6863\u201D\u4E2D\u67E5\u770B\u548C\u6062\u590D\u3002","archives.archiveSuccess":"\u5DF2\u5F52\u6863 {n} \u6761\u4F1A\u8BDD\u3002","archives.archiveBatchFailed":"\u6279\u91CF\u5F52\u6863\u5931\u8D25\uFF1A{detail}","archives.navigationUnavailable":"\u5F53\u524D\u5BBF\u4E3B\u65E0\u6CD5\u4FDD\u6301\u5F52\u6863\u5BF9\u8BDD\uFF0C\u8BF7\u4F7F\u7528\u201C\u6062\u590D\u5E76\u6253\u5F00\u201D\u3002","archives.sessionNotRetained":"\u5BBF\u4E3B\u672A\u4FDD\u7559\u76EE\u6807\u4F1A\u8BDD\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u6216\u6062\u590D\u540E\u518D\u8BD5\u3002","archives.restoreOpen":"\u6062\u590D\u6253\u5F00","archives.selectedCount":"\u5DF2\u9009 {n} \u6761","archives.selectionHiddenHint":"\u542B\u5F53\u524D\u672A\u663E\u793A\u7684 {hidden} \u6761\uFF0C\u4E5F\u5C06\u53C2\u4E0E\u64CD\u4F5C","archives.clearSelectionShort":"\u6E05\u7A7A","archives.restore":"\u6062\u590D","archives.archiveTitle":"\u5F52\u6863 {n} \u4E2A\u804A\u5929\uFF1F","archives.deleteSelectionShort":"\u5220\u9664","archives.clearSelection":"\u6E05\u7A7A\u9009\u62E9","group.ungrouped":"\u672A\u5206\u7EC4","session.new":"\u65B0\u4F1A\u8BDD","section.workspaces":"\u5DE5\u4F5C\u533A","section.sessions":"\u4F1A\u8BDD","viewOptions.label":"\u89C6\u56FE\u9009\u9879","groupBy.label":"\u5206\u7EC4\u65B9\u5F0F","groupBy.workspace":"\u6309\u5DE5\u4F5C\u533A","groupBy.flat":"\u5355\u5217\u8868","orderBy.label":"\u6392\u5E8F\u65B9\u5F0F","orderBy.manual":"\u624B\u52A8\u6392\u5E8F","orderBy.updated":"\u6700\u8FD1\u66F4\u65B0","sessions.expand":"\u5C55\u5F00\u5176\u4F59 {n} \u4E2A\u4F1A\u8BDD","sessions.collapse":"\u6536\u8D77","empty.none":"\u6682\u65E0\u4F1A\u8BDD","workspace.add":"\u6DFB\u52A0\u5DE5\u4F5C\u533A","search.sessions.aria":"\u641C\u7D22\u4F1A\u8BDD","search.placeholder":"\u641C\u7D22\u4F1A\u8BDD\u2026","search.clear":"\u6E05\u9664\u641C\u7D22","search.results.aria":"\u641C\u7D22\u7ED3\u679C","search.pending":"\u6B63\u5728\u641C\u7D22\u4F1A\u8BDD\u5386\u53F2\u2026","search.unavailable":"\u5185\u5BB9\u641C\u7D22\u6682\u4E0D\u53EF\u7528\uFF0C\u4EC5\u663E\u793A\u540D\u79F0\u5339\u914D\u3002","search.noMatches":"\u65E0\u5339\u914D\u4F1A\u8BDD","search.hasMore":"\u4EC5\u663E\u793A\u524D {n} \u6761\u7ED3\u679C\uFF0C\u8BF7\u7F29\u5C0F\u641C\u7D22\u8303\u56F4\u3002","menu.addWorkspace":"\u6DFB\u52A0\u5DE5\u4F5C\u533A\u2026","menu.unarchive":"\u53D6\u6D88\u5F52\u6863","menu.deleteSession":"\u5220\u9664\u4F1A\u8BDD","archived.badge":"\u5F52\u6863\u4F1A\u8BDD","archived.notOpenable":"\u5DF2\u5F52\u6863\uFF0C\u53D6\u6D88\u5F52\u6863\u540E\u53EF\u7EE7\u7EED\u5BF9\u8BDD","archives.title":"\u5F52\u6863\u4F1A\u8BDD","archives.description":"\u7BA1\u7406\u5DF2\u5F52\u6863\u4F1A\u8BDD\uFF0C\u6216\u9009\u62E9\u672A\u5F52\u6863\u4F1A\u8BDD\u8FDB\u884C\u6279\u91CF\u5F52\u6863\u3002","archives.viewProject":"GitHub","archives.feedback":"\u95EE\u9898\u53CD\u9988","archives.empty":"\u6682\u65E0\u5DF2\u5F52\u6863\u4F1A\u8BDD","archives.emptyFiltered":"\u6CA1\u6709\u7B26\u5408\u7B5B\u9009\u6761\u4EF6\u7684\u804A\u5929","archives.searchPlaceholder":"\u641C\u7D22\u5DF2\u5F52\u6863\u804A\u5929","archives.sortBy":"\u6392\u5E8F\u65B9\u5F0F","archives.sortLabel":"\u6392\u5E8F","archives.sortUpdated":"\u66F4\u65B0\u65F6\u95F4","archives.sortCreated":"\u521B\u5EFA\u65F6\u95F4","archives.sortAlphabetical":"\u6309\u5B57\u6BCD\u987A\u5E8F","archives.projectFilter":"\u6309\u9879\u76EE\u7B5B\u9009","archives.allProjects":"\u6240\u6709\u9879\u76EE","archives.sessionCount":"{n} \u4E2A\u804A\u5929","archives.selectAllFiltered":"\u5168\u9009\u5F53\u524D\u7B5B\u9009\u7ED3\u679C","archives.selectSession":"\u9009\u62E9\u4F1A\u8BDD\u201C{name}\u201D","archives.restoreSelected":"\u6062\u590D\u6240\u9009","archives.deleteSelected":"\u5220\u9664\u6240\u9009","archives.timestamp":"{date}\uFF0C{time}","archives.restoreProject":"\u6062\u590D\u9879\u76EE\u5168\u90E8\u804A\u5929","archives.restoreUngrouped":"\u5168\u90E8\u6062\u590D","archives.deleteProject":"\u5220\u9664\u9879\u76EE\u5168\u90E8\u804A\u5929","archives.deleteUngrouped":"\u5168\u90E8\u5220\u9664","archives.projectActions":"\u9879\u76EE\u201C{name}\u201D\u7684\u5F52\u6863\u64CD\u4F5C","archives.ungroupedActions":"\u672A\u5206\u7EC4\u804A\u5929\u7684\u5F52\u6863\u64CD\u4F5C","archives.restoreSuccess":"\u5DF2\u6062\u590D {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u3002","archives.restoreBatchFailed":"\u6279\u91CF\u6062\u590D\u5931\u8D25\uFF1A{detail}","archives.deleteSelectedTitle":"\u5220\u9664\u6240\u9009\u5DF2\u5F52\u6863\u804A\u5929","archives.deleteSelectedDesc":"\u5C06\u6C38\u4E45\u5220\u9664\u6240\u9009\u7684 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u53CA\u5176\u5B50\u4EE3\u7406\uFF08\u542B\u6B63\u5728\u8FD0\u884C\u7684\uFF09\u548C\u8BB0\u5F55\u3002\u5176\u4ED6\u804A\u5929\u4E0D\u4F1A\u53D7\u5F71\u54CD\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","archives.deleteSelectedConfirm":"\u5220\u9664\u6240\u9009\u804A\u5929","archives.deleteProjectTitle":"\u5220\u9664\u201C{name}\u201D\u4E2D\u7684\u5DF2\u5F52\u6863\u804A\u5929","archives.deleteProjectDesc":"\u5C06\u6C38\u4E45\u5220\u9664\u201C{name}\u201D\u4E2D\u7684 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u53CA\u5176\u5B50\u4EE3\u7406\u548C\u8BB0\u5F55\u3002\u9879\u76EE\u76EE\u5F55\u548C\u672A\u5F52\u6863\u804A\u5929\u4E0D\u4F1A\u53D7\u5F71\u54CD\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","archives.deleteProjectConfirm":"\u5220\u9664\u9879\u76EE\u5168\u90E8\u804A\u5929","archives.deleteUngroupedTitle":"\u5220\u9664\u672A\u5206\u7EC4\u7684\u5DF2\u5F52\u6863\u804A\u5929","archives.deleteUngroupedDesc":"\u5C06\u6C38\u4E45\u5220\u9664\u672A\u5206\u7EC4\u4E2D\u7684 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u53CA\u5176\u5B50\u4EE3\u7406\u548C\u8BB0\u5F55\u3002\u5176\u4ED6\u9879\u76EE\u548C\u672A\u5F52\u6863\u804A\u5929\u4E0D\u4F1A\u53D7\u5F71\u54CD\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","archives.deleteUngroupedConfirm":"\u5220\u9664\u672A\u5206\u7EC4\u7684\u5168\u90E8\u804A\u5929","archives.deleteBatchPending":"\u6B63\u5728\u5220\u9664\u5DF2\u5F52\u6863\u804A\u5929\u2026","archives.deleteSuccess":"\u5DF2\u5220\u9664 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u3002","archives.deleteSuccessWithSkipped":"\u5DF2\u5220\u9664 {deleted} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\uFF1B\u53E6\u6E05\u7406 {skipped} \u4E2A\u5DF2\u4E0D\u5B58\u5728\u4F1A\u8BDD\u7684\u5F52\u6863\u8BB0\u5F55\u3002","archives.deleteSkipped":"\u5DF2\u6E05\u7406 {n} \u4E2A\u5DF2\u4E0D\u5B58\u5728\u4F1A\u8BDD\u7684\u5F52\u6863\u8BB0\u5F55\u3002","archives.deletePartial":"\u5DF2\u5220\u9664 {deleted} \u4E2A\u804A\u5929\uFF0C\u6E05\u7406 {skipped} \u4E2A\u5DF2\u4E0D\u5B58\u5728\u4F1A\u8BDD\u7684\u5F52\u6863\u8BB0\u5F55\uFF1B{failed} \u4E2A\u5220\u9664\u5931\u8D25\uFF1A{detail}","archives.unarchiveUnknown":"\u4F1A\u8BDD\u5DF2\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u53D6\u6D88\u5F52\u6863\u3002","archives.unarchiveFailed":"\u53D6\u6D88\u5F52\u6863\u5931\u8D25\uFF1A{detail}","archives.archiveUnknown":"\u4F1A\u8BDD\u5DF2\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u5F52\u6863\u3002","archives.archiveFailed":"\u5F52\u6863\u5931\u8D25\uFF1A{detail}","archives.archiveActive":"\u4F1A\u8BDD\u4ECD\u5728\u8FD0\u884C\uFF08{kinds}\uFF09\u3002","archiveActive.title":"\u505C\u6B62\u5E76\u5F52\u6863","archiveActive.desc":"\u201C{name}\u201D\u4ECD\u6709\u6B63\u5728\u8FDB\u884C\u7684\u5DE5\u4F5C\uFF1A{kinds}\u3002\u5F52\u6863\u524D\u4F1A\u505C\u6B62\u8FD9\u4E9B\u5DE5\u4F5C\u3002","archiveActive.confirm":"\u505C\u6B62\u5E76\u5F52\u6863","archiveActive.pending":"\u6B63\u5728\u505C\u6B62\u5E76\u5F52\u6863\u2026","archives.forkFailed":"\u5206\u53C9\u4F1A\u8BDD\u5931\u8D25\uFF1A{detail}","deleteSession.title":"\u5220\u9664\u4F1A\u8BDD","deleteSession.desc":"\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","deleteSession.pending":"\u6B63\u5728\u5220\u9664\u4F1A\u8BDD\u2026","deleteSession.unknown":"\u4F1A\u8BDD\u5DF2\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\u3002","deleteSession.failed":"\u5220\u9664\u4F1A\u8BDD\u5931\u8D25\uFF1A{detail}","picker.loading":"\u6B63\u5728\u52A0\u8F7D\u5DE5\u4F5C\u533A\u2026","conflict.named":"\u5DF2\u5B58\u5728\u540D\u4E3A\u201C{name}\u201D\u7684\u5DE5\u4F5C\u533A\u3002","folderError.title":"\u65E0\u6CD5\u6253\u5F00\u6587\u4EF6\u5939","folderError.retry":"\u91CD\u65B0\u9009\u62E9",rename:"\u91CD\u547D\u540D","rename.workspace.title":"\u91CD\u547D\u540D\u5DE5\u4F5C\u533A","rename.session.title":"\u91CD\u547D\u540D\u4F1A\u8BDD","field.workspaceName":"\u5DE5\u4F5C\u533A\u540D\u79F0","field.sessionName":"\u4F1A\u8BDD\u540D\u79F0","delete.workspace":"\u5220\u9664\u5DE5\u4F5C\u533A","delete.desc":"\u5C06\u628A\u201C{name}\u201D\u4ECE\u5DE5\u4F5C\u533A\u5217\u8868\u4E2D\u79FB\u9664\u3002\u6587\u4EF6\u5939\u4E0E\u4F1A\u8BDD\u8BB0\u5F55\u4F1A\u4FDD\u7559\uFF0C\u5176\u4F1A\u8BDD\u5C06\u663E\u793A\u5728\u201C\u672A\u5206\u7EC4\u201D\u4E0B\u3002","delete.pending":"\u6B63\u5728\u5220\u9664\u5DE5\u4F5C\u533A\u2026","menu.fork":"\u5206\u53C9\u4F1A\u8BDD","menu.archiveSession":"\u5F52\u6863\u4F1A\u8BDD","menu.archiveWorkspace":"\u5F52\u6863\u5168\u90E8\u804A\u5929","archiveWorkspace.title":"\u5F52\u6863 {n} \u4E2A\u804A\u5929\uFF1F","archiveWorkspace.desc":"\u8FD9\u4F1A\u5C06\u201C{name}\u201D\u4E2D\u7684\u804A\u5929\u5F52\u6863\u3002\u4E4B\u540E\u4F60\u53EF\u4EE5\u5728\u5DF2\u5F52\u6863\u7684\u804A\u5929\u4E2D\u627E\u5230\u5B83\u4EEC\u3002","archiveWorkspace.confirm":"\u5168\u90E8\u5F52\u6863","archiveWorkspace.pending":"\u6B63\u5728\u5F52\u6863\u804A\u5929\u2026","actions.workspace.aria":"\u5DE5\u4F5C\u533A\u201C{name}\u201D\u7684\u64CD\u4F5C","actions.session.aria":"\u4F1A\u8BDD\u201C{name}\u201D\u7684\u64CD\u4F5C","actions.newSession.aria":"\u5728\u201C{name}\u201D\u4E2D\u65B0\u5EFA\u4F1A\u8BDD","status.running":"\u8FDB\u884C\u4E2D","status.subagentsRunning.one":"{n} \u4E2A\u5B50\u4EE3\u7406\u8FD0\u884C\u4E2D","status.subagentsRunning.other":"{n} \u4E2A\u5B50\u4EE3\u7406\u8FD0\u884C\u4E2D","status.idle":"\u7A7A\u95F2","status.waitingApproval":"\u7B49\u5F85\u5BA1\u6279","status.planReview":"\u8BA1\u5212\u5F85\u5BA1","status.waitingAnswer":"\u7B49\u5F85\u56DE\u7B54","status.completed":"\u5DF2\u5B8C\u6210","hover.created":"\u521B\u5EFA\u4E8E {time}","hover.copied":"\u5DF2\u590D\u5236","date.ymd":"{y}\u5E74{m}\u6708{d}\u65E5","time.now":"\u521A\u521A","time.minutes":"{n}\u5206\u949F","time.hours":"{n}\u5C0F\u65F6","time.days":"{n}\u5929","time.months":"{n}\u4E2A\u6708","time.years":"{n}\u5E74","time.ago":"{t}\u524D"},o0={...vk,...JO,...jC,"locale.language":"en","service.unavailable":"The service is not ready. Please retry.","archives.moreActions":"More actions","archives.archiveProject":"Archive all chats in this project","archives.archiveUngrouped":"Archive all ungrouped chats","archives.archiveProjectDesc":"Archive all {n} unarchived sessions in \u201C{name}\u201D, regardless of the current search filter. You can restore them in Archived.","archives.archiveUngroupedDesc":"Archive all {n} ungrouped, unarchived sessions, regardless of the current search filter. You can restore them in Archived.","archives.tab.archived":"Archived","archives.tab.unarchived":"Unarchived","archives.searchUnarchived":"Search unarchived chats","archives.emptyUnarchived":"No unarchived sessions.","archives.archiveSelected":"Archive","archives.openSession":"Open session","archives.archiveSelectedDesc":"Archive the selected sessions, including selections hidden by the current filter. You can view and restore them in Archived.","archives.archiveSuccess":"Archived {n} sessions.","archives.archiveBatchFailed":"Batch archive failed: {detail}","archives.navigationUnavailable":"This host cannot keep the conversation archived while opening it. Use \u201CRestore and open\u201D instead.","archives.sessionNotRetained":"The host did not keep the requested conversation open. Try again, or restore it before opening.","archives.restoreOpen":"Restore and open","archives.selectedCount":"{n} selected","archives.selectionHiddenHint":"Includes {hidden} hidden by the current filter; actions apply to them too.","archives.clearSelectionShort":"Clear","archives.restore":"Restore","archives.archiveTitle":"Archive {n} chats?","archives.deleteSelectionShort":"Delete","archives.clearSelection":"Clear selection","group.ungrouped":"Ungrouped","session.new":"New Session","section.workspaces":"Workspaces","section.sessions":"Sessions","viewOptions.label":"View options","groupBy.label":"Group by","groupBy.workspace":"Workspace","groupBy.flat":"In one list","orderBy.label":"Order by","orderBy.manual":"Manual","orderBy.updated":"Last updated","sessions.expand":"Show {n} more sessions","sessions.collapse":"Show less","empty.none":"No sessions yet","workspace.add":"Add workspace","search.sessions.aria":"Search sessions","search.placeholder":"Search sessions...","search.clear":"Clear search","search.results.aria":"Search results","search.pending":"Searching session history\u2026","search.unavailable":"Content search is temporarily unavailable. Showing name matches.","search.noMatches":"No matching sessions","search.hasMore":"Showing the first {n} results. Narrow your search.","menu.addWorkspace":"Add workspace\u2026","menu.unarchive":"Unarchive","menu.deleteSession":"Delete session","archived.badge":"Archived sessions","archived.notOpenable":"This session is archived. Unarchive it to continue the conversation.","archives.title":"Archived sessions","archives.description":"Manage archived sessions or select unarchived sessions to archive in bulk.","archives.viewProject":"GitHub","archives.feedback":"Issues","archives.empty":"No archived sessions.","archives.emptyFiltered":"No chats match your filters.","archives.searchPlaceholder":"Search archived chats","archives.sortBy":"Sort archived chats","archives.sortLabel":"Sort","archives.sortUpdated":"Last updated","archives.sortCreated":"Created","archives.sortAlphabetical":"Alphabetical","archives.projectFilter":"Filter by project","archives.allProjects":"All projects","archives.sessionCount":"{n} chats","archives.selectAllFiltered":"Select all results","archives.selectSession":"Select chat {name}","archives.restoreSelected":"Restore selected","archives.deleteSelected":"Delete selected","archives.timestamp":"{date}, {time}","archives.restoreProject":"Restore all chats in this project","archives.restoreUngrouped":"Restore all","archives.deleteProject":"Delete all chats in this project","archives.deleteUngrouped":"Delete all","archives.projectActions":"Archive actions for project {name}","archives.ungroupedActions":"Archive actions for ungrouped chats","archives.restoreSuccess":"Restored {n} archived chats.","archives.restoreBatchFailed":"Could not restore the archived chats: {detail}","archives.deleteSelectedTitle":"Delete selected archived chats","archives.deleteSelectedDesc":"This permanently deletes the selected {n} archived chats, their child agents (including any that are still running), and their records. Other chats are not affected. This cannot be undone.","archives.deleteSelectedConfirm":"Delete selected chats","archives.deleteProjectTitle":"Delete archived chats in {name}","archives.deleteProjectDesc":"This permanently deletes the {n} archived chats in {name}, their child agents, and their records. The project directory and unarchived chats are not affected. This cannot be undone.","archives.deleteProjectConfirm":"Delete all project chats","archives.deleteUngroupedTitle":"Delete ungrouped archived chats","archives.deleteUngroupedDesc":"This permanently deletes the {n} ungrouped archived chats, their child agents, and their records. Other projects and unarchived chats are not affected. This cannot be undone.","archives.deleteUngroupedConfirm":"Delete all ungrouped chats","archives.deleteBatchPending":"Deleting archived chats\u2026","archives.deleteSuccess":"Deleted {n} archived chats.","archives.deleteSuccessWithSkipped":"Deleted {deleted} archived chats and cleared {skipped} stale archive entries for sessions that no longer exist.","archives.deleteSkipped":"Cleared {n} stale archive entries for sessions that no longer exist.","archives.deletePartial":"Deleted {deleted} chats and cleared {skipped} stale archive entries; {failed} could not be deleted: {detail}","archives.unarchiveUnknown":"This session no longer exists, so it cannot be unarchived.","archives.unarchiveFailed":"Could not unarchive the session: {detail}","archives.archiveUnknown":"This session no longer exists, so it cannot be archived.","archives.archiveFailed":"Could not archive the session: {detail}","archives.archiveActive":"This conversation is still running ({kinds}).","archiveActive.title":"Stop and archive","archiveActive.desc":"\u201C{name}\u201D still has work in progress: {kinds}. Archiving stops that work first.","archiveActive.confirm":"Stop and archive","archiveActive.pending":"Stopping and archiving\u2026","archives.forkFailed":"Could not fork the session: {detail}","deleteSession.title":"Delete session","deleteSession.desc":"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.","deleteSession.pending":"Deleting session\u2026","deleteSession.unknown":"This session no longer exists or was already deleted.","deleteSession.failed":"Could not delete the session: {detail}","picker.loading":"Loading workspaces\u2026","conflict.named":"A workspace named \u201C{name}\u201D already exists.","folderError.title":"Couldn\u2019t open folder","folderError.retry":"Choose again",rename:"Rename","rename.workspace.title":"Rename workspace","rename.session.title":"Rename session","field.workspaceName":"Workspace name","field.sessionName":"Session name","delete.workspace":"Delete workspace","delete.desc":"This removes \u201C{name}\u201D from the workspace list. The folder and session logs will be kept. Its sessions will appear under Ungrouped.","delete.pending":"Deleting workspace\u2026","menu.fork":"Fork session","menu.archiveSession":"Archive session","menu.archiveWorkspace":"Archive all chats","archiveWorkspace.title":"Archive {n} chats?","archiveWorkspace.desc":"This archives the chats in \u201C{name}\u201D. You can find them later in Archived chats.","archiveWorkspace.confirm":"Archive all","archiveWorkspace.pending":"Archiving chats\u2026","actions.workspace.aria":"Workspace actions for {name}","actions.session.aria":"Session actions for {name}","actions.newSession.aria":"New session in {name}","status.running":"Running","status.subagentsRunning.one":"{n} subagent running","status.subagentsRunning.other":"{n} subagents running","status.idle":"Idle","status.waitingApproval":"Waiting for approval","status.planReview":"Plan awaiting review","status.waitingAnswer":"Waiting for answer","status.completed":"Completed","hover.created":"Created {time}","hover.copied":"Copied","date.ymd":"{y}-{m}-{d}","time.now":"now","time.minutes":"{n}min","time.hours":"{n}h","time.days":"{n}d","time.months":"{n}mo","time.years":"{n}y","time.ago":"{t} ago"},xk={...yk,...ek,...WC,"locale.language":"ru","service.unavailable":"\u0421\u0435\u0440\u0432\u0438\u0441 \u0435\u0449\u0451 \u043D\u0435 \u0433\u043E\u0442\u043E\u0432. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435.","archives.moreActions":"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E","archives.archiveProject":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.archiveUngrouped":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.archiveProjectDesc":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 {n} \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439 \u0432 \xAB{name}\xBB, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0444\u0438\u043B\u044C\u0442\u0440\u0430 \u043F\u043E\u0438\u0441\u043A\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0410\u0440\u0445\u0438\u0432\xBB.","archives.archiveUngroupedDesc":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 {n} \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0444\u0438\u043B\u044C\u0442\u0440\u0430 \u043F\u043E\u0438\u0441\u043A\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0410\u0440\u0445\u0438\u0432\xBB.","archives.tab.archived":"\u0410\u0440\u0445\u0438\u0432","archives.tab.unarchived":"\u041D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435","archives.searchUnarchived":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u0447\u0430\u0442\u0430\u043C","archives.emptyUnarchived":"\u041D\u0435\u0442 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.archiveSelected":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","archives.openSession":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","archives.archiveSelectedDesc":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438, \u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0441\u043A\u0440\u044B\u0442\u044B\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u043C. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0410\u0440\u0445\u0438\u0432\xBB.","archives.archiveSuccess":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0441\u0435\u0441\u0441\u0438\u0439: {n}.","archives.archiveBatchFailed":"\u041F\u0430\u043A\u0435\u0442\u043D\u0430\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C: {detail}","archives.navigationUnavailable":"\u042D\u0442\u043E\u0442 \u0445\u043E\u0441\u0442 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440 \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438. \u0412\u043C\u0435\u0441\u0442\u043E \u044D\u0442\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \xAB\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C\xBB.","archives.sessionNotRetained":"\u0425\u043E\u0441\u0442 \u043D\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u043B \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u043C. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u0438\u043B\u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0435\u0433\u043E \u043F\u0435\u0440\u0435\u0434 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0435\u043C.","archives.restoreOpen":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C","archives.selectedCount":"\u0412\u044B\u0431\u0440\u0430\u043D\u043E: {n}","archives.selectionHiddenHint":"\u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442 {hidden}, \u0441\u043A\u0440\u044B\u0442\u044B\u0445 \u0442\u0435\u043A\u0443\u0449\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u043C; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u044E\u0442\u0441\u044F \u0438 \u043A \u043D\u0438\u043C.","archives.clearSelectionShort":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C","archives.restore":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C","archives.archiveTitle":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C {n} \u0447\u0430\u0442\u043E\u0432?","archives.deleteSelectionShort":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","archives.clearSelection":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440","group.ungrouped":"\u0411\u0435\u0437 \u0433\u0440\u0443\u043F\u043F\u044B","session.new":"\u041D\u043E\u0432\u0430\u044F \u0441\u0435\u0441\u0441\u0438\u044F","section.workspaces":"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430","section.sessions":"\u0421\u0435\u0441\u0441\u0438\u0438","viewOptions.label":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430","groupBy.label":"\u0413\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E","groupBy.workspace":"\u0420\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","groupBy.flat":"\u0412 \u043E\u0434\u043D\u043E\u043C \u0441\u043F\u0438\u0441\u043A\u0435","orderBy.label":"\u041F\u043E\u0440\u044F\u0434\u043E\u043A","orderBy.manual":"\u0412\u0440\u0443\u0447\u043D\u0443\u044E","orderBy.updated":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435","sessions.expand":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 {n} \u0441\u0435\u0441\u0441\u0438\u0439","sessions.collapse":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","empty.none":"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0441\u0435\u0441\u0441\u0438\u0439","workspace.add":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","search.sessions.aria":"\u041F\u043E\u0438\u0441\u043A \u0441\u0435\u0441\u0441\u0438\u0439","search.placeholder":"\u041F\u043E\u0438\u0441\u043A \u0441\u0435\u0441\u0441\u0438\u0439...","search.clear":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A","search.results.aria":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430","search.pending":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0441\u0435\u0441\u0441\u0438\u0439\u2026","search.unavailable":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442\u0441\u044F \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F\u043C.","search.noMatches":"\u041D\u0435\u0442 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0445 \u0441\u0435\u0441\u0441\u0438\u0439","search.hasMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u044B \u043F\u0435\u0440\u0432\u044B\u0435 {n} \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432. \u0421\u0443\u0437\u044C\u0442\u0435 \u043F\u043E\u0438\u0441\u043A.","menu.addWorkspace":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E\u2026","menu.unarchive":"\u0412\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430","menu.deleteSession":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","archived.badge":"\u0410\u0440\u0445\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u0439","archived.notOpenable":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0432 \u0430\u0440\u0445\u0438\u0432\u0435. \u0412\u0435\u0440\u043D\u0438\u0442\u0435 \u0435\u0451 \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440.","archives.title":"\u0410\u0440\u0445\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u0439","archives.description":"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C\u0438 \u0441\u0435\u0441\u0441\u0438\u044F\u043C\u0438 \u0438\u043B\u0438 \u0432\u044B\u0431\u043E\u0440 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0434\u043B\u044F \u043F\u0430\u043A\u0435\u0442\u043D\u043E\u0439 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438.","archives.viewProject":"GitHub","archives.feedback":"\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u044B","archives.empty":"\u041D\u0435\u0442 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.emptyFiltered":"\u041D\u0438 \u043E\u0434\u0438\u043D \u0447\u0430\u0442 \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0430\u0448\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u0430\u043C.","archives.searchPlaceholder":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u0447\u0430\u0442\u0430\u043C","archives.sortBy":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432","archives.sortLabel":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430","archives.sortUpdated":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435","archives.sortCreated":"\u0414\u0430\u0442\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F","archives.sortAlphabetical":"\u041F\u043E \u0430\u043B\u0444\u0430\u0432\u0438\u0442\u0443","archives.projectFilter":"\u0424\u0438\u043B\u044C\u0442\u0440 \u043F\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0443","archives.allProjects":"\u0412\u0441\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u044B","archives.sessionCount":"{n} \u0447\u0430\u0442\u043E\u0432","archives.selectAllFiltered":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B","archives.selectSession":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0447\u0430\u0442 {name}","archives.restoreSelected":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435","archives.deleteSelected":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435","archives.timestamp":"{date}, {time}","archives.restoreProject":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.restoreUngrouped":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0441\u0435","archives.deleteProject":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.deleteUngrouped":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435","archives.projectActions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u043F\u0440\u043E\u0435\u043A\u0442\u0430 {name}","archives.ungroupedActions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432","archives.restoreSuccess":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432: {n}.","archives.restoreBatchFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B: {detail}","archives.deleteSelectedTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteSelectedDesc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 {n} \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432, \u0438\u0445 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0435\u0449\u0451 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435) \u0438 \u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0438. \u0414\u0440\u0443\u0433\u0438\u0435 \u0447\u0430\u0442\u044B \u043D\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","archives.deleteSelectedConfirm":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteProjectTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B \u0432 {name}","archives.deleteProjectDesc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 {n} \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432 \u0432 {name}, \u0438\u0445 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B \u0438 \u0437\u0430\u043F\u0438\u0441\u0438. \u041A\u0430\u0442\u0430\u043B\u043E\u0433 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0438 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B \u043D\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","archives.deleteProjectConfirm":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.deleteUngroupedTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteUngroupedDesc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 {n} \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432, \u0438\u0445 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B \u0438 \u0437\u0430\u043F\u0438\u0441\u0438. \u0414\u0440\u0443\u0433\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u044B \u0438 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B \u043D\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","archives.deleteUngroupedConfirm":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteBatchPending":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432\u2026","archives.deleteSuccess":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432: {n}.","archives.deleteSuccessWithSkipped":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E {deleted} \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432 \u0438 \u043E\u0447\u0438\u0449\u0435\u043D\u043E {skipped} \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u0430 \u0434\u043B\u044F \u043D\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.deleteSkipped":"\u041E\u0447\u0438\u0449\u0435\u043D\u043E {n} \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u0430 \u0434\u043B\u044F \u043D\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.deletePartial":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E {deleted} \u0447\u0430\u0442\u043E\u0432 \u0438 \u043E\u0447\u0438\u0449\u0435\u043D\u043E {skipped} \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u0430; {failed} \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C: {detail}","archives.unarchiveUnknown":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0435\u0451 \u043D\u0435\u043B\u044C\u0437\u044F \u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430.","archives.unarchiveFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430: {detail}","archives.archiveUnknown":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0435\u0451 \u043D\u0435\u043B\u044C\u0437\u044F \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C.","archives.archiveFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E: {detail}","archives.archiveActive":"\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F ({kinds}).","archiveActive.title":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","archiveActive.desc":"\u0412 \xAB{name}\xBB \u0435\u0449\u0451 \u0438\u0434\u0451\u0442 \u0440\u0430\u0431\u043E\u0442\u0430: {kinds}. \u0410\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442 \u0435\u0451.","archiveActive.confirm":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","archiveActive.pending":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u0438 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F\u2026","archives.forkFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0432\u0435\u0442\u043A\u0443 \u0441\u0435\u0441\u0441\u0438\u0438: {detail}","deleteSession.title":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","deleteSession.desc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 \u0441\u0435\u0441\u0441\u0438\u044E \xAB{name}\xBB, \u0435\u0451 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0435\u0449\u0451 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435) \u0438 \u0432\u0441\u0435 \u0435\u0451 \u0437\u0430\u043F\u0438\u0441\u0438 (\u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440, \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043A\u0443, \u043A\u044D\u0448). \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","deleteSession.pending":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438\u2026","deleteSession.unknown":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043B\u0438 \u0443\u0436\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0430.","deleteSession.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E: {detail}","picker.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0438\u0445 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u2026","conflict.named":"\u0420\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E \u0441 \u0438\u043C\u0435\u043D\u0435\u043C \xAB{name}\xBB \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.","folderError.title":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043F\u043A\u0443","folderError.retry":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430",rename:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C","rename.workspace.title":"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","rename.session.title":"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","field.workspaceName":"\u0418\u043C\u044F \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430","field.sessionName":"\u0418\u043C\u044F \u0441\u0435\u0441\u0441\u0438\u0438","delete.workspace":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","delete.desc":"\u042D\u0442\u043E \u0443\u0434\u0430\u043B\u0438\u0442 \xAB{name}\xBB \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0438\u0445 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432. \u041F\u0430\u043F\u043A\u0430 \u0438 \u0436\u0443\u0440\u043D\u0430\u043B\u044B \u0441\u0435\u0441\u0441\u0438\u0439 \u043E\u0441\u0442\u0430\u043D\u0443\u0442\u0441\u044F. \u0415\u0433\u043E \u0441\u0435\u0441\u0441\u0438\u0438 \u043F\u043E\u044F\u0432\u044F\u0442\u0441\u044F \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0411\u0435\u0437 \u0433\u0440\u0443\u043F\u043F\u044B\xBB.","delete.pending":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430\u2026","menu.fork":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0432\u0435\u0442\u043A\u0443 \u0441\u0435\u0441\u0441\u0438\u0438","menu.archiveSession":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","menu.archiveWorkspace":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B","archiveWorkspace.title":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C {n} \u0447\u0430\u0442\u043E\u0432?","archiveWorkspace.desc":"\u042D\u0442\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0447\u0430\u0442\u044B \u0432 \xAB{name}\xBB. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u043D\u0430\u0439\u0442\u0438 \u043F\u043E\u0437\u0436\u0435 \u0432 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u0430\u0445.","archiveWorkspace.confirm":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435","archiveWorkspace.pending":"\u0410\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F \u0447\u0430\u0442\u043E\u0432\u2026","actions.workspace.aria":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430 \u0434\u043B\u044F {name}","actions.session.aria":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0435\u0441\u0441\u0438\u0438 \u0434\u043B\u044F {name}","actions.newSession.aria":"\u041D\u043E\u0432\u0430\u044F \u0441\u0435\u0441\u0441\u0438\u044F \u0432 {name}","status.running":"\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F","status.subagentsRunning.one":"{n} \u043F\u043E\u0434\u0430\u0433\u0435\u043D\u0442 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442","status.subagentsRunning.other":"{n} \u043F\u043E\u0434\u0430\u0433\u0435\u043D\u0442\u043E\u0432 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0442","status.idle":"\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u0435","status.waitingApproval":"\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u0435 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F","status.planReview":"\u041F\u043B\u0430\u043D \u043E\u0436\u0438\u0434\u0430\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438","status.waitingAnswer":"\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u0435 \u043E\u0442\u0432\u0435\u0442\u0430","status.completed":"\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E","hover.created":"\u0421\u043E\u0437\u0434\u0430\u043D\u043E {time}","hover.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","date.ymd":"{y}-{m}-{d}","time.now":"\u0441\u0435\u0439\u0447\u0430\u0441","time.minutes":"{n}\u043C\u0438\u043D","time.hours":"{n}\u0447","time.days":"{n}\u0434","time.months":"{n}\u043C\u0435\u0441","time.years":"{n}\u0433","time.ago":"{t} \u043D\u0430\u0437\u0430\u0434"},Ui="archive-manager-workspace",vm="archiveManager.sidebar.directoryFlow",Sk=["slots","sessions","workspaces","locale","remote","typert"];function yh(P){return{getSnapshot:P.getSnapshot.bind(P),subscribe:P.subscribe.bind(P)}}o(yh,"bindObservable");function n0(P,z){return async Y=>{if(typeof P?.unarchiveSession=="function"){await P.unarchiveSession(Y);return}let ae=typeof z=="function"?z():z;if(ae===void 0)throw new Error("archive-manager remote service is unavailable");let be=await ae.unarchiveSession(Y);if(!be.ok)throw new Error(be.error.message);return be.value}}o(n0,"createUnarchiveSession");async function xh(P,z,Y){let ae=new Set(P.list?.getSnapshot?.()?.archivedSessionIds??[]),be=new Set;for(let Me of z)if(!(typeof Me!="string"||Me.length===0||be.has(Me))){be.add(Me);try{await P.archiveSession(Me)}catch(Le){throw Le!==null&&typeof Le=="object"&&me(Le)!==void 0&&typeof Ur(Le).sessionId!="string"&&Object.assign(Le,{sessionId:Me}),Le}}typeof Y=="function"&&await Y();let we=[...P.list?.getSnapshot?.()?.archivedSessionIds??[]];return{archivedSessionIds:we,archivedSessionIdsAdded:we.filter(Me=>!ae.has(Me))}}o(xh,"archiveSessionsViaOfficial");async function i0(P,z,Y,ae){let be=new Set(P.list?.getSnapshot?.()?.archivedSessionIds??[]),we=new Set,Me=typeof ae=="function"?ae:et=>P.unarchiveSession?.(et),Le;for(let et of z){if(typeof et!="string"||et.length===0||we.has(et))continue;we.add(et);let ht=await Me(et);Array.isArray(ht?.archivedSessionIds)&&(Le=[...ht.archivedSessionIds])}return typeof Y=="function"&&await Y(),Le??=[...P.list?.getSnapshot?.()?.archivedSessionIds??[]],{archivedSessionIds:Le,unarchivedSessionIds:[...be].filter(et=>!Le.includes(et))}}o(i0,"unarchiveSessionsViaOfficial");async function Ck(P){wk(P);let z=P.get("remote"),Y=o(()=>{},"disposeRemote");return z!==void 0&&(Y=await z.$mount(k)),async()=>{await Y()}}o(Ck,"apply");function wk(P){P.effect(()=>P.locale.register(Ui,{zh:r0,en:o0,ru:xk}),"dsh-archive-manager: dictionaries"),P.effect(()=>pk({endpoint:"/api/michengai/dsh-archive-manager/update",packageName:"@michengai/dsh-archive-manager",titleRowSelector:".dsham_settingsTitleRow",linksSelector:".dsham_settingsLinks",zhName:"\u5F52\u6863\u4F1A\u8BDD",enName:"Archived sessions",ruName:"\u0410\u0440\u0445\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u0439",createIcon:w}),"dsh-archive-manager: plugin update ui");let z=o(()=>P.get("uiWorkspace"),"uiWorkspaceAt"),Y={},ae,be=o(_e=>(ae=ok(_e,P.sessions,P.workspaces,{onOpened:o(()=>P.get("layout")?.selectPanel(null),"onOpened"),beginNavigation:o(()=>P.get("layout")?.beginNavigation?.(),"beginNavigation")}),()=>ae?.dispose()),"attachArchiveNavigation");typeof P.inject=="function"?P.inject(["uiWorkspace"],_e=>be(_e.uiWorkspace??z())):P.effect(()=>be(z()),"archive-manager: explicit archived navigation");let we=o(_e=>{if(ae===void 0)throw new Pa("navigationUnavailable");return tn.request(_e),ae.open(_e)},"openConversation"),Me=o(async _e=>{P.get("layout")?.beginNavigation?.(),tn.request(_e)},"focusSessionWorkspace"),Le=o(async(_e,nt)=>{let Ot=await P.sessions.search(_e,nt);if(!Ot.ok)throw new Error(Ot.error.message);return Ot.value},"searchSessions"),ht=o(_e=>({getSnapshot:o(()=>P.slots.entries(_e).length>0,"getSnapshot"),subscribe:o(nt=>P.slots.subscribe(_e,nt),"subscribe")}),"flowSource")(vm),Qe=o(async()=>{if(typeof P.sessions.refresh!="function")return null;try{return await P.sessions.refresh(),null}catch(_e){return console.warn("archive-manager: restored archived sessions but session list refresh failed:",_e),_e instanceof Error?_e.message:String(_e)}},"refreshSessionList"),Ye=n0(P.workspaces,()=>P.get("remote.workspaceRegistry")),tt=o(async(_e,...nt)=>{let Ot=P.get("remote.workspaceRegistry");if(!Ot||typeof Ot[_e]!="function")throw new Error(P.locale.bind(Ui)("service.unavailable"));let Eo=await Ot[_e].apply(Ot,nt);if(!Eo.ok)throw new Error(Eo.error.message);return Eo.value},"registryCall"),de=o(_e=>tt("sessionDetails",_e),"sessionDetails"),io=o(_e=>tt("diagnoseSession",_e),"diagnoseSession"),vo=o(_e=>tt("repairSession",_e),"repairSession"),Ir=o(_e=>tt("searchArchivedContent",_e),"searchArchivedContent"),No=o(_e=>tt("searchSessionContent",_e),"searchSessionContent"),Mo=o(_e=>tt("previewArchivedSession",_e),"previewArchivedSession"),Pr=o(()=>tt("favoriteSessions"),"favoriteSessions"),It=o(_e=>tt("setSessionFavorite",_e),"setSessionFavorite"),Zt=gk({workspaces:P.workspaces.list,sessions:P.sessions.list,archive:o(_e=>P.workspaces.archiveSession(_e),"archive"),restore:Ye,deleteOne:o(async _e=>{let nt=P.get("remote.workspaceRegistry");if(!nt)throw new Error(P.locale.bind(Ui)("service.unavailable"));let Ot=await nt.deleteSession(_e);if(!Ot.ok)throw new Error(Ot.error.message)},"deleteOne"),getFavorites:Pr,refresh:o(()=>P.sessions.refresh?.(),"refresh"),currentSessionId:li}),kr=o(async _e=>{await Ye(_e),await Qe()},"unarchiveSession"),Cr=o(async _e=>{let Ot=(P.workspaces.list?.getSnapshot?.()?.items??[]).find(eo=>eo.workspaceId===_e);if(Ot===void 0)throw new Error(`unknown workspace "${_e}"`);return xh(P.workspaces,Ot.sessionIds,Qe)},"archiveWorkspaceSessions"),wo=o(async _e=>{let nt=P.get("remote.workspaceRegistry");if(nt===void 0)throw new Error("archive-manager remote service is unavailable");let Ot=await nt.deleteSession(_e);if(!Ot.ok)throw new Error(Ot.error.message);await Qe()},"deleteSession"),st=o(async _e=>xh(P.workspaces,_e,Qe),"archiveSessions"),wr=o(async _e=>{let nt=P.workspaces.list?.getSnapshot?.()??{archivedSessionIds:[],items:[]},Ot=cr(nt.archivedSessionIds,nt.items,_e);return i0(P.workspaces,Ot,Qe,Ye)},"unarchiveSessions"),Dr=o(async _e=>{let nt=P.get("remote.workspaceRegistry");if(nt===void 0)throw new Error("archive-manager remote service is unavailable");let Ot=await nt.deleteArchivedSessions(_e);if(!Ot.ok)throw new Error(Ot.error.message);let eo=await Qe();return{...Ot.value,refreshError:eo}},"deleteArchivedSessions"),mo=o(async()=>{let _e=P.get("remote.workspaceRegistry");if(_e===void 0)throw new Error("archive-manager remote service is unavailable");let nt=await _e.archivedSessionMetadata();if(!nt.ok)throw new Error(nt.error.message);if(nt.value.repairedSessionIds?.length>0&&typeof P.sessions.refresh=="function")try{await P.sessions.refresh()}catch(Ot){console.warn("archive-manager: repaired archived projections but session list refresh failed:",Ot)}return nt.value},"archivedSessionMetadata"),or=o(()=>({startSession:o(_e=>{let nt=z();nt!==void 0?nt.startSession(_e):P.workspaces.startSession(_e)},"startSession"),open:o(_e=>{let nt=z();typeof nt?.openSession=="function"?nt.openSession(_e):P.sessions.open(_e)},"open"),searchSessions:Le,searchResultLimit:P.sessions.searchResultLimit,renameSession:o(async(_e,nt)=>{let Ot=o(async Eo=>{let $r=await Eo.rename(nt);if(!$r.ok)throw new Error($r.error.message)},"rename");if(typeof P.sessions.using=="function"){await P.sessions.using(_e,{source:"workspaceOperation"},Eo=>Ot(Eo.binding.session));return}let eo=P.sessions.binding(_e)?.session;if(eo===void 0)throw new Error(`unknown session "${_e}"`);await Ot(eo)},"renameSession"),forkSession:o(_e=>{let nt=z();return typeof nt?.forkSession=="function"?nt.forkSession(_e):P.sessions.fork({sessionId:_e,increaseTitle:!0}).then(Ot=>{typeof nt?.openSession=="function"?nt.openSession(Ot):P.sessions.open(Ot)})},"forkSession"),renameWorkspace:o(async(_e,nt)=>{await P.workspaces.rename(_e,nt)},"renameWorkspace"),deleteWorkspace:o(async _e=>{await P.workspaces.delete(_e)},"deleteWorkspace"),insertWorkspaceBefore:o(async(_e,nt)=>{await P.workspaces.insertBefore(_e,nt)},"insertWorkspaceBefore"),archiveSession:o(async(_e,nt)=>{await P.workspaces.archiveSession(_e,nt)},"archiveSession"),archiveWorkspaceSessions:Cr,unarchiveSession:kr,deleteSession:wo,insertSessionBefore:o(async(_e,nt,Ot)=>{await P.workspaces.insertSessionBefore(_e,nt,Ot)},"insertSessionBefore"),createWorkspace:o(_e=>P.workspaces.create(_e),"createWorkspace"),hooks:{directoryFlow:ht}}),"browserInjected"),Fr="sidebar.workspaces.session.menu.item",jr=null,Yo=new Set,Jt=o(_e=>{jr=_e;for(let nt of Yo)nt()},"publishDeleteTarget");function Nr(){return a.useSyncExternalStore(_e=>(Yo.add(_e),()=>{Yo.delete(_e)}),()=>jr,()=>jr)}o(Nr,"useDeleteRequest");function vr({sessionId:_e,displayTitle:nt,useMenuOpenState:Ot,t:eo}){let[,Eo]=Ot(),$r=l.MenuItemButton,Vo=(0,s.jsx)(l.IconTrashOutlineRegular??l.IconTrashOutline16,{size:14}),Ge=o(()=>{Eo(!1),Jt({sessionId:_e,title:nt})},"onSelect");return typeof $r=="function"?(0,s.jsx)($r,{danger:!0,icon:Vo,onSelect:Ge,children:eo("menu.deleteSession")}):(0,s.jsx)("button",{type:"button",role:"menuitem",onClick:Ge,children:eo("menu.deleteSession")})}o(vr,"DeleteSessionMenuItem");function nr({t:_e}){let nt=Nr(),[Ot,eo]=(0,a.useState)(!1),[Eo,$r]=(0,a.useState)(null);if(nt===null)return null;let Vo=o(()=>{Ot||($r(null),Jt(null))},"close"),Ge=o(()=>{eo(!0),$r(null),wo(nt.sessionId).then(()=>{eo(!1),Jt(null)}).catch(gr=>{eo(!1),$r(ie(gr,_e))})},"confirm");return(0,s.jsx)(od,{children:(0,s.jsx)(c,{open:!0,onClose:Vo,title:_e("deleteSession.title"),footer:(0,s.jsxs)(s.Fragment,{children:[d({disabled:Ot,onClick:Vo,children:_e("cancel")}),d({danger:!0,disabled:Ot,onClick:Ge,children:_e("deleteSession.title")})]}),children:[Ot&&(0,s.jsx)("div",{role:"status",children:_e("deleteSession.pending")}),Eo!==null&&(0,s.jsx)("div",{role:"alert",children:Eo})]})})}o(nr,"DeleteSessionOverlay");function To(){return typeof P.slots.entries!="function"?!1:P.slots.entries("sidebar.workspaces").some(_e=>_e.children?.[Fr]!==void 0)}o(To,"hostSidebarDeclaresSessionMenu");let Vr,dr,Ro,po,Bt,Wr=o(()=>{s0();let _e={name:"sidebar.workspaces",priority:-.5,store:W(),inject:or,locale:Ui};return P.slots.inject("sidebar.workspaces",()=>{try{return P.slots.register({..._e,children:{[vm]:{kind:"single",scope:"root"}}},vn)}catch(nt){return console.warn("archive-manager: sidebar registration with directory child failed, retrying without children",nt),P.slots.register(_e,vn)}})},"registerLegacySidebar"),nn=o(()=>{let _e=To()?"menu":"legacy";if(_e!==Vr){if(Vr=_e,_e==="menu"){dr?.(),dr=void 0,Ro?.(),Ro=void 0,po??=P.slots.inject(Fr,()=>P.slots.register({name:Fr,id:"archive-manager.delete-session",order:500,locale:Ui,inject:o(()=>({}),"inject")},vr)),Bt??=P.slots.inject("shell.overlay",()=>P.slots.register({name:"shell.overlay",id:"archive-manager.delete-session",locale:Ui,inject:o(()=>({t:P.locale.bind(Ui)}),"inject")},nr));return}po?.(),po=void 0,Bt?.(),Bt=void 0,dr??=Wr(),Ro??=nk(P,vm)}},"reconcileSidebar");nn();let fr=typeof P.on=="function"?P.on("slots/changed",_e=>{if(_e==="sidebar.workspaces")try{nn()}catch(nt){console.warn("archive-manager: sidebar mode switch failed",nt)}}):void 0;P.effect(()=>()=>{fr?.(),dr?.(),Ro?.(),po?.(),Bt?.()},"archive-manager: sidebar mode"),P.slots.inject("settings.section",()=>P.slots.register({name:"settings.section",id:"archived-sessions",order:45,label:o(()=>P.locale.bind(Ui)("archived.badge"),"label"),icon:"archive",locale:Ui,inject:o(()=>({archiveSessions:st,archiveSession:o((_e,nt)=>P.workspaces.archiveSession(_e,nt),"archiveSession"),sessionStore:yh(P.sessions.list),workspaceStore:yh(P.workspaces.list),unarchiveSession:kr,deleteSession:wo,unarchiveSessions:wr,deleteArchivedSessions:Dr,archivedSessionMetadata:mo,openConversation:we,focusSessionWorkspace:Me,viewState:Y,favoriteSessions:Pr,setSessionFavorite:It,organizeBatch:Zt,diagnoseSession:io,repairSession:vo,sessionDetails:de,searchSessionContent:No,searchArchivedContent:Ir,previewArchivedSession:Mo,t:P.locale.bind(Ui)}),"inject")},Z))}o(wk,"applyWorkspaceBrowser");let s0=o(()=>{if(typeof document>"u")return;let P=[["@michengai/dsh-archive-manager/Rows.module.css",Tt],["@michengai/dsh-archive-manager/WorkspacePicker.module.css",Gt],["@michengai/dsh-archive-manager/WorkspaceBrowser.module.css",zr]];for(let[z,Y]of P){if(document.querySelector("style[data-plugin-css="+JSON.stringify(z)+"]")!==null)continue;let ae=document.createElement("style");ae.dataset.plugin="@michengai/dsh-archive-manager",ae.dataset.pluginCss=z,ae.textContent=Y,document.head.appendChild(ae)}},"ensureLegacyWorkspaceCss");async function Sh(P,z,Y,ae){try{await z(P)}catch(be){Y(he(be,ae))}}return o(Sh,"forkWithFeedback"),r.__test={forkWithFeedback:Sh,unarchivedSessionIds:bm,ArchiveSelectionToolbar:rn,ArchivedSessionsSection:Z,zh:r0,en:o0,displayTitle:Rt,sessionVisible:oe,indexSubagentDescendants:B,isUnknownSessionError:te,deriveGroups:je,deriveFlat:gt,deriveSearchResults:rt,deriveArchivedGroups:e0,sortArchivedGroups:t0,deriveArchivedBatchIds:cr,archivedSessionIdsInGroups:Na,pruneArchivedSelection:hm,toggleArchivedSelection:$l,archivedDeleteFeedback:id,archiveableWorkspaceSessionCount:ue,archiveWorkspaceDialogTarget:Pe,archiveWorkspaceDialogFailureState:ve,activeSessionActivity:me,activeSessionRefusal:Ee,activeArchiveFromMessage:$e,archiveSessionsViaOfficial:xh,unarchiveSessionsViaOfficial:i0,createUnarchiveSession:n0,createWorkspaceViewStore:W,migrateWorkspaceViewPersist:X,WORKSPACE_VIEW_PERSIST_KEY:F,LEGACY_WORKSPACE_VIEW_PERSIST_KEY:q,bindObservable:yh,hasSplitClientStore:i,groupByWorkspace:Ce,byRecency:ne,ARCHIVE_MANAGER_REMOTE:k,currentSessionId:li,ensureLegacyWorkspaceCss:s0},r.apply=Ck,r.inject=Sk,t.exports}o(S5,"startArchiveClient");
31
+ .dssm-update-progress{height:4px;border-radius:2px;background:var(--dsw-alias-border-l1,#3a3a3a);overflow:hidden;margin:12px 0;position:relative}.dssm-update-progress-bar{height:100%;width:40%;background:var(--dsw-alias-button-primary-fill,#4176e6);border-radius:2px;animation:dssm-progress-slide 1.4s ease-in-out infinite}@keyframes dssm-progress-slide{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}@media (prefers-reduced-motion:reduce){.dssm-update-progress-bar{animation:none;width:100%;opacity:.6}}
32
+ `;function si(){let r=document.getElementById(Pr);if(r!==null){r.textContent!==ms&&(r.textContent=ms);return}let o=document.createElement("style");o.id=Pr,o.textContent=ms,(document.head??document.documentElement).append(o)}t(si,"ensureStyle");function ri(r){if(r===null||typeof r!="object")return!1;let o=r;return typeof o.packageName=="string"&&typeof o.currentVersion=="string"&&typeof o.updateAvailable=="boolean"&&typeof o.profileName=="string"&&typeof o.canAutoUpdate=="boolean"&&typeof o.latestCheckFailed=="boolean"&&(o.latestVersion===void 0||typeof o.latestVersion=="string")}t(ri,"validPayload");async function zr(r,o,d){let y=d===void 0?{}:{signal:d},n=await fetch(r,o==="GET"?{cache:"no-store",...y}:{method:"POST",headers:{"content-type":"application/json",[ni]:"1"},body:"{}",...y}),i=await n.json();if(!n.ok||!ri(i))throw new Error(i&&typeof i=="object"&&"error"in i&&typeof i.error=="string"?i.error:In(document.documentElement.lang).failed);return i}t(zr,"requestStatus");function ai(r){let o=L.useRef(null);return L.useLayoutEffect(()=>{o.current?.replaceChildren(r.node)},[r.node]),L.createElement("span",{ref:o,className:"mpi-icon","aria-hidden":!0})}t(ai,"HostIcon");function ii(r){let o=L.useRef(null),[,d]=L.useState(0),[y,n]=L.useState("idle");L.useEffect(()=>r.flow.subscribe(()=>d(I=>I+1)),[r.flow]),L.useEffect(()=>{let I=document.documentElement,Z=new MutationObserver(()=>d(R=>R+1));return Z.observe(I,{attributes:!0,attributeFilter:["lang"]}),()=>Z.disconnect()},[]),L.useEffect(()=>{r.flow.check()},[r.flow]),L.useEffect(()=>{function I(Z){Or(Z,r.onClose)}return t(I,"onKey"),document.addEventListener("keydown",I,!0),()=>document.removeEventListener("keydown",I,!0)},[r.onClose]);let i=document.documentElement.lang,c=r.flow.view(i),O=i.toLowerCase().startsWith("zh")?r.zhName:i.toLowerCase().startsWith("ru")?r.ruName:r.enName,T=Mr(c.profileRaw,r.packageName,c.latestRaw),B=y==="copied"?c.copy.copied:y==="failed"?c.copy.copyFailed:c.copy.copy;return L.createElement(Xt.Modal,{open:!0,className:"mpi-dialog",title:`${O} ${c.copy.update}`,closeLabel:"Close",onClose:r.onClose,footer:[L.createElement(Xt.Button,{key:"check",variant:"outline",disabled:c.busy,onClick:t(()=>{r.flow.check()},"onClick")},c.copy.recheck),L.createElement(Xt.Button,{key:"update",variant:"primary",disabled:c.disabled,onClick:t(()=>{r.flow.update()},"onClick")},c.updateLabel)]},L.createElement("div",{ref:o},L.createElement("p",{className:"mpi-intro"},c.copy.intro),L.createElement("dl",{className:"mpi-meta"},L.createElement("dt",null,c.copy.current),L.createElement("dd",null,L.createElement("span",{className:"mpi-mono"},c.currentVersion)),L.createElement("dt",null,c.copy.latestLabel),L.createElement("dd",{className:"mpi-latest"},L.createElement("span",{className:"mpi-mono"},c.latestVersion),L.createElement("span",{className:"mpi-status",role:"status","data-kind":c.kind,...c.kind==="update"?{style:{color:"#e8b15a"}}:{}},c.message)),L.createElement("dt",null,c.copy.profile),L.createElement("dd",null,L.createElement("span",{className:"mpi-mono"},c.profileName))),c.busy?L.createElement("div",{className:"dssm-update-progress",role:"progressbar","aria-busy":"true"},L.createElement("div",{className:"dssm-update-progress-bar"})):null,L.createElement("section",{className:"mpi-manual"},L.createElement("h3",null,c.copy.manual),L.createElement("p",null,c.copy.manualHint),L.createElement("div",{className:"mpi-command"},L.createElement("code",null,T),L.createElement(Xt.Button,{variant:"outline",size:"sm",disabled:c.busy,onClick:t(()=>{let I=navigator.clipboard?.writeText(T);if(I===void 0){n("failed");return}I.then(()=>{n("copied"),window.setTimeout(()=>n("idle"),1400)}).catch(()=>n("failed"))},"onClick")},B)))))}t(ii,"UpdateDialog");function Br(r){if(typeof document>"u"||document.body===null)return()=>{};si();let o=new AbortController,d,y,n,i,c,O,T;function B(){n?.unmount(),n=void 0,y=void 0,i=void 0}t(B,"unmountCheck");function I(){if(n===void 0)return;i===void 0&&(i=r.createIcon("refresh"));let z=i;n.render(L.createElement(Xt.Button,{variant:"outline",size:"sm",onClick:R,icon:L.createElement(ai,{node:z})},L.createElement("span",{"data-mpi-label":""},In(document.documentElement.lang).check)))}t(I,"renderCheck");function Z(){O?.unmount(),O=void 0,c?.remove(),c=void 0}t(Z,"closeDialog");function R(){Z();let z=document.createElement("div");z.className="mpi-dialog-root",document.body.append(z),c=z,O=Hr(z),O.render(L.createElement(ii,{flow:Nr(ie=>zr(r.endpoint,ie,o.signal),d,ie=>{d=ie,M()}),packageName:r.packageName,zhName:r.zhName,enName:r.enName,ruName:r.ruName,onClose:Z}))}t(R,"openDialog");function M(){let z=document.querySelector(r.titleRowSelector);if(z===null)return;let ie=z.querySelector("h1,h2");if(ie!==null&&d!==void 0){let be=ie.querySelector(`.mpi-version[data-package="${r.packageName}"]`);be===null&&(be=document.createElement("span"),be.className="mpi-version",be.dataset.package=r.packageName,ie.append(be));let Oe=`v${d.currentVersion}`;be.textContent!==Oe&&(be.textContent=Oe)}y!==void 0&&!y.isConnected&&B();let ne=z.querySelector(r.linksSelector);if(ne===null)return;let Q=ne.querySelector(`[data-mpi-check="${r.packageName}"]`);if(Q!==null){let be=Q.querySelector("[data-mpi-label]");(be===null||be.textContent!==In(document.documentElement.lang).check)&&I();return}let Be=document.createElement("span");Be.dataset.mpiCheck=r.packageName,Be.className="mpi-check-host",ne.append(Be),y=Be,n=Hr(Be),I()}t(M,"applyControls");let G=new MutationObserver(()=>{T===void 0&&(T=window.requestAnimationFrame(()=>{T=void 0,M()}))});return G.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["lang"]}),M(),zr(r.endpoint,"GET",o.signal).then(z=>{d=z,M()}).catch(()=>{}),()=>{o.abort(),G.disconnect(),Z(),B(),T!==void 0&&window.cancelAnimationFrame(T),document.querySelectorAll(`[data-mpi-check="${r.packageName}"],.mpi-version[data-package="${r.packageName}"]`).forEach(z=>z.remove())}}t(Br,"observePluginUpdate");function gs(r){if(typeof r!="string"||r.length===0||r.length>1024)throw new TypeError("\u4F1A\u8BDD ID \u957F\u5EA6\u987B\u4E3A 1\uFF5E1024 \u4E2A\u5B57\u7B26");return r}t(gs,"checkedId");var oi={parse(r){let o=we(r);if(!o||typeof o!="object"||typeof o.favorite!="boolean")throw new TypeError("\u6536\u85CF\u72B6\u6001\u5FC5\u987B\u4E3A\u5E03\u5C14\u503C");return{sessionId:gs(o.sessionId),favorite:o.favorite}}},li={parse(r){let o=we(r);if(!o||!Array.isArray(o.favoriteSessionIds)||o.favoriteSessionIds.length>1e5)throw new TypeError("\u6536\u85CF\u96C6\u5408\u65E0\u6548");return{favoriteSessionIds:[...new Set(o.favoriteSessionIds.map(gs))]}},safeParse(r){try{return{success:!0,data:this.parse(r)}}catch(o){return{success:!1,error:o}}}};function Fr(){let r=t((o,d)=>({mode:"strict",typeSymbol:`@michengai/dsh-archive-manager/types#${o}`,create:t(()=>d,"create"),schema:d}),"codec");return["favoriteSessions","setSessionFavorite"].map(o=>({id:`@michengai/dsh-archive-manager#workspaceRegistry/${o}`,service:"workspaceRegistry",namespace:"workspaceRegistry",method:o,invocation:{kind:"direct"},parameters:o==="favoriteSessions"?[]:[{name:"input",wire:"input",source:"json",codec:r("FavoriteInput",oi)}],result:r("FavoriteState",li),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}}))}t(Fr,"favoriteInvocations");function fs(r,{days:o,now:d=Date.now(),favorites:y=new Set,currentId:n,pending:i=new Map}){if(!r||!Number.isInteger(o)||o<1||o>36500||y.has(r.id)||r.id===n||(r.retainedBy?.mainView??0)>0||r.running||(r.runningSubagentCount??0)>0||r.pendingInteraction!=null||i.has(r.id))return!1;let c=typeof r.updatedAt=="number"?r.updatedAt:Date.parse(r.updatedAt??"");return Number.isFinite(c)&&c<=d-o*864e5}t(fs,"idleArchiveCandidate");async function ci(r,o,{onProgress:d,refresh:y}={}){let n=[...new Set(r.map(gs))],i={requested:n,succeeded:[],skipped:[],failures:[],unprocessed:[],remaining:[],refreshError:null},c=t(()=>d?.({total:n.length,done:i.succeeded.length+i.skipped.length+i.failures.length,succeeded:i.succeeded.length,skipped:i.skipped.length,failed:i.failures.length}),"report");c();for(let[O,T]of n.entries()){try{(await o(T)?i.succeeded:i.skipped).push(T)}catch(B){i.failures.push({sessionId:T,message:B instanceof Error?B.message:String(B)}),i.unprocessed=n.slice(O+1),i.remaining=n.slice(O),c();break}c()}try{await y?.()}catch(O){i.refreshError=O instanceof Error?O.message:String(O)}return i}t(ci,"runSessionBatch");function Lr({workspaces:r,sessions:o,archive:d,restore:y,deleteOne:n,getFavorites:i,refresh:c,currentSessionId:O}){return async(T,B,I={})=>{if(!["archive","restore","undo","delete"].includes(T))throw new TypeError("\u672A\u77E5\u6279\u91CF\u64CD\u4F5C");return ci(B,async Z=>{let M=r.getSnapshot().archivedSessionIds.includes(Z);if(T==="archive"){if(M||!o.getSnapshot().byId[Z])return!1;if(I.idleDays!==void 0){let Q=new Set((await i()).favoriteSessionIds),Be=o.getSnapshot();if(!fs(Be.byId[Z],{days:I.idleDays,favorites:Q,currentId:O(Be),pending:I.getPending?.()??I.pending}))return!1}return await d(Z),r.getSnapshot().archivedSessionIds.includes(Z)}return M?T==="delete"?(await n(Z),!0):!((await y(Z))?.archivedSessionIds??r.getSnapshot().archivedSessionIds).includes(Z):!1},{onProgress:I.onProgress,refresh:c})}}t(Lr,"createSessionOrganizer");function Gr(r,o){let d=r.createElement;function y(i,c){return d(o??(T=>d("button",{type:"button",disabled:T.disabled,onClick:T.onClick},T.children)),{variant:"outline",size:"sm",...c},i)}t(y,"textButton");function n({title:i,failures:c,separator:O}){let[T,B]=r.useState(!1),I=d("ul",null,c.map(Z=>d("li",{key:Z.sessionId},Z.sessionId,O,Z.message)));return d(dn,{title:i,open:T,onToggle:t(()=>B(Z=>!Z),"onToggle")},I)}return t(n,"FailureDetails"),t(function({t:c,archived:O,busy:T,ready:B,days:I,onDays:Z,count:R,onPreview:M,progress:G,result:z,onRetry:ie,undoCount:ne,onUndo:Q,onReload:Be}){return d(r.Fragment,null,d("style",null,".dsham_organizer,.dsham_batchFeedback{display:grid;gap:12px;margin:0 0 16px;padding:14px 16px;border:0.5px solid var(--dsw-alias-border-l2);border-radius:12px;background:var(--dsw-alias-bg-layer-2)}.dsham_organizerControls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.dsham_organizer label{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--dsw-alias-label-primary)}.dsham_number{width:88px;height:32px;padding:0 10px;border:0.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-sm,8px);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);font:inherit;font-size:13px}.dsham_number:hover{border-color:var(--dsw-alias-border-l3)}.dsham_number:focus{outline:none;border-color:var(--dsw-alias-state-business-primary)}.dsham_disclosure{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:var(--dsw-alias-label-secondary);font:inherit;font-size:12px;cursor:pointer}.dsham_foldChevron{transition:transform 150ms ease}.dsham_foldChevron.is-open{transform:rotate(180deg)}.dsham_organizer p,.dsham_batchFeedback p{margin:0;font-size:12px;color:var(--dsw-alias-label-secondary)}.dsham_batchFeedback progress{width:100%}.dsham_batchFeedback details{font-size:12px;overflow-wrap:anywhere}.dsham_archivePreview{max-height:260px;overflow:auto;display:grid;gap:8px;padding:8px 0}.dsham_archivePreview label{display:flex;gap:8px;align-items:center;overflow-wrap:anywhere}"),(!O||!B)&&d("div",{className:"dsham_organizer"},d("div",{className:"dsham_organizerControls"},!B&&y(c("organizer.reloadFavorites"),{disabled:T,onClick:Be}),!O&&d(r.Fragment,null,d("label",null,c("organizer.idleDays"),d(cr,{min:1,max:36500,value:I===""?null:Number(I),disabled:T,"aria-label":c("organizer.idleDays"),onChange:t(be=>Z(be==null?"":String(be)),"onChange")})),y(c("organizer.preview",{n:R}),{disabled:T||!B||R===0,onClick:M}))),!O&&d("p",null,c("organizer.rules"))),(G||z||ne>0)&&d("section",{className:"dsham_batchFeedback","aria-label":c("organizer.feedback")},G&&d("div",{role:"status","aria-live":"polite"},d("progress",{value:G.done,max:Math.max(1,G.total),"aria-label":c("organizer.progress")}),c("organizer.progressCount",{done:G.done,total:G.total})),z&&d("div",{role:"status"},d("strong",null,c(`organizer.${z.kind??"archive"}Result`)),d("p",null,c("organizer.result",{succeeded:z.succeeded.length,skipped:z.skipped.length,failed:z.failures.length,remaining:z.unprocessed.length})),z.failures.length>0&&d(n,{title:c("organizer.failureDetails"),failures:z.failures,separator:c("common.separator")}),z.refreshError&&d("p",{role:"alert"},c("organizer.refreshError",{detail:z.refreshError})),z.remaining.length>0&&y(c("organizer.retry",{n:z.remaining.length}),{disabled:T,onClick:ie})),ne>0&&d("div",{className:"dsham_organizerControls"},y(c("organizer.undo",{n:ne}),{disabled:T,onClick:Q}),d("p",null,c("organizer.undoHint")))))},"OrganizerPanel")}t(Gr,"createOrganizerPanel");var qr={"organizer.feedback":"\u64CD\u4F5C\u53CD\u9988","organizer.allSessions":"\u5168\u90E8\u4F1A\u8BDD","organizer.favoriteFilter":"\u6536\u85CF\u7B5B\u9009","organizer.archiveResult":"\u5F52\u6863\u7ED3\u679C","organizer.restoreResult":"\u6062\u590D\u7ED3\u679C","organizer.deleteResult":"\u5220\u9664\u7ED3\u679C","organizer.undoResult":"\u64A4\u56DE\u7ED3\u679C","organizer.favorite":"\u6536\u85CF","organizer.unfavorite":"\u53D6\u6D88\u6536\u85CF","organizer.favoritesOnly":"\u53EA\u770B\u6536\u85CF","organizer.reloadFavorites":"\u91CD\u65B0\u52A0\u8F7D\u6536\u85CF","organizer.idleDays":"\u95F2\u7F6E\u5929\u6570","organizer.preview":"\u9884\u89C8\u95F2\u7F6E\u5F52\u6863\uFF08{n}\uFF09","organizer.rules":"\u6309\u6700\u540E\u6D3B\u52A8\u65F6\u95F4\u7B5B\u9009\uFF0C\u9075\u5FAA\u5F53\u524D\u5217\u8868\u7B5B\u9009\u6761\u4EF6\uFF1B\u6392\u9664\u6536\u85CF\u3001\u5F53\u524D\u6253\u5F00\u3001\u6B63\u5728\u6267\u884C\u53CA\u7B49\u5F85\u4EA4\u4E92\u7684\u4F1A\u8BDD\u3002","organizer.progress":"\u6279\u91CF\u64CD\u4F5C\u8FDB\u5EA6","organizer.progressCount":"\u5DF2\u5904\u7406 {done} / {total}","organizer.result":"\u6210\u529F {succeeded} \xB7 \u8DF3\u8FC7 {skipped} \xB7 \u5931\u8D25 {failed} \xB7 \u672A\u5904\u7406 {remaining}","organizer.failureDetails":"\u67E5\u770B\u5931\u8D25\u8BE6\u60C5","organizer.refreshError":"\u64CD\u4F5C\u7ED3\u679C\u5DF2\u4FDD\u7559\uFF0C\u4F46\u5217\u8868\u5237\u65B0\u5931\u8D25\uFF1A{detail}","organizer.retry":"\u91CD\u8BD5\u5269\u4F59 {n} \u6761","organizer.undo":"\u64A4\u56DE\u672C\u6B21\u5F52\u6863\uFF08{n}\uFF09","organizer.undoHint":"\u4EC5\u4FDD\u7559\u672C\u6B21\u6253\u5F00\u7BA1\u7406\u9875\u671F\u95F4\u6700\u8FD1\u4E00\u6279\u5F52\u6863\uFF1B\u5173\u95ED\u9875\u9762\u6216\u5237\u65B0\u540E\u6E05\u9664\u3002\u64A4\u56DE\u4E0D\u4F1A\u6062\u590D\u5DF2\u5220\u9664\u7684\u4F1A\u8BDD\u3002","organizer.idleConfirm":"\u8BF7\u68C0\u67E5\u4EE5\u4E0B\u5019\u9009\uFF0C\u53EF\u53D6\u6D88\u52FE\u9009\uFF1B\u6267\u884C\u524D\u518D\u6B21\u6392\u9664\u6536\u85CF\u53CA\u6D3B\u8DC3\u4F1A\u8BDD\u3002","organizer.manualConfirm":"\u4EC5\u5F52\u6863\u4EE5\u4E0B\u52FE\u9009\u4F1A\u8BDD\uFF1B\u53EF\u9010\u6761\u53D6\u6D88\u3002\u5F52\u6863\u540E\u53EF\u64A4\u56DE\u672C\u6279\u64CD\u4F5C\u3002"},Ur={"organizer.feedback":"Operation feedback","organizer.allSessions":"All sessions","organizer.favoriteFilter":"Favorites filter","organizer.archiveResult":"Archive results","organizer.restoreResult":"Restore results","organizer.deleteResult":"Delete results","organizer.undoResult":"Undo results","organizer.favorite":"Favorite","organizer.unfavorite":"Unfavorite","organizer.favoritesOnly":"Favorites only","organizer.reloadFavorites":"Reload favorites","organizer.idleDays":"Idle days","organizer.preview":"Preview idle archives ({n})","organizer.rules":"Uses last activity, the current list filters. Excludes favorites, open, running and waiting sessions.","organizer.progress":"Batch progress","organizer.progressCount":"Processed {done} / {total}","organizer.result":"Succeeded {succeeded} \xB7 Skipped {skipped} \xB7 Failed {failed} \xB7 Unprocessed {remaining}","organizer.failureDetails":"Failure details","organizer.refreshError":"Results retained, but refresh failed: {detail}","organizer.retry":"Retry remaining {n}","organizer.undo":"Undo this archive batch ({n})","organizer.undoHint":"Only the latest archive batch while this page is open is retained. Closing or refreshing clears undo. Deleted sessions cannot be restored.","organizer.idleConfirm":"Review and deselect candidates. Favorites and active sessions are checked again before archiving.","organizer.manualConfirm":"Only checked sessions below will be archived. You can undo this batch afterward."},Vr={"organizer.feedback":"\u041E\u0442\u0437\u044B\u0432 \u043E\u0431 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438","organizer.allSessions":"\u0412\u0441\u0435 \u0441\u0435\u0441\u0441\u0438\u0438","organizer.favoriteFilter":"\u0424\u0438\u043B\u044C\u0442\u0440 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E","organizer.archiveResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438","organizer.restoreResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F","organizer.deleteResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0443\u0434\u0430\u043B\u0435\u043D\u0438\u044F","organizer.undoResult":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043E\u0442\u043C\u0435\u043D\u044B","organizer.favorite":"\u0412 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","organizer.unfavorite":"\u0423\u0431\u0440\u0430\u0442\u044C \u0438\u0437 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0433\u043E","organizer.favoritesOnly":"\u0422\u043E\u043B\u044C\u043A\u043E \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","organizer.reloadFavorites":"\u041F\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435","organizer.idleDays":"\u0414\u043D\u0438 \u043F\u0440\u043E\u0441\u0442\u043E\u044F","organizer.preview":"\u041F\u0440\u0435\u0434\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440 \u0430\u0440\u0445\u0438\u0432\u0430 \u043F\u0440\u043E\u0441\u0442\u043E\u044F ({n})","organizer.rules":"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442 \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044E\u044E \u0430\u043A\u0442\u0438\u0432\u043D\u043E\u0441\u0442\u044C \u0438 \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u0444\u0438\u043B\u044C\u0442\u0440\u044B \u0441\u043F\u0438\u0441\u043A\u0430. \u0418\u0441\u043A\u043B\u044E\u0447\u0430\u0435\u0442 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435, \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u0435, \u0437\u0430\u043F\u0443\u0449\u0435\u043D\u043D\u044B\u0435 \u0438 \u043E\u0436\u0438\u0434\u0430\u044E\u0449\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438.","organizer.progress":"\u0425\u043E\u0434 \u043F\u0430\u043A\u0435\u0442\u043D\u043E\u0439 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0438","organizer.progressCount":"\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E {done} / {total}","organizer.result":"\u0423\u0441\u043F\u0435\u0448\u043D\u043E {succeeded} \xB7 \u041F\u0440\u043E\u043F\u0443\u0449\u0435\u043D\u043E {skipped} \xB7 \u041E\u0448\u0438\u0431\u043E\u043A {failed} \xB7 \u041D\u0435 \u043E\u0431\u0440\u0430\u0431\u043E\u0442\u0430\u043D\u043E {remaining}","organizer.failureDetails":"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0441\u0442\u0438 \u043E\u0448\u0438\u0431\u043E\u043A","organizer.refreshError":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B, \u043D\u043E \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u043F\u0438\u0441\u043A\u0430 \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C: {detail}","organizer.retry":"\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u043E\u0441\u0442\u0430\u0432\u0448\u0438\u0435\u0441\u044F {n}","organizer.undo":"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u044D\u0442\u0443 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044E ({n})","organizer.undoHint":"\u0421\u043E\u0445\u0440\u0430\u043D\u044F\u0435\u0442\u0441\u044F \u0442\u043E\u043B\u044C\u043A\u043E \u043F\u043E\u0441\u043B\u0435\u0434\u043D\u044F\u044F \u043F\u0430\u043A\u0435\u0442\u043D\u0430\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F, \u043F\u043E\u043A\u0430 \u043E\u0442\u043A\u0440\u044B\u0442\u0430 \u044D\u0442\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430. \u0417\u0430\u043A\u0440\u044B\u0442\u0438\u0435 \u0438\u043B\u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435 \u0441\u0431\u0440\u0430\u0441\u044B\u0432\u0430\u0435\u0442 \u043E\u0442\u043C\u0435\u043D\u0443. \u0423\u0434\u0430\u043B\u0451\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043D\u0435\u043B\u044C\u0437\u044F.","organizer.idleConfirm":"\u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u043A\u0430\u043D\u0434\u0438\u0434\u0430\u0442\u043E\u0432, \u043C\u043E\u0436\u043D\u043E \u0441\u043D\u044F\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443. \u041F\u0435\u0440\u0435\u0434 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0435\u0439 \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435 \u0438 \u0430\u043A\u0442\u0438\u0432\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438 \u043F\u0440\u043E\u0432\u0435\u0440\u044F\u044E\u0442\u0441\u044F \u043F\u043E\u0432\u0442\u043E\u0440\u043D\u043E.","organizer.manualConfirm":"\u0411\u0443\u0434\u0443\u0442 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u043E\u0442\u043C\u0435\u0447\u0435\u043D\u043D\u044B\u0435 \u043D\u0438\u0436\u0435 \u0441\u0435\u0441\u0441\u0438\u0438. \u042D\u0442\u0443 \u043F\u0430\u043A\u0435\u0442\u043D\u0443\u044E \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E \u043C\u043E\u0436\u043D\u043E \u043E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u043F\u043E\u0437\u0436\u0435."};var un=Function("return globalThis.__dshArchiveReactDOM")(),Wr=Function("return globalThis.__dshArchiveReactDOMClient")(),Xr=un.createPortal,Eo=un.flushSync,jo=Wr?.createRoot,Do=Wr?.hydrateRoot,To=un.findDOMNode,No=un.unmountComponentAtNode,Mo=un.unstable_batchedUpdates,Oo=un.version;function di(r){var o={exports:{}},d=o.exports;Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});let y=r("@deepseek-ai/dsh-client-store"),n=r("react/jsx-runtime"),i=r("react"),c=r("@deepseek-ai/dsh-client-ui-primitives");function O({open:e,onClose:s,title:a,description:l,footer:h,children:p,className:f,width:w}){let _=i.useRef(null),A=i.useCallback(()=>_.current?.closest(".dsham_settings")??document.body,[]),[S,x]=i.useState(null);i.useEffect(()=>{if(!e){x(null);return}x(A())},[e,A]),i.useEffect(()=>{if(!e)return;let u=t(me=>{me.key==="Escape"&&(me.preventDefault(),me.stopPropagation(),"stopImmediatePropagation"in me&&typeof me.stopImmediatePropagation=="function"&&me.stopImmediatePropagation(),s())},"onKey");return window.addEventListener("keydown",u,!0),()=>window.removeEventListener("keydown",u,!0)},[e,s]);let b=(0,n.jsxs)("div",{className:"dsham_modalRoot",role:"presentation",children:[(0,n.jsx)("div",{className:"dsham_modalMask",onClick:s}),(0,n.jsxs)("div",{role:"dialog","aria-modal":!0,"aria-label":typeof a=="string"?a:void 0,className:Le("dsham_modalDialog",f),style:{width:w??560},children:[(0,n.jsx)("h2",{children:a}),l!=null&&(0,n.jsx)("p",{children:l}),p,h!=null&&(0,n.jsx)("div",{className:"dsham_modalFooter",children:h})]})]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{refObject:_,getContainer:A}),e&&S?Xr(b,S):null]})}t(O,"SettingsModal");function T({refObject:e,getContainer:s}){return(0,n.jsx)("span",{hidden:!0,ref:e,"data-get-container":s})}t(T,"SettingsModalAnchor");function B({variant:e="outline",icon:s,children:a,className:l,disabled:h,title:p,onClick:f,"aria-label":w,"aria-pressed":_,"aria-expanded":A,"aria-haspopup":S}){return(0,n.jsx)(c.Button,{variant:e,size:"sm",className:l,disabled:h,title:p,onClick:f,"aria-label":w,"aria-pressed":_,"aria-expanded":A,"aria-haspopup":S,icon:s,children:a})}t(B,"settingsButton");function I({variant:e="outline",danger:s=!1,disabled:a,onClick:l,children:h}){return(0,n.jsx)(c.Button,{variant:s?"outline":e,className:s?"dsham_btnDanger":void 0,disabled:a,onClick:l,children:h})}t(I,"modalFooterButton");function Z(e,s){let a={className:e?"dsham_archiveTabsLocked":void 0,children:s};return e&&(a.inert=""),a}t(Z,"tabsShell");let R=Gr(i,c.Button),{HighlightedText:M,useSessionDetails:G,useArchiveSearch:z,useArchivePreview:ie,DiscoveryFilters:ne,SearchStatus:Q,PreviewContent:Be}=kr(i,{Button:c.Button,SegmentedControl:c.SegmentedControl}),be=Sr(i,{warning:c.IconWarningOutlineMedium,info:c.IconInfoOutlineMedium,check:c.IconCheckOutlineMedium,refresh:c.IconRefreshOutlineMedium,search:c.IconSearchOutlineMedium,chevron:c.IconChevronDownOutlineMedium},c.Button),Oe={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 Ge(e){let s=document.createElement("span"),a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("viewBox","0 0 16 16"),a.setAttribute("width","16"),a.setAttribute("height","16"),a.setAttribute("fill","none"),a.setAttribute("stroke","currentColor"),a.setAttribute("stroke-width","1.5"),a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("aria-hidden","true");for(let l of Oe[e]){let h=document.createElementNS("http://www.w3.org/2000/svg","path");h.setAttribute("d",l),a.append(h)}return s.append(a),s}t(Ge,"createPluginUpdateIcon");let Y={parse(e){if(typeof e!="string"||e.length===0)throw new TypeError(`sessionId must be a non-empty string, got ${String(e)}`);return e}},xe={parse(e){let s=we(e);if(typeof s!="object"||s===null||Array.isArray(s))throw new TypeError("result must be an object");let a=s.archivedSessionIds;if(!Array.isArray(a)||a.some(l=>typeof l!="string"))throw new TypeError("archivedSessionIds must be a string array");return s}},at={parse(e){let s=we(e);if(typeof s!="object"||s===null||Array.isArray(s)||s.deleted!==!0)throw new TypeError("deleted must be true");return s}},fe={parse(e){let s=we(e);if(typeof s!="object"||s===null||Array.isArray(s))throw new TypeError("target must be an object");if(s.scope==="all"||s.scope==="ungrouped"||s.scope==="workspace"&&typeof s.workspaceId=="string"&&s.workspaceId.length>0||s.scope==="sessions"&&Array.isArray(s.sessionIds)&&s.sessionIds.length>0&&s.sessionIds.every(a=>typeof a=="string"&&a.length>0))return s;throw new TypeError("target.scope must be all, ungrouped, workspace with a non-empty workspaceId, or sessions with non-empty sessionIds")}},tt={parse(e){let s=we(e);if(typeof s!="object"||s===null||Array.isArray(s))throw new TypeError("result must be an object");for(let a of["requestedSessionIds","deletedSessionIds","skippedSessionIds"])if(!Array.isArray(s[a])||s[a].some(l=>typeof l!="string"))throw new TypeError(`${a} must be a string array`);if(!Array.isArray(s.failures)||s.failures.some(a=>typeof a!="object"||a===null||typeof a.sessionId!="string"||typeof a.message!="string"))throw new TypeError("failures must contain sessionId/message objects");return s}},Ct={parse(e){let s=we(e);if(typeof s!="object"||s===null||Array.isArray(s)||!Array.isArray(s.items))throw new TypeError("result.items must be an array");if(s.items.some(a=>typeof a!="object"||a===null||typeof a.sessionId!="string"||typeof a.createdAt!="number"||!Number.isFinite(a.createdAt)))throw new TypeError("items must contain sessionId/createdAt objects");if(s.repairedSessionIds!==void 0&&(!Array.isArray(s.repairedSessionIds)||s.repairedSessionIds.some(a=>typeof a!="string")))throw new TypeError("repairedSessionIds must be a string array");return s}};function $e(e,s){return{mode:"strict",typeSymbol:e,create:t(()=>s,"create"),schema:s}}t($e,"strictCodec");let It={package:"@michengai/dsh-archive-manager",descriptors:[...Fr(),...fr(),{id:"@michengai/dsh-archive-manager#workspaceRegistry/unarchiveSession",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"unarchiveSession",invocation:{kind:"direct"},parameters:[{name:"sessionId",wire:"sessionId",source:"json",codec:$e("@deepseek-ai/dsh-session/types#SessionId",Y)}],result:$e("@michengai/dsh-archive-manager/types#ArchivedSessionIds",xe),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}},{id:"@michengai/dsh-archive-manager#workspaceRegistry/deleteSession",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"deleteSession",invocation:{kind:"direct"},parameters:[{name:"sessionId",wire:"sessionId",source:"json",codec:$e("@deepseek-ai/dsh-session/types#SessionId",Y)}],result:$e("@michengai/dsh-archive-manager/types#Deleted",at),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}},{id:"@michengai/dsh-archive-manager#workspaceRegistry/deleteArchivedSessions",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"deleteArchivedSessions",invocation:{kind:"direct"},parameters:[{name:"target",wire:"target",source:"json",codec:$e("@michengai/dsh-archive-manager/types#ArchivedBatchTarget",fe)}],result:$e("@michengai/dsh-archive-manager/types#DeletedBatch",tt),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}},{id:"@michengai/dsh-archive-manager#workspaceRegistry/archivedSessionMetadata",service:"workspaceRegistry",namespace:"workspaceRegistry",method:"archivedSessionMetadata",invocation:{kind:"direct"},parameters:[],result:$e("@michengai/dsh-archive-manager/types#ArchivedSessionMetadata",Ct),sourceLocation:{file:"@michengai/dsh-archive-manager/lib/workspace.js",line:1,column:1}}]},Ye={row:"dsham_archivedRow",title:"dsham_archivedTitle",badge:"dsham_archivedBadge",content:"dsham_archiveCardContent",meta:"dsham_archiveCardMeta",actions:"dsham_archiveCardActions",unarchive:"dsham_archiveCardUnarchive",delete:"dsham_iconAction dsham_iconDanger"},Kr=".dshamRow_sessionRow.dsham_archivedRow{box-sizing:border-box;cursor:default;min-height:64px;height:auto;background:var(--dsw-alias-button-elevated-fill);border:1px solid var(--dsw-alias-border-l2);border-radius:12px;gap:12px;margin:8px 0;padding:10px 16px}.dshamRow_sessionRow.dsham_archivedRow:hover{background:var(--dsw-alias-button-elevated-fill);border-color:var(--dsw-alias-border-l3)}.dshamRow_searchResultRow.dsham_archivedRow{background:var(--dsw-alias-button-elevated-fill);border:1px solid var(--dsw-alias-border-l2);border-radius:12px;margin:8px 0;padding:10px 16px}.dsham_archivedTitle{color:var(--dsw-alias-label-primary);font-weight:600}.dsham_archivedBadge{display:none}.dsham_archiveCardContent{min-width:0;flex:1;flex-direction:column;gap:2px;display:flex}.dsham_archiveCardMeta{color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:18px}.dshamRow_sessionRow.dsham_archivedRow>.dshamRow_time,.dshamRow_sessionRow.dsham_archivedRow>.dshamRow_rowActions{display:none}.dsham_archiveCardActions{align-items:center;gap:12px;display:inline-flex}.dsham_archiveCardActions button{cursor:pointer;flex:none}.dsham_archiveCardUnarchive{height:32px;color:var(--dsw-alias-label-primary);background:var(--dsw-alias-button-elevated-fill);border:1px solid var(--dsw-alias-border-l2)!important;border-radius:8px;padding:0 12px;font-size:13px;font-weight:600;line-height:20px}.dsham_archiveCardUnarchive:hover{background:var(--dsw-alias-interactive-bg-hover)}";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify("dsh-archive-manager/Archived.module.css")+"]")===null){let e=document.createElement("style");e.dataset.plugin="@michengai/dsh-archive-manager",e.dataset.pluginCss="dsh-archive-manager/Archived.module.css",e.textContent=Kr,document.head.appendChild(e)}let $r=".dsham_btnDanger:not(:disabled){color:var(--dsw-alias-state-error-primary,#ef7272);border-color:var(--dsw-alias-state-error-primary,#ef7272)}";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify("dsh-archive-manager/DangerButton.css")+"]")===null){let e=document.createElement("style");e.dataset.plugin="@michengai/dsh-archive-manager",e.dataset.pluginCss="dsh-archive-manager/DangerButton.css",e.textContent=$r,document.head.appendChild(e)}function An(e){let s=new Map;for(let a of Object.values(e)){if(a.origin!=="subagent")continue;let l=new Set,h=a;for(;h?.origin==="subagent"&&h.parentId!==void 0&&!l.has(h.id);){l.add(h.id);let p=s.get(h.parentId);p===void 0?s.set(h.parentId,{count:1,runningCount:a.running?1:0}):(p.count+=1,a.running&&(p.runningCount+=1)),h=e[h.parentId]}}return s}t(An,"indexSubagentDescendants");let Ht="__flat_session_order__",En="dsh.archive-manager.workspace.view.v1",vs="dsh.workspace.view.v5";function ys(e){let s=e??globalThis.localStorage;if(s==null||typeof s.getItem!="function"||typeof s.setItem!="function")return!1;try{if(s.getItem(En)!=null)return!1;let a=s.getItem(vs);return a==null?!1:(s.setItem(En,a),!0)}catch{return!1}}t(ys,"migrateWorkspaceViewPersist");function Yr(){return ys(),(0,y.defineStore)({init:t(()=>({groupBy:"workspace",orderBy:"updated",showArchived:!1,groupExpansion:{},sessionOrderByAccount:{},sessionUpdatedAtByAccount:{}}),"init"),persist:En,actions:{setGroupBy:t((e,s)=>{e.groupBy=s},"setGroupBy"),setOrderBy:t((e,s)=>{e.orderBy=s},"setOrderBy"),setShowArchived:t((e,s)=>{e.showArchived=s===!0},"setShowArchived"),setGroupExpanded:t((e,s,a)=>{e.groupExpansion[s]=a},"setGroupExpanded"),retainAccountKeys:t((e,s)=>{let a=new Set(s);e.groupExpansion=Object.fromEntries(Object.entries(e.groupExpansion).filter(([l])=>a.has(l))),e.sessionOrderByAccount=Object.fromEntries(Object.entries(e.sessionOrderByAccount).filter(([l])=>a.has(l))),e.sessionUpdatedAtByAccount=Object.fromEntries(Object.entries(e.sessionUpdatedAtByAccount).filter(([l])=>a.has(l)))},"retainAccountKeys"),syncSessionOrderAccount:t((e,s,a,l)=>{e.sessionOrderByAccount[s]=a,e.sessionUpdatedAtByAccount[s]=l},"syncSessionOrderAccount"),setSessionOrder:t((e,s,a)=>{e.sessionOrderByAccount[s]=a},"setSessionOrder")}})}t(Yr,"createWorkspaceViewStore");function Zr(){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,focusable:"false",children:(0,n.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"})})}t(Zr,"GithubMark16");function Jr(){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,focusable:"false",children:(0,n.jsx)("path",{fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",d:"M9.5 2.5 13.5 6.5 6 14H2v-4z"})})}t(Jr,"FeedbackIcon");function ws({archiveSessions:e,archiveSession:s,sessionStore:a,workspaceStore:l,unarchiveSession:h,deleteSession:p,unarchiveSessions:f,deleteArchivedSessions:w,archivedSessionMetadata:_,openConversation:A,focusSessionWorkspace:S,viewState:x,close:b,t:u,diagnoseSession:me,repairSession:je,sessionDetails:oe,searchSessionContent:He,searchArchivedContent:Pe,previewArchivedSession:le,favoriteSessions:P,setSessionFavorite:U,organizeBatch:ue,useSessionPendingInteraction:se,useSessionStatus:De}){let C=(0,i.useSyncExternalStore)(a.subscribe,a.getSnapshot),re=(0,i.useSyncExternalStore)(l.subscribe,l.getSnapshot),[he,Ie]=(0,i.useState)("archived"),$=he==="archived",[ge,ye]=(0,i.useState)(null),[Ue,V]=(0,i.useState)(null),[ce,ee]=(0,i.useState)(null),X=t((m,j=null)=>{E(null),ae(null),jt(!1),V(j),ye(m)},"requestArchive"),ze=t(()=>{q||(ye(null),V(null),E(null))},"closeArchive"),ve=(0,i.useRef)(!1),[J,Fe]=(0,i.useState)(null),Te=(0,i.useRef)(!1),[q,g]=(0,i.useState)(!1),[N,E]=(0,i.useState)(null),[Ne,ae]=(0,i.useState)(null),Ae=t(m=>{E(null),ae(null),Fe(m)},"requestDelete"),[We,Ze]=(0,i.useState)(x?.query??""),[Ce,Je]=(0,i.useState)(x?.project??"all"),[k,te]=(0,i.useState)(x?.sortBy??"updated"),[Se,Ve]=(0,i.useState)({}),[ke,Xe]=(0,i.useState)(()=>new Set),F=(0,i.useRef)(new Set),[Ee,_e]=(0,i.useState)([]),[rt,Me]=(0,i.useState)([]),[lt,Pt]=(0,i.useState)(!1),[$t,gn]=(0,i.useState)(!1),mt=(0,i.useRef)(!1),[Yt,zn]=(0,i.useState)(!1),[At,vt]=i.useState("title"),[Zt,fn]=i.useState(""),[Jt,vn]=i.useState(""),[Et,yn]=(0,i.useState)(()=>new Set),[Qt,Bn]=(0,i.useState)("30"),[zt,jt]=(0,i.useState)(!1),[nt,yt]=(0,i.useState)(null),[wn,Bt]=(0,i.useState)(null),[en,Ft]=(0,i.useState)([]),wt=(0,i.useRef)(!1),gt=(0,i.useRef)(null),Lt=Tn(se??Es,De??js,typeof De=="function"),Dt=(0,i.useRef)(Lt.pending);Dt.current=Lt.pending;let ct=(0,i.useMemo)(()=>new Set(rt),[rt]),Fn=t(async()=>{if(P)try{let m=await P();Me(m.favoriteSessionIds),Pt(!0)}catch(m){Pt(!1),E(et(m))}},"loadFavorites");(0,i.useEffect)(()=>{let m=!0;return P&&P().then(j=>{m&&(Me(j.favoriteSessionIds),Pt(!0))}).catch(j=>{m&&E(et(j))}),()=>{m=!1}},[P]);let tn=t(async m=>{if(!(mt.current||q||!lt)){mt.current=!0,gn(!0),E(null);try{let j=await U({sessionId:m,favorite:!ct.has(m)});Me(j.favoriteSessionIds)}catch(j){E(et(j))}finally{mt.current=!1,gn(!1)}}},"toggleFavorite"),Gt=t(async(m,j,{idle:W=!1,retry:de=!1}={})=>{if(!(wt.current||mt.current||F.current.size>0||!ue)){wt.current=!0,g(!0),E(null),ae(null),Bt(null),m==="archive"&&!de&&Ft([]);try{let D=await ue(m,j,{idleDays:W?Number(Qt):void 0,getPending:t(()=>Dt.current,"getPending"),onProgress:t(Re=>{yt(Re),m==="archive"&&Re.total>0&&Re.done>=Re.total&&(ye(null),V(null),jt(!1))},"onProgress")});return Bt({...D,kind:m,tab:he}),gt.current=D.remaining.length?{kind:m,ids:D.remaining,idle:W}:null,m==="archive"&&Ft(Re=>[...new Set([...Re,...D.succeeded])]),(m==="undo"||m==="restore"||m==="delete")&&Ft(Re=>Re.filter(st=>!D.succeeded.includes(st)&&!D.skipped.includes(st))),_e(Re=>Re.filter(st=>!D.succeeded.includes(st)&&!D.skipped.includes(st))),m==="delete"&&Me(Re=>Re.filter(st=>!D.succeeded.includes(st))),D}catch(D){E(et(D))}finally{wt.current=!1,g(!1),yt(null)}}},"executeBatch"),ht=(0,i.useRef)(!0),bn=(0,i.useRef)(!1);(0,i.useEffect)(()=>(ht.current=!0,()=>{ht.current=!1}),[]);let it=t(async(m,j=!1)=>{if(q||bn.current)return;bn.current=!0,g(!0),E(null);let W=!1;try{await Er({prepare:j?async de=>{await S?.(de)}:void 0,restore:t(async de=>{await h(de),W=!0},"restore"),open:t(async de=>{await A(de),ht.current&&b?.()},"open")},m.id,j,()=>ht.current)}catch(de){if(!ht.current)return;if(W){Ie("unarchived");let D=dt.find(Re=>Re.sessions.some(st=>st.id===m.id));D!==void 0&&Je(D.key)}E(Ar(de,u))}finally{bn.current=!1,ht.current&&g(!1)}},"viewConversation");(0,i.useEffect)(()=>{x&&Object.assign(x,{query:We,project:Ce,sortBy:k})},[We,Ce,k,x]);let bt=(0,i.useMemo)(()=>$?re.archivedSessionIds:Qs(C.byId,re.archivedSessionIds),[$,C.byId,re.archivedSessionIds]),Tt=yr(bt,C.byId),nn=(0,i.useRef)(Tt);q||(nn.current=Tt);let dt=(0,i.useMemo)(()=>er(C.byId,re.items,bt,u("group.ungrouped")),[C.byId,re,bt,u]),sn=t(m=>{q||F.current.size>0||(Qe.close(),Ie(m),_e([]),ye(null),V(null),E(null),ae(null),Je("all"),Ze(""))},"switchTab"),xn=t(async(m,j=!1)=>{if(!(ve.current||q||!m?.length)){if(ue){ve.current=!0;try{let W=await Gt("archive",m,{idle:j}),de=W?.failures.map(D=>ks(D.sessionId,D.message)).find(D=>D!==void 0);if(de!==void 0&&typeof s=="function"){let D=C.byId[de.sessionId];ee({sessionId:de.sessionId,title:D===void 0?de.sessionId:qe(D,u),kinds:de.kinds.join(", ")}),ye(null),V(null),E(null);return}W&&(ye(null),V(null),jt(!1))}finally{ve.current=!1}return}ve.current=!0,g(!0),E(null),ae(null);try{let W=await e(m);_e([]),Ie("archived"),Je("all"),Ze(""),ae(u("archives.archiveSuccess",{n:W.archivedSessionIdsAdded.length})),ye(null),V(null)}catch(W){let de=Ss(W);if(de!==void 0&&typeof s=="function"){let D=C.byId[de.sessionId];ee({sessionId:de.sessionId,title:D===void 0?de.sessionId:qe(D,u),kinds:de.kinds.join(", ")}),ye(null),V(null),E(null)}else{let D=pn(W);E(D===void 0?u("archives.archiveBatchFailed",{detail:W instanceof Error?W.message:String(W)}):u("archives.archiveActive",{kinds:D.join(", ")}))}}finally{ve.current=!1,g(!1)}}},"performArchive"),as=t(()=>xn(ge,zt),"confirmArchive"),ut=G(nn.current,oe,u,q),xt=t(async(m,j)=>{E(null),ae(null);try{let W=m.id;if(j==="path"){let de=ut.byId[m.id];if(de||(de=(await oe({sessionIds:[m.id]})).items[0]),!de?.path)throw new Error(u("details.noPath"));W=de.path}await gr(W),ht.current&&ae(u("details.copied"))}catch(W){ht.current&&E(typeof cn(W)=="string"&&String(cn(W)).startsWith("copy.")?u(String(cn(W))):et(W))}},"copyDetail"),rn=(0,i.useMemo)(()=>tr(dt,k,Se,u,ut.byId),[dt,k,Se,u,ut.byId]);(0,i.useEffect)(()=>{if(q)return;let m=!1;return _().then(j=>{m||Ve(Object.fromEntries(j.items.map(W=>[W.sessionId,W.createdAt])))}).catch(()=>{m||Ve({})}),()=>{m=!0}},[_,re.archivedSessionIds,q]),(0,i.useEffect)(()=>{Ce!=="all"&&!dt.some(m=>m.key===Ce)&&Je("all")},[dt,Ce]);let Nt=!ps(Zt,Jt),an=rn.filter(m=>Ce==="all"||Ce===m.key).map(m=>({...m,sessions:m.sessions.filter(j=>(!Yt||ct.has(j.id))&&wr(j.updatedAt,Zt,Jt))})).filter(m=>m.sessions.length),qt=At==="content"&&!Nt,St=z(an.flatMap(m=>m.sessions.map(j=>j.id)),We,qt,He??Pe),on=new Map(St.items.map(m=>[m.sessionId,m])),Qe=ie(le,$?re.archivedSessionIds:[]),Sn=We.trim().toLocaleLowerCase(),Ut=an.map(m=>({...m,sessions:m.sessions.filter(j=>!Sn||qe(j,u).toLocaleLowerCase().includes(Sn)||on.has(j.id))})).filter(m=>m.sessions.length),kn=lt?Ut.flatMap(m=>m.sessions).filter(m=>fs(m,{days:Number(Qt),favorites:ct,currentId:ot(C),pending:Lt.pending})).map(m=>m.id):[],pt=(0,i.useMemo)(()=>Ys(Ut),[Ut]),kt=(0,i.useMemo)(()=>new Set(Ee),[Ee]),Vt=(0,i.useMemo)(()=>{let m=new Set(re.archivedSessionIds);return en.reduce((j,W)=>j+(m.has(W)?1:0),0)},[en,re.archivedSessionIds]),Mt=pt.filter(m=>kt.has(m)).length,ln=pt.length>0&&Mt===pt.length;(0,i.useEffect)(()=>{_e(m=>Zs(m,bt))},[bt]);let Ln=t((m,j)=>{_e(W=>ts(W,[m],j))},"toggleSessionSelection"),Gn=t(m=>{_e(j=>ts(j,pt,m))},"toggleVisibleSelection"),Wt=t(m=>{q||F.current.has(m)||(F.current.add(m),Xe(new Set(F.current)),E(null),ae(null),h(m).catch(j=>{E(xs(j,u))}).finally(()=>{F.current.delete(m),Xe(new Set(F.current))}))},"onUnarchive"),_n=t(async m=>{if(!q){if(ue){let j=mn(re.archivedSessionIds,re.items,m),W=await Gt("restore",j);return W&&{unarchivedSessionIds:W.succeeded}}g(!0),E(null),ae(null);try{let j=await f(m);return ae(u("archives.restoreSuccess",{n:j.unarchivedSessionIds.length})),j}catch(j){E(u("archives.restoreBatchFailed",{detail:j instanceof Error?j.message:String(j)}))}finally{g(!1)}}},"onBatchUnarchive"),is=t(async()=>{if(Ee.length===0)return;let m=await _n({scope:"sessions",sessionIds:Ee});if(m!==void 0){let j=new Set(m.unarchivedSessionIds);_e(W=>W.filter(de=>!j.has(de)))}},"onSelectedUnarchive"),v=t(()=>{q||Fe(null)},"closeDelete");(0,i.useEffect)(()=>{if(J===null)return;let m=t(j=>{j.key==="Escape"&&(j.preventDefault(),j.stopPropagation(),"stopImmediatePropagation"in j&&typeof j.stopImmediatePropagation=="function"&&j.stopImmediatePropagation(),q||Fe(null))},"onKeyDown");return window.addEventListener("keydown",m,!0),()=>window.removeEventListener("keydown",m,!0)},[J,q]);let pe=t(async()=>{if(q||Te.current||J===null)return;if(J.kind!=="batch"){Te.current=!0,g(!0),E(null),ae(null);try{await p(J.session.id),Fe(null)}catch(j){E(Dn(j,u))}finally{Te.current=!1,g(!1)}return}if(wt.current||mt.current||F.current.size>0)return;let{target:m}=J;if(m.scope==="sessions"&&mn(re.archivedSessionIds,re.items,m).length===0){Fe(null);return}wt.current=!0,g(!0),E(null),ae(null),Bt(null),yt(null);try{let j=await w(m),W=Js(j,u);W.kind==="error"?E(W.message):ae(W.message);let de=new Set([...j.deletedSessionIds,...j.skippedSessionIds]);Ft(Re=>Re.filter(st=>!de.has(st))),_e(Re=>Re.filter(st=>!de.has(st))),Me(Re=>Re.filter(st=>!de.has(st)));let D=j.failures.map(Re=>Re.sessionId);gt.current=D.length>0?{kind:"delete",ids:D,idle:!1}:null,Bt({requested:j.requestedSessionIds,succeeded:j.deletedSessionIds,skipped:j.skippedSessionIds,failures:j.failures,unprocessed:[],remaining:D,refreshError:"refreshError"in j&&typeof j.refreshError=="string"?j.refreshError:null,kind:"delete",tab:he}),Fe(null)}catch(j){E(Dn(j,u))}finally{wt.current=!1,g(!1)}},"confirmDelete"),Ke=J?.kind==="batch"?J.target.scope:null,qn=Ke==="ungrouped"?u("archives.deleteUngroupedTitle"):Ke==="workspace"?u("archives.deleteProjectTitle",{name:J?.kind==="batch"?J.title:""}):u(Ke==="sessions"?"archives.deleteSelectedTitle":"deleteSession.title"),or=J===null?void 0:Ke==="ungrouped"?u("archives.deleteUngroupedDesc",{n:J.kind==="batch"?J.count:0}):Ke==="workspace"?u("archives.deleteProjectDesc",{name:J?.kind==="batch"?J.title:"",n:J.kind==="batch"?J.count:0}):Ke==="sessions"?u("archives.deleteSelectedDesc",{n:J.kind==="batch"?J.count:0}):u("deleteSession.desc",{name:qe(J.kind==="session"?J.session:{},u)}),Ba=u(Ke==="ungrouped"?"archives.deleteUngroupedConfirm":Ke==="workspace"?"archives.deleteProjectConfirm":Ke==="sessions"?"archives.deleteSelectedConfirm":"deleteSession.title");return(0,n.jsxs)("section",{className:"dsham_settings","aria-label":u("archives.title"),children:[(0,n.jsx)("style",{children:_a+Ra+Ca+Ia+Aa+Ea}),(0,n.jsxs)("div",{className:"dsham_settingsHeader",children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{className:"dsham_settingsTitleRow",children:[(0,n.jsx)("h2",{children:u("archives.title")}),(0,n.jsxs)("div",{className:"dsham_settingsLinks",children:[(0,n.jsx)(c.Button,{variant:"outline",size:"sm","aria-label":u("archives.viewProject"),icon:(0,n.jsx)(Zr,{}),onClick:t(()=>window.open("https://github.com/MichengAI/dsh-archive-manager","_blank","noreferrer"),"onClick"),children:u("archives.viewProject")}),(0,n.jsx)(c.Button,{variant:"outline",size:"sm","aria-label":u("archives.feedback"),icon:(0,n.jsx)(Jr,{}),onClick:t(()=>window.open("https://github.com/MichengAI/dsh-archive-manager/issues","_blank","noreferrer"),"onClick"),children:u("archives.feedback")})]})]}),(0,n.jsx)("p",{className:"dsham_settingsIntro",children:u("archives.description")})]}),i.createElement("div",Z(q||ke.size>0,(0,n.jsx)(c.SegmentedTabs,{className:"dsham_archiveTabs",label:u("archives.title"),value:he==="unarchived"?"unarchived":"archived",onChange:t(m=>sn(m==="unarchived"?"unarchived":"archived"),"onChange"),items:[{value:"archived",label:u("archives.tab.archived"),id:"dsham-tab-archived",panelId:"dsham-archive-panel"},{value:"unarchived",label:u("archives.tab.unarchived"),id:"dsham-tab-unarchived",panelId:"dsham-archive-panel"}]})))]}),(0,n.jsxs)("div",{id:"dsham-archive-panel",role:"region","aria-label":u(he==="unarchived"?"archives.tab.unarchived":"archives.tab.archived"),children:[(0,n.jsxs)("div",{className:"dsham_settingsToolbar",children:[(0,n.jsxs)("div",{className:"dsham_settingsSearch",children:[typeof U=="function"&&(0,n.jsx)(Hn,{id:"dsham-favorite-filter",className:"dsham_favoriteFilter",value:Yt?"favorites":"all",disabled:q||$t||!lt,options:[{value:"all",label:u("organizer.allSessions")},{value:"favorites",label:u("organizer.favoritesOnly")}],onChange:t(m=>zn(m==="favorites"),"onChange"),"aria-label":u("organizer.favoriteFilter")}),i.createElement(Hn,{id:"dsham-search-scope",className:"dsham_scopeFilter",value:At,"aria-label":u("discovery.scope"),disabled:q||ke.size>0,onChange:vt,options:[{value:"title",label:u("discovery.titleOnly")},{value:"content",label:u("discovery.titleAndContent")}]}),(0,n.jsx)(c.Input,{className:"dsham_searchField",type:"search",maxLength:200,value:We,onChange:t(m=>Ze(m.target.value),"onChange"),placeholder:u(qt?"discovery.searchPlaceholder":$?"archives.searchPlaceholder":"archives.searchUnarchived"),"aria-label":u(qt?"discovery.searchPlaceholder":$?"archives.searchPlaceholder":"archives.searchUnarchived")})]}),(0,n.jsxs)("div",{className:"dsham_settingsFilters",children:[(0,n.jsx)(Hn,{id:"dsham-project-filter",className:"dsham_projectFilter",value:Ce,options:[{value:"all",label:u("archives.allProjects"),title:u("archives.allProjects")},...rn.map(m=>({value:m.key,label:m.title,title:m.title}))],onChange:Je,"aria-label":u("archives.projectFilter")}),i.createElement(ne,{t:u,from:Zt,to:Jt,onFrom:fn,onTo:vn,invalid:Nt,onClear:t(()=>{fn(""),vn("")},"onClear")}),(0,n.jsxs)("div",{className:"dsham_settingsSort",children:[(0,n.jsx)("span",{className:"dsham_settingsSortLabel","aria-hidden":!0,children:u("archives.sortLabel")}),(0,n.jsx)(Hn,{id:"dsham-sort-filter",className:"dsham_sortFilter",value:k,options:[{value:"updated",label:u("archives.sortUpdated")},{value:"created",label:u("archives.sortCreated")},{value:"alphabetical",label:u("archives.sortAlphabetical")},...typeof oe=="function"?[{value:"turnsDesc",label:u("details.more")},{value:"turnsAsc",label:u("details.less")}]:[]],onChange:te,"aria-label":u("archives.sortBy")})]})]})]}),i.createElement("style",null,_r),i.createElement(Q,{state:St,t:u}),i.createElement(be,{key:he,t:u,isArchived:$,items:ut.items,sessions:dt.flatMap(m=>m.sessions),diagnoseSession:me,repairSession:je,retry:ut.retry,pending:ut.pending}),ue&&(0,n.jsx)(R,{t:u,archived:$,busy:q||$t||ke.size>0,ready:lt,days:Qt,onDays:Bn,count:kn.length,onPreview:t(()=>{X(kn),jt(!0)},"onPreview"),progress:nt,result:wn?.tab===he?wn:null,onRetry:t(()=>{let m=gt.current;m&&(m.kind==="delete"?Ae({kind:"batch",target:{scope:"sessions",sessionIds:m.ids},count:m.ids.length}):Gt(m.kind,m.ids,{idle:m.idle,retry:!0}))},"onRetry"),undoCount:Vt,onUndo:t(()=>Gt("undo",en,{retry:!0}),"onUndo"),onReload:Fn}),dt.length>0&&(0,n.jsx)(Xs,{selectedCount:Ee.length,hiddenCount:Ee.length-Mt,allVisibleSelected:ln,selectedVisibleCount:Mt,visibleCount:pt.length,busy:q,t:u,onToggle:Gn,onClear:t(()=>_e([]),"onClear"),onArchive:$?void 0:()=>X([...Ee]),onRestore:is,onDelete:t(()=>Ae({kind:"batch",target:{scope:"sessions",sessionIds:Ee},count:Ee.length}),"onDelete")}),dt.length===0?(0,n.jsx)("div",{className:"dsham_settingsEmpty",children:u($?"archives.empty":"archives.emptyUnarchived")}):Ut.length===0?(0,n.jsx)("div",{className:"dsham_settingsEmpty",children:St.status==="loading"||St.status==="error"||St.failures.length?null:u("archives.emptyFiltered")}):Ut.map(m=>{let j=Na(m.key),W=dt.find(D=>D.key===m.key)?.sessions.map(D=>D.id)??[],de=$?mn(re.archivedSessionIds,re.items,j).length:W.length;return(0,n.jsxs)("section",{className:"dsham_settingsGroup",children:[(0,n.jsxs)("div",{className:"dsham_settingsGroupHeading",children:[(0,n.jsx)("h3",{className:"dsham_settingsGroupTitle",children:(0,n.jsxs)("button",{type:"button",className:"dsham_groupToggle","aria-expanded":!Et.has(m.key),"aria-controls":"dsham-group-"+encodeURIComponent(m.key),onClick:t(()=>yn(D=>{let Re=new Set(D);return Re.has(m.key)?Re.delete(m.key):Re.add(m.key),Re}),"onClick"),children:[(0,n.jsx)(Et.has(m.key)?c.IconChevronRightOutlineMedium:c.IconChevronDownOutlineMedium,{}),(0,n.jsx)(c.IconFolderOpenOutlineMedium,{}),(0,n.jsx)("span",{children:m.title})]})}),(0,n.jsxs)("div",{className:"dsham_settingsGroupMeta",children:[(0,n.jsx)("span",{className:"dsham_settingsCount",children:u("archives.sessionCount",{n:m.sessions.length})}),(0,n.jsx)(Ta,{group:m,busy:q,onArchive:$?void 0:()=>X(W,m),onRestore:t(()=>_n(j),"onRestore"),onDelete:t(()=>Ae({kind:"batch",target:j,title:m.title,count:de}),"onDelete"),t:u})]})]}),(0,n.jsx)("div",{className:"dsham_settingsList",id:"dsham-group-"+encodeURIComponent(m.key),hidden:Et.has(m.key)||void 0,children:!Et.has(m.key)&&m.sessions.map(D=>(0,n.jsxs)("div",{className:"dsham_settingsRow","data-selected":kt.has(D.id),children:[(0,n.jsx)(Ks,{checked:kt.has(D.id),disabled:q,label:u("archives.selectSession",{name:qe(D,u)}),onChange:t(Re=>Ln(D.id,Re.target.checked),"onChange")}),(0,n.jsxs)("div",{className:"dsham_settingsContent",children:[(0,n.jsx)("button",{type:"button",className:"dsham_settingsTitleLink",title:qe(D,u),"aria-label":u("archives.openSession")+u("common.separator")+qe(D,u),disabled:q||ke.has(D.id),onClick:t(()=>it(D),"onClick"),children:qe(D,u)}),(0,n.jsx)("div",{className:"dsham_settingsMeta",children:[ia(D.updatedAt,u),typeof oe=="function"&&i.createElement("span",{key:"turns",title:ut.byId[D.id]?.error||u("details.hint")}," \xB7 ",u(typeof ut.byId[D.id]?.turnCount=="number"?"details.turns":ut.byId[D.id]?"details.unknown":"details.pending",{n:ut.byId[D.id]?.turnCount}))]}),on.has(D.id)&&i.createElement("button",{type:"button",className:"dsham_settingsSnippet",disabled:q,title:u($?"discovery.preview":"archives.openSession"),onClick:t(()=>$?Qe.open(D,We):it(D),"onClick")},i.createElement(M,{text:on.get(D.id)?.snippet??"",query:We}))]}),(0,n.jsxs)("div",{className:"dsham_settingsActions",children:[typeof U=="function"&&B({variant:"outline",className:"dsham_iconAction"+(ct.has(D.id)?" dsham_favoriteOn":""),title:u(ct.has(D.id)?"organizer.unfavorite":"organizer.favorite"),"aria-pressed":ct.has(D.id),"aria-label":u(ct.has(D.id)?"organizer.unfavorite":"organizer.favorite")+u("common.separator")+qe(D,u),disabled:q||$t||!lt,onClick:t(()=>tn(D.id),"onClick"),children:(0,n.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,fill:ct.has(D.id)?"currentColor":"none",stroke:"currentColor",strokeWidth:1.4,strokeLinejoin:"round","aria-hidden":!0,style:{display:"block"},children:(0,n.jsx)("path",{d:"M8 1.75l1.934 3.918 4.324.628-3.129 3.05.738 4.306L8 11.618l-3.867 2.034.738-4.306-3.129-3.05 4.324-.628L8 1.75z"})})}),B({variant:"outline",className:"dsham_iconAction",title:u($?"archives.restore":"archives.archiveSelected"),"aria-label":u($?"archives.restore":"archives.archiveSelected"),disabled:q||ke.has(D.id),onClick:t(()=>$?Wt(D.id):xn([D.id]),"onClick"),icon:(0,n.jsx)($?c.IconRefreshOutlineMedium:c.IconArchiveOutlineMedium,{size:16})}),($||typeof oe=="function")&&(0,n.jsx)(Da,{busy:q||ke.has(D.id),t:u,title:qe(D,u),onCopyId:t(()=>xt(D,"id"),"onCopyId"),onCopyPath:typeof oe=="function"?()=>xt(D,"path"):void 0,onPreview:$&&typeof le=="function"?()=>Qe.open(D,We):void 0,onRestoreOpen:$?()=>it(D,!0):void 0,onDelete:$?()=>Ae({kind:"session",session:D}):void 0})]})]},D.id))})]},m.key)}),i.createElement(O,{width:900,open:Qe.target!==null,onClose:Qe.close,title:Qe.target?qe(Qe.target.session,u):u("discovery.preview"),footer:I({variant:"primary",disabled:q,onClick:t(()=>{if(Qe.target){let m=Qe.target.session;return Qe.close(),it(m)}},"onClick"),children:u("discovery.openFull")}),children:i.createElement(Be,{preview:Qe,t:u,MarkdownText:c.MarkdownText})}),ge===null&&N!==null&&(0,n.jsx)("div",{className:"dsham_settingsError",role:"alert",children:N}),Ne!==null&&(0,n.jsx)("div",{className:"dsham_settingsStatus",role:"status",children:Ne}),(0,n.jsx)(O,{open:ge!==null,onClose:ze,title:u("archives.archiveTitle",{n:ge?.length??0}),description:Ue===null?u("archives.archiveSelectedDesc"):u(Ue.key===Pn?"archives.archiveUngroupedDesc":"archives.archiveProjectDesc",{name:Ue.title,n:ge?.length??0}),footer:(0,n.jsxs)(n.Fragment,{children:[I({disabled:q,onClick:ze,children:u("cancel")}),I({variant:"primary",disabled:q||!ge?.length,onClick:as,children:u("archives.archiveSelected")})]}),children:(0,n.jsxs)(n.Fragment,{children:[ue&&(0,n.jsx)("p",{children:u(zt?"organizer.idleConfirm":"organizer.manualConfirm")}),ue&&(0,n.jsx)("div",{className:"dsham_archivePreview",children:(ge??[]).map(m=>(0,n.jsxs)("label",{children:[(0,n.jsx)(os,{checked:!0,disabled:q,label:qe(C.byId[m]??{id:m},u),onChange:t(()=>ye(j=>(j??[]).filter(W=>W!==m)),"onChange")}),qe(C.byId[m]??{id:m},u)]},m))}),nt&&(0,n.jsxs)("div",{role:"status",children:[(0,n.jsx)("progress",{value:nt.done,max:Math.max(1,nt.total)}),u("organizer.progressCount",{done:nt.done,total:nt.total})]}),N!==null&&(0,n.jsx)("div",{className:"dsham_settingsError",role:"alert",children:N})]})}),(0,n.jsx)(O,{open:ce!==null,onClose:t(()=>{q||(ee(null),E(null))},"onClose"),title:u("archiveActive.title"),...ce===null?{}:{description:u("archiveActive.desc",{name:ce.title,kinds:ce.kinds})},footer:(0,n.jsxs)(n.Fragment,{children:[I({disabled:q,onClick:t(()=>{q||(ee(null),E(null))},"onClick"),children:u("cancel")}),I({danger:!0,disabled:q,onClick:t(async()=>{if(!(ve.current||q||ce===null||typeof s!="function")){ve.current=!0,g(!0),E(null);try{await s(ce.sessionId,{stopActivity:!0}),_e(m=>m.filter(j=>ce===null||j!==ce.sessionId)),Ie("archived"),ae(u("archives.archiveSuccess",{n:1})),ee(null)}catch(m){E(m instanceof Error?m.message:String(m))}finally{ve.current=!1,g(!1)}}},"onClick"),children:u("archiveActive.confirm")})]}),children:N!==null&&(0,n.jsx)("div",{className:"dsham_settingsError",role:"alert",children:N})}),(0,n.jsx)(O,{open:J!==null,onClose:v,title:qn,...or===void 0?{}:{description:or},footer:(0,n.jsxs)(n.Fragment,{children:[I({disabled:q,onClick:v,children:u("cancel")}),I({danger:!0,disabled:q,onClick:pe,children:Ba})]}),children:(0,n.jsxs)(n.Fragment,{children:[q&&(0,n.jsxs)("div",{role:"status",children:[J?.kind==="batch"?u("archives.deleteBatchPending"):u("deleteSession.pending"),nt&&(0,n.jsx)("progress",{value:nt.done,max:Math.max(1,nt.total),"aria-label":u("organizer.progress")}),nt&&u("organizer.progressCount",{done:nt.done,total:nt.total})]}),N!==null&&(0,n.jsx)("div",{className:"dsham_settingsError",role:"alert",children:N})]})})]})]})}t(ws,"ArchivedSessionsSection");function bs(e){var s,a,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var h=e.length;for(s=0;s<h;s++)e[s]&&(a=bs(e[s]))&&(l&&(l+=" "),l+=a)}else for(a in e)e[a]&&(l&&(l+=" "),l+=a);return l}t(bs,"r");function Le(...e){for(var s,a,l=0,h="",p=arguments.length;l<p;l++)(s=arguments[l])&&(a=bs(s))&&(h&&(h+=" "),h+=a);return h}t(Le,"clsx");let Wn="Ungrouped";function Qr(e,s=Wn){if(e===void 0||e==="")return s;let a=e.replace(/[/\\]+$/,"").split(/[/\\]/).pop();return a!==void 0&&a!==""?a:e}t(Qr,"workspaceLabel");function hn(e,s){return s.updatedAt!==e.updatedAt?s.updatedAt-e.updatedAt:e.id<s.id?-1:1}t(hn,"byRecency");function Kt(e,s,a,l){return e.origin!=="subagent"&&(!a.has(e.id)||l===!0)&&(!e.blank||e.id===s)}t(Kt,"sessionVisible");function jn(e){let s=e instanceof Error?e.message:String(e);return s.includes("UNKNOWN_SESSION")||s.includes("no such session")}t(jn,"isUnknownSessionError");function Dn(e,s){if(jn(e))return s("deleteSession.unknown");let a=e instanceof Error?e.message:String(e);return s("deleteSession.failed",{detail:a})}t(Dn,"formatDeleteError");function xs(e,s){if(jn(e))return s("archives.unarchiveUnknown");let a=e instanceof Error?e.message:String(e);return s("archives.unarchiveFailed",{detail:a})}t(xs,"formatUnarchiveError");function Xn(e,s){if(jn(e))return s("archives.archiveUnknown");let a=e instanceof Error?e.message:String(e);return s("archives.archiveFailed",{detail:a})}t(Xn,"formatArchiveError");function pn(e){if(e===null||typeof e!="object")return;let s=we(e),a=s.rpcError!==null&&typeof s.rpcError=="object"?we(s.rpcError):void 0,l=s.name==="WorkspaceActiveSessionError"?s.activity:void 0,h=a?.details,p=s.name==="WorkspaceArchiveError"&&a?.code==="workspace/session-active"&&h!==null&&typeof h=="object"?we(h).activity:void 0,f=Array.isArray(l)?l:Array.isArray(p)?p:void 0;if(f===void 0)return;let w=f.flatMap(_=>{if(_===null||typeof _!="object")return[];let A=we(_).kind;return typeof A=="string"&&A.length>0?[A]:[]});return w.length>0?w:void 0}t(pn,"activeSessionActivity");function Ss(e){let s=pn(e);if(s===void 0||e===null||typeof e!="object")return;let a=we(e),l=a.rpcError!==null&&typeof a.rpcError=="object"?we(a.rpcError).details:void 0,h=l!==null&&typeof l=="object"?we(l).sessionId:void 0,p=typeof a.sessionId=="string"?a.sessionId:typeof h=="string"?h:void 0;return p===void 0?void 0:{sessionId:p,kinds:s}}t(Ss,"activeSessionRefusal");function ks(e,s){let a=/^cannot archive session '(?:[^'\\]|\\')*': the session is active \((.*)\)$/.exec(s);if(a===null)return;let l=a[1].split(", ").filter(h=>h.length>0);return l.length>0?{sessionId:e,kinds:l}:void 0}t(ks,"activeArchiveFromMessage");function ea(e,s){let a=e instanceof Error?e.message:String(e);return s("archives.forkFailed",{detail:a})}t(ea,"formatForkError");function Kn(e){return e.blank?"New Session":e.displayTitle}t(Kn,"sessionTitle");function _s(e,s,a,l,h,p,f){let w=[...p];return f==="recency"&&w.sort(hn),{key:e,workspaceId:s,cwd:a,createdAt:l,label:h,sessions:w}}t(_s,"buildGroup");function ta(e,s){let a=new Map(e.map(p=>[p.id,p])),l=new Set,h=[];for(let p of s){let f=a.get(p);f===void 0||l.has(p)||(h.push(f),l.add(p))}for(let p of[...e].sort(hn))l.has(p.id)||h.push(p);return h}t(ta,"orderedUngrouped");function Rs(e,s,a,l,h){let p=[],f=new Set;for(let _ of s){let A=[];for(let S of _.sessionIds){let x=e.byId[S];x!==void 0&&(f.add(S),Kt(x,ot(e),a,h)&&A.push(x))}p.push(_s(_.workspaceId,_.workspaceId,_.path,Date.parse(_.createdAt),_.title,A,"account"))}let w=e.ids.map(_=>e.byId[_]).filter(_=>_!==void 0&&!f.has(_.id)&&Kt(_,ot(e),a,h));return w.length>0&&p.push(_s("",void 0,void 0,void 0,Wn,l===void 0?w:ta(w,l),l===void 0?"recency":"account")),p}t(Rs,"groupByWorkspace");function $n(e,s){let a=s instanceof Set?s:new Set(s);return[...new Set(e.sessionIds)].filter(l=>!a.has(l)).length}t($n,"archiveableWorkspaceSessionCount");function Cs(e,s,a,l){let h=e.find(f=>f.workspaceId===s);if(h===void 0)return null;let p=$n(h,l);return p===0?null:{workspaceId:s,title:a,count:p}}t(Cs,"archiveWorkspaceDialogTarget");function Is(e,s,a){return{target:e,archiving:!1,error:Xn(s,a)}}t(Is,"archiveWorkspaceDialogFailureState");function na(e){switch(e){case"approval":case"plan-review":case"question":return e;default:return}}t(na,"visiblePendingKind");function As(e,s){let a=s.get(e.id),l=a===void 0?e.pendingInteraction:a.kind;return na(l)}t(As,"pendingInteractionForSession");let Yn=new Map,Zn=new Set,sa=new Map;function Es(e){return e(Yn)}t(Es,"useEmptySessionPendingInteraction");function js(e){return e(sa)}t(js,"useEmptySessionStatus");function Ds(e){return e instanceof Map||e==null?{pending:e??Yn,completed:Zn}:{pending:e.pending??Yn,completed:e.completed??Zn}}t(Ds,"pendingFacts");function ra(e){let s=new Map,a=new Set;if(e instanceof Map)for(let[l,h]of e)h?.pendingInteraction!==void 0&&s.set(l,h.pendingInteraction),h?.completionUnread===!0&&a.add(l);return{pending:s,completed:a}}t(ra,"factsFromSessionStatus");function Tn(e,s,a){let l=e(p=>p),h=s(p=>p);return a?ra(h):{pending:l,completed:Zn}}t(Tn,"useSessionUiFacts");function Ts(e,s,a,l){let h=Ds(l),p=As(e,h.pending);return{id:e.id,title:Kn(e),blank:e.blank,running:e.running,runningSubagentCount:s.get(e.id)?.runningCount??0,completed:e.completed===!0||h.completed.has(e.id),updatedAt:e.updatedAt,archived:a.has(e.id),...p===void 0?{}:{pendingInteraction:p}}}t(Ts,"sessionNode");function Ns(e,s,a,l,h){let p=new Set(a),f=new Set(h.expandedGroups),w=An(e.byId),_=ot(e),A=_===void 0?void 0:s.find(x=>x.sessionIds.includes(_))?.workspaceId??"",S=[];for(let x of Rs(e,s,p,h.ungroupedOrder,h.showArchived)){let b=f.has(x.key);S.push({key:x.key,workspaceId:x.workspaceId,cwd:x.cwd,createdAt:x.createdAt,label:x.label,sessionCount:x.sessions.length,expanded:b,containsCurrent:x.key===A,sessions:b?x.sessions.map(u=>Ts(u,w,p,l)):[]})}return S}t(Ns,"deriveGroups");function Ms(e,s,a,l){let h=new Set(s),p=An(e.byId),f=[];for(let w of e.ids){let _=e.byId[w];_===void 0||!Kt(_,ot(e),h,l)||f.push(_)}return f.sort(hn),f.map(w=>Ts(w,p,h,a))}t(Ms,"deriveFlat");function Os(e,s,a,l,h,p,f,w,_=Wn){let A=a.trim().toLowerCase();if(A==="")return{items:[],hasMore:!1};let S=new Set(l),x=An(e.byId),b=new Map;for(let P of s)for(let U of P.sessionIds)b.has(U)||b.set(U,P.title);let u=t(P=>b.get(P.id)??Qr(P.cwd,_),"labelOf"),me=new Map;for(let P of p.items)me.has(P.sessionId)||me.set(P.sessionId,P);let je=[];for(let P of e.ids){let U=e.byId[P];U===void 0||U.blank||!Kt(U,ot(e),S,w)||(Kn(U).toLowerCase().includes(A)||u(U).toLowerCase().includes(A))&&je.push(U)}je.sort(hn);let oe=[],He=new Set,Pe=t(P=>{He.has(P.id)||(He.add(P.id),oe.push(P))},"include");for(let P of je)Pe(P);for(let P of p.items){let U=e.byId[P.sessionId];U!==void 0&&!U.blank&&Kt(U,ot(e),S,w)&&Pe(U)}let le=Ds(h);return{items:oe.slice(0,f).map(P=>{let U=me.get(P.id),ue=As(P,le.pending);return{id:P.id,title:Kn(P),workspace:u(P),running:P.running,runningSubagentCount:x.get(P.id)?.runningCount??0,archived:S.has(P.id),...ue===void 0?{}:{pendingInteraction:ue},completed:P.completed===!0||le.completed.has(P.id),...U===void 0?{}:{snippet:U.snippet}}}),hasMore:p.hasMore||oe.length>f}}t(Os,"deriveSearchResults");function Hs(e,s){let p=Math.max(0,s-e);return p<6e4?{unit:"now",n:0}:p<36e5?{unit:"minutes",n:Math.floor(p/6e4)}:p<864e5?{unit:"hours",n:Math.floor(p/36e5)}:p<30*864e5?{unit:"days",n:Math.floor(p/864e5)}:p<365*864e5?{unit:"months",n:Math.floor(p/(30*864e5))}:{unit:"years",n:Math.floor(p/(365*864e5))}}t(Hs,"relativeTime");let aa='.dshamRow_projectRow,.dshamRow_sessionRow{cursor:pointer;user-select:none;color:var(--dsw-alias-label-primary);border-radius:8px;align-items:center;gap:6px;padding:0 8px;display:flex}.dshamRow_projectRow:hover,.dshamRow_sessionRow:hover,.dshamRow_sessionRow.dshamRow_selected{background:var(--dsw-alias-interactive-bg-hover)}.dshamRow_searchResultRow{box-sizing:border-box;cursor:pointer;text-align:left;width:100%;min-height:48px;color:var(--dsw-alias-label-primary);background:0 0;border:none;border-radius:8px;flex-direction:column;align-items:stretch;padding:4px 8px;display:flex}.dshamRow_searchResultRow:hover,.dshamRow_searchResultRow.dshamRow_selected{background:var(--dsw-alias-interactive-bg-hover)}.dshamRow_searchResultHeading{align-items:center;min-width:0;display:flex}.dshamRow_searchResultTitle{text-overflow:ellipsis;white-space:nowrap;min-width:0;margin-left:4px;font-size:14px;line-height:20px;overflow:hidden}.dshamRow_searchResultMeta{align-items:center;gap:6px;min-width:0;margin-left:20px;display:flex}.dshamRow_searchResultWorkspace,.dshamRow_searchResultSnippet{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.dshamRow_searchResultWorkspace{max-width:40%;color:var(--dsw-alias-label-tertiary);flex:none}.dshamRow_searchResultSnippet{min-width:0;color:var(--dsw-alias-label-secondary);flex:1}.dshamRow_projectRow{box-sizing:border-box;align-items:center;height:34px}.dshamRow_projectRow .dshamRow_rowActions{height:20px}.dshamRow_sessionRow{height:32px;animation:dshamRow_row-in .15s var(--ds-ease-in-out);gap:0}.dshamRow_sessionRow .dshamRow_title{margin:0 6px 0 4px}.dshamRow_flatSessionRowWithoutStatus .dshamRow_title{margin-left:0}@keyframes dshamRow_row-in{0%{opacity:0}}.dshamRow_slot{width:16px;height:20px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;display:inline-flex}.dshamRow_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.dshamRow_folderActive{color:var(--dsw-alias-state-business-primary)}.dshamRow_projectRow .dshamRow_chevron{display:none}.dshamRow_projectRow:hover .dshamRow_chevron{display:inline-flex}.dshamRow_projectRow:hover .dshamRow_folder{display:none}.dshamRow_arrow{transition:transform .15s var(--ds-ease-in-out)}.dshamRow_arrowOpen{transform:rotate(90deg)}.dshamRow_projectText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.dshamRow_title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.dshamRow_renameInput{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-button-elevated-fill);min-width:0;color:inherit;border-radius:4px;outline:none;padding:0 2px;font-size:14px;line-height:20px}.dshamRow_sessionRow .dshamRow_title{flex:1}.dshamRow_meta{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow:hidden}.dshamRow_time{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px;line-height:20px}.dshamRow_dot{flex:none}.dshamRow_rowActions{flex:none;align-items:center;gap:12px;display:none}.dshamRow_projectRow:hover .dshamRow_rowActions,.dshamRow_sessionRow:hover .dshamRow_rowActions,.dshamRow_projectRow.dshamRow_menuOpen .dshamRow_rowActions,.dshamRow_sessionRow.dshamRow_menuOpen .dshamRow_rowActions{display:inline-flex}.dshamRow_sessionRow:hover .dshamRow_time,.dshamRow_sessionRow.dshamRow_menuOpen .dshamRow_time{display:none}.dshamRow_projectRow.dshamRow_menuOpen,.dshamRow_sessionRow.dshamRow_menuOpen{background:var(--dsw-alias-interactive-bg-hover)}.dshamRow_sessionRow.dshamRow_dropBefore,.dshamRow_sessionRow.dshamRow_dropAfter{position:relative}.dshamRow_sessionRow.dshamRow_dropBefore:before,.dshamRow_sessionRow.dshamRow_dropAfter:after{content:"";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:4px}.dshamRow_sessionRow.dshamRow_dropBefore:before{top:-7px}.dshamRow_sessionRow.dshamRow_dropAfter:after{bottom:-7px}.dshamRow_hoverContent{flex-direction:column;gap:8px;display:flex}.dshamRow_hoverTitle{color:#fff;overflow-wrap:break-word;font-size:14px;line-height:20px}.dshamRow_hoverPath{color:#cfd3d6;word-break:break-all;font-size:12px;line-height:16px}.dshamRow_hoverTime{color:#cfd3d6;font-size:12px;line-height:16px}.dshamRow_hoverStatus{color:#adb2b8;align-items:center;gap:8px;font-size:12px;line-height:20px;display:flex}.dshamRow_iconButton{cursor:pointer;width:16px;height:16px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.dshamRow_iconButton:hover{color:var(--dsw-alias-label-primary)}.dshamRow_chevron{color:var(--dsw-alias-label-caption)}@media (prefers-reduced-motion:reduce){.dshamRow_sessionRow,.dshamRow_arrow{transition:none;animation:none}}';var K={hoverTitle:"dshamRow_hoverTitle",title:"dshamRow_title",hoverContent:"dshamRow_hoverContent",dropAfter:"dshamRow_dropAfter",renameInput:"dshamRow_renameInput",dot:"dshamRow_dot",hoverTime:"dshamRow_hoverTime",iconButton:"dshamRow_iconButton",flatSessionRowWithoutStatus:"dshamRow_flatSessionRowWithoutStatus","row-in":"dshamRow_row-in",folder:"dshamRow_folder",menuOpen:"dshamRow_menuOpen",selected:"dshamRow_selected",searchResultHeading:"dshamRow_searchResultHeading",searchResultWorkspace:"dshamRow_searchResultWorkspace",visuallyHidden:"dshamRow_visuallyHidden",projectRow:"dshamRow_projectRow",hoverStatus:"dshamRow_hoverStatus",arrowOpen:"dshamRow_arrowOpen",rowActions:"dshamRow_rowActions",chevron:"dshamRow_chevron",arrow:"dshamRow_arrow",searchResultTitle:"dshamRow_searchResultTitle",searchResultMeta:"dshamRow_searchResultMeta",slot:"dshamRow_slot",folderActive:"dshamRow_folderActive",time:"dshamRow_time",sessionRow:"dshamRow_sessionRow",meta:"dshamRow_meta",dropBefore:"dshamRow_dropBefore",searchResultSnippet:"dshamRow_searchResultSnippet",projectText:"dshamRow_projectText",hoverPath:"dshamRow_hoverPath",searchResultRow:"dshamRow_searchResultRow"};function qe(e,s){return e.blank?s("session.new"):e.title??e.displayTitle??""}t(qe,"displayTitle");function Ps(e,s,a){let{unit:l,n:h}=Hs(e,s);return l==="now"?a("time.now"):a(`time.${l}`,{n:h})}t(Ps,"timeLabel");function ia(e,s){let a=new Date(e),l=`${String(a.getHours()).padStart(2,"0")}:${String(a.getMinutes()).padStart(2,"0")}`;return s("archives.timestamp",{date:s("date.ymd",{y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate()}),time:l})}t(ia,"archiveTimeLabel");function oa(e,s,a){let{unit:l,n:h}=Hs(e,s);return l==="now"?a("time.now"):a("time.ago",{t:a(`time.${l}`,{n:h})})}t(oa,"hoverTimeLabel");function la(e,s){let a=new Date(e??NaN),l=t(h=>String(h).padStart(2,"0"),"pad2");return s("hover.created",{time:`${s("date.ymd",{y:a.getFullYear(),m:a.getMonth()+1,d:a.getDate()})} ${l(a.getHours())}:${l(a.getMinutes())}`})}t(la,"createdLabel");function ca({label:e,cwd:s,createdAt:a,t:l}){return(0,n.jsxs)("div",{className:K.hoverContent,children:[(0,n.jsx)("div",{className:K.hoverTitle,children:e}),(0,n.jsx)("div",{className:K.hoverPath,children:s}),(0,n.jsx)("div",{className:K.hoverTime,children:la(a,l)})]})}t(ca,"WorkspaceHoverContent");function zs(e){let s=e.currentTarget.getBoundingClientRect();return e.clientY<s.top+s.height/2?"before":"after"}t(zs,"rowHalf");function da({group:e,onToggle:s,onCreate:a,actions:l,drag:h,t:p}){let f=e,w=f.workspaceId===void 0?p("group.ungrouped"):f.label,_=e.expanded&&e.containsCurrent,[A,S]=(0,i.useState)(!1),x=[{id:"rename",label:p("rename"),icon:(0,n.jsx)(c.IconEditOutlineMedium,{})},...l?.canArchive===!0?[{id:"archive-workspace",label:p("menu.archiveWorkspace"),icon:(0,n.jsx)(c.IconArchiveOutlineMedium,{size:16})}]:[],{id:"delete",label:p("delete.workspace"),icon:(0,n.jsx)(c.IconTrashOutlineMedium,{}),danger:!0}],b=(0,n.jsxs)("div",{className:Le(K.projectRow,A&&K.menuOpen),role:"treeitem","aria-expanded":f.expanded,onClick:s,draggable:h!==void 0,onDragStart:h===void 0?void 0:u=>{u.dataTransfer.effectAllowed="move",u.dataTransfer.setData("text/plain",f.key),h.start()},onDragEnd:h?.end,children:[(0,n.jsx)("span",{className:Le(K.slot,K.folder,_&&K.folderActive),children:f.expanded?(0,n.jsx)(c.IconFolderOpenMedium,{}):(0,n.jsx)(c.IconFolderCloseMedium,{})}),(0,n.jsx)("span",{className:Le(K.slot,K.chevron),children:(0,n.jsx)(c.IconTriangleRightFillMedium,{className:Le(K.arrow,f.expanded&&K.arrowOpen)})}),(0,n.jsx)("span",{className:K.projectText,children:(0,n.jsx)("span",{className:K.title,children:w})}),(0,n.jsxs)("span",{className:K.rowActions,children:[l!==void 0&&(0,n.jsx)(c.Menu,{open:A,onClose:t(()=>{S(!1)},"onClose"),items:x,onSelect:t(u=>{S(!1),!(u!=="rename"&&u!=="archive-workspace"&&u!=="delete")&&(u==="rename"?l.rename():u==="archive-workspace"?l.archive():l.delete())},"onSelect"),portal:!0,closeOnPointerLeave:!0,anchor:(0,n.jsx)("button",{type:"button",className:K.iconButton,"aria-label":p("actions.workspace.aria",{name:w}),onClick:t(u=>{u.stopPropagation(),S(me=>!me)},"onClick"),children:(0,n.jsx)(c.IconEllipsisOutlineMedium,{})})}),(0,n.jsx)("button",{type:"button",className:K.iconButton,"aria-label":p("actions.newSession.aria",{name:w}),onClick:t(u=>{u.stopPropagation(),a()},"onClick"),children:(0,n.jsx)(c.IconPlusOutlineMedium,{})})]})]});return f.createdAt===void 0?b:(0,n.jsx)(c.HoverCard,{anchor:b,content:(0,n.jsx)(ca,{label:f.label,cwd:f.cwd,createdAt:f.createdAt,t:p}),disabled:A,copyText:f.cwd,copyLabel:p("copy"),copiedLabel:p("hover.copied")})}t(da,"ProjectRowItem");function ua(e){throw new Error(`unknown pending interaction: ${String(e)}`)}t(ua,"assertNever");function Jn(e,s){let a=e.runningSubagentCount===0?void 0:{state:"ongoing",label:s(e.runningSubagentCount===1?"status.subagentsRunning.one":"status.subagentsRunning.other",{n:e.runningSubagentCount})},l;switch(e.pendingInteraction){case"approval":l={state:"warning",label:s("status.waitingApproval")};break;case"plan-review":l={state:"warning",label:s("status.planReview")};break;case"question":l={state:"warning",label:s("status.waitingAnswer")};break;case void 0:break;default:return ua(e.pendingInteraction)}if(l!==void 0)return a===void 0?[l]:[l,a];if(e.running){let h={state:"ongoing",label:s("status.running")};return a===void 0?[h]:[h,a]}return a!==void 0?[a]:e.completed?[{state:"done",label:s("status.completed")}]:[{state:"done",label:s("status.idle")}]}t(Jn,"sessionStatuses");function Bs({statuses:e}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.StateDot,{state:e[0].state}),e.map(s=>(0,n.jsx)("span",{className:K.visuallyHidden,children:s.label},s.label))]})}t(Bs,"SessionStatusDots");function ha({node:e,now:s,t:a}){let l=Jn(e,a);return(0,n.jsxs)("div",{className:K.hoverContent,children:[(0,n.jsx)("div",{className:K.hoverTitle,children:qe(e,a)}),!e.blank&&(0,n.jsx)("div",{className:K.hoverTime,children:oa(e.updatedAt,s,a)}),l.map(h=>(0,n.jsxs)("div",{className:K.hoverStatus,children:[(0,n.jsx)(c.StateDot,{state:h.state}),(0,n.jsx)("span",{children:h.label})]},h.label))]})}t(ha,"SessionHoverContent");function pa({result:e,currentId:s,onOpen:a,t:l}){let h=e.id===s,p=Jn(e,l),f=p[0];return(0,n.jsxs)("button",{type:"button",className:Le(K.searchResultRow,h&&K.selected,e.archived===!0&&Ye.row),role:"treeitem","aria-selected":h,onClick:t(()=>{a(e.id)},"onClick"),children:[(0,n.jsxs)("span",{className:K.searchResultHeading,children:[(0,n.jsx)("span",{className:K.slot,children:(f.state!=="done"||e.completed)&&(0,n.jsx)(Bs,{statuses:p})}),e.archived===!0&&(0,n.jsx)("span",{className:Ye.badge,children:l("archived.badge")}),(0,n.jsx)("span",{className:Le(K.searchResultTitle,e.archived===!0&&Ye.title),children:e.title})]}),(0,n.jsxs)("span",{className:K.searchResultMeta,children:[(0,n.jsx)("span",{className:K.searchResultWorkspace,children:e.workspace}),e.snippet!==void 0&&(0,n.jsx)("span",{className:K.searchResultSnippet,children:e.snippet})]})]})}t(pa,"SearchResultItem");function Fs({node:e,currentId:s,now:a,onOpen:l,onRename:h,onFork:p,onArchive:f,onUnarchive:w,onDeleteSession:_,onReveal:A,drag:S,flat:x=!1,t:b}){let u=e,me=qe(e,b),je=e.id===s,oe=u.archived===!0,He=Jn(e,b),Pe=He[0].state!=="done"||u.completed,[le,P]=(0,i.useState)(!1),U=(0,i.useRef)(null);(0,i.useEffect)(()=>{A!==void 0&&(U.current?.scrollIntoView({block:"nearest"}),A())},[A]);let ue=oe?[{id:"unarchive",label:b("menu.unarchive"),icon:(0,n.jsx)(c.IconArchiveOutlineMedium,{size:16})},{id:"delete-session",label:b("menu.deleteSession"),icon:(0,n.jsx)(c.IconTrashOutlineMedium,{}),danger:!0}]:[{id:"rename",label:b("rename"),icon:(0,n.jsx)(c.IconEditOutlineMedium,{})},{id:"fork",label:b("menu.fork"),icon:(0,n.jsx)(c.IconBranchOutlineMedium,{})},{id:"archive",label:b("menu.archiveSession"),icon:(0,n.jsx)(c.IconArchiveOutlineMedium,{size:16})},{id:"delete-session",label:b("menu.deleteSession"),icon:(0,n.jsx)(c.IconTrashOutlineMedium,{}),danger:!0}];return(0,n.jsx)(c.HoverCard,{anchor:(0,n.jsxs)("div",{ref:U,className:Le(K.sessionRow,je&&K.selected,le&&K.menuOpen,x&&!Pe&&K.flatSessionRowWithoutStatus,oe&&Ye.row,S?.marker==="before"&&K.dropBefore,S?.marker==="after"&&K.dropAfter),role:"treeitem","aria-selected":je,onClick:t(()=>{oe||l(e.id)},"onClick"),draggable:S!==void 0,onDragStart:S===void 0?void 0:se=>{se.dataTransfer.effectAllowed="move",se.dataTransfer.setData("text/plain",e.id),S.start()},onDragEnd:S?.end,onDragOver:S===void 0?void 0:se=>{S.active&&(se.preventDefault(),se.dataTransfer.dropEffect="move",S.hover(zs(se)))},onDrop:S===void 0?void 0:se=>{S.active&&(se.preventDefault(),S.drop(zs(se)))},children:[(!x||Pe)&&(0,n.jsx)("span",{className:K.slot,children:Pe&&(0,n.jsx)(Bs,{statuses:He})}),oe&&(0,n.jsx)("span",{className:Ye.badge,children:b("archived.badge")}),oe?(0,n.jsxs)("span",{className:Ye.content,children:[(0,n.jsx)("span",{className:Le(K.title,Ye.title),children:me}),!u.blank&&(0,n.jsx)("span",{className:Ye.meta,children:Ps(u.updatedAt,a,b)})]}):(0,n.jsx)("span",{className:K.title,children:me}),!u.blank&&(0,n.jsx)("span",{className:K.time,children:Ps(u.updatedAt,a,b)}),oe&&!u.blank&&(0,n.jsxs)("span",{className:Ye.actions,onClick:t(se=>{se.stopPropagation()},"onClick"),children:[(0,n.jsx)("button",{type:"button",className:Ye.delete,"aria-label":b("menu.deleteSession"),onClick:t(()=>_(e.id,u.title),"onClick"),children:(0,n.jsx)(c.IconTrashOutlineMedium,{})}),(0,n.jsx)("button",{type:"button",className:Ye.unarchive,onClick:t(()=>w(e.id),"onClick"),children:b("menu.unarchive")})]}),!u.blank&&(0,n.jsx)("span",{className:K.rowActions,children:(0,n.jsx)(c.Menu,{open:le,onClose:t(()=>{P(!1)},"onClose"),items:ue,onSelect:t(se=>{P(!1),se==="rename"&&h(e.id,u.title),se==="fork"&&p(e.id),se==="archive"&&f(e.id),se==="unarchive"&&w(e.id),se==="delete-session"&&_(e.id,u.title)},"onSelect"),portal:!0,closeOnPointerLeave:!0,anchor:(0,n.jsx)("button",{type:"button",className:K.iconButton,"aria-label":b("actions.session.aria",{name:me}),onClick:t(se=>{se.stopPropagation(),P(De=>!De)},"onClick"),children:(0,n.jsx)(c.IconEllipsisOutlineMedium,{})})})})]}),content:(0,n.jsx)(ha,{node:e,now:a,t:b}),disabled:le||S?.active===!0,copyText:u.blank?void 0:u.title,copyLabel:b("copy"),copiedLabel:b("hover.copied")})}t(Fs,"SessionNodeItem");let ma="._G5b-a_modalAction{min-width:72px}._G5b-a_modalError,._G5b-a_menuStatus{margin-top:8px;font-size:12px;line-height:18px}._G5b-a_modalError{color:var(--dsw-alias-state-error-primary)}._G5b-a_menuStatus{color:var(--dsw-alias-label-secondary)}";var Nn={modalAction:"_G5b-a_modalAction",menuStatus:"_G5b-a_menuStatus",modalError:"_G5b-a_modalError"};let Ls="::add-workspace";function ga({t:e,open:s,anchorRef:a,useWorkspaces:l,createWorkspace:h,useDirectoryFlow:p,renderDirectoryFlow:f,onPick:w,onClose:_,addOnly:A=!1,side:S="bottom",selectedId:x}){let b=l(X=>X),u=b.items,me=(0,i.useCallback)(()=>a?.current?.getBoundingClientRect()??null,[a]),[je,oe]=(0,i.useState)(!1),[He,Pe]=(0,i.useState)(null),[le,P]=(0,i.useState)(!1),[U,ue]=(0,i.useState)(!1),se=le||U,De=p(X=>X);(0,i.useEffect)(()=>{le&&!De&&P(!1)},[le,De]);let C=De?[{id:Ls,label:e("menu.addWorkspace"),icon:(0,n.jsx)(c.IconPlusOutlineMedium,{size:16}),disabled:se}]:[],re=!A&&u.length>0,he=re?u.map(X=>({id:X.workspaceId,label:X.title,icon:(0,n.jsx)(c.IconFolderCloseMedium,{size:16}),disabled:se})):C,Ie=he.length===0,$=t(()=>{oe(!1),Pe(null)},"closeModal"),ge=t(X=>h({path:X}).then(ze=>{P(!1),w(ze.workspaceId)}).catch(ze=>{Pe(ze instanceof Error?ze.message:String(ze)),P(!1),oe(!0)}),"adoptDirectory"),ye=(0,i.useCallback)(()=>{_(),oe(!1),Pe(null),P(!0)},[_]),Ue=A||b.phase==="ready",V=!re&&Ue&&C.length===1;(0,i.useEffect)(()=>{s&&V&&!se&&ye()},[s,V,se,ye]);let ce={open:le,busy:U,onPicked:t(X=>{ue(!0),ge(X).finally(()=>{ue(!1)})},"onPicked"),onCancel:t(()=>{P(!1)},"onCancel"),onError:t(X=>{P(!1),Pe(X),oe(!0)},"onError")},ee=t(X=>{if(X===Ls){ye();return}w(X)},"handleSelect");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Menu,{open:s&&!V&&!Ie,anchor:null,items:he,...re?{footer:C}:{},selectedId:x,onSelect:ee,onClose:_,side:S,portal:!0,getAnchorRect:me}),s&&!V&&!Ie&&b.phase==="pending"&&(0,n.jsx)("div",{className:Nn.menuStatus,role:"status",children:e("picker.loading")}),f(ce),(0,n.jsx)(c.Modal,{open:je,onClose:$,closeLabel:e("close"),title:e("folderError.title"),footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",className:Nn.modalAction,onClick:$,children:e("cancel")}),(0,n.jsx)(c.Button,{variant:"primary",className:Nn.modalAction,disabled:!De,onClick:ye,children:e("folderError.retry")})]}),children:(0,n.jsx)("div",{className:Nn.modalError,role:"alert",children:He})})]})}t(ga,"WorkspacePickFlow");let fa='.qDHVXG_root{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding);--dsh-session-list-scrollbar-width:8px;--dsh-session-list-scrollbar-offset:2px;box-sizing:border-box;min-height:0;padding-right:var(--dsh-session-list-edge-inset);flex-direction:column;flex:1;display:flex}.qDHVXG_root.qDHVXG_rail{padding-right:0}.qDHVXG_iconButton{cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qDHVXG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_sectionHeader{box-sizing:border-box;height:36px;color:var(--dsw-alias-label-tertiary);border-radius:12px;flex:none;justify-content:flex-end;align-items:center;gap:4px;margin-bottom:4px;padding-left:4px;display:flex;overflow:hidden}.qDHVXG_root:not(.qDHVXG_rail) .qDHVXG_sectionHeader{margin-top:2px;margin-right:-4px}.qDHVXG_sectionLabel{white-space:nowrap;opacity:1;visibility:visible;min-width:0;max-width:45%;transition:max-width .18s var(--ds-ease-in-out), margin-right .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;line-height:20px;overflow:hidden}.qDHVXG_sectionLabelHidden{opacity:0;visibility:hidden;max-width:0;margin-right:-4px;transition-delay:0s,0s,0s,0s,.18s;transform:translate(-4px)}.qDHVXG_searchSlot{box-sizing:border-box;min-width:0;max-width:28px;transition:max-width .18s var(--ds-ease-in-out), padding-left .18s var(--ds-ease-in-out);flex:1;align-items:center;margin-left:auto;padding-left:0;display:flex}.qDHVXG_searchSlotExpanded{max-width:100%;padding-left:0}.qDHVXG_headerActions{opacity:1;visibility:visible;max-width:60px;transition:max-width .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;align-items:center;gap:4px;display:flex;overflow:hidden}.qDHVXG_headerActionsHidden{opacity:0;visibility:hidden;pointer-events:none;max-width:0;transition-delay:0s,0s,0s,.18s;transform:translate(4px)}.qDHVXG_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), padding .18s var(--ds-ease-in-out), border-color .18s var(--ds-ease-in-out), background-color .18s var(--ds-ease-in-out);background:0 0;border:none;border-radius:50%;flex:none;align-items:center;gap:0;margin:0;padding:0;display:flex;overflow:hidden}.qDHVXG_searchExpanded{border:1px solid var(--dsw-alias-border-l2);width:calc(100% + 4px);height:30px;color:var(--dsw-alias-label-caption);background:0 0;border-radius:10px;margin-inline:-2px;padding:0 4px 0 0}.qDHVXG_searchButton{cursor:pointer;width:28px;height:28px;color:inherit;background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qDHVXG_searchExpanded .qDHVXG_searchButton{width:28px;height:30px}.qDHVXG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_searchExpanded .qDHVXG_searchButton:hover{background:0 0}.qDHVXG_searchInput{opacity:0;pointer-events:none;width:0;min-width:0;color:var(--dsw-alias-label-primary);transition:opacity .12s var(--ds-ease-in-out);background:0 0;border:none;outline:none;flex:1;font-size:13px;line-height:18px}.qDHVXG_searchExpanded .qDHVXG_searchInput{opacity:1;pointer-events:auto;margin-left:-2px}.qDHVXG_searchInput::placeholder{color:var(--dsw-alias-label-tertiary)}.qDHVXG_clearButton{cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;border-radius:50%;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.qDHVXG_clearButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_rail .qDHVXG_sectionHeader{justify-content:flex-start;gap:0;margin-bottom:12px;padding-left:0}.qDHVXG_rail .qDHVXG_headerActions{max-width:none}.qDHVXG_rail .qDHVXG_iconButton{width:36px;height:36px;color:var(--dsw-alias-label-primary)}.qDHVXG_rail .qDHVXG_search{background:0 0;border-color:#0000;gap:0;width:36px;height:36px;margin:0 0 12px;padding:0}.qDHVXG_rail .qDHVXG_searchButton{width:36px;height:36px;color:var(--dsw-alias-label-primary)}.qDHVXG_rail .qDHVXG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.qDHVXG_listArea{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}.qDHVXG_rail .qDHVXG_listArea{margin-left:0;margin-right:0;padding-left:0}.qDHVXG_treeBody{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.qDHVXG_fade{left:0;right:var(--dsh-session-list-edge-inset);background:linear-gradient(to bottom, transparent, var(--dsw-specific-sidebar-fill));pointer-events:none;height:24px;position:absolute;bottom:0}.qDHVXG_wide{animation:qDHVXG_wide-in .2s var(--ds-ease-in-out)}@keyframes qDHVXG_wide-in{0%{opacity:0}}.qDHVXG_list{min-height:0;margin-left:-4px;margin-right:var(--dsh-session-list-scrollbar-offset);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;flex:1;padding-bottom:16px;overflow-y:auto}.qDHVXG_flatList>*+*,.qDHVXG_searchTree>[role=treeitem]+[role=treeitem],.qDHVXG_groupSection>*+*{margin-top:2px}.qDHVXG_searchStatus,.qDHVXG_searchWarning{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.qDHVXG_searchWarning{color:var(--dsw-alias-label-secondary)}.qDHVXG_groupSection{position:relative}.qDHVXG_groupSection+.qDHVXG_groupSection{margin-top:4px}.qDHVXG_listTopDropIndicator,.qDHVXG_workspaceDropBefore:before,.qDHVXG_workspaceDropAfter:after{content:"";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:0}.qDHVXG_listTopDropIndicator{top:-8px;left:0;right:var(--dsh-session-list-edge-inset)}.qDHVXG_listTopDropActive>.qDHVXG_workspaceDropBefore:first-child:before{display:none}.qDHVXG_workspaceDropBefore:before{top:-8px}.qDHVXG_workspaceDropAfter:after{bottom:-8px}.qDHVXG_sessionOverflowButton{cursor:pointer;text-align:left;width:100%;height:28px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;border-radius:8px;padding:0 12px 0 28px;font-size:12px}.qDHVXG_groupSection>.qDHVXG_sessionOverflowButton{margin-top:0}.qDHVXG_sessionOverflowButton:hover{color:var(--dsw-alias-label-secondary);background:0 0}.qDHVXG_empty{color:var(--dsw-alias-label-tertiary);padding:16px 12px;font-size:13px}.qDHVXG_renameInput{box-sizing:border-box;border:1px solid var(--dsw-alias-border-l2);width:100%;height:44px;color:var(--dsw-alias-label-primary);background:0 0;border-radius:22px;outline:none;padding:7px 14px;font-size:14px;font-weight:400;line-height:22px}.qDHVXG_renameInput:disabled{color:var(--dsw-alias-label-dimmed)}.qDHVXG_renameError{color:var(--dsw-alias-state-error-primary);margin-top:8px;font-size:12px;line-height:18px}.qDHVXG_deleteAction:not(:disabled){color:var(--dsw-alias-state-error-primary)}.qDHVXG_deleteStatus{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}@media (prefers-reduced-motion:reduce){.qDHVXG_wide{animation:none}.qDHVXG_search,.qDHVXG_sectionLabel,.qDHVXG_searchSlot,.qDHVXG_searchInput,.qDHVXG_headerActions{transition:none}}';var H={"wide-in":"qDHVXG_wide-in",searchWarning:"qDHVXG_searchWarning",empty:"qDHVXG_empty",deleteStatus:"qDHVXG_deleteStatus",search:"qDHVXG_search",fade:"qDHVXG_fade",workspaceDropAfter:"qDHVXG_workspaceDropAfter",searchSlot:"qDHVXG_searchSlot",rail:"qDHVXG_rail",searchSlotExpanded:"qDHVXG_searchSlotExpanded",searchButton:"qDHVXG_searchButton",workspaceDropBefore:"qDHVXG_workspaceDropBefore",deleteAction:"qDHVXG_deleteAction",root:"qDHVXG_root",clearButton:"qDHVXG_clearButton",listTopDropIndicator:"qDHVXG_listTopDropIndicator",listTopDropActive:"qDHVXG_listTopDropActive",headerActions:"qDHVXG_headerActions",searchStatus:"qDHVXG_searchStatus",sectionLabelHidden:"qDHVXG_sectionLabelHidden",searchInput:"qDHVXG_searchInput",listArea:"qDHVXG_listArea",searchExpanded:"qDHVXG_searchExpanded",list:"qDHVXG_list",iconButton:"qDHVXG_iconButton",sectionLabel:"qDHVXG_sectionLabel",groupSection:"qDHVXG_groupSection",renameInput:"qDHVXG_renameInput",sessionOverflowButton:"qDHVXG_sessionOverflowButton",treeBody:"qDHVXG_treeBody",wide:"qDHVXG_wide",flatList:"qDHVXG_flatList",searchTree:"qDHVXG_searchTree",sectionHeader:"qDHVXG_sectionHeader",headerActionsHidden:"qDHVXG_headerActionsHidden",renameError:"qDHVXG_renameError"};let va=300,ya=250,Qn=500,Mn=5;function Gs(e){let s=e.replaceAll("\0","");if(s.length<=Qn)return s;let a=Qn,l=s.charCodeAt(a-1),h=s.charCodeAt(a);return l>=55296&&l<=56319&&h>=56320&&h<=57343&&a--,s.slice(0,a)}t(Gs,"sanitizeSearchQuery");function wa(e,s){return e.includes(s)?e.filter(a=>a!==s):[...e,s]}t(wa,"toggled");function qs(e){(0,i.useEffect)(()=>{if(!e)return;let s=t(l=>{l.preventDefault(),l.dataTransfer!==null&&(l.dataTransfer.dropEffect="move")},"acceptDrag"),a=t(l=>{l.preventDefault()},"acceptDrop");return document.addEventListener("dragover",s),document.addEventListener("drop",a),()=>{document.removeEventListener("dragover",s),document.removeEventListener("drop",a)}},[e])}t(qs,"useNativeDragAcceptance");function On(e,s){if(s===void 0)return[...e];let a=new Map(e.map(p=>[p,p])),l=[],h=new Set;for(let p of s){let f=a.get(p);f===void 0||h.has(p)||(l.push(f),h.add(p))}for(let p of e)h.has(p)||l.push(p);return l}t(On,"reconciledSessionOrder");function Us(e,s,a){let l=a[e]?.updatedAt??Number.NEGATIVE_INFINITY,h=a[s]?.updatedAt??Number.NEGATIVE_INFINITY;return l!==h?h-l:e<s?-1:1}t(Us,"compareSessionRecency");function Vs({sessionIds:e,previousOrder:s,previousUpdatedAt:a,list:l,orderBy:h,sortByRecency:p}){let f=On(e,s);if(p)f.sort((S,x)=>Us(S,x,l.byId));else if(h==="updated"){let S=e.filter(x=>{let b=l.byId[x];return b!==void 0&&(a[x]===void 0||b.updatedAt>a[x])}).sort((x,b)=>Us(x,b,l.byId));if(S.length>0){let x=new Set(S);f=[...S,...f.filter(b=>!x.has(b))]}}let w={};for(let S of e){let x=l.byId[S];x!==void 0&&(w[S]=x.updatedAt)}let _=s===void 0||f.length!==s.length||f.some((S,x)=>S!==s[x]),A=Object.keys(w).length!==Object.keys(a).length||Object.entries(w).some(([S,x])=>a[S]!==x);return{order:f,updatedAt:w,changed:_||A}}t(Vs,"nextSessionOrderAccount");function ba({groupBy:e,orderBy:s,onGroupPick:a,onOrderPick:l,t:h}){let[p,f]=(0,i.useState)(!1);return(0,n.jsx)(c.Menu,{open:p,onClose:t(()=>{f(!1)},"onClose"),items:[{type:"label",id:"group-by",text:h("groupBy.label")},{id:"workspace",label:h("groupBy.workspace")},{id:"flat",label:h("groupBy.flat")},{type:"separator",id:"order-by-separator"},{type:"label",id:"order-by",text:h("orderBy.label")},{id:"manual",label:h("orderBy.manual")},{id:"updated",label:h("orderBy.updated")}],selectedIds:[e,s],onSelect:t(w=>{w==="workspace"||w==="flat"?a(w):(w==="manual"||w==="updated")&&l(w),f(!1)},"onSelect"),align:"end",dense:!0,portal:!0,anchor:(0,n.jsx)(c.Tooltip,{label:h("viewOptions.label"),side:"bottom",delayMs:500,children:(0,n.jsx)("button",{type:"button",className:Le(H.iconButton,H.wide),"aria-label":h("viewOptions.label"),onClick:t(()=>{f(w=>!w)},"onClick"),children:(0,n.jsx)(c.IconPersonalizationOutlineMedium,{})})})})}t(ba,"ViewOptionsMenu");function Ws(e){let s=e.currentTarget.getBoundingClientRect();return e.clientY<s.top+s.height/2?"before":"after"}t(Ws,"workspaceGroupHalf");function xa({useSessions:e,useSessionPendingInteraction:s,useSessionStatus:a,preferSessionStatus:l,startSession:h,open:p,forkSession:f,workspaces:w,archivedSessionIds:_,showArchived:A,onRenameRequest:S,onArchiveRequest:x,onDeleteRequest:b,onSessionRename:u,onSessionArchive:me,onSessionUnarchive:je,onSessionDelete:oe,insertWorkspaceBefore:He,insertSessionBefore:Pe,orderBy:le,groupExpansion:P,setGroupExpanded:U,sessionOrderByAccount:ue,sessionUpdatedAtByAccount:se,syncSessionOrderAccount:De,setSessionOrder:C,t:re,revealSessionId:he,onSessionRevealed:Ie,showArchivedToast:$}){let ge=e(k=>k),ye=Tn(s,a,l),Ue=ot(ge),[V,ce]=(0,i.useState)([]),[ee,X]=(0,i.useState)(null),ze=(0,i.useRef)(!1),[ve,J]=(0,i.useState)(null),Fe=(0,i.useRef)(!1),Te=(0,i.useRef)(le);qs(ee!==null||ve!==null);let q=Ue===void 0?void 0:w.find(k=>k.sessionIds.includes(Ue))?.workspaceId??"",g=he===void 0?void 0:w.find(k=>k.sessionIds.includes(he))?.workspaceId??"";(0,i.useEffect)(()=>{Ue===void 0||q===void 0||Object.hasOwn(P,q)||U(q,!0)},[Ue,q,U,P]),(0,i.useEffect)(()=>{g===void 0||P[g]===!0||U(g,!0)},[P,g,U]);let N=(0,i.useMemo)(()=>Object.entries(P).filter(([,k])=>k).map(([k])=>k),[P]),E=(0,i.useMemo)(()=>{let k=new Set(w.flatMap(te=>te.sessionIds));return ge.ids.filter(te=>ge.byId[te]!==void 0&&!k.has(te))},[ge,w]);(0,i.useEffect)(()=>{if(ge.phase!=="ready")return;let k=Te.current!=="updated"&&le==="updated";Te.current=le;let te=[...w.map(Se=>({key:Se.workspaceId,sessionIds:Se.sessionIds.filter(Ve=>ge.byId[Ve]!==void 0)})),{key:"",sessionIds:E}];for(let{key:Se,sessionIds:Ve}of te){let ke=ue[Se],Xe=Vs({sessionIds:Ve,previousOrder:ke,previousUpdatedAt:se[Se]??{},list:ge,orderBy:le,sortByRecency:le==="updated"&&(ke===void 0||k)});Xe.changed&&typeof De=="function"&&De(Se,Xe.order.map(F=>F),Xe.updatedAt)}},[ge,le,ue,se,De,E,w]);let Ne=(0,i.useMemo)(()=>w.map(k=>{let te=ue[k.workspaceId],Se=On(k.sessionIds,te);return{...k,sessionIds:Se}}),[ue,w]),ae=(0,i.useMemo)(()=>On(E,ue[""]),[ue,E]),Ae=(0,i.useMemo)(()=>Ns(ge,Ne,_,ye,{expandedGroups:N,showArchived:A,...ue[""]===void 0?{}:{ungroupedOrder:ue[""]}}),[ge,Ne,_,ye,A,N,ue]);(0,i.useEffect)(()=>{if(he===void 0||g===void 0)return;let k=Ae.find(te=>te.key===g);k===void 0||!k.expanded||!k.sessions.some(te=>te.id===he)||k.sessions.slice(0,Mn).some(te=>te.id===he)||ce(te=>te.includes(g)?te:[...te,g])},[Ae,g,he]);let We=Date.now(),Ze=t((k,te)=>{if(ze.current)return;ze.current=!0,X(null);let Se=Ae.find(Me=>Me.key===k.accountKey);if(Se===void 0)return;let Ve=Se.sessions.findIndex(Me=>Me.id===te.id);if(Ve===-1)return;let ke=te.half==="before"?te.id:Se.sessions[Ve+1]?.id;if(ke===k.sessionId)return;let Xe=Se.sessions.findIndex(Me=>Me.id===k.sessionId),F=ke===void 0?Se.sessions.length:Se.sessions.findIndex(Me=>Me.id===ke);if(Xe!==-1&&(F===Xe||F===Xe+1))return;let Ee=k.accountKey===""?ae:Ne.find(Me=>Me.workspaceId===k.accountKey)?.sessionIds;if(Ee===void 0)return;let _e=Ee.filter(Me=>Me!==k.sessionId),rt=ke===void 0?_e.length:_e.indexOf(ke);_e.splice(rt===-1?_e.length:rt,0,k.sessionId),C(k.accountKey,_e.map(Me=>Me)),!(le==="updated"||k.accountKey==="")&&Pe(k.accountKey,k.sessionId,ke).catch(Me=>{console.warn("session reorder rejected:",Me)})},"commitSessionDrag"),Ce=t((k,te)=>{if(Fe.current)return;Fe.current=!0,J(null);let Se=w.findIndex(F=>F.workspaceId===te.id);if(Se===-1)return;let Ve=te.half==="before"?te.id:w[Se+1]?.workspaceId;if(Ve===k.workspaceId)return;let ke=w.findIndex(F=>F.workspaceId===k.workspaceId),Xe=Ve===void 0?w.length:w.findIndex(F=>F.workspaceId===Ve);ke!==-1&&(Xe===ke||Xe===ke+1)||He(k.workspaceId,Ve).catch(F=>{console.warn("workspace reorder rejected:",F)})},"commitWorkspaceDrag"),Je=Ae[0]?.workspaceId!==void 0&&ve?.over?.id===Ae[0].workspaceId&&ve.over.half==="before";return(0,n.jsxs)("div",{className:Le(H.treeBody,H.wide),children:[Je&&(0,n.jsx)("span",{className:H.listTopDropIndicator,"aria-hidden":"true"}),(0,n.jsxs)("div",{className:Le(H.list,Je&&H.listTopDropActive),role:"tree","aria-label":re("section.sessions"),children:[Ae.length===0&&(0,n.jsx)("div",{className:H.empty,children:re("empty.none")}),Ae.map(k=>{let te=k.workspaceId,Se=te!==void 0&&ve?.over?.id===te?ve.over.half:null,Ve=te===void 0?void 0:{start:t(()=>{Fe.current=!1,J({workspaceId:te,over:null})},"start"),end:t(()=>{ve?.over!==null&&ve?.over!==void 0?Ce(ve,ve.over):J(null),Fe.current=!1},"end")},ke=te===void 0?void 0:F=>{J(Ee=>Ee===null?Ee:{...Ee,over:{id:te,half:F}})},Xe=te===void 0?void 0:F=>{ve!==null&&Ce(ve,{id:te,half:F})};return(0,n.jsxs)("div",{className:Le(H.groupSection,Se==="before"&&H.workspaceDropBefore,Se==="after"&&H.workspaceDropAfter),onDragOver:ve===null||ke===void 0?void 0:F=>{F.preventDefault(),F.dataTransfer.dropEffect="move",ke(Ws(F))},onDrop:ve===null||Xe===void 0?void 0:F=>{F.preventDefault(),Xe(Ws(F))},children:[(0,n.jsx)(da,{group:k,t:re,onToggle:t(()=>{k.expanded&&ce(F=>F.filter(Ee=>Ee!==k.key)),U(k.key,!k.expanded)},"onToggle"),onCreate:t(()=>{k.workspaceId!==void 0&&(U(k.key,!0),h(k.workspaceId))},"onCreate"),drag:Ve,actions:k.workspaceId===void 0?void 0:{canArchive:(()=>{let F=w.find(Ee=>Ee.workspaceId===k.workspaceId);return F!==void 0&&$n(F,_)>0})(),rename:t(()=>{k.workspaceId!==void 0&&S(k.workspaceId,k.label)},"rename"),archive:t(()=>{k.workspaceId!==void 0&&x(k.workspaceId,k.label)},"archive"),delete:t(()=>{k.workspaceId!==void 0&&b(k.workspaceId,k.label)},"delete")}}),(V.includes(k.key)?k.sessions:k.sessions.slice(0,Mn)).map(F=>{let Ee=ee!==null&&ee.accountKey===k.key;return(0,n.jsx)(Fs,{node:F,currentId:Ue,now:We,onOpen:p,onRename:u,onFork:t(_e=>{rs(_e,f,$,re)},"onFork"),onArchive:me,onUnarchive:je,onDeleteSession:oe,onReveal:F.id===he&&k.key===g?()=>{Ie?.(F.id)}:void 0,drag:{start:t(()=>{ze.current=!1,X({accountKey:k.key,sessionId:F.id,over:null})},"start"),active:Ee,marker:Ee&&ee.over?.id===F.id?ee.over.half:null,hover:t(_e=>{X(rt=>rt===null?rt:{...rt,over:{id:F.id,half:_e}})},"hover"),drop:t(_e=>{ee!==null&&Ze(ee,{id:F.id,half:_e})},"drop"),end:t(()=>{ee?.over!==null&&ee?.over!==void 0?Ze(ee,ee.over):X(null),ze.current=!1},"end")},t:re},F.id)}),k.sessions.length>Mn&&(0,n.jsx)("button",{type:"button",className:H.sessionOverflowButton,"aria-expanded":V.includes(k.key),onClick:t(()=>{ce(F=>wa(F,k.key))},"onClick"),children:V.includes(k.key)?re("sessions.collapse"):re("sessions.expand",{n:k.sessions.length-Mn})})]},k.key)})]}),(0,n.jsx)("span",{className:H.fade})]})}t(xa,"SessionTree");function Sa({useSessions:e,useSessionPendingInteraction:s,useSessionStatus:a,preferSessionStatus:l,open:h,forkSession:p,onSessionRename:f,onSessionArchive:w,onSessionUnarchive:_,onSessionDelete:A,archivedSessionIds:S,showArchived:x,orderBy:b,sessionOrderByAccount:u,sessionUpdatedAtByAccount:me,syncSessionOrderAccount:je,setSessionOrder:oe,t:He,revealSessionId:Pe,onSessionRevealed:le,showArchivedToast:P}){let U=e(V=>V),ue=Tn(s,a,l),se=ot(U),De=(0,i.useMemo)(()=>Ms(U,S,ue,x),[U,S,ue,x]),C=(0,i.useMemo)(()=>De.map(V=>V.id),[De]),re=(0,i.useRef)(b);(0,i.useEffect)(()=>{if(U.phase!=="ready")return;let V=u[Ht],ce=me[Ht]??{},ee=re.current!=="updated"&&b==="updated";re.current=b;let X=Vs({sessionIds:C,previousOrder:V,previousUpdatedAt:ce,list:U,orderBy:b,sortByRecency:b==="updated"&&(V===void 0||ee)});X.changed&&je(Ht,X.order.map(ze=>ze),X.updatedAt)},[U,b,u,me,C,je]);let he=(0,i.useMemo)(()=>{let V=new Map(De.map(ce=>[ce.id,ce]));return On(C,u[Ht]).flatMap(ce=>{let ee=V.get(ce);return ee===void 0?[]:[ee]})},[De,u,C]),[Ie,$]=(0,i.useState)(null),ge=(0,i.useRef)(!1);qs(Ie!==null);let ye=t((V,ce)=>{if(ge.current)return;ge.current=!0,$(null);let ee=he.findIndex(Te=>Te.id===ce.id);if(ee===-1)return;let X=ce.half==="before"?ce.id:he[ee+1]?.id;if(X===V.sessionId)return;let ze=he.findIndex(Te=>Te.id===V.sessionId),ve=X===void 0?he.length:he.findIndex(Te=>Te.id===X);if(ze!==-1&&(ve===ze||ve===ze+1))return;let J=he.map(Te=>Te.id).filter(Te=>Te!==V.sessionId),Fe=X===void 0?J.length:J.indexOf(X);J.splice(Fe===-1?J.length:Fe,0,V.sessionId),oe(Ht,J.map(Te=>Te))},"commitDrag"),Ue=Date.now();return(0,n.jsxs)("div",{className:Le(H.treeBody,H.wide),children:[(0,n.jsxs)("div",{className:Le(H.list,H.flatList),role:"tree","aria-label":He("section.sessions"),children:[he.length===0&&(0,n.jsx)("div",{className:H.empty,children:He("empty.none")}),he.map(V=>{let ce=Ie!==null;return(0,n.jsx)(Fs,{node:V,currentId:se,now:Ue,onOpen:h,onRename:f,onFork:t(ee=>{rs(ee,p,P,He)},"onFork"),onArchive:w,onUnarchive:_,onDeleteSession:A,onReveal:V.id===Pe?()=>{le?.(V.id)}:void 0,flat:!0,drag:{start:t(()=>{ge.current=!1,$({accountKey:Ht,sessionId:V.id,over:null})},"start"),active:ce,marker:ce&&Ie.over?.id===V.id?Ie.over.half:null,hover:t(ee=>{$(X=>X===null?X:{...X,over:{id:V.id,half:ee}})},"hover"),drop:t(ee=>{Ie!==null&&ye(Ie,{id:V.id,half:ee})},"drop"),end:t(()=>{Ie?.over!==null&&Ie?.over!==void 0?ye(Ie,Ie.over):$(null),ge.current=!1},"end")},t:He},V.id)})]}),(0,n.jsx)("span",{className:H.fade})]})}t(Sa,"FlatList");function ka({useSessions:e,useSessionPendingInteraction:s,useSessionStatus:a,preferSessionStatus:l,open:h,workspaces:p,archivedSessionIds:f,showArchived:w,query:_,remote:A,resultLimit:S,t:x}){let b=e(le=>le),u=Tn(s,a,l),me=x("group.ungrouped"),je=A.query===_?A:{query:_,status:"loading",items:[],hasMore:!1},oe=(0,i.useMemo)(()=>Os(b,p,_,f,u,je,S,w,me),[b,p,_,f,u,je,S,w,me]),He=je.status==="loading",Pe=je.status==="error";return(0,n.jsxs)("div",{className:Le(H.treeBody,H.wide),children:[(0,n.jsxs)("div",{className:H.list,children:[(0,n.jsx)("div",{className:H.searchTree,role:"tree","aria-label":x("search.results.aria"),children:oe.items.map(le=>(0,n.jsx)(pa,{result:le,currentId:ot(b),onOpen:h,t:x},le.id))}),He&&(0,n.jsx)("div",{className:H.searchStatus,role:"status",children:x("search.pending")}),Pe&&(0,n.jsx)("div",{className:H.searchWarning,role:"status",children:x("search.unavailable")}),!He&&oe.items.length===0&&(0,n.jsx)("div",{className:H.empty,children:x("search.noMatches")}),oe.hasMore&&(0,n.jsx)("div",{className:H.searchStatus,children:x("search.hasMore",{n:S})})]}),(0,n.jsx)("span",{className:H.fade})]})}t(ka,"SearchResults");let es={listeners:new Set,request(e){for(let s of this.listeners)s(e)},subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}};function hi({wide:e,expandSidebar:s,useSessions:a,useSessionPendingInteraction:l,useSessionStatus:h,useWorkspaces:p,useStore:f,actions:w,startSession:_,open:A,renameSession:S,forkSession:x,renameWorkspace:b,deleteWorkspace:u,insertWorkspaceBefore:me,archiveSession:je,archiveWorkspaceSessions:oe,unarchiveSession:He,deleteSession:Pe,insertSessionBefore:le,createWorkspace:P,searchSessions:U,searchResultLimit:ue,useDirectoryFlow:se,renderSlot:De,t:C}){let re=typeof h=="function",he=l??Es,Ie=h??js,$=p(v=>v.items),ge=p(v=>v.phase),ye=p(v=>v.archivedSessionIds),Ue=a(v=>v),V=se(v=>v),ce=f(v=>v.groupBy),ee=f(v=>v.orderBy),X=f(v=>v.showArchived)===!0,ze=f(v=>v.groupExpansion),ve=f(v=>v.sessionOrderByAccount),J=f(v=>v.sessionUpdatedAtByAccount),Fe=(0,i.useMemo)(()=>new Set(ye),[ye]),[Te,q]=(0,i.useState)(void 0);(0,i.useEffect)(()=>es.subscribe(v=>q(v)),[]);let g=t(v=>{q(pe=>pe===v?void 0:pe)},"acknowledgeSessionReveal"),[N,E]=(0,i.useState)(null),Ne=(0,i.useRef)(0),ae=t(v=>{Ne.current+=1,E({text:v,seq:Ne.current})},"showArchivedToast"),Ae=t(v=>{if(Fe.has(v)){ae(C("archived.notOpenable"));return}A(v)},"guardedOpen");(0,i.useEffect)(()=>{ge==="ready"&&w.retainAccountKeys(["",Ht,...$.map(v=>v.workspaceId)])},[w.retainAccountKeys,ge,$]);let[We,Ze]=(0,i.useState)(""),[Ce,Je]=(0,i.useState)(!1),k=Gs(We).trim(),[te,Se]=(0,i.useState)({query:"",status:"idle",items:[],hasMore:!1}),Ve=(0,i.useRef)(null),ke=(0,i.useRef)(null),[Xe,F]=(0,i.useState)(!1),Ee=(0,i.useRef)(null),_e=(0,i.useRef)(!1),[rt,Me]=(0,i.useState)(!1);(0,i.useEffect)(()=>{if(e&&rt){let v=window.setTimeout(()=>{ke.current?.focus({preventScroll:!0}),Me(!1)},va);return()=>{window.clearTimeout(v)}}},[e,rt]),(0,i.useEffect)(()=>{!e||!Ce||rt||ke.current?.focus({preventScroll:!0})},[e,Ce,rt]),(0,i.useEffect)(()=>{if(!e||!Ce)return;let v=t(pe=>{!(pe.target instanceof Node)||Ve.current?.contains(pe.target)===!0||(ke.current?.blur(),k===""&&Je(!1))},"onClick");return document.addEventListener("click",v),()=>{document.removeEventListener("click",v)}},[k,e,Ce]),(0,i.useEffect)(()=>{if(k===""){Se({query:"",status:"idle",items:[],hasMore:!1});return}let v=new AbortController;Se({query:k,status:"loading",items:[],hasMore:!1});let pe=window.setTimeout(()=>{U(k,v.signal).then(Ke=>{v.signal.aborted||Se({query:k,status:"ready",items:Ke.items,hasMore:Ke.hasMore})}).catch(()=>{v.signal.aborted||Se({query:k,status:"error",items:[],hasMore:!1})})},ya);return()=>{window.clearTimeout(pe),v.abort()}},[k,U]);let[lt,Pt]=(0,i.useState)(null),[$t,gn]=(0,i.useState)(""),[mt,Yt]=(0,i.useState)(!1),[zn,At]=(0,i.useState)(null),vt=$t.trim(),Zt=lt!==null&&vt!==""&&vt!==lt.currentTitle&&$.some(v=>v.title===vt),fn=mt||vt===""||lt===null||vt===lt.currentTitle||Zt,Jt=t(()=>{mt||(Pt(null),At(null))},"closeRename"),vn=t(()=>{fn||(Yt(!0),At(null),b(lt.workspaceId,vt).then(()=>{Yt(!1),Pt(null)}).catch(v=>{Yt(!1),At(v instanceof Error?v.message:String(v))}))},"confirmRename"),[Et,yn]=(0,i.useState)(null),[Qt,Bn]=(0,i.useState)(""),[zt,jt]=(0,i.useState)(!1),[nt,yt]=(0,i.useState)(null),wn=Qt.trim(),Bt=zt||wn===""||Et===null,en=t(()=>{zt||(yn(null),yt(null))},"closeSessionRename"),Ft=t(()=>{Bt||(jt(!0),yt(null),S(Et.sessionId,wn).then(()=>{jt(!1),yn(null)}).catch(v=>{jt(!1),yt(v instanceof Error?v.message:String(v))}))},"confirmSessionRename"),wt=t((v,pe)=>{yn({sessionId:v,currentTitle:pe}),Bn(pe),yt(null)},"onSessionRename"),[gt,Lt]=(0,i.useState)(null),[Dt,ct]=(0,i.useState)(!1),[Fn,tn]=(0,i.useState)(null),Gt=t(()=>{Dt||(Lt(null),tn(null))},"closeStopArchive"),ht=t(v=>{je(v).catch(pe=>{let Ke=pn(pe);if(Ke!==void 0){let qn=Ue.byId[v];Lt({sessionId:v,title:qn===void 0?v:qe(qn,C),kinds:Ke.join(", ")}),tn(null);return}ae(Xn(pe,C))})},"onSessionArchive"),bn=t(()=>{Dt||gt===null||(ct(!0),tn(null),je(gt.sessionId,{stopActivity:!0}).then(()=>{ct(!1),Lt(null)}).catch(v=>{ct(!1),tn(Xn(v,C))}))},"confirmStopArchive"),[it,bt]=(0,i.useState)(null),[Tt,nn]=(0,i.useState)(!1),[dt,sn]=(0,i.useState)(null),xn=t(()=>{Tt||(bt(null),sn(null))},"closeArchiveWorkspace"),as=t((v,pe)=>{let Ke=Cs($,v,pe,Fe);Ke!==null&&(bt(Ke),sn(null))},"onArchiveWorkspaceRequest"),ut=t(()=>{Tt||it===null||(nn(!0),sn(null),oe(it.workspaceId).then(()=>{nn(!1),bt(null)}).catch(v=>{let pe=Is(it,v,C);nn(pe.archiving),sn(pe.error)}))},"confirmArchiveWorkspace"),[xt,rn]=(0,i.useState)(null),[Nt,an]=(0,i.useState)(!1),[qt,St]=(0,i.useState)(null),[on,Qe]=(0,i.useState)(null);(0,i.useEffect)(()=>{qt===null||$.some(v=>v.workspaceId===qt)||(an(!1),St(null),rn(null))},[qt,$]);let Sn=t(()=>{Nt||(rn(null),Qe(null))},"closeDelete"),Ut=t(()=>{Nt||xt===null||(an(!0),St(null),Qe(null),u(xt.workspaceId).then(()=>{St(xt.workspaceId)}).catch(v=>{an(!1),Qe(v instanceof Error?v.message:String(v))}))},"confirmDelete"),kn=t(v=>{He(v).catch(pe=>{ae(xs(pe,C))})},"onSessionUnarchive"),[pt,kt]=(0,i.useState)(null),[Vt,Mt]=(0,i.useState)(!1),[ln,Ln]=(0,i.useState)(null),[Gn,Wt]=(0,i.useState)(null);(0,i.useEffect)(()=>{ln===null||Fe.has(ln)||$.some(v=>v.sessionIds.includes(ln))||(Mt(!1),Ln(null),kt(null))},[ln,Fe,$]);let _n=t(()=>{Vt||(kt(null),Wt(null))},"closeDeleteSession"),is=t(()=>{if(Vt||pt===null)return;Mt(!0),Wt(null);let v=pt.sessionId;Pe(v).then(()=>{Mt(!1),kt(null),Ln(v)}).catch(pe=>{Mt(!1),Wt(Dn(pe,C))})},"confirmDeleteSession");return(0,n.jsxs)("div",{className:Le(H.root,!e&&H.rail),children:[(0,n.jsxs)("div",{className:H.sectionHeader,children:[e&&(0,n.jsx)("span",{className:Le(H.sectionLabel,H.wide,Ce&&H.sectionLabelHidden),children:C(ce==="flat"?"section.sessions":"section.workspaces")}),e&&(0,n.jsx)("div",{className:Le(H.searchSlot,Ce&&H.searchSlotExpanded),children:(0,n.jsxs)("div",{ref:Ve,className:Le(H.search,Ce&&H.searchExpanded),onClick:t(()=>{F(!1),Je(!0),ke.current?.focus()},"onClick"),children:[(0,n.jsx)(c.Tooltip,{label:C("search"),side:"bottom",delayMs:500,disabled:Ce,children:(0,n.jsx)("button",{type:"button",className:H.searchButton,"aria-label":C("search.sessions.aria"),"aria-expanded":Ce,onClick:t(()=>{F(!1),Je(!0)},"onClick"),children:(0,n.jsx)(c.IconSearchOutlineMedium,{size:Ce?11:14})})}),(0,n.jsx)("input",{ref:ke,className:H.searchInput,type:"text",placeholder:C("search.placeholder"),maxLength:Qn,value:We,tabIndex:Ce?0:-1,onChange:t(v=>{Ze(Gs(v.target.value))},"onChange"),onKeyDown:t(v=>{v.key==="Escape"&&(Ze(""),Je(!1))},"onKeyDown")}),Ce&&(0,n.jsx)("button",{type:"button",className:H.clearButton,"aria-label":C("search.clear"),onClick:t(v=>{v.stopPropagation(),Ze(""),Je(!1)},"onClick"),children:(0,n.jsx)(c.IconCloseFillMedium,{})})]})}),(0,n.jsxs)("div",{className:Le(H.headerActions,e&&Ce&&H.headerActionsHidden),children:[e&&(0,n.jsx)(ba,{groupBy:ce,orderBy:ee,onGroupPick:t(v=>{w.setGroupBy(v)},"onGroupPick"),onOrderPick:t(v=>{w.setOrderBy(v)},"onOrderPick"),t:C}),V&&(0,n.jsx)(c.Tooltip,{label:C("workspace.add"),side:"bottom",delayMs:500,children:(0,n.jsx)("button",{ref:Ee,type:"button",className:H.iconButton,"aria-label":C("workspace.add"),onClick:t(()=>{F(v=>!v)},"onClick"),children:(0,n.jsx)(c.IconProjectAddOutlineMedium,{size:e?16:18})})})]}),(0,n.jsx)(ga,{t:C,open:Xe,anchorRef:Ee,useWorkspaces:p,createWorkspace:P,useDirectoryFlow:se,renderDirectoryFlow:t(v=>De(rr,v),"renderDirectoryFlow"),addOnly:!0,side:"right",onPick:t(v=>{F(!1),_(v)},"onPick"),onClose:t(()=>{F(!1)},"onClose")})]}),!e&&(0,n.jsx)("div",{className:H.search,children:(0,n.jsx)(c.Tooltip,{label:C("search"),children:(0,n.jsx)("button",{type:"button",className:H.searchButton,"aria-label":C("search.sessions.aria"),onClick:t(()=>{Je(!0),Me(!0),s()},"onClick"),children:(0,n.jsx)(c.IconSearchOutlineMedium,{size:18})})})}),(0,n.jsx)("div",{className:H.listArea,children:e&&(k!==""?(0,n.jsx)(ka,{useSessions:a,useSessionPendingInteraction:he,useSessionStatus:Ie,preferSessionStatus:re,open:t(v=>{q(v),Ze(""),Je(!1),Ae(v)},"open"),workspaces:$,archivedSessionIds:ye,showArchived:X,query:k,remote:te,resultLimit:ue,t:C}):ce==="flat"?(0,n.jsx)(Sa,{useSessions:a,useSessionPendingInteraction:he,useSessionStatus:Ie,preferSessionStatus:re,open:Ae,revealSessionId:Te,onSessionRevealed:g,showArchivedToast:ae,forkSession:x,onSessionRename:wt,onSessionArchive:ht,onSessionUnarchive:kn,onSessionDelete:t((v,pe)=>{kt({sessionId:v,title:pe}),Wt(null)},"onSessionDelete"),archivedSessionIds:ye,showArchived:X,orderBy:ee,sessionOrderByAccount:ve,sessionUpdatedAtByAccount:J,syncSessionOrderAccount:w.syncSessionOrderAccount,setSessionOrder:w.setSessionOrder,t:C}):(0,n.jsx)(xa,{useSessions:a,useSessionPendingInteraction:he,useSessionStatus:Ie,preferSessionStatus:re,revealSessionId:Te,onSessionRevealed:g,showArchivedToast:ae,onSessionRename:wt,onSessionArchive:ht,onSessionUnarchive:kn,onSessionDelete:t((v,pe)=>{kt({sessionId:v,title:pe}),Wt(null)},"onSessionDelete"),forkSession:x,workspaces:$,groupExpansion:ze,setGroupExpanded:w.setGroupExpanded,sessionOrderByAccount:ve,sessionUpdatedAtByAccount:J,syncSessionOrderAccount:w.syncSessionOrderAccount,setSessionOrder:w.setSessionOrder,archivedSessionIds:ye,showArchived:X,startSession:_,open:Ae,insertWorkspaceBefore:me,insertSessionBefore:le,orderBy:ee,t:C,onRenameRequest:t((v,pe)=>{Pt({workspaceId:v,currentTitle:pe}),gn(pe),At(null)},"onRenameRequest"),onArchiveRequest:as,onDeleteRequest:t((v,pe)=>{rn({workspaceId:v,title:pe}),Qe(null)},"onDeleteRequest")}))}),(0,n.jsxs)(c.Modal,{open:lt!==null,onClose:Jt,closeLabel:C("close"),title:C("rename.workspace.title"),footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",disabled:mt,onClick:Jt,children:C("cancel")}),(0,n.jsx)(c.Button,{variant:"primary",disabled:fn,onClick:vn,children:C("rename")})]}),children:[(0,n.jsx)("input",{className:H.renameInput,value:$t,"aria-label":C("field.workspaceName"),autoFocus:!0,disabled:mt,onFocus:t(v=>{v.target.select()},"onFocus"),onChange:t(v=>{gn(v.target.value),At(null)},"onChange"),onCompositionStart:t(()=>{_e.current=!0},"onCompositionStart"),onCompositionEnd:t(()=>{_e.current=!1},"onCompositionEnd"),onKeyDown:t(v=>{v.key==="Enter"&&!_e.current&&(v.preventDefault(),vn())},"onKeyDown")}),Zt&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:C("conflict.named",{name:vt})}),zn!==null&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:zn})]}),(0,n.jsxs)(c.Modal,{open:Et!==null,onClose:en,closeLabel:C("close"),title:C("rename.session.title"),footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",disabled:zt,onClick:en,children:C("cancel")}),(0,n.jsx)(c.Button,{variant:"primary",disabled:Bt,onClick:Ft,children:C("rename")})]}),children:[(0,n.jsx)("input",{className:H.renameInput,value:Qt,"aria-label":C("field.sessionName"),autoFocus:!0,disabled:zt,onFocus:t(v=>{v.target.select()},"onFocus"),onChange:t(v=>{Bn(v.target.value),yt(null)},"onChange"),onCompositionStart:t(()=>{_e.current=!0},"onCompositionStart"),onCompositionEnd:t(()=>{_e.current=!1},"onCompositionEnd"),onKeyDown:t(v=>{v.key==="Enter"&&!_e.current&&(v.preventDefault(),Ft())},"onKeyDown")}),nt!==null&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:nt})]}),(0,n.jsxs)(c.Modal,{open:xt!==null,onClose:Sn,closeLabel:C("close"),title:C("delete.workspace"),...xt===null?{}:{description:C("delete.desc",{name:xt.title})},footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",disabled:Nt,onClick:Sn,children:C("cancel")}),(0,n.jsx)(c.Button,{variant:"outline",className:"dsham_btnDanger",disabled:Nt,onClick:Ut,children:C("delete.workspace")})]}),children:[Nt&&(0,n.jsx)("div",{className:H.deleteStatus,role:"status",children:C("delete.pending")}),on!==null&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:on})]}),(0,n.jsxs)(c.Modal,{open:it!==null,onClose:xn,closeLabel:C("close"),title:it===null?"":C("archiveWorkspace.title",{n:it.count}),...it===null?{}:{description:C("archiveWorkspace.desc",{name:it.title})},footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",disabled:Tt,onClick:xn,children:C("cancel")}),(0,n.jsx)(c.Button,{variant:"outline",className:"dsham_btnDanger",disabled:Tt,onClick:ut,children:C("archiveWorkspace.confirm")})]}),children:[Tt&&(0,n.jsx)("div",{className:H.deleteStatus,role:"status",children:C("archiveWorkspace.pending")}),dt!==null&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:dt})]}),(0,n.jsxs)(c.Modal,{open:pt!==null,onClose:_n,closeLabel:C("close"),title:C("deleteSession.title"),...pt===null?{}:{description:C("deleteSession.desc",{name:pt.title})},footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",disabled:Vt,onClick:_n,children:C("cancel")}),(0,n.jsx)(c.Button,{variant:"outline",className:"dsham_btnDanger",disabled:Vt,onClick:is,children:C("deleteSession.title")})]}),children:[Vt&&(0,n.jsx)("div",{className:H.deleteStatus,role:"status",children:C("deleteSession.pending")}),Gn!==null&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:Gn})]}),(0,n.jsxs)(c.Modal,{open:gt!==null,onClose:Gt,closeLabel:C("close"),title:C("archiveActive.title"),...gt===null?{}:{description:C("archiveActive.desc",{name:gt.title,kinds:gt.kinds})},footer:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Button,{variant:"outline",disabled:Dt,onClick:Gt,children:C("cancel")}),(0,n.jsx)(c.Button,{variant:"outline",className:"dsham_btnDanger",disabled:Dt,onClick:bn,children:C("archiveActive.confirm")})]}),children:[Dt&&(0,n.jsx)("div",{className:H.deleteStatus,role:"status",children:C("archiveActive.pending")}),Fn!==null&&(0,n.jsx)("div",{className:H.renameError,role:"alert",children:Fn})]}),N!==null&&(0,n.jsx)(c.Toast,{key:N.seq,text:N.text,onDone:t(()=>{E(null)},"onDone")})]})}t(hi,"WorkspaceBrowser");let _a=".dsham_archiveTabsLocked{opacity:.5}",Ra=[".dsham_settings{container-type:inline-size;min-width:0;box-sizing:border-box;width:min(100%,760px);margin:0 auto;padding:0 0 32px;color:var(--dsw-alias-label-primary)}",".dsham_settingsHeader{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin-bottom:16px}",".dsham_settings h2{margin:0;font-size:24px;line-height:32px;font-weight:600;letter-spacing:-.4px;white-space:nowrap}",".dsham_settingsIntro{margin:12px 0 0;max-width:42em;color:var(--dsw-alias-label-tertiary);font-size:14px;line-height:22px}",".dsham_settingsToolbar{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;width:100%;min-width:0}",".dsham_settingsSearch{display:flex;align-items:center;gap:8px;min-width:0;width:100%;flex-wrap:nowrap}",".dsham_settingsFilters{display:flex;align-items:center;gap:8px;min-width:0;width:100%;flex-wrap:nowrap}",".dsham_settingsSort{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none;min-width:0}",".dsham_settingsSortLabel{flex:none;color:var(--dsw-alias-label-tertiary);font-size:13px;line-height:20px;white-space:nowrap}",".dsham_settingsFilter{display:flex;position:relative;flex:none;width:auto;min-width:0}",".dsham_settingsSearch .dsham_favoriteFilter,.dsham_settingsSearch .dsham_scopeFilter,.dsham_settingsFilters>.dsham_projectFilter,.dsham_settingsSort .dsham_sortFilter{flex:none;width:auto}",".dsham_settingsFilters>.dsham_dateFilter{flex:1 1 auto;min-width:0}","@container(max-width:480px){.dsham_settingsFilters{flex-wrap:wrap}.dsham_settingsSort{margin-left:0}}",".dsham_menuSelectBtn{display:inline-flex!important;align-items:center;justify-content:space-between;gap:6px;width:auto!important;max-width:100%;min-width:0!important;height:32px!important;padding:0 10px;border:0.5px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-sm,8px);background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);box-sizing:border-box;font:inherit;font-size:13px;cursor:pointer}",".dsham_selectLabel{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:normal;text-align:left}",".dsham_settingsSearch .dsham_searchField{flex:1 1 0;min-width:0;width:auto;max-width:none;box-sizing:border-box}",".dsham_settingsGroup{margin:0 0 20px}",".dsham_settingsGroupHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}",".dsham_settingsGroupTitle{display:flex;align-items:center;gap:8px;min-width:0;margin:0;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600}",".dsham_settingsGroupTitle svg{flex:none;color:var(--dsw-alias-label-secondary)}",".dsham_settingsCount{flex:none;color:var(--dsw-alias-label-tertiary);font-size:12px}",".dsham_settingsList{display:grid;overflow:hidden;border:1px solid var(--dsw-alias-border-l2);border-radius:12px;background:var(--dsw-alias-bg-layer-2,var(--dsw-alias-button-elevated-fill))}",".dsham_settingsRow{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:64px;padding:10px 12px;border-bottom:1px solid var(--dsw-alias-border-l2)}",".dsham_settingsRow:last-child{border-bottom:0}",".dsham_settingsContent{min-width:0;flex:1}",".dsham_settingsTitle{overflow:hidden;color:var(--dsw-alias-label-primary);font-size:13px;font-weight:600;line-height:18px;text-overflow:ellipsis;white-space:nowrap}",".dsham_settingsMeta{margin-top:2px;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:16px}",".dsham_settingsActions{display:flex;align-items:center;gap:4px;flex:none}",".dsham_iconAction{width:22px!important;min-width:22px!important;height:22px!important;padding:0!important;border-radius:var(--dsw-radius-sm,8px)!important;background:transparent;color:var(--dsw-alias-label-secondary);border-color:var(--dsw-alias-border-l2)}",".dsham_iconAction:not(:disabled):hover{color:var(--dsw-alias-link,#4176e6)!important;border-color:var(--dsw-alias-link,#4176e6)!important}",".dsham_iconAction.dsham_iconDanger{color:var(--dsw-alias-state-error-primary,#ef7272)!important;border-color:var(--dsw-alias-state-error-primary,#ef7272)!important}",".dsham_iconAction.dsham_iconDanger:not(:disabled):hover{color:var(--dsw-alias-state-error-primary,#ef7272)!important;border-color:var(--dsw-alias-state-error-primary,#ef7272)!important}",".dsham_iconAction svg{width:16px!important;height:16px!important;flex:none!important}",".dsham_settingsEmpty{padding:28px 8px;color:var(--dsw-alias-label-secondary);text-align:center}",".dsham_settingsError{margin-top:10px;color:var(--dsw-alias-state-error-primary);font-size:12px}","@container(max-width:520px){.dsham_settingsHeader{margin-bottom:16px}.dsham_settingsGroup{margin-bottom:32px}.dsham_settingsRow{padding:10px 12px}.dsham_settingsActions{gap:4px}}"].join(""),Ca=".dsham_settingsTitleLink{display:block;max-width:100%;padding:0;border:0;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;font-weight:600;line-height:20px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.dsham_settingsTitleLink:hover:not(:disabled){text-decoration:underline;text-underline-offset:3px}.dsham_settingsTitleLink:disabled{cursor:default;opacity:.6}.dsham_groupToggle{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;padding:4px 0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.dsham_groupToggle span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dsham_settingsRow:hover{background:var(--dsw-alias-interactive-bg-hover)}.dsham_settingsRow[data-selected=true]{background:var(--dsw-alias-interactive-bg-hover)}.dsham_settingsTitleLink:focus-visible,.dsham_groupToggle:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,#3b82f6);outline-offset:2px}@container(max-width:400px){.dsham_settingsRow{gap:8px;padding:10px 8px}.dsham_settingsActions{gap:0}.dsham_settingsMeta{font-size:11px}}.dsham_settingsGroupMeta{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap}.dsham_settingsStatus{margin-top:10px;color:var(--dsw-alias-label-secondary);font-size:12px}.dsham_checkbox{width:16px;height:16px;margin:0;accent-color:var(--dsw-alias-brand-primary);flex:none}button.dsham_favoriteOn{color:#e8b931}button.dsham_favoriteOn:not(:disabled):hover{color:#e8b931!important;border-color:#e8b931!important}",Ia=".dsham_settingsTitleRow{display:flex;align-items:center;gap:8px 12px;min-width:0;flex-wrap:wrap}.dsham_settingsLinks{display:flex;align-items:center;gap:8px;flex-wrap:wrap}@media(max-width:720px){.dsham_settingsTitleRow{flex-wrap:wrap}}",Aa=".dsham_modalRoot{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px}.dsham_modalMask{position:absolute;inset:0;background:var(--dsw-alias-bg-mask-1,rgb(0 0 0 / 45%))}.dsham_modalDialog{position:relative;display:flex;flex-direction:column;gap:12px;max-width:calc(100vw - 48px);max-height:min(80vh,720px);padding:22px 24px 20px;overflow:auto;border:0;border-radius:var(--dsw-radius-panel,28px);background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);box-shadow:var(--dsw-elevation-prominent,0 16px 40px rgb(0 0 0 / 24%))}.dsham_modalDialog h2{margin:0;font-size:16px;line-height:24px}.dsham_modalDialog>p{margin:0;color:var(--dsw-alias-label-secondary);font-size:13px;line-height:20px}.dsham_modalFooter{display:flex;align-items:center;justify-content:flex-end;gap:8px}",Ea=".dsham_settingsSelection{margin:-8px 0 16px;padding:4px 0 12px;border-bottom:1px solid var(--dsw-alias-border-l2)}.dsham_settingsSelectionMain{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;min-height:36px}.dsham_settingsSelectionSummary{display:flex;flex-wrap:wrap;align-items:center;gap:12px;min-width:0;max-width:100%}.dsham_settingsSelectionToggle{display:inline-flex;flex:none;white-space:nowrap;align-items:center;gap:12px;color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px;cursor:pointer}.dsham_settingsSelectionActions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:100%;margin-left:auto}.dsham_settingsSelectionScope{margin:8px 0 0;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow-wrap:anywhere}",ja=".dsham_settings{margin:0 auto!important}@media(max-width:720px){.dsham_settings{margin:0 auto!important}}";if(typeof document<"u"&&document.querySelector("style[data-plugin-css="+JSON.stringify("dsh-archive-manager/ArchiveSettings.layout.css")+"]")===null){let e=document.createElement("style");e.dataset.plugin="@michengai/dsh-archive-manager",e.dataset.pluginCss="dsh-archive-manager/ArchiveSettings.layout.css",e.textContent=ja,document.head.appendChild(e)}function Hn({id:e,className:s,value:a,options:l,onChange:h,disabled:p=!1,"aria-label":f}){let[w,_]=i.useState(!1);i.useEffect(()=>{if(!w||typeof window>"u")return;function b(u){u.key==="Escape"&&(u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation(),_(!1))}return t(b,"onKey"),window.addEventListener("keydown",b,!0),()=>window.removeEventListener("keydown",b,!0)},[w]);let A=i.useMemo(()=>l.map(b=>({id:b.value,label:b.label})),[l]),x=l.find(b=>b.value===a)?.label??f;return(0,n.jsx)("div",{id:e,className:s===void 0?"dsham_settingsFilter":`dsham_settingsFilter ${s}`,children:(0,n.jsx)(c.Menu,{open:w,onClose:t(()=>_(!1),"onClose"),onSelect:t(b=>{p||h(b),_(!1)},"onSelect"),selectedId:a,align:"start",portal:!0,dense:!0,listClassName:"dsham_selectDropdown",anchor:(0,n.jsxs)(c.Button,{variant:"outline",size:"sm",role:"combobox","aria-label":f,"aria-expanded":w,disabled:p,className:"dsham_menuSelectBtn"+(w?" is-open":""),onClick:t(()=>{p||_(b=>!b)},"onClick"),children:[(0,n.jsx)("span",{className:"dsham_selectLabel",children:x}),(0,n.jsx)("svg",{viewBox:"0 0 16 16",width:12,height:12,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",style:{marginLeft:4,transition:"transform 150ms ease",transform:w?"rotate(180deg)":"none",flex:"none"},children:(0,n.jsx)("path",{d:"m4 6 4 4 4-4"})})]}),items:A})})}t(Hn,"ArchiveProjectSelect");function Xs({selectedCount:e,hiddenCount:s,allVisibleSelected:a,selectedVisibleCount:l,visibleCount:h,busy:p,t:f,onToggle:w,onClear:_,onRestore:A,onDelete:S,onArchive:x}){let b=e>0;return(0,n.jsxs)("div",{className:"dsham_settingsSelection",children:[(0,n.jsxs)("div",{className:"dsham_settingsSelectionMain",children:[(0,n.jsxs)("div",{className:"dsham_settingsSelectionSummary",children:[(0,n.jsxs)("label",{className:"dsham_settingsSelectionToggle",title:f("archives.selectAllFiltered"),children:[(0,n.jsx)(Ks,{checked:a,indeterminate:l>0&&!a,disabled:p||h===0,label:f("archives.selectAllFiltered"),onChange:t(u=>w(u.target.checked),"onChange")}),(0,n.jsx)("span",{"aria-live":"polite",children:b?f("archives.selectedCount",{n:e}):f("archives.selectAllFiltered")})]}),b&&B({disabled:p,"aria-label":f("archives.clearSelection"),onClick:_,children:f("archives.clearSelectionShort")})]}),b&&(0,n.jsxs)("div",{className:"dsham_settingsSelectionActions",children:x?[B({disabled:p,onClick:x,children:f("archives.archiveSelected")})]:[B({disabled:p,"aria-label":f("archives.restoreSelected"),onClick:A,children:f("archives.restore")}),B({disabled:p,className:"dsham_btnDanger","aria-label":f("archives.deleteSelected"),onClick:S,children:f("archives.deleteSelectionShort")})]})]}),s>0&&(0,n.jsx)("p",{className:"dsham_settingsSelectionScope",role:"status",children:f("archives.selectionHiddenHint",{hidden:s})})]})}t(Xs,"ArchiveSelectionToolbar");function Ks({checked:e,indeterminate:s=!1,disabled:a=!1,label:l,onChange:h}){return(0,n.jsx)(os,{checked:e,indeterminate:s,disabled:a,label:l,onChange:h})}t(Ks,"ArchiveSelectionCheckbox");function $s(){return(0,n.jsx)("svg",{viewBox:"0 0 16 16",width:16,height:16,"aria-hidden":!0,focusable:"false",children:[3.5,8,12.5].map(e=>(0,n.jsx)("circle",{cx:e,cy:8,r:1.15,fill:"none",stroke:"currentColor",strokeWidth:1.5},e))})}t($s,"moreIcon");function Da({busy:e,title:s,t:a,onPreview:l,onRestoreOpen:h,onDelete:p,onCopyId:f,onCopyPath:w}){let[_,A]=(0,i.useState)(!1),S=t(b=>{if(!e){if(A(!1),b==="copyId")return f?.();if(b==="copyPath")return w?.();if(b==="preview")return l?.();if(b==="restoreOpen")return h?.();b==="delete"&&p?.()}},"choose"),x=[...l?[{id:"preview",label:a("discovery.preview"),icon:(0,n.jsx)(c.IconBrowseOutlineMedium,{size:16}),danger:!1}]:[],...h?[{id:"restoreOpen",label:a("archives.restoreOpen"),icon:(0,n.jsx)(c.IconUnarchiveOutlineMedium,{size:16}),danger:!1}]:[],...f?[{id:"copyId",label:a("details.copyId"),icon:(0,n.jsx)(c.IconCopyOutlineMedium,{size:16}),danger:!1}]:[],...w?[{id:"copyPath",label:a("details.copyPath"),icon:(0,n.jsx)(c.IconLinkOutlineMedium,{size:16}),danger:!1}]:[],...p?[{id:"delete",label:a("menu.deleteSession"),icon:(0,n.jsx)(c.IconTrashOutlineMedium,{size:16}),danger:!0}]:[]];return(0,n.jsx)(c.Menu,{open:!e&&_,align:"end",portal:!0,dense:!0,items:x,onSelect:S,onClose:t(()=>A(!1),"onClose"),anchor:B({variant:"outline",className:"dsham_iconAction",disabled:e,title:a("archives.moreActions"),"aria-label":a("archives.moreActions")+a("common.separator")+s,"aria-haspopup":"menu","aria-expanded":_&&!e,icon:$s(),onClick:t(()=>{e||A(b=>!b)},"onClick")})})}t(Da,"ArchivedSessionMenu");function Ta({group:e,busy:s,onArchive:a,onRestore:l,onDelete:h,t:p}){let f=e.key===Pn,w=a?[{id:"archive",label:p(f?"archives.archiveUngrouped":"archives.archiveProject"),icon:(0,n.jsx)(c.IconArchiveOutlineMedium,{size:16}),danger:!0}]:[{id:"restore",label:p(f?"archives.restoreUngrouped":"archives.restoreProject"),icon:(0,n.jsx)(c.IconUnarchiveOutlineMedium,{size:16}),danger:!1},{id:"delete",label:p(f?"archives.deleteUngrouped":"archives.deleteProject"),icon:(0,n.jsx)(c.IconTrashOutlineMedium,{size:16}),danger:!0}],[_,A]=(0,i.useState)(!1),S=p(f?"archives.ungroupedActions":"archives.projectActions",{name:e.title}),x=t(b=>{s||(b==="archive"?a?.():b==="restore"?l?.():b==="delete"&&h?.())},"choose");return(0,n.jsx)(c.Menu,{open:!s&&_,align:"end",portal:!0,dense:!0,items:w,onSelect:t(b=>{A(!1),x(b)},"onSelect"),onClose:t(()=>A(!1),"onClose"),anchor:B({variant:"outline",className:"dsham_iconAction",disabled:s,"aria-label":S,"aria-haspopup":"menu","aria-expanded":_&&!s,icon:$s(),onClick:t(()=>{s||A(b=>!b)},"onClick")})})}t(Ta,"ArchivedGroupActions");let Pn="__ungrouped__";function Na(e){return e===Pn?{scope:"ungrouped"}:{scope:"workspace",workspaceId:e}}t(Na,"archivedBatchTargetForGroup");function mn(e,s,a){let l=[...new Set(e??[])];if(a.scope==="all")return l;if(a.scope==="sessions"){let p=new Set(a.sessionIds??[]);return l.filter(f=>p.has(f))}if(a.scope==="workspace"){let p=new Set(s.find(f=>f.workspaceId===a.workspaceId)?.sessionIds??[]);return l.filter(f=>p.has(f))}let h=new Set(s.flatMap(p=>p.sessionIds));return l.filter(p=>!h.has(p))}t(mn,"deriveArchivedBatchIds");function Ys(e){return[...new Set(e.flatMap(s=>s.sessions.map(a=>a.id)))]}t(Ys,"archivedSessionIdsInGroups");function Zs(e,s){let a=new Set(s);return[...new Set(e)].filter(l=>a.has(l))}t(Zs,"pruneArchivedSelection");function ts(e,s,a){let l=new Set(e);for(let h of s)a?l.add(h):l.delete(h);return[...l]}t(ts,"toggleArchivedSelection");function Js(e,s){let a=e.deletedSessionIds.length,l=e.skippedSessionIds.length;return e.failures.length>0?{kind:"error",message:s("archives.deletePartial",{deleted:a,skipped:l,failed:e.failures.length,detail:e.failures[0].message})}:l>0&&a>0?{kind:"notice",message:s("archives.deleteSuccessWithSkipped",{deleted:a,skipped:l})}:l>0?{kind:"notice",message:s("archives.deleteSkipped",{n:l})}:{kind:"notice",message:s("archives.deleteSuccess",{n:a})}}t(Js,"archivedDeleteFeedback");function Qs(e,s){let a=new Set(s);return Object.values(e).filter(l=>l.origin!=="subagent"&&!l.blank&&!a.has(l.id)).map(l=>l.id)}t(Qs,"unarchivedSessionIds");function er(e,s,a,l){let h=s.map(w=>({key:w.workspaceId,title:w.title,ids:new Set(w.sessionIds),sessions:[]})),p=[];for(let w of a){let _=e[w];if(_===void 0||_.origin==="subagent")continue;let A=h.find(S=>S.ids?.has(w));(A===void 0?p:A.sessions).push(_)}let f=h.filter(w=>w.sessions.length>0);return p.length>0&&f.push({key:Pn,title:l,sessions:p}),f}t(er,"deriveArchivedGroups");function tr(e,s,a,l,h={}){let p=t((A,S)=>String(A).localeCompare(String(S),void 0,{numeric:!0,sensitivity:"base"}),"compareText"),f=t(A=>{let S=s==="created"?h[A.id]?.createdAt??a[A.id]:A.updatedAt;return typeof S=="number"&&Number.isFinite(S)?S:Number.NEGATIVE_INFINITY},"timestampOf"),w=t((A,S)=>{if(s==="turnsAsc"||s==="turnsDesc"){let x=hs(h[A.id]?.turnCount,h[S.id]?.turnCount,s);if(x)return x}if(s!=="alphabetical"){let x=f(S)-f(A);if(Number.isFinite(x)&&x!==0)return x}return p(qe(A,l),qe(S,l))||p(A.id,S.id)},"compareSessions");return e.map(A=>({...A,sessions:[...A.sessions].sort(w)})).sort((A,S)=>{if(s==="turnsAsc"||s==="turnsDesc"){let x=hs(h[A.sessions[0]?.id]?.turnCount,h[S.sessions[0]?.id]?.turnCount,s);if(x)return x}if(s!=="alphabetical"){let x=f(S.sessions[0])-f(A.sessions[0]);if(Number.isFinite(x)&&x!==0)return x}return p(A.title,S.title)||p(A.key,S.key)})}t(tr,"sortArchivedGroups");let nr={...qr,...Rr,...Rn,"locale.language":"zh","service.unavailable":"\u670D\u52A1\u5C1A\u672A\u5C31\u7EEA\uFF0C\u8BF7\u91CD\u8BD5","archives.archiveProject":"\u5F52\u6863\u8BE5\u9879\u76EE\u7684\u5168\u90E8\u804A\u5929","archives.archiveUngrouped":"\u5F52\u6863\u5168\u90E8\u672A\u5206\u7EC4\u804A\u5929","archives.archiveProjectDesc":"\u5C06\u201C{name}\u201D\u4E2D\u5168\u90E8 {n} \u6761\u672A\u5F52\u6863\u4F1A\u8BDD\u5F52\u6863\uFF0C\u4E0D\u53D7\u5F53\u524D\u641C\u7D22\u7B5B\u9009\u5F71\u54CD\u3002\u4E4B\u540E\u53EF\u5728\u201C\u5DF2\u5F52\u6863\u201D\u4E2D\u6062\u590D\u3002","archives.archiveUngroupedDesc":"\u5C06\u5168\u90E8 {n} \u6761\u672A\u5206\u7EC4\u7684\u672A\u5F52\u6863\u4F1A\u8BDD\u5F52\u6863\uFF0C\u4E0D\u53D7\u5F53\u524D\u641C\u7D22\u7B5B\u9009\u5F71\u54CD\u3002\u4E4B\u540E\u53EF\u5728\u201C\u5DF2\u5F52\u6863\u201D\u4E2D\u6062\u590D\u3002","archives.tab.archived":"\u5DF2\u5F52\u6863","archives.tab.unarchived":"\u672A\u5F52\u6863","archives.searchUnarchived":"\u641C\u7D22\u672A\u5F52\u6863\u804A\u5929","archives.emptyUnarchived":"\u6682\u65E0\u672A\u5F52\u6863\u4F1A\u8BDD\u3002","archives.archiveSelected":"\u5F52\u6863","archives.openSession":"\u6253\u5F00","archives.moreActions":"\u66F4\u591A\u64CD\u4F5C","archives.archiveSelectedDesc":"\u5C06\u9009\u4E2D\u7684\u4F1A\u8BDD\u5F52\u6863\uFF0C\u5305\u542B\u5F53\u524D\u7B5B\u9009\u9690\u85CF\u7684\u5DF2\u9009\u9879\u3002\u4E4B\u540E\u53EF\u5728\u201C\u5DF2\u5F52\u6863\u201D\u4E2D\u67E5\u770B\u548C\u6062\u590D\u3002","archives.archiveSuccess":"\u5DF2\u5F52\u6863 {n} \u6761\u4F1A\u8BDD\u3002","archives.archiveBatchFailed":"\u6279\u91CF\u5F52\u6863\u5931\u8D25\uFF1A{detail}","archives.navigationUnavailable":"\u5F53\u524D\u5BBF\u4E3B\u65E0\u6CD5\u4FDD\u6301\u5F52\u6863\u5BF9\u8BDD\uFF0C\u8BF7\u4F7F\u7528\u201C\u6062\u590D\u5E76\u6253\u5F00\u201D\u3002","archives.sessionNotRetained":"\u5BBF\u4E3B\u672A\u4FDD\u7559\u76EE\u6807\u4F1A\u8BDD\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u6216\u6062\u590D\u540E\u518D\u8BD5\u3002","archives.restoreOpen":"\u6062\u590D\u6253\u5F00","archives.selectedCount":"\u5DF2\u9009 {n} \u6761","archives.selectionHiddenHint":"\u542B\u5F53\u524D\u672A\u663E\u793A\u7684 {hidden} \u6761\uFF0C\u4E5F\u5C06\u53C2\u4E0E\u64CD\u4F5C","archives.clearSelectionShort":"\u6E05\u7A7A","archives.restore":"\u6062\u590D","archives.archiveTitle":"\u5F52\u6863 {n} \u4E2A\u804A\u5929\uFF1F","archives.deleteSelectionShort":"\u5220\u9664","archives.clearSelection":"\u6E05\u7A7A\u9009\u62E9","group.ungrouped":"\u672A\u5206\u7EC4","session.new":"\u65B0\u4F1A\u8BDD","section.workspaces":"\u5DE5\u4F5C\u533A","section.sessions":"\u4F1A\u8BDD","viewOptions.label":"\u89C6\u56FE\u9009\u9879","groupBy.label":"\u5206\u7EC4\u65B9\u5F0F","groupBy.workspace":"\u6309\u5DE5\u4F5C\u533A","groupBy.flat":"\u5355\u5217\u8868","orderBy.label":"\u6392\u5E8F\u65B9\u5F0F","orderBy.manual":"\u624B\u52A8\u6392\u5E8F","orderBy.updated":"\u6700\u8FD1\u66F4\u65B0","sessions.expand":"\u5C55\u5F00\u5176\u4F59 {n} \u4E2A\u4F1A\u8BDD","sessions.collapse":"\u6536\u8D77","empty.none":"\u6682\u65E0\u4F1A\u8BDD","workspace.add":"\u6DFB\u52A0\u5DE5\u4F5C\u533A","search.sessions.aria":"\u641C\u7D22\u4F1A\u8BDD","search.placeholder":"\u641C\u7D22\u4F1A\u8BDD\u2026","search.clear":"\u6E05\u9664\u641C\u7D22","search.results.aria":"\u641C\u7D22\u7ED3\u679C","search.pending":"\u6B63\u5728\u641C\u7D22\u4F1A\u8BDD\u5386\u53F2\u2026","search.unavailable":"\u5185\u5BB9\u641C\u7D22\u6682\u4E0D\u53EF\u7528\uFF0C\u4EC5\u663E\u793A\u540D\u79F0\u5339\u914D\u3002","search.noMatches":"\u65E0\u5339\u914D\u4F1A\u8BDD","search.hasMore":"\u4EC5\u663E\u793A\u524D {n} \u6761\u7ED3\u679C\uFF0C\u8BF7\u7F29\u5C0F\u641C\u7D22\u8303\u56F4\u3002","menu.addWorkspace":"\u6DFB\u52A0\u5DE5\u4F5C\u533A\u2026","menu.unarchive":"\u53D6\u6D88\u5F52\u6863","menu.deleteSession":"\u5220\u9664\u4F1A\u8BDD","archived.badge":"\u5F52\u6863\u4F1A\u8BDD","archived.notOpenable":"\u5DF2\u5F52\u6863\uFF0C\u53D6\u6D88\u5F52\u6863\u540E\u53EF\u7EE7\u7EED\u5BF9\u8BDD","archives.title":"\u5F52\u6863\u4F1A\u8BDD","archives.description":"\u7BA1\u7406\u5DF2\u5F52\u6863\u4F1A\u8BDD\uFF0C\u6216\u9009\u62E9\u672A\u5F52\u6863\u4F1A\u8BDD\u8FDB\u884C\u6279\u91CF\u5F52\u6863\u3002","archives.viewProject":"GitHub","archives.feedback":"\u95EE\u9898\u53CD\u9988","archives.empty":"\u6682\u65E0\u5DF2\u5F52\u6863\u4F1A\u8BDD","archives.emptyFiltered":"\u6CA1\u6709\u7B26\u5408\u7B5B\u9009\u6761\u4EF6\u7684\u804A\u5929","archives.searchPlaceholder":"\u641C\u7D22\u5DF2\u5F52\u6863\u804A\u5929","archives.sortBy":"\u6392\u5E8F\u65B9\u5F0F","archives.sortLabel":"\u6392\u5E8F","archives.sortUpdated":"\u66F4\u65B0\u65F6\u95F4","archives.sortCreated":"\u521B\u5EFA\u65F6\u95F4","archives.sortAlphabetical":"\u6309\u5B57\u6BCD\u987A\u5E8F","archives.projectFilter":"\u6309\u9879\u76EE\u7B5B\u9009","archives.allProjects":"\u6240\u6709\u9879\u76EE","archives.sessionCount":"{n} \u4E2A\u804A\u5929","archives.selectAllFiltered":"\u5168\u9009\u5F53\u524D\u7B5B\u9009\u7ED3\u679C","archives.selectSession":"\u9009\u62E9\u4F1A\u8BDD\u201C{name}\u201D","archives.restoreSelected":"\u6062\u590D\u6240\u9009","archives.deleteSelected":"\u5220\u9664\u6240\u9009","archives.timestamp":"{date}\uFF0C{time}","archives.restoreProject":"\u6062\u590D\u9879\u76EE\u5168\u90E8\u804A\u5929","archives.restoreUngrouped":"\u5168\u90E8\u6062\u590D","archives.deleteProject":"\u5220\u9664\u9879\u76EE\u5168\u90E8\u804A\u5929","archives.deleteUngrouped":"\u5168\u90E8\u5220\u9664","archives.projectActions":"\u9879\u76EE\u201C{name}\u201D\u7684\u5F52\u6863\u64CD\u4F5C","archives.ungroupedActions":"\u672A\u5206\u7EC4\u804A\u5929\u7684\u5F52\u6863\u64CD\u4F5C","archives.restoreSuccess":"\u5DF2\u6062\u590D {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u3002","archives.restoreBatchFailed":"\u6279\u91CF\u6062\u590D\u5931\u8D25\uFF1A{detail}","archives.deleteSelectedTitle":"\u5220\u9664\u6240\u9009\u5DF2\u5F52\u6863\u804A\u5929","archives.deleteSelectedDesc":"\u5C06\u6C38\u4E45\u5220\u9664\u6240\u9009\u7684 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u53CA\u5176\u5B50\u4EE3\u7406\uFF08\u542B\u6B63\u5728\u8FD0\u884C\u7684\uFF09\u548C\u8BB0\u5F55\u3002\u5176\u4ED6\u804A\u5929\u4E0D\u4F1A\u53D7\u5F71\u54CD\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","archives.deleteSelectedConfirm":"\u5220\u9664\u6240\u9009\u804A\u5929","archives.deleteProjectTitle":"\u5220\u9664\u201C{name}\u201D\u4E2D\u7684\u5DF2\u5F52\u6863\u804A\u5929","archives.deleteProjectDesc":"\u5C06\u6C38\u4E45\u5220\u9664\u201C{name}\u201D\u4E2D\u7684 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u53CA\u5176\u5B50\u4EE3\u7406\u548C\u8BB0\u5F55\u3002\u9879\u76EE\u76EE\u5F55\u548C\u672A\u5F52\u6863\u804A\u5929\u4E0D\u4F1A\u53D7\u5F71\u54CD\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","archives.deleteProjectConfirm":"\u5220\u9664\u9879\u76EE\u5168\u90E8\u804A\u5929","archives.deleteUngroupedTitle":"\u5220\u9664\u672A\u5206\u7EC4\u7684\u5DF2\u5F52\u6863\u804A\u5929","archives.deleteUngroupedDesc":"\u5C06\u6C38\u4E45\u5220\u9664\u672A\u5206\u7EC4\u4E2D\u7684 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u53CA\u5176\u5B50\u4EE3\u7406\u548C\u8BB0\u5F55\u3002\u5176\u4ED6\u9879\u76EE\u548C\u672A\u5F52\u6863\u804A\u5929\u4E0D\u4F1A\u53D7\u5F71\u54CD\uFF0C\u6B64\u64CD\u4F5C\u4E0D\u53EF\u6062\u590D\u3002","archives.deleteUngroupedConfirm":"\u5220\u9664\u672A\u5206\u7EC4\u7684\u5168\u90E8\u804A\u5929","archives.deleteBatchPending":"\u6B63\u5728\u5220\u9664\u5DF2\u5F52\u6863\u804A\u5929\u2026","archives.deleteSuccess":"\u5DF2\u5220\u9664 {n} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\u3002","archives.deleteSuccessWithSkipped":"\u5DF2\u5220\u9664 {deleted} \u4E2A\u5DF2\u5F52\u6863\u804A\u5929\uFF1B\u53E6\u6E05\u7406 {skipped} \u4E2A\u5DF2\u4E0D\u5B58\u5728\u4F1A\u8BDD\u7684\u5F52\u6863\u8BB0\u5F55\u3002","archives.deleteSkipped":"\u5DF2\u6E05\u7406 {n} \u4E2A\u5DF2\u4E0D\u5B58\u5728\u4F1A\u8BDD\u7684\u5F52\u6863\u8BB0\u5F55\u3002","archives.deletePartial":"\u5DF2\u5220\u9664 {deleted} \u4E2A\u804A\u5929\uFF0C\u6E05\u7406 {skipped} \u4E2A\u5DF2\u4E0D\u5B58\u5728\u4F1A\u8BDD\u7684\u5F52\u6863\u8BB0\u5F55\uFF1B{failed} \u4E2A\u5220\u9664\u5931\u8D25\uFF1A{detail}","archives.unarchiveUnknown":"\u4F1A\u8BDD\u5DF2\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u53D6\u6D88\u5F52\u6863\u3002","archives.unarchiveFailed":"\u53D6\u6D88\u5F52\u6863\u5931\u8D25\uFF1A{detail}","archives.archiveUnknown":"\u4F1A\u8BDD\u5DF2\u4E0D\u5B58\u5728\uFF0C\u65E0\u6CD5\u5F52\u6863\u3002","archives.archiveFailed":"\u5F52\u6863\u5931\u8D25\uFF1A{detail}","archives.archiveActive":"\u4F1A\u8BDD\u4ECD\u5728\u8FD0\u884C\uFF08{kinds}\uFF09\u3002","archiveActive.title":"\u505C\u6B62\u5E76\u5F52\u6863","archiveActive.desc":"\u201C{name}\u201D\u4ECD\u6709\u6B63\u5728\u8FDB\u884C\u7684\u5DE5\u4F5C\uFF1A{kinds}\u3002\u5F52\u6863\u524D\u4F1A\u505C\u6B62\u8FD9\u4E9B\u5DE5\u4F5C\u3002","archiveActive.confirm":"\u505C\u6B62\u5E76\u5F52\u6863","archiveActive.pending":"\u6B63\u5728\u505C\u6B62\u5E76\u5F52\u6863\u2026","archives.forkFailed":"\u5206\u53C9\u4F1A\u8BDD\u5931\u8D25\uFF1A{detail}","deleteSession.title":"\u5220\u9664\u4F1A\u8BDD","deleteSession.desc":"\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","deleteSession.pending":"\u6B63\u5728\u5220\u9664\u4F1A\u8BDD\u2026","deleteSession.unknown":"\u4F1A\u8BDD\u5DF2\u4E0D\u5B58\u5728\u6216\u5DF2\u88AB\u5220\u9664\u3002","deleteSession.failed":"\u5220\u9664\u4F1A\u8BDD\u5931\u8D25\uFF1A{detail}","picker.loading":"\u6B63\u5728\u52A0\u8F7D\u5DE5\u4F5C\u533A\u2026","conflict.named":"\u5DF2\u5B58\u5728\u540D\u4E3A\u201C{name}\u201D\u7684\u5DE5\u4F5C\u533A\u3002","folderError.title":"\u65E0\u6CD5\u6253\u5F00\u6587\u4EF6\u5939","folderError.retry":"\u91CD\u65B0\u9009\u62E9",rename:"\u91CD\u547D\u540D","rename.workspace.title":"\u91CD\u547D\u540D\u5DE5\u4F5C\u533A","rename.session.title":"\u91CD\u547D\u540D\u4F1A\u8BDD","field.workspaceName":"\u5DE5\u4F5C\u533A\u540D\u79F0","field.sessionName":"\u4F1A\u8BDD\u540D\u79F0","delete.workspace":"\u5220\u9664\u5DE5\u4F5C\u533A","delete.desc":"\u5C06\u628A\u201C{name}\u201D\u4ECE\u5DE5\u4F5C\u533A\u5217\u8868\u4E2D\u79FB\u9664\u3002\u6587\u4EF6\u5939\u4E0E\u4F1A\u8BDD\u8BB0\u5F55\u4F1A\u4FDD\u7559\uFF0C\u5176\u4F1A\u8BDD\u5C06\u663E\u793A\u5728\u201C\u672A\u5206\u7EC4\u201D\u4E0B\u3002","delete.pending":"\u6B63\u5728\u5220\u9664\u5DE5\u4F5C\u533A\u2026","menu.fork":"\u5206\u53C9\u4F1A\u8BDD","menu.archiveSession":"\u5F52\u6863\u4F1A\u8BDD","menu.archiveWorkspace":"\u5F52\u6863\u5168\u90E8\u804A\u5929","archiveWorkspace.title":"\u5F52\u6863 {n} \u4E2A\u804A\u5929\uFF1F","archiveWorkspace.desc":"\u8FD9\u4F1A\u5C06\u201C{name}\u201D\u4E2D\u7684\u804A\u5929\u5F52\u6863\u3002\u4E4B\u540E\u4F60\u53EF\u4EE5\u5728\u5DF2\u5F52\u6863\u7684\u804A\u5929\u4E2D\u627E\u5230\u5B83\u4EEC\u3002","archiveWorkspace.confirm":"\u5168\u90E8\u5F52\u6863","archiveWorkspace.pending":"\u6B63\u5728\u5F52\u6863\u804A\u5929\u2026","actions.workspace.aria":"\u5DE5\u4F5C\u533A\u201C{name}\u201D\u7684\u64CD\u4F5C","actions.session.aria":"\u4F1A\u8BDD\u201C{name}\u201D\u7684\u64CD\u4F5C","actions.newSession.aria":"\u5728\u201C{name}\u201D\u4E2D\u65B0\u5EFA\u4F1A\u8BDD","status.running":"\u8FDB\u884C\u4E2D","status.subagentsRunning.one":"{n} \u4E2A\u5B50\u4EE3\u7406\u8FD0\u884C\u4E2D","status.subagentsRunning.other":"{n} \u4E2A\u5B50\u4EE3\u7406\u8FD0\u884C\u4E2D","status.idle":"\u7A7A\u95F2","status.waitingApproval":"\u7B49\u5F85\u5BA1\u6279","status.planReview":"\u8BA1\u5212\u5F85\u5BA1","status.waitingAnswer":"\u7B49\u5F85\u56DE\u7B54","status.completed":"\u5DF2\u5B8C\u6210","hover.created":"\u521B\u5EFA\u4E8E {time}","hover.copied":"\u5DF2\u590D\u5236","date.ymd":"{y}\u5E74{m}\u6708{d}\u65E5","time.now":"\u521A\u521A","time.minutes":"{n}\u5206\u949F","time.hours":"{n}\u5C0F\u65F6","time.days":"{n}\u5929","time.months":"{n}\u4E2A\u6708","time.years":"{n}\u5E74","time.ago":"{t}\u524D"},sr={...Ur,...Cr,...ls,"locale.language":"en","service.unavailable":"The service is not ready. Please retry.","archives.moreActions":"More actions","archives.archiveProject":"Archive all chats in this project","archives.archiveUngrouped":"Archive all ungrouped chats","archives.archiveProjectDesc":"Archive all {n} unarchived sessions in \u201C{name}\u201D, regardless of the current search filter. You can restore them in Archived.","archives.archiveUngroupedDesc":"Archive all {n} ungrouped, unarchived sessions, regardless of the current search filter. You can restore them in Archived.","archives.tab.archived":"Archived","archives.tab.unarchived":"Unarchived","archives.searchUnarchived":"Search unarchived chats","archives.emptyUnarchived":"No unarchived sessions.","archives.archiveSelected":"Archive","archives.openSession":"Open session","archives.archiveSelectedDesc":"Archive the selected sessions, including selections hidden by the current filter. You can view and restore them in Archived.","archives.archiveSuccess":"Archived {n} sessions.","archives.archiveBatchFailed":"Batch archive failed: {detail}","archives.navigationUnavailable":"This host cannot keep the conversation archived while opening it. Use \u201CRestore and open\u201D instead.","archives.sessionNotRetained":"The host did not keep the requested conversation open. Try again, or restore it before opening.","archives.restoreOpen":"Restore and open","archives.selectedCount":"{n} selected","archives.selectionHiddenHint":"Includes {hidden} hidden by the current filter; actions apply to them too.","archives.clearSelectionShort":"Clear","archives.restore":"Restore","archives.archiveTitle":"Archive {n} chats?","archives.deleteSelectionShort":"Delete","archives.clearSelection":"Clear selection","group.ungrouped":"Ungrouped","session.new":"New Session","section.workspaces":"Workspaces","section.sessions":"Sessions","viewOptions.label":"View options","groupBy.label":"Group by","groupBy.workspace":"Workspace","groupBy.flat":"In one list","orderBy.label":"Order by","orderBy.manual":"Manual","orderBy.updated":"Last updated","sessions.expand":"Show {n} more sessions","sessions.collapse":"Show less","empty.none":"No sessions yet","workspace.add":"Add workspace","search.sessions.aria":"Search sessions","search.placeholder":"Search sessions...","search.clear":"Clear search","search.results.aria":"Search results","search.pending":"Searching session history\u2026","search.unavailable":"Content search is temporarily unavailable. Showing name matches.","search.noMatches":"No matching sessions","search.hasMore":"Showing the first {n} results. Narrow your search.","menu.addWorkspace":"Add workspace\u2026","menu.unarchive":"Unarchive","menu.deleteSession":"Delete session","archived.badge":"Archived sessions","archived.notOpenable":"This session is archived. Unarchive it to continue the conversation.","archives.title":"Archived sessions","archives.description":"Manage archived sessions or select unarchived sessions to archive in bulk.","archives.viewProject":"GitHub","archives.feedback":"Issues","archives.empty":"No archived sessions.","archives.emptyFiltered":"No chats match your filters.","archives.searchPlaceholder":"Search archived chats","archives.sortBy":"Sort archived chats","archives.sortLabel":"Sort","archives.sortUpdated":"Last updated","archives.sortCreated":"Created","archives.sortAlphabetical":"Alphabetical","archives.projectFilter":"Filter by project","archives.allProjects":"All projects","archives.sessionCount":"{n} chats","archives.selectAllFiltered":"Select all results","archives.selectSession":"Select chat {name}","archives.restoreSelected":"Restore selected","archives.deleteSelected":"Delete selected","archives.timestamp":"{date}, {time}","archives.restoreProject":"Restore all chats in this project","archives.restoreUngrouped":"Restore all","archives.deleteProject":"Delete all chats in this project","archives.deleteUngrouped":"Delete all","archives.projectActions":"Archive actions for project {name}","archives.ungroupedActions":"Archive actions for ungrouped chats","archives.restoreSuccess":"Restored {n} archived chats.","archives.restoreBatchFailed":"Could not restore the archived chats: {detail}","archives.deleteSelectedTitle":"Delete selected archived chats","archives.deleteSelectedDesc":"This permanently deletes the selected {n} archived chats, their child agents (including any that are still running), and their records. Other chats are not affected. This cannot be undone.","archives.deleteSelectedConfirm":"Delete selected chats","archives.deleteProjectTitle":"Delete archived chats in {name}","archives.deleteProjectDesc":"This permanently deletes the {n} archived chats in {name}, their child agents, and their records. The project directory and unarchived chats are not affected. This cannot be undone.","archives.deleteProjectConfirm":"Delete all project chats","archives.deleteUngroupedTitle":"Delete ungrouped archived chats","archives.deleteUngroupedDesc":"This permanently deletes the {n} ungrouped archived chats, their child agents, and their records. Other projects and unarchived chats are not affected. This cannot be undone.","archives.deleteUngroupedConfirm":"Delete all ungrouped chats","archives.deleteBatchPending":"Deleting archived chats\u2026","archives.deleteSuccess":"Deleted {n} archived chats.","archives.deleteSuccessWithSkipped":"Deleted {deleted} archived chats and cleared {skipped} stale archive entries for sessions that no longer exist.","archives.deleteSkipped":"Cleared {n} stale archive entries for sessions that no longer exist.","archives.deletePartial":"Deleted {deleted} chats and cleared {skipped} stale archive entries; {failed} could not be deleted: {detail}","archives.unarchiveUnknown":"This session no longer exists, so it cannot be unarchived.","archives.unarchiveFailed":"Could not unarchive the session: {detail}","archives.archiveUnknown":"This session no longer exists, so it cannot be archived.","archives.archiveFailed":"Could not archive the session: {detail}","archives.archiveActive":"This conversation is still running ({kinds}).","archiveActive.title":"Stop and archive","archiveActive.desc":"\u201C{name}\u201D still has work in progress: {kinds}. Archiving stops that work first.","archiveActive.confirm":"Stop and archive","archiveActive.pending":"Stopping and archiving\u2026","archives.forkFailed":"Could not fork the session: {detail}","deleteSession.title":"Delete session","deleteSession.desc":"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.","deleteSession.pending":"Deleting session\u2026","deleteSession.unknown":"This session no longer exists or was already deleted.","deleteSession.failed":"Could not delete the session: {detail}","picker.loading":"Loading workspaces\u2026","conflict.named":"A workspace named \u201C{name}\u201D already exists.","folderError.title":"Couldn\u2019t open folder","folderError.retry":"Choose again",rename:"Rename","rename.workspace.title":"Rename workspace","rename.session.title":"Rename session","field.workspaceName":"Workspace name","field.sessionName":"Session name","delete.workspace":"Delete workspace","delete.desc":"This removes \u201C{name}\u201D from the workspace list. The folder and session logs will be kept. Its sessions will appear under Ungrouped.","delete.pending":"Deleting workspace\u2026","menu.fork":"Fork session","menu.archiveSession":"Archive session","menu.archiveWorkspace":"Archive all chats","archiveWorkspace.title":"Archive {n} chats?","archiveWorkspace.desc":"This archives the chats in \u201C{name}\u201D. You can find them later in Archived chats.","archiveWorkspace.confirm":"Archive all","archiveWorkspace.pending":"Archiving chats\u2026","actions.workspace.aria":"Workspace actions for {name}","actions.session.aria":"Session actions for {name}","actions.newSession.aria":"New session in {name}","status.running":"Running","status.subagentsRunning.one":"{n} subagent running","status.subagentsRunning.other":"{n} subagents running","status.idle":"Idle","status.waitingApproval":"Waiting for approval","status.planReview":"Plan awaiting review","status.waitingAnswer":"Waiting for answer","status.completed":"Completed","hover.created":"Created {time}","hover.copied":"Copied","date.ymd":"{y}-{m}-{d}","time.now":"now","time.minutes":"{n}min","time.hours":"{n}h","time.days":"{n}d","time.months":"{n}mo","time.years":"{n}y","time.ago":"{t} ago"},Ma={...Vr,...Ir,...cs,"locale.language":"ru","service.unavailable":"\u0421\u0435\u0440\u0432\u0438\u0441 \u0435\u0449\u0451 \u043D\u0435 \u0433\u043E\u0442\u043E\u0432. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435.","archives.moreActions":"\u0414\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E","archives.archiveProject":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.archiveUngrouped":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.archiveProjectDesc":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 {n} \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439 \u0432 \xAB{name}\xBB, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0444\u0438\u043B\u044C\u0442\u0440\u0430 \u043F\u043E\u0438\u0441\u043A\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0410\u0440\u0445\u0438\u0432\xBB.","archives.archiveUngroupedDesc":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 {n} \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439, \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u043E \u043E\u0442 \u0442\u0435\u043A\u0443\u0449\u0435\u0433\u043E \u0444\u0438\u043B\u044C\u0442\u0440\u0430 \u043F\u043E\u0438\u0441\u043A\u0430. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0410\u0440\u0445\u0438\u0432\xBB.","archives.tab.archived":"\u0410\u0440\u0445\u0438\u0432","archives.tab.unarchived":"\u041D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435","archives.searchUnarchived":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u0447\u0430\u0442\u0430\u043C","archives.emptyUnarchived":"\u041D\u0435\u0442 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.archiveSelected":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","archives.openSession":"\u041E\u0442\u043A\u0440\u044B\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","archives.archiveSelectedDesc":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0441\u0435\u0441\u0441\u0438\u0438, \u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0441\u043A\u0440\u044B\u0442\u044B\u0435 \u0442\u0435\u043A\u0443\u0449\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u043C. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0410\u0440\u0445\u0438\u0432\xBB.","archives.archiveSuccess":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043E \u0441\u0435\u0441\u0441\u0438\u0439: {n}.","archives.archiveBatchFailed":"\u041F\u0430\u043A\u0435\u0442\u043D\u0430\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F \u043D\u0435 \u0443\u0434\u0430\u043B\u0430\u0441\u044C: {detail}","archives.navigationUnavailable":"\u042D\u0442\u043E\u0442 \u0445\u043E\u0441\u0442 \u043D\u0435 \u043C\u043E\u0436\u0435\u0442 \u0434\u0435\u0440\u0436\u0430\u0442\u044C \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440 \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u043F\u0440\u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0438. \u0412\u043C\u0435\u0441\u0442\u043E \u044D\u0442\u043E\u0433\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 \xAB\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C\xBB.","archives.sessionNotRetained":"\u0425\u043E\u0441\u0442 \u043D\u0435 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u043B \u0437\u0430\u043F\u0440\u043E\u0448\u0435\u043D\u043D\u044B\u0439 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440 \u043E\u0442\u043A\u0440\u044B\u0442\u044B\u043C. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u0438\u043B\u0438 \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u0435\u0433\u043E \u043F\u0435\u0440\u0435\u0434 \u043E\u0442\u043A\u0440\u044B\u0442\u0438\u0435\u043C.","archives.restoreOpen":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u043E\u0442\u043A\u0440\u044B\u0442\u044C","archives.selectedCount":"\u0412\u044B\u0431\u0440\u0430\u043D\u043E: {n}","archives.selectionHiddenHint":"\u0412\u043A\u043B\u044E\u0447\u0430\u0435\u0442 {hidden}, \u0441\u043A\u0440\u044B\u0442\u044B\u0445 \u0442\u0435\u043A\u0443\u0449\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u043E\u043C; \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u043F\u0440\u0438\u043C\u0435\u043D\u044F\u044E\u0442\u0441\u044F \u0438 \u043A \u043D\u0438\u043C.","archives.clearSelectionShort":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C","archives.restore":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C","archives.archiveTitle":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C {n} \u0447\u0430\u0442\u043E\u0432?","archives.deleteSelectionShort":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C","archives.clearSelection":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u0432\u044B\u0431\u043E\u0440","group.ungrouped":"\u0411\u0435\u0437 \u0433\u0440\u0443\u043F\u043F\u044B","session.new":"\u041D\u043E\u0432\u0430\u044F \u0441\u0435\u0441\u0441\u0438\u044F","section.workspaces":"\u0420\u0430\u0431\u043E\u0447\u0438\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430","section.sessions":"\u0421\u0435\u0441\u0441\u0438\u0438","viewOptions.label":"\u041F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u044B \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430","groupBy.label":"\u0413\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E","groupBy.workspace":"\u0420\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","groupBy.flat":"\u0412 \u043E\u0434\u043D\u043E\u043C \u0441\u043F\u0438\u0441\u043A\u0435","orderBy.label":"\u041F\u043E\u0440\u044F\u0434\u043E\u043A","orderBy.manual":"\u0412\u0440\u0443\u0447\u043D\u0443\u044E","orderBy.updated":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435","sessions.expand":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451 {n} \u0441\u0435\u0441\u0441\u0438\u0439","sessions.collapse":"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043C\u0435\u043D\u044C\u0448\u0435","empty.none":"\u041F\u043E\u043A\u0430 \u043D\u0435\u0442 \u0441\u0435\u0441\u0441\u0438\u0439","workspace.add":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","search.sessions.aria":"\u041F\u043E\u0438\u0441\u043A \u0441\u0435\u0441\u0441\u0438\u0439","search.placeholder":"\u041F\u043E\u0438\u0441\u043A \u0441\u0435\u0441\u0441\u0438\u0439...","search.clear":"\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C \u043F\u043E\u0438\u0441\u043A","search.results.aria":"\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B \u043F\u043E\u0438\u0441\u043A\u0430","search.pending":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0438\u0441\u0442\u043E\u0440\u0438\u0438 \u0441\u0435\u0441\u0441\u0438\u0439\u2026","search.unavailable":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u043C\u0443 \u0432\u0440\u0435\u043C\u0435\u043D\u043D\u043E \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u0435\u043D. \u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u044E\u0442\u0441\u044F \u0441\u043E\u0432\u043F\u0430\u0434\u0435\u043D\u0438\u044F \u043F\u043E \u043D\u0430\u0437\u0432\u0430\u043D\u0438\u044F\u043C.","search.noMatches":"\u041D\u0435\u0442 \u043F\u043E\u0434\u0445\u043E\u0434\u044F\u0449\u0438\u0445 \u0441\u0435\u0441\u0441\u0438\u0439","search.hasMore":"\u041F\u043E\u043A\u0430\u0437\u0430\u043D\u044B \u043F\u0435\u0440\u0432\u044B\u0435 {n} \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u043E\u0432. \u0421\u0443\u0437\u044C\u0442\u0435 \u043F\u043E\u0438\u0441\u043A.","menu.addWorkspace":"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E\u2026","menu.unarchive":"\u0412\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430","menu.deleteSession":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","archived.badge":"\u0410\u0440\u0445\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u0439","archived.notOpenable":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0432 \u0430\u0440\u0445\u0438\u0432\u0435. \u0412\u0435\u0440\u043D\u0438\u0442\u0435 \u0435\u0451 \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430, \u0447\u0442\u043E\u0431\u044B \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u044C \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440.","archives.title":"\u0410\u0440\u0445\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u0439","archives.description":"\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C\u0438 \u0441\u0435\u0441\u0441\u0438\u044F\u043C\u0438 \u0438\u043B\u0438 \u0432\u044B\u0431\u043E\u0440 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0434\u043B\u044F \u043F\u0430\u043A\u0435\u0442\u043D\u043E\u0439 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438.","archives.viewProject":"GitHub","archives.feedback":"\u041F\u0440\u043E\u0431\u043B\u0435\u043C\u044B","archives.empty":"\u041D\u0435\u0442 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.emptyFiltered":"\u041D\u0438 \u043E\u0434\u0438\u043D \u0447\u0430\u0442 \u043D\u0435 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u0430\u0448\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u0430\u043C.","archives.searchPlaceholder":"\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u0447\u0430\u0442\u0430\u043C","archives.sortBy":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432","archives.sortLabel":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0430","archives.sortUpdated":"\u041F\u043E\u0441\u043B\u0435\u0434\u043D\u0435\u0435 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u0435","archives.sortCreated":"\u0414\u0430\u0442\u0430 \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F","archives.sortAlphabetical":"\u041F\u043E \u0430\u043B\u0444\u0430\u0432\u0438\u0442\u0443","archives.projectFilter":"\u0424\u0438\u043B\u044C\u0442\u0440 \u043F\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0443","archives.allProjects":"\u0412\u0441\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u044B","archives.sessionCount":"{n} \u0447\u0430\u0442\u043E\u0432","archives.selectAllFiltered":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B","archives.selectSession":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0447\u0430\u0442 {name}","archives.restoreSelected":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435","archives.deleteSelected":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435","archives.timestamp":"{date}, {time}","archives.restoreProject":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.restoreUngrouped":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0432\u0441\u0435","archives.deleteProject":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u044D\u0442\u043E\u0433\u043E \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.deleteUngrouped":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435","archives.projectActions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u043F\u0440\u043E\u0435\u043A\u0442\u0430 {name}","archives.ungroupedActions":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u0438 \u0434\u043B\u044F \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432","archives.restoreSuccess":"\u0412\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432: {n}.","archives.restoreBatchFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u043E\u0441\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B: {detail}","archives.deleteSelectedTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteSelectedDesc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 {n} \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432, \u0438\u0445 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0435\u0449\u0451 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435) \u0438 \u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0438. \u0414\u0440\u0443\u0433\u0438\u0435 \u0447\u0430\u0442\u044B \u043D\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","archives.deleteSelectedConfirm":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteProjectTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B \u0432 {name}","archives.deleteProjectDesc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 {n} \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432 \u0432 {name}, \u0438\u0445 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B \u0438 \u0437\u0430\u043F\u0438\u0441\u0438. \u041A\u0430\u0442\u0430\u043B\u043E\u0433 \u043F\u0440\u043E\u0435\u043A\u0442\u0430 \u0438 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B \u043D\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","archives.deleteProjectConfirm":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B \u043F\u0440\u043E\u0435\u043A\u0442\u0430","archives.deleteUngroupedTitle":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteUngroupedDesc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 {n} \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432, \u0438\u0445 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B \u0438 \u0437\u0430\u043F\u0438\u0441\u0438. \u0414\u0440\u0443\u0433\u0438\u0435 \u043F\u0440\u043E\u0435\u043A\u0442\u044B \u0438 \u043D\u0435\u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B \u043D\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044E\u0442\u0441\u044F. \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","archives.deleteUngroupedConfirm":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435 \u043D\u0435\u0441\u0433\u0440\u0443\u043F\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0435 \u0447\u0430\u0442\u044B","archives.deleteBatchPending":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432\u2026","archives.deleteSuccess":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432: {n}.","archives.deleteSuccessWithSkipped":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E {deleted} \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u043E\u0432 \u0438 \u043E\u0447\u0438\u0449\u0435\u043D\u043E {skipped} \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u0430 \u0434\u043B\u044F \u043D\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.deleteSkipped":"\u041E\u0447\u0438\u0449\u0435\u043D\u043E {n} \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u0430 \u0434\u043B\u044F \u043D\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044E\u0449\u0438\u0445 \u0441\u0435\u0441\u0441\u0438\u0439.","archives.deletePartial":"\u0423\u0434\u0430\u043B\u0435\u043D\u043E {deleted} \u0447\u0430\u0442\u043E\u0432 \u0438 \u043E\u0447\u0438\u0449\u0435\u043D\u043E {skipped} \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0430\u0440\u0445\u0438\u0432\u0430; {failed} \u043D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C: {detail}","archives.unarchiveUnknown":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0435\u0451 \u043D\u0435\u043B\u044C\u0437\u044F \u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430.","archives.unarchiveFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0432\u0435\u0440\u043D\u0443\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E \u0438\u0437 \u0430\u0440\u0445\u0438\u0432\u0430: {detail}","archives.archiveUnknown":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442, \u043F\u043E\u044D\u0442\u043E\u043C\u0443 \u0435\u0451 \u043D\u0435\u043B\u044C\u0437\u044F \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C.","archives.archiveFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E: {detail}","archives.archiveActive":"\u042D\u0442\u043E\u0442 \u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F ({kinds}).","archiveActive.title":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","archiveActive.desc":"\u0412 \xAB{name}\xBB \u0435\u0449\u0451 \u0438\u0434\u0451\u0442 \u0440\u0430\u0431\u043E\u0442\u0430: {kinds}. \u0410\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u043E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442 \u0435\u0451.","archiveActive.confirm":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u0438 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C","archiveActive.pending":"\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0430 \u0438 \u0430\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F\u2026","archives.forkFailed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0441\u043E\u0437\u0434\u0430\u0442\u044C \u0432\u0435\u0442\u043A\u0443 \u0441\u0435\u0441\u0441\u0438\u0438: {detail}","deleteSession.title":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","deleteSession.desc":"\u042D\u0442\u043E \u043E\u043A\u043E\u043D\u0447\u0430\u0442\u0435\u043B\u044C\u043D\u043E \u0443\u0434\u0430\u043B\u0438\u0442 \u0441\u0435\u0441\u0441\u0438\u044E \xAB{name}\xBB, \u0435\u0451 \u0434\u043E\u0447\u0435\u0440\u043D\u0438\u0435 \u0430\u0433\u0435\u043D\u0442\u044B (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u0435\u0449\u0451 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0449\u0438\u0435) \u0438 \u0432\u0441\u0435 \u0435\u0451 \u0437\u0430\u043F\u0438\u0441\u0438 (\u0440\u0430\u0437\u0433\u043E\u0432\u043E\u0440, \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043A\u0443, \u043A\u044D\u0448). \u042D\u0442\u043E \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043D\u0435\u043E\u0431\u0440\u0430\u0442\u0438\u043C\u043E.","deleteSession.pending":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0441\u0435\u0441\u0441\u0438\u0438\u2026","deleteSession.unknown":"\u042D\u0442\u0430 \u0441\u0435\u0441\u0441\u0438\u044F \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0438\u043B\u0438 \u0443\u0436\u0435 \u0443\u0434\u0430\u043B\u0435\u043D\u0430.","deleteSession.failed":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0443\u0434\u0430\u043B\u0438\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E: {detail}","picker.loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0438\u0445 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u2026","conflict.named":"\u0420\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E \u0441 \u0438\u043C\u0435\u043D\u0435\u043C \xAB{name}\xBB \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.","folderError.title":"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0442\u043A\u0440\u044B\u0442\u044C \u043F\u0430\u043F\u043A\u0443","folderError.retry":"\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0441\u043D\u043E\u0432\u0430",rename:"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C","rename.workspace.title":"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","rename.session.title":"\u041F\u0435\u0440\u0435\u0438\u043C\u0435\u043D\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","field.workspaceName":"\u0418\u043C\u044F \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430","field.sessionName":"\u0418\u043C\u044F \u0441\u0435\u0441\u0441\u0438\u0438","delete.workspace":"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0440\u0430\u0431\u043E\u0447\u0435\u0435 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u043E","delete.desc":"\u042D\u0442\u043E \u0443\u0434\u0430\u043B\u0438\u0442 \xAB{name}\xBB \u0438\u0437 \u0441\u043F\u0438\u0441\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0438\u0445 \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432. \u041F\u0430\u043F\u043A\u0430 \u0438 \u0436\u0443\u0440\u043D\u0430\u043B\u044B \u0441\u0435\u0441\u0441\u0438\u0439 \u043E\u0441\u0442\u0430\u043D\u0443\u0442\u0441\u044F. \u0415\u0433\u043E \u0441\u0435\u0441\u0441\u0438\u0438 \u043F\u043E\u044F\u0432\u044F\u0442\u0441\u044F \u0432 \u0440\u0430\u0437\u0434\u0435\u043B\u0435 \xAB\u0411\u0435\u0437 \u0433\u0440\u0443\u043F\u043F\u044B\xBB.","delete.pending":"\u0423\u0434\u0430\u043B\u0435\u043D\u0438\u0435 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430\u2026","menu.fork":"\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0432\u0435\u0442\u043A\u0443 \u0441\u0435\u0441\u0441\u0438\u0438","menu.archiveSession":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0441\u0435\u0441\u0441\u0438\u044E","menu.archiveWorkspace":"\u0417\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435 \u0447\u0430\u0442\u044B","archiveWorkspace.title":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C {n} \u0447\u0430\u0442\u043E\u0432?","archiveWorkspace.desc":"\u042D\u0442\u043E \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0447\u0430\u0442\u044B \u0432 \xAB{name}\xBB. \u0418\u0445 \u043C\u043E\u0436\u043D\u043E \u043D\u0430\u0439\u0442\u0438 \u043F\u043E\u0437\u0436\u0435 \u0432 \u0437\u0430\u0430\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0447\u0430\u0442\u0430\u0445.","archiveWorkspace.confirm":"\u0410\u0440\u0445\u0438\u0432\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0432\u0441\u0435","archiveWorkspace.pending":"\u0410\u0440\u0445\u0438\u0432\u0430\u0446\u0438\u044F \u0447\u0430\u0442\u043E\u0432\u2026","actions.workspace.aria":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043F\u0440\u043E\u0441\u0442\u0440\u0430\u043D\u0441\u0442\u0432\u0430 \u0434\u043B\u044F {name}","actions.session.aria":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0441\u0435\u0441\u0441\u0438\u0438 \u0434\u043B\u044F {name}","actions.newSession.aria":"\u041D\u043E\u0432\u0430\u044F \u0441\u0435\u0441\u0441\u0438\u044F \u0432 {name}","status.running":"\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F","status.subagentsRunning.one":"{n} \u043F\u043E\u0434\u0430\u0433\u0435\u043D\u0442 \u0440\u0430\u0431\u043E\u0442\u0430\u0435\u0442","status.subagentsRunning.other":"{n} \u043F\u043E\u0434\u0430\u0433\u0435\u043D\u0442\u043E\u0432 \u0440\u0430\u0431\u043E\u0442\u0430\u044E\u0442","status.idle":"\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u0435","status.waitingApproval":"\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u0435 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F","status.planReview":"\u041F\u043B\u0430\u043D \u043E\u0436\u0438\u0434\u0430\u0435\u0442 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438","status.waitingAnswer":"\u041E\u0436\u0438\u0434\u0430\u043D\u0438\u0435 \u043E\u0442\u0432\u0435\u0442\u0430","status.completed":"\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043D\u043E","hover.created":"\u0421\u043E\u0437\u0434\u0430\u043D\u043E {time}","hover.copied":"\u0421\u043A\u043E\u043F\u0438\u0440\u043E\u0432\u0430\u043D\u043E","date.ymd":"{y}-{m}-{d}","time.now":"\u0441\u0435\u0439\u0447\u0430\u0441","time.minutes":"{n}\u043C\u0438\u043D","time.hours":"{n}\u0447","time.days":"{n}\u0434","time.months":"{n}\u043C\u0435\u0441","time.years":"{n}\u0433","time.ago":"{t} \u043D\u0430\u0437\u0430\u0434"},ft="archive-manager-workspace",rr="archiveManager.sidebar.directoryFlow",Oa=["slots","sessions","workspaces","locale","remote","typert"];function ns(e){return{getSnapshot:e.getSnapshot.bind(e),subscribe:e.subscribe.bind(e)}}t(ns,"bindObservable");function ar(e){return async s=>{if(typeof e?.unarchiveSession!="function")throw new Error("archive-manager: host unarchiveSession is unavailable");await e.unarchiveSession(s)}}t(ar,"createUnarchiveSession");async function ss(e,s,a){let l=new Set(e.list?.getSnapshot?.()?.archivedSessionIds??[]),h=new Set;for(let f of s)if(!(typeof f!="string"||f.length===0||h.has(f))){h.add(f);try{await e.archiveSession(f)}catch(w){throw w!==null&&typeof w=="object"&&pn(w)!==void 0&&typeof we(w).sessionId!="string"&&Object.assign(w,{sessionId:f}),w}}typeof a=="function"&&await a();let p=[...e.list?.getSnapshot?.()?.archivedSessionIds??[]];return{archivedSessionIds:p,archivedSessionIdsAdded:p.filter(f=>!l.has(f))}}t(ss,"archiveSessionsViaOfficial");async function ir(e,s,a,l){let h=new Set(e.list?.getSnapshot?.()?.archivedSessionIds??[]),p=new Set,f=typeof l=="function"?l:_=>e.unarchiveSession?.(_);for(let _ of s)typeof _!="string"||_.length===0||p.has(_)||(p.add(_),await f(_));typeof a=="function"&&await a();let w=[...e.list?.getSnapshot?.()?.archivedSessionIds??[]];return{archivedSessionIds:w,unarchivedSessionIds:[...h].filter(_=>!w.includes(_))}}t(ir,"unarchiveSessionsViaOfficial");async function Ha(e){Pa(e);let s=e.get("remote"),a=t(()=>{},"disposeRemote");return s!==void 0&&(a=await s.$mount(It)),async()=>{await a()}}t(Ha,"apply");function Pa(e){e.effect(()=>e.locale.register(ft,{zh:nr,en:sr,ru:Ma}),"dsh-archive-manager: dictionaries"),e.effect(()=>Br({endpoint:"/api/michengai/dsh-archive-manager/update",packageName:"@michengai/dsh-archive-manager",titleRowSelector:".dsham_settingsTitleRow",linksSelector:".dsham_settingsLinks",zhName:"\u5F52\u6863\u4F1A\u8BDD",enName:"Archived sessions",ruName:"\u0410\u0440\u0445\u0438\u0432 \u0441\u0435\u0441\u0441\u0438\u0439",createIcon:Ge}),"dsh-archive-manager: plugin update ui");let s=t(()=>e.get("uiWorkspace"),"uiWorkspaceAt"),a={},l,h=t(g=>(l=jr(g,e.sessions,e.workspaces,{onOpened:t(()=>e.get("layout")?.selectPanel(null),"onOpened"),beginNavigation:t(()=>e.get("layout")?.beginNavigation?.(),"beginNavigation")}),()=>l?.dispose()),"attachArchiveNavigation");typeof e.inject=="function"?e.inject(["uiWorkspace"],g=>h(g.uiWorkspace??s())):e.effect(()=>h(s()),"archive-manager: explicit archived navigation");let p=t(g=>{if(l===void 0)throw new Ot("navigationUnavailable");return es.request(g),l.open(g)},"openConversation"),f=t(async g=>{e.get("layout")?.beginNavigation?.(),es.request(g)},"focusSessionWorkspace"),w=t(async(g,N)=>{let E=await e.sessions.search(g,N);if(!E.ok)throw new Error(E.error.message);return E.value},"searchSessions"),A=t(g=>({getSnapshot:t(()=>e.slots.entries(g).length>0,"getSnapshot"),subscribe:t(N=>e.slots.subscribe(g,N),"subscribe")}),"flowSource")(rr),S=t(async()=>{if(typeof e.sessions.refresh!="function")return null;try{return await e.sessions.refresh(),null}catch(g){return console.warn("archive-manager: restored archived sessions but session list refresh failed:",g),g instanceof Error?g.message:String(g)}},"refreshSessionList"),x=ar(e.workspaces),b=t(async(g,...N)=>{let E=e.get("remote.workspaceRegistry");if(!E||typeof E[g]!="function")throw new Error(e.locale.bind(ft)("service.unavailable"));let ae=await E[g].apply(E,N);if(!ae.ok)throw new Error(ae.error.message);return ae.value},"registryCall"),u=t(g=>b("sessionDetails",g),"sessionDetails"),me=t(g=>b("diagnoseSession",g),"diagnoseSession"),je=t(g=>b("repairSession",g),"repairSession"),oe=t(g=>b("searchArchivedContent",g),"searchArchivedContent"),He=t(g=>b("searchSessionContent",g),"searchSessionContent"),Pe=t(g=>b("previewArchivedSession",g),"previewArchivedSession"),le=t(()=>b("favoriteSessions"),"favoriteSessions"),P=t(g=>b("setSessionFavorite",g),"setSessionFavorite"),U=Lr({workspaces:e.workspaces.list,sessions:e.sessions.list,archive:t(g=>e.workspaces.archiveSession(g),"archive"),restore:t(async g=>{await x(g)},"restore"),deleteOne:t(async g=>{let N=e.get("remote.workspaceRegistry");if(!N)throw new Error(e.locale.bind(ft)("service.unavailable"));let E=await N.deleteSession(g);if(!E.ok)throw new Error(E.error.message)},"deleteOne"),getFavorites:le,refresh:t(()=>e.sessions.refresh?.(),"refresh"),currentSessionId:ot}),ue=t(async g=>{await x(g),await S()},"unarchiveSession"),se=t(async g=>{let E=(e.workspaces.list?.getSnapshot?.()?.items??[]).find(Ne=>Ne.workspaceId===g);if(E===void 0)throw new Error(`unknown workspace "${g}"`);return ss(e.workspaces,E.sessionIds,S)},"archiveWorkspaceSessions"),De=t(async g=>{let N=e.get("remote.workspaceRegistry");if(N===void 0)throw new Error("archive-manager remote service is unavailable");let E=await N.deleteSession(g);if(!E.ok)throw new Error(E.error.message);await S()},"deleteSession"),C=t(async g=>ss(e.workspaces,g,S),"archiveSessions"),re=t(async g=>{let N=e.workspaces.list?.getSnapshot?.()??{archivedSessionIds:[],items:[]},E=mn(N.archivedSessionIds,N.items,g);return ir(e.workspaces,E,S,x)},"unarchiveSessions"),he=t(async g=>{let N=e.get("remote.workspaceRegistry");if(N===void 0)throw new Error("archive-manager remote service is unavailable");let E=await N.deleteArchivedSessions(g);if(!E.ok)throw new Error(E.error.message);let Ne=await S();return{...E.value,refreshError:Ne}},"deleteArchivedSessions"),Ie=t(async()=>{let g=e.get("remote.workspaceRegistry");if(g===void 0)throw new Error("archive-manager remote service is unavailable");let N=await g.archivedSessionMetadata();if(!N.ok)throw new Error(N.error.message);if(N.value.repairedSessionIds?.length>0&&typeof e.sessions.refresh=="function")try{await e.sessions.refresh()}catch(E){console.warn("archive-manager: repaired archived projections but session list refresh failed:",E)}return N.value},"archivedSessionMetadata"),$=t(()=>({startSession:t(g=>{let N=s();N!==void 0?N.startSession(g):e.workspaces.startSession(g)},"startSession"),open:t(g=>{let N=s();if(typeof N?.openSession!="function")throw new Error("archive-manager: \u5BBF\u4E3B\u672A\u63D0\u4F9B\u4F1A\u8BDD\u6253\u5F00\u63A5\u53E3\u3002");N.openSession(g)},"open"),searchSessions:w,searchResultLimit:e.sessions.searchResultLimit,renameSession:t(async(g,N)=>{let E=t(async ae=>{let Ae=await ae.rename(N);if(!Ae.ok)throw new Error(Ae.error.message)},"rename");if(typeof e.sessions.using=="function"){await e.sessions.using(g,{source:"workspaceOperation"},ae=>E(ae.binding.session));return}let Ne=e.sessions.binding(g)?.session;if(Ne===void 0)throw new Error(`unknown session "${g}"`);await E(Ne)},"renameSession"),forkSession:t(g=>{let N=s();return typeof N?.forkSession=="function"?N.forkSession(g):e.sessions.fork({sessionId:g,increaseTitle:!0}).then(E=>{if(typeof N?.openSession!="function")throw new Error("archive-manager: \u5BBF\u4E3B\u672A\u63D0\u4F9B\u4F1A\u8BDD\u6253\u5F00\u63A5\u53E3\u3002");N.openSession(E)})},"forkSession"),renameWorkspace:t(async(g,N)=>{await e.workspaces.rename(g,N)},"renameWorkspace"),deleteWorkspace:t(async g=>{await e.workspaces.delete(g)},"deleteWorkspace"),insertWorkspaceBefore:t(async(g,N)=>{await e.workspaces.insertBefore(g,N)},"insertWorkspaceBefore"),archiveSession:t(async(g,N)=>{await e.workspaces.archiveSession(g,N)},"archiveSession"),archiveWorkspaceSessions:se,unarchiveSession:ue,deleteSession:De,insertSessionBefore:t(async(g,N,E)=>{await e.workspaces.insertSessionBefore(g,N,E)},"insertSessionBefore"),createWorkspace:t(g=>e.workspaces.create(g),"createWorkspace"),hooks:{directoryFlow:A}}),"browserInjected"),ge="sidebar.workspaces.session.menu.item",ye=null,Ue=new Set,V=t(g=>{ye=g;for(let N of Ue)N()},"publishDeleteTarget");function ce(){return i.useSyncExternalStore(g=>(Ue.add(g),()=>{Ue.delete(g)}),()=>ye,()=>ye)}t(ce,"useDeleteRequest");function ee({sessionId:g,displayTitle:N,useMenuOpenState:E,t:Ne}){let[,ae]=E(),Ae=c.MenuItemButton,We=(0,n.jsx)(c.IconTrashOutlineRegular,{size:14}),Ze=t(()=>{ae(!1),V({sessionId:g,title:N})},"onSelect");return typeof Ae=="function"?(0,n.jsx)(Ae,{danger:!0,icon:We,onSelect:Ze,children:Ne("menu.deleteSession")}):(0,n.jsx)("button",{type:"button",role:"menuitem",onClick:Ze,children:Ne("menu.deleteSession")})}t(ee,"DeleteSessionMenuItem");function X({t:g}){let N=ce(),[E,Ne]=(0,i.useState)(!1),[ae,Ae]=(0,i.useState)(null);if(N===null)return null;let We=t(()=>{E||(Ae(null),V(null))},"close"),Ze=t(()=>{Ne(!0),Ae(null),De(N.sessionId).then(()=>{Ne(!1),V(null)}).catch(Ce=>{Ne(!1),Ae(Dn(Ce,g))})},"confirm");return(0,n.jsx)(O,{open:!0,onClose:We,title:g("deleteSession.title"),footer:(0,n.jsxs)(n.Fragment,{children:[I({disabled:E,onClick:We,children:g("cancel")}),I({danger:!0,disabled:E,onClick:Ze,children:g("deleteSession.title")})]}),children:[E&&(0,n.jsx)("div",{role:"status",children:g("deleteSession.pending")}),ae!==null&&(0,n.jsx)("div",{role:"alert",children:ae})]})}t(X,"DeleteSessionOverlay");function ze(){return typeof e.slots.entries!="function"?!1:e.slots.entries("sidebar.workspaces").some(g=>g.children?.[ge]!==void 0)}t(ze,"hostSidebarDeclaresSessionMenu");let ve,J,Fe,Te=t(()=>{let g=ze()?"menu":"waiting";g!==ve&&(ve=g,g==="menu"&&(J??=e.slots.inject(ge,()=>e.slots.register({name:ge,id:"archive-manager.delete-session",order:500,locale:ft,inject:t(()=>({}),"inject")},ee)),Fe??=e.slots.inject("shell.overlay",()=>e.slots.register({name:"shell.overlay",id:"archive-manager.delete-session",locale:ft,inject:t(()=>({t:e.locale.bind(ft)}),"inject")},X))))},"reconcileSidebar");Te();let q=typeof e.on=="function"?e.on("slots/changed",g=>{if(g==="sidebar.workspaces")try{Te()}catch(N){console.warn("archive-manager: sidebar mode switch failed",N)}}):void 0;e.effect(()=>()=>{q?.(),J?.(),Fe?.()},"archive-manager: sidebar mode"),e.slots.inject("settings.section",()=>e.slots.register({name:"settings.section",id:"archived-sessions",order:45,label:t(()=>e.locale.bind(ft)("archived.badge"),"label"),icon:"archive",locale:ft,inject:t(()=>({archiveSessions:C,archiveSession:t((g,N)=>e.workspaces.archiveSession(g,N),"archiveSession"),sessionStore:ns(e.sessions.list),workspaceStore:ns(e.workspaces.list),unarchiveSession:ue,deleteSession:De,unarchiveSessions:re,deleteArchivedSessions:he,archivedSessionMetadata:Ie,openConversation:p,focusSessionWorkspace:f,viewState:a,favoriteSessions:le,setSessionFavorite:P,organizeBatch:U,diagnoseSession:me,repairSession:je,sessionDetails:u,searchSessionContent:He,searchArchivedContent:oe,previewArchivedSession:Pe,t:e.locale.bind(ft)}),"inject")},ws))}t(Pa,"applyWorkspaceBrowser");let za=t(()=>{if(typeof document>"u")return;let e=[["@michengai/dsh-archive-manager/Rows.module.css",aa],["@michengai/dsh-archive-manager/WorkspacePicker.module.css",ma],["@michengai/dsh-archive-manager/WorkspaceBrowser.module.css",fa]];for(let[s,a]of e){if(document.querySelector("style[data-plugin-css="+JSON.stringify(s)+"]")!==null)continue;let l=document.createElement("style");l.dataset.plugin="@michengai/dsh-archive-manager",l.dataset.pluginCss=s,l.textContent=a,document.head.appendChild(l)}},"ensureLegacyWorkspaceCss");async function rs(e,s,a,l){try{await s(e)}catch(h){a(ea(h,l))}}return t(rs,"forkWithFeedback"),d.__test={forkWithFeedback:rs,unarchivedSessionIds:Qs,ArchiveSelectionToolbar:Xs,ArchivedSessionsSection:ws,zh:nr,en:sr,displayTitle:qe,sessionVisible:Kt,indexSubagentDescendants:An,isUnknownSessionError:jn,deriveGroups:Ns,deriveFlat:Ms,deriveSearchResults:Os,deriveArchivedGroups:er,sortArchivedGroups:tr,deriveArchivedBatchIds:mn,archivedSessionIdsInGroups:Ys,pruneArchivedSelection:Zs,toggleArchivedSelection:ts,archivedDeleteFeedback:Js,archiveableWorkspaceSessionCount:$n,archiveWorkspaceDialogTarget:Cs,archiveWorkspaceDialogFailureState:Is,activeSessionActivity:pn,activeSessionRefusal:Ss,activeArchiveFromMessage:ks,archiveSessionsViaOfficial:ss,unarchiveSessionsViaOfficial:ir,createUnarchiveSession:ar,createWorkspaceViewStore:Yr,migrateWorkspaceViewPersist:ys,WORKSPACE_VIEW_PERSIST_KEY:En,LEGACY_WORKSPACE_VIEW_PERSIST_KEY:vs,bindObservable:ns,groupByWorkspace:Rs,byRecency:hn,ARCHIVE_MANAGER_REMOTE:It,currentSessionId:ot,ensureLegacyWorkspaceCss:za},d.apply=Ha,d.inject=Oa,o.exports}t(di,"startArchiveClient");
307
33
 
308
34
  return module.exports.startArchiveClient(require);
309
35
  }
310
36
  });
311
37
  /*!
312
- Third-party notices for the 40 packages bundled into this file.
313
-
314
- @ant-design/colors
315
-
316
- MIT LICENSE
317
-
318
- Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
319
-
320
- Permission is hereby granted, free of charge, to any person obtaining
321
- a copy of this software and associated documentation files (the
322
- "Software"), to deal in the Software without restriction, including
323
- without limitation the rights to use, copy, modify, merge, publish,
324
- distribute, sublicense, and/or sell copies of the Software, and to
325
- permit persons to whom the Software is furnished to do so, subject to
326
- the following conditions:
327
-
328
- The above copyright notice and this permission notice shall be
329
- included in all copies or substantial portions of the Software.
330
-
331
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
332
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
333
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
334
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
335
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
336
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
337
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
338
-
339
- @ant-design/cssinjs
340
-
341
- The MIT License (MIT)
342
-
343
- Copyright (c) 2019-present afc163
344
-
345
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
346
-
347
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
348
-
349
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
350
-
351
- @ant-design/cssinjs-utils
352
-
353
- The MIT License (MIT)
354
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
355
-
356
- Permission is hereby granted, free of charge, to any person obtaining a copy
357
- of this software and associated documentation files (the "Software"), to deal
358
- in the Software without restriction, including without limitation the rights
359
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
360
- copies of the Software, and to permit persons to whom the Software is
361
- furnished to do so, subject to the following conditions:
362
-
363
- The above copyright notice and this permission notice shall be included in
364
- all copies or substantial portions of the Software.
365
-
366
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
367
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
368
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
369
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
370
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
371
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
372
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
373
-
374
- @ant-design/fast-color
375
-
376
- The MIT License (MIT)
377
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
378
-
379
- Permission is hereby granted, free of charge, to any person obtaining a copy
380
- of this software and associated documentation files (the "Software"), to deal
381
- in the Software without restriction, including without limitation the rights
382
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
383
- copies of the Software, and to permit persons to whom the Software is
384
- furnished to do so, subject to the following conditions:
385
-
386
- The above copyright notice and this permission notice shall be included in
387
- all copies or substantial portions of the Software.
388
-
389
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
390
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
391
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
392
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
393
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
394
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
395
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
396
-
397
- @ant-design/icons
398
-
399
- MIT LICENSE
400
-
401
- Copyright (c) 2018-present Ant UED, https://xtech.antfin.com/
402
-
403
- Permission is hereby granted, free of charge, to any person obtaining
404
- a copy of this software and associated documentation files (the
405
- "Software"), to deal in the Software without restriction, including
406
- without limitation the rights to use, copy, modify, merge, publish,
407
- distribute, sublicense, and/or sell copies of the Software, and to
408
- permit persons to whom the Software is furnished to do so, subject to
409
- the following conditions:
410
-
411
- The above copyright notice and this permission notice shall be
412
- included in all copies or substantial portions of the Software.
413
-
414
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
415
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
416
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
417
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
418
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
419
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
420
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
421
-
422
- @ant-design/icons-svg
423
-
424
- MIT (declared in package.json)
425
-
426
- @babel/runtime
427
-
428
- MIT License
429
-
430
- Copyright (c) 2014-present Sebastian McKenzie and other contributors
431
-
432
- Permission is hereby granted, free of charge, to any person obtaining
433
- a copy of this software and associated documentation files (the
434
- "Software"), to deal in the Software without restriction, including
435
- without limitation the rights to use, copy, modify, merge, publish,
436
- distribute, sublicense, and/or sell copies of the Software, and to
437
- permit persons to whom the Software is furnished to do so, subject to
438
- the following conditions:
439
-
440
- The above copyright notice and this permission notice shall be
441
- included in all copies or substantial portions of the Software.
442
-
443
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
444
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
445
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
446
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
447
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
448
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
449
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
450
-
451
- @emotion/hash
452
-
453
- MIT License
454
-
455
- Copyright (c) Emotion team and other contributors
456
-
457
- Permission is hereby granted, free of charge, to any person obtaining a copy
458
- of this software and associated documentation files (the "Software"), to deal
459
- in the Software without restriction, including without limitation the rights
460
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
461
- copies of the Software, and to permit persons to whom the Software is
462
- furnished to do so, subject to the following conditions:
463
-
464
- The above copyright notice and this permission notice shall be included in all
465
- copies or substantial portions of the Software.
466
-
467
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
468
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
469
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
470
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
471
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
472
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
473
- SOFTWARE.
474
-
475
- @emotion/unitless
476
-
477
- MIT License
478
-
479
- Copyright (c) Emotion team and other contributors
480
-
481
- Permission is hereby granted, free of charge, to any person obtaining a copy
482
- of this software and associated documentation files (the "Software"), to deal
483
- in the Software without restriction, including without limitation the rights
484
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
485
- copies of the Software, and to permit persons to whom the Software is
486
- furnished to do so, subject to the following conditions:
487
-
488
- The above copyright notice and this permission notice shall be included in all
489
- copies or substantial portions of the Software.
490
-
491
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
492
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
493
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
494
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
495
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
496
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
497
- SOFTWARE.
498
-
499
- @rc-component/async-validator
500
-
501
- The MIT License (MIT)
502
-
503
- Copyright (c) 2014-present yiminghe
504
-
505
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
506
-
507
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
508
-
509
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
510
-
511
- @rc-component/checkbox
512
-
513
- The MIT License (MIT) Copyright (c) 2016 React Components
514
-
515
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
516
-
517
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
518
-
519
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
520
-
521
- @rc-component/collapse
522
-
523
- The MIT License (MIT)
524
-
525
- Copyright (c) 2014-present yiminghe
526
-
527
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
528
-
529
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
530
-
531
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
532
-
533
- @rc-component/color-picker
534
-
535
- The MIT License (MIT)
536
-
537
- Copyright (c) 2019-present alipay.com
538
-
539
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
540
-
541
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
542
-
543
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
544
-
545
- @rc-component/dialog
546
-
547
- The MIT License (MIT)
548
-
549
- Copyright (c) 2014-present yiminghe
550
-
551
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
552
-
553
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
554
-
555
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
556
-
557
- @rc-component/dropdown
558
-
559
- The MIT License (MIT)
560
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
561
-
562
- Permission is hereby granted, free of charge, to any person obtaining a copy
563
- of this software and associated documentation files (the "Software"), to deal
564
- in the Software without restriction, including without limitation the rights
565
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
566
- copies of the Software, and to permit persons to whom the Software is
567
- furnished to do so, subject to the following conditions:
568
-
569
- The above copyright notice and this permission notice shall be included in
570
- all copies or substantial portions of the Software.
571
-
572
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
573
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
574
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
575
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
576
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
577
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
578
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
579
-
580
- @rc-component/form
581
-
582
- MIT License
583
-
584
- Copyright (c) 2019-present react-component
585
-
586
- Permission is hereby granted, free of charge, to any person obtaining a copy
587
- of this software and associated documentation files (the "Software"), to deal
588
- in the Software without restriction, including without limitation the rights
589
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
590
- copies of the Software, and to permit persons to whom the Software is
591
- furnished to do so, subject to the following conditions:
592
-
593
- The above copyright notice and this permission notice shall be included in all
594
- copies or substantial portions of the Software.
595
-
596
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
597
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
598
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
599
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
600
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
601
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
602
- SOFTWARE.
603
-
604
- @rc-component/input
605
-
606
- The MIT License (MIT)
607
-
608
- Copyright (c) 2019-present afc163
609
-
610
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
611
-
612
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
613
-
614
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
615
-
616
- @rc-component/input-number
617
-
618
- The MIT License (MIT)
619
-
620
- Copyright (c) 2014-present yiminghe
621
-
622
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
623
-
624
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
625
-
626
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
627
-
628
- @rc-component/menu
629
-
630
- MIT License
631
-
632
- Copyright (c) 2019-present react-component
633
-
634
- Permission is hereby granted, free of charge, to any person obtaining a copy
635
- of this software and associated documentation files (the "Software"), to deal
636
- in the Software without restriction, including without limitation the rights
637
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
638
- copies of the Software, and to permit persons to whom the Software is
639
- furnished to do so, subject to the following conditions:
640
-
641
- The above copyright notice and this permission notice shall be included in all
642
- copies or substantial portions of the Software.
643
-
644
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
645
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
646
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
647
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
648
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
649
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
650
- SOFTWARE.
651
-
652
- @rc-component/mini-decimal
653
-
654
- MIT License
655
-
656
- Copyright (c) 2019-present react-component
657
-
658
- Permission is hereby granted, free of charge, to any person obtaining a copy
659
- of this software and associated documentation files (the "Software"), to deal
660
- in the Software without restriction, including without limitation the rights
661
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
662
- copies of the Software, and to permit persons to whom the Software is
663
- furnished to do so, subject to the following conditions:
664
-
665
- The above copyright notice and this permission notice shall be included in all
666
- copies or substantial portions of the Software.
667
-
668
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
669
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
670
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
671
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
672
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
673
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
674
- SOFTWARE.
675
-
676
- @rc-component/motion
677
-
678
- The MIT License (MIT)
679
-
680
- Copyright (c) 2019-present afc163
681
-
682
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
683
-
684
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
685
-
686
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
687
-
688
- @rc-component/overflow
689
-
690
- The MIT License (MIT)
691
-
692
- Copyright (c) 2019-present afc163
693
-
694
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
695
-
696
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
697
-
698
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
699
-
700
- @rc-component/pagination
701
-
702
- The MIT License (MIT)
703
-
704
- Copyright (c) 2014-present yiminghe
705
-
706
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
707
-
708
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
709
-
710
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
711
-
712
- @rc-component/picker
713
-
714
- MIT License
715
-
716
- Copyright (c) 2019-present react-component
717
-
718
- Permission is hereby granted, free of charge, to any person obtaining a copy
719
- of this software and associated documentation files (the "Software"), to deal
720
- in the Software without restriction, including without limitation the rights
721
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
722
- copies of the Software, and to permit persons to whom the Software is
723
- furnished to do so, subject to the following conditions:
724
-
725
- The above copyright notice and this permission notice shall be included in all
726
- copies or substantial portions of the Software.
727
-
728
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
729
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
730
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
731
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
732
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
733
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
734
- SOFTWARE.
735
-
736
- @rc-component/portal
737
-
738
- MIT License
739
-
740
- Copyright (c) 2019-present react-component
741
-
742
- Permission is hereby granted, free of charge, to any person obtaining a copy
743
- of this software and associated documentation files (the "Software"), to deal
744
- in the Software without restriction, including without limitation the rights
745
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
746
- copies of the Software, and to permit persons to whom the Software is
747
- furnished to do so, subject to the following conditions:
748
-
749
- The above copyright notice and this permission notice shall be included in all
750
- copies or substantial portions of the Software.
751
-
752
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
753
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
754
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
755
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
756
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
757
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
758
- SOFTWARE.
759
-
760
- @rc-component/progress
761
-
762
- MIT License
763
-
764
- Copyright (c) 2019-present react-component
765
-
766
- Permission is hereby granted, free of charge, to any person obtaining a copy
767
- of this software and associated documentation files (the "Software"), to deal
768
- in the Software without restriction, including without limitation the rights
769
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
770
- copies of the Software, and to permit persons to whom the Software is
771
- furnished to do so, subject to the following conditions:
772
-
773
- The above copyright notice and this permission notice shall be included in all
774
- copies or substantial portions of the Software.
775
-
776
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
777
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
778
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
779
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
780
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
781
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
782
- SOFTWARE.
783
-
784
- @rc-component/resize-observer
785
-
786
- The MIT License (MIT)
787
-
788
- Copyright (c) 2019-present afc163
789
-
790
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
791
-
792
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
793
-
794
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
795
-
796
- @rc-component/segmented
797
-
798
- MIT License
799
-
800
- Copyright (c) 2019-present react-component
801
-
802
- Permission is hereby granted, free of charge, to any person obtaining a copy
803
- of this software and associated documentation files (the "Software"), to deal
804
- in the Software without restriction, including without limitation the rights
805
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
806
- copies of the Software, and to permit persons to whom the Software is
807
- furnished to do so, subject to the following conditions:
808
-
809
- The above copyright notice and this permission notice shall be included in all
810
- copies or substantial portions of the Software.
811
-
812
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
813
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
814
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
815
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
816
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
817
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
818
- SOFTWARE.
819
-
820
- @rc-component/select
821
-
822
- MIT License
823
-
824
- Copyright (c) 2019-present react-component
825
-
826
- Permission is hereby granted, free of charge, to any person obtaining a copy
827
- of this software and associated documentation files (the "Software"), to deal
828
- in the Software without restriction, including without limitation the rights
829
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
830
- copies of the Software, and to permit persons to whom the Software is
831
- furnished to do so, subject to the following conditions:
832
-
833
- The above copyright notice and this permission notice shall be included in all
834
- copies or substantial portions of the Software.
835
-
836
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
837
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
838
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
839
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
840
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
841
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
842
- SOFTWARE.
843
-
844
- @rc-component/tooltip
845
-
846
- The MIT License (MIT)
847
-
848
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
849
-
850
- Permission is hereby granted, free of charge, to any person obtaining a copy
851
- of this software and associated documentation files (the "Software"), to deal
852
- in the Software without restriction, including without limitation the rights
853
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
854
- copies of the Software, and to permit persons to whom the Software is
855
- furnished to do so, subject to the following conditions:
856
-
857
- The above copyright notice and this permission notice shall be included in
858
- all copies or substantial portions of the Software.
859
-
860
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
861
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
862
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
863
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
864
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
865
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
866
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
867
-
868
- @rc-component/trigger
869
-
870
- The MIT License (MIT)
871
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
872
-
873
- Permission is hereby granted, free of charge, to any person obtaining a copy
874
- of this software and associated documentation files (the "Software"), to deal
875
- in the Software without restriction, including without limitation the rights
876
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
877
- copies of the Software, and to permit persons to whom the Software is
878
- furnished to do so, subject to the following conditions:
879
-
880
- The above copyright notice and this permission notice shall be included in
881
- all copies or substantial portions of the Software.
882
-
883
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
884
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
885
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
886
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
887
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
888
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
889
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
890
-
891
- @rc-component/util
892
-
893
- The MIT License (MIT)
894
-
895
- Copyright (c) 2014-present yiminghe
896
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
897
-
898
- Permission is hereby granted, free of charge, to any person obtaining a copy
899
- of this software and associated documentation files (the "Software"), to deal
900
- in the Software without restriction, including without limitation the rights
901
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
902
- copies of the Software, and to permit persons to whom the Software is
903
- furnished to do so, subject to the following conditions:
904
-
905
- The above copyright notice and this permission notice shall be included in
906
- all copies or substantial portions of the Software.
907
-
908
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
909
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
910
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
911
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
912
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
913
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
914
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
915
-
916
- @rc-component/virtual-list
917
-
918
- The MIT License (MIT)
919
-
920
- Copyright (c) 2015-present Alipay.com, https://www.alipay.com/
921
-
922
- Permission is hereby granted, free of charge, to any person obtaining a copy
923
- of this software and associated documentation files (the "Software"), to deal
924
- in the Software without restriction, including without limitation the rights
925
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
926
- copies of the Software, and to permit persons to whom the Software is
927
- furnished to do so, subject to the following conditions:
928
-
929
- The above copyright notice and this permission notice shall be included in
930
- all copies or substantial portions of the Software.
931
-
932
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
933
- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
934
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
935
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
936
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
937
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
938
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
939
-
940
- antd
941
-
942
- MIT LICENSE
943
-
944
- Copyright (c) 2015-present Ant UED, https://xtech.antfin.com/
945
-
946
- Permission is hereby granted, free of charge, to any person obtaining
947
- a copy of this software and associated documentation files (the
948
- "Software"), to deal in the Software without restriction, including
949
- without limitation the rights to use, copy, modify, merge, publish,
950
- distribute, sublicense, and/or sell copies of the Software, and to
951
- permit persons to whom the Software is furnished to do so, subject to
952
- the following conditions:
953
-
954
- The above copyright notice and this permission notice shall be
955
- included in all copies or substantial portions of the Software.
956
-
957
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
958
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
959
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
960
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
961
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
962
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
963
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
964
-
965
- clsx
966
-
967
- MIT License
968
-
969
- Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)
970
-
971
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
972
-
973
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
974
-
975
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
976
-
977
- dayjs
978
-
979
- MIT License
980
-
981
- Copyright (c) 2018-present, iamkun
982
-
983
- Permission is hereby granted, free of charge, to any person obtaining a copy
984
- of this software and associated documentation files (the "Software"), to deal
985
- in the Software without restriction, including without limitation the rights
986
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
987
- copies of the Software, and to permit persons to whom the Software is
988
- furnished to do so, subject to the following conditions:
989
-
990
- The above copyright notice and this permission notice shall be included in all
991
- copies or substantial portions of the Software.
992
-
993
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
994
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
995
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
996
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
997
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
998
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
999
- SOFTWARE.
1000
-
1001
- is-mobile
1002
-
1003
- MIT (declared in package.json)
1004
-
1005
- react-is
1006
-
1007
- MIT License
1008
-
1009
- Copyright (c) Meta Platforms, Inc. and affiliates.
1010
-
1011
- Permission is hereby granted, free of charge, to any person obtaining a copy
1012
- of this software and associated documentation files (the "Software"), to deal
1013
- in the Software without restriction, including without limitation the rights
1014
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1015
- copies of the Software, and to permit persons to whom the Software is
1016
- furnished to do so, subject to the following conditions:
1017
-
1018
- The above copyright notice and this permission notice shall be included in all
1019
- copies or substantial portions of the Software.
1020
-
1021
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1022
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1023
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1024
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1025
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1026
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1027
- SOFTWARE.
1028
-
1029
- stylis
1030
-
1031
- MIT License
1032
-
1033
- Copyright (c) 2016-present Sultan Tarimo
1034
-
1035
- Permission is hereby granted, free of charge, to any person obtaining a copy
1036
- of this software and associated documentation files (the "Software"), to deal
1037
- in the Software without restriction, including without limitation the rights
1038
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1039
- copies of the Software, and to permit persons to whom the Software is
1040
- furnished to do so, subject to the following conditions:
1041
-
1042
- The above copyright notice and this permission notice shall be included in all
1043
- copies or substantial portions of the Software.
1044
-
1045
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1046
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1047
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1048
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1049
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1050
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1051
- SOFTWARE.
1052
-
1053
- throttle-debounce
1054
-
1055
- Copyright (c) Ivan Nikolić <http://ivannikolic.com>
1056
-
1057
- Permission is hereby granted, free of charge, to any person obtaining a copy
1058
- of this software and associated documentation files (the "Software"), to deal
1059
- in the Software without restriction, including without limitation the rights
1060
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1061
- copies of the Software, and to permit persons to whom the Software is
1062
- furnished to do so, subject to the following conditions:
1063
-
1064
- The above copyright notice and this permission notice shall be included in
1065
- all copies or substantial portions of the Software.
1066
-
1067
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1068
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1069
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1070
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1071
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1072
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1073
- THE SOFTWARE.
1074
-
1075
- ---
1076
-
1077
- Copyright (c) 2010 "Cowboy" Ben Alman
1078
-
1079
- Permission is hereby granted, free of charge, to any person
1080
- obtaining a copy of this software and associated documentation
1081
- files (the "Software"), to deal in the Software without
1082
- restriction, including without limitation the rights to use,
1083
- copy, modify, merge, publish, distribute, sublicense, and/or sell
1084
- copies of the Software, and to permit persons to whom the
1085
- Software is furnished to do so, subject to the following
1086
- conditions:
38
+ Third-party notices for the 0 packages bundled into this file.
1087
39
 
1088
- The above copyright notice and this permission notice shall be
1089
- included in all copies or substantial portions of the Software.
1090
40
 
1091
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
1092
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
1093
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
1094
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
1095
- HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
1096
- WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
1097
- FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
1098
- OTHER DEALINGS IN THE SOFTWARE.
1099
41
  */