import{ae as $e,af as rn,a4 as an,A as Se,ag as Ee,ah as tn,ai as sn,M as D,aj as ln,ak as on,al as un,am as cn,O as Te,y as Pe,a8 as fn,a1 as vn,an as dn,z as gn,ao as Le,C as N,J as xe,a2 as ie,P as hn,ap as yn,G as Ie,aq as pn,ar as Me,N as mn,as as _n,w as Cn}from"./index.9ccc7a96.js";import{d as wn,b as J,_ as R,u as p,a as bn}from"./useConfig.3732b994.js";import{d as ee,o as ne,g as An,n as On,aI as h,c as y,f as z,w as Re,t as $n,bH as G,bL as le,r as Sn,h as En,b4 as Tn}from"./arco.76776ef0.js";/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Pn="__lodash_hash_undefined__";function Ln(e){return this.__data__.set(e,Pn),this}var xn=Ln;function In(e){return this.__data__.has(e)}var Mn=In,Rn=$e,Nn=xn,Fn=Mn;function H(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new Rn;++nl))return!1;var u=s.get(e),c=s.get(n);if(u&&c)return u==n&&c==e;var f=-1,v=!0,m=r&Yn?new Un:void 0;for(s.set(e,n),s.set(n,e);++f"u"||!navigator)return Number.MAX_SAFE_INTEGER;var e=navigator,n=e.userAgent,r=n.indexOf("compatible")>-1&&n.indexOf("MSIE")>-1,a=n.indexOf("Trident")>-1&&n.indexOf("rv:11.0")>-1;if(r){var t=new RegExp("MSIE (\\d+\\.\\d+);"),s=n.match(t);if(!s)return-1;var i=parseFloat(s[1]);return i<7?6:i}return a?11:Number.MAX_SAFE_INTEGER}function Vt(e,n){var r=Ra(n);if(!e||e.length===0)return r?{length:0,characters:e}:0;for(var a=0,t=0;t127?s=2:s=1,r&&a+s>n)return{length:a,characters:e.slice(0,t)};a+=s}return r?{length:a,characters:e}:a}function es(e){return J(e!=null?e:"").length}function ns(e,n,r){return J(r!=null?r:"").slice().length===n?r||"":J(e!=null?e:"").slice(0,n).join("")}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function Ce(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function K(e){for(var n=1;n"u")){var s=(n=window)===null||n===void 0||(r=n.getComputedStyle)===null||r===void 0?void 0:r.call(n,e),i=s.color,l=s.fontSize,o=(a=window)===null||a===void 0||(a=a.navigator)===null||a===void 0?void 0:a.userAgent,u=/Safari/.test(o)&&!/Chrome/.test(o),c=/(?=.*iPhone)[?=.*MicroMessenger]/.test(o)&&!/Chrome/.test(o);if((u||c)&&(t={transformOrigin:"0px 0px",transform:"scale(".concat(parseInt(l,10)/12,")")}),i&&Na()>11){var f=i.match(/[\d.]+/g),v=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";_e(e,K(K({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(v," 0deg, ").concat(i," 360deg)")}))}else _e(e,K(K({},t),{},{background:""}))}}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Da=ee({name:"TLoadingGradient",setup:function(){var n=p();return ne(function(){var r=An().refs.circle;On(function(){Fa(r)})}),{classPrefix:n}},render:function(){var n=this.classPrefix,r="".concat(n,"-loading__gradient"),a=[r,"".concat(n,"-icon-loading")];return h("svg",{class:a,viewBox:"0 0 12 12",version:"1.1",width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg"},[h("foreignObject",{x:"0",y:"0",width:"12",height:"12"},[h("div",{class:"".concat(r,"-conic"),ref:"circle"},null)])])}});/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var se={exports:{}},M={exports:{}};(function(){var e,n,r,a,t,s;typeof performance<"u"&&performance!==null&&performance.now?M.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(M.exports=function(){return(e()-t)/1e6},n=process.hrtime,e=function(){var l;return l=n(),l[0]*1e9+l[1]},a=e(),s=process.uptime()*1e9,t=a-s):Date.now?(M.exports=function(){return Date.now()-r},r=Date.now()):(M.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Le);var Ga=M.exports,A=typeof window>"u"?Le:window,B=["moz","webkit"],P="AnimationFrame",L=A["request"+P],F=A["cancel"+P]||A["cancelRequest"+P];for(var I=0;!L&&I"u",Ka=function(n){return(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Ba=function(){return!Ke&&document.addEventListener?function(e,n,r,a){e&&n&&r&&e.addEventListener(n,r,a)}:function(e,n,r){e&&n&&r&&e.attachEvent("on".concat(n),r)}}(),za=function(){return!Ke&&document.removeEventListener?function(e,n,r,a){e&&n&&e.removeEventListener(n,r,a)}:function(e,n,r){e&&n&&e.detachEvent("on".concat(n),r)}}();function rs(e,n,r,a){var t=N(r)?r:r.handleEvent,s=function i(l){t(l),za(e,n,i,a)};Ba(e,n,s,a)}function Be(e,n){if(!e||!n)return!1;if(n.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(n):" ".concat(e.className," ").indexOf(" ".concat(n," "))>-1}function j(e,n){if(!!e){for(var r=e.className,a=(n||"").split(" "),t=0,s=a.length;t0&&arguments[0]!==void 0?arguments[0]:"body";return xe(n)?document.querySelector(n):N(n)?n():n},ts=function(n){var r=n.clientWidth,a=r===void 0?0:r,t=n.scrollWidth,s=t===void 0?0:t;return s>a};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Ua={attach:{type:[String,Function],default:""},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:Number,default:0},fullscreen:Boolean,indicator:{type:[Boolean,Function],default:!0},inheritColor:Boolean,loading:{type:Boolean,default:!0},preventScrollThrough:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},size:{type:String,default:"medium"},text:{type:[String,Function]},zIndex:{type:Number}};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Wa=function(n,r){var a=N(n)?y(n):z(n),t=N(r)?y(r):z(r),s=z(),i=function(){s.value=Ha()||ze(a.value,t.value)};return ne(function(){return i()}),Re([a,t],function(){return i()}),s};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Xa=function(){return{name:p("loading"),centerClass:p("loading--center"),fullscreenClass:p("loading__fullscreen"),lockClass:p("loading--lock"),overlayClass:p("loading__overlay"),relativeClass:p("loading__parent"),fullClass:p("loading--full"),inheritColorClass:p("loading--inherit-color")}},k=ee({name:"TLoading",inheritAttrs:!1,props:Ua,setup:function(n,r){var a=r.slots,t=z(!1),s=Xa(),i=s.name,l=s.centerClass,o=s.fullscreenClass,u=s.lockClass,c=s.overlayClass,f=s.relativeClass,v=s.fullClass,m=s.inheritColorClass,d=p(),g=bn(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Wa(function(){return n.attach}),O=y(function(){return Boolean(!n.delay||n.delay&&t.value)}),E=y(function(){var _={};return n.zIndex!==void 0&&(_.zIndex=n.zIndex),["small","medium","large"].includes(n.size)||(_["font-size"]=n.size),_}),$=y(function(){return Boolean(n.default||a.default||n.content||a.content)}),W=y(function(){return n.preventScrollThrough&&n.fullscreen}),Ze=y(function(){return Boolean(n.text||a.text)}),Ye=y(function(){return $.value&&n.loading&&O.value}),Je=y(function(){return n.fullscreen&&n.loading&&O.value}),je=y(function(){return n.attach&&n.loading&&O.value}),Qe=y(function(){return n.attach&&n.loading&&O.value}),ke=y(function(){var _=[l.value,C.value[n.size],R({},m.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,v.value,R({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),Ve=$n(n),en=Ve.loading;return Re([en],function(_){var x=Pa(_,1),nn=x[0];nn?(w(),W.value&&j(document.body,u.value)):W.value&&Q(document.body,u.value)}),ne(function(){n.delay&&w()}),{classPrefix:d,relativeClass:f,delayShowLoading:t,styles:E,showText:Ze,hasContent:$,classes:ke,lockFullscreen:W,showWrapLoading:Ye,showNormalLoading:je,showFullScreenLoading:Je,showAttachedLoading:Qe,teleportElement:b}},render:function(){var n=this,r=this.classes,a=r.fullScreenClasses,t=r.baseClasses,s=r.withContentClasses,i=r.attachClasses,l=r.normalClasses,o=h(Da,{size:this.size},null),u=this.loading&&ie(this,"indicator",o),c=this.showText&&h("div",{class:"".concat(this.classPrefix,"-loading__text")},[ie(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:a,style:n.styles},n.$attrs),[h("div",{class:t},[u,c])])]}}):this.hasContent?h("div",G({class:this.relativeClass},this.$attrs),[hn(this,"default","content"),this.showWrapLoading&&h("div",{class:s,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:h(le,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",G({class:i,style:n.styles},n.$attrs),[u,c])]}}):this.loading?h("div",G({class:l,style:this.styles},this.$attrs),[u,c]):null}});/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function be(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function Za(e){for(var n=1;n