k5web/assets/index.832d54dc.js

296 lines
1.4 MiB
JavaScript
Raw Normal View History

2024-04-28 13:26:15 +00:00
import{d as defineComponent,A as getPrefixCls,c as computed,B as isNumber$1,_ as _export_sfc$1,C as openBlock,D as createElementBlock,E as normalizeClass,F as normalizeStyle,G as createBaseVNode,H as createStaticVNode,I as IconCaretDown,J as IconCaretLeft,K as IconCaretRight,L as IconCaretUp,M as IconDoubleLeft,N as IconDoubleRight,O as IconDown,P as IconLeft,Q as IconMenuFold,R as IconMenuUnfold,S as IconRight,T as IconRotateLeft,U as IconRotateRight,V as IconToTop,W as IconUp,X as IconCheckCircleFill,Y as IconCloseCircleFill,Z as IconExclamationCircleFill,$ as IconInfoCircleFill,a0 as IconCheck,a1 as IconClockCircle,a2 as IconClose,a3 as IconExclamation,a4 as IconInfo,a5 as IconMinus,a6 as IconPlus,a7 as IconQuestionCircle,a8 as IconStarFill,a9 as IconEyeInvisible,aa as IconEye,ab as IconMore,ac as IconSearch,ad as IconUpload,ae as IconCopy,af as IconDelete,ag as IconEdit,ah as IconFilter,ai as IconLink,aj as IconObliqueLine,ak as IconOriginalSize,al as IconZoomIn,am as IconZoomOut,an as IconPlayArrowFill,ao as IconFullscreen,ap as IconPause,aq as IconFaceFrownFill,ar as IconFaceMehFill,as as IconFaceSmileFill,at as IconCalendar,au as IconDragDotVertical,av as IconDragDot,aw as IconEmpty,ax as IconFileAudio,ay as IconFileImage,az as IconFilePdf,aA as IconFileVideo,aB as IconFile,aC as IconImageClose,aD as IconLoading,f as ref,n as nextTick,aE as createBlock,u as unref,aF as createCommentVNode,aG as Breadcrumb,aH as withCtx,aI as createVNode,aJ as renderList,aK as Fragment,aL as BreadcrumbItem,aM as createTextVNode,aN as toDisplayString,aO as commonjsGlobal$1,aP as getDefaultExportFromCjs$1,aQ as Notification,aR as getAugmentedNamespace,aS as vue_esmBundler,aT as dayjs,g as getCurrentInstance,i as inject,h,aU as isVNode$1,w as watch,b as onBeforeUnmount,aV as Text,o as onMounted,aW as Teleport,aX as Comment,aY as onUpdated,t as toRefs,p as provide,aZ as onUnmounted,a_ as withDirectives,a$ as vShow,b0 as mergeProps,b1 as Transition,b2 as InputNumber,b3 as Switch,b4 as Alert,b5 as Drawer,b6 as Message,b7 as Button,b8 as ConfigProvider,b9 as lang,ba as resolveComponent,bb as Modal,bc as createApp}from"./arco.93f0afda.js";import{B,u as use,i as install$1,a as install$2,b as install$3,c as install$4,d as install$5,e as install$6,f as install$7,g as install$8,h as install$9,j as install$a}from"./chart.c383733a.js";import{d as defineStore,c as createPinia,a as createRouter,b as createWebHashHistory,s as shared_esmBrowser,e as coreBase_esmBrowser,u as useClipboard}from"./vue.ded74ca2.js";(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))r(u);new MutationObserver(u=>{for(const o of u)if(o.type==="childList")for(const t of o.addedNodes)t.tagName==="LINK"&&t.rel==="modulepreload"&&r(t)}).observe(document,{childList:!0,subtree:!0});function n(u){const o={};return u.integrity&&(o.integrity=u.integrity),u.referrerpolicy&&(o.referrerPolicy=u.referrerpolicy),u.crossorigin==="use-credentials"?o.credentials="include":u.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(u){if(u.ep)return;u.ep=!0;const o=n(u);fetch(u.href,o)}})();const _sfc_main$3F=defineComponent({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:l}){const n=getPrefixCls("icon"),r=computed(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),u=computed(()=>{const t={};return e.size&&(t.fontSize=isNumber$1(e.size)?`${e.size}px`:e.size),e.rotate&&(t.transform=`rotate(${e.rotate}deg)`),t});return{cls:r,innerStyle:u,onClick:t=>{l("click",t)}}}}),_hoisted_1$3A=["stroke-width","stroke-linecap","stroke-linejoin"],_hoisted_2$3A=createBaseVNode("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"
2024-04-29 12:57:33 +00:00
* @license MIT */(function(e,l){(function(n,r){e.exports=r()})(commonjsGlobal$1,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};n.configure=function(v){var y,x;for(y in v)x=v[y],x!==void 0&&v.hasOwnProperty(y)&&(r[y]=x);return this},n.status=null,n.set=function(v){var y=n.isStarted();v=u(v,r.minimum,1),n.status=v===1?null:v;var x=n.render(!y),P=x.querySelector(r.barSelector),R=r.speed,Y=r.easing;return x.offsetWidth,a(function(L){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),f(P,t(v,R,Y)),v===1?(f(x,{transition:"none",opacity:1}),x.offsetWidth,setTimeout(function(){f(x,{transition:"all "+R+"ms linear",opacity:0}),setTimeout(function(){n.remove(),L()},R)},R)):setTimeout(L,R)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var v=function(){setTimeout(function(){!n.status||(n.trickle(),v())},r.trickleSpeed)};return r.trickle&&v(),this},n.done=function(v){return!v&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(v){var y=n.status;return y?(typeof v!="number"&&(v=(1-y)*u(Math.random()*y,.1,.95)),y=u(y+v,0,.994),n.set(y)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var v=0,y=0;n.promise=function(x){return!x||x.state()==="resolved"?this:(y===0&&n.start(),v++,y++,x.always(function(){y--,y===0?(v=0,n.done()):n.set((v-y)/v)}),this)}}(),n.render=function(v){if(n.isRendered())return document.getElementById("nprogress");_(document.documentElement,"nprogress-busy");var y=document.createElement("div");y.id="nprogress",y.innerHTML=r.template;var x=y.querySelector(r.barSelector),P=v?"-100":o(n.status||0),R=document.querySelector(r.parent),Y;return f(x,{transition:"all 0 linear",transform:"translate3d("+P+"%,0,0)"}),r.showSpinner||(Y=y.querySelector(r.spinnerSelector),Y&&I(Y)),R!=document.body&&_(R,"nprogress-custom-parent"),R.appendChild(y),y},n.remove=function(){$(document.documentElement,"nprogress-busy"),$(document.querySelector(r.parent),"nprogress-custom-parent");var v=document.getElementById("nprogress");v&&I(v)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var v=document.body.style,y="WebkitTransform"in v?"Webkit":"MozTransform"in v?"Moz":"msTransform"in v?"ms":"OTransform"in v?"O":"";return y+"Perspective"in v?"translate3d":y+"Transform"in v?"translate":"margin"};function u(v,y,x){return v<y?y:v>x?x:v}function o(v){return(-1+v)*100}function t(v,y,x){var P;return r.positionUsing==="translate3d"?P={transform:"translate3d("+o(v)+"%,0,0)"}:r.positionUsing==="translate"?P={transform:"translate("+o(v)+"%,0)"}:P={"margin-left":o(v)+"%"},P.transition="all "+y+"ms "+x,P}var a=function(){var v=[];function y(){var x=v.shift();x&&x(y)}return function(x){v.push(x),v.length==1&&y()}}(),f=function(){var v=["Webkit","O","Moz","ms"],y={};function x(L){return L.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(q,U){return U.toUpperCase()})}function P(L){var q=document.body.style;if(L in q)return L;for(var U=v.length,N=L.charAt(0).toUpperCase()+L.slice(1),G;U--;)if(G=v[U]+N,G in q)return G;return L}function R(L){return L=x(L),y[L]||(y[L]=P(L))}function Y(L,q,U){q=R(q),L.style[q]=U}return function(L,q){var U=arguments,N,G;if(U.length==2)for(N in q)G=q[N],G!==void 0&&q.hasOwnProperty(N)&&Y(L,N,G);else Y(L,U[1],U[2])}}();function m(v,y){var x=typeof v=="string"?v:S(v);return x.indexOf(" "+y+" ")>=0}function _(v,y){var x=S(v),P=x+y;m(x,y)||(v.className=P.substring(1))}function $(v,y){var x=S(v),P;!m(v,y)||(P=x.replace(" "+y+" "," "),v.className=P.substring(1,P.length-1))}function S(v){return(" "+(v.className||"")+" ").replace(/\s+/gi," ")}function I(v){v&&v.parentNode&&v.parentNode.removeChild(v)}return n})})(nprogress$1);const N
`),function(m){if(a=m.indexOf(":"),o=e.trim(m.substr(0,a)).toLowerCase(),t=e.trim(m.substr(a+1)),o){if(u[o]&&l.indexOf(o)>=0)return;o==="set-cookie"?u[o]=(u[o]?u[o]:[]).concat([t]):u[o]=u[o]?u[o]+", "+t:t}}),u},parseHeaders}var isURLSameOrigin,hasRequiredIsURLSameOrigin;function requireIsURLSameOrigin(){if(hasRequiredIsURLSameOrigin)return isURLSameOrigin;hasRequiredIsURLSameOrigin=1;var e=utils$8;return isURLSameOrigin=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),u;function o(t){var a=t;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return u=o(window.location.href),function(a){var f=e.isString(a)?o(a):a;return f.protocol===u.protocol&&f.host===u.host}}():function(){return function(){return!0}}(),isURLSameOrigin}var Cancel_1,hasRequiredCancel;function requireCancel(){if(hasRequiredCancel)return Cancel_1;hasRequiredCancel=1;function e(l){this.message=l}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,Cancel_1=e,Cancel_1}var xhr,hasRequiredXhr;function requireXhr(){if(hasRequiredXhr)return xhr;hasRequiredXhr=1;var e=utils$8,l=requireSettle(),n=requireCookies(),r=buildURL$1,u=requireBuildFullPath(),o=requireParseHeaders(),t=requireIsURLSameOrigin(),a=requireCreateError(),f=requireDefaults(),m=requireCancel();return xhr=function($){return new Promise(function(I,v){var y=$.data,x=$.headers,P=$.responseType,R;function Y(){$.cancelToken&&$.cancelToken.unsubscribe(R),$.signal&&$.signal.removeEventListener("abort",R)}e.isFormData(y)&&delete x["Content-Type"];var L=new XMLHttpRequest;if($.auth){var q=$.auth.username||"",U=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";x.Authorization="Basic "+btoa(q+":"+U)}var N=u($.baseURL,$.url);L.open($.method.toUpperCase(),r(N,$.params,$.paramsSerializer),!0),L.timeout=$.timeout;function G(){if(!!L){var f2="getAllResponseHeaders"in L?o(L.getAllResponseHeaders()):null,W=!P||P==="text"||P==="json"?L.responseText:L.response,C2={data:W,status:L.status,statusText:L.statusText,headers:f2,config:$,request:L};l(function(w2){I(w2),Y()},function(w2){v(w2),Y()},C2),L=null}}if("onloadend"in L?L.onloadend=G:L.onreadystatechange=function(){!L||L.readyState!==4||L.status===0&&!(L.responseURL&&L.responseURL.indexOf("file:")===0)||setTimeout(G)},L.onabort=function(){!L||(v(a("Request aborted",$,"ECONNABORTED",L)),L=null)},L.onerror=function(){v(a("Network Error",$,null,L)),L=null},L.ontimeout=function(){var W=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded",C2=$.transitional||f.transitional;$.timeoutErrorMessage&&(W=$.timeoutErrorMessage),v(a(W,$,C2.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",L)),L=null},e.isStandardBrowserEnv()){var D=($.withCredentials||t(N))&&$.xsrfCookieName?n.read($.xsrfCookieName):void 0;D&&(x[$.xsrfHeaderName]=D)}"setRequestHeader"in L&&e.forEach(x,function(W,C2){typeof y>"u"&&C2.toLowerCase()==="content-type"?delete x[C2]:L.setRequestHeader(C2,W)}),e.isUndefined($.withCredentials)||(L.withCredentials=!!$.withCredentials),P&&P!=="json"&&(L.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&L.addEventListener("progress",$.onDownloadProgress),typeof $.onUploadProgress=="function"&&L.upload&&L.upload.addEventListener("progress",$.onUploadProgress),($.cancelToken||$.signal)&&(R=function(f2){!L||(v(!f2||f2&&f2.type?new m("canceled"):f2),L.abort(),L=null)},$.cancelToken&&$.cancelToken.subscribe(R),$.signal&&($.signal.aborted?R():$.signal.addEventListener("abort",R))),y||(y=null),L.send(y)})},xhr}var defaults_1,hasRequiredDefaults;function requireDefaults(){if(hasRequiredDefaults)return defaults_1;hasRequiredDefaults=1;var e=utils$8,l=normalizeHeaderName,n=enhanceError,r={"Content-Type":"application/x-www-form-urlencoded"};f
2024-04-28 13:26:15 +00:00
* vue-i18n v9.11.1
* (c) 2024 kazuya kawaguchi
* Released under the MIT License.
*/var shared=require$$0,coreBase=require$$1,vue=require$$2;const VERSION="9.11.1",code$1=coreBase.CoreWarnCodes.__EXTEND_POINT__,inc$1=shared.incrementer(code$1),I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1(),IGNORE_OBJ_FLATTEN:inc$1(),NOTICE_DROP_ALLOW_COMPOSITION:inc$1(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope.",[I18nWarnCodes.IGNORE_OBJ_FLATTEN]:"Ignore object flatten: '{key}' key has an string value",[I18nWarnCodes.NOTICE_DROP_ALLOW_COMPOSITION]:"'allowComposition' option will be dropped in the next major version. For more information, please see \u{1F449} https://tinyurl.com/2p97mcze",[I18nWarnCodes.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG]:"'translateExistCompatible' option will be dropped in the next major version."};function getWarnMessage(e,...l){return shared.format(warnMessages[e],...l)}const code=coreBase.CoreErrorCodes.__EXTEND_POINT__,inc=shared.incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(e,...l){return coreBase.createCompileError(e,null,{messages:errorMessages,args:l})}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSTALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TranslateVNodeSymbol=shared.makeSymbol("__translateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");shared.makeSymbol("__intlifyMeta");const InejctWithOptionSymbol=shared.makeSymbol("__injectWithOption"),DisposeSymbol=shared.makeSymbol("__dispose"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(e){if(!shared.isObject(e))return
Mock - 模拟请求 & 模拟数据
https://github.com/nuysoft/Mock
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
*/var _={Handler:r,Random:o,Util:u,XHR:m,RE:t,toJSONSchema:a,valid:f,heredoc:u.heredoc,setup:function($){return m.setup($)},_mocked:{}};_.version="1.0.1-beta3",m&&(m.Mock=_),_.mock=function($,S,I){return arguments.length===1?r.gen($):(arguments.length===2&&(I=S,S=void 0),m&&(window.XMLHttpRequest=m),_._mocked[$+(S||"")]={rurl:$,rtype:S,template:I},_)},e.exports=_},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function(e,l,n){l=l==null?"":l+"",n=n||{},n={path:n.path||[Constant.GUID],templatePath:n.templatePath||[Constant.GUID++],currentContext:n.currentContext,templateCurrentContext:n.templateCurrentContext||e,root:n.root||n.currentContext,templateRoot:n.templateRoot||n.templateCurrentContext||e};var r=Parser.parse(l),u=Util.type(e),o;return Handler[u]?(o=Handler[u]({type:u,template:e,name:l,parsedName:l&&l.replace(Constant.RE_KEY,"$1"),rule:r,context:n}),n.root||(n.root=o),o):e},Handler.extend({array:function(e){var l=[],n,r;if(e.template.length===0)return l;if(e.rule.parameters)if(e.rule.min===1&&e.rule.max===void 0)e.context.path.push(e.name),e.context.templatePath.push(e.name),l=Random.pick(Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:l,templateCurrentContext:e.template,root:e.context.root||l,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();else if(e.rule.parameters[2])e.template.__order_index=e.template.__order_index||0,e.context.path.push(e.name),e.context.templatePath.push(e.name),l=Handler.gen(e.template,void 0,{path:e.context.path,templatePath:e.context.templatePath,currentContext:l,templateCurrentContext:e.template,root:e.context.root||l,templateRoot:e.context.templateRoot||e.template})[e.template.__order_index%e.template.length],e.template.__order_index+=+e.rule.parameters[2],e.context.path.pop(),e.context.templatePath.pop();else for(n=0;n<e.rule.count;n++)for(r=0;r<e.template.length;r++)e.context.path.push(l.length),e.context.templatePath.push(r),l.push(Handler.gen(e.template[r],l.length,{path:e.context.path,templatePath:e.context.templatePath,currentContext:l,templateCurrentContext:e.template,root:e.context.root||l,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();else for(n=0;n<e.template.length;n++)e.context.path.push(n),e.context.templatePath.push(n),l.push(Handler.gen(e.template[n],n,{path:e.context.path,templatePath:e.context.templatePath,currentContext:l,templateCurrentContext:e.template,root:e.context.root||l,templateRoot:e.context.templateRoot||e.template})),e.context.path.pop(),e.context.templatePath.pop();return l},object:function(e){var l={},n,r,u,o,t,a;if(e.rule.min!=null)for(n=Util.keys(e.template),n=Random.shuffle(n),n=n.slice(0,e.rule.count),a=0;a<n.length;a++)u=n[a],o=u.replace(Constant.RE_KEY,"$1"),e.context.path.push(o),e.context.templatePath.push(u),l[o]=Handler.gen(e.template[u],u,{path:e.context.path,templatePath:e.context.templatePath,currentContext:l,templateCurrentContext:e.template,root:e.context.root||l,templateRoot:e.context.templateRoot||e.template}),e.context.path.pop(),e.context.templatePath.pop();else{n=[],r=[];for(u in e.template)(typeof e.template[u]=="function"?r:n).push(u);for(n=n.concat(r),a=0;a<n.length;a++)u=n[a],o=u.replace(Constant.RE_KEY,"$1"),e.context.path.push(o),e.context.templatePath.push(u),l[o]=Handler.gen(e.template[u],u,{path:e.context.path,templatePath:e.context.templatePath,currentContext:l,templateCurrentContext:e.template,root:e.context.root||l,templateRoot:e.context.templateRoot||e.template}),e.context.path.pop(),e.context.templatePath.pop(),t=u.match(Constant.RE_KEY),t&&t[2]&&Util.type(e.template[u])==="number"&&(e.template[u]+=parseInt(t[2],10))}return l},number:function(e){var l,n;if(e.rule.decimal){for(e.template+="",n=e.template.split("."),n[0]=e.rule.range?e.rule.count:n[0],n[1]=(n[1]||"").slice(0,e.rule
`?(T.seenCR||T.line++,T.column=1,T.seenCR=!1):ge==="\r"||ge==="\u2028"||ge==="\u2029"?(T.line++,T.column=1,T.seenCR=!0):(T.column++,T.seenCR=!1)}return _e!==c&&(_e>c&&(_e=0,dn={line:1,column:1,seenCR:!1}),g(dn,_e,c),_e=c),dn}function W(c){Je>b||(b>Je&&(Je=b,Ye=[]),Ye.push(c))}function C2(c){var g=0;for(c.sort();g<c.length;)c[g-1]===c[g]?c.splice(g,1):g++}function g2(){var c,g,T,e2,b2;return c=b,g=w2(),g!==null?(T=b,N.charCodeAt(b)===124?(e2=Q3,b++):(e2=null,J===0&&W(Y2)),e2!==null?(b2=g2(),b2!==null?(e2=[e2,b2],T=e2):(b=T,T=t2)):(b=T,T=t2),T===null&&(T=m3),T!==null?(a2=c,g=W3(g,T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2),c}function w2(){var c,g,T,e2,b2;if(c=b,g=_2(),g===null&&(g=m3),g!==null)if(T=b,J++,e2=P2(),J--,e2===null?T=m3:(b=T,T=t2),T!==null){for(e2=[],b2=z2(),b2===null&&(b2=B2());b2!==null;)e2.push(b2),b2=z2(),b2===null&&(b2=B2());e2!==null?(b2=A2(),b2===null&&(b2=m3),b2!==null?(a2=c,g=V3(g,e2,b2),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2)}else b=c,c=t2;else b=c,c=t2;return c}function B2(){var c;return c=v2(),c===null&&(c=H(),c===null&&(c=y3())),c}function _2(){var c,g;return c=b,N.charCodeAt(b)===94?(g=ee,b++):(g=null,J===0&&W(a3)),g!==null&&(a2=c,g=ke()),g===null&&(b=c),c=g,c}function A2(){var c,g;return c=b,N.charCodeAt(b)===36?(g=$e,b++):(g=null,J===0&&W(t3)),g!==null&&(a2=c,g=Qe()),g===null&&(b=c),c=g,c}function z2(){var c,g,T;return c=b,g=B2(),g!==null?(T=P2(),T!==null?(a2=c,g=N3(g,T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2),c}function P2(){var c,g,T;return J++,c=b,g=x2(),g!==null?(T=K(),T===null&&(T=m3),T!==null?(a2=c,g=r3(g,T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2),J--,c===null&&(g=null,J===0&&W(nn)),c}function x2(){var c;return c=M2(),c===null&&(c=j2(),c===null&&(c=H2(),c===null&&(c=V2(),c===null&&(c=O2(),c===null&&(c=q2()))))),c}function M2(){var c,g,T,e2,b2,E3;return c=b,N.charCodeAt(b)===123?(g=p3,b++):(g=null,J===0&&W(u3)),g!==null?(T=s2(),T!==null?(N.charCodeAt(b)===44?(e2=A3,b++):(e2=null,J===0&&W(ye)),e2!==null?(b2=s2(),b2!==null?(N.charCodeAt(b)===125?(E3=z3,b++):(E3=null,J===0&&W($3)),E3!==null?(a2=c,g=be(T,b2),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2)):(b=c,c=t2)):(b=c,c=t2)):(b=c,c=t2),c}function j2(){var c,g,T,e2;return c=b,N.charCodeAt(b)===123?(g=p3,b++):(g=null,J===0&&W(u3)),g!==null?(T=s2(),T!==null?(N.substr(b,2)===ne?(e2=ne,b+=2):(e2=null,J===0&&W(le)),e2!==null?(a2=c,g=$2(T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2)):(b=c,c=t2),c}function H2(){var c,g,T,e2;return c=b,N.charCodeAt(b)===123?(g=p3,b++):(g=null,J===0&&W(u3)),g!==null?(T=s2(),T!==null?(N.charCodeAt(b)===125?(e2=z3,b++):(e2=null,J===0&&W($3)),e2!==null?(a2=c,g=Ce(T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2)):(b=c,c=t2),c}function V2(){var c,g;return c=b,N.charCodeAt(b)===43?(g=ln,b++):(g=null,J===0&&W(c3)),g!==null&&(a2=c,g=tn()),g===null&&(b=c),c=g,c}function O2(){var c,g;return c=b,N.charCodeAt(b)===42?(g=Se,b++):(g=null,J===0&&W(rn)),g!==null&&(a2=c,g=we()),g===null&&(b=c),c=g,c}function q2(){var c,g;return c=b,N.charCodeAt(b)===63?(g=Ie,b++):(g=null,J===0&&W(te)),g!==null&&(a2=c,g=Ee()),g===null&&(b=c),c=g,c}function K(){var c;return N.charCodeAt(b)===63?(c=Ie,b++):(c=null,J===0&&W(te)),c}function s2(){var c,g,T;if(c=b,g=[],ue.test(N.charAt(b))?(T=N.charAt(b),b++):(T=null,J===0&&W(oe)),T!==null)for(;T!==null;)g.push(T),ue.test(N.charAt(b))?(T=N.charAt(b),b++):(T=null,J===0&&W(oe));else g=t2;return g!==null&&(a2=c,g=h3(g)),g===null&&(b=c),c=g,c}function v2(){var c,g,T,e2;return c=b,N.charCodeAt(b)===40?(g=q3,b++):(g=null,J===0&&W(_3)),g!==null?(T=I2(),T===null&&(T=T2(),T===null&&(T=Q(),T===null&&(T=d2()))),T!==null?(N.charCodeAt(b)===41?(e2=ie,b++):(e2=null,J===0&&W(se)),e2!==null?(a2=c,g=ae(T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2)):(b=c,c=t2),c}function d2(){var c,g;return c=b,g=g2(),g!==null&&(a2=c,g=ce(g)),g===null&&(b=c),c=g,c}function Q(){var c,g,T;return c=b,N.substr(b,2)===U3?(g=U3,b+=2):(g=null,J===0&&W(Be)),g!==null?(T=g2(),T!==null?(a2=c,g=xe(T),g===null&&(b=c),c=g):(b=c,c=t2)):(b=c,c=t2),c}function I2(){var c,g,T;return c=b,N.substr(b,2)===Fe?(g=Fe,b+=2):(g=null,J===0&&W(Pe)),g!==null?(
\r \v\xA0\u2028\u2029`,S={"\\w":t+a+f+"_","\\W":m.replace("_",""),"\\s":$,"\\S":function(){for(var v=_,y=0;y<$.length;y++)v=v.replace($[y],"");return v}(),"\\d":f,"\\D":t+a+m};function I(v,y){for(var x="",P=v;P<=y;P++)x+=String.fromCharCode(P);return x}o.gen=function(v,y,x){return x=x||{guid:1},o[v.type]?o[v.type](v,y,x):o.token(v,y,x)},o.extend({token:function(v,y,x){switch(v.type){case"start":case"end":return"";case"any-character":return u.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return u.pick(f.split(""));case"non-digit":return u.pick((t+a+m).split(""));case"form-feed":break;case"line-feed":return v.body||v.text;case"carriage-return":break;case"white-space":return u.pick($.split(""));case"non-white-space":return u.pick((t+a+f).split(""));case"tab":break;case"vertical-tab":break;case"word":return u.pick((t+a+f).split(""));case"non-word":return u.pick(m.replace("_","").split(""))}return v.body||v.text},alternate:function(v,y,x){return this.gen(u.boolean()?v.left:v.right,y,x)},match:function(v,y,x){y="";for(var P=0;P<v.body.length;P++)y+=this.gen(v.body[P],y,x);return y},"capture-group":function(v,y,x){return y=this.gen(v.body,y,x),x[x.guid++]=y,y},"non-capture-group":function(v,y,x){return this.gen(v.body,y,x)},"positive-lookahead":function(v,y,x){return this.gen(v.body,y,x)},"negative-lookahead":function(v,y,x){return""},quantified:function(v,y,x){y="";for(var P=this.quantifier(v.quantifier),R=0;R<P;R++)y+=this.gen(v.body,y,x);return y},quantifier:function(v,y,x){var P=Math.max(v.min,0),R=isFinite(v.max)?v.max:P+u.integer(3,7);return u.integer(P,R)},charset:function(v,y,x){if(v.invert)return this["invert-charset"](v,y,x);var P=u.pick(v.body);return this.gen(P,y,x)},"invert-charset":function(v,y,x){for(var P=_,R=0,Y;R<v.body.length;R++)switch(Y=v.body[R],Y.type){case"literal":P=P.replace(Y.body,"");break;case"range":for(var L=this.gen(Y.start,y,x).charCodeAt(),q=this.gen(Y.end,y,x).charCodeAt(),U=L;U<=q;U++)P=P.replace(String.fromCharCode(U),"");default:var N=S[Y.text];if(N)for(var G=0;G<=N.length;G++)P=P.replace(N[G],"")}return u.pick(P.split(""))},range:function(v,y,x){var P=this.gen(v.start,y,x).charCodeAt(),R=this.gen(v.end,y,x).charCodeAt();return String.fromCharCode(u.integer(P,R))},literal:function(v,y,x){return v.escaped?v.body:v.text},unicode:function(v,y,x){return String.fromCharCode(parseInt(v.code,16))},hex:function(v,y,x){return String.fromCharCode(parseInt(v.code,16))},octal:function(v,y,x){return String.fromCharCode(parseInt(v.code,8))},"back-reference":function(v,y,x){return x[v.code]||""},CONTROL_CHARACTER_MAP:function(){for(var v="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),y=`\0       \x07 \b
\v \f \r              \x1B    `.split(" "),x={},P=0;P<v.length;P++)x[v[P]]=y[P];return x}(),"control-character":function(v,y,x){return this.CONTROL_CHARACTER_MAP[v.code]}}),e.exports=o},function(e,l,n){e.exports=n(24)},function(e,l,n){var r=n(2),u=n(3),o=n(4);function t(a,f,m){m=m||[];var _={name:typeof f=="string"?f.replace(r.RE_KEY,"$1"):f,template:a,type:u.type(a),rule:o.parse(f)};switch(_.path=m.slice(0),_.path.push(f===void 0?"ROOT":_.name),_.type){case"array":_.items=[],u.each(a,function($,S){_.items.push(t($,S,_.path))});break;case"object":_.properties=[],u.each(a,function($,S){_.properties.push(t($,S,_.path))});break}return _}e.exports=t},function(e,l,n){e.exports=n(26)},function(e,l,n){var r=n(2),u=n(3),o=n(23);function t(m,_){for(var $=o(m),S=a.diff($,_),I=0;I<S.length;I++);return S}var a={diff:function(_,$,S){var I=[];return this.name(_,$,S,I)&&this.type(_,$,S,I)&&(this.value(_,$,S,I),this.properties(_,$,S,I),this.items(_,$,S,I)),I},name:function(m,_,$,S){var I=S.length;return f.equal("name",m.path,$+"",m.name+"",S),S.length===I},type:function(m,_,$,S){var I=S.length;switch(m.type){case"string":if(m.template.match(r.RE_PLACEHOLDER))return!0;break;case"array":if(m.rule.parameters&&(m.rule.min!==void 0&&m.rule.max===void 0&&m.rule.count===1||m.rule.parameters[2]))return!0;break;case"function":return!0}return f.equal("type",m.path,u.type(_),m.type,S),S.length===I},value:function(m,_,$,S){var I=S.length,v=m.rule,y=m.type;if(y==="object"||y==="array"||y==="function")return!0;if(!v.parameters){switch(y){case"regexp":return f.match("value",m.path,_,m.template,S),S.length===I;case"string":if(m.template.match(r.RE_PLACEHOLDER))return S.length===I;break}return f.equal("value",m.path,_,m.template,S),S.length===I}var x;switch(y){case"number":var P=(_+"").split(".");P[0]=+P[0],v.min!==void 0&&v.max!==void 0&&(f.greaterThanOrEqualTo("value",m.path,P[0],Math.min(v.min,v.max),S),f.lessThanOrEqualTo("value",m.path,P[0],Math.max(v.min,v.max),S)),v.min!==void 0&&v.max===void 0&&f.equal("value",m.path,P[0],v.min,S,"[value] "+$),v.decimal&&(v.dmin!==void 0&&v.dmax!==void 0&&(f.greaterThanOrEqualTo("value",m.path,P[1].length,v.dmin,S),f.lessThanOrEqualTo("value",m.path,P[1].length,v.dmax,S)),v.dmin!==void 0&&v.dmax===void 0&&f.equal("value",m.path,P[1].length,v.dmin,S));break;case"boolean":break;case"string":x=_.match(new RegExp(m.template,"g")),x=x?x.length:0,v.min!==void 0&&v.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",m.path,x,v.min,S),f.lessThanOrEqualTo("repeat count",m.path,x,v.max,S)),v.min!==void 0&&v.max===void 0&&f.equal("repeat count",m.path,x,v.min,S);break;case"regexp":x=_.match(new RegExp(m.template.source.replace(/^\^|\$$/g,""),"g")),x=x?x.length:0,v.min!==void 0&&v.max!==void 0&&(f.greaterThanOrEqualTo("repeat count",m.path,x,v.min,S),f.lessThanOrEqualTo("repeat count",m.path,x,v.max,S)),v.min!==void 0&&v.max===void 0&&f.equal("repeat count",m.path,x,v.min,S);break}return S.length===I},properties:function(m,_,$,S){var I=S.length,v=m.rule,y=u.keys(_);if(!!m.properties){if(m.rule.parameters?(v.min!==void 0&&v.max!==void 0&&(f.greaterThanOrEqualTo("properties length",m.path,y.length,Math.min(v.min,v.max),S),f.lessThanOrEqualTo("properties length",m.path,y.length,Math.max(v.min,v.max),S)),v.min!==void 0&&v.max===void 0&&v.count!==1&&f.equal("properties length",m.path,y.length,v.min,S)):f.equal("properties length",m.path,y.length,m.properties.length,S),S.length!==I)return!1;for(var x=0;x<y.length;x++)S.push.apply(S,this.diff(function(){var P;return u.each(m.properties,function(R){R.name===y[x]&&(P=R)}),P||m.properties[x]}(),_[y[x]],y[x]));return S.length===I}},items:function(m,_,$,S){var I=S.length;if(!!m.items){var v=m.rule;if(!m.rule.parameters)f.equal("items length",m.path,_.length,m.items.length,S);else{if(v.min!==void 0&&v.max!==void 0&&(f.greaterThanOrEqualTo("items",m.path,_.length,Math.min(v.min,v.max)*m.items.length,S,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),f.lessThanOrEqualTo("items",m.path,_.length,Math.max(v.
`);return v},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),r.extend(m.prototype,{addEventListener:function(v,y){var x=this.custom.events;x[v]||(x[v]=[]),x[v].push(y)},removeEventListener:function(v,y){for(var x=this.custom.events[v]||[],P=0;P<x.length;P++)x[P]===y&&x.splice(P--,1)},dispatchEvent:function(v){for(var y=this.custom.events[v.type]||[],x=0;x<y.length;x++)y[x].call(this,v);var P="on"+v.type;this[P]&&this[P](v)}});function _(){var I=function(){var x=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,P=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,R=location.href,Y=P.exec(R.toLowerCase())||[];return x.test(Y[1])}();return window.ActiveXObject?!I&&v()||y():v();function v(){try{return new window._XMLHttpRequest}catch{}}function y(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function $(I){for(var v in m.Mock._mocked){var y=m.Mock._mocked[v];if((!y.rurl||x(y.rurl,I.url))&&(!y.rtype||x(y.rtype,I.type.toLowerCase())))return y}function x(P,R){if(r.type(P)==="string")return P===R;if(r.type(P)==="regexp")return P.test(R)}}function S(I,v){return r.isFunction(I.template)?I.template(v):m.Mock.mock(I.template)}e.exports=m}])})})(mock);const Mock=mock.exports,debug=!1,setupMock=({mock:e,setup:l})=>{e!==!1&&debug&&l()},successResponseWrap=e=>({data:e,status:"ok",msg:"\u8BF7\u6C42\u6210\u529F",code:2e4}),failResponseWrap=(e,l,n=5e4)=>({data:e,status:"fail",msg:l,code:n});setupMock({setup(){Mock.mock(new RegExp("/api/user/info"),()=>{if(isLogin()){const e=window.localStorage.getItem("userRole")||"admin";return successResponseWrap({name:"\u738B\u7ACB\u7FA4",avatar:"//lf1-xgcdn-tos.pstatp.com/obj/vcloud/vadmin/start.8e0e4855ee346a46ccff8ff3e24db27b.png",email:"wangliqun@email.com",job:"frontend",jobName:"\u524D\u7AEF\u827A\u672F\u5BB6",organization:"Frontend",organizationName:"\u524D\u7AEF",location:"beijing",locationName:"\u5317\u4EAC",introduction:"\u4EBA\u6F47\u6D12\uFF0C\u6027\u6E29\u5B58",personalWebsite:"https://www.arco.design",phone:"150****0000",registrationDate:"2013-05-10 12:10:00",accountId:"15012312300",certification:1,role:e})}return failResponseWrap(null,"\u672A\u767B\u5F55",50008)}),Mock.mock(new RegExp("/api/user/login"),e=>{const{username:l,password:n}=JSON.parse(e.body);return l?n?l==="admin"&&n==="admin"?(window.localStorage.setItem("userRole","admin"),successResponseWrap({token:"12345"})):l==="user"&&n==="user"?(window.localStorage.setItem("userRole","user"),successResponseWrap({token:"54321"})):failResponseWrap(null,"\u8D26\u53F7\u6216\u8005\u5BC6\u7801\u9519\u8BEF",5e4):failResponseWrap(null,"\u5BC6\u7801\u4E0D\u80FD\u4E3A\u7A7A",5e4):failResponseWrap(null,"\u7528\u6237\u540D\u4E0D\u80FD\u4E3A\u7A7A",5e4)}),Mock.mock(new RegExp("/api/user/logout"),()=>successResponseWrap(null)),Mock.mock(new RegExp("/api/user/menu"),()=>successResponseWrap([{path:"/dashboard",name:"dashboard",meta:{locale:"menu.server.dashboard",requiresAuth:!0,icon:"icon-dashboard",order:1},children:[{path:"workplace",name:"Workplace",meta:{locale:"menu.server.workplace",requiresAuth:!0}},{path:"https://arco.design",name:"arcoWebsite",meta:{locale:"menu.arcoWebsite",requiresAuth:!0}}]}]))}});const haveReadIds=[],getMessageList=()=>[{id:1,type:"message",title:"\u90D1\u66E6\u6708",subTitle:"\u7684\u79C1\u4FE1",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/8361eeb82904210b4f55fab888fe8416.png~tplv-uwbnlip3yd-webp.webp",content:"\u5BA1\u6279\u8BF7\u6C42\u5DF2\u53D1\u9001\uFF0C\u8BF7\u67E5\u6536",time:"\u4ECA\u5929 12:30:01"},{id:2,type:"message",title:"\u5B81\u6CE2",subTitle:"\u7684\u56DE\u590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:"\u6B64\u5904 bug \u5DF2\u7ECF\u4FEE\u590D",time:"\u4ECA\u5929 12:30:01"},{id:3,type:"message",title:"\u5B81\u6CE2",subTitle:"\u7684\u56DE\u590D",avatar:"//p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/3ee5f13fb09879ecb5185e440cef6eb9.png~tplv-uwbnlip3yd-webp.webp",content:"\u6B64\u5904 bug \u5DF2\u7ECF\u4FEE\u590D",time:"\u4ECA\u5929 12:20:01"},{id:4,ty
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _arrayLikeToArray(e,l){(l==null||l>e.length)&&(l=e.length);for(var n=0,r=new Array(l);n<l;n++)r[n]=e[n];return r}function _unsupportedIterableToArray(e,l){if(!!e){if(typeof e=="string")return _arrayLikeToArray(e,l);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,l)}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _typeof(e){return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},_typeof(e)}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function toPrimitive(e,l){if(_typeof(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,l||"default");if(_typeof(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(l==="string"?String:Number)(e)}function toPropertyKey(e){var l=toPrimitive(e,"string");return _typeof(l)=="symbol"?l:l+""}function _defineProperty$2(e,l,n){return l=toPropertyKey(l),l in e?Object.defineProperty(e,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[l]=n,e}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function isObject$7(e){var l=_typeof(e);return e!=null&&(l=="object"||l=="function")}var isObject_1=isObject$7;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var freeGlobal$1=_typeof(commonjsGlobal)=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=(typeof self>"u"?"undefined":_typeof(self))=="object"&&self&&self.Object===Object&&self,root$1$3=freeGlobal||freeSelf||Function("return this")(),_root=root$1$3,root$7=_root,_Symbol2=root$7.Symbol,_Symbol$2=_Symbol2,_Symbol$1=_Symbol$2,objectProto$1$3=Object.prototype,hasOwnProperty$8=objectProto$1$3.hasOwnProperty,nativeObjectToString$1=objectProto$1$3.toString,symToStringTag$1=_Symbol$1?_Symbol$1.toStringTag:void 0;function getRawTag$1(e){var l=hasOwnProperty$8.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var r=!0}catch{}var u=nativeObjectToString$1.call(e);return r&&(l?e[symToStringTag$1]=n:delete e[symToStringTag$1]),u}var _getRawTag=getRawTag$1,objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,_Symbol$3=_Symbol$2,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol$3?_Symbol$3.toStringTag:void 0;function baseGetTag$7(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$7;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseGetTag$6=_baseGetTag,isObject$6=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(e){if(!isObject$6(e))return!1;var l=baseGetTag$6(e);return l==funcTag$1||l==genTag||l==asyncTag||l==proxyTag}var isFunction_1=isFunction$3;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var root$1$2=_root,coreJsData$1=root$1$2["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$1(e){if(e!=null){try{return funcToString$1.call(e)}catch{}try{return e+""}catch{}}return""}var _toSource=toSource$1,isFunction$2=isFunction_1,isMasked=_isMasked,isObject$5=isObject_1,toSource$2=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$2=Function.prototype,objectProto$8=Object.prototype,funcToString$2=funcProto$2.toString,hasOwnProperty$7=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString$2.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){if(!isObject$5(e)||isMasked(e))return!1;var l=isFunction$2(e)?reIsNative:reIsHostCtor;return l.test(toSource$2(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,l){return e==null?void 0:e[l]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$1$1(e,l){var n=getValue(e,l);return baseIsNative(n)?n:void 0}var _getNative=getNative$1$1,getNative$6=_getNative,root$6=_root,Map$4=getNative$6(root$6,"Map"),_Map=Map$4;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var getNative$5=_getNative,defineProperty$2=function(){try{var e=getNative$5(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_defineProperty$1=defineProperty$2;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function eq$4(e,l){return e===l||e!==e&&l!==l}var eq_1=eq$4;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var defineProperty$1=_defineProperty$1;function baseAssignValue$1$1(e,l,n){l=="__proto__"&&defineProperty$1?defineProperty$1(e,l,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[l]=n}var _baseAssignValue=baseAssignValue$1$1,baseAssignValue$2=_baseAssignValue,eq$3=eq_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function assignValue$1(e,l,n){var r=e[l];(!(hasOwnProperty$6.call(e,l)&&eq$3(r,n))||n===void 0&&!(l in e))&&baseAssignValue$2(e,l,n)}var _assignValue=assignValue$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1,eq$2=eq_1;function assocIndexOf$4(e,l){for(var n=e.length;n--;)if(eq$2(e[n][0],l))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var l=this.__data__,n=assocIndexOf$3(l,e);if(n<0)return!1;var r=l.length-1;return n==r?l.pop():splice.call(l,n,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var l=this.__data__,n=assocIndexOf$2(l,e);return n<0?void 0:l[n][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,l){var n=this.__data__,r=assocIndexOf(n,e);return r<0?(++this.size,n.push([e,l])):n[r][1]=l,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$1$1(e){var l=-1,n=e==null?0:e.length;for(this.clear();++l<n;){var r=e[l];this.set(r[0],r[1])}}ListCache$1$1.prototype.clear=listCacheClear;ListCache$1$1.prototype.delete=listCacheDelete;ListCache$1$1.prototype.get=listCacheGet;ListCache$1$1.prototype.has=listCacheHas;ListCache$1$1.prototype.set=listCacheSet;var _ListCache=ListCache$1$1,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var l=this.has(e)&&delete this.__data__[e];return this.size-=l?1:0,l}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$1$2=Object.prototype,hasOwnProperty$1$2=objectProto$1$2.hasOwnProperty;function hashGet$1(e){var l=this.__data__;if(nativeCreate$2){var n=l[e];return n===HASH_UNDEFINED$1?void 0:n}return hasOwnProperty$1$2.call(l,e)?l[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function hashHas$1(e){var l=this.__data__;return nativeCreate$1?l[e]!==void 0:hasOwnProperty$5.call(l,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,l){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&l===void 0?HASH_UNDEFINED:l,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var l=-1,n=e==null?0:e.length;for(this.clear();++l<n;){var r=e[l];this.set(r[0],r[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var l=_typeof(e);return l=="string"||l=="number"||l=="symbol"||l=="boolean"?e!=="__proto__":e===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,l){var n=e.__data__;return isKeyable(l)?n[typeof l=="string"?"string":"hash"]:n.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var l=getMapData$3(this,e).delete(e);return this.size-=l?1:0,l}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,l){var n=getMapData(this,e),r=n.size;return n.set(e,l),this.size+=n.size==r?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var MAX_SAFE_INTEGER$1=9007199254740991;function isLength$1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$1,isFunction$1=isFunction_1,isLength$2=isLength_1;function isArrayLike$4(e){return e!=null&&isLength$2(e.length)&&!isFunction$1(e)}var isArrayLike_1=isArrayLike$4;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function isObjectLike$6(e){return e!=null&&_typeof(e)=="object"}var isObjectLike_1=isObjectLike$6;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function baseUnary$1(e){return function(l){return e(l)}}var _baseUnary=baseUnary$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var isBuffer$3={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;(function(e,l){var n=_root,r=stubFalse_1,u=l&&!l.nodeType&&l,o=u&&!0&&e&&!e.nodeType&&e,t=o&&o.exports===u,a=t?n.Buffer:void 0,f=a?a.isBuffer:void 0,m=f||r;e.exports=m})(isBuffer$3,isBuffer$3.exports);isBuffer$3.exports;var baseGetTag$5=_baseGetTag,isLength=isLength_1,isObjectLike$5=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$2="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$2]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$2]=typedArrayTags[stringTag$1]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(e){return isObjectLike$5(e)&&isLength(e.length)&&!!typedArrayTags[baseGetTag$5(e)]}var _baseIsTypedArray=baseIsTypedArray$1,_nodeUtil$1={exports:{}};(function(e,l){var n=_freeGlobal,r=l&&!l.nodeType&&l,u=r&&!0&&e&&!e.nodeType&&e,o=u&&u.exports===r,t=o&&n.process,a=function(){try{var f=u&&u.require&&u.require("util").types;return f||t&&t.binding&&t.binding("util")}catch{}}();e.exports=a})(_nodeUtil$1,_nodeUtil$1.exports);_nodeUtil$1.exports;var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil$1.exports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$3=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$3,objectProto$5=Object.prototype;function isPrototype$3(e){var l=e&&e.constructor,n=typeof l=="function"&&l.prototype||objectProto$5;return e===n}var _isPrototype=isPrototype$3;function overArg$2(e,l){return function(n){return e(l(n))}}var _overArg=overArg$2;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseGetTag$4=_baseGetTag,isObjectLike$1$1=isObjectLike_1,argsTag="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$1$1(e)&&baseGetTag$4(e)==argsTag}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$4=isObjectLike_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty,propertyIsEnumerable=objectProto$4.propertyIsEnumerable,isArguments$3=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$4.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_1=isArguments$3;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var isArray$5=Array.isArray,isArray_1=isArray$5;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var MAX_SAFE_INTEGER=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(e,l){var n=_typeof(e);return l=l==null?MAX_SAFE_INTEGER:l,!!l&&(n=="number"||n!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e<l}var _isIndex=isIndex$2;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function baseTimes$1(e,l){for(var n=-1,r=Array(e);++n<e;)r[n]=l(n);return r}var _baseTimes=baseTimes$1,baseTimes=_baseTimes,isArguments$2=isArguments_1,isArray$4=isArray_1,isBuffer$2=isBuffer$3.exports,isIndex$1=_isIndex,isTypedArray$2=isTypedArray_1,objectProto$1$1=Object.prototype,hasOwnProperty$1$1=objectProto$1$1.hasOwnProperty;function arrayLikeKeys$1(e,l){var n=isArray$4(e),r=!n&&isArguments$2(e),u=!n&&!r&&isBuffer$2(e),o=!n&&!r&&!u&&isTypedArray$2(e),t=n||r||u||o,a=t?baseTimes(e.length,String):[],f=a.length;for(var m in e)(l||hasOwnProperty$1$1.call(e,m))&&!(t&&(m=="length"||u&&(m=="offset"||m=="parent")||o&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||isIndex$1(m,f)))&&a.push(m);return a}var _arrayLikeKeys=arrayLikeKeys$1,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var l=this.__data__,n=l.delete(e);return this.size=l.size,n}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,l){var n=this.__data__;if(n instanceof ListCache$1){var r=n.__data__;if(!Map$2||r.length<LARGE_ARRAY_SIZE-1)return r.push([e,l]),this.size=++n.size,this;n=this.__data__=new MapCache(r)}return n.set(e,l),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(e){var l=this.__data__=new ListCache(e);this.size=l.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,root$5=_root,Uint8Array$1=root$5.Uint8Array,_Uint8Array=Uint8Array$1,_cloneBuffer$1={exports:{}};(function(e,l){var n=_root,r=l&&!l.nodeType&&l,u=r&&!0&&e&&!e.nodeType&&e,o=u&&u.exports===r,t=o?n.Buffer:void 0,a=t?t.allocUnsafe:void 0;function f(m,_){if(_)return m.slice();var $=m.length,S=a?a($):new m.constructor($);return m.copy(S),S}e.exports=f})(_cloneBuffer$1,_cloneBuffer$1.exports);_cloneBuffer$1.exports;var Uint8Array$2=_Uint8Array;function cloneArrayBuffer$1(e){var l=new e.constructor(e.byteLength);return new Uint8Array$2(l).set(new Uint8Array$2(e)),l}var _cloneArrayBuffer=cloneArrayBuffer$1,cloneArrayBuffer=_cloneArrayBuffer;function cloneTypedArray$1(e,l){var n=l?cloneArrayBuffer(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1;function copyArray$1(e,l){var n=-1,r=e.length;for(l||(l=Array(r));++n<r;)l[n]=e[n];return l}var _copyArray=copyArray$1,isObject$1$2=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function e(){}return function(l){if(!isObject$1$2(l))return{};if(objectCreate)return objectCreate(l);e.prototype=l;var n=new e;return e.prototype=void 0,n}}(),_baseCreate=baseCreate$1,overArg$1=_overArg,getPrototype$1=overArg$1(Object.getPrototypeOf,Object),_getPrototype=getPrototype$1,baseCreate=_baseCreate,getPrototype$2=_getPrototype,isPrototype$1$1=_isPrototype;function initCloneObject$1(e){return typeof e.constructor=="function"&&!isPrototype$1$1(e)?baseCreate(getPrototype$2(e)):{}}var _initCloneObject=initCloneObject$1,assignValue=_assignValue,baseAssignValue$1=_baseAssignValue;function copyObject$1(e,l,n,r){var u=!n;n||(n={});for(var o=-1,t=l.length;++o<t;){var a=l[o],f=r?r(n[a],e[a],a,n,e):void 0;f===void 0&&(f=e[a]),u?baseAssignValue$1(n,a,f):assignValue(n,a,f)}return n}var _copyObject=copyObject$1;function nativeKeysIn$1(e){var l=[];if(e!=null)for(var n in Object(e))l.push(n);return l}var _nativeKeysIn=nativeKeysIn$1,isObject$4=isObject_1,isPrototype$2=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$4(e))return nativeKeysIn(e);var l=isPrototype$2(e),n=[];for(var r in e)r=="constructor"&&(l||!hasOw
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function identity$2(e){return e}var identity_1=identity$2;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function apply$1(e,l,n){switch(n.length){case 0:return e.call(l);case 1:return e.call(l,n[0]);case 2:return e.call(l,n[0],n[1]);case 3:return e.call(l,n[0],n[1],n[2])}return e.apply(l,n)}var _apply=apply$1,apply=_apply,nativeMax$1=Math.max;function overRest$1(e,l,n){return l=nativeMax$1(l===void 0?e.length-1:l,0),function(){for(var r=arguments,u=-1,o=nativeMax$1(r.length-l,0),t=Array(o);++u<o;)t[u]=r[l+u];u=-1;for(var a=Array(l+1);++u<l;)a[u]=r[u];return a[l]=n(t),apply(e,this,a)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1,constant=constant_1,defineProperty=_defineProperty$1,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,l){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(l),writable:!0})}:identity$1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(e){var l=0,n=0;return function(){var r=nativeNow(),u=HOT_SPAN-(r-n);if(n=r,u>0){if(++l>=HOT_COUNT)return arguments[0]}else l=0;return e.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$1=shortOut(baseSetToString),_setToString=setToString$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var isArrayLike$2=isArrayLike_1,isObjectLike$3=isObjectLike_1;function isArrayLikeObject$1(e){return isObjectLike$3(e)&&isArrayLike$2(e)}var isArrayLikeObject_1=isArrayLikeObject$1,identity=identity_1,overRest=_overRest,setToString=_setToString;function baseRest$1(e,l){return setToString(overRest(e,l,identity),e+"")}var _baseRest=baseRest$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseGetTag$3=_baseGetTag,getPrototype=_getPrototype,isObjectLike$2=isObjectLike_1,objectTag$1="[object Object]",funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){if(!isObjectLike$2(e)||baseGetTag$3(e)!=objectTag$1)return!1;var l=getPrototype(e);if(l===null)return!0;var n=hasOwnProperty$2.call(l,"constructor")&&l.constructor;return typeof n=="function"&&n instanceof n&&funcToString.call(n)==objectCtorString}var isPlainObject_1=isPlainObject$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var eq$1=eq_1,isArrayLike$1=isArrayLike_1,isIndex=_isIndex,isObject$3=isObject_1;function isIterateeCall$1(e,l,n){if(!isObject$3(n))return!1;var r=_typeof(l);return(r=="number"?isArrayLike$1(n)&&isIndex(l,n.length):r=="string"&&l in n)?eq$1(n[l],e):!1}var _isIterateeCall=isIterateeCall$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var defaultConfig={classPrefix:"t",animation:{include:["ripple","expand","fade"],exclude:[]},calendar:{firstDayOfWeek:1,fillWithZero:!0,controllerConfig:void 0},icon:{},input:{autocomplete:""},dialog:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,confirmBtnTheme:{default:"primary",info:"primary",warning:"primary",danger:"primary",success:"primary"}},message:{},popconfirm:{confirmBtnTheme:{default:"primary",warning:"primary",danger:"primary"}},table:{expandIcon:void 0,sortIcon:void 0,filterIcon:void 0,treeExpandAndFoldIcon:void 0,hideSortTips:!1,size:"medium"},select:{clearIcon:void 0,filterable:!1},drawer:{closeOnEscKeydown:!0,closeOnOverlayClick:!0,size:"small"},tree:{folderIcon:void 0},datePicker:{firstDayOfWeek:1},steps:{checkIcon:void 0,errorIcon:void 0},tag:{closeIcon:void 0},form:{requiredMark:void 0}};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var zhCn={pagination:{itemsPerPage:"{size} \u6761/\u9875",jumpTo:"\u8DF3\u81F3",page:"\u9875",total:"\u5171 {total} \u6761\u6570\u636E"},cascader:{empty:"\u6682\u65E0\u6570\u636E",loadingText:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9"},calendar:{yearSelection:"{year} \u5E74",monthSelection:"{month} \u6708",yearRadio:"\u5E74",monthRadio:"\u6708",hideWeekend:"\u9690\u85CF\u5468\u672B",showWeekend:"\u663E\u793A\u5468\u672B",today:"\u4ECA\u5929",thisMonth:"\u672C\u6708",week:"\u4E00,\u4E8C,\u4E09,\u56DB,\u4E94,\u516D,\u65E5",cellMonth:"1 \u6708,2 \u6708,3 \u6708,4 \u6708,5 \u6708,6 \u6708,7 \u6708,8 \u6708,9 \u6708,10 \u6708,11 \u6708,12 \u6708"},transfer:{title:"{checked} / {total} \u9879",empty:"\u6682\u65E0\u6570\u636E",placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22"},timePicker:{dayjsLocale:"zh-cn",now:"\u6B64\u523B",confirm:"\u786E\u5B9A",anteMeridiem:"\u4E0A\u5348",postMeridiem:"\u4E0B\u5348",placeholder:"\u9009\u62E9\u65F6\u95F4"},dialog:{confirm:"\u786E\u8BA4",cancel:"\u53D6\u6D88"},drawer:{confirm:"\u786E\u8BA4",cancel:"\u53D6\u6D88"},popconfirm:{confirm:{content:"\u786E\u5B9A"},cancel:{content:"\u53D6\u6D88"}},table:{empty:"\u6682\u65E0\u6570\u636E",loadingText:"\u6B63\u5728\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E",loadingMoreText:"\u70B9\u51FB\u52A0\u8F7D\u66F4\u591A",filterInputPlaceholder:"\u8BF7\u8F93\u5165\u5185\u5BB9\uFF08\u65E0\u9ED8\u8BA4\u503C\uFF09",sortAscendingOperationText:"\u70B9\u51FB\u5347\u5E8F",sortCancelOperationText:"\u70B9\u51FB\u53D6\u6D88\u6392\u5E8F",sortDescendingOperationText:"\u70B9\u51FB\u964D\u5E8F",clearFilterResultButtonText:"\u6E05\u7A7A\u7B5B\u9009",columnConfigButtonText:"\u5217\u914D\u7F6E",columnConfigTitleText:"\u8868\u683C\u5217\u914D\u7F6E",columnConfigDescriptionText:"\u8BF7\u9009\u62E9\u9700\u8981\u5728\u8868\u683C\u4E2D\u663E\u793A\u7684\u6570\u636E\u5217",confirmText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",resetText:"\u91CD\u7F6E",selectAllText:"\u5168\u9009",searchResultText:"\u641C\u7D22\u201C{result}\u201D\uFF0C\u627E\u5230 {count} \u6761\u7ED3\u679C"},select:{empty:"\u6682\u65E0\u6570\u636E",loadingText:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9"},tree:{empty:"\u6682\u65E0\u6570\u636E"},treeSelect:{empty:"\u6682\u65E0\u6570\u636E",loadingText:"\u52A0\u8F7D\u4E2D",placeholder:"\u8BF7\u9009\u62E9"},datePicker:{dayjsLocale:"zh-cn",placeholder:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarter:"\u8BF7\u9009\u62E9\u5B63\u5EA6",week:"\u8BF7\u9009\u62E9\u5468"},weekdays:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u65E5"],months:["1 \u6708","2 \u6708","3 \u6708","4 \u6708","5 \u6708","6 \u6708","7 \u6708","8 \u6708","9 \u6708","10 \u6708","11 \u6708","12 \u6708"],quarters:["\u4E00\u5B63\u5EA6","\u4E8C\u5B63\u5EA6","\u4E09\u5B63\u5EA6","\u56DB\u5B63\u5EA6"],rangeSeparator:" - ",direction:"ltr",format:"YYYY-MM-DD",dayAriaLabel:"\u65E5",weekAbbreviation:"\u5468",yearAriaLabel:"\u5E74",monthAriaLabel:"\u6708",confirm:"\u786E\u5B9A",selectTime:"\u9009\u62E9\u65F6\u95F4",selectDate:"\u9009\u62E9\u65E5\u671F",nextYear:"\u4E0B\u4E00\u5E74",preYear:"\u4E0A\u4E00\u5E74",nextMonth:"\u4E0B\u4E2A\u6708",preMonth:"\u4E0A\u4E2A\u6708",preDecade:"\u4E0A\u4E2A\u5341\u5E74",nextDecade:"\u4E0B\u4E2A\u5341\u5E74",now:"\u5F53\u524D"},upload:{sizeLimitMessage:"\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 {sizeLimit}",cancelUploadText:"\u53D6\u6D88\u4E0A\u4F20",triggerUploadText:{fileInput:"\u9009\u62E9\u6587\u4EF6",image:"\u70B9\u51FB\u4E0A\u4F20\u56FE\u7247",normal:"\u70B9\u51FB\u4E0A\u4F20",reupload:"\u91CD\u65B0\u9009\u62E9",continueUpload:"\u7EE7\u7EED\u9009\u62E9",delete:"\u5220\u9664",uploading:"\u4E0A\u4F20\u4E2D"},dragger:{dragDropText:"\u91CA\u653E\u9F20\u6807",draggingText:"\u62D6\u62FD\u5230\u6B64\u533A\u57DF",clickAndDragText:"\u70B9\u51FB\u4E0A\u65B9\u201C\u9009\u62E9\u6587\u4EF6\u201D\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64\u533A\u57DF"},file:{fileNameText:"\u6587\u4EF6\u540D",fileSizeText:"\u6587\u4EF6\u5927\u5C0F",fileStatusText:"\u72B6\u6001",
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function createBaseFor$1(e){return function(l,n,r){for(var u=-1,o=Object(l),t=r(l),a=t.length;a--;){var f=t[e?a:++u];if(n(o[f],f,o)===!1)break}return l}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,baseAssignValue=_baseAssignValue,eq=eq_1;function assignMergeValue$2(e,l,n){(n!==void 0&&!eq(e[l],n)||n===void 0&&!(l in e))&&baseAssignValue(e,l,n)}var _assignMergeValue=assignMergeValue$2;function safeGet$2(e,l){if(!(l==="constructor"&&typeof e[l]=="function")&&l!="__proto__")return e[l]}var _safeGet=safeGet$2,copyObject=_copyObject,keysIn$1=keysIn_1;function toPlainObject$1(e){return copyObject(e,keysIn$1(e))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer=_cloneBuffer$1.exports,cloneTypedArray=_cloneTypedArray,copyArray=_copyArray,initCloneObject=_initCloneObject,isArguments$1=isArguments_1,isArray$3=isArray_1,isArrayLikeObject=isArrayLikeObject_1,isBuffer$1=isBuffer$3.exports,isFunction=isFunction_1,isObject$1$1=isObject_1,isPlainObject=isPlainObject_1,isTypedArray$1=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(e,l,n,r,u,o,t){var a=safeGet$1(e,n),f=safeGet$1(l,n),m=t.get(f);if(m){assignMergeValue$1(e,n,m);return}var _=o?o(a,f,n+"",e,l,t):void 0,$=_===void 0;if($){var S=isArray$3(f),I=!S&&isBuffer$1(f),v=!S&&!I&&isTypedArray$1(f);_=f,S||I||v?isArray$3(a)?_=a:isArrayLikeObject(a)?_=copyArray(a):I?($=!1,_=cloneBuffer(f,!0)):v?($=!1,_=cloneTypedArray(f,!0)):_=[]:isPlainObject(f)||isArguments$1(f)?(_=a,isArguments$1(a)?_=toPlainObject(a):(!isObject$1$1(a)||isFunction(a))&&(_=initCloneObject(f))):$=!1}$&&(t.set(f,_),u(_,f,r,o,t),t.delete(f)),assignMergeValue$1(e,n,_)}var _baseMergeDeep=baseMergeDeep$1,Stack=_Stack,assignMergeValue=_assignMergeValue,baseFor=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$2=isObject_1,keysIn=keysIn_1,safeGet=_safeGet;function baseMerge$2(e,l,n,r,u){e!==l&&baseFor(l,function(o,t){if(u||(u=new Stack),isObject$2(o))baseMergeDeep(e,l,t,n,baseMerge$2,r,u);else{var a=r?r(safeGet(e,t),o,t+"",e,l,u):void 0;a===void 0&&(a=o),assignMergeValue(e,t,a)}},keysIn)}var _baseMerge=baseMerge$2,baseRest=_baseRest,isIterateeCall=_isIterateeCall;function createAssigner$2(e){return baseRest(function(l,n){var r=-1,u=n.length,o=u>1?n[u-1]:void 0,t=u>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(u--,o):void 0,t&&isIterateeCall(n[0],n[1],t)&&(o=u<3?void 0:o,u=1),l=Object(l);++r<u;){var a=n[r];a&&e(l,a,r,o)}return l})}var _createAssigner=createAssigner$2,baseMerge$1=_baseMerge,createAssigner$1=_createAssigner,merge=createAssigner$1(function(e,l,n){baseMerge$1(e,l,n)}),merge_1=merge,baseMerge=_baseMerge,createAssigner=_createAssigner;createAssigner(function(e,l,n,r){baseMerge(e,l,n,r)});var EAnimationType=function(e){return e.ripple="ripple",e.expand="expand",e.fade="fade",e}(EAnimationType||{}),defaultGlobalConfig=merge_1(defaultConfig,zhCn),configProviderInjectKey=Symbol("configProvide");/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var getNative$3=_getNative,root$4=_root,Set$2=getNative$3(root$4,"Set"),_Set=Set$2;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$1=_isPrototype,nativeKeys=_nativeKeys,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$1(e))return nativeKeys(e);var l=[];for(var n in Object(e))hasOwnProperty$1.call(e,n)&&n!="constructor"&&l.push(n);return l}var _baseKeys=baseKeys$1,getNative$2=_getNative,root$2=_root,DataView$1=getNative$2(root$2,"DataView"),_DataView=DataView$1,getNative$1=_getNative,root$1$1=_root,Promise$2=getNative$1(root$1$1,"Promise"),_Promise=Promise$2,getNative=_getNative,root$3=_root,WeakMap$1=getNative(root$3,"WeakMap"),_WeakMap=WeakMap$1,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap=_WeakMap,baseGetTag$2=_baseGetTag,toSource=_toSource,mapTag$1="[object Map]",objectTag="[object Object]",promiseTag="[object Promise]",setTag$1="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag$1=baseGetTag$2;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag$1||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag$1||WeakMap&&getTag$1(new WeakMap)!=weakMapTag)&&(getTag$1=function(l){var n=baseGetTag$2(l),r=n==objectTag?l.constructor:void 0,u=r?toSource(r):"";if(u)switch(u){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag$1;case promiseCtorString:return promiseTag;case setCtorString:return setTag$1;case weakMapCtorString:return weakMapTag}return n});var _getTag=getTag$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseGetTag$1=_baseGetTag,isObjectLike$1=isObjectLike_1,symbolTag="[object Symbol]";function isSymbol$2(e){return _typeof(e)=="symbol"||isObjectLike$1(e)&&baseGetTag$1(e)==symbolTag}var isSymbol_1=isSymbol$2;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function arrayMap$1(e,l){for(var n=-1,r=e==null?0:e.length,u=Array(r);++n<r;)u[n]=l(e[n],n,e);return u}var _arrayMap=arrayMap$1,_Symbol=_Symbol$2,arrayMap=_arrayMap,isArray$2=isArray_1,isSymbol$1=isSymbol_1,INFINITY=1/0,symbolProto=_Symbol?_Symbol.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(e){if(typeof e=="string")return e;if(isArray$2(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$1(e))return symbolToString?symbolToString.call(e):"";var l=e+"";return l=="0"&&1/e==-INFINITY?"-0":l}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$3(e){return e==null?"":baseToString(e)}var toString_1=toString$3;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,l){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,u,o,t,a=[],f=!0,m=!1;try{if(o=(n=n.call(e)).next,l===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=o.call(n)).done)&&(a.push(r.value),a.length!==l);f=!0);}catch(_){m=!0,u=_}finally{try{if(!f&&n.return!=null&&(t=n.return(),Object(t)!==t))return}finally{if(m)throw u}}return a}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _slicedToArray(e,l){return _arrayWithHoles(e)||_iterableToArrayLimit(e,l)||_unsupportedIterableToArray(e,l)||_nonIterableRest()}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function setStyle(e,l){var n=Object.keys(l);n.forEach(function(r){e.style[r]=l[r]})}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseGetTag=_baseGetTag,isArray$1=isArray_1,isObjectLike=isObjectLike_1,stringTag="[object String]";function isString(e){return typeof e=="string"||!isArray$1(e)&&isObjectLike(e)&&baseGetTag(e)==stringTag}var isString_1=isString;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var globalConfigCopy=ref();function useConfig(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,l=arguments.length>1?arguments[1]:void 0,n=getCurrentInstance()?inject(configProviderInjectKey,null):globalConfigCopy,r=computed(function(){return(n==null?void 0:n.value)||defaultGlobalConfig}),u=computed(function(){return Object.assign({},r.value[e],l)}),o=computed(function(){return r.value.classPrefix}),t=function(f){for(var m=arguments.length,_=new Array(m>1?m-1:0),$=1;$<m;$++)_[$-1]=arguments[$];var S=_[0];if(isString_1(f)){if(!S)return f;var I=/\{\s*([\w-]+)\s*\}/g,v=f.replace(I,function(y,x){return S?String(S[x]):""});return v}return isFunction_1(f)?_.length?f.apply(void 0,_):f(h):""};return{t,global:u,globalConfig:u,classPrefix:o}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function usePrefixClass(e){var l=useConfig("classPrefix"),n=l.classPrefix;return computed(function(){return e?"".concat(n.value,"-").concat(e):n.value})}function useCommonClassName$1(){var e=useConfig("classPrefix"),l=e.classPrefix;return{SIZE:computed(function(){return{small:"".concat(l.value,"-size-s"),medium:"".concat(l.value,"-size-m"),large:"".concat(l.value,"-size-l"),default:"",xs:"".concat(l.value,"-size-xs"),xl:"".concat(l.value,"-size-xl"),block:"".concat(l.value,"-size-full-width")}}),STATUS:computed(function(){return{loading:"".concat(l.value,"-is-loading"),loadMore:"".concat(l.value,"-is-load-more"),disabled:"".concat(l.value,"-is-disabled"),focused:"".concat(l.value,"-is-focused"),success:"".concat(l.value,"-is-success"),error:"".concat(l.value,"-is-error"),warning:"".concat(l.value,"-is-warning"),selected:"".concat(l.value,"-is-selected"),active:"".concat(l.value,"-is-active"),checked:"".concat(l.value,"-is-checked"),current:"".concat(l.value,"-is-current"),hidden:"".concat(l.value,"-is-hidden"),visible:"".concat(l.value,"-is-visible"),expanded:"".concat(l.value,"-is-expanded"),indeterminate:"".concat(l.value,"-is-indeterminate")}})}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var raf$2={exports:{}},performanceNow$1={exports:{}};(function(){var e,l,n,r,u,o;typeof performance<"u"&&performance!==null&&performance.now?performanceNow$1.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(performanceNow$1.exports=function(){return(e()-u)/1e6},l=process.hrtime,e=function(){var a;return a=l(),a[0]*1e9+a[1]},r=e(),o=process.uptime()*1e9,u=r-o):Date.now?(performanceNow$1.exports=function(){return Date.now()-n},n=Date.now()):(performanceNow$1.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}).call(commonjsGlobal);var now$2=performanceNow$1.exports,root$1=typeof window>"u"?commonjsGlobal:window,vendors=["moz","webkit"],suffix="AnimationFrame",raf=root$1["request"+suffix],caf=root$1["cancel"+suffix]||root$1["cancelRequest"+suffix];for(var i=0;!raf&&i<vendors.length;i++)raf=root$1[vendors[i]+"Request"+suffix],caf=root$1[vendors[i]+"Cancel"+suffix]||root$1[vendors[i]+"CancelRequest"+suffix];if(!raf||!caf){var last=0,id=0,queue=[],frameDuration=1e3/60;raf=function(l){if(queue.length===0){var n=now$2(),r=Math.max(0,frameDuration-(n-last));last=r+n,setTimeout(function(){var u=queue.slice(0);queue.length=0;for(var o=function(){if(!u[t].cancelled)try{u[t].callback(last)}catch(f){setTimeout(function(){throw f},0)}},t=0;t<u.length;t++)o()},Math.round(r))}return queue.push({handle:++id,callback:l,cancelled:!1}),id},caf=function(l){for(var n=0;n<queue.length;n++)queue[n].handle===l&&(queue[n].cancelled=!0)}}raf$2.exports=function(e){return raf.call(root$1,e)};raf$2.exports.cancel=function(){caf.apply(root$1,arguments)};raf$2.exports.polyfill=function(e){e||(e=root$1),e.requestAnimationFrame=raf,e.cancelAnimationFrame=caf};var isServer=typeof window>"u",trim=function e(l){return(l||"").replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g,"")},on=function(){return!isServer&&document.addEventListener?function(e,l,n,r){e&&l&&n&&e.addEventListener(l,n,r)}:function(e,l,n){e&&l&&n&&e.attachEvent("on".concat(l),n)}}(),off=function(){return!isServer&&document.removeEventListener?function(e,l,n,r){e&&l&&e.removeEventListener(l,n,r)}:function(e,l,n){e&&l&&e.detachEvent("on".concat(l),n)}}();function once(e,l,n,r){var u=isFunction_1(n)?n:n.handleEvent,o=function t(a){u(a),off(e,l,t,r)};on(e,l,o,r)}function hasClass(e,l){if(!e||!l)return!1;if(l.indexOf(" ")!==-1)throw new Error("className should not contain space.");return e.classList?e.classList.contains(l):" ".concat(e.className," ").indexOf(" ".concat(l," "))>-1}function addClass(e,l){if(!!e){for(var n=e.className,r=(l||"").split(" "),u=0,o=r.length;u<o;u++){var t=r[u];!t||(e.classList?e.classList.add(t):hasClass(e,t)||(n+=" ".concat(t)))}e.classList||(e.className=n)}}function removeClass(e,l){if(!(!e||!l)){for(var n=l.split(" "),r=" ".concat(e.className," "),u=0,o=n.length;u<o;u++){var t=n[u];!t||(e.classList?e.classList.remove(t):hasClass(e,t)&&(r=r.replace(" ".concat(t," ")," ")))}e.classList||(e.className=trim(r))}}var getAttach=function e(l,n){var r=isFunction_1(l)?l(n):l;return r?isString_1(r)?document.querySelector(r):r instanceof HTMLElement?r:document.body:document.body},getSSRAttach=function e(){},getScrollContainer=function e(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"body";return isString_1(l)?document.querySelector(l):isFunction_1(l)?l():l},isNodeOverflow=function e(l){var n=l.clientWidth,r=n===void 0?0:n,u=l.scrollWidth,o=u===void 0?0:u;return o>r};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseKeys=_baseKeys,getTag=_getTag,isArguments=isArguments_1,isArray=isArray_1,isArrayLike=isArrayLike_1,isBuffer=isBuffer$3.exports,isPrototype=_isPrototype,isTypedArray=isTypedArray_1,mapTag="[object Map]",setTag="[object Set]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function isEmpty(e){if(e==null)return!0;if(isArrayLike(e)&&(isArray(e)||typeof e=="string"||typeof e.splice=="function"||isBuffer(e)||isTypedArray(e)||isArguments(e)))return!e.length;var l=getTag(e);if(l==mapTag||l==setTag)return!e.size;if(isPrototype(e))return!baseKeys(e).length;for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0}var isEmpty_1=isEmpty;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function baseSlice$1(e,l,n){var r=-1,u=e.length;l<0&&(l=-l>u?0:u+l),n=n>u?u:n,n<0&&(n+=u),u=l>n?0:n-l>>>0,l>>>=0;for(var o=Array(u);++r<u;)o[r]=e[r+l];return o}var _baseSlice=baseSlice$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var baseSlice=_baseSlice;function castSlice$1(e,l,n){var r=e.length;return n=n===void 0?r:n,!l&&n>=r?e:baseSlice(e,l,n)}var _castSlice=castSlice$1,rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$1$1="\\u0300-\\u036f",reComboHalfMarksRange$1$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1$1="\\u20d0-\\u20ff",rsComboRange$1$1=rsComboMarksRange$1$1+reComboHalfMarksRange$1$1+rsComboSymbolsRange$1$1,rsVarRange$1="\\ufe0e\\ufe0f",rsZWJ$1="\\u200d",reHasUnicode=RegExp("["+rsZWJ$1+rsAstralRange$1+rsComboRange$1$1+rsVarRange$1+"]");function hasUnicode$1(e){return reHasUnicode.test(e)}var _hasUnicode=hasUnicode$1;function asciiToArray$1(e){return e.split("")}var _asciiToArray=asciiToArray$1,rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$2="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$2+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$2+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$2="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$2+"]?",rsOptJoin$1="(?:"+rsZWJ$2+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray$1(e){return e.match(reUnicode)||[]}var _unicodeToArray=unicodeToArray$1,asciiToArray=_asciiToArray,hasUnicode$2=_hasUnicode,unicodeToArray=_unicodeToArray;function stringToArray$1(e){return hasUnicode$2(e)?unicodeToArray(e):asciiToArray(e)}var _stringToArray=stringToArray$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function arrayReduce$1(e,l,n,r){var u=-1,o=e==null?0:e.length;for(r&&o&&(n=e[++u]);++u<o;)n=l(n,e[u],u,e);return n}var _arrayReduce=arrayReduce$1;function basePropertyOf$1(e){return function(l){return e==null?void 0:e[l]}}var _basePropertyOf=basePropertyOf$1,basePropertyOf=_basePropertyOf,deburredLetters={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},deburrLetter$1=basePropertyOf(deburredLetters),_deburrLetter=deburrLetter$1,deburrLetter=_deburrLetter,toString$1$1=toString_1,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr$1(e){return e=toString$1$1(e),e&&e.replace(reLatin,deburrLetter).replace(reComboMark,"")}var deburr_1=deburr$1,reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords$1(e){return e.match(reAsciiWord)||[]}var _asciiWords=asciiWords$1,reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord$1(e){return reHasUnicodeWord.test(e)}var _hasUnicodeWord=hasUnicodeWord$1,rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['\u2019]",rsBreak="["+rsBre
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var castSlice=_castSlice,hasUnicode=_hasUnicode,stringToArray=_stringToArray,toString$1=toString_1;function createCaseFirst$1(e){return function(l){l=toString$1(l);var n=hasUnicode(l)?stringToArray(l):void 0,r=n?n[0]:l.charAt(0),u=n?castSlice(n,1).join(""):l.slice(1);return r[e]()+u}}var _createCaseFirst=createCaseFirst$1,createCaseFirst=_createCaseFirst,upperFirst$1=createCaseFirst("toUpperCase"),upperFirst_1=upperFirst$1,toString=toString_1,upperFirst=upperFirst_1;function capitalize$1(e){return upperFirst(toString(e).toLowerCase())}var capitalize_1=capitalize$1,capitalize=capitalize_1,createCompounder$1=_createCompounder,camelCase=createCompounder$1(function(e,l,n){return l=l.toLowerCase(),e+(n?capitalize(l):l)}),camelCase_1=camelCase;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var createCompounder=_createCompounder,kebabCase=createCompounder(function(e,l,n){return e+(n?"-":"")+l.toLowerCase()}),kebabCase_1=kebabCase;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function getDefaultNode(e){var l;return isObject_1(e)&&"defaultNode"in e?l=e.defaultNode:(isVNode$1(e)||isString_1(e))&&(l=e),l}function getParams(e){return isObject_1(e)&&"params"in e?e.params:{}}function getSlotFirst(e){return isObject_1(e)&&"slotFirst"in e?e.slotFirst:{}}function handleSlots$1(e,l,n){var r,u,o,t,a=(r=(u=e.$slots)[camelCase_1(n)])===null||r===void 0?void 0:r.call(u,l);return a||(a=(o=(t=e.$slots)[kebabCase_1(n)])===null||o===void 0?void 0:o.call(t,l),a)?a:null}var renderTNodeJSX=function e(l,n,r){var u=getParams(r),o=getDefaultNode(r),t;if(n in l&&(t=l[n]),!(t===!1||t===null)){if(t===!0&&o)return handleSlots$1(l,u,n)||o;if(isFunction_1(t))return t(h,u);var a=[void 0,u,""].includes(t);return a&&(l.$slots[camelCase_1(n)]||l.$slots[kebabCase_1(n)])?handleSlots$1(l,u,n):t}},renderContent=function e(l,n,r,u){var o=getParams(u),t=getDefaultNode(u),a=o?{params:o}:void 0,f=renderTNodeJSX(l,n,a),m=renderTNodeJSX(l,r,a),_=isEmpty_1(f)?m:f;return isEmpty_1(_)?t:_};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function withInstall(e,l,n){var r=e;return r.install=function(u,o){u.component(l||o||r.name,e),n&&u.directive(n.name,n.comp)},r}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
2024-04-29 12:57:33 +00:00
*/function handleSlots(e,l,n){var r,u,o,t,a=(r=(u=e.slots)[camelCase_1(l)])===null||r===void 0?void 0:r.call(u,n);return a&&a.filter(function(f){return f.type.toString()!=="Symbol(v-cmt)"}).length||(a=(o=(t=e.slots)[kebabCase_1(l)])===null||o===void 0?void 0:o.call(t,n),a&&a.filter(function(f){return f.type.toString()!=="Symbol(v-cmt)"}).length)?a:null}function isEmptyNode(e){if([void 0,null,""].includes(e))return!0;var l=e instanceof Array?e:[e],n=l.filter(function(r){var u;return(r==null||(u=r.type)===null||u===void 0?void 0:u.toString())!=="Symbol(Comment)"});return!n.length}var useTNodeJSX=function e(){var l=getCurrentInstance();return function(n,r){var u=getParams(r),o=getDefaultNode(r),t=getSlotFirst(r),a;if(Object.keys(l.props).includes(n)&&(a=l.props[n]),!(a===!1||a===null)){if(a===!0)return handleSlots(l,n,u)||o;if(isFunction_1(a))return a(h,u);var f=[void 0,u,""].includes(a);return(f||t)&&(l.slots[camelCase_1(n)]||l.slots[kebabCase_1(n)])?handleSlots(l,n,u):a}}},useTNodeDefault=function e(){var l=useTNodeJSX();return function(n,r){var u=getDefaultNode(r);return l(n,r)||u}},useContent=function e(){var l=useTNodeJSX();return function(n,r,u){var o=getParams(u),t=getDefaultNode(u),a=o?{params:o}:void 0,f=l(n,a),m=l(r,a),_=isEmptyNode(f)?m:f;return isEmptyNode(_)?t:_}};function _defineProperty(e,l,n){return l in e?Object.defineProperty(e,l,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[l]=n,e}function ownKeys$6(e,l){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);l&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$6(e){for(var l=1;l<arguments.length;l++){var n=arguments[l]!=null?arguments[l]:{};l%2?ownKeys$6(Object(n),!0).forEach(function(r){_defineProperty(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function camel2Kebab(e){var l=["fillOpacity","fillRule","clipRule"];return l.includes(e)?e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g,"$1-$2").toLowerCase():e}function renderFn(e,l){var n=Object.keys(e.attrs).reduce((r,u)=>(r[camel2Kebab(u)]=e.attrs[u],r),{});return h(e.tag,_objectSpread$6(_objectSpread$6({},n),l),(e.children||[]).map(r=>renderFn(r,{})))}var DEFAULT_CLASS_PREFIX="t",DEFAULT_LOCALE="zh-CN",ConfigContext={classPrefix:DEFAULT_CLASS_PREFIX,locale:DEFAULT_LOCALE};const ConfigContext$1=ConfigContext;function useCommonClassName(){var{classPrefix:e}=ConfigContext$1;return{SIZE:{default:"",xs:"".concat(e,"-size-xs"),small:"".concat(e,"-size-s"),medium:"".concat(e,"-size-m"),large:"".concat(e,"-size-l"),xl:"".concat(e,"-size-xl"),block:"".concat(e,"-size-full-width")},STATUS:{loading:"".concat(e,"-is-loading"),disabled:"".concat(e,"-is-disabled"),focused:"".concat(e,"-is-focused"),success:"".concat(e,"-is-success"),error:"".concat(e,"-is-error"),warning:"".concat(e,"-is-warning"),selected:"".concat(e,"-is-selected"),active:"".concat(e,"-is-active"),checked:"".concat(e,"-is-checked"),current:"".concat(e,"-is-current"),hidden:"".concat(e,"-is-hidden"),visible:"".concat(e,"-is-visible"),expanded:"".concat(e,"-is-expanded"),indeterminate:"".concat(e,"-is-indeterminate")}}}function useSizeProps(e){var l=useCommonClassName().SIZE,n=computed(()=>e.value in l?l[e.value]:""),r=computed(()=>e.value===void 0||e.value in l?{}:{fontSize:e.value});return{style:r,className:n}}const index$c="";function ownKeys$5(e,l){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);l&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$5(e){for(var l=1;l<arguments.length;l++){var n=arguments[l]!=null?arguments[l]:{};l%2?ownKeys$5(Object(n),!0).forEach(function(r){_defineProperty(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$5(Object(n)).forEach(func
2024-04-28 13:26:15 +00:00
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function useChildComponentSlots(){var e=getCurrentInstance();return function(l,n){var r,u;n||(n=e.slots);var o=((r=n)===null||r===void 0||(u=r.default)===null||u===void 0?void 0:u.call(r))||[],t=[],a=function f(m){if(!!isArray_1(m))return m.forEach(function(_){if(_.children&&isArray_1(_.children)){if(_.type!==Fragment)return;f(_.children)}else t.push(_)}),t};return a(o).filter(function(f){var m;return(m=f.type.name)===null||m===void 0?void 0:m.endsWith(l)})}}var top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start="start",end="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(e,l){return e.concat([l+"-"+start,l+"-"+end])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(e,l){return e.concat([l,l+"-"+start,l+"-"+end])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(e){return e?(e.nodeName||"").toLowerCase():null}function getWindow(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var l=e.ownerDocument;return l&&l.defaultView||window}return e}function isElement(e){var l=getWindow(e).Element;return e instanceof l||e instanceof Element}function isHTMLElement(e){var l=getWindow(e).HTMLElement;return e instanceof l||e instanceof HTMLElement}function isShadowRoot(e){if(typeof ShadowRoot>"u")return!1;var l=getWindow(e).ShadowRoot;return e instanceof l||e instanceof ShadowRoot}function applyStyles(e){var l=e.state;Object.keys(l.elements).forEach(function(n){var r=l.styles[n]||{},u=l.attributes[n]||{},o=l.elements[n];!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,r),Object.keys(u).forEach(function(t){var a=u[t];a===!1?o.removeAttribute(t):o.setAttribute(t,a===!0?"":a)}))})}function effect$2(e){var l=e.state,n={popper:{position:l.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(l.elements.popper.style,n.popper),l.styles=n,l.elements.arrow&&Object.assign(l.elements.arrow.style,n.arrow),function(){Object.keys(l.elements).forEach(function(r){var u=l.elements[r],o=l.attributes[r]||{},t=Object.keys(l.styles.hasOwnProperty(r)?l.styles[r]:n[r]),a=t.reduce(function(f,m){return f[m]="",f},{});!isHTMLElement(u)||!getNodeName(u)||(Object.assign(u.style,a),Object.keys(o).forEach(function(f){u.removeAttribute(f)}))})}}const applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(e){return e.split("-")[0]}var max=Math.max,min=Math.min,round=Math.round;function getUAString(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(l){return l.brand+"/"+l.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(e,l,n){l===void 0&&(l=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),u=1,o=1;l&&isHTMLElement(e)&&(u=e.offsetWidth>0&&round(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&round(r.height)/e.offsetHeight||1);var t=isElement(e)?getWindow(e):window,a=t.visualViewport,f=!isLayoutViewport()&&n,m=(r.left+(f&&a?a.offsetLeft:0))/u,_=(r.top+(f&&a?a.offsetTop:0))/o,$=r.width/u,S=r.height/o;return{width:$,height:S,top:_,right:m+$,bottom:_+S,left:m,x:m,y:_}}function getLayoutRect(e){var l=getBoundingClientRect(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(l.width-n)<=1&&(n=l.width),Math.abs(l.height-r)<=1&&(r=l.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function contains(e,l){var n=l.getRootNode&&l.getRootNode();if(e.contains(l))return!0;if(n&&isShadowRoot(n)){var r=l;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function getComputedStyle(e){return getWindow(e).g
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var l=e.length;l--&&reWhitespace.test(e.charAt(l)););return l}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$1=isObject_1,isSymbol=isSymbol_1,NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if(typeof e=="number")return e;if(isSymbol(e))return NAN;if(isObject$1(e)){var l=typeof e.valueOf=="function"?e.valueOf():e;e=isObject$1(l)?l+"":l}if(typeof e!="string")return e===0?e:+e;e=baseTrim(e);var n=reIsBinary.test(e);return n||reIsOctal.test(e)?freeParseInt(e.slice(2),n?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var root=_root,now$1=function e(){return root.Date.now()},now_1=now$1,isObject=isObject_1,now=now_1,toNumber=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce(e,l,n){var r,u,o,t,a,f,m=0,_=!1,$=!1,S=!0;if(typeof e!="function")throw new TypeError(FUNC_ERROR_TEXT);l=toNumber(l)||0,isObject(n)&&(_=!!n.leading,$="maxWait"in n,o=$?nativeMax(toNumber(n.maxWait)||0,l):o,S="trailing"in n?!!n.trailing:S);function I(U){var N=r,G=u;return r=u=void 0,m=U,t=e.apply(G,N),t}function v(U){return m=U,a=setTimeout(P,l),_?I(U):t}function y(U){var N=U-f,G=U-m,D=l-N;return $?nativeMin(D,o-G):D}function x(U){var N=U-f,G=U-m;return f===void 0||N>=l||N<0||$&&G>=o}function P(){var U=now();if(x(U))return R(U);a=setTimeout(P,y(U))}function R(U){return a=void 0,S&&r?I(U):(r=u=void 0,t)}function Y(){a!==void 0&&clearTimeout(a),m=0,r=f=u=a=void 0}function L(){return a===void 0?t:R(now())}function q(){var U=now(),N=x(U);if(r=arguments,u=this,f=U,N){if(a===void 0)return v(f);if($)return clearTimeout(a),a=setTimeout(P,l),I(f)}return a===void 0&&(a=setTimeout(P,l)),t}return q.cancel=Y,q.flush=L,q}var debounce_1=debounce;/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function useVModel(e,l,n,r){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"value",o=getCurrentInstance(),t=o.emit,a=o.vnode,f=ref(),m=a.props||{},_=Object.prototype.hasOwnProperty.call(m,"modelValue")||Object.prototype.hasOwnProperty.call(m,"model-value"),$=Object.prototype.hasOwnProperty.call(m,u)||Object.prototype.hasOwnProperty.call(m,kebabCase_1(u));return _?[l,function(S){t("update:modelValue",S);for(var I=arguments.length,v=new Array(I>1?I-1:0),y=1;y<I;y++)v[y-1]=arguments[y];r==null||r.apply(void 0,[S].concat(v))}]:$?[e,function(S){t("update:".concat(u),S);for(var I=arguments.length,v=new Array(I>1?I-1:0),y=1;y<I;y++)v[y-1]=arguments[y];r==null||r.apply(void 0,[S].concat(v))}]:(f.value=n,[f,function(S){f.value=S;for(var I=arguments.length,v=new Array(I>1?I-1:0),y=1;y<I;y++)v[y-1]=arguments[y];r==null||r.apply(void 0,[S].concat(v))}])}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var popupProps={attach:{type:[String,Function],default:"body"},content:{type:[String,Function]},default:{type:[String,Function]},delay:{type:[Number,Array]},destroyOnClose:Boolean,disabled:Boolean,hideEmptyPopup:Boolean,overlayClassName:{type:[String,Object,Array]},overlayInnerClassName:{type:[String,Object,Array]},overlayInnerStyle:{type:[Boolean,Object,Function]},overlayStyle:{type:[Boolean,Object,Function]},placement:{type:String,default:"top"},popperOptions:{type:Object},showArrow:Boolean,trigger:{type:String,default:"hover",validator:function e(l){return l?["hover","click","focus","mousedown","context-menu"].includes(l):!0}},triggerElement:{type:[String,Function]},visible:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultVisible:Boolean,zIndex:{type:Number},onOverlayClick:Function,onScroll:Function,onScrollToBottom:Function,onVisibleChange:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function useResizeObserver(e,l){if(!(typeof window>"u")){var n=window&&window.ResizeObserver;if(!!n){var r=null,u=function(){!r||!e.value||(r.unobserve(e.value),r.disconnect(),r=null)},o=function(a){r=new ResizeObserver(l),r.observe(a)};e&&watch(e,function(t){u(),t&&o(t)},{immediate:!0,flush:"post"}),onBeforeUnmount(function(){u()})}}}/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function _isSlot$1(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode$1(e)}function filterEmpty(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=[];return e.forEach(function(n){isArray_1(n)?l.push.apply(l,_toConsumableArray(n)):n.type===Fragment?l.push.apply(l,_toConsumableArray(filterEmpty(n.children))):l.push(n)}),l.filter(function(n){return!(n&&(n.type===Comment||n.type===Fragment&&n.children.length===0||n.type===Text&&n.children.trim()===""))})}function isRectChanged(e,l){return!e&&!l?!1:!!(!e||!l||["width","height","x","y"].some(function(n){return e[n]!==l[n]}))}function useElement(e){var l=getCurrentInstance(),n=ref();return onMounted(function(){n.value=e(l)}),onUpdated(function(){var r=e(l);n.value!==r&&(n.value=r)}),n}var Trigger=defineComponent({name:"TPopupTrigger",props:{forwardRef:Function},emits:["resize"],setup:function e(l,n){var r=n.emit,u=n.slots,o=useElement(function(a){var f=a.parent.vnode;return f.el.nextElementSibling}),t=ref();return watch(o,function(){var a;(a=l.forwardRef)===null||a===void 0||a.call(l,o.value)}),useResizeObserver(o,function(a){var f=_slicedToArray(a,1),m=f[0].contentRect;t.value=m}),watch(t,function(a,f){isRectChanged(a,f)&&r("resize")}),function(){var a,f,m=filterEmpty((a=u.default)===null||a===void 0?void 0:a.call(u));return m.length>1||((f=m[0])===null||f===void 0?void 0:f.type)===Text?createVNode("span",null,[m]):m[0]}}}),Content=defineComponent({name:"TPopupContent",emits:["resize"],setup:function e(l,n){var r=n.emit,u=n.slots,o=useElement(function(t){return t.vnode.el.children[0]});return useResizeObserver(o,function(){r("resize")}),function(){return createVNode("div",{style:"position: absolute; top: 0px; left: 0px; width: 100%"},[u.default()])}}}),Container=defineComponent({name:"TPopupContainer",inheritAttrs:!1,props:{parent:Object,visible:Boolean,attach:popupProps.attach,forwardRef:Function},emits:["resize","contentMounted"],setup:function e(l,n){var r=n.emit,u=n.attrs,o=n.slots,t=n.expose,a=ref(),f=ref(!1);function m(){r("resize")}return onMounted(function(){requestAnimationFrame(function(){f.value=l.visible})}),watch(function(){return l.visible},function(_){_&&(f.value=l.visible)}),t({unmountContent:function(){f.value=!1}}),function(){var _,$=function(){return getSSRAttach()||getAttach(l.attach,a.value)};return createVNode(Fragment,null,[createVNode(Trigger,{class:u.class,forwardRef:function(I){l.forwardRef(I),a.value=I},onResize:m},_isSlot$1(_=o.default())?_:{default:function(){return[_]}}),f.value&&createVNode(Teleport,{disabled:!$(),to:$()},{default:function(){return[createVNode(Content,{onResize:m,onVnodeMounted:function(){return r("contentMounted")}},{default:function(){return[o.content&&o.content()]}})]}})])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ownKeys$2(e,l){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);l&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$2(e){for(var l=1;l<arguments.length;l++){var n=arguments[l]!=null?arguments[l]:{};l%2?ownKeys$2(Object(n),!0).forEach(function(r){_defineProperty$2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _isSlot(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!isVNode$1(e)}var POPUP_ATTR_NAME="data-td-popup",POPUP_PARENT_ATTR_NAME="data-td-popup-parent";function getPopperTree(e,l){var n=[],r=[POPUP_PARENT_ATTR_NAME,POPUP_ATTR_NAME];if(!e)return n;return l&&r.unshift(r.pop()),u(e),n;function u(o){var t=document.querySelectorAll("[".concat(r[0],'="').concat(o,'"]'));t.forEach(function(a){n.push(a);var f=a.getAttribute(r[1]);f&&f!==o&&u(f)})}}var parentKey=Symbol();function getPopperPlacement(e){return e.replace(/-(left|top)$/,"-start").replace(/-(right|bottom)$/,"-end")}function attachListeners(e){var l=[];return{add:function(r,u){!r||(on(e.value,r,u),l.push(function(){off(e.value,r,u)}))},clean:function(){l.forEach(function(r){return r==null?void 0:r()}),l.length=0}}}var _Popup=defineComponent({name:"TPopup",props:_objectSpread$2(_objectSpread$2({},popupProps),{},{expandAnimation:{type:Boolean}}),setup:function e(l,n){var r,u=n.expose,o=toRefs(l),t=o.visible,a=o.modelValue,f=useVModel(t,a,l.defaultVisible,l.onVisibleChange,"visible"),m=_slicedToArray(f,2),_=m[0],$=m[1],S=useTNodeJSX(),I=useContent(),v,y,x,P=ref(null),R=ref(null),Y=ref(null),L=ref(null),q=ref(!1),U=typeof process<"u"&&(r={})!==null&&r!==void 0&&r.TEST?"":Date.now().toString(36),N=inject(parentKey,void 0);provide(parentKey,{id:U,assertMouseLeave:j2});var G=usePrefixClass("popup"),D=useCommonClassName$1(),f2=D.STATUS,W=computed(function(){var K,s2,v2=l.trigger!=="hover"?[0,0]:[].concat((K=l.delay)!==null&&K!==void 0?K:[250,150]);return{show:v2[0],hide:(s2=v2[1])!==null&&s2!==void 0?s2:v2[0]}}),C2=attachListeners(P);watch(function(){return[l.trigger,P.value]},function(){!P.value||(C2.clean(),C2.add({hover:"mouseenter",focus:"focusin","context-menu":"contextmenu",click:"click"}[l.trigger],function(K){if(!l.disabled){if(K.type==="contextmenu"&&K.preventDefault(),(K.type==="click"||K.type==="contextmenu")&&_.value){z2(K);return}A2(K)}}),C2.add({hover:"mouseleave",focus:"focusout"}[l.trigger],z2))}),watch(function(){return[l.overlayStyle,l.overlayInnerStyle,R.value]},function(){w2(),B2()}),watch(function(){return l.placement},function(){_2(),B2()}),watch(function(){return _.value},function(K){if(K){on(document,"mousedown",M2,!0),l.trigger==="focus"&&once(P.value,"keydown",function(s2){var v2,d2=typeof process<"u"&&(v2={})!==null&&v2!==void 0&&v2.TEST?"27":"Escape";s2.code===d2&&z2(s2)});return}off(document,"mousedown",M2,!0)}),onUnmounted(function(){_2(),P2(),off(document,"mousedown",M2,!0)}),u({update:B2,getOverlay:function(){return R.value},getOverlayState:function(){return{hover:q.value}},close:function(){return z2()}});function g2(){var K=l.overlayStyle;if(!(!P.value||!R.value)){if(isFunction_1(K))return K(P.value,R.value);if(isObject_1(K))return K}}function w2(){var K=l.overlayInnerStyle;!P.value||!R.value||(isFunction_1(K)?setStyle(R.value,K(P.value,R.value)):isObject_1(K)&&setStyle(R.value,K))}function B2(){if(!(!Y.value||!_.value)){if(v){if(P.value.getRootNode()instanceof ShadowRoot)v.state.elements.reference=P.value,v.update();else{for(var K=P.value.getBoundingClientRect(),s2=P.value;s2&&s2!==document.body;)s2=s2.parentElement;var v2=s2!==document.body||K.width===0&&K.height===0;v2?$(!1,{trigger:x2({type:"mouseenter"})}):(v.state.elements.reference=P.value,v.update())}return}v=createPopper(P.value,Y.value,_objectSpread$2({placement:getPopperPlacement(l.placement),onFirstUpdate:function(){next
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var Popup=withInstall(_Popup);/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var props={list:{type:Array,default:function e(){return[]}},offset:{type:Array},placement:{type:String,default:"right-bottom",validator:function e(l){return l?["right-top","right-center","right-bottom","left-top","left-center","left-bottom"].includes(l):!0}},popupProps:{type:Object},shape:{type:String,default:"square",validator:function e(l){return l?["square","round"].includes(l):!0}},type:{type:String,default:"normal",validator:function e(l){return l?["normal","compact"].includes(l):!0}},width:{type:[String,Number]},onClick:Function,onHover:Function};/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var stickyItemProps={icon:{type:Function},label:{type:[String,Function]},popup:{type:[String,Function]},popupProps:{type:Object},trigger:{type:String,default:"hover",validator:function e(l){return l?["hover","click"].includes(l):!0}}};const index$a="";/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ownKeys$1(e,l){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);l&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function _objectSpread$1(e){for(var l=1;l<arguments.length;l++){var n=arguments[l]!=null?arguments[l]:{};l%2?ownKeys$1(Object(n),!0).forEach(function(r){_defineProperty$2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys$1(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _StickyItem=defineComponent({name:"TStickyItem",props:_objectSpread$1(_objectSpread$1({},stickyItemProps),{},{type:props.type,shape:props.shape,placement:props.placement,basePopupProps:Object,baseWidth:props.width,onClick:props.onClick,onHover:props.onHover}),setup:function e(l){var n=usePrefixClass("sticky-item"),r=computed(function(){return["".concat(n.value),"".concat(n.value,"--").concat(l.type),"".concat(n.value,"--").concat(l.shape)]}),u=computed(function(){return["".concat(n.value,"__label")]}),o=computed(function(){return l.placement.indexOf("right")!==-1?"left":"right"}),t=computed(function(){var $={};if(l.baseWidth){var S=l.type==="normal"?"56px":"40px";$.margin="calc((".concat(l.baseWidth," - ").concat(S,")/2)")}return $}),a=function(S){var I={};Object.keys(stickyItemProps).forEach(function(v){return I[v]=l[v]}),l.onClick({e:S,item:I})},f=function(S){var I={};Object.keys(stickyItemProps).forEach(function(v){return I[v]=l[v]}),l.onHover({e:S,item:I})},m=useTNodeJSX(),_=Object.assign({hideEmptyPopup:!0},l.basePopupProps,l.popupProps);return function(){return createVNode(Popup,mergeProps({overlayInnerClassName:"".concat(usePrefixClass("sticky-tool").value,"-popup-content"),trigger:l.trigger,placement:o.value,content:function(){return m("popup")}},_),{default:function(){return[createVNode("div",{class:r.value,style:t.value,onClick:a,onMouseenter:f},[m("icon"),l.type==="normal"?createVNode("div",{class:u.value},[m("label")]):null])]}})}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/function ownKeys(e,l){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);l&&(r=r.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var l=1;l<arguments.length;l++){var n=arguments[l]!=null?arguments[l]:{};l%2?ownKeys(Object(n),!0).forEach(function(r){_defineProperty$2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var _StickyTool=defineComponent({name:"TStickyTool",props:_objectSpread({},props),setup:function e(l){var n=usePrefixClass("sticky-tool"),r=computed(function(){return[n.value,"".concat(n.value,"--").concat(l.shape)]}),u=computed(function(){var S=f();return l.width&&(S.width=typeof l.width=="number"?"".concat(l.width,"px"):l.width),S}),o=useChildComponentSlots(),t=function(){var I,v;if((I=l.list)!==null&&I!==void 0&&I.length)v=l.list;else{var y=o("StickyItem");v=a(y)}return v},a=function(I){var v=[];return I==null||I.forEach(function(y){var x=(y==null?void 0:y.props)||{},P=y==null?void 0:y.children;if(!(!x&&!P)){if(P&&isObject_1(P))for(var R in P)R in stickyItemProps&&!x[R]&&(x[R]=P[R]);v.push(x)}}),v},f=function(){var I,v=l.offset?[80,24]:["80px","24px"];(I=l.offset)===null||I===void 0||I.forEach(function(x,P){v[P]=isNaN(Number(x))?"calc( ".concat(v[P],"px + ").concat(x,")"):"".concat(v[P]+x,"px")});var y={};return l.placement.split("-").forEach(function(x,P){x!=="center"?y[x]=v[P]:(y.top="50%",y.transform="translate(0, -50%)")}),y},m=function(I){var v;(v=l.onClick)===null||v===void 0||v.call(l,I)},_=function(I){var v;(v=l.onHover)===null||v===void 0||v.call(l,I)},$=function(){var I=t(),v=I.map(function(y,x){var P=l.type,R=l.shape,Y=l.placement,L=l.popupProps,q=_objectSpread(_objectSpread({},y),{},{type:P,shape:R,placement:Y,basePopupProps:L,baseWidth:u.value.width,onClick:m,onHover:_});return createVNode(_StickyItem,mergeProps(q,{key:x}),null)});return v};return function(){return createVNode("div",{class:r.value,style:u.value},[$()])}}});/**
* tdesign v1.9.4
* (c) 2024 tdesign
* @license MIT
*/var StickyItem=withInstall(_StickyItem),StickyTool=withInstall(_StickyTool);const index$9="",index$8="",index$7="",index$6="",index$5="",index$4="",index$3="",index$2="",_sfc_main$3=defineComponent({__name:"form-wrapper",props:{type:{type:String,default:""},name:{type:String,default:""},defaultValue:{type:[String,Boolean,Number],default:""}},emits:["inputChange"],setup(e,{emit:l}){const n=e,r=l,u=o=>{r("inputChange",{value:o,key:n.name})};return(o,t)=>{const a=InputNumber,f=Switch;return e.type==="number"?(openBlock(),createBlock(a,{key:0,style:{width:"80px"},size:"small","default-value":e.defaultValue,onChange:u},null,8,["default-value"])):(openBlock(),createBlock(f,{key:1,"default-checked":e.defaultValue,size:"small",onChange:u},null,8,["default-checked"]))}}}),_hoisted_1={class:"block"},_hoisted_2={class:"title"},_sfc_main$2=defineComponent({__name:"block",props:{title:{type:String,default:""},options:{type:Array,default(){return[]}}},setup(e){const l=useAppStore$1(),n=async({key:r,value:u})=>{r==="colorWeak"&&(document.body.style.filter=u?"invert(80%)":"none"),r==="menuFromServer"&&u&&await l.fetchServerMenuConfig(),r==="topMenu"&&l.updateSettings({menuCollapse:!1}),l.updateSettings({[r]:u})};return(r,u)=>(openBlock(),createElementBlock("div",_hoisted_1,[createBaseVNode("h5",_hoisted_2,toDisplayString(e.title),1),(openBlock(!0),createElementBlock(Fragment,null,renderList(e.options,o=>(openBlock(),createElementBlock("div",{key:o.name,class:"switch-wrapper"},[createBaseVNode("span",null,toDisplayString(r.$t(o.name)),1),createVNode(_sfc_main$3,{type:o.type||"switch",name:o.key,"default-value":o.defaultVal,onInputChange:n},null,8,["type","name","default-value"])]))),128))]))}}),block_vue_vue_type_style_index_0_scoped_0b30e908_lang="",Block=_export_sfc(_sfc_main$2,[["__scopeId","data-v-0b30e908"]]),_sfc_main$1=defineComponent({__name:"index",emits:["cancel"],setup(e,{emit:l}){const n=l,r=useAppStore$1(),{t:u}=vueI18n_cjs.exports.useI18n(),{copy:o}=useClipboard(),t=computed(()=>r.globalSettings),a=computed(()=>[{name:"settings.navbar",key:"navbar",defaultVal:r.navbar},{name:"settings.menu",key:"menu",defaultVal:r.menu},{name:"settings.topMenu",key:"topMenu",defaultVal:r.topMenu},{name:"settings.footer",key:"footer",defaultVal:r.footer},{name:"settings.tabBar",key:"tabBar",defaultVal:r.tabBar},{name:"settings.menuFromServer",key:"menuFromServer",defaultVal:r.menuFromServer},{name:"settings.menuWidth",key:"menuWidth",defaultVal:r.menuWidth,type:"number"}]),f=computed(()=>[{name:"settings.colorWeak",key:"colorWeak",defaultVal:r.colorWeak}]),m=()=>{r.updateSettings({globalSettings:!1}),n("cancel")},_=async()=>{const S=JSON.stringify(r.$state,null,2);await o(S),Message.success(u("settings.copySettings.message"))},$=()=>{r.updateSettings({globalSettings:!0})};return(S,I)=>{const v=IconSettings,y=Button,x=Alert,P=Drawer;return openBlock(),createElementBlock(Fragment,null,[unref(r).navbar?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:"fixed-settings",onClick:$},[createVNode(y,{type:"primary"},{icon:withCtx(()=>[createVNode(v)]),_:1})])),createVNode(P,{width:300,"unmount-on-close":"",visible:t.value,"cancel-text":S.$t("settings.close"),"ok-text":S.$t("settings.copySettings"),onOk:_,onCancel:m},{title:withCtx(()=>[createTextVNode(toDisplayString(S.$t("settings.title")),1)]),default:withCtx(()=>[createVNode(Block,{options:a.value,title:S.$t("settings.content")},null,8,["options","title"]),createVNode(Block,{options:f.value,title:S.$t("settings.otherSettings")},null,8,["options","title"]),createVNode(x,null,{default:withCtx(()=>[createTextVNode(toDisplayString(S.$t("settings.alertContent")),1)]),_:1})]),_:1},8,["visible","cancel-text","ok-text"])],64)}}}),index_vue_vue_type_style_index_0_scoped_33fc3c74_lang="",GlobalSetting=_export_sfc(_sfc_main$1,[["__scopeId","data-v-33fc3c74"]]);function useLocale(){const e=vueI18n_cjs.exports.useI18n();return{currentLocale:computed(()=>e.locale.value),changeLocale:r=>{e.locale.value!==r&&(e.locale.value=r,localStorage.setItem("arco-locale",r),Message.success(e.t
Error.stack: `+p.stack;if(typeof p=="object"&&p!==null){if(s.has(p))return"[Circular "+(d||"root")+"]";s.add(p)}return p}},K2=function(s){if(typeof s=="string")return s;try{return s instanceof Error?(JSON.stringify(s,i3(),4)||"undefined").replace(/"/gim,""):JSON.stringify(s,i3(),4)||"undefined"}catch(d){return`error happen when aegis stringify:
`+d.message+`
`+d.stack}},y3=function(s){if(typeof s=="string")return s;try{return JSON.stringify(s,i3())||"undefined"}catch(d){return`error happen when aegis stringify:
`+d.message+`
`+d.stack}},Z2=function(s,d){d===void 0&&(d=3);var p,k,C,w="";return Array.isArray(s)?(w+="[",p=s.length,s.forEach(function(E,F){w=(w+=typeof E=="object"&&1<d?Z2(E,d-1):b3(E))+(F===p-1?"":",")}),w+="]"):s instanceof Object?(w="{",k=Object.keys(s),C=k.length,k.forEach(function(E,F){typeof s[E]=="object"&&1<d?w+='"'+E+'":'+Z2(s[E],d-1):w+=d3(E,s[E]),w+=F===C-1||F<C-1&&s[k[F+1]]===void 0?"":","}),w+="}"):w+=s,w},d3=function(s,d){var p=typeof d,k="";return p=="string"||p=="object"?k+='"'+s+'":"'+d+'"':typeof d=="function"?k+='"'+s+'":"function '+d.name+'"':typeof d=="symbol"?k+='"'+s+'":"symbol"':typeof d!="number"&&p!="boolean"||(k+='"'+s+'": '+d),k},b3=function(s){var d=typeof s;return""+(d=="undefined"||d=="symbol"||d=="function"?"null":d=="string"||d=="object"?'"'+s+'"':s)},C3=/data:(image|text|application|font)\/.*;base64/,f3=((n2=Q=Q||{}).INFO_ALL="-1",n2.API_RESPONSE="1",n2.INFO="2",n2.ERROR="4",n2.PROMISE_ERROR="8",n2.AJAX_ERROR="16",n2.SCRIPT_ERROR="32",n2.IMAGE_ERROR="64",n2.CSS_ERROR="128",n2.CONSOLE_ERROR="256",n2.MEDIA_ERROR="512",n2.RET_ERROR="1024",n2.REPORT="2048",n2.PV="4096",n2.EVENT="8192",n2.PAGE_NOT_FOUND_ERROR="16384",n2.WEBSOCKET_ERROR="32768",n2.BRIDGE_ERROR="65536",n2.LAZY_LOAD_ERROR="131072",(n2=I2=I2||{}).LOG="log",n2.SPEED="speed",n2.PERFORMANCE="performance",n2.OFFLINE="offline",n2.WHITE_LIST="whiteList",n2.VITALS="vitals",n2.PV="pv",n2.CUSTOM_PV="customPV",n2.EVENT="event",n2.CUSTOM="custom",n2.SDK_ERROR="sdkError",n2.SET_DATA="setData",n2.LOAD_PACKAGE="loadPackage",(n2=T2=T2||{}).production="production",n2.development="development",n2.gray="gray",n2.pre="pre",n2.daily="daily",n2.local="local",n2.test="test",n2.others="others",function(s){return s.filter(function(d,p){return d.type!=="static"||!s.find(function(k,C){return d.url===k.url&&d.status===200&&p<C})})}),v3=function(s){s.level===Q.INFO_ALL&&(s.level=Q.INFO)},S2={},j={},V=function(s){return S2[s]||(S2[s]=setTimeout(function(){j[s]={},S2[s]=null},6e4)),S2[s]},y2=function(s){return(Array.isArray(s)?s:[s]).map(function(d){return Object.getOwnPropertyNames(d).reduce(function(p,k){return k!=="ctx"&&(p[k]=d[k]),p},{level:Q.INFO,msg:""})})},L2=function(s){return function(d){return s.sendPipeline([function(p,k){return k({url:s.config.url||"",data:g2(y2(p)),method:"post",contentType:"application/json",type:I2.LOG,log:p,requestConfig:{timeout:5e3},success:function(){var C=s.config.onReport;typeof C=="function"&&p.forEach(function(w){C(w)}),typeof k=="function"&&k([])}})}],I2.LOG)(d)}},X2=function(){},n2=(m2.use=function(s){m2.installedPlugins.indexOf(s)===-1&&s.aegisPlugin&&m2.installedPlugins.push(s)},m2.unuse=function(s){s=m2.installedPlugins.indexOf(s),s!==-1&&m2.installedPlugins.splice(s,1)},m2.prototype.init=function(s){this.setConfig(s);for(var d=0;d<m2.installedPlugins.length;d++)try{m2.installedPlugins[d].patch(this)}catch(p){this.sendSDKError(p)}this.lifeCycle.emit("onInited")},m2.prototype.destroy=function(s){s===void 0&&(s=!1);var d,p,k=m2.instances.indexOf(this);k!==-1&&m2.instances.splice(k,1);for(var C=m2.installedPlugins.length-1;0<=C;C--)try{m2.installedPlugins[C].unpatch(this)}catch(E){this.sendSDKError(E)}if(this.lifeCycle.emit("destroy"),this.lifeCycle.clear(),s)d=this,p=Object.getOwnPropertyDescriptors(d),Object.keys(p).forEach(function(E){p[E].writable&&(d[E]=null)}),Object.setPrototypeOf(this,null);else{for(var w=this;w.constructor!==Object&&s2(w,this),w=Object.getPrototypeOf(w););m2.instances.length===0&&(k=Object.getPrototypeOf(this).constructor,s2(k),s2(m2))}},m2.prototype.setConfig=function(O){Object.assign(this.config,O);var O=this.config,d=O.id,p=O.uin,k=O.version,C=O.ext1,w=O.ext2,E=O.ext3,F=O.aid,z=O.env,A=z===void 0?"production":z,z=O.pageUrl,O=this.bean.id!==d||this.bean.uin!==p||this.bean.aid!==F;return this.bean.id=d||"",this.bean.uin=p||"",this.bean.version=k||"1.39.1",this.bean.aid=F||"",this.bean.env=function(){switch(A){case T2.production:case T2.development:case T2.gray:case T2.pre:case T2.daily:case T2.local:case T2.test:case T2.others:return 1;default:return}}()?A:T2.others,z&&this.extendBean("from",encode
`)+p+" header "+C+": "+w:k},""):""}function x3(s,d){return s&&["null","undefined"].indexOf(s)===-1?d+": "+s:""}function F3(w,d,p){d===void 0&&(d="");var k,C,w=typeof((C=w.api)==null?void 0:C.resourceTypeHandler)=="function"?(C=w.api)==null?void 0:C.resourceTypeHandler(p):"";return S.indexOf(w)===-1&&(k=d===void 0?"":d,C=(p===void 0?"":p).split("?")[0],w=k2.test(C)||H.some(function(E){return String(k).indexOf(E)!==-1})?"static":"fetch"),w}function P3(s,d){return s?Q.AJAX_ERROR:d?Q.RET_ERROR:Q.API_RESPONSE}function L3(s,d){return(s=s.api)!=null&&s.usePerformanceTiming&&typeof d.url=="string"&&(s=(s=performance.getEntriesByName(d.url))==null?void 0:s.pop(),s)?{url:d.url,isHttps:z2(d.url),method:d.method,type:d.type,status:d.status,duration:Number(s.duration.toFixed(2)),nextHopProtocol:s.nextHopProtocol||"",domainLookup:B2(s.domainLookupEnd-s.domainLookupStart),connectTime:B2(s.connectEnd-s.connectStart)}:{url:d.url,isHttps:z2(d.url),method:d.method,type:d.type,status:d.status,duration:Number(d.duration.toFixed(2)),nextHopProtocol:"",domainLookup:G.number,connectTime:G.number}}var Y3,t2,m3,Q3,Y2,W3,V3,ee=!(u2.isIE=function(){return"ActiveXObject"in window}),a3=[],ke=/^\/[^/]/,$e=!1,t3=[],Qe=(new N2({name:"reportApiSpeed"}),new N2({name:"reportApiSpeed",override:!1,onNewAegis:function(s){var d,p;this.override||(this.override=!0,(p=s.config.api)!=null&&p.injectTraceHeader&&(this.traceRequestHeader=new W(p.injectTraceHeader,(d=p==null?void 0:p.injectTraceIgnoreUrls)!=null?d:[],p==null?void 0:p.injectTraceUrls)),this.overrideFetch(s.config,s),this.overrideXhr(s.config,s))},overrideFetch:function(s,d){var p=this,k=s.api,k={name:this.name,traceRequestHeader:k!=null&&k.injectTraceHeader?this.traceRequestHeader:null,then:function(E,F,A,z){var O,M;M2(A,s.hostUrl)||(O=E.headers?E.headers.get("content-type"):"",(M=F3(s,O||"",A))==="fetch"?E.clone().text().then(function(Z){var X,p2=E.status<=0||400<=E.status,l2=((l2=s.api)==null?void 0:l2.reqHeaders)||[],h2=S3(z==null?void 0:z.headers,l2,"req"),l2=((l2=s.api)==null?void 0:l2.resHeaders)||[],c2=S3(E.headers,l2,"res"),o2=N(z==null?void 0:z.headers),l2=P2(Z,s.api,{url:A,ctx:E,payload:z==null?void 0:z.body}),r2=l2.code,i2=l2.isErr,l2=(l2=s.api)==null?void 0:l2.apiDetail,E2=l2?x2(z==null?void 0:z.body,(X=s.api)==null?void 0:X.reqParamHandler,{url:A}):"",o3=l2?x2(Z,(X=s.api)==null?void 0:X.resBodyHandler,{url:A,ctx:E}):"";setTimeout(function(){var F2=L3(s,{url:A,duration:F,type:M,status:E.status||0,method:(z==null?void 0:z.method)||"get"}),e3=[p2?"FETCH_ERROR: "+Z:"","fetch req url: "+A,"res status: "+(F2.status||0),"res duration: "+F2.duration+"ms",h2,c2,"req method: "+(F2.method||"GET"),"res retcode: "+r2,x3(E2,"req param"),x3(o3,"res data")].filter(function(I3){return I3}).join(`
`);F2.payload=z==null?void 0:z.body,F2.ret=r2,F2.isErr=+i2,p.publishNormalLog({msg:e3,level:P3(p2,i2),code:r2,trace:o2},d),p.publishSpeed(F2,d)},0)}):setTimeout(function(){var Z=L3(s,{url:A,duration:F,type:M,status:E.status||0,method:(z==null?void 0:z.method)||"get"});Z.type="static",Z.urlQuery=_2(A,!0),p.publishSpeed(Z,d)},0))},catch:function(E,F,A,z){var O,M,Z,X,p2;throw M2(A,s.hostUrl)||(O=F3(s,"",A),M=((M=s.api)==null?void 0:M.reqHeaders)||[],Z=S3(z==null?void 0:z.headers,M,"req"),X=N(z==null?void 0:z.headers),p2=(M=s.api)!=null&&M.apiDetail?x2(z==null?void 0:z.body,(M=s.api)==null?void 0:M.reqParamHandler,{url:A}):"",setTimeout(function(){var h2=L3(s,{url:A,duration:F,type:O,status:0,method:(z==null?void 0:z.method)||"get"}),h2=(p.publishSpeed(h2,d),"AJAX_ERROR: "+E+`
req url: `+A+`
res status: 0
res duration: `+h2.duration+`ms
req method: `+((z==null?void 0:z.method)||"get")+`
req param: `+p2+`
`+Z);p.publishNormalLog({msg:h2,level:Q.AJAX_ERROR,code:-400,trace:X},d)},0)),E}},C=(this.hackFetchOptions=k,this.hackFetchOptions),w=(k=s.api)==null?void 0:k.ignoreHackReg;if(w===void 0&&(w=/\.flv(\?|$)/gi),t3.find(function(E){return E.name===C.name}))throw new Error("name '"+C.name+"' is already in hackFetch option list");t3.push(C),!$e&&window.fetch&&($e=!0,Q3=window.fetch,window.fetch=function(E,F){F===void 0&&(F={});var A=typeof E=="string"?E:E==null?void 0:E.url;if((Z=w==null?void 0:w.test)!=null&&Z.call(w,A))return Q3(A,F);ke.test(A)&&(A=""+location.origin+A);var z,O,M,Z=(C||{}).traceRequestHeader;Z&&(z=(z=(F||{}).headers)===void 0?{}:z,O=(M=J3()).host,M=M.pathname,O=(Z=Z.generate(A,z,{host:O,pathname:M})||{}).name,M=Z.value)&&O&&(F.headers=Object.assign(z,((Z={})[O]=M,Z)));for(var X=0;X<t3.length;X++){var p2=t3[X];try{typeof p2.beforeFetch=="function"&&p2.beforeFetch(A,F)}catch{}}var h2=Date.now();return Q3(E,F).then(function(c2){for(var o2=c2.clone(),r2=0;r2<t3.length;r2++){var i2=t3[r2];try{typeof i2.then=="function"&&i2.then(o2,Date.now()-h2,A,F)}catch{}}return o2}).catch(function(c2){for(var o2=0;o2<t3.length;o2++){var r2=t3[o2];try{typeof r2.catch=="function"&&r2.catch(c2,Date.now()-h2,A,F)}catch{}}throw c2})})},overrideXhr:function(s,d){var p,k=this,C={name:this.name,ignoreHackReg:(C=s.api)==null?void 0:C.ignoreHackReg,send:function(w,E){var F,A,z=Date.now(),O=(((s==null?void 0:s.api)||{}).injectTraceHeader&&(A=(F=J3()).host,F=F.pathname,F=(A=k.traceRequestHeader.generate(w.aegisUrl,{},{host:A,pathname:F})||{}).name,A=A.value,F)&&A&&w.setRequestHeader(F,A),w.addEventListener("loadend",function(){var X,p2,h2,c2,o2=w.aegisUrl||"";M2(o2,s.hostUrl)||w.failType==="abort"||(X="",(w.failType||!w.status||400<=w.status)&&(X=w.failType||"failed"),p2=Date.now()-z,h2=w.getResponseHeader("content-type")||"",c2=F3(s,h2,o2),setTimeout(function(){var r2=L3(s,{url:o2,duration:p2,type:c2,status:w.status,method:w.aegisMethod||"get"});if(c2==="fetch"){var F2=((F2=s.api)==null?void 0:F2.reqHeaders)||[],i2=S3(w.aegisXhrReqHeader,F2,"req"),F2=((F2=s.api)==null?void 0:F2.resHeaders)||[],l2=w.getAllResponseHeaders().split(`\r
`).reduce(function(U2,R2){return R2=R2.split(": "),R2[0]&&R2[1]&&(U2[R2[0]]=R2[1]),U2},{}),E2=S3(l2,F2,"res"),o3=N(w.aegisXhrReqHeader),F2=(l2=s.api)==null?void 0:l2.apiDetail,e3=F2?x2(E,(l2=s.api)==null?void 0:l2.reqParamHandler,{url:o2}):"",I3=F2?x2(w.response,(l2=s.api)==null?void 0:l2.resBodyHandler,{url:o2}):"";try{(function(U2,R2,D2,W2){var K3,He,l3,Ze;try{if(typeof(R2==null?void 0:R2.retCodeHandlerAsync)=="function")return R2.retCodeHandlerAsync(U2,D2==null?void 0:D2.url,D2==null?void 0:D2.ctx,function(D3){var he=D3.code,D3=D3.isErr;W2!=null&&W2({code:he===void 0?I:he,isErr:D3})});if(typeof(R2==null?void 0:R2.retCodeHandler)=="function")return l3=(He=R2.retCodeHandler(U2,D2==null?void 0:D2.url,D2==null?void 0:D2.ctx,D2==null?void 0:D2.payload)||{}).code,Ze=He.isErr,W2!=null&&W2({code:l3===void 0?I:l3,isErr:Ze});if(!(U2=typeof U2=="string"?JSON.parse(U2):U2))return W2!=null&&W2({code:I,isErr:!1});typeof((K3=R2==null?void 0:R2.ret)==null?void 0:K3.join)=="function"&&(G2=[].concat(R2.ret.map(function(X3){return X3.toLowerCase()})));var pe=Object.getOwnPropertyNames(U2).filter(function(X3){return G2.indexOf(X3.toLowerCase())!==-1});if(pe.length)return(l3=U2[pe[0]])!=="\u672A\u77E5"&&l3!==""||(l3=I),W2!=null&&W2({code:""+l3,isErr:l3!==0&&l3!=="0"&&l3!==I});W2!=null&&W2({code:I,isErr:!1})}catch{W2!=null&&W2({code:I,isErr:!1})}})(w.response,s.api,{url:o2,ctx:w,payload:E},function(D2){var R2=D2.code,D2=D2.isErr,W2=[X?"AJAX_ERROR: request "+X:"","fetch req url: "+o2,"res status: "+(r2.status||0),"res duration: "+r2.duration+"ms",i2,E2,"req method: "+(r2.method||"GET"),"res retcode: "+R2,x3(e3,"req param"),x3(I3,"res data")].filter(function(K3){return K3}).join(`
`);r2.ret=R2,r2.isErr=+D2,r2.payload=E,k.publishNormalLog({msg:W2,level:P3(!!X,D2),code:R2,trace:o3},d),k.publishSpeed(r2,d)})}catch{r2.ret=I,k.publishSpeed(r2,d)}}else r2.type="static",r2.urlQuery=_2(o2,!0),k.publishSpeed(r2,d);w.removeEventListener("abort",O),w.removeEventListener("error",M),w.removeEventListener("timeout",Z)},0))}),function(){w.failType="abort"}),M=function(){w.failType="error"},Z=function(){w.failType="timeout"};w.addEventListener("abort",O),w.addEventListener("error",M),w.addEventListener("timeout",Z)}};this.hackXHROptions=C,p=this.hackXHROptions,a3.find(function(w){return w.name===p.name})||(a3.push(p),!ee&&window.XMLHttpRequest&&(Y3=window.XMLHttpRequest.prototype.send,t2=window.XMLHttpRequest.prototype.open,m3=window.XMLHttpRequest.prototype.setRequestHeader,ee=!0,window.XMLHttpRequest.prototype.open=function(){this.aegisMethod=arguments[0];var w,E=arguments[1];if(ke.test(E)&&(E=""+location.origin+E),this.aegisUrl=E,(E=(w=p.ignoreHackReg)==null?void 0:w.test)==null||!E.call(w,this.aegisUrl))if(this.aegisXhrStartTime=Date.now(),this.sendByAegis)u2.isIE()||(this.timeout=5e3);else for(var F=0;F<a3.length;F++){var A=a3[F];try{typeof A.open=="function"&&A.open(this)}catch{}}return t2.apply(this,arguments)},window.XMLHttpRequest.prototype.setRequestHeader=function(){var w,E,F;return(E=(F=p.ignoreHackReg)==null?void 0:F.test)!=null&&E.call(F,this.aegisUrl)?m3.apply(this,arguments):(E=arguments[0],F=arguments[1],this.aegisXhrReqHeader=(w=this.aegisXhrReqHeader)!=null?w:{},-1<["traceparent","b3","sw8","sentry-trace"].indexOf(E)&&(this.aegisXhrReqHeader[E]||(arguments[1]=F),this.aegisXhrReqHeader[E])?void 0:(this.aegisXhrReqHeader[E]=arguments[1],m3.apply(this,arguments)))},window.XMLHttpRequest.prototype.send=function(){var w,E;if(!((E=(w=p.ignoreHackReg)==null?void 0:w.test)!=null&&E.call(w,this.aegisUrl)||this.sendByAegis))for(var F=0;F<a3.length;F++){var A=a3[F];try{typeof A.send=="function"&&A.send(this,arguments[0])}catch{}}return Y3.apply(this,arguments)}))},publishSpeed:function(s){var d=this;this.$walk(function(p){var k=d.$getConfig(p);s.type!=="fetch"||typeof(k==null?void 0:k.urlHandler)!="function"?(s.url=_2(s.url),p.speedLogPipeline(s)):p.speedLogPipeline(t(t({},s),{url:_2(k.urlHandler(s.url,s.payload))}))})},publishNormalLog:function(s){this.$walk(function(d){d.normalLogPipeline(s)})},destroy:function(){var s,d,p;this.option.publishSpeed=function(){},this.option.publishNormalLog=function(){},this.option.hackXHROptions&&(s=this.option.hackXHROptions,(p=a3.findIndex(function(k){return k.name===s.name}))!==-1)&&a3.splice(p,1),this.option.hackFetchOptions&&(d=this.option.hackFetchOptions,(p=t3.findIndex(function(k){return k.name===d.name}))!==-1)&&t3.splice(p,1),this.option.override=!1}})),N3={},nn=new N2({name:"reportBridgeSpeed",override:!1,onNewAegis:function(s){this.override||(this.override=!0,this.overrideBridge(s))},publishSpeed:function(s,d){this.$walk(function(p){p===d&&p.speedLogPipeline(s)})},overrideBridge:function(s){var d=this,p=s.config;p.reportBridgeSpeed&&p.h5Bridge&&p.h5BridgeFunc.length&&p.h5BridgeFunc.forEach(function(k){var C=p.h5Bridge[k];N3[k]=C,p.h5Bridge[k]=function(){for(var w=[],E=0;E<arguments.length;E++)w[E]=arguments[E];var F=w[0],A=w[1],z=w[2],O=w[3],M=Date.now();C(F,A,z,function(Z){var X=P2(Z,p.api),p2=X.code,X=X.isErr,p2={url:F+"-"+A,name:F+"-"+A,duration:Date.now()-M,type:"bridge",ret:p2,isErr:+X};d.publishSpeed(p2,s),O(Z)})}})},unHackBridge:function(s){Object.keys(N3).forEach(function(d){N3[d]&&(s.config.h5Bridge[d]=N3[d])}),N3={}},destroy:function(s){this.option.publishSpeed=function(){},this.option.unHackBridge(s),this.option.override=!1}});($2=Y2=Y2||{})[$2.unknown=100]="unknown",$2[$2.wifi=1]="wifi",$2[$2.net2g=2]="net2g",$2[$2.net3g=3]="net3g",$2[$2.net4g=4]="net4g",$2[$2.net5g=5]="net5g",$2[$2.net6g=6]="net6g",($2=W3=W3||{})[$2.android=1]="android",$2[$2.ios=2]="ios",$2[$2.windows=3]="windows",$2[$2.macos=4]="macos",$2[$2.linux=5]="linux",$2[$2.other=100]="other",($2=V3=V3||{})[$2.unknown=100]="unknown",$2[$2.normal=0]="normal",$2[$2.weak=1]="weak",$2[$2.di
`+K2(z[4]||""),level:Q.ERROR},s),A!=null&&A.call.apply(A,a([window],z))},window.addEventListener("unhandledrejection",d),window.document.addEventListener("error",p,!0),s.lifeCycle.on("destroy",function(){Se.countInstance()===0&&(window.document.removeEventListener("unhandledrejection",d),window.document.removeEventListener("error",p,!0))}),s.config.websocketHack&&(k={key:s.config.id+"-"+this.name,onErr:function(z){var O;(O=F.publishWsErrorLog)!=null&&O.call(F,z,s)},sendErr:function(z){var O;(O=F.publishWsErrorLog)!=null&&O.call(F,z,s)}},this.hackWebsocketConfig=k,k=this.hackWebsocketConfig,window.Proxy)&&window.WebSocket&&(C=window.WebSocket,window&&!C.isHack&&(w=new Proxy(WebSocket,tn),C.isHack=!0,window.WebSocket=w),E=k,c3.find(function(z){return z.key===E.key})||E&&c3.push(E))},publishErrorLog:function(s,d){this.$walk(function(p){p===d&&p.normalLogPipeline(s)})},publishWsErrorLog:function(C,d){var p=C.connectUrl,k=C.msg,C=C.readyState;this.publishErrorLog({msg:`WEBSOCKET_ERROR:
connect: `+p+`
readyState: `+C+`
msg: `+k,level:Q.WEBSOCKET_ERROR},d)},destroy:function(){var s,d;this.option.publishErrorLog=function(){},this.option.hackWebsocketConfig&&(s=this.option.hackWebsocketConfig,window.WebSocket=ln,(d=c3.findIndex(function(p){return p.key===s.key}))!==-1)&&c3.splice(d,1)}}),we=(new N2({name:"pagePerformance"}),3),Ie=new N2({name:"pagePerformance",performanceMap:{},onNewAegis:function(s){v2()&&(p3?this.publish(p3,s):this.startCalcPerformance(s))},publish:function(s,d){var p=this;this.$walk(function(k){k===d&&k.sendPipeline([function(C,w){var E,F=[];for(E in C)F.push(E+"="+C[E]);var A,z=p.$getConfig(k);if(z)return A=((A=k.config.performanceUrl)==null?void 0:A.indexOf("?"))===-1?"?":"&",typeof z.urlHandler=="function"?w({url:k.config.performanceUrl+A+F.join("&")+"&from="+(encodeURIComponent(z.urlHandler())||window.location.href),beanFilter:["from"],type:I2.PERFORMANCE,log:C}):w({url:k.config.performanceUrl+A+F.join("&"),type:I2.PERFORMANCE,log:C})}],I2.PERFORMANCE)(t({},s))})},startCalcPerformance:function(s){var d=this;try{this.getFirstScreenTiming(s,function(p){var k=performance.timing;k&&(p3={dnsLookup:r3(k.domainLookupEnd-k.domainLookupStart),tcp:r3(k.connectEnd-k.connectStart),ssl:r3(k.secureConnectionStart===0?0:k.requestStart-k.secureConnectionStart),ttfb:r3(k.responseStart-k.requestStart),contentDownload:r3(k.responseEnd-k.responseStart),domParse:r3(k.domInteractive-k.domLoading,0,15e3,1070),resourceDownload:r3(k.loadEventStart-k.domInteractive,0,15e3,1070),firstScreenTiming:r3(Math.floor(p),0,15e3,15e3)},(k=s.config).extraPerformanceData&&JSON.stringify(k.extraPerformanceData)!=="{}"&&(k=(p=k.extraPerformanceData).engineInit,p=p.bundleLoad,p3=t(t({},p3),{engineInit:r3(k,0,1e4),bundleLoad:r3(p,0,1e4)})),d.publish(p3,s))})}catch{}},getFirstScreenTiming:function(s,d){var p=this;s.lifeCycle.on("destroy",function(){M&&clearTimeout(M)});var k,C=this,w=["script","style","link","br"],E=[],F={},A=(-1<((z=(z=window.PerformanceObserver)==null?void 0:z.supportedEntryTypes)==null?void 0:z.indexOf("paint"))&&(k=new PerformanceObserver(function(Z){Z.getEntries().forEach(function(X){var p2;X.entryType==="paint"&&X.name==="first-contentful-paint"&&0<(p2=document.querySelectorAll("[AEGIS-FIRST-SCREEN-TIMING]")).length&&(p.setFirstScreenInfo(s,X.startTime,p2[0],p2),d!=null&&d(X.startTime),A.disconnect(),k.disconnect())})})).observe({entryTypes:["paint"]}),new MutationObserver(function(Z){var X={roots:[],ignores:[],rootsDomNum:[],time:performance.now()};Z.forEach(function(p2){p2&&p2.addedNodes&&Array.prototype.slice.call(p2.addedNodes).forEach(function(h2){C.isEleInArray(h2,X.ignores)?X.ignores.push(h2):h2.nodeType===1&&h2.hasAttribute("AEGIS-FIRST-SCREEN-TIMING")?(Object.prototype.hasOwnProperty.apply(F,[X.time])||(F[X.time]=[]),F[X.time].push(h2)):h2.nodeType===1&&(C.hasAncestorOrSelfWithAttribute(h2,"AEGIS-IGNORE-FIRST-SCREEN-TIMING")?X.ignores.push(h2):w.indexOf(h2.nodeName.toLocaleLowerCase())!==-1||C.isEleInArray(h2,X.roots)||(X.roots.push(h2),X.rootsDomNum.push(C.walkAndCount(h2)||0)))})}),X.roots.length&&E.push(X)}));A.observe(document,{childList:!0,subtree:!0});var z,O=function(Z){(Z=Z===void 0?0:Z)||(X=0,(h2=Object.keys(F)).length?(Z=Math.max.apply(null,h2),p.setFirstScreenInfo(s,Z,(h2=F[Z])==null?void 0:h2[0],F)):E.forEach(function(i2){for(var l2=0;l2<i2.roots.length;l2++)i2.rootsDomNum[l2]>X&&C.isInFirstScreen(i2.roots[l2])&&(X=i2.rootsDomNum[l2],Z=i2.time,p.setFirstScreenInfo(s,Z,i2.roots[l2]))}),E.length=0,Object.keys(F).forEach(function(i2){F[i2]=F[i2].map(function(l2){var E2={tagName:l2.tagName},o3=l2.attributes;if(!o3)return l2;for(var F2=0;F2<o3.length;F2++){var e3=o3[F2];e3.name&&(E2[e3.name]=l2.getAttribute(e3.name))}return E2})}));var X,h2=performance.timing,p2=h2.domInteractive-h2.domLoading,h2=h2.loadEventStart-h2.domInteractive,c2=Z;M=null;for(var o2=0,r2=[p2,h2,c2];o2<r2.length;o2++)if(r2[o2]<=0&&0<we){M=setTimeout(function(){return O(c2)},3e3);break}M?--we:(A.disconnect(),k!=null&&k.disconnect(),d!=null&&d(Z))},M=setTimeout(function(){return O()},3e3)},setFirstScreenInfo:function(s,d,p,k){var C;s.c
2024-04-29 12:57:33 +00:00
It is recommended that you contact us for feedback and thank you for your support.`,"color: red"),w.sendSDKError(E)}return w}function qe(){this.constructor=de}new N2({name:"ie"}),new N2({name:"onClose"});var Ue=new N2({name:"onClose",onNewAegis:function(s){var d,p=this;u2.desktop()?(d=window.onunload,window.onunload=function(){for(var k=[],C=0;C<arguments.length;C++)k[C]=arguments[C];p.publishNotReportedLog(s),d!=null&&d.call.apply(d,a([window],k))}):Le(this.publishNotReportedLog.bind(this,s),{once:!0})},publishNotReportedLog:function(s){var d=this;this.$walk(function(p){p===s&&(p.sendNow=!0,p.publishPluginsLogs(),d.publishThrottlePipeLogs(p))})},publishThrottlePipeLogs:function(s){s!=null&&s.speedLogPipeline([]),s!=null&&s.eventPipeline([]),s!=null&&s.customTimePipeline([]),s!=null&&s.normalLogPipeline([])}});return new N2({name:"aid"}),n2.use(rn),n2.use(Qe),n2.use(B3),n2.use(Ie),n2.use(Ve),n2.use(s3),n2.use($2),n2.use(an),n2.use(Ue),n2.use(nn),n2})})(aegis_min);const Aegis=aegis_min.exports,encodingIndexes$1={big5:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,nu