import{al as _,a7 as R,y as P,am as I,an as N,z,M as F,U as M,L as d,T as $,F as U}from"./index.abea991e.js";import{f as A,o as X,aZ as K,c as O,i as V,g as W,d as Z,aI as x,h as G}from"./arco.7dae27b5.js";import{L as J}from"./index.f3a75336.js";/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var q={block:Boolean,content:{type:[String,Function]},default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},ghost:Boolean,href:{type:String,default:""},icon:{type:Function},loading:Boolean,shape:{type:String,default:"rectangle",validator:function(e){return e?["rectangle","square","round","circle"].includes(e):!0}},size:{type:String,default:"medium",validator:function(e){return e?["extra-small","small","medium","large"].includes(e):!0}},suffix:{type:Function},tag:{type:String,validator:function(e){return e?["button","a","div"].includes(e):!0}},theme:{type:String,validator:function(e){return e?["default","primary","danger","warning","success"].includes(e):!0}},type:{type:String,default:"button",validator:function(e){return e?["submit","reset","button"].includes(e):!0}},variant:{type:String,default:"base",validator:function(e){return e?["base","outline","dashed","text"].includes(e):!0}},onClick:Function};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var H=_.expand,Q=_.ripple,Y=_.fade;function ee(){var t=R("animation"),e=t.globalConfig,a=function(o){var u,c,r=e.value;return r&&!((u=r.exclude)!==null&&u!==void 0&&u.includes(o))&&((c=r.include)===null||c===void 0?void 0:c.includes(o))};return{keepExpand:a(H),keepRipple:a(Q),keepFade:a(Y)}}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function B(t,e){var a=Object.keys(e);a.forEach(function(n){t.style[n]=e[n]})}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var E=200,te="rgba(0, 0, 0, 0)",ae="rgba(0, 0, 0, 0.35)",ne=function(e,a){var n;if(a)return a;if(e!=null&&(n=e.dataset)!==null&&n!==void 0&&n.ripple){var o=e.dataset.ripple;return o}var u=getComputedStyle(e).getPropertyValue("--ripple-color");return u||ae};function re(t,e){var a=A(null),n=P(),o=ee(),u=o.keepRipple,c=function(g){var i=t.value,y=ne(i,e==null?void 0:e.value);if(!(g.button!==0||!t||!u)&&!(i.classList.contains("".concat(n.value,"-is-active"))||i.classList.contains("".concat(n.value,"-is-disabled"))||i.classList.contains("".concat(n.value,"-is-checked"))||i.classList.contains("".concat(n.value,"-is-loading")))){var b=getComputedStyle(i),v=parseInt(b.borderWidth,10),h=v>0?v:0,f=i.offsetWidth,l=i.offsetHeight;a.value.parentNode===null&&(B(a.value,{position:"absolute",left:"".concat(0-h,"px"),top:"".concat(0-h,"px"),width:"".concat(f,"px"),height:"".concat(l,"px"),borderRadius:b.borderRadius,pointerEvents:"none",overflow:"hidden"}),i.appendChild(a.value));var s=document.createElement("div");B(s,{marginTop:"0",marginLeft:"0",right:"".concat(f,"px"),width:"".concat(f+20,"px"),height:"100%",transition:"transform ".concat(E,"ms cubic-bezier(.38, 0, .24, 1), background ").concat(E*2,"ms linear"),transform:"skewX(-8deg)",pointerEvents:"none",position:"absolute",zIndex:0,backgroundColor:y,opacity:"0.9"});for(var k=new WeakMap,C=i.children.length,m=0;m