dsp-semactic 0.5.9 → 0.5.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.
- package/dist/dsp-semactic.css +1 -1
- package/dist/index.cjs.js +75 -0
- package/dist/index.es.js +2558 -0
- package/package.json +12 -1
- package/dist/vue-design-system.es.js +0 -5632
- package/dist/vue-design-system.umd.js +0 -97
package/dist/dsp-semactic.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.dss-custom-chart-container{position:relative;font-family:Arial,sans-serif;background:#fff;border-radius:8px;overflow:visible;margin:.5rem}.dss-chart-header{display:flex;justify-content:space-between;align-items:center}.dss-chart-title{text-align:left;font-size:18px;font-weight:700;color:#333;margin:15px 0 5px;padding:1rem 0 0 1.5rem}.dss-chart-subtitle{text-align:left;font-size:14px;color:#666;margin-bottom:10px;padding-left:1.5rem}.dss-chart-svg{display:block;width:100%;height:100%;position:relative}.dss-chart-svg.has-watermark{background-image:var(--watermark-url);background-repeat:no-repeat;background-position:center;background-size:var(--watermark-size, 30%);background-blend-mode:multiply}.dss-chart-svg.has-watermark:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background-image:var(--watermark-url);background-repeat:no-repeat;background-position:center;background-size:var(--watermark-size, 30%);opacity:var(--watermark-opacity, .05);pointer-events:none;z-index:1}.dss-chart-legend{display:flex;justify-content:flex-end;gap:.5rem;padding-right:1.5rem}.dss-legend-item{display:flex;align-items:center;gap:.3rem;cursor:pointer;transition:all .3s ease;padding:4px 8px;border-radius:4px}.dss-legend-item.legend-dimmed{opacity:.5;transform:none}.dss-legend-color{width:12px;height:12px;border-radius:50%;transition:transform .3s ease}.dss-legend-item.legend-hovered .dss-legend-color{transform:scale(1.2)}.dss-legend-text{font-size:14px;transition:font-weight .3s ease}.dss-legend-item.legend-hovered .dss-legend-text{font-weight:600}.dss-legend-item.hidden{opacity:.5;text-decoration:line-through;filter:none!important;transform:none!important}.dss-chart-tooltip{position:absolute;background:#000c;color:#fff;padding:8px 12px;border-radius:4px;font-size:12px;pointer-events:none;z-index:9999;min-width:120px;max-width:200px;word-wrap:break-word;white-space:nowrap}.dss-chart-tooltip.dss-crosshair-tooltip{background:#000000e6;padding:10px 14px;min-width:150px;max-width:250px;white-space:normal}.dss-tooltip-title{font-weight:700;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:4px}.dss-tooltip-value{font-size:11px;opacity:.9}.dss-tooltip-series{display:flex;align-items:center;gap:6px;margin:4px 0;font-size:11px}.dss-tooltip-series-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dss-tooltip-series-name{color:#fffc;flex-shrink:0}.dss-tooltip-series-value{font-weight:700;margin-left:auto}.dss-crosshair{pointer-events:none}.dss-crosshair line,.dss-crosshair circle{transition:opacity .1s ease}.dss-zoom-indicator{position:absolute;top:20%;right:10px;background:#000c;color:#fff;padding:8px 12px;border-radius:4px;font-size:12px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s ease;z-index:1000}.dss-zoom-indicator:hover{background:#000000e6}.dss-chart-svg:hover .dss-chart-data path{transition:opacity .2s ease}.dss-spider-chart .dss-spider-data polygon{cursor:pointer;transition:fill-opacity .2s ease}.dss-spider-chart .dss-spider-data polygon:hover{fill-opacity:.3!important}.dss-spider-chart .dss-spider-data circle{cursor:pointer;transition:r .2s ease}.dss-spider-chart .dss-spider-data circle:hover{r:6}.dss-spider-labels text{-webkit-user-select:none;user-select:none;font-weight:500}.dss-spider-grid{pointer-events:none}.dss-chart-logos image{border-radius:50%}.dss-series-hidden{opacity:0!important;pointer-events:none!important;filter:none!important;transform:none!important;stroke-width:inherit!important;fill-opacity:0!important}.dss-chart-data .dss-series-hidden,.dss-chart-data .dss-point-hidden,.dss-chart-data .dss-bar-hidden,.dss-radial-data .dss-series-hidden,.dss-spider-data .dss-series-hidden,.dss-spider-data .dss-point-hidden{opacity:0!important;pointer-events:none!important;visibility:hidden!important}.dss-point-hidden,.dss-bar-hidden{opacity:0!important;pointer-events:none}.dss-series-highlighted{filter:brightness(1.1);opacity:1!important;transform:scaleZ(1.1)}.dss-series-dimmed{opacity:.3;transition:opacity .3s ease}.dss-point-dimmed{opacity:.4;transition:opacity .3s ease}.dss-bar-highlighted{filter:brightness(1.1);transform-origin:center bottom}.dss-bar-dimmed{opacity:.4;transition:opacity .3s ease}.dss-custom-chart-container.dss-chart-animated{--dss-animation-duration: 1.5s;--dss-animation-easing: ease-out;--dss-stagger-delay: .2s;--dss-animation-progress: 0}.dss-animate-draw .dss-chart-data path[stroke]{stroke-dasharray:var(--dss-path-length, 1000);stroke-dashoffset:var(--dss-path-length, 1000);animation:drawPath var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes drawPath{to{stroke-dashoffset:0}}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(1){animation-delay:0ms}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(2){animation-delay:var(--dss-stagger-delay)}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(3){animation-delay:calc(var(--dss-stagger-delay) * 2)}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(4){animation-delay:calc(var(--dss-stagger-delay) * 3)}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(5){animation-delay:calc(var(--dss-stagger-delay) * 4)}.dss-animate-fade .dss-chart-data>g>*{opacity:0;animation:fadeIn var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes fadeIn{to{opacity:1}}.dss-animate-draw .dss-area-line-animated{stroke-dasharray:var(--dss-path-length, 1000);stroke-dashoffset:var(--dss-path-length, 1000);animation:drawPath calc(var(--dss-animation-duration) * .8) var(--dss-animation-easing) forwards}.dss-animate-draw .dss-area-mask-rect{transform:translate(calc(-1 * var(--dss-mask-width)));animation:smoothFillRight calc(var(--dss-animation-duration) * 1.2) cubic-bezier(.4,0,.2,1) forwards}@keyframes smoothFillRight{0%{transform:translate(calc(-1 * var(--dss-mask-width)))}to{transform:translate(0)}}.dss-area-fill-smooth{transition:all .3s cubic-bezier(.4,0,.2,1)}.dss-area-mask-rect{will-change:transform;backface-visibility:hidden;transform-origin:left center}.dss-animate-fade .dss-chart-data path:nth-child(1){animation-delay:0ms}.dss-animate-fade .dss-chart-data path:nth-child(2){animation-delay:var(--dss-stagger-delay)}.dss-animate-fade .dss-chart-data path:nth-child(3){animation-delay:calc(var(--dss-stagger-delay) * 2)}.dss-animate-fade .dss-chart-data circle{animation-delay:calc(var(--dss-animation-duration) * .6)}.dss-animate-fade .dss-chart-data rect{animation-delay:calc(var(--dss-stagger-delay) * .5)}.dss-animate-scale .dss-chart-data>g>*{transform-origin:center;transform:scale(0);animation:scaleUp var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes scaleUp{to{transform:scale(1)}}.dss-animate-scale .dss-chart-data rect{transform-origin:center bottom;transform:scaleY(0);animation:scaleUpY var(--dss-animation-duration) var(--dss-animation-easing) forwards}.dss-animate-scale .dss-chart-data rect{transform-box:fill-box;transform-origin:50% 100%}.dss-animate-scale .dss-chart-data rect,.dss-animate-scale .dss-chart-data path[d*=M]{transform-box:fill-box;transform-origin:center bottom;transform:scaleY(0);animation:scaleUpBarFromAxis var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes scaleUpBarFromAxis{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.dss-chart-data rect,.dss-chart-data path[d*=M]{transition:opacity .2s ease,filter .2s ease}.dss-chart-data rect:hover,.dss-chart-data path[d*=M]:hover{opacity:.8;filter:brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,.15))}@keyframes scaleUpY{to{transform:scaleY(1)}}.dss-animate-scale .dss-chart-data rect:nth-child(1){animation-delay:0ms}.dss-animate-scale .dss-chart-data rect:nth-child(2){animation-delay:calc(var(--dss-stagger-delay) * .3)}.dss-animate-scale .dss-chart-data rect:nth-child(3){animation-delay:calc(var(--dss-stagger-delay) * .6)}.dss-animate-scale .dss-chart-data rect:nth-child(4){animation-delay:calc(var(--dss-stagger-delay) * .9)}.dss-animate-scale .dss-chart-data rect:nth-child(5){animation-delay:calc(var(--dss-stagger-delay) * 1.2)}.dss-animate-draw .dss-radial-data path{stroke-dasharray:1000;stroke-dashoffset:1000;animation:drawPath calc(var(--dss-animation-duration) * .8) var(--dss-animation-easing) forwards}.dss-animate-scale .dss-radial-data path{transform-origin:center;transform:scale(0);animation:scaleRotate var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes scaleRotate{0%{transform:scale(0) rotate(-90deg)}to{transform:scale(1) rotate(0)}}.dss-animate-fade .dss-spider-data polygon{opacity:0;animation:fadeIn var(--dss-animation-duration) var(--dss-animation-easing) forwards}.dss-animate-scale .dss-spider-data polygon{transform-origin:center;transform:scale(0);animation:scaleUp calc(var(--dss-animation-duration) * 1.2) var(--dss-animation-easing) forwards}.dss-animate-draw .dss-spider-data polygon{stroke-dasharray:2000;stroke-dashoffset:2000;animation:drawPath calc(var(--dss-animation-duration) * 1.5) var(--dss-animation-easing) forwards}.dss-animate-fade .dss-axes line,.dss-animate-fade .dss-grid-lines line{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .6) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .1)}@keyframes scaleUpX{to{transform:scaleX(1)}}.dss-animate-fade .dss-axis-labels text{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .4) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .7)}.dss-animate-fade .dss-chart-logos circle,.dss-animate-fade .dss-chart-logos image{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .6) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .8)}.dss-chart-data circle{transition:r .2s ease,opacity .2s ease,filter .2s ease}.dss-chart-data circle:hover{r:6px;filter:brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,.2))}.dss-chart-data rect{transition:opacity .2s ease,filter .2s ease}.dss-chart-data rect:hover{opacity:.8;filter:brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,.15))}.dss-chart-data path{transition:stroke-width .2s ease,opacity .2s ease,filter .2s ease}@media (prefers-reduced-motion: reduce){.dss-chart-animated *{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}}.dss-chart-animated{will-change:transform,opacity}.dss-chart-animated .dss-chart-data{transform:translateZ(0);backface-visibility:hidden;perspective:1000px}.dss-is-animating{pointer-events:none}.dss-animation-complete{pointer-events:auto}.dss-animate-fade .dss-chart-title{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .4) var(--dss-animation-easing) forwards;animation-delay:0ms}.dss-animate-fade .dss-chart-subtitle{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .4) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .1)}.dss-custom-chart-container{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.dss-custom-chart-container[style*="cursor: grab"]{cursor:grab!important}.dss-custom-chart-container[style*="cursor: grabbing"]{cursor:grabbing!important}.dss-custom-chart-container[style*="cursor: grabbing"] *{pointer-events:none}.dss-chart-svg{transition:none}.dss-chart-data{transition:transform .1s ease-out}.dss-animate-fill .dss-radial-data path{animation:none}.dss-animate-fill .dss-radial-data{clip-path:polygon(50% 50%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 50%);animation:radialFillSweep var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes radialFillSweep{0%{clip-path:polygon(50% 50%,50% 0%,50% 0%,50% 50%)}5%{clip-path:polygon(50% 50%,50% 0%,70% 0%,50% 50%)}10%{clip-path:polygon(50% 50%,50% 0%,90% 0%,50% 50%)}15%{clip-path:polygon(50% 50%,50% 0%,100% 0%,50% 50%)}20%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 30%,50% 50%)}25%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 50%,50% 50%)}30%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 70%,50% 50%)}35%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 90%,50% 50%)}40%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,50% 50%)}45%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,70% 100%,50% 50%)}50%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,50% 100%,50% 50%)}55%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,30% 100%,50% 50%)}60%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,10% 100%,50% 50%)}65%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,50% 50%)}70%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 70%,50% 50%)}75%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 50%,50% 50%)}80%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 30%,50% 50%)}85%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 10%,50% 50%)}90%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 0%,50% 50%)}95%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 0%,30% 0%,50% 50%)}to{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 0%,50% 0%,50% 50%)}}.dss-chart-context-menu{position:fixed;background:#fff;border:1px solid #ddd;border-radius:8px;z-index:10000;min-width:180px;overflow:hidden;animation:contextMenuFadeIn .15s ease-out;padding:4px;font-family:Arial,sans-serif}@keyframes contextMenuFadeIn{0%{opacity:0;transform:scale(.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}.dss-context-menu-item{display:flex;align-items:center;gap:8px;padding:10px 14px;cursor:pointer;transition:background-color .15s ease;font-size:14px;color:#333}.dss-context-menu-item:hover{background-color:#f5f5f5}.dss-context-menu-icon{font-size:14px;width:16px;display:flex;justify-content:center}.dss-context-menu-separator{height:1px;background-color:#e5e5e5;margin:4px 0}.dss-custom-menu-content{display:flex;align-items:center;gap:8px;width:100%}.dss-custom-menu-content *{pointer-events:none}.dss-context-menu-item.dss-custom-styled{padding:0}.dss-context-menu-item.dss-custom-styled .dss-custom-menu-content{padding:8px 12px;width:100%}.dss-marker-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10001;animation:modalOverlayFadeIn .2s ease-out;font-family:Arial,sans-serif}@keyframes modalOverlayFadeIn{0%{opacity:0}to{opacity:1}}.dss-marker-modal{background:#fff;border-radius:8px;width:90%;max-width:450px;animation:modalSlideIn .2s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.dss-marker-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px 16px;border-bottom:1px solid #e5e5e5}.dss-marker-modal-header h3{margin:0;font-size:18px;font-weight:600;color:#333}.dss-modal-close-dss-btn{background:none;border:none;font-size:24px;cursor:pointer;color:#666;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px}.dss-marker-modal-body{padding:20px 24px}.dss-form-group{margin-bottom:16px}.dss-form-group:last-child{margin-bottom:0}.dss-form-group label{display:block;margin-bottom:6px;font-weight:500;color:#333;font-size:14px}.dss-form-input,.dss-form-textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .15s ease;box-sizing:border-box}.dss-form-input:focus,.dss-form-textarea:focus{outline:none;border-color:#047395}.dss-form-textarea{resize:vertical;min-height:60px;font-family:inherit}.dss-form-color{width:40px;height:40px;border:1px solid #ddd;border-radius:4px;cursor:pointer;padding:0}.dss-marker-modal-footer{display:flex;gap:12px;justify-content:space-between;padding:16px 24px 20px}.dss-modal-footer-right{display:flex;gap:.6rem}.dss-btn{padding:10px 20px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease;min-width:80px}.dss-btn-secondary{background:#f5f5f5;color:#333}.dss-btn-secondary:hover{background:#e5e5e5}.dss-btn-primary{background:#ffc02e;color:#000}.dss-btn-primary:hover:not(:disabled){background:#e09d00}.dss-btn-primary:disabled{background:#ffc02e80;cursor:not-allowed}.dss-markers{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1000}.dss-marker{transition:all .2s ease}.dss-marker:hover{transform:translate(-50%,-50%) scale(1.2)!important;z-index:1001}.dss-marker-icon{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center}.dss-btn-danger{background-color:#da073b;color:#fff;border:1px solid hsl(345,94%,44%);padding:8px 16px;border-radius:4px;cursor:pointer;font-size:14px}.dss-btn-danger:hover{filter:brightness(.9)}.dss-custom-chart-container{position:relative;overflow:hidden}.dss-chart-watermark{mix-blend-mode:multiply;filter:grayscale(50%);background-color:transparent}.dss-flag-count-indicator{cursor:pointer;transform-origin:center center}.dss-flag-extension-line{pointer-events:none}.dss-flag-line{cursor:pointer;transition:all .2s ease}.dss-flag-count-text{pointer-events:none;-webkit-user-select:none;user-select:none}.dss-flag-type-indicator{pointer-events:none}.dss-tooltip-section{margin-bottom:8px}.dss-tooltip-section:last-child{margin-bottom:0}.dss-tooltip-separator{height:1px;background-color:#fff3;margin:8px 0}.dss-tooltip-section-title{font-size:11px;font-weight:600;color:#fffc;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.dss-tooltip-item{display:flex;align-items:flex-start;gap:6px;margin-bottom:4px;padding:2px 0}.dss-tooltip-item:last-child{margin-bottom:0}.dss-tooltip-item-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dss-tooltip-item-content{flex:1;min-width:0}.dss-tooltip-item-type{font-size:10px;color:#ffffffb3;text-transform:uppercase;letter-spacing:.3px}.dss-tooltip-item-title{font-size:12px;font-weight:500;color:#fff;line-height:1.3}.dss-tooltip-item-text,.dss-tooltip-item-description{font-size:11px;color:#ffffffe6;line-height:1.3;word-wrap:break-word}.dss-chart-tooltip{max-width:250px;min-width:150px}.dss-tooltip-group-header{font-weight:600;font-size:10px;margin:10px 0 4px;text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:6px}.dss-tooltip-group-header:first-child{margin-top:6px}.dss-tooltip-item-no-indicator{padding-left:16px}.dss-radial-labels .dss-label-highlighted text{font-weight:700;fill-opacity:1}.dss-radial-labels .dss-label-dimmed text{fill-opacity:.5}.dss-radial-labels .dss-label-dimmed line{stroke-opacity:.3}.dss-radial-labels text{transition:all .3s ease}.dss-radial-labels line{transition:all .3s ease}.storybook-button[data-v-ade7987a]{display:inline-block;cursor:pointer;border:0;border-radius:3em;font-weight:700;line-height:1;font-family:Nunito Sans,Helvetica Neue,Helvetica,Arial,sans-serif}.storybook-button--primary[data-v-ade7987a]{background-color:#555ab9;color:#fff}.storybook-button--secondary[data-v-ade7987a]{box-shadow:#00000026 0 0 0 1px inset;background-color:transparent;color:#333}.storybook-button--small[data-v-ade7987a]{padding:10px 16px;font-size:12px}.storybook-button--medium[data-v-ade7987a]{padding:11px 20px;font-size:14px}.storybook-button--large[data-v-ade7987a]{padding:12px 24px;font-size:16px}
|
|
1
|
+
.dss-custom-chart-container{position:relative;font-family:Arial,sans-serif;background:#fff;border-radius:8px;overflow:visible;margin:.5rem}.dss-chart-header{display:flex;justify-content:space-between;align-items:center}.dss-chart-title{text-align:left;font-size:18px;font-weight:700;color:#333;margin:15px 0 5px;padding:1rem 0 0 1.5rem}.dss-chart-subtitle{text-align:left;font-size:14px;color:#666;margin-bottom:10px;padding-left:1.5rem}.dss-chart-svg{display:block;width:100%;height:80%;position:relative}.dss-chart-svg.has-watermark{background-image:var(--watermark-url);background-repeat:no-repeat;background-position:center;background-size:var(--watermark-size, 30%);background-blend-mode:multiply}.dss-chart-svg.has-watermark:before{content:"";position:absolute;inset:0;background-image:var(--watermark-url);background-repeat:no-repeat;background-position:center;background-size:var(--watermark-size, 30%);opacity:var(--watermark-opacity, .05);pointer-events:none;z-index:1}.dss-chart-legend{display:flex;justify-content:flex-end;flex-wrap:wrap!important;gap:.5rem;padding-right:1rem;max-width:50%!important;margin-top:1rem!important}.dss-legend-item{display:flex;align-items:center;gap:.3rem;cursor:pointer;transition:all .3s ease;padding:4px 8px;border-radius:4px}.dss-legend-item.dss-legend-dimmed{opacity:.5;transform:none}.dss-legend-color{width:12px;height:12px;border-radius:50%;transition:transform .3s ease}.dss-legend-item.dss-legend-hovered .dss-legend-color{transform:scale(1.2)}.dss-legend-text{font-size:14px;transition:font-weight .3s ease}.dss-legend-item.dss-legend-hovered .dss-legend-text{font-weight:600}.dss-legend-item.dss-legend-hidden{opacity:.5!important;text-decoration:line-through!important;filter:none!important;transform:none!important;display:flex!important;visibility:visible!important}.dss-chart-tooltip{position:absolute;background:#000c;color:#fff;padding:8px 12px;border-radius:4px;font-size:12px;pointer-events:none;z-index:9999;min-width:120px;max-width:200px;word-wrap:break-word;white-space:nowrap}.dss-chart-tooltip.dss-crosshair-tooltip{background:#000000e6;padding:10px 14px;min-width:150px;max-width:250px;white-space:normal}.dss-tooltip-title{font-weight:700;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:4px}.dss-tooltip-value{font-size:11px;opacity:.9}.dss-tooltip-series{display:flex;align-items:center;gap:6px;margin:4px 0;font-size:11px}.dss-tooltip-series-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dss-tooltip-series-name{color:#fffc;flex-shrink:0}.dss-tooltip-series-value{font-weight:700;margin-left:auto}.dss-crosshair{pointer-events:none}.dss-crosshair line,.dss-crosshair circle{transition:opacity .1s ease}.dss-zoom-indicator{position:absolute;top:20%;right:10px;background:#000c;color:#fff;padding:8px 12px;border-radius:4px;font-size:12px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .2s ease;z-index:1000}.dss-zoom-indicator:hover{background:#000000e6}.dss-chart-svg:hover .dss-chart-data path{transition:opacity .2s ease}.dss-spider-chart .dss-spider-data polygon{cursor:pointer;transition:fill-opacity .2s ease}.dss-spider-chart .dss-spider-data polygon:hover{fill-opacity:.3!important}.dss-spider-chart .dss-spider-data circle{cursor:pointer;transition:r .2s ease}.dss-spider-chart .dss-spider-data circle:hover{r:6}.dss-spider-labels text{-webkit-user-select:none;user-select:none;font-weight:500}.dss-spider-grid{pointer-events:none}.dss-chart-logos image{border-radius:50%;object-fit:cover}.dss-series-hidden{opacity:0!important;pointer-events:none!important;filter:none!important;transform:none!important;stroke-width:inherit!important;fill-opacity:0!important}.dss-chart-data .dss-series-hidden,.dss-chart-data .dss-point-hidden,.dss-chart-data .dss-bar-hidden,.dss-radial-data .dss-series-hidden,.dss-spider-data .dss-series-hidden,.dss-spider-data .dss-point-hidden{opacity:0!important;pointer-events:none!important;visibility:hidden!important}.dss-point-hidden,.dss-bar-hidden{opacity:0!important;pointer-events:none}.dss-series-highlighted{filter:brightness(1.1);opacity:1!important;transform:scaleZ(1.1)}.dss-series-dimmed{opacity:.3;transition:opacity .3s ease}.dss-point-dimmed{opacity:.4;transition:opacity .3s ease}.dss-bar-highlighted{filter:brightness(1.1);transform-origin:center bottom}.dss-bar-dimmed{opacity:.4;transition:opacity .3s ease}.dss-custom-chart-container.dss-chart-animated{--dss-animation-duration: 1.5s;--dss-animation-easing: ease-out;--dss-stagger-delay: .2s;--dss-animation-progress: 0}.dss-animate-draw .dss-chart-data path[stroke]{stroke-dasharray:var(--dss-path-length, 1000);stroke-dashoffset:var(--dss-path-length, 1000);animation:drawPath var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes drawPath{to{stroke-dashoffset:0}}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(1){animation-delay:0ms}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(2){animation-delay:var(--dss-stagger-delay)}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(3){animation-delay:calc(var(--dss-stagger-delay) * 2)}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(4){animation-delay:calc(var(--dss-stagger-delay) * 3)}.dss-animate-draw .dss-chart-data path[stroke]:nth-child(5){animation-delay:calc(var(--dss-stagger-delay) * 4)}.dss-animate-fade .dss-chart-data>g>*{opacity:0;animation:fadeIn var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes fadeIn{to{opacity:1}}.dss-animate-draw .dss-area-line-animated{stroke-dasharray:var(--dss-path-length, 1000);stroke-dashoffset:var(--dss-path-length, 1000);animation:drawPath calc(var(--dss-animation-duration) * .8) var(--dss-animation-easing) forwards}.dss-animate-draw .dss-area-mask-rect{transform:translate(calc(-1 * var(--dss-mask-width)));animation:smoothFillRight calc(var(--dss-animation-duration) * 1.2) cubic-bezier(.4,0,.2,1) forwards}@keyframes smoothFillRight{0%{transform:translate(calc(-1 * var(--dss-mask-width)))}to{transform:translate(0)}}.dss-area-fill-smooth{transition:all .3s cubic-bezier(.4,0,.2,1)}.dss-area-mask-rect{will-change:transform;backface-visibility:hidden;transform-origin:left center}.dss-animate-fade .dss-chart-data path:nth-child(1){animation-delay:0ms}.dss-animate-fade .dss-chart-data path:nth-child(2){animation-delay:var(--dss-stagger-delay)}.dss-animate-fade .dss-chart-data path:nth-child(3){animation-delay:calc(var(--dss-stagger-delay) * 2)}.dss-animate-fade .dss-chart-data circle{animation-delay:calc(var(--dss-animation-duration) * .6)}.dss-animate-fade .dss-chart-data rect{animation-delay:calc(var(--dss-stagger-delay) * .5)}.dss-animate-scale .dss-chart-data>g>*{transform-origin:center;transform:scale(0);animation:scaleUp var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes scaleUp{to{transform:scale(1)}}.dss-animate-scale .dss-chart-data rect{transform-origin:center bottom;transform:scaleY(0);animation:scaleUpY var(--dss-animation-duration) var(--dss-animation-easing) forwards}.dss-animate-scale .dss-chart-data rect{transform-box:fill-box;transform-origin:50% 100%}.dss-animate-scale .dss-chart-data rect,.dss-animate-scale .dss-chart-data path[d*=M]{transform-box:fill-box;transform-origin:center bottom;transform:scaleY(0);animation:scaleUpBarFromAxis var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes scaleUpBarFromAxis{0%{transform:scaleY(0)}to{transform:scaleY(1)}}.dss-chart-data rect,.dss-chart-data path[d*=M]{transition:opacity .2s ease,filter .2s ease}.dss-chart-data rect:hover,.dss-chart-data path[d*=M]:hover{opacity:.8;filter:brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,.15))}@keyframes scaleUpY{to{transform:scaleY(1)}}.dss-animate-scale .dss-chart-data rect:nth-child(1){animation-delay:0ms}.dss-animate-scale .dss-chart-data rect:nth-child(2){animation-delay:calc(var(--dss-stagger-delay) * .3)}.dss-animate-scale .dss-chart-data rect:nth-child(3){animation-delay:calc(var(--dss-stagger-delay) * .6)}.dss-animate-scale .dss-chart-data rect:nth-child(4){animation-delay:calc(var(--dss-stagger-delay) * .9)}.dss-animate-scale .dss-chart-data rect:nth-child(5){animation-delay:calc(var(--dss-stagger-delay) * 1.2)}.dss-animate-draw .dss-radial-data path{stroke-dasharray:1000;stroke-dashoffset:1000;animation:drawPath calc(var(--dss-animation-duration) * .8) var(--dss-animation-easing) forwards}.dss-animate-scale .dss-radial-data path{transform-origin:center;transform:scale(0);animation:scaleRotate var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes scaleRotate{0%{transform:scale(0) rotate(-90deg)}to{transform:scale(1) rotate(0)}}.dss-animate-fade .dss-spider-data polygon{opacity:0;animation:fadeIn var(--dss-animation-duration) var(--dss-animation-easing) forwards}.dss-animate-scale .dss-spider-data polygon{transform-origin:center;transform:scale(0);animation:scaleUp calc(var(--dss-animation-duration) * 1.2) var(--dss-animation-easing) forwards}.dss-animate-draw .dss-spider-data polygon{stroke-dasharray:2000;stroke-dashoffset:2000;animation:drawPath calc(var(--dss-animation-duration) * 1.5) var(--dss-animation-easing) forwards}.dss-animate-fade .dss-axes line,.dss-animate-fade .dss-grid-lines line{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .6) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .1)}@keyframes scaleUpX{to{transform:scaleX(1)}}.dss-animate-fade .dss-axis-labels text{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .4) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .7)}.dss-animate-fade .dss-chart-logos circle,.dss-animate-fade .dss-chart-logos image{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .6) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .8)}.dss-chart-data circle{transition:r .2s ease,opacity .2s ease,filter .2s ease}.dss-chart-data circle:hover{r:6px;filter:brightness(1.1) drop-shadow(0 2px 4px rgba(0,0,0,.2))}.dss-chart-data rect{transition:opacity .2s ease,filter .2s ease}.dss-chart-data rect:hover{opacity:.8;filter:brightness(1.05) drop-shadow(0 2px 6px rgba(0,0,0,.15))}.dss-chart-data path{transition:stroke-width .2s ease,opacity .2s ease,filter .2s ease}@media (prefers-reduced-motion: reduce){.dss-chart-animated *{animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important}}.dss-chart-animated{will-change:transform,opacity}.dss-chart-animated .dss-chart-data{transform:translateZ(0);backface-visibility:hidden;perspective:1000px}.dss-is-animating{pointer-events:none}.dss-animation-complete{pointer-events:auto}.dss-animate-fade .dss-chart-title{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .4) var(--dss-animation-easing) forwards;animation-delay:0ms}.dss-animate-fade .dss-chart-subtitle{opacity:0;animation:fadeIn calc(var(--dss-animation-duration) * .4) var(--dss-animation-easing) forwards;animation-delay:calc(var(--dss-animation-duration) * .1)}.dss-custom-chart-container{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.dss-custom-chart-container[style*="cursor: grab"]{cursor:grab!important}.dss-custom-chart-container[style*="cursor: grabbing"]{cursor:grabbing!important}.dss-custom-chart-container[style*="cursor: grabbing"] *{pointer-events:none}.dss-chart-svg{transition:none}.dss-chart-data{transition:transform .1s ease-out}.dss-animate-fill .dss-radial-data path{animation:none}.dss-animate-fill .dss-radial-data{clip-path:polygon(50% 50%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 0%,50% 50%);animation:radialFillSweep var(--dss-animation-duration) var(--dss-animation-easing) forwards}@keyframes radialFillSweep{0%{clip-path:polygon(50% 50%,50% 0%,50% 0%,50% 50%)}5%{clip-path:polygon(50% 50%,50% 0%,70% 0%,50% 50%)}10%{clip-path:polygon(50% 50%,50% 0%,90% 0%,50% 50%)}15%{clip-path:polygon(50% 50%,50% 0%,100% 0%,50% 50%)}20%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 30%,50% 50%)}25%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 50%,50% 50%)}30%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 70%,50% 50%)}35%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 90%,50% 50%)}40%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,50% 50%)}45%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,70% 100%,50% 50%)}50%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,50% 100%,50% 50%)}55%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,30% 100%,50% 50%)}60%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,10% 100%,50% 50%)}65%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,50% 50%)}70%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 70%,50% 50%)}75%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 50%,50% 50%)}80%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 30%,50% 50%)}85%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 10%,50% 50%)}90%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 0%,50% 50%)}95%{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 0%,30% 0%,50% 50%)}to{clip-path:polygon(50% 50%,50% 0%,100% 0%,100% 100%,0% 100%,0% 0%,50% 0%,50% 50%)}}.dss-chart-context-menu{position:fixed;background:#fff;border:1px solid #ddd;border-radius:8px;z-index:10000;min-width:180px;overflow:hidden;animation:contextMenuFadeIn .15s ease-out;padding:4px;font-family:Arial,sans-serif}@keyframes contextMenuFadeIn{0%{opacity:0;transform:scale(.95) translateY(-5px)}to{opacity:1;transform:scale(1) translateY(0)}}.dss-context-menu-item{display:flex;align-items:center;gap:8px;padding:10px 14px;cursor:pointer;transition:background-color .15s ease;font-size:14px;color:#333}.dss-context-menu-item:hover{background-color:#f5f5f5}.dss-context-menu-icon{font-size:14px;width:16px;display:flex;justify-content:center}.dss-context-menu-separator{height:1px;background-color:#e5e5e5;margin:4px 0}.dss-custom-menu-content{display:flex;align-items:center;gap:8px;width:100%}.dss-custom-menu-content *{pointer-events:none}.dss-context-menu-item.dss-custom-styled{padding:0}.dss-context-menu-item.dss-custom-styled .dss-custom-menu-content{padding:8px 12px;width:100%}.dss-marker-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10001;animation:modalOverlayFadeIn .2s ease-out;font-family:Arial,sans-serif}@keyframes modalOverlayFadeIn{0%{opacity:0}to{opacity:1}}.dss-marker-modal{background:#fff;border-radius:8px;width:90%;max-width:450px;animation:modalSlideIn .2s ease-out}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.dss-marker-modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px 16px;border-bottom:1px solid #e5e5e5}.dss-marker-modal-header h3{margin:0;font-size:18px;font-weight:600;color:#333}.dss-modal-close-dss-btn{background:none;border:none;font-size:24px;cursor:pointer;color:#666;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px}.dss-marker-modal-body{padding:20px 24px}.dss-form-group{margin-bottom:16px}.dss-form-group:last-child{margin-bottom:0}.dss-form-group label{display:block;margin-bottom:6px;font-weight:500;color:#333;font-size:14px}.dss-form-input,.dss-form-textarea{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;transition:border-color .15s ease;box-sizing:border-box}.dss-form-input:focus,.dss-form-textarea:focus{outline:none;border-color:#047395}.dss-form-textarea{resize:vertical;min-height:60px;font-family:inherit}.dss-form-color{width:40px;height:40px;border:1px solid #ddd;border-radius:4px;cursor:pointer;padding:0}.dss-marker-modal-footer{display:flex;gap:12px;justify-content:space-between;padding:16px 24px 20px}.dss-modal-footer-right{display:flex;gap:.6rem}.dss-btn{padding:10px 20px;border:none;border-radius:4px;font-size:14px;font-weight:500;cursor:pointer;transition:all .15s ease;min-width:80px}.dss-btn-secondary{background:#f5f5f5;color:#333}.dss-btn-secondary:hover{background:#e5e5e5}.dss-btn-primary{background:#ffc02e;color:#000}.dss-btn-primary:hover:not(:disabled){background:#e09d00}.dss-btn-primary:disabled{background:#ffc02e80;cursor:not-allowed}.dss-markers{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:1000}.dss-marker{transition:all .2s ease}.dss-marker:hover{transform:translate(-50%,-50%) scale(1.2)!important;z-index:1001}.dss-marker-icon{width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center}.dss-btn-danger{background-color:#da073b;color:#fff;border:1px solid hsl(345,94%,44%);padding:8px 16px;border-radius:4px;cursor:pointer;font-size:14px}.dss-btn-danger:hover{filter:brightness(.9)}.dss-custom-chart-container{position:relative;overflow:hidden}.dss-chart-watermark{mix-blend-mode:multiply;filter:grayscale(50%);background-color:transparent}.dss-flag-count-indicator{cursor:pointer;transform-origin:center center}.dss-flag-extension-line{pointer-events:none}.dss-flag-line{cursor:pointer;transition:all .2s ease}.dss-flag-count-text{pointer-events:none;-webkit-user-select:none;user-select:none}.dss-flag-type-indicator{pointer-events:none}.dss-tooltip-section{margin-bottom:8px}.dss-tooltip-section:last-child{margin-bottom:0}.dss-tooltip-separator{height:1px;background-color:#fff3;margin:8px 0}.dss-tooltip-section-title{font-size:11px;font-weight:600;color:#fffc;text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.dss-tooltip-item{display:flex;align-items:flex-start;gap:6px;margin-bottom:4px;padding:2px 0}.dss-tooltip-item:last-child{margin-bottom:0}.dss-tooltip-item-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.dss-tooltip-item-content{flex:1;min-width:0}.dss-tooltip-item-type{font-size:10px;color:#ffffffb3;text-transform:uppercase;letter-spacing:.3px}.dss-tooltip-item-title{font-size:12px;font-weight:500;color:#fff;line-height:1.3}.dss-tooltip-item-text,.dss-tooltip-item-description{font-size:11px;color:#ffffffe6;line-height:1.3;word-wrap:break-word}.dss-chart-tooltip{max-width:250px;min-width:150px}.dss-tooltip-group-header{font-weight:600;font-size:10px;margin:10px 0 4px;text-transform:uppercase;letter-spacing:.5px;display:flex;align-items:center;gap:6px}.dss-tooltip-group-header:first-child{margin-top:6px}.dss-tooltip-item-no-indicator{padding-left:16px}.dss-radial-labels .dss-label-highlighted text{font-weight:700;fill-opacity:1}.dss-radial-labels .dss-label-dimmed text{fill-opacity:.5}.dss-radial-labels .dss-label-dimmed line{stroke-opacity:.3}.dss-radial-labels text{transition:all .3s ease}.dss-radial-labels line{transition:all .3s ease}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Vt=require("vue-i18n"),jo=["data-chart-type"],Wo={class:"dss-chart-header"},Uo={class:"dss-chart-header-titles"},qo={key:0,class:"dss-chart-title"},Ko={key:1,class:"dss-chart-subtitle"},Qo={key:0,class:"dss-chart-legend"},Go=["onClick","onMouseenter"],Jo={class:"dss-legend-text"},ea=["width","height","data-smooth","data-animated"],ta={id:"chart-clip"},oa=["x","y","width","height"],aa={key:0},la={key:0,class:"dss-grid-lines","clip-path":"url(#chart-clip)"},na=["x1","x2","y1","y2"],sa={class:"dss-axes"},ra=["x1","x2","y1","y2"],ia=["x1","x2","y1","y2"],ca={class:"dss-axis-labels"},ua=["x","y"],da=["x","y"],ma=["x","y"],ha=["y","transform"],va={key:1,class:"dss-flag-markers"},ga={"clip-path":"url(#chart-clip)"},pa=["x1","x2","y1","y2","onMouseover"],fa=["x1","x2","y1","y2","onMouseover"],ya=["x1","x2","y1","y2","onMouseover"],Ca=["cx","cy","onMouseover"],ka=["cx","cy","fill","onMouseover"],xa=["x","y"],wa={class:"dss-chart-data","clip-path":"url(#chart-clip)"},Ma={key:0},ba=["d","stroke","stroke-width"],Ea=["cx","cy","r","fill","onMouseover"],Ba={key:1},Sa=["id"],Va=["x","y","width","height"],_a=["d","fill","fill-opacity","mask"],$a=["d","stroke","stroke-width"],Da={key:2},La=["d","fill","onMouseover"],Na=["x","y","width","height","fill","onMouseover"],Aa={key:2,class:"dss-crosshair","clip-path":"url(#chart-clip)"},za=["x1","x2","y1","y2","stroke"],Ha=["cx","cy","r","fill"],Fa={key:1,class:"radial-chart"},Ia=["cx","cy","r"],Xa=["data-chart-type"],Ta=["d","fill","fill-opacity","stroke","stroke-width","onMouseover"],Pa={key:1,class:"dss-radial-labels"},Ra=["x1","y1","x2","y2","stroke"],Ya=["x1","y1","x2","y2","stroke"],Oa=["x","y","text-anchor","font-size"],Za={key:2,class:"dss-spider-chart"},ja={key:0,class:"dss-spider-grid"},Wa=["points"],Ua=["x1","x2","y1","y2"],qa={class:"dss-spider-labels"},Ka=["x","y","text-anchor","dominant-baseline"],Qa={class:"dss-spider-data"},Ga=["points","fill","fill-opacity","stroke","stroke-width","onMouseover"],Ja=["cx","cy","r","fill","onMouseover"],el={class:"dss-chart-logos"},tl=["cx","cy","r","fill"],ol=["x","y","width","height","xlink:href","onLoad","onError","clip-path"],al=["onClick","title"],ll=["src","onError"],nl={class:"dss-tooltip-section"},sl={class:"dss-tooltip-title"},rl={class:"dss-tooltip-value"},il={key:0,class:"dss-tooltip-section"},cl={class:"dss-tooltip-section-title"},ul={class:"dss-tooltip-group-header"},dl={class:"dss-tooltip-item-content"},ml={class:"dss-tooltip-item-text"},hl={key:1,class:"dss-tooltip-section"},vl={class:"dss-tooltip-section-title"},gl={class:"dss-tooltip-item-content"},pl={class:"dss-tooltip-item-title"},fl={key:0,class:"dss-tooltip-item-description"},yl={class:"dss-tooltip-section"},Cl={class:"dss-tooltip-title"},kl={class:"dss-tooltip-series-name"},xl={class:"dss-tooltip-series-value"},wl={key:0,class:"dss-tooltip-section"},Ml={class:"dss-tooltip-section-title"},bl={class:"dss-tooltip-group-header"},El={class:"dss-tooltip-item-content"},Bl={class:"dss-tooltip-item-text"},Sl={key:1,class:"dss-tooltip-section"},Vl={class:"dss-tooltip-section-title"},_l={class:"dss-tooltip-item-content"},$l={class:"dss-tooltip-item-title"},Dl={key:0,class:"dss-tooltip-item-description"},Ll={key:2,class:"dss-context-menu-separator"},Nl={key:0,class:"dss-context-menu-separator"},Al={key:0,class:"dss-context-menu-separator"},zl=["onClick"],Hl=["innerHTML"],Fl={key:0,class:"dss-context-menu-icon"},Il={class:"dss-marker-modal-header"},Xl={class:"dss-marker-modal-body"},Tl={class:"dss-form-group"},Pl={for:"dss-marker-title"},Rl=["placeholder"],Yl={class:"dss-form-group"},Ol={for:"dss-marker-description"},Zl=["placeholder"],jl={key:0,class:"dss-form-group"},Wl={for:"dss-marker-type"},Ul={value:"default"},ql=["value"],Kl={class:"dss-form-group"},Ql={class:"icon-preview"},Gl=["src"],Jl={class:"dss-marker-modal-footer"},en={class:"modal-footer-left"},tn={class:"dss-modal-footer-right"},on=["disabled"],an={name:"DSSChart"},ln=Object.assign(an,{props:{series:{type:Array,required:!0,default:()=>[]},categories:{type:Array,default:()=>[]},flags:{type:Array,default:()=>[]},chartId:{type:String,default:()=>"chart-"+Math.random().toString(36).substring(2,9)},locale:{type:String,default:null},options:{type:Object,default:()=>({}),validator:oe=>typeof oe=="object"&&oe!==null}},setup(oe){const{t:k,locale:Ke}=Vt.useI18n(),y=oe,_t={chart:{type:"line",width:800,height:400},title:{text:"",style:{}},subtitle:{text:"",style:{}},xAxis:{title:{text:""},type:"category"},yAxis:{min:"auto",max:"auto",title:{text:""}},legend:{show:!0},radialLabels:{show:!1,pointerLength:25,horizontalLength:35,fontSize:14,color:"#000",textOffset:8},grid:{show:!0,style:{}},watermark:{enabled:!0,opacity:.05,size:"25%",position:"bottom-right"},colors:["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#F97316","#06B6D4","#84CC16"],logos:[],stroke:{width:2,curve:"smooth"},bubbles:{size:4},markers:{show:!0,icon:null,iconSize:25,customIcons:{}},fill:{area:{opacity:.3},spider:{opacity:.15}},crosshair:{show:!1,color:"#666"},zoom:{enabled:!0,minScale:1,maxScale:2.5},smoothing:{enabled:!1,factor:.3,barRadius:4},animations:{enabled:!0,type:"draw",duration:2500,delay:0,staggerDelay:200,easing:"ease-out",onDataChange:!0,respectReducedMotion:!0},contextMenu:{enabled:!0,items:{addMarker:!0,downloadSvg:!0,downloadPng:!0,downloadCsv:!0},customItems:[]}};function Qe(t,a){const o=Object.assign({},t);return He(t)&&He(a)&&Object.keys(a).forEach(l=>{He(a[l])?l in t?o[l]=Qe(t[l],a[l]):Object.assign(o,{[l]:a[l]}):Object.assign(o,{[l]:a[l]})}),o}const Ge=()=>{let t=20,a=0;if(U.value&&(t+=30),K.value&&(t+=25),$e.value&&y.series.length>0){const o=y.series.filter((r,c)=>!T.value.has(c)).length,s=Math.floor(q.value/100);a=Math.ceil(o/s)*25+10,t+=a}return{height:t,legendHeight:a}};function He(t){return t&&typeof t=="object"&&!Array.isArray(t)}const p=e.computed(()=>Qe(_t,y.options)),q=e.computed(()=>{const t=p.value;return t&&t.chart&&typeof t.chart.width=="number"?t.chart.width:800}),ae=e.computed(()=>{const t=p.value;return t&&t.chart&&typeof t.chart.height=="number"?t.chart.height:400}),X=e.computed(()=>{const t=p.value;return t&&t.chart&&t.chart.type?t.chart.type:"line"}),U=e.computed(()=>{const t=p.value;return t&&t.title&&t.title.text?t.title.text:""}),K=e.computed(()=>{const t=p.value;return t&&t.subtitle&&t.subtitle.text?t.subtitle.text:""}),Fe=e.computed(()=>{const t=p.value;return t&&t.xAxis&&t.xAxis.title&&t.xAxis.title.text?t.xAxis.title.text:""}),Je=e.computed(()=>{const t=p.value;return t&&t.yAxis&&t.yAxis.title&&t.yAxis.title.text?t.yAxis.title.text:""}),$t=e.computed(()=>{const t=p.value;if(!t||!t.yAxis)return ie;const a=t.yAxis.min;return typeof a=="number"||a===ie?a:ie}),Dt=e.computed(()=>{const t=p.value;if(!t||!t.yAxis)return ie;const a=t.yAxis.max;return typeof a=="number"||a===ie?a:ie}),et=e.computed(()=>{const t=p.value;return t&&t.grid&&t.grid.show!==!1}),$e=e.computed(()=>{const t=p.value;return t&&t.legend&&t.legend.show!==!1}),ue=e.computed(()=>{const t=p.value;return t&&t.crosshair&&t.crosshair.show===!0}),Lt=e.computed(()=>{const t=p.value;return t&&t.crosshair&&t.crosshair.color?t.crosshair.color:"#666"}),ve=e.computed(()=>{const t=p.value;return t&&t.zoom&&t.zoom.enabled!==!1}),Nt=e.computed(()=>{const t=p.value;return t&&t.zoom&&typeof t.zoom.minScale=="number"?t.zoom.minScale:1}),At=e.computed(()=>{const t=p.value;return t&&t.zoom&&typeof t.zoom.maxScale=="number"?t.zoom.maxScale:2.5}),ge=e.computed(()=>{const t=p.value;return t&&t.stroke&&typeof t.stroke.width=="number"?t.stroke.width:2}),pe=e.computed(()=>{const t=p.value;return t&&t.bubbles&&typeof t.bubbles.size=="number"?t.bubbles.size:4}),tt=e.computed(()=>{const t=p.value;return t&&t.fill&&t.fill.area&&typeof t.fill.area.opacity=="number"?t.fill.area.opacity:.3}),de=e.computed(()=>{const t=p.value;return t&&t.smoothing&&t.smoothing.enabled===!0}),De=e.computed(()=>{const t=p.value;return t&&t.smoothing&&typeof t.smoothing.factor=="number"?t.smoothing.factor:.3}),zt=e.computed(()=>{const t=p.value;return de.value?t&&t.smoothing&&typeof t.smoothing.barRadius=="number"?t.smoothing.barRadius:4:0}),Ht=e.computed(()=>{const t=p.value,a=t&&t.colors&&Array.isArray(t.colors)?t.colors:[];return a.length>0?a:["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#F97316","#06B6D4","#84CC16"]}),we=e.computed(()=>{const t=p.value;return t&&t.animations&&t.animations.enabled!==!1}),ot=e.computed(()=>{const t=p.value;return t&&t.animations&&t.animations.type?t.animations.type:"draw"}),at=e.computed(()=>{const t=p.value;return t&&t.animations&&typeof t.animations.duration=="number"?t.animations.duration:2500}),lt=e.computed(()=>{const t=p.value;return t&&t.animations&&typeof t.animations.delay=="number"?t.animations.delay:0}),nt=e.computed(()=>{const t=p.value;return t&&t.animations&&t.animations.easing?t.animations.easing:"ease-out"}),me=e.computed(()=>{const t=p.value;return t&&t.animations&&typeof t.animations.staggerDelay=="number"?t.animations.staggerDelay:200}),Ft=e.computed(()=>{const t=p.value;return t&&t.animations&&t.animations.onDataChange!==!1}),It=e.computed(()=>{const t=p.value;return t&&t.animations&&t.animations.respectReducedMotion!==!1}),Xt=e.computed(()=>{const t=p.value;return t&&t.fill&&t.fill.spider&&typeof t.fill.spider.opacity=="number"?t.fill.spider.opacity:.15}),Tt=e.computed(()=>{const t=p.value;return t&&t.contextMenu&&t.contextMenu.enabled===!0}),G=e.computed(()=>{const t=p.value,a={addMarker:!0,downloadSvg:!0,downloadPng:!0,downloadCsv:!0};return t&&t.contextMenu&&t.contextMenu.items?{...a,...t.contextMenu.items}:a}),Ie=e.computed(()=>{const t=p.value;return t&&t.contextMenu&&Array.isArray(t.contextMenu.customItems)?t.contextMenu.customItems:[]}),Pt=e.computed(()=>{const t=p.value;return t&&t.markers&&t.markers.icon?t.markers.icon:jt.value}),Le=e.computed(()=>{const t=p.value;return t&&t.markers&&t.markers.customIcons?t.markers.customIcons:{}}),st=e.computed(()=>{const t=p.value;return t&&t.markers&&typeof t.markers.iconSize=="number"?t.markers.iconSize:20}),rt=e.computed(()=>!u.value.isZooming),Rt=e.computed(()=>H.value.map(t=>{if(t.categoryIndex!==void 0&&j.value){const a=J(t.categoryIndex),o=i.value.bottom+85;return{...t,x:a,y:o}}return t})),Xe=e.computed(()=>{const t=p.value;return t&&t.watermark&&t.watermark.enabled===!0}),Te=e.computed(()=>{const t=p.value;return t&&t.watermark&&typeof t.watermark.opacity=="number"?t.watermark.opacity:.05}),Yt=e.computed(()=>{const t=p.value;return t&&t.watermark&&t.watermark.size?t.watermark.size:"25%"}),Pe=e.computed(()=>{const t=p.value;return t&&t.watermark&&t.watermark.position?t.watermark.position:"bottom-right"}),Re=e.computed(()=>{const t={left:i.value.left,top:i.value.top,width:i.value.width,height:i.value.height};let a,o;const l=String(Yt.value);if(l.includes("%")){const s=parseFloat(l)/100;a=t.width*s,o=a*(96/499)}else{const s=parseFloat(l)||25;a=Math.min(t.width*.25,200)*(s/25),o=a*(96/499)}return{width:a,height:o,area:t}}),Ot=e.computed(()=>{const{width:t,height:a}=Re.value,o=Pe.value;let l,s;const n=i.value.left,r=i.value.right,c=i.value.top,m=i.value.bottom,d=i.value.width,h=i.value.height;switch(o){case"center":l=n+(d-t)/2,s=c+(h-a)/2;break;case"top-left":l=n+15,s=c+90;break;case"top-right":l=r-t-15,s=c+90;break;case"bottom-left":l=n+15,s=m-a+75;break;case"bottom-right":default:l=r-t-15,s=m-a+75;break}return{backgroundPositionX:l+"px",backgroundPositionY:s+"px",backgroundSize:`${t}px ${a}px`}}),Zt=t=>!y.flags||!y.flags.length?[]:y.flags.filter(a=>a.categoryIndex===t),ne=t=>{const a=Zt(t),o=no(t),l=a.filter(r=>r.manual),s=a.filter(r=>!r.manual),n=[];return l.length>0&&n.push({type:k("chart.tooltip.manualFlags"),color:"#047395",flags:l.map(r=>({text:r.text,color:"#047395"}))}),s.length>0&&n.push({type:k("chart.tooltip.autoFlags"),color:"#0dbf89",flags:s.map(r=>({text:r.text,color:"#0dbf89"}))}),{flagGroups:n,markers:o.map(r=>({title:r.title,description:r.description,type:k("chart.tooltip.markers"),color:r.color||"#FF6B6B"}))}},jt=e.computed(()=>`data:image/svg+xml;base64,${btoa(`<svg width="55" height="56" viewBox="0 0 55 56" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M55 51.841V4.14647C55 1.86149 53.1797 0.00915527 50.9343 0.00915527L4.06568 0.00915527C1.82027 0.00915527 0 1.86149 0 4.14647V51.841C0 54.126 1.82027 55.9783 4.06568 55.9783H50.9343C53.1797 55.9783 55 54.126 55 51.841Z" fill="#020203"/>
|
|
3
|
+
<path d="M27.7145 10.8883H16.9591C12.7639 10.8883 9.3623 14.3498 9.3623 18.619C9.3623 22.8882 12.7639 26.3497 16.9591 26.3497H27.8036C28.3624 26.3497 28.816 25.8881 28.816 25.3112L28.7188 11.9103C28.7188 11.3416 28.2653 10.8883 27.7064 10.8883H27.7145Z" fill="#FFC230"/>
|
|
4
|
+
<path d="M38.6799 25.649C42.5176 25.649 45.6288 22.483 45.6288 18.5776C45.6288 14.6722 42.5176 11.5063 38.6799 11.5063C34.8421 11.5063 31.731 14.6722 31.731 18.5776C31.731 22.483 34.8421 25.649 38.6799 25.649Z" fill="white"/>
|
|
5
|
+
<path d="M27.2846 45.1083H38.04C42.2352 45.1083 45.6368 41.6468 45.6368 37.3776C45.6368 33.1084 42.2352 29.6469 38.04 29.6469H27.1955C26.6366 29.6469 26.1831 30.1084 26.1831 30.6854L26.2803 44.0863C26.2803 44.655 26.7338 45.1083 27.2927 45.1083H27.2846Z" fill="#07A9DA"/>
|
|
6
|
+
<path d="M16.3198 44.4813C20.1575 44.4813 23.2687 41.3153 23.2687 37.4099C23.2687 33.5045 20.1575 30.3386 16.3198 30.3386C12.482 30.3386 9.37085 33.5045 9.37085 37.4099C9.37085 41.3153 12.482 44.4813 16.3198 44.4813Z" fill="white"/>
|
|
7
|
+
</svg>`)}`),it=e.computed(()=>`data:image/svg+xml;base64,${btoa(`<svg width="499" height="96" viewBox="0 0 499 96" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
8
|
+
<path d="M171.52 37.8399H160.38C160.26 36.4799 160.02 35.0599 159.68 33.5699C159.34 32.0799 158.77 30.7399 157.96 29.5299C157.16 28.3199 156 27.3199 154.48 26.5099C152.96 25.7099 150.94 25.2999 148.4 25.2999C144.69 25.2999 141.93 26.1299 140.14 27.8099C138.34 29.4799 137.45 31.5499 137.45 34.0299C137.45 37.7999 139.29 40.0799 142.97 40.8499C146.65 41.6299 150.67 42.3799 155.03 43.1199C159.39 43.8599 163.41 45.3899 167.09 47.7099C170.77 50.0299 172.61 54.6199 172.61 61.4899C172.61 64.6499 172.02 67.5099 170.85 70.0699C169.67 72.6399 168.02 74.7899 165.89 76.5199C163.76 78.2499 161.19 79.5799 158.19 80.5099C155.19 81.4399 151.93 81.8999 148.4 81.8999C143.95 81.8999 140.12 81.2699 136.94 79.9999C133.75 78.7299 131.19 77.0799 129.24 75.0399C127.29 72.9999 125.93 70.6899 125.16 68.1299C124.39 65.5599 124.19 62.9499 124.56 60.2899H136.25C136.37 62.0799 136.58 63.7899 136.85 65.3899C137.13 66.9999 137.68 68.4099 138.52 69.6099C139.35 70.8199 140.58 71.7799 142.19 72.4899C143.8 73.1999 145.99 73.5599 148.78 73.5599C153.3 73.5599 156.47 72.6199 158.29 70.7299C160.11 68.8399 161.03 66.6899 161.03 64.2799C161.03 60.2599 159.19 57.7799 155.51 56.8599C151.83 55.9299 147.79 55.0499 143.4 54.2099C139.01 53.3799 134.97 51.7699 131.29 49.3799C127.61 46.9999 125.77 42.3699 125.77 35.5099C125.77 32.8499 126.3 30.3899 127.35 28.1299C128.4 25.8699 129.9 23.9199 131.85 22.2799C133.8 20.6399 136.16 19.3399 138.95 18.3799C141.73 17.4199 144.8 16.9399 148.14 16.9399C152.41 16.9399 156.07 17.4699 159.14 18.5199C162.2 19.5699 164.69 21.0299 166.61 22.8799C168.53 24.7399 169.89 26.9499 170.69 29.5199C171.49 32.0899 171.77 34.8599 171.52 37.8199V37.8399Z" fill="#020203"/>
|
|
9
|
+
<path d="M179.04 58.1699C179.04 55.0799 179.55 52.0499 180.57 49.0699C181.59 46.0999 183.04 43.4899 184.93 41.2299C186.82 38.9699 189.09 37.1499 191.75 35.7499C194.41 34.3599 197.35 33.6599 200.57 33.6599C207 33.6599 212.15 35.9299 216.02 40.4799C219.89 45.0299 221.97 51.5999 222.28 60.1999H189.34C189.77 64.2199 191.09 67.1499 193.28 68.9699C195.48 70.7999 198.12 71.7099 201.21 71.7099C203 71.7099 204.5 71.4599 205.71 70.9699C206.92 70.4799 207.91 69.8899 208.68 69.2099C209.45 68.5299 210.06 67.8199 210.49 67.0799C210.92 66.3399 211.26 65.7199 211.51 65.2199H221.72C221.6 66.7699 221.1 68.5099 220.24 70.4599C219.37 72.4099 218.14 74.2299 216.53 75.9399C214.92 77.6399 212.85 79.0599 210.31 80.2099C207.77 81.3499 204.77 81.9299 201.31 81.9299C197.85 81.9299 194.91 81.2799 192.12 79.9799C189.34 78.6799 186.98 76.9499 185.07 74.7799C183.15 72.6099 181.67 70.0899 180.61 67.2199C179.56 64.3399 179.03 61.3299 179.03 58.1699H179.04ZM200.94 42.0199C198.47 42.0199 196.24 42.7299 194.26 44.1499C192.28 45.5699 190.89 47.8299 190.08 50.9199H211.33C211.02 48.0799 209.95 45.8799 208.13 44.3299C206.3 42.7899 203.91 42.0099 200.94 42.0099V42.0199Z" fill="#020203"/>
|
|
10
|
+
<path d="M268.59 80.9999H258.01V50.3799C258.01 48.2099 257.3 46.5099 255.88 45.2799C254.46 44.0399 252.6 43.4199 250.31 43.4199C248.45 43.4199 246.94 43.8399 245.76 44.6699C244.58 45.4999 243.67 46.5399 243.02 47.7799C242.37 49.0199 241.94 50.3799 241.72 51.8599C241.5 53.3399 241.4 54.7099 241.4 55.9399V80.9999H230.82V34.5999H241.03V38.3099C241.83 37.6899 243.27 36.7599 245.34 35.5199C247.41 34.2799 250.3 33.6599 254.02 33.6599C256.68 33.6599 259.12 34.1599 261.35 35.1399C263.58 36.1299 265.31 37.6799 266.55 39.7799C267.04 39.2899 267.71 38.6799 268.55 37.9699C269.38 37.2599 270.41 36.5799 271.61 35.9299C272.82 35.2799 274.22 34.7399 275.83 34.3099C277.44 33.8799 279.23 33.6599 281.21 33.6599C285.23 33.6599 288.67 34.8099 291.51 37.0899C294.36 39.3799 295.78 43.0599 295.78 48.1299V80.9799H285.2V50.3599C285.2 48.1899 284.49 46.4899 283.07 45.2599C281.65 44.0199 279.79 43.3999 277.5 43.3999C275.64 43.3999 274.13 43.8199 272.95 44.6499C271.77 45.4799 270.86 46.5199 270.21 47.7599C269.56 48.9999 269.13 50.3599 268.91 51.8399C268.69 53.3199 268.59 54.6899 268.59 55.9199V80.9799V80.9999Z" fill="#020203"/>
|
|
11
|
+
<path d="M344.78 67.3499C344.78 68.7099 345.21 69.7199 346.08 70.3699C346.95 71.0199 348.09 71.3399 349.51 71.3399C350.13 71.3399 350.76 71.2899 351.41 71.1999C352.06 71.1099 352.82 70.9699 353.68 70.7799V80.9899C352.07 81.2399 350.77 81.3899 349.78 81.4499C348.79 81.5099 347.89 81.5399 347.09 81.5399C344.24 81.5399 342.05 81.1799 340.5 80.4699C338.95 79.7599 337.65 78.5099 336.6 76.7099C336.17 77.0199 335.55 77.4699 334.74 78.0599C333.94 78.6499 332.95 79.2199 331.77 79.7799C330.59 80.3399 329.2 80.8299 327.59 81.2599C325.98 81.6899 324.16 81.9099 322.11 81.9099C319.51 81.9099 317.1 81.4899 314.87 80.6599C312.64 79.8299 310.72 78.6999 309.12 77.2699C307.51 75.8499 306.24 74.2099 305.32 72.3499C304.39 70.4899 303.93 68.5499 303.93 66.4999C303.93 61.2399 305.96 57.4499 310.01 55.1299C314.06 52.8099 319.27 51.6499 325.65 51.6499H334.56V49.4199C334.56 46.9499 333.68 44.9399 331.92 43.3899C330.16 41.8399 327.88 41.0699 325.1 41.0699C322.32 41.0699 320.09 41.7799 318.6 43.1999C317.12 44.6199 316.37 46.6999 316.37 49.4199H305.05C305.05 46.9499 305.58 44.7199 306.63 42.7399C307.68 40.7599 309.12 39.1099 310.94 37.7799C312.76 36.4499 314.91 35.4299 317.39 34.7199C319.86 34.0099 322.52 33.6499 325.37 33.6499C327.97 33.6499 330.44 33.9399 332.79 34.5299C335.14 35.1199 337.2 36.0299 338.96 37.2699C340.72 38.5099 342.13 40.0499 343.18 41.9099C344.23 43.7699 344.76 45.9299 344.76 48.4099V67.3399L344.78 67.3499ZM315.45 67.6299C315.45 69.4899 316.19 71.0999 317.68 72.4599C319.16 73.8199 321.14 74.4999 323.62 74.4999C325.54 74.4999 327.18 74.1399 328.54 73.4299C329.9 72.7199 331.03 71.8399 331.93 70.7899C332.83 69.7399 333.49 68.6199 333.93 67.4499C334.36 66.2799 334.58 65.2199 334.58 64.2899V59.6499C330.56 59.4599 327.29 59.5399 324.79 59.8799C322.29 60.2199 320.35 60.7599 318.99 61.4999C317.63 62.2399 316.7 63.1399 316.21 64.1899C315.71 65.2399 315.47 66.3899 315.47 67.6199L315.45 67.6299Z" fill="#020203"/>
|
|
12
|
+
<path d="M356.47 58.1699C356.47 54.5799 357.01 51.2899 358.09 48.2899C359.17 45.2899 360.67 42.7099 362.59 40.5399C364.51 38.3799 366.8 36.6899 369.46 35.4799C372.12 34.2699 375.03 33.6699 378.18 33.6699C382.2 33.6699 385.51 34.4399 388.11 35.9899C390.71 37.5399 392.78 39.3799 394.33 41.5099C395.88 43.6399 397.02 45.8899 397.76 48.2399C398.5 50.5899 399.03 52.5399 399.34 54.0899H388.58C388.15 51.2499 387.11 48.8299 385.47 46.8499C383.83 44.8699 381.28 43.8799 377.81 43.8799C374.78 43.8799 372.16 45.0399 369.97 47.3599C367.77 49.6799 366.68 53.1599 366.68 57.7999C366.68 62.6899 367.89 66.2299 370.3 68.4299C372.71 70.6299 375.47 71.7199 378.56 71.7199C380.29 71.7199 381.78 71.4399 383.01 70.8899C384.25 70.3299 385.27 69.6099 386.07 68.7099C386.87 67.8099 387.54 66.8099 388.07 65.6899C388.59 64.5799 389.07 63.4899 389.51 62.4399H399.16C399.16 64.3599 398.73 66.4599 397.86 68.7499C396.99 71.0399 395.68 73.1599 393.92 75.1099C392.16 77.0599 389.91 78.6799 387.19 79.9799C384.47 81.2799 381.28 81.9299 377.63 81.9299C374.47 81.9299 371.58 81.2799 368.95 79.9799C366.32 78.6799 364.09 76.9499 362.27 74.7799C360.44 72.6099 359.02 70.0899 358 67.2199C356.98 64.3499 356.47 61.3299 356.47 58.1699Z" fill="#020203"/>
|
|
13
|
+
<path d="M410.11 17.8899H420.32V34.5899H426.82V44.7999H420.32V68.7399C420.32 70.0999 420.71 71.0299 421.48 71.5199C422.25 72.0199 423.1 72.2599 424.03 72.2599C424.83 72.2599 425.53 72.1799 426.12 72.0299C426.71 71.8799 427.16 71.6999 427.47 71.5199V80.7999C427.04 80.9199 426.23 81.1399 425.06 81.4499C423.88 81.7599 422.24 81.9099 420.14 81.9099C416.61 81.9099 414.06 81.0099 412.48 79.2199C410.9 77.4299 410.11 75.4199 410.11 73.1899V44.7899H404.54V34.5799H410.11V17.8799V17.8899Z" fill="#020203"/>
|
|
14
|
+
<path d="M435.81 16.96H446.39V28.1H435.81V16.96ZM435.81 34.59H446.39V80.99H435.81V34.59Z" fill="#020203"/>
|
|
15
|
+
<path d="M455.67 58.1699C455.67 54.5799 456.21 51.2899 457.29 48.2899C458.37 45.2899 459.87 42.7099 461.79 40.5399C463.71 38.3799 466 36.6899 468.66 35.4799C471.32 34.2699 474.23 33.6699 477.38 33.6699C481.4 33.6699 484.71 34.4399 487.31 35.9899C489.91 37.5399 491.98 39.3799 493.53 41.5099C495.08 43.6399 496.22 45.8899 496.96 48.2399C497.7 50.5899 498.23 52.5399 498.54 54.0899H487.78C487.35 51.2499 486.31 48.8299 484.67 46.8499C483.03 44.8699 480.48 43.8799 477.01 43.8799C473.98 43.8799 471.36 45.0399 469.17 47.3599C466.97 49.6799 465.88 53.1599 465.88 57.7999C465.88 62.6899 467.09 66.2299 469.5 68.4299C471.91 70.6299 474.67 71.7199 477.76 71.7199C479.49 71.7199 480.98 71.4399 482.21 70.8899C483.45 70.3299 484.47 69.6099 485.27 68.7099C486.07 67.8099 486.74 66.8099 487.27 65.6899C487.79 64.5799 488.27 63.4899 488.71 62.4399H498.36C498.36 64.3599 497.93 66.4599 497.06 68.7499C496.19 71.0399 494.88 73.1599 493.12 75.1099C491.36 77.0599 489.11 78.6799 486.39 79.9799C483.67 81.2799 480.48 81.9299 476.83 81.9299C473.67 81.9299 470.78 81.2799 468.15 79.9799C465.52 78.6799 463.29 76.9499 461.47 74.7799C459.64 72.6099 458.22 70.0899 457.2 67.2199C456.18 64.3499 455.67 61.3299 455.67 58.1699Z" fill="#020203"/>
|
|
16
|
+
<path d="M95.8 88.71V7.09C95.8 3.1743 92.6258 0 88.7101 0L7.09004 0C3.17435 0 4.57764e-05 3.1743 4.57764e-05 7.09V88.71C4.57764e-05 92.6257 3.17435 95.8 7.09004 95.8H88.7101C92.6258 95.8 95.8 92.6257 95.8 88.71Z" fill="#020203"/>
|
|
17
|
+
<path d="M48.2801 18.61H29.5501C22.2401 18.61 16.3201 24.53 16.3201 31.84C16.3201 39.15 22.2401 45.07 29.5501 45.07H48.4401C49.4201 45.07 50.2101 44.27 50.2001 43.29L50.0401 20.35C50.0401 19.38 49.2501 18.6 48.2801 18.6V18.61Z" fill="#FFC530"/>
|
|
18
|
+
<path d="M67.37 43.9C74.0582 43.9 79.48 38.4782 79.48 31.79C79.48 25.1018 74.0582 19.68 67.37 19.68C60.6818 19.68 55.26 25.1018 55.26 31.79C55.26 38.4782 60.6818 43.9 67.37 43.9Z" fill="white"/>
|
|
19
|
+
<path d="M47.5201 77.18H66.2501C73.5601 77.18 79.4801 71.26 79.4801 63.95C79.4801 56.64 73.5601 50.72 66.2501 50.72H47.3601C46.3801 50.72 45.5901 51.52 45.6001 52.5L45.7601 75.44C45.7601 76.41 46.5501 77.19 47.5201 77.19V77.18Z" fill="#07ACDD"/>
|
|
20
|
+
<path d="M28.4201 76.12C35.1082 76.12 40.5301 70.6982 40.5301 64.01C40.5301 57.3218 35.1082 51.9 28.4201 51.9C21.7319 51.9 16.3101 57.3218 16.3101 64.01C16.3101 70.6982 21.7319 76.12 28.4201 76.12Z" fill="white"/>
|
|
21
|
+
</svg>`)}`),ct=e.computed(()=>{const t=p.value;return t&&t.radialLabels&&t.radialLabels.show===!0}),Wt=e.computed(()=>{const t=p.value;return t&&t.radialLabels&&typeof t.radialLabels.fontSize=="number"?t.radialLabels.fontSize:12});e.computed(()=>{const t=p.value;return t&&t.radialLabels&&t.radialLabels.color?t.radialLabels.color:"#000"});const Ut=e.computed(()=>{const t=p.value;return t&&t.radialLabels&&typeof t.radialLabels.pointerLength=="number"?t.radialLabels.pointerLength:25}),qt=e.computed(()=>{const t=p.value;return t&&t.radialLabels&&typeof t.radialLabels.horizontalLength=="number"?t.radialLabels.horizontalLength:40}),Kt=e.computed(()=>{const t=p.value;return t&&t.radialLabels&&typeof t.radialLabels.textOffset=="number"?t.radialLabels.textOffset:8}),ut=e.computed(()=>{if(!y.flags||!y.flags.length)return[];const t=new Map;return y.flags.forEach(a=>{const o=a.categoryIndex;t.has(o)||t.set(o,[]),t.get(o).push(a)}),Array.from(t.entries()).map(([a,o])=>{const l=J(a),s=o.filter(r=>r.manual),n=o.filter(r=>!r.manual);return{categoryIndex:parseInt(a),x:l,flags:o,manualCount:s.length,autoCount:n.length,totalCount:o.length,hasManual:s.length>0,hasAuto:n.length>0,texts:o.map(r=>r.text).join(`
|
|
22
|
+
`)}})}),Ye=e.ref({show:!1,x:0,y:0,content:"",count:0}),T=e.ref(new Set),A=e.ref(null),Oe=e.ref(!1),P=e.ref({show:!1,x:0,y:0,title:"",value:""}),B=e.ref({show:!1,x:0,categoryIndex:-1,data:[]}),R=e.ref({show:!1,x:0,y:0,mouseDataX:0,mouseDataY:0,categoryIndex:-1,chartX:0,chartY:0}),u=e.ref({scale:1,offsetX:0,minScale:1,maxScale:2.5,isDragging:!1,lastMouseX:0,lastMouseY:0,isZooming:!1,zoomTimeout:null}),H=e.ref([]),x=e.ref({show:!1,title:"",description:"",color:"#FF6B6B",type:"default",editingMarkerId:null}),dt=e.computed(()=>{const t=["default"];return Le.value&&t.push(...Object.keys(Le.value)),t}),Me=e.computed(()=>x.value.editingMarkerId!==null),Qt=t=>{T.value.has(t)||(A.value=t)},Gt=()=>{A.value=null},Jt=t=>{if(Be.value)return;const o=t.currentTarget.getBoundingClientRect(),l=t.clientX-o.left,s=t.clientY-o.top,n=l>=i.value.left&&l<=i.value.right&&s>=i.value.top+60&&s<=i.value.bottom+90;if(Oe.value=n,u.value.isDragging&&u.value.scale>1&&j.value&&ve.value){B.value.show=!1;const w=t.clientX-u.value.lastMouseX,{minX:E,maxX:_}=Q.value,L=_-E||1,f=w*.8;u.value.offsetX+=f;const g=L/u.value.scale,M=L-g,N=0,D=-M/L*i.value.width,z=N;u.value.offsetX=Math.max(D,Math.min(z,u.value.offsetX)),u.value.lastMouseX=t.clientX,u.value.lastMouseY=t.clientY;return}if(!ue.value||!j.value||u.value.isDragging||u.value.isZooming||!n){B.value.show=!1;return}const{minX:r,maxX:c}=Q.value,m=c-r||1,d=m/u.value.scale,h=r-u.value.offsetX/i.value.width*m,C=(l-i.value.left)/i.value.width,b=h+C*d,V=Math.round(b);if(V>=0&&V<=c){const w=J(V),E=Ee.value.map((_,L)=>{const v=y.series.findIndex(g=>g===_),f=_.data[V];return{seriesName:_.name,value:f!==void 0?f:null,color:O(v),y:f!==void 0?ee(f):null}}).filter(_=>_.value!==null);B.value={show:!0,x:w,categoryIndex:V,data:E}}},eo=()=>{B.value.show=!1,Oe.value=!1,Be.value||(Ye.value.show=!1),u.value.isDragging&&(u.value.isDragging=!1),u.value.zoomTimeout&&(clearTimeout(u.value.zoomTimeout),u.value.zoomTimeout=null),u.value.isZooming=!1},to=t=>{if(!Tt.value)return;t.preventDefault();const o=t.currentTarget.getBoundingClientRect(),l=t.clientX-o.left,s=t.clientY-o.top,n=l>=i.value.left&&l<=i.value.right&&s>=i.value.top+60&&s<=i.value.bottom+90,r=40,c=s>=i.value.bottom-r&&s<=i.value.bottom+r;if(!n||!c)return;let m=0,d=0,h=-1;if(j.value){const{minX:E,maxX:_,minY:L}=Q.value,v=_-E||1,f=v/u.value.scale,g=E-u.value.offsetX/i.value.width*v,M=(l-i.value.left)/i.value.width;m=g+M*f,d=L,h=Math.round(m)}let C=t.clientX,b=t.clientY;const V=200,w=150;C+V>window.innerWidth&&(C=window.innerWidth-V-10),b+w>window.innerHeight&&(b=window.innerHeight-w-10),R.value={show:!0,x:C,y:b,mouseDataX:m,mouseDataY:d,categoryIndex:Math.max(0,h),chartX:l,chartY:i.value.bottom}},le=()=>{R.value.show=!1},oo=t=>{if(typeof t.template=="function"){const a={series:y.series,categories:y.categories,markers:H.value},o={chartX:R.value.chartX,chartY:R.value.chartY,dataX:R.value.mouseDataX,dataY:R.value.mouseDataY,categoryIndex:R.value.categoryIndex};return t.template(a,o)}return t.template||t.label||""},ao=t=>{const a=["dss-context-menu-item"];return t.cssClass&&a.push(t.cssClass),a},lo=t=>t.style||{},mt=t=>t.type&&Le.value[t.type]?Le.value[t.type]:t.customIcon?t.customIcon:Pt.value,no=t=>H.value.length?H.value.filter(a=>a.categoryIndex===t):[],so=t=>{if(!j.value)return{x:0,y:0};const a=J(t),o=i.value.bottom+85;return{x:a,y:o}},ht=()=>{H.value.forEach(t=>{if(t.categoryIndex!==void 0&&j.value){const a=so(t.categoryIndex);t.x=a.x,t.y=a.y}})},vt=()=>{if(x.value.title.trim()){if(Me.value){const t=H.value.findIndex(a=>a.id===x.value.editingMarkerId);t!==-1&&(H.value[t].title=x.value.title.trim(),H.value[t].description=x.value.description.trim(),H.value[t].color=x.value.color,H.value[t].type=x.value.type||"default")}else{const t="dss-marker-"+Date.now()+"-"+Math.random().toString(36).substring(2,9),a=Math.max(0,Math.min(R.value.categoryIndex,Q.value.maxX)),o=J(a),l=i.value.bottom+85,s={id:t,title:x.value.title.trim(),description:x.value.description.trim(),color:x.value.color,type:x.value.type||"default",x:o,y:l,categoryIndex:a,chartType:X.value};H.value.push(s)}fe(),gt()}},fe=()=>{x.value.show=!1,x.value.title="",x.value.description="",x.value.color="#FF6B6B",x.value.type="default",x.value.editingMarkerId=null},ro=()=>{Me.value&&(io(x.value.editingMarkerId),fe())},io=t=>{const a=H.value.findIndex(o=>o.id===t);a!==-1&&(H.value.splice(a,1),gt())},co=t=>{x.value.show=!0,x.value.title=t.title,x.value.description=t.description,x.value.color=t.color,x.value.type=t.type||"default",x.value.editingMarkerId=t.id},uo=()=>{H.value=[],vo(),le()},mo=(t,a)=>{console.warn(`Failed to load custom icon for marker ${a.id}, falling back to default`)},gt=()=>{try{const t=`dss-chart-markers-${y.chartId}`;localStorage.setItem(t,JSON.stringify(H.value))}catch(t){console.warn("Could not save markers to localStorage:",t)}},ho=()=>{try{const t=`dss-chart-markers-${y.chartId}`,a=localStorage.getItem(t);if(a){const o=JSON.parse(a);Array.isArray(o)&&(H.value=o.map(l=>({...l,originalYOffset:l.originalYOffset!==void 0?l.originalYOffset:15})))}}catch(t){console.warn("Could not load markers from localStorage:",t),H.value=[]}},vo=()=>{try{const t=`dss-chart-markers-${y.chartId}`;localStorage.removeItem(t)}catch(t){console.warn("Could not clear markers from localStorage:",t)}},Ne=t=>{const a=U.value||"Chart",o=new Date().toLocaleDateString("en-GB",{day:"2-digit",month:"2-digit",year:"2-digit"}).replace(/\//g,"-");return`${a.replace(/[^a-zA-Z0-9\s]/g,"").replace(/\s+/g,"-").substring(0,50).replace(/^-|-$/g,"")||"Chart"}-${o}.${t}`},pt=()=>{const t=B.value.show,a=P.value.show;return B.value.show=!1,P.value.show=!1,{originalCrosshair:t,originalTooltip:a}},he=t=>{B.value.show=t.originalCrosshair,P.value.show=t.originalTooltip},go=async(t,a=32,o=32)=>new Promise((l,s)=>{if(t.startsWith("data:")){l(t);return}const n=new Image;n.crossOrigin="anonymous";const r=setTimeout(()=>{console.warn("Image conversion timeout for:",t),l(t)},5e3);n.onload=()=>{clearTimeout(r);try{const c=document.createElement("canvas"),m=c.getContext("2d");c.width=a,c.height=o,m.fillStyle="white",m.fillRect(0,0,a,o),m.drawImage(n,0,0,a,o);const d=c.toDataURL("image/png");l(d)}catch(c){console.warn("Canvas conversion failed:",c),l(t)}},n.onerror=c=>{clearTimeout(r),console.warn("Failed to load image:",t,c),l(t)},n.src=t}),po=async()=>{try{const t=pt();setTimeout(async()=>{try{const a=document.querySelector(".dss-chart-svg");if(!a){console.error("Chart SVG element not found"),he(t);return}const o=Ge(),l=q.value,s=ae.value+o.height,n=a.cloneNode(!0);n.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text").forEach(v=>v.remove());const c=n.querySelectorAll("image"),m=Array.from(c).map(async v=>{const f=v.getAttribute("xlink:href")||v.getAttribute("href");if(f&&!f.startsWith("data:"))try{const g=await go(f,32,32);v.setAttribute("xlink:href",g),v.setAttribute("href",g)}catch(g){console.warn("Failed to convert logo to base64:",g)}});await Promise.all(m);const h=new XMLSerializer().serializeToString(n).replace(/<svg[^>]*>/,"").replace("</svg>","");let C="",b=30;if(U.value&&(C+=`
|
|
23
|
+
<text x="24" y="${b}"
|
|
24
|
+
font-family="Arial, sans-serif"
|
|
25
|
+
font-size="18"
|
|
26
|
+
font-weight="bold"
|
|
27
|
+
fill="#333">
|
|
28
|
+
${U.value.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}
|
|
29
|
+
</text>`,b+=30),K.value&&(C+=`
|
|
30
|
+
<text x="24" y="${b}"
|
|
31
|
+
font-family="Arial, sans-serif"
|
|
32
|
+
font-size="14"
|
|
33
|
+
fill="#666">
|
|
34
|
+
${K.value.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}
|
|
35
|
+
</text>`,b+=25),$e.value&&y.series.length>0){let v=l-200,f=U.value||K.value?35:25;const g=Math.floor((l-250)/120);let M=0;y.series.forEach((N,D)=>{if(!T.value.has(D)){const z=O(D),Z=N.name.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");C+=`<circle cx="${v+6}" cy="${f-4}" r="6" fill="${z}"/>`,C+=`<text x="${v+18}" y="${f}" font-family="Arial, sans-serif" font-size="12" fill="#333">${Z}</text>`,M++,M%g===0?(v=l-200,f+=20):v+=Math.min(120,Z.length*8+35)}})}let V="";if(Xe.value)try{const{width:v,height:f}=Re.value,g=Pe.value,M=i.value.left,N=i.value.right,D=i.value.top,z=i.value.bottom,Z=i.value.width,ce=i.value.height;let Y,te;switch(g){case"center":Y=M+(Z-v)/2,te=D+(ce-f)/2;break;case"top-left":Y=M+15,te=D+5;break;case"top-right":Y=N-v-5,te=D+5;break;case"bottom-left":Y=M+15,te=z-f-5;break;case"bottom-right":default:Y=N-v-5,te=z-f-5;break}V=`
|
|
36
|
+
<g opacity="${Te.value}">
|
|
37
|
+
<g transform="translate(${Y}, ${te}) scale(${v/499})">
|
|
38
|
+
<path d="M171.52 37.8399H160.38C160.26 36.4799 160.02 35.0599 159.68 33.5699C159.34 32.0799 158.77 30.7399 157.96 29.5299C157.16 28.3199 156 27.3199 154.48 26.5099C152.96 25.7099 150.94 25.2999 148.4 25.2999C144.69 25.2999 141.93 26.1299 140.14 27.8099C138.34 29.4799 137.45 31.5499 137.45 34.0299C137.45 37.7999 139.29 40.0799 142.97 40.8499C146.65 41.6299 150.67 42.3799 155.03 43.1199C159.39 43.8599 163.41 45.3899 167.09 47.7099C170.77 50.0299 172.61 54.6199 172.61 61.4899C172.61 64.6499 172.02 67.5099 170.85 70.0699C169.67 72.6399 168.02 74.7899 165.89 76.5199C163.76 78.2499 161.19 79.5799 158.19 80.5099C155.19 81.4399 151.93 81.8999 148.4 81.8999C143.95 81.8999 140.12 81.2699 136.94 79.9999C133.75 78.7299 131.19 77.0799 129.24 75.0399C127.29 72.9999 125.93 70.6899 125.16 68.1299C124.39 65.5599 124.19 62.9499 124.56 60.2899H136.25C136.37 62.0799 136.58 63.7899 136.85 65.3899C137.13 66.9999 137.68 68.4099 138.52 69.6099C139.35 70.8199 140.58 71.7799 142.19 72.4899C143.8 73.1999 145.99 73.5599 148.78 73.5599C153.3 73.5599 156.47 72.6199 158.29 70.7299C160.11 68.8399 161.03 66.6899 161.03 64.2799C161.03 60.2599 159.19 57.7799 155.51 56.8599C151.83 55.9299 147.79 55.0499 143.4 54.2099C139.01 53.3799 134.97 51.7699 131.29 49.3799C127.61 46.9999 125.77 42.3699 125.77 35.5099C125.77 32.8499 126.3 30.3899 127.35 28.1299C128.4 25.8699 129.9 23.9199 131.85 22.2799C133.8 20.6399 136.16 19.3399 138.95 18.3799C141.73 17.4199 144.8 16.9399 148.14 16.9399C152.41 16.9399 156.07 17.4699 159.14 18.5199C162.2 19.5699 164.69 21.0299 166.61 22.8799C168.53 24.7399 169.89 26.9499 170.69 29.5199C171.49 32.0899 171.77 34.8599 171.52 37.8199V37.8399Z" fill="#020203"/>
|
|
39
|
+
<path d="M179.04 58.1699C179.04 55.0799 179.55 52.0499 180.57 49.0699C181.59 46.0999 183.04 43.4899 184.93 41.2299C186.82 38.9699 189.09 37.1499 191.75 35.7499C194.41 34.3599 197.35 33.6599 200.57 33.6599C207 33.6599 212.15 35.9299 216.02 40.4799C219.89 45.0299 221.97 51.5999 222.28 60.1999H189.34C189.77 64.2199 191.09 67.1499 193.28 68.9699C195.48 70.7999 198.12 71.7099 201.21 71.7099C203 71.7099 204.5 71.4599 205.71 70.9699C206.92 70.4799 207.91 69.8899 208.68 69.2099C209.45 68.5299 210.06 67.8199 210.49 67.0799C210.92 66.3399 211.26 65.7199 211.51 65.2199H221.72C221.6 66.7699 221.1 68.5099 220.24 70.4599C219.37 72.4099 218.14 74.2299 216.53 75.9399C214.92 77.6399 212.85 79.0599 210.31 80.2099C207.77 81.3499 204.77 81.9299 201.31 81.9299C197.85 81.9299 194.91 81.2799 192.12 79.9799C189.34 78.6799 186.98 76.9499 185.07 74.7799C183.15 72.6099 181.67 70.0899 180.61 67.2199C179.56 64.3399 179.03 61.3299 179.03 58.1699H179.04ZM200.94 42.0199C198.47 42.0199 196.24 42.7299 194.26 44.1499C192.28 45.5699 190.89 47.8299 190.08 50.9199H211.33C211.02 48.0799 209.95 45.8799 208.13 44.3299C206.3 42.7899 203.91 42.0099 200.94 42.0099V42.0199Z" fill="#020203"/>
|
|
40
|
+
<path d="M268.59 80.9999H258.01V50.3799C258.01 48.2099 257.3 46.5099 255.88 45.2799C254.46 44.0399 252.6 43.4199 250.31 43.4199C248.45 43.4199 246.94 43.8399 245.76 44.6699C244.58 45.4999 243.67 46.5399 243.02 47.7799C242.37 49.0199 241.94 50.3799 241.72 51.8599C241.5 53.3399 241.4 54.7099 241.4 55.9399V80.9999H230.82V34.5999H241.03V38.3099C241.83 37.6899 243.27 36.7599 245.34 35.5199C247.41 34.2799 250.3 33.6599 254.02 33.6599C256.68 33.6599 259.12 34.1599 261.35 35.1399C263.58 36.1299 265.31 37.6799 266.55 39.7799C267.04 39.2899 267.71 38.6799 268.55 37.9699C269.38 37.2599 270.41 36.5799 271.61 35.9299C272.82 35.2799 274.22 34.7399 275.83 34.3099C277.44 33.8799 279.23 33.6599 281.21 33.6599C285.23 33.6599 288.67 34.8099 291.51 37.0899C294.36 39.3799 295.78 43.0599 295.78 48.1299V80.9799H285.2V50.3599C285.2 48.1899 284.49 46.4899 283.07 45.2599C281.65 44.0199 279.79 43.3999 277.5 43.3999C275.64 43.3999 274.13 43.8199 272.95 44.6499C271.77 45.4799 270.86 46.5199 270.21 47.7599C269.56 48.9999 269.13 50.3599 268.91 51.8399C268.69 53.3199 268.59 54.6899 268.59 55.9199V80.9799V80.9999Z" fill="#020203"/>
|
|
41
|
+
<path d="M344.78 67.3499C344.78 68.7099 345.21 69.7199 346.08 70.3699C346.95 71.0199 348.09 71.3399 349.51 71.3399C350.13 71.3399 350.76 71.2899 351.41 71.1999C352.06 71.1099 352.82 70.9699 353.68 70.7799V80.9899C352.07 81.2399 350.77 81.3899 349.78 81.4499C348.79 81.5099 347.89 81.5399 347.09 81.5399C344.24 81.5399 342.05 81.1799 340.5 80.4699C338.95 79.7599 337.65 78.5099 336.6 76.7099C336.17 77.0199 335.55 77.4699 334.74 78.0599C333.94 78.6499 332.95 79.2199 331.77 79.7799C330.59 80.3399 329.2 80.8299 327.59 81.2599C325.98 81.6899 324.16 81.9099 322.11 81.9099C319.51 81.9099 317.1 81.4899 314.87 80.6599C312.64 79.8299 310.72 78.6999 309.12 77.2699C307.51 75.8499 306.24 74.2099 305.32 72.3499C304.39 70.4899 303.93 68.5499 303.93 66.4999C303.93 61.2399 305.96 57.4499 310.01 55.1299C314.06 52.8099 319.27 51.6499 325.65 51.6499H334.56V49.4199C334.56 46.9499 333.68 44.9399 331.92 43.3899C330.16 41.8399 327.88 41.0699 325.1 41.0699C322.32 41.0699 320.09 41.7799 318.6 43.1999C317.12 44.6199 316.37 46.6999 316.37 49.4199H305.05C305.05 46.9499 305.58 44.7199 306.63 42.7399C307.68 40.7599 309.12 39.1099 310.94 37.7799C312.76 36.4499 314.91 35.4299 317.39 34.7199C319.86 34.0099 322.52 33.6499 325.37 33.6499C327.97 33.6499 330.44 33.9399 332.79 34.5299C335.14 35.1199 337.2 36.0299 338.96 37.2699C340.72 38.5099 342.13 40.0499 343.18 41.9099C344.23 43.7699 344.76 45.9299 344.76 48.4099V67.3399L344.78 67.3499ZM315.45 67.6299C315.45 69.4899 316.19 71.0999 317.68 72.4599C319.16 73.8199 321.14 74.4999 323.62 74.4999C325.54 74.4999 327.18 74.1399 328.54 73.4299C329.9 72.7199 331.03 71.8399 331.93 70.7899C332.83 69.7399 333.49 68.6199 333.93 67.4499C334.36 66.2799 334.58 65.2199 334.58 64.2899V59.6499C330.56 59.4599 327.29 59.5399 324.79 59.8799C322.29 60.2199 320.35 60.7599 318.99 61.4999C317.63 62.2399 316.7 63.1399 316.21 64.1899C315.71 65.2399 315.47 66.3899 315.47 67.6199L315.45 67.6299Z" fill="#020203"/>
|
|
42
|
+
<path d="M356.47 58.1699C356.47 54.5799 357.01 51.2899 358.09 48.2899C359.17 45.2899 360.67 42.7099 362.59 40.5399C364.51 38.3799 366.8 36.6899 369.46 35.4799C372.12 34.2699 375.03 33.6699 378.18 33.6699C382.2 33.6699 385.51 34.4399 388.11 35.9899C390.71 37.5399 392.78 39.3799 394.33 41.5099C395.88 43.6399 397.02 45.8899 397.76 48.2399C398.5 50.5899 399.03 52.5399 399.34 54.0899H388.58C388.15 51.2499 387.11 48.8299 385.47 46.8499C383.83 44.8699 381.28 43.8799 377.81 43.8799C374.78 43.8799 372.16 45.0399 369.97 47.3599C367.77 49.6799 366.68 53.1599 366.68 57.7999C366.68 62.6899 367.89 66.2299 370.3 68.4299C372.71 70.6299 375.47 71.7199 378.56 71.7199C380.29 71.7199 381.78 71.4399 383.01 70.8899C384.25 70.3299 385.27 69.6099 386.07 68.7099C386.87 67.8099 387.54 66.8099 388.07 65.6899C388.59 64.5799 389.07 63.4899 389.51 62.4399H399.16C399.16 64.3599 398.73 66.4599 397.86 68.7499C396.99 71.0399 395.68 73.1599 393.92 75.1099C392.16 77.0599 389.91 78.6799 387.19 79.9799C384.47 81.2799 381.28 81.9299 377.63 81.9299C374.47 81.9299 371.58 81.2799 368.95 79.9799C366.32 78.6799 364.09 76.9499 362.27 74.7799C360.44 72.6099 359.02 70.0899 358 67.2199C356.98 64.3499 356.47 61.3299 356.47 58.1699Z" fill="#020203"/>
|
|
43
|
+
<path d="M410.11 17.8899H420.32V34.5899H426.82V44.7999H420.32V68.7399C420.32 70.0999 420.71 71.0299 421.48 71.5199C422.25 72.0199 423.1 72.2599 424.03 72.2599C424.83 72.2599 425.53 72.1799 426.12 72.0299C426.71 71.8799 427.16 71.6999 427.47 71.5199V80.7999C427.04 80.9199 426.23 81.1399 425.06 81.4499C423.88 81.7599 422.24 81.9099 420.14 81.9099C416.61 81.9099 414.06 81.0099 412.48 79.2199C410.9 77.4299 410.11 75.4199 410.11 73.1899V44.7899H404.54V34.5799H410.11V17.8799V17.8899Z" fill="#020203"/>
|
|
44
|
+
<path d="M435.81 16.96H446.39V28.1H435.81V16.96ZM435.81 34.59H446.39V80.99H435.81V34.59Z" fill="#020203"/>
|
|
45
|
+
<path d="M455.67 58.1699C455.67 54.5799 456.21 51.2899 457.29 48.2899C458.37 45.2899 459.87 42.7099 461.79 40.5399C463.71 38.3799 466 36.6899 468.66 35.4799C471.32 34.2699 474.23 33.6699 477.38 33.6699C481.4 33.6699 484.71 34.4399 487.31 35.9899C489.91 37.5399 491.98 39.3799 493.53 41.5099C495.08 43.6399 496.22 45.8899 496.96 48.2399C497.7 50.5899 498.23 52.5399 498.54 54.0899H487.78C487.35 51.2499 486.31 48.8299 484.67 46.8499C483.03 44.8699 480.48 43.8799 477.01 43.8799C473.98 43.8799 471.36 45.0399 469.17 47.3599C466.97 49.6799 465.88 53.1599 465.88 57.7999C465.88 62.6899 467.09 66.2299 469.5 68.4299C471.91 70.6299 474.67 71.7199 477.76 71.7199C479.49 71.7199 480.98 71.4399 482.21 70.8899C483.45 70.3299 484.47 69.6099 485.27 68.7099C486.07 67.8099 486.74 66.8099 487.27 65.6899C487.79 64.5799 488.27 63.4899 488.71 62.4399H498.36C498.36 64.3599 497.93 66.4599 497.06 68.7499C496.19 71.0399 494.88 73.1599 493.12 75.1099C491.36 77.0599 489.11 78.6799 486.39 79.9799C483.67 81.2799 480.48 81.9299 476.83 81.9299C473.67 81.9299 470.78 81.2799 468.15 79.9799C465.52 78.6799 463.29 76.9499 461.47 74.7799C459.64 72.6099 458.22 70.0899 457.2 67.2199C456.18 64.3499 455.67 61.3299 455.67 58.1699Z" fill="#020203"/>
|
|
46
|
+
<path d="M95.8 88.71V7.09C95.8 3.1743 92.6258 0 88.7101 0L7.09004 0C3.17435 0 4.57764e-05 3.1743 4.57764e-05 7.09V88.71C4.57764e-05 92.6257 3.17435 95.8 7.09004 95.8H88.7101C92.6258 95.8 95.8 92.6257 95.8 88.71Z" fill="#020203"/>
|
|
47
|
+
<path d="M48.2801 18.61H29.5501C22.2401 18.61 16.3201 24.53 16.3201 31.84C16.3201 39.15 22.2401 45.07 29.5501 45.07H48.4401C49.4201 45.07 50.2101 44.27 50.2001 43.29L50.0401 20.35C50.0401 19.38 49.2501 18.6 48.2801 18.6V18.61Z" fill="#FFC530"/>
|
|
48
|
+
<path d="M67.37 43.9C74.0582 43.9 79.48 38.4782 79.48 31.79C79.48 25.1018 74.0582 19.68 67.37 19.68C60.6818 19.68 55.26 25.1018 55.26 31.79C55.26 38.4782 60.6818 43.9 67.37 43.9Z" fill="white"/>
|
|
49
|
+
<path d="M47.5201 77.18H66.2501C73.5601 77.18 79.4801 71.26 79.4801 63.95C79.4801 56.64 73.5601 50.72 66.2501 50.72H47.3601C46.3801 50.72 45.5901 51.52 45.6001 52.5L45.7601 75.44C45.7601 76.41 46.5501 77.19 47.5201 77.19V77.18Z" fill="#07ACDD"/>
|
|
50
|
+
<path d="M28.4201 76.12C35.1082 76.12 40.5301 70.6982 40.5301 64.01C40.5301 57.3218 35.1082 51.9 28.4201 51.9C21.7319 51.9 16.3101 57.3218 16.3101 64.01C16.3101 70.6982 21.7319 76.12 28.4201 76.12Z" fill="white"/>
|
|
51
|
+
</g>
|
|
52
|
+
</g>`}catch(v){console.warn("Watermark processing failed, skipping watermark in SVG:",v),V=""}const w=`<?xml version="1.0" encoding="UTF-8"?>
|
|
53
|
+
<svg width="${l}" height="${s}"
|
|
54
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
55
|
+
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
56
|
+
<defs>
|
|
57
|
+
<style>
|
|
58
|
+
.dss-chart-title { font-family: Arial, sans-serif; font-size: 18px; font-weight: bold; fill: #333; }
|
|
59
|
+
.dss-chart-subtitle { font-family: Arial, sans-serif; font-size: 14px; fill: #666; }
|
|
60
|
+
.dss-legend-text { font-family: Arial, sans-serif; font-size: 12px; fill: #333; }
|
|
61
|
+
</style>
|
|
62
|
+
</defs>
|
|
63
|
+
<rect width="100%" height="100%" fill="white"/>
|
|
64
|
+
${C}
|
|
65
|
+
<g transform="translate(0, ${o.height})">
|
|
66
|
+
${h}
|
|
67
|
+
${V}
|
|
68
|
+
</g>
|
|
69
|
+
</svg>`,E=new Blob([w],{type:"image/svg+xml;charset=utf-8"}),_=URL.createObjectURL(E),L=document.createElement("a");L.href=_,L.download=Ne("svg"),document.body.appendChild(L),L.click(),document.body.removeChild(L),URL.revokeObjectURL(_),he(t),le()}catch(a){console.error("Error downloading SVG:",a),he(t)}},50)}catch(t){console.error("Error downloading SVG:",t)}},fo=async()=>{try{const t=pt();document.querySelector(".dss-custom-chart-container").offsetHeight,await new Promise(v=>setTimeout(v,300));const a=Ge(),o=q.value,l=ae.value+a.height,s=document.createElement("canvas"),n=s.getContext("2d"),r=2;s.width=o*r,s.height=l*r,s.style.width=o+"px",s.style.height=l+"px",n.scale(r,r),n.fillStyle="white",n.fillRect(0,0,o,l);let c=30;if(U.value&&(n.fillStyle="#333",n.font="bold 18px Arial, sans-serif",n.fillText(U.value,24,c),c+=30),K.value&&(n.fillStyle="#666",n.font="14px Arial, sans-serif",n.fillText(K.value,24,c),c+=25),$e.value&&y.series.length>0){let v=o-200,f=U.value||K.value?35:25;const g=Math.floor((o-250)/120);let M=0;n.font="12px Arial, sans-serif",y.series.forEach((N,D)=>{if(!T.value.has(D)){const z=O(D);n.beginPath(),n.arc(v+6,f-4,6,0,2*Math.PI),n.fillStyle=z,n.fill(),n.fillStyle="#333",n.fillText(N.name,v+18,f),M++,M%g===0?(v=o-200,f+=20):v+=Math.min(120,N.name.length*8+35)}})}const d=document.querySelector(".dss-chart-svg").cloneNode(!0),h=d.querySelectorAll(".dss-flag-markers, .dss-flag-line, .dss-flag-extension-line, .dss-flag-count-indicator, .dss-flag-count-text"),C=d.querySelectorAll(".dss-crosshair"),b=d.querySelectorAll('[class*="tooltip"]');h.forEach(v=>v.remove()),C.forEach(v=>v.remove()),b.forEach(v=>v.remove()),d.querySelectorAll("image").forEach((v,f)=>{const g=v.getAttribute("xlink:href")||v.getAttribute("href");if(g&&!g.startsWith("data:")){const M=ze.value[f],N=M?O(M.seriesIndex):"#3B82F6",D=v.getAttribute("x")||0,z=v.getAttribute("y")||0,Z=v.getAttribute("width")||32,ce=v.getAttribute("height")||32,Y=document.createElementNS("http://www.w3.org/2000/svg","circle");Y.setAttribute("cx",parseFloat(D)+parseFloat(Z)/2),Y.setAttribute("cy",parseFloat(z)+parseFloat(ce)/2),Y.setAttribute("r",Math.min(parseFloat(Z),parseFloat(ce))/2-1),Y.setAttribute("fill",N),Y.setAttribute("stroke","white"),Y.setAttribute("stroke-width","2"),v.parentNode.replaceChild(Y,v)}});const w=new XMLSerializer().serializeToString(d),E=new Blob([w],{type:"image/svg+xml;charset=utf-8"}),_=URL.createObjectURL(E),L=new Image;return new Promise((v,f)=>{L.onload=async()=>{try{if(n.drawImage(L,0,a.height),ze.value.forEach(g=>{const M=g.x,N=g.y+a.height,D=(g.width||32)/2,z=O(g.seriesIndex);n.save(),n.beginPath(),n.arc(M,N,D-1,0,2*Math.PI),n.fillStyle=z,n.fill(),n.strokeStyle="white",n.lineWidth=2,n.stroke(),n.restore()}),Xe.value){const g=new Image,M=()=>{const{width:D,height:z}=Re.value,Z=Pe.value,ce=i.value.left,Y=i.value.right,te=i.value.top,St=i.value.bottom,Oo=i.value.width,Zo=i.value.height;let ke,xe;switch(Z){case"center":ke=ce+(Oo-D)/2,xe=te+a.height+(Zo-z)/2;break;case"top-left":ke=ce+15,xe=te+a.height+10;break;case"top-right":ke=Y-D-5,xe=te+a.height+10;break;case"bottom-left":ke=ce+15,xe=St+a.height-z-5;break;case"bottom-right":default:ke=Y-D-5,xe=St+a.height-z-5;break}n.globalAlpha=Te.value,n.drawImage(g,ke,xe,D,z),n.globalAlpha=1,N()},N=()=>{s.toBlob(D=>{const z=URL.createObjectURL(D),Z=document.createElement("a");Z.href=z,Z.download=Ne("png"),document.body.appendChild(Z),Z.click(),document.body.removeChild(Z),URL.revokeObjectURL(z),URL.revokeObjectURL(_),he(t),le(),v()},"image/png")};g.onload=M,g.onerror=N,g.src=it.value}else s.toBlob(g=>{const M=URL.createObjectURL(g),N=document.createElement("a");N.href=M,N.download=Ne("png"),document.body.appendChild(N),N.click(),document.body.removeChild(N),URL.revokeObjectURL(M),URL.revokeObjectURL(_),he(t),le(),v()},"image/png")}catch(g){URL.revokeObjectURL(_),he(t),f(g)}},L.onerror=()=>{URL.revokeObjectURL(_),he(t),f(new Error("Failed to load SVG image"))},L.src=_})}catch(t){console.error("Error downloading PNG:",t)}},yo=()=>{try{let t="";U.value&&(t+=`# ${k("chart.csv.chartTitle")}: ${U.value}
|
|
70
|
+
`),K.value&&(t+=`# ${k("chart.csv.chartSubtitle")}: ${K.value}
|
|
71
|
+
`),t+=`# ${k("chart.csv.generated")}: ${new Date().toLocaleString()}
|
|
72
|
+
|
|
73
|
+
`,t+="Category",y.series.forEach(n=>{const r=n.name.replace(/"/g,'""');t+=',"'+r+'"'}),t+=`
|
|
74
|
+
`;const a=Math.max(...y.series.map(n=>n.data?.length||0));for(let n=0;n<a;n++){let m='"'+(y.categories[n]||k("chart.fallback.item",{number:n+1})).toString().replace(/"/g,'""')+'"';y.series.forEach(d=>{const h=d.data&&d.data[n]!==void 0?d.data[n]:"";m+=","+h}),t+=m+`
|
|
75
|
+
`}const o=new Blob([t],{type:"text/csv;charset=utf-8;"}),l=URL.createObjectURL(o),s=document.createElement("a");s.href=l,s.download=Ne("csv"),document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(l),le()}catch(t){console.error("Error downloading CSV:",t)}},Co=t=>{if(typeof t.action=="function"){const a={series:y.series,categories:y.categories,markers:H.value},o={chartX:R.value.chartX,chartY:R.value.chartY,dataX:R.value.mouseDataX,dataY:R.value.mouseDataY,categoryIndex:clampedCategoryIndex||R.value.categoryIndex};t.action(a,o)}le()},ko=()=>{fe(),x.value.show=!0,le()},ft=t=>{if(R.value.show){const a=document.querySelector(".dss-chart-context-menu");a&&!a.contains(t.target)&&le()}},yt=t=>{if(!j.value||!ve.value)return;t.preventDefault(),t.stopPropagation(),u.value.isZooming=!0,B.value.show=!1,u.value.zoomTimeout&&clearTimeout(u.value.zoomTimeout);const o=t.currentTarget.getBoundingClientRect(),l=t.clientX-o.left,s=t.clientY-o.top;if(l<i.value.left-50||l>i.value.right+50||s<i.value.top-50||s>i.value.bottom+100){u.value.isZooming=!1;return}const n=t.deltaY>0?.9:1.1,r=Math.max(u.value.minScale,Math.min(u.value.maxScale,u.value.scale*n));if(r!==u.value.scale){const{minX:c,maxX:m}=Q.value,d=m-c||1,h=d/u.value.scale,C=c-u.value.offsetX/i.value.width*d,b=(l-i.value.left)/i.value.width,V=C+b*h;u.value.scale=r;const w=d/u.value.scale,E=V-b*w;u.value.offsetX=-(E-c)/d*i.value.width,u.value.scale<=1.01&&(u.value.scale=1,u.value.offsetX=0)}u.value.zoomTimeout=setTimeout(()=>{u.value.isZooming=!1,u.value.zoomTimeout=null},300)},xo=t=>{if(!j.value||!ve.value||u.value.scale<=1)return;B.value.show=!1;const o=t.currentTarget.getBoundingClientRect();t.clientX-o.left,t.clientY-o.top,u.value.isDragging=!0,u.value.lastMouseX=t.clientX,u.value.lastMouseY=t.clientY,t.preventDefault()},wo=()=>{u.value.isDragging=!1},Ze=()=>{!j.value||!ve.value||(u.value.scale=1,u.value.offsetX=0,u.value.isDragging=!1,u.value.zoomTimeout&&(clearTimeout(u.value.zoomTimeout),u.value.zoomTimeout=null),u.value.isZooming=!1)},Mo=()=>!j.value||!Oe.value||!ve.value?"default":u.value.isDragging?"grabbing":u.value.scale>1?"grab":"dss-crosshair",je=t=>{if(t.length<2)return"";if(t.length===2)return`M ${t[0].x} ${t[0].y} L ${t[1].x} ${t[1].y}`;let a=`M ${t[0].x} ${t[0].y}`;for(let o=0;o<t.length-1;o++){const l=t[Math.max(o-1,0)],s=t[o],n=t[o+1],r=t[Math.min(o+2,t.length-1)],c=s.x+(n.x-l.x)/6*De.value,m=s.y+(n.y-l.y)/6*De.value,d=n.x-(r.x-s.x)/6*De.value,h=n.y-(r.y-s.y)/6*De.value;a+=` C ${c} ${m} ${d} ${h} ${n.x} ${n.y}`}return a},se=e.computed(()=>{const a=50+(Fe.value?30:0)+60;let o=0;return U.value&&(o+=15),K.value&&(o+=10),{left:66,top:50+o,right:50,bottom:a}}),i=e.computed(()=>({left:se.value.left,top:se.value.top,right:q.value-se.value.right,bottom:ae.value-se.value.bottom,width:q.value-(se.value.left+se.value.right),height:ae.value-(se.value.top+se.value.bottom)})),j=e.computed(()=>["line","area","bar"].includes(X.value)),be=e.computed(()=>["radial","semi-radial"].includes(X.value)),We=e.computed(()=>X.value==="spider"),F=e.computed(()=>q.value/2),I=e.computed(()=>ae.value/2),S=e.computed(()=>Math.min(i.value.width,i.value.height)/2),W=e.computed(()=>S.value*.45),re=e.computed(()=>y.series),Ee=e.computed(()=>y.series.filter((t,a)=>!T.value.has(a))),ie="auto",Q=e.computed(()=>{if(!Ee.value.length)return{minX:0,maxX:1,minY:0,maxY:1};let t=1/0,a=-1/0,o=0;Ee.value.forEach(c=>{c.data&&c.data.length&&(o=Math.max(o,c.data.length-1),c.data.forEach(m=>{typeof m=="number"&&(t=Math.min(t,m),a=Math.max(a,m))}))}),y.categories.length>0&&(o=Math.max(o,y.categories.length-1)),t===1/0&&(t=0,a=100);const l=$t.value,s=Dt.value;let n,r;if(l===ie){const c=a-t,m=c>0?c*.1:1;n=Math.max(0,t-m)}else if(typeof l=="number")n=l;else{const c=a-t,m=c>0?c*.1:1;n=Math.max(0,t-m)}if(s===ie){const c=a-t,m=c>0?c*.1:2;r=a+m}else if(typeof s=="number")r=s;else{const c=a-t,m=c>0?c*.1:2;r=a+m}return{minX:0,maxX:o,minY:n,maxY:r}}),J=t=>{const{minX:a,maxX:o}=Q.value,l=o-a||1,s=l/u.value.scale,n=a-u.value.offsetX/i.value.width*l,r=(t-n)/s;return i.value.left+r*i.value.width},ee=t=>{const{minY:a,maxY:o}=Q.value,l=o-a||1;return i.value.bottom-(t-a)/l*i.value.height},bo=e.computed(()=>Ct.value.map(t=>({y:t.y}))),Eo=e.computed(()=>{if(X.value==="bar"){const w=[],{maxX:E}=Q.value,_=E+1,L=5,f=(i.value.width-L*2)/_;for(let g=0;g<=E;g++){const M=i.value.left+L+(g+.5)*f;w.push({x:M,y:i.value.bottom+20,text:y.categories[g]||k("chart.fallback.item",{number:g+1})})}return w}const t=[],{minX:a,maxX:o}=Q.value,l=o-a||1,s=l/u.value.scale,n=a-u.value.offsetX/i.value.width*l,r=n+s,c=Math.max(0,Math.floor(n-2)),m=Math.min(o,Math.ceil(r+2)),d=m-c,h=i.value.width,b=Math.floor(h/60);let V=1;d>b&&(V=Math.ceil(d/b));for(let w=c;w<=m;w+=V)if(w>=0&&w<=o){const E=J(w);E>=i.value.left-100&&E<=i.value.right+100&&t.push({x:E,y:i.value.bottom+20,text:y.categories[w]||`Item ${w+1}`})}return t}),Ct=e.computed(()=>{const t=[],{minY:a,maxY:o}=Q.value,l=5;for(let s=0;s<=l;s++){const n=a+(o-a)*(s/l),r=Math.round(n);t.push({x:i.value.left-10,y:ee(n),text:r.toString()})}return t}),O=t=>{const a=Ht.value;if(!a||a.length===0){const o=["#3B82F6","#EF4444","#10B981","#F59E0B","#8B5CF6","#F97316","#06B6D4","#84CC16"];return o[t%o.length]}return a[t%a.length]},kt=t=>{let a=0;for(let o=1;o<t.length;o++){const l=t[o].x-t[o-1].x,s=t[o].y-t[o-1].y;a+=Math.sqrt(l*l+s*s)}return a},Bo=e.computed(()=>X.value!=="line"?[]:re.value.map((t,a)=>{const o=t.data.map((m,d)=>({x:J(d),y:ee(m)}));let l="";o.length>0&&(de.value?l=je(o):l=`M ${o[0].x} ${o[0].y}`+o.slice(1).map(m=>` L ${m.x} ${m.y}`).join(""));const s=kt(o),n=T.value.has(a),r=A.value===a,c=A.value!==null&&A.value!==a;return{path:l,color:O(a),pathLength:s,seriesIndex:a,animationDelay:a*me.value,isHighlighted:r,isDimmed:c,isHidden:n}})),So=e.computed(()=>{if(X.value!=="line")return[];const t=[];return re.value.forEach((a,o)=>{const l=A.value===o,s=A.value!==null&&A.value!==o,n=T.value.has(o);a.data.forEach((r,c)=>{t.push({x:J(c),y:ee(r),color:O(o),value:r,label:y.categories[c]||c.toString(),seriesName:a.name,categoryIndex:c,dataIndex:c,animationDelay:(o*a.data.length+c)*(me.value/8),isHighlighted:l,isDimmed:s,isHidden:n})})}),t}),Ue=e.computed(()=>X.value!=="area"?[]:re.value.map((t,a)=>{const o=t.data.map((h,C)=>({x:J(C),y:ee(h)}));if(o.length===0)return{linePath:"",areaPath:"",color:O(a),isHidden:T.value.has(a)};let l=`M ${o[0].x} ${o[0].y}`;de.value&&o.length>1?l=je(o):o.slice(1).forEach(h=>{l+=` L ${h.x} ${h.y}`});const s=i.value.bottom+1;let n=`M ${o[0].x} ${s}`;if(n+=` L ${o[0].x} ${o[0].y}`,de.value&&o.length>1){const h=je(o),C=h.substring(h.indexOf("C")||h.indexOf("Q")||h.indexOf("L"));C?n+=" "+C:o.slice(1).forEach(b=>{n+=` L ${b.x} ${b.y}`})}else o.slice(1).forEach(h=>{n+=` L ${h.x} ${h.y}`});n+=` L ${o[o.length-1].x} ${s} Z`;const r=A.value===a,c=A.value!==null&&A.value!==a,m=T.value.has(a),d=kt(o);return{linePath:l,areaPath:n,color:O(a),pathLength:d,isHighlighted:r,isDimmed:c,isHidden:m}})),Vo=e.computed(()=>{if(X.value!=="bar")return[];const t=[],{maxX:a}=Q.value,o=re.value.length,l=a+1,n=i.value.width/l,r=n*.8,c=r/o,m=c*.05,d=c-m;return re.value.forEach((h,C)=>{const b=A.value===C,V=A.value!==null&&A.value!==C,w=T.value.has(C);h.data.forEach((E,_)=>{const f=i.value.left+(_+.5)*n-r/2+C*c+m/2,g=ee(Math.max(0,E)),M=Math.abs(ee(0)-ee(E));let N="";if(de.value&&M>0){const D=Math.min(zt.value,d/2,M/2);N=[`M ${f} ${g+M}`,`L ${f} ${g+D}`,`Q ${f} ${g} ${f+D} ${g}`,`L ${f+d-D} ${g}`,`Q ${f+d} ${g} ${f+d} ${g+D}`,`L ${f+d} ${g+M}`,"Z"].join(" ")}t.push({x:f,y:g,width:d,height:M,color:O(C),value:E,label:y.categories[_]||_.toString(),seriesName:h.name,animationDelay:(C*re.value.length+_)*(me.value/4),isHighlighted:b,isDimmed:V,isHidden:w,barPath:N,isSmooth:de.value&&M>0})})}),t});e.computed(()=>{const t=[];for(let o=1;o<=4;o++)t.push(W.value+(S.value-W.value)*(o/4));return t}),e.computed(()=>{if(X.value!=="semi-radial")return"";const t=F.value-S.value,a=I.value,o=F.value+S.value,l=I.value;return`M ${t} ${a} A ${S.value} ${S.value} 0 0 0 ${o} ${l}`});const xt=e.computed(()=>{if(!be.value)return[];const t=re.value.map((n,r)=>({series:n,originalIndex:r})).filter(({originalIndex:n})=>!T.value.has(n));if(t.length===0)return[];let a=X.value==="semi-radial"?Math.PI:-Math.PI/2;const o=X.value==="semi-radial"?Math.PI:Math.PI*2,l=[];if(t.length===1){const{series:n,originalIndex:r}=t[0],c=n.data[0]||0,m=a,d=a+o-.001,h=m+o/2,C=F.value+Math.cos(m)*W.value,b=I.value+Math.sin(m)*W.value,V=F.value+Math.cos(d)*W.value,w=I.value+Math.sin(d)*W.value,E=F.value+Math.cos(d)*S.value,_=I.value+Math.sin(d)*S.value,L=F.value+Math.cos(m)*S.value,v=I.value+Math.sin(m)*S.value,f=1,g=[`M ${C} ${b}`,`A ${W.value} ${W.value} 0 ${f} 1 ${V} ${w}`,`L ${E} ${_}`,`A ${S.value} ${S.value} 0 ${f} 0 ${L} ${v}`,"Z"].join(" ");return l.push({path:g,color:O(r),value:c,seriesName:n.name,opacity:.8,isHighlighted:A.value===r,isDimmed:!1,isHidden:!1,startAngle:m,endAngle:d,midAngle:h}),l}const s=t.reduce((n,{series:r})=>n+(r.data[0]||0),0);return s===0?[]:(t.forEach(({series:n,originalIndex:r})=>{const c=n.data[0]||0,m=c/s*o,d=a,h=a+m,C=d+m/2,b=F.value+Math.cos(d)*W.value,V=I.value+Math.sin(d)*W.value,w=F.value+Math.cos(h)*W.value,E=I.value+Math.sin(h)*W.value,_=F.value+Math.cos(h)*S.value,L=I.value+Math.sin(h)*S.value,v=F.value+Math.cos(d)*S.value,f=I.value+Math.sin(d)*S.value,g=m>Math.PI?1:0,M=[`M ${b} ${V}`,`A ${W.value} ${W.value} 0 ${g} 1 ${w} ${E}`,`L ${_} ${L}`,`A ${S.value} ${S.value} 0 ${g} 0 ${v} ${f}`,"Z"].join(" ");l.push({path:M,color:O(r),value:c,seriesName:n.name,opacity:.8,isHighlighted:A.value===r,isDimmed:A.value!==null&&A.value!==r,isHidden:!1,startAngle:d,endAngle:h,midAngle:C}),a=h}),l)}),_o=e.computed(()=>!ct.value||!be.value?[]:xt.value.map((t,a)=>{if(t.isHidden)return null;const o=Ut.value,l=qt.value,s=Kt.value,n=F.value+Math.cos(t.midAngle)*S.value,r=I.value+Math.sin(t.midAngle)*S.value,c=F.value+Math.cos(t.midAngle)*(S.value+o),m=I.value+Math.sin(t.midAngle)*(S.value+o),d=Math.cos(t.midAngle)>=0,C=c+l*(d?1:-1),b=m,V=d?c+15:c-15,w=b-s,E=d?"start":"end";return{pointerStartX:n,pointerStartY:r,pointerEndX:c,pointerEndY:m,horizontalEndX:C,horizontalEndY:b,textX:V,textY:w,text:`${t.seriesName}: ${t.value}`,color:t.color,textAnchor:E,isRightSide:d,isHighlighted:t.isHighlighted,isDimmed:t.isDimmed}}).filter(Boolean)),Ae=e.computed(()=>y.categories.length||Math.max(...Ee.value.map(t=>t.data.length))),$o=e.computed(()=>{let t=0;return Ee.value.forEach(a=>{a.data.forEach(o=>{typeof o=="number"&&(t=Math.max(t,o))})}),t||100}),wt=e.computed(()=>{const t=[],a=Ae.value;for(let o=0;o<a;o++){const l=o*2*Math.PI/a-Math.PI/2,s=F.value+Math.cos(l)*S.value,n=I.value+Math.sin(l)*S.value;t.push({x:s,y:n,angle:l,index:o})}return t}),Do=e.computed(()=>{const t=[],o=Ae.value;if(o<3)return t;for(let l=1;l<=4;l++){const s=S.value/4*l,n=[];for(let r=0;r<o;r++){const c=r*2*Math.PI/o-Math.PI/2,m=F.value+Math.cos(c)*s,d=I.value+Math.sin(c)*s;n.push(`${m},${d}`)}t.push({points:n.join(" "),level:l})}return t}),Lo=e.computed(()=>{const t=[];return Ae.value,wt.value.forEach((a,o)=>{const l=S.value+20,s=F.value+Math.cos(a.angle)*l,n=I.value+Math.sin(a.angle)*l;let r="middle",c="middle";Math.abs(Math.cos(a.angle))>.5&&(r=Math.cos(a.angle)>0?"start":"end"),Math.abs(Math.sin(a.angle))>.5&&(c=Math.sin(a.angle)>0?"hanging":"auto"),t.push({x:s,y:n,text:y.categories[o]||k("chart.fallback.axis",{number:o+1}),anchor:r,baseline:c})}),t}),No=e.computed(()=>{if(!We.value)return[];const t=[],a=Ae.value;return re.value.forEach((o,l)=>{const s=[],n=[],r=A.value===l,c=A.value!==null&&A.value!==l,m=T.value.has(l);for(let d=0;d<a;d++){const h=o.data[d]||0,b=h/$o.value*S.value,V=d*2*Math.PI/a-Math.PI/2,w=F.value+Math.cos(V)*b,E=I.value+Math.sin(V)*b;s.push(`${w},${E}`),n.push({x:w,y:E,value:h,label:y.categories[d]||`Axis ${d+1}`,seriesName:o.name})}t.push({points:s.join(" "),dataPoints:n,color:O(l),fillOpacity:Xt.value,seriesName:o.name,value:`${o.name}: ${o.data.join(", ")}`,isHighlighted:r,isDimmed:c,isHidden:m})}),t}),ze=e.computed(()=>{const t=p.value;return t.logos.map((a,o)=>{const l=y.series[a.seriesIndex];if(!l||!l.data||l.data.length===0||T.value.has(a.seriesIndex))return null;let s,n;if(j.value){const c=l.data.map((m,d)=>({x:J(d),y:ee(m)}));if(t.animations.enabled&&!_e.value&&t.animations.type==="draw"&&t.chart.type==="line"&&($.value.isAnimating||!$.value.hasAnimated))if($.value.isAnimating){const m=$.value.currentFrame/$.value.totalFrames,d=Mt(t.animations.easing,Math.min(m,1)),h=Yo(c,d);s=h.x+(a.offsetX||0),n=h.y+(a.offsetY||0)}else s=c[0].x+(a.offsetX||0),n=c[0].y+(a.offsetY||0);else{const m=l.data.length-1,d=l.data[m];s=J(m)+(a.offsetX||0),n=ee(d)+(a.offsetY||0)}}else if(be.value||We.value){const c=Math.PI*2/t.logos.length*o;s=F.value+Math.cos(c)*(S.value+30)+(a.offsetX||0),n=I.value+Math.sin(c)*(S.value+30)+(a.offsetY||0)}return{...a,x:s,y:n,seriesIndex:a.seriesIndex}}).filter(Boolean)}),Ao=t=>{const a=document.querySelector(`.dss-logo-fallback-${t}`),o=document.querySelector(`.dss-logo-image-${t}`);a&&(a.style.opacity="0"),o&&(o.style.opacity="1")},zo=t=>{console.warn(`Logo ${t} failed to load, keeping fallback circle`);const a=document.querySelector(`.dss-logo-image-${t}`);a&&(a.style.display="none")},Ho=t=>{T.value.has(t)?T.value.delete(t):T.value.add(t)},Fo=e.computed(()=>{if(!P.value.show&&!(ue.value&&B.value.show&&!u.value.isZooming))return{display:"none"};let t,a;if(ue.value&&B.value.show&&!u.value.isZooming){t=B.value.x+15,a=i.value.top;const o=150;t+o>q.value&&(t=B.value.x-o-15),t<0&&(t=10),a<10&&(a=10)}else t=P.value.x,a=P.value.y;return{left:t+"px",top:a+"px"}}),ye=(t,a)=>{if(Be.value)return;const l=a.target.closest(".dss-custom-chart-container").getBoundingClientRect();let s=a.clientX-l.left+10,n=a.clientY-l.top-10;const r=200,c=120,m=q.value,d=ae.value;s+r>m&&(s=a.clientX-l.left-r-10),n+c>d&&(n=a.clientY-l.top-c-10),s<0&&(s=10),n<0&&(n=10);let h;typeof t.categoryIndex=="number"?h=t.categoryIndex:typeof t.dataIndex=="number"?h=t.dataIndex:t.label&&y.categories.includes(t.label)&&(h=y.categories.indexOf(t.label)),P.value={show:!0,x:s,y:n,title:t.seriesName||t.label||"",value:t.value?.toString()||"",categoryIndex:h}},Ce=()=>{P.value.show=!1},Be=e.ref(!1),Se=(t,a)=>{Be.value=!0,P.value.show=!1,B.value.show=!1;const l=a.target.closest(".dss-custom-chart-container").getBoundingClientRect();let s=a.clientX-l.left+15,n=a.clientY-l.top-10;const r=250;s+r>q.value&&(s=a.clientX-l.left-r-15),s<0&&(s=10),n<0&&(n=10),Ye.value={show:!0,x:s,y:n,content:t.texts,count:t.totalCount}},Ve=()=>{Be.value=!1,Ye.value.show=!1},$=e.ref({isAnimating:!1,currentFrame:0,totalFrames:0,animationId:null,hasAnimated:!1});e.ref(new Map);const Mt=(t,a)=>{switch(t){case"linear":return a;case"ease":return a<.5?2*a*a:-1+(4-2*a)*a;case"ease-in":return a*a;case"ease-out":return a*(2-a);case"ease-in-out":return a<.5?2*a*a:-1+(4-2*a)*a;default:return a}},_e=e.computed(()=>It.value?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1),bt=()=>{if(!we.value||_e.value){$.value.hasAnimated=!0;return}$.value.isAnimating=!0,$.value.currentFrame=0,$.value.totalFrames=Math.ceil(at.value/16.67);const t=()=>{const a=$.value.currentFrame/$.value.totalFrames,o=Mt(nt.value,Math.min(a,1));Io(o),a<1?($.value.currentFrame++,$.value.animationId=requestAnimationFrame(t)):Xo()};$.value.animationId=requestAnimationFrame(t)},Io=t=>{const a=document.querySelector(".dss-custom-chart-container");a&&a.style.setProperty("--dss-animation-progress",t)},Xo=()=>{$.value.isAnimating=!1,$.value.hasAnimated=!0,$.value.animationId&&(cancelAnimationFrame($.value.animationId),$.value.animationId=null)},To=e.computed(()=>{if(!we.value||_e.value||$.value.hasAnimated)return{};const t={};return t["--dss-animation-duration"]=`${at.value}ms`,t["--dss-animation-easing"]=Po(nt.value),t["--dss-stagger-delay"]=`${me.value}ms`,t}),Po=t=>({linear:"linear",ease:"ease","ease-in":"ease-in","ease-out":"ease-out","ease-in-out":"ease-in-out"})[t]||"ease-out",Ro=()=>{if(!we.value||_e.value)return"";const t=["dss-chart-animated"];return $.value.hasAnimated||t.push(`dss-animate-${ot.value}`),$.value.hasAnimated||(be.value?t.push("dss-animate-fill"):t.push(`dss-animate-${ot.value}`)),$.value.isAnimating&&t.push("dss-is-animating"),t.join(" ")};e.watch(()=>y.series,(t,a)=>{Ft.value&&a&&$.value.hasAnimated&&($.value.hasAnimated=!1,e.nextTick(()=>{setTimeout(()=>bt(),lt.value)}))},{deep:!0}),e.watch(()=>u.value.isZooming,(t,a)=>{a&&!t&&setTimeout(()=>{ht()},50)}),e.watch(()=>[u.value.scale,u.value.offsetX],()=>{!u.value.isZooming&&!u.value.isDragging&&ht()},{flush:"post"}),e.watch([Nt,At],([t,a])=>{u.value.minScale=t,u.value.maxScale=a,(u.value.scale<t||u.value.scale>a)&&Ze()},{immediate:!0}),e.watch(()=>y.locale,t=>{t&&t!==Ke.value&&(Ke.value=t)},{immediate:!0}),e.onMounted(()=>{ho(),we.value&&!_e.value?setTimeout(()=>bt(),lt.value):$.value.hasAnimated=!0,document.addEventListener("mousemove",Et),document.addEventListener("mouseup",Bt),document.addEventListener("click",ft)}),e.onUnmounted(()=>{$.value.animationId&&cancelAnimationFrame($.value.animationId),u.value.zoomTimeout&&clearTimeout(u.value.zoomTimeout),document.removeEventListener("mousemove",Et),document.removeEventListener("mouseup",Bt),document.removeEventListener("click",ft)});const Et=t=>{if(u.value.isDragging&&u.value.scale>1&&j.value){B.value.show=!1;const a=t.clientX-u.value.lastMouseX,{minX:o,maxX:l}=Q.value,s=l-o||1,r=a*.8;u.value.offsetX+=r;const c=s/u.value.scale,m=s-c,d=0,h=-m/s*i.value.width,C=d;u.value.offsetX=Math.max(h,Math.min(C,u.value.offsetX)),u.value.lastMouseX=t.clientX,u.value.lastMouseY=t.clientY}},Bt=()=>{u.value.isDragging&&(u.value.isDragging=!1,setTimeout(()=>{!u.value.isDragging&&u.value.isZooming},100))},Yo=(t,a)=>{if(!t||t.length===0)return{x:0,y:0};if(t.length===1||a<=0)return t[0];if(a>=1)return t[t.length-1];let o=0;const l=[];for(let r=1;r<t.length;r++){const c=t[r].x-t[r-1].x,m=t[r].y-t[r-1].y,d=Math.sqrt(c*c+m*m);l.push(d),o+=d}const s=o*a;let n=0;for(let r=0;r<l.length;r++){const c=n+l[r];if(s<=c){const m=(s-n)/l[r],d=t[r],h=t[r+1];return{x:d.x+(h.x-d.x)*m,y:d.y+(h.y-d.y)*m}}n=c}return t[t.length-1]};return(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{class:e.normalizeClass(["dss-custom-chart-container",Ro()]),style:e.normalizeStyle({width:q.value+"px",height:ae.value+20+"px",...To.value,cursor:Mo()}),"data-chart-type":X.value,onWheel:yt,onMousedown:xo,onMousemove:Jt,onMouseup:wo,onMouseleave:eo,onDblclick:Ze,onContextmenu:to,onClick:le,onWheelCapture:yt},[e.createElementVNode("div",Wo,[e.createElementVNode("div",Uo,[U.value?(e.openBlock(),e.createElementBlock("div",qo,e.toDisplayString(U.value),1)):e.createCommentVNode("",!0),K.value?(e.openBlock(),e.createElementBlock("div",Ko,e.toDisplayString(K.value),1)):e.createCommentVNode("",!0)]),$e.value?(e.openBlock(),e.createElementBlock("div",Qo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.series,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:`legend-${l}`,class:e.normalizeClass(["dss-legend-item",{"dss-legend-hidden":T.value.has(l),"dss-legend-hovered":A.value===l,"dss-legend-dimmed":A.value!==null&&A.value!==l}]),onClick:s=>Ho(l),onMouseenter:s=>Qt(l),onMouseleave:Gt,style:e.normalizeStyle({animationDelay:`${l*100}ms`})},[e.createElementVNode("div",{class:"dss-legend-color",style:e.normalizeStyle({backgroundColor:O(l)})},null,4),e.createElementVNode("span",Jo,e.toDisplayString(o.name),1)],46,Go))),128))])):e.createCommentVNode("",!0)]),(e.openBlock(),e.createElementBlock("svg",{width:q.value,height:ae.value,class:"dss-chart-svg","data-smooth":de.value,"data-animated":we.value},[e.createElementVNode("defs",null,[e.createElementVNode("clipPath",ta,[e.createElementVNode("rect",{x:i.value.left,y:i.value.top,width:i.value.width,height:i.value.height*4},null,8,oa)])]),j.value?(e.openBlock(),e.createElementBlock("g",aa,[et.value?(e.openBlock(),e.createElementBlock("g",la,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(bo.value,(o,l)=>(e.openBlock(),e.createElementBlock("line",{key:`h-grid-${l}`,x1:i.value.left,x2:i.value.right,y1:o.y,y2:o.y,stroke:"#e0e0e0","stroke-width":"1","stroke-dasharray":"4,2",style:e.normalizeStyle({animationDelay:`${l*50}ms`})},null,12,na))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",sa,[e.createElementVNode("line",{x1:i.value.left,x2:i.value.right,y1:i.value.bottom,y2:i.value.bottom,stroke:"#ccc","stroke-width":"1"},null,8,ra),e.createElementVNode("line",{x1:i.value.left,x2:i.value.left,y1:i.value.top,y2:i.value.bottom,stroke:"#ccc","stroke-width":"1"},null,8,ia)]),e.createElementVNode("g",ca,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Eo.value,(o,l)=>(e.openBlock(),e.createElementBlock("text",{key:`x-${l}`,x:o.x,y:o.y,"text-anchor":"middle","font-size":"12",fill:"#666",style:e.normalizeStyle({animationDelay:`${l*100}ms`})},e.toDisplayString(o.text),13,ua))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ct.value,(o,l)=>(e.openBlock(),e.createElementBlock("text",{key:`y-${l}`,x:o.x,y:o.y,"text-anchor":"end","font-size":"12",fill:"#666","dominant-baseline":"middle",style:e.normalizeStyle({animationDelay:`${l*80}ms`})},e.toDisplayString(o.text),13,da))),128)),Fe.value?(e.openBlock(),e.createElementBlock("text",{key:0,x:i.value.left+i.value.width/2,y:i.value.bottom+45,"text-anchor":"middle","font-size":"14","font-weight":"bold",fill:"#333"},e.toDisplayString(Fe.value),9,ma)):e.createCommentVNode("",!0),Je.value?(e.openBlock(),e.createElementBlock("text",{key:1,x:15,y:i.value.top+12+i.value.height/2,"text-anchor":"middle","font-size":"14","font-weight":"bold",fill:"#333",transform:`rotate(-90, 15, ${i.value.top+i.value.height/2})`},e.toDisplayString(Je.value),9,ha)):e.createCommentVNode("",!0)]),ut.value.length>0?(e.openBlock(),e.createElementBlock("g",va,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ut.value,o=>(e.openBlock(),e.createElementBlock("g",{key:`flag-group-${o.categoryIndex}`},[e.createElementVNode("g",ga,[o.hasManual?(e.openBlock(),e.createElementBlock("line",{key:0,x1:o.x,x2:o.x,y1:i.value.bottom,y2:i.value.top,stroke:"#047395","stroke-width":"2","stroke-dasharray":"8",opacity:"0.9",class:"dss-flag-line",onMouseover:l=>Se(o,l),onMouseleave:Ve},null,40,pa)):e.createCommentVNode("",!0),o.hasAuto&&!o.hasManual?(e.openBlock(),e.createElementBlock("line",{key:1,x1:o.x,x2:o.x,y1:i.value.bottom,y2:i.value.top,stroke:"#0dbf89","stroke-width":"2","stroke-dasharray":"8",opacity:"0.9",class:"dss-flag-line",onMouseover:l=>Se(o,l),onMouseleave:Ve},null,40,fa)):e.createCommentVNode("",!0),o.hasAuto&&o.hasManual?(e.openBlock(),e.createElementBlock("line",{key:2,x1:o.x,x2:o.x,y1:i.value.bottom,y2:i.value.top,stroke:"#047395","stroke-width":"2","stroke-dasharray":"8",opacity:"0.9",class:"dss-flag-line",onMouseover:l=>Se(o,l),onMouseleave:Ve},null,40,ya)):e.createCommentVNode("",!0)]),o.hasManual&&o.hasAuto?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:o.x+8,cy:Math.max(15,i.value.top-10),r:"14",fill:"#0dbf89",stroke:"white","stroke-width":"2",class:"flag-count-circle",onMouseover:l=>Se(o,l),onMouseleave:Ve},null,40,Ca)):e.createCommentVNode("",!0),e.createElementVNode("circle",{cx:o.x,cy:Math.max(15,i.value.top-10),r:"14",fill:o.hasManual&&o.hasAuto||o.hasManual?"#047395":"#0dbf89",stroke:"white","stroke-width":"2",class:"dss-flag-count-indicator",onMouseover:l=>Se(o,l),onMouseleave:Ve},null,40,ka),e.createElementVNode("text",{x:o.x,y:Math.max(15,i.value.top-5),"text-anchor":"middle","font-size":"12","font-weight":"bold",fill:"white",class:"dss-flag-count-text","pointer-events":"none"},e.toDisplayString(o.totalCount),9,xa)]))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",wa,[X.value==="line"?(e.openBlock(),e.createElementBlock("g",Ma,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Bo.value,(o,l)=>(e.openBlock(),e.createElementBlock("path",{key:`line-${l}`,d:o.path,stroke:o.color,"stroke-width":o.isHighlighted?ge.value+2:ge.value,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),style:e.normalizeStyle({"--dss-path-length":o.pathLength,animationDelay:`${o.animationDelay}ms`})},null,14,ba))),128)),pe.value>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(So.value,(o,l)=>(e.openBlock(),e.createElementBlock("circle",{key:`point-${l}`,cx:o.x,cy:o.y,r:o.isHighlighted?pe.value+2:pe.value,fill:o.color,stroke:"white","stroke-width":"2",class:e.normalizeClass({"dss-point-highlighted":o.isHighlighted,"dss-point-dimmed":o.isDimmed,"dss-point-hidden":o.isHidden}),style:e.normalizeStyle({animationDelay:`${o.animationDelay}ms`}),onMouseover:s=>ye(o,s),onMouseleave:Ce},null,46,Ea))),128)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),X.value==="area"?(e.openBlock(),e.createElementBlock("g",Ba,[e.createElementVNode("defs",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ue.value,(o,l)=>(e.openBlock(),e.createElementBlock("mask",{key:`mask-${l}`,id:`area-mask-${l}-${oe.chartId}`},[e.createElementVNode("rect",{x:i.value.left-10,y:i.value.top-10,width:i.value.width+20,height:i.value.height+20,fill:"white",class:"dss-area-mask-rect",style:e.normalizeStyle({"--dss-mask-width":`${i.value.width+20}px`})},null,12,Va)],8,Sa))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ue.value,(o,l)=>(e.openBlock(),e.createElementBlock("path",{key:`area-fill-${l}`,d:o.areaPath,fill:o.color,"fill-opacity":o.isHighlighted?tt.value+.2:tt.value,mask:`url(#area-mask-${l}-${oe.chartId})`,class:e.normalizeClass({"dss-area-fill-smooth":!0,"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden})},null,10,_a))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ue.value,(o,l)=>(e.openBlock(),e.createElementBlock("path",{key:`area-line-${l}`,d:o.linePath,stroke:o.color,"stroke-width":o.isHighlighted?ge.value+1:ge.value,fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass({"dss-area-line-animated":!0,"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),style:e.normalizeStyle({"--dss-path-length":o.pathLength,animationDelay:`${l*me.value}ms`})},null,14,$a))),128))])):e.createCommentVNode("",!0),X.value==="bar"?(e.openBlock(),e.createElementBlock("g",Da,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Vo.value,(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`bar-${l}`},[o.isSmooth?(e.openBlock(),e.createElementBlock("path",{key:0,d:o.barPath,fill:o.color,stroke:"white","stroke-width":"1",class:e.normalizeClass({"dss-bar-highlighted":o.isHighlighted,"dss-bar-dimmed":o.isDimmed,"dss-bar-hidden":o.isHidden}),style:e.normalizeStyle({animationDelay:`${o.animationDelay}ms`}),onMouseover:s=>ye(o,s),onMouseleave:Ce},null,46,La)):(e.openBlock(),e.createElementBlock("rect",{key:1,x:o.x,y:o.y,width:o.width,height:o.height,fill:o.color,stroke:"white","stroke-width":"1",class:e.normalizeClass({"dss-bar-highlighted":o.isHighlighted,"dss-bar-dimmed":o.isDimmed,"dss-bar-hidden":o.isHidden}),style:e.normalizeStyle({animationDelay:`${o.animationDelay}ms`}),onMouseover:s=>ye(o,s),onMouseleave:Ce},null,46,Na))],64))),128))])):e.createCommentVNode("",!0)]),ue.value&&B.value.show&&!u.value.isZooming?(e.openBlock(),e.createElementBlock("g",Aa,[e.createElementVNode("line",{x1:B.value.x,x2:B.value.x,y1:i.value.top,y2:i.value.bottom,stroke:Lt.value,"stroke-width":"1","stroke-dasharray":"4,4",opacity:"0.8"},null,8,za),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value.data,(o,l)=>(e.openBlock(),e.createElementBlock("circle",{key:`dss-crosshair-point-${l}`,cx:B.value.x,cy:o.y,r:pe.value+2,fill:o.color,stroke:"white","stroke-width":"2",opacity:"0.9"},null,8,Ha))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),be.value?(e.openBlock(),e.createElementBlock("g",Fa,[X.value==="radial"?(e.openBlock(),e.createElementBlock("circle",{key:0,cx:F.value,cy:I.value,r:S.value,fill:"none",stroke:"#e0e0e0","stroke-width":"1"},null,8,Ia)):e.createCommentVNode("",!0),e.createElementVNode("g",{class:"dss-radial-data","data-chart-type":X.value},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(xt.value,(o,l)=>(e.openBlock(),e.createElementBlock("path",{key:`radial-${l}`,d:o.path,fill:o.color,"fill-opacity":o.isHighlighted?(o.opacity||.8)+.2:o.opacity||.8,stroke:o.color,"stroke-width":o.isHighlighted?2:1,class:e.normalizeClass({"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),onMouseover:s=>ye(o,s),onMouseleave:Ce},null,42,Ta))),128))],8,Xa),ct.value?(e.openBlock(),e.createElementBlock("g",Pa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_o.value,(o,l)=>(e.openBlock(),e.createElementBlock("g",{key:`radial-label-${l}`,class:e.normalizeClass({"dss-label-highlighted":o.isHighlighted,"dss-label-dimmed":o.isDimmed})},[e.createElementVNode("line",{x1:o.pointerStartX,y1:o.pointerStartY,x2:o.pointerEndX,y2:o.pointerEndY,stroke:o.color,"stroke-width":"1.5",opacity:"0.8",style:e.normalizeStyle({animationDelay:`${l*100}ms`})},null,12,Ra),e.createElementVNode("line",{x1:o.pointerEndX,y1:o.pointerEndY,x2:o.horizontalEndX,y2:o.horizontalEndY,stroke:o.color,"stroke-width":"1.5",opacity:"0.8",style:e.normalizeStyle({animationDelay:`${l*120}ms`})},null,12,Ya),e.createElementVNode("text",{x:o.textX,y:o.textY,"text-anchor":o.textAnchor,"font-size":Wt.value,"dominant-baseline":"middle",style:e.normalizeStyle({animationDelay:`${l*150}ms`})},e.toDisplayString(o.text),13,Oa)],2))),128))])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),We.value?(e.openBlock(),e.createElementBlock("g",Za,[et.value?(e.openBlock(),e.createElementBlock("g",ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Do.value,(o,l)=>(e.openBlock(),e.createElementBlock("polygon",{key:`spider-grid-${l}`,points:o.points,fill:"none",stroke:"#f0f0f0","stroke-width":"1",style:e.normalizeStyle({animationDelay:`${l*150}ms`})},null,12,Wa))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(wt.value,(o,l)=>(e.openBlock(),e.createElementBlock("line",{key:`spider-axis-${l}`,x1:F.value,x2:o.x,y1:I.value,y2:o.y,stroke:"#e0e0e0","stroke-width":"1",style:e.normalizeStyle({animationDelay:`${l*100}ms`})},null,12,Ua))),128))])):e.createCommentVNode("",!0),e.createElementVNode("g",qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Lo.value,(o,l)=>(e.openBlock(),e.createElementBlock("text",{key:`spider-label-${l}`,x:o.x,y:o.y,"text-anchor":o.anchor,"dominant-baseline":o.baseline,"font-size":"12",fill:"#666","font-weight":"500",style:e.normalizeStyle({animationDelay:`${l*120}ms`})},e.toDisplayString(o.text),13,Ka))),128))]),e.createElementVNode("g",Qa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(No.value,(o,l)=>(e.openBlock(),e.createElementBlock("g",{key:`spider-${l}`},[e.createElementVNode("polygon",{points:o.points,fill:o.color,"fill-opacity":o.isHighlighted?(o.fillOpacity||.1)+.15:o.fillOpacity||.1,stroke:o.color,"stroke-width":o.isHighlighted?ge.value+1:ge.value,"stroke-linejoin":"round",class:e.normalizeClass({"dss-series-highlighted":o.isHighlighted,"dss-series-dimmed":o.isDimmed,"dss-series-hidden":o.isHidden}),style:e.normalizeStyle({animationDelay:`${l*me.value}ms`}),onMouseover:s=>ye(o,s),onMouseleave:Ce},null,46,Ga),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.dataPoints,(s,n)=>(e.openBlock(),e.createElementBlock("circle",{key:`spider-point-${l}-${n}`,cx:s.x,cy:s.y,r:o.isHighlighted?pe.value+1:pe.value,fill:o.color,stroke:"white","stroke-width":"2",class:e.normalizeClass({"dss-point-highlighted":o.isHighlighted,"dss-point-dimmed":o.isDimmed,"dss-point-hidden":o.isHidden}),style:e.normalizeStyle({animationDelay:`${l*me.value+n*50}ms`}),onMouseover:r=>ye(s,r),onMouseleave:Ce},null,46,Ja))),128))]))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("g",el,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ze.value,(o,l)=>(e.openBlock(),e.createElementBlock("circle",{key:`logo-fallback-${l}`,cx:o.x,cy:o.y,r:o.width/2,fill:O(o.seriesIndex),stroke:"white","stroke-width":"2",class:e.normalizeClass(`logo-fallback-${l}`),style:e.normalizeStyle({animationDelay:`${l*200}ms`})},null,14,tl))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ze.value,(o,l)=>(e.openBlock(),e.createElementBlock("image",{key:`logo-${l}`,x:o.x-o.width/2,y:o.y-o.height/2,width:o.width,height:o.height,"xlink:href":o.url,onLoad:s=>Ao(l),onError:s=>zo(l),class:e.normalizeClass(`dss-logo-image-${l}`),"clip-path":`circle(${o.width/2}px at ${o.width/2}px ${o.height/2}px)`,style:e.normalizeStyle({animationDelay:`${l*200}ms`})},null,46,ol))),128))])],8,ea)),Xe.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dss-chart-watermark",style:e.normalizeStyle({position:"absolute",top:"0px",left:"0px",width:q.value+"px",height:ae.value+"px",backgroundImage:`url('${it.value}')`,backgroundRepeat:"no-repeat",...Ot.value,opacity:Te.value,pointerEvents:"none",zIndex:10})},null,4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Rt.value,(o,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:"marker-"+o.id,class:"dss-chart-marker",style:e.normalizeStyle({position:"absolute",left:o.x+"px",top:o.y+"px",width:st.value+"px",height:st.value+"px",transform:"translate(-50%, -50%)",cursor:"pointer",zIndex:500,backgroundColor:"#fff",borderRadius:"50%",border:"2px solid #ddd",pointerEvents:rt.value?"auto":"none"}),onClick:e.withModifiers(s=>co(o),["stop"]),onWheel:a[0]||(a[0]=e.withModifiers(()=>{},["prevent","stop"])),title:o.title+(o.description?": "+o.description:"")},[e.createElementVNode("img",{src:mt(o),class:"dss-marker-icon",alt:"Marker Icon",style:{width:"100%",height:"100%",objectFit:"contain",borderRadius:"50%",pointerEvents:"none"},onError:s=>mo(s,o),draggable:"false"},null,40,ll)],44,al)),[[e.vShow,rt.value]])),128)),P.value.show||ue.value&&B.value.show&&!u.value.isZooming?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["dss-chart-tooltip",{"dss-crosshair-tooltip":ue.value&&B.value.show&&!u.value.isZooming}]),style:e.normalizeStyle(Fo.value)},[!ue.value||!B.value.show||u.value.isZooming?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",nl,[e.createElementVNode("div",sl,e.toDisplayString(P.value.title),1),e.createElementVNode("div",rl,e.toDisplayString(P.value.value),1)]),P.value.categoryIndex!==void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[ne(P.value.categoryIndex).flagGroups.length>0?(e.openBlock(),e.createElementBlock("div",il,[a[7]||(a[7]=e.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),e.createElementVNode("div",cl,e.toDisplayString(e.unref(k)("chart.tooltip.flags")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne(P.value.categoryIndex).flagGroups,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:`tooltip-flag-group-${l}`},[e.createElementVNode("div",ul,[e.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:e.normalizeStyle({backgroundColor:o.color})},null,4),e.createElementVNode("span",null,e.toDisplayString(o.type),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.flags,(s,n)=>(e.openBlock(),e.createElementBlock("div",{key:`tooltip-flag-${l}-${n}`,class:"dss-tooltip-item dss-tooltip-item-no-indicator"},[e.createElementVNode("div",dl,[e.createElementVNode("div",ml,e.toDisplayString(s.text),1)])]))),128))]))),128))])):e.createCommentVNode("",!0),ne(P.value.categoryIndex).markers.length>0?(e.openBlock(),e.createElementBlock("div",hl,[a[8]||(a[8]=e.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),e.createElementVNode("div",vl,e.toDisplayString(e.unref(k)("chart.tooltip.markers")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne(P.value.categoryIndex).markers,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:`tooltip-marker-${l}`,class:"dss-tooltip-item"},[e.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:e.normalizeStyle({backgroundColor:o.color})},null,4),e.createElementVNode("div",gl,[e.createElementVNode("div",pl,e.toDisplayString(o.title),1),o.description?(e.openBlock(),e.createElementBlock("div",fl,e.toDisplayString(o.description),1)):e.createCommentVNode("",!0)])]))),128))])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",yl,[e.createElementVNode("div",Cl,e.toDisplayString(oe.categories[B.value.categoryIndex]||`Category ${B.value.categoryIndex+1}`),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(B.value.data,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:`crosshair-tooltip-${l}`,class:"dss-tooltip-series"},[e.createElementVNode("div",{class:"dss-tooltip-series-indicator",style:e.normalizeStyle({backgroundColor:o.color})},null,4),e.createElementVNode("span",kl,e.toDisplayString(o.seriesName)+":",1),e.createElementVNode("span",xl,e.toDisplayString(o.value),1)]))),128))]),ne(B.value.categoryIndex).flagGroups.length>0?(e.openBlock(),e.createElementBlock("div",wl,[a[9]||(a[9]=e.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),e.createElementVNode("div",Ml,e.toDisplayString(e.unref(k)("chart.tooltip.flags")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne(B.value.categoryIndex).flagGroups,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:`crosshair-flag-group-${l}`},[e.createElementVNode("div",bl,[e.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:e.normalizeStyle({backgroundColor:o.color})},null,4),e.createElementVNode("span",null,e.toDisplayString(o.type),1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.flags,(s,n)=>(e.openBlock(),e.createElementBlock("div",{key:`crosshair-flag-${l}-${n}`,class:"dss-tooltip-item dss-tooltip-item-no-indicator"},[e.createElementVNode("div",El,[e.createElementVNode("div",Bl,e.toDisplayString(s.text),1)])]))),128))]))),128))])):e.createCommentVNode("",!0),ne(B.value.categoryIndex).markers.length>0?(e.openBlock(),e.createElementBlock("div",Sl,[a[10]||(a[10]=e.createElementVNode("div",{class:"dss-tooltip-separator"},null,-1)),e.createElementVNode("div",Vl,e.toDisplayString(e.unref(k)("chart.tooltip.dss-markers")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ne(B.value.categoryIndex).markers,(o,l)=>(e.openBlock(),e.createElementBlock("div",{key:`crosshair-dss-marker-${l}`,class:"dss-tooltip-item"},[e.createElementVNode("div",{class:"dss-tooltip-item-indicator",style:e.normalizeStyle({backgroundColor:o.color})},null,4),e.createElementVNode("div",_l,[e.createElementVNode("div",$l,e.toDisplayString(o.title),1),o.description?(e.openBlock(),e.createElementBlock("div",Dl,e.toDisplayString(o.description),1)):e.createCommentVNode("",!0)])]))),128))])):e.createCommentVNode("",!0)],64))],6)):e.createCommentVNode("",!0),j.value&&ve.value&&u.value.scale>1?(e.openBlock(),e.createElementBlock("div",{key:2,class:"dss-zoom-indicator",onClick:Ze},[a[11]||(a[11]=e.createElementVNode("span",{style:{display:"inline-block",transform:"scaleX(-1)","font-size":"14px"}},"⌕",-1)),e.createTextVNode(" "+e.toDisplayString(Math.round(u.value.scale*100))+"% "+e.toDisplayString(e.unref(k)("chart.zoom.doubleClickToReset")),1)])):e.createCommentVNode("",!0)],46,jo),R.value.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dss-chart-context-menu",style:e.normalizeStyle({left:R.value.x+"px",top:R.value.y+"px"}),onClick:a[1]||(a[1]=e.withModifiers(()=>{},["stop"]))},[G.value.addMarker?(e.openBlock(),e.createElementBlock("div",{key:0,class:"dss-context-menu-item",onClick:ko},e.toDisplayString(e.unref(k)("chart.contextMenu.addMarker")),1)):e.createCommentVNode("",!0),H.value.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:"dss-context-menu-item",onClick:uo},e.toDisplayString(e.unref(k)("chart.contextMenu.clearAllMarkers")),1)):e.createCommentVNode("",!0),G.value.addMarker&&(G.value.downloadSvg||G.value.downloadPng||G.value.downloadCsv||Ie.value.length>0)?(e.openBlock(),e.createElementBlock("div",Ll)):e.createCommentVNode("",!0),G.value.downloadSvg?(e.openBlock(),e.createElementBlock("div",{key:3,class:"dss-context-menu-item",onClick:po},e.toDisplayString(e.unref(k)("chart.contextMenu.downloadSvg")),1)):e.createCommentVNode("",!0),G.value.downloadPng?(e.openBlock(),e.createElementBlock("div",{key:4,class:"dss-context-menu-item",onClick:fo},e.toDisplayString(e.unref(k)("chart.contextMenu.downloadPng")),1)):e.createCommentVNode("",!0),G.value.downloadCsv?(e.openBlock(),e.createElementBlock("div",{key:5,class:"dss-context-menu-item",onClick:yo},e.toDisplayString(e.unref(k)("chart.contextMenu.downloadCsv")),1)):e.createCommentVNode("",!0),Ie.value.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:6},[G.value.downloadSvg||G.value.downloadPng||G.value.downloadCsv?(e.openBlock(),e.createElementBlock("div",Nl)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Ie.value,(o,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:"custom-"+l},[o.separator?(e.openBlock(),e.createElementBlock("div",Al)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(ao(o)),style:e.normalizeStyle(lo(o)),onClick:s=>Co(o)},[o.template?(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:oo(o),class:"dss-custom-menu-content"},null,8,Hl)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.icon?(e.openBlock(),e.createElementBlock("span",Fl,e.toDisplayString(o.icon),1)):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(o.label),1)],64))],14,zl)],64))),128))],64)):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),x.value.show?(e.openBlock(),e.createElementBlock("div",{key:1,class:"dss-marker-modal-overlay",onClick:fe},[e.createElementVNode("div",{class:"dss-marker-modal",onClick:a[6]||(a[6]=e.withModifiers(()=>{},["stop"]))},[e.createElementVNode("div",Il,[e.createElementVNode("h3",null,e.toDisplayString(Me.value?e.unref(k)("chart.modalMarker.editMarker"):e.unref(k)("chart.contextMenu.addMarker")),1),e.createElementVNode("button",{class:"dss-modal-close-btn",onClick:fe},"×")]),e.createElementVNode("div",Xl,[e.createElementVNode("div",Tl,[e.createElementVNode("label",Pl,[e.createTextVNode(e.toDisplayString(e.unref(k)("chart.modalMarker.title"))+" ",1),a[12]||(a[12]=e.createElementVNode("span",{style:{color:"hsl(345, 94%, 44%)"}},"*",-1))]),e.withDirectives(e.createElementVNode("input",{id:"dss-marker-title","onUpdate:modelValue":a[2]||(a[2]=o=>x.value.title=o),type:"text",placeholder:e.unref(k)("chart.modalMarker.placeholderTitle"),class:"dss-form-input",onKeyup:e.withKeys(vt,["enter"])},null,40,Rl),[[e.vModelText,x.value.title]])]),e.createElementVNode("div",Yl,[e.createElementVNode("label",Ol,e.toDisplayString(e.unref(k)("chart.modalMarker.description")),1),e.withDirectives(e.createElementVNode("textarea",{id:"dss-marker-description","onUpdate:modelValue":a[3]||(a[3]=o=>x.value.description=o),placeholder:e.unref(k)("chart.modalMarker.placeholderDescription"),class:"dss-form-textarea",rows:"3"},null,8,Zl),[[e.vModelText,x.value.description]])]),dt.value.length>1?(e.openBlock(),e.createElementBlock("div",jl,[e.createElementVNode("label",Wl,e.toDisplayString(e.unref(k)("chart.modalMarker.iconType")),1),e.withDirectives(e.createElementVNode("select",{id:"dss-marker-type","onUpdate:modelValue":a[4]||(a[4]=o=>x.value.type=o),class:"form-select"},[e.createElementVNode("option",Ul,e.toDisplayString(e.unref(k)("chart.modalMarker.defaultIcon")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(dt.value.filter(o=>o!=="default"),o=>(e.openBlock(),e.createElementBlock("option",{key:o,value:o},e.toDisplayString(o.charAt(0).toUpperCase()+o.slice(1)),9,ql))),128))],512),[[e.vModelSelect,x.value.type]])])):e.createCommentVNode("",!0),e.createElementVNode("div",Kl,[e.createElementVNode("label",null,e.toDisplayString(e.unref(k)("chart.modalMarker.iconPreview")),1),e.createElementVNode("div",Ql,[e.createElementVNode("img",{src:mt({type:x.value.type}),alt:"Marker Icon Preview",class:"preview-icon",style:{width:"32px",height:"32px","border-radius":"50%",border:"2px solid #ddd"},onError:a[5]||(a[5]=o=>o.target.style.display="none")},null,40,Gl)])])]),e.createElementVNode("div",Jl,[e.createElementVNode("div",en,[Me.value?(e.openBlock(),e.createElementBlock("button",{key:0,class:"dss-btn dss-btn-danger",onClick:ro},e.toDisplayString(e.unref(k)("chart.modalMarker.deleteMarker")),1)):e.createCommentVNode("",!0)]),e.createElementVNode("div",tn,[e.createElementVNode("button",{class:"dss-btn dss-btn-secondary",onClick:fe},e.toDisplayString(e.unref(k)("chart.modalMarker.cancel")),1),e.createElementVNode("button",{class:"dss-btn dss-btn-primary",onClick:vt,disabled:!x.value.title.trim()},e.toDisplayString(Me.value?e.unref(k)("chart.modalMarker.save"):e.unref(k)("chart.contextMenu.addMarker")),9,on)])])])])):e.createCommentVNode("",!0)],64))}}),nn={contextMenu:{addMarker:"Add Marker",clearAllMarkers:"Clear All Markers",downloadSvg:"Download SVG",downloadPng:"Download PNG",downloadCsv:"Download CSV"},modalMarker:{editMarker:"Edit Marker",title:"Title",description:"Description",iconType:"Icon Type",defaultIcon:"Default Logo",iconPreview:"Icon Preview",deleteMarker:"Delete Marker",cancel:"Cancel",save:"Save",placeholderTitle:"Enter marker title",placeholderDescription:"Enter marker description (optional)"},zoom:{doubleClickToReset:"(Double-click to reset)"},csv:{chartTitle:"Chart Title",chartSubtitle:"Chart Subtitle",generated:"Generated"},fallback:{item:"Item",axis:"Axis"},tooltip:{flags:"Flags",markers:"Markers",manualFlags:"Manual Flags",autoFlags:"Auto Flags"}},sn={chart:nn},rn={contextMenu:{addMarker:"Ajouter un marqueur",clearAllMarkers:"Effacer tous les marqueurs",downloadSvg:"Télécharger SVG",downloadPng:"Télécharger PNG",downloadCsv:"Télécharger CSV"},modalMarker:{editMarker:"Modifier le marqueur",title:"Titre",description:"Description",iconType:"Type d'icône",defaultIcon:"Logo par défaut",iconPreview:"Prévisualisation de l'icône",deleteMarker:"Suprimer le marqueur",cancel:"Annuler",save:"Sauvegarder",placeholderTitle:"Entrez le titre du marqueur",placeholderDescription:"Entrez la description du marqueur (optionnel)"},zoom:{doubleClickToReset:"(Double-cliquez pour réinitialiser)"},csv:{chartTitle:"Titre du graphique",chartSubtitle:"Sous-titre du graphique",generated:"Généré"},fallback:{item:"Objet",axis:"Axe"},tooltip:{flags:"Drapeaux",markers:"Marqueurs",manualFlags:"Drapeaux manuels",autoFlags:"Drapeaux automatiques"}},cn={chart:rn},un={contextMenu:{addMarker:"Markering toevoegen",clearAllMarkers:"Wis alle markers",downloadSvg:"SVG downloaden",downloadPng:"PNG downloaden",downloadCsv:"CSV downloaden"},modalMarker:{editMarker:"Markering bewerken",title:"Titel",description:"Beschrijving",iconType:"Icoon Type",defaultIcon:"Standaard Logo",iconPreview:"Icoon Voorbeeld",deleteMarker:"Markering verwijderen",cancel:"Annuleren",save:"Opslaan",placeholderTitle:"Voer marker titel in",placeholderDescription:"Voer marker beschrijving in (optioneel)"},zoom:{doubleClickToReset:"(Dubbelklik om te resetten)"},csv:{chartTitle:"Grafiek Titel",chartSubtitle:"Grafiek Ondertitel",generated:"Gegenereerd"},fallback:{item:"Item",axis:"As"},tooltip:{flags:"Vlaggen",markers:"Markeringen",manualFlags:"Handmatige Vlaggen",autoFlags:"Automatische Vlaggen"}},dn={chart:un},qe={en:sn,fr:cn,nl:dn};function mn(oe){Object.keys(qe).forEach(k=>{oe.global.mergeLocaleMessage(k,qe[k])})}Vt.createI18n({legacy:!1,locale:"en",messages:qe});exports.DSSChart=ln;exports.addDSSChartTranslations=mn;
|