hflvcomp 0.0.9 → 0.0.10

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.
Files changed (2) hide show
  1. package/dist/hflvcomp.es.js +1437 -1412
  2. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.subpage-container[data-v-7840b296]{display:flex;align-items:center;margin:0;overflow:hidden}.subpage-container[data-v-3deb553c]{padding:0;display:flex;align-items:center}:root{--vue-scroll-rect-scrollbar-thumb-color: rgba(122,122,122, .3);--vue-scroll-rect-scrollbar-thumb-color-light: rgba(122, 122, 122, .5);--vue-scroll-rect-scrollbar-thumb-color-pressed: rgba(112, 112, 112, .2);--vue-scroll-rect-scrollbar-thumb-radius: 5px;--vue-scroll-rect-scrollbar-thumb-margin: 0px;--vue-scroll-rect-scrollbar-size: 8px}.vue-scroll-rect{position:relative;width:100%;height:100%;margin:0;overflow:hidden}.vue-scroll-rect>.scroll-content{position:relative;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.vue-scroll-rect>.scroll-content::-webkit-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content::-ms-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content.both{overflow:scroll}.vue-scroll-rect>.scroll-content.horizontal{overflow-x:scroll}.vue-scroll-rect>.scroll-content.vertical{overflow-y:scroll}.vue-scroll-rect:hover>.scrollbar{opacity:1;transition:opacity .1s}.vue-scroll-rect.always-show-scrollbar>.scrollbar,.vue-scroll-rect .dragging>.scrollbar{opacity:1}.vue-scroll-rect.background-clickable>.scrollbar{pointer-events:all}.vue-scroll-rect>.scrollbar{position:absolute;opacity:0;transition:opacity 1.5s;pointer-events:none}.vue-scroll-rect>.scrollbar:hover{opacity:1}.vue-scroll-rect>.scrollbar .thumb{position:absolute;background-color:var(--vue-scroll-rect-scrollbar-thumb-color);border-radius:var(--vue-scroll-rect-scrollbar-thumb-radius);pointer-events:all}.vue-scroll-rect>.scrollbar .thumb:hover{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-light)}.vue-scroll-rect>.scrollbar .thumb:active{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-pressed)}.vue-scroll-rect>.scrollbar.horizontal{left:0;bottom:0;right:0;height:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.horizontal .thumb{top:var(--vue-scroll-rect-scrollbar-thumb-margin);bottom:var(--vue-scroll-rect-scrollbar-thumb-margin)}.vue-scroll-rect>.scrollbar.vertical{top:0;bottom:0;right:0;width:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.vertical .thumb{left:var(--vue-scroll-rect-scrollbar-thumb-margin);right:var(--vue-scroll-rect-scrollbar-thumb-margin)}:root{--mx-menu-backgroud: #fff;--mx-menu-hover-backgroud: #f1f1f1;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #f1f1f1;--mx-menu-divider: #f0f0f0;--mx-menu-text: #2e2e2e;--mx-menu-hover-text: #2e2e2e;--mx-menu-active-text: #2e2e2e;--mx-menu-open-text: #2e2e2e;--mx-menu-open-hover-text: #2e2e2e;--mx-menu-disabled-text: #c9c8c8;--mx-menu-icon-size: 16px;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-scrollbar-thumb-color: rgba(0, 0, 0, .2);--mx-menu-scrollbar-thumb-color-light: rgba(0, 0, 0, .3);--mx-menu-scrollbar-thumb-color-pressed: rgba(0, 0, 0, .1);--mx-menu-shortcut-backgroud: #ebebeb;--mx-menu-shortcut-backgroud-hover:#ebebeb;--mx-menu-shortcut-backgroud-active:#ebebeb;--mx-menu-shortcut-backgroud-open:#ebebeb;--mx-menu-shortcut-backgroud-disabled:#fdfdfd;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #424242;--mx-menu-shortcut-text-active: #424242;--mx-menu-shortcut-text-open: #424242;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-placeholder-width: 24px}.mx-context-menu{pointer-events:all;display:inline-block;overflow:visible;position:absolute;background-color:var(--mx-menu-backgroud);border-radius:var(--mx-menu-backgroud-radius);padding:12px 0;box-shadow:0 10px 40px 10px var(--mx-menu-shadow-color);opacity:1;transition:opacity .2s ease-in-out;--vue-scroll-rect-scrollbar-thumb-color: var(--mx-menu-scrollbar-thumb-color);--vue-scroll-rect-scrollbar-thumb-color-light: var(--mx-menu-scrollbar-thumb-color-light);--vue-scroll-rect-scrollbar-thumb-color-pressed: var(--mx-menu-scrollbar-thumb-color-pressed)}.mx-context-menu-items{position:relative;overflow:visible}.mx-context-menu-scroll{overscroll-behavior:contain}.mx-context-menu-item{display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:6px 15px;-webkit-user-select:none;user-select:none;overflow:visible;white-space:nowrap;text-overflow:ellipsis;color:var(--mx-menu-text)}.mx-context-menu-item .mx-right-arrow,.mx-context-menu-item .mx-checked-mark{fill:var(--mx-menu-text)}.mx-context-menu-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-right-arrow,.mx-context-menu-item:hover .mx-checked-mark{fill:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-hover);color:var(--mx-menu-shortcut-text-hover)}.mx-context-menu-item:active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-right-arrow,.mx-context-menu-item:active .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-context-menu-item.open{background-color:var(--mx-menu-open-backgroud);color:var(--mx-menu-open-text)}.mx-context-menu-item.open:hover{background-color:var(--mx-menu-open-hover-backgroud);color:var(--mx-menu-open-hover-text)}.mx-context-menu-item.open .mx-right-arrow,.mx-context-menu-item.open .mx-checked-mark{fill:var(--mx-menu-open-text)}.mx-context-menu-item.open .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-open);color:var(--mx-menu-shortcut-text-open)}.mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud)}.mx-context-menu-item.disabled{color:var(--mx-menu-disabled-text);cursor:not-allowed}.mx-context-menu-item.disabled:hover,.mx-context-menu-item.disabled:active{background-color:transparent}.mx-context-menu-item.disabled .mx-right-arrow,.mx-context-menu-item.disabled .mx-checked-mark{fill:var(--mx-menu-disabled-text)}.mx-context-menu-item.disabled .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-disabled);color:var(--mx-menu-shortcut-text-second)}.mx-context-menu-item .mx-item-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.mx-context-menu-item .mx-icon-placeholder{position:relative;display:flex;flex-direction:row;align-items:center;height:auto;overflow:hidden}.mx-context-menu-item .mx-icon-placeholder.preserve-width{width:var(--mx-menu-placeholder-width)}.mx-context-menu-item .icon{display:inline-block;font-size:var(--mx-menu-icon-size)}.mx-context-menu-item .icon.svg{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-context-menu-item .label{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:16px}.mx-context-menu-item-wrapper{position:relative}.mx-context-menu-item-sperator{display:block;padding:5px 0;background-color:var(--mx-menu-backgroud)}.mx-context-menu-item-sperator:after{display:block;content:"";background-color:var(--mx-menu-divider);height:1px}.mx-right-arrow{width:14px;height:14px}.mx-checked-mark{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-shortcut{position:relative;justify-self:flex-end;font-size:11.5px;padding:2px 4px;background-color:var(--mx-menu-shortcut-backgroud);color:var(--mx-menu-shortcut-text)}.mx-menu-bar.dark,.mx-context-menu.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #464646;--mx-menu-text: #ffffff;--mx-menu-hover-text: #ffffff;--mx-menu-active-text: #ffffff;--mx-menu-open-text: #ffffff;--mx-menu-open-hover-text: #ffffff;--mx-menu-disabled-text: #9c9c9c;--mx-menu-shadow-color: rgba(51, 51, 51, .2);--mx-menu-scrollbar-thumb-color: rgba(255, 255, 255, .3);--mx-menu-scrollbar-thumb-color-light: rgba(255, 255, 255, .5);--mx-menu-scrollbar-thumb-color-pressed: rgba(255, 255, 255, .2);--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d}.mx-menu-bar.flat,.mx-context-menu.flat{border-radius:0;padding:7px 0;box-shadow:0 1px 2px 1px var(--mx-menu-shadow-color)}.mx-menu-bar.flat .mx-context-menu-item,.mx-context-menu.flat .mx-context-menu-item{padding:3px 12px}.mx-menu-bar.win10,.mx-context-menu.win10{border-radius:0;padding:8px 0;border:1px solid var(--mx-menu-border-color);box-shadow:2px 2px 1px 0 var(--mx-menu-shadow-color)}.mx-menu-bar.win10,.mx-context-menu.win10{--mx-menu-backgroud: #eeeeee;--mx-menu-hover-backgroud: #d8d8d8;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #d8d8d8;--mx-menu-divider: #aaaaaa;--mx-menu-border-color: #b1b1b1;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover: transparent;--mx-menu-shortcut-backgroud-active: transparent;--mx-menu-shortcut-backgroud-open: transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #272727;--mx-menu-shortcut-text-hover: #272727;--mx-menu-shortcut-text-active: #272727;--mx-menu-shortcut-text-open: #272727;--mx-menu-shortcut-text-disabled: #6b6b6b}.mx-menu-bar.win10 .mx-context-menu-item,.mx-context-menu.win10 .mx-context-menu-item{padding:2px 4px;margin:0 4px}.mx-menu-bar.win10 .mx-context-menu-item-sperator,.mx-context-menu.win10 .mx-context-menu-item-sperator{margin:0 4px}.mx-menu-bar.win10.dark,.mx-context-menu.win10.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #808080;--mx-menu-border-color: #656565;--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d;padding:8px 0}.mx-menu-bar.win10.dark .mx-context-menu-item,.mx-context-menu.win10.dark .mx-context-menu-item{padding:6px 12px;margin:0}.mx-menu-bar.win10.dark .mx-context-menu-item-sperator,.mx-context-menu.win10.dark .mx-context-menu-item-sperator{margin:0 7px}.mx-menu-bar.mac,.mx-context-menu.mac{padding:8px 0;box-shadow:0 5px 7px 1px var(--mx-menu-shadow-color);border:1px solid var(--mx-menu-border-color)}.mx-menu-bar.mac,.mx-context-menu.mac{--mx-menu-backgroud: #ececec;--mx-menu-hover-backgroud: #0165e1;--mx-menu-active-backgroud: #0165e1;--mx-menu-open-backgroud: #858585;--mx-menu-open-hover-backgroud: #0165e1;--mx-menu-divider: #d2d2d2;--mx-menu-text: #232323;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #bbbbbb;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-border-color: #bbbbbb}.mx-menu-bar.mac.dark,.mx-context-menu.mac.dark{--mx-menu-backgroud: #333333;--mx-menu-hover-backgroud: #0153d2;--mx-menu-active-backgroud: #0153d2;--mx-menu-open-hover-backgroud: #0153d2;--mx-menu-open-backgroud: #414346;--mx-menu-divider: #575757;--mx-menu-text: #dcdcdc;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #6a6a6a;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #dadada;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #6a6a6a;--mx-menu-border-color: #222}.mx-menu-bar.mac .mx-context-menu-item,.mx-context-menu.mac .mx-context-menu-item{border-radius:5px;margin:0 6px;padding:3px 6px}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text);outline:none}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-shortcut,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-menu-bar.mac .mx-context-menu-item-sperator,.mx-context-menu.mac .mx-context-menu-item-sperator{margin:0 12px}.mx-context-menu .vue-scroll-rect>.scroll-content{overflow-y:scroll;height:100%;width:auto;position:relative!important}.mx-menu-ghost-host{position:absolute;inset:0;overflow:hidden;pointer-events:none}.mx-menu-ghost-host.fullscreen{position:fixed}.mx-menu-bar{flex:1;display:flex;flex-direction:row;align-items:center;background-color:var(--mx-menu-backgroud);padding:5px 0}.mx-menu-bar.mini{flex-grow:0}.mx-menu-bar .mx-menu-bar-content{display:flex;flex-direction:row;align-items:center}.mx-menu-bar .mx-menu-bar-item{padding:2px 8px;border-radius:5px;-webkit-user-select:none;user-select:none;background-color:var(--mx-menu-backgroud);color:var(--mx-menu-text)}.mx-menu-bar .mx-menu-bar-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:hover .mx-menu-bar-icon-menu{fill:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:active,.mx-menu-bar .mx-menu-bar-item.active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-item:active .mx-menu-bar-icon-menu,.mx-menu-bar .mx-menu-bar-item.active .mx-menu-bar-icon-menu{fill:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-icon-menu{fill:var(--mx-menu-text);width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-menu-bar.flat .mx-menu-bar-item{border-radius:0}.picture-container[data-v-6700d8d2]{overflow:hidden}.svg-container[data-v-ecab498d]{width:100%;height:100%}.svg-container svg[data-v-ecab498d]{width:100%;height:100%}.svg-container[data-v-572c01ec]{width:100%;height:100%}.svg-container svg[data-v-572c01ec]{width:100%;height:100%}.svg-container[data-v-939b62a1]{width:100%;height:100%}.svg-container svg[data-v-939b62a1]{width:100%;height:100%}.svg-container[data-v-7dcb2081]{width:100%;height:100%}.svg-container svg[data-v-7dcb2081]{width:100%;height:100%}.svg-container[data-v-4ce499b1]{width:100%;height:100%}.svg-container svg[data-v-4ce499b1]{width:100%;height:100%}.svg-container[data-v-aec13cc0]{width:100%;height:100%}.svg-container svg[data-v-aec13cc0]{width:100%;height:100%}.svg-container[data-v-cddc7262]{width:100%;height:100%}.svg-container svg[data-v-cddc7262]{width:100%;height:100%}.svg-container[data-v-bab98274]{width:100%;height:100%}.svg-container svg[data-v-bab98274]{width:100%;height:100%}.svg-container[data-v-2959cd02]{width:100%;height:100%}.svg-container svg[data-v-2959cd02]{width:100%;height:100%}.svg-container[data-v-78f636ae]{width:100%;height:100%}.svg-container svg[data-v-78f636ae]{width:100%;height:100%}.svg-container[data-v-1ba24f63]{width:100%;height:100%}.svg-container svg[data-v-1ba24f63]{width:100%;height:100%}.svg-container[data-v-8db7d328]{width:100%;height:100%}.svg-container svg[data-v-8db7d328]{width:100%;height:100%}.svg-container[data-v-8db7d328] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-8db7d328] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-8db7d328] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-8db7d328] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-8db7d328] .svg-five-color{fill:var(--custom-five-color)!important}.svg-container[data-v-0ad0dffa]{width:100%;height:100%}.svg-container svg[data-v-0ad0dffa]{width:100%;height:100%}.canvas-grid-container[data-v-6480756a]{width:100%;height:100%;overflow:hidden}.grid-container[data-v-dced3ee3],.divider[data-v-490ca7b4],.div-container[data-v-b5a7fa87]{width:100%;height:100%}.division-button[data-v-b5a7fa87]{width:100%;height:100%;position:relative;overflow:hidden;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer}.division-content[data-v-b5a7fa87]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;gap:6px;cursor:pointer;pointer-events:none}.division-button[data-v-b5a7fa87]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background-color:#2f6dff33;transform:translate(-50%,-50%);transition:width .4s ease,height .4s ease}.division-button[data-v-b5a7fa87]:active:not(.division-disabled):after{width:120%;height:120%}.division-text[data-v-b5a7fa87]{z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;pointer-events:none}.division-icon[data-v-b5a7fa87]{font-size:14px;transition:all .3s ease;z-index:1;display:flex;align-items:center}.division-hover .division-icon[data-v-b5a7fa87]{transform:translate(2px)}.division-disabled[data-v-b5a7fa87]{pointer-events:none;cursor:not-allowed!important}.division-disabled .division-content[data-v-b5a7fa87],.division-disabled .division-text[data-v-b5a7fa87],.division-disabled .division-icon[data-v-b5a7fa87]{cursor:not-allowed!important}@media(max-width:480px){.division-content[data-v-b5a7fa87]{flex-wrap:wrap;gap:4px}.division-text[data-v-b5a7fa87],.division-icon[data-v-b5a7fa87]{font-size:12px}}.svg-container[data-v-54c5681f]{width:100%;height:100%}.svg-container svg[data-v-54c5681f]{width:100%;height:100%}.svg-container[data-v-54c5681f] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-54c5681f] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-54c5681f] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-54c5681f] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-54c5681f] .svg-five-color{fill:var(--custom-five-color)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
- import { inject as me, resolveComponent as Je, createElementBlock as F, openBlock as P, normalizeStyle as ye, createVNode as Oe, ref as g, computed as m, watch as T, provide as ke, onBeforeMount as Q, onMounted as q, onBeforeUnmount as J, onUnmounted as $, Fragment as it, renderList as vt, createBlock as he, KeepAlive as Bt, createCommentVNode as ne, defineComponent as Le, toRefs as Ee, h as ot, nextTick as we, unref as N, renderSlot as xe, normalizeClass as Re, createElementVNode as ue, mergeProps as ct, toDisplayString as De, Teleport as It, Transition as At, withCtx as He, createSlots as Wt, reactive as Ze, useSlots as jt, normalizeProps as Ft, guardReactiveProps as Et, render as gt, createTextVNode as de } from "vue";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.subpage-container[data-v-7840b296]{display:flex;align-items:center;margin:0;overflow:hidden}.subpage-container[data-v-3deb553c]{padding:0;display:flex;align-items:center}:root{--vue-scroll-rect-scrollbar-thumb-color: rgba(122,122,122, .3);--vue-scroll-rect-scrollbar-thumb-color-light: rgba(122, 122, 122, .5);--vue-scroll-rect-scrollbar-thumb-color-pressed: rgba(112, 112, 112, .2);--vue-scroll-rect-scrollbar-thumb-radius: 5px;--vue-scroll-rect-scrollbar-thumb-margin: 0px;--vue-scroll-rect-scrollbar-size: 8px}.vue-scroll-rect{position:relative;width:100%;height:100%;margin:0;overflow:hidden}.vue-scroll-rect>.scroll-content{position:relative;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.vue-scroll-rect>.scroll-content::-webkit-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content::-ms-scrollbar{width:0;height:0}.vue-scroll-rect>.scroll-content.both{overflow:scroll}.vue-scroll-rect>.scroll-content.horizontal{overflow-x:scroll}.vue-scroll-rect>.scroll-content.vertical{overflow-y:scroll}.vue-scroll-rect:hover>.scrollbar{opacity:1;transition:opacity .1s}.vue-scroll-rect.always-show-scrollbar>.scrollbar,.vue-scroll-rect .dragging>.scrollbar{opacity:1}.vue-scroll-rect.background-clickable>.scrollbar{pointer-events:all}.vue-scroll-rect>.scrollbar{position:absolute;opacity:0;transition:opacity 1.5s;pointer-events:none}.vue-scroll-rect>.scrollbar:hover{opacity:1}.vue-scroll-rect>.scrollbar .thumb{position:absolute;background-color:var(--vue-scroll-rect-scrollbar-thumb-color);border-radius:var(--vue-scroll-rect-scrollbar-thumb-radius);pointer-events:all}.vue-scroll-rect>.scrollbar .thumb:hover{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-light)}.vue-scroll-rect>.scrollbar .thumb:active{background-color:var(--vue-scroll-rect-scrollbar-thumb-color-pressed)}.vue-scroll-rect>.scrollbar.horizontal{left:0;bottom:0;right:0;height:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.horizontal .thumb{top:var(--vue-scroll-rect-scrollbar-thumb-margin);bottom:var(--vue-scroll-rect-scrollbar-thumb-margin)}.vue-scroll-rect>.scrollbar.vertical{top:0;bottom:0;right:0;width:var(--vue-scroll-rect-scrollbar-size)}.vue-scroll-rect>.scrollbar.vertical .thumb{left:var(--vue-scroll-rect-scrollbar-thumb-margin);right:var(--vue-scroll-rect-scrollbar-thumb-margin)}:root{--mx-menu-backgroud: #fff;--mx-menu-hover-backgroud: #f1f1f1;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #f1f1f1;--mx-menu-divider: #f0f0f0;--mx-menu-text: #2e2e2e;--mx-menu-hover-text: #2e2e2e;--mx-menu-active-text: #2e2e2e;--mx-menu-open-text: #2e2e2e;--mx-menu-open-hover-text: #2e2e2e;--mx-menu-disabled-text: #c9c8c8;--mx-menu-icon-size: 16px;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-scrollbar-thumb-color: rgba(0, 0, 0, .2);--mx-menu-scrollbar-thumb-color-light: rgba(0, 0, 0, .3);--mx-menu-scrollbar-thumb-color-pressed: rgba(0, 0, 0, .1);--mx-menu-shortcut-backgroud: #ebebeb;--mx-menu-shortcut-backgroud-hover:#ebebeb;--mx-menu-shortcut-backgroud-active:#ebebeb;--mx-menu-shortcut-backgroud-open:#ebebeb;--mx-menu-shortcut-backgroud-disabled:#fdfdfd;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #424242;--mx-menu-shortcut-text-active: #424242;--mx-menu-shortcut-text-open: #424242;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-placeholder-width: 24px}.mx-context-menu{pointer-events:all;display:inline-block;overflow:visible;position:absolute;background-color:var(--mx-menu-backgroud);border-radius:var(--mx-menu-backgroud-radius);padding:12px 0;box-shadow:0 10px 40px 10px var(--mx-menu-shadow-color);opacity:1;transition:opacity .2s ease-in-out;--vue-scroll-rect-scrollbar-thumb-color: var(--mx-menu-scrollbar-thumb-color);--vue-scroll-rect-scrollbar-thumb-color-light: var(--mx-menu-scrollbar-thumb-color-light);--vue-scroll-rect-scrollbar-thumb-color-pressed: var(--mx-menu-scrollbar-thumb-color-pressed)}.mx-context-menu-items{position:relative;overflow:visible}.mx-context-menu-scroll{overscroll-behavior:contain}.mx-context-menu-item{display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:6px 15px;-webkit-user-select:none;user-select:none;overflow:visible;white-space:nowrap;text-overflow:ellipsis;color:var(--mx-menu-text)}.mx-context-menu-item .mx-right-arrow,.mx-context-menu-item .mx-checked-mark{fill:var(--mx-menu-text)}.mx-context-menu-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-right-arrow,.mx-context-menu-item:hover .mx-checked-mark{fill:var(--mx-menu-hover-text)}.mx-context-menu-item:hover .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-hover);color:var(--mx-menu-shortcut-text-hover)}.mx-context-menu-item:active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-right-arrow,.mx-context-menu-item:active .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-context-menu-item:active .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-context-menu-item.open{background-color:var(--mx-menu-open-backgroud);color:var(--mx-menu-open-text)}.mx-context-menu-item.open:hover{background-color:var(--mx-menu-open-hover-backgroud);color:var(--mx-menu-open-hover-text)}.mx-context-menu-item.open .mx-right-arrow,.mx-context-menu-item.open .mx-checked-mark{fill:var(--mx-menu-open-text)}.mx-context-menu-item.open .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-open);color:var(--mx-menu-shortcut-text-open)}.mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud)}.mx-context-menu-item.disabled{color:var(--mx-menu-disabled-text);cursor:not-allowed}.mx-context-menu-item.disabled:hover,.mx-context-menu-item.disabled:active{background-color:transparent}.mx-context-menu-item.disabled .mx-right-arrow,.mx-context-menu-item.disabled .mx-checked-mark{fill:var(--mx-menu-disabled-text)}.mx-context-menu-item.disabled .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-disabled);color:var(--mx-menu-shortcut-text-second)}.mx-context-menu-item .mx-item-row{display:flex;flex-direction:row;align-items:center;max-width:100%}.mx-context-menu-item .mx-icon-placeholder{position:relative;display:flex;flex-direction:row;align-items:center;height:auto;overflow:hidden}.mx-context-menu-item .mx-icon-placeholder.preserve-width{width:var(--mx-menu-placeholder-width)}.mx-context-menu-item .icon{display:inline-block;font-size:var(--mx-menu-icon-size)}.mx-context-menu-item .icon.svg{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-context-menu-item .label{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-inline-end:16px}.mx-context-menu-item-wrapper{position:relative}.mx-context-menu-item-sperator{display:block;padding:5px 0;background-color:var(--mx-menu-backgroud)}.mx-context-menu-item-sperator:after{display:block;content:"";background-color:var(--mx-menu-divider);height:1px}.mx-right-arrow{width:14px;height:14px}.mx-checked-mark{width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-shortcut{position:relative;justify-self:flex-end;font-size:11.5px;padding:2px 4px;background-color:var(--mx-menu-shortcut-backgroud);color:var(--mx-menu-shortcut-text)}.mx-menu-bar.dark,.mx-context-menu.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #464646;--mx-menu-text: #ffffff;--mx-menu-hover-text: #ffffff;--mx-menu-active-text: #ffffff;--mx-menu-open-text: #ffffff;--mx-menu-open-hover-text: #ffffff;--mx-menu-disabled-text: #9c9c9c;--mx-menu-shadow-color: rgba(51, 51, 51, .2);--mx-menu-scrollbar-thumb-color: rgba(255, 255, 255, .3);--mx-menu-scrollbar-thumb-color-light: rgba(255, 255, 255, .5);--mx-menu-scrollbar-thumb-color-pressed: rgba(255, 255, 255, .2);--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d}.mx-menu-bar.flat,.mx-context-menu.flat{border-radius:0;padding:7px 0;box-shadow:0 1px 2px 1px var(--mx-menu-shadow-color)}.mx-menu-bar.flat .mx-context-menu-item,.mx-context-menu.flat .mx-context-menu-item{padding:3px 12px}.mx-menu-bar.win10,.mx-context-menu.win10{border-radius:0;padding:8px 0;border:1px solid var(--mx-menu-border-color);box-shadow:2px 2px 1px 0 var(--mx-menu-shadow-color)}.mx-menu-bar.win10,.mx-context-menu.win10{--mx-menu-backgroud: #eeeeee;--mx-menu-hover-backgroud: #d8d8d8;--mx-menu-active-backgroud: #dfdfdf;--mx-menu-open-backgroud: #f1f1f1;--mx-menu-open-hover-backgroud: #d8d8d8;--mx-menu-divider: #aaaaaa;--mx-menu-border-color: #b1b1b1;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover: transparent;--mx-menu-shortcut-backgroud-active: transparent;--mx-menu-shortcut-backgroud-open: transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #272727;--mx-menu-shortcut-text-hover: #272727;--mx-menu-shortcut-text-active: #272727;--mx-menu-shortcut-text-open: #272727;--mx-menu-shortcut-text-disabled: #6b6b6b}.mx-menu-bar.win10 .mx-context-menu-item,.mx-context-menu.win10 .mx-context-menu-item{padding:2px 4px;margin:0 4px}.mx-menu-bar.win10 .mx-context-menu-item-sperator,.mx-context-menu.win10 .mx-context-menu-item-sperator{margin:0 4px}.mx-menu-bar.win10.dark,.mx-context-menu.win10.dark{--mx-menu-backgroud: #303031;--mx-menu-hover-backgroud: #636363;--mx-menu-active-backgroud: #555555;--mx-menu-open-backgroud: #636363;--mx-menu-open-hover-backgroud: #636363;--mx-menu-divider: #808080;--mx-menu-border-color: #656565;--mx-menu-shortcut-backgroud: #505050;--mx-menu-shortcut-backgroud-hover:#505050;--mx-menu-shortcut-backgroud-active:#505050;--mx-menu-shortcut-backgroud-open:#505050;--mx-menu-shortcut-backgroud-disabled:#444444;--mx-menu-shortcut-text: #f1f1f1;--mx-menu-shortcut-text-hover: #ffffff;--mx-menu-shortcut-text-active: #ffffff;--mx-menu-shortcut-text-open: #ffffff;--mx-menu-shortcut-text-disabled: #9d9d9d;padding:8px 0}.mx-menu-bar.win10.dark .mx-context-menu-item,.mx-context-menu.win10.dark .mx-context-menu-item{padding:6px 12px;margin:0}.mx-menu-bar.win10.dark .mx-context-menu-item-sperator,.mx-context-menu.win10.dark .mx-context-menu-item-sperator{margin:0 7px}.mx-menu-bar.mac,.mx-context-menu.mac{padding:8px 0;box-shadow:0 5px 7px 1px var(--mx-menu-shadow-color);border:1px solid var(--mx-menu-border-color)}.mx-menu-bar.mac,.mx-context-menu.mac{--mx-menu-backgroud: #ececec;--mx-menu-hover-backgroud: #0165e1;--mx-menu-active-backgroud: #0165e1;--mx-menu-open-backgroud: #858585;--mx-menu-open-hover-backgroud: #0165e1;--mx-menu-divider: #d2d2d2;--mx-menu-text: #232323;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #bbbbbb;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #424242;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #a5a5a5;--mx-menu-border-color: #bbbbbb}.mx-menu-bar.mac.dark,.mx-context-menu.mac.dark{--mx-menu-backgroud: #333333;--mx-menu-hover-backgroud: #0153d2;--mx-menu-active-backgroud: #0153d2;--mx-menu-open-hover-backgroud: #0153d2;--mx-menu-open-backgroud: #414346;--mx-menu-divider: #575757;--mx-menu-text: #dcdcdc;--mx-menu-hover-text: #fff;--mx-menu-active-text: #fff;--mx-menu-open-text: #fff;--mx-menu-open-hover-text: #fff;--mx-menu-disabled-text: #6a6a6a;--mx-menu-shadow-color: rgba(0, 0, 0, .1);--mx-menu-backgroud-radius: 10px;--mx-menu-shortcut-backgroud: transparent;--mx-menu-shortcut-backgroud-hover:transparent;--mx-menu-shortcut-backgroud-active:transparent;--mx-menu-shortcut-backgroud-open:transparent;--mx-menu-shortcut-backgroud-disabled:transparent;--mx-menu-shortcut-text: #dadada;--mx-menu-shortcut-text-hover: #fff;--mx-menu-shortcut-text-active: #fff;--mx-menu-shortcut-text-open: #fff;--mx-menu-shortcut-text-disabled: #6a6a6a;--mx-menu-border-color: #222}.mx-menu-bar.mac .mx-context-menu-item,.mx-context-menu.mac .mx-context-menu-item{border-radius:5px;margin:0 6px;padding:3px 6px}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text);outline:none}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-right-arrow,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-checked-mark{fill:var(--mx-menu-active-text)}.mx-menu-bar.mac .mx-context-menu-item.keyboard-focus .mx-shortcut,.mx-context-menu.mac .mx-context-menu-item.keyboard-focus .mx-shortcut{background-color:var(--mx-menu-shortcut-backgroud-active);color:var(--mx-menu-shortcut-text-active)}.mx-menu-bar.mac .mx-context-menu-item-sperator,.mx-context-menu.mac .mx-context-menu-item-sperator{margin:0 12px}.mx-context-menu .vue-scroll-rect>.scroll-content{overflow-y:scroll;height:100%;width:auto;position:relative!important}.mx-menu-ghost-host{position:absolute;inset:0;overflow:hidden;pointer-events:none}.mx-menu-ghost-host.fullscreen{position:fixed}.mx-menu-bar{flex:1;display:flex;flex-direction:row;align-items:center;background-color:var(--mx-menu-backgroud);padding:5px 0}.mx-menu-bar.mini{flex-grow:0}.mx-menu-bar .mx-menu-bar-content{display:flex;flex-direction:row;align-items:center}.mx-menu-bar .mx-menu-bar-item{padding:2px 8px;border-radius:5px;-webkit-user-select:none;user-select:none;background-color:var(--mx-menu-backgroud);color:var(--mx-menu-text)}.mx-menu-bar .mx-menu-bar-item:hover{background-color:var(--mx-menu-hover-backgroud);color:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:hover .mx-menu-bar-icon-menu{fill:var(--mx-menu-hover-text)}.mx-menu-bar .mx-menu-bar-item:active,.mx-menu-bar .mx-menu-bar-item.active{background-color:var(--mx-menu-active-backgroud);color:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-item:active .mx-menu-bar-icon-menu,.mx-menu-bar .mx-menu-bar-item.active .mx-menu-bar-icon-menu{fill:var(--mx-menu-active-text)}.mx-menu-bar .mx-menu-bar-icon-menu{fill:var(--mx-menu-text);width:var(--mx-menu-icon-size);height:var(--mx-menu-icon-size)}.mx-menu-bar.flat .mx-menu-bar-item{border-radius:0}.picture-container[data-v-6700d8d2]{overflow:hidden}.svg-container[data-v-ecab498d]{width:100%;height:100%}.svg-container svg[data-v-ecab498d]{width:100%;height:100%}.svg-container[data-v-e00f69af]{width:100%;height:100%}.svg-container svg[data-v-e00f69af]{width:100%;height:100%}.svg-container[data-v-939b62a1]{width:100%;height:100%}.svg-container svg[data-v-939b62a1]{width:100%;height:100%}.svg-container[data-v-7dcb2081]{width:100%;height:100%}.svg-container svg[data-v-7dcb2081]{width:100%;height:100%}.svg-container[data-v-4ce499b1]{width:100%;height:100%}.svg-container svg[data-v-4ce499b1]{width:100%;height:100%}.svg-container[data-v-aec13cc0]{width:100%;height:100%}.svg-container svg[data-v-aec13cc0]{width:100%;height:100%}.svg-container[data-v-cddc7262]{width:100%;height:100%}.svg-container svg[data-v-cddc7262]{width:100%;height:100%}.svg-container[data-v-bab98274]{width:100%;height:100%}.svg-container svg[data-v-bab98274]{width:100%;height:100%}.svg-container[data-v-2959cd02]{width:100%;height:100%}.svg-container svg[data-v-2959cd02]{width:100%;height:100%}.svg-container[data-v-78f636ae]{width:100%;height:100%}.svg-container svg[data-v-78f636ae]{width:100%;height:100%}.svg-container[data-v-1ba24f63]{width:100%;height:100%}.svg-container svg[data-v-1ba24f63]{width:100%;height:100%}.svg-container[data-v-8db7d328]{width:100%;height:100%}.svg-container svg[data-v-8db7d328]{width:100%;height:100%}.svg-container[data-v-8db7d328] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-8db7d328] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-8db7d328] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-8db7d328] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-8db7d328] .svg-five-color{fill:var(--custom-five-color)!important}.svg-container[data-v-0ad0dffa]{width:100%;height:100%}.svg-container svg[data-v-0ad0dffa]{width:100%;height:100%}.canvas-grid-container[data-v-6480756a]{width:100%;height:100%;overflow:hidden}.grid-container[data-v-dced3ee3],.divider[data-v-490ca7b4],.div-container[data-v-b5a7fa87]{width:100%;height:100%}.division-button[data-v-b5a7fa87]{width:100%;height:100%;position:relative;overflow:hidden;display:flex!important;align-items:center!important;justify-content:center!important;cursor:pointer}.division-content[data-v-b5a7fa87]{display:flex;align-items:center;justify-content:center;width:100%;height:100%;gap:6px;cursor:pointer;pointer-events:none}.division-button[data-v-b5a7fa87]:after{content:"";position:absolute;top:50%;left:50%;width:0;height:0;border-radius:50%;background-color:#2f6dff33;transform:translate(-50%,-50%);transition:width .4s ease,height .4s ease}.division-button[data-v-b5a7fa87]:active:not(.division-disabled):after{width:120%;height:120%}.division-text[data-v-b5a7fa87]{z-index:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;pointer-events:none}.division-icon[data-v-b5a7fa87]{font-size:14px;transition:all .3s ease;z-index:1;display:flex;align-items:center}.division-hover .division-icon[data-v-b5a7fa87]{transform:translate(2px)}.division-disabled[data-v-b5a7fa87]{pointer-events:none;cursor:not-allowed!important}.division-disabled .division-content[data-v-b5a7fa87],.division-disabled .division-text[data-v-b5a7fa87],.division-disabled .division-icon[data-v-b5a7fa87]{cursor:not-allowed!important}@media(max-width:480px){.division-content[data-v-b5a7fa87]{flex-wrap:wrap;gap:4px}.division-text[data-v-b5a7fa87],.division-icon[data-v-b5a7fa87]{font-size:12px}}.svg-container[data-v-9182799c]{width:100%;height:100%}.svg-container svg[data-v-9182799c]{width:100%;height:100%}.svg-container[data-v-9182799c] .svg-first-color{fill:var(--custom-first-color)!important}.svg-container[data-v-9182799c] .svg-second-color{fill:var(--custom-second-color)!important}.svg-container[data-v-9182799c] .svg-third-color{fill:var(--custom-third-color)!important}.svg-container[data-v-9182799c] .svg-four-color{fill:var(--custom-four-color)!important}.svg-container[data-v-9182799c] .svg-five-color{fill:var(--custom-five-color)!important}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ import { inject as me, resolveComponent as Je, createElementBlock as z, openBlock as R, normalizeStyle as Ce, createVNode as Oe, ref as y, computed as h, watch as B, provide as ke, onBeforeMount as Q, onMounted as q, onBeforeUnmount as J, onUnmounted as $, Fragment as it, renderList as vt, createBlock as he, KeepAlive as Bt, createCommentVNode as ne, defineComponent as Pe, toRefs as Ee, h as ot, nextTick as we, unref as K, renderSlot as Se, normalizeClass as Re, createElementVNode as ue, mergeProps as ct, toDisplayString as De, Teleport as It, Transition as At, withCtx as He, createSlots as Wt, reactive as Ze, useSlots as jt, normalizeProps as Ft, guardReactiveProps as Et, render as gt, createTextVNode as de } from "vue";
3
3
  import { CommonUtils as Y, useDataCacheStore as re, createSmartAccessor as ae, reCalcCanvasSize as yt, CreateCompContext as ee, useEventHandler as te } from "hflvloader";
4
4
  import { useRouter as le, useRoute as oe } from "vue-router";
5
5
  (function() {
6
6
  const t = () => {
7
- console.log("%c 可视化组件库 hflvcomp", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.9", "color: #2ecc71;"), console.log("%c编译日期: 2026/2/7 22:48:54", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
7
+ console.log("%c 可视化组件库 hflvcomp", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.10", "color: #2ecc71;"), console.log("%c编译日期: 2026/2/10 16:54:05", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
8
8
  };
9
9
  if (typeof window < "u") {
10
10
  window._copyright_hflvcomp = t;
@@ -29,8 +29,8 @@ function Fe() {
29
29
  }
30
30
  const fe = (t, c) => {
31
31
  const o = t.__vccOpts || t;
32
- for (const [e, i] of c)
33
- o[e] = i;
32
+ for (const [e, s] of c)
33
+ o[e] = s;
34
34
  return o;
35
35
  }, zt = /* @__PURE__ */ Object.assign({
36
36
  name: "Subpage"
@@ -53,9 +53,9 @@ const fe = (t, c) => {
53
53
  },
54
54
  setup(t, { expose: c }) {
55
55
  c();
56
- const { isNotEmpty: o, isObject: e } = Y, i = Fe(), r = t, n = g(null), l = g({}), f = g([]);
57
- let u = {}, y = [];
58
- const p = g({
56
+ const { isNotEmpty: o, isObject: e } = Y, s = Fe(), r = t, n = y(null), l = y({}), f = y([]);
57
+ let a = {}, C = [];
58
+ const v = y({
59
59
  color: null,
60
60
  image: null,
61
61
  repeat: null,
@@ -63,28 +63,28 @@ const fe = (t, c) => {
63
63
  position: null,
64
64
  diyStyles: {}
65
65
  });
66
- let a = "transparent";
67
- const _ = m(() => r.propValue), w = m(() => r.element), j = m(() => w.value.events || []), I = m(() => w.value.containerParam || {}), C = m(() => {
68
- let E = {
69
- width: `${w.value.style.width}px`,
70
- height: `${w.value.style.height}px`,
71
- "background-color": p.value.color
66
+ let i = "transparent";
67
+ const p = h(() => r.propValue), V = h(() => r.element), W = h(() => V.value.events || []), j = h(() => V.value.containerParam || {}), b = h(() => {
68
+ let N = {
69
+ width: `${V.value.style.width}px`,
70
+ height: `${V.value.style.height}px`,
71
+ "background-color": v.value.color
72
72
  };
73
- p.value.image && (E["background-image"] = "url(" + p.value.image + ")"), p.value.repeat && (E["background-repeat"] = p.value.repeat), p.value.size && (E["background-size"] = p.value.size), p.value.position && (E["background-position"] = p.value.position);
73
+ v.value.image && (N["background-image"] = "url(" + v.value.image + ")"), v.value.repeat && (N["background-repeat"] = v.value.repeat), v.value.size && (N["background-size"] = v.value.size), v.value.position && (N["background-position"] = v.value.position);
74
74
  let d = {};
75
- e(p.value.diyStyles) && Object.keys(p.value.diyStyles).length > 0 && (d = p.value.diyStyles || {});
76
- let v = { ...E, ...d };
77
- return o(v.background) && !o(v["background-color"]) && delete v["background-color"], o(v.background) || o(v["background-image"]) || o(v["background-color"]) || (v["background-color"] = "transparent !important"), v;
78
- }), M = re(), W = ae(M), O = g(null), k = m(() => o(_.value.subpageId) ? _.value.subpageId : o(_.value.subpageIdCK) ? W[_.value.subpageIdCK] : "");
79
- T(() => k.value, (E) => {
80
- o(E) && V();
81
- }), T(() => w.value.style.width, (E) => {
82
- b();
83
- }), T(() => w.value.style.height, (E) => {
84
- b();
75
+ e(v.value.diyStyles) && Object.keys(v.value.diyStyles).length > 0 && (d = v.value.diyStyles || {});
76
+ let g = { ...N, ...d };
77
+ return o(g.background) && !o(g["background-color"]) && delete g["background-color"], o(g.background) || o(g["background-image"]) || o(g["background-color"]) || (g["background-color"] = "transparent !important"), g;
78
+ }), M = re(), L = ae(M), P = y(null), k = h(() => o(p.value.subpageId) ? p.value.subpageId : o(p.value.subpageIdCK) ? L[p.value.subpageIdCK] : "");
79
+ B(() => k.value, (N) => {
80
+ o(N) && I();
81
+ }), B(() => V.value.style.width, (N) => {
82
+ m();
83
+ }), B(() => V.value.style.height, (N) => {
84
+ m();
85
85
  });
86
- const s = () => {
87
- Object.assign(p.value, {
86
+ const u = () => {
87
+ Object.assign(v.value, {
88
88
  color: "transparent",
89
89
  image: null,
90
90
  repeat: null,
@@ -92,64 +92,64 @@ const fe = (t, c) => {
92
92
  position: null,
93
93
  diyStyles: {}
94
94
  });
95
- }, S = () => {
96
- u = {}, y = [], l.value = {}, f.value = [], s();
97
- }, V = () => {
98
- let E = k.value;
99
- if (o(E)) {
95
+ }, _ = () => {
96
+ a = {}, C = [], l.value = {}, f.value = [], u();
97
+ }, I = () => {
98
+ let N = k.value;
99
+ if (o(N)) {
100
100
  let d = "DB";
101
- if (r.designStatus || (d = M.pageSource || "DB", o(_.value.pageSource) && (d = r.pageSource)), d == "DB") {
102
- let v = {};
103
- v.id = E, i.qryPageConfigData(v).then(function(h) {
104
- let B = JSON.parse(h.data.pageData);
105
- B ? (u = B.canvasStyle || {}, y = B.componentData || [], u.passToParentSwitch ? (p.value.color = u.backgroundColor, p.value.image = u.backgroundImage, p.value.size = u.backgroundSize, p.value.position = u.backgroundPosition, p.value.diyStyles = u.diyStyles) : s(), b()) : S();
101
+ if (r.designStatus || (d = M.pageSource || "DB", o(p.value.pageSource) && (d = r.pageSource)), d == "DB") {
102
+ let g = {};
103
+ g.id = N, s.qryPageConfigData(g).then(function(w) {
104
+ let A = JSON.parse(w.data.pageData);
105
+ A ? (a = A.canvasStyle || {}, C = A.componentData || [], a.passToParentSwitch ? (v.value.color = a.backgroundColor, v.value.image = a.backgroundImage, v.value.size = a.backgroundSize, v.value.position = a.backgroundPosition, v.value.diyStyles = a.diyStyles) : u(), m()) : _();
106
106
  });
107
107
  } else {
108
- let v = E + ".json";
109
- i.getJsonFile(v, function(h) {
110
- if (h && h.status == 200) {
111
- let B = h.data || {};
112
- B ? (u = B.canvasStyle || {}, y = B.componentData || [], u.passToParentSwitch ? (p.value.color = u.backgroundColor, p.value.image = u.backgroundImage, p.value.size = u.backgroundSize, p.value.position = u.backgroundPosition, p.value.diyStyles = u.diyStyles) : s(), b()) : S();
108
+ let g = N + ".json";
109
+ s.getJsonFile(g, function(w) {
110
+ if (w && w.status == 200) {
111
+ let A = w.data || {};
112
+ A ? (a = A.canvasStyle || {}, C = A.componentData || [], a.passToParentSwitch ? (v.value.color = a.backgroundColor, v.value.image = a.backgroundImage, v.value.size = a.backgroundSize, v.value.position = a.backgroundPosition, v.value.diyStyles = a.diyStyles) : u(), m()) : _();
113
113
  } else
114
- S();
115
- }, function(h) {
116
- S();
114
+ _();
115
+ }, function(w) {
116
+ _();
117
117
  });
118
118
  }
119
119
  } else
120
- S();
121
- }, b = () => {
122
- let E = yt(w.value.style.width, w.value.style.height, u, y);
123
- if (E) {
124
- let d = E.canvasStyleData || {};
125
- u.passToParentSwitch && (d.backgroundColor = null, d.backgroundImage = null, d.backgroundSize = null, d.backgroundPosition = null, d.diyStyles = {}), l.value = d, f.value = E.componentData || [];
120
+ _();
121
+ }, m = () => {
122
+ let N = yt(V.value.style.width, V.value.style.height, a, C);
123
+ if (N) {
124
+ let d = N.canvasStyleData || {};
125
+ a.passToParentSwitch && (d.backgroundColor = null, d.backgroundImage = null, d.backgroundSize = null, d.backgroundPosition = null, d.diyStyles = {}), l.value = d, f.value = N.componentData || [];
126
126
  } else
127
127
  l.value = {}, f.value = [];
128
128
  };
129
- ke("VE-ContainerParam", I);
130
- const A = le(), H = oe(), x = ee(_, w, A, H);
129
+ ke("VE-ContainerParam", j);
130
+ const F = le(), H = oe(), S = ee(p, V, F, H);
131
131
  Q(() => {
132
- O.value = te(j.value, r.designStatus, x), O.value?.beforeMount();
132
+ P.value = te(W.value, r.designStatus, S), P.value?.beforeMount();
133
133
  }), q(() => {
134
- V(), O.value?.mounted();
134
+ I(), P.value?.mounted();
135
135
  }), J(() => {
136
- O.value?.beforeUnmount();
136
+ P.value?.beforeUnmount();
137
137
  }), $(() => {
138
- O.value?.unmounted();
138
+ P.value?.unmounted();
139
139
  });
140
- const Z = { isNotEmpty: o, isObject: e, api: i, props: r, vePageRef: n, canvasStyle: l, componentData: f, get oldCanvasStyle() {
141
- return u;
142
- }, set oldCanvasStyle(E) {
143
- u = E;
144
- }, get oldComponentData() {
145
- return y;
146
- }, set oldComponentData(E) {
147
- y = E;
148
- }, backgroundInfo: p, get backgroundColor() {
140
+ const Z = { isNotEmpty: o, isObject: e, api: s, props: r, vePageRef: n, canvasStyle: l, componentData: f, get oldCanvasStyle() {
149
141
  return a;
150
- }, set backgroundColor(E) {
151
- a = E;
152
- }, propValue: _, element: w, events: j, containerParam: I, containerStyle: C, dataCache: M, smartData: W, eventHandler: O, pageId: k, clearBackground: s, clearData: S, loadPageInfo: V, reCalcSizeData: b, router: A, route: H, compContext: x, ref: g, computed: m, onMounted: q, watch: T, provide: ke, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
142
+ }, set oldCanvasStyle(N) {
143
+ a = N;
144
+ }, get oldComponentData() {
145
+ return C;
146
+ }, set oldComponentData(N) {
147
+ C = N;
148
+ }, backgroundInfo: v, get backgroundColor() {
149
+ return i;
150
+ }, set backgroundColor(N) {
151
+ i = N;
152
+ }, propValue: p, element: V, events: W, containerParam: j, containerStyle: b, dataCache: M, smartData: L, eventHandler: P, pageId: k, clearBackground: u, clearData: _, loadPageInfo: I, reCalcSizeData: m, router: F, route: H, compContext: S, ref: y, computed: h, onMounted: q, watch: B, provide: ke, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
153
153
  return te;
154
154
  }, get useDataCacheStore() {
155
155
  return re;
@@ -171,11 +171,11 @@ const fe = (t, c) => {
171
171
  return Object.defineProperty(Z, "__isScriptSetup", { enumerable: !1, value: !0 }), Z;
172
172
  }
173
173
  });
174
- function Nt(t, c, o, e, i, r) {
174
+ function Nt(t, c, o, e, s, r) {
175
175
  const n = Je("VEPage");
176
- return P(), F("div", {
176
+ return R(), z("div", {
177
177
  class: "subpage-container",
178
- style: ye(e.containerStyle)
178
+ style: Ce(e.containerStyle)
179
179
  }, [
180
180
  Oe(n, {
181
181
  ref: "vePageRef",
@@ -205,28 +205,28 @@ const Kt = /* @__PURE__ */ fe(zt, [["render", Nt], ["__scopeId", "data-v-7840b29
205
205
  },
206
206
  setup(t, { expose: c }) {
207
207
  c();
208
- const { isArray: o, isNotEmpty: e, isObject: i } = Y, r = t, n = m(() => r.propValue), l = m(() => r.element), f = m(() => l.value.events || []), u = re(), y = ae(u), p = g(null), a = y[n.value.dsCacheKey], _ = m(() => n.value.staticData ? n.value.items || [] : o(a.value) ? a.value : []), w = m(() => {
209
- let k = _.value || [], s = [];
210
- return k.forEach((S, V) => {
211
- s[V] = {};
212
- let b = {};
213
- b.style = {}, b.style.width = l.value.style.width, b.style.height = l.value.style.height, b.prop = {}, b.prop.subpageId = S.value, s[V].subpageId = S.value, s[V].prop = b.prop, s[V].element = b;
214
- }), s;
215
- }), j = g(null), I = y[n.value.activeSubpageIdCK];
216
- T(() => I.value, (k) => {
217
- e(n.value.activeSubpageIdCK) && (i(k) || (j.value = k));
208
+ const { isArray: o, isNotEmpty: e, isObject: s } = Y, r = t, n = h(() => r.propValue), l = h(() => r.element), f = h(() => l.value.events || []), a = re(), C = ae(a), v = y(null), i = C[n.value.dsCacheKey], p = h(() => n.value.staticData ? n.value.items || [] : o(i.value) ? i.value : []), V = h(() => {
209
+ let k = p.value || [], u = [];
210
+ return k.forEach((_, I) => {
211
+ u[I] = {};
212
+ let m = {};
213
+ m.style = {}, m.style.width = l.value.style.width, m.style.height = l.value.style.height, m.prop = {}, m.prop.subpageId = _.value, u[I].subpageId = _.value, u[I].prop = m.prop, u[I].element = m;
214
+ }), u;
215
+ }), W = y(null), j = C[n.value.activeSubpageIdCK];
216
+ B(() => j.value, (k) => {
217
+ e(n.value.activeSubpageIdCK) && (s(k) || (W.value = k));
218
218
  }, { immediate: !0 });
219
- const C = le(), M = oe(), W = ee(n, l, C, M);
219
+ const b = le(), M = oe(), L = ee(n, l, b, M);
220
220
  Q(() => {
221
- p.value = te(f.value, r.designStatus, W), p.value?.beforeMount();
221
+ v.value = te(f.value, r.designStatus, L), v.value?.beforeMount();
222
222
  }), q(() => {
223
- n.value.activeSubpageId && (j.value = n.value.activeSubpageId), p.value?.mounted();
223
+ n.value.activeSubpageId && (W.value = n.value.activeSubpageId), v.value?.mounted();
224
224
  }), J(() => {
225
- p.value?.beforeUnmount();
225
+ v.value?.beforeUnmount();
226
226
  }), $(() => {
227
- p.value?.unmounted();
227
+ v.value?.unmounted();
228
228
  });
229
- const O = { isArray: o, isNotEmpty: e, isObject: i, props: r, propValue: n, element: l, events: f, dataCache: u, smartData: y, eventHandler: p, cacheDS: a, options: _, itemData: w, curPageId: j, cacheValue: I, router: C, route: M, compContext: W, ref: g, computed: m, onMounted: q, watch: T, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
229
+ const P = { isArray: o, isNotEmpty: e, isObject: s, props: r, propValue: n, element: l, events: f, dataCache: a, smartData: C, eventHandler: v, cacheDS: i, options: p, itemData: V, curPageId: W, cacheValue: j, router: b, route: M, compContext: L, ref: y, computed: h, onMounted: q, watch: B, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
230
230
  return te;
231
231
  }, get useDataCacheStore() {
232
232
  return re;
@@ -241,15 +241,15 @@ const Kt = /* @__PURE__ */ fe(zt, [["render", Nt], ["__scopeId", "data-v-7840b29
241
241
  }, get useRouter() {
242
242
  return le;
243
243
  } };
244
- return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
244
+ return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
245
245
  }
246
246
  });
247
- function Gt(t, c, o, e, i, r) {
247
+ function Gt(t, c, o, e, s, r) {
248
248
  const n = Je("Subpage");
249
- return P(), F("div", { class: "subpage-container" }, [
250
- (P(!0), F(it, null, vt(e.itemData, (l, f) => (P(), F("div", { key: f }, [
251
- (P(), he(Bt, { max: 15 }, [
252
- e.curPageId == l.subpageId ? (P(), he(n, {
249
+ return R(), z("div", { class: "subpage-container" }, [
250
+ (R(!0), z(it, null, vt(e.itemData, (l, f) => (R(), z("div", { key: f }, [
251
+ (R(), he(Bt, { max: 15 }, [
252
+ e.curPageId == l.subpageId ? (R(), he(n, {
253
253
  key: f,
254
254
  "prop-value": l.prop,
255
255
  element: l.element
@@ -283,8 +283,8 @@ function ll(t) {
283
283
  var e = !0;
284
284
  } catch {
285
285
  }
286
- var i = tl.call(t);
287
- return e && (c ? t[Ue] = o : delete t[Ue]), i;
286
+ var s = tl.call(t);
287
+ return e && (c ? t[Ue] = o : delete t[Ue]), s;
288
288
  }
289
289
  var ol = Object.prototype, nl = ol.toString;
290
290
  function rl(t) {
@@ -319,64 +319,64 @@ function xt(t) {
319
319
  }
320
320
  var ml = "Expected a function", gl = Math.max, yl = Math.min;
321
321
  function rt(t, c, o) {
322
- var e, i, r, n, l, f, u = 0, y = !1, p = !1, a = !0;
322
+ var e, s, r, n, l, f, a = 0, C = !1, v = !1, i = !0;
323
323
  if (typeof t != "function")
324
324
  throw new TypeError(ml);
325
- c = xt(c) || 0, dt(o) && (y = !!o.leading, p = "maxWait" in o, r = p ? gl(xt(o.maxWait) || 0, c) : r, a = "trailing" in o ? !!o.trailing : a);
326
- function _(s) {
327
- var S = e, V = i;
328
- return e = i = void 0, u = s, n = t.apply(V, S), n;
325
+ c = xt(c) || 0, dt(o) && (C = !!o.leading, v = "maxWait" in o, r = v ? gl(xt(o.maxWait) || 0, c) : r, i = "trailing" in o ? !!o.trailing : i);
326
+ function p(u) {
327
+ var _ = e, I = s;
328
+ return e = s = void 0, a = u, n = t.apply(I, _), n;
329
329
  }
330
- function w(s) {
331
- return u = s, l = setTimeout(C, c), y ? _(s) : n;
330
+ function V(u) {
331
+ return a = u, l = setTimeout(b, c), C ? p(u) : n;
332
332
  }
333
- function j(s) {
334
- var S = s - f, V = s - u, b = c - S;
335
- return p ? yl(b, r - V) : b;
333
+ function W(u) {
334
+ var _ = u - f, I = u - a, m = c - _;
335
+ return v ? yl(m, r - I) : m;
336
336
  }
337
- function I(s) {
338
- var S = s - f, V = s - u;
339
- return f === void 0 || S >= c || S < 0 || p && V >= r;
337
+ function j(u) {
338
+ var _ = u - f, I = u - a;
339
+ return f === void 0 || _ >= c || _ < 0 || v && I >= r;
340
340
  }
341
- function C() {
342
- var s = at();
343
- if (I(s))
344
- return M(s);
345
- l = setTimeout(C, j(s));
341
+ function b() {
342
+ var u = at();
343
+ if (j(u))
344
+ return M(u);
345
+ l = setTimeout(b, W(u));
346
346
  }
347
- function M(s) {
348
- return l = void 0, a && e ? _(s) : (e = i = void 0, n);
347
+ function M(u) {
348
+ return l = void 0, i && e ? p(u) : (e = s = void 0, n);
349
349
  }
350
- function W() {
351
- l !== void 0 && clearTimeout(l), u = 0, e = f = i = l = void 0;
350
+ function L() {
351
+ l !== void 0 && clearTimeout(l), a = 0, e = f = s = l = void 0;
352
352
  }
353
- function O() {
353
+ function P() {
354
354
  return l === void 0 ? n : M(at());
355
355
  }
356
356
  function k() {
357
- var s = at(), S = I(s);
358
- if (e = arguments, i = this, f = s, S) {
357
+ var u = at(), _ = j(u);
358
+ if (e = arguments, s = this, f = u, _) {
359
359
  if (l === void 0)
360
- return w(f);
361
- if (p)
362
- return clearTimeout(l), l = setTimeout(C, c), _(f);
360
+ return V(f);
361
+ if (v)
362
+ return clearTimeout(l), l = setTimeout(b, c), p(f);
363
363
  }
364
- return l === void 0 && (l = setTimeout(C, c)), n;
364
+ return l === void 0 && (l = setTimeout(b, c)), n;
365
365
  }
366
- return k.cancel = W, k.flush = O, k;
366
+ return k.cancel = L, k.flush = P, k;
367
367
  }
368
- let Ie = null;
368
+ let We = null;
369
369
  function Cl() {
370
- return Ie !== null;
370
+ return We !== null;
371
371
  }
372
372
  function bl(t) {
373
- Ie && Rt(), Ie = t;
373
+ We && Rt(), We = t;
374
374
  }
375
375
  function St(t) {
376
- t === Ie && (Ie = null);
376
+ t === We && (We = null);
377
377
  }
378
378
  function Rt() {
379
- Ie && (Ie.closeMenu(), Ie = null);
379
+ We && (We.closeMenu(), We = null);
380
380
  }
381
381
  const Me = {
382
382
  defaultDirection: "br",
@@ -408,12 +408,12 @@ let _l = 0;
408
408
  function Ht(t) {
409
409
  const { getContainer: c, zIndex: o } = t;
410
410
  if (c) {
411
- const i = typeof c == "function" ? c() : c;
412
- if (i) {
413
- let r = i.getAttribute("id");
414
- return r || (r = Sl + _l++, i.setAttribute("id", r)), {
411
+ const s = typeof c == "function" ? c() : c;
412
+ if (s) {
413
+ let r = s.getAttribute("id");
414
+ return r || (r = Sl + _l++, s.setAttribute("id", r)), {
415
415
  eleId: r,
416
- container: i,
416
+ container: s,
417
417
  isNew: !1
418
418
  };
419
419
  }
@@ -436,7 +436,7 @@ function kl(t) {
436
436
  function _t(t) {
437
437
  return typeof t == "number" ? `${t}px` : t;
438
438
  }
439
- const Ve = Le({
439
+ const Ve = Pe({
440
440
  props: {
441
441
  /**
442
442
  * Can be VNode or (data: unknown) => VNode
@@ -475,15 +475,15 @@ class wt {
475
475
  }
476
476
  }
477
477
  function Vt(t) {
478
- const { onDown: c, onMove: o, onUp: e } = t, i = new wt(), r = new wt();
478
+ const { onDown: c, onMove: o, onUp: e } = t, s = new wt(), r = new wt();
479
479
  let n;
480
- function l(u) {
481
- u.stopPropagation(), r.set(u.x, u.y), r.substract(i), o(i, r, u, n);
480
+ function l(a) {
481
+ a.stopPropagation(), r.set(a.x, a.y), r.substract(s), o(s, r, a, n);
482
482
  }
483
- function f(u) {
484
- e(u, n), i.set(0, 0), document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", f);
483
+ function f(a) {
484
+ e(a, n), s.set(0, 0), document.removeEventListener("mousemove", l), document.removeEventListener("mouseup", f);
485
485
  }
486
- return (u, y) => c(u, y) ? (n = y, i.set(u.x, u.y), document.addEventListener("mousemove", l), document.addEventListener("mouseup", f), u.stopPropagation(), !0) : !1;
486
+ return (a, C) => c(a, C) ? (n = C, s.set(a.x, a.y), document.addEventListener("mousemove", l), document.addEventListener("mouseup", f), a.stopPropagation(), !0) : !1;
487
487
  }
488
488
  function Ol(t, c) {
489
489
  let o = 0;
@@ -503,9 +503,9 @@ const Ge = [], Mt = Ol(100, () => {
503
503
  t();
504
504
  });
505
505
  function Dl(t, c, o, e) {
506
- let i = 0, r = 0;
506
+ let s = 0, r = 0;
507
507
  function n() {
508
- t.value && (c && i !== t.value.offsetWidth && c(t.value.offsetWidth), o && r !== t.value.offsetHeight && o(t.value.offsetHeight), i = t.value.offsetWidth, r = t.value.offsetHeight);
508
+ t.value && (c && s !== t.value.offsetWidth && c(t.value.offsetWidth), o && r !== t.value.offsetHeight && o(t.value.offsetHeight), s = t.value.offsetWidth, r = t.value.offsetHeight);
509
509
  }
510
510
  return {
511
511
  startResizeChecker() {
@@ -517,7 +517,7 @@ function Dl(t, c, o, e) {
517
517
  }
518
518
  };
519
519
  }
520
- const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
520
+ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Pe({
521
521
  __name: "ScrollRect",
522
522
  props: {
523
523
  /**
@@ -585,208 +585,208 @@ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
585
585
  },
586
586
  emits: ["scroll", "resized"],
587
587
  setup(t, { expose: c, emit: o }) {
588
- const e = t, i = o, r = g(), n = g(), l = g(), f = g(), u = g(), y = g(), p = g(!1), a = m(() => e.scroll === "horizontal" || e.scroll === "both"), _ = m(() => e.scroll === "vertical" || e.scroll === "both"), w = Ze({
588
+ const e = t, s = o, r = y(), n = y(), l = y(), f = y(), a = y(), C = y(), v = y(!1), i = h(() => e.scroll === "horizontal" || e.scroll === "both"), p = h(() => e.scroll === "vertical" || e.scroll === "both"), V = Ze({
589
589
  show: !1,
590
590
  size: 0,
591
591
  sizeRaw: 0,
592
592
  pos: 0
593
- }), j = Ze({
593
+ }), W = Ze({
594
594
  show: !1,
595
595
  size: 0,
596
596
  sizeRaw: 0,
597
597
  pos: 0
598
598
  });
599
- let I = 0, C = 0, M = 0, W = 0, O = null;
599
+ let j = 0, b = 0, M = 0, L = 0, P = null;
600
600
  const k = { attributes: !0, childList: !0 };
601
- function s() {
601
+ function u() {
602
602
  if (r.value) {
603
- if (w.show) {
604
- const D = r.value.offsetWidth / r.value.scrollWidth;
605
- w.sizeRaw = D * r.value.offsetWidth, w.size = D * 100, w.pos = r.value.scrollLeft / (r.value.scrollWidth - r.value.offsetWidth) * (100 - w.size), D >= 1 && (w.show = !1);
603
+ if (V.show) {
604
+ const O = r.value.offsetWidth / r.value.scrollWidth;
605
+ V.sizeRaw = O * r.value.offsetWidth, V.size = O * 100, V.pos = r.value.scrollLeft / (r.value.scrollWidth - r.value.offsetWidth) * (100 - V.size), O >= 1 && (V.show = !1);
606
606
  }
607
- if (j.show) {
608
- const D = r.value.offsetHeight / r.value.scrollHeight;
609
- j.sizeRaw = D * r.value.offsetHeight, j.size = D * 100, j.pos = r.value.scrollTop / (r.value.scrollHeight - r.value.offsetHeight) * (100 - j.size), D >= 1 && (j.show = !1);
607
+ if (W.show) {
608
+ const O = r.value.offsetHeight / r.value.scrollHeight;
609
+ W.sizeRaw = O * r.value.offsetHeight, W.size = O * 100, W.pos = r.value.scrollTop / (r.value.scrollHeight - r.value.offsetHeight) * (100 - W.size), O >= 1 && (W.show = !1);
610
610
  }
611
- i("scroll", r.value.scrollLeft, r.value.scrollTop);
611
+ s("scroll", r.value.scrollLeft, r.value.scrollTop);
612
612
  }
613
613
  }
614
- function S(D = !1) {
614
+ function _(O = !1) {
615
615
  if (!r.value)
616
616
  return;
617
- let G = a.value, R = _.value;
618
- const ce = G && (I !== r.value.scrollWidth || M !== r.value.offsetWidth), be = _ && (C !== r.value.scrollHeight || W !== r.value.offsetHeight);
619
- if (!D && !ce && !be)
617
+ let G = i.value, T = p.value;
618
+ const ce = G && (j !== r.value.scrollWidth || M !== r.value.offsetWidth), xe = p && (b !== r.value.scrollHeight || L !== r.value.offsetHeight);
619
+ if (!O && !ce && !xe)
620
620
  return;
621
621
  const ve = window.getComputedStyle(r.value);
622
- (ve.overflow === "hidden" || ve.overflowX === "hidden") && (G = !1), (ve.overflow === "hidden" || ve.overflowY === "hidden") && (R = !1), w.show = G, j.show = R, s(), M = r.value.offsetWidth, W = r.value.offsetHeight, I = r.value.scrollWidth, C = r.value.scrollHeight, i("resized", I, C);
622
+ (ve.overflow === "hidden" || ve.overflowX === "hidden") && (G = !1), (ve.overflow === "hidden" || ve.overflowY === "hidden") && (T = !1), V.show = G, W.show = T, u(), M = r.value.offsetWidth, L = r.value.offsetHeight, j = r.value.scrollWidth, b = r.value.scrollHeight, s("resized", j, b);
623
623
  }
624
- function V(D) {
624
+ function I(O) {
625
625
  var G;
626
- e.scroll == "horizontal" && (D.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
627
- left: r.value.scrollLeft + (D.deltaY > 0 ? Ot : -140),
626
+ e.scroll == "horizontal" && (O.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
627
+ left: r.value.scrollLeft + (O.deltaY > 0 ? Ot : -140),
628
628
  behavior: "smooth"
629
- })), D.preventDefault(), D.stopPropagation());
629
+ })), O.preventDefault(), O.stopPropagation());
630
630
  }
631
- function b(D) {
631
+ function m(O) {
632
632
  var G;
633
- D.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
634
- left: r.value.scrollLeft + (D.deltaY > 0 ? Ot : -140),
633
+ O.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
634
+ left: r.value.scrollLeft + (O.deltaY > 0 ? Ot : -140),
635
635
  behavior: "smooth"
636
- }), D.preventDefault(), D.stopPropagation());
636
+ }), O.preventDefault(), O.stopPropagation());
637
637
  }
638
- function A(D) {
638
+ function F(O) {
639
639
  var G;
640
- D.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
641
- top: r.value.scrollTop + (D.deltaY > 0 ? Il : -70),
640
+ O.deltaMode == 0 && ((G = r.value) == null || G.scrollTo({
641
+ top: r.value.scrollTop + (O.deltaY > 0 ? Il : -70),
642
642
  behavior: "smooth"
643
- }), D.preventDefault(), D.stopPropagation());
643
+ }), O.preventDefault(), O.stopPropagation());
644
644
  }
645
- let H = 0, x = 0, Z = 0, E = 0;
645
+ let H = 0, S = 0, Z = 0, N = 0;
646
646
  const d = Vt({
647
- onDown(D) {
648
- return !l.value || !u.value ? !1 : (H = D.offsetX, x = D.x - D.offsetX - u.value.offsetLeft, D.preventDefault(), p.value = !0, !0);
647
+ onDown(O) {
648
+ return !l.value || !a.value ? !1 : (H = O.offsetX, S = O.x - O.offsetX - a.value.offsetLeft, O.preventDefault(), v.value = !0, !0);
649
649
  },
650
- onMove(D, G, R) {
651
- r.value && l.value && (z(R.x - H - x), R.preventDefault(), R.stopPropagation());
650
+ onMove(O, G, T) {
651
+ r.value && l.value && (E(T.x - H - S), T.preventDefault(), T.stopPropagation());
652
652
  },
653
653
  onUp() {
654
- p.value = !1;
654
+ v.value = !1;
655
655
  }
656
- }), v = Vt({
657
- onDown(D) {
658
- return !f.value || !y.value ? !1 : (Z = D.offsetY, E = D.y - D.offsetY - y.value.offsetTop, D.preventDefault(), p.value = !0, !0);
656
+ }), g = Vt({
657
+ onDown(O) {
658
+ return !f.value || !C.value ? !1 : (Z = O.offsetY, N = O.y - O.offsetY - C.value.offsetTop, O.preventDefault(), v.value = !0, !0);
659
659
  },
660
- onMove(D, G, R) {
661
- r.value && f.value && (X(R.y - Z - E), R.preventDefault(), R.stopPropagation());
660
+ onMove(O, G, T) {
661
+ r.value && f.value && (X(T.y - Z - N), T.preventDefault(), T.stopPropagation());
662
662
  },
663
663
  onUp() {
664
- p.value = !1;
664
+ v.value = !1;
665
665
  }
666
666
  });
667
- function h(D) {
668
- r.value && (r.value.scrollLeft = D / 100 * (r.value.scrollWidth - r.value.offsetWidth));
667
+ function w(O) {
668
+ r.value && (r.value.scrollLeft = O / 100 * (r.value.scrollWidth - r.value.offsetWidth));
669
669
  }
670
- function B(D) {
671
- r.value && (r.value.scrollLeft = D / 100 * (r.value.scrollHeight - r.value.offsetHeight));
670
+ function A(O) {
671
+ r.value && (r.value.scrollLeft = O / 100 * (r.value.scrollHeight - r.value.offsetHeight));
672
672
  }
673
- function z(D) {
674
- r.value && (r.value.scrollLeft = D / (r.value.offsetWidth - w.sizeRaw) * (r.value.scrollWidth - r.value.offsetWidth));
673
+ function E(O) {
674
+ r.value && (r.value.scrollLeft = O / (r.value.offsetWidth - V.sizeRaw) * (r.value.scrollWidth - r.value.offsetWidth));
675
675
  }
676
- function X(D) {
677
- r.value && (r.value.scrollTop = D / (r.value.offsetHeight - j.sizeRaw) * (r.value.scrollHeight - r.value.offsetHeight));
676
+ function X(O) {
677
+ r.value && (r.value.scrollTop = O / (r.value.offsetHeight - W.sizeRaw) * (r.value.scrollHeight - r.value.offsetHeight));
678
678
  }
679
- function L(D) {
680
- e.scrollBarBackgroundClickable && z(D.offsetX - w.sizeRaw / 2);
679
+ function D(O) {
680
+ e.scrollBarBackgroundClickable && E(O.offsetX - V.sizeRaw / 2);
681
681
  }
682
- function ie(D) {
683
- e.scrollBarBackgroundClickable && X(D.offsetY - j.sizeRaw / 2);
682
+ function se(O) {
683
+ e.scrollBarBackgroundClickable && X(O.offsetY - W.sizeRaw / 2);
684
684
  }
685
685
  const {
686
- startResizeChecker: _e,
687
- stopResizeChecker: K
686
+ startResizeChecker: ge,
687
+ stopResizeChecker: x
688
688
  } = Dl(
689
689
  r,
690
- () => S(),
691
- () => S()
690
+ () => _(),
691
+ () => _()
692
692
  );
693
693
  return q(() => {
694
694
  we(() => {
695
- setTimeout(() => S(!0), 200), S(!0), _e(), O = new MutationObserver(() => S()), O.observe(r.value, k);
695
+ setTimeout(() => _(!0), 200), _(!0), ge(), P = new MutationObserver(() => _()), P.observe(r.value, k);
696
696
  });
697
697
  }), J(() => {
698
- K(), O && (O.disconnect(), O = null);
698
+ x(), P && (P.disconnect(), P = null);
699
699
  }), c({
700
700
  refreshScrollState() {
701
- S(!0);
701
+ _(!0);
702
702
  },
703
703
  getScrollContainer() {
704
704
  return r.value;
705
705
  },
706
- scrollTo(D, G) {
707
- var R;
708
- (R = r.value) == null || R.scrollTo(D, G);
706
+ scrollTo(O, G) {
707
+ var T;
708
+ (T = r.value) == null || T.scrollTo(O, G);
709
709
  },
710
710
  scrollToTop() {
711
- var D;
712
- (D = r.value) == null || D.scrollTo(0, 0);
711
+ var O;
712
+ (O = r.value) == null || O.scrollTo(0, 0);
713
713
  },
714
714
  scrollToBottom() {
715
- var D;
716
- (D = r.value) == null || D.scrollTo(r.value.scrollWidth, r.value.scrollHeight);
715
+ var O;
716
+ (O = r.value) == null || O.scrollTo(r.value.scrollWidth, r.value.scrollHeight);
717
717
  }
718
- }), (D, G) => (P(), F("div", {
718
+ }), (O, G) => (R(), z("div", {
719
719
  ref_key: "scrollrect",
720
720
  ref: n,
721
721
  class: Re([
722
722
  "vue-scroll-rect",
723
723
  t.scrollBarAlwaysShow ? "always-show-scrollbar" : "",
724
724
  t.scrollBarBackgroundClickable ? "background-clickable" : "",
725
- p.value ? "dragging" : ""
725
+ v.value ? "dragging" : ""
726
726
  ]),
727
- style: ye({
727
+ style: Ce({
728
728
  width: t.width ? `${t.width}px` : void 0,
729
729
  height: t.height ? `${t.height}px` : void 0
730
730
  }),
731
- onWheel: V
731
+ onWheel: I
732
732
  }, [
733
733
  ue("div", {
734
734
  ref_key: "container",
735
735
  ref: r,
736
736
  class: Re(["scroll-content", t.scroll, t.containerClass]),
737
- style: ye({
737
+ style: Ce({
738
738
  maxWidth: t.maxWidth ? `${t.maxWidth}px` : void 0,
739
739
  maxHeight: t.maxHeight ? `${t.maxHeight}px` : void 0,
740
740
  ...t.containerStyle
741
741
  }),
742
- onScroll: s
742
+ onScroll: u
743
743
  }, [
744
- xe(D.$slots, "default")
744
+ Se(O.$slots, "default")
745
745
  ], 38),
746
- w.show ? xe(D.$slots, "scrollBarX", {
746
+ V.show ? Se(O.$slots, "scrollBarX", {
747
747
  key: 0,
748
- scrollBarValue: w,
749
- onScroll: h
748
+ scrollBarValue: V,
749
+ onScroll: w
750
750
  }, () => [
751
751
  ue("div", {
752
752
  ref_key: "scrollBarRefX",
753
753
  ref: l,
754
754
  class: "scrollbar horizontal",
755
- onClick: L,
756
- onWheel: b
755
+ onClick: D,
756
+ onWheel: m
757
757
  }, [
758
758
  ue("div", {
759
759
  class: "thumb",
760
760
  ref_key: "scrollBarThumbRefX",
761
- ref: u,
762
- style: ye({ left: `${w.pos}%`, width: `${w.size}%` }),
761
+ ref: a,
762
+ style: Ce({ left: `${V.pos}%`, width: `${V.size}%` }),
763
763
  onMousedown: G[0] || (G[0] = //@ts-ignore
764
- (...R) => N(d) && N(d)(...R)),
765
- onWheel: b
764
+ (...T) => K(d) && K(d)(...T)),
765
+ onWheel: m
766
766
  }, null, 36)
767
767
  ], 544)
768
768
  ]) : ne("", !0),
769
- j.show ? xe(D.$slots, "scrollBarY", {
769
+ W.show ? Se(O.$slots, "scrollBarY", {
770
770
  key: 1,
771
- scrollBarValue: j,
772
- onScroll: B
771
+ scrollBarValue: W,
772
+ onScroll: A
773
773
  }, () => [
774
- j.show ? (P(), F("div", {
774
+ W.show ? (R(), z("div", {
775
775
  key: 0,
776
776
  ref_key: "scrollBarRefY",
777
777
  ref: f,
778
778
  class: "scrollbar vertical",
779
- onClick: ie,
780
- onWheel: A
779
+ onClick: se,
780
+ onWheel: F
781
781
  }, [
782
782
  ue("div", {
783
783
  class: "thumb",
784
784
  ref_key: "scrollBarThumbRefY",
785
- ref: y,
786
- style: ye({ top: `${j.pos}%`, height: `${j.size}%` }),
785
+ ref: C,
786
+ style: Ce({ top: `${W.pos}%`, height: `${W.size}%` }),
787
787
  onMousedown: G[1] || (G[1] = //@ts-ignore
788
- (...R) => N(v) && N(v)(...R)),
789
- onWheel: A
788
+ (...T) => K(g) && K(g)(...T)),
789
+ onWheel: F
790
790
  }, null, 36)
791
791
  ], 544)) : ne("", !0)
792
792
  ]) : ne("", !0)
@@ -794,8 +794,8 @@ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
794
794
  }
795
795
  }), pt = (t, c) => {
796
796
  const o = t.__vccOpts || t;
797
- for (const [e, i] of c)
798
- o[e] = i;
797
+ for (const [e, s] of c)
798
+ o[e] = s;
799
799
  return o;
800
800
  }, jl = {}, Ll = {
801
801
  class: "mx-checked-mark",
@@ -805,7 +805,7 @@ const Ot = 140, Il = 70, Wl = /* @__PURE__ */ Le({
805
805
  Pl
806
806
  ];
807
807
  function Hl(t, c) {
808
- return P(), F("svg", Ll, Rl);
808
+ return R(), z("svg", Ll, Rl);
809
809
  }
810
810
  const Tl = /* @__PURE__ */ pt(jl, [["render", Hl]]), Bl = {}, Al = {
811
811
  class: "mx-right-arrow",
@@ -815,12 +815,12 @@ const Tl = /* @__PURE__ */ pt(jl, [["render", Hl]]), Bl = {}, Al = {
815
815
  Fl
816
816
  ];
817
817
  function zl(t, c) {
818
- return P(), F("svg", Al, El);
818
+ return R(), z("svg", Al, El);
819
819
  }
820
820
  const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row" }, Ul = ["xlink:href"], Gl = {
821
821
  key: 1,
822
822
  class: "label"
823
- }, Xl = { class: "mx-item-row" }, Yl = { class: "mx-shortcut" }, ht = /* @__PURE__ */ Le({
823
+ }, Xl = { class: "mx-item-row" }, Yl = { class: "mx-shortcut" }, ht = /* @__PURE__ */ Pe({
824
824
  __name: "ContextMenuItem",
825
825
  props: {
826
826
  /**
@@ -954,120 +954,120 @@ const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row"
954
954
  "subMenuClose"
955
955
  ],
956
956
  setup(t, { expose: c, emit: o }) {
957
- const e = t, i = o, {
957
+ const e = t, s = o, {
958
958
  clickHandler: r,
959
959
  clickClose: n,
960
960
  clickableWhenHasChildren: l,
961
961
  disabled: f,
962
- hidden: u,
963
- label: y,
964
- icon: p,
965
- iconFontClass: a,
966
- showRightArrow: _,
967
- shortcut: w,
968
- hasChildren: j
969
- } = Ee(e), I = g(!1), C = g(!1), M = g(), W = me("globalOptions"), O = me("globalHasSlot"), k = me("globalRenderSlot"), s = me("globalCloseMenu"), S = me("menuContext"), V = m(() => typeof y.value == "string" ? y.value : typeof y.value == "function" ? kl(y.value.toString()) : "MenuItem[unknow]");
970
- ke("MenuItemName", V);
971
- const b = {
962
+ hidden: a,
963
+ label: C,
964
+ icon: v,
965
+ iconFontClass: i,
966
+ showRightArrow: p,
967
+ shortcut: V,
968
+ hasChildren: W
969
+ } = Ee(e), j = y(!1), b = y(!1), M = y(), L = me("globalOptions"), P = me("globalHasSlot"), k = me("globalRenderSlot"), u = me("globalCloseMenu"), _ = me("menuContext"), I = h(() => typeof C.value == "string" ? C.value : typeof C.value == "function" ? kl(C.value.toString()) : "MenuItem[unknow]");
970
+ ke("MenuItemName", I);
971
+ const m = {
972
972
  getSubMenuInstance: () => {
973
973
  },
974
- showSubMenu: () => I.value ? (S.markActiveMenuItem(b, !0), !0) : j.value ? (H(), !0) : !1,
974
+ showSubMenu: () => j.value ? (_.markActiveMenuItem(m, !0), !0) : W.value ? (H(), !0) : !1,
975
975
  hideSubMenu: () => {
976
- S.closeOtherSubMenu();
976
+ _.closeOtherSubMenu();
977
977
  },
978
- isDisabledOrHidden: () => f.value || u.value,
978
+ isDisabledOrHidden: () => f.value || a.value,
979
979
  getElement: () => M.value,
980
- focus: () => C.value = !0,
981
- blur: () => C.value = !1,
982
- click: A
980
+ focus: () => b.value = !0,
981
+ blur: () => b.value = !1,
982
+ click: F
983
983
  };
984
- ke("menuItemInstance", b), q(() => {
985
- S.isMenuItemDataCollectedFlag() ? we(() => {
986
- let E = 0;
987
- const d = S.getElement();
984
+ ke("menuItemInstance", m), q(() => {
985
+ _.isMenuItemDataCollectedFlag() ? we(() => {
986
+ let N = 0;
987
+ const d = _.getElement();
988
988
  if (d) {
989
- let v = 0;
990
- for (let h = 0; h < d.children.length; h++) {
991
- const B = d.children[h];
992
- if (B.getAttribute("data-type") === "ContextMenuItem") {
993
- if (B === M.value) {
994
- E = v;
989
+ let g = 0;
990
+ for (let w = 0; w < d.children.length; w++) {
991
+ const A = d.children[w];
992
+ if (A.getAttribute("data-type") === "ContextMenuItem") {
993
+ if (A === M.value) {
994
+ N = g;
995
995
  break;
996
996
  }
997
- v++;
997
+ g++;
998
998
  }
999
999
  }
1000
1000
  }
1001
- S.addChildMenuItem(b, E);
1002
- }) : S.addChildMenuItem(b);
1001
+ _.addChildMenuItem(m, N);
1002
+ }) : _.addChildMenuItem(m);
1003
1003
  }), J(() => {
1004
- S.removeChildMenuItem(b);
1004
+ _.removeChildMenuItem(m);
1005
1005
  });
1006
- function A(E) {
1006
+ function F(N) {
1007
1007
  if (!f.value) {
1008
- if (E) {
1009
- const d = E.target;
1010
- if (d.classList.contains("mx-context-no-clickable") || W.value.ignoreClickClassName && d.classList.contains(W.value.ignoreClickClassName))
1008
+ if (N) {
1009
+ const d = N.target;
1010
+ if (d.classList.contains("mx-context-no-clickable") || L.value.ignoreClickClassName && d.classList.contains(L.value.ignoreClickClassName))
1011
1011
  return;
1012
- if (W.value.clickCloseClassName && d.classList.contains(W.value.clickCloseClassName)) {
1013
- E.stopPropagation(), s(e.rawMenuItem);
1012
+ if (L.value.clickCloseClassName && d.classList.contains(L.value.clickCloseClassName)) {
1013
+ N.stopPropagation(), u(e.rawMenuItem);
1014
1014
  return;
1015
1015
  }
1016
1016
  }
1017
- j.value ? l.value ? (typeof r.value == "function" && r.value(E), i("click", E)) : I.value || H() : (typeof r.value == "function" && r.value(E), i("click", E), n.value && s(e.rawMenuItem));
1017
+ W.value ? l.value ? (typeof r.value == "function" && r.value(N), s("click", N)) : j.value || H() : (typeof r.value == "function" && r.value(N), s("click", N), n.value && u(e.rawMenuItem));
1018
1018
  }
1019
1019
  }
1020
- function H(E) {
1021
- C.value = !1, S.checkCloseOtherSubMenuTimeOut() || S.closeOtherSubMenu(), f.value || (S.markActiveMenuItem(b), j.value && (E || S.markThisOpenedByKeyBoard(), S.addOpenedSubMenu(x), I.value = !0, we(() => i("subMenuOpen", b))));
1020
+ function H(N) {
1021
+ b.value = !1, _.checkCloseOtherSubMenuTimeOut() || _.closeOtherSubMenu(), f.value || (_.markActiveMenuItem(m), W.value && (N || _.markThisOpenedByKeyBoard(), _.addOpenedSubMenu(S), j.value = !0, we(() => s("subMenuOpen", m))));
1022
1022
  }
1023
- function x() {
1024
- C.value = !1, I.value = !1, i("subMenuClose", b);
1023
+ function S() {
1024
+ b.value = !1, j.value = !1, s("subMenuClose", m);
1025
1025
  }
1026
1026
  function Z() {
1027
1027
  return {
1028
1028
  disabled: f.value,
1029
- label: y.value,
1030
- icon: p.value,
1031
- iconFontClass: a.value,
1032
- showRightArrow: _.value,
1029
+ label: C.value,
1030
+ icon: v.value,
1031
+ iconFontClass: i.value,
1032
+ showRightArrow: p.value,
1033
1033
  clickClose: n.value,
1034
1034
  clickableWhenHasChildren: l.value,
1035
- shortcut: w.value,
1036
- theme: W.value.theme,
1037
- isOpen: I,
1038
- hasChildren: j,
1039
- onClick: A,
1035
+ shortcut: V.value,
1036
+ theme: L.value.theme,
1037
+ isOpen: j,
1038
+ hasChildren: W,
1039
+ onClick: F,
1040
1040
  onMouseEnter: H,
1041
- closeMenu: s
1041
+ closeMenu: u
1042
1042
  };
1043
1043
  }
1044
- return c(b), (E, d) => N(u) ? ne("", !0) : (P(), F("div", {
1044
+ return c(m), (N, d) => K(a) ? ne("", !0) : (R(), z("div", {
1045
1045
  key: 0,
1046
1046
  class: "mx-context-menu-item-wrapper",
1047
1047
  ref_key: "menuItemRef",
1048
1048
  ref: M,
1049
1049
  "data-type": "ContextMenuItem"
1050
1050
  }, [
1051
- N(O)("itemRender") ? (P(), he(N(Ve), {
1051
+ K(P)("itemRender") ? (R(), he(K(Ve), {
1052
1052
  key: 0,
1053
- vnode: () => N(k)("itemRender", Z())
1054
- }, null, 8, ["vnode"])) : t.customRender ? (P(), he(N(Ve), {
1053
+ vnode: () => K(k)("itemRender", Z())
1054
+ }, null, 8, ["vnode"])) : t.customRender ? (R(), he(K(Ve), {
1055
1055
  key: 1,
1056
1056
  vnode: t.customRender,
1057
1057
  data: Z()
1058
- }, null, 8, ["vnode", "data"])) : (P(), F("div", {
1058
+ }, null, 8, ["vnode", "data"])) : (R(), z("div", {
1059
1059
  key: 2,
1060
1060
  class: Re([
1061
1061
  "mx-context-menu-item",
1062
- N(f) ? "disabled" : "",
1063
- C.value ? "keyboard-focus" : "",
1062
+ K(f) ? "disabled" : "",
1063
+ b.value ? "keyboard-focus" : "",
1064
1064
  t.customClass ? " " + t.customClass : "",
1065
- I.value ? "open" : ""
1065
+ j.value ? "open" : ""
1066
1066
  ]),
1067
- onClick: A,
1067
+ onClick: F,
1068
1068
  onMouseenter: H
1069
1069
  }, [
1070
- xe(E.$slots, "default", {}, () => [
1070
+ Se(N.$slots, "default", {}, () => [
1071
1071
  ue("div", Kl, [
1072
1072
  ue("div", {
1073
1073
  class: Re([
@@ -1075,68 +1075,68 @@ const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row"
1075
1075
  t.preserveIconWidth ? "preserve-width" : ""
1076
1076
  ])
1077
1077
  }, [
1078
- xe(E.$slots, "icon", {}, () => [
1079
- N(O)("itemIconRender") ? (P(), he(N(Ve), {
1078
+ Se(N.$slots, "icon", {}, () => [
1079
+ K(P)("itemIconRender") ? (R(), he(K(Ve), {
1080
1080
  key: 0,
1081
- vnode: () => N(k)("itemIconRender", Z())
1082
- }, null, 8, ["vnode"])) : typeof t.svgIcon == "string" && t.svgIcon ? (P(), F("svg", ct({
1081
+ vnode: () => K(k)("itemIconRender", Z())
1082
+ }, null, 8, ["vnode"])) : typeof t.svgIcon == "string" && t.svgIcon ? (R(), z("svg", ct({
1083
1083
  key: 1,
1084
1084
  class: "icon svg"
1085
1085
  }, t.svgProps), [
1086
1086
  ue("use", { "xlink:href": t.svgIcon }, null, 8, Ul)
1087
- ], 16)) : typeof N(p) != "string" ? (P(), he(N(Ve), {
1087
+ ], 16)) : typeof K(v) != "string" ? (R(), he(K(Ve), {
1088
1088
  key: 2,
1089
- vnode: N(p),
1090
- data: N(p)
1091
- }, null, 8, ["vnode", "data"])) : typeof N(p) == "string" && N(p) !== "" ? (P(), F("i", {
1089
+ vnode: K(v),
1090
+ data: K(v)
1091
+ }, null, 8, ["vnode", "data"])) : typeof K(v) == "string" && K(v) !== "" ? (R(), z("i", {
1092
1092
  key: 3,
1093
- class: Re(N(p) + " icon " + N(a) + " " + N(W).iconFontClass)
1093
+ class: Re(K(v) + " icon " + K(i) + " " + K(L).iconFontClass)
1094
1094
  }, null, 2)) : ne("", !0)
1095
1095
  ]),
1096
- t.checked ? xe(E.$slots, "check", { key: 0 }, () => [
1097
- N(O)("itemCheckRender") ? (P(), he(N(Ve), {
1096
+ t.checked ? Se(N.$slots, "check", { key: 0 }, () => [
1097
+ K(P)("itemCheckRender") ? (R(), he(K(Ve), {
1098
1098
  key: 0,
1099
- vnode: () => N(k)("itemCheckRender", Z())
1099
+ vnode: () => K(k)("itemCheckRender", Z())
1100
1100
  }, null, 8, ["vnode"])) : ne("", !0),
1101
1101
  Oe(Tl)
1102
1102
  ]) : ne("", !0)
1103
1103
  ], 2),
1104
- xe(E.$slots, "label", {}, () => [
1105
- N(O)("itemLabelRender") ? (P(), he(N(Ve), {
1104
+ Se(N.$slots, "label", {}, () => [
1105
+ K(P)("itemLabelRender") ? (R(), he(K(Ve), {
1106
1106
  key: 0,
1107
- vnode: () => N(k)("itemLabelRender", Z())
1108
- }, null, 8, ["vnode"])) : typeof N(y) == "string" ? (P(), F("span", Gl, De(N(y)), 1)) : (P(), he(N(Ve), {
1107
+ vnode: () => K(k)("itemLabelRender", Z())
1108
+ }, null, 8, ["vnode"])) : typeof K(C) == "string" ? (R(), z("span", Gl, De(K(C)), 1)) : (R(), he(K(Ve), {
1109
1109
  key: 2,
1110
- vnode: N(y),
1111
- data: N(y)
1110
+ vnode: K(C),
1111
+ data: K(C)
1112
1112
  }, null, 8, ["vnode", "data"]))
1113
1113
  ])
1114
1114
  ]),
1115
1115
  ue("div", Xl, [
1116
- N(w) || E.$slots.shortcut ? xe(E.$slots, "shortcut", { key: 0 }, () => [
1117
- N(O)("itemShortcutRender") ? (P(), he(N(Ve), {
1116
+ K(V) || N.$slots.shortcut ? Se(N.$slots, "shortcut", { key: 0 }, () => [
1117
+ K(P)("itemShortcutRender") ? (R(), he(K(Ve), {
1118
1118
  key: 0,
1119
- vnode: () => N(k)("itemShortcutRender", Z())
1119
+ vnode: () => K(k)("itemShortcutRender", Z())
1120
1120
  }, null, 8, ["vnode"])) : ne("", !0),
1121
- ue("span", Yl, De(N(w)), 1)
1121
+ ue("span", Yl, De(K(V)), 1)
1122
1122
  ]) : ne("", !0),
1123
- N(_) ? xe(E.$slots, "rightArrow", { key: 1 }, () => [
1124
- N(O)("itemRightArrowRender") ? (P(), he(N(Ve), {
1123
+ K(p) ? Se(N.$slots, "rightArrow", { key: 1 }, () => [
1124
+ K(P)("itemRightArrowRender") ? (R(), he(K(Ve), {
1125
1125
  key: 0,
1126
- vnode: () => N(k)("itemRightArrowRender", Z())
1126
+ vnode: () => K(k)("itemRightArrowRender", Z())
1127
1127
  }, null, 8, ["vnode"])) : ne("", !0),
1128
1128
  Oe(Nl)
1129
1129
  ]) : ne("", !0)
1130
1130
  ])
1131
1131
  ])
1132
1132
  ], 34)),
1133
- xe(E.$slots, "submenu", {
1134
- context: b,
1135
- show: I.value
1133
+ Se(N.$slots, "submenu", {
1134
+ context: m,
1135
+ show: j.value
1136
1136
  })
1137
1137
  ], 512));
1138
1138
  }
1139
- }), ql = Le({
1139
+ }), ql = Pe({
1140
1140
  name: "ContextMenuSperator",
1141
1141
  components: {
1142
1142
  VNodeRender: Ve
@@ -1152,14 +1152,14 @@ const Nl = /* @__PURE__ */ pt(Bl, [["render", zl]]), Kl = { class: "mx-item-row"
1152
1152
  key: 1,
1153
1153
  class: "mx-context-menu-item-sperator mx-context-no-clickable"
1154
1154
  };
1155
- function Jl(t, c, o, e, i, r) {
1155
+ function Jl(t, c, o, e, s, r) {
1156
1156
  const n = Je("VNodeRender");
1157
- return t.globalHasSlot("separatorRender") ? (P(), he(n, {
1157
+ return t.globalHasSlot("separatorRender") ? (R(), he(n, {
1158
1158
  key: 0,
1159
1159
  vnode: () => t.globalRenderSlot("separatorRender", {})
1160
- }, null, 8, ["vnode"])) : (P(), F("div", Zl));
1160
+ }, null, 8, ["vnode"])) : (R(), z("div", Zl));
1161
1161
  }
1162
- const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1162
+ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Pe({
1163
1163
  __name: "ContextSubMenu",
1164
1164
  props: {
1165
1165
  /**
@@ -1219,231 +1219,231 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1219
1219
  },
1220
1220
  emits: ["closeAnimFinished"],
1221
1221
  setup(t, { expose: c, emit: o }) {
1222
- const e = t, i = o, r = g(!1), n = me("globalGetMenuHostId", ""), l = me("menuContext"), f = me("globalOptions");
1222
+ const e = t, s = o, r = y(!1), n = me("globalGetMenuHostId", ""), l = me("menuContext"), f = me("globalOptions");
1223
1223
  me("globalHasSlot"), me("globalRenderSlot");
1224
- const u = g("UnknowOrRoot"), y = me("MenuItemName", u), { zIndex: p, getParentWidth: a, getParentHeight: _, getZoom: w } = l, { adjustPosition: j } = Ee(e), I = g(), C = g(), M = g(), W = [], O = me("globalSetCurrentSubMenu"), k = [];
1225
- let s = null, S = 0;
1226
- function V() {
1227
- s && s.blur();
1224
+ const a = y("UnknowOrRoot"), C = me("MenuItemName", a), { zIndex: v, getParentWidth: i, getParentHeight: p, getZoom: V } = l, { adjustPosition: W } = Ee(e), j = y(), b = y(), M = y(), L = [], P = me("globalSetCurrentSubMenu"), k = [];
1225
+ let u = null, _ = 0;
1226
+ function I() {
1227
+ u && u.blur();
1228
1228
  }
1229
- function b(K, D) {
1230
- if (K) {
1231
- for (let G = D !== void 0 ? D : 0; G < k.length; G++)
1229
+ function m(x, O) {
1230
+ if (x) {
1231
+ for (let G = O !== void 0 ? O : 0; G < k.length; G++)
1232
1232
  if (!k[G].isDisabledOrHidden()) {
1233
- A(G);
1233
+ F(G);
1234
1234
  break;
1235
1235
  }
1236
1236
  } else
1237
- for (let G = D !== void 0 ? D : k.length - 1; G >= 0; G--)
1237
+ for (let G = O !== void 0 ? O : k.length - 1; G >= 0; G--)
1238
1238
  if (!k[G].isDisabledOrHidden()) {
1239
- A(G);
1239
+ F(G);
1240
1240
  break;
1241
1241
  }
1242
1242
  }
1243
- function A(K) {
1244
- if (s && V(), K !== void 0 && (s = k[Math.max(0, Math.min(K, k.length - 1))]), !s)
1243
+ function F(x) {
1244
+ if (u && I(), x !== void 0 && (u = k[Math.max(0, Math.min(x, k.length - 1))]), !u)
1245
1245
  return;
1246
- s.focus();
1247
- const D = s.getElement();
1248
- D && D.scrollIntoView({
1246
+ u.focus();
1247
+ const O = u.getElement();
1248
+ O && O.scrollIntoView({
1249
1249
  behavior: "auto",
1250
1250
  block: "nearest",
1251
1251
  inline: "nearest"
1252
1252
  });
1253
1253
  }
1254
1254
  function H() {
1255
- O(x);
1255
+ P(S);
1256
1256
  }
1257
- const x = {
1257
+ const S = {
1258
1258
  el: M,
1259
- name: y,
1259
+ name: C,
1260
1260
  isTopLevel: () => l.getParentContext() === null,
1261
1261
  closeSelfAndActiveParent: () => {
1262
- const K = d.getParentContext();
1263
- if (K) {
1264
- K.closeOtherSubMenu();
1265
- const D = K.getSubMenuInstanceContext();
1266
- if (D)
1267
- return D.focusCurrentItem(), !0;
1262
+ const x = d.getParentContext();
1263
+ if (x) {
1264
+ x.closeOtherSubMenu();
1265
+ const O = x.getSubMenuInstanceContext();
1266
+ if (O)
1267
+ return O.focusCurrentItem(), !0;
1268
1268
  }
1269
1269
  return !1;
1270
1270
  },
1271
1271
  closeCurrentSubMenu: () => {
1272
- var K;
1273
- return (K = d.getParentContext()) == null ? void 0 : K.closeOtherSubMenu();
1272
+ var x;
1273
+ return (x = d.getParentContext()) == null ? void 0 : x.closeOtherSubMenu();
1274
1274
  },
1275
- moveCurrentItemFirst: () => b(!0),
1276
- moveCurrentItemLast: () => b(!1),
1277
- moveCurrentItemDown: () => b(!0, s ? k.indexOf(s) + 1 : 0),
1278
- moveCurrentItemUp: () => b(!1, s ? k.indexOf(s) - 1 : 0),
1279
- focusCurrentItem: () => A(),
1280
- openCurrentItemSubMenu: () => s ? s?.showSubMenu() : !1,
1281
- triggerCurrentItemClick: (K) => s?.click(K)
1275
+ moveCurrentItemFirst: () => m(!0),
1276
+ moveCurrentItemLast: () => m(!1),
1277
+ moveCurrentItemDown: () => m(!0, u ? k.indexOf(u) + 1 : 0),
1278
+ moveCurrentItemUp: () => m(!1, u ? k.indexOf(u) - 1 : 0),
1279
+ focusCurrentItem: () => F(),
1280
+ openCurrentItemSubMenu: () => u ? u?.showSubMenu() : !1,
1281
+ triggerCurrentItemClick: (x) => u?.click(x)
1282
1282
  };
1283
- let Z = !1, E = !1;
1283
+ let Z = !1, N = !1;
1284
1284
  const d = {
1285
- zIndex: p + 1,
1285
+ zIndex: v + 1,
1286
1286
  container: l.container,
1287
1287
  adjustPadding: f.value.adjustPadding || Me.defaultAdjustPadding,
1288
1288
  getParentWidth: () => {
1289
- var K;
1290
- return ((K = M.value) == null ? void 0 : K.offsetWidth) || 0;
1289
+ var x;
1290
+ return ((x = M.value) == null ? void 0 : x.offsetWidth) || 0;
1291
1291
  },
1292
1292
  getParentHeight: () => {
1293
- var K;
1294
- return ((K = M.value) == null ? void 0 : K.offsetHeight) || 0;
1293
+ var x;
1294
+ return ((x = M.value) == null ? void 0 : x.offsetHeight) || 0;
1295
1295
  },
1296
- getPositon: () => [L.value.x, L.value.y],
1296
+ getPositon: () => [D.value.x, D.value.y],
1297
1297
  getZoom: () => f.value.zoom || Me.defaultZoom,
1298
- addOpenedSubMenu(K) {
1299
- W.push(K);
1298
+ addOpenedSubMenu(x) {
1299
+ L.push(x);
1300
1300
  },
1301
1301
  closeOtherSubMenu() {
1302
- W.forEach((K) => K()), W.splice(0, W.length), O(x);
1302
+ L.forEach((x) => x()), L.splice(0, L.length), P(S);
1303
1303
  },
1304
1304
  checkCloseOtherSubMenuTimeOut() {
1305
- return S ? (clearTimeout(S), S = 0, !0) : !1;
1305
+ return _ ? (clearTimeout(_), _ = 0, !0) : !1;
1306
1306
  },
1307
1307
  closeOtherSubMenuWithTimeOut() {
1308
- S = setTimeout(() => {
1309
- S = 0, this.closeOtherSubMenu();
1308
+ _ = setTimeout(() => {
1309
+ _ = 0, this.closeOtherSubMenu();
1310
1310
  }, 200);
1311
1311
  },
1312
- addChildMenuItem: (K, D) => {
1313
- D === void 0 ? k.push(K) : k.splice(D, 0, K);
1312
+ addChildMenuItem: (x, O) => {
1313
+ O === void 0 ? k.push(x) : k.splice(O, 0, x);
1314
1314
  },
1315
- removeChildMenuItem: (K) => {
1316
- k.splice(k.indexOf(K), 1), K.getSubMenuInstance = () => {
1315
+ removeChildMenuItem: (x) => {
1316
+ k.splice(k.indexOf(x), 1), x.getSubMenuInstance = () => {
1317
1317
  };
1318
1318
  },
1319
- markActiveMenuItem: (K, D = !1) => {
1320
- V(), s = K, D && A();
1319
+ markActiveMenuItem: (x, O = !1) => {
1320
+ I(), u = x, O && F();
1321
1321
  },
1322
1322
  markThisOpenedByKeyBoard: () => {
1323
1323
  Z = !0;
1324
1324
  },
1325
1325
  isOpenedByKeyBoardFlag: () => Z ? (Z = !1, !0) : !1,
1326
- isMenuItemDataCollectedFlag: () => E,
1326
+ isMenuItemDataCollectedFlag: () => N,
1327
1327
  getElement: () => M.value || null,
1328
1328
  getParentContext: () => l,
1329
- getSubMenuInstanceContext: () => x
1329
+ getSubMenuInstanceContext: () => S
1330
1330
  };
1331
1331
  ke("menuContext", d);
1332
- const v = {
1333
- getChildItem: (K) => k[K],
1334
- getMenuDimensions: () => C.value ? {
1335
- width: C.value.offsetWidth,
1336
- height: C.value.offsetHeight
1332
+ const g = {
1333
+ getChildItem: (x) => k[x],
1334
+ getMenuDimensions: () => b.value ? {
1335
+ width: b.value.offsetWidth,
1336
+ height: b.value.offsetHeight
1337
1337
  } : { width: 0, height: 0 },
1338
- getSubmenuRoot: () => C.value,
1338
+ getSubmenuRoot: () => b.value,
1339
1339
  getMenu: () => M.value,
1340
1340
  getScrollValue: () => {
1341
- var K, D;
1342
- return ((D = (K = I.value) == null ? void 0 : K.getScrollContainer()) == null ? void 0 : D.scrollTop) || 0;
1341
+ var x, O;
1342
+ return ((O = (x = j.value) == null ? void 0 : x.getScrollContainer()) == null ? void 0 : O.scrollTop) || 0;
1343
1343
  },
1344
- setScrollValue: (K) => {
1345
- var D;
1346
- return (D = I.value) == null ? void 0 : D.scrollTo(0, K);
1344
+ setScrollValue: (x) => {
1345
+ var O;
1346
+ return (O = j.value) == null ? void 0 : O.scrollTo(0, x);
1347
1347
  },
1348
- getScrollHeight: () => B.value,
1348
+ getScrollHeight: () => A.value,
1349
1349
  adjustPosition: () => {
1350
- ie();
1350
+ se();
1351
1351
  },
1352
- getMaxHeight: () => z.value,
1353
- getPosition: () => L.value,
1354
- setPosition: (K, D) => {
1355
- L.value.x = K, L.value.y = D;
1352
+ getMaxHeight: () => E.value,
1353
+ getPosition: () => D.value,
1354
+ setPosition: (x, O) => {
1355
+ D.value.x = x, D.value.y = O;
1356
1356
  }
1357
- }, h = me("menuItemInstance", void 0);
1358
- h && (h.getSubMenuInstance = () => v);
1359
- const B = g(0), z = g(0), X = g(!1), L = g({ x: 0, y: 0 });
1360
- function ie() {
1357
+ }, w = me("menuItemInstance", void 0);
1358
+ w && (w.getSubMenuInstance = () => g);
1359
+ const A = y(0), E = y(0), X = y(!1), D = y({ x: 0, y: 0 });
1360
+ function se() {
1361
1361
  we(() => {
1362
- const K = M.value, D = C.value;
1363
- if (K && D && I.value) {
1364
- const { container: G } = l, R = a?.() ?? 0, ce = _?.() ?? 0, be = getComputedStyle(D), ve = parseFloat(be.paddingLeft), Pe = parseFloat(be.paddingTop), Te = ce > 0 ? Pe : 0, Qe = document.documentElement.scrollHeight / w(), $e = document.documentElement.scrollWidth / w(), et = Math.min($e, G.offsetWidth), tt = Math.min(Qe, G.offsetHeight);
1365
- let ze = Ye(K, G), Be = Xe(K, G);
1366
- e.direction.includes("l") ? L.value.x -= K.offsetWidth + ve : e.direction.includes("r") ? L.value.x += R + ve : (L.value.x += R / 2, L.value.x -= (K.offsetWidth + ve) / 2), e.direction.includes("t") ? L.value.y -= (K.offsetHeight + Pe * 2) / w() : e.direction.includes("b") ? L.value.y -= Pe / w() : L.value.y -= (K.offsetHeight + Pe) / 2 / w(), we(() => {
1367
- var U, se;
1368
- ze = Ye(K, G), Be = Xe(K, G);
1369
- const pe = ((se = (U = I.value) == null ? void 0 : U.getScrollContainer()) == null ? void 0 : se.scrollHeight) || 0, ge = e.maxHeight;
1370
- B.value = e.maxHeight ? Math.min(pe, e.maxHeight) : pe;
1371
- const Ae = ze + K.offsetWidth - et, lt = Be + B.value + Te * 2 - tt;
1372
- if (X.value = lt > 0, j.value && Ae > 0) {
1373
- const Ne = R + K.offsetWidth - ve, Ke = ze;
1374
- Ne > Ke ? L.value.x -= Ke : L.value.x -= Ne;
1362
+ const x = M.value, O = b.value;
1363
+ if (x && O && j.value) {
1364
+ const { container: G } = l, T = i?.() ?? 0, ce = p?.() ?? 0, xe = getComputedStyle(O), ve = parseFloat(xe.paddingLeft), Ie = parseFloat(xe.paddingTop), Te = ce > 0 ? Ie : 0, Qe = document.documentElement.scrollHeight / V(), $e = document.documentElement.scrollWidth / V(), et = Math.min($e, G.offsetWidth), tt = Math.min(Qe, G.offsetHeight);
1365
+ let ze = Ye(x, G), Be = Xe(x, G);
1366
+ e.direction.includes("l") ? D.value.x -= x.offsetWidth + ve : e.direction.includes("r") ? D.value.x += T + ve : (D.value.x += T / 2, D.value.x -= (x.offsetWidth + ve) / 2), e.direction.includes("t") ? D.value.y -= (x.offsetHeight + Ie * 2) / V() : e.direction.includes("b") ? D.value.y -= Ie / V() : D.value.y -= (x.offsetHeight + Ie) / 2 / V(), we(() => {
1367
+ var U, ie;
1368
+ ze = Ye(x, G), Be = Xe(x, G);
1369
+ const pe = ((ie = (U = j.value) == null ? void 0 : U.getScrollContainer()) == null ? void 0 : ie.scrollHeight) || 0, ye = e.maxHeight;
1370
+ A.value = e.maxHeight ? Math.min(pe, e.maxHeight) : pe;
1371
+ const Ae = ze + x.offsetWidth - et, lt = Be + A.value + Te * 2 - tt;
1372
+ if (X.value = lt > 0, W.value && Ae > 0) {
1373
+ const Ne = T + x.offsetWidth - ve, Ke = ze;
1374
+ Ne > Ke ? D.value.x -= Ke : D.value.x -= Ne;
1375
1375
  }
1376
1376
  if (X.value) {
1377
- if (j.value) {
1377
+ if (W.value) {
1378
1378
  const Ne = lt, Ke = Be;
1379
- Ne > Ke ? L.value.y -= Ke - Te : L.value.y -= Ne - Te;
1379
+ Ne > Ke ? D.value.y -= Ke - Te : D.value.y -= Ne - Te;
1380
1380
  }
1381
- z.value = tt - (L.value.y + Pe);
1381
+ E.value = tt - (D.value.y + Ie);
1382
1382
  } else
1383
- z.value = ge || 0;
1383
+ E.value = ye || 0;
1384
1384
  });
1385
1385
  }
1386
1386
  });
1387
1387
  }
1388
- function _e() {
1389
- var K;
1390
- const D = (K = e.parentMenuItemContext) == null ? void 0 : K.getElement();
1391
- if (D) {
1392
- const G = Ye(D, l.container), R = Xe(D, l.container);
1393
- L.value.x = G, L.value.y = R;
1388
+ function ge() {
1389
+ var x;
1390
+ const O = (x = e.parentMenuItemContext) == null ? void 0 : x.getElement();
1391
+ if (O) {
1392
+ const G = Ye(O, l.container), T = Xe(O, l.container);
1393
+ D.value.x = G, D.value.y = T;
1394
1394
  } else {
1395
- const [G, R] = l.getPositon();
1396
- L.value.x = G, L.value.y = R;
1395
+ const [G, T] = l.getPositon();
1396
+ D.value.x = G, D.value.y = T;
1397
1397
  }
1398
1398
  we(() => {
1399
1399
  var G;
1400
- O(x), (G = M.value) == null || G.focus({ preventScroll: !0 }), l.isOpenedByKeyBoardFlag() && we(() => b(!0)), E = !0;
1401
- }), ie();
1400
+ P(S), (G = M.value) == null || G.focus({ preventScroll: !0 }), l.isOpenedByKeyBoardFlag() && we(() => m(!0)), N = !0;
1401
+ }), se();
1402
1402
  }
1403
- return T(() => e.show, (K) => {
1404
- K && _e();
1403
+ return B(() => e.show, (x) => {
1404
+ x && ge();
1405
1405
  }), q(() => {
1406
- r.value = !0, e.show ? _e() : ie();
1406
+ r.value = !0, e.show ? ge() : se();
1407
1407
  }), J(() => {
1408
- r.value = !1, h && (h.getSubMenuInstance = () => {
1408
+ r.value = !1, w && (w.getSubMenuInstance = () => {
1409
1409
  });
1410
- }), c(v), (K, D) => {
1410
+ }), c(g), (x, O) => {
1411
1411
  const G = Je("ContextSubMenu", !0);
1412
- return r.value ? (P(), he(It, {
1412
+ return r.value ? (R(), he(It, {
1413
1413
  key: 0,
1414
- to: `#${N(n)}`
1414
+ to: `#${K(n)}`
1415
1415
  }, [
1416
- Oe(At, ct({ appear: "" }, N(f).menuTransitionProps || {
1416
+ Oe(At, ct({ appear: "" }, K(f).menuTransitionProps || {
1417
1417
  duration: 10
1418
1418
  }, {
1419
- onAfterLeave: D[0] || (D[0] = (R) => i("closeAnimFinished"))
1419
+ onAfterLeave: O[0] || (O[0] = (T) => s("closeAnimFinished"))
1420
1420
  }), {
1421
1421
  default: He(() => [
1422
- t.show ? (P(), F("div", ct({
1422
+ t.show ? (R(), z("div", ct({
1423
1423
  key: 0,
1424
1424
  ref_key: "submenuRoot",
1425
- ref: C
1426
- }, K.$attrs, {
1425
+ ref: b
1426
+ }, x.$attrs, {
1427
1427
  class: [
1428
1428
  "mx-context-menu",
1429
- N(f).customClass ? N(f).customClass : "",
1430
- N(f).theme ?? ""
1429
+ K(f).customClass ? K(f).customClass : "",
1430
+ K(f).theme ?? ""
1431
1431
  ],
1432
1432
  style: {
1433
- maxWidth: t.maxWidth ? N(_t)(t.maxWidth) : `${N(Me).defaultMaxWidth}px`,
1434
- minWidth: t.minWidth ? N(_t)(t.minWidth) : `${N(Me).defaultMinWidth}px`,
1435
- zIndex: N(p),
1436
- left: `${L.value.x}px`,
1437
- top: `${L.value.y}px`
1433
+ maxWidth: t.maxWidth ? K(_t)(t.maxWidth) : `${K(Me).defaultMaxWidth}px`,
1434
+ minWidth: t.minWidth ? K(_t)(t.minWidth) : `${K(Me).defaultMinWidth}px`,
1435
+ zIndex: K(v),
1436
+ left: `${D.value.x}px`,
1437
+ top: `${D.value.y}px`
1438
1438
  },
1439
1439
  "data-type": "ContextSubMenu",
1440
1440
  onClick: H
1441
1441
  }), [
1442
- Oe(N(Wl), {
1442
+ Oe(K(Wl), {
1443
1443
  ref_key: "scrollRectRef",
1444
- ref: I,
1444
+ ref: j,
1445
1445
  scroll: "vertical",
1446
- maxHeight: z.value,
1446
+ maxHeight: E.value,
1447
1447
  containerClass: "mx-context-menu-scroll"
1448
1448
  }, {
1449
1449
  default: He(() => [
@@ -1452,56 +1452,56 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1452
1452
  ref_key: "menu",
1453
1453
  ref: M
1454
1454
  }, [
1455
- xe(K.$slots, "default", {}, () => [
1456
- (P(!0), F(it, null, vt(t.items, (R, ce) => (P(), F(it, { key: ce }, [
1457
- R.hidden !== !0 && R.divided === "up" ? (P(), he(qe, { key: 0 })) : ne("", !0),
1458
- R.hidden !== !0 && R.divided === "self" ? (P(), he(qe, { key: 1 })) : (P(), he(ht, {
1455
+ Se(x.$slots, "default", {}, () => [
1456
+ (R(!0), z(it, null, vt(t.items, (T, ce) => (R(), z(it, { key: ce }, [
1457
+ T.hidden !== !0 && T.divided === "up" ? (R(), he(qe, { key: 0 })) : ne("", !0),
1458
+ T.hidden !== !0 && T.divided === "self" ? (R(), he(qe, { key: 1 })) : (R(), he(ht, {
1459
1459
  key: 2,
1460
- clickHandler: R.onClick ? (be) => R.onClick(be) : void 0,
1461
- disabled: typeof R.disabled == "object" ? R.disabled.value : R.disabled,
1462
- hidden: typeof R.hidden == "object" ? R.hidden.value : R.hidden,
1463
- icon: R.icon,
1464
- iconFontClass: R.iconFontClass,
1465
- svgIcon: R.svgIcon,
1466
- svgProps: R.svgProps,
1467
- label: R.label,
1468
- customRender: R.customRender,
1469
- customClass: R.customClass,
1470
- checked: typeof R.checked == "object" ? R.checked.value : R.checked,
1471
- shortcut: R.shortcut,
1472
- clickClose: R.clickClose,
1473
- clickableWhenHasChildren: R.clickableWhenHasChildren,
1474
- preserveIconWidth: R.preserveIconWidth !== void 0 ? R.preserveIconWidth : N(f).preserveIconWidth,
1475
- showRightArrow: R.children && R.children.length > 0,
1476
- hasChildren: R.children && R.children.length > 0,
1477
- rawMenuItem: R,
1478
- onSubMenuOpen: (be) => {
1460
+ clickHandler: T.onClick ? (xe) => T.onClick(xe) : void 0,
1461
+ disabled: typeof T.disabled == "object" ? T.disabled.value : T.disabled,
1462
+ hidden: typeof T.hidden == "object" ? T.hidden.value : T.hidden,
1463
+ icon: T.icon,
1464
+ iconFontClass: T.iconFontClass,
1465
+ svgIcon: T.svgIcon,
1466
+ svgProps: T.svgProps,
1467
+ label: T.label,
1468
+ customRender: T.customRender,
1469
+ customClass: T.customClass,
1470
+ checked: typeof T.checked == "object" ? T.checked.value : T.checked,
1471
+ shortcut: T.shortcut,
1472
+ clickClose: T.clickClose,
1473
+ clickableWhenHasChildren: T.clickableWhenHasChildren,
1474
+ preserveIconWidth: T.preserveIconWidth !== void 0 ? T.preserveIconWidth : K(f).preserveIconWidth,
1475
+ showRightArrow: T.children && T.children.length > 0,
1476
+ hasChildren: T.children && T.children.length > 0,
1477
+ rawMenuItem: T,
1478
+ onSubMenuOpen: (xe) => {
1479
1479
  var ve;
1480
- return (ve = R.onSubMenuOpen) == null ? void 0 : ve.call(R, be);
1480
+ return (ve = T.onSubMenuOpen) == null ? void 0 : ve.call(T, xe);
1481
1481
  },
1482
- onSubMenuClose: (be) => {
1482
+ onSubMenuClose: (xe) => {
1483
1483
  var ve;
1484
- return (ve = R.onSubMenuClose) == null ? void 0 : ve.call(R, be);
1484
+ return (ve = T.onSubMenuClose) == null ? void 0 : ve.call(T, xe);
1485
1485
  }
1486
1486
  }, Wt({ _: 2 }, [
1487
- R.children && R.children.length > 0 ? {
1487
+ T.children && T.children.length > 0 ? {
1488
1488
  name: "submenu",
1489
- fn: He(({ context: be, show: ve }) => [
1489
+ fn: He(({ context: xe, show: ve }) => [
1490
1490
  Oe(G, {
1491
1491
  show: ve,
1492
- parentMenuItemContext: be,
1493
- items: R.children,
1494
- maxWidth: R.maxWidth,
1495
- minWidth: R.minWidth,
1496
- maxHeight: R.maxHeight,
1497
- adjustPosition: R.adjustSubMenuPosition !== void 0 ? R.adjustSubMenuPosition : N(f).adjustPosition,
1498
- direction: R.direction !== void 0 ? R.direction : N(f).direction
1492
+ parentMenuItemContext: xe,
1493
+ items: T.children,
1494
+ maxWidth: T.maxWidth,
1495
+ minWidth: T.minWidth,
1496
+ maxHeight: T.maxHeight,
1497
+ adjustPosition: T.adjustSubMenuPosition !== void 0 ? T.adjustSubMenuPosition : K(f).adjustPosition,
1498
+ direction: T.direction !== void 0 ? T.direction : K(f).direction
1499
1499
  }, null, 8, ["show", "parentMenuItemContext", "items", "maxWidth", "minWidth", "maxHeight", "adjustPosition", "direction"])
1500
1500
  ]),
1501
1501
  key: "0"
1502
1502
  } : void 0
1503
1503
  ]), 1032, ["clickHandler", "disabled", "hidden", "icon", "iconFontClass", "svgIcon", "svgProps", "label", "customRender", "customClass", "checked", "shortcut", "clickClose", "clickableWhenHasChildren", "preserveIconWidth", "showRightArrow", "hasChildren", "rawMenuItem", "onSubMenuOpen", "onSubMenuClose"])),
1504
- R.hidden !== !0 && (R.divided === "down" || R.divided === !0) ? (P(), he(qe, { key: 3 })) : ne("", !0)
1504
+ T.hidden !== !0 && (T.divided === "down" || T.divided === !0) ? (R(), he(qe, { key: 3 })) : ne("", !0)
1505
1505
  ], 64))), 128))
1506
1506
  ])
1507
1507
  ], 512)
@@ -1515,7 +1515,7 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1515
1515
  ], 8, ["to"])) : ne("", !0);
1516
1516
  };
1517
1517
  }
1518
- }), Tt = /* @__PURE__ */ Le({
1518
+ }), Tt = /* @__PURE__ */ Pe({
1519
1519
  __name: "ContextSubMenuWrapper",
1520
1520
  props: {
1521
1521
  /**
@@ -1549,100 +1549,100 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1549
1549
  },
1550
1550
  emits: ["close", "closeAnimFinished"],
1551
1551
  setup(t, { expose: c, emit: o }) {
1552
- const e = t, i = o, r = jt(), n = g(), {
1552
+ const e = t, s = o, r = jt(), n = y(), {
1553
1553
  options: l,
1554
1554
  show: f,
1555
- container: u
1555
+ container: a
1556
1556
  } = Ee(e);
1557
1557
  q(() => {
1558
- f.value && a();
1558
+ f.value && i();
1559
1559
  }), J(() => {
1560
- I();
1561
- }), T(f, (s) => {
1562
- s ? a() : (St(y), I());
1560
+ j();
1561
+ }), B(f, (u) => {
1562
+ u ? i() : (St(C), j());
1563
1563
  });
1564
- const y = {
1565
- closeMenu: _,
1566
- isClosed: w,
1564
+ const C = {
1565
+ closeMenu: p,
1566
+ isClosed: V,
1567
1567
  getMenuRef: () => n.value,
1568
1568
  getMenuDimensions: () => {
1569
- var s;
1570
- return ((s = n.value) == null ? void 0 : s.getMenuDimensions()) ?? { width: 0, height: 0 };
1569
+ var u;
1570
+ return ((u = n.value) == null ? void 0 : u.getMenuDimensions()) ?? { width: 0, height: 0 };
1571
1571
  }
1572
1572
  };
1573
- let p = !1;
1574
- function a() {
1575
- j(), bl(y);
1573
+ let v = !1;
1574
+ function i() {
1575
+ W(), bl(C);
1576
1576
  }
1577
- function _(s) {
1578
- p = !0, i("close", s), l.value.menuTransitionProps || i("closeAnimFinished"), St(y);
1577
+ function p(u) {
1578
+ v = !0, s("close", u), l.value.menuTransitionProps || s("closeAnimFinished"), St(C);
1579
1579
  }
1580
- function w() {
1581
- return p;
1580
+ function V() {
1581
+ return v;
1582
1582
  }
1583
- function j() {
1583
+ function W() {
1584
1584
  setTimeout(() => {
1585
- document.addEventListener("click", O, !0), document.addEventListener("contextmenu", O, !0), document.addEventListener("scroll", W, !0), !e.isFullScreenContainer && u.value && u.value.addEventListener("scroll", W, !0), l.value.keyboardControl !== !1 && document.addEventListener("keydown", M, !0);
1585
+ document.addEventListener("click", P, !0), document.addEventListener("contextmenu", P, !0), document.addEventListener("scroll", L, !0), !e.isFullScreenContainer && a.value && a.value.addEventListener("scroll", L, !0), l.value.keyboardControl !== !1 && document.addEventListener("keydown", M, !0);
1586
1586
  }, 50);
1587
1587
  }
1588
- function I() {
1589
- document.removeEventListener("contextmenu", O, !0), document.removeEventListener("click", O, !0), document.removeEventListener("scroll", W, !0), !e.isFullScreenContainer && u.value && u.value.removeEventListener("scroll", W, !0), l.value.keyboardControl !== !1 && document.removeEventListener("keydown", M, !0);
1588
+ function j() {
1589
+ document.removeEventListener("contextmenu", P, !0), document.removeEventListener("click", P, !0), document.removeEventListener("scroll", L, !0), !e.isFullScreenContainer && a.value && a.value.removeEventListener("scroll", L, !0), l.value.keyboardControl !== !1 && document.removeEventListener("keydown", M, !0);
1590
1590
  }
1591
- const C = g();
1592
- ke("globalSetCurrentSubMenu", (s) => C.value = s), ke("globalGetMenuHostId", u.value.id);
1593
- function M(s) {
1594
- var S, V, b, A, H, x, Z, E, d, v, h, B, z;
1591
+ const b = y();
1592
+ ke("globalSetCurrentSubMenu", (u) => b.value = u), ke("globalGetMenuHostId", a.value.id);
1593
+ function M(u) {
1594
+ var _, I, m, F, H, S, Z, N, d, g, w, A, E;
1595
1595
  let X = !0;
1596
- switch (s.key) {
1596
+ switch (u.key) {
1597
1597
  case "Escape": {
1598
- ((S = C.value) == null ? void 0 : S.isTopLevel()) === !1 ? (V = C.value) == null || V.closeCurrentSubMenu() : _();
1598
+ ((_ = b.value) == null ? void 0 : _.isTopLevel()) === !1 ? (I = b.value) == null || I.closeCurrentSubMenu() : p();
1599
1599
  break;
1600
1600
  }
1601
1601
  case "ArrowDown":
1602
- (b = C.value) == null || b.moveCurrentItemDown();
1602
+ (m = b.value) == null || m.moveCurrentItemDown();
1603
1603
  break;
1604
1604
  case "ArrowUp":
1605
- (A = C.value) == null || A.moveCurrentItemUp();
1605
+ (F = b.value) == null || F.moveCurrentItemUp();
1606
1606
  break;
1607
1607
  case "Home":
1608
- (H = C.value) == null || H.moveCurrentItemFirst();
1608
+ (H = b.value) == null || H.moveCurrentItemFirst();
1609
1609
  break;
1610
1610
  case "End":
1611
- (x = C.value) == null || x.moveCurrentItemLast();
1611
+ (S = b.value) == null || S.moveCurrentItemLast();
1612
1612
  break;
1613
1613
  case "ArrowLeft": {
1614
- (Z = C.value) != null && Z.closeSelfAndActiveParent() || (d = (E = l.value).onKeyFocusMoveLeft) == null || d.call(E);
1614
+ (Z = b.value) != null && Z.closeSelfAndActiveParent() || (d = (N = l.value).onKeyFocusMoveLeft) == null || d.call(N);
1615
1615
  break;
1616
1616
  }
1617
1617
  case "ArrowRight":
1618
- (v = C.value) != null && v.openCurrentItemSubMenu() || (B = (h = l.value).onKeyFocusMoveRight) == null || B.call(h);
1618
+ (g = b.value) != null && g.openCurrentItemSubMenu() || (A = (w = l.value).onKeyFocusMoveRight) == null || A.call(w);
1619
1619
  break;
1620
1620
  case "Enter":
1621
- (z = C.value) == null || z.triggerCurrentItemClick(s);
1621
+ (E = b.value) == null || E.triggerCurrentItemClick(u);
1622
1622
  break;
1623
1623
  default:
1624
1624
  X = !1;
1625
1625
  break;
1626
1626
  }
1627
- X && C.value && (s.stopPropagation(), s.preventDefault());
1627
+ X && b.value && (u.stopPropagation(), u.preventDefault());
1628
1628
  }
1629
- function W(s) {
1630
- l.value.closeWhenScroll !== !1 && k(s.target, null);
1629
+ function L(u) {
1630
+ l.value.closeWhenScroll !== !1 && k(u.target, null);
1631
1631
  }
1632
- function O(s) {
1633
- k(s.target, s);
1632
+ function P(u) {
1633
+ k(u.target, u);
1634
1634
  }
1635
- function k(s, S) {
1636
- for (var V, b; s; ) {
1637
- if (s.classList && s.classList.contains("mx-context-menu"))
1635
+ function k(u, _) {
1636
+ for (var I, m; u; ) {
1637
+ if (u.classList && u.classList.contains("mx-context-menu"))
1638
1638
  return;
1639
- s = s.parentNode;
1639
+ u = u.parentNode;
1640
1640
  }
1641
- S ? l.value.clickCloseOnOutside !== !1 ? (I(), _()) : (b = (V = l.value).onClickOnOutside) == null || b.call(V, S) : (I(), _());
1641
+ _ ? l.value.clickCloseOnOutside !== !1 ? (j(), p()) : (m = (I = l.value).onClickOnOutside) == null || m.call(I, _) : (j(), p());
1642
1642
  }
1643
- return ke("globalOptions", l), ke("globalCloseMenu", _), ke("globalIsFullScreenContainer", e.isFullScreenContainer), ke("globalHasSlot", (s) => r[s] !== void 0), ke("globalRenderSlot", (s, S) => xe(r, s, { ...S }, () => [ot("span", "Render slot failed")], !1)), ke("menuContext", {
1643
+ return ke("globalOptions", l), ke("globalCloseMenu", p), ke("globalIsFullScreenContainer", e.isFullScreenContainer), ke("globalHasSlot", (u) => r[u] !== void 0), ke("globalRenderSlot", (u, _) => Se(r, u, { ..._ }, () => [ot("span", "Render slot failed")], !1)), ke("menuContext", {
1644
1644
  zIndex: l.value.zIndex || Me.defaultZindex,
1645
- container: u.value,
1645
+ container: a.value,
1646
1646
  adjustPadding: { x: 0, y: 0 },
1647
1647
  getZoom: () => l.value.zoom || Me.defaultZoom,
1648
1648
  getParentWidth: () => 0,
@@ -1668,25 +1668,25 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1668
1668
  },
1669
1669
  isOpenedByKeyBoardFlag: () => !1,
1670
1670
  isMenuItemDataCollectedFlag: () => !1
1671
- }), c(y), (s, S) => (P(), he(mt, {
1671
+ }), c(C), (u, _) => (R(), he(mt, {
1672
1672
  ref_key: "submenuInstance",
1673
1673
  ref: n,
1674
- show: N(f),
1675
- items: N(l).items,
1676
- adjustPosition: N(l).adjustPosition,
1677
- maxWidth: N(l).maxWidth || N(Me).defaultMaxWidth,
1678
- minWidth: N(l).minWidth || N(Me).defaultMinWidth,
1679
- maxHeight: N(l).maxHeight,
1680
- direction: N(l).direction || N(Me).defaultDirection,
1681
- onCloseAnimFinished: S[0] || (S[0] = (V) => i("closeAnimFinished"))
1674
+ show: K(f),
1675
+ items: K(l).items,
1676
+ adjustPosition: K(l).adjustPosition,
1677
+ maxWidth: K(l).maxWidth || K(Me).defaultMaxWidth,
1678
+ minWidth: K(l).minWidth || K(Me).defaultMinWidth,
1679
+ maxHeight: K(l).maxHeight,
1680
+ direction: K(l).direction || K(Me).defaultDirection,
1681
+ onCloseAnimFinished: _[0] || (_[0] = (I) => s("closeAnimFinished"))
1682
1682
  }, {
1683
1683
  default: He(() => [
1684
- xe(s.$slots, "default")
1684
+ Se(u.$slots, "default")
1685
1685
  ]),
1686
1686
  _: 3
1687
1687
  }, 8, ["show", "items", "adjustPosition", "maxWidth", "minWidth", "maxHeight", "direction"]));
1688
1688
  }
1689
- }), Ql = /* @__PURE__ */ Le({
1689
+ }), Ql = /* @__PURE__ */ Pe({
1690
1690
  __name: "ContextMenu",
1691
1691
  props: {
1692
1692
  /**
@@ -1706,44 +1706,44 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1706
1706
  },
1707
1707
  emits: ["update:show", "close"],
1708
1708
  setup(t, { expose: c, emit: o }) {
1709
- const e = o, i = t, { options: r, show: n } = Ee(i), { isNew: l, container: f, eleId: u } = Ht(r.value), y = g(null), p = jt();
1710
- function a(_) {
1711
- var w, j;
1712
- e("update:show", !1), e("close"), (j = (w = r.value).onClose) == null || j.call(w, _);
1709
+ const e = o, s = t, { options: r, show: n } = Ee(s), { isNew: l, container: f, eleId: a } = Ht(r.value), C = y(null), v = jt();
1710
+ function i(p) {
1711
+ var V, W;
1712
+ e("update:show", !1), e("close"), (W = (V = r.value).onClose) == null || W.call(V, p);
1713
1713
  }
1714
1714
  return c({
1715
1715
  closeMenu: () => e("update:show", !1),
1716
1716
  isClosed: () => !n.value,
1717
1717
  getMenuRef: () => {
1718
- var _;
1719
- return (_ = y.value) == null ? void 0 : _.getMenuRef();
1718
+ var p;
1719
+ return (p = C.value) == null ? void 0 : p.getMenuRef();
1720
1720
  },
1721
1721
  getMenuDimensions: () => {
1722
- var _;
1723
- return ((_ = y.value) == null ? void 0 : _.getMenuDimensions()) ?? { width: 0, height: 0 };
1722
+ var p;
1723
+ return ((p = C.value) == null ? void 0 : p.getMenuDimensions()) ?? { width: 0, height: 0 };
1724
1724
  }
1725
- }), (_, w) => (P(), he(It, {
1726
- to: `#${N(u)}`
1725
+ }), (p, V) => (R(), he(It, {
1726
+ to: `#${K(a)}`
1727
1727
  }, [
1728
1728
  Oe(Tt, {
1729
1729
  ref_key: "menuRef",
1730
- ref: y,
1731
- options: N(r),
1732
- show: N(n),
1733
- container: N(f),
1734
- isFullScreenContainer: !N(l),
1735
- onClose: a
1730
+ ref: C,
1731
+ options: K(r),
1732
+ show: K(n),
1733
+ container: K(f),
1734
+ isFullScreenContainer: !K(l),
1735
+ onClose: i
1736
1736
  }, Wt({ _: 2 }, [
1737
- vt(N(p), (j, I) => ({
1738
- name: I,
1739
- fn: He((C) => [
1740
- xe(_.$slots, I, Ft(Et(C)))
1737
+ vt(K(v), (W, j) => ({
1738
+ name: j,
1739
+ fn: He((b) => [
1740
+ Se(p.$slots, j, Ft(Et(b)))
1741
1741
  ])
1742
1742
  }))
1743
1743
  ]), 1032, ["options", "show", "container", "isFullScreenContainer"])
1744
1744
  ], 8, ["to"]));
1745
1745
  }
1746
- }), $l = Le({
1746
+ }), $l = Pe({
1747
1747
  name: "ContextMenuGroup",
1748
1748
  props: {
1749
1749
  /**
@@ -1881,13 +1881,13 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1881
1881
  }
1882
1882
  },
1883
1883
  setup(t, c) {
1884
- const o = me("globalOptions"), { adjustSubMenuPosition: e, maxWidth: i, minWidth: r, maxHeight: n } = Ee(t), l = typeof e.value < "u" ? e.value : o.value.adjustPosition, f = g(), u = g();
1884
+ const o = me("globalOptions"), { adjustSubMenuPosition: e, maxWidth: s, minWidth: r, maxHeight: n } = Ee(t), l = typeof e.value < "u" ? e.value : o.value.adjustPosition, f = y(), a = y();
1885
1885
  return c.expose({
1886
1886
  getSubMenuRef: () => f.value,
1887
- getMenuItemRef: () => u.value
1887
+ getMenuItemRef: () => a.value
1888
1888
  }), () => ot(ht, {
1889
1889
  ...t,
1890
- ref: u,
1890
+ ref: a,
1891
1891
  showRightArrow: !0,
1892
1892
  maxWidth: void 0,
1893
1893
  minWidth: void 0,
@@ -1896,14 +1896,14 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1896
1896
  hasChildren: typeof c.slots.default !== void 0
1897
1897
  }, c.slots.default ? {
1898
1898
  //Create SubMenu
1899
- submenu: (y) => ot(mt, {
1899
+ submenu: (C) => ot(mt, {
1900
1900
  ref: f,
1901
- show: y.show,
1902
- maxWidth: i.value,
1901
+ show: C.show,
1902
+ maxWidth: s.value,
1903
1903
  minWidth: r.value,
1904
1904
  maxHeight: n.value,
1905
1905
  adjustPosition: l,
1906
- parentMenuItemContext: y.context
1906
+ parentMenuItemContext: C.context
1907
1907
  }, {
1908
1908
  default: c.slots.default
1909
1909
  }),
@@ -1913,9 +1913,9 @@ const qe = /* @__PURE__ */ pt(ql, [["render", Jl]]), mt = /* @__PURE__ */ Le({
1913
1913
  }
1914
1914
  });
1915
1915
  function eo(t, c, o, e) {
1916
- const i = g(!0), r = ot(Tt, {
1916
+ const s = y(!0), r = ot(Tt, {
1917
1917
  options: t,
1918
- show: i,
1918
+ show: s,
1919
1919
  container: c,
1920
1920
  isFullScreenContainer: !o,
1921
1921
  onCloseAnimFinished: () => {
@@ -1923,7 +1923,7 @@ function eo(t, c, o, e) {
1923
1923
  },
1924
1924
  onClose: (n) => {
1925
1925
  var l;
1926
- (l = t.onClose) == null || l.call(t, n), i.value = !1;
1926
+ (l = t.onClose) == null || l.call(t, n), s.value = !1;
1927
1927
  }
1928
1928
  }, e);
1929
1929
  return gt(r, c), r.component;
@@ -1932,7 +1932,7 @@ function Dt(t, c) {
1932
1932
  const o = Ht(t);
1933
1933
  return eo(t, o.container, o.isNew, c).exposed;
1934
1934
  }
1935
- const We = {
1935
+ const je = {
1936
1936
  /**
1937
1937
  * For Vue install
1938
1938
  * @param app
@@ -2014,10 +2014,10 @@ const We = {
2014
2014
  //Tools
2015
2015
  transformMenuPosition: xl
2016
2016
  };
2017
- function je() {
2017
+ function Le() {
2018
2018
  return {
2019
2019
  processMenus: (c, o) => {
2020
- const e = (i) => i.map((r) => {
2020
+ const e = (s) => s.map((r) => {
2021
2021
  const n = { ...r };
2022
2022
  return n.children && n.children.length > 0 ? n.children = e(n.children) : n.onClick || (n.onClick = (l) => {
2023
2023
  if (n.disabled) {
@@ -2035,7 +2035,7 @@ const st = {
2035
2035
  DEFAULT: "default",
2036
2036
  POINTER: "pointer"
2037
2037
  };
2038
- function Se(t) {
2038
+ function _e(t) {
2039
2039
  return t && (t.hasOwnProperty("onMouseClick") || t.hasOwnProperty("onMouseDblClick")) ? st.POINTER : st.DEFAULT;
2040
2040
  }
2041
2041
  const to = /* @__PURE__ */ Object.assign({
@@ -2061,85 +2061,85 @@ const to = /* @__PURE__ */ Object.assign({
2061
2061
  },
2062
2062
  setup(t, { expose: c }) {
2063
2063
  c();
2064
- const { isNotEmpty: o, isArray: e } = Y, i = t, r = re(), n = ae(r), l = g(null), f = m(() => i.propValue || {}), u = m(() => i.element || {}), y = m(() => u.value.events || []), p = g(!0), a = g(null);
2065
- let _, w = null, j = !0, I = !1;
2066
- const C = n[f.value.urlCK], M = m(() => o(f.value.url) ? f.value.url : o(f.value.urlCK) && C.value || "");
2067
- T(
2068
- () => u.value?.style?.display,
2064
+ const { isNotEmpty: o, isArray: e } = Y, s = t, r = re(), n = ae(r), l = y(null), f = h(() => s.propValue || {}), a = h(() => s.element || {}), C = h(() => a.value.events || []), v = y(!0), i = y(null);
2065
+ let p, V = null, W = !0, j = !1;
2066
+ const b = n[f.value.urlCK], M = h(() => o(f.value.url) ? f.value.url : o(f.value.urlCK) && b.value || "");
2067
+ B(
2068
+ () => a.value?.style?.display,
2069
2069
  (d) => {
2070
- d ? p.value = !1 : p.value = !0;
2070
+ d ? v.value = !1 : v.value = !0;
2071
2071
  }
2072
- ), T(
2072
+ ), B(
2073
2073
  () => f.value.flipVertical,
2074
- () => O()
2075
- ), T(
2074
+ () => P()
2075
+ ), B(
2076
2076
  () => f.value.flipHorizontal,
2077
- () => O()
2078
- ), T(
2077
+ () => P()
2078
+ ), B(
2079
2079
  () => M.value,
2080
2080
  (d) => {
2081
- j = !0, _ = null, I = !1, k();
2081
+ W = !0, p = null, j = !1, k();
2082
2082
  }
2083
2083
  );
2084
- const W = () => {
2085
- const { width: d, height: v } = u.value.style;
2086
- a.value.width = d, a.value.height = v, j && M.value ? (j = !1, _ = document.createElement("img"), _.onload = () => {
2087
- I = !0, w.drawImage(_, 0, 0, d, v), O();
2088
- }, _.src = M.value) : O();
2089
- }, O = () => {
2090
- const d = f.value.flipVertical, v = f.value.flipHorizontal, { width: h, height: B } = u.value.style, z = v ? -1 : 1, X = d ? -1 : 1;
2091
- w.clearRect(0, 0, h, B), I && _ && (w.translate(h / 2 - h * z / 2, B / 2 - B * X / 2), w.scale(z, X), w.drawImage(_, 0, 0, h, B), w.setTransform(1, 0, 0, 1, 0, 0));
2092
- }, k = rt(W, 500);
2093
- T([() => u.value?.style?.height, () => u.value?.style?.width], ([d, v]) => {
2094
- w && (j = !0, _ = null, I = !1, k());
2084
+ const L = () => {
2085
+ const { width: d, height: g } = a.value.style;
2086
+ i.value.width = d, i.value.height = g, W && M.value ? (W = !1, p = document.createElement("img"), p.onload = () => {
2087
+ j = !0, V.drawImage(p, 0, 0, d, g), P();
2088
+ }, p.src = M.value) : P();
2089
+ }, P = () => {
2090
+ const d = f.value.flipVertical, g = f.value.flipHorizontal, { width: w, height: A } = a.value.style, E = g ? -1 : 1, X = d ? -1 : 1;
2091
+ V.clearRect(0, 0, w, A), j && p && (V.translate(w / 2 - w * E / 2, A / 2 - A * X / 2), V.scale(E, X), V.drawImage(p, 0, 0, w, A), V.setTransform(1, 0, 0, 1, 0, 0));
2092
+ }, k = rt(L, 500);
2093
+ B([() => a.value?.style?.height, () => a.value?.style?.width], ([d, g]) => {
2094
+ V && (W = !0, p = null, j = !1, k());
2095
2095
  }, { immediate: !0 });
2096
- const s = (d) => {
2096
+ const u = (d) => {
2097
2097
  l.value?.handleClick(d);
2098
- }, S = (d) => {
2098
+ }, _ = (d) => {
2099
2099
  l.value?.handleDblClick(d);
2100
- }, V = le(), b = oe(), A = ee(f, u, V, b);
2100
+ }, I = le(), m = oe(), F = ee(f, a, I, m);
2101
2101
  Q(() => {
2102
- l.value = te(y.value, i.designStatus, A), l.value?.beforeMount();
2102
+ l.value = te(C.value, s.designStatus, F), l.value?.beforeMount();
2103
2103
  }), q(() => {
2104
- w = a.value?.getContext("2d"), k(), l.value?.mounted();
2104
+ V = i.value?.getContext("2d"), k(), l.value?.mounted();
2105
2105
  }), J(() => {
2106
2106
  l.value?.beforeUnmount();
2107
2107
  }), $(() => {
2108
2108
  l.value?.unmounted();
2109
2109
  });
2110
- const { processMenus: H } = je(), x = (d) => {
2110
+ const { processMenus: H } = Le(), S = (d) => {
2111
2111
  d.preventDefault();
2112
- let v = f.value.menuItems || [];
2113
- if (e(v) && v.length > 0) {
2114
- let h = [];
2115
- h = H(v, function(B, z) {
2116
- l.value?.handleContextMenu(d, B.value);
2117
- }), We.showContextMenu({
2112
+ let g = f.value.menuItems || [];
2113
+ if (e(g) && g.length > 0) {
2114
+ let w = [];
2115
+ w = H(g, function(A, E) {
2116
+ l.value?.handleContextMenu(d, A.value);
2117
+ }), je.showContextMenu({
2118
2118
  x: d.x,
2119
2119
  y: d.y,
2120
- items: h
2120
+ items: w
2121
2121
  });
2122
2122
  }
2123
- }, Z = m(() => {
2123
+ }, Z = h(() => {
2124
2124
  let d = {};
2125
- return d.cursor = Se(y.value), d;
2126
- }), E = { isNotEmpty: o, isArray: e, props: i, dataCache: r, smartData: n, eventHandler: l, propValue: f, element: u, events: y, isVisible: p, canvas: a, get img() {
2127
- return _;
2125
+ return d.cursor = _e(C.value), d;
2126
+ }), N = { isNotEmpty: o, isArray: e, props: s, dataCache: r, smartData: n, eventHandler: l, propValue: f, element: a, events: C, isVisible: v, canvas: i, get img() {
2127
+ return p;
2128
2128
  }, set img(d) {
2129
- _ = d;
2129
+ p = d;
2130
2130
  }, get ctx() {
2131
- return w;
2131
+ return V;
2132
2132
  }, set ctx(d) {
2133
- w = d;
2133
+ V = d;
2134
2134
  }, get isFirst() {
2135
- return j;
2135
+ return W;
2136
2136
  }, set isFirst(d) {
2137
- j = d;
2137
+ W = d;
2138
2138
  }, get loadSuccess() {
2139
- return I;
2139
+ return j;
2140
2140
  }, set loadSuccess(d) {
2141
- I = d;
2142
- }, urlData: C, url: M, drawImage: W, mirrorFlip: O, debouncedDraw: k, clickHandler: s, dblclickHandler: S, router: V, route: b, compContext: A, processMenus: H, openContextMenu: x, customStyle: Z, computed: m, onMounted: q, ref: g, watch: T, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
2141
+ j = d;
2142
+ }, urlData: b, url: M, drawImage: L, mirrorFlip: P, debouncedDraw: k, clickHandler: u, dblclickHandler: _, router: I, route: m, compContext: F, processMenus: H, openContextMenu: S, customStyle: Z, computed: h, onMounted: q, ref: y, watch: B, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
2143
2143
  return te;
2144
2144
  }, get useDataCacheStore() {
2145
2145
  return re;
@@ -2156,20 +2156,20 @@ const to = /* @__PURE__ */ Object.assign({
2156
2156
  }, get debounce() {
2157
2157
  return rt;
2158
2158
  }, get ContextMenu() {
2159
- return We;
2160
- }, get useMenuHandler() {
2161
2159
  return je;
2160
+ }, get useMenuHandler() {
2161
+ return Le;
2162
2162
  }, get getCursorByEvents() {
2163
- return Se;
2163
+ return _e;
2164
2164
  } };
2165
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
2165
+ return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
2166
2166
  }
2167
2167
  });
2168
- function lo(t, c, o, e, i, r) {
2169
- return e.isVisible ? (P(), F("div", {
2168
+ function lo(t, c, o, e, s, r) {
2169
+ return e.isVisible ? (R(), z("div", {
2170
2170
  key: 0,
2171
2171
  class: "picture-container",
2172
- style: ye(e.customStyle),
2172
+ style: Ce(e.customStyle),
2173
2173
  onClick: e.clickHandler,
2174
2174
  onDblclick: e.dblclickHandler,
2175
2175
  onContextmenu: e.openContextMenu
@@ -2178,8 +2178,8 @@ function lo(t, c, o, e, i, r) {
2178
2178
  ], 36)) : ne("", !0);
2179
2179
  }
2180
2180
  const oo = /* @__PURE__ */ fe(to, [["render", lo], ["__scopeId", "data-v-6700d8d2"], ["__file", "Component.vue"]]);
2181
- function Ce(t, c, o, e) {
2182
- const i = Ze({
2181
+ function be(t, c, o, e) {
2182
+ const s = Ze({
2183
2183
  dataColor: null,
2184
2184
  // 数据颜色
2185
2185
  backgroundColor: null,
@@ -2188,15 +2188,15 @@ function Ce(t, c, o, e) {
2188
2188
  // 线颜色
2189
2189
  fillColor: null
2190
2190
  // 填充颜色
2191
- }), r = c[t.value.colorCK], n = (f, u, y) => e.hasOwnPathInObject(f, u) ? e.getValueByPath(f, u) : y, l = (f, u) => e.isNotEmpty(u) && o ? o[u] ? o[u][f] : null : f;
2192
- return T(() => r?.value, (f) => {
2191
+ }), r = c[t.value.colorCK], n = (f, a, C) => e.hasOwnPathInObject(f, a) ? e.getValueByPath(f, a) : C, l = (f, a) => e.isNotEmpty(a) && o ? o[a] ? o[a][f] : null : f;
2192
+ return B(() => r?.value, (f) => {
2193
2193
  if (e.isObject(f) && e.isNotEmpty(t.value.colorCK)) {
2194
2194
  if (!t.value.dycFlag)
2195
2195
  return;
2196
- let u;
2197
- e.isNotEmpty(t.value.fColorKey) && (u = n(f, t.value.fColorKey, null), i.dataColor = l(u, t.value.fColorRule)), e.isNotEmpty(t.value.bgColorKey) && (u = n(f, t.value.bgColorKey, null), i.backgroundColor = l(u, t.value.bgColorRule)), e.isNotEmpty(t.value.lineColorKey) && (u = n(f, t.value.lineColorKey, null), i.lineColor = l(u, t.value.lineColorRule)), e.isNotEmpty(t.value.fillColorKey) && (u = n(f, t.value.fillColorKey, null), i.fillColor = l(u, t.value.fillColorRule));
2196
+ let a;
2197
+ e.isNotEmpty(t.value.fColorKey) && (a = n(f, t.value.fColorKey, null), s.dataColor = l(a, t.value.fColorRule)), e.isNotEmpty(t.value.bgColorKey) && (a = n(f, t.value.bgColorKey, null), s.backgroundColor = l(a, t.value.bgColorRule)), e.isNotEmpty(t.value.lineColorKey) && (a = n(f, t.value.lineColorKey, null), s.lineColor = l(a, t.value.lineColorRule)), e.isNotEmpty(t.value.fillColorKey) && (a = n(f, t.value.fillColorKey, null), s.fillColor = l(a, t.value.fillColorRule));
2198
2198
  }
2199
- }, { immediate: !0 }), { dynamicColor: i };
2199
+ }, { immediate: !0 }), { dynamicColor: s };
2200
2200
  }
2201
2201
  const no = /* @__PURE__ */ Object.assign({
2202
2202
  name: "SVGCircle"
@@ -2221,9 +2221,9 @@ const no = /* @__PURE__ */ Object.assign({
2221
2221
  },
2222
2222
  setup(t, { expose: c }) {
2223
2223
  c();
2224
- const o = t, e = re(), i = ae(e), r = g(null), n = m(() => o.propValue || {}), l = m(() => o.element || {}), f = m(() => l.value.events || []), u = le(), y = oe(), p = ee(n, l, u, y);
2224
+ const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
2225
2225
  Q(() => {
2226
- r.value = te(f.value, o.designStatus, p), r.value?.beforeMount();
2226
+ r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
2227
2227
  }), q(() => {
2228
2228
  M(), r.value?.mounted();
2229
2229
  }), J(() => {
@@ -2231,18 +2231,18 @@ const no = /* @__PURE__ */ Object.assign({
2231
2231
  }), $(() => {
2232
2232
  r.value?.unmounted();
2233
2233
  });
2234
- const { dynamicColor: a } = Ce(n, i, e.rules, Y), _ = m(() => a.fillColor ? a.fillColor : n.value.fillColor ? n.value.fillColor : "none"), w = m(() => a.lineColor ? a.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), j = g(0), I = g(0), C = g(0);
2235
- T(() => l.value.style.width, (k) => {
2234
+ const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.fillColor ? i.fillColor : n.value.fillColor ? n.value.fillColor : "none"), V = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), W = y(0), j = y(0), b = y(0);
2235
+ B(() => l.value.style.width, (k) => {
2236
2236
  M();
2237
- }), T(() => l.value.style.height, (k) => {
2237
+ }), B(() => l.value.style.height, (k) => {
2238
2238
  M();
2239
2239
  });
2240
2240
  const M = () => {
2241
- const { width: k, height: s } = l.value.style;
2242
- W(k, s);
2243
- }, W = (k, s) => {
2244
- j.value = 0.5 * k, I.value = 0.5 * s, C.value = 0.45 * s;
2245
- }, O = { props: o, dataCache: e, smartData: i, eventHandler: r, propValue: n, element: l, events: f, router: u, route: y, compContext: p, dynamicColor: a, showFillColor: _, showLineColor: w, cx: j, cy: I, cr: C, draw: M, drawChart: W, get useEventHandler() {
2241
+ const { width: k, height: u } = l.value.style;
2242
+ L(k, u);
2243
+ }, L = (k, u) => {
2244
+ W.value = 0.5 * k, j.value = 0.5 * u, b.value = 0.45 * u;
2245
+ }, P = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showFillColor: p, showLineColor: V, cx: W, cy: j, cr: b, draw: M, drawChart: L, get useEventHandler() {
2246
2246
  return te;
2247
2247
  }, get useDataCacheStore() {
2248
2248
  return re;
@@ -2250,21 +2250,21 @@ const no = /* @__PURE__ */ Object.assign({
2250
2250
  return ae;
2251
2251
  }, get CreateCompContext() {
2252
2252
  return ee;
2253
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
2253
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
2254
2254
  return oe;
2255
2255
  }, get useRouter() {
2256
2256
  return le;
2257
2257
  }, get useDynamicColor() {
2258
- return Ce;
2258
+ return be;
2259
2259
  }, get CommonUtils() {
2260
2260
  return Y;
2261
2261
  } };
2262
- return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
2262
+ return Object.defineProperty(P, "__isScriptSetup", { enumerable: !1, value: !0 }), P;
2263
2263
  }
2264
2264
  });
2265
- function ro(t, c, o, e, i, r) {
2266
- return P(), F("div", { class: "svg-container" }, [
2267
- (P(), F("svg", {
2265
+ function ro(t, c, o, e, s, r) {
2266
+ return R(), z("div", { class: "svg-container" }, [
2267
+ (R(), z("svg", {
2268
2268
  xmlns: "http://www.w3.org/2000/svg",
2269
2269
  width: e.element.style.width,
2270
2270
  height: e.element.style.height
@@ -2306,123 +2306,124 @@ const ao = /* @__PURE__ */ fe(no, [["render", ro], ["__scopeId", "data-v-ecab498
2306
2306
  const {
2307
2307
  formatDate: o,
2308
2308
  getDate: e,
2309
- getWeek: i,
2309
+ getWeek: s,
2310
2310
  isNotEmpty: r,
2311
2311
  isNumber: n,
2312
2312
  isObject: l,
2313
2313
  isValid: f,
2314
- hasOwnPathInObject: u,
2315
- getValueByPath: y
2316
- } = Y, p = t, a = m(() => p.propValue || {}), _ = m(() => p.element || {}), w = m(() => _.value.events || []), j = re(), I = ae(j), C = g(null), M = g(0), W = g(0), O = g(""), k = g(""), s = g(!1), S = g("");
2317
- let V = null, b = null;
2318
- const A = g("");
2314
+ hasOwnPathInObject: a,
2315
+ getValueByPath: C
2316
+ } = Y, v = t, i = h(() => v.propValue || {}), p = h(() => v.element || {}), V = h(() => p.value.events || []), W = re(), j = ae(W), b = y(null), M = y(0), L = y(0), P = y(""), k = y(""), u = y(!1), _ = y("");
2317
+ let I = null, m = null;
2318
+ const F = y("");
2319
2319
  let H = null;
2320
- const x = I[a.value.dataCK], Z = I[a.value.timeCK], E = (U, se, pe) => u(U, se) ? y(U, se) : pe;
2320
+ const S = j[i.value.dataCK], Z = j[i.value.timeCK], N = (U, ie, pe) => a(U, ie) ? C(U, ie) : pe;
2321
2321
  function d(U) {
2322
- l(U) ? (V = E(U, a.value.valueKey, null), b = E(U, a.value.timeKey, null)) : V = U;
2322
+ l(U) ? (I = N(U, i.value.valueKey, null), m = N(U, i.value.timeKey, null)) : I = U;
2323
2323
  }
2324
- function v(U) {
2325
- d(U), S.value = be(V);
2324
+ function g(U) {
2325
+ d(U), _.value = xe(I);
2326
2326
  }
2327
- T(() => x.value, (U) => {
2328
- f(U) && v(U);
2329
- }), T(() => Z.value, (U) => {
2330
- r(a.value.timeCK) && f(U) && (r(a.value.timeKey) ? l(U) && (b = E(U, a.value.timeKey, null)) : b = U);
2327
+ B(() => S.value, (U) => {
2328
+ f(U) && g(U);
2329
+ }), B(() => Z.value, (U) => {
2330
+ r(i.value.timeCK) && f(U) && (r(i.value.timeKey) ? l(U) && (m = N(U, i.value.timeKey, null)) : m = U);
2331
2331
  });
2332
- const { dynamicColor: h } = Ce(a, I, j.rules, Y), B = m(() => h.dataColor ? h.dataColor : a.value.fontColor ? a.value.fontColor : "none"), z = m(() => h.backgroundColor ? h.backgroundColor : a.value.fillColor ? a.value.fillColor : "none"), X = (U) => {
2333
- C.value?.setParam(U);
2334
- }, L = (U) => {
2335
- C.value?.handleDblClick(U);
2332
+ const { dynamicColor: w } = be(i, j, W.rules, Y), A = h(() => w.dataColor ? w.dataColor : i.value.fontColor ? i.value.fontColor : "none"), E = h(() => w.backgroundColor ? w.backgroundColor : i.value.fillColor ? i.value.fillColor : "none"), X = (U) => {
2333
+ b.value?.setParam(U);
2334
+ }, D = (U) => {
2335
+ b.value?.handleDblClick(U);
2336
2336
  };
2337
- T(() => _.value.style.width, (U) => {
2338
- R();
2339
- }), T(() => _.value.style.height, (U) => {
2340
- R();
2341
- }), T(() => a.value.horizontalAlign, (U) => {
2342
- R();
2343
- }), T(() => a.value.offsetX, (U) => {
2344
- R();
2337
+ B(() => p.value.style.width, (U) => {
2338
+ T();
2339
+ }), B(() => p.value.style.height, (U) => {
2340
+ T();
2341
+ }), B(() => i.value.horizontalAlign, (U) => {
2342
+ T();
2343
+ }), B(() => i.value.offsetX, (U) => {
2344
+ T();
2345
2345
  });
2346
- const ie = m(() => p.designStatus ? !0 : a.value.showTooltip ? !s.value : !0), _e = m(() => a.value.tooltipPlacement || "bottom-start"), K = m(() => a.value.tooltipEffect || "dark"), D = (U) => {
2347
- p.designStatus || (G(), r(A.value) ? s.value = !0 : s.value = !1);
2346
+ const se = h(() => v.designStatus ? !0 : i.value.showTooltip ? !u.value : !0), ge = h(() => i.value.tooltipPlacement || "bottom-start"), x = h(() => i.value.tooltipEffect || "dark"), O = (U) => {
2347
+ v.designStatus || (G(), r(F.value) ? u.value = !0 : u.value = !1);
2348
2348
  }, G = () => {
2349
- if (A.value = "", a.value.showTooltip && b && n(b)) {
2350
- let U = e(b), se = "";
2349
+ if (F.value = "", i.value.showTooltip && m && n(m)) {
2350
+ let U = e(m), ie = "";
2351
2351
  if (U) {
2352
- se = o(U, "yyyy-MM-dd HH:mm:ss");
2353
- let pe = "数值:" + S.value, ge = "时间:" + se;
2354
- A.value = pe + "<br/>" + ge;
2352
+ ie = o(U, "yyyy-MM-dd HH:mm:ss");
2353
+ let pe = "数值:" + _.value, ye = "时间:" + ie;
2354
+ F.value = pe + "<br/>" + ye;
2355
2355
  }
2356
2356
  }
2357
- }, R = () => {
2358
- const { width: U, height: se } = p.element.style;
2359
- ce(U, se);
2360
- }, ce = (U, se) => {
2361
- let pe = p.propValue.horizontalAlign || "left", ge = p.propValue.offsetX || 0;
2362
- pe == "center" ? (k.value = "middle", M.value = U * 0.5) : pe == "right" ? (M.value = U - ge, k.value = "end") : (M.value = 0 + ge, k.value = "start"), O.value = "central", W.value = se * 0.5;
2363
- }, be = (U) => {
2364
- let se = U;
2357
+ }, T = () => {
2358
+ const { width: U, height: ie } = v.element.style;
2359
+ ce(U, ie);
2360
+ }, ce = (U, ie) => {
2361
+ let pe = v.propValue.horizontalAlign || "left", ye = v.propValue.offsetX || 0;
2362
+ pe == "center" ? (k.value = "middle", M.value = U * 0.5) : pe == "right" ? (M.value = U - ye, k.value = "end") : (M.value = 0 + ye, k.value = "start"), P.value = "central", L.value = ie * 0.5;
2363
+ }, xe = (U) => {
2364
+ let ie = U;
2365
2365
  if (n(U)) {
2366
- let pe = a.value.fractionDigits || 0, ge = a.value.factor;
2367
- n(ge) && (ge = Number(ge), U = Number(U) * ge), se = ve(Number(U), pe);
2366
+ let pe = i.value.fractionDigits || 0, ye = i.value.factor;
2367
+ n(ye) && (ye = Number(ye), U = Number(U) * ye), ie = ve(Number(U), pe);
2368
2368
  } else
2369
- se + "" == "undefined" && (se = "");
2370
- return r(a.value.unit) && (se = se + a.value.unit), se;
2371
- }, ve = (U, se) => {
2369
+ ie + "" == "undefined" && (ie = "");
2370
+ return r(i.value.unit) && (ie = ie + i.value.unit), ie;
2371
+ }, ve = (U, ie) => {
2372
2372
  let pe = U;
2373
2373
  if (U) {
2374
- const ge = a.value.valueType;
2375
- if (ge == 2 && Number(U))
2376
- se && Number(se) ? se = parseInt(se) : se = 0, pe = U.toFixed(se);
2377
- else if (ge == 3) {
2374
+ const ye = i.value.valueType;
2375
+ if (ye == 2 && Number(U))
2376
+ ie && Number(ie) ? ie = parseInt(ie) : ie = 0, pe = U.toFixed(ie);
2377
+ else if (ye == 3) {
2378
2378
  let Ae = e(U);
2379
- const lt = a.value.dateformat || "yyyy-MM-dd";
2380
- Ae && (r(a.value.weekMode) ? pe = i(Ae, n(a.value.weekMode) ? Number(a.value.weekMode) : 0) : pe = o(Ae, lt));
2379
+ const lt = i.value.dateformat || "yyyy-MM-dd";
2380
+ Ae && (r(i.value.weekMode) ? pe = s(Ae, n(i.value.weekMode) ? Number(i.value.weekMode) : 0) : pe = o(Ae, lt));
2381
2381
  }
2382
2382
  }
2383
2383
  return pe;
2384
- }, Pe = () => {
2385
- }, Te = le(), Qe = oe(), $e = ee(a, _, Te, Qe);
2384
+ }, Ie = () => {
2385
+ H && (clearInterval(H), H = null);
2386
+ }, Te = le(), Qe = oe(), $e = ee(i, p, Te, Qe);
2386
2387
  Q(() => {
2387
- C.value = te(w.value, p.designStatus, $e), C.value?.beforeMount();
2388
+ b.value = te(V.value, v.designStatus, $e), b.value?.beforeMount();
2388
2389
  }), q(() => {
2389
- R(), H = setInterval(() => {
2390
- f(x.value) && v(x.value);
2391
- }, 1e3), C.value?.mounted();
2390
+ T(), H = setInterval(() => {
2391
+ f(S.value) && (g(S.value), H && (clearInterval(H), H = null));
2392
+ }, 1e3), b.value?.mounted();
2392
2393
  }), J(() => {
2393
- C.value?.beforeUnmount();
2394
+ Ie(), b.value?.beforeUnmount();
2394
2395
  }), $(() => {
2395
- C.value?.unmounted();
2396
+ b.value?.unmounted();
2396
2397
  });
2397
- const { processMenus: et } = je(), tt = (U) => {
2398
+ const { processMenus: et } = Le(), tt = (U) => {
2398
2399
  U.preventDefault();
2399
- let se = a.value.menuItems || [];
2400
- if (Y.isArray(se) && se.length > 0) {
2400
+ let ie = i.value.menuItems || [];
2401
+ if (Y.isArray(ie) && ie.length > 0) {
2401
2402
  let pe = [];
2402
- pe = et(se, function(ge, Ae) {
2403
- C.value?.handleContextMenu(U, ge.value);
2404
- }), We.showContextMenu({
2403
+ pe = et(ie, function(ye, Ae) {
2404
+ b.value?.handleContextMenu(U, ye.value);
2405
+ }), je.showContextMenu({
2405
2406
  x: U.x,
2406
2407
  y: U.y,
2407
2408
  items: pe
2408
2409
  });
2409
2410
  }
2410
- }, ze = m(() => {
2411
+ }, ze = h(() => {
2411
2412
  let U = {};
2412
- return U.cursor = Se(w.value), U;
2413
- }), Be = { formatDate: o, getDate: e, getWeek: i, isNotEmpty: r, isNumber: n, isObject: l, isValid: f, hasOwnPathInObject: u, getValueByPath: y, props: p, propValue: a, element: _, events: w, dataCache: j, smartData: I, eventHandler: C, textX: M, textY: W, textBaseLine: O, textAnchor: k, hasTooltipContent: s, showDataValue: S, get dataValue() {
2414
- return V;
2413
+ return U.cursor = _e(V.value), U;
2414
+ }), Be = { formatDate: o, getDate: e, getWeek: s, isNotEmpty: r, isNumber: n, isObject: l, isValid: f, hasOwnPathInObject: a, getValueByPath: C, props: v, propValue: i, element: p, events: V, dataCache: W, smartData: j, eventHandler: b, textX: M, textY: L, textBaseLine: P, textAnchor: k, hasTooltipContent: u, showDataValue: _, get dataValue() {
2415
+ return I;
2415
2416
  }, set dataValue(U) {
2416
- V = U;
2417
+ I = U;
2417
2418
  }, get dataTime() {
2418
- return b;
2419
+ return m;
2419
2420
  }, set dataTime(U) {
2420
- b = U;
2421
- }, tooltipContent: A, get timer() {
2421
+ m = U;
2422
+ }, tooltipContent: F, get timer() {
2422
2423
  return H;
2423
2424
  }, set timer(U) {
2424
2425
  H = U;
2425
- }, bsData: x, timeData: Z, _getValueFromObj: E, parseBsData: d, dealBsData: v, dynamicColor: h, showFontColor: B, showBackgroundColor: z, handleClick: X, handleDblClick: L, disableToolTip: ie, tooltipPlacement: _e, tooltipEffect: K, showTooltip: D, loadTipInfo: G, draw: R, drawChart: ce, showValue: be, dataFormatter: ve, clearInterval: Pe, router: Te, route: Qe, compContext: $e, processMenus: et, openContextMenu: tt, customStyle: ze, watch: T, onMounted: q, computed: m, onBeforeUnmount: J, ref: g, onBeforeMount: Q, onUnmounted: $, reactive: Ze, get useRoute() {
2426
+ }, bsData: S, timeData: Z, _getValueFromObj: N, parseBsData: d, dealBsData: g, dynamicColor: w, showFontColor: A, showBackgroundColor: E, handleClick: X, handleDblClick: D, disableToolTip: se, tooltipPlacement: ge, tooltipEffect: x, showTooltip: O, loadTipInfo: G, draw: T, drawChart: ce, showValue: xe, dataFormatter: ve, _clearInterval: Ie, router: Te, route: Qe, compContext: $e, processMenus: et, openContextMenu: tt, customStyle: ze, watch: B, onMounted: q, computed: h, onBeforeUnmount: J, ref: y, onBeforeMount: Q, onUnmounted: $, reactive: Ze, get useRoute() {
2426
2427
  return oe;
2427
2428
  }, get useRouter() {
2428
2429
  return le;
@@ -2437,22 +2438,22 @@ const ao = /* @__PURE__ */ fe(no, [["render", ro], ["__scopeId", "data-v-ecab498
2437
2438
  }, get CommonUtils() {
2438
2439
  return Y;
2439
2440
  }, get useDynamicColor() {
2440
- return Ce;
2441
+ return be;
2441
2442
  }, get ContextMenu() {
2442
- return We;
2443
- }, get useMenuHandler() {
2444
2443
  return je;
2444
+ }, get useMenuHandler() {
2445
+ return Le;
2445
2446
  }, get getCursorByEvents() {
2446
- return Se;
2447
+ return _e;
2447
2448
  } };
2448
2449
  return Object.defineProperty(Be, "__isScriptSetup", { enumerable: !1, value: !0 }), Be;
2449
2450
  }
2450
2451
  });
2451
- function so(t, c, o, e, i, r) {
2452
+ function so(t, c, o, e, s, r) {
2452
2453
  const n = Je("el-tooltip");
2453
- return P(), F("div", {
2454
+ return R(), z("div", {
2454
2455
  class: "svg-container",
2455
- style: ye(e.customStyle),
2456
+ style: Ce(e.customStyle),
2456
2457
  onClick: e.handleClick,
2457
2458
  onDblclick: e.handleDblClick,
2458
2459
  onMouseenter: e.showTooltip,
@@ -2468,12 +2469,12 @@ function so(t, c, o, e, i, r) {
2468
2469
  ue("div", { innerHTML: e.tooltipContent }, null, 8, ["innerHTML"])
2469
2470
  ]),
2470
2471
  default: He(() => [
2471
- (P(), F("svg", {
2472
+ (R(), z("svg", {
2472
2473
  xmlns: "http://www.w3.org/2000/svg",
2473
2474
  width: e.element.style.width,
2474
2475
  height: e.element.style.height
2475
2476
  }, [
2476
- e.propValue.hasBackground ? (P(), F("rect", {
2477
+ e.propValue.hasBackground ? (R(), z("rect", {
2477
2478
  key: 0,
2478
2479
  x: 0,
2479
2480
  y: 0,
@@ -2501,7 +2502,7 @@ function so(t, c, o, e, i, r) {
2501
2502
  }, 8, ["placement", "disabled", "effect"])
2502
2503
  ], 36);
2503
2504
  }
2504
- const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-572c01ec"], ["__file", "Component.vue"]]), co = /* @__PURE__ */ Object.assign({
2505
+ const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-e00f69af"], ["__file", "Component.vue"]]), co = /* @__PURE__ */ Object.assign({
2505
2506
  name: "SVGDateText"
2506
2507
  }, {
2507
2508
  __name: "Component",
@@ -2527,70 +2528,70 @@ const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-572c01e
2527
2528
  const {
2528
2529
  formatDate: o,
2529
2530
  getDate: e,
2530
- getWeek: i,
2531
+ getWeek: s,
2531
2532
  isNotEmpty: r,
2532
2533
  isNumber: n
2533
- } = Y, l = t, f = m(() => l.propValue || {}), u = m(() => l.element || {}), y = m(() => u.value.events || []), p = g(null), a = g(0), _ = g(0), w = g(""), j = g(""), I = g(!1), C = g("");
2534
- let M = null, W = null;
2535
- const O = g("");
2534
+ } = Y, l = t, f = h(() => l.propValue || {}), a = h(() => l.element || {}), C = h(() => a.value.events || []), v = y(null), i = y(0), p = y(0), V = y(""), W = y(""), j = y(!1), b = y("");
2535
+ let M = null, L = null;
2536
+ const P = y("");
2536
2537
  let k = null;
2537
- T(() => u.value.style.width, (h) => {
2538
- s();
2539
- }), T(() => u.value.style.height, (h) => {
2540
- s();
2541
- }), T(() => f.value.horizontalAlign, (h) => {
2542
- s();
2543
- }), T(() => f.value.offsetX, (h) => {
2544
- s();
2538
+ B(() => a.value.style.width, (w) => {
2539
+ u();
2540
+ }), B(() => a.value.style.height, (w) => {
2541
+ u();
2542
+ }), B(() => f.value.horizontalAlign, (w) => {
2543
+ u();
2544
+ }), B(() => f.value.offsetX, (w) => {
2545
+ u();
2545
2546
  });
2546
- const s = () => {
2547
- const { width: h, height: B } = l.element.style;
2548
- S(h, B);
2549
- }, S = (h, B) => {
2550
- let z = l.propValue.horizontalAlign || "left", X = l.propValue.offsetX || 0;
2551
- z == "center" ? (j.value = "middle", a.value = h * 0.5) : z == "right" ? (a.value = h - X, j.value = "end") : (a.value = 0 + X, j.value = "start"), w.value = "central", _.value = B * 0.5;
2552
- }, V = (h) => {
2553
- let B = h;
2554
- return n(h) ? B = b(Number(h)) : B + "" == "undefined" && (B = ""), B;
2555
- }, b = (h) => {
2556
- let B = h;
2557
- if (h) {
2558
- let z = e(h);
2547
+ const u = () => {
2548
+ const { width: w, height: A } = l.element.style;
2549
+ _(w, A);
2550
+ }, _ = (w, A) => {
2551
+ let E = l.propValue.horizontalAlign || "left", X = l.propValue.offsetX || 0;
2552
+ E == "center" ? (W.value = "middle", i.value = w * 0.5) : E == "right" ? (i.value = w - X, W.value = "end") : (i.value = 0 + X, W.value = "start"), V.value = "central", p.value = A * 0.5;
2553
+ }, I = (w) => {
2554
+ let A = w;
2555
+ return n(w) ? A = m(Number(w)) : A + "" == "undefined" && (A = ""), A;
2556
+ }, m = (w) => {
2557
+ let A = w;
2558
+ if (w) {
2559
+ let E = e(w);
2559
2560
  const X = f.value.dateformat || "yyyy-MM-dd";
2560
- z && (r(f.value.weekMode) ? B = i(z, n(f.value.weekMode) ? Number(f.value.weekMode) : 0) : B = o(z, X));
2561
+ E && (r(f.value.weekMode) ? A = s(E, n(f.value.weekMode) ? Number(f.value.weekMode) : 0) : A = o(E, X));
2561
2562
  }
2562
- return B;
2563
- }, A = () => {
2564
- }, H = (h) => {
2565
- p.value?.handleClick(h);
2566
- }, x = (h) => {
2567
- p.value?.handleDblClick(h);
2568
- }, Z = le(), E = oe(), d = ee(f, u, Z, E);
2563
+ return A;
2564
+ }, F = () => {
2565
+ }, H = (w) => {
2566
+ v.value?.handleClick(w);
2567
+ }, S = (w) => {
2568
+ v.value?.handleDblClick(w);
2569
+ }, Z = le(), N = oe(), d = ee(f, a, Z, N);
2569
2570
  Q(() => {
2570
- p.value = te(y.value, l.designStatus, d), p.value?.beforeMount();
2571
+ v.value = te(C.value, l.designStatus, d), v.value?.beforeMount();
2571
2572
  }), q(() => {
2572
- s(), k = setInterval(() => {
2573
- let h = (/* @__PURE__ */ new Date()).getTime();
2574
- C.value = V(h);
2575
- }, 500), p.value?.mounted();
2573
+ u(), k = setInterval(() => {
2574
+ let w = (/* @__PURE__ */ new Date()).getTime();
2575
+ b.value = I(w);
2576
+ }, 500), v.value?.mounted();
2576
2577
  }), J(() => {
2577
- p.value?.beforeUnmount();
2578
+ v.value?.beforeUnmount();
2578
2579
  }), $(() => {
2579
- p.value?.unmounted();
2580
+ v.value?.unmounted();
2580
2581
  });
2581
- const v = { formatDate: o, getDate: e, getWeek: i, isNotEmpty: r, isNumber: n, props: l, propValue: f, element: u, events: y, eventHandler: p, textX: a, textY: _, textBaseLine: w, textAnchor: j, hasTooltipContent: I, showDataValue: C, get dataValue() {
2582
+ const g = { formatDate: o, getDate: e, getWeek: s, isNotEmpty: r, isNumber: n, props: l, propValue: f, element: a, events: C, eventHandler: v, textX: i, textY: p, textBaseLine: V, textAnchor: W, hasTooltipContent: j, showDataValue: b, get dataValue() {
2582
2583
  return M;
2583
- }, set dataValue(h) {
2584
- M = h;
2584
+ }, set dataValue(w) {
2585
+ M = w;
2585
2586
  }, get dataTime() {
2586
- return W;
2587
- }, set dataTime(h) {
2588
- W = h;
2589
- }, tooltipContent: O, get timer() {
2587
+ return L;
2588
+ }, set dataTime(w) {
2589
+ L = w;
2590
+ }, tooltipContent: P, get timer() {
2590
2591
  return k;
2591
- }, set timer(h) {
2592
- k = h;
2593
- }, draw: s, drawChart: S, showValue: V, dataFormatter: b, clearInterval: A, handleClick: H, handleDblClick: x, router: Z, route: E, compContext: d, watch: T, onMounted: q, computed: m, onBeforeUnmount: J, ref: g, onBeforeMount: Q, onUnmounted: $, get useEventHandler() {
2592
+ }, set timer(w) {
2593
+ k = w;
2594
+ }, draw: u, drawChart: _, showValue: I, dataFormatter: m, clearInterval: F, handleClick: H, handleDblClick: S, router: Z, route: N, compContext: d, watch: B, onMounted: q, computed: h, onBeforeUnmount: J, ref: y, onBeforeMount: Q, onUnmounted: $, get useEventHandler() {
2594
2595
  return te;
2595
2596
  }, get useDataCacheStore() {
2596
2597
  return re;
@@ -2605,17 +2606,17 @@ const io = /* @__PURE__ */ fe(uo, [["render", so], ["__scopeId", "data-v-572c01e
2605
2606
  }, get CommonUtils() {
2606
2607
  return Y;
2607
2608
  } };
2608
- return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
2609
+ return Object.defineProperty(g, "__isScriptSetup", { enumerable: !1, value: !0 }), g;
2609
2610
  }
2610
2611
  });
2611
- function fo(t, c, o, e, i, r) {
2612
- return P(), F("div", {
2612
+ function fo(t, c, o, e, s, r) {
2613
+ return R(), z("div", {
2613
2614
  class: "svg-container",
2614
2615
  onClick: e.handleClick,
2615
2616
  onDblclick: e.handleDblClick
2616
2617
  }, [
2617
- (P(), F("svg", { xmlns: "http://www.w3.org/2000/svg" }, [
2618
- e.propValue.hasBackground ? (P(), F("rect", {
2618
+ (R(), z("svg", { xmlns: "http://www.w3.org/2000/svg" }, [
2619
+ e.propValue.hasBackground ? (R(), z("rect", {
2619
2620
  key: 0,
2620
2621
  x: 1,
2621
2622
  y: 1,
@@ -2663,29 +2664,29 @@ const vo = /* @__PURE__ */ fe(co, [["render", fo], ["__scopeId", "data-v-939b62a
2663
2664
  },
2664
2665
  setup(t, { expose: c }) {
2665
2666
  c();
2666
- const o = t, e = re(), i = ae(e), r = g(null), n = m(() => o.propValue || {}), l = m(() => o.element || {}), f = m(() => l.value.events || []), u = le(), y = oe(), p = ee(n, l, u, y);
2667
+ const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
2667
2668
  Q(() => {
2668
- r.value = te(f.value, o.designStatus, p), r.value?.beforeMount();
2669
+ r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
2669
2670
  }), q(() => {
2670
- I(), r.value?.mounted();
2671
+ j(), r.value?.mounted();
2671
2672
  }), J(() => {
2672
2673
  r.value?.beforeUnmount();
2673
2674
  }), $(() => {
2674
2675
  r.value?.unmounted();
2675
2676
  });
2676
- const { dynamicColor: a } = Ce(n, i, e.rules, Y), _ = m(() => a.lineColor ? a.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), w = g([]), j = g([]);
2677
- T(() => l.value.style.width, (W) => {
2678
- I();
2679
- }), T(() => l.value.style.height, (W) => {
2680
- I();
2677
+ const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), V = y([]), W = y([]);
2678
+ B(() => l.value.style.width, (L) => {
2679
+ j();
2680
+ }), B(() => l.value.style.height, (L) => {
2681
+ j();
2681
2682
  });
2682
- const I = () => {
2683
- const { width: W, height: O } = l.value.style;
2684
- C(W, O);
2685
- }, C = (W, O) => {
2686
- const k = [0, 0.5], s = [1, 0.5];
2687
- w.value = [W * k[0], O * k[1]], j.value = [W * s[0], O * s[1]];
2688
- }, M = { props: o, dataCache: e, smartData: i, eventHandler: r, propValue: n, element: l, events: f, router: u, route: y, compContext: p, dynamicColor: a, showLineColor: _, LineL1P1: w, LineL1P2: j, draw: I, drawChart: C, get useEventHandler() {
2683
+ const j = () => {
2684
+ const { width: L, height: P } = l.value.style;
2685
+ b(L, P);
2686
+ }, b = (L, P) => {
2687
+ const k = [0, 0.5], u = [1, 0.5];
2688
+ V.value = [L * k[0], P * k[1]], W.value = [L * u[0], P * u[1]];
2689
+ }, M = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showLineColor: p, LineL1P1: V, LineL1P2: W, draw: j, drawChart: b, get useEventHandler() {
2689
2690
  return te;
2690
2691
  }, get useDataCacheStore() {
2691
2692
  return re;
@@ -2693,21 +2694,21 @@ const vo = /* @__PURE__ */ fe(co, [["render", fo], ["__scopeId", "data-v-939b62a
2693
2694
  return ae;
2694
2695
  }, get CreateCompContext() {
2695
2696
  return ee;
2696
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
2697
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
2697
2698
  return oe;
2698
2699
  }, get useRouter() {
2699
2700
  return le;
2700
2701
  }, get CommonUtils() {
2701
2702
  return Y;
2702
2703
  }, get useDynamicColor() {
2703
- return Ce;
2704
+ return be;
2704
2705
  } };
2705
2706
  return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
2706
2707
  }
2707
2708
  });
2708
- function ho(t, c, o, e, i, r) {
2709
- return P(), F("div", { class: "svg-container" }, [
2710
- (P(), F("svg", {
2709
+ function ho(t, c, o, e, s, r) {
2710
+ return R(), z("div", { class: "svg-container" }, [
2711
+ (R(), z("svg", {
2711
2712
  xmlns: "http://www.w3.org/2000/svg",
2712
2713
  width: e.element.style.width,
2713
2714
  height: e.element.style.height
@@ -2721,7 +2722,7 @@ function ho(t, c, o, e, i, r) {
2721
2722
  "stroke-width": e.propValue.strokeWidth,
2722
2723
  "stroke-dasharray": e.propValue.strokeDasharray
2723
2724
  }, [
2724
- e.propValue.animate ? (P(), F("animate", {
2725
+ e.propValue.animate ? (R(), z("animate", {
2725
2726
  key: 0,
2726
2727
  attributeName: "stroke-dashoffset",
2727
2728
  from: e.propValue.animateFrom,
@@ -2756,29 +2757,29 @@ const mo = /* @__PURE__ */ fe(po, [["render", ho], ["__scopeId", "data-v-7dcb208
2756
2757
  },
2757
2758
  setup(t, { expose: c }) {
2758
2759
  c();
2759
- const { generateSecureUUID: o } = Y, e = t, i = re(), r = ae(i), n = g(null), l = m(() => e.propValue || {}), f = m(() => e.element || {}), u = m(() => f.value.events || []), y = le(), p = oe(), a = ee(l, f, y, p);
2760
+ const { generateSecureUUID: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
2760
2761
  Q(() => {
2761
- n.value = te(u.value, e.designStatus, a), n.value?.beforeMount(), V.value = o();
2762
+ n.value = te(a.value, e.designStatus, i), n.value?.beforeMount(), I.value = o();
2762
2763
  }), q(() => {
2763
- s(), n.value?.mounted();
2764
+ u(), n.value?.mounted();
2764
2765
  }), J(() => {
2765
2766
  n.value?.beforeUnmount();
2766
2767
  }), $(() => {
2767
2768
  n.value?.unmounted();
2768
2769
  });
2769
- const { dynamicColor: _ } = Ce(l, r, i.rules, Y), w = m(() => _.fillColor ? _.fillColor : l.value.fillColor ? l.value.fillColor : "none"), j = m(() => _.lineColor ? _.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), I = g(0), C = g(0), M = g(1), W = g(1), O = g(0), k = g(0);
2770
- T(() => f.value.style.width, (H) => {
2771
- s();
2772
- }), T(() => f.value.style.height, (H) => {
2773
- s();
2770
+ const { dynamicColor: p } = be(l, r, s.rules, Y), V = h(() => p.fillColor ? p.fillColor : l.value.fillColor ? l.value.fillColor : "none"), W = h(() => p.lineColor ? p.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), j = y(0), b = y(0), M = y(1), L = y(1), P = y(0), k = y(0);
2771
+ B(() => f.value.style.width, (H) => {
2772
+ u();
2773
+ }), B(() => f.value.style.height, (H) => {
2774
+ u();
2774
2775
  });
2775
- const s = () => {
2776
- const { width: H, height: x } = f.value.style;
2777
- S(H, x);
2778
- }, S = (H, x) => {
2779
- let h = l.value.strokeWidth, B = h / 2;
2780
- I.value = 0 * H + B, C.value = 0 * x + B, M.value = x * 1 - h, W.value = H * 1 - h;
2781
- }, V = g(""), b = m(() => l.value.hasGradient ? `url(#${V.value})` : w.value), A = { generateSecureUUID: o, props: e, dataCache: i, smartData: r, eventHandler: n, propValue: l, element: f, events: u, router: y, route: p, compContext: a, dynamicColor: _, showFillColor: w, showLineColor: j, rlux: I, rluy: C, rhight: M, rwidth: W, rrx: O, rry: k, draw: s, drawChart: S, gradientId: V, fillStyle: b, get useEventHandler() {
2776
+ const u = () => {
2777
+ const { width: H, height: S } = f.value.style;
2778
+ _(H, S);
2779
+ }, _ = (H, S) => {
2780
+ let w = l.value.strokeWidth, A = w / 2;
2781
+ j.value = 0 * H + A, b.value = 0 * S + A, M.value = S * 1 - w, L.value = H * 1 - w;
2782
+ }, I = y(""), m = h(() => l.value.hasGradient ? `url(#${I.value})` : V.value), F = { generateSecureUUID: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, dynamicColor: p, showFillColor: V, showLineColor: W, rlux: j, rluy: b, rhight: M, rwidth: L, rrx: P, rry: k, draw: u, drawChart: _, gradientId: I, fillStyle: m, get useEventHandler() {
2782
2783
  return te;
2783
2784
  }, get useDataCacheStore() {
2784
2785
  return re;
@@ -2786,31 +2787,31 @@ const mo = /* @__PURE__ */ fe(po, [["render", ho], ["__scopeId", "data-v-7dcb208
2786
2787
  return ae;
2787
2788
  }, get CreateCompContext() {
2788
2789
  return ee;
2789
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get CommonUtils() {
2790
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get CommonUtils() {
2790
2791
  return Y;
2791
2792
  }, get useRoute() {
2792
2793
  return oe;
2793
2794
  }, get useRouter() {
2794
2795
  return le;
2795
2796
  }, get useDynamicColor() {
2796
- return Ce;
2797
+ return be;
2797
2798
  } };
2798
- return Object.defineProperty(A, "__isScriptSetup", { enumerable: !1, value: !0 }), A;
2799
+ return Object.defineProperty(F, "__isScriptSetup", { enumerable: !1, value: !0 }), F;
2799
2800
  }
2800
2801
  });
2801
- function yo(t, c, o, e, i, r) {
2802
- return P(), F("div", { class: "svg-container" }, [
2803
- (P(), F("svg", {
2802
+ function yo(t, c, o, e, s, r) {
2803
+ return R(), z("div", { class: "svg-container" }, [
2804
+ (R(), z("svg", {
2804
2805
  xmlns: "http://www.w3.org/2000/svg",
2805
2806
  width: e.element.style.width,
2806
2807
  height: e.element.style.height
2807
2808
  }, [
2808
2809
  ne(" 根据条件判断是否渲染渐变定义 "),
2809
2810
  de(),
2810
- e.propValue.hasGradient ? (P(), F("defs", { key: 0 }, [
2811
+ e.propValue.hasGradient ? (R(), z("defs", { key: 0 }, [
2811
2812
  ne(" 这里根据渐变类型动态渲染线性或径向渐变 "),
2812
2813
  de(),
2813
- e.propValue.gradientType === "linear" ? (P(), F("linearGradient", {
2814
+ e.propValue.gradientType === "linear" ? (R(), z("linearGradient", {
2814
2815
  key: 0,
2815
2816
  id: e.gradientId,
2816
2817
  x1: e.propValue.gradientX1 + "%",
@@ -2818,18 +2819,18 @@ function yo(t, c, o, e, i, r) {
2818
2819
  y1: e.propValue.gradientY1 + "%",
2819
2820
  y2: e.propValue.gradientY2 + "%"
2820
2821
  }, [
2821
- (P(), F("stop", {
2822
+ (R(), z("stop", {
2822
2823
  key: 1,
2823
2824
  offset: e.propValue.gradientStopsOffset + "%",
2824
2825
  "stop-color": e.propValue.gradientStopsColor
2825
2826
  }, null, 8, ["offset", "stop-color"])),
2826
2827
  de(),
2827
- (P(), F("stop", {
2828
+ (R(), z("stop", {
2828
2829
  key: 2,
2829
2830
  offset: e.propValue.gradientStopsOffset2 + "%",
2830
2831
  "stop-color": e.propValue.gradientStopsColor2
2831
2832
  }, null, 8, ["offset", "stop-color"]))
2832
- ], 8, ["id", "x1", "x2", "y1", "y2"])) : (P(), F("radialGradient", {
2833
+ ], 8, ["id", "x1", "x2", "y1", "y2"])) : (R(), z("radialGradient", {
2833
2834
  key: 1,
2834
2835
  id: e.gradientId,
2835
2836
  cx: e.propValue.gradientCx + "%",
@@ -2838,13 +2839,13 @@ function yo(t, c, o, e, i, r) {
2838
2839
  fx: e.propValue.gradientFx + "%",
2839
2840
  fy: e.propValue.gradientFy + "%"
2840
2841
  }, [
2841
- (P(), F("stop", {
2842
+ (R(), z("stop", {
2842
2843
  key: 1,
2843
2844
  offset: e.propValue.gradientStopsOffset + "%",
2844
2845
  "stop-color": e.propValue.gradientStopsColor
2845
2846
  }, null, 8, ["offset", "stop-color"])),
2846
2847
  de(),
2847
- (P(), F("stop", {
2848
+ (R(), z("stop", {
2848
2849
  key: 2,
2849
2850
  offset: e.propValue.gradientStopsOffset2 + "%",
2850
2851
  "stop-color": e.propValue.gradientStopsColor2
@@ -2892,30 +2893,30 @@ const Co = /* @__PURE__ */ fe(go, [["render", yo], ["__scopeId", "data-v-4ce499b
2892
2893
  },
2893
2894
  setup(t, { expose: c }) {
2894
2895
  c();
2895
- const o = t, e = re(), i = ae(e), r = g(null), n = m(() => o.propValue || {}), l = m(() => o.element || {}), f = m(() => l.value.events || []), u = le(), y = oe(), p = ee(n, l, u, y);
2896
+ const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
2896
2897
  Q(() => {
2897
- r.value = te(f.value, o.designStatus, p), r.value?.beforeMount();
2898
+ r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
2898
2899
  }), q(() => {
2899
- I(), r.value?.mounted();
2900
+ j(), r.value?.mounted();
2900
2901
  }), J(() => {
2901
2902
  r.value?.beforeUnmount();
2902
2903
  }), $(() => {
2903
2904
  r.value?.unmounted();
2904
2905
  });
2905
- const { dynamicColor: a } = Ce(n, i, e.rules, Y), _ = m(() => a.fillColor ? a.fillColor : n.value.fillColor ? n.value.fillColor : "none"), w = m(() => a.lineColor ? a.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), j = g([]);
2906
- T(() => l.value.style.width, (W) => {
2907
- I();
2908
- }), T(() => l.value.style.height, (W) => {
2909
- I();
2906
+ const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.fillColor ? i.fillColor : n.value.fillColor ? n.value.fillColor : "none"), V = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), W = y([]);
2907
+ B(() => l.value.style.width, (L) => {
2908
+ j();
2909
+ }), B(() => l.value.style.height, (L) => {
2910
+ j();
2910
2911
  });
2911
- const I = () => {
2912
- const { width: W, height: O } = l.value.style;
2913
- C(W, O);
2914
- }, C = (W, O) => {
2912
+ const j = () => {
2913
+ const { width: L, height: P } = l.value.style;
2914
+ b(L, P);
2915
+ }, b = (L, P) => {
2915
2916
  const k = [];
2916
- let s = 0, S = n.value.strokeWidth;
2917
- k[s++] = "M", k[s++] = 0.5 * W, k[s++] = 0 + S, k[s++] = "L", k[s++] = 0 + S, k[s++] = O - S, k[s++] = "L", k[s++] = W - S, k[s++] = O - S, k[s++] = "Z", j.value = k.join(" ");
2918
- }, M = { props: o, dataCache: e, smartData: i, eventHandler: r, propValue: n, element: l, events: f, router: u, route: y, compContext: p, dynamicColor: a, showFillColor: _, showLineColor: w, pathData: j, draw: I, drawChart: C, get useEventHandler() {
2917
+ let u = 0, _ = n.value.strokeWidth;
2918
+ k[u++] = "M", k[u++] = 0.5 * L, k[u++] = 0 + _, k[u++] = "L", k[u++] = 0 + _, k[u++] = P - _, k[u++] = "L", k[u++] = L - _, k[u++] = P - _, k[u++] = "Z", W.value = k.join(" ");
2919
+ }, M = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showFillColor: p, showLineColor: V, pathData: W, draw: j, drawChart: b, get useEventHandler() {
2919
2920
  return te;
2920
2921
  }, get useDataCacheStore() {
2921
2922
  return re;
@@ -2923,21 +2924,21 @@ const Co = /* @__PURE__ */ fe(go, [["render", yo], ["__scopeId", "data-v-4ce499b
2923
2924
  return ae;
2924
2925
  }, get CreateCompContext() {
2925
2926
  return ee;
2926
- }, ref: g, computed: m, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, watch: T, get useRoute() {
2927
+ }, ref: y, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, watch: B, get useRoute() {
2927
2928
  return oe;
2928
2929
  }, get useRouter() {
2929
2930
  return le;
2930
2931
  }, get CommonUtils() {
2931
2932
  return Y;
2932
2933
  }, get useDynamicColor() {
2933
- return Ce;
2934
+ return be;
2934
2935
  } };
2935
2936
  return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
2936
2937
  }
2937
2938
  });
2938
- function xo(t, c, o, e, i, r) {
2939
- return P(), F("div", { class: "svg-container" }, [
2940
- (P(), F("svg", {
2939
+ function xo(t, c, o, e, s, r) {
2940
+ return R(), z("div", { class: "svg-container" }, [
2941
+ (R(), z("svg", {
2941
2942
  xmlns: "http://www.w3.org/2000/svg",
2942
2943
  width: e.element.style.width,
2943
2944
  height: e.element.style.height
@@ -2974,29 +2975,29 @@ const So = /* @__PURE__ */ fe(bo, [["render", xo], ["__scopeId", "data-v-aec13cc
2974
2975
  },
2975
2976
  setup(t, { expose: c }) {
2976
2977
  c();
2977
- const o = t, e = re(), i = ae(e), r = g(null), n = m(() => o.propValue || {}), l = m(() => o.element || {}), f = m(() => l.value.events || []), u = le(), y = oe(), p = ee(n, l, u, y);
2978
+ const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
2978
2979
  Q(() => {
2979
- r.value = te(f.value, o.designStatus, p), r.value?.beforeMount();
2980
+ r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
2980
2981
  }), q(() => {
2981
- I(), r.value?.mounted();
2982
+ j(), r.value?.mounted();
2982
2983
  }), J(() => {
2983
2984
  r.value?.beforeUnmount();
2984
2985
  }), $(() => {
2985
2986
  r.value?.unmounted();
2986
2987
  });
2987
- const { dynamicColor: a } = Ce(n, i, e.rules, Y), _ = m(() => a.lineColor ? a.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), w = g([]), j = g([]);
2988
- T(() => l.value.style.width, (W) => {
2989
- I();
2990
- }), T(() => l.value.style.height, (W) => {
2991
- I();
2988
+ const { dynamicColor: i } = be(n, s, e.rules, Y), p = h(() => i.lineColor ? i.lineColor : n.value.strokeColor ? n.value.strokeColor : "none"), V = y([]), W = y([]);
2989
+ B(() => l.value.style.width, (L) => {
2990
+ j();
2991
+ }), B(() => l.value.style.height, (L) => {
2992
+ j();
2992
2993
  });
2993
- const I = () => {
2994
- const { width: W, height: O } = l.value.style;
2995
- C(W, O);
2996
- }, C = (W, O) => {
2997
- const k = [0.5, 0], s = [0.5, 1];
2998
- w.value = [W * k[0], O * k[1]], j.value = [W * s[0], O * s[1]];
2999
- }, M = { props: o, dataCache: e, smartData: i, eventHandler: r, propValue: n, element: l, events: f, router: u, route: y, compContext: p, dynamicColor: a, showLineColor: _, LineL1P1: w, LineL1P2: j, draw: I, drawChart: C, get useEventHandler() {
2994
+ const j = () => {
2995
+ const { width: L, height: P } = l.value.style;
2996
+ b(L, P);
2997
+ }, b = (L, P) => {
2998
+ const k = [0.5, 0], u = [0.5, 1];
2999
+ V.value = [L * k[0], P * k[1]], W.value = [L * u[0], P * u[1]];
3000
+ }, M = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, dynamicColor: i, showLineColor: p, LineL1P1: V, LineL1P2: W, draw: j, drawChart: b, get useEventHandler() {
3000
3001
  return te;
3001
3002
  }, get useDataCacheStore() {
3002
3003
  return re;
@@ -3004,21 +3005,21 @@ const So = /* @__PURE__ */ fe(bo, [["render", xo], ["__scopeId", "data-v-aec13cc
3004
3005
  return ae;
3005
3006
  }, get CreateCompContext() {
3006
3007
  return ee;
3007
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3008
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3008
3009
  return oe;
3009
3010
  }, get useRouter() {
3010
3011
  return le;
3011
3012
  }, get CommonUtils() {
3012
3013
  return Y;
3013
3014
  }, get useDynamicColor() {
3014
- return Ce;
3015
+ return be;
3015
3016
  } };
3016
3017
  return Object.defineProperty(M, "__isScriptSetup", { enumerable: !1, value: !0 }), M;
3017
3018
  }
3018
3019
  });
3019
- function ko(t, c, o, e, i, r) {
3020
- return P(), F("div", { class: "svg-container" }, [
3021
- (P(), F("svg", {
3020
+ function ko(t, c, o, e, s, r) {
3021
+ return R(), z("div", { class: "svg-container" }, [
3022
+ (R(), z("svg", {
3022
3023
  xmlns: "http://www.w3.org/2000/svg",
3023
3024
  width: e.element.style.width,
3024
3025
  height: e.element.style.height
@@ -3032,7 +3033,7 @@ function ko(t, c, o, e, i, r) {
3032
3033
  "stroke-width": e.propValue.strokeWidth,
3033
3034
  "stroke-dasharray": e.propValue.strokeDasharray
3034
3035
  }, [
3035
- e.propValue.animate ? (P(), F("animate", {
3036
+ e.propValue.animate ? (R(), z("animate", {
3036
3037
  key: 0,
3037
3038
  attributeName: "stroke-dashoffset",
3038
3039
  from: e.propValue.animateFrom,
@@ -3066,55 +3067,55 @@ const wo = /* @__PURE__ */ fe(_o, [["render", ko], ["__scopeId", "data-v-cddc726
3066
3067
  }
3067
3068
  },
3068
3069
  setup(t, { expose: c }) {
3069
- const o = t, e = g(null), i = m(() => o.propValue || {}), r = m(() => o.element || {}), n = m(() => r.value.events || []), l = g(0), f = g(0), u = g(""), y = g(""), p = (s) => {
3070
- e.value?.handleClick(s);
3071
- }, a = (s) => {
3072
- e.value?.handleDblClick(s);
3070
+ const o = t, e = y(null), s = h(() => o.propValue || {}), r = h(() => o.element || {}), n = h(() => r.value.events || []), l = y(0), f = y(0), a = y(""), C = y(""), v = (u) => {
3071
+ e.value?.handleClick(u);
3072
+ }, i = (u) => {
3073
+ e.value?.handleDblClick(u);
3073
3074
  };
3074
- T(() => r.value.style.width, (s) => {
3075
- _();
3076
- }), T(() => r.value.style.height, (s) => {
3077
- _();
3078
- }), T(() => i.value.horizontalAlign, (s) => {
3079
- _();
3080
- }), T(() => i.value.offsetX, (s) => {
3081
- _();
3075
+ B(() => r.value.style.width, (u) => {
3076
+ p();
3077
+ }), B(() => r.value.style.height, (u) => {
3078
+ p();
3079
+ }), B(() => s.value.horizontalAlign, (u) => {
3080
+ p();
3081
+ }), B(() => s.value.offsetX, (u) => {
3082
+ p();
3082
3083
  });
3083
- const _ = () => {
3084
- const { width: s, height: S } = o.element.style;
3085
- w(s, S);
3086
- }, w = (s, S) => {
3087
- let V = o.propValue.horizontalAlign || "left", b = o.propValue.offsetX || 0;
3088
- V == "center" ? (y.value = "middle", l.value = s * 0.5) : V == "right" ? (l.value = s - b, y.value = "end") : (l.value = 0 + b, y.value = "start"), u.value = "central", f.value = S * 0.5;
3089
- }, j = le(), I = oe(), C = ee(i, r, j, I);
3084
+ const p = () => {
3085
+ const { width: u, height: _ } = o.element.style;
3086
+ V(u, _);
3087
+ }, V = (u, _) => {
3088
+ let I = o.propValue.horizontalAlign || "left", m = o.propValue.offsetX || 0;
3089
+ I == "center" ? (C.value = "middle", l.value = u * 0.5) : I == "right" ? (l.value = u - m, C.value = "end") : (l.value = 0 + m, C.value = "start"), a.value = "central", f.value = _ * 0.5;
3090
+ }, W = le(), j = oe(), b = ee(s, r, W, j);
3090
3091
  Q(() => {
3091
- e.value = te(n.value, o.designStatus, C), e.value?.beforeMount();
3092
+ e.value = te(n.value, o.designStatus, b), e.value?.beforeMount();
3092
3093
  }), q(() => {
3093
- _(), e.value?.mounted();
3094
+ p(), e.value?.mounted();
3094
3095
  }), J(() => {
3095
3096
  e.value?.beforeUnmount();
3096
3097
  }), $(() => {
3097
3098
  e.value?.unmounted();
3098
3099
  }), c({
3099
- handleClick: p
3100
+ handleClick: v
3100
3101
  });
3101
- const { processMenus: M } = je(), W = (s) => {
3102
- s.preventDefault();
3103
- let S = i.value.menuItems || [];
3104
- if (Y.isArray(S) && S.length > 0) {
3105
- let V = [];
3106
- V = M(S, function(b, A) {
3107
- e.value?.handleContextMenu(s, b.value);
3108
- }), We.showContextMenu({
3109
- x: s.x,
3110
- y: s.y,
3111
- items: V
3102
+ const { processMenus: M } = Le(), L = (u) => {
3103
+ u.preventDefault();
3104
+ let _ = s.value.menuItems || [];
3105
+ if (Y.isArray(_) && _.length > 0) {
3106
+ let I = [];
3107
+ I = M(_, function(m, F) {
3108
+ e.value?.handleContextMenu(u, m.value);
3109
+ }), je.showContextMenu({
3110
+ x: u.x,
3111
+ y: u.y,
3112
+ items: I
3112
3113
  });
3113
3114
  }
3114
- }, O = m(() => {
3115
- let s = {};
3116
- return s.cursor = Se(n.value), s;
3117
- }), k = { props: o, eventHandler: e, propValue: i, element: r, events: n, textX: l, textY: f, textBaseLine: u, textAnchor: y, handleClick: p, handleDblClick: a, draw: _, drawChart: w, router: j, route: I, compContext: C, processMenus: M, openContextMenu: W, customStyle: O, get useEventHandler() {
3115
+ }, P = h(() => {
3116
+ let u = {};
3117
+ return u.cursor = _e(n.value), u;
3118
+ }), k = { props: o, eventHandler: e, propValue: s, element: r, events: n, textX: l, textY: f, textBaseLine: a, textAnchor: C, handleClick: v, handleDblClick: i, draw: p, drawChart: V, router: W, route: j, compContext: b, processMenus: M, openContextMenu: L, customStyle: P, get useEventHandler() {
3118
3119
  return te;
3119
3120
  }, get useDataCacheStore() {
3120
3121
  return re;
@@ -3124,34 +3125,34 @@ const wo = /* @__PURE__ */ fe(_o, [["render", ko], ["__scopeId", "data-v-cddc726
3124
3125
  return ee;
3125
3126
  }, get CommonUtils() {
3126
3127
  return Y;
3127
- }, watch: T, onMounted: q, computed: m, ref: g, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3128
+ }, watch: B, onMounted: q, computed: h, ref: y, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3128
3129
  return oe;
3129
3130
  }, get useRouter() {
3130
3131
  return le;
3131
3132
  }, get ContextMenu() {
3132
- return We;
3133
- }, get useMenuHandler() {
3134
3133
  return je;
3134
+ }, get useMenuHandler() {
3135
+ return Le;
3135
3136
  }, get getCursorByEvents() {
3136
- return Se;
3137
+ return _e;
3137
3138
  } };
3138
3139
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
3139
3140
  }
3140
3141
  });
3141
- function Mo(t, c, o, e, i, r) {
3142
- return P(), F("div", {
3142
+ function Mo(t, c, o, e, s, r) {
3143
+ return R(), z("div", {
3143
3144
  class: "svg-container",
3144
- style: ye(e.customStyle),
3145
+ style: Ce(e.customStyle),
3145
3146
  onClick: e.handleClick,
3146
3147
  onDblclick: e.handleDblClick,
3147
3148
  onContextmenu: e.openContextMenu
3148
3149
  }, [
3149
- (P(), F("svg", {
3150
+ (R(), z("svg", {
3150
3151
  xmlns: "http://www.w3.org/2000/svg",
3151
3152
  width: e.element.style.width,
3152
3153
  height: e.element.style.height
3153
3154
  }, [
3154
- e.propValue.hasBackground ? (P(), F("rect", {
3155
+ e.propValue.hasBackground ? (R(), z("rect", {
3155
3156
  key: 0,
3156
3157
  x: 1,
3157
3158
  y: 1,
@@ -3203,57 +3204,57 @@ const Oo = /* @__PURE__ */ fe(Vo, [["render", Mo], ["__scopeId", "data-v-bab9827
3203
3204
  },
3204
3205
  setup(t, { expose: c }) {
3205
3206
  c();
3206
- const { isNotEmpty: o } = Y, e = t, i = m(() => e.propValue || {}), r = m(() => e.element || {}), n = m(() => r.value.events || []), l = g(null), f = m(() => {
3207
- const { width: V, height: b } = r.value.style;
3208
- let A = V / 2, H = b / 2;
3209
- return o(i.value.translateX) || o(i.value.translateY) ? o(i.value.translateX) && o(i.value.translateY) ? `rotate(90,${A},${H}) translate(${i.value.translateX}, ${i.value.translateY})` : o(i.value.translateX) ? `rotate(90,${A},${H}) translate(${i.value.translateX}, 0)` : `rotate(90,${A},${H}) translate(0, ${i.value.translateY})` : `rotate(90,${A},${H})`;
3210
- }), u = g(0), y = g(0), p = g(""), a = g(""), _ = (V) => {
3211
- l.value?.handleClick(V);
3212
- }, w = (V) => {
3213
- l.value?.handleDblClick(V);
3207
+ const { isNotEmpty: o } = Y, e = t, s = h(() => e.propValue || {}), r = h(() => e.element || {}), n = h(() => r.value.events || []), l = y(null), f = h(() => {
3208
+ const { width: I, height: m } = r.value.style;
3209
+ let F = I / 2, H = m / 2;
3210
+ return o(s.value.translateX) || o(s.value.translateY) ? o(s.value.translateX) && o(s.value.translateY) ? `rotate(90,${F},${H}) translate(${s.value.translateX}, ${s.value.translateY})` : o(s.value.translateX) ? `rotate(90,${F},${H}) translate(${s.value.translateX}, 0)` : `rotate(90,${F},${H}) translate(0, ${s.value.translateY})` : `rotate(90,${F},${H})`;
3211
+ }), a = y(0), C = y(0), v = y(""), i = y(""), p = (I) => {
3212
+ l.value?.handleClick(I);
3213
+ }, V = (I) => {
3214
+ l.value?.handleDblClick(I);
3214
3215
  };
3215
- T(() => r.value.style.width, (V) => {
3216
- j();
3217
- }), T(() => r.value.style.height, (V) => {
3218
- j();
3219
- }), T(() => i.value.horizontalAlign, (V) => {
3220
- j();
3221
- }), T(() => i.value.offsetX, (V) => {
3222
- j();
3216
+ B(() => r.value.style.width, (I) => {
3217
+ W();
3218
+ }), B(() => r.value.style.height, (I) => {
3219
+ W();
3220
+ }), B(() => s.value.horizontalAlign, (I) => {
3221
+ W();
3222
+ }), B(() => s.value.offsetX, (I) => {
3223
+ W();
3223
3224
  });
3224
- const j = () => {
3225
- const { width: V, height: b } = e.element.style;
3226
- I(V, b);
3227
- }, I = (V, b) => {
3228
- let A = e.propValue.horizontalAlign || "left", H = e.propValue.offsetX || 0;
3229
- A == "center" ? (a.value = "middle", u.value = V * 0.5) : A == "right" ? (u.value = V - H, a.value = "end") : (u.value = 0 + H, a.value = "start"), p.value = "central", y.value = b * 0.5;
3230
- }, C = le(), M = oe(), W = ee(i, r, C, M);
3225
+ const W = () => {
3226
+ const { width: I, height: m } = e.element.style;
3227
+ j(I, m);
3228
+ }, j = (I, m) => {
3229
+ let F = e.propValue.horizontalAlign || "left", H = e.propValue.offsetX || 0;
3230
+ F == "center" ? (i.value = "middle", a.value = I * 0.5) : F == "right" ? (a.value = I - H, i.value = "end") : (a.value = 0 + H, i.value = "start"), v.value = "central", C.value = m * 0.5;
3231
+ }, b = le(), M = oe(), L = ee(s, r, b, M);
3231
3232
  Q(() => {
3232
- l.value = te(n.value, e.designStatus, W), l.value?.beforeMount();
3233
+ l.value = te(n.value, e.designStatus, L), l.value?.beforeMount();
3233
3234
  }), q(() => {
3234
- j(), l.value?.mounted();
3235
+ W(), l.value?.mounted();
3235
3236
  }), J(() => {
3236
3237
  l.value?.beforeUnmount();
3237
3238
  }), $(() => {
3238
3239
  l.value?.unmounted();
3239
3240
  });
3240
- const { processMenus: O } = je(), k = (V) => {
3241
- V.preventDefault();
3242
- let b = i.value.menuItems || [];
3243
- if (Y.isArray(b) && b.length > 0) {
3244
- let A = [];
3245
- A = O(b, function(H, x) {
3246
- l.value?.handleContextMenu(V, H.value);
3247
- }), We.showContextMenu({
3248
- x: V.x,
3249
- y: V.y,
3250
- items: A
3241
+ const { processMenus: P } = Le(), k = (I) => {
3242
+ I.preventDefault();
3243
+ let m = s.value.menuItems || [];
3244
+ if (Y.isArray(m) && m.length > 0) {
3245
+ let F = [];
3246
+ F = P(m, function(H, S) {
3247
+ l.value?.handleContextMenu(I, H.value);
3248
+ }), je.showContextMenu({
3249
+ x: I.x,
3250
+ y: I.y,
3251
+ items: F
3251
3252
  });
3252
3253
  }
3253
- }, s = m(() => {
3254
- let V = {};
3255
- return V.cursor = Se(n.value), V;
3256
- }), S = { isNotEmpty: o, props: e, propValue: i, element: r, events: n, eventHandler: l, transformAttr: f, textX: u, textY: y, textBaseLine: p, textAnchor: a, handleClick: _, handleDblClick: w, draw: j, drawChart: I, router: C, route: M, compContext: W, processMenus: O, openContextMenu: k, customStyle: s, get useEventHandler() {
3254
+ }, u = h(() => {
3255
+ let I = {};
3256
+ return I.cursor = _e(n.value), I;
3257
+ }), _ = { isNotEmpty: o, props: e, propValue: s, element: r, events: n, eventHandler: l, transformAttr: f, textX: a, textY: C, textBaseLine: v, textAnchor: i, handleClick: p, handleDblClick: V, draw: W, drawChart: j, router: b, route: M, compContext: L, processMenus: P, openContextMenu: k, customStyle: u, get useEventHandler() {
3257
3258
  return te;
3258
3259
  }, get useDataCacheStore() {
3259
3260
  return re;
@@ -3261,36 +3262,36 @@ const Oo = /* @__PURE__ */ fe(Vo, [["render", Mo], ["__scopeId", "data-v-bab9827
3261
3262
  return ae;
3262
3263
  }, get CreateCompContext() {
3263
3264
  return ee;
3264
- }, ref: g, watch: T, computed: m, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3265
+ }, ref: y, watch: B, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3265
3266
  return oe;
3266
3267
  }, get useRouter() {
3267
3268
  return le;
3268
3269
  }, get CommonUtils() {
3269
3270
  return Y;
3270
3271
  }, get ContextMenu() {
3271
- return We;
3272
- }, get useMenuHandler() {
3273
3272
  return je;
3273
+ }, get useMenuHandler() {
3274
+ return Le;
3274
3275
  }, get getCursorByEvents() {
3275
- return Se;
3276
+ return _e;
3276
3277
  } };
3277
- return Object.defineProperty(S, "__isScriptSetup", { enumerable: !1, value: !0 }), S;
3278
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
3278
3279
  }
3279
3280
  });
3280
- function Io(t, c, o, e, i, r) {
3281
- return P(), F("div", {
3281
+ function Io(t, c, o, e, s, r) {
3282
+ return R(), z("div", {
3282
3283
  class: "svg-container",
3283
- style: ye(e.customStyle),
3284
+ style: Ce(e.customStyle),
3284
3285
  onClick: e.handleClick,
3285
3286
  onDblclick: e.handleDblClick,
3286
3287
  onContextmenu: e.openContextMenu
3287
3288
  }, [
3288
- (P(), F("svg", {
3289
+ (R(), z("svg", {
3289
3290
  xmlns: "http://www.w3.org/2000/svg",
3290
3291
  width: e.element.style.width,
3291
3292
  height: e.element.style.height
3292
3293
  }, [
3293
- e.propValue.hasBackground ? (P(), F("rect", {
3294
+ e.propValue.hasBackground ? (R(), z("rect", {
3294
3295
  key: 0,
3295
3296
  x: 1,
3296
3297
  y: 1,
@@ -3305,7 +3306,7 @@ function Io(t, c, o, e, i, r) {
3305
3306
  "stroke-width": e.propValue.strokeWidth
3306
3307
  }, null, 8, ["width", "height", "rx", "ry", "fill", "stroke", "fill-opacity", "stroke-opacity", "stroke-width"])) : ne("", !0),
3307
3308
  de(),
3308
- e.propValue.verticalText ? (P(), F("text", {
3309
+ e.propValue.verticalText ? (R(), z("text", {
3309
3310
  key: 1,
3310
3311
  x: e.textX,
3311
3312
  y: e.textY,
@@ -3319,7 +3320,7 @@ function Io(t, c, o, e, i, r) {
3319
3320
  style: { "letter-spacing": "5px" },
3320
3321
  transform: e.transformAttr,
3321
3322
  rotate: "-90"
3322
- }, De(e.propValue.text), 9, ["x", "y", "dx", "fill", "dominant-baseline", "text-anchor", "font-family", "font-size", "font-weight", "transform"])) : (P(), F("text", {
3323
+ }, De(e.propValue.text), 9, ["x", "y", "dx", "fill", "dominant-baseline", "text-anchor", "font-family", "font-size", "font-weight", "transform"])) : (R(), z("text", {
3323
3324
  key: 2,
3324
3325
  x: e.textX,
3325
3326
  y: e.textY,
@@ -3357,9 +3358,9 @@ const Wo = /* @__PURE__ */ fe(Do, [["render", Io], ["__scopeId", "data-v-2959cd0
3357
3358
  },
3358
3359
  setup(t, { expose: c }) {
3359
3360
  c();
3360
- const { generateSecureUUID: o } = Y, e = t, i = re(), r = ae(i), n = g(null), l = m(() => e.propValue || {}), f = m(() => e.element || {}), u = m(() => f.value.events || []), y = le(), p = oe(), a = ee(l, f, y, p);
3361
+ const { generateSecureUUID: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
3361
3362
  Q(() => {
3362
- n.value = te(u.value, e.designStatus, a), n.value?.beforeMount(), O.value = o();
3363
+ n.value = te(a.value, e.designStatus, i), n.value?.beforeMount(), P.value = o();
3363
3364
  }), q(() => {
3364
3365
  M(), n.value?.mounted();
3365
3366
  }), J(() => {
@@ -3367,23 +3368,23 @@ const Wo = /* @__PURE__ */ fe(Do, [["render", Io], ["__scopeId", "data-v-2959cd0
3367
3368
  }), $(() => {
3368
3369
  n.value?.unmounted();
3369
3370
  });
3370
- const { dynamicColor: _ } = Ce(l, r, i.rules, Y), w = m(() => _.fillColor ? _.fillColor : l.value.fillColor ? l.value.fillColor : "none"), j = m(() => _.lineColor ? _.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), I = g(""), C = g(2);
3371
- T(() => f.value.style.width, (S) => {
3371
+ const { dynamicColor: p } = be(l, r, s.rules, Y), V = h(() => p.fillColor ? p.fillColor : l.value.fillColor ? l.value.fillColor : "none"), W = h(() => p.lineColor ? p.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), j = y(""), b = y(2);
3372
+ B(() => f.value.style.width, (_) => {
3372
3373
  M();
3373
- }), T(() => f.value.style.height, (S) => {
3374
+ }), B(() => f.value.style.height, (_) => {
3374
3375
  M();
3375
- }), T(() => l.value.tilt, (S) => {
3376
+ }), B(() => l.value.tilt, (_) => {
3376
3377
  M();
3377
- }), T(() => l.value.offsetLen, (S) => {
3378
+ }), B(() => l.value.offsetLen, (_) => {
3378
3379
  M();
3379
3380
  });
3380
3381
  const M = () => {
3381
- const { width: S, height: V } = f.value.style;
3382
- W(S, V);
3383
- }, W = (S, V) => {
3384
- let b = l.value.tilt || "right", A = l.value.offsetLen || 0, H = [], x = 0, Z = Math.round((S - 2 * C.value) * 0.5);
3385
- A = Number(A), A = A < 0 ? 0 : A, A = A > Z ? Z : A, b == "left" ? (H[x++] = C.value, H[x++] = ",", H[x++] = C.value, H[x++] = S - C.value - A, H[x++] = ",", H[x++] = C.value, H[x++] = S - C.value, H[x++] = ",", H[x++] = V - C.value, H[x++] = C.value + A, H[x++] = ",", H[x++] = V - C.value, H[x++] = C.value, H[x++] = ",", H[x++] = C.value, I.value = H.join(" ")) : (H[x++] = C.value + A, H[x++] = ",", H[x++] = C.value, H[x++] = S - C.value, H[x++] = ",", H[x++] = C.value, H[x++] = S - C.value - A, H[x++] = ",", H[x++] = V - C.value, H[x++] = C.value, H[x++] = ",", H[x++] = V - C.value, H[x++] = C.value + A, H[x++] = ",", H[x++] = C.value, I.value = H.join(" "));
3386
- }, O = g(""), k = m(() => l.value.hasGradient ? `url(#${O.value})` : w.value), s = { generateSecureUUID: o, props: e, dataCache: i, smartData: r, eventHandler: n, propValue: l, element: f, events: u, router: y, route: p, compContext: a, dynamicColor: _, showFillColor: w, showLineColor: j, pointDatas: I, gap: C, draw: M, drawChart: W, gradientId: O, fillStyle: k, get useEventHandler() {
3382
+ const { width: _, height: I } = f.value.style;
3383
+ L(_, I);
3384
+ }, L = (_, I) => {
3385
+ let m = l.value.tilt || "right", F = l.value.offsetLen || 0, H = [], S = 0, Z = Math.round((_ - 2 * b.value) * 0.5);
3386
+ F = Number(F), F = F < 0 ? 0 : F, F = F > Z ? Z : F, m == "left" ? (H[S++] = b.value, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value - F, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value + F, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value, H[S++] = ",", H[S++] = b.value, j.value = H.join(" ")) : (H[S++] = b.value + F, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value, H[S++] = ",", H[S++] = b.value, H[S++] = _ - b.value - F, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value, H[S++] = ",", H[S++] = I - b.value, H[S++] = b.value + F, H[S++] = ",", H[S++] = b.value, j.value = H.join(" "));
3387
+ }, P = y(""), k = h(() => l.value.hasGradient ? `url(#${P.value})` : V.value), u = { generateSecureUUID: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, dynamicColor: p, showFillColor: V, showLineColor: W, pointDatas: j, gap: b, draw: M, drawChart: L, gradientId: P, fillStyle: k, get useEventHandler() {
3387
3388
  return te;
3388
3389
  }, get useDataCacheStore() {
3389
3390
  return re;
@@ -3391,31 +3392,31 @@ const Wo = /* @__PURE__ */ fe(Do, [["render", Io], ["__scopeId", "data-v-2959cd0
3391
3392
  return ae;
3392
3393
  }, get CreateCompContext() {
3393
3394
  return ee;
3394
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get CommonUtils() {
3395
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get CommonUtils() {
3395
3396
  return Y;
3396
3397
  }, get useRoute() {
3397
3398
  return oe;
3398
3399
  }, get useRouter() {
3399
3400
  return le;
3400
3401
  }, get useDynamicColor() {
3401
- return Ce;
3402
+ return be;
3402
3403
  } };
3403
- return Object.defineProperty(s, "__isScriptSetup", { enumerable: !1, value: !0 }), s;
3404
+ return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
3404
3405
  }
3405
3406
  });
3406
- function Lo(t, c, o, e, i, r) {
3407
- return P(), F("div", { class: "svg-container" }, [
3408
- (P(), F("svg", {
3407
+ function Lo(t, c, o, e, s, r) {
3408
+ return R(), z("div", { class: "svg-container" }, [
3409
+ (R(), z("svg", {
3409
3410
  xmlns: "http://www.w3.org/2000/svg",
3410
3411
  width: e.element.style.width,
3411
3412
  height: e.element.style.height
3412
3413
  }, [
3413
3414
  ne(" 根据条件判断是否渲染渐变定义 "),
3414
3415
  de(),
3415
- e.propValue.hasGradient ? (P(), F("defs", { key: 0 }, [
3416
+ e.propValue.hasGradient ? (R(), z("defs", { key: 0 }, [
3416
3417
  ne(" 这里根据渐变类型动态渲染线性或径向渐变 "),
3417
3418
  de(),
3418
- e.propValue.gradientType === "linear" ? (P(), F("linearGradient", {
3419
+ e.propValue.gradientType === "linear" ? (R(), z("linearGradient", {
3419
3420
  key: 0,
3420
3421
  id: e.gradientId,
3421
3422
  x1: e.propValue.gradientX1 + "%",
@@ -3423,18 +3424,18 @@ function Lo(t, c, o, e, i, r) {
3423
3424
  y1: e.propValue.gradientY1 + "%",
3424
3425
  y2: e.propValue.gradientY2 + "%"
3425
3426
  }, [
3426
- (P(), F("stop", {
3427
+ (R(), z("stop", {
3427
3428
  key: 1,
3428
3429
  offset: e.propValue.gradientStopsOffset + "%",
3429
3430
  "stop-color": e.propValue.gradientStopsColor
3430
3431
  }, null, 8, ["offset", "stop-color"])),
3431
3432
  de(),
3432
- (P(), F("stop", {
3433
+ (R(), z("stop", {
3433
3434
  key: 2,
3434
3435
  offset: e.propValue.gradientStopsOffset2 + "%",
3435
3436
  "stop-color": e.propValue.gradientStopsColor2
3436
3437
  }, null, 8, ["offset", "stop-color"]))
3437
- ], 8, ["id", "x1", "x2", "y1", "y2"])) : (P(), F("radialGradient", {
3438
+ ], 8, ["id", "x1", "x2", "y1", "y2"])) : (R(), z("radialGradient", {
3438
3439
  key: 1,
3439
3440
  id: e.gradientId,
3440
3441
  cx: e.propValue.gradientCx + "%",
@@ -3443,13 +3444,13 @@ function Lo(t, c, o, e, i, r) {
3443
3444
  fx: e.propValue.gradientFx + "%",
3444
3445
  fy: e.propValue.gradientFy + "%"
3445
3446
  }, [
3446
- (P(), F("stop", {
3447
+ (R(), z("stop", {
3447
3448
  key: 1,
3448
3449
  offset: e.propValue.gradientStopsOffset + "%",
3449
3450
  "stop-color": e.propValue.gradientStopsColor
3450
3451
  }, null, 8, ["offset", "stop-color"])),
3451
3452
  de(),
3452
- (P(), F("stop", {
3453
+ (R(), z("stop", {
3453
3454
  key: 2,
3454
3455
  offset: e.propValue.gradientStopsOffset2 + "%",
3455
3456
  "stop-color": e.propValue.gradientStopsColor2
@@ -3481,40 +3482,40 @@ const Po = /* @__PURE__ */ fe(jo, [["render", Lo], ["__scopeId", "data-v-78f636a
3481
3482
  },
3482
3483
  setup(t, { expose: c }) {
3483
3484
  c();
3484
- const o = t, e = m(() => o.propValue), i = g("");
3485
+ const o = t, e = h(() => o.propValue), s = y("");
3485
3486
  let r = null, n = 3, l = 0;
3486
3487
  q(() => {
3487
3488
  r = setInterval(f, 100);
3488
3489
  });
3489
3490
  const f = () => {
3490
- let y = e.value.value || 0;
3491
- if (isNaN(y))
3491
+ let C = e.value.value || 0;
3492
+ if (isNaN(C))
3492
3493
  return;
3493
- y <= 0 && (y = 0);
3494
- let p = 48 - 46 * y / 100, a = [];
3495
- a[0] = "M", a[1] = 0, a[2] = 25, a[3] = "Q", a[4] = 6.25, a[5] = 30, a[6] = ",", a[7] = 12.5, a[8] = 25, a[9] = "T", a[10] = 25, a[11] = 25, a[12] = "T", a[13] = 37.5, a[14] = 25, a[15] = "T", a[16] = 50, a[17] = 25, a[18] = "T", a[19] = 62.5, a[20] = 25, a[21] = "T", a[22] = 75, a[23] = 25, a[24] = "V", a[25] = 50, a[26] = "H", a[27] = 0, l += 1, l > 25 && (l = 0), a[1] = 0 - l, a[4] = 6.25 - l, a[7] = 12.5 - l, a[10] = 25 - l, a[13] = 37.5 - l, a[16] = 50 - l, a[19] = 62.5 - l, a[22] = 75 - l, a[2] = p, a[5] = p + n, a[8] = p, a[11] = p, a[14] = p, a[17] = p, a[20] = p, a[23] = p, i.value = a.join(" ");
3494
+ C <= 0 && (C = 0);
3495
+ let v = 48 - 46 * C / 100, i = [];
3496
+ i[0] = "M", i[1] = 0, i[2] = 25, i[3] = "Q", i[4] = 6.25, i[5] = 30, i[6] = ",", i[7] = 12.5, i[8] = 25, i[9] = "T", i[10] = 25, i[11] = 25, i[12] = "T", i[13] = 37.5, i[14] = 25, i[15] = "T", i[16] = 50, i[17] = 25, i[18] = "T", i[19] = 62.5, i[20] = 25, i[21] = "T", i[22] = 75, i[23] = 25, i[24] = "V", i[25] = 50, i[26] = "H", i[27] = 0, l += 1, l > 25 && (l = 0), i[1] = 0 - l, i[4] = 6.25 - l, i[7] = 12.5 - l, i[10] = 25 - l, i[13] = 37.5 - l, i[16] = 50 - l, i[19] = 62.5 - l, i[22] = 75 - l, i[2] = v, i[5] = v + n, i[8] = v, i[11] = v, i[14] = v, i[17] = v, i[20] = v, i[23] = v, s.value = i.join(" ");
3496
3497
  };
3497
3498
  J(() => {
3498
3499
  r && clearInterval(r);
3499
3500
  });
3500
- const u = { props: o, propValue: e, pathData: i, get timer() {
3501
+ const a = { props: o, propValue: e, pathData: s, get timer() {
3501
3502
  return r;
3502
- }, set timer(y) {
3503
- r = y;
3503
+ }, set timer(C) {
3504
+ r = C;
3504
3505
  }, get waveVal() {
3505
3506
  return n;
3506
- }, set waveVal(y) {
3507
- n = y;
3507
+ }, set waveVal(C) {
3508
+ n = C;
3508
3509
  }, get waveOffset() {
3509
3510
  return l;
3510
- }, set waveOffset(y) {
3511
- l = y;
3512
- }, drawWave: f, computed: m, onBeforeUnmount: J, onMounted: q, ref: g };
3513
- return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
3511
+ }, set waveOffset(C) {
3512
+ l = C;
3513
+ }, drawWave: f, computed: h, onBeforeUnmount: J, onMounted: q, ref: y };
3514
+ return Object.defineProperty(a, "__isScriptSetup", { enumerable: !1, value: !0 }), a;
3514
3515
  }
3515
3516
  };
3516
- function Ho(t, c, o, e, i, r) {
3517
- return P(), F("svg", {
3517
+ function Ho(t, c, o, e, s, r) {
3518
+ return R(), z("svg", {
3518
3519
  xmlns: "http://www.w3.org/2000/svg",
3519
3520
  viewBox: "0 0 50 50"
3520
3521
  }, [
@@ -3579,9 +3580,9 @@ const To = /* @__PURE__ */ fe(Ro, [["render", Ho], ["__file", "index.vue"]]), Bo
3579
3580
  },
3580
3581
  setup(t, { expose: c }) {
3581
3582
  c();
3582
- const { isObject: o, isValid: e, isNumber: i } = Y, r = t, n = re(), l = ae(n), f = g(null), u = m(() => r.propValue || {}), y = m(() => r.element || {}), p = m(() => y.value.events || []), a = le(), _ = oe(), w = ee(u, y, a, _);
3583
+ const { isObject: o, isValid: e, isNumber: s } = Y, r = t, n = re(), l = ae(n), f = y(null), a = h(() => r.propValue || {}), C = h(() => r.element || {}), v = h(() => C.value.events || []), i = le(), p = oe(), V = ee(a, C, i, p);
3583
3584
  Q(() => {
3584
- f.value = te(p.value, r.designStatus, w), f.value?.beforeMount();
3585
+ f.value = te(v.value, r.designStatus, V), f.value?.beforeMount();
3585
3586
  }), q(() => {
3586
3587
  f.value?.mounted();
3587
3588
  }), J(() => {
@@ -3589,25 +3590,25 @@ const To = /* @__PURE__ */ fe(Ro, [["render", Ho], ["__file", "index.vue"]]), Bo
3589
3590
  }), $(() => {
3590
3591
  f.value?.unmounted();
3591
3592
  });
3592
- const j = (s) => {
3593
- f.value?.handleClick(s);
3594
- }, I = (s) => {
3595
- f.value?.handleDblClick(s);
3596
- }, C = l[u.value.dataCK];
3597
- T(() => C.value, (s) => {
3598
- e(s) && M(s);
3593
+ const W = (u) => {
3594
+ f.value?.handleClick(u);
3595
+ }, j = (u) => {
3596
+ f.value?.handleDblClick(u);
3597
+ }, b = l[a.value.dataCK];
3598
+ B(() => b.value, (u) => {
3599
+ e(u) && M(u);
3599
3600
  }, { immediate: !0 });
3600
- function M(s) {
3601
- W(s);
3601
+ function M(u) {
3602
+ L(u);
3602
3603
  }
3603
- function W(s) {
3604
- let S = null;
3605
- o(s) ? S = s[u.value.valueKey] || null : S = s, i(S) && (u.value.value = Number(S));
3604
+ function L(u) {
3605
+ let _ = null;
3606
+ o(u) ? _ = u[a.value.valueKey] || null : _ = u, s(_) && (a.value.value = Number(_));
3606
3607
  }
3607
- const O = m(() => {
3608
- let s = {};
3609
- return s.cursor = Se(p.value), s;
3610
- }), k = { isObject: o, isValid: e, isNumber: i, props: r, dataCache: n, smartData: l, eventHandler: f, propValue: u, element: y, events: p, router: a, route: _, compContext: w, handleClick: j, handleDblClick: I, bsData: C, dealBsData: M, parseBsData: W, customStyle: O, get useEventHandler() {
3608
+ const P = h(() => {
3609
+ let u = {};
3610
+ return u.cursor = _e(v.value), u;
3611
+ }), k = { isObject: o, isValid: e, isNumber: s, props: r, dataCache: n, smartData: l, eventHandler: f, propValue: a, element: C, events: v, router: i, route: p, compContext: V, handleClick: W, handleDblClick: j, bsData: b, dealBsData: M, parseBsData: L, customStyle: P, get useEventHandler() {
3611
3612
  return te;
3612
3613
  }, get useDataCacheStore() {
3613
3614
  return re;
@@ -3615,22 +3616,22 @@ const To = /* @__PURE__ */ fe(Ro, [["render", Ho], ["__file", "index.vue"]]), Bo
3615
3616
  return ae;
3616
3617
  }, get CreateCompContext() {
3617
3618
  return ee;
3618
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3619
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3619
3620
  return oe;
3620
3621
  }, get useRouter() {
3621
3622
  return le;
3622
3623
  }, get CommonUtils() {
3623
3624
  return Y;
3624
3625
  }, LiquidFillBall: To, get getCursorByEvents() {
3625
- return Se;
3626
+ return _e;
3626
3627
  } };
3627
3628
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
3628
3629
  }
3629
3630
  });
3630
- function Ao(t, c, o, e, i, r) {
3631
- return P(), F("div", {
3631
+ function Ao(t, c, o, e, s, r) {
3632
+ return R(), z("div", {
3632
3633
  class: "svg-container",
3633
- style: ye(e.customStyle),
3634
+ style: Ce(e.customStyle),
3634
3635
  onClick: e.handleClick,
3635
3636
  onDblclick: e.handleDblClick
3636
3637
  }, [
@@ -3660,9 +3661,9 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
3660
3661
  },
3661
3662
  setup(t, { expose: c }) {
3662
3663
  c();
3663
- const { isNotEmpty: o } = Y, e = Fe(), i = g(null), r = t, n = re(), l = ae(n), f = g(null), u = m(() => r.propValue || {}), y = m(() => r.element || {}), p = m(() => y.value.events || []), a = le(), _ = oe(), w = ee(u, y, a, _);
3664
+ const { isNotEmpty: o } = Y, e = Fe(), s = y(null), r = t, n = re(), l = ae(n), f = y(null), a = h(() => r.propValue || {}), C = h(() => r.element || {}), v = h(() => C.value.events || []), i = le(), p = oe(), V = ee(a, C, i, p);
3664
3665
  Q(() => {
3665
- f.value = te(p.value, r.designStatus, w), f.value?.beforeMount();
3666
+ f.value = te(v.value, r.designStatus, V), f.value?.beforeMount();
3666
3667
  }), q(() => {
3667
3668
  f.value?.mounted();
3668
3669
  }), J(() => {
@@ -3670,71 +3671,71 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
3670
3671
  }), $(() => {
3671
3672
  f.value?.unmounted();
3672
3673
  });
3673
- const j = (x) => {
3674
- f.value?.setParam(x);
3675
- }, I = (x) => {
3676
- f.value?.handleDblClick(x);
3677
- }, C = g("");
3678
- T(C, (x) => {
3674
+ const W = (S) => {
3675
+ f.value?.setParam(S);
3676
+ }, j = (S) => {
3677
+ f.value?.handleDblClick(S);
3678
+ }, b = y("");
3679
+ B(b, (S) => {
3679
3680
  we(() => {
3680
- i.value && x ? i.value.innerHTML = x : i.value && (i.value.innerHTML = "");
3681
+ s.value && S ? s.value.innerHTML = S : s.value && (s.value.innerHTML = "");
3681
3682
  });
3682
3683
  });
3683
- const M = m(() => {
3684
- let x = {};
3685
- return o(u.value.firstColor) && (x["--custom-first-color"] = u.value.firstColor), o(u.value.secondColor) && (x["--custom-second-color"] = u.value.secondColor), o(u.value.thirdColor) && (x["--custom-third-color"] = u.value.thirdColor), o(u.value.fourColor) && (x["--custom-four-color"] = u.value.fourColor), o(u.value.fiveColor) && (x["--custom-five-color"] = u.value.fiveColor), x.cursor = Se(p.value), x;
3686
- }), W = (x) => {
3687
- e.getFile(x, function(Z) {
3684
+ const M = h(() => {
3685
+ let S = {};
3686
+ return o(a.value.firstColor) && (S["--custom-first-color"] = a.value.firstColor), o(a.value.secondColor) && (S["--custom-second-color"] = a.value.secondColor), o(a.value.thirdColor) && (S["--custom-third-color"] = a.value.thirdColor), o(a.value.fourColor) && (S["--custom-four-color"] = a.value.fourColor), o(a.value.fiveColor) && (S["--custom-five-color"] = a.value.fiveColor), S.cursor = _e(v.value), S;
3687
+ }), L = (S) => {
3688
+ e.getFile(S, function(Z) {
3688
3689
  if (Z && Z.status == 200) {
3689
- let E = Z.data || "";
3690
- C.value = O(E);
3690
+ let N = Z.data || "";
3691
+ b.value = P(N);
3691
3692
  } else
3692
- C.value = "";
3693
+ b.value = "";
3693
3694
  }, function(Z) {
3694
- C.value = "";
3695
+ b.value = "";
3695
3696
  });
3696
3697
  };
3697
- T(() => u.value.svgFile, (x) => {
3698
- o(x) ? W(x) : C.value = "";
3699
- }, { immediate: !0 }), T(() => u.value.aspectRatio, (x) => {
3700
- o(u.value.svgFile) && W(u.value.svgFile);
3698
+ B(() => a.value.svgFile, (S) => {
3699
+ o(S) ? L(S) : b.value = "";
3700
+ }, { immediate: !0 }), B(() => a.value.aspectRatio, (S) => {
3701
+ o(a.value.svgFile) && L(a.value.svgFile);
3701
3702
  }, { immediate: !0 });
3702
- const O = (x) => {
3703
- const Z = u.value.aspectRatio || "xMidYMid meet";
3704
- return x.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${Z}"`);
3705
- }, k = m(() => {
3706
- const x = u.value.svgFileCK;
3707
- return o(x) ? l[x] : {};
3708
- }), s = m(() => {
3709
- const x = u.value.firstColorCK;
3710
- return o(x) ? l[x] : {};
3711
- }), S = m(() => {
3712
- const x = u.value.secondColorCK;
3713
- return o(x) ? l[x] : {};
3714
- }), V = m(() => {
3715
- const x = u.value.thirdColorCK;
3716
- return o(x) ? l[x] : {};
3717
- }), b = m(() => {
3718
- const x = u.value.fourColorCK;
3719
- return o(x) ? l[x] : {};
3720
- }), A = m(() => {
3721
- const x = u.value.fiveColorCK;
3722
- return o(x) ? l[x] : {};
3703
+ const P = (S) => {
3704
+ const Z = a.value.aspectRatio || "xMidYMid meet";
3705
+ return S.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${Z}"`);
3706
+ }, k = h(() => {
3707
+ const S = a.value.svgFileCK;
3708
+ return o(S) ? l[S] : {};
3709
+ }), u = h(() => {
3710
+ const S = a.value.firstColorCK;
3711
+ return o(S) ? l[S] : {};
3712
+ }), _ = h(() => {
3713
+ const S = a.value.secondColorCK;
3714
+ return o(S) ? l[S] : {};
3715
+ }), I = h(() => {
3716
+ const S = a.value.thirdColorCK;
3717
+ return o(S) ? l[S] : {};
3718
+ }), m = h(() => {
3719
+ const S = a.value.fourColorCK;
3720
+ return o(S) ? l[S] : {};
3721
+ }), F = h(() => {
3722
+ const S = a.value.fiveColorCK;
3723
+ return o(S) ? l[S] : {};
3723
3724
  });
3724
- T(() => k, (x) => {
3725
- o(u.value.svgFileCK) && (u.value.svgFile = x);
3726
- }), T(() => s, (x) => {
3727
- o(u.value.firstColorCK) && (u.value.firstColor = x);
3728
- }), T(() => S, (x) => {
3729
- o(u.value.secondColorCK) && (u.value.secondColor = x);
3730
- }), T(() => V, (x) => {
3731
- o(u.value.thirdColorCK) && (u.value.thirdColor = x);
3732
- }), T(() => b, (x) => {
3733
- o(u.value.fourColorCK) && (u.value.fourColor = x);
3734
- }), T(() => A, (x) => {
3735
- o(u.value.fiveColorCK) && (u.value.fiveColor = x);
3725
+ B(() => k, (S) => {
3726
+ o(a.value.svgFileCK) && (a.value.svgFile = S);
3727
+ }), B(() => u, (S) => {
3728
+ o(a.value.firstColorCK) && (a.value.firstColor = S);
3729
+ }), B(() => _, (S) => {
3730
+ o(a.value.secondColorCK) && (a.value.secondColor = S);
3731
+ }), B(() => I, (S) => {
3732
+ o(a.value.thirdColorCK) && (a.value.thirdColor = S);
3733
+ }), B(() => m, (S) => {
3734
+ o(a.value.fourColorCK) && (a.value.fourColor = S);
3735
+ }), B(() => F, (S) => {
3736
+ o(a.value.fiveColorCK) && (a.value.fiveColor = S);
3736
3737
  });
3737
- const H = { isNotEmpty: o, api: e, svgContainerRef: i, props: r, dataCache: n, smartData: l, eventHandler: f, propValue: u, element: y, events: p, router: a, route: _, compContext: w, handleClick: j, handleDblClick: I, svgContent: C, customStyle: M, loadSvgFile: W, removeSvgDimensions: O, fileData: k, firstColorData: s, secondColorData: S, thirdColorData: V, fourColorData: b, fiveColorData: A, get useEventHandler() {
3738
+ const H = { isNotEmpty: o, api: e, svgContainerRef: s, props: r, dataCache: n, smartData: l, eventHandler: f, propValue: a, element: C, events: v, router: i, route: p, compContext: V, handleClick: W, handleDblClick: j, svgContent: b, customStyle: M, loadSvgFile: L, removeSvgDimensions: P, fileData: k, firstColorData: u, secondColorData: _, thirdColorData: I, fourColorData: m, fiveColorData: F, get useEventHandler() {
3738
3739
  return te;
3739
3740
  }, get useDataCacheStore() {
3740
3741
  return re;
@@ -3742,7 +3743,7 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
3742
3743
  return ae;
3743
3744
  }, get CreateCompContext() {
3744
3745
  return ee;
3745
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, nextTick: we, get CommonUtils() {
3746
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, nextTick: we, get CommonUtils() {
3746
3747
  return Y;
3747
3748
  }, get useRoute() {
3748
3749
  return oe;
@@ -3751,18 +3752,18 @@ const Fo = /* @__PURE__ */ fe(Bo, [["render", Ao], ["__scopeId", "data-v-1ba24f6
3751
3752
  }, get useApi() {
3752
3753
  return Fe;
3753
3754
  }, get getCursorByEvents() {
3754
- return Se;
3755
+ return _e;
3755
3756
  } };
3756
3757
  return Object.defineProperty(H, "__isScriptSetup", { enumerable: !1, value: !0 }), H;
3757
3758
  }
3758
3759
  });
3759
- function zo(t, c, o, e, i, r) {
3760
- return P(), F("div", {
3760
+ function zo(t, c, o, e, s, r) {
3761
+ return R(), z("div", {
3761
3762
  ref: "svgContainerRef",
3762
3763
  class: "svg-container",
3763
3764
  onClick: e.handleClick,
3764
3765
  onDblclick: e.handleDblClick,
3765
- style: ye(e.customStyle)
3766
+ style: Ce(e.customStyle)
3766
3767
  }, null, 36);
3767
3768
  }
3768
3769
  const No = /* @__PURE__ */ fe(Eo, [["render", zo], ["__scopeId", "data-v-8db7d328"], ["__file", "Component.vue"]]), Ko = /* @__PURE__ */ Object.assign({
@@ -3788,29 +3789,29 @@ const No = /* @__PURE__ */ fe(Eo, [["render", zo], ["__scopeId", "data-v-8db7d32
3788
3789
  },
3789
3790
  setup(t, { expose: c }) {
3790
3791
  c();
3791
- const { generateSecureUUID: o } = Y, e = t, i = re(), r = ae(i), n = g(null), l = m(() => e.propValue || {}), f = m(() => e.element || {}), u = m(() => f.value.events || []), y = le(), p = oe(), a = ee(l, f, y, p);
3792
+ const { generateSecureUUID: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
3792
3793
  Q(() => {
3793
- n.value = te(u.value, e.designStatus, a), n.value?.beforeMount(), M.value = o();
3794
+ n.value = te(a.value, e.designStatus, i), n.value?.beforeMount(), M.value = o();
3794
3795
  }), q(() => {
3795
- W(), n.value?.mounted();
3796
+ L(), n.value?.mounted();
3796
3797
  }), J(() => {
3797
3798
  n.value?.beforeUnmount();
3798
3799
  }), $(() => {
3799
3800
  n.value?.unmounted();
3800
3801
  });
3801
- const { dynamicColor: _ } = Ce(l, r, i.rules, Y), w = m(() => l.value.hasGradient ? `url(#${M.value})` : j.value), j = m(() => _.lineColor ? _.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), I = g([]), C = g([]), M = g("");
3802
- T(() => f.value.style.width, (s) => {
3803
- W();
3804
- }), T(() => f.value.style.height, (s) => {
3805
- W();
3802
+ const { dynamicColor: p } = be(l, r, s.rules, Y), V = h(() => l.value.hasGradient ? `url(#${M.value})` : W.value), W = h(() => p.lineColor ? p.lineColor : l.value.strokeColor ? l.value.strokeColor : "none"), j = y([]), b = y([]), M = y("");
3803
+ B(() => f.value.style.width, (u) => {
3804
+ L();
3805
+ }), B(() => f.value.style.height, (u) => {
3806
+ L();
3806
3807
  });
3807
- const W = () => {
3808
- const { width: s, height: S } = f.value.style;
3809
- O(s, S);
3810
- }, O = (s, S) => {
3811
- const V = [0, 0.5], b = [1, 0.5];
3812
- I.value = [s * V[0], S * V[1]], C.value = [s * b[0], S * b[1]];
3813
- }, k = { generateSecureUUID: o, props: e, dataCache: i, smartData: r, eventHandler: n, propValue: l, element: f, events: u, router: y, route: p, compContext: a, dynamicColor: _, strokeAttr: w, showLineColor: j, LineL1P1: I, LineL1P2: C, gradientId: M, draw: W, drawChart: O, get useEventHandler() {
3808
+ const L = () => {
3809
+ const { width: u, height: _ } = f.value.style;
3810
+ P(u, _);
3811
+ }, P = (u, _) => {
3812
+ const I = [0, 0.5], m = [1, 0.5];
3813
+ j.value = [u * I[0], _ * I[1]], b.value = [u * m[0], _ * m[1]];
3814
+ }, k = { generateSecureUUID: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, dynamicColor: p, strokeAttr: V, showLineColor: W, LineL1P1: j, LineL1P2: b, gradientId: M, draw: L, drawChart: P, get useEventHandler() {
3814
3815
  return te;
3815
3816
  }, get useDataCacheStore() {
3816
3817
  return re;
@@ -3818,31 +3819,31 @@ const No = /* @__PURE__ */ fe(Eo, [["render", zo], ["__scopeId", "data-v-8db7d32
3818
3819
  return ae;
3819
3820
  }, get CreateCompContext() {
3820
3821
  return ee;
3821
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3822
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
3822
3823
  return oe;
3823
3824
  }, get useRouter() {
3824
3825
  return le;
3825
3826
  }, get CommonUtils() {
3826
3827
  return Y;
3827
3828
  }, get useDynamicColor() {
3828
- return Ce;
3829
+ return be;
3829
3830
  } };
3830
3831
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
3831
3832
  }
3832
3833
  });
3833
- function Uo(t, c, o, e, i, r) {
3834
- return P(), F("div", { class: "svg-container" }, [
3835
- (P(), F("svg", {
3834
+ function Uo(t, c, o, e, s, r) {
3835
+ return R(), z("div", { class: "svg-container" }, [
3836
+ (R(), z("svg", {
3836
3837
  xmlns: "http://www.w3.org/2000/svg",
3837
3838
  width: e.element.style.width,
3838
3839
  height: e.element.style.height
3839
3840
  }, [
3840
3841
  ne(" 根据条件判断是否渲染渐变定义 "),
3841
3842
  de(),
3842
- e.propValue.hasGradient ? (P(), F("defs", { key: 0 }, [
3843
+ e.propValue.hasGradient ? (R(), z("defs", { key: 0 }, [
3843
3844
  ne(' 这里根据渐变类型动态渲染线性或径向渐变 stroke渐变需要添加 gradientUnits="userSpaceOnUse" '),
3844
3845
  de(),
3845
- e.propValue.gradientType === "linear" ? (P(), F("linearGradient", {
3846
+ e.propValue.gradientType === "linear" ? (R(), z("linearGradient", {
3846
3847
  key: 0,
3847
3848
  id: e.gradientId,
3848
3849
  x1: e.propValue.gradientX1 + "%",
@@ -3851,18 +3852,18 @@ function Uo(t, c, o, e, i, r) {
3851
3852
  y2: e.propValue.gradientY2 + "%",
3852
3853
  gradientUnits: "userSpaceOnUse"
3853
3854
  }, [
3854
- (P(), F("stop", {
3855
+ (R(), z("stop", {
3855
3856
  key: 1,
3856
3857
  offset: e.propValue.gradientStopsOffset + "%",
3857
3858
  "stop-color": e.propValue.gradientStopsColor
3858
3859
  }, null, 8, ["offset", "stop-color"])),
3859
3860
  de(),
3860
- (P(), F("stop", {
3861
+ (R(), z("stop", {
3861
3862
  key: 2,
3862
3863
  offset: e.propValue.gradientStopsOffset2 + "%",
3863
3864
  "stop-color": e.propValue.gradientStopsColor2
3864
3865
  }, null, 8, ["offset", "stop-color"]))
3865
- ], 8, ["id", "x1", "x2", "y1", "y2"])) : (P(), F("radialGradient", {
3866
+ ], 8, ["id", "x1", "x2", "y1", "y2"])) : (R(), z("radialGradient", {
3866
3867
  key: 1,
3867
3868
  id: e.gradientId,
3868
3869
  cx: e.propValue.gradientCx + "%",
@@ -3872,13 +3873,13 @@ function Uo(t, c, o, e, i, r) {
3872
3873
  fy: e.propValue.gradientFy + "%",
3873
3874
  gradientUnits: "userSpaceOnUse"
3874
3875
  }, [
3875
- (P(), F("stop", {
3876
+ (R(), z("stop", {
3876
3877
  key: 1,
3877
3878
  offset: e.propValue.gradientStopsOffset + "%",
3878
3879
  "stop-color": e.propValue.gradientStopsColor
3879
3880
  }, null, 8, ["offset", "stop-color"])),
3880
3881
  de(),
3881
- (P(), F("stop", {
3882
+ (R(), z("stop", {
3882
3883
  key: 2,
3883
3884
  offset: e.propValue.gradientStopsOffset2 + "%",
3884
3885
  "stop-color": e.propValue.gradientStopsColor2
@@ -3895,7 +3896,7 @@ function Uo(t, c, o, e, i, r) {
3895
3896
  "stroke-width": e.propValue.strokeWidth,
3896
3897
  "stroke-dasharray": e.propValue.strokeDasharray
3897
3898
  }, [
3898
- e.propValue.animate ? (P(), F("animate", {
3899
+ e.propValue.animate ? (R(), z("animate", {
3899
3900
  key: 0,
3900
3901
  attributeName: "stroke-dashoffset",
3901
3902
  from: e.propValue.animateFrom,
@@ -3974,136 +3975,136 @@ const Go = /* @__PURE__ */ fe(Ko, [["render", Uo], ["__scopeId", "data-v-0ad0dff
3974
3975
  diagonalCells: { type: Array, default: () => [] }
3975
3976
  },
3976
3977
  setup(t, { expose: c }) {
3977
- const { consolePrint: o, isArray: e, isEven: i, isNotEmpty: r } = Y, n = t, l = g(), f = g();
3978
- let u = [], y = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map();
3979
- const _ = m(() => Array.from(
3978
+ const { consolePrint: o, isArray: e, isEven: s, isNotEmpty: r } = Y, n = t, l = y(), f = y();
3979
+ let a = [], C = /* @__PURE__ */ new Map(), v = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
3980
+ const p = h(() => Array.from(
3980
3981
  { length: n.rows },
3981
- (d, v) => Number(n.rowHeights[v] || n.cellHeight)
3982
- )), w = m(() => Array.from(
3982
+ (d, g) => Number(n.rowHeights[g] || n.cellHeight)
3983
+ )), V = h(() => Array.from(
3983
3984
  { length: n.cols },
3984
- (d, v) => Number(n.colWidths[v] || n.cellWidth)
3985
- )), j = m(
3986
- () => w.value.reduce((d, v) => d + v, 0)
3987
- ), I = m(
3988
- () => _.value.reduce((d, v) => d + v, 0)
3989
- ), C = () => {
3985
+ (d, g) => Number(n.colWidths[g] || n.cellWidth)
3986
+ )), W = h(
3987
+ () => V.value.reduce((d, g) => d + g, 0)
3988
+ ), j = h(
3989
+ () => p.value.reduce((d, g) => d + g, 0)
3990
+ ), b = () => {
3990
3991
  if (!f.value) return;
3991
3992
  o("debug", "绘制网格开始");
3992
3993
  const d = l.value;
3993
- f.value.clearRect(0, 0, d.width, d.height), O(), M(d.width, d.height), k(), o("debug", "绘制网格完成");
3994
- }, M = (d, v) => {
3995
- let h = [], B = H();
3996
- B.x1 = 0, B.y1 = 0, B.x2 = d, B.y2 = 0, W(B, 0), B.y1 += B.lineWidth / 2, B.y2 += B.lineWidth / 2, h.push(B);
3997
- let z = H();
3998
- z.x1 = d, z.y1 = 0, z.x2 = d, z.y2 = v, W(z, 3), z.x1 -= z.lineWidth / 2, z.x2 -= z.lineWidth / 2, h.push(z);
3994
+ f.value.clearRect(0, 0, d.width, d.height), P(), M(d.width, d.height), k(), o("debug", "绘制网格完成");
3995
+ }, M = (d, g) => {
3996
+ let w = [], A = H();
3997
+ A.x1 = 0, A.y1 = 0, A.x2 = d, A.y2 = 0, L(A, 0), A.y1 += A.lineWidth / 2, A.y2 += A.lineWidth / 2, w.push(A);
3998
+ let E = H();
3999
+ E.x1 = d, E.y1 = 0, E.x2 = d, E.y2 = g, L(E, 3), E.x1 -= E.lineWidth / 2, E.x2 -= E.lineWidth / 2, w.push(E);
3999
4000
  let X = H();
4000
- X.x1 = d, X.y1 = v, X.x2 = 0, X.y2 = v, W(X, 1), X.y1 -= X.lineWidth / 2, X.y2 -= X.lineWidth / 2, h.push(X);
4001
- let L = H();
4002
- L.x1 = 0, L.y1 = v, L.x2 = 0, L.y2 = 0, W(L, 2), L.x1 += L.lineWidth / 2, L.x2 += L.lineWidth / 2, h.push(L), x(f.value, h, !1);
4003
- }, W = (d, v) => {
4004
- d.strokeStyle = n.borderStyle.color, d.lineWidth = n.borderStyle.width, d.dash = n.borderStyle.dash, n.borders && e(n.borders) && n.borders.length > v && (d.strokeStyle = n.borders[v].color, d.lineWidth = n.borders[v].width, d.dash = n.borders[v].dash);
4005
- }, O = () => {
4006
- u = [], s();
4001
+ X.x1 = d, X.y1 = g, X.x2 = 0, X.y2 = g, L(X, 1), X.y1 -= X.lineWidth / 2, X.y2 -= X.lineWidth / 2, w.push(X);
4002
+ let D = H();
4003
+ D.x1 = 0, D.y1 = g, D.x2 = 0, D.y2 = 0, L(D, 2), D.x1 += D.lineWidth / 2, D.x2 += D.lineWidth / 2, w.push(D), S(f.value, w, !1);
4004
+ }, L = (d, g) => {
4005
+ d.strokeStyle = n.borderStyle.color, d.lineWidth = n.borderStyle.width, d.dash = n.borderStyle.dash, n.borders && e(n.borders) && n.borders.length > g && (d.strokeStyle = n.borders[g].color, d.lineWidth = n.borders[g].width, d.dash = n.borders[g].dash);
4006
+ }, P = () => {
4007
+ a = [], u();
4007
4008
  let d = [];
4008
- for (let v = 0; v < n.rows; v++)
4009
- for (let h = 0; h < n.cols; h++)
4010
- S(d, v, h);
4011
- x(f.value, d, !1);
4009
+ for (let g = 0; g < n.rows; g++)
4010
+ for (let w = 0; w < n.cols; w++)
4011
+ _(d, g, w);
4012
+ S(f.value, d, !1);
4012
4013
  }, k = () => {
4013
4014
  if (e(n.diagonalCells) && n.diagonalCells.length > 0) {
4014
- let d, v = [], h, B, z;
4015
+ let d, g = [], w, A, E;
4015
4016
  for (let X = 0; X < n.diagonalCells.length; X++) {
4016
- if (d = n.diagonalCells[X], !b(d.row, d.col) || (h = d.row + "_" + d.col, y.has(h)))
4017
+ if (d = n.diagonalCells[X], !m(d.row, d.col) || (w = d.row + "_" + d.col, C.has(w)))
4017
4018
  continue;
4018
- let L = H();
4019
- if (B = d.row, z = d.col, d.reverse) {
4020
- let ie = u[B][z][0], _e = u[B][z][1], K = ie + A(w.value[d.col]), D = u[B][z][1] + A(_.value[d.row]);
4021
- if (p.has(h)) {
4022
- let G = p.get(h), R = 0;
4019
+ let D = H();
4020
+ if (A = d.row, E = d.col, d.reverse) {
4021
+ let se = a[A][E][0], ge = a[A][E][1], x = se + F(V.value[d.col]), O = a[A][E][1] + F(p.value[d.row]);
4022
+ if (v.has(w)) {
4023
+ let G = v.get(w), T = 0;
4023
4024
  for (let ce = 0; ce < G.colSpan; ce++)
4024
- R += A(w.value[d.col + ce]);
4025
- K = ie + R, R = 0;
4025
+ T += F(V.value[d.col + ce]);
4026
+ x = se + T, T = 0;
4026
4027
  for (let ce = 0; ce < G.rowSpan; ce++)
4027
- R += A(_.value[d.row + ce]);
4028
- D = _e + R;
4028
+ T += F(p.value[d.row + ce]);
4029
+ O = ge + T;
4029
4030
  }
4030
- L.x1 = ie, L.y1 = D, L.x2 = K, L.y2 = _e, L.strokeStyle = d.color ?? n.diagonalStyle.color, L.lineWidth = d.width ?? n.diagonalStyle.width, L.dash = d.dash ?? n.diagonalStyle.dash, v.push(L);
4031
+ D.x1 = se, D.y1 = O, D.x2 = x, D.y2 = ge, D.strokeStyle = d.color ?? n.diagonalStyle.color, D.lineWidth = d.width ?? n.diagonalStyle.width, D.dash = d.dash ?? n.diagonalStyle.dash, g.push(D);
4031
4032
  } else {
4032
- let ie = u[B][z][0], _e = u[B][z][1], K = ie + A(w.value[d.col]), D = _e + A(_.value[d.row]);
4033
- if (p.has(h)) {
4034
- let G = p.get(h), R = 0;
4033
+ let se = a[A][E][0], ge = a[A][E][1], x = se + F(V.value[d.col]), O = ge + F(p.value[d.row]);
4034
+ if (v.has(w)) {
4035
+ let G = v.get(w), T = 0;
4035
4036
  for (let ce = 0; ce < G.colSpan; ce++)
4036
- R += A(w.value[d.col + ce]);
4037
- K = ie + R, R = 0;
4037
+ T += F(V.value[d.col + ce]);
4038
+ x = se + T, T = 0;
4038
4039
  for (let ce = 0; ce < G.rowSpan; ce++)
4039
- R += A(_.value[d.row + ce]);
4040
- D = _e + R;
4040
+ T += F(p.value[d.row + ce]);
4041
+ O = ge + T;
4041
4042
  }
4042
- L.x1 = ie, L.y1 = _e, L.x2 = K, L.y2 = D, L.strokeStyle = d.color ?? n.diagonalStyle.color, L.lineWidth = d.width ?? n.diagonalStyle.width, L.dash = d.dash ?? n.diagonalStyle.dash, v.push(L);
4043
+ D.x1 = se, D.y1 = ge, D.x2 = x, D.y2 = O, D.strokeStyle = d.color ?? n.diagonalStyle.color, D.lineWidth = d.width ?? n.diagonalStyle.width, D.dash = d.dash ?? n.diagonalStyle.dash, g.push(D);
4043
4044
  }
4044
4045
  }
4045
- x(f.value, v, !1);
4046
+ S(f.value, g, !1);
4046
4047
  }
4047
- }, s = () => {
4048
- let d = 0, v = 0, h = 0, B = 0;
4049
- for (let z = 0; z < n.rows; z++) {
4050
- u[z] = [], z == 0 ? d = 0 : d = A(_.value[z - 1]), h += d, B = 0;
4048
+ }, u = () => {
4049
+ let d = 0, g = 0, w = 0, A = 0;
4050
+ for (let E = 0; E < n.rows; E++) {
4051
+ a[E] = [], E == 0 ? d = 0 : d = F(p.value[E - 1]), w += d, A = 0;
4051
4052
  for (let X = 0; X < n.cols; X++)
4052
- X == 0 ? v = 0 : v = A(w.value[X - 1]), B += v, u[z][X] = [B, h];
4053
+ X == 0 ? g = 0 : g = F(V.value[X - 1]), A += g, a[E][X] = [A, w];
4053
4054
  }
4054
- }, S = (d, v, h) => {
4055
- let B = u[v][h][0], z = u[v][h][1], X = v + "_" + h, L;
4056
- v > 0 && (L = H(), L.x1 = B, L.y1 = z, L.x2 = B + A(w.value[h]), L.y2 = z, L.r = v, L.c = h, y.has(X) ? y.get(X).sameRow && (V(L, v, h, 1), i(L.lineWidth) || (L.y1 += 0.5, L.y2 += 0.5), d.push(L)) : (V(L, v, h, 1), i(L.lineWidth) || (L.y1 += 0.5, L.y2 += 0.5), d.push(L))), h > 0 && (L = H(), L.x1 = B, L.y1 = z, L.x2 = B, L.y2 = z + A(_.value[v]), L.r = v, L.c = h, y.has(X) ? y.get(X).sameCol && (V(L, v, h, 2), i(L.lineWidth) || (L.x1 += 0.5, L.x2 += 0.5), d.push(L)) : (V(L, v, h, 2), i(L.lineWidth) || (L.x1 += 0.5, L.x2 += 0.5), d.push(L)));
4057
- }, V = (d, v, h, B) => {
4058
- let z = v + "_" + h, X = v, L = h;
4059
- if (y.has(z)) {
4060
- let ie = y.get(z);
4061
- X = ie.startRow, L = ie.startCol;
4055
+ }, _ = (d, g, w) => {
4056
+ let A = a[g][w][0], E = a[g][w][1], X = g + "_" + w, D;
4057
+ g > 0 && (D = H(), D.x1 = A, D.y1 = E, D.x2 = A + F(V.value[w]), D.y2 = E, D.r = g, D.c = w, C.has(X) ? C.get(X).sameRow && (I(D, g, w, 1), s(D.lineWidth) || (D.y1 += 0.5, D.y2 += 0.5), d.push(D)) : (I(D, g, w, 1), s(D.lineWidth) || (D.y1 += 0.5, D.y2 += 0.5), d.push(D))), w > 0 && (D = H(), D.x1 = A, D.y1 = E, D.x2 = A, D.y2 = E + F(p.value[g]), D.r = g, D.c = w, C.has(X) ? C.get(X).sameCol && (I(D, g, w, 2), s(D.lineWidth) || (D.x1 += 0.5, D.x2 += 0.5), d.push(D)) : (I(D, g, w, 2), s(D.lineWidth) || (D.x1 += 0.5, D.x2 += 0.5), d.push(D)));
4058
+ }, I = (d, g, w, A) => {
4059
+ let E = g + "_" + w, X = g, D = w;
4060
+ if (C.has(E)) {
4061
+ let se = C.get(E);
4062
+ X = se.startRow, D = se.startCol;
4062
4063
  }
4063
- if (z = X + "_" + L, a.has(z)) {
4064
- let ie = a.get(z);
4065
- d.strokeStyle = ie.color, d.lineWidth = ie.width, d.dash = ie.dash;
4064
+ if (E = X + "_" + D, i.has(E)) {
4065
+ let se = i.get(E);
4066
+ d.strokeStyle = se.color, d.lineWidth = se.width, d.dash = se.dash;
4066
4067
  } else
4067
- B == 1 ? e(n.rowLine) && n.rowLine.length > v ? (d.strokeStyle = n.rowLine[v].color, d.lineWidth = n.rowLine[v].width, d.dash = n.rowLine[v].dash) : (d.strokeStyle = n.rowStyle.color, d.lineWidth = n.rowStyle.width, d.dash = n.rowStyle.dash) : e(n.colLine) && n.colLine.length > h ? (d.strokeStyle = n.colLine[h].color, d.lineWidth = n.colLine[h].width, d.dash = n.colLine[h].dash) : (d.strokeStyle = n.colStyle.color, d.lineWidth = n.colStyle.width, d.dash = n.colStyle.dash);
4068
+ A == 1 ? e(n.rowLine) && n.rowLine.length > g ? (d.strokeStyle = n.rowLine[g].color, d.lineWidth = n.rowLine[g].width, d.dash = n.rowLine[g].dash) : (d.strokeStyle = n.rowStyle.color, d.lineWidth = n.rowStyle.width, d.dash = n.rowStyle.dash) : e(n.colLine) && n.colLine.length > w ? (d.strokeStyle = n.colLine[w].color, d.lineWidth = n.colLine[w].width, d.dash = n.colLine[w].dash) : (d.strokeStyle = n.colStyle.color, d.lineWidth = n.colStyle.width, d.dash = n.colStyle.dash);
4068
4069
  };
4069
4070
  q(() => {
4070
- f.value = l.value.getContext("2d"), C();
4071
- }), T(() => n.mergedCells, (d) => {
4072
- if (d && (p.clear(), y.clear(), n.mergedCells.length > 0)) {
4073
- let v, h;
4074
- for (let B = 0; B < n.mergedCells.length; B++)
4075
- if (v = n.mergedCells[B], !(v.row < 0 || p.col < 0) && (v.rowSpan >= 2 || v.colSpan >= 2)) {
4076
- v.row + v.rowSpan > n.rows && (v.rowSpan = n.rows - v.row), v.col + v.colSpan > n.cols && (v.colSpan = n.cols - v.col);
4077
- let z = 0, X = 0;
4078
- p.set(v.row + "_" + v.col, { ...v });
4079
- for (let L = 0; L < v.rowSpan; L++)
4080
- for (let ie = 0; ie < v.colSpan; ie++)
4081
- L == 0 && ie == 0 || (z = v.row + L, X = v.col + ie, h = z + "_" + X, z == v.row ? y.set(h, {
4071
+ f.value = l.value.getContext("2d"), b();
4072
+ }), B(() => n.mergedCells, (d) => {
4073
+ if (d && (v.clear(), C.clear(), n.mergedCells.length > 0)) {
4074
+ let g, w;
4075
+ for (let A = 0; A < n.mergedCells.length; A++)
4076
+ if (g = n.mergedCells[A], !(g.row < 0 || v.col < 0) && (g.rowSpan >= 2 || g.colSpan >= 2)) {
4077
+ g.row + g.rowSpan > n.rows && (g.rowSpan = n.rows - g.row), g.col + g.colSpan > n.cols && (g.colSpan = n.cols - g.col);
4078
+ let E = 0, X = 0;
4079
+ v.set(g.row + "_" + g.col, { ...g });
4080
+ for (let D = 0; D < g.rowSpan; D++)
4081
+ for (let se = 0; se < g.colSpan; se++)
4082
+ D == 0 && se == 0 || (E = g.row + D, X = g.col + se, w = E + "_" + X, E == g.row ? C.set(w, {
4082
4083
  sameRow: !0,
4083
4084
  sameCol: !1,
4084
- startRow: v.row,
4085
- startCol: v.col
4086
- }) : X == v.col ? y.set(h, {
4085
+ startRow: g.row,
4086
+ startCol: g.col
4087
+ }) : X == g.col ? C.set(w, {
4087
4088
  sameRow: !1,
4088
4089
  sameCol: !0,
4089
- startRow: v.row,
4090
- startCol: v.col
4091
- }) : y.set(h, {
4090
+ startRow: g.row,
4091
+ startCol: g.col
4092
+ }) : C.set(w, {
4092
4093
  sameRow: !1,
4093
4094
  sameCol: !1,
4094
- startRow: v.row,
4095
- startCol: v.col
4095
+ startRow: g.row,
4096
+ startCol: g.col
4096
4097
  }));
4097
4098
  }
4098
4099
  }
4099
- }, { immediate: !0 }), T(() => n.cellStyle, (d) => {
4100
- if (d && (a.clear(), n.cellStyle.length > 0)) {
4101
- let v;
4102
- for (let h = 0; h < n.cellStyle.length; h++)
4103
- v = n.cellStyle[h], b(v.row, v.col) && a.set(v.row + "_" + v.col, { ...v });
4100
+ }, { immediate: !0 }), B(() => n.cellStyle, (d) => {
4101
+ if (d && (i.clear(), n.cellStyle.length > 0)) {
4102
+ let g;
4103
+ for (let w = 0; w < n.cellStyle.length; w++)
4104
+ g = n.cellStyle[w], m(g.row, g.col) && i.set(g.row + "_" + g.col, { ...g });
4104
4105
  }
4105
4106
  }, { immediate: !0 });
4106
- const b = (d, v) => !(d < 0 || v < 0 || d > n.rows || v > n.cols), A = (d) => parseFloat(d) ?? 0, H = () => ({
4107
+ const m = (d, g) => !(d < 0 || g < 0 || d > n.rows || g > n.cols), F = (d) => parseFloat(d) ?? 0, H = () => ({
4107
4108
  x1: 0,
4108
4109
  y1: 0,
4109
4110
  x2: 0,
@@ -4111,56 +4112,56 @@ const Go = /* @__PURE__ */ fe(Ko, [["render", Uo], ["__scopeId", "data-v-0ad0dff
4111
4112
  strokeStyle: "#F8F8FF",
4112
4113
  lineWidth: 1,
4113
4114
  dash: []
4114
- }), x = (d, v, h) => {
4115
- if (e(v) && v.length > 0) {
4116
- let B = !!h;
4117
- B && d.beginPath(), v.forEach((z, X) => {
4118
- if (Number(z.lineWidth) > 0) {
4119
- if (B || d.beginPath(), d.strokeStyle = z.strokeStyle, d.lineWidth = z.lineWidth, r(z.dash))
4120
- if (e(z.dash))
4121
- d.setLineDash(z.dash);
4115
+ }), S = (d, g, w) => {
4116
+ if (e(g) && g.length > 0) {
4117
+ let A = !!w;
4118
+ A && d.beginPath(), g.forEach((E, X) => {
4119
+ if (Number(E.lineWidth) > 0) {
4120
+ if (A || d.beginPath(), d.strokeStyle = E.strokeStyle, d.lineWidth = E.lineWidth, r(E.dash))
4121
+ if (e(E.dash))
4122
+ d.setLineDash(E.dash);
4122
4123
  else {
4123
- let L = z.dash.split(",");
4124
- d.setLineDash(L);
4124
+ let D = E.dash.split(",");
4125
+ d.setLineDash(D);
4125
4126
  }
4126
4127
  else
4127
4128
  d.setLineDash([]);
4128
- d.moveTo(z.x1, z.y1), d.lineTo(z.x2, z.y2), d.closePath(), B || d.stroke();
4129
+ d.moveTo(E.x1, E.y1), d.lineTo(E.x2, E.y2), d.closePath(), A || d.stroke();
4129
4130
  }
4130
- }), B && d.stroke(), d.restore();
4131
+ }), A && d.stroke(), d.restore();
4131
4132
  }
4132
4133
  }, Z = () => {
4133
4134
  we(() => {
4134
- C();
4135
+ b();
4135
4136
  });
4136
4137
  };
4137
4138
  c({
4138
4139
  redraw: Z
4139
4140
  });
4140
- const E = { consolePrint: o, isArray: e, isEven: i, isNotEmpty: r, props: n, canvasRef: l, ctx: f, get cellPosition() {
4141
- return u;
4141
+ const N = { consolePrint: o, isArray: e, isEven: s, isNotEmpty: r, props: n, canvasRef: l, ctx: f, get cellPosition() {
4142
+ return a;
4142
4143
  }, set cellPosition(d) {
4143
- u = d;
4144
+ a = d;
4144
4145
  }, get mergedCellInfo() {
4145
- return y;
4146
+ return C;
4146
4147
  }, set mergedCellInfo(d) {
4147
- y = d;
4148
+ C = d;
4148
4149
  }, get mergeCellInfo() {
4149
- return p;
4150
+ return v;
4150
4151
  }, set mergeCellInfo(d) {
4151
- p = d;
4152
+ v = d;
4152
4153
  }, get cellStyleMap() {
4153
- return a;
4154
+ return i;
4154
4155
  }, set cellStyleMap(d) {
4155
- a = d;
4156
- }, computedRowHeights: _, computedColWidths: w, canvasWidth: j, canvasHeight: I, drawGrid: C, _drawBorder: M, _setBorderStyle: W, _drawCellArea: O, _drawDiagonal: k, _calcCellPosition: s, drawCell: S, _setCellStyle: V, _checkValidCell: b, _getVal: A, _getDefaultLineObj: H, drawLine: x, redraw: Z, computed: m, onMounted: q, ref: g, watch: T, nextTick: we, get CommonUtils() {
4156
+ i = d;
4157
+ }, computedRowHeights: p, computedColWidths: V, canvasWidth: W, canvasHeight: j, drawGrid: b, _drawBorder: M, _setBorderStyle: L, _drawCellArea: P, _drawDiagonal: k, _calcCellPosition: u, drawCell: _, _setCellStyle: I, _checkValidCell: m, _getVal: F, _getDefaultLineObj: H, drawLine: S, redraw: Z, computed: h, onMounted: q, ref: y, watch: B, nextTick: we, get CommonUtils() {
4157
4158
  return Y;
4158
4159
  } };
4159
- return Object.defineProperty(E, "__isScriptSetup", { enumerable: !1, value: !0 }), E;
4160
+ return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
4160
4161
  }
4161
4162
  };
4162
- function Yo(t, c, o, e, i, r) {
4163
- return P(), F("div", { class: "canvas-grid-container" }, [
4163
+ function Yo(t, c, o, e, s, r) {
4164
+ return R(), z("div", { class: "canvas-grid-container" }, [
4164
4165
  ue("canvas", {
4165
4166
  ref: "canvasRef",
4166
4167
  width: e.canvasWidth,
@@ -4190,9 +4191,9 @@ const qo = /* @__PURE__ */ fe(Xo, [["render", Yo], ["__scopeId", "data-v-6480756
4190
4191
  }
4191
4192
  },
4192
4193
  setup(t, { expose: c }) {
4193
- const o = t, e = re(), i = ae(e), r = g(null), n = m(() => o.propValue || {}), l = m(() => o.element || {}), f = m(() => l.value.events || []), u = le(), y = oe(), p = ee(n, l, u, y);
4194
+ const o = t, e = re(), s = ae(e), r = y(null), n = h(() => o.propValue || {}), l = h(() => o.element || {}), f = h(() => l.value.events || []), a = le(), C = oe(), v = ee(n, l, a, C);
4194
4195
  Q(() => {
4195
- r.value = te(f.value, o.designStatus, p), r.value?.beforeMount();
4196
+ r.value = te(f.value, o.designStatus, v), r.value?.beforeMount();
4196
4197
  }), q(() => {
4197
4198
  r.value?.mounted();
4198
4199
  }), J(() => {
@@ -4200,49 +4201,49 @@ const qo = /* @__PURE__ */ fe(Xo, [["render", Yo], ["__scopeId", "data-v-6480756
4200
4201
  }), $(() => {
4201
4202
  r.value?.unmounted();
4202
4203
  });
4203
- const a = g(null);
4204
- T([() => l.value.style.width, () => l.value.style.height], ([M, W]) => {
4205
- a.value && (n.value.autoResize ? I() : a.value.redraw());
4204
+ const i = y(null);
4205
+ B([() => l.value.style.width, () => l.value.style.height], ([M, L]) => {
4206
+ i.value && (n.value.autoResize ? j() : i.value.redraw());
4206
4207
  });
4207
- const _ = g([]), w = g([]), j = () => {
4208
+ const p = y([]), V = y([]), W = () => {
4208
4209
  if (!n.value.autoResize)
4209
4210
  return;
4210
4211
  let M = Array.from(
4211
4212
  { length: n.value.rows },
4212
- (O, k) => n.value?.rowHeights?.length > k ? Number(n.value?.rowHeights[k] || n.value.cellHeight) ?? 0 : Number(n.value.cellHeight) ?? 0
4213
+ (P, k) => n.value?.rowHeights?.length > k ? Number(n.value?.rowHeights[k] || n.value.cellHeight) ?? 0 : Number(n.value.cellHeight) ?? 0
4213
4214
  );
4214
4215
  if (l.value.style.height > 0) {
4215
- let O = 0;
4216
- O = M.reduce((b, A) => b + A, 0);
4217
- let k = [], s = 0;
4218
- for (let b = 0; b < n.value.rows; b++)
4219
- k[b] = Math.floor(M[b] / O * l.value.style.height, 0), s += k[b];
4220
- let S = l.value.style.height - s, V = Math.min(S, n.value.rows);
4221
- for (let b = V - 1; b >= 0; b--)
4222
- k[b] += 1;
4223
- _.value = [...k];
4216
+ let P = 0;
4217
+ P = M.reduce((m, F) => m + F, 0);
4218
+ let k = [], u = 0;
4219
+ for (let m = 0; m < n.value.rows; m++)
4220
+ k[m] = Math.floor(M[m] / P * l.value.style.height, 0), u += k[m];
4221
+ let _ = l.value.style.height - u, I = Math.min(_, n.value.rows);
4222
+ for (let m = I - 1; m >= 0; m--)
4223
+ k[m] += 1;
4224
+ p.value = [...k];
4224
4225
  }
4225
- let W = Array.from(
4226
+ let L = Array.from(
4226
4227
  { length: n.value.cols },
4227
- (O, k) => n.value?.colWidths?.length > k ? Number(n.value?.colWidths[k] || n.value.cellWidth) ?? 0 : Number(n.value.cellWidth) ?? 0
4228
+ (P, k) => n.value?.colWidths?.length > k ? Number(n.value?.colWidths[k] || n.value.cellWidth) ?? 0 : Number(n.value.cellWidth) ?? 0
4228
4229
  );
4229
4230
  if (l.value.style.width > 0) {
4230
- let O = 0;
4231
- O = W.reduce((b, A) => b + A, 0);
4232
- let k = [], s = 0;
4233
- for (let b = 0; b < n.value.cols; b++)
4234
- k[b] = Math.floor(W[b] / O * l.value.style.width, 0), s += k[b];
4235
- let S = l.value.style.width - s, V = Math.min(S, n.value.cols);
4236
- for (let b = V - 1; b >= 0; b--)
4237
- k[b] += 1;
4238
- w.value = [...k];
4231
+ let P = 0;
4232
+ P = L.reduce((m, F) => m + F, 0);
4233
+ let k = [], u = 0;
4234
+ for (let m = 0; m < n.value.cols; m++)
4235
+ k[m] = Math.floor(L[m] / P * l.value.style.width, 0), u += k[m];
4236
+ let _ = l.value.style.width - u, I = Math.min(_, n.value.cols);
4237
+ for (let m = I - 1; m >= 0; m--)
4238
+ k[m] += 1;
4239
+ V.value = [...k];
4239
4240
  }
4240
- a.value?.redraw();
4241
- }, I = rt(j, 500);
4242
- T(() => n.value.autoResize, (M) => {
4243
- M && I();
4241
+ i.value?.redraw();
4242
+ }, j = rt(W, 500);
4243
+ B(() => n.value.autoResize, (M) => {
4244
+ M && j();
4244
4245
  }, { immediate: !0 }), c({});
4245
- const C = { props: o, dataCache: e, smartData: i, eventHandler: r, propValue: n, element: l, events: f, router: u, route: y, compContext: p, baseGridTableRef: a, rowHeights: _, colWidths: w, _autoCalcWidthAndHeight: j, debouncedAutoCalcWidthAndHeight: I, get useEventHandler() {
4246
+ const b = { props: o, dataCache: e, smartData: s, eventHandler: r, propValue: n, element: l, events: f, router: a, route: C, compContext: v, baseGridTableRef: i, rowHeights: p, colWidths: V, _autoCalcWidthAndHeight: W, debouncedAutoCalcWidthAndHeight: j, get useEventHandler() {
4246
4247
  return te;
4247
4248
  }, get useDataCacheStore() {
4248
4249
  return re;
@@ -4250,18 +4251,18 @@ const qo = /* @__PURE__ */ fe(Xo, [["render", Yo], ["__scopeId", "data-v-6480756
4250
4251
  return ae;
4251
4252
  }, get CreateCompContext() {
4252
4253
  return ee;
4253
- }, ref: g, computed: m, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, watch: T, reactive: Ze, get useRoute() {
4254
+ }, ref: y, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, watch: B, reactive: Ze, get useRoute() {
4254
4255
  return oe;
4255
4256
  }, get useRouter() {
4256
4257
  return le;
4257
4258
  }, BaseGridTable: qo, get debounce() {
4258
4259
  return rt;
4259
4260
  } };
4260
- return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
4261
+ return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
4261
4262
  }
4262
4263
  });
4263
- function Jo(t, c, o, e, i, r) {
4264
- return P(), F("div", { class: "grid-container" }, [
4264
+ function Jo(t, c, o, e, s, r) {
4265
+ return R(), z("div", { class: "grid-container" }, [
4265
4266
  Oe(e.BaseGridTable, {
4266
4267
  ref: "baseGridTableRef",
4267
4268
  rows: e.propValue.rows,
@@ -4305,9 +4306,9 @@ const Qo = /* @__PURE__ */ fe(Zo, [["render", Jo], ["__scopeId", "data-v-dced3ee
4305
4306
  }
4306
4307
  },
4307
4308
  setup(t, { expose: c }) {
4308
- const { isNotEmpty: o } = Y, e = t, i = re(), r = ae(i), n = g(null), l = m(() => e.propValue || {}), f = m(() => e.element || {}), u = m(() => f.value.events || []), y = le(), p = oe(), a = ee(l, f, y, p);
4309
+ const { isNotEmpty: o } = Y, e = t, s = re(), r = ae(s), n = y(null), l = h(() => e.propValue || {}), f = h(() => e.element || {}), a = h(() => f.value.events || []), C = le(), v = oe(), i = ee(l, f, C, v);
4309
4310
  Q(() => {
4310
- n.value = te(u.value, e.designStatus, a), n.value?.beforeMount();
4311
+ n.value = te(a.value, e.designStatus, i), n.value?.beforeMount();
4311
4312
  }), q(() => {
4312
4313
  n.value?.mounted();
4313
4314
  }), J(() => {
@@ -4315,25 +4316,25 @@ const Qo = /* @__PURE__ */ fe(Zo, [["render", Jo], ["__scopeId", "data-v-dced3ee
4315
4316
  }), $(() => {
4316
4317
  n.value?.unmounted();
4317
4318
  });
4318
- const _ = (M) => {
4319
+ const p = (M) => {
4319
4320
  n.value?.handleClick(M);
4320
- }, w = (M) => {
4321
+ }, V = (M) => {
4321
4322
  n.value?.handleDblClick(M);
4322
- }, j = m(() => o(l.value.text) ? l.value.text.replace(/\n/g, "<br/>") : ""), I = m(() => {
4323
+ }, W = h(() => o(l.value.text) ? l.value.text.replace(/\n/g, "<br/>") : ""), j = h(() => {
4323
4324
  let M = {};
4324
4325
  if (l.value.fontColor && (M.color = l.value.fontColor), l.value.fontSize && (M["font-size"] = l.value.fontSize + "px"), l.value.fontFamily && (M["font-family"] = l.value.fontFamily), l.value.fontWeight && (M["font-weight"] = l.value.fontWeight), l.value.fontStyle && (M["font-style"] = l.value.fontStyle), l.value.textAlign && (M["text-align"] = l.value.textAlign), l.value.extraStyles) {
4325
- let W = Object.keys(l.value.extraStyles);
4326
- for (let O = 0; O < W.length; O++)
4327
- M[W[O]] = l.value.extraStyles[W[O]];
4326
+ let L = Object.keys(l.value.extraStyles);
4327
+ for (let P = 0; P < L.length; P++)
4328
+ M[L[P]] = l.value.extraStyles[L[P]];
4328
4329
  }
4329
4330
  return M;
4330
4331
  });
4331
4332
  c({});
4332
- const C = { isNotEmpty: o, props: e, dataCache: i, smartData: r, eventHandler: n, propValue: l, element: f, events: u, router: y, route: p, compContext: a, handleClick: _, handleDblClick: w, formattedText: j, customStyle: I, get useDataCacheStore() {
4333
+ const b = { isNotEmpty: o, props: e, dataCache: s, smartData: r, eventHandler: n, propValue: l, element: f, events: a, router: C, route: v, compContext: i, handleClick: p, handleDblClick: V, formattedText: W, customStyle: j, get useDataCacheStore() {
4333
4334
  return re;
4334
4335
  }, get createSmartAccessor() {
4335
4336
  return ae;
4336
- }, ref: g, computed: m, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
4337
+ }, ref: y, computed: h, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, get useEventHandler() {
4337
4338
  return te;
4338
4339
  }, get useRoute() {
4339
4340
  return oe;
@@ -4344,12 +4345,12 @@ const Qo = /* @__PURE__ */ fe(Zo, [["render", Jo], ["__scopeId", "data-v-dced3ee
4344
4345
  }, get CommonUtils() {
4345
4346
  return Y;
4346
4347
  } };
4347
- return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
4348
+ return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
4348
4349
  }
4349
4350
  });
4350
- function en(t, c, o, e, i, r) {
4351
- return P(), F("p", {
4352
- style: ye(e.customStyle),
4351
+ function en(t, c, o, e, s, r) {
4352
+ return R(), z("p", {
4353
+ style: Ce(e.customStyle),
4353
4354
  innerHTML: e.formattedText,
4354
4355
  onClick: e.handleClick,
4355
4356
  onDblclick: e.handleDblClick
@@ -4377,21 +4378,21 @@ const tn = /* @__PURE__ */ fe($o, [["render", en], ["__file", "Component.vue"]])
4377
4378
  }
4378
4379
  },
4379
4380
  setup(t, { expose: c }) {
4380
- const { getJsonObject: o } = Y, e = t, i = m(() => e.propValue || {}), r = m(() => e.element || {}), n = m(() => {
4381
+ const { getJsonObject: o } = Y, e = t, s = h(() => e.propValue || {}), r = h(() => e.element || {}), n = h(() => {
4381
4382
  let f = {};
4382
- return f = o(i.value.divStyles, {}), f;
4383
+ return f = o(s.value.divStyles, {}), f;
4383
4384
  });
4384
4385
  c({});
4385
- const l = { getJsonObject: o, props: e, propValue: i, element: r, dividerStyle: n, ref: g, computed: m, get CommonUtils() {
4386
+ const l = { getJsonObject: o, props: e, propValue: s, element: r, dividerStyle: n, ref: y, computed: h, get CommonUtils() {
4386
4387
  return Y;
4387
4388
  } };
4388
4389
  return Object.defineProperty(l, "__isScriptSetup", { enumerable: !1, value: !0 }), l;
4389
4390
  }
4390
4391
  });
4391
- function on(t, c, o, e, i, r) {
4392
- return P(), F("div", {
4392
+ function on(t, c, o, e, s, r) {
4393
+ return R(), z("div", {
4393
4394
  class: "divider",
4394
- style: ye(e.dividerStyle)
4395
+ style: Ce(e.dividerStyle)
4395
4396
  }, null, 4);
4396
4397
  }
4397
4398
  const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b4"], ["__file", "Component.vue"]]), rn = /* @__PURE__ */ Object.assign({
@@ -4416,17 +4417,17 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
4416
4417
  }
4417
4418
  },
4418
4419
  setup(t, { expose: c }) {
4419
- const { getJsonObject: o } = Y, e = t, i = g(!1), r = g(!1), n = m(() => e.propValue || {}), l = m(() => e.element || {}), f = m(() => l.value.events || []), u = g(null), y = le(), p = oe(), a = ee(n, l, y, p);
4420
+ const { getJsonObject: o } = Y, e = t, s = y(!1), r = y(!1), n = h(() => e.propValue || {}), l = h(() => e.element || {}), f = h(() => l.value.events || []), a = y(null), C = le(), v = oe(), i = ee(n, l, C, v);
4420
4421
  Q(() => {
4421
- u.value = te(f.value, e.designStatus, a), u.value?.beforeMount();
4422
+ a.value = te(f.value, e.designStatus, i), a.value?.beforeMount();
4422
4423
  }), q(() => {
4423
- u.value?.mounted();
4424
+ a.value?.mounted();
4424
4425
  }), J(() => {
4425
- u.value?.beforeUnmount();
4426
+ a.value?.beforeUnmount();
4426
4427
  }), $(() => {
4427
- u.value?.unmounted();
4428
+ a.value?.unmounted();
4428
4429
  });
4429
- const _ = m(() => n.value.text || "按钮"), w = m(() => e.designStatus ? !1 : n.value.disabled), j = m(() => o(n.value.styles, {
4430
+ const p = h(() => n.value.text || "按钮"), V = h(() => e.designStatus ? !1 : n.value.disabled), W = h(() => o(n.value.styles, {
4430
4431
  display: "flex",
4431
4432
  // 使用 flex
4432
4433
  alignItems: "center",
@@ -4444,11 +4445,11 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
4444
4445
  // 确保高度100%
4445
4446
  textAlign: "center"
4446
4447
  // 文本居中
4447
- })), I = m(() => o(n.value.hoverStyles, {
4448
+ })), j = h(() => o(n.value.hoverStyles, {
4448
4449
  backgroundColor: "rgba(47, 109, 255, 0.1)",
4449
4450
  transform: "translateY(-1px)",
4450
4451
  boxShadow: "0 2px 8px rgba(47, 109, 255, 0.2)"
4451
- })), C = m(() => o(n.value.textStyles, {
4452
+ })), b = h(() => o(n.value.textStyles, {
4452
4453
  color: "#2F6DFF",
4453
4454
  fontSize: "14px",
4454
4455
  fontWeight: "500",
@@ -4463,28 +4464,28 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
4463
4464
  // 文本也设置手形,确保鼠标在文本上也是手形
4464
4465
  pointerEvents: "none"
4465
4466
  // 防止文本事件干扰div的事件
4466
- })), M = m(() => o(n.value.hoverTextStyles, {
4467
+ })), M = h(() => o(n.value.hoverTextStyles, {
4467
4468
  color: "#1a56db"
4468
- })), W = m(() => {
4469
+ })), L = h(() => {
4469
4470
  if (e.designStatus)
4470
- return { ...j.value, cursor: "default" };
4471
- const b = { ...j.value };
4472
- return w.value ? (Object.assign(b, {
4471
+ return { ...W.value, cursor: "default" };
4472
+ const m = { ...W.value };
4473
+ return V.value ? (Object.assign(m, {
4473
4474
  opacity: "0.6",
4474
4475
  cursor: "not-allowed"
4475
- }), b) : (i.value && I.value && Object.assign(b, I.value), b);
4476
- }), O = m(() => {
4477
- const b = { ...C.value };
4478
- return w.value ? (b.opacity = "0.6", b) : (i.value && M.value && Object.assign(b, M.value), b);
4476
+ }), m) : (s.value && j.value && Object.assign(m, j.value), m);
4477
+ }), P = h(() => {
4478
+ const m = { ...b.value };
4479
+ return V.value ? (m.opacity = "0.6", m) : (s.value && M.value && Object.assign(m, M.value), m);
4479
4480
  }), k = () => {
4480
- !e.designStatus && !w.value && (i.value = !0);
4481
- }, s = () => {
4482
- e.designStatus || (i.value = !1, r.value = !1);
4483
- }, S = (b) => {
4484
- !e.designStatus && !w.value && u.value?.handleClick(b);
4481
+ !e.designStatus && !V.value && (s.value = !0);
4482
+ }, u = () => {
4483
+ e.designStatus || (s.value = !1, r.value = !1);
4484
+ }, _ = (m) => {
4485
+ !e.designStatus && !V.value && a.value?.handleClick(m);
4485
4486
  };
4486
4487
  c({});
4487
- const V = { getJsonObject: o, props: e, isHover: i, isActive: r, propValue: n, element: l, events: f, eventHandler: u, router: y, route: p, compContext: a, buttonText: _, isDisabled: w, baseStyle: j, hoverStyle: I, baseTextStyle: C, hoverTextStyle: M, currentStyle: W, textStyle: O, handleMouseEnter: k, handleMouseLeave: s, handleClick: S, ref: g, computed: m, onBeforeMount: Q, onMounted: q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
4488
+ const I = { getJsonObject: o, props: e, isHover: s, isActive: r, propValue: n, element: l, events: f, eventHandler: a, router: C, route: v, compContext: i, buttonText: p, isDisabled: V, baseStyle: W, hoverStyle: j, baseTextStyle: b, hoverTextStyle: M, currentStyle: L, textStyle: P, handleMouseEnter: k, handleMouseLeave: u, handleClick: _, ref: y, computed: h, onBeforeMount: Q, onMounted: q, onBeforeUnmount: J, onUnmounted: $, get useRoute() {
4488
4489
  return oe;
4489
4490
  }, get useRouter() {
4490
4491
  return le;
@@ -4495,17 +4496,17 @@ const nn = /* @__PURE__ */ fe(ln, [["render", on], ["__scopeId", "data-v-490ca7b
4495
4496
  }, get useEventHandler() {
4496
4497
  return te;
4497
4498
  } };
4498
- return Object.defineProperty(V, "__isScriptSetup", { enumerable: !1, value: !0 }), V;
4499
+ return Object.defineProperty(I, "__isScriptSetup", { enumerable: !1, value: !0 }), I;
4499
4500
  }
4500
4501
  });
4501
- function an(t, c, o, e, i, r) {
4502
- return P(), F("div", { class: "div-container" }, [
4502
+ function an(t, c, o, e, s, r) {
4503
+ return R(), z("div", { class: "div-container" }, [
4503
4504
  ue("div", {
4504
4505
  class: Re(["division-button", {
4505
4506
  "division-hover": e.isHover,
4506
4507
  "division-disabled": e.isDisabled
4507
4508
  }]),
4508
- style: ye(e.currentStyle),
4509
+ style: Ce(e.currentStyle),
4509
4510
  onMouseenter: e.handleMouseEnter,
4510
4511
  onMouseleave: e.handleMouseLeave,
4511
4512
  onClick: e.handleClick
@@ -4517,7 +4518,7 @@ function an(t, c, o, e, i, r) {
4517
4518
  de(),
4518
4519
  ue("span", {
4519
4520
  class: "division-text",
4520
- style: ye(e.textStyle)
4521
+ style: Ce(e.textStyle)
4521
4522
  }, De(e.buttonText), 5)
4522
4523
  ])
4523
4524
  ], 38)
@@ -4546,68 +4547,92 @@ const un = /* @__PURE__ */ fe(rn, [["render", an], ["__scopeId", "data-v-b5a7fa8
4546
4547
  },
4547
4548
  setup(t, { expose: c }) {
4548
4549
  c();
4549
- const { isNotEmpty: o, isObject: e, hasOwnPathInObject: i, getValueByPath: r } = Y, n = Fe(), l = g(null), f = t, u = re(), y = ae(u), p = g(null), a = m(() => f.propValue || {}), _ = m(() => f.element || {}), w = m(() => _.value.events || []), j = le(), I = oe(), C = ee(a, _, j, I);
4550
+ const { isNotEmpty: o, isObject: e, hasOwnPathInObject: s, getValueByPath: r } = Y, n = Fe(), l = y(null), f = t, a = re(), C = ae(a), v = y(null);
4551
+ let i = null;
4552
+ const p = h(() => f.propValue || {}), V = h(() => f.element || {}), W = h(() => V.value.events || []), j = le(), b = oe(), M = ee(p, V, j, b);
4550
4553
  Q(() => {
4551
- p.value = te(w.value, f.designStatus, C), p.value?.beforeMount();
4554
+ v.value = te(W.value, f.designStatus, M), v.value?.beforeMount();
4552
4555
  }), q(() => {
4553
- p.value?.mounted();
4556
+ i = setInterval(() => {
4557
+ e(m.value) && (se(), i && (clearInterval(i), i = null));
4558
+ }, 2e3), v.value?.mounted();
4554
4559
  }), J(() => {
4555
- p.value?.beforeUnmount();
4560
+ i && (clearInterval(i), i = null), v.value?.beforeUnmount();
4556
4561
  }), $(() => {
4557
- p.value?.unmounted();
4562
+ v.value?.unmounted();
4558
4563
  });
4559
- const M = (v) => {
4560
- p.value?.setParam(v);
4561
- }, W = (v) => {
4562
- p.value?.handleDblClick(v);
4563
- }, O = g("");
4564
- T(O, (v) => {
4564
+ const L = (x) => {
4565
+ v.value?.setParam(x);
4566
+ }, P = (x) => {
4567
+ v.value?.handleDblClick(x);
4568
+ }, k = y("");
4569
+ B(k, (x) => {
4565
4570
  we(() => {
4566
- l.value && v ? l.value.innerHTML = v : l.value && (l.value.innerHTML = "");
4571
+ l.value && x ? l.value.innerHTML = x : l.value && (l.value.innerHTML = "");
4567
4572
  });
4568
4573
  });
4569
- const k = m(() => {
4570
- let v = {};
4571
- return o(a.value.firstColor) && (v["--custom-first-color"] = a.value.firstColor), o(a.value.secondColor) && (v["--custom-second-color"] = a.value.secondColor), o(a.value.thirdColor) && (v["--custom-third-color"] = a.value.thirdColor), o(a.value.fourColor) && (v["--custom-four-color"] = a.value.fourColor), o(a.value.fiveColor) && (v["--custom-five-color"] = a.value.fiveColor), v.cursor = Se(w.value), v;
4572
- }), s = (v) => {
4573
- n.getFile(v, function(h) {
4574
- if (h && h.status == 200) {
4575
- let B = h.data || "";
4576
- O.value = S(B);
4574
+ const u = h(() => {
4575
+ let x = {};
4576
+ return o(p.value.firstColor) && (x["--custom-first-color"] = p.value.firstColor), o(p.value.secondColor) && (x["--custom-second-color"] = p.value.secondColor), o(p.value.thirdColor) && (x["--custom-third-color"] = p.value.thirdColor), o(p.value.fourColor) && (x["--custom-four-color"] = p.value.fourColor), o(p.value.fiveColor) && (x["--custom-five-color"] = p.value.fiveColor), x.cursor = _e(W.value), x;
4577
+ }), _ = (x) => {
4578
+ n.getFile(x, function(O) {
4579
+ if (O && O.status == 200) {
4580
+ let G = O.data || "";
4581
+ k.value = I(G);
4577
4582
  } else
4578
- O.value = "";
4579
- }, function(h) {
4580
- O.value = "";
4583
+ k.value = "";
4584
+ }, function(O) {
4585
+ k.value = "";
4581
4586
  });
4582
4587
  };
4583
- T(() => a.value.svgFile, (v) => {
4584
- o(v) ? s(v) : O.value = "";
4585
- }, { immediate: !0 }), T(() => a.value.aspectRatio, (v) => {
4586
- o(a.value.svgFile) && s(a.value.svgFile);
4588
+ B(() => p.value.svgFile, (x) => {
4589
+ o(x) ? _(x) : k.value = "";
4590
+ }, { immediate: !0 }), B(() => p.value.aspectRatio, (x) => {
4591
+ o(p.value.svgFile) && _(p.value.svgFile);
4587
4592
  }, { immediate: !0 });
4588
- const S = (v) => {
4589
- const h = a.value.aspectRatio || "xMidYMid meet";
4590
- return v.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${h}"`);
4591
- }, V = y[a.value.cacheKey], b = g({}), A = g({}), H = g({}), x = g({}), Z = g({}), E = g({});
4592
- T(() => V.value, (v) => {
4593
- if (o(a.value.cacheKey) && e(v)) {
4594
- let h = a.value.svgFileCK;
4595
- o(h) && i(V.value, h) && (b.value = r(V.value, h)), h = a.value.firstColorCK, o(h) && i(V.value, h) && (A.value = r(V.value, h)), h = a.value.secondColorCK, o(h) && i(V.value, h) && (H.value = r(V.value, h)), h = a.value.thirdColorCK, o(h) && i(V.value, h) && (x.value = r(V.value, h)), h = a.value.fourColorCK, o(h) && i(V.value, h) && (Z.value = r(V.value, h)), h = a.value.fiveColorCK, o(h) && i(V.value, h) && (E.value = r(V.value, h));
4596
- }
4597
- }, { immediate: !0 }), T(() => b.value, (v) => {
4598
- o(a.value.svgFileCK) && (a.value.svgFile = v);
4599
- }), T(() => A.value, (v) => {
4600
- o(a.value.firstColorCK) && (a.value.firstColor = v ?? "none");
4601
- }), T(() => H.value, (v) => {
4602
- o(a.value.secondColorCK) && (a.value.secondColor = v ?? "none");
4603
- }), T(() => x.value, (v) => {
4604
- o(a.value.thirdColorCK) && (a.value.thirdColor = v ?? "none");
4605
- }), T(() => Z.value, (v) => {
4606
- o(a.value.fourColorCK) && (a.value.fourColor = v ?? "none");
4607
- }), T(() => E.value, (v) => {
4608
- o(a.value.fiveColorCK) && (a.value.fiveColor = v ?? "none");
4593
+ const I = (x) => {
4594
+ const O = p.value.aspectRatio || "xMidYMid meet";
4595
+ return x.replace(/<svg([^>]*)width="[^"]*"/gi, "<svg$1").replace(/<svg([^>]*)height="[^"]*"/gi, "<svg$1").replace(/<svg/, `<svg preserveAspectRatio="${O}"`);
4596
+ }, m = C[p.value.cacheKey], F = y({}), H = y({}), S = y({}), Z = y({}), N = y({}), d = y({}), g = () => {
4597
+ o(p.value.svgFileCK) && (p.value.svgFile = F.value);
4598
+ }, w = () => {
4599
+ o(p.value.firstColorCK) && (p.value.firstColor = H.value ?? "none");
4600
+ }, A = () => {
4601
+ o(p.value.secondColorCK) && (p.value.secondColor = S.value ?? "none");
4602
+ }, E = () => {
4603
+ o(p.value.thirdColorCK) && (p.value.thirdColor = Z.value ?? "none");
4604
+ }, X = () => {
4605
+ o(p.value.fourColorCK) && (p.value.fourColor = N.value ?? "none");
4606
+ }, D = () => {
4607
+ o(p.value.fiveColorCK) && (p.value.fiveColor = d.value ?? "none");
4608
+ };
4609
+ B(() => F.value, (x) => {
4610
+ g();
4611
+ }), B(() => H.value, (x) => {
4612
+ w();
4613
+ }), B(() => S.value, (x) => {
4614
+ A();
4615
+ }), B(() => Z.value, (x) => {
4616
+ E();
4617
+ }), B(() => N.value, (x) => {
4618
+ X();
4619
+ }), B(() => d.value, (x) => {
4620
+ D();
4609
4621
  });
4610
- const d = { isNotEmpty: o, isObject: e, hasOwnPathInObject: i, getValueByPath: r, api: n, svgContainerRef: l, props: f, dataCache: u, smartData: y, eventHandler: p, propValue: a, element: _, events: w, router: j, route: I, compContext: C, handleClick: M, handleDblClick: W, svgContent: O, customStyle: k, loadSvgFile: s, removeSvgDimensions: S, cacheData: V, fileData: b, firstColorData: A, secondColorData: H, thirdColorData: x, fourColorData: Z, fiveColorData: E, get useEventHandler() {
4622
+ const se = () => {
4623
+ if (!e(m.value))
4624
+ return;
4625
+ let x = p.value.svgFileCK;
4626
+ o(x) && s(m.value, x) && (F.value = r(m.value, x), g()), x = p.value.firstColorCK, o(x) && s(m.value, x) && (H.value = r(m.value, x), w()), x = p.value.secondColorCK, o(x) && s(m.value, x) && (S.value = r(m.value, x), A()), x = p.value.thirdColorCK, o(x) && s(m.value, x) && (Z.value = r(m.value, x), E()), x = p.value.fourColorCK, o(x) && s(m.value, x) && (N.value = r(m.value, x), X()), x = p.value.fiveColorCK, o(x) && s(m.value, x) && (d.value = r(m.value, x), D());
4627
+ };
4628
+ B(() => m.value, (x) => {
4629
+ o(p.value.cacheKey) && e(x) && se();
4630
+ }, { immediate: !0 });
4631
+ const ge = { isNotEmpty: o, isObject: e, hasOwnPathInObject: s, getValueByPath: r, api: n, svgContainerRef: l, props: f, dataCache: a, smartData: C, eventHandler: v, get timer() {
4632
+ return i;
4633
+ }, set timer(x) {
4634
+ i = x;
4635
+ }, propValue: p, element: V, events: W, router: j, route: b, compContext: M, handleClick: L, handleDblClick: P, svgContent: k, customStyle: u, loadSvgFile: _, removeSvgDimensions: I, cacheData: m, fileData: F, firstColorData: H, secondColorData: S, thirdColorData: Z, fourColorData: N, fiveColorData: d, dealFileData: g, dealFirstColorData: w, dealSecondColorData: A, dealThirdColorData: E, dealFourColorData: X, dealFiveColorData: D, dealBsData: se, get useEventHandler() {
4611
4636
  return te;
4612
4637
  }, get useDataCacheStore() {
4613
4638
  return re;
@@ -4615,7 +4640,7 @@ const un = /* @__PURE__ */ fe(rn, [["render", an], ["__scopeId", "data-v-b5a7fa8
4615
4640
  return ae;
4616
4641
  }, get CreateCompContext() {
4617
4642
  return ee;
4618
- }, ref: g, computed: m, watch: T, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, nextTick: we, get CommonUtils() {
4643
+ }, ref: y, computed: h, watch: B, onMounted: q, onBeforeMount: Q, onBeforeUnmount: J, onUnmounted: $, nextTick: we, get CommonUtils() {
4619
4644
  return Y;
4620
4645
  }, get useRoute() {
4621
4646
  return oe;
@@ -4624,21 +4649,21 @@ const un = /* @__PURE__ */ fe(rn, [["render", an], ["__scopeId", "data-v-b5a7fa8
4624
4649
  }, get useApi() {
4625
4650
  return Fe;
4626
4651
  }, get getCursorByEvents() {
4627
- return Se;
4652
+ return _e;
4628
4653
  } };
4629
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
4654
+ return Object.defineProperty(ge, "__isScriptSetup", { enumerable: !1, value: !0 }), ge;
4630
4655
  }
4631
4656
  });
4632
- function cn(t, c, o, e, i, r) {
4633
- return P(), F("div", {
4657
+ function cn(t, c, o, e, s, r) {
4658
+ return R(), z("div", {
4634
4659
  ref: "svgContainerRef",
4635
4660
  class: "svg-container",
4636
4661
  onClick: e.handleClick,
4637
4662
  onDblclick: e.handleDblClick,
4638
- style: ye(e.customStyle)
4663
+ style: Ce(e.customStyle)
4639
4664
  }, null, 36);
4640
4665
  }
4641
- const dn = /* @__PURE__ */ fe(sn, [["render", cn], ["__scopeId", "data-v-54c5681f"], ["__file", "Component.vue"]]), fn = [
4666
+ const dn = /* @__PURE__ */ fe(sn, [["render", cn], ["__scopeId", "data-v-9182799c"], ["__file", "Component.vue"]]), fn = [
4642
4667
  Kt,
4643
4668
  Xt,
4644
4669
  oo,