@techui/scifi 0.1.4-alpha.1 → 0.1.6-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{tMitt as qn,tEvent as We,tObj as xt,styleInit as la,tQuery as Ze,tDom as rl,tLang as fl,tConsole as Yo,tCryptoStore as ra,tMonitor as Na,tType as Qe,genUid as xe,tTimer as he,tFrame as ft,tResize as Ul,tInterval as Lt,tTheme as Ql,tClass as hl,deviceInfo as Ko,fullScreen as Ia,viewTransStart as Ma,viewTransWait as Xo,syncContSize as Zo,cssVarSet as Jo,tArr as It,tNum as et,tStr as ga,tStore as Da,tProps as Il,tTime as Oa,cssSizeEnsure as Wl,tMutation as Yl,tCoreTpl as Je}from"@techui/utils";import{svgPatDiamondWeaving as _a,svgPatZigzagB as ei,svgPatZigzagA as ti,svgPatWaveB as li,svgPatWaveA as ai,svgPatTriangleB as ni,svgPatTriangleA as oi,svgPatTotem as ii,svgPatRectWeavingC as si,svgPatRectWeavingB as ri,svgPatRectWeavingA as Ai,svgPatSlashParallel as ui,svgPatShellB as ci,svgPatShellA as di,svgPatRain as fi,svgPatMountains as pi,svgPatMazeC as gi,svgPatMazeB as hi,svgPatMazeA as vi,svgPatLineWeaving as mi,svgPatLineGrid as yi,svgPatHexagonCurved as bi,svgPatHexagonD as Vi,svgPatHexagonC as wi,svgPatHexagonB as Ci,svgPatHexagonA as $i,svgPatDots as ki,svgPatDiamondPixel as Si,svgPatDiamondLattice as qi,svgPatDiamondFlipped as Ti,svgPatCubeC as Bi,svgPatCubeB as xi,svgPatCubeA as Pi,svgPatCrosshairB as Ri,svgPatCrosshairA as zi,svgPatContourLine as Ni,svgPatCircularOverlayB as Ii,svgPatCircularOverlayA as Mi,svgPatCircuitDiagram as Di,svgPatBlocks as Oi,svgPatTest as _i,svgSpinRingA as Ea,svgSpinRingC as Ei,svgSpinRingB as Li,svgSpinPulseRingC as Wi,svgSpinPulseRingB as ji,svgSpinPulseRingA as Gi,svgSpinPulseDotC as Fi,svgSpinPulseDotB as Hi,svgSpinPulseDotA as Ui,svgSpinPointC as Qi,svgSpinPointB as Yi,svgSpinPointA as Ki,svgSpinClock as Xi,svgSpinBlocksC as Zi,svgSpinBlocksB as Ji,svgSpinBlocksA as es,svgSpinBarsC as ts,svgSpinBarsB as ls,svgSpinBarsA as as,getVer as ns,openDec as Aa,openEnc as ua,getEnv as Kl,coreConsoleInfo as os,cssVarGen as pe,cssVarIf as q,cidVaild as Tn,floatInfo as is,adptCalc as ss,bar3DPathGen as rs,cidGen as Bn,md5Enc as La,pieArcPathGen as As,t3dCoeffCalc as Wa,t3dUpdateRotate as ja,t3dUpdateOrient as us,scifiButtonA1 as cs,scifiButtonA2 as ds,scifiButtonA3 as fs,scifiButtonA4 as ps,scifiButtonA5 as gs,scifiGeomHexagon as hs,scifiGeomeParallelogram as vs,scifiGeomeRectangle as ms,scifiGeomeTrapezoid as ys,scifiGeomeTriangle as bs,scifiDecoA1 as Vs,scifiDecoB1 as ws,scifiDecoB2 as Cs,scifiDecoB3 as $s,scifiDecoD1 as ks,scifiHeaderA1 as Ss,scifiHeaderA2 as qs,scifiHeaderA3 as Ts,scifiHeaderA4 as Bs,scifiPanelA1 as xs,scifiPanelA3 as Ps,scifiPanelA2 as Rs,scifiPanelB1 as zs,scifiPanelB2 as Ns,scifiPanelB3 as Is,scifiPanelB4 as Ms,scifiPanelDV1 as Ds,scifiPanelDV2 as Os,scifiPanelDV3 as _s,scifiPanelDV4 as Es,scifiPanelDV5 as Ls,scifiPanelDV6 as Ws,scifiPanelDV7 as js,scifiPanelDV8 as Gs,scifiPanelDV9 as Fs,scifiTitleA1 as Hs,scifiTitleA2 as Us,scifiTitleA3 as Qs}from"@techui/scifi";import{reactive as Pe,toRefs as Ye,computed as g,getCurrentInstance as ut,createElementBlock as h,openBlock as A,normalizeStyle as fe,normalizeClass as P,renderSlot as X,watch as K,onMounted as ye,createBlock as Z,Transition as Me,withCtx as W,createElementVNode as u,ref as S,inject as Se,provide as rt,onBeforeUnmount as At,Fragment as ie,createCommentVNode as C,Teleport as Tt,unref as f,createVNode as ce,withDirectives as we,withModifiers as st,mergeProps as Ne,vShow as Oe,nextTick as de,useSlots as yt,resolveComponent as ke,renderList as ze,createSlots as jt,toDisplayString as F,createTextVNode as De,normalizeProps as pt,guardReactiveProps as Vt,render as gt,h as Mt,resolveDynamicComponent as ct,onUnmounted as Dt,onBeforeMount as Al,resolveDirective as Fe,defineComponent as xn,useAttrs as aa,shallowRef as Pn,markRaw as Ys,vModelText as Ks,watchEffect as wl,onUpdated as Xs,toRaw as Ga,TransitionGroup as Rn,cloneVNode as zn,withKeys as Fa,createStaticVNode as Zs}from"vue";import Js from"@techui/locales";import Ke from"@techui/colors";import{useFloating as Va,offset as wa,shift as Ca,flip as $a,arrow as er}from"@techui/libs/floating-ui";import{useRouter as Nn,useRoute as ka}from"vue-router";import tr from"@techui/libs/dt-detector";import lr from"@techui/libs/async-validator";import ht from"@techui/libs/dayjs";import ar from"@techui/libs/dayjs/plugin/isoWeek";import In from"@techui/libs/dayjs/plugin/weekOfYear";import nr from"@techui/libs/dayjs/plugin/isSameOrAfter";import or from"@techui/libs/dayjs/plugin/isSameOrBefore";import ir from"@techui/libs/svg-injector";const Mn=new qn;Mn.data={};const sr="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAABAAAA6oAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbycnJycnJycnJycnJycnJycnJycnJycnJyfb29vb29vb29vb29vb29vb29vb29vb29vb/////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQEGCEAAbgAAAOqYpgBhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQACIgCdHVAAAAACBjsn///lwf//B95QEP+XP/+Tg///z8H//Lh/id5/B/IKiRWpnhllnljdrcbQ4Yw0AzECAcIT0DBJ1IaAdfqJ7PUUCYuloWvZuy5h6NDXWtt2R8a2vBugsBRVewstea96LNcsYQBy5c79MsWvTtlUxk8BPq5SNjdGWJeN7alNJQuTGEJ7dl2NKDKReOPxJJay92Wswlypp3qGPe3GVsrjFOypl8wle0RKx5opT3qGMyl9YzTXKa8uxl8HxqUuS+1998+0XYxCmsQI5Egzh+N/N7xjGHdTM47T/Rq5SU0Zbg/UCNwZdSQHAkqzduRP5B8Yvf+cld+o//zoMTVTHwWqx+awQSO6DBJnLG7nVpa3bu6uNWW0sgmoZnofm6Oby5zUmnNbXuyBSx1n4zZwxB+NSV32CRlx06IcnIfz7/1qtmtVs7y/60apv5/6yeiS++klnoZkcNansI3NPw7+fKGRTtQSBwQCgQDDCAB4DycEEcRMBYFqmLIigk/koLwVfxiMBXH3+Kw6eWEV/54iRVOisb//2NUxnNIf//2NNRyEsqmHuZ////kzmkLmmnGnHKRHSL//xEFHirlCUJgqtVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/81DEzxcSmopRilAAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MQxOcAAANIAcAAAFVVVVVVVVVVVVVVVVU=",rr="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAAygAhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWF9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0////////////////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQDjUEAAbgAAAMoG4EAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zoMQAEaAG8v9BAAB4pEfbIGIDL/gBAEHB+CAYdLg/KA+D/EBysEAQBDrfB8H8uD4Pv/8H3/4Y/ul3/BAMfwfP5cP/8Hw/B8Hwf//9YPg+DgIBhYTCK0CkG6MAAOJLDQ+JgIFhCVKkxseOSIVMOWC34EayBQJ7v2DeER0CIYpIQSKy2gQkDjgAzZMUjz41QbBIzJ01FJK8QVAQUcY+gbzGYrUhpIjHfDVIYiHERUMJBYcLNJo+UpkRZf8io0SYDEQN3DHB8wuYukVJQyPkytjIy/46Q+EZYzH0TJASoXTwyx0ZU3NSZNHMjpwhxbICsu//w1aWRCogqOUQYc6OoiZAiLGxkTRZIKYnEzEvDpMTIjTE4dl4s//+mXA/YWaVDdNEmUiyQViHCtiGjmk4XZDTE8Q4yTLqKnr/85DE5TrzwsMXmJggKtVEyKR8xUxBTUUzLjEwMC4xVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8xDE8QAAA/wBwAAAVVVVVVVVVVVVVVVVVQ==",Ar="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAAqUAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx////////////////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQD+SEAAbgAAAKlEfq4zQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zoMQAC/jCyv4IRBhneWb7YDb6Z8AApABjeY3gUgL9T/yfIAABzwxxPLhj4f/4P//5c/gg////lAx/+D5ySPgAuDL/NIkZNBQlGiRLcOJJUaRRmSJGZqtaqqjiKMmsL2KwkpHqOI7RbRwqnGXr6NCfGoYzKUrVKX6GNlK35jP9SlKUv////Qz0MYxjCpjGylb9DG6lK3zG/qUpSlK5QEBElywd+DQMlj36g7Dsl1VVTEFNRTMuMTAwLjFVTEFNRTMuMTAwLjFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/81DE/BybDp42M8UkVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MQxPIAAAP8AAAAAFVVVVVVVVVVVVVVVVU=",ur="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgMQAAAAAAAAAAABYaW5nAAAADwAAAA0AAAYZAERERERERERsbGxsbGxsbHt7e3t7e3t7iYmJiYmJiZ2dnZ2dnZ2drKysrKysrKzAwMDAwMDAycnJycnJycnY2NjY2NjY2OLi4uLi4uLs7Ozs7Ozs7Pv7+/v7+/v7/////////wAAAChMQU1FMy4xMDAEAAAAAAAAAAAAFQgkA8pBAAG4AAAGGTsDnisAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/87DEABoxnp7vQYAAd4d2vDcBLwAAAAAAAGMY3wDG4//6aaaaaaaaaCH9NNNNNNNN/0EEE0y+XyLkXIuRcg4uQZgqDHhZ8AFA9BueQYLfwtHDVYlMXOLnHPIOT5OFwuGgIAgCYPg+D4PggGP/gT/+CH///KBh+v2+us2l1VoKAAAjCALCi52KuCwiwLqBHjCFDKbYV9Q7fiudatvWncaUvKk64X791WcwVGa8ahrCx9rLkqxflsVZxmlwZFtyWlgdwsb0wyFYoVBAwABnGvlnk8IkA1Plm/96cMAARMTkVMS0KDgiJgoL7LRbWhnDCQDzg4FRUQWI3MrlHmIi8MBDTJgBKAOpNXc/pICqtZs5Ya+M477lTby5vLL+//5c1n//////TRHmNXvIZh2zjaArwm9H/8nArYFVDdvYvaivQBAAO5GIACowoKQVuO7sESofW9JepBajM10kmXrRuydFCp0W3/37KSY4T5IEGP/zgMT3MJKKjl+P6AAM4C2RPEzMgTDY+j/SC6uauqZrQFwAP5RcgeqhBodUjbFbS0ajdoQbnVHSWXf2K7rqKRFRVr6I7KCigbFsV27gpanG69XgNGhYgJjv8SWYd6Z4dUhAPAATTtaBkMBMNO9MdMop0229r2DIu8va3P+ndAhCTwGsmDk453tSWW5h2H4j6t6D7ckHDHbPHs9YQM2ydwF0OJXgSGJiT5uac14kPGpdTxGcvCY2WEvLy70iVe7bq73LmgjtmqGwM4Z1Tkagj6X/8zDE9xA5dscfwpAAOHqRAg0UN79S1EaXlyt/u7hcMxWGQMkjVRyml5lax13Lc1AUHnf+VlhKCHdV39gAH/7goOjK2PLMm6qkbqhTQ23/8zDE9xApdrceQLD00warUrnpmbPaFMF1K1FJ/l36Ccl9mtDktaTRLTMagN5wP+qGiaJ1HeoIhLpTVnKtMYMoiNGa8tqVZfevZczLy7z/80DE9xhhfqMeGbJ8u54AHU15X67AIlwUzp0J/cPaVpISepETkZMV//QAE0mXgHwLQ7IL131k46rM28rdrL4DHps6QIaD+FGloZ4ZAilhjVPSkQAOMw+kn6ozI0Yn//9zJJE4SoIGt//zMMTwDzlmyxgZcShSvrjvNqm6mYmpjgAOzt3Jcc0fEZj5LK893ic1TVXcuKVyZQ2sqX9ZgEpNRuFiyCSNVXl+eGd2Z4ZuAA+dlTGLl//zQMT0FOl6lvgwtSQOhLd5yfhzf+Ia5t1bIpkuZO3bEpU+OWb//mJjiV3EIHgCF509u6/3jtOVAEAYDAgAArGAjH4JfT6X+cdH//8xMS4gYdSXx1iUQSKgasICIIPBG1mJia/88Q0k//MgxPsLyWbDGBhlKBfiCxQKTEFNRTMuMTAwLjFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zMMTyDQFmvxgw2tBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zIMT/C7FirxgwWyhVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8yDE9w3ZZpsZRlgAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MwxOYNQWKOWYKgAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MQxPIAAANIAcAAAFVVVVVVVVVVVVVVVVVUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",cr="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/jSMQAAAAAAAAAAABYaW5nAAAADwAAAAUAAAVYAFVVVVVVVVVVVVVVVVVVVVVVVVVViIiIiIiIiIiIiIiIiIiIiIiIiIjMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7u7u7u7u7u7u7u7u/////////////////////////wAAADxMQU1FMy4xMDAEKAAAAAAAAAAAFQgkBGohAAHMAAAFWEOj8BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/jWMQAGHKCwx9BQAB6y7mYdiYA/AAGMbx4xx4xjAvwDH4xjAAAAAAAAxjGMYxv/9ER3f///hET///REr/////0REr////9ERHd3d3LFxQOAaA0DwyRcG4CgCgLA8FBRAQB8HwfP/////4IAgCAYcjeuririqaZVQAALagKR+BIFKV3v8yxtlogAMYRNLWggK5i1RiEvQACWrOKBQYy5czWV2sRZe1FYd+5HBT/pyuEzpe0BrRnVzyJdDUlSPJGWcy1wZMnNTLufqYjshZkkU+lE/cHPvA77wfHH+kUGSNkMhaS+8faSFAYi5KctVYVzIw+boPI8D5Rt5HTdedjPI1ROkzhiD3ur9/f3ca0atfvC7f+/cllyWXZY8bO///+59ymuX4j6s4PkUNf2HaaGn+paWlpsmEgEUAil0IDge7T/T3L33ujBIWEn6a7+8d46/4apZbKa1NKqtLS5ZU2NWl1a26l2X0sv//jOMT5QsuWuxmYyAG0+VJapOVMc72dNla3lurF7lkqter0icQgAToIsCWPo40sF6XwDaI7/7loSc1isPwDaFSTzPzkf5rFYP8MUbqIDF3X7v0Uvv0UvZTEFsspiChuH/hzlHIIfo5A/cjgSGZh4YZmG4uzMfh+f/Xzl9uKO/F28MAwDHQTHgbWovllMkRlUBZeZVEeZdxkAiaUw/8/iKbxieKBjYfJMWCo2gM3ZZFH7fiWS+MUkvlgBBRCssAAXuYmrMpU5bRlzQPBCmj8WLFixnz6f/ySNP/jSMS4PUt6rlmP6EgEAOt4f3D+4f8NTcFTVqams6CazuVs/////////+UVKekwp6SpT0mq9TWeGs49DV+glWdBNW9Sq3crWtVt1drbdYwDwOABEIQswiEIQhCEIIfiEEIQhCHmEIQhCET4QhDlllll3/3llllllll3//WWWWWWPP//1lWxxqyl2VMS4JgKZDlpkfoU6KgKRKxX5uBJYKgqCwd/8RA0GsRAyCoKgqGv////////8FQVBZ5MQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/jKMTVG/myWl/BwACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/jGMTEAAADSAAAAACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",dr="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAABAAABVgAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3/////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCUiEAAcwAAAVYdka+1QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAbkhK+/0FYAEVohrEiA3eAAMYxjGN8gAAvGMY8A38xgAsgAAMbzGMbK/9jHve973vexjGMYxjHve973vexjGMZ+973ve99sYxjGMre973vtAbAEwJwRx3m7z/3cEwfwfBAMSgJg+//8EAQd///8Hz+BAQBDB8H1frtLWsIiGIiAABrB9BfADoYJxwmQJGPoTYhVRNQho+hNhNzzmRbcSo3SciTG6PSJKoxMCcLDjVhLa3Zdy7nhYaqV/EBCAwxoVAfJ3CZ1TxJnSppprTWpS/strRp/3DednEU9dC5Ii/skiLOVyxKLd/62OMprSpwrEv7g5blz9i7L5mVOU5VXB0nRXa12IuyuVuSQxVdDq4tckU+ruv6zhrk5ULyECYDNQMEbyUPpLPoVKVKgKCMSpK/pdUtK6TrUNNGo1ulpdZWv/X+5dP9PT36T/pKT/+VRpyqtmtVpaXXatamr/Vw3NuDNS5//+NIxOxF+76meY/QAKrSxmtTRqZjNIztx4v9PTuJFL1JSUkXp/i9O/30zhRF/b12lf2mprtNTRK6uqiamKdqdaQ6QIAky3wQQSQpyYZAawpEwyjvui/q5GCTy5AwwwcEmDDUkGxmgUsiyPCvBgJc5NYUC8MdpIjWYY8lZhjaLmbZYFW5tlgX1qQHDOnRoGGOpHGGNpDCmDSoGZCyqBl4sqhT+xR9X1mG4wT9FQRiijEYjEYdCifV9qN0X2o2kvtPspaS7NI2F+YIZDAMoaTKIxORiMCwSAQ5ZksawqR5KbsAyq/vK6yl9pWhN3+8f3zDG7qOpeMVV3AbO4Hjcbt09P2ntpVCMjM0OEd30WGlNA7VLchrG4ucCIJzDuUCEX1r/+NIxOdF44KzGZjYBfXf//vuO/99/4vff+n9/6f4vf+nvrupYCZ1jDTlfDT/ahqHrkal1yNWqjUgltPMqioDgcIh2oBvAA//EIQhC//CEK/8IhCEIQhCRbUkkkkiiiiiiiiilooooo1JJJJJJJJfSSSSRRRRRRRRRfRRRRR//+kkiiiiXS6QEc0c0+OSGIQbVBsyHShhIDO4DnQAYoyAfEGrhKQzRPF4vAqGuJQVBUFf/O9YKgqCod8sDQNP6gqCoKgqCp71A0DQNUxBTUUzLjEwMC4xVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MoxOIi+opmf8GYAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",fr="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAIQAAC8oAAgICHh4eMTExSUlJVVVVXl5eampqdHR0fX19iYmJkpKSnJycqKiosbGxuLi4wMDAycnJ0NDQ19fX3Nzc4eHh5eXl6Ojo6urq7e3t7+/v8fHx9PT09vb2+Pj4+/v7/f39////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQCQEEAAbgAAAvKK8cDQQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAAAD/AAAAAAiKMASuuwRsGAQOBwU//OgxA0VETZ2X0UYAGOIMJh9yMQjf//+7n6FEeVTNKdF/9ZRaF6foiGTuBvhgP4eUEQ/EAYwcFgGXPlP/lCgYW/UTiQMfqW+sPxAcwf0S+SUNWBL1aHX5Y3I3WpbIpD9UKhC0JrEUEQhAWXMtaHBxjIbz9ryuVroeTWtV+i4Na3HrfG6HG2KjRyIxj9maCqGOPDfKjMJKHShsxutpdiwOIpB5ZxAXDBtW/vmSNeH+3upouN5iuGIl4bfbNW9tez0e6yqNZf7y4WzL//Sng0o9iM8mXkTvX8ZWOMz+FVhxiLPSuaf5zT/4pT1+f/jsv/za/zSn/gQbf+lLeE13/+PvHvjf/////piv+IOMa+Nf//59MUdeNq1Y/qVAANlN4N3N4GHkylFx1MgRAMQ8AcwaEyQQG7TKhRacP/zgMTkMRPqgl2YeADpYBAGZhySwYcSpqvp1VYJCtldLAmCTdxlr2OA6Smy0YHyhtWRbEvkS7W7RZXT+PJFZmWx+UxJMNMgAHkW45NROfrOzMPpB/7qtdiVut/zFS5fz/Vi7eo7s/H3bh2CpJ2vF56rdisjlf45SDGNY02VrUy1Gtcrxilo5ZuVUtaTUGqluYzpKSnu51qenv5YVJREMs8c/o/+SQ33/+geXHf0tHv/rVu//53/7q5f/9at6//ocufq5lveqWz+vj7sT34YX///85DE4jwbkpsfmsEA////1jz/+708bf1IyCkKAtk+1t00+3zSWWHxE9SwcodeAOWqne0Gtby7f1re8/tqpCxOrXU2lRfZVMkjOp1e/0Fc/bdH2WtDIhRAnXt6+rNoWE3h8RqYerQt/zJ8qZa9+5x4+oAOKdVq70OEx2SUttjzl227VQPZoZFSW2W7fq+zoq7abbmAIOyp6p+27WzES8sMihq65m84ISC7VFJBLQEXEgYOCCOBBCAgTzhcOlmm3Z9xtKwOLGD+MFHiS2mIkCogIy6NuuOAnLxAf/VilDnuUZz7gIwc4q3FrNLlA12ktssklt+FQ6yrSfrZnQdiGXQhyIsHqyj/81DE6Rmp6rJf2SgAp+SgwxZInQVcH20yrHuCuK3M+G8frsHncu9+TpQm2YxtGe9J5e5tnvDXLunAcoM3RetizrFF0aKEK0mEDvV++Trb9s7TKoRqYtUBwzWXSSObbyyXHXWvhstHJ7KpjaiBHKDsDnkz9Zk5Im5T/aeUY2LQ5ZU6//NAxPcZ4I62ftMGMDlmktfHkHCSGQXHJU14yNYWQTUHUU8sudUmg1Umo8UqSgjuxV62/791DqzDV1s1/eU61gAXO5ZrbLt/IbpzGCYaWj2z0TNZlvCjSyRVZec7JuUNV1zVf7Os8mf/81DE6hjRzrpe0MS03FERYeUFFLGjyE62I3DyLD1omiFi6LmQwONihlTlIF7CpvqbQQP0vIVo/bl2RR1U3YR2HDSlfqRVABiyk0skl30VbEduTYUTe/ji/XnNuRTTHMqKktT1giugCQp/c3YEyjNhCdLyPShSKKDuzlMqRr6uV1+W//NAxPsXeLK6XtPMCJvNP1RisfDkRBVa6JR7MlJ6UzPb0JdyUk09KdUf1K+RU/8j+xD6sJDPehxjVtd+ua3rAa33tum1++91n5vQQ+8LnmBRUo4ikoo8laV4a6BrS6E/X2aeVK2nZ0P/80DE+BgI1rpe00wMHqhUdrIzrSrq9hpXTGH3REZb84l/Ky3+m6mUqTVBA60Go0FWLQ0ZeVrtMJVEbhYk7YOGe32/9n0/PAC6ZKV3e7f//i1HDPuWTKn1ewznQMvhyi1doLJIpB63HP/zUMTyG4NCsl7QxNSWfXNTZrdsoVmujG9c/KTs4JOHYnedn748FXPcmmVJjueQK8eo2VDQsGSN7Y1jAK0q5qa7U4pQoUf2YvVtQ+p1WlnTA0jkdttt1/Fx9xBU68MFAQwNosxXVd8TGahAr5vrDhicM64nBAQLDAuVVUKpNh0DtPL/80DE+Ri6CrpeyYo4gdZWyJJhxCNDDvNHQhHHW/ryR3dc/Uo2KS+sSMhk6NF3PsGBRaWBsAkEnYoqAJZ1tmu322/E5MASMYbIoVA8VbYkCwbCSWFYQ2TIXB0VWAnqPCIaLKLMRe4lLP/zQMTxGPmitx7BhnixOBniFY2KmhdR4VULgMja2TKkVNPEHpSSskvL/1XirEUtNnspfQgMSLlyS6VpAk81u22/3AEYlR1JCkOhWOIxdI8J15moKgSiRej19g6S/Lwzq7vvf75s38wU//NQxOgXiJqmXspGKEgmtgqqcPtYOWSSRC4oHRZb2ZVOlGFcUItJQywsDpCnTQPPURmjffcAC6/ovRzCEBMaH1gIxS9sDOLbSdQTLYKw7LbKJsMMpI7OVy9foT4ZN5h/yfK0nPK1aAhzKiICsZGk22sasD0Jq0IVAIZm113334AE7P/zQMT+FwBipv7BhkTB5vJ0CBMYhg6BiwpX6U0TEKjq25T3bcTSU87Wr0o1UioLVvpPIU2jVyNG6fnOyNJfyPMvPs/5qELQ8LuHAudW+7UTAk23///35dMySwgUoVbgvemrwsbVTDEe//MwxP0TaQqaXsJGKD1xPmCfjWqooPEgiJlnCcUAsKiZAovpVbQk3VO10NWTQJ0CzWXbf/aQxgx/ahKAq5GCIN2QmlqHdSeRPoX0NQ7Y//MwxPASUV6SfsJGRGlv09d6Z4k7FOC4DIyKKtIS4VW0WASgHqayNhx9Q8qswgY5Lttv/8ABjRgjCXrab6T0l/eM9SGanVhhazLaJ/Jj//NAxOcTQbKO/sMGNN7/w55Tqyw7mKytlZ1LW+iL0Oszm/fy9QTJMMq33GoG/ab4cADeBL9QFj0izzQc0otq9wEhQGJK760PF0UG27vMsAwnDcEWgqKGISOC0EqHZJd61Qa6qaCQDAf/8zDE9Q5wno5YyYZQTQHomwfNeHn6k8VS/rUIypmrAAwFNJAFiUqbwqRvRasb/SsByn0EuKzUR7ioU9IImnnAKcjCLTgdujTrxJUIh3D/8zDE/A/pEoZYykYswCR9IQYsKcQvCFUAygNKpJFotyEUsDBBPV4xXQpCsAVJCQ1MQU1FVVWDopVMQU1FMy4xMDAuMVVVTEFNRTMuMTD/8yDE/Q+xtopeyMR8MC4xVVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MgxOUHaEqOWMMWAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zIMTuBZBOuwBTBCRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8xDE/gUgOq8AUxIEVVVVVVVVVVVVVVVVVf/zEMT2BIAuswA7ygRVVVVVVVVVVVVVVVVV//MQxPEDuDKR4GvMAFVVVVVVVVVVVVVVVVX/8xDE7wOYMqKAO9IAVVVVVVVVVVVVVVVVVf/zEMTtAwAinoA7DABVVVVVVVVVVVVVVVVV//MQxO4CsBqSgEvAAFVVVVVVVVVVVVVVVVX/8xDE8AIYGn3gUwAAVVVVVVVVVVVVVVVVVf/zEMT0AXgaaKBhgAJVVVVVVVVVVVVVVVVV//MQxPUAkAJooAAAAVVVVVVVVVVVVVVVVVX/8xDE8gAAA/wAAAAAVVVVVVVVVVVVVVVVVf/zEMTyAAAD/AAAAABVVVVVVVVVVVVVVVVV",pr="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAFgAACG8AIiIiIjY2NjY2RERERFFRUVFRX19fX2lpaWlpd3d3d4GBgYGBj4+Pj5mZmZmZp6enp7GxsbGxu7u7u7vFxcXF0NDQ0NDa2tra4eHh4eHr6+vr8vLy8vL5+fn5/Pz8/Pz/////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQECkEAAbgAAAhvb5tIQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQACihmlllPAADEAAAO/gD+/zf/Om9D0PnPwnCEIsNQIYZESG/usEHYOAgAHZQENQIAggADgAACKyqPJ5A2DAIAkwTJsNB4GTA4FXLU2EgFWFBoHOuFwRFS9OE2jEAkm3UnJSGKJcnXh4HCl3zSZ/Rua8ZGET30rHG9lrBloI/JEOZFX8Yo3sW3YlV2r379JCZ7KzZvWcbNvev+3Pb7bt/jjZ8qe5s4aU5SlQAFWgAAQHiYeNuBgAZsfPoaSl4mYID3tDLgO0u5HAxEG2MwCSgFJyQATAQbkNcCKbaVA5E71mkrlcqh6nZpJohGJfP2dZZ6jde3SZ93vf4/+8OWw//MLf/zYMTPHfkqonmd4SAQBE0AIAhm5k2wQAAEAzDBQZZJYsIwUBNDQFLJICEJCCcRgYqGIyISxCDje9OjBiIUnIVw/BZ9XEutnQUurWVAjW05klJDL4yXN2+QJLruPfvWNZyjCwC5Z/BcDqUAQ7oJYONspgqDgAAH307upWT4qYO9D6s6vLiVgULgadHO2S+zNCEaGQwTN06D7oIjaf/zQMTmFbD2pxmbwACuWW8dSxNv0/m97U3i+FNYt2f//uy+/e2ZZ0IIArUAAGGPd9XCgAAGBEeRgYU1IyAaJgmD1DYJW2jkg0Mkx3jRcL1kIea8iHS27exAZa8EOrM6km2jWYNikqfu//NAxOoXIM7XGZzSQFk5IIvYlWuc/vOfhfEzMxUjDtVRCkDtXAUCAAACEZg8lNMDRs8SITFAAwIVe8cBQcTpVvoHJFAwYw83NBJwPtH+MLq76dagk47zyz8VvV486lfPDuP//yy7Tt//80DE6BMoxtcZm8oELgdCBFHeBADVfdTdgAAABiIcLBRhQg5hiaDPtmZkHCxABqEBhCCDs27MXwYsS20ARSKazMGinhxOARI1c9fDhulJq1ycq17mdA26Iw/tYg7DYAlg2Y0GAoAABv/zMMT2E9jK3xmbyggq06wBIkwg7Dd91MTIlCJMJB0LE2BQWGOMRABQlr+HsbLZhTKHczhmWVTt6RWec8oGpXuBS63v//5dRU93/LAgTf/zQMTnE2i+zxmbwAgHB6cDAIZ9ltmjwAAGlnDckAKxUBMKFAtg04y58lHxEUnpoDPTJANuhhYOc9s7ssFTbLbZhSC6rKYq0m73JbuQ2tWorQXMbHjwIRBUE9GKsWoiDvSTDYDsbAUC//MwxPQSqJrXGZvSAQAAAFAWTAA9m/jEwpUw0NV8hKT3MKLSLPCQglUphGx0FRwWxflzVAZD014GVbdGBI1cz69j+Q3W7j///0uVev88//NAxOoTcMbXGZrQKC0EN+4FYoyLuArgAAAAIoqwGvXPGV0wEGkJAYMMMSHAYXIhcEdW6OhTLSgsONsrOhyrZFY2rWzHTTikMAtdmJ7tSmouwzYptf//rmtVg6KqYB3cVShlu8oKMf7/8zDE9xQYrtcZm9IERYKkhPFYO8RD1DiIwthhAACCoIOrxNiLdEFAKwJcuibTRw5YhEjZExLbIiPiyRStH6zYnVgYlxMiF9rQaAeshNj/80DE5xL4wtMZmtAIBg0MENHJFmkwIOgpjgWOAysQjBB0INGd2Vnj4xUAzdH84BfPEBi154G8uUBU1vG/qjt1DfVVID3XZT2VqqAKPS7Za7JOVxVUAAsvCkJPNejpnQ8K7R04HOBoW//zMMT2E4jGxxmayQEAw2KYnExJ8AJQMFJJ0jd5Pmxv/nJNh3vdZmEDy6oLMeHRYGM7OIOMIRZuAEtV/rCteZMIgE4QFg0fFiUNB1SbO//zMMToD6i6wwGamAHnt+ITN3NlewmgoKJy5tUCLNooZ8a6sAlhl9K/jqZrFXmxdN+GmK0ifUHgBMqgnreAh0DaOESSFkQ9Ik3448sc3P/zMMTqEJCOnuGbwAHlFZ/zCshaqwZjV4iQAAoICMSNDC3JFiy0zkZBJYlXMIoUIWEkJgIgWRGblQcu5kXQp+J4TmfcMtc5Yj0Pa5g5MP/zMMToDrC6vwGYoAEoAKB4I+0sEUcuaVWp3lh5HcQQljqFRAs0MjmReEADWB2Xzv5obpL+3AAn8AEBEDMclOPmVZ/osJpG+d+NMaqJCP/zMMTuDlB+xwGbeAAAWQADRCMLGF+AQphJJ78aTEFMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zIMT1DZiWwwGZ0ACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8zDE5Q2oirMBm8ABqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8yDE7wrokpJBmIAAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MgxOoF0ErLAckAAaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zEMT5BGBOowAIBiGqqqqqqqqqqqqqqqqq//MQxPIAAAP8AAAAAKqqqqqqqqqqqqqqqqo=",gr="data:audio/mpeg;base64,SUQzAwAAAAAVf1RYWFgAAAD5AAAB//5DAE8ATQBNAAAA//4gADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAyADEAMAAgADAAMAAwADAAMABBADEAMwAgADAAMAAwADAAMAAwADAAMAAwADAAMAAwAEEAQwA1AEQAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADQAQQA0ADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAAABDT01NAAAA9AAAAWVuZ//+AAD//iAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADIAMQAwACAAMAAwADAAMAAwAEEAMQAzACAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAQQBDADUARAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAANABBADQAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAAAENPTU0AAAD0AAABZW5n//4AAP/+IAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMgAxADAAIAAwADAAMAAwADAAQQAxADMAIAAwADAAMAAwADAAMAAwADAAMAAwADAAMABBAEMANQBEACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAA0AEEANAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/84DEAAAAAAAAAAAAWGluZwAAAA8AAAAoAAAGzwAEBAgICA0NERERFRVJSUlbW2NjY2xscHB5eXmCgoKGhoqKj4+Pk5OTl5ecnKSkpKmpra2tsbG2tra6urq+vsPDx8fHy8vQ0NDU1NjY2N3d3eHh5eXq6uru7vLy8vf3+/v7//8AAAAoTEFNRTMuMTAwBAAAAAAAAAAAABUIJAL+IQABuAAABs+4d7USAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//MQxAAAAANIAAAAAAYAgAgAkAhAZAMBAGH/8xDEDQAAA0gAAAAAAgf+8isAaGr/yx7Dyv/zEMQaAAADSAAAAAC0BQf+VNMOHlPKt4YU//MQxCcAAANIAAAAABxkUA3QIDAjQFCfLRf/8xDENAAAA/wBQAAA3AywMDPkRO3p7gY8KP/zoMRBHVIymx2aoASCQWwEm/8LmBlwAhgnUNv//x2KIoKXLA4Bx///pm54myfJygr////Lho4YB94Phj//ygYmVQDe2/4A+sQAEYzJdyVIChyRTElorFiAyPOgTNmEedrM5DM7EoetYZRqDRmCaobTW2IuWuKVne7/h38Oc5znNr4e3d7WtlrenPbX7f3XLD03HFw48JTpIGgkNaJZ0keOlRz7ZaeHesyElUChCInP7ObYICHgFqto3/OBOrLmS414l9iCo7K6GWEVzzYpySCEB4z8uZJOTIVoiCPeYzapB3S1NtU2GRbSzHADn61gohq+8A8uMpAhouCjef1YAWwwjgR7nQbTsApQxSrO4A28kyWTCBPGGwYZBlRlDJtHkGqv5lVgvDve0AoFmOZxTgRkJjW0YA4mC5j/80DE9xoRrphf2lgA7o/RKt0KYLpv8AANVLSDoz3CPuToI6YLwBagqX7AyvpjIK1l79uAsqW/ILdK8mePdRCQnsxtOIhqgMp8rHe9IrAgKq1iwOkS1VCYSoVu2loVjnSJiReSgLdZ1f/zIMTpCPCqzwB4UqBK25hbocR34wBqw/GmbapAlzj2xksjhLo3wF0H1EjgdXCXSLbGLhr/8yDE7AewhscAi9Qsw2NfLJG5rHCXZ95UHRmcfP6HivpMAgYuGwhyy/AFWkxBTUWqDMoD//MQxPQGqIbTAHpESMNFT4CNTEFNRVVVBIj/8yDE5gaYRssAeF5BGixvwOVMQU1FC2dpSt9YVpuqTEFNRTMuMTDwYDgo+kxBTUUzLjEw//MgxPIGmGbLAEvQBEPCx/DqTEFNRTMuMTDxCNJDGUxBTUUzLjEwC8qHQg9MQU1FMy4xMP/zEMT+BQBG1wBb2CEwQsGvSkxBTUUzLjEw//MQxPcD+EbOgErYADBCFAvXTEFNRTMuMTD/8xDE9AOYOrKAeERBMC6FH61MQU1FMy4xMP/zEMTyA9g+woB4WEEwLjGg6kxBTUUzLjEw//MQxO8DgDq2gBPWBTAuMarTTEFNRTMuMTD/8xDE7gSIRqaAwF5AMC4xVVVMQU1FMy4xMP/zIMToBBhCmoB4XkEwLjFVVUxBTUUzLjEwMC4xVVVMQU1FMy4xMDAuMVVVTEFNRTMuMTD/8xDE/gN4Qp6AWF5AMC4xVVVMQU1FMy4xMP/zEMT9AzBCnoAK2AgwLjFVVUxBTUUzLjEw//MQxPwCcD6V4AKYCjAuMVVVVVVVVVVVVVX/8xDE+gH4Pn1AAkQAVVVVVVVVVVVVVVVVVf/zEMT5AcA+eUABygZVVVVVVVVVVVVVVVVV//MQxPsCCD5coAPaAFVVVVVVVVVVVVVVVVX/8xDE9wEgPmAAEBgkVVVVVVVVVVVVVVVVVf/zEMT3AUA+YKAoDCRVVVVVVVVVVVVVVVVV//MQxPcBQD5UADgWJFVVVVVVVVVVVVVVVVX/8xDE9wE4PmCgOAokVVVVVVVVVVVVVVVVVf/zEMT2AOgaaKACgAJVVVVVVVVVVVVVVVVV//MQxPYA+BpooAFAAlVVVVVVVVVVVVVVVVX/8xDE9QCwGlQAAUAAVVVVVVVVVVVVVVVVVf/zEMT0AFgaYAAAgABVVVVVVVVVVVVVVVVV//MQxPMAOAJwAAAAAFVVVVVVVVVVVVVVVVX/8xDE8gAAA/wAAAAAVVVVVVVVVVVVVVVVVf/zEMTyAAAD/AAAAABVVVVVVVVVVVVVVVVV//MQxPIAAAP8AAAAAFVVVVVVVVVVVVVVVVX/8xDE8gAAA0gAAAAAVVVVVVVVVVVVVVVVVf/zEMTyAAADSAAAAABVVVVVVVVVVVVVVVVV//MQxPIAAANIAAAAAFVVVVVVVVVVVVVVVVVUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIDAwMDAwMDAwIDAwMDAwMjEwIDAwMDAwQTEzIDAw/w==",hr="data:audio/mpeg;base64,/+NAxAAAAAAAAAAAAFhpbmcAAAAPAAAABQAABbMAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgICAgICAgICAgMrKysrKysrKysrKysrKysrKysrK9fX19fX19fX19fX19fX19fX19fX/////////////////////////AAAAPExBTUUzLjEwMAQ3AAAAAAAAAAAVCCQDoCEAAcwAAAWzbBlQ9wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/jYMQAE1Gawx9BKAD//rqamFqAElmwAUY42RAAAABjGMb+hCN+khCNnOd//8jZ/+pw4KEb5CVOHw+LkAcDh8Hwfg/5cHw//4P8oc/B8HAQOf/8uH///g+D59W9C8bbapeogxTQACANyymITsKovf5cCZQCRY0SMH+hQMG23OaJDDuwlSrOaZ8uRBuCUkmtSdW12Wmyl3uzVexZafhx9qdHm84W3aXMxOITMEIIy/lFKpfWfVrsxDVymrsqqyZsqYub8PFWkMVaVA9x4GcyBmKw0PBUBNqFgGFQIplXZglRLL05DyAmu2IwOBjaQBeyT0Cjxf0dATdzFtbNgl0AAB5XIceApG/EfkMLfSNSF/4NtUuOGWW+flvcVvYct95/e95cnKSP3IGdWfps9Wr03uWwFEr760tyn/n/42DE3kpkFrsXj+AojZrZ8nZdR0Fagl+qlyVU9LlWpo5KJ/ObknKKvTT9642sKhitFaellVy3dq4yqY7KaXkSiVHvCtJY1Nb1jQanqPLJkXwmij7ux5/phcsNxslLh6R4MoCAAAgKLi1qLTChQUX/STOyGIJG92y2LpetR5owEAQvqYJgG3FiLPIlbboAQZCArLiIhPrOMqvMqi1RpLcXPQvAADL1dpymUREQArQRNgTToKBQEF/ErHfZemJI6WKx8vKCgFVtgVgNNk0Nv30smAwAL9YOi/EWKkoFGAAFr1UOL2sDaimtGGDI+qtMFQpMLwPMLAEZ6YAAqYFgDQz0sMCgPSApWEmBQFGKIFKGxRpKqyKCWjIgArhwAMQ8FjS52BHfgVy6OLy/J+86dy35kkZsxKloH++V/+NwxOBWdBafH5joBE9NU9TWeWt97r8WLMQY+ziELHYm67tzUgWJDMDtcjVuVQ9Nvs5UW/HH6tndM6dNNy16cJ7dJD8aqTkpa5igAZJG4NVPI3XoMH/dtr602puQ/TiTdLcpca2PKbG5TappK+0uryq1M01PclNa5PVKS/Syulh3cqsS2jhlvF4+GwmGwuAYACQtEgkAYDbQiA2EA4LBHRQIwmjYo9SFyaPkNL3ksM6iQwjDYhpeTJn5UIeHuC4QxCAEASaMyZIEVjH8midLJDhnhBZlGxRSSIaZfxThOQYTBtwDIKeAyMbQAggNAWSsclzUUkMsM6QhDv+QYukDWYJmaBssyLYsonkknMi8bKSdX/5Mk+Vy0mQ8wNiNLxqUWLhbIsfSJo2UkmZF42SSTMv/+mkbKWbs6aRgQ1jVzcmi9OGzhTRUKTHBUYaqTEFNRTMuMTAwLjFMQU1FMy4xMDAuMaqqqqqqqqqqqqr/40DE5jFLfppfhakhqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MQxNgAAANIAcAAAKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqg==",vr="data:audio/mpeg;base64,//OAZAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAADAAADXAB6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enrh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eH///////////////////////////////////////////8AAAAoTEFNRTMuMTAwBAAAAAAAAAAAADUIJAKiLQABuAAAA1zAALomAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zoGQACqzdXy+goAAAAANIAUAAAJLZddtvAE3OMYxjGMbAAAAAADMYxjf6IiJ/Lu7v/oif/y7v//+///+j3////CIguLg3BWAuAuDcXsXFwffQUd/4IA+f/+UOf/g+D4PwICBz/3ROD4Pq4232/v9+3d6WAAyovDJ8PV+7cSDIm2FtVGiLbvKpc2lLuS+/+w9Ds86KtqgP/uHozLnSZ0rc6O8e5P9DMqdqMxmVRp9v33nYBjztQTBkpjMZlUafaU////evtBsAQE9bcHijMZiThMOWSLFAc2q/vuOTPjB4gidy7SXKeMPoYEIuOjf2W01NTXaXG5TZf9Lasd/n////vxF785T371/t6/2zDtM/1NdjMZwyv/S46rSr//////////6OXS2/LqW1TUuVNVypquqvPqxmI1v/85Bkzhy9t1kvx+gSAAADSAGAAAAo9vlD/xqhpaW5TU3/lhYVFBIIzgESGDUChOgD//////4i/UeETxKGioK50rlf8S9Z3lVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8zBk2ANYAUAP4AAAAAADSAHAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",mr="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgMQAAAAAAAAAAABYaW5nAAAADwAAAAgAAAQRAAgICAgICAgICAgICHh4eHh4eHh4eHh4eJiYmJiYmJiYmJiYmJjAwMDAwMDAwMDAwMDY2NjY2NjY2NjY2NjY6Ojo6Ojo6Ojo6Ojo+Pj4+Pj4+Pj4+Pj4+P///////////////wAAAChMQU1FMy4xMDAEAAAAAAAAAAAAFQgkA2AhAAG4AAAEER94ewwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8xDEAAAAA/wBQAAAmoTgAAFdtlssEknSoP/zsMQNHUlChlmZ2ADOEOUQFFAouKKaBQtu7dVY0mIfAA4ND4ak6MBct7zdCEZEkcjScg3wWT5ZfasGAjRh4EQAKQ7jvhEIpywwZos5Sr/fCplvv77SVKtiOP/JYvWs5/zXP5q1XrWb1W7nUCSvQwK1gcQEzCr//YfACwa3SuMADYAodOlUC9V2h3W9TFaxF4OgJIZQJq8ebo856xEJAhCEGuro0WQWYovm2Dw8FLAKqocFmLgCBeETKfbZYbpnQqzFKppDffgHDGnpfpb1/5DTWMMN298/f37n1xgKdmiFV1AWAYFsEYDJIfxDS6EILkIGaRCAMa/Gw/NM53bbGk9QpX1IxER07SNxlhRmSqgQYXAI0HGwsDMQdHJzUJJlwunLrFsDj3mjMoiUj7h790ccpKSBoVKo9Pf////TvD44VBY8z/TX1940AAm/CFKKVTGpdO6y6eNuiy0UdJL9ZVeXLVlwoqgiASobfFjS//NAxPcZsSaSWZjYAZovtU6VkGuPUjH4f////a+1WLCYCBkkFaOgXW5/Y9nklYZQAAKAFviSqZ9i/IX//+cwlc1FK4k+E2C+CGgCUTQVRSJ+OMxpj4iHB1fXU9nuAGI4A+IXGP4KoID/81DE6xo5HpL5j9AAqdwmGidKTEFNRTMuMTAwLjGqTEFNRTMuMTAwLjGqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MwxPcR0P6OWc3AAKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MgxPALwNKO+HhePKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zIMToBCjSiHgARwCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8xDE8gAAA/wAAAAAqqqqqqqqqqqqqqqqqlRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",yr="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAA/AAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm////////////////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQDMCEAAcwAAAPw36ttfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAfMna+X0FYAL/rYykSBOAAMYxjGP/mMAOUgDGMYxjGMAAAAAAEMYxjGMY///p73ve977pjGMYxlPe973vfbGMYxjGMe973ve+6YxjGMr5e977/////9jGG5uSxvAjATATBHXJZPPvB8HwcBAEAQBAH3//lAQBAEAfB8H////B8PggCAIBhvArQvQrAzAbAEYE/ClRZYxmTRt3K1NvH9oSS4K0kVoCzvVuZf5aZNEuSXhlUhrxrLXcV5IrKDMxQkr1q26CnltT9475qOFugcASE5FICgYqWW5WLsth21chf6y1lv9wDTZOlKbMRiTKkTnBkstgB2n+d2cfl/sd463ym1TZY1ZTWlUNSmMuzEmtKZa7vf5dyvdikQiUiYDdcFUqqqaoXAROUVBoxDFpVUABGYGhE5bLX9rRqm3S46ybsYACCYuB2CgFjPf7///+ZinwZMKCZKz0ZytUapi8YmCm2EAAO/+NIxN5D05q7GZjoMWAgAp6o4qrSmCoGuv7LOU03a+aq4ymtTU1Wlq3v7q/vf6y1r+d/carU28s6XYqY4KlVTEFNRTMuMTAwLjFVVVVVVVVVVVVVVVVVVVVVVVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxMQAAAP8AcAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",br="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAA/AAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm////////////////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQC8SEAAcwAAAPwEZbg7wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAfahayN0F4AHb7OABPgADGMY43wAAuBfAAYx4xjGAAAAAAABjGMYxjH///ilL3ve973vSlKUpSlL3ve973vSlKUpSlL3ve973vSjx48eUprd7v2NXx0QIQARgHYSMhZ1s8d/g47BAH8Tg4GJwEAfB98CBj/KAgCBx////wfB8PuEAIAhlw+oZXZmZdrPgmAAZ/ggQKoAuEdzAjPsW/EJBSjCDVO22DT2zUW4no9I9KHNVq/5q6SpmJOiqViOPKlDSyrWX6yyjzlOVdcFruq9qRx2WuLSSh0scdY0sprWpTW7qrGXBlUafbHeOsqOhpZ2VbyypseVqsZhmIspQSqrFsiQWBGJhgeARbZpLEWczE1GVFzAgMDMmkjghkQgKRoC8qevlm+rOioAxiOPRhGLBiKBjVJTLcIk/z/TMZjNaNRreOP/OWNYYc7+89/r4i/r+1rV2tTU2PK1Wlm84zJMcojTVn/+NIxN1CM8Kq+Y/oSNozSvrGpdDUpjMdlk5eno1chuji0kv1YrFICzyjOXZmtTU2PK1Wlpdbq1qaTEFNRTMuMTAwLjGqqqqqqqqqqqqqqqr//////////BosDVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxNACyAJMAcAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",Vr="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAABDgAdHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR00dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR////////////////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCiCEAAcwAAAQ4DvjgrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAcic62P0FgAE1bNAAk3AAGMYxjGNgAAAAfMY3kN/GMAPIH8xjpSlKUpSl73ve973pSlKUpSj69evXr169eYGBgSBIEgwWOPsDgCAEAICITDwzXr169evB8EAQBAEHflDn//1gQ5oB/ygIAgCAPg+D4Pg4CAIAgcf8oCCpTdDgzdPt4AOxrd0lQ9QXxPTRSo3jeVakVqNIKIST4eouSlYWUy0MLclSDH6W0nJzRp4h1rtdIZEn+cqIuSw2GaRl1ND0Mvw++UKdR93SWGVM+rOXdiTlXrMPV5bBFI7UZhTuQZEXXctuHbsZsafYwBAFzBjBcCAHVMc7sZoC/pgNgvGTCeAb1k5Jj7BkmCiARyxK6jTi2pgVBgmF+JgYX4BAsBIj0isX+ZCsKX9aUzph0Au61kwAAKRoDAwCwBgqAIRAHFlS8o0ACl9GmhO6pUzlm7/xCikEbsU16niT/P9KYzGZqNS6r/+NIxOhLc5qq+Y/waRmlrU1WxarTdm7O6luOrWUzWpLE3y/Yr42rGG3emYdnbkat50tz8quXbnNyXGAaT53kM4/LsojjANi7Rd7hvHPCtHLaDFoUC3bMBcDgAfkIX//mHMKkISIQnCELMKiE//zWvtbWLY/9a7zWuvaFb///Na5i4TyHKpEiSg5TKXJoqGj6Nl7GeDTxK8FXFj35Z51YKjAaGA08Snf//////6j3BWd/EVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MoxM0XybZaX8F4AFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",wr="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAACQAAA8MAWFhYWFhYWFhYWFiWlpaWlpaWlpaWlqenp6enp6enp6ensLCwsLCwsLCwsLC5ubm5ubm5ubm5ucLCwsLCwsLCwsLC7u7u7u7u7u7u7u739/f39/f39/f39///////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQDpSEAAbgAAAPDsKokmwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQAB+DCntlBGAAACENgA+B/8eACMCx/oXXd4BvoW5oBgblAQhifqdvB9SR2N0SAwDQIDLPZpAAK5ZnQ1eAgUp6CEAa6XjqkVEwoKYqwFopi0/3UZAMKCj8DkwAAGCQUMsPR6SuDmYOZnIfEAgYGg5aXAS+fd9GfQYEIxIgpq8Cg9ZrUTji0mystvXYjily7117qWngOrLaa7vs5nrH+/duatSyntRSv+v1Xv0tFS/LWitRnR0IDABCFBf783//NygBwSwDY5QmCK5rmpVvaeGlTYCoanSP32L/ofyMByWgD/6QkEXbA1UHenlRiTExBTUUzLjEwMC4xqqoABYZXZTA8AP/zcMTYIqmeov2S0SBovlo/plMGp4nkfAyAC/gNHwCukg8jW4HCx4KYNMSMvsps37KHUC5QsWYwqczP1upIKVr3TXERIlKCsjfS5TMpT1cCijFjzyXNd01y2kstHBBrJrW9tpDc/b//MhNYRZz/Ucshm5a///8/z////wtBWRUAB6oGuQHAH/zAY7Gf+UpRVFTBQSCm//QU0KO/VUxBTUUzLjEwMC4xVVVVVVVVVVVVVVVVVVVV//MgxPYJuNaSWcdAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zEMT2A+gGgHgAAABVVVVVVVVVVVVVVVVV//MQxPIAAAP8AAAAAFVVVVVVVVVVVVVVVVX/8xDE8gAAA/wBQAAAVVVVVVVVVVVVVVVVVf/zUMT/HoF+lvmTyAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8xDE+gcYdq8ZxRgBVVVVVVVVVVVVVVVVVf/zEMTqAAAD/AAAAABVVVVVVVVVVVVVVVVV",Cr="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgMQAAAAAAAAAAABYaW5nAAAADwAAAAoAAARgAAcHBwcHBwcHBwcODg4ODg4ODg4OdXV1dXV1dXV1db6+vr6+vr6+vr7b29vb29vb29vi4uLi4uLi4uLi4urq6urq6urq6vHx8fHx8fHx8fHx+Pj4+Pj4+Pj4/////////////wAAAChMQU1FMy4xMDAEAAAAAAAAAAAAFQgkAkBBAAG4AAAEYFXXTRUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8xDEAAAAA/wAAAAAAwFaogDQVBoLAgEAIP/zEMQNAAAD/AFAAAAfD/g3t4W8AcIQpBlA//OwxBoi/BJ6X5SYADQsAIZzcwLgBwA/4N4+MwimFxQDXgFn9tACIQM4Q5cCUP74xQtEAkYBoBMf1/cG8Y202dyM///IgLLFsGMGgWkHJ/////HQOAiA60g6c3kANf/////zAufy+Zm6DP/////+3/yLvPkAKhOIkXWQAqEwaIYgAAPk7TtDeRvzywGTFmmmjFmspeu9ALOWu0jWljNsvlIZey8S0pb16C9xjMmeATgM0MHmwOI0AU8CJQFAC1jRaIYTkEPMY8tTN0Mh8ceC8oxSVXgBOYbR4FnWibGxDqfIpvymLIfFAwiceI08ZiBsGKzg5wHCJWORi9L5yqreZ62BoUV7ruXM32pq8O0sZwiNn/1Wpu71///7vWu71DUazpcccrUzLecpq1qt/f//3jVpef////////V5VpbM1LrX7qf//////////97dWlvU1NTVr9qPX8X97Zy5//////////+rX5d///9Y8/v/85DE7kFMCo7f2MgB3eOONLjl+u1pdax59a1lVpcMaXn1qYdVR+msLAD/4AESpMhlDQ+MGRF2rVESh0xDQ01fJQ1mesvYD7Ms24qmb1IZRPU+S0+BclGQVGn8TpxYlchyHKJmHf//S7v9XE8Sg2p+3iqkTGsogIomHMBN/IKqTEFNRTMuMTAwTEFNRTMuMTAwLjGqqkxBTUUzLjEwMC4xqqpMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/80DE4BQ5ko5eQ8Uoqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zEMTqAhAefeAIRAGqqqqqqqqqqqqqqqqq//MQxO4AAAP8AAAAAKqqqqqqqqqqqqqqqqr/8xDE8gAAA/wAAAAAqqqqqqqqqqqqqqqqqv/zEMTyAAADSAAAAACqqqqqqqqqqqqqqqqq//MQxPIAAANIAAAAAKqqqqqqqqqqqqqqqqpUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",$r="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAABAAABK8AQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDcnJycnJycnJycnJycnJycnJycnJycnJycuvr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+v/////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQC5SEAAbgAAASv/qvWwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQAAtAGeaFAAAAAMkQfz4jfE7w/h9XS16ukBIaJlWgJgQCABCjJf98qVcX6+xrBxHaTD7JqWMpG4asQFzgGCMvogYUVAfoNEtgYMBot6YGUwOHrGo4iKilxQpoaDVHAP4twuULJg+Md5cQYZ8QEJcxJ8tB0AuUPlD8CqT6ZfSTWLjHkQeOeOYsrhxQc0iwssQTNiY//35TKBFCiUh6X////5dMBvmKRcLJbLx5A+v/////L5keday+ZoKNi4dMxP///+pW5OUAX//R4WfMBa8wVYb69BInIbm0pzX7VkUrUygdrjYXXTkiYsGMPGM+3Dh8DgE0aRyOphZl8zFpRM0c5nf/zcMTsK1MShl+PqABs8Y3CJTbpMJHO029Y/fufbuy+HJuVMid+cxvWoeY0ud5WawPZj8Zg6gDgsjcYKAIoBTAoKLVg0PGBAqocgeuYw0CjDI/JB8IQKZvSht4Em52iYMgxwQjnP3SaKmRpw1m8kEZRY5oklGrioY5NpjUAGOCQFSKYzARlsJmbicZpLJhYHGTBwZRNIFIxkoDGIx2YmBJjMTlUOGKgcYNGJhUGGEAMW9MJhELB//PQxOdsbBaF/9rgABDBuYEBhEATAIJQHGCAQKAMwSASoCxYPmBgcXRMGgkdAgCDgJB5EAwKCRIBGDgYQA0IE5gQKFmTBoBRAGgOkIpYkel2FAEj6YBAaiwODYABCSJgUBofF0EM0+0MFRIAGSlk0Ow8BBGAU4iyCqxfBQ9Saci4ET2TFyGZJqJptSSEaynWz5SxYBTyK7SkrF9s3Wg9qwjsrrbIwRkbV1MHdToZ+ydcjerDw87kRdRw4U1iDYHgCTQ3Ov/TQxMu/AEIcuMu/BEIduefyrD6vLiXZn/8IVu4UI1JhMmEh2E7OwkxGhZCNhAI0+aEaF/5wkwk/lRf//KEyak1IMROv0hICkf8ePARUidCQVASEbAmMR/+tKGMcPUnaefliJ0Ku0oZGLpMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8zDE/hVhssL+CEbcqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",kr="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAEQAAB1IABAQEBAQICAgICAgwMDAwMDBoaGhoaGiAgICAgICYmJiYmJioqKioqKi8vLy8vLzIyMjIyNjY2NjY2ODg4ODg4Ozs7Ozs7PDw8PDw8PT09PT09Pj4+Pj4+Pz8/Pz8/P//////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQCQEEAAbgAAAdSRpMH0QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAAAD/AAAAAAAIAAAICAMBkD/x/////MQxA0AAAP8AUAAAP//axv/k6CyJwhf7fj/85DEGg1BvnmbgVAADoCZOyyH//8uY/QeP//D58Pf///Sj///+7eU8acdwNzsbJBDyczfUKVxbe95h2eP+XcUidDGg/ygFwKMIPEIcn30VOKAYy0YjDwDL5LDAoKJyA0AiwwMiDw0nMTqohOfGg0sJDMA4MAhGmg66+7Yk6GzmAwWYHF40SmNAIQBQBAgIEwAMkHoxMJS7qiIoEAweGIROaHF5hQEBUBEwVMMhUxMZAUlDDI1MfhEBBgLg8xsHgYBzCIRLJrripgEHBgoGASGFBnbEUw0t0DzBYDShW+zWA18MklFSGEwFqQU6Jd9X7xuWydw4W0xx1L2JsriSaDX3zfxWRj/87DE3VdcDmW/z+AAK46VDKXKdlXa7FbQMD32YJblF3Pm+zDWGsMMdVa8Bz0dd9U7/23ojalCPlSbyqw3G6afnINYfFvpp27axx1SWN7yuxR/IxqjfSdtwBEYXEqSQ3ockzXIFmYq+zXOXu6llPF5NM0lqapblNa7+P71rti9jzeqGnpO5d/XN18+7p9Kq5vYl2IAA5Lv2pQNqbpNqn1TwQjQZsfbaaOmTLx60SE4Ulcbu7XcSlJo+PcbgXt2OPT04dA9DrpagHgCDhx8q1dPFjmt+ZRRdkEARDxtTpT8MVNFyFO1rcnQyspjTF76f4Rvs3U7L26md06N1U9NasaU5B0EwQwsbFtqRnfWQ7qf93L8IwVdRZfKdogAATLLuk6aMvQ4mbyFUJWauW5aiVupaP/8oQsyI0pLkvouLWAeG1AmdP3OLpvdTuN//7M72m9S8yJjOPGtAlq2hVb65Q/2zrytxjP+dSSAhowYL//zYMTfIevStx56BUxf9NR7YrZiSPDTzKRFDu57gVW5AMlciGnpcFIJPgkPDXpVdJiGlgAAUu/HkEwM9012sD15QL7ZiLFgnC2n0f7Nq3RtVaQKrZr3WZEEVSWrTdGmtOtWuWcOyzG9AQggNlCs3l+HEs5XufMolYqgkF/a2dSMOiIagq2p+5h4p13jgK8uNklzCXsatjSLFtDbyP/zYMTmHhH2sv5LxyiG5hl9CjSXd3GAE7d+BA2zRGXTOwR4MrE13ZMWhfjfQlotq032p2jDbb/Cet45RBDoLiM9ZcIGZFhWolnj5hhV1U6dr/b/ouli4uaqoyk1vO6j62bFxABiZJYrQEg9Q1R3W5PVfeea564HzOwApPaAILxOblm61s619azM6Bk5c7t7espQr5r3U5eJ8QpxLv/zQMT8HFmKpv5mBSSmfAfK5AcOuppKHfXRbVL2sVSjRDNlZmlxraCB4AionOEQKx/v53T9VXNPpwAHt+AAcp9WmSZd1pndK/yhnXZ9NfaIz15GPnEMsaRES0aTC7Kjcqamc3dS7o1r//NQxOUY8X6i/n4RIEiimVnslkVnagmdag4gC0eEHiqcql7sNwAtr5WJcjkc1tZqw2gy7/xHAidRjylWQCXyvgjNQMGpaQUU9cC6VZc7Mqq2h2oK/9JZ6mOw9EUC1QdMIgi9vgqhRKMCZk8zTsRc1fx4XaoqqRU1EsNWsgLin5aLLf/zMMT2E5makj5jyyBt2Jo38qklbuZ3tgj2FaXJKABmAVjMUal6o39zUmP+setARKqBhUJMQU1FqkxBTUUzLjEwMC4xqqpMQU1FMy4xMP/zQMToEamakl4yRMwwLjGqqkxBTUUzLjEwMC4xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MgxPwO2aaKWHoEOKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zMMTnDQGahlgZxJiqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zEMT0BMjSbYgYBlCqqqqqqqqqqqqqqqqq//MQxO0AwApkoBAAAaqqqqqqqqqqqqqqqqr/8xDE8gAAA/wAAAAAqqqqqqqqqqqqqqqqqv/zEMTyAAAD/AAAAACqqqqqqqqqqqqqqqqq//MQxPIAAANIAAAAAKqqqqqqqqqqqqqqqqo=",Ha={clickA:sr,clickB:rr,clickC:Ar,dindonA:ur,dindonB:cr,dindonC:dr,errorA:fr,errorB:pr,errorC:gr,errorD:hr,pingA:vr,pingB:mr,pingC1:yr,pingC2:br,pingC3:Vr,popupA:wr,popupB:Cr,popupC:$r,popupD:kr},Ot=new Map,Sr=e=>e+"_"+Date.now()+"_"+Math.random().toString(36).slice(2,8),qr=(e,t=!1,l=null,a=0)=>{const i=Ha[e]?e:"pingA",o=l||(t?i:null),n=o||Sr(i);o&&Dn(o);const A={audio:new Audio(Ha[i]),timer:null,playing:!0,endedHandler:null,errorHandler:null,resolveCallback:null},s=A.audio;Ot.set(n,A),A.endedHandler=function(){t&&a>0?Ot.has(n)&&Ot.get(n).playing&&(A.timer=setTimeout((()=>{Ot.has(n)&&Ot.get(n).playing&&(s.currentTime=0,s.play().catch((e=>{"AbortError"!==e?.name&&console.warn("Error replaying audio:",e)})))}),a)):t||(A.resolveCallback&&A.resolveCallback(n),vl(n))},We.add(s,"ended",A.endedHandler,n),A.errorHandler=e=>{vl(n)},We.add(s,"error",A.errorHandler,n),s.loop=t&&0===a;const r=s.play();return t?Promise.resolve(n):new Promise(((e,t)=>{A.resolveCallback=e,r.catch((t=>{"AbortError"!==t?.name&&console.warn("Error playing audio:",t),vl(n),e(n)}))}))},vl=e=>{if(Ot.has(e)){const t=Ot.get(e);t.playing=!1,t.endedHandler&&We.remove(t.audio,"ended",e),t.errorHandler&&We.remove(t.audio,"error",e),t.audio.pause(),t.audio.currentTime=0,t.timer&&clearTimeout(t.timer),Ot.delete(e)}},Dn=e=>!!Ot.has(e)&&(vl(e),!0),Tr=()=>{Ot.forEach(((e,t)=>{vl(t)}))},Br={play:qr,stop:Dn,stopAll:Tr},xr=(e,t,l)=>{const{background:a}=e;if(!a)return void console.error("Error: themePalette initialized error");const i=Pe({viewType:"all",cssResult:"",graphicType:"SvgPattern",cssAni:{},css:{},grad:{},SvgPattern:{gradType:"radial",gradOrientation:"ellipse at bottom",viewSvgName:"diamondWeaving",viewBG:null,viewGrad:a.view_grad,viewSvgFill:a.view_svgfill,viewSvgFillOpacity:a.view_svgfill_opa,rootSvgName:"diamondWeaving",rootBG:a.root,rootSvgFill:a.root_svgfill,rootSvgFillOpacity:a.root_svgfill_opa}});("view"==l||"root"==l||"all"==l)&&(i.viewType=l),xt.isEmpty(t)||(i.graphicType=t.graphicType||"SvgPattern","SvgPattern"==t.graphicType&&(i.SvgPattern=xt.dpm(i.SvgPattern,t.SvgPattern),!t.rootSvgName&&t.viewSvgName&&(i.SvgPattern.rootSvgName=i.SvgPattern.viewSvgName),"line"==t.gradType&&!t.gradOrientation&&(i.SvgPattern.gradOrientation="to top")));const o=`${i.graphicType} root:${"all"==i.viewType||"root"==i.viewType?i.SvgPattern.rootSvgName:"none"} view:${"all"==i.viewType||"view"==i.viewType?i.SvgPattern.viewSvgName:"none"}`;"SvgPattern"==i.graphicType&&(i.cssResult=Pr(i,a,i.viewType)),la("Background",o,i.cssResult)},Pr=(e,t,l)=>{let a="";const{gradType:i,gradOrientation:o,viewSvgName:n,viewBG:A,viewGrad:s,viewSvgFill:r,viewSvgFillOpacity:u,rootSvgName:d,rootBG:c,rootSvgFill:p,rootSvgFillOpacity:g}=e.SvgPattern;if("all"==l||"root"==l){let t=e.SvgPattern.rootSvgFill.replace("#","%23");a+=`.tui-root-bg{${`background-repeat: repeat; background:url("data:image/svg+xml;utf8,${Ua(d).replace(/#color/g,t).replace(/#opacity/g,g)}"),${c};`}}`}if("all"==l||"view"==l){let l=e.SvgPattern.viewSvgFill.replace("#","%23");const r=Ua(n).replace(/#color/g,l).replace(/#opacity/g,u);let d="";if(A)d=A.includes("grad")?t[A.replace("grad","")]:A;else{const e={type:i,orientation:o,grad0:s[0],grad1:s[1],grad2:s[2]};d=Rr(e)}a+=`.tui-view-bg{ ${`background-repeat: repeat; background:url("data:image/svg+xml;utf8,${r}"),${d}};`}}`}return a},Ua=e=>{switch(e){case"test":return _i();case"blocks":return Oi();case"circuitDiagram":return Di();case"circularOverlayA":return Mi();case"circularOverlayB":return Ii();case"contourLine":return Ni();case"crosshairA":return zi();case"crosshairB":return Ri();case"cubeA":return Pi();case"cubeB":return xi();case"cubeC":return Bi();case"diamondFlipped":return Ti();case"diamondLattice":return qi();case"diamondPixel":return Si();case"diamondWeaving":return _a();case"dots":return ki();case"hexagonA":return $i();case"hexagonB":return Ci();case"hexagonC":return wi();case"hexagonD":return Vi();case"HexagonCurved":return bi();case"lineGrid":return yi();case"lineWeaving":return mi();case"mazeA":return vi();case"mazeB":return hi();case"mazeC":return gi();case"mazeD":return"data:image/svg+xml;utf8,";case"mountains":return pi();case"rain":return fi();case"shellA":return di();case"shellB":return ci();case"slashParallel":return ui();case"rectWeavingA":return Ai();case"rectWeavingB":return ri();case"rectWeavingC":return si();case"totem":return ii();case"triangleA":return oi();case"triangleB":return ni();case"waveA":return ai();case"waveB":return li();case"zigZagA":return ti();case"zigZagB":return ei();default:return console.warn("Warning: svg background name error!",e),_a()}},Rr=e=>{const{type:t,orientation:l,grad0:a,grad1:i,grad2:o}=e;let n="";return"line"==t?n="linear-gradient":(e.type="radial")&&(n="radial-gradient"),`${n}( ${l}, ${a}, ${i}, ${o})`},zr=e=>{const t=Pe({nameFull:"blocksA",nameArea:"pointA"});e?.full?.name&&(t.nameFull=e.full.name),e?.area?.name&&(t.nameArea=e.area.name);const l='mask-image:url("data:image/svg+xml;utf8,',a=`${l}${Qa(t.nameFull)}");`,i=`${l}${Qa(t.nameArea)}");`;la("Spinners",`full:${t.nameFull} area:${t.nameArea}`,`.spinner-full{${a}} .spinner-area{ ${i} }`)},Qa=e=>{switch(e){case"barsA":return as();case"barsB":return ls();case"barsC":return ts();case"blocksA":return es();case"blocksB":return Ji();case"blocksC":return Zi();case"clock":return Xi();case"pointA":return Ki();case"pointB":return Yi();case"pointC":return Qi();case"pulseDotA":return Ui();case"pulseDotB":return Hi();case"pulseDotC":return Fi();case"pulseRingA":return Gi();case"pulseRingB":return ji();case"pulseRingC":return Wi();case"ringA":return Ea();case"ringB":return Li();case"ringC":return Ei();default:return console.warn("Warning: svg spinner name error!"),Ea()}},Ya=["zh-CN","zh-TW","en"],Nr=(e,t)=>{const l=e.globalConfig.lang;return Ya.includes(l)?l:Ya.includes(e.globalState.initLang)?e.globalState.initLang:t.getSysLang()||"zh-CN"},Ir=(e,t,l)=>!xt.isEmpty(t)&&(e.globalConfig.lang=l,e.locale={...t.data},e.globalState.localeReady=!0,!0),Mr=(e,t,l=null)=>{const a=Pe({data:{mapData:{code:"",name:""},chartData:{title:"",params:{}}},globalConfig:{platform:"scifi",theme:"lightBlue",themeScheme:"light",t3D:!0,maskBlur:!0,background:"all",menuTrigger:"click",floaterTo:"#tuiAdpt",resizeBy:"self",sound:!0,transition:!0,adaptive:"extension",lang:"",version:ns()},globalState:{fullScreen:!1,maximize:!1,siderCollapse:!1,clickTarget:null,clickCounter:0,escCounter:0,resizeDebounce:200,resizeCounter:0,portletCounter:0,echartsThemeInited:!1,themeInited:!1,localeReady:!1,initLang:l},globalParams:{blurSaturate:"180%",blurRange:5,initDur:1},viewTrans:{curDur:1.2,altDur:1.2,curTarget:"root",altTarget:"root",curName:"vt-overlap",altNames:{theme:"vt-circle-rt",common:"vt-overlap",routerPre:"vt-cube-left",routerNxt:"vt-cube-right",layout:"vt-fade"}},deviceInfo:{type:null,browser:null,resolutionH:null,resolutionV:null,touchable:!1,orientation:null,screenInvert:!1},controlPanel:{visible:!1,modal:!0,width:220,extension:[],options:{}},attentionConfig:{message:{position:"top-center",offset:0,duration:3e3,counter:0},notification:{position:"top-right",offset:0,counter:0},toast:{offsetX:0,offsetY:0,duration:3e3,visible:!1},flash:{spreadRadius:15,blurRadius:30,frequency:1,appearance:"toast",visible:!1,queueLength:0,queueOffset:0,queuePosition:"top"},dispatcher:{visible:!0,debug:!1,offset:40,position:"bottom-right",currentChannel:null,queue:[]}},popoverConfig:{duration:3e3,maxLength:5,appearance:"popTip"},t3dConfig:{inited:!1},adaptiveConfig:{ready:!1,inited:!1,resizeCounter:0,dragTip:!0},backgroundConfig:{graphicType:"SvgPattern",SvgPattern:{}},spinnerConfig:{full:{name:"blocksA",size:100},area:{name:"pointA",size:40}},themePalette:{},locale:{}}),{data:i,globalConfig:o,globalState:n,globalParams:A,viewTrans:s,deviceInfo:r,controlPanel:u,attentionConfig:d,popoverConfig:c,t3dConfig:p,adaptiveConfig:f,backgroundConfig:v,spinnerConfig:h,themePalette:m,locale:y}=Ye(a),b=async e=>{const t=e||V();a.globalState.localeReady=!1,fl.hasLang(t)||await Js.ensure(t),fl.setCurrent(t);const l=fl.load(t);return!!Ir(a,l,t)},V=()=>a.globalConfig.lang||fl.getSysLang()||"zh-CN",w=(e,t)=>{if(!e)return"";if("object"==typeof e){return e[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[a.globalConfig.lang]||a.globalConfig.lang]??e.cn??e.tw??e.en??e["zh-CN"]??e["zh-TW"]??Object.values(e)[0]??""}return Ze.valueByPath(a.locale,e,!0,t)},q={s:(e,t,l,a="store")=>ra.s(e,t,l,ua,a),g:(e,t,l="store")=>ra.g(e,t,Aa,l),d:(e,t)=>ra.d(e,t)},x=()=>(console.info("$tState:",a),"From TechUI"),S=()=>{"dev"==Kl()&&t&&(Na.enable(),os("TechUI",w("info.debug")),window.tuiDebugMonitor=Na,window.tuiServiceState=x,window.openEnc=ua,window.openDec=Aa),window.tuiGetEnv=Kl};return{$tState:a,state:a,$data:i,$mapData:g((()=>a.data.map)),$chartData:g((()=>a.data.chart)),$globalConfig:o,$gPlatform:g((()=>a.globalConfig.platform)),$gTheme:g((()=>a.globalConfig.theme)),$gThemeScheme:g((()=>a.globalConfig.themeScheme)),$gT3D:g((()=>a.globalConfig.t3D)),$gMaskBlur:g((()=>a.globalConfig.maskBlur)),$gMenuTrigger:g((()=>a.globalConfig.menuTrigger)),$gFloaterTo:g((()=>a.globalConfig.floaterTo)),$gResizeBy:g((()=>a.globalConfig.resizeBy)),$gTransition:g((()=>a.globalConfig.transition)),$gSound:g((()=>a.globalConfig.sound)),$gBackground:g((()=>a.globalConfig.background)),$gAdaptive:g((()=>a.globalConfig.adaptive)),$gVersion:g((()=>a.globalConfig.version)),$gLang:g((()=>a.globalConfig.lang)),$globalState:n,$gMaximize:g((()=>a.globalState.maximize)),$gFullScreen:g((()=>a.globalState.fullScreen)),$gSiderCollapse:g((()=>a.globalState.siderCollapse)),$gClickTarget:g((()=>a.globalState.clickTarget)),$gClickCounter:g((()=>a.globalState.clickCounter)),$gEscCounter:g((()=>a.globalState.escCounter)),$gResizeDebounce:g((()=>a.globalState.resizeDebounce)),$gResizeCounter:g((()=>a.globalState.resizeCounter)),$gPortletCounter:g((()=>a.globalState.portletCounter)),$gEchartsThemeInited:g((()=>a.globalState.echartsThemeInited)),$gThemeInited:g((()=>a.globalState.themeInited)),$gLocaleReady:g((()=>a.globalState.localeReady)),$globalParams:A,$viewTrans:s,$deviceInfo:r,$controlPanel:u,$attentionConfig:d,$aMessage:g((()=>a.attentionConfig.message)),$aNotification:g((()=>a.attentionConfig.notification)),$aToast:g((()=>a.attentionConfig.toast)),$aFlash:g((()=>a.attentionConfig.flash)),$aDispatcher:g((()=>a.attentionConfig.dispatcher)),$popoverConfig:c,$t3dConfig:p,$adaptiveConfig:f,$adptReady:g((()=>a.adaptiveConfig.ready)),$adptInited:g((()=>a.adaptiveConfig.inited)),$aResizeCounter:g((()=>a.adaptiveConfig.resizeCounter)),$backgroundConfig:v,$spinnerConfig:h,$themePalette:m,$locale:y,$optResizeCounter:g((()=>a.adaptiveConfig.inited?a.adaptiveConfig.resizeCounter:a.globalState.resizeCounter)),$optFloaterTo:g((()=>a.adaptiveConfig.inited?a.globalConfig.floaterTo:"#tuiRoot")),$tc:(e,t=!1)=>t?g((()=>Ze.valueByPath(a.themePalette,e,!1))):Ze.valueByPath(a.themePalette,e,!1),initBG:(e,t=null)=>{const{themePalette:l,backgroundConfig:i,globalConfig:{background:o}}=a;"none"!=o&&(e&&!xt.isEmpty(e)&&(a.backgroundConfig=xt.dpm(i,e)),xr(l,i,o))},resetBG:()=>{const e=Ze.el("#styleBackground");e&&e.remove()},initSpinner:e=>{e&&(a.spinnerConfig=xt.dpm(a.spinnerConfig,e)),zr(a.spinnerConfig)},resetAdaptiveConfig:()=>{a.globalState.portletCounter=0,a.globalConfig.adaptive="disabled",a.adaptiveConfig.inited=!1,a.adaptiveConfig.resizeCounter=0,rl.adpt.reset();const e=Ze.el("#tuiAdptOuter");e&&(e.style="")},initI18n:async()=>{a.globalConfig.lang=Nr(a,fl),await b(a.globalConfig.lang),S()},switchLang:b,i18n:w,getSysLang:V,tConsolei18n:(e,t,l,a=!0)=>{if(!e||!t||!l)return void console.warn("tConsolei18n: Missing required parameters");const i=w(e+".label"),o=w(l);Yo.s(e,t,`${i}:${o}`,a)},controlPanelToggle:()=>{a.controlPanel.visible=!a.controlPanel.visible},maximizeToggle:()=>{a.globalState.maximize=!a.globalState.maximize},toggleSider:()=>{a.globalState.siderCollapse=!a.globalState.siderCollapse},initResizeBy:()=>g((()=>e=>"self"===e||"none"===e?e:"global"===e?a.globalConfig.resizeBy:void 0)),openEnc:ua,openDec:Aa,cryptoStore:q,audio:Br,initDebug:S}},On=Object.assign({name:"TuiTag"},{__name:"index",props:{tuiService:{type:Object,default:null},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},tone:{type:String,default:"base",validator:e=>["strong","weak","base"].includes(e)},round:{type:Boolean,default:!1},customColor:{type:[String,Array],default:null,validator:e=>"string"==Qe(e)?CSS.supports("color",e):"array"==Qe(e)?e.length>0&&e.every((e=>CSS.supports("color",e))):void 0}},setup(e){const t=e,{proxy:l}=ut(),a=g((()=>l.$tService?.$gThemeScheme?.value||t.tuiService?.$gThemeScheme?.value)),i=g((()=>{const e=t.customColor;if(!e)return;let l=Ke.genColors(e,7,50);return"dark"==a.value&&(l=l.reverse()),pe("custom",Ke.genColorObj(l))}));return(t,l)=>(A(),h("span",{class:P(["tui-tag",`is-type-${e.customColor?"custom":e.type}`,`is-size-${e.size}`,`is-tone-${e.tone}`,""+(e.round?"is-round":"is-rect")]),style:fe(e.customColor?i.value:null)},[X(t.$slots,"default")],6))}}),ul=Object.assign({name:"TuiTyped"},{__name:"index",props:{appearance:{type:String,default:"background",validator:e=>["background","text","line","accent","none"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},transparent:{type:Boolean,default:!1},backgroundBlur:{type:Boolean,default:!0},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},linePosition:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)},lineThickness:Number,customColor:{type:[String,Array],default:null,validator:e=>"string"==Qe(e)?CSS.supports("color",e):"array"==Qe(e)?e.length>0&&e.every((e=>CSS.supports("color",e))):void 0},tuiService:Object},setup(e){const{proxy:{$slots:t,$tService:l}}=ut(),a=e;let i;i=a.tuiService?a.tuiService.$gThemeScheme:l.$gThemeScheme;const o=g((()=>"background"==a.appearance||"strongInvert"!=a.tone&&"extremeInvert"!=a.tone?a.tone:"strong")),n=g((()=>pe("cpt-typed",{...q("lineBdw",a.lineThickness,{append:"px",when:("line"==a.appearance||"accent"==a.appearance)&&a.lineThickness})}))),s=Pe({colorArr:null,colorObj:null}),r=()=>{if(!s.colorArr)return;const e=("background"==a.appearance||"accent"==a.appearance)&&a.transparent;s.colorObj=Ke.genColorObj(s.colorArr,e?[.9,.8,.7,.5]:null)};K((()=>[a.appearance,a.transparent,a.customColor]),(()=>{a.customColor&&r()}));const d=g((()=>s.colorObj?pe("custom",s.colorObj):null));return ye((()=>{a.customColor&&(()=>{const e=a.customColor;if(!e)return;let t=Ke.genColors(e,7,50);"dark"==i.value&&(t=t.reverse()),s.colorArr=t,r()})()})),(t,l)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[u("div",{class:P(["tui-typed",`is-appr-${e.appearance}`,"none"!=e.appearance&&`is-type-${e.customColor?"custom":e.type}`,"none"!=e.appearance&&`is-tone-${o.value}`,("line"==e.appearance||"accent"==e.appearance)&&`is-pos-${e.linePosition}`,("background"==e.appearance||"accent"==e.appearance)&&e.hasShadow&&`is-shadow-${e.shadowColor}`,("background"==e.appearance||"accent"==e.appearance)&&""+(e.transparent?"is-trans":"is-plain"),("background"==e.appearance||"accent"==e.appearance)&&{"is-blur-bg":e.transparent&&e.backgroundBlur}]),style:fe([n.value,e.customColor?d.value:null])},[X(t.$slots,"default")],6)])),_:3}))}}),Ft=[],Dr=["id"],Or=300,cl=Object.assign({name:"TuiPopPanel"},{__name:"index",props:{eventTarget:{type:[Object,Element],default:null},manual:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},trigger:{type:String,default:"click",validator:e=>["contextmenu","click","hover"].includes(e)},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start",validator:e=>["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e)},appendTo:String,offset:{type:Number,default:4},zIndex:{type:Number,default:2e3},panelClassName:{type:[String,Object,Array],default:""},panelStyle:{type:[String,Object,Array],default:""},minWidth:{type:[String,Number],default:""},maxWidth:{type:[String,Number],default:""},panelId:{type:String,default:""},showDelay:{type:Number,default:120},hideDelay:{type:Number,default:180},closeOnClickOutside:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!0},maxInstances:{type:Number,default:1},transitionName:{type:String,default:"fade"},typed:{type:Boolean,default:!1},type:{type:String,default:null,validator:e=>null==e||["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},typedConfig:{type:Object,default:null},showArrow:{type:Boolean,default:!1},arrowSize:{type:Number,default:6},arrowPadding:{type:Number,default:4},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["show","shown","hide","hidden","update:visible"],setup(e,{expose:t,emit:l}){const{proxy:a}=ut(),{$tService:i}=a,o=e,n=l,s=xe("popPanel"),r=S(null),d=S(null),c=S(null),p=S(null),v=S(!1),m=S(!1),y=S(!1),b=S(!1),V=S(!1),w=S(0),x=S({}),k=S(!1),B=`${s}_show`,T=`${s}_hide`,$=`${s}_init`;let z=null,R=null,N=null,M=null,O=0;const D=Se("TuiPopPanelContext",null),I=new Map,_=S(!1),F=g((()=>o.dynamicRender?o.tuiService:i)),E=g((()=>F.value?.$globalState?.value||null)),L=g((()=>F.value?.$optFloaterTo?.value||null)),j=g((()=>o.appendTo||L.value||"#tuiRoot")),G=g((()=>o.typed)),H=g((()=>{const e=o.typedConfig||{};return{tuiService:F.value,appearance:e.appearance||"background",...e,type:o.type??e.type??"default"}})),Q=g((()=>o.showArrow?o.offset+o.arrowSize+2:o.offset)),Y=g((()=>`-${Math.max(2*o.arrowSize,8)}px`)),U=g((()=>pe("cpt-pp",{z:o.zIndex,...q("arrowSize",o.arrowSize,{append:"px",when:o.showArrow}),...q("minw",o.minWidth,"smart"),...q("maxw",o.maxWidth,"smart")}))),J=g((()=>{const e=(te.value||o.placement||"bottom-start").split("-")[0];return"top"===e?"bottom center":"bottom"===e?"top center":"left"===e?"center right":"right"===e?"center left":"top center"})),ee=g((()=>p.value)),{placement:te,middlewareData:le,x:ae,y:oe,update:ne}=Va(ee,d,{placement:o.placement,strategy:"fixed",middleware:[wa((()=>Q.value)),Ca({padding:5,boundary:"viewport"}),$a({fallbackPlacements:["top-start","bottom-start","left-start","right-start"]}),er({element:c,padding:o.arrowPadding})]});K([()=>le.value,()=>ae.value,()=>oe.value,()=>te.value,()=>o.showArrow,()=>o.arrowSize],(([e,t,l,a])=>{if(null==t||null==l||(x.value={position:"fixed",left:`${t}px`,top:`${l}px`},!o.showArrow||!e?.arrow||!c.value))return;const{x:i,y:n}=e.arrow,A={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];c.value.style.left="",c.value.style.top="",c.value.style.right="",c.value.style.bottom="",null!=i&&(c.value.style.left=`${i}px`),null!=n&&(c.value.style.top=`${n}px`),c.value.style[A]=Y.value,c.value.setAttribute("data-placement",a)}));const Ae=()=>{const e=Ft.findIndex((e=>e.uid===s));-1!==e&&Ft.splice(e,1)},se=e=>Ft.find((t=>t.uid===e))||null,re=()=>{Array.from(I.values()).forEach((e=>e?.()))},ue=e=>{o.manual&&n("update:visible",e)},ge=()=>{const e=(()=>{const e=p.value;return e?e?.$el?e.$el:e:null})();return!!e&&(e===window||e===document||!1!==e.isConnected)},ve=()=>{O&&(ft.stop(`${s}_target_monitor`),O=0)},me=()=>{const e=m.value||v.value||k.value||y.value;Ce(),k.value=!1,ve(),re(),N&&(window.clearTimeout(N),N=null),m.value=!1,y.value=!1,b.value=!1,V.value=!1,w.value=0,v.value=!1,Ae(),Ve(),R?.(),R=null,z=null,ue(!1),e&&(n("hide"),n("hidden"))},be=()=>{ve();O=ft.loop(`${s}_target_monitor`,(()=>m.value||v.value||k.value?ge()?void 0:(me(),!1):(O=0,!1)))},Ve=()=>{_.value&&(D?.releaseHover?.(),_.value=!1)},qe=()=>{const e=(()=>{const e=new Set([s]);let t=D?.uid||null;for(;t;)e.add(t),t=se(t)?.parentUid||null;return e})(),t=Ft.filter((t=>t.uid!==s&&!e.has(t.uid)));if(1===o.maxInstances)return void t.forEach((e=>e.hide(0)));const l=Ft.length-o.maxInstances+1;l>0&&t.slice(0,l).forEach((e=>e.hide(0)))},Ce=()=>{k.value=!1,he.c(B),he.c(T)},ke=()=>{ve(),N&&(window.clearTimeout(N),N=null),m.value=!1,y.value=!1,V.value=!1,o.destroyOnHide&&(v.value=!1),Ae(),Ve(),R?.(),R=null,z=null,ue(!1),n("hidden")},Be=()=>o.debug&&"hover"===o.trigger,Te=(e=o.hideDelay,t=!1)=>{const l=k.value;return Ce(),m.value||v.value||!l?(he.s(T,(()=>{!m.value&&!v.value||y.value||!t&&"hover"===o.trigger&&(b.value||V.value||w.value>0)||(re(),n("hide"),y.value=!0,m.value=!1,ue(!1),z=new Promise((e=>{R=e,N=window.setTimeout(ke,Or)})))}),e),z):(Ve(),Ae(),n("hidden"),Promise.resolve())},Pe=(e=o.showDelay,t=null)=>{Ce(),k.value=!0,he.s(B,(async()=>{k.value=!1,!(o.disabled||y.value||m.value)&&(!p.value||!ge()||("contextmenu"===t?.type&&"contextmenu"===o.trigger&&(t.preventDefault(),t.stopPropagation()),qe(),n("show"),v.value=!0,await de(),await de(),!y.value&&(Ft.some((e=>e.uid===s))||Ft.push({uid:s,parentUid:D?.uid||null,hide:()=>Te(0,!0)}),m.value=!0,ue(!0),be(),await de(),ne(),n("shown"))))}),e)},$e=e=>{if("mouseenter"===e?.type)!D||"hover"!==D.getTrigger?.()||_.value||(D.holdHover?.(),_.value=!0),b.value=!0,Pe(o.showDelay,e);else if("mouseleave"===e?.type){if(b.value=!1,Be())return;Te(o.hideDelay)}},ze=e=>{o.manual||("hover"===o.trigger?$e(e):(e=>{o.disabled||("contextmenu"===e?.type&&"contextmenu"===o.trigger&&(e.preventDefault(),e.stopPropagation()),m.value||v.value?Te(0):Pe(0,e))})(e))},Re=()=>{M&&("hover"===o.trigger?(We.remove(M,"mouseenter",s),We.remove(M,"mouseleave",s)):We.remove(M,o.trigger,s),M=null)},De=()=>{o.manual||p.value&&(M=p.value,"hover"===o.trigger?(We.add(M,"mouseenter",ze,s),We.add(M,"mouseleave",ze,s)):We.add(M,o.trigger,ze,s))},Ie=()=>{if(o.eventTarget)return p.value=o.eventTarget,De(),void(o.manual&&o.visible&&Pe(0));const e=r.value?.firstElementChild;e?(p.value=e,De(),(()=>{const e=r.value;e&&(Array.from(e.childNodes).forEach((t=>{e.parentNode.insertBefore(t,e)})),e.parentNode.removeChild(e))})(),o.manual&&o.visible&&Pe(0)):he.s($,Ie,100)},_e=()=>{V.value=!0,he.c(T)},Fe=()=>{if(V.value=!1,"hover"===o.trigger){if(Be())return;Te(o.hideDelay)}},Ee=()=>{w.value+=1,he.c(T)},Le=()=>{if(w.value=Math.max(0,w.value-1),"hover"===o.trigger&&!b.value&&!V.value&&0===w.value){if(Be())return;Te(o.hideDelay)}};return rt("TuiPopPanelContext",{uid:s,getTrigger:()=>o.trigger,holdHover:Ee,releaseHover:Le,registerChildCloser:(e,t)=>{!e||"function"!=typeof t||I.set(e,t)},unregisterChildCloser:e=>{I.delete(e)}}),K((()=>o.eventTarget),(e=>{e&&e!==p.value?(Re(),p.value=e,De()):!e&&o.manual&&m.value&&me()})),K((()=>o.trigger),(()=>{Re(),De()})),K((()=>o.manual),(()=>{Re(),De()})),K((()=>o.visible),(e=>{o.manual&&(e?Pe(0):(m.value||v.value||k.value)&&Te(0,!0))}),{immediate:!0}),K(m,(e=>{if(e&&!y.value){if(!ge())return void me();be(),ne()}else e||ve()})),K((()=>E.value?.clickCounter),(()=>{if(!o.closeOnClickOutside||!m.value)return;const e=E.value?.clickTarget;e&&d.value?.contains(e)||e&&p.value?.contains?.(e)||Te(0)})),K((()=>E.value?.escCounter),(()=>{!o.closeOnEsc||!m.value||Te(0)})),ye((()=>{D?.registerChildCloser?.(s,(()=>Te(0,!0))),Ie()})),At((()=>{ve(),Ve(),D?.unregisterChildCloser?.(s),Ae(),Re(),Ce(),he.c($),N&&(window.clearTimeout(N),N=null),R?.(),R=null,z=null})),t({show:(e=o.showDelay)=>Pe(e),hide:()=>Te(0,!0),toggle:ze,update:ne,holdHover:Ee,releaseHover:Le,getVisible:()=>m.value}),(t,l)=>(A(),h(ie,null,[e.eventTarget?C("",!0):(A(),h("div",{key:0,class:"tui-pop-panel-trigger",ref_key:"triggerWrapRef",ref:r},[X(t.$slots,"trigger")],512)),v.value?(A(),Z(Tt,{to:j.value,key:f(s),fallback:"#tuiRoot"},[ce(Me,{name:e.transitionName},{default:W((()=>[we(u("div",{ref_key:"panelRef",ref:d,id:e.panelId||`tui-pop-panel-${f(s)}`,class:P(["tui-pop-panel",e.panelClassName,{"is-typed":G.value,"is-hide-arrow":!e.showArrow}]),style:fe([U.value,e.panelStyle,x.value,{transformOrigin:J.value}]),onMouseenter:_e,onMouseleave:Fe,onClick:l[0]||(l[0]=st((()=>{}),["stop"]))},[G.value?(A(),Z(ul,Ne({key:0},H.value,{class:"tui-pp-typed"}),{default:W((()=>[e.showArrow?(A(),h("div",{key:0,ref_key:"arrowRef",ref:c,class:"tui-pp-arrow"},null,512)):C("",!0),X(t.$slots,"default",{hide:()=>Te(0,!0),show:()=>Pe(0),toggle:ze,update:f(ne),visible:m.value,holdHover:Ee,releaseHover:Le})])),_:3},16)):(A(),h(ie,{key:1},[e.showArrow?(A(),h("div",{key:0,ref_key:"arrowRef",ref:c,class:"tui-pp-arrow"},null,512)):C("",!0),X(t.$slots,"default",{hide:()=>Te(0,!0),show:()=>Pe(0),toggle:ze,update:f(ne),visible:m.value,holdHover:Ee,releaseHover:Le})],64))],46,Dr),[[Oe,m.value]])])),_:3},8,["name"])],8,["to"])):C("",!0)],64))}}),_r={class:"tui-mpp-label"},Er=["onClick"],Lr={class:"tui-mpp-label"},Wr={key:2,class:"tui-mpp-empty"},jr=Object.assign({name:"TuiMultPopPanelBranch"},{__name:"mult-branch",props:{items:{type:Array,default:()=>[]},level:{type:Number,default:1},fieldNames:{type:Object,default:()=>({id:"id",label:"label",children:"children",disabled:"disabled",placement:"placement",trigger:"trigger"})},panelProps:{type:Object,default:()=>({})},submenuTrigger:{type:String,default:"click"},submenuPlacement:{type:String,default:"right-start"},closeOnLeafClick:{type:Boolean,default:!0},rootHide:{type:Function,default:null},currentHide:{type:Function,default:null},parentPath:{type:Array,default:()=>[]}},emits:["select"],setup(e,{emit:t}){const l=e,a=t,i=yt(),o=g((()=>l.fieldNames.id||"id")),n=g((()=>l.fieldNames.label||"label")),s=g((()=>l.fieldNames.children||"children")),r=g((()=>l.fieldNames.disabled||"disabled")),d=g((()=>l.fieldNames.placement||"placement")),c=g((()=>l.fieldNames.trigger||"trigger")),p=(e,t,l=null)=>e&&t in e?e[t]:l,v=(e,t)=>String(p(e,o.value,t)),m=e=>p(e,n.value,""),y=e=>{const t=p(e,s.value,[]);return Array.isArray(t)?t:[]},b=e=>!!p(e,r.value,!1),V=e=>y(e).length>0,w=e=>p(e,c.value,"")||l.submenuTrigger,q=e=>p(e,d.value,"")||l.submenuPlacement,x=()=>{l.rootHide?.()},S=()=>{l.currentHide?.()},k=(e,t)=>[...l.parentPath,v(e,t)];return(t,o)=>{const n=ke("TuiMultPopPanelBranch");return A(),h("div",{class:P(["tui-mult-poppanel",[`is-level-${e.level}`]])},[f(i).panelTop?X(t.$slots,"panelTop",{key:0,items:e.items,level:e.level,closeAll:x,closeCurrent:S}):C("",!0),e.items.length?(A(!0),h(ie,{key:1},ze(e.items,((s,r)=>(A(),h(ie,{key:v(s,r)},[V(s)?(A(),Z(cl,Ne({key:0,ref_for:!0},e.panelProps,{disabled:b(s),trigger:w(s),placement:q(s)}),{trigger:W((()=>[u("div",{class:P(["tui-mpp-item has-children",{"is-disabled":b(s)}])},[X(t.$slots,"item",{item:s,level:e.level,path:k(s,r),hasChildren:!0,disabled:b(s),closeAll:x,closeCurrent:S},(()=>[u("span",_r,F(m(s)),1),o[1]||(o[1]=u("i",{class:"tui-icon ti-arrow-right tui-mpp-arrow"},null,-1))]))],2)])),default:W((({hide:l})=>[ce(n,{items:y(s),level:e.level+1,"field-names":e.fieldNames,"panel-props":e.panelProps,"submenu-trigger":e.submenuTrigger,"submenu-placement":e.submenuPlacement,"close-on-leaf-click":e.closeOnLeafClick,"root-hide":e.rootHide,"current-hide":l,"parent-path":k(s,r),onSelect:o[0]||(o[0]=e=>a("select",e))},jt({_:2},[f(i).panelTop?{name:"panelTop",fn:W((e=>[X(t.$slots,"panelTop",Ne({ref_for:!0},e))])),key:"0"}:void 0,f(i).item?{name:"item",fn:W((e=>[X(t.$slots,"item",Ne({ref_for:!0},e))])),key:"1"}:void 0,f(i).empty?{name:"empty",fn:W((()=>[X(t.$slots,"empty")])),key:"2"}:void 0]),1032,["items","level","field-names","panel-props","submenu-trigger","submenu-placement","close-on-leaf-click","root-hide","current-hide","parent-path"])])),_:2},1040,["disabled","trigger","placement"])):(A(),h("div",{key:1,class:P(["tui-mpp-item",{"is-disabled":b(s)}]),onClick:st((e=>((e,t)=>{b(e)||(a("select",{item:e,level:l.level,path:k(e,t),closeAll:x,closeCurrent:S}),l.closeOnLeafClick&&l.rootHide?.())})(s,r)),["stop"])},[X(t.$slots,"item",{item:s,level:e.level,path:k(s,r),hasChildren:!1,disabled:b(s),closeAll:x,closeCurrent:S},(()=>[u("span",Lr,F(m(s)),1)]))],10,Er))],64)))),128)):(A(),h("div",Wr,[X(t.$slots,"empty",{},(()=>[o[2]||(o[2]=De("No data",-1))]))]))],2)}}}),_n=Object.assign({name:"TuiMultPopPanel"},{__name:"mult",props:{items:{type:Array,default:()=>[]},eventTarget:{type:[Object,Element],default:null},trigger:{type:String,default:"click",validator:e=>["contextmenu","click","hover"].includes(e)},submenuTrigger:{type:String,default:"",validator:e=>["","click","hover"].includes(e)},placement:{type:String,default:"bottom-start"},submenuPlacement:{type:String,default:"right-start"},disabled:{type:Boolean,default:!1},appendTo:String,offset:{type:Number,default:4},zIndex:{type:Number,default:2e3},panelClassName:{type:[String,Object,Array],default:""},panelStyle:{type:[String,Object,Array],default:""},minWidth:{type:[String,Number],default:""},maxWidth:{type:[String,Number],default:""},panelId:{type:String,default:""},showDelay:{type:Number,default:120},hideDelay:{type:Number,default:180},closeOnClickOutside:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!0},maxInstances:{type:Number,default:1},transitionName:{type:String,default:"fade"},typed:{type:Boolean,default:!1},type:{type:String,default:null},typedConfig:{type:Object,default:null},showArrow:{type:Boolean,default:!1},arrowSize:{type:Number,default:6},arrowPadding:{type:Number,default:4},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1},closeOnLeafClick:{type:Boolean,default:!0},fieldNames:{type:Object,default:()=>({id:"id",label:"label",children:"children",disabled:"disabled",placement:"placement",trigger:"trigger"})}},emits:["show","shown","hide","hidden","select"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=S(null),n=yt(),s=g((()=>a.submenuTrigger?a.submenuTrigger:"hover"===a.trigger?"hover":"click")),r=g((()=>({disabled:a.disabled,appendTo:a.appendTo,offset:a.offset,zIndex:a.zIndex,panelClassName:a.panelClassName,panelStyle:a.panelStyle,minWidth:a.minWidth,maxWidth:a.maxWidth,showDelay:a.showDelay,hideDelay:a.hideDelay,closeOnClickOutside:a.closeOnClickOutside,closeOnEsc:a.closeOnEsc,destroyOnHide:a.destroyOnHide,maxInstances:a.maxInstances,transitionName:a.transitionName,typed:a.typed,type:a.type,typedConfig:a.typedConfig,showArrow:a.showArrow,arrowSize:a.arrowSize,arrowPadding:a.arrowPadding,tuiService:a.tuiService,dynamicRender:a.dynamicRender})));return t({show:(...e)=>o.value?.show?.(...e),hide:(...e)=>o.value?.hide?.(...e),toggle:(...e)=>o.value?.toggle?.(...e),update:(...e)=>o.value?.update?.(...e),getVisible:()=>o.value?.getVisible?.()}),(t,l)=>(A(),Z(cl,Ne({ref_key:"rootPanelRef",ref:o},r.value,{"event-target":e.eventTarget,trigger:e.trigger,placement:e.placement,"panel-id":e.panelId,onShow:l[1]||(l[1]=e=>i("show")),onShown:l[2]||(l[2]=e=>i("shown")),onHide:l[3]||(l[3]=e=>i("hide")),onHidden:l[4]||(l[4]=e=>i("hidden"))}),{trigger:W((()=>[X(t.$slots,"trigger")])),default:W((({hide:a})=>[ce(jr,{items:e.items,level:1,"field-names":e.fieldNames,"panel-props":r.value,"submenu-trigger":s.value,"submenu-placement":e.submenuPlacement,"close-on-leaf-click":e.closeOnLeafClick,"root-hide":a,"current-hide":a,onSelect:l[0]||(l[0]=e=>i("select",e))},jt({_:2},[f(n).panelTop?{name:"panelTop",fn:W((e=>[X(t.$slots,"panelTop",pt(Vt(e)))])),key:"0"}:void 0,f(n).item?{name:"item",fn:W((e=>[X(t.$slots,"item",pt(Vt(e)))])),key:"1"}:void 0,f(n).empty?{name:"empty",fn:W((()=>[X(t.$slots,"empty")])),key:"2"}:void 0]),1032,["items","field-names","panel-props","submenu-trigger","submenu-placement","close-on-leaf-click","root-hide","current-hide"])])),_:3},16,["event-target","trigger","placement","panel-id"]))}}),Gr={eventTarget:{type:[Object,Element],default:null},menus:{type:Array,default:()=>[]},className:{type:String,default:""},uid:String,offset:{type:Number,default:8},zIndex:{type:Number,default:2e3},minWidth:{type:[String,Number],default:160},maxWidth:{type:[String,Number],default:200},submenuTrigger:{type:String,default:"",validator:e=>["","click","hover"].includes(e)},submenuPlacement:{type:String,default:"right-start"},closeOnLeafClick:{type:Boolean,default:!0},menuClick:{type:Function,default:null},closeDropPanel:{type:Function,default:null},popPanelConfig:{type:Object,default:()=>({})},dropPanelConfig:{type:Object,default:()=>({})},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1},tagConfig:Object},Fr=["title"],Hr={class:"tui-mi-label"},Ur={key:1,class:"tui-mi-desc"},Qr={key:3,class:"tui-icon ti-arrow-right tui-mi-arrow"},En=Object.assign({name:"TuiMenu",inheritAttrs:!1},{__name:"index",props:{trigger:{type:String,default:"contextmenu",validator:e=>["contextmenu","click","hover"].includes(e)},disabled:{type:Boolean,default:!1},placement:String,appendTo:String,...Gr},emits:["menuClick"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=S(null),n=e=>""===e||null==e?null:"number"==typeof e?`${e}px`:e,s=g((()=>({id:"value",label:"label",children:"children",disabled:"disabled",placement:"placement",trigger:"trigger"}))),r=g((()=>{const e=a.popPanelConfig||a.dropPanelConfig||{};return[pe("cpt-menu",{z:a.zIndex,minw:n(a.minWidth)||"160px",maxw:n(a.maxWidth)||"200px"}),e.panelStyle]})),d=g((()=>{const e=a.popPanelConfig||a.dropPanelConfig||{},{panelClassName:t,panelStyle:l,...i}=e;return{items:a.menus,eventTarget:a.eventTarget,trigger:a.trigger,submenuTrigger:a.submenuTrigger,placement:a.placement||"bottom-start",submenuPlacement:a.submenuPlacement,appendTo:a.appendTo,offset:a.offset,zIndex:a.zIndex,panelClassName:["tui-menu-panel",a.className,t],panelStyle:r.value,minWidth:a.minWidth,maxWidth:a.maxWidth,closeOnLeafClick:a.closeOnLeafClick,tuiService:a.tuiService,dynamicRender:a.dynamicRender,...i}})),c=e=>{const{item:t}=e;t?.disabled||(i("menuClick",{item:t,index:e.path?.[e.path.length-1]??null,path:e.path||[],level:e.level,closeAll:e.closeAll,closeCurrent:e.closeCurrent,event:null,target:a.eventTarget}),a.menuClick?.({item:t,index:e.path?.[e.path.length-1]??null,path:e.path||[],level:e.level,closeAll:e.closeAll,closeCurrent:e.closeCurrent,event:null,target:a.eventTarget}))};return t({toggle:e=>o.value?.toggle?.(e),show:(...e)=>o.value?.show?.(...e),hide:(...e)=>o.value?.hide?.(...e),update:(...e)=>o.value?.update?.(...e)}),(e,t)=>(A(),Z(_n,Ne({ref_key:"menuRef",ref:o},d.value,{"field-names":s.value,onSelect:c}),jt({item:W((({item:e,hasChildren:t,disabled:l})=>[u("div",{title:e.title,class:P(["tui-mpp-content",{"is-active":e.active,"is-disabled":l,"has-divider":e.divider}])},[e.icon?(A(),h("i",{key:0,class:P(`tui-mi-icon ${e.icon}`)},null,2)):C("",!0),u("span",Hr,F(e.label),1),e.description?(A(),h("span",Ur,F(e.description),1)):C("",!0),e.tagContent?(A(),Z(On,pt(Ne({key:2},{type:e.tagType||"primary",...a.tagConfig})),{default:W((()=>[De(F(e.tagContent),1)])),_:2},1040)):C("",!0),t?(A(),h("i",Qr)):C("",!0)],10,Fr)])),_:2},[e.eventTarget?void 0:{name:"trigger",fn:W((()=>[X(e.$slots,"default")])),key:"0"}]),1040,["field-names"]))}}),Yr={mounted(e,t,l){if(!t||!t.value)return;const a=document.createElement("div");a.className="tui-menu-directive-host";const i=l?.appContext||l?.ctx?.appContext||null,o=l?.ctx?.appContext?.app||l?.appContext?.app||null,{$tService:n}=o?.config?.globalProperties||{},A=t=>{const l=Mt(En,{...t||{},eventTarget:e,tuiService:n,dynamicRender:!0});l.appContext=i,gt(l,a)};A(t.value),e.__tuiMenuContainer=a,e.__tuiMenuMount=A},updated(e,t){!t||!t.value||!e.__tuiMenuMount||e.__tuiMenuMount(t.value)},unmounted(e){e.__tuiMenuContainer&&gt(null,e.__tuiMenuContainer),delete e.__tuiMenuContainer,delete e.__tuiMenuMount}},Sa=["top-start","top-end","bottom-start","bottom-end"],Ln=["default","invert","primary","success","warning","danger","info","emphasis"],Kr=(e,t)=>{const l=e.typedConfig||{};return{tuiService:t,appearance:l.appearance||"background",transparent:l.transparent??!0,backgroundBlur:l.backgroundBlur??!0,hasShadow:l.hasShadow??!1,shadowColor:l.shadowColor??"weak",...l,type:e.type??l.type??"invert"}},Xr=(e,t)=>l=>{let a=1,i=1;if(e.appendTo?.includes("tuiAdpt")){const e=t.adpt?.info||{};a=e.scaleX||1,i=e.scaleY||1}const o=(()=>{switch(l){case"top-start":case"top-end":return{mainAxis:0,crossAxis:0};case"bottom-start":case"bottom-end":return{mainAxis:20/a,crossAxis:10/i};default:return{mainAxis:0,crossAxis:0}}})();return e.fixOffset?o:Array.isArray(e.offset)?{mainAxis:e.offset[0]??0,crossAxis:e.offset[1]??0}:"number"==typeof e.offset?{mainAxis:e.offset,crossAxis:0}:{mainAxis:0,crossAxis:0}},Zr=(e="bottom-start")=>"top"===e.split("-")[0]?"bottom center":"top center",Jr=(e="bottom-start")=>`is-plcm-${e}`,eA={eventTarget:{type:[Object,Element],default:null},bindTriggerEvents:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start",validator:e=>Sa.includes(e)},appendTo:String,offset:{type:[Number,Array],default:null},fixOffset:{type:Boolean,default:!0},zIndex:{type:Number,default:2e3},panelClassName:{type:[String,Object,Array],default:""},panelStyle:{type:[String,Object,Array],default:""},panelId:{type:String,default:""},showDelay:{type:Number,default:120},hideDelay:{type:Number,default:120},closeOnEsc:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},transitionName:{type:String,default:"fade"},typed:{type:Boolean,default:!0},type:{type:String,default:null,validator:e=>null==e||Ln.includes(e)},typedConfig:{type:Object,default:null},caretSize:{type:Number,default:5},caretOffset:{type:Number,default:2},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1}},tA=["id"],lA=300,Wn=Object.assign({name:"TuiFollowPanel"},{__name:"index",props:{...eA},emits:["show","shown","hide","hidden"],setup(e,{expose:t,emit:l}){const{proxy:a}=ut(),{$tService:i}=a,o=e,n=l,s=xe("followPanel"),r=S(null),d=S(null),c=S(null),p=S(!1),v=S(!1),m=Pe({x:0,y:0}),y=`${s}_show`,b=`${s}_hide`,V=`${s}_init`;let w=null;const x=g((()=>o.dynamicRender?o.tuiService:i)),k=g((()=>x.value?.$globalState?.value||null)),B=g((()=>x.value?.$optFloaterTo?.value||null)),T=g((()=>o.appendTo||B.value||"#tuiRoot")),$=g((()=>o.typed)),z=g((()=>Kr(o,x.value))),R=Xr(o,rl),N=g((()=>pe("cpt-fp",{z:o.zIndex,...q("caretSize",o.caretSize,"px"),...q("caretOfs",o.caretOffset,{append:"px",type:"number",zero:!0})}))),M=g((()=>({getBoundingClientRect:()=>({width:0,height:0,x:m.x,y:m.y,top:m.y,left:m.x,right:m.x,bottom:m.y})}))),{placement:O,floatingStyles:D,update:I}=Va(M,d,{placement:o.placement,strategy:"fixed",middleware:[wa((({placement:e})=>R(e))),Ca({padding:8,boundary:"viewport"}),$a({fallbackPlacements:Sa})]}),_=g((()=>Zr(O.value||o.placement))),F=g((()=>Jr(O.value||o.placement)));K(v,(async e=>{e&&(await de(),I(),ft.s(`${s}_shown`,(()=>{I(),n("shown")})))}));const E=()=>{p.value=!1,n("hidden")},L=(e,t=null)=>{if(!o.disabled){if("number"==typeof e)m.x=e,m.y=t??0;else{if(null==e?.clientX||null==e?.clientY)return;m.x=e.clientX,m.y=e.clientY}I()}},j=(e=null)=>{o.disabled||(he.c(b),e&&L(e),p.value||(p.value=!0),n("show"),he.s(y,(()=>{v.value=!0}),o.showDelay))},G=(e=!1)=>{const t="boolean"==typeof e&&e;o.debug&&!t||(he.c(y),(v.value||p.value)&&(n("hide"),v.value=!1,he.s(b,E,Math.max(o.hideDelay,lA))))},H=()=>{!o.bindTriggerEvents||!w||(We.remove(w,"mouseenter",j,s),We.remove(w,"mousemove",L,s),We.remove(w,"mouseleave",G,s))},Q=()=>{!o.bindTriggerEvents||!c.value||(w=c.value,We.add(w,"mouseenter",j,s),We.add(w,"mousemove",L,s),We.add(w,"mouseleave",G,s))},Y=()=>{if(o.eventTarget)return c.value=o.eventTarget,void Q();const e=r.value?.firstElementChild;e?(c.value=e,Q(),(()=>{const e=r.value;e?.parentNode&&(Array.from(e.childNodes).forEach((t=>{e.parentNode.insertBefore(t,e)})),e.parentNode.removeChild(e))})()):he.s(V,Y,100)};return K((()=>o.eventTarget),(e=>{e&&e!==c.value&&(H(),c.value=e,Q())})),K((()=>k.value?.escCounter),(()=>{!o.closeOnEsc||!v.value||G(!0)})),ye((()=>{Y()})),At((()=>{v.value=!1,p.value=!1,H(),o.debug||(he.c(y),he.c(b)),he.c(V),ft.c(`${s}_shown`)})),t({show:j,hide:G,update:I,updatePos:L,getVisible:()=>v.value}),(e,t)=>(A(),h(ie,null,[e.eventTarget?C("",!0):(A(),h("div",{key:0,class:"tui-follow-panel-trigger",ref_key:"triggerWrapRef",ref:r},[X(e.$slots,"trigger")],512)),p.value?(A(),Z(Tt,{to:T.value,key:f(s),fallback:"#tuiRoot"},[ce(Me,{name:e.transitionName},{default:W((()=>[we(u("div",{ref_key:"panelRef",ref:d,id:e.panelId||`tui-follow-panel-${f(s)}`,class:P(["tui-follow-panel",F.value,e.panelClassName,{"is-typed":$.value,"is-debug":o.debug}]),style:fe([N.value,e.panelStyle,f(D),{transformOrigin:_.value}])},[$.value?(A(),Z(ul,Ne({key:0},z.value,{class:"tui-fp-typed"}),{default:W((()=>[t[0]||(t[0]=u("div",{class:"tui-fp-caret"},null,-1)),X(e.$slots,"default",{hide:G,show:j,update:f(I),updatePos:L,visible:v.value})])),_:3},16)):(A(),h(ie,{key:1},[t[1]||(t[1]=u("div",{class:"tui-fp-caret"},null,-1)),X(e.$slots,"default",{hide:G,show:j,update:f(I),updatePos:L,visible:v.value})],64))],14,tA),[[Oe,v.value]])])),_:3},8,["name"])],8,["to"])):C("",!0)],64))}}),aA={id:String,className:String,title:String,content:{type:String,required:!0},component:Object,tuiService:Object,appendTo:String,destroy:Function,eventTarget:[HTMLElement,SVGPathElement,SVGEllipseElement,SVGPolygonElement],followPanelConfig:Object,zIndex:Number,maxWidth:Number,frequency:Number,placement:{type:String,default:"bottom-start",validator:e=>Sa.includes(e)},type:{type:String,default:"invert",validator:e=>Ln.includes(e)},delay:{type:Number,default:500},offset:{type:Array,validator:e=>!(!Array.isArray(e)||2!==e.length)&&e.every((e=>"number"==typeof e))},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},hasShadow:{type:Boolean,default:!1},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},disabled:{type:Boolean,default:!1},caretSize:{type:Number,default:5},caretOffset:{type:Number,default:2},typedConfig:Object},nA=e=>{const t=e.typedConfig||{};return{...t,tuiService:e.tuiService||t.tuiService,appearance:t.appearance||"background",type:e.type??t.type??"invert",tone:e.tone??t.tone??"base",transparent:e.transparent??t.transparent??!0,backgroundBlur:e.backgroundBlur??t.backgroundBlur??!0,hasShadow:e.hasShadow??t.hasShadow??!1,shadowColor:e.shadowColor??t.shadowColor??"weak"}},oA=e=>pe("cpt-curtip",{...q("maxw",e.maxWidth,"px"),...q("z",e.zIndex),...q("caretSize",e.caretSize,"px"),...q("caretOfs",e.caretOffset,{append:"px",type:"number",zero:!0})}),iA=(e,t)=>{const l=[t];return e.maxWidth&&l.push({maxWidth:`${e.maxWidth}px`}),{...e.followPanelConfig||{},eventTarget:e.eventTarget,bindTriggerEvents:e.bindTriggerEvents,disabled:e.disabled,placement:e.placement,appendTo:e.appendTo,offset:e.offset,fixOffset:!e.offset,zIndex:e.zIndex,panelClassName:["tui-cursor-tip-panel",e.className],panelStyle:l,panelId:e.id?`curtip-${e.id}`:"",showDelay:e.bindTriggerEvents?e.delay:0,hideDelay:0,closeOnEsc:!0,typed:!0,type:e.type,typedConfig:nA(e),caretSize:e.caretSize,caretOffset:e.caretOffset,tuiService:e.tuiService,dynamicRender:e.dynamicRender}},sA={key:0,class:"tui-curtip-title"},rA={class:"tui-curtip-cont"},jn=Object.assign({name:"TuiCursorTip"},{__name:"cursorTip",props:{...aA,dynamicRender:{type:Boolean,default:!1},bindTriggerEvents:{type:Boolean,default:!0}},setup(e,{expose:t}){const l=e,a=S(null),i=g((()=>oA(l))),o=g((()=>iA(l,i.value))),n=()=>{l.destroy&&l.destroy()};return t({hide:(e=!1)=>{a.value?.hide(e)},show:e=>{a.value?.show(e)},update:()=>{a.value?.update()},updatePos:(e,t)=>{a.value?.updatePos(e,t)}}),(e,t)=>(A(),Z(Wn,Ne({ref_key:"followRef",ref:a},o.value,{onHidden:n}),{trigger:W((()=>[X(e.$slots,"default")])),default:W((()=>[X(e.$slots,"content",{},(()=>[e.component?(A(),Z(ct(e.component),{key:0})):(A(),h(ie,{key:1},[e.title?(A(),h("div",sA,F(e.title),1)):C("",!0),u("div",rA,F(e.content),1)],64))]))])),_:3},16))}}),Ka=e=>{e.mouseEvent=!0,We.add(e,"mouseenter",e.show,e.id),We.add(e,"mouseleave",e.hide,e.id),We.add(e,"mousemove",e.update,e.id)},Xa=e=>{We.remove(e,"mouseenter",e.id),We.remove(e,"mouseleave",e.id),We.remove(e,"mousemove",e.id)},AA={mounted(e,t,l){if(!t)return;const{delay:a=500,disabled:i=!1}=t.value||{},o=l.ctx.appContext.app,{$tService:n}=o.config.globalProperties,{$optFloaterTo:A}=n;e.appendTo=t.value.appendTo||A.value,e.disabled=i,e.instance=null,e.id=xe("curtipDir");let s=null,r=null;const u=()=>{e.instance&&(gt(null,s),s&&r?.contains(s)&&r.removeChild(s),s=null,r=null,e.instance=null)};e.destroy=u;e.show=l=>{e.disabled||(null!=l?.clientX&&null!=l?.clientY&&(e.pointer={x:l.clientX,y:l.clientY}),he.c(`${e.id}_ti`),he.s(`${e.id}_ti`,(()=>{e.instance||(s=document.createElement("div"),s.id=`${e.id}_inst`,s.className="curtipinst-outer",r=Ze.el(e.appendTo)||Ze.el("#tuiRoot"),e.instance=Mt(jn,{...e.options||t.value,id:e.id,eventTarget:e,tuiService:n,dynamicRender:!0,bindTriggerEvents:!1,appendTo:e.appendTo,destroy:u}),e.options||(e.options=t.value),r.appendChild(s),gt(e.instance,s)),de((()=>{e.instance?.component?.exposed?.updatePos(e.pointer.x,e.pointer.y),e.instance?.component?.exposed?.show()}))}),a))},e.hide=()=>{he.c(`${e.id}_ti`),e.instance?.component?.exposed?.hide()},e.update=t=>{e.disabled||!t||(null!=t.clientX&&null!=t.clientY&&(e.pointer={x:t.clientX,y:t.clientY}),e.instance?.component?.exposed?.updatePos(e.pointer.x,e.pointer.y))},i||Ka(e);const d=K((()=>n.$optFloaterTo.value),(l=>{e.appendTo=t.value.appendTo||l}));e.floaterUnwatch=d},updated(e,t){t&&(e.options=t.value,t.value.disabled!=t.oldValue?.disabled&&(e.mouseEvent&&(Xa(e),e.mouseEvent=!1),e.disabled=t.value.disabled,e.disabled?(he.c(`${e.id}_ti`),e.instance?.component?.exposed?.hide(!0),e.destroy()):Ka(e)))},unmounted(e){e.mouseEvent&&(e.floaterUnwatch&&e.floaterUnwatch(),Xa(e),e.instance&&e.destroy&&e.destroy(),delete e.mouseEvent,delete e.destroy,delete e.show,delete e.hide,delete e.id,delete e.update,delete e.appendTo,delete e.options,delete e.disabled)}},qa={id:String,className:String,appendTo:String,title:String,titleIcon:String,tuiService:Object,component:Object,instances:Object,destroy:Function,event:[Function,PointerEvent,Object],eventTarget:[HTMLElement,SVGPathElement],manual:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},autoClose:Boolean,showTrigger:Boolean,popPanelConfig:Object,zIndex:Number,maxWidth:Number,placement:{type:String,default:"top",validator:e=>["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e)},type:{type:String,default:null,validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},appearance:{type:String,default:"popTip",validator:e=>["popTip","popInfo"].includes(e)},trigger:{type:String,default:"hover",validator:e=>["hover","click"].includes(e)},debug:{type:Boolean,default:!1},content:{type:String,required:!1},enterable:{type:Boolean,default:!1},delay:{type:Number,default:500},offset:{type:Number,default:4},duration:{type:Number,default:3e3},closeOnClickOutside:{type:Boolean,default:null},defaultOn:{type:Boolean,default:!1},showArrow:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},typedConfig:Object},Gn=(e,t)=>pe(e,{...q("maxw",t.maxWidth,"px")}),Fn=(e,t)=>{const l=e.typedConfig||{};return{...l,appearance:l.appearance||"background",tone:e.tone??l.tone,transparent:e.transparent??l.transparent,backgroundBlur:e.backgroundBlur??l.backgroundBlur,hasShadow:e.hasShadow??l.hasShadow,shadowColor:e.shadowColor??l.shadowColor,type:e.type||l.type||t}},Hn=(e,t)=>{const{panelClassName:l,panelStyle:a,typedConfig:i,arrowSize:o,offsetAdjust:n=0}=t,A=e.popPanelConfig||{},s=e.closeOnClickOutside??A.closeOnClickOutside??"click"===e.trigger;return{...A,eventTarget:e.eventTarget,manual:e.manual,visible:e.visible,trigger:e.trigger,placement:e.placement,disabled:e.disabled,appendTo:e.appendTo,offset:e.offset+n,zIndex:e.zIndex||1e3,panelClassName:l,panelStyle:a,showDelay:e.delay,hideDelay:200,typed:!0,typedConfig:i,showArrow:e.showArrow,arrowSize:o,tuiService:e.tuiService,dynamicRender:!!e.tuiService,closeOnClickOutside:s,closeOnEsc:!0,debug:e.debug}},uA={class:"tui-pinfo-body"},cA={key:0,class:"tui-pinfo-title"},Un=Object.assign({name:"TuiPopinfo"},{__name:"popinfo",props:{...qa,enterable:{type:Boolean,default:!0}},emits:["update:visible"],setup(e,{expose:t,emit:l}){const a=e,i=`${xe("popInfo")}_autoH`,o=S(null),n=l,s=g((()=>Gn("cpt-pinfo",a))),r=g((()=>Fn(a,"default"))),d=g((()=>Hn(a,{panelClassName:["tui-popinfo",a.className,{"is-enterable":a.enterable}],panelStyle:s.value,typedConfig:r.value,arrowSize:8,offsetAdjust:2}))),c=()=>{a.autoClose&&"click"===a.trigger&&he.s(i,(()=>{o.value?.hide?.()}),a.duration)},p=()=>{he.c(i),a.defaultOn&&a.destroy?.(!1,!0)};return ye((()=>{a.defaultOn&&o.value?.show?.()})),t({show:()=>{o.value?.show?.()},hide:()=>{o.value?.hide?.()},update:()=>o.value?.update?.(),getVisible:()=>o.value?.getVisible?.()||!1}),(e,t)=>(A(),Z(cl,Ne({ref_key:"popPanelRef",ref:o},d.value,{"onUpdate:visible":t[0]||(t[0]=e=>n("update:visible",e)),onShown:c,onHidden:p}),{trigger:W((()=>[X(e.$slots,"default")])),default:W((()=>[u("div",uA,[e.title?(A(),h("div",cA,[e.titleIcon?(A(),h("i",{key:0,class:P(`tui-pinfo-icon ${e.titleIcon}`)},null,2)):C("",!0),De(" "+F(e.title),1)])):C("",!0),e.component?(A(),Z(ct(e.component),{key:1})):X(e.$slots,"content",{key:2},(()=>[De(F(e.content),1)]))])])),_:3},16))}}),dA={class:"tui-ptip-cont"},na=Object.assign({name:"TuiPopTip"},{__name:"poptip",props:{...qa},emits:["update:visible"],setup(e,{expose:t,emit:l}){const a=e,i=`${xe("popTip")}_autoH`,o=S(null),n=l,s=g((()=>Gn("cpt-ptip",a))),r=g((()=>Fn(a,"invert"))),d=g((()=>Hn(a,{panelClassName:["tui-poptip",a.className,{"is-enterable":a.enterable}],panelStyle:s.value,typedConfig:r.value,arrowSize:6}))),c=()=>{a.autoClose&&"click"===a.trigger&&he.s(i,(()=>{o.value?.hide?.()}),a.duration)},p=()=>{he.c(i),a.defaultOn&&a.destroy?.(!1,!0)};return ye((()=>{a.defaultOn&&o.value?.show?.()})),t({show:()=>{o.value?.show?.()},hide:()=>{o.value?.hide?.()},update:()=>o.value?.update?.(),getVisible:()=>o.value?.getVisible?.()||!1}),(e,t)=>(A(),Z(cl,Ne({ref_key:"popPanelRef",ref:o},d.value,{"onUpdate:visible":t[0]||(t[0]=e=>n("update:visible",e)),onShown:c,onHidden:p}),{trigger:W((()=>[X(e.$slots,"default")])),default:W((()=>[u("div",dA,[e.component?(A(),Z(ct(e.component),{key:0})):X(e.$slots,"content",{key:1},(()=>[De(F(e.content),1)]))])])),_:3},16))}}),zt=Pe([]),fA=()=>{const e=[...zt];e.length>0&&(e.forEach((e=>{const t=e.props.eventTarget;t&&t.instance&&t.destroy&&t.destroy(!0)})),zt.length=0)},pA=()=>{if(0===zt.length)return;const e=zt[0].props.eventTarget;e&&e.instance&&e.destroy&&e.destroy()},Za=e=>{e.defaultOn?e.mouseEvent():"hover"===e.trigger?(We.add(e,"mouseenter",e.mouseEvent,e.id),We.add(e,"mouseleave",e.leaveEvent,e.id)):"click"===e.trigger&&We.add(e,"click",e.mouseEvent,e.id)},Ja=e=>{e.defaultOn||("hover"===e.trigger?(We.remove(e,"mouseenter",e.id),We.remove(e,"mouseleave",e.id)):"click"===e.trigger&&We.remove(e,"click",e.id))},gA={mounted(e,t,l){if(!t)return;const{trigger:a="hover",autoClose:i=!0,duration:o=5e3,defaultOn:n=!1,disabled:A=!1}=t.value||{};e.disabled=A,e.trigger=a,e.autoClose=i,e.defaultOn=n,e.options=t.value||{},e.lastEvent=null;const s=l.ctx.appContext.app,{$tService:r}=s.config.globalProperties,{$popoverConfig:u}=r,{$optFloaterTo:d}=r;e.appendTo=t.value.appendTo||d.value;const c=xe("popOverDir");let p=null,g=null;e.instance=null,e.id=c;const f=(t=!1)=>{const l=zt.indexOf(e.instance);-1!==l&&!t&&zt.splice(l,1),p&&(gt(null,p),g&&g.contains(p)&&g.removeChild(p)),p=null,g=null,e.instance=null},v=(t=!1,l=!1)=>{if(e.instance){if(l)return he.c(c+"_hideEnd"),void f(t);he.s(c+"_hide",(()=>{e.instance&&(e.instance.component?.exposed?.hide?.(),he.s(c+"_hideEnd",(()=>f(t)),500))}),200)}},h=(t=e.lastEvent)=>{if(!p)return;const l={...e.options||{}},a=l.appearance||"popTip",i=Mt("popTip"===a?na:Un,{...l,id:c,destroy:v,tuiService:r,instances:zt,event:t,eventTarget:e,trigger:e.trigger,defaultOn:!0}),o=zt.indexOf(e.instance);e.instance=i,-1!==o?zt[o]=i:zt.push(i),gt(i,p)};e.destroy=v,e.renderInstance=h;e.mouseEvent=async t=>{e.lastEvent=t||e.lastEvent,!e.instance&&!e.disabled&&(await de(),!e.instance&&!e.disabled&&(t=>{e.instance||e.disabled||(e.lastEvent=t||e.lastEvent,p=document.createElement("div"),p.id=c+"_wrap",p.className="popinst-outer",zt.length>=u.value.maxLength&&pA(),g=Ze.el(e.appendTo)||Ze.el("#tuiRoot"),g.appendChild(p),h(e.lastEvent),"click"===e.trigger&&e.autoClose&&!n&&he.s(c+"_autoH",(()=>{v()}),o))})(e.lastEvent))},e.leaveEvent=()=>{he.c(c+"_autoH"),e.instance&&("hover"===e.trigger&&e.options?.debug||e.instance.component?.exposed?.hide?.())},A||Za(e);const m=K((()=>r.$optFloaterTo.value),(l=>{e.appendTo=t.value.appendTo||l}));e.floaterUnwatch=m},updated(e,t){if(!t)return;e.options=t.value||{};const l=t.value.trigger!=t.oldValue?.trigger,a=t.value.disabled!=t.oldValue?.disabled,i=t.value.defaultOn!=t.oldValue?.defaultOn,o=t.value.maxWidth!=t.oldValue?.maxWidth,n=t.value.content!=t.oldValue?.content,A=t.value.title!=t.oldValue?.title;(l||a||i)&&(he.c(e.id+"_show"),e.destroy?.(),Ja(e)),l&&(e.trigger=t.value.trigger),a&&(e.disabled=t.value.disabled,e.disabled&&e.destroy?.()),i&&(e.defaultOn=!!t.value.defaultOn),t.value.autoClose!=t.oldValue?.autoClose&&(e.autoClose=t.value.autoClose),e.instance&&!e.disabled&&(o||n||A||l||a||i)&&e.renderInstance&&e.renderInstance(),(l||a||i)&&!e.disabled&&Za(e)},unmounted(e){e.mouseEvent&&(e.floaterUnwatch&&e.floaterUnwatch(),he.c(e.id+"_show"),he.c(e.id+"_hide"),he.c(e.id+"_hideEnd"),he.c(e.id+"_autoH"),Ja(e),e.instance&&e.destroy&&e.destroy(),delete e.mouseEvent,delete e.leaveEvent,delete e.trigger,delete e.autoClose,delete e.defaultOn,delete e.destroy,delete e.renderInstance,delete e.lastEvent,delete e.appendTo,delete e.options,delete e.disabled,delete e.id)}},hA={install(e){e.config.globalProperties.$tPopoverDirectiveCloseAll=()=>fA()}},Qn=(e,t)=>!0===t?e.parentElement:t?"string"==typeof t?e.closest(t)||document.querySelector(t):t?.value instanceof HTMLElement?t.value:t instanceof HTMLElement?t:e.parentElement:null,vA=e=>["x","y","both"].includes(e)?e:"both",mA=(e,t=!1,l=!0)=>{let a=1,i=1;if(t){const{scaleX:e,scaleY:t}=rl.adpt.info;a=e,i=t}const o=e.style.transform;e.style.transform="";const n=Qn(e,l);if(!n)return null;const A=e.getBoundingClientRect(),s=n.getBoundingClientRect(),r=A.left-s.left,u=A.top-s.top;return e.style.transform=o,{minX:-r/a,minY:-u/i,maxX:(s.width-A.width-r)/a,maxY:(s.height-A.height-u)/i}},yA=(e,t,l=!0)=>{const a=Qn(e,l)||("absolute"==t?e.offsetParent:e.parentElement);return a?{minX:0,minY:0,maxX:a.clientWidth-e.offsetWidth,maxY:a.clientHeight-e.offsetHeight}:null},bA=(e,t,l=!1)=>{let a=1,i=1;if(l){const{scaleX:e,scaleY:t}=rl.adpt.info;a=e,i=t}const o=e.getBoundingClientRect();if("transform"===t){const t=window.getComputedStyle(e),l=new DOMMatrix(t.transform);return{startX:l.m41*a,startY:l.m42*i}}{const l=("absolute"==t?e.offsetParent:e.parentElement)?.getBoundingClientRect()||{left:0,top:0};return{startX:o.left-("transform"!=t?l.left:0),startY:o.top-("transform"!=t?l.top:0)}}},VA=({el:e,e:t,mouseStartX:l,mouseStartY:a,startX:i,startY:o,positionType:n,boundaries:A,inAdpt:s,axis:r,writeAxisOnly:u,onDrag:d})=>{let c=1,p=1;if(s){const{scaleX:e,scaleY:t}=rl.adpt.info;c=e,p=t}const g=t.clientX-l,f=t.clientY-a;let v=(i+g)/c,h=(o+f)/p;"x"===r&&(h=o/p),"y"===r&&(v=i/c),A&&(v=Math.min(A.maxX,Math.max(A.minX,v)),h=Math.min(A.maxY,Math.max(A.minY,h))),"transform"===n?e.style.transform=`translate(${v}px, ${h}px)`:u&&"both"!==r?"x"===r?e.style.left=`${v}px`:"y"===r&&(e.style.top=`${h}px`):(e.style.left=`${v}px`,e.style.top=`${h}px`);const m={el:e,event:t,left:v,top:h,deltaX:g,deltaY:f,axis:r,positionType:n};return d?.(m),m},Yn=e=>(e._tuiDragState||(e._tuiDragState={uid:null,triggerEl:null,handleMousedown:null,triggerCursor:""}),e._tuiDragState),wA=({el:e,triggerEl:t,value:l,axis:a,positionType:i,containment:o,inAdpt:n,boundaries:A,startX:s,startY:r,mouseStartX:u,mouseStartY:d,event:c})=>{l?.debug&&(console.group?.("[v-tui-drag] drag start"),console.log("value:",l),console.log("axis:",a),console.log("positionType:",i),console.log("containment:",o),console.log("inAdpt:",n),console.log("element:",e),console.log("triggerEl:",t),console.log("boundaries:",A),console.log("start:",{startX:s,startY:r,mouseStartX:u,mouseStartY:d}),console.log("event:",c),console.groupEnd?.())},Kn=e=>{e&&(We.remove(document,"mousemove",e),We.remove(document,"mouseup",e))},en=e=>{const t=Yn(e);Kn(t.uid),t.triggerEl&&(t.handleMousedown&&t.triggerEl.onmousedown===t.handleMousedown&&(t.triggerEl.onmousedown=null),t.triggerEl.style.cursor=t.triggerCursor||""),t.triggerEl=null,t.handleMousedown=null},tn=(e,t)=>{t&&(e.style.removeProperty("transform"),e.style.removeProperty("left"),e.style.removeProperty("top")),e.style.removeProperty("cursor")},CA={mounted(e,t){if(!t)return;const l=t=>{const{containment:l=!0,inAdpt:a=!1,enabled:i=!0,positionType:o="transform",resetOnDisable:n=!1,uid:A,axis:s="both",writeAxisOnly:r=!1,onStart:u,onDrag:d,onEnd:c}=t||{},p=Yn(e),g=t?.trigger?e.querySelector(t.trigger):e,f=A||p.uid||`drag_${Math.random().toString(36).slice(2,10)}`,v=vA(s);if(en(e),p.uid=f,p.triggerEl=g,p.triggerCursor=g?.style?.cursor||"",e.enabled=i,e.resetOnDisable=n,!e.enabled)return tn(e,e.resetOnDisable),void(g&&(g.style.cursor=p.triggerCursor||""));if(!g)return;g.style.cursor="move";const h=i=>{if(!e.enabled)return;if(t?.exclude){const e=i.target?.closest?.(t.exclude);if(e&&g.contains(e))return}let n=null;l&&(n="transform"===o?mA(e,a,l):yA(e,o,l));const{startX:A,startY:s}=bA(e,o,a),f=i.clientX,h=i.clientY;wA({el:e,triggerEl:g,value:t,axis:v,positionType:o,containment:l,inAdpt:a,boundaries:n,startX:A,startY:s,mouseStartX:f,mouseStartY:h,event:i});let m={el:e,event:i,left:A,top:s,deltaX:0,deltaY:0,axis:v,positionType:o};u?.(m);We.add(document,"mousemove",(t=>{m=VA({el:e,e:t,mouseStartX:f,mouseStartY:h,startX:A,startY:s,positionType:o,boundaries:n,inAdpt:a,axis:v,writeAxisOnly:r,onDrag:d})||m}),p.uid),We.add(document,"mouseup",(e=>{Kn(p.uid),c?.({...m,event:e})}),p.uid),i.preventDefault()};p.handleMousedown=h,g.onmousedown=h};l(t.value),e.dragUpdate=l},updated(e,t){t&&(!xt.isEq(t.value,t.oldValue)||e.enabled!==t.value?.enabled)&&e.dragUpdate?.(t.value)},unmounted(e){en(e),tn(e,e.resetOnDisable),delete e._tuiDragState,delete e.dragUpdate}};function ln(e,t){const l=Qe(e);if(l.includes("function"))return{disabled:!1,uid:t.uid||xe("vResize"),cid:null,resizeOptions:{frameSync:!0,throttle:0,debounce:0,threshold:0,trailing:!0,settleDelay:80},callback:e};if("object"===l&&e){const l=e.cid??null,a=e.throttle??0,i=e.debounce??0;a>0&&i>0&&console.warn("v-tui-resize: throttle and debounce cannot be enabled at the same time. debounce takes priority.");const o=i>0;return"string"===Qe(l)&&!l.includes("Error")&&Tn(l,t.className),{disabled:e.disabled??!1,uid:e.uid||t.uid||xe("vResize"),cid:l,resizeOptions:{frameSync:e.frameSync??!0,throttle:o?0:a,debounce:i,threshold:e.threshold??0,trailing:!o&&(e.trailing??!0),settleDelay:o?0:e.settleDelay??(a>0?a:80)},callback:e.callback}}return{disabled:!0,uid:t.uid||xe("vResize"),cid:null,resizeOptions:{frameSync:!0,throttle:0,debounce:0,threshold:0,trailing:!0,settleDelay:80},callback:null}}function an(e,t){e.disabled=t.disabled,e.uid=t.uid,e.cid=t.cid,e.resizeOptions=t.resizeOptions,e.callback=t.callback}function nn(e){!e.disabled&&Qe(e.callback).includes("function")&&Ul.o(e,(t=>{for(let l of t){const{width:t,height:a}=l.contentRect;e.callback({width:t,height:a})}}),e.resizeOptions)}function ca(e){Ul.d(e)}const $A={mounted(e,t){an(e,ln(t.value,e)),nn(e)},updated(e,t){const l=e.disabled,a=JSON.stringify(e.resizeOptions||{}),i=e.uid,o=e.callback;an(e,ln(t.value,e));const n=!l&&Qe(o).includes("function");!e.disabled&&Qe(e.callback).includes("function")?(!n||l!==e.disabled||a!==JSON.stringify(e.resizeOptions||{})||i!==e.uid||o!==e.callback)&&(n&&ca(e),nn(e)):n&&ca(e)},unmounted(e){ca(e)}},kA={mounted(e,t){const l=t.value;"string"==Qe(l)&&!l.includes("Error")&&Tn(l,e.className)},unmounted(e){}},oa={tuiService:Object,destroy:Function,className:String,spreadRadius:Number,blurRadius:Number,queueOffset:Number,content:{type:String,required:!0},id:{type:String,required:!0},icon:{type:String},hideIcon:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},calledByFlash:{type:Boolean,default:!1},grouping:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},aniType:{type:String,default:"soft",validator:e=>["soft","sudden"].includes(e)},appearance:{type:String,default:"toast",validator:e=>["message","toast"].includes(e)},queuePosition:{type:String,validator:e=>["top","top-left","top-right","left","right","bottom","bottom-left","bottom-right"].includes(e)},type:{type:String,default:"info",validator:e=>["primary","success","warning","danger","error","info","emphasis","focus"].includes(e)},typedConfig:Object},SA={key:0,class:"tui-icon ti-info-circle"},qA={key:1,class:"tui-icon ti-check-circle"},TA={key:2,class:"tui-icon ti-alert-circle"},BA={key:3,class:"tui-icon ti-alert-triangle"},xA={key:2,class:"tui-msg-debug"},PA={key:4,class:"tui-msg-repeat"},RA=Object.assign({name:"TuiMessage"},{__name:"index",props:{...oa,debug:{type:Boolean,default:!1},position:{type:String}},setup(e,{expose:t}){const l=Pe({index:0,content:"",id:"",repeat:1}),a=e,i=g((()=>"error"==a.type?"danger":a.type)),{offset:o}=a.tuiService.$aMessage.value,n=S(!1),s=(e,t=!1)=>{he.c(a.id),a.destroy(t)},r=()=>{const{position:e}=a;let t=Nt[e].findIndex((e=>e.component.props.id===a.id));l.index=t};K((()=>Nt[a.position]),(e=>{r()}),{deep:!0}),K((()=>a.tuiService.$gEscCounter.value),(e=>{e&&!a.calledByFlash&&s()}));const d=()=>{a.tuiService.$aMessage.value.counter-=1},c=g((()=>pe("cpt-msg",{offset:o,index:l.index}))),p=S({tuiService:a.tuiService,appearance:"background",type:i,tone:g((()=>a.tone)),transparent:g((()=>a.transparent)),backgroundBlur:g((()=>a.backgroundBlur)),hasShadow:g((()=>a.hasShadow)),shadowColor:g((()=>a.shadowColor)),...a.typedConfig});return ye((()=>{a.calledByFlash||a.tuiService.$gSound.value&&a.tuiService.audio.play("popupA"),a.tuiService.$aMessage.value.counter+=1,r(),n.value=!0,l.content=a.content})),t({hide:()=>{n.value=!1,d()},updateIndex:r,closeMessage:s,repeatAdd:()=>{l.repeat++}}),(t,a)=>(A(),Z(Me,{name:"slide-fade"},{default:W((()=>[we(ce(ul,Ne(p.value,{class:["tui-message",`is-pos-${e.position}`,`msg-${t.id}`,`is-index-${l.index}`,t.className&&`${t.className}`],style:c.value}),{default:W((()=>[t.icon?C("",!0):(A(),h(ie,{key:0},["info"==i.value||"primary"==i.value||"emphasis"==i.value?(A(),h("i",SA)):C("",!0),"success"==i.value?(A(),h("i",qA)):C("",!0),"warning"==i.value?(A(),h("i",TA)):C("",!0),"danger"==i.value?(A(),h("i",BA)):C("",!0)],64)),t.icon?(A(),h("i",{key:1,class:P(t.icon)},null,2)):C("",!0),e.debug?(A(),h("span",xA,F(l.index+1)+":"+F(t.id),1)):C("",!0),u("span",null,F(t.content),1),t.showClose?(A(),h("i",{key:3,class:"tui-msg-close tui-icon ti-times",onClick:s})):C("",!0),l.repeat>1?(A(),h("span",PA,F(l.repeat),1)):C("",!0)])),_:1},16,["class","style"]),[[Oe,n.value]])])),_:1}))}});Pe([]);const Nt=Pe({"top-left":[],"top-center":[],"top-right":[],"bottom-left":[],"bottom-center":[],"bottom-right":[]}),zA=(e,t)=>{const{$tService:l,$tNotifyCloseAll:a,$tAttentionDispatcher:i}=t.config.globalProperties,{position:o,duration:n}=l.$aMessage.value,{counter:A}=l.$aNotification.value,{show:s,currentChannel:r}=l.$aDispatcher.value,{$optFloaterTo:u}=l,d=e.appendTo||u.value;if(s||i(e),r&&"message"!=r&&!e.calledByFlash)return void l.$aDispatcher.value.queue.push({...e,attentionType:"message"});let c=null;const p=document.createElement("div"),g=xe("msgdir"),f=e.position||o||"top-center",v=t=>{if(c.component.exposed.hide(),!t){const e=Nt[f].indexOf(c);Nt[f].splice(e,1)}setTimeout((()=>{gt(null,p),Qe(e.onClose).includes("function")&&e.onClose()}),500)},h=()=>{c=Mt(RA,{...e,position:f,id:g,destroy:v,tuiService:l}),Nt[f].push(c),gt(c,p),(Ze.el(d)||Ze.el("#tuiRoot")).appendChild(p.firstElementChild),e.calledByFlash?e.calledByFlash&&e.duration&&he.s(g,v,e.duration):he.s(g,v,e.duration||n||3e3)};if(e.grouping){const t=Nt[f].findIndex((t=>t.props.content===e.content));if(-1==t)h();else{const{id:l,destroy:a}=Nt[f][t].props;Nt[f][t].component.exposed.repeatAdd(),e.calledByFlash||he.s(l,a,e.duration||n||3e3)}}else h();return{destroy:v}},NA=()=>{for(let e in Nt)Nt[e].forEach(((e,t)=>{e.component.exposed.closeMessage(null,!0)})),Nt[e]=[]},IA={key:0,class:"tui-icon ti-info-circle"},MA={key:1,class:"tui-icon ti-check-circle"},DA={key:2,class:"tui-icon ti-alert-circle"},OA={key:3,class:"tui-icon ti-alert-triangle"},_A={class:"tui-noti-main"},EA={class:"tui-noti-title"},LA={class:"tui-noti-content"},WA={key:0,class:"tui-noti-debug"},jA={key:2,class:"tui-noti-repeat"},GA=Object.assign({name:"TuiNotification"},{__name:"index",props:{...oa,title:{type:String},position:{type:String},debug:{type:Boolean,default:!1}},setup(e,{expose:t}){const l=S(),a=Pe({index:0,title:"",content:"",id:"",repeat:1,offsetSum:1}),i=e,o=g((()=>"error"==i.type?"danger":i.type)),{offset:n}=i.tuiService.$aNotification.value,{content:s,title:r}=Ye(a),d=S(!1),c=(e,t=!1)=>{he.c(i.id),i.destroy(t)},p=()=>{const{position:e}=i;let t=St[e].findIndex((e=>e.component.props.id===i.id));a.index=t},v=()=>{const{position:e}=i,t=St[e].findIndex((e=>e.component.props.id===i.id));let l=10;if(t>-1)for(let a=0;a<St[e].length&&!(a>=t);a++)l+=St[e][a].el.offsetHeight+15;a.offsetSum=l};K((()=>St[i.position]),(e=>{p(),v()}),{deep:!0}),K((()=>i.tuiService.$gEscCounter.value),(e=>{e&&c()}));const m=()=>{i.tuiService.$aNotification.value.counter-=1},y=g((()=>pe("cpt-noti",{offset:n,index:a.index,offsetSum:a.offsetSum}))),b=S({tuiService:i.tuiService,appearance:"background",type:o,tone:g((()=>i.tone)),transparent:g((()=>i.transparent)),backgroundBlur:g((()=>i.backgroundBlur)),hasShadow:g((()=>i.hasShadow)),shadowColor:g((()=>i.shadowColor)),...i.typedConfig});return ye((()=>{i.tuiService.$gSound.value&&i.tuiService.audio.play("popupA"),i.tuiService.$aNotification.value.counter+=1,p(),de((()=>{v()})),d.value=!0,a.content=i.content,i.title?a.title=i.title:a.title=i.tuiService.i18n(o.value+".label")})),t({hide:()=>{d.value=!1,m()},updateIndex:p,closeNotification:c,repeatAdd:()=>{a.repeat++}}),(t,i)=>(A(),Z(Me,{name:"slide-fade"},{default:W((()=>[we(ce(ul,Ne(b.value,{ref_key:"notificationRef",ref:l,class:["tui-notification",`is-pos-${e.position}`,`noti-${t.id}`,`is-index-${a.index}`,t.className&&`${t.className}`],style:y.value}),{default:W((()=>[t.icon?C("",!0):(A(),h(ie,{key:0},["info"==o.value||"primary"==o.value||"emphasis"==o.value?(A(),h("i",IA)):C("",!0),"success"==o.value?(A(),h("i",MA)):C("",!0),"warning"==o.value?(A(),h("i",DA)):C("",!0),"danger"==o.value?(A(),h("i",OA)):C("",!0)],64)),t.icon?(A(),h("i",{key:1,class:P(`tui-noti-icon ${t.icon}`)},null,2)):C("",!0),u("div",_A,[u("span",EA,F(f(r)),1),u("span",LA,F(f(s)),1),e.debug?(A(),h("span",WA,F(a.index+1)+":"+F(t.id),1)):C("",!0),t.showClose?(A(),h("i",{key:1,class:"tui-noti-close tui-icon ti-times",onClick:c})):C("",!0),a.repeat>1?(A(),h("span",jA,F(a.repeat),1)):C("",!0)])])),_:1},16,["class","style"]),[[Oe,d.value]])])),_:1}))}});Pe([]);const St=Pe({"top-left":[],"top-center":[],"top-right":[],"bottom-left":[],"bottom-center":[],"bottom-right":[]}),FA=(e,t)=>{const{$tService:l,$tMessageCloseAll:a,$tAttentionDispatcher:i}=t.config.globalProperties,{position:o}=l.$aNotification.value,{counter:n}=l.$aMessage.value,{show:A,currentChannel:s}=l.$aDispatcher.value,{$optFloaterTo:r}=l,u=e.appendTo||r.value;if(A||i(e),s&&"notification"!=s)return void l.$aDispatcher.value.queue.push({...e,attentionType:"notification"});let d=null;const c=document.createElement("div"),p=xe("notidir"),g=e.position||o||"top-center",f=t=>{if(d.component.exposed.hide(),!t){const e=St[g].indexOf(d);St[g].splice(e,1)}setTimeout((()=>{gt(null,c),Qe(e.onClose).includes("function")&&e.onClose()}),500)},v=()=>{d=Mt(GA,{...e,position:g,id:p,destroy:f,tuiService:l}),St[g].push(d),gt(d,c),(Ze.el(u)||Ze.el("#tuiRoot")).appendChild(c.firstElementChild),e.duration&&he.s(p,f,e.duration)};if(e.grouping){const t=St[g].findIndex((t=>(e.title?t.props.title===e.title:!e.title)&&t.props.content===e.content));if(-1==t)v();else{const{id:l,destroy:a}=St[g][t].props;St[g][t].component.exposed.repeatAdd(),e.duration&&he.s(l,a,e.duration)}}else v();return{destroy:f}},HA=()=>{for(let e in St)St[e].forEach(((e,t)=>{e.component.exposed.closeNotification(null,!0)})),St[e]=[]},UA={key:0,class:"tui-icon ti-info-circle"},QA={key:1,class:"tui-icon ti-check-circle"},YA={key:2,class:"tui-icon ti-alert-circle"},KA={key:3,class:"tui-icon ti-alert-triangle"},XA={key:2,class:"tui-tst-title"},ZA={class:"tui-tst-content"},JA={key:3,class:"tui-tst-close"},eu=Object.assign({name:"TuiToast"},{__name:"index",props:{title:String,...oa,showClose:{type:Boolean,default:!1}},setup(e,{expose:t}){const l=Pe({content:"",id:""}),a=e,i=g((()=>"error"==a.type?"danger":a.type)),{offsetX:o,offsetY:n}=a.tuiService.$aToast.value,s=S(!1);K((()=>a.tuiService.$gEscCounter.value),(e=>{e&&!a.calledByFlash&&r()}));const r=()=>{he.c(a.id),a.destroy()},d=g((()=>pe("cpt-tst",{ofsX:o,ofsY:n}))),c=S({tuiService:a.tuiService,appearance:"background",type:i,tone:g((()=>a.tone)),transparent:g((()=>a.transparent)),backgroundBlur:g((()=>a.backgroundBlur)),hasShadow:g((()=>a.hasShadow)),shadowColor:g((()=>a.shadowColor)),...a.typedConfig});return ye((()=>{a.calledByFlash||a.tuiService.$gSound.value&&a.tuiService.audio.play("popupB"),s.value=!0,l.content=a.content,a.tuiService.$aToast.value.visible=!0})),t({hide:()=>{s.value=!1,a.tuiService.$aToast.value.visible=!1},closeToast:r}),(t,l)=>(A(),Z(Me,{name:"slide-fade"},{default:W((()=>[we(ce(ul,Ne(c.value,{class:["tui-toast",`tst-${t.id}`,t.className&&`${t.className}`],style:d.value}),{default:W((()=>[t.icon||t.hideIcon?C("",!0):(A(),h(ie,{key:0},["info"==i.value||"primary"==i.value||"emphasis"==i.value?(A(),h("i",UA)):C("",!0),"success"==i.value?(A(),h("i",QA)):C("",!0),"warning"==i.value?(A(),h("i",YA)):C("",!0),"danger"==i.value?(A(),h("i",KA)):C("",!0)],64)),t.icon&&!t.hideIcon?(A(),h("i",{key:1,class:P(`tui-tst-icon ${t.icon}`)},null,2)):C("",!0),e.title?(A(),h("span",XA,F(e.title),1)):C("",!0),u("span",ZA,F(t.content),1),e.showClose?(A(),h("div",JA,[u("i",{class:"tui-icon ti-times",onClick:r})])):C("",!0)])),_:1},16,["class","style"]),[[Oe,s.value]])])),_:1}))}});Pe([]);let Qt=null;const tu=(e,t)=>{const{$tService:l,$tAttentionDispatcher:a}=t.config.globalProperties,{duration:i}=l.$aToast.value,{show:o,currentChannel:n}=l.$aDispatcher.value,{$optFloaterTo:A}=l,s=e.appendTo||A.value;if(o||a(e),n&&"toast"!=n&&!e.calledByFlash)return void l.$aDispatcher.value.queue.push({...e,attentionType:"toast"});const r=document.createElement("div"),u=xe("tostdir"),d=()=>{Qt?.component.exposed.hide(),Qt=null,setTimeout((()=>{gt(null,r),Qe(e.onClose).includes("function")&&e.onClose()}),500)};return Qt&&Xn(),Qt=Mt(eu,{...e,id:u,destroy:d,tuiService:l}),gt(Qt,r),(Ze.el(s)||Ze.el("#tuiRoot")).appendChild(r.firstElementChild),e.calledByFlash||he.s(u,d,e.duration||i||3e3),{destroy:d}},Xn=()=>{Qt&&Qt.component.exposed.closeToast()},lu={class:"tui-fls-qtext"},au=Object.assign({name:"TuiFlash"},{__name:"index",props:{...oa},setup(e,{expose:t}){const{proxy:l}=ut(),a=e,i=g((()=>"error"==a.type?"danger":a.type)),o=g((()=>{const{blurRadius:e}=a.tuiService.$aFlash.value;return a.blurRadius||e})),n=g((()=>{const{spreadRadius:e}=a.tuiService.$aFlash.value;return a.spreadRadius||e})),s=g((()=>{const{queuePosition:e}=a.tuiService.$aFlash.value;return a.queuePosition||e})),r=g((()=>{const{queueOffset:e}=a.tuiService.$aFlash.value;return a.queueOffset||e})),d=S(!1),c=g((()=>pe("cpt-fls",{blurR:o.value,spreadR:n.value,offset:r.value})));return ye((()=>{a.tuiService.audio.play("dindonB",!0,a.id,600),d.value=!0,a.tuiService.$aFlash.value.visible=!0})),t({hide:()=>{a.tuiService.audio.stop(a.id),d.value=!1,a.tuiService.$aFlash.value.visible=!1},closeFlash:()=>{he.c(a.id),a.destroy()}}),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["tui-flash",`is-${i.value}`,`fls-${e.id}`,`is-ani-${e.aniType}`,e.className&&`${e.className}`]),style:fe(c.value)},[f(kt).length>1?(A(),h("div",{key:0,class:P(["tui-fls-queue",`is-pos-${s.value}`])},[(A(!0),h(ie,null,ze(f(kt),((e,t)=>(A(),h("div",{class:P(["tui-fls-qitem",`is-${e.type}`])},[u("span",lu,F(t+1),1)],2)))),256))],2)):C("",!0)],6),[[Oe,d.value]])])),_:1}))}}),kt=Pe([]);let Ut=null,jl=null;const Zn=(e,t)=>{Qe(e.onClose).includes("function")&&(e.onFlashClose=e.onClose,delete e.onClose);const{$tService:l,$tNotifyCloseAll:a,$tMessageCloseAll:i,$tToastClose:o,$tMessage:n,$tToast:A,$tAttentionDispatcher:s}=t.config.globalProperties,{show:r,currentChannel:u}=l.$aDispatcher.value,{$optFloaterTo:d}=l,c=e.appendTo||d.value;if(r||s(e),u&&"flash"!=u)return void l.$aDispatcher.value.queue.push({...e,attentionType:"flash"});const p=document.createElement("div"),g=xe("flashdir"),f=()=>{Ut?.component?.exposed.hide(),Ut=null,jl=null,gt(null,p),kt.splice(0,1),l.$aFlash.value.queueLength=kt.length,kt.length>0&&Zn(kt[0],t)};e.onClose=f,e.calledByFlash=!0,e.showClose=!0,e.grouping=!0;return Ut?Ut.props.content==e.content?"message"==e.appearance&&n(e):(-1===kt.findIndex((t=>t.content===e.content))&&kt.push(e),l.$aFlash.value.queueLength=kt.length):(-1===kt.findIndex((t=>t.content===e.content))&&kt.push(e),l.$aFlash.value.queueLength=kt.length,jl="message"==e.appearance?n(e):A(e),Ut=Mt(au,{...e,id:g,destroy:f,tuiService:l}),gt(Ut,p),(Ze.el(c)||Ze.el("#tuiRoot")).appendChild(p.firstElementChild)),{destroy:f}},nu=()=>{0!=kt.length&&(kt.splice(0),jl?.destroy(),Ut.component.exposed.closeFlash())},ou={class:"tui-adisp-icon"},iu={class:"tui-adisp-count"},su={class:"tui-adisp-debug"},ru=Object.assign({name:"TuiAttentionDispatcher"},{__name:"index",props:{tuiService:Object,destroy:Function,globalProperties:Object,id:{type:String,required:!0}},setup(e,{expose:t}){const l=xe("attentionDisp"),a=Pe({messageCounter:0,notificationCounter:0,toastShow:!1,falshShow:!1,falshQueue:0,dispatchStart:!1}),i=e,{$tMessage:o,$tNotify:n,$tToast:s,$tFlash:r,$tMessageCloseAll:d,$tNotifyCloseAll:c,$tToastClose:p}=i.globalProperties,{$aDispatcher:v,$aFlash:m,$aToast:y,$aNotification:b,$aMessage:V}=i.tuiService,{visible:w,debug:q,offset:x,position:C,currentChannel:k,queue:B}=Ye(v.value);K((()=>V.value.counter),(e=>{m.value.queueLength>0||(a.messageCounter=e,e>0&&(v.value.currentChannel="message"))}),{immediate:!0}),K((()=>b.value.counter),(e=>{a.notificationCounter=e,e>0&&(v.value.currentChannel="notification")}),{immediate:!0}),K((()=>y.value.visible),(e=>{m.value.queueLength>0||(a.toastShow=e,e&&(v.value.currentChannel="toast"))}),{immediate:!0}),K((()=>m.value.visible),(e=>{a.falshShow=e}),{immediate:!0}),K((()=>m.value.queueLength),(e=>{a.falshQueue=e,e>0&&(v.value.currentChannel="flash")}),{immediate:!0}),K((()=>B.value),(e=>{e.find((e=>"flash"===e.attentionType))&&(a.dispatchStart=!0,he.s("queueWatch",(()=>{switch(k.value){case"message":d();break;case"notification":c();break;case"toast":p();break}de((()=>{$()}))}),1e3))}),{deep:!0});const T=g((()=>{const e=V.value.counter>0,t=b.value.counter>0,l=m.value.queueLength>0,i=y.value.visible;return!!(e||t|i||l)||(v.value.currentChannel=null,!a.dispatchStart&&0==a.falshQueue&&(B.value.length>0?(a.dispatchStart=!0,$()):N.value&&M()),!1)})),$=()=>{const e=B.value.find((e=>"flash"===e.attentionType))||B.value[0];if(e){let t=R(B.value,e.attentionType);t.length>0&&z(t,e.attentionType)}},z=(e,t)=>{let i=0;Lt.s(l+"_tInter",(()=>{if(i>=e.length)return a.dispatchStart=!1,void Lt.c(l+"_tInter");"message"==t?o(e[i]):"notification"==t?n(e[i]):"toast"==t?s(e[i]):"flash"==t&&r(e[i]),i++}),"toast"==t?2e3:500)},R=(e,t)=>{const l=[],a=[];for(let i=0;i<e.length;i++)e[i].attentionType===t&&(l.push(e[i]),a.push(i));for(let t=a.length-1;t>=0;t--)e.splice(a[t],1);return l},N=S(!1),M=()=>{i.destroy()},O=g((()=>pe("cpt-adisp",{offset:x.value})));return ye((()=>{N.value=!0})),t({hide:()=>{N.value=!1},closeDispatcher:M}),(t,l)=>we((A(),h("div",{class:P(["tui-attention-dispatcher",`adisp-${e.id}`,`is-pos-${f(C)}`,f(B).length>0?"is-queue":"is-empty",f(w)?"is-visible":"is-invisible"]),style:fe(O.value)},[ce(Me,{name:"fade"},{default:W((()=>[we(u("div",ou,[l[0]||(l[0]=u("i",{class:"tui-icon ti-bell"},null,-1)),u("span",iu,F(f(B).length),1)],512),[[Oe,f(B).length>0]])])),_:1}),we(u("div",su,[u("p",null,"messageCounter:"+F(a.messageCounter),1),u("p",null,"notificationCounter:"+F(a.notificationCounter),1),u("p",null,"toastShow:"+F(a.toastShow),1),u("p",null,"falshShow:"+F(a.falshShow),1),u("p",null,"falshQueue:"+F(a.falshQueue),1),u("p",null,"attentionOn:"+F(T.value),1),u("p",null,"currentChannel:"+F(f(k)),1),u("p",null,"queueLenght:"+F(f(B).length),1)],512),[[Oe,f(q)]])],6)),[[Oe,N.value]])}});let ll=null;const Au=(e,t)=>{if(ll)return;const{$tService:l}=t.config.globalProperties,{$optFloaterTo:a}=l,i=e.appendTo||a.value,o=document.createElement("div"),n=xe("attdispdir"),A=()=>{ll?.component.exposed.hide(),ll=null,setTimeout((()=>{gt(null,o)}),500)};return ll=Mt(ru,{id:n,destroy:A,tuiService:l,globalProperties:t.config.globalProperties}),gt(ll,o),(Ze.el(i)||Ze.el("#tuiRoot")).appendChild(o.firstElementChild),{destroy:A}},uu=()=>{ll.component.exposed.closeDispatcher()},cu={install(e){e.config.globalProperties.$tMessage=t=>zA(t,e),e.config.globalProperties.$tMessageCloseAll=()=>NA(),e.config.globalProperties.$tNotify=t=>FA(t,e),e.config.globalProperties.$tNotifyCloseAll=()=>HA(),e.config.globalProperties.$tToast=t=>tu(t,e),e.config.globalProperties.$tToastClose=()=>Xn(),e.config.globalProperties.$tFlash=t=>Zn(t,e),e.config.globalProperties.$tFlashClose=()=>{0!=kt.length&&(kt.splice(0),jl?.destroy(),Ut.component.exposed.closeFlash())},e.config.globalProperties.$tAttentionDispatcher=t=>Au(t,e),e.config.globalProperties.$tAttentionDispatcherClose=()=>{ll.component.exposed.closeDispatcher()}}},du={class:"tui-lodf-inner"},fu={key:0,class:"svg-icon spinner-full"},pu={class:"desc"},Jn=Object.assign({name:"TuiLoadingFull"},{__name:"LoadingFull",props:{size:Number,color:String,update:Boolean,zIndex:Number,tuiService:Object,tMask:Function,tMaskClose:Function,destroy:Function,dynamicRender:{type:Boolean,default:!1},desc:{type:String,default:""},modelValue:{type:Boolean,default:!0},appendTo:{type:String,default:null}},emits:["update:modelValue"],setup(e,{expose:t,emit:l}){const{proxy:a}=ut(),{$tState:i,$tService:o,$tMask:n,$tMaskClose:s}=a,r=S(!1),d=xe("loadFull"),c=e,p=l,f=S(!0),v=g((()=>c.modelValue)),m=g((()=>c.dynamicRender?c.tMask:n)),y=g((()=>c.dynamicRender?c.tMaskClose:s)),b=g((()=>c.dynamicRender?c.tuiService:o)),V=g((()=>b.value.$tState.spinnerConfig)),w=g((()=>c.color||V.value.full.color)),x=g((()=>c.size||V.value.full.size)),k=g((()=>pe("cpt-lodf",{...q("fc",w.value),...q("size",x.value,"px"),...q("z",c.zIndex)}))),B=g((()=>c.desc?c.desc:b.value.i18n("common.loading"))),T=(e=!0)=>{e&&p("update:modelValue",!1),y.value?.(d),r.value=!1,c.dynamicRender&&he.s(d+"_tiInst",(()=>{c.destroy?.()}),1e3)};return ye((()=>{K(v,(e=>{e?(r.value=!0,he.c(d+"_ti"),m.value?.({owner:d,appendTo:c.appendTo,modelValue:!0,position:"fixed"})):T(!1)}),{immediate:!0}),f.value=!1,c.color&&c.update&&(V.value.full.color=c.color),c.size&&c.update&&(V.value.full.size=c.size),Ze.el("#styleSpinners")||b.value.initSpinner()})),Dt((()=>{he.c(d+"_ti"),he.c(d+"_tiInst")})),At((()=>{f.value=!0})),t({destroy:()=>T()}),(t,l)=>!f.value||e.dynamicRender?(A(),Z(Tt,{key:0,to:e.appendTo,disabled:f.value||e.dynamicRender||!e.appendTo,fallback:"#app"},[ce(Me,{name:"fade"},{default:W((()=>[r.value||e.dynamicRender?we((A(),h("div",{key:0,class:P(["tui-loading-full",{"is-ani-on":r.value,"is-ani-off":!r.value}]),style:fe(k.value)},[u("div",du,[r.value||e.dynamicRender?(A(),h("i",fu)):C("",!0),u("div",pu,F(B.value),1)])],6)),[[Oe,r.value]]):C("",!0)])),_:1})],8,["to","disabled"])):C("",!0)}});let mt=null;const gu=e=>{let t=null;return"string"==Qe(e.appendTo)?t=Ze.el(e.appendTo):"htmldivelement"==Qe(e.appendTo)&&(t=e.appendTo),t||Ze.el("#app")},hu=e=>({close:()=>to(),update:(t={})=>eo(t,e)}),eo=(e={},t)=>{const{$tService:l,$tMask:a,$tMaskClose:i}=t.config.globalProperties;if(!mt){const e=document.createElement("div");mt={container:e,destroy:()=>{gt(null,e),mt=null},controller:hu(t),options:{},rootDom:null}}mt.options={...mt.options,...e},mt.rootDom=gu(mt.options);const o=Mt(Jn,{...mt.options,modelValue:mt.options.modelValue??mt.options.visible??!0,destroy:mt.destroy,dynamicRender:!0,tuiService:l,tMask:a,tMaskClose:i,appendTo:null});gt(o,mt.container);const n=mt.container.firstElementChild||mt.container._vnode?.el;return n&&mt.rootDom&&n.parentNode!==mt.rootDom&&mt.rootDom.appendChild(n),mt.controller},to=()=>{mt&&mt.container?._vnode?.component?.exposed?.destroy?.()},vu={install(e){e.config.globalProperties.$tLoading=t=>eo(t,e),e.config.globalProperties.$tLoadingClose=()=>to()}},lo=Object.assign({name:"TuiMask"},{__name:"index",props:{modelValue:{type:Boolean,default:!1},dynamicRender:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},mode:{type:String,default:"full",validator:e=>["full","area"].includes(e)},areaColorReverse:{type:Boolean,default:!1},areaBorderRadius:Number,areaBlur:{type:String,default:"auto",validator:e=>["auto","always","none"].includes(e)},appendTo:[String,Object],destroy:Function,click:Function,tuiService:Object,zIndex:Number,transition:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{expose:t,emit:l}){const{proxy:{$tState:a,$tService:i}}=ut(),o=e,n=l,s=S(!1),r=g((()=>o.modelValue));K(r,(e=>{de((()=>{s.value=e}))}),{immediate:!0});const u=()=>{o.click?.()},d=g((()=>pe("cpt-msk",{...q("z",o.zIndex),...q("bdra",o.areaBorderRadius,"px")}))),c=g((()=>o.dynamicRender?o.tuiService:i)),p=g((()=>c.value.$tState.globalConfig.maskBlur));return ye((()=>{})),t({destroy:()=>((e=!0)=>{e&&n("update:modelValue",!1),s.value=!1,he.s("maskInst",(()=>{o.destroy?.()}),500)})()}),(t,l)=>(A(),Z(Me,{name:"fade",disabled:!e.transition},{default:W((()=>[!e.dynamicRender&&r.value||e.dynamicRender?we((A(),h("div",{key:0,class:P(["tui-mask","is-bg-"+(p.value?"blur":"trans"),"is-mask-"+(e.modal?"on":"off"),`is-${e.mode}`,"area"==e.mode&&"is-bg-"+(e.areaColorReverse?"reverse":"normal"),"area"==e.mode&&`is-area-blur-${e.areaBlur}`]),onClick:u,style:fe(d.value)},null,6)),[[Oe,e.dynamicRender&&s.value||!e.dynamicRender]]):C("",!0)])),_:1},8,["disabled"]))}});let dt=null;const mu=(e,t)=>{const{$optFloaterTo:l}=t,a=e.appendTo||l.value;return Ze.el(a)||Ze.el("#tuiRoot")},yu=e=>({close:e=>no(e),update:(t={})=>ao(t,e)}),ao=(e={},t)=>{const{$tService:l}=t.config.globalProperties,a=e.owner||e.source||null;if(!dt){const e=document.createElement("div"),l=()=>{gt(null,e),dt=null},i=yu(t);dt={container:e,app:t,destroy:l,controller:i,owner:a,options:{},rootDom:null}}dt.owner=a,dt.options={...dt.options,...e},dt.rootDom=mu(dt.options,l);const i=Mt(lo,{...dt.options,modelValue:dt.options.modelValue??dt.options.visible??!0,tuiService:l,destroy:dt.destroy,dynamicRender:!0});gt(i,dt.container);const o=dt.container.firstElementChild||dt.container._vnode?.el;return o&&dt.rootDom&&o.parentNode!==dt.rootDom&&dt.rootDom.appendChild(o),dt.controller},no=(e=null)=>{!dt||e&&dt.owner&&e!==dt.owner||dt.container?._vnode?.component?.exposed?.destroy?.()},bu={install(e){e.config.globalProperties.$tMask=t=>ao(t,e),e.config.globalProperties.$tMaskClose=e=>no(e)}},Vu=["id"],wu=Object.assign({name:"TuiPopinst"},{__name:"popinst",props:{...qa,popinstSize:Number,content:String,showTrigger:{type:Boolean,default:!0}},setup(e,{expose:t}){const l=Pe({index:0,id:"",x:0,y:0}),a=e,{$optFloaterTo:i}=a.tuiService;g((()=>a.appendTo||i.value));const o=g((()=>{const{popinstSize:e,showTrigger:t,popPanelConfig:l,...i}=a;return{...i,popPanelConfig:{...l||{},closeOnClickOutside:!1,maxInstances:l?.maxInstances??a.tuiService?.$popoverConfig?.value?.maxLength??5}}})),n=g((()=>a.appearance)),s=S(!1),r=S(!1),d=S(null),c=()=>{let e=a.instances.findIndex((e=>e.component.props.id===a.id));l.index=e};K((()=>a.instances),(()=>{c()}),{deep:!0});const p=g((()=>pe("cpt-pinst",{...q("z",a.zIndex),...q("size",a.popinstSize,"px"),x:l.x+"px",y:l.y+"px"})));return ye((()=>{const{offsetX:e,offsetY:t}=a.event;l.x=e,l.y=t,c(),s.value=!0,r.value=!0})),t({hide:()=>{r.value=!1,he.c("leave-"+a.id)},updateIndex:c,closePopinst:(e,t=!1)=>{he.c(a.id),a.destroy(t)}}),(t,i)=>(A(),h(ie,null,[ce(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["tui-popinst",`popinst-${t.type}`,`popinst-${t.id}`,`popinst-index-${l.index}`,"popinst-"+(t.transparent?"trans":"plain"),"popinst-"+(e.showTrigger?"showTrigger":"hideTrigger"),t.className]),ref_key:"popinstRef",ref:d,style:fe(p.value),id:"popinst-"+t.id},null,14,Vu),[[Oe,r.value]])])),_:1}),s.value?(A(),Z(ct("popTip"==n.value&&na||"popInfo"==n.value&&t.PopInfo),Ne({key:0},o.value,{id:t.id,defaultOn:!0,eventTarget:d.value}),{content:W((()=>[(A(),Z(ct(a.component)))])),_:1},16,["id","eventTarget"])):C("",!0)],64))}}),Gt=Pe([]),Cu=(e,t)=>{const{autoClose:l=!0,disabled:a=!1}=e;if(a)return;const{$tService:i}=t.config.globalProperties,{$popoverConfig:o}=i,n=o.value||{},A=e.duration??n.duration??5e3,s=e.appearance??n.appearance??"popTip",r=e.maxLength??n.maxLength??5,u=e.event.target;let d=u;if(u){const{target:t,currentTarget:l}=e.event;if(t!=l)return}let c=null,p=!1,g=!1;const f=document.createElement("div"),v=xe("popInstDir");f.id=v+"_wrap",f.className="popinst-outer";const h=(t=!1)=>{if(p)return;p=!0,g=!1,he.c(v+"_autoH");const l=Gt.indexOf(c);-1!==l&&!t&&Gt.splice(l,1),gt(null,f),d?.contains?.(f)&&d.removeChild(f),Qe(e.onClose).includes("function")&&e.onClose()},m=(e=!1,t=!1)=>{if(!p&&!g){if(g=!0,t)return void h(e);c?.component?.exposed?.hide?.(),setTimeout((()=>h(e)),500)}};return Gt.length>=r&&$u(),c=Mt(wu,{...e,duration:A,appearance:s,id:v,destroy:m,tuiService:i,instances:Gt}),Gt.push(c),d.appendChild(f),gt(c,f),l&&he.s(v+"_autoH",(()=>m()),A),{destroy:m}},$u=()=>{const e=Gt[0];e&&e.component.exposed.closePopinst(null,!0)},ku=()=>{Gt.length>0&&[...Gt].forEach((e=>{e.component.exposed.closePopinst(null,!0)}))},Su={install(e){e.config.globalProperties.$tPopover=t=>Cu(t,e),e.config.globalProperties.$tPopoverCloaseAll=()=>{Gt.length>0&&[...Gt].forEach((e=>{e.component.exposed.closePopinst(null,!0)}))}}},qu={class:"tui-control-panel",id:"controlPanel"},Tu={class:"tui-cp-title"},Bu={class:"tui-cp-desc"},xu={class:"tui-cp-content"},Pu={class:"tui-cp-item-title"},Ru={class:"tui-cp-item-content"},zu={class:"tui-cp-color-view"},Nu=Object.assign({name:"TuiControlPanel"},{__name:"index",setup(e){const{proxy:{isActAdvFeatures:t}}=ut(),{$tState:l,$t3dConfig:a,themeToggle:i,switchLang:o,$globalConfig:n,i18n:s,tConsolei18n:r,$deviceInfo:d,$gLang:c,$gLocaleReady:p}=Se("$global",null),v=g((()=>l.controlPanel.modal)),m=g((()=>l.controlPanel.width)),y=S(!1),b=S([]),V=[{label:"简中",value:"zh-CN"},{label:"繁中",value:"zh-TW"},{label:"EN",value:"en"}],w=V.map((e=>e.value)),q=()=>({lang:!1,langs:w,...l.controlPanel.options||{}}),x=()=>{const{langs:e}=q(),t=V.filter((t=>e.includes(t.value)));return t.length>0?t:V},k=()=>{const e=q(),t=t=>!1!==e[t];return[{label:"theme",hide:!t("theme"),value:"light",type:"theme",children:[],title:s("controlPanel.label.theme")},{label:"lang",hide:!t("lang"),type:"radio",value:"zh-CN",title:s("controlPanel.label.lang"),children:x()},{label:"t3D",hide:!t("t3D"),type:"switch",value:!0,title:s("controlPanel.label.t3D")},{label:"maskBlur",hide:!t("maskBlur"),type:"switch",value:!0,title:s("controlPanel.label.maskBlur")},{label:"transition",hide:!t("transition"),type:"switch",value:!0,title:s("controlPanel.label.transition")},{label:"sound",hide:!t("sound"),type:"switch",value:!0,title:s("controlPanel.label.sound")},{label:"adaptive",hide:!t("adaptive"),type:"radio",value:"extension",title:s("controlPanel.label.adaptive"),children:[{label:s("controlPanel.label.ad_extension"),value:"extension"},{label:s("controlPanel.label.ad_flexible"),value:"flexible"},{label:s("controlPanel.label.ad_fixed"),value:"fixed"},{label:s("controlPanel.label.ad_stretch"),value:"stretch"},{label:s("controlPanel.label.ad_disabled"),value:"disabled"}]},{label:"floaterTo",hide:!t("floaterTo"),type:"radio",value:"#tuiAdpt",title:s("controlPanel.label.floaterTo"),children:[{label:s("controlPanel.label.ft_adpt"),value:"#tuiAdpt"},{label:s("controlPanel.label.ft_root"),value:"#tuiRoot"}]},{label:"resizeBy",hide:!t("resizeBy"),type:"radio",value:"self",title:s("controlPanel.label.resizeBy"),children:[{label:s("controlPanel.label.rb_self"),value:"self"},{label:s("controlPanel.label.rb_root"),value:"root"}]},{label:"background",hide:!t("background"),type:"radio",value:"all",title:s("controlPanel.label.background"),children:[{label:s("controlPanel.label.bg_all"),value:"all"},{label:s("controlPanel.label.bg_view"),value:"view"},{label:s("controlPanel.label.bg_root"),value:"root"},{label:s("controlPanel.label.bg_none"),value:"none"}]},{label:"menuTrigger",hide:!t("menuTrigger"),type:"radio",value:"click",title:s("controlPanel.label.menuTrigger"),children:[{label:s("controlPanel.label.mt_click"),value:"click"},{label:s("controlPanel.label.mt_hover"),value:"hover"}]}]},B=()=>{const e=l.controlPanel.extension;$.visibleItems=[],$.settings.forEach(((e,t)=>{let l=n.value[e.label];typeof l<"u"&&(e.value=l),e.hide||$.visibleItems.push(e.label)})),$.visibleItems=[...new Set($.visibleItems)];let t=["label","type","value","title","tipContent"];e.forEach(((e,l)=>{if(t.every((t=>t in e))){if(!$.visibleItems.includes(e.label)){let t=n.value[e.label];typeof t<"u"&&(e.value=t),$.settings.push(e)}}else r("warning","controlExtension","warn.controlExtension")}))},T=()=>{let e=Ql.loadIndex();e&&e.length>0&&(e.forEach((e=>{e.label=s(`theme.${e.value}`)+" - "+s(`theme.${e.scheme}`)})),z({label:"theme",key:"children",value:e}),1==e.length&&z({label:"theme",key:"hide",value:!0}))},$=Pe({visibleItems:[],settings:k(),drawerConfig:{direction:"rtl",padding:0,zIndex:3e3,showClose:!1}}),z=e=>{const{label:t,key:l,value:a}=e,i=$.settings.find((e=>e.label===t));i?i[l]=a:console.error(`Error: Item with label '${t}' not found.`)},R=()=>{const e=k(),t=new Set(e.map((e=>e.label))),l=new Map($.settings.map((e=>[e.label,e])));e.forEach((e=>{const t=l.get(e.label);t&&(e.value=t.value,"theme"===e.label&&Array.isArray(t.children)&&t.children.length>0&&(e.children=t.children))}));const a=$.settings.filter((e=>!t.has(e.label)));$.settings=[...e,...a],$.visibleItems=[]},N=async(e,t)=>{if("theme"==t.type){let l=t.children.filter((t=>t.value==e))[0];i(e,l.scheme)}else"lang"==t.label?await o(e):l.globalConfig[t.label]=e};K((()=>l.controlPanel.visible),(e=>{y.value=e,e&&(R(),B(),T())})),K((()=>l.adaptiveConfig.inited),(e=>{const t=!1!==q().adaptive;if(e)z({label:"adaptive",key:"hide",value:!t});else{if(l.adaptiveConfig.ready)return;z({label:"adaptive",key:"hide",value:!0})}}),{immediate:!0}),K((()=>l.globalConfig.adaptive),(e=>{const t=!1!==q().floaterTo;"disabled"!=e&&t?z({label:"floaterTo",key:"hide",value:!1}):(z({label:"floaterTo",key:"hide",value:!0}),b.value.forEach((e=>e.scrollTo(0,!1))))}),{immediate:!0}),K([()=>c.value,()=>p.value],(([,e])=>{e&&(R(),B(),T())}),{immediate:!0}),K((()=>d.value.browser),(e=>{const t=!1!==q().transition;z("webkit"==e&&t?{label:"transition",key:"hide",value:!1}:{label:"transition",key:"hide",value:!0})})),K((()=>a.value.inited),(e=>{const t=!1!==q().t3D;z(e&&t?{label:"t3D",key:"hide",value:!1}:{label:"t3D",key:"hide",value:!0})})),K((()=>y.value),(e=>{e||(l.controlPanel.visible=!1)}));const M=()=>{y.value=!1,l.controlPanel.visible=!1},O=e=>s(`controlPanel.tip.${e.label}`);return Al((()=>{M()})),ye((()=>{t||z({label:"t3D",key:"hide",value:!0}),R(),B(),T()})),(e,t)=>{const a=ke("TuiPopTip"),i=ke("TuiRadioItem"),o=ke("TuiRadio"),n=ke("TuiVirtualScroller"),r=ke("TuiToggle"),d=ke("TuiDrawer");return A(),Z(d,Ne({modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value=e)},$.drawerConfig,{modal:v.value,size:m.value}),{default:W((()=>[u("div",qu,[u("div",Tu,[u("span",Bu,F(f(s)("controlPanel.title")),1),u("span",{class:"tui-cp-close",onClick:M},[...t[1]||(t[1]=[u("i",{class:"tui-icon ti-times"},null,-1)])])]),u("div",xu,[(A(!0),h(ie,null,ze($.settings,((e,s)=>(A(),h(ie,null,[e.hide?C("",!0):(A(),h("div",{key:0,class:P(["tui-cp-item",`is-type-${e.type}`])},[u("div",Pu,[De(F(e.title||e.label)+" ",1),ce(a,{content:e.tipContent||O(e),maxWidth:m.value-20,placement:"top",zIndex:9e3,delay:500},{default:W((()=>[...t[2]||(t[2]=[u("i",{class:"tui-icon ti-info-circle"},null,-1)])])),_:1},8,["content","maxWidth"])]),u("div",Ru,["theme"==e.type?(A(),Z(o,{key:0,class:"tui-cp-theme-radio",defaultIcon:!1,onChange:t=>N(t,e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:W((()=>[(A(!0),h(ie,null,ze(e.children,((e,l)=>(A(),Z(i,{value:e.value||e.label,key:e.label},{default:W((()=>[ce(a,{content:e.label,maxWidth:m.value-20,delay:500,zIndex:9e3},{default:W((()=>[u("div",zu,[t[3]||(t[3]=u("i",{class:"tui-icon ti-check"},null,-1)),(A(!0),h(ie,null,ze(e.colors,((e,t)=>(A(),h("div",{class:"tui-cp-color-item",style:fe(`background-color:${e}`),key:e.label},null,4)))),128))])])),_:2},1032,["content","maxWidth"])])),_:2},1032,["value"])))),128))])),_:2},1032,["onChange","modelValue","onUpdate:modelValue"])):C("",!0),e.children?.length>2&&"radio"==e.type?(A(),Z(n,{key:1,ref_for:!0,ref_key:"scrollerRef",ref:b,border:"auto",controlType:"button",buttonSize:"small",showPagination:!1},{default:W((()=>[ce(o,{size:"small",defaultIcon:!1,appearance:"button",onChange:t=>N(t,e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:W((()=>[(A(!0),h(ie,null,ze(e.children,((e,t)=>(A(),Z(i,{value:e.value||e.label,key:e.label},{default:W((()=>[De(F(e.label),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["onChange","modelValue","onUpdate:modelValue"])])),_:2},1536)):C("",!0),e.children?.length<=2&&"radio"==e.type?(A(),Z(o,{key:2,size:"small",defaultIcon:!1,appearance:"button",onChange:t=>N(t,e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:W((()=>[(A(!0),h(ie,null,ze(e.children,((e,t)=>(A(),Z(i,{value:e.value||e.label,key:e.label},{default:W((()=>[De(F(e.label),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["onChange","modelValue","onUpdate:modelValue"])):C("",!0),"switch"==e.type?(A(),Z(r,{key:3,onChange:t=>(e=>{l.globalConfig[e.label]=e.value})(e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,appearance:"toggleRect",size:"small"},null,8,["onChange","modelValue","onUpdate:modelValue"])):C("",!0)])],2))],64)))),256))])])])),_:1},16,["modelValue","modal","size"])}}}),Iu=e=>{const{chart:t,common:l,scroll:a,font:i,scifi:o}=e,{bg:n,bd:A,bg_layer:s,bd_layer:r}=l,{track:u,thumb:d,track_layer:c,thumb_layer:p}=a,{line:{weak:g,base:f,strong:v},bubble:{fc:h,bg:m,hlite:y},map:{fc:b,fc_hov:V,fc_act:w,bg:q,bd:x,bg_hov:S,bd_hov:C,bg_act:k,bd_act:B,glow:T,shadow:P},palette:$,visual:z}=t,{hlite:R,focus:N}=o,{weaker:M,weak:O,base:D,strong:I,stronger:W}=i;let _=Ke.scale($,6,"lch");const F={color:_,textStyle:{},title:{textStyle:{color:D},subtextStyle:{color:O}},line:{label:{color:"inherit",textBorderColor:n,textBorderWidth:5},itemStyle:{borderWidth:"2"},lineStyle:{width:"3"},symbolSize:"7",symbol:"emptyCircle",smooth:!0},radar:{splitLine:{lineStyle:{show:!0,color:f,type:"dashed"}},axisLine:{show:!0,lineStyle:{color:f,type:"dashed"}},axisName:{show:!0,color:D},splitArea:{areaStyle:{color:[g,n]}},symbolSize:"7",symbol:"emptyCircle",markLine:{label:{color:"inherit",textBorderColor:n,textBorderWidth:5}},smooth:!0},sunburst:{itemStyle:{borderColor:g,borderWidth:2},levels:[{},{itemStyle:{borderColor:g,borderWidth:2}}]},bar:{label:{color:D},itemStyle:{barBorderWidth:0,barBorderColor:g},markLine:{label:{color:"inherit",textBorderColor:n,textBorderWidth:5}}},pie:{label:{color:D},itemStyle:{borderWidth:0,borderColor:n}},scatter:{label:{show:!0,color:h},emphasis:{labele:{fontWeight:"bold"}},itemStyle:{color:{type:"radial",x:.3,y:.3,r:.5,colorStops:[{offset:0,color:y},{offset:1,color:m}],global:!1},borderWidth:0,borderColor:g}},boxplot:{itemStyle:{borderWidth:0,borderColor:g}},parallel:{itemStyle:{borderWidth:0,borderColor:g}},sankey:{itemStyle:{borderWidth:0,borderColor:g}},funnel:{itemStyle:{borderWidth:0,borderColor:g}},gauge:{itemStyle:{borderWidth:0,borderColor:v},axisLine:{show:!0,lineStyle:{color:[[1,g]]}},axisTick:{show:!0,lineStyle:{color:v}},axisLabel:{show:!0,color:D},splitLine:{show:!0,lineStyle:{color:v}},detail:{color:D}},graph:{itemStyle:{borderWidth:0,borderColor:g},lineStyle:{width:1,color:f},symbolSize:"7",symbol:"circle",smooth:!0,color:_,label:{color:D}},map:{itemStyle:{areaColor:q,borderColor:x,borderWidth:.5},label:{color:D},emphasis:{itemStyle:{areaColor:S,borderColor:x,borderWidth:1},label:{color:D}}},geo:{scaleLimit:{min:.5,max:7},itemStyle:{areaColor:q,borderColor:x,shadowColor:P,shadowOffsetY:0,shadowBlur:5,borderWidth:.5},label:{show:!0,fontSize:12,color:b},emphasis:{itemStyle:{areaColor:S,borderColor:C,borderWidth:1},label:{fontSize:14,color:V}},select:{itemStyle:{areaColor:k,borderColor:B,borderWidth:1},label:{fontSize:14,color:w}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:f}},splitLine:{show:!1,lineStyle:{color:g}},axisTick:{show:!1,lineStyle:{color:g}},axisLabel:{show:!0,color:D},splitArea:{show:!1}},valueAxis:{nameTextStyle:{color:O},axisLine:{show:!0,lineStyle:{color:f}},axisTick:{show:!1,lineStyle:{color:g}},axisLabel:{show:!0,color:D},splitLine:{show:!0,lineStyle:{color:g}},splitArea:{show:!1}},logAxis:{axisLine:{show:!0,lineStyle:{color:f}},axisTick:{show:!1,lineStyle:{color:g}},axisLabel:{show:!0,color:D},splitLine:{show:!1,lineStyle:{color:g}},splitArea:{show:!1}},timeAxis:{axisLine:{show:!0,lineStyle:{color:f}},axisTick:{show:!1,lineStyle:{color:g}},axisLabel:{show:!0,color:D},splitLine:{show:!1,lineStyle:{color:g}},splitArea:{show:!1}},toolbox:{iconStyle:{borderColor:D},emphasis:{iconStyle:{borderColor:I}}},legend:{y:"bottom",x:"center",textStyle:{color:D},itemStyle:{borderColor:"transparent",borderWidth:1,opacity:1}},tooltip:{backgroundColor:n,textStyle:{color:D},axisPointer:{lineStyle:{color:D,width:1},crossStyle:{color:D,width:1}}},timeline:{symbol:"circle",progress:{itemStyle:{color:R,borderColor:"white",borderWidth:0},lineStyle:{color:R,shadowColor:"rgba(0, 0, 0, 0)"}},lineStyle:{color:N,width:1,shadowColor:"rgba(0, 0, 0, 0)"},itemStyle:{color:N,borderColor:"white",borderWidth:0},controlStyle:{color:M,borderColor:"white",borderWidth:0},checkpointStyle:{symbol:"circle",color:R,borderColor:"white",borderWidth:0,shadowColor:"rgba(0, 0, 0, 0)"},label:{color:D},emphasis:{itemStyle:{color:N},controlStyle:{color:D,borderWidth:0},label:{color:I}}},visualMap:{color:Ke.scale(z,4,"lch"),textStyle:{color:D},zlevel:10},dataZoom:{backgroundColor:n,fillerColor:Ke.fade(R,.1),borderColor:A,handleStyle:{color:s,borderColor:Ke.darken(r,.7)},dataBackground:{lineStyle:{color:N},areaStyle:{color:Ke.fade(N,.5)}},moveHandleSize:7,moveHandleStyle:{color:d},brushStyle:{color:N},textStyle:{color:D}}};return JSON.stringify(F)};async function Mu(e,t){if(t)try{const l=JSON.parse(Iu(t));e.registerTheme("eTheme",l)}catch(e){console.error("registerEchartsTheme: Failed to register theme",e)}else console.warn("registerEchartsTheme: themePalette is required!")}const Du=async()=>{const e=Ql.load();return e.length>0?e:(await import("@techui/themes/lightBlue"),Ql.load()||[])};function oo(e,t="",l={}){for(let a in e)if(e.hasOwnProperty(a)){let i=t?`${t}-${a}`:`--${a}`;"object"!=typeof e[a]||Array.isArray(e[a])?l[i]=e[a]:oo(e[a],i,l)}return l}const Ou=e=>{const t=["bg","bd","weakest","weaker","weak","base","strong","stronger","strongest"],l=[.1,.2,.3,.4,.5,.6,.7,.8,.9];for(let a in e)CSS.supports("color",e[a])&&t.includes(a)&&l.forEach((t=>{const l=`${a}_op${10*t}`,i=Ke.fade(e[a],t);CSS.supports("color",i)&&(e[l]=i)}))},_u=(e,t,l)=>{let a=xt.dpc(l);const i=["common","button","input","tone","primary","success","info","warning","danger","emphasis"];for(let e in a)i.includes(e)&&Ou(a[e]);let o=`color-scheme: ${e};${JSON.stringify(oo(a)).replace(/{|}|"/g,"").replace(/,--/g,";--")}`;la("Theme",t,`:root{${o}}`)},Eu=(e={})=>{const{threshold:t=15,resetInterval:l=1e3,onTrigger:a=(()=>{})}=e,i=xe("clickWatch"),o=S(0);let n=0;const A=e=>{const i=(new Date).getTime();i-n>l&&(o.value=0),o.value++,n=i,o.value>=t&&(a(),o.value=0)};return ye((()=>{We.add(window,"contextmenu",A,i,!1,!1),We.add(window,"touchstart",A,i,!1,!1)})),Dt((()=>{We.remove(window,"contextmenu",i,!1,!1),We.remove(window,"touchstart",i,!1,!1)})),{clickCount:o}},Lu=Object.assign({name:"TuiProvider"},{__name:"index-scifi",setup(e){const{proxy:t,proxy:{$tBus:l,$tState:a,$tService:i,$echarts:o,isActAdvFeatures:n,isActEchartsFeatures:s,isActAdminFeatures:r,$tPopover:u,$tPopoverCloaseAll:d,$tMask:c,$tMaskClose:p,$tLoading:g,$tLoadingClose:v,$tMessage:m,$tMessageCloseAll:y,$tNotify:b,$tNotifyCloseAll:V,$tToast:w,$tToastClose:q,$tFlash:x,$tFlashClose:k,$tAttentionDispatcher:B,$tAttentionDispatcherClose:T}}=ut(),{$gVersion:$,$globalConfig:z,$globalState:R,$globalParams:N,$viewTrans:M,$gPlatform:O,$deviceInfo:D,$gMaskBlur:I,$gTheme:W,$gThemeScheme:_,initI18n:F,getSysLang:E,cryptoStore:L,initBG:j,resetBG:G,$gBackground:H,resetAdaptiveConfig:Q,$adptInited:Y,$gTransition:Z,$gLocaleReady:U,$gResizeDebounce:J}=i;Eu({threshold:19,resetInterval:200,onTrigger:()=>{is()}});const ee=Nn(),te=ka(),le=S(!1),ae=S(!1),ie=S(!1),oe=xe("provider");K((()=>a.globalConfig.theme),((e,t)=>{be(e)})),K((()=>W.value),(e=>{hl.replace(Ze.el("body"),"theme-",e)}),{immediate:!0}),K((()=>_.value),(e=>{hl.replace(Ze.el("body"),"theme-scheme-",e)}),{immediate:!0}),K((()=>a.globalConfig.maskBlur),(e=>{hl.replace(Ze.el("body"),"mask-",e?"blur":"trans")}),{immediate:!0}),K((()=>a.globalConfig.adaptive),(e=>{"disabled"!=e||!Y.value||Q()}),{immediate:!0}),K((()=>a.globalConfig),(e=>{L.s("local","globalConfig",e)}),{deep:!0}),K((()=>H.value),(e=>{ie.value&&("none"!=e?j(null,"watch-$gBackground"):G())})),K((()=>a.backgroundConfig),(()=>{"none"!=H.value&&j(null,"watch-backgroundConfig")}),{deep:!0});const ne=async()=>{ae.value||!ie.value||(Q(),ae.value=!0,await de(),ae.value=!1)},Ae=()=>{window.location.reload()};window.softReload=ne,window.hardReload=Ae;const se=()=>{const{type:e,h:t,v:l,touchable:i,orientation:o,screenInvert:n,browser:A}=Ko();a.deviceInfo={type:e,resolutionH:t,resolutionV:l,touchable:i,orientation:o,screenInvert:n,browser:A}},re=(e,t="push")=>{const l={...te.query,...e};"push"===t?ee.push({query:l}):ee.replace({query:l})},ue=e=>e?Array.isArray(e)?e.reduce(((e,t)=>(e[t]=te.query[t],e)),{}):te.query[e]:te.query,ge=e=>{const t=e?.meta?.order;return"number"==Qe(t)?t:-1},fe=async({path:e,query:t,transTarget:l=null,transName:a=null,transDur:i=null,useOrder:o=!1,waitReady:n=!1,from:A=null})=>{const s=ee.resolve({path:e,query:t});if(te.fullPath===s.fullPath)return;if(a||l||i){let e;"layout"==l&&(e=M.value.altNames.layout),he(l,a||e,i)}if(o){const t=ee.currentRoute.value,l=ge(t),a=ee.resolve(e),i=ge(a);if(l>-1&&i>-1){const{altNames:{routerPre:e,routerNxt:t}}=M.value;i>l?he(null,t):i<l&&he(null,e)}}await de();const r=n?Xo():null;Ma({callback:async()=>{await ee.push({path:e,query:t}),await de(),n&&await r},enable:Z.value,freezeTarget:M.value.curTarget,complete:()=>{he()}})},ve=async(e,t)=>{!e||!t||(he("root",M.value.altNames.theme),await de(),Ma({callback:()=>{a.globalConfig.theme=e,a.globalConfig.themeScheme=t},enable:!0,freezeTarget:M.value.curTarget,complete:()=>{he()}}))},he=(e=null,t=null,l=null)=>{t&&(M.value.curName=t),e&&(M.value.curTarget=e),l&&(M.value.curDur=l),!t&&!e&&!l&&(M.value.curName=M.value.altNames.common,M.value.curTarget=M.value.altTarget,M.value.curDur=M.value.altDur),me()},me=()=>{const{blurSaturate:e,blurRange:t,initDur:l}=N.value,{curTarget:a,curName:i,curDur:o}=M.value;let n=pe("tui-global",{[`trs-${a}`]:i,blurSatur:e,blurRange:t+"px",initDur:l+"s",trsDur:o+"s"});la("GlobalParams",`vtName-${i};vtTraget-${a}`,`:root{${n}}`)},be=async e=>{s&&(R.value.echartsThemeInited=!1);let t=e,l=await Du(),i=l.find((e=>e.value===t));!i&&l.length>0&&(i=l[0],t=i.value,z.value.theme=i.value,z.value.themeScheme=i.scheme),a.themePalette=i.data,_u(_.value,t,i.data),ie.value||(ie.value=!0,R.value.themeInited=!0),j(null,"processTheme"),(async e=>{s&&o&&(await Mu(o,e),R.value.echartsThemeInited=!0)})(i.data)};Al((async()=>{rt("$global",{$tBus:l,proxy:t,updateRouteQuery:re,getRouteQuery:ue,routerTransition:fe,themeToggle:ve,...i,softReload:ne,hardReload:Ae,$tBus:l,$tState:a,$tService:i,$echarts:o,isActAdvFeatures:n,isActEchartsFeatures:s,isActAdminFeatures:r,$tPopover:u,$tPopoverCloaseAll:d,$tMask:c,$tMaskClose:p,$tLoading:g,$tLoadingClose:v,$tMessage:m,$tMessageCloseAll:y,$tNotify:b,$tNotifyCloseAll:V,$tToast:w,$tToastClose:q,$tFlash:x,$tFlashClose:k,$tAttentionDispatcher:B,$tAttentionDispatcherClose:T});let e=L.g("local","globalConfig");e&&(e.platform==O.value&&e.version==$.value?a.globalConfig=e:L.d("local","globalConfig")),z.value.lang||(z.value.lang=E()),await F(),be(W.value)}));const Ve=e=>{"F11"===e.key&&(e.preventDefault(),Ia.toggle()),"Escape"===e.key&&R.value.escCounter++},qe=e=>{R.value.clickCounter++,R.value.clickTarget=e.target};ye((()=>{me();let e=Ze.el("#preLoading");e&&e.remove(),screen.orientation&&screen.orientation.addEventListener("change",se),We.add(document,"keydown",Ve,oe,!1,!1),We.add(document,"click",qe,oe,!1,!1),We.add(document,"contextmenu",qe,oe,!1,!1),le.value=!0})),Dt((()=>{screen.orientation.removeEventListener("change",se),We.remove(document,"keydown",oe,!1,!1),We.remove(document,"click",oe,!1,!1),We.remove(document,"contextmenu",oe,!1,!1)}));const Se=e=>{se(),R.value.fullScreen=Ia.isEnabled(),R.value.resizeCounter++};return(e,t)=>{const l=ke("TuiControlPanel"),a=Fe("tui-resize");return!ae.value&&ie.value?we((A(),h("div",{key:0,id:"tuiRoot",class:P(["tui-root",`theme-${f(W)}`,`theme-scheme-${f(_)}`,"mask-"+(f(I)?"blur":"trans"),f(D).type,f(D).orientation&&`screen-dir-${f(D).orientation}`,"screen-"+(f(D).screenInvert?"invert":"no-invert"),{"tui-view-bg":"view"==f(H),"tui-root-bg":"root"==f(H)||"all"==f(H)}])},[ce(l),X(e.$slots,"default")],2)),[[a,{callback:Se,uid:f(oe),threshold:2,debounce:f(J)}]]):C("",!0)}}}),Wu={class:"tui-adt-inner"},ju={class:"tui-adt-text"},Gu=Object.assign({name:"TuiAdptDragTip"},{__name:"dragTip",props:{visible:Boolean,css:String,tipMute:Boolean,tipAutoShow:Boolean,modelValue:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const{i18n:l,$gSound:a,$adaptiveConfig:i,audio:o}=Se("$global",null),n=e,s=t,r=S(!0),d=S(!1),c=S(null),p=S(!1),g=S(!1),v=()=>{!n.tipAutoShow||g.value||!i.value.dragTip||(he.c("adptDragInfo"),he.c("adptDragInfoPre"),he.s("adptDragInfoPre",(()=>{p.value=!0,n.tipMute||a.value&&o.play("pingA"),he.s("adptDragInfo",(()=>{p.value=!1,g.value=!0,i.value.dragTip&&(i.value.dragTip=!1)}),3e3)}),300))};K((()=>n.visible),(e=>{d.value=n.modelValue,e?v():(he.c("adptDragInfo"),he.c("adptDragInfoPre"),p.value=!1)}),{immediate:!0});const m=Pe({appearance:"iconButton",icon:["tui-icon ti-arrow-move","tui-icon ti-cursor-click"]}),y=()=>{s("update:modelValue",!n.modelValue)},b=()=>{p.value=!0},V=()=>{!g.value&&!i.value.dragTip||(p.value=!1)};return ye((()=>{r.value=!1})),At((()=>{r.value=!0,he.c("adptDragInfo"),he.c("adptDragInfoPre")})),(t,a)=>{const i=ke("TuiToggle");return r.value?C("",!0):(A(),Z(Tt,{key:0,to:"#tuiRoot",fallback:"#app",disabled:r.value},[ce(Me,{name:"fade"},{default:W((()=>[e.visible?(A(),h("div",{key:0,class:"tui-adaptive-drag-tip",style:fe(e.css),ref_key:"dragInfoRef",ref:c},[c.value?(A(),Z(na,{key:0,visible:p.value,"onUpdate:visible":a[0]||(a[0]=e=>p.value=e),manual:"",eventTarget:c.value,showTrigger:!1,maxWidth:250,content:f(l)("adaptive.dragTip"),placement:"top"},null,8,["visible","eventTarget","content"])):C("",!0),u("div",Wu,[u("i",{onMouseenter:b,onMouseleave:V,class:"tui-icon ti-info"},null,32),ce(i,Ne({onChange:y,modelValue:d.value,"onUpdate:modelValue":a[1]||(a[1]=e=>d.value=e)},m),null,16,["modelValue"]),u("span",ju,F(f(l)("adaptive.dragText")),1)])],4)):C("",!0)])),_:1})],8,["disabled"]))}}}),Fu={class:"tui-adaptive-low-res-tip"},Hu={class:"tui-alrt-text"},Uu=Object.assign({name:"TuiAdptLowResTip"},{__name:"lowResTip",emits:["closeLowResTip"],setup(e,{emit:t}){const{i18n:l}=Se("$global",null),a=t,i=()=>{a("closeLowResTip")};return(e,t)=>{const a=Fe("tui-popover");return A(),Z(Me,{name:"fade"},{default:W((()=>[u("div",Fu,[t[0]||(t[0]=u("i",{class:"tui-icon ti-info-circle tui-alrt-info"},null,-1)),we((A(),h("span",Hu,[De(F(f(l)("adaptive.lowResText")),1)])),[[a,{content:f(l)("adaptive.lowResTip"),placement:"top",delay:1e3,maxWidth:300}]]),u("i",{class:"tui-icon ti-times",onClick:i})])])),_:1})}}}),Qu={key:1,class:"tui-adpt-term-tip"},Yu="TuiAdaptive",Ku=Object.assign({name:Yu,inheritAttrs:!1},{__name:"index",props:{className:String,spinnerConfig:Object,shadowConfig:Object,tipMute:{type:Boolean,default:!1},tipAutoShow:{type:Boolean,default:!0},mode:{type:String,default:"extension",validator:e=>["extension","flexible","fixed","stretch","disabled"].includes(e)},debounce:{type:Number,default:300},width:{type:Number,default:1900},height:{type:Number,default:1060},shadow:{type:Boolean,default:!0},loading:{type:Boolean,default:!0},portletCount:{type:Number,default:0},userSelect:{type:Boolean,default:!0},monitorRatio:{type:Boolean,default:!0},pointEvent:{type:String,default:"default",validator:e=>["default","penetration"].includes(e)}},emits:["update:mode","update:loading","resizeStart","resizeEnd"],setup(e,{emit:t}){const{$tState:l,$adaptiveConfig:a,$gPortletCounter:i,$gResizeCounter:o,$gBackground:n,$deviceInfo:s,$adptInited:r,$adptReady:d,$gAdaptive:c,initSpinner:p,resetAdaptiveConfig:v,i18n:m,tConsolei18n:y}=Se("$global",null),b=yt(),V=e,w=t,x=xe("adaptive"),k=S(null),B=S(null),T=S(null),$=S(V.loading),z=S(null),R=S(null);let N={};const M=g((()=>R.value?.includes("pc"))),O=Pe({curType:null,transform:"",resizeCounter:0,viewState:{maximize:!1},resizing:!1,inited:!1,overSizeH:!0,observer:"",calcSuccess:!0,terminateServiceStr:"",penetraDomInfo:{},dragable:!1,clickable:!1,lowResolution:!1,disLowResolTip:!1,oriResRatio:0}),{viewState:D,inited:I}=Ye(O),W=g((()=>pe("cpt-adpt-penetra",{...q("width",O.penetraDomInfo.width,"px"),...q("height",O.penetraDomInfo.height,"px")}))),_=g((()=>pe("cpt-browser",{...q("ratio",z.value)}))),E=async(e="unknown")=>{console.log("processScale",e);const t=window.devicePixelRatio;if(O.oriResRatio||(O.oriResRatio=t),!k.value||"disabled"==c.value)return w("resizeEnd"),void(O.resizing=!1);const a=(window.outerWidth/window.innerWidth).toFixed(1);let i;i=window.mozInnerScreenX?O.oriResRatio==t?1:t:1==t||a<1.02&&a>.99?1:t;const o=s.value.type;o&&(R.value=o);const n=1!=i&&M.value&&V.monitorRatio;if(n){if(z.value=i,O.curType==c.value)return O.dragable||(O.dragable=!0,O.lowResolution=!1),w("resizeEnd"),void(O.resizing=!1)}else O.dragable=!1,O.clickable=!1;if(!O.dragable){let e=k.value,t={apWidth:e.clientWidth,apHeight:e.clientHeight,cfgWidth:V.width,cfgHeight:V.height,mode:c.value},l=ss(t);console.log("returnVal",l);const{staWidth:a,scale:i,scaleX:o,scaleY:n,translateX:A,translateY:s,cssHeight:r,success:u}=l;O.calcSuccess=u,u||(O.terminateServiceStr=m("error.terminateService"));const d={scale:i,scaleX:o,scaleY:n};"stretch"!=c.value&&!O.dragable&&0!=d.scale&&d.scale<1?O.lowResolution=!0:O.lowResolution=!1,rl.adpt.init(d),((e={})=>{const t=k.value;t&&(console.log("vars",e),N=Jo(t,"cpt-adpt",e),console.log("adaptiveCssCache",N))})({staw:`${a}px`,cssh:`${r}px`,scale:i,scalex:o,scaley:n,transx:-1*A+"%",transy:-1*s+"%"})}n&&!O.dragable&&(O.dragable=!0),O.inited||(O.inited=!0),await de(),w("resizeEnd"),O.resizing=!1,G(),!r.value&&Ze.el("#tuiAdpt")&&(l.adaptiveConfig.inited=!0),O.curType=c.value,!O.dragable&&b.penetration&&H()},L=We.debounce(((e="debounce")=>{E(e)}),V.debounce),j=(e="debounce")=>{O.resizing||(w("resizeStart"),O.resizing=!0),L(e)},G=()=>{O.dragable||(l.adaptiveConfig.resizeCounter++,O.resizeCounter++)};K((()=>i.value),(e=>{e>=V.portletCount?($.value=!1,w("update:loading",!1)):$.value||($.value=!0)})),K((()=>V.loading),(e=>{$.value!=e&&($.value=e)}),{immediate:!0}),K((()=>V.mode),(e=>{l.globalConfig.adaptive=e}),{immediate:!0}),K((()=>[V.width,V.height]),(()=>{j("watch:Width&Height")})),K((()=>c.value),(e=>{w("update:mode",e),"disabled"!=e?j("watch:gAdaptive"):O.resizeCounter=0}),{immediate:!0}),K((()=>T.value),(e=>{H()})),K((()=>o.value),(e=>{e&&j("watch:gResizeCounter")}));const H=async()=>{await de();let e=T.value;e&&(O.penetraDomInfo=Zo({source:B.value,target:e})),console.log("element-------",e,O.penetraDomInfo,O.resizing)},Q=()=>{O.disLowResolTip=!0};return ye((()=>{k.value.closest("#tuiAdpt")?y("error","adaptiveNesting","error.adaptiveNesting"):(V.portletCount>0?$.value=!0:V.loading&&($.value=V.loading),(!Ze.el("#styleSpinners")||V.spinnerConfig)&&p(V.spinnerConfig),d.value||de((()=>{l.adaptiveConfig.ready=!0})),j("mounted"))})),At((()=>{L.cancel(),O.dragable=!1,O.clickable=!1,O.lowResolution=!1,l.adaptiveConfig.ready=!1,v()})),(t,l)=>{const a=ke("TuiLoadingFull"),i=Fe("tui-drag");return A(),h(ie,null,[we((A(),h("div",Ne({id:"tuiAdptOuter"},t.$attrs,{class:["tui-adaptive",e.className,""+(f(D).maximize?"is-size-max":"is-size-normal"),`is-${O.curType}`,`is-pevent-${e.pointEvent}`,{"has-penetration":t.$slots.penetration,"is-disabled":"disabled"==f(c),"is-resizing":O.resizing,"is-dragable":O.dragable&&!O.clickable,"is-clickable":O.clickable,"is-low-resolution":O.lowResolution,"is-initing":!O.inited,"is-distrans":0==O.resizeCounter}],ref_key:"apElement",ref:k}),[O.lowResolution&&!O.disLowResolTip?(A(),Z(Uu,{key:0,onCloseLowResTip:Q})):C("",!0),O.calcSuccess?C("",!0):(A(),h("div",Qu,F(O.terminateServiceStr),1)),ce(a,{appendTo:"#tuiAdptOuter",modelValue:$.value,"onUpdate:modelValue":l[0]||(l[0]=e=>$.value=e)},null,8,["modelValue"]),(f(I)||"disabled"==f(c))&&O.calcSuccess?(A(),h(ie,{key:2},[u("div",{ref_key:"apContainer",ref:B,id:"tuiAdpt",class:P(["tui-adpt-cont",{"tui-view-bg":"all"==f(n)&&!t.$slots.penetration,"show-shadow":e.shadow&&!t.$slots.penetration,"dis-user-select":!e.userSelect}])},[X(t.$slots,"default",{viewState:f(D)})],2),t.$slots.penetration?(A(),h("div",{key:0,id:"tuiAdptPenetration",ref_key:"adptPenetration",ref:T,class:P(["tui-adpt-penetra",{"tui-view-bg":"all"==f(n)&&t.$slots.penetration,"show-shadow":e.shadow&&t.$slots.penetration,"dis-user-select":!e.userSelect}]),style:fe(W.value)},[X(t.$slots,"penetration",{viewBGName:"tui-view-bg"})],6)):C("",!0)],64)):C("",!0)],16)),[[i,{enabled:O.dragable,trigger:"#tuiAdpt",resetOnDisable:!0,containment:!1,positionType:"transform",inAdpt:!1,uid:f(x)}]]),ce(Gu,{visible:O.dragable,modelValue:O.clickable,"onUpdate:modelValue":l[1]||(l[1]=e=>O.clickable=e),css:_.value,tipAutoShow:e.tipAutoShow,tipMute:e.tipMute},null,8,["visible","modelValue","css","tipAutoShow","tipMute"])],64)}}}),Xu=["onMouseenter","onClick"],Zu=Object.assign({name:"TuiBar3DGroup"},{__name:"group",props:{gap:Number,labelWidth:Number,items:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["label","value"]);return t||console.warn("TuiBar3DGroup Warning! ",l),t}},progress3DBarConfig:Object,valueSize:{type:Number,default:16},queueInit:{type:Boolean,default:!0},clickable:{type:Boolean,default:!1}},emits:["itemClick"],setup(e,{emit:t}){const l=e,a=t,i=S([]),o=S(0),n=S([]),s=S(null),r=e=>!!l.queueInit&&e!==o.value,u=e=>{n.value.push(e),o.value<l.items.length-1&&o.value++},d=g((()=>({valueSize:l.valueSize,...l.progress3DBarConfig}))),c=g((()=>pe("cpt-b3dg",{...q("gap",l.gap,"px")}))),p=e=>l.clickable&&null!=s.value&&s.value!==e?.4:1,f=()=>{l.clickable&&(s.value=null)};return(t,o)=>{const n=ke("TuiBar3D");return A(),h("div",{class:P(["tui-bar-3d-group",{"has-label":!1,"is-clickable":e.clickable}]),style:fe(c.value)},[(A(!0),h(ie,null,ze(e.items,((e,t)=>(A(),h("div",{class:"tui-b3dg-item",key:e.id||e.label||t,style:fe({opacity:p(t)}),onMouseenter:e=>(e=>{l.clickable&&(s.value=e)})(t),onMouseleave:f,onClick:i=>((e,t,i)=>{l.clickable&&a("itemClick",{event:i,data:e,index:t})})(e,t,i)},[ce(n,Ne({ref_for:!0,ref_key:"childRefs",ref:i},{ref_for:!0},d.value,{initHold:r(t),onInited:u,label:e.label,value:e.value}),null,16,["initHold","label","value"])],44,Xu)))),128))],6)}}}),io=["normal","success","danger","warning","emphasis","critical"],Ju=["cylinder","cube"],ec=["none","auto","all","allReverse"],tc=["auto","top"],lc=["self","global","none"],ac=["bottom","top","left","right"],Xl=e=>null==e||CSS.supports("color",e),nc=e=>!(!e||"object"!=typeof e||!Object.keys(e).some((e=>io.includes(e))))&&Object.values(e).every((e=>"number"==typeof e&&!Number.isNaN(e)&&e>=0)),so={index:Number,iconsSymbol:String,label:{type:String,required:!0},precision:{type:Number,default:0},unit:{type:String,default:""},valueSize:Number,displayValue:{type:String,default:"auto",validator:e=>ec.includes(e)},mainValuePosition:{type:String,default:"auto",validator:e=>tc.includes(e)},shape:{type:String,default:"cylinder",validator:e=>Ju.includes(e)},initHold:{type:Boolean,default:!1},aniDelay:{type:Number,default:2e3},duration:{type:Number,default:1e3},gap:{type:Number,default:30},viewDeep:{type:Number,default:15,validator:e=>e>=0&&e<=50},showTrack:{type:Boolean,default:!0},trackOpacity:{type:Number,default:.5},trackBlur:{type:Number,default:1},barBlur:{type:Number,default:1},barOpacity:{type:Number,default:.9},clickable:{type:Boolean,default:!1},inactiveOpacity:{type:Number,default:.4,validator:e=>"number"==typeof e&&e>=0&&e<=1},barColorRatio:{type:Number,default:15},baseColor:{type:String,default:null,validator:Xl},showBase:{type:Boolean,default:!1},baseColorRatio:{type:Number,default:1},baseSpacing:{type:Number,default:20},baseOpacity:{type:Number,default:.9},baseBlur:{type:Number,default:.5},baseColorWeakened:{type:Boolean,default:!1},status:{type:String,default:null,validator:e=>io.includes(e)},thresholds:{type:Object,default:null,validator:nc},resizeObserver:{type:String,default:"global",validator:e=>lc.includes(e)}},oc={...so,value:{type:Number,default:0,validator:e=>e>=0},maxValue:{type:Number,default:null,validator:e=>e>=0},barColor:{type:String,default:null,validator:Xl},baseColor:{type:String,default:null,validator:Xl}},ic=e=>!(!Array.isArray(e)||!e.length)&&e.every((e=>!(!e||"object"!=typeof e||"number"!=typeof e.value||Number.isNaN(e.value)||e.value<0||null!=e.color&&!Xl(e.color)))),sc={...so,segments:{type:Array,default:()=>[],validator:ic},maxValue:{type:Number,default:null,validator:e=>e>=0},segmentGap:{type:Number,default:0,validator:e=>e>=0},showLegend:{type:Boolean,default:!1},legendPosition:{type:String,default:"bottom",validator:e=>ac.includes(e)},legendTeleportTo:{type:[String,Object],default:null},legendWidth:[Number,String]},on={top:{cx:null,cy:null,rx:null,ry:null},sideA:null,sideB:null,body:null,success:!1},Zl=()=>({normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null}),Ta=({value:e,maxValue:t})=>t&&t>0?e/t*100:e<=100?e:100,ro=({displayValue:e,precision:t,aniPct:l,aniVal:a,maxValue:i,unit:o,dustSettled:n})=>{let A,s,r,u,d,c;if("none"===e)return{mainVal:A,mainUnit:s,subVal:r,subUnit:u};if(t){const e=parseFloat(Number(l).toFixed(t)),i=parseFloat(Number(a).toFixed(t));c=n?e:et.padZero(e,t),d=n?i:et.padZero(i,t)}else c=Math.round(l),d=Math.round(a);return i&&o&&"auto"!==e?"all"===e?(A=d,s=o,r=c,u="%"):"allReverse"===e&&(r=d,u=o,A=c,s="%"):i&&o?(A=d,s=o):(A=c,s="%"),{mainVal:A,mainUnit:s,subVal:r,subUnit:u}},al=({shape:e,width:t,height:l,topMargin:a,maxHeight:i,percent:o,viewDeep:n})=>{const A=rs(e,t,l,a,i,o,n);return A.success?A:{...on,top:{...on.top}}},rc=({thresholds:e,value:t})=>{if(!e)return!1;const l=Object.entries(e).sort(((e,t)=>t[1]-e[1]));return l.find((([e,l])=>t>=l))?.[0]||l[l.length-1]?.[0]||"normal"},Ao=({settled:e,customBarColor:t,explicitStatus:l,thresholds:a,currentValue:i,fallbackStatus:o})=>!!e&&(t?"custom":l||(a?rc({thresholds:a,value:i}):o||!1)),ha=e=>{Object.keys(e).forEach((t=>{e[t]=null}))},Ac=({aniPct:e,aniVal:t,state:l,props:a,debut:i,emit:o})=>{const n=xe("bar3D");return A=>{l.dustSettled=!1;const s=e.value,r=A-s,u=Date.now(),d=()=>{const c=Date.now()-u,p=Math.min(c/a.duration,1),g=1-Math.pow(1-p,3);e.value=s+r*g,t.value=a.maxValue?a.value*g:e.value,p<1?ft.s(n,d):(e.value=A,l.dustSettled=!0,i.value||(i.value=!0,o("inited",a.index)))};ft.s(n,d)}},sn=({aniPct:e,aniVal:t,state:l,duration:a,targetValue:i,targetPct:o,debut:n,emit:A,index:s})=>{const r=xe("stackBar3D");return()=>{l.dustSettled=!1;const u=e.value,d=t.value,c=o-u,p=i-d,g=Date.now(),f=()=>{const v=Date.now()-g,h=Math.min(v/a,1),m=1-Math.pow(1-h,3);e.value=u+c*m,t.value=d+p*m,h<1?ft.s(r,f):(e.value=o,t.value=i,l.dustSettled=!0,n.value||(n.value=!0,A("inited",s)))};ft.s(r,f)}},uc=({segments:e,aniPct:t,maxValue:l,maxHeight:a,shape:i,width:o,height:n,topMargin:A,viewDeep:s,colorRatio:r,palette:u,gap:d=0})=>{let c=0,p=0,g=0;return(e||[]).map(((e,f)=>{const v=Ta({value:Number(e?.value)||0,maxValue:l}),h=Math.max(Math.min(t-c,v),0),m=Math.min(h,100),y=m/100*a,b=-(p+g*d),V=e?.color||u[f%u.length]||"#5aa6ff",w=Ke.genColors(V,3,r,!1),q=al({shape:i,width:o,height:n,topMargin:A,maxHeight:a,percent:m,viewDeep:s}),x={...e,index:f,rawPercent:v,visiblePercent:m,visibleHeight:y,translateY:b,baseColor:V,colors:w,path:q,visible:m>0};return c+=v,m>0&&(p+=y,g+=1),x}))},cc={class:"tui-b3d-svg-inner"},dc=["width","height","viewBox"],fc=["id"],pc=["id"],gc=["id"],hc=["id"],vc=["id"],mc={key:0},yc=["id"],bc=["id"],Vc=["id"],wc=["id"],Cc={key:1},$c=["id"],kc=["id"],Sc=["id"],qc=["id"],Tc={key:2},Bc=["id","points"],xc=["id","points"],Pc=["id"],Rc=["href"],zc={key:3},Nc=["id","d"],Ic=["id"],Mc=["href"],Dc=["id"],Oc=["stdDeviation"],_c=["id"],Ec=["stdDeviation"],Lc=["id"],Wc=["stdDeviation"],jc=["opacity","filter"],Gc=["d","fill"],Fc=["cx","cy","rx","ry","fill"],Hc=["points","fill"],Uc=["points","fill"],Qc=["points","fill"],Yc=["opacity","filter"],Kc=["href","fill"],Xc=["cx","cy","rx","ry","fill"],Zc=["href","fill"],Jc=["href","fill"],ed=["points","fill"],td=["x","y","width","height","fill","clip-path"],ld=["x"],ad=["opacity","filter"],nd=["d","fill"],od=["cx","cy","rx","ry","fill"],id=["points","fill"],sd=["points","fill"],rd=["points","fill"],Ad={class:"tui-b3d-value"},ud={class:"tui-b3d-unit"},cd={class:"tui-b3d-label"},dd={key:0,class:"tui-b3d-subval"},fd={class:"tui-b3d-subval-text"},pd={class:"tui-b3d-unit"},gd={class:"tui-b3d-label-text"},hd="TuiBar3D",vd=Object.assign({name:hd},{__name:"index",props:oc,emits:["inited"],setup(e,{expose:t,emit:l}){const{$themePalette:a,$gThemeScheme:i,$optResizeCounter:o,initResizeBy:n}=Se("$global",null),s=n(),r=e,d=l,c=xe("bar3D"),p=S(!1),v=S(!1),m=S(!1),y=S(!1),b=S(null),V=Pe({width:100,height:200,dustSettled:!1,barColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null},baseColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null}}),w=S(0),x=S(0),k=S("normal"),B=g((()=>Ta({value:r.value,maxValue:r.maxValue}))),T=g((()=>{const e=parseInt(r.iconsSymbol,16);return String.fromCharCode(e)})),$=g((()=>ro({displayValue:r.displayValue,precision:r.precision,aniPct:w.value,aniVal:x.value,maxValue:r.maxValue,unit:r.unit,dustSettled:V.dustSettled}))),z=g((()=>(w.value<=100?w.value:100)/100*(V.height-(r.showTrack?r.gap:10)-50))),R=g((()=>{if(!r.showTrack)return;const e=.1*V.width,t=V.height-.1*V.width*2;return al({shape:r.shape,width:V.width,height:V.height,topMargin:e,maxHeight:t,percent:100,viewDeep:r.viewDeep})})),N=g((()=>{if(!r.showBase)return;const e=r.baseSpacing/V.width,t=.1*V.width+.05*V.height-4,l=V.height-.1*V.width*2;return al({shape:r.shape,width:V.width+2*r.baseSpacing,height:V.height,topMargin:t,maxHeight:l,percent:5,viewDeep:r.viewDeep+r.viewDeep*e*2})})),M=g((()=>{const e=r.showTrack?r.gap:0,t=e/V.width,l=V.width-e,a=V.height-e*(r.showBase?.8:1),i=.1*l+a*t*.05,o=a-.1*l*2;return al({shape:r.shape,width:l,height:a,topMargin:i,maxHeight:o,percent:w.value<=100?w.value:100,viewDeep:r.viewDeep-r.viewDeep*t})})),O=Ac({aniPct:w,aniVal:x,state:V,props:r,debut:m,emit:d});K((()=>[r.value,r.initHold]),(()=>{r.initHold||O(B.value)})),K((()=>o.value),((e,t)=>{if("root"!=s.value(r.resizeObserver))return;const{clientWidth:l,clientHeight:a}=b.value;e>t&&D({width:l,height:a})}));const D=async({width:e,height:t})=>{y.value=!0,V.width=e,V.height=t,p.value||(p.value=!0),await de(),setTimeout((()=>{y.value=!1}),500)};K((()=>[r.barColorRatio,r.barColor]),(()=>{I("bar")})),K((()=>[r.baseColorRatio,r.baseColor]),(()=>{I("base")}));const I=e=>{"bar"===e?ha(V.barColorGroup):"base"===e&&ha(V.baseColorGroup)},_=g((()=>{const e=Ao({settled:V.dustSettled,customBarColor:r.barColor,explicitStatus:r.status,thresholds:r.thresholds,currentValue:x.value,fallbackStatus:k.value});return e&&"custom"!==e&&(k.value=e),e})),E=g((()=>{const e=!!r.barColor&&"custom",t=_.value||e||r.status||k.value;let l;if("custom"!==t)if(t&&"normal"!==t&&"critical"!==t)l=a.value[t]?.base;else if("critical"===t){const e="light"==i.value?"stronger":"weaker";l=a.value.danger[e]}else l=a.value.primary?.base;else l=r.barColor;let o,n=null;if(l){if(V.barColorGroup[t]?o=V.barColorGroup[t]:(o=Ke.genColors(l,3,r.barColorRatio,!1),V.barColorGroup[t]=o),r.showBase&&!r.baseColorWeakened)if(V.baseColorGroup[t])n=V.baseColorGroup[t];else{if(r.baseColor)n=Ke.genColors(r.baseColor,3,r.barColorRatio/1.5,!1);else{const e=Ke.darken(l,r.baseColorRatio);n=Ke.genColors(e,3,r.barColorRatio/1.5,!1)}V.baseColorGroup[t]=n}return{bar:o,base:n}}})),L=g((()=>V.height-z.value-50-.1*r.viewDeep)),j=g((()=>{const e=E.value||{};return pe("cpt-b3d",{...e.bar&&{barGrad_A:e.bar[0],barGrad_B:e.bar[1],barGrad_C:e.bar[2]},...e.base&&{basGrad_A:e.base[0],basGrad_B:e.base[1],basGrad_C:e.base[2]},...q("valFs",r.valueSize,"px"),...q("gapFix",r.gap/2,{append:"px",when:r.gap&&r.showTrack}),...q("baseFix",-r.baseSpacing,{append:"px",when:r.baseSpacing}),valTp:L.value+"px",viewDeep:r.viewDeep/(r.showBase?1:1.6)+"px"})}));return ye((()=>{v.value=!0,r.value&&!r.initHold&&he.s("pgsPool3D"+c,(()=>{O(B.value)}),r.aniDelay)})),t({inited:p.value&&m.value}),(e,t)=>{const l=ke("TuiTextTip"),a=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["tui-bar-3d",`is-${_.value||k.value}`]),style:fe(j.value)},[we((A(),h("div",{class:"tui-b3d-svg-wrap",ref_key:"svgWrapRef",ref:b},[u("div",cc,[ce(Me,{name:"fade"},{default:W((()=>[p.value?(A(),h("svg",{key:0,class:"tui-b3d-svg",width:V.width,height:V.height,viewBox:`0 0 ${V.width} ${V.height}`},[u("defs",null,[u("radialGradient",{class:"tui-b3d-grad-bar-top",id:`gradBarTop_${f(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[0]||(t[0]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,fc),u("linearGradient",{class:"tui-b3d-grad-shine",id:`gradShine_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[1]||(t[1]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,pc),u("linearGradient",{class:"tui-b3d-grad-bar-cyde",id:`gradBarCyde_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[2]||(t[2]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,gc),u("linearGradient",{class:"tui-b3d-grad-bar-cube-side-A",id:`gradBarCubeSideA_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[3]||(t[3]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,hc),u("linearGradient",{class:"tui-b3d-grad-bar-cube-side-B",id:`gradBarCubeSideB_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[4]||(t[4]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,vc),e.showTrack?(A(),h("g",mc,[u("radialGradient",{class:"tui-b3d-grad-trk-top",id:`gradTrkTop_${f(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[5]||(t[5]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,yc),u("linearGradient",{class:"tui-b3d-grad-trk-cyde",id:`gradTrkCyde_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[6]||(t[6]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,bc),u("linearGradient",{class:"tui-b3d-grad-trk-cube-side-A",id:`gradTrkCubeSideA_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[7]||(t[7]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1)])],8,Vc),u("linearGradient",{class:"tui-b3d-grad-trk-cube-side-B",id:`gradTrkCubeSideB_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[8]||(t[8]=[u("stop",{offset:"0%"},null,-1)])],8,wc)])):C("",!0),e.showBase?(A(),h("g",Cc,[u("linearGradient",{class:P(["tui-b3d-grad-bas-cube-side-A",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideA_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[9]||(t[9]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1)])],10,$c),u("radialGradient",{class:P(["tui-b3d-grad-bas-top",{"is-weakened":r.baseColorWeakened}]),id:`gradBasTop_${f(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[10]||(t[10]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],10,kc),u("linearGradient",{class:P(["tui-b3d-grad-bas-cyde",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCyde_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[11]||(t[11]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1),u("stop",{offset:"100%"},null,-1)])],10,Sc),u("linearGradient",{class:P(["tui-b3d-grad-bas-cube-side-B",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideB_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[12]||(t[12]=[u("stop",{offset:"0%"},null,-1)])],10,qc)])):C("",!0),"cube"===e.shape?(A(),h("g",Tc,[u("polygon",{id:`shapeCubeSideA_${f(c)}`,points:M.value.sideA},null,8,Bc),u("polygon",{id:`shapeCubeSideB_${f(c)}`,points:M.value.sideB},null,8,xc),u("clipPath",{id:`shapeClip_${f(c)}`},[u("use",{href:`#shapeCubeSideA_${f(c)}`},null,8,Rc)],8,Pc)])):(A(),h("g",zc,[u("path",{id:`shapeCyde_${f(c)}`,d:M.value.body},null,8,Nc),u("clipPath",{id:`shapeClip_${f(c)}`},[u("use",{href:`#shapeCyde_${f(c)}`},null,8,Mc)],8,Ic)])),e.showTrack?(A(),h("filter",{key:4,id:`blurTrk_${f(c)}`},[u("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.trackBlur},null,8,Oc)],8,Dc)):C("",!0),e.showBase?(A(),h("filter",{key:5,id:`blurBas_${f(c)}`},[u("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.baseBlur},null,8,Ec)],8,_c)):C("",!0),u("filter",{id:`blurBar_${f(c)}`},[u("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.barBlur},null,8,Wc)],8,Lc)]),e.showBase?(A(),h("g",{key:0,class:"tui-b3d-base",opacity:e.baseOpacity,filter:`url(#blurBas_${f(c)})`},["cylinder"===e.shape?(A(),h(ie,{key:0},[u("path",{d:N.value.body,fill:`url(#gradBasCyde_${f(c)})`,stroke:"none"},null,8,Gc),u("ellipse",{cx:N.value.top.cx,cy:N.value.top.cy,rx:N.value.top.rx,ry:N.value.top.ry,fill:`url(#gradBasTop_${f(c)})`,stroke:"none"},null,8,Fc)],64)):(A(),h(ie,{key:1},[u("polygon",{points:N.value.sideA,fill:`url(#gradBasCubeSideA_${f(c)})`,stroke:"none"},null,8,Hc),u("polygon",{points:N.value.sideB,fill:`url(#gradBasCubeSideB_${f(c)})`,stroke:"none"},null,8,Uc),u("polygon",{points:N.value.top,fill:`url(#gradBasTop_${f(c)})`,stroke:"none"},null,8,Qc)],64))],8,jc)):C("",!0),u("g",{class:"tui-b3d-ani tui-b3d-ele",opacity:e.barOpacity,filter:`url(#blurBar_${f(c)})`},["cylinder"===e.shape?(A(),h(ie,{key:0},[w.value>0?(A(),h("use",{key:0,href:`#shapeCyde_${f(c)}`,fill:`url(#gradBarCyde_${f(c)})`,stroke:"none"},null,8,Kc)):C("",!0),w.value>0?(A(),h("ellipse",{key:1,cx:M.value.top.cx,cy:M.value.top.cy,rx:M.value.top.rx,ry:M.value.top.ry,fill:`url(#gradBarTop_${f(c)})`,stroke:"none",class:"tui-b3d-top"},null,8,Xc)):C("",!0)],64)):(A(),h(ie,{key:1},[w.value>0?(A(),h("use",{key:0,href:`#shapeCubeSideA_${f(c)}`,fill:`url(#gradBarCubeSideA_${f(c)})`,stroke:"none"},null,8,Zc)):C("",!0),w.value>0?(A(),h("use",{key:1,href:`#shapeCubeSideB_${f(c)}`,fill:`url(#gradBarCubeSideB_${f(c)})`,stroke:"none"},null,8,Jc)):C("",!0),w.value>0?(A(),h("polygon",{key:2,points:M.value.top,fill:`url(#gradBarTop_${f(c)})`,stroke:"none",class:"tui-b3d-top"},null,8,ed)):C("",!0)],64)),w.value>0?(A(),h("rect",{key:2,x:V.width/4,y:e.viewDeep/1.5,width:V.width/4,height:V.height,fill:`url(#gradShine_${f(c)})`,stroke:"none","clip-path":`url(#shapeClip_${f(c)})`,rx:"2",ry:"2"},null,8,td)):C("",!0)],8,Yc),e.iconsSymbol?(A(),h("text",{key:1,x:V.width/2,"text-anchor":"middle",class:"tui-icon tui-icon-in-svg"},F(T.value),9,ld)):C("",!0),e.showTrack?(A(),h("g",{key:2,class:"tui-b3d-trk",opacity:e.trackOpacity,filter:`url(#blurTrk_${f(c)})`},["cylinder"===e.shape?(A(),h(ie,{key:0},[u("path",{d:R.value.body,fill:`url(#gradTrkCyde_${f(c)})`,stroke:"none"},null,8,nd),u("ellipse",{cx:R.value.top.cx,cy:R.value.top.cy,rx:R.value.top.rx,ry:R.value.top.ry,fill:`url(#gradTrkTop_${f(c)})`,stroke:"none"},null,8,od)],64)):(A(),h(ie,{key:1},[u("polygon",{points:R.value.sideA,fill:`url(#gradTrkCubeSideA_${f(c)})`,stroke:"none"},null,8,id),u("polygon",{points:R.value.sideB,fill:`url(#gradTrkCubeSideB_${f(c)})`,stroke:"none"},null,8,sd),u("polygon",{points:R.value.top,fill:`url(#gradTrkTop_${f(c)})`,stroke:"none"},null,8,rd)],64))],8,ad)):C("",!0)],8,dc)):C("",!0)])),_:1}),$.value.mainUnit?(A(),h("div",{key:0,class:P(["tui-b3d-val",{"is-top":"top"==e.mainValuePosition}])},[u("span",Ad,F($.value.mainVal),1),u("span",ud,F($.value.mainUnit),1)],2)):C("",!0)])])),[[a,{callback:D,uid:f(c),disabled:"self"!=f(s)(e.resizeObserver)&&p.value}]]),u("div",cd,[$.value.subUnit?(A(),h("div",dd,[u("span",fd,F($.value.subVal),1),u("span",pd,F($.value.subUnit),1)])):C("",!0),u("div",gd,[ce(l,null,{default:W((()=>[De(F(e.label),1)])),_:1})])])],6),[[Oe,v.value]])])),_:1})}}}),md=["title","onMouseenter","onMouseleave"],yd={class:"tui-pleg-label"},bd={class:"tui-pleg-value"},uo={__name:"legend",props:{items:{type:Array,default:()=>[]},activeIndex:Number,layout:{type:String,default:"row",validator:e=>["row","column"].includes(e)},clickable:{type:Boolean,default:!1},width:[Number,String]},emits:["itemHover","itemLeave"],setup(e,{emit:t}){const l=e,a=t,i=g((()=>null==l.width||""===l.width?null:{width:"number"==typeof l.width?`${l.width}px`:l.width}));return(t,l)=>e.items.length>0?(A(),h("div",{key:0,class:P(["tui-pie-legend",`is-${e.layout}`,{"is-clickable":e.clickable,"has-fixed-width":!!i.value}])},[(A(!0),h(ie,null,ze(e.items,(t=>(A(),h("div",{class:P(["tui-pleg-item",{active:e.activeIndex===t.index}]),key:t.label,style:fe(i.value),title:i.value?t.label:null,onMouseenter:e=>((e,t,l)=>{a("itemHover",{item:e,index:t,event:l})})(t,t.index,e),onMouseleave:e=>((e,t,l)=>{a("itemLeave",{item:e,index:t,event:l})})(t,t.index,e)},[u("span",{class:"tui-pleg-color",style:fe({backgroundColor:t.color})},null,4),u("span",yd,F(t.label),1),u("span",bd,F(t.value.toLocaleString()),1)],46,md)))),128))],2)):C("",!0)}},Vd={class:"tui-stb3d-main"},wd={class:"tui-stb3d-visual"},Cd={class:"tui-b3d-svg-inner"},$d=["width","height","viewBox"],kd={key:0},Sd=["id"],qd=["id"],Td=["id"],Bd=["id"],xd={key:1},Pd=["id"],Rd=["id"],zd=["id"],Nd=["id"],Id=["id"],Md=["stop-color"],Dd=["stop-color"],Od=["id"],_d=["stop-color"],Ed=["stop-color"],Ld=["stop-color"],Wd=["id"],jd=["stop-color"],Gd=["stop-color"],Fd=["id"],Hd=["stop-color"],Ud=["stop-color"],Qd=["id"],Yd=["stdDeviation"],Kd=["id"],Xd=["stdDeviation"],Zd=["id"],Jd=["stdDeviation"],ef=["opacity","filter"],tf=["d","fill"],lf=["cx","cy","rx","ry","fill"],af=["points","fill"],nf=["points","fill"],of=["points","fill"],sf=["opacity","filter"],rf=["transform","opacity"],Af=["d","fill","onMouseover","onClick"],uf=["cx","cy","rx","ry","fill","onMouseover","onClick"],cf=["points","fill","onMouseover","onClick"],df=["points","fill","onMouseover","onClick"],ff=["points","fill","onMouseover","onClick"],pf=["x"],gf=["opacity","filter"],hf=["d","fill"],vf=["cx","cy","rx","ry","fill"],mf=["points","fill"],yf=["points","fill"],bf=["points","fill"],Vf={class:"tui-b3d-value"},wf={class:"tui-b3d-unit"},Cf={class:"tui-b3d-label"},$f={key:0,class:"tui-b3d-subval"},kf={class:"tui-b3d-subval-text"},Sf={class:"tui-b3d-unit"},qf={class:"tui-b3d-label-text"},Tf=Object.assign({name:"TuiStackBar3D"},{__name:"stack",props:sc,emits:["inited","itemClick"],setup(e,{expose:t,emit:l}){const{$themePalette:a,$gThemeScheme:i,$optResizeCounter:o,initResizeBy:n}=Se("$global",null),s=n(),r=e,d=l,c=xe("stackBar3D"),p=S(!1),v=S(!1),m=S(!1),y=S(!1),b=S(!1),V=S(null),w=Pe({width:100,height:200,dustSettled:!1,hovSegmentIdx:null,hovLegendIdx:null,barColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null},baseColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null}}),x=S(0),k=S(0),B=S("normal"),T=g((()=>(r.segments||[]).reduce(((e,t)=>e+(Number(t?.value)||0)),0))),$=g((()=>r.maxValue||T.value||100)),z=g((()=>Ta({value:T.value,maxValue:$.value}))),R=g((()=>{const e=[a.value?.primary?.base,a.value?.success?.base,a.value?.warning?.base,a.value?.danger?.base,a.value?.emphasis?.base,a.value?.primary?.weaker].filter(Boolean);return e.length?e:[Ke.pri5,Ke.suc5,Ke.war5,Ke.dan5,Ke.rsa5,Ke.cya5]})),N=g((()=>ro({displayValue:r.displayValue,precision:r.precision,aniPct:x.value,aniVal:k.value,maxValue:r.maxValue,unit:r.unit,dustSettled:w.dustSettled}))),M=g((()=>(r.segments||[]).map(((e,t)=>({index:t,label:e?.label||`Segment${t+1}`,value:Number(e?.value)||0,color:e?.color||R.value[t%R.value.length]||"#5aa6ff"}))))),O=g((()=>["left","right"].includes(r.legendPosition)?"column":"row")),D=g((()=>{if(!m.value||!r.legendTeleportTo)return null;if("string"==typeof r.legendTeleportTo)return typeof document<"u"?document.querySelector(r.legendTeleportTo):null;const e=f(r.legendTeleportTo);return 1===e?.nodeType?e:null})),I=g((()=>!!D.value)),_=g((()=>w.hovSegmentIdx??w.hovLegendIdx??null)),E=g((()=>{const e=r.showTrack?r.gap:0,t=w.width?e/w.width:0,l=w.width-e,a=w.height-e*(r.showBase?.8:1);return{gap:e,width:l,height:a,topMargin:.1*l+a*t*.05,maxHeight:a-.1*l*2,viewDeep:r.viewDeep-r.viewDeep*t}})),L=g((()=>{const e=Math.min(x.value,100)/100*E.value.maxHeight;return w.height-e-50-.1*r.viewDeep})),j=g((()=>{if(!r.showTrack)return;const e=.1*w.width,t=w.height-.1*w.width*2;return al({shape:r.shape,width:w.width,height:w.height,topMargin:e,maxHeight:t,percent:100,viewDeep:r.viewDeep})})),G=g((()=>{if(!r.showBase)return;const e=r.baseSpacing/w.width,t=.1*w.width+.05*w.height-4,l=w.height-.1*w.width*2;return al({shape:r.shape,width:w.width+2*r.baseSpacing,height:w.height,topMargin:t,maxHeight:l,percent:5,viewDeep:r.viewDeep+r.viewDeep*e*2})})),H=g((()=>uc({segments:r.segments,aniPct:Math.min(x.value,100),maxValue:$.value,maxHeight:E.value.maxHeight,shape:r.shape,width:E.value.width,height:E.value.height,topMargin:E.value.topMargin,viewDeep:E.value.viewDeep,colorRatio:r.barColorRatio,palette:R.value,gap:r.segmentGap}))),Q=e=>{const t=Number(e?.value)||0,l=(e=>{const t=Number(e?.value)||0;return T.value?t/T.value*100:0})(e),a=r.precision>0?t.toFixed(r.precision):String(Math.round(t)),i=r.precision>0?l.toFixed(r.precision):String(Math.round(l));return`${e?.label||"Segment"}: ${a}${r.unit||""} (${i}%)`},Y=e=>null==_.value||_.value===e?1:r.inactiveOpacity,X=e=>{w.hovSegmentIdx=e.index},U=()=>{w.hovSegmentIdx=null},J=({index:e})=>{w.hovLegendIdx=e},ee=()=>{w.hovLegendIdx=null},te=(e,t)=>{r.clickable&&d("itemClick",{event:t,data:r.segments?.[e.index]||e,index:e.index})};K((()=>[r.segments,r.initHold,r.maxValue]),(()=>{r.initHold||sn({aniPct:x,aniVal:k,state:w,duration:r.duration,targetValue:T.value,targetPct:z.value,debut:y,emit:d,index:r.index})()}),{deep:!0}),K((()=>o.value),((e,t)=>{if("root"!=s.value(r.resizeObserver)||!V.value)return;const{clientWidth:l,clientHeight:a}=V.value;e>t&&le({width:l,height:a})}));const le=async({width:e,height:t})=>{b.value=!0,w.width=e,w.height=t,p.value||(p.value=!0),await de(),setTimeout((()=>{b.value=!1}),500)},ae=async()=>{if(await de(),!V.value)return;const{clientWidth:e,clientHeight:t}=V.value;!e||!t||le({width:e,height:t})};K((()=>[r.showLegend,r.legendPosition,r.legendTeleportTo]),(()=>{ae()})),K((()=>M.value.length),(()=>{ae()})),K((()=>[r.baseColorRatio,r.baseColor]),(()=>{ha(w.baseColorGroup)}));const oe=g((()=>{const e=Ao({settled:w.dustSettled,customBarColor:!1,explicitStatus:r.status,thresholds:r.thresholds,currentValue:k.value,fallbackStatus:B.value});return e&&"custom"!==e&&(B.value=e),e})),ne=g((()=>{const e=oe.value||r.status||B.value;let t;if(r.baseColor)t=r.baseColor;else if(e&&"normal"!==e&&"critical"!==e)t=a.value[e]?.base;else if("critical"===e){const e="light"==i.value?"stronger":"weaker";t=a.value.danger[e]}else t=a.value.primary?.base;if(!t||!r.showBase||r.baseColorWeakened)return null;if(w.baseColorGroup[e])return w.baseColorGroup[e];const l=Ke.darken(t,r.baseColorRatio),o=Ke.genColors(l,3,r.barColorRatio/1.5,!1);return w.baseColorGroup[e]=o,o})),Ae=g((()=>{const e=ne.value||[];return pe("cpt-b3d",{...e.length&&{basGrad_A:e[0],basGrad_B:e[1],basGrad_C:e[2]},...q("valFs",r.valueSize,"px"),...q("gapFix",r.gap/2,{append:"px",when:r.gap&&r.showTrack}),...q("baseFix",-r.baseSpacing,{append:"px",when:r.baseSpacing}),valTp:L.value+"px",viewDeep:r.viewDeep/(r.showBase?1:1.6)+"px"})}));return ye((async()=>{v.value=!0,await de(),m.value=!0,T.value&&!r.initHold&&he.s("stackPgsPool3D"+c,(()=>{sn({aniPct:x,aniVal:k,state:w,duration:r.duration,targetValue:T.value,targetPct:z.value,debut:y,emit:d,index:r.index})()}),r.aniDelay)})),t({inited:p.value&&y.value}),(e,t)=>{const l=ke("TuiTextTip"),a=Fe("tui-cursor-tip"),i=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["tui-stack-bar-3d","tui-bar-3d",`is-${oe.value||B.value}`,`is-legend-${e.legendPosition}`,{"is-clickable":r.clickable}]),style:fe(Ae.value)},[u("div",Vd,[u("div",wd,[we((A(),h("div",{class:"tui-b3d-svg-wrap",ref_key:"visualRef",ref:V},[u("div",Cd,[ce(Me,{name:"fade"},{default:W((()=>[p.value?(A(),h("svg",{key:0,class:"tui-b3d-svg",width:w.width,height:w.height,viewBox:`0 0 ${w.width} ${w.height}`},[u("defs",null,[e.showTrack?(A(),h("g",kd,[u("radialGradient",{class:"tui-b3d-grad-trk-top",id:`gradTrkTop_${f(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[0]||(t[0]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,Sd),u("linearGradient",{class:"tui-b3d-grad-trk-cyde",id:`gradTrkCyde_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[1]||(t[1]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,qd),u("linearGradient",{class:"tui-b3d-grad-trk-cube-side-A",id:`gradTrkCubeSideA_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[2]||(t[2]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1)])],8,Td),u("linearGradient",{class:"tui-b3d-grad-trk-cube-side-B",id:`gradTrkCubeSideB_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[3]||(t[3]=[u("stop",{offset:"0%"},null,-1)])],8,Bd)])):C("",!0),e.showBase?(A(),h("g",xd,[u("linearGradient",{class:P(["tui-b3d-grad-bas-cube-side-A",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideA_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[4]||(t[4]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1)])],10,Pd),u("radialGradient",{class:P(["tui-b3d-grad-bas-top",{"is-weakened":r.baseColorWeakened}]),id:`gradBasTop_${f(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[5]||(t[5]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],10,Rd),u("linearGradient",{class:P(["tui-b3d-grad-bas-cyde",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCyde_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[6]||(t[6]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"50%"},null,-1),u("stop",{offset:"100%"},null,-1)])],10,zd),u("linearGradient",{class:P(["tui-b3d-grad-bas-cube-side-B",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideB_${f(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[7]||(t[7]=[u("stop",{offset:"0%"},null,-1)])],10,Nd)])):C("",!0),(A(!0),h(ie,null,ze(H.value,(e=>(A(),h(ie,{key:`grad_${e.index}`},[u("radialGradient",{id:`gradSegTop_${f(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[u("stop",{offset:"0%","stop-color":e.colors[1]},null,8,Md),u("stop",{offset:"100%","stop-color":e.colors[0]},null,8,Dd)],8,Id),u("linearGradient",{id:`gradSegCyde_${f(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[u("stop",{offset:"0%","stop-color":e.colors[0]},null,8,_d),u("stop",{offset:"50%","stop-color":e.colors[1]},null,8,Ed),u("stop",{offset:"100%","stop-color":e.colors[2]},null,8,Ld)],8,Od),u("linearGradient",{id:`gradSegCubeSideA_${f(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[u("stop",{offset:"0%","stop-color":e.colors[1]},null,8,jd),u("stop",{offset:"100%","stop-color":e.colors[0]},null,8,Gd)],8,Wd),u("linearGradient",{id:`gradSegCubeSideB_${f(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[u("stop",{offset:"0%","stop-color":e.colors[1]},null,8,Hd),u("stop",{offset:"100%","stop-color":e.colors[2]},null,8,Ud)],8,Fd)],64)))),128)),e.showTrack?(A(),h("filter",{key:2,id:`blurTrk_${f(c)}`},[u("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.trackBlur},null,8,Yd)],8,Qd)):C("",!0),e.showBase?(A(),h("filter",{key:3,id:`blurBas_${f(c)}`},[u("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.baseBlur},null,8,Xd)],8,Kd)):C("",!0),u("filter",{id:`blurBar_${f(c)}`},[u("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.barBlur},null,8,Jd)],8,Zd)]),e.showBase?(A(),h("g",{key:0,class:"tui-b3d-base",opacity:e.baseOpacity,filter:`url(#blurBas_${f(c)})`},["cylinder"===e.shape?(A(),h(ie,{key:0},[u("path",{d:G.value.body,fill:`url(#gradBasCyde_${f(c)})`,stroke:"none"},null,8,tf),u("ellipse",{cx:G.value.top.cx,cy:G.value.top.cy,rx:G.value.top.rx,ry:G.value.top.ry,fill:`url(#gradBasTop_${f(c)})`,stroke:"none"},null,8,lf)],64)):(A(),h(ie,{key:1},[u("polygon",{points:G.value.sideA,fill:`url(#gradBasCubeSideA_${f(c)})`,stroke:"none"},null,8,af),u("polygon",{points:G.value.sideB,fill:`url(#gradBasCubeSideB_${f(c)})`,stroke:"none"},null,8,nf),u("polygon",{points:G.value.top,fill:`url(#gradBasTop_${f(c)})`,stroke:"none"},null,8,of)],64))],8,ef)):C("",!0),u("g",{class:"tui-b3d-ani tui-b3d-ele",opacity:e.barOpacity,filter:`url(#blurBar_${f(c)})`},[(A(!0),h(ie,null,ze(H.value,(t=>we((A(),h("g",{key:t.index,transform:`translate(0, ${t.translateY})`,opacity:Y(t.index)},["cylinder"===e.shape?(A(),h(ie,{key:0},[we(u("path",{d:t.path.body,fill:`url(#gradSegCyde_${f(c)}_${t.index})`,stroke:"none",onMouseover:e=>X(t),onMouseleave:U,style:fe({cursor:r.clickable?"pointer":"default"}),onClick:e=>te(t,e)},null,44,Af),[[a,{content:Q(t)}]]),we(u("ellipse",{cx:t.path.top.cx,cy:t.path.top.cy,rx:t.path.top.rx,ry:t.path.top.ry,fill:`url(#gradSegTop_${f(c)}_${t.index})`,stroke:"none",class:"tui-b3d-top",onMouseover:e=>X(t),onMouseleave:U,style:fe({cursor:r.clickable?"pointer":"default"}),onClick:e=>te(t,e)},null,44,uf),[[a,{content:Q(t)}]])],64)):(A(),h(ie,{key:1},[we(u("polygon",{points:t.path.sideA,fill:`url(#gradSegCubeSideA_${f(c)}_${t.index})`,stroke:"none",onMouseover:e=>X(t),onMouseleave:U,style:fe({cursor:r.clickable?"pointer":"default"}),onClick:e=>te(t,e)},null,44,cf),[[a,{content:Q(t)}]]),we(u("polygon",{points:t.path.sideB,fill:`url(#gradSegCubeSideB_${f(c)}_${t.index})`,stroke:"none",onMouseover:e=>X(t),onMouseleave:U,style:fe({cursor:r.clickable?"pointer":"default"}),onClick:e=>te(t,e)},null,44,df),[[a,{content:Q(t)}]]),we(u("polygon",{points:t.path.top,fill:`url(#gradSegTop_${f(c)}_${t.index})`,stroke:"none",class:"tui-b3d-top",onMouseover:e=>X(t),onMouseleave:U,style:fe({cursor:r.clickable?"pointer":"default"}),onClick:e=>te(t,e)},null,44,ff),[[a,{content:Q(t)}]])],64))],8,rf)),[[Oe,t.visible]]))),128))],8,sf),e.iconsSymbol?(A(),h("text",{key:1,x:w.width/2,"text-anchor":"middle",class:"tui-icon tui-icon-in-svg"},F(String.fromCharCode(parseInt(e.iconsSymbol,16))),9,pf)):C("",!0),e.showTrack?(A(),h("g",{key:2,class:"tui-b3d-trk",opacity:e.trackOpacity,filter:`url(#blurTrk_${f(c)})`},["cylinder"===e.shape?(A(),h(ie,{key:0},[u("path",{d:j.value.body,fill:`url(#gradTrkCyde_${f(c)})`,stroke:"none"},null,8,hf),u("ellipse",{cx:j.value.top.cx,cy:j.value.top.cy,rx:j.value.top.rx,ry:j.value.top.ry,fill:`url(#gradTrkTop_${f(c)})`,stroke:"none"},null,8,vf)],64)):(A(),h(ie,{key:1},[u("polygon",{points:j.value.sideA,fill:`url(#gradTrkCubeSideA_${f(c)})`,stroke:"none"},null,8,mf),u("polygon",{points:j.value.sideB,fill:`url(#gradTrkCubeSideB_${f(c)})`,stroke:"none"},null,8,yf),u("polygon",{points:j.value.top,fill:`url(#gradTrkTop_${f(c)})`,stroke:"none"},null,8,bf)],64))],8,gf)):C("",!0)],8,$d)):C("",!0)])),_:1}),N.value.mainUnit?(A(),h("div",{key:0,class:P(["tui-b3d-val",{"is-top":"top"==e.mainValuePosition}])},[u("span",Vf,F(N.value.mainVal),1),u("span",wf,F(N.value.mainUnit),1)],2)):C("",!0)])])),[[i,{callback:le,uid:f(c),disabled:"self"!=f(s)(e.resizeObserver)&&p.value}]]),u("div",Cf,[N.value.subUnit?(A(),h("div",$f,[u("span",kf,F(N.value.subVal),1),u("span",Sf,F(N.value.subUnit),1)])):C("",!0),u("div",qf,[ce(l,null,{default:W((()=>[De(F(e.label),1)])),_:1})])])]),e.showLegend&&M.value.length?(A(),Z(Tt,{key:0,to:D.value||"body",disabled:!I.value},[ce(uo,{class:"tui-stb3d-legend",items:M.value,"active-index":_.value,layout:O.value,width:r.legendWidth,onItemHover:J,onItemLeave:ee},null,8,["items","active-index","layout","width"])],8,["to","disabled"])):C("",!0)])],6),[[Oe,v.value]])])),_:1})}}}),Bf=(e,t,l="358")=>{const a=Ze.get1stParent(e,".tui-3d-panel");if(!a)return;if(hl.has(a,"is-3doff"))return;if(!(e&&e instanceof HTMLElement&&"string"==typeof t&&""!==t.trim()))return;const i=e.querySelector("svg");if(!i)return;const o="pathG"+t,n=i.querySelector(`g#${CSS.escape(o)}`);n&&i.removeChild(n);const A=i.querySelectorAll("path"),s=[];if(A.forEach((e=>{const t=e.getAttribute("stroke-width");null!=t&&""!==t.trim()&&String(t).includes(l)&&s.push(e)})),s.length>0){const e=document.createElementNS("http://www.w3.org/2000/svg","g");e.setAttribute("id",o),s.forEach((t=>{const l=t.getAttribute("fill"),a=t.getAttribute("stroke");t.setAttribute("class","tui-ech-ori-svg");const i=t.cloneNode(!0);i.setAttribute("class","t3d-shadow-item"),i.setAttribute("style",`--tui-3dp-thick-color:${Ke.darken("none"!=l?l:a,2.5)}`),e.appendChild(i)})),i.insertBefore(e,i.firstChild)}},xf=e=>{const t="pathG"+e,l=Ze.el(`#${t}`);l&&l.remove()},il="$theme.",ml="$theme:",yl="$scheme:",Pf=new Set(["data","links","nodes","edges","features","coordinates","coords"]),Rf=e=>e&&"object"==typeof e&&"value"in e,rn=e=>Rf(e)?e.value:e,co=(e="")=>e.toLowerCase().includes("color"),zf=e=>e.includes(il)||e.includes(ml)||e.includes(yl),Nf=(e,t,l="")=>zf(e)&&(t.inColorField||co(l)),fo=(e,t)=>{let l=0,a=0,i=0;for(let o=0;o<e.length;o++){const n=e[o];if("("===n)l++;else if(")"===n)l=Math.max(0,l-1);else if("{"===n)a++;else if("}"===n)a=Math.max(0,a-1);else if("["===n)i++;else if("]"===n)i=Math.max(0,i-1);else if(n===t&&0===l&&0===a&&0===i)return[e.slice(0,o),e.slice(o+1)]}return[e,""]},If=(e,t=",")=>{const l=[];let a=0,i=0,o=0,n=0;for(let A=0;A<e.length;A++){const s=e[A];"("===s?a++:")"===s?a=Math.max(0,a-1):"{"===s?i++:"}"===s?i=Math.max(0,i-1):"["===s?o++:"]"===s?o=Math.max(0,o-1):s===t&&0===a&&0===i&&0===o&&(l.push(e.slice(n,A).trim()),n=A+1)}return l.push(e.slice(n).trim()),l.filter(Boolean)},Mf=e=>{const t=e.trim();return t.startsWith("{")&&t.endsWith("}")?t.slice(1,-1).trim():t},Df=e=>{const t=Mf(e);return If(t).reduce(((e,t)=>{const[l,a]=fo(t,":"),i=l.trim();return!i||!a||(e[i]=a.trim()),e}),{})},po=(e,t)=>{console.warn(`[TuiEcharts theme option] ${e}`,t)},go=(e,t)=>{const[l,a]=fo(e,"|"),i=l.trim(),o=t.$tc?.(i);return o?a?Ke.expr(`${o}|${a.trim()}`):o:(po(`Theme color path "${i}" was not found.`,e),`${il}${e}`)},Of=(e,t)=>{const l=e.trim();return l.startsWith(il)?go(l.slice(il.length),t):l.startsWith(ml)||l.startsWith(yl)?ho(l,t):Ke.expr(l)},An=(e,t,l,a)=>{const i=Df(e),o=i[t]??i.default;return void 0===o?(po(`No matching key "${t}" or "default" in ${a}.`,i),`${a}${e}`):Of(o,l)},ho=(e,t={})=>{if("string"!=typeof e)return e;const l=e.trim();return l.startsWith(il)?go(l.slice(il.length),t):l.startsWith(yl)?An(l.slice(yl.length),rn(t.themeScheme),t,yl):l.startsWith(ml)?An(l.slice(ml.length),rn(t.theme),t,ml):e},_f=(e,t)=>!t.scanData&&Pf.has(e),va=(e,t,l="")=>{if("string"==typeof e)return Nf(e,t,l)?ho(e,t):e;if(!e||"object"!=typeof e||"function"==typeof e||_f(l,t))return e;const a=t.inColorField||co(l)?{...t,inColorField:!0}:t;if(Array.isArray(e)){let t=!1;const l=e.map((e=>{const l=va(e,a);return l!==e&&(t=!0),l}));return t?l:e}const i=Object.getPrototypeOf(e),o=i===Object.prototype||null===i?{}:Object.create(i);let n=!1;return Object.keys(e).forEach((t=>{const l=e[t],i=va(l,a,t);o[t]=i,i!==l&&(n=!0)})),n?o:e},vo=(e,t={})=>t.enabled?va(e,{...t,inColorField:!1}):e,Ef="TuiEcharts",Lf=Object.assign({name:Ef,inheritAttrs:!1},{__name:"chart",props:{width:[Number,String],height:[Number,String],chartOption:{type:Object,required:!0},initOptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:null},useLoader:{type:Boolean,default:!0},initT3DShadow:{type:Boolean,default:!1},t3DShadowUpdate:{type:String,default:"finished",validator:e=>["rendered","finished"].includes(e)},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas"].includes(e)},ready:{type:Boolean,default:!1},dataOpacity:Number,dataBlur:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},themeToken:{type:Boolean,default:!0},themeTokenScanData:{type:Boolean,default:!1}},emits:["chartClick","chartDblClick","chartMouseDown","chartMouseUp","chartMouseOver","chartGlobalOut","chartInit","chartReady","chartRendered","chartFinished","chartThemeChanged","update:loading"],setup(e,{expose:t,emit:l}){const a=Se("$global",null),{$gT3D:i,$gTheme:o,$gThemeScheme:n,$gEchartsThemeInited:s,$optResizeCounter:r,initResizeBy:d,$echarts:c,$tc:p}=a||{},v=d(),h=xn({name:"TuiPassThrough",setup:(e,{slots:t})=>()=>t.default?.()}),m=ke("TuiLoaderPanel"),y=aa(),b=xe("echart"),V=e,w=l,x=S(null),C=Pn(null),k=Pe({loading:!0,inited:!1,resizing:!0}),B=g({get:()=>V.loading??k.loading,set:e=>{null!==V.loading?w("update:loading",e):k.loading=e}}),T=g((()=>V.useLoader?m:h)),P=g((()=>V.useLoader?{loading:B.value,inited:k.inited}:{})),$=(e=V.chartOption)=>vo(e,{enabled:V.themeToken,scanData:V.themeTokenScanData,theme:o,themeScheme:n,$tc:p}),z=async()=>{if(x.value)try{if(O(),C.value||!c)return;await de(),C.value=c.init(x.value,"eTheme",{...V.initOptions,renderer:V.initT3DShadow?"svg":V.renderer}),w("chartInit",C.value),C.value.setOption($()),R(),await de(),C.value&&(w("chartReady",C.value),B.value=!1)}catch(e){console.error("ECharts initialization failed:",e)}},R=()=>{if(!C.value)return;const e=(e,t)=>{C.value&&C.value.on(e,t)};e("click",(e=>w("chartClick",e))),e("dblclick",(e=>w("chartDblClick",e))),e("mousedown",(e=>w("chartMouseDown",e))),e("mouseup",(e=>w("chartMouseUp",e))),e("mouseover",(e=>w("chartMouseOver",e))),e("globalout",(e=>w("chartGlobalOut",e))),e("rendered",(()=>{C.value&&"rendered"==V.t3DShadowUpdate&&N(),w("chartRendered")})),e("finished",(function(){C.value&&("finished"==V.t3DShadowUpdate&&N(),w("chartFinished"),B.value=!1,k.inited=!1)}))},N=()=>{if(!x.value)return;let e=!0;const t=Ze.get1stParent(x.value,".tui-3d-panel");(!t||t&&hl.has(t,"is-3doff"))&&(e=!1),V.initT3DShadow&&e?Bf(x.value,b):xf(b)},M=Se("TuiT3DPanel",null);K((()=>[i.value,V.initT3DShadow,M?.view3d?.value]),(([e,t,l])=>{N()})),K((()=>s.value),(async e=>{!C.value||!e||(w("chartThemeChanged",{chart:C.value,theme:e}),await de(),C.value.setTheme("eTheme"),C.value.setOption($()))}));const O=()=>{C.value&&(C.value.dispose(),C.value=null)},D=()=>{C.value&&C.value.resize()};K((()=>V.ready),(e=>{e&&z()})),K((()=>V.chartOption),(()=>{C.value&&de((()=>{C.value&&(C.value.setOption($()),B.value=!1)}))}),{deep:!0});const I=g((()=>pe("cpt-echarts",{...q("width",V.width,"smart"),...q("height",V.height,"smart"),...q("opa",V.dataOpacity),...q("blur",V.dataBlur,"px")})));K((()=>r.value),((e,t)=>{"root"==v.value(V.resizeObserver)&&e>t&&_()}));const _=async()=>{k.resizing=!0,D(),await de(),setTimeout((()=>{k?.resizing&&(k.resizing=!1)}),500)};return ye((()=>{V.ready&&de((()=>{z()}))})),At((()=>{O()})),t({resize:D,getChart:()=>C.value,setOption:(e,t)=>{C.value&&C.value.setOption($(e),t)},clear:()=>{C.value&&C.value.clear()},initChart:z,dispose:O}),(t,l)=>{const a=Fe("tui-resize");return A(),Z(ct(T.value),pt(Vt(P.value)),{default:W((()=>[we(u("div",Ne({ref_key:"chartRef",ref:x},f(y),{class:["tui-echarts",{"is-resizing":k.resizing}],style:I.value}),null,16),[[a,{callback:_,uid:f(b),disabled:"self"!=f(v)(e.resizeObserver)}]]),X(t.$slots,"default")])),_:3},16)}}}),Wf=(e,t,l,a,i)=>{if(!e.value)return;const o=(t,l)=>{e.value&&e.value.on(t,l)};o("click",We.debounce((l=>{let i,o=l;if(l.value&&!t.chartOption.geo3D)i=e.value.convertToPixel("geo",[l.value[0],l.value[1]]),o.domPosition=i;else if("geo"==l.componentType&&l.event?.offsetX){const{offsetX:t,offsetY:a}=l.event;i=e.value.convertFromPixel("geo",[t,a]),o.coordPosition=i}a("chartClick",o,l)}),500,!0)),o("dblclick",(e=>a("chartDblClick",e))),o("mousedown",(e=>a("chartMouseDown",e))),o("mouseup",(e=>a("chartMouseUp",e))),o("mouseover",(e=>a("chartMouseOver",e))),o("globalout",(e=>a("chartGlobalOut",e))),o("geoRoam",(e=>a("chartGeoRoam",e))),o("timelinechanged",(l=>{const{allAreaCodes:i,chartOption:{timeline:o}}=t;let n=l;if("geoTitle"==o.titleType){let t=o.data[l.currentIndex],a=i.find((e=>e.name.includes(t))),A=e.value.convertToPixel("geo",[a.lng,a.lat]);n.domPosition=A,n.current=a}a("chartTimelinechanged",n)})),o("rendered",(()=>{a("chartRendered")})),o("finished",(()=>{e.value&&(a("chartFinished"),l.inited=!0)}))},jf=e=>{e.value&&e.value.resize()},Gf=e=>e.value,Ff=(e,t,l)=>{e.value&&e.value.setOption(t,l)},Hf=e=>{e.value&&e.value.clear()},Uf=e=>{if(e.value)try{const t=e.value.getOption();t.geo&&t.geo[0]&&(t.geo[0].roam=!0,t.geo[0].zoom=1,t.geo[0].center=null,e.value.setOption(t,!1))}catch(e){console.error("Failed to reset map view:",e)}},mo=async(e,t,l)=>{try{return l?(e.registerMap(t,l),!0):(console.warn("GeoJSON data is missing"),!1)}catch(e){return console.error("Failed to register map:",e),!1}},Qf=async(e,t,l,a,i,o,n)=>{if(t.value)try{if(yo(l),l.value)return;if(!await mo(e,a.mapName,a.geoJsonData))return void console.error("Map registration failed, aborting chart initialization");await de(),l.value=Ys(e.init(t.value,"eTheme",{...a.initOptions,notMerge:!1,renderer:a.renderer})),o("chartInit",l.value),l.value.setOption(a.chartOption),n(),await de(),l.value&&(o("chartReady",l.value),i.value=!1)}catch(e){console.error("ECharts Map initialization failed:",e)}},Yf=(e,t,l,a,i=!1)=>{e.value&&(e.value.setOption(t,i),l.value=!1,a("chartUpdate"))},yo=e=>{e.value&&(e.value.dispose(),e.value=null)},Kf=["onClick"],Xf={class:"tui-echm-bc-text"},Zf="TuiEchartsMap",Jf=Object.assign({name:Zf,inheritAttrs:!1},{__name:"map",props:{width:[Number,String],height:[Number,String],chartOption:{type:Object,required:!0},geoJsonData:{type:Object,required:!0},allAreaCodes:Array,mapName:{type:String,required:!0},initOptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:null},useLoader:{type:Boolean,default:!0},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas"].includes(e)},ready:{type:Boolean,default:!1},dataOpacity:Number,dataBlur:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},updateReplace:{type:Boolean,default:!0},themeToken:{type:Boolean,default:!0},themeTokenScanData:{type:Boolean,default:!1},enableBreadcrumb:{type:Boolean,default:!1},breadcrumbConfig:{type:Object,default:()=>({data:[{code:1e5,name:"全国"}],position:{top:"5%",left:"5%"}})}},emits:["chartClick","chartDblClick","chartMouseDown","chartMouseUp","chartMouseOver","chartGlobalOut","chartInit","chartReady","chartRendered","chartFinished","chartGeoRoam","chartUpdate","chartTimelinechanged","breadcrumbClick","chartThemeChanged","update:loading"],setup(e,{expose:t,emit:l}){const a=Se("$global",null),{$gT3D:i,$gTheme:o,$gThemeScheme:n,$gEchartsThemeInited:s,$optResizeCounter:r,initResizeBy:d,$echarts:c,$tc:p}=a||{},v=d(),m=xn({name:"TuiPassThrough",setup:(e,{slots:t})=>()=>t.default?.()}),y=ke("TuiLoaderPanel"),b=aa(),V=xe("echart_map"),w=S(null),x=Pn(null),k=e,B=l,T=Pe({loading:!0,inited:!1,resizing:!0}),P=g({get:()=>k.loading??T.loading,set:e=>{null!==k.loading?B("update:loading",e):T.loading=e}}),$=g((()=>k.useLoader?y:m)),z=g((()=>k.useLoader?{loading:P.value,inited:T.inited}:{})),R=g((()=>k.breadcrumbConfig?.data||[])),N=g((()=>{let e=k.breadcrumbConfig?.position||{},t={};for(let l in e)"number"==typeof e[l]?t[l]=e[l]+"px":t[l]=e[l];return t})),M=(e=k.chartOption)=>vo(e,{enabled:k.themeToken,scanData:k.themeTokenScanData,theme:o,themeScheme:n,$tc:p}),O=async()=>{c&&await Qf(c,w,x,{...k,chartOption:M()},P,B,I,k.updateReplace)},D=()=>{Yf(x,M(),P,B,k.updateReplace)},I=()=>{Wf(x,k,T,B)},_=()=>{yo(x)},E=()=>{jf(x)},L=g((()=>pe("cpt-echm",{...q("width",k.width,"smart"),...q("height",k.height,"smart"),...q("opa",k.dataOpacity),...q("blur",k.dataBlur,"px")})));K((()=>k.geoJsonData),(async()=>{if(x.value){if(!c)return;await mo(c,k.mapName,k.geoJsonData),de((()=>{D()}))}}),{deep:!0}),K((()=>k.ready),(e=>{e&&O()})),K((()=>k.chartOption),(()=>{x.value&&de((()=>{D()}))}),{deep:!0}),K((()=>s.value),(async e=>{!x.value||!e||(B("chartThemeChanged",{chart:x.value,theme:e}),await de(),x.value.setTheme("eTheme"),x.value.setOption(M(),k.updateReplace))})),K((()=>r.value),((e,t)=>{"root"==v.value(k.resizeObserver)&&e>t&&j()}));const j=async()=>{T.resizing=!0,E(),await de(),setTimeout((()=>{T?.resizing&&(T.resizing=!1)}),500)};return ye((()=>{k.ready&&de((()=>{O()}))})),At((()=>{_()})),t({resize:E,getChart:()=>Gf(x),setOption:(e,t)=>{Ff(x,M(e),t)},initChart:O,clear:()=>{Hf(x)},resetMapView:()=>{Uf(x)},dispose:_}),(t,l)=>{const a=Fe("tui-resize");return A(),Z(ct($.value),pt(Vt(z.value)),{default:W((()=>[we(u("div",Ne({ref_key:"mapRef",ref:w},f(b),{class:["tui-echarts-map",{"is-resizing":T.resizing}],style:L.value}),null,16),[[a,{callback:j,uid:f(V),disabled:"self"!=f(v)(e.resizeObserver)}]]),e.enableBreadcrumb&&R.value.length>0?(A(),h("div",{key:0,class:"tui-echm-breadcrumb",style:fe(N.value)},[(A(!0),h(ie,null,ze(R.value,((e,t)=>(A(),h("div",{key:`${e.code}-${t}`,class:"tui-echm-bc-item",onClick:l=>((e,t)=>{const l=R.value.slice(0,t+1);B("breadcrumbClick",{item:e,index:t,breadcrumb:l,chart:x.value})})(e,t)},[u("span",Xf,F(e.name),1)],8,Kf)))),128)),l[0]||(l[0]=u("i",{class:"tui-icon ti-map tui-echm-bc-icon"},null,-1))],4)):C("",!0),X(t.$slots,"default")])),_:3},16)}}}),ep={key:0,class:"tui-pa-inner"},tp={class:"tui-pa-title"},lp={class:"tui-pa-content"},ap={key:0,class:"tui-pa-debug"},np=["placeholder"],op={class:"tui-pa-action"},un="TuiPanicAlert",ip=Object.assign({name:un},{__name:"index",props:{modelValue:{type:Boolean,default:null},icon:{type:String,default:null},title:{type:String,default:null},content:{type:String,default:null},showClose:{type:Boolean,default:!1},blur:{type:Boolean,default:!0},clearDom:{type:Boolean,default:!1},fallBackPath:{type:String,default:null},silenceCondition:{type:Object,default:{}},mute:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},type:{type:String,default:"danger",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},tone:{type:String,default:"strong",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},transparent:{type:Boolean,default:!1},backgroundBlur:{type:Boolean,default:!0},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)}},emits:["open","close","back","update:modelValue"],setup(e,{emit:t}){const{vnode:l,proxy:{$tMessage:a}}=ut(),{hardReload:i,i18n:o,$deviceInfo:n,$gSound:s,audio:r}=Se("$global",null),d=Nn(),c=tr(),p=Bn(un),v=xe("panicAlert"),m=e,y=S(!1),b=S(!0),V=S(!1),w=t,q=Pe({done:!1,config:!1}),x=(e,t)=>o(`panicAlert.${e}`,t),k={device:null,resolutionH:{min:null,max:null},resolutionV:{min:null,max:null},rejectDebugEnv:null,debugMD5:null},B=Pe({domCleared:!1,debug:{alertOn:!1,inputOn:!1,hasKey:!1,input:"",placeHolder:"input the debug code"},icon:"tui-icon ti-comment-times",title:"",content:"",silenceCondition:{}});aa();const T=()=>{l.props.onBack?w("back"):m.fallBackPath?d.push(m.fallBackPath):d.back()},$=async()=>{B.domCleared?i():(V.value=!1,m.modelValue&&w("update:modelValue",!1),w("close",!1),await de(),he.s("closePA"+v,(()=>{y.value=!1,B.icon=null,B.title=null,B.content=null}),500))},z=()=>{B.debug.inputOn=!B.debug.inputOn},R=()=>{const{input:e}=B.debug;if(!e||e.length<8)a({content:x("debugger.codeLength"),type:"warning"});else{const{debugMD5:t}=B.silenceCondition;t==La(e)?(Da.session.s("debugCode",e),a({content:x("debugger.codeCorrect"),type:"success"}),he.s("reloadPA"+v,(()=>{i()}),2e3)):a({content:x("debugger.codeError"),type:"warning"})}},N=async e=>{if(e){const{debugMD5:e}=B.silenceCondition;B.icon="tui-icon ti-bug-ban",B.title=x("debugger.title"),B.content=x("debugger.content")+(e?x("debugger.contentWithCode"):""),O(),await de(),y.value=!0,w("open",!0),B.debug.alertOn=!0}else i()},M=S(null),O=()=>{B.domCleared=!0,Ze.clearExcept(Ze.el("#tuiRoot"),M.value)},D=()=>{c.il()&&(c.st(),c.rl((e=>{N(e)})))},I=e=>{if(e){if(B.silenceCondition=xt.dpm(k,m.silenceCondition),q.config=!0,m.clearDom&&y.value&&O(),!B?.silenceCondition?.rejectDebugEnv)return;{const{rejectDebugEnv:e,debugMD5:t}=B.silenceCondition;if(e){if(!y.value){let l="";if(t){B.debug.hasKey=!0;const e=Da.session.g("debugCode");if(e&&(l=La(e)),e&&t==l)return}("all"==e||"prod"==e&&"prod"==Kl())&&(c.il()||(c.al((e=>{N(e)})),c.lc()))}}else D()}}},_=e=>{if(!m.silenceCondition||B.debug.alertOn)return;const{type:t,resolutionH:l,resolutionV:a}=e,{device:i,resolutionH:o,resolutionV:n}=B.silenceCondition;if(i&&!i.includes(t.split("-")[0])){const e=ga.upperAll(t.split("-")[0]),l=ga.upperAll(i);return B.icon="tui-icon ti-laptop-phone",B.title=x("device.title"),B.content=x("device.content",{deviceA:l,deviceB:e}),y.value=!0,void w("open",!0)}return o.min&&l<o.min?(B.icon="tui-icon ti-computer-alert",B.title=x("resolution.title"),B.content=x("resolution.content",{resoluHV:x("resolution.horizontal"),operator:x("resolution.less"),resoluMinMax:x("resolution.min"),curResol:l,safeResol:o.min}),y.value=!0,void w("open",!0)):o.max&&l>o.max?(B.icon="tui-icon ti-computer-alert",B.title=x("resolution.title"),B.content=x("resolution.content",{resoluHV:x("resolution.horizontal"),operator:x("resolution.greater"),resoluMinMax:x("resolution.max"),curResol:l,safeResol:o.max}),y.value=!0,void w("open",!0)):n.min&&a<n.min?(B.icon="tui-icon ti-computer-alert",B.title=x("resolution.title"),B.content=x("resolution.content",{resoluHV:x("resolution.vertical"),operator:x("resolution.less"),resoluMinMax:x("resolution.min"),curResol:a,safeResol:n.min}),y.value=!0,void w("open",!0)):n.max&&a>n.max?(B.icon="tui-icon ti-computer-alert",B.title=x("resolution.title"),B.content=x("resolution.content",{resoluHV:x("resolution.vertical"),operator:x("resolution.greater"),resoluMinMax:x("resolution.max"),curResol:a,safeResol:n.max}),y.value=!0,void w("open",!0)):void(y.value&&!m.modelValue&&$())};K((()=>m.silenceCondition),(e=>{E(e)}),{deep:!0}),K((()=>n.value),(e=>{_(e)}),{deep:!0}),K((()=>m.modelValue),(e=>{(e=>{if(e){const{title:e,content:t}=B;e||(B.title=x("example.title")),t||(B.content=x("example.content")),y.value=!0,w("open",!0),m.clearDom&&O()}else{if(b.value)return;y.value=!1,w("close",!1)}})(e)}),{immediate:!0}),K((()=>y.value),(async e=>{e&&(he.c("closePA"+v),await de(),s.value&&r.play("errorB"),V.value=!0)}));const E=e=>{I(e),_(n.value)},L=S({appearance:"background",type:g((()=>m.type)),tone:g((()=>m.tone)),transparent:g((()=>m.transparent)),backgroundBlur:g((()=>m.backgroundBlur)),hasShadow:g((()=>m.hasShadow)),shadowColor:g((()=>m.shadowColor))});return Al((()=>{})),ye((()=>{E(m.silenceCondition),b.value=!1,q.config&&(q.done=!0)})),At((()=>{D(),b.value=!0})),(t,l)=>{const a=ke("TuiButton"),i=ke("TuiTyped"),n=ke("TuiMask"),s=Fe("tui-popover"),r=Fe("tui-vcid");return b.value?C("",!0):(A(),Z(Tt,{key:0,to:"#tuiRoot",fallback:"#app",disabled:b.value},[q.done?we((A(),h("div",{key:0,ref_key:"panicAlertRef",ref:M,class:"tui-panic-alert"},[ce(Me,{name:"fade"},{default:W((()=>[y.value?(A(),h("div",ep,[we(ce(i,pt(Vt(L.value)),{default:W((()=>[u("i",{class:P(`tui-pa-icon ${e.icon||B.icon}`)},null,2),u("div",tp,F(e.title||B.title),1),u("div",lp,F(e.content||B.content),1),B.debug.alertOn&&B.debug.inputOn?(A(),h("div",ap,[we(u("input",{class:"tui-pa-debug-input tui-input","onUpdate:modelValue":l[0]||(l[0]=e=>B.debug.input=e),placeholder:x("debugger.inputCode"),type:"text"},null,8,np),[[Ks,B.debug.input]]),ce(a,{onClick:R},{default:W((()=>[...l[1]||(l[1]=[u("i",{class:"tui-icon ti-check"},null,-1)])])),_:1}),ce(a,{onClick:z},{default:W((()=>[...l[2]||(l[2]=[u("i",{class:"tui-icon ti-times"},null,-1)])])),_:1})])):C("",!0),u("div",op,[B.debug.alertOn?C("",!0):(A(),h(ie,{key:0},[e.showClose?we((A(),h("div",{key:1,class:"tui-pa-action-btn",onClick:$},[...l[4]||(l[4]=[u("i",{class:"tui-icon ti-times"},null,-1)])])),[[s,{content:f(o)("common.close"),placement:"bottom",appendTo:"#app",debug:!0,delay:1e3,zIndex:2e3}]]):we((A(),h("div",{key:0,class:"tui-pa-action-btn",onClick:T},[...l[3]||(l[3]=[u("i",{class:"tui-icon ti-chevron-left"},null,-1)])])),[[s,{content:f(o)("common.back"),placement:"bottom",appendTo:"#app",delay:1e3,zIndex:2e3}]])],64)),B.debug.alertOn&&B.debug.hasKey&&!B.debug.inputOn?we((A(),h("div",{key:1,class:"tui-pa-action-btn",onClick:z},[...l[5]||(l[5]=[u("i",{class:"tui-icon ti-key-encrypt"},null,-1)])])),[[s,{content:x("debugger.inputCode"),placement:"bottom",appendTo:"#app",delay:1e3,zIndex:2e3}]]):C("",!0)])])),_:1},16),[[Oe,V.value]])])):C("",!0)])),_:1})])),[[r,f(p)]]):C("",!0),ce(n,{"model-value":y.value&&V.value&&e.modal},null,8,["model-value"])],8,["disabled"]))}}}),bo={width:[Number,String],height:[Number,String],data:{type:Array,required:!0,default:()=>[]},innerRadiusPercent:{type:Number,default:50,validator:e=>e>=0&&e<=95},cornerRadius:{type:Number,default:10},gapSize:{type:Number,default:10},useGradient:{type:Boolean,default:!1},gradientRatio:{type:Number,default:.3},thicknessColorRatio:{type:Number,default:2},showCenterText:{type:Boolean,default:!0},radiusRatio:{type:Number,default:.8},chartTitle:{type:String,default:"Total"},pieOffset:Number,centerTextOffset:Number,unit:String,hoverOffset:{type:Number,default:5},clickable:{type:Boolean,default:!1},inactiveOpacity:{type:Number,default:.4,validator:e=>"number"==typeof e&&e>=0&&e<=1},activeIndex:{type:Number,default:null},animationDuration:{type:Number,default:750},animationEasing:{type:String,default:"cubic-bezier(0.23, 1, 0.32, 1)"},animate:{type:Boolean,default:!0},legendShow:{type:Boolean,default:!0},legendPosition:{type:String,default:"bottom",validator:e=>["bottom","top","left","right"].includes(e)},legendTeleportTo:{type:[String,Object],default:null},legendWidth:[Number,String],showShadowGroup:{type:Boolean,default:!1},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},sp={transformOriginTop:[Number,String],...bo,legendTeleportTo:{type:[String,Object],default:"default"},transform3D:{type:Object,default:{x:0,y:0,z:0}},t3DConfig:Object},rp=["width","height","viewBox"],Ap=["cx","cy","r","id"],up=["stop-color"],cp=["stop-color"],dp={key:0,class:"tui-pie-shadow"},fp=["fill","d","transform"],pp=["d","fill","transform","onMouseover","onMouseleave","onClick"],gp={class:"tui-pie-total-val"},hp={class:"tui-pie-total-name"},vp={key:0,class:"tui-pie-total-unit"},Vo=Object.assign({name:"TuiPie"},{__name:"pie",props:bo,emits:["sliceHover","sliceLeave","sliceClick","itemClick","legendChange"],setup(e,{emit:t}){const{$themePalette:l,$optResizeCounter:a,initResizeBy:i}=Se("$global",null),o=i(),n=e,s=t,r=xe("pie3D"),d=S(!1),c=S(!1),p=S(!1),v=Pe({width:300,height:300,hovSliceIdx:null,hovLegendIdx:null,isResizing:!1,dftColors:[]}),m=e=>{if("string"!=typeof e||!e.trim())return!1;const t=e.trim();return"string"==typeof Ke[t]||(!(typeof CSS<"u"&&"function"==typeof CSS.supports)||CSS.supports("color",t))},y=()=>{Array.isArray(n.data)&&0!==n.data.length?(n.data.some((e=>!m(e?.color)))||v.dftColors.length!==n.data.length)&&(()=>{if(!xt.isEmpty(l.value)){const e=n.data.length,t=["#197fe6","#47eb99","#eaeb47","#eb9947","#eb4747","#9947eb"];v.dftColors=Ke.scale(t,e)}})():v.dftColors=[]},b=(e,t)=>m(e?.color)?e.color:v.dftColors[t%v.dftColors.length],V=S([]),w=S(!1);K((()=>n.data),(e=>{if(y(),!n.animate)return void(V.value=e.map(((e,t)=>{const l={...e};return!m(l.color)&&v.dftColors.length>0&&(l.color=b(l,t)),{...l,animValue:l&&"number"==typeof l.value&&l.value>0?l.value:0}})));const t={};V.value.forEach((e=>{e&&e.label&&(t[e.label]={animValue:e.animValue||0,color:e.color})}));const l=e.map(((e,l)=>{const a=e.label&&void 0!==t[e.label]?t[e.label].animValue:0,i={...e};return!m(i.color)&&v.dftColors.length>0&&(i.color=b(i,l)),{...i,animValue:a,targetValue:i&&"number"==typeof i.value&&i.value>0?i.value:0}})),a=new Set(e.map((e=>e.label))),i=[];Object.keys(t).forEach((e=>{!a.has(e)&&t[e].animValue>0&&i.push({label:e,color:t[e].color,animValue:t[e].animValue,targetValue:0,value:0})})),V.value=[...l,...i],n.animate&&!w.value&&(w.value=!0,function(){if(!n.animate)return;const e=Date.now(),t=n.animationDuration,l=()=>{const a=Date.now()-e,i=Math.min(a/t,1),o=((e,t)=>{switch(t){case"linear":return e;case"ease-in":return e*e;case"ease-out":return e*(2-e);case"ease-in-out":return e<.5?2*e*e:(4-2*e)*e-1;case"cubic-bezier(0.23, 1, 0.32, 1)":default:return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}})(i,n.animationEasing);V.value.forEach((e=>{if(void 0!==e.targetValue){const t=e.animValue||0,l=e.targetValue-t;e.animValue=t+l*o}})),i<1?ft.s(`${r}_ani`,l):(V.value.forEach((e=>{void 0!==e.targetValue&&(e.animValue=e.targetValue)})),w.value=!1)};ft.s(`${r}_ani`,l)}())}),{deep:!0,immediate:!0});const x=g((()=>v.width/2)),k=g((()=>v.height/2)),B=g((()=>et.min(v.height,v.width))),T=g((()=>B.value/2*n.radiusRatio)),$=g((()=>V.value.reduce(((e,t)=>e+(t&&"number"==typeof t.animValue&&t.animValue>0?t.animValue:0)),0))),z=g((()=>n.data.reduce(((e,t)=>e+(t&&"number"==typeof t.value&&t.value>0?t.value:0)),0))),R=g((()=>Array.isArray(V.value)?V.value.filter((e=>e&&"number"==typeof e.animValue&&e.animValue>0&&e.label)):[])),N=g((()=>R.value.map(((e,t)=>({index:t,label:e.label,color:e.color,value:e.value||e.targetValue||0}))))),M=g((()=>null!=n.activeIndex?n.activeIndex:v.hovSliceIdx??v.hovLegendIdx??null)),O=e=>null==M.value||M.value===e?1:n.inactiveOpacity,D=e=>({"--tui-3dp-thick-color":Ke.darken(e.color,n.thicknessColorRatio),opacity:O(e.index)}),I=g((()=>T.value*(n.innerRadiusPercent/100))),_=g((()=>{const e=[];if($.value<=0||0===R.value.length)return e;const t=2*Math.PI;let l=-Math.PI/2;return R.value.forEach(((a,i)=>{const o=a.animValue/$.value*t;if(o<1e-6)return;const A=l,s=l+o,u=As(x.value,k.value,T.value,I.value,A,s,n.cornerRadius,n.gapSize);if(u.includes("Error"))return;const d=a.color||(v.dftColors.length>0?v.dftColors[i%v.dftColors.length]:"#cccccc"),c=n.useGradient?`url(#${r}-grad-${i})`:d;let p="";if(v.hovSliceIdx===i&&n.hoverOffset>0){const e=A+o/2,t=n.hoverOffset*Math.cos(e),l=n.hoverOffset*Math.sin(e);p=`translate(${t.toFixed(3)}, ${l.toFixed(3)})`}const g=a.value||a.targetValue||a.animValue,f=(g/z.value*100).toFixed(1),h=`${a.label}: ${g.toLocaleString()} (${f}%)`;e.push({idSuffix:i,d:u,fill:c,transform:p,tooltip:h,color:d,originalData:a,index:i}),l=s})),e})),E=g((()=>n.showCenterText&&n.innerRadiusPercent>10&&$.value>0)),L=g((()=>{const e=2*I.value;let t=Math.min(.1*B.value,Math.max(.03*B.value,.15*e));return(0===R.value.length||0===$.value)&&(t=Math.min(.08*B.value,Math.max(.02*B.value,.1*e))),{title:.9*t,total:1.1*t}})),j=g((()=>z.value<=0&&0===R.value.length&&!n.data.some((e=>e&&"number"==typeof e.value&&e.value>0))?"N/A":z.value.toLocaleString())),G=g((()=>pe("cpt-pie",{...q("pieOfs",n.pieOffset,"smart"),...q("totalOfs",n.centerTextOffset,"smart")}))),H=g((()=>pe("cpt-pie-font",{total:L.value.total+"px",title:L.value.title+"px"}))),Q=S(!1),Y=g((()=>["left","right"].includes(n.legendPosition)?"column":"row")),X=g((()=>{if(!p.value||!n.legendTeleportTo)return null;if("string"==typeof n.legendTeleportTo)return typeof document<"u"?document.querySelector(n.legendTeleportTo):null;const e=f(n.legendTeleportTo);return 1===e?.nodeType?e:null})),U=g((()=>!!X.value));K((()=>N.value),(e=>{s("legendChange",e)}),{deep:!0,immediate:!0}),K((()=>a.value),((e,t)=>{"root"==o.value(n.resizeObserver)&&e>t&&J()}));const J=async()=>{v.isResizing=!0,await de(),Q.value&&(v.width=Number(n.width)||Q.value.clientWidth,v.height=Number(n.height)||Q.value.clientHeight),setTimeout((()=>{v.isResizing=!1,c.value=!0}),500)};K((()=>[n.legendPosition,n.legendShow,n.legendTeleportTo]),(async()=>{await de(),J()})),K((()=>N.value.length),(async()=>{await de(),J()}));const ee=({index:e})=>{v.hovLegendIdx=e},te=()=>{v.hovLegendIdx=null};return ye((async()=>{d.value=!0,await de(),p.value=!0,y(),(()=>{y();const e=n.data.map(((e,t)=>{const l={...e};return!m(l.color)&&v.dftColors.length>0&&(l.color=b(l,t)),{...l,animValue:l&&"number"==typeof l.value&&l.value>0?l.value:0}}));V.value=e})()})),(e,t)=>{const l=Fe("tui-cursor-tip"),a=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["tui-pie",`is-legend-${e.legendPosition}`,{"is-resizing":v.isResizing}])},[we((A(),h("div",{class:"tui-pie-main",style:fe(G.value),ref_key:"pieWrapRef",ref:Q},[ce(Me,{name:"fade"},{default:W((()=>[c.value?(A(),h("svg",{key:0,class:"tui-pie-svg",width:v.width,height:v.height,viewBox:`0 0 ${v.width} ${v.height}`},[u("defs",null,[n.useGradient?(A(!0),h(ie,{key:0},ze(_.value,(t=>(A(),h("radialGradient",{cx:x.value,cy:k.value,r:T.value,key:`${f(r)}-grad-${t.idSuffix}`,id:`${f(r)}-grad-${t.idSuffix}`,gradientUnits:"userSpaceOnUse"},[u("stop",{offset:.7,"stop-color":f(Ke).lighten(t.color,e.gradientRatio)},null,8,up),u("stop",{offset:1,"stop-color":f(Ke).darken(t.color,e.gradientRatio)},null,8,cp)],8,Ap)))),128)):C("",!0)]),n.showShadowGroup?(A(),h("g",dp,[(A(!0),h(ie,null,ze(_.value,(e=>(A(),h("path",{style:fe(D(e)),key:e.idSuffix,fill:e.fill,d:e.d,transform:e.transform,class:"t3d-shadow-item"},null,12,fp)))),128))])):C("",!0),u("g",null,[(A(!0),h(ie,null,ze(_.value,(e=>we((A(),h("path",{key:e.idSuffix,d:e.d,fill:e.fill,transform:e.transform,class:"tui-pie-slice",style:fe({opacity:O(e.index),cursor:n.clickable?"pointer":"default"}),onMouseover:t=>((e,t)=>{v.hovSliceIdx=e.index,s("sliceHover",{event:t,data:e.originalData,index:e.index})})(e,t),onMouseleave:t=>((e,t)=>{v.hovSliceIdx=null,s("sliceLeave",{event:t,data:e.originalData,index:e.index})})(e,t),onClick:t=>((e,t)=>{if(!n.clickable)return;const l={event:t,data:e.originalData,index:e.index};s("sliceClick",l),s("itemClick",l)})(e,t)},null,44,pp)),[[l,{content:e.tooltip}]]))),128))])],8,rp)):C("",!0)])),_:1}),E.value?(A(),h("div",{key:0,class:"tui-pie-total text-shadow-item",style:fe(H.value)},[u("div",gp,F(j.value),1),u("div",hp,F(n.chartTitle),1),n.unit?(A(),h("div",vp,"("+F(n.unit)+")",1)):C("",!0)],4)):C("",!0)],4)),[[a,{callback:J,uid:f(r),disabled:"self"!=f(o)(e.resizeObserver)&&c.value}]]),n.legendShow&&N.value.length>0?(A(),Z(Tt,{key:0,to:X.value||"body",disabled:!U.value},[ce(uo,{items:N.value,"active-index":M.value,layout:Y.value,width:n.legendWidth,onItemHover:ee,onItemLeave:te},null,8,["items","active-index","layout","width"])],8,["to","disabled"])):C("",!0)],2),[[Oe,d.value]])])),_:1})}}}),mp={class:"tui-pie3d-inner"},yp=Object.assign({name:"TuiPie3D"},{__name:"index",props:sp,emits:["sliceHover","sliceLeave","sliceClick","itemClick"],setup(e,{emit:t}){const l=e,a=t,i=S(null),o=S(null),n=g((()=>({width:l.width,height:l.height,data:l.data,innerRadiusPercent:l.innerRadiusPercent,cornerRadius:l.cornerRadius,gapSize:l.gapSize,useGradient:l.useGradient,gradientRatio:l.gradientRatio,thicknessColorRatio:l.thicknessColorRatio,showCenterText:l.showCenterText,radiusRatio:l.radiusRatio,chartTitle:l.chartTitle,pieOffset:l.pieOffset,centerTextOffset:l.centerTextOffset,unit:l.unit,hoverOffset:l.hoverOffset,animationDuration:l.animationDuration,animationEasing:l.animationEasing,animate:l.animate,legendShow:l.legendShow,legendPosition:l.legendPosition,legendWidth:l.legendWidth,legendTeleportTo:"default"===l.legendTeleportTo?o.value:l.legendTeleportTo,showShadowGroup:!0,resizeObserver:l.resizeObserver}))),s=g((()=>({mode:"static",transformOrigin:"top",showShadow:!0,thicknessFixGap:!0,thicknessCoeff:.15,shadowCoeff:.1,shadowBlur:3,coeff:1,rotateMax:90,initialRotate:{...l.transform3D},...null!=l.transformOriginTop?{transformOriginTop:l.transformOriginTop}:{},...l.t3DConfig}))),r=e=>{i.value=null!=e?.index?Number(e.index):null,a("sliceHover",e)},d=e=>{i.value=null,a("sliceLeave",e)},c=e=>{a("sliceClick",e),a("itemClick",e)},p=g((()=>pe("cpt-pie3d",{...q("tot",l.transformOriginTop,"smart")})));return(e,t)=>{const a=ke("Tui3DPanel");return A(),Z(Me,{name:"fade"},{default:W((()=>[u("div",{class:P(["tui-pie-3d",`is-legend-${e.legendPosition}`]),style:fe(p.value)},[u("div",mp,[ce(a,Ne(s.value,{class:"tui-pie3d-panel"}),{default:W((()=>[ce(Vo,Ne(n.value,{"active-index":i.value,"inactive-opacity":l.inactiveOpacity,clickable:l.clickable,onSliceHover:r,onSliceLeave:d,onSliceClick:c}),null,16,["active-index","inactive-opacity","clickable"])])),_:1},16)]),l.legendShow?(A(),h("div",{key:0,ref_key:"legendTeleportHostRef",ref:o,class:"tui-pie3d-legend-host"},null,512)):C("",!0)],6)])),_:1})}}}),Zt=new qn,cn=e=>{let t=xt.keyValid(e,["x","y","z"],!1);return t.valid||console.warn("HoverRotate Warning",t.message),t.valid},dn="Tui3DPanel",bp=Object.assign({name:dn},{__name:"index",props:{animationRotate:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["x","y"]);return t||console.warn("Tui3DPanel Warning! ",l),t}},hoverMask:{type:Boolean,default:!1},hoverDelay:{type:Number,default:0},hoverRotate:{type:Object,default:{x:0,y:0,z:0},validator:cn},initialRotate:{type:Object,default:{x:0,y:0,z:0},validator:cn},rotateMax:{type:Number,default:50},rotateMin:{type:Number,default:-50},perspective:Number,transformOrigin:{type:String,default:null,validator:e=>["bottom","top","left","right","left top","center","right top","left bottom","right bottom"].includes(e)},duration:{type:Number,default:null},aniDelay:{type:Number,default:1e3},coeff:{type:Number,default:null},mode:{type:String,default:"auto",required:!0,validator:e=>["hover","matrix","hive","unity","animation","gyro","auto","static"].includes(e)},eventBus:{type:Boolean,default:!1},uesAlpha:{type:Boolean,default:!1},fixAlpha:{type:Number,default:0},showShadow:{type:Boolean,default:!0},shadowCoeff:Number,shadowBlur:Number,shadowTransparent:Number,showThickness:{type:Boolean,default:!0},thicknessLength:Number,thicknessCoeff:Number,thicknessBlur:Number,thicknessTransparent:Number,thicknessColor:{type:String,default:null},thicknessFixGap:{type:Boolean,default:!1},view3d:{type:Boolean,default:!0},inAdaptive:{type:Boolean,default:!0},index:{type:Number,default:0},group:{type:String,default:"t3dcom"}},setup(e){const t=S(null),l=S(!1),{$tState:a,$t3dConfig:i,$gT3D:o,tConsolei18n:n,$deviceInfo:s}=Se("$global",null),r=e,d=Bn(dn),c=xe("t3d"),p=Pe({view3d:!1,hoverState:!1,curAniIndex:0,mode:"",coeff:1,shadowCoeff:1,eventInited:!1,curRotate:{x:0,y:0,z:0},animationRotate:[],aniStart:!1,initialRotate:{},hoverRotate:{},fixAlpha:0,ParmarsBak:{coeff:1,shadowCoeff:1},screenDir:"landscape",screenInvert:!1});rt("TuiT3DPanel",{view3d:g((()=>p.view3d))});const v=g((()=>{const e=p.mode;return r.duration?r.duration:"hive"==e||"matrix"==e||"unity"==e?0:"animation"==e?5e3:"hover"==e?1e3:"gyro"==e?500:void 0})),m=e=>{"hover"==p.mode&&o.value&&p.view3d&&(1==e?(he.c(c+"out"),he.s(c+"in",(()=>{const{x:e,y:t}=p.hoverRotate;w(e,t),he.s(c+"hovSta",(()=>{p.hoverState=!0}),v.value)}),r.hoverDelay)):0==e&&(p.hoverState=!1,he.c(c+"hovSta"),he.c(c+"in"),he.s(c+"out",(()=>{const{x:e,y:t}=p.initialRotate;w(e,t)}),r.hoverDelay)))},y=e=>{if(r.eventBus||0==r.index){let l=t.value.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight;if(r.inAdaptive){const e=Wa(p.ParmarsBak.coeff,p.ParmarsBak.shadowCoeff,a);p.coeff=e[0],p.shadowCoeff=e[1]}const{rotateX:o,rotateY:n}=ja(p.mode,p.coeff,e,l,i,a);w(o,n),Zt.emit(r.group+"t3DBus",e)}else Zt.on(r.group+"t3DBus",(e=>{let l=t.value.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight;if(r.inAdaptive){const e=Wa(p.ParmarsBak.coeff,p.ParmarsBak.shadowCoeff,a);p.coeff=e[0],p.shadowCoeff=e[1]}const{rotateX:o,rotateY:n}=ja(p.mode,p.coeff,e,l,i,a);w(o,n)}))},b=e=>{if(0==r.index||null==r.index){0==p.fixAlpha&&e.alpha&&(p.fixAlpha=e.alpha?.toFixed(5)||0);const t=p.coeff;let{alpha:l,beta:a,gamma:i,delta:o}=us(e,p.fixAlpha,r.uesAlpha);"landscape"!=p.screenDir||p.screenInvert?"portrait"!=p.screenDir||p.screenInvert?"landscape"==p.screenDir&&p.screenInvert?w(i*o*t/3,-a*o*t/3,l*o*t/3):"portrait"==p.screenDir&&p.screenInvert&&w(-a*o*t/3,-i*o*t/3,l*o*t/3):w(a*o*t/3,i*o*t/3,l*o*t/3):w(-i*o*t/3,a*o*t/3,l*o*t/3);const n={fixAlpha:p.fixAlpha,x:p.curRotate.x,y:p.curRotate.y,z:p.curRotate.z};null!=r.index&&Zt.emit(r.group+"t3DGyroBus",n)}else Zt.on(r.group+"t3DGyroBus",(e=>{const{fixAlpha:t,x:l,y:a,z:i}=e;p.fixAlpha=t,p.curRotate.x=l,p.curRotate.y=a,p.curRotate.z=i}))},V=()=>{he.s(c+"panelAni",(()=>{p.aniStart=!0;let e=p.curAniIndex,t=r.animationRotate;w(t[e].x,t[e].y),e!=t.length-1?p.curAniIndex++:p.curAniIndex=0,V()}),p.aniStart?v.value:r.aniDelay)},w=(e,t,l)=>{p.curRotate.x=x(e),p.curRotate.y=x(t),"number"==Qe(l)&&(p.curRotate.z=x(l))},x=e=>{const t=r.rotateMax,l=r.rotateMin;return e>t?t:e<l?l:e},k=()=>{p.mode&&("animation"==p.mode?he.c(c+"panelAni"):"gyro"==p.mode?((r.eventBus||0==r.index)&&p.eventInited&&(We.remove(window,"deviceorientation",c),p.eventInited=!1),null!=r.index&&Zt.off(r.group+"t3DGyroBus"),r.index):((r.eventBus||0==r.index)&&p.eventInited&&(We.remove(window,"mousemove",c,!0),p.eventInited=!1),null!=r.index&&Zt.off(r.group+"t3DBus")),p.curRotate.x=0,p.curRotate.y=0,p.curRotate.z=0)},B=g((()=>pe("cpt-3dp",{...q("thickColor",r.thicknessColor),...q("transOrigin",r.transformOrigin),...q("thickCoeff",r.thicknessCoeff),...q("thickBlur",r.thicknessBlur,"px"),...q("shadowCoeff",p.shadowCoeff,{when:r.shadowCoeff&&1!=p.shadowCoeff}),...q("shadowBlur",r.shadowBlur,"px"),...q("shadowTransp",r.shadowTransparent),...q("thickTransp",r.thicknessTransparent),...q("persp",r.perspective,"px"),...q("dur",v.value,"ms"),...l.value&&{rotateX:p.curRotate.x,rotateY:p.curRotate.y,rotateZ:p.curRotate.z}})));K((()=>[r.coeff,r.shadowCoeff,r.fixAlpha]),(()=>{T()})),K((()=>r.initialRotate),(()=>{T()}),{deep:!0}),K((()=>r.hoverRotate),(()=>{T()}),{deep:!0});const T=()=>{r.hoverRotate&&(p.hoverRotate=xt.dpm(p.curRotate,r.hoverRotate)),r.initialRotate&&(p.initialRotate=xt.dpm(p.curRotate,r.initialRotate),"static"==p.mode&&(p.curRotate=p.initialRotate)),r.coeff&&(p.coeff=r.coeff,p.ParmarsBak.coeff=p.coeff),r.shadowCoeff&&(p.shadowCoeff=r.shadowCoeff,p.ParmarsBak.shadowCoeff=p.shadowCoeff),r.fixAlpha&&(p.fixAlpha=r.fixAlpha)};K((()=>s.value.orientation),(e=>{p.screenDir=e}),{immediate:!0}),K((()=>s.value.screenInvert),(e=>{p.screenInvert=e}),{immediate:!0}),K((()=>[o.value,r.view3d]),(([e,t])=>{p.view3d=!(!e||!t)}),{immediate:!0}),K((()=>p.view3d),(e=>{e?(T(),(async()=>{const e=p.mode;if(e){if(!o.value||!p.view3d)return void(p.curRotate={x:0,y:0,z:0});if("hover"==e){const{x:e,y:t}=p.initialRotate;w(e,t)}else"hive"==e||"matrix"==e||"unity"==e?r.eventBus||0==r.index?(We.add(window,"mousemove",y,c,!0),p.eventInited=!0):y():"animation"==e?V():"gyro"==e?"https:"==window.location.protocol?0==r.index||null==r.index?(typeof DeviceOrientationEvent<"u"&&"function"==typeof DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission(),We.add(window,"deviceorientation",b,c),p.eventInited=!0):b():n("warning","panelGyro","warn.panelGyro"):"static"==e&&(p.curRotate=p.initialRotate)}})()):k()}),{immediate:!0}),K((()=>s.value.type),(async e=>{if(!e)return;p.view3d&&(p.view3d=!1,k()),await de(),(e=>{const t=e;s.value.type,"auto"==r.mode?t.includes("pc")?p.mode="matrix":(t.includes("mobile")||t.includes("pad"))&&(p.mode="gyro"):p.mode=r.mode})(e);const t=p.mode,l=o.value,a=r.view3d;l&&a&&(e.includes("mobile")||e.includes("pad")?("gyro"==t||"animation"==t)&&(p.view3d=!0):e.includes("pc")&&"gyro"!=t&&(p.view3d=!0))}),{immediate:!0});const $=e=>{const t=Ze.el(".tui-3d-panel",!0);t.length>0&&e&&!i.value.inited?a.t3dConfig.inited=!0:0==t.length&&!e&&i.value.inited&&(a.t3dConfig.inited=!1)};return Al((()=>{})),ye((async()=>{l.value=!0,await de(),$(!0)})),At((async()=>{l.value=!0,p.view3d=!1,k(),await de(),$(!1)})),(a,i)=>{const n=Fe("tui-vcid");return l.value?we((A(),h("div",{key:0,style:fe(B.value),class:P(["tui-3d-panel",`is-mode-${e.mode}`,"is-shadow-"+(e.showShadow?"show":"hide"),"is-thickness-"+(e.showThickness?"show":"hide"),{"is-3doff":!f(o)||!p.view3d,"is-fixgap":e.thicknessFixGap}]),ref_key:"t3dRef",ref:t},[u("div",{class:P(["tui-3dp-inner",[{"is-hover":p.hoverState,"has-mask":e.hoverMask&&"hover"==e.mode&&f(o)}]]),onMouseenter:i[0]||(i[0]=e=>m(1)),onMouseleave:i[1]||(i[1]=e=>m(0))},[X(a.$slots,"default",{boxShadowName:"box-shadow-item",textShadowName:"text-shadow-item",t3dShadowName:"t3d-shadow-item",dropShadowName:"drop-shadow-item"})],34)],6)),[[n,f(d)]]):C("",!0)}}}),wo=["default","invert","primary","success","warning","danger","info","emphasis"],_t={base:{lineHeight:30,fontSize:15,iconSize:18,gap:10,paddingX:5,paddingY:5},small:.85,default:1,large:1.15},Vp=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},wp=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?l:t},Jt=(e,t,l=0,a=0)=>{const i=Vp(e,l)*t;return Math.max(a,Math.round(i))},Cp=({size:e,sizeConfig:t})=>{const l=t?.scale||{};return wp(t?.[e]??l[e],_t[e]||_t.default)},$p=e=>({..._t.base,...e?.baseConfig||{},...e?.base||{}}),bl=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},kp=({size:e="default",itemLines:t=1,sizeConfig:l}={})=>{const a=$p(l),i=Cp({size:e,sizeConfig:l}),o=bl(t),n={lineHeight:Jt(a.lineHeight,i,_t.base.lineHeight,1),fontSize:Jt(a.fontSize,i,_t.base.fontSize,1),iconSize:Jt(a.iconSize,i,_t.base.iconSize,1),gap:Jt(a.gap,i,_t.base.gap,0),paddingX:Jt(a.paddingX,i,_t.base.paddingX,0),paddingY:Jt(a.paddingY,i,_t.base.paddingY,0)};return{...n,itemH:n.lineHeight*o+2*n.paddingY}},Co=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?Co(e.children):[e])),Sp=e=>(Co(e||[])||[]).map((e=>e?.props||{})),$o=(e,t="default")=>wo.includes(e)?e:t,qp=({items:e=[],curRoll:t=0,visibleLength:l=1}={})=>{if(1!==bl(l))return"default";const a=Math.max(0,Math.floor(Number(t)||0));return $o(e[a]?.type)},Tp=({props:e,type:t})=>({appearance:e.appearance,hasShadow:e.hasShadow,shadowColor:e.shadowColor,type:$o(t),tone:e.tone,transparent:e.transparent,backgroundBlur:e.backgroundBlur}),Bp=({props:e})=>{const t=e.rollingConfig||{};return{...t,direction:"v",mode:"item",visibleLength:bl(e.visibleLength),initIndex:t.initIndex??null,debug:e.debug,showControl:e.showControl,seamless:e.seamless,interval:e.interval??t.interval,motionBlur:e.motionBlur,duration:e.duration??t.duration??null,delay:e.delay??t.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,hoverPause:e.hoverPause,resizeObserver:e.resizeObserver,fillData:!1,slotObserver:!0,controlLayout:"reserve",controlDirection:"h"}},Ml=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.rollInnerSize=t.rollInnerSize??e.rollInnerSize,e.rollItemSize=t.rollItemSize??e.rollItemSize,e.disablePrev=t.disablePrev??e.disablePrev,e.disableNext=t.disableNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.itemsLen=t.itemsLen??e.itemsLen,e.disableRolling=t.disableRolling??e.disableRolling},xp=Object.assign({name:"TuiRollingNotification"},{__name:"index",props:{visibleLength:{type:Number,default:1,validator:e=>e>0},itemLines:{type:Number,default:1,validator:e=>e>0},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},sizeConfig:{type:Object,default:()=>({})},interval:Number,duration:{type:Number,default:null},delay:{type:Number,default:1e3},showControl:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},seamless:{type:Boolean,default:!0},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},hoverPause:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},backgroundBlur:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},appearance:{type:String,default:"background",validator:e=>["background","text","line","accent","none"].includes(e)},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"match",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},tagConfig:Object,tipConfig:Object,rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=yt(),n=Se("$global",null),s=xe("rollNoti"),r=S(null),u=S(!1),d=S(null),c=S([]),p=Pe({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,itemsLen:0,disablePrev:!1,disableNext:!1,disableRolling:!1}),f=g((()=>bl(a.visibleLength))),v=g((()=>bl(a.itemLines))),h=g((()=>1===f.value)),m=g((()=>1===v.value)),y=g((()=>kp({size:a.size,itemLines:v.value,sizeConfig:a.sizeConfig}))),b=g((()=>qp({items:c.value,curRoll:p.curRoll,visibleLength:f.value}))),V=g((()=>Tp({props:a,type:b.value}))),w=g((()=>Bp({props:a}))),q=g((()=>pe("cpt-rollnoti",{outerH:f.value*y.value.itemH+"px",itemH:`${y.value.itemH}px`,lineHeight:`${y.value.lineHeight}px`,fontSize:`${y.value.fontSize}px`,iconSize:`${y.value.iconSize}px`,gap:`${y.value.gap}px`,paddingX:`${y.value.paddingX}px`,paddingY:`${y.value.paddingY}px`}))),x=(e,t,l)=>{d.value=e,Ml(p,e),((e,t={})=>{a.debug&&console.info(`[TuiRollingNotification:${s}] ${e}`,t)})("update",{info:e,from:t,action:l}),i("update",e,t,l)},k=e=>{d.value=e,Ml(p,e),i("start",e)},B=(e,t,l)=>{d.value=t,Ml(p,t),i("rolling",e,t,l)},T=(e,t)=>{d.value=t,Ml(p,t),i("change",e,t)},P=e=>i("before-roll",e),$=e=>i("after-roll",e),z=(e,t)=>i("play",e,t),R=(e,t)=>i("stop",e,t),N=(e,t)=>i("pause",e,t),M=(e,t)=>i("resume",e,t),O=e=>i("wheel",e),D=()=>r.value?.getInfo?.()||d.value||{state:p};return rt("TuiRollNoti",{tagConfig:g((()=>a.tagConfig)),tipConfig:g((()=>a.tipConfig)),showIndex:g((()=>a.showIndex)),itemLines:v,item1Mod:h,line1Mod:m,locale:g((()=>n?.$gLang?.value||""))}),wl((()=>{c.value=Sp(o.default?.()||[]),c.value})),ye((()=>{u.value=!0})),t({state:p,play:(...e)=>r.value?.play?.(...e),stop:(...e)=>r.value?.stop?.(...e),pause:(...e)=>r.value?.pause?.(...e),resume:(...e)=>r.value?.resume?.(...e),toggle:(...e)=>r.value?.toggle?.(...e),prev:(...e)=>r.value?.prev?.(...e),next:(...e)=>r.value?.next?.(...e),goTo:(...e)=>r.value?.goTo?.(...e),getInfo:D,getState:D,forceUpdate:(...e)=>r.value?.forceUpdate?.(...e),isRolling:()=>r.value?.isRolling?.()||!1,isDisabled:()=>r.value?.isDisabled?.()||!1,scrollToStart:(...e)=>r.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>r.value?.scrollToEnd?.(...e)}),(t,l)=>{const a=ke("TuiRolling"),i=ke("TuiTyped");return A(),Z(i,Ne(V.value,{class:["tui-rolling-notification",`is-size-${e.size}`,{"is-initing":!u.value,"is-one-item":h.value,"is-one-line":m.value}],style:q.value}),{default:W((()=>[u.value?(A(),Z(a,Ne({key:0},w.value,{class:"tui-rnoti-rolling",ref_key:"rollingRef",ref:r,onStart:k,onRolling:B,onUpdate:x,onChange:T,onBeforeRoll:P,onAfterRoll:$,onPlay:z,onStop:R,onPause:N,onResume:M,onWheel:O}),{default:W((()=>[X(t.$slots,"default")])),_:3},16)):C("",!0)])),_:3},16,["class","style"])}}}),Pp={class:"tui-rnoti-label"},Rp=Object.assign({name:"TuiRollingNotificationItem"},{__name:"item",props:{index:Number,icon:{type:String,default:"tui-icon ti-bell"},type:{type:String,default:"default",validator:e=>wo.includes(e)},showIndex:{type:Boolean,default:null},item:Object},setup(e){const t=e,l=Se("TuiRollNoti",null),a=g((()=>null!==t.showIndex?t.showIndex:!!l?.showIndex?.value)),i=g((()=>Number.isFinite(Number(t.index))&&Number(t.index)>=0)),o=g((()=>({...l?.tipConfig?.value||{},lines:l?.itemLines?.value||1}))),n=g((()=>({...l?.tagConfig?.value||{},size:l?.tagConfig?.value?.size||"small",type:l?.tagConfig?.value?.type||t.type})));return(t,s)=>{const r=ke("TuiTag"),d=ke("TuiTextTip"),c=ke("TuiRollingItem");return A(),Z(c,{class:P(["tui-rolling-notification-item",!f(l)?.item1Mod?.value&&`is-type-${e.type}`])},{default:W((()=>[a.value&&i.value?(A(),Z(r,pt(Ne({key:0},n.value)),{default:W((()=>[De(F(Number(e.index)+1),1)])),_:1},16)):C("",!0),e.icon?(A(),h("i",{key:1,class:P(["tui-rnoti-icon",e.icon])},null,2)):C("",!0),u("div",Pp,[ce(d,pt(Vt(o.value)),{default:W((()=>[X(t.$slots,"default")])),_:3},16)])])),_:3},8,["class"])}}}),Cl={type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis","focus"].includes(e)},decoType:{type:String,default:"A",validator:e=>["A","B","C","D","E","F","G","H","I","J"].includes(e)},size:{type:String,default:null,validator:e=>["large","default","small"].includes(e)},customColor:{type:[String,Array],default:null,validator:e=>"string"==Qe(e)?CSS.supports("color",e):"array"==Qe(e)?e.length>0&&e.every((e=>CSS.supports("color",e))):void 0},iconPosition:{type:String,default:"start",validator:e=>["start","end"].includes(e)},nativeType:{type:String,default:"button",validator:e=>["button","submit","reset"].includes(e)},decoDirection:{type:String,default:"br",validator:e=>["tl","tr","bl","br"].includes(e)},borderRadius:Number,decoThickness:{type:Number,default:0},decoOffset:Number,decoSize:{type:Number,default:0},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},link:{type:Boolean,default:!1},text:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textWithBG:{type:Boolean,default:!1},icon:String},zp=["disabled","type"],Np=Object.assign({name:"TuiButton"},{__name:"button",props:{...Cl},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tService:{$gThemeScheme:a}}}=ut(),i=e,o=g((()=>{const e=i.customColor;if(!e)return;let t=Ke.genColors(e,7,50);return"dark"==a.value&&(t=t.reverse()),pe("custom",Ke.genColorObj(t))})),n=t,s=Se("TuiButtonG",null),r=g((()=>s?.size?.value||i.size)),u=e=>{i.disabled||i.loading||n("click",e)};return ye((()=>{})),(e,t)=>(A(),h("button",{class:P([!e.link&&!e.text&&"tui-button",`is-type-${e.customColor?"custom":e.type}`,r.value&&`is-size-${r.value}`,{"tui-button-link":e.link,"tui-button-text":e.text,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle,"text-has-bg":e.textWithBG&&e.text,"is-disabled":e.disabled}]),disabled:e.disabled,type:e.nativeType,onClick:u,style:fe(e.customColor?o.value:null)},[e.icon?(A(),h("i",{key:0,class:P(e.icon)},null,2)):C("",!0),f(l).default&&!e.circle?X(e.$slots,"default",{key:1}):C("",!0)],14,zp))}}),Ip=["disabled","type"],Mp=Object.assign({name:"TuiButtonA1"},{__name:"buttonA1",props:{...Cl},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tState:a,$tService:{$gThemeScheme:i}}}=ut(),o=e,n=t,s=e=>{o.disabled||o.loading||n("click",e)},r=g((()=>pe("cpt-btn",{...q("bdra",o.borderRadius,{append:"px",zero:!0}),...q("decoOfs",o.decoOffset,{append:"px",zero:!0}),...q("decoThick",o.decoThickness,"px"),...q("decoSize",o.decoSize,"px")}))),d=g((()=>{const e=o.customColor;if(!e)return;let t=Ke.genColors(e,7,50);return"dark"==i.value&&(t=t.reverse()),pe("custom",Ke.genColorObj(t))}));return(e,t)=>(A(),h("button",{class:P(["tui-button","tui-button-a1",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,"B"==e.decoType&&`is-caret-${e.decoDirection}`,{"is-plain":e.plain,"is-disabled":e.disabled}]),disabled:e.disabled,type:e.nativeType,onClick:s,style:fe([e.customColor?d.value:null,r.value])},[e.icon?(A(),h("i",{key:0,class:P(e.icon)},null,2)):C("",!0),f(l).default?X(e.$slots,"default",{key:1}):C("",!0),"C"==e.decoType?(A(),h(ie,{key:2},[t[0]||(t[0]=u("div",{class:"bd-angle-left"},null,-1)),t[1]||(t[1]=u("div",{class:"bd-angle-right"},null,-1))],64)):C("",!0),"B"==e.decoType?(A(),h("div",{key:3,class:P(`tui-caret caret-${e.decoDirection}`),style:fe(r.value)},null,6)):C("",!0)],14,Ip))}}),Dp=["disabled","type"],Op=Object.assign({name:"TuiButtonA2"},{__name:"buttonA2",props:{...Cl},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tService:{$gThemeScheme:a}}}=ut(),i=e,o=t,n=e=>{i.disabled||i.loading||o("click",e)},s=g((()=>pe("cpt-btn",{...q("bdra",i.borderRadius,{append:"px",zero:!0}),...q("decoThick",i.decoThickness,"px")}))),r=g((()=>{const e=i.customColor;if(!e)return;let t=Ke.genColors(e,7,50);return"dark"==a.value&&(t=t.reverse()),pe("custom",Ke.genColorObj(t))}));return(e,t)=>(A(),h("button",{class:P(["tui-button","tui-button-a2",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,{"is-plain":e.plain,"is-disabled":e.disabled,"has-icon":e.icon||f(l).icon}]),disabled:e.disabled,type:e.nativeType,onClick:n,style:fe([e.customColor?r.value:null,s.value])},[e.icon?(A(),h("i",{key:0,class:P(e.icon)},null,2)):C("",!0),f(l).default&&!e.circle?X(e.$slots,"default",{key:1}):C("",!0)],14,Dp))}}),_p=["disabled","type"],ko=Object.assign({name:"TuiButtonA3"},{__name:"buttonA3",props:{...Cl},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tService:{$gThemeScheme:a}}}=ut(),i=e,o=t,n=e=>{i.disabled||i.loading||o("click",e)},s=g((()=>pe("cpt-btn",{...q("bdra",i.borderRadius>8?8:i.borderRadius,{append:"px",zero:!0}),...q("decoOfs",i.decoOffset,{append:"px",zero:!0}),...i.decoThickness>0&&{decoThick:i.decoThickness+"px",decoThick_hov:i.decoThickness+i.decoThickness/2+"px"}}))),r=g((()=>{const e=i.customColor;if(!e)return;let t=Ke.genColors(e,7,50);return"dark"==a.value&&(t=t.reverse()),pe("custom",Ke.genColorObj(t))}));return(e,t)=>(A(),h("button",{class:P(["tui-button","tui-button-a3",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,{"is-plain":e.plain,"is-disabled":e.disabled,"has-icon":e.icon||f(l).icon}]),disabled:e.disabled,type:e.nativeType,onClick:n,style:fe([e.customColor?r.value:null,s.value])},[e.icon?(A(),h("i",{key:0,class:P(e.icon)},null,2)):C("",!0),f(l).default&&!e.circle?X(e.$slots,"default",{key:1}):C("",!0)],14,_p))}}),Ep=["disabled","type"],Lp={class:"tui-btn-icon-wrap"},Wp=Object.assign({name:"TuiButtonB1"},{__name:"buttonB1",props:{...Cl},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tState:a,$tService:{$gThemeScheme:i}}}=ut(),o=e,n=g((()=>o.icon||"start"==o.iconPosition&&"tui-icon ti-chevron-left"||"end"==o.iconPosition&&"tui-icon ti-chevron-right")),s=t,r=e=>{o.disabled||o.loading||s("click",e)},d=g((()=>{const e=o.customColor;if(!e)return;let t=Ke.genColors(e,7,50);return"dark"==i.value&&(t=t.reverse()),pe("custom",Ke.genColorObj(t))}));return(e,t)=>(A(),h("button",{class:P(["tui-button","tui-button-b1",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,"B"==e.decoType&&`is-caret-${e.decoDirection}`,{"is-plain":e.plain,"is-disabled":e.disabled,"is-icon-end":"end"===e.iconPosition}]),disabled:e.disabled,type:e.nativeType,onClick:r,style:fe([e.customColor?d.value:null])},[u("div",Lp,[u("i",{class:P(`tui-btn-icon ${n.value}`)},null,2)]),f(l).default?X(e.$slots,"default",{key:0}):C("",!0)],14,Ep))}}),jp=Object.assign({name:"TuiButtonGroup"},{__name:"buttonGroup",props:{size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},vertical:{type:Boolean,default:!1}},setup(e){const t=e;return rt("TuiButtonG",{size:g((()=>t.size)),appearance:"default"}),(t,l)=>(A(),h("div",{class:P(["tui-button-group",[`is-size-${e.size}`,{"is-vertical":e.vertical}]])},[X(t.$slots,"default")],2))}}),Gp={key:0,class:"tui-tgl-label_deact"},Fp={key:0,class:"tui-tgl-label"},Hp={key:1,class:"tui-tgl-label_act"},Ba=Object.assign({name:"TuiToggle"},{__name:"index",props:{activeText:String,inactiveText:String,inlinePrompt:Boolean,width:Number,appearance:{type:String,default:"toggleRect",validator:e=>["toggleRound","toggleRect","icon","iconPlain","iconButton"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},icon:{type:[String,Array],default:["tui-icon ti-toggle-off","tui-icon ti-toggle-on"]},modelValue:{type:Boolean,required:!0},disabled:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{proxy:l}=ut(),a=e,i=Se("TuiForm",null),o=g((()=>i?.size?.value||a.size)),n=g((()=>i?.disabled?.value||a.disabled)),s=g((()=>pe("cpt-tgl",{...q("w",a.width,"px")}))),r=g((()=>"array"==Qe(a.icon)?a.icon[1]:"string"==Qe(a.icon)?a.icon:void 0)),d=g((()=>"array"==Qe(a.icon)?2==a.icon.length?a.icon[0]:a.icon[1]:a.icon)),c=t,p=()=>{n.value||(c("update:modelValue",!a.modelValue),c("change",!a.modelValue))};return ye((()=>{})),(t,l)=>(A(),h("div",{class:P(["tui-toggle",""+(e.modelValue?"is-active":"is-inactive"),`is-appr-${e.appearance}`,`is-size-${o.value}`,{"is-disabled":n.value}]),style:fe(s.value)},[!e.inlinePrompt&&e.inactiveText?(A(),h("div",Gp,F(e.inactiveText),1)):C("",!0),u("div",{onClick:p,class:"tui-tgl-core"},[u("div",{class:P(`tui-tgl-inner ${e.appearance.includes("icon")?e.modelValue?r.value:d.value:""}`)},null,2),e.inlinePrompt?(A(),h("div",Fp,[!e.modelValue&&e.inactiveText?(A(),h(ie,{key:0},[De(F(e.inactiveText),1)],64)):C("",!0),e.modelValue&&e.activeText?(A(),h(ie,{key:1},[De(F(e.activeText),1)],64)):C("",!0)])):C("",!0)]),!e.inlinePrompt&&e.activeText?(A(),h("div",Hp,F(e.activeText),1)):C("",!0)],6))}}),Up={key:0,class:"tui-cpt-label"},Qp=Object.assign({name:"TuiControlPanelToggle"},{__name:"toggleControlPanel",props:{modelValue:{type:Boolean,default:!1},appearance:{type:String,default:"iconPlain"},size:{type:String,default:"default"},icon:{type:[String,Array],default:"tui-icon ti-cog"},showLabel:{type:Boolean,default:!1},label:{type:String,default:null},direction:{type:String,default:"h"}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{proxy:l,proxy:{$tState:a,$tService:i}}=ut(),{controlPanelToggle:o,$controlPanel:n,$globalConfig:s,i18n:r}=i,u=e,d=t,c=S(!1),p=S(!1);K((()=>n.value.visible),(e=>{c.value=e,d("update:modelValue",e),d("change",e)}));const f=e=>{c.value&&o()},v=g((()=>u.label?u.label:r("controlPanel.title")));return ye((()=>{null!=u.modelValue?(c.value=u.modelValue,n.value.show=u.modelValue):c.value=n.value.show,p.value=!0})),(t,l)=>(A(),h("div",{class:P(["tui-control-panel-toggle","v"==e.direction?"is-vertical":"is-horizontal"])},[e.showLabel?(A(),h("div",Up,F(v.value),1)):C("",!0),p.value?(A(),Z(Ba,{key:1,appearance:e.appearance,size:e.size,icon:e.icon,onClick:f,modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=e=>c.value=e)},null,8,["appearance","size","icon","modelValue"])):C("",!0)],2))}}),Yp={key:0,class:"tui-3dpt-label"},Kp=Object.assign({name:"TuiT3DPanelToggle"},{__name:"toggleT3DPanel",props:{modelValue:{type:Boolean,default:!1},appearance:{type:String,default:"iconPlain"},size:{type:String,default:"default"},icon:{type:[String,Array],default:["tui-icon ti-grid","tui-icon ti-cube"]},showLabel:{type:Boolean,default:!1},label:{type:String,default:null},direction:{type:String,default:"h"}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{proxy:{$tState:l,$tService:a}}=ut(),{$gT3D:i,$globalConfig:o,i18n:n}=a,s=e,r=t,u=S(!1),d=S(!1);K((()=>o.value.t3D),(e=>{u.value=e,r("update:modelValue",e),r("change",e)}));const c=()=>{o.value.t3D=u.value},p=g((()=>s.label?s.label:n("controlPanel.label.t3D")));return ye((()=>{(s.modelValue!=i.value||u.value!=i.value)&&(u.value=i.value,r("update:modelValue",i.value)),d.value=!0})),(t,l)=>(A(),h("div",{class:P(["tui-3d-panel-toggle","v"==e.direction?"is-vertical":"is-horizontal"])},[e.showLabel?(A(),h("div",Yp,F(p.value),1)):C("",!0),d.value?(A(),Z(Ba,{key:1,appearance:e.appearance,size:e.size,icon:e.icon,onClick:c,modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=e=>u.value=e)},null,8,["appearance","size","icon","modelValue"])):C("",!0)],2))}}),Xp={key:0,class:"tui-flex-debug-tag"},Zp=Object.assign({name:"TuiFlex"},{__name:"index",props:{direction:{type:String,default:"row",validator:e=>["row","column","row-reverse","column-reverse"].includes(e)},wrap:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"wrap","nowrap","reverse","wrap-reverse"].includes(e)},gap:[Number,String],rowGap:[Number,String],colGap:[Number,String],align:{type:String,default:null,validator:e=>null==e||["start","center","end","stretch","baseline"].includes(e)},justify:{type:String,default:null,validator:e=>null==e||["start","center","end","between","around","evenly"].includes(e)},inline:{type:Boolean,default:!1},full:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},center:{type:Boolean,default:!1},between:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},setup(e){const t=e,l={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},a={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},i=g((()=>t.vertical?"column":t.direction)),o=g((()=>!0===t.wrap?"wrap":"reverse"===t.wrap?"wrap-reverse":t.wrap||"nowrap")),n=g((()=>t.center?"center":l[t.align])),s=g((()=>t.center?"center":t.between?"space-between":a[t.justify])),r=g((()=>pe("cpt-flex",{display:t.inline?"inline-flex":"flex",dir:i.value,wrap:o.value,...q("gap",t.gap,{smartAppend:!0,zero:!0}),...q("rgap",t.rowGap,{smartAppend:!0,zero:!0}),...q("cgap",t.colGap,{smartAppend:!0,zero:!0}),...q("align",n.value),...q("jc",s.value)})));return(t,l)=>(A(),h("div",{class:P(["tui-flex-wrap",{"is-full":e.full,"is-debug":e.debug}]),style:fe(r.value)},[X(t.$slots,"default"),e.debug?(A(),h("span",Xp,F(i.value)+" / "+F(o.value),1)):C("",!0)],6))}}),So=Object.assign({name:"TuiScalePanel"},{__name:"index",props:{scale:{type:Number,default:1},scaleX:Number,scaleY:Number,scaleSafe:{type:Boolean,default:!0},minContentWidth:{type:Number,default:200},minContentHeight:{type:Number,default:200},width:[String,Number],height:[String,Number],contentWidth:[String,Number],contentHeight:[String,Number],padding:[String,Number],overflow:{type:String,default:"auto"},transformOrigin:{type:String,default:"center center"},stageClassName:String,contentClassName:String},emits:["resize","scaleSafe"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=S(null),n=xe("scalePanel"),s=Pe({width:0,height:0});let r=!1;const d=g((()=>null!=a.scaleX||null!=a.scaleY)),c=g((()=>a.scaleX??a.scale??1)),p=g((()=>a.scaleY??a.scale??1)),v=(e,t,l)=>{if(null==e)return t?t/l+"px":null;if("number"===Qe(e))return e/l+"px";const a=`${e}`.trim();return a.endsWith("px")?parseFloat(a)/l+"px":a.endsWith("%")?t?t*parseFloat(a)/100/l+"px":null:a},m=(e,t,l)=>a.scaleSafe&&t&&l?Math.min(e,t/l):e,y=g((()=>m(c.value,s.width,a.minContentWidth))),b=g((()=>m(p.value,s.height,a.minContentHeight))),V=g((()=>v(a.contentWidth,s.width,y.value))),w=g((()=>v(a.contentHeight,s.height,b.value))),x=g((()=>{return e=y.value,t=b.value,d.value?`scale(${e}, ${t})`:`scale(${e})`;var e,t})),C=g((()=>"dev"===Kl())),k=g((()=>pe("cpt-scpan",{...q("w",a.width,{smartAppend:!0,zero:!0}),...q("h",a.height,{smartAppend:!0,zero:!0}),...q("pd",a.padding,{smartAppend:!0,zero:!0}),...q("stageW",V.value),...q("stageH",w.value),ov:a.overflow,tsfOrigin:a.transformOrigin,tsf:x.value}))),B=({width:e=0,height:t=0}={})=>{s.width=o.value?.clientWidth||e,s.height=o.value?.clientHeight||t,i("resize",{width:s.width,height:s.height,scaleX:y.value,scaleY:b.value})};return K((()=>[c.value,p.value,y.value,b.value]),(()=>{if(!a.scaleSafe||!C.value||r||y.value===c.value&&b.value===p.value)return;r=!0;const e={scaleX:c.value,scaleY:p.value,safeScaleX:y.value,safeScaleY:b.value,minContentWidth:a.minContentWidth,minContentHeight:a.minContentHeight};i("scaleSafe",e),console.warn("[TuiScalePanel] scaleSafe clamped scale.",e)})),K((()=>a.scaleSafe),(()=>{r=!1})),ye((()=>{B()})),t({update:B,getSize:()=>({...s}),getScale:()=>({scaleX:y.value,scaleY:b.value})}),(t,l)=>{const a=Fe("tui-resize");return we((A(),h("div",{ref_key:"rootRef",ref:o,class:"tui-scale-panel",style:fe(k.value)},[u("div",{class:P(["tui-scpan-stage",e.stageClassName])},[u("div",{class:P(["tui-scpan-content",e.contentClassName])},[X(t.$slots,"default")],2)],2)],4)),[[a,{callback:B,uid:f(n)}]])}}}),Jp={key:0,class:"tui-grid-debug-tag"},eg=Object.assign({name:"TuiGrid"},{__name:"index",props:{rows:{type:Number,default:3},cols:{type:Number,default:3},gap:[Number,String],debug:{type:Boolean,default:!1},rowConfig:{type:Array,default:()=>[]},colConfig:{type:Array,default:()=>[]},cellConfig:{type:Object,default:()=>({})}},setup(e){const t=e,l=g((()=>t.rows*t.cols)),a=e=>Math.floor(e/t.cols),i=e=>e%t.cols,o=e=>`cell-${a(e)}-${i(e)}`,n=e=>{const l=`${a(e)}-${i(e)}`;return t.cellConfig[l]||{}},s=g((()=>Array.from({length:l.value},((e,t)=>({index:t,row:a(t),col:i(t),slotName:o(t),config:n(t)}))).filter((e=>!(e=>{if(n(e).hidden)return!0;const l=a(e),o=i(e);for(const[e,a]of Object.entries(t.cellConfig)){const[t,i]=e.split("-").map(Number),n=a.rowSpan||1,A=a.colSpan||1;if(l>=t&&l<t+n&&o>=i&&o<i+A&&(l!==t||o!==i))return!0}return!1})(e.index))))),r=g((()=>0===t.rowConfig.length?`repeat(${t.rows}, 1fr)`:t.rowConfig.map((e=>"number"==typeof e.size?`${e.size}fr`:e.size||"1fr")).join(" "))),u=g((()=>0===t.colConfig.length?`repeat(${t.cols}, 1fr)`:t.colConfig.map((e=>"number"==typeof e.size?`${e.size}fr`:e.size||"1fr")).join(" "))),d=g((()=>pe("cpt-grid",{tplRows:r.value,tplCols:u.value,...q("gap",t.gap,"smart")}))),c=e=>{const t=n(e);return pe("cpt-grid-item",{...q("rowEnd",`span ${t.rowSpan}`,{when:t.rowSpan}),...q("colEnd",`span ${t.colSpan}`,{when:t.colSpan}),...q("potEvt",t.pointerEvent)})};return(t,l)=>(A(),h("div",{class:P(["tui-grid-wrap",{"is-debug":e.debug}]),style:fe(d.value)},[(A(!0),h(ie,null,ze(s.value,(l=>(A(),h("div",{key:l.slotName,class:P(["tui-grid-item",`tui-cell-${l.row}-${l.col}`,l.config?.className]),style:fe(c(l.index))},[X(t.$slots,l.slotName,{row:l.row,col:l.col}),e.debug?(A(),h("span",Jp,F(l.slotName),1)):C("",!0)],6)))),128))],6))}}),tg={key:0,class:"tui-maximize"},lg=Object.assign({name:"TuiMaximize"},{__name:"index",props:{modelValue:Boolean,appendTo:String,zIndex:{type:Number,default:2001},scale:{type:Number,default:1},scaleX:Number,scaleY:Number,scaleSafe:{type:Boolean,default:!0},scalePanelConfig:{type:Object,default:()=>({})},width:[String,Number],height:[String,Number],inset:[String,Number,Array,Object],padding:[String,Number],component:[Object,Function,String],componentProps:{type:Object,default:()=>({})},title:String,titleComponent:{type:[Object,Function,String],default:"TuiTitleA1"},titleConfig:{type:Object,default:()=>({})},showMaximizeBtn:{type:Boolean,default:!0},maximizeBtnPosition:{type:Object,default:()=>({top:8,right:8})},restoreBtnPosition:{type:Object,default:()=>({top:8,right:8})},frameComponent:[Object,Function,String],frameProps:{type:Object,default:()=>({})},modal:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},className:String,contentClassName:String,frameClassName:String,buttonClassName:String,returnClassName:String,maximizeBtnConfig:{type:Object,default:()=>({})},restoreBtnConfig:{type:Object,default:()=>({})},transitionName:{type:String,default:"fade"}},emits:["update:modelValue","open","opened","close","closed"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Se("$global",null),n=o?.$gEscCounter,s=o?.$optFloaterTo,r=S(!0),d=S(!1),c=S(null),p=`${xe("maximize")}_closed`;let f=null;const v=g((()=>a.appendTo||s?.value||"#tuiRoot")),m=g((()=>null!=a.width||null!=a.height)),y=g((()=>a.modal)),b=g((()=>a.zIndex+(y.value?1:0))),V=e=>null==e?null:"number"===Qe(e)?`${e}px`:e,w=(e={})=>({...q("tp",e.top,{smartAppend:!0,zero:!0}),...q("rt",e.right,{smartAppend:!0,zero:!0}),...q("bt",e.bottom,{smartAppend:!0,zero:!0}),...q("lt",e.left,{smartAppend:!0,zero:!0})}),x=g((()=>{return pe("cpt-maxi",{z:b.value,...q("inset",(e=a.inset,null==e?null:Array.isArray(e)?e.map((e=>V(e??0))).join(" "):"object"===Qe(e)?`${V(e.top??0)} ${V(e.right??0)} ${V(e.bottom??0)} ${V(e.left??0)}`:V(e)),{when:null!=a.inset}),...q("pd",V(a.padding),{when:null!=a.padding}),...q("w",V(a.width),{when:null!=a.width}),...q("h",V(a.height),{when:null!=a.height})});var e})),k=g((()=>pe("cpt-maxi-btn",w(a.maximizeBtnPosition)))),B=g((()=>pe("cpt-maxi-return",w(a.restoreBtnPosition)))),T=g((()=>({size:"small",icon:"tui-icon ti-arrow-maximize",...a.maximizeBtnConfig}))),$=g((()=>({size:"small",icon:"tui-icon ti-arrow-minimize",...a.restoreBtnConfig}))),z=g((()=>({...a.scalePanelConfig,scale:a.scale,...null!=a.scaleX&&{scaleX:a.scaleX},...null!=a.scaleY&&{scaleY:a.scaleY},scaleSafe:a.scaleSafe}))),R=g((()=>({mode:"absolute",level:6,title:a.title,fontWeight:"700",...a.titleConfig}))),N=()=>{f?.(),f=null},M=async()=>{d.value||(he.c(p),d.value=!0,(()=>{if(!a.lockScroll||f)return;const e="has-maximize-open";document.body.classList.add(e),f=()=>document.body.classList.remove(e)})(),i("update:modelValue",!0),i("open"),await de(),c.value?.update(),i("opened"))},O=()=>{d.value&&(d.value=!1,N(),i("update:modelValue",!1),i("close"),he.s(p,(()=>{i("closed")}),300))},D=()=>{a.closeOnBackdrop&&O()};return K((()=>a.modelValue),(e=>{e?M():O()})),K((()=>n?.value),(()=>{d.value&&a.closeOnEsc&&O()})),ye((()=>{r.value=!1,a.modelValue&&M()})),At((()=>{r.value=!0,he.c(p),N()})),t({open:M,close:O,getVisible:()=>d.value,update:()=>c.value?.update()}),(t,l)=>{const a=ke("TuiButton"),i=ke("TuiMask");return A(),h(ie,null,[e.showMaximizeBtn?(A(),h("div",tg,[ce(a,Ne({class:["tui-maxi-button",e.buttonClassName]},T.value,{style:k.value,onClick:st(M,["stop"])}),null,16,["class","style"])])):C("",!0),r.value||!d.value&&e.destroyOnClose?C("",!0):(A(),Z(Tt,{key:1,to:v.value,fallback:"#tuiRoot",disabled:r.value},[y.value&&d.value?(A(),Z(i,{key:0,"model-value":d.value,modal:e.modal,"z-index":e.zIndex,click:D},null,8,["model-value","modal","z-index"])):C("",!0),ce(Me,{name:e.transitionName},{default:W((()=>[d.value||!e.destroyOnClose?we((A(),h("div",{key:0,class:P(["tui-maximize-layer",e.className,m.value?"is-sized":"is-inset"]),style:fe(x.value)},[e.title?(A(),Z(ct(e.titleComponent),Ne({key:0,class:"tui-maxi-title"},R.value),null,16)):C("",!0),ce(a,Ne({class:["tui-maxi-return",e.returnClassName]},$.value,{style:B.value,onClick:st(O,["stop"])}),null,16,["class","style"]),ce(So,Ne({ref_key:"scalePanelRef",ref:c,class:"tui-maxi-stage"},z.value),{default:W((()=>[(A(),Z(ct(e.frameComponent||"div"),Ne(e.frameProps,{class:["tui-maxi-frame",!e.frameComponent&&"is-native-frame",e.frameClassName]}),{default:W((()=>[u("div",{class:P(["tui-maxi-content",e.contentClassName])},[e.component?(A(),Z(ct(e.component),pt(Ne({key:0},e.componentProps)),null,16)):X(t.$slots,"default",{key:1})],2)])),_:3},16,["class"]))])),_:3},16)],6)),[[Oe,d.value]]):C("",!0)])),_:3},8,["name"])],8,["to","disabled"]))],64)}}}),ag=Object.assign({name:"TuiCol"},{__name:"col",props:{span:{type:Number,default:24},offset:{type:Number,default:0},push:{type:Number,default:0},pull:{type:Number,default:0},xs:{type:[Number,Object],default:null},sm:{type:[Number,Object],default:null},md:{type:[Number,Object],default:null},lg:{type:[Number,Object],default:null},xl:{type:[Number,Object],default:null},tag:{type:String,default:"div"}},setup(e){const t=e,l=Se("TuiRow",null),a=g((()=>l?.gutter?.value||0)),i=g((()=>{const e=["tui-col"];return e.push(`tui-col-${t.span}`),t.offset>0&&e.push(`tui-col-offset-${t.offset}`),t.push>0&&e.push(`tui-col-push-${t.push}`),t.pull>0&&e.push(`tui-col-pull-${t.pull}`),["xs","sm","md","lg","xl"].forEach((l=>{const a="number"==typeof(i=t[l])?{span:i}:"object"==typeof i&&null!==i?i:{};var i;Object.keys(a).length>0&&(void 0!==a.span&&e.push(`tui-col-${l}-${a.span}`),void 0!==a.offset&&a.offset>0&&e.push(`tui-col-${l}-offset-${a.offset}`),void 0!==a.push&&a.push>0&&e.push(`tui-col-${l}-push-${a.push}`),void 0!==a.pull&&a.pull>0&&e.push(`tui-col-${l}-pull-${a.pull}`))})),e})),o=g((()=>pe("cpt-col",{...a.value&&{pdl:a.value/2+"px",pdr:a.value/2+"px"}})));return(t,l)=>(A(),Z(ct(e.tag),{class:P(i.value),style:fe(o.value)},{default:W((()=>[X(t.$slots,"default")])),_:3},8,["class","style"]))}}),ng=Object.assign({name:"TuiRow"},{__name:"row",props:{gutter:{type:Number,default:0},justify:{type:String,default:"start",validator:e=>["start","end","center","space-around","space-between","space-evenly"].includes(e)},align:{type:String,default:"top",validator:e=>["top","middle","bottom"].includes(e)},tag:{type:String,default:"div"}},setup(e){const t=e;rt("TuiRow",{gutter:g((()=>t.gutter))});const l=g((()=>["tui-row","start"!==t.justify&&`is-justify-${t.justify}`,"top"!==t.align&&`is-align-${t.align}`])),a=g((()=>pe("cpt-row",{...t.gutter&&{mgl:`-${t.gutter/2}px`,mgr:`-${t.gutter/2}px`}})));return(t,i)=>(A(),Z(ct(e.tag),{class:P(l.value),style:fe(a.value)},{default:W((()=>[X(t.$slots,"default")])),_:3},8,["class","style"]))}}),og={class:"tui-asp-content"},ig={class:"tui-asp-doc-wrap"},sg={class:"tui-asp-nav-wrap"},rg={class:"tui-asp-nav-inner"},Ag={class:"tui-asp-nav-group"},ug={class:"tui-asp-nav-item"},cg=["onClick"],dg={key:0,class:"tui-asp-nav-group"},fg={class:"tui-asp-nav-item is-sub"},pg=["onClick"],gg=Object.assign({name:"TuiAnchorSpy"},{__name:"index",props:{data:{type:Array,default:[]}},setup(e){const t=e;let l=S(!1),a=S([0,-1]);const i=(e,i)=>{if(l.value=!0,a.value[0]=e,i>-1){let e=document.querySelectorAll("#"+t.data[a.value[0]].id+"> h2");a.value[1]=i,e[a.value[1]]?e[a.value[1]].scrollIntoView({behavior:"smooth"}):console.warn("This item cannot be found")}else{if(t.data[a.value[0]].id){let e=document.querySelector("#"+t.data[a.value[0]].id);e?e.scrollIntoView({behavior:"smooth"}):console.warn("This item cannot be found")}else console.warn("ID is not defined");a.value[1]=-1}},o=e=>{var t=document.querySelectorAll(".tui-asp-doc-component");he.s("docScroll",(()=>{if(l.value)l.value=!1;else for(let l=t.length-1;l>=0;l--)if(e.scrollTop>=t[l].offsetTop-100){a.value[0]=l,a.value[1]=-1;let i=t[l].querySelectorAll("h2");for(let t=i.length-1;t>=0;t--)if(e.scrollTop>=i[t].offsetTop-100){a.value[1]=t;break}break}}),200)};return(t,l)=>{const n=ke("el-scrollbar");return A(),Z(n,{class:"tui-anchor-spy",native:!0,onScroll:o},{default:W((()=>[u("div",og,[u("div",ig,[(A(!0),h(ie,null,ze(e.data,((e,t)=>(A(),Z(ct(e.component),{class:"tui-asp-doc-component",id:e.id},null,8,["id"])))),256))]),u("div",sg,[u("div",rg,[u("ul",Ag,[(A(!0),h(ie,null,ze(e.data,((e,t)=>(A(),h("li",ug,[u("div",{class:P(["tui-asp-nav-link is-main",{"is-active":f(a)[0]==t&&-1==f(a)[1]}]),onClick:e=>i(t)},F(e.name),11,cg),f(a)[0]==t?(A(),h("ul",dg,[(A(!0),h(ie,null,ze(e.children,((e,l)=>(A(),h("li",fg,[u("div",{class:P(["tui-asp-nav-link",{"is-active":f(a)[1]==l}]),onClick:e=>i(t,l)},F(e),11,pg)])))),256))])):C("",!0)])))),256))])])])])])),_:1})}}}),hg={class:"tui-nc-inner"},vg={key:2,class:"tui-nc-arrow"},nl={__name:"content",props:{item:{type:Object,required:!0},pathIds:{type:Array,default:null},level:{type:Number,default:null},fromEllipsis:{type:Boolean,default:!1},hasSubmenu:{type:Boolean,default:!1}},setup(e){const t=e,{$gMenuTrigger:l}=Se("$global",null),a=Se("TuiNavNode",null),{parProps:i,state:o,dir:n,isOpenedItem:s,isActiveItem:r,isCurrentItem:d,isPopupMode:c,collapse:p,updatePath:v,clearOpenedPath:m,popperDelay:y,tipConfig:b,getItemId:V,getItemLabel:w,getItemDisabled:x}=Se("TuiNav",null),S=xe("navCont"),k=g((()=>t.pathIds?.length?t.pathIds:a?.pathIds?.value||[])),B=g((()=>t.level??a?.baseLevel?.value??1)),T=g((()=>V(t.item))),$=g((()=>w(t.item))),z=g((()=>x(t.item))),R=g((()=>t.hasSubmenu&&!(p.value&&"v"===n.value&&1===B.value))),N=g((()=>"ellipsis"===T.value?o.actLeafInfo.fromEllipsis:d(k.value))),M=g((()=>"ellipsis"===T.value?o.actLeafInfo.fromEllipsis:r(T.value))),O=g((()=>s(T.value)));function D(){z.value||("click"==i.menuTrigger||"global"==i.menuTrigger&&"click"==l.value||!t.hasSubmenu||!c.value?v(k.value,t.item,t.fromEllipsis):m())}function I(){z.value||("hover"==i.menuTrigger||"global"==i.menuTrigger&&"hover"==l.value)&&t.hasSubmenu&&c.value&&!O.value&&he.s(`${S}_${T.value}`,(()=>{v(k.value,t.item,t.fromEllipsis)}),300)}function _(){he.c(`${S}_${T.value}`)}const E=g((()=>"v"===n.value||1==B.value&&!t.fromEllipsis?"angle-down":"angle-right")),L=g((()=>pe("cpt-nc",{...q("pdl",15*B.value,{append:"px",when:!c.value})})));return(t,l)=>{const a=ke("TuiTextTip"),i=Fe("tui-popover");return A(),h("div",{class:P(["tui-nav-content",`tui-nc-level-${B.value}`,{"is-current":N.value,"is-active":M.value,"is-opened":O.value,"is-disabled":z.value,"has-submenu":e.hasSubmenu}]),style:fe(L.value),onClick:D,onMouseenter:I,onMouseleave:_},[X(t.$slots,"default",{},(()=>[we((A(),h("div",hg,[e.item.icon||"v"==f(n)?(A(),h("i",{key:0,class:P(["tui-nc-icon",e.item.icon?e.item.icon:"v"==f(n)&&e.hasSubmenu?"tui-icon ti-folder":"tui-icon ti-file"])},null,2)):C("",!0),!f(p)||"v"==!f(n)||B.value>1?(A(),Z(a,Ne({key:1,class:"tui-nc-title"},f(b)),{default:W((()=>[De(F($.value),1)])),_:1},16)):C("",!0),R.value?(A(),h("div",vg,[u("i",{class:P(["tui-icon",`ti-${E.value}`])},null,2)])):C("",!0)])),[[i,{content:$.value,trigger:"hover",placement:"right",delay:f(y),zIndex:2e3,disabled:1==B.value&&!f(p)||B.value>1||O.value}]])]))],38)}}},mg={class:"tui-nav-pm-trigger"},yg={class:"tui-nav-pm-content"},bg={key:0,class:"tui-nav-pm-item"},Vg={key:1,class:"tui-nav-pm-submenu"},xa={__name:"popMenu",props:{item:{type:Object,required:!0},pathIds:{type:Array,default:null},baseLevel:{type:Number,default:null},fromEllipsis:{type:Boolean,default:!1},popperClass:String},setup(e){const t=e,{$optFloaterTo:l}=Se("$global",null),a=Se("TuiNavNode",null),{parProps:i,state:o,dir:n,isOpenedItem:s,getItemId:r,getItemChildren:d}=Se("TuiNav"),c=S(!1),p=S(!0),v=S(null),m=S(null),y=g((()=>t.pathIds?.length?t.pathIds:a?.pathIds?.value||[])),b=g((()=>t.baseLevel??a?.baseLevel?.value??1)),V=g((()=>r(t.item))),w=g((()=>d(t.item)));function q(){c.value=!1}K((()=>o.openedPath.slice()),(()=>{s(V.value)?v.value&&(c.value=!0,de((()=>{B()}))):q()}),{immediate:!0});const x=g((()=>"h"===n.value&&1===b.value&&!t.fromEllipsis||t.fromEllipsis&&1===b.value?"bottom-start":"right-start")),{floatingStyles:k,update:B}=Va(v,m,{placement:x.value,strategy:"fixed",middleware:[wa(i.popperOffset),$a({fallbackPlacements:["left-start","right-start"],padding:5}),Ca({padding:5})]});return ye((()=>{p.value=!1})),At((()=>{p.value=!0,q()})),(t,a)=>(A(),h("div",{class:"tui-nav-pop-menu",ref_key:"triggerRef",ref:v},[u("div",mg,[X(t.$slots,"default")]),p.value?C("",!0):(A(),Z(Tt,{key:0,to:f(l),fallback:"#tuiRoot",disabled:p.value},[ce(Me,{name:"fade"},{default:W((()=>[c.value?(A(),h("div",{key:0,ref_key:"popperRef",ref:m,class:P(["tui-nav-popper",[e.popperClass]]),style:fe(f(k))},[u("div",yg,[(A(!0),h(ie,null,ze(w.value,((t,l)=>(A(),h(ie,{key:f(r)(t)||l},[0===f(d)(t).length?(A(),h("div",bg,[ce(nl,{item:t,pathIds:[...y.value,f(r)(t)],level:b.value+1,fromEllipsis:e.fromEllipsis},null,8,["item","pathIds","level","fromEllipsis"])])):(A(),h("div",Vg,[ce(xa,{item:t,baseLevel:b.value+1,pathIds:[...y.value,f(r)(t)],fromEllipsis:e.fromEllipsis},{default:W((()=>[ce(nl,{item:t,pathIds:[...y.value,f(r)(t)],hasSubmenu:!0,level:b.value+1,fromEllipsis:e.fromEllipsis},null,8,["item","pathIds","level","fromEllipsis"])])),_:2},1032,["item","baseLevel","pathIds","fromEllipsis"])]))],64)))),128))])],6)):C("",!0)])),_:1})],8,["to","disabled"]))],512))}},wg={key:0,class:"tui-nav-ellipsis"},Cg={__name:"ellipsis",props:{items:{type:Array,default:()=>[]}},setup(e){const t=e,{parProps:l}=Se("TuiNav",null),a=["ellipsis"],i=g((()=>l?.props?.id||"id")),o=g((()=>l?.props?.label||"label")),n=g((()=>l?.props?.children||"children")),s=g((()=>({[i.value]:"ellipsis",[o.value]:"more",icon:l.ellipsisIcon,[n.value]:t.items})));return(t,i)=>e.items.length>0?(A(),h("div",wg,[ce(xa,{popperClass:"tui-nav-em-popper",item:s.value,pathIds:a,fromEllipsis:!0,baseLevel:1},{default:W((()=>[ce(nl,{class:"tui-nav-em-cont",item:s.value,pathIds:a,hasSubmenu:!0,fromEllipsis:!0,level:1},{default:W((()=>[u("i",{class:P(["tui-nav-em-icon",f(l).ellipsisIcon])},null,2)])),_:1},8,["item"])])),_:1},8,["item"])])):C("",!0)}},$g=350,kg="ease",fn=e=>{ft.w2().then(e)},pn=(e,t)=>{const l=a=>{a.target!==e||"height"!==a.propertyName||(e.removeEventListener("transitionend",l),t?.())};e.addEventListener("transitionend",l)};function qo(e={}){const{duration:t=$g,easing:l=kg,withOpacity:a=!0}=e,i=a?`height ${t}ms ${l}, opacity ${t}ms ${l}`:`height ${t}ms ${l}`,o=e=>{e.style.height="",e.style.overflow="",e.style.transition="",a&&(e.style.opacity="")};return{beforeEnter:e=>{e.style.height="0px",e.style.overflow="hidden",e.style.transition="",a&&(e.style.opacity="0")},enter:(e,t)=>{pn(e,t),fn((()=>{e.style.transition=i,e.style.height=`${e.scrollHeight}px`,a&&(e.style.opacity="1")}))},afterEnter:e=>{o(e)},beforeLeave:e=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition="",a&&(e.style.opacity="1")},leave:(e,t)=>{pn(e,t),fn((()=>{e.style.transition=i,e.style.height="0px",a&&(e.style.opacity="0")}))},afterLeave:e=>{o(e)}}}const Sg={key:0,class:"tui-nav-tree-cont"},ma={__name:"item",props:{item:{type:Object,required:!0},pathIds:{type:Array,required:!0},baseLevel:{type:Number,default:1},fromEllipsis:{type:Boolean,default:!1}},setup(e){const t=e,{parProps:l,dir:a,isOpenedItem:i,collapse:o,getItemId:n,getItemChildren:s,getItemDisabled:r}=Se("TuiNav",null);rt("TuiNavNode",{pathIds:g((()=>t.pathIds)),baseLevel:g((()=>t.baseLevel)),fromEllipsis:g((()=>t.fromEllipsis))});const u=g((()=>n(t.item))),d=g((()=>s(t.item))),c=g((()=>r(t.item))),p=g((()=>0===d.value.length)),v=g((()=>i(u.value))),m=qo();return(l,i)=>(A(),h("div",{class:P(["tui-nav-item",{"is-disabled":c.value}])},[p.value?(A(),Z(nl,{key:0,item:e.item,fromEllipsis:e.fromEllipsis},null,8,["item","fromEllipsis"])):(A(),h(ie,{key:1},["h"==f(a)||"v"==f(a)&&f(o)?(A(),Z(xa,{key:0,item:e.item,fromEllipsis:e.fromEllipsis},{default:W((()=>[ce(nl,{item:e.item,fromEllipsis:e.fromEllipsis,hasSubmenu:!0},null,8,["item","fromEllipsis"])])),_:1},8,["item","fromEllipsis"])):(A(),h("div",{key:1,class:P(["tui-nav-tree",{"is-opened":v.value}])},[ce(nl,{item:e.item,fromEllipsis:e.fromEllipsis,hasSubmenu:!0},null,8,["item","fromEllipsis"]),ce(Me,{name:"fade",onBeforeEnter:f(m).beforeEnter,onEnter:f(m).enter,onAfterEnter:f(m).afterEnter,onBeforeLeave:f(m).beforeLeave,onLeave:f(m).leave,onAfterLeave:f(m).afterLeave},{default:W((()=>[v.value?(A(),h("div",Sg,[(A(!0),h(ie,null,ze(d.value,((l,a)=>(A(),Z(ma,{key:f(n)(l)||a,item:l,baseLevel:t.baseLevel+1,fromEllipsis:e.fromEllipsis,pathIds:[...e.pathIds,f(n)(l)]},null,8,["item","baseLevel","fromEllipsis","pathIds"])))),128))])):C("",!0)])),_:1},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],2))],64))],2))}},gn=e=>{const{data:t,search:l,config:a={}}=e,i={findAll:!1,matchAll:!0,idKey:"id",childrenKey:"children",deepClone:!1,returnPath:!1,...a},{findAll:o,matchAll:n,idKey:A,childrenKey:s,deepClone:r,returnPath:u}=i,d=e=>String(e?.[A]??""),c=e=>e?.[s]||[],p=[];const g=function e(t,a=[],i=[]){for(let A=0;A<t.length;A++){const s=t[A],g=[...a,A],f=[...i,d(s)];if(n?Object.keys(l).every((e=>s[e]===l[e])):Object.keys(l).some((e=>s[e]===l[e]))){let e=r?JSON.parse(JSON.stringify(s)):{...s};if(e.pathIds=f,e.pathStr=f.join("_"),u&&(e={node:e,path:g,level:a.length,pathIds:f,pathStr:f.join("_")}),!o)return e;p.push(e)}const v=c(s);if(v.length>0){const t=e(v,g,f);if(!o&&t)return t}}return null}(t,[],[]);return o?p.length>0?p:null:g},qg={class:"tui-nav-inner"},Tg=Object.assign({name:"TuiNav"},{__name:"index",props:{defaultOpened:Array,defaultActive:Array,data:{type:Array,default:()=>[]},direction:{type:String,default:"v",validator:e=>["v","h"].includes(e)},collapse:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},ellipsisIcon:{type:String,default:"tui-icon ti-more-h"},popperOffset:{type:Number,default:4},popperDelay:{type:Number,default:1e3},menuTrigger:{type:String,default:"global",validator:e=>["click","hover","global"].includes(e)},router:{type:Boolean,default:!1},routerBase:{type:String,default:"/"},accordion:{type:Boolean,default:!1},maxVisible:{type:Number,default:0},props:{type:Object,default:()=>({id:"id",children:"children",label:"label",disabled:"disabled",path:"path"})},lineHeight:Number,titleLocaleMap:{type:Object,default:()=>({})},tipConfig:Object,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["change","open","close"],setup(e,{emit:t}){const{$gClickTarget:l,$gClickCounter:a,$gEscCounter:i,$optResizeCounter:o,$gLang:n,initResizeBy:s}=Se("$global",null),r=s(),d=e,c=xe("nav"),p=S(null),v=S(!1),m=S(!1),y=t,b=g((()=>d.props?.id||"id")),V=g((()=>d.props?.children||"children")),w=g((()=>d.props?.label||"label")),x=g((()=>d.props?.disabled||"disabled")),k=g((()=>d.props?.path||"path")),B=e=>String(e?.[b.value]??""),T=e=>e?.[V.value]||[],$=e=>e?.[w.value]||"",z=e=>e?.[k.value]||null,R=e=>{const t=z(e);if(t)return t;const l=$(e);return l?((e="/",t="")=>`${String(e||"/").replace(/\/+$/,"")||""}/${String(t||"").replace(/^\/+/,"")}`.replace(/\/+/g,"/"))(d.routerBase,l):null},N=(e=[])=>[].concat(e||[]).map((e=>String(e))),M=(e=[])=>N(e).join("_"),O=(e,t,l=!1)=>{const a=N(e);return{pathIds:a,pathStr:M(a),item:t,fromEllipsis:l}},D=Pe({navMode:null,actLeafInfo:{item:null,pathIds:[],fromEllipsis:!1},openedPath:[],activePath:[],actInEllipsis:!1,maxVisible:0,resizing:!1,temp:{pathIds:[],routePath:null}}),I=g((()=>"h"==d.direction||"v"==d.direction&&d.collapse)),_=g((()=>D.resizing?0:d.maxVisible||D.maxVisible)),F=g((()=>d.data)),E=g((()=>{if(d.ellipsis&&"h"===d.direction&&_.value>0&&F.value.length>_.value){return{vItems:F.value.slice(0,_.value),hItems:F.value.slice(_.value)}}return{vItems:F.value,hItems:[]}}));function L(e){return D.openedPath.length>0&&D.openedPath.includes(String(e))}function j(e){return D.activePath.length>0&&D.activePath.includes(String(e))}function G(e,t,l=!1){const a=N(e);D.actLeafInfo={item:t,fromEllipsis:l,pathIds:a},D.activePath=[...a],D.actInEllipsis=l}function H(e=[]){D.openedPath=[...N(e)]}function Q(e){const t=function(e){const t=[],l=e=>{const a=B(e);a&&t.push(a),T(e).forEach(l)};return l(e),t}(e);D.openedPath=D.openedPath.filter((e=>!t.includes(String(e))))}function Y(){I.value?D.openedPath.length>0&&(H([]),D.activePath.length>0&&(D.activePath=[],D.actLeafInfo.pathIds.length>0&&(D.activePath=[...D.actLeafInfo.pathIds],D.actInEllipsis=D.actLeafInfo.fromEllipsis)),D.temp.pathIds=[]):!d.collapse&&D.actLeafInfo.pathIds.length>0&&(D.openedPath=D.actLeafInfo.pathIds.slice(0,-1))}function X(e=!0){const t=N(D.actLeafInfo.pathIds);if(t.length>0){const l=t[0],a=E.value.vItems.findIndex((e=>B(e)===l)),i=E.value.hItems.findIndex((e=>B(e)===l));a>-1&&(D.actLeafInfo.fromEllipsis=!1,D.actInEllipsis=!1),i>-1&&(D.actLeafInfo.fromEllipsis=!0,D.actInEllipsis=!0),e&&Y()}}const U=ka();K((()=>[U.path,F.value]),(async([e,t])=>{if(!d.router||0==t.length)return;D.temp.routePath||(D.temp.routePath=e);const l=D.actLeafInfo.item,a=R(l);if(a&&e===a)return;let i=gn({data:F.value,search:{[k.value]:e},config:{matchAll:!1,idKey:b.value,childrenKey:V.value}});if(!i){const t=((e="")=>{const t=String(d.routerBase||"/").replace(/\/+$/,""),l=String(e||"");return t&&"/"!==t?l.startsWith(t)?l.slice(t.length).replace(/^\/+/,""):null:l.replace(/^\/+/,"")})(e);t&&(i=gn({data:F.value,search:{[w.value]:t},config:{matchAll:!1,idKey:b.value,childrenKey:V.value}}))}if(i){G(i.pathIds,i,!1),X(!0),await(async()=>{await de(),await ft.w2()})();const e=p.value?.querySelector(".is-current"),t=Ze.get1stParent(p.value,".is-dragable");e&&!t&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}}),{immediate:!0}),K((()=>[d.collapse,d.direction]),(([e,t])=>{(!e||"h"==t)&&Y()})),rt("TuiNav",{parProps:d,state:D,dir:g((()=>d.direction)),collapse:g((()=>d.collapse&&"v"==d.direction)),menuItems:F,splitItems:E,isPopupMode:I,popperDelay:g((()=>d.popperDelay)),tipConfig:g((()=>d.tipConfig)),pathToString:M,getItemId:B,getItemChildren:T,getItemLabel:e=>{const t=((e="")=>{const t=d.titleLocaleMap||{};return t[e]||t[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[e]||e]})(n?.value||"");return t&&e?.[t]?e[t]:e?.[d.titleLocaleMap?.fallback||"title"]||$(e)||""},getItemRawLabel:$,getItemDisabled:e=>!!e?.[x.value],getItemPath:z,isOpenedItem:L,isActiveItem:j,isCurrentItem:function(e){return!!D.actLeafInfo.pathIds.length&&((e=[],t=[])=>{const l=N(e),a=N(t);return l.length===a.length&&l.every(((e,t)=>e===a[t]))})(D.actLeafInfo.pathIds,e)},updatePath:async(e,t,l=!1)=>{const a=N(e),i=B(t),o=T(t).length>0,n=D.openedPath.indexOf(i);if(-1===n)return D.actInEllipsis=l,D.temp.pathIds=a,I.value?("ellipsis"!==i&&!j(i)&&(D.activePath=[...a]),void(o?(H(a),y("open",O(a,t,l))):(y("change",O(a,t,l)),G(a,t,l),H(a.slice(0,-1)),await de(),Y()))):void(o?(y("open",O(a,t,l)),function(e,t){d.accordion?D.openedPath=[...N(e)]:L(t)||(D.openedPath=[...D.openedPath,String(t)])}(a,i)):(y("change",O(a,t,l)),G(a,t,l)));y("close",O(a,t,l)),I.value?H(D.openedPath.slice(0,n)):Q(t)},clearOpenedPath:Y}),K((()=>i.value),(()=>{I.value&&Y()})),K((()=>a.value),(()=>{!function(e){if(!I.value)return;const t=e.closest(".tui-nav"),l=e.closest(".tui-nav-content");!t&&!l&&Y()}(l.value)})),K((()=>o.value),((e,t)=>{if("root"!=r.value(d.resizeObserver)||"v"==d.direction)return;const{clientWidth:l,clientHeight:a}=p.value;e>t&&J({width:l})}));const J=async e=>{if(p.value){if(D.resizing=!0,await de(),"h"==d.direction&&d.ellipsis&&!d.maxVisible){const t=p.value.querySelectorAll(".tui-nav-item");let l;t.length>0&&(l=Array.from(t).map((e=>e.offsetWidth)));let a=48,i=0;for(let t of l){if(a+=t,!(a<=e.width))break;i++}D.maxVisible=i,D.resizing=!1,X(!0)}v.value||(v.value=!0,d.defaultActive?.length&&(D.activePath=N(d.defaultActive),D.actLeafInfo.pathIds=[...D.activePath]),X(!0),d.defaultOpened?.length&&(D.openedPath=N(d.defaultOpened)))}},ee=g((()=>pe("cpt-nav",{...q("lh",d.lineHeight,"px")})));return ye((()=>{m.value=!0})),(t,l)=>{const a=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{ref_key:"navRef",ref:p,style:fe(ee.value),class:P(["tui-nav",`is-dir-${e.direction}`,{"is-collapse":e.collapse&&"v"==e.direction,"is-ellipsis":e.ellipsis&&"h"==e.direction,"is-popup":I.value,"is-tree":!I.value}])},[u("div",qg,["h"==e.direction?(A(),h(ie,{key:0},[(A(!0),h(ie,null,ze(E.value.vItems,((e,t)=>(A(),Z(ma,{key:B(e)||t,item:e,pathIds:[B(e)]},null,8,["item","pathIds"])))),128)),e.ellipsis&&"h"===e.direction&&E.value.hItems.length>0?(A(),Z(Cg,{key:0,items:E.value.hItems},null,8,["items"])):C("",!0)],64)):(A(!0),h(ie,{key:1},ze(F.value,((e,t)=>(A(),Z(ma,{key:B(e)||t,item:e,pathIds:[B(e)]},null,8,["item","pathIds"])))),128))])],6)),[[Oe,m.value],[a,{callback:J,uid:f(c),disabled:"self"!=f(r)(e.resizeObserver)&&v.value}]])])),_:1})}}}),Bg={key:0,class:"tui-rollni-arrows"},xg={class:"tui-rollni-indics"},Pg=["onClick","onMouseenter"],Rg=500,zg=Object.assign({name:"TuiRollingNavIconControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},type:{type:String,default:"enhanced",validator:e=>["base","enhanced"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)}},setup(e){const t=e;let l=null;const a=g((()=>Math.max(0,Number(t.state.curRoll)||0))),i=g((()=>Math.max(0,Number(t.state.maxRoll)||0))),o=g((()=>!!t.state.disableRolling)),n=g((()=>o.value||!!t.state.disablePrev)),s=g((()=>o.value||!!t.state.disableNext)),r=g((()=>"enhanced"===t.type)),d=()=>{l&&(clearTimeout(l),l=null)},c=e=>{t.actions.goTo(e)};return At(d),(p,g)=>{const f=ke("TuiButton");return A(),h("div",{class:P(["tui-rolling-nav-icon-control",`is-type-${e.type}`,{"is-disabled":o.value}])},[r.value?(A(),h("div",Bg,[ce(f,{link:"",size:e.size,disabled:n.value,onClick:g[0]||(g[0]=t=>e.actions.prev())},{default:W((()=>[...g[2]||(g[2]=[u("i",{class:"tui-icon ti-chevron-left"},null,-1)])])),_:1},8,["size","disabled"]),ce(f,{link:"",size:e.size,disabled:s.value,onClick:g[1]||(g[1]=t=>e.actions.next())},{default:W((()=>[...g[3]||(g[3]=[u("i",{class:"tui-icon ti-chevron-right"},null,-1)])])),_:1},8,["size","disabled"])])):C("",!0),u("div",xg,[(A(!0),h(ie,null,ze(i.value,(e=>(A(),h("div",{key:e,class:P(["tui-rollni-indic",{"is-active":e-1===a.value}]),onClick:l=>(e=>{"click"===t.trigger&&c(e)})(e-1),onMouseenter:a=>(e=>{"hover"===t.trigger&&(d(),l=setTimeout((()=>{c(e)}),Rg))})(e-1),onMouseleave:d},null,42,Pg)))),128))])],2)}}}),Et={base:{frameW:84,frameH:64,iconSize:24,fontSize:14,labelGap:2,border:1},small:.8,default:1,large:1.2},Vl=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},Ng=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?l:t},el=(e,t,l=0,a=0)=>{const i=Vl(e,l)*t;return Math.max(a,Math.round(i))},Ig=({size:e,sizeConfig:t})=>{const l=t?.scale||{};return Ng(t?.[e]??l[e],Et[e]||Et.default)},Mg=e=>({...Et.base,...e?.baseConfig||{},...e?.base||{}}),Dg=({size:e="default",sizeConfig:t}={})=>{const l=Mg(t),a=Ig({size:e,sizeConfig:t}),i={frameW:el(l.frameW,a,Et.base.frameW,1),frameH:el(l.frameH,a,Et.base.frameH,1),iconSize:el(l.iconSize,a,Et.base.iconSize,1),fontSize:el(l.fontSize,a,Et.base.fontSize,1),labelGap:el(l.labelGap,a,Et.base.labelGap,0),border:el(l.border,a,Et.base.border,0)},o=Math.ceil(1.2*i.fontSize),n=Math.max(i.iconSize+2*i.border,i.frameH-o-i.labelGap);return{...i,circleSize:n}},Og=e=>Vl(e,10),_g=({direction:e,controlPosition:t})=>t||("v"===e?"top":"right"),Eg=e=>"top"===e?"vr":"left"===e?"hr":"right"===e?"h":"v",Lg=({direction:e,controlPosition:t})=>{const l="top"===t||"bottom"===t;return"h"===e?l?"overlay":"reserve":l?"reserve":"overlay"},Wg=({direction:e,controlType:t,controlPosition:l})=>t||("h"===e?"top"===l||"bottom"===l?"base":"enhanced":"left"===l||"right"===l?"base":"enhanced"),hn=({direction:e,element:t})=>t?"h"===e?t.clientWidth:t.clientHeight:0,jg=({direction:e,outerSize:t,size:l,controlLayout:a,controlType:i,controlPosition:o,controlGap:n})=>{const A=Number(t)||0;if("reserve"!==a||!("h"===e?"left"===o||"right"===o:"top"===o||"bottom"===o))return A;const s="base"===i?24:"h"===e?l.frameW:l.frameH;return Math.max(0,A-s-Vl(n,0))},Gg=({direction:e,outerSize:t,size:l,gap:a})=>{const i="h"===e?l.frameW:l.frameH,o=Math.max(1,Vl(i,0)+Vl(a,0));return Math.max(1,Math.floor((Number(t)||0)/o)||1)},Fg=({index:e,visibleLength:t})=>e<0||!t?0:Math.floor(e/t),To=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?To(e.children):[e])),Hg=e=>(To(e||[])||[]).map((e=>e?.props)).filter((e=>e&&void 0!==e.value)),da=(e,t)=>(e||[]).findIndex((e=>e?.value===t)),Ug=(e,t=0)=>{const l=e||[];if(!l.length)return null;const a=Math.max(0,Math.min(t,l.length-1));for(let e=0;e<l.length;e++){const t=l[a+e];if(t&&!t.disabled)return t;const i=l[a-e];if(e&&i&&!i.disabled)return i}return null},Qg=({props:e,locale:t,titleLocaleMap:l})=>{const a=e.item||{},i=l||{},o=t||"",n=i[o]||i[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[o]||o],A=i.fallback||"title";return n&&a?.[n]?a[n]:e.title||a?.[A]||e.label||a?.label||""},Yg={key:1,class:"tui-rollni-debug"},Kg=Object.assign({name:"TuiRollingNavIcon"},{__name:"index",props:{modelValue:[String,Number],duration:Number,direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},sizeConfig:{type:Object,default:()=>({})},gap:{type:Number,default:10},controlType:{type:String,default:null,validator:e=>null===e||["base","enhanced"].includes(e)},controlPosition:{type:String,default:null,validator:e=>null===e||["top","right","bottom","left"].includes(e)},frameShape:{type:String,default:"round",validator:e=>["none","round","circle"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},closeable:{type:Boolean,default:!1},wheelRolling:{type:Boolean,default:null},rollingConfig:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1},motionBlur:{type:Boolean,default:!0},tipConfig:Object,titleLocaleMap:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},controlFit:{type:[Boolean,String],default:!1,validator:e=>!1===e||!0===e||["fit","halfFit"].includes(e)}},emits:["start","rolling","change","update","update:modelValue"],setup(e,{expose:t,emit:l}){const a=yt(),i=Se("$global",null),o=i?.initResizeBy?.(),n=i?.$optResizeCounter,s=xe("rollNavIcon"),r=e,d=l,c=S(null),p=S(null),v=S(!1),m=S(1),y=S(null),b=S([]),V=S(null),w=S(0),x=S([]),k=S({}),B=Pe({outerSize:0}),T=g((()=>Dg({size:r.size,sizeConfig:r.sizeConfig}))),$=g((()=>Og(r.gap))),z=g((()=>_g({direction:r.direction,controlPosition:r.controlPosition}))),R=g((()=>Eg(z.value))),N=g((()=>Lg({direction:r.direction,controlPosition:z.value}))),M=g((()=>Wg({direction:r.direction,controlType:r.controlType,controlPosition:z.value}))),O=g((()=>da(b.value,r.modelValue))),D=g((()=>Fg({index:O.value,visibleLength:m.value}))),I=g((()=>V.value?.state||{})),_=g((()=>!!V.value&&!(V.value?.disableRolling??I.value.disableRolling))),E=g((()=>!0===r.controlFit||"fit"===r.controlFit?"fit":"halfFit"===r.controlFit?"halfFit":"none")),L=g((()=>pe("cpt-rollni",{...q("outerSize",B.outerSize,"px"),frameW:`${T.value.frameW}px`,frameH:`${T.value.frameH}px`,iconSize:`${T.value.iconSize}px`,fontSize:`${T.value.fontSize}px`,labelGap:`${T.value.labelGap}px`,border:`${T.value.border}px`,circleSize:`${T.value.circleSize}px`,gap:`${$.value}px`}))),j=g((()=>{const e=r.rollingConfig||{};return{...e,direction:r.direction,mode:"page",visibleLength:m.value,initIndex:y.value,duration:r.duration??e.duration??500,debug:r.debug,motionBlur:r.motionBlur,resizeObserver:"none",controlDirection:R.value,controlLayout:N.value,autoRolling:!1,fillData:!1,showControl:!1,seamless:!1,wheelRolling:r.wheelRolling??e.wheelRolling??!0,interceptWheel:e.interceptWheel??!0,slotObserver:!0}})),G=(e,t={})=>{r.debug&&console.info(`[TuiRollingNavIcon:${s}] ${e}`,{...t,snapshot:{itemsLen:b.value.length,visibleLength:m.value,activeIndex:O.value,activePage:D.value,initIndex:y.value,curRoll:I.value.curRoll,curRollCalc:I.value.curRollCalc,maxRollCalc:I.value.maxRollCalc,disableRolling:V.value?.disableRolling??I.value.disableRolling}})},H=e=>e&&"none"!==e?o?.value?o.value(e):"global"===e?"root":"self":"none",Q=e=>da(b.value,e),Y=e=>Gg({direction:r.direction,outerSize:e,size:T.value,gap:$.value}),U=(e,t=Y(e),l={})=>(({itemDelta:e=0}={})=>{const t=E.value;return"fit"===t||"halfFit"===t&&(e>0||!_.value)})(l)&&"reserve"===N.value&&b.value.length<=t,J=()=>(b.value=Hg(a.default?.()||[]),b.value),ee=(e={})=>{k.value=e;const t=hn({direction:r.direction,element:c.value});B.outerSize=t;const l=Y(t),a=(e=>jg({direction:r.direction,outerSize:e,size:T.value,controlLayout:N.value,controlType:M.value,controlPosition:z.value,controlGap:$.value}))(t);if(U(t,l,e))return m.value=l,void G("visible:full",{outerSize:t,fullVisibleLength:l,availableSize:a,mode:E.value,context:e});const i=(e=>(m.value=Y(e),m.value))(a);G("visible:reserve",{outerSize:t,fullVisibleLength:l,availableSize:a,nextVisibleLength:i,controlLayout:N.value,mode:E.value,context:e})},te=(e,t=k.value)=>{const l=Number(e?.rollWrapSize);if(!Number.isFinite(l)||l<=0)return;const a=B.outerSize||hn({direction:r.direction,element:c.value}),i=Y(a);if(U(a,i,t))return m.value=i,void G("actualVisible:full",{outerSize:a,wrapSize:l,fullVisibleLength:i,mode:E.value,context:t});const o=Y(l);m.value=Math.min(m.value,o),G("actualVisible:shrink",{outerSize:a,wrapSize:l,wrapVisibleLength:o,nextVisibleLength:m.value,mode:E.value,context:t})},le=(e,t)=>{w.value=t,d("update:modelValue",e.value),d("change",e.value,t)},ae=async(e="active")=>{if(await de(),!v.value||O.value<0)return void G("activeScroll:skip",{source:e,inited:v.value,activeIndex:O.value});const t=D.value;I.value.curRoll!==t?(G("activeScroll:goTo",{source:e,targetPage:t,modelValue:r.modelValue}),p.value?.goTo?.(t,{source:`navIcon:${e}`})):G("activeScroll:samePage",{source:e,targetPage:t,modelValue:r.modelValue})},ie={init:{syncItems:!0,ensureActive:!0,syncVisible:!0,setInitIndex:!0},items:{ensureActive:!0,syncVisible:!0,force:!0},active:{ensureActive:!0,alignActive:!0},resize:{syncVisible:!0,force:!0,alignActive:!0},layout:{syncVisible:!0,force:!0,alignActive:!0},sizeConfig:{syncVisible:!0,force:!0,alignActive:!0},forceUpdate:{syncItems:!0,syncVisible:!0,force:!0,alignActive:!0}},oe=async(e="forceUpdate",t={})=>{const l={syncItems:!1,ensureActive:!1,syncVisible:!1,setInitIndex:!1,force:!1,alignActive:!1,...ie[e]||ie.forceUpdate,...t},a=l.source||e,i={type:e,source:a,itemDelta:l.itemDelta||0};if(G("action:start",{type:e,source:a,policy:l}),l.syncItems&&J(),l.ensureActive&&(()=>{const e=b.value;if(!e.length)return;const t=O.value;if(t>=0&&!e[t]?.disabled)return void(w.value=t);const l=Ug(e,w.value),a=da(e,l?.value);l&&l.value!==r.modelValue&&le(l,a)})(),await de(),l.syncVisible&&ee(i),l.setInitIndex)return y.value=D.value,x.value=b.value,v.value=!0,void G("action:initIndex",{source:a,initIndex:y.value});if(await de(),l.force){const t=(e=>{if("items:add"===e||"items:remove"===e)return e})(a);G("action:forceUpdate",{type:e,source:a,rollingAction:t,alignActive:l.alignActive}),await(p.value?.forceUpdate?.(t)),await de()}l.alignActive&&(G("action:activeScroll",{type:e,source:a}),await ae(a))},ne=()=>p.value?.getInfo?.(),Ae=()=>oe("resize"),se=(e,t,l)=>{V.value=e,te(e),G("rolling:update",{from:t,action:l}),d("update",e,t,l)},re=e=>{V.value=e,te(e),G("rolling:start"),d("start",e)},ue=(e,t,l)=>{V.value=t,G("rolling:move",{value:e,source:l}),d("rolling",e,t,l)};return rt("TuiRollNavI",{tipConfig:g((()=>r.tipConfig)),modelValue:g((()=>r.modelValue)),closeable:g((()=>r.closeable)),frameShape:g((()=>r.frameShape)),locale:g((()=>i?.$gLang?.value||"")),titleLocaleMap:g((()=>r.titleLocaleMap)),selectItem:async e=>{const t=Q(e),l=b.value[t];!l||l.disabled||(le(l,t),await oe("active",{source:"select"}))},getItemIndex:Q}),wl((()=>{J()})),K((()=>b.value.map((e=>`${e.value}:${e.disabled}`)).join("|")),(async()=>{const e=x.value,t=b.value;if(x.value=t,!v.value)return;const l=t.length-e.length;await oe("items",{source:l>0?"items:add":l<0?"items:remove":"items:update",itemDelta:l})}),{flush:"post"}),K((()=>r.modelValue),(async()=>{await oe("active")})),K((()=>[r.direction,r.size,r.gap,r.controlPosition,r.controlFit]),(()=>oe("layout"))),K((()=>r.sizeConfig),(()=>oe("sizeConfig")),{deep:!0}),K((()=>n?.value),((e,t)=>{!v.value||"root"!==H(r.resizeObserver)||(e||0)>(t||0)&&Ae()})),ye((async()=>{await oe("init")})),t({prev:()=>p.value?.prev?.(),next:()=>p.value?.next?.(),goTo:(e,t)=>p.value?.goTo?.(e,t),forceUpdate:(e={})=>oe("forceUpdate","object"==typeof e?e:{}),getInfo:ne,getState:ne,scrollActiveIntoView:ae}),(t,l)=>{const a=ke("TuiRolling"),i=Fe("tui-resize");return we((A(),h("div",{class:P(["tui-rolling-nav-icon",`is-dir-${e.direction}`,`is-size-${e.size}`,`is-frame-${e.frameShape}`,`is-ctrl-type-${M.value}`,`is-ctrl-pos-${z.value}`,{"is-initing":!v.value}]),ref_key:"containerRef",ref:c,style:fe(L.value)},[v.value?(A(),Z(a,Ne({key:0,class:"tui-rolling-nav-icon-roll"},j.value,{ref_key:"rollingRef",ref:p,onStart:re,onRolling:ue,onUpdate:se}),{controls:W((({state:t,actions:l})=>[ce(zg,{state:t,actions:l,type:M.value,direction:e.direction,trigger:e.trigger,size:e.size},null,8,["state","actions","type","direction","trigger","size"])])),default:W((()=>[X(t.$slots,"default")])),_:3},16)):C("",!0),e.debug?(A(),h("div",Yg,[u("div",null,"visibleLength:"+F(m.value),1),u("div",null,"activeIndex:"+F(O.value),1),u("div",null,"activePage:"+F(D.value),1),u("div",null,"outerSize:"+F(B.outerSize),1),u("div",null,"curRoll:"+F(I.value.curRoll),1),u("div",null,"maxRoll:"+F(I.value.maxRoll),1)])):C("",!0)],6)),[[i,{callback:Ae,uid:f(s),disabled:"none"===H(e.resizeObserver)}]])}}}),Xg={key:0,class:"tui-rollni-lock tui-icon ti-lock"},Zg=Object.assign({name:"TuiRollingNavIconItem"},{__name:"item",props:{title:String,label:String,index:Number,value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},locked:{type:Boolean,default:!1},icon:{type:String,default:"tui-icon ti-file-doc"},closeable:{type:Boolean,default:null},item:Object},emits:["remove"],setup(e,{emit:t}){const l=e,a=t,i=Se("TuiRollNavI",null),o=g((()=>"null"!==Qe(l.closeable)?l.closeable:!!i?.closeable?.value)),n=g((()=>i?.modelValue?.value===l.value)),s=g((()=>i?.frameShape?.value||"round")),r=g((()=>Qg({props:l,locale:i?.locale?.value,titleLocaleMap:i?.titleLocaleMap?.value}))),d=()=>{l.disabled||i?.selectItem?.(l.value)},c=()=>{a("remove",{value:l.value,index:i?.getItemIndex?.(l.value)??l.index,item:l.item||l})};return(t,l)=>{const a=ke("TuiTextTip"),p=ke("TuiRollingItem");return A(),Z(p,null,{default:W((()=>[u("div",{class:P(["tui-rolling-nav-icon-item",`is-shape-${s.value}`]),onClick:d},[u("div",{class:P(["tui-rollni-frame",{"is-active":n.value,"is-disabled":e.disabled}])},[e.icon?(A(),h("i",{key:0,class:P(["tui-rollni-icon",e.icon])},[o.value?(A(),h(ie,{key:0},[e.locked?(A(),h("i",Xg)):(A(),h("i",{key:1,class:"tui-rollni-remove tui-icon ti-times",onClick:st(c,["stop"])}))],64)):C("",!0)],2)):C("",!0),ce(a,Ne(f(i)?.tipConfig?.value||{},{class:"tui-rollni-label"}),{default:W((()=>[De(F(r.value),1)])),_:1},16)],2)],2)])),_:1})}}}),Jg={class:"tui-rolltab-ctrl-page"},eh={class:"tui-rolltab-ctrl-arrows"},vn=Object.assign({name:"TuiRollingNavTabsControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)}},setup(e){const t=e,l=g((()=>Math.max(0,Number(t.state.curRoll)||0))),a=g((()=>Math.max(1,Number(t.state.maxRoll)||1))),i=g((()=>!!t.state.disableRolling)),o=g((()=>i.value||!!t.state.disablePrev)),n=g((()=>i.value||!!t.state.disableNext)),s=g((()=>"h"===t.direction?"ti-chevron-left":"ti-chevron-up")),r=g((()=>"h"===t.direction?"ti-chevron-right":"ti-chevron-down"));return(t,d)=>{const c=ke("TuiButton");return A(),h("div",{class:P(["tui-rolling-nav-tabs-control",{"is-disabled":i.value}])},[u("div",Jg,F(l.value+1)+"/"+F(a.value),1),u("div",eh,[ce(c,{link:"",class:"tui-rolltab-ctrl-btn",disabled:o.value,onClick:d[0]||(d[0]=t=>e.actions.prev())},{default:W((()=>[u("i",{class:P(["tui-icon",s.value])},null,2)])),_:1},8,["disabled"]),ce(c,{link:"",class:"tui-rolltab-ctrl-btn",disabled:n.value,onClick:d[1]||(d[1]=t=>e.actions.next())},{default:W((()=>[u("i",{class:P(["tui-icon",r.value])},null,2)])),_:1},8,["disabled"])])],2)}}}),Wt={base:{itemW:{h:128,v:180},itemH:40,fontSize:14,iconSize:16},small:.85,default:1,large:1.15},Jl=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},th=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?l:t},Dl=(e,t,l=0,a=0)=>{const i=Jl(e,l)*t;return Math.max(a,Math.round(i))},mn=(e,t="h")=>!e||"object"!=typeof e||Array.isArray(e)?e:e["v"===t?"v":"h"]??e.default,yn=({value:e,direction:t,fallback:l})=>{const a=mn(e,t);if(null!=a)return a;return mn(l,t)??0},lh=({size:e,sizeConfig:t})=>{const l=t?.scale||{};return th(t?.[e]??l[e],Wt[e]||Wt.default)},ah=e=>({...Wt.base,...e?.baseConfig||{},...e?.base||{}}),nh=({size:e="default",direction:t="h",sizeConfig:l}={})=>{const a=ah(l),i=lh({size:e,sizeConfig:l}),o=yn({value:a.itemW,direction:t,fallback:Wt.base.itemW});return{itemW:Dl(o,i,yn({direction:t,fallback:Wt.base.itemW}),1),itemH:Dl(a.itemH,i,Wt.base.itemH,1),fontSize:Dl(a.fontSize,i,Wt.base.fontSize,1),iconSize:Dl(a.iconSize,i,Wt.base.iconSize,1)}},oh=({direction:e,controlPosition:t})=>t||("v"===e?"prefix":"suffix"),ih=({direction:e,element:t})=>t?"h"===e?t.clientWidth:t.clientHeight:0,sh=({direction:e,size:t,controlPosition:l,hasPrefixSlot:a=!1,hasSuffixSlot:i=!1,controlMinSize:o=112}={})=>"v"===e?("prefix"===l?a:i)?0:Jl(t?.itemH,Wt.base.itemH):Jl(o,112),rh=({direction:e,outerSize:t,size:l})=>{const a="h"===e?l.itemW:l.itemH,i=Math.max(1,Jl(a,1));return Math.max(1,Math.floor((Number(t)||0)/i)||1)},bn=({index:e,visibleLength:t})=>e<0||!t?0:Math.floor(e/t),Bo=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?Bo(e.children):[e])),Ah=e=>(Bo(e||[])||[]).map((e=>e?.props)).filter((e=>e&&void 0!==e.value)),uh=e=>`${typeof e?.value}:${String(e?.value)}`,ch=(e=[])=>e.map((e=>`${uh(e)}:${e?.disabled?1:0}`)).join("|"),tl=(e,t)=>(e||[]).findIndex((e=>e?.value===t)),Vn=(e,t=0)=>{const l=e||[];if(!l.length)return null;const a=Math.max(0,Math.min(t,l.length-1));for(let e=0;e<l.length;e++){const t=l[a+e];if(t&&!t.disabled)return t;const i=l[a-e];if(e&&i&&!i.disabled)return i}return null},dh=({props:e,locale:t,titleLocaleMap:l})=>{const a=e.item||{},i=l||{},o=t||"",n=i[o]||i[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[o]||o],A=i.fallback||"title";return n&&a?.[n]?a[n]:e.title||a?.[A]||e.label||a?.label||""},fh={key:0,class:"tui-rolltab-slot"},ph={key:1,class:"tui-rolltab-slot"},gh={key:2,class:"tui-rolltab-debug"},hh=Object.assign({name:"TuiRollingNavTabs"},{__name:"index",props:{modelValue:[String,Number],duration:Number,prefixReverse:{type:Boolean,default:!1},suffixReverse:{type:Boolean,default:!1},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},sizeConfig:{type:Object,default:()=>({})},controlPosition:{type:String,default:null,validator:e=>null===e||["prefix","suffix"].includes(e)},controlFit:{type:[Boolean,String],default:!1,validator:e=>!1===e||!0===e||["fit","halfFit"].includes(e)},closeable:{type:Boolean,default:!1},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:null},rollingConfig:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1},motionBlur:{type:Boolean,default:!0},tipConfig:Object,titleLocaleMap:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["start","rolling","change","update","update:modelValue"],setup(e,{expose:t,emit:l}){const a=yt(),i=Se("$global",null),o=i?.initResizeBy?.(),n=i?.$optResizeCounter,s=xe("rollNavTabs"),r=e,d=l,c=S(null),p=S(null),v=S(null),m=S(!1),y=S(1),b=S(null),V=S([]),w=S([]),q=S(null),x=S(0),k=S(null),B=S(null),T=S(null),$=Pe({outerSize:0}),z=g((()=>nh({size:r.size,direction:r.direction,sizeConfig:r.sizeConfig}))),R=g((()=>oh({direction:r.direction,controlPosition:r.controlPosition}))),N=g((()=>tl(V.value,r.modelValue))),M=g((()=>bn({index:N.value,visibleLength:y.value}))),O=g((()=>q.value?.state||{})),D=g((()=>!!q.value&&!(q.value?.disableRolling??O.value.disableRolling))),I=g((()=>!0===r.controlFit||"fit"===r.controlFit?"fit":"halfFit"===r.controlFit?"halfFit":"none")),_=g((()=>ch(V.value))),E=g((()=>pe("cpt-rolltab",{itemW:`${z.value.itemW}px`,itemH:`${z.value.itemH}px`,fontSize:`${z.value.fontSize}px`,iconSize:`${z.value.iconSize}px`}))),L=g((()=>{const e=r.rollingConfig||{};return{...e,direction:r.direction,mode:"page",visibleLength:y.value,initIndex:b.value,duration:r.duration??e.duration??500,debug:r.debug,motionBlur:r.motionBlur,resizeObserver:"none",autoRolling:!1,autoFollow:r.autoFollow,fillData:!1,showControl:!1,seamless:!1,wheelRolling:r.wheelRolling??e.wheelRolling??!0,interceptWheel:e.interceptWheel??!0,slotObserver:!0}})),j=(e,t={})=>{r.debug&&console.info(`[TuiRollingNavTabs:${s}] ${e}`,{...t,snapshot:{itemsLen:V.value.length,visibleLength:y.value,activeIndex:N.value,activePage:M.value,initIndex:b.value,curRoll:O.value.curRoll,curRollCalc:O.value.curRollCalc,maxRollCalc:O.value.maxRollCalc,disableRolling:O.value.disableRolling}})},G=e=>e&&"none"!==e?o?.value?o.value(e):"global"===e?"root":"self":"none",H=()=>(V.value=Ah(a.default?.()||[]),V.value),Q=e=>rh({direction:r.direction,outerSize:e,size:z.value}),Y=()=>{if(typeof window>"u"||!c.value)return 112;const e=window.getComputedStyle(c.value).getPropertyValue("--tui-rolltab-ctrl-minw"),t=Number.parseFloat(e);return Number.isFinite(t)?t:112},U=(e={})=>{const t=ih({direction:r.direction,element:p.value}),l=sh({direction:r.direction,size:z.value,controlPosition:R.value,hasPrefixSlot:!!a.prefix,hasSuffixSlot:!!a.suffix,controlMinSize:Y()}),i=Math.max(0,t+(D.value?l:0)),o=Math.max(0,i-l),n=Q(i);if($.outerSize=i,(({itemDelta:e=0}={})=>{const t=I.value;return"fit"===t||"halfFit"===t&&(e>0||!D.value)})(e)&&V.value.length<=n)return y.value=n,void j("visible:full",{bodySize:t,fullSize:i,controlSize:l,fullVisibleLength:n,mode:I.value,context:e});y.value=Q(o),j("visible:reserve",{bodySize:t,fullSize:i,availableSize:o,controlSize:l,fullVisibleLength:n,visibleLength:y.value,mode:I.value,context:e})},J=e=>tl(V.value,e),ee=(e,t,l=null)=>{e&&(x.value=t,B.value=null,d("update:modelValue",e.value),d("change",e.value,t,(e=>e?.item||e)(e),l))},te=async(e="active")=>{await de();const t=N.value;if(!m.value||t<0)return B.value=r.modelValue,j("activeScroll:skip",{source:e,inited:m.value,activeIndex:t,modelValue:r.modelValue}),!1;B.value=null,x.value=t;const l=M.value;return O.value.curRoll===l?(j("activeScroll:samePage",{source:e,targetPage:l,modelValue:r.modelValue}),!1):(j("activeScroll:goTo",{source:e,targetPage:l,modelValue:r.modelValue}),v.value?.goTo?.(l,{source:`navTabs:${e}`}),!0)},le={init:{syncItems:!0,ensureInitialActive:!0,syncVisible:!0,setInitIndex:!0},items:{syncVisible:!0,force:!0},active:{syncItems:!0,alignActive:!0},resize:{syncVisible:!0,force:!0,alignActive:!0},layout:{syncVisible:!0,force:!0,alignActive:!0},sizeConfig:{syncVisible:!0,force:!0,alignActive:!0},forceUpdate:{syncItems:!0,syncVisible:!0,force:!0,alignActive:!0}},ae=async(e="forceUpdate",t={})=>{const l={syncItems:!1,ensureInitialActive:!1,syncVisible:!1,setInitIndex:!1,force:!1,alignActive:!1,...le[e]||le.forceUpdate,...t},a=l.source||e,i={type:e,source:a,itemDelta:l.itemDelta||0};if(j("action:start",{type:e,source:a,policy:l}),l.syncItems&&H(),l.ensureInitialActive&&(()=>{const e=V.value;if(k.value=null,!e.length)return;const t=N.value;if(t>=0&&!e[t]?.disabled)return x.value=t,void(k.value=t);const l=Vn(e,x.value),a=tl(e,l?.value);l&&(k.value=a,l.value!==r.modelValue&&ee(l,a,"init"))})(),await de(),l.syncVisible&&U(i),l.setInitIndex)return b.value=bn({index:k.value??N.value,visibleLength:y.value}),w.value=V.value,m.value=!0,void j("action:initIndex",{source:a,initIndex:b.value});if(await de(),l.force){const t=(e=>{if("items:add"===e||"items:remove"===e)return e})(a);j("action:forceUpdate",{type:e,source:a,rollingAction:t,alignActive:l.alignActive}),await(v.value?.forceUpdate?.(t)),await de()}l.alignActive&&await te(a)},ie=()=>v.value?.prev?.(),oe=()=>v.value?.next?.(),ne=(e,t)=>v.value?.goTo?.(e,t),Ae=(e={})=>ae("forceUpdate","object"==typeof e?e:{}),se=()=>v.value?.getInfo?.(),re=()=>ae("resize"),ue={prev:ie,next:oe,goTo:ne,forceUpdate:Ae},ce=(e,t,l)=>{q.value=e,j("rolling:update",{from:t,action:l}),d("update",e,t,l)},ge=e=>{q.value=e,j("rolling:start"),d("start",e)},ve=(e,t,l)=>{q.value=t,j("rolling:move",{value:e,source:l}),d("rolling",e,t,l)};return rt("TuiRollNavT",{tipConfig:g((()=>r.tipConfig)),modelValue:g((()=>r.modelValue)),closeable:g((()=>r.closeable)),locale:g((()=>i?.$gLang?.value||"")),titleLocaleMap:g((()=>r.titleLocaleMap)),selectItem:async e=>{const t=J(e),l=V.value[t];!l||l.disabled||(ee(l,t),await de(),await ae("active",{source:"select"}))},getItemIndex:J}),wl((()=>{H()})),K(_,(async()=>{const e=w.value,t=V.value;if(w.value=t,!m.value)return;const l=t.length-e.length,a=await(async(e=[],t=[],l={})=>{const a=tl(t,r.modelValue),i=tl(e,r.modelValue),o=t[a],n=i>=0&&a<0,A=a>=0&&o?.disabled,s=B.value===r.modelValue&&a>=0&&!o?.disabled,u=l.itemDelta||0,d=u>0&&a>=0&&i<0;if(j("items:change",{oldLen:e.length,nextLen:t.length,itemDelta:u,activeIndex:a,oldActiveIndex:i,activeAdded:d,activeRemoved:n,activeDisabled:A,activePendingReady:s}),a>=0&&!o?.disabled&&(x.value=a),n||A||null===r.modelValue||void 0===r.modelValue){const e=Vn(t,x.value),l=tl(t,e?.value);return e&&e.value!==r.modelValue?(ee(e,l,"items"),{alignActive:!0}):{alignActive:!1}}return d&&r.autoFollow&&(T.value=r.modelValue),s?u>0&&r.autoFollow?(B.value=null,j("items:pendingActiveSkip",{reason:"autoFollow",modelValue:r.modelValue}),{alignActive:!1}):{alignActive:!0}:{alignActive:!1}})(e,t,{itemDelta:l});await ae("items",{source:l>0?"items:add":l<0?"items:remove":"items:update",itemDelta:l,alignActive:!!a?.alignActive})}),{flush:"post"}),K((()=>r.modelValue),(async()=>{if(T.value===r.modelValue)return T.value=null,void j("active:skipAutoFollow",{modelValue:r.modelValue});await ae("active")})),K((()=>[r.direction,r.size,r.controlPosition,r.controlFit,r.prefixReverse,r.suffixReverse]),(()=>ae("layout"))),K((()=>r.sizeConfig),(()=>ae("sizeConfig")),{deep:!0}),K((()=>n?.value),((e,t)=>{!m.value||"root"!==G(r.resizeObserver)||(e||0)>(t||0)&&re()})),ye((async()=>{await ae("init")})),t({prev:ie,next:oe,goTo:ne,forceUpdate:Ae,getInfo:se,getState:se,scrollActiveIntoView:te}),(t,l)=>{const a=ke("TuiRolling"),i=Fe("tui-resize");return we((A(),h("div",{class:P(["tui-rolling-nav-tabs",`is-dir-${e.direction}`,`is-size-${e.size}`,`is-ctrl-pos-${R.value}`,{"is-initing":!m.value}]),ref_key:"containerRef",ref:c,style:fe(E.value)},[t.$slots.prefix||"prefix"===R.value&&D.value?(A(),h("div",{key:0,class:P(["tui-rolltab-fixed","tui-rolltab-prefix",{"is-reverse":e.prefixReverse,"has-slot":t.$slots.prefix,"has-control":"prefix"===R.value&&D.value}])},[t.$slots.prefix?(A(),h("div",fh,[X(t.$slots,"prefix")])):C("",!0),"prefix"===R.value&&D.value?(A(),Z(vn,{key:1,state:O.value,actions:ue,direction:e.direction},null,8,["state","direction"])):C("",!0)],2)):C("",!0),we((A(),h("div",{class:"tui-rolltab-body",ref_key:"rollingHostRef",ref:p},[m.value?(A(),Z(a,Ne({key:0,class:"tui-rolltab-rolling"},L.value,{ref_key:"rollingRef",ref:v,onStart:ge,onRolling:ve,onUpdate:ce}),{default:W((()=>[X(t.$slots,"default")])),_:3},16)):C("",!0)])),[[i,{callback:re,uid:`${f(s)}_body`,disabled:"none"===G(e.resizeObserver)}]]),t.$slots.suffix||"suffix"===R.value&&D.value?(A(),h("div",{key:1,class:P(["tui-rolltab-fixed","tui-rolltab-suffix",{"is-reverse":e.suffixReverse,"has-slot":t.$slots.suffix,"has-control":"suffix"===R.value&&D.value}])},["suffix"===R.value&&D.value?(A(),Z(vn,{key:0,state:O.value,actions:ue,direction:e.direction},null,8,["state","direction"])):C("",!0),t.$slots.suffix?(A(),h("div",ph,[X(t.$slots,"suffix")])):C("",!0)],2)):C("",!0),e.debug?(A(),h("div",gh,[u("div",null,"visibleLength:"+F(y.value),1),u("div",null,"activeIndex:"+F(N.value),1),u("div",null,"activePage:"+F(M.value),1),u("div",null,"outerSize:"+F($.outerSize),1),u("div",null,"curRoll:"+F(O.value.curRoll),1),u("div",null,"maxRoll:"+F(O.value.maxRoll),1)])):C("",!0)],6)),[[i,{callback:re,uid:f(s),disabled:"none"===G(e.resizeObserver)}]])}}}),vh={key:0,class:"tui-rolltab-lock tui-icon ti-lock"},mh=Object.assign({name:"TuiRollingNavTab"},{__name:"item",props:{title:String,label:String,index:Number,value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},locked:{type:Boolean,default:!1},icon:{type:String,default:null},closeable:{type:Boolean,default:null},item:Object},emits:["remove"],setup(e,{emit:t}){const l=e,a=t,i=Se("TuiRollNavT",null),o=g((()=>"null"!==Qe(l.closeable)?l.closeable:!!i?.closeable?.value)),n=g((()=>i?.modelValue?.value===l.value)),s=g((()=>dh({props:l,locale:i?.locale?.value,titleLocaleMap:i?.titleLocaleMap?.value}))),r=g((()=>({appearance:"curtip",...i?.tipConfig?.value||{}}))),d=()=>{l.disabled||i?.selectItem?.(l.value)},c=()=>{if(l.locked)return;const e=i?.getItemIndex?.(l.value)??l.index;a("remove",e,l.value,l.item||l)};return(t,l)=>{const a=ke("TuiTextTip"),i=ke("TuiRollingItem");return A(),Z(i,null,{default:W((()=>[u("div",{class:P(["tui-rolling-nav-tab",{"is-active":n.value,"is-disabled":e.disabled,"is-closeable":o.value}]),onClick:d},[e.icon?(A(),h("i",{key:0,class:P(["tui-rolltab-icon",e.icon])},null,2)):C("",!0),ce(a,Ne(r.value,{class:"tui-rolltab-label"}),{default:W((()=>[De(F(s.value),1)])),_:1},16),o.value?(A(),h(ie,{key:1},[e.locked?(A(),h("i",vh)):(A(),h("i",{key:1,class:"tui-rolltab-remove tui-icon ti-times",onClick:st(c,["stop"])}))],64)):C("",!0)],2)])),_:1})}}}),yh={class:"tui-rnav-btn-inner"},bh={key:0,class:"tui-icon ti-times"},Vh=Object.assign({name:"TuiRouterNav"},{__name:"index",props:{className:String,appendTo:[String,Object],options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["label","path"]);return t||console.warn("TuiRouterNav Warning! ",l),t}},triggerStyle:{type:String,default:"react",validator:e=>["react","circle"].includes(e)},triggerAni:{type:Boolean,default:!0},triggerAniDelay:{type:Number,default:5e3},triggerPosition:{type:String,default:"center",validator:e=>["left","center","right"].includes(e)},buttonWidth:{type:[Number,String],default:"auto"},modal:{type:Boolean,default:!0},useOrder:{type:Boolean,default:!0},activeMatch:{type:String,default:"prefix",validator:e=>["prefix","exact","custom"].includes(e)},activeMatcher:{type:Function,default:null},activeMode:{type:String,default:"type",validator:e=>["state","type","both"].includes(e)},buttonComponent:{type:[String,Object],default:null},buttonConfig:{type:Object,default:()=>({})}},setup(e){const{$optFloaterTo:t,routerTransition:l}=Se("$global",null),a=yt(),i=ka(),o=xe("routerNav"),n=e,s=g((()=>{const e=n.appendTo??t.value;return"string"==typeof e?e:f(e)})),r=Pe({drawerConfig:{direction:"btt",padding:40,modal:!0,showClose:!1,className:"tui-router-nav-drawer"}}),d=g((()=>pe("cpt-rnav",{btnW:"number"==typeof n.buttonWidth?n.buttonWidth+"px":n.buttonWidth}))),c=S(!1),p=S(!1),v=S(!0),m=e=>e&&"/"!==e&&e.replace(/\/+$/,"")||"/",y=e=>{if(!e?.path)return!1;if("custom"===n.activeMatch&&"function"==typeof n.activeMatcher)return!!n.activeMatcher({item:e,route:i});const t=m(i.path),l=m(e.path);return"exact"===n.activeMatch?t===l:"/"===l?"/"===t:t===l||t.startsWith(`${l}/`)},b=e=>e?.buttonComponent||n.buttonComponent||ko,V=e=>({...n.buttonConfig,...e?.buttonConfig}),w=e=>("state"===n.activeMode||"both"===n.activeMode)&&y(e),q=e=>"state"===n.activeMode?"default":y(e)?"primary":"default",x=e=>y(e),k=()=>{c.value=!c.value},B=e=>{!e?.path||y(e)||e?.disabled||(l({path:e.path,query:e.query,useOrder:n.useOrder,waitReady:!0}),c.value=!1)};return ye((()=>{v.value=!1,he.s(o,(()=>{p.value=!0}),n.triggerAniDelay)})),At((()=>{v.value=!0,he.c(o)})),(t,l)=>{const o=ke("TuiDrawer");return A(),h(ie,null,[v.value||f(i)?.path?.includes("login")?C("",!0):(A(),Z(Tt,{key:0,to:s.value,fallback:"#tuiRoot",disabled:v.value},[u("div",{class:P(["tui-router-nav-restraint",`is-position-${e.triggerPosition}`,e.className])},[ce(Me,{name:"fade"},{default:W((()=>[c.value?C("",!0):(A(),h("div",{key:0,class:P(["tui-router-nav-btn","is-turn-on",`is-trigger-style-${e.triggerStyle}`,e.triggerAni&&p.value?"is-ani-on":"is-ani-off"]),onClick:k},[...l[1]||(l[1]=[u("i",{class:"tui-icon ti-angle-up"},null,-1)])],2))])),_:1})],2)],8,["to","disabled"])),ce(o,Ne({modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=e=>c.value=e)},r.drawerConfig,{modal:e.modal}),{default:W((()=>[u("div",{class:P(["tui-router-nav-btn","is-turn-off",`is-trigger-style-${e.triggerStyle}`,`is-position-${e.triggerPosition}`]),onClick:k},[u("div",yh,[c.value?(A(),h("i",bh)):C("",!0)])],2),u("div",{class:"tui-rnav-inner",style:fe(d.value)},[(A(!0),h(ie,null,ze(e.options,((e,l)=>(A(),h(ie,{key:l},[f(a).item?X(t.$slots,"item",{key:0,item:e,active:y(e),activeClass:w(e),activeLock:x(e),type:q(e),disabled:e.disabled,navigate:()=>B(e)}):(A(),Z(ct(b(e)),Ne({key:1,ref_for:!0},V(e),{class:{"is-active":w(e),"is-active-lock":x(e)},type:q(e),disabled:e.disabled,"aria-current":y(e)?"page":null,onClick:t=>B(e)}),{default:W((()=>[De(F(e.buttonLabel||e.label),1)])),_:2},1040,["class","type","disabled","aria-current","onClick"]))],64)))),128))],4)])),_:3},16,["modelValue","modal"])],64)}}}),wh={class:"tui-step-head"},Ch={key:0,class:"tui-step-line"},$h={class:"tui-step-icon"},kh={key:2,class:"tui-step-index"},Sh={class:"tui-step-main"},xo=Object.assign({name:"TuiStep"},{__name:"item",props:{title:{type:String,default:""},description:{type:String,default:""},icon:{type:String,default:""},status:{type:String,validator:e=>["","wait","process","finish","error","success","warning"].includes(e),default:""}},setup(e){const{proxy:t,uid:l}=ut(),a=e,{tipConfig:i,descriptionLines:o,registerStep:n,steps:s,parentProps:r}=Se("TuiSteps",null);ye((()=>{n({props:a,uid:l})}));const d=g((()=>s.value.findIndex((e=>e.uid===l)))),c=g((()=>a.status?a.status:d.value<r.active?r.finishStatus:d.value===r.active?r.processStatus:"wait")),p=g((()=>{if(a.icon)return a.icon;{const e=c.value;return"success"==e?"tui-icon ti-check-circle":"warning"==e?"tui-icon ti-alert-circle":"error"==e?"tui-icon ti-times-circle":null}})),v=g((()=>({...i.value,lines:o.value})));return(t,l)=>{const a=ke("TuiTextTip");return A(),h("div",{class:P(["tui-step",[`is-${c.value}`,{"is-simple":f(r).simple,"is-vertical":"vertical"===f(r).direction}]])},[u("div",wh,[f(r).simple?C("",!0):(A(),h("div",Ch,[...l[0]||(l[0]=[u("i",{class:"tui-step-line-inner"},null,-1)])])),u("div",$h,[t.$slots.icon?X(t.$slots,"icon",{key:0}):p.value?(A(),h("i",{key:1,class:P(p.value)},null,2)):(A(),h("span",kh,F(d.value+1),1))])]),u("div",Sh,[ce(a,Ne(f(i),{class:"tui-step-title"}),{default:W((()=>[X(t.$slots,"title",{},(()=>[De(F(e.title),1)]))])),_:3},16),!t.$slots.description&&!e.description||f(r).simple?C("",!0):(A(),Z(a,Ne({key:0},v.value,{class:"tui-step-desc"}),{default:W((()=>[X(t.$slots,"description",{},(()=>[De(F(e.description),1)]))])),_:3},16))]),f(r).simple&&f(s).length!=d.value+1?(A(),h("div",{key:0,class:P(["tui-step-simple-arrow","vertical"===f(r).direction?"tui-icon ti-chevron-down":"tui-icon ti-chevron-right"])},null,2)):C("",!0)],2)}}}),qh=Object.assign({name:"TuiSteps"},{__name:"index",props:{direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},active:{type:Number,default:0},processStatus:{type:String,default:"process"},finishStatus:{type:String,default:"finish"},simple:{type:Boolean,default:!1},simpleWithBG:{type:Boolean,default:!0},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["title"]);return t||console.warn("TuiSteps Warning! ",l),t}},descriptionLines:{type:Number,default:2},tipConfig:Object},setup(e){const t=e,l=S([]);return rt("TuiSteps",{tipConfig:g((()=>t.tipConfig)),descriptionLines:g((()=>t.descriptionLines)),parentProps:t,steps:l,registerStep:e=>{l.value.push(e)}}),(t,l)=>(A(),h("div",{class:P(["tui-steps",{"is-vertical":"vertical"===e.direction,"is-simple":e.simple,"is-simple-bg":e.simpleWithBG}])},[e.options&&e.options.length?(A(!0),h(ie,{key:0},ze(e.options,((e,t)=>(A(),Z(xo,{key:t,title:e.title,description:e.description,icon:e.icon,status:e.status},null,8,["title","description","icon","status"])))),128)):X(t.$slots,"default",{key:1})],2))}}),Th={class:"tui-tabs-pager"},Bh=Object.assign({name:"TuiTabs"},{__name:"index",props:{appearance:{type:String,default:"simple",validator:e=>["simple","card","button"].includes(e)},faceTo:{type:String,default:"up",validator:e=>["up","down","left","right"].includes(e)},textDirection:{type:String,default:null,validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["default","large","small"].includes(e)},align:{type:String,default:null,validator:e=>["start","center","end"].includes(e)},hideBaseLine:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0},options:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["label"]);return t||console.warn("TuiTabs Warning! ",l),t}},modelValue:[String,Number,Boolean],itemMaxWidth:[Number,String],tipConfig:Object,tagConfig:Object,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{$optResizeCounter:l,initResizeBy:a}=Se("$global",null),i=a(),o=e,n=t;rt("TuiTabs",{tipConfig:g((()=>o.tipConfig)),updateValue:e=>n("update:modelValue",e),change:e=>n("change",e),modelValue:g((()=>o.modelValue)),appearance:g((()=>o.appearance)),tagConfig:g((()=>o.tagConfig)),textDirection:g((()=>o.textDirection))});const s=g((()=>pe("cpt-tab",{...q("maxw",o.itemMaxWidth,"smart"),...q("jc",o.align),...q("tsf",r(),{when:V.active})}))),r=()=>{const e=V.curIndex*V.wrapSize;return"v"==b.value?`translateY(-${e}px)`:`translateX(-${e}px)`},d=xe("tabs"),c=S(!1),p=S(!1),v=S(null),m=S(null),y=S(null),b=g((()=>"up"==o.faceTo||"down"==o.faceTo?"h":"left"==o.faceTo||"right"==o.faceTo?"v":void 0)),V=Pe({active:!1,wrapSize:0,innerSize:0,disLeftArrow:!1,disRightArrow:!1,maxIndex:0,curIndex:0}),w=()=>{V.active&&V.curIndex>0&&V.curIndex--},x=()=>{V.active&&V.curIndex<V.maxIndex&&V.curIndex++},k=()=>{0==V.curIndex?V.disLeftArrow=!0:V.disLeftArrow=!1,V.curIndex==V.maxIndex?V.disRightArrow=!0:V.disRightArrow=!1};K((()=>l.value),((e,t)=>{!o.scrollable||"root"!=i.value(o.resizeObserver)||e>t&&B()}));const B=()=>{if(m.value){let e,t;"h"==b.value?(e=m.value.clientWidth-o.scrollOffset,t=y.value.clientWidth):"v"==b.value&&(e=m.value.clientHeight-o.scrollOffset,t=y.value.clientHeight),V.wrapSize=e,V.innerSize=t,t>e?(V.active=!0,V.maxIndex=Math.ceil(t/e)-1):V.active=!1,V.curIndex=0}c.value||(c.value=!0)};return ye((()=>{p.value=!0})),(t,l)=>{const a=ke("TuiTab"),o=ke("TuiButton"),n=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["tui-tabs",`is-appr-${e.appearance}`,e.size&&`is-size-${e.size}`,`is-face-${e.faceTo}`,e.textDirection&&`is-text-dir-${e.textDirection}`,e.scrollable&&"simple"==e.appearance&&`tui-tabs-scrollable is-scroll-${b.value}`,{"is-baseline-hidden":e.hideBaseLine}]),style:fe(s.value),ref_key:"tabWrap",ref:v},[e.scrollable&&"simple"==e.appearance?(A(),h(ie,{key:0},[u("div",{class:"tui-tabs-scroll-wrap",ref_key:"scrollWrapRef",ref:m},[u("div",{class:P(["tui-tabs-scroll-inner"]),ref_key:"scrollInnerRef",ref:y,onTransitionend:k},[e.options.length>0?(A(!0),h(ie,{key:0},ze(e.options,((e,t)=>(A(),Z(a,Ne({ref_for:!0},e,{value:e.value?e.value:t}),{default:W((()=>[De(F(e.label),1)])),_:2},1040,["value"])))),256)):X(t.$slots,"default",{key:1})],544)],512),u("div",{class:P(["tui-tabs-scroll-control",{"is-active":V.active}])},[u("div",Th,F(V.curIndex+1)+"/"+F(V.maxIndex+1),1),ce(o,{link:"",disabled:V.disLeftArrow,onClick:w},{default:W((()=>[...l[0]||(l[0]=[u("i",{class:"tui-icon ti-chevron-left"},null,-1)])])),_:1},8,["disabled"]),ce(o,{link:"",disabled:V.disRightArrow,onClick:x},{default:W((()=>[...l[1]||(l[1]=[u("i",{class:"tui-icon ti-chevron-right"},null,-1)])])),_:1},8,["disabled"])],2)],64)):(A(),h(ie,{key:1},[e.options.length>0?(A(!0),h(ie,{key:0},ze(e.options,((e,t)=>(A(),Z(a,Ne({ref_for:!0},e,{value:e.value?e.value:t}),{default:W((()=>[De(F(e.label),1)])),_:2},1040,["value"])))),256)):X(t.$slots,"default",{key:1})],64)),t.$slots.suffix?X(t.$slots,"suffix",{key:2}):C("",!0)],6)),[[Oe,p.value],[n,{callback:B,uid:f(d),disabled:!e.scrollable||"self"!=f(i)(e.resizeObserver)&&c.value}]])])),_:3})}}}),xh=Object.assign({name:"TuiTab"},{__name:"tab",props:{value:{type:[String,Number,Boolean],required:!0},count:{type:Number,default:0},icon:{type:String,default:null},tagType:{type:String,default:"default"},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tipConfig:l,updateValue:a,change:i,modelValue:o,tagConfig:n,textDirection:s}=Se("TuiTabs",null),r=g((()=>o.value==t.value)),u=()=>{t.disabled||(a(t.value),i(t.value))};return(t,a)=>{const i=ke("TuiTextTip"),o=ke("TuiTag");return A(),h("div",{onClick:u,class:P(["tui-tab-item",{"is-active":r.value,"is-disabled":e.disabled}])},[e.icon?(A(),h("i",{key:0,class:P(["tui-tab-icon",e.icon])},null,2)):C("",!0),ce(i,Ne(f(l),{textDirection:f(s)}),{default:W((()=>[X(t.$slots,"default")])),_:3},16,["textDirection"]),e.count?(A(),Z(o,Ne({key:1,class:"tui-tab-value",size:"small",type:e.tagType},f(n)),{default:W((()=>[De(F(e.count),1)])),_:1},16,["type"])):C("",!0)],2)}}}),ea=Symbol("treeNodeContextKey");let Ph=0;function Rh(){return Ph++}const zh={class:"tui-tn-label"},Nh={key:1,class:"tui-text"},Ih={__name:"content",props:{node:{type:Object,required:!0},expanded:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},indent:{type:Number,default:18},icon:{type:[String,Object]},nodeIcon:{type:String}},emits:["expand-click","check-change"],setup(e,{emit:t}){const l=e,{appearance:a,showIcon:i,defaultIcon:o}=Se(ea,{appearance:"tree",showIcon:!1,defaultIcon:null}),n=t;function s(){if(l.node.disabled)return;const e={target:{checked:!l.node.checked}};n("check-change",e)}const r=g((()=>{let e=0;return e=a.includes("menu")&&1===l.node.level?10:(l.node.level-1)*l.indent,pe("cpt-tn",{pdl:e+"px"})})),d=g((()=>a.includes("menu"))),c=g((()=>["tui-icon ti-caret-right",{"is-leaf":l.node.isLeaf,"is-expanded":!l.node.isLeaf&&l.expanded}])),p=g((()=>l.nodeIcon?l.nodeIcon:i?o&&l.node.isLeaf?o:l.node.isLeaf?"tui-icon ti-file":l.expanded?"tui-icon tis-folder-open":"tui-icon tis-folder":null)),f=g((()=>l.nodeIcon||i));return(t,l)=>(A(),h("div",{class:P(["tui-tree-node-cont",{"is-menu-mode":d.value,"is-first-level":1===e.node.level&&d.value}]),style:fe(r.value)},[d.value?C("",!0):(A(),h("span",{key:0,class:"tui-tn-exp-icon",onClick:l[0]||(l[0]=st((e=>n("expand-click")),["stop"]))},[u("i",{class:P(c.value)},null,2)])),t.$slots.icon?X(t.$slots,"icon",{key:1,node:e.node}):f.value?(A(),h("i",{key:2,class:P(["tui-tn-icon",p.value])},null,2)):C("",!0),e.showCheckbox?(A(),h("i",{key:3,class:P(["tui-checkbox tui-icon",{"is-checked":e.node.checked,"is-indeterminate":e.node.indeterminate,"is-disabled":e.node.disabled,"ti-minus-square":e.node.indeterminate,"ti-check-square":e.node.checked,"ti-square":!e.node.checked&&!e.node.indeterminate}]),onClick:st(s,["stop"])},null,2)):C("",!0),u("div",zh,[t.$slots.default?X(t.$slots,"default",{key:0,node:e.node,data:e.node.data}):(A(),h("span",Nh,F(e.node.label),1))]),d.value?(A(),h("span",{key:4,class:"tui-tn-exp-icon tui-tn-exp-icon-right",onClick:l[1]||(l[1]=st((e=>n("expand-click")),["stop"]))},[u("i",{class:P(c.value)},null,2)])):C("",!0)],6))}},Mh=["id"],Dh={key:0,class:"tui-tn-loading"},Oh={class:"tui-tn-loading-text"},_h={key:0,class:"tui-tn-children",role:"group"},Po={__name:"node",props:{node:{type:Object,required:!0},props:{type:Object,default:()=>({})},renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:[String,Number],indent:{type:Number,default:18},icon:[String,Object]},setup(e){const{i18n:t}=Se("$global",null),l=e,{store:a,emitter:i,root:o,appearance:n,showIcon:s,defaultIcon:r}=Se(ea,{appearance:"tree",showIcon:!1,defaultIcon:null}),d=S(!1),c=S(null),p=S(null),v=qo({duration:300}),m=g((()=>{const{currentNode:e}=a;return e&&e.id===l.node.id}));function y(e){return a.getNodeKey(e)}function b(){l.node.isLeaf||(d.value?function(){l.node.collapse(),i.emit("node-collapse",l.node.data,l.node,this)}():function(){if(!l.node.loading){if(o.value.accordion){const{childNodes:e}=l.node.parent;e.forEach((e=>{e!==l.node&&e.collapse()}))}l.node.expand(),i.emit("node-expand",l.node.data,l.node,this)}}())}function V(){const{node:e}=l;i.emit("node-click",e.data,e,this),q(),l.expandOnClickNode&&b(),l.showCheckbox&&l.checkOnClickNode&&!e.disabled&&x({target:{checked:!e.checked}})}function w(e){a.currentNode!==l.node&&q(),i.emit("node-contextmenu",e,l.node.data,l.node,this)}function q(){m.value||a.setCurrentNode(l.node)}function x(e){const t=e.target.checked;l.node.setChecked(t,!a.checkStrictly),de((()=>{i.emit("check",l.node.data,{checkedNodes:a.getCheckedNodes(),checkedKeys:a.getCheckedKeys(),halfCheckedNodes:a.getHalfCheckedNodes(),halfCheckedKeys:a.getHalfCheckedKeys()})})),i.emit("check-change",l.node.data,t,l.node.indeterminate)}return K((()=>l.node.expanded),(e=>{if(d.value=e,e&&o.value.accordion&&l.node.parent){const{childNodes:e}=l.node.parent;e.forEach((e=>{e!==l.node&&e.expanded&&e.collapse()}))}}),{immediate:!0}),K((()=>l.node.checked),(e=>{c.value!==e&&(i.emit("check-change",l.node.data,e,l.node.indeterminate),c.value=e)}),{immediate:!0}),K((()=>l.node.indeterminate),(e=>{p.value!==e&&(p.value=e)}),{immediate:!0}),K((()=>l.node.visible),(()=>{})),(a,i)=>we((A(),h("div",{class:P(["tui-tree-node",{"is-expanded":d.value,"is-current":m.value,"is-hidden":!e.node.visible,"is-focusable":!e.node.disabled,"is-checked":!e.node.disabled&&e.node.checked,"is-indeterminate":e.node.indeterminate,"is-first-level":1===e.node.level,[`tui-tn-level-${e.node.level}`]:!0}]),role:"treeitem",id:e.node.id,onClick:st(V,["stop"]),onContextmenu:st(w,["prevent"])},[ce(Ih,{node:e.node,expanded:d.value,"show-checkbox":e.showCheckbox,"node-icon":e.node.data.icon,indent:e.indent,icon:e.icon,onExpandClick:b,onCheckChange:x},jt({_:2},[a.$slots.default?{name:"default",fn:W((e=>[X(a.$slots,"default",{node:e.node,data:e.data})])),key:"0"}:void 0,a.$slots.icon?{name:"icon",fn:W((e=>[X(a.$slots,"icon",pt(Vt(e)))])),key:"1"}:void 0]),1032,["node","expanded","show-checkbox","node-icon","indent","icon"]),e.node.loading?(A(),h("div",Dh,[i[0]||(i[0]=u("span",{class:"tui-tn-loading-icon"},"⟳",-1)),u("span",Oh,F(f(t)("common.processing")),1)])):C("",!0),ce(Me,{name:"tui-tree-node",onBeforeEnter:f(v).beforeEnter,onEnter:f(v).enter,onAfterEnter:f(v).afterEnter,onBeforeLeave:f(v).beforeLeave,onLeave:f(v).leave,onAfterLeave:f(v).afterLeave},{default:W((()=>[!e.renderAfterExpand||d.value?we((A(),h("div",_h,[(A(!0),h(ie,null,ze(e.node.childNodes,(t=>(A(),Z(Po,{key:y(t),node:t,props:l,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"expand-on-click-node":e.expandOnClickNode,"check-on-click-node":e.checkOnClickNode,"check-on-click-leaf":e.checkOnClickLeaf,"current-node-key":e.currentNodeKey,indent:e.indent,icon:e.icon},jt({_:2},[a.$slots.default?{name:"default",fn:W((e=>[X(a.$slots,"default",{node:e.node,data:e.data})])),key:"0"}:void 0,a.$slots.icon?{name:"icon",fn:W((e=>[X(a.$slots,"icon",Ne({ref_for:!0},e))])),key:"1"}:void 0]),1032,["node","props","render-after-expand","show-checkbox","expand-on-click-node","check-on-click-node","check-on-click-leaf","current-node-key","indent","icon"])))),128))],512)),[[Oe,d.value]]):C("",!0)])),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],42,Mh)),[[Oe,e.node.visible]])}};class ol{constructor(e){this.id=Rh(),this.data=e.data||null,this.expanded=!1,this.parent=e.parent,this.visible=!0,this.isCurrent=!1,this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.checked=!1,this.indeterminate=!1;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t]);this.parent&&(this.level=this.parent.level+1);const t=this.store;if(!t)throw new Error("[Tree] store is required!");t.registerNode(this),this.data&&this.setData(this.data),!0!==t.lazy&&this.data&&this.updateLeafState()}setData(e){if(!e)return;let t;this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:this.data[this.store.props.children]||[];for(let e=0,l=t.length;e<l;e++)this.insertChild({data:t[e]});this.updateLeafState()}setData(e){if(!e)return;let t;this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:this.data[this.store.props.children]||[];for(let e=0,l=t.length;e<l;e++)this.insertChild({data:t[e]});this.updateLeafState()}get label(){return this.data[this.store.props.label]}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return this.data[this.store.props.disabled]}get nextSibling(){const e=this.parent;if(!e)return null;const t=e.childNodes.indexOf(this);return t<0?null:t+1<e.childNodes.length?e.childNodes[t+1]:null}get previousSibling(){const e=this.parent;if(!e)return null;const t=e.childNodes.indexOf(this);return t<=0?null:e.childNodes[t-1]}contains(e){if(e===this)return!0;const{childNodes:t}=this;let l=!1;for(let a=0,i=t.length;a<i&&(l=t[a].contains(e),!l);a++);return l}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,l){if(!e)throw new Error("insertChild error: child is required");if(!(e instanceof ol)){if(!l){const l=this.getChildren(!0);l.includes(e.data)||(typeof t>"u"||t<0?l.push(e.data):l.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=new ol(e)}return e.level=this.level+1,typeof t>"u"||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState(),e}insertBefore(e,t){let l;t&&(l=this.childNodes.indexOf(t)),this.insertChild(e,l)}insertAfter(e,t){let l;t&&(l=this.childNodes.indexOf(t),-1!==l&&(l+=1)),this.insertChild(e,l)}removeChild(e){const t=this.getChildren()||[],l=t.indexOf(e.data);l>-1&&t.splice(l,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let l=0;l<this.childNodes.length;l++)if(this.childNodes[l].data===e){t=this.childNodes[l];break}t&&this.removeChild(t)}expand(e,t){if(this.store.accordion&&this.parent&&this.parent.childNodes.forEach((e=>{e!==this&&e.collapse()})),t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}!this.store.lazy||this.loaded&&!this.store.renderAfterExpand?(this.expanded=!0,this.loaded=!0,e&&e()):this.loadData((t=>{this.expanded=!0,t instanceof Array&&e&&e()}))}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild({data:e,...t})}))}collapse(){this.expanded=!1}loadData(e=(()=>{})){!0!==this.store.lazy||!this.store.load||this.loaded||this.loading?e&&e():(this.loading=!0,this.store.load(this,(t=>{this.loading=!1,t&&Array.isArray(t)?(this.loaded=!0,this.childNodes=[],this.doCreateChildren(t),this.updateLeafState(),e&&e(t)):(this.expanded=!1,e&&e(null))})))}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.data[this.store.props.isLeaf])return void(this.isLeaf=this.data[this.store.props.isLeaf]);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,l,a){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;!1===this.shouldNotify&&(this.shouldNotify=a);let{childNodes:i}=this;if(t&&i.length>0)for(let l=0,o=i.length;l<o;l++)i[l].setChecked(e,t,!0,a);const{parent:o}=this;!o||0===o.level||l||this.updateParentCheckState()}updateParentCheckState(){let e=this.parent;for(;e&&e.level>0;)e.updateCheckState(),e=e.parent}updateCheckState(){const e=this.childNodes,t=e.length;let l=0,a=0;for(let i=0;i<t;i++){const t=e[i];t.checked?l++:t.indeterminate&&a++}l===t?(this.checked=!0,this.indeterminate=!1):l>0||a>0?(this.checked=!1,this.indeterminate=!0):(this.checked=!1,this.indeterminate=!1),this.parent&&this.parent.level>0&&this.parent.updateCheckState()}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const l=this.store.props;let a=t[l.children];return e&&!a&&(a=t[l.children]=[]),a}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.splice(0);e.forEach(((e,l)=>{let a=t.find((t=>t.data===e));a?(this.insertChild(a,l),a.updateChildren()):this.insertChild({data:e},l)})),t.forEach((t=>{e.includes(t.data)||this.store.deregisterNode(t)}))}filter(e){const t=this.store.filterNodeMethod,l=this.store.lazy;if(t)return this.visible=t.call(null,e,this.data,this),l&&!this.loaded&&this.visible&&this.loadData(),this.childNodes.forEach((t=>{t.filter(e)})),!this.visible&&this.childNodes.length&&this.childNodes.some((e=>e.visible))&&(this.visible=!0),this.visible;this.visible=!0}}class Eh{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t]);this.filterNodeMethod||(this.filterNodeMethod=(e,t,l)=>!e||l.label.toLowerCase().includes(e.toLowerCase())),this.nodesMap={},this.root=new ol({data:this.data||[],store:this}),this.lazy||this._initDefaultCheckedNodes()}filter(e){this.filterNodeMethod&&this.root.filter(e)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof ol)return e;const t="object"!=typeof e?e:this.getNodeKey(e);return this.nodesMap[t]||null}insertBefore(e,t){const l=this.getNodeKey(t),a=this.getNode(l);a.parent.insertBefore({data:e},a)}insertAfter(e,t){const l=this.getNodeKey(t),a=this.getNode(l);a.parent.insertAfter({data:e},a)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const l=t?this.getNode(t):this.root;l&&l.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;Object.keys(t).forEach((e=>{t[e].setChecked(!1,!0,!0)})),e.forEach((e=>{const l=t[e];l&&l.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){-1!==(this.defaultCheckedKeys||[]).indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKeys(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.getNodeKey(e);t&&(this.nodesMap[t]=e)}deregisterNode(e){this.key&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getNodeKey(e,t){return typeof t<"u"?t:this.key?e instanceof ol?e.data[this.key]:e[this.key]:e.id}updateChildren(e,t){const l=this.nodesMap[e];if(l&&(l.childNodes.forEach((e=>{l.removeChild(e)})),t))for(let e=0;e<t.length;e++){const a=t[e];l.insertChild({data:a})}}_setCheckedKeys(e,t=!1,l={}){const a=this.nodesMap,i=Object.keys(l);for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const o=a[e],n=i.length>0&&Object.prototype.hasOwnProperty.call(l,o.key);(!t||t&&o.isLeaf)&&o.setChecked(n,!this.checkStrictly)}}setCheckedNodes(e,t=!1){const l={};for(let t=0,a=e.length;t<a;t++){const a=e[t][this.key];a&&(l[a]=!0)}this._setCheckedKeys(void 0,t,l)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const l={};Array.isArray(e)&&e.forEach((e=>{l[e]=!0})),this._setCheckedKeys(void 0,t,l)}setDefaultExpandedKeys(e){if(e=e||[],this.defaultExpandedKeys=e,this.accordion){const t={};for(let l=e.length-1;l>=0;l--){const a=e[l],i=this.getNode(a);if(!i)continue;const o=i.level;t[o]||(t[o]=[]),t[o].push(i)}Object.keys(t).forEach((e=>{const l=t[e];l.length>0&&l[0].expand(null,this.autoExpandParent)}))}else e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}setChecked(e,t,l){const a=this.getNode(e);a&&a.setChecked(!!t,l)}getCurrentNode(){return this.currentNode}setCurrentNode(e,t=!0){const l=this.currentNode;l&&(l.isCurrent=!1),this.currentNode=e,e&&(e.isCurrent=!0,t&&this.expandOnClickNode&&e.parent&&e.parent.expand(null,this.autoExpandParent))}setCurrentNodeKey(e,t=!0){if(null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const l=this.getNode(e);l&&this.setCurrentNode(l,t)}getCheckedNodes(e=!1,t=!1){const l=[],a=i=>{i.childNodes.forEach((i=>{(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&l.push(i.data),a(i)}))};return a(this.root),l}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=l=>{l.childNodes.forEach((l=>{l.indeterminate&&e.push(l.data),t(l)}))};return t(this.root),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.push(t[l]);return e}updateChildrenData(e,t){const l=this.nodesMap[e];if(!l)return;const a=l.childNodes;for(let e=a.length-1;e>=0;e--){const t=a[e];this.remove(t.data)}for(let e=0;e<t.length;e++){const a=t[e];this.append(a,l.data)}}getCurrentKey(){return this.currentNode?this.getNodeKey(this.currentNode):null}findNodes(e,t=!1){const l=[],a=i=>{if(e(i)&&l.push(i),t){const e=i.childNodes;for(let t=0;t<e.length;t++)a(e[t])}},i=this._getAllNodes();for(let e=0;e<i.length;e++)a(i[e]);return l}expandAllNodes(){this._getAllNodes().forEach((e=>{e.expand(null,!0)}))}collapseAllNodes(){this._getAllNodes().forEach((e=>{e.collapse()}))}filterNodeByKey(e,t){if(!this.filterNodeMethod)return;const l=this.getNode(e);l&&l.filter(t)}findParentNode(e,t){const l=this.getNode(e);if(!l)return null;let a=l.parent;for(;a&&a!==this.root;){if(t(a))return a;a=a.parent}return null}getNodePath(e){const t=this.getNode(e);if(!t)return[];const l=[t];let a=t.parent;for(;a&&a!==this.root;)l.unshift(a),a=a.parent;return l}getAllChildren(e,t=!0){const l=this.getNode(e);if(!l)return[];const a=[],i=e=>{e.childNodes.forEach((e=>{(t||!e.isLeaf)&&a.push(e),i(e)}))};return i(l),a}batchSetNodeState(e,t,l,a){e.forEach((e=>{const i=this.getNode(e);i&&(void 0!==t&&(t?i.expand(null,this.autoExpandParent):i.collapse()),void 0!==l&&i.setChecked(l,!this.checkStrictly),void 0!==a&&a&&this.setCurrentNode(i))}))}}const Lh={key:0,class:"tui-tree-filter"},Wh={key:1,class:"tui-tree-empty"},jh={key:2,class:"tui-tree-loading"},Gh={class:"tui-tree-load-text"},Fh={class:"tui-tree-inner"},Hh=Object.assign({name:"TuiTree"},{__name:"index",props:{data:{type:Array,default:()=>[]},emptyText:String,nodeKey:{type:String,default:"id"},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled",isLeaf:"isLeaf",class:"class"})},renderAfterExpand:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},autoExpandParent:{type:Boolean,default:!0},defaultExpandedKeys:{type:Array,default:()=>[]},showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},currentNodeKey:[String,Number],filterNodeMethod:{type:Function},accordion:{type:Boolean,default:!1},indent:{type:Number,default:18},icon:{type:[String,Object]},lazy:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,load:Function,appearance:{type:String,default:"tree",validator:e=>["tree","menu","menu-block"].includes(e)},showIcon:{type:Boolean,default:!1}},emits:["node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],setup(e,{expose:t,emit:l}){const{i18n:a}=Se("$global",null),i=e,o=l,n=Pe(new Eh({key:i.nodeKey,data:i.data,lazy:i.lazy,props:i.props,load:i.load,currentNodeKey:i.currentNodeKey,checkStrictly:i.checkStrictly,defaultCheckedKeys:i.defaultCheckedKeys,defaultExpandedKeys:i.defaultExpandedKeys,autoExpandParent:i.autoExpandParent,defaultExpandAll:i.defaultExpandAll,filterNodeMethod:i.filterNodeMethod,accordion:i.accordion})),s=g((()=>n.root)),r=S(null),d=S(""),c=S(!1),p=g((()=>{const{childNodes:e}=s.value;return!e||0===e.length||e.every((e=>!1===e.visible))})),v=S(null);function m(){rt(ea,{store:n,root:s,currentNode:r,appearance:i.appearance,showIcon:i.showIcon,defaultIcon:i.icon,emitter:{emit:(e,...t)=>{o(e,...t)}}})}rt(ea,{store:n,root:s,currentNode:r,appearance:i.appearance,showIcon:i.showIcon,defaultIcon:i.icon,emitter:{emit:(e,...t)=>{o(e,...t)}}}),K((()=>i.data),(e=>{n.setData(e)}),{deep:!0}),K((()=>i.currentNodeKey),(e=>{n.setCurrentNodeKey(e)})),K((()=>i.defaultCheckedKeys),(e=>{n.setDefaultCheckedKeys(e)})),K((()=>i.defaultExpandedKeys),(e=>{n.setDefaultExpandedKeys(e)})),K(d,(e=>{n.filter(e)})),K((()=>i.appearance),(e=>{m()})),K((()=>i.showIcon),(e=>{m()})),K((()=>i.icon),(e=>{m()}));const y=e=>n.getNodeKey(e);return t({filter:e=>{d.value=void 0===e?"":e},updateKeyChildren:(e,t)=>n.updateChildren(e,t),getCheckedNodes:(e,t)=>n.getCheckedNodes(e,t),setCheckedNodes:e=>n.setCheckedNodes(e),getCheckedKeys:e=>n.getCheckedKeys(e),setCheckedKeys:(e,t)=>n.setCheckedKeys(e,t),setChecked:(e,t,l)=>n.setChecked(e,t,l),getHalfCheckedNodes:()=>n.getHalfCheckedNodes(),getHalfCheckedKeys:()=>n.getHalfCheckedKeys(),getCurrentKey:()=>n.getCurrentKey(),getCurrentNode:()=>n.getCurrentNode(),setCurrentKey:(e,t=!0)=>{n.setCurrentKey(e,t),r.value=n.currentNode},setCurrentNode:(e,t=!0)=>{n.setCurrentNode(e,t),r.value=n.currentNode},getNode:e=>n.getNode(e),remove:e=>n.remove(e),append:(e,t)=>n.append(e,t),insertBefore:(e,t)=>n.insertBefore(e,t),insertAfter:(e,t)=>n.insertAfter(e,t)}),ye((()=>{r.value=n.currentNode,i.lazy&&i.load&&(!i.data||0===i.data.length)&&(c.value=!0,i.load(s.value,(e=>{c.value=!1,s.value.doCreateChildren(e),n._initDefaultCheckedNodes()})))})),(t,l)=>{const o=ke("TuiInput"),n=ke("TuiEmpty");return A(),h("div",{class:P(["tui-tree",`is-appr-${e.appearance}`,{"is-draggable":e.draggable,"is-drop-not-allow":!e.allowDrop,"is-drop-inner":"inner"===v.value,"is-highlight":e.highlightCurrent,"has-icon":e.showIcon}])},[e.filterNodeMethod?(A(),h("div",Lh,[ce(o,{clearable:"",type:"text",modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=e=>d.value=e),placeholder:f(a)("placeholder.filter")},null,8,["modelValue","placeholder"])])):C("",!0),p.value?(A(),h("div",Wh,[ce(n,{text:e.emptyText},null,8,["text"])])):C("",!0),c.value?(A(),h("div",jh,[u("span",Gh,F(f(a)("common.processing")),1)])):C("",!0),we(u("div",Fh,[(A(!0),h(ie,null,ze(s.value.childNodes,(l=>(A(),Z(Po,{key:y(l),node:l,props:i,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"expand-on-click-node":e.expandOnClickNode,"check-on-click-node":e.checkOnClickNode,"check-on-click-leaf":e.checkOnClickLeaf,"current-node-key":e.currentNodeKey,indent:e.indent,icon:e.icon},jt({_:2},[t.$slots.default?{name:"default",fn:W((e=>[X(t.$slots,"default",{node:e.node,data:e.data})])),key:"0"}:void 0,t.$slots.icon?{name:"icon",fn:W((e=>[X(t.$slots,"icon",Ne({ref_for:!0},e))])),key:"1"}:void 0]),1032,["node","props","render-after-expand","show-checkbox","expand-on-click-node","check-on-click-node","check-on-click-leaf","current-node-key","indent","icon"])))),128))],512),[[Oe,!p.value]])],2)}}}),Uh=Object.assign({name:"TuiCheckbox"},{__name:"index",props:{modelValue:Array,max:Number,defaultIcon:{type:Boolean,default:!0},separable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appearance:{type:String,default:"simple",validator:e=>["simple","buttonPlain","button"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},textDirection:{type:String,default:null,validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},align:{type:String,default:null,validator:e=>["start","center","end"].includes(e)},options:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["label"]);return t||console.warn("TuiCheckBox Warning! ",l),t}},tipConfig:Object,itemMaxWidth:Number,itemMinWidth:Number,itemWidth:Number,className:String},emits:["change","update:modelValue"],setup(e,{emit:t}){const l=e,a=Se("TuiForm",null),i=g((()=>a?.size?.value||l.size)),o=g((()=>a?.disabled?.value||l.disabled)),n=g((()=>`is-${l.appearance.replace(/([A-Z])/g,"-$1").toLowerCase()}`)),s=g((()=>pe("cpt-ckbox",{...q("align",l.align),...q("imaxw",l.itemMaxWidth,"px"),...q("iminw",l.itemMinWidth,"px"),...q("iw",l.itemWidth,"px")}))),r=t;return rt("TuiCkboxG",{tipConfig:g((()=>l.tipConfig)),modelValue:g((()=>l.modelValue)),defaultIcon:g((()=>l.defaultIcon)),max:g((()=>l.max)),parDisabled:o,isChecked:e=>l.modelValue.includes(e),updateValue:e=>{const t=[...l.modelValue];if(!e&&0!=e||-1!=t.indexOf(e)){const l=t.indexOf(e);l>-1&&t.splice(l,1)}else{if(l.max&&t.length>=l.max)return;t.push(e)}r("update:modelValue",t),r("change",t)}}),ye((()=>{})),(t,l)=>{const a=ke("TuiCheckboxItem");return A(),h("div",{class:P(["tui-checkbox",n.value,`is-size-${i.value}`,e.className,e.direction&&`is-dir-${e.direction}`,e.textDirection&&`is-text-dir-${e.textDirection}`,{"is-separable":e.separable}]),style:fe(s.value)},[e.options.length>0?(A(!0),h(ie,{key:0},ze(e.options,((e,t)=>(A(),Z(a,{value:null!=e.value&&null!=e.value?e.value:t,count:e.count,icon:e.icon,disabled:e.disabled},{default:W((()=>[De(F(e.label),1)])),_:2},1032,["value","count","icon","disabled"])))),256)):X(t.$slots,"default",{key:1})],6)}}}),Qh={key:0,class:P("tui-cbi-icon tui-icon ti-square")},Yh={key:1,class:P("tui-cbi-icon tui-icon tis-check-square")},Kh=Object.assign({name:"TuiCheckboxItem"},{__name:"item",props:{value:{type:[String,Number,Boolean],required:!0},icon:{type:[String,Array],default:null},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tipConfig:l,updateValue:a,modelValue:i,defaultIcon:o,max:n,isChecked:s,parDisabled:r}=Se("TuiCkboxG",null),u=g((()=>u.value)),d=g((()=>s(t.value))),c=g((()=>"array"==Qe(t.icon)&&2==t.icon.length?d.value?t.icon[1]:t.icon[0]:"string"==Qe(t.icon)?t.icon:void 0)),p=e=>{t.disabled||r.value||a(t.value)};return Al((()=>{})),(t,a)=>{const i=ke("TuiTextTip");return A(),h("div",{onClick:p,class:P(["tui-checkbox-item",{"is-active":d.value,"is-disabled":e.disabled||f(r)}])},[!d.value&&f(o)?(A(),h("i",Qh)):f(o)?(A(),h("i",Yh)):C("",!0),e.icon?(A(),h("i",{key:2,class:P(`tui-cbi-icon ${c.value}`)},null,2)):C("",!0),ce(i,pt(Vt(f(l))),{default:W((()=>[X(t.$slots,"default")])),_:3},16)],2)}}}),Xh=Object.assign({name:"TuiForm"},{__name:"index",props:{model:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"right",validator:e=>["left","right","top"].includes(e)},labelWidth:{type:[String,Number],default:150},labelSuffix:{type:String,default:":"},labelHide:{type:Boolean,default:!1},asteriskHide:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"left",validator:e=>["left","right"].includes(e)},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},showValidateState:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1},scrollIntoViewOptions:{type:[Object,Boolean],default:!0}},emits:["validate"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=S([]),n=e=>{if(e&&e.length>0){const t=[];return e.forEach((e=>{const l=o.value.find((t=>t.prop===e));l&&t.push(l)})),t}return o.value.filter((e=>e.prop))},s=async e=>{if(!a.model)return console.warn("[TuiForm] model is required for validate to work."),!1;let t;"function"!=typeof e&&(t=new Promise(((t,l)=>{e=(e,a)=>{e?t(!0):l(a)}})));let l=!0,i=0,o={};const A=n();return 0===A.length?(e(!0,{}),t):(A.forEach((t=>{t.validate("",((n,s)=>{n&&(l=!1,o[t.prop]=s||{message:n,field:t.prop}),"function"==typeof e&&++i===A.length&&(e(l,o),!l&&a.scrollToError&&r(Object.keys(o)[0]))}))})),t)},r=e=>{const t=o.value.find((t=>t.prop===e)),l=t?.$el?.value||t?.$el;l?.scrollIntoView&&l.scrollIntoView(a.scrollIntoViewOptions)};return K((()=>a.rules),(()=>{a.validateOnRuleChange&&s().catch((()=>{}))}),{deep:!0}),rt("TuiForm",{labelWidth:g((()=>a.labelWidth)),labelPosition:g((()=>a.labelPosition)),labelSuffix:g((()=>a.labelSuffix)),labelHide:g((()=>a.labelHide)),asteriskHide:g((()=>a.asteriskHide)),asteriskPosition:g((()=>a.asteriskPosition)),showMessage:g((()=>a.showMessage)),inlineMessage:g((()=>a.inlineMessage)),showValidateState:g((()=>a.showValidateState)),inline:g((()=>a.inline)),validateOnRuleChange:g((()=>a.validateOnRuleChange)),model:g((()=>a.model)),rules:g((()=>a.rules)),size:g((()=>a.size)),disabled:g((()=>a.disabled)),addField:e=>{if(e){const t=o.value.findIndex((t=>t.uid===e.uid));if(t>-1)return void(o.value[t]=e);o.value.push(e)}},removeField:e=>{if(e?.uid){const t=o.value.findIndex((t=>t.uid===e.uid));t>-1&&o.value.splice(t,1)}},emit:i}),t({validate:s,validateField:(e,t)=>{const l=n([].concat(e));0!==l.length?l.forEach((e=>{e.validate("",t)})):console.warn("[TuiForm] please pass correct props!")},resetFields:()=>{a.model?o.value.forEach((e=>{e.resetField()})):console.warn("[TuiForm] model is required for resetFields to work.")},clearValidate:e=>{(e?n([].concat(e)):o.value).forEach((e=>{e.clearValidate()}))},scrollToField:r,fields:g((()=>o.value))}),(t,l)=>(A(),h("form",{class:P(["tui-form",{"is-inline":e.inline,[`is-label-pos-${e.labelPosition}`]:e.labelPosition,[`is-size-${e.size}`]:e.size}]),onSubmit:l[0]||(l[0]=st((()=>{}),["prevent"]))},[X(t.$slots,"default")],34))}});function fa(e,t,l){let a=e;const i=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split(".");let o=0;for(let e=i.length;o<e-1&&(a||l);++o){const e=i[o];if(!(e in a)){if(l)throw new Error("please transfer a valid prop path to form item!");break}a=a[e]}return{o:a,k:i[o],v:a?a[i[o]]:null}}const Zh={key:0,class:"tui-fi-label-wrap"},Jh=["for"],ev={key:0,class:"tui-fi-asterisk"},tv={key:1,class:"tui-fi-asterisk"},lv={key:2,class:"tui-fi-label-suffix"},av={class:"tui-fi-content-wrap"},nv=160,ov=Object.assign({name:"TuiFormItem"},{__name:"item",props:{contentAlign:{type:String,default:null,validator:e=>["left","center","right"].includes(e)},prop:[String,Array],label:String,required:Boolean,error:String,for:String,validateStatus:{type:String,validator:e=>["","error","validating","success"].includes(e)}},setup(e,{expose:t}){const l=e,a=xe("formItem"),i=`${a}_change`,o=Se("TuiForm",null),{asteriskHide:n,asteriskPosition:s,labelWidth:r,labelPosition:d,labelSuffix:c,labelHide:p,showMessage:v,inlineMessage:m,showValidateState:y,inline:b,model:V,addField:w,removeField:x,size:k,rules:B,emit:T}=o,$=yt(),z=ut(),R=S(null),N=S(""),M=S(""),O=S(!1),D=S(void 0),I=S(null),_=S(!1),E=g((()=>Array.isArray(l.prop)?l.prop.join("."):l.prop)),L=g((()=>R.value?.$el||R.value)),j={uid:a,get prop(){return E.value},validate:oe,resetField:Ae,clearValidate:ne,get $el(){return R}},G=g((()=>l.for||E.value)),H=g((()=>{const e=z?.vnode?.props||{};return Object.prototype.hasOwnProperty.call(e,"required")})),Q=g((()=>b.value&&"right"==d.value?"left":d.value)),Y=g((()=>{let e=ie();if(!e)return H.value&&l.required;let t=!1;return e?.length&&e.every((e=>!e.required||(t=!0,!1))),t||H.value&&l.required})),Z=g((()=>!l.label&&!$.label||p.value)),U=g((()=>{if(!b.value)return[pe("cpt-fi-label",{...q("width","100%",{when:"top"===Q.value}),...q("width",r.value,{smartAppend:!0,when:"top"!=Q.value&&r.value&&"auto"!==r.value})})]})),J=g((()=>"error"===N.value&&v.value&&M.value)),ee=()=>{const e=ae();D.value=Array.isArray(e)?[...e]:e},te=()=>{_.value||!E.value||(w(j),_.value=!0)},le=()=>{_.value&&(x(j),_.value=!1)},ae=()=>{if(V.value&&E.value)return fa(V.value,E.value,!0).v},ie=()=>{const e=B.value,t=H.value?[{required:!!l.required}]:[],a=E.value||"";if(!a)return t.length?t:null;const i=fa(e,a,!1),o=e?e[a]??i.v:[];return o?[].concat(o).concat(t):t.length?t:null};function oe(e,t=(()=>{})){he.c(i),O.value=!1;const l=E.value,a=(e=>{const t=ie();if(t)return t.filter((t=>!t.trigger||""===e||(Array.isArray(t.trigger)?t.trigger.includes(e):t.trigger===e))).map((e=>({...e})))})(e);if(!l||!a||0===a.length)return t(),!0;N.value="validating";const o={};a.length>0&&a.forEach((e=>{delete e.trigger})),o[l]=a;const n=new lr(o),A={};A[l]=ae(),n.validate(A,{firstFields:!0},(e=>{N.value=e?"error":"success",M.value=e?e[0].message:"";const a=e?{message:M.value,field:l}:null;t(M.value,a),T("validate",l,!e,M.value||null)}))}function ne(){he.c(i),N.value="",M.value="",O.value=!1}function Ae(){if(!E.value)return;he.c(i),N.value="",M.value="";const e=ae(),t=fa(V.value,E.value,!0);O.value=!0,Array.isArray(e)?t.o[t.k]=[].concat(D.value):t.o[t.k]=D.value,de((()=>{O.value=!1}))}const se=()=>{const e=L.value?.querySelectorAll?.("input, textarea, select, [tabindex]")||Ze.el("input, textarea, select, [tabindex]",!0);e?.length&&e[0].focus?.()},re=()=>{"function"==typeof I.value&&(I.value(),I.value=null)},ue=()=>{re();const e=ie();if(!E.value||!e||!e.length&&!H.value)return;const t=g((()=>ae()));I.value=K(t,(()=>{O.value?O.value=!1:(he.c(i),he.s(i,(()=>{oe("change")}),nv))}),{deep:!0})};return K((()=>l.error),(e=>{M.value=e,N.value=e?"error":""}),{immediate:!0}),K((()=>l.validateStatus),(e=>{N.value=e})),K((()=>E.value),((e,t)=>{if(t&&!e)return le(),void ne();e&&!t&&te(),e!==t&&ne(),ee(),ue()})),K([H,()=>l.required,B],(()=>{ue()}),{deep:!0}),ye((()=>{te(),ee(),ue()})),At((()=>{he.c(i),re(),le()})),rt("tuiFormItem",{...Ye(l),size:k,validateState:N,validateMessage:M,validate:oe}),t({size:k,validateMessage:M,validateState:N,validate:oe,resetField:Ae,clearValidate:ne,prop:E,$el:R}),(t,l)=>{const a=ke("TuiTextTip");return A(),h("div",{class:P(["tui-form-item",`is-label-pos-${Q.value}`,`is-size-${f(k)}`,{"is-no-label":Z.value&&!f(p),"is-hide-label":f(p),"is-inline":f(b),"is-error":"error"===N.value,"is-validating":f(y)&&"validating"===N.value,"is-success":f(y)&&"success"===N.value,"is-required":Y.value,"is-no-asterisk":f(n)}]),style:fe(U.value),ref_key:"formItemRef",ref:R},[f(r)&&!Z.value?(A(),h("div",Zh,[u("label",{class:P(["tui-fi-label",`is-label-pos-${Q.value}`]),for:G.value,onClick:se},[Y.value&&!f(n)&&"left"==f(s)?(A(),h("span",ev,"*")):C("",!0),X(t.$slots,"label",{},(()=>[ce(a,null,{default:W((()=>[De(F(e.label),1)])),_:1})])),Y.value&&!f(n)&&"right"==f(s)?(A(),h("span",tv,"*")):C("",!0),f(c)?(A(),h("span",lv,F(f(c)),1)):C("",!0)],10,Jh)])):C("",!0),u("div",av,[u("div",{class:P(["tui-fi-content",e.contentAlign&&`is-align-${e.contentAlign}`])},[X(t.$slots,"default")],2),ce(Me,{name:"fades"},{default:W((()=>[J.value?(A(),h("div",{key:0,class:P(["tui-fi-error",{"is-inline":f(m)}])},[X(t.$slots,"error",{error:M.value},(()=>[De(F(M.value),1)]))],2)):C("",!0)])),_:3})])],6)}}}),iv={key:0,class:"tui-input-prefix"},sv=["type","value","placeholder","disabled","readonly","maxlength","autocomplete","min","max","step"],rv={key:2,class:"tui-input-counter"},Av={key:4,class:"tui-input-suffix"},uv=["value","placeholder","disabled","readonly","maxlength","rows","autosize"],cv={key:0,class:"tui-input-counter"},dv=Object.assign({name:"TuiInput"},{__name:"index",props:{type:{type:String,default:"text",validator:e=>["text","textarea","password","number"].includes(e)},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},rows:{type:[String,Number],default:3},autocomplete:{type:String,default:"off"},modelValue:[String,Number],maxLength:[String,Number],min:[String,Number],max:[String,Number],step:[String,Number],placeholder:String,icon:String,prefixIcon:String,suffixIcon:String,clearable:Boolean,formatter:Function,disabled:Boolean,readonly:Boolean,autosize:Boolean,precision:{type:Number,default:0},min:{type:Number,default:-100},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1}},emits:["update:modelValue","input","change","blur","focus","clear"],setup(e,{expose:t,emit:l}){const{proxy:{$tService:{i18n:a}}}=ut(),i=yt(),o=e,n=l,s=Se("TuiForm",null),r=Se("tuiFormItem",null),d=g((()=>s?.size?.value||o.size)),c=g((()=>s?.disabled?.value||o.disabled)),p=g({get:()=>o.modelValue,set:e=>n("update:modelValue",e)}),f=g((()=>o.prefixIcon||o.icon)),v=S(!1),m=g((()=>"password"===o.type?v.value?"text":"password":o.type)),y=()=>{v.value=!v.value},b=S(0),V=S(null),w=e=>{let t;if("number"==o.type){const l=Math.pow(10,o.precision);t=Math.round(e.target.value*l)/l,t<o.min?t=o.min:t>o.max&&(t=o.max)}else t=e.target.value,"text"===o.type&&o.formatter&&(t=o.formatter(t)),o.maxLength&&(t=t.slice(0,Number(o.maxLength)));p.value=t,b.value=t.length,n("input",e)},q=()=>{!i.prefix&&!i.suffix&&V.value.focus()},x=()=>{p.value="",b.value=0,V.value.focus(),n("clear")},k=S(!1),B=e=>{n("blur",e),r?.validate?.("blur"),k.value=!1},T=e=>{n("focus",e),k.value=!0},$=g((()=>o.clearable&&!c.value&&!o.readonly)),z=g((()=>o.placeholder||a("placeholder.input"))),R=g((()=>{const e=Number(o.modelValue);return!Number.isNaN(e)&&e<=o.min})),N=g((()=>{const e=Number(o.modelValue);return!Number.isNaN(e)&&e>=o.max})),M=()=>{if(c.value||N.value)return;const e=et.verify(o.modelValue)?o.modelValue:Number(o.modelValue),t=Math.pow(10,o.precision);let l=Math.round((e+o.step)*t)/t;l>o.max&&(l=o.max),n("update:modelValue",l),n("change",l)},O=()=>{if(c.value||R.value)return;const e=et.verify(o.modelValue)?o.modelValue:Number(o.modelValue),t=Math.pow(10,o.precision);let l=Math.round((e-o.step)*t)/t;l<o.min&&(l=o.min),n("update:modelValue",l),n("change",l)};return t({focus:()=>{V.value?.focus()},blur:()=>{V.value?.blur()},select:()=>{V.value?.select()},inputRef:V}),(t,l)=>{const a=ke("TuiButton");return A(),h("div",{class:P(["textarea"==e.type?"tui-textarea":"tui-input","number"==e.type&&"is-number",`is-size-${d.value}`,{"is-disabled":c.value,"is-readonly":e.readonly,"is-focus":k.value},"textarea"!==e.type?{"has-prefix":t.$slots.prefix||"number"==e.type,"has-suffix":t.$slots.suffix||"number"==e.type}:""]),onClick:q},["textarea"!==e.type?(A(),h(ie,{key:0},[t.$slots.prefix||f.value||"number"==e.type?(A(),h("div",iv,["number"==e.type?(A(),Z(a,{key:0,disabled:c.value||e.readonly||R.value,onClick:O},{default:W((()=>[...l[0]||(l[0]=[u("i",{class:"tui-icon ti-angle-left"},null,-1)])])),_:1},8,["disabled"])):X(t.$slots,"prefix",{key:1},(()=>[f.value?(A(),h("i",{key:0,class:P(["tui-input-icon",f.value])},null,2)):C("",!0)]))])):C("",!0),u("input",{class:"tui-input-inner",ref_key:"inputRef",ref:V,type:m.value,value:p.value,placeholder:z.value,disabled:c.value,readonly:e.readonly,maxlength:e.maxLength,autocomplete:e.autocomplete,min:e.min,max:e.max,step:e.step,onInput:w,onBlur:B,onFocus:T},null,40,sv),$.value&&p.value?(A(),h("div",{key:1,class:"tui-input-clear",onClick:x},[...l[1]||(l[1]=[u("i",{class:"tui-input-icon tui-icon ti-times"},null,-1)])])):C("",!0),e.maxLength?(A(),h("div",rv,F(b.value)+"/"+F(e.maxLength),1)):C("",!0),"password"===e.type&&p.value?(A(),h("div",{key:3,class:"tui-input-pass-toggle",onClick:y},[u("i",{class:P("tui-input-icon "+(v.value?"tui-icon ti-eye":"tui-icon ti-eye-off-slash"))},null,2)])):t.$slots.suffix||e.suffixIcon||"number"==e.type?(A(),h("div",Av,["number"==e.type?(A(),Z(a,{key:0,disabled:c.value||e.readonly||N.value,onClick:M},{default:W((()=>[...l[2]||(l[2]=[u("i",{class:"tui-icon ti-angle-right"},null,-1)])])),_:1},8,["disabled"])):X(t.$slots,"suffix",{key:1},(()=>[e.suffixIcon?(A(),h("i",{key:0,class:P(["tui-input-icon",e.suffixIcon])},null,2)):C("",!0)]))])):C("",!0)],64)):(A(),h(ie,{key:1},[u("textarea",{class:"tui-textarea-inner",ref_key:"inputRef",ref:V,value:p.value,placeholder:z.value,disabled:c.value,readonly:e.readonly,maxlength:e.maxLength,rows:e.rows,autosize:e.autosize,onInput:w,onBlur:B,onFocus:T},null,40,uv),e.maxLength?(A(),h("div",cv,F(b.value)+"/"+F(e.maxLength),1)):C("",!0)],64))],2)}}}),fv=Object.assign({name:"TuiRadio"},{__name:"index",props:{modelValue:[String,Number,Boolean],defaultIcon:{type:Boolean,default:!0},separable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appearance:{type:String,default:"simple",validator:e=>["simple","buttonPlain","button"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},textDirection:{type:String,default:null,validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},align:{type:String,default:null,validator:e=>["start","center","end"].includes(e)},options:{type:Array,default:[],validator:e=>{if(!Array.isArray(e))return console.warn("TuiRadio Warning! options must be an array."),!1;const{valid:t,message:l}=It.fieldValid(e,[]);return t||console.warn("TuiRadio Warning! ",l),t}},propsMap:{type:Object,default:()=>({})},tipConfig:Object,itemMaxWidth:Number,itemMinWidth:Number,itemWidth:Number,className:String},emits:["change","update:modelValue"],setup(e,{emit:t}){const l=e,a=Se("TuiForm",null),i=g((()=>a?.size?.value||l.size)),o=g((()=>a?.disabled?.value||l.disabled)),n=g((()=>`is-${l.appearance.replace(/([A-Z])/g,"-$1").toLowerCase()}`)),s=g((()=>Il.map(l.propsMap))),r=g((()=>Il.normOptions(l.options,s.value).map(((e,t)=>({...e,value:null!=e.value?e.value:t,count:Il.get(e.raw,"count",s.value),icon:Il.get(e.raw,"icon",s.value)}))))),u=g((()=>pe("cpt-radio",{...q("align",l.align),...q("imaxw",l.itemMaxWidth,"px"),...q("iminw",l.itemMinWidth,"px"),...q("iw",l.itemWidth,"px")}))),d=t;return rt("TuiRadioG",{tipConfig:g((()=>l.tipConfig)),updateValue:e=>d("update:modelValue",e),change:e=>d("change",e),modelValue:g((()=>l.modelValue)),defaultIcon:g((()=>l.defaultIcon)),parDisabled:o}),(t,l)=>{const a=ke("TuiRadioItem");return A(),h("div",{class:P(["tui-radio",n.value,`is-size-${i.value}`,e.className,e.direction&&`is-dir-${e.direction}`,e.textDirection&&`is-text-dir-${e.textDirection}`,{"is-separable":e.separable}]),style:fe(u.value)},[r.value.length>0?(A(!0),h(ie,{key:0},ze(r.value,(e=>(A(),Z(a,{value:e.value,count:e.count,icon:e.icon,disabled:e.disabled},{default:W((()=>[De(F(e.label),1)])),_:2},1032,["value","count","icon","disabled"])))),256)):X(t.$slots,"default",{key:1})],6)}}}),pv={key:0,class:P("tui-radioi-icon tui-icon ti-circle")},gv={key:1,class:P("tui-radioi-icon tui-icon tis-dot-circle")},hv=Object.assign({name:"TuiRadioItem"},{__name:"item",props:{value:{type:[String,Number,Boolean],required:!0},icon:{type:[String,Array],default:null},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tipConfig:l,change:a,updateValue:i,modelValue:o,defaultIcon:n,parDisabled:s}=Se("TuiRadioG",null),r=g((()=>o.value===t.value)),u=g((()=>"array"==Qe(t.icon)&&2==t.icon.length?r.value?t.icon[1]:t.icon[0]:"string"==Qe(t.icon)?t.icon:void 0)),d=()=>{t.disabled||s.value||(i(t.value),a(t.value))};return(t,a)=>{const i=ke("TuiTextTip");return A(),h("div",{onClick:d,class:P(["tui-radio-item",{"is-active":r.value,"is-disabled":e.disabled||f(s)}])},[!r.value&&f(n)?(A(),h("i",pv)):f(n)?(A(),h("i",gv)):C("",!0),e.icon?(A(),h("i",{key:2,class:P(`tui-radioi-icon ${u.value}`)},null,2)):C("",!0),ce(i,pt(Vt(f(l))),{default:W((()=>[X(t.$slots,"default")])),_:3},16)],2)}}}),vv={key:0,class:"tui-icon ti-check"},ya=Object.assign({name:"TuiOption"},{__name:"option",props:{value:[String,Number,Object],label:String,disabled:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const l=e,a=t,{registerItem:i,tipConfig:o,selected:n,handleSelect:s,filterText:r,filterMethod:u}=Se("TuiSelect",null),d=()=>{l.disabled||(a("select",{value:l.value,label:l.label}),s({value:l.value,label:l.label}))},c=g((()=>n.value.some((e=>e.value===l.value)))),p=g((()=>!r.value||(u?u({value:l.value,label:l.label},r.value):l.label.toLowerCase().includes(r.value.toLowerCase()))));return ye((()=>{i({value:l.value,label:l.label})})),(t,l)=>{const a=ke("TuiTextTip");return p.value?(A(),h("div",{key:0,class:P(["tui-select-item",{"is-disabled":e.disabled,"is-selected":c.value}]),onClick:d},[ce(a,Ne(f(o),{class:"tui-slti-label"}),{default:W((()=>[De(F(e.label),1)])),_:1},16),c.value?(A(),h("i",vv)):C("",!0)],2)):C("",!0)}}}),mv=(e,t)=>pe("cpt-slt-dpd",{...q("w",t,{append:"px",when:e.fitInputWidth&&t})}),yv=(e,t,l,a)=>({...e.popPanelConfig||{},trigger:"click",placement:"bottom-start",offset:e.offset,disabled:t,panelClassName:l,panelStyle:a,transitionName:"dropani",closeOnClickOutside:!0,closeOnEsc:!0}),bv={key:0,class:"tui-select-prefix"},Vv={key:1,class:"tui-select-tags"},wv={key:0,class:"tui-select-tag"},Cv=["onClick"],$v={key:0,class:"tui-select-tag"},kv={key:2,class:"tui-select-value"},Sv={key:3,class:"tui-placeholder"},qv={class:"tui-slt-scroll"},Tv=Object.assign({name:"TuiSelect"},{__name:"index",props:{size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},maxCollapseTags:{type:Number,default:2},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!0},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["label","value"]);return t||console.warn("TuiSelect Warning! ",l),t}},modelValue:[String,Number,Array],placeholder:String,creatPlaceholder:String,icon:String,prefixIcon:String,multipleLimit:Number,filterMethod:Function,filterPlaceholder:String,offset:{type:Number,default:10},popPanelConfig:Object,tipConfig:Object},emits:["update:modelValue","change","visible-change","clear","blur","focus"],setup(e,{emit:t}){const{proxy:{$tService:{i18n:l}}}=ut(),a=e,i=yt(),o=(e,t=[])=>(e?.length&&e.forEach((e=>{if(!e)return;if(Array.isArray(e))return void o(e,t);if(e.type===ya){const l=e.props||{};void 0!==l.value&&t.push({value:l.value,label:l.label??l.value})}const l=e.children;Array.isArray(l)&&o(l,t)})),t),n=g((()=>o(i.default?.()||[]))),s=g((()=>a.placeholder||l("placeholder.select"))),r=g((()=>a.filterPlaceholder||l("placeholder.filter"))),d=Se("TuiForm",null),c=g((()=>d?.size?.value||a.size)),p=g((()=>d?.disabled?.value||a.disabled)),f=t,v=S(null),m=S(null),y=S(null),b=S(null),V=S(!1),w=S(!1),q=S(""),x=S([]),k=S(null),B=S([]),T=S(!1),$=S(0),z=g((()=>a.prefixIcon||a.icon)),R=g((()=>a.multiple?x.value.map((e=>e.label)).join(", "):x.value[0]?.label||"")),N=g((()=>mv(a,$.value))),M=g((()=>yv(a,p.value,["tui-slt-pop-panel",{"is-fit-input-width":a.fitInputWidth}],N.value))),O=()=>{a.fitInputWidth&&m.value&&($.value=m.value.clientWidth)},D=async()=>{V.value=!0,f("visible-change",!0),await de(),G()},I=()=>{V.value=!1,q.value&&(q.value=""),f("visible-change",!1)},_=(e,t=!0)=>{if(a.multiple){const t=x.value.findIndex((t=>t.value===e.value));if(-1!==t)x.value.splice(t,1);else{if(a.multipleLimit>0&&x.value.length>=a.multipleLimit)return;x.value.push(e)}k.value=x.value.map((e=>e.value))}else x.value=[e],k.value=e.value,t&&y.value?.hide?.();t&&E("all")},E=(e="all")=>{let t;t=a.multiple?{values:k.value,items:x.value}:{value:k.value,item:x.value[0]},("update"==e||"all"==e)&&f("update:modelValue",k.value),("change"==e||"all"==e)&&f("change",t)},L=()=>{x.value=[],k.value=null,q.value="",E("all"),f("clear")},j=(e=a.modelValue)=>{const t=a.options.length>0?a.options:n.value.length>0?n.value:B.value;if(t.length)if(e&&0!=e.length)if(a.multiple||"string"!=Qe(e)&&"number"!=Qe(e))a.multiple&&"array"==Qe(e)&&(It.shallowEQ(Ga(e),Ga(k.value))||(x.value=[],e.forEach((e=>{t.forEach((t=>{t.value==e&&_({value:t.value,label:t.label},!1)}))}))));else{const l=t.filter((t=>t.value==e));if(!l.length)return;l[0].value!=x.value[0]?.value&&(x.value=l,k.value=l[0].value)}else x.value=[],k.value=null};K((()=>a.modelValue),(e=>{j(e)}),{immediate:!0}),K(n,(()=>{j()}));const G=()=>{if(!b.value)return void(T.value=!1);const e=b.value.querySelectorAll(".tui-select-item");T.value=e.length>0};K((()=>q.value),(async()=>{await de(),G(),y.value?.update?.()}),{immediate:!0});return rt("TuiSelect",{tipConfig:g((()=>a.tipConfig)),selected:g((()=>x.value)),filterText:g((()=>q.value)),filterMethod:a.filterMethod?(e,t)=>a.filterMethod(e,t):null,handleSelect:e=>_(e),registerItem:e=>{0==B.value.filter((t=>t.value==e.value)).length&&B.value.push(e),j()}}),ye((async()=>{O(),await de(),G()})),Xs(G),(t,l)=>{const a=ke("TuiTextTip"),i=ke("TuiInput"),o=ke("TuiEmpty");return A(),h("div",{ref_key:"selectRef",ref:v,class:P(["tui-select",`is-size-${c.value}`,{"is-disabled":p.value,"is-focus":V.value,"is-multiple":e.multiple,"is-clearable":e.clearable}])},[ce(cl,Ne({ref_key:"popPanelRef",ref:y},M.value,{onShow:O,onShown:D,onHidden:I}),{trigger:W((()=>[u("div",{class:"tui-select-trigger",onMouseenter:l[0]||(l[0]=e=>w.value=!0),onMouseleave:l[1]||(l[1]=e=>w.value=!1),ref_key:"triggerRef",ref:m},[t.$slots.prefix||z.value?(A(),h("div",bv,[X(t.$slots,"prefix",{},(()=>[z.value?(A(),h("i",{key:0,class:P(["tui-select-icon",z.value])},null,2)):C("",!0)]))])):C("",!0),e.multiple&&x.value.length>0?(A(),h("div",Vv,[(A(!0),h(ie,null,ze(x.value,((t,l)=>(A(),h(ie,{key:l},[!e.collapseTags||l<e.maxCollapseTags?(A(),h("span",wv,[ce(a,Ne({ref_for:!0},e.tipConfig,{class:"tui-slt-tag-label"}),{default:W((()=>[De(F(t.label),1)])),_:2},1040),u("span",{class:"tui-slt-tag-remove",onClick:st((e=>(e=>{x.value.splice(e,1),k.value=x.value.map((e=>e.value)),E("update")})(l)),["stop"])},"✕",8,Cv)])):C("",!0)],64)))),128)),e.collapseTags&&x.value.length>e.maxCollapseTags?(A(),h("span",$v,F(x.value.length-e.maxCollapseTags)+"+ ",1)):C("",!0)])):R.value?(A(),h("div",kv,[ce(a,pt(Vt(e.tipConfig)),{default:W((()=>[De(F(R.value),1)])),_:1},16)])):(A(),h("div",Sv,F(s.value),1)),u("i",{class:P(["tui-select-clear","tui-icon","ti-times",{"is-show":R.value&&e.clearable&&!p.value&&w.value}]),onClick:st(L,["stop"])},null,2),l[3]||(l[3]=u("i",{class:"tui-select-arrow tui-icon ti-chevron-down"},null,-1))],544)])),default:W((()=>[u("div",{ref_key:"panelContentRef",ref:b,class:"tui-slt-dropdown-content"},[e.filterable||e.allowCreate?(A(),Z(i,{key:0,size:c.value,class:P(["tui-select-input",{"is-filterable":e.filterable,"is-allow-create":e.allowCreate}]),icon:"tui-icon ti-filter",placeholder:r.value,clearable:"",modelValue:q.value,"onUpdate:modelValue":l[2]||(l[2]=e=>q.value=e)},null,8,["size","class","placeholder","modelValue"])):C("",!0),u("div",qv,[X(t.$slots,"default",{},(()=>[e.options.length>0?(A(!0),h(ie,{key:0},ze(e.options,((e,t)=>(A(),Z(ya,{key:t,value:e.value,label:e.label,disabled:e.disaCPT},null,8,["value","label","disabled"])))),128)):C("",!0)])),T.value?C("",!0):(A(),Z(o,{key:0,size:"small"}))])],512)])),_:3},16)],2)}}}),Bv={key:2,class:"tui-sltn-placeholder"},xv=["disabled","multiple","size","placeholder","name","id","required","autofocus"],Pv=Object.assign({name:"TuiSelectNative"},{__name:"native",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"label"},disabledKey:{type:String,default:"disabled"},size:{type:String,default:null,validator:e=>["small","large"].includes(e)},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},required:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},placeholder:String,name:String,id:String,customClass:String,width:[String,Number],icon:String,clearable:Boolean},emits:["update:modelValue","change","focus","blur","clear"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=S(null),n=g((()=>a.clearable&&!a.disabled)),s=g((()=>a.placeholder?a.placeholder:"Please Select")),r=g((()=>{if(a.multiple)return"small"===a.size?3:"large"===a.size?8:5})),d=g((()=>[pe("cpt-sltn",{...q("width",a.width,"smart")})])),c=e=>"object"==typeof e&&null!==e?e[a.valueKey]||e.id||JSON.stringify(e):e,p=e=>"object"==typeof e&&null!==e?e[a.valueKey]:e,f=e=>"object"==typeof e&&null!==e?e[a.labelKey]||e[a.valueKey]:e,v=e=>"object"==typeof e&&null!==e&&e[a.disabledKey]||!1,m=e=>{let t;t=a.multiple?Array.from(e.target.selectedOptions).map((e=>e.value)):e.target.value,i("update:modelValue",t),i("change",t,e)},y=()=>{i("update:modelValue",null),i("clear")},b=()=>{o.value&&de((()=>{const e=o.value,t=e.options;if(a.multiple){const e=Array.isArray(a.modelValue)?a.modelValue:[];for(let l=0;l<t.length;l++){const a=t[l];a.selected=e.includes(a.value)}}else e.value=a.modelValue||""}))};K((()=>a.modelValue),b,{immediate:!0}),K((()=>a.options),(()=>{de(b)}),{deep:!0}),ye((()=>{b()}));const V=e=>{i("focus",e)},w=e=>{i("blur",e)};return t({focus:()=>o.value?.focus(),blur:()=>o.value?.blur(),getSelectElement:()=>o.value,syncSelectedState:b}),(t,l)=>{const a=ke("TuiOptionNative");return A(),h("div",{class:P(["tui-select-native",e.size&&`is-size-${e.size}`,{"has-icon":e.icon&&!e.multiple}])},[e.icon&&!e.multiple?(A(),h("i",{key:0,class:P(["tui-sltn-prefix-icon",e.icon])},null,2)):C("",!0),n.value&&e.modelValue?(A(),h("div",{key:1,class:"tui-sltn-clear",onClick:y},[...l[0]||(l[0]=[u("i",{class:"tui-sltn-icon tui-icon ti-times-circle"},null,-1)])])):C("",!0),e.modelValue||e.multiple?C("",!0):(A(),h("div",Bv,F(s.value),1)),u("select",{class:P(["tui-sltn-element",e.customClass,{"is-disabled":e.disabled,"is-multiple":e.multiple}]),style:fe(d.value),ref_key:"selectRef",ref:o,disabled:e.disabled,multiple:e.multiple,size:r.value,placeholder:s.value,name:e.name,id:e.id,required:e.required,autofocus:e.autofocus,onChange:m,onFocus:V,onBlur:w},[e.options&&e.options.length>0?(A(!0),h(ie,{key:0},ze(e.options,(e=>(A(),Z(a,{key:c(e),value:p(e),label:f(e),disabled:v(e)},null,8,["value","label","disabled"])))),128)):X(t.$slots,"default",{key:1})],46,xv)],2)}}}),Rv=["value","disabled","selected"],zv=Object.assign({name:"TuiOptionNative"},{__name:"optionNative",props:{value:{type:[String,Number,Boolean],required:!0},label:[String,Number],disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},customClass:String},setup(e){const t=e;Se("tuiSelectContext",null);const l=g((()=>t.label||t.value));return(t,a)=>(A(),h("option",{class:P(["tui-option-native",e.customClass,{"is-disabled":e.disabled,"is-selected":e.selected}]),value:e.value,disabled:e.disabled,selected:e.selected},[X(t.$slots,"default",{},(()=>[De(F(l.value),1)]))],10,Rv))}}),Nv={key:0,class:"tui-tpn-prefix"},Iv=["value","placeholder","disabled"],Mv=["type","value","min","max","step","disabled"],Dv={class:"tui-tpn-suffix"},Ov=Object.assign({name:"TuiTimePickerNative"},{__name:"native",props:{type:{type:String,default:"date",validator:e=>["date","time","datetime","month","week"].includes(e)},modelValue:[String,Date],note:String,placeholder:String,min:String,max:String,step:[String,Number],format:String,size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},prefixIcon:String,suffixIcon:String,clearable:Boolean,disabled:Boolean,readonly:Boolean,required:Boolean},emits:["update:modelValue","change","focus","blur","input","clear"],setup(e,{expose:t,emit:l}){const{i18n:a}=Se("$global",null);ht.extend(In),ht.extend(ar);const i=e,o=l,n=Se("TuiForm",null),s=g((()=>n?.size?.value||i.size)),r=g((()=>n?.disabled?.value||i.disabled)),d=S(null),c=g((()=>i.clearable&&!r.value&&!i.readonly)),p=g((()=>i.prefixIcon||i.icon)),f=g((()=>{if(i.suffixIcon)return i.suffixIcon;switch(i.type){case"time":return"tui-icon ti-clock";default:return"tui-icon ti-calendar"}})),v=g((()=>{if(i.format)return i.format;switch(i.type){case"date":return"YYYY-MM-DD";case"datetime":return"YYYY-MM-DD HH:mm";case"time":return"HH:MM";case"week":return null;case"month":return"YYYY-MM"}})),m={date:a("datetime.placeholder.date"),time:a("datetime.placeholder.time"),datetime:a("datetime.placeholder.datetime"),month:a("datetime.placeholder.month"),week:a("datetime.placeholder.week")},y=g((()=>i.placeholder||m[i.type]||a("placeholder.select"))),b=()=>{V.value="",o("update:modelValue",""),o("clear")},V=S(null),w=g((()=>i.modelValue?i.modelValue:"")),q=e=>{if(!e)return"";const t=ht(e);switch(i.type){case"time":return Oa.formatTime(e,v.value);case"week":return Oa.formatWeek(e,v.value);default:return t.format(v.value)}},x=()=>{r.value||d.value&&d.value.showPicker()},k=e=>{const t=e.target.value;V.value=t;const l=q(t);o("update:modelValue",l),o("input",t,l,e)},B=e=>{const t=e.target.value;V.value=t;const l=q(t);o("update:modelValue",l),o("change",t,l,e)};return t({focus:()=>{const e=document.querySelector(".display-input");e&&e.focus()},blur:()=>{d.value&&d.value.blur()},openPicker:()=>{x()}}),(t,l)=>(A(),h("div",{class:P(["tui-timepicker-native",`is-type-${e.type}`,`is-size-${s.value}`,{"is-disabled":r.value,"is-readonly":e.readonly}])},[t.$slots.prefix||p.value?(A(),h("div",Nv,[X(t.$slots,"prefix",{},(()=>[p.value?(A(),h("i",{key:0,class:P(["tui-tpn-icon",p.value])},null,2)):C("",!0)]))])):C("",!0),u("input",{type:"text",value:w.value,placeholder:y.value,disabled:r.value,readonly:!0,class:P(["tui-tpn-inner",{"is-disabled":r.value}]),onClick:x},null,10,Iv),u("input",{ref_key:"hiddenInput",ref:d,type:"datetime"==e.type?"datetime-local":e.type,value:V.value,min:e.min,max:e.max,step:e.step,disabled:r.value,class:"tui-tpn-hinput",onInput:k,onChange:B},null,40,Mv),c.value&&V.value?(A(),h("div",{key:1,class:"tui-tpn-clear",onClick:b},[...l[0]||(l[0]=[u("i",{class:"tui-tpn-icon tui-icon ti-times"},null,-1)])])):C("",!0),u("div",Dv,[X(t.$slots,"suffix",{},(()=>[u("i",{class:P(["tui-tpn-icon",f.value])},null,2)]))])],2))}}),_v=Object.assign({name:"TuiAccordion"},{__name:"index",props:{direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},height:[Number,String],width:[Number,String],itemMinSize:{type:Number,default:40},autoplay:{type:Boolean,default:!0},duration:{type:Number,default:null},interval:{type:Number,default:3e3},initialIndex:{type:Number,default:0},contentType:{type:String,default:"default",validator:e=>["default","image"].includes(e)},trigger:{type:String,default:"hover",validator:e=>["hover","click"].includes(e)},motionBlur:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!0},wheelSwitch:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!0},activeShowTitle:{type:Boolean,default:!0},typedConfig:Object,linkText:String,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("accordion"),n=S(!1),s=S(!1),r=S(!1),u=S([]),d=S(!1),c=Pe({isMotionBlur:!1,hover:!1,clientSize:0,itemMaxSize:0,itemAveSize:0,activeIndex:et.isNEG0(i.initialIndex)?Number(i.initialIndex):null}),p=g((()=>u.value.map((e=>e.index)).sort(((e,t)=>e-t)))),v=g((()=>null===c.activeIndex)),m=()=>p.value.length?et.isNEG0(i.initialIndex)&&p.value.includes(i.initialIndex)?Number(i.initialIndex):p.value[0]:null,y=e=>{const t=et.isNEG0(e)?Number(e):null;t!==c.activeIndex&&(i.motionBlur&&null!==t&&(c.isMotionBlur=!0,he.c(o+"_blur"),he.s(o+"_blur",(()=>{c.isMotionBlur=!1}),200)),c.activeIndex=t)},b=e=>{if(!p.value.length||!e)return!1;const t=m(),l=null!==c.activeIndex?p.value.indexOf(c.activeIndex):-1,a=(-1===l?p.value.indexOf(t):l)+e;return!(a<0||a>=p.value.length)&&(y(p.value[a]),!0)},V=e=>{if("click"!==i.trigger||!i.wheelSwitch)return;if(d.value)return void(i.interceptWheel&&e.preventDefault());const t=Math.abs(e.deltaY)>=Math.abs(e.deltaX)?e.deltaY:e.deltaX;!t||!b(t>0?1:-1)||(d.value=!0,he.c(o+"_wheel_lock"),he.s(o+"_wheel_lock",(()=>{d.value=!1}),220),i.interceptWheel&&e.preventDefault())},w=()=>{Lt.c(o+"_tInter")},x=()=>{w(),i.autoplay&&0!==p.value.length&&((null===c.activeIndex||!p.value.includes(c.activeIndex))&&y(m()),Lt.s(o+"_tInter",(()=>{const e=p.value.indexOf(c.activeIndex);let t;t=-1===e||e===p.value.length-1?0:e+1,y(p.value[t])}),i.interval))},C=g((()=>pe("cpt-acd",{...q("width",i.width,"smart"),...q("height",i.height,"smart"),...q("dur",i.duration,"s"),...q("avesize",c.itemAveSize,{smartAppend:!0,when:c.itemAveSize&&!i.autoplay}),minsize:i.itemMinSize+"px",maxsize:c.itemMaxSize+"px"}))),k=g((()=>"image"==i.contentType?"none":i.typedConfig?.appearance||"line"));rt("TuiAcord",{direction:g((()=>i.direction)),itemMinSize:g((()=>i.itemMinSize)),autoplay:g((()=>i.autoplay)),contentType:g((()=>i.contentType)),typedConfig:g((()=>i.typedConfig)),trigger:g((()=>i.trigger)),activeShowTitle:g((()=>i.activeShowTitle)),linkText:g((()=>i.linkText)),state:c,setActiveItem:y,registerItem:e=>{const t={uid:e.uid,index:e.index},l=u.value.findIndex((e=>e.uid===t.uid));-1===l?u.value.push(t):u.value[l]=t},unregisterItem:e=>{u.value=u.value.filter((t=>t.uid!==e))},typedAppeaCPT:k,uid:o}),K((()=>i.autoplay),(e=>{e?x():w()})),K((()=>i.initialIndex),(e=>{i.autoplay?x():et.isNEG0(e)&&p.value.includes(e)&&y(e)})),K((()=>[i.direction,i.typedConfig?.appearance]),(()=>{B()})),K(p,(e=>{if(!e.length)return c.activeIndex=null,void w();(null===c.activeIndex||!e.includes(c.activeIndex))&&(c.activeIndex=m()),i.autoplay&&x()}),{deep:!0}),K((()=>t.value),((e,t)=>{"root"==a.value(i.resizeObserver)&&e>t&&B()}));const B=()=>{const e=i.itemMinSize,t=("line"==k.value?3:"none"==k.value&&1)||0;"h"==i.direction?c.clientSize=r.value?.clientWidth:c.clientSize=r.value?.clientHeight,c.itemMaxSize=c.clientSize-(u.value.length-1)*(e+t),c.itemAveSize=(c.clientSize-u.value.length*t)/u.value.length,c.itemMaxSize<100&&(c.itemMaxSize=100),s.value||(s.value=!0)};return ye((()=>{n.value=!0,i.autoplay&&x(),null===c.activeIndex&&!i.autoplay&&p.value.length>0&&(c.activeIndex=m())})),At((()=>{w(),he.c(o+"_blur"),he.c(o+"_wheel_lock")})),(t,l)=>{const u=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["tui-accordion",`is-dir-${e.direction}`,`is-appr-${k.value}`,{"is-motion-blur":e.motionBlur&&c.isMotionBlur,"is-empty":v.value}]),onMouseenter:l[0]||(l[0]=st((t=>e.autoplay&&(c.hover=!0,void(i.pauseOnHover&&w()))),["stop"])),onMouseleave:l[1]||(l[1]=st((t=>e.autoplay&&(c.hover=!1,void(i.pauseOnHover&&x()))),["stop"])),onWheel:st(V,["stop"]),ref_key:"acodRef",ref:r,style:fe(C.value)},[X(t.$slots,"default")],38)),[[Oe,n.value],[u,{callback:B,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}]])])),_:3})}}}),Ev={key:0,class:"tui-acdi-main"},Lv={key:0,class:"tui-acdi-head"},Wv={class:"tui-acdi-cont"},jv={key:0,class:"tui-acdi-main"},Gv={class:"tui-acdi-link-text"},Fv=["src"],wn=260,Hv=Object.assign({name:"TuiAccordionItem"},{__name:"item",props:{icon:String,title:String,image:String,hasLinkButton:Boolean,description:String,index:{type:Number,required:!0},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},typeColor:String},emits:["activated","deactivated","navigateTo"],setup(e,{emit:t}){const{i18n:l}=Se("$global",null),a=e,i=t,{uid:o,trigger:n,linkText:s,activeShowTitle:r,typedAppeaCPT:d,typedConfig:c,direction:p,contentType:v,state:m,setActiveItem:y,registerItem:b,unregisterItem:V,autoplay:w}=Se("TuiAcord",null),q=`accordion-item-${a.index}-${a.title||"item"}`,x=()=>{"hover"===n.value&&(he.c(o+"_hover_leave"),he.s(o+"_hover_enter",(()=>{y(a.index),i("activated")}),wn))},S=()=>{"hover"===n.value&&(he.c(o+"_hover_enter"),!w.value&&he.s(o+"_hover_leave",(()=>{y(null),i("deactivated")}),wn))},k=()=>{if("click"===n.value){if(!w.value&&m.activeIndex===a.index)return y(null),void i("deactivated");y(a.index),i("activated")}},B=()=>{i("navigateTo",a.index)},T=g((()=>m.activeIndex===a.index)),$=g((()=>"image"==v.value)),z=g((()=>$.value?"invert":"none"!=d.value?a.type:"default")),R=g((()=>c.value?.linePosition?c.value?.linePosition:"h"==p.value?"top":"v"==p.value?"left":void 0)),N=g((()=>({type:a.type,tone:"base",hasShadow:!1,transparent:!1,customColor:a.typeColor,...c.value,appearance:d.value})));return ye((()=>{b({uid:q,index:a.index})})),At((()=>{he.c(o+"_hover_enter"),he.c(o+"_hover_leave"),V(q)})),(t,i)=>{const o=ke("TuiTextTip"),c=ke("TuiTag"),g=ke("TuiButton"),v=ke("TuiTyped");return A(),Z(v,Ne({class:["tui-accordion-item",`is-dir-${f(p)}`,`is-trigger-${f(n)}`,{"is-imgtype":$.value,"is-active":T.value,"has-head":f(r)&&!$.value}],onMouseenter:st(x,["stop"]),onMouseleave:st(S,["stop"])},N.value,{linePosition:R.value}),{default:W((()=>[ce(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:"tui-acdi-bar",onClick:st(k,["stop"])},[e.icon?(A(),h("i",{key:0,class:P(["tui-acdi-icon",e.icon])},null,2)):C("",!0),e.title?(A(),Z(o,{key:1,class:"tui-acdi-title"},{default:W((()=>[De(F(e.title),1)])),_:1})):C("",!0),ce(c,{type:z.value,size:"small",customColor:"none"!=f(d)&&a.typeColor||null,class:"tui-acdi-index"},{default:W((()=>[De(F(e.index+1),1)])),_:1},8,["type","customColor"])],512),[[Oe,!T.value||"v"==f(p)&&!$.value&&f(r)]])])),_:1}),ce(Me,{name:"fade"},{default:W((()=>[$.value?C("",!0):we((A(),h("div",Ev,["h"==f(p)&&f(r)?(A(),h("div",Lv,[e.icon?(A(),h("i",{key:0,class:P(["tui-acdi-icon",e.icon])},null,2)):C("",!0),e.title?(A(),Z(o,{key:1,class:"tui-acdi-title"},{default:W((()=>[De(F(e.title),1)])),_:1})):C("",!0),ce(c,{type:z.value,size:"small",customColor:"none"!=f(d)&&a.typeColor||null,class:"tui-acdi-index"},{default:W((()=>[De(F(e.index+1),1)])),_:1},8,["type","customColor"])])):C("",!0),u("div",Wv,[X(t.$slots,"default")])],512)),[[Oe,T.value]])])),_:3}),ce(Me,{name:"fade"},{default:W((()=>[$.value?we((A(),h("div",jv,[e.hasLinkButton?(A(),Z(g,{key:0,size:"small",class:"tui-acdi-link",type:"primary",link:"",onClick:B},{default:W((()=>[u("span",Gv,F(f(s)||f(l)("common.detail")),1),i[0]||(i[0]=u("i",{class:"tui-icon ti-chevron-right"},null,-1))])),_:1})):C("",!0),e.title?(A(),Z(o,{key:1,class:"tui-acdi-title"},{default:W((()=>[De(F(e.title),1)])),_:1})):C("",!0),e.description?(A(),Z(o,{key:2,type:"default",lines:2,placement:"bottom",class:"tui-acdi-desc"},{default:W((()=>[De(F(e.description),1)])),_:1})):C("",!0)],512)),[[Oe,T.value]]):C("",!0)])),_:1}),a.image&&$.value?(A(),h("img",{key:0,class:"tui-img",src:e.image},null,8,Fv)):C("",!0)])),_:3},16,["class","linePosition"])}}}),Uv={class:"tui-calendar"},Qv={class:"tui-cal-title"},Yv={class:"tui-cal-year"},Kv={class:"tui-cal-month"},Xv={class:"tui-cal-body"},Zv={class:"tui-cal-weekdays"},Jv=["onClick"],em={class:"tui-cal-cell-inner"},tm={class:"tui-cal-date"},lm=Object.assign({name:"TuiCalendar"},{__name:"index",props:{modelValue:{type:[Date,String],default:()=>new Date},range:{type:Array,default:()=>[]},buttons:{type:Array,default:()=>["year","month","today"]},buttonSize:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},titleAlign:{type:String,default:"left",validator:e=>["left","center","right"].includes(e)},cellAlign:{type:String,default:"left",validator:e=>["left","center"].includes(e)},todos:{type:Object,default:()=>({})},tagConfig:Object,weekStartsOn:{type:String,default:"sunday",validator:e=>["sunday","monday"].includes(e)},weekdayFormat:{type:String,default:"weekdayShort",validator:e=>["weekday","weekdayShort","weekdayMin"].includes(e)}},emits:["update:modelValue","change","select"],setup(e,{expose:t,emit:l}){const{i18n:a,$gLang:i}=Se("$global",null);ht.extend(or),ht.extend(nr),ht.extend(In);const o=e,n=g((()=>({size:"small",tone:"strong",...o.tagConfig}))),s=l,r=S(ht(o.modelValue)),d=S(ht(o.modelValue)),c=g((()=>r.value.year())),p=g((()=>r.value.month()+1)),v=g((()=>"en"!=i.value?a("datetime.timeUnits.year"):"")),m=g((()=>a("datetime.timeUnits.month"))),y=g((()=>a("datetime.action.today"))),b=g((()=>{const e=a(`datetime.${o.weekdayFormat}`)||[];return"sunday"===o.weekStartsOn?e:[...e.slice(1),e[0]]})),V=g((()=>(a("datetime.monthShort")||[])[p.value-1]||`${p.value}${m.value}`)),w=g((()=>`${c.value}${v.value}`)),q=g((()=>{const e=r.value.startOf("month");r.value.endOf("month");let t=e.day();"monday"===o.weekStartsOn&&(t=0===t?6:t-1);const l=[];let a=e.subtract(t,"day");for(let e=0;e<6;e++){const e=[];for(let t=0;t<7;t++)e.push(x(a)),a=a.add(1,"day");l.push(e)}return l[l.length-1].every((e=>"next-month"===e.type))&&l.pop(),l.flat()}));function x(e){const t=ht(),l=e.format("YYYY-MM-DD");let a="current-month";return e.isBefore(r.value.startOf("month"))?a="prev-month":e.isAfter(r.value.endOf("month"))&&(a="next-month"),{date:e.toDate(),day:e.date(),fullDate:l,dayjs:e,type:a,isSelected:e.isSame(d.value,"day"),isToday:e.isSame(t,"day"),todoCount:o.todos[l]||0}}function k(e){r.value=r.value.add(e,"year")}function B(e){r.value=r.value.add(e,"month")}function T(){const e=ht();r.value=e,$(x(e))}function $(e){d.value=e.dayjs,"current-month"!==e.type&&(r.value=e.dayjs),s("update:modelValue",e.date),s("change",e.date),s("select",e)}const z=g((()=>d.value.toDate()));function R(e,t){const l=ht(e),i=ht(t);let n,A;"monday"===o.weekStartsOn?(n=l.startOf("week").add(1,"day"),A=i.endOf("week").add(1,"day")):(n=l.startOf("week"),A=i.endOf("week"));const s=A.diff(n,"month",!0);return s>2&&console.warn(a("datetime.validation.rangeExceedsLimit")||"时间跨度不能超过两个月"),{start:n.toDate(),end:A.toDate(),isValid:s<=2}}return K((()=>o.modelValue),(e=>{if(e){const t=ht(e);d.value=t,r.value=t}}),{immediate:!0}),K((()=>o.range),(e=>{if(e&&2===e.length){const[t,l]=e;R(t,l).isValid||console.warn(a("datetime.validation.invalidRange")||"提供的日期范围无效")}})),t({selectedDay:z,pickDay:function(e){const t=ht(e);r.value=t,$(x(t))},selectDate:$,calculateValidatedDateRange:R,formatDate:function(e,t="YYYY-MM-DD"){return ht(e).format(t)},getDiff:function(e,t,l="day"){return ht(e).diff(ht(t),l)},isInRange:function(e,t,l){const a=ht(e);return a.isSameOrAfter(ht(t))&&a.isSameOrBefore(ht(l))},getMonthDates:function(e,t){const l=ht().year(e).month(t-1).startOf("month"),a=l.endOf("month"),i=[];let o=l;for(;o.isSameOrBefore(a);)i.push(o.toDate()),o=o.add(1,"day");return i},currentDateDayjs:g((()=>r.value)),selectedDateDayjs:g((()=>d.value))}),(t,l)=>{const o=ke("TuiButton"),s=ke("TuiButtonGroup"),r=ke("TuiTag");return A(),h("div",Uv,[u("div",{class:P(["tui-cal-head",`is-align-${e.titleAlign}`,`is-lang-${f(i)}`])},[u("div",Qv,[u("span",Yv,F(w.value),1),u("span",Kv,F(V.value),1)]),e.buttons.length>0?(A(),Z(s,{key:0,size:e.buttonSize},{default:W((()=>[e.buttons.includes("year")?(A(),Z(o,{key:0,icon:"tui-icon ti-chevrons-left",onClick:l[0]||(l[0]=e=>k(-1)),title:f(a)("datetime.navigation.previousYear")},null,8,["title"])):C("",!0),e.buttons.includes("month")?(A(),Z(o,{key:1,icon:"tui-icon ti-chevron-left",onClick:l[1]||(l[1]=e=>B(-1)),title:f(a)("datetime.navigation.previousMonth")},null,8,["title"])):C("",!0),e.buttons.includes("today")?(A(),Z(o,{key:2,onClick:T,class:"tui-cal-today",title:y.value},{default:W((()=>[De(F(y.value),1)])),_:1},8,["title"])):C("",!0),e.buttons.includes("month")?(A(),Z(o,{key:3,icon:"tui-icon ti-chevron-right",onClick:l[2]||(l[2]=e=>B(1)),title:f(a)("datetime.navigation.nextMonth")},null,8,["title"])):C("",!0),e.buttons.includes("year")?(A(),Z(o,{key:4,icon:"tui-icon ti-chevrons-right",onClick:l[3]||(l[3]=e=>k(1)),title:f(a)("datetime.navigation.nextYear")},null,8,["title"])):C("",!0)])),_:1},8,["size"])):C("",!0)],2),u("div",Xv,[u("div",Zv,[(A(!0),h(ie,null,ze(b.value,(e=>(A(),h("div",{class:"tui-cal-weekday",key:e},F(e),1)))),128))]),u("div",{class:P(["tui-cal-dates",`cell-align-${e.cellAlign}`])},[(A(!0),h(ie,null,ze(q.value,(e=>(A(),h("div",{key:e.fullDate,class:P(["tui-cal-cell",{"prev-month":"prev-month"===e.type,"next-month":"next-month"===e.type,"current-month":"current-month"===e.type,"is-selected":e.isSelected,"is-today":e.isToday,"has-todo":e.todoCount>0}]),onClick:t=>$(e)},[X(t.$slots,"date-cell",{data:e},(()=>[u("div",em,[u("span",tm,F(e.day),1),e.todoCount>0?(A(),Z(r,Ne({key:0,ref_for:!0},n.value,{type:(e.isSelected?"default":e.isToday&&"success")||e.todoCount&&"warning",size:"small"}),{default:W((()=>[De(F(e.todoCount),1)])),_:2},1040,["type"])):C("",!0)])]))],10,Jv)))),128))],2)])])}}}),am={key:0,class:"tui-icon ti-chevron-left"},nm={key:1,class:"tui-icon ti-chevron-up"},om={key:0,class:"tui-icon ti-chevron-right"},im={key:1,class:"tui-icon ti-chevron-down"},sm=["onMouseenter","onMouseleave","onClick"],rm=160,pl=400,Cn=100,Am=Object.assign({name:"TuiCarousel"},{__name:"index",props:{height:Number,borderRadius:Number,linkText:String,initialIndex:{type:Number,default:0},trigger:{type:String,default:"hover",validator:e=>["hover","click"].includes(e)},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3,validator:e=>e>=0},indicatorPosition:{type:String,default:"inside",validator:e=>["outside","inside","none"].includes(e)},indicatorHasIndex:{type:Boolean,default:!0},arrow:{type:String,default:"hover",validator:e=>["always","hover","never"].includes(e)},appearance:{type:String,default:"default",validator:e=>["default","card"].includes(e)},cardScale:{type:Number,default:.8,validator:e=>e>0&&e<=1},loop:{type:Boolean,default:!0},sequentialRolling:{type:Boolean,default:!0},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!0},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["change"],setup(e,{expose:t,emit:l}){const{$optResizeCounter:a,initResizeBy:i}=Se("$global",null),o=i(),n=e,s=l,r=xe("carousel"),d=S(!1),c=S(!1),p=S(null),v=S([]),m=S(!1),y=Pe({isMotionBlur:!1,clientSize:0,hover:!1,actIndex:-1,duration:400,animToken:0}),b=(e=pl)=>{y.duration=e},V=e=>{if(v.value.length<=1||e==y.actIndex)return;he.c(r+"_act"),he.c(r+"_dur"),n.motionBlur&&(y.isMotionBlur=!0,he.c(r+"_blur"),he.s(r+"_blur",(()=>{y.isMotionBlur=!1}),"card"===n.appearance?200:300));const t=e=>{if(!n.sequentialRolling||-1===y.actIndex)return b(pl),void w(e);const l=((e,t)=>{const l=v.value.length-1,a=Math.abs(e-t);if(1===a||n.loop&&(e===l&&0===t||0===e&&t===l))return t;if(n.loop){let i=e+(v.value.length-a<a?e<t?-1:1:e<t?1:-1);return i<0?l:i>l?0:i}return e<t?e+1:e-1})(y.actIndex,e),a=l===e;b(a?pl:Cn),w(l),a?he.s(r+"_dur",(()=>{b(pl)}),pl):he.s(r+"_act",(()=>t(e)),Cn)};t(e)},w=(e,t=null)=>{if(e=Number(e),isNaN(e)||e!==Math.floor(e))return void console.warn("[Carousel]index must be an integer.");const l=v.value.length,a=y.actIndex;y.animToken+=1,y.actIndex=e<0?n.loop?l-1:0:e>=l?n.loop?0:l-1:e,a===y.actIndex?x(a):s("change",y.actIndex,a)},x=e=>{v.value.forEach(((t,l)=>{t.translateItem(l,y.actIndex,e)}))},k=()=>{y.hover=!0,n.pauseOnHover&&T()},B=()=>{y.hover=!1,$()},T=()=>{Lt.c(r+"_tInter")},$=()=>{n.interval<=0||!n.autoplay||Lt.g(r+"_tInter")||Lt.s(r+"_tInter",(()=>{v.value.length<=1?T():y.actIndex<v.value.length-1||n.loop?R():T()}),n.interval)},z=()=>{V(y.actIndex-1)},R=()=>{V(y.actIndex+1)},N=e=>{if(!n.wheelRolling||v.value.length<=1)return;const t=(e=>Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)(e);if(!t)return;const l=t>0,a=n.loop||y.actIndex<v.value.length-1,i=n.loop||y.actIndex>0,o=l?a:i;(n.interceptWheel?a||i:o)&&(e.cancelable&&e.preventDefault(),o&&!m.value&&(m.value=!0,he.s(r+"_wheel",(()=>{m.value=!1}),rm),l?R():z()))};K((()=>a.value),((e,t)=>{"root"==o.value(n.resizeObserver)&&e>t&&(M(),w(y.actIndex))}));const M=()=>{"h"==n.direction?y.clientSize=p.value?.clientWidth:y.clientSize=p.value?.clientHeight,c.value||(c.value=!0)},O=g((()=>pe("cpt-caro",{scale:n.cardScale,dur:y.duration/1e3+"s",...q("height",n.height,"px"),...q("bdra",n.borderRadius,"px")}))),D=g((()=>"outside"===n.indicatorPosition||"card"===n.appearance?"outside":n.indicatorPosition));return ye((async()=>{d.value=!0,await de(),$(),V(n.initialIndex||0)})),At((()=>{Lt.c(r+"_tInter"),he.c(r+"_act"),he.c(r+"_wheel"),he.c(r+"_blur"),he.c(r+"_dur")})),K((()=>n.autoplay),(e=>{e?$():T()})),K((()=>[n.loop,n.appearance,n.direction,n.height,d.value]),(async()=>{T(),await de(),M(),w(y.actIndex),$()})),K((()=>y.actIndex),((e,t)=>{x(t),Lt.g(r+"_tInter")&&(T(),$())})),rt("TuiCaro",{state:y,direction:g((()=>n.direction)),appearance:g((()=>n.appearance)),loop:g((()=>n.loop)),cardScale:g((()=>n.cardScale)),linkText:g((()=>n.linkText)),addItem:e=>{v.value.push(e)},removeItem:e=>{const t=v.value.findIndex((t=>t.uid===e));-1!==t&&(v.value.splice(t,1),v.value.length&&y.actIndex===t&&w(0))},items:v,throttledAct:V}),t({state:y,setActiveItem:w,prev:z,next:R}),(t,l)=>{const a=ke("TuiButton"),i=Fe("tui-resize");return we((A(),h("div",{class:P(["tui-carousel",`is-appr-${e.appearance}`,`is-dir-${e.direction}`,`is-indic-${D.value}`]),onMouseenter:st(k,["stop"]),onMouseleave:st(B,["stop"]),onWheel:N,ref_key:"caroRef",ref:p,style:fe(O.value)},[u("div",{class:P(["tui-caro-container",{"is-motion-blur":e.motionBlur&&y.isMotionBlur}])},[ce(a,{link:"",class:P(["tui-caro-arrow","is-prev",{"is-show":"never"!=e.arrow&&("always"===e.arrow||y.hover)&&(e.loop||y.actIndex>0)}]),onClick:st(z,["stop"])},{default:W((()=>["h"==e.direction?(A(),h("i",am)):(A(),h("i",nm))])),_:1},8,["class"]),ce(a,{link:"",class:P(["tui-caro-arrow","is-next",{"is-show":"never"!=e.arrow&&("always"===e.arrow||y.hover)&&(e.loop||y.actIndex<v.value.length-1)}]),onClick:st(R,["stop"])},{default:W((()=>["h"==e.direction?(A(),h("i",om)):(A(),h("i",im))])),_:1},8,["class"]),X(t.$slots,"default")],2),"none"!==e.indicatorPosition?(A(),h("div",{key:0,class:P(["tui-caro-indicators",{"has-index":e.indicatorHasIndex,"is-outside":"outside"==D.value}])},[(A(!0),h(ie,null,ze(v.value,((t,l)=>(A(),h("div",{key:l,class:P(["tui-caro-indic",{"is-active":l===y.actIndex}]),onMouseenter:t=>"hover"===e.trigger&&V(l),onMouseleave:t=>"hover"===e.trigger&&(he.c(r+"_act"),he.c(r+"_dur"),he.c(r+"_blur"),void(n.motionBlur&&(y.isMotionBlur=!1))),onClick:t=>"click"===e.trigger&&V(l)},[ce(a,{link:""},{default:W((()=>[e.indicatorHasIndex?(A(),h(ie,{key:0},[De(F(l+1),1)],64)):C("",!0)])),_:2},1024)],42,sm)))),128))],2)):C("",!0)],38)),[[Oe,d.value],[i,{callback:M,uid:f(r),disabled:"self"!=f(o)(e.resizeObserver)&&c.value}]])}}}),um={key:0,class:"tui-caroi-cont"},cm={class:"tui-caroi-link-text"},dm=Object.assign({name:"TuiCarouselItem"},{__name:"item",props:{title:String,description:String,hasLinkButton:Boolean},emits:["navigateTo"],setup(e,{emit:t}){const{i18n:l}=Se("$global",null),a=Se("TuiCaro",null),{state:i,direction:o,linkText:n,appearance:s,loop:r,cardScale:d,throttledAct:c,addItem:p,removeItem:v,items:m}=a,y=S(!1),b=S(!1),V=S(!1),w=S(0);let q=null;const x=S(Symbol("carousel-item")),k=g((()=>m.value.findIndex((e=>e.uid===x.value)))),B=t,T=()=>{B("navigateTo",k.value)},$=(e,t)=>{const l=m.value.length,a=l-1,o="card"===s.value,n=i.clientSize,A=o?2.1:1;let u=o?n*(e-t)*d.value/A:n*(e-t);return r.value&&(e<t&&t-e>a/2?u=o?n*(l+e-t)*d.value/A:n*(l+e-t):e>t&&e-t>a/2&&(u=o?n*(e-l-t)*d.value/A:n*(e-l-t))),u},z=(e,t)=>{I.transform=t?`translateY(${e}px)`:`translateX(${e}px)`},R=(e,t,l)=>{const a=m.value,n="v"===o.value,A=e;if(a.length<=1)return;if(V.value&&"card"===s.value)return void N(A,t);const r=O.value;l===t||l!==A&&t!==A?r&&w.value!==i.animToken&&(V.value=!1):(V.value=!0,r?w.value=i.animToken:(q&&clearTimeout(q),q=setTimeout((()=>{V.value=!1,q=null}),i.duration))),A!==t?z($(A,t),n):N(A,t)},N=(e,t)=>{const l="v"===o.value;z(e!==t?$(e,t):0,l)},M=g((()=>i.actIndex===m.value.findIndex((e=>e.uid===x.value)))),O=g((()=>"card"===s.value)),D=g((()=>{if(!O.value)return!1;const e=m.value,t=a.state.actIndex,l=e.findIndex((e=>e.uid===x.value));if(r.value){const a=e.length-1;if(0===t&&l===a)return!0;if(t===a&&0===l)return!0}return Math.abs(l-t)<=1})),I=Pe({transform:""}),_=e=>{O.value&&e.target===L.value&&("transform"!==e.propertyName&&"opacity"!==e.propertyName||(V.value=!1))},E=()=>{if(a&&O.value){const e=m.value.findIndex((e=>e.uid===x.value));a.throttledAct(e)}},L=S(null);return K((()=>i.animToken),(e=>{O.value&&e!==w.value&&(V.value=!1)})),ye((async()=>{p({uid:x.value,translateItem:R,$el:L.value}),await de((()=>{m.value.forEach((e=>{e.uid===x.value&&(e.$el=L.value)}))})),y.value=!0,await de((()=>{R(k.value,i.actIndex,i.actIndex+1)}))})),At((()=>{q&&clearTimeout(q),v(x.value)})),(t,a)=>{const i=ke("TuiButton"),o=ke("TuiTextTip");return we((A(),h("div",{ref_key:"carouselItemRef",ref:L,class:P(["tui-carousel-item",{"is-active":M.value,"is-in-stage":D.value&&O.value,"is-hover":b.value,"is-animating":V.value,"is-frist":0==k.value,"is-last":k.value==f(m).length-1}]),onClick:E,style:fe(I),onTransitionend:_},[O.value?(A(),h("div",{key:0,class:P(["tui-caroi-mask",{"is-show":!M.value}])},null,2)):C("",!0),ce(Me,{name:"fade"},{default:W((()=>[e.title||e.description?we((A(),h("div",um,[e.hasLinkButton?(A(),Z(i,{key:0,size:"small",class:"tui-caroi-link",type:"primary",link:"",onClick:T},{default:W((()=>[u("span",cm,F(f(n)||f(l)("common.detail")),1),a[0]||(a[0]=u("i",{class:"tui-icon ti-chevron-right"},null,-1))])),_:1})):C("",!0),e.title?(A(),Z(o,{key:1,class:"tui-caroi-title"},{default:W((()=>[De(F(e.title),1)])),_:1})):C("",!0),e.description?(A(),Z(o,{key:2,type:"default",lines:2,placement:"bottom",class:"tui-caroi-desc"},{default:W((()=>[De(F(e.description),1)])),_:1})):C("",!0)],512)),[[Oe,M.value]]):C("",!0)])),_:1}),X(t.$slots,"default")],38)),[[Oe,y.value]])}}}),fm={class:"tui-clpsi-title"},pm={key:0,class:"tui-clpsi-body"},gm={class:"tui-clpsi-content"},Ro=Object.assign({name:"TuiCollapseItem"},{__name:"item",props:{name:[String,Number],title:String,disabled:Boolean,className:String},setup(e){const t=e,l=Se("TuiCollapse",null),a=S(!1),i=g((()=>t.name??t.title)),o=g((()=>l?.isActive(i.value))),n=g((()=>"header"===l?.props.trigger)),s=g((()=>!(l?.props.destroyOnClose||!a.value)||o.value)),r=()=>{l?.toggle(i.value,t.disabled)},d=()=>{n.value&&r()},c=()=>{n.value||r()},p=e=>{const t=l?.props.duration??260;e.style.transition=`height ${t}ms ease, opacity ${t}ms ease, transform ${t}ms ease`},f=e=>{e.style.height="",e.style.opacity="",e.style.transform="",e.style.transition=""},v=e=>{p(e),e.style.height="0",e.style.opacity="0",e.style.transform="translateY(-6px)"},m=e=>{ft.w().then((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1",e.style.transform="translateY(0)"}))},y=e=>{f(e)},b=e=>{p(e),e.style.height=`${e.scrollHeight}px`,e.style.opacity="1",e.style.transform="translateY(0)"},V=e=>{ft.w().then((()=>{e.style.height="0",e.style.opacity="0",e.style.transform="translateY(-6px)"}))},w=e=>{f(e)};return ye((()=>{l?.registerItem({name:i.value,disabled:t.disabled}),(!l?.props.lazy||o.value)&&(a.value=!0)})),K(o,(e=>{e&&(a.value=!0)})),At((()=>{l?.unregisterItem(i.value)})),(t,l)=>(A(),h("div",{class:P(["tui-collapse-item",{"is-active":o.value,"is-disabled":e.disabled,"is-header-trigger":n.value},e.className])},[u("div",{class:"tui-clpsi-head",onClick:d},[u("button",{class:"tui-clpsi-icon",type:"button",onClick:st(c,["stop"])},[...l[1]||(l[1]=[u("i",{class:"tui-icon ti-chevron-right"},null,-1)])]),u("div",fm,[X(t.$slots,"title",{active:o.value,itemName:i.value},(()=>[De(F(e.title),1)]))]),u("div",{class:"tui-clpsi-extra",onClick:l[0]||(l[0]=st((()=>{}),["stop"]))},[X(t.$slots,"extra",{active:o.value,itemName:i.value})])]),ce(Me,{name:"tui-clpsi-drop",onBeforeEnter:v,onEnter:m,onAfterEnter:y,onBeforeLeave:b,onLeave:V,onAfterLeave:w},{default:W((()=>[s.value?we((A(),h("div",pm,[u("div",gm,[X(t.$slots,"default",{active:o.value,itemName:i.value})])],512)),[[Oe,o.value]]):C("",!0)])),_:3})],2))}}),hm=Object.assign({name:"TuiCollapse"},{__name:"index",props:{modelValue:[String,Number,Array],defaultValue:[String,Number,Array],options:{type:Array,default:()=>[]},accordion:Boolean,bordered:{type:Boolean,default:!0},merge:Boolean,ghost:Boolean,lazy:Boolean,destroyOnClose:Boolean,trigger:{type:String,default:"header",validator:e=>["header","icon"].includes(e)},iconPosition:{type:String,default:"left",validator:e=>["left","right"].includes(e)},keyField:{type:String,default:"key"},titleField:{type:String,default:"title"},contentField:{type:String,default:"content"},disabledField:{type:String,default:"disabled"},duration:{type:Number,default:260},itemGap:[String,Number],className:String,itemClassName:String},emits:["update:modelValue","change","open","close"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=xe("collapse"),n=S(a.defaultValue??(a.accordion?null:[])),s=Pe(new Map),r=g((()=>void 0!==a.modelValue)),u=g((()=>r.value?a.modelValue:n.value)),d=e=>null==e?[]:Array.isArray(e)?e:[e],c=g((()=>d(u.value).map((e=>`${e}`)))),p=g((()=>pe("cpt-clps",{...q("gap",a.itemGap,{smartAppend:!0,zero:!0}),dur:`${a.duration}ms`}))),f=(e,t)=>e?.[a.keyField]??e?.value??t,v=e=>e?.[a.titleField]??e?.label??"",m=e=>e?.[a.contentField]??"",y=e=>!!e?.[a.disabledField],b=e=>c.value.includes(`${e}`),V=(e,t)=>{r.value||(n.value=e),i("update:modelValue",e),i("change",e,t)},w=(e,t=!1)=>{if(t)return;const l=b(e);let o;if(a.accordion)o=l?null:e;else{const t=d(u.value);o=l?t.filter((t=>`${t}`!=`${e}`)):[...t,e]}V(o,{name:e,active:!l}),i(l?"close":"open",e)};return K((()=>a.accordion),(e=>{if(!e)return;const t=d(u.value)[0]??null;t!==u.value&&V(t,{name:t,active:!!t})})),rt("TuiCollapse",{uid:o,props:a,activeKeysCPT:c,isActive:b,toggle:w,registerItem:e=>{s.set(`${e.name}`,e)},unregisterItem:e=>{s.delete(`${e}`)}}),t({open:e=>{b(e)||w(e,!1)},close:e=>{b(e)&&w(e,!1)},toggle:w,getActive:()=>u.value}),(t,l)=>(A(),h("div",{class:P(["tui-collapse",`is-icon-${e.iconPosition}`,{"is-bordered":e.bordered,"is-merge":e.merge,"is-ghost":e.ghost},e.className]),style:fe(p.value)},[e.options.length?(A(!0),h(ie,{key:0},ze(e.options,((l,a)=>(A(),Z(Ro,{key:f(l,a),name:f(l,a),title:v(l),disabled:y(l),"class-name":e.itemClassName},{title:W((e=>[X(t.$slots,"title",Ne({ref_for:!0},{...e,item:l,index:a}),(()=>[De(F(v(l)),1)]))])),extra:W((e=>[X(t.$slots,"extra",Ne({ref_for:!0},{...e,item:l,index:a}))])),default:W((()=>[X(t.$slots,"content",Ne({ref_for:!0},{item:l,index:a,active:b(f(l,a))}),(()=>[De(F(m(l)),1)]))])),_:2},1032,["name","title","disabled","class-name"])))),128)):X(t.$slots,"default",{key:1})],6))}}),vm={class:"tui-dfc-inner"},mm={class:"tui-dfc-front tui-dfc-top"},ym={class:"tui-dfc-cont"},bm={class:"tui-dfc-back tui-dfc-bottom"},Vm={class:"tui-dfc-cont"},wm={class:"tui-dfc-cont"},Cm={class:"tui-dfc-cont"},$m=Object.assign({name:"FlipCard"},{__name:"card",props:{digit:{type:String,required:!0},duration:{type:Number,default:300},index:{type:Number,default:0},flipMode:{type:String,default:"shortest"}},setup(e){const t=e,l=S("0"),a=S("0"),i=S(!1),o=S("down"),n=S([]),s=S(!1),r=(e,l)=>{const a=parseInt(e),i=parseInt(l);switch(t.flipMode){case"downOnly":return"down";case"shortest":return(i-a+10)%10<=(a-i+10)%10?"down":"up";case"smart":default:return 0===a&&9===i?"up":9===a&&0===i||i>a?"down":"up"}},d=e=>{const A=parseInt(l.value),u=parseInt(e);if(A===u)return;let d=[];switch(t.flipMode){case"downOnly":let e=A;for(;e!==u;)e=(e+1)%10,d.push(String(e));break;case"shortest":const t=(u-A+10)%10,l=(A-u+10)%10;if(t<=l){let e=A;for(let l=0;l<t;l++)e=(e+1)%10,d.push(String(e))}else{let e=A;for(let t=0;t<l;t++)e=(e-1+10)%10,d.push(String(e))}break;case"smart":default:if(!(Math.abs(u-A)>1)||0===A&&9===u||9===A&&0===u)d=[String(u)];else if(u>A)for(let e=A+1;e<=u;e++)d.push(String(e));else for(let e=A-1;e>=u;e--)d.push(String(e));break}n.value.length>3&&(n.value=[]),n.value.push(...d),s.value||(async()=>{if(!s.value&&0!==n.value.length){for(s.value=!0;n.value.length>0;){const e=n.value.shift(),A=r(l.value,e);await new Promise((n=>{a.value=l.value,o.value=A,i.value=!0;const s=100*t.index;setTimeout((()=>{l.value=e}),s+t.duration/2),setTimeout((()=>{i.value=!1,n()}),s+t.duration)}))}s.value=!1}})()};K((()=>t.digit),(e=>{/^\d$/.test(e)?e!==l.value&&(n.value=[],d(e)):console.warn("FlipCard should only receive digit characters (0-9)")}),{immediate:!0});const c=g((()=>pe("cpt-dflip-card",{idx:t.index})));return(e,t)=>(A(),h("div",{class:P(["tui-dflip-card",{"is-flipping":i.value}]),style:fe(c.value)},[u("div",vm,[u("div",mm,[u("span",ym,F(l.value),1)]),u("div",bm,[u("span",Vm,F(l.value),1)]),i.value?(A(),h(ie,{key:0},[u("div",{class:P(["tui-dfc-front","tui-dfc-top",`is-flip-top-${o.value}`])},[u("span",wm,F("down"===o.value?a.value:l.value),1)],2),u("div",{class:P(["tui-dfc-back","tui-dfc-bottom",`is-flip-bottom-${o.value}`])},[u("span",Cm,F("down"===o.value?l.value:a.value),1)],2)],64)):C("",!0)])],6))}}),km={key:0,class:"tui-dflip-static is-prefix"},Sm={class:"tui-dflip-digits"},qm={key:1,class:"tui-dflip-item"},Tm={key:0,class:"tui-dflip-symbol is-sub"},Bm={key:1,class:"tui-dflip-symbol is-normal"},xm={key:1,class:"tui-dflip-static is-suffix"},Pm=Object.assign({name:"TuiDigitalFlip"},{__name:"index",props:{value:{type:[String,Number],default:0,required:!0},duration:{type:Number,default:500},delay:{type:Number,default:1e3},useGrouping:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},dropShadow:{type:Boolean,default:!1},prefix:String,suffix:String,gap:Number,customClass:String,flipMode:{type:String,default:"shortest",validator:e=>["smart","downOnly","shortest"].includes(e)},appearance:{type:String,default:"default",validator:e=>["default","reverse","custom"].includes(e)},size:{type:String,default:"default",validator:e=>["huge","large","default","small","custom"].includes(e)}},setup(e){const t=e,l=S(!1),a=S([]),i=S(!0),o=e=>e.reduce(((e,t)=>{const l=t.value||t;return Array.isArray(l)?e+l.length:e}),0),n=async e=>{const t=r(e),l=a.value,i=o(t),n=o(l);i>n?(a.value=((e,t)=>{const l=t-o(e);if(l<=0)return e;const a=e.map((e=>({...e,value:Array.isArray(e.value)?[...e.value]:e.value})));for(let e=0;e<a.length;e++)if("digits"===a[e].type){a[e].value=Array(l).fill("0").concat(a[e].value);break}return a})(l,i),await de(),a.value=t):(i<n&&(a.value=((e,t)=>{const l=e.map((e=>({...e,value:Array.isArray(e.value)?[...e.value]:e.value})));let a=t;for(let e=0;e<l.length&&a>0;e++)if("digits"===l[e].type){const t=Math.min(l[e].value.length,a);l[e].value=[...Array(t).fill("0"),...l[e].value.slice(t)],a-=t}return l})(l,n-i)),a.value=t)},s=g((()=>(e=>{let l=e.toString();return t.useGrouping&&(l=l.replace(/^-?\d+/g,(e=>e.replace(/(?=(?!\b)(\d{3})+$)/g,",")))),l})(t.value))),r=e=>{let t=0;return e.map((e=>Array.isArray(e)?{type:"digits",id:"digits-"+t++,value:e}:{type:"symbol",id:`symbol-${e}`,value:e}))};K(s,(async(e,l)=>{e?.length!=l?.length&&(a.value=[],await de());const o=(e=>{const t=[];let l=[];for(let a=0;a<e.length;a++){const i=e[a];/\d/.test(i)?l.push(i):(l.length>0&&(t.push([...l]),l=[]),t.push(i))}return l.length>0&&t.push([...l]),t})(e);if(i.value){const e=o.map((e=>Array.isArray(e)?Array(e.length).fill("0"):e));a.value=r(e),i.value=!1,await de(),setTimeout((()=>{a.value=r(o)}),t.delay||0)}else n(o)}),{immediate:!0});const d=g((()=>pe("cpt-dflip",{...q("delay",t.delay,"ms"),...q("gap",t.gap,"px"),dur:`${t.duration}ms`})));return ye((()=>{l.value=!0})),(t,i)=>l.value?(A(),h("div",{key:0,class:P(["tui-digital-flip",`is-appr-${e.appearance}`,`is-size-${e.size}`,e.customClass,{"is-bordered":e.bordered,"is-drop-shadow":e.dropShadow}]),style:fe(d.value)},[e.prefix?(A(),h("div",km,F(e.prefix),1)):C("",!0),u("div",Sm,[(A(!0),h(ie,null,ze(a.value,((t,l)=>(A(),h(ie,{key:t.id},["digits"===t.type?(A(),Z(Rn,{key:0,name:"tui-dflip-slide",tag:"div",class:"tui-dflip-seg"},{default:W((()=>[(A(!0),h(ie,null,ze(t.value,((l,a)=>(A(),h("div",{key:`${t.id}-${t.value.length-a-1}`,class:"tui-dflip-item"},[ce($m,{flipMode:e.flipMode,digit:l,duration:e.duration,index:a},null,8,["flipMode","digit","duration","index"])])))),128))])),_:2},1024)):(A(),h("div",qm,["."===t.value||","===t.value?(A(),h("div",Tm,F(t.value),1)):(A(),h("div",Bm,F(t.value),1))]))],64)))),128))]),e.suffix?(A(),h("div",xm,F(e.suffix),1)):C("",!0)],6)):C("",!0)}});function $n(e){return/^(\d|\.|,){1}$/.test(e.toString())}const Rm={class:P(["tui-digital-rolling-scroll"])},zm={class:"tui-drs-text"},Nm={__name:"scroll",props:{to:{default:"0",validator:$n},from:{default:"0",validator:$n},dislocation:{type:Boolean,default:!1},interval:{type:Number,default:500}},setup(e){const t=e,{delay:l,includeSymbols:a}=Se("TuiDigitalRolling",null),i=g((()=>{const e=["0","1","2","3","4","5","6","7","8","9"];return a.value?[",",".",...e]:e})),o=S(0),n=S(1),s=S(null),r=S(0),d=g((()=>o.value/i.value.length)),c=()=>{s.value&&(o.value=s.value.clientHeight)},p=e=>{const t=i.value.findIndex((t=>e===t));r.value=t*d.value},v=()=>{const e=s.value?.parentElement;e&&(e.style.height=`${d.value}px`)};K((()=>t.to),((e,l)=>{if(t.dislocation){const t=i.value.findIndex((e=>l===e)),a=i.value.findIndex((t=>e===t));n.value=Math.abs(a-t)}else n.value=1;p(e)}),{immediate:!0});const m=g((()=>pe("cpt-drs",{tslDur:t.interval/1e3*n.value+"s",tsf:`translateY(-${r.value}px)`}))),y=()=>{const e=d.value;c(),d.value!==e&&(v(),p(t.to))};return ye((async()=>{await de(),c(),v(),p(t.from),setTimeout((()=>{p(t.to)}),l.value||1e3),s.value&&Ul.o(s.value,y,{frameSync:!0,threshold:0,trailing:!0,settleDelay:0})})),Dt((()=>{s.value&&Ul.d(s.value)})),(e,t)=>(A(),h("div",Rm,[u("div",{ref_key:"listRef",ref:s,class:"tui-drs-list",style:fe(m.value)},[(A(!0),h(ie,null,ze(i.value,(e=>(A(),h("div",{class:P(["tui-drs-digit",{"is-num":f(et).isDigit(e)}]),key:e},[u("span",zm,F(e),1)],2)))),128))],4)]))}},Im={key:0,class:"tui-droll-static is-prefix"},Mm={key:1,class:"tui-droll-static is-sub"},Dm={key:2,class:"tui-droll-static is-symbol"},Om={key:1,class:"tui-droll-static is-suffix"},_m=Object.assign({name:"TuiDigitalRolling"},{__name:"index",props:{value:{type:[String,Number],default:0,required:!0},dislocation:{type:Boolean,default:!1},interval:{type:Number,default:1e3},useGrouping:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},dropShadow:{type:Boolean,default:!1},appearanceLayer:{type:String,default:"group",validator:e=>["item","group"].includes(e)},prefix:String,suffix:String,delay:Number,gap:Number,customClass:String,includeSymbols:{type:Boolean,default:!1},appearance:{type:String,default:"default",validator:e=>["default","reverse","custom","simple"].includes(e)},size:{type:String,default:"default",validator:e=>["huge","large","default","small","custom"].includes(e)}},setup(e){const t=e,l=S(!1),a=S([]),i=S([]);rt("TuiDigitalRolling",{delay:g((()=>t.delay)),includeSymbols:g((()=>t.includeSymbols))});K((()=>t.value),(e=>{(e=>{let l=e+"";t.useGrouping&&(l=l.replace(/^-?\d+/g,(e=>e.replace(/(?=(?!\b)(\d{3})+$)/g,","))));const o=l.split("");i.value=a.value.concat(),a.value=o})(e)}),{immediate:!0}),K((()=>[t.appearanceLayer,t.appearance,t.size]),(e=>{l.value=!1,de((()=>{l.value=!0}))}));const o=g((()=>pe("cpt-dr",{...q("delay",t.delay,"ms"),...q("gap",t.gap,{smartAppend:!0,zero:!0})})));return ye((()=>{l.value=!0})),(t,i)=>l.value?(A(),Z(Rn,{key:0,class:P(["tui-digital-rolling",`is-appr-layer-${e.appearanceLayer}`,`is-appr-${e.appearance}`,`is-size-${e.size}`,e.customClass,{"is-bordered":e.bordered,"is-drop-shadow":e.dropShadow}]),name:"tui-droll-slide",tag:"div",style:fe(o.value)},{default:W((()=>[e.prefix?(A(),h("div",Im,F(e.prefix),1)):C("",!0),(A(!0),h(ie,null,ze(a.value,((t,l)=>(A(),h(ie,null,[(e.includeSymbols?/[0-9.,]/.test(t):/[0-9]/.test(t))?(A(),Z(Nm,{class:"tui-droll-item",key:"DT"+l,to:t,interval:e.interval,dislocation:e.dislocation,from:"0"},{default:W((()=>[De(F(t),1)])),_:2},1032,["to","interval","dislocation"])):"."===t||","===t?(A(),h("div",Mm,F(t),1)):(A(),h("div",Dm,F(t),1))],64)))),256)),e.suffix?(A(),h("div",Om,F(e.suffix),1)):C("",!0)])),_:1},8,["class","style"])):C("",!0)}}),Em={key:0,class:"tui-dumetric-icon"},Lm=["src"],Wm={class:"tui-dumetric-body"},jm={key:0,class:"tui-dumetric-label"},Gm={class:"tui-dumetric-values"},Fm={key:1,class:"tui-dumetric-unit"},Hm={class:"tui-dumetric-value"},Um={key:1,class:"tui-dumetric-unit"},Qm=Object.assign({name:"TuiDataUnitMetric"},{__name:"metric",props:{icon:String,image:String,label:String,metric:{type:Object,default:()=>({})},assist:{type:Object,default:null},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},bordered:{type:Boolean,default:!0},active:Boolean,disabled:Boolean,tipConfig:Object,typedConfig:Object,digitalAppearance:{type:String,validator:e=>["default","reverse","custom","simple"].includes(e)},digitalRollingConfig:Object},setup(e){const t=e,l=yt(),a=g((()=>!!(t.icon||t.image||t.metric?.icon||t.metric?.image||l.icon))),i=g((()=>({appearance:"accent",tone:"weak",linePosition:"v"===t.direction?"top":"left",lineThickness:3,hasShadow:!1,...t.typedConfig,type:t.type}))),o=g((()=>({appearance:"simple",useGrouping:!0,interval:2e3,dislocation:!1,...t.digitalRollingConfig,...t.digitalAppearance?{appearance:t.digitalAppearance}:{}}))),n=g((()=>!(!t.digitalAppearance&&!t.digitalRollingConfig?.appearance))),s=e=>e?.type||t.type,r=e=>({appearance:"text",tone:"base",type:s(e)}),d=e=>{const t=e?.value;if(!0!==e?.trend)return t;const l=Number(t);return Number.isFinite(l)?Math.abs(l):t},c=e=>{if(!0!==e?.trend)return null;const t=Number(e?.value);return Number.isFinite(t)&&0!==t?t>0?"tui-icon ti-arrow-up":"tui-icon ti-arrow-down":null},p=e=>e&&void 0!==e.value&&null!==e.value&&""!==e.value;return(t,l)=>{const s=ke("TuiTextTip"),g=ke("TuiDigitalRolling"),f=ke("TuiTyped");return A(),Z(f,Ne({class:["tui-data-unit-metric",`is-dir-${e.direction}`,`is-size-${e.size}`,{"is-bordered":e.bordered,"is-active":e.active,"is-disabled":e.disabled,"has-icon":a.value,"has-assist":p(e.assist)}]},i.value),{default:W((()=>[a.value?(A(),h("div",Em,[X(t.$slots,"icon",{},(()=>[e.image||e.metric?.image?(A(),h("img",{key:0,src:e.image||e.metric.image,alt:"",class:"tui-dumetric-img"},null,8,Lm)):(A(),h("i",{key:1,class:P(["tui-dumetric-ico",e.icon||e.metric?.icon])},null,2))]))])):C("",!0),u("div",Wm,[e.label||t.$slots.label?(A(),h("div",jm,[X(t.$slots,"label",{},(()=>[ce(s,pt(Vt(e.tipConfig)),{default:W((()=>[De(F(e.label),1)])),_:1},16)]))])):C("",!0),u("div",Gm,[X(t.$slots,"metric",{metric:e.metric},(()=>[p(e.metric)?(A(),Z(f,Ne({key:0,class:["tui-dumetric-value-wrap","is-main",{"has-unit":e.metric.unit}]},r(e.metric)),{default:W((()=>[c(e.metric)?(A(),h("i",{key:0,class:P(["tui-dumetric-trend",c(e.metric)])},null,2)):C("",!0),ce(g,Ne({class:["tui-dumetric-value",{"has-digital-appearance":n.value}]},o.value,{value:d(e.metric)}),null,16,["class","value"]),e.metric.unit?(A(),h("span",Fm,F(e.metric.unit),1)):C("",!0)])),_:1},16,["class"])):C("",!0)])),X(t.$slots,"assist",{assist:e.assist},(()=>[p(e.assist)?(A(),Z(f,Ne({key:0,class:["tui-dumetric-value-wrap","is-assist",{"has-unit":e.assist.unit}]},r(e.assist)),{default:W((()=>[c(e.assist)?(A(),h("i",{key:0,class:P(["tui-dumetric-trend",c(e.assist)])},null,2)):C("",!0),u("span",Hm,F(d(e.assist)),1),e.assist.unit?(A(),h("span",Um,F(e.assist.unit),1)):C("",!0)])),_:1},16,["class"])):C("",!0)]))])])])),_:3},16,["class"])}}}),Ym={key:0,class:"tui-durank-bg-wrap"},Km={class:"tui-durank-content"},Xm={class:"tui-durank-left"},Zm={class:"tui-durank-index-num"},Jm={class:"tui-durank-name"},ey={class:"tui-durank-right"},ty={key:0,class:"tui-durank-label"},ly={key:1,class:"tui-durank-unit"},ay=Object.assign({name:"TuiDataUnitRank"},{__name:"rank",props:{data:{type:Array,default:()=>[]},max:{type:Number,default:0},showProgress:{type:Boolean,default:!0},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},bordered:{type:Boolean,default:!1},digitalAppearance:{type:String,validator:e=>["default","reverse","custom","simple"].includes(e)},digitalRollingConfig:Object,typedConfig:Object},setup(e){const t=e,l=g((()=>t.max>0?t.max:t.data&&0!==t.data.length?Math.max(...t.data.map((e=>Number(e.value)||0)),0):100)),a=g((()=>l.value||1)),i=g((()=>({appearance:"simple",useGrouping:!0,interval:2e3,dislocation:!1,...t.digitalRollingConfig,...t.digitalAppearance?{appearance:t.digitalAppearance}:{}}))),o=g((()=>!(!t.digitalAppearance&&!t.digitalRollingConfig?.appearance))),n=(e,t)=>e?.type?e.type:0===t?"danger":1===t?"warning":2===t?"primary":"default",s=(e,l)=>({appearance:"accent",tone:"weak",type:n(e,l),...t.typedConfig}),r=(e,t)=>({appearance:"text",tone:"base",type:n(e,t)}),d=e=>{const t=Number(e.value)||0;return{width:`${Math.min(100,Math.max(0,t/a.value*100))}%`}},c=e=>{const t=e?.value;if(!0!==e?.trend)return t;const l=Number(t);return Number.isFinite(l)?Math.abs(l):t},p=e=>{if(!0!==e?.trend)return null;const t=Number(e?.value);return Number.isFinite(t)&&0!==t?t>0?"tui-icon ti-arrow-up":"tui-icon ti-arrow-down":null};return(t,l)=>{const a=ke("TuiTyped"),n=ke("TuiTextTip"),g=ke("TuiDigitalRolling");return A(),h("div",{class:P(["tui-data-unit-rank",`is-size-${e.size}`,{"is-bordered":e.bordered}])},[(A(!0),h(ie,null,ze(e.data,((l,f)=>(A(),h("div",{key:l.id||f,class:"tui-durank-item"},[e.showProgress?(A(),h("div",Ym,[ce(a,Ne({class:"tui-durank-bg"},{ref_for:!0},s(l,f),{style:d(l)}),null,16,["style"])])):C("",!0),u("div",Km,[u("div",Xm,[ce(a,Ne({class:"tui-durank-index"},{ref_for:!0},r(l,f)),{default:W((()=>[u("span",Zm,F(l.rank||f+1),1)])),_:2},1040),u("div",Jm,[ce(n,null,{default:W((()=>[De(F(l.name),1)])),_:2},1024)])]),u("div",ey,[X(t.$slots,"right",{item:l,index:f},(()=>[l.label?(A(),h("div",ty,F(l.label),1)):C("",!0),ce(a,Ne({class:"tui-durank-value-wrap"},{ref_for:!0},r(l,f)),{default:W((()=>[p(l)?(A(),h("i",{key:0,class:P(["tui-durank-trend",p(l)])},null,2)):C("",!0),ce(g,Ne({class:["tui-durank-value",{"has-digital-appearance":o.value}]},{ref_for:!0},i.value,{value:c(l)}),null,16,["class","value"]),l.unit?(A(),h("span",ly,F(l.unit),1)):C("",!0)])),_:2},1040)]))])])])))),128))],2)}}}),ny={class:"tui-vubar-track"},oy={key:0,class:"tui-vubar-text"},zo=Object.assign({name:"TuiVisualUnitBar"},{__name:"index",props:{value:{type:Number,default:0},maxValue:{type:Number,default:0},percent:Number,precision:{type:Number,default:2},status:{type:String,default:null,validator:e=>null===e||["normal","success","danger","warning","emphasis","critical"].includes(e)},thresholds:Object,color:String,trackColor:String,strokeWidth:Number,duration:Number,indeterminate:Boolean,striped:Boolean,stripedFlow:Boolean},setup(e){const t=e,l=g((()=>Number.isFinite(t.percent)?et.safeFixed(t.percent,t.precision):t.maxValue?et.safeFixed(t.value/t.maxValue*100,t.precision):et.safeFixed(t.value,t.precision))),a=g((()=>{if(t.status)return t.status;if(!t.thresholds)return null;const e=Object.entries(t.thresholds).sort(((e,t)=>t[1]-e[1])),l=e.find((([e,l])=>t.value>=l));return l?l[0]:e[e.length-1]?.[0]||null})),i=g((()=>pe("cpt-vubar",{pct:`${Math.min(100,Math.max(0,Number(l.value)||0))}%`,...q("dur",t.duration,"s"),...q("strokeW",t.strokeWidth,"px"),...q("color",t.color),...q("trackColor",t.trackColor)})));return(t,o)=>(A(),h("div",{class:P(["tui-visual-unit-bar",a.value?`is-${a.value}`:""]),style:fe(i.value)},[u("div",ny,[u("div",{class:P(["tui-vubar-value",{"is-indeterminate":e.indeterminate,"is-striped":e.striped,"is-striped-flow":e.stripedFlow}])},[t.$slots.default?(A(),h("div",oy,[X(t.$slots,"default",{value:l.value})])):C("",!0)],2)])],6))}}),iy={class:"tui-vugauge-svg",viewBox:"0 0 100 100"},sy=["d","stroke-width","stroke-linecap","stroke-dasharray","stroke-dashoffset"],ry=["d","opacity","stroke-width","stroke-linecap","stroke-dasharray","stroke-dashoffset"],Ay={key:0,class:"tui-vugauge-info"},No=Object.assign({name:"TuiVisualUnitGauge"},{__name:"index",props:{value:{type:Number,default:0},maxValue:{type:Number,default:0},percent:Number,precision:{type:Number,default:2},status:{type:String,default:null,validator:e=>null===e||["normal","success","danger","warning","emphasis","critical"].includes(e)},thresholds:Object,color:String,trackColor:String,width:Number,strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round",validator:e=>["butt","round","square"].includes(e)},duration:Number},setup(e){const t=e,l=g((()=>Number.isFinite(t.percent)?et.safeFixed(t.percent,t.precision):t.maxValue?et.safeFixed(t.value/t.maxValue*100,t.precision):et.safeFixed(t.value,t.precision))),a=g((()=>{if(t.status)return t.status;if(!t.thresholds)return null;const e=Object.entries(t.thresholds).sort(((e,t)=>t[1]-e[1])),l=e.find((([e,l])=>t.value>=l));return l?l[0]:e[e.length-1]?.[0]||null})),i=g((()=>{const e=50-t.strokeWidth/2,a=2*Math.PI*e,i=.75;return{d:`\n M 50 50\n m 0 ${e}\n a ${e} ${e} 0 1 1 0 -${2*e}\n a ${e} ${e} 0 1 1 0 ${2*e}\n `,trailDasharray:`${a*i}px, ${a}px`,valueDasharray:`${a*i*(Math.min(100,Math.max(0,Number(l.value)||0))/100)}px, ${a}px`,dashoffset:-1*a*(1-i)/2+"px"}})),o=g((()=>pe("cpt-vugauge",{...q("w",t.width,"px"),...q("dur",t.duration,"s"),...q("color",t.color),...q("trackColor",t.trackColor)})));return(t,n)=>(A(),h("div",{class:P(["tui-visual-unit-gauge",a.value?`is-${a.value}`:""]),style:fe(o.value)},[(A(),h("svg",iy,[u("path",{class:"tui-vugauge-track",fill:"none",d:i.value.d,"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-dasharray":i.value.trailDasharray,"stroke-dashoffset":i.value.dashoffset},null,8,sy),u("path",{class:"tui-vugauge-value",fill:"none",d:i.value.d,opacity:l.value?1:0,"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-dasharray":i.value.valueDasharray,"stroke-dashoffset":i.value.dashoffset},null,8,ry)])),t.$slots.default?(A(),h("div",Ay,[X(t.$slots,"default",{value:l.value})])):C("",!0)],6))}}),uy={class:"tui-vuring-svg",viewBox:"0 0 100 100"},cy=["d","stroke-width","stroke-linecap","stroke-dasharray","stroke-dashoffset"],dy=["d","opacity","stroke-width","stroke-linecap","stroke-dasharray","stroke-dashoffset"],fy={key:0,class:"tui-vuring-info"},Io=Object.assign({name:"TuiVisualUnitRing"},{__name:"index",props:{value:{type:Number,default:0},maxValue:{type:Number,default:0},percent:Number,precision:{type:Number,default:2},status:{type:String,default:null,validator:e=>null===e||["normal","success","danger","warning","emphasis","critical"].includes(e)},thresholds:Object,color:String,trackColor:String,width:Number,strokeWidth:{type:Number,default:6},strokeLinecap:{type:String,default:"round",validator:e=>["butt","round","square"].includes(e)},duration:Number},setup(e){const t=e,l=g((()=>Number.isFinite(t.percent)?et.safeFixed(t.percent,t.precision):t.maxValue?et.safeFixed(t.value/t.maxValue*100,t.precision):et.safeFixed(t.value,t.precision))),a=g((()=>{if(t.status)return t.status;if(!t.thresholds)return null;const e=Object.entries(t.thresholds).sort(((e,t)=>t[1]-e[1])),l=e.find((([e,l])=>t.value>=l));return l?l[0]:e[e.length-1]?.[0]||null})),i=g((()=>{const e=50-t.strokeWidth/2,a=2*Math.PI*e;return{d:`\n M 50 50\n m 0 -${e}\n a ${e} ${e} 0 1 1 0 ${2*e}\n a ${e} ${e} 0 1 1 0 -${2*e}\n `,trailDasharray:`${a}px, ${a}px`,valueDasharray:`${a*(Math.min(100,Math.max(0,Number(l.value)||0))/100)}px, ${a}px`,dashoffset:"0px"}})),o=g((()=>pe("cpt-vuring",{...q("w",t.width,"px"),...q("dur",t.duration,"s"),...q("color",t.color),...q("trackColor",t.trackColor)})));return(t,n)=>(A(),h("div",{class:P(["tui-visual-unit-ring",a.value?`is-${a.value}`:""]),style:fe(o.value)},[(A(),h("svg",uy,[u("path",{class:"tui-vuring-track",fill:"none",d:i.value.d,"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-dasharray":i.value.trailDasharray,"stroke-dashoffset":i.value.dashoffset},null,8,cy),u("path",{class:"tui-vuring-value",fill:"none",d:i.value.d,opacity:l.value?1:0,"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-dasharray":i.value.valueDasharray,"stroke-dashoffset":i.value.dashoffset},null,8,dy)])),t.$slots.default?(A(),h("div",fy,[X(t.$slots,"default",{value:l.value})])):C("",!0)],6))}}),py=["aria-valuenow"],gy={key:0,class:"tui-pgs-pre"},hy={key:1,class:"tui-pgs-icon"},vy={key:3,class:"tui-pgs-text"},my={key:1},yy={class:"tui-pgs-suf"},by={key:0},Vy={key:0,class:"tui-pgs-text"},wy={key:1},Cy={class:"tui-pgs-info"},$y={key:0,class:"tui-pgs-icon"},ky={key:1,class:"tui-pgs-text"},Sy={key:1},qy={key:2,class:"tui-pgs-label"},Ty={class:"tui-pgs-info"},By={key:0,class:"tui-pgs-icon"},xy={key:1,class:"tui-pgs-text"},Py={key:1},Ry={key:2,class:"tui-pgs-label"},zy=Object.assign({name:"TuiProgress"},{__name:"index",props:{tagConfig:Object,tipConfig:Object,delay:Number,index:Number,strokeWidth:Number,duration:Number,width:Number,format:Function,indeterminate:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},stripedFlow:{type:Boolean,default:!1},label:String,labelNewline:Boolean,labelSize:Number,labelWidth:Number,labelPosition:{type:String,default:"default",validator:e=>["default","newline","inside"].includes(e)},displayValue:{type:String,default:"auto",validator:e=>["auto","all"].includes(e)},icon:String,iconSize:Number,iconColor:{type:String,default:null,validator:e=>CSS.supports("color",e)},value:{type:Number,default:0,validator:e=>e>=0},maxValue:{type:Number,default:0,validator:e=>e>=0},unit:String,precision:{type:Number,default:2,validator:e=>Number.isInteger(e)&&e>=0&&e<=100},valueSize:Number,showValue:{type:Boolean,default:!0},valuePosition:{type:String,default:"default",validator:e=>["default","newline","inside"].includes(e)},type:{type:String,default:"bar",validator:e=>["bar","circle","gauge"].includes(e)},status:{type:String,default:null,validator:e=>["normal","success","danger","warning","emphasis","critical"].includes(e)},showStatusIcon:{type:Boolean,default:!0},strokeLinecap:{type:String,default:"round",validator:e=>["butt","round","square"].includes(e)},thresholds:{type:Object,default:null,validator(e){if(!e||"object"!=typeof e)return!1;const t=["normal","success","danger","warning","emphasis","critical"];return!!Object.keys(e).some((e=>t.includes(e)))&&Object.values(e).every((e=>"number"==typeof e&&!isNaN(e)&&e>=0))}},color:{type:String,default:null,validator:e=>CSS.supports("color",e)}},setup(e){const t=e,l=xe("progress"),a=S(!1),i=yt(),o=g((()=>a.value?t.maxValue?et.safeFixed(t.value/t.maxValue*100,t.precision):et.safeFixed(t.value,t.precision):0)),n=g((()=>{if(t.status)return t.status;if(t.thresholds){const e=Object.entries(t.thresholds).sort(((e,t)=>t[1]-e[1])),l=e.find((([e,l])=>t.value>=l));return l?l[0]:e[e.length-1]?.[0]||"normal"}})),s=S(null),r=g((()=>[pe("cpt-pgs",{...q("dur",t.duration,"s"),...q("strokeW",t.strokeWidth,"px"),...q("labw",t.labelWidth,"px"),...q("labFs",t.labelSize,"px"),...q("valFs",t.valueSize,"px"),...q("isize",t.iconSize,"px"),...q("width",t.width,"px"),...q("mcolor",t.color),...q("icolor",t.iconColor)})])),d=g((()=>{switch(t.status){case"success":return"tui-icon ti-check-circle";case"warning":return"tui-icon ti-alert-circle";case"danger":return"tui-icon ti-alert-triangle"}})),c=g((()=>!!(t.index||t.icon||i.icon||t.label||i.label||(t.showValue||i.default)&&"newline"===t.valuePosition))),p=g((()=>t.showValue?t.format?t.format(t):t.unit&&et.isNEG0(t.maxValue)&&"all"==t.displayValue?`${et.safeFixed(t.value,t.precision)}${t.unit} ${o.value}%`:t.unit&&et.isNEG0(t.maxValue)?`${et.safeFixed(t.value,t.precision)}${t.unit}`:`${o.value}%`:""));return ye((()=>{he.s(l+"_pgsinit",(()=>{a.value=!0}),t.delay||1e3)})),(l,a)=>{const i=ke("TuiTag"),g=ke("TuiTextTip");return A(),h("div",{class:P(["tui-progress",[`is-${e.type}`,n.value?`is-${n.value}`:"",{"is-without-text":!e.showValue,"is-text-inside":"inside"==e.valuePosition,"is-label-newline":e.labelNewline,"has-label":e.label}]]),role:"progressbar","aria-valuenow":o.value,"aria-valuemin":"0","aria-valuemax":"100",style:fe(r.value)},["bar"===e.type?(A(),h(ie,{key:0},[c.value?(A(),h("div",gy,[e.index?(A(),Z(i,Ne({key:0},e.tagConfig,{size:"small"}),{default:W((()=>[De(F(e.index),1)])),_:1},16)):C("",!0),e.icon||l.$slots.icon?(A(),h("div",hy,[X(l.$slots,"icon",{},(()=>[u("i",{class:P(e.icon)},null,2)]))])):C("",!0),e.label||l.$slots.label?(A(),h("div",{key:2,class:"tui-pgs-label",ref_key:"pgsLabelRef",ref:s},[ce(g,pt(Vt(t.tipConfig)),{default:W((()=>[X(l.$slots,"label",{},(()=>[De(F(e.label),1)]))])),_:3},16)],512)):C("",!0),(e.showValue||l.$slots.default)&&"newline"==e.valuePosition?(A(),h("div",vy,[X(l.$slots,"default",{value:o.value},(()=>[e.status&&e.showStatusIcon?(A(),h("i",{key:0,class:P(d.value)},null,2)):(A(),h("span",my,F(p.value),1))]))])):C("",!0)])):C("",!0),u("div",yy,[ce(zo,{class:"tui-pgs-bar",value:Number(o.value),precision:e.precision,strokeWidth:e.strokeWidth,duration:e.duration,indeterminate:e.indeterminate,striped:e.striped,stripedFlow:e.stripedFlow},{default:W((()=>[e.showValue&&"inside"==e.valuePosition?(A(),h("span",by,F(p.value),1)):C("",!0)])),_:1},8,["value","precision","strokeWidth","duration","indeterminate","striped","stripedFlow"]),(e.showValue||l.$slots.default)&&"default"==e.valuePosition?(A(),h("div",Vy,[X(l.$slots,"default",{value:o.value},(()=>[e.status&&e.showStatusIcon?(A(),h("i",{key:0,class:P(d.value)},null,2)):(A(),h("span",wy,F(p.value),1))]))])):C("",!0)])],64)):"circle"===e.type?(A(),Z(Io,{key:1,class:"tui-pgs-visual",value:Number(o.value),precision:e.precision,width:e.width,strokeWidth:e.strokeWidth||6,strokeLinecap:e.strokeLinecap,duration:e.duration},{default:W((()=>[u("div",Cy,[e.icon||l.$slots.icon?(A(),h("div",$y,[X(l.$slots,"icon",{},(()=>[u("i",{class:P(e.icon)},null,2)]))])):C("",!0),e.showValue||l.$slots.default?(A(),h("div",ky,[X(l.$slots,"default",{value:o.value},(()=>[e.status&&e.showStatusIcon?(A(),h("i",{key:0,class:P(d.value)},null,2)):(A(),h("span",Sy,F(p.value),1))]))])):C("",!0),e.label||l.$slots.label?(A(),h("div",qy,[X(l.$slots,"label",{},(()=>[u("span",null,F(e.label),1)]))])):C("",!0)])])),_:3},8,["value","precision","width","strokeWidth","strokeLinecap","duration"])):(A(),Z(No,{key:2,class:"tui-pgs-visual",value:Number(o.value),precision:e.precision,width:e.width,strokeWidth:e.strokeWidth||6,strokeLinecap:e.strokeLinecap,duration:e.duration},{default:W((()=>[u("div",Ty,[e.icon||l.$slots.icon?(A(),h("div",By,[X(l.$slots,"icon",{},(()=>[u("i",{class:P(e.icon)},null,2)]))])):C("",!0),e.showValue||l.$slots.default?(A(),h("div",xy,[X(l.$slots,"default",{value:o.value},(()=>[e.status&&e.showStatusIcon?(A(),h("i",{key:0,class:P(d.value)},null,2)):(A(),h("span",Py,F(p.value),1))]))])):C("",!0),e.label||l.$slots.label?(A(),h("div",Ry,[X(l.$slots,"label",{},(()=>[u("span",null,F(e.label),1)]))])):C("",!0)])])),_:3},8,["value","precision","width","strokeWidth","strokeLinecap","duration"]))],14,py)}}}),Ny={class:"tui-ppg-item"},Iy=Object.assign({name:"TuiProgressPoolGroup"},{__name:"group",props:{gap:Number,labelWidth:Number,items:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["label","value"]);return t||console.warn("TuiProgressPoolGroup Warning! ",l),t}},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},progressPoolConfig:Object,valueSize:{type:Number,default:16},queueInit:{type:Boolean,default:!0}},setup(e){const t=e,l=S([]),a=S(0),i=S([]),o=e=>!!t.queueInit&&e!==a.value,n=e=>{i.value.push(e),a.value<t.items.length-1&&a.value++},s=g((()=>{let e;return e="h"==t.direction?{barDirection:"v",labelPostion:"bottom",valueDirection:"v"}:{barDirection:"h",labelPostion:"left",valueDirection:"h"},{valueSize:t.valueSize,...t.progressPoolConfig,...e}})),r=g((()=>pe("cpt-ppg",{...q("gap",t.gap,"px"),...q("labelW",t.labelWidth,{append:"px",when:t.labelWidth&&"v"==t.direction})})));return ye((()=>{})),Dt((()=>{})),(t,a)=>{const i=ke("TuiProgressPool");return A(),h("div",{class:P(["tui-progress-pool-group",`is-dir-${e.direction}`,{"has-label":!1}]),style:fe(r.value)},[(A(!0),h(ie,null,ze(e.items,((e,t)=>(A(),h("div",Ny,[ce(i,Ne({ref_for:!0,ref_key:"childRefs",ref:l},{ref_for:!0},s.value,{initHold:o(t),onInited:n,label:e.label,value:e.value}),null,16,["initHold","label","value"])])))),256))],6)}}}),My={key:0,class:"tui-pp-label"},Dy={class:"tui-pp-label-text"},Oy={key:0,class:"tui-pp-sub"},_y={class:"tui-pp-val"},Ey={class:"tui-pp-unit"},Ly=["width","height"],Wy=["id","x1","y1","x2","y2"],jy=["id","gradientUnits","cx","cy","r","fx","fy"],Gy=["id"],Fy=["x","y","width","height","rx","ry"],Hy=["cx","cy","r"],Uy=["x","y","rx","ry","stroke-width","stroke","width","height"],Qy=["cx","cy","r","stroke-width","stroke"],Yy=["clip-path"],Ky=["stroke-width","stroke-dasharray","stroke","points"],Xy={key:1},Zy=["transform"],Jy=["d","fill"],eb=["transform"],tb=["d","fill"],lb={class:"tui-pp-val"},ab={class:"tui-pp-unit"},nb={key:1,class:"tui-pp-inner-label"},ob={key:1,class:"tui-pp-subval"},ib={class:"tui-pp-val"},sb={class:"tui-pp-unit"},rb=Object.assign({name:"TuiProgressPool"},{__name:"index",props:{index:Number,width:Number,height:Number,valueSize:Number,label:{type:String,required:!0},value:{type:Number,default:0,validator:e=>e>=0},maxValue:{type:Number,default:null,validator:e=>e>=0},precision:{type:Number,default:0},shape:{type:String,default:"square",validator:e=>["square","circle"].includes(e)},colors:{type:[String,Array],default:null,validator:e=>"string"==Qe(e)?CSS.supports("color",e):"array"==Qe(e)&&2==e.length&&(e.length>0&&e.every((e=>CSS.supports("color",e))))},borderWidth:{type:Number,default:3},borderGap:{type:Number,default:3},borderRadius:{type:Number,default:5},fillContent:{type:String,default:"bar",validator:e=>["bar","wave"].includes(e)},gradientType:{type:String,default:"linear",validator:e=>["linear","radial"].includes(e)},gradientAni:{type:Boolean,default:!1},gradientDuration:Number,waveGap:{type:Number,default:10},waveHeight:{type:Number,default:20},waveSegments:{type:Number,default:6},waveDuration:Number,barDash:{type:Array,default:()=>[5,2]},barDirection:{type:String,default:"h",validator:e=>["h","v"].includes(e)},initHold:{type:Boolean,default:!1},aniDelay:{type:Number,default:2e3},duration:Number,valueDirection:{type:String,default:"h",validator:e=>["h","v"].includes(e)},unit:{type:String,default:""},labelPostion:{type:String,default:"top",validator:e=>["top","left","bottom","right","inner"].includes(e)},displayValue:{type:String,default:"auto",validator:e=>["none","auto","all","allReverse"].includes(e)},indeptSubValue:{type:Boolean,default:!1},status:{type:String,default:null,validator:e=>["normal","success","danger","warning","emphasis","critical"].includes(e)},thresholds:{type:Object,default:null,validator(e){if(!e||"object"!=typeof e)return!1;const t=["normal","success","danger","warning","emphasis","critical"];return!!Object.keys(e).some((e=>t.includes(e)))&&Object.values(e).every((e=>"number"==typeof e&&!isNaN(e)&&e>=0))}},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["inited"],setup(e,{expose:t,emit:l}){const{$optResizeCounter:a,initResizeBy:i}=Se("$global",null),o=i(),n=e,s=l,r=xe("psgPool"),d=S(!1),c=S(!1),p=S(!1),v=S(null),m=S(null),y=S(null),b=Pe({width:n.width||200,height:n.height||100,parWidth:0,parHeight:0,dustSettled:!1}),V=S(0),w=S(0),x=g((()=>n.maxValue&&n.maxValue>0?n.value/n.maxValue*100:n.value)),k=S("normal"),B=g((()=>{if(b.dustSettled){if(n.status)return n.status;if(n.thresholds){const e=Object.entries(n.thresholds).sort(((e,t)=>t[1]-e[1])),t=e.find((([e,t])=>V.value>=t)),l=t?t[0]:e[e.length-1]?.[0]||"normal";return k.value=l,l}}})),T=g((()=>{let e,t,l,a,i,o;if("none"==n.displayValue)return{mainVal:e,mainUnit:t,subVal:l,subUnit:a};if(n.precision){const e=parseFloat(Number(w.value).toFixed(n.precision)),t=parseFloat(Number(V.value).toFixed(n.precision));o=b.dustSettled?e:et.padZero(e,n.precision),i=b.dustSettled?t:et.padZero(t,n.precision)}else o=Math.round(w.value),i=Math.round(V.value);return n.maxValue&&n.unit&&"auto"!=n.displayValue?"all"==n.displayValue?(e=i,t=n.unit,l=o,a="%"):"allReverse"==n.displayValue&&(l=i,a=n.unit,e=o,t="%"):n.maxValue&&n.unit?(e=i,t=n.unit):(e=o,t="%"),{mainVal:e,mainUnit:t,subVal:l,subUnit:a}})),$=g((()=>"inner"===n.labelPostion)),z=g((()=>!!n.label&&!$.value)),R=g((()=>!!n.label&&$.value)),N=g((()=>!!T.value.mainUnit)),M=g((()=>"v"===n.barDirection?"v":"h")),O=g((()=>"h"===n.barDirection?b.height-2*n.borderWidth-2*n.borderGap:b.width-2*n.borderWidth-2*n.borderGap)),D=g((()=>b.width-2*n.borderWidth-2*n.borderGap)),I=g((()=>b.height-2*n.borderWidth-2*n.borderGap)),_=g((()=>"h"===n.barDirection?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"0%",y1:"100%",x2:"0%",y2:"0%"})),E=g((()=>"bar"==n.fillContent?{r:Math.max(b.width,b.height)/1.5,cx:b.width/2,cy:b.height/2,fx:b.width/2,fy:b.height/2,un:"userSpaceOnUse"}:{r:"100%",cx:"50%",cy:"50%",fx:"50%",fy:"50%",un:"objectBoundingBox"})),L=g((()=>{let e=w.value/100;if(!e)return"";if("h"===n.barDirection){const t=n.borderWidth+n.borderGap,l=b.height/2;return`${t}, ${l} ${t+(b.width-2*n.borderWidth-2*n.borderGap)*e}, ${l+.001}`}{const t=b.width/2,l=b.height-n.borderWidth-n.borderGap;return`${t}, ${l} ${t+.001}, ${l-(b.height-2*n.borderWidth-2*n.borderGap)*e}`}}));let j=S(0),G=S(0);function H(e){y.value||(y.value=0==e?1:e,j.value=V.value,G.value=w.value);const t=e-y.value,l=n.duration||2e3;if(t<l){const e=(n.maxValue?n.value:x.value)-j.value,a=x.value-G.value;V.value=j.value+t/l*e,w.value=G.value+t/l*a,m.value=ft.s(`${r}_ani`,H)}else V.value=n.maxValue?n.value:x.value,w.value=x.value,b.dustSettled=!0,p.value||(p.value=!0,s("inited",n.index))}function Q(){b.dustSettled=!1,ft.c(`${r}_ani`),y.value=null,m.value=ft.s(`${r}_ani`,H)}K((()=>[n.value,n.initHold]),(()=>{n.initHold||Q()})),K((()=>a.value),((e,t)=>{"root"==o.value(n.resizeObserver)&&e>t&&Y({width:null,height:null})}));const Y=({width:e,height:t})=>{n.width&&n.height&&c.value||(b.parWidth=v.value?.clientWidth||100,b.parHeight=v.value?.clientHeight||50,n.width||(b.width=b.parWidth),n.height||(b.height=b.parHeight),c.value||(c.value=!0))},X=g((()=>"string"==Qe(n.colors)?{A:n.colors,B:n.colors}:"array"==Qe(n.colors)?{A:n.colors[0],B:n.colors[1]}:{})),U=g((()=>{const e=X.value;return pe("cpt-pp",{...q("grad_A",e.A),...q("grad_B",e.B),...q("valFs",n.valueSize,"px"),...q("wdur",n.waveDuration,"ms"),...q("gdur",n.gradientDuration,"ms"),adelay:n.aniDelay+"ms"})})),J=g((()=>Math.min(Math.max(w.value,0),100)/100*b.height+5)),ee=g((()=>{const e=5*b.width,t=n.waveHeight,l=e/n.waveSegments;let a=`M 0 ${t}`;for(let e=0;e<n.waveSegments;e++){const i=e*l;a+=` C ${i+.3*l} ${t}, ${i+.4*l} 0, ${i+.5*l} 0`,a+=` C ${i+.6*l} 0, ${i+.7*l} ${t}, ${i+l} ${t}`}return a+=` L ${e} ${b.height+5} L 0 ${b.height+5} Z`,a}));return ye((()=>{d.value=!0,n.value&&!n.initHold&&he.s(r+"_ti",(()=>{Q()}),n.aniDelay),n.gradientAni&&n.thresholds&&console.warn("TuiProgressPool Warning! For user experience considerations, 'gradientAni' will be disabled when 'thresholds' are activated.")})),Dt((()=>{ft.c(`${r}_ani`)})),t({inited:c.value&&p.value}),(t,l)=>{const a=ke("TuiTextTip"),i=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["tui-progress-pool",`is-label-${e.labelPostion}`,`is-${B.value||e.status||k.value}`,{"has-label":e.label}]),style:fe(U.value)},[z.value?(A(),h("div",My,[u("div",Dy,[ce(a,null,{default:W((()=>[De(F(e.label),1)])),_:1})]),T.value.subUnit&&!e.indeptSubValue?(A(),h("div",Oy,[u("span",_y,F(T.value.subVal),1),u("span",Ey,F(T.value.subUnit),1)])):C("",!0)])):C("",!0),we((A(),h("div",{class:"tui-pp-svg-wrap",ref_key:"svgWrapRef",ref:v},[b.width&&b.height&&c.value?(A(),h("svg",{key:0,class:P(["tui-pp-svg",e.gradientAni&&!e.thresholds?"is-ani":"is-static"]),width:b.width,height:b.height},[u("defs",null,["linear"==e.gradientType?(A(),h("linearGradient",{key:0,id:`grad_${f(r)}`,x1:_.value.x1,y1:_.value.y1,x2:_.value.x2,y2:_.value.y2},[...l[0]||(l[0]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,Wy)):(A(),h("radialGradient",{key:1,id:`grad_${f(r)}`,gradientUnits:E.value.un,cx:E.value.cx,cy:E.value.cy,r:E.value.r,fx:E.value.fx,fy:E.value.fy},[...l[1]||(l[1]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,jy)),u("clipPath",{id:f(r)+"clipPathId"},["square"===e.shape?(A(),h("rect",{key:0,x:e.borderWidth+e.borderGap,y:e.borderWidth+e.borderGap,width:D.value,height:I.value,rx:e.borderRadius/2,ry:e.borderRadius/2},null,8,Fy)):"circle"===e.shape?(A(),h("circle",{key:1,cx:b.width/2,cy:b.height/2,r:Math.min(D.value,I.value)/2},null,8,Hy)):C("",!0)],8,Gy)]),"square"===e.shape?(A(),h("rect",{key:0,x:e.borderWidth/2,y:e.borderWidth/2,rx:e.borderRadius,ry:e.borderRadius,fill:"transparent","stroke-width":e.borderWidth,stroke:`url(#grad_${f(r)})`,width:b.width-e.borderWidth,height:b.height-e.borderWidth},null,8,Uy)):"circle"===e.shape?(A(),h("circle",{key:1,cx:b.width/2,cy:b.height/2,r:Math.min(b.width,b.height)/2-e.borderWidth/2,fill:"transparent","stroke-width":e.borderWidth,stroke:`url(#grad_${f(r)})`},null,8,Qy)):C("",!0),u("g",{"clip-path":`url(#${f(r)+"clipPathId"})`},["bar"==e.fillContent?(A(),h("polyline",{key:0,"stroke-width":O.value,"stroke-dasharray":e.barDash.join(","),stroke:`url(#grad_${f(r)})`,points:L.value},null,8,Ky)):(A(),h("g",Xy,[u("g",{transform:`translate(0, ${b.height-J.value-e.waveHeight/2})`},[u("path",{d:ee.value,fill:`url(#grad_${f(r)})`,opacity:"0.7",class:"tui-pp-wave is-a"},null,8,Jy)],8,Zy),u("g",{transform:`translate(0, ${b.height-J.value-e.waveHeight/2+e.waveGap})`},[u("path",{d:ee.value,fill:`url(#grad_${f(r)})`,opacity:"0.7",class:"tui-pp-wave is-b"},null,8,tb)],8,eb)]))],8,Yy)],10,Ly)):C("",!0),N.value||R.value?(A(),h("div",{key:1,class:P(["tui-pp-value",{"is-label-inner":R.value,"is-inner-v":R.value&&"v"===M.value,"is-inner-h":R.value&&"h"===M.value}])},[N.value?(A(),h("div",{key:0,class:P(["tui-pp-main",`is-val-${e.valueDirection}`])},[u("span",lb,F(T.value.mainVal),1),u("span",ab,F(T.value.mainUnit),1)],2)):C("",!0),R.value?(A(),h("div",nb,[ce(a,null,{default:W((()=>[De(F(e.label),1)])),_:1})])):C("",!0)],2)):C("",!0)])),[[i,{callback:Y,uid:f(r),disabled:"self"!=f(o)(e.resizeObserver)&&c.value}]]),T.value.subUnit&&e.indeptSubValue?(A(),h("div",ob,[u("span",ib,F(T.value.subVal),1),u("span",sb,F(T.value.subUnit),1)])):C("",!0)],6),[[Oe,d.value]])])),_:1})}}}),Ab={key:0,class:"tui-sp-stack is-top"},ub=["onClick"],cb={key:1,class:"tui-sp-progress"},db={class:"tui-sp-anchor"},fb=["title","onClick"],pb={key:3,class:"tui-sp-stack is-bottom"},gb=["onClick"],hb=Object.assign({name:"TuiStickyPanel"},{__name:"index",props:{modelValue:[String,Number],defaultValue:[String,Number],height:{type:[String,Number],default:420},titleMode:{type:String,default:"passed",validator:e=>["passed","split","single"].includes(e)},offsetTop:{type:[String,Number],default:0},titleHeight:{type:[String,Number],default:42},scrollbarGutter:{type:[String,Number],default:4},maxPinned:{type:Number,default:0},showProgress:Boolean,progressPosition:{type:String,default:"top",validator:e=>["top","right","bottom"].includes(e)},anchor:Boolean,anchorOpacity:Number,dockPanelConfig:{type:Object,default:()=>({})},bordered:{type:Boolean,default:!0},className:String},emits:["update:modelValue","change","scroll","titleClick","anchorClick"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=xe("stickyPanel"),n=S(null),s=S(null),r=S(a.defaultValue??null),d=S(!1),c=S([]),p=S([]),v=S(0),m=Pe(new Map),y=`${o}_update`,b=g((()=>void 0!==a.modelValue)),V=g((()=>b.value?a.modelValue:r.value)),w=e=>{if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isFinite(t)?t:0},x=(e,t)=>{if(e?.el&&t?.el&&e.el!==t.el){const l=e.el.compareDocumentPosition(t.el);if(4&l)return-1;if(2&l)return 1}return(e?.index??0)-(t?.index??0)},k=g((()=>Array.from(m.values()).sort(x))),B=g((()=>a.maxPinned>0?a.maxPinned:1/0)),T=g((()=>{if("single"===a.titleMode)return[];const e=k.value.filter((e=>c.value.includes(`${e.name}`)));return a.maxPinned>0?e.slice(-a.maxPinned):e})),$=g((()=>"split"!==a.titleMode?[]:k.value.filter((e=>p.value.includes(`${e.name}`))))),z=g((()=>$.value.length*w(a.titleHeight))),R=g((()=>pe("cpt-sp",{...q("h",a.height,"smart"),...q("ofsT",a.offsetTop,"smart"),...q("titleH",a.titleHeight,"smart"),...q("scrollbarGutter",a.scrollbarGutter,"smart"),stackBottomH:`${z.value}px`,progress:v.value}))),N=g((()=>({target:n,mode:"partial",placement:"right",partialSize:22,...null!=a.anchorOpacity&&{partialOpacity:a.anchorOpacity},zIndex:90,defaultState:"collapsed",expandTrigger:"hover",draggable:!1,...a.dockPanelConfig}))),M=({section:e,mirrored:t=!1})=>e?.titleSlot?e.titleSlot({active:`${V.value}`==`${e.name}`,mirrored:t,itemName:e.name}):e?.title,O=e=>m.get(`${e}`),D=(e,t)=>{`${V.value}`!=`${e}`&&(b.value||(r.value=e),d.value=!0,i("update:modelValue",e),i("change",e,t),de((()=>{d.value=!1})))},I=e=>k.value.findIndex((t=>`${t.name}`==`${e}`)),_=()=>{ft.s(y,G)},E=(e,t="smooth")=>{const l=O(e),i=s.value;if(!l?.el||!i)return;const o=Math.max(I(e),0),n=Math.min(o,B.value)*w(a.titleHeight),A="single"!==a.titleMode?w(a.offsetTop)+n:w(a.offsetTop);i.scrollTo({top:Math.max(l.el.offsetTop-A,0),behavior:t}),D(e,l)},L=e=>{i("scroll",((e=null)=>{const t=s.value;if(!t)return{event:e,scrollTop:0,scrollHeight:0,clientHeight:0,maxScroll:0,progress:0};const l=Math.max(t.scrollHeight-t.clientHeight,0);return{event:e,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,maxScroll:l,progress:l?t.scrollTop/l:0}})(e)),_()},j=(e,t="title")=>{const l=O(e);i("titleClick",e,l,t),E(e)},G=()=>{const e=s.value;if(!e||0===k.value.length)return;const t=Math.max(e.scrollHeight-e.clientHeight,0);if(v.value=t?e.scrollTop/t:0,"single"===a.titleMode){c.value=[],p.value=[];const t=e.scrollTop+w(a.offsetTop)+w(a.titleHeight)+1;let l=k.value[0];return k.value.forEach((e=>{e.el&&e.el.offsetTop<=t&&(l=e)})),void(l&&D(l.name,l))}const l=[],i=[],o=w(a.offsetTop),n=w(a.titleHeight);k.value.forEach((t=>{if(!t.el)return;const a=o+Math.min(l.length,B.value)*n;t.el.offsetTop-e.scrollTop<=a+1&&e.scrollTop>0&&l.push(`${t.name}`)})),"split"===a.titleMode&&[...k.value].reverse().forEach((t=>{if(!t.el||l.includes(`${t.name}`))return;t.el.offsetTop-e.scrollTop>e.clientHeight-(i.length+1)*n+1&&i.unshift(`${t.name}`)})),c.value=l,p.value=i;const A=l[l.length-1],r=A?m.get(A):k.value[0];r&&D(r.name,r)};return K((()=>a.modelValue),(e=>{null==e||!s.value||d.value||E(e,"smooth")})),K(k,(e=>{null!=V.value||0===e.length||de((()=>D(e[0].name,e[0])))}),{flush:"post"}),K((()=>[a.titleMode,a.offsetTop,a.titleHeight,a.maxPinned]),(()=>{de(_)})),At((()=>{ft.c(y)})),rt("TuiStickyPanel",{props:a,activeValueCPT:V,registerSection:e=>{const t=`${e.name}`,l=m.get(t);m.set(`${e.name}`,{...e,index:l?.index??m.size}),de(_)},unregisterSection:e=>{m.delete(`${e}`),c.value=c.value.filter((t=>t!==`${e}`)),p.value=p.value.filter((t=>t!==`${e}`))},scrollTo:E,handleTitleClick:j,getSectionIndex:I,getTitleTop:e=>"single"===a.titleMode?Wl(a.offsetTop):"",isMirrored:e=>c.value.includes(`${e}`),isBottomMirrored:e=>p.value.includes(`${e}`),requestUpdateMirrors:_}),t({scrollTo:E,getActive:()=>V.value}),(t,l)=>{const a=ke("TuiDockPanel"),r=Fe("tui-resize");return we((A(),h("div",{ref_key:"rootRef",ref:n,class:P(["tui-sticky-panel",`is-title-${e.titleMode}`,`is-progress-${e.progressPosition}`,{"is-bordered":e.bordered,"has-progress":e.showProgress,"has-progress-right":e.showProgress&&"right"===e.progressPosition},e.className]),style:fe(R.value)},["single"!==e.titleMode&&T.value.length?(A(),h("div",Ab,[(A(!0),h(ie,null,ze(T.value,(e=>(A(),h("button",{key:e.name,class:P(["tui-sp-stack-title",{"is-active":`${V.value}`==`${e.name}`}]),type:"button",onClick:t=>j(e.name,"top")},[ce(M,{section:e,mirrored:""},null,8,["section"])],10,ub)))),128))])):C("",!0),e.showProgress?(A(),h("div",cb)):C("",!0),u("div",{ref_key:"wrapRef",ref:s,class:"tui-sp-body",onScroll:L},[X(t.$slots,"default")],544),e.anchor?(A(),Z(a,Ne({key:2},N.value,{"class-name":"tui-sp-anchor-dock"}),{default:W((()=>[u("div",db,[(A(!0),h(ie,null,ze(k.value,(e=>(A(),h("button",{key:e.name,class:P(["tui-sp-anchor-item",{"is-active":`${V.value}`==`${e.name}`}]),type:"button",title:e.title,onClick:t=>(e=>{const t=O(e);i("anchorClick",e,t),E(e)})(e.name)},[l[0]||(l[0]=u("i",null,null,-1)),u("span",null,F(e.title),1)],10,fb)))),128))])])),_:1},16)):C("",!0),"split"===e.titleMode&&$.value.length?(A(),h("div",pb,[(A(!0),h(ie,null,ze($.value,(e=>(A(),h("button",{key:e.name,class:"tui-sp-stack-title",type:"button",onClick:t=>j(e.name,"bottom")},[ce(M,{section:e,mirrored:""},null,8,["section"])],8,gb)))),128))])):C("",!0)],6)),[[r,{callback:_,uid:f(o)}]])}}}),vb={class:"tui-spi-content"},mb=Object.assign({name:"TuiStickyPanelItem"},{__name:"item",props:{name:[String,Number],title:String,className:String},setup(e){const t=e,l=Se("TuiStickyPanel",null),a=xe("stickyPanelItem"),i=S(null),o=S(null),n=yt(),s=g((()=>t.name??t.title)),r=g((()=>`${l?.activeValueCPT.value}`==`${s.value}`)),d=g((()=>l?.isMirrored(s.value))),c=g((()=>l?.isBottomMirrored(s.value))),p=g((()=>l?.getSectionIndex(s.value)??0)),v=g((()=>({top:l?.getTitleTop(s.value),zIndex:20+p.value}))),m=()=>{l?.handleTitleClick(s.value,"original")},y=(e=t.title)=>{l?.registerSection({name:s.value,title:e||o.value?.innerText||s.value,titleSlot:n.title,el:i.value,titleEl:o.value}),l?.requestUpdateMirrors()};return ye((()=>{y()})),K((()=>t.title),(e=>{y(e)})),At((()=>{l?.unregisterSection(s.value)})),(t,n)=>{const p=Fe("tui-resize");return we((A(),h("section",{ref_key:"sectionRef",ref:i,class:P(["tui-sticky-panel-item",`is-title-${f(l)?.props.titleMode}`,{"is-active":r.value,"is-mirrored":d.value,"is-bottom-mirrored":c.value},e.className])},[u("button",{ref_key:"titleRef",ref:o,class:"tui-spi-title",type:"button",style:fe(v.value),onClick:m},[X(t.$slots,"title",{active:r.value,mirrored:d.value||c.value,itemName:s.value},(()=>[De(F(e.title),1)]))],4),u("div",vb,[X(t.$slots,"default",{active:r.value,itemName:s.value})])],2)),[[p,{callback:f(l)?.requestUpdateMirrors,uid:f(a)}]])}}}),yb=Object.assign({name:"TuiTimeline"},{__name:"index",props:{maxWidth:Number,maxLine:Number,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},timestampPlacement:{type:String,default:"bottom",validator:e=>["top","bottom"].includes(e)},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=It.fieldValid(e,["timestamp","content"]);return t||console.warn("TuiTimeline Warning! ",l),t}},lines:{type:Number,default:2},tipConfig:Object},setup(e){const t=e,l=g((()=>pe("cpt-tl",{...q("maxW",t.maxWidth,"px"),...q("maxLine",t.maxLine)})));return rt("TuiTimeline",{timestampPlc:g((()=>t.timestampPlacement)),direction:g((()=>t.direction)),tipConfig:g((()=>t.tipConfig)),lines:g((()=>t.lines))}),(t,a)=>{const i=ke("TuiTimelineItem");return A(),h("div",{class:P(["",["tui-timeline",`is-${e.direction}`]]),style:fe(l.value)},[e.options&&e.options.length?(A(!0),h(ie,{key:0},ze(e.options,((e,t)=>(A(),Z(i,Ne({key:t},{ref_for:!0},e),{default:W((()=>[De(F(e.content),1)])),_:2},1040)))),128)):X(t.$slots,"default",{key:1})],6)}}}),bb={class:"tui-tli-node-inner"},Vb={key:1,class:"tui-tli-node-dot"},wb={key:0,class:"tui-tli-time"},Cb={key:1,class:"tui-tli-time"},$b=Object.assign({name:"TuiTimelineItem"},{__name:"item",props:{timestamp:String,hideTimestamp:Boolean,color:String,icon:String,hollow:Boolean,type:{type:String,default:null,validator:e=>["primary","success","warning","danger","info"].includes(e)},size:{type:String,default:"default",validator:e=>["default","large","small"].includes(e)}},setup(e){const t=e,{tipConfig:l,lines:a,timestampPlc:i,direction:o}=Se("TuiTimeline",null),n=g((()=>({...l.value,lines:a.value}))),s=g((()=>pe("cpt-tli",{...q("dotFc",t.color)}))),r=S(!1);return ye((()=>{r.value=!0})),(t,l)=>{const a=ke("TuiTextTip");return r.value?(A(),h("div",{key:0,class:P(["tui-timeline-item",`is-${f(o)}`]),style:fe(s.value)},[u("div",{class:P(["tui-tli-node",`is-size-${e.size}`,e.type&&`is-${e.type}`,(e.icon||t.$slots.icon)&&"has-icon",{"is-hollow":e.hollow}])},[u("div",bb,[X(t.$slots,"dot",{},(()=>[e.icon?(A(),h("i",{key:0,class:P(`tui-tli-node-icon ${e.icon}`)},null,2)):(A(),h("div",Vb))]))])],2),u("div",{class:P(["tui-tli-content",`is-time-${f(i)}`])},[e.hideTimestamp||"top"!==f(i)?C("",!0):(A(),h("div",wb,F(e.timestamp),1)),ce(a,Ne({class:"tui-tli-text"},n.value),{default:W((()=>[X(t.$slots,"default")])),_:3},16),e.hideTimestamp||"bottom"!==f(i)?C("",!0):(A(),h("div",Cb,F(e.timestamp),1))],2)],6)):C("",!0)}}}),qt={item:"item",page:"page"},Gl={v:"v",h:"h"},it={initMount:"init:mount",itemsAdd:"items:add",itemsRemove:"items:remove",layoutResize:"layout:resize",configMode:"config:mode",configSeamless:"config:seamless",configVisibleLength:"config:visibleLength",commandForceUpdate:"command:forceUpdate",commandGoTo:"command:goTo"},kn={[it.initMount]:{resetCalc:!0},[it.itemsAdd]:{resetCalc:!1},[it.itemsRemove]:{resetCalc:!1},[it.layoutResize]:{resetCalc:!1},[it.configMode]:{resetCalc:!0},[it.configSeamless]:{resetCalc:!0},[it.configVisibleLength]:{resetCalc:!1},[it.commandForceUpdate]:{resetCalc:!1},[it.commandGoTo]:{resetCalc:!1}},kb=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)?Math.max(1,Math.floor(l)):t},Pt=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,Math.floor(l)):t},Fl=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},Sn=(e,t)=>t?(e%t+t)%t:0,dl=e=>e===qt.page?qt.page:qt.item,Yt=e=>kb(e,1),$l=e=>Pt(e,0),Sb=e=>e===Gl.h?Gl.h:Gl.v,qb=({itemsLen:e,visibleLength:t})=>{const l=$l(e),a=Yt(t);return Math.ceil(l/a)},Tb=({itemsLen:e,visibleLength:t})=>$l(e)<=Yt(t),Mo=({mode:e,seamless:t,visibleLength:l,disabled:a})=>t?dl(e)===qt.page?1:Yt(l):0,Bb=({itemsLen:e=0,visibleLength:t=1,wrapSize:l=0,mode:a=qt.item,seamless:i=!1,disabled:o=null})=>{const n=dl(a),A=$l(e),s=Yt(t),r=Fl(l,0),u=o??Tb({itemsLen:A,visibleLength:s}),d=qb({itemsLen:A,visibleLength:s}),c=r/s;if(u)return{disabled:!0,mode:n,seamless:!!i,itemsLen:A,visibleLength:s,wrapSize:r,itemSize:c,innerSize:r,pageCount:d,pageLen:1,maxRollCalc:0,maxRoll:0,displayTotal:A,initialRollCalc:0};const p=d+(i?2:0),g=n===qt.page?p-1:i?A+s:A-s;return{disabled:!1,mode:n,seamless:!!i,itemsLen:A,visibleLength:s,wrapSize:r,itemSize:c,innerSize:n===qt.page?r*p:c*(A+(i?2*s:0)),pageCount:d,pageLen:p,maxRollCalc:g,maxRoll:n===qt.page?d:g,displayTotal:n===qt.page?d:A,initialRollCalc:Mo({mode:n,seamless:i,visibleLength:s,disabled:!1})}},xb=({orient:e,mode:t,curRollCalc:l,itemSize:a,wrapSize:i})=>{const o=dl(t)===qt.page?Fl(i,0):Fl(a,0),n=Fl(l,0)*o;return e===Gl.h?`translateX(-${n}px)`:`translateY(-${n}px)`},Pb=({curRollCalc:e,maxRollCalc:t,seamless:l,auto:a=!1})=>{const i=Pt(e,0),o=Pt(t,0);return i<o?i+1:i===o&&!l&&a?0:i},Rb=({curRollCalc:e,maxRollCalc:t,seamless:l,auto:a=!1})=>{const i=Pt(e,0),o=Pt(t,0);return i>0?i-1:!l&&0===i&&a?o:i},Do=({index:e,mode:t,seamless:l,visibleLength:a,maxRollCalc:i,displayTotal:o=null,asDisplayIndex:n=!1})=>{const A=dl(t),s=Yt(a),r=Pt(i,0);if("string"==typeof e)return"frist"===e||"first"===e||"start"===e?Mo({mode:A,seamless:l,visibleLength:s,disabled:!1}):"last"===e||"end"===e?l?A===qt.page?Math.max(1,r-1):Math.max(s,r-s):r:null;if("number"!=typeof e||!Number.isFinite(e))return null;const u=Math.floor(e),d=n&&null!==o?Math.max(0,Pt(o,0)-1):r;return u<0||u>d?0:n&&l?A===qt.page?u+1:u+s:u},zb=({curRollCalc:e,mode:t,seamless:l,visibleLength:a,itemsLen:i,maxRollCalc:o})=>{if(!l)return null;const n=dl(t),A=Pt(e,0),s=Pt(o,0);return n===qt.page?A>=s?1:0===A?Math.max(1,s-1):null:A>=s?Yt(a):0===A?$l(i):null},Nb=({curRollCalc:e,mode:t,seamless:l,visibleLength:a,itemsLen:i,pageCount:o})=>{const n=dl(t),A=Pt(e,0);return l?n===qt.page?Sn(A-1,Pt(o,0)):Sn(A-Yt(a),$l(i)):A},Ib=({curRollCalc:e,maxRollCalc:t,seamless:l,disabled:a})=>{if(a)return{disablePrev:!0,disableNext:!0};if(l)return{disablePrev:!1,disableNext:!1};const i=Pt(e,0);return{disablePrev:0===i,disableNext:i===Pt(t,0)}},Mb=e=>kn[e]||kn[it.commandForceUpdate],gl=e=>({width:e?.clientWidth||0,height:e?.clientHeight||0}),Ol=(e,t)=>"v"===t?e.height:e.width,Db=e=>"v"===e||"vr"===e?"v":"h",Ob=({itemsLen:e,visibleLength:t})=>{const l=Number(t);return e<=(Number.isFinite(l)?Math.max(1,Math.floor(l)):1)},Oo=e=>{if(!e||!e.length)return[];if(e.length>1)return e;const t=e[0]?.children||[];return Array.isArray(t)&&1===t.length&&Array.isArray(t[0]?.children)&&t[0].children.length>1?Oo(t):Array.isArray(t)?t:e},_b=e=>Oo(e.default?.()||[]).filter(Boolean),ba=(e,t)=>e.map(((e,l)=>zn(e,{key:`${t}-${e.key??"item"}-${l}`}))),Eb=({seamless:e,disabled:t,items:l,mode:a,visibleLength:i,itemsLen:o})=>{if(!e||t||!l.length)return[];const n=Math.max(1,Math.floor(Number(i)||1)),A="item"===a?n:o%n||n;return ba(l.slice(-A),"pre")},Lb=({seamless:e,disabled:t,fillData:l,items:a,visibleLength:i})=>{if(!a.length)return[];const o=Math.max(1,Math.floor(Number(i)||1));if(e&&!t)return ba(a.slice(0,o),"suf");if(!t||!l)return[];const n=Array.from({length:Math.max(0,o-a.length)},((e,t)=>a[t%a.length]));return ba(n,"fill")},Wb=()=>Pe({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRollCalc:0,maxRollCalc:0,curRoll:0,maxRoll:0,itemsLen:0,pageLen:1,pageCount:0,controlWidth:0,controlHeight:0,headerWidth:0,headerHeight:0,footerWidth:0,footerHeight:0,disablePrev:!0,disableNext:!0,disableRolling:!0}),jb=({props:e,slots:t,uid:l,refs:a,duration:i,interval:o,emit:n})=>{const A=Pe({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRollCalc:0,maxRollCalc:0,curRoll:0,maxRoll:0,itemsLen:0,pageLen:1,pageCount:0,controlWidth:0,controlHeight:0,headerWidth:0,headerHeight:0,footerWidth:0,footerHeight:0,disablePrev:!0,disableNext:!0,disableRolling:!0}),s=S(!1),r=S(!1),u=S(!1),d=S(!1),c=S(!0),p=S(!1),f=S(null),v=S(0),h=g((()=>Sb(e.direction))),m=g((()=>!!t.controls||e.showControl)),y=g((()=>"overlay"===e.controlLayout)),b=g((()=>m.value&&!y.value)),V=g((()=>m.value&&"reserve"===e.controlLayout&&!A.disableRolling)),w=g((()=>m.value&&!A.disableRolling)),q=g((()=>!!m.value&&!!w.value)),x=g((()=>Db(e.controlDirection))),C=g((()=>x.value===h.value)),k=g((()=>!!t.header)),B=g((()=>!!t.footer)),T=()=>{const e=q.value?gl(a.controlRef.value):{width:0,height:0};return(e.width||e.height)&&(A.controlWidth=e.width,A.controlHeight=e.height),{width:A.controlWidth,height:A.controlHeight}},P=()=>{const e=k.value?gl(a.headerRef.value):{width:0,height:0},t=B.value?gl(a.footerRef.value):{width:0,height:0};return A.headerWidth=e.width,A.headerHeight=e.height,A.footerWidth=t.width,A.footerHeight=t.height,{width:e.width+t.width,height:e.height+t.height}},$=(e=A.disableRolling)=>!!b.value&&!e,z=t=>xb({orient:h.value,mode:e.mode,curRollCalc:t,itemSize:A.rollItemSize,wrapSize:A.rollWrapSize}),R=()=>({state:A,direction:e.direction,autoFlow:e.autoFlow,orient:h.value,mode:e.mode,seamless:e.seamless,autoRolling:e.autoRolling,autoFollow:e.autoFollow,visibleLength:e.visibleLength,fillData:e.fillData,showControl:e.showControl,controlLayout:e.controlLayout,wheelRelease:e.wheelRelease,wheelReleaseDelay:e.wheelReleaseDelay,hasHeader:k.value,hasFooter:B.value,controlType:e.controlType,controlDirection:e.controlDirection,controlAlign:e.controlAlign,trigger:e.trigger,indicatorHasToggle:e.indicatorHasToggle,motionBlur:e.motionBlur,resizeObserver:e.resizeObserver,hoverPause:e.hoverPause,wheelRolling:e.wheelRolling,interceptWheel:e.interceptWheel,interval:o.value,duration:i.value,inited:s.value,isStop:c.value,isPaused:d.value,isTransing:r.value,isMotionBlur:u.value,wheelLock:p.value,rollWrapSize:A.rollWrapSize,rollInnerSize:A.rollInnerSize,rollItemSize:A.rollItemSize,controlWidth:A.controlWidth,controlHeight:A.controlHeight,headerWidth:A.headerWidth,headerHeight:A.headerHeight,footerWidth:A.footerWidth,footerHeight:A.footerHeight,renderRollCalc:v.value,curRollCalc:A.curRollCalc,maxRollCalc:A.maxRollCalc,curRoll:A.curRoll,maxRoll:A.maxRoll,itemsLen:A.itemsLen,pageLen:A.pageLen,pageCount:A.pageCount,disablePrev:A.disablePrev,disableNext:A.disableNext,disableRolling:A.disableRolling});return{state:A,inited:s,isTransing:r,isMotionBlur:u,isPaused:d,isStop:c,wheelLock:p,lastMove:f,renderRollCalc:v,orient:h,shouldReserveControlSpace:V,shouldShowControl:w,shouldMountControl:q,syncControlSize:T,syncFixedSlotSize:P,getControlTakesLayout:$,getWrapSize:(e=$())=>{const t=Ol(gl(a.rollWrapRef.value),h.value),l=Ol(P(),h.value);if(!C.value||!e)return t;const i=Ol(gl(a.containerRef.value),h.value),o=Ol(T(),h.value);return Math.max(0,i-o-l)||t},getTransformByIndex:z,debugLog:(t,i={})=>{e.debug&&console.info(`[TuiRolling:${l}] ${t}`,{...i,snapshot:{orient:h.value,mode:e.mode,direction:e.direction,autoFlow:e.autoFlow,wrapClientHeight:a.rollWrapRef.value?.clientHeight,wrapClientWidth:a.rollWrapRef.value?.clientWidth,innerClientHeight:a.rollInnerRef.value?.clientHeight,innerClientWidth:a.rollInnerRef.value?.clientWidth,controlClientHeight:a.controlRef.value?.clientHeight,controlClientWidth:a.controlRef.value?.clientWidth,headerClientHeight:a.headerRef.value?.clientHeight,headerClientWidth:a.headerRef.value?.clientWidth,footerClientHeight:a.footerRef.value?.clientHeight,footerClientWidth:a.footerRef.value?.clientWidth,rollWrapSize:A.rollWrapSize,rollInnerSize:A.rollInnerSize,rollItemSize:A.rollItemSize,renderRollCalc:v.value,curRollCalc:A.curRollCalc,maxRollCalc:A.maxRollCalc,curRoll:A.curRoll,maxRoll:A.maxRoll,pageCount:A.pageCount,pageLen:A.pageLen,itemsLen:A.itemsLen,disableRolling:A.disableRolling,transform:z(v.value)}})},syncDisplayState:()=>{A.curRoll=Nb({curRollCalc:A.curRollCalc,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,itemsLen:A.itemsLen,pageCount:A.pageCount}),(()=>{const{disablePrev:t,disableNext:l}=Ib({curRollCalc:A.curRollCalc,maxRollCalc:A.maxRollCalc,seamless:e.seamless,disabled:A.disableRolling});A.disablePrev=t,A.disableNext=l})()},applyMetrics:e=>{A.rollWrapSize=e.wrapSize,A.rollInnerSize=e.innerSize,A.rollItemSize=e.itemSize,A.maxRollCalc=e.maxRollCalc,A.maxRoll=e.maxRoll,A.itemsLen=e.itemsLen,A.pageLen=e.pageLen,A.pageCount=e.pageCount,A.disableRolling=e.disabled},normalizeTargetIndex:t=>Do({index:t,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,maxRollCalc:A.maxRollCalc,displayTotal:"page"===e.mode?A.pageCount:A.itemsLen,asDisplayIndex:!0}),getInfo:R,emitUpdate:(e,t)=>{n("update",R(),e,t)}}},_o=e=>e===it.itemsAdd||e===it.itemsRemove,Gb=(e,t,l)=>_o(e)?l>t.itemsLen?it.itemsAdd:l<t.itemsLen?it.itemsRemove:e:e,Fb=({maxRollCalc:e,disabled:t,mode:l,seamless:a,visibleLength:i})=>t?0:Do({index:"last",mode:l,seamless:a,visibleLength:i,maxRollCalc:e})??Math.max(0,e),Hb=({action:e,autoFollow:t,before:l,metrics:a,mode:i,seamless:o,visibleLength:n,desiredCalc:A})=>{if(!t||!_o(e))return null;const s=Fb({maxRollCalc:a.maxRollCalc,disabled:a.disabled,mode:i,seamless:o,visibleLength:n}),r=Math.max(0,A??l.curRollCalc);return e===it.itemsAdd?a.disabled?null:s:r>s?s:null},Ub=({props:e,state:t,inited:l,isTransing:a,renderRollCalc:i,lastMove:o,syncSlotItems:n,syncControlSize:A,getControlTakesLayout:s,getWrapSize:r,getTransformByIndex:u,syncDisplayState:d,applyMetrics:c,normalizeTargetIndex:p,moveTo:g,getInfo:f,emit:v,emitUpdate:h,debugLog:m})=>{const y=S(!1),b=S(null),V=S(null),w=()=>Math.max(t.curRollCalc,o.value?.to??0,V.value?.target??0),q=(e,t)=>{V.value={target:e,source:t},m("autoFollow:pending",{target:e,source:t})},x=(t,l)=>Bb({itemsLen:t,visibleLength:e.visibleLength,wrapSize:r(l),mode:e.mode,seamless:e.seamless}),C=async(o=it.commandForceUpdate,y={})=>{const b={...Mb(o),...y},V={curRollCalc:t.curRollCalc,maxRollCalc:t.maxRollCalc,maxRoll:t.maxRoll,itemsLen:t.itemsLen,pageCount:t.pageCount,disableRolling:t.disableRolling},S=await(async(t,l)=>{await de();const a=n(),i=w(),o=Gb(t,l,a),r=Ob({itemsLen:a,visibleLength:e.visibleLength}),u=s(r);A();let d=x(a,u);c(d),await de(),A();const p=x(a,u);return(p.wrapSize!==d.wrapSize||p.maxRollCalc!==d.maxRollCalc||p.disabled!==d.disabled)&&(d=p,c(d)),{itemsLen:a,desiredCalc:i,action:o,metrics:d}})(o,V),C=Hb({action:S.action,autoFollow:e.autoFollow,before:V,metrics:S.metrics,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,desiredCalc:S.desiredCalc});m("action:metrics",{action:S.action,requestedAction:o,before:V,metrics:S.metrics,desiredRollCalc:S.desiredCalc,followTarget:C,nextItemsLen:S.itemsLen}),(({policy:l,action:o,metrics:n,followTarget:A})=>{if(l.resetCalc&&(t.curRollCalc=n.initialRollCalc),null===A&&(t.curRollCalc=Math.min(Math.max(t.curRollCalc,0),t.maxRollCalc)),o===it.initMount&&null!==e.initIndex&&void 0!==e.initIndex){const l=p(e.initIndex);null!==l&&(t.curRollCalc=l)}a.value||(i.value=t.curRollCalc),d()})({policy:b,action:S.action,metrics:S.metrics,followTarget:C}),await de(),l.value||(l.value=!0),(e=>{h("RollingAction",e),e===it.layoutResize&&v("resize",f())})(S.action),null!==C&&t.curRollCalc!==C&&await(async(e,t)=>{if(await ft.w2(),m("autoFollow:before-move",{action:t,followTarget:e,transformTo:u(e),liveWrapSize:r()}),a.value)return q(e,t),!1;const l=g(e,{source:t,allowDisabled:!0});return!l&&a.value&&q(e,t),l})(C,S.action)},k=async(e=it.commandForceUpdate,t={})=>{if(y.value)return b.value={action:e,options:t},m("action:queued",{action:e}),!1;y.value=!0;try{await C(e,t)}finally{y.value=!1}const l=b.value;return l&&(b.value=null,await k(l.action,l.options)),!0};return{applyAction:k,flushFollow:async()=>{if(!V.value||a.value)return!1;const e=V.value;if(V.value=null,await ft.w(),a.value)return q(e.target,e.source),!1;const l=Math.max(0,Math.min(e.target,t.maxRollCalc));return l!==t.curRollCalc&&g(l,{source:e.source,allowDisabled:!0})},getDesiredCalc:w}},Qb=({props:e,state:t,uid:l,tTimer:a,duration:i,fallbackDelay:o,isTransing:n,isMotionBlur:A,renderRollCalc:s,lastMove:r,getTransformByIndex:u,syncDisplayState:d,getInfo:c,emit:p,emitUpdate:g,debugLog:f,flushFollow:v})=>{let h=0;const m=e=>{a.c(`${l}_transition`),n.value=e,e&&a.s(`${l}_transition`,(()=>{b("timer")}),i.value+o)},y=l=>{const a=r.value,i=t.disableRolling?null:zb({curRollCalc:t.curRollCalc,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,itemsLen:t.itemsLen,maxRollCalc:t.maxRollCalc});m(!1),null!==i&&(t.curRollCalc=i),s.value=t.curRollCalc,d(),p("after-roll",{...a||{},from:l,info:c()}),g("RollingAfterRoll",a?.source||l),r.value=null,v()},b=(e="transitionend")=>{n.value&&y(e)};return{moveTo:(o,v={})=>{if(f("moveTo:request",{targetIndex:o,options:v}),!v.allowDisabled&&t.disableRolling||n.value||null==o)return!1;const b=Math.max(0,Math.min(o,t.maxRollCalc));if(b===t.curRollCalc)return!1;const V=v.source||it.commandGoTo,w=v.animated??!0,q=t.curRollCalc,x={source:V,auto:!!v.auto,from:q,to:b,info:c()};f("moveTo:before",{target:b,source:V,animated:w,transformFrom:u(t.curRollCalc),transformTo:u(b)}),p("before-roll",x),r.value=x,h+=1;const S=h;return w&&i.value>0&&(s.value=q,m(!0),e.motionBlur&&(a.c(`${l}_motion_blur`),A.value=!0,a.s(`${l}_motion_blur`,(()=>{A.value=!1}),"item"===e.mode?150:400))),t.curRollCalc=b,d(),f("moveTo:after-state",{target:b,transform:u(t.curRollCalc)}),p("rolling",t.curRollCalc,c(),V),g("RollingMove",V),!w||i.value<=0?(s.value=b,y("silent")):(async(e,t,l)=>{await de(),await ft.w(),e===h&&(f("motion:commit",{source:l,target:t,transformTo:u(t)}),s.value=t)})(S,b,V),!0},transitionEnd:b}},Yb=()=>({direction:null,startAt:0,released:!1}),Kb=e=>Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY,Eo=e=>Math.max(0,Number(e)||0),Xb=e=>{e.direction=null,e.startAt=0,e.released=!1},Zb=({state:e,direction:t,wheelRelease:l,wheelReleaseDelay:a,now:i=Date.now()})=>{if(!l)return e.direction=t,e.released=!1,!0;const o=Eo(a);return o<=0?(e.direction=t,e.released=!0,!1):((e.direction!==t||!e.startAt)&&(e.direction=t,e.startAt=i,e.released=!1),e.released=i-e.startAt>=o,!e.released)},Jb=({props:e,state:t,uid:l,tTimer:a,interval:i,isStop:o,isPaused:n,getInfo:A,emit:s,next:r,prev:u})=>{const d=()=>{a.c(`${l}_auto`),!(t.disableRolling||o.value||n.value)&&a.s(`${l}_auto`,(()=>{o.value||n.value||t.disableRolling||("reverse"===e.autoFlow?u(!0):r(!0),d())}),i.value)},c=(e="command")=>!t.disableRolling&&(o.value=!1,n.value=!1,d(),s("play",A(),e),!0),p=(e="command")=>{o.value=!0,a.c(`${l}_auto`),s("stop",A(),e)};return{startTimer:d,scheduleAutoStart:()=>{a.c(`${l}_init`),e.autoRolling&&a.s(`${l}_init`,(()=>{t.disableRolling||(s("start",A()),c("auto"))}),e.delay)},play:c,stop:p,pause:(e="command")=>{o.value||(n.value=!0,a.c(`${l}_auto`),s("pause",A(),e))},resume:(e="command")=>{o.value||(n.value=!1,d(),s("resume",A(),e))},toggle:()=>{o.value?c():p()}}},eV=({props:e,state:t,uid:l,tTimer:a,wheelLock:i,isTransing:o,getInfo:n,emit:A,next:s,prev:r,delay:u})=>{const d=Pe({direction:null,startAt:0,released:!1});return{handleWheel:c=>{if(!e.wheelRolling||t.disableRolling)return;const p=Kb(c);if(!p)return;const g=p>0,f=!t.disableNext,v=!t.disablePrev,h=g?f:v,m=g?"next":"prev",y=!h,b=!!y&&Zb({state:d,direction:m,wheelRelease:e.wheelRelease,wheelReleaseDelay:e.wheelReleaseDelay}),V=y&&!b,w=y?b:e.interceptWheel?f||v:h,q={event:c,delta:p,willGoNext:g,direction:m,canScrollForward:f,canScrollBackward:v,canScrollCurrentDirection:h,boundary:y,released:V,intercepted:w,releaseDelay:Eo(e.wheelReleaseDelay),wheelRelease:e.wheelRelease,locked:o.value||i.value,info:n()};w?(c.cancelable&&c.preventDefault(),A("wheel",q),!(y||o.value||i.value)&&(Xb(d),i.value=!0,a.s(`${l}_wheel`,(()=>{i.value=!1}),u),g?s(!1):r(!1))):A("wheel",q)}}},tV={key:0,class:"tui-icon tis-play"},lV={key:1,class:"tui-icon tis-pause"},aV={key:0,class:"tui-roll-indics"},nV=["onClick","onMouseenter"],oV={key:0,class:"tui-icon tis-play"},iV={key:1,class:"tui-icon tis-pause"},sV=500,rV=Object.assign({name:"TuiRollingControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},mode:{type:String,default:"item"},controlType:{type:String,default:"auto",validator:e=>["auto","arrow","indicator"].includes(e)},controlAlign:{type:String,default:"center",validator:e=>["start","end","center"].includes(e)},controlDirection:{type:String,default:"v",validator:e=>["v","h","vr","hr"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},indicatorHasToggle:Boolean,isStop:Boolean,reserveSpace:Boolean},setup(e){const t=e;let l=null;const a=g((()=>"item"===t.mode||"arrow"===t.controlType?"arrow":"indicator")),i=g((()=>"arrow"===a.value)),o=g((()=>Math.max(0,Number(t.state?.maxRoll)||0))),n=g((()=>Math.max(0,Number(t.state?.curRoll)||0))),s=g((()=>!!t.state?.disableRolling)),r=g((()=>s.value||!!t.state?.disablePrev)),d=g((()=>s.value||!!t.state?.disableNext)),c=g((()=>"v"===t.controlDirection||"vr"===t.controlDirection)),p=g((()=>c.value?"ti-chevron-left":"ti-chevron-up")),f=g((()=>c.value?"ti-chevron-right":"ti-chevron-down")),v=()=>{l&&(clearTimeout(l),l=null)};return At(v),(a,c)=>{const g=ke("TuiButton");return A(),h("div",{class:P(["tui-rolling-controls",`is-align-${e.controlAlign}`])},[i.value?(A(),h(ie,{key:0},[ce(g,{link:"",disabled:r.value,onClick:c[0]||(c[0]=t=>e.actions.prev())},{default:W((()=>[u("i",{class:P(["tui-icon",p.value])},null,2)])),_:1},8,["disabled"]),ce(g,{link:"",disabled:s.value,onClick:c[1]||(c[1]=t=>e.actions.toggle())},{default:W((()=>[e.isStop?(A(),h("i",tV)):(A(),h("i",lV))])),_:1},8,["disabled"]),ce(g,{link:"",disabled:d.value,onClick:c[2]||(c[2]=t=>e.actions.next())},{default:W((()=>[u("i",{class:P(["tui-icon",f.value])},null,2)])),_:1},8,["disabled"])],64)):(A(),h(ie,{key:1},[o.value>1||e.reserveSpace?(A(),h("div",aV,[(A(!0),h(ie,null,ze(o.value,(e=>(A(),h("div",{class:P(["tui-roll-indic",{"is-active":e-1===n.value}]),key:e,onClick:l=>(e=>{"click"===t.trigger&&t.actions.goTo(e)})(e-1),onMouseenter:a=>(e=>{"hover"===t.trigger&&(v(),l=setTimeout((()=>{t.actions.goTo(e)}),sV))})(e-1),onMouseleave:v},null,42,nV)))),128))])):C("",!0),e.indicatorHasToggle?(A(),Z(g,{key:1,link:"",disabled:s.value,onClick:c[3]||(c[3]=t=>e.actions.toggle())},{default:W((()=>[e.isStop?(A(),h("i",oV)):(A(),h("i",iV))])),_:1},8,["disabled"])):C("",!0)],64))],2)}}}),AV={class:"tui-roll-pre"},uV={class:"tui-roll-main"},cV={class:"tui-roll-suf"},dV=Object.assign({name:"TuiRollingTrack"},{__name:"track",props:{mode:{type:String,default:"item"},seamless:Boolean,disabled:Boolean,preNodes:{type:Array,default:()=>[]},sufNodes:{type:Array,default:()=>[]}},setup:e=>(t,l)=>e.disabled?(A(),h(ie,{key:1},[X(t.$slots,"default"),(A(!0),h(ie,null,ze(e.sufNodes,((e,t)=>(A(),Z(ct(e),{key:e.key??`fill-${t}`})))),128))],64)):(A(),h(ie,{key:0},["item"===e.mode?(A(),h(ie,{key:0},[(A(!0),h(ie,null,ze(e.preNodes,((e,t)=>(A(),Z(ct(e),{key:e.key??`pre-${t}`})))),128)),X(t.$slots,"default"),(A(!0),h(ie,null,ze(e.sufNodes,((e,t)=>(A(),Z(ct(e),{key:e.key??`suf-${t}`})))),128))],64)):(A(),h(ie,{key:1},[e.seamless?(A(),h(ie,{key:0},[u("div",AV,[(A(!0),h(ie,null,ze(e.preNodes,((e,t)=>(A(),Z(ct(e),{key:e.key??`pre-page-${t}`})))),128))]),u("div",uV,[X(t.$slots,"default")]),u("div",cV,[(A(!0),h(ie,null,ze(e.sufNodes,((e,t)=>(A(),Z(ct(e),{key:e.key??`suf-page-${t}`})))),128))])],64)):X(t.$slots,"default",{key:1})],64))],64))}),fV={key:1,class:"tui-roll-debug"},pV={class:"tui-roll-debug-item"},gV={class:"tui-roll-debug-item"},hV={class:"tui-roll-debug-item"},vV={class:"tui-roll-debug-item"},mV={class:"tui-roll-debug-item"},yV={class:"tui-roll-debug-item"},bV={class:"tui-roll-debug-item"},VV={class:"tui-roll-debug-item"},wV={class:"tui-roll-debug-item"},CV=500,$V=200,kV=6e3,SV=3e3,qV=160,TV=80,BV=Object.assign({name:"TuiRolling"},{__name:"index",props:{oddBackground:String,evenBackground:String,initIndex:Number,interval:Number,visibleLength:{type:Number,default:4},duration:{type:Number,default:null},hoverPause:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},fillData:{type:Boolean,default:!0},delay:{type:Number,default:1e3},showControl:{type:Boolean,default:!0},controlLayout:{type:String,default:"reserve",validator:e=>["reserve","overlay"].includes(e)},seamless:{type:Boolean,default:!1},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!1},wheelRelease:{type:Boolean,default:!0},wheelReleaseDelay:{type:Number,default:1e3},slotObserver:{type:Boolean,default:!0},controlAlign:{type:String,default:"center",validator:e=>["start","end","center"].includes(e)},controlType:{type:String,default:"auto",validator:e=>["auto","arrow","indicator"].includes(e)},controlDirection:{type:String,default:"v",validator:e=>["v","h","vr","hr"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},indicatorHasToggle:Boolean,direction:{type:String,default:"v",validator:e=>["v","h"].includes(e)},autoFlow:{type:String,default:"forward",validator:e=>["forward","reverse"].includes(e)},mode:{type:String,default:"item",validator:e=>["item","page"].includes(e)},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},motionBlur:{type:Boolean,default:!0}},emits:["start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","resize","wheel"],setup(e,{expose:t,emit:l}){const a=yt(),i=Se("$global",null),o=i?.$optResizeCounter,n=i?.initResizeBy?.(),s=e,r=l,d=xe("rollBase"),c=S(null),p=S(null),v=S(null),m=S(null),y=S(null),b=S(null),V=S([]);let w=()=>!1;const x=g((()=>null!==s.duration&&void 0!==s.duration?s.duration:"page"===s.mode?CV:$V)),k=g((()=>s.interval||("page"===s.mode?kV:SV))),B=jb({props:s,slots:a,uid:d,refs:{containerRef:c,rollWrapRef:p,rollInnerRef:v,controlRef:m,headerRef:y,footerRef:b},duration:x,interval:k,emit:r}),{state:T,inited:$,isTransing:z,isMotionBlur:R,isPaused:N,isStop:M,wheelLock:O,lastMove:D,renderRollCalc:I,orient:_,shouldReserveControlSpace:E,shouldShowControl:L,shouldMountControl:j,syncControlSize:G,getControlTakesLayout:H,getWrapSize:Q,getTransformByIndex:Y,debugLog:U,syncDisplayState:J,applyMetrics:ee,normalizeTargetIndex:te,getInfo:le,emitUpdate:ae}=B,ie=g((()=>Eb({seamless:s.seamless,disabled:T.disableRolling,items:V.value,mode:s.mode,visibleLength:s.visibleLength,itemsLen:T.itemsLen}))),oe=g((()=>Lb({seamless:s.seamless,disabled:T.disableRolling,fillData:s.fillData,items:V.value,visibleLength:s.visibleLength}))),ne=g((()=>pe("cpt-roll",{tsf:Y(I.value),tsfTrs:z.value?`transform ${x.value}ms`:"none",itemSize:`${T.rollItemSize}px`,...q("wrapSize",T.rollWrapSize,"px"),...q("contSize",T.rollInnerSize,"px"),...q("oddBg",s.oddBackground),...q("evenBg",s.evenBackground)}))),Ae=e=>e&&"none"!==e?n?.value?n.value(e):"global"===e?"root":"self":"none",se=()=>_b(a),{moveTo:re,transitionEnd:ue}=Qb({props:s,state:T,uid:d,tTimer:he,duration:x,fallbackDelay:80,isTransing:z,isMotionBlur:R,renderRollCalc:I,lastMove:D,getTransformByIndex:Y,syncDisplayState:J,getInfo:le,emit:r,emitUpdate:ae,debugLog:U,flushFollow:()=>w()}),de=Ub({props:s,state:T,inited:$,isTransing:z,renderRollCalc:I,lastMove:D,syncSlotItems:()=>(V.value=se(),V.value.length),syncControlSize:G,getControlTakesLayout:H,getWrapSize:Q,getTransformByIndex:Y,syncDisplayState:J,applyMetrics:ee,normalizeTargetIndex:te,moveTo:re,getInfo:le,emit:r,emitUpdate:ae,debugLog:U}),{applyAction:ce}=de;w=de.flushFollow;const ge=(e=!1)=>re(Pb({curRollCalc:T.curRollCalc,maxRollCalc:T.maxRollCalc,seamless:s.seamless,auto:e}),{source:e?"auto:next":"command:next",auto:e}),ve=(e=!1)=>re(Rb({curRollCalc:T.curRollCalc,maxRollCalc:T.maxRollCalc,seamless:s.seamless,auto:e}),{source:e?"auto:prev":"command:prev",auto:e}),{scheduleAutoStart:me,play:be,stop:Ve,pause:qe,resume:Ce,toggle:ke}=Jb({props:s,state:T,uid:d,tTimer:he,interval:k,isStop:M,isPaused:N,getInfo:le,emit:r,next:ge,prev:ve}),Be=(e,t={})=>{const l="boolean"==typeof t?{silent:t}:t;return re(te(e),{source:l.source||it.commandGoTo,animated:!l.silent})},Te=()=>Be("start"),Pe=()=>Be("end"),$e=(e=it.commandForceUpdate)=>ce(e),ze=()=>{s.hoverPause&&qe("hover")},Re=()=>{s.hoverPause&&Ce("hover")},{handleWheel:Me}=eV({props:s,state:T,uid:d,tTimer:he,wheelLock:O,isTransing:z,getInfo:le,emit:r,next:ge,prev:ve,delay:qV}),Oe=()=>{ce(it.layoutResize)},De={play:be,stop:Ve,pause:qe,resume:Ce,toggle:ke,prev:ve,next:ge,goTo:Be,forceUpdate:$e,scrollToStart:Te,scrollToEnd:Pe},Ie=g((()=>({state:T,info:le(),actions:De,disabled:{rolling:T.disableRolling,prev:T.disablePrev,next:T.disableNext},current:T.curRoll,total:T.maxRoll,isStop:M.value,isPaused:N.value,isTransing:z.value,isMotionBlur:R.value})));return K((()=>s.mode),(()=>{ce(it.configMode)})),K((()=>s.visibleLength),(()=>{ce(it.configVisibleLength)})),K((()=>s.direction),(()=>{ce(it.layoutResize)})),K((()=>[s.controlLayout,s.showControl,s.controlType,s.controlDirection,s.indicatorHasToggle]),(()=>{ce(it.layoutResize)})),K((()=>s.initIndex),(e=>{!$.value||null==e||Be(e,{silent:!0,source:"prop:initIndex"})})),K((()=>s.autoRolling),(e=>{e?me():Ve("prop:autoRolling")})),K((()=>T.disableRolling),((e,t)=>{!$.value||e||!1===t||!s.autoRolling||me()})),K((()=>s.seamless),(()=>{ce(it.configSeamless)})),K((()=>o?.value),((e,t)=>{"root"===Ae(s.resizeObserver)&&(e||0)>(t||0)&&Oe()})),K((()=>T.curRoll),((e,t)=>{!$.value||e===t||r("change",e,le())})),wl((()=>{if(!s.slotObserver||!$.value)return;const e=se(),t=e.length;t!==T.itemsLen?ce(t>T.itemsLen?it.itemsAdd:it.itemsRemove):V.value=e})),ye((async()=>{await ce(it.initMount),me()})),At((()=>{he.c(`${d}_auto`),he.c(`${d}_init`),he.c(`${d}_wheel`),he.c(`${d}_transition`),he.c(`${d}_motion_blur`)})),t({state:T,play:be,stop:Ve,pause:qe,resume:Ce,toggle:ke,prev:ve,next:ge,goTo:Be,getInfo:le,getState:le,forceUpdate:$e,isRolling:()=>z.value,isDisabled:()=>T.disableRolling,scrollToStart:Te,scrollToEnd:Pe}),(t,l)=>{const a=Fe("tui-resize");return A(),h("div",{class:P(["tui-rolling","tui-rolling-base",`is-orient-${f(_)}`,`is-mode-${e.mode}`,`is-ctrl-dir-${e.controlDirection}`,{"is-disabled":f(T).disableRolling,"is-initing":!f($)}]),ref_key:"containerRef",ref:c,onMouseenter:ze,onMouseleave:Re,onWheel:l[1]||(l[1]=(...e)=>f(Me)&&f(Me)(...e))},[u("div",{class:P(["tui-rolling-main",`is-orient-${f(_)}`])},[t.$slots.header?we((A(),h("div",{key:0,class:"tui-rolling-fixed tui-rolling-header",ref_key:"headerRef",ref:y},[X(t.$slots,"header",pt(Vt(Ie.value)))])),[[a,{callback:Oe,uid:`${f(d)}_header`,disabled:!f($)}]]):C("",!0),we((A(),h("div",{class:"tui-rolling-wrap",ref_key:"rollWrapRef",ref:p},[u("div",{class:P(["tui-rolling-inner",`is-orient-${f(_)}`,`is-mode-${e.mode}`,{"is-seamless":e.seamless,"is-motion-blur":e.motionBlur&&f(R)}]),style:fe(ne.value),ref_key:"rollInnerRef",ref:v,onTransitionend:l[0]||(l[0]=st((e=>f(ue)("transitionend")),["self"]))},[f($)?(A(),Z(dV,{key:0,mode:e.mode,seamless:e.seamless,disabled:f(T).disableRolling,preNodes:ie.value,sufNodes:oe.value},{default:W((()=>[X(t.$slots,"default")])),_:3},8,["mode","seamless","disabled","preNodes","sufNodes"])):C("",!0)],38)])),[[a,{callback:Oe,uid:f(d),disabled:"self"!==Ae(e.resizeObserver)&&f($)}]]),t.$slots.footer?we((A(),h("div",{key:1,class:"tui-rolling-fixed tui-rolling-footer",ref_key:"footerRef",ref:b},[X(t.$slots,"footer",pt(Vt(Ie.value)))])),[[a,{callback:Oe,uid:`${f(d)}_footer`,disabled:!f($)}]]):C("",!0)],2),f(j)?(A(),h("div",{key:0,class:P(["tui-rolling-control-host",{"tui-rolling-control-slot":t.$slots.controls,"is-control-reserve":f(E),"is-control-overlay":"overlay"===e.controlLayout,"is-control-hidden":!f(L)}]),ref_key:"controlRef",ref:m},[t.$slots.controls?X(t.$slots,"controls",pt(Ne({key:0},Ie.value))):e.showControl?(A(),Z(rV,{key:1,state:f(T),actions:De,mode:e.mode,controlType:e.controlType,controlAlign:e.controlAlign,controlDirection:e.controlDirection,trigger:e.trigger,indicatorHasToggle:e.indicatorHasToggle,isStop:f(M),reserveSpace:f(E)},null,8,["state","mode","controlType","controlAlign","controlDirection","trigger","indicatorHasToggle","isStop","reserveSpace"])):C("",!0)],2)):C("",!0),e.debug?(A(),h("div",fV,[u("div",pV,"curRoll:"+F(f(T).curRoll),1),u("div",gV,"curRollCalc:"+F(f(T).curRollCalc),1),u("div",hV,"renderRollCalc:"+F(f(I)),1),u("div",vV,"maxRoll:"+F(f(T).maxRoll),1),u("div",mV,"maxRollCalc:"+F(f(T).maxRollCalc),1),u("div",yV,"itemsLen:"+F(f(T).itemsLen),1),u("div",bV,"pageLen:"+F(f(T).pageLen),1),u("div",VV,"visibleLength:"+F(e.visibleLength),1),u("div",wV,"control:"+F(f(T).controlWidth)+"x"+F(f(T).controlHeight),1)])):C("",!0)],34)}}}),xV={class:"tui-rolling-item tui-rolling-base-item"},PV=Object.assign({name:"TuiRollingItem"},{__name:"item",setup:e=>(e,t)=>(A(),h("div",xV,[X(e.$slots,"default")]))}),RV=["normal","success","danger","warning","emphasis","critical"],Pa=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},zV=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)&&l>=0?l:t},Lo=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?Lo(e.children):[e])),NV=Pa,IV=e=>Lo(e||[]).map((e=>e?.props||{})).filter((e=>e&&Object.prototype.hasOwnProperty.call(e,"value"))),MV=(e=[])=>e.reduce(((e,t)=>Math.max(e,zV(t?.value))),0),DV=({visibleLength:e,showControl:t}={})=>{const l=t?30:0;return 56*Pa(e,5)+l},OV=({props:e}={})=>{const t=e.rollingConfig||{};return{...t,direction:"v",mode:e.mode,visibleLength:Pa(e.visibleLength,5),initIndex:t.initIndex??null,debug:e.debug,showControl:e.showControl,seamless:e.seamless,interval:e.interval??t.interval,motionBlur:e.motionBlur,duration:e.duration??t.duration??null,delay:e.delay??t.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,hoverPause:e.hoverPause,resizeObserver:e.resizeObserver,fillData:!1,slotObserver:!0,controlLayout:t.controlLayout??"reserve",controlDirection:t.controlDirection??"v"}},_l=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollInnerSize=t.rollInnerSize??e.rollInnerSize,e.rollItemSize=t.rollItemSize??e.rollItemSize,e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.disablePrev=t.disablePrev??e.disablePrev,e.disableNext=t.disableNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.itemsLen=t.itemsLen??e.itemsLen,e.pageLen=t.pageLen??e.pageLen,e.disableRolling=t.disableRolling??e.disableRolling},_V=Object.assign({name:"TuiRollingProgress"},{__name:"index",props:{interval:Number,visibleLength:{type:Number,default:5,validator:e=>e>0},mode:{type:String,default:"item",validator:e=>["page","item"].includes(e)},showControl:{type:Boolean,default:!0},seamless:{type:Boolean,default:!0},duration:{type:Number,default:null},delay:{type:Number,default:1e3},debug:{type:Boolean,default:!1},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},hoverPause:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},hasIndex:{type:Boolean,default:!1},showRankings:{type:Boolean,default:!1},tipConfig:Object,tagConfig:Object,progressConfig:{type:Object,default:()=>({})},rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=yt(),n=xe("rollProgress"),s=S(null),r=S(!1),u=S([]),d=S(null),c=Pe({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,itemsLen:0,pageLen:1,disablePrev:!1,disableNext:!1,disableRolling:!1}),p=g((()=>NV(a.visibleLength,5))),f=g((()=>a.showControl&&u.value.length>p.value)),v=g((()=>MV(u.value))),m=g((()=>a.progressConfig?.maxValue??v.value)),y=g((()=>OV({props:a}))),b=g((()=>pe("cpt-rollpg",{outerH:`${DV({visibleLength:p.value,showControl:f.value})}px`}))),V=(e,t,l)=>{d.value=e,_l(c,e),((e,t={})=>{a.debug&&console.info(`[TuiRollingProgress:${n}] ${e}`,t)})("update",{info:e,from:t,action:l,maxValue:m.value}),i("update",e,t,l)},w=e=>{d.value=e,_l(c,e),i("start",e)},q=(e,t,l)=>{d.value=t,_l(c,t),i("rolling",e,t,l)},x=(e,t)=>{d.value=t,_l(c,t),i("change",e,t)},k=e=>i("before-roll",e),B=e=>i("after-roll",e),T=(e,t)=>i("play",e,t),$=(e,t)=>i("stop",e,t),z=(e,t)=>i("pause",e,t),R=(e,t)=>i("resume",e,t),N=e=>i("wheel",e),M=()=>s.value?.getInfo?.()||d.value||{state:c};return rt("TuiRollProgr",{hasIndex:g((()=>a.hasIndex)),showRankings:g((()=>a.showRankings)),progressConfig:g((()=>a.progressConfig||{})),tagConfig:g((()=>a.tagConfig)),tipConfig:g((()=>a.tipConfig)),maxValue:m}),wl((()=>{u.value=IV(o.default?.()||[]),u.value})),ye((()=>{r.value=!0})),t({state:c,play:(...e)=>s.value?.play?.(...e),stop:(...e)=>s.value?.stop?.(...e),pause:(...e)=>s.value?.pause?.(...e),resume:(...e)=>s.value?.resume?.(...e),toggle:(...e)=>s.value?.toggle?.(...e),prev:(...e)=>s.value?.prev?.(...e),next:(...e)=>s.value?.next?.(...e),goTo:(...e)=>s.value?.goTo?.(...e),getInfo:M,getState:M,forceUpdate:(...e)=>s.value?.forceUpdate?.(...e),isRolling:()=>s.value?.isRolling?.()||!1,isDisabled:()=>s.value?.isDisabled?.()||!1,scrollToStart:(...e)=>s.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>s.value?.scrollToEnd?.(...e)}),(e,t)=>{const l=ke("TuiRolling");return A(),h("div",{class:P(["tui-rolling-progress",{"is-initing":!r.value}]),style:fe(b.value)},[r.value?(A(),Z(l,Ne({key:0},y.value,{class:"tui-rollpg-rolling",ref_key:"rollingRef",ref:s,onStart:w,onRolling:q,onUpdate:V,onChange:x,onBeforeRoll:k,onAfterRoll:B,onPlay:T,onStop:$,onPause:z,onResume:R,onWheel:N}),{default:W((()=>[X(e.$slots,"default")])),_:3},16)):C("",!0)],6)}}}),EV=Object.assign({name:"TuiRollingProgressItem"},{__name:"item",props:{index:Number,label:{type:String,required:!0},value:{type:Number,required:!0},icon:{type:String,default:null},status:{type:String,default:null,validator:e=>null===e||RV.includes(e)},color:{type:String,default:null,validator:e=>null===e||CSS.supports("color",e)},showStatusIcon:{type:Boolean,default:!1}},setup(e){const t=e,l=ut(),a=Se("TuiRollProgr",null),i=g((()=>{const e=Number(t.index);return Number.isFinite(e)&&e>=0?Math.floor(e)+1:null})),o=g((()=>{if(!a?.showRankings?.value)return null;switch(Number(t.index)){case 0:return"danger";case 1:return"warning";case 2:return"success";default:return null}})),n=g((()=>({...a?.progressConfig?.value?.tagConfig||{},...a?.tagConfig?.value||{},...o.value&&{type:o.value}}))),s=g((()=>({...a?.progressConfig?.value?.tipConfig||{},...a?.tipConfig?.value||{}}))),r=g((()=>((e,t)=>{const a=l?.vnode?.props||{};return Object.prototype.hasOwnProperty.call(a,e)||Object.prototype.hasOwnProperty.call(a,t)})("showStatusIcon","show-status-icon")?t.showStatusIcon:a?.progressConfig?.value?.showStatusIcon??!1)),u=g((()=>{const e=a?.progressConfig?.value||{};return{labelNewline:!0,valuePosition:"newline",showStatusIcon:!1,...e,label:t.label,value:t.value,icon:t.icon,status:t.status,color:t.color,maxValue:e.maxValue??a?.maxValue?.value??0,tagConfig:n.value,tipConfig:s.value,showStatusIcon:r.value,...a?.hasIndex?.value&&null!==i.value&&{index:i.value}}}));return(e,t)=>{const l=ke("TuiProgress"),a=ke("TuiRollingItem");return A(),Z(a,{class:"tui-rolling-progress-item"},{default:W((()=>[ce(l,pt(Vt(u.value)),null,16)])),_:1})}}}),LV=["sum","avg","min","max","count"],Hl=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},Wo=e=>{const t=Number(e);return Number.isFinite(t)?t:null},pa=e=>null==e||"auto"===e?"minmax(0, 1fr)":"number"==typeof e?`${e}px`:"string"==typeof e?e:"minmax(0, 1fr)",WV=({columns:e=[],rows:t=[],hasIndexCol:l=!1,indexTitle:a="#",indexWidth:i=48}={})=>{const o=(e.length?e:Object.keys(t?.[0]||{}).map((e=>({key:e,title:e})))).map(((e,t)=>{const l="string"==typeof e?{key:e,title:e}:{...e},a=l.key??l.dataIndex??t;return{title:l.title??l.label??a,align:l.align??"start",type:l.type??"text",summary:l.summary??!1,sourceIndex:t,...l,key:a,id:l.id??`col-${String(a)}-${t}`}}));return l?[{id:"col-index",key:"__index",title:a,width:i,align:"center",type:"index",summary:!1,sourceIndex:-1,fixed:!0},...o]:o},jV=(e=[])=>e.map((e=>void 0!==e.width&&null!==e.width?pa(e.width):e.minWidth||e.maxWidth?`minmax(${pa(e.minWidth||0)}, ${pa(e.maxWidth||"1fr")})`:"minmax(0, 1fr)")).join(" "),GV=e=>"center"===e||"end"===e||"start"===e?e:"right"===e?"end":"start",ta=({row:e,column:t,rowIndex:l}={})=>{if(!t)return"";if("index"===t.type)return l<0?e?.[t.key]??"":l+1;if("function"==typeof t.getValue)return t.getValue({row:e,column:t,rowIndex:l});if(Array.isArray(e)){return e[t.dataIndex??t.sourceIndex]}if(e&&"object"==typeof e){return e[t.dataIndex??t.key]}return""},FV=({value:e,row:t,column:l,rowIndex:a}={})=>"function"==typeof l?.format?l.format({value:e,row:t,column:l,rowIndex:a}):e,HV=(e,t,l="id")=>"function"==typeof l?l(e,t):e&&"object"==typeof e?e[l]??e.key??t:t,UV=({columns:e=[],rows:t=[]}={})=>e.reduce(((e,l)=>{if("progress"!==l.type&&"percent"!==l.type)return e;const a=t.map(((e,t)=>Wo(ta({row:e,column:l,rowIndex:t})))).filter((e=>null!==e));return e[l.key]=a.length?Math.max(...a):0,e}),{}),jo=(e,t=2)=>{const l=Number(e);return Number.isInteger(l)&&l>=0&&l<=100?l:t},QV=(e,t,l=2)=>LV.includes(e)?"count"===e?t.length:t.length?"sum"===e?et.safeFixed(t.reduce(((e,t)=>e+t),0),l):"avg"===e?et.safeFixed(t.reduce(((e,t)=>e+t),0)/t.length,l):"min"===e?et.safeFixed(Math.min(...t),l):"max"===e?et.safeFixed(Math.max(...t),l):"":"":"",Go=e=>e?!0===e?{visible:!0,label:"-",precision:2}:{visible:!1!==e.visible,label:void 0!==e.label?e.label:"-",labelKey:e.labelKey,height:e.height,precision:jo(e.precision,2),data:e.data}:{visible:!1},YV=({columns:e=[],rows:t=[],summary:l}={})=>{const a=Go(l);if(!a.visible)return null;if(a.data)return a.data;const i=jo(a.precision,2),o=e.find((e=>"index"!==e.type&&"operation"!==e.type)),n=a.labelKey??o?.key;return e.reduce(((e,l)=>{if(l.key===n)return e[l.key]=a.label,e;if("function"==typeof l.summary){const a=t.map(((e,t)=>ta({row:e,column:l,rowIndex:t})));return e[l.key]=l.summary({rows:t,values:a,column:l}),e}if("string"==typeof l.summary){const a=t.map(((e,t)=>Wo(ta({row:e,column:l,rowIndex:t})))).filter((e=>null!==e));return e[l.key]=QV(l.summary,a,i),e}return e[l.key]="",e}),{})},KV=({props:e}={})=>{const t=e.rollingConfig||{};return{...t,direction:"v",mode:e.mode,visibleLength:Hl(e.visibleLength,5),debug:e.debug,showControl:e.showControl,seamless:e.seamless,interval:e.interval??t.interval,motionBlur:e.motionBlur,duration:e.duration??t.duration??null,delay:e.delay??t.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,hoverPause:e.hoverPause,resizeObserver:e.resizeObserver,fillData:e.fillData,slotObserver:!0,controlLayout:t.controlLayout??"reserve",controlDirection:t.controlDirection??"v"}},XV=({visibleLength:e,hasHeader:t,hasSummary:l,theadHeight:a,summaryHeight:i}={})=>{const o=t?Hl(a,40):0,n=l?Hl(i,40):0;return 42*Hl(e,5)+o+n},El=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollInnerSize=t.rollInnerSize??t.rollInnerSzie??e.rollInnerSize,e.rollItemSize=t.rollItemSize??t.rollItemSzie??e.rollItemSize,e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.disablePrev=t.disablePrev??t.disabelPrev??e.disablePrev,e.disableNext=t.disableNext??t.disabelNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.itemsLen=t.itemsLen??e.itemsLen,e.pageLen=t.pageLen??e.pageLen,e.disableRolling=t.disableRolling??e.disableRolling},Fo=(e=[])=>e.flatMap((e=>{if(Array.isArray(e?.children))return Fo(e.children);const t="string"==typeof e?.children&&!e.children.trim()&&"symbol"==typeof e?.type;return e&&!t?[e]:[]})),ZV=Object.assign({name:"TuiRollingTableCol"},{__name:"col",props:{type:{type:String,default:null,validator:e=>null===e||["text","string","index","progress","percent","operation","component"].includes(e)},column:{type:Object,default:null},columnIndex:{type:Number,default:null},row:{type:[Array,Object],default:null},rowIndex:{type:Number,default:null},value:{default:void 0},summary:Boolean},setup(e){const t=e,l=yt(),a=Se("TuiRollTable",null),i=Se("TuiRollTableRow",null),o=g((()=>a?.columns?.value||[])),n=g((()=>t.column||o.value[t.columnIndex]||{})),s=g((()=>t.row??i?.row?.value??null)),r=g((()=>t.rowIndex??i?.rowIndex?.value??-1)),d=g((()=>t.type||n.value.type||"text")),c=g((()=>!!i?.header?.value)),p=g((()=>!(!t.summary&&!i?.summary?.value))),v=g((()=>GV((c.value?n.value.headerAlign:null)||n.value.align))),m=g((()=>`is-align-${v.value}`)),y=g((()=>c.value?n.value.title??n.value.label??n.value.key??"":void 0!==t.value?t.value:ta({row:s.value,column:n.value,rowIndex:r.value}))),b=g((()=>c.value?y.value:FV({value:y.value,row:s.value,column:n.value,rowIndex:r.value}))),V=g((()=>{const e=n.value.cellClass;return"function"==typeof e?e({value:y.value,row:s.value,rowIndex:r.value,column:n.value}):e})),w=g((()=>{if(p.value||!a?.showRankings?.value)return a?.tagConfig?.value||{};let e=null;return 0===r.value&&(e="danger"),1===r.value&&(e="warning"),2===r.value&&(e="success"),{...a?.tagConfig?.value,...e&&{type:e}}})),q=g((()=>{const e={showValue:!0,strokeWidth:10,...a?.progressConfig?.value||{},...n.value.progressConfig||{}};return{...e,label:e.label??null,value:Number(y.value)||0,maxValue:e.maxValue??a?.progressMaxMap?.value?.[n.value.key]??0}})),x=g((()=>n.value.operations||a?.operations?.value||[])),S=g((()=>a?.buttonAppearance?.value||"plain")),k=g((()=>n.value.tipConfig||a?.tipConfig?.value));return(e,i)=>{const o=ke("TuiTextTip"),g=ke("TuiTag"),v=ke("TuiProgress"),B=ke("TuiButton");return A(),h("div",{class:P(["tui-rolling-table-col",m.value,n.value.class,c.value?n.value.headerClass:V.value,{"is-index":"index"===d.value,"is-head":c.value,"is-summary":p.value}])},[f(l).default?X(e.$slots,"default",{key:0}):c.value?(A(),Z(o,pt(Ne({key:1},k.value)),{default:W((()=>[De(F(b.value),1)])),_:1},16)):"index"!==d.value||p.value?"progress"===d.value||"percent"===d.value?(A(),h(ie,{key:3},[p.value&&""===y.value?C("",!0):(A(),Z(v,pt(Ne({key:0},q.value)),null,16))],64)):"operation"===d.value?(A(),h(ie,{key:4},[p.value?C("",!0):(A(!0),h(ie,{key:0},ze(x.value,(e=>(A(),Z(B,{key:e.value??e.label,size:"small",type:e.type,plain:"plain"===S.value,link:"link"===S.value,text:"text"===S.value,disabled:e.disabled,onClick:l=>(e=>{a?.emitOperation?.({operation:e,value:e.value,label:e.label,row:s.value,rowIndex:r.value,column:n.value,columnIndex:t.columnIndex})})(e)},{default:W((()=>[e.icon?(A(),h("i",{key:0,class:P(["tui-icon",e.icon])},null,2)):C("",!0),u("span",null,F(e.label),1)])),_:2},1032,["type","plain","link","text","disabled","onClick"])))),128))],64)):(A(),Z(o,pt(Ne({key:5},k.value)),{default:W((()=>[De(F(b.value),1)])),_:1},16)):(A(),Z(g,Ne({key:2,size:"small"},w.value),{default:W((()=>[De(F(b.value),1)])),_:1},16))],2)}}}),JV=Object.assign({name:"TuiRollingTable"},{__name:"index",props:{columns:{type:Array,default:()=>[]},rows:{type:Array,default:null},rowKey:{type:[String,Function],default:"id"},summary:{type:[Boolean,Object],default:!1},showHeader:{type:Boolean,default:!0},interval:Number,theadHeight:Number,summaryHeight:Number,visibleLength:{type:Number,default:5,validator:e=>e>0},mode:{type:String,default:"item",validator:e=>["page","item"].includes(e)},showControl:{type:Boolean,default:!0},seamless:{type:Boolean,default:!0},duration:{type:Number,default:null},delay:{type:Number,default:1e3},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},hoverPause:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},fillData:{type:Boolean,default:!1},motionBlur:{type:Boolean,default:!0},hasIndexCol:{type:Boolean,default:!1},indexTitle:{type:String,default:"#"},indexWidth:{type:[Number,String],default:48},showRankings:{type:Boolean,default:!1},operations:{type:Array,default:()=>[]},buttonAppearance:{type:String,default:"plain",validator:e=>["plain","link","text"].includes(e)},headerBG:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},headerFC:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},fontColor:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},oddRowBG:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},evenRowBG:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},rowBD:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},progressConfig:{type:Object,default:()=>({})},tipConfig:Object,tagConfig:Object,rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["operation","start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","resize","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=yt(),n=xe("rollTable"),s=S(null),r=S(!1),u=S(null),d=Pe({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,itemsLen:0,pageLen:1,disablePrev:!1,disableNext:!1,disableRolling:!1}),c=g((()=>Array.isArray(a.rows)?a.rows:[])),p=g((()=>Array.isArray(a.rows))),v=g((()=>WV({columns:a.columns,rows:c.value,hasIndexCol:a.hasIndexCol,indexTitle:a.indexTitle,indexWidth:a.indexWidth}))),m=g((()=>jV(v.value))),y=g((()=>UV({columns:v.value,rows:c.value}))),b=g((()=>Go(a.summary))),V=g((()=>!!o.header||a.showHeader&&v.value.length)),w=g((()=>!!o.summary||b.value.visible)),x=g((()=>a.summaryHeight??b.value.height)),k=g((()=>YV({columns:v.value,rows:c.value,summary:a.summary}))),B=g((()=>KV({props:a}))),T=g((()=>pe("cpt-rolltb",{outerH:`${XV({visibleLength:a.visibleLength,hasHeader:V.value,hasSummary:w.value,theadHeight:a.theadHeight,summaryHeight:x.value})}px`,gridCols:m.value,...q("headBg",a.headerBG),...q("headFc",a.headerFC),...q("fc",a.fontColor),...q("rowBd",a.rowBD),...q("oddBg",a.oddRowBG),...q("evenBg",a.evenRowBG),...q("headLh",a.theadHeight,"px"),...q("summaryH",x.value,"px")}))),$=(e,t,l)=>{u.value=e,El(d,e),((e,t={})=>{a.debug&&console.log(`[TuiRollingTable:${n}] ${e}`,t)})("update",{info:e,from:t,action:l}),i("update",e,t,l)},z=e=>{u.value=e,El(d,e),i("start",e)},R=(e,t,l)=>{u.value=t,El(d,t),i("rolling",e,t,l)},N=(e,t)=>{u.value=t,El(d,t),i("change",e,t)},M=e=>i("before-roll",e),O=e=>i("after-roll",e),D=(e,t)=>i("play",e,t),I=(e,t)=>i("stop",e,t),_=(e,t)=>i("pause",e,t),F=(e,t)=>i("resume",e,t),E=e=>i("resize",e),L=e=>i("wheel",e),j=()=>s.value?.getInfo?.()||u.value||{state:d};return rt("TuiRollTable",{columns:v,rows:c,progressConfig:g((()=>a.progressConfig||{})),tipConfig:g((()=>a.tipConfig)),tagConfig:g((()=>a.tagConfig)),operations:g((()=>a.operations||[])),buttonAppearance:g((()=>a.buttonAppearance)),showRankings:g((()=>a.showRankings)),progressMaxMap:y,emitOperation:e=>{i("operation",e)}}),ye((()=>{r.value=!0})),t({state:d,play:(...e)=>s.value?.play?.(...e),stop:(...e)=>s.value?.stop?.(...e),pause:(...e)=>s.value?.pause?.(...e),resume:(...e)=>s.value?.resume?.(...e),toggle:(...e)=>s.value?.toggle?.(...e),prev:(...e)=>s.value?.prev?.(...e),next:(...e)=>s.value?.next?.(...e),goTo:(...e)=>s.value?.goTo?.(...e),getInfo:j,getState:j,forceUpdate:(...e)=>s.value?.forceUpdate?.(...e),isRolling:()=>s.value?.isRolling?.()||!1,isDisabled:()=>s.value?.isDisabled?.()||!1,scrollToStart:(...e)=>s.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>s.value?.scrollToEnd?.(...e)}),(t,l)=>{const a=ke("TuiRollingTableRow"),i=ke("TuiRolling");return A(),h("div",{class:P(["tui-rolling-table",{"is-initing":!r.value}]),style:fe(T.value)},[r.value?(A(),Z(i,Ne({key:0},B.value,{class:"tui-rolltb-rolling",ref_key:"rollingRef",ref:s,onStart:z,onRolling:R,onUpdate:$,onChange:N,onBeforeRoll:M,onAfterRoll:O,onPlay:D,onStop:I,onPause:_,onResume:F,onResize:E,onWheel:L}),jt({default:W((()=>[p.value?(A(!0),h(ie,{key:0},ze(c.value,((t,l)=>(A(),Z(a,{key:f(HV)(t,l,e.rowKey),index:l,data:t},null,8,["index","data"])))),128)):X(t.$slots,"default",{key:1})])),_:2},[V.value?{name:"header",fn:W((()=>[t.$slots.header?X(t.$slots,"header",{key:0,columns:v.value,rows:c.value}):(A(),Z(a,{key:1,header:""}))])),key:"0"}:void 0,w.value?{name:"footer",fn:W((()=>[t.$slots.summary?X(t.$slots,"summary",{key:0,columns:v.value,rows:c.value,summary:k.value}):k.value?(A(),Z(a,{key:1,data:k.value,summary:""},null,8,["data"])):C("",!0)])),key:"1"}:void 0]),1040)):C("",!0)],6)}}}),ew=Object.assign({name:"TuiRollingTableRow"},{__name:"row",props:{data:{type:[Array,Object],default:null},index:{type:Number,default:null,validator:e=>null===e||e>=0},header:Boolean,summary:Boolean},setup(e){const t=e,l=yt(),a=Se("TuiRollTable",null),i=g((()=>a?.columns?.value||[])),o=g((()=>!!l.default)),n=g((()=>t.header||t.summary)),s=g((()=>n.value?-1:t.index??-1)),r=g((()=>n.value?"div":"TuiRollingItem")),u=g((()=>["tui-rolltb-row",t.header&&"tui-rolltb-head",t.summary&&"tui-rolltb-summary",!n.value&&"tui-rolling-table-row"])),d=g((()=>Fo(l.default?.()||[]).map(((e,l)=>zn(e,{column:i.value[l],columnIndex:l,row:t.data,rowIndex:s.value})))));return rt("TuiRollTableRow",{row:g((()=>t.data)),rowIndex:s,header:g((()=>t.header)),summary:g((()=>t.summary))}),(t,l)=>{const a=ke("TuiRollingTableCol");return A(),Z(ct(r.value),{class:P(u.value)},{default:W((()=>[o.value?(A(!0),h(ie,{key:0},ze(d.value,((e,t)=>(A(),Z(ct(e),{key:e.key??`slot-col-${t}`})))),128)):(A(!0),h(ie,{key:1},ze(i.value,((t,l)=>(A(),Z(a,{key:t.id,column:t,columnIndex:l,row:e.data,rowIndex:s.value},null,8,["column","columnIndex","row","rowIndex"])))),128))])),_:1},8,["class"])}}}),tw={key:1,class:"tui-btop-text"},lw=Object.assign({name:"TuiBackTop"},{__name:"index",props:{target:{type:[String,Object,Element],default:null},threshold:{type:Number,default:300},behavior:{type:String,default:"smooth",validator:e=>["smooth","auto","instant"].includes(e)},right:{type:[String,Number],default:25},bottom:{type:[String,Number],default:40},zIndex:{type:Number,default:1e3},appendTo:{type:[String,Object,Element],default:null},position:{type:String,default:null,validator:e=>null==e||["fixed","absolute"].includes(e)},alwaysShow:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{type:String,default:"tui-icon ti-arrow-to-up"},text:{type:String,default:""},shape:{type:String,default:"square",validator:e=>["square","round","pill"].includes(e)},className:{type:String,default:""},customStyle:{type:[String,Object,Array],default:""}},emits:["click","show","hide"],setup(e,{expose:t,emit:l}){const a=e,i=l,{$optFloaterTo:o}=Se("$global",null)||{},n=xe("backTop"),s=S(!0),r=S(!1),u=S(null);let d=null,c=0;const p=g((()=>a.appendTo||o?.value||"#tuiRoot")),f=g((()=>{const e=a.position||(a.appendTo?"absolute":"fixed");return[pe("cpt-btop",{...q("right",a.right,"smart"),...q("btm",a.bottom,"smart"),z:a.zIndex,pos:e}),a.customStyle]})),v=(e=a.target)=>e?"string"==typeof e?document.querySelector(e):e?.value?v(e.value):e?.$el?e.$el:e:null,m=e=>{r.value!==e&&(r.value=e,i(e?"show":"hide"))},y=()=>{if(a.disabled)return void m(!1);if(a.alwaysShow)return void m(!0);const e=u.value;if(!e)return void m(!1);const t=(e=>e?.scrollTop||0)(e)>a.threshold;m(t)},b=()=>{d&&(We.remove(d,"scroll",n),d=null)},V=()=>{const e=u.value||v();e&&(i("click"),e.scrollTo({top:0,behavior:a.behavior}))};return K((()=>[a.target,a.disabled,a.alwaysShow]),(()=>{(async()=>{const e=++c;if(b(),await de(),e!==c)return;const t=v();u.value=t,!t||a.disabled||a.alwaysShow||(d=t,We.add(d,"scroll",y,n)),y()})()}),{flush:"post"}),K((()=>a.threshold),(()=>{y()})),ye((()=>{s.value=!1})),At((()=>{c++,b(),s.value=!0})),t({scrollToTop:V,update:y,show:()=>m(!0),hide:()=>m(!1),getVisible:()=>r.value}),(t,l)=>s.value?C("",!0):(A(),Z(Tt,{key:0,to:p.value,fallback:"#app",disabled:s.value},[ce(Me,{name:"back-top-fade"},{default:W((()=>[r.value&&!e.disabled?(A(),h("div",{key:0,class:P(["tui-back-top",`is-${e.shape}`,e.className]),style:fe(f.value),onClick:V},[X(t.$slots,"default",{},(()=>[e.icon?(A(),h("i",{key:0,class:P(e.icon)},null,2)):C("",!0),e.text?(A(),h("span",tw,F(e.text),1)):C("",!0)]))],6)):C("",!0)])),_:3})],8,["to","disabled"]))}}),aw={class:"tui-ept-text"},nw=Object.assign({name:"TuiEmpty"},{__name:"index",props:{size:{type:String,default:null,validator:e=>["small","large"].includes(e)},buttonType:{type:String,default:"default",validator:e=>["primary","success","warning","danger","info","default","emphasis","focus"].includes(e)},icon:{type:String,default:"tui-icon ti-alert-circle"},showButton:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},text:String,buttonClick:Function,buttonText:String},setup(e){const{proxy:{$tService:{i18n:t}}}=ut(),l=e,a=g((()=>l.text||t("empty.text"))),i=g((()=>l.buttonText||t("empty.buttonText")));return(t,l)=>{const o=ke("TuiButton");return A(),h("span",{class:P(["tui-empty",e.size&&`tui-size-${e.size}`,{"is-bordered":e.bordered}])},[u("i",{class:P(`tui-empty-icon ${e.icon}`)},null,2),X(t.$slots,"default",{},(()=>[u("span",aw,F(a.value),1)])),e.showButton?(A(),Z(o,{key:0,size:e.size,type:e.buttonType,onClick:e.buttonClick},{default:W((()=>[De(F(i.value),1)])),_:1},8,["size","type","onClick"])):C("",!0)],2)}}}),ow=Object.assign({name:"TuiLoaderPanel"},{__name:"index",props:{loading:{type:Boolean,default:!0},inited:{type:Boolean,default:!1},loadingOpacity:{type:Number,default:.2},zIndex:Number,size:Number,color:String,update:Boolean,mask:{type:Boolean,default:!1},maskModal:{type:Boolean,default:!0},maskColorReverse:{type:Boolean,default:!1},maskBorderRadius:Number,maskBlur:{type:String,default:"auto",validator:e=>["auto","always","none"].includes(e)},pointEvent:{type:String,default:"all",validator:e=>["none","all"].includes(e)}},setup(e){const{$globalState:t}=Se("$global"),l=e;K((()=>l.inited),(e=>{!0===e&&t.value.portletCounter++}));const a=g((()=>pe("cpt-lp",{...q("opa",l.loadingOpacity,{type:"number",zero:!0})})));return(e,t)=>{const i=ke("TuiLoadingArea");return A(),h("div",{class:"tui-loader-panel",style:fe(a.value)},[ce(i,{"model-value":l.loading,"z-index":l.zIndex,size:l.size,color:l.color,update:l.update,mask:l.mask,"mask-modal":l.maskModal,"mask-color-reverse":l.maskColorReverse,"mask-border-radius":l.maskBorderRadius,"mask-blur":l.maskBlur,"point-event":l.pointEvent},null,8,["model-value","z-index","size","color","update","mask","mask-modal","mask-color-reverse","mask-border-radius","mask-blur","point-event"]),u("div",{class:P(["tui-lp-slot",{"is-loading":l.loading}])},[X(e.$slots,"default")],2)],4)}}}),iw={key:0,class:"svg-icon spinner-area"},sw=Object.assign({name:"TuiLoadingArea",inheritAttrs:!1},{__name:"LoadingArea",props:{zIndex:Number,size:Number,color:String,update:Boolean,mask:{type:Boolean,default:!1},maskModal:{type:Boolean,default:!0},maskColorReverse:{type:Boolean,default:!1},maskBorderRadius:Number,maskBlur:{type:String,default:"auto",validator:e=>["auto","always","none"].includes(e)},pointEvent:{type:String,default:"all",validator:e=>["none","all"].includes(e)},modelValue:{type:Boolean,default:!0}},setup(e){const{proxy:t}=ut(),{$tState:l,$tState:{spinnerConfig:a},$tService:{initSpinner:i}}=t,o=aa(),n=S(!1),s=xe("loadArea"),r=e,u=g((()=>r.modelValue)),d=g((()=>r.color||a.area.color)),c=g((()=>r.size||a.area.size)),p=g((()=>pe("cpt-loda",{...q("fc",d.value),...q("size",c.value,"px"),...q("z",r.zIndex),...q("pe",r.pointEvent)})));return K(u,(e=>{e?(n.value=!0,he.c(s+"_ti")):he.s(s+"_ti",(()=>{n.value=!1}),500)}),{immediate:!0}),ye((()=>{r.color&&r.update&&(a.area.color=r.color),r.size&&r.update&&(a.area.size=r.size),Ze.el("#styleSpinners")||i()})),Dt((()=>{he.c(s+"_ti")})),(t,l)=>{const a=ke("TuiMask");return A(),h(ie,null,[ce(Me,{name:"fade"},{default:W((()=>[u.value?(A(),h("div",Ne({key:0},f(o),{class:["tui-loading-area",{"is-ani-on":n.value,"is-ani-off":!n.value}],style:p.value}),[n.value?(A(),h("i",iw)):C("",!0)],16)):C("",!0)])),_:1}),e.mask?(A(),Z(a,{key:0,"model-value":u.value,mode:"area",modal:e.maskModal,"area-color-reverse":e.maskColorReverse,"area-border-radius":e.maskBorderRadius,"area-blur":e.maskBlur,"z-index":e.zIndex},null,8,["model-value","modal","area-color-reverse","area-border-radius","area-blur","z-index"])):C("",!0)],64)}}}),rw={key:0,class:"tui-icon ti-angle-left"},Aw={key:1,class:"tui-icon ti-angle-up"},uw={key:0,class:"tui-icon ti-angle-right"},cw={key:1,class:"tui-icon ti-angle-down"},dw={key:2,class:"tui-ss-page"},fw=Object.assign({name:"TuiStepScroller"},{__name:"step",props:{border:{type:String,default:"auto",validator:e=>["auto","none","always"].includes(e)},controlPosition:{type:String,default:"both",validator:e=>["float","start","end","both"].includes(e)},controlSize:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},scrollMode:{type:String,default:"full",validator:e=>["full","half"].includes(e)},showControl:{type:Boolean,default:!0},showPagination:{type:Boolean,default:!0},wheelScroll:{type:Boolean,default:!0},resizeObserver:{type:String,default:"self",validator:e=>["self","global","none"].includes(e)}},setup(e,{expose:t}){const{$optResizeCounter:l,initResizeBy:a}=Se("$global",null),i=a(),o=e,n=S(!1),s=S(null),r=S(null);K((()=>l.value),((e,t)=>{"root"==i.value(o.resizeObserver)&&e>t&&m()}));const d=xe("stepscrl"),c=Pe({curPage:0,maxPage:1,outerSize:0,innerSize:0,needScroll:!1,disablePrev:!0,disableNext:!0}),p=()=>{let e=0,t=0;const{clientWidth:l,clientHeight:a}=s.value,{scrollWidth:i,scrollHeight:n}=r.value;return"h"==o.direction?(e=i,t=l):(e=n,t=a),{innerSize:e,outerSize:t}},v=()=>{c.disablePrev=c.curPage<=0,c.disableNext=c.curPage>=c.maxPage-1},m=async()=>{if(await de(),!s.value||!r.value)return;const e=c.curPage,t=p();if(c.needScroll=t.innerSize>t.outerSize,c.innerSize=t.innerSize,c.outerSize=t.outerSize,await de(),c.needScroll){const e=p();c.needScroll=e.innerSize>e.outerSize,c.innerSize=e.innerSize,c.outerSize=e.outerSize}c.maxPage=c.needScroll?Math.max(1,Math.ceil(c.innerSize/c.outerSize)):1,c.curPage=c.needScroll?Math.min(Math.max(e,0),c.maxPage-1):0,v(),n.value||(n.value=!0)},y=g((()=>c.curPage>0)),b=g((()=>c.curPage<c.maxPage-1));K([y,b],(()=>{v()}),{immediate:!0});const V=g((()=>o.showControl&&c.needScroll)),w=g((()=>o.showPagination&&c.needScroll)),q=g((()=>{const e=c.curPage*c.outerSize;return pe("cpt-ss",{tsf:`translate${"h"===o.direction?"X":"Y"}(-${e}px)`})})),x=(e=-1,t=!0)=>{s.value&&et.isNEG0(e)&&e>-1&&(c.curPage=Math.min(Math.max(e,0),Math.max(c.maxPage-1,0)),v())},k=()=>{n.value&&(c.needScroll=!1,c.curPage=0,c.maxPage=1,c.outerSize=0,c.innerSize=0,c.disablePrev=!0,c.disableNext=!0,n.value=!1)},B=(e,t=null)=>{y.value&&(t?c.curPage=et.safeFixed(c.curPage-t,1):"full"==o.scrollMode?et.isNEG0(c.curPage)&&(c.curPage=Math.ceil(Math.max(0,c.curPage-1))):c.curPage-=.5,v())},T=(e,t=null)=>{b.value&&(t?c.curPage=et.safeFixed(c.curPage+t,1):"full"==o.scrollMode?et.isNEG0(c.curPage)&&(c.curPage=Math.floor(Math.min(c.curPage+1,c.maxPage))):c.curPage+=.5,v())},$=()=>({...c,direction:o.direction,scrollMode:o.scrollMode,canScrollStart:y.value,canScrollEnd:b.value}),z=(e=!1)=>{e&&k(),m()},R=We.throttle((e=>{e.deltaY>0||e.deltaX>0?T(0,.1):(e.deltaY<0||e.deltaX<0)&&B(0,.1)}),50),N=e=>{e.preventDefault(),R(e)};return ye((()=>{o.wheelScroll&&We.add(s.value,"wheel",N,d,{passive:!1}),r.value&&Yl.o(r.value,(()=>{m()}),{childList:!0,subtree:!1},100)})),Dt((()=>{Yl.d(r.value),o.wheelScroll&&We.remove(s.value,"wheel",d)})),K([()=>o.controlPosition,()=>o.direction],(()=>{m()})),rt("TuiScroller",{scrollTo:x,next:T,prev:B,initSize:m,resetScrollInner:k,getInfo:$,forceUpdate:z,state:c,border:o.border}),t({scrollTo:x,next:T,prev:B,initSize:m,resetScrollInner:k,getInfo:$,forceUpdate:z,state:c}),(t,l)=>{const a=Fe("tui-resize");return A(),h("div",{class:P(["tui-step-scroller",`is-btn-pos-${e.controlPosition}`,`is-btn-size-${e.controlSize}`,`is-border-${e.border}`,""+(c.needScroll?"is-scroll-active":"is-scroll-inactive"),{"is-horizontal":"h"==e.direction,"is-vertical":"v"==e.direction,"is-inited":n.value,"is-preparing":!n.value}]),style:fe(q.value)},[we((A(),h("div",{ref_key:"scrollOuterRef",ref:s,class:"tui-ss-outer"},[u("div",{ref_key:"scrollInnerRef",ref:r,class:"tui-ss-inner"},[X(t.$slots,"default")],512)])),[[a,{callback:m,disabled:"self"!=f(i)(e.resizeObserver)&&n.value,uid:f(d)}]]),V.value?(A(),h("div",{key:0,class:P(["tui-ss-btn tui-ss-btn-sta",{"is-disabled":!y.value}]),onClick:B},["h"==o.direction?(A(),h("i",rw)):(A(),h("i",Aw))],2)):C("",!0),V.value?(A(),h("div",{key:1,class:P(["tui-ss-btn tui-ss-btn-end",{"is-disabled":!b.value}]),onClick:T},["h"==o.direction?(A(),h("i",uw)):(A(),h("i",cw))],2)):C("",!0),w.value?(A(),h("div",dw,F(c.curPage+1)+"/"+F(c.maxPage),1)):C("",!0)],6)}}}),pw={key:0,class:"tui-icon ti-angle-left"},gw={key:1,class:"tui-icon ti-angle-up"},hw={key:0,class:"tui-icon ti-angle-right"},vw={key:1,class:"tui-icon ti-angle-down"},mw=Object.assign({name:"TuiVirtualScroller"},{__name:"virtual",props:{border:{type:String,default:"auto",validator:e=>["auto","none","always"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},controlType:{type:String,default:"scrollbar",validator:e=>["button","scrollbar","none"].includes(e)},buttonPosition:{type:String,default:"both",validator:e=>["float","start","end","both"].includes(e)},buttonSize:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},scrollSpeed:{type:Number,default:1},scrollbarSize:{type:String,default:"small",validator:e=>["mini","small","default","large","xlarge"].includes(e)},resizeObserver:{type:String,default:"self",validator:e=>["self","global","none"].includes(e)}},setup(e,{expose:t}){const{$optResizeCounter:l,initResizeBy:a}=Se("$global",null),i=a(),o=e,n=xe("virtscrl"),s=S(null),r=S(null),d=S(null),c=S(!1),p=S(!1),v=S(0),m=S(0),y=S(null),b=Pe({scrollPosition:0,maxScroll:0,needScroll:!1,disablePrev:!0,disableNext:!0}),V=()=>{b.disablePrev=b.scrollPosition<=0,b.disableNext=b.scrollPosition>=b.maxScroll},w=g((()=>s.value&&r.value?pe("cpt-vs",{tsf:"h"===o.direction?`translateX(-${b.scrollPosition}px)`:`translateY(-${b.scrollPosition}px)`}):{})),q=g((()=>{if(!s.value||!r.value)return{};const e=s.value,t=r.value;let l,a,i,n;return"h"===o.direction?(l=e.clientWidth,a=t.scrollWidth,i=Math.max(20,l/a*l),n=b.maxScroll>0?b.scrollPosition/b.maxScroll*(l-i):0):(l=e.clientHeight,a=t.scrollHeight,i=Math.max(20,l/a*l),n=b.maxScroll>0?b.scrollPosition/b.maxScroll*(l-i):0),pe("cpt-vs-thumb",{["h"===o.direction?"width":"height"]:`${i}px`,tsf:"h"===o.direction?`translateX(${n}px)`:`translateY(${n}px)`})})),x=g((()=>b.scrollPosition>0)),k=g((()=>b.scrollPosition<b.maxScroll)),B=g((()=>b.scrollPosition>0)),T=g((()=>b.scrollPosition<b.maxScroll)),$=g((()=>"h"==o.direction?B.value||T.value:x.value||k.value));K($,(e=>{b.needScroll=e}),{immediate:!0});const z=(e=0)=>{b.scrollPosition=Math.max(0,Math.min(b.maxScroll,e)),V()},R=(e=50)=>{z(b.scrollPosition-e)},N=(e=50)=>{z(b.scrollPosition+e)},M=We.throttle((e=>{const t="h"===o.direction&&e.deltaX||e.deltaY;N(t*o.scrollSpeed)}),50),O=e=>{e.preventDefault(),M(e)},D=(e,t)=>{if(!s.value||!r.value)return;const l=s.value,a=r.value;"h"===o.direction?b.maxScroll=Math.max(0,a.scrollWidth-l.clientWidth):b.maxScroll=Math.max(0,a.scrollHeight-l.clientHeight),b.scrollPosition=Math.max(0,Math.min(b.maxScroll,b.scrollPosition)),b.needScroll=b.maxScroll>0,V(),c.value||(c.value=!0)},I=e=>{if(e.target===d.value)return;const t=e.currentTarget.getBoundingClientRect(),l="h"===o.direction?e.clientX-t.left:e.clientY-t.top,a="h"===o.direction?s.value.clientWidth:s.value.clientHeight,i="h"===o.direction?d.value.offsetWidth:d.value.offsetHeight,n=(l-i/2)/(a-i)*b.maxScroll;z(n)},W=e=>{e.stopPropagation(),p.value=!0,v.value="h"===o.direction?e.clientX:e.clientY,m.value=b.scrollPosition,We.add(document,"mousemove",_,n),We.add(document,"mouseup",F,n)},_=e=>{if(!p.value)return;const t=(("h"===o.direction?e.clientX:e.clientY)-v.value)/(("h"===o.direction?s.value.clientWidth:s.value.clientHeight)-("h"===o.direction?d.value.offsetWidth:d.value.offsetHeight))*b.maxScroll,l=m.value+t;z(l)},F=()=>{p.value=!1,We.remove(document,"mousemove",n),We.remove(document,"mouseup",n)},E=e=>{const t=50*o.scrollSpeed,l=()=>{"start"===e?R(t):N(t)};l(),y.value=setInterval(l,100)},L=()=>{y.value&&(clearInterval(y.value),y.value=null)};return K((()=>l.value),((e,t)=>{"root"==i.value(o.resizeObserver)&&e>t&&D()})),ye((()=>{s.value&&r.value&&(Yl.o(r.value,(()=>{D()}),{childList:!0,subtree:!1},100),We.add(s.value,"wheel",O,n,{passive:!1}),D())})),Dt((()=>{Yl.d(r.value),We.remove(document,"mousemove",n),We.remove(document,"mouseup",n),We.remove(s.value,"wheel",n),L()})),K([()=>o.direction,()=>o.controlType,()=>o.buttonSize],(()=>{b.scrollPosition=0,D()})),t({scrollTo:z,scrollToTop:()=>{z(0)},scrollToBottom:()=>{z(b.maxScroll)},next:N,prev:R,getInfo:()=>({...b,direction:o.direction,controlType:o.controlType}),forceUpdate:()=>{D()},state:b}),(t,l)=>{const a=Fe("tui-resize");return A(),h("div",{class:P(["tui-virtual-scroller",`is-ctrl-type-${e.controlType}`,`is-border-${e.border}`,""+($.value?"is-scroll-active":"is-scroll-inactive"),"button"==e.controlType&&`is-btn-pos-${e.buttonPosition} is-btn-size-${e.buttonSize}`,{"is-horizontal":"h"===e.direction,"is-vertical":"v"===e.direction}]),style:fe(w.value)},[we((A(),h("div",{ref_key:"scrollOuterRef",ref:s,class:"tui-vs-outer"},[u("div",{ref_key:"scrollInnerRef",ref:r,class:"tui-vs-inner"},[X(t.$slots,"default")],512)])),[[a,{callback:e=>D(),disabled:"self"!=f(i)(e.resizeObserver)&&c.value,uid:f(n)}]]),$.value?(A(),h(ie,{key:0},["scrollbar"===e.controlType?(A(),h("div",{key:0,class:P(["tui-vs-bar",`is-bar-size-${e.scrollbarSize}`,{"is-horizontal":"h"===e.direction,"is-vertical":"v"===e.direction}]),onMousedown:I},[u("div",{ref_key:"thumbRef",ref:d,class:"tui-vs-bar-thumb",style:fe(q.value),onMousedown:W},null,36)],34)):C("",!0),"button"===e.controlType?(A(),h(ie,{key:1},[u("div",{class:P(["tui-vs-btn tui-vs-btn-sta",{"is-disabled":"h"==o.direction?!B.value:!x.value}]),onMousedown:l[0]||(l[0]=e=>E("start")),onMouseup:L,onMouseleave:L},["h"==o.direction?(A(),h("i",pw)):(A(),h("i",gw))],34),u("div",{class:P(["tui-vs-btn tui-vs-btn-end",{"is-disabled":"h"==o.direction?!T.value:!k.value}]),onMousedown:l[1]||(l[1]=e=>E("end")),onMouseup:L,onMouseleave:L},["h"==o.direction?(A(),h("i",hw)):(A(),h("i",vw))],34)],64)):C("",!0)],64)):C("",!0)],6)}}}),Ra={maxWidth:Number,offset:Number,lines:{type:Number,default:null},textDirection:{type:String,default:"h",validator:e=>["h","v",null].includes(e)},delay:{type:Number,default:1e3},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},type:{type:String,default:"invert",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},appearance:{type:String,default:"popTip",validator:e=>["popTip","curtip"].includes(e)},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)}},yw=["data-lines","data-ellipsis"],bw=Object.assign({name:"TuiTextCurtip"},{__name:"textCurTip",props:{...Ra,placement:{type:String,default:"bottom-start",validator:e=>["top-start","top-end","bottom-start","bottom-end"].includes(e)}},setup(e){const{$optFloaterTo:t}=Se("$global",null),l=e,a=S(null),i=S(!1),o=S(""),n=S(0),s=async()=>{const e=a.value;if(e&&(o.value=e.textContent||"",l.lines&&l.lines>1||"v"==l.textDirection?i.value=e.scrollHeight>e.clientHeight:i.value=e.scrollWidth>e.clientWidth,!l.maxWidth))if(t.value.includes("tuiAdpt"))n.value=a.value?.clientWidth||0;else{const e=a.value?.getBoundingClientRect();e?.width&&(n.value=e?.width||0)}};return K((()=>l.lines),(()=>{de(s)})),ye((()=>{de(s)})),(t,l)=>{const r=Fe("tui-cursor-tip");return we((A(),h("div",{"data-lines":t.lines,"data-ellipsis":i.value,ref_key:"textRef",ref:a,onMouseenterCapture:s},[X(t.$slots,"default")],40,yw)),[[r,{placement:e.placement,delay:t.delay,type:t.type,backgroundBlur:t.backgroundBlur,transparent:t.transparent,tone:t.tone,maxWidth:t.maxWidth||n.value>200?n.value:200,disabled:!i.value,content:o.value,offset:t.offset}]])}}}),Vw=["data-lines","data-ellipsis"],ww=Object.assign({name:"TuiTextPopTip"},{__name:"textPopTip",props:{...Ra,placement:{type:String,default:"bottom",validator:e=>["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e)}},setup(e){const{$optFloaterTo:t}=Se("$global",null),l=e,a=S(null),i=S(!1),o=S(""),n=S(0),s=async()=>{const e=a.value;if(e&&(o.value=e.textContent||"",l.lines&&l.lines>1||"v"==l.textDirection?i.value=e.scrollHeight>e.clientHeight:i.value=e.scrollWidth>e.clientWidth,!l.maxWidth))if(t.value.includes("tuiAdpt"))n.value=a.value?.clientWidth||0;else{const e=a.value?.getBoundingClientRect();e?.width&&(n.value=e?.width||0)}};return K((()=>l.lines),(()=>{de(s)})),ye((()=>{de(s)})),(t,l)=>{const r=Fe("tui-popover");return we((A(),h("div",{"data-lines":t.lines,"data-ellipsis":i.value,ref_key:"textRef",ref:a,onMouseenterCapture:s},[X(t.$slots,"default")],40,Vw)),[[r,{placement:e.placement,delay:t.delay,type:t.type,backgroundBlur:t.backgroundBlur,transparent:t.transparent,tone:t.tone,maxWidth:t.maxWidth||n.value>200?n.value:200,disabled:!i.value,content:o.value,offset:t.offset}]])}}}),Cw=Object.assign({name:"TuiTextTip"},{__name:"index",props:{...Ra,placement:String},setup(e){const t=e,l=g((()=>pe("cpt-ttip",{...q("lines",t.lines)}))),a=g((()=>"popTip"==t.appearance?ww:bw)),i=S(!1);return ye((()=>{i.value=!0})),(e,o)=>i.value?(A(),Z(ct(a.value),Ne({key:0,class:["tui-text-tip",e.lines&&1!=e.lines?"is-multiple":"is-single"],style:l.value},t),{default:W((()=>[X(e.$slots,"default")])),_:3},16,["class","style"])):C("",!0)}}),$w={class:"tui-dlg-title"},kw={class:"tui-dlg-body"},Sw={key:1,class:"tui-dlg-footer"},Ho=Object.assign({name:"TuiDialogBase"},{__name:"base",props:{fullscreen:Boolean,title:String,appendTo:String,center:Boolean,overflow:Boolean,divider:Boolean,showClose:Boolean,dragContainment:Boolean,draggable:Boolean,hideHeader:Boolean,hideFooter:Boolean,closeIcon:{type:String,default:"tui-icon ti-times"},positionType:{type:String,default:"transform",validator:e=>["absolute","fixed","transform"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},customColor:[String,Array],typedConfig:Object,visibleInner:Boolean,uid:String},emits:["close","confirm"],setup(e,{expose:t,emit:l}){const{i18n:a}=Se("$global",null),i=e,o=l,n=S(null),s=S(null),r=g((()=>i.title||"Title")),d=g((()=>i.draggable&&!i.fullscreen&&!i.hideHeader)),c=g((()=>({enabled:d.value,trigger:".tui-dlg-header",exclude:".tui-dlg-close",containment:i.dragContainment,positionType:i.positionType,inAdpt:i.appendTo?.includes("tuiAdpt"),uid:i.uid}))),p=g((()=>({transparent:!1,appearance:"background",customColor:i.customColor,type:i.type,...i.typedConfig}))),v=()=>{o("close")},m=()=>{o("confirm")};return t({dialogRef:n,headerRef:s}),(t,l)=>{const i=ke("TuiButton"),o=ke("TuiTyped"),g=Fe("tui-drag");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["tui-dlg-inner",`is-pos-${e.positionType||"relative"}`,{"is-fullscreen":e.fullscreen,"is-center":e.center,"is-overflow":e.overflow,"is-divider":e.divider}]),role:"dialog",ref_key:"dialogRef",ref:n,onClick:l[0]||(l[0]=st((()=>{}),["stop"]))},[we(ce(o,pt(Vt(p.value)),{default:W((()=>[e.hideHeader?C("",!0):(A(),h("div",{key:0,class:P(["tui-dlg-header",{"is-draggable":d.value}]),ref_key:"headerRef",ref:s},[X(t.$slots,"header",{},(()=>[u("span",$w,F(r.value),1)])),e.showClose?(A(),h("div",{key:0,class:"tui-dlg-close",onClick:v},[u("i",{class:P(e.closeIcon)},null,2)])):C("",!0)],2)),u("div",kw,[X(t.$slots,"default")]),e.hideFooter?C("",!0):(A(),h("div",Sw,[X(t.$slots,"footer",{},(()=>[ce(i,{onClick:v},{default:W((()=>[De(F(f(a)("common.cancel")),1)])),_:1}),ce(i,{type:"default"==e.type||"invert"==e.type?"primary":e.type,customColor:e.customColor,onClick:m},{default:W((()=>[De(F(f(a)("common.confirm")),1)])),_:1},8,["type","customColor"])]))]))])),_:3},16),[[Oe,e.visibleInner]])],2)),[[g,c.value]])])),_:3})}}}),Ht=S(0),Ll=S(0),qw=500,Tw=Object.assign({name:"TuiDialog"},{__name:"index",props:{top:[String,Number],fullscreen:Boolean,modelValue:Boolean,title:String,modalClass:String,beforeClose:Function,overflow:Boolean,center:Boolean,destroyOnClose:Boolean,appendTo:String,modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},divider:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},dragContainment:{type:Boolean,default:!0},resetDragOnClose:{type:Boolean,default:!0},alignCenter:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},zIndex:{type:Number,default:null},width:{type:[String,Number],default:null},closeIcon:{type:String,default:"tui-icon ti-times"},positionType:{type:String,default:"transform",validator:e=>["absolute","fixed","transform"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},customColor:[String,Array],typedConfig:Object},emits:["update:modelValue","open","opened","close","closed","confirm","open-auto-focus","close-auto-focus"],setup(e,{emit:t}){const{proxy:{$tMask:l,$tMaskClose:a,$tService:i}}=ut(),{$gClickCounter:o,$gEscCounter:n,$optFloaterTo:s}=Se("$global",null),r=e,u=S(!0),d=yt(),c=g((()=>r.appendTo||s.value)),p=t,v=S(!1),m=S(!1),y=S(null),b=S(null),V=S(0),w=xe("dialog");let x=!1,k=!1;const B=g((()=>[pe("cpt-dlg",{...q("w",r.width,"smart"),...q("top",r.top,"smart"),z:r.zIndex||2001+V.value})]));let T=null;const P=()=>{T&&(T(),T=null)},$=()=>{r.beforeClose?r.beforeClose((()=>D())):D()},z=()=>{r.closeOnBackdrop&&1==Ht.value&&$()};K((()=>n.value),(()=>{v.value&&r.closeOnEsc&&Ht.value==V.value&&$()}));const R=()=>{r.beforeClose?r.beforeClose((()=>D())):D(),p("confirm")},N=()=>(y.value.offsetWidth-b.value.dialogRef.offsetWidth)/2+30*(V.value-1)+"px",M=()=>{if(r.alignCenter){return(y.value.offsetHeight-b.value.dialogRef.offsetHeight)/2+"px"}return r.top?"string"==Qe(r.top)?r.top:"number"==Qe(r.top)?r.top+"px":void 0:100+30*V.value+"px"},O=async()=>{x||(x=!0,v.value=!0,p("open"),Ht.value++,V.value=Ht.value,r.modal&&!r.fullscreen&&(Ll.value++,l({appendTo:c.value,visible:v.value,modal:r.modal,position:"fixed",click:z})),await de((()=>{p("opened"),p("open-auto-focus"),x=!1,m.value=!0})),r.lockScroll&&(()=>{if(!r.lockScroll)return;const e="has-dialog-open";document.body.classList.contains(e)||document.body.classList.add(e),T=()=>document.body.classList.remove(e)})(),await de(),(()=>{const e=b.value?.dialogRef,t=y.value;if(e&&t&&!r.fullscreen){if("transform"!==r.positionType){if(!e.style?.left){const l=t.offsetWidth,a=e.offsetWidth;l>0&&a>0&&(e.style.left=N(),e.style.top=M())}return}(r.resetDragOnClose||!e.style.transform)&&(e.style.transform=`translate(${N()},${M()})`)}})())},D=async()=>{k||(k=!0,p("update:modelValue",!1),p("close"),Ht.value>0&&Ht.value--,r.modal&&!r.fullscreen&&(Ll.value>0&&Ll.value--,0==Ll.value&&a()),m.value=!1,0==Ht.value&&r.lockScroll&&P(),await de((()=>{p("closed"),p("close-auto-focus"),k=!1,he.s(w+"_close",(()=>{v.value=!1,r.draggable&&r.resetDragOnClose&&(b.value.dialogRef.style=null)}),qw)})))};return K((()=>r.positionType),(e=>{b.value?.dialogRef&&(b.value.dialogRef.style=null)})),K((()=>r.modelValue),(e=>{e?r.openDelay?setTimeout(O,r.openDelay):O():r.closeDelay?setTimeout(D,r.closeDelay):D()})),ye((()=>{u.value=!1})),At((()=>{u.value=!0,P()})),(t,l)=>u.value?C("",!0):(A(),Z(Tt,{key:0,to:c.value,fallback:"#tuiRoot",disabled:u.value},[v.value||!e.destroyOnClose?we((A(),h("div",Ne({key:0,class:"tui-dialog"},t.$attrs,{style:B.value,ref_key:"dialogWrapRef",ref:y}),[ce(Ho,{ref_key:"baseDialogRef",ref:b,fullscreen:e.fullscreen,title:e.title,center:e.center,overflow:e.overflow,divider:e.divider,showClose:e.showClose,dragContainment:e.dragContainment,draggable:e.draggable,closeIcon:e.closeIcon,positionType:e.positionType,type:e.type,customColor:e.customColor,typedConfig:e.typedConfig,visibleInner:m.value,appendTo:c.value,uid:f(w),hideHeader:e.hideHeader,hideFooter:e.hideFooter,onClose:$,onConfirm:R},jt({default:W((()=>[X(t.$slots,"default")])),_:2},[f(d).header?{name:"header",fn:W((()=>[X(t.$slots,"header")])),key:"0"}:void 0,f(d).footer?{name:"footer",fn:W((()=>[X(t.$slots,"footer")])),key:"1"}:void 0]),1032,["fullscreen","title","center","overflow","divider","showClose","dragContainment","draggable","closeIcon","positionType","type","customColor","typedConfig","visibleInner","appendTo","uid","hideHeader","hideFooter"])],16)),[[Oe,v.value]]):C("",!0)],8,["to","disabled"]))}}),Bw=200,xw=Object.assign({name:"TuiDialogNative"},{__name:"native",props:{top:[String,Number],modelValue:{type:Boolean,default:!1},title:{type:String,default:""},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},customClass:{type:String,default:""},modal:{type:Boolean,default:!0},fullscreen:Boolean,overflow:Boolean,center:Boolean,divider:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},width:{type:[String,Number],default:null},closeIcon:{type:String,default:"tui-icon ti-times"},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},customColor:[String,Array],typedConfig:Object},emits:["update:modelValue","open","close","opened","closed","confirm"],setup(e,{expose:t,emit:l}){const{$gMaskBlur:a}=Se("$global",null),i=e,o=l,n=xe("nDialog"),s=S(null),r=S(null),u=S(!1),d=g((()=>({fullscreen:i.fullscreen,title:i.title,center:i.center,overflow:i.overflow,divider:i.divider,showClose:i.showClose,hideHeader:i.hideHeader,hideFooter:i.hideFooter,dragContainment:!1,draggable:!1,closeIcon:i.closeIcon,positionType:null,type:i.type,customColor:i.customColor,typedConfig:i.typedConfig,visibleInner:u.value}))),c=g((()=>pe("cpt-dlg",{...q("w",i.width,"smart"),...q("top",i.top,"smart")})));K((()=>i.modelValue),(async e=>{e?await p():v()}));const p=async()=>{if(s.value){o("open");try{i.modal?s.value.showModal():s.value.show(),await de(),u.value=!0,o("opened")}catch(e){console.error("打开对话框失败:",e)}}},v=()=>{s.value&&(o("close"),u.value=!1,setTimeout((()=>{s.value.close()}),Bw))},m=()=>{o("update:modelValue",!1)},y=e=>{e.target===s.value&&i.closeOnBackdrop&&m()},b=()=>{m()},V=()=>{o("confirm"),m()},w=()=>{o("update:modelValue",!1),o("closed")},x=e=>{"Escape"===e.key&&!i.closeOnEsc&&e.preventDefault()};return t({open:()=>{o("update:modelValue",!0)},close:m,dialogRef:s,baseDialogRef:r}),ye((()=>{i.modelValue&&de((()=>p())),i.closeOnEsc||We.add(document,"keydown",x,n)})),Dt((()=>{We.remove(document,"keydown",n)})),(t,l)=>(A(),h("dialog",{ref_key:"dialogRef",ref:s,class:P(["tui-dialog-native",`${e.customClass}`,"is-bg-"+(f(a)?"blur":"trans"),{"is-fullscreen":e.fullscreen}]),style:fe(c.value),onClick:y,onClose:w},[e.modelValue?(A(),h("div",{key:0,class:P(["tui-dlgn-cont"]),onClick:l[0]||(l[0]=st((()=>{}),["stop"]))},[ce(Ho,Ne({uid:f(n),ref_key:"baseDialogRef",ref:r},d.value,{onClose:b,onConfirm:V}),jt({default:W((()=>[X(t.$slots,"default")])),_:2},[t.$slots.header?{name:"header",fn:W((()=>[X(t.$slots,"header")])),key:"0"}:void 0,t.$slots.footer?{name:"footer",fn:W((()=>[X(t.$slots,"footer")])),key:"1"}:void 0]),1040,["uid"])])):C("",!0)],38))}}),Pw=["title","aria-expanded"],Rw=Object.assign({name:"TuiDockPanel"},{__name:"index",props:{modelValue:{type:Boolean,default:void 0},target:[String,Object],placement:{type:String,default:"right",validator:e=>["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"].includes(e)},alignOffset:{type:Number,default:20},defaultState:{type:String,default:"temporary",validator:e=>["expanded","collapsed","temporary"].includes(e)},mode:{type:String,default:"handle",validator:e=>["handle","partial"].includes(e)},temporaryDuration:{type:Number,default:3e3},collapseShape:{type:String,default:"square",validator:e=>["round","square","rail"].includes(e)},collapseSize:[String,Number],partialSize:{type:[String,Number],default:80},partialOpacity:{type:Number,default:.7},expandTrigger:{type:String,default:"hover",validator:e=>["hover","click","manual"].includes(e)},expandDelay:{type:Number,default:520},collapseDelay:{type:Number,default:580},draggable:{type:Boolean,default:!0},dragHandlePosition:Object,arrowIcon:String,width:[String,Number],height:[String,Number],maxSizeRatio:{type:[Boolean,Number],default:.5},zIndex:{type:Number,default:20},className:String},emits:["update:modelValue","change","expand","collapse","dragStart","drag","dragEnd"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=xe("dpel"),n=S(null),s=S(null),r=S(null),d=Pe({width:null,height:null}),c=S("collapsed"!==a.defaultState),p=S(!1),v=S(!1),m=S(!1),y=S(!1);let b=null,V=null,w=null,x=null;const k=g((()=>void 0!==a.modelValue)),B=g((()=>k.value?a.modelValue:c.value)),T=g((()=>{const[e,t="center"]=a.placement.split("-");return{side:e,align:t}})),$=g((()=>T.value.side)),z=g((()=>["left","right"].includes($.value))),R=g((()=>"partial"===a.mode)),N=g((()=>z.value?"y":"x")),M=(e,t="api")=>{B.value!==e&&(k.value||(c.value=e),i("update:modelValue",e),i("change",e,{source:t}),i(e?"expand":"collapse",{source:t}))},O=()=>{M(!B.value,"toggle")},D=(e="api")=>M(!0,e),I=(e="api")=>M(!1,e),W=()=>{clearTimeout(w),clearTimeout(x),w=null,x=null},_=()=>{W(),w=setTimeout((()=>{p.value&&D("hover")}),Math.max(0,a.expandDelay||0))},F=()=>{W(),x=setTimeout((()=>{p.value||I("hover")}),Math.max(0,a.collapseDelay||0))},E=()=>{const e=a.target;"string"!=typeof e?e?.value instanceof HTMLElement?r.value=e.value:e instanceof HTMLElement?r.value=e:r.value=n.value?.parentElement||null:r.value=document.querySelector(e)},L=g((()=>`is-attached-${$.value}`)),j=g((()=>!0===a.maxSizeRatio?.5:a.maxSizeRatio)),G=g((()=>pe("cpt-dp",{...q("w",a.width,{smartAppend:!0,zero:!0}),...q("h",a.height,{smartAppend:!0,zero:!0}),...q("targetMaxw",d.width,{append:"px",zero:!0}),...q("targetMaxh",d.height,{append:"px",zero:!0}),collapseSize:Wl(a.collapseSize),partialSize:Wl(a.partialSize),partialOp:a.partialOpacity,z:a.zIndex}))),H=g((()=>a.arrowIcon?a.arrowIcon.includes("tui-icon")?a.arrowIcon:`tui-icon ${a.arrowIcon}`:`tui-icon ${{top:"ti-caret-up",right:"ti-caret-right",bottom:"ti-caret-down",left:"ti-caret-left"}[$.value]}`)),Q=g((()=>B.value?"Collapse":"Expand")),Y=g((()=>{const e={top:{top:8,right:8},bottom:{right:8,bottom:8},right:{right:8,bottom:8},left:{right:8,bottom:8}}[$.value];return Object.fromEntries(Object.entries({...e,...a.dragHandlePosition}).map((([e,t])=>[e,Wl(t)])))})),Z=g((()=>({enabled:a.draggable,trigger:".tui-dp-drag-hotspot",containment:r.value||!0,positionType:"absolute",axis:N.value,writeAxisOnly:!0,inAdpt:!!n.value?.parentElement?.closest?.("#tuiAdpt"),uid:o,debug:!0,onStart:e=>{v.value=!0,b=e.event,W(),y.value=!1,i("dragStart",e)},onDrag:e=>{b=e.event,y.value=!0,i("drag",e)},onEnd:e=>{b=e.event,m.value=!0,requestAnimationFrame((()=>{v.value=!1,p.value=(()=>{const e=s.value;if(!e||!b)return!1;const{clientX:t,clientY:l}=b,a=document.elementFromPoint(t,l);return!!a&&e.contains(a)})(),!p.value&&"hover"===a.expandTrigger&&F()})),i("dragEnd",e)}}))),U=(e,t)=>{const{align:l}=T.value,i=a.alignOffset||0;return"center"===l?(e-t)/2:"bottom"===l||"right"===l?e-t-i:i},J=()=>{const e=r.value||n.value?.parentElement,t=j.value;if(!e||!1===t)return d.width=null,void(d.height=null);const l=Number.isFinite(Number(t))?Math.max(0,Number(t)):.5;d.width=e.clientWidth*l,d.height=e.clientHeight*l},ee=()=>{const e=n.value,t=s.value;!e||!t||(z.value?(e.style.width="1px",e.style.height=`${t.offsetHeight}px`):(e.style.width=`${t.offsetWidth}px`,e.style.height="1px"))},te=()=>{const e=n.value,t=s.value,l=r.value||e?.parentElement;if(!e||!t||!l)return;J(),ee();const a=$.value,i={top:null,right:null,bottom:null,left:null};"left"===a||"right"===a?(i[a]="0px",i.top=`${U(l.clientHeight,t.offsetHeight)}px`):(i[a]="0px",i.left=`${U(l.clientWidth,t.offsetWidth)}px`),["top","right","bottom","left"].forEach((t=>{null==i[t]?e.style.removeProperty(t):e.style[t]=i[t]}))},le=()=>{m.value=!1,de(te)},ae=()=>{ee(),(!a.draggable||!m.value)&&te()},ie=()=>{"hover"===a.expandTrigger&&(p.value=!0,_())},oe=()=>{"hover"===a.expandTrigger&&(v.value||(p.value=!1,F()))},ne=()=>{y.value?y.value=!1:"manual"!==a.expandTrigger&&("click"===a.expandTrigger&&O(),"hover"===a.expandTrigger&&(p.value=!B.value,B.value?F():_()))},Ae=()=>{!R.value||"click"!==a.expandTrigger||O()},se=()=>{clearTimeout(V),"collapsed"!==a.defaultState?(c.value=!0,"temporary"===a.defaultState&&(V=setTimeout((()=>{k.value||M(!1,"temporary")}),a.temporaryDuration))):c.value=!1};return K((()=>a.defaultState),se),K((()=>a.target),(()=>de((()=>{m.value=!1,E(),te()})))),K((()=>[a.placement,a.alignOffset]),le),K((()=>a.maxSizeRatio),(()=>{J(),le()})),K((()=>[a.width,a.height]),(()=>{a.draggable&&m.value||de(te)})),ye((()=>{E(),se(),de((()=>{E(),te()}))})),At((()=>{clearTimeout(V),W()})),t({expand:D,collapse:I,toggle:O,getExpanded:()=>B.value}),(t,l)=>{const a=Fe("tui-resize"),i=Fe("tui-drag");return we((A(),h("div",{ref_key:"rootRef",ref:n,class:P(["tui-dock-panel",`is-${$.value}`,`is-${e.collapseShape}`,`is-${e.mode}`,L.value,{"is-expanded":B.value,"is-collapsed":!B.value,"is-draggable":e.draggable},e.className]),style:fe(G.value),onMouseenter:ie,onMouseleave:oe},[we((A(),h("div",{ref_key:"shellRef",ref:s,class:"tui-dp-shell"},[R.value?C("",!0):(A(),h("button",{key:0,class:"tui-dp-arrow",type:"button",title:Q.value,"aria-expanded":B.value,onMouseenter:ie,onClick:st(ne,["stop"])},[X(t.$slots,"arrow",{expanded:B.value,collapsed:!B.value,placement:e.placement},(()=>[u("i",{class:P(H.value)},null,2)]))],40,Pw)),u("div",{class:"tui-dp-body",onClick:Ae},[X(t.$slots,"default",{expanded:B.value,collapsed:!B.value,placement:e.placement})]),e.draggable?(A(),h("div",{key:1,class:"tui-dp-drag-handle tui-dp-drag-hotspot",style:fe(Y.value),title:"Drag","aria-hidden":"true"},[...l[0]||(l[0]=[u("i",{class:"tui-icon ti-arrow-move"},null,-1)])],4)):C("",!0)])),[[a,{callback:ae,uid:f(o)}]])],38)),[[i,Z.value]])}}}),zw={key:1,class:"tui-drw-inner"},Nw=Object.assign({name:"TuiDrawer"},{__name:"index",props:{modelValue:Boolean,direction:{type:String,default:"rtl",validator:e=>["ttb","btt","ltr","rtl"].includes(e)},appendTo:String,showClose:{type:Boolean,default:!1},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},size:{type:[String,Number],default:"auto"},padding:{type:Number,default:30},zIndex:{type:Number,default:2001},className:String},emits:["open","close","update:modelValue"],setup(e,{emit:t}){const{$gEscCounter:l,$optFloaterTo:a,$tState:i}=Se("$global",null),o=e,n=S(!1),s=S(!0),r=t,d=g((()=>o.appendTo||a.value)),c=g((()=>pe("cpt-drw",{size:"number"==Qe(o.size)?o.size+"px":o.size,pd:o.padding+"px",z:o.zIndex}))),p=()=>{n.value=!1,he.s("drawerClose",(()=>{r("update:modelValue",!1)}),400)},f=g((()=>i.globalConfig.maskBlur));return K((()=>l.value),(()=>{n.value&&o.closeOnEsc&&p()})),K((()=>o.modelValue),(e=>{de((()=>{n.value=e})),r(e?"open":"close",e)})),ye((()=>{s.value=!1})),At((()=>{s.value=!0,he.c("drawerClose")})),(t,l)=>{const a=ke("TuiMask");return s.value?C("",!0):(A(),Z(Tt,{key:0,to:d.value,fallback:"#tuiRoot",disabled:s.value},[e.modal?(A(),Z(a,{key:0,"model-value":n.value,modal:e.modal,onClick:l[0]||(l[0]=st((t=>e.closeOnBackdrop?p():null),["self"]))},null,8,["model-value","modal"])):C("",!0),ce(Me,{name:"fade"},{default:W((()=>[n.value?(A(),h("div",{key:0,class:P(["tui-drawer",e.className,""+(f.value?"is-bg-blur":"is-bg-trans"),`is-dir-${e.direction}`,""+(e.modal?"is-mask-on":"is-mask-off")]),style:fe(c.value)},[e.showClose?(A(),h("div",{key:0,class:"tui-drw-close",onClick:p},[...l[1]||(l[1]=[u("i",{class:"tui-icon ti-times"},null,-1)])])):C("",!0),n.value?(A(),h("div",zw,[X(t.$slots,"default")])):C("",!0)],6)):C("",!0)])),_:3})],8,["to","disabled"]))}}}),Iw=["viewBox","width","height"],Mw=["opacity","stroke-width"],Dw=["x2","y1","y2"],Ow=["x1","x2","y1","y2"],_w=["x1","x2","y2"],Ew=["x1","x2","y1","y2"],Lw=["opacity","stroke-width"],Ww=["x1","x2","y1","y2"],jw=["x1","x2","y1","y2"],Gw={key:0},Fw={class:"tui-ch-dot-h"},Hw=["cx","cy"],Uw=["cx","cy"],Qw={class:"tui-ch-dot-v"},Yw=["cx","cy"],Kw=["cx","cy"],Xw=["cx","cy"],Zw=["cx","cy","r"],Jw=["x","y","width","height"],e0=["transform"],t0={"text-anchor":"end","dominant-baseline":"end",class:"tui-ch-cursor-x"},l0={"text-anchor":"start","dominant-baseline":"end",class:"tui-ch-cursor-y"},a0=Object.assign({name:"TuiCrosshair"},{__name:"index",props:{crosshairRadius:{type:Number,default:40},lineStroke:{type:Number,default:.2},lineOpacity:{type:Number,default:1},scopeShape:{type:String,default:"rect",validator:e=>["rect","circle"].includes(e)},aimingPoint:{type:String,default:"center",validator:e=>["side","center"].includes(e)},coordinates:{type:Boolean,default:!0}},setup(e){const t=e,l=xe("crosshair"),a=S(!0),i=S(0),o=S(0),n=S(window.innerWidth),s=S(window.innerHeight),r=S(null),d=e=>{r.value&&(i.value=e.clientX,o.value=e.clientY)},c=()=>{n.value=window.innerWidth,s.value=window.innerHeight},p=g((()=>pe("cpt-cross",{textOfs:-(t.crosshairRadius+5)+"px"})));return ye((()=>{a.value=!1,We.add(window,"mousemove",d,l),We.add(window,"resize",c,l),i.value=n.value/2,o.value=s.value/2})),At((()=>{a.value=!0,We.remove(window,"mousemove",l),We.remove(window,"resize",l)})),Dt((()=>{})),(t,l)=>a.value?C("",!0):(A(),Z(Tt,{key:0,to:"#tuiRoot",fallback:"#app",disabled:a.value},[(A(),h("svg",{class:"tui-crosshair",ref_key:"svgRef",ref:r,viewBox:`0 0 ${n.value} ${s.value}`,width:n.value,height:s.value,style:fe(p.value)},[u("g",{class:"tui-ch-long-line",opacity:e.lineOpacity,"stroke-width":e.lineStroke},[u("line",{x1:0,x2:i.value-e.crosshairRadius,y1:o.value,y2:o.value},null,8,Dw),u("line",{x1:i.value+e.crosshairRadius,x2:n.value,y1:o.value,y2:o.value},null,8,Ow),u("line",{x1:i.value,x2:i.value,y1:0,y2:o.value-e.crosshairRadius},null,8,_w),u("line",{x1:i.value,x2:i.value,y1:o.value+e.crosshairRadius,y2:s.value},null,8,Ew)],8,Mw),u("g",{class:"tui-ch-short-line",opacity:e.lineOpacity,"stroke-width":2*e.lineStroke},[u("line",{x1:i.value-e.crosshairRadius,x2:i.value+e.crosshairRadius,y1:o.value,y2:o.value},null,8,Ww),u("line",{x1:i.value,x2:i.value,y1:o.value-e.crosshairRadius,y2:o.value+e.crosshairRadius},null,8,jw)],8,Lw),"side"==e.aimingPoint?(A(),h("g",Gw,[u("g",Fw,[u("circle",{cx:i.value-e.crosshairRadius,cy:o.value,r:"2"},null,8,Hw),u("circle",{cx:i.value+e.crosshairRadius,cy:o.value,r:"2"},null,8,Uw)]),u("g",Qw,[u("circle",{cx:i.value,cy:o.value-e.crosshairRadius,r:"2"},null,8,Yw),u("circle",{cx:i.value,cy:o.value+e.crosshairRadius,r:"2"},null,8,Kw)])])):(A(),h("circle",{key:1,class:"tui-ch-aim",cx:i.value,cy:o.value,r:"3"},null,8,Xw)),"circle"==e.scopeShape?(A(),h("circle",{key:2,class:"tui-ch-center-circle",cx:i.value,cy:o.value,r:e.crosshairRadius},null,8,Zw)):(A(),h("rect",{key:3,class:"tui-ch-center-rect",x:i.value-e.crosshairRadius,y:o.value-e.crosshairRadius,width:2*e.crosshairRadius,height:2*e.crosshairRadius,rx:"10",ry:"10"},null,8,Jw)),e.coordinates?(A(),h("g",{key:4,class:"tui-ch-center-area",transform:`translate(${i.value},${o.value})`},[u("text",t0,F(Math.round(i.value)),1),u("text",l0,F(Math.round(o.value)),1)],8,e0)):C("",!0)],12,Iw))],8,["disabled"]))}}),n0=["src"],o0={class:"tui-login-inner"},i0={class:"tui-login-logo"},s0={class:"tui-login-form"},r0={class:"tui-login-captcha"},A0=["src"],u0={key:1,class:"tui-login-captcha-error"},c0={class:"tui-login-help"},d0={class:"tui-login-btn-wrap"},f0=Object.assign({name:"TuiLogin"},{__name:"index",props:{form:{type:Object,required:!0,validator:e=>e&&["username","password"].every((t=>t in e))},usernamePlaceholder:String,passwordPlaceholder:String,captchaPlaceholder:String,loginButtonText:String,helpText:String,forgetText:String,loading:{type:Boolean,default:!1},enableCaptcha:{type:Boolean,default:!0},captchaImg:{type:String,default:"ERROR"},rules:Object,formSize:{type:String,default:"large",validator:e=>["small","default","large"].includes(e)},position:{type:String,default:"center",validator:e=>["center","left","right"].includes(e)},backgroundType:{type:String,default:"vector",validator:e=>["image","gradient","vector"].includes(e)},backgroundImage:String},emits:["login","help","forget","validate","captchaError"],setup(e,{expose:t,emit:l}){const{proxy:{$tMessage:a},$backgroundConfig:i,i18n:o,$gBackground:n,$globalConfig:s}=Se("$global",null),r=e,d=g((()=>r.usernamePlaceholder||o("login.placeholder.username"))),c=g((()=>r.passwordPlaceholder||o("login.placeholder.password"))),p=g((()=>r.captchaPlaceholder||o("login.placeholder.captcha"))),v=g((()=>r.loginButtonText||o("login.button.login"))),m=g((()=>r.helpText||o("login.button.help"))),y=g((()=>r.forgetText||o("login.button.forget"))),b=S(null),V=l,w=g((()=>r.form.username&&r.form.password&&(!r.enableCaptcha||r.form.captcha))),q=async()=>{if(w.value)try{await b.value.validate()&&V("login",{...r.form})}catch{a({content:o("login.message.faild"),type:"warning"})}},x=()=>{V("help")},k=()=>{V("forget")},B=()=>{V("captchaError")};t({resetForm:()=>{b.value.resetFields()}});const T=g((()=>r.rules||{username:[{required:!0,message:o("login.placeholder.username"),trigger:"blur"},{min:4,max:24,message:o("login.rules.length",{min:4,max:20}),trigger:"blur"}],password:[{required:!0,message:o("login.placeholder.password"),trigger:"blur"},{min:6,max:24,message:o("login.rules.length",{min:6,max:20}),trigger:"blur"}],captcha:[{required:!0,message:o("login.placeholder.captcha"),trigger:"blur"},{min:4,max:6,message:o("login.rules.length",{min:4,max:6}),trigger:"blur"}]})),$=Pe({config:{labelHide:!0,size:g((()=>r.formSize))},items:[{prop:"username",prefixIcon:"tui-icon ti-user",placeholder:d},{prop:"password",type:"password",prefixIcon:"tui-icon ti-lock",placeholder:c},{prop:"captcha",prefixIcon:"tui-icon ti-shield",placeholder:p,isCaptcha:!0}]});return K((()=>r.backgroundType),(e=>{"vector"==e&&"none"==n.value&&(s.value.background="all")}),{immediate:!0}),(t,l)=>{const a=ke("TuiLoadingArea"),i=ke("TuiInput"),o=ke("TuiFormItem"),s=ke("TuiForm"),d=ke("TuiButton");return A(),h("div",{class:P(["tui-login",{"tui-view-bg":("view"==f(n)||"all"==f(n))&&"vector"==e.backgroundType,"tui-root-bg":"root"==f(n)&&"vector"==e.backgroundType}])},[e.backgroundImage&&"image"==e.backgroundType?(A(),h("img",{key:0,class:"tui-login-bg",src:e.backgroundImage,alt:""},null,8,n0)):C("",!0),u("div",{class:P(["tui-login-locator",`is-pos-${e.position}`])},[(A(),Z(ct(t.$slots.border?t.$slots.border()[0].type:"div"),Ne({class:["tui-login-border",t.$slots.border?"is-outside-border":"is-native-border"]},{...t.$slots.border?t.$slots.border()[0].props:{}}),{default:W((()=>[u("div",o0,[ce(a,{"model-value":r.loading,mask:!0},null,8,["model-value"]),u("div",i0,[X(t.$slots,"logo",{},(()=>[l[0]||(l[0]=u("div",{class:"default-logo"},[u("h2",null,"Login")],-1))]))]),u("div",s0,[ce(s,Ne({ref_key:"formRef",ref:b,model:e.form},$.config,{rules:T.value,labelHide:""}),{default:W((()=>[(A(!0),h(ie,null,ze($.items,(l=>(A(),h(ie,{key:l.prop},["captcha"!=l.prop||e.enableCaptcha&&"captcha"==l.prop?(A(),Z(o,{key:0,prop:l.prop},{default:W((()=>["captcha"!=l.prop?(A(),Z(i,{key:0,modelValue:e.form[l.prop],"onUpdate:modelValue":t=>e.form[l.prop]=t,placeholder:l.placeholder,type:l.type||"text",onKeyup:Fa(q,["enter"])},{prefix:W((()=>[u("i",{class:P(l.prefixIcon)},null,2)])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","type"])):(A(),Z(i,{key:1,modelValue:e.form[l.prop],"onUpdate:modelValue":t=>e.form[l.prop]=t,placeholder:l.placeholder,onKeyup:Fa(q,["enter"])},{prefix:W((()=>[u("i",{class:P(l.prefixIcon)},null,2)])),suffix:W((()=>[u("div",r0,["ERROR"!==e.captchaImg?(A(),h("img",{key:0,src:e.captchaImg,class:"tui-login-captcha-img",onError:B},null,40,A0)):(A(),h("span",u0,F(e.captchaImg),1)),X(t.$slots,"captcha-suffix")])])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]))])),_:2},1032,["prop"])):C("",!0)],64)))),128)),X(t.$slots,"input")])),_:3},16,["model","rules"]),u("div",c0,[u("span",{class:"tui-login-help-link",onClick:x},F(m.value),1),u("span",{class:"tui-login-forget-link",onClick:k},F(y.value),1)]),u("div",d0,[ce(d,{disabled:!w.value||e.loading,type:"primary",block:"",onClick:q,size:e.formSize},{default:W((()=>[De(F(v.value),1)])),_:1},8,["disabled","size"])])])]),X(t.$slots,"extra")])),_:3},16,["class"]))],2)],2)}}}),p0=Object.assign({name:"TuiLangToggle"},{__name:"index",props:{direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},langs:{type:Array,default:()=>["zh-CN","zh-TW","en"]},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},itemWidth:Number},emits:["change","update:modelValue"],setup(e,{emit:t}){const l=e,a=t,{$gLang:i,switchLang:o}=Se("$global",null)||{},n={"zh-CN":{label:"简中",value:"zh-CN"},"zh-TW":{label:"繁中",value:"zh-TW"},en:{label:"EN",value:"en"}},s=g((()=>i?.value||"zh-CN")),r=g((()=>{const e=Array.isArray(l.langs)?l.langs:[],t=[...new Set(e)].map((e=>n[e])).filter(Boolean);return t.length?t:Object.values(n)})),u=async e=>{!o||s.value===e||(await o(e),a("update:modelValue",e),a("change",e))};return(t,l)=>{const a=ke("TuiRadio");return we((A(),Z(a,{class:"tui-lang-toggle","class-name":"tui-lang-toggle",appearance:"button",itemWidth:e.itemWidth,"default-icon":!1,direction:e.direction,size:e.size,"model-value":s.value,options:r.value,onChange:u},null,8,["itemWidth","direction","size","model-value","options"])),[[Oe,r.value.length>1]])}}}),g0=Object.assign({name:"TuiIconLogo"},{__name:"index",props:{size:Number,padding:Number,appearance:{type:String,default:"colorful",validator:e=>["colorful","white","black","weakest","strongest","custom"].includes(e)}},setup(e){const{$tc:t}=Se("$global"),l=e,a=g((()=>pe("cpt-logoi",{...q("size",l.size,"px"),...q("pd",l.padding,"px"),...q("color",t("tone.strongest"),{when:"strongest"==l.appearance}),...q("color",t("tone.weakest"),{when:"weakest"==l.appearance})})));return(t,l)=>(A(),h("div",{class:P(["tui-logoi",`tui-appr-${e.appearance}`]),style:fe(a.value)},[...l[0]||(l[0]=[Zs('<div class="tui-logo-inner"><i class="tui-icon ti-techui-lb-part"></i><i class="tui-icon ti-techui-lt-part"></i><i class="tui-icon ti-techui-rb-part"></i><i class="tui-icon ti-techui-rt-part"></i></div>',1)])],6))}}),h0=["src"],v0={class:"text-main"},m0={key:0,class:"text-sub"},y0=Object.assign({name:"TuiSystemLogo"},{__name:"system",props:{logoSize:Number,logoPadding:Number,textSize:Number,iconAppearance:{type:String,default:"colorful",validator:e=>["colorful","white","black","weakest","strongest","custom"].includes(e)},textAppearance:{type:String,default:"fontBase",validator:e=>["fontBase","white","black","weakest","strongest","custom"].includes(e)},direction:{type:String,default:"h",validator:e=>["v","h"].includes(e)},tag:String,collapse:Boolean,iconLogo:String,iconSrc:String,mainText:String,subText:String,tagConfig:Object},setup(e){const{$gSiderCollapse:t,$gPlatform:l,$tc:a}=Se("$global"),i=yt(),o=e,n=g((()=>({type:"danger",tone:"strong",size:"small",...o.tagConfig}))),s=g((()=>pe("cpt-logos",{...q("fs",o.textSize,"px"),...q("color",a("tone.strongest"),{when:"strongest"==o.textAppearance}),...q("color",a("tone.weakest"),{when:"weakest"==o.textAppearance})}))),r=g((()=>pe("cpt-logosi",{...q("size",o.logoSize,"px"),...q("color",a("tone.strongest"),{when:"strongest"==o.iconAppearance}),...q("color",a("tone.weakest"),{when:"weakest"==o.iconAppearance})}))),d=g((()=>o.mainText||"TechUI")),c=g((()=>void 0!==o.subText?o.subText:ga.upper1st(l.value))),p=g((()=>"h"==o.direction&&!(t.value||o.collapse)||"v"==o.direction)),v=g((()=>i.icon||o.iconLogo||o.iconSrc));return(t,l)=>{const a=ke("TuiIconLogo"),g=ke("TuiTag");return A(),h("div",{class:P(["tui-logo-system",`is-dir-${e.direction}`,`tui-appr-${e.textAppearance}`]),style:fe(s.value)},[v.value?(A(),h("div",{key:1,class:P(["tui-logo-custom-icon"]),style:fe(r.value)},[f(i).icon?X(t.$slots,"icon",{key:0}):e.iconLogo?(A(),h("i",{key:1,class:P([e.iconLogo])},null,2)):e.iconSrc?(A(),h("img",{key:2,src:e.iconSrc,class:"tui-logo-img",alt:"logo"},null,8,h0)):C("",!0)],4)):(A(),Z(a,{key:0,size:o.logoSize,padding:o.logoPadding,appearance:o.iconAppearance},null,8,["size","padding","appearance"])),p.value?(A(),h("div",{key:2,class:P(["tui-logo-text",`tui-appr-${e.textAppearance}`])},[X(t.$slots,"text",{},(()=>[u("span",v0,F(d.value),1),c.value?(A(),h("span",m0,F(c.value),1)):C("",!0)])),e.tag?(A(),Z(g,Ne({key:0,class:"tui-logo-tag"},n.value),{default:W((()=>[De(F(e.tag),1)])),_:1},16)):C("",!0)],2)):C("",!0)],6)}}}),b0=["data-fallback"],V0=["src","alt"],w0=Object.assign({name:"TuiSvgInjector"},{__name:"index",props:{src:{type:String,default:""},alt:{type:String,default:""},options:{type:Object,default:()=>({})},fallback:{type:String,default:"img",validator:e=>["img","hide","slot"].includes(e)},width:Number,height:Number,padding:Number,color:String},emits:["load","error"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=S(null),n=S("idle"),s=g((()=>"loading"===n.value)),r=g((()=>"loaded"===n.value)),u=g((()=>"error"===n.value));t({isLoading:s,isLoaded:r,isError:u});let d=!1;const c=()=>{!a.src||d||(d=!0,n.value="loading",de((()=>{d=!1,o.value&&ir(o.value,a.options,(e=>{if("string"==typeof e)return n.value="error",void i("error",e);e instanceof Element&&(null!=a.width&&e.setAttribute("width",String(a.width)),null!=a.height&&e.setAttribute("height",String(a.height))),n.value="loaded",i("load",e)}))})))};K((()=>a.src),(e=>{e&&c()}),{immediate:!0}),ye((()=>{"idle"===n.value&&a.src&&c()}));const p=g((()=>pe("cpt-svginj",{...q("w",a.width,{append:"px",zero:!0}),...q("h",a.height,{append:"px",zero:!0}),...q("pd",a.padding,{append:"px",zero:!0}),...q("color",a.color)})));return(t,l)=>(A(),h("div",{class:P(["tui-svg-injector-wrap",{"is-loading":s.value,"is-loaded":r.value,"is-error":u.value,"is-custom":e.color}]),"data-fallback":e.fallback,style:fe(p.value)},[u.value&&"slot"===e.fallback?X(t.$slots,"default",{key:0}):(A(),h("img",{key:1,ref_key:"svgEle",ref:o,class:"tui-svg-ele",src:e.src,alt:e.alt},null,8,V0))],14,b0))}}),C0=Object.assign({name:"TuiTextGradient"},{__name:"index",props:{fontSize:Number,gradientType:{type:String,default:"linear",validator:e=>["linear","radial","conic"].includes(e)},colors:{type:Array,default:null,validator:e=>!e||"array"==Qe(e)&&(e.length>=2&&e.every((e=>CSS.supports("color",e))))},angle:{type:Number,default:0,validator:e=>e>=0&&e<=360},fontWeight:{type:String,default:null,validator:e=>["normal","bold","bolder","lighter"].includes(e)},animated:{type:Boolean,default:!1},animationType:{type:String,default:"swap",validator:e=>["swap","flow","rotate"].includes(e)},duration:{type:Number,default:3e3}},setup(e){const t=e,l=g((()=>t.colors?.length?t.animated?"swap"==t.animationType?[...t.colors,...[...t.colors].reverse()]:"flow"==t.animationType?[...t.colors,...t.colors]:t.colors:t.colors:null)),a=g((()=>{const e=l.value||t.colors;if(!e?.length)return null;const a=e.join(", ");switch(t.gradientType){case"linear":return`linear-gradient(${t.angle}deg, ${a})`;case"radial":return`radial-gradient(circle, ${a})`;case"conic":return`conic-gradient(from ${t.angle}deg, ${a})`;default:return`linear-gradient(${t.angle}deg, ${a})`}})),i=g((()=>t.animated?"flow"==t.animationType?"200% 100%":"rotate"==t.animationType?"220% 220%":"200% 200%":null)),o=g((()=>pe("cpt-txtg",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("bg",a.value,{when:t.colors}),...q("dur",t.duration,{append:"ms",when:t.animated}),...q("bgSize",i.value)}))),n=g((()=>["tui-text-grad",{"is-animated":t.animated,"ani-swap":t.animated&&"swap"==t.animationType,"ani-flow":t.animated&&"flow"==t.animationType,"ani-rotate":t.animated&&"rotate"==t.animationType}]));return(e,t)=>(A(),h("span",{class:P(n.value),style:fe(o.value)},[X(e.$slots,"default")],6))}}),$0=["onClick","title"],k0={key:0,class:"tui-icon ti-check"},S0={class:"tui-thtgl-colors"},q0=Object.assign({name:"TuiThemeToggle"},{__name:"index",props:{direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)}},emits:["change"],setup(e,{emit:t}){const{$tState:l,themeToggle:a,$gTheme:i}=Se("$global",null),o=t,n=Pe({curTheme:"lightBlue",themes:[]});return K((()=>i.value),(e=>{e!=n.curTheme&&(n.curTheme=i.value)})),ye((()=>{n.themes=Ql.loadIndex(),n.curTheme=i.value})),Al((()=>{})),(t,l)=>we((A(),h("div",{class:P(["tui-theme-toggle",`is-dir-${e.direction}`])},[(A(!0),h(ie,null,ze(n.themes,(e=>(A(),h("div",{key:e.value,class:P(["tui-thtgl-item",{"is-active":n.curTheme===e.value}]),onClick:t=>(e=>{n.curTheme!=e.value&&(o("change",e.value),n.curTheme=e.value,a(e.value,e.scheme))})(e),title:e.label||e.value},[n.curTheme===e.value?(A(),h("i",k0)):C("",!0),u("div",S0,[(A(!0),h(ie,null,ze(e.colors,(e=>(A(),h("span",{class:"tui-thtgl-color",style:fe(`background-color:${e}`)},null,4)))),256))])],10,$0)))),128))],2)),[[Oe,n.themes.length>1]])}}),T0=["src","alt"],B0=Object.assign({name:"TuiThemeImage"},{__name:"index",props:{type:{type:String,default:"themeScheme",validator:e=>["theme","themeScheme"].includes(e)},srcMap:{type:Object,default:()=>({})},fallback:String,alt:{type:String,default:""},fit:{type:String,default:"cover",validator:e=>["fill","contain","cover","none","scale-down"].includes(e)},width:[String,Number],height:[String,Number],radius:[String,Number]},emits:["load","error"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Se("$global",null)||{},n=o.$gTheme,s=o.$gThemeScheme,r=g((()=>"theme"===a.type?n?.value||"":s?.value||"")),d=g((()=>{const e=a.srcMap?.[r.value];return e||(a.fallback?a.fallback:Object.values(a.srcMap||{}).find(Boolean)||"")})),c=g((()=>pe("cpt-thimg",{...q("w",a.width,{smartAppend:!0,zero:!0}),...q("h",a.height,{smartAppend:!0,zero:!0}),...q("bdra",a.radius,{smartAppend:!0,zero:!0})}))),p=e=>i("load",e),f=e=>i("error",e);return t({currentKey:r,currentSrc:d}),(t,l)=>(A(),h("div",{class:"tui-theme-image",style:fe(c.value)},[d.value?(A(),h("img",{key:0,class:"tui-thimg-inner",src:d.value,alt:e.alt,style:fe({objectFit:e.fit}),draggable:"false",onLoad:p,onError:f},null,44,T0)):X(t.$slots,"empty",{key:1},(()=>[l[0]||(l[0]=u("div",{class:"tui-thimg-empty"},null,-1))]))],4))}}),x0=Object.assign({name:"TuiPassThrough",inheritAttrs:!1},{__name:"index",setup:e=>(e,t)=>X(e.$slots,"default")}),P0=Object.assign({name:"ScifiTabs"},{__name:"scifiTabs",props:{modelValue:[String,Number],options:{type:Array,default:()=>[],validator:e=>e.every((e=>{const t=Object.prototype.hasOwnProperty.call(e,"label"),l=Object.prototype.hasOwnProperty.call(e,"value");return t&&l}))},buttonConfig:Object,gap:Number,direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},buttonType:{type:String,default:"ScifiButtonHex",validator:e=>["ScifiButtonHex","ScifiButtonPod","ScifiButtonDash","ScifiButtonExo","ScifiButtonFin","ScifiButtonA1","ScifiButtonA2","ScifiButtonA3","ScifiButtonA4","ScifiButtonA5"].includes(e)}},emits:["update:modelValue","change"],setup(e,{emit:t}){const l=e,a=t,i=g((()=>pe("cpt-sf-tabs",{...q("gap",l.gap,"px")})));return(t,l)=>(A(),h("div",{style:fe(i.value),class:P(["scifi-tabs",`is-dir-${e.direction}`])},[(A(!0),h(ie,null,ze(e.options,(t=>(A(),Z(ct(e.buttonType),Ne({key:t.value,onClick:e=>(e=>{a("update:modelValue",e),a("change",e)})(t.value),class:["sft-item",{"is-active":e.modelValue===t.value}]},{ref_for:!0},{activeIsPrimary:!0,...e.buttonConfig}),{default:W((()=>[De(F(t.label),1)])),_:2},1040,["onClick","class"])))),128))],6))}}),kl={backgroundOpacity:Number,width:Number,className:String,aniDuration:Number,borderWidth:Number,animation:{type:Boolean,default:!0},decoration:{type:Boolean,default:!0},border:{type:Boolean,default:!0},decorationColorAlt:{type:Boolean,default:!1},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},type:{type:String,default:"default",validator:e=>["default","primary","success","warning","danger","emphasis"].includes(e)},activeIsPrimary:{type:Boolean,default:!1},shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},disabled:{type:Boolean,default:!1},glow:{type:Boolean,default:!0},glowRange:Number,glowOpacity:Number,scaleAction:{type:Boolean,default:!0}},R0=["id"],z0=["stdDeviation"],sl=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:5}},setup:e=>(t,l)=>(A(),h("defs",null,[u("filter",{id:`bgGlow_${e.uid}`},[u("feGaussianBlur",{in:"SourceAlpha",stdDeviation:e.glowRange,result:"blur"},null,8,z0),l[0]||(l[0]=u("feComposite",{in2:"SourceAlpha",operator:"arithmetic",k2:"-1",k3:"1",result:"shadowDiff"},null,-1)),l[1]||(l[1]=u("feFlood",null,null,-1)),l[2]||(l[2]=u("feComposite",{in2:"shadowDiff",operator:"in"},null,-1)),l[3]||(l[3]=u("feComposite",{in2:"SourceGraphic",operator:"over",result:"firstfilter"},null,-1))],8,R0)]))}),N0={width:32,height:"60",class:"sfb-deco-appr-A"},I0=["d"],M0=["d"],D0=["d"],O0={width:32,height:"60",class:"sfb-deco-appr-B"},_0=["d"],E0=["d"],L0={width:32,height:"60",class:"sfb-deco-appr-C"},W0=["d"],j0=["width","viewBox"],G0=["filter","d"],F0=Object.assign({name:"ScifiButtonA1"},{__name:"A1",props:{...kl,appearance:{type:String,default:"A",validator:e=>["A","B","C"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=S(null),o=xe("sfBtn"),n=S(!1),s=S(!1),r=Pe({resizing:!1,width:0,path:{}}),{path:d}=Ye(r),c=g((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),p=g((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=g((()=>{if(!r.width)return"0px";const e=(r.width-p.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=Je(cs(p.value)),await de(),n.value=!0})())},b=g((()=>pe("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:p.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return ye((()=>{s.value=!0,de((()=>{y()}))})),(t,l)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-button-a1",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:fe(b.value),ref_key:"btnRef",ref:i},[u("span",{onClick:m,class:"sfb-text"},[X(t.$slots,"default")]),n.value?(A(),h("div",{key:0,class:P(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},["A"==e.appearance?(A(),h(ie,{key:0},ze(2,(e=>u("svg",N0,[u("path",{class:"sfb-deco-a",d:f(d).A_decoA},null,8,I0),u("path",{class:"sfb-deco-b",d:f(d).A_decoB},null,8,M0),u("path",{class:"sfb-deco-c",d:f(d).A_decoC},null,8,D0)]))),64)):C("",!0),"B"==e.appearance?(A(),h(ie,{key:1},ze(2,(e=>u("svg",O0,[u("path",{class:"sfb-deco-a",d:f(d).B_decoA},null,8,_0),u("path",{class:"sfb-deco-b",d:f(d).B_decoB},null,8,E0)]))),64)):C("",!0),"C"==e.appearance?(A(),h(ie,{key:2},ze(2,(e=>u("svg",L0,[u("path",{class:"sfb-deco-a",d:f(d).C_deco},null,8,W0)]))),64)):C("",!0),(A(),h("svg",{width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-svg-elem"},[ce(sl,{uid:f(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${f(o)})`,d:f(d).mainBG},null,8,G0)],8,j0))],2)):C("",!0)],6),[[Oe,s.value]])])),_:3}))}}),H0=["width","viewBox"],U0=["filter","d"],Q0={width:32,height:"60",class:"sfb-deco-appr-A"},Y0=["d"],K0=["d"],X0=["d"],Z0=["d"],J0={width:32,height:"60",class:"sfb-deco-appr-B"},eC=["d"],tC=["d"],lC=Object.assign({name:"ScifiButtonA2"},{__name:"A2",props:{...kl,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=S(null),o=xe("sfBtn"),n=S(!1),s=S(!1),r=Pe({resizing:!1,width:0,path:{}}),{path:d}=Ye(r),c=g((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),p=g((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=g((()=>{if(!r.width)return"0px";const e=(r.width-p.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=Je(ds(p.value)),await de(),n.value=!0})())},b=g((()=>pe("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:p.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return ye((()=>{s.value=!0,de((()=>{y()}))})),(t,l)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-button-a2",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:fe(b.value),ref_key:"btnRef",ref:i},[u("span",{onClick:m,class:"sfb-text"},[X(t.$slots,"default")]),n.value?(A(),h("div",{key:0,class:P(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",{width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-svg-elem"},[ce(sl,{uid:f(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${f(o)})`,d:f(d).mainBG},null,8,U0)],8,H0)),"A"==e.appearance?(A(),h(ie,{key:0},ze(2,(e=>u("svg",Q0,[u("path",{class:"sfb-deco-a",d:f(d).A_decoAt},null,8,Y0),u("path",{class:"sfb-deco-a",d:f(d).A_decoAb},null,8,K0),u("path",{class:"sfb-deco-b",d:f(d).A_decoB},null,8,X0),u("path",{class:"sfb-deco-c",d:f(d).A_decoC},null,8,Z0)]))),64)):C("",!0),"B"==e.appearance?(A(),h(ie,{key:1},ze(2,(e=>u("svg",J0,[u("path",{class:"sfb-deco-a",d:f(d).B_decoA},null,8,eC),u("path",{class:"sfb-deco-a",d:f(d).B_decoB},null,8,tC)]))),64)):C("",!0)],2)):C("",!0)],6),[[Oe,s.value]])])),_:3}))}}),aC=["width","viewBox"],nC={key:0,class:"sfb-deco-appr-A"},oC=["d"],iC=["d"],sC=["d"],rC=["d"],AC=["d"],uC=["d"],cC=["d"],dC={key:1,class:"sfb-deco-appr-B"},fC=["d"],pC=["d"],gC=["d"],hC=["d"],vC=["d"],mC=["d"],yC=["d"],bC=["d"],VC=["filter","d"],wC=Object.assign({name:"ScifiButtonA3"},{__name:"A3",props:{...kl,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=S(null),o=xe("sfBtn"),n=S(!1),s=S(!1),r=Pe({resizing:!1,width:0,path:{}}),{path:d}=Ye(r),c=g((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),p=g((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=g((()=>{if(!r.width)return"0px";const e=(r.width-p.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=Je(fs(p.value)),await de(),n.value=!0})())},b=g((()=>pe("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:p.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return ye((()=>{s.value=!0,de((()=>{y()}))})),(t,l)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-button-a3",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:fe(b.value),ref_key:"btnRef",ref:i},[u("span",{onClick:m,class:"sfb-text"},[X(t.$slots,"default")]),n.value?(A(),h("div",{key:0,class:P(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",{width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-svg-elem"},[ce(sl,{uid:f(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),"A"==e.appearance?(A(),h("g",nC,[u("path",{class:"sfb-deco-tl",d:f(d).A_decoLT},null,8,oC),u("path",{class:"sfb-deco-tr",d:f(d).A_decoRT},null,8,iC),u("path",{class:"sfb-deco-bl",d:f(d).A_decoLB},null,8,sC),u("path",{class:"sfb-deco-br1",d:f(d).A_decoRB1},null,8,rC),u("path",{class:"sfb-deco-br2",d:f(d).A_decoRB2},null,8,AC),u("path",{class:"sfb-deco-br3",d:f(d).A_decoRB3},null,8,uC),u("path",{class:"sfb-deco-br4",d:f(d).A_decoRB4},null,8,cC)])):C("",!0),"B"==e.appearance?(A(),h("g",dC,[u("path",{class:"sfb-deco-tl",d:f(d).B_decoLT},null,8,fC),u("path",{class:"sfb-deco-br",d:f(d).B_decoRB},null,8,pC),u("path",{class:"sfb-deco-tr",d:f(d).B_decoRT},null,8,gC),u("path",{class:"sfb-deco-bl",d:f(d).B_decoLB},null,8,hC),u("path",{class:"sfb-deco-tl-tr",d:f(d).B_decoLT1},null,8,vC),u("path",{class:"sfb-deco-tl-tr",d:f(d).B_decoLT2},null,8,mC),u("path",{class:"sfb-deco-tl-tr",d:f(d).B_decoLT3},null,8,yC),u("path",{class:"sfb-deco-tl-tr",d:f(d).B_decoLT4},null,8,bC)])):C("",!0),u("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${f(o)})`,d:f(d).mainBG},null,8,VC)],8,aC))],2)):C("",!0)],6),[[Oe,s.value]])])),_:3}))}}),CC=["width","viewBox"],$C=["filter","d"],kC={width:20,height:"60",class:"sfb-deco-appr-A"},SC=["d"],qC=["d"],TC=["d"],BC=["d"],xC=["width","viewBox"],PC=["filter","d"],RC={width:20,height:"60",class:"sfb-deco-appr-B"},zC=["d"],NC=["d"],IC=["d"],MC=Object.assign({name:"ScifiButtonA4"},{__name:"A4",props:{...kl,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=S(null),o=xe("sfBtn"),n=S(!1),s=S(!1),r=Pe({resizing:!1,width:0,path:{}}),{path:d}=Ye(r),c=g((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),p=g((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=g((()=>{if(!r.width)return"0px";const e=(r.width-p.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=Je(ps(p.value)),await de(),n.value=!0})())},b=g((()=>pe("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:p.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return ye((()=>{s.value=!0,de((()=>{y()}))})),(t,l)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-button-a4",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:fe(b.value),ref_key:"btnRef",ref:i},[u("span",{onClick:m,class:"sfb-text"},[X(t.$slots,"default")]),n.value?(A(),h("div",{key:0,class:P(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},["A"==e.appearance?(A(),h(ie,{key:0},[(A(),h("svg",{width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-svg-elem"},[ce(sl,{uid:f(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${f(o)})`,d:f(d).A_mainBG},null,8,$C)],8,CC)),(A(),h(ie,null,ze(2,(e=>u("svg",kC,[u("path",{class:"sfb-deco-t1",d:f(d).A_decoT1},null,8,SC),u("path",{class:"sfb-deco-b1",d:f(d).A_decoB1},null,8,qC),u("path",{class:"sfb-deco-t1",d:f(d).A_decoT2},null,8,TC),1==e?(A(),h("path",{key:0,class:"sfb-deco-t3",d:f(d).A_decoT3},null,8,BC)):C("",!0)]))),64))],64)):C("",!0),"B"==e.appearance?(A(),h(ie,{key:1},[(A(),h("svg",{width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-svg-elem"},[ce(sl,{uid:f(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${f(o)})`,d:f(d).B_mainBG},null,8,PC)],8,xC)),(A(),h(ie,null,ze(2,(e=>u("svg",RC,[u("path",{class:"sfb-deco-a",d:f(d).B_decoA},null,8,zC),u("path",{class:"sfb-deco-b",d:f(d).B_decoB},null,8,NC),1==e?(A(),h("path",{key:0,class:"sfb-deco-c",d:f(d).B_decoC},null,8,IC)):C("",!0)]))),64))],64)):C("",!0)],2)):C("",!0)],6),[[Oe,s.value]])])),_:3}))}}),DC=["width","viewBox"],OC=["filter","d"],_C={width:40,height:"60",class:"sfb-deco-appr-A"},EC=["d"],LC=["width","viewBox"],WC=["d"],jC=Object.assign({name:"ScifiButtonA5"},{__name:"A5",props:{...kl,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)},directionAlt:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=S(null),o=xe("sfBtn"),n=S(!1),s=S(!1),r=Pe({resizing:!1,width:0,path:{}}),{path:d}=Ye(r),c=g((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),p=g((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=g((()=>{if(!r.width)return"0px";const e=(r.width-p.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=Je(gs(p.value)),await de(),n.value=!0})())},b=g((()=>pe("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:p.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return ye((()=>{s.value=!0,de((()=>{y()}))})),(t,l)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-button-a5",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-dir-alt":e.directionAlt,"is-scale-off":!t.scaleAction}]),style:fe(b.value),ref_key:"btnRef",ref:i},[u("span",{onClick:m,class:"sfb-text"},[X(t.$slots,"default")]),n.value?(A(),h("div",{key:0,class:P(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",{width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-svg-elem"},[ce(sl,{uid:f(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${f(o)})`,d:f(d).mainBG},null,8,OC)],8,DC)),"A"==e.appearance?(A(),h(ie,{key:0},ze(2,(e=>u("svg",_C,[u("path",{class:"sfb-deco-B",d:f(d).decoA},null,8,EC)]))),64)):C("",!0),"B"==e.appearance?(A(),h("svg",{key:1,width:p.value,viewBox:`0 0 ${p.value} 60`,height:"60",class:"sfb-deco-appr-B"},[u("path",{class:"sfb-deco-B",d:f(d).decoB},null,8,WC)],8,LC)):C("",!0)],2)):C("",!0)],6),[[Oe,s.value]])])),_:3}))}}),Sl={className:String,scale:Number,backgroundOpacity:Number,decoration:{type:Boolean,default:!0},decorationAlt:{type:Boolean,default:!1},decorationColorAlt:{type:Boolean,default:!1},decorationOpacity:Number,gradientBackground:{type:Boolean,default:!1},gradientReverse:{type:Boolean,default:!1},glow:{type:Boolean,default:!0},glowRange:Number,glowOpacity:Number,borderWidth:Number,width:{type:Number,default:300},height:{type:Number,default:150},directionAlt:{type:Boolean,default:!1},cornerAlt:Boolean,decoAltScale:Number,decoAltTransX:Number,decoAltTransY:Number,shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},borderd:{type:Boolean,default:!0}},GC=["id"],FC=["stdDeviation"],HC=["id"],ql=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:8}},setup:e=>(t,l)=>(A(),h("defs",null,[u("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=u("feFlood",null,null,-1)),l[1]||(l[1]=u("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),u("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,FC),l[2]||(l[2]=u("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=u("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,GC),u("linearGradient",{class:"sfg-bg-grad",id:`bgGrad${e.uid}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},[...l[4]||(l[4]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,HC)]))}),UC={class:"sfg-slot-wrap"},QC={class:"sfg-slot-inner"},YC=["viewBox"],KC=["id"],XC=["d"],ZC=["filter","d"],JC=["viewBox"],e1=["id"],t1=["d"],l1=["mask","d"],a1=["viewBox"],n1=["d"],o1=Object.assign({name:"ScifiHexagon"},{__name:"Hexagon",props:{...Sl},setup(e){const t=e,l=xe("sfGeo"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>t.directionAlt?t.height:t.width)),s=g((()=>t.directionAlt?t.width:t.height)),r=g((()=>pe("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransX}),...q("datY",t.decoAltTransY,"px"),...q("decoAltScale",t.decoAltScale),width:n.value+"px",height:s.value+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return ye((()=>{(async()=>{i.path=Je(hs(n.value,s.value)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-hexagon","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd}]),style:fe(r.value),ref:"svgGeometry"},[u("div",UC,[u("div",QC,[X(e.$slots,"default")])]),a.value?(A(),h("div",{key:0,class:P(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${n.value} ${s.value}`},[ce(ql,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("mask",{id:`slotMask${f(l)}`},[u("path",{fill:"white",d:f(o).mainBG},null,8,XC)],8,KC),u("path",{filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).mainBG},null,8,ZC)],8,YC)),!e.decorationAlt&&e.decoration?(A(),h(ie,{key:0},ze(2,(e=>u("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${n.value} ${s.value}`},[u("defs",null,[u("mask",{id:`decoMask${f(l)}`},[u("path",{fill:"white",d:f(o).mask},null,8,t1)],8,e1)]),u("path",{mask:`url(#decoMask${f(l)})`,d:f(o).deco},null,8,l1)],8,JC))),64)):C("",!0),e.decorationAlt&&e.decoration?(A(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${n.value} ${s.value}`},[u("path",{d:f(o).mainBG},null,8,n1)],8,a1)):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),i1={class:"sfg-slot-wrap"},s1={class:"sfg-slot-inner"},r1=["viewBox"],A1=["filter","d"],u1=["id"],c1=["d"],d1=["viewBox"],f1=["id"],p1=["d"],g1=["mask","d"],h1=["viewBox"],v1=["d"],m1=Object.assign({name:"ScifiParallelogram"},{__name:"Parallelogram",props:{...Sl},setup(e){const t=e,l=xe("sfGeo"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransX}),...q("datY",t.decoAltTransY,"px"),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return ye((()=>{(async()=>{i.path=Je(vs(t.width,t.height)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-parallelogram","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:fe(n.value),ref:"svgGeometry"},[u("div",i1,[u("div",s1,[X(e.$slots,"default")])]),a.value?(A(),h("div",{key:0,class:P(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[ce(ql,{uid:f(l)},null,8,["uid"]),u("path",{filter:e.glow&&`url(#bgGlow_${f(l)})`,d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,A1),u("mask",{id:`slotMask${f(l)}`},[u("path",{fill:"white",d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,c1)],8,u1)],8,r1)),!e.decorationAlt&&e.decoration?(A(),h(ie,{key:0},ze(2,(t=>u("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("defs",null,[u("mask",{id:`decoMask${f(l)}`},[u("path",{fill:"white",d:e.cornerAlt?f(o).Bmask:f(o).Amask},null,8,p1)],8,f1)]),u("path",{mask:`url(#decoMask${f(l)})`,d:e.cornerAlt?f(o).Bdeco:f(o).Adeco},null,8,g1)],8,d1))),64)):C("",!0),e.decorationAlt&&e.decoration?(A(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("path",{d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,v1)],8,h1)):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),y1={class:"sfg-slot-wrap"},b1={class:"sfg-slot-inner"},V1=["viewBox"],w1=["filter","d"],C1=["id"],$1=["d"],k1=["viewBox"],S1=["id"],q1=["d"],T1=["mask","d"],B1=["viewBox"],x1=["d"],P1=Object.assign({name:"ScifiRectangle"},{__name:"Rectangle",props:{...Sl},setup(e){const t=e,l=xe("sfGeo"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransX}),...q("datY",t.decoAltTransY,"px"),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return ye((()=>{(async()=>{i.path=Je(ms(t.width,t.height)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-rectangle","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:fe(n.value),ref:"svgGeometry"},[u("div",y1,[u("div",b1,[X(e.$slots,"default")])]),a.value?(A(),h("div",{key:0,class:P(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[ce(ql,{uid:f(l)},null,8,["uid"]),u("path",{filter:e.glow&&`url(#bgGlow_${f(l)})`,d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,w1),u("mask",{id:`slotMask${f(l)}`},[u("path",{fill:"white",d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,$1)],8,C1)],8,V1)),!e.decorationAlt&&e.decoration?(A(),h(ie,{key:0},ze(2,(t=>u("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("defs",null,[u("mask",{id:`mask-${f(l)}`},[u("path",{fill:"white",d:e.cornerAlt?f(o).Bmask:f(o).Amask},null,8,q1)],8,S1)]),u("path",{mask:`url(#mask-${f(l)})`,d:e.cornerAlt?f(o).Bdeco:f(o).Adeco},null,8,T1)],8,k1))),64)):C("",!0),e.decorationAlt&&e.decoration?(A(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("path",{d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,x1)],8,B1)):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),R1={class:"sfg-slot-wrap"},z1={class:"sfg-slot-inner"},N1=["viewBox"],I1=["filter","d"],M1=["id"],D1=["d"],O1=["viewBox"],_1=["id"],E1=["d"],L1=["mask","d"],W1=["viewBox"],j1=["d"],G1=Object.assign({name:"ScifiTrapezoid"},{__name:"Trapezoid",props:{...Sl},setup(e){const t=e,l=xe("sfGeo"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX,"px"),...q("datY",t.decoAltTransY*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransY}),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return ye((()=>{(async()=>{i.path=Je(ys(t.width,t.height)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-trapezoid","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:fe(n.value),ref:"svgGeometry"},[u("div",R1,[u("div",z1,[X(e.$slots,"default")])]),a.value?(A(),h("div",{key:0,class:P(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[ce(ql,{uid:f(l)},null,8,["uid"]),u("path",{filter:e.glow&&`url(#bgGlow_${f(l)})`,d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,I1),u("mask",{id:`slotMask${f(l)}`},[u("path",{fill:"white",d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,D1)],8,M1)],8,N1)),!e.decorationAlt&&e.decoration?(A(),h(ie,{key:0},ze(2,(t=>u("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("defs",null,[u("mask",{id:`decoMask${f(l)}`},[u("path",{id:"clipPathId",fill:"white",d:e.cornerAlt?f(o).Bmask:f(o).Amask},null,8,E1)],8,_1)]),u("path",{mask:`url(#decoMask${f(l)})`,d:e.cornerAlt?f(o).Bdeco:f(o).Adeco},null,8,L1)],8,O1))),64)):C("",!0),e.decorationAlt&&e.decoration?(A(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("path",{d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,j1)],8,W1)):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),F1={class:"sfg-slot-wrap"},H1={class:"sfg-slot-inner"},U1=["viewBox"],Q1=["filter","d"],Y1=["id"],K1=["d"],X1=["viewBox"],Z1=["id"],J1=["d"],e$=["mask","d"],t$=["viewBox"],l$=["d"],a$=Object.assign({name:"ScifiTriangle"},{__name:"Triangle",props:{...Sl},setup(e){const t=e,l=xe("sfGeo"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX,"px"),...q("datY",t.decoAltTransY*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransY}),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return ye((()=>{(async()=>{i.path=Je(bs(t.width,t.height)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-triangle","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:fe(n.value),ref:"svgGeometry"},[u("div",F1,[u("div",H1,[X(e.$slots,"default")])]),a.value?(A(),h("div",{key:0,class:P(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[ce(ql,{uid:f(l)},null,8,["uid"]),u("path",{filter:e.glow&&`url(#bgGlow_${f(l)})`,d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,Q1),u("mask",{id:`slotMask${f(l)}`},[u("path",{fill:"white",d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,K1)],8,Y1)],8,U1)),!e.decorationAlt&&e.decoration?(A(),h(ie,{key:0},ze(2,(t=>u("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("defs",null,[u("mask",{id:`decoMask${f(l)}`},[u("path",{id:"clipPathId",fill:"white",d:e.cornerAlt?f(o).Bmask:f(o).Amask},null,8,J1)],8,Z1)]),u("path",{mask:`url(#decoMask${f(l)})`,d:e.cornerAlt?f(o).Bdeco:f(o).Adeco},null,8,e$)],8,X1))),64)):C("",!0),e.decorationAlt&&e.decoration?(A(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[u("path",{d:e.cornerAlt?f(o).BmainBG:f(o).AmainBG},null,8,l$)],8,t$)):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),Tl={backgroundOpacity:Number,directionAlt:Boolean,decorationAlt:Boolean,decorationColorAlt:Boolean,fontWeight:String,fontSize:Number,className:String,scale:Number,shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},borderd:{type:Boolean,default:!0},glow:{type:Boolean,default:!0},glowRange:Number,glowOpacity:Number,size:Number},n$=["id"],o$=["stdDeviation"],Bl=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:10}},setup:e=>(t,l)=>(A(),h("defs",null,[u("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=u("feFlood",null,null,-1)),l[1]||(l[1]=u("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),u("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,o$),l[2]||(l[2]=u("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=u("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,n$)]))}),i$={class:"sfd-slot-wrap"},s$={class:"sfd-svg-hidden"},r$={key:0,class:"sfd-svg-elem",viewBox:"0 0 243.82 243.82"},A$=["d"],u$=["filter"],c$={key:1,class:"sfd-svg-elem",viewBox:"0 0 276.46 239.42"},d$=["d"],f$=["filter","d"],p$={key:2,class:"sfd-svg-elem",viewBox:"0 0 293.21 233.77"},g$=["d"],h$=["filter","d"],v$=Object.assign({name:"ScifiDecoA1"},{__name:"A1",props:{...Tl,appearance:{type:String,default:"A",validator:e=>["A","B","C"].includes(e)}},setup(e){const t=e,l=xe("sfDec"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return ye((()=>{(async()=>{i.path=Je(Vs(i.width)),await de(),a.value=!0})()})),(t,i)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-deco-a1","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-deco-alt":t.decorationAlt,"is-dir-alt":t.directionAlt}]),style:fe(n.value)},[u("div",i$,[X(t.$slots,"default")]),a.value?(A(),h("div",{key:0,class:P(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",s$,[ce(Bl,{uid:f(l),glowRange:t.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(A(),h("svg",r$,[t.borderd?(A(),h("path",{key:0,class:"sfd-svg-bd",d:f(o).Adeco},null,8,A$)):C("",!0),u("circle",{filter:t.glow&&`url(#bgGlow_${f(l)})`,class:"sfd-svg-bg",cx:"121.91",cy:"121.21",r:"103.42"},null,8,u$)])):C("",!0),"B"==e.appearance?(A(),h("svg",c$,[t.borderd?(A(),h("path",{key:0,class:"sfd-svg-bd",d:f(o).Bdeco},null,8,d$)):C("",!0),u("path",{filter:t.glow&&`url(#bgGlow_${f(l)})`,class:"sfd-svg-bg",d:f(o).BmainBG},null,8,f$)])):C("",!0),"C"==e.appearance?(A(),h("svg",p$,[t.borderd?(A(),h("path",{key:0,class:"sfd-svg-bd",d:f(o).Cdeco},null,8,g$)):C("",!0),u("path",{filter:t.glow&&`url(#bgGlow_${f(l)})`,class:"sfd-svg-bg",d:f(o).CmainBG},null,8,h$)])):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),m$={class:"sfd-slot-wrap"},y$={class:"sfd-svg-hidden"},b$={key:0,class:"sfd-svg-elem",viewBox:"0 0 596.2 564.96"},V$=["filter","d"],w$={key:0,class:"sfd-svg-deco-A"},C$=["d"],$$=["d"],k$=["d"],S$=["d"],q$={key:1,class:"sfd-svg-deco-B"},T$=["d"],B$=["d"],x$=["d"],P$=["d"],R$={key:1,class:"sfd-svg-elem",viewBox:"0 0 596.16 594.75"},z$={key:0,class:"sfd-svg-deco-B"},N$=["d"],I$=["d"],M$=["d"],D$=["d"],O$=["d"],_$=["d"],E$=["d"],L$=["d"],W$=["filter"],j$={key:2,class:"sfd-svg-elem",viewBox:"0 0 596.18 596.17"},G$=["filter","d"],F$={key:0,class:"sfd-svg-deco-B"},H$=["points"],U$=["d"],Q$=["points"],Y$=["points"],K$={key:1,class:"sfd-svg-deco-A"},X$=["d"],Z$=["d"],J$=["d"],ek=["d"],tk={key:2,class:"sfd-svg-deco-B"},lk=["d"],ak=["d"],nk=["d"],ok=["d"],ik={key:3,class:"sfd-svg-elem",viewBox:"0 0 567.49 567.5"},sk=["filter"],rk=["d"],Ak={key:1,class:"sfd-svg-deco-B"},uk=["d"],ck=["d"],dk=["d"],fk=["d"],pk=Object.assign({name:"ScifiDecoB1"},{__name:"B1",props:{...Tl,appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},glowRange:{type:Number,default:20}},setup(e){const t=e,l=xe("sfDec"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return ye((()=>{(async()=>{i.path=Je(ws(i.width)),await de(),a.value=!0})()})),(t,i)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-deco-b1","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-deco-alt":t.decorationAlt,"is-dir-alt":t.directionAlt}]),style:fe(n.value)},[u("div",m$,[X(t.$slots,"default")]),a.value?(A(),h("div",{key:0,class:P(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",y$,[ce(Bl,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(A(),h("svg",b$,[u("path",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,d:f(o).AmainBG},null,8,V$),t.borderd?(A(),h("g",w$,[u("path",{d:f(o).AdecoA1},null,8,C$),u("path",{d:f(o).AdecoA2},null,8,$$),u("path",{d:f(o).AdecoA3},null,8,k$),u("path",{d:f(o).AdecoA4},null,8,S$)])):C("",!0),t.borderd?(A(),h("g",q$,[u("path",{d:f(o).AdecoB1},null,8,T$),u("path",{d:f(o).AdecoB2},null,8,B$),u("path",{d:f(o).AdecoB3},null,8,x$),u("path",{d:f(o).AdecoB4},null,8,P$)])):C("",!0)])):C("",!0),"B"==e.appearance?(A(),h("svg",R$,[t.borderd?(A(),h("g",z$,[u("path",{d:f(o).BdecoB1},null,8,N$),u("path",{d:f(o).BdecoB2},null,8,I$),u("path",{d:f(o).BdecoB3},null,8,M$),u("path",{d:f(o).BdecoB4},null,8,D$),u("path",{d:f(o).BdecoB5},null,8,O$),u("path",{d:f(o).BdecoB6},null,8,_$),u("path",{d:f(o).BdecoB7},null,8,E$)])):C("",!0),t.borderd?(A(),h("path",{key:1,class:"sfd-svg-deco-A",d:f(o).BdecoA},null,8,L$)):C("",!0),u("circle",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,cx:"297.43",cy:"294.27",r:"243"},null,8,W$)])):C("",!0),"C"==e.appearance?(A(),h("svg",j$,[u("path",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,d:f(o).CmainBG},null,8,G$),t.borderd?(A(),h("g",F$,[u("polygon",{points:f(o).CdecoB1},null,8,H$),u("path",{d:f(o).CdecoB2},null,8,U$),u("polygon",{points:f(o).CdecoB3},null,8,Q$),u("polygon",{points:f(o).CdecoB4},null,8,Y$)])):C("",!0),t.borderd?(A(),h("g",K$,[u("path",{d:f(o).CdecoA1},null,8,X$),u("path",{d:f(o).CdecoA2},null,8,Z$),u("path",{d:f(o).CdecoA3},null,8,J$),u("path",{d:f(o).CdecoA4},null,8,ek)])):C("",!0),t.borderd?(A(),h("g",tk,[u("path",{d:f(o).CdecoC1},null,8,lk),u("path",{d:f(o).CdecoC2},null,8,ak),u("path",{d:f(o).CdecoC3},null,8,nk),u("path",{d:f(o).CdecoC4},null,8,ok)])):C("",!0)])):C("",!0),"D"==e.appearance?(A(),h("svg",ik,[u("circle",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,cx:"283.41",cy:"284.1",r:"194.5"},null,8,sk),t.borderd?(A(),h("path",{key:0,class:"sfd-svg-deco-A",d:f(o).DdecoA},null,8,rk)):C("",!0),t.borderd?(A(),h("g",Ak,[u("path",{d:f(o).DdecoB1},null,8,uk),u("path",{d:f(o).DdecoB2},null,8,ck),u("path",{d:f(o).DdecoB3},null,8,dk),u("path",{d:f(o).DdecoB4},null,8,fk)])):C("",!0)])):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),gk={class:"sfd-slot-wrap"},hk={class:"sfd-svg-hidden"},vk={key:0,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.47"},mk=["filter","points"],yk=["d"],bk={key:1,class:"sfd-svg-deco-A"},Vk=["points"],wk=["points"],Ck=["points"],$k=["points"],kk={key:1,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.47"},Sk=["filter","points"],qk={key:0,class:"sfd-svg-deco-A"},Tk=["points"],Bk=["points"],xk=["points"],Pk={key:1,class:"sfd-svg-deco-A"},Rk=["points"],zk=["points"],Nk=["d"],Ik=["d"],Mk={key:2,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.46"},Dk=["filter","points"],Ok={key:0,class:"sfd-svg-deco-A"},_k=["points"],Ek=["points"],Lk=["points"],Wk=["points"],jk=["points"],Gk=["points"],Fk=["d"],Hk={key:3,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.46"},Uk=["filter","points"],Qk=["d"],Yk={key:1,class:"sfd-svg-deco-A"},Kk=["points"],Xk=["points"],Zk=["points"],Jk=["points"],eS=["points"],tS=["points"],lS=["points"],aS=["points"],nS=["points"],oS=["points"],iS=["points"],sS=["points"],rS=["points"],AS=["points"],uS={key:2,class:"sfd-svg-deco-A"},cS=["points"],dS=["points"],fS=["points"],pS=["points"],gS=["points"],hS=["points"],vS=Object.assign({name:"ScifiDecoB2"},{__name:"B2",props:{...Tl,appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},glowRange:{type:Number,default:20}},setup(e){const t=e,l=xe("sfDec"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return ye((()=>{(async()=>{i.path=Je(Cs(i.width)),await de(),a.value=!0})()})),(t,i)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-deco-b2","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-dir-alt":t.directionAlt}]),style:fe(n.value)},[u("div",gk,[X(t.$slots,"default")]),a.value?(A(),h("div",{key:0,class:P(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",hk,[ce(Bl,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(A(),h("svg",vk,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).AmainBG},null,8,mk),t.borderd?(A(),h("path",{key:0,class:"sfd-svg-deco-B",d:f(o).AdecoB},null,8,yk)):C("",!0),t.borderd?(A(),h("g",bk,[u("polygon",{points:f(o).AdecoA1},null,8,Vk),u("polygon",{points:f(o).AdecoA2},null,8,wk),u("polygon",{points:f(o).AdecoA3},null,8,Ck),u("polygon",{points:f(o).AdecoA4},null,8,$k)])):C("",!0)])):C("",!0),"B"==e.appearance?(A(),h("svg",kk,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).BmainBG},null,8,Sk),t.borderd?(A(),h("g",qk,[u("polygon",{points:f(o).BdecoA11},null,8,Tk),u("polygon",{points:f(o).BdecoA12},null,8,Bk),u("polygon",{points:f(o).BdecoA13},null,8,xk)])):C("",!0),t.borderd?(A(),h("g",Pk,[u("polygon",{points:f(o).BdecoA21},null,8,Rk),u("polygon",{points:f(o).BdecoA22},null,8,zk),u("path",{d:f(o).BdecoA23},null,8,Nk)])):C("",!0),t.borderd?(A(),h("path",{key:2,class:"sfd-svg-deco-B",d:f(o).BdecoB},null,8,Ik)):C("",!0)])):C("",!0),"C"==e.appearance?(A(),h("svg",Mk,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).CmainBG},null,8,Dk),t.borderd?(A(),h("g",Ok,[u("polygon",{points:f(o).CdecoA1},null,8,_k),u("polygon",{points:f(o).CdecoA2},null,8,Ek),u("polygon",{points:f(o).CdecoA3},null,8,Lk),u("polygon",{points:f(o).CdecoA4},null,8,Wk),u("polygon",{points:f(o).CdecoA5},null,8,jk),u("polygon",{points:f(o).CdecoA6},null,8,Gk)])):C("",!0),t.borderd?(A(),h("path",{key:1,class:"sfd-svg-deco-B",d:f(o).CdecoB},null,8,Fk)):C("",!0)])):C("",!0),"D"==e.appearance?(A(),h("svg",Hk,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).DmainBG},null,8,Uk),t.borderd?(A(),h("path",{key:0,class:"sfd-svg-deco-B",d:f(o).DdecoB},null,8,Qk)):C("",!0),t.borderd?(A(),h("g",Yk,[u("polygon",{points:f(o).DdecoA101},null,8,Kk),u("polygon",{points:f(o).DdecoA102},null,8,Xk),u("polygon",{points:f(o).DdecoA103},null,8,Zk),u("polygon",{points:f(o).DdecoA104},null,8,Jk),u("polygon",{points:f(o).DdecoA105},null,8,eS),u("polygon",{points:f(o).DdecoA106},null,8,tS),u("polygon",{points:f(o).DdecoA107},null,8,lS),u("polygon",{points:f(o).DdecoA108},null,8,aS),u("polygon",{points:f(o).DdecoA109},null,8,nS),u("polygon",{points:f(o).DdecoA110},null,8,oS),u("polygon",{points:f(o).DdecoA111},null,8,iS),u("polygon",{points:f(o).DdecoA112},null,8,sS),u("polygon",{points:f(o).DdecoA113},null,8,rS),u("polygon",{points:f(o).DdecoA114},null,8,AS)])):C("",!0),t.borderd?(A(),h("g",uS,[u("polygon",{points:f(o).DdecoA21},null,8,cS),u("polygon",{points:f(o).DdecoA22},null,8,dS),u("polygon",{points:f(o).DdecoA23},null,8,fS),u("polygon",{points:f(o).DdecoA24},null,8,pS),u("polygon",{points:f(o).DdecoA25},null,8,gS),u("polygon",{points:f(o).DdecoA26},null,8,hS)])):C("",!0)])):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),mS={class:"sfd-slot-wrap"},yS={class:"sfd-svg-hidden"},bS={key:0,class:"sfd-svg-elem",viewBox:"0 0 208.91 186.33"},VS=["filter","points"],wS=["d"],CS={key:1,class:"sfd-svg-deco-B"},$S=["d"],kS=["points"],SS=["points"],qS={key:1,class:"sfd-svg-elem",viewBox:"0 0 213.7 185"},TS=["filter","points"],BS={key:0,class:"sfd-svg-deco-B"},xS=["points"],PS=["points"],RS=["points"],zS={key:1,class:"sfd-svg-deco-B"},NS=["points"],IS=["points"],MS=["points"],DS={key:2,class:"sfd-svg-deco-A"},OS=["points"],_S=["points"],ES=["points"],LS={key:2,class:"sfd-svg-elem",viewBox:"0 0 214.06 185.38"},WS=["filter","points"],jS={key:0,class:"sfd-svg-deco-A"},GS=["points"],FS=["points"],HS=["points"],US={key:1,class:"sfd-svg-deco-B"},QS=["points"],YS=["points"],KS={key:3,class:"sfd-svg-elem",viewBox:"0 0 210.22 183.69"},XS=["filter","points"],ZS=["d"],JS={key:1,class:"sfd-svg-deco-B"},eq=["points"],tq=["points"],lq=Object.assign({name:"ScifiDecoB3"},{__name:"B3",props:{...Tl,appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},glowRange:{type:Number,default:20}},setup(e){const t=e,l=xe("sfDec"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return ye((()=>{(async()=>{i.path=Je($s(i.width)),await de(),a.value=!0})()})),(t,i)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-deco-b3","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-dir-alt":t.directionAlt}]),style:fe(n.value)},[u("div",mS,[X(t.$slots,"default")]),a.value?(A(),h("div",{key:0,class:P(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",yS,[ce(Bl,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(A(),h("svg",bS,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).AmainBG},null,8,VS),t.borderd?(A(),h("path",{key:0,class:"sfd-svg-deco-A",d:f(o).AdecoA},null,8,wS)):C("",!0),t.borderd?(A(),h("g",CS,[i[0]||(i[0]=u("line",{x1:"193.9",y1:"142.29",x2:"184.67",y2:"126.3"},null,-1)),u("path",{d:f(o).AdecoB1},null,8,$S),u("polygon",{points:f(o).AdecoB2},null,8,kS),u("polygon",{points:f(o).AdecoB3},null,8,SS)])):C("",!0)])):C("",!0),"B"==e.appearance?(A(),h("svg",qS,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).BmainBG},null,8,TS),t.borderd?(A(),h("g",BS,[u("polygon",{points:f(o).BdecoB11},null,8,xS),u("polygon",{points:f(o).BdecoB12},null,8,PS),u("polygon",{points:f(o).BdecoB13},null,8,RS)])):C("",!0),t.borderd?(A(),h("g",zS,[u("polygon",{points:f(o).BdecoB21},null,8,NS),u("polygon",{points:f(o).BdecoB22},null,8,IS),u("polygon",{points:f(o).BdecoB23},null,8,MS)])):C("",!0),t.borderd?(A(),h("g",DS,[u("polygon",{points:f(o).BdecoA1},null,8,OS),u("polygon",{points:f(o).BdecoA2},null,8,_S),u("polygon",{points:f(o).BdecoA3},null,8,ES)])):C("",!0)])):C("",!0),"C"==e.appearance?(A(),h("svg",LS,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).CmainBG},null,8,WS),t.borderd?(A(),h("g",jS,[u("polygon",{points:f(o).CdecoA1},null,8,GS),u("polygon",{points:f(o).CdecoA2},null,8,FS),u("polygon",{points:f(o).CdecoA3},null,8,HS)])):C("",!0),t.borderd?(A(),h("g",US,[u("polygon",{points:f(o).CdecoB1},null,8,QS),u("polygon",{points:f(o).CdecoB2},null,8,YS)])):C("",!0)])):C("",!0),"D"==e.appearance?(A(),h("svg",KS,[u("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${f(l)})`,points:f(o).DmainBG},null,8,XS),t.borderd?(A(),h("path",{key:0,class:"sfd-svg-deco-A",d:f(o).DdecoA},null,8,ZS)):C("",!0),t.borderd?(A(),h("g",JS,[u("polygon",{points:f(o).DdecoB1},null,8,eq),u("polygon",{points:f(o).DdecoB2},null,8,tq)])):C("",!0)])):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),aq={class:"sfd-svg-hidden"},nq={class:"sfd-slot-wrap"},oq={key:0,class:"sfd-bracket-wrap"},iq=["filter"],sq=["d"],rq={key:1,class:"sfd-bracket-wrap"},Aq=["filter"],uq=["d"],cq=["d"],dq={key:2,class:"sfd-bracket-wrap"},fq=["filter"],pq=["d"],gq=["points"],hq=["points"],vq={key:3,class:"sfd-bracket-wrap"},mq=["filter"],yq=["d"],bq=["points"],Vq={key:4,class:"sfd-bracket-wrap"},wq=["filter"],Cq=["points"],$q=["points"],kq=Object.assign({name:"ScifiDecoC1"},{__name:"C1",props:{...Tl,appearance:{type:String,default:"A",validator:e=>["A","B","C","D","E"].includes(e)},glowRange:{type:Number,default:20},bracketRatio:Number},setup(e){const t=e,l=xe("sfDec"),a=S(!1),i=Pe({path:{}}),{path:o}=Ye(i),n=g((()=>pe("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("bracketRatio",t.bracketRatio),...q("size",t.size,"px")})));return ye((()=>{(async()=>{i.path=Je(ks(i.width)),await de(),a.value=!0})()})),(t,i)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-deco-c1","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-dir-alt":t.directionAlt}]),style:fe(n.value)},[a.value?(A(),h("div",{key:0,class:P(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(A(),h("svg",aq,[ce(Bl,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),u("div",nq,[X(t.$slots,"default")]),t.borderd&&"A"==e.appearance?(A(),h("div",oq,[(A(),h(ie,null,ze(2,(e=>u("svg",{filter:t.glow&&`url(#bgGlow_${f(l)})`,viewBox:"0 0 45.29 172.01"},[u("path",{class:"sfd-svg-deco-B",d:f(o).Adeco},null,8,sq)],8,iq))),64))])):C("",!0),t.borderd&&"B"==e.appearance?(A(),h("div",rq,[(A(),h(ie,null,ze(2,(e=>u("svg",{filter:t.glow&&`url(#bgGlow_${f(l)})`,viewBox:"0 0 68.16 172.21"},[u("path",{class:"sfd-svg-deco-B",d:f(o).BdecoB},null,8,uq),u("path",{class:"sfd-svg-deco-A",d:f(o).BdecoA},null,8,cq)],8,Aq))),64))])):C("",!0),t.borderd&&"C"==e.appearance?(A(),h("div",dq,[(A(),h(ie,null,ze(2,(e=>u("svg",{filter:t.glow&&`url(#bgGlow_${f(l)})`,viewBox:"0 0 76.68 172.7"},[u("path",{class:"sfd-svg-deco-B",d:f(o).CdecoB},null,8,pq),u("polygon",{class:"sfd-svg-deco-A",points:f(o).CdecoA1},null,8,gq),u("polygon",{class:"sfd-svg-deco-A",points:f(o).CdecoA2},null,8,hq)],8,fq))),64))])):C("",!0),t.borderd&&"D"==e.appearance?(A(),h("div",vq,[(A(),h(ie,null,ze(2,(e=>u("svg",{filter:t.glow&&`url(#bgGlow_${f(l)})`,viewBox:"0 0 44.5 172.69"},[u("path",{class:"sfd-svg-deco-B",d:f(o).DdecoB},null,8,yq),u("polygon",{class:"sfd-svg-deco-A",points:f(o).DdecoA},null,8,bq)],8,mq))),64))])):C("",!0),t.borderd&&"E"==e.appearance?(A(),h("div",Vq,[(A(),h(ie,null,ze(2,(e=>u("svg",{filter:t.glow&&`url(#bgGlow_${f(l)})`,viewBox:"0 0 37.63 172.75"},[u("polygon",{class:"sfd-svg-deco-B",points:f(o).EdecoB},null,8,Cq),u("polygon",{class:"sfd-svg-deco-A",points:f(o).EdecoA},null,8,$q)],8,wq))),64))])):C("",!0)],2)):C("",!0)],6),[[Oe,a.value]])])),_:3}))}}),ia={backgroundOpacity:Number,width:Number,scale:Number,className:String,aniDuration:Number,borderWidth:Number,text:{type:String,default:"SCIFI HEADER"},animation:{type:Boolean,default:!0},decoration:{type:Boolean,default:!0},decorationAlt:Boolean,decorationColorAlt:Boolean,shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},glow:{type:Boolean,default:!1},glowRange:Number,glowOpacity:Number,gradientReverse:{type:Boolean,default:!1},gradientBackground:{type:Boolean,default:!0}},Sq=["id"],qq=["stdDeviation"],Tq=["id"],sa=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:8}},setup:e=>(t,l)=>(A(),h("defs",null,[u("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=u("feFlood",null,null,-1)),l[1]||(l[1]=u("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),u("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,qq),l[2]||(l[2]=u("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=u("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,Sq),u("linearGradient",{class:"sfh-bg-grad",id:`bgGrad${e.uid}`,gradientUnits:"userSpaceOnUse",x1:"0%",y1:"100%",x2:"0%",y2:"0%"},[...l[4]||(l[4]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,Tq)]))}),Bq=["d"],xq=["d"],Pq=["d"],Rq=["d"],zq={class:"sfh-svg-elem",x:"0px",y:"0px"},Nq=["filter","d"],Iq=["d"],Mq={class:"sfh-text"},Dq=Object.assign({name:"ScifiHeaderA1"},{__name:"A1",props:{...ia},setup(e){const t=e,l=xe("sfHed"),a=S(!1),i=Pe({resizing:!1,path:{}}),{path:o}=Ye(i),n=g((()=>t.width||450)),s=g((()=>pe("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return ye((()=>{(async()=>{i.path=Je(Ss(n.value)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-header-a1","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-animation":e.animation,"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(s.value),ref:"svgHeader"},[a.value?(A(),h("div",{key:0,class:P(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h(ie,null,ze(2,(e=>u("svg",{class:P("sfh-side-deco sfh-sd-"+e),x:"0px",y:"0px",viewBox:"0 0 150 80"},[u("path",{class:"sfh-deco-4",d:f(o).deco4},null,8,Bq),u("path",{class:"sfh-deco-3",d:f(o).deco3},null,8,xq),u("path",{class:"sfh-deco-2",d:f(o).deco2},null,8,Pq),u("path",{class:"sfh-deco-1",d:f(o).deco1},null,8,Rq)],2))),64)),(A(),h("svg",zq,[ce(sa,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).mainBG},null,8,Nq),e.decoration?(A(),h("path",{key:0,class:"sfh-deco-btm",d:f(o).decoBG},null,8,Iq)):C("",!0)]))],2)):C("",!0),u("div",Mq,[X(e.$slots,"default",{},(()=>[De(F(e.text),1)]))])],6),[[Oe,a.value]])])),_:3}))}}),Oq={class:P("sfh-svg-elem"),x:"0px",y:"0px"},_q={key:0},Eq=["d"],Lq=["filter","d"],Wq=["d"],jq=["d"],Gq={key:1},Fq=["d"],Hq=["filter","d"],Uq=["d"],Qq=["d"],Yq=["d"],Kq=["d"],Xq={class:"sfh-text"},Zq=Object.assign({name:"ScifiHeaderA2"},{__name:"A2",props:{...ia},setup(e){const t=e,l=xe("sfHed"),a=S(!1),i=Pe({resizing:!1,path:{}}),{path:o}=Ye(i),n=g((()=>t.width||800)),s=g((()=>pe("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return ye((()=>{(async()=>{i.path=Je(qs(n.value)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-header-a2","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(s.value),ref:"svgHeader"},[a.value?(A(),h("div",{key:0,class:P(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",Oq,[ce(sa,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decorationAlt?C("",!0):(A(),h("g",_q,[u("path",{class:"sfh-main-bg sfh-main-bg-btm",d:f(o).AmainBG2},null,8,Eq),u("path",{class:"sfh-main-bg sfh-main-bg-top",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).AmainBG1},null,8,Lq),u("path",{class:"sfh-deco-left",d:f(o).AdecoL},null,8,Wq),u("path",{class:"sfh-deco-right",d:f(o).AdecoR},null,8,jq)])),e.decorationAlt?(A(),h("g",Gq,[u("path",{class:"sfh-main-bg sfh-main-bg-btm",d:f(o).BmainBG2},null,8,Fq),u("path",{class:"sfh-main-bg sfh-main-bg-top",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).BmainBG1},null,8,Hq),u("path",{class:"sfh-deco-left",d:f(o).BdecoL},null,8,Uq),u("path",{class:"sfh-deco-right",d:f(o).BdecoR},null,8,Qq)])):C("",!0),e.decoration&&!e.decorationColorAlt?(A(),h("path",{key:2,class:"sfh-deco-btm",d:f(o).decoB},null,8,Yq)):C("",!0),e.decoration?(A(),h("path",{key:3,class:"sfh-deco-btm-center",d:f(o).decoBc},null,8,Kq)):C("",!0)]))],2)):C("",!0),u("div",Xq,[X(e.$slots,"default",{},(()=>[De(F(e.text),1)]))])],6),[[Oe,a.value]])])),_:3}))}}),Jq={class:P("sfh-svg-elem"),x:"0px",y:"0px"},eT={key:0},tT=["filter","d"],lT={class:"sfh-deco-side"},aT=["d"],nT=["d"],oT=["d"],iT=["d"],sT={class:"sfh-deco-side"},rT=["d"],AT=["d"],uT=["d"],cT=["d"],dT={key:1},fT=["filter","d"],pT={class:"sfh-deco-side"},gT=["d"],hT=["d"],vT=["d"],mT=["d"],yT=["d"],bT={class:"sfh-deco-side"},VT=["d"],wT=["d"],CT=["d"],$T=["d"],kT=["d"],ST={key:2},qT=["d"],TT=["d"],BT=["d"],xT={class:"sfh-text"},PT=Object.assign({name:"ScifiHeaderA3"},{__name:"A3",props:{...ia},setup(e){const t=e,l=xe("sfHed"),a=S(!1),i=Pe({resizing:!1,path:{}}),{path:o}=Ye(i),n=g((()=>t.width||800)),s=g((()=>pe("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return ye((()=>{(async()=>{i.path=Je(Ts(n.value)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-header-a3","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(s.value),ref:"svgHeader"},[a.value?(A(),h("div",{key:0,class:P(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",Jq,[ce(sa,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decorationAlt?C("",!0):(A(),h("g",eT,[u("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).AmainBG1},null,8,tT),u("g",lT,[u("path",{class:"sfh-deco-2",d:f(o).Adeco2L},null,8,aT),u("path",{class:"sfh-deco-3",d:f(o).Adeco3L},null,8,nT),u("path",{class:"sfh-deco-4",d:f(o).Adeco4L},null,8,oT),u("path",{class:"sfh-deco-0",d:f(o).Adeco0L},null,8,iT)]),u("g",sT,[u("path",{class:"sfh-deco-2",d:f(o).Adeco2R},null,8,rT),u("path",{class:"sfh-deco-3",d:f(o).Adeco3R},null,8,AT),u("path",{class:"sfh-deco-4",d:f(o).Adeco4R},null,8,uT),u("path",{class:"sfh-deco-0",d:f(o).Adeco0R},null,8,cT)])])),e.decorationAlt?(A(),h("g",dT,[u("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).BmainBG1},null,8,fT),u("g",pT,[u("path",{class:"sfh-deco-1",d:f(o).Bdeco1L},null,8,gT),u("path",{class:"sfh-deco-2",d:f(o).Bdeco2L},null,8,hT),u("path",{class:"sfh-deco-3",d:f(o).Bdeco3L},null,8,vT),u("path",{class:"sfh-deco-4",d:f(o).Bdeco4L},null,8,mT),u("path",{class:"sfh-deco-5",d:f(o).Bdeco5L},null,8,yT)]),u("g",bT,[u("path",{class:"sfh-deco-1",d:f(o).Bdeco1R},null,8,VT),u("path",{class:"sfh-deco-2",d:f(o).Bdeco2R},null,8,wT),u("path",{class:"sfh-deco-3",d:f(o).Bdeco3R},null,8,CT),u("path",{class:"sfh-deco-4",d:f(o).Bdeco4R},null,8,$T),u("path",{class:"sfh-deco-5",d:f(o).Bdeco5R},null,8,kT)])])):C("",!0),e.decoration?(A(),h("g",ST,[u("path",{class:"sfh-deco-bl",d:f(o).decoBl},null,8,qT),u("path",{class:"sfh-deco-br",d:f(o).decoBr},null,8,TT),u("path",{class:"sfh-deco-btm-center",d:f(o).decoBc},null,8,BT)])):C("",!0)]))],2)):C("",!0),u("div",xT,[X(e.$slots,"default",{},(()=>[De(F(e.text),1)]))])],6),[[Oe,a.value]])])),_:3}))}}),RT={class:P("sfh-svg-elem"),x:"0px",y:"0px"},zT={key:0},NT={class:"sfh-deco-side"},IT=["d"],MT=["d"],DT=["d"],OT={class:"sfh-deco-side"},_T=["d"],ET=["d"],LT=["d"],WT=["d"],jT=["filter","d"],GT={key:1},FT={class:"sfh-deco-side"},HT=["d"],UT=["d"],QT=["d"],YT={class:"sfh-deco-side"},KT=["d"],XT=["d"],ZT=["d"],JT=["d"],eB=["filter","d"],tB={class:"sfh-text"},lB=Object.assign({name:"ScifiHeaderA4"},{__name:"A4",props:{...ia},setup(e){const t=e,l=xe("sfHed"),a=S(!1),i=Pe({resizing:!1,path:{}}),{path:o}=Ye(i),n=g((()=>t.width||800)),s=g((()=>pe("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return ye((()=>{(async()=>{i.path=Je(Bs(n.value)),await de(),a.value=!0})()})),(e,t)=>(A(),Z(Me,{name:"fade"},{default:W((()=>[we(u("div",{class:P(["scifi-header-a4","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(s.value),ref:"svgHeader"},[a.value?(A(),h("div",{key:0,class:P(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",RT,[ce(sa,{uid:f(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decorationAlt?C("",!0):(A(),h("g",zT,[u("g",NT,[u("path",{class:"sfh-deco-3",d:f(o).Adeco3L},null,8,IT),u("path",{class:"sfh-deco-2",d:f(o).Adeco2L},null,8,MT),u("path",{class:"sfh-deco-1",d:f(o).Adeco1L},null,8,DT)]),u("g",OT,[u("path",{class:"sfh-deco-3",d:f(o).Adeco3R},null,8,_T),u("path",{class:"sfh-deco-2",d:f(o).Adeco2R},null,8,ET),u("path",{class:"sfh-deco-1",d:f(o).Adeco1R},null,8,LT)]),e.decoration?(A(),h("path",{key:0,class:"sfh-deco-btm-center",d:f(o).decoBc},null,8,WT)):C("",!0),u("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).AmainBG},null,8,jT)])),e.decorationAlt?(A(),h("g",GT,[u("g",FT,[u("path",{class:"sfh-deco-1",d:f(o).Bdeco1L},null,8,HT),u("path",{class:"sfh-deco-2",d:f(o).Bdeco2L},null,8,UT),u("path",{class:"sfh-deco-3",d:f(o).Bdeco3L},null,8,QT)]),u("g",YT,[u("path",{class:"sfh-deco-1",d:f(o).Bdeco1R},null,8,KT),u("path",{class:"sfh-deco-2",d:f(o).Bdeco2R},null,8,XT),u("path",{class:"sfh-deco-3",d:f(o).Bdeco3R},null,8,ZT)]),e.decoration?(A(),h("path",{key:0,class:"sfh-deco-btm-center",d:f(o).decoBc},null,8,JT)):C("",!0),u("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${f(l)})`,d:f(o).BmainBG},null,8,eB)])):C("",!0)]))],2)):C("",!0),u("div",tB,[X(e.$slots,"default",{},(()=>[De(F(e.text),1)]))])],6),[[Oe,a.value]])])),_:3}))}}),wt={backgroundOpacity:Number,scale:Number,decoration:{type:Boolean,default:!0},decorationAlt:{type:Boolean,default:!1},decorationColorAlt:Boolean,glow:{type:Boolean,default:!1},glowRange:Number,glowOpacity:Number,title:String,className:String,titleWidth:{type:Number,default:150},borderd:{type:Boolean,default:!0},borderWidth:Number,rotate:{type:String,validator:e=>["x","y","z","all"].includes(e)},reverse:{type:Boolean,default:!1},directionAlt:{type:Boolean,default:!1},shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},animation:{type:Boolean,default:!0},aniDuration:Number,dotSize:{type:Number,default:2},dotOffset:{type:Number,default:0},backgroundBlur:{type:Boolean,default:!1},blurRange:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},showSlotImmed:{type:Boolean,default:!1}},aB=["id"],nB=["stdDeviation"],Ct=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:5}},setup:e=>(t,l)=>(A(),h("defs",null,[u("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=u("feFlood",null,null,-1)),l[1]||(l[1]=u("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),u("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,nB),l[2]||(l[2]=u("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=u("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,aB)]))}),oB={key:0,class:"sfp-content"},iB={key:0,class:"sfp-title"},sB={class:"sfp-rotate-wrap"},rB=["width","height"],AB=["filter","points"],uB=["points"],cB=["points"],dB=["points"],fB=["points"],pB=["points"],gB=["points"],hB=["points"],vB=["points"],mB=["points"],yB=["points"],bB=["points"],VB=Object.assign({name:"ScifiPanelA1"},{__name:"A1",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(xs(e,t,i.titleWidth))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("titleW",i.titleWidth,{append:"px",when:i.title}),...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:d.info.width+"px",h:d.info.height+"px"}))),y=g((()=>i.directionAlt?d.info.height:d.info.width)),b=g((()=>i.directionAlt?d.info.width:d.info.height)),V=e=>{const t=i.directionAlt?"DA_":"";return d.path[t+e]};return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-a1","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.directionAlt?"is-dir-alt":"is-dir-normal"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",oB,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[e.title?(A(),h("div",iB,F(e.title),1)):C("",!0),u("div",sB,[(A(),h("svg",{class:"sfp-svg-elem",width:y.value,height:b.value},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:V("mainBG")},null,8,AB),(!e.title&&!e.decorationAlt||e.title&&e.decorationAlt)&&e.decoration?(A(),h("polyline",{key:0,class:"sfp-corner-lb-longdeco",points:V("cornerDecoLBLong")},null,8,uB)):C("",!0),e.title?C("",!0):(A(),h(ie,{key:1},[u("polyline",{class:"sfp-corner-rect0",points:V("cornerRect0")},null,8,cB),u("polyline",{class:"sfp-corner-rect1",points:V("cornerRect1")},null,8,dB),u("polyline",{class:"sfp-corner-rect2",points:V("cornerRect2")},null,8,fB),u("polyline",{class:"sfp-corner-rect3",points:V("cornerRect3")},null,8,pB),u("polyline",{class:"sfp-corner-rect4",points:V("cornerRect4")},null,8,gB)],64)),e.decoration?(A(),h("polyline",{key:2,class:"sfp-corner-lt-triangle",points:V("cornerTrangleLT")},null,8,hB)):C("",!0),e.decoration?(A(),h("polyline",{key:3,class:"sfp-corner-rb-triangle",points:V("cornerTrangleRB")},null,8,vB)):C("",!0),(e.title&&!e.decorationAlt||!e.title&&e.decorationAlt)&&e.decoration?(A(),h("polyline",{key:4,class:"sfp-corner-lb-triangle",points:V("cornerTrangleLB")},null,8,mB)):C("",!0),e.title&&!e.decorationAlt||!e.title&&e.decorationAlt||!e.decoration?(A(),h("polyline",{key:5,class:"sfp-corner-lb-line",points:V("cornerLineLB")},null,8,yB)):C("",!0),e.title?(A(),h("polyline",{key:6,class:"sfp-title-deco",points:V("titleDeco")},null,8,bB)):C("",!0)],8,rB))])],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),wB={key:0,class:"sfp-content"},CB={class:"sfp-title"},$B={class:"sfp-rotate-wrap"},kB=["width","height"],SB=["filter","d"],qB=["d"],TB=["points"],BB=["points"],xB=["points"],PB=["points"],RB=["points"],zB=["d"],NB=Object.assign({name:"ScifiPanelA2"},{__name:"A2",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Ps(e,t,i.titleWidth))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("titleW",i.titleWidth,{append:"px",when:i.title}),...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:d.info.width+"px",h:d.info.height+"px"}))),y=g((()=>i.directionAlt?d.info.height:d.info.width)),b=g((()=>i.directionAlt?d.info.width:d.info.height)),V=e=>{const t=i.directionAlt?"DA_":"";return d.path[t+e]};return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-a3","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.directionAlt?"is-dir-alt":"is-dir-normal"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-alt":e.decorationAlt,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",wB,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h(ie,{key:1},[u("div",CB,F(e.title),1),u("div",{class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[u("div",$B,[(A(),h("svg",{class:"sfp-svg-elem",width:y.value,height:b.value},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",d:V("mainBG")},null,8,SB),u("path",{class:"sfp-corner-line",fill:"transparent",d:V("cornerLine")},null,8,qB),u("polyline",{class:"sfp-corner-block",points:V("cornerBlock")},null,8,TB),e.decoration?(A(),h(ie,{key:0},[u("polyline",{class:"sfp-corner-triangle-lb",points:V("cornerTriangleLB")},null,8,BB),e.decorationAlt?C("",!0):(A(),h("polyline",{key:0,class:"sfp-corner-triangle-rt",points:V("cornerTriangleRT")},null,8,xB))],64)):C("",!0),e.decorationAlt?(A(),h("path",{key:2,class:"sfp-title-deco-alt",d:V("titleDecoAlt")},null,8,zB)):(A(),h(ie,{key:1},[u("polyline",{class:"sfp-head-line",points:V("titleDeco")},null,8,PB),u("polyline",{class:"sfp-title-deco",points:V("headLine")},null,8,RB)],64))],8,kB))])],2)],64)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),IB={key:0,class:"sfp-content"},MB={class:"sfp-corenr-title"},DB=["width","height"],OB=["filter","points"],_B=["points"],EB=["points"],LB=["points"],WB=["points"],jB=Object.assign({name:"ScifiPanelA3"},{__name:"A3",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Rs(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:d.info.width+"px",h:d.info.height+"px"})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-a2","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",IB,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h(ie,{key:1},[u("div",MB,F(e.title),1),u("div",{class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,OB),u("polyline",{class:"sfp-corner-large-trg",points:f(c).titleTrangle},null,8,_B),u("polyline",{class:"sfp-corner-small-trg",points:f(c).decorTriangle},null,8,EB),e.decoration?(A(),h(ie,{key:0},[u("polyline",{class:"sfp-corner-long-line",points:f(c).decorLine1},null,8,LB),u("polyline",{class:"sfp-corner-short-line",points:f(c).decorLine2},null,8,WB)],64)):C("",!0)],8,DB))],2)],64)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),GB={key:0,class:"sfp-content"},FB=["width","height"],HB=["filter","points"],UB=["points"],QB=["points"],YB=["points"],KB=Object.assign({name:"ScifiPanelB1"},{__name:"B1",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{},borderCorner:["top-left","top-right","btm-left","btm-right"]}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(zs(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-b1","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",GB,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,HB),u("polygon",{class:"sfp-deco-left",points:f(c).decoL},null,8,UB),u("polygon",{class:"sfp-deco-right",points:f(c).decoR},null,8,QB)],8,FB)),e.decoration?(A(!0),h(ie,{key:0},ze(d.borderCorner,(e=>(A(),h("svg",{class:P("sfp-svg-corner sfp-corner-"+e),width:"50",height:"50"},[u("polygon",{class:"sfp-corner-ele",points:f(c).decoCorner},null,8,YB)],2)))),256)):C("",!0)],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),XB={key:0,class:"sfp-content"},ZB=["width","height"],JB=["id"],ex=["id"],tx=["points"],lx=["points"],ax=["points"],nx=["filter","points"],ox=["width","height","fill","mask"],ix=Object.assign({name:"ScifiPanelB2"},{__name:"B2",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Ns(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px"),...q("aniDur",i.aniDuration,"s")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-b2","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":d.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",XB,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("defs",null,[u("linearGradient",{class:"sfp-grad-group",id:`gradient-${f(o)}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[...t[0]||(t[0]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,JB),u("mask",{id:`mask-${f(o)}`},[e.decoration?(A(),h("polyline",{key:0,class:"sfp-deco-left",fill:"#fff",points:f(c).decoL},null,8,tx)):C("",!0),e.decoration?(A(),h("polyline",{key:1,class:"sfp-deco-right",fill:"#fff",points:f(c).decoR},null,8,lx)):C("",!0)],8,ex)]),u("polyline",{class:"sfp-deco-btm",points:f(c).decoB},null,8,ax),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,nx),u("rect",{x:"0",y:"0",width:f(p).width,height:f(p).height,fill:`url(#gradient-${f(o)})`,mask:`url(#mask-${f(o)})`},null,8,ox)],8,ZB))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),sx={key:0,class:"sfp-content"},rx=["width","height"],Ax=["filter","d"],ux=["points"],cx=["d"],dx=["points"],fx=["d"],px=["points"],gx=["points"],hx=Object.assign({name:"ScifiPanelB3"},{__name:"B3",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Is(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-b3","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",sx,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",d:f(c).mainBG},null,8,Ax),e.decorationAlt?(A(),h("polyline",{key:0,class:"sfp-deco-arrow-tl",points:f(c).decoArrowTL},null,8,ux)):C("",!0),!e.decorationAlt&&e.decoration?(A(),h("path",{key:1,class:"sfp-deco-line-tl",d:f(c).decoLineTL},null,8,cx)):C("",!0),e.decorationAlt?(A(),h("polyline",{key:2,class:"sfp-deco-arrow-br",points:f(c).decoArrowBR},null,8,dx)):C("",!0),!e.decorationAlt&&e.decoration?(A(),h("path",{key:3,class:"sfp-deco-line-br",d:f(c).decoLineBR},null,8,fx)):C("",!0),u("polyline",{class:"sfp-deco-lb",points:f(c).decoLB},null,8,px),u("polyline",{class:"sfp-deco-rt",points:f(c).decoRT},null,8,gx)],8,rx))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),vx={key:0,class:"sfp-content"},mx=["width","height"],yx=["id"],bx=["id"],Vx=["id"],wx=["id"],Cx=["filter","points"],$x=["points"],kx=["points"],Sx=["points"],qx=["points"],Tx=["points"],Bx=["points"],xx=["stroke","points"],Px=["stroke","points"],Rx=["stroke","points"],zx=["stroke","points"],Nx=Object.assign({name:"ScifiPanelB4"},{__name:"B4",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Ms(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-b4","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.decoration?"sfp-has-deco":"sfp-no-deco"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",vx,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("defs",null,[u("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"0%",y1:"0%",x2:"8%",y2:"8%",id:`gradient1-${f(o)}`},[...t[0]||(t[0]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,yx),u("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"100%",y1:"0%",x2:"92%",y2:"8%",id:`gradient2-${f(o)}`},[...t[1]||(t[1]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,bx),u("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"100%",y1:"100%",x2:"92%",y2:"92%",id:`gradient3-${f(o)}`},[...t[2]||(t[2]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,Vx),u("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"0%",y1:"100%",x2:"8%",y2:"92%",id:`gradient4-${f(o)}`},[...t[3]||(t[3]=[u("stop",{offset:"0%"},null,-1),u("stop",{offset:"100%"},null,-1)])],8,wx)]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,Cx),u("polyline",{class:"sfp-inf-line1",points:f(c).line1},null,8,$x),u("polyline",{class:"sfp-inf-line2",points:f(c).line2},null,8,kx),u("polyline",{class:"sfp-inf-line3",points:f(c).line3},null,8,Sx),e.decoration?(A(),h(ie,{key:0},[u("polyline",{class:"sfp-inf-line4",points:f(c).line4},null,8,qx),u("polyline",{class:"sfp-inf-line5",points:f(c).line5},null,8,Tx),u("polyline",{class:"sfp-inf-line6",points:f(c).line6},null,8,Bx)],64)):C("",!0),e.decoration?(A(),h(ie,{key:1},[u("polyline",{class:"sfp-corner-line",stroke:`url(#gradient1-${f(o)})`,points:f(c).cornerTL},null,8,xx),u("polyline",{class:"sfp-corner-line",stroke:`url(#gradient2-${f(o)})`,points:f(c).cornerTR},null,8,Px),u("polyline",{class:"sfp-corner-line",stroke:`url(#gradient3-${f(o)})`,points:f(c).cornerBR},null,8,Rx),u("polyline",{class:"sfp-corner-line",stroke:`url(#gradient4-${f(o)})`,points:f(c).cornerBL},null,8,zx)],64)):C("",!0)],8,mx))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),Ix={key:0,class:"sfp-content"},Mx=["width","height"],Dx=["points"],Ox=["filter","points"],_x=["points"],Ex=["points"],Lx=["points"],Wx=["points"],jx={key:0,attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},Gx=["points"],Fx={key:0,attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},Hx=["points"],Ux={key:0,attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},Qx=["points"],Yx={key:0,attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},Kx=["points"],Xx={key:0,attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},Zx=["points"],Jx={key:0,attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},eP=["x"],tP=["points"],lP=["points"],aP=Object.assign({name:"ScifiPanelDV1"},{__name:"DV1",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Ds(e,t,i.titleWidth))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("titleW",i.titleWidth,{append:"px",when:i.title}),...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:d.info.width+"px",h:d.info.height+"px"})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv1","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.directionAlt?"is-dir-alt":"is-dir-normal"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-hide-deco":!e.decoration,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",Ix,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polygon",{class:"sfp-title-bg",points:f(c).titleBG},null,8,Dx),u("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).border},null,8,Ox),u("polygon",{class:"sfp-title-deco-right",points:f(c).titleDecoR},null,8,_x),u("polygon",{class:"sfp-title-deco-left",points:f(c).titleDecoL},null,8,Ex),u("polygon",{class:"sfp-title-bg-in",points:f(c).titleBGin},null,8,Lx),e.decoration?(A(),h(ie,{key:0},[u("polygon",{class:"sfp-deco-top-1",opacity:"1",points:f(c).decoT1},[e.animation?(A(),h("animate",jx)):C("",!0)],8,Wx),u("polygon",{class:"sfp-deco-top-2",opacity:"0.7",points:f(c).decoT2},[e.animation?(A(),h("animate",Fx)):C("",!0)],8,Gx),u("polygon",{class:"sfp-deco-top-3",opacity:"0.5",points:f(c).decoT3},[e.animation?(A(),h("animate",Ux)):C("",!0)],8,Hx),u("polygon",{class:"sfp-deco-top-4",opacity:"1",points:f(c).decoT4},[e.animation?(A(),h("animate",Yx)):C("",!0)],8,Qx),u("polygon",{class:"sfp-deco-top-5",opacity:"0.7",points:f(c).decoT5},[e.animation?(A(),h("animate",Xx)):C("",!0)],8,Kx),u("polygon",{class:"sfp-deco-top-6",opacity:"0.5",points:f(c).decoT6},[e.animation?(A(),h("animate",Jx)):C("",!0)],8,Zx)],64)):C("",!0),u("text",{class:"sfp-title-text",x:""+f(p).width/2,y:"32","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"},F(e.title),9,eP),u("polygon",{class:"sfp-deco-left",points:f(c).decoL},null,8,tP),u("polygon",{class:"sfp-deco-right",points:f(c).decoR},null,8,lP)],8,Mx))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),nP={key:0,class:"sfp-content"},oP=["width","height"],iP=["filter","points"],sP=["points"],rP=["points"],AP=["points"],uP=Object.assign({name:"ScifiPanelDV2"},{__name:"DV2",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{},corners:["left-top","right-top","left-btm","right-btm"]}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Os(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("aniDur",i.aniDuration,"s")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv2","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",nP,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,iP)],8,oP)),(A(!0),h(ie,null,ze(d.corners,(t=>(A(),h("svg",{width:"150",height:"150",key:t,class:P(`sfp-${t} sfp-svg-corner`)},[u("polygon",{points:f(c).decoA},null,8,sP),e.decoration?(A(),h(ie,{key:0},[u("polygon",{points:f(c).decoB},null,8,rP),u("polygon",{points:f(c).decoC},null,8,AP)],64)):C("",!0)],2)))),128))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),cP={key:0,class:"sfp-content"},dP=["width","height"],fP=["filter","points"],pP=["points"],gP=["points"],hP=["points"],vP=["points"],mP=["points"],yP=["points"],bP=["points"],VP=["points"],wP=["points"],CP=["points"],$P={class:"sfp-dot"},kP=["cx","cy","r"],SP=["cx","cy","r"],qP=["cx","cy","r"],TP=["cx","cy","r"],BP=Object.assign({name:"ScifiPanelDV3"},{__name:"DV3",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(_s(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv3","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",cP,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,fP),u("polyline",{class:"sfp-border",points:f(c).lineT},null,8,pP),u("polyline",{class:"sfp-border",points:f(c).lineB},null,8,gP),u("polyline",{class:"sfp-border",points:f(c).lineL},null,8,hP),u("polyline",{class:"sfp-border",points:f(c).lineR},null,8,vP),e.decoration?(A(),h(ie,{key:0},[u("polyline",{class:"sfp-center-line",points:f(c).lineLc},null,8,mP),u("polyline",{class:"sfp-center-line",points:f(c).lineRc},null,8,yP),u("polyline",{class:"sfp-deco-line",points:f(c).deco1},null,8,bP),u("polyline",{class:"sfp-deco-line",points:f(c).deco2},null,8,VP),u("polyline",{class:"sfp-deco-line",points:f(c).deco3},null,8,wP),u("polyline",{class:"sfp-deco-line",points:f(c).deco4},null,8,CP)],64)):C("",!0),u("g",$P,[u("circle",{cx:5+e.dotOffset,cy:5+e.dotOffset,r:e.dotSize},null,8,kP),u("circle",{cx:f(p).width-5-e.dotOffset,cy:5+e.dotOffset,r:e.dotSize},null,8,SP),u("circle",{cx:f(p).width-5-e.dotOffset,cy:f(p).height-5-e.dotOffset,r:e.dotSize},null,8,qP),u("circle",{cx:5+e.dotOffset,cy:f(p).height-5-e.dotOffset,r:e.dotSize},null,8,TP)])],8,dP))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),xP={key:0,class:"sfp-content"},PP=["width","height"],RP=["filter","points"],zP=["points"],NP={key:0,class:"sfp-svg-dot"},IP=["cx","cy","r"],MP=["cx","cy","r"],DP=["cx","cy","r"],OP=["cx","cy","r"],_P=Object.assign({name:"ScifiPanelDV4"},{__name:"DV4",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Es(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv4","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",xP,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,RP),u("polyline",{class:"sfp-svg-inner-bd",points:f(c).innerBorder},null,8,zP),e.decoration?(A(),h("g",NP,[u("circle",{cx:13+e.dotOffset,cy:13+e.dotOffset,r:e.dotSize},null,8,IP),u("circle",{cx:f(p).width-13-e.dotOffset,cy:13+e.dotOffset,r:e.dotSize},null,8,MP),u("circle",{cx:f(p).width-13-e.dotOffset,cy:f(p).height-13-e.dotOffset,r:e.dotSize},null,8,DP),u("circle",{cx:13+e.dotOffset,cy:f(p).height-13-e.dotOffset,r:e.dotSize},null,8,OP)])):C("",!0)],8,PP))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),EP={key:0,class:"sfp-content"},LP=["width","height"],WP=["filter","points"],jP={class:"sfp-corner-line sfp-line-w2"},GP=["points"],FP=["points"],HP=["points"],UP=["points"],QP={key:0,class:"sfp-corner-line sfp-line-w5"},YP=["points"],KP=["points"],XP=["points"],ZP=["points"],JP=Object.assign({name:"ScifiPanelDV5"},{__name:"DV5",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Ls(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv5","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",EP,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,WP),u("g",jP,[u("polyline",{points:f(c).cornerA1},null,8,GP),u("polyline",{points:f(c).cornerA2},null,8,FP),u("polyline",{points:f(c).cornerA3},null,8,HP),u("polyline",{points:f(c).cornerA4},null,8,UP)]),e.decoration?(A(),h("g",QP,[u("polyline",{points:f(c).cornerB1},null,8,YP),u("polyline",{points:f(c).cornerB2},null,8,KP),u("polyline",{points:f(c).cornerB3},null,8,XP),u("polyline",{points:f(c).cornerB4},null,8,ZP)])):C("",!0)],8,LP))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),eR={key:0,class:"sfp-content"},tR=["width","height"],lR=["filter","points"],aR=["points"],nR=Object.assign({name:"ScifiPanelDV6"},{__name:"DV6",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{},corners:["left-top","right-top","left-btm","right-btm"]}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Ws(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv6","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",eR,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(c).mainBG},null,8,lR)],8,tR)),s.value&&e.decoration?(A(!0),h(ie,{key:0},ze(d.corners,(e=>(A(),h("svg",{width:"150px",height:"150px",key:e,class:P(`sfp-${e} sfp-svg-corner`)},[u("polygon",{points:f(c).deco},null,8,aR)],2)))),128)):C("",!0)],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),oR={key:0,class:"sfp-content"},iR=["width","height"],sR={key:0},rR=["id"],AR=["filter","d"],uR=["filter"],cR=["d"],dR=["d"],fR=["d"],pR=["d"],gR=Object.assign({name:"ScifiPanelDV7"},{__name:"DV7",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(js(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("aniDur",i.aniDuration,"s")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv7","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",oR,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decoration?(A(),h("defs",sR,[u("filter",{class:"sfp-glow-filter",id:`filter2-${f(o)}`,height:"150%",width:"150%",x:"-25%",y:"-25%"},[...t[0]||(t[0]=[u("feMorphology",{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"},null,-1),u("feGaussianBlur",{in:"thicken",stdDeviation:"2",result:"blurred"},null,-1),u("feFlood",{result:"glowColor"},null,-1),u("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null,-1),u("feMerge",null,[u("feMergeNode",{in:"softGlowColored"}),u("feMergeNode",{in:"SourceGraphic"})],-1)])],8,rR)])):C("",!0),u("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",d:f(c).mainBG},null,8,AR),e.decoration?(A(),h("g",{key:1,class:"sfp-corner",filter:`url(#filter2-${f(o)})`},[u("path",{d:f(c).corner1},null,8,cR),u("path",{d:f(c).corner2},null,8,dR),u("path",{d:f(c).corner3},null,8,fR),u("path",{d:f(c).corner4},null,8,pR)],8,uR)):C("",!0)],8,iR))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),hR={key:0,class:"sfp-content"},vR=["width","height"],mR=["filter","d"],yR=["d"],bR=["d"],VR={key:1},wR=["points"],CR=["points"],$R=["d"],kR=Object.assign({name:"ScifiPanelDV8"},{__name:"DV8",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:p}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Gs(e,t))})(),await de(),s.value=!0},m=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv8","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":d.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",hR,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(p).width,height:f(p).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",d:f(c).mainBG},null,8,mR),u("path",{class:"sfp-dash",d:f(c).headDecoA},null,8,yR),e.borderd?(A(),h("path",{key:0,class:"sfp-head-line",d:f(c).headDecoB},null,8,bR)):C("",!0),e.decoration?(A(),h("g",VR,[e.decoration?(A(),h("polyline",{key:0,class:"sfp-corner-lb",points:f(c).decoLB},null,8,wR)):C("",!0),u("polyline",{class:"sfp-corner-rt",points:f(c).decoRT},null,8,CR)])):C("",!0),u("path",{class:"sfp-corner-rb",d:f(c).decoRB},null,8,$R)],8,vR))],2)):C("",!0)],6)),[[l,{callback:v,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),SR={key:0,class:"sfp-content"},qR=["width","height"],TR=["id","d"],BR=["id","d"],xR=["id"],PR=["id"],RR=["fill"],zR=["dur","path"],NR=["dur","path"],IR=["filter","points"],MR=["xlink:href","mask"],DR=Object.assign({name:"ScifiPanelDV9"},{__name:"DV9",props:{...wt},setup(e){const{$optResizeCounter:t,initResizeBy:l}=Se("$global",null),a=l(),i=e,o=xe("sfPan"),n=S(!1),s=S(!1),r=S(!1),d=Pe({resizing:!1,info:{width:0,height:0},path:{}});g((()=>2*(d.info.width+d.info.height)));const c=g((()=>i.aniDuration||10)),{path:p,info:v}=Ye(d);K((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&m({width:l,height:o})}));const m=async({width:e,height:t})=>{d.info.width=e,d.info.height=t,(()=>{const{width:e,height:t}=d.info;d.path=Je(Fs(e,t))})(),await de(),s.value=!0},y=g((()=>pe("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("aniDur",i.aniDuration,"s")})));return ye((()=>{r.value=!0})),(e,t)=>{const l=Fe("tui-resize");return A(),Z(Me,{name:"fade"},{default:W((()=>[we((A(),h("div",{class:P(["scifi-panel-dv9","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":d.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(y.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(A(),h("div",SR,[X(e.$slots,"default")])):C("",!0),s.value?(A(),h("div",{key:1,class:P(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(A(),h("svg",{class:"sfp-svg-elem",width:f(v).width,height:f(v).height},[ce(Ct,{uid:f(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),u("defs",null,[e.reverse?(A(),h("path",{key:1,id:`path-${f(o)}`,d:f(p).pathR,fill:"transparent"},null,8,BR)):(A(),h("path",{key:0,id:`path-${f(o)}`,d:f(p).pathN,fill:"transparent"},null,8,TR)),u("radialGradient",{id:`gradient-${f(o)}`,cx:"50%",cy:"50%",r:"50%"},[...t[0]||(t[0]=[u("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),u("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)])],8,xR),u("mask",{id:`mask-${f(o)}`},[u("circle",{cx:"0",cy:"0",r:"150",fill:`url(#gradient-${f(o)})`},[e.reverse?(A(),h("animateMotion",{key:1,dur:`${c.value}s`,path:f(p).pathR,rotate:"auto",repeatCount:"indefinite"},null,8,NR)):(A(),h("animateMotion",{key:0,dur:`${c.value}s`,path:f(p).pathN,rotate:"auto",repeatCount:"indefinite"},null,8,zR))],8,RR)],8,PR)]),u("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${f(o)})`:"",points:f(p).mainBG},null,8,IR),u("use",{class:"sfp-deco-light","xlink:href":`#path-${f(o)}`,mask:`url(#mask-${f(o)})`},null,8,MR)],8,qR))],2)):C("",!0)],6)),[[l,{callback:m,uid:f(o),disabled:"self"!=f(a)(e.resizeObserver)&&s.value}],[Oe,r.value]])])),_:3})}}}),OR={backgroundOpacity:Number,scale:Number,decoration:{type:Boolean,default:!0},decorationColorAlt:Boolean,decorationAlt:{type:Boolean,default:!1},glow:{type:Boolean,default:!1},glowRange:Number,glowOpacity:Number,title:String,className:String,titleWidth:{type:Number,default:150},borderd:{type:Boolean,default:!0},borderWidth:Number,rotate:{type:String,validator:e=>["x","y","z","all"].includes(e)},reverse:{type:Boolean,default:!1},directionAlt:{type:Boolean,default:!1},shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},animation:{type:Boolean,default:!0},aniDuration:Number,dotSize:{type:Number,default:2},dotOffset:{type:Number,default:0},backgroundBlur:{type:Boolean,default:!1},blurRange:Number},_R={class:"tuip-content"},ER={key:0,class:"tuip-corner-angle-left"},LR={key:1,class:"tuip-corner-angle-right"},WR=Object.assign({name:"TuiPanelA1"},{__name:"A1",props:{...OR,angleLength:Number,angleWeight:Number,anglePosition:Number,borderRadius:Number,borderRadiusFix:Number},setup(e){const t=e;xe("tuipan"),S(!1);const l=g((()=>pe("cpt-panel",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("scale",t.scale),...q("angleLength",t.angleLength,"px"),...q("angleWeight",t.angleWeight,"px"),...q("anglePosition",t.anglePosition,"px"),...q("bdra",t.borderRadius,"px"),...q("bdraFix",t.borderRadiusFix,"px"),...q("bgBlur",t.blurRange,"px"),...q("glowRange",t.glowRange,"px"),...q("glowOp",t.glowOpacity)})));return ye((()=>{})),(e,t)=>(A(),h("div",{class:P(["tui-panel-a1","tui-panel",e.className,{"is-bordered":e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:fe(l.value)},[u("div",_R,[X(e.$slots,"default")]),u("div",{class:P(["tuip-appr",{"t3d-shadow-item":"t3d"==e.shadowType,"tui-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur,"is-glow":e.glow}])},[t[0]||(t[0]=u("div",{class:"tuip-bg"},null,-1)),e.decoration?(A(),h("div",ER)):C("",!0),e.decoration?(A(),h("div",LR)):C("",!0)],2)],6))}}),jR=["sfp-content","tuip-content"],GR={1:32,2:28,3:24,4:20,5:18,6:16};function Uo(e){const t=Number(e);return Number.isInteger(t)&&t>=1&&t<=6}function FR(e){return Uo(e)?Number(e):6}const xl={width:Number,minWidth:Number,fontWeight:[String,Number],fontSize:Number,level:{type:[Number,String],default:6,validator:Uo},offset:Number,offsetX:Number,offsetY:Number,title:String,className:String,backgroundOpacity:Number,scale:{type:Number,default:1},mode:{type:String,default:"auto",validator:e=>["auto","absolute","flow"].includes(e)},appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},placement:{type:String,default:null,validator:e=>["center","left","right"].includes(e)},textAlign:{type:String,default:null,validator:e=>["center","left","right"].includes(e)},decorationColorAlt:{type:Boolean,default:!1}};function HR(e){const t=e?.parentElement;return t&&jR.some((e=>t.classList.contains(e)))?"absolute":"flow"}function Pl(e,t,l="center",a=null){const i=S("auto"===t.mode?"flow":t.mode),o=()=>{i.value="auto"===t.mode?HR(e.value):t.mode};ye((()=>{o()}));const n=g((()=>t.placement||l)),A=g((()=>t.textAlign||a||n.value));return{resolvedMode:i,placement:n,textAlign:A,refreshMode:o}}function Rl(e,t={}){const l=null!=e.fontSize?e.fontSize:GR[FR(e.level)],a=null!=e.offsetX?e.offsetX:e.offset,i=null!=e.offsetY?e.offsetY:e.offset;return pe("cpt-title",{...q("w",e.width,"px"),...q("minw",e.minWidth,"px"),...q("fw",e.fontWeight),...q("fs",l,{append:"px",zero:!0}),...q("bgOp",e.backgroundOpacity),...q("scale",e.scale),...q("ofsX",a,{append:"px",zero:!0}),...q("ofsY",i,{append:"px",zero:!0}),...t})}const UR={class:"sft-text"},QR=["width"],YR=["points"],KR=["points"],XR=["points"],ZR=["width"],JR=["d"],ez=Object.assign({name:"ScifiTitleA1"},{__name:"A1",props:{...xl,offsetY:{type:Number,default:3}},setup(e){const t=e,l=S(null),a=S(!1),i=Pe({resizing:!1,path:{},width:0}),{path:o}=Ye(i),{resolvedMode:n,placement:s,textAlign:r}=Pl(l,t,"center"),d=e=>{const t=l.value;t&&(i.width=t.clientWidth,(async()=>{i.path=Je(Hs(i.width)),await de(),a.value=!0})())},c=g((()=>Rl(t)));return ye((()=>{d()})),(e,t)=>{const p=Fe("tui-resize");return we((A(),h("div",{class:P(["scifi-title-a1","sf-svg-title","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),`is-mode-${f(n)}`,`is-plcm-${f(s)}`,`is-text-align-${f(r)}`,`sft-appr-${e.appearance}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:fe(c.value),ref_key:"titleRef",ref:l},[u("div",UR,[e.title?(A(),h(ie,{key:1},[De(F(e.title),1)],64)):X(e.$slots,"default",{key:0})]),a.value?(A(),h(ie,{key:0},["A"==e.appearance?(A(),h("svg",{key:0,class:"sft-svg-elem",width:i.width,height:"8"},[u("polyline",{class:"sft-deco-center",stroke:"none",points:f(o).AdecoC},null,8,YR),u("polyline",{class:"sft-deco-left",stroke:"none",points:f(o).AdecoL},null,8,KR),u("polyline",{class:"sft-deco-right",stroke:"none",points:f(o).AdecoR},null,8,XR)],8,QR)):C("",!0),"B"==e.appearance?(A(),h("svg",{key:1,class:"sft-svg-elem",width:i.width,height:"34"},[u("path",{class:"sft-deco-path",d:f(o).Bdeco},null,8,JR)],8,ZR)):C("",!0)],64)):C("",!0)],6)),[[p,d]])}}}),tz={class:"sft-text"},lz={class:"sft-svg-elem",width:"20",height:"40",viewBox:"0 0 20 40"},az=["d"],nz={class:"sft-svg-elem",width:"20",height:"40",viewBox:"0 0 20 40"},oz=["d"],iz=["d"],sz=["d"],rz=Object.assign({name:"ScifiTitleA2"},{__name:"A2",props:{...xl,offsetY:{type:Number,default:6}},setup(e){const t=e,l=S(null),a=S(!1),i=Pe({resizing:!1,path:{},width:0}),{path:o}=Ye(i),{resolvedMode:n,placement:s,textAlign:r}=Pl(l,t,"center"),d=()=>{const e=l.value;e&&(i.width=e.clientWidth,(async()=>{i.path=Je(Us(i.width)),await de(),a.value=!0})())},c=g((()=>Rl(t)));return ye((()=>{d()})),(e,t)=>(A(),h("div",{class:P(["scifi-title-a2","sf-svg-title","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),`is-mode-${f(n)}`,`is-plcm-${f(s)}`,`is-text-align-${f(r)}`,`sft-appr-${e.appearance}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:fe(c.value),ref_key:"titleRef",ref:l},[u("div",tz,[e.title?(A(),h(ie,{key:1},[De(F(e.title),1)],64)):X(e.$slots,"default",{key:0})]),a.value?(A(),h(ie,{key:0},["A"==e.appearance?(A(),h(ie,{key:0},ze(2,(e=>u("svg",lz,[u("path",{class:"sft-deco-polyline",d:f(o).Adeco},null,8,az)]))),64)):C("",!0),"B"==e.appearance?(A(),h(ie,{key:1},ze(2,(e=>u("svg",nz,[u("path",{class:"sft-deco-path1",d:f(o).Bdeco1},null,8,oz),u("path",{class:"sft-deco-path2",d:f(o).Bdeco2},null,8,iz),u("path",{class:"sft-deco-path3",d:f(o).Bdeco3},null,8,sz)]))),64)):C("",!0)],64)):C("",!0)],6))}}),Az={key:0,class:"sft-svg-elem",width:"20",height:"30",viewBox:"0 0 20 30"},uz=["d"],cz={key:1,class:"sft-svg-elem",width:"20",height:"30",viewBox:"0 0 20 30"},dz=["d"],fz=["d"],pz=["d"],gz={class:"sft-text"},hz=Object.assign({name:"ScifiTitleA3"},{__name:"A3",props:{...xl,offsetY:{type:Number,default:10}},setup(e){const t=e,l=S(null),a=S(!1),i=Pe({resizing:!1,path:{}}),{path:o}=Ye(i),{resolvedMode:n,placement:s,textAlign:r}=Pl(l,t,"left","left"),d=g((()=>Rl(t)));return ye((()=>{(async()=>{i.path=Je(Qs()),await de(),a.value=!0})()})),(e,t)=>(A(),h("div",{class:P(["scifi-title-a3","sf-svg-title","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),`is-mode-${f(n)}`,`is-plcm-${f(s)}`,`is-text-align-${f(r)}`,`sft-appr-${e.appearance}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:fe(d.value),ref_key:"titleRef",ref:l},["A"==e.appearance?(A(),h("svg",Az,[u("path",{class:"sft-deco-path",d:f(o).Adeco},null,8,uz)])):C("",!0),"B"==e.appearance?(A(),h("svg",cz,[u("path",{class:"sft-deco-path",d:f(o).Bdeco1},null,8,dz),u("path",{class:"sft-deco-path-sub",d:f(o).Bdeco2},null,8,fz),u("path",{class:"sft-deco-path-sub",d:f(o).Bdeco3},null,8,pz)])):C("",!0),u("span",gz,[e.title?(A(),h(ie,{key:1},[De(F(e.title),1)],64)):X(e.$slots,"default",{key:0})])],6))}}),vz=Object.assign({name:"TuiTitleA1"},{__name:"A1",props:{...xl},setup(e){const t=e,l=S(null),{resolvedMode:a,placement:i,textAlign:o}=Pl(l,t,"center","center"),n=g((()=>Rl(t)));return(e,t)=>(A(),h("div",{class:P(["tui-title-a1","tui-title",e.className,`is-mode-${f(a)}`,`is-plcm-${f(i)}`,`is-text-align-${f(o)}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:fe(n.value),ref_key:"titleRef",ref:l},[e.title?(A(),h(ie,{key:1},[De(F(e.title),1)],64)):X(e.$slots,"default",{key:0})],6))}}),mz=Object.assign({name:"TuiTitleA2"},{__name:"A2",props:{...xl},setup(e){const t=e,l=S(null),{resolvedMode:a,placement:i,textAlign:o}=Pl(l,t,"left","left"),n=g((()=>Rl(t)));return(e,t)=>(A(),h("div",{class:P(["tui-title-a2","tui-title",e.className,`is-mode-${f(a)}`,`is-plcm-${f(i)}`,`is-text-align-${f(o)}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:fe(n.value),ref_key:"titleRef",ref:l},[e.title?(A(),h(ie,{key:1},[De(F(e.title),1)],64)):X(e.$slots,"default",{key:0})],6))}}),Nz={$dDrag:CA,$dMenu:Yr,$dResize:$A,$dPopover:gA,$dCursorTip:AA,$dVcid:kA},Iz={tuiService:Mr,tuiBus:Mn},Mz={$gAttention:cu,$gMask:bu,$gLoading:vu,$gPopover:Su,$gPopoverDirectiveCloseAll:hA},Dz=[Nu,Lu,Ku,Zu,vd,Tf,Vo,yp,ip,bp,Lf,Jf,xp,Rp,jp,Np,Mp,Op,ko,Wp,On,Ba,Qp,Kp,ul,Zp,So,eg,lg,ag,ng,gg,Tg,Kg,Zg,hh,mh,Vh,qh,xo,Bh,xh,Hh,Uh,Kh,Xh,ov,dv,fv,hv,Tv,Pv,ya,zv,Ov,_v,Hv,lm,Am,dm,hm,Ro,Pm,_m,Qm,ay,zo,No,Io,zy,Iy,rb,hb,mb,BV,PV,_V,EV,ZV,JV,ew,yb,$b,lw,nw,ow,sw,Jn,fw,mw,Cw,jn,Un,na,Tw,xw,Rw,Nw,lo,cl,_n,Wn,En,a0,f0,p0,g0,y0,w0,C0,q0,B0,x0,P0,F0,lC,wC,MC,jC,o1,m1,P1,G1,a$,v$,pk,vS,lq,kq,Dq,Zq,PT,lB,VB,NB,jB,KB,ix,hx,Nx,aP,uP,BP,_P,JP,nR,gR,kR,DR,WR,ez,rz,hz,vz,mz];export{Dz as toComps,Nz as toDirective,Mz as toGlobal,Iz as toRoot};
1
+ import{tMitt as Lo,tEvent as Qe,tObj as Kt,styleInit as Hn,tQuery as ct,tDom as Tl,tLang as Gl,tConsole as Fo,tCryptoStore as Zn,tMonitor as Oa,tTimer as qe,genUid as Ee,tType as st,tResize as Nn,tInterval as pl,tTheme as In,tClass as Ul,deviceInfo as Vs,fullScreen as Da,viewTransStart as Ma,viewTransWait as ws,syncContSize as Cs,tFrame as ot,cssVarSet as Ts,tArr as nl,tNum as Ct,tStr as On,tStore as _a,tProps as gn,tTime as Ea,cssSizeEnsure as xn,tMutation as Dn,tCoreTpl as ft}from"@techui/utils";import{svgPatDiamondWeaving as La,svgPatZigzagB as Ss,svgPatZigzagA as $s,svgPatWaveB as ks,svgPatWaveA as qs,svgPatTriangleB as xs,svgPatTriangleA as Ps,svgPatTotem as Bs,svgPatRectWeavingC as zs,svgPatRectWeavingB as Rs,svgPatRectWeavingA as Ns,svgPatSlashParallel as Is,svgPatShellB as Os,svgPatShellA as Ds,svgPatRain as Ms,svgPatMountains as _s,svgPatMazeC as Es,svgPatMazeB as Ls,svgPatMazeA as Fs,svgPatLineWeaving as js,svgPatLineGrid as Ws,svgPatHexagonCurved as Gs,svgPatHexagonD as Hs,svgPatHexagonC as Ks,svgPatHexagonB as Us,svgPatHexagonA as Ys,svgPatDots as Qs,svgPatDiamondPixel as Xs,svgPatDiamondLattice as Zs,svgPatDiamondFlipped as Js,svgPatCubeC as er,svgPatCubeB as tr,svgPatCubeA as lr,svgPatCrosshairB as nr,svgPatCrosshairA as ar,svgPatContourLine as or,svgPatCircularOverlayB as ir,svgPatCircularOverlayA as sr,svgPatCircuitDiagram as rr,svgPatBlocks as ur,svgPatTest as cr,svgSpinRingA as Fa,svgSpinRingC as dr,svgSpinRingB as Ar,svgSpinPulseRingC as fr,svgSpinPulseRingB as pr,svgSpinPulseRingA as gr,svgSpinPulseDotC as vr,svgSpinPulseDotB as hr,svgSpinPulseDotA as mr,svgSpinPointC as yr,svgSpinPointB as br,svgSpinPointA as Vr,svgSpinClock as wr,svgSpinBlocksC as Cr,svgSpinBlocksB as Tr,svgSpinBlocksA as Sr,svgSpinBarsC as $r,svgSpinBarsB as kr,svgSpinBarsA as qr,getVer as xr,openDec as Jn,openEnc as ea,getEnv as Zl,coreConsoleInfo as Pr,cssVarGen as $e,cssVarIf as q,cidVaild as jo,floatInfo as Br,adptCalc as zr,bar3DPathGen as Rr,cidGen as Wo,md5Enc as ja,pieArcPathGen as Nr,t3dCoeffCalc as Wa,t3dUpdateRotate as Ga,t3dUpdateOrient as Ir,scifiButtonA1 as Or,scifiButtonA2 as Dr,scifiButtonA3 as Mr,scifiButtonA4 as _r,scifiButtonA5 as Er,scifiGeomHexagon as Lr,scifiGeomeParallelogram as Fr,scifiGeomeRectangle as jr,scifiGeomeTrapezoid as Wr,scifiGeomeTriangle as Gr,scifiDecoA1 as Hr,scifiDecoB1 as Kr,scifiDecoB2 as Ur,scifiDecoB3 as Yr,scifiDecoD1 as Qr,scifiHeaderA1 as Xr,scifiHeaderA2 as Zr,scifiHeaderA3 as Jr,scifiHeaderA4 as eu,scifiPanelA1 as tu,scifiPanelA3 as lu,scifiPanelA2 as nu,scifiPanelB1 as au,scifiPanelB2 as ou,scifiPanelB3 as iu,scifiPanelB4 as su,scifiPanelDV1 as ru,scifiPanelDV2 as uu,scifiPanelDV3 as cu,scifiPanelDV4 as du,scifiPanelDV5 as Au,scifiPanelDV6 as fu,scifiPanelDV7 as pu,scifiPanelDV8 as gu,scifiPanelDV9 as vu,scifiTitleA1 as hu,scifiTitleA2 as mu,scifiTitleA3 as yu}from"@techui/scifi";import{reactive as je,toRefs as rt,computed as u,ref as $,resolveComponent as ke,createBlock as le,openBlock as d,mergeProps as _e,createSlots as el,withCtx as G,createElementVNode as f,normalizeClass as O,createElementBlock as h,createCommentVNode as T,toDisplayString as X,normalizeProps as mt,createTextVNode as We,renderSlot as ee,render as Bt,h as Dt,resolveDynamicComponent as gt,Fragment as ge,watch as Z,nextTick as ye,onMounted as Be,Transition as Ue,withDirectives as Re,createVNode as me,vShow as Ye,unref as p,getCurrentInstance as Tt,normalizeStyle as we,renderList as Fe,onUnmounted as al,onBeforeUnmount as dt,Teleport as Lt,inject as ze,onBeforeMount as El,provide as bt,resolveDirective as Je,useSlots as Nt,defineComponent as fa,useAttrs as Ll,shallowRef as Go,guardReactiveProps as qt,markRaw as bu,vModelText as Vu,watchEffect as ln,onUpdated as Ho,withKeys as cl,withModifiers as Ze,cloneVNode as pa,isVNode as Ha,toRaw as Ka,TransitionGroup as Ko,createStaticVNode as wu}from"vue";import Cu from"@techui/locales";import{useRouter as Uo,useRoute as ga}from"vue-router";import ut from"@techui/colors";import Tu from"@techui/libs/dt-detector";import{useFloating as va,offset as ha,flip as ma,shift as ya,arrow as Su}from"@techui/libs/floating-ui";import $u from"@techui/libs/async-validator";import zt from"@techui/libs/dayjs";import ku from"@techui/libs/dayjs/plugin/isoWeek";import Yo from"@techui/libs/dayjs/plugin/weekOfYear";import qu from"@techui/libs/dayjs/plugin/isSameOrAfter";import xu from"@techui/libs/dayjs/plugin/isSameOrBefore";import dl from"@techui/libs/interactjs/index.js";import Pu from"@techui/libs/svg-injector";const Qo=new Lo;Qo.data={};const Bu="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAABAAAA6oAW1tbW1tbW1tbW1tbW1tbW1tbW1tbW1tbycnJycnJycnJycnJycnJycnJycnJycnJyfb29vb29vb29vb29vb29vb29vb29vb29vb/////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQEGCEAAbgAAAOqYpgBhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQACIgCdHVAAAAACBjsn///lwf//B95QEP+XP/+Tg///z8H//Lh/id5/B/IKiRWpnhllnljdrcbQ4Yw0AzECAcIT0DBJ1IaAdfqJ7PUUCYuloWvZuy5h6NDXWtt2R8a2vBugsBRVewstea96LNcsYQBy5c79MsWvTtlUxk8BPq5SNjdGWJeN7alNJQuTGEJ7dl2NKDKReOPxJJay92Wswlypp3qGPe3GVsrjFOypl8wle0RKx5opT3qGMyl9YzTXKa8uxl8HxqUuS+1998+0XYxCmsQI5Egzh+N/N7xjGHdTM47T/Rq5SU0Zbg/UCNwZdSQHAkqzduRP5B8Yvf+cld+o//zoMTVTHwWqx+awQSO6DBJnLG7nVpa3bu6uNWW0sgmoZnofm6Oby5zUmnNbXuyBSx1n4zZwxB+NSV32CRlx06IcnIfz7/1qtmtVs7y/60apv5/6yeiS++klnoZkcNansI3NPw7+fKGRTtQSBwQCgQDDCAB4DycEEcRMBYFqmLIigk/koLwVfxiMBXH3+Kw6eWEV/54iRVOisb//2NUxnNIf//2NNRyEsqmHuZ////kzmkLmmnGnHKRHSL//xEFHirlCUJgqtVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/81DEzxcSmopRilAAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MQxOcAAANIAcAAAFVVVVVVVVVVVVVVVVU=",zu="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAAygAhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWF9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0////////////////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQDjUEAAbgAAAMoG4EAzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zoMQAEaAG8v9BAAB4pEfbIGIDL/gBAEHB+CAYdLg/KA+D/EBysEAQBDrfB8H8uD4Pv/8H3/4Y/ul3/BAMfwfP5cP/8Hw/B8Hwf//9YPg+DgIBhYTCK0CkG6MAAOJLDQ+JgIFhCVKkxseOSIVMOWC34EayBQJ7v2DeER0CIYpIQSKy2gQkDjgAzZMUjz41QbBIzJ01FJK8QVAQUcY+gbzGYrUhpIjHfDVIYiHERUMJBYcLNJo+UpkRZf8io0SYDEQN3DHB8wuYukVJQyPkytjIy/46Q+EZYzH0TJASoXTwyx0ZU3NSZNHMjpwhxbICsu//w1aWRCogqOUQYc6OoiZAiLGxkTRZIKYnEzEvDpMTIjTE4dl4s//+mXA/YWaVDdNEmUiyQViHCtiGjmk4XZDTE8Q4yTLqKnr/85DE5TrzwsMXmJggKtVEyKR8xUxBTUUzLjEwMC4xVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8xDE8QAAA/wBwAAAVVVVVVVVVVVVVVVVVQ==",Ru="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAAqUAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx////////////////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQD+SEAAbgAAAKlEfq4zQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zoMQAC/jCyv4IRBhneWb7YDb6Z8AApABjeY3gUgL9T/yfIAABzwxxPLhj4f/4P//5c/gg////lAx/+D5ySPgAuDL/NIkZNBQlGiRLcOJJUaRRmSJGZqtaqqjiKMmsL2KwkpHqOI7RbRwqnGXr6NCfGoYzKUrVKX6GNlK35jP9SlKUv////Qz0MYxjCpjGylb9DG6lK3zG/qUpSlK5QEBElywd+DQMlj36g7Dsl1VVTEFNRTMuMTAwLjFVTEFNRTMuMTAwLjFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/81DE/BybDp42M8UkVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MQxPIAAAP8AAAAAFVVVVVVVVVVVVVVVVU=",Nu="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgMQAAAAAAAAAAABYaW5nAAAADwAAAA0AAAYZAERERERERERsbGxsbGxsbHt7e3t7e3t7iYmJiYmJiZ2dnZ2dnZ2drKysrKysrKzAwMDAwMDAycnJycnJycnY2NjY2NjY2OLi4uLi4uLs7Ozs7Ozs7Pv7+/v7+/v7/////////wAAAChMQU1FMy4xMDAEAAAAAAAAAAAAFQgkA8pBAAG4AAAGGTsDnisAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/87DEABoxnp7vQYAAd4d2vDcBLwAAAAAAAGMY3wDG4//6aaaaaaaaaCH9NNNNNNNN/0EEE0y+XyLkXIuRcg4uQZgqDHhZ8AFA9BueQYLfwtHDVYlMXOLnHPIOT5OFwuGgIAgCYPg+D4PggGP/gT/+CH///KBh+v2+us2l1VoKAAAjCALCi52KuCwiwLqBHjCFDKbYV9Q7fiudatvWncaUvKk64X791WcwVGa8ahrCx9rLkqxflsVZxmlwZFtyWlgdwsb0wyFYoVBAwABnGvlnk8IkA1Plm/96cMAARMTkVMS0KDgiJgoL7LRbWhnDCQDzg4FRUQWI3MrlHmIi8MBDTJgBKAOpNXc/pICqtZs5Ya+M477lTby5vLL+//5c1n//////TRHmNXvIZh2zjaArwm9H/8nArYFVDdvYvaivQBAAO5GIACowoKQVuO7sESofW9JepBajM10kmXrRuydFCp0W3/37KSY4T5IEGP/zgMT3MJKKjl+P6AAM4C2RPEzMgTDY+j/SC6uauqZrQFwAP5RcgeqhBodUjbFbS0ajdoQbnVHSWXf2K7rqKRFRVr6I7KCigbFsV27gpanG69XgNGhYgJjv8SWYd6Z4dUhAPAATTtaBkMBMNO9MdMop0229r2DIu8va3P+ndAhCTwGsmDk453tSWW5h2H4j6t6D7ckHDHbPHs9YQM2ydwF0OJXgSGJiT5uac14kPGpdTxGcvCY2WEvLy70iVe7bq73LmgjtmqGwM4Z1Tkagj6X/8zDE9xA5dscfwpAAOHqRAg0UN79S1EaXlyt/u7hcMxWGQMkjVRyml5lax13Lc1AUHnf+VlhKCHdV39gAH/7goOjK2PLMm6qkbqhTQ23/8zDE9xApdrceQLD00warUrnpmbPaFMF1K1FJ/l36Ccl9mtDktaTRLTMagN5wP+qGiaJ1HeoIhLpTVnKtMYMoiNGa8tqVZfevZczLy7z/80DE9xhhfqMeGbJ8u54AHU15X67AIlwUzp0J/cPaVpISepETkZMV//QAE0mXgHwLQ7IL131k46rM28rdrL4DHps6QIaD+FGloZ4ZAilhjVPSkQAOMw+kn6ozI0Yn//9zJJE4SoIGt//zMMTwDzlmyxgZcShSvrjvNqm6mYmpjgAOzt3Jcc0fEZj5LK893ic1TVXcuKVyZQ2sqX9ZgEpNRuFiyCSNVXl+eGd2Z4ZuAA+dlTGLl//zQMT0FOl6lvgwtSQOhLd5yfhzf+Ia5t1bIpkuZO3bEpU+OWb//mJjiV3EIHgCF509u6/3jtOVAEAYDAgAArGAjH4JfT6X+cdH//8xMS4gYdSXx1iUQSKgasICIIPBG1mJia/88Q0k//MgxPsLyWbDGBhlKBfiCxQKTEFNRTMuMTAwLjFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zMMTyDQFmvxgw2tBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zIMT/C7FirxgwWyhVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8yDE9w3ZZpsZRlgAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MwxOYNQWKOWYKgAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MQxPIAAANIAcAAAFVVVVVVVVVVVVVVVVVUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",Iu="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/jSMQAAAAAAAAAAABYaW5nAAAADwAAAAUAAAVYAFVVVVVVVVVVVVVVVVVVVVVVVVVViIiIiIiIiIiIiIiIiIiIiIiIiIjMzMzMzMzMzMzMzMzMzMzMzMzMzO7u7u7u7u7u7u7u7u7u7u7u7u7u/////////////////////////wAAADxMQU1FMy4xMDAEKAAAAAAAAAAAFQgkBGohAAHMAAAFWEOj8BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/jWMQAGHKCwx9BQAB6y7mYdiYA/AAGMbx4xx4xjAvwDH4xjAAAAAAAAxjGMYxv/9ER3f///hET///REr/////0REr////9ERHd3d3LFxQOAaA0DwyRcG4CgCgLA8FBRAQB8HwfP/////4IAgCAYcjeuririqaZVQAALagKR+BIFKV3v8yxtlogAMYRNLWggK5i1RiEvQACWrOKBQYy5czWV2sRZe1FYd+5HBT/pyuEzpe0BrRnVzyJdDUlSPJGWcy1wZMnNTLufqYjshZkkU+lE/cHPvA77wfHH+kUGSNkMhaS+8faSFAYi5KctVYVzIw+boPI8D5Rt5HTdedjPI1ROkzhiD3ur9/f3ca0atfvC7f+/cllyWXZY8bO///+59ymuX4j6s4PkUNf2HaaGn+paWlpsmEgEUAil0IDge7T/T3L33ujBIWEn6a7+8d46/4apZbKa1NKqtLS5ZU2NWl1a26l2X0sv//jOMT5QsuWuxmYyAG0+VJapOVMc72dNla3lurF7lkqter0icQgAToIsCWPo40sF6XwDaI7/7loSc1isPwDaFSTzPzkf5rFYP8MUbqIDF3X7v0Uvv0UvZTEFsspiChuH/hzlHIIfo5A/cjgSGZh4YZmG4uzMfh+f/Xzl9uKO/F28MAwDHQTHgbWovllMkRlUBZeZVEeZdxkAiaUw/8/iKbxieKBjYfJMWCo2gM3ZZFH7fiWS+MUkvlgBBRCssAAXuYmrMpU5bRlzQPBCmj8WLFixnz6f/ySNP/jSMS4PUt6rlmP6EgEAOt4f3D+4f8NTcFTVqams6CazuVs/////////+UVKekwp6SpT0mq9TWeGs49DV+glWdBNW9Sq3crWtVt1drbdYwDwOABEIQswiEIQhCEIIfiEEIQhCHmEIQhCET4QhDlllll3/3llllllll3//WWWWWWPP//1lWxxqyl2VMS4JgKZDlpkfoU6KgKRKxX5uBJYKgqCwd/8RA0GsRAyCoKgqGv////////8FQVBZ5MQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/jKMTVG/myWl/BwACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/jGMTEAAADSAAAAACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqlRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",Ou="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAABAAABVgAVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmd3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3d3/////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCUiEAAcwAAAVYdka+1QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAbkhK+/0FYAEVohrEiA3eAAMYxjGN8gAAvGMY8A38xgAsgAAMbzGMbK/9jHve973vexjGMYxjHve973vexjGMZ+973ve99sYxjGMre973vtAbAEwJwRx3m7z/3cEwfwfBAMSgJg+//8EAQd///8Hz+BAQBDB8H1frtLWsIiGIiAABrB9BfADoYJxwmQJGPoTYhVRNQho+hNhNzzmRbcSo3SciTG6PSJKoxMCcLDjVhLa3Zdy7nhYaqV/EBCAwxoVAfJ3CZ1TxJnSppprTWpS/strRp/3DednEU9dC5Ii/skiLOVyxKLd/62OMprSpwrEv7g5blz9i7L5mVOU5VXB0nRXa12IuyuVuSQxVdDq4tckU+ruv6zhrk5ULyECYDNQMEbyUPpLPoVKVKgKCMSpK/pdUtK6TrUNNGo1ulpdZWv/X+5dP9PT36T/pKT/+VRpyqtmtVpaXXatamr/Vw3NuDNS5//+NIxOxF+76meY/QAKrSxmtTRqZjNIztx4v9PTuJFL1JSUkXp/i9O/30zhRF/b12lf2mprtNTRK6uqiamKdqdaQ6QIAky3wQQSQpyYZAawpEwyjvui/q5GCTy5AwwwcEmDDUkGxmgUsiyPCvBgJc5NYUC8MdpIjWYY8lZhjaLmbZYFW5tlgX1qQHDOnRoGGOpHGGNpDCmDSoGZCyqBl4sqhT+xR9X1mG4wT9FQRiijEYjEYdCifV9qN0X2o2kvtPspaS7NI2F+YIZDAMoaTKIxORiMCwSAQ5ZksawqR5KbsAyq/vK6yl9pWhN3+8f3zDG7qOpeMVV3AbO4Hjcbt09P2ntpVCMjM0OEd30WGlNA7VLchrG4ucCIJzDuUCEX1r/+NIxOdF44KzGZjYBfXf//vuO/99/4vff+n9/6f4vf+nvrupYCZ1jDTlfDT/ahqHrkal1yNWqjUgltPMqioDgcIh2oBvAA//EIQhC//CEK/8IhCEIQhCRbUkkkkiiiiiiiiilooooo1JJJJJJJJfSSSSRRRRRRRRRfRRRRR//+kkiiiiXS6QEc0c0+OSGIQbVBsyHShhIDO4DnQAYoyAfEGrhKQzRPF4vAqGuJQVBUFf/O9YKgqCod8sDQNP6gqCoKgqCp71A0DQNUxBTUUzLjEwMC4xVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MoxOIi+opmf8GYAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",Du="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAIQAAC8oAAgICHh4eMTExSUlJVVVVXl5eampqdHR0fX19iYmJkpKSnJycqKiosbGxuLi4wMDAycnJ0NDQ19fX3Nzc4eHh5eXl6Ojo6urq7e3t7+/v8fHx9PT09vb2+Pj4+/v7/f39////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQCQEEAAbgAAAvKK8cDQQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAAAD/AAAAAAiKMASuuwRsGAQOBwU//OgxA0VETZ2X0UYAGOIMJh9yMQjf//+7n6FEeVTNKdF/9ZRaF6foiGTuBvhgP4eUEQ/EAYwcFgGXPlP/lCgYW/UTiQMfqW+sPxAcwf0S+SUNWBL1aHX5Y3I3WpbIpD9UKhC0JrEUEQhAWXMtaHBxjIbz9ryuVroeTWtV+i4Na3HrfG6HG2KjRyIxj9maCqGOPDfKjMJKHShsxutpdiwOIpB5ZxAXDBtW/vmSNeH+3upouN5iuGIl4bfbNW9tez0e6yqNZf7y4WzL//Sng0o9iM8mXkTvX8ZWOMz+FVhxiLPSuaf5zT/4pT1+f/jsv/za/zSn/gQbf+lLeE13/+PvHvjf/////piv+IOMa+Nf//59MUdeNq1Y/qVAANlN4N3N4GHkylFx1MgRAMQ8AcwaEyQQG7TKhRacP/zgMTkMRPqgl2YeADpYBAGZhySwYcSpqvp1VYJCtldLAmCTdxlr2OA6Smy0YHyhtWRbEvkS7W7RZXT+PJFZmWx+UxJMNMgAHkW45NROfrOzMPpB/7qtdiVut/zFS5fz/Vi7eo7s/H3bh2CpJ2vF56rdisjlf45SDGNY02VrUy1Gtcrxilo5ZuVUtaTUGqluYzpKSnu51qenv5YVJREMs8c/o/+SQ33/+geXHf0tHv/rVu//53/7q5f/9at6//ocufq5lveqWz+vj7sT34YX///85DE4jwbkpsfmsEA////1jz/+708bf1IyCkKAtk+1t00+3zSWWHxE9SwcodeAOWqne0Gtby7f1re8/tqpCxOrXU2lRfZVMkjOp1e/0Fc/bdH2WtDIhRAnXt6+rNoWE3h8RqYerQt/zJ8qZa9+5x4+oAOKdVq70OEx2SUttjzl227VQPZoZFSW2W7fq+zoq7abbmAIOyp6p+27WzES8sMihq65m84ISC7VFJBLQEXEgYOCCOBBCAgTzhcOlmm3Z9xtKwOLGD+MFHiS2mIkCogIy6NuuOAnLxAf/VilDnuUZz7gIwc4q3FrNLlA12ktssklt+FQ6yrSfrZnQdiGXQhyIsHqyj/81DE6Rmp6rJf2SgAp+SgwxZInQVcH20yrHuCuK3M+G8frsHncu9+TpQm2YxtGe9J5e5tnvDXLunAcoM3RetizrFF0aKEK0mEDvV++Trb9s7TKoRqYtUBwzWXSSObbyyXHXWvhstHJ7KpjaiBHKDsDnkz9Zk5Im5T/aeUY2LQ5ZU6//NAxPcZ4I62ftMGMDlmktfHkHCSGQXHJU14yNYWQTUHUU8sudUmg1Umo8UqSgjuxV62/791DqzDV1s1/eU61gAXO5ZrbLt/IbpzGCYaWj2z0TNZlvCjSyRVZec7JuUNV1zVf7Os8mf/81DE6hjRzrpe0MS03FERYeUFFLGjyE62I3DyLD1omiFi6LmQwONihlTlIF7CpvqbQQP0vIVo/bl2RR1U3YR2HDSlfqRVABiyk0skl30VbEduTYUTe/ji/XnNuRTTHMqKktT1giugCQp/c3YEyjNhCdLyPShSKKDuzlMqRr6uV1+W//NAxPsXeLK6XtPMCJvNP1RisfDkRBVa6JR7MlJ6UzPb0JdyUk09KdUf1K+RU/8j+xD6sJDPehxjVtd+ua3rAa33tum1++91n5vQQ+8LnmBRUo4ikoo8laV4a6BrS6E/X2aeVK2nZ0P/80DE+BgI1rpe00wMHqhUdrIzrSrq9hpXTGH3REZb84l/Ky3+m6mUqTVBA60Go0FWLQ0ZeVrtMJVEbhYk7YOGe32/9n0/PAC6ZKV3e7f//i1HDPuWTKn1ewznQMvhyi1doLJIpB63HP/zUMTyG4NCsl7QxNSWfXNTZrdsoVmujG9c/KTs4JOHYnedn748FXPcmmVJjueQK8eo2VDQsGSN7Y1jAK0q5qa7U4pQoUf2YvVtQ+p1WlnTA0jkdttt1/Fx9xBU68MFAQwNosxXVd8TGahAr5vrDhicM64nBAQLDAuVVUKpNh0DtPL/80DE+Ri6CrpeyYo4gdZWyJJhxCNDDvNHQhHHW/ryR3dc/Uo2KS+sSMhk6NF3PsGBRaWBsAkEnYoqAJZ1tmu322/E5MASMYbIoVA8VbYkCwbCSWFYQ2TIXB0VWAnqPCIaLKLMRe4lLP/zQMTxGPmitx7BhnixOBniFY2KmhdR4VULgMja2TKkVNPEHpSSskvL/1XirEUtNnspfQgMSLlyS6VpAk81u22/3AEYlR1JCkOhWOIxdI8J15moKgSiRej19g6S/Lwzq7vvf75s38wU//NQxOgXiJqmXspGKEgmtgqqcPtYOWSSRC4oHRZb2ZVOlGFcUItJQywsDpCnTQPPURmjffcAC6/ovRzCEBMaH1gIxS9sDOLbSdQTLYKw7LbKJsMMpI7OVy9foT4ZN5h/yfK0nPK1aAhzKiICsZGk22sasD0Jq0IVAIZm113334AE7P/zQMT+FwBipv7BhkTB5vJ0CBMYhg6BiwpX6U0TEKjq25T3bcTSU87Wr0o1UioLVvpPIU2jVyNG6fnOyNJfyPMvPs/5qELQ8LuHAudW+7UTAk23///35dMySwgUoVbgvemrwsbVTDEe//MwxP0TaQqaXsJGKD1xPmCfjWqooPEgiJlnCcUAsKiZAovpVbQk3VO10NWTQJ0CzWXbf/aQxgx/ahKAq5GCIN2QmlqHdSeRPoX0NQ7Y//MwxPASUV6SfsJGRGlv09d6Z4k7FOC4DIyKKtIS4VW0WASgHqayNhx9Q8qswgY5Lttv/8ABjRgjCXrab6T0l/eM9SGanVhhazLaJ/Jj//NAxOcTQbKO/sMGNN7/w55Tqyw7mKytlZ1LW+iL0Oszm/fy9QTJMMq33GoG/ab4cADeBL9QFj0izzQc0otq9wEhQGJK760PF0UG27vMsAwnDcEWgqKGISOC0EqHZJd61Qa6qaCQDAf/8zDE9Q5wno5YyYZQTQHomwfNeHn6k8VS/rUIypmrAAwFNJAFiUqbwqRvRasb/SsByn0EuKzUR7ioU9IImnnAKcjCLTgdujTrxJUIh3D/8zDE/A/pEoZYykYswCR9IQYsKcQvCFUAygNKpJFotyEUsDBBPV4xXQpCsAVJCQ1MQU1FVVWDopVMQU1FMy4xMDAuMVVVTEFNRTMuMTD/8yDE/Q+xtopeyMR8MC4xVVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MgxOUHaEqOWMMWAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zIMTuBZBOuwBTBCRVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8xDE/gUgOq8AUxIEVVVVVVVVVVVVVVVVVf/zEMT2BIAuswA7ygRVVVVVVVVVVVVVVVVV//MQxPEDuDKR4GvMAFVVVVVVVVVVVVVVVVX/8xDE7wOYMqKAO9IAVVVVVVVVVVVVVVVVVf/zEMTtAwAinoA7DABVVVVVVVVVVVVVVVVV//MQxO4CsBqSgEvAAFVVVVVVVVVVVVVVVVX/8xDE8AIYGn3gUwAAVVVVVVVVVVVVVVVVVf/zEMT0AXgaaKBhgAJVVVVVVVVVVVVVVVVV//MQxPUAkAJooAAAAVVVVVVVVVVVVVVVVVX/8xDE8gAAA/wAAAAAVVVVVVVVVVVVVVVVVf/zEMTyAAAD/AAAAABVVVVVVVVVVVVVVVVV",Mu="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAFgAACG8AIiIiIjY2NjY2RERERFFRUVFRX19fX2lpaWlpd3d3d4GBgYGBj4+Pj5mZmZmZp6enp7GxsbGxu7u7u7vFxcXF0NDQ0NDa2tra4eHh4eHr6+vr8vLy8vL5+fn5/Pz8/Pz/////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQECkEAAbgAAAhvb5tIQgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQACihmlllPAADEAAAO/gD+/zf/Om9D0PnPwnCEIsNQIYZESG/usEHYOAgAHZQENQIAggADgAACKyqPJ5A2DAIAkwTJsNB4GTA4FXLU2EgFWFBoHOuFwRFS9OE2jEAkm3UnJSGKJcnXh4HCl3zSZ/Rua8ZGET30rHG9lrBloI/JEOZFX8Yo3sW3YlV2r379JCZ7KzZvWcbNvev+3Pb7bt/jjZ8qe5s4aU5SlQAFWgAAQHiYeNuBgAZsfPoaSl4mYID3tDLgO0u5HAxEG2MwCSgFJyQATAQbkNcCKbaVA5E71mkrlcqh6nZpJohGJfP2dZZ6jde3SZ93vf4/+8OWw//MLf/zYMTPHfkqonmd4SAQBE0AIAhm5k2wQAAEAzDBQZZJYsIwUBNDQFLJICEJCCcRgYqGIyISxCDje9OjBiIUnIVw/BZ9XEutnQUurWVAjW05klJDL4yXN2+QJLruPfvWNZyjCwC5Z/BcDqUAQ7oJYONspgqDgAAH307upWT4qYO9D6s6vLiVgULgadHO2S+zNCEaGQwTN06D7oIjaf/zQMTmFbD2pxmbwACuWW8dSxNv0/m97U3i+FNYt2f//uy+/e2ZZ0IIArUAAGGPd9XCgAAGBEeRgYU1IyAaJgmD1DYJW2jkg0Mkx3jRcL1kIea8iHS27exAZa8EOrM6km2jWYNikqfu//NAxOoXIM7XGZzSQFk5IIvYlWuc/vOfhfEzMxUjDtVRCkDtXAUCAAACEZg8lNMDRs8SITFAAwIVe8cBQcTpVvoHJFAwYw83NBJwPtH+MLq76dagk47zyz8VvV486lfPDuP//yy7Tt//80DE6BMoxtcZm8oELgdCBFHeBADVfdTdgAAABiIcLBRhQg5hiaDPtmZkHCxABqEBhCCDs27MXwYsS20ARSKazMGinhxOARI1c9fDhulJq1ycq17mdA26Iw/tYg7DYAlg2Y0GAoAABv/zMMT2E9jK3xmbyggq06wBIkwg7Dd91MTIlCJMJB0LE2BQWGOMRABQlr+HsbLZhTKHczhmWVTt6RWec8oGpXuBS63v//5dRU93/LAgTf/zQMTnE2i+zxmbwAgHB6cDAIZ9ltmjwAAGlnDckAKxUBMKFAtg04y58lHxEUnpoDPTJANuhhYOc9s7ssFTbLbZhSC6rKYq0m73JbuQ2tWorQXMbHjwIRBUE9GKsWoiDvSTDYDsbAUC//MwxPQSqJrXGZvSAQAAAFAWTAA9m/jEwpUw0NV8hKT3MKLSLPCQglUphGx0FRwWxflzVAZD014GVbdGBI1cz69j+Q3W7j///0uVev88//NAxOoTcMbXGZrQKC0EN+4FYoyLuArgAAAAIoqwGvXPGV0wEGkJAYMMMSHAYXIhcEdW6OhTLSgsONsrOhyrZFY2rWzHTTikMAtdmJ7tSmouwzYptf//rmtVg6KqYB3cVShlu8oKMf7/8zDE9xQYrtcZm9IERYKkhPFYO8RD1DiIwthhAACCoIOrxNiLdEFAKwJcuibTRw5YhEjZExLbIiPiyRStH6zYnVgYlxMiF9rQaAeshNj/80DE5xL4wtMZmtAIBg0MENHJFmkwIOgpjgWOAysQjBB0INGd2Vnj4xUAzdH84BfPEBi154G8uUBU1vG/qjt1DfVVID3XZT2VqqAKPS7Za7JOVxVUAAsvCkJPNejpnQ8K7R04HOBoW//zMMT2E4jGxxmayQEAw2KYnExJ8AJQMFJJ0jd5Pmxv/nJNh3vdZmEDy6oLMeHRYGM7OIOMIRZuAEtV/rCteZMIgE4QFg0fFiUNB1SbO//zMMToD6i6wwGamAHnt+ITN3NlewmgoKJy5tUCLNooZ8a6sAlhl9K/jqZrFXmxdN+GmK0ifUHgBMqgnreAh0DaOESSFkQ9Ik3448sc3P/zMMTqEJCOnuGbwAHlFZ/zCshaqwZjV4iQAAoICMSNDC3JFiy0zkZBJYlXMIoUIWEkJgIgWRGblQcu5kXQp+J4TmfcMtc5Yj0Pa5g5MP/zMMToDrC6vwGYoAEoAKB4I+0sEUcuaVWp3lh5HcQQljqFRAs0MjmReEADWB2Xzv5obpL+3AAn8AEBEDMclOPmVZ/osJpG+d+NMaqJCP/zMMTuDlB+xwGbeAAAWQADRCMLGF+AQphJJ78aTEFMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zIMT1DZiWwwGZ0ACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8zDE5Q2oirMBm8ABqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8yDE7wrokpJBmIAAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MgxOoF0ErLAckAAaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zEMT5BGBOowAIBiGqqqqqqqqqqqqqqqqq//MQxPIAAAP8AAAAAKqqqqqqqqqqqqqqqqo=",_u="data:audio/mpeg;base64,SUQzAwAAAAAVf1RYWFgAAAD5AAAB//5DAE8ATQBNAAAA//4gADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAyADEAMAAgADAAMAAwADAAMABBADEAMwAgADAAMAAwADAAMAAwADAAMAAwADAAMAAwAEEAQwA1AEQAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADQAQQA0ADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMAAwADAAAABDT01NAAAA9AAAAWVuZ//+AAD//iAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADIAMQAwACAAMAAwADAAMAAwAEEAMQAzACAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAQQBDADUARAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAANABBADQAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAgADAAMAAwADAAMAAwADAAMAAAAENPTU0AAAD0AAABZW5n//4AAP/+IAAwADAAMAAwADAAMAAwADAAIAAwADAAMAAwADAAMgAxADAAIAAwADAAMAAwADAAQQAxADMAIAAwADAAMAAwADAAMAAwADAAMAAwADAAMABBAEMANQBEACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAA0AEEANAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwACAAMAAwADAAMAAwADAAMAAwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/84DEAAAAAAAAAAAAWGluZwAAAA8AAAAoAAAGzwAEBAgICA0NERERFRVJSUlbW2NjY2xscHB5eXmCgoKGhoqKj4+Pk5OTl5ecnKSkpKmpra2tsbG2tra6urq+vsPDx8fHy8vQ0NDU1NjY2N3d3eHh5eXq6uru7vLy8vf3+/v7//8AAAAoTEFNRTMuMTAwBAAAAAAAAAAAABUIJAL+IQABuAAABs+4d7USAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//MQxAAAAANIAAAAAAYAgAgAkAhAZAMBAGH/8xDEDQAAA0gAAAAAAgf+8isAaGr/yx7Dyv/zEMQaAAADSAAAAAC0BQf+VNMOHlPKt4YU//MQxCcAAANIAAAAABxkUA3QIDAjQFCfLRf/8xDENAAAA/wBQAAA3AywMDPkRO3p7gY8KP/zoMRBHVIymx2aoASCQWwEm/8LmBlwAhgnUNv//x2KIoKXLA4Bx///pm54myfJygr////Lho4YB94Phj//ygYmVQDe2/4A+sQAEYzJdyVIChyRTElorFiAyPOgTNmEedrM5DM7EoetYZRqDRmCaobTW2IuWuKVne7/h38Oc5znNr4e3d7WtlrenPbX7f3XLD03HFw48JTpIGgkNaJZ0keOlRz7ZaeHesyElUChCInP7ObYICHgFqto3/OBOrLmS414l9iCo7K6GWEVzzYpySCEB4z8uZJOTIVoiCPeYzapB3S1NtU2GRbSzHADn61gohq+8A8uMpAhouCjef1YAWwwjgR7nQbTsApQxSrO4A28kyWTCBPGGwYZBlRlDJtHkGqv5lVgvDve0AoFmOZxTgRkJjW0YA4mC5j/80DE9xoRrphf2lgA7o/RKt0KYLpv8AANVLSDoz3CPuToI6YLwBagqX7AyvpjIK1l79uAsqW/ILdK8mePdRCQnsxtOIhqgMp8rHe9IrAgKq1iwOkS1VCYSoVu2loVjnSJiReSgLdZ1f/zIMTpCPCqzwB4UqBK25hbocR34wBqw/GmbapAlzj2xksjhLo3wF0H1EjgdXCXSLbGLhr/8yDE7AewhscAi9Qsw2NfLJG5rHCXZ95UHRmcfP6HivpMAgYuGwhyy/AFWkxBTUWqDMoD//MQxPQGqIbTAHpESMNFT4CNTEFNRVVVBIj/8yDE5gaYRssAeF5BGixvwOVMQU1FC2dpSt9YVpuqTEFNRTMuMTDwYDgo+kxBTUUzLjEw//MgxPIGmGbLAEvQBEPCx/DqTEFNRTMuMTDxCNJDGUxBTUUzLjEwC8qHQg9MQU1FMy4xMP/zEMT+BQBG1wBb2CEwQsGvSkxBTUUzLjEw//MQxPcD+EbOgErYADBCFAvXTEFNRTMuMTD/8xDE9AOYOrKAeERBMC6FH61MQU1FMy4xMP/zEMTyA9g+woB4WEEwLjGg6kxBTUUzLjEw//MQxO8DgDq2gBPWBTAuMarTTEFNRTMuMTD/8xDE7gSIRqaAwF5AMC4xVVVMQU1FMy4xMP/zIMToBBhCmoB4XkEwLjFVVUxBTUUzLjEwMC4xVVVMQU1FMy4xMDAuMVVVTEFNRTMuMTD/8xDE/gN4Qp6AWF5AMC4xVVVMQU1FMy4xMP/zEMT9AzBCnoAK2AgwLjFVVUxBTUUzLjEw//MQxPwCcD6V4AKYCjAuMVVVVVVVVVVVVVX/8xDE+gH4Pn1AAkQAVVVVVVVVVVVVVVVVVf/zEMT5AcA+eUABygZVVVVVVVVVVVVVVVVV//MQxPsCCD5coAPaAFVVVVVVVVVVVVVVVVX/8xDE9wEgPmAAEBgkVVVVVVVVVVVVVVVVVf/zEMT3AUA+YKAoDCRVVVVVVVVVVVVVVVVV//MQxPcBQD5UADgWJFVVVVVVVVVVVVVVVVX/8xDE9wE4PmCgOAokVVVVVVVVVVVVVVVVVf/zEMT2AOgaaKACgAJVVVVVVVVVVVVVVVVV//MQxPYA+BpooAFAAlVVVVVVVVVVVVVVVVX/8xDE9QCwGlQAAUAAVVVVVVVVVVVVVVVVVf/zEMT0AFgaYAAAgABVVVVVVVVVVVVVVVVV//MQxPMAOAJwAAAAAFVVVVVVVVVVVVVVVVX/8xDE8gAAA/wAAAAAVVVVVVVVVVVVVVVVVf/zEMTyAAAD/AAAAABVVVVVVVVVVVVVVVVV//MQxPIAAAP8AAAAAFVVVVVVVVVVVVVVVVX/8xDE8gAAA0gAAAAAVVVVVVVVVVVVVVVVVf/zEMTyAAADSAAAAABVVVVVVVVVVVVVVVVV//MQxPIAAANIAAAAAFVVVVVVVVVVVVVVVVVUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIDAwMDAwMDAwIDAwMDAwMjEwIDAwMDAwQTEzIDAw/w==",Eu="data:audio/mpeg;base64,/+NAxAAAAAAAAAAAAFhpbmcAAAAPAAAABQAABbMAQEBAQEBAQEBAQEBAQEBAQEBAQECAgICAgICAgICAgICAgICAgICAgMrKysrKysrKysrKysrKysrKysrK9fX19fX19fX19fX19fX19fX19fX/////////////////////////AAAAPExBTUUzLjEwMAQ3AAAAAAAAAAAVCCQDoCEAAcwAAAWzbBlQ9wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/jYMQAE1Gawx9BKAD//rqamFqAElmwAUY42RAAAABjGMb+hCN+khCNnOd//8jZ/+pw4KEb5CVOHw+LkAcDh8Hwfg/5cHw//4P8oc/B8HAQOf/8uH///g+D59W9C8bbapeogxTQACANyymITsKovf5cCZQCRY0SMH+hQMG23OaJDDuwlSrOaZ8uRBuCUkmtSdW12Wmyl3uzVexZafhx9qdHm84W3aXMxOITMEIIy/lFKpfWfVrsxDVymrsqqyZsqYub8PFWkMVaVA9x4GcyBmKw0PBUBNqFgGFQIplXZglRLL05DyAmu2IwOBjaQBeyT0Cjxf0dATdzFtbNgl0AAB5XIceApG/EfkMLfSNSF/4NtUuOGWW+flvcVvYct95/e95cnKSP3IGdWfps9Wr03uWwFEr760tyn/n/42DE3kpkFrsXj+AojZrZ8nZdR0Fagl+qlyVU9LlWpo5KJ/ObknKKvTT9642sKhitFaellVy3dq4yqY7KaXkSiVHvCtJY1Nb1jQanqPLJkXwmij7ux5/phcsNxslLh6R4MoCAAAgKLi1qLTChQUX/STOyGIJG92y2LpetR5owEAQvqYJgG3FiLPIlbboAQZCArLiIhPrOMqvMqi1RpLcXPQvAADL1dpymUREQArQRNgTToKBQEF/ErHfZemJI6WKx8vKCgFVtgVgNNk0Nv30smAwAL9YOi/EWKkoFGAAFr1UOL2sDaimtGGDI+qtMFQpMLwPMLAEZ6YAAqYFgDQz0sMCgPSApWEmBQFGKIFKGxRpKqyKCWjIgArhwAMQ8FjS52BHfgVy6OLy/J+86dy35kkZsxKloH++V/+NwxOBWdBafH5joBE9NU9TWeWt97r8WLMQY+ziELHYm67tzUgWJDMDtcjVuVQ9Nvs5UW/HH6tndM6dNNy16cJ7dJD8aqTkpa5igAZJG4NVPI3XoMH/dtr602puQ/TiTdLcpca2PKbG5TappK+0uryq1M01PclNa5PVKS/Syulh3cqsS2jhlvF4+GwmGwuAYACQtEgkAYDbQiA2EA4LBHRQIwmjYo9SFyaPkNL3ksM6iQwjDYhpeTJn5UIeHuC4QxCAEASaMyZIEVjH8midLJDhnhBZlGxRSSIaZfxThOQYTBtwDIKeAyMbQAggNAWSsclzUUkMsM6QhDv+QYukDWYJmaBssyLYsonkknMi8bKSdX/5Mk+Vy0mQ8wNiNLxqUWLhbIsfSJo2UkmZF42SSTMv/+mkbKWbs6aRgQ1jVzcmi9OGzhTRUKTHBUYaqTEFNRTMuMTAwLjFMQU1FMy4xMDAuMaqqqqqqqqqqqqr/40DE5jFLfppfhakhqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/+MQxNgAAANIAcAAAKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqg==",Lu="data:audio/mpeg;base64,//OAZAAAAAAAAAAAAAAAAAAAAAAAWGluZwAAAA8AAAADAAADXAB6enp6enp6enp6enp6enp6enp6enp6enp6enp6enp6enrh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eH///////////////////////////////////////////8AAAAoTEFNRTMuMTAwBAAAAAAAAAAAADUIJAKiLQABuAAAA1zAALomAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zoGQACqzdXy+goAAAAANIAUAAAJLZddtvAE3OMYxjGMbAAAAAADMYxjf6IiJ/Lu7v/oif/y7v//+///+j3////CIguLg3BWAuAuDcXsXFwffQUd/4IA+f/+UOf/g+D4PwICBz/3ROD4Pq4232/v9+3d6WAAyovDJ8PV+7cSDIm2FtVGiLbvKpc2lLuS+/+w9Ds86KtqgP/uHozLnSZ0rc6O8e5P9DMqdqMxmVRp9v33nYBjztQTBkpjMZlUafaU////evtBsAQE9bcHijMZiThMOWSLFAc2q/vuOTPjB4gidy7SXKeMPoYEIuOjf2W01NTXaXG5TZf9Lasd/n////vxF785T371/t6/2zDtM/1NdjMZwyv/S46rSr//////////6OXS2/LqW1TUuVNVypquqvPqxmI1v/85Bkzhy9t1kvx+gSAAADSAGAAAAo9vlD/xqhpaW5TU3/lhYVFBIIzgESGDUChOgD//////4i/UeETxKGioK50rlf8S9Z3lVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8zBk2ANYAUAP4AAAAAADSAHAAABVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",Fu="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgMQAAAAAAAAAAABYaW5nAAAADwAAAAgAAAQRAAgICAgICAgICAgICHh4eHh4eHh4eHh4eJiYmJiYmJiYmJiYmJjAwMDAwMDAwMDAwMDY2NjY2NjY2NjY2NjY6Ojo6Ojo6Ojo6Ojo+Pj4+Pj4+Pj4+Pj4+P///////////////wAAAChMQU1FMy4xMDAEAAAAAAAAAAAAFQgkA2AhAAG4AAAEER94ewwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8xDEAAAAA/wBQAAAmoTgAAFdtlssEknSoP/zsMQNHUlChlmZ2ADOEOUQFFAouKKaBQtu7dVY0mIfAA4ND4ak6MBct7zdCEZEkcjScg3wWT5ZfasGAjRh4EQAKQ7jvhEIpywwZos5Sr/fCplvv77SVKtiOP/JYvWs5/zXP5q1XrWb1W7nUCSvQwK1gcQEzCr//YfACwa3SuMADYAodOlUC9V2h3W9TFaxF4OgJIZQJq8ebo856xEJAhCEGuro0WQWYovm2Dw8FLAKqocFmLgCBeETKfbZYbpnQqzFKppDffgHDGnpfpb1/5DTWMMN298/f37n1xgKdmiFV1AWAYFsEYDJIfxDS6EILkIGaRCAMa/Gw/NM53bbGk9QpX1IxER07SNxlhRmSqgQYXAI0HGwsDMQdHJzUJJlwunLrFsDj3mjMoiUj7h790ccpKSBoVKo9Pf////TvD44VBY8z/TX1940AAm/CFKKVTGpdO6y6eNuiy0UdJL9ZVeXLVlwoqgiASobfFjS//NAxPcZsSaSWZjYAZovtU6VkGuPUjH4f////a+1WLCYCBkkFaOgXW5/Y9nklYZQAAKAFviSqZ9i/IX//+cwlc1FK4k+E2C+CGgCUTQVRSJ+OMxpj4iHB1fXU9nuAGI4A+IXGP4KoID/81DE6xo5HpL5j9AAqdwmGidKTEFNRTMuMTAwLjGqTEFNRTMuMTAwLjGqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MwxPcR0P6OWc3AAKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MgxPALwNKO+HhePKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zIMToBCjSiHgARwCqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8xDE8gAAA/wAAAAAqqqqqqqqqqqqqqqqqlRBRwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",ju="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAA/AAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm////////////////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQDMCEAAcwAAAPw36ttfwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAfMna+X0FYAL/rYykSBOAAMYxjGP/mMAOUgDGMYxjGMAAAAAAEMYxjGMY///p73ve977pjGMYxlPe973vfbGMYxjGMe973ve+6YxjGMr5e977/////9jGG5uSxvAjATATBHXJZPPvB8HwcBAEAQBAH3//lAQBAEAfB8H////B8PggCAIBhvArQvQrAzAbAEYE/ClRZYxmTRt3K1NvH9oSS4K0kVoCzvVuZf5aZNEuSXhlUhrxrLXcV5IrKDMxQkr1q26CnltT9475qOFugcASE5FICgYqWW5WLsth21chf6y1lv9wDTZOlKbMRiTKkTnBkstgB2n+d2cfl/sd463ym1TZY1ZTWlUNSmMuzEmtKZa7vf5dyvdikQiUiYDdcFUqqqaoXAROUVBoxDFpVUABGYGhE5bLX9rRqm3S46ybsYACCYuB2CgFjPf7///+ZinwZMKCZKz0ZytUapi8YmCm2EAAO/+NIxN5D05q7GZjoMWAgAp6o4qrSmCoGuv7LOU03a+aq4ymtTU1Wlq3v7q/vf6y1r+d/carU28s6XYqY4KlVTEFNRTMuMTAwLjFVVVVVVVVVVVVVVVVVVVVVVVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxMQAAAP8AcAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",Wu="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAAA/AAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm////////////////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQC8SEAAcwAAAPwEZbg7wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAfahayN0F4AHb7OABPgADGMY43wAAuBfAAYx4xjGAAAAAAABjGMYxjH///ilL3ve973vSlKUpSlL3ve973vSlKUpSlL3ve973vSjx48eUprd7v2NXx0QIQARgHYSMhZ1s8d/g47BAH8Tg4GJwEAfB98CBj/KAgCBx////wfB8PuEAIAhlw+oZXZmZdrPgmAAZ/ggQKoAuEdzAjPsW/EJBSjCDVO22DT2zUW4no9I9KHNVq/5q6SpmJOiqViOPKlDSyrWX6yyjzlOVdcFruq9qRx2WuLSSh0scdY0sprWpTW7qrGXBlUafbHeOsqOhpZ2VbyypseVqsZhmIspQSqrFsiQWBGJhgeARbZpLEWczE1GVFzAgMDMmkjghkQgKRoC8qevlm+rOioAxiOPRhGLBiKBjVJTLcIk/z/TMZjNaNRreOP/OWNYYc7+89/r4i/r+1rV2tTU2PK1Wlm84zJMcojTVn/+NIxN1CM8Kq+Y/oSNozSvrGpdDUpjMdlk5eno1chuji0kv1YrFICzyjOXZmtTU2PK1Wlpdbq1qaTEFNRTMuMTAwLjGqqqqqqqqqqqqqqqr//////////BosDVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxNACyAJMAcAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",Gu="data:audio/mpeg;base64,/+NIxAAAAAAAAAAAAFhpbmcAAAAPAAAAAwAABDgAdHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR00dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR0dHR////////////////////////////////////////////AAAAPExBTUUzLjEwMAQoAAAAAAAAAAAVCCQCiCEAAcwAAAQ4DvjgrwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+NYxAAcic62P0FgAE1bNAAk3AAGMYxjGNgAAAAfMY3kN/GMAPIH8xjpSlKUpSl73ve973pSlKUpSj69evXr169eYGBgSBIEgwWOPsDgCAEAICITDwzXr169evB8EAQBAEHflDn//1gQ5oB/ygIAgCAPg+D4Pg4CAIAgcf8oCCpTdDgzdPt4AOxrd0lQ9QXxPTRSo3jeVakVqNIKIST4eouSlYWUy0MLclSDH6W0nJzRp4h1rtdIZEn+cqIuSw2GaRl1ND0Mvw++UKdR93SWGVM+rOXdiTlXrMPV5bBFI7UZhTuQZEXXctuHbsZsafYwBAFzBjBcCAHVMc7sZoC/pgNgvGTCeAb1k5Jj7BkmCiARyxK6jTi2pgVBgmF+JgYX4BAsBIj0isX+ZCsKX9aUzph0Au61kwAAKRoDAwCwBgqAIRAHFlS8o0ACl9GmhO6pUzlm7/xCikEbsU16niT/P9KYzGZqNS6r/+NIxOhLc5qq+Y/waRmlrU1WxarTdm7O6luOrWUzWpLE3y/Yr42rGG3emYdnbkat50tz8quXbnNyXGAaT53kM4/LsojjANi7Rd7hvHPCtHLaDFoUC3bMBcDgAfkIX//mHMKkISIQnCELMKiE//zWvtbWLY/9a7zWuvaFb///Na5i4TyHKpEiSg5TKXJoqGj6Nl7GeDTxK8FXFj35Z51YKjAaGA08Snf//////6j3BWd/EVVMQU1FMy4xMDAuMVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MoxM0XybZaX8F4AFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV",Hu="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAACQAAA8MAWFhYWFhYWFhYWFiWlpaWlpaWlpaWlqenp6enp6enp6ensLCwsLCwsLCwsLC5ubm5ubm5ubm5ucLCwsLCwsLCwsLC7u7u7u7u7u7u7u739/f39/f39/f39///////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQDpSEAAbgAAAPDsKokmwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQAB+DCntlBGAAACENgA+B/8eACMCx/oXXd4BvoW5oBgblAQhifqdvB9SR2N0SAwDQIDLPZpAAK5ZnQ1eAgUp6CEAa6XjqkVEwoKYqwFopi0/3UZAMKCj8DkwAAGCQUMsPR6SuDmYOZnIfEAgYGg5aXAS+fd9GfQYEIxIgpq8Cg9ZrUTji0mystvXYjily7117qWngOrLaa7vs5nrH+/duatSyntRSv+v1Xv0tFS/LWitRnR0IDABCFBf783//NygBwSwDY5QmCK5rmpVvaeGlTYCoanSP32L/ofyMByWgD/6QkEXbA1UHenlRiTExBTUUzLjEwMC4xqqoABYZXZTA8AP/zcMTYIqmeov2S0SBovlo/plMGp4nkfAyAC/gNHwCukg8jW4HCx4KYNMSMvsps37KHUC5QsWYwqczP1upIKVr3TXERIlKCsjfS5TMpT1cCijFjzyXNd01y2kstHBBrJrW9tpDc/b//MhNYRZz/Ucshm5a///8/z////wtBWRUAB6oGuQHAH/zAY7Gf+UpRVFTBQSCm//QU0KO/VUxBTUUzLjEwMC4xVVVVVVVVVVVVVVVVVVVV//MgxPYJuNaSWcdAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/zEMT2A+gGgHgAAABVVVVVVVVVVVVVVVVV//MQxPIAAAP8AAAAAFVVVVVVVVVVVVVVVVX/8xDE8gAAA/wBQAAAVVVVVVVVVVVVVVVVVf/zUMT/HoF+lvmTyAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVX/8xDE+gcYdq8ZxRgBVVVVVVVVVVVVVVVVVf/zEMTqAAAD/AAAAABVVVVVVVVVVVVVVVVV",Ku="data:audio/mpeg;base64,SUQzAwAAAAAQGVRDT04AAAAPAAAB//5CAGwAdQBlAHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zgMQAAAAAAAAAAABYaW5nAAAADwAAAAoAAARgAAcHBwcHBwcHBwcODg4ODg4ODg4OdXV1dXV1dXV1db6+vr6+vr6+vr7b29vb29vb29vi4uLi4uLi4uLi4urq6urq6urq6vHx8fHx8fHx8fHx+Pj4+Pj4+Pj4/////////////wAAAChMQU1FMy4xMDAEAAAAAAAAAAAAFQgkAkBBAAG4AAAEYFXXTRUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8xDEAAAAA/wAAAAAAwFaogDQVBoLAgEAIP/zEMQNAAAD/AFAAAAfD/g3t4W8AcIQpBlA//OwxBoi/BJ6X5SYADQsAIZzcwLgBwA/4N4+MwimFxQDXgFn9tACIQM4Q5cCUP74xQtEAkYBoBMf1/cG8Y202dyM///IgLLFsGMGgWkHJ/////HQOAiA60g6c3kANf/////zAufy+Zm6DP/////+3/yLvPkAKhOIkXWQAqEwaIYgAAPk7TtDeRvzywGTFmmmjFmspeu9ALOWu0jWljNsvlIZey8S0pb16C9xjMmeATgM0MHmwOI0AU8CJQFAC1jRaIYTkEPMY8tTN0Mh8ceC8oxSVXgBOYbR4FnWibGxDqfIpvymLIfFAwiceI08ZiBsGKzg5wHCJWORi9L5yqreZ62BoUV7ruXM32pq8O0sZwiNn/1Wpu71///7vWu71DUazpcccrUzLecpq1qt/f//3jVpef////////V5VpbM1LrX7qf//////////97dWlvU1NTVr9qPX8X97Zy5//////////+rX5d///9Y8/v/85DE7kFMCo7f2MgB3eOONLjl+u1pdax59a1lVpcMaXn1qYdVR+msLAD/4AESpMhlDQ+MGRF2rVESh0xDQ01fJQ1mesvYD7Ms24qmb1IZRPU+S0+BclGQVGn8TpxYlchyHKJmHf//S7v9XE8Sg2p+3iqkTGsogIomHMBN/IKqTEFNRTMuMTAwTEFNRTMuMTAwLjGqqkxBTUUzLjEwMC4xqqpMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/80DE4BQ5ko5eQ8Uoqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zEMTqAhAefeAIRAGqqqqqqqqqqqqqqqqq//MQxO4AAAP8AAAAAKqqqqqqqqqqqqqqqqr/8xDE8gAAA/wAAAAAqqqqqqqqqqqqqqqqqv/zEMTyAAADSAAAAACqqqqqqqqqqqqqqqqq//MQxPIAAANIAAAAAKqqqqqqqqqqqqqqqqpUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==",Uu="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAABAAABK8AQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDcnJycnJycnJycnJycnJycnJycnJycnJycuvr6+vr6+vr6+vr6+vr6+vr6+vr6+vr6+v/////////////////////////////////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQC5SEAAbgAAASv/qvWwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zkMQAAtAGeaFAAAAAMkQfz4jfE7w/h9XS16ukBIaJlWgJgQCABCjJf98qVcX6+xrBxHaTD7JqWMpG4asQFzgGCMvogYUVAfoNEtgYMBot6YGUwOHrGo4iKilxQpoaDVHAP4twuULJg+Md5cQYZ8QEJcxJ8tB0AuUPlD8CqT6ZfSTWLjHkQeOeOYsrhxQc0iwssQTNiY//35TKBFCiUh6X////5dMBvmKRcLJbLx5A+v/////L5keday+ZoKNi4dMxP///+pW5OUAX//R4WfMBa8wVYb69BInIbm0pzX7VkUrUygdrjYXXTkiYsGMPGM+3Dh8DgE0aRyOphZl8zFpRM0c5nf/zcMTsK1MShl+PqABs8Y3CJTbpMJHO029Y/fufbuy+HJuVMid+cxvWoeY0ud5WawPZj8Zg6gDgsjcYKAIoBTAoKLVg0PGBAqocgeuYw0CjDI/JB8IQKZvSht4Em52iYMgxwQjnP3SaKmRpw1m8kEZRY5oklGrioY5NpjUAGOCQFSKYzARlsJmbicZpLJhYHGTBwZRNIFIxkoDGIx2YmBJjMTlUOGKgcYNGJhUGGEAMW9MJhELB//PQxOdsbBaF/9rgABDBuYEBhEATAIJQHGCAQKAMwSASoCxYPmBgcXRMGgkdAgCDgJB5EAwKCRIBGDgYQA0IE5gQKFmTBoBRAGgOkIpYkel2FAEj6YBAaiwODYABCSJgUBofF0EM0+0MFRIAGSlk0Ow8BBGAU4iyCqxfBQ9Saci4ET2TFyGZJqJptSSEaynWz5SxYBTyK7SkrF9s3Wg9qwjsrrbIwRkbV1MHdToZ+ydcjerDw87kRdRw4U1iDYHgCTQ3Ov/TQxMu/AEIcuMu/BEIduefyrD6vLiXZn/8IVu4UI1JhMmEh2E7OwkxGhZCNhAI0+aEaF/5wkwk/lRf//KEyak1IMROv0hICkf8ePARUidCQVASEbAmMR/+tKGMcPUnaefliJ0Ku0oZGLpMQU1FMy4xMDAuMaqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/8zDE/hVhssL+CEbcqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo=",Yu="data:audio/mpeg;base64,//OAxAAAAAAAAAAAAFhpbmcAAAAPAAAAEQAAB1IABAQEBAQICAgICAgwMDAwMDBoaGhoaGiAgICAgICYmJiYmJioqKioqKi8vLy8vLzIyMjIyNjY2NjY2ODg4ODg4Ozs7Ozs7PDw8PDw8PT09PT09Pj4+Pj4+Pz8/Pz8/P//////AAAAKExBTUUzLjEwMAQAAAAAAAAAAAAVCCQCQEEAAbgAAAdSRpMH0QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/zEMQAAAAD/AAAAAAAIAAAICAMBkD/x/////MQxA0AAAP8AUAAAP//axv/k6CyJwhf7fj/85DEGg1BvnmbgVAADoCZOyyH//8uY/QeP//D58Pf///Sj///+7eU8acdwNzsbJBDyczfUKVxbe95h2eP+XcUidDGg/ygFwKMIPEIcn30VOKAYy0YjDwDL5LDAoKJyA0AiwwMiDw0nMTqohOfGg0sJDMA4MAhGmg66+7Yk6GzmAwWYHF40SmNAIQBQBAgIEwAMkHoxMJS7qiIoEAweGIROaHF5hQEBUBEwVMMhUxMZAUlDDI1MfhEBBgLg8xsHgYBzCIRLJrripgEHBgoGASGFBnbEUw0t0DzBYDShW+zWA18MklFSGEwFqQU6Jd9X7xuWydw4W0xx1L2JsriSaDX3zfxWRj/87DE3VdcDmW/z+AAK46VDKXKdlXa7FbQMD32YJblF3Pm+zDWGsMMdVa8Bz0dd9U7/23ojalCPlSbyqw3G6afnINYfFvpp27axx1SWN7yuxR/IxqjfSdtwBEYXEqSQ3ockzXIFmYq+zXOXu6llPF5NM0lqapblNa7+P71rti9jzeqGnpO5d/XN18+7p9Kq5vYl2IAA5Lv2pQNqbpNqn1TwQjQZsfbaaOmTLx60SE4Ulcbu7XcSlJo+PcbgXt2OPT04dA9DrpagHgCDhx8q1dPFjmt+ZRRdkEARDxtTpT8MVNFyFO1rcnQyspjTF76f4Rvs3U7L26md06N1U9NasaU5B0EwQwsbFtqRnfWQ7qf93L8IwVdRZfKdogAATLLuk6aMvQ4mbyFUJWauW5aiVupaP/8oQsyI0pLkvouLWAeG1AmdP3OLpvdTuN//7M72m9S8yJjOPGtAlq2hVb65Q/2zrytxjP+dSSAhowYL//zYMTfIevStx56BUxf9NR7YrZiSPDTzKRFDu57gVW5AMlciGnpcFIJPgkPDXpVdJiGlgAAUu/HkEwM9012sD15QL7ZiLFgnC2n0f7Nq3RtVaQKrZr3WZEEVSWrTdGmtOtWuWcOyzG9AQggNlCs3l+HEs5XufMolYqgkF/a2dSMOiIagq2p+5h4p13jgK8uNklzCXsatjSLFtDbyP/zYMTmHhH2sv5LxyiG5hl9CjSXd3GAE7d+BA2zRGXTOwR4MrE13ZMWhfjfQlotq032p2jDbb/Cet45RBDoLiM9ZcIGZFhWolnj5hhV1U6dr/b/ouli4uaqoyk1vO6j62bFxABiZJYrQEg9Q1R3W5PVfeea564HzOwApPaAILxOblm61s619azM6Bk5c7t7espQr5r3U5eJ8QpxLv/zQMT8HFmKpv5mBSSmfAfK5AcOuppKHfXRbVL2sVSjRDNlZmlxraCB4AionOEQKx/v53T9VXNPpwAHt+AAcp9WmSZd1pndK/yhnXZ9NfaIz15GPnEMsaRES0aTC7Kjcqamc3dS7o1r//NQxOUY8X6i/n4RIEiimVnslkVnagmdag4gC0eEHiqcql7sNwAtr5WJcjkc1tZqw2gy7/xHAidRjylWQCXyvgjNQMGpaQUU9cC6VZc7Mqq2h2oK/9JZ6mOw9EUC1QdMIgi9vgqhRKMCZk8zTsRc1fx4XaoqqRU1EsNWsgLin5aLLf/zMMT2E5makj5jyyBt2Jo38qklbuZ3tgj2FaXJKABmAVjMUal6o39zUmP+setARKqBhUJMQU1FqkxBTUUzLjEwMC4xqqpMQU1FMy4xMP/zQMToEamakl4yRMwwLjGqqkxBTUUzLjEwMC4xqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq//MgxPwO2aaKWHoEOKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zMMTnDQGahlgZxJiqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/zEMT0BMjSbYgYBlCqqqqqqqqqqqqqqqqq//MQxO0AwApkoBAAAaqqqqqqqqqqqqqqqqr/8xDE8gAAA/wAAAAAqqqqqqqqqqqqqqqqqv/zEMTyAAAD/AAAAACqqqqqqqqqqqqqqqqq//MQxPIAAANIAAAAAKqqqqqqqqqqqqqqqqo=",Ua={clickA:Bu,clickB:zu,clickC:Ru,dindonA:Nu,dindonB:Iu,dindonC:Ou,errorA:Du,errorB:Mu,errorC:_u,errorD:Eu,pingA:Lu,pingB:Fu,pingC1:ju,pingC2:Wu,pingC3:Gu,popupA:Hu,popupB:Ku,popupC:Uu,popupD:Yu},rl=new Map,Qu=e=>e+"_"+Date.now()+"_"+Math.random().toString(36).slice(2,8),Xu=(e,t=!1,l=null,a=0)=>{const i=Ua[e]?e:"pingA",o=l||(t?i:null),n=o||Qu(i);o&&Xo(o);const s={audio:new Audio(Ua[i]),timer:null,playing:!0,endedHandler:null,errorHandler:null,resolveCallback:null},r=s.audio;rl.set(n,s),s.endedHandler=function(){t&&a>0?rl.has(n)&&rl.get(n).playing&&(s.timer=setTimeout((()=>{rl.has(n)&&rl.get(n).playing&&(r.currentTime=0,r.play().catch((e=>{"AbortError"!==e?.name&&console.warn("Error replaying audio:",e)})))}),a)):t||(s.resolveCallback&&s.resolveCallback(n),Yl(n))},Qe.add(r,"ended",s.endedHandler,n),s.errorHandler=e=>{Yl(n)},Qe.add(r,"error",s.errorHandler,n),r.loop=t&&0===a;const u=r.play();return t?Promise.resolve(n):new Promise(((e,t)=>{s.resolveCallback=e,u.catch((t=>{"AbortError"!==t?.name&&console.warn("Error playing audio:",t),Yl(n),e(n)}))}))},Yl=e=>{if(rl.has(e)){const t=rl.get(e);t.playing=!1,t.endedHandler&&Qe.remove(t.audio,"ended",e),t.errorHandler&&Qe.remove(t.audio,"error",e),t.audio.pause(),t.audio.currentTime=0,t.timer&&clearTimeout(t.timer),rl.delete(e)}},Xo=e=>!!rl.has(e)&&(Yl(e),!0),Zu=()=>{rl.forEach(((e,t)=>{Yl(t)}))},Ju={play:Xu,stop:Xo,stopAll:Zu},ec=(e,t,l)=>{const{background:a}=e;if(!a)return void console.error("Error: themePalette initialized error");const i=je({viewType:"all",cssResult:"",graphicType:"SvgPattern",cssAni:{},css:{},grad:{},SvgPattern:{gradType:"radial",gradOrientation:"ellipse at bottom",viewSvgName:"diamondWeaving",viewBG:null,viewGrad:a.view_grad,viewSvgFill:a.view_svgfill,viewSvgFillOpacity:a.view_svgfill_opa,rootSvgName:"diamondWeaving",rootBG:a.root,rootSvgFill:a.root_svgfill,rootSvgFillOpacity:a.root_svgfill_opa}});("view"==l||"root"==l||"all"==l)&&(i.viewType=l),Kt.isEmpty(t)||(i.graphicType=t.graphicType||"SvgPattern","SvgPattern"==t.graphicType&&(i.SvgPattern=Kt.dpm(i.SvgPattern,t.SvgPattern),!t.rootSvgName&&t.viewSvgName&&(i.SvgPattern.rootSvgName=i.SvgPattern.viewSvgName),"line"==t.gradType&&!t.gradOrientation&&(i.SvgPattern.gradOrientation="to top")));const o=`${i.graphicType} root:${"all"==i.viewType||"root"==i.viewType?i.SvgPattern.rootSvgName:"none"} view:${"all"==i.viewType||"view"==i.viewType?i.SvgPattern.viewSvgName:"none"}`;"SvgPattern"==i.graphicType&&(i.cssResult=tc(i,a,i.viewType)),Hn("Background",o,i.cssResult)},tc=(e,t,l)=>{let a="";const{gradType:i,gradOrientation:o,viewSvgName:n,viewBG:s,viewGrad:r,viewSvgFill:u,viewSvgFillOpacity:A,rootSvgName:d,rootBG:c,rootSvgFill:p,rootSvgFillOpacity:g}=e.SvgPattern;if("all"==l||"root"==l){let t=e.SvgPattern.rootSvgFill.replace("#","%23");a+=`.tui-root-bg{${`background-repeat: repeat; background:url("data:image/svg+xml;utf8,${Ya(d).replace(/#color/g,t).replace(/#opacity/g,g)}"),${c};`}}`}if("all"==l||"view"==l){let l=e.SvgPattern.viewSvgFill.replace("#","%23");const u=Ya(n).replace(/#color/g,l).replace(/#opacity/g,A);let d="";if(s)d=s.includes("grad")?t[s.replace("grad","")]:s;else{const e={type:i,orientation:o,grad0:r[0],grad1:r[1],grad2:r[2]};d=lc(e)}a+=`.tui-view-bg{ ${`background-repeat: repeat; background:url("data:image/svg+xml;utf8,${u}"),${d}};`}}`}return a},Ya=e=>{switch(e){case"test":return cr();case"blocks":return ur();case"circuitDiagram":return rr();case"circularOverlayA":return sr();case"circularOverlayB":return ir();case"contourLine":return or();case"crosshairA":return ar();case"crosshairB":return nr();case"cubeA":return lr();case"cubeB":return tr();case"cubeC":return er();case"diamondFlipped":return Js();case"diamondLattice":return Zs();case"diamondPixel":return Xs();case"diamondWeaving":return La();case"dots":return Qs();case"hexagonA":return Ys();case"hexagonB":return Us();case"hexagonC":return Ks();case"hexagonD":return Hs();case"HexagonCurved":return Gs();case"lineGrid":return Ws();case"lineWeaving":return js();case"mazeA":return Fs();case"mazeB":return Ls();case"mazeC":return Es();case"mazeD":return"data:image/svg+xml;utf8,";case"mountains":return _s();case"rain":return Ms();case"shellA":return Ds();case"shellB":return Os();case"slashParallel":return Is();case"rectWeavingA":return Ns();case"rectWeavingB":return Rs();case"rectWeavingC":return zs();case"totem":return Bs();case"triangleA":return Ps();case"triangleB":return xs();case"waveA":return qs();case"waveB":return ks();case"zigZagA":return $s();case"zigZagB":return Ss();default:return console.warn("Warning: svg background name error!",e),La()}},lc=e=>{const{type:t,orientation:l,grad0:a,grad1:i,grad2:o}=e;let n="";return"line"==t?n="linear-gradient":(e.type="radial")&&(n="radial-gradient"),`${n}( ${l}, ${a}, ${i}, ${o})`},nc=e=>{const t=je({nameFull:"blocksA",nameArea:"pointA"});e?.full?.name&&(t.nameFull=e.full.name),e?.area?.name&&(t.nameArea=e.area.name);const l='mask-image:url("data:image/svg+xml;utf8,',a=`${l}${Qa(t.nameFull)}");`,i=`${l}${Qa(t.nameArea)}");`;Hn("Spinners",`full:${t.nameFull} area:${t.nameArea}`,`.spinner-full{${a}} .spinner-area{ ${i} }`)},Qa=e=>{switch(e){case"barsA":return qr();case"barsB":return kr();case"barsC":return $r();case"blocksA":return Sr();case"blocksB":return Tr();case"blocksC":return Cr();case"clock":return wr();case"pointA":return Vr();case"pointB":return br();case"pointC":return yr();case"pulseDotA":return mr();case"pulseDotB":return hr();case"pulseDotC":return vr();case"pulseRingA":return gr();case"pulseRingB":return pr();case"pulseRingC":return fr();case"ringA":return Fa();case"ringB":return Ar();case"ringC":return dr();default:return console.warn("Warning: svg spinner name error!"),Fa()}},Xa=["zh-CN","zh-TW","en"],ac=(e,t)=>{const l=e.globalConfig.lang;return Xa.includes(l)?l:Xa.includes(e.globalState.initLang)?e.globalState.initLang:t.getSysLang()||"zh-CN"},oc=(e,t,l)=>!Kt.isEmpty(t)&&(e.globalConfig.lang=l,e.locale={...t.data},e.globalState.localeReady=!0,!0),ic=(e,t,l=null)=>{const a=je({data:{mapData:{code:"",name:""},chartData:{title:"",params:{}}},globalConfig:{platform:"scifi",theme:"lightBlue",themeScheme:"light",t3D:!0,maskBlur:!0,background:"all",menuTrigger:"click",floaterTo:"#tuiAdpt",resizeBy:"self",sound:!0,transition:!0,adaptive:"extension",lang:"",version:xr()},globalState:{fullScreen:!1,maximize:!1,siderCollapse:!1,clickTarget:null,clickCounter:0,escCounter:0,resizeDebounce:200,resizeCounter:0,portletCounter:0,echartsThemeInited:!1,themeInited:!1,localeReady:!1,initLang:l},globalParams:{blurSaturate:"180%",blurRange:5,initDur:1},viewTrans:{curDur:1.2,altDur:1.2,curTarget:"root",altTarget:"root",curName:"vt-overlap",altNames:{theme:"vt-circle-rt",common:"vt-overlap",routerPre:"vt-cube-left",routerNxt:"vt-cube-right",layout:"vt-fade"}},deviceInfo:{type:null,browser:null,resolutionH:null,resolutionV:null,touchable:!1,orientation:null,screenInvert:!1},controlPanel:{visible:!1,modal:!0,width:220,extension:[],options:{}},attentionConfig:{message:{position:"top-center",offset:0,duration:3e3,counter:0},notification:{position:"top-right",offset:0,counter:0},toast:{offsetX:0,offsetY:0,duration:3e3,visible:!1},flash:{spreadRadius:15,blurRadius:30,frequency:1,appearance:"toast",visible:!1,queueLength:0,queueOffset:0,queuePosition:"top"},dispatcher:{visible:!0,debug:!1,offset:40,position:"bottom-right",currentChannel:null,queue:[]}},popoverConfig:{duration:3e3,maxLength:5,appearance:"popTip"},t3dConfig:{inited:!1},adaptiveConfig:{ready:!1,inited:!1,resizeCounter:0,dragTip:!0},backgroundConfig:{graphicType:"SvgPattern",SvgPattern:{}},spinnerConfig:{full:{name:"blocksA",size:100},area:{name:"pointA",size:40}},themePalette:{},locale:{}}),{data:i,globalConfig:o,globalState:n,globalParams:s,viewTrans:r,deviceInfo:A,controlPanel:d,attentionConfig:c,popoverConfig:p,t3dConfig:g,adaptiveConfig:v,backgroundConfig:f,spinnerConfig:h,themePalette:m,locale:y}=rt(a),b=async e=>{const t=e||V();a.globalState.localeReady=!1,Gl.hasLang(t)||await Cu.ensure(t),Gl.setCurrent(t);const l=Gl.load(t);return!!oc(a,l,t)},V=()=>a.globalConfig.lang||Gl.getSysLang()||"zh-CN",w=(e,t)=>{if(!e)return"";if("object"==typeof e){return e[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[a.globalConfig.lang]||a.globalConfig.lang]??e.cn??e.tw??e.en??e["zh-CN"]??e["zh-TW"]??Object.values(e)[0]??""}return ct.valueByPath(a.locale,e,!0,t)},x={s:(e,t,l,a="store")=>Zn.s(e,t,l,ea,a),g:(e,t,l="store")=>Zn.g(e,t,Jn,l),d:(e,t)=>Zn.d(e,t)},q=()=>(console.info("$tState:",a),"From TechUI"),k=()=>{"dev"==Zl()&&t&&(Oa.enable(),Pr("TechUI",w("info.debug")),window.tuiDebugMonitor=Oa,window.tuiServiceState=q,window.openEnc=ea,window.openDec=Jn),window.tuiGetEnv=Zl};return{$tState:a,state:a,$data:i,$mapData:u((()=>a.data.map)),$chartData:u((()=>a.data.chart)),$globalConfig:o,$gPlatform:u((()=>a.globalConfig.platform)),$gTheme:u((()=>a.globalConfig.theme)),$gThemeScheme:u((()=>a.globalConfig.themeScheme)),$gT3D:u((()=>a.globalConfig.t3D)),$gMaskBlur:u((()=>a.globalConfig.maskBlur)),$gMenuTrigger:u((()=>a.globalConfig.menuTrigger)),$gFloaterTo:u((()=>a.globalConfig.floaterTo)),$gResizeBy:u((()=>a.globalConfig.resizeBy)),$gTransition:u((()=>a.globalConfig.transition)),$gSound:u((()=>a.globalConfig.sound)),$gBackground:u((()=>a.globalConfig.background)),$gAdaptive:u((()=>a.globalConfig.adaptive)),$gVersion:u((()=>a.globalConfig.version)),$gLang:u((()=>a.globalConfig.lang)),$globalState:n,$gMaximize:u((()=>a.globalState.maximize)),$gFullScreen:u((()=>a.globalState.fullScreen)),$gSiderCollapse:u((()=>a.globalState.siderCollapse)),$gClickTarget:u((()=>a.globalState.clickTarget)),$gClickCounter:u((()=>a.globalState.clickCounter)),$gEscCounter:u((()=>a.globalState.escCounter)),$gResizeDebounce:u((()=>a.globalState.resizeDebounce)),$gResizeCounter:u((()=>a.globalState.resizeCounter)),$gPortletCounter:u((()=>a.globalState.portletCounter)),$gEchartsThemeInited:u((()=>a.globalState.echartsThemeInited)),$gThemeInited:u((()=>a.globalState.themeInited)),$gLocaleReady:u((()=>a.globalState.localeReady)),$globalParams:s,$viewTrans:r,$deviceInfo:A,$controlPanel:d,$attentionConfig:c,$aMessage:u((()=>a.attentionConfig.message)),$aNotification:u((()=>a.attentionConfig.notification)),$aToast:u((()=>a.attentionConfig.toast)),$aFlash:u((()=>a.attentionConfig.flash)),$aDispatcher:u((()=>a.attentionConfig.dispatcher)),$popoverConfig:p,$t3dConfig:g,$adaptiveConfig:v,$adptReady:u((()=>a.adaptiveConfig.ready)),$adptInited:u((()=>a.adaptiveConfig.inited)),$aResizeCounter:u((()=>a.adaptiveConfig.resizeCounter)),$backgroundConfig:f,$spinnerConfig:h,$themePalette:m,$locale:y,$optResizeCounter:u((()=>a.adaptiveConfig.inited?a.adaptiveConfig.resizeCounter:a.globalState.resizeCounter)),$optFloaterTo:u((()=>a.adaptiveConfig.inited?a.globalConfig.floaterTo:"#tuiRoot")),$tc:(e,t=!1)=>t?u((()=>ct.valueByPath(a.themePalette,e,!1))):ct.valueByPath(a.themePalette,e,!1),initBG:(e,t=null)=>{const{themePalette:l,backgroundConfig:i,globalConfig:{background:o}}=a;"none"!=o&&(e&&!Kt.isEmpty(e)&&(a.backgroundConfig=Kt.dpm(i,e)),ec(l,i,o))},resetBG:()=>{const e=ct.el("#styleBackground");e&&e.remove()},initSpinner:e=>{e&&(a.spinnerConfig=Kt.dpm(a.spinnerConfig,e)),nc(a.spinnerConfig)},resetAdaptiveConfig:()=>{a.globalState.portletCounter=0,a.globalConfig.adaptive="disabled",a.adaptiveConfig.inited=!1,a.adaptiveConfig.resizeCounter=0,Tl.adpt.reset();const e=ct.el("#tuiAdptOuter");e&&(e.style="")},initI18n:async()=>{a.globalConfig.lang=ac(a,Gl),await b(a.globalConfig.lang),k()},switchLang:b,i18n:w,getSysLang:V,tConsolei18n:({type:e="info",id:t,localeKey:l,args:a=null,throttle:i=!0}={})=>{if(!t||!l)return void console.warn("tConsolei18n: Missing required parameters");const o=w(`level.${e}`),n=w(l,a);Fo.s(e,t,`${o}:${n}`,i)},controlPanelToggle:()=>{a.controlPanel.visible=!a.controlPanel.visible},maximizeToggle:()=>{a.globalState.maximize=!a.globalState.maximize},toggleSider:()=>{a.globalState.siderCollapse=!a.globalState.siderCollapse},initResizeBy:()=>u((()=>e=>"self"===e||"none"===e?e:"global"===e?a.globalConfig.resizeBy:void 0)),openEnc:ea,openDec:Jn,cryptoStore:x,audio:Ju,initDebug:k}},sc={eventTarget:{type:[Object,Element],default:null},menus:{type:Array,default:()=>[]},className:{type:String,default:""},uid:String,offset:{type:Number,default:8},zIndex:{type:Number,default:2e3},minWidth:{type:[String,Number],default:160},maxWidth:{type:[String,Number],default:200},submenuTrigger:{type:String,default:"",validator:e=>["","click","hover"].includes(e)},submenuPlacement:{type:String,default:"right-start"},closeOnLeafClick:{type:Boolean,default:!0},menuClick:{type:Function,default:null},closeDropPanel:{type:Function,default:null},popPanelConfig:{type:Object,default:()=>({})},dropPanelConfig:{type:Object,default:()=>({})},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1},tagConfig:Object},rc=["title"],uc={class:"tui-mi-label"},cc={key:1,class:"tui-mi-desc"},dc={key:3,class:"tui-icon ti-arrow-right tui-mi-arrow"},Zo=Object.assign({name:"TuiMenu",inheritAttrs:!1},{__name:"index",props:{trigger:{type:String,default:"contextmenu",validator:e=>["contextmenu","click","hover"].includes(e)},disabled:{type:Boolean,default:!1},placement:String,appendTo:String,...sc},emits:["menuClick"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=$(null),n=e=>""===e||null==e?null:"number"==typeof e?`${e}px`:e,s=u((()=>({id:"value",label:"label",children:"children",disabled:"disabled",placement:"placement",trigger:"trigger"}))),r=u((()=>{const e=a.popPanelConfig||a.dropPanelConfig||{};return[$e("cpt-menu",{z:a.zIndex,minw:n(a.minWidth)||"160px",maxw:n(a.maxWidth)||"200px"}),e.panelStyle]})),A=u((()=>{const e=a.popPanelConfig||a.dropPanelConfig||{},{panelClassName:t,panelStyle:l,...i}=e;return{items:a.menus,eventTarget:a.eventTarget,trigger:a.trigger,submenuTrigger:a.submenuTrigger,placement:a.placement||"bottom-start",submenuPlacement:a.submenuPlacement,appendTo:a.appendTo,offset:a.offset,zIndex:a.zIndex,panelClassName:["tui-menu-panel",a.className,t],panelStyle:r.value,minWidth:a.minWidth,maxWidth:a.maxWidth,closeOnLeafClick:a.closeOnLeafClick,tuiService:a.tuiService,dynamicRender:a.dynamicRender,...i}})),c=e=>{const{item:t}=e;t?.disabled||(i("menuClick",{item:t,index:e.path?.[e.path.length-1]??null,path:e.path||[],level:e.level,closeAll:e.closeAll,closeCurrent:e.closeCurrent,event:null,target:a.eventTarget}),a.menuClick?.({item:t,index:e.path?.[e.path.length-1]??null,path:e.path||[],level:e.level,closeAll:e.closeAll,closeCurrent:e.closeCurrent,event:null,target:a.eventTarget}))};return t({toggle:e=>o.value?.toggle?.(e),show:(...e)=>o.value?.show?.(...e),hide:(...e)=>o.value?.hide?.(...e),update:(...e)=>o.value?.update?.(...e)}),(e,t)=>{const l=ke("TuiTag"),i=ke("TuiMultPopPanel");return d(),le(i,_e({ref_key:"menuRef",ref:o},A.value,{"field-names":s.value,onSelect:c}),el({item:G((({item:e,hasChildren:t,disabled:i})=>[f("div",{title:e.title,class:O(["tui-mpp-content",{"is-active":e.active,"is-disabled":i,"has-divider":e.divider}])},[e.icon?(d(),h("i",{key:0,class:O(`tui-mi-icon ${e.icon}`)},null,2)):T("",!0),f("span",uc,X(e.label),1),e.description?(d(),h("span",cc,X(e.description),1)):T("",!0),e.tagContent?(d(),le(l,mt(_e({key:2},{type:e.tagType||"primary",...a.tagConfig})),{default:G((()=>[We(X(e.tagContent),1)])),_:2},1040)):T("",!0),t?(d(),h("i",dc)):T("",!0)],10,rc)])),_:2},[e.eventTarget?void 0:{name:"trigger",fn:G((()=>[ee(e.$slots,"default")])),key:"0"}]),1040,["field-names"])}}}),Ac={mounted(e,t,l){if(!t||!t.value)return;const a=document.createElement("div");a.className="tui-menu-directive-host";const i=l?.appContext||l?.ctx?.appContext||null,o=l?.ctx?.appContext?.app||l?.appContext?.app||null,{$tService:n}=o?.config?.globalProperties||{},s=t=>{const l=Dt(Zo,{...t||{},eventTarget:e,tuiService:n,dynamicRender:!0});l.appContext=i,Bt(l,a)};s(t.value),e.__tuiMenuContainer=a,e.__tuiMenuMount=s},updated(e,t){!t||!t.value||!e.__tuiMenuMount||e.__tuiMenuMount(t.value)},unmounted(e){e.__tuiMenuContainer&&Bt(null,e.__tuiMenuContainer),delete e.__tuiMenuContainer,delete e.__tuiMenuMount}},ba=["top-start","top-end","bottom-start","bottom-end"],fc=(e="bottom-start")=>{const[t,l="start"]=e.split("-"),a="top"===t?"bottom":"top",i="start"===l?"end":"start",o=[`${t}-${i}`,`${a}-${l}`,`${a}-${i}`,...ba];return[...new Set(o)].filter((t=>t!==e))},Jo=["default","invert","primary","success","warning","danger","info","emphasis"],pc=(e,t)=>{const l=e.typedConfig||{};return{tuiService:t,appearance:l.appearance||"background",transparent:l.transparent??!0,backgroundBlur:l.backgroundBlur??!0,hasShadow:l.hasShadow??!1,shadowColor:l.shadowColor??"weak",...l,type:e.type??l.type??"invert"}},gc=(e,t)=>l=>{let a=1,i=1;if(e.appendTo?.includes("tuiAdpt")){const e=t.adpt?.info||{};a=e.scaleX||1,i=e.scaleY||1}const o=(()=>{switch(l){case"top-start":case"top-end":return{mainAxis:0,crossAxis:0};case"bottom-start":case"bottom-end":return{mainAxis:20/a,crossAxis:10/i};default:return{mainAxis:0,crossAxis:0}}})();return e.fixOffset?o:Array.isArray(e.offset)?{mainAxis:e.offset[0]??0,crossAxis:e.offset[1]??0}:"number"==typeof e.offset?{mainAxis:e.offset,crossAxis:0}:{mainAxis:0,crossAxis:0}},vc=(e="bottom-start")=>"top"===e.split("-")[0]?"bottom center":"top center",hc=(e="bottom-start")=>`is-plcm-${e}`,mc=e=>{if(!e)return!0;const t=typeof HTMLElement<"u"&&e instanceof HTMLElement,l=typeof SVGElement<"u"&&e instanceof SVGElement;return t||l},ei={type:Object,default:null,validator:mc},yc={id:String,className:String,title:String,content:{type:String,required:!0},component:Object,tuiService:Object,appendTo:String,destroy:Function,eventTarget:ei,followPanelConfig:Object,zIndex:Number,maxWidth:Number,frequency:Number,placement:{type:String,default:"bottom-start",validator:e=>ba.includes(e)},type:{type:String,default:"invert",validator:e=>Jo.includes(e)},delay:{type:Number,default:500},offset:{type:Array,validator:e=>!(!Array.isArray(e)||2!==e.length)&&e.every((e=>"number"==typeof e))},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},hasShadow:{type:Boolean,default:!1},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},disabled:{type:Boolean,default:!1},caretSize:{type:Number,default:5},caretOffset:{type:Number,default:2},typedConfig:Object},bc=e=>{const t=e.typedConfig||{};return{...t,tuiService:e.tuiService||t.tuiService,appearance:t.appearance||"background",type:e.type??t.type??"invert",tone:e.tone??t.tone??"base",transparent:e.transparent??t.transparent??!0,backgroundBlur:e.backgroundBlur??t.backgroundBlur??!0,hasShadow:e.hasShadow??t.hasShadow??!1,shadowColor:e.shadowColor??t.shadowColor??"weak"}},Vc=e=>$e("cpt-curtip",{...q("maxw",e.maxWidth,"px"),...q("z",e.zIndex),...q("caretSize",e.caretSize,"px"),...q("caretOfs",e.caretOffset,{append:"px",type:"number",zero:!0})}),wc=(e,t)=>{const l=[t];return e.maxWidth&&l.push({maxWidth:`${e.maxWidth}px`}),{...e.followPanelConfig||{},eventTarget:e.eventTarget,bindTriggerEvents:e.bindTriggerEvents,disabled:e.disabled,placement:e.placement,appendTo:e.appendTo,offset:e.offset,fixOffset:!e.offset,zIndex:e.zIndex,panelClassName:["tui-cursor-tip-panel",e.className],panelStyle:l,panelId:e.id?`curtip-${e.id}`:"",showDelay:e.bindTriggerEvents?e.delay:0,hideDelay:0,closeOnEsc:!0,typed:!0,type:e.type,typedConfig:bc(e),caretSize:e.caretSize,caretOffset:e.caretOffset,tuiService:e.tuiService,dynamicRender:e.dynamicRender}},Cc={key:0,class:"tui-curtip-title"},Tc={class:"tui-curtip-cont"},ti=Object.assign({name:"TuiCursorTip"},{__name:"cursorTip",props:{...yc,dynamicRender:{type:Boolean,default:!1},bindTriggerEvents:{type:Boolean,default:!0}},setup(e,{expose:t}){const l=e,a=$(null),i=u((()=>Vc(l))),o=u((()=>wc(l,i.value))),n=()=>{l.destroy&&l.destroy()};return t({hide:(e=!1)=>{a.value?.hide(e)},show:e=>{a.value?.show(e)},update:()=>{a.value?.update()},updatePos:(e,t)=>{a.value?.updatePos(e,t)}}),(e,t)=>{const l=ke("TuiFollowPanel");return d(),le(l,_e({ref_key:"followRef",ref:a},o.value,{onHidden:n}),{trigger:G((()=>[ee(e.$slots,"default")])),default:G((()=>[ee(e.$slots,"content",{},(()=>[e.component?(d(),le(gt(e.component),{key:0})):(d(),h(ge,{key:1},[e.title?(d(),h("div",Cc,X(e.title),1)):T("",!0),f("div",Tc,X(e.content),1)],64))]))])),_:3},16)}}}),Za=e=>{e.mouseEvent=!0,Qe.add(e,"mouseenter",e.show,e.id),Qe.add(e,"mouseleave",e.hide,e.id),Qe.add(e,"mousemove",e.update,e.id)},Ja=e=>{Qe.remove(e,"mouseenter",e.id),Qe.remove(e,"mouseleave",e.id),Qe.remove(e,"mousemove",e.id)},Sc={mounted(e,t,l){if(!t)return;const{delay:a=500,disabled:i=!1}=t.value||{},o=l?.appContext||l?.ctx?.appContext||null,n=o?.app,{$tService:s}=n.config.globalProperties,{$optFloaterTo:r}=s;e.appendTo=t.value.appendTo||r.value,e.disabled=i,e.instance=null,e.id=Ee("curtipDir");let u=null,A=null;const d=()=>{e.instance&&(Bt(null,u),u&&A?.contains(u)&&A.removeChild(u),u=null,A=null,e.instance=null)};e.destroy=d;e.show=l=>{e.disabled||(null!=l?.clientX&&null!=l?.clientY&&(e.pointer={x:l.clientX,y:l.clientY}),qe.c(`${e.id}_ti`),qe.s(`${e.id}_ti`,(()=>{e.instance||(u=document.createElement("div"),u.id=`${e.id}_inst`,u.className="curtipinst-outer",A=ct.el(e.appendTo)||ct.el("#tuiRoot"),e.instance=Dt(ti,{...e.options||t.value,id:e.id,eventTarget:e,tuiService:s,dynamicRender:!0,bindTriggerEvents:!1,appendTo:e.appendTo,destroy:d}),e.instance.appContext=o,e.options||(e.options=t.value),A.appendChild(u),Bt(e.instance,u)),ye((()=>{e.instance?.component?.exposed?.updatePos(e.pointer.x,e.pointer.y),e.instance?.component?.exposed?.show()}))}),a))},e.hide=()=>{qe.c(`${e.id}_ti`),e.instance?.component?.exposed?.hide()},e.update=t=>{e.disabled||!t||(null!=t.clientX&&null!=t.clientY&&(e.pointer={x:t.clientX,y:t.clientY}),e.instance?.component?.exposed?.updatePos(e.pointer.x,e.pointer.y))},i||Za(e);const c=Z((()=>s.$optFloaterTo.value),(l=>{e.appendTo=t.value.appendTo||l}));e.floaterUnwatch=c},updated(e,t){t&&(e.options=t.value,t.value.disabled!=t.oldValue?.disabled&&(e.mouseEvent&&(Ja(e),e.mouseEvent=!1),e.disabled=t.value.disabled,e.disabled?(qe.c(`${e.id}_ti`),e.instance?.component?.exposed?.hide(!0),e.destroy()):Za(e)))},unmounted(e){e.mouseEvent&&(e.floaterUnwatch&&e.floaterUnwatch(),Ja(e),e.instance&&e.destroy&&e.destroy(),delete e.mouseEvent,delete e.destroy,delete e.show,delete e.hide,delete e.id,delete e.update,delete e.appendTo,delete e.options,delete e.disabled)}},Va={id:String,className:String,appendTo:String,title:String,titleIcon:String,tuiService:Object,component:Object,instances:Object,destroy:Function,event:[Function,PointerEvent,Object],eventTarget:ei,manual:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},autoClose:Boolean,showTrigger:Boolean,popPanelConfig:Object,zIndex:Number,maxWidth:Number,placement:{type:String,default:"top",validator:e=>["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e)},type:{type:String,default:null,validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},appearance:{type:String,default:"popTip",validator:e=>["popTip","popInfo"].includes(e)},trigger:{type:String,default:"hover",validator:e=>["hover","click"].includes(e)},debug:{type:Boolean,default:!1},content:{type:String,required:!1},enterable:{type:Boolean,default:!1},delay:{type:Number,default:500},offset:{type:Number,default:4},duration:{type:Number,default:3e3},closeOnClickOutside:{type:Boolean,default:null},defaultOn:{type:Boolean,default:!1},showArrow:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},typedConfig:Object},li=(e,t)=>$e(e,{...q("maxw",t.maxWidth,"px")}),ni=(e,t)=>{const l=e.typedConfig||{};return{...l,appearance:l.appearance||"background",tone:e.tone??l.tone,transparent:e.transparent??l.transparent,backgroundBlur:e.backgroundBlur??l.backgroundBlur,hasShadow:e.hasShadow??l.hasShadow,shadowColor:e.shadowColor??l.shadowColor,type:e.type||l.type||t}},ai=(e,t)=>{const{panelClassName:l,panelStyle:a,typedConfig:i,arrowSize:o,offsetAdjust:n=0}=t,s=e.popPanelConfig||{},r=e.closeOnClickOutside??s.closeOnClickOutside??"click"===e.trigger;return{...s,eventTarget:e.eventTarget,manual:e.manual,visible:e.visible,trigger:e.trigger,placement:e.placement,disabled:e.disabled,appendTo:e.appendTo,offset:e.offset+n,zIndex:e.zIndex||1e3,panelClassName:l,panelStyle:a,showDelay:e.delay,hideDelay:200,typed:!0,typedConfig:i,showArrow:e.showArrow,arrowSize:o,tuiService:e.tuiService,dynamicRender:!!e.tuiService,closeOnClickOutside:r,closeOnEsc:!0,debug:e.debug}},$c={class:"tui-pinfo-body"},kc={key:0,class:"tui-pinfo-title"},oi=Object.assign({name:"TuiPopinfo"},{__name:"popinfo",props:{...Va,enterable:{type:Boolean,default:!0}},emits:["update:visible"],setup(e,{expose:t,emit:l}){const a=e,i=`${Ee("popInfo")}_autoH`,o=$(null),n=l,s=u((()=>li("cpt-pinfo",a))),r=u((()=>ni(a,"default"))),A=u((()=>ai(a,{panelClassName:["tui-popinfo",a.className,{"is-enterable":a.enterable}],panelStyle:s.value,typedConfig:r.value,arrowSize:8,offsetAdjust:2}))),c=()=>{a.autoClose&&"click"===a.trigger&&qe.s(i,(()=>{o.value?.hide?.()}),a.duration)},p=()=>{qe.c(i),a.defaultOn&&a.destroy?.(!1,!0)};return Be((()=>{a.defaultOn&&o.value?.show?.()})),t({show:()=>{o.value?.show?.()},hide:()=>{o.value?.hide?.()},update:()=>o.value?.update?.(),getVisible:()=>o.value?.getVisible?.()||!1}),(e,t)=>{const l=ke("TuiPopPanel");return d(),le(l,_e({ref_key:"popPanelRef",ref:o},A.value,{"onUpdate:visible":t[0]||(t[0]=e=>n("update:visible",e)),onShown:c,onHidden:p}),{trigger:G((()=>[ee(e.$slots,"default")])),default:G((()=>[f("div",$c,[e.title?(d(),h("div",kc,[e.titleIcon?(d(),h("i",{key:0,class:O(`tui-pinfo-icon ${e.titleIcon}`)},null,2)):T("",!0),We(" "+X(e.title),1)])):T("",!0),e.component?(d(),le(gt(e.component),{key:1})):ee(e.$slots,"content",{key:2},(()=>[We(X(e.content),1)]))])])),_:3},16)}}}),qc={class:"tui-ptip-cont"},wa=Object.assign({name:"TuiPopTip"},{__name:"poptip",props:{...Va},emits:["update:visible"],setup(e,{expose:t,emit:l}){const a=e,i=`${Ee("popTip")}_autoH`,o=$(null),n=l,s=u((()=>li("cpt-ptip",a))),r=u((()=>ni(a,"invert"))),A=u((()=>ai(a,{panelClassName:["tui-poptip",a.className,{"is-enterable":a.enterable}],panelStyle:s.value,typedConfig:r.value,arrowSize:6}))),c=()=>{a.autoClose&&"click"===a.trigger&&qe.s(i,(()=>{o.value?.hide?.()}),a.duration)},p=()=>{qe.c(i),a.defaultOn&&a.destroy?.(!1,!0)};return Be((()=>{a.defaultOn&&o.value?.show?.()})),t({show:()=>{o.value?.show?.()},hide:()=>{o.value?.hide?.()},update:()=>o.value?.update?.(),getVisible:()=>o.value?.getVisible?.()||!1}),(e,t)=>{const l=ke("TuiPopPanel");return d(),le(l,_e({ref_key:"popPanelRef",ref:o},A.value,{"onUpdate:visible":t[0]||(t[0]=e=>n("update:visible",e)),onShown:c,onHidden:p}),{trigger:G((()=>[ee(e.$slots,"default")])),default:G((()=>[f("div",qc,[e.component?(d(),le(gt(e.component),{key:0})):ee(e.$slots,"content",{key:1},(()=>[We(X(e.content),1)]))])])),_:3},16)}}}),tl=je([]),xc=()=>{const e=[...tl];e.length>0&&(e.forEach((e=>{const t=e.props.eventTarget;t&&t.instance&&t.destroy&&t.destroy(!0)})),tl.length=0)},Pc=()=>{if(0===tl.length)return;const e=tl[0].props.eventTarget;e&&e.instance&&e.destroy&&e.destroy()},eo=e=>{e.defaultOn?e.mouseEvent():"hover"===e.trigger?(Qe.add(e,"mouseenter",e.mouseEvent,e.id),Qe.add(e,"mouseleave",e.leaveEvent,e.id)):"click"===e.trigger&&Qe.add(e,"click",e.mouseEvent,e.id)},to=e=>{e.defaultOn||("hover"===e.trigger?(Qe.remove(e,"mouseenter",e.id),Qe.remove(e,"mouseleave",e.id)):"click"===e.trigger&&Qe.remove(e,"click",e.id))},Bc={mounted(e,t,l){if(!t)return;const{trigger:a="hover",autoClose:i=!0,duration:o=5e3,defaultOn:n=!1,disabled:s=!1}=t.value||{};e.disabled=s,e.trigger=a,e.autoClose=i,e.defaultOn=n,e.options=t.value||{},e.lastEvent=null;const r=l?.appContext||l?.ctx?.appContext||null,u=r?.app,{$tService:A}=u.config.globalProperties,{$popoverConfig:d}=A,{$optFloaterTo:c}=A;e.appendTo=t.value.appendTo||c.value;const p=Ee("popOverDir");let g=null,v=null;e.instance=null,e.id=p;const f=(t=!1)=>{const l=tl.indexOf(e.instance);-1!==l&&!t&&tl.splice(l,1),g&&(Bt(null,g),v&&v.contains(g)&&v.removeChild(g)),g=null,v=null,e.instance=null},h=(t=!1,l=!1)=>{if(e.instance){if(l)return qe.c(p+"_hideEnd"),void f(t);qe.s(p+"_hide",(()=>{e.instance&&(e.instance.component?.exposed?.hide?.(),qe.s(p+"_hideEnd",(()=>f(t)),500))}),200)}},m=(t=e.lastEvent)=>{if(!g)return;const l={...e.options||{}},a=l.appearance||"popTip",i=Dt("popTip"===a?wa:oi,{...l,id:p,destroy:h,tuiService:A,instances:tl,event:t,eventTarget:e,trigger:e.trigger,defaultOn:!0});i.appContext=r;const o=tl.indexOf(e.instance);e.instance=i,-1!==o?tl[o]=i:tl.push(i),Bt(i,g)};e.destroy=h,e.renderInstance=m;e.mouseEvent=async t=>{e.lastEvent=t||e.lastEvent,!e.instance&&!e.disabled&&(await ye(),!e.instance&&!e.disabled&&(t=>{e.instance||e.disabled||(e.lastEvent=t||e.lastEvent,g=document.createElement("div"),g.id=p+"_wrap",g.className="popinst-outer",tl.length>=d.value.maxLength&&Pc(),v=ct.el(e.appendTo)||ct.el("#tuiRoot"),v.appendChild(g),m(e.lastEvent),"click"===e.trigger&&e.autoClose&&!n&&qe.s(p+"_autoH",(()=>{h()}),o))})(e.lastEvent))},e.leaveEvent=()=>{qe.c(p+"_autoH"),e.instance&&("hover"===e.trigger&&e.options?.debug||e.instance.component?.exposed?.hide?.())},s||eo(e);const y=Z((()=>A.$optFloaterTo.value),(l=>{e.appendTo=t.value.appendTo||l}));e.floaterUnwatch=y},updated(e,t){if(!t)return;e.options=t.value||{};const l=t.value.trigger!=t.oldValue?.trigger,a=t.value.disabled!=t.oldValue?.disabled,i=t.value.defaultOn!=t.oldValue?.defaultOn,o=t.value.maxWidth!=t.oldValue?.maxWidth,n=t.value.content!=t.oldValue?.content,s=t.value.title!=t.oldValue?.title;(l||a||i)&&(qe.c(e.id+"_show"),e.destroy?.(),to(e)),l&&(e.trigger=t.value.trigger),a&&(e.disabled=t.value.disabled,e.disabled&&e.destroy?.()),i&&(e.defaultOn=!!t.value.defaultOn),t.value.autoClose!=t.oldValue?.autoClose&&(e.autoClose=t.value.autoClose),e.instance&&!e.disabled&&(o||n||s||l||a||i)&&e.renderInstance&&e.renderInstance(),(l||a||i)&&!e.disabled&&eo(e)},unmounted(e){e.mouseEvent&&(e.floaterUnwatch&&e.floaterUnwatch(),qe.c(e.id+"_show"),qe.c(e.id+"_hide"),qe.c(e.id+"_hideEnd"),qe.c(e.id+"_autoH"),to(e),e.instance&&e.destroy&&e.destroy(),delete e.mouseEvent,delete e.leaveEvent,delete e.trigger,delete e.autoClose,delete e.defaultOn,delete e.destroy,delete e.renderInstance,delete e.lastEvent,delete e.appendTo,delete e.options,delete e.disabled,delete e.id)}},zc={install(e){e.config.globalProperties.$tPopoverDirectiveCloseAll=()=>xc()}},ii=(e,t)=>!0===t?e.parentElement:t?"string"==typeof t?e.closest(t)||document.querySelector(t):t?.value instanceof HTMLElement?t.value:t instanceof HTMLElement?t:e.parentElement:null,Rc=e=>["x","y","both"].includes(e)?e:"both",Nc=(e,t=!1,l=!0)=>{let a=1,i=1;if(t){const{scaleX:e,scaleY:t}=Tl.adpt.info;a=e,i=t}const o=e.style.transform;e.style.transform="";const n=ii(e,l);if(!n)return null;const s=e.getBoundingClientRect(),r=n.getBoundingClientRect(),u=s.left-r.left,A=s.top-r.top;return e.style.transform=o,{minX:-u/a,minY:-A/i,maxX:(r.width-s.width-u)/a,maxY:(r.height-s.height-A)/i}},Ic=(e,t,l=!0)=>{const a=ii(e,l)||("absolute"==t?e.offsetParent:e.parentElement);return a?{minX:0,minY:0,maxX:a.clientWidth-e.offsetWidth,maxY:a.clientHeight-e.offsetHeight}:null},Oc=(e,t,l=!1)=>{let a=1,i=1;if(l){const{scaleX:e,scaleY:t}=Tl.adpt.info;a=e,i=t}const o=e.getBoundingClientRect();if("transform"===t){const t=window.getComputedStyle(e),l=new DOMMatrix(t.transform);return{startX:l.m41*a,startY:l.m42*i}}{const l=("absolute"==t?e.offsetParent:e.parentElement)?.getBoundingClientRect()||{left:0,top:0};return{startX:o.left-("transform"!=t?l.left:0),startY:o.top-("transform"!=t?l.top:0)}}},Dc=({el:e,e:t,mouseStartX:l,mouseStartY:a,startX:i,startY:o,positionType:n,boundaries:s,inAdpt:r,axis:u,writeAxisOnly:A,onDrag:d})=>{let c=1,p=1;if(r){const{scaleX:e,scaleY:t}=Tl.adpt.info;c=e,p=t}const g=t.clientX-l,v=t.clientY-a;let f=(i+g)/c,h=(o+v)/p;"x"===u&&(h=o/p),"y"===u&&(f=i/c),s&&(f=Math.min(s.maxX,Math.max(s.minX,f)),h=Math.min(s.maxY,Math.max(s.minY,h))),"transform"===n?e.style.transform=`translate(${f}px, ${h}px)`:A&&"both"!==u?"x"===u?e.style.left=`${f}px`:"y"===u&&(e.style.top=`${h}px`):(e.style.left=`${f}px`,e.style.top=`${h}px`);const m={el:e,event:t,left:f,top:h,deltaX:g,deltaY:v,axis:u,positionType:n};return d?.(m),m},si=e=>(e._tuiDragState||(e._tuiDragState={uid:null,triggerEl:null,handleMousedown:null,triggerCursor:""}),e._tuiDragState),Mc=({el:e,triggerEl:t,value:l,axis:a,positionType:i,containment:o,inAdpt:n,boundaries:s,startX:r,startY:u,mouseStartX:A,mouseStartY:d,event:c})=>{l?.debug&&(console.group?.("[v-tui-drag] drag start"),console.log("value:",l),console.log("axis:",a),console.log("positionType:",i),console.log("containment:",o),console.log("inAdpt:",n),console.log("element:",e),console.log("triggerEl:",t),console.log("boundaries:",s),console.log("start:",{startX:r,startY:u,mouseStartX:A,mouseStartY:d}),console.log("event:",c),console.groupEnd?.())},ri=e=>{e&&(Qe.remove(document,"mousemove",e),Qe.remove(document,"mouseup",e))},lo=e=>{const t=si(e);ri(t.uid),t.triggerEl&&(t.handleMousedown&&t.triggerEl.onmousedown===t.handleMousedown&&(t.triggerEl.onmousedown=null),t.triggerEl.style.cursor=t.triggerCursor||""),t.triggerEl=null,t.handleMousedown=null},no=(e,t)=>{t&&(e.style.removeProperty("transform"),e.style.removeProperty("left"),e.style.removeProperty("top")),e.style.removeProperty("cursor")},_c={mounted(e,t){if(!t)return;const l=t=>{const{containment:l=!0,inAdpt:a=!1,enabled:i=!0,positionType:o="transform",resetOnDisable:n=!1,uid:s,axis:r="both",writeAxisOnly:u=!1,onStart:A,onDrag:d,onEnd:c}=t||{},p=si(e),g=t?.trigger?e.querySelector(t.trigger):e,v=s||p.uid||`drag_${Math.random().toString(36).slice(2,10)}`,f=Rc(r);if(lo(e),p.uid=v,p.triggerEl=g,p.triggerCursor=g?.style?.cursor||"",e.enabled=i,e.resetOnDisable=n,!e.enabled)return no(e,e.resetOnDisable),void(g&&(g.style.cursor=p.triggerCursor||""));if(!g)return;g.style.cursor="move";const h=i=>{if(!e.enabled)return;if(t?.exclude){const e=i.target?.closest?.(t.exclude);if(e&&g.contains(e))return}let n=null;l&&(n="transform"===o?Nc(e,a,l):Ic(e,o,l));const{startX:s,startY:r}=Oc(e,o,a),v=i.clientX,h=i.clientY;Mc({el:e,triggerEl:g,value:t,axis:f,positionType:o,containment:l,inAdpt:a,boundaries:n,startX:s,startY:r,mouseStartX:v,mouseStartY:h,event:i});let m={el:e,event:i,left:s,top:r,deltaX:0,deltaY:0,axis:f,positionType:o};A?.(m);Qe.add(document,"mousemove",(t=>{m=Dc({el:e,e:t,mouseStartX:v,mouseStartY:h,startX:s,startY:r,positionType:o,boundaries:n,inAdpt:a,axis:f,writeAxisOnly:u,onDrag:d})||m}),p.uid),Qe.add(document,"mouseup",(e=>{ri(p.uid),c?.({...m,event:e})}),p.uid),i.preventDefault()};p.handleMousedown=h,g.onmousedown=h};l(t.value),e.dragUpdate=l},updated(e,t){t&&(!Kt.isEq(t.value,t.oldValue)||e.enabled!==t.value?.enabled)&&e.dragUpdate?.(t.value)},unmounted(e){lo(e),no(e,e.resetOnDisable),delete e._tuiDragState,delete e.dragUpdate}};function ao(e,t){const l=st(e);if(l.includes("function"))return{disabled:!1,uid:t.uid||Ee("vResize"),cid:null,resizeOptions:{frameSync:!0,throttle:0,debounce:0,threshold:0,trailing:!0,settleDelay:80},callback:e};if("object"===l&&e){const l=e.cid??null,a=e.throttle??0,i=e.debounce??0;a>0&&i>0&&console.warn("v-tui-resize: throttle and debounce cannot be enabled at the same time. debounce takes priority.");const o=i>0;return"string"===st(l)&&!l.includes("Error")&&jo(l,t.className),{disabled:e.disabled??!1,uid:e.uid||t.uid||Ee("vResize"),cid:l,resizeOptions:{frameSync:e.frameSync??!0,throttle:o?0:a,debounce:i,threshold:e.threshold??0,trailing:!o&&(e.trailing??!0),settleDelay:o?0:e.settleDelay??(a>0?a:80)},callback:e.callback}}return{disabled:!0,uid:t.uid||Ee("vResize"),cid:null,resizeOptions:{frameSync:!0,throttle:0,debounce:0,threshold:0,trailing:!0,settleDelay:80},callback:null}}function oo(e,t){e.disabled=t.disabled,e.uid=t.uid,e.cid=t.cid,e.resizeOptions=t.resizeOptions,e.callback=t.callback}function io(e){!e.disabled&&st(e.callback).includes("function")&&Nn.o(e,(t=>{for(let l of t){const{width:t,height:a}=l.contentRect;e.callback({width:t,height:a})}}),e.resizeOptions)}function ta(e){Nn.d(e)}const Ec={mounted(e,t){oo(e,ao(t.value,e)),io(e)},updated(e,t){const l=e.disabled,a=JSON.stringify(e.resizeOptions||{}),i=e.uid,o=e.callback;oo(e,ao(t.value,e));const n=!l&&st(o).includes("function");!e.disabled&&st(e.callback).includes("function")?(!n||l!==e.disabled||a!==JSON.stringify(e.resizeOptions||{})||i!==e.uid||o!==e.callback)&&(n&&ta(e),io(e)):n&&ta(e)},unmounted(e){ta(e)}},Lc={mounted(e,t){const l=t.value;"string"==st(l)&&!l.includes("Error")&&jo(l,e.className)},unmounted(e){}},Kn={tuiService:Object,destroy:Function,className:String,spreadRadius:Number,blurRadius:Number,queueOffset:Number,content:{type:String,required:!0},id:{type:String,required:!0},icon:{type:String},hideIcon:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},calledByFlash:{type:Boolean,default:!1},grouping:{type:Boolean,default:!1},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},aniType:{type:String,default:"soft",validator:e=>["soft","sudden"].includes(e)},appearance:{type:String,default:"toast",validator:e=>["message","toast"].includes(e)},queuePosition:{type:String,validator:e=>["top","top-left","top-right","left","right","bottom","bottom-left","bottom-right"].includes(e)},type:{type:String,default:"info",validator:e=>["primary","success","warning","danger","error","info","emphasis","focus"].includes(e)},typedConfig:Object},Fc={key:0,class:"tui-icon ti-info-circle"},jc={key:1,class:"tui-icon ti-check-circle"},Wc={key:2,class:"tui-icon ti-alert-circle"},Gc={key:3,class:"tui-icon ti-alert-triangle"},Hc={key:2,class:"tui-msg-debug"},Kc={key:4,class:"tui-msg-repeat"},Uc=Object.assign({name:"TuiMessage"},{__name:"index",props:{...Kn,debug:{type:Boolean,default:!1},position:{type:String}},setup(e,{expose:t}){const l=je({index:0,content:"",id:"",repeat:1,closing:!1}),a=e,i=u((()=>"error"==a.type?"danger":a.type)),{offset:o}=a.tuiService.$aMessage.value,n=$(!1),s=(e,t=!1)=>{qe.c(a.id),a.destroy(t)},r=()=>{if(l.closing)return;const{position:e}=a;let t=Ht[e].findIndex((e=>e.component.props.id===a.id));l.index=t};Z((()=>Ht[a.position]),(e=>{r()}),{deep:!0}),Z((()=>a.tuiService.$gEscCounter.value),(e=>{e&&!a.calledByFlash&&s()}));const A=()=>{a.tuiService.$aMessage.value.counter-=1},c=u((()=>$e("cpt-msg",{offset:o,index:l.index}))),p=$({tuiService:a.tuiService,appearance:"background",type:i,tone:u((()=>a.tone)),transparent:u((()=>a.transparent)),backgroundBlur:u((()=>a.backgroundBlur)),hasShadow:u((()=>a.hasShadow)),shadowColor:u((()=>a.shadowColor)),...a.typedConfig});return Be((()=>{a.calledByFlash||a.tuiService.$gSound.value&&a.tuiService.audio.play("popupA"),a.tuiService.$aMessage.value.counter+=1,r(),n.value=!0,l.content=a.content})),t({hide:()=>{l.closing=!0,n.value=!1,A()},updateIndex:r,closeMessage:s,repeatAdd:()=>{l.repeat++}}),(t,a)=>{const o=ke("TuiTyped");return d(),le(Ue,{name:"slide-fade"},{default:G((()=>[Re(me(o,_e(p.value,{class:["tui-message",`is-pos-${e.position}`,`msg-${t.id}`,`is-index-${l.index}`,t.className&&`${t.className}`],style:c.value}),{default:G((()=>[t.icon?T("",!0):(d(),h(ge,{key:0},["info"==i.value||"primary"==i.value||"emphasis"==i.value?(d(),h("i",Fc)):T("",!0),"success"==i.value?(d(),h("i",jc)):T("",!0),"warning"==i.value?(d(),h("i",Wc)):T("",!0),"danger"==i.value?(d(),h("i",Gc)):T("",!0)],64)),t.icon?(d(),h("i",{key:1,class:O(t.icon)},null,2)):T("",!0),e.debug?(d(),h("span",Hc,X(l.index+1)+":"+X(t.id),1)):T("",!0),f("span",null,X(t.content),1),t.showClose?(d(),h("i",{key:3,class:"tui-msg-close tui-icon ti-times",onClick:s})):T("",!0),l.repeat>1?(d(),h("span",Kc,X(l.repeat),1)):T("",!0)])),_:1},16,["class","style"]),[[Ye,n.value]])])),_:1})}}});je([]);const Ht=je({"top-left":[],"top-center":[],"top-right":[],"bottom-left":[],"bottom-center":[],"bottom-right":[]}),Yc=e=>{const t={top:"top-center",bottom:"bottom-center"}[e]||e||"top-center";return Ht[t]?t:"top-center"},Qc=(e,t)=>{const{$tService:l,$tNotifyCloseAll:a,$tAttentionDispatcher:i}=t.config.globalProperties,{position:o,duration:n}=l.$aMessage.value,{counter:s}=l.$aNotification.value,{show:r,currentChannel:u}=l.$aDispatcher.value,{$optFloaterTo:A}=l,d=e.appendTo||A.value;if(r||i(e),u&&"message"!=u&&!e.calledByFlash)return void l.$aDispatcher.value.queue.push({...e,attentionType:"message"});let c=null;const p=document.createElement("div"),g=Ee("msgdir"),v=Yc(e.position||o);let f=!1;const h=t=>{f||(f=!0,c.component.exposed.hide(),setTimeout((()=>{if(!t){const e=Ht[v].indexOf(c);e>-1&&Ht[v].splice(e,1)}Bt(null,p),st(e.onClose).includes("function")&&e.onClose()}),500))},m=()=>{c=Dt(Uc,{...e,position:v,id:g,destroy:h,tuiService:l}),c.appContext=t._context,Ht[v].push(c),Bt(c,p),(ct.el(d)||ct.el("#tuiRoot")).appendChild(p.firstElementChild),e.calledByFlash?e.calledByFlash&&e.duration&&qe.s(g,h,e.duration):qe.s(g,h,e.duration||n||3e3)};if(e.grouping){const t=Ht[v].findIndex((t=>t.props.content===e.content));if(-1==t)m();else{const{id:l,destroy:a}=Ht[v][t].props;Ht[v][t].component.exposed.repeatAdd(),e.calledByFlash||qe.s(l,a,e.duration||n||3e3)}}else m();return{destroy:h}},Xc=()=>{for(let e in Ht){const t=[...Ht[e]];t.forEach(((e,t)=>{e.component.exposed.closeMessage(null,!0)})),setTimeout((()=>{Ht[e]=Ht[e].filter((e=>!t.includes(e)))}),500)}},Zc={key:0,class:"tui-icon ti-info-circle"},Jc={key:1,class:"tui-icon ti-check-circle"},ed={key:2,class:"tui-icon ti-alert-circle"},td={key:3,class:"tui-icon ti-alert-triangle"},ld={class:"tui-noti-main"},nd={class:"tui-noti-title"},ad={class:"tui-noti-content"},od={key:0,class:"tui-noti-debug"},id={key:2,class:"tui-noti-repeat"},sd=Object.assign({name:"TuiNotification"},{__name:"index",props:{...Kn,title:{type:String},position:{type:String},debug:{type:Boolean,default:!1}},setup(e,{expose:t}){const l=$(),a=je({index:0,title:"",content:"",id:"",repeat:1,offsetSum:1,closing:!1}),i=e,o=u((()=>"error"==i.type?"danger":i.type)),{offset:n}=i.tuiService.$aNotification.value,{content:s,title:r}=rt(a),A=$(!1),c=(e,t=!1)=>{qe.c(i.id),i.destroy(t)},g=()=>{if(a.closing)return;const{position:e}=i;let t=Mt[e].findIndex((e=>e.component.props.id===i.id));a.index=t},v=()=>{if(a.closing)return;const{position:e}=i,t=Mt[e].findIndex((e=>e.component.props.id===i.id));let l=10;if(t>-1)for(let a=0;a<Mt[e].length&&!(a>=t);a++)l+=Mt[e][a].el.offsetHeight+15;a.offsetSum=l};Z((()=>Mt[i.position]),(e=>{g(),v()}),{deep:!0}),Z((()=>i.tuiService.$gEscCounter.value),(e=>{e&&c()}));const m=()=>{i.tuiService.$aNotification.value.counter-=1},y=u((()=>$e("cpt-noti",{offset:n,index:a.index,offsetSum:a.offsetSum}))),b=$({tuiService:i.tuiService,appearance:"background",type:o,tone:u((()=>i.tone)),transparent:u((()=>i.transparent)),backgroundBlur:u((()=>i.backgroundBlur)),hasShadow:u((()=>i.hasShadow)),shadowColor:u((()=>i.shadowColor)),...i.typedConfig});return Be((()=>{i.tuiService.$gSound.value&&i.tuiService.audio.play("popupA"),i.tuiService.$aNotification.value.counter+=1,g(),ye((()=>{v()})),A.value=!0,a.content=i.content,i.title?a.title=i.title:a.title=i.tuiService.i18n(`level.${o.value}`)})),t({hide:()=>{a.closing=!0,A.value=!1,m()},updateIndex:g,closeNotification:c,repeatAdd:()=>{a.repeat++}}),(t,i)=>{const n=ke("TuiTyped");return d(),le(Ue,{name:"slide-fade"},{default:G((()=>[Re(me(n,_e(b.value,{ref_key:"notificationRef",ref:l,class:["tui-notification",`is-pos-${e.position}`,`noti-${t.id}`,`is-index-${a.index}`,t.className&&`${t.className}`],style:y.value}),{default:G((()=>[t.icon?T("",!0):(d(),h(ge,{key:0},["info"==o.value||"primary"==o.value||"emphasis"==o.value?(d(),h("i",Zc)):T("",!0),"success"==o.value?(d(),h("i",Jc)):T("",!0),"warning"==o.value?(d(),h("i",ed)):T("",!0),"danger"==o.value?(d(),h("i",td)):T("",!0)],64)),t.icon?(d(),h("i",{key:1,class:O(`tui-noti-icon ${t.icon}`)},null,2)):T("",!0),f("div",ld,[f("span",nd,X(p(r)),1),f("span",ad,X(p(s)),1),e.debug?(d(),h("span",od,X(a.index+1)+":"+X(t.id),1)):T("",!0),t.showClose?(d(),h("i",{key:1,class:"tui-noti-close tui-icon ti-times",onClick:c})):T("",!0),a.repeat>1?(d(),h("span",id,X(a.repeat),1)):T("",!0)])])),_:1},16,["class","style"]),[[Ye,A.value]])])),_:1})}}});je([]);const Mt=je({"top-left":[],"top-center":[],"top-right":[],"bottom-left":[],"bottom-center":[],"bottom-right":[]}),rd=e=>{const t={top:"top-center",bottom:"bottom-center"}[e]||e||"top-center";return Mt[t]?t:"top-center"},ud=(e,t)=>{const{$tService:l,$tMessageCloseAll:a,$tAttentionDispatcher:i}=t.config.globalProperties,{position:o}=l.$aNotification.value,{counter:n}=l.$aMessage.value,{show:s,currentChannel:r}=l.$aDispatcher.value,{$optFloaterTo:u}=l,A=e.appendTo||u.value;if(s||i(e),r&&"notification"!=r)return void l.$aDispatcher.value.queue.push({...e,attentionType:"notification"});let d=null;const c=document.createElement("div"),p=Ee("notidir"),g=rd(e.position||o);let v=!1;const f=t=>{v||(v=!0,d.component.exposed.hide(),setTimeout((()=>{if(!t){const e=Mt[g].indexOf(d);e>-1&&Mt[g].splice(e,1)}Bt(null,c),st(e.onClose).includes("function")&&e.onClose()}),500))},h=()=>{d=Dt(sd,{...e,position:g,id:p,destroy:f,tuiService:l}),d.appContext=t._context,Mt[g].push(d),Bt(d,c),(ct.el(A)||ct.el("#tuiRoot")).appendChild(c.firstElementChild),e.duration&&qe.s(p,f,e.duration)};if(e.grouping){const t=Mt[g].findIndex((t=>(e.title?t.props.title===e.title:!e.title)&&t.props.content===e.content));if(-1==t)h();else{const{id:l,destroy:a}=Mt[g][t].props;Mt[g][t].component.exposed.repeatAdd(),e.duration&&qe.s(l,a,e.duration)}}else h();return{destroy:f}},cd=()=>{for(let e in Mt){const t=[...Mt[e]];t.forEach(((e,t)=>{e.component.exposed.closeNotification(null,!0)})),setTimeout((()=>{Mt[e]=Mt[e].filter((e=>!t.includes(e)))}),500)}},dd={key:0,class:"tui-icon ti-info-circle"},Ad={key:1,class:"tui-icon ti-check-circle"},fd={key:2,class:"tui-icon ti-alert-circle"},pd={key:3,class:"tui-icon ti-alert-triangle"},gd={key:2,class:"tui-tst-title"},vd={class:"tui-tst-content"},hd={key:3,class:"tui-tst-close"},md=Object.assign({name:"TuiToast"},{__name:"index",props:{title:String,...Kn,showClose:{type:Boolean,default:!1}},setup(e,{expose:t}){const l=je({content:"",id:""}),a=e,i=u((()=>"error"==a.type?"danger":a.type)),{offsetX:o,offsetY:n}=a.tuiService.$aToast.value,s=$(!1);Z((()=>a.tuiService.$gEscCounter.value),(e=>{e&&!a.calledByFlash&&r()}));const r=()=>{qe.c(a.id),a.destroy()},A=u((()=>$e("cpt-tst",{ofsX:o,ofsY:n}))),c=$({tuiService:a.tuiService,appearance:"background",type:i,tone:u((()=>a.tone)),transparent:u((()=>a.transparent)),backgroundBlur:u((()=>a.backgroundBlur)),hasShadow:u((()=>a.hasShadow)),shadowColor:u((()=>a.shadowColor)),...a.typedConfig});return Be((()=>{a.calledByFlash||a.tuiService.$gSound.value&&a.tuiService.audio.play("popupB"),s.value=!0,l.content=a.content,a.tuiService.$aToast.value.visible=!0})),t({hide:()=>{s.value=!1,a.tuiService.$aToast.value.visible=!1},closeToast:r}),(t,l)=>{const a=ke("TuiTyped");return d(),le(Ue,{name:"slide-fade"},{default:G((()=>[Re(me(a,_e(c.value,{class:["tui-toast",`tst-${t.id}`,t.className&&`${t.className}`],style:A.value}),{default:G((()=>[t.icon||t.hideIcon?T("",!0):(d(),h(ge,{key:0},["info"==i.value||"primary"==i.value||"emphasis"==i.value?(d(),h("i",dd)):T("",!0),"success"==i.value?(d(),h("i",Ad)):T("",!0),"warning"==i.value?(d(),h("i",fd)):T("",!0),"danger"==i.value?(d(),h("i",pd)):T("",!0)],64)),t.icon&&!t.hideIcon?(d(),h("i",{key:1,class:O(`tui-tst-icon ${t.icon}`)},null,2)):T("",!0),e.title?(d(),h("span",gd,X(e.title),1)):T("",!0),f("span",vd,X(t.content),1),e.showClose?(d(),h("div",hd,[f("i",{class:"tui-icon ti-times",onClick:r})])):T("",!0)])),_:1},16,["class","style"]),[[Ye,s.value]])])),_:1})}}});je([]);let hl=null;const yd=(e,t)=>{const{$tService:l,$tAttentionDispatcher:a}=t.config.globalProperties,{duration:i}=l.$aToast.value,{show:o,currentChannel:n}=l.$aDispatcher.value,{$optFloaterTo:s}=l,r=e.appendTo||s.value;if(o||a(e),n&&"toast"!=n&&!e.calledByFlash)return void l.$aDispatcher.value.queue.push({...e,attentionType:"toast"});const u=document.createElement("div"),A=Ee("tostdir"),d=()=>{hl?.component.exposed.hide(),hl=null,setTimeout((()=>{Bt(null,u),st(e.onClose).includes("function")&&e.onClose()}),500)};return hl&&ui(),hl=Dt(md,{...e,id:A,destroy:d,tuiService:l}),hl.appContext=t._context,Bt(hl,u),(ct.el(r)||ct.el("#tuiRoot")).appendChild(u.firstElementChild),e.calledByFlash||qe.s(A,d,e.duration||i||3e3),{destroy:d}},ui=()=>{hl&&hl.component.exposed.closeToast()},bd={class:"tui-fls-qtext"},Vd=Object.assign({name:"TuiFlash"},{__name:"index",props:{...Kn},setup(e,{expose:t}){const{proxy:l}=Tt(),a=e,i=u((()=>"error"==a.type?"danger":a.type)),o=u((()=>{const{blurRadius:e}=a.tuiService.$aFlash.value;return a.blurRadius||e})),n=u((()=>{const{spreadRadius:e}=a.tuiService.$aFlash.value;return a.spreadRadius||e})),s=u((()=>{const{queuePosition:e}=a.tuiService.$aFlash.value;return a.queuePosition||e})),r=u((()=>{const{queueOffset:e}=a.tuiService.$aFlash.value;return a.queueOffset||e})),A=$(!1),c=u((()=>$e("cpt-fls",{blurR:o.value,spreadR:n.value,offset:r.value})));return Be((()=>{a.tuiService.audio.play("dindonB",!0,a.id,600),A.value=!0,a.tuiService.$aFlash.value.visible=!0})),t({hide:()=>{a.tuiService.audio.stop(a.id),A.value=!1,a.tuiService.$aFlash.value.visible=!1},closeFlash:()=>{qe.c(a.id),a.destroy()}}),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["tui-flash",`is-${i.value}`,`fls-${e.id}`,`is-ani-${e.aniType}`,e.className&&`${e.className}`]),style:we(c.value)},[p(Ft).length>1?(d(),h("div",{key:0,class:O(["tui-fls-queue",`is-pos-${s.value}`])},[(d(!0),h(ge,null,Fe(p(Ft),((e,t)=>(d(),h("div",{class:O(["tui-fls-qitem",`is-${e.type}`])},[f("span",bd,X(t+1),1)],2)))),256))],2)):T("",!0)],6),[[Ye,A.value]])])),_:1}))}}),Ft=je([]);let Cl=null,Pn=null;const ci=(e,t)=>{st(e.onClose).includes("function")&&(e.onFlashClose=e.onClose,delete e.onClose);const{$tService:l,$tNotifyCloseAll:a,$tMessageCloseAll:i,$tToastClose:o,$tMessage:n,$tToast:s,$tAttentionDispatcher:r}=t.config.globalProperties,{show:u,currentChannel:A}=l.$aDispatcher.value,{$optFloaterTo:d}=l,c=e.appendTo||d.value;if(u||r(e),A&&"flash"!=A)return void l.$aDispatcher.value.queue.push({...e,attentionType:"flash"});const p=document.createElement("div"),g=Ee("flashdir"),v=()=>{Cl?.component?.exposed.hide(),Cl=null,Pn=null,Bt(null,p),Ft.splice(0,1),l.$aFlash.value.queueLength=Ft.length,Ft.length>0&&ci(Ft[0],t)};e.onClose=v,e.calledByFlash=!0,e.showClose=!0,e.grouping=!0;return Cl?Cl.props.content==e.content?"message"==e.appearance&&n(e):(-1===Ft.findIndex((t=>t.content===e.content))&&Ft.push(e),l.$aFlash.value.queueLength=Ft.length):(-1===Ft.findIndex((t=>t.content===e.content))&&Ft.push(e),l.$aFlash.value.queueLength=Ft.length,Pn="message"==e.appearance?n(e):s(e),Cl=Dt(Vd,{...e,id:g,destroy:v,tuiService:l}),Bt(Cl,p),(ct.el(c)||ct.el("#tuiRoot")).appendChild(p.firstElementChild)),{destroy:v}},wd=()=>{0!=Ft.length&&(Ft.splice(0),Pn?.destroy(),Cl.component.exposed.closeFlash())},Cd={class:"tui-adisp-icon"},Td={class:"tui-adisp-count"},Sd={class:"tui-adisp-debug"},$d=Object.assign({name:"TuiAttentionDispatcher"},{__name:"index",props:{tuiService:Object,destroy:Function,globalProperties:Object,id:{type:String,required:!0}},setup(e,{expose:t}){const l=Ee("attentionDisp"),a=je({messageCounter:0,notificationCounter:0,toastShow:!1,falshShow:!1,falshQueue:0,dispatchStart:!1}),i=e,{$tMessage:o,$tNotify:n,$tToast:s,$tFlash:r,$tMessageCloseAll:A,$tNotifyCloseAll:c,$tToastClose:g}=i.globalProperties,{$aDispatcher:v,$aFlash:m,$aToast:y,$aNotification:b,$aMessage:V}=i.tuiService,{visible:w,debug:x,offset:q,position:k,currentChannel:S,queue:T}=rt(v.value);Z((()=>V.value.counter),(e=>{m.value.queueLength>0||(a.messageCounter=e,e>0&&(v.value.currentChannel="message"))}),{immediate:!0}),Z((()=>b.value.counter),(e=>{a.notificationCounter=e,e>0&&(v.value.currentChannel="notification")}),{immediate:!0}),Z((()=>y.value.visible),(e=>{m.value.queueLength>0||(a.toastShow=e,e&&(v.value.currentChannel="toast"))}),{immediate:!0}),Z((()=>m.value.visible),(e=>{a.falshShow=e}),{immediate:!0}),Z((()=>m.value.queueLength),(e=>{a.falshQueue=e,e>0&&(v.value.currentChannel="flash")}),{immediate:!0}),Z((()=>T.value),(e=>{e.find((e=>"flash"===e.attentionType))&&(a.dispatchStart=!0,qe.s("queueWatch",(()=>{switch(S.value){case"message":A();break;case"notification":c();break;case"toast":g();break}ye((()=>{B()}))}),1e3))}),{deep:!0});const C=u((()=>{const e=V.value.counter>0,t=b.value.counter>0,l=m.value.queueLength>0,i=y.value.visible;return!!(e||t|i||l)||(v.value.currentChannel=null,!a.dispatchStart&&0==a.falshQueue&&(T.value.length>0?(a.dispatchStart=!0,B()):R.value&&I()),!1)})),B=()=>{const e=T.value.find((e=>"flash"===e.attentionType))||T.value[0];if(e){let t=N(T.value,e.attentionType);t.length>0&&z(t,e.attentionType)}},z=(e,t)=>{let i=0;pl.s(l+"_tInter",(()=>{if(i>=e.length)return a.dispatchStart=!1,void pl.c(l+"_tInter");"message"==t?o(e[i]):"notification"==t?n(e[i]):"toast"==t?s(e[i]):"flash"==t&&r(e[i]),i++}),"toast"==t?2e3:500)},N=(e,t)=>{const l=[],a=[];for(let i=0;i<e.length;i++)e[i].attentionType===t&&(l.push(e[i]),a.push(i));for(let t=a.length-1;t>=0;t--)e.splice(a[t],1);return l},R=$(!1),I=()=>{i.destroy()},M=u((()=>$e("cpt-adisp",{offset:q.value})));return Be((()=>{R.value=!0})),t({hide:()=>{R.value=!1},closeDispatcher:I}),(t,l)=>Re((d(),h("div",{class:O(["tui-attention-dispatcher",`adisp-${e.id}`,`is-pos-${p(k)}`,p(T).length>0?"is-queue":"is-empty",p(w)?"is-visible":"is-invisible"]),style:we(M.value)},[me(Ue,{name:"fade"},{default:G((()=>[Re(f("div",Cd,[l[0]||(l[0]=f("i",{class:"tui-icon ti-bell"},null,-1)),f("span",Td,X(p(T).length),1)],512),[[Ye,p(T).length>0]])])),_:1}),Re(f("div",Sd,[f("p",null,"messageCounter:"+X(a.messageCounter),1),f("p",null,"notificationCounter:"+X(a.notificationCounter),1),f("p",null,"toastShow:"+X(a.toastShow),1),f("p",null,"falshShow:"+X(a.falshShow),1),f("p",null,"falshQueue:"+X(a.falshQueue),1),f("p",null,"attentionOn:"+X(C.value),1),f("p",null,"currentChannel:"+X(p(S)),1),f("p",null,"queueLenght:"+X(p(T).length),1)],512),[[Ye,p(x)]])],6)),[[Ye,R.value]])}});let Bl=null;const kd=(e,t)=>{if(Bl)return;const{$tService:l}=t.config.globalProperties,{$optFloaterTo:a}=l,i=e.appendTo||a.value,o=document.createElement("div"),n=Ee("attdispdir"),s=()=>{Bl?.component.exposed.hide(),Bl=null,setTimeout((()=>{Bt(null,o)}),500)};return Bl=Dt($d,{id:n,destroy:s,tuiService:l,globalProperties:t.config.globalProperties}),Bt(Bl,o),(ct.el(i)||ct.el("#tuiRoot")).appendChild(o.firstElementChild),{destroy:s}},qd=()=>{Bl.component.exposed.closeDispatcher()},xd={install(e){e.config.globalProperties.$tMessage=t=>Qc(t,e),e.config.globalProperties.$tMessageCloseAll=()=>Xc(),e.config.globalProperties.$tNotify=t=>ud(t,e),e.config.globalProperties.$tNotifyCloseAll=()=>cd(),e.config.globalProperties.$tToast=t=>yd(t,e),e.config.globalProperties.$tToastClose=()=>ui(),e.config.globalProperties.$tFlash=t=>ci(t,e),e.config.globalProperties.$tFlashClose=()=>{0!=Ft.length&&(Ft.splice(0),Pn?.destroy(),Cl.component.exposed.closeFlash())},e.config.globalProperties.$tAttentionDispatcher=t=>kd(t,e),e.config.globalProperties.$tAttentionDispatcherClose=()=>{Bl.component.exposed.closeDispatcher()}}},Pd={class:"tui-lodf-inner"},Bd={key:0,class:"svg-icon spinner-full"},zd={class:"desc"},di=Object.assign({name:"TuiLoadingFull"},{__name:"LoadingFull",props:{size:Number,color:String,update:Boolean,zIndex:Number,tuiService:Object,tMask:Function,tMaskClose:Function,destroy:Function,dynamicRender:{type:Boolean,default:!1},desc:{type:String,default:""},modelValue:{type:Boolean,default:!0},appendTo:{type:String,default:null}},emits:["update:modelValue"],setup(e,{expose:t,emit:l}){const{proxy:a}=Tt(),{$tState:i,$tService:o,$tMask:n,$tMaskClose:s}=a,r=$(!1),A=Ee("loadFull"),c=e,p=l,g=$(!0),v=u((()=>c.modelValue)),m=u((()=>c.dynamicRender?c.tMask:n)),y=u((()=>c.dynamicRender?c.tMaskClose:s)),b=u((()=>c.dynamicRender?c.tuiService:o)),V=u((()=>b.value.$tState.spinnerConfig)),w=u((()=>c.color||V.value.full.color)),x=u((()=>c.size||V.value.full.size)),k=u((()=>$e("cpt-lodf",{...q("fc",w.value),...q("size",x.value,"px"),...q("z",c.zIndex)}))),S=u((()=>c.desc?c.desc:b.value.i18n("common.loading"))),C=(e=!0)=>{e&&p("update:modelValue",!1),y.value?.(A),r.value=!1,c.dynamicRender&&qe.s(A+"_tiInst",(()=>{c.destroy?.()}),1e3)};return Be((()=>{Z(v,(e=>{e?(r.value=!0,qe.c(A+"_ti"),m.value?.({owner:A,appendTo:c.appendTo,modelValue:!0,position:"fixed"})):C(!1)}),{immediate:!0}),g.value=!1,c.color&&c.update&&(V.value.full.color=c.color),c.size&&c.update&&(V.value.full.size=c.size),ct.el("#styleSpinners")||b.value.initSpinner()})),al((()=>{qe.c(A+"_ti"),qe.c(A+"_tiInst")})),dt((()=>{g.value=!0})),t({destroy:()=>C()}),(t,l)=>!g.value||e.dynamicRender?(d(),le(Lt,{key:0,to:e.appendTo,disabled:g.value||e.dynamicRender||!e.appendTo,fallback:"#app"},[me(Ue,{name:"fade"},{default:G((()=>[r.value||e.dynamicRender?Re((d(),h("div",{key:0,class:O(["tui-loading-full",{"is-ani-on":r.value,"is-ani-off":!r.value}]),style:we(k.value)},[f("div",Pd,[r.value||e.dynamicRender?(d(),h("i",Bd)):T("",!0),f("div",zd,X(S.value),1)])],6)),[[Ye,r.value]]):T("",!0)])),_:1})],8,["to","disabled"])):T("",!0)}});let Rt=null;const Rd=e=>{let t=null;return"string"==st(e.appendTo)?t=ct.el(e.appendTo):"htmldivelement"==st(e.appendTo)&&(t=e.appendTo),t||ct.el("#app")},Nd=e=>({close:()=>fi(),update:(t={})=>Ai(t,e)}),Ai=(e={},t)=>{const{$tService:l,$tMask:a,$tMaskClose:i}=t.config.globalProperties;if(!Rt){const e=document.createElement("div");Rt={container:e,destroy:()=>{Bt(null,e),Rt=null},controller:Nd(t),options:{},rootDom:null}}Rt.options={...Rt.options,...e},Rt.rootDom=Rd(Rt.options);const o=Dt(di,{...Rt.options,modelValue:Rt.options.modelValue??Rt.options.visible??!0,destroy:Rt.destroy,dynamicRender:!0,tuiService:l,tMask:a,tMaskClose:i,appendTo:null});Bt(o,Rt.container);const n=Rt.container.firstElementChild||Rt.container._vnode?.el;return n&&Rt.rootDom&&n.parentNode!==Rt.rootDom&&Rt.rootDom.appendChild(n),Rt.controller},fi=()=>{Rt&&Rt.container?._vnode?.component?.exposed?.destroy?.()},Id={install(e){e.config.globalProperties.$tLoading=t=>Ai(t,e),e.config.globalProperties.$tLoadingClose=()=>fi()}},pi=Object.assign({name:"TuiMask"},{__name:"index",props:{modelValue:{type:Boolean,default:!1},dynamicRender:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},mode:{type:String,default:"full",validator:e=>["full","area"].includes(e)},areaColorReverse:{type:Boolean,default:!1},areaBorderRadius:Number,areaBlur:{type:String,default:"auto",validator:e=>["auto","always","none"].includes(e)},appendTo:[String,Object],destroy:Function,click:Function,tuiService:Object,zIndex:Number,transition:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(e,{expose:t,emit:l}){const{proxy:{$tState:a,$tService:i}}=Tt(),o=e,n=l,s=$(!1),r=u((()=>o.modelValue));Z(r,(e=>{ye((()=>{s.value=e}))}),{immediate:!0});const A=()=>{o.click?.()},c=u((()=>$e("cpt-msk",{...q("z",o.zIndex),...q("bdra",o.areaBorderRadius,"px")}))),p=u((()=>o.dynamicRender?o.tuiService:i)),g=u((()=>p.value.$tState.globalConfig.maskBlur));return Be((()=>{})),t({destroy:()=>((e=!0)=>{e&&n("update:modelValue",!1),s.value=!1,qe.s("maskInst",(()=>{o.destroy?.()}),500)})()}),(t,l)=>(d(),le(Ue,{name:"fade",disabled:!e.transition},{default:G((()=>[!e.dynamicRender&&r.value||e.dynamicRender?Re((d(),h("div",{key:0,class:O(["tui-mask","is-bg-"+(g.value?"blur":"trans"),"is-mask-"+(e.modal?"on":"off"),`is-${e.mode}`,"area"==e.mode&&"is-bg-"+(e.areaColorReverse?"reverse":"normal"),"area"==e.mode&&`is-area-blur-${e.areaBlur}`]),onClick:A,style:we(c.value)},null,6)),[[Ye,e.dynamicRender&&s.value||!e.dynamicRender]]):T("",!0)])),_:1},8,["disabled"]))}});let xt=null;const Od=(e,t)=>{const{$optFloaterTo:l}=t,a=e.appendTo||l.value;return ct.el(a)||ct.el("#tuiRoot")},Dd=e=>({close:e=>vi(e),update:(t={})=>gi(t,e)}),gi=(e={},t)=>{const{$tService:l}=t.config.globalProperties,a=e.owner||e.source||null;if(!xt){const e=document.createElement("div"),l=()=>{Bt(null,e),xt=null},i=Dd(t);xt={container:e,app:t,destroy:l,controller:i,owner:a,options:{},rootDom:null}}xt.owner=a,xt.options={...xt.options,...e},xt.rootDom=Od(xt.options,l);const i=Dt(pi,{...xt.options,modelValue:xt.options.modelValue??xt.options.visible??!0,tuiService:l,destroy:xt.destroy,dynamicRender:!0});Bt(i,xt.container);const o=xt.container.firstElementChild||xt.container._vnode?.el;return o&&xt.rootDom&&o.parentNode!==xt.rootDom&&xt.rootDom.appendChild(o),xt.controller},vi=(e=null)=>{!xt||e&&xt.owner&&e!==xt.owner||xt.container?._vnode?.component?.exposed?.destroy?.()},Md={install(e){e.config.globalProperties.$tMask=t=>gi(t,e),e.config.globalProperties.$tMaskClose=e=>vi(e)}},_d=["id"],Ed=Object.assign({name:"TuiPopinst"},{__name:"popinst",props:{...Va,popinstSize:Number,content:String,showTrigger:{type:Boolean,default:!0}},setup(e,{expose:t}){const l=je({index:0,id:"",x:0,y:0}),a=e,{$optFloaterTo:i}=a.tuiService;u((()=>a.appendTo||i.value));const o=u((()=>{const{popinstSize:e,showTrigger:t,popPanelConfig:l,...i}=a;return{...i,popPanelConfig:{...l||{},closeOnClickOutside:!1,maxInstances:l?.maxInstances??a.tuiService?.$popoverConfig?.value?.maxLength??5}}})),n=u((()=>a.appearance)),s=$(!1),r=$(!1),A=$(null),c=()=>{let e=a.instances.findIndex((e=>e.component.props.id===a.id));l.index=e};Z((()=>a.instances),(()=>{c()}),{deep:!0});const p=u((()=>$e("cpt-pinst",{...q("z",a.zIndex),...q("size",a.popinstSize,"px"),x:l.x+"px",y:l.y+"px"})));return Be((()=>{const{offsetX:e,offsetY:t}=a.event;l.x=e,l.y=t,c(),s.value=!0,r.value=!0})),t({hide:()=>{r.value=!1,qe.c("leave-"+a.id)},updateIndex:c,closePopinst:(e,t=!1)=>{qe.c(a.id),a.destroy(t)}}),(t,i)=>(d(),h(ge,null,[me(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["tui-popinst",`popinst-${t.type}`,`popinst-${t.id}`,`popinst-index-${l.index}`,"popinst-"+(t.transparent?"trans":"plain"),"popinst-"+(e.showTrigger?"showTrigger":"hideTrigger"),t.className]),ref_key:"popinstRef",ref:A,style:we(p.value),id:"popinst-"+t.id},null,14,_d),[[Ye,r.value]])])),_:1}),s.value?(d(),le(gt("popTip"==n.value&&wa||"popInfo"==n.value&&t.PopInfo),_e({key:0},o.value,{id:t.id,defaultOn:!0,eventTarget:A.value}),{content:G((()=>[(d(),le(gt(a.component)))])),_:1},16,["id","eventTarget"])):T("",!0)],64))}}),ml=je([]),Ld=(e,t)=>{const{autoClose:l=!0,disabled:a=!1}=e;if(a)return;const{$tService:i}=t.config.globalProperties,{$popoverConfig:o}=i,n=o.value||{},s=e.duration??n.duration??5e3,r=e.appearance??n.appearance??"popTip",u=e.maxLength??n.maxLength??5,A=e.event.target;let d=A;if(A){const{target:t,currentTarget:l}=e.event;if(t!=l)return}let c=null,p=!1,g=!1;const v=document.createElement("div"),f=Ee("popInstDir");v.id=f+"_wrap",v.className="popinst-outer";const h=(t=!1)=>{if(p)return;p=!0,g=!1,qe.c(f+"_autoH");const l=ml.indexOf(c);-1!==l&&!t&&ml.splice(l,1),Bt(null,v),d?.contains?.(v)&&d.removeChild(v),st(e.onClose).includes("function")&&e.onClose()},m=(e=!1,t=!1)=>{if(!p&&!g){if(g=!0,t)return void h(e);c?.component?.exposed?.hide?.(),setTimeout((()=>h(e)),500)}};return ml.length>=u&&Fd(),c=Dt(Ed,{...e,duration:s,appearance:r,id:f,destroy:m,tuiService:i,instances:ml}),c.appContext=t._context,ml.push(c),d.appendChild(v),Bt(c,v),l&&qe.s(f+"_autoH",(()=>m()),s),{destroy:m}},Fd=()=>{const e=ml[0];e&&e.component.exposed.closePopinst(null,!0)},jd=()=>{ml.length>0&&[...ml].forEach((e=>{e.component.exposed.closePopinst(null,!0)}))},Wd={install(e){e.config.globalProperties.$tPopover=t=>Ld(t,e),e.config.globalProperties.$tPopoverCloaseAll=()=>{ml.length>0&&[...ml].forEach((e=>{e.component.exposed.closePopinst(null,!0)}))}}},Gd={class:"tui-control-panel",id:"controlPanel"},Hd={class:"tui-cp-title"},Kd={class:"tui-cp-desc"},Ud={class:"tui-cp-content"},Yd={class:"tui-cp-item-title"},Qd={class:"tui-cp-item-content"},Xd={class:"tui-cp-color-view"},Zd=Object.assign({name:"TuiControlPanel"},{__name:"index",setup(e){const{proxy:{isActAdvFeatures:t}}=Tt(),{$tState:l,$t3dConfig:a,themeToggle:i,switchLang:o,$globalConfig:n,i18n:s,tConsolei18n:r,$deviceInfo:A,$gLang:c,$gLocaleReady:g}=ze("$global",null),v=u((()=>l.controlPanel.modal)),m=u((()=>l.controlPanel.width)),y=$(!1),b=$([]),V=[{label:"简中",value:"zh-CN"},{label:"繁中",value:"zh-TW"},{label:"EN",value:"en"}],w=V.map((e=>e.value)),x=()=>({lang:!1,langs:w,...l.controlPanel.options||{}}),q=()=>{const{langs:e}=x(),t=V.filter((t=>e.includes(t.value)));return t.length>0?t:V},k=()=>{const e=x(),t=t=>!1!==e[t];return[{label:"theme",hide:!t("theme"),value:"light",type:"theme",children:[],title:s("controlPanel.label.theme")},{label:"lang",hide:!t("lang"),type:"radio",value:"zh-CN",title:s("controlPanel.label.lang"),children:q()},{label:"t3D",hide:!t("t3D"),type:"switch",value:!0,title:s("controlPanel.label.t3D")},{label:"maskBlur",hide:!t("maskBlur"),type:"switch",value:!0,title:s("controlPanel.label.maskBlur")},{label:"transition",hide:!t("transition"),type:"switch",value:!0,title:s("controlPanel.label.transition")},{label:"sound",hide:!t("sound"),type:"switch",value:!0,title:s("controlPanel.label.sound")},{label:"adaptive",hide:!t("adaptive"),type:"radio",value:"extension",title:s("controlPanel.label.adaptive"),children:[{label:s("controlPanel.label.ad_extension"),value:"extension"},{label:s("controlPanel.label.ad_flexible"),value:"flexible"},{label:s("controlPanel.label.ad_fixed"),value:"fixed"},{label:s("controlPanel.label.ad_stretch"),value:"stretch"},{label:s("controlPanel.label.ad_disabled"),value:"disabled"}]},{label:"floaterTo",hide:!t("floaterTo"),type:"radio",value:"#tuiAdpt",title:s("controlPanel.label.floaterTo"),children:[{label:s("controlPanel.label.ft_adpt"),value:"#tuiAdpt"},{label:s("controlPanel.label.ft_root"),value:"#tuiRoot"}]},{label:"resizeBy",hide:!t("resizeBy"),type:"radio",value:"self",title:s("controlPanel.label.resizeBy"),children:[{label:s("controlPanel.label.rb_self"),value:"self"},{label:s("controlPanel.label.rb_root"),value:"root"}]},{label:"background",hide:!t("background"),type:"radio",value:"all",title:s("controlPanel.label.background"),children:[{label:s("controlPanel.label.bg_all"),value:"all"},{label:s("controlPanel.label.bg_view"),value:"view"},{label:s("controlPanel.label.bg_root"),value:"root"},{label:s("controlPanel.label.bg_none"),value:"none"}]},{label:"menuTrigger",hide:!t("menuTrigger"),type:"radio",value:"click",title:s("controlPanel.label.menuTrigger"),children:[{label:s("controlPanel.label.mt_click"),value:"click"},{label:s("controlPanel.label.mt_hover"),value:"hover"}]}]},S=()=>{const e=l.controlPanel.extension;B.visibleItems=[],B.settings.forEach(((e,t)=>{let l=n.value[e.label];typeof l<"u"&&(e.value=l),e.hide||B.visibleItems.push(e.label)})),B.visibleItems=[...new Set(B.visibleItems)];let t=["label","type","value","title","tipContent"];e.forEach(((e,l)=>{if(t.every((t=>t in e))){if(!B.visibleItems.includes(e.label)){let t=n.value[e.label];typeof t<"u"&&(e.value=t),B.settings.push(e)}}else r({type:"warn",id:"controlExtension",localeKey:"warn.controlExtension"})}))},C=()=>{let e=In.loadIndex();e&&e.length>0&&(e.forEach((e=>{e.label=s(`theme.${e.value}`)+" - "+s(`theme.${e.scheme}`)})),z({label:"theme",key:"children",value:e}),1==e.length&&z({label:"theme",key:"hide",value:!0}))},B=je({visibleItems:[],settings:k(),drawerConfig:{direction:"rtl",padding:0,zIndex:3e3,showClose:!1}}),z=e=>{const{label:t,key:l,value:a}=e,i=B.settings.find((e=>e.label===t));i?i[l]=a:console.error(`Error: Item with label '${t}' not found.`)},N=()=>{const e=k(),t=new Set(e.map((e=>e.label))),l=new Map(B.settings.map((e=>[e.label,e])));e.forEach((e=>{const t=l.get(e.label);t&&(e.value=t.value,"theme"===e.label&&Array.isArray(t.children)&&t.children.length>0&&(e.children=t.children))}));const a=B.settings.filter((e=>!t.has(e.label)));B.settings=[...e,...a],B.visibleItems=[]},R=async(e,t)=>{if("theme"==t.type){let l=t.children.filter((t=>t.value==e))[0];i(e,l.scheme)}else"lang"==t.label?await o(e):l.globalConfig[t.label]=e};Z((()=>l.controlPanel.visible),(e=>{y.value=e,e&&(N(),S(),C())})),Z((()=>l.adaptiveConfig.inited),(e=>{const t=!1!==x().adaptive;if(e)z({label:"adaptive",key:"hide",value:!t});else{if(l.adaptiveConfig.ready)return;z({label:"adaptive",key:"hide",value:!0})}}),{immediate:!0}),Z((()=>l.globalConfig.adaptive),(e=>{const t=!1!==x().floaterTo;"disabled"!=e&&t?z({label:"floaterTo",key:"hide",value:!1}):(z({label:"floaterTo",key:"hide",value:!0}),b.value.forEach((e=>e.scrollTo(0,!1))))}),{immediate:!0}),Z([()=>c.value,()=>g.value],(([,e])=>{e&&(N(),S(),C())}),{immediate:!0}),Z((()=>A.value.browser),(e=>{const t=!1!==x().transition;z("webkit"==e&&t?{label:"transition",key:"hide",value:!1}:{label:"transition",key:"hide",value:!0})})),Z((()=>a.value.inited),(e=>{const t=!1!==x().t3D;z(e&&t?{label:"t3D",key:"hide",value:!1}:{label:"t3D",key:"hide",value:!0})})),Z((()=>y.value),(e=>{e||(l.controlPanel.visible=!1)}));const I=()=>{y.value=!1,l.controlPanel.visible=!1},M=e=>s(`controlPanel.tip.${e.label}`);return El((()=>{I()})),Be((()=>{t||z({label:"t3D",key:"hide",value:!0}),N(),S(),C()})),(e,t)=>{const a=ke("TuiPopTip"),i=ke("TuiRadioItem"),o=ke("TuiRadio"),n=ke("TuiScrollerOptionShell"),r=ke("TuiToggle"),u=ke("TuiDrawer");return d(),le(u,_e({modelValue:y.value,"onUpdate:modelValue":t[0]||(t[0]=e=>y.value=e)},B.drawerConfig,{modal:v.value,size:m.value}),{default:G((()=>[f("div",Gd,[f("div",Hd,[f("span",Kd,X(p(s)("controlPanel.title")),1),f("span",{class:"tui-cp-close",onClick:I},[...t[1]||(t[1]=[f("i",{class:"tui-icon ti-times"},null,-1)])])]),f("div",Ud,[(d(!0),h(ge,null,Fe(B.settings,((e,s)=>(d(),h(ge,null,[e.hide?T("",!0):(d(),h("div",{key:0,class:O(["tui-cp-item",`is-type-${e.type}`])},[f("div",Yd,[We(X(e.title||e.label)+" ",1),me(a,{content:e.tipContent||M(e),maxWidth:m.value-20,placement:"top",zIndex:9e3,delay:500},{default:G((()=>[...t[2]||(t[2]=[f("i",{class:"tui-icon ti-info-circle"},null,-1)])])),_:1},8,["content","maxWidth"])]),f("div",Qd,["theme"==e.type?(d(),le(o,{key:0,class:"tui-cp-theme-radio",defaultIcon:!1,onChange:t=>R(t,e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:G((()=>[(d(!0),h(ge,null,Fe(e.children,((e,l)=>(d(),le(i,{value:e.value||e.label,key:e.label},{default:G((()=>[me(a,{content:e.label,maxWidth:m.value-20,delay:500,zIndex:9e3},{default:G((()=>[f("div",Xd,[t[3]||(t[3]=f("i",{class:"tui-icon ti-check"},null,-1)),(d(!0),h(ge,null,Fe(e.colors,((e,t)=>(d(),h("div",{class:"tui-cp-color-item",style:we(`background-color:${e}`),key:e.label},null,4)))),128))])])),_:2},1032,["content","maxWidth"])])),_:2},1032,["value"])))),128))])),_:2},1032,["onChange","modelValue","onUpdate:modelValue"])):T("",!0),e.children?.length>2&&"radio"==e.type?(d(),le(n,{key:1,ref_for:!0,ref_key:"scrollerRef",ref:b,scrollerType:"smooth",bordered:"",controlType:"button",controlSize:"small"},{default:G((()=>[me(o,{size:"small",defaultIcon:!1,appearance:"button",onChange:t=>R(t,e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:G((()=>[(d(!0),h(ge,null,Fe(e.children,((e,t)=>(d(),le(i,{value:e.value||e.label,key:e.label},{default:G((()=>[We(X(e.label),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["onChange","modelValue","onUpdate:modelValue"])])),_:2},1536)):T("",!0),e.children?.length<=2&&"radio"==e.type?(d(),le(o,{key:2,size:"small",defaultIcon:!1,appearance:"button",onChange:t=>R(t,e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},{default:G((()=>[(d(!0),h(ge,null,Fe(e.children,((e,t)=>(d(),le(i,{value:e.value||e.label,key:e.label},{default:G((()=>[We(X(e.label),1)])),_:2},1032,["value"])))),128))])),_:2},1032,["onChange","modelValue","onUpdate:modelValue"])):T("",!0),"switch"==e.type?(d(),le(r,{key:3,onChange:t=>(e=>{l.globalConfig[e.label]=e.value})(e),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,appearance:"toggleRect",size:"small"},null,8,["onChange","modelValue","onUpdate:modelValue"])):T("",!0)])],2))],64)))),256))])])])),_:1},16,["modelValue","modal","size"])}}}),Jd=e=>{const{chart:t,common:l,scroll:a,font:i,scifi:o}=e,{bg:n,bd:s,bg_layer:r,bd_layer:u}=l,{thumb_frame:A}=a,{line:{weak:d,base:c,strong:p},bubble:{fc:g,bg:v,hlite:f},map:{fc:h,fc_hov:m,fc_act:y,bg:b,bd:V,bg_hov:w,bd_hov:x,bg_act:q,bd_act:k,glow:S,shadow:T},palette:C,visual:$}=t,{hlite:B,focus:z}=o,{weaker:O,weak:N,base:R,strong:I,stronger:M}=i;let P=ut.scale(C,6,"lch");const D={color:P,textStyle:{},title:{textStyle:{color:R},subtextStyle:{color:N}},line:{label:{color:"inherit",textBorderColor:n,textBorderWidth:5},itemStyle:{borderWidth:"2"},lineStyle:{width:"3"},symbolSize:"7",symbol:"emptyCircle",smooth:!0},radar:{splitLine:{lineStyle:{show:!0,color:c,type:"dashed"}},axisLine:{show:!0,lineStyle:{color:c,type:"dashed"}},axisName:{show:!0,color:R},splitArea:{areaStyle:{color:[d,n]}},symbolSize:"7",symbol:"emptyCircle",markLine:{label:{color:"inherit",textBorderColor:n,textBorderWidth:5}},smooth:!0},sunburst:{itemStyle:{borderColor:d,borderWidth:2},levels:[{},{itemStyle:{borderColor:d,borderWidth:2}}]},bar:{label:{color:R},itemStyle:{barBorderWidth:0,barBorderColor:d},markLine:{label:{color:"inherit",textBorderColor:n,textBorderWidth:5}}},pie:{label:{color:R},itemStyle:{borderWidth:0,borderColor:n}},scatter:{label:{show:!0,color:g},emphasis:{labele:{fontWeight:"bold"}},itemStyle:{color:{type:"radial",x:.3,y:.3,r:.5,colorStops:[{offset:0,color:f},{offset:1,color:v}],global:!1},borderWidth:0,borderColor:d}},boxplot:{itemStyle:{borderWidth:0,borderColor:d}},parallel:{itemStyle:{borderWidth:0,borderColor:d}},sankey:{itemStyle:{borderWidth:0,borderColor:d}},funnel:{itemStyle:{borderWidth:0,borderColor:d}},gauge:{itemStyle:{borderWidth:0,borderColor:p},axisLine:{show:!0,lineStyle:{color:[[1,d]]}},axisTick:{show:!0,lineStyle:{color:p}},axisLabel:{show:!0,color:R},splitLine:{show:!0,lineStyle:{color:p}},detail:{color:R}},graph:{itemStyle:{borderWidth:0,borderColor:d},lineStyle:{width:1,color:c},symbolSize:"7",symbol:"circle",smooth:!0,color:P,label:{color:R}},map:{itemStyle:{areaColor:b,borderColor:V,borderWidth:.5},label:{color:R},emphasis:{itemStyle:{areaColor:w,borderColor:V,borderWidth:1},label:{color:R}}},geo:{scaleLimit:{min:.5,max:7},itemStyle:{areaColor:b,borderColor:V,shadowColor:T,shadowOffsetY:0,shadowBlur:5,borderWidth:.5},label:{show:!0,fontSize:12,color:h},emphasis:{itemStyle:{areaColor:w,borderColor:x,borderWidth:1},label:{fontSize:14,color:m}},select:{itemStyle:{areaColor:q,borderColor:k,borderWidth:1},label:{fontSize:14,color:y}}},categoryAxis:{axisLine:{show:!0,lineStyle:{color:c}},splitLine:{show:!1,lineStyle:{color:d}},axisTick:{show:!1,lineStyle:{color:d}},axisLabel:{show:!0,color:R},splitArea:{show:!1}},valueAxis:{nameTextStyle:{color:N},axisLine:{show:!0,lineStyle:{color:c}},axisTick:{show:!1,lineStyle:{color:d}},axisLabel:{show:!0,color:R},splitLine:{show:!0,lineStyle:{color:d}},splitArea:{show:!1}},logAxis:{axisLine:{show:!0,lineStyle:{color:c}},axisTick:{show:!1,lineStyle:{color:d}},axisLabel:{show:!0,color:R},splitLine:{show:!1,lineStyle:{color:d}},splitArea:{show:!1}},timeAxis:{axisLine:{show:!0,lineStyle:{color:c}},axisTick:{show:!1,lineStyle:{color:d}},axisLabel:{show:!0,color:R},splitLine:{show:!1,lineStyle:{color:d}},splitArea:{show:!1}},toolbox:{iconStyle:{borderColor:R},emphasis:{iconStyle:{borderColor:I}}},legend:{y:"bottom",x:"center",textStyle:{color:R},itemStyle:{borderColor:"transparent",borderWidth:1,opacity:1}},tooltip:{backgroundColor:n,textStyle:{color:R},axisPointer:{lineStyle:{color:R,width:1},crossStyle:{color:R,width:1}}},timeline:{symbol:"circle",progress:{itemStyle:{color:B,borderColor:"white",borderWidth:0},lineStyle:{color:B,shadowColor:"rgba(0, 0, 0, 0)"}},lineStyle:{color:z,width:1,shadowColor:"rgba(0, 0, 0, 0)"},itemStyle:{color:z,borderColor:"white",borderWidth:0},controlStyle:{color:O,borderColor:"white",borderWidth:0},checkpointStyle:{symbol:"circle",color:B,borderColor:"white",borderWidth:0,shadowColor:"rgba(0, 0, 0, 0)"},label:{color:R},emphasis:{itemStyle:{color:z},controlStyle:{color:R,borderWidth:0},label:{color:I}}},visualMap:{color:ut.scale($,4,"lch"),textStyle:{color:R},zlevel:10},dataZoom:{backgroundColor:n,fillerColor:ut.fade(B,.1),borderColor:s,handleStyle:{color:r,borderColor:ut.darken(u,.7)},dataBackground:{lineStyle:{color:z},areaStyle:{color:ut.fade(z,.5)}},moveHandleSize:7,moveHandleStyle:{color:A},brushStyle:{color:z},textStyle:{color:R}}};return JSON.stringify(D)};async function eA(e,t){if(t)try{const l=JSON.parse(Jd(t));e.registerTheme("eTheme",l)}catch(e){console.error("registerEchartsTheme: Failed to register theme",e)}else console.warn("registerEchartsTheme: themePalette is required!")}const tA=async()=>{const e=In.load();return e.length>0?e:(await import("@techui/themes/lightBlue"),In.load()||[])};function hi(e,t="",l={}){for(let a in e)if(e.hasOwnProperty(a)){let i=t?`${t}-${a}`:`--${a}`;"object"!=typeof e[a]||Array.isArray(e[a])?l[i]=e[a]:hi(e[a],i,l)}return l}const lA=e=>{const t=["bg","bd","weakest","weaker","weak","base","strong","stronger","strongest"],l=[.1,.2,.3,.4,.5,.6,.7,.8,.9];for(let a in e)CSS.supports("color",e[a])&&t.includes(a)&&l.forEach((t=>{const l=`${a}_op${10*t}`,i=ut.fade(e[a],t);CSS.supports("color",i)&&(e[l]=i)}))},nA=(e,t,l)=>{let a=Kt.dpc(l);const i=["common","button","input","tone","primary","success","info","warning","danger","critical","fatal","emphasis"];for(let e in a)i.includes(e)&&lA(a[e]);let o=`color-scheme: ${e};${JSON.stringify(hi(a)).replace(/{|}|"/g,"").replace(/,--/g,";--")}`;Hn("Theme",t,`:root{${o}}`)},aA=(e={})=>{const{threshold:t=15,resetInterval:l=1e3,onTrigger:a=(()=>{})}=e,i=Ee("clickWatch"),o=$(0);let n=0;const s=e=>{const i=(new Date).getTime();i-n>l&&(o.value=0),o.value++,n=i,o.value>=t&&(a(),o.value=0)};return Be((()=>{Qe.add(window,"contextmenu",s,i,!1,!1),Qe.add(window,"touchstart",s,i,!1,!1)})),al((()=>{Qe.remove(window,"contextmenu",i,!1,!1),Qe.remove(window,"touchstart",i,!1,!1)})),{clickCount:o}},oA="@techui/extended/",iA={datePicker:["TuiDatePicker"],miniChart:["TuiChartProgress","TuiChartProgressGroup","TuiChartBar","TuiChartGauge","TuiChartRing","TuiChartSegment","TuiChartLine","TuiChartFill","TuiChartFillGroup","TuiChartLiquid","TuiChartLiquidGroup","TuiChartLevel","TuiChartPulse","TuiChartMeter","TuiChartDensity","TuiChartTimeline"],dataUnit:["TuiDataMetric","TuiDataRank","TuiDataTimeline","TuiDataLog","TuiDataStatus","TuiDataTask","TuiDataUser","TuiDataCard","TuiDataNotice","TuiDataAlert"]},sA=Object.fromEntries(Object.entries(iA).flatMap((([e,t])=>t.map((t=>[t,`${oA}${e}`]))))),rA=e=>sA[e]||"",uA=e=>String(e||"").match(/Failed to resolve component:\s*([A-Za-z][\w-]*)/)?.[1]||"",cA=(e,t,l,a)=>{e?e(t,l,a):console.warn(`[Vue warn]: ${t}${a||""}`)},dA=({appContext:e,tConsolei18n:t}={})=>{const l=t=>!(!t||!(e?.components||{})[t]);return{has:l,resolve:(e,t="TuiFallback")=>l(e)?e:t,setupWarnHandler:()=>{const l=e?.app;if(!l?.config)return;const a=l.config.warnHandler;l.config.warnHandler=(e,l,i)=>{const o=uA(e),n=rA(o);n?t?t({type:"warn",id:`extended-missing:${o}`,localeKey:"warn.componentMissing",args:{missing:o,packageName:n},throttle:!0}):console.warn(`[TechUI] ${o} is not registered. Install/register ${n}.`):cA(a,e,l,i)}}}},AA=Object.assign({name:"TuiProvider"},{__name:"index-scifi",setup(e){const t=Tt(),{appContext:l,proxy:a}=t,{$tBus:i,$tState:o,$tService:n,$echarts:s,isActAdvFeatures:r,isActEchartsFeatures:u,isActAdminFeatures:A,$tPopover:c,$tPopoverCloaseAll:g,$tMask:v,$tMaskClose:f,$tLoading:m,$tLoadingClose:y,$tMessage:b,$tMessageCloseAll:V,$tNotify:w,$tNotifyCloseAll:x,$tToast:k,$tToastClose:S,$tFlash:C,$tFlashClose:B,$tAttentionDispatcher:z,$tAttentionDispatcherClose:N}=a,R=dA({appContext:l,tConsolei18n:n.tConsolei18n});R.setupWarnHandler();const{$gVersion:I,$globalConfig:M,$globalState:P,$globalParams:D,$viewTrans:_,$gPlatform:E,$deviceInfo:j,$gMaskBlur:G,$gTheme:L,$gThemeScheme:F,initI18n:W,getSysLang:H,cryptoStore:U,initBG:Y,resetBG:X,$gBackground:Q,resetAdaptiveConfig:K,$adptInited:J,$gTransition:te,$gLocaleReady:le,$gResizeDebounce:ae}=n;aA({threshold:19,resetInterval:200,onTrigger:()=>{Br()}});const ie=Uo(),oe=ga(),ne=$(!1),se=$(!1),re=$(!1),ue=Ee("provider");Z((()=>o.globalConfig.theme),((e,t)=>{we(e)})),Z((()=>L.value),(e=>{Ul.replace(ct.el("body"),"theme-",e)}),{immediate:!0}),Z((()=>F.value),(e=>{Ul.replace(ct.el("body"),"theme-scheme-",e)}),{immediate:!0}),Z((()=>o.globalConfig.maskBlur),(e=>{Ul.replace(ct.el("body"),"mask-",e?"blur":"trans")}),{immediate:!0}),Z((()=>o.globalConfig.adaptive),(e=>{"disabled"!=e||!J.value||K()}),{immediate:!0}),Z((()=>o.globalConfig),(e=>{U.s("local","globalConfig",e)}),{deep:!0}),Z((()=>Q.value),(e=>{re.value&&("none"!=e?Y(null,"watch-$gBackground"):X())})),Z((()=>o.backgroundConfig),(()=>{"none"!=Q.value&&Y(null,"watch-backgroundConfig")}),{deep:!0});const Ae=async()=>{se.value||!re.value||(K(),se.value=!0,await ye(),se.value=!1)},de=()=>{window.location.reload()};window.softReload=Ae,window.hardReload=de;const ce=()=>{const{type:e,h:t,v:l,touchable:a,orientation:i,screenInvert:n,browser:s}=Vs();o.deviceInfo={type:e,resolutionH:t,resolutionV:l,touchable:a,orientation:i,screenInvert:n,browser:s}},pe=(e,t="push")=>{const l={...oe.query,...e};"push"===t?ie.push({query:l}):ie.replace({query:l})},ge=e=>e?Array.isArray(e)?e.reduce(((e,t)=>(e[t]=oe.query[t],e)),{}):oe.query[e]:oe.query,ve=e=>{const t=e?.meta?.order;return"number"==st(t)?t:-1},fe=async({path:e,query:t,transTarget:l=null,transName:a=null,transDur:i=null,useOrder:o=!1,waitReady:n=!1,from:s=null})=>{const r=ie.resolve({path:e,query:t});if(oe.fullPath===r.fullPath)return;if(a||l||i){let e;"layout"==l&&(e=_.value.altNames.layout),be(l,a||e,i)}if(o){const t=ie.currentRoute.value,l=ve(t),a=ie.resolve(e),i=ve(a);if(l>-1&&i>-1){const{altNames:{routerPre:e,routerNxt:t}}=_.value;i>l?be(null,t):i<l&&be(null,e)}}await ye();const u=n?ws():null;Ma({callback:async()=>{await ie.push({path:e,query:t}),await ye(),n&&await u},enable:te.value,freezeTarget:_.value.curTarget,complete:()=>{be()}})},he=async(e,t)=>{!e||!t||(be("root",_.value.altNames.theme),await ye(),Ma({callback:()=>{o.globalConfig.theme=e,o.globalConfig.themeScheme=t},enable:!0,freezeTarget:_.value.curTarget,complete:()=>{be()}}))},be=(e=null,t=null,l=null)=>{t&&(_.value.curName=t),e&&(_.value.curTarget=e),l&&(_.value.curDur=l),!t&&!e&&!l&&(_.value.curName=_.value.altNames.common,_.value.curTarget=_.value.altTarget,_.value.curDur=_.value.altDur),Ve()},Ve=()=>{const{blurSaturate:e,blurRange:t,initDur:l}=D.value,{curTarget:a,curName:i,curDur:o}=_.value;let n=$e("tui-global",{[`trs-${a}`]:i,blurSatur:e,blurRange:t+"px",initDur:l+"s",trsDur:o+"s"});Hn("GlobalParams",`vtName-${i};vtTraget-${a}`,`:root{${n}}`)},we=async e=>{u&&(P.value.echartsThemeInited=!1);let t=e,l=await tA(),a=l.find((e=>e.value===t));!a&&l.length>0&&(a=l[0],t=a.value,M.value.theme=a.value,M.value.themeScheme=a.scheme),o.themePalette=a.data,nA(F.value,t,a.data),re.value||(re.value=!0,P.value.themeInited=!0),Y(null,"processTheme"),(async e=>{u&&s&&(await eA(s,e),P.value.echartsThemeInited=!0)})(a.data)};El((async()=>{bt("$global",{$tBus:i,proxy:a,$component:R,updateRouteQuery:pe,getRouteQuery:ge,routerTransition:fe,themeToggle:he,...n,$tCore:{cssVarGen:$e,cssVarIf:q},softReload:Ae,hardReload:de,$tBus:i,$tState:o,$tService:n,$echarts:s,isActAdvFeatures:r,isActEchartsFeatures:u,isActAdminFeatures:A,$tPopover:c,$tPopoverCloaseAll:g,$tMask:v,$tMaskClose:f,$tLoading:m,$tLoadingClose:y,$tMessage:b,$tMessageCloseAll:V,$tNotify:w,$tNotifyCloseAll:x,$tToast:k,$tToastClose:S,$tFlash:C,$tFlashClose:B,$tAttentionDispatcher:z,$tAttentionDispatcherClose:N});let e=U.g("local","globalConfig");e&&(e.platform==E.value&&e.version==I.value?o.globalConfig=e:U.d("local","globalConfig")),M.value.lang||(M.value.lang=H()),await W(),we(L.value)}));const xe=e=>{"F11"===e.key&&(e.preventDefault(),Da.toggle()),"Escape"===e.key&&P.value.escCounter++},qe=e=>{P.value.clickCounter++,P.value.clickTarget=e.target};Be((()=>{Ve();let e=ct.el("#preLoading");e&&e.remove(),screen.orientation&&screen.orientation.addEventListener("change",ce),Qe.add(document,"keydown",xe,ue,!1,!1),Qe.add(document,"click",qe,ue,!1,!1),Qe.add(document,"contextmenu",qe,ue,!1,!1),ne.value=!0})),al((()=>{screen.orientation.removeEventListener("change",ce),Qe.remove(document,"keydown",ue,!1,!1),Qe.remove(document,"click",ue,!1,!1),Qe.remove(document,"contextmenu",ue,!1,!1)}));const Se=e=>{ce(),P.value.fullScreen=Da.isEnabled(),P.value.resizeCounter++};return(e,t)=>{const l=ke("TuiControlPanel"),a=Je("tui-resize");return!se.value&&re.value?Re((d(),h("div",{key:0,id:"tuiRoot",class:O(["tui-root",`theme-${p(L)}`,`theme-scheme-${p(F)}`,"mask-"+(p(G)?"blur":"trans"),p(j).type,p(j).orientation&&`screen-dir-${p(j).orientation}`,"screen-"+(p(j).screenInvert?"invert":"no-invert"),{"tui-view-bg":"view"==p(Q),"tui-root-bg":"root"==p(Q)||"all"==p(Q)}])},[me(l),ee(e.$slots,"default")],2)),[[a,{callback:Se,uid:p(ue),threshold:2,debounce:p(ae)}]]):T("",!0)}}}),fA={class:"tui-adt-inner"},pA={class:"tui-adt-text"},gA=Object.assign({name:"TuiAdptDragTip"},{__name:"dragTip",props:{visible:Boolean,css:String,tipMute:Boolean,tipAutoShow:Boolean,modelValue:Boolean},emits:["update:modelValue"],setup(e,{emit:t}){const{i18n:l,$gSound:a,$adaptiveConfig:i,audio:o}=ze("$global",null),n=e,s=t,r=$(!0),u=$(!1),A=$(null),c=$(!1),g=$(!1),v=()=>{!n.tipAutoShow||g.value||!i.value.dragTip||(qe.c("adptDragInfo"),qe.c("adptDragInfoPre"),qe.s("adptDragInfoPre",(()=>{c.value=!0,n.tipMute||a.value&&o.play("pingA"),qe.s("adptDragInfo",(()=>{c.value=!1,g.value=!0,i.value.dragTip&&(i.value.dragTip=!1)}),3e3)}),300))};Z((()=>n.visible),(e=>{u.value=n.modelValue,e?v():(qe.c("adptDragInfo"),qe.c("adptDragInfoPre"),c.value=!1)}),{immediate:!0});const m=je({appearance:"iconButton",icon:["tui-icon ti-arrow-move","tui-icon ti-cursor-click"]}),y=()=>{s("update:modelValue",!n.modelValue)},b=()=>{c.value=!0},V=()=>{!g.value&&!i.value.dragTip||(c.value=!1)};return Be((()=>{r.value=!1})),dt((()=>{r.value=!0,qe.c("adptDragInfo"),qe.c("adptDragInfoPre")})),(t,a)=>{const i=ke("TuiPopTip"),o=ke("TuiToggle");return r.value?T("",!0):(d(),le(Lt,{key:0,to:"#tuiRoot",fallback:"#app",disabled:r.value},[me(Ue,{name:"fade"},{default:G((()=>[e.visible?(d(),h("div",{key:0,class:"tui-adaptive-drag-tip",style:we(e.css),ref_key:"dragInfoRef",ref:A},[A.value?(d(),le(i,{key:0,visible:c.value,"onUpdate:visible":a[0]||(a[0]=e=>c.value=e),manual:"",eventTarget:A.value,showTrigger:!1,maxWidth:250,content:p(l)("adaptive.dragTip"),placement:"top"},null,8,["visible","eventTarget","content"])):T("",!0),f("div",fA,[f("i",{onMouseenter:b,onMouseleave:V,class:"tui-icon ti-info"},null,32),me(o,_e({onChange:y,modelValue:u.value,"onUpdate:modelValue":a[1]||(a[1]=e=>u.value=e)},m),null,16,["modelValue"]),f("span",pA,X(p(l)("adaptive.dragText")),1)])],4)):T("",!0)])),_:1})],8,["disabled"]))}}}),vA={class:"tui-adaptive-low-res-tip"},hA={class:"tui-alrt-text"},mA=Object.assign({name:"TuiAdptLowResTip"},{__name:"lowResTip",emits:["closeLowResTip"],setup(e,{emit:t}){const{i18n:l}=ze("$global",null),a=t,i=()=>{a("closeLowResTip")};return(e,t)=>{const a=Je("tui-popover");return d(),le(Ue,{name:"fade"},{default:G((()=>[f("div",vA,[t[0]||(t[0]=f("i",{class:"tui-icon ti-info-circle tui-alrt-info"},null,-1)),Re((d(),h("span",hA,[We(X(p(l)("adaptive.lowResText")),1)])),[[a,{content:p(l)("adaptive.lowResTip"),placement:"top",delay:1e3,maxWidth:300}]]),f("i",{class:"tui-icon ti-times",onClick:i})])])),_:1})}}}),yA={key:1,class:"tui-adpt-term-tip"},bA="TuiAdaptive",VA=Object.assign({name:bA,inheritAttrs:!1},{__name:"index",props:{className:String,spinnerConfig:Object,shadowConfig:Object,tipMute:{type:Boolean,default:!1},tipAutoShow:{type:Boolean,default:!0},mode:{type:String,default:"extension",validator:e=>["extension","flexible","fixed","stretch","disabled"].includes(e)},debounce:{type:Number,default:300},width:{type:Number,default:1900},height:{type:Number,default:1060},shadow:{type:Boolean,default:!0},loading:{type:Boolean,default:!0},portletCount:{type:Number,default:0},userSelect:{type:Boolean,default:!0},monitorRatio:{type:Boolean,default:!0},pointEvent:{type:String,default:"default",validator:e=>["default","penetration"].includes(e)}},emits:["update:mode","update:loading","resizeStart","resizeEnd"],setup(e,{emit:t}){const{$tState:l,$adaptiveConfig:a,$gPortletCounter:i,$gResizeCounter:o,$gBackground:n,$deviceInfo:s,$adptInited:r,$adptReady:A,$gAdaptive:c,initSpinner:g,resetAdaptiveConfig:v,i18n:m,tConsolei18n:y}=ze("$global",null),b=Nt(),V=e,w=t,x=Ee("adaptive"),k=$(null),S=$(null),C=$(null),B=$(V.loading),z=$(null),N=$(null);let R=0;const I=u((()=>N.value?.includes("pc"))),M=je({curType:null,transform:"",resizeCounter:0,viewState:{maximize:!1},resizing:!1,inited:!1,overSizeH:!0,observer:"",calcSuccess:!0,terminateServiceStr:"",penetraDomInfo:{},motionType:"none",lastCalc:null,dragable:!1,clickable:!1,lowResolution:!1,disLowResolTip:!1,oriResRatio:0}),{viewState:P,inited:D}=rt(M),_=u((()=>$e("cpt-adpt-penetra",{...q("width",M.penetraDomInfo.width,"px"),...q("height",M.penetraDomInfo.height,"px")}))),E=u((()=>$e("cpt-browser",{...q("ratio",z.value)}))),j=()=>{M.resizing||(w("resizeStart"),M.resizing=!0)},G=()=>{w("resizeEnd"),M.resizing=!1},L=async(e="unknown")=>{const t=++R;j();const a=c.value,i=window.devicePixelRatio;if(M.oriResRatio||(M.oriResRatio=i),!k.value||"disabled"==a)return M.curType=a,M.penetraDomInfo={},void G();const o=await(async e=>{let t=0,l=0,a=0;for(let i=0;i<8;i++){if(await ye(),await ot.w(),e!==R)return null;const i=k.value;if(!i)return null;const o=i.getBoundingClientRect(),n=Math.round(o.width||i.clientWidth||0),s=Math.round(o.height||i.clientHeight||0);if(n>0&&s>0&&n==t&&s==l){if(a++,a>=2)return{width:n,height:s}}else a=0;t=n,l=s}return t>0&&l>0?{width:t,height:l}:null})(t);if(t!==R||!o)return;const n=(window.outerWidth/window.innerWidth).toFixed(1);let u;u=window.mozInnerScreenX?M.oriResRatio==i?1:i:1==i||n<1.02&&n>.99?1:i;const A=s.value.type;A&&(N.value=A);const d=1!=u&&I.value&&V.monitorRatio;if(d){if(z.value=u,M.curType==a)return M.dragable||(M.dragable=!0,M.lowResolution=!1),void G()}else M.dragable=!1,M.clickable=!1;if(!M.dragable){let e={apWidth:o.width,apHeight:o.height,cfgWidth:V.width,cfgHeight:V.height,mode:a},t=zr(e);const{staWidth:l,scale:i,scaleX:n,scaleY:s,translateX:r,translateY:u,cssHeight:A,success:d}=t;M.calcSuccess=d,d||(M.terminateServiceStr=m("error.terminateService"));const c={scale:i,scaleX:n,scaleY:s},p={scale:i,scaleX:n,scaleY:s,staWidth:l,cssHeight:A};M.motionType=((e,t)=>t?e.scale!=t.scale||e.scaleX!=t.scaleX||e.scaleY!=t.scaleY?"scale":e.staWidth!=t.staWidth||e.cssHeight!=t.cssHeight?"size":"none":"none")(p,M.lastCalc),M.lastCalc=p,"stretch"!=a&&!M.dragable&&0!=c.scale&&c.scale<1?M.lowResolution=!0:M.lowResolution=!1,Tl.adpt.init(c),((e={})=>{const t=k.value;t&&Ts(t,"cpt-adpt",e)})({staw:`${l}px`,cssh:`${A}px`,scale:i,scalex:n,scaley:s,transx:-1*r+"%",transy:-1*u+"%"}),((e={},t)=>{const{staWidth:l,scale:a,scaleX:i,scaleY:o,cssHeight:n}=e,s=Number("stretch"==t?i:a),r=Number("stretch"==t?o:a),u=Number(l)*s,A=Number(n)*r;Number.isFinite(u)&&Number.isFinite(A)&&(M.penetraDomInfo={width:u,height:A})})(t,a)}d&&!M.dragable&&(M.dragable=!0),M.curType=a,M.inited||(M.inited=!0),await ye(),t===R&&(!r.value&&ct.el("#tuiAdpt")&&(l.adaptiveConfig.inited=!0),!M.dragable&&b.penetration&&await Q(t),t===R&&(G(),Y()))},F=Qe.debounce(((e="debounce")=>{L(e)}),V.debounce),W=(e="direct")=>{F.cancel(),L(e)},H=(e="debounce")=>{j(),F(e)},U=({width:e,height:t})=>{!e||!t||H("resize:host")},Y=()=>{M.dragable||(l.adaptiveConfig.resizeCounter++,M.resizeCounter++)};Z((()=>i.value),(e=>{e>=V.portletCount?(B.value=!1,w("update:loading",!1)):B.value||(B.value=!0)})),Z((()=>V.loading),(e=>{B.value!=e&&(B.value=e)}),{immediate:!0}),Z((()=>V.mode),(e=>{l.globalConfig.adaptive=e}),{immediate:!0}),Z((()=>[V.width,V.height]),(()=>{W("watch:Width&Height")})),Z((()=>c.value),(e=>{if(w("update:mode",e),"disabled"==e)return M.resizeCounter=0,void W("watch:gAdaptive:disabled");W("watch:gAdaptive")}),{immediate:!0}),Z((()=>C.value),(e=>{!e||!M.inited||!M.curType||Q(R,!0)})),Z((()=>o.value),(e=>{e&&H("watch:gResizeCounter")}));const Q=async(e=R,t=!1)=>{if(await ye(),e!==R||!t&&M.penetraDomInfo.width&&M.penetraDomInfo.height)return;let l=C.value;l&&S.value&&(M.penetraDomInfo=Cs({source:S.value,target:l,sizeMode:"visual"}))},K=()=>{M.disLowResolTip=!0};return Be((()=>{k.value.closest("#tuiAdpt")?y({type:"error",id:"adaptiveNesting",localeKey:"error.adaptiveNesting"}):(V.portletCount>0?B.value=!0:V.loading&&(B.value=V.loading),(!ct.el("#styleSpinners")||V.spinnerConfig)&&g(V.spinnerConfig),A.value||ye((()=>{l.adaptiveConfig.ready=!0})),W("mounted"))})),dt((()=>{F.cancel(),M.dragable=!1,M.clickable=!1,M.lowResolution=!1,l.adaptiveConfig.ready=!1,v()})),(t,l)=>{const a=ke("TuiLoadingFull"),i=Je("tui-resize"),o=Je("tui-drag");return d(),h(ge,null,[Re((d(),h("div",_e({id:"tuiAdptOuter"},t.$attrs,{class:["tui-adaptive",e.className,""+(p(P).maximize?"is-size-max":"is-size-normal"),`is-${M.curType}`,`is-pevent-${e.pointEvent}`,{"has-penetration":t.$slots.penetration,"is-disabled":"disabled"==p(c),"is-resizing":M.resizing,"is-dragable":M.dragable&&!M.clickable,"is-clickable":M.clickable,"is-low-resolution":M.lowResolution,"is-initing":!M.inited,"is-distrans":0==M.resizeCounter,[`is-motion-${M.motionType}`]:!0}],ref_key:"apElement",ref:k}),[M.lowResolution&&!M.disLowResolTip?(d(),le(mA,{key:0,onCloseLowResTip:K})):T("",!0),M.calcSuccess?T("",!0):(d(),h("div",yA,X(M.terminateServiceStr),1)),me(a,{appendTo:"#tuiAdptOuter",modelValue:B.value,"onUpdate:modelValue":l[0]||(l[0]=e=>B.value=e)},null,8,["modelValue"]),(p(D)||"disabled"==p(c))&&M.calcSuccess?(d(),h(ge,{key:2},[f("div",{ref_key:"apContainer",ref:S,id:"tuiAdpt",class:O(["tui-adpt-cont",{"tui-view-bg":"all"==p(n)&&!t.$slots.penetration,"show-shadow":e.shadow&&!t.$slots.penetration,"dis-user-select":!e.userSelect}])},[ee(t.$slots,"default",{viewState:p(P)})],2),t.$slots.penetration?(d(),h("div",{key:0,id:"tuiAdptPenetration",ref_key:"adptPenetration",ref:C,class:O(["tui-adpt-penetra",{"tui-view-bg":"all"==p(n)&&t.$slots.penetration,"show-shadow":e.shadow&&t.$slots.penetration,"dis-user-select":!e.userSelect}]),style:we(_.value)},[ee(t.$slots,"penetration",{viewBGName:"tui-view-bg"})],6)):T("",!0)],64)):T("",!0)],16)),[[i,{callback:U,uid:`${p(x)}_host`,threshold:1,settleDelay:120}],[o,{enabled:M.dragable,trigger:"#tuiAdpt",resetOnDisable:!0,containment:!1,positionType:"transform",inAdpt:!1,uid:p(x)}]]),me(gA,{visible:M.dragable,modelValue:M.clickable,"onUpdate:modelValue":l[1]||(l[1]=e=>M.clickable=e),css:E.value,tipAutoShow:e.tipAutoShow,tipMute:e.tipMute},null,8,["visible","modelValue","css","tipAutoShow","tipMute"])],64)}}}),wA=["onMouseenter","onClick"],CA=Object.assign({name:"TuiBar3DGroup"},{__name:"group",props:{gap:Number,labelWidth:Number,items:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["label","value"]);return t||console.warn("TuiBar3DGroup Warning! ",l),t}},progress3DBarConfig:Object,valueSize:{type:Number,default:16},queueInit:{type:Boolean,default:!0},clickable:{type:Boolean,default:!1}},emits:["itemClick"],setup(e,{emit:t}){const l=e,a=t,i=$([]),o=$(0),n=$([]),s=$(null),r=e=>!!l.queueInit&&e!==o.value,A=e=>{n.value.push(e),o.value<l.items.length-1&&o.value++},c=u((()=>({valueSize:l.valueSize,...l.progress3DBarConfig}))),p=u((()=>$e("cpt-b3dg",{...q("gap",l.gap,"px")}))),g=e=>l.clickable&&null!=s.value&&s.value!==e?.4:1,v=()=>{l.clickable&&(s.value=null)};return(t,o)=>{const n=ke("TuiBar3D");return d(),h("div",{class:O(["tui-bar-3d-group",{"has-label":!1,"is-clickable":e.clickable}]),style:we(p.value)},[(d(!0),h(ge,null,Fe(e.items,((e,t)=>(d(),h("div",{class:"tui-b3dg-item",key:e.id||e.label||t,style:we({opacity:g(t)}),onMouseenter:e=>(e=>{l.clickable&&(s.value=e)})(t),onMouseleave:v,onClick:i=>((e,t,i)=>{l.clickable&&a("itemClick",{event:i,data:e,index:t})})(e,t,i)},[me(n,_e({ref_for:!0,ref_key:"childRefs",ref:i},{ref_for:!0},c.value,{initHold:r(t),onInited:A,label:e.label,value:e.value}),null,16,["initHold","label","value"])],44,wA)))),128))],6)}}}),mi=["normal","success","danger","warning","emphasis","critical"],TA=["cylinder","cube"],SA=["none","auto","all","allReverse"],$A=["auto","top"],kA=["self","global","none"],qA=["bottom","top","left","right"],Mn=e=>null==e||CSS.supports("color",e),xA=e=>!(!e||"object"!=typeof e||!Object.keys(e).some((e=>mi.includes(e))))&&Object.values(e).every((e=>"number"==typeof e&&!Number.isNaN(e)&&e>=0)),yi={index:Number,iconsSymbol:String,label:{type:String,required:!0},precision:{type:Number,default:0},unit:{type:String,default:""},valueSize:Number,displayValue:{type:String,default:"auto",validator:e=>SA.includes(e)},mainValuePosition:{type:String,default:"auto",validator:e=>$A.includes(e)},shape:{type:String,default:"cylinder",validator:e=>TA.includes(e)},initHold:{type:Boolean,default:!1},aniDelay:{type:Number,default:2e3},duration:{type:Number,default:1e3},gap:{type:Number,default:30},viewDeep:{type:Number,default:15,validator:e=>e>=0&&e<=50},showTrack:{type:Boolean,default:!0},trackOpacity:{type:Number,default:.5},trackBlur:{type:Number,default:1},barBlur:{type:Number,default:1},barOpacity:{type:Number,default:.9},clickable:{type:Boolean,default:!1},inactiveOpacity:{type:Number,default:.4,validator:e=>"number"==typeof e&&e>=0&&e<=1},barColorRatio:{type:Number,default:15},baseColor:{type:String,default:null,validator:Mn},showBase:{type:Boolean,default:!1},baseColorRatio:{type:Number,default:1},baseSpacing:{type:Number,default:20},baseOpacity:{type:Number,default:.9},baseBlur:{type:Number,default:.5},baseColorWeakened:{type:Boolean,default:!1},status:{type:String,default:null,validator:e=>mi.includes(e)},thresholds:{type:Object,default:null,validator:xA},resizeObserver:{type:String,default:"global",validator:e=>kA.includes(e)}},PA={...yi,value:{type:Number,default:0,validator:e=>e>=0},maxValue:{type:Number,default:null,validator:e=>e>=0},barColor:{type:String,default:null,validator:Mn},baseColor:{type:String,default:null,validator:Mn}},BA=e=>!(!Array.isArray(e)||!e.length)&&e.every((e=>!(!e||"object"!=typeof e||"number"!=typeof e.value||Number.isNaN(e.value)||e.value<0||null!=e.color&&!Mn(e.color)))),zA={...yi,segments:{type:Array,default:()=>[],validator:BA},maxValue:{type:Number,default:null,validator:e=>e>=0},segmentGap:{type:Number,default:0,validator:e=>e>=0},showLegend:{type:Boolean,default:!1},legendPosition:{type:String,default:"bottom",validator:e=>qA.includes(e)},legendTeleportTo:{type:[String,Object],default:null},legendWidth:[Number,String]},so={top:{cx:null,cy:null,rx:null,ry:null},sideA:null,sideB:null,body:null,success:!1},_n=()=>({normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null}),Ca=({value:e,maxValue:t})=>t&&t>0?e/t*100:e<=100?e:100,bi=({displayValue:e,precision:t,aniPct:l,aniVal:a,maxValue:i,unit:o,dustSettled:n})=>{let s,r,u,A,d,c;if("none"===e)return{mainVal:s,mainUnit:r,subVal:u,subUnit:A};if(t){const e=parseFloat(Number(l).toFixed(t)),i=parseFloat(Number(a).toFixed(t));c=n?e:Ct.padZero(e,t),d=n?i:Ct.padZero(i,t)}else c=Math.round(l),d=Math.round(a);return i&&o&&"auto"!==e?"all"===e?(s=d,r=o,u=c,A="%"):"allReverse"===e&&(u=d,A=o,s=c,r="%"):i&&o?(s=d,r=o):(s=c,r="%"),{mainVal:s,mainUnit:r,subVal:u,subUnit:A}},Rl=({shape:e,width:t,height:l,topMargin:a,maxHeight:i,percent:o,viewDeep:n})=>{const s=Rr(e,t,l,a,i,o,n);return s.success?s:{...so,top:{...so.top}}},RA=({thresholds:e,value:t})=>{if(!e)return!1;const l=Object.entries(e).sort(((e,t)=>t[1]-e[1]));return l.find((([e,l])=>t>=l))?.[0]||l[l.length-1]?.[0]||"normal"},Vi=({settled:e,customBarColor:t,explicitStatus:l,thresholds:a,currentValue:i,fallbackStatus:o})=>!!e&&(t?"custom":l||(a?RA({thresholds:a,value:i}):o||!1)),oa=e=>{Object.keys(e).forEach((t=>{e[t]=null}))},NA=({aniPct:e,aniVal:t,state:l,props:a,debut:i,emit:o})=>{const n=Ee("bar3D");return s=>{l.dustSettled=!1;const r=e.value,u=s-r,A=Date.now(),d=()=>{const c=Date.now()-A,p=Math.min(c/a.duration,1),g=1-Math.pow(1-p,3);e.value=r+u*g,t.value=a.maxValue?a.value*g:e.value,p<1?ot.s(n,d):(e.value=s,l.dustSettled=!0,i.value||(i.value=!0,o("inited",a.index)))};ot.s(n,d)}},ro=({aniPct:e,aniVal:t,state:l,duration:a,targetValue:i,targetPct:o,debut:n,emit:s,index:r})=>{const u=Ee("stackBar3D");return()=>{l.dustSettled=!1;const A=e.value,d=t.value,c=o-A,p=i-d,g=Date.now(),v=()=>{const f=Date.now()-g,h=Math.min(f/a,1),m=1-Math.pow(1-h,3);e.value=A+c*m,t.value=d+p*m,h<1?ot.s(u,v):(e.value=o,t.value=i,l.dustSettled=!0,n.value||(n.value=!0,s("inited",r)))};ot.s(u,v)}},IA=({segments:e,aniPct:t,maxValue:l,maxHeight:a,shape:i,width:o,height:n,topMargin:s,viewDeep:r,colorRatio:u,palette:A,gap:d=0})=>{let c=0,p=0,g=0;return(e||[]).map(((e,v)=>{const f=Ca({value:Number(e?.value)||0,maxValue:l}),h=Math.max(Math.min(t-c,f),0),m=Math.min(h,100),y=m/100*a,b=-(p+g*d),V=e?.color||A[v%A.length]||"#5aa6ff",w=ut.genColors(V,3,u,!1),x=Rl({shape:i,width:o,height:n,topMargin:s,maxHeight:a,percent:m,viewDeep:r}),q={...e,index:v,rawPercent:f,visiblePercent:m,visibleHeight:y,translateY:b,baseColor:V,colors:w,path:x,visible:m>0};return c+=f,m>0&&(p+=y,g+=1),q}))},OA={class:"tui-b3d-svg-inner"},DA=["width","height","viewBox"],MA=["id"],_A=["id"],EA=["id"],LA=["id"],FA=["id"],jA={key:0},WA=["id"],GA=["id"],HA=["id"],KA=["id"],UA={key:1},YA=["id"],QA=["id"],XA=["id"],ZA=["id"],JA={key:2},ef=["id","points"],tf=["id","points"],lf=["id"],nf=["href"],af={key:3},of=["id","d"],sf=["id"],rf=["href"],uf=["id"],cf=["stdDeviation"],df=["id"],Af=["stdDeviation"],ff=["id"],pf=["stdDeviation"],gf=["opacity","filter"],vf=["d","fill"],hf=["cx","cy","rx","ry","fill"],mf=["points","fill"],yf=["points","fill"],bf=["points","fill"],Vf=["opacity","filter"],wf=["href","fill"],Cf=["cx","cy","rx","ry","fill"],Tf=["href","fill"],Sf=["href","fill"],$f=["points","fill"],kf=["x","y","width","height","fill","clip-path"],qf=["x"],xf=["opacity","filter"],Pf=["d","fill"],Bf=["cx","cy","rx","ry","fill"],zf=["points","fill"],Rf=["points","fill"],Nf=["points","fill"],If={class:"tui-b3d-value"},Of={class:"tui-b3d-unit"},Df={class:"tui-b3d-label"},Mf={key:0,class:"tui-b3d-subval"},_f={class:"tui-b3d-subval-text"},Ef={class:"tui-b3d-unit"},Lf={class:"tui-b3d-label-text"},Ff="TuiBar3D",jf=Object.assign({name:Ff},{__name:"index",props:PA,emits:["inited"],setup(e,{expose:t,emit:l}){const{$themePalette:a,$gThemeScheme:i,$optResizeCounter:o,initResizeBy:n}=ze("$global",null),s=n(),r=e,A=l,c=Ee("bar3D"),g=$(!1),v=$(!1),m=$(!1),y=$(!1),b=$(null),V=je({width:100,height:200,dustSettled:!1,barColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null},baseColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null}}),w=$(0),x=$(0),k=$("normal"),S=u((()=>Ca({value:r.value,maxValue:r.maxValue}))),C=u((()=>{const e=parseInt(r.iconsSymbol,16);return String.fromCharCode(e)})),B=u((()=>bi({displayValue:r.displayValue,precision:r.precision,aniPct:w.value,aniVal:x.value,maxValue:r.maxValue,unit:r.unit,dustSettled:V.dustSettled}))),z=u((()=>(w.value<=100?w.value:100)/100*(V.height-(r.showTrack?r.gap:10)-50))),N=u((()=>{if(!r.showTrack)return;const e=.1*V.width,t=V.height-.1*V.width*2;return Rl({shape:r.shape,width:V.width,height:V.height,topMargin:e,maxHeight:t,percent:100,viewDeep:r.viewDeep})})),R=u((()=>{if(!r.showBase)return;const e=r.baseSpacing/V.width,t=.1*V.width+.05*V.height-4,l=V.height-.1*V.width*2;return Rl({shape:r.shape,width:V.width+2*r.baseSpacing,height:V.height,topMargin:t,maxHeight:l,percent:5,viewDeep:r.viewDeep+r.viewDeep*e*2})})),I=u((()=>{const e=r.showTrack?r.gap:0,t=e/V.width,l=V.width-e,a=V.height-e*(r.showBase?.8:1),i=.1*l+a*t*.05,o=a-.1*l*2;return Rl({shape:r.shape,width:l,height:a,topMargin:i,maxHeight:o,percent:w.value<=100?w.value:100,viewDeep:r.viewDeep-r.viewDeep*t})})),M=NA({aniPct:w,aniVal:x,state:V,props:r,debut:m,emit:A});Z((()=>[r.value,r.initHold]),(()=>{r.initHold||M(S.value)})),Z((()=>o.value),((e,t)=>{if("root"!=s.value(r.resizeObserver))return;const{clientWidth:l,clientHeight:a}=b.value;e>t&&P({width:l,height:a})}));const P=async({width:e,height:t})=>{y.value=!0,V.width=e,V.height=t,g.value||(g.value=!0),await ye(),setTimeout((()=>{y.value=!1}),500)};Z((()=>[r.barColorRatio,r.barColor]),(()=>{D("bar")})),Z((()=>[r.baseColorRatio,r.baseColor]),(()=>{D("base")}));const D=e=>{"bar"===e?oa(V.barColorGroup):"base"===e&&oa(V.baseColorGroup)},_=u((()=>{const e=Vi({settled:V.dustSettled,customBarColor:r.barColor,explicitStatus:r.status,thresholds:r.thresholds,currentValue:x.value,fallbackStatus:k.value});return e&&"custom"!==e&&(k.value=e),e})),E=u((()=>{const e=!!r.barColor&&"custom",t=_.value||e||r.status||k.value;let l;if("custom"!==t)if(t&&"normal"!==t&&"critical"!==t)l=a.value[t]?.base;else if("critical"===t){const e="light"==i.value?"stronger":"weaker";l=a.value.danger[e]}else l=a.value.primary?.base;else l=r.barColor;let o,n=null;if(l){if(V.barColorGroup[t]?o=V.barColorGroup[t]:(o=ut.genColors(l,3,r.barColorRatio,!1),V.barColorGroup[t]=o),r.showBase&&!r.baseColorWeakened)if(V.baseColorGroup[t])n=V.baseColorGroup[t];else{if(r.baseColor)n=ut.genColors(r.baseColor,3,r.barColorRatio/1.5,!1);else{const e=ut.darken(l,r.baseColorRatio);n=ut.genColors(e,3,r.barColorRatio/1.5,!1)}V.baseColorGroup[t]=n}return{bar:o,base:n}}})),j=u((()=>V.height-z.value-50-.1*r.viewDeep)),L=u((()=>{const e=E.value||{};return $e("cpt-b3d",{...e.bar&&{barGrad_A:e.bar[0],barGrad_B:e.bar[1],barGrad_C:e.bar[2]},...e.base&&{basGrad_A:e.base[0],basGrad_B:e.base[1],basGrad_C:e.base[2]},...q("valFs",r.valueSize,"px"),...q("gapFix",r.gap/2,{append:"px",when:r.gap&&r.showTrack}),...q("baseFix",-r.baseSpacing,{append:"px",when:r.baseSpacing}),valTop:j.value+"px",viewDeep:r.viewDeep/(r.showBase?1:1.6)+"px"})}));return Be((()=>{v.value=!0,r.value&&!r.initHold&&qe.s("pgsPool3D"+c,(()=>{M(S.value)}),r.aniDelay)})),t({inited:g.value&&m.value}),(e,t)=>{const l=ke("TuiTextTip"),a=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["tui-bar-3d",`is-${_.value||k.value}`]),style:we(L.value)},[Re((d(),h("div",{class:"tui-b3d-svg-wrap",ref_key:"svgWrapRef",ref:b},[f("div",OA,[me(Ue,{name:"fade"},{default:G((()=>[g.value?(d(),h("svg",{key:0,class:"tui-b3d-svg",width:V.width,height:V.height,viewBox:`0 0 ${V.width} ${V.height}`},[f("defs",null,[f("radialGradient",{class:"tui-b3d-grad-bar-top",id:`gradBarTop_${p(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[0]||(t[0]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,MA),f("linearGradient",{class:"tui-b3d-grad-shine",id:`gradShine_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[1]||(t[1]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,_A),f("linearGradient",{class:"tui-b3d-grad-bar-cyde",id:`gradBarCyde_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[2]||(t[2]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,EA),f("linearGradient",{class:"tui-b3d-grad-bar-cube-side-A",id:`gradBarCubeSideA_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[3]||(t[3]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,LA),f("linearGradient",{class:"tui-b3d-grad-bar-cube-side-B",id:`gradBarCubeSideB_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[4]||(t[4]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,FA),e.showTrack?(d(),h("g",jA,[f("radialGradient",{class:"tui-b3d-grad-trk-top",id:`gradTrkTop_${p(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[5]||(t[5]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,WA),f("linearGradient",{class:"tui-b3d-grad-trk-cyde",id:`gradTrkCyde_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[6]||(t[6]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,GA),f("linearGradient",{class:"tui-b3d-grad-trk-cube-side-A",id:`gradTrkCubeSideA_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[7]||(t[7]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1)])],8,HA),f("linearGradient",{class:"tui-b3d-grad-trk-cube-side-B",id:`gradTrkCubeSideB_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[8]||(t[8]=[f("stop",{offset:"0%"},null,-1)])],8,KA)])):T("",!0),e.showBase?(d(),h("g",UA,[f("linearGradient",{class:O(["tui-b3d-grad-bas-cube-side-A",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideA_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[9]||(t[9]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1)])],10,YA),f("radialGradient",{class:O(["tui-b3d-grad-bas-top",{"is-weakened":r.baseColorWeakened}]),id:`gradBasTop_${p(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[10]||(t[10]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],10,QA),f("linearGradient",{class:O(["tui-b3d-grad-bas-cyde",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCyde_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[11]||(t[11]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1),f("stop",{offset:"100%"},null,-1)])],10,XA),f("linearGradient",{class:O(["tui-b3d-grad-bas-cube-side-B",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideB_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[12]||(t[12]=[f("stop",{offset:"0%"},null,-1)])],10,ZA)])):T("",!0),"cube"===e.shape?(d(),h("g",JA,[f("polygon",{id:`shapeCubeSideA_${p(c)}`,points:I.value.sideA},null,8,ef),f("polygon",{id:`shapeCubeSideB_${p(c)}`,points:I.value.sideB},null,8,tf),f("clipPath",{id:`shapeClip_${p(c)}`},[f("use",{href:`#shapeCubeSideA_${p(c)}`},null,8,nf)],8,lf)])):(d(),h("g",af,[f("path",{id:`shapeCyde_${p(c)}`,d:I.value.body},null,8,of),f("clipPath",{id:`shapeClip_${p(c)}`},[f("use",{href:`#shapeCyde_${p(c)}`},null,8,rf)],8,sf)])),e.showTrack?(d(),h("filter",{key:4,id:`blurTrk_${p(c)}`},[f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.trackBlur},null,8,cf)],8,uf)):T("",!0),e.showBase?(d(),h("filter",{key:5,id:`blurBas_${p(c)}`},[f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.baseBlur},null,8,Af)],8,df)):T("",!0),f("filter",{id:`blurBar_${p(c)}`},[f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.barBlur},null,8,pf)],8,ff)]),e.showBase?(d(),h("g",{key:0,class:"tui-b3d-base",opacity:e.baseOpacity,filter:`url(#blurBas_${p(c)})`},["cylinder"===e.shape?(d(),h(ge,{key:0},[f("path",{d:R.value.body,fill:`url(#gradBasCyde_${p(c)})`,stroke:"none"},null,8,vf),f("ellipse",{cx:R.value.top.cx,cy:R.value.top.cy,rx:R.value.top.rx,ry:R.value.top.ry,fill:`url(#gradBasTop_${p(c)})`,stroke:"none"},null,8,hf)],64)):(d(),h(ge,{key:1},[f("polygon",{points:R.value.sideA,fill:`url(#gradBasCubeSideA_${p(c)})`,stroke:"none"},null,8,mf),f("polygon",{points:R.value.sideB,fill:`url(#gradBasCubeSideB_${p(c)})`,stroke:"none"},null,8,yf),f("polygon",{points:R.value.top,fill:`url(#gradBasTop_${p(c)})`,stroke:"none"},null,8,bf)],64))],8,gf)):T("",!0),f("g",{class:"tui-b3d-ani tui-b3d-ele",opacity:e.barOpacity,filter:`url(#blurBar_${p(c)})`},["cylinder"===e.shape?(d(),h(ge,{key:0},[w.value>0?(d(),h("use",{key:0,href:`#shapeCyde_${p(c)}`,fill:`url(#gradBarCyde_${p(c)})`,stroke:"none"},null,8,wf)):T("",!0),w.value>0?(d(),h("ellipse",{key:1,cx:I.value.top.cx,cy:I.value.top.cy,rx:I.value.top.rx,ry:I.value.top.ry,fill:`url(#gradBarTop_${p(c)})`,stroke:"none",class:"tui-b3d-top"},null,8,Cf)):T("",!0)],64)):(d(),h(ge,{key:1},[w.value>0?(d(),h("use",{key:0,href:`#shapeCubeSideA_${p(c)}`,fill:`url(#gradBarCubeSideA_${p(c)})`,stroke:"none"},null,8,Tf)):T("",!0),w.value>0?(d(),h("use",{key:1,href:`#shapeCubeSideB_${p(c)}`,fill:`url(#gradBarCubeSideB_${p(c)})`,stroke:"none"},null,8,Sf)):T("",!0),w.value>0?(d(),h("polygon",{key:2,points:I.value.top,fill:`url(#gradBarTop_${p(c)})`,stroke:"none",class:"tui-b3d-top"},null,8,$f)):T("",!0)],64)),w.value>0?(d(),h("rect",{key:2,x:V.width/4,y:e.viewDeep/1.5,width:V.width/4,height:V.height,fill:`url(#gradShine_${p(c)})`,stroke:"none","clip-path":`url(#shapeClip_${p(c)})`,rx:"2",ry:"2"},null,8,kf)):T("",!0)],8,Vf),e.iconsSymbol?(d(),h("text",{key:1,x:V.width/2,"text-anchor":"middle",class:"tui-icon tui-icon-in-svg"},X(C.value),9,qf)):T("",!0),e.showTrack?(d(),h("g",{key:2,class:"tui-b3d-trk",opacity:e.trackOpacity,filter:`url(#blurTrk_${p(c)})`},["cylinder"===e.shape?(d(),h(ge,{key:0},[f("path",{d:N.value.body,fill:`url(#gradTrkCyde_${p(c)})`,stroke:"none"},null,8,Pf),f("ellipse",{cx:N.value.top.cx,cy:N.value.top.cy,rx:N.value.top.rx,ry:N.value.top.ry,fill:`url(#gradTrkTop_${p(c)})`,stroke:"none"},null,8,Bf)],64)):(d(),h(ge,{key:1},[f("polygon",{points:N.value.sideA,fill:`url(#gradTrkCubeSideA_${p(c)})`,stroke:"none"},null,8,zf),f("polygon",{points:N.value.sideB,fill:`url(#gradTrkCubeSideB_${p(c)})`,stroke:"none"},null,8,Rf),f("polygon",{points:N.value.top,fill:`url(#gradTrkTop_${p(c)})`,stroke:"none"},null,8,Nf)],64))],8,xf)):T("",!0)],8,DA)):T("",!0)])),_:1}),B.value.mainUnit?(d(),h("div",{key:0,class:O(["tui-b3d-val",{"is-top":"top"==e.mainValuePosition}])},[f("span",If,X(B.value.mainVal),1),f("span",Of,X(B.value.mainUnit),1)],2)):T("",!0)])])),[[a,{callback:P,uid:p(c),disabled:"self"!=p(s)(e.resizeObserver)&&g.value}]]),f("div",Df,[B.value.subUnit?(d(),h("div",Mf,[f("span",_f,X(B.value.subVal),1),f("span",Ef,X(B.value.subUnit),1)])):T("",!0),f("div",Lf,[me(l,null,{default:G((()=>[We(X(e.label),1)])),_:1})])])],6),[[Ye,v.value]])])),_:1})}}}),Wf=["title","onMouseenter","onMouseleave"],Gf={class:"tui-pleg-label"},Hf={class:"tui-pleg-value"},wi={__name:"legend",props:{items:{type:Array,default:()=>[]},activeIndex:Number,layout:{type:String,default:"row",validator:e=>["row","column"].includes(e)},clickable:{type:Boolean,default:!1},width:[Number,String]},emits:["itemHover","itemLeave"],setup(e,{emit:t}){const l=e,a=t,i=u((()=>null==l.width||""===l.width?null:{width:"number"==typeof l.width?`${l.width}px`:l.width}));return(t,l)=>e.items.length>0?(d(),h("div",{key:0,class:O(["tui-pie-legend",`is-${e.layout}`,{"is-clickable":e.clickable,"has-fixed-width":!!i.value}])},[(d(!0),h(ge,null,Fe(e.items,(t=>(d(),h("div",{class:O(["tui-pleg-item",{active:e.activeIndex===t.index}]),key:t.label,style:we(i.value),title:i.value?t.label:null,onMouseenter:e=>((e,t,l)=>{a("itemHover",{item:e,index:t,event:l})})(t,t.index,e),onMouseleave:e=>((e,t,l)=>{a("itemLeave",{item:e,index:t,event:l})})(t,t.index,e)},[f("span",{class:"tui-pleg-color",style:we({backgroundColor:t.color})},null,4),f("span",Gf,X(t.label),1),f("span",Hf,X(t.value.toLocaleString()),1)],46,Wf)))),128))],2)):T("",!0)}},Kf={class:"tui-stb3d-main"},Uf={class:"tui-stb3d-visual"},Yf={class:"tui-b3d-svg-inner"},Qf=["width","height","viewBox"],Xf={key:0},Zf=["id"],Jf=["id"],ep=["id"],tp=["id"],lp={key:1},np=["id"],ap=["id"],op=["id"],ip=["id"],sp=["id"],rp=["stop-color"],up=["stop-color"],cp=["id"],dp=["stop-color"],Ap=["stop-color"],fp=["stop-color"],pp=["id"],gp=["stop-color"],vp=["stop-color"],hp=["id"],mp=["stop-color"],yp=["stop-color"],bp=["id"],Vp=["stdDeviation"],wp=["id"],Cp=["stdDeviation"],Tp=["id"],Sp=["stdDeviation"],$p=["opacity","filter"],kp=["d","fill"],qp=["cx","cy","rx","ry","fill"],xp=["points","fill"],Pp=["points","fill"],Bp=["points","fill"],zp=["opacity","filter"],Rp=["transform","opacity"],Np=["d","fill","onMouseover","onClick"],Ip=["cx","cy","rx","ry","fill","onMouseover","onClick"],Op=["points","fill","onMouseover","onClick"],Dp=["points","fill","onMouseover","onClick"],Mp=["points","fill","onMouseover","onClick"],_p=["x"],Ep=["opacity","filter"],Lp=["d","fill"],Fp=["cx","cy","rx","ry","fill"],jp=["points","fill"],Wp=["points","fill"],Gp=["points","fill"],Hp={class:"tui-b3d-value"},Kp={class:"tui-b3d-unit"},Up={class:"tui-b3d-label"},Yp={key:0,class:"tui-b3d-subval"},Qp={class:"tui-b3d-subval-text"},Xp={class:"tui-b3d-unit"},Zp={class:"tui-b3d-label-text"},Jp=Object.assign({name:"TuiStackBar3D"},{__name:"stack",props:zA,emits:["inited","itemClick"],setup(e,{expose:t,emit:l}){const{$themePalette:a,$gThemeScheme:i,$optResizeCounter:o,initResizeBy:n}=ze("$global",null),s=n(),r=e,A=l,c=Ee("stackBar3D"),g=$(!1),v=$(!1),m=$(!1),y=$(!1),b=$(!1),V=$(null),w=je({width:100,height:200,dustSettled:!1,hovSegmentIdx:null,hovLegendIdx:null,barColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null},baseColorGroup:{normal:null,success:null,danger:null,warning:null,emphasis:null,critical:null,custom:null}}),x=$(0),k=$(0),S=$("normal"),C=u((()=>(r.segments||[]).reduce(((e,t)=>e+(Number(t?.value)||0)),0))),B=u((()=>r.maxValue||C.value||100)),z=u((()=>Ca({value:C.value,maxValue:B.value}))),N=u((()=>{const e=[a.value?.primary?.base,a.value?.success?.base,a.value?.warning?.base,a.value?.danger?.base,a.value?.emphasis?.base,a.value?.primary?.weaker].filter(Boolean);return e.length?e:[ut.pri5,ut.suc5,ut.war5,ut.dan5,ut.rsa5,ut.cya5]})),R=u((()=>bi({displayValue:r.displayValue,precision:r.precision,aniPct:x.value,aniVal:k.value,maxValue:r.maxValue,unit:r.unit,dustSettled:w.dustSettled}))),I=u((()=>(r.segments||[]).map(((e,t)=>({index:t,label:e?.label||`Segment${t+1}`,value:Number(e?.value)||0,color:e?.color||N.value[t%N.value.length]||"#5aa6ff"}))))),M=u((()=>["left","right"].includes(r.legendPosition)?"column":"row")),P=u((()=>{if(!m.value||!r.legendTeleportTo)return null;if("string"==typeof r.legendTeleportTo)return typeof document<"u"?document.querySelector(r.legendTeleportTo):null;const e=p(r.legendTeleportTo);return 1===e?.nodeType?e:null})),D=u((()=>!!P.value)),_=u((()=>w.hovSegmentIdx??w.hovLegendIdx??null)),E=u((()=>{const e=r.showTrack?r.gap:0,t=w.width?e/w.width:0,l=w.width-e,a=w.height-e*(r.showBase?.8:1);return{gap:e,width:l,height:a,topMargin:.1*l+a*t*.05,maxHeight:a-.1*l*2,viewDeep:r.viewDeep-r.viewDeep*t}})),j=u((()=>{const e=Math.min(x.value,100)/100*E.value.maxHeight;return w.height-e-50-.1*r.viewDeep})),L=u((()=>{if(!r.showTrack)return;const e=.1*w.width,t=w.height-.1*w.width*2;return Rl({shape:r.shape,width:w.width,height:w.height,topMargin:e,maxHeight:t,percent:100,viewDeep:r.viewDeep})})),F=u((()=>{if(!r.showBase)return;const e=r.baseSpacing/w.width,t=.1*w.width+.05*w.height-4,l=w.height-.1*w.width*2;return Rl({shape:r.shape,width:w.width+2*r.baseSpacing,height:w.height,topMargin:t,maxHeight:l,percent:5,viewDeep:r.viewDeep+r.viewDeep*e*2})})),W=u((()=>IA({segments:r.segments,aniPct:Math.min(x.value,100),maxValue:B.value,maxHeight:E.value.maxHeight,shape:r.shape,width:E.value.width,height:E.value.height,topMargin:E.value.topMargin,viewDeep:E.value.viewDeep,colorRatio:r.barColorRatio,palette:N.value,gap:r.segmentGap}))),H=e=>{const t=Number(e?.value)||0,l=(e=>{const t=Number(e?.value)||0;return C.value?t/C.value*100:0})(e),a=r.precision>0?t.toFixed(r.precision):String(Math.round(t)),i=r.precision>0?l.toFixed(r.precision):String(Math.round(l));return`${e?.label||"Segment"}: ${a}${r.unit||""} (${i}%)`},U=e=>null==_.value||_.value===e?1:r.inactiveOpacity,Y=e=>{w.hovSegmentIdx=e.index},Q=()=>{w.hovSegmentIdx=null},K=({index:e})=>{w.hovLegendIdx=e},J=()=>{w.hovLegendIdx=null},ee=(e,t)=>{r.clickable&&A("itemClick",{event:t,data:r.segments?.[e.index]||e,index:e.index})};Z((()=>[r.segments,r.initHold,r.maxValue]),(()=>{r.initHold||ro({aniPct:x,aniVal:k,state:w,duration:r.duration,targetValue:C.value,targetPct:z.value,debut:y,emit:A,index:r.index})()}),{deep:!0}),Z((()=>o.value),((e,t)=>{if("root"!=s.value(r.resizeObserver)||!V.value)return;const{clientWidth:l,clientHeight:a}=V.value;e>t&&te({width:l,height:a})}));const te=async({width:e,height:t})=>{b.value=!0,w.width=e,w.height=t,g.value||(g.value=!0),await ye(),setTimeout((()=>{b.value=!1}),500)},ae=async()=>{if(await ye(),!V.value)return;const{clientWidth:e,clientHeight:t}=V.value;!e||!t||te({width:e,height:t})};Z((()=>[r.showLegend,r.legendPosition,r.legendTeleportTo]),(()=>{ae()})),Z((()=>I.value.length),(()=>{ae()})),Z((()=>[r.baseColorRatio,r.baseColor]),(()=>{oa(w.baseColorGroup)}));const ie=u((()=>{const e=Vi({settled:w.dustSettled,customBarColor:!1,explicitStatus:r.status,thresholds:r.thresholds,currentValue:k.value,fallbackStatus:S.value});return e&&"custom"!==e&&(S.value=e),e})),oe=u((()=>{const e=ie.value||r.status||S.value;let t;if(r.baseColor)t=r.baseColor;else if(e&&"normal"!==e&&"critical"!==e)t=a.value[e]?.base;else if("critical"===e){const e="light"==i.value?"stronger":"weaker";t=a.value.danger[e]}else t=a.value.primary?.base;if(!t||!r.showBase||r.baseColorWeakened)return null;if(w.baseColorGroup[e])return w.baseColorGroup[e];const l=ut.darken(t,r.baseColorRatio),o=ut.genColors(l,3,r.barColorRatio/1.5,!1);return w.baseColorGroup[e]=o,o})),ne=u((()=>{const e=oe.value||[];return $e("cpt-b3d",{...e.length&&{basGrad_A:e[0],basGrad_B:e[1],basGrad_C:e[2]},...q("valFs",r.valueSize,"px"),...q("gapFix",r.gap/2,{append:"px",when:r.gap&&r.showTrack}),...q("baseFix",-r.baseSpacing,{append:"px",when:r.baseSpacing}),valTop:j.value+"px",viewDeep:r.viewDeep/(r.showBase?1:1.6)+"px"})}));return Be((async()=>{v.value=!0,await ye(),m.value=!0,C.value&&!r.initHold&&qe.s("stackPgsPool3D"+c,(()=>{ro({aniPct:x,aniVal:k,state:w,duration:r.duration,targetValue:C.value,targetPct:z.value,debut:y,emit:A,index:r.index})()}),r.aniDelay)})),t({inited:g.value&&y.value}),(e,t)=>{const l=ke("TuiTextTip"),a=Je("tui-cursor-tip"),i=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["tui-stack-bar-3d","tui-bar-3d",`is-${ie.value||S.value}`,`is-legend-${e.legendPosition}`,{"is-clickable":r.clickable}]),style:we(ne.value)},[f("div",Kf,[f("div",Uf,[Re((d(),h("div",{class:"tui-b3d-svg-wrap",ref_key:"visualRef",ref:V},[f("div",Yf,[me(Ue,{name:"fade"},{default:G((()=>[g.value?(d(),h("svg",{key:0,class:"tui-b3d-svg",width:w.width,height:w.height,viewBox:`0 0 ${w.width} ${w.height}`},[f("defs",null,[e.showTrack?(d(),h("g",Xf,[f("radialGradient",{class:"tui-b3d-grad-trk-top",id:`gradTrkTop_${p(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[0]||(t[0]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,Zf),f("linearGradient",{class:"tui-b3d-grad-trk-cyde",id:`gradTrkCyde_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[1]||(t[1]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,Jf),f("linearGradient",{class:"tui-b3d-grad-trk-cube-side-A",id:`gradTrkCubeSideA_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[2]||(t[2]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1)])],8,ep),f("linearGradient",{class:"tui-b3d-grad-trk-cube-side-B",id:`gradTrkCubeSideB_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[3]||(t[3]=[f("stop",{offset:"0%"},null,-1)])],8,tp)])):T("",!0),e.showBase?(d(),h("g",lp,[f("linearGradient",{class:O(["tui-b3d-grad-bas-cube-side-A",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideA_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[4]||(t[4]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1)])],10,np),f("radialGradient",{class:O(["tui-b3d-grad-bas-top",{"is-weakened":r.baseColorWeakened}]),id:`gradBasTop_${p(c)}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[...t[5]||(t[5]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],10,ap),f("linearGradient",{class:O(["tui-b3d-grad-bas-cyde",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCyde_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[6]||(t[6]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"50%"},null,-1),f("stop",{offset:"100%"},null,-1)])],10,op),f("linearGradient",{class:O(["tui-b3d-grad-bas-cube-side-B",{"is-weakened":r.baseColorWeakened}]),id:`gradBasCubeSideB_${p(c)}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[...t[7]||(t[7]=[f("stop",{offset:"0%"},null,-1)])],10,ip)])):T("",!0),(d(!0),h(ge,null,Fe(W.value,(e=>(d(),h(ge,{key:`grad_${e.index}`},[f("radialGradient",{id:`gradSegTop_${p(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"0%",y2:"100%"},[f("stop",{offset:"0%","stop-color":e.colors[1]},null,8,rp),f("stop",{offset:"100%","stop-color":e.colors[0]},null,8,up)],8,sp),f("linearGradient",{id:`gradSegCyde_${p(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[f("stop",{offset:"0%","stop-color":e.colors[0]},null,8,dp),f("stop",{offset:"50%","stop-color":e.colors[1]},null,8,Ap),f("stop",{offset:"100%","stop-color":e.colors[2]},null,8,fp)],8,cp),f("linearGradient",{id:`gradSegCubeSideA_${p(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[f("stop",{offset:"0%","stop-color":e.colors[1]},null,8,gp),f("stop",{offset:"100%","stop-color":e.colors[0]},null,8,vp)],8,pp),f("linearGradient",{id:`gradSegCubeSideB_${p(c)}_${e.index}`,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},[f("stop",{offset:"0%","stop-color":e.colors[1]},null,8,mp),f("stop",{offset:"100%","stop-color":e.colors[2]},null,8,yp)],8,hp)],64)))),128)),e.showTrack?(d(),h("filter",{key:2,id:`blurTrk_${p(c)}`},[f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.trackBlur},null,8,Vp)],8,bp)):T("",!0),e.showBase?(d(),h("filter",{key:3,id:`blurBas_${p(c)}`},[f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.baseBlur},null,8,Cp)],8,wp)):T("",!0),f("filter",{id:`blurBar_${p(c)}`},[f("feGaussianBlur",{in:"SourceGraphic",stdDeviation:r.barBlur},null,8,Sp)],8,Tp)]),e.showBase?(d(),h("g",{key:0,class:"tui-b3d-base",opacity:e.baseOpacity,filter:`url(#blurBas_${p(c)})`},["cylinder"===e.shape?(d(),h(ge,{key:0},[f("path",{d:F.value.body,fill:`url(#gradBasCyde_${p(c)})`,stroke:"none"},null,8,kp),f("ellipse",{cx:F.value.top.cx,cy:F.value.top.cy,rx:F.value.top.rx,ry:F.value.top.ry,fill:`url(#gradBasTop_${p(c)})`,stroke:"none"},null,8,qp)],64)):(d(),h(ge,{key:1},[f("polygon",{points:F.value.sideA,fill:`url(#gradBasCubeSideA_${p(c)})`,stroke:"none"},null,8,xp),f("polygon",{points:F.value.sideB,fill:`url(#gradBasCubeSideB_${p(c)})`,stroke:"none"},null,8,Pp),f("polygon",{points:F.value.top,fill:`url(#gradBasTop_${p(c)})`,stroke:"none"},null,8,Bp)],64))],8,$p)):T("",!0),f("g",{class:"tui-b3d-ani tui-b3d-ele",opacity:e.barOpacity,filter:`url(#blurBar_${p(c)})`},[(d(!0),h(ge,null,Fe(W.value,(t=>Re((d(),h("g",{key:t.index,transform:`translate(0, ${t.translateY})`,opacity:U(t.index)},["cylinder"===e.shape?(d(),h(ge,{key:0},[Re(f("path",{d:t.path.body,fill:`url(#gradSegCyde_${p(c)}_${t.index})`,stroke:"none",onMouseover:e=>Y(t),onMouseleave:Q,style:we({cursor:r.clickable?"pointer":"default"}),onClick:e=>ee(t,e)},null,44,Np),[[a,{content:H(t)}]]),Re(f("ellipse",{cx:t.path.top.cx,cy:t.path.top.cy,rx:t.path.top.rx,ry:t.path.top.ry,fill:`url(#gradSegTop_${p(c)}_${t.index})`,stroke:"none",class:"tui-b3d-top",onMouseover:e=>Y(t),onMouseleave:Q,style:we({cursor:r.clickable?"pointer":"default"}),onClick:e=>ee(t,e)},null,44,Ip),[[a,{content:H(t)}]])],64)):(d(),h(ge,{key:1},[Re(f("polygon",{points:t.path.sideA,fill:`url(#gradSegCubeSideA_${p(c)}_${t.index})`,stroke:"none",onMouseover:e=>Y(t),onMouseleave:Q,style:we({cursor:r.clickable?"pointer":"default"}),onClick:e=>ee(t,e)},null,44,Op),[[a,{content:H(t)}]]),Re(f("polygon",{points:t.path.sideB,fill:`url(#gradSegCubeSideB_${p(c)}_${t.index})`,stroke:"none",onMouseover:e=>Y(t),onMouseleave:Q,style:we({cursor:r.clickable?"pointer":"default"}),onClick:e=>ee(t,e)},null,44,Dp),[[a,{content:H(t)}]]),Re(f("polygon",{points:t.path.top,fill:`url(#gradSegTop_${p(c)}_${t.index})`,stroke:"none",class:"tui-b3d-top",onMouseover:e=>Y(t),onMouseleave:Q,style:we({cursor:r.clickable?"pointer":"default"}),onClick:e=>ee(t,e)},null,44,Mp),[[a,{content:H(t)}]])],64))],8,Rp)),[[Ye,t.visible]]))),128))],8,zp),e.iconsSymbol?(d(),h("text",{key:1,x:w.width/2,"text-anchor":"middle",class:"tui-icon tui-icon-in-svg"},X(String.fromCharCode(parseInt(e.iconsSymbol,16))),9,_p)):T("",!0),e.showTrack?(d(),h("g",{key:2,class:"tui-b3d-trk",opacity:e.trackOpacity,filter:`url(#blurTrk_${p(c)})`},["cylinder"===e.shape?(d(),h(ge,{key:0},[f("path",{d:L.value.body,fill:`url(#gradTrkCyde_${p(c)})`,stroke:"none"},null,8,Lp),f("ellipse",{cx:L.value.top.cx,cy:L.value.top.cy,rx:L.value.top.rx,ry:L.value.top.ry,fill:`url(#gradTrkTop_${p(c)})`,stroke:"none"},null,8,Fp)],64)):(d(),h(ge,{key:1},[f("polygon",{points:L.value.sideA,fill:`url(#gradTrkCubeSideA_${p(c)})`,stroke:"none"},null,8,jp),f("polygon",{points:L.value.sideB,fill:`url(#gradTrkCubeSideB_${p(c)})`,stroke:"none"},null,8,Wp),f("polygon",{points:L.value.top,fill:`url(#gradTrkTop_${p(c)})`,stroke:"none"},null,8,Gp)],64))],8,Ep)):T("",!0)],8,Qf)):T("",!0)])),_:1}),R.value.mainUnit?(d(),h("div",{key:0,class:O(["tui-b3d-val",{"is-top":"top"==e.mainValuePosition}])},[f("span",Hp,X(R.value.mainVal),1),f("span",Kp,X(R.value.mainUnit),1)],2)):T("",!0)])])),[[i,{callback:te,uid:p(c),disabled:"self"!=p(s)(e.resizeObserver)&&g.value}]]),f("div",Up,[R.value.subUnit?(d(),h("div",Yp,[f("span",Qp,X(R.value.subVal),1),f("span",Xp,X(R.value.subUnit),1)])):T("",!0),f("div",Zp,[me(l,null,{default:G((()=>[We(X(e.label),1)])),_:1})])])]),e.showLegend&&I.value.length?(d(),le(Lt,{key:0,to:P.value||"body",disabled:!D.value},[me(wi,{class:"tui-stb3d-legend",items:I.value,"active-index":_.value,layout:M.value,width:r.legendWidth,onItemHover:K,onItemLeave:J},null,8,["items","active-index","layout","width"])],8,["to","disabled"])):T("",!0)])],6),[[Ye,v.value]])])),_:1})}}}),eg=(e,t,l="358")=>{const a=ct.get1stParent(e,".tui-3d-panel");if(!a)return;if(Ul.has(a,"is-3doff"))return;if(!(e&&e instanceof HTMLElement&&"string"==typeof t&&""!==t.trim()))return;const i=e.querySelector("svg");if(!i)return;const o="pathG"+t,n=i.querySelector(`g#${CSS.escape(o)}`);n&&i.removeChild(n);const s=i.querySelectorAll("path"),r=[];if(s.forEach((e=>{const t=e.getAttribute("stroke-width");null!=t&&""!==t.trim()&&String(t).includes(l)&&r.push(e)})),r.length>0){const e=document.createElementNS("http://www.w3.org/2000/svg","g");e.setAttribute("id",o),r.forEach((t=>{const l=t.getAttribute("fill"),a=t.getAttribute("stroke");t.setAttribute("class","tui-ech-ori-svg");const i=t.cloneNode(!0);i.setAttribute("class","t3d-shadow-item"),i.setAttribute("style",`--tui-3dp-thick-color:${ut.darken("none"!=l?l:a,2.5)}`),e.appendChild(i)})),i.insertBefore(e,i.firstChild)}},tg=e=>{const t="pathG"+e,l=ct.el(`#${t}`);l&&l.remove()},Ol="$theme.",Ql="$theme:",Xl="$scheme:",lg=new Set(["data","links","nodes","edges","features","coordinates","coords"]),ng=e=>e&&"object"==typeof e&&"value"in e,uo=e=>ng(e)?e.value:e,Ci=(e="")=>e.toLowerCase().includes("color"),ag=e=>e.includes(Ol)||e.includes(Ql)||e.includes(Xl),og=(e,t,l="")=>ag(e)&&(t.inColorField||Ci(l)),Ti=(e,t)=>{let l=0,a=0,i=0;for(let o=0;o<e.length;o++){const n=e[o];if("("===n)l++;else if(")"===n)l=Math.max(0,l-1);else if("{"===n)a++;else if("}"===n)a=Math.max(0,a-1);else if("["===n)i++;else if("]"===n)i=Math.max(0,i-1);else if(n===t&&0===l&&0===a&&0===i)return[e.slice(0,o),e.slice(o+1)]}return[e,""]},ig=(e,t=",")=>{const l=[];let a=0,i=0,o=0,n=0;for(let s=0;s<e.length;s++){const r=e[s];"("===r?a++:")"===r?a=Math.max(0,a-1):"{"===r?i++:"}"===r?i=Math.max(0,i-1):"["===r?o++:"]"===r?o=Math.max(0,o-1):r===t&&0===a&&0===i&&0===o&&(l.push(e.slice(n,s).trim()),n=s+1)}return l.push(e.slice(n).trim()),l.filter(Boolean)},sg=e=>{const t=e.trim();return t.startsWith("{")&&t.endsWith("}")?t.slice(1,-1).trim():t},rg=e=>{const t=sg(e);return ig(t).reduce(((e,t)=>{const[l,a]=Ti(t,":"),i=l.trim();return!i||!a||(e[i]=a.trim()),e}),{})},Si=(e,t)=>{console.warn(`[TuiEcharts theme option] ${e}`,t)},$i=(e,t)=>{const[l,a]=Ti(e,"|"),i=l.trim(),o=t.$tc?.(i);return o?a?ut.expr(`${o}|${a.trim()}`):o:(Si(`Theme color path "${i}" was not found.`,e),`${Ol}${e}`)},ug=(e,t)=>{const l=e.trim();return l.startsWith(Ol)?$i(l.slice(Ol.length),t):l.startsWith(Ql)||l.startsWith(Xl)?ki(l,t):ut.expr(l)},co=(e,t,l,a)=>{const i=rg(e),o=i[t]??i.default;return void 0===o?(Si(`No matching key "${t}" or "default" in ${a}.`,i),`${a}${e}`):ug(o,l)},ki=(e,t={})=>{if("string"!=typeof e)return e;const l=e.trim();return l.startsWith(Ol)?$i(l.slice(Ol.length),t):l.startsWith(Xl)?co(l.slice(Xl.length),uo(t.themeScheme),t,Xl):l.startsWith(Ql)?co(l.slice(Ql.length),uo(t.theme),t,Ql):e},cg=(e,t)=>!t.scanData&&lg.has(e),ia=(e,t,l="")=>{if("string"==typeof e)return og(e,t,l)?ki(e,t):e;if(!e||"object"!=typeof e||"function"==typeof e||cg(l,t))return e;const a=t.inColorField||Ci(l)?{...t,inColorField:!0}:t;if(Array.isArray(e)){let t=!1;const l=e.map((e=>{const l=ia(e,a);return l!==e&&(t=!0),l}));return t?l:e}const i=Object.getPrototypeOf(e),o=i===Object.prototype||null===i?{}:Object.create(i);let n=!1;return Object.keys(e).forEach((t=>{const l=e[t],i=ia(l,a,t);o[t]=i,i!==l&&(n=!0)})),n?o:e},qi=(e,t={})=>t.enabled?ia(e,{...t,inColorField:!1}):e,dg="TuiEcharts",Ag=Object.assign({name:dg,inheritAttrs:!1},{__name:"chart",props:{width:[Number,String],height:[Number,String],chartOption:{type:Object,required:!0},initOptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:null},useLoader:{type:Boolean,default:!0},initT3DShadow:{type:Boolean,default:!1},t3DShadowUpdate:{type:String,default:"finished",validator:e=>["rendered","finished"].includes(e)},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas"].includes(e)},ready:{type:Boolean,default:!1},dataOpacity:Number,dataBlur:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},themeToken:{type:Boolean,default:!0},themeTokenScanData:{type:Boolean,default:!1}},emits:["chartClick","chartDblClick","chartMouseDown","chartMouseUp","chartMouseOver","chartGlobalOut","chartInit","chartReady","chartRendered","chartFinished","chartThemeChanged","update:loading"],setup(e,{expose:t,emit:l}){const a=ze("$global",null),{$gT3D:i,$gTheme:o,$gThemeScheme:n,$gEchartsThemeInited:s,$optResizeCounter:r,initResizeBy:A,$echarts:c,$tc:g}=a||{},v=A(),h=fa({name:"TuiPassThrough",setup:(e,{slots:t})=>()=>t.default?.()}),m=ke("TuiLoaderPanel"),y=Ll(),b=Ee("echart"),V=e,w=l,x=$(null),k=Go(null),S=je({loading:!0,inited:!1,resizing:!0}),T=u({get:()=>V.loading??S.loading,set:e=>{null!==V.loading?w("update:loading",e):S.loading=e}}),C=u((()=>V.useLoader?m:h)),B=u((()=>V.useLoader?{loading:T.value,inited:S.inited}:{})),z=(e=V.chartOption)=>qi(e,{enabled:V.themeToken,scanData:V.themeTokenScanData,theme:o,themeScheme:n,$tc:g}),O=async()=>{if(x.value)try{if(M(),k.value||!c)return;await ye(),k.value=c.init(x.value,"eTheme",{...V.initOptions,renderer:V.initT3DShadow?"svg":V.renderer}),w("chartInit",k.value),k.value.setOption(z()),N(),await ye(),k.value&&(w("chartReady",k.value),T.value=!1)}catch(e){console.error("ECharts initialization failed:",e)}},N=()=>{if(!k.value)return;const e=(e,t)=>{k.value&&k.value.on(e,t)};e("click",(e=>w("chartClick",e))),e("dblclick",(e=>w("chartDblClick",e))),e("mousedown",(e=>w("chartMouseDown",e))),e("mouseup",(e=>w("chartMouseUp",e))),e("mouseover",(e=>w("chartMouseOver",e))),e("globalout",(e=>w("chartGlobalOut",e))),e("rendered",(()=>{k.value&&"rendered"==V.t3DShadowUpdate&&R(),w("chartRendered")})),e("finished",(function(){k.value&&("finished"==V.t3DShadowUpdate&&R(),w("chartFinished"),T.value=!1,S.inited=!1)}))},R=()=>{if(!x.value)return;let e=!0;const t=ct.get1stParent(x.value,".tui-3d-panel");(!t||t&&Ul.has(t,"is-3doff"))&&(e=!1),V.initT3DShadow&&e?eg(x.value,b):tg(b)},I=ze("TuiT3DPanel",null);Z((()=>[i.value,V.initT3DShadow,I?.view3d?.value]),(([e,t,l])=>{R()})),Z((()=>s.value),(async e=>{!k.value||!e||(w("chartThemeChanged",{chart:k.value,theme:e}),await ye(),k.value.setTheme("eTheme"),k.value.setOption(z()))}));const M=()=>{k.value&&(k.value.dispose(),k.value=null)},P=()=>{k.value&&k.value.resize()};Z((()=>V.ready),(e=>{e&&O()})),Z((()=>V.chartOption),(()=>{k.value&&ye((()=>{k.value&&(k.value.setOption(z()),T.value=!1)}))}),{deep:!0});const D=u((()=>$e("cpt-echarts",{...q("width",V.width,"smart"),...q("height",V.height,"smart"),...q("opa",V.dataOpacity),...q("blur",V.dataBlur,"px")})));Z((()=>r.value),((e,t)=>{"root"==v.value(V.resizeObserver)&&e>t&&_()}));const _=async()=>{S.resizing=!0,P(),await ye(),setTimeout((()=>{S?.resizing&&(S.resizing=!1)}),500)};return Be((()=>{V.ready&&ye((()=>{O()}))})),dt((()=>{M()})),t({resize:P,getChart:()=>k.value,setOption:(e,t)=>{k.value&&k.value.setOption(z(e),t)},clear:()=>{k.value&&k.value.clear()},initChart:O,dispose:M}),(t,l)=>{const a=Je("tui-resize");return d(),le(gt(C.value),mt(qt(B.value)),{default:G((()=>[Re(f("div",_e({ref_key:"chartRef",ref:x},p(y),{class:["tui-echarts",{"is-resizing":S.resizing}],style:D.value}),null,16),[[a,{callback:_,uid:p(b),disabled:"self"!=p(v)(e.resizeObserver)}]]),ee(t.$slots,"default")])),_:3},16)}}}),fg=(e,t,l,a,i)=>{if(!e.value)return;const o=(t,l)=>{e.value&&e.value.on(t,l)};o("click",Qe.debounce((l=>{let i,o=l;if(l.value&&!t.chartOption.geo3D)i=e.value.convertToPixel("geo",[l.value[0],l.value[1]]),o.domPosition=i;else if("geo"==l.componentType&&l.event?.offsetX){const{offsetX:t,offsetY:a}=l.event;i=e.value.convertFromPixel("geo",[t,a]),o.coordPosition=i}a("chartClick",o,l)}),500,!0)),o("dblclick",(e=>a("chartDblClick",e))),o("mousedown",(e=>a("chartMouseDown",e))),o("mouseup",(e=>a("chartMouseUp",e))),o("mouseover",(e=>a("chartMouseOver",e))),o("globalout",(e=>a("chartGlobalOut",e))),o("geoRoam",(e=>a("chartGeoRoam",e))),o("timelinechanged",(l=>{const{allAreaCodes:i,chartOption:{timeline:o}}=t;let n=l;if("geoTitle"==o.titleType){let t=o.data[l.currentIndex],a=i.find((e=>e.name.includes(t))),s=e.value.convertToPixel("geo",[a.lng,a.lat]);n.domPosition=s,n.current=a}a("chartTimelinechanged",n)})),o("rendered",(()=>{a("chartRendered")})),o("finished",(()=>{e.value&&(a("chartFinished"),l.inited=!0)}))},pg=e=>{e.value&&e.value.resize()},gg=e=>e.value,vg=(e,t,l)=>{e.value&&e.value.setOption(t,l)},hg=e=>{e.value&&e.value.clear()},mg=e=>{if(e.value)try{const t=e.value.getOption();t.geo&&t.geo[0]&&(t.geo[0].roam=!0,t.geo[0].zoom=1,t.geo[0].center=null,e.value.setOption(t,!1))}catch(e){console.error("Failed to reset map view:",e)}},xi=async(e,t,l)=>{try{return l?(e.registerMap(t,l),!0):(console.warn("GeoJSON data is missing"),!1)}catch(e){return console.error("Failed to register map:",e),!1}},yg=async(e,t,l,a,i,o,n)=>{if(t.value)try{if(Pi(l),l.value)return;if(!await xi(e,a.mapName,a.geoJsonData))return void console.error("Map registration failed, aborting chart initialization");await ye(),l.value=bu(e.init(t.value,"eTheme",{...a.initOptions,notMerge:!1,renderer:a.renderer})),o("chartInit",l.value),l.value.setOption(a.chartOption),n(),await ye(),l.value&&(o("chartReady",l.value),i.value=!1)}catch(e){console.error("ECharts Map initialization failed:",e)}},bg=(e,t,l,a,i=!1)=>{e.value&&(e.value.setOption(t,i),l.value=!1,a("chartUpdate"))},Pi=e=>{e.value&&(e.value.dispose(),e.value=null)},Vg=["onClick"],wg={class:"tui-echm-bc-text"},Cg="TuiEchartsMap",Tg=Object.assign({name:Cg,inheritAttrs:!1},{__name:"map",props:{width:[Number,String],height:[Number,String],chartOption:{type:Object,required:!0},geoJsonData:{type:Object,required:!0},allAreaCodes:Array,mapName:{type:String,required:!0},initOptions:{type:Object,default:()=>({})},loading:{type:Boolean,default:null},useLoader:{type:Boolean,default:!0},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas"].includes(e)},ready:{type:Boolean,default:!1},dataOpacity:Number,dataBlur:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},updateReplace:{type:Boolean,default:!0},themeToken:{type:Boolean,default:!0},themeTokenScanData:{type:Boolean,default:!1},enableBreadcrumb:{type:Boolean,default:!1},breadcrumbConfig:{type:Object,default:()=>({data:[{code:1e5,name:"全国"}],position:{top:"5%",left:"5%"}})}},emits:["chartClick","chartDblClick","chartMouseDown","chartMouseUp","chartMouseOver","chartGlobalOut","chartInit","chartReady","chartRendered","chartFinished","chartGeoRoam","chartUpdate","chartTimelinechanged","breadcrumbClick","chartThemeChanged","update:loading"],setup(e,{expose:t,emit:l}){const a=ze("$global",null),{$gT3D:i,$gTheme:o,$gThemeScheme:n,$gEchartsThemeInited:s,$optResizeCounter:r,initResizeBy:A,$echarts:c,$tc:g}=a||{},v=A(),m=fa({name:"TuiPassThrough",setup:(e,{slots:t})=>()=>t.default?.()}),y=ke("TuiLoaderPanel"),b=Ll(),V=Ee("echart_map"),w=$(null),x=Go(null),k=e,S=l,C=je({loading:!0,inited:!1,resizing:!0}),B=u({get:()=>k.loading??C.loading,set:e=>{null!==k.loading?S("update:loading",e):C.loading=e}}),z=u((()=>k.useLoader?y:m)),O=u((()=>k.useLoader?{loading:B.value,inited:C.inited}:{})),N=u((()=>k.breadcrumbConfig?.data||[])),R=u((()=>{let e=k.breadcrumbConfig?.position||{},t={};for(let l in e)"number"==typeof e[l]?t[l]=e[l]+"px":t[l]=e[l];return t})),I=(e=k.chartOption)=>qi(e,{enabled:k.themeToken,scanData:k.themeTokenScanData,theme:o,themeScheme:n,$tc:g}),M=async()=>{c&&await yg(c,w,x,{...k,chartOption:I()},B,S,D,k.updateReplace)},P=()=>{bg(x,I(),B,S,k.updateReplace)},D=()=>{fg(x,k,C,S)},_=()=>{Pi(x)},E=()=>{pg(x)},j=u((()=>$e("cpt-echm",{...q("width",k.width,"smart"),...q("height",k.height,"smart"),...q("opa",k.dataOpacity),...q("blur",k.dataBlur,"px")})));Z((()=>k.geoJsonData),(async()=>{if(x.value){if(!c)return;await xi(c,k.mapName,k.geoJsonData),ye((()=>{P()}))}}),{deep:!0}),Z((()=>k.ready),(e=>{e&&M()})),Z((()=>k.chartOption),(()=>{x.value&&ye((()=>{P()}))}),{deep:!0}),Z((()=>s.value),(async e=>{!x.value||!e||(S("chartThemeChanged",{chart:x.value,theme:e}),await ye(),x.value.setTheme("eTheme"),x.value.setOption(I(),k.updateReplace))})),Z((()=>r.value),((e,t)=>{"root"==v.value(k.resizeObserver)&&e>t&&L()}));const L=async()=>{C.resizing=!0,E(),await ye(),setTimeout((()=>{C?.resizing&&(C.resizing=!1)}),500)};return Be((()=>{k.ready&&ye((()=>{M()}))})),dt((()=>{_()})),t({resize:E,getChart:()=>gg(x),setOption:(e,t)=>{vg(x,I(e),t)},initChart:M,clear:()=>{hg(x)},resetMapView:()=>{mg(x)},dispose:_}),(t,l)=>{const a=Je("tui-resize");return d(),le(gt(z.value),mt(qt(O.value)),{default:G((()=>[Re(f("div",_e({ref_key:"mapRef",ref:w},p(b),{class:["tui-echarts-map",{"is-resizing":C.resizing}],style:j.value}),null,16),[[a,{callback:L,uid:p(V),disabled:"self"!=p(v)(e.resizeObserver)}]]),e.enableBreadcrumb&&N.value.length>0?(d(),h("div",{key:0,class:"tui-echm-breadcrumb",style:we(R.value)},[(d(!0),h(ge,null,Fe(N.value,((e,t)=>(d(),h("div",{key:`${e.code}-${t}`,class:"tui-echm-bc-item",onClick:l=>((e,t)=>{const l=N.value.slice(0,t+1);S("breadcrumbClick",{item:e,index:t,breadcrumb:l,chart:x.value})})(e,t)},[f("span",wg,X(e.name),1)],8,Vg)))),128)),l[0]||(l[0]=f("i",{class:"tui-icon ti-map tui-echm-bc-icon"},null,-1))],4)):T("",!0),ee(t.$slots,"default")])),_:3},16)}}}),Sg={key:0,class:"tui-pa-inner"},$g={class:"tui-pa-title"},kg={class:"tui-pa-content"},qg={key:0,class:"tui-pa-debug"},xg=["placeholder"],Pg={class:"tui-pa-action"},Ao="TuiPanicAlert",Bg=Object.assign({name:Ao},{__name:"index",props:{modelValue:{type:Boolean,default:null},icon:{type:String,default:null},title:{type:String,default:null},content:{type:String,default:null},showClose:{type:Boolean,default:!1},blur:{type:Boolean,default:!0},clearDom:{type:Boolean,default:!1},fallBackPath:{type:String,default:null},silenceCondition:{type:Object,default:{}},mute:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},type:{type:String,default:"danger",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},tone:{type:String,default:"strong",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},transparent:{type:Boolean,default:!1},backgroundBlur:{type:Boolean,default:!0},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)}},emits:["open","close","back","update:modelValue"],setup(e,{emit:t}){const{vnode:l,proxy:{$tMessage:a}}=Tt(),{hardReload:i,i18n:o,$deviceInfo:n,$gSound:s,audio:r}=ze("$global",null),A=Uo(),c=Tu(),g=Wo(Ao),v=Ee("panicAlert"),m=e,y=$(!1),b=$(!0),V=$(!1),w=t,x=je({done:!1,config:!1}),q=(e,t)=>o(`panicAlert.${e}`,t),k={device:null,resolutionH:{min:null,max:null},resolutionV:{min:null,max:null},rejectDebugEnv:null,debugMD5:null},S=je({domCleared:!1,debug:{alertOn:!1,inputOn:!1,hasKey:!1,input:"",placeHolder:"input the debug code"},icon:"tui-icon ti-comment-times",title:"",content:"",silenceCondition:{}});Ll();const C=()=>{l.props.onBack?w("back"):m.fallBackPath?A.push(m.fallBackPath):A.back()},B=async()=>{S.domCleared?i():(V.value=!1,m.modelValue&&w("update:modelValue",!1),w("close",!1),await ye(),qe.s("closePA"+v,(()=>{y.value=!1,S.icon=null,S.title=null,S.content=null}),500))},z=()=>{S.debug.inputOn=!S.debug.inputOn},N=()=>{const{input:e}=S.debug;if(!e||e.length<8)a({content:q("debugger.codeLength"),type:"warning"});else{const{debugMD5:t}=S.silenceCondition;t==ja(e)?(_a.session.s("debugCode",e),a({content:q("debugger.codeCorrect"),type:"success"}),qe.s("reloadPA"+v,(()=>{i()}),2e3)):a({content:q("debugger.codeError"),type:"warning"})}},R=async e=>{if(e){const{debugMD5:e}=S.silenceCondition;S.icon="tui-icon ti-bug-ban",S.title=q("debugger.title"),S.content=q("debugger.content")+(e?q("debugger.contentWithCode"):""),M(),await ye(),y.value=!0,w("open",!0),S.debug.alertOn=!0}else i()},I=$(null),M=()=>{S.domCleared=!0,ct.clearExcept(ct.el("#tuiRoot"),I.value)},P=()=>{c.il()&&(c.st(),c.rl((e=>{R(e)})))},D=e=>{if(e){if(S.silenceCondition=Kt.dpm(k,m.silenceCondition),x.config=!0,m.clearDom&&y.value&&M(),!S?.silenceCondition?.rejectDebugEnv)return;{const{rejectDebugEnv:e,debugMD5:t}=S.silenceCondition;if(e){if(!y.value){let l="";if(t){S.debug.hasKey=!0;const e=_a.session.g("debugCode");if(e&&(l=ja(e)),e&&t==l)return}("all"==e||"prod"==e&&"prod"==Zl())&&(c.il()||(c.al((e=>{R(e)})),c.lc()))}}else P()}}},_=e=>{if(!m.silenceCondition||S.debug.alertOn)return;const{type:t,resolutionH:l,resolutionV:a}=e,{device:i,resolutionH:o,resolutionV:n}=S.silenceCondition;if(i&&!i.includes(t.split("-")[0])){const e=On.upperAll(t.split("-")[0]),l=On.upperAll(i);return S.icon="tui-icon ti-laptop-phone",S.title=q("device.title"),S.content=q("device.content",{deviceA:l,deviceB:e}),y.value=!0,void w("open",!0)}return o.min&&l<o.min?(S.icon="tui-icon ti-computer-alert",S.title=q("resolution.title"),S.content=q("resolution.content",{resoluHV:q("resolution.horizontal"),operator:q("resolution.less"),resoluMinMax:q("resolution.min"),curResol:l,safeResol:o.min}),y.value=!0,void w("open",!0)):o.max&&l>o.max?(S.icon="tui-icon ti-computer-alert",S.title=q("resolution.title"),S.content=q("resolution.content",{resoluHV:q("resolution.horizontal"),operator:q("resolution.greater"),resoluMinMax:q("resolution.max"),curResol:l,safeResol:o.max}),y.value=!0,void w("open",!0)):n.min&&a<n.min?(S.icon="tui-icon ti-computer-alert",S.title=q("resolution.title"),S.content=q("resolution.content",{resoluHV:q("resolution.vertical"),operator:q("resolution.less"),resoluMinMax:q("resolution.min"),curResol:a,safeResol:n.min}),y.value=!0,void w("open",!0)):n.max&&a>n.max?(S.icon="tui-icon ti-computer-alert",S.title=q("resolution.title"),S.content=q("resolution.content",{resoluHV:q("resolution.vertical"),operator:q("resolution.greater"),resoluMinMax:q("resolution.max"),curResol:a,safeResol:n.max}),y.value=!0,void w("open",!0)):void(y.value&&!m.modelValue&&B())};Z((()=>m.silenceCondition),(e=>{E(e)}),{deep:!0}),Z((()=>n.value),(e=>{_(e)}),{deep:!0}),Z((()=>m.modelValue),(e=>{(e=>{if(e){const{title:e,content:t}=S;e||(S.title=q("example.title")),t||(S.content=q("example.content")),y.value=!0,w("open",!0),m.clearDom&&M()}else{if(b.value)return;y.value=!1,w("close",!1)}})(e)}),{immediate:!0}),Z((()=>y.value),(async e=>{e&&(qe.c("closePA"+v),await ye(),s.value&&r.play("errorB"),V.value=!0)}));const E=e=>{D(e),_(n.value)},j=$({appearance:"background",type:u((()=>m.type)),tone:u((()=>m.tone)),transparent:u((()=>m.transparent)),backgroundBlur:u((()=>m.backgroundBlur)),hasShadow:u((()=>m.hasShadow)),shadowColor:u((()=>m.shadowColor))});return El((()=>{})),Be((()=>{E(m.silenceCondition),b.value=!1,x.config&&(x.done=!0)})),dt((()=>{P(),b.value=!0})),(t,l)=>{const a=ke("TuiButton"),i=ke("TuiTyped"),n=ke("TuiMask"),s=Je("tui-popover"),r=Je("tui-vcid");return b.value?T("",!0):(d(),le(Lt,{key:0,to:"#tuiRoot",fallback:"#app",disabled:b.value},[x.done?Re((d(),h("div",{key:0,ref_key:"panicAlertRef",ref:I,class:"tui-panic-alert"},[me(Ue,{name:"fade"},{default:G((()=>[y.value?(d(),h("div",Sg,[Re(me(i,mt(qt(j.value)),{default:G((()=>[f("i",{class:O(`tui-pa-icon ${e.icon||S.icon}`)},null,2),f("div",$g,X(e.title||S.title),1),f("div",kg,X(e.content||S.content),1),S.debug.alertOn&&S.debug.inputOn?(d(),h("div",qg,[Re(f("input",{class:"tui-pa-debug-input tui-input","onUpdate:modelValue":l[0]||(l[0]=e=>S.debug.input=e),placeholder:q("debugger.inputCode"),type:"text"},null,8,xg),[[Vu,S.debug.input]]),me(a,{onClick:N},{default:G((()=>[...l[1]||(l[1]=[f("i",{class:"tui-icon ti-check"},null,-1)])])),_:1}),me(a,{onClick:z},{default:G((()=>[...l[2]||(l[2]=[f("i",{class:"tui-icon ti-times"},null,-1)])])),_:1})])):T("",!0),f("div",Pg,[S.debug.alertOn?T("",!0):(d(),h(ge,{key:0},[e.showClose?Re((d(),h("div",{key:1,class:"tui-pa-action-btn",onClick:B},[...l[4]||(l[4]=[f("i",{class:"tui-icon ti-times"},null,-1)])])),[[s,{content:p(o)("common.close"),placement:"bottom",appendTo:"#app",debug:!0,delay:1e3,zIndex:2e3}]]):Re((d(),h("div",{key:0,class:"tui-pa-action-btn",onClick:C},[...l[3]||(l[3]=[f("i",{class:"tui-icon ti-chevron-left"},null,-1)])])),[[s,{content:p(o)("common.back"),placement:"bottom",appendTo:"#app",delay:1e3,zIndex:2e3}]])],64)),S.debug.alertOn&&S.debug.hasKey&&!S.debug.inputOn?Re((d(),h("div",{key:1,class:"tui-pa-action-btn",onClick:z},[...l[5]||(l[5]=[f("i",{class:"tui-icon ti-key-encrypt"},null,-1)])])),[[s,{content:q("debugger.inputCode"),placement:"bottom",appendTo:"#app",delay:1e3,zIndex:2e3}]]):T("",!0)])])),_:1},16),[[Ye,V.value]])])):T("",!0)])),_:1})])),[[r,p(g)]]):T("",!0),me(n,{"model-value":y.value&&V.value&&e.modal},null,8,["model-value"])],8,["disabled"]))}}}),Bi={width:[Number,String],height:[Number,String],data:{type:Array,required:!0,default:()=>[]},innerRadiusPercent:{type:Number,default:50,validator:e=>e>=0&&e<=95},cornerRadius:{type:Number,default:10},gapSize:{type:Number,default:10},useGradient:{type:Boolean,default:!1},gradientRatio:{type:Number,default:.3},thicknessColorRatio:{type:Number,default:2},showCenterText:{type:Boolean,default:!0},radiusRatio:{type:Number,default:.8},chartTitle:{type:String,default:"Total"},pieOffset:Number,centerTextOffset:Number,unit:String,hoverOffset:{type:Number,default:5},clickable:{type:Boolean,default:!1},inactiveOpacity:{type:Number,default:.4,validator:e=>"number"==typeof e&&e>=0&&e<=1},activeIndex:{type:Number,default:null},animationDuration:{type:Number,default:750},animationEasing:{type:String,default:"cubic-bezier(0.23, 1, 0.32, 1)"},animate:{type:Boolean,default:!0},legendShow:{type:Boolean,default:!0},legendPosition:{type:String,default:"bottom",validator:e=>["bottom","top","left","right"].includes(e)},legendTeleportTo:{type:[String,Object],default:null},legendWidth:[Number,String],showShadowGroup:{type:Boolean,default:!1},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},zg={transformOriginTop:[Number,String],...Bi,legendTeleportTo:{type:[String,Object],default:"default"},transform3D:{type:Object,default:{x:0,y:0,z:0}},t3DConfig:Object},Rg=["width","height","viewBox"],Ng=["cx","cy","r","id"],Ig=["stop-color"],Og=["stop-color"],Dg={key:0,class:"tui-pie-shadow"},Mg=["fill","d","transform"],_g=["d","fill","transform","onMouseover","onMouseleave","onClick"],Eg={class:"tui-pie-total-val"},Lg={class:"tui-pie-total-name"},Fg={key:0,class:"tui-pie-total-unit"},zi=Object.assign({name:"TuiPie"},{__name:"pie",props:Bi,emits:["sliceHover","sliceLeave","sliceClick","itemClick","legendChange"],setup(e,{emit:t}){const{$themePalette:l,$optResizeCounter:a,initResizeBy:i}=ze("$global",null),o=i(),n=e,s=t,r=Ee("pie3D"),A=$(!1),c=$(!1),g=$(!1),v=je({width:300,height:300,hovSliceIdx:null,hovLegendIdx:null,isResizing:!1,dftColors:[]}),m=e=>{if("string"!=typeof e||!e.trim())return!1;const t=e.trim();return"string"==typeof ut[t]||(!(typeof CSS<"u"&&"function"==typeof CSS.supports)||CSS.supports("color",t))},y=()=>{Array.isArray(n.data)&&0!==n.data.length?(n.data.some((e=>!m(e?.color)))||v.dftColors.length!==n.data.length)&&(()=>{if(!Kt.isEmpty(l.value)){const e=n.data.length,t=["#197fe6","#47eb99","#eaeb47","#eb9947","#eb4747","#9947eb"];v.dftColors=ut.scale(t,e)}})():v.dftColors=[]},b=(e,t)=>m(e?.color)?e.color:v.dftColors[t%v.dftColors.length],V=$([]),w=$(!1);Z((()=>n.data),(e=>{if(y(),!n.animate)return void(V.value=e.map(((e,t)=>{const l={...e};return!m(l.color)&&v.dftColors.length>0&&(l.color=b(l,t)),{...l,animValue:l&&"number"==typeof l.value&&l.value>0?l.value:0}})));const t={};V.value.forEach((e=>{e&&e.label&&(t[e.label]={animValue:e.animValue||0,color:e.color})}));const l=e.map(((e,l)=>{const a=e.label&&void 0!==t[e.label]?t[e.label].animValue:0,i={...e};return!m(i.color)&&v.dftColors.length>0&&(i.color=b(i,l)),{...i,animValue:a,targetValue:i&&"number"==typeof i.value&&i.value>0?i.value:0}})),a=new Set(e.map((e=>e.label))),i=[];Object.keys(t).forEach((e=>{!a.has(e)&&t[e].animValue>0&&i.push({label:e,color:t[e].color,animValue:t[e].animValue,targetValue:0,value:0})})),V.value=[...l,...i],n.animate&&!w.value&&(w.value=!0,function(){if(!n.animate)return;const e=Date.now(),t=n.animationDuration,l=()=>{const a=Date.now()-e,i=Math.min(a/t,1),o=((e,t)=>{switch(t){case"linear":return e;case"ease-in":return e*e;case"ease-out":return e*(2-e);case"ease-in-out":return e<.5?2*e*e:(4-2*e)*e-1;case"cubic-bezier(0.23, 1, 0.32, 1)":default:return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}})(i,n.animationEasing);V.value.forEach((e=>{if(void 0!==e.targetValue){const t=e.animValue||0,l=e.targetValue-t;e.animValue=t+l*o}})),i<1?ot.s(`${r}_ani`,l):(V.value.forEach((e=>{void 0!==e.targetValue&&(e.animValue=e.targetValue)})),w.value=!1)};ot.s(`${r}_ani`,l)}())}),{deep:!0,immediate:!0});const x=u((()=>v.width/2)),k=u((()=>v.height/2)),S=u((()=>Ct.min(v.height,v.width))),C=u((()=>S.value/2*n.radiusRatio)),B=u((()=>V.value.reduce(((e,t)=>e+(t&&"number"==typeof t.animValue&&t.animValue>0?t.animValue:0)),0))),z=u((()=>n.data.reduce(((e,t)=>e+(t&&"number"==typeof t.value&&t.value>0?t.value:0)),0))),N=u((()=>Array.isArray(V.value)?V.value.filter((e=>e&&"number"==typeof e.animValue&&e.animValue>0&&e.label)):[])),R=u((()=>N.value.map(((e,t)=>({index:t,label:e.label,color:e.color,value:e.value||e.targetValue||0}))))),I=u((()=>null!=n.activeIndex?n.activeIndex:v.hovSliceIdx??v.hovLegendIdx??null)),M=e=>null==I.value||I.value===e?1:n.inactiveOpacity,P=e=>({"--tui-3dp-thick-color":ut.darken(e.color,n.thicknessColorRatio),opacity:M(e.index)}),D=u((()=>C.value*(n.innerRadiusPercent/100))),_=u((()=>{const e=[];if(B.value<=0||0===N.value.length)return e;const t=2*Math.PI;let l=-Math.PI/2;return N.value.forEach(((a,i)=>{const o=a.animValue/B.value*t;if(o<1e-6)return;const s=l,u=l+o,A=Nr(x.value,k.value,C.value,D.value,s,u,n.cornerRadius,n.gapSize);if(A.includes("Error"))return;const d=a.color||(v.dftColors.length>0?v.dftColors[i%v.dftColors.length]:"#cccccc"),c=n.useGradient?`url(#${r}-grad-${i})`:d;let p="";if(v.hovSliceIdx===i&&n.hoverOffset>0){const e=s+o/2,t=n.hoverOffset*Math.cos(e),l=n.hoverOffset*Math.sin(e);p=`translate(${t.toFixed(3)}, ${l.toFixed(3)})`}const g=a.value||a.targetValue||a.animValue,f=(g/z.value*100).toFixed(1),h=`${a.label}: ${g.toLocaleString()} (${f}%)`;e.push({idSuffix:i,d:A,fill:c,transform:p,tooltip:h,color:d,originalData:a,index:i}),l=u})),e})),E=u((()=>n.showCenterText&&n.innerRadiusPercent>10&&B.value>0)),j=u((()=>{const e=2*D.value;let t=Math.min(.1*S.value,Math.max(.03*S.value,.15*e));return(0===N.value.length||0===B.value)&&(t=Math.min(.08*S.value,Math.max(.02*S.value,.1*e))),{title:.9*t,total:1.1*t}})),L=u((()=>z.value<=0&&0===N.value.length&&!n.data.some((e=>e&&"number"==typeof e.value&&e.value>0))?"N/A":z.value.toLocaleString())),F=u((()=>$e("cpt-pie",{...q("pieOfs",n.pieOffset,"smart"),...q("totalOfs",n.centerTextOffset,"smart")}))),W=u((()=>$e("cpt-pie-font",{total:j.value.total+"px",title:j.value.title+"px"}))),H=$(!1),U=u((()=>["left","right"].includes(n.legendPosition)?"column":"row")),Y=u((()=>{if(!g.value||!n.legendTeleportTo)return null;if("string"==typeof n.legendTeleportTo)return typeof document<"u"?document.querySelector(n.legendTeleportTo):null;const e=p(n.legendTeleportTo);return 1===e?.nodeType?e:null})),Q=u((()=>!!Y.value));Z((()=>R.value),(e=>{s("legendChange",e)}),{deep:!0,immediate:!0}),Z((()=>a.value),((e,t)=>{"root"==o.value(n.resizeObserver)&&e>t&&K()}));const K=async()=>{v.isResizing=!0,await ye(),H.value&&(v.width=Number(n.width)||H.value.clientWidth,v.height=Number(n.height)||H.value.clientHeight),setTimeout((()=>{v.isResizing=!1,c.value=!0}),500)};Z((()=>[n.legendPosition,n.legendShow,n.legendTeleportTo]),(async()=>{await ye(),K()})),Z((()=>R.value.length),(async()=>{await ye(),K()}));const J=({index:e})=>{v.hovLegendIdx=e},ee=()=>{v.hovLegendIdx=null};return Be((async()=>{A.value=!0,await ye(),g.value=!0,y(),(()=>{y();const e=n.data.map(((e,t)=>{const l={...e};return!m(l.color)&&v.dftColors.length>0&&(l.color=b(l,t)),{...l,animValue:l&&"number"==typeof l.value&&l.value>0?l.value:0}}));V.value=e})()})),(e,t)=>{const l=Je("tui-cursor-tip"),a=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["tui-pie",`is-legend-${e.legendPosition}`,{"is-resizing":v.isResizing}])},[Re((d(),h("div",{class:"tui-pie-main",style:we(F.value),ref_key:"pieWrapRef",ref:H},[me(Ue,{name:"fade"},{default:G((()=>[c.value?(d(),h("svg",{key:0,class:"tui-pie-svg",width:v.width,height:v.height,viewBox:`0 0 ${v.width} ${v.height}`},[f("defs",null,[n.useGradient?(d(!0),h(ge,{key:0},Fe(_.value,(t=>(d(),h("radialGradient",{cx:x.value,cy:k.value,r:C.value,key:`${p(r)}-grad-${t.idSuffix}`,id:`${p(r)}-grad-${t.idSuffix}`,gradientUnits:"userSpaceOnUse"},[f("stop",{offset:.7,"stop-color":p(ut).lighten(t.color,e.gradientRatio)},null,8,Ig),f("stop",{offset:1,"stop-color":p(ut).darken(t.color,e.gradientRatio)},null,8,Og)],8,Ng)))),128)):T("",!0)]),n.showShadowGroup?(d(),h("g",Dg,[(d(!0),h(ge,null,Fe(_.value,(e=>(d(),h("path",{style:we(P(e)),key:e.idSuffix,fill:e.fill,d:e.d,transform:e.transform,class:"t3d-shadow-item"},null,12,Mg)))),128))])):T("",!0),f("g",null,[(d(!0),h(ge,null,Fe(_.value,(e=>Re((d(),h("path",{key:e.idSuffix,d:e.d,fill:e.fill,transform:e.transform,class:"tui-pie-slice",style:we({opacity:M(e.index),cursor:n.clickable?"pointer":"default"}),onMouseover:t=>((e,t)=>{v.hovSliceIdx=e.index,s("sliceHover",{event:t,data:e.originalData,index:e.index})})(e,t),onMouseleave:t=>((e,t)=>{v.hovSliceIdx=null,s("sliceLeave",{event:t,data:e.originalData,index:e.index})})(e,t),onClick:t=>((e,t)=>{if(!n.clickable)return;const l={event:t,data:e.originalData,index:e.index};s("sliceClick",l),s("itemClick",l)})(e,t)},null,44,_g)),[[l,{content:e.tooltip}]]))),128))])],8,Rg)):T("",!0)])),_:1}),E.value?(d(),h("div",{key:0,class:"tui-pie-total text-shadow-item",style:we(W.value)},[f("div",Eg,X(L.value),1),f("div",Lg,X(n.chartTitle),1),n.unit?(d(),h("div",Fg,"("+X(n.unit)+")",1)):T("",!0)],4)):T("",!0)],4)),[[a,{callback:K,uid:p(r),disabled:"self"!=p(o)(e.resizeObserver)&&c.value}]]),n.legendShow&&R.value.length>0?(d(),le(Lt,{key:0,to:Y.value||"body",disabled:!Q.value},[me(wi,{items:R.value,"active-index":I.value,layout:U.value,width:n.legendWidth,onItemHover:J,onItemLeave:ee},null,8,["items","active-index","layout","width"])],8,["to","disabled"])):T("",!0)],2),[[Ye,A.value]])])),_:1})}}}),jg={class:"tui-pie3d-inner"},Wg=Object.assign({name:"TuiPie3D"},{__name:"index",props:zg,emits:["sliceHover","sliceLeave","sliceClick","itemClick"],setup(e,{emit:t}){const l=e,a=t,i=$(null),o=$(null),n=u((()=>({width:l.width,height:l.height,data:l.data,innerRadiusPercent:l.innerRadiusPercent,cornerRadius:l.cornerRadius,gapSize:l.gapSize,useGradient:l.useGradient,gradientRatio:l.gradientRatio,thicknessColorRatio:l.thicknessColorRatio,showCenterText:l.showCenterText,radiusRatio:l.radiusRatio,chartTitle:l.chartTitle,pieOffset:l.pieOffset,centerTextOffset:l.centerTextOffset,unit:l.unit,hoverOffset:l.hoverOffset,animationDuration:l.animationDuration,animationEasing:l.animationEasing,animate:l.animate,legendShow:l.legendShow,legendPosition:l.legendPosition,legendWidth:l.legendWidth,legendTeleportTo:"default"===l.legendTeleportTo?o.value:l.legendTeleportTo,showShadowGroup:!0,resizeObserver:l.resizeObserver}))),s=u((()=>({mode:"static",transformOrigin:"top",showShadow:!0,thicknessFixGap:!0,thicknessCoeff:.15,shadowCoeff:.1,shadowBlur:3,coeff:1,rotateMax:90,initialRotate:{...l.transform3D},...null!=l.transformOriginTop?{transformOriginTop:l.transformOriginTop}:{},...l.t3DConfig}))),r=e=>{i.value=null!=e?.index?Number(e.index):null,a("sliceHover",e)},A=e=>{i.value=null,a("sliceLeave",e)},c=e=>{a("sliceClick",e),a("itemClick",e)},p=u((()=>$e("cpt-pie3d",{...q("tot",l.transformOriginTop,"smart")})));return(e,t)=>{const a=ke("Tui3DPanel");return d(),le(Ue,{name:"fade"},{default:G((()=>[f("div",{class:O(["tui-pie-3d",`is-legend-${e.legendPosition}`]),style:we(p.value)},[f("div",jg,[me(a,_e(s.value,{class:"tui-pie3d-panel"}),{default:G((()=>[me(zi,_e(n.value,{"active-index":i.value,"inactive-opacity":l.inactiveOpacity,clickable:l.clickable,onSliceHover:r,onSliceLeave:A,onSliceClick:c}),null,16,["active-index","inactive-opacity","clickable"])])),_:1},16)]),l.legendShow?(d(),h("div",{key:0,ref_key:"legendTeleportHostRef",ref:o,class:"tui-pie3d-legend-host"},null,512)):T("",!0)],6)])),_:1})}}}),kl=new Lo,fo=e=>{let t=Kt.keyValid(e,["x","y","z"],!1);return t.valid||console.warn("HoverRotate Warning",t.message),t.valid},po="Tui3DPanel",Gg=Object.assign({name:po},{__name:"index",props:{animationRotate:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["x","y"]);return t||console.warn("Tui3DPanel Warning! ",l),t}},hoverMask:{type:Boolean,default:!1},hoverDelay:{type:Number,default:0},hoverRotate:{type:Object,default:{x:0,y:0,z:0},validator:fo},initialRotate:{type:Object,default:{x:0,y:0,z:0},validator:fo},rotateMax:{type:Number,default:50},rotateMin:{type:Number,default:-50},perspective:Number,transformOrigin:{type:String,default:null,validator:e=>["bottom","top","left","right","left top","center","right top","left bottom","right bottom"].includes(e)},duration:{type:Number,default:null},aniDelay:{type:Number,default:1e3},coeff:{type:Number,default:null},mode:{type:String,default:"auto",required:!0,validator:e=>["hover","matrix","hive","unity","animation","gyro","auto","static"].includes(e)},eventBus:{type:Boolean,default:!1},uesAlpha:{type:Boolean,default:!1},fixAlpha:{type:Number,default:0},showShadow:{type:Boolean,default:!0},shadowCoeff:Number,shadowBlur:Number,shadowTransparent:Number,showThickness:{type:Boolean,default:!0},thicknessLength:Number,thicknessCoeff:Number,thicknessBlur:Number,thicknessTransparent:Number,thicknessColor:{type:String,default:null},thicknessFixGap:{type:Boolean,default:!1},view3d:{type:Boolean,default:!0},inAdaptive:{type:Boolean,default:!0},index:{type:Number,default:0},group:{type:String,default:"t3dcom"}},setup(e){const t=$(null),l=$(!1),{$tState:a,$t3dConfig:i,$gT3D:o,tConsolei18n:n,$deviceInfo:s}=ze("$global",null),r=e,A=Wo(po),c=Ee("t3d"),g=je({view3d:!1,hoverState:!1,curAniIndex:0,mode:"",coeff:1,shadowCoeff:1,eventInited:!1,curRotate:{x:0,y:0,z:0},animationRotate:[],aniStart:!1,initialRotate:{},hoverRotate:{},fixAlpha:0,ParmarsBak:{coeff:1,shadowCoeff:1},screenDir:"landscape",screenInvert:!1});bt("TuiT3DPanel",{view3d:u((()=>g.view3d))});const v=u((()=>{const e=g.mode;return r.duration?r.duration:"hive"==e||"matrix"==e||"unity"==e?0:"animation"==e?5e3:"hover"==e?1e3:"gyro"==e?500:void 0})),m=e=>{"hover"==g.mode&&o.value&&g.view3d&&(1==e?(qe.c(c+"out"),qe.s(c+"in",(()=>{const{x:e,y:t}=g.hoverRotate;w(e,t),qe.s(c+"hovSta",(()=>{g.hoverState=!0}),v.value)}),r.hoverDelay)):0==e&&(g.hoverState=!1,qe.c(c+"hovSta"),qe.c(c+"in"),qe.s(c+"out",(()=>{const{x:e,y:t}=g.initialRotate;w(e,t)}),r.hoverDelay)))},y=e=>{if(r.eventBus||0==r.index){let l=t.value.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight;if(r.inAdaptive){const e=Wa(g.ParmarsBak.coeff,g.ParmarsBak.shadowCoeff,a);g.coeff=e[0],g.shadowCoeff=e[1]}const{rotateX:o,rotateY:n}=Ga(g.mode,g.coeff,e,l,i,a);w(o,n),kl.emit(r.group+"t3DBus",e)}else kl.on(r.group+"t3DBus",(e=>{let l=t.value.getBoundingClientRect(),a=window.innerWidth,i=window.innerHeight;if(r.inAdaptive){const e=Wa(g.ParmarsBak.coeff,g.ParmarsBak.shadowCoeff,a);g.coeff=e[0],g.shadowCoeff=e[1]}const{rotateX:o,rotateY:n}=Ga(g.mode,g.coeff,e,l,i,a);w(o,n)}))},b=e=>{if(0==r.index||null==r.index){0==g.fixAlpha&&e.alpha&&(g.fixAlpha=e.alpha?.toFixed(5)||0);const t=g.coeff;let{alpha:l,beta:a,gamma:i,delta:o}=Ir(e,g.fixAlpha,r.uesAlpha);"landscape"!=g.screenDir||g.screenInvert?"portrait"!=g.screenDir||g.screenInvert?"landscape"==g.screenDir&&g.screenInvert?w(i*o*t/3,-a*o*t/3,l*o*t/3):"portrait"==g.screenDir&&g.screenInvert&&w(-a*o*t/3,-i*o*t/3,l*o*t/3):w(a*o*t/3,i*o*t/3,l*o*t/3):w(-i*o*t/3,a*o*t/3,l*o*t/3);const n={fixAlpha:g.fixAlpha,x:g.curRotate.x,y:g.curRotate.y,z:g.curRotate.z};null!=r.index&&kl.emit(r.group+"t3DGyroBus",n)}else kl.on(r.group+"t3DGyroBus",(e=>{const{fixAlpha:t,x:l,y:a,z:i}=e;g.fixAlpha=t,g.curRotate.x=l,g.curRotate.y=a,g.curRotate.z=i}))},V=()=>{qe.s(c+"panelAni",(()=>{g.aniStart=!0;let e=g.curAniIndex,t=r.animationRotate;w(t[e].x,t[e].y),e!=t.length-1?g.curAniIndex++:g.curAniIndex=0,V()}),g.aniStart?v.value:r.aniDelay)},w=(e,t,l)=>{g.curRotate.x=x(e),g.curRotate.y=x(t),"number"==st(l)&&(g.curRotate.z=x(l))},x=e=>{const t=r.rotateMax,l=r.rotateMin;return e>t?t:e<l?l:e},k=()=>{g.mode&&("animation"==g.mode?qe.c(c+"panelAni"):"gyro"==g.mode?((r.eventBus||0==r.index)&&g.eventInited&&(Qe.remove(window,"deviceorientation",c),g.eventInited=!1),null!=r.index&&kl.off(r.group+"t3DGyroBus"),r.index):((r.eventBus||0==r.index)&&g.eventInited&&(Qe.remove(window,"mousemove",c,!0),g.eventInited=!1),null!=r.index&&kl.off(r.group+"t3DBus")),g.curRotate.x=0,g.curRotate.y=0,g.curRotate.z=0)},S=u((()=>$e("cpt-3dp",{...q("thickColor",r.thicknessColor),...q("transOrigin",r.transformOrigin),...q("thickCoeff",r.thicknessCoeff),...q("thickBlur",r.thicknessBlur,"px"),...q("shadowCoeff",g.shadowCoeff,{when:r.shadowCoeff&&1!=g.shadowCoeff}),...q("shadowBlur",r.shadowBlur,"px"),...q("shadowTransp",r.shadowTransparent),...q("thickTransp",r.thicknessTransparent),...q("persp",r.perspective,"px"),...q("dur",v.value,"ms"),...l.value&&{rotateX:g.curRotate.x,rotateY:g.curRotate.y,rotateZ:g.curRotate.z}})));Z((()=>[r.coeff,r.shadowCoeff,r.fixAlpha]),(()=>{C()})),Z((()=>r.initialRotate),(()=>{C()}),{deep:!0}),Z((()=>r.hoverRotate),(()=>{C()}),{deep:!0});const C=()=>{r.hoverRotate&&(g.hoverRotate=Kt.dpm(g.curRotate,r.hoverRotate)),r.initialRotate&&(g.initialRotate=Kt.dpm(g.curRotate,r.initialRotate),"static"==g.mode&&(g.curRotate=g.initialRotate)),r.coeff&&(g.coeff=r.coeff,g.ParmarsBak.coeff=g.coeff),r.shadowCoeff&&(g.shadowCoeff=r.shadowCoeff,g.ParmarsBak.shadowCoeff=g.shadowCoeff),r.fixAlpha&&(g.fixAlpha=r.fixAlpha)};Z((()=>s.value.orientation),(e=>{g.screenDir=e}),{immediate:!0}),Z((()=>s.value.screenInvert),(e=>{g.screenInvert=e}),{immediate:!0}),Z((()=>[o.value,r.view3d]),(([e,t])=>{g.view3d=!(!e||!t)}),{immediate:!0}),Z((()=>g.view3d),(e=>{e?(C(),(async()=>{const e=g.mode;if(e){if(!o.value||!g.view3d)return void(g.curRotate={x:0,y:0,z:0});if("hover"==e){const{x:e,y:t}=g.initialRotate;w(e,t)}else"hive"==e||"matrix"==e||"unity"==e?r.eventBus||0==r.index?(Qe.add(window,"mousemove",y,c,!0),g.eventInited=!0):y():"animation"==e?V():"gyro"==e?"https:"==window.location.protocol?0==r.index||null==r.index?(typeof DeviceOrientationEvent<"u"&&"function"==typeof DeviceOrientationEvent.requestPermission&&DeviceOrientationEvent.requestPermission(),Qe.add(window,"deviceorientation",b,c),g.eventInited=!0):b():n({type:"warn",id:"panelGyro",localeKey:"warn.panelGyro"}):"static"==e&&(g.curRotate=g.initialRotate)}})()):k()}),{immediate:!0}),Z((()=>s.value.type),(async e=>{if(!e)return;g.view3d&&(g.view3d=!1,k()),await ye(),(e=>{const t=e;s.value.type,"auto"==r.mode?t.includes("pc")?g.mode="matrix":(t.includes("mobile")||t.includes("pad"))&&(g.mode="gyro"):g.mode=r.mode})(e);const t=g.mode,l=o.value,a=r.view3d;l&&a&&(e.includes("mobile")||e.includes("pad")?("gyro"==t||"animation"==t)&&(g.view3d=!0):e.includes("pc")&&"gyro"!=t&&(g.view3d=!0))}),{immediate:!0});const B=e=>{const t=ct.el(".tui-3d-panel",!0);t.length>0&&e&&!i.value.inited?a.t3dConfig.inited=!0:0==t.length&&!e&&i.value.inited&&(a.t3dConfig.inited=!1)};return El((()=>{})),Be((async()=>{l.value=!0,await ye(),B(!0)})),dt((async()=>{l.value=!0,g.view3d=!1,k(),await ye(),B(!1)})),(a,i)=>{const n=Je("tui-vcid");return l.value?Re((d(),h("div",{key:0,style:we(S.value),class:O(["tui-3d-panel",`is-mode-${e.mode}`,"is-shadow-"+(e.showShadow?"show":"hide"),"is-thickness-"+(e.showThickness?"show":"hide"),{"is-3doff":!p(o)||!g.view3d,"is-fixgap":e.thicknessFixGap}]),ref_key:"t3dRef",ref:t},[f("div",{class:O(["tui-3dp-inner",[{"is-hover":g.hoverState,"has-mask":e.hoverMask&&"hover"==e.mode&&p(o)}]]),onMouseenter:i[0]||(i[0]=e=>m(1)),onMouseleave:i[1]||(i[1]=e=>m(0))},[ee(a.$slots,"default",{boxShadowName:"box-shadow-item",textShadowName:"text-shadow-item",t3dShadowName:"t3d-shadow-item",dropShadowName:"drop-shadow-item"})],34)],6)),[[n,p(A)]]):T("",!0)}}}),Ri=["default","invert","primary","success","warning","danger","info","emphasis"],Al={base:{lineHeight:30,fontSize:15,iconSize:18,gap:10,paddingX:5,paddingY:5},small:.85,default:1,large:1.15},Hg=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},Kg=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?l:t},ql=(e,t,l=0,a=0)=>{const i=Hg(e,l)*t;return Math.max(a,Math.round(i))},Ug=({size:e,sizeConfig:t})=>{const l=t?.scale||{};return Kg(t?.[e]??l[e],Al[e]||Al.default)},Yg=e=>({...Al.base,...e?.baseConfig||{},...e?.base||{}}),Jl=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},Qg=({size:e="default",itemLines:t=1,sizeConfig:l}={})=>{const a=Yg(l),i=Ug({size:e,sizeConfig:l}),o=Jl(t),n={lineHeight:ql(a.lineHeight,i,Al.base.lineHeight,1),fontSize:ql(a.fontSize,i,Al.base.fontSize,1),iconSize:ql(a.iconSize,i,Al.base.iconSize,1),gap:ql(a.gap,i,Al.base.gap,0),paddingX:ql(a.paddingX,i,Al.base.paddingX,0),paddingY:ql(a.paddingY,i,Al.base.paddingY,0)};return{...n,itemH:n.lineHeight*o+2*n.paddingY}},Ni=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?Ni(e.children):[e])),Xg=e=>(Ni(e||[])||[]).map((e=>e?.props||{})),Ii=(e,t="default")=>Ri.includes(e)?e:t,Zg=({items:e=[],curRoll:t=0,visibleLength:l=1}={})=>{if(1!==Jl(l))return"default";const a=Math.max(0,Math.floor(Number(t)||0));return Ii(e[a]?.type)},Jg=({props:e,type:t})=>({appearance:e.appearance,hasShadow:e.hasShadow,shadowColor:e.shadowColor,type:Ii(t),tone:e.tone,transparent:e.transparent,backgroundBlur:e.backgroundBlur}),ev=({props:e})=>{const t=e.rollingConfig||{};return{...t,direction:"v",mode:"item",visibleLength:Jl(e.visibleLength),initIndex:t.initIndex??null,debug:e.debug,showControl:e.showControl,seamless:e.seamless,interval:e.interval??t.interval,motionBlur:e.motionBlur,duration:e.duration??t.duration??null,delay:e.delay??t.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,hoverPause:e.hoverPause,resizeObserver:e.resizeObserver,fillData:!1,slotObserver:!0,controlLayout:"reserve",controlDirection:"h"}},vn=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.rollInnerSize=t.rollInnerSize??e.rollInnerSize,e.rollItemSize=t.rollItemSize??e.rollItemSize,e.disablePrev=t.disablePrev??e.disablePrev,e.disableNext=t.disableNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.itemsLen=t.itemsLen??e.itemsLen,e.disableRolling=t.disableRolling??e.disableRolling},tv=Object.assign({name:"TuiRollingNotification"},{__name:"index",props:{visibleLength:{type:Number,default:1,validator:e=>e>0},itemLines:{type:Number,default:1,validator:e=>e>0},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},sizeConfig:{type:Object,default:()=>({})},interval:Number,duration:{type:Number,default:null},delay:{type:Number,default:1e3},showControl:{type:Boolean,default:!0},showIndex:{type:Boolean,default:!0},seamless:{type:Boolean,default:!0},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},hoverPause:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},transparent:{type:Boolean,default:!1},backgroundBlur:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},appearance:{type:String,default:"background",validator:e=>["background","text","line","accent","none"].includes(e)},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"match",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},tagConfig:Object,tipConfig:Object,rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Nt(),n=ze("$global",null),s=Ee("rollNoti"),r=$(null),A=$(!1),c=$(null),p=$([]),g=je({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,itemsLen:0,disablePrev:!1,disableNext:!1,disableRolling:!1}),v=u((()=>Jl(a.visibleLength))),f=u((()=>Jl(a.itemLines))),h=u((()=>1===v.value)),m=u((()=>1===f.value)),y=u((()=>Qg({size:a.size,itemLines:f.value,sizeConfig:a.sizeConfig}))),b=u((()=>Zg({items:p.value,curRoll:g.curRoll,visibleLength:v.value}))),V=u((()=>Jg({props:a,type:b.value}))),w=u((()=>ev({props:a}))),x=u((()=>$e("cpt-rollnoti",{outerH:v.value*y.value.itemH+"px",itemH:`${y.value.itemH}px`,lineHeight:`${y.value.lineHeight}px`,fontSize:`${y.value.fontSize}px`,iconSize:`${y.value.iconSize}px`,gap:`${y.value.gap}px`,paddingX:`${y.value.paddingX}px`,paddingY:`${y.value.paddingY}px`}))),q=(e,t,l)=>{c.value=e,vn(g,e),((e,t={})=>{a.debug&&console.info(`[TuiRollingNotification:${s}] ${e}`,t)})("update",{info:e,from:t,action:l}),i("update",e,t,l)},k=e=>{c.value=e,vn(g,e),i("start",e)},S=(e,t,l)=>{c.value=t,vn(g,t),i("rolling",e,t,l)},C=(e,t)=>{c.value=t,vn(g,t),i("change",e,t)},B=e=>i("before-roll",e),z=e=>i("after-roll",e),O=(e,t)=>i("play",e,t),N=(e,t)=>i("stop",e,t),R=(e,t)=>i("pause",e,t),I=(e,t)=>i("resume",e,t),M=e=>i("wheel",e),P=()=>r.value?.getInfo?.()||c.value||{state:g};return bt("TuiRollNoti",{tagConfig:u((()=>a.tagConfig)),tipConfig:u((()=>a.tipConfig)),showIndex:u((()=>a.showIndex)),itemLines:f,item1Mod:h,line1Mod:m,locale:u((()=>n?.$gLang?.value||""))}),ln((()=>{p.value=Xg(o.default?.()||[]),p.value})),Be((()=>{A.value=!0})),t({state:g,play:(...e)=>r.value?.play?.(...e),stop:(...e)=>r.value?.stop?.(...e),pause:(...e)=>r.value?.pause?.(...e),resume:(...e)=>r.value?.resume?.(...e),toggle:(...e)=>r.value?.toggle?.(...e),prev:(...e)=>r.value?.prev?.(...e),next:(...e)=>r.value?.next?.(...e),goTo:(...e)=>r.value?.goTo?.(...e),getInfo:P,getState:P,forceUpdate:(...e)=>r.value?.forceUpdate?.(...e),isRolling:()=>r.value?.isRolling?.()||!1,isDisabled:()=>r.value?.isDisabled?.()||!1,scrollToStart:(...e)=>r.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>r.value?.scrollToEnd?.(...e)}),(t,l)=>{const a=ke("TuiRolling"),i=ke("TuiTyped");return d(),le(i,_e(V.value,{class:["tui-rolling-notification",`is-size-${e.size}`,{"is-initing":!A.value,"is-one-item":h.value,"is-one-line":m.value}],style:x.value}),{default:G((()=>[A.value?(d(),le(a,_e({key:0},w.value,{class:"tui-rnoti-rolling",ref_key:"rollingRef",ref:r,onStart:k,onRolling:S,onUpdate:q,onChange:C,onBeforeRoll:B,onAfterRoll:z,onPlay:O,onStop:N,onPause:R,onResume:I,onWheel:M}),{default:G((()=>[ee(t.$slots,"default")])),_:3},16)):T("",!0)])),_:3},16,["class","style"])}}}),lv={class:"tui-rnoti-label"},nv=Object.assign({name:"TuiRollingNotificationItem"},{__name:"item",props:{index:Number,icon:{type:String,default:"tui-icon ti-bell"},type:{type:String,default:"default",validator:e=>Ri.includes(e)},showIndex:{type:Boolean,default:null},item:Object},setup(e){const t=e,l=ze("TuiRollNoti",null),a=u((()=>null!==t.showIndex?t.showIndex:!!l?.showIndex?.value)),i=u((()=>Number.isFinite(Number(t.index))&&Number(t.index)>=0)),o=u((()=>({...l?.tipConfig?.value||{},lines:l?.itemLines?.value||1}))),n=u((()=>({...l?.tagConfig?.value||{},size:l?.tagConfig?.value?.size||"small",type:l?.tagConfig?.value?.type||t.type})));return(t,s)=>{const r=ke("TuiTag"),u=ke("TuiTextTip"),A=ke("TuiRollingItem");return d(),le(A,{class:O(["tui-rolling-notification-item",!p(l)?.item1Mod?.value&&`is-type-${e.type}`])},{default:G((()=>[a.value&&i.value?(d(),le(r,mt(_e({key:0},n.value)),{default:G((()=>[We(X(Number(e.index)+1),1)])),_:1},16)):T("",!0),e.icon?(d(),h("i",{key:1,class:O(["tui-rnoti-icon",e.icon])},null,2)):T("",!0),f("div",lv,[me(u,mt(qt(o.value)),{default:G((()=>[ee(t.$slots,"default")])),_:3},16)])])),_:3},8,["class"])}}}),av=["src","alt"],ov=Object.assign({name:"TuiIcon"},{__name:"index",props:{icon:String,image:String,imageAlt:String,imageFit:{type:String,default:"cover",validator:e=>["cover","contain","fill","none","scale-down"].includes(e)},imagePosition:{type:String,default:"center"},as:{type:String,default:"i",validator:e=>["i","span","button"].includes(e)},type:{type:String,default:null,validator:e=>!e||["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},shape:{type:String,default:"none",validator:e=>["none","rect","round","circle"].includes(e)},size:{type:[String,Number],default:"default"},width:[String,Number],height:[String,Number],padding:[String,Number],radius:[String,Number],color:String,backgroundColor:String,borderColor:String,borderWidth:[String,Number],borderStyle:{type:String,default:null},gradient:{type:[Boolean,Array,Object],default:!1},shadow:{type:[Boolean,String],default:!1},title:String,decorative:{type:Boolean,default:!0},spin:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},nativeType:{type:String,default:"button",validator:e=>["button","submit","reset"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=["linear","radial","conic"],a={tiny:12,small:14,default:16,large:20,huge:24},i=e,o=t,n=u((()=>!!i.image)),s=u((()=>n.value&&"none"===i.shape?"rect":i.shape)),r=u((()=>"none"!==s.value)),A=u((()=>i.type||"default")),c=u((()=>a[i.size]||i.size)),p=u((()=>!!i.gradient&&!n.value)),g=u((()=>!i.type&&r.value&&(i.backgroundColor||i.borderColor||p.value))),v=u((()=>{if(!i.icon)return[];const e=String(i.icon).trim().split(/\s+/).filter(Boolean),t=e.includes("tui-icon"),l=e.includes("cb-icon");return[e.some((e=>/^ti[s]?-.+/.test(e)))&&!t&&"tui-icon",e.some((e=>/^cb-.+/.test(e)))&&!l&&"cb-icon",...e].filter(Boolean)})),f=u((()=>n.value||v.value.length)),m=u((()=>i.decorative?"":i.imageAlt||i.title||"")),y=u((()=>{if(!p.value||i.type)return null;let e={};Array.isArray(i.gradient)?e.colors=i.gradient:"object"==typeof i.gradient&&(e=i.gradient);const t=l.includes(e.type)?e.type:"linear",a=e.angle??180,o=function(e){return Array.isArray(e)&&e.length?e.filter((e=>null!=e)).map((e=>String(e))):["var(--primary-base)","var(--info-base)"]}(e.colors);return o.length?"radial"===t?`radial-gradient(circle, ${o.join(", ")})`:"conic"===t?`conic-gradient(from ${a}deg, ${o.join(", ")})`:`linear-gradient(${a}deg, ${o.join(", ")})`:null})),b=u((()=>i.shadow?!0===i.shadow?null:i.shadow:null)),V=u((()=>i.decorative&&!i.title?{"aria-hidden":"true"}:n.value?"button"===i.as?{"aria-label":i.title||i.imageAlt||null}:{}:{role:"button"===i.as?null:"img","aria-label":i.title||null})),w=u((()=>$e("cpt-icon",{...q("fs",c.value,"smart"),...q("fc",i.color),...q("w",i.width,{smartAppend:!0,when:r.value&&null!=i.width}),...q("h",i.height,{smartAppend:!0,when:r.value&&null!=i.height}),...q("pd",i.padding,{smartAppend:!0,when:r.value&&null!=i.padding}),...q("bdra",i.radius,{smartAppend:!0,when:r.value&&null!=i.radius}),...q("bg",i.backgroundColor,{when:r.value}),...q("bdc",i.borderColor,{when:r.value}),...q("bdw",i.borderWidth,{smartAppend:!0,when:r.value&&null!=i.borderWidth}),...q("bds",i.borderStyle,{when:r.value}),...q("grad",y.value),...q("imgFit",i.imageFit,{when:n.value}),...q("imgPosition",i.imagePosition,{when:n.value}),...q("shadow",b.value,{when:b.value})}))),x=e=>{i.disabled||o("click",e)};return(t,l)=>f.value?(d(),le(gt(e.as),_e({key:0,class:["tui-icon-cpt",!n.value&&v.value,`is-shape-${s.value}`,`is-type-${A.value}`,"button"===e.as&&"is-as-button",{"has-image":n.value,"is-custom":g.value,"is-icon-gradient":p.value&&!r.value,"is-bg-gradient":p.value&&r.value,"is-shadow":e.shadow,"is-spin":e.spin&&!n.value,"is-disabled":e.disabled,"has-bdc":e.borderColor}],type:"button"===e.as?e.nativeType:null,disabled:"button"===e.as?e.disabled:null,title:e.title,style:w.value},V.value,{onClick:x}),{default:G((()=>[n.value?(d(),h("img",{key:0,class:"tui-icon-img",src:e.image,alt:m.value,draggable:"false"},null,8,av)):T("",!0)])),_:1},16,["class","type","disabled","title","style"])):T("",!0)}}),nn={type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis","focus"].includes(e)},decoType:{type:String,default:"A",validator:e=>["A","B","C","D","E","F","G","H","I","J"].includes(e)},size:{type:String,default:null,validator:e=>["large","default","small"].includes(e)},customColor:{type:[String,Array],default:null,validator:e=>"string"==st(e)?CSS.supports("color",e):"array"==st(e)?e.length>0&&e.every((e=>CSS.supports("color",e))):void 0},iconPosition:{type:String,default:"start",validator:e=>["start","end"].includes(e)},nativeType:{type:String,default:"button",validator:e=>["button","submit","reset"].includes(e)},decoDirection:{type:String,default:"br",validator:e=>["tl","tr","bl","br"].includes(e)},borderRadius:Number,decoThickness:{type:Number,default:0},decoOffset:Number,decoSize:{type:Number,default:0},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},link:{type:Boolean,default:!1},text:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textWithBG:{type:Boolean,default:!1},icon:String},iv=["disabled","type"],sv=Object.assign({name:"TuiButton"},{__name:"button",props:{...nn},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tService:{$gThemeScheme:a}}}=Tt(),i=e,o=u((()=>{const e=i.customColor;if(!e)return;let t=ut.genColors(e,7,50);return"dark"==a.value&&(t=t.reverse()),$e("custom",ut.genColorObj(t))})),n=t,s=ze("TuiButtonG",null),r=u((()=>s?.size?.value||i.size)),A=e=>{i.disabled||i.loading||n("click",e)};return Be((()=>{})),(e,t)=>(d(),h("button",{class:O([!e.link&&!e.text&&"tui-button",`is-type-${e.customColor?"custom":e.type}`,r.value&&`is-size-${r.value}`,{"tui-button-link":e.link,"tui-button-text":e.text,"is-plain":e.plain,"is-round":e.round,"is-circle":e.circle,"text-has-bg":e.textWithBG&&e.text,"is-disabled":e.disabled}]),disabled:e.disabled,type:e.nativeType,onClick:A,style:we(e.customColor?o.value:null)},[e.icon?(d(),h("i",{key:0,class:O(e.icon)},null,2)):T("",!0),p(l).default&&!e.circle?ee(e.$slots,"default",{key:1}):T("",!0)],14,iv))}}),rv=["disabled","type"],uv=Object.assign({name:"TuiButtonA1"},{__name:"buttonA1",props:{...nn},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tState:a,$tService:{$gThemeScheme:i}}}=Tt(),o=e,n=t,s=e=>{o.disabled||o.loading||n("click",e)},r=u((()=>$e("cpt-btn",{...q("bdra",o.borderRadius,{append:"px",zero:!0}),...q("decoOfs",o.decoOffset,{append:"px",zero:!0}),...q("decoThick",o.decoThickness,"px"),...q("decoSize",o.decoSize,"px")}))),A=u((()=>{const e=o.customColor;if(!e)return;let t=ut.genColors(e,7,50);return"dark"==i.value&&(t=t.reverse()),$e("custom",ut.genColorObj(t))}));return(e,t)=>(d(),h("button",{class:O(["tui-button","tui-button-a1",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,"B"==e.decoType&&`is-caret-${e.decoDirection}`,{"is-plain":e.plain,"is-disabled":e.disabled}]),disabled:e.disabled,type:e.nativeType,onClick:s,style:we([e.customColor?A.value:null,r.value])},[e.icon?(d(),h("i",{key:0,class:O(e.icon)},null,2)):T("",!0),p(l).default?ee(e.$slots,"default",{key:1}):T("",!0),"C"==e.decoType?(d(),h(ge,{key:2},[t[0]||(t[0]=f("div",{class:"bd-angle-left"},null,-1)),t[1]||(t[1]=f("div",{class:"bd-angle-right"},null,-1))],64)):T("",!0),"B"==e.decoType?(d(),h("div",{key:3,class:O(`tui-caret caret-${e.decoDirection}`),style:we(r.value)},null,6)):T("",!0)],14,rv))}}),cv=["disabled","type"],dv=Object.assign({name:"TuiButtonA2"},{__name:"buttonA2",props:{...nn},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tService:{$gThemeScheme:a}}}=Tt(),i=e,o=t,n=e=>{i.disabled||i.loading||o("click",e)},s=u((()=>$e("cpt-btn",{...q("bdra",i.borderRadius,{append:"px",zero:!0}),...q("decoThick",i.decoThickness,"px")}))),r=u((()=>{const e=i.customColor;if(!e)return;let t=ut.genColors(e,7,50);return"dark"==a.value&&(t=t.reverse()),$e("custom",ut.genColorObj(t))}));return(e,t)=>(d(),h("button",{class:O(["tui-button","tui-button-a2",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,{"is-plain":e.plain,"is-disabled":e.disabled,"has-icon":e.icon||p(l).icon}]),disabled:e.disabled,type:e.nativeType,onClick:n,style:we([e.customColor?r.value:null,s.value])},[e.icon?(d(),h("i",{key:0,class:O(e.icon)},null,2)):T("",!0),p(l).default&&!e.circle?ee(e.$slots,"default",{key:1}):T("",!0)],14,cv))}}),Av=["disabled","type"],fv=Object.assign({name:"TuiButtonA3"},{__name:"buttonA3",props:{...nn},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tService:{$gThemeScheme:a}}}=Tt(),i=e,o=t,n=e=>{i.disabled||i.loading||o("click",e)},s=u((()=>$e("cpt-btn",{...q("bdra",i.borderRadius>8?8:i.borderRadius,{append:"px",zero:!0}),...q("decoOfs",i.decoOffset,{append:"px",zero:!0}),...i.decoThickness>0&&{decoThick:i.decoThickness+"px",decoThick_hov:i.decoThickness+i.decoThickness/2+"px"}}))),r=u((()=>{const e=i.customColor;if(!e)return;let t=ut.genColors(e,7,50);return"dark"==a.value&&(t=t.reverse()),$e("custom",ut.genColorObj(t))}));return(e,t)=>(d(),h("button",{class:O(["tui-button","tui-button-a3",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,{"is-plain":e.plain,"is-disabled":e.disabled,"has-icon":e.icon||p(l).icon}]),disabled:e.disabled,type:e.nativeType,onClick:n,style:we([e.customColor?r.value:null,s.value])},[e.icon?(d(),h("i",{key:0,class:O(e.icon)},null,2)):T("",!0),p(l).default&&!e.circle?ee(e.$slots,"default",{key:1}):T("",!0)],14,Av))}}),pv=["disabled","type"],gv={class:"tui-btn-icon-wrap"},vv=Object.assign({name:"TuiButtonB1"},{__name:"buttonB1",props:{...nn},emits:["click"],setup(e,{emit:t}){const{proxy:{$slots:l,$tState:a,$tService:{$gThemeScheme:i}}}=Tt(),o=e,n=u((()=>o.icon||"start"==o.iconPosition&&"tui-icon ti-chevron-left"||"end"==o.iconPosition&&"tui-icon ti-chevron-right")),s=t,r=e=>{o.disabled||o.loading||s("click",e)},A=u((()=>{const e=o.customColor;if(!e)return;let t=ut.genColors(e,7,50);return"dark"==i.value&&(t=t.reverse()),$e("custom",ut.genColorObj(t))}));return(e,t)=>(d(),h("button",{class:O(["tui-button","tui-button-b1",`is-type-${e.customColor?"custom":e.type}`,`is-deco-type-${e.decoType.toLowerCase()}`,e.size&&`is-size-${e.size}`,"B"==e.decoType&&`is-caret-${e.decoDirection}`,{"is-plain":e.plain,"is-disabled":e.disabled,"is-icon-end":"end"===e.iconPosition}]),disabled:e.disabled,type:e.nativeType,onClick:r,style:we([e.customColor?A.value:null])},[f("div",gv,[f("i",{class:O(`tui-btn-icon ${n.value}`)},null,2)]),p(l).default?ee(e.$slots,"default",{key:0}):T("",!0)],14,pv))}}),hv=Object.assign({name:"TuiButtonGroup"},{__name:"buttonGroup",props:{size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},vertical:{type:Boolean,default:!1}},setup(e){const t=e;return bt("TuiButtonG",{size:u((()=>t.size)),appearance:"default"}),(t,l)=>(d(),h("div",{class:O(["tui-button-group",[`is-size-${e.size}`,{"is-vertical":e.vertical}]])},[ee(t.$slots,"default")],2))}}),mv=["title"],yv=Object.assign({name:"TuiTag",inheritAttrs:!1},{__name:"index",props:{tuiService:{type:Object,default:null},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","critical","fatal","info","emphasis"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},tone:{type:String,default:"base",validator:e=>["strong","weak","base"].includes(e)},appearance:{type:String,default:"rect",validator:e=>["rect","round","text","marker"].includes(e)},markerShape:{type:String,default:"dot",validator:e=>["dot","pill"].includes(e)},round:{type:Boolean,default:void 0},width:{type:[Number,String],default:void 0},maxWidth:{type:[Number,String],default:void 0},ellipsis:{type:Boolean,default:!0},autoTitle:{type:Boolean,default:!0},detectOverflow:{type:Boolean,default:!1},customColor:{type:[String,Array],default:null,validator:e=>"string"==st(e)?CSS.supports("color",e):"array"==st(e)?e.length>0&&e.every((e=>CSS.supports("color",e))):void 0}},setup(e){const t=e,{proxy:l}=Tt(),a=Ll(),i=$(null),o=$(!1),n=$(""),s=u((()=>l.$tService?.$gThemeScheme?.value||t.tuiService?.$gThemeScheme?.value)),r=u((()=>{const e=t.customColor;if(!e)return;let l=ut.genColors(e,7,50);return"dark"==s.value&&(l=l.reverse()),$e("custom",ut.genColorObj(l))})),A=u((()=>$e("tui-tag",{...q("w",t.width,"smart"),...q("maxw",t.maxWidth,"smart")}))),c=u((()=>!0===t.round?"round":!1===t.round?"rect":t.appearance)),g=u((()=>"round"===c.value)),v=u((()=>void 0!==t.width||void 0!==t.maxWidth)),f=u((()=>t.ellipsis&&t.autoTitle&&(v.value||t.detectOverflow))),m=u((()=>f.value)),y=u((()=>void 0!==a.title?a.title:f.value&&o.value?n.value:void 0)),b=u((()=>[a.style,A.value,r.value])),V=async()=>{if(!f.value)return o.value=!1,void(n.value="");await ye();const e=i.value;if(!e)return;const t=e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight;o.value=t,n.value=t?(e.textContent||"").trim():""};return Z((()=>[t.ellipsis,t.autoTitle,t.width,t.maxWidth,t.detectOverflow]),V,{flush:"post"}),Be(V),Ho(V),(t,l)=>{const o=Je("tui-resize");return Re((d(),h("span",_e({ref_key:"tagRef",ref:i},p(a),{class:[p(a).class,"tui-tag",`is-type-${e.customColor?"custom":e.type}`,`is-size-${e.size}`,`is-tone-${e.tone}`,`is-appearance-${c.value}`,`is-marker-${e.markerShape}`,""+(e.ellipsis?"is-ellipsis":""),""+(g.value?"is-round":"is-rect")],style:b.value,title:y.value,onMouseenterCapture:V}),[ee(t.$slots,"default")],16,mv)),[[o,{callback:V,disabled:!m.value}]])}}}),bv={key:0,class:"tui-tgl-label_deact"},Vv=["id","data-name","tabindex","aria-checked","aria-disabled","aria-labelledby","onKeydown"],wv={key:0,class:"tui-tgl-label"},Cv={key:1,class:"tui-tgl-label_act"},Ta=Object.assign({name:"TuiToggle"},{__name:"index",props:{id:String,name:String,activeText:String,inactiveText:String,inlinePrompt:Boolean,width:Number,appearance:{type:String,default:"toggleRect",validator:e=>["toggleRound","toggleRect","icon","iconPlain","iconButton"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},icon:{type:[String,Array],default:["tui-icon ti-toggle-off","tui-icon ti-toggle-on"]},modelValue:{type:[Boolean,String,Number],default:!1},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1}},emits:["change","update:modelValue","focus","blur"],setup(e,{emit:t}){const l=e,a=ze("TuiForm",null),i=ze("tuiFormItem",null),o=Ee("toggle"),n=u((()=>a?.size?.value||l.size)),s=u((()=>a?.disabled?.value||l.disabled)),r=u((()=>l.id||i?.fieldId?.value)),A=u((()=>l.name||i?.fieldName?.value)),c=u((()=>i?.labelId?.value||null)),p=u((()=>l.modelValue===l.activeValue)),g=u((()=>$e("cpt-tgl",{...q("w",l.width,"px")}))),v=u((()=>"array"==st(l.icon)?l.icon[1]:"string"==st(l.icon)?l.icon:void 0)),m=u((()=>"array"==st(l.icon)?2==l.icon.length?l.icon[0]:l.icon[1]:l.icon)),y=t,b=()=>{i?.registerControl?.({uid:o,id:r.value,name:A.value,labelable:!1})},V=()=>{if(s.value)return;const e=p.value?l.inactiveValue:l.activeValue;y("update:modelValue",e),y("change",e),i?.validate?.("change")},w=e=>{s.value||y("focus",e)},x=e=>{y("blur",e),i?.validate?.("blur")};return Be(b),dt((()=>{i?.unregisterControl?.(o)})),Z([r,A],b),(t,l)=>(d(),h("div",{class:O(["tui-toggle",""+(p.value?"is-active":"is-inactive"),`is-appr-${e.appearance}`,`is-size-${n.value}`,{"is-disabled":s.value}]),style:we(g.value)},[!e.inlinePrompt&&e.inactiveText?(d(),h("div",bv,X(e.inactiveText),1)):T("",!0),f("div",{id:r.value,"data-name":A.value,role:"switch",tabindex:s.value?-1:0,"aria-checked":p.value,"aria-disabled":s.value,"aria-labelledby":c.value,onClick:V,onKeydown:[cl(Ze(V,["prevent"]),["enter"]),cl(Ze(V,["prevent"]),["space"])],onFocus:w,onBlur:x,class:"tui-tgl-core"},[f("div",{class:O(`tui-tgl-inner ${e.appearance.includes("icon")?p.value?v.value:m.value:""}`)},null,2),e.inlinePrompt?(d(),h("div",wv,[!p.value&&e.inactiveText?(d(),h(ge,{key:0},[We(X(e.inactiveText),1)],64)):T("",!0),p.value&&e.activeText?(d(),h(ge,{key:1},[We(X(e.activeText),1)],64)):T("",!0)])):T("",!0)],40,Vv),!e.inlinePrompt&&e.activeText?(d(),h("div",Cv,X(e.activeText),1)):T("",!0)],6))}}),Tv={key:0,class:"tui-cpt-label"},Sv=Object.assign({name:"TuiControlPanelToggle"},{__name:"toggleControlPanel",props:{modelValue:{type:Boolean,default:!1},appearance:{type:String,default:"iconPlain"},size:{type:String,default:"default"},icon:{type:[String,Array],default:"tui-icon ti-cog"},showLabel:{type:Boolean,default:!1},label:{type:String,default:null},direction:{type:String,default:"h"}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{proxy:l,proxy:{$tState:a,$tService:i}}=Tt(),{controlPanelToggle:o,$controlPanel:n,$globalConfig:s,i18n:r}=i,A=e,c=t,p=$(!1),g=$(!1);Z((()=>n.value.visible),(e=>{p.value=e,c("update:modelValue",e),c("change",e)}));const v=e=>{p.value&&o()},f=u((()=>A.label?A.label:r("controlPanel.title")));return Be((()=>{null!=A.modelValue?(p.value=A.modelValue,n.value.show=A.modelValue):p.value=n.value.show,g.value=!0})),(t,l)=>(d(),h("div",{class:O(["tui-control-panel-toggle","v"==e.direction?"is-vertical":"is-horizontal"])},[e.showLabel?(d(),h("div",Tv,X(f.value),1)):T("",!0),g.value?(d(),le(Ta,{key:1,appearance:e.appearance,size:e.size,icon:e.icon,onClick:v,modelValue:p.value,"onUpdate:modelValue":l[0]||(l[0]=e=>p.value=e)},null,8,["appearance","size","icon","modelValue"])):T("",!0)],2))}}),$v={key:0,class:"tui-3dpt-label"},kv=Object.assign({name:"TuiT3DPanelToggle"},{__name:"toggleT3DPanel",props:{modelValue:{type:Boolean,default:!1},appearance:{type:String,default:"iconPlain"},size:{type:String,default:"default"},icon:{type:[String,Array],default:["tui-icon ti-grid","tui-icon ti-cube"]},showLabel:{type:Boolean,default:!1},label:{type:String,default:null},direction:{type:String,default:"h"}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{proxy:{$tState:l,$tService:a}}=Tt(),{$gT3D:i,$globalConfig:o,i18n:n}=a,s=e,r=t,A=$(!1),c=$(!1);Z((()=>o.value.t3D),(e=>{A.value=e,r("update:modelValue",e),r("change",e)}));const p=()=>{o.value.t3D=A.value},g=u((()=>s.label?s.label:n("controlPanel.label.t3D")));return Be((()=>{(s.modelValue!=i.value||A.value!=i.value)&&(A.value=i.value,r("update:modelValue",i.value)),c.value=!0})),(t,l)=>(d(),h("div",{class:O(["tui-3d-panel-toggle","v"==e.direction?"is-vertical":"is-horizontal"])},[e.showLabel?(d(),h("div",$v,X(g.value),1)):T("",!0),c.value?(d(),le(Ta,{key:1,appearance:e.appearance,size:e.size,icon:e.icon,onClick:p,modelValue:A.value,"onUpdate:modelValue":l[0]||(l[0]=e=>A.value=e)},null,8,["appearance","size","icon","modelValue"])):T("",!0)],2))}}),Sa=Object.assign({name:"TuiTyped",inheritAttrs:!1},{__name:"index",props:{appearance:{type:String,default:"background",validator:e=>["background","text","line","accent","none"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","critical","fatal","info","emphasis"].includes(e)},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)},transparent:{type:Boolean,default:!1},backgroundBlur:{type:Boolean,default:!0},hasShadow:{type:Boolean,default:!0},shadowColor:{type:String,default:"weak",validator:e=>["weakest","weaker","weak","base","strong","stronger","strongest","match"].includes(e)},linePosition:{type:String,default:"top",validator:e=>["top","right","bottom","left"].includes(e)},lineThickness:Number,customColor:{type:[String,Array],default:null,validator:e=>"string"==st(e)?CSS.supports("color",e):"array"==st(e)?e.length>0&&e.every((e=>CSS.supports("color",e))):void 0},tuiService:Object},setup(e){const{proxy:{$slots:t,$tService:l}}=Tt(),a=e;let i;i=a.tuiService?a.tuiService.$gThemeScheme:l.$gThemeScheme;const o=u((()=>["background","accent"].includes(a.appearance)||"strongInvert"!=a.tone&&"extremeInvert"!=a.tone?a.tone:"strong")),n=u((()=>$e("cpt-typed",{...q("lineBdw",a.lineThickness,{append:"px",when:("line"==a.appearance||"accent"==a.appearance)&&a.lineThickness})}))),s=je({colorArr:null,colorObj:null}),r=()=>{const e=a.customColor;if(!e)return s.colorArr=null,void(s.colorObj=null);let t=ut.genColors(e,7,50);"dark"==i.value&&(t=t.reverse()),s.colorArr=t,A()},A=()=>{if(!s.colorArr)return;const e=("background"==a.appearance||"accent"==a.appearance)&&a.transparent;s.colorObj=ut.genColorObj(s.colorArr,e?[.9,.8,.7,.5]:null)};Z((()=>[a.appearance,a.transparent]),(()=>{a.customColor&&A()})),Z((()=>a.customColor),(()=>{r()}),{deep:!0});const c=u((()=>s.colorObj?$e("custom",s.colorObj):null));return Be((()=>{a.customColor&&r()})),(t,l)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[f("div",_e(t.$attrs,{class:["tui-typed",`is-appr-${e.appearance}`,"none"!=e.appearance&&`is-type-${e.customColor?"custom":e.type}`,"none"!=e.appearance&&`is-tone-${o.value}`,("line"==e.appearance||"accent"==e.appearance)&&`is-pos-${e.linePosition}`,("background"==e.appearance||"accent"==e.appearance)&&e.hasShadow&&`is-shadow-${e.shadowColor}`,("background"==e.appearance||"accent"==e.appearance)&&""+(e.transparent?"is-trans":"is-plain"),("background"==e.appearance||"accent"==e.appearance)&&{"is-blur-bg":e.transparent&&e.backgroundBlur}],style:[n.value,e.customColor?c.value:null]}),[ee(t.$slots,"default")],16)])),_:3}))}}),Oi=["background","accent"],qv={default:1,invert:1},xv=["appearance","type","tone","transparent","backgroundBlur","hasShadow","shadowColor","linePosition","lineThickness","customColor","tuiService"],Pv=e=>{e&&!Oi.includes(e)&&console.warn(`TuiTypedGroup only supports appearance="background" or "accent". "${e}" has been normalized to "background".`)},Bv=e=>(Pv(e),Oi.includes(e)?e:"background"),zv=e=>"vertical"===e?"vertical":"horizontal",Rv=(e,t)=>e.slot||e.slotKey||e.key||t,go=e=>{const t=e?.type;return t===Sa||"TuiTyped"===t?.name||"TuiTyped"===t?.__name},Nv=(e={})=>xv.reduce(((t,l)=>(void 0!==e[l]&&(t[l]=e[l]),t)),{}),Di=e=>e.flatMap((e=>Ha(e)&&e.type===ge?Di(e.children||[]):[e])).filter((e=>Ha(e)&&"symbol"!=typeof e.type)),Iv=fa({name:"TuiTypedGroup",inheritAttrs:!1,props:{direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},items:{type:Array,default:null},typedConfig:{type:Object,default:()=>({})},gap:{type:[Number,String],default:0},seam:{type:String,default:"overlap",validator:e=>["overlap","none"].includes(e)},priority:{type:String,default:"semantic",validator:e=>["semantic","order"].includes(e)}},setup(e,{attrs:t,slots:l}){const a=u((()=>zv(e.direction))),i=u((()=>$e("cpt-tgroup",{...q("gap",e.gap,"smart")}))),o=(t,l)=>null!=t.priority?t.priority:"order"===e.priority?l+1:qv[t.type]||2,n=(t={},l=0)=>{const{key:a,slot:i,slotKey:o,class:n,style:s,priority:r,content:u,...A}=t,d={...e.typedConfig,...A};return d.appearance=Bv(d.appearance),{key:a??i??o??l,class:n,style:s,priority:r,content:u,typedProps:d}},s=(e,t,l,a=!0)=>({class:["tui-typed-group-item",0===t&&"is-first",t===l-1&&"is-last",1===l&&"is-single",t>0&&t<l-1&&"is-middle",a&&e.class],style:[a&&e.style,{zIndex:o(e,t)}]});return()=>Dt("div",{...t,class:["tui-typed-group",`is-dir-${a.value}`,`is-seam-${e.seam}`,t.class],style:[i.value,t.style]},e.items?.length?(e.items||[]).map(((e,t,a)=>{const i=n(e,t),o=Rv(e,t);return Dt(Sa,{key:i.key,...i.typedProps,...s(i,t,a.length)},{default:()=>l[o]?.(e)||i.content})})):(()=>{const t=Di(l.default?.()||[]),a=t.filter(go).length;let i=0;return t.map((t=>{if(!go(t))return t;const l=i++,o=t.props||{},r=n({...Nv(o),appearance:o.appearance||e.typedConfig.appearance},l),u=Object.keys(r.typedProps).reduce(((e,t)=>((void 0===o[t]||"appearance"===t)&&(e[t]=r.typedProps[t]),e)),{});return pa(t,{...u,...s(r,l,a,!1)},!0)}))})())}}),Ov={key:0,class:"tui-flex-debug-tag"},Dv=Object.assign({name:"TuiFlex"},{__name:"index",props:{direction:{type:String,default:"row",validator:e=>["row","column","row-reverse","column-reverse"].includes(e)},wrap:{type:[Boolean,String],default:!1,validator:e=>[!0,!1,"wrap","nowrap","reverse","wrap-reverse"].includes(e)},gap:[Number,String],rowGap:[Number,String],colGap:[Number,String],align:{type:String,default:null,validator:e=>null==e||["start","center","end","stretch","baseline"].includes(e)},justify:{type:String,default:null,validator:e=>null==e||["start","center","end","between","around","evenly"].includes(e)},inline:{type:Boolean,default:!1},full:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1},center:{type:Boolean,default:!1},between:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},setup(e){const t=e,l={start:"flex-start",center:"center",end:"flex-end",stretch:"stretch",baseline:"baseline"},a={start:"flex-start",center:"center",end:"flex-end",between:"space-between",around:"space-around",evenly:"space-evenly"},i=u((()=>t.vertical?"column":t.direction)),o=u((()=>!0===t.wrap?"wrap":"reverse"===t.wrap?"wrap-reverse":t.wrap||"nowrap")),n=u((()=>t.center?"center":l[t.align])),s=u((()=>t.center?"center":t.between?"space-between":a[t.justify])),r=u((()=>$e("cpt-flex",{display:t.inline?"inline-flex":"flex",dir:i.value,wrap:o.value,...q("gap",t.gap,{smartAppend:!0,zero:!0}),...q("rgap",t.rowGap,{smartAppend:!0,zero:!0}),...q("cgap",t.colGap,{smartAppend:!0,zero:!0}),...q("align",n.value),...q("jc",s.value)})));return(t,l)=>(d(),h("div",{class:O(["tui-flex-wrap",{"is-full":e.full,"is-debug":e.debug}]),style:we(r.value)},[ee(t.$slots,"default"),e.debug?(d(),h("span",Ov,X(i.value)+" / "+X(o.value),1)):T("",!0)],6))}}),Mv=Object.assign({name:"TuiScalePanel"},{__name:"index",props:{scale:{type:Number,default:1},scaleX:Number,scaleY:Number,scaleSafe:{type:Boolean,default:!0},minContentWidth:{type:Number,default:200},minContentHeight:{type:Number,default:200},width:[String,Number],height:[String,Number],contentWidth:[String,Number],contentHeight:[String,Number],padding:[String,Number],overflow:{type:String,default:"auto"},transformOrigin:{type:String,default:"center center"},stageClassName:String,contentClassName:String,debug:{type:Boolean,default:!1}},emits:["resize","scaleSafe"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=$(null),n=$(null),s=$(null),r=$(null),A=$(null),c=Ee("scalePanel"),g=`${c}_debug`,v=`${c}_measure`,m=je({width:0,height:0});let y=!1;const b=u((()=>null!=a.scaleX||null!=a.scaleY)),V=u((()=>a.scaleX??a.scale??1)),w=u((()=>a.scaleY??a.scale??1)),x=(e,t,l)=>{if(null==e)return t?t/l+"px":null;if("number"===st(e))return`${e}px`;const a=`${e}`.trim();return a.endsWith("px")?`${parseFloat(a)}px`:a.endsWith("%")?t?t*parseFloat(a)/100+"px":null:a},k=(e,t)=>{const l=(e=>{if(null==e)return null;const t=`${e}`.trim();if(!t.endsWith("px"))return null;const l=parseFloat(t);return Number.isFinite(l)?l:null})(e);return null==l?null:l*t+"px"},S=(e,t,l)=>a.scaleSafe&&t&&l?Math.min(e,t/l):e,T=u((()=>{return e=V.value,a.scaleSafe?Math.min(e,m.width&&a.minContentWidth?m.width/a.minContentWidth:e,m.height&&a.minContentHeight?m.height/a.minContentHeight:e):e;var e})),C=u((()=>b.value?S(V.value,m.width,a.minContentWidth):T.value)),B=u((()=>b.value?S(w.value,m.height,a.minContentHeight):T.value)),z=u((()=>x(a.contentWidth,m.width,C.value))),N=u((()=>x(a.contentHeight,m.height,B.value))),R=u((()=>k(z.value,C.value))),I=u((()=>k(N.value,B.value))),M=u((()=>{return e=C.value,t=B.value,b.value?`scale(${e}, ${t})`:`scale(${e})`;var e,t})),P=u((()=>"dev"===Zl())),D=u((()=>$e("cpt-scpan",{...q("w",a.width,{smartAppend:!0,zero:!0}),...q("h",a.height,{smartAppend:!0,zero:!0}),...q("pd",a.padding,{smartAppend:!0,zero:!0}),...q("stageW",z.value),...q("stageH",N.value),...q("visualW",R.value),...q("visualH",I.value),ov:a.overflow,tsfOrigin:a.transformOrigin,tsf:M.value}))),_=e=>e?{clientWidth:e.clientWidth,clientHeight:e.clientHeight,offsetWidth:e.offsetWidth,offsetHeight:e.offsetHeight,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight}:null,E=e=>{if(!a.debug)return;const t=(e=>{const t=r.value?getComputedStyle(r.value):null,l=A.value?getComputedStyle(A.value):null;return{reason:e,props:{scale:a.scale,scaleX:a.scaleX,scaleY:a.scaleY,scaleSafe:a.scaleSafe,minContentWidth:a.minContentWidth,minContentHeight:a.minContentHeight,width:a.width,height:a.height,contentWidth:a.contentWidth,contentHeight:a.contentHeight,padding:a.padding,overflow:a.overflow,transformOrigin:a.transformOrigin},scale:{requestedX:V.value,requestedY:w.value,safeX:C.value,safeY:B.value},size:{root:_(o.value),viewport:_(n.value),aligner:_(s.value),stage:_(r.value),content:_(A.value)},computed:{stageWidth:z.value,stageHeight:N.value,visualWidth:R.value,visualHeight:I.value,transform:M.value,stageTransform:t?.transform,stageTransformOrigin:t?.transformOrigin,contentPadding:l?.padding}}})(e);if(console.groupCollapsed)return console.groupCollapsed(`[TuiScalePanel debug] ${e}`),console.log(t),void console.groupEnd();console.log("[TuiScalePanel debug]",t)},j=e=>{a.debug&&(ot.c(g),ot.s(g,(async()=>{await ot.w(),E(e)})))},G=({width:e=0,height:t=0}={},l="resize")=>{const a=(({width:e=0,height:t=0}={})=>{const l=n.value||o.value;return{width:l?.clientWidth||e,height:l?.clientHeight||t}})({width:e,height:t});m.width=a.width,m.height=a.height,i("resize",{width:m.width,height:m.height,scaleX:C.value,scaleY:B.value}),j(l)};return Z((()=>[V.value,w.value,C.value,B.value]),(()=>{if(!a.scaleSafe||!P.value||y||C.value===V.value&&B.value===w.value)return;y=!0;const e={scaleX:V.value,scaleY:w.value,safeScaleX:C.value,safeScaleY:B.value,minContentWidth:a.minContentWidth,minContentHeight:a.minContentHeight};i("scaleSafe",e),console.warn("[TuiScalePanel] scaleSafe clamped scale.",e)})),Z((()=>a.scaleSafe),(()=>{y=!1})),Z((()=>[a.scale,a.scaleX,a.scaleY,a.scaleSafe,a.minContentWidth,a.minContentHeight,a.width,a.height,a.contentWidth,a.contentHeight,a.padding,a.overflow,a.transformOrigin]),(()=>{var e;e="props-change",ot.c(v),ot.s(v,(async()=>{await ot.w(),G({},e)}))}),{flush:"post"}),Z((()=>a.debug),(e=>{e?j("debug-enabled"):ot.c(g)}),{flush:"post"}),Be((()=>{G({},"mounted")})),dt((()=>{ot.c(g),ot.c(v)})),t({update:G,getSize:()=>({...m}),getScale:()=>({scaleX:C.value,scaleY:B.value})}),(t,l)=>{const a=Je("tui-resize");return Re((d(),h("div",{ref_key:"rootRef",ref:o,class:"tui-scale-panel",style:we(D.value)},[f("div",{ref_key:"viewportRef",ref:n,class:"tui-scpan-viewport"},[f("div",{ref_key:"alignerRef",ref:s,class:"tui-scpan-aligner"},[f("div",{ref_key:"stageRef",ref:r,class:O(["tui-scpan-stage",e.stageClassName])},[f("div",{ref_key:"contentRef",ref:A,class:O(["tui-scpan-content",e.contentClassName])},[ee(t.$slots,"default")],2)],2)],512)],512)],4)),[[a,{callback:G,uid:p(c)}]])}}}),_v={key:0,class:"tui-grid-debug-tag"},Ev=Object.assign({name:"TuiGrid"},{__name:"index",props:{rows:{type:Number,default:3},cols:{type:Number,default:3},gap:[Number,String],debug:{type:Boolean,default:!1},rowConfig:{type:Array,default:()=>[]},colConfig:{type:Array,default:()=>[]},cellConfig:{type:Object,default:()=>({})}},setup(e){const t=e,l=u((()=>t.rows*t.cols)),a=e=>Math.floor(e/t.cols),i=e=>e%t.cols,o=e=>`cell-${a(e)}-${i(e)}`,n=e=>{const l=`${a(e)}-${i(e)}`;return t.cellConfig[l]||{}},s=u((()=>Array.from({length:l.value},((e,t)=>({index:t,row:a(t),col:i(t),slotName:o(t),config:n(t)}))).filter((e=>!(e=>{if(n(e).hidden)return!0;const l=a(e),o=i(e);for(const[e,a]of Object.entries(t.cellConfig)){const[t,i]=e.split("-").map(Number),n=a.rowSpan||1,s=a.colSpan||1;if(l>=t&&l<t+n&&o>=i&&o<i+s&&(l!==t||o!==i))return!0}return!1})(e.index))))),r=u((()=>0===t.rowConfig.length?`repeat(${t.rows}, 1fr)`:t.rowConfig.map((e=>"number"==typeof e.size?`${e.size}fr`:e.size||"1fr")).join(" "))),A=u((()=>0===t.colConfig.length?`repeat(${t.cols}, 1fr)`:t.colConfig.map((e=>"number"==typeof e.size?`${e.size}fr`:e.size||"1fr")).join(" "))),c=u((()=>$e("cpt-grid",{tplRows:r.value,tplCols:A.value,...q("gap",t.gap,"smart")}))),p=e=>{const t=n(e);return $e("cpt-grid-item",{...q("rowEnd",`span ${t.rowSpan}`,{when:t.rowSpan}),...q("colEnd",`span ${t.colSpan}`,{when:t.colSpan}),...q("potEvt",t.pointerEvent)})};return(t,l)=>(d(),h("div",{class:O(["tui-grid-wrap",{"is-debug":e.debug}]),style:we(c.value)},[(d(!0),h(ge,null,Fe(s.value,(l=>(d(),h("div",{key:l.slotName,class:O(["tui-grid-item",`tui-cell-${l.row}-${l.col}`,l.config?.className]),style:we(p(l.index))},[ee(t.$slots,l.slotName,{row:l.row,col:l.col}),e.debug?(d(),h("span",_v,X(l.slotName),1)):T("",!0)],6)))),128))],6))}}),Lv=Object.assign({name:"TuiCol"},{__name:"col",props:{span:{type:Number,default:24},offset:{type:Number,default:0},push:{type:Number,default:0},pull:{type:Number,default:0},xs:{type:[Number,Object],default:null},sm:{type:[Number,Object],default:null},md:{type:[Number,Object],default:null},lg:{type:[Number,Object],default:null},xl:{type:[Number,Object],default:null},tag:{type:String,default:"div"}},setup(e){const t=e,l=ze("TuiRow",null),a=u((()=>l?.gutter?.value||0)),i=u((()=>l?.cols?.value||24)),o=u((()=>24!==i.value)),n=["xs","sm","md","lg","xl"],s=(e,t)=>"number"==typeof t?{span:t}:"object"==typeof t&&null!==t?t:{},r=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),A=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.min(Math.max(l,0),i.value):t},c=e=>e/i.value*100+"%",p=(e,t)=>e?`${e}${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,g=(e,t="")=>{const l={};if(r(e,"span")){const a=A(e.span,i.value);l[p(t,"w")]=c(a),l[p(t,"display")]=a>0?"block":"none"}if(r(e,"offset")&&(l[p(t,"ml")]=c(A(e.offset))),r(e,"push")){const a=A(e.push);l[p(t,"left")]=a>0?c(a):"auto"}if(r(e,"pull")){const a=A(e.pull);l[p(t,"right")]=a>0?c(a):"auto"}return l},v=u((()=>{const e=g({span:t.span,offset:t.offset,push:t.push,pull:t.pull});return n.forEach((l=>{const a=s(0,t[l]);Object.assign(e,g(a,l))})),e})),f=u((()=>{const e=["tui-col"];return e.push(`tui-col-${t.span}`),o.value&&e.push("is-custom-cols"),t.offset>0&&e.push(`tui-col-offset-${t.offset}`),t.push>0&&e.push(`tui-col-push-${t.push}`),t.pull>0&&e.push(`tui-col-pull-${t.pull}`),n.forEach((l=>{const a=s(0,t[l]);Object.keys(a).length>0&&(void 0!==a.span&&e.push(`tui-col-${l}-${a.span}`),void 0!==a.offset&&a.offset>0&&e.push(`tui-col-${l}-offset-${a.offset}`),void 0!==a.push&&a.push>0&&e.push(`tui-col-${l}-push-${a.push}`),void 0!==a.pull&&a.pull>0&&e.push(`tui-col-${l}-pull-${a.pull}`))})),e})),h=u((()=>$e("cpt-col",{...a.value&&{pdl:a.value/2+"px",pdr:a.value/2+"px"},...o.value?v.value:{}})));return(t,l)=>(d(),le(gt(e.tag),{class:O(f.value),style:we(h.value)},{default:G((()=>[ee(t.$slots,"default")])),_:3},8,["class","style"]))}}),Fv=Object.assign({name:"TuiRow"},{__name:"row",props:{gutter:{type:Number,default:0},cols:{type:Number,default:24},justify:{type:String,default:"start",validator:e=>["start","end","center","space-around","space-between","space-evenly"].includes(e)},align:{type:String,default:"top",validator:e=>["top","middle","bottom"].includes(e)},tag:{type:String,default:"div"}},setup(e){const t=e,l=u((()=>{const e=Number(t.cols);return Number.isFinite(e)&&e>0?e:24}));bt("TuiRow",{gutter:u((()=>t.gutter)),cols:l});const a=u((()=>["tui-row",24!==l.value&&"is-custom-cols","start"!==t.justify&&`is-justify-${t.justify}`,"top"!==t.align&&`is-align-${t.align}`])),i=u((()=>$e("cpt-row",{cols:l.value,...t.gutter&&{mgl:`-${t.gutter/2}px`,mgr:`-${t.gutter/2}px`}})));return(t,l)=>(d(),le(gt(e.tag),{class:O(a.value),style:we(i.value)},{default:G((()=>[ee(t.$slots,"default")])),_:3},8,["class","style"]))}}),jv={class:"tui-asp-content"},Wv={class:"tui-asp-doc-wrap"},Gv={class:"tui-asp-nav-wrap"},Hv={class:"tui-asp-nav-inner"},Kv={class:"tui-asp-nav-group"},Uv={class:"tui-asp-nav-item"},Yv=["onClick"],Qv={key:0,class:"tui-asp-nav-group"},Xv={class:"tui-asp-nav-item is-sub"},Zv=["onClick"],Jv=Object.assign({name:"TuiAnchorSpy"},{__name:"index",props:{data:{type:Array,default:[]}},setup(e){const t=e;let l=$(!1),a=$([0,-1]);const i=(e,i)=>{if(l.value=!0,a.value[0]=e,i>-1){let e=document.querySelectorAll("#"+t.data[a.value[0]].id+"> h2");a.value[1]=i,e[a.value[1]]?e[a.value[1]].scrollIntoView({behavior:"smooth"}):console.warn("This item cannot be found")}else{if(t.data[a.value[0]].id){let e=document.querySelector("#"+t.data[a.value[0]].id);e?e.scrollIntoView({behavior:"smooth"}):console.warn("This item cannot be found")}else console.warn("ID is not defined");a.value[1]=-1}},o=e=>{var t=document.querySelectorAll(".tui-asp-doc-component");qe.s("docScroll",(()=>{if(l.value)l.value=!1;else for(let l=t.length-1;l>=0;l--)if(e.scrollTop>=t[l].offsetTop-100){a.value[0]=l,a.value[1]=-1;let i=t[l].querySelectorAll("h2");for(let t=i.length-1;t>=0;t--)if(e.scrollTop>=i[t].offsetTop-100){a.value[1]=t;break}break}}),200)};return(t,l)=>{const n=ke("el-scrollbar");return d(),le(n,{class:"tui-anchor-spy",native:!0,onScroll:o},{default:G((()=>[f("div",jv,[f("div",Wv,[(d(!0),h(ge,null,Fe(e.data,((e,t)=>(d(),le(gt(e.component),{class:"tui-asp-doc-component",id:e.id},null,8,["id"])))),256))]),f("div",Gv,[f("div",Hv,[f("ul",Kv,[(d(!0),h(ge,null,Fe(e.data,((e,t)=>(d(),h("li",Uv,[f("div",{class:O(["tui-asp-nav-link is-main",{"is-active":p(a)[0]==t&&-1==p(a)[1]}]),onClick:e=>i(t)},X(e.name),11,Yv),p(a)[0]==t?(d(),h("ul",Qv,[(d(!0),h(ge,null,Fe(e.children,((e,l)=>(d(),h("li",Xv,[f("div",{class:O(["tui-asp-nav-link",{"is-active":p(a)[1]==l}]),onClick:e=>i(t,l)},X(e),11,Zv)])))),256))])):T("",!0)])))),256))])])])])])),_:1})}}}),eh={class:"tui-nc-inner"},th={key:2,class:"tui-nc-arrow"},Nl={__name:"content",props:{item:{type:Object,required:!0},pathIds:{type:Array,default:null},level:{type:Number,default:null},fromEllipsis:{type:Boolean,default:!1},hasSubmenu:{type:Boolean,default:!1}},setup(e){const t=e,{$gMenuTrigger:l}=ze("$global",null),a=ze("TuiNavNode",null),{parProps:i,state:o,dir:n,isOpenedItem:s,isActiveItem:r,isCurrentItem:A,isPopupMode:c,collapse:g,updatePath:v,clearOpenedPath:m,popperDelay:y,tipConfig:b,getItemId:V,getItemLabel:w,getItemDisabled:x}=ze("TuiNav",null),k=Ee("navCont"),S=u((()=>t.pathIds?.length?t.pathIds:a?.pathIds?.value||[])),C=u((()=>t.level??a?.baseLevel?.value??1)),$=u((()=>V(t.item))),B=u((()=>w(t.item))),z=u((()=>x(t.item))),N=u((()=>t.hasSubmenu&&!(g.value&&"v"===n.value&&1===C.value))),R=u((()=>"ellipsis"===$.value?o.actLeafInfo.fromEllipsis:A(S.value))),I=u((()=>"ellipsis"===$.value?o.actLeafInfo.fromEllipsis:r($.value))),M=u((()=>s($.value)));function P(){z.value||("click"==i.menuTrigger||"global"==i.menuTrigger&&"click"==l.value||!t.hasSubmenu||!c.value?v(S.value,t.item,t.fromEllipsis):m())}function D(){z.value||("hover"==i.menuTrigger||"global"==i.menuTrigger&&"hover"==l.value)&&t.hasSubmenu&&c.value&&!M.value&&qe.s(`${k}_${$.value}`,(()=>{v(S.value,t.item,t.fromEllipsis)}),300)}function _(){qe.c(`${k}_${$.value}`)}const E=u((()=>"v"===n.value||1==C.value&&!t.fromEllipsis?"angle-down":"angle-right")),j=u((()=>$e("cpt-nc",{...q("pdl",15*C.value,{append:"px",when:!c.value})})));return(t,l)=>{const a=ke("TuiTextTip"),i=Je("tui-popover");return d(),h("div",{class:O(["tui-nav-content",`tui-nc-level-${C.value}`,{"is-current":R.value,"is-active":I.value,"is-opened":M.value,"is-disabled":z.value,"has-submenu":e.hasSubmenu}]),style:we(j.value),onClick:P,onMouseenter:D,onMouseleave:_},[ee(t.$slots,"default",{},(()=>[Re((d(),h("div",eh,[e.item.icon||"v"==p(n)?(d(),h("i",{key:0,class:O(["tui-nc-icon",e.item.icon?e.item.icon:"v"==p(n)&&e.hasSubmenu?"tui-icon ti-folder":"tui-icon ti-file"])},null,2)):T("",!0),!p(g)||"v"==!p(n)||C.value>1?(d(),le(a,_e({key:1,class:"tui-nc-title"},p(b)),{default:G((()=>[We(X(B.value),1)])),_:1},16)):T("",!0),N.value?(d(),h("div",th,[f("i",{class:O(["tui-icon",`ti-${E.value}`])},null,2)])):T("",!0)])),[[i,{content:B.value,trigger:"hover",placement:"right",delay:p(y),zIndex:2e3,disabled:1==C.value&&!p(g)||C.value>1||M.value}]])]))],38)}}},lh={class:"tui-nav-pm-trigger"},nh={class:"tui-nav-pm-content"},ah={key:0,class:"tui-nav-pm-item"},oh={key:1,class:"tui-nav-pm-submenu"},$a={__name:"popMenu",props:{item:{type:Object,required:!0},pathIds:{type:Array,default:null},baseLevel:{type:Number,default:null},fromEllipsis:{type:Boolean,default:!1},popperClass:String},setup(e){const t=e,{$optFloaterTo:l}=ze("$global",null),a=ze("TuiNavNode",null),{parProps:i,state:o,dir:n,isOpenedItem:s,getItemId:r,getItemChildren:A}=ze("TuiNav"),c=$(!1),g=$(!0),v=$(null),m=$(null),y=u((()=>t.pathIds?.length?t.pathIds:a?.pathIds?.value||[])),b=u((()=>t.baseLevel??a?.baseLevel?.value??1)),V=u((()=>r(t.item))),w=u((()=>A(t.item)));function x(){c.value=!1}Z((()=>o.openedPath.slice()),(()=>{s(V.value)?v.value&&(c.value=!0,ye((()=>{S()}))):x()}),{immediate:!0});const q=u((()=>"h"===n.value&&1===b.value&&!t.fromEllipsis||t.fromEllipsis&&1===b.value?"bottom-start":"right-start")),{floatingStyles:k,update:S}=va(v,m,{placement:q.value,strategy:"fixed",middleware:[ha(i.popperOffset),ma({fallbackPlacements:["left-start","right-start"],padding:5}),ya({padding:5})]});return Be((()=>{g.value=!1})),dt((()=>{g.value=!0,x()})),(t,a)=>(d(),h("div",{class:"tui-nav-pop-menu",ref_key:"triggerRef",ref:v},[f("div",lh,[ee(t.$slots,"default")]),g.value?T("",!0):(d(),le(Lt,{key:0,to:p(l),fallback:"#tuiRoot",disabled:g.value},[me(Ue,{name:"fade"},{default:G((()=>[c.value?(d(),h("div",{key:0,ref_key:"popperRef",ref:m,class:O(["tui-nav-popper",[e.popperClass]]),style:we(p(k))},[f("div",nh,[(d(!0),h(ge,null,Fe(w.value,((t,l)=>(d(),h(ge,{key:p(r)(t)||l},[0===p(A)(t).length?(d(),h("div",ah,[me(Nl,{item:t,pathIds:[...y.value,p(r)(t)],level:b.value+1,fromEllipsis:e.fromEllipsis},null,8,["item","pathIds","level","fromEllipsis"])])):(d(),h("div",oh,[me($a,{item:t,baseLevel:b.value+1,pathIds:[...y.value,p(r)(t)],fromEllipsis:e.fromEllipsis},{default:G((()=>[me(Nl,{item:t,pathIds:[...y.value,p(r)(t)],hasSubmenu:!0,level:b.value+1,fromEllipsis:e.fromEllipsis},null,8,["item","pathIds","level","fromEllipsis"])])),_:2},1032,["item","baseLevel","pathIds","fromEllipsis"])]))],64)))),128))])],6)):T("",!0)])),_:1})],8,["to","disabled"]))],512))}},ih={key:0,class:"tui-nav-ellipsis"},sh={__name:"ellipsis",props:{items:{type:Array,default:()=>[]}},setup(e){const t=e,{parProps:l}=ze("TuiNav",null),a=["ellipsis"],i=u((()=>l?.props?.id||"id")),o=u((()=>l?.props?.label||"label")),n=u((()=>l?.props?.children||"children")),s=u((()=>({[i.value]:"ellipsis",[o.value]:"more",icon:l.ellipsisIcon,[n.value]:t.items})));return(t,i)=>e.items.length>0?(d(),h("div",ih,[me($a,{popperClass:"tui-nav-em-popper",item:s.value,pathIds:a,fromEllipsis:!0,baseLevel:1},{default:G((()=>[me(Nl,{class:"tui-nav-em-cont",item:s.value,pathIds:a,hasSubmenu:!0,fromEllipsis:!0,level:1},{default:G((()=>[f("i",{class:O(["tui-nav-em-icon",p(l).ellipsisIcon])},null,2)])),_:1},8,["item"])])),_:1},8,["item"])])):T("",!0)}},rh=350,uh="ease",vo=e=>{ot.w2().then(e)},ho=(e,t)=>{const l=a=>{a.target!==e||"height"!==a.propertyName||(e.removeEventListener("transitionend",l),t?.())};e.addEventListener("transitionend",l)};function Mi(e={}){const{duration:t=rh,easing:l=uh,withOpacity:a=!0}=e,i=a?`height ${t}ms ${l}, opacity ${t}ms ${l}`:`height ${t}ms ${l}`,o=e=>{e.style.height="",e.style.overflow="",e.style.transition="",a&&(e.style.opacity="")};return{beforeEnter:e=>{e.style.height="0px",e.style.overflow="hidden",e.style.transition="",a&&(e.style.opacity="0")},enter:(e,t)=>{ho(e,t),vo((()=>{e.style.transition=i,e.style.height=`${e.scrollHeight}px`,a&&(e.style.opacity="1")}))},afterEnter:e=>{o(e)},beforeLeave:e=>{e.style.height=`${e.scrollHeight}px`,e.style.overflow="hidden",e.style.transition="",a&&(e.style.opacity="1")},leave:(e,t)=>{ho(e,t),vo((()=>{e.style.transition=i,e.style.height="0px",a&&(e.style.opacity="0")}))},afterLeave:e=>{o(e)}}}const ch={key:0,class:"tui-nav-tree-cont"},sa={__name:"item",props:{item:{type:Object,required:!0},pathIds:{type:Array,required:!0},baseLevel:{type:Number,default:1},fromEllipsis:{type:Boolean,default:!1}},setup(e){const t=e,{parProps:l,dir:a,isOpenedItem:i,collapse:o,getItemId:n,getItemChildren:s,getItemDisabled:r}=ze("TuiNav",null);bt("TuiNavNode",{pathIds:u((()=>t.pathIds)),baseLevel:u((()=>t.baseLevel)),fromEllipsis:u((()=>t.fromEllipsis))});const A=u((()=>n(t.item))),c=u((()=>s(t.item))),g=u((()=>r(t.item))),v=u((()=>0===c.value.length)),f=u((()=>i(A.value))),m=Mi();return(l,i)=>(d(),h("div",{class:O(["tui-nav-item",{"is-disabled":g.value}])},[v.value?(d(),le(Nl,{key:0,item:e.item,fromEllipsis:e.fromEllipsis},null,8,["item","fromEllipsis"])):(d(),h(ge,{key:1},["h"==p(a)||"v"==p(a)&&p(o)?(d(),le($a,{key:0,item:e.item,fromEllipsis:e.fromEllipsis},{default:G((()=>[me(Nl,{item:e.item,fromEllipsis:e.fromEllipsis,hasSubmenu:!0},null,8,["item","fromEllipsis"])])),_:1},8,["item","fromEllipsis"])):(d(),h("div",{key:1,class:O(["tui-nav-tree",{"is-opened":f.value}])},[me(Nl,{item:e.item,fromEllipsis:e.fromEllipsis,hasSubmenu:!0},null,8,["item","fromEllipsis"]),me(Ue,{name:"fade",onBeforeEnter:p(m).beforeEnter,onEnter:p(m).enter,onAfterEnter:p(m).afterEnter,onBeforeLeave:p(m).beforeLeave,onLeave:p(m).leave,onAfterLeave:p(m).afterLeave},{default:G((()=>[f.value?(d(),h("div",ch,[(d(!0),h(ge,null,Fe(c.value,((l,a)=>(d(),le(sa,{key:p(n)(l)||a,item:l,baseLevel:t.baseLevel+1,fromEllipsis:e.fromEllipsis,pathIds:[...e.pathIds,p(n)(l)]},null,8,["item","baseLevel","fromEllipsis","pathIds"])))),128))])):T("",!0)])),_:1},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],2))],64))],2))}},mo=e=>{const{data:t,search:l,config:a={}}=e,i={findAll:!1,matchAll:!0,idKey:"id",childrenKey:"children",deepClone:!1,returnPath:!1,...a},{findAll:o,matchAll:n,idKey:s,childrenKey:r,deepClone:u,returnPath:A}=i,d=e=>String(e?.[s]??""),c=e=>e?.[r]||[],p=[];const g=function e(t,a=[],i=[]){for(let s=0;s<t.length;s++){const r=t[s],g=[...a,s],v=[...i,d(r)];if(n?Object.keys(l).every((e=>r[e]===l[e])):Object.keys(l).some((e=>r[e]===l[e]))){let e=u?JSON.parse(JSON.stringify(r)):{...r};if(e.pathIds=v,e.pathStr=v.join("_"),A&&(e={node:e,path:g,level:a.length,pathIds:v,pathStr:v.join("_")}),!o)return e;p.push(e)}const f=c(r);if(f.length>0){const t=e(f,g,v);if(!o&&t)return t}}return null}(t,[],[]);return o?p.length>0?p:null:g},dh={class:"tui-nav-inner"},Ah=Object.assign({name:"TuiNav"},{__name:"index",props:{defaultOpened:Array,defaultActive:Array,data:{type:Array,default:()=>[]},direction:{type:String,default:"v",validator:e=>["v","h"].includes(e)},collapse:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},ellipsisIcon:{type:String,default:"tui-icon ti-more-h"},popperOffset:{type:Number,default:4},popperDelay:{type:Number,default:1e3},menuTrigger:{type:String,default:"global",validator:e=>["click","hover","global"].includes(e)},router:{type:Boolean,default:!1},routerBase:{type:String,default:"/"},accordion:{type:Boolean,default:!1},maxVisible:{type:Number,default:0},props:{type:Object,default:()=>({id:"id",children:"children",label:"label",disabled:"disabled",path:"path"})},lineHeight:Number,titleLocaleMap:{type:Object,default:()=>({})},tipConfig:Object,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["change","open","close"],setup(e,{emit:t}){const{$gClickTarget:l,$gClickCounter:a,$gEscCounter:i,$optResizeCounter:o,$gLang:n,initResizeBy:s}=ze("$global",null),r=s(),A=e,c=Ee("nav"),g=$(null),v=$(!1),m=$(!1),y=t,b=u((()=>A.props?.id||"id")),V=u((()=>A.props?.children||"children")),w=u((()=>A.props?.label||"label")),x=u((()=>A.props?.disabled||"disabled")),k=u((()=>A.props?.path||"path")),S=e=>String(e?.[b.value]??""),C=e=>e?.[V.value]||[],B=e=>e?.[w.value]||"",z=e=>e?.[k.value]||null,N=e=>{const t=z(e);if(t)return t;const l=B(e);return l?((e="/",t="")=>`${String(e||"/").replace(/\/+$/,"")||""}/${String(t||"").replace(/^\/+/,"")}`.replace(/\/+/g,"/"))(A.routerBase,l):null},R=(e=[])=>[].concat(e||[]).map((e=>String(e))),I=(e=[])=>R(e).join("_"),M=(e,t,l=!1)=>{const a=R(e);return{pathIds:a,pathStr:I(a),item:t,fromEllipsis:l}},P=je({navMode:null,actLeafInfo:{item:null,pathIds:[],fromEllipsis:!1},openedPath:[],activePath:[],actInEllipsis:!1,maxVisible:0,resizing:!1,temp:{pathIds:[],routePath:null}}),D=u((()=>"h"==A.direction||"v"==A.direction&&A.collapse)),_=u((()=>P.resizing?0:A.maxVisible||P.maxVisible)),E=u((()=>A.data)),j=u((()=>{if(A.ellipsis&&"h"===A.direction&&_.value>0&&E.value.length>_.value){return{vItems:E.value.slice(0,_.value),hItems:E.value.slice(_.value)}}return{vItems:E.value,hItems:[]}}));function L(e){return P.openedPath.length>0&&P.openedPath.includes(String(e))}function F(e){return P.activePath.length>0&&P.activePath.includes(String(e))}function W(e,t,l=!1){const a=R(e);P.actLeafInfo={item:t,fromEllipsis:l,pathIds:a},P.activePath=[...a],P.actInEllipsis=l}function H(e=[]){P.openedPath=[...R(e)]}function U(e){const t=function(e){const t=[],l=e=>{const a=S(e);a&&t.push(a),C(e).forEach(l)};return l(e),t}(e);P.openedPath=P.openedPath.filter((e=>!t.includes(String(e))))}function Y(){D.value?P.openedPath.length>0&&(H([]),P.activePath.length>0&&(P.activePath=[],P.actLeafInfo.pathIds.length>0&&(P.activePath=[...P.actLeafInfo.pathIds],P.actInEllipsis=P.actLeafInfo.fromEllipsis)),P.temp.pathIds=[]):!A.collapse&&P.actLeafInfo.pathIds.length>0&&(P.openedPath=P.actLeafInfo.pathIds.slice(0,-1))}function X(e=!0){const t=R(P.actLeafInfo.pathIds);if(t.length>0){const l=t[0],a=j.value.vItems.findIndex((e=>S(e)===l)),i=j.value.hItems.findIndex((e=>S(e)===l));a>-1&&(P.actLeafInfo.fromEllipsis=!1,P.actInEllipsis=!1),i>-1&&(P.actLeafInfo.fromEllipsis=!0,P.actInEllipsis=!0),e&&Y()}}const Q=ga();Z((()=>[Q.path,E.value]),(async([e,t])=>{if(!A.router||0==t.length)return;P.temp.routePath||(P.temp.routePath=e);const l=P.actLeafInfo.item,a=N(l);if(a&&e===a)return;let i=mo({data:E.value,search:{[k.value]:e},config:{matchAll:!1,idKey:b.value,childrenKey:V.value}});if(!i){const t=((e="")=>{const t=String(A.routerBase||"/").replace(/\/+$/,""),l=String(e||"");return t&&"/"!==t?l.startsWith(t)?l.slice(t.length).replace(/^\/+/,""):null:l.replace(/^\/+/,"")})(e);t&&(i=mo({data:E.value,search:{[w.value]:t},config:{matchAll:!1,idKey:b.value,childrenKey:V.value}}))}if(i){W(i.pathIds,i,!1),X(!0),await(async()=>{await ye(),await ot.w2()})();const e=g.value?.querySelector(".is-current"),t=ct.get1stParent(g.value,".is-dragable");e&&!t&&e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}}),{immediate:!0}),Z((()=>[A.collapse,A.direction]),(([e,t])=>{(!e||"h"==t)&&Y()})),bt("TuiNav",{parProps:A,state:P,dir:u((()=>A.direction)),collapse:u((()=>A.collapse&&"v"==A.direction)),menuItems:E,splitItems:j,isPopupMode:D,popperDelay:u((()=>A.popperDelay)),tipConfig:u((()=>A.tipConfig)),pathToString:I,getItemId:S,getItemChildren:C,getItemLabel:e=>{const t=((e="")=>{const t=A.titleLocaleMap||{};return t[e]||t[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[e]||e]})(n?.value||"");return t&&e?.[t]?e[t]:e?.[A.titleLocaleMap?.fallback||"title"]||B(e)||""},getItemRawLabel:B,getItemDisabled:e=>!!e?.[x.value],getItemPath:z,isOpenedItem:L,isActiveItem:F,isCurrentItem:function(e){return!!P.actLeafInfo.pathIds.length&&((e=[],t=[])=>{const l=R(e),a=R(t);return l.length===a.length&&l.every(((e,t)=>e===a[t]))})(P.actLeafInfo.pathIds,e)},updatePath:async(e,t,l=!1)=>{const a=R(e),i=S(t),o=C(t).length>0,n=P.openedPath.indexOf(i);if(-1===n)return P.actInEllipsis=l,P.temp.pathIds=a,D.value?("ellipsis"!==i&&!F(i)&&(P.activePath=[...a]),void(o?(H(a),y("open",M(a,t,l))):(y("change",M(a,t,l)),W(a,t,l),H(a.slice(0,-1)),await ye(),Y()))):void(o?(y("open",M(a,t,l)),function(e,t){A.accordion?P.openedPath=[...R(e)]:L(t)||(P.openedPath=[...P.openedPath,String(t)])}(a,i)):(y("change",M(a,t,l)),W(a,t,l)));y("close",M(a,t,l)),D.value?H(P.openedPath.slice(0,n)):U(t)},clearOpenedPath:Y}),Z((()=>i.value),(()=>{D.value&&Y()})),Z((()=>a.value),(()=>{!function(e){if(!D.value)return;const t=e.closest(".tui-nav"),l=e.closest(".tui-nav-content");!t&&!l&&Y()}(l.value)})),Z((()=>o.value),((e,t)=>{if("root"!=r.value(A.resizeObserver)||"v"==A.direction)return;const{clientWidth:l,clientHeight:a}=g.value;e>t&&K({width:l})}));const K=async e=>{if(g.value){if(P.resizing=!0,await ye(),"h"==A.direction&&A.ellipsis&&!A.maxVisible){const t=g.value.querySelectorAll(".tui-nav-item");let l;t.length>0&&(l=Array.from(t).map((e=>e.offsetWidth)));let a=48,i=0;for(let t of l){if(a+=t,!(a<=e.width))break;i++}P.maxVisible=i,P.resizing=!1,X(!0)}v.value||(v.value=!0,A.defaultActive?.length&&(P.activePath=R(A.defaultActive),P.actLeafInfo.pathIds=[...P.activePath]),X(!0),A.defaultOpened?.length&&(P.openedPath=R(A.defaultOpened)))}},J=u((()=>$e("cpt-nav",{...q("lh",A.lineHeight,"px")})));return Be((()=>{m.value=!0})),(t,l)=>{const a=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{ref_key:"navRef",ref:g,style:we(J.value),class:O(["tui-nav",`is-dir-${e.direction}`,{"is-collapse":e.collapse&&"v"==e.direction,"is-ellipsis":e.ellipsis&&"h"==e.direction,"is-popup":D.value,"is-tree":!D.value}])},[f("div",dh,["h"==e.direction?(d(),h(ge,{key:0},[(d(!0),h(ge,null,Fe(j.value.vItems,((e,t)=>(d(),le(sa,{key:S(e)||t,item:e,pathIds:[S(e)]},null,8,["item","pathIds"])))),128)),e.ellipsis&&"h"===e.direction&&j.value.hItems.length>0?(d(),le(sh,{key:0,items:j.value.hItems},null,8,["items"])):T("",!0)],64)):(d(!0),h(ge,{key:1},Fe(E.value,((e,t)=>(d(),le(sa,{key:S(e)||t,item:e,pathIds:[S(e)]},null,8,["item","pathIds"])))),128))])],6)),[[Ye,m.value],[a,{callback:K,uid:p(c),disabled:"self"!=p(r)(e.resizeObserver)&&v.value}]])])),_:1})}}}),fh={key:0,class:"tui-rollni-arrows"},ph={class:"tui-rollni-indics"},gh=["onClick","onMouseenter"],vh=500,hh=Object.assign({name:"TuiRollingNavIconControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},type:{type:String,default:"enhanced",validator:e=>["base","enhanced"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)}},setup(e){const t=e;let l=null;const a=u((()=>Math.max(0,Number(t.state.curRoll)||0))),i=u((()=>Math.max(0,Number(t.state.maxRoll)||0))),o=u((()=>!!t.state.disableRolling)),n=u((()=>o.value||!!t.state.disablePrev)),s=u((()=>o.value||!!t.state.disableNext)),r=u((()=>"enhanced"===t.type)),A=()=>{l&&(clearTimeout(l),l=null)},c=e=>{t.actions.goTo(e)};return dt(A),(u,p)=>{const g=ke("TuiButton");return d(),h("div",{class:O(["tui-rolling-nav-icon-control",`is-type-${e.type}`,{"is-disabled":o.value}])},[r.value?(d(),h("div",fh,[me(g,{link:"",size:e.size,disabled:n.value,onClick:p[0]||(p[0]=t=>e.actions.prev())},{default:G((()=>[...p[2]||(p[2]=[f("i",{class:"tui-icon ti-chevron-left"},null,-1)])])),_:1},8,["size","disabled"]),me(g,{link:"",size:e.size,disabled:s.value,onClick:p[1]||(p[1]=t=>e.actions.next())},{default:G((()=>[...p[3]||(p[3]=[f("i",{class:"tui-icon ti-chevron-right"},null,-1)])])),_:1},8,["size","disabled"])])):T("",!0),f("div",ph,[(d(!0),h(ge,null,Fe(i.value,(e=>(d(),h("div",{key:e,class:O(["tui-rollni-indic",{"is-active":e-1===a.value}]),onClick:l=>(e=>{"click"===t.trigger&&c(e)})(e-1),onMouseenter:a=>(e=>{"hover"===t.trigger&&(A(),l=setTimeout((()=>{c(e)}),vh))})(e-1),onMouseleave:A},null,42,gh)))),128))])],2)}}}),fl={base:{frameW:84,frameH:64,iconSize:24,fontSize:14,labelGap:2,border:1},small:.8,default:1,large:1.2},en=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},mh=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?l:t},xl=(e,t,l=0,a=0)=>{const i=en(e,l)*t;return Math.max(a,Math.round(i))},yh=({size:e,sizeConfig:t})=>{const l=t?.scale||{};return mh(t?.[e]??l[e],fl[e]||fl.default)},bh=e=>({...fl.base,...e?.baseConfig||{},...e?.base||{}}),Vh=({size:e="default",sizeConfig:t}={})=>{const l=bh(t),a=yh({size:e,sizeConfig:t}),i={frameW:xl(l.frameW,a,fl.base.frameW,1),frameH:xl(l.frameH,a,fl.base.frameH,1),iconSize:xl(l.iconSize,a,fl.base.iconSize,1),fontSize:xl(l.fontSize,a,fl.base.fontSize,1),labelGap:xl(l.labelGap,a,fl.base.labelGap,0),border:xl(l.border,a,fl.base.border,0)},o=Math.ceil(1.2*i.fontSize),n=Math.max(i.iconSize+2*i.border,i.frameH-o-i.labelGap);return{...i,circleSize:n}},wh=e=>en(e,10),Ch=({direction:e,controlPosition:t})=>t||("v"===e?"top":"right"),Th=e=>"top"===e?"vr":"left"===e?"hr":"right"===e?"h":"v",Sh=({direction:e,controlPosition:t})=>{const l="top"===t||"bottom"===t;return"h"===e?l?"overlay":"reserve":l?"reserve":"overlay"},$h=({direction:e,controlType:t,controlPosition:l})=>t||("h"===e?"top"===l||"bottom"===l?"base":"enhanced":"left"===l||"right"===l?"base":"enhanced"),yo=({direction:e,element:t})=>t?"h"===e?t.clientWidth:t.clientHeight:0,kh=({direction:e,outerSize:t,size:l,controlLayout:a,controlType:i,controlPosition:o,controlGap:n})=>{const s=Number(t)||0;if("reserve"!==a||!("h"===e?"left"===o||"right"===o:"top"===o||"bottom"===o))return s;const r="base"===i?24:"h"===e?l.frameW:l.frameH;return Math.max(0,s-r-en(n,0))},qh=({direction:e,outerSize:t,size:l,gap:a})=>{const i="h"===e?l.frameW:l.frameH,o=Math.max(1,en(i,0)+en(a,0));return Math.max(1,Math.floor((Number(t)||0)/o)||1)},xh=({index:e,visibleLength:t})=>e<0||!t?0:Math.floor(e/t),_i=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?_i(e.children):[e])),Ph=e=>(_i(e||[])||[]).map((e=>e?.props)).filter((e=>e&&void 0!==e.value)),la=(e,t)=>(e||[]).findIndex((e=>e?.value===t)),Bh=(e,t=0)=>{const l=e||[];if(!l.length)return null;const a=Math.max(0,Math.min(t,l.length-1));for(let e=0;e<l.length;e++){const t=l[a+e];if(t&&!t.disabled)return t;const i=l[a-e];if(e&&i&&!i.disabled)return i}return null},zh=({props:e,locale:t,titleLocaleMap:l})=>{const a=e.item||{},i=l||{},o=t||"",n=i[o]||i[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[o]||o],s=i.fallback||"title";return n&&a?.[n]?a[n]:e.title||a?.[s]||e.label||a?.label||""},Rh={key:1,class:"tui-rollni-debug"},Nh=Object.assign({name:"TuiRollingNavIcon"},{__name:"index",props:{modelValue:[String,Number],duration:Number,direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},sizeConfig:{type:Object,default:()=>({})},gap:{type:Number,default:10},controlType:{type:String,default:null,validator:e=>null===e||["base","enhanced"].includes(e)},controlPosition:{type:String,default:null,validator:e=>null===e||["top","right","bottom","left"].includes(e)},frameShape:{type:String,default:"round",validator:e=>["none","round","circle"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},closeable:{type:Boolean,default:!1},wheelRolling:{type:Boolean,default:null},rollingConfig:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1},motionBlur:{type:Boolean,default:!0},tipConfig:Object,titleLocaleMap:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},controlFit:{type:[Boolean,String],default:!1,validator:e=>!1===e||!0===e||["fit","halfFit"].includes(e)}},emits:["start","rolling","change","update","update:modelValue"],setup(e,{expose:t,emit:l}){const a=Nt(),i=ze("$global",null),o=i?.initResizeBy?.(),n=i?.$optResizeCounter,s=Ee("rollNavIcon"),r=e,A=l,c=$(null),g=$(null),v=$(!1),m=$(1),y=$(null),b=$([]),V=$(null),w=$(0),x=$([]),k=$({}),S=je({outerSize:0}),C=u((()=>Vh({size:r.size,sizeConfig:r.sizeConfig}))),B=u((()=>wh(r.gap))),z=u((()=>Ch({direction:r.direction,controlPosition:r.controlPosition}))),N=u((()=>Th(z.value))),R=u((()=>Sh({direction:r.direction,controlPosition:z.value}))),I=u((()=>$h({direction:r.direction,controlType:r.controlType,controlPosition:z.value}))),M=u((()=>la(b.value,r.modelValue))),P=u((()=>xh({index:M.value,visibleLength:m.value}))),D=u((()=>V.value?.state||{})),_=u((()=>!!V.value&&!(V.value?.disableRolling??D.value.disableRolling))),E=u((()=>!0===r.controlFit||"fit"===r.controlFit?"fit":"halfFit"===r.controlFit?"halfFit":"none")),j=u((()=>$e("cpt-rollni",{...q("outerSize",S.outerSize,"px"),frameW:`${C.value.frameW}px`,frameH:`${C.value.frameH}px`,iconSize:`${C.value.iconSize}px`,fontSize:`${C.value.fontSize}px`,labelGap:`${C.value.labelGap}px`,border:`${C.value.border}px`,circleSize:`${C.value.circleSize}px`,gap:`${B.value}px`}))),L=u((()=>{const e=r.rollingConfig||{};return{...e,direction:r.direction,mode:"page",visibleLength:m.value,initIndex:y.value,duration:r.duration??e.duration??500,debug:r.debug,motionBlur:r.motionBlur,resizeObserver:"none",controlDirection:N.value,controlLayout:R.value,autoRolling:!1,fillData:!1,showControl:!1,seamless:!1,wheelRolling:r.wheelRolling??e.wheelRolling??!0,interceptWheel:e.interceptWheel??!0,slotObserver:!0}})),F=(e,t={})=>{r.debug&&console.info(`[TuiRollingNavIcon:${s}] ${e}`,{...t,snapshot:{itemsLen:b.value.length,visibleLength:m.value,activeIndex:M.value,activePage:P.value,initIndex:y.value,curRoll:D.value.curRoll,curRollCalc:D.value.curRollCalc,maxRollCalc:D.value.maxRollCalc,disableRolling:V.value?.disableRolling??D.value.disableRolling}})},W=e=>e&&"none"!==e?o?.value?o.value(e):"global"===e?"root":"self":"none",H=e=>la(b.value,e),U=e=>qh({direction:r.direction,outerSize:e,size:C.value,gap:B.value}),Y=(e,t=U(e),l={})=>(({itemDelta:e=0}={})=>{const t=E.value;return"fit"===t||"halfFit"===t&&(e>0||!_.value)})(l)&&"reserve"===R.value&&b.value.length<=t,Q=()=>(b.value=Ph(a.default?.()||[]),b.value),K=(e={})=>{k.value=e;const t=yo({direction:r.direction,element:c.value});S.outerSize=t;const l=U(t),a=(e=>kh({direction:r.direction,outerSize:e,size:C.value,controlLayout:R.value,controlType:I.value,controlPosition:z.value,controlGap:B.value}))(t);if(Y(t,l,e))return m.value=l,void F("visible:full",{outerSize:t,fullVisibleLength:l,availableSize:a,mode:E.value,context:e});const i=(e=>(m.value=U(e),m.value))(a);F("visible:reserve",{outerSize:t,fullVisibleLength:l,availableSize:a,nextVisibleLength:i,controlLayout:R.value,mode:E.value,context:e})},J=(e,t=k.value)=>{const l=Number(e?.rollWrapSize);if(!Number.isFinite(l)||l<=0)return;const a=S.outerSize||yo({direction:r.direction,element:c.value}),i=U(a);if(Y(a,i,t))return m.value=i,void F("actualVisible:full",{outerSize:a,wrapSize:l,fullVisibleLength:i,mode:E.value,context:t});const o=U(l);m.value=Math.min(m.value,o),F("actualVisible:shrink",{outerSize:a,wrapSize:l,wrapVisibleLength:o,nextVisibleLength:m.value,mode:E.value,context:t})},te=(e,t)=>{w.value=t,A("update:modelValue",e.value),A("change",e.value,t)},ae=async(e="active")=>{if(await ye(),!v.value||M.value<0)return void F("activeScroll:skip",{source:e,inited:v.value,activeIndex:M.value});const t=P.value;D.value.curRoll!==t?(F("activeScroll:goTo",{source:e,targetPage:t,modelValue:r.modelValue}),g.value?.goTo?.(t,{source:`navIcon:${e}`})):F("activeScroll:samePage",{source:e,targetPage:t,modelValue:r.modelValue})},ie={init:{syncItems:!0,ensureActive:!0,syncVisible:!0,setInitIndex:!0},items:{ensureActive:!0,syncVisible:!0,force:!0},active:{ensureActive:!0,alignActive:!0},resize:{syncVisible:!0,force:!0,alignActive:!0},layout:{syncVisible:!0,force:!0,alignActive:!0},sizeConfig:{syncVisible:!0,force:!0,alignActive:!0},forceUpdate:{syncItems:!0,syncVisible:!0,force:!0,alignActive:!0}},oe=async(e="forceUpdate",t={})=>{const l={syncItems:!1,ensureActive:!1,syncVisible:!1,setInitIndex:!1,force:!1,alignActive:!1,...ie[e]||ie.forceUpdate,...t},a=l.source||e,i={type:e,source:a,itemDelta:l.itemDelta||0};if(F("action:start",{type:e,source:a,policy:l}),l.syncItems&&Q(),l.ensureActive&&(()=>{const e=b.value;if(!e.length)return;const t=M.value;if(t>=0&&!e[t]?.disabled)return void(w.value=t);const l=Bh(e,w.value),a=la(e,l?.value);l&&l.value!==r.modelValue&&te(l,a)})(),await ye(),l.syncVisible&&K(i),l.setInitIndex)return y.value=P.value,x.value=b.value,v.value=!0,void F("action:initIndex",{source:a,initIndex:y.value});if(await ye(),l.force){const t=(e=>{if("items:add"===e||"items:remove"===e)return e})(a);F("action:forceUpdate",{type:e,source:a,rollingAction:t,alignActive:l.alignActive}),await(g.value?.forceUpdate?.(t)),await ye()}l.alignActive&&(F("action:activeScroll",{type:e,source:a}),await ae(a))},ne=()=>g.value?.getInfo?.(),se=()=>oe("resize"),re=(e,t,l)=>{V.value=e,J(e),F("rolling:update",{from:t,action:l}),A("update",e,t,l)},ue=e=>{V.value=e,J(e),F("rolling:start"),A("start",e)},Ae=(e,t,l)=>{V.value=t,F("rolling:move",{value:e,source:l}),A("rolling",e,t,l)};return bt("TuiRollNavI",{tipConfig:u((()=>r.tipConfig)),modelValue:u((()=>r.modelValue)),closeable:u((()=>r.closeable)),frameShape:u((()=>r.frameShape)),locale:u((()=>i?.$gLang?.value||"")),titleLocaleMap:u((()=>r.titleLocaleMap)),selectItem:async e=>{const t=H(e),l=b.value[t];!l||l.disabled||(te(l,t),await oe("active",{source:"select"}))},getItemIndex:H}),ln((()=>{Q()})),Z((()=>b.value.map((e=>`${e.value}:${e.disabled}`)).join("|")),(async()=>{const e=x.value,t=b.value;if(x.value=t,!v.value)return;const l=t.length-e.length;await oe("items",{source:l>0?"items:add":l<0?"items:remove":"items:update",itemDelta:l})}),{flush:"post"}),Z((()=>r.modelValue),(async()=>{await oe("active")})),Z((()=>[r.direction,r.size,r.gap,r.controlPosition,r.controlFit]),(()=>oe("layout"))),Z((()=>r.sizeConfig),(()=>oe("sizeConfig")),{deep:!0}),Z((()=>n?.value),((e,t)=>{!v.value||"root"!==W(r.resizeObserver)||(e||0)>(t||0)&&se()})),Be((async()=>{await oe("init")})),t({prev:()=>g.value?.prev?.(),next:()=>g.value?.next?.(),goTo:(e,t)=>g.value?.goTo?.(e,t),forceUpdate:(e={})=>oe("forceUpdate","object"==typeof e?e:{}),getInfo:ne,getState:ne,scrollActiveIntoView:ae}),(t,l)=>{const a=ke("TuiRolling"),i=Je("tui-resize");return Re((d(),h("div",{class:O(["tui-rolling-nav-icon",`is-dir-${e.direction}`,`is-size-${e.size}`,`is-frame-${e.frameShape}`,`is-ctrl-type-${I.value}`,`is-ctrl-pos-${z.value}`,{"is-initing":!v.value}]),ref_key:"containerRef",ref:c,style:we(j.value)},[v.value?(d(),le(a,_e({key:0,class:"tui-rolling-nav-icon-roll"},L.value,{ref_key:"rollingRef",ref:g,onStart:ue,onRolling:Ae,onUpdate:re}),{controls:G((({state:t,actions:l})=>[me(hh,{state:t,actions:l,type:I.value,direction:e.direction,trigger:e.trigger,size:e.size},null,8,["state","actions","type","direction","trigger","size"])])),default:G((()=>[ee(t.$slots,"default")])),_:3},16)):T("",!0),e.debug?(d(),h("div",Rh,[f("div",null,"visibleLength:"+X(m.value),1),f("div",null,"activeIndex:"+X(M.value),1),f("div",null,"activePage:"+X(P.value),1),f("div",null,"outerSize:"+X(S.outerSize),1),f("div",null,"curRoll:"+X(D.value.curRoll),1),f("div",null,"maxRoll:"+X(D.value.maxRoll),1)])):T("",!0)],6)),[[i,{callback:se,uid:p(s),disabled:"none"===W(e.resizeObserver)}]])}}}),Ih={key:0,class:"tui-rollni-lock tui-icon ti-lock"},Oh=Object.assign({name:"TuiRollingNavIconItem"},{__name:"item",props:{title:String,label:String,index:Number,value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},locked:{type:Boolean,default:!1},icon:{type:String,default:"tui-icon ti-file-doc"},closeable:{type:Boolean,default:null},item:Object},emits:["remove"],setup(e,{emit:t}){const l=e,a=t,i=ze("TuiRollNavI",null),o=u((()=>"null"!==st(l.closeable)?l.closeable:!!i?.closeable?.value)),n=u((()=>i?.modelValue?.value===l.value)),s=u((()=>i?.frameShape?.value||"round")),r=u((()=>zh({props:l,locale:i?.locale?.value,titleLocaleMap:i?.titleLocaleMap?.value}))),A=()=>{l.disabled||i?.selectItem?.(l.value)},c=()=>{a("remove",{value:l.value,index:i?.getItemIndex?.(l.value)??l.index,item:l.item||l})};return(t,l)=>{const a=ke("TuiTextTip"),u=ke("TuiRollingItem");return d(),le(u,null,{default:G((()=>[f("div",{class:O(["tui-rolling-nav-icon-item",`is-shape-${s.value}`]),onClick:A},[f("div",{class:O(["tui-rollni-frame",{"is-active":n.value,"is-disabled":e.disabled}])},[e.icon?(d(),h("i",{key:0,class:O(["tui-rollni-icon",e.icon])},[o.value?(d(),h(ge,{key:0},[e.locked?(d(),h("i",Ih)):(d(),h("i",{key:1,class:"tui-rollni-remove tui-icon ti-times",onClick:Ze(c,["stop"])}))],64)):T("",!0)],2)):T("",!0),me(a,_e(p(i)?.tipConfig?.value||{},{class:"tui-rollni-label"}),{default:G((()=>[We(X(r.value),1)])),_:1},16)],2)],2)])),_:1})}}}),Dh={class:"tui-rolltab-ctrl-page"},Mh={class:"tui-rolltab-ctrl-arrows"},bo=Object.assign({name:"TuiRollingNavTabsControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)}},setup(e){const t=e,l=u((()=>Math.max(0,Number(t.state.curRoll)||0))),a=u((()=>Math.max(1,Number(t.state.maxRoll)||1))),i=u((()=>!!t.state.disableRolling)),o=u((()=>i.value||!!t.state.disablePrev)),n=u((()=>i.value||!!t.state.disableNext)),s=u((()=>"h"===t.direction?"ti-chevron-left":"ti-chevron-up")),r=u((()=>"h"===t.direction?"ti-chevron-right":"ti-chevron-down"));return(t,u)=>{const A=ke("TuiButton");return d(),h("div",{class:O(["tui-rolling-nav-tabs-control",{"is-disabled":i.value}])},[f("div",Dh,X(l.value+1)+"/"+X(a.value),1),f("div",Mh,[me(A,{link:"",class:"tui-rolltab-ctrl-btn",disabled:o.value,onClick:u[0]||(u[0]=t=>e.actions.prev())},{default:G((()=>[f("i",{class:O(["tui-icon",s.value])},null,2)])),_:1},8,["disabled"]),me(A,{link:"",class:"tui-rolltab-ctrl-btn",disabled:n.value,onClick:u[1]||(u[1]=t=>e.actions.next())},{default:G((()=>[f("i",{class:O(["tui-icon",r.value])},null,2)])),_:1},8,["disabled"])])],2)}}}),gl={base:{itemW:{h:128,v:180},itemH:40,fontSize:14,iconSize:16},small:.85,default:1,large:1.15},En=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},_h=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?l:t},hn=(e,t,l=0,a=0)=>{const i=En(e,l)*t;return Math.max(a,Math.round(i))},Vo=(e,t="h")=>!e||"object"!=typeof e||Array.isArray(e)?e:e["v"===t?"v":"h"]??e.default,wo=({value:e,direction:t,fallback:l})=>{const a=Vo(e,t);if(null!=a)return a;return Vo(l,t)??0},Eh=({size:e,sizeConfig:t})=>{const l=t?.scale||{};return _h(t?.[e]??l[e],gl[e]||gl.default)},Lh=e=>({...gl.base,...e?.baseConfig||{},...e?.base||{}}),Fh=({size:e="default",direction:t="h",sizeConfig:l}={})=>{const a=Lh(l),i=Eh({size:e,sizeConfig:l}),o=wo({value:a.itemW,direction:t,fallback:gl.base.itemW});return{itemW:hn(o,i,wo({direction:t,fallback:gl.base.itemW}),1),itemH:hn(a.itemH,i,gl.base.itemH,1),fontSize:hn(a.fontSize,i,gl.base.fontSize,1),iconSize:hn(a.iconSize,i,gl.base.iconSize,1)}},jh=({direction:e,controlPosition:t})=>t||("v"===e?"prefix":"suffix"),Wh=({direction:e,element:t})=>t?"h"===e?t.clientWidth:t.clientHeight:0,Gh=({direction:e,size:t,controlPosition:l,hasPrefixSlot:a=!1,hasSuffixSlot:i=!1,controlMinSize:o=112}={})=>"v"===e?("prefix"===l?a:i)?0:En(t?.itemH,gl.base.itemH):En(o,112),Hh=({direction:e,outerSize:t,size:l})=>{const a="h"===e?l.itemW:l.itemH,i=Math.max(1,En(a,1));return Math.max(1,Math.floor((Number(t)||0)/i)||1)},Co=({index:e,visibleLength:t})=>e<0||!t?0:Math.floor(e/t),Ei=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?Ei(e.children):[e])),Kh=e=>(Ei(e||[])||[]).map((e=>e?.props)).filter((e=>e&&void 0!==e.value)),Uh=e=>`${typeof e?.value}:${String(e?.value)}`,Yh=(e=[])=>e.map((e=>`${Uh(e)}:${e?.disabled?1:0}`)).join("|"),Pl=(e,t)=>(e||[]).findIndex((e=>e?.value===t)),To=(e,t=0)=>{const l=e||[];if(!l.length)return null;const a=Math.max(0,Math.min(t,l.length-1));for(let e=0;e<l.length;e++){const t=l[a+e];if(t&&!t.disabled)return t;const i=l[a-e];if(e&&i&&!i.disabled)return i}return null},Qh=({props:e,locale:t,titleLocaleMap:l})=>{const a=e.item||{},i=l||{},o=t||"",n=i[o]||i[{"zh-CN":"cn","zh-TW":"tw",en:"en"}[o]||o],s=i.fallback||"title";return n&&a?.[n]?a[n]:e.title||a?.[s]||e.label||a?.label||""},Xh={key:0,class:"tui-rolltab-slot"},Zh={key:1,class:"tui-rolltab-slot"},Jh={key:2,class:"tui-rolltab-debug"},em=Object.assign({name:"TuiRollingNavTabs"},{__name:"index",props:{modelValue:[String,Number],duration:Number,prefixReverse:{type:Boolean,default:!1},suffixReverse:{type:Boolean,default:!1},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},sizeConfig:{type:Object,default:()=>({})},controlPosition:{type:String,default:null,validator:e=>null===e||["prefix","suffix"].includes(e)},controlFit:{type:[Boolean,String],default:!1,validator:e=>!1===e||!0===e||["fit","halfFit"].includes(e)},closeable:{type:Boolean,default:!1},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:null},rollingConfig:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1},motionBlur:{type:Boolean,default:!0},tipConfig:Object,titleLocaleMap:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["start","rolling","change","update","update:modelValue"],setup(e,{expose:t,emit:l}){const a=Nt(),i=ze("$global",null),o=i?.initResizeBy?.(),n=i?.$optResizeCounter,s=Ee("rollNavTabs"),r=e,A=l,c=$(null),g=$(null),v=$(null),m=$(!1),y=$(1),b=$(null),V=$([]),w=$([]),x=$(null),q=$(0),k=$(null),S=$(null),C=$(null),B=je({outerSize:0}),z=u((()=>Fh({size:r.size,direction:r.direction,sizeConfig:r.sizeConfig}))),N=u((()=>jh({direction:r.direction,controlPosition:r.controlPosition}))),R=u((()=>Pl(V.value,r.modelValue))),I=u((()=>Co({index:R.value,visibleLength:y.value}))),M=u((()=>x.value?.state||{})),P=u((()=>!!x.value&&!(x.value?.disableRolling??M.value.disableRolling))),D=u((()=>!0===r.controlFit||"fit"===r.controlFit?"fit":"halfFit"===r.controlFit?"halfFit":"none")),_=u((()=>Yh(V.value))),E=u((()=>$e("cpt-rolltab",{itemW:`${z.value.itemW}px`,itemH:`${z.value.itemH}px`,fontSize:`${z.value.fontSize}px`,iconSize:`${z.value.iconSize}px`}))),j=u((()=>{const e=r.rollingConfig||{};return{...e,direction:r.direction,mode:"page",visibleLength:y.value,initIndex:b.value,duration:r.duration??e.duration??500,debug:r.debug,motionBlur:r.motionBlur,resizeObserver:"none",autoRolling:!1,autoFollow:r.autoFollow,fillData:!1,showControl:!1,seamless:!1,wheelRolling:r.wheelRolling??e.wheelRolling??!0,interceptWheel:e.interceptWheel??!0,slotObserver:!0}})),L=(e,t={})=>{r.debug&&console.info(`[TuiRollingNavTabs:${s}] ${e}`,{...t,snapshot:{itemsLen:V.value.length,visibleLength:y.value,activeIndex:R.value,activePage:I.value,initIndex:b.value,curRoll:M.value.curRoll,curRollCalc:M.value.curRollCalc,maxRollCalc:M.value.maxRollCalc,disableRolling:M.value.disableRolling}})},F=e=>e&&"none"!==e?o?.value?o.value(e):"global"===e?"root":"self":"none",W=()=>(V.value=Kh(a.default?.()||[]),V.value),H=e=>Hh({direction:r.direction,outerSize:e,size:z.value}),U=()=>{if(typeof window>"u"||!c.value)return 112;const e=window.getComputedStyle(c.value).getPropertyValue("--tui-rolltab-ctrl-minw"),t=Number.parseFloat(e);return Number.isFinite(t)?t:112},Y=(e={})=>{const t=Wh({direction:r.direction,element:g.value}),l=Gh({direction:r.direction,size:z.value,controlPosition:N.value,hasPrefixSlot:!!a.prefix,hasSuffixSlot:!!a.suffix,controlMinSize:U()}),i=Math.max(0,t+(P.value?l:0)),o=Math.max(0,i-l),n=H(i);if(B.outerSize=i,(({itemDelta:e=0}={})=>{const t=D.value;return"fit"===t||"halfFit"===t&&(e>0||!P.value)})(e)&&V.value.length<=n)return y.value=n,void L("visible:full",{bodySize:t,fullSize:i,controlSize:l,fullVisibleLength:n,mode:D.value,context:e});y.value=H(o),L("visible:reserve",{bodySize:t,fullSize:i,availableSize:o,controlSize:l,fullVisibleLength:n,visibleLength:y.value,mode:D.value,context:e})},Q=e=>Pl(V.value,e),K=(e,t,l=null)=>{e&&(q.value=t,S.value=null,A("update:modelValue",e.value),A("change",e.value,t,(e=>e?.item||e)(e),l))},J=async(e="active")=>{await ye();const t=R.value;if(!m.value||t<0)return S.value=r.modelValue,L("activeScroll:skip",{source:e,inited:m.value,activeIndex:t,modelValue:r.modelValue}),!1;S.value=null,q.value=t;const l=I.value;return M.value.curRoll===l?(L("activeScroll:samePage",{source:e,targetPage:l,modelValue:r.modelValue}),!1):(L("activeScroll:goTo",{source:e,targetPage:l,modelValue:r.modelValue}),v.value?.goTo?.(l,{source:`navTabs:${e}`}),!0)},te={init:{syncItems:!0,ensureInitialActive:!0,syncVisible:!0,setInitIndex:!0},items:{syncVisible:!0,force:!0},active:{syncItems:!0,alignActive:!0},resize:{syncVisible:!0,force:!0,alignActive:!0},layout:{syncVisible:!0,force:!0,alignActive:!0},sizeConfig:{syncVisible:!0,force:!0,alignActive:!0},forceUpdate:{syncItems:!0,syncVisible:!0,force:!0,alignActive:!0}},ae=async(e="forceUpdate",t={})=>{const l={syncItems:!1,ensureInitialActive:!1,syncVisible:!1,setInitIndex:!1,force:!1,alignActive:!1,...te[e]||te.forceUpdate,...t},a=l.source||e,i={type:e,source:a,itemDelta:l.itemDelta||0};if(L("action:start",{type:e,source:a,policy:l}),l.syncItems&&W(),l.ensureInitialActive&&(()=>{const e=V.value;if(k.value=null,!e.length)return;const t=R.value;if(t>=0&&!e[t]?.disabled)return q.value=t,void(k.value=t);const l=To(e,q.value),a=Pl(e,l?.value);l&&(k.value=a,l.value!==r.modelValue&&K(l,a,"init"))})(),await ye(),l.syncVisible&&Y(i),l.setInitIndex)return b.value=Co({index:k.value??R.value,visibleLength:y.value}),w.value=V.value,m.value=!0,void L("action:initIndex",{source:a,initIndex:b.value});if(await ye(),l.force){const t=(e=>{if("items:add"===e||"items:remove"===e)return e})(a);L("action:forceUpdate",{type:e,source:a,rollingAction:t,alignActive:l.alignActive}),await(v.value?.forceUpdate?.(t)),await ye()}l.alignActive&&await J(a)},ie=()=>v.value?.prev?.(),oe=()=>v.value?.next?.(),ne=(e,t)=>v.value?.goTo?.(e,t),se=(e={})=>ae("forceUpdate","object"==typeof e?e:{}),re=()=>v.value?.getInfo?.(),ue=()=>ae("resize"),Ae={prev:ie,next:oe,goTo:ne,forceUpdate:se},de=(e,t,l)=>{x.value=e,L("rolling:update",{from:t,action:l}),A("update",e,t,l)},ce=e=>{x.value=e,L("rolling:start"),A("start",e)},pe=(e,t,l)=>{x.value=t,L("rolling:move",{value:e,source:l}),A("rolling",e,t,l)};return bt("TuiRollNavT",{tipConfig:u((()=>r.tipConfig)),modelValue:u((()=>r.modelValue)),closeable:u((()=>r.closeable)),locale:u((()=>i?.$gLang?.value||"")),titleLocaleMap:u((()=>r.titleLocaleMap)),selectItem:async e=>{const t=Q(e),l=V.value[t];!l||l.disabled||(K(l,t),await ye(),await ae("active",{source:"select"}))},getItemIndex:Q}),ln((()=>{W()})),Z(_,(async()=>{const e=w.value,t=V.value;if(w.value=t,!m.value)return;const l=t.length-e.length,a=await(async(e=[],t=[],l={})=>{const a=Pl(t,r.modelValue),i=Pl(e,r.modelValue),o=t[a],n=i>=0&&a<0,s=a>=0&&o?.disabled,u=S.value===r.modelValue&&a>=0&&!o?.disabled,A=l.itemDelta||0,d=A>0&&a>=0&&i<0;if(L("items:change",{oldLen:e.length,nextLen:t.length,itemDelta:A,activeIndex:a,oldActiveIndex:i,activeAdded:d,activeRemoved:n,activeDisabled:s,activePendingReady:u}),a>=0&&!o?.disabled&&(q.value=a),n||s||null===r.modelValue||void 0===r.modelValue){const e=To(t,q.value),l=Pl(t,e?.value);return e&&e.value!==r.modelValue?(K(e,l,"items"),{alignActive:!0}):{alignActive:!1}}return d&&r.autoFollow&&(C.value=r.modelValue),u?A>0&&r.autoFollow?(S.value=null,L("items:pendingActiveSkip",{reason:"autoFollow",modelValue:r.modelValue}),{alignActive:!1}):{alignActive:!0}:{alignActive:!1}})(e,t,{itemDelta:l});await ae("items",{source:l>0?"items:add":l<0?"items:remove":"items:update",itemDelta:l,alignActive:!!a?.alignActive})}),{flush:"post"}),Z((()=>r.modelValue),(async()=>{if(C.value===r.modelValue)return C.value=null,void L("active:skipAutoFollow",{modelValue:r.modelValue});await ae("active")})),Z((()=>[r.direction,r.size,r.controlPosition,r.controlFit,r.prefixReverse,r.suffixReverse]),(()=>ae("layout"))),Z((()=>r.sizeConfig),(()=>ae("sizeConfig")),{deep:!0}),Z((()=>n?.value),((e,t)=>{!m.value||"root"!==F(r.resizeObserver)||(e||0)>(t||0)&&ue()})),Be((async()=>{await ae("init")})),t({prev:ie,next:oe,goTo:ne,forceUpdate:se,getInfo:re,getState:re,scrollActiveIntoView:J}),(t,l)=>{const a=ke("TuiRolling"),i=Je("tui-resize");return Re((d(),h("div",{class:O(["tui-rolling-nav-tabs",`is-dir-${e.direction}`,`is-size-${e.size}`,`is-ctrl-pos-${N.value}`,{"is-initing":!m.value}]),ref_key:"containerRef",ref:c,style:we(E.value)},[t.$slots.prefix||"prefix"===N.value&&P.value?(d(),h("div",{key:0,class:O(["tui-rolltab-fixed","tui-rolltab-prefix",{"is-reverse":e.prefixReverse,"has-slot":t.$slots.prefix,"has-control":"prefix"===N.value&&P.value}])},[t.$slots.prefix?(d(),h("div",Xh,[ee(t.$slots,"prefix")])):T("",!0),"prefix"===N.value&&P.value?(d(),le(bo,{key:1,state:M.value,actions:Ae,direction:e.direction},null,8,["state","direction"])):T("",!0)],2)):T("",!0),Re((d(),h("div",{class:"tui-rolltab-body",ref_key:"rollingHostRef",ref:g},[m.value?(d(),le(a,_e({key:0,class:"tui-rolltab-rolling"},j.value,{ref_key:"rollingRef",ref:v,onStart:ce,onRolling:pe,onUpdate:de}),{default:G((()=>[ee(t.$slots,"default")])),_:3},16)):T("",!0)])),[[i,{callback:ue,uid:`${p(s)}_body`,disabled:"none"===F(e.resizeObserver)}]]),t.$slots.suffix||"suffix"===N.value&&P.value?(d(),h("div",{key:1,class:O(["tui-rolltab-fixed","tui-rolltab-suffix",{"is-reverse":e.suffixReverse,"has-slot":t.$slots.suffix,"has-control":"suffix"===N.value&&P.value}])},["suffix"===N.value&&P.value?(d(),le(bo,{key:0,state:M.value,actions:Ae,direction:e.direction},null,8,["state","direction"])):T("",!0),t.$slots.suffix?(d(),h("div",Zh,[ee(t.$slots,"suffix")])):T("",!0)],2)):T("",!0),e.debug?(d(),h("div",Jh,[f("div",null,"visibleLength:"+X(y.value),1),f("div",null,"activeIndex:"+X(R.value),1),f("div",null,"activePage:"+X(I.value),1),f("div",null,"outerSize:"+X(B.outerSize),1),f("div",null,"curRoll:"+X(M.value.curRoll),1),f("div",null,"maxRoll:"+X(M.value.maxRoll),1)])):T("",!0)],6)),[[i,{callback:ue,uid:p(s),disabled:"none"===F(e.resizeObserver)}]])}}}),tm={key:0,class:"tui-rolltab-lock tui-icon ti-lock"},lm=Object.assign({name:"TuiRollingNavTab"},{__name:"item",props:{title:String,label:String,index:Number,value:{type:[String,Number],required:!0},disabled:{type:Boolean,default:!1},locked:{type:Boolean,default:!1},icon:{type:String,default:null},closeable:{type:Boolean,default:null},item:Object},emits:["remove"],setup(e,{emit:t}){const l=e,a=t,i=ze("TuiRollNavT",null),o=u((()=>"null"!==st(l.closeable)?l.closeable:!!i?.closeable?.value)),n=u((()=>i?.modelValue?.value===l.value)),s=u((()=>Qh({props:l,locale:i?.locale?.value,titleLocaleMap:i?.titleLocaleMap?.value}))),r=u((()=>({appearance:"curtip",...i?.tipConfig?.value||{}}))),A=()=>{l.disabled||i?.selectItem?.(l.value)},c=()=>{if(l.locked)return;const e=i?.getItemIndex?.(l.value)??l.index;a("remove",e,l.value,l.item||l)};return(t,l)=>{const a=ke("TuiTextTip"),i=ke("TuiRollingItem");return d(),le(i,null,{default:G((()=>[f("div",{class:O(["tui-rolling-nav-tab",{"is-active":n.value,"is-disabled":e.disabled,"is-closeable":o.value}]),onClick:A},[e.icon?(d(),h("i",{key:0,class:O(["tui-rolltab-icon",e.icon])},null,2)):T("",!0),me(a,_e(r.value,{class:"tui-rolltab-label"}),{default:G((()=>[We(X(s.value),1)])),_:1},16),o.value?(d(),h(ge,{key:1},[e.locked?(d(),h("i",tm)):(d(),h("i",{key:1,class:"tui-rolltab-remove tui-icon ti-times",onClick:Ze(c,["stop"])}))],64)):T("",!0)],2)])),_:1})}}}),nm={class:"tui-rnav-btn-inner"},am={key:0,class:"tui-icon ti-times"},om=Object.assign({name:"TuiRouterNav"},{__name:"index",props:{className:String,appendTo:[String,Object],options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["label","path"]);return t||console.warn("TuiRouterNav Warning! ",l),t}},triggerStyle:{type:String,default:"react",validator:e=>["react","circle"].includes(e)},triggerAni:{type:Boolean,default:!0},triggerAniDelay:{type:Number,default:5e3},triggerPosition:{type:String,default:"center",validator:e=>["left","center","right"].includes(e)},buttonWidth:{type:[Number,String],default:"auto"},modal:{type:Boolean,default:!0},useOrder:{type:Boolean,default:!0},activeMatch:{type:String,default:"prefix",validator:e=>["prefix","exact","custom"].includes(e)},activeMatcher:{type:Function,default:null},activeMode:{type:String,default:"type",validator:e=>["state","type","both"].includes(e)},buttonComponent:{type:[String,Object],default:null},buttonConfig:{type:Object,default:()=>({})}},setup(e){const{$optFloaterTo:t,routerTransition:l}=ze("$global",null),a=Nt(),i=ga(),o=Ee("routerNav"),n=e,s=u((()=>{const e=n.appendTo??t.value;return"string"==typeof e?e:p(e)})),r=je({drawerConfig:{direction:"btt",padding:40,modal:!0,showClose:!1,className:"tui-router-nav-drawer"}}),A=u((()=>$e("cpt-rnav",{btnW:"number"==typeof n.buttonWidth?n.buttonWidth+"px":n.buttonWidth}))),c=$(!1),g=$(!1),v=$(!0),m=e=>e&&"/"!==e&&e.replace(/\/+$/,"")||"/",y=e=>{if(!e?.path)return!1;if("custom"===n.activeMatch&&"function"==typeof n.activeMatcher)return!!n.activeMatcher({item:e,route:i});const t=m(i.path),l=m(e.path);return"exact"===n.activeMatch?t===l:"/"===l?"/"===t:t===l||t.startsWith(`${l}/`)},b=e=>e?.buttonComponent||n.buttonComponent||"TuiButtonA3",V=e=>({...n.buttonConfig,...e?.buttonConfig}),w=e=>("state"===n.activeMode||"both"===n.activeMode)&&y(e),x=e=>"state"===n.activeMode?"default":y(e)?"primary":"default",q=e=>y(e),k=()=>{c.value=!c.value},S=e=>{!e?.path||y(e)||e?.disabled||(l({path:e.path,query:e.query,useOrder:n.useOrder,waitReady:!0}),c.value=!1)};return Be((()=>{v.value=!1,qe.s(o,(()=>{g.value=!0}),n.triggerAniDelay)})),dt((()=>{v.value=!0,qe.c(o)})),(t,l)=>{const o=ke("TuiDrawer");return d(),h(ge,null,[v.value||p(i)?.path?.includes("login")?T("",!0):(d(),le(Lt,{key:0,to:s.value,fallback:"#tuiRoot",disabled:v.value},[f("div",{class:O(["tui-router-nav-restraint",`is-position-${e.triggerPosition}`,e.className])},[me(Ue,{name:"fade"},{default:G((()=>[c.value?T("",!0):(d(),h("div",{key:0,class:O(["tui-router-nav-btn","is-turn-on",`is-trigger-style-${e.triggerStyle}`,e.triggerAni&&g.value?"is-ani-on":"is-ani-off"]),onClick:k},[...l[1]||(l[1]=[f("i",{class:"tui-icon ti-angle-up"},null,-1)])],2))])),_:1})],2)],8,["to","disabled"])),me(o,_e({modelValue:c.value,"onUpdate:modelValue":l[0]||(l[0]=e=>c.value=e)},r.drawerConfig,{modal:e.modal}),{default:G((()=>[f("div",{class:O(["tui-router-nav-btn","is-turn-off",`is-trigger-style-${e.triggerStyle}`,`is-position-${e.triggerPosition}`]),onClick:k},[f("div",nm,[c.value?(d(),h("i",am)):T("",!0)])],2),f("div",{class:"tui-rnav-inner",style:we(A.value)},[(d(!0),h(ge,null,Fe(e.options,((e,l)=>(d(),h(ge,{key:l},[p(a).item?ee(t.$slots,"item",{key:0,item:e,active:y(e),activeClass:w(e),activeLock:q(e),type:x(e),disabled:e.disabled,navigate:()=>S(e)}):(d(),le(gt(b(e)),_e({key:1,ref_for:!0},V(e),{class:{"is-active":w(e),"is-active-lock":q(e)},type:x(e),disabled:e.disabled,"aria-current":y(e)?"page":null,onClick:t=>S(e)}),{default:G((()=>[We(X(e.buttonLabel||e.label),1)])),_:2},1040,["class","type","disabled","aria-current","onClick"]))],64)))),128))],4)])),_:3},16,["modelValue","modal"])],64)}}}),im={class:"tui-step-head"},sm={key:0,class:"tui-step-line"},rm={class:"tui-step-icon"},um={key:2,class:"tui-step-index"},cm={class:"tui-step-main"},Li=Object.assign({name:"TuiStep"},{__name:"item",props:{title:{type:String,default:""},description:{type:String,default:""},icon:{type:String,default:""},status:{type:String,validator:e=>["","wait","process","finish","error","success","warning"].includes(e),default:""}},setup(e){const{proxy:t,uid:l}=Tt(),a=e,{tipConfig:i,descriptionLines:o,registerStep:n,steps:s,parentProps:r}=ze("TuiSteps",null);Be((()=>{n({props:a,uid:l})}));const A=u((()=>s.value.findIndex((e=>e.uid===l)))),c=u((()=>a.status?a.status:A.value<r.active?r.finishStatus:A.value===r.active?r.processStatus:"wait")),g=u((()=>{if(a.icon)return a.icon;{const e=c.value;return"success"==e?"tui-icon ti-check-circle":"warning"==e?"tui-icon ti-alert-circle":"error"==e?"tui-icon ti-times-circle":null}})),v=u((()=>({...i.value,lines:o.value})));return(t,l)=>{const a=ke("TuiTextTip");return d(),h("div",{class:O(["tui-step",[`is-${c.value}`,{"is-simple":p(r).simple,"is-vertical":"vertical"===p(r).direction}]])},[f("div",im,[p(r).simple?T("",!0):(d(),h("div",sm,[...l[0]||(l[0]=[f("i",{class:"tui-step-line-inner"},null,-1)])])),f("div",rm,[t.$slots.icon?ee(t.$slots,"icon",{key:0}):g.value?(d(),h("i",{key:1,class:O(g.value)},null,2)):(d(),h("span",um,X(A.value+1),1))])]),f("div",cm,[me(a,_e(p(i),{class:"tui-step-title"}),{default:G((()=>[ee(t.$slots,"title",{},(()=>[We(X(e.title),1)]))])),_:3},16),!t.$slots.description&&!e.description||p(r).simple?T("",!0):(d(),le(a,_e({key:0},v.value,{class:"tui-step-desc"}),{default:G((()=>[ee(t.$slots,"description",{},(()=>[We(X(e.description),1)]))])),_:3},16))]),p(r).simple&&p(s).length!=A.value+1?(d(),h("div",{key:0,class:O(["tui-step-simple-arrow","vertical"===p(r).direction?"tui-icon ti-chevron-down":"tui-icon ti-chevron-right"])},null,2)):T("",!0)],2)}}}),dm=Object.assign({name:"TuiSteps"},{__name:"index",props:{direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},active:{type:Number,default:0},processStatus:{type:String,default:"process"},finishStatus:{type:String,default:"finish"},simple:{type:Boolean,default:!1},simpleWithBG:{type:Boolean,default:!0},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["title"]);return t||console.warn("TuiSteps Warning! ",l),t}},descriptionLines:{type:Number,default:2},tipConfig:Object},setup(e){const t=e,l=$([]);return bt("TuiSteps",{tipConfig:u((()=>t.tipConfig)),descriptionLines:u((()=>t.descriptionLines)),parentProps:t,steps:l,registerStep:e=>{l.value.push(e)}}),(t,l)=>(d(),h("div",{class:O(["tui-steps",{"is-vertical":"vertical"===e.direction,"is-simple":e.simple,"is-simple-bg":e.simpleWithBG}])},[e.options&&e.options.length?(d(!0),h(ge,{key:0},Fe(e.options,((e,t)=>(d(),le(Li,{key:t,title:e.title,description:e.description,icon:e.icon,status:e.status},null,8,["title","description","icon","status"])))),128)):ee(t.$slots,"default",{key:1})],2))}}),Am={class:"tui-tabs-pager"},fm=Object.assign({name:"TuiTabs"},{__name:"index",props:{appearance:{type:String,default:"simple",validator:e=>["simple","card","button"].includes(e)},faceTo:{type:String,default:"up",validator:e=>["up","down","left","right"].includes(e)},textDirection:{type:String,default:null,validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["default","large","small"].includes(e)},align:{type:String,default:null,validator:e=>["start","center","end"].includes(e)},hideBaseLine:{type:Boolean,default:!1},scrollable:{type:Boolean,default:!1},scrollOffset:{type:Number,default:0},options:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["label"]);return t||console.warn("TuiTabs Warning! ",l),t}},modelValue:[String,Number,Boolean],itemMaxWidth:[Number,String],tipConfig:Object,tagConfig:Object,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["change","update:modelValue"],setup(e,{emit:t}){const{$optResizeCounter:l,initResizeBy:a}=ze("$global",null),i=a(),o=e,n=t;bt("TuiTabs",{tipConfig:u((()=>o.tipConfig)),updateValue:e=>n("update:modelValue",e),change:e=>n("change",e),modelValue:u((()=>o.modelValue)),appearance:u((()=>o.appearance)),tagConfig:u((()=>o.tagConfig)),textDirection:u((()=>o.textDirection))});const s=u((()=>$e("cpt-tab",{...q("maxw",o.itemMaxWidth,"smart"),...q("jc",o.align),...q("tsf",r(),{when:V.active})}))),r=()=>{const e=V.curIndex*V.wrapSize;return"v"==b.value?`translateY(-${e}px)`:`translateX(-${e}px)`},A=Ee("tabs"),c=$(!1),g=$(!1),v=$(null),m=$(null),y=$(null),b=u((()=>"up"==o.faceTo||"down"==o.faceTo?"h":"left"==o.faceTo||"right"==o.faceTo?"v":void 0)),V=je({active:!1,wrapSize:0,innerSize:0,disLeftArrow:!1,disRightArrow:!1,maxIndex:0,curIndex:0}),w=()=>{V.active&&V.curIndex>0&&V.curIndex--},x=()=>{V.active&&V.curIndex<V.maxIndex&&V.curIndex++},k=()=>{0==V.curIndex?V.disLeftArrow=!0:V.disLeftArrow=!1,V.curIndex==V.maxIndex?V.disRightArrow=!0:V.disRightArrow=!1};Z((()=>l.value),((e,t)=>{!o.scrollable||"root"!=i.value(o.resizeObserver)||e>t&&S()}));const S=()=>{if(m.value){let e,t;"h"==b.value?(e=m.value.clientWidth-o.scrollOffset,t=y.value.clientWidth):"v"==b.value&&(e=m.value.clientHeight-o.scrollOffset,t=y.value.clientHeight),V.wrapSize=e,V.innerSize=t,t>e?(V.active=!0,V.maxIndex=Math.ceil(t/e)-1):V.active=!1,V.curIndex=0}c.value||(c.value=!0)};return Be((()=>{g.value=!0})),(t,l)=>{const a=ke("TuiTab"),o=ke("TuiButton"),n=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["tui-tabs",`is-appr-${e.appearance}`,e.size&&`is-size-${e.size}`,`is-face-${e.faceTo}`,e.textDirection&&`is-text-dir-${e.textDirection}`,e.scrollable&&"simple"==e.appearance&&`tui-tabs-scrollable is-scroll-${b.value}`,{"is-baseline-hidden":e.hideBaseLine}]),style:we(s.value),ref_key:"tabWrap",ref:v},[e.scrollable&&"simple"==e.appearance?(d(),h(ge,{key:0},[f("div",{class:"tui-tabs-scroll-wrap",ref_key:"scrollWrapRef",ref:m},[f("div",{class:O(["tui-tabs-scroll-inner"]),ref_key:"scrollInnerRef",ref:y,onTransitionend:k},[e.options.length>0?(d(!0),h(ge,{key:0},Fe(e.options,((e,t)=>(d(),le(a,_e({ref_for:!0},e,{value:e.value?e.value:t}),{default:G((()=>[We(X(e.label),1)])),_:2},1040,["value"])))),256)):ee(t.$slots,"default",{key:1})],544)],512),f("div",{class:O(["tui-tabs-scroll-control",{"is-active":V.active}])},[f("div",Am,X(V.curIndex+1)+"/"+X(V.maxIndex+1),1),me(o,{link:"",disabled:V.disLeftArrow,onClick:w},{default:G((()=>[...l[0]||(l[0]=[f("i",{class:"tui-icon ti-chevron-left"},null,-1)])])),_:1},8,["disabled"]),me(o,{link:"",disabled:V.disRightArrow,onClick:x},{default:G((()=>[...l[1]||(l[1]=[f("i",{class:"tui-icon ti-chevron-right"},null,-1)])])),_:1},8,["disabled"])],2)],64)):(d(),h(ge,{key:1},[e.options.length>0?(d(!0),h(ge,{key:0},Fe(e.options,((e,t)=>(d(),le(a,_e({ref_for:!0},e,{value:e.value?e.value:t}),{default:G((()=>[We(X(e.label),1)])),_:2},1040,["value"])))),256)):ee(t.$slots,"default",{key:1})],64)),t.$slots.suffix?ee(t.$slots,"suffix",{key:2}):T("",!0)],6)),[[Ye,g.value],[n,{callback:S,uid:p(A),disabled:!e.scrollable||"self"!=p(i)(e.resizeObserver)&&c.value}]])])),_:3})}}}),pm=Object.assign({name:"TuiTab"},{__name:"tab",props:{value:{type:[String,Number,Boolean],required:!0},count:{type:Number,default:0},icon:{type:String,default:null},tagType:{type:String,default:"default"},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tipConfig:l,updateValue:a,change:i,modelValue:o,tagConfig:n,textDirection:s}=ze("TuiTabs",null),r=u((()=>o.value==t.value)),A=()=>{t.disabled||(a(t.value),i(t.value))};return(t,a)=>{const i=ke("TuiTextTip"),o=ke("TuiTag");return d(),h("div",{onClick:A,class:O(["tui-tab-item",{"is-active":r.value,"is-disabled":e.disabled}])},[e.icon?(d(),h("i",{key:0,class:O(["tui-tab-icon",e.icon])},null,2)):T("",!0),me(i,_e(p(l),{textDirection:p(s)}),{default:G((()=>[ee(t.$slots,"default")])),_:3},16,["textDirection"]),e.count?(d(),le(o,_e({key:1,class:"tui-tab-value",size:"small",type:e.tagType},p(n)),{default:G((()=>[We(X(e.count),1)])),_:1},16,["type"])):T("",!0)],2)}}}),ka=Symbol("treeNodeContextKey");let gm=0;function vm(){return gm++}const hm=["draggable","data-tree-node-key"],mm={class:"tui-tn-label"},ym={key:1,class:"tui-text"},bm={__name:"content",props:{node:{type:Object,required:!0},expanded:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},indent:{type:Number,default:18},icon:{type:[String,Object]},nodeIcon:{type:String}},emits:["expand-click","check-change"],setup(e,{emit:t}){const l=e,{appearance:a,showIcon:i,defaultIcon:o,draggable:n,treeDragState:s,treeDragHandlers:r}=ze(ka,{appearance:"tree",showIcon:!1,defaultIcon:null,draggable:!1,treeDragState:{},treeDragHandlers:{}}),A=t;function c(){if(l.node.disabled)return;const e={target:{checked:!l.node.checked}};A("check-change",e)}const g=u((()=>{let e=0;return e=p(a).includes("menu")&&1===l.node.level?10:(l.node.level-1)*l.indent,$e("cpt-tn",{pdl:e+"px",linePdl:e+"px"})})),v=u((()=>p(a).includes("menu"))),m=u((()=>["tui-icon ti-caret-right",{"is-leaf":l.node.isLeaf,"is-expanded":!l.node.isLeaf&&l.expanded}])),y=u((()=>l.nodeIcon?l.nodeIcon:p(i)?p(o)&&l.node.isLeaf?p(o):l.node.isLeaf?"tui-icon ti-file":l.expanded?"tui-icon tis-folder-open":"tui-icon tis-folder":null)),b=u((()=>l.nodeIcon||p(i))),V=u((()=>l.node.key)),w=u((()=>p(n)&&r?.canDrag?.(l.node))),x=u((()=>{const e=s?.dropNode?.value===l.node&&"children-tail"!==s?.dropMode?.value,t=s?.dropType?.value,a="inner"===t||"inner-first"===t;return{"is-tree-draggable":w.value,"is-tree-dragging":s?.draggingNode?.value===l.node,"is-tree-drop-target":e&&a,"is-tree-drop-prev":e&&"prev"===t,"is-tree-drop-inner":e&&a,"is-tree-drop-next":e&&"next"===t,"is-tree-drop-not-allow":e&&!1===s?.dropAllowed?.value}}));return(t,l)=>(d(),h("div",{class:O(["tui-tree-node-cont",[{"is-menu-mode":v.value,"is-first-level":1===e.node.level&&v.value},x.value]]),style:we(g.value),draggable:w.value,"data-tree-node-key":V.value,onDragstart:l[2]||(l[2]=Ze((t=>p(r)?.dragStart?.(e.node,t)),["stop"])),onDragenter:l[3]||(l[3]=Ze((t=>p(r)?.dragEnter?.(e.node,t)),["stop"])),onDragover:l[4]||(l[4]=Ze((t=>p(r)?.dragOver?.(e.node,t)),["stop"])),onDragleave:l[5]||(l[5]=Ze((t=>p(r)?.dragLeave?.(e.node,t)),["stop"])),onDrop:l[6]||(l[6]=Ze((t=>p(r)?.drop?.(e.node,t)),["stop"])),onDragend:l[7]||(l[7]=Ze((e=>p(r)?.dragEnd?.(e)),["stop"]))},[v.value?T("",!0):(d(),h("span",{key:0,class:"tui-tn-exp-icon",onClick:l[0]||(l[0]=Ze((e=>A("expand-click")),["stop"]))},[f("i",{class:O(m.value)},null,2)])),t.$slots.icon?ee(t.$slots,"icon",{key:1,node:e.node}):b.value?(d(),h("i",{key:2,class:O(["tui-tn-icon",y.value])},null,2)):T("",!0),e.showCheckbox?(d(),h("i",{key:3,class:O(["tui-checkbox tui-icon",{"is-checked":e.node.checked,"is-indeterminate":e.node.indeterminate,"is-disabled":e.node.disabled,"ti-minus-square":e.node.indeterminate,"ti-check-square":e.node.checked,"ti-square":!e.node.checked&&!e.node.indeterminate}]),onClick:Ze(c,["stop"])},null,2)):T("",!0),f("div",mm,[t.$slots.default?ee(t.$slots,"default",{key:0,node:e.node,data:e.node.data}):(d(),h("span",ym,X(e.node.label),1))]),v.value?(d(),h("span",{key:4,class:"tui-tn-exp-icon tui-tn-exp-icon-right",onClick:l[1]||(l[1]=Ze((e=>A("expand-click")),["stop"]))},[f("i",{class:O(m.value)},null,2)])):T("",!0)],46,hm))}},Vm=["id"],wm={key:0,class:"tui-tn-loading"},Cm={class:"tui-tn-loading-text"},Tm={key:0,class:"tui-tn-children",role:"group"},Fi={__name:"node",props:{node:{type:Object,required:!0},props:{type:Object,default:()=>({})},renderAfterExpand:{type:Boolean,default:!0},showCheckbox:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:[String,Number],indent:{type:Number,default:18},icon:[String,Object]},setup(e){const{i18n:t}=ze("$global",null),l=e,{store:a,emitter:i,root:o,appearance:n,treeDragState:s,treeDragHandlers:r}=ze(ka,{appearance:"tree",showIcon:!1,defaultIcon:null,treeDragState:{},treeDragHandlers:{}}),A=$(!1),c=Mi({duration:300}),g=u((()=>{const{currentNode:e}=a;return e&&e.id===l.node.id})),v=u((()=>s?.dropNode?.value===l.node&&"children-tail"===s?.dropMode?.value&&s?.dropAllowed?.value)),m=u((()=>{let e=0;return e=p(n).includes("menu")&&1===l.node.level?10:(l.node.level-1)*l.indent,{"--cpt-tn-tail-pdl":`${e}px`}}));function y(e){return a.getNodeKey(e)}function b(){l.node.isLeaf||(A.value?(l.node.collapse(),i.emit("node-collapse",l.node.data,l.node,null)):function(){if(!l.node.loading){if(o.value.accordion){const{childNodes:e}=l.node.parent;e.forEach((e=>{e!==l.node&&e.collapse()}))}l.node.expand(),i.emit("node-expand",l.node.data,l.node,null)}}())}function V(e){const{node:t}=l;i.emit("node-click",t.data,t,e),x(e),l.expandOnClickNode&&b();const a=l.checkOnClickNode||l.checkOnClickLeaf&&t.isLeaf;l.showCheckbox&&a&&!t.disabled&&q({target:{checked:!t.checked}})}function w(e){a.currentNode!==l.node&&x(e),i.emit("node-contextmenu",e,l.node.data,l.node,e)}function x(e){l.node.disabled||g.value||(a.setCurrentNode(l.node),i.emit("current-change",l.node.data,l.node,e))}function q(e){const t=e.target.checked;l.node.setChecked(t,!a.checkStrictly),ye((()=>{i.emit("check",l.node.data,{checkedNodes:a.getCheckedNodes(),checkedKeys:a.getCheckedKeys(),halfCheckedNodes:a.getHalfCheckedNodes(),halfCheckedKeys:a.getHalfCheckedKeys()})})),i.emit("check-change",l.node.data,t,l.node.indeterminate)}return Z((()=>l.node.expanded),(e=>{if(A.value=e,e&&o.value.accordion&&l.node.parent){const{childNodes:e}=l.node.parent;e.forEach((e=>{e!==l.node&&e.expanded&&e.collapse()}))}}),{immediate:!0}),Z((()=>l.node.visible),(()=>{})),(a,i)=>Re((d(),h("div",{class:O(["tui-tree-node",{"is-expanded":A.value,"is-current":g.value,"is-hidden":!e.node.visible,"is-focusable":!e.node.disabled,"is-checked":!e.node.disabled&&e.node.checked,"is-indeterminate":e.node.indeterminate,"is-first-level":1===e.node.level,[`tui-tn-level-${e.node.level}`]:!0}]),role:"treeitem",id:e.node.id,onClick:Ze(V,["stop"]),onContextmenu:Ze(w,["prevent"])},[me(bm,{node:e.node,expanded:A.value,"show-checkbox":e.showCheckbox,"node-icon":e.node.data.icon,indent:e.indent,icon:e.icon,onExpandClick:b,onCheckChange:q},el({_:2},[a.$slots.default?{name:"default",fn:G((e=>[ee(a.$slots,"default",{node:e.node,data:e.data})])),key:"0"}:void 0,a.$slots.icon?{name:"icon",fn:G((e=>[ee(a.$slots,"icon",mt(qt(e)))])),key:"1"}:void 0]),1032,["node","expanded","show-checkbox","node-icon","indent","icon"]),e.node.loading?(d(),h("div",wm,[i[3]||(i[3]=f("span",{class:"tui-tn-loading-icon"},"⟳",-1)),f("span",Cm,X(p(t)("common.processing")),1)])):T("",!0),me(Ue,{name:"tui-tree-node",onBeforeEnter:p(c).beforeEnter,onEnter:p(c).enter,onAfterEnter:p(c).afterEnter,onBeforeLeave:p(c).beforeLeave,onLeave:p(c).leave,onAfterLeave:p(c).afterLeave},{default:G((()=>[!e.renderAfterExpand||A.value?Re((d(),h("div",Tm,[(d(!0),h(ge,null,Fe(e.node.childNodes,(t=>(d(),le(Fi,{key:y(t),node:t,props:l,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"expand-on-click-node":e.expandOnClickNode,"check-on-click-node":e.checkOnClickNode,"check-on-click-leaf":e.checkOnClickLeaf,"current-node-key":e.currentNodeKey,indent:e.indent,icon:e.icon},el({_:2},[a.$slots.default?{name:"default",fn:G((e=>[ee(a.$slots,"default",{node:e.node,data:e.data})])),key:"0"}:void 0,a.$slots.icon?{name:"icon",fn:G((e=>[ee(a.$slots,"icon",_e({ref_for:!0},e))])),key:"1"}:void 0]),1032,["node","props","render-after-expand","show-checkbox","expand-on-click-node","check-on-click-node","check-on-click-leaf","current-node-key","indent","icon"])))),128)),e.node.isLeaf?T("",!0):(d(),h("div",{key:0,class:O(["tui-tn-children-drop-tail",{"is-tree-drop-tail":v.value}]),style:we(m.value),onDragover:i[0]||(i[0]=Ze((t=>p(r)?.childrenDragOver?.(e.node,t)),["stop"])),onDragleave:i[1]||(i[1]=Ze((t=>p(r)?.childrenDragLeave?.(e.node,t)),["stop"])),onDrop:i[2]||(i[2]=Ze((t=>p(r)?.childrenDrop?.(e.node,t)),["stop"]))},null,38))],512)),[[Ye,A.value]]):T("",!0)])),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],42,Vm)),[[Ye,e.node.visible]])}};class Il{constructor(e){this.id=vm(),this.data=e.data||null,this.expanded=!1,this.parent=e.parent,this.visible=!0,this.isCurrent=!1,this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.checked=!1,this.indeterminate=!1;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t]);this.parent&&(this.level=this.parent.level+1);const t=this.store;if(!t)throw new Error("[Tree] store is required!");t.registerNode(this),this.data&&this.setData(this.data),!0!==t.lazy&&this.data&&this.updateLeafState()}setData(e){if(!e)return;let t;this.data=e,this.childNodes=[],t=0===this.level&&Array.isArray(this.data)?this.data:this.data[this.store.props.children]||[];for(let e=0,l=t.length;e<l;e++)this.insertChild({data:t[e]});this.updateLeafState()}get label(){return this.data[this.store.props.label]}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return this.data[this.store.props.disabled]}get nextSibling(){const e=this.parent;if(!e)return null;const t=e.childNodes.indexOf(this);return t<0?null:t+1<e.childNodes.length?e.childNodes[t+1]:null}get previousSibling(){const e=this.parent;if(!e)return null;const t=e.childNodes.indexOf(this);return t<=0?null:e.childNodes[t-1]}contains(e){if(e===this)return!0;const{childNodes:t}=this;let l=!1;for(let a=0,i=t.length;a<i&&(l=t[a].contains(e),!l);a++);return l}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,t,l){if(!e)throw new Error("insertChild error: child is required");if(!(e instanceof Il)){if(!l){const l=this.getChildren(!0);l.includes(e.data)||(typeof t>"u"||t<0?l.push(e.data):l.splice(t,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=new Il(e)}return e.level=this.level+1,typeof t>"u"||t<0?this.childNodes.push(e):this.childNodes.splice(t,0,e),this.updateLeafState(),e}insertBefore(e,t){let l;return t&&(l=this.childNodes.indexOf(t)),this.insertChild(e,l)}insertAfter(e,t){let l;return t&&(l=this.childNodes.indexOf(t),-1!==l&&(l+=1)),this.insertChild(e,l)}removeChild(e){const t=this.getChildren()||[],l=t.indexOf(e.data);l>-1&&t.splice(l,1);const a=this.childNodes.indexOf(e);a>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(a,1)),this.updateLeafState()}removeChildByData(e){let t=null;for(let l=0;l<this.childNodes.length;l++)if(this.childNodes[l].data===e){t=this.childNodes[l];break}t&&this.removeChild(t)}expand(e,t){if(this.store.accordion&&this.parent&&this.parent.childNodes.forEach((e=>{e!==this&&e.collapse()})),t){let e=this.parent;for(;e&&e.level>0;)e.expanded=!0,e=e.parent}!this.store.lazy||this.loaded&&!this.store.renderAfterExpand?(this.expanded=!0,this.loaded=!0,e&&e()):this.loadData((t=>{this.expanded=!0,t instanceof Array&&e&&e()}))}doCreateChildren(e,t={}){e.forEach((e=>{this.insertChild({data:e,...t})}))}collapse(){this.expanded=!1}loadData(e=(()=>{})){!0!==this.store.lazy||!this.store.load||this.loaded||this.loading?e&&e():(this.loading=!0,this.store.load(this,(t=>{this.loading=!1,t&&Array.isArray(t)?(this.loaded=!0,this.childNodes=[],this.doCreateChildren(t),this.updateLeafState(),e&&e(t)):(this.expanded=!1,e&&e(null))})))}updateLeafState(){if(!0===this.store.lazy&&!0!==this.loaded&&void 0!==this.data[this.store.props.isLeaf])return void(this.isLeaf=this.data[this.store.props.isLeaf]);const e=this.childNodes;!this.store.lazy||!0===this.store.lazy&&!0===this.loaded?this.isLeaf=!e||0===e.length:this.isLeaf=!1}setChecked(e,t,l,a){if(this.indeterminate="half"===e,this.checked=!0===e,this.store.checkStrictly)return;!1===this.shouldNotify&&(this.shouldNotify=a);let{childNodes:i}=this;if(t&&i.length>0)for(let l=0,o=i.length;l<o;l++)i[l].setChecked(e,t,!0,a);const{parent:o}=this;!o||0===o.level||l||this.updateParentCheckState()}updateParentCheckState(){let e=this.parent;for(;e&&e.level>0;)e.updateCheckState(),e=e.parent}updateCheckState(){const e=this.childNodes,t=e.length;let l=0,a=0;for(let i=0;i<t;i++){const t=e[i];t.checked?l++:t.indeterminate&&a++}l===t?(this.checked=!0,this.indeterminate=!1):l>0||a>0?(this.checked=!1,this.indeterminate=!0):(this.checked=!1,this.indeterminate=!1),this.parent&&this.parent.level>0&&this.parent.updateCheckState()}getChildren(e=!1){if(0===this.level)return this.data;const t=this.data;if(!t)return null;const l=this.store.props;let a=t[l.children];return e&&!a&&(a=t[l.children]=[]),a}updateChildren(){const e=this.getChildren()||[],t=this.childNodes.splice(0);e.forEach(((e,l)=>{let a=t.find((t=>t.data===e));a?(this.insertChild(a,l),a.updateChildren()):this.insertChild({data:e},l)})),t.forEach((t=>{e.includes(t.data)||this.store.deregisterNode(t)}))}filter(e){const t=this.store.filterNodeMethod,l=this.store.lazy;if(t)return this.visible=t.call(null,e,this.data,this),l&&!this.loaded&&this.visible&&this.loadData(),this.childNodes.forEach((t=>{t.filter(e)})),!this.visible&&this.childNodes.length&&this.childNodes.some((e=>e.visible))&&(this.visible=!0),this.visible;this.visible=!0}}class Sm{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t]);this.filterNodeMethod||(this.filterNodeMethod=(e,t,l)=>!e||l.label.toLowerCase().includes(e.toLowerCase())),this.nodesMap={},this.root=new Il({data:this.data||[],store:this}),this.lazy||(this._initDefaultCheckedNodes(),this._initDefaultExpandedNodes(),this.setCurrentNodeKey(this.currentNodeKey))}filter(e){this.filterNodeMethod&&this.root.filter(e)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes(),this._initDefaultExpandedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof Il)return e;const t="object"!=typeof e?e:this.getNodeKey(e);return this.nodesMap[t]||null}getNodeData(e){return this.getNode(e)?.data||null}getNodeLabel(e){const t=this.getNode(e);return t?t.label:null}getNodesByKeys(e=[]){return Array.isArray(e)?e.map((e=>this.getNode(e))).filter(Boolean):[]}getNodeDataByKeys(e=[]){return this.getNodesByKeys(e).map((e=>e.data))}getNodeLabelsByKeys(e=[]){return this.getNodesByKeys(e).map((e=>e.label))}insertBefore(e,t){const l=this.getNodeKey(t),a=this.getNode(l);a.parent.insertBefore({data:e},a)}insertAfter(e,t){const l=this.getNodeKey(t),a=this.getNode(l);a.parent.insertAfter({data:e},a)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const l=t?this.getNode(t):this.root;l&&l.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;Object.keys(t).forEach((e=>{t[e].setChecked(!1,!0,!0)})),e.forEach((e=>{const l=t[e];l&&l.setChecked(!0,!this.checkStrictly)}))}_initDefaultCheckedNode(e){-1!==(this.defaultCheckedKeys||[]).indexOf(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKeys(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}_initDefaultExpandedNodes(){this.defaultExpandAll?this.expandAllNodes():this.setExpandedKeys(this.defaultExpandedKeys||[])}registerNode(e){const t=this.getNodeKey(e);null!=t&&(this.nodesMap[t]=e)}deregisterNode(e){this.key&&(e.childNodes.forEach((e=>{this.deregisterNode(e)})),delete this.nodesMap[e.key])}getNodeKey(e,t){return typeof t<"u"?t:this.key?e instanceof Il?e.data[this.key]:e[this.key]:e.id}updateChildren(e,t){const l=this.nodesMap[e];if(l&&(l.childNodes.forEach((e=>{l.removeChild(e)})),t))for(let e=0;e<t.length;e++){const a=t[e];l.insertChild({data:a})}}_setCheckedKeys(e,t=!1,l={}){const a=this.nodesMap,i=Object.keys(l);for(const e in a)if(Object.prototype.hasOwnProperty.call(a,e)){const o=a[e],n=i.length>0&&Object.prototype.hasOwnProperty.call(l,o.key);(!t||t&&o.isLeaf)&&o.setChecked(n,!this.checkStrictly)}}setCheckedNodes(e,t=!1){const l={};for(let t=0,a=e.length;t<a;t++){const a=e[t][this.key];null!=a&&(l[a]=!0)}this._setCheckedKeys(void 0,t,l)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const l={};Array.isArray(e)&&e.forEach((e=>{l[e]=!0})),this._setCheckedKeys(void 0,t,l)}setDefaultExpandedKeys(e){this.setExpandedKeys(e)}setExpandedKeys(e){if(e=e||[],this.defaultExpandedKeys=e,this._getAllNodes().forEach((e=>{e.collapse()})),this.accordion){const t={};for(let l=e.length-1;l>=0;l--){const a=e[l],i=this.getNode(a);if(!i)continue;const o=i.level;t[o]||(t[o]=[]),t[o].push(i)}Object.keys(t).forEach((e=>{const l=t[e];l.length>0&&l[0].expand(null,this.autoExpandParent)}))}else e.forEach((e=>{const t=this.getNode(e);t&&t.expand(null,this.autoExpandParent)}))}getExpandedKeys(){return this._getAllNodes().filter((e=>e.expanded)).map((e=>this.getNodeKey(e)))}setChecked(e,t,l){const a=this.getNode(e);a&&a.setChecked(!!t,l)}getCurrentNode(){return this.currentNode}setCurrentNode(e,t=!0){const l=this.currentNode;l&&(l.isCurrent=!1),this.currentNode=e,this.currentNodeKey=e?this.getNodeKey(e):null,e&&(e.isCurrent=!0,t&&this.expandOnClickNode&&e.parent&&e.parent.expand(null,this.autoExpandParent))}setCurrentNodeKey(e,t=!0){if(this.currentNodeKey=e,null==e)return this.currentNode&&(this.currentNode.isCurrent=!1),void(this.currentNode=null);const l=this.getNode(e);l&&this.setCurrentNode(l,t)}setCurrentKey(e,t=!0){this.setCurrentNodeKey(e,t)}getCheckedNodes(e=!1,t=!1){const l=[],a=i=>{i.childNodes.forEach((i=>{(i.checked||t&&i.indeterminate)&&(!e||e&&i.isLeaf)&&l.push(i.data),a(i)}))};return a(this.root),l}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map((e=>(e||{})[this.key]))}getHalfCheckedNodes(){const e=[],t=l=>{l.childNodes.forEach((l=>{l.indeterminate&&e.push(l.data),t(l)}))};return t(this.root),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map((e=>(e||{})[this.key]))}_getAllNodes(){const e=[],t=this.nodesMap;for(const l in t)Object.prototype.hasOwnProperty.call(t,l)&&e.push(t[l]);return e}updateChildrenData(e,t){const l=this.nodesMap[e];if(!l)return;const a=l.childNodes;for(let e=a.length-1;e>=0;e--){const t=a[e];this.remove(t.data)}for(let e=0;e<t.length;e++){const a=t[e];this.append(a,l.data)}}getCurrentKey(){return this.currentNode?this.getNodeKey(this.currentNode):null}findNodes(e,t=!1){const l=[],a=i=>{if(e(i)&&l.push(i),t){const e=i.childNodes;for(let t=0;t<e.length;t++)a(e[t])}},i=this._getAllNodes();for(let e=0;e<i.length;e++)a(i[e]);return l}expandAllNodes(){this._getAllNodes().forEach((e=>{e.expand(null,!0)}))}collapseAllNodes(){this._getAllNodes().forEach((e=>{e.collapse()}))}filterNodeByKey(e,t){if(!this.filterNodeMethod)return;const l=this.getNode(e);l&&l.filter(t)}findParentNode(e,t){const l=this.getNode(e);if(!l)return null;let a=l.parent;for(;a&&a!==this.root;){if(t(a))return a;a=a.parent}return null}getNodePath(e){const t=this.getNode(e);if(!t)return[];const l=[t];let a=t.parent;for(;a&&a!==this.root;)l.unshift(a),a=a.parent;return l}getNodePathKeys(e){return this.getNodePath(e).map((e=>this.getNodeKey(e)))}getNodePathData(e){return this.getNodePath(e).map((e=>e.data))}getNodePathLabels(e){return this.getNodePath(e).map((e=>e.label))}normalizeDropType(e){return["before","after","inner","inner-first"].includes(e)?e:null}canMoveNode(e,t,l="inner"){const a=this.normalizeDropType(l),i=this.getNode(e),o=this.getNode(t);return a?i&&o?i.parent?i===o?{valid:!1,reason:"same-node",dragNode:i,targetNode:o,dropType:a}:i.contains(o)?{valid:!1,reason:"drop-into-descendant",dragNode:i,targetNode:o,dropType:a}:"before"!==a&&"after"!==a||o.parent?{valid:!0,reason:"",dragNode:i,targetNode:o,dropType:a}:{valid:!1,reason:"target-parent-not-found",dragNode:i,targetNode:o,dropType:a}:{valid:!1,reason:"drag-root-not-allowed",dragNode:i,targetNode:o,dropType:a}:{valid:!1,reason:"node-not-found",dragNode:i,targetNode:o,dropType:a}:{valid:!1,reason:"invalid-drop-type",dragNode:i,targetNode:o,dropType:l}}moveNode(e,t,l="inner"){const a=this.canMoveNode(e,t,l);if(!a.valid)return{...a,movedNode:null};const{dragNode:i,targetNode:o,dropType:n}=a,s=this.getCurrentKey(),r=this.getCheckedKeys(),u=this.getExpandedKeys(),A=i.data;let d=null;return i.parent.removeChild(i),d="before"===n?o.parent.insertBefore({data:A},o):"after"===n?o.parent.insertAfter({data:A},o):"inner-first"===n?o.insertChild({data:A},0):o.insertChild({data:A}),this.setCheckedKeys(r),this.setExpandedKeys(u),this.setCurrentNodeKey(s),{...a,movedNode:d,checkedKeys:this.getCheckedKeys(),expandedKeys:this.getExpandedKeys(),currentKey:this.getCurrentKey()}}moveBefore(e,t){return this.moveNode(e,t,"before")}moveAfter(e,t){return this.moveNode(e,t,"after")}moveInner(e,t){return this.moveNode(e,t,"inner")}moveInnerFirst(e,t){return this.moveNode(e,t,"inner-first")}getAllChildren(e,t=!0){const l=this.getNode(e);if(!l)return[];const a=[],i=e=>{e.childNodes.forEach((e=>{(t||!e.isLeaf)&&a.push(e),i(e)}))};return i(l),a}batchSetNodeState(e,t,l,a){e.forEach((e=>{const i=this.getNode(e);i&&(void 0!==t&&(t?i.expand(null,this.autoExpandParent):i.collapse()),void 0!==l&&i.setChecked(l,!this.checkStrictly),void 0!==a&&a&&this.setCurrentNode(i))}))}}const ji=(e,t,l)=>Math.min(Math.max(e,t),l),$m=e=>e&&"object"==typeof e,sl=(...e)=>{for(const t of e)if(Number.isFinite(t))return t;return null},km=(e,t)=>{let l=e;for(const e of t)l=l?.[e];return l},qm=e=>{const t=e?.nativeEvent||e?.originalEvent||e?.event||e,l=sl(t?.clientX,e?.clientX,e?.point?.x,e?.coordinate?.x,e?.coordinates?.x,e?.pointer?.x),a=sl(t?.clientY,e?.clientY,e?.point?.y,e?.coordinate?.y,e?.coordinates?.y,e?.pointer?.y);return null==l||null==a?null:{x:l,y:a}},xm=e=>{const t=[e?.pointer?.current,e?.coordinates?.current,e?.position?.current,e?.position,e?.transform,e?.source?.position?.current,e?.target?.position?.current];for(const e of t){const t=sl(e?.x,e?.left),l=sl(e?.y,e?.top);if(null!=t&&null!=l)return{x:t,y:l}}return null},Wi=e=>{if(!e)return null;const t=sl(e.left,e.x),l=sl(e.top,e.y),a=sl(e.width,(e.right??0)-(t??0)),i=sl(e.height,(e.bottom??0)-(l??0));return null==t||null==l||null==a||null==i?null:{x:t,y:l,left:t,top:l,right:sl(e.right,t+a),bottom:sl(e.bottom,l+i),width:a,height:i}},Pm=e=>e?.getBoundingClientRect?Wi(e.getBoundingClientRect()):null,Bm=e=>e?.value||e||null,zm=(e={})=>{const t=e.placement,l=$m(t)?t:{},a=!1===t||!1===l.enabled,i="string"==typeof t?t:null,o=["vertical","horizontal","auto"].includes(i)?i:null,n=Number(l.threshold??e.placementThreshold??e.threshold??.25);return{enabled:!a,mode:l.mode||e.placementMode||!o&&i||e.mode||"drop",axis:l.axis||e.placementAxis||o||e.axis||"vertical",threshold:ji(Number.isFinite(n)?n:.25,0,.5),allowInside:l.allowInside??e.placementAllowInside??e.allowInside??!0}},Rm=({el:e,target:t}={})=>{const l=t?.rect||t?.shape?.current?.boundingRectangle||t?.shape?.boundingRectangle||t?.element?.rect||t?.data?.rect||km(t,["data","value","rect"]);return Wi(l)||Pm(Bm(t?.element||t?.el||e))},Nm=({event:e,operation:t,rect:l}={})=>qm(e)||xm(t)||(l?{x:l.left+l.width/2,y:l.top+l.height/2}:null),Im=(e={})=>{const t=zm(e.config||e);if(!t.enabled)return null;const l=Rm(e);if(!l)return null;const a=Nm({event:e.event,operation:e.operation,rect:l});if(!a)return null;const i="auto"===t.axis?l.width>l.height?"horizontal":"vertical":t.axis,o="horizontal"===i?l.width:l.height,n="horizontal"===i?a.x-l.left:a.y-l.top,s=o>0?ji(n/o,0,1):.5,r=t.allowInside&&s>t.threshold&&s<1-t.threshold?"inside":s<.5?"before":"after";return{placement:r,axis:i,mode:t.mode,ratio:s,threshold:t.threshold,offset:n,size:o,point:a,rect:l,before:"before"===r,inside:"inside"===r,after:"after"===r,indexOffset:"after"===r?1:0}},Om=Object.freeze(["prev","next","inner","inner-first"]),Dm=Object.freeze({before:"prev",after:"next",inside:"inner"}),Un=(e,t="none")=>Om.includes(e)?e:t,Mm=(e="inner")=>"inner-first"===e?"inner-first":"inner",Gi=e=>{const t="string"==typeof e?e:e?.placement;return["before","inside","after"].includes(t)?t:null},_m=(e,{insideDropType:t="inner"}={})=>{const l=Gi(e);return"inside"===l?Mm(t):Un(Dm[l],"none")},Em=({event:e,operation:t,el:l,target:a,threshold:i=.25,allowInside:o=!0,axis:n="vertical",mode:s="sortable",insideDropType:r="inner"}={})=>{const u=Im({el:l||e?.currentTarget,target:a,event:e,operation:t,config:{placement:!0,placementAxis:n,placementThreshold:i,placementAllowInside:o,placementMode:s}}),A=_m(u,{insideDropType:r});return{placement:u,dropType:A,placementName:Gi(u),before:"prev"===A,after:"next"===A,inside:"inner"===A||"inner-first"===A,innerFirst:"inner-first"===A}},an=Object.freeze({key:"id",children:"children",disabled:"disabled",draggable:"draggable",droppable:"droppable",expanded:"expanded"}),ra=null,zl=(e,t,l,a)=>"function"==typeof t?t(e,l,a):e?.[t],Ln=e=>Array.isArray(e)?e:[],Lm=e=>{if(null==e)return null;const t=e instanceof Set?Array.from(e):Ln(e);return new Set(t.map(Dl))},Fm=(e={})=>({...an,...e||{}}),Dl=e=>`${e}`,ua=(e=[])=>e.join("."),jm=(e,t,l=[],a=an)=>zl(e,a.key,t,l)??e?.value??e?.id??ua(l),Wm=(e,t=an,l=0,a=[])=>Ln(zl(e,t.children,l,a)),Gm=({item:e,index:t=0,path:l=[],parentKey:a=ra,parentPath:i=[],level:o=1,ancestors:n=[],keyMap:s=an,expandedKeySet:r=null,defaultExpanded:u=!0}={})=>{const A=Dl(jm(e,t,l,s)),d=Wm(e,s,t,l),c=d.length>0,p=zl(e,s.expanded,t,l),g=r?r.has(A):null==p?u:!1!==p,v=!0===zl(e,s.disabled,t,l),f=!v&&!1!==zl(e,s.draggable,t,l),h=!v&&!1!==zl(e,s.droppable,t,l);return{key:A,index:t,path:l.slice(),pathKey:ua(l),parentKey:a,parentPath:i.slice(),parentPathKey:ua(i),level:o,ancestors:n.slice(),item:e,children:d,childCount:d.length,childKeys:[],disabled:v,draggable:f,droppable:h,expanded:g,hasChildren:c,isLeaf:!c}},Hm=({list:e=[],keyMap:t=an,expandedKeys:l=null,defaultExpanded:a=!0}={})=>{const i=Fm(t),o=Lm(l),n=[],s=[],r=new Map,u=[];let A=0;const d=({nodes:e,parentKey:t=ra,parentPath:l=[],level:c=1,ancestors:p=[],visible:g=!0})=>{Ln(e).forEach(((e,v)=>{const f=l.concat(v),h=Gm({item:e,index:v,path:f,parentKey:t,parentPath:l,level:c,ancestors:p,keyMap:i,expandedKeySet:o,defaultExpanded:a});if(r.has(h.key)&&u.push(h.key),r.set(h.key,h),n.push(h),g&&s.push(h),A=Math.max(A,c),h.hasChildren){const e=g&&h.expanded,t=p.concat(h.key);d({nodes:h.children,parentKey:h.key,parentPath:f,level:c+1,ancestors:t,visible:e}),h.childKeys=n.filter((e=>e.parentKey===h.key)).map((e=>e.key))}}))};return d({nodes:e}),{keyMap:i,list:Ln(e),items:n,visibleItems:s,itemMap:r,duplicatedKeys:u,maxLevel:A,rootKeys:n.filter((e=>e.parentKey===ra)).map((e=>e.key))}},Km=Hm,yl=(e,t)=>e&&null!=t&&e.itemMap?.get(Dl(t))||null,Um=(e,t)=>{const l=yl(e,t);return l?e.items.filter((e=>e.ancestors.includes(l.key))).map((e=>e.key)):[]},Ym=(e,t,l)=>{const a=yl(e,l);return!(!a||null==t)&&a.ancestors.includes(Dl(t))},Qm=(e,t,l)=>Ym(e,t,l),Xm=({model:e,targetKey:t,dropType:l="inner"}={})=>{const a=yl(e,t);if(!a)return null;if("prev"===l)return a.path.slice();if("next"===l){const e=a.path.slice();return e[e.length-1]+=1,e}return"inner-first"===l?a.path.concat(0):a.path.concat(a.childCount)},Zm=e=>{if(null==e||""===e||!1===e)return null;const t=Number(e);return Number.isFinite(t)?Math.max(1,Math.floor(t)):null},So=(e,t)=>"function"!=typeof e||!1!==e(t),Zt=({valid:e=!1,reason:t="",source:l=null,target:a=null,placement:i=null,meta:o={}}={})=>({valid:e,reason:t,source:l,target:a,sourceKey:l?.key??null,targetKey:a?.key??null,placement:i,dropType:i?.dropType??"none",parentKey:i?.parentKey??null,level:i?.level??-1,index:i?.index??-1,meta:o}),Jm=({model:e,sourceKey:t,targetKey:l,placement:a=null,dropType:i=a?.dropType,maxDepth:o=null,allowDrag:n,allowDrop:s,disabled:r=!1,meta:u={}}={})=>{const A=null==t?null:Dl(t),d=null==l?null:Dl(l),c=yl(e,A),p=yl(e,d),g=Un(i,"none");if(r)return Zt({reason:"disabled",source:c,target:p,placement:a,meta:u});if(!c)return Zt({reason:"source-not-found",source:c,target:p,placement:a,meta:u});if(!p)return Zt({reason:"target-not-found",source:c,target:p,placement:a,meta:u});if("none"===g)return Zt({reason:"invalid-drop-type",source:c,target:p,placement:a,meta:u});if(c.key===p.key)return Zt({reason:"same-node",source:c,target:p,placement:a,meta:u});if(!1===c.draggable)return Zt({reason:"source-not-draggable",source:c,target:p,placement:a,meta:u});if(!1===p.droppable&&("inner"===g||"inner-first"===g))return Zt({reason:"target-not-droppable",source:c,target:p,placement:a,meta:u});if(Qm(e,c.key,p.key))return Zt({reason:"drop-into-descendant",source:c,target:p,placement:a,meta:u});const v=a?.level??("inner"===g||"inner-first"===g?p.level+1:p.level),f=Um(e,c.key).reduce(((t,l)=>{const a=yl(e,l);return Math.max(t,a?a.level-c.level:0)}),0),h=v+f,m=Zm(o);if(null!=m&&h>m)return Zt({reason:"max-depth-exceeded",source:c,target:p,placement:a,meta:{...u,maxDepth:m,nextMaxDepth:h,targetLevel:v,sourceMaxDepth:f}});const y={model:e,source:c,target:p,sourceKey:c.key,targetKey:p.key,placement:a,dropType:g,targetLevel:v,sourceMaxDepth:f,nextMaxDepth:h,maxDepth:m};return So(n,y)?So(s,y)?Zt({valid:!0,reason:"",source:c,target:p,placement:a,meta:{...u,targetLevel:v,sourceMaxDepth:f,nextMaxDepth:h,maxDepth:m}}):Zt({reason:"user-drop-not-allow",source:c,target:p,placement:a,meta:u}):Zt({reason:"user-drag-not-allow",source:c,target:p,placement:a,meta:u})},ey=Object.freeze(["prev","next","inner","inner-first"]),ty=(e,t="none")=>ey.includes(e)?e:t,mn=({reason:e,source:t=null,target:l=null,dropType:a="none",placement:i=null}={})=>({valid:!1,reason:e,source:t,target:l,sourceKey:t?.key??null,targetKey:l?.key??null,dropType:a,placement:i,insertPath:null,parentKey:null,index:-1,level:-1,before:!1,after:!1,inside:!1,innerFirst:!1}),ly=({model:e,sourceKey:t=null,targetKey:l,dropType:a="inner",placement:i=null,meta:o={}}={})=>{const n=null==t?null:yl(e,t),s=yl(e,l),r=ty(a,"none");if(null!=t&&!n)return mn({reason:"source-not-found",target:s,dropType:r,placement:i});if(!s)return mn({reason:"target-not-found",source:n,dropType:r,placement:i});if(!Un(r,null))return mn({reason:"invalid-drop-type",source:n,target:s,dropType:r,placement:i});const u=Xm({model:e,targetKey:s.key,dropType:r});if(!u)return mn({reason:"insert-path-not-found",source:n,target:s,dropType:r,placement:i});const A="inner"===r||"inner-first"===r,d=A?s.key:s.parentKey,c=u[u.length-1]??-1,p=A?s.level+1:s.level;return{valid:!0,reason:"",source:n,target:s,sourceKey:n?.key??null,targetKey:s.key,dropType:r,placement:i,insertPath:u,parentKey:d,index:c,level:p,before:"prev"===r,after:"next"===r,inside:A,innerFirst:"inner-first"===r,meta:o}},ny={prev:"before",inner:"inner","inner-first":"inner-first",next:"after"},tn=e=>Un(e,"none"),Yn=e=>ny[e]||null,$o=({event:e,el:t,threshold:l=.25,allowInside:a=!0}={})=>{const i=Em({el:t||e?.currentTarget,event:e,threshold:l,allowInside:a,axis:"vertical",mode:"tree",insideDropType:"inner"});return{placement:i.placement,dropType:tn(i.dropType),storeDropType:Yn(tn(i.dropType))}},ay=({draggingNode:e=null,dropNode:t=null,dropType:l="none",event:a=null,allowed:i=!1,reason:o="",moveResult:n=null,placement:s=null}={})=>{const r=tn(l),u=Yn(r);return{draggingNode:e,dropNode:t,draggingData:e?.data||null,dropData:t?.data||null,draggingKey:e?.key??null,dropKey:t?.key??null,dropType:r,storeDropType:u,placement:s,event:a,allowed:i,reason:o,moveResult:n}},ca=(e,t)=>!(!e||e.disabled)&&("function"!=typeof t||!1!==t(e)),oy=Object.freeze({key:e=>e?.key,children:e=>e?.childNodes||[],disabled:()=>!1,draggable:()=>!0,droppable:()=>!0,expanded:e=>e?.expanded}),iy=e=>Km({list:e?.root?.childNodes||[],keyMap:oy,defaultExpanded:!0}),sy=({store:e,draggingNode:t,dropNode:l,dropType:a,allowDrag:i,allowDrop:o,maxDepth:n=null}={})=>{const s=tn(a),r=iy(e),u=ly({model:r,sourceKey:t?.key,targetKey:l?.key,dropType:s,meta:{component:"TuiTree"}}),A=Jm({model:r,sourceKey:t?.key,targetKey:l?.key,dropType:s,placement:u,maxDepth:n,allowDrag:({source:e})=>ca(e?.item,i),allowDrop:({source:e,target:t,dropType:l})=>{if("function"!=typeof o)return!0;const a="inner-first"===l?"inner":l;return!1!==o(e?.item,t?.item,a)},meta:{component:"TuiTree",storeDropType:Yn(s)}});return{model:r,placement:u,constraint:A,valid:u.valid&&A.valid,reason:u.reason||A.reason}},yn=({store:e,draggingNode:t,dropNode:l,dropType:a,allowDrag:i,allowDrop:o,maxDepth:n}={})=>{const s=tn(a),r=Yn(s);if(!t||!l||!r)return{valid:!1,reason:"invalid-drop-target",storeDropType:r};if(!e?.canMoveNode)return{valid:!1,reason:"store-move-unavailable",storeDropType:r};const u=sy({store:e,draggingNode:t,dropNode:l,dropType:s,allowDrag:i,allowDrop:o,maxDepth:n});if(!u.valid)return{valid:!1,reason:u.reason||"nested-constraint-not-allow",storeDropType:r,dragNode:t,targetNode:l,placement:u.placement,constraint:u.constraint};const A=e?.canMoveNode?.(t.key,l.key,r)||{valid:!1,reason:"store-move-unavailable"};return A.valid?{...A,valid:!0,reason:"",storeDropType:r,placement:u.placement,constraint:u.constraint}:{...A,storeDropType:r}},ry={key:0,class:"tui-tree-filter"},uy={key:1,class:"tui-tree-empty"},cy={key:2,class:"tui-tree-loading"},dy={class:"tui-tree-load-text"},Ay={class:"tui-tree-inner"},fy=Object.assign({name:"TuiTree"},{__name:"index",props:{data:{type:Array,default:()=>[]},emptyText:String,nodeKey:{type:String,default:"id"},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled",isLeaf:"isLeaf",class:"class"})},renderAfterExpand:{type:Boolean,default:!0},highlightCurrent:{type:Boolean,default:!1},defaultExpandAll:{type:Boolean,default:!1},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},checkOnClickLeaf:{type:Boolean,default:!0},autoExpandParent:{type:Boolean,default:!0},defaultExpandedKeys:{type:Array,default:()=>[]},expandedKeys:Array,showCheckbox:{type:Boolean,default:!1},checkStrictly:{type:Boolean,default:!1},defaultCheckedKeys:{type:Array,default:()=>[]},checkedKeys:Array,modelValue:[String,Number],currentNodeKey:[String,Number],filterNodeMethod:{type:Function},accordion:{type:Boolean,default:!1},indent:{type:Number,default:18},icon:{type:[String,Object]},lazy:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,load:Function,appearance:{type:String,default:"tree",validator:e=>["tree","menu","menu-block"].includes(e)},showIcon:{type:Boolean,default:!1}},emits:["node-click","node-contextmenu","check-change","check","current-change","node-expand","node-collapse","update:modelValue","update:checkedKeys","update:expandedKeys","change","node-drag-start","node-drag-enter","node-drag-leave","node-drag-over","node-drag-end","node-drop"],setup(e,{expose:t,emit:l}){const{i18n:a}=ze("$global",null),i=e,o=l,n=u((()=>void 0!==i.modelValue?i.modelValue:i.currentNodeKey)),s=u((()=>i.checkedKeys??i.defaultCheckedKeys)),r=u((()=>i.expandedKeys??i.defaultExpandedKeys)),A=je(new Sm({key:i.nodeKey,data:i.data,lazy:i.lazy,props:i.props,load:i.load,currentNodeKey:n.value,checkStrictly:i.checkStrictly,defaultCheckedKeys:s.value,defaultExpandedKeys:r.value,autoExpandParent:i.autoExpandParent,defaultExpandAll:i.defaultExpandAll,filterNodeMethod:i.filterNodeMethod,accordion:i.accordion})),c=u((()=>A.root)),g=$(null),v=$(""),m=$(!1),y=u((()=>{const{childNodes:e}=c.value;return!e||0===e.length||e.every((e=>!1===e.visible))})),b=$(null),V=$(null),w=$(null),x=$(!1),q=$(null),k=u((()=>i.appearance)),S=u((()=>i.showIcon)),C=u((()=>i.icon)),B=(e,t,l)=>{const a=A.getCurrentKey();g.value=A.currentNode,o("update:modelValue",a),o("change",a,e,t),o("current-change",e,t,l)},z=()=>{o("update:checkedKeys",A.getCheckedKeys())},N=()=>{o("update:expandedKeys",A.getExpandedKeys())};Z((()=>i.data),(e=>{A.setData(e),g.value=A.currentNode}),{deep:!0}),Z(n,(e=>{A.setCurrentNodeKey(e),g.value=A.currentNode})),Z((()=>i.defaultCheckedKeys),(e=>{void 0===i.checkedKeys&&A.setDefaultCheckedKeys(e)})),Z((()=>i.checkedKeys),(e=>{void 0!==e&&A.setCheckedKeys(e)})),Z((()=>i.defaultExpandedKeys),(e=>{void 0===i.expandedKeys&&A.setDefaultExpandedKeys(e)})),Z((()=>i.expandedKeys),(e=>{void 0!==e&&A.setExpandedKeys(e)})),Z(v,(e=>{A.filter(e)}));const R=e=>A.getNodeKey(e),I=Ee("tree_drag_leave"),M=({sourceNode:e=V.value,targetNode:t=w.value,type:l=b.value,allowed:a=x.value,mode:i=q.value}={})=>{V.value!==e&&(V.value=e),w.value!==t&&(w.value=t),b.value!==l&&(b.value=l),x.value!==a&&(x.value=a),q.value!==i&&(q.value=i)},P=()=>{ot.c(I)},D=e=>{ot.s(I,(()=>{((e=null)=>{e&&w.value!==e||M({targetNode:null,type:null,allowed:!1,mode:null})})(e)}))},_=e=>{const t=e?.currentTarget,l=e?.relatedTarget;if(!t||!l)return!1;const a=t.closest?.(".tui-tree"),i=l.closest?.(".tui-tree");return t===l||t.contains(l)||a&&a===i&&!!l.closest?.(".tui-tree-node-cont")},E=()=>{P(),V.value=null,w.value=null,b.value=null,x.value=!1,q.value=null},j=(e,t={})=>({phase:e,...ay({draggingNode:V.value,dropNode:w.value,dropType:b.value||"none",allowed:x.value,...t})}),L=e=>{if(V.value)return V.value;const t=e?.dataTransfer?.getData("application/x-techui-tree-node");return null==t||""===t?null:A.getNode(t)};return dt((()=>{P()})),bt(ka,{store:A,root:c,currentNode:g,appearance:k,showIcon:S,defaultIcon:C,draggable:u((()=>i.draggable)),treeDragState:{draggingNode:V,dropNode:w,dropType:b,dropAllowed:x,dropMode:q},treeDragHandlers:{canDrag:e=>i.draggable&&ca(e,i.allowDrag),dragStart:(e,t)=>{i.draggable&&ca(e,i.allowDrag)?(M({sourceNode:e,targetNode:null,type:null,allowed:!1,mode:null}),t.dataTransfer&&(t.dataTransfer.effectAllowed="move",t.dataTransfer.setData("application/x-techui-tree-node",R(e))),o("node-drag-start",j("node-drag-start",{event:t}))):t.preventDefault()},dragEnter:(e,t)=>{i.draggable&&o("node-drag-enter",j("node-drag-enter",{event:t,dropNode:e}))},dragOver:(e,t)=>{if(!i.draggable)return;P();const l=L(t),a=$o({event:t,el:t.currentTarget}),n="next"===a.dropType&&e.expanded&&!e.isLeaf?"inner-first":a.dropType,s=yn({store:A,draggingNode:l,dropNode:e,dropType:n,allowDrag:i.allowDrag,allowDrop:i.allowDrop}),r=l===e;M({sourceNode:l,targetNode:r?null:e,type:s.valid?n:null,allowed:!r&&s.valid,mode:s.valid?"node":null}),t.dataTransfer&&(t.dataTransfer.dropEffect=s.valid?"move":"none"),s.valid&&t.preventDefault(),o("node-drag-over",j("node-drag-over",{event:t,dropNode:e,dropType:n,placement:a.placement,allowed:s.valid,reason:s.reason}))},dragLeave:(e,t)=>{i.draggable&&(_(t)||D(e),o("node-drag-leave",j("node-drag-leave",{event:t,dropNode:e,dropType:"none"})))},drop:(e,t)=>{if(!i.draggable)return;P(),t.preventDefault();const l=L(t),a=e,n=b.value||$o({event:t,el:t.currentTarget}).dropType,s=yn({store:A,draggingNode:l,dropNode:a,dropType:n,allowDrag:i.allowDrag,allowDrop:i.allowDrop});let r=null;s.valid&&(r=A.moveNode(l.key,a.key,s.storeDropType),N(),z()),o("node-drop",j("node-drop",{event:t,draggingNode:l,dropNode:a,dropType:n,allowed:!!r?.valid,reason:r?.reason||s.reason,moveResult:r})),E()},childrenDragOver:(e,t)=>{if(!i.draggable)return;P();const l=L(t),a=yn({store:A,draggingNode:l,dropNode:e,dropType:"next",allowDrag:i.allowDrag,allowDrop:i.allowDrop}),n=l===e;M({sourceNode:l,targetNode:n?null:e,type:a.valid?"next":null,allowed:!n&&a.valid,mode:a.valid?"children-tail":null}),t.dataTransfer&&(t.dataTransfer.dropEffect=a.valid?"move":"none"),a.valid&&t.preventDefault(),o("node-drag-over",j("node-drag-over",{event:t,dropNode:e,dropType:"next",placement:{placement:"after",mode:"children-tail"},allowed:a.valid,reason:a.reason}))},childrenDragLeave:(e,t)=>{i.draggable&&(_(t)||D(e),o("node-drag-leave",j("node-drag-leave",{event:t,dropNode:e,dropType:"next",placement:{placement:"after",mode:"children-tail"}})))},childrenDrop:(e,t)=>{if(!i.draggable)return;P(),t.preventDefault();const l=L(t),a=yn({store:A,draggingNode:l,dropNode:e,dropType:"next",allowDrag:i.allowDrag,allowDrop:i.allowDrop});let n=null;a.valid&&(n=A.moveNode(l.key,e.key,a.storeDropType),N(),z()),o("node-drop",j("node-drop",{event:t,draggingNode:l,dropNode:e,dropType:"next",placement:{placement:"after",mode:"children-tail"},allowed:!!n?.valid,reason:n?.reason||a.reason,moveResult:n})),E()},dragEnd:e=>{o("node-drag-end",j("node-drag-end",{event:e})),E()}},emitter:{emit:(e,...t)=>{switch(e){case"current-change":B(...t);break;case"check-change":z(),o(e,...t);break;case"check":o(e,t[0],{...t[1],state:{currentKey:A.getCurrentKey(),currentNode:A.getCurrentNode(),checkedKeys:A.getCheckedKeys(),checkedNodes:A.getCheckedNodes(),halfCheckedKeys:A.getHalfCheckedKeys(),halfCheckedNodes:A.getHalfCheckedNodes(),expandedKeys:A.getExpandedKeys()}});break;case"node-expand":case"node-collapse":N(),o(e,...t);break;default:o(e,...t)}}}}),t({filter:e=>{v.value=void 0===e?"":e},updateKeyChildren:(e,t)=>A.updateChildren(e,t),getCheckedNodes:(e,t)=>A.getCheckedNodes(e,t),setCheckedNodes:e=>{A.setCheckedNodes(e),z()},getCheckedKeys:e=>A.getCheckedKeys(e),setCheckedKeys:(e,t)=>{A.setCheckedKeys(e,t),z()},setChecked:(e,t,l)=>{A.setChecked(e,t,l),z()},getHalfCheckedNodes:()=>A.getHalfCheckedNodes(),getHalfCheckedKeys:()=>A.getHalfCheckedKeys(),getExpandedKeys:()=>A.getExpandedKeys(),setExpandedKeys:e=>{A.setExpandedKeys(e),N()},getCurrentKey:()=>A.getCurrentKey(),getCurrentNode:()=>A.getCurrentNode(),setCurrentKey:(e,t=!0)=>{A.setCurrentKey(e,t),g.value=A.currentNode,B(A.currentNode?.data,A.currentNode,null)},setCurrentNode:(e,t=!0)=>{A.setCurrentNode(e,t),g.value=A.currentNode,B(A.currentNode?.data,A.currentNode,null)},getNode:e=>A.getNode(e),getNodeData:e=>A.getNodeData(e),getNodeLabel:e=>A.getNodeLabel(e),getNodesByKeys:e=>A.getNodesByKeys(e),getNodeDataByKeys:e=>A.getNodeDataByKeys(e),getNodeLabelsByKeys:e=>A.getNodeLabelsByKeys(e),getNodePath:e=>A.getNodePath(e),getNodePathKeys:e=>A.getNodePathKeys(e),getNodePathData:e=>A.getNodePathData(e),getNodePathLabels:e=>A.getNodePathLabels(e),canMoveNode:(e,t,l)=>A.canMoveNode(e,t,l),moveNode:(e,t,l)=>A.moveNode(e,t,l),moveBefore:(e,t)=>A.moveBefore(e,t),moveAfter:(e,t)=>A.moveAfter(e,t),moveInner:(e,t)=>A.moveInner(e,t),remove:e=>A.remove(e),append:(e,t)=>A.append(e,t),insertBefore:(e,t)=>A.insertBefore(e,t),insertAfter:(e,t)=>A.insertAfter(e,t)}),Be((()=>{g.value=A.currentNode,i.lazy&&i.load&&(!i.data||0===i.data.length)&&(m.value=!0,i.load(c.value,(e=>{m.value=!1,c.value.doCreateChildren(e),A._initDefaultCheckedNodes()})))})),(t,l)=>{const o=ke("TuiInput"),n=ke("TuiResult");return d(),h("div",{class:O(["tui-tree",`is-appr-${e.appearance}`,{"is-draggable":e.draggable,"is-drop-not-allow":e.draggable&&w.value&&!x.value,"is-drop-inner":"inner"===b.value,"is-highlight":e.highlightCurrent,"has-icon":e.showIcon}])},[e.filterNodeMethod?(d(),h("div",ry,[me(o,{clearable:"",type:"text",modelValue:v.value,"onUpdate:modelValue":l[0]||(l[0]=e=>v.value=e),placeholder:p(a)("placeholder.filter")},null,8,["modelValue","placeholder"])])):T("",!0),y.value?(d(),h("div",uy,[me(n,{title:e.emptyText},null,8,["title"])])):T("",!0),m.value?(d(),h("div",cy,[f("span",dy,X(p(a)("common.processing")),1)])):T("",!0),Re(f("div",Ay,[(d(!0),h(ge,null,Fe(c.value.childNodes,(l=>(d(),le(Fi,{key:R(l),node:l,props:i,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"expand-on-click-node":e.expandOnClickNode,"check-on-click-node":e.checkOnClickNode,"check-on-click-leaf":e.checkOnClickLeaf,"current-node-key":e.currentNodeKey,indent:e.indent,icon:e.icon},el({_:2},[t.$slots.default?{name:"default",fn:G((e=>[ee(t.$slots,"default",{node:e.node,data:e.data})])),key:"0"}:void 0,t.$slots.icon?{name:"icon",fn:G((e=>[ee(t.$slots,"icon",_e({ref_for:!0},e))])),key:"1"}:void 0]),1032,["node","props","render-after-expand","show-checkbox","expand-on-click-node","check-on-click-node","check-on-click-leaf","current-node-key","indent","icon"])))),128))],512),[[Ye,!y.value]])],2)}}}),py=["id","data-name","aria-labelledby","aria-disabled"],gy=Object.assign({name:"TuiCheckbox"},{__name:"index",props:{modelValue:{type:Array,default:()=>[]},max:Number,defaultIcon:{type:Boolean,default:!0},separable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appearance:{type:String,default:"simple",validator:e=>["simple","buttonPlain","button"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},textDirection:{type:String,default:null,validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},align:{type:String,default:null,validator:e=>["start","center","end"].includes(e)},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["label"]);return t||console.warn("TuiCheckBox Warning! ",l),t}},tipConfig:Object,id:String,name:String,itemMaxWidth:Number,itemMinWidth:Number,itemWidth:Number,className:String},emits:["change","update:modelValue"],setup(e,{emit:t}){const l=e,a=ze("TuiForm",null),i=ze("tuiFormItem",null),o=Ee("checkbox"),n=u((()=>a?.size?.value||l.size)),s=u((()=>a?.disabled?.value||l.disabled)),r=u((()=>l.id||i?.fieldId?.value)),A=u((()=>l.name||i?.fieldName?.value)),c=u((()=>i?.labelId?.value||null)),p=u((()=>`is-${l.appearance.replace(/([A-Z])/g,"-$1").toLowerCase()}`)),g=u((()=>$e("cpt-ckbox",{...q("align",l.align),...q("imaxw",l.itemMaxWidth,"px"),...q("iminw",l.itemMinWidth,"px"),...q("iw",l.itemWidth,"px")}))),v=t,f=()=>{i?.registerControl?.({uid:o,id:r.value,name:A.value,labelable:!1})};return bt("TuiCkboxG",{tipConfig:u((()=>l.tipConfig)),modelValue:u((()=>l.modelValue)),defaultIcon:u((()=>l.defaultIcon)),max:u((()=>l.max)),parDisabled:s,isChecked:e=>l.modelValue.includes(e),updateValue:e=>{const t=[...l.modelValue];if(!e&&0!=e||-1!=t.indexOf(e)){const l=t.indexOf(e);l>-1&&t.splice(l,1)}else{if(l.max&&t.length>=l.max)return;t.push(e)}v("update:modelValue",t),v("change",t),i?.validate?.("change")}}),Be(f),dt((()=>{i?.unregisterControl?.(o)})),Z([r,A],f),(t,l)=>{const a=ke("TuiCheckboxItem");return d(),h("div",{id:r.value,"data-name":A.value,role:"group","aria-labelledby":c.value,"aria-disabled":s.value,class:O(["tui-checkbox",p.value,`is-size-${n.value}`,e.className,e.direction&&`is-dir-${e.direction}`,e.textDirection&&`is-text-dir-${e.textDirection}`,{"is-separable":e.separable}]),style:we(g.value)},[e.options.length>0?(d(!0),h(ge,{key:0},Fe(e.options,((e,t)=>(d(),le(a,{value:null!=e.value&&null!=e.value?e.value:t,count:e.count,icon:e.icon,disabled:e.disabled},{default:G((()=>[We(X(e.label),1)])),_:2},1032,["value","count","icon","disabled"])))),256)):ee(t.$slots,"default",{key:1})],14,py)}}}),vy=["onKeydown","aria-checked","aria-disabled","tabindex"],hy={key:0,class:O("tui-cbi-icon tui-icon ti-square")},my={key:1,class:O("tui-cbi-icon tui-icon tis-check-square")},yy=Object.assign({name:"TuiCheckboxItem"},{__name:"item",props:{value:{type:[String,Number,Boolean],required:!0},icon:{type:[String,Array],default:null},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tipConfig:l,updateValue:a,modelValue:i,defaultIcon:o,max:n,isChecked:s,parDisabled:r}=ze("TuiCkboxG",null),A=u((()=>A.value)),c=u((()=>s(t.value))),g=u((()=>"array"==st(t.icon)&&2==t.icon.length?c.value?t.icon[1]:t.icon[0]:"string"==st(t.icon)?t.icon:void 0)),v=e=>{t.disabled||r.value||a(t.value)},f=()=>{v()};return El((()=>{})),(t,a)=>{const i=ke("TuiTextTip");return d(),h("div",{onClick:v,onKeydown:[cl(Ze(f,["prevent","stop"]),["enter"]),cl(Ze(f,["prevent","stop"]),["space"])],role:"checkbox","aria-checked":c.value,"aria-disabled":e.disabled||p(r),tabindex:e.disabled||p(r)?-1:0,class:O(["tui-checkbox-item",{"is-active":c.value,"is-disabled":e.disabled||p(r)}])},[!c.value&&p(o)?(d(),h("i",hy)):p(o)?(d(),h("i",my)):T("",!0),e.icon?(d(),h("i",{key:2,class:O(`tui-cbi-icon ${g.value}`)},null,2)):T("",!0),me(i,mt(qt(p(l))),{default:G((()=>[ee(t.$slots,"default")])),_:3},16)],42,vy)}}});function qa(e,t,l){let a=e;const i=(t=(t=Ml(t)).replace(/^\./,"")).split(".");let o=0;for(let e=i.length;o<e-1;++o){if(!a){if(l)throw new Error("please transfer a valid prop path to form item!");break}const e=i[o];if(!(e in a)){if(l)throw new Error("please transfer a valid prop path to form item!");break}a=a[e]}return{o:a,k:i[o],v:a?a[i[o]]:null}}function Ml(e){return Array.isArray(e)?e.join("."):`${e||""}`.replace(/\[(\w+)\]/g,".$1")}function by(e,t){return`tui-form-${Ml(e).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,"")||t}`}function Hi(e){return e?Array.isArray(e)?e:[e]:[]}function Vy(e,t,l,a){const i=a?[{required:!!l}]:[],o=Ml(t);if(!o)return i;const n=qa(e,o,!1);return Hi(e?e[o]??n.v:null).concat(i)}function wy(e,t){return Hi(e).filter((e=>!e.trigger||""===t||(Array.isArray(e.trigger)?e.trigger.includes(t):e.trigger===t))).map((e=>({...e})))}function Fn(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return new Date(e.getTime());if(Array.isArray(e))return e.map((e=>Fn(e)));if("[object Object]"!==Object.prototype.toString.call(e))return e;const t={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(t[l]=Fn(e[l]));return t}function Cy(e,t,l,a=!0){const i=qa(e,t,a);return!(!i?.o||!i.k)&&(i.o[i.k]=l,!0)}const Ty=Object.assign({name:"TuiForm"},{__name:"index",props:{model:{type:Object,default:()=>({})},rules:{type:Object,default:()=>({})},inline:{type:Boolean,default:!1},labelPosition:{type:String,default:"right",validator:e=>["left","right","top"].includes(e)},labelWidth:{type:[String,Number],default:150},labelSuffix:{type:String,default:":"},labelHide:{type:Boolean,default:!1},asteriskHide:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"left",validator:e=>["left","right"].includes(e)},showMessage:{type:Boolean,default:!0},inlineMessage:{type:Boolean,default:!1},showValidateState:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},disabled:{type:Boolean,default:!1},scrollToError:{type:Boolean,default:!1},scrollIntoViewOptions:{type:[Object,Boolean],default:!0}},emits:["validate"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=$([]),n=e=>{if(e&&e.length>0){const t=new Set(e.map((e=>Ml(e)))),l=[];return t.forEach((e=>{const t=o.value.find((t=>t.prop===e));t&&l.push(t)})),l}return o.value.filter((e=>e.prop))},s=async e=>{if(!a.model)return console.warn("[TuiForm] model is required for validate to work."),!1;let t;"function"!=typeof e&&(t=new Promise(((t,l)=>{e=(e,a)=>{e?t(!0):l(a)}})));let l=!0,i=0,o={};const s=n();return 0===s.length?(e(!0,{}),t):(s.forEach((t=>{t.validate("",((n,u)=>{n&&(l=!1,o[t.prop]=u||{message:n,field:t.prop}),"function"==typeof e&&++i===s.length&&(e(l,o),!l&&a.scrollToError&&r(Object.keys(o)[0]))}))})),t)},r=e=>{const t=Ml(e),l=o.value.find((e=>e.prop===t)),i=l?.$el?.value||l?.$el;i?.scrollIntoView&&i.scrollIntoView(a.scrollIntoViewOptions)};return Z((()=>a.rules),(()=>{a.validateOnRuleChange&&s().catch((()=>{}))}),{deep:!0}),bt("TuiForm",{labelWidth:u((()=>a.labelWidth)),labelPosition:u((()=>a.labelPosition)),labelSuffix:u((()=>a.labelSuffix)),labelHide:u((()=>a.labelHide)),asteriskHide:u((()=>a.asteriskHide)),asteriskPosition:u((()=>a.asteriskPosition)),showMessage:u((()=>a.showMessage)),inlineMessage:u((()=>a.inlineMessage)),showValidateState:u((()=>a.showValidateState)),inline:u((()=>a.inline)),validateOnRuleChange:u((()=>a.validateOnRuleChange)),model:u((()=>a.model)),rules:u((()=>a.rules)),size:u((()=>a.size)),disabled:u((()=>a.disabled)),addField:e=>{if(e){const t=o.value.findIndex((t=>t.uid===e.uid));if(t>-1)return void(o.value[t]=e);o.value.push(e)}},removeField:e=>{if(e?.uid){const t=o.value.findIndex((t=>t.uid===e.uid));t>-1&&o.value.splice(t,1)}},emit:i}),t({validate:s,validateField:(e,t)=>{const l=n([].concat(e));0!==l.length?l.forEach((e=>{e.validate("",t)})):console.warn("[TuiForm] please pass correct props!")},resetFields:()=>{a.model?o.value.forEach((e=>{e.resetField()})):console.warn("[TuiForm] model is required for resetFields to work.")},clearValidate:e=>{(e?n([].concat(e)):o.value).forEach((e=>{e.clearValidate()}))},scrollToField:r,fields:u((()=>o.value))}),(t,l)=>(d(),h("form",{class:O(["tui-form",{"is-inline":e.inline,[`is-label-pos-${e.labelPosition}`]:e.labelPosition,[`is-size-${e.size}`]:e.size}]),onSubmit:l[0]||(l[0]=Ze((()=>{}),["prevent"]))},[ee(t.$slots,"default")],34))}}),Sy={key:0,class:"tui-fi-label-wrap"},$y=["id","for"],ky={key:0,class:"tui-fi-asterisk"},qy={key:1,class:"tui-fi-asterisk"},xy={key:2,class:"tui-fi-label-suffix"},Py={class:"tui-fi-content-wrap"},By=["aria-labelledby"],zy=160,Ry=Object.assign({name:"TuiFormItem"},{__name:"item",props:{contentAlign:{type:String,default:null,validator:e=>["left","center","right"].includes(e)},prop:[String,Array],label:String,required:Boolean,error:String,for:String,validateStatus:{type:String,validator:e=>["","error","validating","success"].includes(e)}},setup(e,{expose:t}){const l=e,a=Ee("formItem"),i=`${a}_change`,o=ze("TuiForm",null),n={asteriskHide:u((()=>!1)),asteriskPosition:u((()=>"left")),labelWidth:u((()=>150)),labelPosition:u((()=>"right")),labelSuffix:u((()=>":")),labelHide:u((()=>!1)),showMessage:u((()=>!0)),inlineMessage:u((()=>!1)),showValidateState:u((()=>!0)),inline:u((()=>!1)),model:u((()=>({}))),addField:()=>{},removeField:()=>{},size:u((()=>"default")),rules:u((()=>({}))),emit:()=>{}},{asteriskHide:s,asteriskPosition:r,labelWidth:A,labelPosition:c,labelSuffix:g,labelHide:v,showMessage:m,inlineMessage:y,showValidateState:b,inline:V,model:w,addField:x,removeField:k,size:S,rules:C,emit:B}=o||n,z=Nt(),N=Tt(),R=$(null),I=$(""),M=$(""),P=$(!1),D=$(void 0),_=$(null),E=$(!1),j=u((()=>Ml(l.prop))),L=u((()=>R.value?.$el||R.value)),F=u((()=>l.for||by(j.value,a))),W=u((()=>j.value||F.value)),H=u((()=>`${F.value}-label`)),U=u((()=>ie.value?null:H.value)),Y=$([]),Q=u((()=>Y.value.find((e=>e.labelable&&e.id)))),K={uid:a,get prop(){return j.value},validate:ce,resetField:ge,clearValidate:pe,get $el(){return R}},J=u((()=>l.for||Q.value?.id||null)),te=u((()=>{const e=N?.vnode?.props||{};return Object.prototype.hasOwnProperty.call(e,"required")})),le=u((()=>V.value&&"right"==c.value?"left":c.value)),ae=u((()=>{let e=de();if(!e)return te.value&&l.required;let t=!1;return e?.length&&e.every((e=>!e.required||(t=!0,!1))),t||te.value&&l.required})),ie=u((()=>!l.label&&!z.label||v.value)),oe=u((()=>{if(!V.value)return[$e("cpt-fi-label",{...q("width","100%",{when:"top"===le.value}),...q("width",A.value,{smartAppend:!0,when:"top"!=le.value&&A.value&&"auto"!==A.value})})]})),ne=u((()=>"error"===I.value&&m.value&&M.value)),se=()=>{const e=Ae();D.value=Fn(e)},re=()=>{E.value||!j.value||(x(K),E.value=!0)},ue=()=>{E.value&&(k(K),E.value=!1)},Ae=()=>{if(w.value&&j.value)return qa(w.value,j.value,!0).v},de=()=>Vy(C.value,j.value,l.required,te.value);function ce(e,t=(()=>{})){qe.c(i),P.value=!1;const l=j.value,a=(e=>wy(de(),e))(e);if(!l||!a||0===a.length)return t(),!0;I.value="validating";const o={};a.length>0&&a.forEach((e=>{delete e.trigger})),o[l]=a;const n=new $u(o),s={};s[l]=Ae(),n.validate(s,{firstFields:!0},(e=>{I.value=e?"error":"success",M.value=e?e[0].message:"";const a=e?{message:M.value,field:l}:null;t(M.value,a),B("validate",l,!e,M.value||null)}))}function pe(){qe.c(i),I.value="",M.value="",P.value=!1}function ge(){j.value&&(qe.c(i),I.value="",M.value="",P.value=!0,Cy(w.value,j.value,Fn(D.value),!0),ye((()=>{P.value=!1})))}const ve=()=>{const e=L.value?.querySelectorAll?.("input, textarea, select, [tabindex]")||ct.el("input, textarea, select, [tabindex]",!0);e?.length&&e[0].focus?.()},fe=()=>{"function"==typeof _.value&&(_.value(),_.value=null)},he=()=>{fe();const e=de();if(!j.value||!e||!e.length&&!te.value)return;const t=u((()=>Ae()));_.value=Z(t,(()=>{P.value?P.value=!1:(qe.c(i),qe.s(i,(()=>{ce("change")}),zy))}),{deep:!0})};return Z((()=>l.error),(e=>{M.value=e,I.value=e?"error":""}),{immediate:!0}),Z((()=>l.validateStatus),(e=>{I.value=e})),Z((()=>j.value),((e,t)=>{if(t&&!e)return ue(),void pe();e&&!t&&re(),e!==t&&pe(),se(),he()})),Z([te,()=>l.required,C],(()=>{he()}),{deep:!0}),Be((()=>{re(),se(),he()})),dt((()=>{qe.c(i),fe(),ue()})),bt("tuiFormItem",{...rt(l),size:S,validateState:I,validateMessage:M,validate:ce,fieldId:F,fieldName:W,labelId:H,registerControl:e=>{if(!e?.uid)return;const t=Y.value.findIndex((t=>t.uid===e.uid));t>-1?Y.value[t]=e:Y.value.push(e)},unregisterControl:e=>{const t=Y.value.findIndex((t=>t.uid===e));t>-1&&Y.value.splice(t,1)}}),t({size:S,validateMessage:M,validateState:I,validate:ce,resetField:ge,clearValidate:pe,prop:j,$el:R}),(t,l)=>{const a=ke("TuiTextTip");return d(),h("div",{class:O(["tui-form-item",`is-label-pos-${le.value}`,`is-size-${p(S)}`,{"is-no-label":ie.value&&!p(v),"is-hide-label":p(v),"is-inline":p(V),"is-error":"error"===I.value,"is-validating":p(b)&&"validating"===I.value,"is-success":p(b)&&"success"===I.value,"is-required":ae.value,"is-no-asterisk":p(s)}]),style:we(oe.value),ref_key:"formItemRef",ref:R},[p(A)&&!ie.value?(d(),h("div",Sy,[f("label",{class:O(["tui-fi-label",`is-label-pos-${le.value}`]),id:H.value,for:J.value,onClick:ve},[ae.value&&!p(s)&&"left"==p(r)?(d(),h("span",ky,"*")):T("",!0),ee(t.$slots,"label",{},(()=>[me(a,null,{default:G((()=>[We(X(e.label),1)])),_:1})])),ae.value&&!p(s)&&"right"==p(r)?(d(),h("span",qy,"*")):T("",!0),p(g)?(d(),h("span",xy,X(p(g)),1)):T("",!0)],10,$y)])):T("",!0),f("div",Py,[f("div",{class:O(["tui-fi-content",e.contentAlign&&`is-align-${e.contentAlign}`]),"aria-labelledby":U.value},[ee(t.$slots,"default")],10,By),me(Ue,{name:"fades"},{default:G((()=>[ne.value?(d(),h("div",{key:0,class:O(["tui-fi-error",{"is-inline":p(y)}])},[ee(t.$slots,"error",{error:M.value},(()=>[We(X(M.value),1)]))],2)):T("",!0)])),_:3})])],6)}}}),Ny={key:0,class:"tui-input-prefix"},Iy=["id","name","type","value","placeholder","disabled","readonly","maxlength","autocomplete","min","max","step"],Oy={key:2,class:"tui-input-counter"},Dy={key:4,class:"tui-input-suffix"},My=["id","name","value","placeholder","disabled","readonly","maxlength","rows","autosize"],_y={key:0,class:"tui-input-counter"},Ey=Object.assign({name:"TuiInput"},{__name:"index",props:{type:{type:String,default:"text",validator:e=>["text","textarea","password","number"].includes(e)},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},rows:{type:[String,Number],default:3},autocomplete:{type:String,default:"off"},id:String,name:String,modelValue:[String,Number],maxLength:[String,Number],placeholder:String,icon:String,prefixIcon:String,suffixIcon:String,clearable:Boolean,formatter:Function,disabled:Boolean,readonly:Boolean,autosize:Boolean,precision:{type:Number,default:0},min:{type:Number,default:-100},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1}},emits:["update:modelValue","input","change","blur","focus","clear"],setup(e,{expose:t,emit:l}){const{proxy:{$tService:{i18n:a}}}=Tt(),i=Nt(),o=e,n=l,s=ze("TuiForm",null),r=ze("tuiFormItem",null),A=Ee("input"),c=u((()=>s?.size?.value||o.size)),p=u((()=>s?.disabled?.value||o.disabled)),g=u((()=>o.id||r?.fieldId?.value)),v=u((()=>o.name||r?.fieldName?.value)),m=()=>{r?.registerControl?.({uid:A,id:g.value,name:v.value,labelable:!0})},y=u({get:()=>o.modelValue,set:e=>n("update:modelValue",e)}),b=u((()=>o.prefixIcon||o.icon)),V=$(!1),w=u((()=>"password"===o.type?V.value?"text":"password":o.type)),x=()=>{V.value=!V.value},q=$(0),k=$(null),S=e=>{let t;if("number"==o.type){const l=Math.pow(10,o.precision);t=Math.round(e.target.value*l)/l,t<o.min?t=o.min:t>o.max&&(t=o.max)}else t=e.target.value,"text"===o.type&&o.formatter&&(t=o.formatter(t)),o.maxLength&&(t=t.slice(0,Number(o.maxLength)));y.value=t,q.value=t.length,n("input",e)},C=()=>{!i.prefix&&!i.suffix&&k.value.focus()},B=()=>{y.value="",q.value=0,k.value.focus(),n("clear")},z=$(!1),N=e=>{n("blur",e),r?.validate?.("blur"),z.value=!1},R=e=>{n("focus",e),z.value=!0},I=u((()=>o.clearable&&!p.value&&!o.readonly)),M=u((()=>o.placeholder||a("placeholder.input"))),P=u((()=>{const e=Number(o.modelValue);return!Number.isNaN(e)&&e<=o.min})),D=u((()=>{const e=Number(o.modelValue);return!Number.isNaN(e)&&e>=o.max})),_=()=>{if(p.value||D.value)return;const e=Ct.verify(o.modelValue)?o.modelValue:Number(o.modelValue),t=Math.pow(10,o.precision);let l=Math.round((e+o.step)*t)/t;l>o.max&&(l=o.max),n("update:modelValue",l),n("change",l)},E=()=>{if(p.value||P.value)return;const e=Ct.verify(o.modelValue)?o.modelValue:Number(o.modelValue),t=Math.pow(10,o.precision);let l=Math.round((e-o.step)*t)/t;l<o.min&&(l=o.min),n("update:modelValue",l),n("change",l)};return t({focus:()=>{k.value?.focus()},blur:()=>{k.value?.blur()},select:()=>{k.value?.select()},inputRef:k}),Be(m),dt((()=>{r?.unregisterControl?.(A)})),Z([g,v],m),(t,l)=>{const a=ke("TuiButton");return d(),h("div",{class:O(["textarea"==e.type?"tui-textarea":"tui-input","number"==e.type&&"is-number",`is-size-${c.value}`,{"is-disabled":p.value,"is-readonly":e.readonly,"is-focus":z.value},"textarea"!==e.type?{"has-prefix":t.$slots.prefix||"number"==e.type,"has-suffix":t.$slots.suffix||"number"==e.type}:""]),onClick:C},["textarea"!==e.type?(d(),h(ge,{key:0},[t.$slots.prefix||b.value||"number"==e.type?(d(),h("div",Ny,["number"==e.type?(d(),le(a,{key:0,disabled:p.value||e.readonly||P.value,onClick:E},{default:G((()=>[...l[0]||(l[0]=[f("i",{class:"tui-icon ti-angle-left"},null,-1)])])),_:1},8,["disabled"])):ee(t.$slots,"prefix",{key:1},(()=>[b.value?(d(),h("i",{key:0,class:O(["tui-input-icon",b.value])},null,2)):T("",!0)]))])):T("",!0),f("input",{class:"tui-input-inner",ref_key:"inputRef",ref:k,id:g.value,name:v.value,type:w.value,value:y.value,placeholder:M.value,disabled:p.value,readonly:e.readonly,maxlength:e.maxLength,autocomplete:e.autocomplete,min:e.min,max:e.max,step:e.step,onInput:S,onBlur:N,onFocus:R},null,40,Iy),I.value&&y.value?(d(),h("div",{key:1,class:"tui-input-clear",onClick:B},[...l[1]||(l[1]=[f("i",{class:"tui-input-icon tui-icon ti-times"},null,-1)])])):T("",!0),e.maxLength?(d(),h("div",Oy,X(q.value)+"/"+X(e.maxLength),1)):T("",!0),"password"===e.type&&y.value?(d(),h("div",{key:3,class:"tui-input-pass-toggle",onClick:x},[f("i",{class:O("tui-input-icon "+(V.value?"tui-icon ti-eye":"tui-icon ti-eye-off-slash"))},null,2)])):t.$slots.suffix||e.suffixIcon||"number"==e.type?(d(),h("div",Dy,["number"==e.type?(d(),le(a,{key:0,disabled:p.value||e.readonly||D.value,onClick:_},{default:G((()=>[...l[2]||(l[2]=[f("i",{class:"tui-icon ti-angle-right"},null,-1)])])),_:1},8,["disabled"])):ee(t.$slots,"suffix",{key:1},(()=>[e.suffixIcon?(d(),h("i",{key:0,class:O(["tui-input-icon",e.suffixIcon])},null,2)):T("",!0)]))])):T("",!0)],64)):(d(),h(ge,{key:1},[f("textarea",{class:"tui-textarea-inner",ref_key:"inputRef",ref:k,id:g.value,name:v.value,value:y.value,placeholder:M.value,disabled:p.value,readonly:e.readonly,maxlength:e.maxLength,rows:e.rows,autosize:e.autosize,onInput:S,onBlur:N,onFocus:R},null,40,My),e.maxLength?(d(),h("div",_y,X(q.value)+"/"+X(e.maxLength),1)):T("",!0)],64))],2)}}}),Ly=["id","data-name","aria-labelledby","aria-disabled"],Fy=Object.assign({name:"TuiRadio"},{__name:"index",props:{modelValue:[String,Number,Boolean],defaultIcon:{type:Boolean,default:!0},separable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},appearance:{type:String,default:"simple",validator:e=>["simple","buttonPlain","button"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},textDirection:{type:String,default:null,validator:e=>["h","v"].includes(e)},size:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},align:{type:String,default:null,validator:e=>["start","center","end"].includes(e)},options:{type:Array,default:()=>[],validator:e=>{if(!Array.isArray(e))return console.warn("TuiRadio Warning! options must be an array."),!1;const{valid:t,message:l}=nl.fieldValid(e,[]);return t||console.warn("TuiRadio Warning! ",l),t}},propsMap:{type:Object,default:()=>({})},id:String,name:String,tipConfig:Object,itemMaxWidth:Number,itemMinWidth:Number,itemWidth:Number,className:String},emits:["change","update:modelValue"],setup(e,{emit:t}){const l=e,a=ze("TuiForm",null),i=ze("tuiFormItem",null),o=Ee("radio"),n=u((()=>a?.size?.value||l.size)),s=u((()=>a?.disabled?.value||l.disabled)),r=u((()=>l.id||i?.fieldId?.value)),A=u((()=>l.name||i?.fieldName?.value)),c=u((()=>i?.labelId?.value||null)),p=u((()=>`is-${l.appearance.replace(/([A-Z])/g,"-$1").toLowerCase()}`)),g=u((()=>gn.map(l.propsMap))),v=u((()=>gn.normOptions(l.options,g.value).map(((e,t)=>({...e,value:null!=e.value?e.value:t,count:gn.get(e.raw,"count",g.value),icon:gn.get(e.raw,"icon",g.value)}))))),f=u((()=>$e("cpt-radio",{...q("align",l.align),...q("imaxw",l.itemMaxWidth,"px"),...q("iminw",l.itemMinWidth,"px"),...q("iw",l.itemWidth,"px")}))),m=t,y=()=>{i?.registerControl?.({uid:o,id:r.value,name:A.value,labelable:!1})};return bt("TuiRadioG",{tipConfig:u((()=>l.tipConfig)),updateValue:e=>{m("update:modelValue",e)},change:e=>{m("change",e),i?.validate?.("change")},modelValue:u((()=>l.modelValue)),defaultIcon:u((()=>l.defaultIcon)),parDisabled:s}),Be(y),dt((()=>{i?.unregisterControl?.(o)})),Z([r,A],y),(t,l)=>{const a=ke("TuiRadioItem");return d(),h("div",{id:r.value,"data-name":A.value,role:"radiogroup","aria-labelledby":c.value,"aria-disabled":s.value,class:O(["tui-radio",p.value,`is-size-${n.value}`,e.className,e.direction&&`is-dir-${e.direction}`,e.textDirection&&`is-text-dir-${e.textDirection}`,{"is-separable":e.separable}]),style:we(f.value)},[v.value.length>0?(d(!0),h(ge,{key:0},Fe(v.value,(e=>(d(),le(a,{value:e.value,count:e.count,icon:e.icon,disabled:e.disabled},{default:G((()=>[We(X(e.label),1)])),_:2},1032,["value","count","icon","disabled"])))),256)):ee(t.$slots,"default",{key:1})],14,Ly)}}}),jy=["onKeydown","aria-checked","aria-disabled","tabindex"],Wy={key:0,class:O("tui-radioi-icon tui-icon ti-circle")},Gy={key:1,class:O("tui-radioi-icon tui-icon tis-dot-circle")},Hy=Object.assign({name:"TuiRadioItem"},{__name:"item",props:{value:{type:[String,Number,Boolean],required:!0},icon:{type:[String,Array],default:null},disabled:{type:Boolean,default:!1}},setup(e){const t=e,{tipConfig:l,change:a,updateValue:i,modelValue:o,defaultIcon:n,parDisabled:s}=ze("TuiRadioG",null),r=u((()=>o.value===t.value)),A=u((()=>"array"==st(t.icon)&&2==t.icon.length?r.value?t.icon[1]:t.icon[0]:"string"==st(t.icon)?t.icon:void 0)),c=()=>{t.disabled||s.value||(i(t.value),a(t.value))},g=()=>{c()};return(t,a)=>{const i=ke("TuiTextTip");return d(),h("div",{onClick:c,onKeydown:[cl(Ze(g,["prevent","stop"]),["enter"]),cl(Ze(g,["prevent","stop"]),["space"])],role:"radio","aria-checked":r.value,"aria-disabled":e.disabled||p(s),tabindex:e.disabled||p(s)?-1:0,class:O(["tui-radio-item",{"is-active":r.value,"is-disabled":e.disabled||p(s)}])},[!r.value&&p(n)?(d(),h("i",Wy)):p(n)?(d(),h("i",Gy)):T("",!0),e.icon?(d(),h("i",{key:2,class:O(`tui-radioi-icon ${A.value}`)},null,2)):T("",!0),me(i,mt(qt(p(l))),{default:G((()=>[ee(t.$slots,"default")])),_:3},16)],42,jy)}}}),Ky={key:0,class:"tui-icon ti-check"},da=Object.assign({name:"TuiOption"},{__name:"option",props:{value:[String,Number,Object],label:String,disabled:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t}){const l=e,a=t,{registerItem:i,tipConfig:o,selected:n,handleSelect:s,filterText:r,filterMethod:A}=ze("TuiSelect",null),c=()=>{l.disabled||(a("select",{value:l.value,label:l.label}),s({value:l.value,label:l.label}))},g=u((()=>n.value.some((e=>e.value===l.value)))),v=u((()=>!r.value||(A?A({value:l.value,label:l.label},r.value):l.label.toLowerCase().includes(r.value.toLowerCase()))));return Be((()=>{i({value:l.value,label:l.label})})),(t,l)=>{const a=ke("TuiTextTip");return v.value?(d(),h("div",{key:0,class:O(["tui-select-item",{"is-disabled":e.disabled,"is-selected":g.value}]),onClick:c},[me(a,_e(p(o),{class:"tui-slti-label"}),{default:G((()=>[We(X(e.label),1)])),_:1},16),g.value?(d(),h("i",Ky)):T("",!0)],2)):T("",!0)}}}),Uy=(e,t)=>$e("cpt-slt-dpd",{...q("w",t,{append:"px",when:e.fitInputWidth&&t})}),Yy=(e,t,l,a)=>({...e.popPanelConfig||{},trigger:"click",placement:"bottom-start",offset:e.offset,disabled:t,panelClassName:l,panelStyle:a,transitionName:"dropani",closeOnClickOutside:!0,closeOnEsc:!0}),Qy=["onKeydown","id","data-name","tabindex","aria-expanded","aria-disabled","aria-labelledby"],Xy={key:0,class:"tui-select-prefix"},Zy={key:1,class:"tui-select-tags"},Jy={key:0,class:"tui-select-tag"},eb=["onClick"],tb={key:0,class:"tui-select-tag"},lb={key:2,class:"tui-select-value"},nb={key:3,class:"tui-placeholder"},ab=["aria-multiselectable"],ob={class:"tui-slt-scroll"},ib=Object.assign({name:"TuiSelect"},{__name:"index",props:{size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!0},maxCollapseTags:{type:Number,default:2},filterable:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!0},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["label","value"]);return t||console.warn("TuiSelect Warning! ",l),t}},modelValue:[String,Number,Array],id:String,name:String,placeholder:String,creatPlaceholder:String,icon:String,prefixIcon:String,multipleLimit:Number,filterMethod:Function,filterPlaceholder:String,offset:{type:Number,default:10},popPanelConfig:Object,tipConfig:Object},emits:["update:modelValue","change","visible-change","clear","blur","focus"],setup(e,{emit:t}){const{proxy:{$tService:{i18n:l}}}=Tt(),a=e,i=Nt(),o=(e,t=[])=>(e?.length&&e.forEach((e=>{if(!e)return;if(Array.isArray(e))return void o(e,t);if(e.type===da){const l=e.props||{};void 0!==l.value&&t.push({value:l.value,label:l.label??l.value})}const l=e.children;Array.isArray(l)&&o(l,t)})),t),n=u((()=>o(i.default?.()||[]))),s=u((()=>a.placeholder||l("placeholder.select"))),r=u((()=>a.filterPlaceholder||l("placeholder.filter"))),A=ze("TuiForm",null),c=ze("tuiFormItem",null),p=Ee("select"),g=u((()=>A?.size?.value||a.size)),v=u((()=>A?.disabled?.value||a.disabled)),m=u((()=>a.id||c?.fieldId?.value)),y=u((()=>a.name||c?.fieldName?.value)),b=u((()=>c?.labelId?.value||null)),V=u((()=>m.value?`${m.value}-filter`:null)),w=u((()=>y.value?`${y.value}-filter`:null)),x=t,q=$(null),k=$(null),S=$(null),C=$(null),B=$(!1),z=$(!1),N=$(""),R=$([]),I=$(null),M=$([]),P=$(!1),D=$(0),_=u((()=>a.prefixIcon||a.icon)),E=u((()=>a.multiple?R.value.map((e=>e.label)).join(", "):R.value[0]?.label||"")),j=u((()=>Uy(a,D.value))),L=u((()=>Yy(a,v.value,["tui-slt-pop-panel",{"is-fit-input-width":a.fitInputWidth}],j.value))),F=()=>{a.fitInputWidth&&k.value&&(D.value=k.value.clientWidth)},W=()=>{c?.registerControl?.({uid:p,id:m.value,name:y.value,labelable:!1})},H=e=>{c?.validate?.(e)},U=e=>{x("focus",e)},Y=e=>{x("blur",e),H("blur")},Q=()=>{v.value||S.value?.toggle?.()},K=async()=>{B.value=!0,x("visible-change",!0),await ye(),ne()},J=()=>{B.value=!1,N.value&&(N.value=""),x("visible-change",!1),H("blur")},te=(e,t=!0)=>{if(a.multiple){const t=R.value.findIndex((t=>t.value===e.value));if(-1!==t)R.value.splice(t,1);else{if(a.multipleLimit>0&&R.value.length>=a.multipleLimit)return;R.value.push(e)}I.value=R.value.map((e=>e.value))}else R.value=[e],I.value=e.value,t&&S.value?.hide?.();t&&ae("all")},ae=(e="all")=>{let t;t=a.multiple?{values:I.value,items:R.value}:{value:I.value,item:R.value[0]},("update"==e||"all"==e)&&x("update:modelValue",I.value),("change"==e||"all"==e)&&(x("change",t),H("change"))},ie=()=>{R.value=[],I.value=null,N.value="",ae("all"),x("clear")},oe=(e=a.modelValue)=>{const t=a.options.length>0?a.options:n.value.length>0?n.value:M.value;if(t.length)if(e&&0!=e.length)if(a.multiple||"string"!=st(e)&&"number"!=st(e))a.multiple&&"array"==st(e)&&(nl.shallowEQ(Ka(e),Ka(I.value))||(R.value=[],e.forEach((e=>{t.forEach((t=>{t.value==e&&te({value:t.value,label:t.label},!1)}))}))));else{const l=t.filter((t=>t.value==e));if(!l.length)return;l[0].value!=R.value[0]?.value&&(R.value=l,I.value=l[0].value)}else R.value=[],I.value=null};Z((()=>a.modelValue),(e=>{oe(e)}),{immediate:!0}),Z(n,(()=>{oe()}));const ne=()=>{if(!C.value)return void(P.value=!1);const e=C.value.querySelectorAll(".tui-select-item");P.value=e.length>0};Z((()=>N.value),(async()=>{await ye(),ne(),S.value?.update?.()}),{immediate:!0});return bt("TuiSelect",{tipConfig:u((()=>a.tipConfig)),selected:u((()=>R.value)),filterText:u((()=>N.value)),filterMethod:a.filterMethod?(e,t)=>a.filterMethod(e,t):null,handleSelect:e=>te(e),registerItem:e=>{0==M.value.filter((t=>t.value==e.value)).length&&M.value.push(e),oe()}}),bt("tuiFormItem",null),Be((async()=>{W(),F(),await ye(),ne()})),dt((()=>{c?.unregisterControl?.(p)})),Ho(ne),Z([m,y],W),(t,l)=>{const a=ke("TuiTextTip"),i=ke("TuiInput"),o=ke("TuiResult"),n=ke("TuiPopPanel");return d(),h("div",{ref_key:"selectRef",ref:q,class:O(["tui-select",`is-size-${g.value}`,{"is-disabled":v.value,"is-focus":B.value,"is-multiple":e.multiple,"is-clearable":e.clearable}])},[me(n,_e({ref_key:"popPanelRef",ref:S},L.value,{onShow:F,onShown:K,onHidden:J}),{trigger:G((()=>[f("div",{class:"tui-select-trigger",onMouseenter:l[0]||(l[0]=e=>z.value=!0),onMouseleave:l[1]||(l[1]=e=>z.value=!1),onFocus:U,onBlur:Y,onKeydown:[cl(Ze(Q,["prevent","stop"]),["enter"]),cl(Ze(Q,["prevent","stop"]),["space"])],ref_key:"triggerRef",ref:k,id:m.value,"data-name":y.value,tabindex:v.value?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":B.value,"aria-disabled":v.value,"aria-labelledby":b.value},[t.$slots.prefix||_.value?(d(),h("div",Xy,[ee(t.$slots,"prefix",{},(()=>[_.value?(d(),h("i",{key:0,class:O(["tui-select-icon",_.value])},null,2)):T("",!0)]))])):T("",!0),e.multiple&&R.value.length>0?(d(),h("div",Zy,[(d(!0),h(ge,null,Fe(R.value,((t,l)=>(d(),h(ge,{key:l},[!e.collapseTags||l<e.maxCollapseTags?(d(),h("span",Jy,[me(a,_e({ref_for:!0},e.tipConfig,{class:"tui-slt-tag-label"}),{default:G((()=>[We(X(t.label),1)])),_:2},1040),f("span",{class:"tui-slt-tag-remove",onClick:Ze((e=>(e=>{R.value.splice(e,1),I.value=R.value.map((e=>e.value)),ae("update"),H("change")})(l)),["stop"])},"✕",8,eb)])):T("",!0)],64)))),128)),e.collapseTags&&R.value.length>e.maxCollapseTags?(d(),h("span",tb,X(R.value.length-e.maxCollapseTags)+"+ ",1)):T("",!0)])):E.value?(d(),h("div",lb,[me(a,mt(qt(e.tipConfig)),{default:G((()=>[We(X(E.value),1)])),_:1},16)])):(d(),h("div",nb,X(s.value),1)),f("i",{class:O(["tui-select-clear","tui-icon","ti-times",{"is-show":E.value&&e.clearable&&!v.value&&z.value}]),onClick:Ze(ie,["stop"])},null,2),l[3]||(l[3]=f("i",{class:"tui-select-arrow tui-icon ti-chevron-down"},null,-1))],40,Qy)])),default:G((()=>[f("div",{ref_key:"panelContentRef",ref:C,class:"tui-slt-dropdown-content",role:"listbox","aria-multiselectable":e.multiple},[e.filterable||e.allowCreate?(d(),le(i,{key:0,size:g.value,class:O(["tui-select-input",{"is-filterable":e.filterable,"is-allow-create":e.allowCreate}]),icon:"tui-icon ti-filter",id:V.value,name:w.value,placeholder:r.value,clearable:"",modelValue:N.value,"onUpdate:modelValue":l[2]||(l[2]=e=>N.value=e)},null,8,["size","class","id","name","placeholder","modelValue"])):T("",!0),f("div",ob,[ee(t.$slots,"default",{},(()=>[e.options.length>0?(d(!0),h(ge,{key:0},Fe(e.options,((e,t)=>(d(),le(da,{key:t,value:e.value,label:e.label,disabled:e.disaCPT},null,8,["value","label","disabled"])))),128)):T("",!0)])),P.value?T("",!0):(d(),le(o,{key:0,size:"small"}))])],8,ab)])),_:3},16)],2)}}}),sb={key:2,class:"tui-sltn-placeholder"},rb=["disabled","multiple","size","placeholder","name","id","required","autofocus"],ub=Object.assign({name:"TuiSelectNative"},{__name:"native",props:{modelValue:[String,Number,Array],options:{type:Array,default:()=>[]},valueKey:{type:String,default:"value"},labelKey:{type:String,default:"label"},disabledKey:{type:String,default:"disabled"},size:{type:String,default:null,validator:e=>["small","large"].includes(e)},disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},required:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},placeholder:String,name:String,id:String,customClass:String,width:[String,Number],icon:String,clearable:Boolean},emits:["update:modelValue","change","focus","blur","clear"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=$(null),n=ze("tuiFormItem",null),s=Ee("selectNative"),r=u((()=>a.clearable&&!a.disabled)),A=u((()=>a.id||n?.fieldId?.value)),c=u((()=>a.name||n?.fieldName?.value)),p=()=>{n?.registerControl?.({uid:s,id:A.value,name:c.value,labelable:!0})},g=u((()=>a.placeholder?a.placeholder:"Please Select")),v=u((()=>{if(a.multiple)return"small"===a.size?3:"large"===a.size?8:5})),m=u((()=>[$e("cpt-sltn",{...q("width",a.width,"smart")})])),y=e=>"object"==typeof e&&null!==e?e[a.valueKey]||e.id||JSON.stringify(e):e,b=e=>"object"==typeof e&&null!==e?e[a.valueKey]:e,V=e=>"object"==typeof e&&null!==e?e[a.labelKey]||e[a.valueKey]:e,w=e=>"object"==typeof e&&null!==e&&e[a.disabledKey]||!1,x=e=>{let t;t=a.multiple?Array.from(e.target.selectedOptions).map((e=>e.value)):e.target.value,i("update:modelValue",t),i("change",t,e)},k=()=>{i("update:modelValue",null),i("clear")},S=()=>{o.value&&ye((()=>{const e=o.value,t=e.options;if(a.multiple){const e=Array.isArray(a.modelValue)?a.modelValue:[];for(let l=0;l<t.length;l++){const a=t[l];a.selected=e.includes(a.value)}}else e.value=a.modelValue||""}))};Z((()=>a.modelValue),S,{immediate:!0}),Z((()=>a.options),(()=>{ye(S)}),{deep:!0}),Be((()=>{S(),p()})),dt((()=>{n?.unregisterControl?.(s)})),Z([A,c],p);const C=e=>{i("focus",e)},B=e=>{i("blur",e)};return t({focus:()=>o.value?.focus(),blur:()=>o.value?.blur(),getSelectElement:()=>o.value,syncSelectedState:S}),(t,l)=>{const a=ke("TuiOptionNative");return d(),h("div",{class:O(["tui-select-native",e.size&&`is-size-${e.size}`,{"has-icon":e.icon&&!e.multiple}])},[e.icon&&!e.multiple?(d(),h("i",{key:0,class:O(["tui-sltn-prefix-icon",e.icon])},null,2)):T("",!0),r.value&&e.modelValue?(d(),h("div",{key:1,class:"tui-sltn-clear",onClick:k},[...l[0]||(l[0]=[f("i",{class:"tui-sltn-icon tui-icon ti-times-circle"},null,-1)])])):T("",!0),e.modelValue||e.multiple?T("",!0):(d(),h("div",sb,X(g.value),1)),f("select",{class:O(["tui-sltn-element",e.customClass,{"is-disabled":e.disabled,"is-multiple":e.multiple}]),style:we(m.value),ref_key:"selectRef",ref:o,disabled:e.disabled,multiple:e.multiple,size:v.value,placeholder:g.value,name:c.value,id:A.value,required:e.required,autofocus:e.autofocus,onChange:x,onFocus:C,onBlur:B},[e.options&&e.options.length>0?(d(!0),h(ge,{key:0},Fe(e.options,(e=>(d(),le(a,{key:y(e),value:b(e),label:V(e),disabled:w(e)},null,8,["value","label","disabled"])))),128)):ee(t.$slots,"default",{key:1})],46,rb)],2)}}}),cb=["value","disabled","selected"],db=Object.assign({name:"TuiOptionNative"},{__name:"optionNative",props:{value:{type:[String,Number,Boolean],required:!0},label:[String,Number],disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},customClass:String},setup(e){const t=e;ze("tuiSelectContext",null);const l=u((()=>t.label||t.value));return(t,a)=>(d(),h("option",{class:O(["tui-option-native",e.customClass,{"is-disabled":e.disabled,"is-selected":e.selected}]),value:e.value,disabled:e.disabled,selected:e.selected},[ee(t.$slots,"default",{},(()=>[We(X(l.value),1)]))],10,cb))}}),Ab={key:0,class:"tui-tpn-prefix"},fb=["id","name","value","placeholder","disabled"],pb=["id","type","value","min","max","step","disabled"],gb={class:"tui-tpn-suffix"},vb=Object.assign({name:"TuiTimePickerNative"},{__name:"native",props:{type:{type:String,default:"date",validator:e=>["date","time","datetime","month","week"].includes(e)},modelValue:[String,Date],note:String,placeholder:String,id:String,name:String,min:String,max:String,step:[String,Number],format:String,size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},prefixIcon:String,suffixIcon:String,clearable:Boolean,disabled:Boolean,readonly:Boolean,required:Boolean},emits:["update:modelValue","change","focus","blur","input","clear"],setup(e,{expose:t,emit:l}){const{i18n:a}=ze("$global",null);zt.extend(Yo),zt.extend(ku);const i=e,o=l,n=ze("TuiForm",null),s=ze("tuiFormItem",null),r=Ee("timePickerNative"),A=u((()=>n?.size?.value||i.size)),c=u((()=>n?.disabled?.value||i.disabled)),p=u((()=>i.id||s?.fieldId?.value)),g=u((()=>i.name||s?.fieldName?.value)),v=u((()=>p.value?`${p.value}-native`:null)),m=()=>{s?.registerControl?.({uid:r,id:p.value,name:g.value,labelable:!0})},y=$(null),b=u((()=>i.clearable&&!c.value&&!i.readonly)),V=u((()=>i.prefixIcon||i.icon)),w=u((()=>{if(i.suffixIcon)return i.suffixIcon;switch(i.type){case"time":return"tui-icon ti-clock";default:return"tui-icon ti-calendar"}})),x=u((()=>{if(i.format)return i.format;switch(i.type){case"date":return"YYYY-MM-DD";case"datetime":return"YYYY-MM-DD HH:mm";case"time":return"HH:MM";case"week":return null;case"month":return"YYYY-MM"}})),q={date:a("datetime.placeholder.date"),time:a("datetime.placeholder.time"),datetime:a("datetime.placeholder.datetime"),month:a("datetime.placeholder.month"),week:a("datetime.placeholder.week")},k=u((()=>i.placeholder||q[i.type]||a("placeholder.select"))),S=()=>{C.value="",o("update:modelValue",""),o("clear")},C=$(null),B=u((()=>i.modelValue?i.modelValue:"")),z=e=>{if(!e)return"";const t=zt(e);switch(i.type){case"time":return Ea.formatTime(e,x.value);case"week":return Ea.formatWeek(e,x.value);default:return t.format(x.value)}},N=()=>{c.value||y.value&&y.value.showPicker()},R=e=>{const t=e.target.value;C.value=t;const l=z(t);o("update:modelValue",l),o("input",t,l,e)},I=e=>{const t=e.target.value;C.value=t;const l=z(t);o("update:modelValue",l),o("change",t,l,e)};return t({focus:()=>{const e=document.querySelector(".display-input");e&&e.focus()},blur:()=>{y.value&&y.value.blur()},openPicker:()=>{N()}}),Be(m),dt((()=>{s?.unregisterControl?.(r)})),Z([p,g],m),(t,l)=>(d(),h("div",{class:O(["tui-timepicker-native",`is-type-${e.type}`,`is-size-${A.value}`,{"is-disabled":c.value,"is-readonly":e.readonly}])},[t.$slots.prefix||V.value?(d(),h("div",Ab,[ee(t.$slots,"prefix",{},(()=>[V.value?(d(),h("i",{key:0,class:O(["tui-tpn-icon",V.value])},null,2)):T("",!0)]))])):T("",!0),f("input",{id:p.value,name:g.value,type:"text",value:B.value,placeholder:k.value,disabled:c.value,readonly:!0,class:O(["tui-tpn-inner",{"is-disabled":c.value}]),onClick:N},null,10,fb),f("input",{ref_key:"hiddenInput",ref:y,id:v.value,type:"datetime"==e.type?"datetime-local":e.type,value:C.value,min:e.min,max:e.max,step:e.step,disabled:c.value,class:"tui-tpn-hinput",onInput:R,onChange:I},null,40,pb),b.value&&C.value?(d(),h("div",{key:1,class:"tui-tpn-clear",onClick:S},[...l[0]||(l[0]=[f("i",{class:"tui-tpn-icon tui-icon ti-times"},null,-1)])])):T("",!0),f("div",gb,[ee(t.$slots,"suffix",{},(()=>[f("i",{class:O(["tui-tpn-icon",w.value])},null,2)]))])],2))}}),hb=Object.assign({name:"TuiAccordion"},{__name:"index",props:{direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},height:[Number,String],width:[Number,String],itemMinSize:{type:Number,default:40},autoplay:{type:Boolean,default:!0},duration:{type:Number,default:null},interval:{type:Number,default:3e3},initialIndex:{type:Number,default:0},contentType:{type:String,default:"default",validator:e=>["default","image"].includes(e)},trigger:{type:String,default:"hover",validator:e=>["hover","click"].includes(e)},motionBlur:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!0},wheelSwitch:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!0},activeShowTitle:{type:Boolean,default:!0},typedConfig:Object,linkText:String,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("accordion"),n=$(!1),s=$(!1),r=$(!1),A=$([]),c=$(!1),g=je({isMotionBlur:!1,hover:!1,clientSize:0,itemMaxSize:0,itemAveSize:0,activeIndex:Ct.isNEG0(i.initialIndex)?Number(i.initialIndex):null}),v=u((()=>A.value.map((e=>e.index)).sort(((e,t)=>e-t)))),f=u((()=>null===g.activeIndex)),m=()=>v.value.length?Ct.isNEG0(i.initialIndex)&&v.value.includes(i.initialIndex)?Number(i.initialIndex):v.value[0]:null,y=e=>{const t=Ct.isNEG0(e)?Number(e):null;t!==g.activeIndex&&(i.motionBlur&&null!==t&&(g.isMotionBlur=!0,qe.c(o+"_blur"),qe.s(o+"_blur",(()=>{g.isMotionBlur=!1}),200)),g.activeIndex=t)},b=e=>{if(!v.value.length||!e)return!1;const t=m(),l=null!==g.activeIndex?v.value.indexOf(g.activeIndex):-1,a=(-1===l?v.value.indexOf(t):l)+e;return!(a<0||a>=v.value.length)&&(y(v.value[a]),!0)},V=e=>{if("click"!==i.trigger||!i.wheelSwitch)return;if(c.value)return void(i.interceptWheel&&e.preventDefault());const t=Math.abs(e.deltaY)>=Math.abs(e.deltaX)?e.deltaY:e.deltaX;!t||!b(t>0?1:-1)||(c.value=!0,qe.c(o+"_wheel_lock"),qe.s(o+"_wheel_lock",(()=>{c.value=!1}),220),i.interceptWheel&&e.preventDefault())},w=()=>{pl.c(o+"_tInter")},x=()=>{w(),i.autoplay&&0!==v.value.length&&((null===g.activeIndex||!v.value.includes(g.activeIndex))&&y(m()),pl.s(o+"_tInter",(()=>{const e=v.value.indexOf(g.activeIndex);let t;t=-1===e||e===v.value.length-1?0:e+1,y(v.value[t])}),i.interval))},k=u((()=>$e("cpt-acd",{...q("width",i.width,"smart"),...q("height",i.height,"smart"),...q("dur",i.duration,"s"),...q("avesize",g.itemAveSize,{smartAppend:!0,when:g.itemAveSize&&!i.autoplay}),minsize:i.itemMinSize+"px",maxsize:g.itemMaxSize+"px"}))),S=u((()=>"image"==i.contentType?"none":i.typedConfig?.appearance||"line"));bt("TuiAcord",{direction:u((()=>i.direction)),itemMinSize:u((()=>i.itemMinSize)),autoplay:u((()=>i.autoplay)),contentType:u((()=>i.contentType)),typedConfig:u((()=>i.typedConfig)),trigger:u((()=>i.trigger)),activeShowTitle:u((()=>i.activeShowTitle)),linkText:u((()=>i.linkText)),state:g,setActiveItem:y,registerItem:e=>{const t={uid:e.uid,index:e.index},l=A.value.findIndex((e=>e.uid===t.uid));-1===l?A.value.push(t):A.value[l]=t},unregisterItem:e=>{A.value=A.value.filter((t=>t.uid!==e))},typedAppeaCPT:S,uid:o}),Z((()=>i.autoplay),(e=>{e?x():w()})),Z((()=>i.initialIndex),(e=>{i.autoplay?x():Ct.isNEG0(e)&&v.value.includes(e)&&y(e)})),Z((()=>[i.direction,i.typedConfig?.appearance]),(()=>{T()})),Z(v,(e=>{if(!e.length)return g.activeIndex=null,void w();(null===g.activeIndex||!e.includes(g.activeIndex))&&(g.activeIndex=m()),i.autoplay&&x()}),{deep:!0}),Z((()=>t.value),((e,t)=>{"root"==a.value(i.resizeObserver)&&e>t&&T()}));const T=()=>{const e=i.itemMinSize,t=("line"==S.value?3:"none"==S.value&&1)||0;"h"==i.direction?g.clientSize=r.value?.clientWidth:g.clientSize=r.value?.clientHeight,g.itemMaxSize=g.clientSize-(A.value.length-1)*(e+t),g.itemAveSize=(g.clientSize-A.value.length*t)/A.value.length,g.itemMaxSize<100&&(g.itemMaxSize=100),s.value||(s.value=!0)};return Be((()=>{n.value=!0,i.autoplay&&x(),null===g.activeIndex&&!i.autoplay&&v.value.length>0&&(g.activeIndex=m())})),dt((()=>{w(),qe.c(o+"_blur"),qe.c(o+"_wheel_lock")})),(t,l)=>{const u=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["tui-accordion",`is-dir-${e.direction}`,`is-appr-${S.value}`,{"is-motion-blur":e.motionBlur&&g.isMotionBlur,"is-empty":f.value}]),onMouseenter:l[0]||(l[0]=Ze((t=>e.autoplay&&(g.hover=!0,void(i.pauseOnHover&&w()))),["stop"])),onMouseleave:l[1]||(l[1]=Ze((t=>e.autoplay&&(g.hover=!1,void(i.pauseOnHover&&x()))),["stop"])),onWheel:Ze(V,["stop"]),ref_key:"acodRef",ref:r,style:we(k.value)},[ee(t.$slots,"default")],38)),[[Ye,n.value],[u,{callback:T,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}]])])),_:3})}}}),mb={key:0,class:"tui-acdi-main"},yb={key:0,class:"tui-acdi-head"},bb={class:"tui-acdi-cont"},Vb={key:0,class:"tui-acdi-main"},wb={class:"tui-acdi-link-text"},Cb=["src"],ko=260,Tb=Object.assign({name:"TuiAccordionItem"},{__name:"item",props:{icon:String,title:String,image:String,hasLinkButton:Boolean,description:String,index:{type:Number,required:!0},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},typeColor:String},emits:["activated","deactivated","navigateTo"],setup(e,{emit:t}){const{i18n:l}=ze("$global",null),a=e,i=t,{uid:o,trigger:n,linkText:s,activeShowTitle:r,typedAppeaCPT:A,typedConfig:c,direction:g,contentType:v,state:m,setActiveItem:y,registerItem:b,unregisterItem:V,autoplay:w}=ze("TuiAcord",null),x=`accordion-item-${a.index}-${a.title||"item"}`,q=()=>{"hover"===n.value&&(qe.c(o+"_hover_leave"),qe.s(o+"_hover_enter",(()=>{y(a.index),i("activated")}),ko))},k=()=>{"hover"===n.value&&(qe.c(o+"_hover_enter"),!w.value&&qe.s(o+"_hover_leave",(()=>{y(null),i("deactivated")}),ko))},S=()=>{if("click"===n.value){if(!w.value&&m.activeIndex===a.index)return y(null),void i("deactivated");y(a.index),i("activated")}},C=()=>{i("navigateTo",a.index)},$=u((()=>m.activeIndex===a.index)),B=u((()=>"image"==v.value)),z=u((()=>B.value?"invert":"none"!=A.value?a.type:"default")),N=u((()=>c.value?.linePosition?c.value?.linePosition:"h"==g.value?"top":"v"==g.value?"left":void 0)),R=u((()=>({type:a.type,tone:"base",hasShadow:!1,transparent:!1,customColor:a.typeColor,...c.value,appearance:A.value})));return Be((()=>{b({uid:x,index:a.index})})),dt((()=>{qe.c(o+"_hover_enter"),qe.c(o+"_hover_leave"),V(x)})),(t,i)=>{const o=ke("TuiTextTip"),u=ke("TuiTag"),c=ke("TuiButton"),v=ke("TuiTyped");return d(),le(v,_e({class:["tui-accordion-item",`is-dir-${p(g)}`,`is-trigger-${p(n)}`,{"is-imgtype":B.value,"is-active":$.value,"has-head":p(r)&&!B.value}],onMouseenter:Ze(q,["stop"]),onMouseleave:Ze(k,["stop"])},R.value,{linePosition:N.value}),{default:G((()=>[me(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:"tui-acdi-bar",onClick:Ze(S,["stop"])},[e.icon?(d(),h("i",{key:0,class:O(["tui-acdi-icon",e.icon])},null,2)):T("",!0),e.title?(d(),le(o,{key:1,class:"tui-acdi-title"},{default:G((()=>[We(X(e.title),1)])),_:1})):T("",!0),me(u,{type:z.value,size:"small",customColor:"none"!=p(A)&&a.typeColor||null,class:"tui-acdi-index"},{default:G((()=>[We(X(e.index+1),1)])),_:1},8,["type","customColor"])],512),[[Ye,!$.value||"v"==p(g)&&!B.value&&p(r)]])])),_:1}),me(Ue,{name:"fade"},{default:G((()=>[B.value?T("",!0):Re((d(),h("div",mb,["h"==p(g)&&p(r)?(d(),h("div",yb,[e.icon?(d(),h("i",{key:0,class:O(["tui-acdi-icon",e.icon])},null,2)):T("",!0),e.title?(d(),le(o,{key:1,class:"tui-acdi-title"},{default:G((()=>[We(X(e.title),1)])),_:1})):T("",!0),me(u,{type:z.value,size:"small",customColor:"none"!=p(A)&&a.typeColor||null,class:"tui-acdi-index"},{default:G((()=>[We(X(e.index+1),1)])),_:1},8,["type","customColor"])])):T("",!0),f("div",bb,[ee(t.$slots,"default")])],512)),[[Ye,$.value]])])),_:3}),me(Ue,{name:"fade"},{default:G((()=>[B.value?Re((d(),h("div",Vb,[e.hasLinkButton?(d(),le(c,{key:0,size:"small",class:"tui-acdi-link",type:"primary",link:"",onClick:C},{default:G((()=>[f("span",wb,X(p(s)||p(l)("common.detail")),1),i[0]||(i[0]=f("i",{class:"tui-icon ti-chevron-right"},null,-1))])),_:1})):T("",!0),e.title?(d(),le(o,{key:1,class:"tui-acdi-title"},{default:G((()=>[We(X(e.title),1)])),_:1})):T("",!0),e.description?(d(),le(o,{key:2,type:"default",lines:2,placement:"bottom",class:"tui-acdi-desc"},{default:G((()=>[We(X(e.description),1)])),_:1})):T("",!0)],512)),[[Ye,$.value]]):T("",!0)])),_:1}),a.image&&B.value?(d(),h("img",{key:0,class:"tui-img",src:e.image},null,8,Cb)):T("",!0)])),_:3},16,["class","linePosition"])}}}),Sb={class:"tui-calendar"},$b={class:"tui-cal-title"},kb={class:"tui-cal-year"},qb={class:"tui-cal-month"},xb={class:"tui-cal-body"},Pb={class:"tui-cal-weekdays"},Bb=["onClick"],zb={class:"tui-cal-cell-inner"},Rb={class:"tui-cal-date"},Nb=Object.assign({name:"TuiCalendar"},{__name:"index",props:{modelValue:{type:[Date,String],default:()=>new Date},range:{type:Array,default:()=>[]},buttons:{type:Array,default:()=>["year","month","today"]},buttonSize:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},titleAlign:{type:String,default:"left",validator:e=>["left","center","right"].includes(e)},cellAlign:{type:String,default:"left",validator:e=>["left","center"].includes(e)},todos:{type:Object,default:()=>({})},tagConfig:Object,weekStartsOn:{type:String,default:"sunday",validator:e=>["sunday","monday"].includes(e)},weekdayFormat:{type:String,default:"weekdayShort",validator:e=>["weekday","weekdayShort","weekdayMin"].includes(e)}},emits:["update:modelValue","change","select"],setup(e,{expose:t,emit:l}){const{i18n:a,$gLang:i}=ze("$global",null);zt.extend(xu),zt.extend(qu),zt.extend(Yo);const o=e,n=u((()=>({size:"small",tone:"strong",...o.tagConfig}))),s=l,r=$(zt(o.modelValue)),A=$(zt(o.modelValue)),c=u((()=>r.value.year())),g=u((()=>r.value.month()+1)),v=u((()=>"en"!=i.value?a("datetime.timeUnits.year"):"")),m=u((()=>a("datetime.timeUnits.month"))),y=u((()=>a("datetime.action.today"))),b=u((()=>{const e=a(`datetime.${o.weekdayFormat}`)||[];return"sunday"===o.weekStartsOn?e:[...e.slice(1),e[0]]})),V=u((()=>(a("datetime.monthShort")||[])[g.value-1]||`${g.value}${m.value}`)),w=u((()=>`${c.value}${v.value}`)),x=u((()=>{const e=r.value.startOf("month");r.value.endOf("month");let t=e.day();"monday"===o.weekStartsOn&&(t=0===t?6:t-1);const l=[];let a=e.subtract(t,"day");for(let e=0;e<6;e++){const e=[];for(let t=0;t<7;t++)e.push(q(a)),a=a.add(1,"day");l.push(e)}return l[l.length-1].every((e=>"next-month"===e.type))&&l.pop(),l.flat()}));function q(e){const t=zt(),l=e.format("YYYY-MM-DD");let a="current-month";return e.isBefore(r.value.startOf("month"))?a="prev-month":e.isAfter(r.value.endOf("month"))&&(a="next-month"),{date:e.toDate(),day:e.date(),fullDate:l,dayjs:e,type:a,isSelected:e.isSame(A.value,"day"),isToday:e.isSame(t,"day"),todoCount:o.todos[l]||0}}function k(e){r.value=r.value.add(e,"year")}function S(e){r.value=r.value.add(e,"month")}function C(){const e=zt();r.value=e,B(q(e))}function B(e){A.value=e.dayjs,"current-month"!==e.type&&(r.value=e.dayjs),s("update:modelValue",e.date),s("change",e.date),s("select",e)}const z=u((()=>A.value.toDate()));function N(e,t){const l=zt(e),i=zt(t);let n,s;"monday"===o.weekStartsOn?(n=l.startOf("week").add(1,"day"),s=i.endOf("week").add(1,"day")):(n=l.startOf("week"),s=i.endOf("week"));const r=s.diff(n,"month",!0);return r>2&&console.warn(a("datetime.validation.rangeExceedsLimit")||"时间跨度不能超过两个月"),{start:n.toDate(),end:s.toDate(),isValid:r<=2}}return Z((()=>o.modelValue),(e=>{if(e){const t=zt(e);A.value=t,r.value=t}}),{immediate:!0}),Z((()=>o.range),(e=>{if(e&&2===e.length){const[t,l]=e;N(t,l).isValid||console.warn(a("datetime.validation.invalidRange")||"提供的日期范围无效")}})),t({selectedDay:z,pickDay:function(e){const t=zt(e);r.value=t,B(q(t))},selectDate:B,calculateValidatedDateRange:N,formatDate:function(e,t="YYYY-MM-DD"){return zt(e).format(t)},getDiff:function(e,t,l="day"){return zt(e).diff(zt(t),l)},isInRange:function(e,t,l){const a=zt(e);return a.isSameOrAfter(zt(t))&&a.isSameOrBefore(zt(l))},getMonthDates:function(e,t){const l=zt().year(e).month(t-1).startOf("month"),a=l.endOf("month"),i=[];let o=l;for(;o.isSameOrBefore(a);)i.push(o.toDate()),o=o.add(1,"day");return i},currentDateDayjs:u((()=>r.value)),selectedDateDayjs:u((()=>A.value))}),(t,l)=>{const o=ke("TuiButton"),s=ke("TuiButtonGroup"),r=ke("TuiTag");return d(),h("div",Sb,[f("div",{class:O(["tui-cal-head",`is-align-${e.titleAlign}`,`is-lang-${p(i)}`])},[f("div",$b,[f("span",kb,X(w.value),1),f("span",qb,X(V.value),1)]),e.buttons.length>0?(d(),le(s,{key:0,size:e.buttonSize},{default:G((()=>[e.buttons.includes("year")?(d(),le(o,{key:0,icon:"tui-icon ti-chevrons-left",onClick:l[0]||(l[0]=e=>k(-1)),title:p(a)("datetime.navigation.previousYear")},null,8,["title"])):T("",!0),e.buttons.includes("month")?(d(),le(o,{key:1,icon:"tui-icon ti-chevron-left",onClick:l[1]||(l[1]=e=>S(-1)),title:p(a)("datetime.navigation.previousMonth")},null,8,["title"])):T("",!0),e.buttons.includes("today")?(d(),le(o,{key:2,onClick:C,class:"tui-cal-today",title:y.value},{default:G((()=>[We(X(y.value),1)])),_:1},8,["title"])):T("",!0),e.buttons.includes("month")?(d(),le(o,{key:3,icon:"tui-icon ti-chevron-right",onClick:l[2]||(l[2]=e=>S(1)),title:p(a)("datetime.navigation.nextMonth")},null,8,["title"])):T("",!0),e.buttons.includes("year")?(d(),le(o,{key:4,icon:"tui-icon ti-chevrons-right",onClick:l[3]||(l[3]=e=>k(1)),title:p(a)("datetime.navigation.nextYear")},null,8,["title"])):T("",!0)])),_:1},8,["size"])):T("",!0)],2),f("div",xb,[f("div",Pb,[(d(!0),h(ge,null,Fe(b.value,(e=>(d(),h("div",{class:"tui-cal-weekday",key:e},X(e),1)))),128))]),f("div",{class:O(["tui-cal-dates",`cell-align-${e.cellAlign}`])},[(d(!0),h(ge,null,Fe(x.value,(e=>(d(),h("div",{key:e.fullDate,class:O(["tui-cal-cell",{"prev-month":"prev-month"===e.type,"next-month":"next-month"===e.type,"current-month":"current-month"===e.type,"is-selected":e.isSelected,"is-today":e.isToday,"has-todo":e.todoCount>0}]),onClick:t=>B(e)},[ee(t.$slots,"date-cell",{data:e},(()=>[f("div",zb,[f("span",Rb,X(e.day),1),e.todoCount>0?(d(),le(r,_e({key:0,ref_for:!0},n.value,{type:(e.isSelected?"default":e.isToday&&"success")||e.todoCount&&"warning",size:"small"}),{default:G((()=>[We(X(e.todoCount),1)])),_:2},1040,["type"])):T("",!0)])]))],10,Bb)))),128))],2)])])}}}),Ib={key:0,class:"tui-icon ti-chevron-left"},Ob={key:1,class:"tui-icon ti-chevron-up"},Db={key:0,class:"tui-icon ti-chevron-right"},Mb={key:1,class:"tui-icon ti-chevron-down"},_b=["onMouseenter","onMouseleave","onClick"],Eb=160,Hl=400,qo=100,Lb=Object.assign({name:"TuiCarousel"},{__name:"index",props:{height:Number,borderRadius:Number,linkText:String,initialIndex:{type:Number,default:0},trigger:{type:String,default:"hover",validator:e=>["hover","click"].includes(e)},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3,validator:e=>e>=0},indicatorPosition:{type:String,default:"inside",validator:e=>["outside","inside","none"].includes(e)},indicatorHasIndex:{type:Boolean,default:!0},arrow:{type:String,default:"hover",validator:e=>["always","hover","never"].includes(e)},appearance:{type:String,default:"default",validator:e=>["default","card"].includes(e)},cardScale:{type:Number,default:.8,validator:e=>e>0&&e<=1},loop:{type:Boolean,default:!0},sequentialRolling:{type:Boolean,default:!0},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},pauseOnHover:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!0},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["change"],setup(e,{expose:t,emit:l}){const{$optResizeCounter:a,initResizeBy:i}=ze("$global",null),o=i(),n=e,s=l,r=Ee("carousel"),A=$(!1),c=$(!1),g=$(null),v=$([]),m=$(!1),y=je({isMotionBlur:!1,clientSize:0,hover:!1,actIndex:-1,duration:400,animToken:0}),b=(e=Hl)=>{y.duration=e},V=e=>{if(v.value.length<=1||e==y.actIndex)return;qe.c(r+"_act"),qe.c(r+"_dur"),n.motionBlur&&(y.isMotionBlur=!0,qe.c(r+"_blur"),qe.s(r+"_blur",(()=>{y.isMotionBlur=!1}),"card"===n.appearance?200:300));const t=e=>{if(!n.sequentialRolling||-1===y.actIndex)return b(Hl),void w(e);const l=((e,t)=>{const l=v.value.length-1,a=Math.abs(e-t);if(1===a||n.loop&&(e===l&&0===t||0===e&&t===l))return t;if(n.loop){let i=e+(v.value.length-a<a?e<t?-1:1:e<t?1:-1);return i<0?l:i>l?0:i}return e<t?e+1:e-1})(y.actIndex,e),a=l===e;b(a?Hl:qo),w(l),a?qe.s(r+"_dur",(()=>{b(Hl)}),Hl):qe.s(r+"_act",(()=>t(e)),qo)};t(e)},w=(e,t=null)=>{if(e=Number(e),isNaN(e)||e!==Math.floor(e))return void console.warn("[Carousel]index must be an integer.");const l=v.value.length,a=y.actIndex;y.animToken+=1,y.actIndex=e<0?n.loop?l-1:0:e>=l?n.loop?0:l-1:e,a===y.actIndex?x(a):s("change",y.actIndex,a)},x=e=>{v.value.forEach(((t,l)=>{t.translateItem(l,y.actIndex,e)}))},k=()=>{y.hover=!0,n.pauseOnHover&&C()},S=()=>{y.hover=!1,B()},C=()=>{pl.c(r+"_tInter")},B=()=>{n.interval<=0||!n.autoplay||pl.g(r+"_tInter")||pl.s(r+"_tInter",(()=>{v.value.length<=1?C():y.actIndex<v.value.length-1||n.loop?N():C()}),n.interval)},z=()=>{V(y.actIndex-1)},N=()=>{V(y.actIndex+1)},R=e=>{if(!n.wheelRolling||v.value.length<=1)return;const t=(e=>Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY)(e);if(!t)return;const l=t>0,a=n.loop||y.actIndex<v.value.length-1,i=n.loop||y.actIndex>0,o=l?a:i;(n.interceptWheel?a||i:o)&&(e.cancelable&&e.preventDefault(),o&&!m.value&&(m.value=!0,qe.s(r+"_wheel",(()=>{m.value=!1}),Eb),l?N():z()))};Z((()=>a.value),((e,t)=>{"root"==o.value(n.resizeObserver)&&e>t&&(I(),w(y.actIndex))}));const I=()=>{"h"==n.direction?y.clientSize=g.value?.clientWidth:y.clientSize=g.value?.clientHeight,c.value||(c.value=!0)},M=u((()=>$e("cpt-caro",{scale:n.cardScale,dur:y.duration/1e3+"s",...q("height",n.height,"px"),...q("bdra",n.borderRadius,"px")}))),P=u((()=>"outside"===n.indicatorPosition||"card"===n.appearance?"outside":n.indicatorPosition)),D=u((()=>v.value.length>1));return Be((async()=>{A.value=!0,await ye(),B(),V(n.initialIndex||0)})),dt((()=>{pl.c(r+"_tInter"),qe.c(r+"_act"),qe.c(r+"_wheel"),qe.c(r+"_blur"),qe.c(r+"_dur")})),Z((()=>n.autoplay),(e=>{e?B():C()})),Z((()=>[n.loop,n.appearance,n.direction,n.height,A.value]),(async()=>{C(),await ye(),I(),w(y.actIndex),B()})),Z((()=>y.actIndex),((e,t)=>{x(t),pl.g(r+"_tInter")&&(C(),B())})),bt("TuiCaro",{state:y,direction:u((()=>n.direction)),appearance:u((()=>n.appearance)),loop:u((()=>n.loop)),cardScale:u((()=>n.cardScale)),linkText:u((()=>n.linkText)),addItem:e=>{v.value.push(e)},removeItem:e=>{const t=v.value.findIndex((t=>t.uid===e));-1!==t&&(v.value.splice(t,1),v.value.length&&y.actIndex===t&&w(0))},items:v,throttledAct:V}),t({state:y,setActiveItem:w,prev:z,next:N}),(t,l)=>{const a=ke("TuiButton"),i=Je("tui-resize");return Re((d(),h("div",{class:O(["tui-carousel",`is-appr-${e.appearance}`,`is-dir-${e.direction}`,`is-indic-${P.value}`]),onMouseenter:Ze(k,["stop"]),onMouseleave:Ze(S,["stop"]),onWheel:R,ref_key:"caroRef",ref:g,style:we(M.value)},[f("div",{class:O(["tui-caro-container",{"is-motion-blur":e.motionBlur&&y.isMotionBlur}])},[D.value?(d(),le(a,{key:0,link:"",class:O(["tui-caro-arrow","is-prev",{"is-show":"never"!=e.arrow&&("always"===e.arrow||y.hover)&&(e.loop||y.actIndex>0)}]),onClick:Ze(z,["stop"])},{default:G((()=>["h"==e.direction?(d(),h("i",Ib)):(d(),h("i",Ob))])),_:1},8,["class"])):T("",!0),D.value?(d(),le(a,{key:1,link:"",class:O(["tui-caro-arrow","is-next",{"is-show":"never"!=e.arrow&&("always"===e.arrow||y.hover)&&(e.loop||y.actIndex<v.value.length-1)}]),onClick:Ze(N,["stop"])},{default:G((()=>["h"==e.direction?(d(),h("i",Db)):(d(),h("i",Mb))])),_:1},8,["class"])):T("",!0),ee(t.$slots,"default")],2),"none"!==e.indicatorPosition?(d(),h("div",{key:0,class:O(["tui-caro-indicators",{"has-index":e.indicatorHasIndex,"is-outside":"outside"==P.value}])},[(d(!0),h(ge,null,Fe(v.value,((t,l)=>(d(),h("div",{key:l,class:O(["tui-caro-indic",{"is-active":l===y.actIndex}]),onMouseenter:t=>"hover"===e.trigger&&V(l),onMouseleave:t=>"hover"===e.trigger&&(qe.c(r+"_act"),qe.c(r+"_dur"),qe.c(r+"_blur"),void(n.motionBlur&&(y.isMotionBlur=!1))),onClick:t=>"click"===e.trigger&&V(l)},[me(a,{link:""},{default:G((()=>[e.indicatorHasIndex?(d(),h(ge,{key:0},[We(X(l+1),1)],64)):T("",!0)])),_:2},1024)],42,_b)))),128))],2)):T("",!0)],38)),[[Ye,A.value],[i,{callback:I,uid:p(r),disabled:"self"!=p(o)(e.resizeObserver)&&c.value}]])}}}),Fb={key:0,class:"tui-caroi-cont"},jb={class:"tui-caroi-link-text"},Wb=Object.assign({name:"TuiCarouselItem"},{__name:"item",props:{title:String,description:String,hasLinkButton:Boolean},emits:["navigateTo"],setup(e,{emit:t}){const{i18n:l}=ze("$global",null),a=ze("TuiCaro",null),{state:i,direction:o,linkText:n,appearance:s,loop:r,cardScale:A,throttledAct:c,addItem:g,removeItem:v,items:m}=a,y=$(!1),b=$(!1),V=$(!1),w=$(0);let x=null;const q=$(Symbol("carousel-item")),k=u((()=>m.value.findIndex((e=>e.uid===q.value)))),S=t,C=()=>{S("navigateTo",k.value)},B=(e,t)=>{const l=m.value.length,a=l-1,o="card"===s.value,n=i.clientSize,u=o?2.1:1;let d=o?n*(e-t)*A.value/u:n*(e-t);return r.value&&(e<t&&t-e>a/2?d=o?n*(l+e-t)*A.value/u:n*(l+e-t):e>t&&e-t>a/2&&(d=o?n*(e-l-t)*A.value/u:n*(e-l-t))),d},z=(e,t)=>{D.transform=t?`translateY(${e}px)`:`translateX(${e}px)`},N=(e,t,l)=>{const a=m.value,n="v"===o.value,r=e;if(a.length<=1)return;if(V.value&&"card"===s.value)return void R(r,t);const u=M.value;l===t||l!==r&&t!==r?u&&w.value!==i.animToken&&(V.value=!1):(V.value=!0,u?w.value=i.animToken:(x&&clearTimeout(x),x=setTimeout((()=>{V.value=!1,x=null}),i.duration))),r!==t?z(B(r,t),n):R(r,t)},R=(e,t)=>{const l="v"===o.value;z(e!==t?B(e,t):0,l)},I=u((()=>i.actIndex===m.value.findIndex((e=>e.uid===q.value)))),M=u((()=>"card"===s.value)),P=u((()=>{if(!M.value)return!1;const e=m.value,t=a.state.actIndex,l=e.findIndex((e=>e.uid===q.value));if(r.value){const a=e.length-1;if(0===t&&l===a)return!0;if(t===a&&0===l)return!0}return Math.abs(l-t)<=1})),D=je({transform:""}),_=e=>{M.value&&e.target===j.value&&("transform"!==e.propertyName&&"opacity"!==e.propertyName||(V.value=!1))},E=()=>{if(a&&M.value){const e=m.value.findIndex((e=>e.uid===q.value));a.throttledAct(e)}},j=$(null);return Z((()=>i.animToken),(e=>{M.value&&e!==w.value&&(V.value=!1)})),Be((async()=>{g({uid:q.value,translateItem:N,$el:j.value}),await ye((()=>{m.value.forEach((e=>{e.uid===q.value&&(e.$el=j.value)}))})),y.value=!0,await ye((()=>{N(k.value,i.actIndex,i.actIndex+1)}))})),dt((()=>{x&&clearTimeout(x),v(q.value)})),(t,a)=>{const i=ke("TuiButton"),o=ke("TuiTextTip");return Re((d(),h("div",{ref_key:"carouselItemRef",ref:j,class:O(["tui-carousel-item",{"is-active":I.value,"is-in-stage":P.value&&M.value,"is-hover":b.value,"is-animating":V.value,"is-frist":0==k.value,"is-last":k.value==p(m).length-1}]),onClick:E,style:we(D),onTransitionend:_},[M.value?(d(),h("div",{key:0,class:O(["tui-caroi-mask",{"is-show":!I.value}])},null,2)):T("",!0),me(Ue,{name:"fade"},{default:G((()=>[e.title||e.description?Re((d(),h("div",Fb,[e.hasLinkButton?(d(),le(i,{key:0,size:"small",class:"tui-caroi-link",type:"primary",link:"",onClick:C},{default:G((()=>[f("span",jb,X(p(n)||p(l)("common.detail")),1),a[0]||(a[0]=f("i",{class:"tui-icon ti-chevron-right"},null,-1))])),_:1})):T("",!0),e.title?(d(),le(o,{key:1,class:"tui-caroi-title"},{default:G((()=>[We(X(e.title),1)])),_:1})):T("",!0),e.description?(d(),le(o,{key:2,type:"default",lines:2,placement:"bottom",class:"tui-caroi-desc"},{default:G((()=>[We(X(e.description),1)])),_:1})):T("",!0)],512)),[[Ye,I.value]]):T("",!0)])),_:1}),ee(t.$slots,"default")],38)),[[Ye,y.value]])}}}),Gb={class:"tui-clpsi-title"},Hb={key:0,class:"tui-clpsi-body"},Kb={class:"tui-clpsi-content"},Ki=Object.assign({name:"TuiCollapseItem"},{__name:"item",props:{name:[String,Number],title:String,disabled:Boolean,className:String},setup(e){const t=e,l=ze("TuiCollapse",null),a=$(!1),i=u((()=>t.name??t.title)),o=u((()=>l?.isActive(i.value))),n=u((()=>"header"===l?.props.trigger)),s=u((()=>!(l?.props.destroyOnClose||!a.value)||o.value)),r=()=>{l?.toggle(i.value,t.disabled)},A=()=>{n.value&&r()},c=()=>{n.value||r()},p=e=>{const t=l?.props.duration??260;e.style.transition=`height ${t}ms ease, opacity ${t}ms ease, transform ${t}ms ease`},g=e=>{e.style.height="",e.style.opacity="",e.style.transform="",e.style.transition=""},v=e=>{p(e),e.style.height="0",e.style.opacity="0",e.style.transform="translateY(-6px)"},m=e=>{ot.w().then((()=>{e.style.height=`${e.scrollHeight}px`,e.style.opacity="1",e.style.transform="translateY(0)"}))},y=e=>{g(e)},b=e=>{p(e),e.style.height=`${e.scrollHeight}px`,e.style.opacity="1",e.style.transform="translateY(0)"},V=e=>{ot.w().then((()=>{e.style.height="0",e.style.opacity="0",e.style.transform="translateY(-6px)"}))},w=e=>{g(e)};return Be((()=>{l?.registerItem({name:i.value,disabled:t.disabled}),(!l?.props.lazy||o.value)&&(a.value=!0)})),Z(o,(e=>{e&&(a.value=!0)})),dt((()=>{l?.unregisterItem(i.value)})),(t,l)=>(d(),h("div",{class:O(["tui-collapse-item",{"is-active":o.value,"is-disabled":e.disabled,"is-header-trigger":n.value},e.className])},[f("div",{class:"tui-clpsi-head",onClick:A},[f("button",{class:"tui-clpsi-icon",type:"button",onClick:Ze(c,["stop"])},[...l[1]||(l[1]=[f("i",{class:"tui-icon ti-chevron-right"},null,-1)])]),f("div",Gb,[ee(t.$slots,"title",{active:o.value,itemName:i.value},(()=>[We(X(e.title),1)]))]),f("div",{class:"tui-clpsi-extra",onClick:l[0]||(l[0]=Ze((()=>{}),["stop"]))},[ee(t.$slots,"extra",{active:o.value,itemName:i.value})])]),me(Ue,{name:"tui-clpsi-drop",onBeforeEnter:v,onEnter:m,onAfterEnter:y,onBeforeLeave:b,onLeave:V,onAfterLeave:w},{default:G((()=>[s.value?Re((d(),h("div",Hb,[f("div",Kb,[ee(t.$slots,"default",{active:o.value,itemName:i.value})])],512)),[[Ye,o.value]]):T("",!0)])),_:3})],2))}}),Ub=Object.assign({name:"TuiCollapse"},{__name:"index",props:{modelValue:[String,Number,Array],defaultValue:[String,Number,Array],options:{type:Array,default:()=>[]},accordion:Boolean,bordered:{type:Boolean,default:!0},merge:Boolean,ghost:Boolean,lazy:Boolean,destroyOnClose:Boolean,trigger:{type:String,default:"header",validator:e=>["header","icon"].includes(e)},iconPosition:{type:String,default:"left",validator:e=>["left","right"].includes(e)},keyField:{type:String,default:"key"},titleField:{type:String,default:"title"},contentField:{type:String,default:"content"},disabledField:{type:String,default:"disabled"},duration:{type:Number,default:260},itemGap:[String,Number],className:String,itemClassName:String},emits:["update:modelValue","change","open","close"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Ee("collapse"),n=$(a.defaultValue??(a.accordion?null:[])),s=je(new Map),r=u((()=>void 0!==a.modelValue)),A=u((()=>r.value?a.modelValue:n.value)),c=e=>null==e?[]:Array.isArray(e)?e:[e],p=u((()=>c(A.value).map((e=>`${e}`)))),g=u((()=>$e("cpt-clps",{...q("gap",a.itemGap,{smartAppend:!0,zero:!0}),dur:`${a.duration}ms`}))),v=(e,t)=>e?.[a.keyField]??e?.value??t,f=e=>e?.[a.titleField]??e?.label??"",m=e=>e?.[a.contentField]??"",y=e=>!!e?.[a.disabledField],b=e=>p.value.includes(`${e}`),V=(e,t)=>{r.value||(n.value=e),i("update:modelValue",e),i("change",e,t)},w=(e,t=!1)=>{if(t)return;const l=b(e);let o;if(a.accordion)o=l?null:e;else{const t=c(A.value);o=l?t.filter((t=>`${t}`!=`${e}`)):[...t,e]}V(o,{name:e,active:!l}),i(l?"close":"open",e)};return Z((()=>a.accordion),(e=>{if(!e)return;const t=c(A.value)[0]??null;t!==A.value&&V(t,{name:t,active:!!t})})),bt("TuiCollapse",{uid:o,props:a,activeKeysCPT:p,isActive:b,toggle:w,registerItem:e=>{s.set(`${e.name}`,e)},unregisterItem:e=>{s.delete(`${e}`)}}),t({open:e=>{b(e)||w(e,!1)},close:e=>{b(e)&&w(e,!1)},toggle:w,getActive:()=>A.value}),(t,l)=>(d(),h("div",{class:O(["tui-collapse",`is-icon-${e.iconPosition}`,{"is-bordered":e.bordered,"is-merge":e.merge,"is-ghost":e.ghost},e.className]),style:we(g.value)},[e.options.length?(d(!0),h(ge,{key:0},Fe(e.options,((l,a)=>(d(),le(Ki,{key:v(l,a),name:v(l,a),title:f(l),disabled:y(l),"class-name":e.itemClassName},{title:G((e=>[ee(t.$slots,"title",_e({ref_for:!0},{...e,item:l,index:a}),(()=>[We(X(f(l)),1)]))])),extra:G((e=>[ee(t.$slots,"extra",_e({ref_for:!0},{...e,item:l,index:a}))])),default:G((()=>[ee(t.$slots,"content",_e({ref_for:!0},{item:l,index:a,active:b(v(l,a))}),(()=>[We(X(m(l)),1)]))])),_:2},1032,["name","title","disabled","class-name"])))),128)):ee(t.$slots,"default",{key:1})],6))}}),Yb={key:0,class:"tui-field-label tui-fields-label"},Qb={class:"tui-field-label-wrap tui-fields-label-wrap"},Xb=["title"],Zb={key:2,class:"tui-field-label-suffix tui-fields-label-suffix"},Jb={class:"tui-field-content tui-fields-content"},eV={key:2,class:"tui-field-tags tui-fields-tags"},tV={class:"tui-field-value tui-fields-value"},lV={key:0,class:"tui-field-unit tui-fields-unit"},nV={class:"tui-field-value tui-fields-value"},aV={class:"tui-field-unit tui-fields-unit"},oV=["title"],Ui=Object.assign({name:"TuiField"},{__name:"item",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},fieldKey:{type:[String,Number],default:""},label:{type:[String,Number],default:void 0},content:{type:[String,Number,Array,Object],default:void 0},value:{type:[String,Number,Array,Object],default:void 0},unit:{type:[String,Number],default:void 0},tags:{type:[Array,Object,String,Number],default:void 0},type:{type:String,default:""},role:{type:String,default:""},tagConfig:{type:Object,default:()=>({})},tagType:{type:String,default:""},tagTone:{type:String,default:""},tagSize:{type:String,default:""},round:{type:Boolean,default:void 0},src:{type:String,default:""},url:{type:String,default:""},alt:{type:String,default:""},title:{type:String,default:""},imageConfig:{type:Object,default:()=>({})},labelWidth:{type:[Number,String],default:""},labelSuffix:{type:String,default:void 0},labelWeak:{type:Boolean,default:!0},labelAlign:{type:String,default:void 0,validator:e=>null==e||["left","center","right"].includes(e)},contentAlign:{type:String,default:void 0,validator:e=>null==e||["left","center","right"].includes(e)},labelLines:{type:[Number,String],default:1},contentLines:{type:[Number,String],default:2},singleLine:{type:Boolean,default:!1},itemGap:{type:[Number,String],default:""},overflowTip:{type:String,default:"auto",validator:e=>["auto","textTip","title","none"].includes(e)}},setup(e){const t=e,l=ze("$global",null),a=ze("TuiOverlayContext",null),i=e=>null!=e&&""!==e,o=e=>i(t[e])?t[e]:t.item?.[e],n=["title","tittle"],s=["title","tittle","section","description","desc","summary"],r=u((()=>t.type||t.item?.type||t.item?.displayType||"text")),A=u((()=>t.role||t.item?.role||"default")),c=u((()=>o("label")??"")),p=u((()=>c.value&&!s.includes(A.value))),g=u((()=>void 0!==t.labelSuffix?t.labelSuffix:["zh-CN","zh-TW"].includes(l?.$gLang?.value||"zh-CN")?":":":")),v=u((()=>o("value"))),m=u((()=>o("content"))),y=u((()=>o("unit"))),b=u((()=>o("tags"))),V=u((()=>i(v.value)?v.value:m.value)),w=u((()=>t.fieldKey||t.item?.key||t.item?.name||t.index)),x=u((()=>"auto"!==t.overflowTip?t.overflowTip:"popPanel"===a?.type?"title":"followPanel"===a?.type?"none":"textTip")),k=u((()=>"textTip"===x.value)),S=u((()=>"title"===x.value)),C=u((()=>i(V.value)?String(V.value):"")),$=u((()=>t.labelAlign||t.item?.labelAlign||"right")),B=u((()=>t.contentAlign||t.item?.contentAlign||"left")),z=u((()=>({left:"flex-start",center:"center",right:"flex-end"}[$.value]))),N=u((()=>({...t.item?.tagConfig&&"object"==typeof t.item.tagConfig?t.item.tagConfig:{},...t.tagConfig&&"object"==typeof t.tagConfig?t.tagConfig:{}}))),R=u((()=>t.tagType||N.value.type||t.item?.tagType||t.item?.statusType||t.item?.semantic||"primary")),I=u((()=>t.tagTone||N.value.tone||t.item?.tagTone||"weak")),M=u((()=>t.tagSize||N.value.size||t.item?.tagSize||"small")),P=u((()=>t.round??N.value.round??t.item?.round??!1)),D=u((()=>{return e=b.value??V.value,(Array.isArray(e)?e:i(e)?[e]:[]).map(((e,t)=>{const l=e&&"object"==typeof e?e:{},a=l.tagConfig&&"object"==typeof l.tagConfig?l.tagConfig:{},o=l.props&&"object"==typeof l.props?l.props:{},n=(e=>e&&"object"==typeof e?e.label??e.content??e.value??e.name??"":e)(e);return i(n)?{key:l.key??l.name??n??t,label:n,props:{...N.value,...a,...o,...l,label:void 0,content:void 0,value:void 0,name:void 0,key:void 0,tagConfig:void 0,props:void 0,raw:void 0,explicitType:void 0,type:l.tagType||l.statusType||l.tagSemantic||l.semantic||l.type||o.type||a.type||R.value,tone:l.tagTone||l.tone||o.tone||a.tone||I.value,size:l.tagSize||l.size||o.size||a.size||M.value,round:l.round??o.round??a.round??P.value}}:null})).filter(Boolean);var e})),_=u((()=>({preview:!1,...t.item?.imageConfig&&"object"==typeof t.item.imageConfig?t.item.imageConfig:{},...t.imageConfig&&"object"==typeof t.imageConfig?t.imageConfig:{}}))),E=e=>i(t[e])?t[e]:i(t.item?.[e])?t.item[e]:_.value?.[e],j=u((()=>E("src")||E("url")||m.value)),L=u((()=>E("alt")||c.value)),F=u((()=>E("title")||L.value)),W=u((()=>{const e={..._.value},t=e.fit||e.objectFit;return delete e.objectFit,delete e.url,{...e,src:j.value,alt:L.value,title:F.value,fit:t||"cover"}})),H=u((()=>({left:"flex-start",center:"center",right:"flex-end"}[B.value]))),U=u((()=>[A.value,r.value,w.value].some((e=>n.includes((e=>String(e??"").trim().toLowerCase())(e)))))),Z=u((()=>$e("cpt-field",{labelAlign:$.value,labelJc:z.value,contentAlign:B.value,contentJc:H.value,labelLines:t.labelLines,contentLines:t.contentLines,...q("labelW",t.labelWidth,"smart"),...q("itemGap",t.itemGap,"smart")}))),Y=u((()=>({item:t.item,index:t.index,key:w.value,label:c.value,type:r.value,role:A.value,content:m.value,value:V.value,unit:y.value,tags:D.value,imageConfig:W.value,tagConfig:N.value,singleLine:t.singleLine,raw:t.item?.raw||t.item}))),Q=u((()=>["tui-field","tui-fields-item",`is-type-${r.value}`,`is-role-${A.value}`,U.value&&"is-title-field",t.singleLine&&"is-single-line",t.labelWeak&&"is-label-weak",t.item?.required&&"is-required",t.item?.disabled&&"is-disabled",t.item?.class])),K=u((()=>t.item?.style));return(t,l)=>{const a=ke("TuiTextTip"),o=ke("TuiImage"),n=ke("TuiTag");return d(),h("div",{class:O(Q.value),style:we([Z.value,K.value])},[p.value?(d(),h("div",Yb,[ee(t.$slots,"label",mt(qt(Y.value)),(()=>[f("span",Qb,[k.value?(d(),le(a,{key:0,class:"tui-field-label-text tui-fields-label-text",lines:e.labelLines},{default:G((()=>[We(X(c.value),1)])),_:1},8,["lines"])):(d(),h("span",{key:1,class:"tui-field-label-text tui-fields-label-text",title:S.value?String(c.value):null},X(c.value),9,Xb)),g.value?(d(),h("span",Zb,X(g.value),1)):T("",!0)])]))])):T("",!0),f("div",Jb,[ee(t.$slots,"content",mt(qt(Y.value)),(()=>["image"===r.value?(d(),le(o,_e({key:0,class:"tui-field-image tui-fields-image"},W.value),null,16)):"tag"===r.value?(d(),le(n,_e({key:1},N.value,{type:R.value,tone:I.value,size:M.value,round:P.value}),{default:G((()=>[We(X(C.value),1)])),_:1},16,["type","tone","size","round"])):"tags"===r.value?(d(),h("div",eV,[(d(!0),h(ge,null,Fe(D.value,(e=>(d(),le(n,_e({key:e.key,class:"tui-field-tag tui-fields-tag"},{ref_for:!0},e.props),{default:G((()=>[We(X(e.label),1)])),_:2},1040)))),128))])):"value"===r.value?(d(),h(ge,{key:3},[f("span",tV,X(V.value),1),i(y.value)?(d(),h("span",lV,X(y.value),1)):T("",!0)],64)):"percent"===r.value?(d(),h(ge,{key:4},[f("span",nV,X(V.value),1),f("span",aV,X(i(y.value)?y.value:"%"),1)],64)):(d(),h(ge,{key:5},[k.value?(d(),le(a,{key:0,class:"tui-field-content-text tui-fields-content-text",lines:e.contentLines},{default:G((()=>[We(X(C.value),1)])),_:1},8,["lines"])):(d(),h("span",{key:1,class:"tui-field-content-text tui-fields-content-text",title:S.value?C.value:null},X(C.value),9,oV))],64))]))])],6)}}}),iV={key:0,class:"tui-fields-actions"},sV={key:1,class:"tui-fields-empty"},rV={key:2,class:"tui-fields-main"},uV={key:0,class:"tui-fields-divider"},cV={key:3,class:"tui-fields-actions"},dV="No fields",AV=Object.assign({name:"TuiFields"},{__name:"index",props:{fields:{type:Array,default:()=>[]},keyMap:{type:Object,default:()=>({})},cols:{type:Number,default:2},gutter:{type:Number,default:12},rowConfig:{type:Object,default:()=>({})},head:{type:Boolean,default:!1},labelWidth:{type:[Number,String],default:""},labelSuffix:{type:String,default:void 0},labelWeak:{type:Boolean,default:!0},labelAlign:{type:String,default:"right",validator:e=>["left","center","right"].includes(e)},contentAlign:{type:String,default:"left",validator:e=>["left","center","right"].includes(e)},labelLines:{type:[Number,String],default:1},contentLines:{type:[Number,String],default:2},itemGap:{type:[Number,String],default:""},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},overflowTip:{type:String,default:"auto",validator:e=>["auto","textTip","title","none"].includes(e)},empty:{type:Boolean,default:!1},emptyText:{type:String,default:""},emptyConfig:{type:Object,default:()=>({})},showActions:{type:Boolean,default:!1},actionPosition:{type:String,default:"bottom",validator:e=>["top","bottom"].includes(e)},actionAlign:{type:String,default:"right",validator:e=>["left","center","right"].includes(e)},actions:{type:Array,default:()=>["copyText","copyRaw"]},actionLabels:{type:Object,default:()=>({})},actionSuccessLabels:{type:Object,default:()=>({})},copyIndent:{type:Number,default:2},copySeparator:{type:String,default:": "},semanticLabelMap:{type:Object,default:()=>({})}},emits:["action","copy","copy-error"],setup(e,{emit:t}){const l=e,a=t,i=ze("$global",null),o=Nt(),n={key:"key",label:"label",content:"content",value:"value",unit:"unit",tags:"tags",type:"type",role:"role",kind:"kind",col:"col",colConfig:"colConfig",tagConfig:"tagConfig",imageConfig:"imageConfig",tagType:"tagType",tagTone:"tagTone",tagSize:"tagSize",statusType:"statusType",tagSemantic:"tagSemantic",round:"round",src:"src",url:"url",alt:"alt",title:"title",labelAlign:"labelAlign",contentAlign:"contentAlign",required:"required",disabled:"disabled",class:"class",style:"style",block:"block"},s="Copy Text",r="Copy JSON",A="Copy Text Success",c="Copy JSON Success",p={copyText:{icon:"tui-icon ti-copy"},copyRaw:{icon:"tui-icon ti-file-json"}},g={default:"Content",title:"Title",description:"Description",desc:"Description",summary:"Summary",section:"Section",divider:"Divider",text:"Content",value:"Value",percent:"Percent",tag:"Tag",tags:"Tags",image:"Image"},v=u((()=>({...n,...l.keyMap}))),f=(e,t)=>i?.i18n?.(e)||t,m=u((()=>({copyText:f("fields.action.copyText",s),copyRaw:f("fields.action.copyRaw",r),...l.actionLabels}))),y=u((()=>({copyText:f("fields.action.copyTextSuccess",A),copyRaw:f("fields.action.copyRawSuccess",c),...l.actionSuccessLabels}))),b=u((()=>({...Object.keys(g).reduce(((e,t)=>(e[t]=f(`fields.semantic.${t}`,g[t]),e)),{}),...l.semanticLabelMap}))),V=u((()=>{const e=Number(l.cols);return Number.isFinite(e)&&e>0?Math.floor(e):2})),w=u((()=>({...l.rowConfig,gutter:l.gutter,cols:V.value}))),x=u((()=>({left:"flex-start",center:"center",right:"flex-end"}[l.actionAlign]))),k=u((()=>l.emptyText||f("fields.emptyText",dV))),S=u((()=>l.emptyConfig&&"object"==typeof l.emptyConfig?l.emptyConfig:{})),C=u((()=>void 0!==l.labelSuffix?l.labelSuffix:["zh-CN","zh-TW"].includes(i?.$gLang?.value||"zh-CN")?":":":")),$=u((()=>({status:"empty",size:l.size,typedAppearance:"text",...S.value,title:S.value.title??k.value}))),B=u((()=>$e("cpt-fields",{cols:V.value,labelAlign:l.labelAlign,contentAlign:l.contentAlign,labelLines:l.labelLines,contentLines:l.contentLines,actionAlign:x.value,...q("labelW",l.labelWidth,"smart"),...q("itemGap",l.itemGap,"smart")}))),z=["title","tittle","description","desc","summary","section"],N=[...z,"divider"],R=(e,t)=>e&&Object.prototype.hasOwnProperty.call(e,t),I=e=>null!=e&&""!==e,M=(e,t,l)=>{const a=((e,t)=>{const l=v.value[t];if(R(e,l))return e[l]})(e,t);return void 0!==a?a:R(e,t)?e[t]:l},P=e=>I(e)?String(e):"",D=e=>e.block||N.includes(e.role)?V.value:1,_=(e,t)=>{const l=Number(e);return Number.isFinite(l)?Math.min(Math.max(l,0),V.value):t},E=e=>{const t=e.colConfig||{},l=t.span??e.col??D(e);return{span:_(l,D(e)),offset:t.offset??e.offset,push:t.push??e.push,pull:t.pull??e.pull,xs:t.xs??e.xs,sm:t.sm??e.sm,md:t.md??e.md,lg:t.lg??e.lg,xl:t.xl??e.xl,tag:t.tag??e.colTag??"div"}},j=e=>{const t=M(e,"tagConfig"),l=t&&"object"==typeof t?{...t}:{},a=M(e,"tagType")||M(e,"statusType")||M(e,"tagSemantic")||e.semantic||l.type,i=M(e,"tagTone")||l.tone,o=M(e,"tagSize")||l.size,n=M(e,"round");return{...l,...I(a)?{type:a}:{},...I(i)?{tone:i}:{},...I(o)?{size:o}:{},...I(n)?{round:n}:{}}},L=e=>{const t=M(e,"imageConfig"),l=t&&"object"==typeof t?{...t}:{};return["src","url","alt","title"].forEach((t=>{const a=M(e,t);I(a)&&(l[t]=a)})),l},F=(e={},t)=>{const a=M(e,"key",e.name??t),i=M(e,"type",e.displayType||"text")||"text",o=M(e,"role","default")||"default",n=M(e,"kind",e.kind),s={...e,raw:e,index:t,key:a,label:M(e,"label",""),content:M(e,"content"),value:M(e,"value"),unit:M(e,"unit"),tags:M(e,"tags"),type:i,role:o,kind:n,tagConfig:j(e),imageConfig:L(e),labelAlign:M(e,"labelAlign",l.labelAlign),contentAlign:M(e,"contentAlign",l.contentAlign),required:M(e,"required",e.required),disabled:M(e,"disabled",e.disabled),class:M(e,"class",e.class),style:M(e,"style",e.style),block:M(e,"block",e.block)},r=M(e,"colConfig",e.colConfig||{});return s.colConfig=r&&"object"==typeof r?r:{},s.col=M(e,"col",e.col),s},W=u((()=>l.fields.map(F))),H=u((()=>l.empty||0===W.value.length)),U=e=>z.includes(e.role),Z=u((()=>l.head?W.value.filter(U):[])),Y=u((()=>l.head?W.value.filter((e=>!U(e))):W.value)),X=u((()=>l.head?[{key:"head",fields:Z.value},{key:"body",fields:Y.value}].filter((e=>e.fields.length>0)):[{key:"body",fields:W.value}])),Q=u((()=>l.head&&Z.value.length>0&&Y.value.length>0)),K=e=>E(e).span>=V.value?l.contentLines:1,J=e=>E(e).span<V.value,te=e=>[`content-${e.key}`,e.kind?`content-kind-${e.kind}`:"",e.role?`content-role-${e.role}`:"",e.type?`content-type-${e.type}`:"","content"].find((e=>e&&o[e])),ae=e=>{const t="string"==typeof e?{name:e}:e;if(!t?.name)return null;const l=p[t.name]||{},a=t.label||m.value[t.name]||t.name;return{...l,...t,label:a,ariaLabel:t.ariaLabel||t["aria-label"]||a}},ie=u((()=>l.actions.map(ae).filter(Boolean))),oe=u((()=>!H.value&&l.showActions&&ie.value.length>0)),ne=e=>{const{type:t,role:l,value:a,content:i,unit:o,tags:n}=e,s=I(a)?a:i,r="tags"===t?(e=>(Array.isArray(e)?e:I(e)?[e]:[]).map((e=>P(e&&"object"==typeof e?e.label??e.content??e.value??e.name:e))).filter(Boolean))(n??s):[],u=r.length?r.join(", "):"percent"===t&&I(s)?`${s}${I(o)?o:"%"}`:`${P(s)}${"value"===t&&I(o)?` ${o}`:""}`;return{key:e.key,label:e.label,type:t,role:l,content:i,value:a,unit:o,tags:n,text:u,tagType:e.tagConfig?.type||"primary",tagTone:e.tagConfig?.tone||"weak",col:E(e).span}},se=u((()=>W.value.map(ne))),re=u((()=>se.value.filter((e=>I(e.text))).map((e=>`${(e=>e.label||b.value[e.role]||b.value[e.type]||e.key)(e)}${l.copySeparator}${e.text}`)).join("\n"))),ue=e=>e.successLabel||y.value[e.name]||`${e.label} Success`,Ae=async e=>{const t=e.name,o="copyRaw"===t?JSON.stringify(l.fields,null,l.copyIndent):re.value;await On.copy(o),(e=>{"function"==typeof i?.$tToast&&i.$tToast({content:ue(e),type:"success"})})(e);const n={type:t,action:e,text:o,raw:l.fields,semantic:se.value};return a("copy",n),n},de=async e=>{if(a("action",e),["copyRaw","copyText"].includes(e.name))try{await Ae(e)}catch(t){a("copy-error",{type:e.name,action:e,error:t})}};return(t,l)=>{const a=ke("TuiButton"),i=ke("TuiButtonGroup"),o=ke("TuiResult"),n=ke("TuiCol"),s=ke("TuiRow"),r=Je("tui-popover");return d(),h("div",{class:O(["tui-fields",[`is-size-${e.size}`,oe.value&&"has-actions",oe.value&&`is-action-${e.actionPosition}`]]),style:we(B.value)},[oe.value&&"top"===e.actionPosition?(d(),h("div",iV,[ee(t.$slots,"actions",{actions:ie.value,semantic:se.value,raw:e.fields,handleAction:de},(()=>[me(i,{size:"small"},{default:G((()=>[(d(!0),h(ge,null,Fe(ie.value,(e=>Re((d(),le(a,{key:e.name,type:"default",icon:e.icon,"aria-label":e.ariaLabel,title:e.label,onClick:t=>de(e)},null,8,["icon","aria-label","title","onClick"])),[[r,{content:e.label,trigger:"hover",placement:"top"}]]))),128))])),_:1})]))])):T("",!0),H.value?(d(),h("div",sV,[ee(t.$slots,"empty",{text:k.value,config:$.value},(()=>[me(o,mt(qt($.value)),null,16)]))])):(d(),h("div",rV,[(d(!0),h(ge,null,Fe(X.value,((l,a)=>(d(),h(ge,{key:l.key},[a>0&&Q.value?(d(),h("div",uV)):T("",!0),me(s,_e({class:["tui-fields-row",`is-section-${l.key}`]},{ref_for:!0},w.value),{default:G((()=>[(d(!0),h(ge,null,Fe(l.fields,(l=>(d(),le(n,_e({key:l.key,class:"tui-fields-col"},{ref_for:!0},E(l)),{default:G((()=>[me(Ui,{item:l,index:l.index,"field-key":l.key,label:l.label,content:l.content,value:l.value,unit:l.unit,tags:l.tags,type:l.type,role:l.role,"label-width":e.labelWidth,"label-suffix":C.value,"label-weak":e.labelWeak,"label-align":l.labelAlign,"content-align":l.contentAlign,"label-lines":e.labelLines,"content-lines":K(l),"single-line":J(l),"item-gap":e.itemGap,"overflow-tip":e.overflowTip},el({_:2},[t.$slots.label?{name:"label",fn:G((e=>[ee(t.$slots,"label",_e({ref_for:!0},e))])),key:"0"}:void 0,te(l)?{name:"content",fn:G((e=>[ee(t.$slots,te(l),_e({ref_for:!0},e))])),key:"1"}:void 0]),1032,["item","index","field-key","label","content","value","unit","tags","type","role","label-width","label-suffix","label-weak","label-align","content-align","label-lines","content-lines","single-line","item-gap","overflow-tip"])])),_:2},1040)))),128))])),_:2},1040,["class"])],64)))),128))])),oe.value&&"bottom"===e.actionPosition?(d(),h("div",cV,[ee(t.$slots,"actions",{actions:ie.value,semantic:se.value,raw:e.fields,handleAction:de},(()=>[me(i,{size:"small"},{default:G((()=>[(d(!0),h(ge,null,Fe(ie.value,(e=>Re((d(),le(a,{key:e.name,type:"default",icon:e.icon,"aria-label":e.ariaLabel,title:e.label,onClick:t=>de(e)},null,8,["icon","aria-label","title","onClick"])),[[r,{content:e.label,trigger:"hover",placement:"top"}]]))),128))])),_:1})]))])):T("",!0)],6)}}}),fV=["fill","contain","cover","none","scale-down"],pV=["eager","lazy"],gV=["sync","async","auto"],xo={loading:"Loading image",error:"Image failed to load",empty:"No image"},Po=(e,t)=>{if(!t)return 0;const l=Number(e);return Number.isFinite(l)?Math.min(Math.max(Math.trunc(l),0),t-1):0},vV=(e=[],t={})=>{const l={src:"src",title:"title",alt:"alt",description:"description",thumb:"thumb",downloadUrl:"downloadUrl",...t};return e.map((e=>"string"==typeof e?{src:e}:e&&"object"==typeof e?{...e,src:e[l.src],title:e[l.title],alt:e[l.alt],description:e[l.description],thumb:e[l.thumb],downloadUrl:e[l.downloadUrl]}:null)).filter((e=>e?.src))},hV=e=>{if(null==e||""===e)return null;if("number"==typeof e)return e>0?String(e):null;const t=String(e).trim();return t?/^\d+(\.\d+)?$/.test(t)?Number(t)>0?t:null:/^\d+(\.\d+)?\s*\/\s*\d+(\.\d+)?$/.test(t)?t.replace(/\s+/g,""):null:null},mV=["title"],yV={class:"tui-img-shell"},bV=["src","alt","loading","decoding","referrerpolicy","crossorigin","draggable"],VV={key:0,class:"tui-img-state is-loading"},wV={key:1,class:"tui-img-state is-error"},CV={key:2,class:"tui-img-state is-empty"},TV={key:3,class:"tui-img-overlay"},SV=Object.assign({name:"TuiImage"},{__name:"index",props:{src:String,alt:String,title:String,width:[String,Number],height:[String,Number],ratio:[String,Number],fit:{type:String,default:"cover",validator:e=>fV.includes(e)},radius:[String,Number],shadow:Boolean,bordered:Boolean,lazy:Boolean,loading:{type:Boolean,default:void 0},loadingAttr:{type:String,default:null,validator:e=>null==e||pV.includes(e)},decoding:{type:String,default:"async",validator:e=>gV.includes(e)},referrerPolicy:String,crossorigin:String,draggable:Boolean,preview:{type:Boolean,default:!0},images:{type:Array,default:()=>[]},activeIndex:Number,keyMap:{type:Object,default:()=>({})},previewConfig:{type:Object,default:()=>({})},resultConfig:{type:Object,default:()=>({})},labels:Object},emits:["load","error","click","preview-open","preview-close","update:activeIndex"],setup(e,{expose:t,emit:l}){const a=e,i=l,{proxy:o}=Tt()||{},n=$(null),s=$(!1),r=$(0),A=$(!1),c=$(!1),g=$({width:0,height:0}),v=(e,t)=>o?.$tService?.i18n?.(`image.${e}`)||t,m=(e,t)=>null==e?t:"object"==typeof e?o?.$tService?.i18n?.(e)||t:e,y=u((()=>vV(a.images,a.keyMap))),b=u((()=>Po(a.activeIndex,y.value.length))),V=u((()=>a.src?{src:a.src,title:a.title,alt:a.alt}:y.value[b.value]||null)),w=u((()=>V.value?.src||"")),x=u((()=>a.title||V.value?.title||"")),k=u((()=>a.alt||V.value?.alt||x.value||"")),S=u((()=>Object.keys(xo).reduce(((e,t)=>({...e,[t]:m(a.labels?.[t],v(t,xo[t]))})),{}))),C=u((()=>hV(a.ratio))),B=u((()=>!!(a.width||a.height||C.value))),z=u((()=>a.loadingAttr||(a.lazy?"lazy":null))),N=u((()=>y.value.length?y.value:w.value?[{src:w.value,title:x.value,alt:k.value}]:[])),R=u((()=>{if(!N.value.length)return 0;if(Number.isFinite(a.activeIndex))return Po(a.activeIndex,N.value.length);const e=N.value.findIndex((e=>e.src===w.value));return e>=0?e:0})),I=u((()=>!0===a.loading)),M=u((()=>!(!w.value||!I.value&&!A.value))),P=u((()=>!(!w.value||M.value||!c.value))),D=u((()=>!w.value)),_=u((()=>!(!w.value||M.value||P.value))),E=u((()=>!!(a.preview&&_.value&&N.value.length))),j=Object.freeze({appearance:"text"}),L=u((()=>x.value||k.value)),F=u((()=>["tui-image",{"has-frame":B.value,"has-ratio":!!C.value,"is-loading":M.value,"is-loaded":_.value,"is-error":P.value,"is-empty":D.value,"is-previewable":E.value,"is-bordered":a.bordered,"is-shadow":a.shadow}])),W=u((()=>$e("cpt-img",{...q("w",a.width,"smart"),...q("h",a.height,"smart"),...q("ratio",C.value),...q("fit",a.fit),...q("bdra",a.radius,"smart")}))),H=()=>{c.value=!1,g.value={width:0,height:0},A.value=!!w.value},U=e=>{A.value=!1,c.value=!1;const t=e.target;g.value={width:t?.naturalWidth||0,height:t?.naturalHeight||0},i("load",{src:w.value,item:V.value,naturalSize:g.value,event:e})},Y=e=>{A.value=!1,c.value=!0,i("error",{src:w.value,item:V.value,event:e})},X=()=>{E.value&&(r.value=R.value,s.value=!0,i("preview-open",{index:r.value,item:N.value[r.value]||null}))},Q=e=>{i("click",{src:w.value,item:V.value,event:e}),X()},K=e=>{r.value=e,i("update:activeIndex",e)},J=(...e)=>{i("preview-close",...e)};return Z(w,H,{immediate:!0}),t({showPreview:X,hidePreview:()=>{s.value=!1},reload:()=>{H();const e=w.value;n.value&&e&&(n.value.src=e)},getImage:()=>n.value,getNaturalSize:()=>g.value}),(t,l)=>{const i=ke("TuiResult"),o=ke("TuiLightbox");return d(),h("div",{class:O(F.value),style:we(W.value),title:x.value,onClick:Q},[f("div",yV,[ee(t.$slots,"default",{src:w.value,item:V.value,loading:M.value,error:P.value,empty:D.value,naturalSize:g.value},(()=>[w.value?(d(),h("img",{key:0,ref_key:"imageEl",ref:n,class:"tui-img-native",src:w.value,alt:k.value,loading:z.value||void 0,decoding:e.decoding,referrerpolicy:e.referrerPolicy,crossorigin:e.crossorigin,draggable:e.draggable,onLoad:U,onError:Y},null,40,bV)):T("",!0)])),M.value?(d(),h("div",VV,[ee(t.$slots,"loading",{src:w.value,item:V.value},(()=>[me(i,_e({class:"tui-img-result",status:"loading",title:S.value.loading,"typed-config":p(j)},e.resultConfig),null,16,["title","typed-config"])]))])):P.value?(d(),h("div",wV,[ee(t.$slots,"error",{src:w.value,item:V.value},(()=>[me(i,_e({class:"tui-img-result",status:"warning",title:S.value.error,description:L.value,"typed-config":p(j)},e.resultConfig),null,16,["title","description","typed-config"])]))])):D.value?(d(),h("div",CV,[ee(t.$slots,"empty",{},(()=>[me(i,_e({class:"tui-img-result",status:"empty",title:S.value.empty,"typed-config":p(j)},e.resultConfig),null,16,["title","typed-config"])]))])):T("",!0),t.$slots.overlay?(d(),h("div",TV,[ee(t.$slots,"overlay",{src:w.value,item:V.value})])):T("",!0)]),a.preview&&N.value.length?(d(),le(o,_e({key:0},e.previewConfig,{modelValue:s.value,"onUpdate:modelValue":l[0]||(l[0]=e=>s.value=e),images:N.value,"active-index":r.value,"onUpdate:activeIndex":K,onClose:J}),el({_:2},[t.$slots["preview-toolbar"]?{name:"toolbar",fn:G((e=>[ee(t.$slots,"preview-toolbar",mt(qt(e)))])),key:"0"}:void 0,t.$slots["preview-progress"]?{name:"progress",fn:G((e=>[ee(t.$slots,"preview-progress",mt(qt(e)))])),key:"1"}:void 0,t.$slots["preview-error"]?{name:"error",fn:G((e=>[ee(t.$slots,"preview-error",mt(qt(e)))])),key:"2"}:void 0]),1040,["modelValue","images","active-index"])):T("",!0)],14,mV)}}}),$V={class:"tui-dfc-inner"},kV={class:"tui-dfc-front tui-dfc-top"},qV={class:"tui-dfc-cont"},xV={class:"tui-dfc-back tui-dfc-bottom"},PV={class:"tui-dfc-cont"},BV={class:"tui-dfc-cont"},zV={class:"tui-dfc-cont"},RV=Object.assign({name:"FlipCard"},{__name:"card",props:{digit:{type:String,required:!0},duration:{type:Number,default:300},index:{type:Number,default:0},flipMode:{type:String,default:"shortest"}},setup(e){const t=e,l=$("0"),a=$("0"),i=$(!1),o=$("down"),n=$([]),s=$(!1),r=(e,l)=>{const a=parseInt(e),i=parseInt(l);switch(t.flipMode){case"downOnly":return"down";case"shortest":return(i-a+10)%10<=(a-i+10)%10?"down":"up";case"smart":default:return 0===a&&9===i?"up":9===a&&0===i||i>a?"down":"up"}},A=e=>{const u=parseInt(l.value),A=parseInt(e);if(u===A)return;let d=[];switch(t.flipMode){case"downOnly":let e=u;for(;e!==A;)e=(e+1)%10,d.push(String(e));break;case"shortest":const t=(A-u+10)%10,l=(u-A+10)%10;if(t<=l){let e=u;for(let l=0;l<t;l++)e=(e+1)%10,d.push(String(e))}else{let e=u;for(let t=0;t<l;t++)e=(e-1+10)%10,d.push(String(e))}break;case"smart":default:if(!(Math.abs(A-u)>1)||0===u&&9===A||9===u&&0===A)d=[String(A)];else if(A>u)for(let e=u+1;e<=A;e++)d.push(String(e));else for(let e=u-1;e>=A;e--)d.push(String(e));break}n.value.length>3&&(n.value=[]),n.value.push(...d),s.value||(async()=>{if(!s.value&&0!==n.value.length){for(s.value=!0;n.value.length>0;){const e=n.value.shift(),s=r(l.value,e);await new Promise((n=>{a.value=l.value,o.value=s,i.value=!0;const r=100*t.index;setTimeout((()=>{l.value=e}),r+t.duration/2),setTimeout((()=>{i.value=!1,n()}),r+t.duration)}))}s.value=!1}})()};Z((()=>t.digit),(e=>{/^\d$/.test(e)?e!==l.value&&(n.value=[],A(e)):console.warn("FlipCard should only receive digit characters (0-9)")}),{immediate:!0});const c=u((()=>$e("cpt-dflip-card",{idx:t.index})));return(e,t)=>(d(),h("div",{class:O(["tui-dflip-card",{"is-flipping":i.value}]),style:we(c.value)},[f("div",$V,[f("div",kV,[f("span",qV,X(l.value),1)]),f("div",xV,[f("span",PV,X(l.value),1)]),i.value?(d(),h(ge,{key:0},[f("div",{class:O(["tui-dfc-front","tui-dfc-top",`is-flip-top-${o.value}`])},[f("span",BV,X("down"===o.value?a.value:l.value),1)],2),f("div",{class:O(["tui-dfc-back","tui-dfc-bottom",`is-flip-bottom-${o.value}`])},[f("span",zV,X("down"===o.value?l.value:a.value),1)],2)],64)):T("",!0)])],6))}}),NV={key:0,class:"tui-dflip-static is-prefix"},IV={class:"tui-dflip-digits"},OV={key:1,class:"tui-dflip-item"},DV={key:0,class:"tui-dflip-symbol is-sub"},MV={key:1,class:"tui-dflip-symbol is-normal"},_V={key:1,class:"tui-dflip-static is-suffix"},EV=Object.assign({name:"TuiDigitalFlip"},{__name:"index",props:{value:{type:[String,Number],default:0,required:!0},duration:{type:Number,default:500},delay:{type:Number,default:1e3},useGrouping:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},dropShadow:{type:Boolean,default:!1},prefix:String,suffix:String,gap:Number,customClass:String,flipMode:{type:String,default:"shortest",validator:e=>["smart","downOnly","shortest"].includes(e)},appearance:{type:String,default:"default",validator:e=>["default","reverse","custom"].includes(e)},size:{type:String,default:"default",validator:e=>["huge","large","default","small","custom"].includes(e)}},setup(e){const t=e,l=$(!1),a=$([]),i=$(!0),o=e=>e.reduce(((e,t)=>{const l=t.value||t;return Array.isArray(l)?e+l.length:e}),0),n=async e=>{const t=r(e),l=a.value,i=o(t),n=o(l);i>n?(a.value=((e,t)=>{const l=t-o(e);if(l<=0)return e;const a=e.map((e=>({...e,value:Array.isArray(e.value)?[...e.value]:e.value})));for(let e=0;e<a.length;e++)if("digits"===a[e].type){a[e].value=Array(l).fill("0").concat(a[e].value);break}return a})(l,i),await ye(),a.value=t):(i<n&&(a.value=((e,t)=>{const l=e.map((e=>({...e,value:Array.isArray(e.value)?[...e.value]:e.value})));let a=t;for(let e=0;e<l.length&&a>0;e++)if("digits"===l[e].type){const t=Math.min(l[e].value.length,a);l[e].value=[...Array(t).fill("0"),...l[e].value.slice(t)],a-=t}return l})(l,n-i)),a.value=t)},s=u((()=>(e=>{let l=e.toString();return t.useGrouping&&(l=l.replace(/^-?\d+/g,(e=>e.replace(/(?=(?!\b)(\d{3})+$)/g,",")))),l})(t.value))),r=e=>{let t=0;return e.map((e=>Array.isArray(e)?{type:"digits",id:"digits-"+t++,value:e}:{type:"symbol",id:`symbol-${e}`,value:e}))};Z(s,(async(e,l)=>{e?.length!=l?.length&&(a.value=[],await ye());const o=(e=>{const t=[];let l=[];for(let a=0;a<e.length;a++){const i=e[a];/\d/.test(i)?l.push(i):(l.length>0&&(t.push([...l]),l=[]),t.push(i))}return l.length>0&&t.push([...l]),t})(e);if(i.value){const e=o.map((e=>Array.isArray(e)?Array(e.length).fill("0"):e));a.value=r(e),i.value=!1,await ye(),setTimeout((()=>{a.value=r(o)}),t.delay||0)}else n(o)}),{immediate:!0});const A=u((()=>$e("cpt-dflip",{...q("delay",t.delay,"ms"),...q("gap",t.gap,"px"),dur:`${t.duration}ms`})));return Be((()=>{l.value=!0})),(t,i)=>l.value?(d(),h("div",{key:0,class:O(["tui-digital-flip",`is-appr-${e.appearance}`,`is-size-${e.size}`,e.customClass,{"is-bordered":e.bordered,"is-drop-shadow":e.dropShadow}]),style:we(A.value)},[e.prefix?(d(),h("div",NV,X(e.prefix),1)):T("",!0),f("div",IV,[(d(!0),h(ge,null,Fe(a.value,((t,l)=>(d(),h(ge,{key:t.id},["digits"===t.type?(d(),le(Ko,{key:0,name:"tui-dflip-slide",tag:"div",class:"tui-dflip-seg"},{default:G((()=>[(d(!0),h(ge,null,Fe(t.value,((l,a)=>(d(),h("div",{key:`${t.id}-${t.value.length-a-1}`,class:"tui-dflip-item"},[me(RV,{flipMode:e.flipMode,digit:l,duration:e.duration,index:a},null,8,["flipMode","digit","duration","index"])])))),128))])),_:2},1024)):(d(),h("div",OV,["."===t.value||","===t.value?(d(),h("div",DV,X(t.value),1)):(d(),h("div",MV,X(t.value),1))]))],64)))),128))]),e.suffix?(d(),h("div",_V,X(e.suffix),1)):T("",!0)],6)):T("",!0)}});function Bo(e){return/^(\d|\.|,){1}$/.test(e.toString())}const LV={class:O(["tui-digital-rolling-scroll"])},FV={class:"tui-drs-text"},jV={__name:"scroll",props:{to:{default:"0",validator:Bo},from:{default:"0",validator:Bo},dislocation:{type:Boolean,default:!1},interval:{type:Number,default:500}},setup(e){const t=e,{delay:l,includeSymbols:a}=ze("TuiDigitalRolling",null),i=u((()=>{const e=["0","1","2","3","4","5","6","7","8","9"];return a.value?[",",".",...e]:e})),o=$(0),n=$(1),s=$(null),r=$(0),A=u((()=>o.value/i.value.length)),c=()=>{s.value&&(o.value=s.value.clientHeight)},g=e=>{const t=i.value.findIndex((t=>e===t));r.value=t*A.value},v=()=>{const e=s.value?.parentElement;e&&(e.style.height=`${A.value}px`)};Z((()=>t.to),((e,l)=>{if(t.dislocation){const t=i.value.findIndex((e=>l===e)),a=i.value.findIndex((t=>e===t));n.value=Math.abs(a-t)}else n.value=1;g(e)}),{immediate:!0});const m=u((()=>$e("cpt-drs",{tslDur:t.interval/1e3*n.value+"s",tsf:`translateY(-${r.value}px)`}))),y=()=>{const e=A.value;c(),A.value!==e&&(v(),g(t.to))};return Be((async()=>{await ye(),c(),v(),g(t.from),setTimeout((()=>{g(t.to)}),l.value||1e3),s.value&&Nn.o(s.value,y,{frameSync:!0,threshold:0,trailing:!0,settleDelay:0})})),al((()=>{s.value&&Nn.d(s.value)})),(e,t)=>(d(),h("div",LV,[f("div",{ref_key:"listRef",ref:s,class:"tui-drs-list",style:we(m.value)},[(d(!0),h(ge,null,Fe(i.value,(e=>(d(),h("div",{class:O(["tui-drs-digit",{"is-num":p(Ct).isDigit(e)}]),key:e},[f("span",FV,X(e),1)],2)))),128))],4)]))}},WV={key:0,class:"tui-droll-static is-prefix"},GV={key:1,class:"tui-droll-static is-sub"},HV={key:2,class:"tui-droll-static is-symbol"},KV={key:1,class:"tui-droll-static is-suffix"},UV=Object.assign({name:"TuiDigitalRolling"},{__name:"index",props:{value:{type:[String,Number],default:0,required:!0},dislocation:{type:Boolean,default:!1},interval:{type:Number,default:1e3},useGrouping:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},dropShadow:{type:Boolean,default:!1},appearanceLayer:{type:String,default:"group",validator:e=>["item","group"].includes(e)},prefix:String,suffix:String,delay:Number,gap:Number,customClass:String,includeSymbols:{type:Boolean,default:!1},appearance:{type:String,default:"default",validator:e=>["default","reverse","custom","simple"].includes(e)},size:{type:String,default:"default",validator:e=>["huge","large","default","small","custom"].includes(e)}},setup(e){const t=e,l=$(!1),a=$([]),i=$([]);bt("TuiDigitalRolling",{delay:u((()=>t.delay)),includeSymbols:u((()=>t.includeSymbols))});Z((()=>t.value),(e=>{(e=>{let l=e+"";t.useGrouping&&(l=l.replace(/^-?\d+/g,(e=>e.replace(/(?=(?!\b)(\d{3})+$)/g,","))));const o=l.split("");i.value=a.value.concat(),a.value=o})(e)}),{immediate:!0}),Z((()=>[t.appearanceLayer,t.appearance,t.size]),(e=>{l.value=!1,ye((()=>{l.value=!0}))}));const o=u((()=>$e("cpt-dr",{...q("delay",t.delay,"ms"),...q("gap",t.gap,{smartAppend:!0,zero:!0})})));return Be((()=>{l.value=!0})),(t,i)=>l.value?(d(),le(Ko,{key:0,class:O(["tui-digital-rolling",`is-appr-layer-${e.appearanceLayer}`,`is-appr-${e.appearance}`,`is-size-${e.size}`,e.customClass,{"is-bordered":e.bordered,"is-drop-shadow":e.dropShadow}]),name:"tui-droll-slide",tag:"div",style:we(o.value)},{default:G((()=>[e.prefix?(d(),h("div",WV,X(e.prefix),1)):T("",!0),(d(!0),h(ge,null,Fe(a.value,((t,l)=>(d(),h(ge,null,[(e.includeSymbols?/[0-9.,]/.test(t):/[0-9]/.test(t))?(d(),le(jV,{class:"tui-droll-item",key:"DT"+l,to:t,interval:e.interval,dislocation:e.dislocation,from:"0"},{default:G((()=>[We(X(t),1)])),_:2},1032,["to","interval","dislocation"])):"."===t||","===t?(d(),h("div",GV,X(t),1)):(d(),h("div",HV,X(t),1))],64)))),256)),e.suffix?(d(),h("div",KV,X(e.suffix),1)):T("",!0)])),_:1},8,["class","style"])):T("",!0)}}),YV=["aria-valuenow"],QV={key:0,class:"tui-pgs-pre"},XV={key:1,class:"tui-pgs-icon"},ZV={key:3,class:"tui-pgs-text"},JV={key:1},ew={class:"tui-pgs-suf"},tw={key:1,class:"tui-pgs-icon"},lw={class:"tui-pgs-text"},nw={key:1},aw={key:0},ow={class:"tui-pgs-info"},iw={key:0,class:"tui-pgs-icon"},sw={key:1,class:"tui-pgs-text"},rw={key:1},uw={key:2,class:"tui-pgs-label"},cw={class:"tui-pgs-info"},dw={key:0,class:"tui-pgs-icon"},Aw={key:1,class:"tui-pgs-text"},fw={key:1},pw={key:2,class:"tui-pgs-label"},gw=Object.assign({name:"TuiProgress"},{__name:"index",props:{tagConfig:Object,tipConfig:Object,delay:Number,index:Number,strokeWidth:Number,duration:Number,width:Number,format:Function,indeterminate:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},stripedFlow:{type:Boolean,default:!1},label:String,labelNewline:Boolean,labelSize:Number,labelWidth:Number,labelPosition:{type:String,default:"default",validator:e=>["default","newline","inside"].includes(e)},displayValue:{type:String,default:"auto",validator:e=>["auto","all"].includes(e)},icon:String,iconSize:Number,iconColor:{type:String,default:null,validator:e=>CSS.supports("color",e)},value:{type:Number,default:0,validator:e=>e>=0},maxValue:{type:Number,default:0,validator:e=>e>=0},unit:String,precision:{type:Number,default:2,validator:e=>Number.isInteger(e)&&e>=0&&e<=100},valueSize:Number,showValue:{type:Boolean,default:!0},valuePosition:{type:String,default:"default",validator:e=>["default","newline","inside"].includes(e)},type:{type:String,default:"bar",validator:e=>["bar","circle","gauge"].includes(e)},status:{type:String,default:null,validator:e=>["normal","success","danger","warning","emphasis","critical"].includes(e)},showStatusIcon:{type:Boolean,default:!0},strokeLinecap:{type:String,default:"round",validator:e=>["butt","round","square"].includes(e)},thresholds:{type:Object,default:null,validator(e){if(!e||"object"!=typeof e)return!1;const t=["normal","success","danger","warning","emphasis","critical"];return!!Object.keys(e).some((e=>t.includes(e)))&&Object.values(e).every((e=>"number"==typeof e&&!isNaN(e)&&e>=0))}},color:{type:String,default:null,validator:e=>CSS.supports("color",e)}},setup(e){const t=e,{$component:l}=ze("$global",{})||{},a=Ee("progress"),i=$(!1),o=Nt(),n=u((()=>l?.has("TuiChartProgress"))),s=u((()=>l?.has("TuiChartRing"))),r=u((()=>l?.has("TuiChartGauge"))),A=u((()=>l?.resolve("TuiChartProgress","TuiFallback")||"TuiFallback")),c=u((()=>l?.resolve("TuiChartRing","TuiFallback")||"TuiFallback")),p=u((()=>l?.resolve("TuiChartGauge","TuiFallback")||"TuiFallback")),g=u((()=>i.value?t.maxValue?Ct.safeFixed(t.value/t.maxValue*100,t.precision):Ct.safeFixed(t.value,t.precision):0)),v=u((()=>{if(t.status)return t.status;if(t.thresholds){const e=Object.entries(t.thresholds).sort(((e,t)=>t[1]-e[1])),l=e.find((([e,l])=>t.value>=l));return l?l[0]:e[e.length-1]?.[0]||"normal"}})),m=$(null),y=u((()=>[$e("cpt-pgs",{...q("dur",t.duration,"s"),...q("strokeW",t.strokeWidth,"px"),...q("labw",t.labelWidth,"px"),...q("labFs",t.labelSize,"px"),...q("valFs",t.valueSize,"px"),...q("isize",t.iconSize,"px"),...q("width",t.width,"px"),...q("mcolor",t.color),...q("icolor",t.iconColor)})])),b=u((()=>{switch(t.status){case"success":return"tui-icon ti-check-circle";case"warning":return"tui-icon ti-alert-circle";case"danger":return"tui-icon ti-alert-triangle"}})),V=u((()=>!(t.labelNewline||!t.index&&!t.icon&&!o.icon&&!t.label&&!o.label))),w=u((()=>!(!t.labelNewline||!(t.index||t.icon||o.icon||t.label||o.label))||!(!t.showValue&&!o.default||"newline"!==t.valuePosition))),x=u((()=>!(!t.showValue&&!o.default||"default"!==t.valuePosition))),k=u((()=>t.showValue?t.format?t.format(t):t.unit&&Ct.isNEG0(t.maxValue)&&"all"==t.displayValue?`${Ct.safeFixed(t.value,t.precision)}${t.unit} ${g.value}%`:t.unit&&Ct.isNEG0(t.maxValue)?`${Ct.safeFixed(t.value,t.precision)}${t.unit}`:`${g.value}%`:""));return Be((()=>{qe.s(a+"_pgsinit",(()=>{i.value=!0}),t.delay||1e3)})),(l,a)=>{const i=ke("TuiTag"),o=ke("TuiTextTip");return d(),h("div",{class:O(["tui-progress",[`is-${e.type}`,v.value?`is-${v.value}`:"",{"is-without-text":!e.showValue,"is-text-inside":"inside"==e.valuePosition,"is-label-newline":e.labelNewline,"has-label":e.label}]]),role:"progressbar","aria-valuenow":g.value,"aria-valuemin":"0","aria-valuemax":"100",style:we(y.value)},["bar"===e.type?(d(),h(ge,{key:0},[w.value?(d(),h("div",QV,[e.labelNewline&&e.index?(d(),le(i,_e({key:0},e.tagConfig,{size:"small"}),{default:G((()=>[We(X(e.index),1)])),_:1},16)):T("",!0),e.labelNewline&&(e.icon||l.$slots.icon)?(d(),h("div",XV,[ee(l.$slots,"icon",{},(()=>[f("i",{class:O(e.icon)},null,2)]))])):T("",!0),e.labelNewline&&(e.label||l.$slots.label)?(d(),h("div",{key:2,class:"tui-pgs-label",ref_key:"pgsLabelRef",ref:m},[me(o,mt(qt(t.tipConfig)),{default:G((()=>[ee(l.$slots,"label",{},(()=>[We(X(e.label),1)]))])),_:3},16)],512)):T("",!0),(e.showValue||l.$slots.default)&&"newline"==e.valuePosition?(d(),h("div",ZV,[ee(l.$slots,"default",{value:g.value},(()=>[e.status&&e.showStatusIcon?(d(),h("i",{key:0,class:O(b.value)},null,2)):(d(),h("span",JV,X(k.value),1))]))])):T("",!0)])):T("",!0),f("div",ew,[(d(),le(gt(A.value),{class:"tui-pgs-bar",value:Number(g.value),precision:e.precision,strokeWidth:e.strokeWidth,duration:e.duration,indeterminate:e.indeterminate,striped:e.striped,stripedFlow:e.stripedFlow,owner:"TuiProgress",missing:n.value?void 0:"TuiChartProgress","package-name":"@techui/extended/miniChart",fallback:"TuiFallback"},el({default:G((()=>[e.showValue&&"inside"==e.valuePosition?(d(),h("span",aw,X(k.value),1)):T("",!0)])),_:2},[V.value?{name:"prefix",fn:G((()=>[e.index?(d(),le(i,_e({key:0},e.tagConfig,{size:"small"}),{default:G((()=>[We(X(e.index),1)])),_:1},16)):T("",!0),e.icon||l.$slots.icon?(d(),h("div",tw,[ee(l.$slots,"icon",{},(()=>[f("i",{class:O(e.icon)},null,2)]))])):T("",!0),e.labelNewline||!e.label&&!l.$slots.label?T("",!0):(d(),h("div",{key:2,class:"tui-pgs-label",ref_key:"pgsLabelRef",ref:m},[me(o,mt(qt(t.tipConfig)),{default:G((()=>[ee(l.$slots,"label",{},(()=>[We(X(e.label),1)]))])),_:3},16)],512))])),key:"0"}:void 0,x.value?{name:"suffix",fn:G((()=>[f("div",lw,[ee(l.$slots,"default",{value:g.value},(()=>[e.status&&e.showStatusIcon?(d(),h("i",{key:0,class:O(b.value)},null,2)):(d(),h("span",nw,X(k.value),1))]))])])),key:"1"}:void 0]),1032,["value","precision","strokeWidth","duration","indeterminate","striped","stripedFlow","missing"]))])],64)):"circle"===e.type?(d(),le(gt(c.value),{key:1,class:"tui-pgs-visual",value:Number(g.value),precision:e.precision,width:e.width,strokeWidth:e.strokeWidth||6,strokeLinecap:e.strokeLinecap,duration:e.duration,owner:"TuiProgress",missing:s.value?void 0:"TuiChartRing","package-name":"@techui/extended/miniChart",fallback:"TuiFallback"},{default:G((()=>[f("div",ow,[e.icon||l.$slots.icon?(d(),h("div",iw,[ee(l.$slots,"icon",{},(()=>[f("i",{class:O(e.icon)},null,2)]))])):T("",!0),e.showValue||l.$slots.default?(d(),h("div",sw,[ee(l.$slots,"default",{value:g.value},(()=>[e.status&&e.showStatusIcon?(d(),h("i",{key:0,class:O(b.value)},null,2)):(d(),h("span",rw,X(k.value),1))]))])):T("",!0),e.label||l.$slots.label?(d(),h("div",uw,[ee(l.$slots,"label",{},(()=>[f("span",null,X(e.label),1)]))])):T("",!0)])])),_:3},8,["value","precision","width","strokeWidth","strokeLinecap","duration","missing"])):(d(),le(gt(p.value),{key:2,class:"tui-pgs-visual",value:Number(g.value),precision:e.precision,width:e.width,strokeWidth:e.strokeWidth||6,strokeLinecap:e.strokeLinecap,duration:e.duration,owner:"TuiProgress",missing:r.value?void 0:"TuiChartGauge","package-name":"@techui/extended/miniChart",fallback:"TuiFallback"},{default:G((()=>[f("div",cw,[e.icon||l.$slots.icon?(d(),h("div",dw,[ee(l.$slots,"icon",{},(()=>[f("i",{class:O(e.icon)},null,2)]))])):T("",!0),e.showValue||l.$slots.default?(d(),h("div",Aw,[ee(l.$slots,"default",{value:g.value},(()=>[e.status&&e.showStatusIcon?(d(),h("i",{key:0,class:O(b.value)},null,2)):(d(),h("span",fw,X(k.value),1))]))])):T("",!0),e.label||l.$slots.label?(d(),h("div",pw,[ee(l.$slots,"label",{},(()=>[f("span",null,X(e.label),1)]))])):T("",!0)])])),_:3},8,["value","precision","width","strokeWidth","strokeLinecap","duration","missing"]))],14,YV)}}}),vw={class:"tui-ppg-item"},hw=Object.assign({name:"TuiProgressPoolGroup"},{__name:"group",props:{gap:Number,labelWidth:Number,items:{type:Array,default:[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["label","value"]);return t||console.warn("TuiProgressPoolGroup Warning! ",l),t}},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},progressPoolConfig:Object,valueSize:{type:Number,default:16},queueInit:{type:Boolean,default:!0}},setup(e){const t=e,l=$([]),a=$(0),i=$([]),o=e=>!!t.queueInit&&e!==a.value,n=e=>{i.value.push(e),a.value<t.items.length-1&&a.value++},s=u((()=>{let e;return e="h"==t.direction?{barDirection:"v",labelPostion:"bottom",valueDirection:"v"}:{barDirection:"h",labelPostion:"left",valueDirection:"h"},{valueSize:t.valueSize,...t.progressPoolConfig,...e}})),r=u((()=>$e("cpt-ppg",{...q("gap",t.gap,"px"),...q("labelW",t.labelWidth,{append:"px",when:t.labelWidth&&"v"==t.direction})})));return Be((()=>{})),al((()=>{})),(t,a)=>{const i=ke("TuiProgressPool");return d(),h("div",{class:O(["tui-progress-pool-group",`is-dir-${e.direction}`,{"has-label":!1}]),style:we(r.value)},[(d(!0),h(ge,null,Fe(e.items,((e,t)=>(d(),h("div",vw,[me(i,_e({ref_for:!0,ref_key:"childRefs",ref:l},{ref_for:!0},s.value,{initHold:o(t),onInited:n,label:e.label,value:e.value}),null,16,["initHold","label","value"])])))),256))],6)}}}),mw={key:0,class:"tui-pp-label"},yw={class:"tui-pp-label-text"},bw={key:0,class:"tui-pp-sub"},Vw={class:"tui-pp-val"},ww={class:"tui-pp-unit"},Cw={class:"tui-pp-val"},Tw={class:"tui-pp-unit"},Sw={key:1,class:"tui-pp-inner-label"},$w={key:1,class:"tui-pp-subval"},kw={class:"tui-pp-val"},qw={class:"tui-pp-unit"},xw=Object.assign({name:"TuiProgressPool"},{__name:"index",props:{index:Number,width:Number,height:Number,valueSize:Number,label:{type:String,required:!0},value:{type:Number,default:0,validator:e=>e>=0},maxValue:{type:Number,default:null,validator:e=>e>=0},precision:{type:Number,default:0},shape:{type:String,default:"square",validator:e=>["square","circle"].includes(e)},colors:{type:[String,Array],default:null,validator:e=>"string"==st(e)?CSS.supports("color",e):"array"==st(e)&&2==e.length&&(e.length>0&&e.every((e=>CSS.supports("color",e))))},borderWidth:{type:Number,default:3},borderGap:{type:Number,default:3},borderRadius:{type:Number,default:5},variant:{type:String,default:"fill",validator:e=>["fill","liquid"].includes(e)},gradientType:{type:String,default:"linear",validator:e=>["linear","radial"].includes(e)},gradientAni:{type:Boolean,default:!1},gradientDuration:Number,waveGap:{type:Number,default:10},waveHeight:{type:Number,default:20},waveSegments:{type:Number,default:6},waveDuration:Number,barDash:{type:Array,default:()=>[5,2]},barDirection:{type:String,default:"h",validator:e=>["h","v"].includes(e)},initHold:{type:Boolean,default:!1},aniDelay:{type:Number,default:2e3},duration:Number,valueDirection:{type:String,default:"h",validator:e=>["h","v"].includes(e)},unit:{type:String,default:""},labelPostion:{type:String,default:"top",validator:e=>["top","left","bottom","right","inner"].includes(e)},displayValue:{type:String,default:"auto",validator:e=>["none","auto","all","allReverse"].includes(e)},indeptSubValue:{type:Boolean,default:!1},status:{type:String,default:null,validator:e=>["normal","success","danger","warning","emphasis","critical"].includes(e)},thresholds:{type:Object,default:null,validator(e){if(!e||"object"!=typeof e)return!1;const t=["normal","success","danger","warning","emphasis","critical"];return!!Object.keys(e).some((e=>t.includes(e)))&&Object.values(e).every((e=>"number"==typeof e&&!isNaN(e)&&e>=0))}},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["inited"],setup(e,{expose:t,emit:l}){const{$optResizeCounter:a,initResizeBy:i,$component:o}=ze("$global",null),n=i(),s=e,r=l,A=Ee("psgPool"),c=$(!1),g=$(!1),v=$(!1),m=$(null),y=$(null),b=$(null),V=je({width:s.width||200,height:s.height||100,parWidth:0,parHeight:0,dustSettled:!1}),w=u((()=>o?.has("TuiChartFill"))),x=u((()=>o?.has("TuiChartLiquid"))),k=u((()=>o?.resolve("TuiChartFill","TuiFallback")||"TuiFallback")),S=u((()=>o?.resolve("TuiChartLiquid","TuiFallback")||"TuiFallback")),C=$(0),B=$(0),z=u((()=>s.maxValue&&s.maxValue>0?s.value/s.maxValue*100:s.value)),N=$("normal"),R=u((()=>{if(V.dustSettled){if(s.status)return s.status;if(s.thresholds){const e=Object.entries(s.thresholds).sort(((e,t)=>t[1]-e[1])),t=e.find((([e,t])=>C.value>=t)),l=t?t[0]:e[e.length-1]?.[0]||"normal";return N.value=l,l}}})),I=u((()=>{let e,t,l,a,i,o;if("none"==s.displayValue)return{mainVal:e,mainUnit:t,subVal:l,subUnit:a};if(s.precision){const e=parseFloat(Number(B.value).toFixed(s.precision)),t=parseFloat(Number(C.value).toFixed(s.precision));o=V.dustSettled?e:Ct.padZero(e,s.precision),i=V.dustSettled?t:Ct.padZero(t,s.precision)}else o=Math.round(B.value),i=Math.round(C.value);return s.maxValue&&s.unit&&"auto"!=s.displayValue?"all"==s.displayValue?(e=i,t=s.unit,l=o,a="%"):"allReverse"==s.displayValue&&(l=i,a=s.unit,e=o,t="%"):s.maxValue&&s.unit?(e=i,t=s.unit):(e=o,t="%"),{mainVal:e,mainUnit:t,subVal:l,subUnit:a}})),M=u((()=>"inner"===s.labelPostion)),P=u((()=>!!s.label&&!M.value)),D=u((()=>!!s.label&&M.value)),_=u((()=>!!I.value.mainUnit)),E=u((()=>"v"===s.barDirection?"v":"h"));u((()=>"h"===s.barDirection?V.height-2*s.borderWidth-2*s.borderGap:V.width-2*s.borderWidth-2*s.borderGap));const j=u((()=>V.width-2*s.borderWidth-2*s.borderGap)),L=u((()=>V.height-2*s.borderWidth-2*s.borderGap));u((()=>"h"===s.barDirection?{x1:"0%",y1:"0%",x2:"100%",y2:"0%"}:{x1:"0%",y1:"100%",x2:"0%",y2:"0%"})),u((()=>"fill"==s.variant?{r:Math.max(V.width,V.height)/1.5,cx:V.width/2,cy:V.height/2,fx:V.width/2,fy:V.height/2,un:"userSpaceOnUse"}:{r:"100%",cx:"50%",cy:"50%",fx:"50%",fy:"50%",un:"objectBoundingBox"})),u((()=>{let e=B.value/100;if(!e)return"";if("h"===s.barDirection){const t=s.borderWidth+s.borderGap,l=V.height/2;return`${t}, ${l} ${t+(V.width-2*s.borderWidth-2*s.borderGap)*e}, ${l+.001}`}{const t=V.width/2,l=V.height-s.borderWidth-s.borderGap;return`${t}, ${l} ${t+.001}, ${l-(V.height-2*s.borderWidth-2*s.borderGap)*e}`}}));const F=u((()=>"square"===s.shape?"rect":"circle")),W=u((()=>0===(s.barDash||[])[0]?"solid":"cell")),H=u((()=>{const e=s.barDash||[5,2],t=Math.max(1,Number(e[0])||5),l=Math.max(0,Number(e[1])||2),a="h"===s.barDirection?j.value:L.value;return Math.max(1,Math.round(a/(t+l)))}));let U=$(0),Y=$(0);function Q(e){b.value||(b.value=0==e?1:e,U.value=C.value,Y.value=B.value);const t=e-b.value,l=s.duration||2e3;if(t<l){const e=(s.maxValue?s.value:z.value)-U.value,a=z.value-Y.value;C.value=U.value+t/l*e,B.value=Y.value+t/l*a,y.value=ot.s(`${A}_ani`,Q)}else C.value=s.maxValue?s.value:z.value,B.value=z.value,V.dustSettled=!0,v.value||(v.value=!0,r("inited",s.index))}function K(){V.dustSettled=!1,ot.c(`${A}_ani`),b.value=null,y.value=ot.s(`${A}_ani`,Q)}Z((()=>[s.value,s.initHold]),(()=>{s.initHold||K()})),Z((()=>a.value),((e,t)=>{"root"==n.value(s.resizeObserver)&&e>t&&J({width:null,height:null})}));const J=({width:e,height:t})=>{s.width&&s.height&&g.value||(V.parWidth=m.value?.clientWidth||100,V.parHeight=m.value?.clientHeight||50,s.width||(V.width=V.parWidth),s.height||(V.height=V.parHeight),g.value||(g.value=!0))},ee=u((()=>"string"==st(s.colors)?{A:s.colors,B:s.colors}:"array"==st(s.colors)?{A:s.colors[0],B:s.colors[1]}:{})),te=u((()=>{const e=ee.value;return $e("cpt-pp",{...q("grad_A",e.A),...q("grad_B",e.B),...q("valFs",s.valueSize,"px"),...q("wdur",s.waveDuration,"ms"),...q("gdur",s.gradientDuration,"ms"),adelay:s.aniDelay+"ms"})}));return u((()=>Math.min(Math.max(B.value,0),100)/100*V.height+5)),u((()=>{const e=5*V.width,t=s.waveHeight,l=e/s.waveSegments;let a=`M 0 ${t}`;for(let e=0;e<s.waveSegments;e++){const i=e*l;a+=` C ${i+.3*l} ${t}, ${i+.4*l} 0, ${i+.5*l} 0`,a+=` C ${i+.6*l} 0, ${i+.7*l} ${t}, ${i+l} ${t}`}return a+=` L ${e} ${V.height+5} L 0 ${V.height+5} Z`,a})),Be((()=>{c.value=!0,s.value&&!s.initHold&&qe.s(A+"_ti",(()=>{K()}),s.aniDelay),s.gradientAni&&s.thresholds&&console.warn("TuiProgressPool Warning! For user experience considerations, 'gradientAni' will be disabled when 'thresholds' are activated.")})),al((()=>{ot.c(`${A}_ani`)})),t({inited:g.value&&v.value}),(t,l)=>{const a=ke("TuiTextTip"),i=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["tui-progress-pool",`is-label-${e.labelPostion}`,`is-${R.value||e.status||N.value}`,{"has-label":e.label}]),style:we(te.value)},[P.value?(d(),h("div",mw,[f("div",yw,[me(a,null,{default:G((()=>[We(X(e.label),1)])),_:1})]),I.value.subUnit&&!e.indeptSubValue?(d(),h("div",bw,[f("span",Vw,X(I.value.subVal),1),f("span",ww,X(I.value.subUnit),1)])):T("",!0)])):T("",!0),Re((d(),h("div",{class:"tui-pp-svg-wrap",ref_key:"svgWrapRef",ref:m},[V.width&&V.height&&g.value&&"fill"===e.variant?(d(),le(gt(k.value),{key:0,width:V.width,height:V.height,percent:B.value,shape:F.value,direction:e.barDirection,mode:W.value,borderWidth:e.borderWidth,borderGap:e.borderGap,radius:e.borderRadius,cellCount:H.value,cellGap:e.barDash?.[1]||2,color:"var(--tui-pp-grad_A)",trackColor:"transparent",showValue:!1,showTitle:!1,showSubValue:!1,owner:"TuiProgressPool",missing:w.value?void 0:"TuiChartFill","package-name":"@techui/extended/miniChart",fallback:"TuiFallback"},null,8,["width","height","percent","shape","direction","mode","borderWidth","borderGap","radius","cellCount","cellGap","missing"])):V.width&&V.height&&g.value?(d(),le(gt(S.value),{key:1,width:V.width,height:V.height,percent:B.value,shape:F.value,direction:e.barDirection,borderWidth:e.borderWidth,borderGap:e.borderGap,radius:e.borderRadius,waveHeight:e.waveHeight,waveGap:e.waveGap,waveSegments:e.waveSegments,waveDuration:(e.waveDuration||1e4)/1e3,color:"var(--tui-pp-grad_A)",trackColor:"transparent",showValue:!1,showTitle:!1,showSubValue:!1,owner:"TuiProgressPool",missing:x.value?void 0:"TuiChartLiquid","package-name":"@techui/extended/miniChart",fallback:"TuiFallback"},null,8,["width","height","percent","shape","direction","borderWidth","borderGap","radius","waveHeight","waveGap","waveSegments","waveDuration","missing"])):T("",!0),_.value||D.value?(d(),h("div",{key:2,class:O(["tui-pp-value",{"is-label-inner":D.value,"is-inner-v":D.value&&"v"===E.value,"is-inner-h":D.value&&"h"===E.value}])},[_.value?(d(),h("div",{key:0,class:O(["tui-pp-main",`is-val-${e.valueDirection}`])},[f("span",Cw,X(I.value.mainVal),1),f("span",Tw,X(I.value.mainUnit),1)],2)):T("",!0),D.value?(d(),h("div",Sw,[me(a,null,{default:G((()=>[We(X(e.label),1)])),_:1})])):T("",!0)],2)):T("",!0)])),[[i,{callback:J,uid:p(A),disabled:"self"!=p(n)(e.resizeObserver)&&g.value}]]),I.value.subUnit&&e.indeptSubValue?(d(),h("div",$w,[f("span",kw,X(I.value.subVal),1),f("span",qw,X(I.value.subUnit),1)])):T("",!0)],6),[[Ye,c.value]])])),_:1})}}}),Pw={key:0,class:"tui-sp-stack is-top"},Bw=["onClick"],zw={key:1,class:"tui-sp-progress"},Rw={class:"tui-sp-anchor"},Nw=["title","onClick"],Iw={key:3,class:"tui-sp-stack is-bottom"},Ow=["onClick"],Dw=Object.assign({name:"TuiStickyPanel"},{__name:"index",props:{modelValue:[String,Number],defaultValue:[String,Number],height:{type:[String,Number],default:420},titleMode:{type:String,default:"passed",validator:e=>["passed","split","single"].includes(e)},offsetTop:{type:[String,Number],default:0},titleHeight:{type:[String,Number],default:42},scrollbarGutter:{type:[String,Number],default:4},maxPinned:{type:Number,default:0},showProgress:Boolean,progressPosition:{type:String,default:"top",validator:e=>["top","right","bottom"].includes(e)},anchor:Boolean,anchorOpacity:Number,dockPanelConfig:{type:Object,default:()=>({})},bordered:{type:Boolean,default:!0},className:String},emits:["update:modelValue","change","scroll","titleClick","anchorClick"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Ee("stickyPanel"),n=$(null),s=$(null),r=$(a.defaultValue??null),A=$(!1),c=$([]),g=$([]),v=$(0),m=je(new Map),y=`${o}_update`,b=u((()=>void 0!==a.modelValue)),V=u((()=>b.value?a.modelValue:r.value)),w=e=>{if("number"==typeof e)return e;const t=Number.parseFloat(e);return Number.isFinite(t)?t:0},x=(e,t)=>{if(e?.el&&t?.el&&e.el!==t.el){const l=e.el.compareDocumentPosition(t.el);if(4&l)return-1;if(2&l)return 1}return(e?.index??0)-(t?.index??0)},k=u((()=>Array.from(m.values()).sort(x))),S=u((()=>a.maxPinned>0?a.maxPinned:1/0)),C=u((()=>{if("single"===a.titleMode)return[];const e=k.value.filter((e=>c.value.includes(`${e.name}`)));return a.maxPinned>0?e.slice(-a.maxPinned):e})),B=u((()=>"split"!==a.titleMode?[]:k.value.filter((e=>g.value.includes(`${e.name}`))))),z=u((()=>B.value.length*w(a.titleHeight))),N=u((()=>$e("cpt-sp",{...q("h",a.height,"smart"),...q("ofsT",a.offsetTop,"smart"),...q("titleH",a.titleHeight,"smart"),...q("scrollbarGutter",a.scrollbarGutter,"smart"),stackBottomH:`${z.value}px`,progress:v.value}))),R=u((()=>({target:n,mode:"partial",placement:"right",partialSize:22,...null!=a.anchorOpacity&&{partialOpacity:a.anchorOpacity},zIndex:90,defaultState:"collapsed",expandTrigger:"hover",draggable:!1,...a.dockPanelConfig}))),I=({section:e,mirrored:t=!1})=>{if(e?.titleSlot)return e.titleSlot({active:`${V.value}`==`${e.name}`,mirrored:t,itemName:e.name});const l={active:`${V.value}`==`${e.name}`,mirrored:t,itemName:e.name};return Dt("span",{class:"tui-spi-title-inner"},[e?.titlePrefixSlot?Dt("span",{class:"tui-spi-title-prefix"},e.titlePrefixSlot(l)):null,Dt("span",{class:"tui-spi-title-text"},e?.title),e?.titleSuffixSlot?Dt("span",{class:"tui-spi-title-suffix"},e.titleSuffixSlot(l)):null])},M=e=>m.get(`${e}`),P=(e,t)=>{`${V.value}`!=`${e}`&&(b.value||(r.value=e),A.value=!0,i("update:modelValue",e),i("change",e,t),ye((()=>{A.value=!1})))},D=e=>k.value.findIndex((t=>`${t.name}`==`${e}`)),_=()=>{ot.s(y,F)},E=(e,t="smooth")=>{const l=M(e),i=s.value;if(!l?.el||!i)return;const o=Math.max(D(e),0),n=Math.min(o,S.value)*w(a.titleHeight),r="single"!==a.titleMode?w(a.offsetTop)+n:w(a.offsetTop);i.scrollTo({top:Math.max(l.el.offsetTop-r,0),behavior:t}),P(e,l)},j=e=>{i("scroll",((e=null)=>{const t=s.value;if(!t)return{event:e,scrollTop:0,scrollHeight:0,clientHeight:0,maxScroll:0,progress:0};const l=Math.max(t.scrollHeight-t.clientHeight,0);return{event:e,scrollTop:t.scrollTop,scrollHeight:t.scrollHeight,clientHeight:t.clientHeight,maxScroll:l,progress:l?t.scrollTop/l:0}})(e)),_()},L=(e,t="title")=>{const l=M(e);i("titleClick",e,l,t),E(e)},F=()=>{const e=s.value;if(!e||0===k.value.length)return;const t=Math.max(e.scrollHeight-e.clientHeight,0);if(v.value=t?e.scrollTop/t:0,"single"===a.titleMode){c.value=[],g.value=[];const t=e.scrollTop+w(a.offsetTop)+w(a.titleHeight)+1;let l=k.value[0];return k.value.forEach((e=>{e.el&&e.el.offsetTop<=t&&(l=e)})),void(l&&P(l.name,l))}const l=[],i=[],o=w(a.offsetTop),n=w(a.titleHeight);k.value.forEach((t=>{if(!t.el)return;const a=o+Math.min(l.length,S.value)*n;t.el.offsetTop-e.scrollTop<=a+1&&e.scrollTop>0&&l.push(`${t.name}`)})),"split"===a.titleMode&&[...k.value].reverse().forEach((t=>{if(!t.el||l.includes(`${t.name}`))return;t.el.offsetTop-e.scrollTop>e.clientHeight-(i.length+1)*n+1&&i.unshift(`${t.name}`)})),c.value=l,g.value=i;const r=l[l.length-1],u=r?m.get(r):k.value[0];u&&P(u.name,u)};return Z((()=>a.modelValue),(e=>{null==e||!s.value||A.value||E(e,"smooth")})),Z(k,(e=>{null!=V.value||0===e.length||ye((()=>P(e[0].name,e[0])))}),{flush:"post"}),Z((()=>[a.titleMode,a.offsetTop,a.titleHeight,a.maxPinned]),(()=>{ye(_)})),dt((()=>{ot.c(y)})),bt("TuiStickyPanel",{props:a,activeValueCPT:V,registerSection:e=>{const t=`${e.name}`,l=m.get(t);m.set(`${e.name}`,{...e,index:l?.index??m.size}),ye(_)},unregisterSection:e=>{m.delete(`${e}`),c.value=c.value.filter((t=>t!==`${e}`)),g.value=g.value.filter((t=>t!==`${e}`))},scrollTo:E,handleTitleClick:L,getSectionIndex:D,getTitleTop:e=>"single"===a.titleMode?xn(a.offsetTop):"",isMirrored:e=>c.value.includes(`${e}`),isBottomMirrored:e=>g.value.includes(`${e}`),requestUpdateMirrors:_}),t({scrollTo:E,getActive:()=>V.value}),(t,l)=>{const a=ke("TuiDockPanel"),r=Je("tui-resize");return Re((d(),h("div",{ref_key:"rootRef",ref:n,class:O(["tui-sticky-panel",`is-title-${e.titleMode}`,`is-progress-${e.progressPosition}`,{"is-bordered":e.bordered,"has-progress":e.showProgress,"has-progress-right":e.showProgress&&"right"===e.progressPosition},e.className]),style:we(N.value)},["single"!==e.titleMode&&C.value.length?(d(),h("div",Pw,[(d(!0),h(ge,null,Fe(C.value,(e=>(d(),h("button",{key:e.name,class:O(["tui-sp-stack-title",{"is-active":`${V.value}`==`${e.name}`}]),type:"button",onClick:t=>L(e.name,"top")},[me(I,{section:e,mirrored:""},null,8,["section"])],10,Bw)))),128))])):T("",!0),e.showProgress?(d(),h("div",zw)):T("",!0),f("div",{ref_key:"wrapRef",ref:s,class:"tui-sp-body",onScroll:j},[ee(t.$slots,"default")],544),e.anchor?(d(),le(a,_e({key:2},R.value,{"class-name":"tui-sp-anchor-dock"}),{default:G((()=>[f("div",Rw,[(d(!0),h(ge,null,Fe(k.value,(e=>(d(),h("button",{key:e.name,class:O(["tui-sp-anchor-item",{"is-active":`${V.value}`==`${e.name}`}]),type:"button",title:e.title,onClick:t=>(e=>{const t=M(e);i("anchorClick",e,t),E(e)})(e.name)},[l[0]||(l[0]=f("i",null,null,-1)),f("span",null,X(e.title),1)],10,Nw)))),128))])])),_:1},16)):T("",!0),"split"===e.titleMode&&B.value.length?(d(),h("div",Iw,[(d(!0),h(ge,null,Fe(B.value,(e=>(d(),h("button",{key:e.name,class:"tui-sp-stack-title",type:"button",onClick:t=>L(e.name,"bottom")},[me(I,{section:e,mirrored:""},null,8,["section"])],8,Ow)))),128))])):T("",!0)],6)),[[r,{callback:_,uid:p(o)}]])}}}),Mw={key:1,class:"tui-spi-title-inner"},_w={key:0,class:"tui-spi-title-prefix"},Ew={class:"tui-spi-title-text"},Lw={key:1,class:"tui-spi-title-suffix"},Fw={class:"tui-spi-content"},jw=Object.assign({name:"TuiStickyPanelItem"},{__name:"item",props:{name:[String,Number],title:String,className:String},setup(e){const t=e,l=ze("TuiStickyPanel",null),a=Ee("stickyPanelItem"),i=$(null),o=$(null),n=Nt(),s=u((()=>t.name??t.title)),r=u((()=>`${l?.activeValueCPT.value}`==`${s.value}`)),A=u((()=>l?.isMirrored(s.value))),c=u((()=>l?.isBottomMirrored(s.value))),g=u((()=>l?.getSectionIndex(s.value)??0)),v=u((()=>({top:l?.getTitleTop(s.value),zIndex:20+g.value}))),m=()=>{l?.handleTitleClick(s.value,"original")},y=(e=t.title)=>{l?.registerSection({name:s.value,title:e||o.value?.innerText||s.value,titleSlot:n.title,titlePrefixSlot:n.titlePrefix,titleSuffixSlot:n.titleSuffix,el:i.value,titleEl:o.value}),l?.requestUpdateMirrors()};return Be((()=>{y()})),Z((()=>t.title),(e=>{y(e)})),dt((()=>{l?.unregisterSection(s.value)})),(t,n)=>{const u=Je("tui-resize");return Re((d(),h("section",{ref_key:"sectionRef",ref:i,class:O(["tui-sticky-panel-item",`is-title-${p(l)?.props.titleMode}`,{"is-active":r.value,"is-mirrored":A.value,"is-bottom-mirrored":c.value},e.className])},[f("button",{ref_key:"titleRef",ref:o,class:"tui-spi-title",type:"button",style:we(v.value),onClick:m},[t.$slots.title?ee(t.$slots,"title",{key:0,active:r.value,mirrored:A.value||c.value,itemName:s.value},(()=>[We(X(e.title),1)])):(d(),h("span",Mw,[t.$slots.titlePrefix?(d(),h("span",_w,[ee(t.$slots,"titlePrefix",{active:r.value,mirrored:A.value||c.value,itemName:s.value})])):T("",!0),f("span",Ew,X(e.title),1),t.$slots.titleSuffix?(d(),h("span",Lw,[ee(t.$slots,"titleSuffix",{active:r.value,mirrored:A.value||c.value,itemName:s.value})])):T("",!0)]))],4),f("div",Fw,[ee(t.$slots,"default",{active:r.value,itemName:s.value})])],2)),[[u,{callback:p(l)?.requestUpdateMirrors,uid:p(a)}]])}}}),Ww=Object.assign({name:"TuiTimeline"},{__name:"index",props:{maxWidth:Number,maxLine:Number,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},timestampPlacement:{type:String,default:"bottom",validator:e=>["top","bottom"].includes(e)},options:{type:Array,default:()=>[],validator:e=>{const{valid:t,message:l}=nl.fieldValid(e,["timestamp","content"]);return t||console.warn("TuiTimeline Warning! ",l),t}},lines:{type:Number,default:2},tipConfig:Object},setup(e){const t=e,l=u((()=>$e("cpt-tl",{...q("maxW",t.maxWidth,"px"),...q("maxLine",t.maxLine)})));return bt("TuiTimeline",{timestampPlc:u((()=>t.timestampPlacement)),direction:u((()=>t.direction)),tipConfig:u((()=>t.tipConfig)),lines:u((()=>t.lines))}),(t,a)=>{const i=ke("TuiTimelineItem");return d(),h("div",{class:O(["",["tui-timeline",`is-${e.direction}`]]),style:we(l.value)},[e.options&&e.options.length?(d(!0),h(ge,{key:0},Fe(e.options,((e,t)=>(d(),le(i,_e({key:t},{ref_for:!0},e),{default:G((()=>[We(X(e.content),1)])),_:2},1040)))),128)):ee(t.$slots,"default",{key:1})],6)}}}),Gw={class:"tui-tli-node-inner"},Hw={key:1,class:"tui-tli-node-dot"},Kw={key:0,class:"tui-tli-time"},Uw={key:1,class:"tui-tli-time"},Yw=Object.assign({name:"TuiTimelineItem"},{__name:"item",props:{timestamp:String,hideTimestamp:Boolean,color:String,icon:String,hollow:Boolean,type:{type:String,default:null,validator:e=>["primary","success","warning","danger","info"].includes(e)},size:{type:String,default:"default",validator:e=>["default","large","small"].includes(e)}},setup(e){const t=e,{tipConfig:l,lines:a,timestampPlc:i,direction:o}=ze("TuiTimeline",null),n=u((()=>({...l.value,lines:a.value}))),s=u((()=>$e("cpt-tli",{...q("dotFc",t.color)}))),r=$(!1);return Be((()=>{r.value=!0})),(t,l)=>{const a=ke("TuiTextTip");return r.value?(d(),h("div",{key:0,class:O(["tui-timeline-item",`is-${p(o)}`]),style:we(s.value)},[f("div",{class:O(["tui-tli-node",`is-size-${e.size}`,e.type&&`is-${e.type}`,(e.icon||t.$slots.icon)&&"has-icon",{"is-hollow":e.hollow}])},[f("div",Gw,[ee(t.$slots,"dot",{},(()=>[e.icon?(d(),h("i",{key:0,class:O(`tui-tli-node-icon ${e.icon}`)},null,2)):(d(),h("div",Hw))]))])],2),f("div",{class:O(["tui-tli-content",`is-time-${p(i)}`])},[e.hideTimestamp||"top"!==p(i)?T("",!0):(d(),h("div",Kw,X(e.timestamp),1)),me(a,_e({class:"tui-tli-text"},n.value),{default:G((()=>[ee(t.$slots,"default")])),_:3},16),e.hideTimestamp||"bottom"!==p(i)?T("",!0):(d(),h("div",Uw,X(e.timestamp),1))],2)],6)):T("",!0)}}}),jt={item:"item",page:"page"},Bn={v:"v",h:"h"},yt={initMount:"init:mount",itemsAdd:"items:add",itemsRemove:"items:remove",layoutResize:"layout:resize",configMode:"config:mode",configSeamless:"config:seamless",configVisibleLength:"config:visibleLength",commandForceUpdate:"command:forceUpdate",commandGoTo:"command:goTo"},zo={[yt.initMount]:{resetCalc:!0},[yt.itemsAdd]:{resetCalc:!1},[yt.itemsRemove]:{resetCalc:!1},[yt.layoutResize]:{resetCalc:!1},[yt.configMode]:{resetCalc:!0},[yt.configSeamless]:{resetCalc:!0},[yt.configVisibleLength]:{resetCalc:!1},[yt.commandForceUpdate]:{resetCalc:!1},[yt.commandGoTo]:{resetCalc:!1}},Qw=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)?Math.max(1,Math.floor(l)):t},Yt=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,Math.floor(l)):t},zn=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?Math.max(0,l):t},Ro=(e,t)=>t?(e%t+t)%t:0,Fl=e=>e===jt.page?jt.page:jt.item,Sl=e=>Qw(e,1),on=e=>Yt(e,0),Xw=e=>e===Bn.h?Bn.h:Bn.v,Zw=({itemsLen:e,visibleLength:t})=>{const l=on(e),a=Sl(t);return Math.ceil(l/a)},Jw=({itemsLen:e,visibleLength:t})=>on(e)<=Sl(t),Yi=({mode:e,seamless:t,visibleLength:l,disabled:a})=>t?Fl(e)===jt.page?1:Sl(l):0,eC=({itemsLen:e=0,visibleLength:t=1,wrapSize:l=0,mode:a=jt.item,seamless:i=!1,disabled:o=null})=>{const n=Fl(a),s=on(e),r=Sl(t),u=zn(l,0),A=o??Jw({itemsLen:s,visibleLength:r}),d=Zw({itemsLen:s,visibleLength:r}),c=u/r;if(A)return{disabled:!0,mode:n,seamless:!!i,itemsLen:s,visibleLength:r,wrapSize:u,itemSize:c,innerSize:u,pageCount:d,pageLen:1,maxRollCalc:0,maxRoll:0,displayTotal:s,initialRollCalc:0};const p=d+(i?2:0),g=n===jt.page?p-1:i?s+r:s-r;return{disabled:!1,mode:n,seamless:!!i,itemsLen:s,visibleLength:r,wrapSize:u,itemSize:c,innerSize:n===jt.page?u*p:c*(s+(i?2*r:0)),pageCount:d,pageLen:p,maxRollCalc:g,maxRoll:n===jt.page?d:g,displayTotal:n===jt.page?d:s,initialRollCalc:Yi({mode:n,seamless:i,visibleLength:r,disabled:!1})}},tC=({orient:e,mode:t,curRollCalc:l,itemSize:a,wrapSize:i})=>{const o=Fl(t)===jt.page?zn(i,0):zn(a,0),n=zn(l,0)*o;return e===Bn.h?`translateX(-${n}px)`:`translateY(-${n}px)`},lC=({curRollCalc:e,maxRollCalc:t,seamless:l,auto:a=!1})=>{const i=Yt(e,0),o=Yt(t,0);return i<o?i+1:i===o&&!l&&a?0:i},nC=({curRollCalc:e,maxRollCalc:t,seamless:l,auto:a=!1})=>{const i=Yt(e,0),o=Yt(t,0);return i>0?i-1:!l&&0===i&&a?o:i},Qi=({index:e,mode:t,seamless:l,visibleLength:a,maxRollCalc:i,displayTotal:o=null,asDisplayIndex:n=!1})=>{const s=Fl(t),r=Sl(a),u=Yt(i,0);if("string"==typeof e)return"frist"===e||"first"===e||"start"===e?Yi({mode:s,seamless:l,visibleLength:r,disabled:!1}):"last"===e||"end"===e?l?s===jt.page?Math.max(1,u-1):Math.max(r,u-r):u:null;if("number"!=typeof e||!Number.isFinite(e))return null;const A=Math.floor(e),d=n&&null!==o?Math.max(0,Yt(o,0)-1):u;return A<0||A>d?0:n&&l?s===jt.page?A+1:A+r:A},aC=({curRollCalc:e,mode:t,seamless:l,visibleLength:a,itemsLen:i,maxRollCalc:o})=>{if(!l)return null;const n=Fl(t),s=Yt(e,0),r=Yt(o,0);return n===jt.page?s>=r?1:0===s?Math.max(1,r-1):null:s>=r?Sl(a):0===s?on(i):null},oC=({curRollCalc:e,mode:t,seamless:l,visibleLength:a,itemsLen:i,pageCount:o})=>{const n=Fl(t),s=Yt(e,0);return l?n===jt.page?Ro(s-1,Yt(o,0)):Ro(s-Sl(a),on(i)):s},iC=({curRollCalc:e,maxRollCalc:t,seamless:l,disabled:a})=>{if(a)return{disablePrev:!0,disableNext:!0};if(l)return{disablePrev:!1,disableNext:!1};const i=Yt(e,0);return{disablePrev:0===i,disableNext:i===Yt(t,0)}},sC=e=>zo[e]||zo[yt.commandForceUpdate],Kl=e=>({width:e?.clientWidth||0,height:e?.clientHeight||0}),bn=(e,t)=>"v"===t?e.height:e.width,rC=e=>"v"===e||"vr"===e?"v":"h",uC=({itemsLen:e,visibleLength:t})=>{const l=Number(t);return e<=(Number.isFinite(l)?Math.max(1,Math.floor(l)):1)},Xi=e=>{if(!e||!e.length)return[];if(e.length>1)return e;const t=e[0]?.children||[];return Array.isArray(t)&&1===t.length&&Array.isArray(t[0]?.children)&&t[0].children.length>1?Xi(t):Array.isArray(t)?t:e},cC=e=>Xi(e.default?.()||[]).filter(Boolean),Aa=(e,t)=>e.map(((e,l)=>pa(e,{key:`${t}-${e.key??"item"}-${l}`}))),dC=({seamless:e,disabled:t,items:l,mode:a,visibleLength:i,itemsLen:o})=>{if(!e||t||!l.length)return[];const n=Math.max(1,Math.floor(Number(i)||1)),s="item"===a?n:o%n||n;return Aa(l.slice(-s),"pre")},AC=({seamless:e,disabled:t,fillData:l,items:a,visibleLength:i})=>{if(!a.length)return[];const o=Math.max(1,Math.floor(Number(i)||1));if(e&&!t)return Aa(a.slice(0,o),"suf");if(!t||!l)return[];const n=Array.from({length:Math.max(0,o-a.length)},((e,t)=>a[t%a.length]));return Aa(n,"fill")},fC=()=>je({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRollCalc:0,maxRollCalc:0,curRoll:0,maxRoll:0,itemsLen:0,pageLen:1,pageCount:0,controlWidth:0,controlHeight:0,headerWidth:0,headerHeight:0,footerWidth:0,footerHeight:0,disablePrev:!0,disableNext:!0,disableRolling:!0}),pC=({props:e,slots:t,uid:l,refs:a,duration:i,interval:o,emit:n})=>{const s=je({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRollCalc:0,maxRollCalc:0,curRoll:0,maxRoll:0,itemsLen:0,pageLen:1,pageCount:0,controlWidth:0,controlHeight:0,headerWidth:0,headerHeight:0,footerWidth:0,footerHeight:0,disablePrev:!0,disableNext:!0,disableRolling:!0}),r=$(!1),A=$(!1),d=$(!1),c=$(!1),p=$(!0),g=$(!1),v=$(null),f=$(0),h=u((()=>Xw(e.direction))),m=u((()=>!!t.controls||e.showControl)),y=u((()=>"overlay"===e.controlLayout)),b=u((()=>m.value&&!y.value)),V=u((()=>m.value&&"reserve"===e.controlLayout&&!s.disableRolling)),w=u((()=>m.value&&!s.disableRolling)),x=u((()=>!!m.value&&!!w.value)),q=u((()=>rC(e.controlDirection))),k=u((()=>q.value===h.value)),S=u((()=>!!t.header)),T=u((()=>!!t.footer)),C=()=>{const e=x.value?Kl(a.controlRef.value):{width:0,height:0};return(e.width||e.height)&&(s.controlWidth=e.width,s.controlHeight=e.height),{width:s.controlWidth,height:s.controlHeight}},B=()=>{const e=S.value?Kl(a.headerRef.value):{width:0,height:0},t=T.value?Kl(a.footerRef.value):{width:0,height:0};return s.headerWidth=e.width,s.headerHeight=e.height,s.footerWidth=t.width,s.footerHeight=t.height,{width:e.width+t.width,height:e.height+t.height}},z=(e=s.disableRolling)=>!!b.value&&!e,O=t=>tC({orient:h.value,mode:e.mode,curRollCalc:t,itemSize:s.rollItemSize,wrapSize:s.rollWrapSize}),N=()=>({state:s,direction:e.direction,autoFlow:e.autoFlow,orient:h.value,mode:e.mode,seamless:e.seamless,autoRolling:e.autoRolling,autoFollow:e.autoFollow,visibleLength:e.visibleLength,fillData:e.fillData,showControl:e.showControl,controlLayout:e.controlLayout,wheelRelease:e.wheelRelease,wheelReleaseDelay:e.wheelReleaseDelay,hasHeader:S.value,hasFooter:T.value,controlType:e.controlType,controlDirection:e.controlDirection,controlAlign:e.controlAlign,trigger:e.trigger,indicatorHasToggle:e.indicatorHasToggle,motionBlur:e.motionBlur,resizeObserver:e.resizeObserver,hoverPause:e.hoverPause,wheelRolling:e.wheelRolling,interceptWheel:e.interceptWheel,interval:o.value,duration:i.value,inited:r.value,isStop:p.value,isPaused:c.value,isTransing:A.value,isMotionBlur:d.value,wheelLock:g.value,rollWrapSize:s.rollWrapSize,rollInnerSize:s.rollInnerSize,rollItemSize:s.rollItemSize,controlWidth:s.controlWidth,controlHeight:s.controlHeight,headerWidth:s.headerWidth,headerHeight:s.headerHeight,footerWidth:s.footerWidth,footerHeight:s.footerHeight,renderRollCalc:f.value,curRollCalc:s.curRollCalc,maxRollCalc:s.maxRollCalc,curRoll:s.curRoll,maxRoll:s.maxRoll,itemsLen:s.itemsLen,pageLen:s.pageLen,pageCount:s.pageCount,disablePrev:s.disablePrev,disableNext:s.disableNext,disableRolling:s.disableRolling});return{state:s,inited:r,isTransing:A,isMotionBlur:d,isPaused:c,isStop:p,wheelLock:g,lastMove:v,renderRollCalc:f,orient:h,shouldReserveControlSpace:V,shouldShowControl:w,shouldMountControl:x,syncControlSize:C,syncFixedSlotSize:B,getControlTakesLayout:z,getWrapSize:(e=z())=>{const t=bn(Kl(a.rollWrapRef.value),h.value),l=bn(B(),h.value);if(!k.value||!e)return t;const i=bn(Kl(a.containerRef.value),h.value),o=bn(C(),h.value);return Math.max(0,i-o-l)||t},getTransformByIndex:O,debugLog:(t,i={})=>{e.debug&&console.info(`[TuiRolling:${l}] ${t}`,{...i,snapshot:{orient:h.value,mode:e.mode,direction:e.direction,autoFlow:e.autoFlow,wrapClientHeight:a.rollWrapRef.value?.clientHeight,wrapClientWidth:a.rollWrapRef.value?.clientWidth,innerClientHeight:a.rollInnerRef.value?.clientHeight,innerClientWidth:a.rollInnerRef.value?.clientWidth,controlClientHeight:a.controlRef.value?.clientHeight,controlClientWidth:a.controlRef.value?.clientWidth,headerClientHeight:a.headerRef.value?.clientHeight,headerClientWidth:a.headerRef.value?.clientWidth,footerClientHeight:a.footerRef.value?.clientHeight,footerClientWidth:a.footerRef.value?.clientWidth,rollWrapSize:s.rollWrapSize,rollInnerSize:s.rollInnerSize,rollItemSize:s.rollItemSize,renderRollCalc:f.value,curRollCalc:s.curRollCalc,maxRollCalc:s.maxRollCalc,curRoll:s.curRoll,maxRoll:s.maxRoll,pageCount:s.pageCount,pageLen:s.pageLen,itemsLen:s.itemsLen,disableRolling:s.disableRolling,transform:O(f.value)}})},syncDisplayState:()=>{s.curRoll=oC({curRollCalc:s.curRollCalc,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,itemsLen:s.itemsLen,pageCount:s.pageCount}),(()=>{const{disablePrev:t,disableNext:l}=iC({curRollCalc:s.curRollCalc,maxRollCalc:s.maxRollCalc,seamless:e.seamless,disabled:s.disableRolling});s.disablePrev=t,s.disableNext=l})()},applyMetrics:e=>{s.rollWrapSize=e.wrapSize,s.rollInnerSize=e.innerSize,s.rollItemSize=e.itemSize,s.maxRollCalc=e.maxRollCalc,s.maxRoll=e.maxRoll,s.itemsLen=e.itemsLen,s.pageLen=e.pageLen,s.pageCount=e.pageCount,s.disableRolling=e.disabled},normalizeTargetIndex:t=>Qi({index:t,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,maxRollCalc:s.maxRollCalc,displayTotal:"page"===e.mode?s.pageCount:s.itemsLen,asDisplayIndex:!0}),getInfo:N,emitUpdate:(e,t)=>{n("update",N(),e,t)}}},Zi=e=>e===yt.itemsAdd||e===yt.itemsRemove,gC=(e,t,l)=>Zi(e)?l>t.itemsLen?yt.itemsAdd:l<t.itemsLen?yt.itemsRemove:e:e,vC=({maxRollCalc:e,disabled:t,mode:l,seamless:a,visibleLength:i})=>t?0:Qi({index:"last",mode:l,seamless:a,visibleLength:i,maxRollCalc:e})??Math.max(0,e),hC=({action:e,autoFollow:t,before:l,metrics:a,mode:i,seamless:o,visibleLength:n,desiredCalc:s})=>{if(!t||!Zi(e))return null;const r=vC({maxRollCalc:a.maxRollCalc,disabled:a.disabled,mode:i,seamless:o,visibleLength:n}),u=Math.max(0,s??l.curRollCalc);return e===yt.itemsAdd?a.disabled?null:r:u>r?r:null},mC=({props:e,state:t,inited:l,isTransing:a,renderRollCalc:i,lastMove:o,syncSlotItems:n,syncControlSize:s,getControlTakesLayout:r,getWrapSize:u,getTransformByIndex:A,syncDisplayState:d,applyMetrics:c,normalizeTargetIndex:p,moveTo:g,getInfo:v,emit:f,emitUpdate:h,debugLog:m})=>{const y=$(!1),b=$(null),V=$(null),w=()=>Math.max(t.curRollCalc,o.value?.to??0,V.value?.target??0),x=(e,t)=>{V.value={target:e,source:t},m("autoFollow:pending",{target:e,source:t})},q=(t,l)=>eC({itemsLen:t,visibleLength:e.visibleLength,wrapSize:u(l),mode:e.mode,seamless:e.seamless}),k=async(o=yt.commandForceUpdate,y={})=>{const b={...sC(o),...y},V={curRollCalc:t.curRollCalc,maxRollCalc:t.maxRollCalc,maxRoll:t.maxRoll,itemsLen:t.itemsLen,pageCount:t.pageCount,disableRolling:t.disableRolling},k=await(async(t,l)=>{await ye();const a=n(),i=w(),o=gC(t,l,a),u=uC({itemsLen:a,visibleLength:e.visibleLength}),A=r(u);s();let d=q(a,A);c(d),await ye(),s();const p=q(a,A);return(p.wrapSize!==d.wrapSize||p.maxRollCalc!==d.maxRollCalc||p.disabled!==d.disabled)&&(d=p,c(d)),{itemsLen:a,desiredCalc:i,action:o,metrics:d}})(o,V),S=hC({action:k.action,autoFollow:e.autoFollow,before:V,metrics:k.metrics,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,desiredCalc:k.desiredCalc});m("action:metrics",{action:k.action,requestedAction:o,before:V,metrics:k.metrics,desiredRollCalc:k.desiredCalc,followTarget:S,nextItemsLen:k.itemsLen}),(({policy:l,action:o,metrics:n,followTarget:s})=>{if(l.resetCalc&&(t.curRollCalc=n.initialRollCalc),null===s&&(t.curRollCalc=Math.min(Math.max(t.curRollCalc,0),t.maxRollCalc)),o===yt.initMount&&null!==e.initIndex&&void 0!==e.initIndex){const l=p(e.initIndex);null!==l&&(t.curRollCalc=l)}a.value||(i.value=t.curRollCalc),d()})({policy:b,action:k.action,metrics:k.metrics,followTarget:S}),await ye(),l.value||(l.value=!0),(e=>{h("RollingAction",e),e===yt.layoutResize&&f("resize",v())})(k.action),null!==S&&t.curRollCalc!==S&&await(async(e,t)=>{if(await ot.w2(),m("autoFollow:before-move",{action:t,followTarget:e,transformTo:A(e),liveWrapSize:u()}),a.value)return x(e,t),!1;const l=g(e,{source:t,allowDisabled:!0});return!l&&a.value&&x(e,t),l})(S,k.action)},S=async(e=yt.commandForceUpdate,t={})=>{if(y.value)return b.value={action:e,options:t},m("action:queued",{action:e}),!1;y.value=!0;try{await k(e,t)}finally{y.value=!1}const l=b.value;return l&&(b.value=null,await S(l.action,l.options)),!0};return{applyAction:S,flushFollow:async()=>{if(!V.value||a.value)return!1;const e=V.value;if(V.value=null,await ot.w(),a.value)return x(e.target,e.source),!1;const l=Math.max(0,Math.min(e.target,t.maxRollCalc));return l!==t.curRollCalc&&g(l,{source:e.source,allowDisabled:!0})},getDesiredCalc:w}},yC=({props:e,state:t,uid:l,tTimer:a,duration:i,fallbackDelay:o,isTransing:n,isMotionBlur:s,renderRollCalc:r,lastMove:u,getTransformByIndex:A,syncDisplayState:d,getInfo:c,emit:p,emitUpdate:g,debugLog:v,flushFollow:f})=>{let h=0;const m=e=>{a.c(`${l}_transition`),n.value=e,e&&a.s(`${l}_transition`,(()=>{b("timer")}),i.value+o)},y=l=>{const a=u.value,i=t.disableRolling?null:aC({curRollCalc:t.curRollCalc,mode:e.mode,seamless:e.seamless,visibleLength:e.visibleLength,itemsLen:t.itemsLen,maxRollCalc:t.maxRollCalc});m(!1),null!==i&&(t.curRollCalc=i),r.value=t.curRollCalc,d(),p("after-roll",{...a||{},from:l,info:c()}),g("RollingAfterRoll",a?.source||l),u.value=null,f()},b=(e="transitionend")=>{n.value&&y(e)};return{moveTo:(o,f={})=>{if(v("moveTo:request",{targetIndex:o,options:f}),!f.allowDisabled&&t.disableRolling||n.value||null==o)return!1;const b=Math.max(0,Math.min(o,t.maxRollCalc));if(b===t.curRollCalc)return!1;const V=f.source||yt.commandGoTo,w=f.animated??!0,x=t.curRollCalc,q={source:V,auto:!!f.auto,from:x,to:b,info:c()};v("moveTo:before",{target:b,source:V,animated:w,transformFrom:A(t.curRollCalc),transformTo:A(b)}),p("before-roll",q),u.value=q,h+=1;const k=h;return w&&i.value>0&&(r.value=x,m(!0),e.motionBlur&&(a.c(`${l}_motion_blur`),s.value=!0,a.s(`${l}_motion_blur`,(()=>{s.value=!1}),"item"===e.mode?150:400))),t.curRollCalc=b,d(),v("moveTo:after-state",{target:b,transform:A(t.curRollCalc)}),p("rolling",t.curRollCalc,c(),V),g("RollingMove",V),!w||i.value<=0?(r.value=b,y("silent")):(async(e,t,l)=>{await ye(),await ot.w(),e===h&&(v("motion:commit",{source:l,target:t,transformTo:A(t)}),r.value=t)})(k,b,V),!0},transitionEnd:b}},bC=()=>({direction:null,startAt:0,released:!1}),VC=e=>Math.abs(e.deltaX)>Math.abs(e.deltaY)?e.deltaX:e.deltaY,Ji=e=>Math.max(0,Number(e)||0),wC=e=>{e.direction=null,e.startAt=0,e.released=!1},CC=({state:e,direction:t,wheelRelease:l,wheelReleaseDelay:a,now:i=Date.now()})=>{if(!l)return e.direction=t,e.released=!1,!0;const o=Ji(a);return o<=0?(e.direction=t,e.released=!0,!1):((e.direction!==t||!e.startAt)&&(e.direction=t,e.startAt=i,e.released=!1),e.released=i-e.startAt>=o,!e.released)},TC=({props:e,state:t,uid:l,tTimer:a,interval:i,isStop:o,isPaused:n,getInfo:s,emit:r,next:u,prev:A})=>{const d=()=>{a.c(`${l}_auto`),!(t.disableRolling||o.value||n.value)&&a.s(`${l}_auto`,(()=>{o.value||n.value||t.disableRolling||("reverse"===e.autoFlow?A(!0):u(!0),d())}),i.value)},c=(e="command")=>!t.disableRolling&&(o.value=!1,n.value=!1,d(),r("play",s(),e),!0),p=(e="command")=>{o.value=!0,a.c(`${l}_auto`),r("stop",s(),e)};return{startTimer:d,scheduleAutoStart:()=>{a.c(`${l}_init`),e.autoRolling&&a.s(`${l}_init`,(()=>{t.disableRolling||(r("start",s()),c("auto"))}),e.delay)},play:c,stop:p,pause:(e="command")=>{o.value||(n.value=!0,a.c(`${l}_auto`),r("pause",s(),e))},resume:(e="command")=>{o.value||(n.value=!1,d(),r("resume",s(),e))},toggle:()=>{o.value?c():p()}}},SC=({props:e,state:t,uid:l,tTimer:a,wheelLock:i,isTransing:o,getInfo:n,emit:s,next:r,prev:u,delay:A})=>{const d=je({direction:null,startAt:0,released:!1});return{handleWheel:c=>{if(!e.wheelRolling||t.disableRolling)return;const p=VC(c);if(!p)return;const g=p>0,v=!t.disableNext,f=!t.disablePrev,h=g?v:f,m=g?"next":"prev",y=!h,b=!!y&&CC({state:d,direction:m,wheelRelease:e.wheelRelease,wheelReleaseDelay:e.wheelReleaseDelay}),V=y&&!b,w=y?b:e.interceptWheel?v||f:h,x={event:c,delta:p,willGoNext:g,direction:m,canScrollForward:v,canScrollBackward:f,canScrollCurrentDirection:h,boundary:y,released:V,intercepted:w,releaseDelay:Ji(e.wheelReleaseDelay),wheelRelease:e.wheelRelease,locked:o.value||i.value,info:n()};w?(c.cancelable&&c.preventDefault(),s("wheel",x),!(y||o.value||i.value)&&(wC(d),i.value=!0,a.s(`${l}_wheel`,(()=>{i.value=!1}),A),g?r(!1):u(!1))):s("wheel",x)}}},$C={key:0,class:"tui-icon tis-play"},kC={key:1,class:"tui-icon tis-pause"},qC={key:0,class:"tui-roll-indics"},xC=["onClick","onMouseenter"],PC={key:0,class:"tui-icon tis-play"},BC={key:1,class:"tui-icon tis-pause"},zC=500,RC=Object.assign({name:"TuiRollingControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},mode:{type:String,default:"item"},controlType:{type:String,default:"auto",validator:e=>["auto","arrow","indicator"].includes(e)},controlAlign:{type:String,default:"center",validator:e=>["start","end","center"].includes(e)},controlDirection:{type:String,default:"v",validator:e=>["v","h","vr","hr"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},indicatorHasToggle:Boolean,isStop:Boolean,reserveSpace:Boolean},setup(e){const t=e;let l=null;const a=u((()=>"item"===t.mode||"arrow"===t.controlType?"arrow":"indicator")),i=u((()=>"arrow"===a.value)),o=u((()=>Math.max(0,Number(t.state?.maxRoll)||0))),n=u((()=>Math.max(0,Number(t.state?.curRoll)||0))),s=u((()=>!!t.state?.disableRolling)),r=u((()=>s.value||!!t.state?.disablePrev)),A=u((()=>s.value||!!t.state?.disableNext)),c=u((()=>"v"===t.controlDirection||"vr"===t.controlDirection)),p=u((()=>c.value?"ti-chevron-left":"ti-chevron-up")),g=u((()=>c.value?"ti-chevron-right":"ti-chevron-down")),v=()=>{l&&(clearTimeout(l),l=null)};return dt(v),(a,u)=>{const c=ke("TuiButton");return d(),h("div",{class:O(["tui-rolling-controls",`is-align-${e.controlAlign}`])},[i.value?(d(),h(ge,{key:0},[me(c,{link:"",disabled:r.value,onClick:u[0]||(u[0]=t=>e.actions.prev())},{default:G((()=>[f("i",{class:O(["tui-icon",p.value])},null,2)])),_:1},8,["disabled"]),me(c,{link:"",disabled:s.value,onClick:u[1]||(u[1]=t=>e.actions.toggle())},{default:G((()=>[e.isStop?(d(),h("i",$C)):(d(),h("i",kC))])),_:1},8,["disabled"]),me(c,{link:"",disabled:A.value,onClick:u[2]||(u[2]=t=>e.actions.next())},{default:G((()=>[f("i",{class:O(["tui-icon",g.value])},null,2)])),_:1},8,["disabled"])],64)):(d(),h(ge,{key:1},[o.value>1||e.reserveSpace?(d(),h("div",qC,[(d(!0),h(ge,null,Fe(o.value,(e=>(d(),h("div",{class:O(["tui-roll-indic",{"is-active":e-1===n.value}]),key:e,onClick:l=>(e=>{"click"===t.trigger&&t.actions.goTo(e)})(e-1),onMouseenter:a=>(e=>{"hover"===t.trigger&&(v(),l=setTimeout((()=>{t.actions.goTo(e)}),zC))})(e-1),onMouseleave:v},null,42,xC)))),128))])):T("",!0),e.indicatorHasToggle?(d(),le(c,{key:1,link:"",disabled:s.value,onClick:u[3]||(u[3]=t=>e.actions.toggle())},{default:G((()=>[e.isStop?(d(),h("i",PC)):(d(),h("i",BC))])),_:1},8,["disabled"])):T("",!0)],64))],2)}}}),NC={class:"tui-roll-pre"},IC={class:"tui-roll-main"},OC={class:"tui-roll-suf"},DC=Object.assign({name:"TuiRollingTrack"},{__name:"track",props:{mode:{type:String,default:"item"},seamless:Boolean,disabled:Boolean,preNodes:{type:Array,default:()=>[]},sufNodes:{type:Array,default:()=>[]}},setup:e=>(t,l)=>e.disabled?(d(),h(ge,{key:1},[ee(t.$slots,"default"),(d(!0),h(ge,null,Fe(e.sufNodes,((e,t)=>(d(),le(gt(e),{key:e.key??`fill-${t}`})))),128))],64)):(d(),h(ge,{key:0},["item"===e.mode?(d(),h(ge,{key:0},[(d(!0),h(ge,null,Fe(e.preNodes,((e,t)=>(d(),le(gt(e),{key:e.key??`pre-${t}`})))),128)),ee(t.$slots,"default"),(d(!0),h(ge,null,Fe(e.sufNodes,((e,t)=>(d(),le(gt(e),{key:e.key??`suf-${t}`})))),128))],64)):(d(),h(ge,{key:1},[e.seamless?(d(),h(ge,{key:0},[f("div",NC,[(d(!0),h(ge,null,Fe(e.preNodes,((e,t)=>(d(),le(gt(e),{key:e.key??`pre-page-${t}`})))),128))]),f("div",IC,[ee(t.$slots,"default")]),f("div",OC,[(d(!0),h(ge,null,Fe(e.sufNodes,((e,t)=>(d(),le(gt(e),{key:e.key??`suf-page-${t}`})))),128))])],64)):ee(t.$slots,"default",{key:1})],64))],64))}),MC={key:1,class:"tui-roll-debug"},_C={class:"tui-roll-debug-item"},EC={class:"tui-roll-debug-item"},LC={class:"tui-roll-debug-item"},FC={class:"tui-roll-debug-item"},jC={class:"tui-roll-debug-item"},WC={class:"tui-roll-debug-item"},GC={class:"tui-roll-debug-item"},HC={class:"tui-roll-debug-item"},KC={class:"tui-roll-debug-item"},UC=500,YC=200,QC=6e3,XC=3e3,ZC=160,JC=80,eT=Object.assign({name:"TuiRolling"},{__name:"index",props:{striped:Boolean,shadow:Boolean,oddBackground:String,evenBackground:String,initIndex:Number,interval:Number,visibleLength:{type:Number,default:4},duration:{type:Number,default:null},hoverPause:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},fillData:{type:Boolean,default:!0},delay:{type:Number,default:1e3},showControl:{type:Boolean,default:!0},controlLayout:{type:String,default:"reserve",validator:e=>["reserve","overlay"].includes(e)},seamless:{type:Boolean,default:!1},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!1},wheelRelease:{type:Boolean,default:!0},wheelReleaseDelay:{type:Number,default:1e3},slotObserver:{type:Boolean,default:!0},controlAlign:{type:String,default:"center",validator:e=>["start","end","center"].includes(e)},controlType:{type:String,default:"auto",validator:e=>["auto","arrow","indicator"].includes(e)},controlDirection:{type:String,default:"v",validator:e=>["v","h","vr","hr"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},indicatorHasToggle:Boolean,direction:{type:String,default:"v",validator:e=>["v","h"].includes(e)},autoFlow:{type:String,default:"forward",validator:e=>["forward","reverse"].includes(e)},mode:{type:String,default:"item",validator:e=>["item","page"].includes(e)},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},motionBlur:{type:Boolean,default:!0}},emits:["start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","resize","wheel"],setup(e,{expose:t,emit:l}){const a=Nt(),i=ze("$global",null),o=i?.$optResizeCounter,n=i?.initResizeBy?.(),s=e,r=l,A=Ee("rollBase"),c=$(null),g=$(null),v=$(null),m=$(null),y=$(null),b=$(null),V=$([]);let w=()=>!1;const x=u((()=>null!==s.duration&&void 0!==s.duration?s.duration:"page"===s.mode?UC:YC)),k=u((()=>s.interval||("page"===s.mode?QC:XC))),S=pC({props:s,slots:a,uid:A,refs:{containerRef:c,rollWrapRef:g,rollInnerRef:v,controlRef:m,headerRef:y,footerRef:b},duration:x,interval:k,emit:r}),{state:C,inited:B,isTransing:z,isMotionBlur:N,isPaused:R,isStop:I,wheelLock:M,lastMove:P,renderRollCalc:D,orient:_,shouldReserveControlSpace:E,shouldShowControl:j,shouldMountControl:L,syncControlSize:F,getControlTakesLayout:W,getWrapSize:H,getTransformByIndex:U,debugLog:Y,syncDisplayState:Q,applyMetrics:K,normalizeTargetIndex:J,getInfo:te,emitUpdate:ae}=S,ie=u((()=>dC({seamless:s.seamless,disabled:C.disableRolling,items:V.value,mode:s.mode,visibleLength:s.visibleLength,itemsLen:C.itemsLen}))),oe=u((()=>AC({seamless:s.seamless,disabled:C.disableRolling,fillData:s.fillData,items:V.value,visibleLength:s.visibleLength}))),ne=u((()=>$e("cpt-roll",{tsf:U(D.value),tsfTrs:z.value?`transform ${x.value}ms`:"none",itemSize:`${C.rollItemSize}px`,...q("wrapSize",C.rollWrapSize,"px"),...q("contSize",C.rollInnerSize,"px"),...s.striped?q("oddBg",s.oddBackground):{},...s.striped?q("evenBg",s.evenBackground):{}}))),se=e=>e&&"none"!==e?n?.value?n.value(e):"global"===e?"root":"self":"none",re=()=>cC(a),{moveTo:ue,transitionEnd:Ae}=yC({props:s,state:C,uid:A,tTimer:qe,duration:x,fallbackDelay:80,isTransing:z,isMotionBlur:N,renderRollCalc:D,lastMove:P,getTransformByIndex:U,syncDisplayState:Q,getInfo:te,emit:r,emitUpdate:ae,debugLog:Y,flushFollow:()=>w()}),de=mC({props:s,state:C,inited:B,isTransing:z,renderRollCalc:D,lastMove:P,syncSlotItems:()=>(V.value=re(),V.value.length),syncControlSize:F,getControlTakesLayout:W,getWrapSize:H,getTransformByIndex:U,syncDisplayState:Q,applyMetrics:K,normalizeTargetIndex:J,moveTo:ue,getInfo:te,emit:r,emitUpdate:ae,debugLog:Y}),{applyAction:ce}=de;w=de.flushFollow;const pe=(e=!1)=>ue(lC({curRollCalc:C.curRollCalc,maxRollCalc:C.maxRollCalc,seamless:s.seamless,auto:e}),{source:e?"auto:next":"command:next",auto:e}),ge=(e=!1)=>ue(nC({curRollCalc:C.curRollCalc,maxRollCalc:C.maxRollCalc,seamless:s.seamless,auto:e}),{source:e?"auto:prev":"command:prev",auto:e}),{scheduleAutoStart:ve,play:fe,stop:he,pause:me,resume:ye,toggle:be}=TC({props:s,state:C,uid:A,tTimer:qe,interval:k,isStop:I,isPaused:R,getInfo:te,emit:r,next:pe,prev:ge}),Ve=(e,t={})=>{const l="boolean"==typeof t?{silent:t}:t;return ue(J(e),{source:l.source||yt.commandGoTo,animated:!l.silent})},xe=()=>Ve("start"),ke=()=>Ve("end"),Se=(e=yt.commandForceUpdate)=>ce(e),Te=()=>{s.hoverPause&&me("hover")},Ce=()=>{s.hoverPause&&ye("hover")},{handleWheel:Oe}=SC({props:s,state:C,uid:A,tTimer:qe,wheelLock:M,isTransing:z,getInfo:te,emit:r,next:pe,prev:ge,delay:ZC}),Ne=()=>{ce(yt.layoutResize)},Ie={play:fe,stop:he,pause:me,resume:ye,toggle:be,prev:ge,next:pe,goTo:Ve,forceUpdate:Se,scrollToStart:xe,scrollToEnd:ke},Me=u((()=>({state:C,info:te(),actions:Ie,disabled:{rolling:C.disableRolling,prev:C.disablePrev,next:C.disableNext},current:C.curRoll,total:C.maxRoll,isStop:I.value,isPaused:R.value,isTransing:z.value,isMotionBlur:N.value})));return Z((()=>s.mode),(()=>{ce(yt.configMode)})),Z((()=>s.visibleLength),(()=>{ce(yt.configVisibleLength)})),Z((()=>s.direction),(()=>{ce(yt.layoutResize)})),Z((()=>[s.controlLayout,s.showControl,s.controlType,s.controlDirection,s.indicatorHasToggle]),(()=>{ce(yt.layoutResize)})),Z((()=>s.initIndex),(e=>{!B.value||null==e||Ve(e,{silent:!0,source:"prop:initIndex"})})),Z((()=>s.autoRolling),(e=>{e?ve():he("prop:autoRolling")})),Z((()=>C.disableRolling),((e,t)=>{!B.value||e||!1===t||!s.autoRolling||ve()})),Z((()=>s.seamless),(()=>{ce(yt.configSeamless)})),Z((()=>o?.value),((e,t)=>{"root"===se(s.resizeObserver)&&(e||0)>(t||0)&&Ne()})),Z((()=>C.curRoll),((e,t)=>{!B.value||e===t||r("change",e,te())})),ln((()=>{if(!s.slotObserver||!B.value)return;const e=re(),t=e.length;t!==C.itemsLen?ce(t>C.itemsLen?yt.itemsAdd:yt.itemsRemove):V.value=e})),Be((async()=>{await ce(yt.initMount),ve()})),dt((()=>{qe.c(`${A}_auto`),qe.c(`${A}_init`),qe.c(`${A}_wheel`),qe.c(`${A}_transition`),qe.c(`${A}_motion_blur`)})),t({state:C,play:fe,stop:he,pause:me,resume:ye,toggle:be,prev:ge,next:pe,goTo:Ve,getInfo:te,getState:te,forceUpdate:Se,isRolling:()=>z.value,isDisabled:()=>C.disableRolling,scrollToStart:xe,scrollToEnd:ke}),(t,l)=>{const a=Je("tui-resize");return d(),h("div",{class:O(["tui-rolling","tui-rolling-base",`is-orient-${p(_)}`,`is-mode-${e.mode}`,`is-ctrl-dir-${e.controlDirection}`,{"is-striped":e.striped,"is-shadow":e.shadow,"is-disabled":p(C).disableRolling,"is-initing":!p(B)}]),ref_key:"containerRef",ref:c,onMouseenter:Te,onMouseleave:Ce,onWheel:l[1]||(l[1]=(...e)=>p(Oe)&&p(Oe)(...e))},[f("div",{class:O(["tui-rolling-main",`is-orient-${p(_)}`])},[t.$slots.header?Re((d(),h("div",{key:0,class:"tui-rolling-fixed tui-rolling-header",ref_key:"headerRef",ref:y},[ee(t.$slots,"header",mt(qt(Me.value)))])),[[a,{callback:Ne,uid:`${p(A)}_header`,disabled:!p(B)}]]):T("",!0),Re((d(),h("div",{class:"tui-rolling-wrap",ref_key:"rollWrapRef",ref:g},[f("div",{class:O(["tui-rolling-inner",`is-orient-${p(_)}`,`is-mode-${e.mode}`,{"is-seamless":e.seamless,"is-motion-blur":e.motionBlur&&p(N)}]),style:we(ne.value),ref_key:"rollInnerRef",ref:v,onTransitionend:l[0]||(l[0]=Ze((e=>p(Ae)("transitionend")),["self"]))},[p(B)?(d(),le(DC,{key:0,mode:e.mode,seamless:e.seamless,disabled:p(C).disableRolling,preNodes:ie.value,sufNodes:oe.value},{default:G((()=>[ee(t.$slots,"default")])),_:3},8,["mode","seamless","disabled","preNodes","sufNodes"])):T("",!0)],38)])),[[a,{callback:Ne,uid:p(A),disabled:"self"!==se(e.resizeObserver)&&p(B)}]]),t.$slots.footer?Re((d(),h("div",{key:1,class:"tui-rolling-fixed tui-rolling-footer",ref_key:"footerRef",ref:b},[ee(t.$slots,"footer",mt(qt(Me.value)))])),[[a,{callback:Ne,uid:`${p(A)}_footer`,disabled:!p(B)}]]):T("",!0)],2),p(L)?(d(),h("div",{key:0,class:O(["tui-rolling-control-host",{"tui-rolling-control-slot":t.$slots.controls,"is-control-reserve":p(E),"is-control-overlay":"overlay"===e.controlLayout,"is-control-hidden":!p(j)}]),ref_key:"controlRef",ref:m},[t.$slots.controls?ee(t.$slots,"controls",mt(_e({key:0},Me.value))):e.showControl?(d(),le(RC,{key:1,state:p(C),actions:Ie,mode:e.mode,controlType:e.controlType,controlAlign:e.controlAlign,controlDirection:e.controlDirection,trigger:e.trigger,indicatorHasToggle:e.indicatorHasToggle,isStop:p(I),reserveSpace:p(E)},null,8,["state","mode","controlType","controlAlign","controlDirection","trigger","indicatorHasToggle","isStop","reserveSpace"])):T("",!0)],2)):T("",!0),e.debug?(d(),h("div",MC,[f("div",_C,"curRoll:"+X(p(C).curRoll),1),f("div",EC,"curRollCalc:"+X(p(C).curRollCalc),1),f("div",LC,"renderRollCalc:"+X(p(D)),1),f("div",FC,"maxRoll:"+X(p(C).maxRoll),1),f("div",jC,"maxRollCalc:"+X(p(C).maxRollCalc),1),f("div",WC,"itemsLen:"+X(p(C).itemsLen),1),f("div",GC,"pageLen:"+X(p(C).pageLen),1),f("div",HC,"visibleLength:"+X(e.visibleLength),1),f("div",KC,"control:"+X(p(C).controlWidth)+"x"+X(p(C).controlHeight),1)])):T("",!0)],34)}}}),tT={class:"tui-rolling-item tui-rolling-base-item"},lT=Object.assign({name:"TuiRollingItem"},{__name:"item",setup:e=>(e,t)=>(d(),h("div",tT,[ee(e.$slots,"default")]))}),es=["normal","success","danger","warning","emphasis","critical"],ts=["default","invert","info","primary","success","warning","danger","emphasis"],xa=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},nT=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)&&l>=0?l:t},ls=(e=[])=>e.flatMap((e=>Array.isArray(e?.children)?ls(e.children):[e])),aT=xa,oT=e=>ls(e||[]).map((e=>e?.props||{})).filter((e=>e&&Object.prototype.hasOwnProperty.call(e,"value"))),iT=(e=[])=>e.reduce(((e,t)=>Math.max(e,nT(t?.value))),0),sT=({visibleLength:e,showControl:t}={})=>{const l=t?30:0;return 72*xa(e,5)+l},rT=({props:e}={})=>{const t=e.rollingConfig||{};return{...t,direction:"v",mode:e.mode,visibleLength:xa(e.visibleLength,5),initIndex:t.initIndex??null,debug:e.debug,showControl:e.showControl,seamless:e.seamless,interval:e.interval??t.interval,motionBlur:e.motionBlur,duration:e.duration??t.duration??null,delay:e.delay??t.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,hoverPause:e.hoverPause,striped:e.striped,...e.striped&&null!=e.oddBackground?{oddBackground:e.oddBackground}:{},...e.striped&&null!=e.evenBackground?{evenBackground:e.evenBackground}:{},resizeObserver:e.resizeObserver,fillData:!1,slotObserver:!0,controlLayout:t.controlLayout??"reserve",controlDirection:t.controlDirection??"v"}},Vn=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollInnerSize=t.rollInnerSize??e.rollInnerSize,e.rollItemSize=t.rollItemSize??e.rollItemSize,e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.disablePrev=t.disablePrev??e.disablePrev,e.disableNext=t.disableNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.itemsLen=t.itemsLen??e.itemsLen,e.pageLen=t.pageLen??e.pageLen,e.disableRolling=t.disableRolling??e.disableRolling},uT=Object.assign({name:"TuiRollingProgress"},{__name:"index",props:{interval:Number,visibleLength:{type:Number,default:5,validator:e=>e>0},mode:{type:String,default:"item",validator:e=>["page","item"].includes(e)},showControl:{type:Boolean,default:!0},seamless:{type:Boolean,default:!0},duration:{type:Number,default:null},delay:{type:Number,default:1e3},debug:{type:Boolean,default:!1},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},hoverPause:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},striped:{type:Boolean,default:!1},oddBackground:String,evenBackground:String,size:{type:String,default:null,validator:e=>null===e||["tiny","small","default","large","huge"].includes(e)},hasIndex:{type:Boolean,default:!1},showRankings:{type:Boolean,default:!1},labelTipConfig:Object,indexTagConfig:Object,progressConfig:{type:Object,default:()=>({})},rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Nt(),n=Ee("rollProgress"),s=$(null),r=$(!1),A=$([]),c=$(null),p=je({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,itemsLen:0,pageLen:1,disablePrev:!1,disableNext:!1,disableRolling:!1}),g=u((()=>aT(a.visibleLength,5))),v=u((()=>a.showControl&&A.value.length>g.value)),f=u((()=>iT(A.value))),m=u((()=>a.progressConfig?.maxValue??f.value)),y=u((()=>rT({props:a}))),b=u((()=>$e("cpt-rollpg",{outerH:`${sT({visibleLength:g.value,showControl:v.value})}px`}))),V=(e,t,l)=>{c.value=e,Vn(p,e),((e,t={})=>{a.debug&&console.info(`[TuiRollingProgress:${n}] ${e}`,t)})("update",{info:e,from:t,action:l,maxValue:m.value}),i("update",e,t,l)},w=e=>{c.value=e,Vn(p,e),i("start",e)},x=(e,t,l)=>{c.value=t,Vn(p,t),i("rolling",e,t,l)},q=(e,t)=>{c.value=t,Vn(p,t),i("change",e,t)},k=e=>i("before-roll",e),S=e=>i("after-roll",e),C=(e,t)=>i("play",e,t),B=(e,t)=>i("stop",e,t),z=(e,t)=>i("pause",e,t),N=(e,t)=>i("resume",e,t),R=e=>i("wheel",e),I=()=>s.value?.getInfo?.()||c.value||{state:p};return bt("TuiRollProgr",{hasIndex:u((()=>a.hasIndex)),showRankings:u((()=>a.showRankings)),size:u((()=>a.size)),progressConfig:u((()=>a.progressConfig||{})),indexTagConfig:u((()=>a.indexTagConfig)),labelTipConfig:u((()=>a.labelTipConfig)),maxValue:m}),ln((()=>{A.value=oT(o.default?.()||[]),A.value})),Be((()=>{r.value=!0})),t({state:p,play:(...e)=>s.value?.play?.(...e),stop:(...e)=>s.value?.stop?.(...e),pause:(...e)=>s.value?.pause?.(...e),resume:(...e)=>s.value?.resume?.(...e),toggle:(...e)=>s.value?.toggle?.(...e),prev:(...e)=>s.value?.prev?.(...e),next:(...e)=>s.value?.next?.(...e),goTo:(...e)=>s.value?.goTo?.(...e),getInfo:I,getState:I,forceUpdate:(...e)=>s.value?.forceUpdate?.(...e),isRolling:()=>s.value?.isRolling?.()||!1,isDisabled:()=>s.value?.isDisabled?.()||!1,scrollToStart:(...e)=>s.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>s.value?.scrollToEnd?.(...e)}),(e,t)=>{const l=ke("TuiRolling");return d(),h("div",{class:O(["tui-rolling-progress",{"is-initing":!r.value}]),style:we(b.value)},[r.value?(d(),le(l,_e({key:0},y.value,{class:"tui-rollpg-rolling",ref_key:"rollingRef",ref:s,onStart:w,onRolling:x,onUpdate:V,onChange:q,onBeforeRoll:k,onAfterRoll:S,onPlay:C,onStop:B,onPause:z,onResume:N,onWheel:R}),{default:G((()=>[ee(e.$slots,"default")])),_:3},16)):T("",!0)],6)}}}),cT={class:"tui-rollpg-prefix"},dT={class:"tui-rollpg-label"},AT=Object.assign({name:"TuiRollingProgressChartProgressShell"},{__name:"progress",props:{label:{type:String,required:!0},value:{type:Number,required:!0},icon:{type:String,default:null},displayIndex:{type:Number,default:null},tagConfig:Object,labelTipConfig:Object,status:{type:String,default:null,validator:e=>null===e||es.includes(e)},type:{type:String,default:null,validator:e=>null===e||ts.includes(e)},color:{type:String,default:null,validator:e=>null===e||CSS.supports("color",e)},showStatusIcon:{type:Boolean,default:null}},setup(e){const t=e,l=ze("TuiRollProgr",null),{$component:a}=ze("$global",{})||{},i=u((()=>a?.has("TuiChartProgress"))),o=u((()=>a?.resolve("TuiChartProgress","TuiFallback")||"TuiFallback")),n=u((()=>{const e=l?.progressConfig?.value||{},a=e.tooltipFormatter,o={size:"default",layout:"stack",showValue:!0,valueMode:"percent",valuePosition:"suffix",suffixAlign:"end",...e,...null!=l?.size?.value?{size:l.size.value}:{}};return{...o,...i.value?{}:{owner:"TuiRollingProgress",missing:"TuiChartProgress",packageName:"@techui/extended/miniChart",fallback:"TuiFallback"},label:null,value:t.value,maxValue:e.maxValue??l?.maxValue?.value??0,showStatusIcon:t.showStatusIcon??e.showStatusIcon??!1,tooltipFormatter:e=>{const l={...e,label:t.label};if(a)return a(l);const i=((e,t)=>{const l=t.valueMode||"percent",a=e.unit||"",i=a?` ${a}`:"";return"value"===l?`${e.value}${i}`:"all"===l?`${e.value}${i} ${e.percent}${t.percentUnit||"%"}`:`${e.percent}${t.percentUnit||"%"}`})(l,o);return t.label?`${t.label}: ${i}`:i},...null!=t.status?{status:t.status}:{},...null!=t.type?{type:t.type}:{},...null!=t.color?{color:t.color}:{}}}));return(t,l)=>{const a=ke("TuiTag"),i=ke("TuiTextTip");return d(),le(gt(o.value),_e({class:"tui-rollpg-chart"},n.value),{prefix:G((()=>[f("div",cT,[null!==e.displayIndex?(d(),le(a,_e({key:0},e.tagConfig,{class:"tui-rollpg-index",size:"small"}),{default:G((()=>[We(X(e.displayIndex),1)])),_:1},16)):T("",!0),e.icon?(d(),h("i",{key:1,class:O(["tui-cprogress-custom-icon",e.icon])},null,2)):T("",!0),f("div",dT,[me(i,mt(qt(e.labelTipConfig)),{default:G((()=>[We(X(e.label),1)])),_:1},16)])])])),_:1},16)}}}),fT=Object.assign({name:"TuiRollingProgressItem"},{__name:"item",props:{index:Number,label:{type:String,required:!0},value:{type:Number,required:!0},icon:{type:String,default:null},status:{type:String,default:null,validator:e=>null===e||es.includes(e)},type:{type:String,default:null,validator:e=>null===e||ts.includes(e)},color:{type:String,default:null,validator:e=>null===e||CSS.supports("color",e)},showStatusIcon:{type:Boolean,default:null}},setup(e){const t=e,l=ze("TuiRollProgr",null),a=u((()=>{if(!l?.hasIndex?.value)return null;const e=Number(t.index);return Number.isFinite(e)&&e>=0?Math.floor(e)+1:null})),i=u((()=>{if(!l?.showRankings?.value)return null;switch(Number(t.index)){case 0:return"danger";case 1:return"warning";case 2:return"success";default:return null}})),o=u((()=>({...l?.indexTagConfig?.value||{},...i.value&&{type:i.value}}))),n=u((()=>({...l?.labelTipConfig?.value||{}})));return(t,l)=>{const i=ke("TuiRollingItem");return d(),le(i,{class:"tui-rolling-progress-item"},{default:G((()=>[me(AT,{label:e.label,value:e.value,icon:e.icon,"display-index":a.value,"tag-config":o.value,"label-tip-config":n.value,status:e.status,type:e.type,color:e.color,showStatusIcon:e.showStatusIcon},null,8,["label","value","icon","display-index","tag-config","label-tip-config","status","type","color","showStatusIcon"])])),_:1})}}}),pT={key:0,class:"tui-rollsp-arrows"},gT={key:1,class:"tui-rollsp-indic-wrap"},vT={key:0,class:"tui-rollsp-pager"},hT={key:1,class:"tui-rollsp-indics"},mT=["onClick","onMouseenter"],yT=500,bT=Object.assign({name:"TuiRollingSplitControl"},{__name:"control",props:{state:{type:Object,required:!0},actions:{type:Object,required:!0},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},showArrow:{type:Boolean,default:!0},showIndicator:{type:Boolean,default:!0},pager:{type:[Boolean,String],default:"auto",validator:e=>!0===e||!1===e||"auto"===e},controlPosition:{type:String,default:"float",validator:e=>["float","start","end","both"].includes(e)},controlFloatPlacement:{type:String,default:"edge",validator:e=>["outside","inside","edge"].includes(e)},controlPlacement:{type:String,default:"axis",validator:e=>["axis","cross"].includes(e)},paginationPosition:{type:String,default:"float",validator:e=>["inline","float"].includes(e)}},setup(e){const t=e;let l=null;const a=u((()=>Math.max(0,Number(t.state?.curRoll)||0))),i=u((()=>Math.max(0,Number(t.state?.maxRoll)||Number(t.state?.pageCount)||0))),o=u((()=>!!t.state?.disableRolling)),n=u((()=>o.value||!!t.state?.disablePrev)),s=u((()=>o.value||!!t.state?.disableNext)),r=u((()=>!0===t.pager||!1!==t.pager&&!t.showIndicator)),A=u((()=>i.value>1&&(t.showIndicator||r.value))),c=u((()=>"v"===t.direction&&"axis"===t.controlPlacement||"h"===t.direction&&"cross"===t.controlPlacement)),p=u((()=>c.value?"ti-angle-up":"ti-angle-left")),g=u((()=>c.value?"ti-angle-down":"ti-angle-right")),v=()=>{l&&(clearTimeout(l),l=null)},m=e=>{o.value||t.actions.goTo(e)};return dt(v),(u,c)=>(d(),h("div",{class:O(["tui-rolling-split-control",`is-dir-${e.direction}`,`is-ctrl-pos-${e.controlPosition}`,`is-ctrl-float-${e.controlFloatPlacement}`,`is-plcm-${e.controlPlacement}`,`is-page-pos-${e.paginationPosition}`,{"is-disabled":o.value}])},[e.showArrow&&i.value>1?(d(),h("div",pT,[f("div",{class:O(["tui-rollsp-arrow","is-prev",{"is-disabled":n.value}]),onClick:c[0]||(c[0]=t=>!n.value&&e.actions.prev())},[f("i",{class:O(["tui-icon",p.value])},null,2)],2),f("div",{class:O(["tui-rollsp-arrow","is-next",{"is-disabled":s.value}]),onClick:c[1]||(c[1]=t=>!s.value&&e.actions.next())},[f("i",{class:O(["tui-icon",g.value])},null,2)],2)])):T("",!0),A.value?(d(),h("div",gT,[r.value?(d(),h("div",vT,X(a.value+1)+"/"+X(i.value),1)):e.showIndicator?(d(),h("div",hT,[(d(!0),h(ge,null,Fe(i.value,(e=>(d(),h("div",{key:e,class:O(["tui-rollsp-indic",{"is-active":e-1===a.value}]),onClick:l=>(e=>{"click"===t.trigger&&m(e)})(e-1),onMouseenter:a=>(e=>{"hover"===t.trigger&&(v(),l=setTimeout((()=>{m(e)}),yT))})(e-1),onMouseleave:v},null,42,mT)))),128))])):T("",!0)])):T("",!0)],2))}}),ns=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},VT=ns,wT=(e=[],t=1)=>{const l=Array.isArray(e)?e:[],a=ns(t),i=[];for(let e=0;e<l.length;e+=a)i.push(l.slice(e,e+a));return i},CT=({item:e,index:t,rowKey:l}={})=>"function"==typeof l?l(e,t):l&&e&&"object"==typeof e?e[l]??t:e&&"object"==typeof e?e.id??e.key??t:`${typeof e}-${String(e)}-${t}`,TT=e=>null==e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?e:"object"!=typeof e?String(e):e.label??e.title??e.name??e.value??"",ST=({direction:e,nativeControlDirection:t}={})=>t&&"auto"!==t?t:"v"===e?"h":"v",$T=({controlPosition:e}={})=>e&&"auto"!==e?e:"float",kT=({controlPlacement:e}={})=>e&&"auto"!==e?e:"axis",qT=({paginationPosition:e}={})=>e&&"auto"!==e?e:"float",xT=({props:e,initIndex:t,nativeControlDirection:l}={})=>{const a=e.rollingConfig||{},i="native"===e.controlMode&&e.showControl;return{...a,direction:e.direction,mode:"page",visibleLength:1,initIndex:t,debug:e.debug,showControl:i,controlType:e.nativeControlType,controlLayout:e.nativeControlLayout,controlAlign:e.nativeControlAlign,controlDirection:l,trigger:e.trigger,indicatorHasToggle:e.indicatorHasToggle,seamless:!1,interval:e.interval??a.interval,motionBlur:e.motionBlur,duration:e.duration??a.duration??null,delay:e.delay??a.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,interceptWheel:e.interceptWheel,wheelRelease:e.wheelRelease,wheelReleaseDelay:e.wheelReleaseDelay,hoverPause:e.hoverPause,resizeObserver:e.resizeObserver,fillData:!1,slotObserver:!0}},wn=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.rollInnerSize=t.rollInnerSize??e.rollInnerSize,e.rollItemSize=t.rollItemSize??e.rollItemSize,e.disablePrev=t.disablePrev??e.disablePrev,e.disableNext=t.disableNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.maxRoll=t.maxRoll??e.maxRoll,e.itemsLen=t.itemsLen??e.itemsLen,e.pageLen=t.pageLen??e.pageLen,e.pageCount=t.pageCount??e.pageCount,e.disableRolling=t.disableRolling??e.disableRolling},PT={key:1,class:"tui-rollsp-empty"},BT=Object.assign({name:"TuiRollingSplit"},{__name:"index",props:{data:{type:Array,default:()=>[]},pageSize:{type:Number,default:4,validator:e=>e>0},rowKey:{type:[String,Function],default:null},modelValue:Number,initIndex:{type:Number,default:0},width:[Number,String],height:[Number,String],minHeight:[Number,String],pageClass:{type:[String,Array,Object],default:null},pageStyle:{type:[String,Array,Object],default:null},itemClass:{type:[String,Array,Object],default:null},itemStyle:{type:[String,Array,Object],default:null},emptyText:{type:String,default:"No Data"},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},controlMode:{type:String,default:"native",validator:e=>["native","custom","none"].includes(e)},showControl:{type:Boolean,default:!0},nativeControlType:{type:String,default:"indicator",validator:e=>["auto","arrow","indicator"].includes(e)},nativeControlLayout:{type:String,default:"reserve",validator:e=>["reserve","overlay"].includes(e)},nativeControlAlign:{type:String,default:"center",validator:e=>["start","end","center"].includes(e)},nativeControlDirection:{type:String,default:"auto",validator:e=>["auto","v","h","vr","hr"].includes(e)},trigger:{type:String,default:"click",validator:e=>["click","hover"].includes(e)},indicatorHasToggle:Boolean,showArrow:{type:Boolean,default:!0},showIndicator:{type:Boolean,default:!0},pager:{type:[Boolean,String],default:"auto",validator:e=>!0===e||!1===e||"auto"===e},controlPosition:{type:String,default:"auto",validator:e=>["auto","float","start","end","both"].includes(e)},controlFloatPlacement:{type:String,default:"edge",validator:e=>["outside","inside","edge"].includes(e)},controlOffset:{type:[String,Number,Object],default:null},controlPlacement:{type:String,default:"auto",validator:e=>["auto","axis","cross"].includes(e)},paginationPosition:{type:String,default:"auto",validator:e=>["auto","inline","float"].includes(e)},paginationFloat:{type:Object,default:null},interval:Number,duration:{type:Number,default:null},delay:{type:Number,default:1e3},autoRolling:{type:Boolean,default:!1},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},interceptWheel:{type:Boolean,default:!1},wheelRelease:{type:Boolean,default:!0},wheelReleaseDelay:{type:Number,default:1e3},hoverPause:{type:Boolean,default:!0},motionBlur:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["update:modelValue","page-change","start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","resize","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l;Ee("rollSplit");const o=$(null),n=$(!1),s=$(null),r=je({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,maxRoll:0,itemsLen:0,pageLen:1,pageCount:0,disablePrev:!1,disableNext:!1,disableRolling:!1}),A=u((()=>VT(a.pageSize,4))),c=u((()=>wT(a.data,A.value))),g=u((()=>c.value.length>0)),v=u((()=>{const e=a.modelValue??a.initIndex,t=Number(e);return Number.isFinite(t)&&t>=0?Math.floor(t):0})),m=u((()=>ST({direction:a.direction,nativeControlDirection:a.nativeControlDirection}))),y=u((()=>$T({controlPosition:a.controlPosition}))),b=u((()=>kT({controlPlacement:a.controlPlacement}))),V=u((()=>qT({paginationPosition:a.paginationPosition}))),w=u((()=>xT({props:a,initIndex:v.value,nativeControlDirection:m.value}))),x=u((()=>"custom"===a.controlMode&&a.showControl&&g.value&&c.value.length>1)),k=u((()=>{const e=a.controlOffset;return e&&"object"==typeof e?{...q("ctrlMainOfs",e.main,"smart"),...q("ctrlCrossOfs",e.cross,"smart")}:{...q("ctrlMainOfs",e,"smart")}})),S=u((()=>{const e=a.paginationFloat||{};return{...q("pageTop",e.top,"smart"),...q("pageRight",e.right,"smart"),...q("pageBtm",e.bottom,"smart"),...q("pageLeft",e.left,"smart"),...q("pageTsf",e.transform),...q("pageZ",e.zIndex)}})),C=u((()=>$e("cpt-rollsp",{...q("w",a.width,"smart"),...q("h",a.height,"smart"),...q("minh",a.minHeight,"smart"),...k.value,...S.value}))),B={play:(...e)=>o.value?.play?.(...e),stop:(...e)=>o.value?.stop?.(...e),pause:(...e)=>o.value?.pause?.(...e),resume:(...e)=>o.value?.resume?.(...e),toggle:(...e)=>o.value?.toggle?.(...e),prev:(...e)=>o.value?.prev?.(...e),next:(...e)=>o.value?.next?.(...e),goTo:(...e)=>o.value?.goTo?.(...e),forceUpdate:(...e)=>o.value?.forceUpdate?.(...e),scrollToStart:(...e)=>o.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>o.value?.scrollToEnd?.(...e)},z=(e,t)=>({page:e,pageIndex:t,startIndex:t*A.value,pageSize:A.value}),N=(e,t,l,a)=>({item:e,index:a*A.value+t,itemIndex:t,page:l,pageIndex:a,pageSize:A.value}),R=(e,t,l)=>{s.value=e,wn(r,e),i("update",e,t,l)},I=e=>{s.value=e,wn(r,e),i("start",e)},M=(e,t,l)=>{s.value=t,wn(r,t),i("rolling",e,t,l)},P=(e,t)=>{s.value=t,wn(r,t),i("update:modelValue",e),i("page-change",e,t),i("change",e,t)},D=e=>i("before-roll",e),_=e=>i("after-roll",e),E=(e,t)=>i("play",e,t),j=(e,t)=>i("stop",e,t),L=(e,t)=>i("pause",e,t),F=(e,t)=>i("resume",e,t),W=e=>i("resize",e),H=e=>i("wheel",e),U=()=>o.value?.getInfo?.()||s.value||{state:r};return Z((()=>a.modelValue),(e=>{!n.value||null==e||Number(e)!==Number(r.curRoll)&&o.value?.goTo?.(e,{source:"modelValue"})})),Be((()=>{n.value=!0})),t({state:r,play:(...e)=>o.value?.play?.(...e),stop:(...e)=>o.value?.stop?.(...e),pause:(...e)=>o.value?.pause?.(...e),resume:(...e)=>o.value?.resume?.(...e),toggle:(...e)=>o.value?.toggle?.(...e),prev:(...e)=>o.value?.prev?.(...e),next:(...e)=>o.value?.next?.(...e),goTo:(...e)=>o.value?.goTo?.(...e),getInfo:U,getState:U,forceUpdate:(...e)=>o.value?.forceUpdate?.(...e),isRolling:()=>o.value?.isRolling?.()||!1,isDisabled:()=>o.value?.isDisabled?.()||!1,scrollToStart:(...e)=>o.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>o.value?.scrollToEnd?.(...e)}),(t,l)=>{const a=ke("TuiRollingItem"),i=ke("TuiRolling");return d(),h("div",{class:O(["tui-rolling-split",`is-dir-${e.direction}`,`is-control-${e.controlMode}`,`is-custom-ctrl-pos-${y.value}`,`is-custom-plcm-${b.value}`,`is-custom-page-pos-${V.value}`,{"is-initing":!n.value,"is-empty":!g.value}]),style:we(C.value)},[n.value&&g.value?(d(),le(i,_e({key:0},w.value,{class:"tui-rollsp-rolling",ref_key:"rollingRef",ref:o,onStart:I,onRolling:M,onUpdate:R,onChange:P,onBeforeRoll:D,onAfterRoll:_,onPlay:E,onStop:j,onPause:L,onResume:F,onResize:W,onWheel:H}),{default:G((()=>[(d(!0),h(ge,null,Fe(c.value,((l,i)=>(d(),le(a,{key:i,class:"tui-rolling-split-page-item"},{default:G((()=>[f("div",{class:O(["tui-rollsp-page",e.pageClass]),style:we(e.pageStyle)},[ee(t.$slots,"page",_e({ref_for:!0},z(l,i)),(()=>[(d(!0),h(ge,null,Fe(l,((a,o)=>(d(),h("div",{key:p(CT)({item:a,index:i*A.value+o,rowKey:e.rowKey}),class:O(["tui-rollsp-item",e.itemClass]),style:we(e.itemStyle)},[ee(t.$slots,"item",_e({ref_for:!0},N(a,o,l,i)),(()=>[We(X(p(TT)(a)),1)]))],6)))),128))]))],6)])),_:2},1024)))),128))])),_:3},16)):n.value?(d(),h("div",PT,[ee(t.$slots,"empty",{},(()=>[We(X(e.emptyText),1)]))])):T("",!0),x.value?(d(),le(bT,{key:2,state:r,actions:B,direction:e.direction,trigger:e.trigger,showArrow:e.showArrow,showIndicator:e.showIndicator,pager:e.pager,controlPosition:y.value,controlFloatPlacement:e.controlFloatPlacement,controlPlacement:b.value,paginationPosition:V.value},null,8,["state","direction","trigger","showArrow","showIndicator","pager","controlPosition","controlFloatPlacement","controlPlacement","paginationPosition"])):T("",!0)],6)}}}),zT=["sum","avg","min","max","count"],Rn=(e,t=1)=>{const l=Number(e);return Number.isFinite(l)&&l>0?Math.floor(l):t},as=e=>{const t=Number(e);return Number.isFinite(t)?t:null},na=e=>null==e||"auto"===e?"minmax(0, 1fr)":"number"==typeof e?`${e}px`:"string"==typeof e?e:"minmax(0, 1fr)",RT=({columns:e=[],rows:t=[],hasIndexCol:l=!1,indexTitle:a="#",indexWidth:i=48}={})=>{const o=(e.length?e:Object.keys(t?.[0]||{}).map((e=>({key:e,title:e})))).map(((e,t)=>{const l="string"==typeof e?{key:e,title:e}:{...e},a=l.key??l.dataIndex??t;return{title:l.title??l.label??a,align:l.align??"start",type:l.type??"text",summary:l.summary??!1,sourceIndex:t,...l,key:a,id:l.id??`col-${String(a)}-${t}`}}));return l?[{id:"col-index",key:"__index",title:a,width:i,align:"center",type:"index",summary:!1,sourceIndex:-1,fixed:!0},...o]:o},NT=(e=[])=>e.map((e=>void 0!==e.width&&null!==e.width?na(e.width):e.minWidth||e.maxWidth?`minmax(${na(e.minWidth||0)}, ${na(e.maxWidth||"1fr")})`:"minmax(0, 1fr)")).join(" "),IT=e=>"center"===e||"end"===e||"start"===e?e:"right"===e?"end":"start",jn=({row:e,column:t,rowIndex:l}={})=>{if(!t)return"";if("index"===t.type)return l<0?e?.[t.key]??"":l+1;if("function"==typeof t.getValue)return t.getValue({row:e,column:t,rowIndex:l});if(Array.isArray(e)){return e[t.dataIndex??t.sourceIndex]}if(e&&"object"==typeof e){return e[t.dataIndex??t.key]}return""},OT=({value:e,row:t,column:l,rowIndex:a}={})=>"function"==typeof l?.format?l.format({value:e,row:t,column:l,rowIndex:a}):e,DT=(e,t,l="id")=>"function"==typeof l?l(e,t):e&&"object"==typeof e?e[l]??e.key??t:t,MT=({columns:e=[],rows:t=[]}={})=>e.reduce(((e,l)=>{if("progress"!==l.type&&"percent"!==l.type)return e;const a=t.map(((e,t)=>as(jn({row:e,column:l,rowIndex:t})))).filter((e=>null!==e));return e[l.key]=a.length?Math.max(...a):0,e}),{}),os=(e,t=2)=>{const l=Number(e);return Number.isInteger(l)&&l>=0&&l<=100?l:t},_T=(e,t,l=2)=>zT.includes(e)?"count"===e?t.length:t.length?"sum"===e?Ct.safeFixed(t.reduce(((e,t)=>e+t),0),l):"avg"===e?Ct.safeFixed(t.reduce(((e,t)=>e+t),0)/t.length,l):"min"===e?Ct.safeFixed(Math.min(...t),l):"max"===e?Ct.safeFixed(Math.max(...t),l):"":"":"",is=e=>e?!0===e?{visible:!0,label:"-",precision:2}:{visible:!1!==e.visible,label:void 0!==e.label?e.label:"-",labelKey:e.labelKey,height:e.height,precision:os(e.precision,2),data:e.data}:{visible:!1},ET=({columns:e=[],rows:t=[],summary:l}={})=>{const a=is(l);if(!a.visible)return null;if(a.data)return a.data;const i=os(a.precision,2),o=e.find((e=>"index"!==e.type&&"operation"!==e.type)),n=a.labelKey??o?.key;return e.reduce(((e,l)=>{if(l.key===n)return e[l.key]=a.label,e;if("function"==typeof l.summary){const a=t.map(((e,t)=>jn({row:e,column:l,rowIndex:t})));return e[l.key]=l.summary({rows:t,values:a,column:l}),e}if("string"==typeof l.summary){const a=t.map(((e,t)=>as(jn({row:e,column:l,rowIndex:t})))).filter((e=>null!==e));return e[l.key]=_T(l.summary,a,i),e}return e[l.key]="",e}),{})},LT=({props:e}={})=>{const t=e.rollingConfig||{};return{...t,direction:"v",mode:e.mode,visibleLength:Rn(e.visibleLength,5),debug:e.debug,showControl:e.showControl,seamless:e.seamless,interval:e.interval??t.interval,motionBlur:e.motionBlur,duration:e.duration??t.duration??null,delay:e.delay??t.delay??1e3,autoRolling:e.autoRolling,autoFollow:e.autoFollow,wheelRolling:e.wheelRolling,hoverPause:e.hoverPause,striped:e.striped,...e.striped&&null!=e.oddBackground?{oddBackground:e.oddBackground}:{},...e.striped&&null!=e.evenBackground?{evenBackground:e.evenBackground}:{},resizeObserver:e.resizeObserver,fillData:e.fillData,slotObserver:!0,controlLayout:t.controlLayout??"reserve",controlDirection:t.controlDirection??"v"}},FT=({visibleLength:e,hasHeader:t,hasSummary:l,theadHeight:a,summaryHeight:i}={})=>{const o=t?Rn(a,40):0,n=l?Rn(i,40):0;return 42*Rn(e,5)+o+n},Cn=(e,t={})=>{Object.keys(t).forEach((l=>{e[l]=t[l]})),e.rollInnerSize=t.rollInnerSize??t.rollInnerSzie??e.rollInnerSize,e.rollItemSize=t.rollItemSize??t.rollItemSzie??e.rollItemSize,e.rollWrapSize=t.rollWrapSize??e.rollWrapSize,e.disablePrev=t.disablePrev??t.disabelPrev??e.disablePrev,e.disableNext=t.disableNext??t.disabelNext??e.disableNext,e.curRoll=t.curRoll??e.curRoll,e.curRollCalc=t.curRollCalc??e.curRollCalc,e.maxRollCalc=t.maxRollCalc??e.maxRollCalc,e.itemsLen=t.itemsLen??e.itemsLen,e.pageLen=t.pageLen??e.pageLen,e.disableRolling=t.disableRolling??e.disableRolling},ss=(e=[])=>e.flatMap((e=>{if(Array.isArray(e?.children))return ss(e.children);const t="string"==typeof e?.children&&!e.children.trim()&&"symbol"==typeof e?.type;return e&&!t?[e]:[]})),jT=({table:e,column:t})=>{const l=e?.progressConfig?.value||{},a=(t?.progressConfig||{}).chartType||l.chartType;return"circle"===a?"circle":"gauge"===a?"gauge":"progress"},Pa=({summary:e,value:t})=>!e||""!==t,Ba=({table:e,column:t,columnType:l,value:a})=>{const i=e?.progressConfig?.value||{},o=t?.progressConfig||{},n=Number(a)||0,s={valueMode:"percent",...i,...o},r={...s};delete r.chartType;const u=s.maxValue??("percent"===l?100:e?.progressMaxMap?.value?.[t?.key])??0;return{...r,value:n,maxValue:u,label:null}},WT=Object.assign({name:"TuiRollingTableChartGaugeShell"},{__name:"gauge",props:{column:{type:Object,default:null},columnType:{type:String,default:"progress"},value:{default:void 0},summary:Boolean},setup(e){const t=e,l=ze("TuiRollTable",null),{$component:a}=ze("$global",{})||{},i=u((()=>a?.has("TuiChartGauge"))),o=u((()=>a?.resolve("TuiChartGauge","TuiFallback")||"TuiFallback")),n=u((()=>Pa({summary:t.summary,value:t.value}))),s=u((()=>({size:"tiny",showValue:!0,showLabel:!1,unitGap:"",width:40,...i.value?{}:{owner:"TuiRollingTable",missing:"TuiChartGauge",packageName:"@techui/extended/miniChart",fallback:"TuiFallback"},...Ba({table:l,column:t.column,columnType:t.columnType,value:t.value})})));return(e,t)=>n.value?(d(),le(gt(o.value),mt(_e({key:0},s.value)),null,16)):T("",!0)}}),GT=Object.assign({name:"TuiRollingTableChartProgressShell"},{__name:"progress",props:{column:{type:Object,default:null},columnType:{type:String,default:"progress"},value:{default:void 0},summary:Boolean},setup(e){const t=e,l=ze("TuiRollTable",null),{$component:a}=ze("$global",{})||{},i=u((()=>a?.has("TuiChartProgress"))),o=u((()=>a?.resolve("TuiChartProgress","TuiFallback")||"TuiFallback")),n=u((()=>Pa({summary:t.summary,value:t.value}))),s=u((()=>({size:"default",showValue:!0,suffixWidth:50,...i.value?{}:{owner:"TuiRollingTable",missing:"TuiChartProgress",packageName:"@techui/extended/miniChart",fallback:"TuiFallback"},...Ba({table:l,column:t.column,columnType:t.columnType,value:t.value})})));return(e,t)=>n.value?(d(),le(gt(o.value),mt(_e({key:0},s.value)),null,16)):T("",!0)}}),HT=Object.assign({name:"TuiRollingTableChartRingShell"},{__name:"ring",props:{column:{type:Object,default:null},columnType:{type:String,default:"progress"},value:{default:void 0},summary:Boolean},setup(e){const t=e,l=ze("TuiRollTable",null),{$component:a}=ze("$global",{})||{},i=u((()=>a?.has("TuiChartRing"))),o=u((()=>a?.resolve("TuiChartRing","TuiFallback")||"TuiFallback")),n=u((()=>Pa({summary:t.summary,value:t.value}))),s=u((()=>({size:"tiny",showValue:!0,showLabel:!1,unitGap:"",width:40,...i.value?{}:{owner:"TuiRollingTable",missing:"TuiChartRing",packageName:"@techui/extended/miniChart",fallback:"TuiFallback"},...Ba({table:l,column:t.column,columnType:t.columnType,value:t.value})})));return(e,t)=>n.value?(d(),le(gt(o.value),mt(_e({key:0},s.value)),null,16)):T("",!0)}}),KT=Object.assign({name:"TuiRollingTableCol"},{__name:"col",props:{type:{type:String,default:null,validator:e=>null===e||["text","string","index","progress","percent","operation","component"].includes(e)},column:{type:Object,default:null},columnIndex:{type:Number,default:null},row:{type:[Array,Object],default:null},rowIndex:{type:Number,default:null},value:{default:void 0},summary:Boolean},setup(e){const t=e,l=Nt(),a=ze("TuiRollTable",null),i=ze("TuiRollTableRow",null),o=u((()=>a?.columns?.value||[])),n=u((()=>t.column||o.value[t.columnIndex]||{})),s=u((()=>t.row??i?.row?.value??null)),r=u((()=>t.rowIndex??i?.rowIndex?.value??-1)),A=u((()=>t.type||n.value.type||"text")),c=u((()=>!!i?.header?.value)),g=u((()=>!(!t.summary&&!i?.summary?.value))),v=u((()=>IT((c.value?n.value.headerAlign:null)||n.value.align))),m=u((()=>`is-align-${v.value}`)),y=u((()=>c.value?n.value.title??n.value.label??n.value.key??"":void 0!==t.value?t.value:jn({row:s.value,column:n.value,rowIndex:r.value}))),b=u((()=>c.value?y.value:OT({value:y.value,row:s.value,column:n.value,rowIndex:r.value}))),V=u((()=>{const e=n.value.cellClass;return"function"==typeof e?e({value:y.value,row:s.value,rowIndex:r.value,column:n.value}):e})),w=u((()=>{if(g.value||!a?.showRankings?.value)return a?.tagConfig?.value||{};let e=null;return 0===r.value&&(e="danger"),1===r.value&&(e="warning"),2===r.value&&(e="success"),{...a?.tagConfig?.value,...e&&{type:e}}})),x=u((()=>jT({table:a,column:n.value}))),q=u((()=>n.value.operations||a?.operations?.value||[])),k=u((()=>a?.buttonAppearance?.value||"plain")),S=u((()=>n.value.tipConfig||a?.tipConfig?.value));return(e,i)=>{const o=ke("TuiTextTip"),u=ke("TuiTag"),v=ke("TuiButton");return d(),h("div",{class:O(["tui-rolling-table-col",m.value,n.value.class,c.value?n.value.headerClass:V.value,{"is-index":"index"===A.value,"is-head":c.value,"is-summary":g.value}])},[p(l).default?ee(e.$slots,"default",{key:0}):c.value?(d(),le(o,mt(_e({key:1},S.value)),{default:G((()=>[We(X(b.value),1)])),_:1},16)):"index"!==A.value||g.value?"progress"===A.value||"percent"===A.value?(d(),h(ge,{key:3},["progress"===x.value?(d(),le(GT,{key:0,column:n.value,columnType:A.value,value:y.value,summary:g.value},null,8,["column","columnType","value","summary"])):T("",!0),"circle"===x.value?(d(),le(HT,{key:1,column:n.value,columnType:A.value,value:y.value,summary:g.value},null,8,["column","columnType","value","summary"])):T("",!0),"gauge"===x.value?(d(),le(WT,{key:2,column:n.value,columnType:A.value,value:y.value,summary:g.value},null,8,["column","columnType","value","summary"])):T("",!0)],64)):"operation"===A.value?(d(),h(ge,{key:4},[g.value?T("",!0):(d(!0),h(ge,{key:0},Fe(q.value,(e=>(d(),le(v,{key:e.value??e.label,size:"small",type:e.type,plain:"plain"===k.value,link:"link"===k.value,text:"text"===k.value,disabled:e.disabled,onClick:l=>(e=>{a?.emitOperation?.({operation:e,value:e.value,label:e.label,row:s.value,rowIndex:r.value,column:n.value,columnIndex:t.columnIndex})})(e)},{default:G((()=>[e.icon?(d(),h("i",{key:0,class:O(["tui-icon",e.icon])},null,2)):T("",!0),f("span",null,X(e.label),1)])),_:2},1032,["type","plain","link","text","disabled","onClick"])))),128))],64)):(d(),le(o,mt(_e({key:5},S.value)),{default:G((()=>[We(X(b.value),1)])),_:1},16)):(d(),le(u,_e({key:2,size:"small"},w.value),{default:G((()=>[We(X(b.value),1)])),_:1},16))],2)}}}),UT=Object.assign({name:"TuiRollingTable"},{__name:"index",props:{columns:{type:Array,default:()=>[]},rows:{type:Array,default:null},rowKey:{type:[String,Function],default:"id"},summary:{type:[Boolean,Object],default:!1},showHeader:{type:Boolean,default:!0},interval:Number,theadHeight:Number,summaryHeight:Number,visibleLength:{type:Number,default:5,validator:e=>e>0},mode:{type:String,default:"item",validator:e=>["page","item"].includes(e)},showControl:{type:Boolean,default:!0},seamless:{type:Boolean,default:!0},duration:{type:Number,default:null},delay:{type:Number,default:1e3},autoRolling:{type:Boolean,default:!0},autoFollow:{type:Boolean,default:!0},wheelRolling:{type:Boolean,default:!0},hoverPause:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},fillData:{type:Boolean,default:!1},motionBlur:{type:Boolean,default:!0},striped:{type:Boolean,default:!1},hasIndexCol:{type:Boolean,default:!1},indexTitle:{type:String,default:"#"},indexWidth:{type:[Number,String],default:48},showRankings:{type:Boolean,default:!1},operations:{type:Array,default:()=>[]},buttonAppearance:{type:String,default:"plain",validator:e=>["plain","link","text"].includes(e)},headerBG:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},headerFC:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},fontColor:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},oddBackground:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},evenBackground:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},rowBD:{type:String,default:null,validator:e=>typeof CSS>"u"||CSS.supports("color",e)},progressConfig:{type:Object,default:()=>({})},tipConfig:Object,tagConfig:Object,rollingConfig:{type:Object,default:()=>({})},resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)}},emits:["operation","start","rolling","update","change","before-roll","after-roll","play","stop","pause","resume","resize","wheel"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Nt(),n=Ee("rollTable"),s=$(null),r=$(!1),A=$(null),c=je({rollWrapSize:0,rollInnerSize:0,rollItemSize:0,curRoll:0,curRollCalc:0,maxRollCalc:0,itemsLen:0,pageLen:1,disablePrev:!1,disableNext:!1,disableRolling:!1}),g=u((()=>Array.isArray(a.rows)?a.rows:[])),v=u((()=>Array.isArray(a.rows))),f=u((()=>RT({columns:a.columns,rows:g.value,hasIndexCol:a.hasIndexCol,indexTitle:a.indexTitle,indexWidth:a.indexWidth}))),m=u((()=>NT(f.value))),y=u((()=>MT({columns:f.value,rows:g.value}))),b=u((()=>is(a.summary))),V=u((()=>!!o.header||a.showHeader&&f.value.length)),w=u((()=>!!o.summary||b.value.visible)),x=u((()=>a.summaryHeight??b.value.height)),k=u((()=>ET({columns:f.value,rows:g.value,summary:a.summary}))),S=u((()=>LT({props:a}))),C=u((()=>$e("cpt-rolltb",{outerH:`${FT({visibleLength:a.visibleLength,hasHeader:V.value,hasSummary:w.value,theadHeight:a.theadHeight,summaryHeight:x.value})}px`,gridCols:m.value,...q("headBg",a.headerBG),...q("headFc",a.headerFC),...q("fc",a.fontColor),...q("rowBd",a.rowBD),...q("headLh",a.theadHeight,"px"),...q("summaryH",x.value,"px")}))),B=(e,t,l)=>{A.value=e,Cn(c,e),((e,t={})=>{a.debug&&console.log(`[TuiRollingTable:${n}] ${e}`,t)})("update",{info:e,from:t,action:l}),i("update",e,t,l)},z=e=>{A.value=e,Cn(c,e),i("start",e)},N=(e,t,l)=>{A.value=t,Cn(c,t),i("rolling",e,t,l)},R=(e,t)=>{A.value=t,Cn(c,t),i("change",e,t)},I=e=>i("before-roll",e),M=e=>i("after-roll",e),P=(e,t)=>i("play",e,t),D=(e,t)=>i("stop",e,t),_=(e,t)=>i("pause",e,t),E=(e,t)=>i("resume",e,t),j=e=>i("resize",e),L=e=>i("wheel",e),F=()=>s.value?.getInfo?.()||A.value||{state:c};return bt("TuiRollTable",{columns:f,rows:g,progressConfig:u((()=>a.progressConfig||{})),tipConfig:u((()=>a.tipConfig)),tagConfig:u((()=>a.tagConfig)),operations:u((()=>a.operations||[])),buttonAppearance:u((()=>a.buttonAppearance)),showRankings:u((()=>a.showRankings)),progressMaxMap:y,emitOperation:e=>{i("operation",e)}}),Be((()=>{r.value=!0})),t({state:c,play:(...e)=>s.value?.play?.(...e),stop:(...e)=>s.value?.stop?.(...e),pause:(...e)=>s.value?.pause?.(...e),resume:(...e)=>s.value?.resume?.(...e),toggle:(...e)=>s.value?.toggle?.(...e),prev:(...e)=>s.value?.prev?.(...e),next:(...e)=>s.value?.next?.(...e),goTo:(...e)=>s.value?.goTo?.(...e),getInfo:F,getState:F,forceUpdate:(...e)=>s.value?.forceUpdate?.(...e),isRolling:()=>s.value?.isRolling?.()||!1,isDisabled:()=>s.value?.isDisabled?.()||!1,scrollToStart:(...e)=>s.value?.scrollToStart?.(...e),scrollToEnd:(...e)=>s.value?.scrollToEnd?.(...e)}),(t,l)=>{const a=ke("TuiRollingTableRow"),i=ke("TuiRolling");return d(),h("div",{class:O(["tui-rolling-table",{"is-initing":!r.value}]),style:we(C.value)},[r.value?(d(),le(i,_e({key:0},S.value,{class:"tui-rolltb-rolling",ref_key:"rollingRef",ref:s,onStart:z,onRolling:N,onUpdate:B,onChange:R,onBeforeRoll:I,onAfterRoll:M,onPlay:P,onStop:D,onPause:_,onResume:E,onResize:j,onWheel:L}),el({default:G((()=>[v.value?(d(!0),h(ge,{key:0},Fe(g.value,((t,l)=>(d(),le(a,{key:p(DT)(t,l,e.rowKey),index:l,data:t},null,8,["index","data"])))),128)):ee(t.$slots,"default",{key:1})])),_:2},[V.value?{name:"header",fn:G((()=>[t.$slots.header?ee(t.$slots,"header",{key:0,columns:f.value,rows:g.value}):(d(),le(a,{key:1,header:""}))])),key:"0"}:void 0,w.value?{name:"footer",fn:G((()=>[t.$slots.summary?ee(t.$slots,"summary",{key:0,columns:f.value,rows:g.value,summary:k.value}):k.value?(d(),le(a,{key:1,data:k.value,summary:""},null,8,["data"])):T("",!0)])),key:"1"}:void 0]),1040)):T("",!0)],6)}}}),YT=Object.assign({name:"TuiRollingTableRow"},{__name:"row",props:{data:{type:[Array,Object],default:null},index:{type:Number,default:null,validator:e=>null===e||e>=0},header:Boolean,summary:Boolean},setup(e){const t=e,l=Nt(),a=ze("TuiRollTable",null),i=u((()=>a?.columns?.value||[])),o=u((()=>!!l.default)),n=u((()=>t.header||t.summary)),s=u((()=>n.value?-1:t.index??-1)),r=u((()=>n.value?"div":"TuiRollingItem")),A=u((()=>["tui-rolltb-row",t.header&&"tui-rolltb-head",t.summary&&"tui-rolltb-summary",!n.value&&"tui-rolling-table-row"])),c=u((()=>ss(l.default?.()||[]).map(((e,l)=>pa(e,{column:i.value[l],columnIndex:l,row:t.data,rowIndex:s.value})))));return bt("TuiRollTableRow",{row:u((()=>t.data)),rowIndex:s,header:u((()=>t.header)),summary:u((()=>t.summary))}),(t,l)=>{const a=ke("TuiRollingTableCol");return d(),le(gt(r.value),{class:O(A.value)},{default:G((()=>[o.value?(d(!0),h(ge,{key:0},Fe(c.value,((e,t)=>(d(),le(gt(e),{key:e.key??`slot-col-${t}`})))),128)):(d(!0),h(ge,{key:1},Fe(i.value,((t,l)=>(d(),le(a,{key:t.id,column:t,columnIndex:l,row:e.data,rowIndex:s.value},null,8,["column","columnIndex","row","rowIndex"])))),128))])),_:1},8,["class"])}}}),QT=Object.assign({name:"TuiScrollerOptionShell",inheritAttrs:!1},{__name:"index",props:{scrollerType:{type:String,default:"step",validator:e=>["step","smooth"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)}},setup(e,{expose:t}){const l=e,a=Ll(),i=$(null),o=u((()=>"smooth"===l.scrollerType?"TuiScrollerSmooth":"TuiScrollerStep")),n=u((()=>Object.fromEntries(Object.entries(a).filter((([e])=>!["class","style"].includes(e)))))),s=(e,...t)=>i.value?.[e]?.(...t);return t({scrollTo:(...e)=>s("scrollTo",...e),scrollToTop:(...e)=>s("scrollToTop",...e),scrollToBottom:(...e)=>s("scrollToBottom",...e),prev:(...e)=>s("prev",...e),next:(...e)=>s("next",...e),initSize:(...e)=>s("initSize",...e),resetScrollInner:(...e)=>s("resetScrollInner",...e),forceUpdate:(...e)=>s("forceUpdate",...e),getInfo:(...e)=>s("getInfo",...e),get state(){return i.value?.state}}),(t,l)=>(d(),h("div",{class:O(["tui-scroller-option-shell",`is-${e.scrollerType}`,`is-dir-${e.direction}`,p(a).class]),style:we(p(a).style)},[(d(),le(gt(o.value),_e({ref_key:"scrollerRef",ref:i,class:"tui-sos-scroller"},n.value,{direction:e.direction,layout:"inline"}),{default:G((()=>[ee(t.$slots,"default")])),_:3},16,["direction"]))],6))}}),XT={key:0,class:"tui-icon ti-angle-left"},ZT={key:1,class:"tui-icon ti-angle-up"},JT={key:0,class:"tui-icon ti-angle-right"},e0={key:1,class:"tui-icon ti-angle-down"},t0={key:2,class:"tui-ss-page"},l0=Object.assign({name:"TuiScrollerStep"},{__name:"step",props:{bordered:{type:Boolean,default:!0},controlType:{type:String,default:"button",validator:e=>["button","none"].includes(e)},controlPosition:{type:String,default:"auto",validator:e=>["auto","float","start","end","both"].includes(e)},controlFloatPlacement:{type:String,default:"edge",validator:e=>["outside","inside","edge"].includes(e)},controlSize:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},layout:{type:String,default:"block",validator:e=>["block","inline"].includes(e)},scrollMode:{type:String,default:"full",validator:e=>["full","half"].includes(e)},scrollEndMode:{type:String,default:"page",validator:e=>["page","content"].includes(e)},pagination:{type:Boolean,default:!0},paginationPosition:{type:String,default:"auto",validator:e=>["auto","inline","float"].includes(e)},paginationFloat:{type:Object,default:null},controlOffset:{type:[String,Number,Object],default:null},wheelScroll:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},enterAnimation:{type:Boolean,default:!0},enterDuration:{type:Number,default:1e3},resizeObserver:{type:String,default:"self",validator:e=>["self","global","none"].includes(e)}},setup(e,{expose:t}){const{$optResizeCounter:l,initResizeBy:a}=ze("$global",null),i=a(),o=e,n=$(!1),s=$(!1),r=$(!1),A=$(null),c=$(null);Z((()=>l.value),((e,t)=>{"root"==i.value(o.resizeObserver)&&e>t&&x()}));const g=Ee("stepscrl"),v=`${g}_enter`,m=je({curPage:0,maxPage:1,outerSize:0,innerSize:0,maxTranslate:0,needScroll:!1,disablePrev:!0,disableNext:!0}),y=e=>Number.parseFloat(e)||0,b=()=>{let e=0,t=0;const{clientWidth:l,clientHeight:a}=A.value,{scrollWidth:i,scrollHeight:n}=c.value,s=getComputedStyle(A.value);return"h"==o.direction?(e=i,t=Math.max(0,l-y(s.paddingLeft)-y(s.paddingRight))):(e=n,t=Math.max(0,a-y(s.paddingTop)-y(s.paddingBottom))),{innerSize:e,outerSize:t,maxTranslate:Math.max(0,e-t)}},V=()=>{m.disablePrev=m.curPage<=0,m.disableNext=m.curPage>=m.maxPage-1},w=async()=>{o.enterAnimation?(await ot.w(),ot.c(v),ot.s(v,(()=>{s.value=!0}))):s.value=!0},x=async()=>{if(await ye(),!A.value||!c.value)return;const e=m.curPage,t=b();if(m.needScroll=t.outerSize>0&&t.innerSize>t.outerSize,m.innerSize=t.innerSize,m.outerSize=t.outerSize,m.maxTranslate=t.maxTranslate,await ye(),m.needScroll){const e=b();m.needScroll=e.outerSize>0&&e.innerSize>e.outerSize,m.innerSize=e.innerSize,m.outerSize=e.outerSize,m.maxTranslate=e.maxTranslate}m.maxPage=m.needScroll?Math.max(1,Math.ceil(m.innerSize/m.outerSize)):1,m.curPage=m.needScroll?Math.min(Math.max(e,0),m.maxPage-1):0,V(),n.value||(n.value=!0),w()},k=u((()=>m.curPage>0)),S=u((()=>m.curPage<m.maxPage-1));Z([k,S],(()=>{V()}),{immediate:!0});const C=u((()=>"button"===o.controlType&&m.needScroll)),B=u((()=>o.pagination&&m.needScroll)),z=u((()=>"auto"!==o.controlPosition?o.controlPosition:"block"===o.layout?"float":"both")),N=u((()=>"auto"!==o.paginationPosition?o.paginationPosition:"block"===o.layout?"float":"inline")),R=u((()=>{const e=o.controlOffset;return e&&"object"==typeof e?{...q("ctrlMainOfs",e.main,"smart"),...q("ctrlCrossOfs",e.cross,"smart")}:{...q("ctrlMainOfs",e,"smart")}})),I=u((()=>{const e=o.paginationFloat||{};return{...q("pageTop",e.top,"smart"),...q("pageRight",e.right,"smart"),...q("pageBtm",e.bottom,"smart"),...q("pageLeft",e.left,"smart"),...q("pageTsf",e.transform),...q("pageZ",e.zIndex)}})),M=u((()=>{const e=m.curPage*m.outerSize,t="content"===o.scrollEndMode?Math.min(e,m.maxTranslate):e;return $e("cpt-sts",{tsf:`translate${"h"===o.direction?"X":"Y"}(-${t}px)`,...R.value,...I.value,enterDur:`${o.enterDuration}ms`})})),P=(e=-1,t=!0)=>{A.value&&Ct.isNEG0(e)&&e>-1&&(m.curPage=Math.min(Math.max(e,0),Math.max(m.maxPage-1,0)),V())},D=()=>{n.value&&(m.needScroll=!1,m.curPage=0,m.maxPage=1,m.outerSize=0,m.innerSize=0,m.maxTranslate=0,m.disablePrev=!0,m.disableNext=!0,n.value=!1)},_=(e,t=null)=>{k.value&&(t?m.curPage=Ct.safeFixed(m.curPage-t,1):"full"==o.scrollMode?Ct.isNEG0(m.curPage)&&(m.curPage=Math.ceil(Math.max(0,m.curPage-1))):m.curPage-=.5,V())},E=(e,t=null)=>{S.value&&(t?m.curPage=Ct.safeFixed(m.curPage+t,1):"full"==o.scrollMode?Ct.isNEG0(m.curPage)&&(m.curPage=Math.floor(Math.min(m.curPage+1,m.maxPage))):m.curPage+=.5,V())},j=()=>({...m,direction:o.direction,scrollMode:o.scrollMode,scrollEndMode:o.scrollEndMode,controlType:o.controlType,controlPosition:z.value,controlFloatPlacement:o.controlFloatPlacement,paginationPosition:N.value,canScrollStart:k.value,canScrollEnd:S.value}),G=(e=!1)=>{e&&D(),x()},L=Qe.throttle((e=>{e.deltaY>0||e.deltaX>0?E(0,.1):(e.deltaY<0||e.deltaX<0)&&_(0,.1)}),50),F=e=>{e.preventDefault(),L(e)},W=()=>{A.value&&(Qe.remove(A.value,"wheel",g),o.wheelScroll&&Qe.add(A.value,"wheel",F,g,{passive:!1}))};return Be((()=>{W(),c.value&&Dn.o(c.value,(()=>{x()}),{childList:!0,subtree:!1},100)})),al((()=>{Dn.d(c.value),Qe.remove(A.value,"wheel",g),ot.c(v)})),Z([()=>o.controlPosition,()=>o.controlSize,()=>o.controlType,()=>o.pagination,()=>o.paginationPosition,()=>o.layout,()=>o.scrollEndMode,()=>o.bordered,()=>o.shadow],(()=>{x()})),Z((()=>o.direction),(async()=>{r.value=!0,m.curPage=0,V(),await ye(),await x(),await ot.w2(),r.value=!1})),Z((()=>o.wheelScroll),W),Z((()=>o.enterAnimation),(e=>{e?(s.value=!1,w()):s.value=!0})),bt("TuiScroller",{scrollTo:P,next:E,prev:_,initSize:x,resetScrollInner:D,getInfo:j,forceUpdate:G,state:m,bordered:o.bordered}),t({scrollTo:P,next:E,prev:_,initSize:x,resetScrollInner:D,getInfo:j,forceUpdate:G,state:m}),(t,l)=>{const a=Je("tui-resize");return d(),h("div",{class:O(["tui-scroller-step",`is-ctrl-type-${e.controlType}`,`is-ctrl-pos-${z.value}`,`is-ctrl-float-${e.controlFloatPlacement}`,`is-ctrl-size-${e.controlSize}`,`is-layout-${e.layout}`,`is-page-pos-${N.value}`,e.bordered?"is-bordered":"is-borderless",""+(m.needScroll?"is-scroll-active":"is-scroll-inactive"),{"is-horizontal":"h"==e.direction,"is-vertical":"v"==e.direction,"is-inited":n.value,"is-preparing":!n.value,"is-enter-enabled":e.enterAnimation,"is-enter-ready":s.value,"is-arrow-visible":C.value,"is-page-visible":B.value,"is-shadow":e.shadow}]),style:we(M.value)},[Re((d(),h("div",{ref_key:"scrollOuterRef",ref:A,class:"tui-ss-outer"},[f("div",{ref_key:"scrollInnerRef",ref:c,class:"tui-ss-inner",style:we(r.value?{transition:"none"}:null)},[ee(t.$slots,"default")],4)])),[[a,{callback:x,disabled:"self"!=p(i)(e.resizeObserver)&&n.value,uid:p(g)}]]),C.value?(d(),h("div",{key:0,class:O(["tui-ss-btn tui-ss-btn-sta",{"is-disabled":!k.value}]),onClick:_},["h"==o.direction?(d(),h("i",XT)):(d(),h("i",ZT))],2)):T("",!0),C.value?(d(),h("div",{key:1,class:O(["tui-ss-btn tui-ss-btn-end",{"is-disabled":!S.value}]),onClick:E},["h"==o.direction?(d(),h("i",JT)):(d(),h("i",e0))],2)):T("",!0),B.value?(d(),h("div",t0,X(m.curPage+1)+"/"+X(m.maxPage),1)):T("",!0)],6)}}}),n0={key:0,class:"tui-icon ti-angle-left"},a0={key:1,class:"tui-icon ti-angle-up"},o0={key:0,class:"tui-icon ti-angle-right"},i0={key:1,class:"tui-icon ti-angle-down"},s0=Object.assign({name:"TuiScrollerSmooth"},{__name:"smooth",props:{bordered:{type:Boolean,default:!0},direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},controlType:{type:String,default:"scrollbar",validator:e=>["button","scrollbar","none"].includes(e)},controlPosition:{type:String,default:"auto",validator:e=>["auto","float","start","end","both"].includes(e)},controlFloatPlacement:{type:String,default:"edge",validator:e=>["outside","inside","edge"].includes(e)},controlSize:{type:String,default:"default",validator:e=>["default","small","large"].includes(e)},controlOffset:{type:[String,Number,Object],default:null},layout:{type:String,default:"block",validator:e=>["block","inline"].includes(e)},scrollSpeed:{type:Number,default:1},scrollbarSize:{type:String,default:"small",validator:e=>["mini","small","default","large","xlarge"].includes(e)},wheelScroll:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},enterAnimation:{type:Boolean,default:!0},enterDuration:{type:Number,default:1e3},resizeObserver:{type:String,default:"self",validator:e=>["self","global","none"].includes(e)}},setup(e,{expose:t}){const{$optResizeCounter:l,initResizeBy:a}=ze("$global",null),i=a(),o=e,n=Ee("smthscrl"),s=`${n}_enter`,r=$(null),A=$(null),c=$(null),g=$(!1),v=$(!1),m=$(!1),y=$(!1),b=$(0),V=$(0),w=$(null),x=je({scrollPosition:0,maxScroll:0,needScroll:!1,disablePrev:!0,disableNext:!0}),k=()=>{x.disablePrev=x.scrollPosition<=0,x.disableNext=x.scrollPosition>=x.maxScroll},S=e=>Number.parseFloat(e)||0,C=()=>{const e=r.value,t=A.value;if(!e||!t)return null;const l=getComputedStyle(e);if("h"===o.direction){const a=e.clientWidth,i=S(l.paddingLeft),o=S(l.paddingRight);return{outerSize:a,viewportSize:Math.max(0,a-i-o),contentSize:t.scrollWidth}}const a=e.clientHeight,i=S(l.paddingTop),n=S(l.paddingBottom);return{outerSize:a,viewportSize:Math.max(0,a-i-n),contentSize:t.scrollHeight}},B=u((()=>{const e=o.controlOffset;return e&&"object"==typeof e?{...q("ctrlMainOfs",e.main,"smart"),...q("ctrlCrossOfs",e.cross,"smart")}:{...q("ctrlMainOfs",e,"smart")}})),z=u((()=>r.value&&A.value?$e("cpt-sms",{tsf:"h"===o.direction?`translateX(-${x.scrollPosition}px)`:`translateY(-${x.scrollPosition}px)`,...B.value,enterDur:`${o.enterDuration}ms`}):{})),N=u((()=>{if(!r.value||!A.value)return{};const e=C();if(!e)return{};let t,l;return t=e.contentSize>0?Math.min(e.outerSize,Math.max(20,e.viewportSize/e.contentSize*e.outerSize)):e.outerSize,l=x.maxScroll>0?x.scrollPosition/x.maxScroll*(e.outerSize-t):0,$e("cpt-sms-thumb",{["h"===o.direction?"width":"height"]:`${t}px`,tsf:"h"===o.direction?`translateX(${l}px)`:`translateY(${l}px)`})})),R=u((()=>x.scrollPosition>0)),I=u((()=>x.scrollPosition<x.maxScroll)),M=u((()=>x.scrollPosition>0)),P=u((()=>x.scrollPosition<x.maxScroll)),D=u((()=>"h"==o.direction?M.value||P.value:R.value||I.value));Z(D,(e=>{x.needScroll=e}),{immediate:!0});const _=u((()=>"auto"!==o.controlPosition?o.controlPosition:"block"===o.layout?"float":"both")),E=(e=0)=>{x.scrollPosition=Math.max(0,Math.min(x.maxScroll,e)),k()},j=(e=50)=>{E(x.scrollPosition-e)},G=(e=50)=>{E(x.scrollPosition+e)},L=Qe.throttle((e=>{const t="h"===o.direction&&e.deltaX||e.deltaY;G(t*o.scrollSpeed)}),50),F=e=>{e.preventDefault(),L(e)},W=()=>{r.value&&(Qe.remove(r.value,"wheel",n),o.wheelScroll&&Qe.add(r.value,"wheel",F,n,{passive:!1}))},H=async()=>{o.enterAnimation?(await ot.w(),ot.c(s),ot.s(s,(()=>{v.value=!0}))):v.value=!0},U=(e,t)=>{if(!r.value||!A.value)return;const l=C();l&&(x.maxScroll=Math.max(0,l.contentSize-l.viewportSize),x.scrollPosition=Math.max(0,Math.min(x.maxScroll,x.scrollPosition)),x.needScroll=x.maxScroll>0,k(),g.value||(g.value=!0),H())},Y=e=>{if(e.target===c.value)return;const t=e.currentTarget.getBoundingClientRect(),l="h"===o.direction?e.clientX-t.left:e.clientY-t.top,a=C(),i="h"===o.direction?a?.outerSize||r.value.clientWidth:a?.outerSize||r.value.clientHeight,n="h"===o.direction?c.value.offsetWidth:c.value.offsetHeight,s=(l-n/2)/(i-n)*x.maxScroll;E(s)},X=e=>{e.stopPropagation(),y.value=!0,b.value="h"===o.direction?e.clientX:e.clientY,V.value=x.scrollPosition,Qe.add(document,"mousemove",Q,n),Qe.add(document,"mouseup",K,n)},Q=e=>{if(!y.value)return;const t=("h"===o.direction?e.clientX:e.clientY)-b.value,l=C(),a=t/(("h"===o.direction?l?.outerSize||r.value.clientWidth:l?.outerSize||r.value.clientHeight)-("h"===o.direction?c.value.offsetWidth:c.value.offsetHeight))*x.maxScroll,i=V.value+a;E(i)},K=()=>{y.value=!1,Qe.remove(document,"mousemove",n),Qe.remove(document,"mouseup",n)},J=e=>{const t=50*o.scrollSpeed,l=()=>{"start"===e?j(t):G(t)};l(),w.value=setInterval(l,100)},te=()=>{w.value&&(clearInterval(w.value),w.value=null)};return Z((()=>l.value),((e,t)=>{"root"==i.value(o.resizeObserver)&&e>t&&U()})),Be((()=>{r.value&&A.value&&(Dn.o(A.value,(()=>{U()}),{childList:!0,subtree:!1},100),W(),U())})),al((()=>{Dn.d(A.value),Qe.remove(document,"mousemove",n),Qe.remove(document,"mouseup",n),Qe.remove(r.value,"wheel",n),te(),ot.c(s)})),Z([()=>o.controlType,()=>o.controlSize,()=>o.controlPosition,()=>o.layout,()=>o.scrollbarSize,()=>o.bordered,()=>o.shadow],(()=>{x.scrollPosition=0,ye((()=>U()))})),Z((()=>o.direction),(async()=>{m.value=!0,x.scrollPosition=0,k(),await ye(),U(),await ot.w2(),m.value=!1})),Z((()=>o.wheelScroll),W),Z((()=>o.enterAnimation),(e=>{e?(v.value=!1,H()):v.value=!0})),t({scrollTo:E,scrollToTop:()=>{E(0)},scrollToBottom:()=>{E(x.maxScroll)},next:G,prev:j,getInfo:()=>({...x,direction:o.direction,controlType:o.controlType,controlPosition:_.value,controlFloatPlacement:o.controlFloatPlacement,layout:o.layout}),forceUpdate:()=>{U()},state:x}),(t,l)=>{const a=Je("tui-resize");return d(),h("div",{class:O(["tui-scroller-smooth",`is-ctrl-type-${e.controlType}`,`is-ctrl-pos-${_.value}`,`is-ctrl-float-${e.controlFloatPlacement}`,`is-ctrl-size-${e.controlSize}`,`is-layout-${e.layout}`,e.bordered?"is-bordered":"is-borderless",""+(D.value?"is-scroll-active":"is-scroll-inactive"),{"is-horizontal":"h"===e.direction,"is-vertical":"v"===e.direction,"is-enter-enabled":e.enterAnimation,"is-enter-ready":v.value,"is-shadow":e.shadow}]),style:we(z.value)},[Re((d(),h("div",{ref_key:"scrollOuterRef",ref:r,class:"tui-sms-outer"},[f("div",{ref_key:"scrollInnerRef",ref:A,class:"tui-sms-inner",style:we(m.value?{transition:"none"}:null)},[ee(t.$slots,"default")],4)])),[[a,{callback:e=>U(),disabled:"self"!=p(i)(e.resizeObserver)&&g.value,uid:p(n)}]]),D.value?(d(),h(ge,{key:0},["scrollbar"===e.controlType?(d(),h("div",{key:0,class:O(["tui-sms-bar",`is-bar-size-${e.scrollbarSize}`,{"is-horizontal":"h"===e.direction,"is-vertical":"v"===e.direction}]),onMousedown:Y},[f("div",{ref_key:"thumbRef",ref:c,class:"tui-sms-bar-thumb",style:we([N.value,m.value?{transition:"none"}:null]),onMousedown:X},null,36)],34)):T("",!0),"button"===e.controlType?(d(),h(ge,{key:1},[f("div",{class:O(["tui-sms-btn tui-sms-btn-sta",{"is-disabled":"h"==o.direction?!M.value:!R.value}]),onMousedown:l[0]||(l[0]=e=>J("start")),onMouseup:te,onMouseleave:te},["h"==o.direction?(d(),h("i",n0)):(d(),h("i",a0))],34),f("div",{class:O(["tui-sms-btn tui-sms-btn-end",{"is-disabled":"h"==o.direction?!P.value:!I.value}]),onMousedown:l[1]||(l[1]=e=>J("end")),onMouseup:te,onMouseleave:te},["h"==o.direction?(d(),h("i",o0)):(d(),h("i",i0))],34)],64)):T("",!0)],64)):T("",!0)],6)}}}),r0={key:1,class:"tui-btop-text"},u0=Object.assign({name:"TuiBackTop"},{__name:"index",props:{target:{type:[String,Object,Element],default:null},threshold:{type:Number,default:300},behavior:{type:String,default:"smooth",validator:e=>["smooth","auto","instant"].includes(e)},right:{type:[String,Number],default:25},bottom:{type:[String,Number],default:40},zIndex:{type:Number,default:1e3},appendTo:{type:[String,Object,Element],default:null},position:{type:String,default:null,validator:e=>null==e||["fixed","absolute"].includes(e)},alwaysShow:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},icon:{type:String,default:"tui-icon ti-arrow-to-up"},text:{type:String,default:""},shape:{type:String,default:"square",validator:e=>["square","round","pill"].includes(e)},className:{type:String,default:""},customStyle:{type:[String,Object,Array],default:""}},emits:["click","show","hide"],setup(e,{expose:t,emit:l}){const a=e,i=l,{$optFloaterTo:o}=ze("$global",null)||{},n=Ee("backTop"),s=$(!0),r=$(!1),A=$(null);let c=null,p=0;const g=u((()=>a.appendTo||o?.value||"#tuiRoot")),v=u((()=>{const e=a.position||(a.appendTo?"absolute":"fixed");return[$e("cpt-btop",{...q("right",a.right,"smart"),...q("btm",a.bottom,"smart"),z:a.zIndex,pos:e}),a.customStyle]})),f=(e=a.target)=>e?"string"==typeof e?document.querySelector(e):e?.value?f(e.value):e?.$el?e.$el:e:null,m=e=>{r.value!==e&&(r.value=e,i(e?"show":"hide"))},y=()=>{if(a.disabled)return void m(!1);if(a.alwaysShow)return void m(!0);const e=A.value;if(!e)return void m(!1);const t=(e=>e?.scrollTop||0)(e)>a.threshold;m(t)},b=()=>{c&&(Qe.remove(c,"scroll",n),c=null)},V=()=>{const e=A.value||f();e&&(i("click"),e.scrollTo({top:0,behavior:a.behavior}))};return Z((()=>[a.target,a.disabled,a.alwaysShow]),(()=>{(async()=>{const e=++p;if(b(),await ye(),e!==p)return;const t=f();A.value=t,!t||a.disabled||a.alwaysShow||(c=t,Qe.add(c,"scroll",y,n)),y()})()}),{flush:"post"}),Z((()=>a.threshold),(()=>{y()})),Be((()=>{s.value=!1})),dt((()=>{p++,b(),s.value=!0})),t({scrollToTop:V,update:y,show:()=>m(!0),hide:()=>m(!1),getVisible:()=>r.value}),(t,l)=>s.value?T("",!0):(d(),le(Lt,{key:0,to:g.value,fallback:"#app",disabled:s.value},[me(Ue,{name:"back-top-fade"},{default:G((()=>[r.value&&!e.disabled?(d(),h("div",{key:0,class:O(["tui-back-top",`is-${e.shape}`,e.className]),style:we(v.value),onClick:V},[ee(t.$slots,"default",{},(()=>[e.icon?(d(),h("i",{key:0,class:O(e.icon)},null,2)):T("",!0),e.text?(d(),h("span",r0,X(e.text),1)):T("",!0)]))],6)):T("",!0)])),_:3})],8,["to","disabled"]))}}),c0={key:0,class:"tui-rst-visual"},d0={key:0,class:"svg-icon spinner-area tui-rst-spinner"},A0={key:1,class:"tui-rst-code"},f0={key:1,class:"tui-rst-title"},p0={key:2,class:"tui-rst-desc"},g0={key:0,class:"tui-rst-actions"},v0={key:1,class:"tui-rst-extra"},h0=["empty","loading","info","success","warning","danger","error","403","404","500"],m0=["default","invert","primary","success","warning","danger","info","emphasis"],y0=["background","text","line","accent","none"],b0=["extremeInvert","strongInvert","strong","base","weak"],No={empty:{type:"default",icon:"tui-icon ti-inbox"},loading:{type:"primary",loading:!0},info:{type:"info",icon:"tui-icon ti-info-circle"},success:{type:"success",icon:"tui-icon ti-check-circle"},warning:{type:"warning",icon:"tui-icon ti-alert-circle"},danger:{type:"danger",icon:"tui-icon ti-alert-triangle"},error:{type:"danger",icon:"tui-icon ti-alert-triangle"},403:{type:"warning",code:"403"},404:{type:"default",code:"404"},500:{type:"danger",code:"500"}},V0=Object.assign({name:"TuiResult"},{__name:"index",props:{status:{type:[String,Number],default:"empty",validator:e=>h0.includes(String(e))},type:{type:String,default:null,validator:e=>null===e||m0.includes(e)},typedAppearance:{type:String,default:"text",validator:e=>y0.includes(e)},typedTone:{type:String,default:"base",validator:e=>b0.includes(e)},typedConfig:{type:Object,default:()=>({})},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},title:String,description:String,icon:String,code:[String,Number],actionText:String,actionType:{type:String,default:null,validator:e=>null===e||["default","invert","primary","success","warning","danger","info","emphasis","focus"].includes(e)}},emits:["action"],setup(e,{emit:t}){const{proxy:{$tService:{i18n:l,initSpinner:a}}}=Tt(),i=e,o=t,n=u((()=>String(i.status))),s=u((()=>No[n.value]||No.empty)),r=u((()=>({appearance:i.typedAppearance,tone:i.typedTone,...i.typedConfig,type:i.type||i.typedConfig.type||s.value.type||"default"}))),A=u((()=>i.title??l(`result.${n.value}.title`))),c=u((()=>i.description??l(`result.${n.value}.description`))),p=u((()=>i.code??s.value.code)),g=u((()=>i.icon??s.value.icon)),v=u((()=>s.value.loading&&void 0===i.icon&&void 0===i.code)),f=u((()=>void 0===i.icon&&void 0!==p.value&&null!==p.value&&""!==p.value)),m=u((()=>i.actionType||r.value.type)),y=()=>{v.value&&!ct.el("#styleSpinners")&&a()};Be(y),Z(v,y);const b=e=>{o("action",e)};return(t,l)=>{const a=ke("TuiButton"),i=ke("TuiTyped");return d(),le(i,_e({class:["tui-result",`is-status-${n.value}`,`is-size-${e.size}`]},r.value),{default:G((()=>[ee(t.$slots,"default",{},(()=>[t.$slots.icon||v.value||f.value||g.value?(d(),h("div",c0,[ee(t.$slots,"icon",{},(()=>[v.value?(d(),h("i",d0)):f.value?(d(),h("span",A0,X(p.value),1)):g.value?(d(),h("i",{key:2,class:O(["tui-rst-icon",g.value])},null,2)):T("",!0)]))])):T("",!0),t.$slots.title||A.value?(d(),h("div",f0,[ee(t.$slots,"title",{},(()=>[We(X(A.value),1)]))])):T("",!0),t.$slots.description||c.value?(d(),h("div",p0,[ee(t.$slots,"description",{},(()=>[We(X(c.value),1)]))])):T("",!0)])),t.$slots.actions||e.actionText?(d(),h("div",g0,[ee(t.$slots,"actions",{},(()=>[me(a,{size:e.size,type:m.value,onClick:b},{default:G((()=>[We(X(e.actionText),1)])),_:1},8,["size","type"])]))])):T("",!0),t.$slots.extra?(d(),h("div",v0,[ee(t.$slots,"extra")])):T("",!0)])),_:3},16,["class"])}}}),w0=Object.assign({name:"TuiLoaderPanel"},{__name:"index",props:{loading:{type:Boolean,default:!0},inited:{type:Boolean,default:!1},loadingOpacity:{type:Number,default:.2},zIndex:Number,size:Number,color:String,update:Boolean,mask:{type:Boolean,default:!1},maskModal:{type:Boolean,default:!0},maskColorReverse:{type:Boolean,default:!1},maskBorderRadius:Number,maskBlur:{type:String,default:"auto",validator:e=>["auto","always","none"].includes(e)},pointEvent:{type:String,default:"all",validator:e=>["none","all"].includes(e)}},setup(e){const{$globalState:t}=ze("$global"),l=e;Z((()=>l.inited),(e=>{!0===e&&t.value.portletCounter++}));const a=u((()=>$e("cpt-lp",{...q("opa",l.loadingOpacity,{type:"number",zero:!0})})));return(e,t)=>{const i=ke("TuiLoadingArea");return d(),h("div",{class:"tui-loader-panel",style:we(a.value)},[me(i,{"model-value":l.loading,"z-index":l.zIndex,size:l.size,color:l.color,update:l.update,mask:l.mask,"mask-modal":l.maskModal,"mask-color-reverse":l.maskColorReverse,"mask-border-radius":l.maskBorderRadius,"mask-blur":l.maskBlur,"point-event":l.pointEvent},null,8,["model-value","z-index","size","color","update","mask","mask-modal","mask-color-reverse","mask-border-radius","mask-blur","point-event"]),f("div",{class:O(["tui-lp-slot",{"is-loading":l.loading}])},[ee(e.$slots,"default")],2)],4)}}}),C0={key:0,class:"svg-icon spinner-area"},T0=Object.assign({name:"TuiLoadingArea",inheritAttrs:!1},{__name:"LoadingArea",props:{zIndex:Number,size:Number,color:String,update:Boolean,mask:{type:Boolean,default:!1},maskModal:{type:Boolean,default:!0},maskColorReverse:{type:Boolean,default:!1},maskBorderRadius:Number,maskBlur:{type:String,default:"auto",validator:e=>["auto","always","none"].includes(e)},pointEvent:{type:String,default:"all",validator:e=>["none","all"].includes(e)},modelValue:{type:Boolean,default:!0}},setup(e){const{proxy:t}=Tt(),{$tState:l,$tState:{spinnerConfig:a},$tService:{initSpinner:i}}=t,o=Ll(),n=$(!1),s=Ee("loadArea"),r=e,A=u((()=>r.modelValue)),c=u((()=>r.color||a.area.color)),g=u((()=>r.size||a.area.size)),v=u((()=>$e("cpt-loda",{...q("fc",c.value),...q("size",g.value,"px"),...q("z",r.zIndex),...q("pe",r.pointEvent)})));return Z(A,(e=>{e?(n.value=!0,qe.c(s+"_ti")):qe.s(s+"_ti",(()=>{n.value=!1}),500)}),{immediate:!0}),Be((()=>{r.color&&r.update&&(a.area.color=r.color),r.size&&r.update&&(a.area.size=r.size),ct.el("#styleSpinners")||i()})),al((()=>{qe.c(s+"_ti")})),(t,l)=>{const a=ke("TuiMask");return d(),h(ge,null,[me(Ue,{name:"fade"},{default:G((()=>[A.value?(d(),h("div",_e({key:0},p(o),{class:["tui-loading-area",{"is-ani-on":n.value,"is-ani-off":!n.value}],style:v.value}),[n.value?(d(),h("i",C0)):T("",!0)],16)):T("",!0)])),_:1}),e.mask?(d(),le(a,{key:0,"model-value":A.value,mode:"area",modal:e.maskModal,"area-color-reverse":e.maskColorReverse,"area-border-radius":e.maskBorderRadius,"area-blur":e.maskBlur,"z-index":e.zIndex},null,8,["model-value","modal","area-color-reverse","area-border-radius","area-blur","z-index"])):T("",!0)],64)}}}),za={maxWidth:Number,offset:Number,lines:{type:Number,default:null},textDirection:{type:String,default:"h",validator:e=>["h","v",null].includes(e)},delay:{type:Number,default:1e3},transparent:{type:Boolean,default:!0},backgroundBlur:{type:Boolean,default:!0},type:{type:String,default:"invert",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},appearance:{type:String,default:"popTip",validator:e=>["popTip","curtip"].includes(e)},tone:{type:String,default:"base",validator:e=>["extremeInvert","strongInvert","strong","base","weak"].includes(e)}},S0=["data-lines","data-ellipsis"],$0=Object.assign({name:"TuiTextCurtip"},{__name:"textCurTip",props:{...za,placement:{type:String,default:"bottom-start",validator:e=>["top-start","top-end","bottom-start","bottom-end"].includes(e)}},setup(e){const{$optFloaterTo:t}=ze("$global",null),l=e,a=$(null),i=$(!1),o=$(""),n=$(0),s=async()=>{const e=a.value;if(e&&(o.value=e.textContent||"",l.lines&&l.lines>1||"v"==l.textDirection?i.value=e.scrollHeight>e.clientHeight:i.value=e.scrollWidth>e.clientWidth,!l.maxWidth))if(t.value.includes("tuiAdpt"))n.value=a.value?.clientWidth||0;else{const e=a.value?.getBoundingClientRect();e?.width&&(n.value=e?.width||0)}};return Z((()=>l.lines),(()=>{ye(s)})),Be((()=>{ye(s)})),(t,l)=>{const r=Je("tui-cursor-tip");return Re((d(),h("div",{"data-lines":t.lines,"data-ellipsis":i.value,ref_key:"textRef",ref:a,onMouseenterCapture:s},[ee(t.$slots,"default")],40,S0)),[[r,{placement:e.placement,delay:t.delay,type:t.type,backgroundBlur:t.backgroundBlur,transparent:t.transparent,tone:t.tone,maxWidth:t.maxWidth||(n.value>200?n.value:200),disabled:!i.value,content:o.value,offset:t.offset}]])}}}),k0=["data-lines","data-ellipsis"],q0=Object.assign({name:"TuiTextPopTip"},{__name:"textPopTip",props:{...za,placement:{type:String,default:"bottom",validator:e=>["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e)}},setup(e){const{$optFloaterTo:t}=ze("$global",null),l=e,a=$(null),i=$(!1),o=$(""),n=$(0),s=async()=>{const e=a.value;if(e&&(o.value=e.textContent||"",l.lines&&l.lines>1||"v"==l.textDirection?i.value=e.scrollHeight>e.clientHeight:i.value=e.scrollWidth>e.clientWidth,!l.maxWidth))if(t.value.includes("tuiAdpt"))n.value=a.value?.clientWidth||0;else{const e=a.value?.getBoundingClientRect();e?.width&&(n.value=e?.width||0)}};return Z((()=>l.lines),(()=>{ye(s)})),Be((()=>{ye(s)})),(t,l)=>{const r=Je("tui-popover");return Re((d(),h("div",{"data-lines":t.lines,"data-ellipsis":i.value,ref_key:"textRef",ref:a,onMouseenterCapture:s},[ee(t.$slots,"default")],40,k0)),[[r,{placement:e.placement,delay:t.delay,type:t.type,backgroundBlur:t.backgroundBlur,transparent:t.transparent,tone:t.tone,maxWidth:t.maxWidth||(n.value>200?n.value:200),disabled:!i.value,content:o.value,offset:t.offset}]])}}}),x0=Object.assign({name:"TuiTextTip"},{__name:"index",props:{...za,placement:String},setup(e){const t=e,l=u((()=>$e("cpt-ttip",{...q("lines",t.lines)}))),a=u((()=>"popTip"==t.appearance?q0:$0)),i=$(!1);return Be((()=>{i.value=!0})),(e,o)=>i.value?(d(),le(gt(a.value),_e({key:0,class:["tui-text-tip",e.lines&&1!=e.lines?"is-multiple":"is-single"],style:l.value},t),{default:G((()=>[ee(e.$slots,"default")])),_:3},16,["class","style"])):T("",!0)}}),P0={class:"tui-dlg-title"},B0={class:"tui-dlg-body"},z0={key:1,class:"tui-dlg-footer"},rs=Object.assign({name:"TuiDialogBase"},{__name:"base",props:{fullscreen:Boolean,title:String,appendTo:String,center:Boolean,overflow:Boolean,divider:Boolean,showClose:Boolean,dragContainment:Boolean,draggable:Boolean,hideHeader:Boolean,hideFooter:Boolean,closeIcon:{type:String,default:"tui-icon ti-times"},positionType:{type:String,default:"transform",validator:e=>["absolute","fixed","transform"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},customColor:[String,Array],typedConfig:Object,visibleInner:Boolean,uid:String},emits:["close","confirm"],setup(e,{expose:t,emit:l}){const{i18n:a}=ze("$global",null),i=e,o=l,n=$(null),s=$(null),r=u((()=>i.title||"Title")),A=u((()=>i.draggable&&!i.fullscreen&&!i.hideHeader)),c=u((()=>({enabled:A.value,trigger:".tui-dlg-header",exclude:".tui-dlg-close",containment:i.dragContainment,positionType:i.positionType,inAdpt:i.appendTo?.includes("tuiAdpt"),uid:i.uid}))),g=u((()=>({transparent:!1,appearance:"background",customColor:i.customColor,type:i.type,...i.typedConfig}))),v=()=>{o("close")},m=()=>{o("confirm")};return t({dialogRef:n,headerRef:s}),(t,l)=>{const i=ke("TuiButton"),o=ke("TuiTyped"),u=Je("tui-drag");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["tui-dlg-inner",`is-pos-${e.positionType||"relative"}`,{"is-fullscreen":e.fullscreen,"is-center":e.center,"is-overflow":e.overflow,"is-divider":e.divider}]),role:"dialog",ref_key:"dialogRef",ref:n,onClick:l[0]||(l[0]=Ze((()=>{}),["stop"]))},[Re(me(o,mt(qt(g.value)),{default:G((()=>[e.hideHeader?T("",!0):(d(),h("div",{key:0,class:O(["tui-dlg-header",{"is-draggable":A.value}]),ref_key:"headerRef",ref:s},[ee(t.$slots,"header",{},(()=>[f("span",P0,X(r.value),1)])),e.showClose?(d(),h("div",{key:0,class:"tui-dlg-close",onClick:v},[f("i",{class:O(e.closeIcon)},null,2)])):T("",!0)],2)),f("div",B0,[ee(t.$slots,"default")]),e.hideFooter?T("",!0):(d(),h("div",z0,[ee(t.$slots,"footer",{},(()=>[me(i,{onClick:v},{default:G((()=>[We(X(p(a)("common.cancel")),1)])),_:1}),me(i,{type:"default"==e.type||"invert"==e.type?"primary":e.type,customColor:e.customColor,onClick:m},{default:G((()=>[We(X(p(a)("common.confirm")),1)])),_:1},8,["type","customColor"])]))]))])),_:3},16),[[Ye,e.visibleInner]])],2)),[[u,c.value]])])),_:3})}}}),Vl=$(0),Tn=$(0),R0=500,N0=Object.assign({name:"TuiDialog"},{__name:"index",props:{top:[String,Number],fullscreen:Boolean,modelValue:Boolean,title:String,modalClass:String,beforeClose:Function,overflow:Boolean,center:Boolean,destroyOnClose:Boolean,appendTo:String,modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},divider:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},dragContainment:{type:Boolean,default:!0},resetDragOnClose:{type:Boolean,default:!0},alignCenter:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},zIndex:{type:Number,default:null},width:{type:[String,Number],default:null},closeIcon:{type:String,default:"tui-icon ti-times"},positionType:{type:String,default:"transform",validator:e=>["absolute","fixed","transform"].includes(e)},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},customColor:[String,Array],typedConfig:Object},emits:["update:modelValue","open","opened","close","closed","confirm","open-auto-focus","close-auto-focus"],setup(e,{emit:t}){const{proxy:{$tMask:l,$tMaskClose:a,$tService:i}}=Tt(),{$gClickCounter:o,$gEscCounter:n,$optFloaterTo:s}=ze("$global",null),r=e,A=$(!0),c=Nt(),g=u((()=>r.appendTo||s.value)),v=t,f=$(!1),m=$(!1),y=$(null),b=$(null),V=$(0),w=Ee("dialog");let x=!1,k=!1;const S=u((()=>[$e("cpt-dlg",{...q("w",r.width,"smart"),...q("top",r.top,"smart"),z:r.zIndex||2001+V.value})]));let C=null;const B=()=>{C&&(C(),C=null)},z=()=>{r.beforeClose?r.beforeClose((()=>P())):P()},O=()=>{r.closeOnBackdrop&&1==Vl.value&&z()};Z((()=>n.value),(()=>{f.value&&r.closeOnEsc&&Vl.value==V.value&&z()}));const N=()=>{r.beforeClose?r.beforeClose((()=>P())):P(),v("confirm")},R=()=>(y.value.offsetWidth-b.value.dialogRef.offsetWidth)/2+30*(V.value-1)+"px",I=()=>{if(r.alignCenter){return(y.value.offsetHeight-b.value.dialogRef.offsetHeight)/2+"px"}return r.top?"string"==st(r.top)?r.top:"number"==st(r.top)?r.top+"px":void 0:100+30*V.value+"px"},M=async()=>{x||(x=!0,f.value=!0,v("open"),Vl.value++,V.value=Vl.value,r.modal&&!r.fullscreen&&(Tn.value++,l({appendTo:g.value,visible:f.value,modal:r.modal,position:"fixed",click:O})),await ye((()=>{v("opened"),v("open-auto-focus"),x=!1,m.value=!0})),r.lockScroll&&(()=>{if(!r.lockScroll)return;const e="has-dialog-open";document.body.classList.contains(e)||document.body.classList.add(e),C=()=>document.body.classList.remove(e)})(),await ye(),(()=>{const e=b.value?.dialogRef,t=y.value;if(e&&t&&!r.fullscreen){if("transform"!==r.positionType){if(!e.style?.left){const l=t.offsetWidth,a=e.offsetWidth;l>0&&a>0&&(e.style.left=R(),e.style.top=I())}return}(r.resetDragOnClose||!e.style.transform)&&(e.style.transform=`translate(${R()},${I()})`)}})())},P=async()=>{k||(k=!0,v("update:modelValue",!1),v("close"),Vl.value>0&&Vl.value--,r.modal&&!r.fullscreen&&(Tn.value>0&&Tn.value--,0==Tn.value&&a()),m.value=!1,0==Vl.value&&r.lockScroll&&B(),await ye((()=>{v("closed"),v("close-auto-focus"),k=!1,qe.s(w+"_close",(()=>{f.value=!1,r.draggable&&r.resetDragOnClose&&(b.value.dialogRef.style=null)}),R0)})))};return Z((()=>r.positionType),(e=>{b.value?.dialogRef&&(b.value.dialogRef.style=null)})),Z((()=>r.modelValue),(e=>{e?r.openDelay?setTimeout(M,r.openDelay):M():r.closeDelay?setTimeout(P,r.closeDelay):P()})),Be((()=>{A.value=!1})),dt((()=>{A.value=!0,B()})),(t,l)=>A.value?T("",!0):(d(),le(Lt,{key:0,to:g.value,fallback:"#tuiRoot",disabled:A.value},[f.value||!e.destroyOnClose?Re((d(),h("div",_e({key:0,class:"tui-dialog"},t.$attrs,{style:S.value,ref_key:"dialogWrapRef",ref:y}),[me(rs,{ref_key:"baseDialogRef",ref:b,fullscreen:e.fullscreen,title:e.title,center:e.center,overflow:e.overflow,divider:e.divider,showClose:e.showClose,dragContainment:e.dragContainment,draggable:e.draggable,closeIcon:e.closeIcon,positionType:e.positionType,type:e.type,customColor:e.customColor,typedConfig:e.typedConfig,visibleInner:m.value,appendTo:g.value,uid:p(w),hideHeader:e.hideHeader,hideFooter:e.hideFooter,onClose:z,onConfirm:N},el({default:G((()=>[ee(t.$slots,"default")])),_:2},[p(c).header?{name:"header",fn:G((()=>[ee(t.$slots,"header")])),key:"0"}:void 0,p(c).footer?{name:"footer",fn:G((()=>[ee(t.$slots,"footer")])),key:"1"}:void 0]),1032,["fullscreen","title","center","overflow","divider","showClose","dragContainment","draggable","closeIcon","positionType","type","customColor","typedConfig","visibleInner","appendTo","uid","hideHeader","hideFooter"])],16)),[[Ye,f.value]]):T("",!0)],8,["to","disabled"]))}}),I0=200,O0=Object.assign({name:"TuiDialogNative"},{__name:"native",props:{top:[String,Number],modelValue:{type:Boolean,default:!1},title:{type:String,default:""},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},customClass:{type:String,default:""},modal:{type:Boolean,default:!0},fullscreen:Boolean,overflow:Boolean,center:Boolean,divider:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},hideHeader:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},width:{type:[String,Number],default:null},closeIcon:{type:String,default:"tui-icon ti-times"},type:{type:String,default:"default",validator:e=>["default","invert","primary","success","warning","danger","info","emphasis"].includes(e)},customColor:[String,Array],typedConfig:Object},emits:["update:modelValue","open","close","opened","closed","confirm"],setup(e,{expose:t,emit:l}){const{$gMaskBlur:a}=ze("$global",null),i=e,o=l,n=Ee("nDialog"),s=$(null),r=$(null),A=$(!1),c=u((()=>({fullscreen:i.fullscreen,title:i.title,center:i.center,overflow:i.overflow,divider:i.divider,showClose:i.showClose,hideHeader:i.hideHeader,hideFooter:i.hideFooter,dragContainment:!1,draggable:!1,closeIcon:i.closeIcon,positionType:null,type:i.type,customColor:i.customColor,typedConfig:i.typedConfig,visibleInner:A.value}))),g=u((()=>$e("cpt-dlg",{...q("w",i.width,"smart"),...q("top",i.top,"smart")})));Z((()=>i.modelValue),(async e=>{e?await v():f()}));const v=async()=>{if(s.value){o("open");try{i.modal?s.value.showModal():s.value.show(),await ye(),A.value=!0,o("opened")}catch(e){console.error("打开对话框失败:",e)}}},f=()=>{s.value&&(o("close"),A.value=!1,setTimeout((()=>{s.value.close()}),I0))},m=()=>{o("update:modelValue",!1)},y=e=>{e.target===s.value&&i.closeOnBackdrop&&m()},b=()=>{m()},V=()=>{o("confirm"),m()},w=()=>{o("update:modelValue",!1),o("closed")},x=e=>{"Escape"===e.key&&!i.closeOnEsc&&e.preventDefault()};return t({open:()=>{o("update:modelValue",!0)},close:m,dialogRef:s,baseDialogRef:r}),Be((()=>{i.modelValue&&ye((()=>v())),i.closeOnEsc||Qe.add(document,"keydown",x,n)})),al((()=>{Qe.remove(document,"keydown",n)})),(t,l)=>(d(),h("dialog",{ref_key:"dialogRef",ref:s,class:O(["tui-dialog-native",`${e.customClass}`,"is-bg-"+(p(a)?"blur":"trans"),{"is-fullscreen":e.fullscreen}]),style:we(g.value),onClick:y,onClose:w},[e.modelValue?(d(),h("div",{key:0,class:O(["tui-dlgn-cont"]),onClick:l[0]||(l[0]=Ze((()=>{}),["stop"]))},[me(rs,_e({uid:p(n),ref_key:"baseDialogRef",ref:r},c.value,{onClose:b,onConfirm:V}),el({default:G((()=>[ee(t.$slots,"default")])),_:2},[t.$slots.header?{name:"header",fn:G((()=>[ee(t.$slots,"header")])),key:"0"}:void 0,t.$slots.footer?{name:"footer",fn:G((()=>[ee(t.$slots,"footer")])),key:"1"}:void 0]),1040,["uid"])])):T("",!0)],38))}}),D0=["title","aria-expanded"],M0=Object.assign({name:"TuiDockPanel"},{__name:"index",props:{modelValue:{type:Boolean,default:void 0},target:[String,Object],placement:{type:String,default:"right",validator:e=>["top","top-left","top-right","right","right-top","right-bottom","bottom","bottom-left","bottom-right","left","left-top","left-bottom"].includes(e)},alignOffset:{type:Number,default:20},defaultState:{type:String,default:"temporary",validator:e=>["expanded","collapsed","temporary"].includes(e)},mode:{type:String,default:"handle",validator:e=>["handle","partial"].includes(e)},temporaryDuration:{type:Number,default:3e3},collapseShape:{type:String,default:"square",validator:e=>["round","square","rail"].includes(e)},collapseSize:[String,Number],partialSize:{type:[String,Number],default:80},partialOpacity:{type:Number,default:.7},expandTrigger:{type:String,default:"hover",validator:e=>["hover","click","manual"].includes(e)},expandDelay:{type:Number,default:520},collapseDelay:{type:Number,default:580},draggable:{type:Boolean,default:!0},dragHandlePosition:Object,arrowIcon:String,width:[String,Number],height:[String,Number],maxSizeRatio:{type:[Boolean,Number],default:.5},zIndex:{type:Number,default:20},className:String},emits:["update:modelValue","change","expand","collapse","dragStart","drag","dragEnd"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=Ee("dpel"),n=$(null),s=$(null),r=$(null),A=je({width:null,height:null}),c=$("collapsed"!==a.defaultState),g=$(!1),v=$(!1),m=$(!1),y=$(!1);let b=null,V=null,w=null,x=null;const k=u((()=>void 0!==a.modelValue)),S=u((()=>k.value?a.modelValue:c.value)),C=u((()=>{const[e,t="center"]=a.placement.split("-");return{side:e,align:t}})),B=u((()=>C.value.side)),z=u((()=>["left","right"].includes(B.value))),N=u((()=>"partial"===a.mode)),R=u((()=>z.value?"y":"x")),I=(e,t="api")=>{S.value!==e&&(k.value||(c.value=e),i("update:modelValue",e),i("change",e,{source:t}),i(e?"expand":"collapse",{source:t}))},M=()=>{I(!S.value,"toggle")},P=(e="api")=>I(!0,e),D=(e="api")=>I(!1,e),_=()=>{clearTimeout(w),clearTimeout(x),w=null,x=null},E=()=>{_(),w=setTimeout((()=>{g.value&&P("hover")}),Math.max(0,a.expandDelay||0))},j=()=>{_(),x=setTimeout((()=>{g.value||D("hover")}),Math.max(0,a.collapseDelay||0))},G=()=>{const e=a.target;"string"!=typeof e?e?.value instanceof HTMLElement?r.value=e.value:e instanceof HTMLElement?r.value=e:r.value=n.value?.parentElement||null:r.value=document.querySelector(e)},L=u((()=>`is-attached-${B.value}`)),F=u((()=>!0===a.maxSizeRatio?.5:a.maxSizeRatio)),W=u((()=>$e("cpt-dp",{...q("w",a.width,{smartAppend:!0,zero:!0}),...q("h",a.height,{smartAppend:!0,zero:!0}),...q("targetMaxw",A.width,{append:"px",zero:!0}),...q("targetMaxh",A.height,{append:"px",zero:!0}),collapseSize:xn(a.collapseSize),partialSize:xn(a.partialSize),partialOp:a.partialOpacity,z:a.zIndex}))),H=u((()=>a.arrowIcon?a.arrowIcon.includes("tui-icon")?a.arrowIcon:`tui-icon ${a.arrowIcon}`:`tui-icon ${{top:"ti-caret-up",right:"ti-caret-right",bottom:"ti-caret-down",left:"ti-caret-left"}[B.value]}`)),U=u((()=>S.value?"Collapse":"Expand")),Y=u((()=>{const e={top:{top:8,right:8},bottom:{right:8,bottom:8},right:{right:8,bottom:8},left:{right:8,bottom:8}}[B.value];return Object.fromEntries(Object.entries({...e,...a.dragHandlePosition}).map((([e,t])=>[e,xn(t)])))})),X=u((()=>({enabled:a.draggable,trigger:".tui-dp-drag-hotspot",containment:r.value||!0,positionType:"absolute",axis:R.value,writeAxisOnly:!0,inAdpt:!!n.value?.parentElement?.closest?.("#tuiAdpt"),uid:o,debug:!0,onStart:e=>{v.value=!0,b=e.event,_(),y.value=!1,i("dragStart",e)},onDrag:e=>{b=e.event,y.value=!0,i("drag",e)},onEnd:e=>{b=e.event,m.value=!0,requestAnimationFrame((()=>{v.value=!1,g.value=(()=>{const e=s.value;if(!e||!b)return!1;const{clientX:t,clientY:l}=b,a=document.elementFromPoint(t,l);return!!a&&e.contains(a)})(),!g.value&&"hover"===a.expandTrigger&&j()})),i("dragEnd",e)}}))),Q=(e,t)=>{const{align:l}=C.value,i=a.alignOffset||0;return"center"===l?(e-t)/2:"bottom"===l||"right"===l?e-t-i:i},K=()=>{const e=r.value||n.value?.parentElement,t=F.value;if(!e||!1===t)return A.width=null,void(A.height=null);const l=Number.isFinite(Number(t))?Math.max(0,Number(t)):.5;A.width=e.clientWidth*l,A.height=e.clientHeight*l},J=()=>{const e=n.value,t=s.value;!e||!t||(z.value?(e.style.width="1px",e.style.height=`${t.offsetHeight}px`):(e.style.width=`${t.offsetWidth}px`,e.style.height="1px"))},te=()=>{const e=n.value,t=s.value,l=r.value||e?.parentElement;if(!e||!t||!l)return;K(),J();const a=B.value,i={top:null,right:null,bottom:null,left:null};"left"===a||"right"===a?(i[a]="0px",i.top=`${Q(l.clientHeight,t.offsetHeight)}px`):(i[a]="0px",i.left=`${Q(l.clientWidth,t.offsetWidth)}px`),["top","right","bottom","left"].forEach((t=>{null==i[t]?e.style.removeProperty(t):e.style[t]=i[t]}))},le=()=>{m.value=!1,ye(te)},ae=()=>{J(),(!a.draggable||!m.value)&&te()},ie=()=>{"hover"===a.expandTrigger&&(g.value=!0,E())},oe=()=>{"hover"===a.expandTrigger&&(v.value||(g.value=!1,j()))},ne=()=>{y.value?y.value=!1:"manual"!==a.expandTrigger&&("click"===a.expandTrigger&&M(),"hover"===a.expandTrigger&&(g.value=!S.value,S.value?j():E()))},se=()=>{!N.value||"click"!==a.expandTrigger||M()},re=()=>{clearTimeout(V),"collapsed"!==a.defaultState?(c.value=!0,"temporary"===a.defaultState&&(V=setTimeout((()=>{k.value||I(!1,"temporary")}),a.temporaryDuration))):c.value=!1};return Z((()=>a.defaultState),re),Z((()=>a.target),(()=>ye((()=>{m.value=!1,G(),te()})))),Z((()=>[a.placement,a.alignOffset]),le),Z((()=>a.maxSizeRatio),(()=>{K(),le()})),Z((()=>[a.width,a.height]),(()=>{a.draggable&&m.value||ye(te)})),Be((()=>{G(),re(),ye((()=>{G(),te()}))})),dt((()=>{clearTimeout(V),_()})),t({expand:P,collapse:D,toggle:M,getExpanded:()=>S.value}),(t,l)=>{const a=Je("tui-resize"),i=Je("tui-drag");return Re((d(),h("div",{ref_key:"rootRef",ref:n,class:O(["tui-dock-panel",`is-${B.value}`,`is-${e.collapseShape}`,`is-${e.mode}`,L.value,{"is-expanded":S.value,"is-collapsed":!S.value,"is-draggable":e.draggable},e.className]),style:we(W.value),onMouseenter:ie,onMouseleave:oe},[Re((d(),h("div",{ref_key:"shellRef",ref:s,class:"tui-dp-shell"},[N.value?T("",!0):(d(),h("button",{key:0,class:"tui-dp-arrow",type:"button",title:U.value,"aria-expanded":S.value,onMouseenter:ie,onClick:Ze(ne,["stop"])},[ee(t.$slots,"arrow",{expanded:S.value,collapsed:!S.value,placement:e.placement},(()=>[f("i",{class:O(H.value)},null,2)]))],40,D0)),f("div",{class:"tui-dp-body",onClick:se},[ee(t.$slots,"default",{expanded:S.value,collapsed:!S.value,placement:e.placement})]),e.draggable?(d(),h("div",{key:1,class:"tui-dp-drag-handle tui-dp-drag-hotspot",style:we(Y.value),title:"Drag","aria-hidden":"true"},[...l[0]||(l[0]=[f("i",{class:"tui-icon ti-arrow-move"},null,-1)])],4)):T("",!0)])),[[a,{callback:ae,uid:p(o)}]])],38)),[[i,X.value]])}}}),_0={key:1,class:"tui-drw-inner"},E0=Object.assign({name:"TuiDrawer"},{__name:"index",props:{modelValue:Boolean,direction:{type:String,default:"rtl",validator:e=>["ttb","btt","ltr","rtl"].includes(e)},appendTo:String,showClose:{type:Boolean,default:!1},closeOnBackdrop:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},size:{type:[String,Number],default:"auto"},padding:{type:Number,default:30},zIndex:{type:Number,default:2001},className:String},emits:["open","close","update:modelValue"],setup(e,{emit:t}){const{$gEscCounter:l,$optFloaterTo:a,$tState:i}=ze("$global",null),o=e,n=$(!1),s=$(!0),r=t,A=u((()=>o.appendTo||a.value)),c=u((()=>$e("cpt-drw",{size:"number"==st(o.size)?o.size+"px":o.size,pd:o.padding+"px",z:o.zIndex}))),p=()=>{n.value=!1,qe.s("drawerClose",(()=>{r("update:modelValue",!1)}),400)},g=u((()=>i.globalConfig.maskBlur));return Z((()=>l.value),(()=>{n.value&&o.closeOnEsc&&p()})),Z((()=>o.modelValue),(e=>{ye((()=>{n.value=e})),r(e?"open":"close",e)})),Be((()=>{s.value=!1})),dt((()=>{s.value=!0,qe.c("drawerClose")})),(t,l)=>{const a=ke("TuiMask");return s.value?T("",!0):(d(),le(Lt,{key:0,to:A.value,fallback:"#tuiRoot",disabled:s.value},[e.modal?(d(),le(a,{key:0,"model-value":n.value,modal:e.modal,onClick:l[0]||(l[0]=Ze((t=>e.closeOnBackdrop?p():null),["self"]))},null,8,["model-value","modal"])):T("",!0),me(Ue,{name:"fade"},{default:G((()=>[n.value?(d(),h("div",{key:0,class:O(["tui-drawer",e.className,""+(g.value?"is-bg-blur":"is-bg-trans"),`is-dir-${e.direction}`,""+(e.modal?"is-mask-on":"is-mask-off")]),style:we(c.value)},[e.showClose?(d(),h("div",{key:0,class:"tui-drw-close",onClick:p},[...l[1]||(l[1]=[f("i",{class:"tui-icon ti-times"},null,-1)])])):T("",!0),n.value?(d(),h("div",_0,[ee(t.$slots,"default")])):T("",!0)],6)):T("",!0)])),_:3})],8,["to","disabled"]))}}}),L0=e=>!!e?.closest?.("#tuiAdpt, .tui-adpt-cont"),Io=(e={},t=null,l=null)=>{const a="function"==typeof e.scale?e.scale(t,l):e.scale,i=l||t?.currentTarget||t?.target;if("adaptive"===a||e.inAdpt||"auto"===a&&L0(i)){const{scaleX:e=1,scaleY:t=1}=Tl.adpt?.info||{};return{x:e||1,y:t||1}}return!1===a||null===a?{x:1,y:1}:"number"==typeof a?{x:a||1,y:a||1}:a&&"object"==typeof a?{x:a.x??a.scaleX??1,y:a.y??a.scaleY??1}:{x:1,y:1}},F0={snap:e=>dl.modifiers.snap(e),snapSize:e=>dl.modifiers.snapSize(e),snapEdges:e=>dl.modifiers.snapEdges(e),restrict:e=>dl.modifiers.restrict(e),restrictRect:e=>dl.modifiers.restrictRect(e),restrictSize:e=>dl.modifiers.restrictSize(e),restrictEdges:e=>dl.modifiers.restrictEdges(e),aspectRatio:e=>dl.modifiers.aspectRatio(e)};Object.freeze(Object.keys(F0));const j0=(e={},t=[])=>t.reduce(((t,l)=>(void 0!==e[l]&&(t[l]=e[l]),t)),{}),W0=(e={},t={})=>({...j0(e,["manualStart","hold","max","maxPerElement","allowFrom","ignoreFrom","mouseButtons","styleCursor","cursorChecker","actionChecker","deltaSource","origin"]),...t}),G0=Object.freeze({x:0,y:0,scale:1,rotate:0}),H0=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),kt=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?l:t},ul=(e,t,l)=>{const a=kt(e,t);return Number.isFinite(t)&&a<t?t:Number.isFinite(l)&&a>l?l:a},Ut=(e={})=>({width:Math.max(0,kt(e.width,0)),height:Math.max(0,kt(e.height,0))}),K0=(e=0)=>{if(Array.isArray(e)){return{top:kt(e[0],0),right:kt(e[1]??e[0],0),bottom:kt(e[2]??e[0],0),left:kt(e[3]??e[1]??e[0],0)}}const t=kt(e,0);return{top:t,right:t,bottom:t,left:t}},us=(e,t=0)=>{const l=Ut(e),a=K0(t),i=Math.max(0,l.width-a.left-a.right),o=Math.max(0,l.height-a.top-a.bottom);return{size:{width:i,height:o},center:{x:a.left+i/2,y:a.top+o/2},inset:a}},bl=(e,t=G0)=>{const l=H0(e)?e:{};return{x:kt(l.x,t.x),y:kt(l.y,t.y),scale:kt(l.scale,t.scale||1),rotate:kt(l.rotate??t.rotate??0,0)}},jl=e=>{const t=kt(e,0)%360;return t<0?t+360:t},U0=(e,t=0)=>{const l=jl(e),a=kt(t,0),i=Math.round((a-l)/360);return[i-1,i,i+1].map((e=>l+360*e)).reduce(((e,t)=>Math.abs(t-a)<Math.abs(e-a)?t:e))},Ra=(e,t,l=0)=>{const a=Ut(e),i=kt(t,1),o=jl(l)*Math.PI/180,n=Math.abs(Math.cos(o)),s=Math.abs(Math.sin(o)),r=a.width*i,u=a.height*i;return{width:r*n+u*s,height:r*s+u*n}},cs=(e,t,l=1,a=0,i=0)=>{const o=us(e,i);return{x:o.center.x,y:o.center.y,scale:l,rotate:jl(a)}},ds=({fit:e="none",viewportSize:t,contentSize:l,rotate:a=0,minScale:i=.2,maxScale:o=4,fitInset:n=0}={})=>{const s=us(t,n).size,r=Ut(l);if(!(s.width&&s.height&&r.width&&r.height))return 1;const u=Ra(r,1,a),A=s.width/u.width,d=s.height/u.height;let c=1;return"contain"===e&&(c=Math.min(A,d)),"cover"===e&&(c=Math.max(A,d)),"width"===e&&(c=A),"height"===e&&(c=d),ul(c,i,o)},Oo=(e={})=>{const t=ds(e);return cs(e.viewportSize,e.contentSize,t,e.rotate,e.fitInset)},Y0=(e,t,l=0)=>ds({fit:"cover",viewportSize:e,contentSize:t,rotate:l,minScale:0,maxScale:Number.POSITIVE_INFINITY}),As=(e,t,l)=>{const a=Ut(l),i=bl(t),o=i.scale||1,n=jl(i.rotate)*Math.PI/180,s=Math.cos(n),r=Math.sin(n),u=kt(e?.x,0)-i.x,A=kt(e?.y,0)-i.y;return{x:a.width/2+(u*s+A*r)/o,y:a.height/2+(-u*r+A*s)/o}},Q0=(e,t,l)=>{const a=Ut(l),i=bl(t),o=jl(i.rotate)*Math.PI/180,n=Math.cos(o),s=Math.sin(o),r=(kt(e?.x,0)-a.width/2)*i.scale,u=(kt(e?.y,0)-a.height/2)*i.scale;return{x:i.x+r*n-u*s,y:i.y+r*s+u*n}},Do=(e,t,l)=>{const a=bl(e),i=Ut(t),o=Ut(l),n=Ra(o,a.scale,a.rotate);if(!(i.width&&i.height&&o.width&&o.height))return a;const s=n.width<=i.width?i.width/2:i.width-n.width/2,r=n.width<=i.width?i.width/2:n.width/2,u=n.height<=i.height?i.height/2:i.height-n.height/2,A=n.height<=i.height?i.height/2:n.height/2;return{...a,x:ul(a.x,s,r),y:ul(a.y,u,A)}},Wn=(e,t,l,a="none",i={})=>{const o=bl(e),n=Ut(t),s=Ut(l);if("viewport"===a)return n.width&&n.height?{...o,x:ul(o.x,0,n.width),y:ul(o.y,0,n.height)}:o;if("content"===a)return Do(o,n,s);if("cover"===a){if(!(n.width&&n.height&&s.width&&s.height))return o;const e=kt(i.minScale,0),t=kt(i.maxScale,Number.POSITIVE_INFINITY),l=ul(Math.max(o.scale,Y0(n,s,o.rotate)),e,t);return Do({...o,scale:l},n,s)}return o},Mo=({viewport:e,viewportSize:t,contentSize:l,nextScale:a,point:i,origin:o="cursor",bounds:n="none",minScale:s=0,maxScale:r=Number.POSITIVE_INFINITY}={})=>{const u=bl(e),A=Ut(l),d=kt(a,u.scale);if("cursor"!==o||!i||!A.width||!A.height)return Wn({...u,scale:d},t,l,n,{minScale:s,maxScale:r});const c=As(i,u,A),p=jl(u.rotate)*Math.PI/180,g=Math.cos(p),v=Math.sin(p),f=(c.x-A.width/2)*d,h=(c.y-A.height/2)*d,m={...u,scale:d,x:kt(i.x,0)-(f*g-h*v),y:kt(i.y,0)-(f*v+h*g)};return Wn(m,t,A,n,{minScale:s,maxScale:r})},X0=["title","aria-label","disabled","onClick"],fs=Object.assign({name:"TuiInxViewport"},{__name:"index",props:{modelValue:Object,defaultValue:Object,interactive:{type:Boolean,default:void 0},defaultInteractive:Boolean,showControls:{type:Boolean,default:!0},controlItems:{type:Array,default:()=>["toggle","rotateLeft","zoomOut","zoomIn","rotateRight","reset"]},controlLabels:Object,controlPlacement:{type:String,default:"bottom",validator:e=>["top","bottom"].includes(e)},disabled:Boolean,draggable:{type:Boolean,default:!0},zoomable:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},dblclickZoom:{type:Boolean,default:!0},wheelMode:{type:String,default:"zoom",validator:e=>["zoom","ctrl-zoom","disabled"].includes(e)},zoomOrigin:{type:String,default:"cursor",validator:e=>["cursor","center"].includes(e)},minScale:{type:Number,default:.2},maxScale:{type:Number,default:4},scaleStep:{type:Number,default:.12},dblclickScale:{type:Number,default:2},rotatable:{type:Boolean,default:!0},rotateStep:{type:Number,default:90},pinchZoom:{type:Boolean,default:!0},pinchRotate:Boolean,resetKey:[String,Number,Boolean],transition:{type:Boolean,default:!0},transitionDuration:{type:Number,default:180},bounds:{type:String,default:"none",validator:e=>["none","viewport","content","cover"].includes(e)},fit:{type:String,default:"contain",validator:e=>["none","contain","cover","width","height"].includes(e)},fitInset:[Number,Array],contentSize:Object,scale:{type:[Number,Object,String,Function],default:"auto"},inAdpt:Boolean,ignore:String,exclude:String,contentEvents:{type:String,default:"auto",validator:e=>["auto","disabled","interactive"].includes(e)},contentInteractiveInControl:Boolean,debug:Boolean,className:[String,Array,Object],contentClassName:[String,Array,Object]},emits:["update:modelValue","update:interactive","change","drag-start","drag","drag-end","zoom","rotate","gesture-start","gesture","gesture-end","reset","fit","debug"],setup(e,{expose:t,emit:l}){let a=0;const i=Object.freeze(["toggle","rotateLeft","zoomOut","zoomIn","rotateRight","reset"]),o=Object.freeze({enterInteractive:"Enter operation mode",leaveInteractive:"Leave operation mode",rotateLeft:"Rotate left",zoomOut:"Zoom out",zoomIn:"Zoom in",rotateRight:"Rotate right",reset:"Reset viewport"}),n=e,s=l,{proxy:r}=Tt()||{},A="tuiInxViewport_"+a++,c=$(null),p=$(null),g=$(null),v=$({width:0,height:0}),m=$({width:0,height:0}),y=$(bl(n.defaultValue)),b=$(n.defaultInteractive),V=$(!1),w=$(!1),x=$(!1),q=$(!1),k=$(!1),S=$("init");let C=null,B=null,z=!1;const N=e=>null!=e&&"object"==typeof e&&!Array.isArray(e),R=(e,t)=>N(e)&&Number.isFinite(Number(e[t])),I=(e,t)=>{const l=bl(e,t);return N(e)?{...l,x:R(e,"x")?l.x:l.x+(R(e,"offsetX")?Number(e.offsetX):0),y:R(e,"y")?l.y:l.y+(R(e,"offsetY")?Number(e.offsetY):0)}:l},M=u((()=>null!=n.modelValue)),P=u((()=>I(M.value?n.modelValue:y.value,y.value))),D=u({get:()=>n.interactive??b.value,set:e=>{void 0===n.interactive&&(b.value=e),s("update:interactive",e)}}),_=u((()=>!n.disabled&&D.value)),E=u((()=>_.value&&n.draggable)),j=u((()=>_.value&&n.zoomable)),G=u((()=>n.draggable||n.pinchZoom||n.rotatable&&n.pinchRotate)),L=u((()=>n.pinchZoom||n.rotatable&&n.pinchRotate)),F=u((()=>!n.disabled&&q.value&&G.value)),W=u((()=>!n.disabled&&(F.value||D.value&&L.value))),H=u((()=>Ut(n.contentSize||m.value))),U=u((()=>n.bounds)),Y=u((()=>Ra(H.value,P.value.scale,P.value.rotate))),X=u((()=>n.transition&&!V.value&&!w.value&&!["drag","wheel","gesture","init","resize","content-resize","config"].includes(S.value))),Q=(e,t)=>null==e?t:"object"==typeof e?r?.$tService?.i18n?.(e)||t:e,K=(e,t)=>r?.$tService?.i18n?.(`inxViewport.controls.${e}`)||t,J=u((()=>Object.keys(o).reduce(((e,t)=>({...e,[t]:Q(n.controlLabels?.[t],K(t,o[t]))})),{}))),te=u((()=>["tui-inx-viewport",`is-control-${n.controlPlacement}`,{"is-disabled":n.disabled,"is-interactive":D.value,"is-dragging":V.value,"is-gesturing":w.value,"is-gesture-enabled":W.value,"is-touch-gesture-enabled":F.value,"is-content-muted":le.value},n.className])),le=u((()=>"disabled"===n.contentEvents||"interactive"!==n.contentEvents&&(D.value&&!n.contentInteractiveInControl))),ae=u((()=>{const e=P.value,t=H.value,l=e.x-t.width/2,a=e.y-t.height/2;return{width:`${t.width||1}px`,height:`${t.height||1}px`,transform:`translate(${l}px, ${a}px) scale(${e.scale}) rotate(${e.rotate}deg)`,transition:X.value?`transform ${n.transitionDuration}ms ease`:"none"}})),ie=u((()=>({interactive:D.value,viewport:P.value,visualSize:Y.value,labels:J.value,items:n.controlItems,zoomIn:ke,zoomOut:Se,rotateLeft:$e,rotateRight:ze,rotateTo:Te,rotateBy:Ce,reset:Me,fitToContent:Ie,setInteractive:e=>{D.value=!!e}}))),oe=u((()=>{const e=J.value,t={toggle:{icon:D.value?"ti-cursor-click":"ti-arrow-move",label:D.value?e.leaveInteractive:e.enterInteractive,action:Pe},rotateLeft:{icon:"ti-rotate-ccw",label:e.rotateLeft,action:$e,hidden:!n.rotatable},zoomOut:{icon:"ti-minus",label:e.zoomOut,action:Se},zoomIn:{icon:"ti-plus",label:e.zoomIn,action:ke},rotateRight:{icon:"ti-rotate-cw",label:e.rotateRight,action:ze,hidden:!n.rotatable},reset:{icon:"ti-reload",label:e.reset,action:Me}};return(Array.isArray(n.controlItems)?n.controlItems:i).map((e=>({key:e,...t[e]}))).filter((e=>e.action&&!e.hidden))})),ne=(e,t={})=>{n.debug&&s("debug",{phase:e,viewport:P.value,viewportSize:v.value,contentSize:H.value,visualSize:Y.value,interactive:D.value,supportsTouch:q.value,touchGesture:F.value,gesture:W.value,...t})},se=(e,t="change",l=null)=>{const a=bl(e,P.value);S.value=t;const i=Wn({...a,scale:ul(a.scale,n.minScale,n.maxScale)},v.value,H.value,U.value,{minScale:n.minScale,maxScale:n.maxScale});return M.value||(y.value=i),s("update:modelValue",i),s("change",{value:i,source:t,event:l}),ne(t,{event:l}),i},re=(e=(M.value?n.modelValue:n.defaultValue))=>{const t=R(e,"rotate")?Number(e.rotate):0;return"none"!==n.fit?Oo({fit:n.fit,viewportSize:v.value,contentSize:H.value,rotate:t,minScale:n.minScale,maxScale:n.maxScale,fitInset:n.fitInset}):cs(v.value,H.value,1,t,n.fitInset)},ue=()=>I(n.defaultValue,re(n.defaultValue)),Ae=()=>{if(k.value||!(()=>{const e=v.value,t=H.value;return!!(e.width&&e.height&&("none"===n.fit||t.width&&t.height))})())return;const e=M.value?I(n.modelValue,re(n.modelValue)):ue(),t=Wn(e,v.value,H.value,U.value,{minScale:n.minScale,maxScale:n.maxScale});y.value=t,s("update:modelValue",t),s("change",{value:t,source:"init",event:null}),k.value=!0,ne("init")},de=e=>{v.value=Ut(e),k.value?se(P.value,"resize"):Ae()},ce=e=>{n.contentSize||(m.value=Ut(e)),k.value?se(P.value,"content-resize"):Ae()},pe=e=>{const t=c.value;if(!t)return{x:0,y:0};const l=(e=>{if(Number.isFinite(e?.clientX)&&Number.isFinite(e?.clientY))return{x:e.clientX,y:e.clientY};const t=e?.touches||e?.originalEvent?.touches,l=e?.interaction?.pointers?.map((e=>e.pointer||e)),a=Array.from(t?.length?t:l||[]).filter((e=>Number.isFinite(e?.clientX)&&Number.isFinite(e?.clientY)));return a.length?a.reduce(((e,t)=>({x:e.x+t.clientX/a.length,y:e.y+t.clientY/a.length})),{x:0,y:0}):null})(e);if(!l)return{x:v.value.width/2,y:v.value.height/2};const a=t.getBoundingClientRect(),i=Io({scale:n.scale,inAdpt:n.inAdpt},e,t);return{x:(l.x-a.left)/(i.x||1),y:(l.y-a.top)/(i.y||1)}},ve=e=>{const t=e?.target;if(!t?.closest)return!1;if(t.closest(".tui-inxvp-controls"))return!0;const l=n.ignore||n.exclude;return!!l&&!!t.closest(l)},fe=e=>x.value||(e=>e?.interaction?.pointers?.length||e?.pointers?.length||e?.touches?.length||e?.originalEvent?.touches?.length||0)(e)>1,he=()=>W.value,me=e=>{he()&&e.preventDefault?.()},be=e=>{he()&&(e.touches?.length||0)>1&&(x.value=!0,V.value=!1,e.preventDefault())},Ve=e=>{he()&&(e.touches?.length||0)>1&&(x.value=!0,e.preventDefault())},xe=e=>{(e.touches?.length||0)<=1&&(x.value=!1,B=null)};function qe(e,t={}){const l=Mo({viewport:P.value,viewportSize:v.value,contentSize:H.value,nextScale:ul(e,n.minScale,n.maxScale),point:t.point,origin:t.origin||n.zoomOrigin,bounds:U.value,minScale:n.minScale,maxScale:n.maxScale}),a=se(l,t.source||"zoom",t.event||null);return s("zoom",{value:a,scale:a.scale,source:t.source||"zoom",event:t.event||null}),a}function ke(){return qe(P.value.scale*(1+n.scaleStep),{source:"zoom-in",origin:"center"})}function Se(){return qe(P.value.scale*(1-n.scaleStep),{source:"zoom-out",origin:"center"})}function Te(e,t={}){if(!n.rotatable)return P.value;const l=U0(e,P.value.rotate),a=se({...P.value,rotate:l},t.source||"rotate",t.event||null);return s("rotate",{value:a,rotate:a.rotate,source:t.source||"rotate",event:t.event||null}),a}function Ce(e,t={}){return Te(P.value.rotate+e,t)}function $e(){return Ce(-n.rotateStep,{source:"rotate-left"})}function ze(){return Ce(n.rotateStep,{source:"rotate-right"})}function Oe(e,t){return se({...P.value,x:e,y:t},"pan-to")}function Ne(e,t){const l=P.value;return Oe(l.x+e,l.y+t)}function Ie(e=("none"===n.fit?"contain":n.fit)){const t=Oo({fit:e,viewportSize:v.value,contentSize:H.value,rotate:P.value.rotate,minScale:n.minScale,maxScale:n.maxScale,fitInset:n.fitInset}),l=se(t,"fit");return s("fit",{value:l,fit:e}),l}function Me(){z=!1,k.value=!1;const e=ue();k.value=!0;const t=se(e,"reset");return s("reset",{value:t}),t}const Pe=()=>{n.disabled||(D.value=!D.value)},De=e=>{if(!j.value||!n.wheelZoom||"disabled"===n.wheelMode||"ctrl-zoom"===n.wheelMode&&!e.ctrlKey&&!e.metaKey||ve(e))return;e.preventDefault();const t=P.value.scale*(e=>{const t=Number(e.deltaY)||0,l=1===e.deltaMode?16*t:2===e.deltaMode?t*(v.value.height||1):t;return e.ctrlKey||e.metaKey||0===e.deltaMode&&Math.abs(t)<50?Math.exp(ul(.01*-l,-n.scaleStep,n.scaleStep)):1+(l>0?-1:1)*n.scaleStep})(e);qe(t,{source:"wheel",origin:n.zoomOrigin,point:pe(e),event:e})},_e=e=>{if(!j.value||!n.dblclickZoom||ve(e))return;const t=P.value;qe(Math.abs(t.scale-1)<.01?n.dblclickScale:1,{source:"dblclick",origin:n.zoomOrigin,point:pe(e),event:e})},Ee=u((()=>[".tui-inxvp-controls",n.ignore,n.exclude].filter(Boolean).join(", "))),je=()=>{const e=c.value;e&&(C?.unset?.(),C=null,(E.value||W.value)&&(C=dl(e),E.value&&C.draggable({ignoreFrom:Ee.value,listeners:{start(e){fe(e)?V.value=!1:(V.value=!0,s("drag-start",{value:P.value,event:e}))},move(t){if(fe(t))return;const l=Io({scale:n.scale,inAdpt:n.inAdpt},t,e),a=(t.dx||0)/(l.x||1),i=(t.dy||0)/(l.y||1),o=Ne(a,i);s("drag",{value:o,dx:a,dy:i,event:t})},end(e){V.value=!1,s("drag-end",{value:P.value,event:e})}}}),W.value&&C.gesturable(W0({ignoreFrom:Ee.value},{listeners:{start(e){w.value=!0,x.value=!0,V.value=!1,B=pe(e),s("gesture-start",{value:P.value,event:e})},move(e){const t=pe(e),l=P.value,a=n.draggable&&B?t.x-B.x:0,i=n.draggable&&B?t.y-B.y:0,o={...l,x:l.x+a,y:l.y+i};B=t;const r=Math.max(.05,1+(e.ds||0)),u=n.pinchZoom?o.scale*r:o.scale,A=n.rotatable&&n.pinchRotate&&e.da||0;Math.abs(A)>.01&&(z=!0);const d=o.rotate+A,c=n.pinchZoom?Mo({viewport:o,viewportSize:v.value,contentSize:H.value,nextScale:ul(u,n.minScale,n.maxScale),point:t,origin:"cursor",bounds:U.value,minScale:n.minScale,maxScale:n.maxScale}):o,p=se({...c,rotate:d},"gesture",e);s("gesture",{value:p,event:e})},end(e){w.value=!1,x.value=!1,B=null,s("gesture-end",{value:P.value,event:e})}}}))))};return Z((()=>n.modelValue),(()=>{M.value&&(y.value=I(n.modelValue,y.value))}),{deep:!0}),Z((()=>[E.value,W.value,n.ignore,n.exclude,n.pinchZoom,n.pinchRotate,n.rotatable]),(()=>{je()})),Z((()=>n.pinchRotate),((e,t)=>{t&&!e&&(()=>{if(!z||(z=!1,!k.value))return;const e=P.value;if(Math.abs(e.rotate)<.01)return;const t=se({...e,rotate:0},"pinch-rotate-disabled");s("rotate",{value:t,rotate:t.rotate,source:"pinch-rotate-disabled",event:null})})()})),Z((()=>[n.minScale,n.maxScale,n.bounds,n.rotateStep]),(()=>{k.value&&se(P.value,"config")})),Z((()=>n.resetKey),(()=>{k.value&&Me()})),Z((()=>n.fit),(e=>{k.value&&"none"!==e&&Ie(e)})),Z((()=>n.fitInset),(()=>{k.value&&"none"!==n.fit&&Ie(n.fit)}),{deep:!0}),Be((async()=>{q.value=!(typeof window>"u"||typeof navigator>"u")&&(Number(navigator.maxTouchPoints||0)>0||"ontouchstart"in window),c.value?.addEventListener("wheel",De,{passive:!1}),c.value?.addEventListener("gesturestart",me,{passive:!1,capture:!0}),c.value?.addEventListener("gesturechange",me,{passive:!1,capture:!0}),c.value?.addEventListener("gestureend",me,{passive:!1,capture:!0}),c.value?.addEventListener("touchstart",be,{passive:!1,capture:!0}),c.value?.addEventListener("touchmove",Ve,{passive:!1,capture:!0}),c.value?.addEventListener("touchend",xe,{passive:!1,capture:!0}),c.value?.addEventListener("touchcancel",xe,{passive:!1,capture:!0}),await ye(),await(ot.w2?.()),(()=>{const e=c.value,t=g.value;e&&(v.value={width:e.clientWidth||e.offsetWidth||0,height:e.clientHeight||e.offsetHeight||0}),t&&!n.contentSize&&(m.value={width:t.offsetWidth||t.scrollWidth||t.clientWidth||0,height:t.offsetHeight||t.scrollHeight||t.clientHeight||0})})(),Ae(),je()})),dt((()=>{c.value?.removeEventListener("wheel",De),c.value?.removeEventListener("gesturestart",me,{capture:!0}),c.value?.removeEventListener("gesturechange",me,{capture:!0}),c.value?.removeEventListener("gestureend",me,{capture:!0}),c.value?.removeEventListener("touchstart",be,{capture:!0}),c.value?.removeEventListener("touchmove",Ve,{capture:!0}),c.value?.removeEventListener("touchend",xe,{capture:!0}),c.value?.removeEventListener("touchcancel",xe,{capture:!0}),C?.unset?.(),C=null})),t({reset:Me,zoomIn:ke,zoomOut:Se,zoomTo:qe,panTo:Oe,panBy:Ne,fitToContent:Ie,fitWidth:function(){return Ie("width")},fitHeight:function(){return Ie("height")},rotateTo:Te,rotateBy:Ce,rotateLeft:$e,rotateRight:ze,screenToContent:e=>As(e,P.value,H.value),contentToScreen:e=>Q0(e,P.value,H.value)}),(t,l)=>{const a=Je("tui-resize");return Re((d(),h("div",{ref_key:"rootRef",ref:c,class:O(te.value),onDblclick:_e},[f("div",{ref_key:"stageRef",ref:p,class:"tui-inxvp-stage",style:we(ae.value)},[Re((d(),h("div",{ref_key:"contentRef",ref:g,class:O(["tui-inxvp-content",e.contentClassName])},[ee(t.$slots,"default",mt(qt({viewport:P.value,interactive:D.value,visualSize:Y.value,dragging:V.value})))],2)),[[a,{callback:ce,uid:`${A}_content`,threshold:1}]]),le.value?(d(),h("div",{key:0,class:"tui-inxvp-event-shield",onClick:l[0]||(l[0]=Ze((()=>{}),["stop"]))})):T("",!0)],4),ee(t.$slots,"controls",mt(qt(ie.value)),(()=>[e.showControls?(d(),h("div",{key:0,class:"tui-inxvp-controls",onDblclick:l[1]||(l[1]=Ze((()=>{}),["stop"]))},[(d(!0),h(ge,null,Fe(oe.value,(t=>(d(),h("button",{key:t.key,type:"button",class:"tui-inxvp-btn",title:t.label,"aria-label":t.label,disabled:e.disabled,onClick:Ze(t.action,["stop"])},[f("i",{class:O(["tui-icon",t.icon])},null,2)],8,X0)))),128))],32)):T("",!0)]))],34)),[[a,{callback:de,uid:`${A}_root`,threshold:1}]])}}}),Z0={class:"tui-lbox-advanced-title"},J0=Object.assign({name:"TuiLightboxAdvancedPanel"},{__name:"advancedPanel",props:{item:{type:Object,default:()=>({})},buttonConfig:{type:Object,default:()=>({})},labels:{type:Object,default:()=>({})},placement:{type:String,default:"bottom"},zIndex:{type:Number,default:2006},formModel:{type:Object,default:()=>({})},preset:String,fit:String,bounds:String,presetOptions:{type:Array,default:()=>[]},fitOptions:{type:Array,default:()=>[]},boundsOptions:{type:Array,default:()=>[]}},emits:["update:preset","update:fit","update:bounds"],setup(e,{emit:t}){const l=e,a=t,i=u({get:()=>l.preset,set:e=>a("update:preset",e)}),o=u({get:()=>l.fit,set:e=>a("update:fit",e)}),n=u({get:()=>l.bounds,set:e=>a("update:bounds",e)});return(t,l)=>{const a=ke("TuiButton"),s=ke("TuiRadio"),r=ke("TuiFormItem"),u=ke("TuiForm"),A=ke("TuiPopPanel");return d(),le(A,{trigger:"click",placement:e.placement,"z-index":e.zIndex,offset:8,"show-delay":40,"hide-delay":120,showArrow:"","panel-class-name":"tui-lbox-advanced-pop"},{trigger:G((()=>[me(a,_e(e.buttonConfig,{title:e.item.label,"aria-label":e.item.label,disabled:e.item.disabled,onClick:l[0]||(l[0]=Ze((()=>{}),["stop"]))}),null,16,["title","aria-label","disabled"])])),default:G((()=>[f("div",{class:"tui-lbox-advanced-panel",onClick:l[4]||(l[4]=Ze((()=>{}),["stop"]))},[f("div",Z0,X(e.labels.advancedTitle),1),me(u,{class:"tui-lbox-advanced-form",model:e.formModel,"label-position":"top"},{default:G((()=>[me(r,{label:e.labels.viewPreset,prop:"preset"},{default:G((()=>[me(s,{modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=e=>i.value=e),appearance:"button","default-icon":!1,options:e.presetOptions,size:"small"},null,8,["modelValue","options"])])),_:1},8,["label"]),me(r,{label:e.labels.fitMode,prop:"fit"},{default:G((()=>[me(s,{modelValue:o.value,"onUpdate:modelValue":l[2]||(l[2]=e=>o.value=e),appearance:"button","default-icon":!1,options:e.fitOptions,size:"small"},null,8,["modelValue","options"])])),_:1},8,["label"]),me(r,{label:e.labels.boundsMode,prop:"bounds"},{default:G((()=>[me(s,{modelValue:n.value,"onUpdate:modelValue":l[3]||(l[3]=e=>n.value=e),appearance:"button","default-icon":!1,options:e.boundsOptions,size:"small"},null,8,["modelValue","options"])])),_:1},8,["label"])])),_:1},8,["model"])])])),_:1},8,["placement","z-index"])}}}),_o=Object.freeze({prev:"Previous image",next:"Next image",zoomOut:"Zoom out",zoomIn:"Zoom in",fit:"Fit to screen",advanced:"Advanced view",advancedTitle:"View settings",viewPreset:"Preset",fitMode:"Fit",boundsMode:"Bounds",presetContain:"Full view",presetCover:"Fill without blank",presetFree:"Free drag",presetWidth:"Fit width",presetCustom:"Custom",fitNone:"none",fitContain:"contain",fitCover:"cover",fitWidth:"width",fitHeight:"height",boundsNone:"none",boundsViewport:"viewport",boundsContent:"content",boundsCover:"cover",rotateLeft:"Rotate left",rotateRight:"Rotate right",reset:"Reset view",download:"Download",close:"Close",loading:"Loading image",error:"Image failed to load",empty:"No image"}),eS=Object.freeze(["prev","next","zoomOut","zoomIn","fit","advanced","rotateLeft","rotateRight","reset","download","close"]),tS=Object.freeze(["bar","group","split"]),lS=Object.freeze(["top","bottom"]),nS=Object.freeze(["rect","circle","text"]),aS=Object.freeze(["center","edge","reverse"]),oS=48,iS=20,Sn=Object.freeze(["none","contain","cover","width","height"]),$n=Object.freeze(["none","viewport","content","cover"]),aa=Object.freeze([{value:"contain",fit:"contain",bounds:"viewport",labelKey:"presetContain"},{value:"cover",fit:"cover",bounds:"cover",labelKey:"presetCover"},{value:"free",fit:"contain",bounds:"none",labelKey:"presetFree"},{value:"width",fit:"width",bounds:"viewport",labelKey:"presetWidth"}]),sS=Object.freeze(["type","decoType","size","customColor","iconPosition","nativeType","decoDirection","borderRadius","decoThickness","decoOffset","decoSize","plain","round","circle","link","text","disabled","textWithBG","icon","class"]),ps=Object.freeze({src:"src",thumb:"thumb",title:"title",alt:"alt",description:"description",downloadUrl:"downloadUrl"}),rS=(e={})=>({...ps,...e||{}}),uS=(e,t=ps)=>"string"==typeof e?{raw:e,src:e,thumb:e,title:"",alt:"",description:"",downloadUrl:e}:e&&"object"==typeof e?{raw:e,src:e[t.src]||"",thumb:e[t.thumb]||e[t.src]||"",title:e[t.title]||"",alt:e[t.alt]||e[t.title]||"",description:e[t.description]||"",downloadUrl:e[t.downloadUrl]||e[t.src]||""}:{raw:e,src:"",thumb:"",title:"",alt:"",description:"",downloadUrl:""},cS=({src:e,images:t,keyMap:l})=>(Array.isArray(t)&&t.length?t:e?[e]:[]).map((e=>uS(e,rS(l)))),kn=(e,t)=>{if(!t)return 0;const l=Number(e);return Number.isFinite(l)?Math.min(Math.max(Math.trunc(l),0),t-1):0},Jt=(e,t=0)=>{const l=Number(e);return Number.isFinite(l)?l:t},qn=(e,t,l)=>t.includes(e)?e:l,dS=(e=0)=>Array.isArray(e)?{x:Jt(e[0]),y:Jt(e[1])}:{x:0,y:Jt(e)},Gn=(e=0)=>{if(Array.isArray(e)){return{top:Jt(e[0]),right:Jt(e[1]??e[0]),bottom:Jt(e[2]??e[0]),left:Jt(e[3]??e[1]??e[0])}}if(e&&"object"==typeof e)return{top:Jt(e.top),right:Jt(e.right),bottom:Jt(e.bottom),left:Jt(e.left)};const t=Jt(e);return{top:t,right:t,bottom:t,left:t}},AS=(e,t,l)=>{const a=Gn(e??20);return"bar"===t&&(a[l]+=48),a},fS=(e,t)=>{const l=Gn(e),a=Gn(t);return[l.top+a.top,l.right+a.right,l.bottom+a.bottom,l.left+a.left]},pS=(e={})=>sS.reduce(((t,l)=>(void 0!==e[l]&&(t[l]=e[l]),t)),{}),gS=(e,t={})=>"circle"===e?{...t,circle:!0,text:!1,link:!1}:"text"===e?{...t,circle:!1,text:!0,link:!0}:{...t,circle:!1,text:!1,link:!1},vS=({props:e,labels:t,hasMultiple:l,canPrev:a,canNext:i,activeItem:o,imageError:n,actions:s})=>{const r=u((()=>{const t=e.toolbar||{},l=qn(t.layout,tS,"bar"),a=qn(t.placement,lS,"top");return{show:!1!==t.show,layout:l,placement:a,buttonVariant:"bar"===l?qn(t.buttonVariant,nS,"rect"):"text",fitInset:AS(t.offset,l,a),shift:dS(t.shift),splitAlign:qn(t.splitAlign,aS,"center"),items:Array.isArray(t.items)?t.items:eS,buttonConfig:t.buttonConfig||{},closeButtonConfig:t.closeButtonConfig||{},showCounter:!1!==t.showCounter,showTitle:!1!==t.showTitle}})),A=u((()=>{const e=r.value;return e.show?e.fitInset:null})),d=u((()=>{const e=r.value;return e.show&&"bar"!==e.layout?e.shift:{x:0,y:0}})),c=u((()=>({size:"small",icon:"tui-icon ti-times",...r.value.closeButtonConfig}))),p=u((()=>({size:"small",...r.value.buttonConfig}))),g=u((()=>r.value.items.some((e=>"close"===("string"==typeof e?e:e?.key))))),v=u((()=>{const u=t.value,A=s?.()||{},d=!!o.value?.src&&!n.value,p={prev:{icon:"tui-icon ti-chevron-left",label:u.prev,disabled:!a.value,hidden:!l.value,action:A.prev},next:{icon:"tui-icon ti-chevron-right",label:u.next,disabled:!i.value,hidden:!l.value,action:A.next},zoomOut:{icon:"tui-icon ti-zoom-out",label:u.zoomOut,disabled:!d,action:A.zoomOut},zoomIn:{icon:"tui-icon ti-zoom-in",label:u.zoomIn,disabled:!d,action:A.zoomIn},fit:{icon:"tui-icon ti-view-scale",label:u.fit,disabled:!d,action:A.fitToContent},advanced:{icon:"tui-icon ti-cog-panel-h",label:u.advanced,disabled:!d,panel:"advanced",action:()=>{}},rotateLeft:{icon:"tui-icon ti-rotate-ccw",label:u.rotateLeft,disabled:!e.rotatable||!d,action:A.rotateLeft},rotateRight:{icon:"tui-icon ti-rotate-cw",label:u.rotateRight,disabled:!e.rotatable||!d,action:A.rotateRight},reset:{icon:"tui-icon ti-reload",label:u.reset,disabled:!d,action:A.reset},download:{icon:"tui-icon ti-download",label:u.download,disabled:!o.value?.downloadUrl,action:A.download},close:{...c.value,label:u.close,action:A.close}};return r.value.items.map((e=>{const t="string"==typeof e?e:e?.key,a="object"==typeof e?e:{},i=p[t];if(!i)return null;const o=("prev"===t||"next"===t)&&!l.value;return{key:t,...i,...a,hidden:o||a.hidden||i.hidden,action:a.action||i.action}})).filter((e=>e.action&&!e.hidden))}));return{toolbarCPT:r,toolbarFitInsetCPT:A,toolbarCssShiftCPT:d,closeButtonConfigCPT:c,toolbarHasCloseCPT:g,toolbarButtonsCPT:v,toolbarButtonConfig:e=>({...gS(r.value.buttonVariant,{...p.value,...pS(e),...e.buttonConfig||{},icon:e.buttonConfig?.icon??e.icon,disabled:e.buttonConfig?.disabled??e.disabled})})}},hS={key:0,class:"tui-lbox-toolbar"},mS={class:"tui-lbox-meta"},yS={key:0,class:"tui-lbox-title"},bS={key:0,class:"tui-lbox-counter"},VS={class:"tui-lbox-actions"},wS=["src","alt"],CS={key:1,class:"tui-lbox-state is-loading"},TS={key:2,class:"tui-lbox-state is-error"},SS={key:3,class:"tui-lbox-state is-empty"},$S=Object.assign({name:"TuiLightbox"},{__name:"index",props:{modelValue:Boolean,src:String,images:{type:Array,default:()=>[]},activeIndex:Number,keyMap:{type:Object,default:()=>({})},appendTo:String,zIndex:{type:Number,default:2001},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},viewportConfig:{type:Object,default:()=>({})},fit:{type:String,default:"contain",validator:e=>["none","contain","cover","width","height"].includes(e)},bounds:{type:String,default:"viewport",validator:e=>["none","viewport","content","cover"].includes(e)},minScale:{type:Number,default:.2},maxScale:{type:Number,default:8},wheelZoom:{type:Boolean,default:!0},pinchZoom:{type:Boolean,default:!0},pinchRotate:Boolean,rotatable:{type:Boolean,default:!0},resetOnImageChange:{type:Boolean,default:!0},showViewportControls:Boolean,debug:Boolean,toolbar:{type:Object,default:()=>({})},loop:{type:Boolean,default:!0},preload:{type:Boolean,default:!0},title:String,labels:Object,className:[String,Array,Object],contentClassName:[String,Array,Object],imageClassName:[String,Array,Object],transitionName:{type:String,default:"fade"},imageTransitionName:{type:String,default:"tui-lbox-switch-fade"}},emits:["update:modelValue","update:activeIndex","update:fit","update:bounds","open","opened","close","closed","load","error","change","viewport-change","drag-start","drag","drag-end","zoom","rotate","gesture-start","gesture","gesture-end","reset","fit","debug","download","view-mode-change"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=ze("$global",null),{proxy:n}=Tt()||{},s=o?.$gEscCounter,r=o?.$optFloaterTo,A=$(!0),c=$(!a.destroyOnClose),g=$(!1),v=$(0),m=$(!1),y=$(!1),b=$({width:0,height:0}),V=$(0),w=$(null),x=$(null),k=$(Sn.includes(a.fit)?a.fit:"contain"),S=$($n.includes(a.bounds)?a.bounds:"viewport"),C=Object.freeze({appearance:"text"});let B=null;const z=u((()=>a.appendTo||r?.value||"#tuiRoot")),N=u((()=>cS({src:a.src,images:a.images,keyMap:a.keyMap}))),R=u((()=>kn(a.activeIndex??v.value,N.value.length))),I=u((()=>N.value[R.value]||null)),M=u((()=>`${R.value}:${I.value?.src||""}`)),P=u((()=>a.title||I.value?.title||"")),D=u((()=>P.value||I.value?.alt||"")),_=u((()=>a.zIndex+(a.modal?1:0))),E=u((()=>{const e=Number(b.value.width),t=Number(b.value.height);return e>0&&t>0?{width:e,height:t}:{width:1,height:1}})),j=u((()=>Sn.includes(k.value)?k.value:"contain")),L=u((()=>$n.includes(S.value)?S.value:"viewport")),F=u((()=>Object.keys(_o).reduce(((e,t)=>({...e,[t]:fe(a.labels?.[t],he(t,_o[t]))})),{}))),W=u((()=>N.value.length>1)),H=u((()=>W.value&&(a.loop||R.value>0))),U=u((()=>W.value&&(a.loop||R.value<N.value.length-1))),{toolbarCPT:Y,toolbarFitInsetCPT:Q,toolbarCssShiftCPT:K,closeButtonConfigCPT:J,toolbarHasCloseCPT:te,toolbarButtonsCPT:ae,toolbarButtonConfig:ie}=vS({props:a,labels:F,hasMultiple:W,canPrev:H,canNext:U,activeItem:I,imageError:y,actions:()=>({prev:qe,next:Se,zoomOut:tt,zoomIn:et,fitToContent:it,rotateLeft:lt,rotateRight:at,reset:Je,download:ot,close:Me})}),oe=u((()=>{const e=a.viewportConfig||{},t=Q.value?fS(e.fitInset,Q.value):e.fitInset,l=t?JSON.stringify(Gn(t)):"",i=a.resetOnImageChange?`${R.value}:${I.value?.src||""}:${V.value}:${l}:${e.resetKey??""}`:e.resetKey;return{defaultInteractive:!0,controlPlacement:"bottom",...e,fitInset:t,showControls:a.showViewportControls,fit:j.value,bounds:L.value,minScale:a.minScale,maxScale:a.maxScale,wheelZoom:a.wheelZoom,pinchZoom:a.pinchZoom,pinchRotate:a.pinchRotate,rotatable:a.rotatable,debug:a.debug||!!e.debug,contentClassName:["tui-lbox-viewport-content",e.contentClassName],contentSize:e.contentSize||E.value,resetKey:i}})),ne=(e,t={})=>{if(!a.debug)return;const l=oe.value;i("debug",{scope:"lightbox",phase:e,index:R.value,item:I.value,toolbar:Y.value,toolbarFitInset:Q.value,viewportConfig:{fit:l.fit,bounds:l.bounds,fitInset:l.fitInset,contentSize:l.contentSize,resetKey:l.resetKey},naturalSize:b.value,imageContentSize:E.value,...t})},se=u((()=>$e("cpt-lbox",{z:_.value,...q("toolbarShiftX",K.value.x,{smartAppend:!0,zero:!0}),...q("toolbarShiftY",K.value.y,{smartAppend:!0,zero:!0})}))),re=u((()=>"bottom"===Y.value.placement?"top":"bottom")),ue=u((()=>[{label:F.value.fitNone,value:"none"},{label:F.value.fitContain,value:"contain"},{label:F.value.fitCover,value:"cover"},{label:F.value.fitWidth,value:"width"},{label:F.value.fitHeight,value:"height"}])),Ae=u((()=>[{label:F.value.boundsViewport,value:"viewport"},{label:F.value.boundsContent,value:"content"},{label:F.value.boundsCover,value:"cover"},{label:F.value.boundsNone,value:"none"}])),de=u((()=>[...aa.map((e=>({label:F.value[e.labelKey],value:e.value}))),{label:F.value.presetCustom,value:"custom"}])),ce=u((()=>aa.find((e=>e.fit===j.value&&e.bounds===L.value))?.value||"custom")),pe=u((()=>({preset:ce.value,fit:j.value,bounds:L.value}))),ve=u((()=>["tui-lightbox-layer",a.className,{"is-loading":m.value,"is-error":y.value,"is-empty":!I.value?.src,"has-toolbar":Y.value.show,[`is-toolbar-${Y.value.layout}`]:!0,[`is-toolbar-${Y.value.placement}`]:!0,[`is-toolbar-btn-${Y.value.buttonVariant}`]:!0,[`is-toolbar-split-${Y.value.splitAlign}`]:"split"===Y.value.layout}])),fe=(e,t)=>null==e?t:"object"==typeof e?n?.$tService?.i18n?.(e)||t:e,he=(e,t)=>n?.$tService?.i18n?.(`lightbox.${e}`)||t,be=e=>{const t=N.value.length;return t?a.loop?(e%t+t)%t:kn(e,t):0},Ve=(e,t="active")=>{const l=be(e);v.value=l,i("update:activeIndex",l),i("change",{index:l,item:N.value[l]||null,source:t}),Ne(l)},xe=e=>Ve(e,"go-to"),qe=()=>{H.value&&Ve(R.value-1,"prev")},Se=()=>{U.value&&Ve(R.value+1,"next")},Te=()=>{B?.(),B=null},Ce=()=>{y.value=!1,m.value=!!I.value?.src},Oe=e=>{if(!a.preload||!e?.src||typeof Image>"u")return;(new Image).src=e.src},Ne=(e=R.value)=>{!a.preload||N.value.length<2||(Oe(N.value[be(e+1)]),Oe(N.value[be(e-1)]))},Ie=async e=>{null!=e&&Ve(e,"open"),!g.value&&(c.value=!0,await ye(),g.value=!0,Ce(),(()=>{if(!a.lockScroll||B)return;const e="has-lightbox-open";document.body.classList.add(e),B=()=>document.body.classList.remove(e)})(),i("update:modelValue",!0),i("open"),await ye(),Ne(R.value),i("opened"),ne("opened"))},Me=()=>{g.value&&(g.value=!1,Te(),i("update:modelValue",!1),i("close"))},Pe=()=>{a.destroyOnClose&&(c.value=!1),i("closed")},De=()=>{a.closeOnBackdrop&&Me()},Ee=e=>{m.value=!1,y.value=!1;const t=e.target,l={width:t?.naturalWidth||0,height:t?.naturalHeight||0};b.value=l,a.resetOnImageChange&&(V.value+=1),i("load",{index:R.value,item:I.value,naturalSize:l,event:e}),ne("load",{naturalSize:l})},je=e=>{m.value=!1,y.value=!0,i("error",{index:R.value,item:I.value,event:e})},Ge=(e={})=>({...e,index:R.value,item:I.value}),Le=e=>{x.value=e?.value||null,i("viewport-change",Ge(e)),ne("viewport-change",{source:e?.source,value:e?.value})},We=(e,t)=>{t?.value&&(x.value=t.value);const l="debug"===e?{scope:"viewport",...t}:t;i(e,Ge(l))},He=({fit:e=j.value,bounds:t=L.value,source:l="advanced"}={})=>{const a=Sn.includes(e)?e:j.value,o=$n.includes(t)?t:L.value,n=a!==j.value,s=o!==L.value;!n&&!s||(k.value=a,S.value=o,n&&i("update:fit",a),s&&i("update:bounds",o),i("view-mode-change",Ge({fit:a,bounds:o,source:l})),ne("view-mode-change",{fit:a,bounds:o,source:l}))},Xe=u({get:()=>j.value,set:e=>He({fit:e,source:"fit"})}),Qe=u({get:()=>L.value,set:e=>He({bounds:e,source:"bounds"})}),Ke=u({get:()=>ce.value,set:e=>{if("custom"===e)return;const t=aa.find((t=>t.value===e));t&&He({fit:t.fit,bounds:t.bounds,source:"preset"})}}),Je=()=>w.value?.reset?.(),et=()=>w.value?.zoomIn?.(),tt=()=>w.value?.zoomOut?.(),lt=()=>w.value?.rotateLeft?.(),at=()=>w.value?.rotateRight?.(),it=()=>w.value?.fitToContent?.(),ot=()=>{const e=I.value,t=e?.downloadUrl;if(!t)return;i("download",{index:R.value,item:e,url:t});const l=document.createElement("a");l.href=t,l.download=e.title||e.alt||"",l.rel="noopener",document.body.appendChild(l),l.click(),document.body.removeChild(l)};return Z((()=>a.modelValue),(e=>{e?Ie():Me()})),Z((()=>s?.value),(()=>{g.value&&a.closeOnEsc&&Me()})),Z((()=>I.value?.src),(()=>{b.value={width:0,height:0},x.value=null,a.resetOnImageChange&&(V.value+=1),ne("reset-size"),g.value&&Ce()})),Z((()=>a.activeIndex),(e=>{null!=e&&(v.value=kn(e,N.value.length))}),{immediate:!0}),Z((()=>a.fit),(e=>{Sn.includes(e)&&(k.value=e)})),Z((()=>a.bounds),(e=>{$n.includes(e)&&(S.value=e)})),Z((()=>N.value.length),(()=>{v.value=kn(R.value,N.value.length),Ne(R.value)})),Be((()=>{A.value=!1,a.modelValue&&Ie()})),dt((()=>{A.value=!0,Te()})),t({open:Ie,close:Me,prev:qe,next:Se,goTo:xe,download:ot,reset:Je,zoomIn:et,zoomOut:tt,rotateLeft:lt,rotateRight:at,fitToContent:it,getVisible:()=>g.value,getActiveItem:()=>I.value,getViewport:()=>x.value}),(t,l)=>{const a=ke("TuiMask"),i=ke("TuiButton"),o=ke("TuiResult");return!A.value&&c.value?(d(),le(Lt,{key:0,to:z.value,fallback:"#tuiRoot",disabled:A.value},[e.modal?(d(),le(a,{key:0,"model-value":g.value,modal:e.modal,"z-index":e.zIndex,click:De},null,8,["model-value","modal","z-index"])):T("",!0),me(Ue,{name:e.transitionName,onAfterLeave:Pe},{default:G((()=>[g.value||!e.destroyOnClose?Re((d(),h("div",{key:0,class:O(ve.value),style:we(se.value)},[p(Y).show?(d(),h("div",hS,[f("div",mS,[ee(t.$slots,"title",{item:I.value,index:R.value},(()=>[p(Y).showTitle&&P.value?(d(),h("div",yS,X(P.value),1)):T("",!0)])),p(Y).showCounter&&N.value.length>1?(d(),h("div",bS,X(R.value+1)+" / "+X(N.value.length),1)):T("",!0)]),f("div",VS,[ee(t.$slots,"toolbar",{item:I.value,index:R.value,buttons:p(ae),prev:qe,next:Se,goTo:xe,close:Me,download:ot,reset:Je,zoomIn:et,zoomOut:tt,rotateLeft:lt,rotateRight:at,fitToContent:it,fit:j.value,bounds:L.value,setViewMode:He},(()=>[(d(!0),h(ge,null,Fe(p(ae),(e=>(d(),h(ge,{key:e.key},["advanced"===e.panel?(d(),le(J0,{key:0,item:e,"button-config":p(ie)(e),labels:F.value,placement:re.value,"z-index":_.value+4,"form-model":pe.value,preset:Ke.value,"onUpdate:preset":l[0]||(l[0]=e=>Ke.value=e),fit:Xe.value,"onUpdate:fit":l[1]||(l[1]=e=>Xe.value=e),bounds:Qe.value,"onUpdate:bounds":l[2]||(l[2]=e=>Qe.value=e),"preset-options":de.value,"fit-options":ue.value,"bounds-options":Ae.value},null,8,["item","button-config","labels","placement","z-index","form-model","preset","fit","bounds","preset-options","fit-options","bounds-options"])):(d(),le(i,_e({key:1,ref_for:!0},p(ie)(e),{title:e.label,"aria-label":e.label,disabled:e.disabled,onClick:Ze(e.action,["stop"])}),null,16,["title","aria-label","disabled","onClick"]))],64)))),128))])),p(te)?T("",!0):(d(),le(i,_e({key:0},p(J),{title:F.value.close,"aria-label":F.value.close,onClick:Ze(Me,["stop"])}),null,16,["title","aria-label"]))])])):T("",!0),f("div",{class:O(["tui-lbox-body",e.contentClassName]),onClick:Ze(De,["self"])},[me(Ue,{name:e.imageTransitionName},{default:G((()=>[(d(),h("div",{key:M.value,class:"tui-lbox-scene",onClick:Ze(De,["self"])},[I.value?.src&&!y.value?(d(),le(fs,_e({key:0,ref_key:"viewportRef",ref:w,class:"tui-lbox-viewport"},oe.value,{onChange:Le,onDragStart:l[3]||(l[3]=e=>We("drag-start",e)),onDrag:l[4]||(l[4]=e=>We("drag",e)),onDragEnd:l[5]||(l[5]=e=>We("drag-end",e)),onZoom:l[6]||(l[6]=e=>We("zoom",e)),onRotate:l[7]||(l[7]=e=>We("rotate",e)),onGestureStart:l[8]||(l[8]=e=>We("gesture-start",e)),onGesture:l[9]||(l[9]=e=>We("gesture",e)),onGestureEnd:l[10]||(l[10]=e=>We("gesture-end",e)),onReset:l[11]||(l[11]=e=>We("reset",e)),onFit:l[12]||(l[12]=e=>We("fit",e)),onDebug:l[13]||(l[13]=e=>We("debug",e)),onClick:Ze(De,["self"])}),{default:G((()=>[ee(t.$slots,"image",{item:I.value,index:R.value,loading:m.value,viewport:x.value},(()=>[(d(),h("img",{key:I.value.src,class:O(["tui-lbox-image",e.imageClassName]),src:I.value.src,alt:I.value.alt,draggable:"false",onLoad:Ee,onError:je},null,42,wS))]))])),_:3},16)):T("",!0),I.value?.src&&m.value?(d(),h("div",CS,[ee(t.$slots,"loading",{item:I.value,index:R.value},(()=>[me(o,{class:"tui-lbox-result",status:"loading",title:F.value.loading,"typed-config":p(C)},null,8,["title","typed-config"])]))])):y.value?(d(),h("div",TS,[ee(t.$slots,"error",{item:I.value,index:R.value},(()=>[me(o,{class:"tui-lbox-result",status:"warning",title:F.value.error,description:D.value,"typed-config":p(C)},null,8,["title","description","typed-config"])]))])):I.value?.src?T("",!0):(d(),h("div",SS,[ee(t.$slots,"empty",{},(()=>[me(o,{class:"tui-lbox-result",status:"empty",title:F.value.empty,"typed-config":p(C)},null,8,["title","typed-config"])]))]))]))])),_:3},8,["name"])],2)],6)),[[Ye,g.value]]):T("",!0)])),_:3},8,["name"])],8,["to","disabled"])):T("",!0)}}}),ll=e=>null==e?null:"number"===st(e)?`${e}px`:e,Eo=(e={})=>({...q("top",e.top,{smartAppend:!0,zero:!0}),...q("right",e.right,{smartAppend:!0,zero:!0}),...q("btm",e.bottom,{smartAppend:!0,zero:!0}),...q("left",e.left,{smartAppend:!0,zero:!0})}),kS=e=>null==e?null:Array.isArray(e)?e.map((e=>ll(e??0))).join(" "):"object"===st(e)?`${ll(e.top??0)} ${ll(e.right??0)} ${ll(e.bottom??0)} ${ll(e.left??0)}`:ll(e),qS=Object.assign({name:"TuiMaximizeStage"},{__name:"stage",props:{viewMode:{type:String,default:"scalePanel"},scalePanelConfig:{type:Object,default:()=>({})},viewportConfig:{type:Object,default:()=>({})},frameComponent:[Object,Function,String],frameProps:{type:Object,default:()=>({})},frameClassName:String,contentClassName:String,component:[Object,Function,String],componentProps:{type:Object,default:()=>({})}},setup(e,{expose:t}){const l=e,a=$(null),i=u((()=>"viewport"===l.viewMode)),o=u((()=>i.value?fs:"TuiScalePanel")),n=u((()=>["tui-maxi-stage",i.value?"is-viewport":"is-scale-panel"])),s=u((()=>i.value?l.viewportConfig:l.scalePanelConfig)),r=u((()=>{const e=l.viewportConfig?.contentSize;return i.value&&e?{...null!=e.width&&{width:ll(e.width)},...null!=e.height&&{height:ll(e.height)}}:null})),A=u((()=>{const e={...l.frameProps};return r.value&&(e.style=[e.style,r.value].filter(Boolean)),e}));return t({update:()=>i.value?a.value?.fitToContent?.():a.value?.update?.()}),(t,l)=>(d(),le(gt(o.value),_e({ref_key:"stageRef",ref:a,class:n.value},s.value),{default:G((()=>[(d(),le(gt(e.frameComponent||"div"),_e(A.value,{"data-tui-maxi-surface":"",class:["tui-maxi-frame",!e.frameComponent&&"is-native-frame",e.frameClassName]}),{default:G((()=>[f("div",{"data-tui-maxi-surface":"",class:O(["tui-maxi-content",e.contentClassName])},[e.component?(d(),le(gt(e.component),mt(_e({key:0},e.componentProps)),null,16)):ee(t.$slots,"default",{key:1})],2)])),_:3},16,["class"]))])),_:3},16,["class"]))}}),xS={key:0,class:"tui-maximize"},PS=Object.assign({name:"TuiMaximize"},{__name:"index",props:{modelValue:Boolean,appendTo:String,zIndex:{type:Number,default:2001},scale:{type:Number,default:1},scaleX:Number,scaleY:Number,scaleSafe:{type:Boolean,default:!0},scalePanelConfig:{type:Object,default:()=>({})},viewMode:{type:String,default:"scalePanel",validator:e=>["scalePanel","viewport"].includes(e)},viewportConfig:{type:Object,default:()=>({})},viewportFitInset:{type:[Number,Array],default:20},viewportContentEvents:{type:String,default:"auto",validator:e=>["auto","disabled","interactive"].includes(e)},resetViewportOnOpen:{type:Boolean,default:!0},width:[String,Number],height:[String,Number],inset:[String,Number,Array,Object],padding:[String,Number],component:[Object,Function,String],componentProps:{type:Object,default:()=>({})},title:String,titleComponent:{type:[Object,Function,String],default:"TuiTitleA1"},titleConfig:{type:Object,default:()=>({})},showMaximizeBtn:{type:Boolean,default:!0},maximizeBtnPosition:{type:Object,default:()=>({top:8,right:8})},restoreBtnPosition:{type:Object,default:()=>({top:8,right:8})},frameComponent:[Object,Function,String],frameProps:{type:Object,default:()=>({})},modal:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},closeOnBackdrop:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},destroyOnClose:{type:Boolean,default:!0},className:String,contentClassName:String,frameClassName:String,buttonClassName:String,returnClassName:String,maximizeBtnConfig:{type:Object,default:()=>({})},restoreBtnConfig:{type:Object,default:()=>({})},transitionName:{type:String,default:"fade"}},emits:["update:modelValue","open","opened","close","closed"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=ze("$global",null),n=o?.$gEscCounter,s=o?.$optFloaterTo,r=$(!0),A=$(!a.destroyOnClose),c=$(!1),p=$(null),g=$(0);let v=null;const m=u((()=>a.appendTo||s?.value||"#tuiRoot")),y=u((()=>null!=a.width||null!=a.height)),b=u((()=>a.modal)),V=u((()=>a.zIndex+(b.value?1:0))),w=u((()=>"viewport"===a.viewMode)),x=u((()=>$e("cpt-maxi",{z:V.value,...q("inset",kS(a.inset),{when:null!=a.inset}),...q("pd",ll(a.padding),{when:null!=a.padding}),...q("w",ll(a.width),{when:null!=a.width}),...q("h",ll(a.height),{when:null!=a.height})}))),k=u((()=>$e("cpt-maxi-btn",Eo(a.maximizeBtnPosition)))),S=u((()=>$e("cpt-maxi-return",Eo(a.restoreBtnPosition)))),C=u((()=>({size:"small",icon:"tui-icon ti-arrow-maximize",...a.maximizeBtnConfig}))),B=u((()=>({size:"small",icon:"tui-icon ti-arrow-minimize",...a.restoreBtnConfig}))),z=u((()=>({...a.scalePanelConfig,scale:a.scale,...null!=a.scaleX&&{scaleX:a.scaleX},...null!=a.scaleY&&{scaleY:a.scaleY},scaleSafe:a.scaleSafe}))),N=u((()=>{const e=a.viewportConfig||{},t=a.resetViewportOnOpen?`${g.value}:${e.resetKey??""}`:e.resetKey;return{fit:"contain",bounds:"content",...e,fitInset:e.fitInset??a.viewportFitInset,contentEvents:e.contentEvents??a.viewportContentEvents,resetKey:t}})),R=u((()=>({mode:"absolute",level:6,title:a.title,fontWeight:"700",...a.titleConfig}))),I=()=>{v?.(),v=null},M=async()=>{c.value||(A.value=!0,await ye(),c.value=!0,(()=>{if(!a.lockScroll||v)return;const e="has-maximize-open";document.body.classList.add(e),v=()=>document.body.classList.remove(e)})(),i("update:modelValue",!0),i("open"),await ye(),w.value&&a.resetViewportOnOpen&&(g.value+=1,await ye()),w.value||E(),i("opened"))},P=()=>{c.value&&(c.value=!1,I(),i("update:modelValue",!1),i("close"))},D=()=>{a.destroyOnClose&&(A.value=!1),i("closed")},_=()=>{a.closeOnBackdrop&&P()};function E(){return p.value?.update?.()}return Z((()=>a.modelValue),(e=>{e?M():P()})),Z((()=>n?.value),(()=>{c.value&&a.closeOnEsc&&P()})),Be((()=>{r.value=!1,a.modelValue&&M()})),dt((()=>{r.value=!0,I()})),t({open:M,close:P,getVisible:()=>c.value,update:()=>E()}),(t,l)=>{const a=ke("TuiButton"),i=ke("TuiMask");return d(),h(ge,null,[e.showMaximizeBtn?(d(),h("div",xS,[me(a,_e({class:["tui-maxi-button",e.buttonClassName]},C.value,{style:k.value,onClick:Ze(M,["stop"])}),null,16,["class","style"])])):T("",!0),!r.value&&A.value?(d(),le(Lt,{key:1,to:m.value,fallback:"#tuiRoot",disabled:r.value},[b.value?(d(),le(i,{key:0,"model-value":c.value,modal:e.modal,"z-index":e.zIndex},null,8,["model-value","modal","z-index"])):T("",!0),me(Ue,{name:e.transitionName,onAfterLeave:D},{default:G((()=>[c.value||!e.destroyOnClose?Re((d(),h("div",{key:0,class:O(["tui-maximize-layer",e.className,y.value?"is-sized":"is-inset",w.value?"is-viewport-mode":"is-scale-panel-mode"]),style:we(x.value)},[f("div",{class:"tui-maxi-backdrop-hit",onClick:_}),f("div",{class:O(["tui-maxi-surface",y.value?"is-sized":"is-inset",w.value?"is-viewport-mode":"is-scale-panel-mode"])},[e.title?(d(),le(gt(e.titleComponent),_e({key:0,"data-tui-maxi-surface":"",class:"tui-maxi-title"},R.value),null,16)):T("",!0),me(a,_e({"data-tui-maxi-surface":"",class:["tui-maxi-return",e.returnClassName]},B.value,{style:S.value,onClick:Ze(P,["stop"])}),null,16,["class","style"]),me(qS,{ref_key:"stageRef",ref:p,"view-mode":e.viewMode,"scale-panel-config":z.value,"viewport-config":N.value,"frame-component":e.frameComponent,"frame-props":e.frameProps,"frame-class-name":e.frameClassName,"content-class-name":e.contentClassName,component:e.component,"component-props":e.componentProps},{default:G((()=>[ee(t.$slots,"default")])),_:3},8,["view-mode","scale-panel-config","viewport-config","frame-component","frame-props","frame-class-name","content-class-name","component","component-props"])],2)],6)),[[Ye,c.value]]):T("",!0)])),_:3},8,["name"])],8,["to","disabled"])):T("",!0)],64)}}}),wl=[],BS=["id"],zS=300,Na=Object.assign({name:"TuiPopPanel"},{__name:"index",props:{eventTarget:{type:[Object,Element],default:null},manual:{type:Boolean,default:!1},visible:{type:Boolean,default:!1},trigger:{type:String,default:"click",validator:e=>["contextmenu","click","hover"].includes(e)},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start",validator:e=>["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"].includes(e)},appendTo:String,offset:{type:Number,default:4},zIndex:{type:Number,default:2e3},panelClassName:{type:[String,Object,Array],default:""},panelStyle:{type:[String,Object,Array],default:""},pointEvent:{type:String,default:"all",validator:e=>["all","none"].includes(e)},minWidth:{type:[String,Number],default:""},maxWidth:{type:[String,Number],default:""},panelId:{type:String,default:""},showDelay:{type:Number,default:120},hideDelay:{type:Number,default:180},closeOnClickOutside:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!0},maxInstances:{type:Number,default:1},transitionName:{type:String,default:"fade"},typed:{type:Boolean,default:!1},type:{type:String,default:null,validator:e=>null==e||["default","invert","primary","success","warning","danger","critical","fatal","info","emphasis"].includes(e)},typedConfig:{type:Object,default:null},showArrow:{type:Boolean,default:!1},arrowSize:{type:Number,default:6},arrowPadding:{type:Number,default:4},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["show","shown","hide","hidden","update:visible"],setup(e,{expose:t,emit:l}){const{proxy:a}=Tt(),{$tService:i}=a,o=e,n=l,s=Ee("popPanel"),r=$(null),A=$(null),c=$(null),g=$(null),v=$(!1),m=$(!1),y=$(!1),b=$(!1),V=$(!1),w=$(0),x=$({}),k=$(!1),S=`${s}_show`,C=`${s}_hide`,B=`${s}_init`;let z=null,N=null,R=null,I=null,M=null,P=0;const D=ze("TuiPopPanelContext",null),_=new Map,E=$(!1),j=u((()=>o.dynamicRender?o.tuiService:i)),L=u((()=>j.value?.$globalState?.value||null)),F=u((()=>j.value?.$optFloaterTo?.value||null)),W=u((()=>o.appendTo||F.value||"#tuiRoot")),H=u((()=>o.typed)),U=u((()=>{const e=o.typedConfig||{};return{tuiService:j.value,appearance:e.appearance||"background",...e,type:o.type??e.type??"default"}})),Y=u((()=>o.showArrow?o.offset+o.arrowSize+2:o.offset)),X=u((()=>`-${Math.max(2*o.arrowSize,8)}px`)),Q=u((()=>$e("cpt-pp",{z:o.zIndex,pe:o.pointEvent,...q("arrowSize",o.arrowSize,{append:"px",when:o.showArrow}),...q("minw",o.minWidth,"smart"),...q("maxw",o.maxWidth,"smart")}))),K=u((()=>{const e=(ie.value||o.placement||"bottom-start").split("-")[0];return"top"===e?"bottom center":"bottom"===e?"top center":"left"===e?"center right":"right"===e?"center left":"top center"})),J={top:"bottom",right:"left",bottom:"top",left:"right"},te=(e="bottom-start")=>{const[t,l]=e.split("-"),a=J[t]||"top";return l?[`${a}-${l}`,a]:[a]},ae=u((()=>g.value)),{placement:ie,middlewareData:oe,x:ne,y:se,update:re}=va(ae,A,{placement:()=>o.placement,strategy:"fixed",middleware:()=>[ha((()=>Y.value)),ma({fallbackPlacements:te(o.placement)}),ya({padding:5,boundary:"viewport"}),Su({element:c,padding:o.arrowPadding})]});Z([()=>oe.value,()=>ne.value,()=>se.value,()=>ie.value,()=>o.showArrow,()=>o.arrowSize],(([e,t,l,a])=>{if(null==t||null==l||(x.value={position:"fixed",left:`${t}px`,top:`${l}px`},!o.showArrow||!e?.arrow||!c.value))return;const{x:i,y:n}=e.arrow,s={top:"bottom",right:"left",bottom:"top",left:"right"}[a.split("-")[0]];c.value.style.left="",c.value.style.top="",c.value.style.right="",c.value.style.bottom="",null!=i&&(c.value.style.left=`${i}px`),null!=n&&(c.value.style.top=`${n}px`),c.value.style[s]=X.value,c.value.setAttribute("data-placement",a)}));const ue=()=>{const e=wl.findIndex((e=>e.uid===s));-1!==e&&wl.splice(e,1)},Ae=e=>wl.find((t=>t.uid===e))||null,de=()=>{Array.from(_.values()).forEach((e=>e?.()))},ce=e=>{o.manual&&n("update:visible",e)},pe=()=>{const e=(()=>{const e=g.value;return e?e?.$el?e.$el:e:null})();return!!e&&(e===window||e===document||!1!==e.isConnected)},ve=()=>{P&&(ot.stop(`${s}_target_monitor`),P=0)},fe=()=>{const e=m.value||v.value||k.value||y.value;xe(),k.value=!1,ve(),de(),R&&(window.clearTimeout(R),R=null),m.value=!1,y.value=!1,b.value=!1,V.value=!1,w.value=0,v.value=!1,ue(),be(),N?.(),N=null,z=null,ce(!1),e&&(n("hide"),n("hidden"))},he=()=>{ve();P=ot.loop(`${s}_target_monitor`,(()=>m.value||v.value||k.value?pe()?void 0:(fe(),!1):(P=0,!1)))},be=()=>{E.value&&(D?.releaseHover?.(),E.value=!1)},Ve=()=>{const e=(()=>{const e=new Set([s]);let t=D?.uid||null;for(;t;)e.add(t),t=Ae(t)?.parentUid||null;return e})(),t=wl.filter((t=>t.uid!==s&&!e.has(t.uid)));if(1===o.maxInstances)return void t.forEach((e=>e.hide(0)));const l=wl.length-o.maxInstances+1;l>0&&t.slice(0,l).forEach((e=>e.hide(0)))},xe=()=>{k.value=!1,qe.c(S),qe.c(C)},Se=()=>{ve(),R&&(window.clearTimeout(R),R=null),m.value=!1,y.value=!1,V.value=!1,o.destroyOnHide&&(v.value=!1),ue(),be(),N?.(),N=null,z=null,ce(!1),n("hidden")},Te=()=>o.debug&&"hover"===o.trigger,Ce=(e=o.hideDelay,t=!1)=>{const l=k.value;return xe(),m.value||v.value||!l?(qe.s(C,(()=>{!m.value&&!v.value||y.value||!t&&"hover"===o.trigger&&(b.value||V.value||w.value>0)||(de(),n("hide"),y.value=!0,m.value=!1,ce(!1),z=new Promise((e=>{N=e,R=window.setTimeout(Se,zS)})))}),e),z):(be(),ue(),n("hidden"),Promise.resolve())},Oe=(e=o.showDelay,t=null)=>{const l=o.trigger;xe(),k.value=!0,qe.s(S,(async()=>{k.value=!1,o.trigger===l&&(o.disabled||y.value||m.value||!g.value||!pe()||("contextmenu"===t?.type&&"contextmenu"===o.trigger&&(t.preventDefault(),t.stopPropagation()),Ve(),n("show"),v.value=!0,await ye(),await ye(),!y.value&&(wl.some((e=>e.uid===s))||wl.push({uid:s,parentUid:D?.uid||null,hide:()=>Ce(0,!0)}),m.value=!0,ce(!0),he(),await ye(),re(),n("shown"))))}),e)},Ne=e=>{if("mouseenter"===e?.type)!D||"hover"!==D.getTrigger?.()||E.value||(D.holdHover?.(),E.value=!0),b.value=!0,Oe(o.showDelay,e);else if("mouseleave"===e?.type){if(b.value=!1,Te())return;Ce(o.hideDelay)}},Ie=e=>{o.manual||("hover"===o.trigger?Ne(e):(e=>{o.disabled||("contextmenu"===e?.type&&"contextmenu"===o.trigger&&(e.preventDefault(),e.stopPropagation()),m.value||v.value?Ce(0):Oe(0,e))})(e))},Me=()=>{I&&("hover"===M?(Qe.remove(I,"mouseenter",s),Qe.remove(I,"mouseleave",s)):M&&Qe.remove(I,M,s),I=null,M=null)},Pe=()=>{if(o.manual||!g.value)return;const e=o.trigger;I===g.value&&M===e||(I&&Me(),I=g.value,M=e,"hover"===M?(Qe.add(I,"mouseenter",Ie,s),Qe.add(I,"mouseleave",Ie,s)):Qe.add(I,M,Ie,s))},De=()=>{if(o.eventTarget)return qe.c(B),g.value=o.eventTarget,Pe(),void(o.manual&&o.visible&&Oe(0));const e=r.value?.firstElementChild;e?(qe.c(B),g.value=e,Pe(),(()=>{const e=r.value;e&&(Array.from(e.childNodes).forEach((t=>{e.parentNode.insertBefore(t,e)})),e.parentNode.removeChild(e))})(),o.manual&&o.visible&&Oe(0)):qe.s(B,De,100)},je=()=>{V.value=!0,qe.c(C)},Ge=()=>{if(V.value=!1,"hover"===o.trigger){if(Te())return;Ce(o.hideDelay)}},Le=()=>{w.value+=1,qe.c(C)},Fe=()=>{if(w.value=Math.max(0,w.value-1),"hover"===o.trigger&&!b.value&&!V.value&&0===w.value){if(Te())return;Ce(o.hideDelay)}};return bt("TuiPopPanelContext",{uid:s,getTrigger:()=>o.trigger,holdHover:Le,releaseHover:Fe,registerChildCloser:(e,t)=>{!e||"function"!=typeof t||_.set(e,t)},unregisterChildCloser:e=>{_.delete(e)}}),bt("TuiOverlayContext",{type:"popPanel"}),Z((()=>o.eventTarget),(e=>{e&&e!==g.value?(Me(),g.value=e,Pe()):!e&&o.manual&&m.value&&fe()})),Z((()=>o.trigger),(()=>{xe(),b.value=!1,V.value=!1,w.value=0,Me(),Pe()})),Z((()=>o.manual),(()=>{Me(),Pe()})),Z((()=>o.visible),(e=>{o.manual&&(e?Oe(0):(m.value||v.value||k.value)&&Ce(0,!0))}),{immediate:!0}),Z(m,(e=>{if(e&&!y.value){if(!pe())return void fe();he(),re()}else e||ve()})),Z((()=>L.value?.clickCounter),(()=>{if(!o.closeOnClickOutside||!m.value)return;const e=L.value?.clickTarget;e&&A.value?.contains(e)||e&&g.value?.contains?.(e)||Ce(0)})),Z((()=>L.value?.escCounter),(()=>{!o.closeOnEsc||!m.value||Ce(0)})),Be((()=>{D?.registerChildCloser?.(s,(()=>Ce(0,!0))),De()})),dt((()=>{ve(),be(),D?.unregisterChildCloser?.(s),ue(),Me(),xe(),qe.c(B),R&&(window.clearTimeout(R),R=null),N?.(),N=null,z=null})),t({show:(e=o.showDelay)=>Oe(e),hide:()=>Ce(0,!0),toggle:Ie,update:re,holdHover:Le,releaseHover:Fe,getVisible:()=>m.value}),(t,l)=>{const a=ke("TuiTyped");return d(),h(ge,null,[e.eventTarget?T("",!0):(d(),h("div",{key:0,class:"tui-pop-panel-trigger",ref_key:"triggerWrapRef",ref:r},[ee(t.$slots,"trigger")],512)),v.value?(d(),le(Lt,{to:W.value,key:p(s),fallback:"#tuiRoot"},[me(Ue,{name:e.transitionName},{default:G((()=>[Re(f("div",{ref_key:"panelRef",ref:A,id:e.panelId||`tui-pop-panel-${p(s)}`,class:O(["tui-pop-panel",e.panelClassName,{"is-typed":H.value,"is-hide-arrow":!e.showArrow}]),style:we([Q.value,e.panelStyle,x.value,{transformOrigin:K.value}]),onMouseenter:je,onMouseleave:Ge,onClick:l[0]||(l[0]=Ze((()=>{}),["stop"]))},[H.value?(d(),le(a,_e({key:0},U.value,{class:"tui-pp-typed"}),{default:G((()=>[e.showArrow?(d(),h("div",{key:0,ref_key:"arrowRef",ref:c,class:"tui-pp-arrow"},null,512)):T("",!0),ee(t.$slots,"default",{hide:()=>Ce(0,!0),show:()=>Oe(0),toggle:Ie,update:p(re),visible:m.value,holdHover:Le,releaseHover:Fe})])),_:3},16)):(d(),h(ge,{key:1},[e.showArrow?(d(),h("div",{key:0,ref_key:"arrowRef",ref:c,class:"tui-pp-arrow"},null,512)):T("",!0),ee(t.$slots,"default",{hide:()=>Ce(0,!0),show:()=>Oe(0),toggle:Ie,update:p(re),visible:m.value,holdHover:Le,releaseHover:Fe})],64))],46,BS),[[Ye,m.value]])])),_:3},8,["name"])],8,["to"])):T("",!0)],64)}}}),RS={class:"tui-mpp-label"},NS=["onClick"],IS={class:"tui-mpp-label"},OS={key:2,class:"tui-mpp-empty"},DS=Object.assign({name:"TuiMultPopPanelBranch"},{__name:"mult-branch",props:{items:{type:Array,default:()=>[]},level:{type:Number,default:1},fieldNames:{type:Object,default:()=>({id:"id",label:"label",children:"children",disabled:"disabled",placement:"placement",trigger:"trigger"})},panelProps:{type:Object,default:()=>({})},submenuTrigger:{type:String,default:"click"},submenuPlacement:{type:String,default:"right-start"},closeOnLeafClick:{type:Boolean,default:!0},rootHide:{type:Function,default:null},currentHide:{type:Function,default:null},parentPath:{type:Array,default:()=>[]}},emits:["select"],setup(e,{emit:t}){const l=e,a=t,i=Nt(),o=u((()=>l.fieldNames.id||"id")),n=u((()=>l.fieldNames.label||"label")),s=u((()=>l.fieldNames.children||"children")),r=u((()=>l.fieldNames.disabled||"disabled")),A=u((()=>l.fieldNames.placement||"placement")),c=u((()=>l.fieldNames.trigger||"trigger")),g=(e,t,l=null)=>e&&t in e?e[t]:l,v=(e,t)=>String(g(e,o.value,t)),m=e=>g(e,n.value,""),y=e=>{const t=g(e,s.value,[]);return Array.isArray(t)?t:[]},b=e=>!!g(e,r.value,!1),V=e=>y(e).length>0,w=e=>g(e,c.value,"")||l.submenuTrigger,x=e=>g(e,A.value,"")||l.submenuPlacement,q=()=>{l.rootHide?.()},k=()=>{l.currentHide?.()},S=(e,t)=>[...l.parentPath,v(e,t)];return(t,o)=>{const n=ke("TuiMultPopPanelBranch");return d(),h("div",{class:O(["tui-mult-poppanel",[`is-level-${e.level}`]])},[p(i).panelTop?ee(t.$slots,"panelTop",{key:0,items:e.items,level:e.level,closeAll:q,closeCurrent:k}):T("",!0),e.items.length?(d(!0),h(ge,{key:1},Fe(e.items,((s,r)=>(d(),h(ge,{key:v(s,r)},[V(s)?(d(),le(Na,_e({key:0,ref_for:!0},e.panelProps,{disabled:b(s),trigger:w(s),placement:x(s)}),{trigger:G((()=>[f("div",{class:O(["tui-mpp-item has-children",{"is-disabled":b(s)}])},[ee(t.$slots,"item",{item:s,level:e.level,path:S(s,r),hasChildren:!0,disabled:b(s),closeAll:q,closeCurrent:k},(()=>[f("span",RS,X(m(s)),1),o[1]||(o[1]=f("i",{class:"tui-icon ti-arrow-right tui-mpp-arrow"},null,-1))]))],2)])),default:G((({hide:l})=>[me(n,{items:y(s),level:e.level+1,"field-names":e.fieldNames,"panel-props":e.panelProps,"submenu-trigger":e.submenuTrigger,"submenu-placement":e.submenuPlacement,"close-on-leaf-click":e.closeOnLeafClick,"root-hide":e.rootHide,"current-hide":l,"parent-path":S(s,r),onSelect:o[0]||(o[0]=e=>a("select",e))},el({_:2},[p(i).panelTop?{name:"panelTop",fn:G((e=>[ee(t.$slots,"panelTop",_e({ref_for:!0},e))])),key:"0"}:void 0,p(i).item?{name:"item",fn:G((e=>[ee(t.$slots,"item",_e({ref_for:!0},e))])),key:"1"}:void 0,p(i).empty?{name:"empty",fn:G((()=>[ee(t.$slots,"empty")])),key:"2"}:void 0]),1032,["items","level","field-names","panel-props","submenu-trigger","submenu-placement","close-on-leaf-click","root-hide","current-hide","parent-path"])])),_:2},1040,["disabled","trigger","placement"])):(d(),h("div",{key:1,class:O(["tui-mpp-item",{"is-disabled":b(s)}]),onClick:Ze((e=>((e,t)=>{b(e)||(a("select",{item:e,level:l.level,path:S(e,t),closeAll:q,closeCurrent:k}),l.closeOnLeafClick&&l.rootHide?.())})(s,r)),["stop"])},[ee(t.$slots,"item",{item:s,level:e.level,path:S(s,r),hasChildren:!1,disabled:b(s),closeAll:q,closeCurrent:k},(()=>[f("span",IS,X(m(s)),1)]))],10,NS))],64)))),128)):(d(),h("div",OS,[ee(t.$slots,"empty",{},(()=>[o[2]||(o[2]=We("No data",-1))]))]))],2)}}}),MS=Object.assign({name:"TuiMultPopPanel"},{__name:"mult",props:{items:{type:Array,default:()=>[]},eventTarget:{type:[Object,Element],default:null},trigger:{type:String,default:"click",validator:e=>["contextmenu","click","hover"].includes(e)},submenuTrigger:{type:String,default:"",validator:e=>["","click","hover"].includes(e)},placement:{type:String,default:"bottom-start"},submenuPlacement:{type:String,default:"right-start"},disabled:{type:Boolean,default:!1},appendTo:String,offset:{type:Number,default:4},zIndex:{type:Number,default:2e3},panelClassName:{type:[String,Object,Array],default:""},panelStyle:{type:[String,Object,Array],default:""},minWidth:{type:[String,Number],default:""},maxWidth:{type:[String,Number],default:""},panelId:{type:String,default:""},showDelay:{type:Number,default:120},hideDelay:{type:Number,default:180},closeOnClickOutside:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!0},maxInstances:{type:Number,default:1},transitionName:{type:String,default:"fade"},typed:{type:Boolean,default:!1},type:{type:String,default:null},typedConfig:{type:Object,default:null},showArrow:{type:Boolean,default:!1},arrowSize:{type:Number,default:6},arrowPadding:{type:Number,default:4},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1},closeOnLeafClick:{type:Boolean,default:!0},fieldNames:{type:Object,default:()=>({id:"id",label:"label",children:"children",disabled:"disabled",placement:"placement",trigger:"trigger"})}},emits:["show","shown","hide","hidden","select"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=$(null),n=Nt(),s=u((()=>a.submenuTrigger?a.submenuTrigger:"hover"===a.trigger?"hover":"click")),r=u((()=>({disabled:a.disabled,appendTo:a.appendTo,offset:a.offset,zIndex:a.zIndex,panelClassName:a.panelClassName,panelStyle:a.panelStyle,minWidth:a.minWidth,maxWidth:a.maxWidth,showDelay:a.showDelay,hideDelay:a.hideDelay,closeOnClickOutside:a.closeOnClickOutside,closeOnEsc:a.closeOnEsc,destroyOnHide:a.destroyOnHide,maxInstances:a.maxInstances,transitionName:a.transitionName,typed:a.typed,type:a.type,typedConfig:a.typedConfig,showArrow:a.showArrow,arrowSize:a.arrowSize,arrowPadding:a.arrowPadding,tuiService:a.tuiService,dynamicRender:a.dynamicRender})));return t({show:(...e)=>o.value?.show?.(...e),hide:(...e)=>o.value?.hide?.(...e),toggle:(...e)=>o.value?.toggle?.(...e),update:(...e)=>o.value?.update?.(...e),getVisible:()=>o.value?.getVisible?.()}),(t,l)=>(d(),le(Na,_e({ref_key:"rootPanelRef",ref:o},r.value,{"event-target":e.eventTarget,trigger:e.trigger,placement:e.placement,"panel-id":e.panelId,onShow:l[1]||(l[1]=e=>i("show")),onShown:l[2]||(l[2]=e=>i("shown")),onHide:l[3]||(l[3]=e=>i("hide")),onHidden:l[4]||(l[4]=e=>i("hidden"))}),{trigger:G((()=>[ee(t.$slots,"trigger")])),default:G((({hide:a})=>[me(DS,{items:e.items,level:1,"field-names":e.fieldNames,"panel-props":r.value,"submenu-trigger":s.value,"submenu-placement":e.submenuPlacement,"close-on-leaf-click":e.closeOnLeafClick,"root-hide":a,"current-hide":a,onSelect:l[0]||(l[0]=e=>i("select",e))},el({_:2},[p(n).panelTop?{name:"panelTop",fn:G((e=>[ee(t.$slots,"panelTop",mt(qt(e)))])),key:"0"}:void 0,p(n).item?{name:"item",fn:G((e=>[ee(t.$slots,"item",mt(qt(e)))])),key:"1"}:void 0,p(n).empty?{name:"empty",fn:G((()=>[ee(t.$slots,"empty")])),key:"2"}:void 0]),1032,["items","field-names","panel-props","submenu-trigger","submenu-placement","close-on-leaf-click","root-hide","current-hide"])])),_:3},16,["event-target","trigger","placement","panel-id"]))}}),_S={eventTarget:{type:[Object,Element],default:null},bindTriggerEvents:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom-start",validator:e=>ba.includes(e)},appendTo:String,offset:{type:[Number,Array],default:null},fixOffset:{type:Boolean,default:!0},zIndex:{type:Number,default:2e3},panelClassName:{type:[String,Object,Array],default:""},panelStyle:{type:[String,Object,Array],default:""},panelId:{type:String,default:""},showDelay:{type:Number,default:120},hideDelay:{type:Number,default:120},closeOnEsc:{type:Boolean,default:!0},debug:{type:Boolean,default:!1},transitionName:{type:String,default:"fade"},typed:{type:Boolean,default:!0},type:{type:String,default:null,validator:e=>null==e||Jo.includes(e)},typedConfig:{type:Object,default:null},caretSize:{type:Number,default:5},caretOffset:{type:Number,default:2},tuiService:{type:Object,default:null},dynamicRender:{type:Boolean,default:!1}},ES=["id"],LS=300,FS=Object.assign({name:"TuiFollowPanel"},{__name:"index",props:{..._S},emits:["show","shown","hide","hidden"],setup(e,{expose:t,emit:l}){const{proxy:a}=Tt(),{$tService:i}=a,o=e,n=l,s=Ee("followPanel"),r=$(null),A=$(null),c=$(null),g=$(!1),v=$(!1),m=je({x:0,y:0}),y=`${s}_show`,b=`${s}_hide`,V=`${s}_init`;let w=null;const x=u((()=>o.dynamicRender?o.tuiService:i)),k=u((()=>x.value?.$globalState?.value||null)),S=u((()=>x.value?.$optFloaterTo?.value||null)),C=u((()=>o.appendTo||S.value||"#tuiRoot")),B=u((()=>o.typed)),z=u((()=>pc(o,x.value))),N=gc(o,Tl),R=u((()=>$e("cpt-fp",{z:o.zIndex,...q("caretSize",o.caretSize,"px"),...q("caretOfs",o.caretOffset,{append:"px",type:"number",zero:!0})}))),I=u((()=>({getBoundingClientRect:()=>({width:0,height:0,x:m.x,y:m.y,top:m.y,left:m.x,right:m.x,bottom:m.y})}))),{placement:M,floatingStyles:P,update:D}=va(I,A,{placement:o.placement,strategy:"fixed",middleware:[ha((({placement:e})=>N(e))),ma({fallbackPlacements:fc(o.placement)}),ya({padding:8,boundary:"viewport"})]}),_=u((()=>vc(M.value||o.placement))),E=u((()=>hc(M.value||o.placement)));bt("TuiOverlayContext",{type:"followPanel"}),Z(v,(async e=>{e&&(await ye(),D(),ot.s(`${s}_shown`,(()=>{D(),n("shown")})))}));const j=()=>{g.value=!1,n("hidden")},L=(e,t=null)=>{if(!o.disabled){if("number"==typeof e)m.x=e,m.y=t??0;else{if(null==e?.clientX||null==e?.clientY)return;m.x=e.clientX,m.y=e.clientY}D()}},F=(e=null)=>{o.disabled||(qe.c(b),e&&L(e),g.value||(g.value=!0),n("show"),qe.s(y,(()=>{v.value=!0}),o.showDelay))},W=(e=!1)=>{const t="boolean"==typeof e&&e;o.debug&&!t||(qe.c(y),(v.value||g.value)&&(n("hide"),v.value=!1,qe.s(b,j,Math.max(o.hideDelay,LS))))},H=()=>{!o.bindTriggerEvents||!w||(Qe.remove(w,"mouseenter",F,s),Qe.remove(w,"mousemove",L,s),Qe.remove(w,"mouseleave",W,s))},U=()=>{!o.bindTriggerEvents||!c.value||(w=c.value,Qe.add(w,"mouseenter",F,s),Qe.add(w,"mousemove",L,s),Qe.add(w,"mouseleave",W,s))},Y=()=>{if(o.eventTarget)return c.value=o.eventTarget,void U();const e=r.value?.firstElementChild;e?(c.value=e,U(),(()=>{const e=r.value;e?.parentNode&&(Array.from(e.childNodes).forEach((t=>{e.parentNode.insertBefore(t,e)})),e.parentNode.removeChild(e))})()):qe.s(V,Y,100)};return Z((()=>o.eventTarget),(e=>{e&&e!==c.value&&(H(),c.value=e,U())})),Z((()=>k.value?.escCounter),(()=>{!o.closeOnEsc||!v.value||W(!0)})),Be((()=>{Y()})),dt((()=>{v.value=!1,g.value=!1,H(),o.debug||(qe.c(y),qe.c(b)),qe.c(V),ot.c(`${s}_shown`)})),t({show:F,hide:W,update:D,updatePos:L,getVisible:()=>v.value}),(e,t)=>{const l=ke("TuiTyped");return d(),h(ge,null,[e.eventTarget?T("",!0):(d(),h("div",{key:0,class:"tui-follow-panel-trigger",ref_key:"triggerWrapRef",ref:r},[ee(e.$slots,"trigger")],512)),g.value?(d(),le(Lt,{to:C.value,key:p(s),fallback:"#tuiRoot"},[me(Ue,{name:e.transitionName},{default:G((()=>[Re(f("div",{ref_key:"panelRef",ref:A,id:e.panelId||`tui-follow-panel-${p(s)}`,class:O(["tui-follow-panel",E.value,e.panelClassName,{"is-typed":B.value,"is-debug":o.debug}]),style:we([R.value,e.panelStyle,p(P),{transformOrigin:_.value}])},[B.value?(d(),le(l,_e({key:0},z.value,{class:"tui-fp-typed"}),{default:G((()=>[t[0]||(t[0]=f("div",{class:"tui-fp-caret"},null,-1)),ee(e.$slots,"default",{hide:W,show:F,update:p(D),updatePos:L,visible:v.value})])),_:3},16)):(d(),h(ge,{key:1},[t[1]||(t[1]=f("div",{class:"tui-fp-caret"},null,-1)),ee(e.$slots,"default",{hide:W,show:F,update:p(D),updatePos:L,visible:v.value})],64))],14,ES),[[Ye,v.value]])])),_:3},8,["name"])],8,["to"])):T("",!0)],64)}}}),jS=["viewBox","width","height"],WS=["opacity","stroke-width"],GS=["x2","y1","y2"],HS=["x1","x2","y1","y2"],KS=["x1","x2","y2"],US=["x1","x2","y1","y2"],YS=["opacity","stroke-width"],QS=["x1","x2","y1","y2"],XS=["x1","x2","y1","y2"],ZS={key:0},JS={class:"tui-ch-dot-h"},e1=["cx","cy"],t1=["cx","cy"],l1={class:"tui-ch-dot-v"},n1=["cx","cy"],a1=["cx","cy"],o1=["cx","cy"],i1=["cx","cy","r"],s1=["x","y","width","height"],r1=["transform"],u1={"text-anchor":"end","dominant-baseline":"end",class:"tui-ch-cursor-x"},c1={"text-anchor":"start","dominant-baseline":"end",class:"tui-ch-cursor-y"},d1=Object.assign({name:"TuiCrosshair"},{__name:"index",props:{crosshairRadius:{type:Number,default:40},lineStroke:{type:Number,default:.2},lineOpacity:{type:Number,default:1},scopeShape:{type:String,default:"rect",validator:e=>["rect","circle"].includes(e)},aimingPoint:{type:String,default:"center",validator:e=>["side","center"].includes(e)},coordinates:{type:Boolean,default:!0}},setup(e){const t=e,l=Ee("crosshair"),a=$(!0),i=$(0),o=$(0),n=$(window.innerWidth),s=$(window.innerHeight),r=$(null),A=e=>{r.value&&(i.value=e.clientX,o.value=e.clientY)},c=()=>{n.value=window.innerWidth,s.value=window.innerHeight},p=u((()=>$e("cpt-cross",{textOfs:-(t.crosshairRadius+5)+"px"})));return Be((()=>{a.value=!1,Qe.add(window,"mousemove",A,l),Qe.add(window,"resize",c,l),i.value=n.value/2,o.value=s.value/2})),dt((()=>{a.value=!0,Qe.remove(window,"mousemove",l),Qe.remove(window,"resize",l)})),al((()=>{})),(t,l)=>a.value?T("",!0):(d(),le(Lt,{key:0,to:"#tuiRoot",fallback:"#app",disabled:a.value},[(d(),h("svg",{class:"tui-crosshair",ref_key:"svgRef",ref:r,viewBox:`0 0 ${n.value} ${s.value}`,width:n.value,height:s.value,style:we(p.value)},[f("g",{class:"tui-ch-long-line",opacity:e.lineOpacity,"stroke-width":e.lineStroke},[f("line",{x1:0,x2:i.value-e.crosshairRadius,y1:o.value,y2:o.value},null,8,GS),f("line",{x1:i.value+e.crosshairRadius,x2:n.value,y1:o.value,y2:o.value},null,8,HS),f("line",{x1:i.value,x2:i.value,y1:0,y2:o.value-e.crosshairRadius},null,8,KS),f("line",{x1:i.value,x2:i.value,y1:o.value+e.crosshairRadius,y2:s.value},null,8,US)],8,WS),f("g",{class:"tui-ch-short-line",opacity:e.lineOpacity,"stroke-width":2*e.lineStroke},[f("line",{x1:i.value-e.crosshairRadius,x2:i.value+e.crosshairRadius,y1:o.value,y2:o.value},null,8,QS),f("line",{x1:i.value,x2:i.value,y1:o.value-e.crosshairRadius,y2:o.value+e.crosshairRadius},null,8,XS)],8,YS),"side"==e.aimingPoint?(d(),h("g",ZS,[f("g",JS,[f("circle",{cx:i.value-e.crosshairRadius,cy:o.value,r:"2"},null,8,e1),f("circle",{cx:i.value+e.crosshairRadius,cy:o.value,r:"2"},null,8,t1)]),f("g",l1,[f("circle",{cx:i.value,cy:o.value-e.crosshairRadius,r:"2"},null,8,n1),f("circle",{cx:i.value,cy:o.value+e.crosshairRadius,r:"2"},null,8,a1)])])):(d(),h("circle",{key:1,class:"tui-ch-aim",cx:i.value,cy:o.value,r:"3"},null,8,o1)),"circle"==e.scopeShape?(d(),h("circle",{key:2,class:"tui-ch-center-circle",cx:i.value,cy:o.value,r:e.crosshairRadius},null,8,i1)):(d(),h("rect",{key:3,class:"tui-ch-center-rect",x:i.value-e.crosshairRadius,y:o.value-e.crosshairRadius,width:2*e.crosshairRadius,height:2*e.crosshairRadius,rx:"10",ry:"10"},null,8,s1)),e.coordinates?(d(),h("g",{key:4,class:"tui-ch-center-area",transform:`translate(${i.value},${o.value})`},[f("text",u1,X(Math.round(i.value)),1),f("text",c1,X(Math.round(o.value)),1)],8,r1)):T("",!0)],12,jS))],8,["disabled"]))}}),A1=({owner:e="TuiFallback",missing:t,packageName:l="@techui/extended",fallback:a,detail:i,throttle:o=!0,tConsolei18n:n}={})=>{if("prod"===Zl()||!t)return;const s=`fallback:${e}:${t}:${a||""}`;if(n)return void n({type:"warn",id:s,localeKey:"warn.fallbackFeature",args:{owner:e,missing:t,packageName:l,fallback:a||"fallback"},throttle:o});const r=[`[TechUI:${e}] ${t} is not registered.`,`Please install/register ${l}.`,a?`Fallback: ${a}.`:"",i||""].filter(Boolean).join(" ");Fo.s("warn",s,r,o)},f1={class:"tui-fallback-host"},p1={class:"tui-fb-icon"},g1={key:0,class:"tui-fb-body"},v1={key:0,class:"tui-fb-title"},h1=Object.assign({name:"TuiFallback"},{__name:"index",props:{name:{type:String,default:""},missing:{type:String,default:""},owner:{type:String,default:"TuiFallback"},packageName:{type:String,default:"@techui/extended"},fallback:{type:String,default:"TuiFallback"},detail:{type:String,default:""},message:{type:String,default:""},type:{type:String,default:"warning"},appearance:{type:String,default:"auto"},tone:{type:String,default:"base"},layout:{type:String,default:"auto"},border:{type:[Boolean,String],default:"auto"},icon:{type:String,default:"tui-icon ti-alert-triangle"},textTipConfig:{type:Object,default:()=>({})},throttle:{type:Boolean,default:!0}},setup(e){const t=e,l=Ee("fallback"),a=je({width:0,height:0}),{tConsolei18n:i}=ze("$global",{})||{},o=u((()=>t.missing||t.name||"Optional feature")),n=u((()=>t.message||`${o.value} requires ${t.packageName}.`)),s=u((()=>{if("auto"!==t.layout)return t.layout;const{width:e,height:l}=a;return e&&l&&e>=150&&l>=150?"block":"inline"})),r=u((()=>"auto"!==t.appearance?t.appearance:"block"===s.value?"background":"text")),A=u((()=>"auto"!==t.border?!!t.border:"block"===s.value)),c=u((()=>"block"===s.value||a.width>=100)),g=u((()=>"block"===s.value)),v=u((()=>({placement:"block"===s.value?"bottom":"top",lines:"block"===s.value?2:1,...t.textTipConfig}))),m=({width:e,height:t})=>{a.width=e,a.height=t};return Be((()=>{A1({owner:t.owner,missing:o.value,packageName:t.packageName,fallback:t.fallback,detail:t.detail,throttle:t.throttle,tConsolei18n:i})})),(t,a)=>{const i=ke("TuiTextTip"),u=ke("TuiTyped"),y=Je("tui-resize");return Re((d(),h("div",f1,[me(u,{type:e.type,tone:e.tone,appearance:r.value,"has-shadow":!1,class:O(["tui-fallback",`is-layout-${s.value}`,`is-appr-${r.value}`,{"has-border":A.value,"has-text":c.value}])},{default:G((()=>[f("span",p1,[f("i",{class:O(e.icon)},null,2)]),c.value?(d(),h("span",g1,[g.value?(d(),h("span",v1,X(o.value),1)):T("",!0),me(i,_e({class:"tui-fb-message"},v.value),{default:G((()=>[We(X(n.value),1)])),_:1},16)])):T("",!0)])),_:1},8,["type","tone","appearance","class"])])),[[y,{callback:m,uid:p(l),threshold:1,throttle:500,settleDelay:80}]])}}}),m1=["src"],y1={class:"tui-login-inner"},b1={class:"tui-login-logo"},V1={class:"tui-login-form"},w1={class:"tui-login-captcha"},C1=["src"],T1={key:1,class:"tui-login-captcha-error"},S1={class:"tui-login-help"},$1={class:"tui-login-btn-wrap"},k1=Object.assign({name:"TuiLogin"},{__name:"index",props:{form:{type:Object,required:!0,validator:e=>e&&["username","password"].every((t=>t in e))},usernamePlaceholder:String,passwordPlaceholder:String,captchaPlaceholder:String,loginButtonText:String,helpText:String,forgetText:String,loading:{type:Boolean,default:!1},enableCaptcha:{type:Boolean,default:!0},captchaImg:{type:String,default:"ERROR"},rules:Object,formSize:{type:String,default:"large",validator:e=>["small","default","large"].includes(e)},position:{type:String,default:"center",validator:e=>["center","left","right"].includes(e)},backgroundType:{type:String,default:"vector",validator:e=>["image","gradient","vector"].includes(e)},backgroundImage:String},emits:["login","help","forget","validate","captchaError"],setup(e,{expose:t,emit:l}){const{proxy:{$tMessage:a},$backgroundConfig:i,i18n:o,$gBackground:n,$globalConfig:s}=ze("$global",null),r=e,A=u((()=>r.usernamePlaceholder||o("login.placeholder.username"))),c=u((()=>r.passwordPlaceholder||o("login.placeholder.password"))),g=u((()=>r.captchaPlaceholder||o("login.placeholder.captcha"))),v=u((()=>r.loginButtonText||o("login.button.login"))),m=u((()=>r.helpText||o("login.button.help"))),y=u((()=>r.forgetText||o("login.button.forget"))),b=$(null),V=l,w=u((()=>r.form.username&&r.form.password&&(!r.enableCaptcha||r.form.captcha))),x=async()=>{if(w.value)try{await b.value.validate()&&V("login",{...r.form})}catch{a({content:o("login.message.faild"),type:"warning"})}},q=()=>{V("help")},k=()=>{V("forget")},S=()=>{V("captchaError")};t({resetForm:()=>{b.value.resetFields()}});const C=u((()=>r.rules||{username:[{required:!0,message:o("login.placeholder.username"),trigger:"blur"},{min:4,max:24,message:o("login.rules.length",{min:4,max:20}),trigger:"blur"}],password:[{required:!0,message:o("login.placeholder.password"),trigger:"blur"},{min:6,max:24,message:o("login.rules.length",{min:6,max:20}),trigger:"blur"}],captcha:[{required:!0,message:o("login.placeholder.captcha"),trigger:"blur"},{min:4,max:6,message:o("login.rules.length",{min:4,max:6}),trigger:"blur"}]})),B=je({config:{labelHide:!0,size:u((()=>r.formSize))},items:[{prop:"username",prefixIcon:"tui-icon ti-user",placeholder:A},{prop:"password",type:"password",prefixIcon:"tui-icon ti-lock",placeholder:c},{prop:"captcha",prefixIcon:"tui-icon ti-shield",placeholder:g,isCaptcha:!0}]});return Z((()=>r.backgroundType),(e=>{"vector"==e&&"none"==n.value&&(s.value.background="all")}),{immediate:!0}),(t,l)=>{const a=ke("TuiLoadingArea"),i=ke("TuiInput"),o=ke("TuiFormItem"),s=ke("TuiForm"),u=ke("TuiButton");return d(),h("div",{class:O(["tui-login",{"tui-view-bg":("view"==p(n)||"all"==p(n))&&"vector"==e.backgroundType,"tui-root-bg":"root"==p(n)&&"vector"==e.backgroundType}])},[e.backgroundImage&&"image"==e.backgroundType?(d(),h("img",{key:0,class:"tui-login-bg",src:e.backgroundImage,alt:""},null,8,m1)):T("",!0),f("div",{class:O(["tui-login-locator",`is-pos-${e.position}`])},[(d(),le(gt(t.$slots.border?t.$slots.border()[0].type:"div"),_e({class:["tui-login-border",t.$slots.border?"is-outside-border":"is-native-border"]},{...t.$slots.border?t.$slots.border()[0].props:{}}),{default:G((()=>[f("div",y1,[me(a,{"model-value":r.loading,mask:!0},null,8,["model-value"]),f("div",b1,[ee(t.$slots,"logo",{},(()=>[l[0]||(l[0]=f("div",{class:"default-logo"},[f("h2",null,"Login")],-1))]))]),f("div",V1,[me(s,_e({ref_key:"formRef",ref:b,model:e.form},B.config,{rules:C.value,labelHide:""}),{default:G((()=>[(d(!0),h(ge,null,Fe(B.items,(l=>(d(),h(ge,{key:l.prop},["captcha"!=l.prop||e.enableCaptcha&&"captcha"==l.prop?(d(),le(o,{key:0,prop:l.prop},{default:G((()=>["captcha"!=l.prop?(d(),le(i,{key:0,modelValue:e.form[l.prop],"onUpdate:modelValue":t=>e.form[l.prop]=t,placeholder:l.placeholder,type:l.type||"text",onKeyup:cl(x,["enter"])},{prefix:G((()=>[f("i",{class:O(l.prefixIcon)},null,2)])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder","type"])):(d(),le(i,{key:1,modelValue:e.form[l.prop],"onUpdate:modelValue":t=>e.form[l.prop]=t,placeholder:l.placeholder,onKeyup:cl(x,["enter"])},{prefix:G((()=>[f("i",{class:O(l.prefixIcon)},null,2)])),suffix:G((()=>[f("div",w1,["ERROR"!==e.captchaImg?(d(),h("img",{key:0,src:e.captchaImg,class:"tui-login-captcha-img",onError:S},null,40,C1)):(d(),h("span",T1,X(e.captchaImg),1)),ee(t.$slots,"captcha-suffix")])])),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"]))])),_:2},1032,["prop"])):T("",!0)],64)))),128)),ee(t.$slots,"input")])),_:3},16,["model","rules"]),f("div",S1,[f("span",{class:"tui-login-help-link",onClick:q},X(m.value),1),f("span",{class:"tui-login-forget-link",onClick:k},X(y.value),1)]),f("div",$1,[me(u,{disabled:!w.value||e.loading,type:"primary",block:"",onClick:x,size:e.formSize},{default:G((()=>[We(X(v.value),1)])),_:1},8,["disabled","size"])])])]),ee(t.$slots,"extra")])),_:3},16,["class"]))],2)],2)}}}),q1=Object.assign({name:"TuiLangToggle"},{__name:"index",props:{direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},langs:{type:Array,default:()=>["zh-CN","zh-TW","en"]},size:{type:String,default:"default",validator:e=>["small","default","large"].includes(e)},itemWidth:Number},emits:["change","update:modelValue"],setup(e,{emit:t}){const l=e,a=t,{$gLang:i,switchLang:o}=ze("$global",null)||{},n={"zh-CN":{label:"简中",value:"zh-CN"},"zh-TW":{label:"繁中",value:"zh-TW"},en:{label:"EN",value:"en"}},s=u((()=>i?.value||"zh-CN")),r=u((()=>{const e=Array.isArray(l.langs)?l.langs:[],t=[...new Set(e)].map((e=>n[e])).filter(Boolean);return t.length?t:Object.values(n)})),A=async e=>{!o||s.value===e||(await o(e),a("update:modelValue",e),a("change",e))};return(t,l)=>{const a=ke("TuiRadio");return Re((d(),le(a,{class:"tui-lang-toggle","class-name":"tui-lang-toggle",appearance:"button",itemWidth:e.itemWidth,"default-icon":!1,direction:e.direction,size:e.size,"model-value":s.value,options:r.value,onChange:A},null,8,["itemWidth","direction","size","model-value","options"])),[[Ye,r.value.length>1]])}}}),x1=Object.assign({name:"TuiIconLogo"},{__name:"index",props:{size:Number,padding:Number,appearance:{type:String,default:"colorful",validator:e=>["colorful","white","black","weakest","strongest","custom"].includes(e)}},setup(e){const{$tc:t}=ze("$global"),l=e,a=u((()=>$e("cpt-logoi",{...q("size",l.size,"px"),...q("pd",l.padding,"px"),...q("color",t("tone.strongest"),{when:"strongest"==l.appearance}),...q("color",t("tone.weakest"),{when:"weakest"==l.appearance})})));return(t,l)=>(d(),h("div",{class:O(["tui-logoi",`tui-appr-${e.appearance}`]),style:we(a.value)},[...l[0]||(l[0]=[wu('<div class="tui-logo-inner"><i class="tui-icon ti-techui-lb-part"></i><i class="tui-icon ti-techui-lt-part"></i><i class="tui-icon ti-techui-rb-part"></i><i class="tui-icon ti-techui-rt-part"></i></div>',1)])],6))}}),P1=["src"],B1={class:"text-main"},z1={key:0,class:"text-sub"},R1=Object.assign({name:"TuiSystemLogo"},{__name:"system",props:{logoSize:Number,logoPadding:Number,textSize:Number,iconAppearance:{type:String,default:"colorful",validator:e=>["colorful","white","black","weakest","strongest","custom"].includes(e)},textAppearance:{type:String,default:"fontBase",validator:e=>["fontBase","white","black","weakest","strongest","custom"].includes(e)},direction:{type:String,default:"h",validator:e=>["v","h"].includes(e)},tag:String,collapse:Boolean,iconLogo:String,iconSrc:String,mainText:String,subText:String,tagConfig:Object},setup(e){const{$gSiderCollapse:t,$gPlatform:l,$tc:a}=ze("$global"),i=Nt(),o=e,n=u((()=>({type:"danger",tone:"strong",size:"small",...o.tagConfig}))),s=u((()=>$e("cpt-logos",{...q("fs",o.textSize,"px"),...q("color",a("tone.strongest"),{when:"strongest"==o.textAppearance}),...q("color",a("tone.weakest"),{when:"weakest"==o.textAppearance})}))),r=u((()=>$e("cpt-logosi",{...q("size",o.logoSize,"px"),...q("color",a("tone.strongest"),{when:"strongest"==o.iconAppearance}),...q("color",a("tone.weakest"),{when:"weakest"==o.iconAppearance})}))),A=u((()=>o.mainText||"TechUI")),c=u((()=>void 0!==o.subText?o.subText:On.upper1st(l.value))),g=u((()=>"h"==o.direction&&!(t.value||o.collapse)||"v"==o.direction)),v=u((()=>i.icon||o.iconLogo||o.iconSrc));return(t,l)=>{const a=ke("TuiIconLogo"),u=ke("TuiTag");return d(),h("div",{class:O(["tui-logo-system",`is-dir-${e.direction}`,`tui-appr-${e.textAppearance}`]),style:we(s.value)},[v.value?(d(),h("div",{key:1,class:O(["tui-logo-custom-icon"]),style:we(r.value)},[p(i).icon?ee(t.$slots,"icon",{key:0}):e.iconLogo?(d(),h("i",{key:1,class:O([e.iconLogo])},null,2)):e.iconSrc?(d(),h("img",{key:2,src:e.iconSrc,class:"tui-logo-img",alt:"logo"},null,8,P1)):T("",!0)],4)):(d(),le(a,{key:0,size:o.logoSize,padding:o.logoPadding,appearance:o.iconAppearance},null,8,["size","padding","appearance"])),g.value?(d(),h("div",{key:2,class:O(["tui-logo-text",`tui-appr-${e.textAppearance}`])},[ee(t.$slots,"text",{},(()=>[f("span",B1,X(A.value),1),c.value?(d(),h("span",z1,X(c.value),1)):T("",!0)])),e.tag?(d(),le(u,_e({key:0,class:"tui-logo-tag"},n.value),{default:G((()=>[We(X(e.tag),1)])),_:1},16)):T("",!0)],2)):T("",!0)],6)}}}),N1=["data-fallback"],I1=["src","alt"],O1=Object.assign({name:"TuiSvgInjector"},{__name:"index",props:{src:{type:String,default:""},alt:{type:String,default:""},options:{type:Object,default:()=>({})},fallback:{type:String,default:"img",validator:e=>["img","hide","slot"].includes(e)},width:Number,height:Number,padding:Number,color:String},emits:["load","error"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=$(null),n=$("idle"),s=u((()=>"loading"===n.value)),r=u((()=>"loaded"===n.value)),A=u((()=>"error"===n.value));t({isLoading:s,isLoaded:r,isError:A});let c=!1;const p=()=>{!a.src||c||(c=!0,n.value="loading",ye((()=>{c=!1,o.value&&Pu(o.value,a.options,(e=>{if("string"==typeof e)return n.value="error",void i("error",e);e instanceof Element&&(null!=a.width&&e.setAttribute("width",String(a.width)),null!=a.height&&e.setAttribute("height",String(a.height))),n.value="loaded",i("load",e)}))})))};Z((()=>a.src),(e=>{e&&p()}),{immediate:!0}),Be((()=>{"idle"===n.value&&a.src&&p()}));const g=u((()=>$e("cpt-svginj",{...q("w",a.width,{append:"px",zero:!0}),...q("h",a.height,{append:"px",zero:!0}),...q("pd",a.padding,{append:"px",zero:!0}),...q("color",a.color)})));return(t,l)=>(d(),h("div",{class:O(["tui-svg-injector-wrap",{"is-loading":s.value,"is-loaded":r.value,"is-error":A.value,"is-custom":e.color}]),"data-fallback":e.fallback,style:we(g.value)},[A.value&&"slot"===e.fallback?ee(t.$slots,"default",{key:0}):(d(),h("img",{key:1,ref_key:"svgEle",ref:o,class:"tui-svg-ele",src:e.src,alt:e.alt},null,8,I1))],14,N1))}}),D1=Object.assign({name:"TuiTextGradient"},{__name:"index",props:{fontSize:Number,gradientType:{type:String,default:"linear",validator:e=>["linear","radial","conic"].includes(e)},colors:{type:Array,default:null,validator:e=>!e||"array"==st(e)&&(e.length>=2&&e.every((e=>CSS.supports("color",e))))},angle:{type:Number,default:0,validator:e=>e>=0&&e<=360},fontWeight:{type:String,default:null,validator:e=>["normal","bold","bolder","lighter"].includes(e)},animated:{type:Boolean,default:!1},animationType:{type:String,default:"swap",validator:e=>["swap","flow","rotate"].includes(e)},duration:{type:Number,default:3e3}},setup(e){const t=e,l=u((()=>t.colors?.length?t.animated?"swap"==t.animationType?[...t.colors,...[...t.colors].reverse()]:"flow"==t.animationType?[...t.colors,...t.colors]:t.colors:t.colors:null)),a=u((()=>{const e=l.value||t.colors;if(!e?.length)return null;const a=e.join(", ");switch(t.gradientType){case"linear":return`linear-gradient(${t.angle}deg, ${a})`;case"radial":return`radial-gradient(circle, ${a})`;case"conic":return`conic-gradient(from ${t.angle}deg, ${a})`;default:return`linear-gradient(${t.angle}deg, ${a})`}})),i=u((()=>t.animated?"flow"==t.animationType?"200% 100%":"rotate"==t.animationType?"220% 220%":"200% 200%":null)),o=u((()=>$e("cpt-txtg",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("bg",a.value,{when:t.colors}),...q("dur",t.duration,{append:"ms",when:t.animated}),...q("bgSize",i.value)}))),n=u((()=>["tui-text-grad",{"is-animated":t.animated,"ani-swap":t.animated&&"swap"==t.animationType,"ani-flow":t.animated&&"flow"==t.animationType,"ani-rotate":t.animated&&"rotate"==t.animationType}]));return(e,t)=>(d(),h("span",{class:O(n.value),style:we(o.value)},[ee(e.$slots,"default")],6))}}),M1=["onClick","title"],_1={key:0,class:"tui-icon ti-check"},E1={class:"tui-thtgl-colors"},L1=Object.assign({name:"TuiThemeToggle"},{__name:"index",props:{direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)}},emits:["change"],setup(e,{emit:t}){const{$tState:l,themeToggle:a,$gTheme:i}=ze("$global",null),o=t,n=je({curTheme:"lightBlue",themes:[]});return Z((()=>i.value),(e=>{e!=n.curTheme&&(n.curTheme=i.value)})),Be((()=>{n.themes=In.loadIndex(),n.curTheme=i.value})),El((()=>{})),(t,l)=>Re((d(),h("div",{class:O(["tui-theme-toggle",`is-dir-${e.direction}`])},[(d(!0),h(ge,null,Fe(n.themes,(e=>(d(),h("div",{key:e.value,class:O(["tui-thtgl-item",{"is-active":n.curTheme===e.value}]),onClick:t=>(e=>{n.curTheme!=e.value&&(o("change",e.value),n.curTheme=e.value,a(e.value,e.scheme))})(e),title:e.label||e.value},[n.curTheme===e.value?(d(),h("i",_1)):T("",!0),f("div",E1,[(d(!0),h(ge,null,Fe(e.colors,(e=>(d(),h("span",{class:"tui-thtgl-color",style:we(`background-color:${e}`)},null,4)))),256))])],10,M1)))),128))],2)),[[Ye,n.themes.length>1]])}}),F1=["src","alt"],j1=Object.assign({name:"TuiThemeImage"},{__name:"index",props:{type:{type:String,default:"themeScheme",validator:e=>["theme","themeScheme"].includes(e)},srcMap:{type:Object,default:()=>({})},fallback:String,alt:{type:String,default:""},fit:{type:String,default:"cover",validator:e=>["fill","contain","cover","none","scale-down"].includes(e)},width:[String,Number],height:[String,Number],radius:[String,Number]},emits:["load","error"],setup(e,{expose:t,emit:l}){const a=e,i=l,o=ze("$global",null)||{},n=o.$gTheme,s=o.$gThemeScheme,r=u((()=>"theme"===a.type?n?.value||"":s?.value||"")),A=u((()=>{const e=a.srcMap?.[r.value];return e||(a.fallback?a.fallback:Object.values(a.srcMap||{}).find(Boolean)||"")})),c=u((()=>$e("cpt-thimg",{...q("w",a.width,{smartAppend:!0,zero:!0}),...q("h",a.height,{smartAppend:!0,zero:!0}),...q("bdra",a.radius,{smartAppend:!0,zero:!0})}))),p=e=>i("load",e),g=e=>i("error",e);return t({currentKey:r,currentSrc:A}),(t,l)=>(d(),h("div",{class:"tui-theme-image",style:we(c.value)},[A.value?(d(),h("img",{key:0,class:"tui-thimg-inner",src:A.value,alt:e.alt,style:we({objectFit:e.fit}),draggable:"false",onLoad:p,onError:g},null,44,F1)):ee(t.$slots,"empty",{key:1},(()=>[l[0]||(l[0]=f("div",{class:"tui-thimg-empty"},null,-1))]))],4))}}),W1=Object.assign({name:"TuiPassThrough",inheritAttrs:!1},{__name:"index",setup:e=>(e,t)=>ee(e.$slots,"default")}),G1=Object.assign({name:"ScifiTabs"},{__name:"scifiTabs",props:{modelValue:[String,Number],options:{type:Array,default:()=>[],validator:e=>e.every((e=>{const t=Object.prototype.hasOwnProperty.call(e,"label"),l=Object.prototype.hasOwnProperty.call(e,"value");return t&&l}))},buttonConfig:Object,gap:Number,direction:{type:String,default:"h",validator:e=>["h","v"].includes(e)},buttonType:{type:String,default:"ScifiButtonHex",validator:e=>["ScifiButtonHex","ScifiButtonPod","ScifiButtonDash","ScifiButtonExo","ScifiButtonFin","ScifiButtonA1","ScifiButtonA2","ScifiButtonA3","ScifiButtonA4","ScifiButtonA5"].includes(e)}},emits:["update:modelValue","change"],setup(e,{emit:t}){const l=e,a=t,i=u((()=>$e("cpt-sf-tabs",{...q("gap",l.gap,"px")})));return(t,l)=>(d(),h("div",{style:we(i.value),class:O(["scifi-tabs",`is-dir-${e.direction}`])},[(d(!0),h(ge,null,Fe(e.options,(t=>(d(),le(gt(e.buttonType),_e({key:t.value,onClick:e=>(e=>{a("update:modelValue",e),a("change",e)})(t.value),class:["sft-item",{"is-active":e.modelValue===t.value}]},{ref_for:!0},{activeIsPrimary:!0,...e.buttonConfig}),{default:G((()=>[We(X(t.label),1)])),_:2},1040,["onClick","class"])))),128))],6))}}),sn={backgroundOpacity:Number,width:Number,className:String,aniDuration:Number,borderWidth:Number,animation:{type:Boolean,default:!0},decoration:{type:Boolean,default:!0},border:{type:Boolean,default:!0},decorationColorAlt:{type:Boolean,default:!1},size:{type:String,default:"default",validator:e=>["large","default","small"].includes(e)},type:{type:String,default:"default",validator:e=>["default","primary","success","warning","danger","emphasis"].includes(e)},activeIsPrimary:{type:Boolean,default:!1},shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},disabled:{type:Boolean,default:!1},glow:{type:Boolean,default:!0},glowRange:Number,glowOpacity:Number,scaleAction:{type:Boolean,default:!0}},H1=["id"],K1=["stdDeviation"],_l=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:5}},setup:e=>(t,l)=>(d(),h("defs",null,[f("filter",{id:`bgGlow_${e.uid}`},[f("feGaussianBlur",{in:"SourceAlpha",stdDeviation:e.glowRange,result:"blur"},null,8,K1),l[0]||(l[0]=f("feComposite",{in2:"SourceAlpha",operator:"arithmetic",k2:"-1",k3:"1",result:"shadowDiff"},null,-1)),l[1]||(l[1]=f("feFlood",null,null,-1)),l[2]||(l[2]=f("feComposite",{in2:"shadowDiff",operator:"in"},null,-1)),l[3]||(l[3]=f("feComposite",{in2:"SourceGraphic",operator:"over",result:"firstfilter"},null,-1))],8,H1)]))}),U1={width:32,height:"60",class:"sfb-deco-appr-A"},Y1=["d"],Q1=["d"],X1=["d"],Z1={width:32,height:"60",class:"sfb-deco-appr-B"},J1=["d"],e$=["d"],t$={width:32,height:"60",class:"sfb-deco-appr-C"},l$=["d"],n$=["width","viewBox"],a$=["filter","d"],o$=Object.assign({name:"ScifiButtonA1"},{__name:"A1",props:{...sn,appearance:{type:String,default:"A",validator:e=>["A","B","C"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=$(null),o=Ee("sfBtn"),n=$(!1),s=$(!1),r=je({resizing:!1,width:0,path:{}}),{path:A}=rt(r),c=u((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),g=u((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=u((()=>{if(!r.width)return"0px";const e=(r.width-g.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=ft(Or(g.value)),await ye(),n.value=!0})())},b=u((()=>$e("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:g.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return Be((()=>{s.value=!0,ye((()=>{y()}))})),(t,l)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-button-a1",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:we(b.value),ref_key:"btnRef",ref:i},[f("span",{onClick:m,class:"sfb-text"},[ee(t.$slots,"default")]),n.value?(d(),h("div",{key:0,class:O(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},["A"==e.appearance?(d(),h(ge,{key:0},Fe(2,(e=>f("svg",U1,[f("path",{class:"sfb-deco-a",d:p(A).A_decoA},null,8,Y1),f("path",{class:"sfb-deco-b",d:p(A).A_decoB},null,8,Q1),f("path",{class:"sfb-deco-c",d:p(A).A_decoC},null,8,X1)]))),64)):T("",!0),"B"==e.appearance?(d(),h(ge,{key:1},Fe(2,(e=>f("svg",Z1,[f("path",{class:"sfb-deco-a",d:p(A).B_decoA},null,8,J1),f("path",{class:"sfb-deco-b",d:p(A).B_decoB},null,8,e$)]))),64)):T("",!0),"C"==e.appearance?(d(),h(ge,{key:2},Fe(2,(e=>f("svg",t$,[f("path",{class:"sfb-deco-a",d:p(A).C_deco},null,8,l$)]))),64)):T("",!0),(d(),h("svg",{width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-svg-elem"},[me(_l,{uid:p(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${p(o)})`,d:p(A).mainBG},null,8,a$)],8,n$))],2)):T("",!0)],6),[[Ye,s.value]])])),_:3}))}}),i$=["width","viewBox"],s$=["filter","d"],r$={width:32,height:"60",class:"sfb-deco-appr-A"},u$=["d"],c$=["d"],d$=["d"],A$=["d"],f$={width:32,height:"60",class:"sfb-deco-appr-B"},p$=["d"],g$=["d"],v$=Object.assign({name:"ScifiButtonA2"},{__name:"A2",props:{...sn,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=$(null),o=Ee("sfBtn"),n=$(!1),s=$(!1),r=je({resizing:!1,width:0,path:{}}),{path:A}=rt(r),c=u((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),g=u((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=u((()=>{if(!r.width)return"0px";const e=(r.width-g.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=ft(Dr(g.value)),await ye(),n.value=!0})())},b=u((()=>$e("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:g.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return Be((()=>{s.value=!0,ye((()=>{y()}))})),(t,l)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-button-a2",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:we(b.value),ref_key:"btnRef",ref:i},[f("span",{onClick:m,class:"sfb-text"},[ee(t.$slots,"default")]),n.value?(d(),h("div",{key:0,class:O(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",{width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-svg-elem"},[me(_l,{uid:p(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${p(o)})`,d:p(A).mainBG},null,8,s$)],8,i$)),"A"==e.appearance?(d(),h(ge,{key:0},Fe(2,(e=>f("svg",r$,[f("path",{class:"sfb-deco-a",d:p(A).A_decoAt},null,8,u$),f("path",{class:"sfb-deco-a",d:p(A).A_decoAb},null,8,c$),f("path",{class:"sfb-deco-b",d:p(A).A_decoB},null,8,d$),f("path",{class:"sfb-deco-c",d:p(A).A_decoC},null,8,A$)]))),64)):T("",!0),"B"==e.appearance?(d(),h(ge,{key:1},Fe(2,(e=>f("svg",f$,[f("path",{class:"sfb-deco-a",d:p(A).B_decoA},null,8,p$),f("path",{class:"sfb-deco-a",d:p(A).B_decoB},null,8,g$)]))),64)):T("",!0)],2)):T("",!0)],6),[[Ye,s.value]])])),_:3}))}}),h$=["width","viewBox"],m$={key:0,class:"sfb-deco-appr-A"},y$=["d"],b$=["d"],V$=["d"],w$=["d"],C$=["d"],T$=["d"],S$=["d"],$$={key:1,class:"sfb-deco-appr-B"},k$=["d"],q$=["d"],x$=["d"],P$=["d"],B$=["d"],z$=["d"],R$=["d"],N$=["d"],I$=["filter","d"],O$=Object.assign({name:"ScifiButtonA3"},{__name:"A3",props:{...sn,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=$(null),o=Ee("sfBtn"),n=$(!1),s=$(!1),r=je({resizing:!1,width:0,path:{}}),{path:A}=rt(r),c=u((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),g=u((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=u((()=>{if(!r.width)return"0px";const e=(r.width-g.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=ft(Mr(g.value)),await ye(),n.value=!0})())},b=u((()=>$e("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:g.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return Be((()=>{s.value=!0,ye((()=>{y()}))})),(t,l)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-button-a3",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:we(b.value),ref_key:"btnRef",ref:i},[f("span",{onClick:m,class:"sfb-text"},[ee(t.$slots,"default")]),n.value?(d(),h("div",{key:0,class:O(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",{width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-svg-elem"},[me(_l,{uid:p(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),"A"==e.appearance?(d(),h("g",m$,[f("path",{class:"sfb-deco-tl",d:p(A).A_decoLT},null,8,y$),f("path",{class:"sfb-deco-tr",d:p(A).A_decoRT},null,8,b$),f("path",{class:"sfb-deco-bl",d:p(A).A_decoLB},null,8,V$),f("path",{class:"sfb-deco-br1",d:p(A).A_decoRB1},null,8,w$),f("path",{class:"sfb-deco-br2",d:p(A).A_decoRB2},null,8,C$),f("path",{class:"sfb-deco-br3",d:p(A).A_decoRB3},null,8,T$),f("path",{class:"sfb-deco-br4",d:p(A).A_decoRB4},null,8,S$)])):T("",!0),"B"==e.appearance?(d(),h("g",$$,[f("path",{class:"sfb-deco-tl",d:p(A).B_decoLT},null,8,k$),f("path",{class:"sfb-deco-br",d:p(A).B_decoRB},null,8,q$),f("path",{class:"sfb-deco-tr",d:p(A).B_decoRT},null,8,x$),f("path",{class:"sfb-deco-bl",d:p(A).B_decoLB},null,8,P$),f("path",{class:"sfb-deco-tl-tr",d:p(A).B_decoLT1},null,8,B$),f("path",{class:"sfb-deco-tl-tr",d:p(A).B_decoLT2},null,8,z$),f("path",{class:"sfb-deco-tl-tr",d:p(A).B_decoLT3},null,8,R$),f("path",{class:"sfb-deco-tl-tr",d:p(A).B_decoLT4},null,8,N$)])):T("",!0),f("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${p(o)})`,d:p(A).mainBG},null,8,I$)],8,h$))],2)):T("",!0)],6),[[Ye,s.value]])])),_:3}))}}),D$=["width","viewBox"],M$=["filter","d"],_$={width:20,height:"60",class:"sfb-deco-appr-A"},E$=["d"],L$=["d"],F$=["d"],j$=["d"],W$=["width","viewBox"],G$=["filter","d"],H$={width:20,height:"60",class:"sfb-deco-appr-B"},K$=["d"],U$=["d"],Y$=["d"],Q$=Object.assign({name:"ScifiButtonA4"},{__name:"A4",props:{...sn,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=$(null),o=Ee("sfBtn"),n=$(!1),s=$(!1),r=je({resizing:!1,width:0,path:{}}),{path:A}=rt(r),c=u((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),g=u((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=u((()=>{if(!r.width)return"0px";const e=(r.width-g.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=ft(_r(g.value)),await ye(),n.value=!0})())},b=u((()=>$e("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:g.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return Be((()=>{s.value=!0,ye((()=>{y()}))})),(t,l)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-button-a4",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-scale-off":!t.scaleAction}]),style:we(b.value),ref_key:"btnRef",ref:i},[f("span",{onClick:m,class:"sfb-text"},[ee(t.$slots,"default")]),n.value?(d(),h("div",{key:0,class:O(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},["A"==e.appearance?(d(),h(ge,{key:0},[(d(),h("svg",{width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-svg-elem"},[me(_l,{uid:p(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${p(o)})`,d:p(A).A_mainBG},null,8,M$)],8,D$)),(d(),h(ge,null,Fe(2,(e=>f("svg",_$,[f("path",{class:"sfb-deco-t1",d:p(A).A_decoT1},null,8,E$),f("path",{class:"sfb-deco-b1",d:p(A).A_decoB1},null,8,L$),f("path",{class:"sfb-deco-t1",d:p(A).A_decoT2},null,8,F$),1==e?(d(),h("path",{key:0,class:"sfb-deco-t3",d:p(A).A_decoT3},null,8,j$)):T("",!0)]))),64))],64)):T("",!0),"B"==e.appearance?(d(),h(ge,{key:1},[(d(),h("svg",{width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-svg-elem"},[me(_l,{uid:p(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${p(o)})`,d:p(A).B_mainBG},null,8,G$)],8,W$)),(d(),h(ge,null,Fe(2,(e=>f("svg",H$,[f("path",{class:"sfb-deco-a",d:p(A).B_decoA},null,8,K$),f("path",{class:"sfb-deco-b",d:p(A).B_decoB},null,8,U$),1==e?(d(),h("path",{key:0,class:"sfb-deco-c",d:p(A).B_decoC},null,8,Y$)):T("",!0)]))),64))],64)):T("",!0)],2)):T("",!0)],6),[[Ye,s.value]])])),_:3}))}}),X$=["width","viewBox"],Z$=["filter","d"],J$={width:40,height:"60",class:"sfb-deco-appr-A"},ek=["d"],tk=["width","viewBox"],lk=["d"],nk=Object.assign({name:"ScifiButtonA5"},{__name:"A5",props:{...sn,appearance:{type:String,default:"A",validator:e=>["A","B"].includes(e)},directionAlt:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const l=e,a=t,i=$(null),o=Ee("sfBtn"),n=$(!1),s=$(!1),r=je({resizing:!1,width:0,path:{}}),{path:A}=rt(r),c=u((()=>"small"===l.size?.8:"large"===l.size?1.2:1)),g=u((()=>r.width?Math.round(r.width/c.value*1e3)/1e3:0)),v=u((()=>{if(!r.width)return"0px";const e=(r.width-g.value)/2;return Math.round(1e3*e)/1e3+"px"})),m=e=>{l.disabled||a("click",e)},y=()=>{const e=i.value;e&&(r.width=l.width||e.clientWidth,(async()=>{r.path=ft(Er(g.value)),await ye(),n.value=!0})())},b=u((()=>$e("cpt-sfb",{...q("w",r.width,"px"),...q("svgInset",v.value,{when:g.value}),...q("bdw",l.borderWidth,"px"),...q("bgOp",l.backgroundOpacity),...q("glowOp",l.glowOpacity),...q("aniDur",l.aniDuration,"s")})));return Be((()=>{s.value=!0,ye((()=>{y()}))})),(t,l)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-button-a5",`is-type-${t.type}`,"sf-svg-button","sf-svg-component",t.className,""+(n.value?"is-inited":"is-loading"),`is-size-${t.size}`,`sfb-appr-${e.appearance}`,{"is-active-primary":t.activeIsPrimary,"is-disabled":t.disabled,"is-deco-color-alt":t.decorationColorAlt,"is-deco-off":!t.decoration,"is-bd-off":!t.border,"is-ani-off":!t.animation,"is-dir-alt":e.directionAlt,"is-scale-off":!t.scaleAction}]),style:we(b.value),ref_key:"btnRef",ref:i},[f("span",{onClick:m,class:"sfb-text"},[ee(t.$slots,"default")]),n.value?(d(),h("div",{key:0,class:O(["sfb-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",{width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-svg-elem"},[me(_l,{uid:p(o),glowRange:t.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfb-main-bg",filter:t.glow&&`url(#bgGlow_${p(o)})`,d:p(A).mainBG},null,8,Z$)],8,X$)),"A"==e.appearance?(d(),h(ge,{key:0},Fe(2,(e=>f("svg",J$,[f("path",{class:"sfb-deco-B",d:p(A).decoA},null,8,ek)]))),64)):T("",!0),"B"==e.appearance?(d(),h("svg",{key:1,width:g.value,viewBox:`0 0 ${g.value} 60`,height:"60",class:"sfb-deco-appr-B"},[f("path",{class:"sfb-deco-B",d:p(A).decoB},null,8,lk)],8,tk)):T("",!0)],2)):T("",!0)],6),[[Ye,s.value]])])),_:3}))}}),rn={className:String,scale:Number,backgroundOpacity:Number,decoration:{type:Boolean,default:!0},decorationAlt:{type:Boolean,default:!1},decorationColorAlt:{type:Boolean,default:!1},decorationOpacity:Number,gradientBackground:{type:Boolean,default:!1},gradientReverse:{type:Boolean,default:!1},glow:{type:Boolean,default:!0},glowRange:Number,glowOpacity:Number,borderWidth:Number,width:{type:Number,default:300},height:{type:Number,default:150},directionAlt:{type:Boolean,default:!1},cornerAlt:Boolean,decoAltScale:Number,decoAltTransX:Number,decoAltTransY:Number,shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},borderd:{type:Boolean,default:!0}},ak=["id"],ok=["stdDeviation"],ik=["id"],un=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:8}},setup:e=>(t,l)=>(d(),h("defs",null,[f("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=f("feFlood",null,null,-1)),l[1]||(l[1]=f("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),f("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,ok),l[2]||(l[2]=f("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=f("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,ak),f("linearGradient",{class:"sfg-bg-grad",id:`bgGrad${e.uid}`,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},[...l[4]||(l[4]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,ik)]))}),sk={class:"sfg-slot-wrap"},rk={class:"sfg-slot-inner"},uk=["viewBox"],ck=["id"],dk=["d"],Ak=["filter","d"],fk=["viewBox"],pk=["id"],gk=["d"],vk=["mask","d"],hk=["viewBox"],mk=["d"],yk=Object.assign({name:"ScifiHexagon"},{__name:"Hexagon",props:{...rn},setup(e){const t=e,l=Ee("sfGeo"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>t.directionAlt?t.height:t.width)),s=u((()=>t.directionAlt?t.width:t.height)),r=u((()=>$e("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransX}),...q("datY",t.decoAltTransY,"px"),...q("decoAltScale",t.decoAltScale),width:n.value+"px",height:s.value+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return Be((()=>{(async()=>{i.path=ft(Lr(n.value,s.value)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-hexagon","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd}]),style:we(r.value),ref:"svgGeometry"},[f("div",sk,[f("div",rk,[ee(e.$slots,"default")])]),a.value?(d(),h("div",{key:0,class:O(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${n.value} ${s.value}`},[me(un,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("mask",{id:`slotMask${p(l)}`},[f("path",{fill:"white",d:p(o).mainBG},null,8,dk)],8,ck),f("path",{filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).mainBG},null,8,Ak)],8,uk)),!e.decorationAlt&&e.decoration?(d(),h(ge,{key:0},Fe(2,(e=>f("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${n.value} ${s.value}`},[f("defs",null,[f("mask",{id:`decoMask${p(l)}`},[f("path",{fill:"white",d:p(o).mask},null,8,gk)],8,pk)]),f("path",{mask:`url(#decoMask${p(l)})`,d:p(o).deco},null,8,vk)],8,fk))),64)):T("",!0),e.decorationAlt&&e.decoration?(d(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${n.value} ${s.value}`},[f("path",{d:p(o).mainBG},null,8,mk)],8,hk)):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),bk={class:"sfg-slot-wrap"},Vk={class:"sfg-slot-inner"},wk=["viewBox"],Ck=["filter","d"],Tk=["id"],Sk=["d"],$k=["viewBox"],kk=["id"],qk=["d"],xk=["mask","d"],Pk=["viewBox"],Bk=["d"],zk=Object.assign({name:"ScifiParallelogram"},{__name:"Parallelogram",props:{...rn},setup(e){const t=e,l=Ee("sfGeo"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransX}),...q("datY",t.decoAltTransY,"px"),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return Be((()=>{(async()=>{i.path=ft(Fr(t.width,t.height)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-parallelogram","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:we(n.value),ref:"svgGeometry"},[f("div",bk,[f("div",Vk,[ee(e.$slots,"default")])]),a.value?(d(),h("div",{key:0,class:O(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[me(un,{uid:p(l)},null,8,["uid"]),f("path",{filter:e.glow&&`url(#bgGlow_${p(l)})`,d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Ck),f("mask",{id:`slotMask${p(l)}`},[f("path",{fill:"white",d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Sk)],8,Tk)],8,wk)),!e.decorationAlt&&e.decoration?(d(),h(ge,{key:0},Fe(2,(t=>f("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("defs",null,[f("mask",{id:`decoMask${p(l)}`},[f("path",{fill:"white",d:e.cornerAlt?p(o).Bmask:p(o).Amask},null,8,qk)],8,kk)]),f("path",{mask:`url(#decoMask${p(l)})`,d:e.cornerAlt?p(o).Bdeco:p(o).Adeco},null,8,xk)],8,$k))),64)):T("",!0),e.decorationAlt&&e.decoration?(d(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("path",{d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Bk)],8,Pk)):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),Rk={class:"sfg-slot-wrap"},Nk={class:"sfg-slot-inner"},Ik=["viewBox"],Ok=["filter","d"],Dk=["id"],Mk=["d"],_k=["viewBox"],Ek=["id"],Lk=["d"],Fk=["mask","d"],jk=["viewBox"],Wk=["d"],Gk=Object.assign({name:"ScifiRectangle"},{__name:"Rectangle",props:{...rn},setup(e){const t=e,l=Ee("sfGeo"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransX}),...q("datY",t.decoAltTransY,"px"),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return Be((()=>{(async()=>{i.path=ft(jr(t.width,t.height)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-rectangle","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:we(n.value),ref:"svgGeometry"},[f("div",Rk,[f("div",Nk,[ee(e.$slots,"default")])]),a.value?(d(),h("div",{key:0,class:O(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[me(un,{uid:p(l)},null,8,["uid"]),f("path",{filter:e.glow&&`url(#bgGlow_${p(l)})`,d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Ok),f("mask",{id:`slotMask${p(l)}`},[f("path",{fill:"white",d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Mk)],8,Dk)],8,Ik)),!e.decorationAlt&&e.decoration?(d(),h(ge,{key:0},Fe(2,(t=>f("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("defs",null,[f("mask",{id:`mask-${p(l)}`},[f("path",{fill:"white",d:e.cornerAlt?p(o).Bmask:p(o).Amask},null,8,Lk)],8,Ek)]),f("path",{mask:`url(#mask-${p(l)})`,d:e.cornerAlt?p(o).Bdeco:p(o).Adeco},null,8,Fk)],8,_k))),64)):T("",!0),e.decorationAlt&&e.decoration?(d(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("path",{d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Wk)],8,jk)):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),Hk={class:"sfg-slot-wrap"},Kk={class:"sfg-slot-inner"},Uk=["viewBox"],Yk=["filter","d"],Qk=["id"],Xk=["d"],Zk=["viewBox"],Jk=["id"],eq=["d"],tq=["mask","d"],lq=["viewBox"],nq=["d"],aq=Object.assign({name:"ScifiTrapezoid"},{__name:"Trapezoid",props:{...rn},setup(e){const t=e,l=Ee("sfGeo"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX,"px"),...q("datY",t.decoAltTransY*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransY}),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return Be((()=>{(async()=>{i.path=ft(Wr(t.width,t.height)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-trapezoid","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:we(n.value),ref:"svgGeometry"},[f("div",Hk,[f("div",Kk,[ee(e.$slots,"default")])]),a.value?(d(),h("div",{key:0,class:O(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[me(un,{uid:p(l)},null,8,["uid"]),f("path",{filter:e.glow&&`url(#bgGlow_${p(l)})`,d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Yk),f("mask",{id:`slotMask${p(l)}`},[f("path",{fill:"white",d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,Xk)],8,Qk)],8,Uk)),!e.decorationAlt&&e.decoration?(d(),h(ge,{key:0},Fe(2,(t=>f("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("defs",null,[f("mask",{id:`decoMask${p(l)}`},[f("path",{id:"clipPathId",fill:"white",d:e.cornerAlt?p(o).Bmask:p(o).Amask},null,8,eq)],8,Jk)]),f("path",{mask:`url(#decoMask${p(l)})`,d:e.cornerAlt?p(o).Bdeco:p(o).Adeco},null,8,tq)],8,Zk))),64)):T("",!0),e.decorationAlt&&e.decoration?(d(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("path",{d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,nq)],8,lq)):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),oq={class:"sfg-slot-wrap"},iq={class:"sfg-slot-inner"},sq=["viewBox"],rq=["filter","d"],uq=["id"],cq=["d"],dq=["viewBox"],Aq=["id"],fq=["d"],pq=["mask","d"],gq=["viewBox"],vq=["d"],hq=Object.assign({name:"ScifiTriangle"},{__name:"Triangle",props:{...rn},setup(e){const t=e,l=Ee("sfGeo"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-geom",{...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("decoOp",t.decorationOpacity),...q("bdw",t.borderWidth,"px"),...q("datX",t.decoAltTransX,"px"),...q("datY",t.decoAltTransY*(t.directionAlt?-1:1),{append:"px",when:t.decoAltTransY}),...q("decoAltScale",t.decoAltScale),width:t.width+"px",height:t.height+"px",bggrad:`url(#bgGrad${l})`,bgmask:`url(#slotMask${l})`})));return Be((()=>{(async()=>{i.path=ft(Gr(t.width,t.height)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-triangle","sf-svg-geometry","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),e.gradientBackground?"is-bg-grad":"is-bg-normal",{"is-dir-alt":e.directionAlt,"is-deco-color-alt":e.decorationColorAlt,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-grad-rev":e.gradientReverse}]),style:we(n.value),ref:"svgGeometry"},[f("div",oq,[f("div",iq,[ee(e.$slots,"default")])]),a.value?(d(),h("div",{key:0,class:O(["sfg-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfg-bg-wrap",viewBox:`0 0 ${e.width} ${e.height}`},[me(un,{uid:p(l)},null,8,["uid"]),f("path",{filter:e.glow&&`url(#bgGlow_${p(l)})`,d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,rq),f("mask",{id:`slotMask${p(l)}`},[f("path",{fill:"white",d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,cq)],8,uq)],8,sq)),!e.decorationAlt&&e.decoration?(d(),h(ge,{key:0},Fe(2,(t=>f("svg",{class:"sfg-deco-A-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("defs",null,[f("mask",{id:`decoMask${p(l)}`},[f("path",{id:"clipPathId",fill:"white",d:e.cornerAlt?p(o).Bmask:p(o).Amask},null,8,fq)],8,Aq)]),f("path",{mask:`url(#decoMask${p(l)})`,d:e.cornerAlt?p(o).Bdeco:p(o).Adeco},null,8,pq)],8,dq))),64)):T("",!0),e.decorationAlt&&e.decoration?(d(),h("svg",{key:1,class:"sfg-deco-B-elem",viewBox:`0 0 ${e.width} ${e.height}`},[f("path",{d:e.cornerAlt?p(o).BmainBG:p(o).AmainBG},null,8,vq)],8,gq)):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),cn={backgroundOpacity:Number,directionAlt:Boolean,decorationAlt:Boolean,decorationColorAlt:Boolean,fontWeight:String,fontSize:Number,className:String,scale:Number,shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},borderd:{type:Boolean,default:!0},glow:{type:Boolean,default:!0},glowRange:Number,glowOpacity:Number,size:Number},mq=["id"],yq=["stdDeviation"],dn=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:10}},setup:e=>(t,l)=>(d(),h("defs",null,[f("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=f("feFlood",null,null,-1)),l[1]||(l[1]=f("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),f("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,yq),l[2]||(l[2]=f("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=f("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,mq)]))}),bq={class:"sfd-slot-wrap"},Vq={class:"sfd-svg-hidden"},wq={key:0,class:"sfd-svg-elem",viewBox:"0 0 243.82 243.82"},Cq=["d"],Tq=["filter"],Sq={key:1,class:"sfd-svg-elem",viewBox:"0 0 276.46 239.42"},$q=["d"],kq=["filter","d"],qq={key:2,class:"sfd-svg-elem",viewBox:"0 0 293.21 233.77"},xq=["d"],Pq=["filter","d"],Bq=Object.assign({name:"ScifiDecoA1"},{__name:"A1",props:{...cn,appearance:{type:String,default:"A",validator:e=>["A","B","C"].includes(e)}},setup(e){const t=e,l=Ee("sfDec"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return Be((()=>{(async()=>{i.path=ft(Hr(i.width)),await ye(),a.value=!0})()})),(t,i)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-deco-a1","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-deco-alt":t.decorationAlt,"is-dir-alt":t.directionAlt}]),style:we(n.value)},[f("div",bq,[ee(t.$slots,"default")]),a.value?(d(),h("div",{key:0,class:O(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",Vq,[me(dn,{uid:p(l),glowRange:t.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(d(),h("svg",wq,[t.borderd?(d(),h("path",{key:0,class:"sfd-svg-bd",d:p(o).Adeco},null,8,Cq)):T("",!0),f("circle",{filter:t.glow&&`url(#bgGlow_${p(l)})`,class:"sfd-svg-bg",cx:"121.91",cy:"121.21",r:"103.42"},null,8,Tq)])):T("",!0),"B"==e.appearance?(d(),h("svg",Sq,[t.borderd?(d(),h("path",{key:0,class:"sfd-svg-bd",d:p(o).Bdeco},null,8,$q)):T("",!0),f("path",{filter:t.glow&&`url(#bgGlow_${p(l)})`,class:"sfd-svg-bg",d:p(o).BmainBG},null,8,kq)])):T("",!0),"C"==e.appearance?(d(),h("svg",qq,[t.borderd?(d(),h("path",{key:0,class:"sfd-svg-bd",d:p(o).Cdeco},null,8,xq)):T("",!0),f("path",{filter:t.glow&&`url(#bgGlow_${p(l)})`,class:"sfd-svg-bg",d:p(o).CmainBG},null,8,Pq)])):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),zq={class:"sfd-slot-wrap"},Rq={class:"sfd-svg-hidden"},Nq={key:0,class:"sfd-svg-elem",viewBox:"0 0 596.2 564.96"},Iq=["filter","d"],Oq={key:0,class:"sfd-svg-deco-A"},Dq=["d"],Mq=["d"],_q=["d"],Eq=["d"],Lq={key:1,class:"sfd-svg-deco-B"},Fq=["d"],jq=["d"],Wq=["d"],Gq=["d"],Hq={key:1,class:"sfd-svg-elem",viewBox:"0 0 596.16 594.75"},Kq={key:0,class:"sfd-svg-deco-B"},Uq=["d"],Yq=["d"],Qq=["d"],Xq=["d"],Zq=["d"],Jq=["d"],ex=["d"],tx=["d"],lx=["filter"],nx={key:2,class:"sfd-svg-elem",viewBox:"0 0 596.18 596.17"},ax=["filter","d"],ox={key:0,class:"sfd-svg-deco-B"},ix=["points"],sx=["d"],rx=["points"],ux=["points"],cx={key:1,class:"sfd-svg-deco-A"},dx=["d"],Ax=["d"],fx=["d"],px=["d"],gx={key:2,class:"sfd-svg-deco-B"},vx=["d"],hx=["d"],mx=["d"],yx=["d"],bx={key:3,class:"sfd-svg-elem",viewBox:"0 0 567.49 567.5"},Vx=["filter"],wx=["d"],Cx={key:1,class:"sfd-svg-deco-B"},Tx=["d"],Sx=["d"],$x=["d"],kx=["d"],qx=Object.assign({name:"ScifiDecoB1"},{__name:"B1",props:{...cn,appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},glowRange:{type:Number,default:20}},setup(e){const t=e,l=Ee("sfDec"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return Be((()=>{(async()=>{i.path=ft(Kr(i.width)),await ye(),a.value=!0})()})),(t,i)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-deco-b1","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-deco-alt":t.decorationAlt,"is-dir-alt":t.directionAlt}]),style:we(n.value)},[f("div",zq,[ee(t.$slots,"default")]),a.value?(d(),h("div",{key:0,class:O(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",Rq,[me(dn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(d(),h("svg",Nq,[f("path",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,d:p(o).AmainBG},null,8,Iq),t.borderd?(d(),h("g",Oq,[f("path",{d:p(o).AdecoA1},null,8,Dq),f("path",{d:p(o).AdecoA2},null,8,Mq),f("path",{d:p(o).AdecoA3},null,8,_q),f("path",{d:p(o).AdecoA4},null,8,Eq)])):T("",!0),t.borderd?(d(),h("g",Lq,[f("path",{d:p(o).AdecoB1},null,8,Fq),f("path",{d:p(o).AdecoB2},null,8,jq),f("path",{d:p(o).AdecoB3},null,8,Wq),f("path",{d:p(o).AdecoB4},null,8,Gq)])):T("",!0)])):T("",!0),"B"==e.appearance?(d(),h("svg",Hq,[t.borderd?(d(),h("g",Kq,[f("path",{d:p(o).BdecoB1},null,8,Uq),f("path",{d:p(o).BdecoB2},null,8,Yq),f("path",{d:p(o).BdecoB3},null,8,Qq),f("path",{d:p(o).BdecoB4},null,8,Xq),f("path",{d:p(o).BdecoB5},null,8,Zq),f("path",{d:p(o).BdecoB6},null,8,Jq),f("path",{d:p(o).BdecoB7},null,8,ex)])):T("",!0),t.borderd?(d(),h("path",{key:1,class:"sfd-svg-deco-A",d:p(o).BdecoA},null,8,tx)):T("",!0),f("circle",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,cx:"297.43",cy:"294.27",r:"243"},null,8,lx)])):T("",!0),"C"==e.appearance?(d(),h("svg",nx,[f("path",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,d:p(o).CmainBG},null,8,ax),t.borderd?(d(),h("g",ox,[f("polygon",{points:p(o).CdecoB1},null,8,ix),f("path",{d:p(o).CdecoB2},null,8,sx),f("polygon",{points:p(o).CdecoB3},null,8,rx),f("polygon",{points:p(o).CdecoB4},null,8,ux)])):T("",!0),t.borderd?(d(),h("g",cx,[f("path",{d:p(o).CdecoA1},null,8,dx),f("path",{d:p(o).CdecoA2},null,8,Ax),f("path",{d:p(o).CdecoA3},null,8,fx),f("path",{d:p(o).CdecoA4},null,8,px)])):T("",!0),t.borderd?(d(),h("g",gx,[f("path",{d:p(o).CdecoC1},null,8,vx),f("path",{d:p(o).CdecoC2},null,8,hx),f("path",{d:p(o).CdecoC3},null,8,mx),f("path",{d:p(o).CdecoC4},null,8,yx)])):T("",!0)])):T("",!0),"D"==e.appearance?(d(),h("svg",bx,[f("circle",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,cx:"283.41",cy:"284.1",r:"194.5"},null,8,Vx),t.borderd?(d(),h("path",{key:0,class:"sfd-svg-deco-A",d:p(o).DdecoA},null,8,wx)):T("",!0),t.borderd?(d(),h("g",Cx,[f("path",{d:p(o).DdecoB1},null,8,Tx),f("path",{d:p(o).DdecoB2},null,8,Sx),f("path",{d:p(o).DdecoB3},null,8,$x),f("path",{d:p(o).DdecoB4},null,8,kx)])):T("",!0)])):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),xx={class:"sfd-slot-wrap"},Px={class:"sfd-svg-hidden"},Bx={key:0,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.47"},zx=["filter","points"],Rx=["d"],Nx={key:1,class:"sfd-svg-deco-A"},Ix=["points"],Ox=["points"],Dx=["points"],Mx=["points"],_x={key:1,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.47"},Ex=["filter","points"],Lx={key:0,class:"sfd-svg-deco-A"},Fx=["points"],jx=["points"],Wx=["points"],Gx={key:1,class:"sfd-svg-deco-A"},Hx=["points"],Kx=["points"],Ux=["d"],Yx=["d"],Qx={key:2,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.46"},Xx=["filter","points"],Zx={key:0,class:"sfd-svg-deco-A"},Jx=["points"],eP=["points"],tP=["points"],lP=["points"],nP=["points"],aP=["points"],oP=["d"],iP={key:3,class:"sfd-svg-elem",viewBox:"0 0 210.67 182.46"},sP=["filter","points"],rP=["d"],uP={key:1,class:"sfd-svg-deco-A"},cP=["points"],dP=["points"],AP=["points"],fP=["points"],pP=["points"],gP=["points"],vP=["points"],hP=["points"],mP=["points"],yP=["points"],bP=["points"],VP=["points"],wP=["points"],CP=["points"],TP={key:2,class:"sfd-svg-deco-A"},SP=["points"],$P=["points"],kP=["points"],qP=["points"],xP=["points"],PP=["points"],BP=Object.assign({name:"ScifiDecoB2"},{__name:"B2",props:{...cn,appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},glowRange:{type:Number,default:20}},setup(e){const t=e,l=Ee("sfDec"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return Be((()=>{(async()=>{i.path=ft(Ur(i.width)),await ye(),a.value=!0})()})),(t,i)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-deco-b2","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-dir-alt":t.directionAlt}]),style:we(n.value)},[f("div",xx,[ee(t.$slots,"default")]),a.value?(d(),h("div",{key:0,class:O(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",Px,[me(dn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(d(),h("svg",Bx,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).AmainBG},null,8,zx),t.borderd?(d(),h("path",{key:0,class:"sfd-svg-deco-B",d:p(o).AdecoB},null,8,Rx)):T("",!0),t.borderd?(d(),h("g",Nx,[f("polygon",{points:p(o).AdecoA1},null,8,Ix),f("polygon",{points:p(o).AdecoA2},null,8,Ox),f("polygon",{points:p(o).AdecoA3},null,8,Dx),f("polygon",{points:p(o).AdecoA4},null,8,Mx)])):T("",!0)])):T("",!0),"B"==e.appearance?(d(),h("svg",_x,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).BmainBG},null,8,Ex),t.borderd?(d(),h("g",Lx,[f("polygon",{points:p(o).BdecoA11},null,8,Fx),f("polygon",{points:p(o).BdecoA12},null,8,jx),f("polygon",{points:p(o).BdecoA13},null,8,Wx)])):T("",!0),t.borderd?(d(),h("g",Gx,[f("polygon",{points:p(o).BdecoA21},null,8,Hx),f("polygon",{points:p(o).BdecoA22},null,8,Kx),f("path",{d:p(o).BdecoA23},null,8,Ux)])):T("",!0),t.borderd?(d(),h("path",{key:2,class:"sfd-svg-deco-B",d:p(o).BdecoB},null,8,Yx)):T("",!0)])):T("",!0),"C"==e.appearance?(d(),h("svg",Qx,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).CmainBG},null,8,Xx),t.borderd?(d(),h("g",Zx,[f("polygon",{points:p(o).CdecoA1},null,8,Jx),f("polygon",{points:p(o).CdecoA2},null,8,eP),f("polygon",{points:p(o).CdecoA3},null,8,tP),f("polygon",{points:p(o).CdecoA4},null,8,lP),f("polygon",{points:p(o).CdecoA5},null,8,nP),f("polygon",{points:p(o).CdecoA6},null,8,aP)])):T("",!0),t.borderd?(d(),h("path",{key:1,class:"sfd-svg-deco-B",d:p(o).CdecoB},null,8,oP)):T("",!0)])):T("",!0),"D"==e.appearance?(d(),h("svg",iP,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).DmainBG},null,8,sP),t.borderd?(d(),h("path",{key:0,class:"sfd-svg-deco-B",d:p(o).DdecoB},null,8,rP)):T("",!0),t.borderd?(d(),h("g",uP,[f("polygon",{points:p(o).DdecoA101},null,8,cP),f("polygon",{points:p(o).DdecoA102},null,8,dP),f("polygon",{points:p(o).DdecoA103},null,8,AP),f("polygon",{points:p(o).DdecoA104},null,8,fP),f("polygon",{points:p(o).DdecoA105},null,8,pP),f("polygon",{points:p(o).DdecoA106},null,8,gP),f("polygon",{points:p(o).DdecoA107},null,8,vP),f("polygon",{points:p(o).DdecoA108},null,8,hP),f("polygon",{points:p(o).DdecoA109},null,8,mP),f("polygon",{points:p(o).DdecoA110},null,8,yP),f("polygon",{points:p(o).DdecoA111},null,8,bP),f("polygon",{points:p(o).DdecoA112},null,8,VP),f("polygon",{points:p(o).DdecoA113},null,8,wP),f("polygon",{points:p(o).DdecoA114},null,8,CP)])):T("",!0),t.borderd?(d(),h("g",TP,[f("polygon",{points:p(o).DdecoA21},null,8,SP),f("polygon",{points:p(o).DdecoA22},null,8,$P),f("polygon",{points:p(o).DdecoA23},null,8,kP),f("polygon",{points:p(o).DdecoA24},null,8,qP),f("polygon",{points:p(o).DdecoA25},null,8,xP),f("polygon",{points:p(o).DdecoA26},null,8,PP)])):T("",!0)])):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),zP={class:"sfd-slot-wrap"},RP={class:"sfd-svg-hidden"},NP={key:0,class:"sfd-svg-elem",viewBox:"0 0 208.91 186.33"},IP=["filter","points"],OP=["d"],DP={key:1,class:"sfd-svg-deco-B"},MP=["d"],_P=["points"],EP=["points"],LP={key:1,class:"sfd-svg-elem",viewBox:"0 0 213.7 185"},FP=["filter","points"],jP={key:0,class:"sfd-svg-deco-B"},WP=["points"],GP=["points"],HP=["points"],KP={key:1,class:"sfd-svg-deco-B"},UP=["points"],YP=["points"],QP=["points"],XP={key:2,class:"sfd-svg-deco-A"},ZP=["points"],JP=["points"],eB=["points"],tB={key:2,class:"sfd-svg-elem",viewBox:"0 0 214.06 185.38"},lB=["filter","points"],nB={key:0,class:"sfd-svg-deco-A"},aB=["points"],oB=["points"],iB=["points"],sB={key:1,class:"sfd-svg-deco-B"},rB=["points"],uB=["points"],cB={key:3,class:"sfd-svg-elem",viewBox:"0 0 210.22 183.69"},dB=["filter","points"],AB=["d"],fB={key:1,class:"sfd-svg-deco-B"},pB=["points"],gB=["points"],vB=Object.assign({name:"ScifiDecoB3"},{__name:"B3",props:{...cn,appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},glowRange:{type:Number,default:20}},setup(e){const t=e,l=Ee("sfDec"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("glowOp",t.glowOpacity),...q("bgOp",t.backgroundOpacity),...q("size",t.size,"px")})));return Be((()=>{(async()=>{i.path=ft(Yr(i.width)),await ye(),a.value=!0})()})),(t,i)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-deco-b3","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-dir-alt":t.directionAlt}]),style:we(n.value)},[f("div",zP,[ee(t.$slots,"default")]),a.value?(d(),h("div",{key:0,class:O(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",RP,[me(dn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),"A"==e.appearance?(d(),h("svg",NP,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).AmainBG},null,8,IP),t.borderd?(d(),h("path",{key:0,class:"sfd-svg-deco-A",d:p(o).AdecoA},null,8,OP)):T("",!0),t.borderd?(d(),h("g",DP,[i[0]||(i[0]=f("line",{x1:"193.9",y1:"142.29",x2:"184.67",y2:"126.3"},null,-1)),f("path",{d:p(o).AdecoB1},null,8,MP),f("polygon",{points:p(o).AdecoB2},null,8,_P),f("polygon",{points:p(o).AdecoB3},null,8,EP)])):T("",!0)])):T("",!0),"B"==e.appearance?(d(),h("svg",LP,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).BmainBG},null,8,FP),t.borderd?(d(),h("g",jP,[f("polygon",{points:p(o).BdecoB11},null,8,WP),f("polygon",{points:p(o).BdecoB12},null,8,GP),f("polygon",{points:p(o).BdecoB13},null,8,HP)])):T("",!0),t.borderd?(d(),h("g",KP,[f("polygon",{points:p(o).BdecoB21},null,8,UP),f("polygon",{points:p(o).BdecoB22},null,8,YP),f("polygon",{points:p(o).BdecoB23},null,8,QP)])):T("",!0),t.borderd?(d(),h("g",XP,[f("polygon",{points:p(o).BdecoA1},null,8,ZP),f("polygon",{points:p(o).BdecoA2},null,8,JP),f("polygon",{points:p(o).BdecoA3},null,8,eB)])):T("",!0)])):T("",!0),"C"==e.appearance?(d(),h("svg",tB,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).CmainBG},null,8,lB),t.borderd?(d(),h("g",nB,[f("polygon",{points:p(o).CdecoA1},null,8,aB),f("polygon",{points:p(o).CdecoA2},null,8,oB),f("polygon",{points:p(o).CdecoA3},null,8,iB)])):T("",!0),t.borderd?(d(),h("g",sB,[f("polygon",{points:p(o).CdecoB1},null,8,rB),f("polygon",{points:p(o).CdecoB2},null,8,uB)])):T("",!0)])):T("",!0),"D"==e.appearance?(d(),h("svg",cB,[f("polygon",{class:"sfd-svg-bg",filter:t.glow&&`url(#bgGlow_${p(l)})`,points:p(o).DmainBG},null,8,dB),t.borderd?(d(),h("path",{key:0,class:"sfd-svg-deco-A",d:p(o).DdecoA},null,8,AB)):T("",!0),t.borderd?(d(),h("g",fB,[f("polygon",{points:p(o).DdecoB1},null,8,pB),f("polygon",{points:p(o).DdecoB2},null,8,gB)])):T("",!0)])):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),hB={class:"sfd-svg-hidden"},mB={class:"sfd-slot-wrap"},yB={key:0,class:"sfd-bracket-wrap"},bB=["filter"],VB=["d"],wB={key:1,class:"sfd-bracket-wrap"},CB=["filter"],TB=["d"],SB=["d"],$B={key:2,class:"sfd-bracket-wrap"},kB=["filter"],qB=["d"],xB=["points"],PB=["points"],BB={key:3,class:"sfd-bracket-wrap"},zB=["filter"],RB=["d"],NB=["points"],IB={key:4,class:"sfd-bracket-wrap"},OB=["filter"],DB=["points"],MB=["points"],_B=Object.assign({name:"ScifiDecoC1"},{__name:"C1",props:{...cn,appearance:{type:String,default:"A",validator:e=>["A","B","C","D","E"].includes(e)},glowRange:{type:Number,default:20},bracketRatio:Number},setup(e){const t=e,l=Ee("sfDec"),a=$(!1),i=je({path:{}}),{path:o}=rt(i),n=u((()=>$e("cpt-deco",{...q("fw",t.fontWeight),...q("fs",t.fontSize,"px"),...q("scale",t.scale),...q("bracketRatio",t.bracketRatio),...q("size",t.size,"px")})));return Be((()=>{(async()=>{i.path=ft(Qr(i.width)),await ye(),a.value=!0})()})),(t,i)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-deco-c1","sf-svg-deco","sf-svg-component",t.className,""+(a.value?"is-inited":"is-loading"),`sfd-appr-${e.appearance}`,{"is-deco-color-alt":t.decorationColorAlt,"is-dir-alt":t.directionAlt}]),style:we(n.value)},[a.value?(d(),h("div",{key:0,class:O(["sfd-svg-wrap",{"t3d-shadow-item":"t3d"==t.shadowType,"sf-shadow-item":"drop"==t.shadowType}])},[(d(),h("svg",hB,[me(dn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"])])),f("div",mB,[ee(t.$slots,"default")]),t.borderd&&"A"==e.appearance?(d(),h("div",yB,[(d(),h(ge,null,Fe(2,(e=>f("svg",{filter:t.glow&&`url(#bgGlow_${p(l)})`,viewBox:"0 0 45.29 172.01"},[f("path",{class:"sfd-svg-deco-B",d:p(o).Adeco},null,8,VB)],8,bB))),64))])):T("",!0),t.borderd&&"B"==e.appearance?(d(),h("div",wB,[(d(),h(ge,null,Fe(2,(e=>f("svg",{filter:t.glow&&`url(#bgGlow_${p(l)})`,viewBox:"0 0 68.16 172.21"},[f("path",{class:"sfd-svg-deco-B",d:p(o).BdecoB},null,8,TB),f("path",{class:"sfd-svg-deco-A",d:p(o).BdecoA},null,8,SB)],8,CB))),64))])):T("",!0),t.borderd&&"C"==e.appearance?(d(),h("div",$B,[(d(),h(ge,null,Fe(2,(e=>f("svg",{filter:t.glow&&`url(#bgGlow_${p(l)})`,viewBox:"0 0 76.68 172.7"},[f("path",{class:"sfd-svg-deco-B",d:p(o).CdecoB},null,8,qB),f("polygon",{class:"sfd-svg-deco-A",points:p(o).CdecoA1},null,8,xB),f("polygon",{class:"sfd-svg-deco-A",points:p(o).CdecoA2},null,8,PB)],8,kB))),64))])):T("",!0),t.borderd&&"D"==e.appearance?(d(),h("div",BB,[(d(),h(ge,null,Fe(2,(e=>f("svg",{filter:t.glow&&`url(#bgGlow_${p(l)})`,viewBox:"0 0 44.5 172.69"},[f("path",{class:"sfd-svg-deco-B",d:p(o).DdecoB},null,8,RB),f("polygon",{class:"sfd-svg-deco-A",points:p(o).DdecoA},null,8,NB)],8,zB))),64))])):T("",!0),t.borderd&&"E"==e.appearance?(d(),h("div",IB,[(d(),h(ge,null,Fe(2,(e=>f("svg",{filter:t.glow&&`url(#bgGlow_${p(l)})`,viewBox:"0 0 37.63 172.75"},[f("polygon",{class:"sfd-svg-deco-B",points:p(o).EdecoB},null,8,DB),f("polygon",{class:"sfd-svg-deco-A",points:p(o).EdecoA},null,8,MB)],8,OB))),64))])):T("",!0)],2)):T("",!0)],6),[[Ye,a.value]])])),_:3}))}}),Qn={backgroundOpacity:Number,width:Number,scale:Number,className:String,aniDuration:Number,borderWidth:Number,text:{type:String,default:"SCIFI HEADER"},animation:{type:Boolean,default:!0},decoration:{type:Boolean,default:!0},decorationAlt:Boolean,decorationColorAlt:Boolean,shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},glow:{type:Boolean,default:!1},glowRange:Number,glowOpacity:Number,gradientReverse:{type:Boolean,default:!1},gradientBackground:{type:Boolean,default:!0}},EB=["id"],LB=["stdDeviation"],FB=["id"],Xn=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:8}},setup:e=>(t,l)=>(d(),h("defs",null,[f("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=f("feFlood",null,null,-1)),l[1]||(l[1]=f("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),f("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,LB),l[2]||(l[2]=f("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=f("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,EB),f("linearGradient",{class:"sfh-bg-grad",id:`bgGrad${e.uid}`,gradientUnits:"userSpaceOnUse",x1:"0%",y1:"100%",x2:"0%",y2:"0%"},[...l[4]||(l[4]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,FB)]))}),jB=["d"],WB=["d"],GB=["d"],HB=["d"],KB={class:"sfh-svg-elem",x:"0px",y:"0px"},UB=["filter","d"],YB=["d"],QB={class:"sfh-text"},XB=Object.assign({name:"ScifiHeaderA1"},{__name:"A1",props:{...Qn},setup(e){const t=e,l=Ee("sfHed"),a=$(!1),i=je({resizing:!1,path:{}}),{path:o}=rt(i),n=u((()=>t.width||450)),s=u((()=>$e("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return Be((()=>{(async()=>{i.path=ft(Xr(n.value)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-header-a1","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-animation":e.animation,"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:we(s.value),ref:"svgHeader"},[a.value?(d(),h("div",{key:0,class:O(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h(ge,null,Fe(2,(e=>f("svg",{class:O("sfh-side-deco sfh-sd-"+e),x:"0px",y:"0px",viewBox:"0 0 150 80"},[f("path",{class:"sfh-deco-4",d:p(o).deco4},null,8,jB),f("path",{class:"sfh-deco-3",d:p(o).deco3},null,8,WB),f("path",{class:"sfh-deco-2",d:p(o).deco2},null,8,GB),f("path",{class:"sfh-deco-1",d:p(o).deco1},null,8,HB)],2))),64)),(d(),h("svg",KB,[me(Xn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).mainBG},null,8,UB),e.decoration?(d(),h("path",{key:0,class:"sfh-deco-btm",d:p(o).decoBG},null,8,YB)):T("",!0)]))],2)):T("",!0),f("div",QB,[ee(e.$slots,"default",{},(()=>[We(X(e.text),1)]))])],6),[[Ye,a.value]])])),_:3}))}}),ZB={class:O("sfh-svg-elem"),x:"0px",y:"0px"},JB={key:0},ez=["d"],tz=["filter","d"],lz=["d"],nz=["d"],az={key:1},oz=["d"],iz=["filter","d"],sz=["d"],rz=["d"],uz=["d"],cz=["d"],dz={class:"sfh-text"},Az=Object.assign({name:"ScifiHeaderA2"},{__name:"A2",props:{...Qn},setup(e){const t=e,l=Ee("sfHed"),a=$(!1),i=je({resizing:!1,path:{}}),{path:o}=rt(i),n=u((()=>t.width||800)),s=u((()=>$e("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return Be((()=>{(async()=>{i.path=ft(Zr(n.value)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-header-a2","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:we(s.value),ref:"svgHeader"},[a.value?(d(),h("div",{key:0,class:O(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",ZB,[me(Xn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decorationAlt?T("",!0):(d(),h("g",JB,[f("path",{class:"sfh-main-bg sfh-main-bg-btm",d:p(o).AmainBG2},null,8,ez),f("path",{class:"sfh-main-bg sfh-main-bg-top",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).AmainBG1},null,8,tz),f("path",{class:"sfh-deco-left",d:p(o).AdecoL},null,8,lz),f("path",{class:"sfh-deco-right",d:p(o).AdecoR},null,8,nz)])),e.decorationAlt?(d(),h("g",az,[f("path",{class:"sfh-main-bg sfh-main-bg-btm",d:p(o).BmainBG2},null,8,oz),f("path",{class:"sfh-main-bg sfh-main-bg-top",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).BmainBG1},null,8,iz),f("path",{class:"sfh-deco-left",d:p(o).BdecoL},null,8,sz),f("path",{class:"sfh-deco-right",d:p(o).BdecoR},null,8,rz)])):T("",!0),e.decoration&&!e.decorationColorAlt?(d(),h("path",{key:2,class:"sfh-deco-btm",d:p(o).decoB},null,8,uz)):T("",!0),e.decoration?(d(),h("path",{key:3,class:"sfh-deco-btm-center",d:p(o).decoBc},null,8,cz)):T("",!0)]))],2)):T("",!0),f("div",dz,[ee(e.$slots,"default",{},(()=>[We(X(e.text),1)]))])],6),[[Ye,a.value]])])),_:3}))}}),fz={class:O("sfh-svg-elem"),x:"0px",y:"0px"},pz={key:0},gz=["filter","d"],vz={class:"sfh-deco-side"},hz=["d"],mz=["d"],yz=["d"],bz=["d"],Vz={class:"sfh-deco-side"},wz=["d"],Cz=["d"],Tz=["d"],Sz=["d"],$z={key:1},kz=["filter","d"],qz={class:"sfh-deco-side"},xz=["d"],Pz=["d"],Bz=["d"],zz=["d"],Rz=["d"],Nz={class:"sfh-deco-side"},Iz=["d"],Oz=["d"],Dz=["d"],Mz=["d"],_z=["d"],Ez={key:2},Lz=["d"],Fz=["d"],jz=["d"],Wz={class:"sfh-text"},Gz=Object.assign({name:"ScifiHeaderA3"},{__name:"A3",props:{...Qn},setup(e){const t=e,l=Ee("sfHed"),a=$(!1),i=je({resizing:!1,path:{}}),{path:o}=rt(i),n=u((()=>t.width||800)),s=u((()=>$e("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return Be((()=>{(async()=>{i.path=ft(Jr(n.value)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-header-a3","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:we(s.value),ref:"svgHeader"},[a.value?(d(),h("div",{key:0,class:O(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",fz,[me(Xn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decorationAlt?T("",!0):(d(),h("g",pz,[f("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).AmainBG1},null,8,gz),f("g",vz,[f("path",{class:"sfh-deco-2",d:p(o).Adeco2L},null,8,hz),f("path",{class:"sfh-deco-3",d:p(o).Adeco3L},null,8,mz),f("path",{class:"sfh-deco-4",d:p(o).Adeco4L},null,8,yz),f("path",{class:"sfh-deco-0",d:p(o).Adeco0L},null,8,bz)]),f("g",Vz,[f("path",{class:"sfh-deco-2",d:p(o).Adeco2R},null,8,wz),f("path",{class:"sfh-deco-3",d:p(o).Adeco3R},null,8,Cz),f("path",{class:"sfh-deco-4",d:p(o).Adeco4R},null,8,Tz),f("path",{class:"sfh-deco-0",d:p(o).Adeco0R},null,8,Sz)])])),e.decorationAlt?(d(),h("g",$z,[f("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).BmainBG1},null,8,kz),f("g",qz,[f("path",{class:"sfh-deco-1",d:p(o).Bdeco1L},null,8,xz),f("path",{class:"sfh-deco-2",d:p(o).Bdeco2L},null,8,Pz),f("path",{class:"sfh-deco-3",d:p(o).Bdeco3L},null,8,Bz),f("path",{class:"sfh-deco-4",d:p(o).Bdeco4L},null,8,zz),f("path",{class:"sfh-deco-5",d:p(o).Bdeco5L},null,8,Rz)]),f("g",Nz,[f("path",{class:"sfh-deco-1",d:p(o).Bdeco1R},null,8,Iz),f("path",{class:"sfh-deco-2",d:p(o).Bdeco2R},null,8,Oz),f("path",{class:"sfh-deco-3",d:p(o).Bdeco3R},null,8,Dz),f("path",{class:"sfh-deco-4",d:p(o).Bdeco4R},null,8,Mz),f("path",{class:"sfh-deco-5",d:p(o).Bdeco5R},null,8,_z)])])):T("",!0),e.decoration?(d(),h("g",Ez,[f("path",{class:"sfh-deco-bl",d:p(o).decoBl},null,8,Lz),f("path",{class:"sfh-deco-br",d:p(o).decoBr},null,8,Fz),f("path",{class:"sfh-deco-btm-center",d:p(o).decoBc},null,8,jz)])):T("",!0)]))],2)):T("",!0),f("div",Wz,[ee(e.$slots,"default",{},(()=>[We(X(e.text),1)]))])],6),[[Ye,a.value]])])),_:3}))}}),Hz={class:O("sfh-svg-elem"),x:"0px",y:"0px"},Kz={key:0},Uz={class:"sfh-deco-side"},Yz=["d"],Qz=["d"],Xz=["d"],Zz={class:"sfh-deco-side"},Jz=["d"],eR=["d"],tR=["d"],lR=["d"],nR=["filter","d"],aR={key:1},oR={class:"sfh-deco-side"},iR=["d"],sR=["d"],rR=["d"],uR={class:"sfh-deco-side"},cR=["d"],dR=["d"],AR=["d"],fR=["d"],pR=["filter","d"],gR={class:"sfh-text"},vR=Object.assign({name:"ScifiHeaderA4"},{__name:"A4",props:{...Qn},setup(e){const t=e,l=Ee("sfHed"),a=$(!1),i=je({resizing:!1,path:{}}),{path:o}=rt(i),n=u((()=>t.width||800)),s=u((()=>$e("cpt-header",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("glowOp",t.glowOpacity),...q("aniDur",t.aniDuration,"s"),...q("scale",t.scale),bgGrad:`url(#bgGrad${l})`,width:n.value+"px"})));return Be((()=>{(async()=>{i.path=ft(eu(n.value)),await ye(),a.value=!0})()})),(e,t)=>(d(),le(Ue,{name:"fade"},{default:G((()=>[Re(f("div",{class:O(["scifi-header-a4","sf-svg-header","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),""+(e.gradientBackground?"is-bg-grad":"is-bg-normal"),{"is-grad-rev":e.gradientReverse,"is-deco-color-alt":e.decorationColorAlt}]),style:we(s.value),ref:"svgHeader"},[a.value?(d(),h("div",{key:0,class:O(["sfh-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",Hz,[me(Xn,{uid:p(l),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decorationAlt?T("",!0):(d(),h("g",Kz,[f("g",Uz,[f("path",{class:"sfh-deco-3",d:p(o).Adeco3L},null,8,Yz),f("path",{class:"sfh-deco-2",d:p(o).Adeco2L},null,8,Qz),f("path",{class:"sfh-deco-1",d:p(o).Adeco1L},null,8,Xz)]),f("g",Zz,[f("path",{class:"sfh-deco-3",d:p(o).Adeco3R},null,8,Jz),f("path",{class:"sfh-deco-2",d:p(o).Adeco2R},null,8,eR),f("path",{class:"sfh-deco-1",d:p(o).Adeco1R},null,8,tR)]),e.decoration?(d(),h("path",{key:0,class:"sfh-deco-btm-center",d:p(o).decoBc},null,8,lR)):T("",!0),f("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).AmainBG},null,8,nR)])),e.decorationAlt?(d(),h("g",aR,[f("g",oR,[f("path",{class:"sfh-deco-1",d:p(o).Bdeco1L},null,8,iR),f("path",{class:"sfh-deco-2",d:p(o).Bdeco2L},null,8,sR),f("path",{class:"sfh-deco-3",d:p(o).Bdeco3L},null,8,rR)]),f("g",uR,[f("path",{class:"sfh-deco-1",d:p(o).Bdeco1R},null,8,cR),f("path",{class:"sfh-deco-2",d:p(o).Bdeco2R},null,8,dR),f("path",{class:"sfh-deco-3",d:p(o).Bdeco3R},null,8,AR)]),e.decoration?(d(),h("path",{key:0,class:"sfh-deco-btm-center",d:p(o).decoBc},null,8,fR)):T("",!0),f("path",{class:"sfh-main-bg",filter:e.glow&&`url(#bgGlow_${p(l)})`,d:p(o).BmainBG},null,8,pR)])):T("",!0)]))],2)):T("",!0),f("div",gR,[ee(e.$slots,"default",{},(()=>[We(X(e.text),1)]))])],6),[[Ye,a.value]])])),_:3}))}}),_t={backgroundOpacity:Number,scale:Number,decoration:{type:Boolean,default:!0},decorationAlt:{type:Boolean,default:!1},decorationColorAlt:Boolean,glow:{type:Boolean,default:!1},glowRange:Number,glowOpacity:Number,title:String,className:String,titleWidth:{type:Number,default:150},borderd:{type:Boolean,default:!0},borderWidth:Number,rotate:{type:String,validator:e=>["x","y","z","all"].includes(e)},reverse:{type:Boolean,default:!1},directionAlt:{type:Boolean,default:!1},shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},animation:{type:Boolean,default:!0},aniDuration:Number,dotSize:{type:Number,default:2},dotOffset:{type:Number,default:0},backgroundBlur:{type:Boolean,default:!1},blurRange:Number,resizeObserver:{type:String,default:"global",validator:e=>["self","global","none"].includes(e)},showSlotImmed:{type:Boolean,default:!1}},hR=["id"],mR=["stdDeviation"],Et=Object.assign({name:"SVGDefs"},{__name:"SVGDefs",props:{uid:{type:String,required:!0},glowRange:{type:Number,default:5}},setup:e=>(t,l)=>(d(),h("defs",null,[f("filter",{id:`bgGlow_${e.uid}`},[l[0]||(l[0]=f("feFlood",null,null,-1)),l[1]||(l[1]=f("feComposite",{in2:"SourceGraphic",operator:"out"},null,-1)),f("feGaussianBlur",{stdDeviation:e.glowRange,result:"blur"},null,8,mR),l[2]||(l[2]=f("feOffset",{dx:"0",dy:"0",result:"offsetblur"},null,-1)),l[3]||(l[3]=f("feComposite",{operator:"atop",in2:"SourceGraphic"},null,-1))],8,hR)]))}),yR={key:0,class:"sfp-content"},bR={key:0,class:"sfp-title"},VR={class:"sfp-rotate-wrap"},wR=["width","height"],CR=["filter","points"],TR=["points"],SR=["points"],$R=["points"],kR=["points"],qR=["points"],xR=["points"],PR=["points"],BR=["points"],zR=["points"],RR=["points"],NR=["points"],IR=Object.assign({name:"ScifiPanelA1"},{__name:"A1",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(tu(e,t,i.titleWidth))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("titleW",i.titleWidth,{append:"px",when:i.title}),...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:A.info.width+"px",h:A.info.height+"px"}))),y=u((()=>i.directionAlt?A.info.height:A.info.width)),b=u((()=>i.directionAlt?A.info.width:A.info.height)),V=e=>{const t=i.directionAlt?"DA_":"";return A.path[t+e]};return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-a1","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.directionAlt?"is-dir-alt":"is-dir-normal"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",yR,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[e.title?(d(),h("div",bR,X(e.title),1)):T("",!0),f("div",VR,[(d(),h("svg",{class:"sfp-svg-elem",width:y.value,height:b.value},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:V("mainBG")},null,8,CR),(!e.title&&!e.decorationAlt||e.title&&e.decorationAlt)&&e.decoration?(d(),h("polyline",{key:0,class:"sfp-corner-lb-longdeco",points:V("cornerDecoLBLong")},null,8,TR)):T("",!0),e.title?T("",!0):(d(),h(ge,{key:1},[f("polyline",{class:"sfp-corner-rect0",points:V("cornerRect0")},null,8,SR),f("polyline",{class:"sfp-corner-rect1",points:V("cornerRect1")},null,8,$R),f("polyline",{class:"sfp-corner-rect2",points:V("cornerRect2")},null,8,kR),f("polyline",{class:"sfp-corner-rect3",points:V("cornerRect3")},null,8,qR),f("polyline",{class:"sfp-corner-rect4",points:V("cornerRect4")},null,8,xR)],64)),e.decoration?(d(),h("polyline",{key:2,class:"sfp-corner-lt-triangle",points:V("cornerTrangleLT")},null,8,PR)):T("",!0),e.decoration?(d(),h("polyline",{key:3,class:"sfp-corner-rb-triangle",points:V("cornerTrangleRB")},null,8,BR)):T("",!0),(e.title&&!e.decorationAlt||!e.title&&e.decorationAlt)&&e.decoration?(d(),h("polyline",{key:4,class:"sfp-corner-lb-triangle",points:V("cornerTrangleLB")},null,8,zR)):T("",!0),e.title&&!e.decorationAlt||!e.title&&e.decorationAlt||!e.decoration?(d(),h("polyline",{key:5,class:"sfp-corner-lb-line",points:V("cornerLineLB")},null,8,RR)):T("",!0),e.title?(d(),h("polyline",{key:6,class:"sfp-title-deco",points:V("titleDeco")},null,8,NR)):T("",!0)],8,wR))])],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),OR={key:0,class:"sfp-content"},DR={class:"sfp-title"},MR={class:"sfp-rotate-wrap"},_R=["width","height"],ER=["filter","d"],LR=["d"],FR=["points"],jR=["points"],WR=["points"],GR=["points"],HR=["points"],KR=["d"],UR=Object.assign({name:"ScifiPanelA2"},{__name:"A2",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(lu(e,t,i.titleWidth))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("titleW",i.titleWidth,{append:"px",when:i.title}),...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:A.info.width+"px",h:A.info.height+"px"}))),y=u((()=>i.directionAlt?A.info.height:A.info.width)),b=u((()=>i.directionAlt?A.info.width:A.info.height)),V=e=>{const t=i.directionAlt?"DA_":"";return A.path[t+e]};return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-a3","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.directionAlt?"is-dir-alt":"is-dir-normal"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-alt":e.decorationAlt,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",OR,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h(ge,{key:1},[f("div",DR,X(e.title),1),f("div",{class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[f("div",MR,[(d(),h("svg",{class:"sfp-svg-elem",width:y.value,height:b.value},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",d:V("mainBG")},null,8,ER),f("path",{class:"sfp-corner-line",fill:"transparent",d:V("cornerLine")},null,8,LR),f("polyline",{class:"sfp-corner-block",points:V("cornerBlock")},null,8,FR),e.decoration?(d(),h(ge,{key:0},[f("polyline",{class:"sfp-corner-triangle-lb",points:V("cornerTriangleLB")},null,8,jR),e.decorationAlt?T("",!0):(d(),h("polyline",{key:0,class:"sfp-corner-triangle-rt",points:V("cornerTriangleRT")},null,8,WR))],64)):T("",!0),e.decorationAlt?(d(),h("path",{key:2,class:"sfp-title-deco-alt",d:V("titleDecoAlt")},null,8,KR)):(d(),h(ge,{key:1},[f("polyline",{class:"sfp-head-line",points:V("titleDeco")},null,8,GR),f("polyline",{class:"sfp-title-deco",points:V("headLine")},null,8,HR)],64))],8,_R))])],2)],64)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),YR={key:0,class:"sfp-content"},QR={class:"sfp-corenr-title"},XR=["width","height"],ZR=["filter","points"],JR=["points"],eN=["points"],tN=["points"],lN=["points"],nN=Object.assign({name:"ScifiPanelA3"},{__name:"A3",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(nu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:A.info.width+"px",h:A.info.height+"px"})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-a2","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",YR,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h(ge,{key:1},[f("div",QR,X(e.title),1),f("div",{class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,ZR),f("polyline",{class:"sfp-corner-large-trg",points:p(c).titleTrangle},null,8,JR),f("polyline",{class:"sfp-corner-small-trg",points:p(c).decorTriangle},null,8,eN),e.decoration?(d(),h(ge,{key:0},[f("polyline",{class:"sfp-corner-long-line",points:p(c).decorLine1},null,8,tN),f("polyline",{class:"sfp-corner-short-line",points:p(c).decorLine2},null,8,lN)],64)):T("",!0)],8,XR))],2)],64)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),aN={key:0,class:"sfp-content"},oN=["width","height"],iN=["filter","points"],sN=["points"],rN=["points"],uN=["points"],cN=Object.assign({name:"ScifiPanelB1"},{__name:"B1",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{},borderCorner:["top-left","top-right","btm-left","btm-right"]}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(au(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-b1","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",aN,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,iN),f("polygon",{class:"sfp-deco-left",points:p(c).decoL},null,8,sN),f("polygon",{class:"sfp-deco-right",points:p(c).decoR},null,8,rN)],8,oN)),e.decoration?(d(!0),h(ge,{key:0},Fe(A.borderCorner,(e=>(d(),h("svg",{class:O("sfp-svg-corner sfp-corner-"+e),width:"50",height:"50"},[f("polygon",{class:"sfp-corner-ele",points:p(c).decoCorner},null,8,uN)],2)))),256)):T("",!0)],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),dN={key:0,class:"sfp-content"},AN=["width","height"],fN=["id"],pN=["id"],gN=["points"],vN=["points"],hN=["points"],mN=["filter","points"],yN=["width","height","fill","mask"],bN=Object.assign({name:"ScifiPanelB2"},{__name:"B2",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(ou(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px"),...q("aniDur",i.aniDuration,"s")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-b2","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":A.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",dN,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("defs",null,[f("linearGradient",{class:"sfp-grad-group",id:`gradient-${p(o)}`,x1:"0%",y1:"0%",x2:"100%",y2:"100%"},[...t[0]||(t[0]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,fN),f("mask",{id:`mask-${p(o)}`},[e.decoration?(d(),h("polyline",{key:0,class:"sfp-deco-left",fill:"#fff",points:p(c).decoL},null,8,gN)):T("",!0),e.decoration?(d(),h("polyline",{key:1,class:"sfp-deco-right",fill:"#fff",points:p(c).decoR},null,8,vN)):T("",!0)],8,pN)]),f("polyline",{class:"sfp-deco-btm",points:p(c).decoB},null,8,hN),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,mN),f("rect",{x:"0",y:"0",width:p(g).width,height:p(g).height,fill:`url(#gradient-${p(o)})`,mask:`url(#mask-${p(o)})`},null,8,yN)],8,AN))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),VN={key:0,class:"sfp-content"},wN=["width","height"],CN=["filter","d"],TN=["points"],SN=["d"],$N=["points"],kN=["d"],qN=["points"],xN=["points"],PN=Object.assign({name:"ScifiPanelB3"},{__name:"B3",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(iu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-b3","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",VN,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",d:p(c).mainBG},null,8,CN),e.decorationAlt?(d(),h("polyline",{key:0,class:"sfp-deco-arrow-tl",points:p(c).decoArrowTL},null,8,TN)):T("",!0),!e.decorationAlt&&e.decoration?(d(),h("path",{key:1,class:"sfp-deco-line-tl",d:p(c).decoLineTL},null,8,SN)):T("",!0),e.decorationAlt?(d(),h("polyline",{key:2,class:"sfp-deco-arrow-br",points:p(c).decoArrowBR},null,8,$N)):T("",!0),!e.decorationAlt&&e.decoration?(d(),h("path",{key:3,class:"sfp-deco-line-br",d:p(c).decoLineBR},null,8,kN)):T("",!0),f("polyline",{class:"sfp-deco-lb",points:p(c).decoLB},null,8,qN),f("polyline",{class:"sfp-deco-rt",points:p(c).decoRT},null,8,xN)],8,wN))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),BN={key:0,class:"sfp-content"},zN=["width","height"],RN=["id"],NN=["id"],IN=["id"],ON=["id"],DN=["filter","points"],MN=["points"],_N=["points"],EN=["points"],LN=["points"],FN=["points"],jN=["points"],WN=["stroke","points"],GN=["stroke","points"],HN=["stroke","points"],KN=["stroke","points"],UN=Object.assign({name:"ScifiPanelB4"},{__name:"B4",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(su(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("bgBlur",i.blurRange,"px")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-b4","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.decoration?"sfp-has-deco":"sfp-no-deco"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",BN,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("defs",null,[f("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"0%",y1:"0%",x2:"8%",y2:"8%",id:`gradient1-${p(o)}`},[...t[0]||(t[0]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,RN),f("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"100%",y1:"0%",x2:"92%",y2:"8%",id:`gradient2-${p(o)}`},[...t[1]||(t[1]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,NN),f("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"100%",y1:"100%",x2:"92%",y2:"92%",id:`gradient3-${p(o)}`},[...t[2]||(t[2]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,IN),f("linearGradient",{gradientUnits:"userSpaceOnUse",x1:"0%",y1:"100%",x2:"8%",y2:"92%",id:`gradient4-${p(o)}`},[...t[3]||(t[3]=[f("stop",{offset:"0%"},null,-1),f("stop",{offset:"100%"},null,-1)])],8,ON)]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,DN),f("polyline",{class:"sfp-inf-line1",points:p(c).line1},null,8,MN),f("polyline",{class:"sfp-inf-line2",points:p(c).line2},null,8,_N),f("polyline",{class:"sfp-inf-line3",points:p(c).line3},null,8,EN),e.decoration?(d(),h(ge,{key:0},[f("polyline",{class:"sfp-inf-line4",points:p(c).line4},null,8,LN),f("polyline",{class:"sfp-inf-line5",points:p(c).line5},null,8,FN),f("polyline",{class:"sfp-inf-line6",points:p(c).line6},null,8,jN)],64)):T("",!0),e.decoration?(d(),h(ge,{key:1},[f("polyline",{class:"sfp-corner-line",stroke:`url(#gradient1-${p(o)})`,points:p(c).cornerTL},null,8,WN),f("polyline",{class:"sfp-corner-line",stroke:`url(#gradient2-${p(o)})`,points:p(c).cornerTR},null,8,GN),f("polyline",{class:"sfp-corner-line",stroke:`url(#gradient3-${p(o)})`,points:p(c).cornerBR},null,8,HN),f("polyline",{class:"sfp-corner-line",stroke:`url(#gradient4-${p(o)})`,points:p(c).cornerBL},null,8,KN)],64)):T("",!0)],8,zN))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),YN={key:0,class:"sfp-content"},QN=["width","height"],XN=["points"],ZN=["filter","points"],JN=["points"],eI=["points"],tI=["points"],lI=["points"],nI={key:0,attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},aI=["points"],oI={key:0,attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},iI=["points"],sI={key:0,attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},rI=["points"],uI={key:0,attributeName:"opacity",values:"1;0.7;1",dur:"2s",begin:"0s",repeatCount:"indefinite"},cI=["points"],dI={key:0,attributeName:"opacity",values:"0.7;0.4;0.7",dur:"2s",begin:"0s",repeatCount:"indefinite"},AI=["points"],fI={key:0,attributeName:"opacity",values:"0.5;0.2;0.5",dur:"2s",begin:"0s",repeatCount:"indefinite"},pI=["x"],gI=["points"],vI=["points"],hI=Object.assign({name:"ScifiPanelDV1"},{__name:"DV1",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(ru(e,t,i.titleWidth))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("titleW",i.titleWidth,{append:"px",when:i.title}),...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),w:A.info.width+"px",h:A.info.height+"px"})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv1","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),""+(e.directionAlt?"is-dir-alt":"is-dir-normal"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-hide-deco":!e.decoration,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",YN,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polygon",{class:"sfp-title-bg",points:p(c).titleBG},null,8,XN),f("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).border},null,8,ZN),f("polygon",{class:"sfp-title-deco-right",points:p(c).titleDecoR},null,8,JN),f("polygon",{class:"sfp-title-deco-left",points:p(c).titleDecoL},null,8,eI),f("polygon",{class:"sfp-title-bg-in",points:p(c).titleBGin},null,8,tI),e.decoration?(d(),h(ge,{key:0},[f("polygon",{class:"sfp-deco-top-1",opacity:"1",points:p(c).decoT1},[e.animation?(d(),h("animate",nI)):T("",!0)],8,lI),f("polygon",{class:"sfp-deco-top-2",opacity:"0.7",points:p(c).decoT2},[e.animation?(d(),h("animate",oI)):T("",!0)],8,aI),f("polygon",{class:"sfp-deco-top-3",opacity:"0.5",points:p(c).decoT3},[e.animation?(d(),h("animate",sI)):T("",!0)],8,iI),f("polygon",{class:"sfp-deco-top-4",opacity:"1",points:p(c).decoT4},[e.animation?(d(),h("animate",uI)):T("",!0)],8,rI),f("polygon",{class:"sfp-deco-top-5",opacity:"0.7",points:p(c).decoT5},[e.animation?(d(),h("animate",dI)):T("",!0)],8,cI),f("polygon",{class:"sfp-deco-top-6",opacity:"0.5",points:p(c).decoT6},[e.animation?(d(),h("animate",fI)):T("",!0)],8,AI)],64)):T("",!0),f("text",{class:"sfp-title-text",x:""+p(g).width/2,y:"32","font-size":"18","text-anchor":"middle","dominant-baseline":"middle"},X(e.title),9,pI),f("polygon",{class:"sfp-deco-left",points:p(c).decoL},null,8,gI),f("polygon",{class:"sfp-deco-right",points:p(c).decoR},null,8,vI)],8,QN))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),mI={key:0,class:"sfp-content"},yI=["width","height"],bI=["filter","points"],VI=["points"],wI=["points"],CI=["points"],TI=Object.assign({name:"ScifiPanelDV2"},{__name:"DV2",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{},corners:["left-top","right-top","left-btm","right-btm"]}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(uu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("aniDur",i.aniDuration,"s")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv2","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",mI,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,bI)],8,yI)),(d(!0),h(ge,null,Fe(A.corners,(t=>(d(),h("svg",{width:"150",height:"150",key:t,class:O(`sfp-${t} sfp-svg-corner`)},[f("polygon",{points:p(c).decoA},null,8,VI),e.decoration?(d(),h(ge,{key:0},[f("polygon",{points:p(c).decoB},null,8,wI),f("polygon",{points:p(c).decoC},null,8,CI)],64)):T("",!0)],2)))),128))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),SI={key:0,class:"sfp-content"},$I=["width","height"],kI=["filter","points"],qI=["points"],xI=["points"],PI=["points"],BI=["points"],zI=["points"],RI=["points"],NI=["points"],II=["points"],OI=["points"],DI=["points"],MI={class:"sfp-dot"},_I=["cx","cy","r"],EI=["cx","cy","r"],LI=["cx","cy","r"],FI=["cx","cy","r"],jI=Object.assign({name:"ScifiPanelDV3"},{__name:"DV3",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(cu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv3","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",SI,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,kI),f("polyline",{class:"sfp-border",points:p(c).lineT},null,8,qI),f("polyline",{class:"sfp-border",points:p(c).lineB},null,8,xI),f("polyline",{class:"sfp-border",points:p(c).lineL},null,8,PI),f("polyline",{class:"sfp-border",points:p(c).lineR},null,8,BI),e.decoration?(d(),h(ge,{key:0},[f("polyline",{class:"sfp-center-line",points:p(c).lineLc},null,8,zI),f("polyline",{class:"sfp-center-line",points:p(c).lineRc},null,8,RI),f("polyline",{class:"sfp-deco-line",points:p(c).deco1},null,8,NI),f("polyline",{class:"sfp-deco-line",points:p(c).deco2},null,8,II),f("polyline",{class:"sfp-deco-line",points:p(c).deco3},null,8,OI),f("polyline",{class:"sfp-deco-line",points:p(c).deco4},null,8,DI)],64)):T("",!0),f("g",MI,[f("circle",{cx:5+e.dotOffset,cy:5+e.dotOffset,r:e.dotSize},null,8,_I),f("circle",{cx:p(g).width-5-e.dotOffset,cy:5+e.dotOffset,r:e.dotSize},null,8,EI),f("circle",{cx:p(g).width-5-e.dotOffset,cy:p(g).height-5-e.dotOffset,r:e.dotSize},null,8,LI),f("circle",{cx:5+e.dotOffset,cy:p(g).height-5-e.dotOffset,r:e.dotSize},null,8,FI)])],8,$I))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),WI={key:0,class:"sfp-content"},GI=["width","height"],HI=["filter","points"],KI=["points"],UI={key:0,class:"sfp-svg-dot"},YI=["cx","cy","r"],QI=["cx","cy","r"],XI=["cx","cy","r"],ZI=["cx","cy","r"],JI=Object.assign({name:"ScifiPanelDV4"},{__name:"DV4",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(du(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv4","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",WI,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,HI),f("polyline",{class:"sfp-svg-inner-bd",points:p(c).innerBorder},null,8,KI),e.decoration?(d(),h("g",UI,[f("circle",{cx:13+e.dotOffset,cy:13+e.dotOffset,r:e.dotSize},null,8,YI),f("circle",{cx:p(g).width-13-e.dotOffset,cy:13+e.dotOffset,r:e.dotSize},null,8,QI),f("circle",{cx:p(g).width-13-e.dotOffset,cy:p(g).height-13-e.dotOffset,r:e.dotSize},null,8,XI),f("circle",{cx:13+e.dotOffset,cy:p(g).height-13-e.dotOffset,r:e.dotSize},null,8,ZI)])):T("",!0)],8,GI))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),e2={key:0,class:"sfp-content"},t2=["width","height"],l2=["filter","points"],n2={class:"sfp-corner-line sfp-line-w2"},a2=["points"],o2=["points"],i2=["points"],s2=["points"],r2={key:0,class:"sfp-corner-line sfp-line-w5"},u2=["points"],c2=["points"],d2=["points"],A2=["points"],f2=Object.assign({name:"ScifiPanelDV5"},{__name:"DV5",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(Au(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv5","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",e2,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polyline",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,l2),f("g",n2,[f("polyline",{points:p(c).cornerA1},null,8,a2),f("polyline",{points:p(c).cornerA2},null,8,o2),f("polyline",{points:p(c).cornerA3},null,8,i2),f("polyline",{points:p(c).cornerA4},null,8,s2)]),e.decoration?(d(),h("g",r2,[f("polyline",{points:p(c).cornerB1},null,8,u2),f("polyline",{points:p(c).cornerB2},null,8,c2),f("polyline",{points:p(c).cornerB3},null,8,d2),f("polyline",{points:p(c).cornerB4},null,8,A2)])):T("",!0)],8,t2))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),p2={key:0,class:"sfp-content"},g2=["width","height"],v2=["filter","points"],h2=["points"],m2=Object.assign({name:"ScifiPanelDV6"},{__name:"DV6",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{},corners:["left-top","right-top","left-btm","right-btm"]}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(fu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv6","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",p2,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(c).mainBG},null,8,v2)],8,g2)),s.value&&e.decoration?(d(!0),h(ge,{key:0},Fe(A.corners,(e=>(d(),h("svg",{width:"150px",height:"150px",key:e,class:O(`sfp-${e} sfp-svg-corner`)},[f("polygon",{points:p(c).deco},null,8,h2)],2)))),128)):T("",!0)],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),y2={key:0,class:"sfp-content"},b2=["width","height"],V2={key:0},w2=["id"],C2=["filter","d"],T2=["filter"],S2=["d"],$2=["d"],k2=["d"],q2=["d"],x2=Object.assign({name:"ScifiPanelDV7"},{__name:"DV7",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(pu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("aniDur",i.aniDuration,"s")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv7","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",y2,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),e.decoration?(d(),h("defs",V2,[f("filter",{class:"sfp-glow-filter",id:`filter2-${p(o)}`,height:"150%",width:"150%",x:"-25%",y:"-25%"},[...t[0]||(t[0]=[f("feMorphology",{operator:"dilate",radius:"1",in:"SourceAlpha",result:"thicken"},null,-1),f("feGaussianBlur",{in:"thicken",stdDeviation:"2",result:"blurred"},null,-1),f("feFlood",{result:"glowColor"},null,-1),f("feComposite",{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"},null,-1),f("feMerge",null,[f("feMergeNode",{in:"softGlowColored"}),f("feMergeNode",{in:"SourceGraphic"})],-1)])],8,w2)])):T("",!0),f("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",d:p(c).mainBG},null,8,C2),e.decoration?(d(),h("g",{key:1,class:"sfp-corner",filter:`url(#filter2-${p(o)})`},[f("path",{d:p(c).corner1},null,8,S2),f("path",{d:p(c).corner2},null,8,$2),f("path",{d:p(c).corner3},null,8,k2),f("path",{d:p(c).corner4},null,8,q2)],8,T2)):T("",!0)],8,b2))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),P2={key:0,class:"sfp-content"},B2=["width","height"],z2=["filter","d"],R2=["d"],N2=["d"],I2={key:1},O2=["points"],D2=["points"],M2=["d"],_2=Object.assign({name:"ScifiPanelDV8"},{__name:"DV8",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}}),{path:c,info:g}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&v({width:l,height:o})}));const v=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(gu(e,t))})(),await ye(),s.value=!0},m=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale)})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv8","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),""+(e.rotate?"is-rotate-"+e.rotate:"is-rotate-none"),{"is-resizing":A.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(m.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",P2,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(g).width,height:p(g).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("path",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",d:p(c).mainBG},null,8,z2),f("path",{class:"sfp-dash",d:p(c).headDecoA},null,8,R2),e.borderd?(d(),h("path",{key:0,class:"sfp-head-line",d:p(c).headDecoB},null,8,N2)):T("",!0),e.decoration?(d(),h("g",I2,[e.decoration?(d(),h("polyline",{key:0,class:"sfp-corner-lb",points:p(c).decoLB},null,8,O2)):T("",!0),f("polyline",{class:"sfp-corner-rt",points:p(c).decoRT},null,8,D2)])):T("",!0),f("path",{class:"sfp-corner-rb",d:p(c).decoRB},null,8,M2)],8,B2))],2)):T("",!0)],6)),[[l,{callback:v,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),E2={key:0,class:"sfp-content"},L2=["width","height"],F2=["id","d"],j2=["id","d"],W2=["id"],G2=["id"],H2=["fill"],K2=["dur","path"],U2=["dur","path"],Y2=["filter","points"],Q2=["xlink:href","mask"],X2=Object.assign({name:"ScifiPanelDV9"},{__name:"DV9",props:{..._t},setup(e){const{$optResizeCounter:t,initResizeBy:l}=ze("$global",null),a=l(),i=e,o=Ee("sfPan"),n=$(!1),s=$(!1),r=$(!1),A=je({resizing:!1,info:{width:0,height:0},path:{}});u((()=>2*(A.info.width+A.info.height)));const c=u((()=>i.aniDuration||10)),{path:g,info:v}=rt(A);Z((()=>t.value),((e,t)=>{if("root"!=a.value(i.resizeObserver))return;const{clientWidth:l,clientHeight:o}=n.value;e>t&&m({width:l,height:o})}));const m=async({width:e,height:t})=>{A.info.width=e,A.info.height=t,(()=>{const{width:e,height:t}=A.info;A.path=ft(vu(e,t))})(),await ye(),s.value=!0},y=u((()=>$e("cpt-panel",{...q("bdw",i.borderWidth,"px"),...q("bgOp",i.backgroundOpacity),...q("glowOp",i.glowOpacity),...q("scale",i.scale),...q("aniDur",i.aniDuration,"s")})));return Be((()=>{r.value=!0})),(e,t)=>{const l=Je("tui-resize");return d(),le(Ue,{name:"fade"},{default:G((()=>[Re((d(),h("div",{class:O(["scifi-panel-dv9","sf-svg-panel","sf-svg-component",e.className,""+(s.value?"is-inited":"is-loading"),{"is-resizing":A.resizing,"is-animation":e.animation,"is-bordered":e.borderd,"is-borderless":!e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(y.value),ref_key:"svgPanel",ref:n},[e.showSlotImmed||s.value?(d(),h("div",E2,[ee(e.$slots,"default")])):T("",!0),s.value?(d(),h("div",{key:1,class:O(["sfp-svg-wrap",{"t3d-shadow-item":"t3d"==e.shadowType,"sf-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur}])},[(d(),h("svg",{class:"sfp-svg-elem",width:p(v).width,height:p(v).height},[me(Et,{uid:p(o),glowRange:e.glowRange},null,8,["uid","glowRange"]),f("defs",null,[e.reverse?(d(),h("path",{key:1,id:`path-${p(o)}`,d:p(g).pathR,fill:"transparent"},null,8,j2)):(d(),h("path",{key:0,id:`path-${p(o)}`,d:p(g).pathN,fill:"transparent"},null,8,F2)),f("radialGradient",{id:`gradient-${p(o)}`,cx:"50%",cy:"50%",r:"50%"},[...t[0]||(t[0]=[f("stop",{offset:"0%","stop-color":"#fff","stop-opacity":"1"},null,-1),f("stop",{offset:"100%","stop-color":"#fff","stop-opacity":"0"},null,-1)])],8,W2),f("mask",{id:`mask-${p(o)}`},[f("circle",{cx:"0",cy:"0",r:"150",fill:`url(#gradient-${p(o)})`},[e.reverse?(d(),h("animateMotion",{key:1,dur:`${c.value}s`,path:p(g).pathR,rotate:"auto",repeatCount:"indefinite"},null,8,U2)):(d(),h("animateMotion",{key:0,dur:`${c.value}s`,path:p(g).pathN,rotate:"auto",repeatCount:"indefinite"},null,8,K2))],8,H2)],8,G2)]),f("polygon",{class:"sfp-svg-bg",filter:e.glow?`url(#bgGlow_${p(o)})`:"",points:p(g).mainBG},null,8,Y2),f("use",{class:"sfp-deco-light","xlink:href":`#path-${p(o)}`,mask:`url(#mask-${p(o)})`},null,8,Q2)],8,L2))],2)):T("",!0)],6)),[[l,{callback:m,uid:p(o),disabled:"self"!=p(a)(e.resizeObserver)&&s.value}],[Ye,r.value]])])),_:3})}}}),Z2={backgroundOpacity:Number,scale:Number,decoration:{type:Boolean,default:!0},decorationColorAlt:Boolean,decorationAlt:{type:Boolean,default:!1},glow:{type:Boolean,default:!1},glowRange:Number,glowOpacity:Number,title:String,className:String,titleWidth:{type:Number,default:150},borderd:{type:Boolean,default:!0},borderWidth:Number,rotate:{type:String,validator:e=>["x","y","z","all"].includes(e)},reverse:{type:Boolean,default:!1},directionAlt:{type:Boolean,default:!1},shadowType:{type:String,default:"drop",validator:e=>["drop","t3d","none"].includes(e)},animation:{type:Boolean,default:!0},aniDuration:Number,dotSize:{type:Number,default:2},dotOffset:{type:Number,default:0},backgroundBlur:{type:Boolean,default:!1},blurRange:Number},J2={class:"tuip-content"},eO={key:0,class:"tuip-corner-angle-left"},tO={key:1,class:"tuip-corner-angle-right"},lO=Object.assign({name:"TuiPanelA1"},{__name:"A1",props:{...Z2,angleLength:Number,angleWeight:Number,anglePosition:Number,borderRadius:Number,borderRadiusFix:Number},setup(e){const t=e;Ee("tuipan"),$(!1);const l=u((()=>$e("cpt-panel",{...q("bdw",t.borderWidth,"px"),...q("bgOp",t.backgroundOpacity),...q("scale",t.scale),...q("angleLength",t.angleLength,"px"),...q("angleWeight",t.angleWeight,"px"),...q("anglePosition",t.anglePosition,"px"),...q("bdra",t.borderRadius,"px"),...q("bdraFix",t.borderRadiusFix,"px"),...q("bgBlur",t.blurRange,"px"),...q("glowRange",t.glowRange,"px"),...q("glowOp",t.glowOpacity)})));return Be((()=>{})),(e,t)=>(d(),h("div",{class:O(["tui-panel-a1","tui-panel",e.className,{"is-bordered":e.borderd,"is-deco-color-alt":e.decorationColorAlt}]),style:we(l.value)},[f("div",J2,[ee(e.$slots,"default")]),f("div",{class:O(["tuip-appr",{"t3d-shadow-item":"t3d"==e.shadowType,"tui-shadow-item":"drop"==e.shadowType,"has-bd-filter":e.backgroundBlur,"is-glow":e.glow}])},[t[0]||(t[0]=f("div",{class:"tuip-bg"},null,-1)),e.decoration?(d(),h("div",eO)):T("",!0),e.decoration?(d(),h("div",tO)):T("",!0)],2)],6))}}),nO=["sfp-content","tuip-content"],aO={1:32,2:28,3:24,4:20,5:18,6:16};function gs(e){const t=Number(e);return Number.isInteger(t)&&t>=1&&t<=6}function oO(e){return gs(e)?Number(e):6}const An={width:Number,minWidth:Number,fontWeight:[String,Number],fontSize:Number,level:{type:[Number,String],default:6,validator:gs},offset:Number,offsetX:Number,offsetY:Number,title:String,className:String,backgroundOpacity:Number,scale:{type:Number,default:1},mode:{type:String,default:"auto",validator:e=>["auto","absolute","flow"].includes(e)},appearance:{type:String,default:"A",validator:e=>["A","B","C","D"].includes(e)},placement:{type:String,default:null,validator:e=>["center","left","right"].includes(e)},textAlign:{type:String,default:null,validator:e=>["center","left","right"].includes(e)},decorationColorAlt:{type:Boolean,default:!1}};function iO(e){const t=e?.parentElement;return t&&nO.some((e=>t.classList.contains(e)))?"absolute":"flow"}function fn(e,t,l="center",a=null){const i=$("auto"===t.mode?"flow":t.mode),o=()=>{i.value="auto"===t.mode?iO(e.value):t.mode};Be((()=>{o()}));const n=u((()=>t.placement||l)),s=u((()=>t.textAlign||a||n.value));return{resolvedMode:i,placement:n,textAlign:s,refreshMode:o}}function pn(e,t={}){const l=null!=e.fontSize?e.fontSize:aO[oO(e.level)],a=null!=e.offsetX?e.offsetX:e.offset,i=null!=e.offsetY?e.offsetY:e.offset;return $e("cpt-title",{...q("w",e.width,"px"),...q("minw",e.minWidth,"px"),...q("fw",e.fontWeight),...q("fs",l,{append:"px",zero:!0}),...q("bgOp",e.backgroundOpacity),...q("scale",e.scale),...q("ofsX",a,{append:"px",zero:!0}),...q("ofsY",i,{append:"px",zero:!0}),...t})}const sO={class:"sft-text"},rO=["width"],uO=["points"],cO=["points"],dO=["points"],AO=["width"],fO=["d"],pO=Object.assign({name:"ScifiTitleA1"},{__name:"A1",props:{...An,offsetY:{type:Number,default:3}},setup(e){const t=e,l=$(null),a=$(!1),i=je({resizing:!1,path:{},width:0}),{path:o}=rt(i),{resolvedMode:n,placement:s,textAlign:r}=fn(l,t,"center"),A=e=>{const t=l.value;t&&(i.width=t.clientWidth,(async()=>{i.path=ft(hu(i.width)),await ye(),a.value=!0})())},c=u((()=>pn(t)));return Be((()=>{A()})),(e,t)=>{const u=Je("tui-resize");return Re((d(),h("div",{class:O(["scifi-title-a1","sf-svg-title","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),`is-mode-${p(n)}`,`is-plcm-${p(s)}`,`is-text-align-${p(r)}`,`sft-appr-${e.appearance}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:we(c.value),ref_key:"titleRef",ref:l},[f("div",sO,[e.title?(d(),h(ge,{key:1},[We(X(e.title),1)],64)):ee(e.$slots,"default",{key:0})]),a.value?(d(),h(ge,{key:0},["A"==e.appearance?(d(),h("svg",{key:0,class:"sft-svg-elem",width:i.width,height:"8"},[f("polyline",{class:"sft-deco-center",stroke:"none",points:p(o).AdecoC},null,8,uO),f("polyline",{class:"sft-deco-left",stroke:"none",points:p(o).AdecoL},null,8,cO),f("polyline",{class:"sft-deco-right",stroke:"none",points:p(o).AdecoR},null,8,dO)],8,rO)):T("",!0),"B"==e.appearance?(d(),h("svg",{key:1,class:"sft-svg-elem",width:i.width,height:"34"},[f("path",{class:"sft-deco-path",d:p(o).Bdeco},null,8,fO)],8,AO)):T("",!0)],64)):T("",!0)],6)),[[u,A]])}}}),gO={class:"sft-text"},vO={class:"sft-svg-elem",width:"20",height:"40",viewBox:"0 0 20 40"},hO=["d"],mO={class:"sft-svg-elem",width:"20",height:"40",viewBox:"0 0 20 40"},yO=["d"],bO=["d"],VO=["d"],wO=Object.assign({name:"ScifiTitleA2"},{__name:"A2",props:{...An,offsetY:{type:Number,default:6}},setup(e){const t=e,l=$(null),a=$(!1),i=je({resizing:!1,path:{},width:0}),{path:o}=rt(i),{resolvedMode:n,placement:s,textAlign:r}=fn(l,t,"center"),A=()=>{const e=l.value;e&&(i.width=e.clientWidth,(async()=>{i.path=ft(mu(i.width)),await ye(),a.value=!0})())},c=u((()=>pn(t)));return Be((()=>{A()})),(e,t)=>(d(),h("div",{class:O(["scifi-title-a2","sf-svg-title","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),`is-mode-${p(n)}`,`is-plcm-${p(s)}`,`is-text-align-${p(r)}`,`sft-appr-${e.appearance}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:we(c.value),ref_key:"titleRef",ref:l},[f("div",gO,[e.title?(d(),h(ge,{key:1},[We(X(e.title),1)],64)):ee(e.$slots,"default",{key:0})]),a.value?(d(),h(ge,{key:0},["A"==e.appearance?(d(),h(ge,{key:0},Fe(2,(e=>f("svg",vO,[f("path",{class:"sft-deco-polyline",d:p(o).Adeco},null,8,hO)]))),64)):T("",!0),"B"==e.appearance?(d(),h(ge,{key:1},Fe(2,(e=>f("svg",mO,[f("path",{class:"sft-deco-path1",d:p(o).Bdeco1},null,8,yO),f("path",{class:"sft-deco-path2",d:p(o).Bdeco2},null,8,bO),f("path",{class:"sft-deco-path3",d:p(o).Bdeco3},null,8,VO)]))),64)):T("",!0)],64)):T("",!0)],6))}}),CO={key:0,class:"sft-svg-elem",width:"20",height:"30",viewBox:"0 0 20 30"},TO=["d"],SO={key:1,class:"sft-svg-elem",width:"20",height:"30",viewBox:"0 0 20 30"},$O=["d"],kO=["d"],qO=["d"],xO={class:"sft-text"},PO=Object.assign({name:"ScifiTitleA3"},{__name:"A3",props:{...An,offsetY:{type:Number,default:10}},setup(e){const t=e,l=$(null),a=$(!1),i=je({resizing:!1,path:{}}),{path:o}=rt(i),{resolvedMode:n,placement:s,textAlign:r}=fn(l,t,"left","left"),A=u((()=>pn(t)));return Be((()=>{(async()=>{i.path=ft(yu()),await ye(),a.value=!0})()})),(e,t)=>(d(),h("div",{class:O(["scifi-title-a3","sf-svg-title","sf-svg-component",e.className,""+(a.value?"is-inited":"is-loading"),`is-mode-${p(n)}`,`is-plcm-${p(s)}`,`is-text-align-${p(r)}`,`sft-appr-${e.appearance}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:we(A.value),ref_key:"titleRef",ref:l},["A"==e.appearance?(d(),h("svg",CO,[f("path",{class:"sft-deco-path",d:p(o).Adeco},null,8,TO)])):T("",!0),"B"==e.appearance?(d(),h("svg",SO,[f("path",{class:"sft-deco-path",d:p(o).Bdeco1},null,8,$O),f("path",{class:"sft-deco-path-sub",d:p(o).Bdeco2},null,8,kO),f("path",{class:"sft-deco-path-sub",d:p(o).Bdeco3},null,8,qO)])):T("",!0),f("span",xO,[e.title?(d(),h(ge,{key:1},[We(X(e.title),1)],64)):ee(e.$slots,"default",{key:0})])],6))}}),BO=Object.assign({name:"TuiTitleA1"},{__name:"A1",props:{...An},setup(e){const t=e,l=$(null),{resolvedMode:a,placement:i,textAlign:o}=fn(l,t,"center","center"),n=u((()=>pn(t)));return(e,t)=>(d(),h("div",{class:O(["tui-title-a1","tui-title",e.className,`is-mode-${p(a)}`,`is-plcm-${p(i)}`,`is-text-align-${p(o)}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:we(n.value),ref_key:"titleRef",ref:l},[e.title?(d(),h(ge,{key:1},[We(X(e.title),1)],64)):ee(e.$slots,"default",{key:0})],6))}}),zO=Object.assign({name:"TuiTitleA2"},{__name:"A2",props:{...An},setup(e){const t=e,l=$(null),{resolvedMode:a,placement:i,textAlign:o}=fn(l,t,"left","left"),n=u((()=>pn(t)));return(e,t)=>(d(),h("div",{class:O(["tui-title-a2","tui-title",e.className,`is-mode-${p(a)}`,`is-plcm-${p(i)}`,`is-text-align-${p(o)}`,{"is-deco-color-alt":e.decorationColorAlt}]),style:we(n.value),ref_key:"titleRef",ref:l},[e.title?(d(),h(ge,{key:1},[We(X(e.title),1)],64)):ee(e.$slots,"default",{key:0})],6))}}),YO={$dDrag:_c,$dMenu:Ac,$dResize:Ec,$dPopover:Bc,$dCursorTip:Sc,$dVcid:Lc},QO={tuiService:ic,tuiBus:Qo},XO={$gAttention:xd,$gMask:Md,$gLoading:Id,$gPopover:Wd,$gPopoverDirectiveCloseAll:zc},ZO=[Zd,AA,VA,CA,jf,Jp,zi,Wg,Bg,Gg,Ag,Tg,tv,nv,ov,hv,sv,uv,dv,fv,vv,yv,Ta,Sv,kv,Sa,Iv,Dv,Mv,Ev,Lv,Fv,Jv,Ah,Nh,Oh,em,lm,om,dm,Li,fm,pm,fy,gy,yy,Ty,Ry,Ey,Fy,Hy,ib,ub,da,db,vb,hb,Tb,Nb,Lb,Wb,Ub,Ki,AV,Ui,SV,EV,UV,gw,hw,xw,Dw,jw,eT,lT,uT,fT,BT,KT,UT,YT,QT,l0,s0,Ww,Yw,u0,V0,w0,T0,di,x0,ti,oi,wa,N0,O0,M0,E0,$S,PS,pi,Na,MS,FS,Zo,d1,h1,k1,q1,x1,R1,O1,D1,L1,j1,W1,G1,o$,v$,O$,Q$,nk,yk,zk,Gk,aq,hq,Bq,qx,BP,vB,_B,XB,Az,Gz,vR,IR,UR,nN,cN,bN,PN,UN,hI,TI,jI,JI,f2,m2,x2,_2,X2,lO,pO,wO,PO,BO,zO];export{ZO as toComps,YO as toDirective,XO as toGlobal,QO as toRoot};