@zlooks.cn/password-auth-server 1.1.12 → 1.1.13
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/.hile-rsc/build-mvrww80l-445898fc/client-browser/chunks/chunk-IDTOSCVG.js +241 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-page-frame-07c4de56a6-B2SFAOQL.css +1 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-page-frame-07c4de56a6-BWD74MY6.js +27 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-password-form-3bd63d69e5-3P7GHZ6Q.js +6 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-browser/src-plugin-password-form-3bd63d69e5-FRMRBWWA.css +1 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-ssr/chunks/chunk-H6EHFMQF.js +242 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-ssr/src-plugin-page-frame-07c4de56a6-E6KLC3ZS.js +27 -0
- package/.hile-rsc/build-mvrww80l-445898fc/client-ssr/src-plugin-password-form-3bd63d69e5-RMX3P3O7.js +6 -0
- package/.hile-rsc/{build-mvnegd9x-59974937 → build-mvrww80l-445898fc}/plugin.json +34 -34
- package/.hile-rsc/{build-mvnegd9x-59974937 → build-mvrww80l-445898fc}/server-rsc/index.js +2 -2
- package/package.json +2 -2
- package/.hile-rsc/build-mvnegd9x-59974937/client-browser/chunks/chunk-DFJ6HO4A.js +0 -252
- package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-page-frame-07c4de56a6-GLDPP7WQ.css +0 -1
- package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-page-frame-07c4de56a6-KY4QFFE6.js +0 -16
- package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-password-form-3bd63d69e5-6HVWNCR6.js +0 -6
- package/.hile-rsc/build-mvnegd9x-59974937/client-browser/src-plugin-password-form-3bd63d69e5-XRKUN4RP.css +0 -1
- package/.hile-rsc/build-mvnegd9x-59974937/client-ssr/chunks/chunk-KG33MVOX.js +0 -123
- package/.hile-rsc/build-mvnegd9x-59974937/client-ssr/src-plugin-page-frame-07c4de56a6-6A2S6XFE.js +0 -146
- package/.hile-rsc/build-mvnegd9x-59974937/client-ssr/src-plugin-password-form-3bd63d69e5-QE76CW6Q.js +0 -352
- /package/.hile-rsc/{build-mvnegd9x-59974937 → build-mvrww80l-445898fc}/styles/4b3193c4f2b317ffed425ccf401342a4bdd6ccfd5f9c42def3315e776f166975.css +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zlooks-ui-theme{background:var(--ant-color-bg-layout, var(--color-canvas, #f6f8fb));color:var(--ant-color-text, var(--color-text, #172033));min-height:inherit}.zlooks-password-frame-page{--shared-content-max: 1320px;background:var(--ant-color-bg-container, #fff);color:var(--ant-color-text, #171a21);min-height:100dvh}.zlooks-password-frame-header-wrap{background:var(--ant-color-bg-container, #fff);border-bottom:1px solid var(--ant-color-border-secondary, #e8eaee)}.zlooks-password-frame-header{align-items:center;display:grid;gap:32px;grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr);height:72px;margin:0 auto;max-width:var(--shared-content-max);padding:0 28px}.zlooks-password-frame-brand{align-items:center;color:var(--ant-color-text, #171a21);display:flex;font-size:13px;font-weight:800;gap:12px;justify-self:start;letter-spacing:.16em;text-decoration:none}.zlooks-password-frame-brand-mark,.zlooks-password-frame-brand-logo{border-radius:8px;height:32px;width:32px}.zlooks-password-frame-brand-mark{align-items:center;background:var(--ant-color-text, #171a21);color:var(--ant-color-bg-container, #fff);display:flex;font-size:12px;justify-content:center;letter-spacing:0}.zlooks-password-frame-brand-logo{object-fit:contain}.zlooks-password-frame-navigation{align-self:stretch;display:flex;gap:30px;justify-content:center}.zlooks-password-frame-navigation a{align-items:center;color:var(--ant-color-text-secondary, #6f7480);display:flex;font-size:13px;position:relative;text-decoration:none;white-space:nowrap}.zlooks-password-frame-navigation a:after{background:transparent;bottom:-1px;content:"";height:2px;left:0;position:absolute;right:0}.zlooks-password-frame-navigation a:hover,.zlooks-password-frame-navigation a[aria-current=page]{color:var(--ant-color-text, #171a21)}.zlooks-password-frame-navigation a[aria-current=page]:after{background:var(--ant-color-primary, #2869ed)}.zlooks-password-frame-actions{align-items:center;display:flex;justify-self:end}.zlooks-password-frame-content{display:flex;justify-content:center;margin:0 auto;max-width:var(--shared-content-max);min-height:calc(100dvh - 72px);padding:clamp(64px,8vw,116px) 28px clamp(80px,9vw,128px)}.zlooks-password-frame-footer{align-items:center;border-top:1px solid var(--ant-color-border-secondary, #e8eaee);color:var(--ant-color-text-secondary, #6f7480);display:flex;font-size:12px;justify-content:space-between;margin:0 auto;max-width:var(--shared-content-max);padding:28px}.zlooks-password-frame-footer>div{align-items:baseline;display:flex;gap:16px}.zlooks-password-frame-footer strong{color:var(--ant-color-text, #171a21);letter-spacing:.08em}@media(max-width:760px){.zlooks-password-frame-header{gap:12px;grid-template-columns:minmax(0,1fr) auto;height:auto;min-height:64px;padding:10px 18px 0}.zlooks-password-frame-brand{font-size:12px}.zlooks-password-frame-brand-mark,.zlooks-password-frame-brand-logo{height:30px;width:30px}.zlooks-password-frame-navigation{grid-column:1 / -1;grid-row:2;justify-content:flex-start;overflow-x:auto;scrollbar-width:none}.zlooks-password-frame-navigation::-webkit-scrollbar{display:none}.zlooks-password-frame-navigation a{min-height:40px}.zlooks-password-frame-actions{grid-column:2;grid-row:1}.zlooks-password-frame-content{min-height:calc(100dvh - 104px);padding:48px 20px 72px}.zlooks-password-frame-footer{align-items:flex-start;flex-direction:column;gap:16px;padding:24px 20px 32px}.zlooks-password-frame-footer>div{align-items:flex-start;flex-direction:column;gap:6px}}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";import{$ as kr,$a as He,$b as ls,A as Ye,Aa as Dr,B as Nr,Ba as Ar,C as Wt,Ca as Fr,D as Qo,Da as Ct,E as so,Ea as Wr,F as $r,Fa as on,G as xt,Ga as _r,H as ao,Ha as Vr,Ia as go,Ib as Jr,Ja as jr,K as Jo,Ka as Gr,Kb as es,Mb as nn,N as wr,Na as ge,Nb as ts,O as io,Oa as Ur,Ob as vo,P as en,Pa as Je,Pb as Te,Q as De,Qa as qr,Qb as rn,R as Qe,Ra as Fe,S as lo,Sa as Xr,Sb as os,T as tn,Ta as Zr,Tb as sn,Ua as ho,Ub as ns,Va as xo,Vb as rs,W as Pr,Wa as ie,Wb as ss,X as Tr,Xa as bt,Xb as as,Y as co,Ya as Vt,Yb as is,Z as se,Za as vt,Zb as ot,_ as ae,_a as et,a as gt,aa as mo,ab as St,b as ht,ba as $e,bb as Rt,c as M,ca as xe,cb as Et,d as Ne,da as ye,db as Nt,e as br,ea as Ae,eb as jt,f as Pe,fb as yo,g as i,ga as oe,gb as Kr,gc as cs,h as vr,ha as Ce,hb as $t,hc as mt,i as j,ia as po,ib as Yr,ic as ms,j as oo,ja as be,jb as tt,k as no,ka as yt,l as Ie,la as fe,lb as We,m as V,ma as Mr,n as K,na as H,nc as ds,o as Ee,oa as Ir,ob as Co,oc as ps,p as I,pa as zr,q as D,qb as Qr,r as A,ra as ct,s as Sr,sa as Or,sb as bo,t as Rr,ta as ue,tb as wt,u as ro,ua as Br,v as B,va as Hr,w as re,wa as _t,x as v,xa as fo,y as ze,ya as Lr,z as Er,za as uo}from"./chunks/chunk-IDTOSCVG.js";var bs=gt(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});var ol={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"};gn.default=ol});var Ss=gt(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var sl={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"};xn.default=sl});var ei=gt(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});var km={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};tr.default=km});var ni=gt(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});var zm={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};nr.default=zm});var Ci=gt(sr=>{"use strict";Object.defineProperty(sr,"__esModule",{value:!0});var Xm={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"};sr.default=Xm});var Si=gt(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});var Ym={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};ir.default=Ym});function an(){let[e,t]=A({}),o=Ie((n,r)=>{if(!r){t(a=>{if(!(n in a))return a;let l={...a};return delete l[n],l});return}let s={width:r.offsetWidth,height:r.offsetHeight};t(a=>{let l=a[n];return l&&l.width===s.width&&l.height===s.height?a:{...a,[n]:s}})},[]);return[e,o]}function ln(e,t,o=0){let[n,r]=an(),[s,a,l,c]=I(()=>{let d=0,m=0,g=t?.threshold??0,p=new Map,f,u;return e.slice().reverse().forEach((h,C)=>{let y=String(h.key),x=n[y]?.height??0,b=t&&C>0?d+(t.offset??0)-x:d;p.set(y,b),C===0&&(f=x,u=n[y]?.width??0),(!t||C<g)&&(m=Math.max(m,b+x)),t?d=b+x:d+=x+o}),[p,m,f,u]},[e,o,n,t]);return[s,r,a,l,c]}var _i=e=>{let t={offset:8,threshold:3};return e&&typeof e=="object"&&(t.offset=e.offset??8,t.threshold=e.threshold??3),[!!e,t]},fs=_i;function cn(e,t,o){let r=Math.max(typeof e=="number"?e:0,0)*1e3,s=ze(t),a=ze(o),[l,c]=A(r>0),d=D(0),m=D(null);function g(){let u=Date.now(),h=m.current;h!==null&&(d.current+=u-h),m.current=u}let p=Ie(()=>{g(),c(!1)},[]),f=Ie(()=>{r>0?(m.current=Date.now(),c(!0)):a(0)},[r]);return K(()=>{d.current=0,c(r>0)},[r]),K(()=>{if(!l)return;let u=null;function h(){g(),d.current>=r?(a(1),s()):(a(Math.min(d.current/r,1)),u=Qo(h))}return h(),()=>{Qo.cancel(u)}},[r,l]),[f,p]}function mn(e){let t=I(()=>e===!1?{closeIcon:null,disabled:!0}:typeof e=="object"&&e!==null?e:{},[e]),o=I(()=>({...t,closeIcon:"closeIcon"in t?t.closeIcon:"\xD7",disabled:t.disabled??!1}),[t]),n=I(()=>Qe(o,!0),[o]);return[!!e,o,n]}var Vi=({className:e,style:t,percent:o})=>i("progress",{className:e,max:"100",value:o,style:t}),dn=Vi;function So(){return So=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},So.apply(this,arguments)}var ji=j((e,t)=>{let{prefixCls:o,className:n,style:r,classNames:s,styles:a,components:l,title:c,description:d,icon:m,actions:g,role:p,closable:f,offset:u,notificationIndex:h,stackInThreshold:C,props:y,duration:x=4.5,showProgress:b,hovering:N,pauseOnHover:$=!0,onClick:R,onMouseEnter:E,onMouseLeave:T,onClose:S}=e,[k,P]=A(0),w=`${o}-notice`,[O,F,z]=mn(f),_=ze(()=>{F.onClose?.(),S?.()}),[W,G]=A(!1),[U,Q]=cn(x,_,P),q=100-Math.min(Math.max(k*100,0),100),Z=l?.progress||dn;K(()=>{$&&(N?Q():W||U())},[N,W,Q,U,$]);function ee(de){G(!0),$&&Q(),E?.(de)}function te(de){G(!1),$&&!N&&U(),T?.(de)}function J(de){de.preventDefault(),de.stopPropagation(),_()}let he=D(u);u!==void 0&&(he.current=u);let ke=D(h);h!==void 0&&(ke.current=h);let ve=u??he.current,Se=h??ke.current??0,ce=c!=null?i("div",{className:v(`${w}-title`,s?.title),style:a?.title},c):null,ne=d!=null?i("div",{className:v(`${w}-description`,s?.description),style:a?.description},d):null,me=ce!==null,Ze=ne!==null,le=null;me&&Ze?le=i("div",{className:v(`${w}-section`,s?.section),style:a?.section},ce,ne):le=ce||ne,m!=null&&(le=i("div",{className:v(`${w}-wrapper`,s?.wrapper),style:a?.wrapper},i("div",{className:v(`${w}-icon`,s?.icon),style:a?.icon},m),le));let dt=g?i("div",{className:v(`${w}-actions`,s?.actions),style:a?.actions},g):null,Ke={"--notification-index":Se,...a?.root,...r};ve!==void 0&&(Ke["--notification-y"]=`${ve}px`);let Bt=p??y?.role??"alert";return i("div",So({},y,{ref:t,role:Bt,"data-notification-index":Se,className:v(w,n,s?.root,{[`${w}-closable`]:O,[`${w}-stack-in-threshold`]:C}),style:Ke,onClick:R,onMouseEnter:ee,onMouseLeave:te}),le,dt,O&&i("button",So({className:v(`${w}-close`,s?.close),"aria-label":"Close"},z,{style:a?.close,onClick:J}),F.closeIcon),b&&typeof x=="number"&&x>0&&i(Z,{className:v(`${w}-progress`,s?.progress),percent:q,style:a?.progress}))}),Gt=ji;var pn=Pe({}),Gi=({children:e,classNames:t})=>{let o=I(()=>({classNames:t}),[t]);return i(pn.Provider,{value:o},e)},Ut=Gi;function fn(){return fn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},fn.apply(this,arguments)}var Ui=j((e,t)=>{let{listPrefixCls:o,height:n,topNoticeHeight:r=0,topNoticeWidth:s=0,className:a,style:l,...c}=e,d=`${o}-content`,m=D(n),g=m.current,p=n<g?"decrease":"increase";m.current=n;let f={...l,height:n,"--top-notificiation-height":`${r}px`,"--top-notificiation-width":`${s}px`};return i("div",fn({},c,{className:v(d,`${d}-${p}`,a),style:f,ref:t}))}),us=Ui;function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Ro.apply(this,arguments)}var gs=["wrapper","root","icon","section","title","description","actions","close","progress"];function qi(e){return gs.reduce((t,o)=>(t[o]=v(...e.map(n=>n?.[o])),t),{})}function Xi(e){return gs.reduce((t,o)=>(t[o]=Object.assign({},...e.map(n=>n?.[o])),t),{})}function Zi(e,t){let o=String(t),n=e.findIndex(r=>r.key===o);if(n!==-1)return e.length-n-1}var Ki=e=>{let{config:t,components:o,contextClassNames:n,classNames:r,styles:s,className:a,style:l,nodeRef:c,listHovering:d,stackEnabled:m,pauseOnHover:g,setNodeSize:p,onNoticeClose:f,...u}=e,{key:h,placement:C,...y}=t,x=String(h),b=Ie($=>{p(x,$)},[p,x]),N=ao(c,b);return i(Gt,Ro({},y,u,{ref:N,className:v(n?.notice,t.className,a),style:{...l,...t.style},classNames:qi([r,t.classNames]),styles:Xi([s,t.styles]),components:{...o,...t.components},hovering:m&&d,pauseOnHover:t.pauseOnHover??g,onClose:()=>{t.onClose?.(),f?.(h)}}))},Yi=e=>{let{configList:t=[],prefixCls:o="rc-notification",pauseOnHover:n,classNames:r,styles:s,components:a,stack:l,motion:c,placement:d,className:m,style:g,onNoticeClose:p,onAllRemoved:f}=e,{classNames:u}=V(pn),h=I(()=>t.map(G=>({config:G,key:String(G.key)})),[t]),C=typeof c=="function"?c(d):c,[y,{offset:x,threshold:b}]=fs(l),[N,$]=A(!1),R=y&&(N||h.length<=b),E=I(()=>{if(!(!y||R))return{offset:x,threshold:b}},[R,x,y,b]),[T,S]=A(0),k=D(null),[P,w,O,F,z]=ln(t,E,T),_=!!t.length;K(()=>{let G=k.current;if(!G)return;let{gap:U,rowGap:Q}=window.getComputedStyle(G),q=parseFloat(Q||U)||0;S(Z=>Z===q?Z:q)},[_]);let W=`${o}-list`;return i("div",{className:v(o,W,`${o}-${d}`,u?.list,m,r?.list,{[`${o}-stack`]:y,[`${o}-stack-expanded`]:R,[`${W}-hovered`]:N}),onMouseEnter:()=>{$(!0)},onMouseLeave:()=>{$(!1)},style:{...s?.list,...g}},i(us,{listPrefixCls:W,height:O,topNoticeHeight:F,topNoticeWidth:z,className:r?.listContent,style:s?.listContent,ref:k},i(kr,Ro({component:!1,keys:h,motionAppear:!0},C,{onAllRemoved:()=>{d&&f?.(d)}}),({config:G,className:U,style:Q},q)=>{let{key:Z}=G,ee=String(Z),te=Zi(h,Z),J=y&&te!==void 0&&te<b;return i(Ki,{key:Z,config:G,components:a,contextClassNames:u,classNames:r,styles:s,className:U,style:Q,nodeRef:q,prefixCls:o,offset:P.get(ee),notificationIndex:te,stackInThreshold:J,listHovering:N,stackEnabled:y,pauseOnHover:n,setNodeSize:w,onNoticeClose:p})})))},un=Yi;var Qi=j((e,t)=>{let{prefixCls:o="rc-notification",container:n,motion:r,maxCount:s,pauseOnHover:a,classNames:l,styles:c,components:d,className:m,style:g,onAllRemoved:p,stack:f,renderNotifications:u}=e,[h,C]=A([]),[y,x]=A({}),b=D(!1);Ee(t,()=>({open:R=>{C(E=>{let T=[...E],S=T.findIndex(P=>P.key===R.key),k={...R};return S>=0?(k.times=(E[S]?.times??0)+1,T[S]=k):(k.times=0,T.push(k)),s&&s>0&&T.length>s&&(T=T.slice(-s)),T})},close:R=>{C(E=>E.filter(T=>T.key!==R))},destroy:()=>{C([])}})),K(()=>{let R={};h.forEach(E=>{let T=E.placement??"topRight";R[T]=R[T]||[],R[T].push(E)}),Object.keys(y).forEach(E=>{R[E]=R[E]||[]}),x(R)},[h]);let N=ze(R=>{x(E=>{let T={...E};return(T[R]||[]).length||delete T[R],T})});if(K(()=>{Object.keys(y).length>0?b.current=!0:b.current&&(p?.(),b.current=!1)},[y,p]),!n)return null;let $=Object.keys(y);return Pr(i(Ne,null,$.map(R=>{let E=i(un,{key:R,configList:y[R],placement:R,prefixCls:o,pauseOnHover:a,classNames:l,styles:c,components:d,className:m?.(R),style:g?.(R),motion:r,stack:f,onNoticeClose:T=>{C(S=>S.filter(k=>k.key!==T))},onAllRemoved:N});return u?br(u(E,{prefixCls:o,key:R}),{key:R}):E})),n)}),hs=Qi;var Ji=()=>document.body,xs=0;function el(...e){let t={};return e.forEach(o=>{o&&Object.keys(o).forEach(n=>{let r=o[n];r!==void 0&&(t[n]=r)})}),t}function Pt(e={}){let{getContainer:t=Ji,motion:o,prefixCls:n,placement:r,closable:s,duration:a,showProgress:l,pauseOnHover:c,classNames:d,styles:m,components:g,maxCount:p,className:f,style:u,onAllRemoved:h,stack:C,renderNotifications:y}=e,x={placement:r,closable:s,duration:a,showProgress:l},[b,N]=A(),$=D(null),[R,E]=A([]),T=i(hs,{container:b,ref:$,prefixCls:n,motion:o,maxCount:p,pauseOnHover:c,classNames:d,styles:m,components:g,className:f,style:u,onAllRemoved:h,stack:C,renderNotifications:y}),S=ze(P=>{let w=el(x,P);(w.key===null||w.key===void 0)&&(w.key=`rc-notification-${xs}`,xs+=1),E(O=>[...O,{type:"open",config:w}])}),k=I(()=>({open:S,close:P=>{E(w=>[...w,{type:"close",key:P}])},destroy:()=>{E(P=>[...P,{type:"destroy"}])}}),[]);return K(()=>{N(t())}),K(()=>{$.current&&R.length&&(R.forEach(P=>{switch(P.type){case"open":$.current?.open(P.config);break;case"close":$.current?.close(P.key);break;case"destroy":$.current?.destroy();break}}),E(P=>{let w=P.filter(O=>!R.includes(O));return w.length===P.length?P:w}))},[R]),[k,T]}var tl=(e,t)=>I(()=>{let o=e??t;return o?{...oe(t)?t:{},...oe(o)?o:{}}:!1},[e,t]),Eo=tl;function No(e,t){return{...xe(e)&&{"--notification-top":H(e)},...xe(t)&&{"--notification-bottom":H(t)}}}function ys(e){return{motionName:`${e}-fade`}}function Cs(e,t,o){return typeof e<"u"?e:typeof t?.closeIcon<"u"?t.closeIcon:o?.closeIcon}var vs=ht(bs());function hn(){return hn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},hn.apply(this,arguments)}var nl=(e,t)=>i(He,hn({},e,{ref:t,icon:vs.default})),rl=j(nl),Tt=rl;var Rs=ht(Ss());function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},yn.apply(this,arguments)}var al=(e,t)=>i(He,yn({},e,{ref:t,icon:Rs.default})),il=j(al),Ue=il;var kt=e=>{if(!e)return;let{closable:t,closeIcon:o}=e;return{closable:t,closeIcon:o}},Ns={},Es=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(!xe(e)&&!xe(t))return null;let o={closeIcon:typeof t!="boolean"&&xe(t)?t:void 0};return oe(e)&&(o={...o,...e}),o},ll=(e,t,o)=>e===!1?!1:e?tn(o,t,e):t===!1?!1:t?tn(o,t):o.closable?o:!1,cl=(e,t,o)=>{let{closeIconRender:n}=t,{closeIcon:r,...s}=e,a=r,l=Qe(s,!0);return xe(a)&&(n&&(a=n(a)),a=M.isValidElement(a)?M.cloneElement(a,{"aria-label":o,...a.props,...l}):M.createElement("span",{"aria-label":o,...l},a)),[a,{"aria-label":o,...l}]},Cn=(e,t,o=Ns,n="Close")=>{let r=Es(e?.closable,e?.closeIcon),s=Es(t?.closable,t?.closeIcon),a={closeIcon:M.createElement(Ue,null),...o},l=ll(r,s,a),c=typeof l!="boolean"?!!l?.disabled:!1;if(l===!1)return[!1,null,c,{}];let[d,m]=cl(l,a,n);return[!0,d,c,m]},$s=(e,t,o=Ns)=>{let[n]=ue("global",ct.global);return M.useMemo(()=>Cn(e,t,{closeIcon:M.createElement(Ue,null),...o},n.close),[e,t,o,n.close])};var $o=(e,t)=>{let o={};return oe(e)&&(o=e),typeof e=="boolean"&&(o={enabled:e}),o.closable===void 0&&t!==void 0&&(o.closable=t),o},ws=(e,t,o,n)=>I(()=>{let r=$o(e,n),s=$o(t),a={blur:!1,...s,...r,closable:r.closable??n??s.closable??!0},l=a.blur?`${o}-mask-blur`:void 0;return[a.enabled!==!1,{mask:l},!!a.closable]},[e,t,o,n]);var Ps=()=>{let[e,t]=A([]),o=Ie(n=>(t(r=>[].concat($e(r),[n])),()=>{t(r=>r.filter(s=>s!==n))}),[]);return[e,o]};var ml=e=>{let{motionDurationMid:t,motionEaseInOut:o}=e,n=`${t} ${o}`;return{transform:"scale(var(--notification-scale, 1))",transition:["transform","inset","clip-path","opacity"].map(r=>`${r} ${n}`).join(", ")}},bn=(e,t)=>{let{componentCls:o,antCls:n,colorSuccess:r,colorInfo:s,colorWarning:a,colorError:l,colorTextHeading:c,colorText:d,boxShadow:m,borderRadiusLG:g,fontSize:p,lineHeight:f,notificationBg:u,notificationPadding:h,notificationMarginEdge:C,margin:y,calc:x}=e,b=`${o}-notice`,[N,$]=Vt(n,"notification");return{[b]:{position:"absolute",width:t.width,maxWidth:`calc(100vw - ${H(x(C).mul(2).equal())})`,padding:h,pointerEvents:"auto",[N("icon-font-size")]:t.iconFontSize,[N("title-font-size")]:t.titleFontSize,[N("title-line-height")]:t.titleLineHeight,boxSizing:"border-box",color:d,background:u,borderRadius:g,boxShadow:m,fontSize:p,lineHeight:f,wordWrap:"break-word",overflow:"visible",...ml(e),...t.noticeStyle,"&::after":{position:"absolute",insetInline:0,top:x(y).mul(-1).equal(),height:y,content:'""'},...t.typeStyle&&{"&-success":{background:$("color-success-bg",u)},"&-error":{background:$("color-error-bg",u)},"&-info":{background:$("color-info-bg",u)},"&-warning":{background:$("color-warning-bg",u)}}},[`${b}-wrapper`]:{display:"flex",...t.contentStyle},[`${b}-title`]:{color:c,fontSize:$("title-font-size"),lineHeight:$("title-line-height")},[`${b}-icon`]:{flex:"none",fontSize:$("icon-font-size"),lineHeight:1,[`&${b}-icon-success`]:{color:r},[`&${b}-icon-info, &${b}-icon-loading`]:{color:s},[`&${b}-icon-warning`]:{color:a},[`&${b}-icon-error`]:{color:l}}}},Ts=e=>{let{componentCls:t,progressBg:o,notificationProgressHeight:n,fontSize:r,borderRadiusLG:s,width:a,notificationIconSize:l,colorText:c,motionDurationMid:d,fontSizeLG:m,lineHeightLG:g,marginSM:p,marginXS:f,paddingLG:u,notificationPaddingVertical:h,notificationPaddingHorizontal:C,notificationCloseButtonSize:y,colorIcon:x,borderRadiusSM:b,colorIconHover:N,colorBgTextHover:$,colorBgTextActive:R}=e,E=`${t}-notice`;return{...bn(e,{width:a,iconFontSize:l,titleFontSize:m,titleLineHeight:g,contentStyle:{alignItems:"flex-start",gap:p},typeStyle:!0}),[`${E}-section`]:{display:"flex",flexDirection:"column",flex:"auto",gap:f,minWidth:0},[`${E}-description`]:{color:c,fontSize:r},[`${E}-closable`]:{[`${E}-title, ${E}-description`]:{paddingInlineEnd:u},[`${E}-title + ${E}-description`]:{paddingInlineEnd:0}},[`${E}-close`]:{position:"absolute",top:h,insetInlineEnd:C,display:"flex",alignItems:"center",justifyContent:"center",width:y,height:y,color:x,background:"none",border:"none",borderRadius:b,outline:"none",transition:["color","background-color"].map(T=>`${T} ${d}`).join(", "),"&:hover":{color:N,backgroundColor:$},"&:active":{backgroundColor:R},...ho(e)},[`${E}-progress`]:{position:"absolute",bottom:0,display:"block",appearance:"none",inlineSize:`calc(100% - ${H(s)} * 2)`,blockSize:n,border:0,left:{_skip_check_:!0,value:s},right:{_skip_check_:!0,value:s},"&, &::-webkit-progress-bar":{borderRadius:s,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:o},"&::-webkit-progress-value":{borderRadius:s,background:o}},[`${E}-actions`]:{float:"right",marginTop:p}}},ks=e=>{let{componentCls:t,width:o}=e,n=`${t}-notice`,r=`${n}-actions`,s=Ts(e);return{[`${n}-pure-panel`]:{width:o,maxWidth:"100%",...s,[n]:{...s[n],position:"relative",width:"100%",maxWidth:"100%"},[r]:{...s[r],float:"none",textAlign:"end"}}}},dl=e=>{let{componentCls:t}=e;return{[t]:Ts(e)}},Ms=dl;var Is=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"];var pl="--notification-margin-edge",fl=(e,t)=>({blockEnd:e==="top"?"bottom":"top",inlineEnd:t==="left"?"right":"left"}),zs=e=>{let t=e?.x??"0",o=e?.y??"0";return`translate3d(${t}, ${o}, 0) scale(var(--notification-scale, 1))`},ul=(e,t)=>{let o=e.startsWith("bottom")?"bottom":"top",n=e.endsWith("Right")?"right":"left",{blockEnd:r,inlineEnd:s}=fl(o,n),a=e==="top"||e==="bottom",l=e==="top"||e.endsWith("Left")?`-${t}`:t;return{placement:e,vertical:o,blockEnd:r,horizontal:n,inlineEnd:s,motionOffset:a?{x:"-50%",y:l}:{x:l},baseMotionOffset:a?{x:"-50%"}:void 0,isCenterPlacement:a}},gl=e=>e==="bottom"?"column-reverse":"column",hl=e=>{let t=`var(${pl}, 0px)`;return`calc(var(--notification-${e}, ${t}) - ${t})`},xl=e=>e==="bottom"?"center top":"center bottom",Os=e=>H(e.calc(e.marginXXL).mul(-1).equal()),yl=e=>{let t=Os(e);return`inset(${t} ${t} ${t} ${t})`},Cl=(e,t)=>{let o=Os(e);return t==="bottom"?`inset(${o} ${o} 50% ${o})`:`inset(50% ${o} ${o} ${o})`},bl=(e,t)=>{let{componentCls:o}=e,{placement:n,vertical:r,blockEnd:s,horizontal:a,inlineEnd:l,isCenterPlacement:c}=t,d=`${o}-notice`,m=`${d}${o}-fade`,g=zs(t.motionOffset),p=zs(t.baseMotionOffset),f=xl(r);return{[`&${o}-${n}`]:{[r]:hl(r),[s]:"auto",display:"flex",flexDirection:gl(r),...c?{marginInline:0,left:"50%",right:"auto",transform:"translateX(-50%)"}:{[a]:0,[l]:"auto"},[d]:{[r]:"var(--notification-y, 0)",...c?{left:"50%",transform:p}:{[a]:"var(--notification-x, 0)"},transformOrigin:f},[`${m}-appear-prepare, ${m}-enter-prepare`]:{opacity:0,transform:g,transition:"none"},[`${m}-appear-start, ${m}-enter-start`]:{opacity:0,transform:g},[`${m}-appear-active, ${m}-enter-active`]:{opacity:1,transform:p},[`${m}-leave-start`]:{opacity:1,transform:p},[`${m}-leave-active`]:{opacity:0,transform:g},[`&${o}-stack:not(${o}-stack-expanded)`]:{[d]:{clipPath:Cl(e,r)},[`${d}[data-notification-index='0']`]:{clipPath:yl(e)}}}}},vl=(e,t=Is)=>{let{notificationMotionOffset:o}=e,n=H(o);return{...t.reduce((r,s)=>({...r,...bl(e,ul(s,n))}),{})}},Sl=e=>{let{componentCls:t}=e;return{[t]:vl(e)}},Bs=Sl;var Rl=3,Hs=e=>({zIndexPopup:e.zIndexPopupBase+$t+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),wo=e=>{let t=e.paddingMD,o=e.paddingLG;return ge(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:o,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,notificationProgressHeight:2,notificationMotionOffset:64})},El=e=>`inset(${e} ${e} ${e} ${e})`,Nl=e=>{let{componentCls:t,motionDurationMid:o,motionDurationSlow:n,motionEaseInOut:r}=e,a=`${`${t}-list`}-content`;return{[a]:{position:"relative",display:"flex",flexShrink:0,flexDirection:"column",gap:e.notificationMarginBottom,width:"100%",willChange:"height, transform",transition:"none",[`&${a}-decrease`]:{transition:`height calc(${n} * 2) ${r} ${o}`}},[`${t}-fade`]:{backfaceVisibility:"hidden",willChange:"transform, opacity"}}},$l=(e,t)=>{let{componentCls:o,notificationMarginEdge:n}=e,r="--notification-margin-edge",s=`${o}-notice`,a=`${o}-list`,l=t.listWidthKey?e.calc(e[t.listWidthKey]).add(e.calc(n).mul(2)).equal():"100%",c=t.stackVisibleCount??Rl,d=`${s}:nth-last-child(n + ${c+1})`,m=H(e.calc(e.marginXXL).mul(-1).equal()),g=El(m);return{[o]:{...Fe(e),[r]:H(n),position:"fixed",zIndex:e.zIndexPopup,width:l,maxWidth:"100vw",height:"100vh",overflow:"hidden",overscrollBehavior:"contain",[`${o}-hook-holder`]:{position:"relative"},[`&${a}`]:{maxHeight:"100vh",padding:`var(${r})`,overflowX:"hidden",overflowY:"auto",overscrollBehavior:"contain",scrollbarWidth:"none",msOverflowStyle:"none",pointerEvents:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0}},...Nl(e),[`&${o}-stack`]:{[s]:{clipPath:g},[`&:not(${o}-stack-expanded)`]:{[s]:{"--notification-scale":"calc(1 - min(var(--notification-index, 0), 2) * 0.06)"},[`${s}:not(${s}-stack-in-threshold)`]:{opacity:0,pointerEvents:"none"},[d]:{opacity:0,pointerEvents:"none"}}},"&-rtl":{direction:"rtl",[`${s}-actions`]:{float:"left"}}}}},Dp=bt(["Notification","PurePanel"],e=>ks(wo(e)),Hs),vn=(e,t)=>{let o=t.itemStyle??Ms;return[$l(e,t),o(e),Bs(e)]},Ls=ie("Notification",e=>{let t=wo(e);return vn(t,{listWidthKey:"width"})},Hs);var Ds=e=>{let t=e.calc(e.controlHeightLG).sub(e.calc(e.fontSize).mul(e.lineHeight)).div(2).equal(),o=e.paddingSM;return ge(wo(e),{notificationBg:e.contentBg,notificationPadding:e.contentPadding,notificationPaddingVertical:t,notificationPaddingHorizontal:o})},As=e=>({zIndexPopup:e.zIndexPopupBase+$t+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),Sn=e=>{let{fontSize:t,fontSizeLG:o,lineHeight:n}=e;return bn(e,{width:"max-content",iconFontSize:o,titleFontSize:t,titleLineHeight:n,contentStyle:{alignItems:"center",gap:e.marginXS},noticeStyle:{zIndex:1}})},wl=e=>{let{componentCls:t}=e,o=`${t}-notice`,n=`${t}-list-content`,r=Sn(e),{"&::after":s,...a}=r[o],l={...a,position:"absolute",zIndex:-1,left:"50%",height:e.calc(e.marginXS).mul(2).equal(),padding:0,boxShadow:e.boxShadowTertiary,opacity:0,pointerEvents:"none",transform:"translateX(-50%) translateY(100%)",transition:[`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,`transform ${e.motionDurationFast} ${e.motionEaseInOut}`,`width ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(", "),content:'""'};return{[t]:{[`&${t}-stack`]:{[n]:{isolation:"isolate","&::before":{...l,top:`calc(var(--top-notificiation-height) - ${H(e.marginXS)})`,width:`calc(var(--top-notificiation-width) - ${H(e.margin)})`},"&::after":{...l,zIndex:-2,top:"var(--top-notificiation-height)",width:`calc(var(--top-notificiation-width) - ${H(e.calc(e.margin).mul(2).equal())})`}},[`&:not(${t}-stack-expanded)`]:{[n]:{"&::before, &::after":{opacity:1,transform:"translateX(-50%) translateY(0)"}}}}}}},Pl=e=>{let{componentCls:t}=e,o=`${t}-notice`,n=Sn(e);return{[`${o}-pure-panel`]:{width:"max-content",maxWidth:"100%",...n,[o]:{...n[o],position:"relative",width:"max-content",maxWidth:"100%"}}}},Gp=bt(["Message","PurePanel"],e=>Pl(Ds(e)),As),Tl=e=>({[e.componentCls]:Sn(e)}),Fs=ie("Message",e=>{let t=Ds(e);return[vn(t,{stackVisibleCount:1,itemStyle:Tl}),wl(t)]},As);var kl={info:i(Tt,null),success:i(St,null),error:i(Rt,null),warning:i(Et,null),loading:i(Nt,null)},Ws=(e,t)=>t||e&&kl[e]||null;function _s(e,t){return{motionName:t??`${e}-fade`}}function Vs(e){let t,o=new Promise(r=>{t=e(()=>{r(!0)})}),n=()=>{t?.()};return n.then=(r,s)=>o.then(r,s),n.promise=o,n}var Ml=8,Il=3,zl=!1,Ol=({children:e,prefixCls:t})=>{let o=et(t),[n,r]=Fs(t,o);return i(Ut,{classNames:{list:v(n,r,o)}},e)},Bl=(e,{prefixCls:t,key:o})=>i(Ol,{prefixCls:t,key:o},e),Hl=j((e,t)=>{let{top:o,prefixCls:n,getContainer:r,maxCount:s,duration:a=Il,rtl:l,classNames:c,styles:d,transitionName:m,pauseOnHover:g=!0,stack:p,onAllRemoved:f}=e,{getPrefixCls:u,direction:h,getPopupContainer:C}=ae("message"),{message:y}=V(se),x=n||u("message"),b=be(y?.style),[N,$]=fe([y?.classNames,c],[y?.styles,b,d],{props:e}),R=()=>No(o??Ml),E=()=>v({[`${x}-rtl`]:l??h==="rtl"}),T=()=>_s(x,m),S=Eo(p,zl),[k,P]=Pt({prefixCls:x,style:R,className:E,motion:T,closable:!1,duration:a,getContainer:()=>r?.()||C?.()||document.body,maxCount:s,onAllRemoved:f,classNames:N,styles:$,renderNotifications:Bl,pauseOnHover:g,stack:S});return Ee(t,()=>({...k,prefixCls:x,message:y})),P}),js=0;function Ll(e){let t=D(null),o=co("Message");return[I(()=>{let r=d=>{t.current?.close(d)},s=d=>{if(!t.current){let z=()=>{};return z.then=()=>{},z}let{open:m,prefixCls:g,message:p}=t.current,f=p?.className||{},u=`${g}-notice`,{content:h,icon:C,type:y,key:x,className:b,style:N,onClose:$,classNames:R={},styles:E={},...T}=d,S=x;xe(S)||(js+=1,S=`antd-message-${js}`);let k={...e,...d},P=yt(R,{props:k}),w=yt(E,{props:k}),O=Ws(y,C),F=y?`${u}-icon-${y}`:void 0;return Vs(z=>(m({...T,key:S,icon:O,title:h,classNames:{...P,wrapper:v(y&&`${g}-${y}`,P?.wrapper),icon:v(F,P?.icon)},styles:w,placement:"top",className:v({[`${u}-${y}`]:y},b,f),style:N,onClose:()=>{$?.(),z()}}),()=>{r(S)}))},l={open:s,destroy:d=>{d!==void 0?r(d):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(d=>{let m=(g,p,f)=>{let u;oe(g)&&"content"in g?u=g:u={content:g};let h,C;Ce(p)?C=p:(h=p,C=f);let y={onClose:C,duration:h,...u,type:d};return s(y)};l[d]=m}),l},[]),i(Hl,{key:"message-holder",...e,ref:t})]}function Rn(e){return Ll(e)}var Dl=e=>{let{type:t,children:o,prefixCls:n,buttonProps:r,close:s,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:d,actionFn:m}=e,g=D(!1),p=D(null),[f,u]=Nr(!1),h=(...x)=>{s?.(...x)};K(()=>{let x=null;return a&&(x=setTimeout(()=>{p.current?.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[a]);let C=x=>{po(x)&&(u(!0),x.then((...b)=>{u(!1,!0),h.apply(void 0,b),g.current=!1},b=>{if(u(!1,!0),g.current=!1,!c?.())return Promise.reject(b)}))},y=x=>{if(g.current)return;if(g.current=!0,!m){h();return}let b;if(l){if(b=m(x),d&&!po(b)){g.current=!1,h(x);return}}else if(m.length)b=m(s),g.current=!1;else if(b=m(),!po(b)){h();return}C(b)};return i(wt,{...Co(t),onClick:y,loading:f,prefixCls:n,...r,ref:p},o)},Po=Dl;var qe=M.createContext({}),{Provider:To}=qe;var Al=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:o,isSilent:n,mergedOkCancel:r,rootPrefixCls:s,close:a,onCancel:l,onConfirm:c,onClose:d}=V(qe);return r?M.createElement(Po,{isSilent:n,actionFn:l,close:(...m)=>{a?.(...m),c?.(!1),d?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},o):null},En=Al;var Fl=()=>{let{autoFocusButton:e,close:t,isSilent:o,okButtonProps:n,rootPrefixCls:r,okTextLocale:s,okType:a,onConfirm:l,onOk:c,onClose:d}=V(qe);return M.createElement(Po,{isSilent:o,type:a||"primary",actionFn:c,close:(...m)=>{t?.(...m),l?.(!0),d?.()},autoFocus:e==="ok",buttonProps:n,prefixCls:`${r}-btn`},s)},Nn=Fl;var ko=Pe({});function $n(e,t,o){let n=t;return!n&&o&&(n=`${e}-${o}`),n}function Gs(e,t){let o=e[`page${t?"Y":"X"}Offset`],n=`scroll${t?"Top":"Left"}`;if(typeof o!="number"){let r=e.document;o=r.documentElement[n],typeof o!="number"&&(o=r.body[n])}return o}function Us(e){let t=e.getBoundingClientRect(),o={left:t.left,top:t.top},n=e.ownerDocument,r=n.defaultView||n.parentWindow;return o.left+=Gs(r),o.top+=Gs(r,!0),o}var qs=no(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Mo.apply(this,arguments)}var Wl=M.forwardRef((e,t)=>{let{prefixCls:o,className:n,style:r,title:s,ariaId:a,footer:l,closable:c,closeIcon:d,onClose:m,children:g,bodyStyle:p,bodyProps:f,modalRender:u,onMouseDown:h,onMouseUp:C,holderRef:y,visible:x,forceRender:b,width:N,height:$,classNames:R,styles:E,isFixedPos:T,focusTrap:S}=e,{panel:k}=M.useContext(ko),P=D(null),w=ao(y,k,P),[O]=wr(x&&T&&S!==!1,()=>P.current);M.useImperativeHandle(t,()=>({focus:()=>{P.current?.focus({preventScroll:!0})}}));let F={};N!==void 0&&(F.width=N),$!==void 0&&(F.height=$);let z=l?M.createElement("div",{className:v(`${o}-footer`,R?.footer),style:{...E?.footer}},l):null,_=s?M.createElement("div",{className:v(`${o}-header`,R?.header),style:{...E?.header}},M.createElement("div",{className:v(`${o}-title`,R?.title),id:a,style:{...E?.title}},s)):null,W=I(()=>typeof c=="object"&&c!==null?c:c?{closeIcon:d??M.createElement("span",{className:`${o}-close-x`})}:{},[c,d,o]),G=Qe(W,!0),U=typeof c=="object"&&c.disabled,Q=c?M.createElement("button",Mo({type:"button",onClick:m,"aria-label":"Close"},G,{className:v(`${o}-close`,R?.close),disabled:U,style:E?.close}),W.closeIcon):null,q=M.createElement("div",{className:v(`${o}-container`,R?.container),style:E?.container},Q,_,M.createElement("div",Mo({className:v(`${o}-body`,R?.body),style:{...p,...E?.body}},f),g),z);return M.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?a:null,"aria-modal":"true",ref:w,style:{...r,...F},className:v(o,n),onMouseDown:h,onMouseUp:C,tabIndex:-1,onFocus:Z=>{O(Z.target)}},M.createElement(qs,{shouldUpdate:x||b},u?u(q):q))}),wn=Wl;function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Pn.apply(this,arguments)}var _l=j((e,t)=>{let{prefixCls:o,title:n,style:r,className:s,visible:a,forceRender:l,destroyOnHidden:c,motionName:d,ariaId:m,onVisibleChanged:g,mousePosition:p}=e,f=D(null),u=D(null);Ee(t,()=>({...u.current,inMotion:f.current.inMotion,enableMotion:f.current.enableMotion}));let[h,C]=A(),y={};h&&(y.transformOrigin=h);function x(){if(!f.current?.nativeElement)return;let b=Us(f.current.nativeElement);C(p&&(p.x||p.y)?`${p.x-b.left}px ${p.y-b.top}px`:"")}return i(mo,{visible:a,onVisibleChanged:g,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:d,removeOnLeave:c,ref:f},({className:b,style:N},$)=>i(wn,Pn({},e,{ref:u,title:n,ariaId:m,prefixCls:o,holderRef:$,style:{...N,...r,...y},className:v(s,b)})))}),Xs=_l;function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},Tn.apply(this,arguments)}var Vl=e=>{let{prefixCls:t,style:o,visible:n,maskProps:r,motionName:s,className:a}=e;return i(mo,{key:"mask",visible:n,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:l,style:c},d)=>i("div",Tn({ref:d,style:{...c,...o},className:v(`${t}-mask`,l,a)},r)))},Zs=Vl;function qt(){return qt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},qt.apply(this,arguments)}var jl=e=>{let{prefixCls:t="rc-dialog",zIndex:o,visible:n=!1,focusTriggerAfterClose:r=!0,wrapStyle:s,wrapClassName:a,wrapProps:l,onClose:c,afterOpenChange:d,afterClose:m,transitionName:g,animation:p,closable:f=!0,mask:u=!0,maskTransitionName:h,maskAnimation:C,maskClosable:y=!0,maskStyle:x,maskProps:b,rootClassName:N,rootStyle:$,classNames:R,styles:E}=e,T=D(null),S=D(null),k=D(null),[P,w]=A(n),[O,F]=A(!1),z=$r();function _(){Jo(S.current,document.activeElement)||(T.current=document.activeElement)}function W(){Jo(S.current,document.activeElement)||k.current?.focus()}function G(){if(w(!1),u&&T.current&&r){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}P&&m?.()}function U(J){J?W():G(),d?.(J)}function Q(J){c?.(J)}let q=D(!1),Z=null;y&&(Z=J=>{S.current===J.target&&q.current&&Q(J)});function ee(J){q.current=J.target===S.current}K(()=>{if(n){if(q.current=!1,w(!0),_(),S.current){let J=getComputedStyle(S.current);F(J.position==="fixed")}}else P&&k.current.enableMotion()&&!k.current.inMotion()&&G()},[n]);let te={zIndex:o,...s,...E?.wrapper,display:P?null:"none"};return i("div",qt({className:v(`${t}-root`,N),style:$},Qe(e,{data:!0})),i(Zs,{prefixCls:t,visible:u&&n,motionName:$n(t,h,C),style:{zIndex:o,...x,...E?.mask},maskProps:b,className:R?.mask}),i("div",qt({className:v(`${t}-wrap`,a,R?.wrapper),ref:S,onClick:Z,onMouseDown:ee,style:te},l),i(Xs,qt({},e,{isFixedPos:O,ref:k,closable:f,ariaId:z,prefixCls:t,visible:n&&P,onClose:Q,onVisibleChanged:U,motionName:$n(t,g,p)}))))},Ks=jl;function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},kn.apply(this,arguments)}var Gl=e=>{let{visible:t,getContainer:o,forceRender:n,destroyOnHidden:r=!1,afterClose:s,closable:a,panelRef:l,keyboard:c=!0,scrollLock:d=!0,onClose:m}=e,{scrollLock:g,...p}=e,[f,u]=A(t),h=I(()=>({panel:l}),[l]),C=({top:y,event:x})=>{if(y&&c){x.stopPropagation(),m?.(x);return}};return K(()=>{t&&u(!0)},[t]),!n&&r&&!f?null:i(ko.Provider,{value:h},i(Vr,{open:t||n||f,onEsc:C,autoDestroy:!1,getContainer:o,autoLock:d&&(t||f)},i(Ks,kn({},p,{destroyOnHidden:r,afterClose:()=>{let y=a&&typeof a=="object"?a:{},{afterClose:x}=y||{};x?.(),s?.(),u(!1)}}))))},Ys=Gl;var Qs=Ys;var Js=()=>Er()&&window.document.documentElement;function Mn(e,t,o){return I(()=>({...{trap:t??!0,focusTriggerAfterClose:o??!0},...e}),[e,t,o])}var Ul=e=>{let{prefixCls:t,className:o,style:n,size:r,shape:s}=e,a=v({[`${t}-lg`]:r==="large",[`${t}-sm`]:r==="small"}),l=v({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),c=I(()=>Ae(r)?{width:r,height:r,lineHeight:`${r}px`}:{},[r]);return i("span",{className:v(t,a,l,o),style:{...c,...n}})},nt=Ul;var ql=new zr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Bn=e=>({height:e,lineHeight:H(e)}),rt=e=>({width:e,...Bn(e)}),Xl=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:ql,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),In=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Bn(e)}),Zl=e=>{let{skeletonAvatarCls:t,gradientFromColor:o,controlHeight:n,controlHeightLG:r,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:o,...rt(n)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...rt(r)},[`${t}${t}-sm`]:{...rt(s)}}},Kl=e=>{let{controlHeight:t,borderRadiusSM:o,skeletonInputCls:n,controlHeightLG:r,controlHeightSM:s,gradientFromColor:a,calc:l}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:o,...In(t,l)},[`${n}-lg`]:{...In(r,l)},[`${n}-sm`]:{...In(s,l)}}},ea=e=>{let{gradientFromColor:t,borderRadiusSM:o,imageSizeBase:n,calc:r}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:o,...rt(r(n).mul(2).equal())}},Yl=e=>({[e.skeletonNodeCls]:{...ea(e)}}),Ql=e=>{let{skeletonImageCls:t,imageSizeBase:o,calc:n}=e;return{[t]:{...ea(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...rt(o),maxWidth:n(o).mul(4).equal(),maxHeight:n(o).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},zn=(e,t,o)=>{let{skeletonButtonCls:n}=e;return{[`${o}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${o}${n}-round`]:{borderRadius:t}}},On=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Bn(e)}),Jl=e=>{let{borderRadiusSM:t,skeletonButtonCls:o,controlHeight:n,controlHeightLG:r,controlHeightSM:s,gradientFromColor:a,calc:l}=e;return{[o]:{display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(n).mul(2).equal(),minWidth:l(n).mul(2).equal(),...On(n,l)},...zn(e,n,o),[`${o}-lg`]:{...On(r,l)},...zn(e,r,`${o}-lg`),[`${o}-sm`]:{...On(s,l)},...zn(e,s,`${o}-sm`)}},ec=e=>{let{componentCls:t,skeletonAvatarCls:o,skeletonTitleCls:n,skeletonParagraphCls:r,skeletonButtonCls:s,skeletonInputCls:a,skeletonNodeCls:l,skeletonImageCls:c,controlHeight:d,controlHeightLG:m,controlHeightSM:g,gradientFromColor:p,padding:f,marginSM:u,borderRadius:h,titleHeight:C,blockRadius:y,paragraphLiHeight:x,controlHeightXS:b,paragraphMarginTop:N}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:f,verticalAlign:"top",[o]:{display:"inline-block",verticalAlign:"top",background:p,...rt(d)},[`${o}-circle`]:{borderRadius:"50%"},[`${o}-lg`]:{...rt(m)},[`${o}-sm`]:{...rt(g)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:C,background:p,borderRadius:y,[`+ ${r}`]:{marginBlockStart:g}},[r]:{padding:0,"> li":{width:"100%",height:x,listStyle:"none",background:p,borderRadius:y,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${n}, ${r} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[n]:{marginBlockStart:u,[`+ ${r}`]:{marginBlockStart:N}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...Jl(e),...Zl(e),...Kl(e),...Yl(e),...Ql(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
2
|
+
${n},
|
|
3
|
+
${r} > li,
|
|
4
|
+
${o},
|
|
5
|
+
${s},
|
|
6
|
+
${a},
|
|
7
|
+
${l},
|
|
8
|
+
${c}
|
|
9
|
+
`]:{...Xl(e)}}}},tc=e=>{let{colorFillContent:t,colorFill:o}=e,n=t,r=o;return{color:n,colorGradientEnd:r,gradientFromColor:n,gradientToColor:r,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},_e=ie("Skeleton",e=>{let{componentCls:t,calc:o}=e,n=ge(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:o(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return ec(n)},tc,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]});var oc=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,active:s,style:a,styles:l,shape:c="circle",size:d,...m}=e,{getPrefixCls:g}=V(se),p=g("skeleton",t),[f,u]=_e(p),h=We(y=>d??y),C=v(p,`${p}-element`,{[`${p}-active`]:s},n?.root,o,r,f,u);return i("div",{className:C,style:l?.root},i(nt,{prefixCls:`${p}-avatar`,className:n?.content,style:{...l?.content,...a},shape:c,size:h,...m}))},ta=oc;var nc=e=>{let{prefixCls:t,className:o,rootClassName:n,classNames:r,active:s,style:a,styles:l,block:c=!1,size:d,...m}=e,{getPrefixCls:g}=V(se),p=g("skeleton",t),[f,u]=_e(p),h=We(y=>d??y),C=v(p,`${p}-element`,{[`${p}-active`]:s,[`${p}-block`]:c},r?.root,o,n,f,u);return i("div",{className:C,style:l?.root},i(nt,{prefixCls:`${p}-button`,className:r?.content,style:{...l?.content,...a},size:h,...m}))},oa=nc;var rc=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,internalClassName:s,style:a,styles:l,active:c,children:d}=e,{getPrefixCls:m}=V(se),g=m("skeleton",t),[p,f]=_e(g),u=v(g,`${g}-element`,{[`${g}-active`]:c},p,n?.root,o,r,f);return i("div",{className:u,style:l?.root},i("div",{className:v(n?.content,s||`${g}-node`),style:{...l?.content,...a}},d))},Io=rc;var sc=e=>{let{getPrefixCls:t}=V(se),o=t("skeleton",e.prefixCls);return i(Io,{...e,internalClassName:`${o}-image`},i("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${o}-image-svg`},i("title",null,"Image placeholder"),i("path",{d:"M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6",className:`${o}-image-path`})))},na=sc;var ac=e=>{let{prefixCls:t,className:o,classNames:n,rootClassName:r,active:s,block:a,style:l,styles:c,size:d,...m}=e,{getPrefixCls:g}=V(se),p=g("skeleton",t),[f,u]=_e(p),h=We(y=>d??y),C=v(p,`${p}-element`,{[`${p}-active`]:s,[`${p}-block`]:a},n?.root,o,r,f,u);return i("div",{className:C,style:c?.root},i(nt,{prefixCls:`${p}-input`,className:n?.content,style:{...c?.content,...l},size:h,...m}))},ra=ac;var ic=(e,t)=>{let{width:o,rows:n=2}=t;if(Array.isArray(o))return o[e];if(n-1===e)return o},lc=e=>{let{prefixCls:t,className:o,style:n,rows:r=0}=e,s=Array.from({length:r}).map((a,l)=>i("li",{key:l,style:{width:ic(l,e)}}));return i("ul",{className:v(t,o),style:n},s)},sa=lc;var cc=({prefixCls:e,className:t,width:o,style:n})=>i("h3",{className:v(e,t),style:{width:o,...n}}),aa=cc;function Hn(e){return oe(e)?e:{}}function mc(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function dc(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function pc(e,t){let o={};return(!e||!t)&&(o.width="61%"),!e&&t?o.rows=3:o.rows=2,o}var Mt=M.forwardRef((e,t)=>{let{prefixCls:o,loading:n,className:r,rootClassName:s,classNames:a,style:l,styles:c,children:d,avatar:m=!1,title:g=!0,paragraph:p=!0,active:f,round:u}=e,{getPrefixCls:h,direction:C,className:y,style:x,classNames:b,styles:N}=ae("skeleton"),$=h("skeleton",o),[R,E]=_e($),T={...e,avatar:m,title:g,paragraph:p},S=be(x),k=be(l),[P,w]=fe([b,a],[N,S,c,k],{props:T}),O=M.useRef(null);if(M.useImperativeHandle(t,()=>({nativeElement:O.current})),n||!("loading"in e)){let F=!!m,z=!!g,_=!!p,W;if(F){let Q={className:P.avatar,prefixCls:`${$}-avatar`,...mc(z,_),...Hn(m),style:w.avatar};W=M.createElement("div",{className:v(P.header,`${$}-header`),style:w.header},M.createElement(nt,{...Q}))}let G;if(z||_){let Q;if(z){let Z={className:P.title,prefixCls:`${$}-title`,...dc(F,_),...Hn(g),style:w.title};Q=M.createElement(aa,{...Z})}let q;if(_){let Z={className:P.paragraph,prefixCls:`${$}-paragraph`,...pc(F,z),...Hn(p),style:w.paragraph};q=M.createElement(sa,{...Z})}G=M.createElement("div",{className:v(P.section,`${$}-section`),style:w.section},Q,q)}let U=v($,{[`${$}-with-avatar`]:F,[`${$}-active`]:f,[`${$}-rtl`]:C==="rtl",[`${$}-round`]:u},P.root,y,r,s,R,E);return M.createElement("div",{ref:O,className:U,style:w.root},W,G)}return d??null});Mt.Button=oa;Mt.Avatar=ta;Mt.Input=ra;Mt.Image=na;Mt.Node=Io;var ia=Mt;var la=ia;function ca(){}var fc=Pe({add:ca,remove:ca});function ma(e){let t=V(fc),o=D(null);return ze(r=>{if(r){let s=e?r.querySelector(e):r;s&&(t.add(s),o.current=s)}else t.remove(o.current)})}var uc=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:o}=V(qe);return M.createElement(wt,{onClick:o,...e},t)},Ln=uc;var gc=()=>{let{confirmLoading:e,okButtonProps:t,okType:o,okTextLocale:n,onOk:r}=V(qe);return M.createElement(wt,{...Co(o),loading:e,onClick:r,...t},n)},Dn=gc;function da(e,t){return M.createElement("span",{className:`${e}-close-x`},t||M.createElement(Ue,{className:`${e}-close-icon`}))}var pa=e=>{let{okText:t,okType:o="primary",cancelText:n,confirmLoading:r,onOk:s,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:d}=e,[m]=ue("Modal",Or()),g=t||m?.okText,p=n||m?.cancelText,f=M.useMemo(()=>({confirmLoading:r,okButtonProps:l,cancelButtonProps:c,okTextLocale:g,cancelTextLocale:p,okType:o,onOk:s,onCancel:a}),[r,l,c,g,p,o,s,a]),u;return Ce(d)||typeof d>"u"?(u=M.createElement(M.Fragment,null,M.createElement(Ln,null),M.createElement(Dn,null)),Ce(d)&&(u=d(u,{OkBtn:Dn,CancelBtn:Ln})),u=M.createElement(To,{value:f},u)):u=d,M.createElement(Gr,{disabled:!1},u)};function fa(e){return{position:e,inset:0}}var hc=e=>{let{componentCls:t,antCls:o}=e;return[{[`${t}-root`]:{[`${t}${o}-zoom-enter, ${t}${o}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${o}-zoom-leave ${t}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...fa("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...fa("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:Qr(e)}]},xc=e=>{let{componentCls:t,motionDurationMid:o}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${H(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Fe(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${H(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto","&:focus-visible":{borderRadius:e.borderRadiusLG,...Zr(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:["color","background-color"].map(n=>`${n} ${o}`).join(", "),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:H(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...ho(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${H(e.borderRadiusLG)} ${H(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:`${H(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,
|
|
10
|
+
${t}-body,
|
|
11
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},yc=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Cc=e=>{let{componentCls:t}=e,o=es(e),n={...o};delete n.xs;let r=`--${t.replace(".","")}-`,s=Object.keys(n).map(a=>({[`@media (min-width: ${H(n[a])})`]:{width:`var(${r}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat($e(Object.keys(o).map((a,l)=>{let c=Object.keys(o)[l-1];return c?{[`${r}${a}-width`]:`var(${r}${c}-width)`}:null})),[{width:`var(${r}xs-width)`}],$e(s))}}},An=e=>{let t=e.padding,o=e.fontSizeHeading5,n=e.lineHeightHeading5;return ge(e,{modalHeaderHeight:e.calc(e.calc(n).mul(o).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},Fn=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${H(e.padding)} ${H(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${H(e.paddingXS)} ${H(e.padding)}`:0,footerBorderTop:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${H(e.padding*2)} ${H(e.padding*2)} ${H(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),ua=ie("Modal",e=>{let t=An(e);return[xc(t),yc(t),hc(t),bo(t,"zoom"),Cc(t)]},Fn,{unitless:{titleLineHeight:!0}});var Wn,bc=e=>{Wn={x:e.pageX,y:e.pageY},setTimeout(()=>{Wn=null},100)};Js()&&document.documentElement.addEventListener("click",bc,!0);var vc=e=>{let{prefixCls:t,className:o,rootClassName:n,open:r,wrapClassName:s,centered:a,getContainer:l,style:c,width:d=520,footer:m,classNames:g,styles:p,children:f,loading:u,confirmLoading:h,zIndex:C,mousePosition:y,onOk:x,onCancel:b,okButtonProps:N,cancelButtonProps:$,destroyOnHidden:R,destroyOnClose:E,panelRef:T=null,closable:S,mask:k,modalRender:P,maskClosable:w,_semanticOmit:O,scrollLock:F,focusTriggerAfterClose:z,focusable:_,_renderSemanticContent:W,...G}=e,{getPopupContainer:U,getPrefixCls:Q,direction:q,className:Z,style:ee,classNames:te,styles:J,centered:he,cancelButtonProps:ke,okButtonProps:ve,mask:Se,focusable:ce}=ae("modal"),{modal:ne}=V(se),[me,Ze]=I(()=>typeof S=="boolean"?[void 0,void 0]:[S?.afterClose,S?.onClose],[S]),le=Q("modal",t),dt=Q(),[Ke,Bt,de]=ws(k,Se,le,w),pe=Mn({...ce,..._},Ke,z),Be=Me=>{h||(b?.(Me),Ze?.())},Go=Me=>{x?.(Me),Ze?.()},Re=et(le),[je,pt]=ua(le,Re),Ge=v(s,{[`${le}-centered`]:a??he,[`${le}-wrap-rtl`]:q==="rtl"}),Uo=m!==null&&!u?i(pa,{...e,okButtonProps:{...ve,...N},onOk:Go,cancelButtonProps:{...ke,...$},onCancel:Be}):null,[Kt,at,it,Yt]=$s(kt(e),kt(ne),{closable:!0,closeIcon:i(Ue,{className:`${le}-close-icon`}),closeIconRender:Me=>da(le,Me)}),qo=Kt?{disabled:it,closeIcon:at,afterClose:me,...Yt}:!1,Ht=P?Me=>i("div",{className:`${le}-render`},P(Me)):void 0,Xo=`.${le}-${P?"render":"container"}`,Qt=ma(Xo),Zo=xt(T,Qt),[Jt,eo]=Yr("Modal",C),Lt={...e,width:d,panelRef:T,focusTriggerAfterClose:pe.focusTriggerAfterClose,focusable:pe,mask:Ke,maskClosable:de,zIndex:Jt},[Dt,At]=fe([te,g,Bt],[J,p],{props:Lt}),lt=O?De(Dt,O):Dt,Ft=O?De(At,O):At,Ko=W?W({classNames:Dt,styles:At}):f,[Yo,ft]=I(()=>oe(d)?[void 0,d]:[d,void 0],[d]),to=I(()=>{let Me={};return ft&&Object.keys(ft).forEach(X=>{let Y=ft[X];xe(Y)&&(Me[`--${le}-${X}-width`]=Ae(Y)?`${Y}px`:Y)}),Me},[le,ft]);return i(Jr,{form:!0,space:!0},i(Kr.Provider,{value:eo},i(Qs,{width:Yo,...G,zIndex:Jt,getContainer:l===void 0?U:l,prefixCls:le,rootClassName:v(je,n,pt,Re,lt.root),rootStyle:Ft.root,footer:Uo,visible:r,mousePosition:y??Wn,onClose:Be,closable:qo,closeIcon:at,transitionName:tt(dt,"zoom",e.transitionName),maskTransitionName:tt(dt,"fade",e.maskTransitionName),mask:Ke,maskClosable:de,scrollLock:F,className:v(je,o,Z),style:{...ee,...c,...to},classNames:{...lt,wrapper:v(lt.wrapper,Ge)},styles:Ft,panelRef:Zo,destroyOnHidden:R??E,modalRender:Ht,focusTriggerAfterClose:pe.focusTriggerAfterClose,focusTrap:pe.trap},u?i(la,{active:!0,title:!1,paragraph:{rows:4},className:`${le}-body-skeleton`}):Ko)))},zo=vc;var Sc=e=>{let{componentCls:t,titleFontSize:o,titleLineHeight:n,modalConfirmIconSize:r,fontSize:s,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:d}=e,m=`${t}-confirm`;return{[m]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${m}-body-wrapper`]:{...Xr()},[`&${t} ${t}-body`]:{padding:d},[`${m}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()}},[`${m}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${H(e.marginSM)})`},[`${m}-body-no-icon ${m}-paragraph`]:{maxWidth:"100%"},[`${e.iconCls} + ${m}-paragraph`]:{maxWidth:`calc(100% - ${H(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${m}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:o,lineHeight:n},[`${m}-container`]:{color:e.colorText,fontSize:s,lineHeight:a},[`${m}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${m}-error ${m}-body > ${e.iconCls}`]:{color:e.colorError},[`${m}-warning ${m}-body > ${e.iconCls},
|
|
12
|
+
${m}-confirm ${m}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${m}-info ${m}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${m}-success ${m}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},ga=bt(["Modal","confirm"],e=>{let t=An(e);return Sc(t)},Fn,{order:-1e3});var Rc=["body"],Ec=e=>{let{prefixCls:t,icon:o,okText:n,cancelText:r,confirmPrefixCls:s,type:a,okCancel:l,footer:c,locale:d,autoFocusButton:m,focusable:g,contentClassName:p,contentStyle:f,...u}=e,{infoIcon:h,successIcon:C,errorIcon:y,warningIcon:x}=ae("modal"),b=o;if(o===void 0)switch(a){case"info":b=jt(h,i(Tt,null));break;case"success":b=jt(C,i(St,null));break;case"error":b=jt(y,i(Rt,null));break;default:b=jt(x,i(Et,null))}let N=l??a==="confirm",$=I(()=>{let W=g?.autoFocusButton||m;return W||W===null?W:"ok"},[m,g?.autoFocusButton]),[R]=ue("Modal"),E=d||R,T=n||(N?E?.okText:E?.justOkText),S=r||E?.cancelText,{closable:k}=u,{onClose:P}=oe(k)?k:{},w=I(()=>({autoFocusButton:$,cancelTextLocale:S,okTextLocale:T,mergedOkCancel:N,onClose:P,...u}),[$,S,T,N,P,u]),O=i(Ne,null,i(En,null),i(Nn,null)),F=ye(e.title),z=ye(b),_=`${s}-body`;return i("div",{className:`${s}-body-wrapper`},i("div",{className:v(_,{[`${_}-has-title`]:F,[`${_}-no-icon`]:!z})},b,i("div",{className:`${s}-paragraph`},F&&i("span",{className:`${s}-title`},e.title),i("div",{className:v(`${s}-content`,p),style:f},e.content))),c===void 0||Ce(c)?i(To,{value:w},i("div",{className:`${s}-btns`},Ce(c)?c(O,{OkBtn:Nn,CancelBtn:En}):O)):c,i(ga,{prefixCls:t}))},Nc=e=>{let{close:t,zIndex:o,maskStyle:n,direction:r,prefixCls:s,wrapClassName:a,rootPrefixCls:l,bodyStyle:c,closable:d=!1,onConfirm:m,styles:g,title:p,mask:f,maskClosable:u,okButtonProps:h,cancelButtonProps:C}=e,{cancelButtonProps:y,okButtonProps:x}=ae("modal"),b=`${s}-confirm`,N=e.width||416,$=e.style||{},R=Ce(g)?w=>({body:c,mask:n,...g(w)}):{body:c,mask:n,...g},E=De(e,["bodyStyle","maskStyle"]),T=v(b,`${b}-${e.type}`,{[`${b}-rtl`]:r==="rtl"},e.className),S=I(()=>{let w=$o(f,u);return w.closable??(w.closable=!1),w},[f,u]),[,k]=Je(),P=I(()=>o!==void 0?o:k.zIndexPopupBase+$t,[o,k]);return i(zo,{...E,className:T,wrapClassName:v({[`${b}-centered`]:!!e.centered},a),onCancel:()=>{t?.({triggerCancel:!0}),m?.(!1)},title:p,footer:null,transitionName:tt(l||"","zoom",e.transitionName),maskTransitionName:tt(l||"","fade",e.maskTransitionName),mask:S,style:$,styles:R,width:N,zIndex:P,closable:d,_semanticOmit:Rc,_renderSemanticContent:({classNames:w,styles:O})=>i(Ec,{...e,confirmPrefixCls:b,okButtonProps:{...x,...h},cancelButtonProps:{...y,...C},contentClassName:w.body,contentStyle:O.body})})},$c=e=>{let{rootPrefixCls:t,iconPrefixCls:o,direction:n,theme:r}=e;return i(vt,{prefixCls:t,iconPrefixCls:o,direction:n,theme:r},i(Nc,{...e}))},ha=$c;var wc=[],xa=wc;function ya(e){return{...e,type:"warning"}}function Ca(e){return{...e,type:"info"}}function ba(e){return{...e,type:"success"}}function va(e){return{...e,type:"error"}}function Sa(e){return{...e,type:"confirm"}}var Pc=j((e,t)=>{let{afterClose:o,config:n,...r}=e,[s,a]=A(!0),[l,c]=A(n),{direction:d,getPrefixCls:m}=V(se),g=m("modal"),p=m(),f=()=>{o(),l.afterClose?.()},u=(...y)=>{a(!1),y.some(b=>b?.triggerCancel)&&l.onCancel?.(()=>{},...y.slice(1))};Ee(t,()=>({destroy:u,update:y=>{c(x=>{let b=Ce(y)?y(x):y;return{...x,...b}})}}));let h=l.okCancel??l.type==="confirm",[C]=ue("Modal",ct.Modal);return i(ha,{prefixCls:g,rootPrefixCls:p,...l,close:u,open:s,afterClose:f,okText:l.okText||(h?C?.okText:C?.justOkText),direction:l.direction||d,cancelText:l.cancelText||C?.cancelText,...r})}),Ra=Pc;var Ea=0,Tc=no(j((e,t)=>{let[o,n]=Ps();return Ee(t,()=>({patchElement:n}),[n]),i(Ne,null,o)}));function kc(){let e=D(null),[t,o]=A([]);K(()=>{t.length&&($e(t).forEach(a=>{a()}),o([]))},[t]);let n=Ie(s=>function(l){Ea+=1;let c=vr(),d,m=new Promise(h=>{d=h}),g=!1,p,f=i(Ra,{key:`modal-${Ea}`,config:s(l),ref:c,afterClose:()=>{p?.()},isSilent:()=>g,onConfirm:h=>{d(h)}});return p=e.current?.patchElement(f),p&&xa.push(p),{destroy:()=>{function h(){c.current?.destroy()}c.current?h():o(C=>[].concat($e(C),[h]))},update:h=>{function C(){c.current?.update(h)}c.current?C():o(y=>[].concat($e(y),[C]))},then:h=>(g=!0,m.then(h))}},[]);return[I(()=>({info:n(Ca),success:n(ba),error:n(va),warning:n(ya),confirm:n(Sa)}),[n]),i(Tc,{key:"modal-holder",ref:e})]}var Na=kc;var $a={info:i(Tt,null),success:i(St,null),error:i(Rt,null),warning:i(Et,null),loading:i(Nt,null)};function _n(e,t){return t===null||t===!1?null:t||i(Ue,{className:`${e}-close-icon`})}var Mc=4.5,Ic="topRight",zc={offset:8},Oc=({children:e,prefixCls:t})=>{let o=et(t),[n,r]=Ls(t,o);return M.createElement(Ut,{classNames:{list:v(n,r,o)}},e)},Bc=(e,{prefixCls:t,key:o})=>M.createElement(Oc,{prefixCls:t,key:o},e),Hc=M.forwardRef((e,t)=>{let{top:o,bottom:n,prefixCls:r,getContainer:s,maxCount:a,rtl:l,onAllRemoved:c,stack:d,duration:m=Mc,pauseOnHover:g=!0,showProgress:p}=e,{getPrefixCls:f,getPopupContainer:u,direction:h}=ae("notification"),{notification:C}=V(se),[y]=ue("global",ct.global),x=r||f("notification"),b=I(()=>Ae(m)&&m>0?m:!1,[m]),N=be(C?.style),[$,R]=fe([C?.classNames,e?.classNames],[C?.styles,N,e?.styles],{props:e}),E=()=>No(o,n),T=()=>v({[`${x}-rtl`]:l??h==="rtl"}),S=()=>ys(x),k=Eo(d,zc),[P,w]=Pt({prefixCls:x,style:E,className:T,motion:S,closable:{closeIcon:_n(x)},duration:b,getContainer:()=>s?.()||u?.()||document.body,maxCount:a,pauseOnHover:g,showProgress:p,classNames:$,styles:R,onAllRemoved:c,renderNotifications:Bc,stack:k});return M.useImperativeHandle(t,()=>({...P,prefixCls:x,notification:C,closeLabel:y.close??ct.global?.close??"Close"})),w});function Lc(e){let t=M.useRef(null),o=co("Notification"),{notification:n}=M.useContext(se);return[M.useMemo(()=>{let s=d=>{if(!t.current)return;let{open:m,prefixCls:g,notification:p,closeLabel:f}=t.current,u=p?.className||{},h=`${g}-notice`,{title:C,message:y,description:x,icon:b,type:N,btn:$,actions:R,className:E,style:T,role:S="alert",closeIcon:k,closable:P,classNames:w={},styles:O={},...F}=d,z=C??y,_=ye(z),W=R??$,G=_n(h,Cs(k,e,p)),[U,Q,,q]=Cn(kt({...e||{},...d}),kt(n),{closable:!0,closeIcon:G},f),Z=U?{onClose:oe(P)?P.onClose:void 0,closeIcon:Q,...q}:!1,ee=yt(w,{props:d}),te=yt(O,{props:d}),J=b||(N?$a[N]:null),he=!b&&N?`${h}-icon-${N}`:void 0;return m({placement:e?.placement??Ic,...F,title:_?z:null,description:x,icon:J,actions:W,role:S,classNames:{...ee,icon:v(he,ee?.icon)},styles:te,className:v({[`${h}-${N}`]:N},E,u),style:T,closable:Z})},l={open:s,destroy:d=>{d!==void 0?t.current?.close(d):t.current?.destroy()}};return["success","info","warning","error"].forEach(d=>{l[d]=m=>s({...m,type:d})}),l},[e,n]),M.createElement(Hc,{key:"notification-holder",...e,ref:t})]}function Vn(e){return Lc(e)}var Dc=e=>{let{componentCls:t,colorText:o,fontSize:n,lineHeight:r,fontFamily:s}=e;return{[t]:{color:o,fontSize:n,lineHeight:r,fontFamily:s,[`&${t}-rtl`]:{direction:"rtl"}}}},Ac=()=>({}),wa=ie("App",Dc,Ac);var Fc=M.forwardRef((e,t)=>{let{prefixCls:o,children:n,className:r,rootClassName:s,message:a,notification:l,style:c,component:d="div"}=e,{direction:m,getPrefixCls:g,className:p,style:f}=ae("app"),u=g("app",o),[h,C]=wa(u),y=v(h,u,r,s,C,{[`${u}-rtl`]:m==="rtl"}),x=V(nn),b=M.useMemo(()=>({message:{...x.message,...a},notification:{...x.notification,...l}}),[a,l,x.message,x.notification]),[N,$]=Rn(b.message),[R,E]=Vn(b.notification),[T,S]=Na(),k=M.useMemo(()=>({message:N,notification:R,modal:T}),[N,R,T]),P=Tr("App");P(!(C&&d===!1&&!!(r||s||c||p||f)),"usage","When using cssVar, ensure `component` is assigned a valid React component string."),P(!t||d!==!1,"usage","`ref` is not supported when `component` is `false`. Please provide a valid `component` instead.");let O=d===!1?M.Fragment:d,F={className:v(p,y),style:{...f,...c}};return M.createElement(ts.Provider,{value:k},M.createElement(nn.Provider,{value:b},M.createElement(O,{...d===!1?void 0:{...F,ref:t}},S,$,E,n)))}),Pa=Fc;var Wc=e=>{let t=e?.algorithm?Mr(e.algorithm):Wr,o={...Hr,...e?.token};return Ir(o,{override:e?.token},t,Ur)},Ta=Wc;function jn(e){let{sizeUnit:t,sizeStep:o}=e,n=o-2;return{sizeXXL:t*(n+10),sizeXL:t*(n+6),sizeLG:t*(n+2),sizeMD:t*(n+2),sizeMS:t*(n+1),size:t*n,sizeSM:t*n,sizeXS:t*(n-1),sizeXXS:t*(n-1)}}var _c=(e,t)=>{let o=t??Ct(e),n=o.fontSizeSM,r=o.controlHeight-4;return{...o,...jn(t??e),...Fr(n),controlHeight:r,...Ar({...o,controlHeight:r})}},ka=_c;var Oe=(e,t)=>new _t(e).setA(t).toRgbString(),st=(e,t)=>new _t(e).lighten(t).toHexString();var Gn=e=>{let t=fo(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]}},Ma=(e,t,o)=>{let n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorShadow:o||"rgba(255, 255, 255, 0.2)",colorText:Oe(r,.85),colorTextSecondary:Oe(r,.65),colorTextTertiary:Oe(r,.45),colorTextQuaternary:Oe(r,.25),colorFill:Oe(r,.18),colorFillSecondary:Oe(r,.12),colorFillTertiary:Oe(r,.08),colorFillQuaternary:Oe(r,.04),colorBgSolid:Oe(r,.95),colorBgSolidHover:Oe(r,1),colorBgSolidActive:Oe(r,.9),colorBgElevated:st(n,12),colorBgContainer:st(n,8),colorBgLayout:st(n,0),colorBgSpotlight:st(n,26),colorBgBlur:Oe(r,.04),colorBorder:st(n,26),colorBorderDisabled:st(n,26),colorBorderSecondary:st(n,19)}};var Vc=(e,t)=>{let o=Object.keys(Br).map(a=>{let l=fo(e[a],{theme:"dark"});return Array.from({length:10},()=>1).reduce((c,d,m)=>(c[`${a}-${m+1}`]=l[m],c[`${a}${m+1}`]=l[m],c),{})}).reduce((a,l)=>(a={...a,...l},a),{}),n=t??Ct(e),r=Dr(e,{generateColorPalettes:Gn,generateNeutralColorPalettes:Ma}),s=uo.reduce((a,l)=>{let c=e[l];if(c){let d=Gn(c);a[`${l}Hover`]=d[7],a[`${l}Active`]=d[5]}return a},{});return{...n,...o,...r,...s,colorPrimaryBg:r.colorPrimaryBorder,colorPrimaryBgHover:r.colorPrimaryBorderHover}},Ia=Vc;function jc(){let[e,t,o,n]=Je();return{theme:e,token:t,hashId:o,cssVar:n}}var Gc={defaultSeed:on.token,useToken:jc,defaultAlgorithm:Ct,darkAlgorithm:Ia,compactAlgorithm:ka,getDesignToken:Ta,defaultConfig:on,_internalContext:_r},za=Gc;var Uc={token:{colorPrimary:"#1677ff",borderRadius:10,motion:!0,fontFamily:["-apple-system","BlinkMacSystemFont","'Segoe UI'","Roboto","'Helvetica Neue'","Arial","'Noto Sans'","sans-serif"].join(", ")}},Oa=vo(Uc);var Oo=Pe("light");var qn="zlooks.theme",Un="zlooks:theme-change",It="default";function Xt(){let e=Sr(Kc,qc,Xc),t=V(Oo);return{mode:e,resolvedMode:t,setMode:Zc}}function Bo(e){return e==="dark"||e==="light"||e==="default"?e:"default"}function qc(){if(typeof window>"u")return It;try{let e=window.localStorage.getItem(qn);e!==null&&(It=Bo(e))}catch{}return It}function Xc(){return"default"}function Zc(e){if(Bo(e)!==e)throw new TypeError(`Unsupported Zlooks theme mode: ${String(e)}`);if(It=e,!(typeof window>"u")){try{window.localStorage.setItem(qn,e)}catch{}window.dispatchEvent(new CustomEvent(Un,{detail:e}))}}function Kc(e){if(typeof window>"u")return()=>{};let t=n=>{It=Bo(n.detail),e()},o=n=>{n.key===qn&&(It=Bo(n.newValue),e())};return window.addEventListener(Un,t),window.addEventListener("storage",o),()=>{window.removeEventListener(Un,t),window.removeEventListener("storage",o)}}var Yc=Te(Pa),Qc=Te(vt),Ba=Te(za);function Xn({children:e,theme:t}){let o=Xt(),{resolvedMode:n,resolvedTheme:r}=Zn(t??o.mode);return B(Qc,{button:{autoInsertSpace:!1},theme:r,children:B(Yc,{children:B(Oo,{value:n,children:B("div",{className:"zlooks-ui-theme","data-zlooks-theme":n,children:e})})})})}function Zn(e){let t=Jc(e==="default"),o=e==="default"?t?"dark":"light":e,n=I(()=>({...Oa,algorithm:o==="dark"?Ba.darkAlgorithm:Ba.defaultAlgorithm,cssVar:{key:`zlooks-${o}`},hashed:!1,zeroRuntime:!0}),[o]);return{resolvedMode:o,resolvedTheme:n}}function Jc(e){let[t,o]=A(!1);return K(()=>{if(!e)return;let n=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>o(n.matches);return r(),n.addEventListener("change",r),()=>n.removeEventListener("change",r)},[e]),t}var em=Pe({}),Ha=em;var tm=e=>{let{antCls:t,componentCls:o,iconCls:n,avatarBg:r,avatarColor:s,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:d,textFontSizeLG:m,textFontSizeSM:g,iconFontSize:p,iconFontSizeLG:f,iconFontSizeSM:u,borderRadius:h,borderRadiusLG:C,borderRadiusSM:y,lineWidth:x,lineType:b}=e,N=($,R,E,T)=>({width:$,height:$,borderRadius:"50%",fontSize:R,[`&${o}-square`]:{borderRadius:T},[`&${o}-icon`]:{fontSize:E,[`> ${n}`]:{margin:0}}});return{[o]:{...Fe(e),position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:s,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${H(x)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"},...N(a,d,p,h),"&-lg":{...N(l,m,f,C)},"&-sm":{...N(c,g,u,y)},"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}}}},om=e=>{let{componentCls:t,groupBorderColor:o,groupOverlapping:n,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:o},"> *:not(:first-child)":{marginInlineStart:n}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},nm=e=>{let{controlHeight:t,controlHeightLG:o,controlHeightSM:n,fontSize:r,fontSizeLG:s,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:d,colorBorderBg:m}=e;return{containerSize:t,containerSizeLG:o,containerSizeSM:n,textFontSize:r,textFontSizeLG:r,textFontSizeSM:r,iconFontSize:Math.round((s+a)/2),iconFontSizeLG:l,iconFontSizeSM:r,groupSpace:d,groupOverlapping:-c,groupBorderColor:m}},La=ie("Avatar",e=>{let{colorTextLightSolid:t,colorTextPlaceholder:o}=e,n=ge(e,{avatarBg:o,avatarColor:t});return[tm(n),om(n)]},nm);var rm=j((e,t)=>{let{prefixCls:o,shape:n,size:r,src:s,srcSet:a,icon:l,className:c,rootClassName:d,style:m,alt:g,draggable:p,children:f,crossOrigin:u,gap:h=4,onError:C,...y}=e,[x,b]=A(1),[N,$]=A(!1),[R,E]=A(!0),T=D(null),S=D(null),k=xt(t,T),{getPrefixCls:P,className:w,style:O}=ae("avatar"),F=V(Ha),z=()=>{if(!S.current||!T.current)return;let ne=S.current.offsetWidth,me=T.current.offsetWidth;ne!==0&&me!==0&&h*2<me&&b(me-h*2<ne?(me-h*2)/ne:1)};K(()=>{$(!0)},[]),K(()=>{E(!0),b(1)},[s]),K(z,[h]);let _=()=>{C?.()!==!1&&E(!1)},W=We(ne=>r??F?.size??ne??"medium"),G=Object.keys(oe(W)?W||{}:{}).some(ne=>rn.includes(ne)),U=os(G),Q=I(()=>{if(!oe(W))return{};let ne=rn.find(Ze=>U[Ze]),me=W[ne];return me?{width:me,height:me,fontSize:me&&(l||f)?me/2:18}:{}},[U,W,l,f]),q=P("avatar",o),Z=et(q),[ee,te]=La(q,Z),J=v({[`${q}-lg`]:W==="large",[`${q}-sm`]:W==="small"}),he=oo(s),ke=n||F?.shape||"circle",ve=v(q,J,w,`${q}-${ke}`,{[`${q}-image`]:he||s&&R,[`${q}-icon`]:!!l},te,Z,c,d,ee),Se=Ae(W)?{width:W,height:W,fontSize:l?W/2:18}:{},ce;if(typeof s=="string"&&R)ce=i("img",{src:s,draggable:p,srcSet:a,onError:_,alt:g,crossOrigin:u});else if(he)ce=s;else if(l)ce=l;else if(N||x!==1){let ne=`scale(${x})`,me={msTransform:ne,WebkitTransform:ne,transform:ne};ce=i(go,{onResize:z},i("span",{className:`${q}-string`,ref:S,style:me},f))}else ce=i("span",{className:`${q}-string`,style:{opacity:0},ref:S},f);return i("span",{...y,style:{...Se,...Q,...O,...m},className:ve,ref:k},ce)}),Da=rm;var sm=e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},am=e=>{let{componentCls:t,sizePaddingEdgeHorizontal:o,colorSplit:n,lineWidth:r,textPaddingInline:s,orientationMargin:a,verticalMarginInline:l}=e,c=`${t}-rail`;return{[t]:{...Fe(e),borderBlockStart:`${H(r)} solid ${n}`,[c]:{borderBlockStart:`${H(r)} solid ${n}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${H(r)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${H(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${H(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,[`${c}-start, ${c}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${c}-start`]:{width:`calc(${a} * 100%)`},[`${c}-end`]:{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${c}-start`]:{width:`calc(100% - ${a} * 100%)`},[`${c}-end`]:{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${H(r)} 0 0`,[c]:{borderBlockStart:`${H(r)} dashed ${n}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${c}-start, ${c}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${H(r)} 0 0`,[c]:{borderBlockStart:`${H(r)} dotted ${n}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${c}-start`]:{width:0},[`${c}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${c}-start`]:{width:"100%"},[`${c}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:o}}}}},im=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),Aa=ie("Divider",e=>{let t=ge(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[am(t),sm(t)]},im,{unitless:{orientationMargin:!0}});var lm=["left","right","center","start","end"],cm=j((e,t)=>{let{getPrefixCls:o,direction:n,className:r,style:s,classNames:a,styles:l}=ae("divider"),{prefixCls:c,type:d,orientation:m,vertical:g,titlePlacement:p,orientationMargin:f,className:u,rootClassName:h,children:C,dashed:y,variant:x="solid",plain:b,style:N,size:$,classNames:R,styles:E,...T}=e,S=o("divider",c),k=`${S}-rail`,[P,w]=Aa(S),O=We($),F=!!C,z=lm.includes(m||""),_=I(()=>{let Se=p??(z?m:"center");return Se==="left"?n==="rtl"?"end":"start":Se==="right"?n==="rtl"?"start":"end":Se},[n,m,p,z]),W=_==="start"&&f!=null,G=_==="end"&&f!=null,[U,Q]=yo(m,g,d),q={...e,orientation:U,titlePlacement:_,size:O},Z=be(s),[ee,te]=fe([a,R],[l,Z,E],{props:q}),J=v(S,r,P,w,`${S}-${U}`,{[`${S}-with-text`]:F,[`${S}-with-text-${_}`]:F,[`${S}-dashed`]:!!y,[`${S}-${x}`]:x!=="solid",[`${S}-plain`]:!!b,[`${S}-rtl`]:n==="rtl",[`${S}-no-default-orientation-margin-start`]:W,[`${S}-no-default-orientation-margin-end`]:G,[`${S}-md`]:O==="medium"||O==="middle",[`${S}-sm`]:O==="small",[k]:!C,[ee.rail]:ee.rail&&!C},u,h,ee.root),he=I(()=>Ae(f)?f:/^\d+$/.test(f)?Number(f):f,[f]),ke={marginInlineStart:W?he:void 0,marginInlineEnd:G?he:void 0},ve=D(null);return Ee(t,()=>({nativeElement:ve.current})),i("div",{ref:ve,className:J,style:{...te.root,...C?{}:te.rail,...N},...T,role:"separator"},C&&!Q&&i(Ne,null,i("div",{className:v(k,`${k}-start`,ee.rail),style:te.rail}),i("span",{className:v(`${S}-inner-text`,ee.content),style:{...ke,...te.content}},C),i("div",{className:v(k,`${k}-end`,ee.rail),style:te.rail})))}),Fa=cm;var Xe=(e,t)=>e?.startsWith("var(")||t?.startsWith("var(")?e:new _t(e).onBackground(t).toHexString();var mm=()=>{let[,e]=Je(),[t]=ue("Empty"),{colorBgContainer:o,colorFill:n,colorFillSecondary:r,colorFillTertiary:s,colorTextQuaternary:a}=e,{panelBgColor:l,borderColor:c,detailColor:d,shadowColor:m,iconColor:g}=I(()=>({panelBgColor:Xe(s,o),borderColor:Xe(a,o),detailColor:Xe(n,o),shadowColor:Xe(r,o),iconColor:o}),[o,n,r,s,a]);return i("svg",{width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i("title",null,t?.description||"Empty"),i("g",{fill:"none",fillRule:"evenodd"},i("g",{transform:"translate(24 31.7)"},i("ellipse",{fillOpacity:".8",fill:m,cx:"67.8",cy:"106.9",rx:"67.8",ry:"12.7"}),i("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"}),i("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"}),i("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"})),i("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"}),i("g",{fill:g,transform:"translate(149.7 15.4)"},i("circle",{cx:"20.7",cy:"3.2",r:"2.8"}),i("path",{d:"M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z"}))))},Wa=mm;var dm=()=>{let[,e]=Je(),[t]=ue("Empty"),{colorFill:o,colorFillTertiary:n,colorFillQuaternary:r,colorBgContainer:s}=e,{borderColor:a,shadowColor:l,contentColor:c}=I(()=>({borderColor:Xe(o,s),shadowColor:Xe(n,s),contentColor:Xe(r,s)}),[o,n,r,s]);return i("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i("title",null,t?.description||"Empty"),i("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),i("g",{fillRule:"nonzero",stroke:a},i("path",{d:"M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z"}),i("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}))))},_a=dm;var pm=e=>{let{componentCls:t,margin:o,marginXS:n,marginXL:r,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:o},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},Va=ie("Empty",e=>{let{componentCls:t,controlHeightLG:o,calc:n}=e,r=ge(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(o).mul(2.5).equal(),emptyImgHeightMD:o,emptyImgHeightSM:n(o).mul(.875).equal()});return pm(r)});var ja=i(Wa,null),Ga=i(_a,null),Kn=j((e,t)=>{let{className:o,rootClassName:n,prefixCls:r,image:s,description:a,children:l,imageStyle:c,style:d,classNames:m,styles:g,...p}=e,{getPrefixCls:f,direction:u,className:h,style:C,classNames:y,styles:x,image:b}=ae("empty"),N=f("empty",r),[$,R]=Va(N),E=be(C),T=be(d),[S,k]=fe([y,m],[x,E,g,T],{props:e}),[P]=ue("Empty"),w=typeof a<"u"?a:P?.description,O=typeof w=="string"?w:"empty",F=s??b??ja,z=null;typeof F=="string"?z=i("img",{draggable:!1,alt:O,src:F}):z=F;let _=D(null);return Ee(t,()=>({nativeElement:_.current})),i("div",{ref:_,className:v($,R,N,h,{[`${N}-normal`]:F===Ga,[`${N}-rtl`]:u==="rtl"},o,n,S.root),style:k.root,...p},i("div",{className:v(`${N}-image`,S.image),style:{...c,...k.image}},z),w&&i("div",{className:v(`${N}-description`,S.description),style:k.description},w),l&&i("div",{className:v(`${N}-footer`,S.footer),style:k.footer},l))});Kn.PRESENTED_IMAGE_DEFAULT=ja;Kn.PRESENTED_IMAGE_SIMPLE=Ga;var Ua=Kn;var Yn=["wrap","nowrap","wrap-reverse"],Qn=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Jn=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],fm=(e,t)=>{let o=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${o}`]:o&&Yn.includes(o)}},um=(e,t)=>{let o={};return Jn.forEach(n=>{o[`${e}-align-${n}`]=t.align===n}),o[`${e}-align-stretch`]=!t.align&&!!t.vertical,o},gm=(e,t)=>{let o={};return Qn.forEach(n=>{o[`${e}-justify-${n}`]=t.justify===n}),o},hm=(e,t)=>v({...fm(e,t),...um(e,t),...gm(e,t)}),qa=hm;var xm=e=>{let{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ym=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},Cm=e=>{let{componentCls:t}=e,o={};return Yn.forEach(n=>{o[`${t}-wrap-${n}`]={flexWrap:n}}),o},bm=e=>{let{componentCls:t}=e,o={};return Jn.forEach(n=>{o[`${t}-align-${n}`]={alignItems:n}}),o},vm=e=>{let{componentCls:t}=e,o={};return Qn.forEach(n=>{o[`${t}-justify-${n}`]={justifyContent:n}}),o},Sm=()=>({}),Xa=ie("Flex",e=>{let{paddingXS:t,padding:o,paddingLG:n}=e,r=ge(e,{flexGapSM:t,flexGap:o,flexGapLG:n});return[xm(r),ym(r),Cm(r),bm(r),vm(r)]},Sm,{resetStyle:!1});var Rm=M.forwardRef((e,t)=>{let{prefixCls:o,rootClassName:n,className:r,style:s,flex:a,gap:l,vertical:c,orientation:d,component:m="div",children:g,...p}=e,{flex:f,direction:u,getPrefixCls:h}=M.useContext(se),C=h("flex",o),[y,x]=Xa(C),[,b]=yo(d,c??f?.vertical),N=v(r,n,f?.className,C,y,x,qa(C,{...e,vertical:b}),{[`${C}-rtl`]:u==="rtl",[`${C}-gap-${l}`]:sn(l),[`${C}-vertical`]:b}),$={...f?.style,...s};return xe(a)&&($.flex=a),xe(l)&&!sn(l)&&($.gap=l),M.createElement(m,{ref:t,className:N,style:$,...De(p,["justify","wrap","align"])},g)}),Za=Rm;var zt=e=>ye(e)?Ce(e)?e():e:null;var Ka="50%",Em=e=>{let{componentCls:t,popoverColor:o,titleMinWidth:n,fontWeightStrong:r,innerPadding:s,dropShadowPopover:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:d,titleMarginBottom:m,colorBgElevated:g,popoverBg:p,titleBorderBottom:f,innerContentPadding:u,titlePadding:h,antCls:C}=e,[y,x]=Vt(C,"tooltip");return[{[t]:{...Fe(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",filter:a,[y("valid-offset-x")]:x("arrow-offset-x","var(--arrow-x)"),transformOrigin:[x("valid-offset-x",Ka),`var(--arrow-y, ${Ka})`].join(" "),[y("arrow-background-color")]:g,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,padding:s},[`${t}-title`]:{minWidth:n,marginBottom:m,color:l,fontWeight:r,borderBottom:f,padding:h},[`${t}-content`]:{color:o,padding:u}}},as(e,x("arrow-background-color"),{arrowShadow:!1}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},Nm=e=>{let{componentCls:t,antCls:o}=e,[n]=Vt(o,"tooltip");return{[t]:uo.map(r=>{let s=e[`${r}6`];return{[`&${t}-${r}`]:{[n("arrow-background-color")]:s,[`${t}-inner`]:{backgroundColor:s},[`${t}-arrow`]:{background:"transparent"}}}})}},$m=e=>{let{lineWidth:t,controlHeight:o,fontHeight:n,padding:r,wireframe:s,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:d,colorSplit:m,paddingSM:g}=e,p=o-n,f=p/2,u=p/2-t,h=r;return{titleMinWidth:177,zIndexPopup:a+30,...rs(e),...ss({contentRadius:l,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:c,titlePadding:s?`${f}px ${h}px ${u}px`:0,titleBorderBottom:s?`${t}px ${d} ${m}`:"none",innerContentPadding:s?`${g}px ${h}px`:0}},Ho=ie("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,n=ge(e,{popoverBg:t,popoverColor:o});return[Em(n),Nm(n),bo(n,"zoom-big")]},$m,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var er=e=>{let{title:t,content:o,prefixCls:n,classNames:r,styles:s}=e;return!ye(t)&&!ye(o)?null:i(Ne,null,ye(t)&&i("div",{className:v(`${n}-title`,r?.title),style:s?.title},t),ye(o)&&i("div",{className:v(`${n}-content`,r?.content),style:s?.content},o))},wm=e=>{let{hashId:t,prefixCls:o,className:n,style:r,placement:s="top",title:a,content:l,children:c,classNames:d,styles:m}=e,g=zt(a),p=zt(l),f={...e,placement:s},[u,h]=fe([d],[m],{props:f}),C=v(t,o,`${o}-pure`,`${o}-placement-${s}`,n);return i("div",{className:C,style:r},i("div",{className:`${o}-arrow`}),i(ns,{...e,className:t,prefixCls:o,classNames:u,styles:h},c||i(er,{prefixCls:o,title:g,content:p,classNames:u,styles:h})))},Pm=e=>{let{prefixCls:t,className:o,...n}=e,{getPrefixCls:r}=V(se),s=r("popover",t),[a,l]=Ho(s);return i(wm,{...n,prefixCls:s,hashId:a,className:v(o,l)})},Ya=Pm;var Tm=j((e,t)=>{let{prefixCls:o,title:n,content:r,overlayClassName:s,placement:a="top",trigger:l,children:c,mouseEnterDelay:d,mouseLeaveDelay:m,onOpenChange:g,overlayStyle:p={},styles:f,classNames:u,motion:h,arrow:C,...y}=e,{getPrefixCls:x,className:b,style:N,classNames:$,styles:R,arrow:E,trigger:T,mouseEnterDelay:S,mouseLeaveDelay:k}=ae("popover"),P=d??S??.1,w=m??k??.1,O=x("popover",o),[F,z]=Ho(O),_=x(),W=is(C,E),G=l||T||"hover",U={...e,placement:a,trigger:G,mouseEnterDelay:P,mouseLeaveDelay:w,overlayStyle:p,styles:f,classNames:u},Q=be(N),q=be(p),[Z,ee]=fe([$,u],[R,Q,f,q],{props:U}),te=v(s,F,z,b,Z.root),[J,he]=Wt(e.defaultOpen??!1,e.open),ke=ce=>{he(ce),g?.(ce)},ve=zt(n),Se=zt(r);return i(ot,{unique:!1,arrow:W,placement:a,trigger:G,mouseEnterDelay:P,mouseLeaveDelay:w,...y,prefixCls:O,classNames:{root:te,container:Z.container,arrow:Z.arrow},styles:{root:ee.root,container:ee.container,arrow:ee.arrow},ref:t,open:J,onOpenChange:ke,overlay:ye(ve)||ye(Se)?i(er,{prefixCls:O,title:ve,content:Se,classNames:Z,styles:ee}):null,motion:{motionName:tt(_,"zoom-big",typeof h?.motionName=="string"?h?.motionName:void 0)},"data-popover-inject":!0},c)}),Qa=Tm;Qa._InternalPanelDoNotUseOrYouWillBeFired=Ya;var Ja=Qa;var ti=ht(ei());function or(){return or=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},or.apply(this,arguments)}var Mm=(e,t)=>i(He,or({},e,{ref:t,icon:ti.default})),Im=j(Mm),oi=Im;var ri=ht(ni());function rr(){return rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},rr.apply(this,arguments)}var Om=(e,t)=>i(He,rr({},e,{ref:t,icon:ri.default})),Bm=j(Om),si=Bm;var Hm=(e,t,o,n)=>{let{titleMarginBottom:r,fontWeightStrong:s}=n;return{marginBottom:r,color:o,fontWeight:s,fontSize:e,lineHeight:t}},ai=e=>{let t=[1,2,3,4,5],o={};return t.forEach(n=>{o[`
|
|
13
|
+
h${n}&,
|
|
14
|
+
div&-h${n},
|
|
15
|
+
div&-h${n} > textarea,
|
|
16
|
+
h${n}
|
|
17
|
+
`]=Hm(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),o},ii=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...xo(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none",[`${t}-actions`]:{pointerEvents:"auto"}}}}}},li=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:`${H(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:`${H(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Lr[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:`${H(e.lineWidth)} ${e.lineType} rgba(100, 100, 100, 0.2)`,borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85},table:{width:"100%",textAlign:"start",borderCollapse:"separate",borderSpacing:0,marginBlock:"1em","th, td":{padding:H(e.padding),overflowWrap:"break-word",borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"thead > tr:first-child > th:first-child":{borderStartStartRadius:e.borderRadiusLG},"thead > tr:first-child > th:last-child":{borderStartEndRadius:e.borderRadiusLG},"thead > tr > th":{textAlign:"start",position:"relative",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,backgroundColor:e.colorFillAlter,transition:`background-color ${e.motionDurationMid} ease`,"&:not(:last-child)::before":{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:e.colorSplit,transform:"translateY(-50%)",content:'""'}},"tbody > tr":{"> th, > td":{transition:`background-color ${e.motionDurationMid} ease`},"&:hover > th, &:hover > td":{backgroundColor:e.colorFillAlter}}}}),ci=e=>{let{componentCls:t,paddingSM:o}=e,n=o;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},[`&${t}-edit-content textarea`]:{margin:"0!important",fontSize:"inherit",lineHeight:"inherit",fontFamily:"inherit",fontWeight:"inherit",MozTransition:"none",height:"1em"}}}},mi=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),di=()=>({"a&-ellipsis, span&-ellipsis":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{...qr,"a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}});var Lm=e=>{let{componentCls:t,titleMarginTop:o}=e;return{[t]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"div&, p":{marginBottom:"1em"},...ai(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:o},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:o}},...li(e),...ii(e),[`${t}-actions`]:{display:"inline"},[`
|
|
18
|
+
${t}-expand,
|
|
19
|
+
${t}-collapse,
|
|
20
|
+
${t}-edit,
|
|
21
|
+
${t}-copy
|
|
22
|
+
`]:{...xo(e),marginInlineStart:e.marginXXS},[`${t}-actions-start`]:{[`
|
|
23
|
+
${t}-expand,
|
|
24
|
+
${t}-collapse,
|
|
25
|
+
${t}-edit,
|
|
26
|
+
${t}-copy:not(${t}-copy-icon-only)
|
|
27
|
+
`]:{marginInlineStart:0,marginInlineEnd:e.marginXXS}},...ci(e),...mi(e),...di(),"&-rtl":{direction:"rtl"}}}},Dm=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Lo=ie("Typography",Lm,Dm);var Am=e=>{let{prefixCls:t,"aria-label":o,className:n,style:r,classNames:s,styles:a,direction:l,maxLength:c,autoSize:d=!0,value:m,onSave:g,onCancel:p,onEnd:f,component:u,enterIcon:h=i(si,null)}=e,C=D(null),y=D(!1),x=D(null),[b,N]=A(m);K(()=>{N(m)},[m]),K(()=>{if(C.current?.resizableTextArea){let{textArea:z}=C.current.resizableTextArea;z.focus();let{length:_}=z.value;z.setSelectionRange(_,_)}},[]);let $=({target:z})=>{N(z.value.replace(/[\n\r]/g,""))},R=()=>{y.current=!0},E=()=>{y.current=!1},T=({keyCode:z})=>{y.current||(x.current=z)},S=()=>{g(b.trim())},k=({keyCode:z,ctrlKey:_,altKey:W,metaKey:G,shiftKey:U})=>{x.current!==z||y.current||_||W||G||U||(z===en.ENTER?(S(),f?.()):z===en.ESC&&p())},P=()=>{S()},[w,O]=Lo(t),F=v(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${u}`]:!!u},n,s.root,w,O);return i("div",{className:F,style:{...a.root,...r}},i(cs,{ref:C,maxLength:c,value:b,onChange:$,onKeyDown:T,onKeyUp:k,onCompositionStart:R,onCompositionEnd:E,onBlur:P,"aria-label":o,rows:1,autoSize:d,className:s.textarea,style:a.textarea}),h!==null?jr(h,{className:`${t}-edit-content-confirm`}):null)},pi=Am;var Fm=(e,t)=>{let o=!1,n=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData("text/plain",e),t&&r.clipboardData?.setData("text/html",e),o=!0};try{return document.addEventListener("copy",n,{capture:!0}),document.execCommand("copy"),o}catch{return!1}finally{document.removeEventListener("copy",n,{capture:!0})}},Wm=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function _m(e,t){if(typeof e!="string")return!1;let o=t?.format==="text/html";return!!(await Wm(e,o)||Fm(e,o))}var fi=_m;var Vm=(e,t={})=>!xe(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],Do=Vm;var jm=({copyConfig:e,children:t})=>{let[o,n]=so(!1),[r,s]=A(!1),a={};e.format&&(a.format=e.format);let l=ze(async c=>{c?.preventDefault(),c?.stopPropagation(),s(!0);try{let d=Ce(e.text)?await e.text():e.text;await fi(d||Do(t,{skipEmpty:!0}).join("")||"",a),s(!1),n(!0,!0),n(!1,{ms:3e3}),e.onCopy?.(c)}catch(d){throw s(!1),d}});return{copied:o,copyLoading:r,onClick:l}},ui=jm;var Gm=(e,t)=>{let o=!!e;return I(()=>{let n={...t,...o&&oe(e)?e:null};return[o,n]},[o,e,t])},Ao=Gm;var Um=e=>{let t=D(void 0);return K(()=>{t.current=e}),t.current},gi=Um;var qm=(e,t,o)=>I(()=>e===!0?{title:t??o}:oo(e)?{title:e}:oe(e)?{title:t??o,...e}:{title:e},[e,t,o]),hi=qm;var xi=(e,t,o,n,r)=>{let{getPrefixCls:s,direction:a,className:l,style:c,classNames:d,styles:m}=ae("typography"),g=n??a,p=s("typography",e),f={...r,prefixCls:p,direction:g},u=I(()=>({root:l}),[l]),h=be(c),[C,y]=fe([u,d,t],[m,h,o],{props:f});return[C,y,p,g]};var yi=j((e,t)=>{let{component:o="article",className:n,rootClassName:r,children:s,direction:a,style:l,classNames:c,styles:d,prefixCls:m,...g}=e,[p,f]=Lo(m),u=v(m,{[`${m}-rtl`]:a==="rtl"},n,r,p,f,c?.root),h={...d?.root,...l};return i(o,{...g,className:u,style:h,ref:t},s)});var bi=ht(Ci());function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ar.apply(this,arguments)}var Zm=(e,t)=>i(He,ar({},e,{ref:t,icon:bi.default})),Km=j(Zm),vi=Km;var Ri=ht(Si());function lr(){return lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},lr.apply(this,arguments)}var Qm=(e,t)=>i(He,lr({},e,{ref:t,icon:Ri.default})),Jm=j(Qm),Ei=Jm;var cr=e=>e===!1?[!1,!1]:Do(e);function Fo(e,t,o){return e===!0||e===void 0?t:e||o&&t}function Ni(e){let t=document.createElement("em");e.appendChild(t);let o=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),o.left>n.left||n.right>o.right||o.top>n.top||n.bottom>o.bottom}var Zt=e=>["string","number"].includes(typeof e);var ed=e=>{let{prefixCls:t,copied:o,locale:n,iconOnly:r,tooltips:s,icon:a,tabIndex:l,onCopy:c,loading:d,className:m,style:g}=e,p=cr(s),f=cr(a),{copied:u,copy:h}=n??{},C=o?u:h,y=Fo(p[o?1:0],C),x=typeof y=="string"?y:C;return i(ot,{title:y},i("button",{type:"button",className:v(`${t}-copy`,m,{[`${t}-copy-success`]:o,[`${t}-copy-icon-only`]:r}),style:g,onClick:c,"aria-label":x,tabIndex:l},o?Fo(f[1],i(vi,null),!0):Fo(f[0],d?i(Nt,null):i(Ei,null),!0)))},$i=ed;var Wo=j(({style:e,children:t},o)=>{let n=D(null);return Ee(o,()=>({isExceed:()=>{let r=n.current;return r.scrollHeight>r.clientHeight},getHeight:()=>n.current.clientHeight})),i("span",{"aria-hidden":!0,ref:n,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),td=e=>e.reduce((t,o)=>t+(Zt(o)?String(o).length:1),0);function wi(e,t){let o=0,n=[];for(let r=0;r<e.length;r+=1){if(o===t)return n;let s=e[r],l=Zt(s)?String(s).length:1,c=o+l;if(c>t){let d=t-o;return n.push(String(s).slice(0,d)),n}n.push(s),o=c}return e}var mr=0,dr=1,pr=2,fr=3,Pi=4,_o={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ur(e){let{enableMeasure:t,width:o,text:n,children:r,rows:s,expanded:a,measureDeps:l,miscDeps:c,onEllipsis:d}=e,m=I(()=>lo(n),[n]),g=I(()=>td(m),[n]),p=I(()=>r(m,!1),[n].concat($e(l))),[f,u]=A(null),h=D(null),C=D(null),y=D(null),x=D(null),b=D(null),[N,$]=A(!1),[R,E]=A(mr),[T,S]=A(0),[k,P]=A(null);Ye(()=>{E(t&&o&&g?dr:mr)},[o,n,s,t,m].concat($e(l))),Ye(()=>{if(R===dr){E(pr);let z=C.current&&getComputedStyle(C.current).whiteSpace;P(z)}else if(R===pr){let z=!!y.current?.isExceed();E(z?fr:Pi),u(z?[0,g]:null),$(z);let _=y.current?.getHeight()||0,W=s===1?0:x.current?.getHeight()||0,G=b.current?.getHeight()||0,U=Math.max(_,W+G);S(U+1),d(z)}},[R]);let w=f?Math.ceil((f[0]+f[1])/2):0;Ye(()=>{let[z,_]=f||[0,0];if(z!==_){let G=(h.current?.getHeight()||0)>T,U=w;_-z===1&&(U=G?z:_),u(G?[z,U]:[U,_])}},[f,w]);let O=I(()=>{if(!t)return r(m,!1);if(R!==fr||!f||f[0]!==f[1]){let z=r(m,!1);return[Pi,mr].includes(R)?z:i("span",{style:{..._o,WebkitLineClamp:s}},z)}return r(a?m:wi(m,f[0]),N)},[a,R,f,m].concat($e(c))),F={width:o,margin:0,padding:0,whiteSpace:k==="nowrap"?"normal":"inherit"};return i(Ne,null,O,R===pr&&i(Ne,null,i(Wo,{style:{...F,..._o,WebkitLineClamp:s},ref:y},p),i(Wo,{style:{...F,..._o,WebkitLineClamp:s-1},ref:x},p),i(Wo,{style:{...F,..._o,WebkitLineClamp:1},ref:b},r([],!0))),R===fr&&f&&f[0]!==f[1]&&i(Wo,{style:{...F,top:400},ref:h},r(wi(m,w),!0)),R===dr&&i("span",{style:{whiteSpace:"inherit"},ref:C}))}var od=({enableEllipsis:e,isEllipsis:t,disabled:o,children:n,tooltipProps:r})=>!r?.title||!e?n:i(ot,{...r,disabled:!t||o},n),Ti=od;function nd({mark:e,code:t,underline:o,delete:n,strong:r,keyboard:s,italic:a},l){let c=l;function d(m,g){g&&(c=i(m,{},c))}return d("strong",r),d("u",o),d("del",n),d("code",t),d("mark",e),d("kbd",s),d("i",a),c}var rd="...",ki=["delete","mark","code","underline","strong","keyboard","italic"],sd=j((e,t)=>{let{prefixCls:o,className:n,style:r,classNames:s,styles:a,direction:l,type:c,disabled:d,children:m,ellipsis:g,editable:p,copyable:f,actions:u,component:h,title:C,onMouseEnter:y,onMouseLeave:x,...b}=e,[N]=ue("Text"),$=D(null),R=D(null),[E,T,S,k]=xi(o,s,a,l,e),P=De(b,ki),[w,O]=Ao(p),[F,z]=Wt(!1,O.editing),{triggerType:_=["icon"]}=O,W=X=>{X&&O.onStart?.(),z(X)},G=gi(F);Ye(()=>{!F&&G&&R.current?.focus()},[F]);let U=X=>{X?.preventDefault(),W(!0)},Q=X=>{O.onChange?.(X),W(!1)},q=()=>{O.onCancel?.(),W(!1)},[Z,ee]=Ao(f),{placement:te="end"}=u??{},{copied:J,copyLoading:he,onClick:ke}=ui({copyConfig:ee,children:m}),[ve,Se]=A(!1),[ce,ne]=A(!1),[me,Ze]=A(!1),[le,dt]=A(!1),[Ke,Bt]=A(!0),[de,pe]=Ao(g,{expandable:!1,symbol:X=>X?N?.collapse:N?.expand}),[Be,Go]=Wt(pe.defaultExpanded||!1,pe.expanded),Re=de&&(!Be||pe.expandable==="collapsible"),{rows:je=1}=pe,pt=I(()=>Re&&(pe.suffix!==void 0||pe.onEllipsis||pe.expandable||w||Z),[Re,pe,w,Z]);Ye(()=>{de&&!pt&&(Se(io("webkitLineClamp")),ne(io("textOverflow")))},[pt,de]);let[Ge,Uo]=A(Re),Kt=I(()=>pt?!1:je===1?ce:ve,[pt,je,ve,ce]);Ye(()=>{Uo(Kt&&Re)},[Kt,Re]);let at=hi(pe.tooltip,O.text,m),it=Ge&&!!at.title,Yt=Re&&(Ge?it&&le:me),qo=Re&&je===1&&Ge,Ht=Re&&je>1&&Ge,Xo=(X,Y)=>{Go(Y.expanded),pe.onExpand?.(X,Y)},[Qt,Zo]=A(0),[Jt,eo]=so(!1),Lt=D(!1),Dt=({offsetWidth:X})=>{Zo(X)},At=X=>{Ze(X),me!==X&&pe.onEllipsis?.(X)},lt=Ie(()=>{let X=$.current;if(de&&it&&X){let Y=Ni(X);dt(we=>we===Y?we:Y)}},[de,it]);K(()=>{Lt.current&<()},[lt,m,Ht,Ke,Qt]),K(()=>{let X=$.current;if(typeof IntersectionObserver>"u"||!X||!it||!Re)return;let Y=new IntersectionObserver(()=>{Bt(!!X.offsetParent)});return Y.observe(X),()=>{Y.disconnect()}},[it,Re]);let Ft=I(()=>{if(!(!de||Ge))return[O.text,m,C,at.title].find(Zt)},[de,Ge,C,at.title,Yt,O.text]);if(F)return i(pi,{value:O.text??(typeof m=="string"?m:""),onSave:Q,onCancel:q,onEnd:O.onEnd,prefixCls:S,className:n,style:r,direction:k,component:h,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon,classNames:E,styles:T});let Ko=()=>{let{expandable:X,symbol:Y}=pe;return X?i("button",{type:"button",key:"expand",className:v(`${S}-${Be?"collapse":"expand"}`,E.action),style:T.action,onClick:we=>Xo(we,{expanded:!Be}),"aria-label":Be?N.collapse:N?.expand},Ce(Y)?Y(Be):Y):null},Yo=()=>{if(!w)return;let{icon:X,tooltip:Y,tabIndex:we}=O,ut=lo(Y)[0]||N?.edit,Wi=typeof ut=="string"?ut:"";return _.includes("icon")?i(ot,{key:"edit",title:Y===!1?"":ut},i("button",{type:"button",ref:R,className:v(`${S}-edit`,E.action),style:T.action,onClick:U,"aria-label":Wi,tabIndex:we},X||i(oi,{role:"button"}))):null},ft=()=>Z?i($i,{key:"copy",...ee,prefixCls:S,copied:J,locale:N,onCopy:ke,loading:he,iconOnly:!ye(m),className:E.action,style:T.action}):null,to=X=>{let Y=X&&Ko(),we=Yo(),ut=ft();return!Y&&!we&&!ut?null:i("span",{key:"operations",className:v(`${S}-actions`,E.actions,{[`${S}-actions-start`]:te==="start"}),style:T.actions,onMouseEnter:()=>eo(!0,!0),onMouseLeave:()=>eo(!1,{ms:500})},Y,we,ut)},Me=X=>[X&&!Be&&i("span",{"aria-hidden":!0,key:"ellipsis"},rd),pe.suffix];return i(go,{onResize:Dt,disabled:!Re},X=>i(Ti,{tooltipProps:at,enableEllipsis:Re,isEllipsis:Yt,disabled:Jt},i(yi,{onMouseEnter:Y=>{Lt.current=!0,lt(),y?.(Y)},onMouseLeave:Y=>{Lt.current=!1,x?.(Y)},className:v({[`${S}-${c}`]:c,[`${S}-disabled`]:d,[`${S}-ellipsis`]:de,[`${S}-ellipsis-single-line`]:qo,[`${S}-ellipsis-multiple-line`]:Ht,[`${S}-link`]:h==="a"},n),classNames:E,styles:T,prefixCls:S,style:{...r,WebkitLineClamp:Ht?je:void 0},component:h,ref:xt(X,$,t),direction:k,onClick:_.includes("text")?U:void 0,"aria-label":Ft?.toString(),title:C,...P},i(ur,{enableMeasure:Re&&!Ge,text:m,rows:je,width:Qt,onEllipsis:At,expanded:Be,measureDeps:[te],miscDeps:[J,Be,he,w,Z,te,N].concat($e(ki.map(Y=>e[Y])))},(Y,we)=>nd(e,i(Ne,null,te==="start"?to(we):null,Y.length>0&&we&&!Be&&Ft?i("span",{key:"show-content","aria-hidden":!0},Y):Y,Me(we),te==="start"?null:to(we)))))))}),Mi=sd;var ad=j((e,t)=>{let{ellipsis:o,children:n,...r}=e,s=I(()=>oe(o)?De(o,["expandable","rows"]):o,[o]);return i(Mi,{ref:t,...r,ellipsis:s,component:"span"},n)}),Ii=ad;function gr(e){return!e.defaultPrevented&&e.button===0&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}function zi(e){return[{key:"gateway:home",label:"\u9996\u9875",href:"/",order:-1},...e.navigation].map(t=>({...t,active:t.href==="/"?e.pathname==="/":e.pathname===t.href||e.pathname.startsWith(`${t.href}/`)}))}var Oi=Pe(void 0);function hr({children:e,initialContext:t}){return B(Oi,{value:t,children:e})}function xr(){let e=yr();return I(()=>zi(e),[e])}function yr(){let e=V(Oi);if(!e)throw new Error("ZlooksShellProvider is required");return e}var Bi=vo({Button:{textActiveBg:"transparent",textHoverBg:"transparent"}});var Ot=Te(Da),id=Te(vt),ld=Te(Fa),Hi=Te(Ua),Ve=Te(Za),cd=Te(zo),md=Te(Ja),Vo=Te(ls),Le=Te(Ii);function Li({className:e,classNames:t={},style:o,size:n="middle",shape:r="round",variant:s="compact",onNavigate:a,onLogout:l}){let c=yr().user,[d,m]=A(!1),[g,p]=A(!1),{message:f,modal:u}=ms(),h=jo("zlooks-user-access-trigger",e,t.trigger),C=jo("zlooks-user-access-avatar",t.avatar),y=jo("zlooks-user-access-label",t.label),x=s==="avatar",b=dd(n,x),N=x?"circle":r,$=x?"circle":"square",R=x?{height:b,minWidth:b,padding:0,width:b,...o}:o;async function E(k,P){try{await l(k),P(),m(!1)}catch(w){ds(w)||f.error("\u9000\u51FA\u767B\u5F55\u5931\u8D25")}}function T(k){u.confirm({title:"\u786E\u8BA4\u9000\u51FA\u767B\u5F55\uFF1F",content:"\u9000\u51FA\u540E\uFF0C\u9700\u8981\u91CD\u65B0\u767B\u5F55\u624D\u80FD\u8BBF\u95EE\u4E2A\u4EBA\u8D26\u6237\u3002",okText:"\u9000\u51FA\u767B\u5F55",okButtonProps:{danger:!0},cancelText:"\u53D6\u6D88",onOk(P){E(k,P)}})}function S(k,P,w){!a||!gr(k)||(k.preventDefault(),w(),a(P))}return c.status==="unavailable"?B(Cr,{children:B(mt,{"aria-label":"\u8D26\u6237\u670D\u52A1\u6682\u4E0D\u53EF\u7528",className:h,disabled:!0,shape:N,size:n,style:R,type:"text",children:re(Vo,{align:"center",size:6,children:[B(Ot,{className:C,shape:$,size:b,style:{background:"var(--ant-color-fill-secondary)",border:x?"none":void 0,borderRadius:x?"50%":9,boxShadow:x?"none":void 0,color:"var(--ant-color-text-tertiary)",fontSize:12,fontWeight:750},children:"Z"}),s==="compact"?B(Le,{type:"secondary",children:"\u6682\u4E0D\u53EF\u7528"}):null]})})}):c.status==="authenticated"?B(Cr,{children:B(md,{arrow:!1,destroyOnHidden:!0,onOpenChange:m,open:d,placement:"bottomRight",styles:{container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:16,boxShadow:"0 18px 48px rgb(15 23 42 / 14%)",overflow:"hidden",padding:0},content:{maxWidth:"calc(100vw - 32px)",width:280}},trigger:"click",content:re(Ve,{"aria-label":"\u8D26\u6237\u4FE1\u606F",className:t.popup,role:"dialog",style:{background:"var(--ant-color-bg-elevated)"},vertical:!0,children:[re(Ve,{align:"center",gap:12,style:{background:["linear-gradient(color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","linear-gradient(90deg, color-mix(in srgb, var(--ant-color-fill-quaternary) 48%, transparent) 1px, transparent 1px)","var(--ant-color-bg-elevated)"].join(", "),backgroundSize:"28px 28px",padding:16},children:[B(Ot,{className:C,shape:"square",size:44,src:c.user.avatarUrl,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontSize:16,fontWeight:700},children:c.user.avatarText}),re(Ve,{style:{flex:1,minWidth:0},vertical:!0,children:[B(Le,{strong:!0,ellipsis:!0,style:{fontSize:15,lineHeight:1.4},children:c.user.label}),c.user.secondary?B(Le,{ellipsis:{tooltip:c.user.secondary},style:{display:"block"},type:"secondary",children:c.user.secondary}):null]}),B("span",{"aria-label":"\u5DF2\u767B\u5F55",role:"status",style:{background:"var(--ant-color-success)",borderRadius:999,boxShadow:"0 0 0 3px var(--ant-color-success-bg)",flex:"0 0 auto",height:7,width:7}})]}),B(ld,{style:{margin:0}}),re(Ve,{gap:2,style:{padding:8},vertical:!0,children:[B(mt,{block:!0,href:c.accountHref,size:"large",style:{fontWeight:600,height:44,paddingInline:12},type:"text",onClick:k=>S(k,c.accountHref,()=>m(!1)),children:re(Ve,{justify:"space-between",style:{width:"100%"},children:[B("span",{children:"\u4E2A\u4EBA\u8D44\u6599"}),B(Le,{"aria-hidden":"true",type:"secondary",children:"\u2192"})]})}),B(mt,{block:!0,danger:!0,size:"large",style:{height:44,justifyContent:"flex-start",paddingInline:12},type:"text",onClick:()=>T(c.logoutHref),children:"\u9000\u51FA\u767B\u5F55"})]})]}),children:B(mt,{"aria-expanded":d,"aria-haspopup":"dialog","aria-label":`\u6253\u5F00${c.user.label}\u7684\u8D26\u6237\u4FE1\u606F`,className:h,shape:N,size:n,style:R,type:"text",children:re(Vo,{align:"center",size:6,children:[B(Ot,{className:C,shape:$,size:b,src:c.user.avatarUrl,style:{background:x?"var(--ant-color-fill-secondary)":"var(--ant-color-text)",border:x?"none":void 0,borderRadius:x?"50%":9,boxShadow:x?"none":void 0,color:x?"var(--ant-color-text)":"var(--ant-color-bg-container)",fontSize:12,fontWeight:700},children:c.user.avatarText}),s==="compact"?B(Le,{className:y,ellipsis:!0,style:{fontSize:13,fontWeight:650,maxWidth:120},children:c.user.label}):null]})})})}):re(Cr,{children:[B(mt,{"aria-expanded":g,"aria-haspopup":"dialog","aria-label":"\u767B\u5F55",className:h,shape:N,size:n,style:R,type:"text",onClick:()=>p(!0),children:re(Vo,{align:"center",size:6,children:[B(Ot,{className:C,shape:$,size:b,style:{background:"var(--ant-color-primary-bg)",border:x?"none":"1px solid var(--ant-color-primary-border)",borderRadius:x?"50%":9,boxShadow:x?"none":void 0,color:"var(--ant-color-primary)",fontSize:12,fontWeight:750},children:"Z"}),s==="compact"?B(Le,{className:y,style:{fontSize:13,fontWeight:650},children:"\u767B\u5F55"}):null]})}),B(cd,{centered:!0,destroyOnHidden:!0,footer:null,open:g,rootClassName:jo("zlooks-user-access-modal",t.popup),styles:{body:{paddingTop:4},container:{border:"1px solid var(--ant-color-border-secondary)",borderRadius:22,boxShadow:"0 28px 80px rgb(15 23 42 / 18%)",overflow:"hidden",padding:24},header:{marginBottom:22}},title:re(Vo,{align:"center",size:"middle",children:[B(Ot,{shape:"square",size:44,style:{background:"var(--ant-color-text)",borderRadius:12,color:"var(--ant-color-bg-container)",fontWeight:750},children:"Z"}),re(Ve,{vertical:!0,children:[B(Le,{strong:!0,style:{fontSize:17},children:"\u6B22\u8FCE\u56DE\u6765"}),B(Le,{type:"secondary",children:"\u9009\u62E9\u4E00\u79CD\u65B9\u5F0F\u7EE7\u7EED"})]})]}),width:480,onCancel:()=>p(!1),children:re(Ve,{gap:12,vertical:!0,children:[c.loginMethods.length===0?B(Hi,{description:"\u6682\u65F6\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5",image:Hi.PRESENTED_IMAGE_SIMPLE,style:{paddingBlock:24}}):c.loginMethods.map((k,P)=>B(mt,{block:!0,href:k.href,onClick:w=>S(w,k.href,()=>p(!1)),style:{height:"auto",minHeight:72,padding:"10px 14px",textAlign:"left"},children:re(Ve,{align:"center",gap:14,justify:"space-between",style:{width:"100%"},children:[re(Ve,{align:"center",gap:12,style:{minWidth:0},children:[B(Ot,{shape:"square",size:40,style:{background:"var(--ant-color-primary-bg)",borderRadius:11,color:"var(--ant-color-primary)",fontFamily:"ui-monospace, SFMono-Regular, Menlo, monospace",fontSize:11,fontWeight:700},children:String(P+1).padStart(2,"0")}),re(Ve,{style:{minWidth:0},vertical:!0,children:[B(Le,{strong:!0,children:k.label}),B(Le,{ellipsis:!0,type:"secondary",children:"\u7EE7\u7EED\u8BBF\u95EE\u4F60\u7684\u4E2A\u4EBA\u7A7A\u95F4"})]})]}),B(Le,{"aria-hidden":"true",style:{color:"var(--ant-color-primary)"},children:"\u2192"})]})},k.id)),B(Le,{style:{fontSize:12,marginTop:6,textAlign:"center"},type:"secondary",children:"\u767B\u5F55\u4FE1\u606F\u4EC5\u7528\u4E8E\u8BC6\u522B\u4F60\u7684\u8D26\u6237"})]})})]})}function Cr({children:e}){let{mode:t}=Xt(),{resolvedMode:o,resolvedTheme:n}=Zn(t),r=I(()=>({...n,cssVar:{key:`zlooks-user-access-${o}`},components:{...n.components,Button:{...n.components?.Button,...Bi.Button}}}),[o,n]);return B(id,{theme:r,children:e})}function jo(...e){return e.filter(Boolean).join(" ")}function dd(e,t){return t&&e==="small"?28:t&&e==="large"?48:t?40:e==="small"?20:e==="large"?28:24}var Di=Pe(void 0);function Ai({children:e,initialConfig:t}){return B(Di,{value:t,children:e})}function Fi(){return pd().value}function pd(){let e=V(Di);if(!e)throw new Error("ZlooksSiteConfigProvider is required");return e}function fd({children:e,shell:t,site:o}){return B(Xn,{children:B(hr,{initialContext:t,children:B(Ai,{initialConfig:o,children:B(ud,{children:e})})})})}function ud({children:e}){let t=xr(),o=Fi(),n=ps(),r=Rr();async function s(a){await n(a,{method:"POST",credentials:"same-origin"},{errorMessage:"\u9000\u51FA\u767B\u5F55\u5931\u8D25"}),r.refresh()}return re("div",{className:"zlooks-password-frame-page","data-shared-page-frame":!0,children:[B("div",{className:"zlooks-password-frame-header-wrap",children:re("header",{className:"zlooks-password-frame-header",children:[re(ro,{className:"zlooks-password-frame-brand",href:o.identity.homeHref,children:[o.identity.logoUrl?B("img",{alt:"",className:"zlooks-password-frame-brand-logo",src:o.identity.logoUrl}):B("span",{className:"zlooks-password-frame-brand-mark","aria-hidden":"true",children:"Z"}),B("span",{children:o.identity.name})]}),B("nav",{"aria-label":"\u4E3B\u5BFC\u822A",className:"zlooks-password-frame-navigation",children:t.map(a=>B(ro,{"aria-current":a.active?"page":void 0,href:a.href,children:a.label},a.key))}),B("div",{className:"zlooks-password-frame-actions",children:B(Li,{size:"middle",shape:"round",variant:"avatar",onLogout:s,onNavigate:r.push})})]})}),B("main",{className:"zlooks-password-frame-content",children:e}),re("footer",{className:"zlooks-password-frame-footer",children:[re("div",{children:[B("strong",{children:o.identity.name}),B("span",{children:"\u4FDD\u6301\u597D\u5947\uFF0C\u8BA4\u771F\u751F\u6D3B\u3002"})]}),re("div",{children:[o.legal.registrations.map(a=>a.verificationUrl?B(ro,{href:a.verificationUrl,children:a.number},a.id):B("span",{children:a.number},a.id)),o.legal.copyright?B("small",{children:o.legal.copyright}):null]})]})]})}export{fd as default};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";import{$ as Mo,$a as je,$b as gr,A as Ze,Ab as lr,B as No,Bb as de,C as $o,Cb as Et,D as mt,Db as vt,E as Oo,Eb as rt,F as Ao,Fb as Ie,G as Pe,Gb as cr,Hb as mr,I as _o,J as Po,Ja as ut,Jb as ur,Ka as jo,L as To,La as tt,Lb as dr,M as zo,Ma as Ho,Na as Ve,Pb as Ct,Q as Me,Qa as Bo,Qb as nt,R as yt,Ra as dt,Rb as wt,S as Fo,Sb as pr,Ta as Wo,U as Lt,Ua as qo,V as ko,Wa as De,X as Uo,Xa as Go,Ya as Le,Z as we,Zb as It,_ as Te,_a as ot,_b as fr,a as ht,aa as Rt,ab as Ko,ac as qe,b as xt,ba as he,bb as Xo,bc as hr,ca as Ue,cb as Yo,cc as Nt,d as $e,da as Vo,db as Jo,dc as $t,ea as et,eb as Qo,ec as xr,f as Co,fa as jt,fb as Zo,fc as Be,g as c,ga as ce,gc as br,ha as Ee,hc as Ot,i as ae,ic as yr,j as bt,ja as be,jc as r,k as wo,kb as Ht,kc as Rr,la as ze,lb as He,lc as Ge,m as T,mb as er,mc as Sr,n as ve,na as ue,nb as tr,o as Qe,oc as Er,p as W,pb as or,q as K,qa as Do,r as te,ra as Lo,rb as Bt,t as Io,ta as St,tb as rr,u as ct,ub as nr,v as ie,vb as sr,w as Ce,wb as ar,x as P,xb as Wt,y as Dt,yb as ir,zb as qt}from"./chunks/chunk-IDTOSCVG.js";var sn=ht(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var Ls={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:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};lo.default=Ls});var Rn=ht(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});var sa={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"};po.default=sa});var vn=ht(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});var la={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"};go.default=la});var Nn=ht(xo=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});var fa={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"};xo.default=fa});var Bn="zlooks.event",Wn=1,Cr=r.string().max(256).regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9-]*)+\.v[1-9][0-9]*$/),wr=r.string().max(256).regex(/^[a-z][a-z0-9]*(?:\.[a-z][a-z0-9]*)+$/),Ir=r.string().regex(/^[a-z][a-z0-9-]{0,63}$/),Nr=r.string().trim().min(1).max(256),qn=r.string().max(128).regex(/^[a-z][a-z0-9]*(?:[._-][a-z0-9]+)*$/),Gn=r.string().max(128).regex(/^@zlooks\.cn\/[a-z0-9]+(?:-[a-z0-9]+)*$/),Kn=r.string().max(128).regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/),vr=r.string().trim().min(1).max(120),Xn=r.string().trim().min(1).max(1e3),$r=r.json(),Yn=r.strictObject({protocol:r.literal(Bn),protocolVersion:r.literal(Wn),eventId:r.uuid(),type:Cr,producer:wr,aggregate:r.strictObject({type:Ir,id:Nr}).readonly(),occurredAt:r.iso.datetime({offset:!0}),data:$r}).readonly();function Jn(e){let t=Yn.parse(e);return Object.freeze({...t,aggregate:Object.freeze({...t.aggregate})})}function At(e,t,o){let n=Cr.parse(e),a=wr.parse(o.producer),s=Ir.parse(o.aggregateType),i=o.aggregateId;if(typeof i!="function")throw new TypeError("Event aggregateId must be a function");return Object.freeze({type:n,producer:a,aggregateType:s,dataSchema:t,parse(l){let m=Jn(l);if(m.type!==n)throw new TypeError(`Expected event type ${n}`);if(m.producer!==a)throw new TypeError(`Expected event producer ${a}`);let u=t.parse(m.data);$r.parse(u);let y=Nr.parse(i(u));if(m.aggregate.type!==s||m.aggregate.id!==y)throw new TypeError(`${n} aggregate does not identify its event data`);return Object.freeze({...m,type:n,aggregate:Object.freeze({...m.aggregate}),data:u})}})}function Or(e){let t=qn.parse(e.providerId),o=vr.parse(e.displayName),n=Gn.parse(e.contractPackage);if(e.events.length===0||e.events.length>256)throw new TypeError("Event catalog must contain between 1 and 256 events");let a=e.events[0].definition.producer,s=new Set,i=new Set,l=e.events.map(m=>{if(m.definition.producer!==a)throw new TypeError("Event catalog definitions must have one producer");if(s.has(m.definition.type))throw new TypeError("Event catalog event types must be unique");let u=Kn.parse(m.consumerExport);if(i.has(u))throw new TypeError("Event catalog Consumer exports must be unique");s.add(m.definition.type),i.add(u);let y=Gt(r.toJSONSchema(m.definition.dataSchema,{target:"draft-2020-12",unrepresentable:"any",io:"input"}));if(!Qn(y))throw new TypeError("Event data schema must serialize to a JSON object");return Object.freeze({type:m.definition.type,title:vr.parse(m.title),description:Xn.parse(m.description),producer:a,aggregateType:m.definition.aggregateType,consumer:Object.freeze({packageName:n,exportName:u}),dataSchema:y})});return Object.freeze({protocol:"zlooks.event-catalog",protocolVersion:1,providerId:t,displayName:o,producer:a,contractPackage:n,count:l.length,delivery:Object.freeze({guarantee:"at-least-once",deduplicateBy:"eventId"}),events:Object.freeze(l)})}function Gt(e){if(e===null||typeof e=="string"||typeof e=="boolean"||typeof e=="number"&&Number.isFinite(e))return e;if(Array.isArray(e))return Object.freeze(e.map(Gt));if(Zn(e))return Object.freeze(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0).map(([t,o])=>[t,Gt(o)])));throw new TypeError("Event JSON Schema contains a non-JSON value")}function Qn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Zn(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var Oe="cn.zlooks.user.server";var Kt=r.enum(["logout","user-request","family-limit","credential-recovery"]),es=r.string().refine(e=>e===e.trim().normalize("NFKC"),"Display name must be normalized").refine(e=>Array.from(e).length>=1&&Array.from(e).length<=160,"Display name must contain 1 to 160 Unicode code points"),ts=r.string().refine(e=>e===e.trim().normalize("NFKC"),"Bio must be normalized").refine(e=>Array.from(e).length>=1&&Array.from(e).length<=500,"Bio must contain 1 to 500 Unicode code points"),Ar=r.url().max(2048).refine(e=>{let t=new URL(e).protocol;return t==="http:"||t==="https:"},"URL must use HTTP or HTTPS").refine(e=>e===new URL(e).toString(),"URL must be canonical"),os=r.email().max(320).refine(e=>e===e.toLocaleLowerCase("en-US"),"Email must be lowercase"),Ae=r.strictObject({id:r.uuid(),displayName:es.nullable(),avatar:Ar.nullable(),homepage:Ar.nullable(),bio:ts.nullable(),email:os.nullable(),emailVerified:r.boolean(),status:r.enum(["active","disabled","deleted"]),createdAt:r.iso.datetime({offset:!0}),updatedAt:r.iso.datetime({offset:!0}),version:r.number().int().positive()}).superRefine((e,t)=>{e.emailVerified&&e.email===null&&t.addIssue({code:"custom",message:"A verified user snapshot must include its email",path:["email"]}),Date.parse(e.updatedAt)<Date.parse(e.createdAt)&&t.addIssue({code:"custom",message:"User updated time must not precede creation time",path:["updatedAt"]})}).readonly(),pt=r.strictObject({id:r.uuid(),userId:r.uuid(),createdAt:r.iso.datetime({offset:!0}),expiresAt:r.iso.datetime({offset:!0}),lastSeenAt:r.iso.datetime({offset:!0}),revokedAt:r.iso.datetime({offset:!0}).nullable(),revokeReason:Kt.nullable()}).superRefine((e,t)=>{let o=Date.parse(e.createdAt);e.revokedAt===null!=(e.revokeReason===null)&&t.addIssue({code:"custom",message:"Session revocation time and reason must be present together",path:["revokedAt"]}),Date.parse(e.expiresAt)<=o&&t.addIssue({code:"custom",message:"Session expiry must follow creation time",path:["expiresAt"]});let n=Date.parse(e.lastSeenAt);(n<o||n>Date.parse(e.expiresAt))&&t.addIssue({code:"custom",message:"Session last-seen time must fall within its lifetime",path:["lastSeenAt"]}),e.revokedAt!==null&&Date.parse(e.revokedAt)<o&&t.addIssue({code:"custom",message:"Session revoked time must not precede creation time",path:["revokedAt"]})}).readonly();function Fe(e,t,o,n){return At(e,o,{producer:Oe,aggregateType:t,aggregateId:n})}var _r="cn.zlooks.user.registered.v1",rs=r.strictObject({user:Ae}).refine(e=>e.user.status==="active",{message:"A registered user snapshot must be active",path:["user","status"]}).readonly(),Xt=Fe(_r,"user",rs,e=>e.user.id);var Pr="cn.zlooks.user.email-verified.v1",ns=r.strictObject({user:Ae}).refine(e=>e.user.email!==null&&e.user.emailVerified,{message:"An email-verified event must contain a verified email snapshot",path:["user","emailVerified"]}).readonly(),Yt=Fe(Pr,"user",ns,e=>e.user.id);var Tr="cn.zlooks.user.profile-updated.v1",zr=r.enum(["displayName","avatar","homepage","bio"]),ss=r.strictObject({user:Ae,changedFields:r.array(zr).min(1).max(4).refine(e=>new Set(e).size===e.length,"Profile fields must be unique").readonly()}).readonly(),Jt=Fe(Tr,"user",ss,e=>e.user.id);var Fr="cn.zlooks.user.session-created.v1",as=r.strictObject({user:Ae,sessionFamily:pt,intent:r.enum(["login","registration","recovery"])}).superRefine((e,t)=>{e.sessionFamily.userId!==e.user.id&&t.addIssue({code:"custom",message:"Session and user snapshots must identify the same user",path:["sessionFamily","userId"]}),e.sessionFamily.revokedAt!==null&&t.addIssue({code:"custom",message:"A created session snapshot must be active",path:["sessionFamily","revokedAt"]}),e.user.status!=="active"&&t.addIssue({code:"custom",message:"A session-created event must contain an active user snapshot",path:["user","status"]})}).readonly(),Qt=Fe(Fr,"session-family",as,e=>e.sessionFamily.id);var kr="cn.zlooks.user.session-revoked.v1",is=r.strictObject({user:Ae,sessionFamily:pt}).superRefine((e,t)=>{e.sessionFamily.userId!==e.user.id&&t.addIssue({code:"custom",message:"Session and user snapshots must identify the same user",path:["sessionFamily","userId"]}),e.sessionFamily.revokedAt===null&&t.addIssue({code:"custom",message:"A revoked session snapshot must include its revocation",path:["sessionFamily","revokedAt"]})}).readonly(),Zt=Fe(kr,"session-family",is,e=>e.sessionFamily.id);var ls=Or({providerId:"user",displayName:"\u7528\u6237\u670D\u52A1\u4E8B\u4EF6",contractPackage:"@zlooks.cn/user-shared",events:[{definition:Xt,title:"\u7528\u6237\u5DF2\u6CE8\u518C",description:"\u7528\u6237\u8D26\u6237\u5DF2\u7ECF\u5B8C\u6210\u6301\u4E45\u5316\u521B\u5EFA\u5E76\u5904\u4E8E\u53EF\u7528\u72B6\u6001\u3002",consumerExport:"consumeUserRegisteredEvent"},{definition:Yt,title:"\u7528\u6237\u90AE\u7BB1\u5DF2\u9A8C\u8BC1",description:"\u7528\u6237\u90AE\u7BB1\u4ECE\u672A\u9A8C\u8BC1\u72B6\u6001\u771F\u5B9E\u8F6C\u6362\u4E3A\u5DF2\u9A8C\u8BC1\u72B6\u6001\u3002",consumerExport:"consumeUserEmailVerifiedEvent"},{definition:Jt,title:"\u7528\u6237\u8D44\u6599\u5DF2\u66F4\u65B0",description:"\u7528\u6237\u516C\u5F00\u8D44\u6599\u5B57\u6BB5\u53D1\u751F\u771F\u5B9E\u53D8\u5316\u5E76\u643A\u5E26\u53D8\u66F4\u540E\u7684\u5B8C\u6574\u5B89\u5168\u5FEB\u7167\u3002",consumerExport:"consumeUserProfileUpdatedEvent"},{definition:Qt,title:"\u7528\u6237\u4F1A\u8BDD\u65CF\u5DF2\u521B\u5EFA",description:"\u767B\u5F55\u3001\u6CE8\u518C\u6216\u6062\u590D\u6D41\u7A0B\u5DF2\u7ECF\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u6D3B\u52A8\u4F1A\u8BDD\u65CF\u3002",consumerExport:"consumeUserSessionCreatedEvent"},{definition:Zt,title:"\u7528\u6237\u4F1A\u8BDD\u65CF\u5DF2\u64A4\u9500",description:"\u7528\u6237\u4F1A\u8BDD\u65CF\u4ECE\u6D3B\u52A8\u72B6\u6001\u771F\u5B9E\u8F6C\u6362\u4E3A\u5DF2\u64A4\u9500\u72B6\u6001\u3002",consumerExport:"consumeUserSessionRevokedEvent"}]});var cs="zlooks.user.credential-lifecycle",ms="cn.zlooks.password.credential-lifecycle.v1";var Ur="/user.account/account";var Li=Ge(Oe,"/api/auth/methods"),eo=Ge(Oe,"/api/auth/transactions"),ji=Ge(Oe,"/api/auth/logout"),Hi=Ge(Oe,"/api/auth/session/refresh"),Bi=Ge(Oe,"/api/user"),Wi=Ge(Oe,"/api/user/sessions"),qi=Object.freeze({crossOriginRejected:1001,requestRejected:1002,authenticationRequired:1003,sessionExpired:1004,authenticationDenied:1005,authenticationPending:1006,routeNotFound:1007,accountNotFound:1008,accountAlreadyExists:1009,invalidVerificationCode:1010,verificationRateLimited:1011,emailDeliveryFailed:1012,serviceUnavailable:1013}),st=r.string().min(1).max(2048).regex(/^\/(?!\/)[^?#]*$/),Gi=r.discriminatedUnion("status",[r.strictObject({status:r.literal("anonymous"),loginMethods:r.array(r.strictObject({id:r.string().min(1).max(128),label:r.string().min(1).max(80),href:st})).max(64)}),r.strictObject({status:r.literal("authenticated"),user:r.strictObject({label:r.string().min(1).max(160),secondary:r.string().min(1).max(320).optional(),avatarText:r.string().min(1).max(8),avatarUrl:r.url({protocol:/^https?$/}).max(2048).optional()}),accountHref:st,logoutHref:st})]).readonly(),us=r.discriminatedUnion("action",[r.strictObject({action:r.literal("set"),value:r.string().min(1).max(4096),expiresAt:r.iso.datetime({offset:!0})}),r.strictObject({action:r.literal("clear")})]),Mr=r.string().min(1).max(4096),Ki=r.string().trim().min(1).max(128),ds=r.strictObject({id:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),label:r.string().trim().min(1).max(80),capabilities:r.strictObject({login:r.boolean(),registration:r.boolean()}),rsc:r.strictObject({pluginId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),slots:r.strictObject({login:st.optional(),registration:st.optional()})})}).readonly(),Xi=r.strictObject({}).readonly(),Yi=r.strictObject({methods:r.array(ds).max(64).readonly()}).readonly(),Ji=r.strictObject({methodId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),intent:r.enum(["login","registration","linking","reauthentication","recovery"]),loginHint:r.string().trim().min(1).max(320).optional(),requestContext:r.strictObject({clientKey:r.string().min(16).max(128)})}).readonly(),Qi=r.discriminatedUnion("status",[r.strictObject({status:r.literal("input-required"),transactionId:r.uuid(),methodId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/)}),r.strictObject({status:r.literal("redirect-required"),transactionId:r.uuid(),methodId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),redirectUrl:r.url().max(4096)}),r.strictObject({status:r.literal("pending"),transactionId:r.uuid(),methodId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),retryAfterMs:r.number().int().min(250).max(6e4)})]).readonly(),Zi=r.strictObject({input:r.unknown()}).readonly(),el=r.discriminatedUnion("status",[r.strictObject({status:r.literal("verified"),session:r.strictObject({token:Mr,expiresAt:r.iso.datetime({offset:!0})}),user:r.unknown()}),r.strictObject({status:r.literal("denied"),code:r.string().min(1).max(128)}),r.strictObject({status:r.literal("pending"),retryAfterMs:r.number().int().min(250).max(6e4)})]).readonly(),Vr=r.strictObject({id:r.string().min(1).max(128),displayName:r.string().min(1).max(160).optional(),avatar:r.url({protocol:/^https?$/}).max(2048).optional(),homepage:r.url({protocol:/^https?$/}).max(2048).optional(),bio:r.string().max(500).optional(),email:r.email().max(320).optional(),emailVerified:r.boolean()}).readonly(),tl=r.strictObject({user:Vr}).readonly(),ol=r.strictObject({input:r.unknown()}).readonly(),ps=r.strictObject({id:r.string().min(1).max(128),createdAt:r.iso.datetime(),lastSeenAt:r.iso.datetime(),expiresAt:r.iso.datetime(),revoked:r.boolean()}).readonly(),rl=r.strictObject({sessions:r.array(ps).max(100).readonly()}).readonly(),nl=r.strictObject({revoked:r.boolean()}).readonly(),sl=r.strictObject({revoked:r.boolean()}).readonly(),al=r.strictObject({session:r.strictObject({token:Mr,expiresAt:r.iso.datetime({offset:!0}),user:Vr})}).readonly(),il=r.strictObject({protocol:r.literal("zlooks.event-catalog"),protocolVersion:r.literal(1),providerId:r.literal("user"),displayName:r.string().min(1).max(160),producer:r.literal(Oe),contractPackage:r.literal("@zlooks.cn/user-shared"),count:r.literal(5),delivery:r.strictObject({guarantee:r.literal("at-least-once"),deduplicateBy:r.literal("eventId")}),events:r.array(r.strictObject({type:r.string().min(1).max(256),title:r.string().min(1).max(160),description:r.string().min(1).max(1e3),producer:r.literal(Oe),aggregateType:r.string().min(1).max(128),consumer:r.strictObject({packageName:r.literal("@zlooks.cn/user-shared"),exportName:r.string().min(1).max(128)}),dataSchema:r.record(r.string(),r.unknown())})).length(5).readonly()}).readonly(),ll=r.strictObject({}).readonly(),Dr=r.strictObject({id:r.uuid(),displayName:r.string().trim().min(1).max(160).nullable(),avatar:r.url({protocol:/^https?$/}).max(2048).nullable(),homepage:r.url({protocol:/^https?$/}).max(2048).nullable().optional(),bio:r.string().trim().min(1).max(500).nullable().optional()}).readonly(),fs=Dr,cl=r.discriminatedUnion("authenticated",[r.strictObject({authenticated:r.literal(!1)}),r.strictObject({authenticated:r.literal(!0),user:fs})]).readonly(),ml=r.strictObject({userIds:r.array(r.uuid()).min(1).max(100).refine(e=>new Set(e).size===e.length,{message:"User IDs must be unique"}).readonly()}).readonly(),ul=r.strictObject({users:r.array(Dr).max(100).refine(e=>new Set(e.map(t=>t.id)).size===e.length,{message:"Public user profiles must be unique"}).readonly()}).readonly(),dl=r.strictObject({method:r.enum(["GET","POST","PATCH"]),path:st,origin:r.string().max(2048).optional(),clientKey:r.string().regex(/^[a-f0-9]{64}$/),body:r.unknown().optional()}).readonly(),pl=r.strictObject({status:r.number().int().min(200).max(599).refine(e=>e<300||e>=400),body:Rr,sessionCookie:us.optional()}).superRefine((e,t)=>{(e.status>=200&&e.status<300)!==!Sr(e.body)&&t.addIssue({code:"custom",message:"HTTP status and browser API response code disagree",path:["body","code"]})}).readonly(),gs=r.strictObject({protocol:r.literal(cs),kind:r.enum(["registration","recovery"]),authenticationTransactionId:r.uuid(),extensionId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),methodId:r.string().regex(/^[a-z][a-z0-9._-]{0,127}$/),subject:r.string().trim().min(1).max(512),email:r.email().max(320),occurredAt:r.iso.datetime({offset:!0})}).readonly(),fl=At(ms,gs,{producer:"cn.zlooks.password.auth.server",aggregateType:"credential",aggregateId:({subject:e})=>e}),gl=r.strictObject({acknowledged:r.literal(!0)}).readonly();function to(e){return`${eo}/${encodeURIComponent(r.string().trim().min(1).max(128).parse(e))}/complete`}function ft(){return ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)({}).hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ft.apply(null,arguments)}function Ke(e){let[t,o]=Oo(e);return ve(()=>{o(e,{ms:e.length?0:10})},[e]),t}var hs=e=>{let{componentCls:t,motionDurationFast:o,motionEaseInOut:n}=e,a=`${t}-show-help`,s=`${t}-show-help-item`;return{[a]:{transition:`opacity ${o} ${n}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[s]:{overflow:"hidden",transition:`${["height","opacity","transform"].map(i=>`${i} ${o} ${n}`).join(", ")} !important`,[`&${s}-appear, &${s}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${s}-leave-active`]:{transform:"translateY(-5px)"}}}}},Lr=hs;var xs=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ue(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus, input[type='radio']:focus, input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ue(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),jr=(e,t)=>{let{formItemCls:o}=e;return{[o]:{[`${o}-label > label`]:{height:t},[`${o}-control-input`]:{minHeight:t}}}},bs=e=>{let{componentCls:t}=e;return{[t]:{...dt(e),...xs(e),[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":{...jr(e,e.controlHeightSM)},"&-large":{...jr(e,e.controlHeightLG)}}}},ys=e=>{let{formItemCls:t,iconCls:o,rootPrefixCls:n,antCls:a,labelRequiredMarkColor:s,labelColor:i,labelFontSize:l,labelHeight:m,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:y,itemMarginBottom:R}=e,[C]=Le(a,"grid");return{[t]:{...dt(e),marginBottom:R,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
2
|
+
&-hidden${a}-row`]:{display:"none"},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:m,color:i,fontSize:l,[`> ${o}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:y},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{[C("display")]:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Bt,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}}}},Hr=e=>({padding:e.verticalLabelPadding,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),at=e=>({...Hr(e),margin:e.verticalLabelMargin}),Rs=e=>{let[t]=Le(e.antCls,"form");return{...Hr(e),[t("item-label-margin")]:e.verticalLabelMargin}},Ss=e=>{let{antCls:t,formItemCls:o}=e;return{[`${o}-horizontal`]:{[`${o}-label`]:{flexGrow:0},[`${o}-control`]:{flex:"1 1 0",minWidth:0},[`${o}-label[class$='-24'], ${o}-label[class*='-24 ']`]:{[`& + ${o}-control`]:{minWidth:"unset"}},[`> ${o}-row > ${t}-col-24${o}-label,
|
|
3
|
+
> ${o}-row > ${t}-col-xl-24${o}-label`]:at(e)}}},Es=e=>{let{componentCls:t,formItemCls:o,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${o}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${o}-label,
|
|
4
|
+
> ${o}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${o}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${o}-has-feedback`]:{display:"inline-block"}}}}},vs=e=>{let{componentCls:t,formItemCls:o,rootPrefixCls:n}=e;return{[`${o}:not(${o}-vertical) > ${o}-row > ${o}-label`]:at(e),[`${t}:not(${t}-inline)`]:{[o]:{flexWrap:"wrap",[`${o}-label, ${o}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Cs=e=>{let{componentCls:t,formItemCls:o,antCls:n,verticalLabelHeight:a}=e,[s,i]=Le(n,"form");return{[o]:{[s("item-label-margin")]:"initial"},[`${o}-label`]:{margin:i("item-label-margin")},[`${o}-vertical`]:{[`${o}-row`]:{flexDirection:"column"},[`${o}-label > label`]:{height:a},[`${o}-control`]:{width:"100%"},[`> ${o}-row > ${o}-label,
|
|
5
|
+
> ${o}-row > ${n}-col-24${o}-label,
|
|
6
|
+
> ${o}-row > ${n}-col-xl-24${o}-label`]:Rs(e)},[`@media (max-width: ${ue(e.screenXSMax)})`]:[vs(e),{[t]:{[`${o}:not(${o}-horizontal):not(${o}-vertical)`]:{[`> ${o}-row > ${n}-col-xs-24${o}-label`]:at(e)}}}],[`@media (max-width: ${ue(e.screenSMMax)})`]:{[t]:{[`${o}:not(${o}-horizontal):not(${o}-vertical)`]:{[`> ${o}-row > ${n}-col-sm-24${o}-label`]:at(e)}}},[`@media (max-width: ${ue(e.screenMDMax)})`]:{[t]:{[`${o}:not(${o}-horizontal):not(${o}-vertical)`]:{[`> ${o}-row > ${n}-col-md-24${o}-label`]:at(e)}}},[`@media (max-width: ${ue(e.screenLGMax)})`]:{[t]:{[`${o}:not(${o}-horizontal):not(${o}-vertical)`]:{[`> ${o}-row > ${n}-col-lg-24${o}-label`]:at(e)}}}}},ws=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,verticalLabelHeight:e.labelHeight??"auto",labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),oo=(e,t)=>Ve(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),it=De("Form",(e,{rootPrefixCls:t})=>{let o=oo(e,t);return[bs(o),ys(o),Lr(o),Ss(o),Es(o),Cs(o),or(o),Bt]},ws,{order:-1e3});var Br=[];function ro(e,t,o,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:o}}var Is=({help:e,helpStatus:t,errors:o=Br,warnings:n=Br,className:a,fieldId:s,onVisibleChanged:i})=>{let{prefixCls:l}=T(rt),{classNames:m,styles:u}=T(de),y=`${l}-item-explain`,R=ot(l),[C,A]=it(l,R),x=W(()=>Ht(l),[l]),I=Ke(o),p=Ke(n),b=Ue(e),$=W(()=>b?[ro(e,"help",t)]:[].concat(he(I.map((E,g)=>ro(E,"error","error",g))),he(p.map((E,g)=>ro(E,"warning","warning",g)))),[e,t,b,I,p]),d=W(()=>{let E={};return $.forEach(({key:g})=>{E[g]=(E[g]||0)+1}),$.map((g,N)=>({...g,key:E[g.key]>1?`${g.key}-fallback-${N}`:g.key}))},[$]),f={};return s&&(f.id=`${s}_help`),c(Rt,{motionDeadline:x.motionDeadline,motionName:`${l}-show-help`,visible:!!d.length,onVisibleChanged:i},E=>{let{className:g,style:N}=E;return c("div",{...f,className:P(y,g,m?.help,A,R,a,C),style:{...u?.help,...N}},c(Mo,{keys:d,...Ht(l),motionName:`${l}-show-help-item`,component:!1},h=>{let{key:v,error:w,errorStatus:S,className:z,style:U}=h;return c("div",{key:v,className:P(z,m?.helpItem,{[`${y}-${S}`]:S}),style:{...u?.helpItem,...U}},w)}))})},_t=Is;var Wr=e=>typeof e=="object"&&e!=null&&e.nodeType===1,qr=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Pt=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let o=getComputedStyle(e,null);return qr(o.overflowY,t)||qr(o.overflowX,t)||(n=>{let a=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)})(e)}return!1},Tt=(e,t,o,n,a,s,i,l)=>s<e&&i>t||s>e&&i<t?0:s<=e&&l<=o||i>=t&&l>=o?s-e-n:i>t&&l<o||s<e&&l>o?i-t+a:0,Ns=e=>{let t=e.parentElement;return t??(e.getRootNode().host||null)},no=(e,t)=>{var o,n,a,s;if(typeof document>"u")return[];let{scrollMode:i,block:l,inline:m,boundary:u,skipOverflowHiddenElements:y}=t,R=typeof u=="function"?u:L=>L!==u;if(!Wr(e))throw new TypeError("Invalid target");let C=document.scrollingElement||document.documentElement,A=[],x=e;for(;Wr(x)&&R(x);){if(x=Ns(x),x===C){A.push(x);break}x!=null&&x===document.body&&Pt(x)&&!Pt(document.documentElement)||x!=null&&Pt(x,y)&&A.push(x)}let I=(n=(o=window.visualViewport)==null?void 0:o.width)!=null?n:innerWidth,p=(s=(a=window.visualViewport)==null?void 0:a.height)!=null?s:innerHeight,{scrollX:b,scrollY:$}=window,{height:d,width:f,top:E,right:g,bottom:N,left:h}=e.getBoundingClientRect(),{top:v,right:w,bottom:S,left:z}=(L=>{let O=window.getComputedStyle(L);return{top:parseFloat(O.scrollMarginTop)||0,right:parseFloat(O.scrollMarginRight)||0,bottom:parseFloat(O.scrollMarginBottom)||0,left:parseFloat(O.scrollMarginLeft)||0}})(e),U=l==="start"||l==="nearest"?E-v:l==="end"?N+S:E+d/2-v+S,M=m==="center"?h+f/2-z+w:m==="end"?g+w:h-z,V=[];for(let L=0;L<A.length;L++){let O=A[L],{height:Y,width:q,top:X,right:B,bottom:_,left:j}=O.getBoundingClientRect();if(i==="if-needed"&&E>=0&&h>=0&&N<=p&&g<=I&&(O===C&&!Pt(O)||E>=X&&N<=_&&h>=j&&g<=B))return V;let le=getComputedStyle(O),Z=parseInt(le.borderLeftWidth,10),J=parseInt(le.borderTopWidth,10),D=parseInt(le.borderRightWidth,10),re=parseInt(le.borderBottomWidth,10),F=0,H=0,Q="offsetWidth"in O?O.offsetWidth-O.clientWidth-Z-D:0,pe="offsetHeight"in O?O.offsetHeight-O.clientHeight-J-re:0,xe="offsetWidth"in O?O.offsetWidth===0?0:q/O.offsetWidth:0,fe="offsetHeight"in O?O.offsetHeight===0?0:Y/O.offsetHeight:0;if(C===O)F=l==="start"?U:l==="end"?U-p:l==="nearest"?Tt($,$+p,p,J,re,$+U,$+U+d,d):U-p/2,H=m==="start"?M:m==="center"?M-I/2:m==="end"?M-I:Tt(b,b+I,I,Z,D,b+M,b+M+f,f),F=Math.max(0,F+$),H=Math.max(0,H+b);else{F=l==="start"?U-X-J:l==="end"?U-_+re+pe:l==="nearest"?Tt(X,_,Y,J,re+pe,U,U+d,d):U-(X+Y/2)+pe/2,H=m==="start"?M-j-Z:m==="center"?M-(j+q/2)+Q/2:m==="end"?M-B+D+Q:Tt(j,B,q,Z,D+Q,M,M+f,f);let{scrollLeft:ne,scrollTop:ye}=O;F=fe===0?0:Math.max(0,Math.min(ye+F/fe,O.scrollHeight-Y/fe+pe)),H=xe===0?0:Math.max(0,Math.min(ne+H/xe,O.scrollWidth-q/xe+Q)),U+=ye-F,M+=ne-H}V.push({el:O,top:F,left:H})}return V};var $s=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function Gr(e,t){if(!e.isConnected||!(a=>{let s=a;for(;s&&s.parentNode;){if(s.parentNode===document)return!0;s=s.parentNode instanceof ShadowRoot?s.parentNode.host:s.parentNode}return!1})(e))return;let o=(a=>{let s=window.getComputedStyle(a);return{top:parseFloat(s.scrollMarginTop)||0,right:parseFloat(s.scrollMarginRight)||0,bottom:parseFloat(s.scrollMarginBottom)||0,left:parseFloat(s.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(no(e,t));let n=typeof t=="boolean"||t==null?void 0:t.behavior;for(let{el:a,top:s,left:i}of no(e,$s(t))){let l=s-o.top+o.bottom,m=i-o.left+o.right;a.scroll({top:l,left:m,behavior:n})}}var Os=["parentNode"],As="form_item";function Xe(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function zt(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:Os.includes(o)?`${As}_${o}`:o}function Ft(e,t,o,n,a,s){let i=n;return s!==void 0?i=s:o.validating?i="validating":e.length?i="error":t.length?i="warning":(o.touched||a&&o.validated)&&(i="success"),i}function Kr(e){return Xe(e).join("_")}function Xr(e,t){let o=t.getFieldInstance(e),n=To(o);if(n)return n;let a=zt(Xe(e),t.__INTERNAL__.name);if(a)return document.getElementById(a)}function gt(e){let[t]=ir(),o=K({}),n=W(()=>e??{...t,__INTERNAL__:{itemRef:a=>s=>{let i=Kr(a);s?o.current[i]=s:delete o.current[i]}},scrollToField:(a,s={})=>{let{focus:i,...l}=s,m=Xr(a,n);m&&(Gr(m,{scrollMode:"if-needed",block:"nearest",...l}),i&&n.focusField(a))},focusField:a=>{let s=n.getFieldInstance(a);Ee(s?.focus)?s.focus():Xr(a,n)?.focus?.()},getFieldInstance:a=>{let s=Kr(a);return o.current[s]}},[e,t]);return[n]}var _s=(e,t)=>{let o=T(tt),{getPrefixCls:n,direction:a,requiredMark:s,colon:i,scrollToFirstError:l,className:m,style:u,styles:y,classNames:R,tooltip:C,labelAlign:A,labelWrap:x}=Te("form"),{prefixCls:I,className:p,rootClassName:b,size:$,disabled:d=o,form:f,colon:E,labelAlign:g,labelWrap:N,labelCol:h,wrapperCol:v,layout:w="horizontal",scrollToFirstError:S,requiredMark:z,onFinishFailed:U,name:M,style:V,feedbackIcons:L,variant:O,classNames:Y,styles:q,tooltip:X,...B}=e,_=He($),j=T(Do),le=W(()=>z!==void 0?z:s!==void 0?s:!0,[z,s]),Z=E??i,J=g??A,D=N??x,re={...C,...X},F=n("form",I),H=ot(F),[Q,pe]=it(F,H),xe={...e,size:_,disabled:d,layout:w,colon:Z,requiredMark:le,labelAlign:J,labelWrap:D},fe=be(u),ne=be(V),[ye,_e]=ze([R,Y],[y,fe,q,ne],{props:xe}),Re=P(F,`${F}-${w}`,{[`${F}-hide-required-mark`]:le===!1,[`${F}-rtl`]:a==="rtl",[`${F}-large`]:_==="large",[`${F}-small`]:_==="small"},pe,H,Q,m,p,b,ye.root),[ge]=gt(f),{__INTERNAL__:k}=ge;k.name=M;let ee=W(()=>({name:M,labelAlign:J,labelCol:h,labelWrap:D,wrapperCol:v,layout:w,colon:Z,requiredMark:le,itemRef:k.itemRef,form:ge,feedbackIcons:L,tooltip:re,classNames:ye,styles:_e}),[M,J,D,h,v,w,Z,le,ge,L,ye,_e,re]),G=K(null);Qe(t,()=>({...ge,nativeElement:G.current?.nativeElement}));let Ne=(Se,Je)=>{if(Se){let se={block:"nearest"};ce(Se)&&(se={...se,...Se}),ge.scrollToField(Je,se)}},me=Se=>{if(U?.(Se),Se.errorFields.length){let Je=Se.errorFields[0].name;if(S!==void 0){Ne(S,Je);return}l!==void 0&&Ne(l,Je)}};return c(mr.Provider,{value:O},c(jo,{disabled:d},c(Ho.Provider,{value:_},c(vt,{validateMessages:j},c(de.Provider,{value:ee},c(cr,{status:!0},c(lr,{id:M,...B,name:M,onFinishFailed:me,form:ge,ref:G,style:_e?.root,className:Re})))))))},Ps=ae(_s);var Yr=Ps;var Ts=e=>{if(Ee(e))return e;let t=Fo(e);return t.length<=1?t[0]:t},Jr=Ts;var Qr=()=>{let{status:e,errors:t=[],warnings:o=[]}=T(Ie);return{status:e,errors:t,warnings:o}};Qr.Context=Ie;var Zr=Qr;function so(e){let[t,o]=te(e),n=K(null),a=K([]),s=K(!1);ve(()=>(s.current=!1,()=>{s.current=!0,mt.cancel(n.current),n.current=null}),[]);function i(l){s.current||(n.current===null&&(a.current=[],n.current=mt(()=>{n.current=null,o(m=>{let u=m;return a.current.forEach(y=>{u=y(u)}),u})})),a.current.push(l))}return[t,i]}var zs=()=>{let{itemRef:e}=T(de),t=K({});return(n,a)=>{let s=a&&ce(a)&&Po(a),i=n.join("_");return(t.current.name!==i||t.current.originRef!==s)&&(t.current.name=i,t.current.originRef=s,t.current.ref=Pe(e(n),s)),t.current.ref}},en=zs;var Fs=Co({}),kt=Fs;function tn(e){return e==="auto"?"1 1 auto":et(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var ks=ae((e,t)=>{let{getPrefixCls:o,direction:n}=T(we),{gutter:a,wrap:s}=T(kt),{prefixCls:i,span:l,order:m,offset:u,push:y,pull:R,className:C,children:A,flex:x,style:I,...p}=e,b=o("col",i),$=o(),[d,f]=dr(b),[E]=Le($,"col"),g={},N={};wt.forEach(w=>{let S={},z=e[w];et(z)?S.span=z:ce(z)&&(S=z||{}),delete p[w],N={...N,[`${b}-${w}-${S.span}`]:Ue(S.span),[`${b}-${w}-order-${S.order}`]:S.order||S.order===0,[`${b}-${w}-offset-${S.offset}`]:S.offset||S.offset===0,[`${b}-${w}-push-${S.push}`]:S.push||S.push===0,[`${b}-${w}-pull-${S.pull}`]:S.pull||S.pull===0,[`${b}-rtl`]:n==="rtl"},(S.flex||S.flex===0)&&(N[`${b}-${w}-flex`]=!0,g[E(`${w}-flex`)]=tn(S.flex))});let h=P(b,{[`${b}-${l}`]:l!==void 0,[`${b}-order-${m}`]:m,[`${b}-offset-${u}`]:u,[`${b}-push-${y}`]:y,[`${b}-pull-${R}`]:R},C,N,d,f),v={};if(a?.[0]){let w=et(a[0])?`${a[0]/2}px`:`calc(${a[0]} / 2)`;v.paddingInline=w}return(x||x===0)&&(v.flex=tn(x),s===!1&&!v.minWidth&&(v.minWidth=0)),c("div",{...p,style:{...v,...I,...g},className:h,ref:t},A)}),Ut=ks;function ao(e,t){let o=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return n.forEach((s,i)=>{if(ce(s))for(let l=0;l<nt.length;l++){let m=nt[l];if(a[m]&&s[m]!==void 0){o[i]=s[m];break}}else o[i]=s}),o}var on=(e,t)=>{let[o,n]=te(()=>jt(e)?e:""),a=()=>{if(jt(e)&&n(e),!!ce(e))for(let s=0;s<nt.length;s++){let i=nt[s];if(!t||!t[i])continue;let l=e[i];if(l!==void 0){n(l);return}}};return ve(()=>{a()},[JSON.stringify(e),t]),o},Us=ae((e,t)=>{let{prefixCls:o,justify:n,align:a,className:s,style:i,children:l,gutter:m=0,wrap:u,...y}=e,{getPrefixCls:R,direction:C}=T(we),A=pr(!0,null),x=on(a,A),I=on(n,A),p=R("row",o),[b,$]=ur(p),d=ao(m,A),f=P(p,{[`${p}-no-wrap`]:u===!1,[`${p}-${I}`]:I,[`${p}-${x}`]:x,[`${p}-rtl`]:C==="rtl"},s,b,$),E={};if(d?.[0]){let v=et(d[0])?`${d[0]/-2}px`:`calc(${d[0]} / -2)`;E.marginInline=v}let[g,N]=d;E.rowGap=N;let h=W(()=>({gutter:[g,N],wrap:u}),[g,N,u]);return c(kt.Provider,{value:h},c("div",{...y,className:f,style:{...E,...i},ref:t},l))}),io=Us;var Ms=e=>{let{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},rn=Go(["Form","item-item"],(e,{rootPrefixCls:t})=>{let o=oo(e,t);return Ms(o)});var Vs=24,Ds=e=>{let{prefixCls:t,status:o,labelCol:n,wrapperCol:a,children:s,errors:i,warnings:l,_internalItemRender:m,extra:u,help:y,fieldId:R,marginBottom:C,onErrorVisibleChanged:A,label:x}=e,I=`${t}-item`,p=T(de),{classNames:b,styles:$}=p,d=W(()=>{let L={...a||p.wrapperCol||{}};return x===null&&!n&&!a&&p.labelCol&&[void 0].concat(he(wt)).forEach(Y=>{let q=Y?[Y]:[],X=Lt(p.labelCol,q),B=ce(X)?X:{},_=Lt(L,q),j=ce(_)?_:{};"span"in B&&!("offset"in j)&&B.span<Vs&&(L=ko(L,[].concat(q,["offset"]),B.span))}),L},[a,p.wrapperCol,p.labelCol,x,n]),f=P(`${I}-control`,d.className),E=W(()=>{let{labelCol:L,wrapperCol:O,...Y}=p;return Y},[p]),g=K(null),[N,h]=te(0);Ze(()=>{u&&g.current?h(g.current.clientHeight):h(0)},[u]);let v=c("div",{className:`${I}-control-input`},c("div",{className:P(`${I}-control-input-content`,b?.content),style:$?.content},s)),w=W(()=>({prefixCls:t,status:o}),[t,o]),S=C!==null||i.length||l.length?c(rt.Provider,{value:w},c(_t,{fieldId:R,errors:i,warnings:l,help:y,helpStatus:o,className:`${I}-explain-connected`,onVisibleChanged:A})):null,z={};R&&(z.id=`${R}_extra`);let U=u?c("div",{...z,className:P(`${I}-extra`,b?.extra),style:$?.extra,ref:g},u):null,M=S||U?c("div",{className:`${I}-additional`,style:C?{minHeight:C+N}:{}},S,U):null,V=m&&m.mark==="pro_table_render"&&m.render?m.render(e,{input:v,errorList:S,extra:U}):c($e,null,v,M);return c(de.Provider,{value:E},c(Ut,{...d,className:f},V),c(rn,{prefixCls:t}))},nn=Ds;var an=xt(sn());function co(){return co=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},co.apply(this,arguments)}var js=(e,t)=>c(je,co({},e,{ref:t,icon:an.default})),Hs=ae(js),ln=Hs;var Bs=(e,t)=>Vo(e)?ce(e)&&!bt(e)?{...t,...e}:{...t,title:e}:null,cn=Bs;var Ws=({prefixCls:e,label:t,htmlFor:o,labelCol:n,labelAlign:a,colon:s,required:i,requiredMark:l,tooltip:m,vertical:u})=>{let[y]=St("Form"),{labelAlign:R,labelCol:C,labelWrap:A,colon:x,classNames:I,styles:p,tooltip:b}=T(de);if(!t)return null;let $=n||C||{},d=a||R,f=`${e}-item-label`,E=P(f,d==="left"&&`${f}-left`,$.className,{[`${f}-wrap`]:!!A}),g=t,N=s===!0||x!==!1&&s!==!1;N&&!u&&typeof t=="string"&&t.trim()&&(g=t.replace(/[:|:]\s*$/,""));let v=cn(m,b);if(v){let V=c(It,{...v},c("span",{className:`${e}-item-tooltip`,onClick:L=>{L.preventDefault()},tabIndex:-1},v.icon||v.children||c(ln,null)));g=c($e,null,g,V)}let w=l==="optional",S=Ee(l),z=l===!1;S?g=l(g,{required:!!i}):w&&!i&&(g=c($e,null,g,c("span",{className:`${e}-item-optional`},y?.optional||Lo.Form?.optional)));let U;z?U="hidden":(w||S)&&(U="optional");let M=P(I?.label,{[`${e}-item-required`]:i,[`${e}-item-required-mark-${U}`]:U,[`${e}-item-no-colon`]:!N});return c(Ut,{...$,className:E},c("label",{htmlFor:o,className:M,style:p?.label,title:typeof t=="string"?t:void 0},g))},mn=Ws;var qs={success:Ko,warning:Yo,error:Xo,validating:Jo};function Gs({children:e,errors:t,warnings:o,hasFeedback:n,validateStatus:a,prefixCls:s,meta:i,noStyle:l,name:m}){let u=`${s}-item`,{feedbackIcons:y}=T(de),R=Ft(t,o,i,null,!!n,a),{isFormItemInput:C,status:A,hasFeedback:x,feedbackIcon:I,name:p}=T(Ie),b=W(()=>{let $;if(n){let f=n!==!0&&n.icons||y,E=R&&f?.({status:R,errors:t,warnings:o})?.[R],g=R?qs[R]:null;$=E!==!1&&g?c("span",{className:P(`${u}-feedback-icon`,`${u}-feedback-icon-${R}`)},E||c(g,null)):null}let d={status:R||"",errors:t,warnings:o,hasFeedback:!!n,feedbackIcon:$,isFormItemInput:!0,name:m};return l&&(d.status=(R??A)||"",d.isFormItemInput=C,d.hasFeedback=!!(n??x),d.feedbackIcon=n!==void 0?d.feedbackIcon:I,d.name=m??p),d},[R,t,o,n,y,l,m,C,A,u,x,I,p]);return c(Ie.Provider,{value:b},e)}var Mt=Gs;function mo(e){let{prefixCls:t,className:o,rootClassName:n,style:a,help:s,errors:i,warnings:l,validateStatus:m,meta:u,hasFeedback:y,hidden:R,children:C,fieldId:A,required:x,isRequired:I,onSubItemMetaChange:p,layout:b,name:$,...d}=e,f=`${t}-item`,{requiredMark:E,layout:g}=T(de),N=b||g,h=N==="vertical",v=K(null),w=Ke(i),S=Ke(l),z=Ue(s),U=!!(z||w.length||S.length),M=!!v.current&&zo(v.current),[V,L]=te(null);Ze(()=>{if(U&&v.current){let B=getComputedStyle(v.current);L(Number.parseInt(B.marginBottom,10))}},[U,M]);let O=B=>{!B&&!U&&L(null)},q=((B=!1)=>{let _=B?w:u.errors,j=B?S:u.warnings;return Ft(_,j,u,"",!!y,m)})(),X=P(f,o,n,{[`${f}-with-help`]:z||w.length||S.length,[`${f}-has-feedback`]:q&&y,[`${f}-has-success`]:q==="success",[`${f}-has-warning`]:q==="warning",[`${f}-has-error`]:q==="error",[`${f}-is-validating`]:q==="validating",[`${f}-hidden`]:R,[`${f}-${N}`]:N});return c("div",{className:X,style:a,ref:v},c(io,{className:`${f}-row`,...Me(d,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])},c(mn,{htmlFor:A,...e,requiredMark:E,required:x??I,prefixCls:t,vertical:h}),c(nn,{...e,...u,errors:w,warnings:S,prefixCls:t,status:q,help:s,marginBottom:V,onErrorVisibleChanged:O},c(Et.Provider,{value:p},c(Mt,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:y,validateStatus:q,name:$},C)))),!!V&&c("div",{className:`${f}-margin-offset`,style:{marginBottom:-V}}))}var Ks="__SPLIT__";function Xs(e,t){let o=Object.keys(e),n=Object.keys(t);return o.length===n.length&&o.every(a=>{let s=e[a],i=t[a];return s===i||Ee(s)||Ee(i)})}var Ys=wo(e=>e.children,(e,t)=>Xs(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((o,n)=>o===t.childProps[n]));function un(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Js(e){let{name:t,noStyle:o,className:n,dependencies:a,prefixCls:s,shouldUpdate:i,rules:l,children:m,required:u,label:y,messageVariables:R,trigger:C="onChange",validateTrigger:A,hidden:x,help:I,layout:p}=e,{getPrefixCls:b}=T(we),{name:$}=T(de),d=Jr(m),f=Ee(d),E=T(Et),{validateTrigger:g}=T(nr),N=Ue(A)?A:g,h=Ue(t),v=b("form",s),w=ot(v),[S,z]=it(v,w),U=Uo("Form.Item"),M=T(sr),V=K(null),[L,O]=so({}),[Y,q]=No(()=>un()),X=D=>{let re=M?.getKey(D.name);if(q(D.destroy?un():D,!0),o&&I!==!1&&E){let F=D.name;if(D.destroy)F=V.current||F;else if(re!==void 0){let[H,Q]=re;F=[H].concat(he(Q)),V.current=F}E(D,F)}},B=(D,re)=>{O(F=>{let H={...F},pe=[].concat(he(D.name.slice(0,-1)),he(re)).join(Ks);return D.destroy?delete H[pe]:H[pe]=D,H})},[_,j]=W(()=>{let D=he(Y.errors),re=he(Y.warnings);return Object.values(L).forEach(F=>{D.push.apply(D,he(F.errors||[])),re.push.apply(re,he(F.warnings||[]))}),[D,re]},[L,Y.errors,Y.warnings]),le=en();function Z(D,re,F){return o&&!x?c(Mt,{prefixCls:v,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:Y,errors:_,warnings:j,noStyle:!0,name:t},D):c(mo,{key:"row",...e,className:P(n,z,w,S),prefixCls:v,fieldId:re,isRequired:F,errors:_,warnings:j,meta:Y,onSubItemMetaChange:B,layout:p,name:t},D)}if(!h&&!f&&!a)return Z(d);let J={};return typeof y=="string"?J.label=y:t&&(J.label=String(t)),R&&(J={...J,...R}),c(ar,{...e,messageVariables:J,trigger:C,validateTrigger:N,onMetaChange:X},(D,re,F)=>{let H=Xe(t).length&&re?re.name:[],Q=zt(H,$),pe=u!==void 0?u:l?.some(ne=>{if(ce(ne)&&ne.required&&!ne.warningOnly)return!0;if(Ee(ne)){let ye=ne(F);return ye?.required&&!ye?.warningOnly}return!1}),xe={...D},fe=null;if(Array.isArray(d)&&h)fe=d;else if(!(f&&(!(i||a)||h))){if(!(a&&!f&&!h))if(bt(d)){let ne={...d.props,...xe};if(ne.id||(ne.id=Q),I||_.length>0||j.length>0||e.extra){let Re=[];(I||_.length>0)&&Re.push(`${Q}_help`),e.extra&&Re.push(`${Q}_extra`),ne["aria-describedby"]=Re.join(" ")}_.length>0&&(ne["aria-invalid"]="true"),pe&&(ne["aria-required"]="true"),_o(d)&&(ne.ref=le(H,d)),new Set([].concat(he(Xe(C)),he(Xe(N)))).forEach(Re=>{ne[Re]=(...ge)=>{xe[Re]?.(...ge),d.props[Re]?.(...ge)}});let _e=[ne["aria-required"],ne["aria-invalid"],ne["aria-describedby"]];fe=c(Ys,{control:xe,update:d,childProps:_e},ut(d,ne))}else f&&(i||a)&&!h?fe=d(F):fe=d}return Z(fe,Q,pe)})}var dn=Js;dn.useStatus=Zr;var pn=dn;var Qs=({prefixCls:e,children:t,...o})=>{let{getPrefixCls:n}=T(we),a=n("form",e),s=W(()=>({prefixCls:a,status:"error"}),[a]);return c(Wt,{...o},(i,l,m)=>c(rt.Provider,{value:s},t(i.map(u=>({...u,fieldKey:u.key})),l,{errors:m.errors,warnings:m.warnings})))},fn=Qs;function uo(){let{form:e}=T(de);return e}var We=Yr;We.Item=pn;We.List=fn;We.ErrorList=_t;We.useForm=gt;We.useFormInstance=uo;We.useWatch=qt;We.Provider=vt;var gn=We;var Zs=e=>{let{getPrefixCls:t,direction:o}=T(we),{prefixCls:n,className:a}=e,s=t("input-group",n),i=t("input"),[l,m]=xr(i),u=P(s,m,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:o==="rtl"},l,a),y=T(Ie),R=W(()=>({...y,isFormItemInput:!1}),[y]);return c(Ie.Provider,{value:R},c(gr.Compact,{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},hn=Zs;var ea=e=>{let{componentCls:t,paddingXS:o}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:o,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText,"&::selection":{color:"transparent"}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},xn=De(["Input","OTP"],e=>{let t=Ve(e,Nt(e));return ea(t)},$t);var ta="\u2022",oa=ae((e,t)=>{let{className:o,value:n,onChange:a,onActiveChange:s,index:i,mask:l,onFocus:m,type:u,...y}=e,{getPrefixCls:R}=T(we),C=R("otp"),A=typeof l=="string"?l:ta,x=K(null);Qe(t,()=>x.current);let I=d=>{a(i,d.target.value)},p=()=>{mt(()=>{let d=x.current?.input;document.activeElement===d&&d&&d.select()})},b=d=>{m?.(d),p()},$=d=>{let{key:f,ctrlKey:E,metaKey:g}=d;f==="ArrowLeft"?s(i-1):f==="ArrowRight"?s(i+1):f==="z"&&(E||g)?d.preventDefault():f==="Backspace"&&!n&&s(i-1),p()};return c("span",{className:`${C}-input-wrapper`,role:"presentation"},l&&n!==""&&n!==void 0&&c("span",{className:`${C}-mask-icon`,"aria-hidden":"true"},A),c(Be,{"aria-label":`OTP Input ${i+1}`,...y,type:u??(l?"password":"text"),ref:x,value:n,onInput:I,onFocus:b,onKeyDown:$,onMouseDown:p,onMouseUp:p,className:P(o,{[`${C}-mask-input`]:l})}))}),bn=oa;function Vt(e){return(e||"").split("")}var ra=e=>{let{index:t,prefixCls:o,separator:n,className:a,style:s}=e,i=Ee(n)?n(t):n;return i?c("span",{className:P(`${o}-separator`,a),style:s},i):null},na=ae((e,t)=>{let{prefixCls:o,length:n=6,size:a,defaultValue:s,value:i,onChange:l,formatter:m,separator:u,variant:y,disabled:R,status:C,autoFocus:A,mask:x,type:I,autoComplete:p,onInput:b,onFocus:$,inputMode:d,classNames:f,styles:E,className:g,style:N,...h}=e,{classNames:v,styles:w,getPrefixCls:S,direction:z,style:U,className:M}=Te("otp"),V=S("otp",o),[L]=qe("otp",y,void 0,"input"),O={...e,length:n,variant:L},Y=be(U),q=be(N),[X,B]=ze([v,f],[w,Y,E,q],{props:O}),_=yt(h,{aria:!0,data:!0,attr:!0}),[j,le]=xn(V),Z=He(k=>a??k),J=T(Ie),D=fr(J.status,C),re=W(()=>({...J,status:D,hasFeedback:!1,feedbackIcon:null}),[J,D]),F=K(null),H=K({});Qe(t,()=>({focus:()=>{H.current[0]?.focus()},blur:()=>{for(let k=0;k<n;k+=1)H.current[k]?.blur()},nativeElement:F.current}));let Q=k=>m?m(k):k,[pe,xe]=te(()=>Vt(Q(s||"")));ve(()=>{i!==void 0&&xe(Vt(i))},[i]);let fe=Dt(k=>{xe(k),b&&b(k),l&&k.length===n&&k.every(ee=>ee)&&k.some((ee,G)=>pe[G]!==ee)&&l(k.join(""))}),ne=Dt((k,ee)=>{let G=he(pe);for(let me=0;me<k;me+=1)G[me]||(G[me]="");ee.length<=1?G[k]=ee:G=G.slice(0,k).concat(Vt(ee)),G=G.slice(0,n);for(let me=G.length-1;me>=0&&!G[me];me-=1)G.pop();let Ne=Q(G.map(me=>me||" ").join(""));return G=Vt(Ne).map((me,Se)=>me===" "&&!G[Se]?G[Se]:me),G}),ye=(k,ee)=>{let G=ne(k,ee),Ne=Math.min(k+ee.length,n-1);Ne!==k&&G[k]!==void 0&&H.current[Ne]?.focus(),fe(G)},_e=k=>{H.current[k]?.focus()},Re=(k,ee)=>{for(let G=0;G<ee;G+=1)if(!H.current[G]?.input?.value){H.current[G]?.focus();break}$?.(k)},ge={variant:L,disabled:R,status:D,mask:x,type:I,inputMode:d,autoComplete:p};return c("div",{..._,ref:F,className:P(g,V,{[`${V}-sm`]:Z==="small",[`${V}-lg`]:Z==="large",[`${V}-rtl`]:z==="rtl"},le,j,M,X.root),style:B.root,role:"group"},c(Ie.Provider,{value:re},Array.from({length:n}).map((k,ee)=>{let G=`otp-${ee}`,Ne=pe[ee]||"";return c($e,{key:G},c(bn,{ref:me=>{H.current[ee]=me},index:ee,size:Z,htmlSize:1,className:P(X.input,`${V}-input`),style:B.input,onChange:ye,value:Ne,onActiveChange:_e,autoFocus:ee===0&&A,onFocus:me=>Re(me,ee),...ge}),ee<n-1&&c(ra,{separator:u,index:ee,prefixCls:V,className:P(X.separator),style:B.separator}))})))}),yn=na;var Sn=xt(Rn());function fo(){return fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},fo.apply(this,arguments)}var aa=(e,t)=>c(je,fo({},e,{ref:t,icon:Sn.default})),ia=ae(aa),En=ia;var Cn=xt(vn());function ho(){return ho=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},ho.apply(this,arguments)}var ca=(e,t)=>c(je,ho({},e,{ref:t,icon:Cn.default})),ma=ae(ca),wn=ma;var ua=e=>e?c(wn,null):c(En,null),da={click:"onClick",hover:"onMouseOver"},pa=ae((e,t)=>{let{disabled:o,action:n="click",visibilityToggle:a=!0,iconRender:s,prefixCls:i,inputPrefixCls:l,suffix:m,className:u,style:y,classNames:R,styles:C,variant:A,...x}=e,{getPrefixCls:I,className:p,style:b,classNames:$,styles:d,iconRender:f}=Te("inputPassword"),[E]=qe("inputPassword",A,e.bordered,"input"),[g]=St("global"),N=T(tt),h=o??N,v={...e,disabled:h,variant:E},w=be(b),S=be(y),[z,U]=ze([$,R],[d,w,C,S],{props:v}),M=ce(a)&&a.visible!==void 0,[V,L]=te(()=>M?a.visible:!1),O=K(null);ve(()=>{M&&L(a.visible)},[M,a]);let Y=hr(O),q=()=>{if(h)return;V&&Y();let J=!V;L(J),ce(a)&&a.onVisibleChange?.(J)},X=J=>{let D=da[n]||"",F=(s||f||ua)(V),H=ce(a)?a.tabIndex:void 0;return c("span",{key:"passwordIcon",role:"button",tabIndex:h?-1:H??0,className:`${J}-icon`,"aria-disabled":h,"aria-pressed":V,"aria-label":V?g.hide:g.show,onMouseDown:Q=>{Q.preventDefault()},onMouseUp:Q=>{Q.preventDefault()},onKeyDown:Q=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),q())},[D]:q},F)},B=I("input",l),_=I("input-password",i),j=a&&X(_),le=P(_,p,u,{[`${_}-${e.size}`]:!!e.size}),Z={...x,type:V?"text":"password",prefixCls:B,suffix:c($e,null,j,m),disabled:h,className:le,classNames:z,styles:U,variant:E};return c(Be,{ref:Pe(t,O),...Z})}),In=pa;var $n=xt(Nn());function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},bo.apply(this,arguments)}var ga=(e,t)=>c(je,bo({},e,{ref:t,icon:$n.default})),ha=ae(ga),On=ha;var xa=e=>{let{componentCls:t,antCls:o,calc:n,max:a}=e,s=`${t}-btn`,[i,l]=Le(o,"input-search"),m=e.inputFontSizeSM??e.fontSize,u=a(e.controlHeightSM,n(m).mul(e.lineHeight).add(n(e.paddingBlockSM).mul(2)).add(n(e.lineWidth).mul(2)).equal());return{[t]:{[i("btn-height")]:ue(e.controlHeight),width:"100%",[s]:{height:l("btn-height"),"&:focus-visible":{zIndex:5},[`&${o}-btn-icon-only`]:{width:l("btn-height")},"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}},[`&${t}-large`]:{[i("btn-height")]:ue(e.controlHeightLG)},[`&${t}-small`]:{[i("btn-height")]:ue(e.controlHeightSM)},[`&${t}-small ${s}`]:{minHeight:u,[`&${e.antCls}-btn-icon-only`]:{minWidth:u}}}}},An=De(["Input","Search"],e=>{let t=Ve(e,Nt(e));return xa(t)},$t);var ba=ae((e,t)=>{let{prefixCls:o,inputPrefixCls:n,className:a,size:s,style:i,enterButton:l=!1,searchIcon:m,addonAfter:u,loading:y,disabled:R,onSearch:C,onChange:A,onCompositionStart:x,onCompositionEnd:I,variant:p,onPressEnter:b,classNames:$,styles:d,hidden:f,...E}=e,{direction:g,getPrefixCls:N,className:h,style:v,classNames:w,styles:S,searchIcon:z}=Te("inputSearch"),U=T(tt),M=R??U,[V,,L]=qe("inputSearch",p,e.bordered),O=L?V:void 0,[Y]=qe("inputSearch",p,e.bordered,"input"),q={...e,enterButton:l,variant:O},X=be(v),B=be(i),[_,j]=ze([w,$],[S,X,d,B],{props:q},{button:{_default:"root"}}),le=K(!1),Z=N("input-search",o),J=N("input",n),[D,re]=An(Z),{compactSize:F}=er(Z,g),H=He(se=>s??F??se),Q=K(null),pe=se=>{se?.target&&se.type==="click"&&C&&C(se.target.value,se,{source:"clear"}),A?.(se)},xe=se=>{document.activeElement===Q.current?.input&&se.preventDefault()},fe=se=>{C&&C(Q.current?.input?.value,se,{source:"input"})},ne=se=>{le.current||y||(b?.(se),fe(se))},ye=typeof l=="boolean"?Qo(m,z,c(On,null)):null,_e=`${Z}-btn`,Re=P(_e,{[`${_e}-${O}`]:O}),ge,k=l||{},ee=k.type&&k.type.__ANT_BUTTON===!0;if(ee||k.type==="button"){let se=k.props;ge=ut(k,{disabled:M||se.disabled||!ee&&y,onMouseDown:xe,onClick:vo=>{k?.props?.onClick?.(vo),fe(vo)},key:"enterButton",...ee?{className:P(Re,se.className),loading:y||se.loading,size:H}:{}})}else ge=c(rr,{classNames:_.button,styles:j.button,className:Re,color:l?"primary":"default",size:H,disabled:R,key:"enterButton",onMouseDown:xe,onClick:fe,loading:y,icon:ye,variant:O==="borderless"||O==="filled"||O==="underlined"?"text":l?"solid":void 0},l);u&&(ge=[ge,ut(u,{key:"addonAfter"})]);let G=P(Z,re,{[`${Z}-rtl`]:g==="rtl",[`${Z}-${H}`]:!!H,[`${Z}-with-button`]:!!l},a,h,D,_.root),Ne=se=>{le.current=!0,x?.(se)},me=se=>{le.current=!1,I?.(se)},Se=yt(E,{data:!0}),Je=Me({...E,classNames:Me(_,["button","root"]),styles:Me(j,["button","root"]),prefixCls:J,type:"search",size:H,variant:Y,onPressEnter:ne,onCompositionStart:Ne,onCompositionEnd:me,onChange:pe,disabled:R},Object.keys(Se));return c(tr,{className:G,style:j.root,...Se,hidden:f},c(Be,{ref:Pe(Q,t),...Je}),ge)}),_n=ba;var lt=Be;lt.Group=hn;lt.Search=_n;lt.TextArea=br;lt.Password=In;lt.OTP=yn;var Pn=lt;var Tn=(e,t)=>{if(!e)return null;let o={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:o.top,bottom:o.bottom,height:o.height}:{left:o.left,right:o.right,width:o.width,top:0,bottom:0,height:0}},ke=e=>e!==void 0?`${e}px`:void 0;function yo(e){let{prefixCls:t,containerRef:o,value:n,getValueIndex:a,motionName:s,onMotionStart:i,onMotionEnd:l,direction:m,vertical:u=!1}=e,y=K(null),[R,C]=te(n),A=N=>{let h=a(N),v=o.current?.querySelectorAll(`.${t}-item`)[h];return v?.offsetParent&&v},[x,I]=te(null),[p,b]=te(null);Ze(()=>{if(R!==n){let N=A(R),h=A(n),v=Tn(N,u),w=Tn(h,u);C(n),I(v),b(w),N&&h?i():l()}},[n]);let $=W(()=>ke(u?x?.top??0:m==="rtl"?-x?.right:x?.left),[u,m,x]),d=W(()=>ke(u?p?.top??0:m==="rtl"?-p?.right:p?.left),[u,m,p]),f=()=>u?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},E=()=>u?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},g=()=>{I(null),b(null),l()};return!x||!p?null:c(Rt,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:f,onAppearActive:E,onVisibleChanged:g},({className:N,style:h},v)=>{let w={...h,"--thumb-start-left":$,"--thumb-start-width":ke(x?.width),"--thumb-active-left":d,"--thumb-active-width":ke(p?.width),"--thumb-start-top":$,"--thumb-start-height":ke(x?.height),"--thumb-active-top":d,"--thumb-active-height":ke(p?.height)},S={ref:Pe(y,v),style:w,className:P(`${t}-thumb`,N)};return c("div",S)})}function ya(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function Ra(e){return e.map(t=>{if(typeof t=="object"&&t!==null){let o=ya(t);return{...t,title:o}}return{label:t?.toString(),title:t?.toString(),value:t}})}var Sa=({prefixCls:e,className:t,style:o,styles:n,classNames:a,data:s,disabled:i,checked:l,label:m,title:u,value:y,name:R,onChange:C,onFocus:A,onBlur:x,onKeyDown:I,onKeyUp:p,onMouseDown:b,itemRender:$=d=>d})=>{let d=E=>{i||C(E,y)},f=c("label",{className:P(t,{[`${e}-item-disabled`]:i}),style:o,onMouseDown:b},c("input",{name:R,className:`${e}-item-input`,type:"radio",disabled:i,checked:l,onChange:d,onFocus:A,onBlur:x,onKeyDown:I,onKeyUp:p}),c("div",{className:P(`${e}-item-label`,a?.label),title:u,style:n?.label},m));return $(f,{item:s})},Ea=ae((e,t)=>{let{prefixCls:o="rc-segmented",direction:n,vertical:a,options:s=[],disabled:i,defaultValue:l,value:m,name:u,onChange:y,className:R="",style:C,styles:A,classNames:x,motionName:I="thumb-motion",itemRender:p,...b}=e,$=K(null),d=W(()=>Pe($,t),[$,t]),f=W(()=>Ra(s),[s]),[E,g]=$o(l??f[0]?.value,m),[N,h]=te(!1),v=(_,j)=>{g(j),y?.(j)},w=Me(b,["children"]),[S,z]=te(!1),[U,M]=te(!1),V=()=>{M(!0)},L=()=>{M(!1)},O=()=>{z(!1)},Y=_=>{_.key==="Tab"&&z(!0)},q=_=>{let j=f.findIndex(D=>D.value===E),le=f.length,Z=(j+_+le)%le,J=f[Z];J&&(g(J.value),y?.(J.value))},X=_=>{switch(_.key){case"ArrowLeft":case"ArrowUp":q(-1);break;case"ArrowRight":case"ArrowDown":q(1);break}},B=_=>{let{value:j,disabled:le}=_;return c(Sa,ft({},_,{name:u,data:_,itemRender:p,key:j,prefixCls:o,className:P(_.className,`${o}-item`,x?.item,{[`${o}-item-selected`]:j===E&&!N,[`${o}-item-focused`]:U&&S&&j===E}),style:A?.item,classNames:x,styles:A,checked:j===E,onChange:v,onFocus:V,onBlur:L,onKeyDown:X,onKeyUp:Y,onMouseDown:O,disabled:!!i||!!le}))};return c("div",ft({role:"radiogroup","aria-label":"segmented control",tabIndex:i?void 0:0,"aria-orientation":a?"vertical":"horizontal",style:C},w,{className:P(o,{[`${o}-rtl`]:n==="rtl",[`${o}-disabled`]:i,[`${o}-vertical`]:a},R),ref:d}),c("div",{className:`${o}-group`},c(yo,{vertical:a,prefixCls:o,value:E,containerRef:$,motionName:`${o}-${I}`,direction:n,getValueIndex:_=>f.findIndex(j=>j.value===_),onMotionStart:()=>{h(!0)},onMotionEnd:()=>{h(!1)}}),f.map(B)))}),va=Ea,zn=va;function Fn(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}var kn=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),Ca={overflow:"hidden",...Bo},wa=e=>{let{componentCls:t,motionDurationSlow:o,motionEaseInOut:n,motionDurationMid:a}=e,s=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),i=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]:{...dt(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${a}`,...qo(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 ${ue(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${a}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...kn(e),color:e.itemSelectedColor},"&-focused":Wo(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(m=>`${m} ${a}`).join(", ")},[`&:not(${t}-item-selected):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:ue(s),padding:`0 ${ue(e.segmentedPaddingHorizontal)}`,...Ca},"&-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`]:{...kn(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${ue(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:i,lineHeight:ue(i),padding:`0 ${ue(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:l,lineHeight:ue(l),padding:`0 ${ue(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...Fn(`&-disabled ${t}-item`,e),...Fn(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:"transform, width",transition:["transform","width"].map(m=>`${m} ${o} ${n}`).join(", ")},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},Ia=e=>{let{colorTextLabel:t,colorText:o,colorFillSecondary:n,colorBgElevated:a,colorFill:s,lineWidthBold:i,colorBgLayout:l}=e;return{trackPadding:i,trackBg:l,itemColor:t,itemHoverColor:o,itemHoverBg:n,itemSelectedBg:a,itemActiveBg:s,itemSelectedColor:o}},Un=De("Segmented",e=>{let{lineWidth:t,calc:o}=e,n=Ve(e,{segmentedPaddingHorizontal:o(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:o(e.controlPaddingHorizontalSM).sub(t).equal()});return wa(n)},Ia);function Na(e){return ce(e)&&!!e?.icon}var $a=ae((e,t)=>{let o=Ao(),{prefixCls:n,className:a,rootClassName:s,block:i,options:l=[],size:m,style:u,vertical:y,orientation:R,shape:C="default",name:A=o,styles:x,classNames:I,...p}=e,{getPrefixCls:b,direction:$,className:d,style:f,classNames:E,styles:g}=Te("segmented"),N={...e,options:l,size:m,shape:C},h=be(f),v=be(u),[w,S]=ze([E,I],[g,h,x,v],{props:N}),z=b("segmented",n),[U,M]=Un(z),V=He(m),L=W(()=>l.map(X=>{if(Na(X)){let{icon:B,label:_,...j}=X;return{...j,label:c($e,null,c("span",{className:P(`${z}-item-icon`,w.icon),style:S.icon},B),_&&c("span",null,_))}}return X}),[l,z,w.icon,S.icon]),[,O]=Zo(R,y),Y=P(a,s,d,w.root,{[`${z}-block`]:i,[`${z}-sm`]:V==="small",[`${z}-lg`]:V==="large",[`${z}-vertical`]:O,[`${z}-shape-${C}`]:C==="round"},U,M),q=(X,{item:B})=>{if(!B.tooltip)return X;let _=ce(B.tooltip)?B.tooltip:{title:B.tooltip};return c(It,{..._},X)};return c(zn,{...p,name:A,className:Y,style:S.root,classNames:w,styles:S,itemRender:q,options:L,ref:t,prefixCls:z,direction:$,vertical:O})}),Oa=$a,Mn=Oa;var Vn="password",Ro="auth.password",Aa="/login",_a="/register",Pa="/recovery",So=`/${Ro}${Aa}`,Dn=`/${Ro}${_a}`,Ln=`/${Ro}${Pa}`;function jn(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("\u8BA4\u8BC1\u54CD\u5E94\u65E0\u6548");let t=e;if(t.status==="verified")return{status:"verified"};throw t.status==="denied"?new Error("\u8BA4\u8BC1\u4FE1\u606F\u65E0\u6548\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u8BD5"):t.status==="pending"?new Error("\u8BA4\u8BC1\u4ECD\u5728\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5"):new Error("\u8BA4\u8BC1\u54CD\u5E94\u65E0\u6548")}function Hn(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("\u9A8C\u8BC1\u7801\u54CD\u5E94\u65E0\u6548");let t=e;if(t.status!=="pending"||!Number.isSafeInteger(t.retryAfterMs)||t.retryAfterMs<=0||t.retryAfterMs>6e4)throw new Error("\u9A8C\u8BC1\u7801\u54CD\u5E94\u65E0\u6548");return{retryAfterMs:t.retryAfterMs}}var Ye=Ct(gn),Eo=Ct(Pn),Ta=Ct(Mn);function za(e){let[t]=Ye.useForm(),{message:o}=yr(),n=Er(),a=Io(),[s,i]=te(e.transactionId),[l,m]=te("password"),[u,y]=te(!1),[R,C]=te(0),[A,x]=te(!1),[I,p]=te(!1),b=K(void 0),$=e.intent!=="login"||l==="code",d=e.intent!=="login"||l==="password";ve(()=>{if(R<=0)return;let h=window.setInterval(()=>C(v=>Math.max(0,v-1)),1e3);return()=>window.clearInterval(h)},[R]);async function f(){if(s)return s;let h=await ka(n,e.intent);return i(h),h}async function E(){try{let{email:h}=await t.validateFields(["email"]);p(!0);let v=await f(),w=b.current?.email===h?b.current.requestId:crypto.randomUUID();b.current={email:h,requestId:w};let S=await n(to(v),{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({input:{action:"send-code",email:h,requestId:w}})},{errorMessage:"\u9A8C\u8BC1\u7801\u53D1\u9001\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",parse:Hn});y(!0),C(Math.ceil(S.retryAfterMs/1e3)),b.current=void 0,o.success("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001")}catch{}finally{p(!1)}}async function g(h){x(!0);try{let v=await f(),w=$?{action:"verify-code",email:h.email,code:h.code,...d?{password:h.password}:{}}:{action:"password-login",email:h.email,password:h.password};if(await n(to(v),{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({input:w})},{errorMessage:"\u6CA1\u6709\u5B8C\u6210\uFF0C\u8BF7\u68C0\u67E5\u8F93\u5165\u540E\u91CD\u8BD5",parse:jn}),e.intent==="registration"){a.replace(Ur);return}a.replace("/")}catch{}finally{x(!1)}}let N=La(e.intent);return Ce("section",{"aria-labelledby":"password-auth-title",className:"zlooks-password-form-auth-shell","data-auth-method":"password","data-flat-auth-layout":!0,children:[Ce("div",{className:"zlooks-password-form-introduction",children:[ie("p",{className:"zlooks-password-form-eyebrow",children:N.step}),ie("h1",{className:"zlooks-password-form-introduction-title",id:"password-auth-title",children:N.title}),ie("p",{className:"zlooks-password-form-introduction-copy",children:N.introduction}),ie(Fa,{intent:e.intent})]}),Ce("div",{className:"zlooks-password-form-form-region",children:[ie("div",{className:"zlooks-password-form-form-body",children:Ce(Ye,{form:t,layout:"vertical",requiredMark:!1,scrollToFirstError:{focus:!0},validateTrigger:"onBlur",onFinish:g,children:[e.intent==="login"?ie(Ye.Item,{children:ie(Ta,{"aria-label":"\u9009\u62E9\u767B\u5F55\u65B9\u5F0F",block:!0,options:[{label:"\u5BC6\u7801\u767B\u5F55",value:"password"},{label:"\u9A8C\u8BC1\u7801\u767B\u5F55",value:"code"}],size:"large",value:l,onChange:h=>{m(h),y(!1),C(0),i(e.transactionId),b.current=void 0,t.resetFields(["code"])}})}):null,ie(Ye.Item,{label:"\u90AE\u7BB1",name:"email",rules:Ma,children:ie(Eo,{autoComplete:"username",disabled:u,inputMode:"email",maxLength:320,placeholder:"name@example.com",size:"large",type:"email"})}),u?ie(Ot,{className:"zlooks-password-form-change-email",disabled:I||A,type:"link",onClick:()=>{y(!1),C(0),i(void 0),b.current=void 0,t.resetFields(["code"]),window.requestAnimationFrame(()=>t.focusField("email"))},children:"\u4FEE\u6539\u90AE\u7BB1"}):null,$?ie(Ye.Item,{label:"\u9A8C\u8BC1\u7801",required:!0,children:Ce("div",{className:"zlooks-password-form-code-row",children:[ie(Ye.Item,{noStyle:!0,name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},{len:6,message:"\u9A8C\u8BC1\u7801\u5E94\u4E3A 6 \u4F4D\u6570\u5B57"},{pattern:/^\d{6}$/,message:"\u9A8C\u8BC1\u7801\u5E94\u4E3A 6 \u4F4D\u6570\u5B57"}],children:ie(Eo,{"aria-label":"\u9A8C\u8BC1\u7801",autoComplete:"one-time-code",inputMode:"numeric",maxLength:6,placeholder:"6 \u4F4D\u9A8C\u8BC1\u7801",size:"large"})}),ie(Ot,{disabled:R>0||A,loading:I,onClick:E,size:"large",children:R>0?`${R} \u79D2\u540E\u91CD\u53D1`:u?"\u91CD\u65B0\u53D1\u9001":"\u53D1\u9001\u9A8C\u8BC1\u7801"})]})}):null,d?ie(Ye.Item,{extra:e.intent!=="login"?"\u81F3\u5C11 12 \u4E2A\u5B57\u7B26\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5BC6\u7801\u7BA1\u7406\u5668\u751F\u6210\u5E76\u4FDD\u5B58\u3002":void 0,label:e.intent==="recovery"?"\u65B0\u5BC6\u7801":"\u5BC6\u7801",name:"password",rules:Va(e.intent!=="login"),children:ie(Eo.Password,{autoComplete:e.intent==="login"?"current-password":"new-password",maxLength:128,placeholder:e.intent==="login"?"\u8F93\u5165\u5BC6\u7801":"\u521B\u5EFA\u4E00\u4E2A\u5B89\u5168\u5BC6\u7801",size:"large"})}):null,ie(Ot,{block:!0,htmlType:"submit",loading:A,size:"large",type:"primary",disabled:I||$&&!u,children:N.submit})]})}),Ce("aside",{className:"zlooks-password-form-form-note",children:[ie("p",{children:N.description}),ie("span",{children:"\u4F60\u7684\u767B\u5F55\u4FE1\u606F\u53EA\u7528\u4E8E\u8BC6\u522B\u8D26\u6237\u3002"})]})]})]})}function Fa({intent:e}){return e==="registration"?Ce("p",{className:"zlooks-password-form-alternate",children:["\u5DF2\u7ECF\u6709\u8D26\u53F7\uFF1F",ie(ct,{href:So,children:"\u8FD4\u56DE\u767B\u5F55"})]}):e==="recovery"?Ce("p",{className:"zlooks-password-form-alternate",children:["\u60F3\u8D77\u5BC6\u7801\u4E86\uFF1F",ie(ct,{href:So,children:"\u8FD4\u56DE\u767B\u5F55"})]}):Ce("div",{className:"zlooks-password-form-alternate-links",children:[Ce("p",{children:[ie("span",{children:"\u8FD8\u6CA1\u6709\u8D26\u6237\uFF1F"}),ie(ct,{href:Dn,children:"\u521B\u5EFA\u8D26\u6237"})]}),Ce("p",{children:[ie("span",{children:"\u5FD8\u8BB0\u5BC6\u7801\uFF1F"}),ie(ct,{href:Ln,children:"\u627E\u56DE\u5BC6\u7801"})]})]})}async function ka(e,t){return e(eo,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({methodId:Vn,intent:t})},{errorMessage:"\u6682\u65F6\u65E0\u6CD5\u7EE7\u7EED\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",parse:Ua})}function Ua(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("Invalid transaction response");let t=e.transactionId;if(typeof t!="string"||!Da.test(t))throw new Error("Invalid transaction response");return t}var Ma=[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",whitespace:!0},{type:"email",message:"\u8BF7\u8F93\u5165\u6709\u6548\u7684\u90AE\u7BB1\u5730\u5740"},{max:320,message:"\u90AE\u7BB1\u5730\u5740\u4E0D\u80FD\u8D85\u8FC7 320 \u4E2A\u5B57\u7B26"}];function Va(e){return[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801"},...e?[{validator:async(t,o)=>{if(o){if(Array.from(o).length<12)throw new Error("\u5BC6\u7801\u81F3\u5C11\u9700\u8981 12 \u4E2A\u5B57\u7B26");if(new TextEncoder().encode(o).byteLength>128)throw new Error("\u5BC6\u7801\u8FC7\u957F\uFF0C\u8BF7\u7F29\u77ED\u540E\u91CD\u8BD5")}}}]:[{max:128,message:"\u5BC6\u7801\u4E0D\u80FD\u8D85\u8FC7 128 \u4E2A\u5B57\u7B26"}]]}var Da=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function La(e){return e==="registration"?{introduction:"\u9A8C\u8BC1\u90AE\u7BB1\u5E76\u521B\u5EFA\u8D26\u53F7\u540E\uFF0C\u53EF\u4EE5\u7EE7\u7EED\u5B8C\u5584\u8D44\u6599\uFF0C\u6574\u7406\u5C5E\u4E8E\u4F60\u7684\u8BB0\u5F55\u3002",step:"ACCOUNT / REGISTER",title:"\u521B\u5EFA\u8D26\u6237",description:"\u4F7F\u7528\u90AE\u7BB1\u9A8C\u8BC1\u7801\u548C\u5BC6\u7801\u521B\u5EFA\u8D26\u53F7\u3002",submit:"\u521B\u5EFA\u8D26\u53F7"}:e==="recovery"?{introduction:"\u9A8C\u8BC1\u6CE8\u518C\u90AE\u7BB1\u540E\u8BBE\u7F6E\u65B0\u5BC6\u7801\uFF0C\u65E7\u8BBE\u5907\u4E0A\u7684\u767B\u5F55\u4F1A\u81EA\u52A8\u9000\u51FA\u3002",step:"ACCOUNT / RECOVERY",title:"\u627E\u56DE\u5BC6\u7801",description:"\u9A8C\u8BC1\u7801\u53EA\u4F1A\u53D1\u9001\u5230\u5DF2\u7ECF\u6CE8\u518C\u7684\u90AE\u7BB1\u3002",submit:"\u66F4\u65B0\u5BC6\u7801\u5E76\u767B\u5F55"}:{introduction:"\u767B\u5F55\u540E\u53EF\u4EE5\u7BA1\u7406\u4E2A\u4EBA\u8D44\u6599\u4E0E\u767B\u5F55\u4F1A\u8BDD\u3002",step:"ACCOUNT / SIGN IN",title:"\u767B\u5F55\u8D26\u6237",description:"\u4F7F\u7528\u5BC6\u7801\u6216\u90AE\u7BB1\u9A8C\u8BC1\u7801\u767B\u5F55\u4F60\u7684\u8D26\u6237\u3002",submit:"\u767B\u5F55"}}export{za as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.zlooks-password-form-auth-shell{align-items:start;display:grid;gap:0;grid-template-columns:300px minmax(0,1fr);max-width:1040px;min-width:0;width:100%}.zlooks-password-form-introduction{min-width:0;padding:8px 56px 0 0}.zlooks-password-form-eyebrow{color:var(--ant-color-text-tertiary, #8b9099);font-size:11px;font-weight:650;letter-spacing:.18em;margin:0 0 14px}.zlooks-password-form-introduction-title{font-size:clamp(32px,3.2vw,42px);letter-spacing:-.04em;line-height:1.12;margin:0}.zlooks-password-form-introduction-copy{color:var(--ant-color-text-secondary, #6f7480);font-size:14px;line-height:1.75;margin:18px 0 0;max-width:22em}.zlooks-password-form-form-region{border-left:1px solid var(--ant-color-border-secondary, #e8eaee);display:grid;gap:52px;grid-template-columns:minmax(360px,500px) minmax(120px,1fr);min-height:344px;padding:32px 0 0 64px}.zlooks-password-form-form-body{min-width:0}.zlooks-password-form-form-body .ant-form-item{margin-bottom:22px}.zlooks-password-form-form-body .ant-form,.zlooks-password-form-form-body .ant-form-item-control-input-content{min-width:0}.zlooks-password-form-form-body .ant-form-item-label>label{color:var(--ant-color-text, #171a21);font-size:13px;font-weight:650}.zlooks-password-form-form-body .ant-input,.zlooks-password-form-form-body .ant-input-affix-wrapper,.zlooks-password-form-form-body .ant-btn{min-height:44px}.zlooks-password-form-form-body .ant-input,.zlooks-password-form-form-body .ant-input-affix-wrapper{background:var(--ant-color-bg-container, #fff);border-color:var(--ant-color-border, #d9dce2);border-radius:8px;width:100%}.zlooks-password-form-form-body .ant-btn-primary{font-weight:650;min-height:48px}.zlooks-password-form-form-body .ant-segmented{background:var(--ant-color-fill-tertiary, #f1f2f4);margin-bottom:8px}.zlooks-password-form-form-note{color:var(--ant-color-text-tertiary, #8b9099);font-size:11px;line-height:1.8;padding-top:70px}.zlooks-password-form-form-note p,.zlooks-password-form-form-note span{display:block;margin:0}.zlooks-password-form-code-row{align-items:start;display:grid;gap:10px;grid-template-columns:minmax(0,1fr) auto}.zlooks-password-form-code-row>button{min-width:128px}.zlooks-password-form-change-email{margin-block:-18px 10px;padding-inline:0}.zlooks-password-form-alternate,.zlooks-password-form-alternate-links{color:var(--ant-color-text-tertiary, #8b9099);font-size:12px;margin-top:32px}.zlooks-password-form-alternate{line-height:1.8}.zlooks-password-form-alternate a{display:block;margin-top:5px}.zlooks-password-form-alternate-links{display:grid;gap:24px}.zlooks-password-form-alternate-links p,.zlooks-password-form-alternate-links span,.zlooks-password-form-alternate-links a{display:block;margin:0}.zlooks-password-form-alternate-links a,.zlooks-password-form-alternate a{color:var(--ant-color-primary, #2869ed);font-weight:600;text-decoration:none}.zlooks-password-form-alternate-links a{margin-top:5px}.zlooks-password-form-alternate-links a:hover,.zlooks-password-form-alternate a:hover{text-decoration:underline;text-underline-offset:3px}.zlooks-password-form-alternate-links a:focus-visible,.zlooks-password-form-alternate a:focus-visible{border-radius:3px;outline:2px solid var(--ant-color-primary, #2869ed);outline-offset:3px}@media(max-width:980px){.zlooks-password-form-auth-shell{grid-template-columns:260px minmax(0,1fr)}.zlooks-password-form-introduction{padding-right:40px}.zlooks-password-form-form-region{gap:0;grid-template-columns:minmax(0,1fr);padding-left:48px}.zlooks-password-form-form-note{border-top:1px solid var(--ant-color-border-secondary, #e8eaee);margin-top:26px;padding-top:18px}}@media(max-width:680px){.zlooks-password-form-auth-shell{grid-template-columns:1fr}.zlooks-password-form-introduction{padding:0}.zlooks-password-form-introduction-title{font-size:36px}.zlooks-password-form-introduction-copy{margin-top:14px}.zlooks-password-form-alternate-links{gap:14px;margin-top:24px}.zlooks-password-form-form-region{border-left:0;border-top:1px solid var(--ant-color-border-secondary, #e8eaee);margin-top:36px;min-height:0;padding:36px 0 0}}@media(max-width:390px){.zlooks-password-form-code-row{grid-template-columns:1fr}.zlooks-password-form-code-row>button{width:100%}}
|