import{a1 as $e,a2 as en,N as nn,h as an,a3 as Ae,a4 as rn,a5 as tn,i as N,a6 as sn,a7 as ln,a8 as on,a9 as un,aa as Se,f as Pe,S as cn,a0 as fn,ab as dn,ac as Ee,J as M,e as Te,ad as se,ae as vn,af as gn,G as Le,ag as hn,ah as xe,ai as mn,aj as pn,w as yn}from"./index.84328ebd.js";import{_ as F,u as p,a as _n}from"./useConfig.c667f475.js";import{d as k,o as ee,g as Cn,n as wn,aI as h,c as m,f as z,w as Ie,t as bn,bC as q,bE as ie,r as On,h as $n,b4 as An}from"./arco.7f845a67.js";import{c as Sn,_ as Pn}from"./helper.895b8d7d.js";/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var En="__lodash_hash_undefined__";function Tn(e){return this.__data__.set(e,En),this}var Ln=Tn;function xn(e){return this.__data__.has(e)}var In=xn,Dn=$e,Fn=Ln,Mn=In;function H(e){var n=-1,a=e==null?0:e.length;for(this.__data__=new Dn;++nl))return!1;var u=s.get(e),c=s.get(n);if(u&&c)return u==n&&c==e;var f=-1,d=!0,y=a&Xn?new Hn:void 0;for(s.set(e,n),s.set(n,e);++f"u")){var s=(n=window)===null||n===void 0||(a=n.getComputedStyle)===null||a===void 0?void 0:a.call(n,e),i=s.color,l=s.fontSize,o=(r=window)===null||r===void 0||(r=r.navigator)===null||r===void 0?void 0:r.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&&Sn()>11){var f=i.match(/[\d.]+/g),d=f?"rgba(".concat(f[0],", ").concat(f[1],", ").concat(f[2],", 0)"):"";ye(e,B(B({},t),{},{background:"conic-gradient(from 90deg at 50% 50%,".concat(d," 0deg, ").concat(i," 360deg)")}))}else ye(e,B(B({},t),{},{background:""}))}}/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Sr=k({name:"TLoadingGradient",setup:function(){var n=p();return ee(function(){var a=Cn().refs.circle;wn(function(){Ar(a)})}),{classPrefix:n}},render:function(){var n=this.classPrefix,a="".concat(n,"-loading__gradient"),r=[a,"".concat(n,"-icon-loading")];return h("svg",{class:r,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(a,"-conic"),ref:"circle"},null)])])}});/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var te={exports:{}},D={exports:{}};(function(){var e,n,a,r,t,s;typeof performance<"u"&&performance!==null&&performance.now?D.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(D.exports=function(){return(e()-t)/1e6},n=process.hrtime,e=function(){var l;return l=n(),l[0]*1e9+l[1]},r=e(),s=process.uptime()*1e9,t=r-s):Date.now?(D.exports=function(){return Date.now()-a},a=Date.now()):(D.exports=function(){return new Date().getTime()-a},a=new Date().getTime())}).call(Ee);var Pr=D.exports,O=typeof window>"u"?Ee:window,G=["moz","webkit"],T="AnimationFrame",L=O["request"+T],R=O["cancel"+T]||O["cancelRequest"+T];for(var I=0;!L&&I"u",Tr=function(n){return(n||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},Lr=function(){return!qe&&document.addEventListener?function(e,n,a,r){e&&n&&a&&e.addEventListener(n,a,r)}:function(e,n,a){e&&n&&a&&e.attachEvent("on".concat(n),a)}}(),xr=function(){return!qe&&document.removeEventListener?function(e,n,a,r){e&&n&&e.removeEventListener(n,a,r)}:function(e,n,a){e&&n&&e.detachEvent("on".concat(n),a)}}();function Ht(e,n,a,r){var t=M(a)?a:a.handleEvent,s=function i(l){t(l),xr(e,n,i,r)};Lr(e,n,s,r)}function Ke(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 a=e.className,r=(n||"").split(" "),t=0,s=r.length;t0&&arguments[0]!==void 0?arguments[0]:"body";return Te(n)?document.querySelector(n):M(n)?n():n},Wt=function(n){var a=n.clientWidth,r=a===void 0?0:a,t=n.scrollWidth,s=t===void 0?0:t;return s>r},Zt=function(n){if(!(n instanceof HTMLFormElement))throw new Error("target must be HTMLFormElement");var a=document.createElement("input");a.type="submit",a.hidden=!0,n.appendChild(a),a.click(),n.removeChild(a)};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Dr={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 Fr=function(n,a){var r=M(n)?m(n):z(n),t=M(a)?m(a):z(a),s=z(),i=function(){s.value=Ir()||Be(r.value,t.value)};return ee(function(){return i()}),Ie([r,t],function(){return i()}),s};/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */var Mr=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")}},j=k({name:"TLoading",inheritAttrs:!1,props:Dr,setup:function(n,a){var r=a.slots,t=z(!1),s=Mr(),i=s.name,l=s.centerClass,o=s.fullscreenClass,u=s.lockClass,c=s.overlayClass,f=s.relativeClass,d=s.fullClass,y=s.inheritColorClass,v=p(),g=_n(),C=g.SIZE,w=function(){t.value=!1;var x=setTimeout(function(){t.value=!0,clearTimeout(x)},n.delay)},b=Fr(function(){return n.attach}),$=m(function(){return Boolean(!n.delay||n.delay&&t.value)}),P=m(function(){var _={};return n.zIndex!==void 0&&(_.zIndex=n.zIndex),["small","medium","large"].includes(n.size)||(_["font-size"]=n.size),_}),A=m(function(){return Boolean(n.default||r.default||n.content||r.content)}),W=m(function(){return n.preventScrollThrough&&n.fullscreen}),We=m(function(){return Boolean(n.text||r.text)}),Ze=m(function(){return A.value&&n.loading&&$.value}),Xe=m(function(){return n.fullscreen&&n.loading&&$.value}),Ye=m(function(){return n.attach&&n.loading&&$.value}),Je=m(function(){return n.attach&&n.loading&&$.value}),Qe=m(function(){var _=[l.value,C.value[n.size],F({},y.value,n.inheritColor)],x=[i.value,o.value,l.value,c.value];return{baseClasses:_,attachClasses:_.concat([i.value,d.value,F({},c.value,n.showOverlay)]),withContentClasses:_.concat([i.value,d.value,F({},c.value,n.showOverlay)]),fullScreenClasses:x,normalClasses:_.concat([i.value])}}),je=bn(n),Ve=je.loading;return Ie([Ve],function(_){var x=Pn(_,1),ke=x[0];ke?(w(),W.value&&J(document.body,u.value)):W.value&&Q(document.body,u.value)}),ee(function(){n.delay&&w()}),{classPrefix:v,relativeClass:f,delayShowLoading:t,styles:P,showText:We,hasContent:A,classes:Qe,lockFullscreen:W,showWrapLoading:Ze,showNormalLoading:Ye,showFullScreenLoading:Xe,showAttachedLoading:Je,teleportElement:b}},render:function(){var n=this,a=this.classes,r=a.fullScreenClasses,t=a.baseClasses,s=a.withContentClasses,i=a.attachClasses,l=a.normalClasses,o=h(Sr,{size:this.size},null),u=this.loading&&se(this,"indicator",o),c=this.showText&&h("div",{class:"".concat(this.classPrefix,"-loading__text")},[se(this,"text")]);return this.fullscreen?!this.showFullScreenLoading||!this.loading?null:h(ie,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",q({class:r,style:n.styles},n.$attrs),[h("div",{class:t},[u,c])])]}}):this.hasContent?h("div",q({class:this.relativeClass},this.$attrs),[vn(this,"default","content"),this.showWrapLoading&&h("div",{class:s,style:this.styles},[u,c])]):this.attach?!this.showAttachedLoading||!this.loading?null:h(ie,{disabled:!this.attach||!this.teleportElement,to:this.teleportElement},{default:function(){return[h("div",q({class:i,style:n.styles},n.$attrs),[u,c])]}}):this.loading?h("div",q({class:l,style:this.styles},this.$attrs),[u,c]):null}});/** * tdesign v1.9.4 * (c) 2024 tdesign * @license MIT */function we(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,r)}return a}function Rr(e){for(var n=1;n