UNPKG

jobsys-newbie

Version:

Enhanced component based on ant-design-vue

15 lines (14 loc) 39.4 kB
import{A as X,d as C,H as ve,b as yt,f as Le,_ as E,c as R,ao as ze,g as Fe,m as Be,r as De,aq as ht,ar as bt,as as $t,L as pe,u as He,at as xt,au as D,M as Ot,av as Pt,T as ce,aw as Oe,ax as It,ay as St,ad as _t,az as wt,aA as Nt,a4 as Mt,aB as Ge,aC as Tt,aD as Et,aE as kt,aF as jt,aG as At,aH as Rt,a6 as Lt,aI as zt,aJ as Ft}from"./compact-item-45f3d050.js";import{d as p,O as L,aL as U,aH as Bt,bp as q,y as O,az as Ke,aE as Dt,T as Ht,r as We,l as Ue,aO as Pe,a_ as H,bq as ge}from"./app-e5356031.js";import{P as Gt,K as B,a as ee,E as te,g as Kt,C as Ve}from"./ExclamationCircleFilled-71949edd.js";import{C as ne}from"./CloseCircleFilled-7d1a9da0.js";var Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"};const Ut=Wt;function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Vt(e,a,n[a])})}return e}function Vt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=function(t,n){var o=Ie({},t,n.attrs);return p(X,Ie({},o,{icon:Ut}),null)};Ce.displayName="CheckCircleOutlined";Ce.inheritAttrs=!1;const Xt=Ce;var qt={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:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const Yt=qt;function Se(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Jt(e,a,n[a])})}return e}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye=function(t,n){var o=Se({},t,n.attrs);return p(X,Se({},o,{icon:Yt}),null)};ye.displayName="ExclamationCircleOutlined";ye.inheritAttrs=!1;const Qt=ye;var Zt={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:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const en=Zt;function _e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){tn(e,a,n[a])})}return e}function tn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var he=function(t,n){var o=_e({},t,n.attrs);return p(X,_e({},o,{icon:en}),null)};he.displayName="InfoCircleOutlined";he.inheritAttrs=!1;const nn=he;var on={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"};const an=on;function we(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){rn(e,a,n[a])})}return e}function rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=function(t,n){var o=we({},t,n.attrs);return p(X,we({},o,{icon:an}),null)};be.displayName="CloseCircleOutlined";be.inheritAttrs=!1;const ln=be;var cn={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"};const sn=cn;function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){un(e,a,n[a])})}return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $e=function(t,n){var o=Ne({},t,n.attrs);return p(X,Ne({},o,{icon:sn}),null)};$e.displayName="InfoCircleFilled";$e.inheritAttrs=!1;const oe=$e;let Q=C({},ve.Modal);function dn(e){e?Q=C(C({},Q),e):Q=C({},ve.Modal)}function Oo(){return Q}const ue="internalMark",Z=L({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;Le(e.ANT_MARK__===ue);const o=U({antLocale:C(C({},e.locale),{exist:!0}),ANT_MARK__:ue});return Bt("localeData",o),q(()=>e.locale,a=>{dn(a&&a.Modal),o.antLocale=C(C({},a),{exist:!0})},{immediate:!0}),()=>{var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}});Z.install=function(e){return e.component(Z.name,Z),e};const fn=yt(Z),Xe=L({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,a,c=!1;const l=O(()=>e.duration===void 0?4.5:e.duration),v=()=>{l.value&&!c&&(a=setTimeout(()=>{i()},l.value*1e3))},f=()=>{a&&(clearTimeout(a),a=null)},i=u=>{u&&u.stopPropagation(),f();const{onClose:d,noticeKey:g}=e;d&&d(g)},r=()=>{f(),v()};return Ke(()=>{v()}),Dt(()=>{c=!0,f()}),q([l,()=>e.updateMark,()=>e.visible],(u,d)=>{let[g,m,y]=u,[x,h,P]=d;(g!==x||m!==h||y!==P&&P)&&r()},{flush:"post"}),()=>{var u,d;const{prefixCls:g,closable:m,closeIcon:y=(u=o.closeIcon)===null||u===void 0?void 0:u.call(o),onClick:x,holder:h}=e,{class:P,style:w}=n,b=`${g}-notice`,I=Object.keys(n).reduce((_,M)=>((M.startsWith("data-")||M.startsWith("aria-")||M==="role")&&(_[M]=n[M]),_),{}),S=p("div",E({class:R(b,P,{[`${b}-closable`]:m}),style:w,onMouseenter:f,onMouseleave:v,onClick:x},I),[p("div",{class:`${b}-content`},[(d=o.default)===null||d===void 0?void 0:d.call(o)]),m?p("a",{tabindex:0,onClick:i,class:`${b}-close`},[y||p("span",{class:`${b}-close-x`},null)]):null]);return h?p(Ht,{to:h},{default:()=>S}):S}}});var mn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let Me=0;const vn=Date.now();function Te(){const e=Me;return Me+=1,`rcNotification_${vn}_${e}`}const de=L({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(e,t){let{attrs:n,expose:o,slots:a}=t;const c=new Map,l=We([]),v=O(()=>{const{prefixCls:r,animation:u="fade"}=e;let d=e.transitionName;return!d&&u&&(d=`${r}-${u}`),ze(d)}),f=(r,u)=>{const d=r.key||Te(),g=C(C({},r),{key:d}),{maxCount:m}=e,y=l.value.map(h=>h.notice.key).indexOf(d),x=l.value.concat();y!==-1?x.splice(y,1,{notice:g,holderCallback:u}):(m&&l.value.length>=m&&(g.key=x[0].notice.key,g.updateMark=Te(),g.userPassKey=d,x.shift()),x.push({notice:g,holderCallback:u})),l.value=x},i=r=>{l.value=l.value.filter(u=>{let{notice:{key:d,userPassKey:g}}=u;return(g||d)!==r})};return o({add:f,remove:i,notices:l}),()=>{var r;const{prefixCls:u,closeIcon:d=(r=a.closeIcon)===null||r===void 0?void 0:r.call(a,{prefixCls:u})}=e,g=l.value.map((y,x)=>{let{notice:h,holderCallback:P}=y;const w=x===l.value.length-1?h.updateMark:void 0,{key:b,userPassKey:I}=h,{content:S}=h,_=C(C(C({prefixCls:u,closeIcon:typeof d=="function"?d({prefixCls:u}):d},h),h.props),{key:b,noticeKey:I||b,updateMark:w,onClose:M=>{var k;i(M),(k=h.onClose)===null||k===void 0||k.call(h)},onClick:h.onClick});return P?p("div",{key:b,class:`${u}-hook-holder`,ref:M=>{typeof b>"u"||(M?(c.set(b,M),P(M,_)):c.delete(b))}},null):p(Xe,E(E({},_),{},{class:R(_.class,e.hashId)}),{default:()=>[typeof S=="function"?S({prefixCls:u}):S]})}),m={[u]:1,[n.class]:!!n.class,[e.hashId]:!0};return p("div",{class:m,style:n.style||{top:"65px",left:"50%"}},[p(Ue,E({tag:"div"},v.value),{default:()=>[g]})])}}});de.newInstance=function(t,n){const o=t||{},{name:a="notification",getContainer:c,appContext:l,prefixCls:v,rootPrefixCls:f,transitionName:i,hasTransitionName:r,useStyle:u}=o,d=mn(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");c?c().appendChild(g):document.body.appendChild(g);const m=L({compatConfig:{MODE:3},name:"NotificationWrapper",setup(x,h){let{attrs:P}=h;const w=H(),b=O(()=>T.getPrefixCls(a,v)),[,I]=u(b);return Ke(()=>{n({notice(S){var _;(_=w.value)===null||_===void 0||_.add(S)},removeNotice(S){var _;(_=w.value)===null||_===void 0||_.remove(S)},destroy(){Pe(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:w})}),()=>{const S=T,_=S.getRootPrefixCls(f,b.value),M=r?i:`${b.value}-${i}`;return p(yo,E(E({},S),{},{prefixCls:_}),{default:()=>[p(de,E(E({ref:w},P),{},{prefixCls:b.value,transitionName:M,hashId:I.value}),null)]})}}}),y=p(m,d);y.appContext=l||y.appContext,Pe(y,g)};const qe=de;let Ee=0;const pn=Date.now();function ke(){const e=Ee;return Ee+=1,`rcNotification_${pn}_${e}`}const gn=L({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const a=new Map,c=O(()=>e.notices),l=O(()=>{let r=e.transitionName;if(!r&&e.animation)switch(typeof e.animation){case"string":r=e.animation;break;case"function":r=e.animation().name;break;case"object":r=e.animation.name;break;default:r=`${e.prefixCls}-fade`;break}return ze(r)}),v=r=>e.remove(r),f=We({});q(c,()=>{const r={};Object.keys(f.value).forEach(u=>{r[u]=[]}),e.notices.forEach(u=>{const{placement:d="topRight"}=u.notice;d&&(r[d]=r[d]||[],r[d].push(u))}),f.value=r});const i=O(()=>Object.keys(f.value));return()=>{var r;const{prefixCls:u,closeIcon:d=(r=o.closeIcon)===null||r===void 0?void 0:r.call(o,{prefixCls:u})}=e,g=i.value.map(m=>{var y,x;const h=f.value[m],P=(y=e.getClassName)===null||y===void 0?void 0:y.call(e,m),w=(x=e.getStyles)===null||x===void 0?void 0:x.call(e,m),b=h.map((_,M)=>{let{notice:k,holderCallback:Y}=_;const ie=M===c.value.length-1?k.updateMark:void 0,{key:z,userPassKey:re}=k,{content:s}=k,$=C(C(C({prefixCls:u,closeIcon:typeof d=="function"?d({prefixCls:u}):d},k),k.props),{key:z,noticeKey:re||z,updateMark:ie,onClose:N=>{var A;v(N),(A=k.onClose)===null||A===void 0||A.call(k)},onClick:k.onClick});return Y?p("div",{key:z,class:`${u}-hook-holder`,ref:N=>{typeof z>"u"||(N?(a.set(z,N),Y(N,$)):a.delete(z))}},null):p(Xe,E(E({},$),{},{class:R($.class,e.hashId)}),{default:()=>[typeof s=="function"?s({prefixCls:u}):s]})}),I={[u]:1,[`${u}-${m}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[P]:!!P};function S(){var _;h.length>0||(Reflect.deleteProperty(f.value,m),(_=e.onAllRemoved)===null||_===void 0||_.call(e))}return p("div",{key:m,class:I,style:n.style||w||{top:"65px",left:"50%"}},[p(Ue,E(E({tag:"div"},l.value),{},{onAfterLeave:S}),{default:()=>[b]})])});return p(Gt,{getContainer:e.getContainer},{default:()=>[g]})}}}),Cn=gn;var yn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const hn=()=>document.body;let je=0;function bn(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach(a=>{a&&Object.keys(a).forEach(c=>{const l=a[c];l!==void 0&&(e[c]=l)})}),e}function Ye(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=hn,motion:n,prefixCls:o,maxCount:a,getClassName:c,getStyles:l,onAllRemoved:v}=e,f=yn(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),i=H([]),r=H(),u=(h,P)=>{const w=h.key||ke(),b=C(C({},h),{key:w}),I=i.value.map(_=>_.notice.key).indexOf(w),S=i.value.concat();I!==-1?S.splice(I,1,{notice:b,holderCallback:P}):(a&&i.value.length>=a&&(b.key=S[0].notice.key,b.updateMark=ke(),b.userPassKey=w,S.shift()),S.push({notice:b,holderCallback:P})),i.value=S},d=h=>{i.value=i.value.filter(P=>{let{notice:{key:w,userPassKey:b}}=P;return(b||w)!==h})},g=()=>{i.value=[]},m=O(()=>p(Cn,{ref:r,prefixCls:o,maxCount:a,notices:i.value,remove:d,getClassName:c,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:v,getContainer:t},null)),y=H([]),x={open:h=>{const P=bn(f,h);(P.key===null||P.key===void 0)&&(P.key=`vc-notification-${je}`,je+=1),y.value=[...y.value,{type:"open",config:P}]},close:h=>{y.value=[...y.value,{type:"close",key:h}]},destroy:()=>{y.value=[...y.value,{type:"destroy"}]}};return q(y,()=>{y.value.length&&(y.value.forEach(h=>{switch(h.type){case"open":u(h.config);break;case"close":d(h.key);break;case"destroy":g();break}}),y.value=[])}),[x,()=>m.value]}const $n=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:a,colorSuccess:c,colorError:l,colorWarning:v,colorInfo:f,fontSizeLG:i,motionEaseInOutCirc:r,motionDurationSlow:u,marginXS:d,paddingXS:g,borderRadiusLG:m,zIndexPopup:y,messageNoticeContentPadding:x}=e,h=new B("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),P=new B("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:C(C({},De(e)),{position:"fixed",top:d,width:"100%",pointerEvents:"none",zIndex:y,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:h,animationDuration:u,animationPlayState:"paused",animationTimingFunction:r},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:P,animationDuration:u,animationPlayState:"paused",animationTimingFunction:r},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:g,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:i},[`${t}-notice-content`]:{display:"inline-block",padding:x,background:a,borderRadius:m,boxShadow:o,pointerEvents:"all"},[`${t}-success ${n}`]:{color:c},[`${t}-error ${n}`]:{color:l},[`${t}-warning ${n}`]:{color:v},[` ${t}-info ${n}, ${t}-loading ${n}`]:{color:f}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},Je=Fe("Message",e=>{const t=Be(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[$n(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));var xn=["class","component","viewBox","spin","rotate","tabindex","onClick"];function J(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},o=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),o.forEach(function(a){Qe(e,a,n[a])})}return e}function Qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e,t){if(e==null)return{};var n=Pn(e,t),o,a;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(a=0;a<c.length;a++)o=c[a],!(t.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function Pn(e,t){if(e==null)return{};var n={},o=Object.keys(e),a,c;for(c=0;c<o.length;c++)a=o[c],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var ae=function(t,n){var o=n.attrs,a=n.slots,c=J({},t,o),l=c.class,v=c.component,f=c.viewBox,i=c.spin,r=c.rotate,u=c.tabindex,d=c.onClick,g=On(c,xn),m=a.default&&a.default(),y=m&&m.length,x=a.component;ht();var h=Qe({anticon:!0},l,l),P={"anticon-spin":i===""||!!i},w=r?{msTransform:"rotate(".concat(r,"deg)"),transform:"rotate(".concat(r,"deg)")}:void 0,b=J({},bt,{viewBox:f,class:P,style:w});f||delete b.viewBox;var I=function(){return v?p(v,b,{default:function(){return[m]}}):x?x(b):y?($t(!!f||m.length===1&&m[0]&&m[0].type==="use"),p("svg",J({},b,{viewBox:f}),[m])):null},S=u;return S===void 0&&d&&(S=-1,g.tabindex=S),p("span",J({role:"img"},g,{onClick:d,class:h}),[I()])};ae.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};ae.inheritAttrs=!1;ae.displayName="Icon";const In=ae,Sn={info:p(oe,null,null),success:p(ee,null,null),error:p(ne,null,null),warning:p(te,null,null),loading:p(pe,null,null)},_n=L({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:R(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||Sn[e.type],p("span",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])])}}});var wn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const Nn=8,Mn=3,Tn=L({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(e,t){let{expose:n}=t;var o;const{getPrefixCls:a,getPopupContainer:c}=He("message",e),l=O(()=>a("message",e.prefixCls)),[,v]=Je(l),f=()=>{var m;const y=(m=e.top)!==null&&m!==void 0?m:Nn;return{left:"50%",transform:"translateX(-50%)",top:typeof y=="number"?`${y}px`:y}},i=()=>R(v.value,e.rtl?`${l.value}-rtl`:""),r=()=>{var m;return Kt({prefixCls:l.value,animation:(m=e.animation)!==null&&m!==void 0?m:"move-up",transitionName:e.transitionName})},u=p("span",{class:`${l.value}-close-x`},[p(In,{class:`${l.value}-close-icon`},null)]),[d,g]=Ye({getStyles:f,prefixCls:l.value,getClassName:i,motion:r,closable:!1,closeIcon:u,duration:(o=e.duration)!==null&&o!==void 0?o:Mn,getContainer:()=>{var m,y;return((m=e.staticGetContainer)===null||m===void 0?void 0:m.call(e))||((y=c.value)===null||y===void 0?void 0:y.call(c))||document.body},maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return n(C(C({},d),{prefixCls:l,hashId:v})),g}});let Ae=0;function En(e){const t=H(null),n=Symbol("messageHolderKey"),o=f=>{var i;(i=t.value)===null||i===void 0||i.close(f)},a=f=>{if(!t.value){const I=()=>{};return I.then=()=>{},I}const{open:i,prefixCls:r,hashId:u}=t.value,d=`${r}-notice`,{content:g,icon:m,type:y,key:x,class:h,onClose:P}=f,w=wn(f,["content","icon","type","key","class","onClose"]);let b=x;return b==null&&(Ae+=1,b=`antd-message-${Ae}`),xt(I=>(i(C(C({},w),{key:b,content:()=>p(_n,{prefixCls:r,type:y,icon:typeof m=="function"?m():m},{default:()=>[typeof g=="function"?g():g]}),placement:"top",class:R(y&&`${d}-${y}`,u,h),onClose:()=>{P==null||P(),I()}})),()=>{o(b)}))},l={open:a,destroy:f=>{var i;f!==void 0?o(f):(i=t.value)===null||i===void 0||i.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const i=(r,u,d)=>{let g;r&&typeof r=="object"&&"content"in r?g=r:g={content:r};let m,y;typeof u=="function"?y=u:(m=u,y=d);const x=C(C({onClose:y,duration:m},g),{type:f});return a(x)};l[f]=i}),[l,()=>p(Tn,E(E({key:n},e),{},{ref:t}),null)]}function kn(e){return En(e)}let Ze=3,et,j,jn=1,tt="",nt="move-up",ot=!1,at=()=>document.body,it,rt=!1;function An(){return jn++}function Rn(e){e.top!==void 0&&(et=e.top,j=null),e.duration!==void 0&&(Ze=e.duration),e.prefixCls!==void 0&&(tt=e.prefixCls),e.getContainer!==void 0&&(at=e.getContainer,j=null),e.transitionName!==void 0&&(nt=e.transitionName,j=null,ot=!0),e.maxCount!==void 0&&(it=e.maxCount,j=null),e.rtl!==void 0&&(rt=e.rtl)}function Ln(e,t){if(j){t(j);return}qe.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||tt,rootPrefixCls:e.rootPrefixCls,transitionName:nt,hasTransitionName:ot,style:{top:et},getContainer:at||e.getPopupContainer,maxCount:it,name:"message",useStyle:Je},n=>{if(j){t(j);return}j=n,t(n)})}const lt={info:oe,success:ee,error:ne,warning:te,loading:pe},zn=Object.keys(lt);function Fn(e){const t=e.duration!==void 0?e.duration:Ze,n=e.key||An(),o=new Promise(c=>{const l=()=>(typeof e.onClose=="function"&&e.onClose(),c(!0));Ln(e,v=>{v.notice({key:n,duration:t,style:e.style||{},class:e.class,content:f=>{let{prefixCls:i}=f;const r=lt[e.type],u=r?p(r,null,null):"",d=R(`${i}-custom-content`,{[`${i}-${e.type}`]:e.type,[`${i}-rtl`]:rt===!0});return p("div",{class:d},[typeof e.icon=="function"?e.icon():e.icon||u,p("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:l,onClick:e.onClick})})}),a=()=>{j&&j.removeNotice(n)};return a.then=(c,l)=>o.then(c,l),a.promise=o,a}function Bn(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const V={open:Fn,config:Rn,destroy(e){if(j)if(e){const{removeNotice:t}=j;t(e)}else{const{destroy:t}=j;t(),j=null}}};function Dn(e,t){e[t]=(n,o,a)=>Bn(n)?e.open(C(C({},n),{type:t})):(typeof o=="function"&&(a=o,o=void 0),e.open({content:n,duration:o,type:t,onClose:a}))}zn.forEach(e=>Dn(V,e));V.warn=V.warning;V.useMessage=kn;const Hn=V,Gn=e=>{const{componentCls:t,width:n,notificationMarginEdge:o}=e,a=new B("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),c=new B("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),l=new B("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:o,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}}}},Kn=Gn,Wn=e=>{const{iconCls:t,componentCls:n,boxShadowSecondary:o,fontSizeLG:a,notificationMarginBottom:c,borderRadiusLG:l,colorSuccess:v,colorInfo:f,colorWarning:i,colorError:r,colorTextHeading:u,notificationBg:d,notificationPadding:g,notificationMarginEdge:m,motionDurationMid:y,motionEaseInOut:x,fontSize:h,lineHeight:P,width:w,notificationIconSize:b}=e,I=`${n}-notice`,S=new B("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:w},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),_=new B("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:c,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:C(C(C(C({},De(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:m,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:x,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:x,animationFillMode:"both",animationDuration:y,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:_,animationPlayState:"running"}}),Kn(e)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[I]:{position:"relative",width:w,maxWidth:`calc(100vw - ${m*2}px)`,marginBottom:c,marginInlineStart:"auto",padding:g,overflow:"hidden",lineHeight:P,wordWrap:"break-word",background:d,borderRadius:l,boxShadow:o,[`${n}-close-icon`]:{fontSize:h,cursor:"pointer"},[`${I}-message`]:{marginBottom:e.marginXS,color:u,fontSize:a,lineHeight:e.lineHeightLG},[`${I}-description`]:{fontSize:h},[`&${I}-closable ${I}-message`]:{paddingInlineEnd:e.paddingLG},[`${I}-with-icon ${I}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+b,fontSize:a},[`${I}-with-icon ${I}-description`]:{marginInlineStart:e.marginSM+b,fontSize:h},[`${I}-icon`]:{position:"absolute",fontSize:b,lineHeight:0,[`&-success${t}`]:{color:v},[`&-info${t}`]:{color:f},[`&-warning${t}`]:{color:i},[`&-error${t}`]:{color:r}},[`${I}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${I}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${I}-pure-panel`]:{margin:0}}]},ct=Fe("Notification",e=>{const t=e.paddingMD,n=e.paddingLG,o=Be(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[Wn(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function Un(e,t){return t||p("span",{class:`${e}-close-x`},[p(Ve,{class:`${e}-close-icon`},null)])}p(oe,null,null),p(ee,null,null),p(ne,null,null),p(te,null,null),p(pe,null,null);const Vn={success:ee,info:oe,error:ne,warning:te};function Xn(e){let{prefixCls:t,icon:n,type:o,message:a,description:c,btn:l}=e,v=null;if(n)v=p("span",{class:`${t}-icon`},[D(n)]);else if(o){const f=Vn[o];v=p(f,{class:`${t}-icon ${t}-icon-${o}`},null)}return p("div",{class:R({[`${t}-with-icon`]:v}),role:"alert"},[v,p("div",{class:`${t}-message`},[a]),p("div",{class:`${t}-description`},[c]),l&&p("div",{class:`${t}-btn`},[l])])}function st(e,t,n){let o;switch(t=typeof t=="number"?`${t}px`:t,n=typeof n=="number"?`${n}px`:n,e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n};break}return o}function qn(e){return{name:`${e}-fade`}}var Yn=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const Re=24,Jn=4.5,Qn=L({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(e,t){let{expose:n}=t;const{getPrefixCls:o,getPopupContainer:a}=He("notification",e),c=O(()=>e.prefixCls||o("notification")),l=d=>{var g,m;return st(d,(g=e.top)!==null&&g!==void 0?g:Re,(m=e.bottom)!==null&&m!==void 0?m:Re)},[,v]=ct(c),f=()=>R(v.value,{[`${c.value}-rtl`]:e.rtl}),i=()=>qn(c.value),[r,u]=Ye({prefixCls:c.value,getStyles:l,getClassName:f,motion:i,closable:!0,closeIcon:Un(c.value),duration:Jn,getContainer:()=>{var d,g;return((d=e.getPopupContainer)===null||d===void 0?void 0:d.call(e))||((g=a.value)===null||g===void 0?void 0:g.call(a))||document.body},maxCount:e.maxCount,hashId:v.value,onAllRemoved:e.onAllRemoved});return n(C(C({},r),{prefixCls:c.value,hashId:v})),u}});function Zn(e){const t=H(null),n=Symbol("notificationHolderKey"),o=v=>{if(!t.value)return;const{open:f,prefixCls:i,hashId:r}=t.value,u=`${i}-notice`,{message:d,description:g,icon:m,type:y,btn:x,class:h}=v,P=Yn(v,["message","description","icon","type","btn","class"]);return f(C(C({placement:"topRight"},P),{content:()=>p(Xn,{prefixCls:u,icon:typeof m=="function"?m():m,type:y,message:typeof d=="function"?d():d,description:typeof g=="function"?g():g,btn:typeof x=="function"?x():x},null),class:R(y&&`${u}-${y}`,r,h)}))},c={open:o,destroy:v=>{var f,i;v!==void 0?(f=t.value)===null||f===void 0||f.close(v):(i=t.value)===null||i===void 0||i.destroy()}};return["success","info","warning","error"].forEach(v=>{c[v]=f=>o(C(C({},f),{type:v}))}),[c,()=>p(Qn,E(E({key:n},e),{},{ref:t}),null)]}function eo(e){return Zn(e)}globalThis&&globalThis.__awaiter;const F={};let ut=4.5,dt="24px",ft="24px",fe="",mt="topRight",vt=()=>document.body,pt=null,me=!1,gt;function to(e){const{duration:t,placement:n,bottom:o,top:a,getContainer:c,closeIcon:l,prefixCls:v}=e;v!==void 0&&(fe=v),t!==void 0&&(ut=t),n!==void 0&&(mt=n),o!==void 0&&(ft=typeof o=="number"?`${o}px`:o),a!==void 0&&(dt=typeof a=="number"?`${a}px`:a),c!==void 0&&(vt=c),l!==void 0&&(pt=l),e.rtl!==void 0&&(me=e.rtl),e.maxCount!==void 0&&(gt=e.maxCount)}function no(e,t){let{prefixCls:n,placement:o=mt,getContainer:a=vt,top:c,bottom:l,closeIcon:v=pt,appContext:f}=e;const{getPrefixCls:i}=Co(),r=i("notification",n||fe),u=`${r}-${o}-${me}`,d=F[u];if(d){Promise.resolve(d).then(m=>{t(m)});return}const g=R(`${r}-${o}`,{[`${r}-rtl`]:me===!0});qe.newInstance({name:"notification",prefixCls:n||fe,useStyle:ct,class:g,style:st(o,c??dt,l??ft),appContext:f,getContainer:a,closeIcon:m=>{let{prefixCls:y}=m;return p("span",{class:`${y}-close-x`},[D(v,{},p(Ve,{class:`${y}-close-icon`},null))])},maxCount:gt,hasTransitionName:!0},m=>{F[u]=m,t(m)})}const oo={success:Xt,info:nn,error:ln,warning:Qt};function ao(e){const{icon:t,type:n,description:o,message:a,btn:c}=e,l=e.duration===void 0?ut:e.duration;no(e,v=>{v.notice({content:f=>{let{prefixCls:i}=f;const r=`${i}-notice`;let u=null;if(t)u=()=>p("span",{class:`${r}-icon`},[D(t)]);else if(n){const d=oo[n];u=()=>p(d,{class:`${r}-icon ${r}-icon-${n}`},null)}return p("div",{class:u?`${r}-with-icon`:""},[u&&u(),p("div",{class:`${r}-message`},[!o&&u?p("span",{class:`${r}-message-single-line-auto-margin`},null):null,D(a)]),p("div",{class:`${r}-description`},[D(o)]),c?p("span",{class:`${r}-btn`},[D(c)]):null])},duration:l,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const K={open:ao,close(e){Object.keys(F).forEach(t=>Promise.resolve(F[t]).then(n=>{n.removeNotice(e)}))},config:to,destroy(){Object.keys(F).forEach(e=>{Promise.resolve(F[e]).then(t=>{t.destroy()}),delete F[e]})}},io=["success","info","warning","error"];io.forEach(e=>{K[e]=t=>K.open(C(C({},t),{type:e}))});K.warn=K.warning;K.useNotification=eo;const ro=K,lo=`-ant-${Date.now()}-${Math.random()}`;function co(e,t){const n={},o=(l,v)=>{let f=l.clone();return f=(v==null?void 0:v(f))||f,f.toRgbString()},a=(l,v)=>{const f=new ce(l),i=Oe(f.toRgbString());n[`${v}-color`]=o(f),n[`${v}-color-disabled`]=i[1],n[`${v}-color-hover`]=i[4],n[`${v}-color-active`]=i[6],n[`${v}-color-outline`]=f.clone().setAlpha(.2).toRgbString(),n[`${v}-color-deprecated-bg`]=i[0],n[`${v}-color-deprecated-border`]=i[2]};if(t.primaryColor){a(t.primaryColor,"primary");const l=new ce(t.primaryColor),v=Oe(l.toRgbString());v.forEach((i,r)=>{n[`primary-${r+1}`]=i}),n["primary-color-deprecated-l-35"]=o(l,i=>i.lighten(35)),n["primary-color-deprecated-l-20"]=o(l,i=>i.lighten(20)),n["primary-color-deprecated-t-20"]=o(l,i=>i.tint(20)),n["primary-color-deprecated-t-50"]=o(l,i=>i.tint(50)),n["primary-color-deprecated-f-12"]=o(l,i=>i.setAlpha(i.getAlpha()*.12));const f=new ce(v[0]);n["primary-color-active-deprecated-f-30"]=o(f,i=>i.setAlpha(i.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=o(f,i=>i.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` :root { ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(` `)} } `.trim()}function so(e,t){const n=co(e,t);Ot()?Pt(n,`${lo}-dynamic-theme`):Le()}const uo=e=>{const[t,n]=It();return St(O(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:C(C({},_t()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])},fo=uo;function mo(e,t){const n=O(()=>(e==null?void 0:e.value)||{}),o=O(()=>n.value.inherit===!1||!(t!=null&&t.value)?wt:t.value);return O(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const c=C({},o.value.components);return Object.keys(e.value.components||{}).forEach(l=>{c[l]=C(C({},c[l]),e.value.components[l])}),C(C(C({},o.value),n.value),{token:C(C({},o.value.token),n.value.token),components:c})})}var vo=globalThis&&globalThis.__rest||function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};const po="ant";function G(){return T.prefixCls||po}function Ct(){return T.iconPrefixCls||Ge}const xe=U({}),T=U({});ge(()=>{C(T,xe),T.prefixCls=G(),T.iconPrefixCls=Ct(),T.getPrefixCls=(e,t)=>t||(e?`${T.prefixCls}-${e}`:T.prefixCls),T.getRootPrefixCls=()=>T.prefixCls?T.prefixCls:G()});let se;const go=e=>{se&&se(),se=ge(()=>{C(xe,U(e)),C(T,U(e))}),e.theme&&so(G(),e.theme)},Co=()=>({getPrefixCls:(e,t)=>t||(e?`${G()}-${e}`:G()),getIconPrefixCls:Ct,getRootPrefixCls:()=>T.prefixCls?T.prefixCls:G()}),W=L({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:Nt(),setup(e,t){let{slots:n}=t;const o=Mt(),a=(s,$)=>{const{prefixCls:N="ant"}=e;if($)return $;const A=N||o.getPrefixCls("");return s?`${A}-${s}`:A},c=O(()=>e.iconPrefixCls||o.iconPrefixCls.value||Ge),l=O(()=>c.value!==o.iconPrefixCls.value),v=O(()=>{var s;return e.csp||((s=o.csp)===null||s===void 0?void 0:s.value)}),f=fo(c),i=mo(O(()=>e.theme),O(()=>{var s;return(s=o.theme)===null||s===void 0?void 0:s.value})),r=s=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||zt)(s),u=O(()=>{var s,$;return(s=e.autoInsertSpaceInButton)!==null&&s!==void 0?s:($=o.autoInsertSpaceInButton)===null||$===void 0?void 0:$.value}),d=O(()=>{var s;return e.locale||((s=o.locale)===null||s===void 0?void 0:s.value)});q(d,()=>{xe.locale=d.value},{immediate:!0});const g=O(()=>{var s;return e.direction||((s=o.direction)===null||s===void 0?void 0:s.value)}),m=O(()=>{var s,$;return(s=e.space)!==null&&s!==void 0?s:($=o.space)===null||$===void 0?void 0:$.value}),y=O(()=>{var s,$;return(s=e.virtual)!==null&&s!==void 0?s:($=o.virtual)===null||$===void 0?void 0:$.value}),x=O(()=>{var s,$;return(s=e.dropdownMatchSelectWidth)!==null&&s!==void 0?s:($=o.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),h=O(()=>{var s;return e.getTargetContainer!==void 0?e.getTargetContainer:(s=o.getTargetContainer)===null||s===void 0?void 0:s.value}),P=O(()=>{var s;return e.getPopupContainer!==void 0?e.getPopupContainer:(s=o.getPopupContainer)===null||s===void 0?void 0:s.value}),w=O(()=>{var s;return e.pageHeader!==void 0?e.pageHeader:(s=o.pageHeader)===null||s===void 0?void 0:s.value}),b=O(()=>{var s;return e.input!==void 0?e.input:(s=o.input)===null||s===void 0?void 0:s.value}),I=O(()=>{var s;return e.pagination!==void 0?e.pagination:(s=o.pagination)===null||s===void 0?void 0:s.value}),S=O(()=>{var s;return e.form!==void 0?e.form:(s=o.form)===null||s===void 0?void 0:s.value}),_=O(()=>{var s;return e.select!==void 0?e.select:(s=o.select)===null||s===void 0?void 0:s.value}),M=O(()=>e.componentSize),k=O(()=>e.componentDisabled),Y={csp:v,autoInsertSpaceInButton:u,locale:d,direction:g,space:m,virtual:y,dropdownMatchSelectWidth:x,getPrefixCls:a,iconPrefixCls:c,theme:O(()=>{var s,$;return(s=i.value)!==null&&s!==void 0?s:($=o.theme)===null||$===void 0?void 0:$.value}),renderEmpty:r,getTargetContainer:h,getPopupContainer:P,pageHeader:w,input:b,pagination:I,form:S,select:_,componentSize:M,componentDisabled:k,transformCellText:O(()=>e.transformCellText)},ie=O(()=>{const s=i.value||{},{algorithm:$,token:N}=s,A=vo(s,["algorithm","token"]),le=$&&(!Array.isArray($)||$.length>0)?Tt($):void 0;return C(C({},A),{theme:le,token:C(C({},Et),N)})}),z=O(()=>{var s,$;let N={};return d.value&&(N=((s=d.value.Form)===null||s===void 0?void 0:s.defaultValidateMessages)||(($=ve.Form)===null||$===void 0?void 0:$.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(N=C(C({},N),e.form.validateMessages)),N});kt(Y),jt({validateMessages:z}),At(M),Rt(k);const re=s=>{var $,N;let A=l.value?f(($=n.default)===null||$===void 0?void 0:$.call(n)):(N=n.default)===null||N===void 0?void 0:N.call(n);if(e.theme){const le=function(){return A}();A=p(Ft,{value:ie.value},{default:()=>[le]})}return p(fn,{locale:d.value||s,ANT_MARK__:ue},{default:()=>[A]})};return ge(()=>{g.value&&(Hn.config({rtl:g.value==="rtl"}),ro.config({rtl:g.value==="rtl"}))}),()=>p(Lt,{children:(s,$,N)=>re(N)},null)}});W.config=go;W.install=function(e){e.component(W.name,W)};const yo=W;export{Xt as C,oe as I,yo as a,T as b,Oo as g,Hn as m};