vue-data-ui 0.1.4 → 0.1.5

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.
@@ -1,4 +1,4 @@
1
- import { _ as Ha } from "./index-c336668e.js";
1
+ import { _ as Ha } from "./index-622efabd.js";
2
2
  import "vue";
3
3
  var Tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Vo(a) {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .vue-ui-xy *[data-v-ade50da0]{transition:unset}.vue-ui-xy[data-v-ade50da0]{position:relative}.vue-ui-xy-user-options[data-v-ade50da0]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;max-width:300px}.vue-ui-xy-user-options[open][data-v-ade50da0]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-xy-user-options summary[data-v-ade50da0]{text-align:right;direction:rtl}.vue-ui-xy-user-options-items[data-v-ade50da0]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-xy-user-options-item[data-v-ade50da0]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-xy-legend[data-v-ade50da0]{align-items:center;column-gap:24px;display:flex;flex-wrap:wrap;justify-content:center;-webkit-user-select:none;user-select:none;width:100%}.vue-ui-xy-legend-item[data-v-ade50da0]{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}.vue-ui-xy-legend-item-segregated[data-v-ade50da0]{opacity:.5}.vue-ui-xy-title[data-v-ade50da0]{align-items:center;display:flex;flex-direction:column;justify-content:center;width:100%}.vue-ui-xy svg rect[data-v-ade50da0]{transition:all .11s ease-in-out}.vue-ui-xy-tooltip[data-v-ade50da0]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;z-index:1}.vue-ui-xy-table-wrapper[data-v-ade50da0]{width:100%;max-height:300px;overflow:auto;margin-top:24px;position:relative}.vue-ui-xy-table-wrapper-printing[data-v-ade50da0]{max-height:unset;height:fit-content}.vue-ui-xy-table[data-v-ade50da0]{width:100%;border-collapse:collapse}.vue-ui-xy-table td[data-v-ade50da0]{border:1px solid #e1e5e8;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-xy-table thead[data-v-ade50da0]{border:1px solid #e1e5e8;background:#fafafa;position:sticky;top:0;font-weight:400;outline:1px solid #e1e5e8;-webkit-user-select:none;user-select:none}.vue-ui-xy-table-tr-selected[data-v-ade50da0]{background:#e1e5e8}.vue-ui-xy-button[data-v-ade50da0]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-xy-button[data-v-ade50da0]:hover{background:rgba(0,0,0,.05)}.vue-ui-xy-print-icon[data-v-ade50da0]{animation:smartspin-ade50da0 .5s infinite linear}@keyframes smartspin-ade50da0{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-table-main[data-v-80d709a0]{height:fit-content;padding:0 0 98px;position:relative}.vue-ui-table__wrapper[data-v-80d709a0]{overflow-x:auto;padding:0 12px 48px;position:relative;width:calc(100% - 24px)}.vue-ui-table-main thead[data-v-80d709a0]{position:sticky;top:0}.vue-ui-table[data-v-80d709a0]{width:100%;position:relative}.vue-ui-table-main table[data-v-80d709a0]{border-collapse:collapse}.vue-ui-table-main th[data-v-80d709a0],.vue-ui-table-main td[data-v-80d709a0]{padding:3px 8px}.vue-ui-table-main tr td[data-v-80d709a0]{outline:1px solid white}.vue-ui-table-main .th-numeric[data-v-80d709a0]{text-align:right;font-variant-numeric:tabular-nums}.vue-ui-table-main .th-filter[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;position:relative}.vue-ui-table-main button[data-v-80d709a0]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}.vue-ui-table-main input[data-v-80d709a0]{padding:0 6px;font-family:Satoshi}.vue-ui-table-main button[data-v-80d709a0],.vue-ui-table-main input[data-v-80d709a0]{border-radius:6px;height:32px}.vue-ui-table-main button[data-v-80d709a0]{border:1px solid grey}.vue-ui-table-main button[data-v-80d709a0]:hover,.vue-ui-table-main button[data-v-80d709a0]:focus,.vue-ui-table-main input[data-v-80d709a0]:hover,.vue-ui-table-main input[data-v-80d709a0]:focus{outline:3px solid rgba(128,128,128,.432)}.vue-ui-table-main button.clicked[data-v-80d709a0]{animation:clicked-80d709a0 .15s ease-in-out}.vue-ui-table-main button[disabled][data-v-80d709a0]{cursor:not-allowed}.vue-ui-table-main button[disabled][data-v-80d709a0]:focus,.vue-ui-table-main button[disabled][data-v-80d709a0]:hover{outline:none}button.th-reset[data-v-80d709a0]:not(:disabled){background:radial-gradient(at top,#f19a71,#F17171);border:1px solid #F17171;color:#fff}.vue-ui-table-main button.th-reset[data-v-80d709a0]:not(:disabled):hover,.vue-ui-table-main button.th-reset[data-v-80d709a0]:not(:disabled):focus{outline:3px solid #f171717e}.vue-ui-table-main [data-is-open=false][data-v-80d709a0]{transform:scale(0)}.vue-ui-table-main .th-dropdown[data-is-open=true][data-v-80d709a0]{animation:open-dropdown-80d709a0 .2s ease-in}.vue-ui-table-main .th-dropdown[data-is-open=false][data-v-80d709a0]{animation:close-dropdown-80d709a0 .2s ease-in}.vue-ui-table-main .th-dropdown[data-v-80d709a0]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;display:flex;flex-direction:column;justify-content:flex-start;left:0;max-width:300px;min-width:150px;padding:24px 12px 12px;position:absolute;top:calc(100% + 12px)}.vue-ui-table-main .th-option[data-v-80d709a0]{border-radius:6px;cursor:pointer;padding:2px 6px;text-align:left;-webkit-user-select:none;user-select:none;width:100%;font-weight:400}.vue-ui-table-main .th-option[data-v-80d709a0]:hover{background-color:#ffffff1a;box-shadow:0 3px 6px -3px #00000080;z-index:1}.vue-ui-table-main button.close-dropdown[data-v-80d709a0],.vue-ui-table-main button.close-chart-modal[data-v-80d709a0]{align-items:center;border-radius:50%;border:none;display:flex;height:20px;padding:2px;position:absolute;right:6px;top:6px;width:20px}.vue-ui-table-main button.close-dropdown[data-v-80d709a0]:hover,.vue-ui-table-main button.close-dropdown[data-v-80d709a0]:focus,.vue-ui-table-main button.close-chart-modal[data-v-80d709a0]:hover,.vue-ui-table-main button.close-char-modal[data-v-80d709a0]:focus{outline:3px solid #2d353c71}.vue-ui-table-main .th-button-active[data-v-80d709a0]{background:radial-gradient(at top,#968bf1,#6376DD);color:#fff}.vue-ui-table-main .th-button-active[data-v-80d709a0]:hover,.vue-ui-table-main .th-button-active[data-v-80d709a0]:focus{outline:3px solid #6375dd7a}.vue-ui-table-main .th-date[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--inputs[data-v-80d709a0]{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--button[data-v-80d709a0]{display:flex;gap:3px}.vue-ui-table-main input[type=date][data-v-80d709a0]{border-radius:4px;font-size:12px;font-variant-numeric:tabular-nums;height:20px!important;width:100px}.vue-ui-table-main .date-fieldset[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-fieldset label[data-v-80d709a0]{font-size:12px;font-weight:400}@keyframes clicked-80d709a0{0%{transform:scale(.9)}90%{transform:scale(1.03)}to{transform:scale(1)}}.vue-ui-table-main td.td-numeric[data-v-80d709a0]{cursor:pointer}.vue-ui-table-main .td-selector-info[data-v-80d709a0]{align-items:center;border-radius:0 0 6px 6px;bottom:76px;display:flex;font-size:14px;justify-content:flex-end;min-height:20px;padding:2px 4px 2px 2px;position:absolute;right:0;text-align:right;width:100%;z-index:1}.vue-ui-table-main button.td-selector-info-reset[data-v-80d709a0]{background:transparent;border:none;color:#f17171;height:14px;margin-left:24px;padding:0;width:14px}.vue-ui-table-main button.td-selector-info-reset[data-v-80d709a0]:hover,.vue-ui-table-main button.td-selector-info-reset[data-v-80d709a0]:focus{outline:3px solid #f171717e}.vue-ui-table-main .format-num[data-v-80d709a0]{font-variant-numeric:tabular-nums}.vue-ui-table-main .td-selector-icon[data-v-80d709a0]{margin-bottom:-5px;margin-right:6px}.vue-ui-table-main .vue-ui-table-pagination[data-v-80d709a0]{align-items:center;bottom:24px;display:flex;flex-direction:row;gap:12px;height:40px;justify-content:center;position:absolute;width:100%;z-index:1}.vue-ui-table-main button.vue-ui-table-navigation[data-v-80d709a0]{height:36px;padding:1px;width:36px}.vue-ui-table-main .vue-ui-table-navigation-indicator[data-v-80d709a0]{border-radius:6px;bottom:70px;height:6px;position:absolute;transition:all .1s ease-in-out}.vue-ui-table-main .vue-ui-table-page-scroller-wrapper[data-v-80d709a0]{align-items:center;display:flex;flex-direction:column;justify-content:center}.vue-ui-table-main input.vue-ui-table-page-scroller[data-v-80d709a0]{cursor:pointer;height:24px;padding:0}.vue-ui-table-main .vue-ui-table-paginator[data-v-80d709a0]{position:absolute;bottom:0;z-index:2;left:12px;display:flex;flex-direction:row;gap:6px;font-size:14px;justify-content:center;align-items:center;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-paginator select[data-v-80d709a0]{border-radius:3px}.vue-ui-table-main .vue-ui-table-size-warning[data-v-80d709a0]{align-items:center;bottom:-24px;color:#f17171;display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:6px;justify-content:center;position:absolute;text-align:center;width:100%}.vue-ui-table-main th.vue-ui-table-col-selector[data-v-80d709a0]{height:12px}.vue-ui-table-main .col-selector[data-v-80d709a0]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;width:100%}.vue-ui-table-main th.col-selector--selected[data-v-80d709a0]{background:radial-gradient(at top left,#9586eb,#6376DD);color:#fff}.vue-ui-table-main th.col-selector--selected div[data-v-80d709a0]{background:transparent;color:#fff}.vue-ui-table-main .vue-ui-table-chart-modal[data-v-80d709a0]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #0000004d;display:flex;flex-direction:column;justify-content:center;min-height:200px;min-width:300px;max-width:800px;overflow:hidden;padding:12px;position:fixed;resize:horizontal;-webkit-user-select:none;user-select:none;z-index:10000}.vue-ui-table-main .vue-ui-table-chart-svg[data-v-80d709a0]{border-radius:6px;margin-bottom:12px;overflow:visible;padding:12px;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-donut-chart[data-v-80d709a0]{border-radius:6px}.vue-ui-table-main td.vue-ui-table-td-iteration[data-v-80d709a0]{font-size:12px;font-variant-numeric:tabular-nums;text-align:right;-webkit-user-select:none;user-select:none}.vue-ui-table-main .chart-trend[data-v-80d709a0]{font-size:12px;padding-left:12px}.vue-ui-table-main .chart-modal-options[data-v-80d709a0]{bottom:12px;display:flex;flex-direction:row;gap:8px;position:absolute;right:24px}.vue-ui-table-main .chart-modal-options button[data-v-80d709a0]{height:24px;padding:3px;width:24px}.vue-ui-table-main .th-range-filter[data-v-80d709a0]{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column}.vue-ui-table-main .th-range-filter input[data-v-80d709a0]{height:20px;width:60px;font-variant-numeric:tabular-nums;font-size:12px}.vue-ui-table-main .th-range-filter label[data-v-80d709a0]{font-size:12px;font-weight:400;margin-bottom:-3px}.vue-ui-table-main .vue-ui-table-fieldset-wrapper[data-v-80d709a0]{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px;margin-bottom:12px}.vue-ui-table-main .vue-ui-table-fieldset[data-v-80d709a0]{border-radius:6px;margin-bottom:24px;border:1px solid white}.vue-ui-table-main .vue-ui-table-fieldset legend[data-v-80d709a0]{color:gray}.vue-ui-table-main .vue-ui-table-fieldset-option[data-v-80d709a0]{display:flex;align-items:center}.vue-ui-table-main .vue-ui-table-fieldset-option input[data-v-80d709a0]{height:14px;width:14px;border-radius:50%}.vue-ui-table-main button.vue-ui-table-generate-donut[data-v-80d709a0]{align-items:center;display:flex;gap:3px;justify-content:center;margin:24px auto 12px;padding-left:12px;padding-right:12px;width:fit-content}.vue-ui-table-main button.vue-ui-table-generate-donut[disabled][data-v-80d709a0]{opacity:.5}.vue-ui-table-main .vue-ui-table-donut-legend[data-v-80d709a0]{align-items:center;column-gap:12px;display:flex;flex-wrap:wrap;font-size:12px;justify-content:center;margin:0 auto;max-width:400px;padding-bottom:36px}.vue-ui-table-main .vue-ui-table-donut-legend-item[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:3px;justify-content:center}.vue-ui-table-main .vue-ui-table-donut-label[data-v-80d709a0]{align-items:center;display:flex;flex-direction:column;font-size:4px;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-table-main .vue-ui-table-donut-label-name[data-v-80d709a0]{font-size:3px;line-height:3px}.vue-ui-table-main td[data-v-80d709a0]:focus{outline:3px solid #202d7470}.vue-ui-table-main .vue-ui-table-export-hub[data-v-80d709a0]{left:5px;position:absolute;top:0;z-index:1001}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-v-80d709a0]{position:absolute;top:40px;left:0;padding:24px;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;transform:scale(0);opacity:0}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=true][data-v-80d709a0]{animation:open-dropdown-80d709a0 .2s ease-in forwards}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=false][data-v-80d709a0]{animation:close-dropdown-80d709a0 .2s ease-in}.vue-ui-table-main .vue-ui-table-export-hub-options[data-v-80d709a0]{margin-top:12px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}.vue-ui-table-main .vue-ui-table-export-hub-options button[data-v-80d709a0]{width:fit-content;display:flex;align-items:center;justify-content:center;gap:3px;min-width:130px}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper .label[data-v-80d709a0]{font-size:12px;line-height:12px;margin-bottom:6px;width:100px}.vue-ui-table-main .td-nan[data-v-80d709a0]{background:#F17171}.vue-ui-table-main .td-has-nan[data-v-80d709a0],.vue-ui-table-main .th-has-nan[data-v-80d709a0]{background:#F17171;min-width:100px;color:#fff}@keyframes open-dropdown-80d709a0{0%{transform:scaleY(.9);opacity:0}50%{transform:scaleY(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes close-dropdown-80d709a0{0%{transform:scale(1.05);opacity:1}to{transform:scale(0);opacity:0}}.vue-ui-donut *[data-v-6c28ce05]{transition:unset}.vue-ui-donut[data-v-6c28ce05]{-webkit-user-select:none;user-select:none;position:relative}.vue-ui-donut .vue-ui-donut-label[data-v-6c28ce05]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-donut-legend[data-v-6c28ce05]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-donut-legend-item[data-v-6c28ce05]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-donut-tooltip[data-v-6c28ce05]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-donut-user-options[data-v-6c28ce05]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-donut-user-options[open][data-v-6c28ce05]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-donut summary[data-v-6c28ce05]{text-align:right;direction:rtl}.vue-ui-donut-user-options-items[data-v-6c28ce05]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-donut-user-options-item[data-v-6c28ce05]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-donut-button[data-v-6c28ce05]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-donut-button[data-v-6c28ce05]:hover{background:rgba(0,0,0,.05)}.vue-ui-donut-print-icon[data-v-6c28ce05]{animation:smartspin-6c28ce05 .5s infinite linear}@keyframes smartspin-6c28ce05{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-donut table[data-v-6c28ce05]{width:100%;border-collapse:collapse}.vue-ui-donut table td[data-v-6c28ce05]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-donut table th[data-v-6c28ce05]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}
1
+ .vue-ui-xy *[data-v-fff5213c]{transition:unset}.vue-ui-xy[data-v-fff5213c]{position:relative}.vue-ui-xy-user-options[data-v-fff5213c]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;-webkit-user-select:none;user-select:none;max-width:300px}.vue-ui-xy-user-options[open][data-v-fff5213c]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-xy-user-options summary[data-v-fff5213c]{text-align:right;direction:rtl}.vue-ui-xy-user-options-items[data-v-fff5213c]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-xy-user-options-item[data-v-fff5213c]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-xy-legend[data-v-fff5213c]{align-items:center;column-gap:24px;display:flex;flex-wrap:wrap;justify-content:center;-webkit-user-select:none;user-select:none;width:100%}.vue-ui-xy-legend-item[data-v-fff5213c]{align-items:center;display:flex;flex-direction:row;flex-wrap:wrap;gap:5px}.vue-ui-xy-legend-item-segregated[data-v-fff5213c]{opacity:.5}.vue-ui-xy-title[data-v-fff5213c]{align-items:center;display:flex;flex-direction:column;justify-content:center;width:100%}.vue-ui-xy svg rect[data-v-fff5213c]{transition:all .11s ease-in-out}.vue-ui-xy-tooltip[data-v-fff5213c]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;z-index:1}.vue-ui-xy-table-wrapper[data-v-fff5213c]{width:100%;max-height:300px;overflow:auto;margin-top:24px;position:relative}.vue-ui-xy-table-wrapper-printing[data-v-fff5213c]{max-height:unset;height:fit-content}.vue-ui-xy-table[data-v-fff5213c]{width:100%;border-collapse:collapse}.vue-ui-xy-table td[data-v-fff5213c]{border:1px solid #e1e5e8;text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-xy-table thead[data-v-fff5213c]{border:1px solid #e1e5e8;background:#fafafa;position:sticky;top:0;font-weight:400;outline:1px solid #e1e5e8;-webkit-user-select:none;user-select:none}.vue-ui-xy-table-tr-selected[data-v-fff5213c]{background:#e1e5e8}.vue-ui-xy-button[data-v-fff5213c]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-xy-button[data-v-fff5213c]:hover{background:rgba(0,0,0,.05)}.vue-ui-xy-print-icon[data-v-fff5213c]{animation:smartspin-fff5213c .5s infinite linear}@keyframes smartspin-fff5213c{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-table-main[data-v-80d709a0]{height:fit-content;padding:0 0 98px;position:relative}.vue-ui-table__wrapper[data-v-80d709a0]{overflow-x:auto;padding:0 12px 48px;position:relative;width:calc(100% - 24px)}.vue-ui-table-main thead[data-v-80d709a0]{position:sticky;top:0}.vue-ui-table[data-v-80d709a0]{width:100%;position:relative}.vue-ui-table-main table[data-v-80d709a0]{border-collapse:collapse}.vue-ui-table-main th[data-v-80d709a0],.vue-ui-table-main td[data-v-80d709a0]{padding:3px 8px}.vue-ui-table-main tr td[data-v-80d709a0]{outline:1px solid white}.vue-ui-table-main .th-numeric[data-v-80d709a0]{text-align:right;font-variant-numeric:tabular-nums}.vue-ui-table-main .th-filter[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;position:relative}.vue-ui-table-main button[data-v-80d709a0]{align-items:center;cursor:pointer;display:flex;justify-content:center;width:32px}.vue-ui-table-main input[data-v-80d709a0]{padding:0 6px;font-family:Satoshi}.vue-ui-table-main button[data-v-80d709a0],.vue-ui-table-main input[data-v-80d709a0]{border-radius:6px;height:32px}.vue-ui-table-main button[data-v-80d709a0]{border:1px solid grey}.vue-ui-table-main button[data-v-80d709a0]:hover,.vue-ui-table-main button[data-v-80d709a0]:focus,.vue-ui-table-main input[data-v-80d709a0]:hover,.vue-ui-table-main input[data-v-80d709a0]:focus{outline:3px solid rgba(128,128,128,.432)}.vue-ui-table-main button.clicked[data-v-80d709a0]{animation:clicked-80d709a0 .15s ease-in-out}.vue-ui-table-main button[disabled][data-v-80d709a0]{cursor:not-allowed}.vue-ui-table-main button[disabled][data-v-80d709a0]:focus,.vue-ui-table-main button[disabled][data-v-80d709a0]:hover{outline:none}button.th-reset[data-v-80d709a0]:not(:disabled){background:radial-gradient(at top,#f19a71,#F17171);border:1px solid #F17171;color:#fff}.vue-ui-table-main button.th-reset[data-v-80d709a0]:not(:disabled):hover,.vue-ui-table-main button.th-reset[data-v-80d709a0]:not(:disabled):focus{outline:3px solid #f171717e}.vue-ui-table-main [data-is-open=false][data-v-80d709a0]{transform:scale(0)}.vue-ui-table-main .th-dropdown[data-is-open=true][data-v-80d709a0]{animation:open-dropdown-80d709a0 .2s ease-in}.vue-ui-table-main .th-dropdown[data-is-open=false][data-v-80d709a0]{animation:close-dropdown-80d709a0 .2s ease-in}.vue-ui-table-main .th-dropdown[data-v-80d709a0]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;display:flex;flex-direction:column;justify-content:flex-start;left:0;max-width:300px;min-width:150px;padding:24px 12px 12px;position:absolute;top:calc(100% + 12px)}.vue-ui-table-main .th-option[data-v-80d709a0]{border-radius:6px;cursor:pointer;padding:2px 6px;text-align:left;-webkit-user-select:none;user-select:none;width:100%;font-weight:400}.vue-ui-table-main .th-option[data-v-80d709a0]:hover{background-color:#ffffff1a;box-shadow:0 3px 6px -3px #00000080;z-index:1}.vue-ui-table-main button.close-dropdown[data-v-80d709a0],.vue-ui-table-main button.close-chart-modal[data-v-80d709a0]{align-items:center;border-radius:50%;border:none;display:flex;height:20px;padding:2px;position:absolute;right:6px;top:6px;width:20px}.vue-ui-table-main button.close-dropdown[data-v-80d709a0]:hover,.vue-ui-table-main button.close-dropdown[data-v-80d709a0]:focus,.vue-ui-table-main button.close-chart-modal[data-v-80d709a0]:hover,.vue-ui-table-main button.close-char-modal[data-v-80d709a0]:focus{outline:3px solid #2d353c71}.vue-ui-table-main .th-button-active[data-v-80d709a0]{background:radial-gradient(at top,#968bf1,#6376DD);color:#fff}.vue-ui-table-main .th-button-active[data-v-80d709a0]:hover,.vue-ui-table-main .th-button-active[data-v-80d709a0]:focus{outline:3px solid #6375dd7a}.vue-ui-table-main .th-date[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--inputs[data-v-80d709a0]{align-items:center;display:flex;flex-direction:column;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-wrapper--button[data-v-80d709a0]{display:flex;gap:3px}.vue-ui-table-main input[type=date][data-v-80d709a0]{border-radius:4px;font-size:12px;font-variant-numeric:tabular-nums;height:20px!important;width:100px}.vue-ui-table-main .date-fieldset[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:6px;justify-content:center;width:100%}.vue-ui-table-main .date-fieldset label[data-v-80d709a0]{font-size:12px;font-weight:400}@keyframes clicked-80d709a0{0%{transform:scale(.9)}90%{transform:scale(1.03)}to{transform:scale(1)}}.vue-ui-table-main td.td-numeric[data-v-80d709a0]{cursor:pointer}.vue-ui-table-main .td-selector-info[data-v-80d709a0]{align-items:center;border-radius:0 0 6px 6px;bottom:76px;display:flex;font-size:14px;justify-content:flex-end;min-height:20px;padding:2px 4px 2px 2px;position:absolute;right:0;text-align:right;width:100%;z-index:1}.vue-ui-table-main button.td-selector-info-reset[data-v-80d709a0]{background:transparent;border:none;color:#f17171;height:14px;margin-left:24px;padding:0;width:14px}.vue-ui-table-main button.td-selector-info-reset[data-v-80d709a0]:hover,.vue-ui-table-main button.td-selector-info-reset[data-v-80d709a0]:focus{outline:3px solid #f171717e}.vue-ui-table-main .format-num[data-v-80d709a0]{font-variant-numeric:tabular-nums}.vue-ui-table-main .td-selector-icon[data-v-80d709a0]{margin-bottom:-5px;margin-right:6px}.vue-ui-table-main .vue-ui-table-pagination[data-v-80d709a0]{align-items:center;bottom:24px;display:flex;flex-direction:row;gap:12px;height:40px;justify-content:center;position:absolute;width:100%;z-index:1}.vue-ui-table-main button.vue-ui-table-navigation[data-v-80d709a0]{height:36px;padding:1px;width:36px}.vue-ui-table-main .vue-ui-table-navigation-indicator[data-v-80d709a0]{border-radius:6px;bottom:70px;height:6px;position:absolute;transition:all .1s ease-in-out}.vue-ui-table-main .vue-ui-table-page-scroller-wrapper[data-v-80d709a0]{align-items:center;display:flex;flex-direction:column;justify-content:center}.vue-ui-table-main input.vue-ui-table-page-scroller[data-v-80d709a0]{cursor:pointer;height:24px;padding:0}.vue-ui-table-main .vue-ui-table-paginator[data-v-80d709a0]{position:absolute;bottom:0;z-index:2;left:12px;display:flex;flex-direction:row;gap:6px;font-size:14px;justify-content:center;align-items:center;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-paginator select[data-v-80d709a0]{border-radius:3px}.vue-ui-table-main .vue-ui-table-size-warning[data-v-80d709a0]{align-items:center;bottom:-24px;color:#f17171;display:flex;flex-direction:row;flex-wrap:wrap;font-size:12px;gap:6px;justify-content:center;position:absolute;text-align:center;width:100%}.vue-ui-table-main th.vue-ui-table-col-selector[data-v-80d709a0]{height:12px}.vue-ui-table-main .col-selector[data-v-80d709a0]{align-items:center;cursor:pointer;display:flex;height:100%;justify-content:center;width:100%}.vue-ui-table-main th.col-selector--selected[data-v-80d709a0]{background:radial-gradient(at top left,#9586eb,#6376DD);color:#fff}.vue-ui-table-main th.col-selector--selected div[data-v-80d709a0]{background:transparent;color:#fff}.vue-ui-table-main .vue-ui-table-chart-modal[data-v-80d709a0]{align-items:center;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #0000004d;display:flex;flex-direction:column;justify-content:center;min-height:200px;min-width:300px;max-width:800px;overflow:hidden;padding:12px;position:fixed;resize:horizontal;-webkit-user-select:none;user-select:none;z-index:10000}.vue-ui-table-main .vue-ui-table-chart-svg[data-v-80d709a0]{border-radius:6px;margin-bottom:12px;overflow:visible;padding:12px;width:calc(100% - 24px)}.vue-ui-table-main .vue-ui-table-donut-chart[data-v-80d709a0]{border-radius:6px}.vue-ui-table-main td.vue-ui-table-td-iteration[data-v-80d709a0]{font-size:12px;font-variant-numeric:tabular-nums;text-align:right;-webkit-user-select:none;user-select:none}.vue-ui-table-main .chart-trend[data-v-80d709a0]{font-size:12px;padding-left:12px}.vue-ui-table-main .chart-modal-options[data-v-80d709a0]{bottom:12px;display:flex;flex-direction:row;gap:8px;position:absolute;right:24px}.vue-ui-table-main .chart-modal-options button[data-v-80d709a0]{height:24px;padding:3px;width:24px}.vue-ui-table-main .th-range-filter[data-v-80d709a0]{display:flex;align-items:center;justify-content:center;gap:2px;flex-direction:column}.vue-ui-table-main .th-range-filter input[data-v-80d709a0]{height:20px;width:60px;font-variant-numeric:tabular-nums;font-size:12px}.vue-ui-table-main .th-range-filter label[data-v-80d709a0]{font-size:12px;font-weight:400;margin-bottom:-3px}.vue-ui-table-main .vue-ui-table-fieldset-wrapper[data-v-80d709a0]{display:flex;flex-direction:row;flex-wrap:wrap;gap:24px;margin-bottom:12px}.vue-ui-table-main .vue-ui-table-fieldset[data-v-80d709a0]{border-radius:6px;margin-bottom:24px;border:1px solid white}.vue-ui-table-main .vue-ui-table-fieldset legend[data-v-80d709a0]{color:gray}.vue-ui-table-main .vue-ui-table-fieldset-option[data-v-80d709a0]{display:flex;align-items:center}.vue-ui-table-main .vue-ui-table-fieldset-option input[data-v-80d709a0]{height:14px;width:14px;border-radius:50%}.vue-ui-table-main button.vue-ui-table-generate-donut[data-v-80d709a0]{align-items:center;display:flex;gap:3px;justify-content:center;margin:24px auto 12px;padding-left:12px;padding-right:12px;width:fit-content}.vue-ui-table-main button.vue-ui-table-generate-donut[disabled][data-v-80d709a0]{opacity:.5}.vue-ui-table-main .vue-ui-table-donut-legend[data-v-80d709a0]{align-items:center;column-gap:12px;display:flex;flex-wrap:wrap;font-size:12px;justify-content:center;margin:0 auto;max-width:400px;padding-bottom:36px}.vue-ui-table-main .vue-ui-table-donut-legend-item[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:3px;justify-content:center}.vue-ui-table-main .vue-ui-table-donut-label[data-v-80d709a0]{align-items:center;display:flex;flex-direction:column;font-size:4px;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-table-main .vue-ui-table-donut-label-name[data-v-80d709a0]{font-size:3px;line-height:3px}.vue-ui-table-main td[data-v-80d709a0]:focus{outline:3px solid #202d7470}.vue-ui-table-main .vue-ui-table-export-hub[data-v-80d709a0]{left:5px;position:absolute;top:0;z-index:1001}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-v-80d709a0]{position:absolute;top:40px;left:0;padding:24px;border-radius:8px;border:1px solid white;box-shadow:0 6px 12px -6px #00000080;transform:scale(0);opacity:0}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=true][data-v-80d709a0]{animation:open-dropdown-80d709a0 .2s ease-in forwards}.vue-ui-table-main .vue-ui-table-export-hub-dropdown[data-is-open=false][data-v-80d709a0]{animation:close-dropdown-80d709a0 .2s ease-in}.vue-ui-table-main .vue-ui-table-export-hub-options[data-v-80d709a0]{margin-top:12px;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center}.vue-ui-table-main .vue-ui-table-export-hub-options button[data-v-80d709a0]{width:fit-content;display:flex;align-items:center;justify-content:center;gap:3px;min-width:130px}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper[data-v-80d709a0]{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-start}.vue-ui-table-main .vue-ui-table-export-hub-option-wrapper .label[data-v-80d709a0]{font-size:12px;line-height:12px;margin-bottom:6px;width:100px}.vue-ui-table-main .td-nan[data-v-80d709a0]{background:#F17171}.vue-ui-table-main .td-has-nan[data-v-80d709a0],.vue-ui-table-main .th-has-nan[data-v-80d709a0]{background:#F17171;min-width:100px;color:#fff}@keyframes open-dropdown-80d709a0{0%{transform:scaleY(.9);opacity:0}50%{transform:scaleY(1.05);opacity:1}to{transform:scale(1);opacity:1}}@keyframes close-dropdown-80d709a0{0%{transform:scale(1.05);opacity:1}to{transform:scale(0);opacity:0}}.vue-ui-donut *[data-v-6c28ce05]{transition:unset}.vue-ui-donut[data-v-6c28ce05]{-webkit-user-select:none;user-select:none;position:relative}.vue-ui-donut .vue-ui-donut-label[data-v-6c28ce05]{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;text-align:center;width:100%}.vue-ui-donut-legend[data-v-6c28ce05]{height:100%;width:100%;display:flex;align-items:center;flex-wrap:wrap;justify-content:center;column-gap:18px}.vue-ui-donut-legend-item[data-v-6c28ce05]{display:flex;align-items:center;gap:6px;cursor:pointer;height:24px}.vue-ui-donut-tooltip[data-v-6c28ce05]{border:1px solid #e1e5e8;border-radius:4px;box-shadow:0 6px 12px -6px #0003;max-width:300px;position:fixed;padding:12px;z-index:1}.vue-ui-donut-user-options[data-v-6c28ce05]{border-radius:4px;padding:6px 12px;position:absolute;right:0;top:0;max-width:300px;text-align:left}.vue-ui-donut-user-options[open][data-v-6c28ce05]{border:1px solid #e1e5e8;box-shadow:0 6px 12px -6px #0003}.vue-ui-donut summary[data-v-6c28ce05]{text-align:right;direction:rtl}.vue-ui-donut-user-options-items[data-v-6c28ce05]{width:100%;display:flex;flex-direction:column;margin-top:6px}.vue-ui-donut-user-options-item[data-v-6c28ce05]{width:100%;display:flex;flex-direction:row;gap:5px;align-items:center}.vue-ui-donut-button[data-v-6c28ce05]{margin:6px 0;border-radius:3px;height:30px;border:1px solid #b9bfc4;background:inherit;display:flex;align-items:center;justify-content:center}.vue-ui-donut-button[data-v-6c28ce05]:hover{background:rgba(0,0,0,.05)}.vue-ui-donut-print-icon[data-v-6c28ce05]{animation:smartspin-6c28ce05 .5s infinite linear}@keyframes smartspin-6c28ce05{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vue-ui-donut table[data-v-6c28ce05]{width:100%;border-collapse:collapse}.vue-ui-donut table td[data-v-6c28ce05]{text-align:right;padding-right:6px;font-variant-numeric:tabular-nums}.vue-ui-donut table th[data-v-6c28ce05]{position:sticky;top:0;font-weight:400;-webkit-user-select:none;user-select:none}
@@ -1,4 +1,4 @@
1
- import { b as o, a as u, v as r } from "./index-c336668e.js";
1
+ import { b as o, a as u, v as r } from "./index-622efabd.js";
2
2
  import "vue";
3
3
  export {
4
4
  o as VueUiDonut,
@@ -355,9 +355,9 @@ end`};e.events.push(["putFont",function(a){(function(i){var s=i.font,o=i.out,l=i
355
355
  `),o.push(` </office:body>
356
356
  `),s.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function My(t,e){if(e.bookType=="fods")return Py(t,e);var r=Yd(),A="",n=[],a=[];return A="mimetype",kt(r,A,"application/vnd.oasis.opendocument.spreadsheet"),A="content.xml",kt(r,A,Py(t,e)),n.push([A,"text/xml"]),a.push([A,"ContentFile"]),A="styles.xml",kt(r,A,AO(t,e)),n.push([A,"text/xml"]),a.push([A,"StylesFile"]),A="meta.xml",kt(r,A,Gr+MB()),n.push([A,"text/xml"]),a.push([A,"MetadataFile"]),A="manifest.rdf",kt(r,A,gN(a)),n.push([A,"application/rdf+xml"]),A="META-INF/manifest.xml",kt(r,A,hN(n)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ku(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function nO(t){return typeof TextEncoder<"u"?new TextEncoder().encode(t):Hn(Ha(t))}function aO(t,e){e:for(var r=0;r<=t.length-e.length;++r){for(var A=0;A<e.length;++A)if(t[r+A]!=e[A])continue e;return!0}return!1}function _i(t){var e=t.reduce(function(n,a){return n+a.length},0),r=new Uint8Array(e),A=0;return t.forEach(function(n){r.set(n,A),A+=n.length}),r}function iO(t,e,r){var A=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,n=r/Math.pow(10,A-6176);t[e+15]|=A>>7,t[e+14]|=(A&127)<<1;for(var a=0;n>=1;++a,n/=256)t[e+a]=n&255;t[e+15]|=r>=0?0:128}function Jl(t,e){var r=e?e[0]:0,A=t[r]&127;e:if(t[r++]>=128&&(A|=(t[r]&127)<<7,t[r++]<128||(A|=(t[r]&127)<<14,t[r++]<128)||(A|=(t[r]&127)<<21,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,28),++r,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,35),++r,t[r++]<128)||(A+=(t[r]&127)*Math.pow(2,42),++r,t[r++]<128)))break e;return e&&(e[0]=r),A}function Ar(t){var e=new Uint8Array(7);e[0]=t&127;var r=1;e:if(t>127){if(e[r-1]|=128,e[r]=t>>7&127,++r,t<=16383||(e[r-1]|=128,e[r]=t>>14&127,++r,t<=2097151)||(e[r-1]|=128,e[r]=t>>21&127,++r,t<=268435455)||(e[r-1]|=128,e[r]=t/256>>>21&127,++r,t<=34359738367)||(e[r-1]|=128,e[r]=t/65536>>>21&127,++r,t<=4398046511103))break e;e[r-1]|=128,e[r]=t/16777216>>>21&127,++r}return e.slice(0,r)}function wo(t){var e=0,r=t[e]&127;e:if(t[e++]>=128){if(r|=(t[e]&127)<<7,t[e++]<128||(r|=(t[e]&127)<<14,t[e++]<128)||(r|=(t[e]&127)<<21,t[e++]<128))break e;r|=(t[e]&127)<<28}return r}function eA(t){for(var e=[],r=[0];r[0]<t.length;){var A=r[0],n=Jl(t,r),a=n&7;n=Math.floor(n/8);var i=0,s;if(n==0)break;switch(a){case 0:{for(var o=r[0];t[r[0]++]>=128;);s=t.slice(o,r[0])}break;case 5:i=4,s=t.slice(r[0],r[0]+i),r[0]+=i;break;case 1:i=8,s=t.slice(r[0],r[0]+i),r[0]+=i;break;case 2:i=Jl(t,r),s=t.slice(r[0],r[0]+i),r[0]+=i;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(n," at offset ").concat(A))}var l={data:s,type:a};e[n]==null?e[n]=[l]:e[n].push(l)}return e}function BA(t){var e=[];return t.forEach(function(r,A){r.forEach(function(n){n.data&&(e.push(Ar(A*8+n.type)),n.type==2&&e.push(Ar(n.data.length)),e.push(n.data))})}),_i(e)}function Gn(t){for(var e,r=[],A=[0];A[0]<t.length;){var n=Jl(t,A),a=eA(t.slice(A[0],A[0]+n));A[0]+=n;var i={id:wo(a[1][0].data),messages:[]};a[2].forEach(function(s){var o=eA(s.data),l=wo(o[3][0].data);i.messages.push({meta:o,data:t.slice(A[0],A[0]+l)}),A[0]+=l}),(e=a[3])!=null&&e[0]&&(i.merge=wo(a[3][0].data)>>>0>0),r.push(i)}return r}function Bo(t){var e=[];return t.forEach(function(r){var A=[];A[1]=[{data:Ar(r.id),type:0}],A[2]=[],r.merge!=null&&(A[3]=[{data:Ar(+!!r.merge),type:0}]);var n=[];r.messages.forEach(function(i){n.push(i.data),i.meta[3]=[{type:0,data:Ar(i.data.length)}],A[2].push({data:BA(i.meta),type:2})});var a=BA(A);e.push(Ar(a.length)),e.push(a),n.forEach(function(i){return e.push(i)})}),_i(e)}function sO(t,e){if(t!=0)throw new Error("Unexpected Snappy chunk type ".concat(t));for(var r=[0],A=Jl(e,r),n=[];r[0]<e.length;){var a=e[r[0]]&3;if(a==0){var i=e[r[0]++]>>2;if(i<60)++i;else{var s=i-59;i=e[r[0]],s>1&&(i|=e[r[0]+1]<<8),s>2&&(i|=e[r[0]+2]<<16),s>3&&(i|=e[r[0]+3]<<24),i>>>=0,i++,r[0]+=s}n.push(e.slice(r[0],r[0]+i)),r[0]+=i;continue}else{var o=0,l=0;if(a==1?(l=(e[r[0]]>>2&7)+4,o=(e[r[0]++]&224)<<3,o|=e[r[0]++]):(l=(e[r[0]++]>>2)+1,a==2?(o=e[r[0]]|e[r[0]+1]<<8,r[0]+=2):(o=(e[r[0]]|e[r[0]+1]<<8|e[r[0]+2]<<16|e[r[0]+3]<<24)>>>0,r[0]+=4)),n=[_i(n)],o==0)throw new Error("Invalid offset 0");if(o>n[0].length)throw new Error("Invalid offset beyond length");if(l>=o)for(n.push(n[0].slice(-o)),l-=o;l>=n[n.length-1].length;)n.push(n[n.length-1]),l-=n[n.length-1].length;n.push(n[0].slice(-o,-o+l))}}var c=_i(n);if(c.length!=A)throw new Error("Unexpected length: ".concat(c.length," != ").concat(A));return c}function jn(t){for(var e=[],r=0;r<t.length;){var A=t[r++],n=t[r]|t[r+1]<<8|t[r+2]<<16;r+=3,e.push(sO(A,t.slice(r,r+n))),r+=n}if(r!==t.length)throw new Error("data is not a valid framed stream!");return _i(e)}function yo(t){for(var e=[],r=0;r<t.length;){var A=Math.min(t.length-r,268435455),n=new Uint8Array(4);e.push(n);var a=Ar(A),i=a.length;e.push(a),A<=60?(i++,e.push(new Uint8Array([A-1<<2]))):A<=256?(i+=2,e.push(new Uint8Array([240,A-1&255]))):A<=65536?(i+=3,e.push(new Uint8Array([244,A-1&255,A-1>>8&255]))):A<=16777216?(i+=4,e.push(new Uint8Array([248,A-1&255,A-1>>8&255,A-1>>16&255]))):A<=4294967296&&(i+=5,e.push(new Uint8Array([252,A-1&255,A-1>>8&255,A-1>>16&255,A-1>>>24&255]))),e.push(t.slice(r,r+A)),i+=A,n[0]=0,n[1]=i&255,n[2]=i>>8&255,n[3]=i>>16&255,r+=A}return _i(e)}function B1(t,e){var r=new Uint8Array(32),A=ku(r),n=12,a=0;switch(r[0]=5,t.t){case"n":r[1]=2,iO(r,n,t.v),a|=1,n+=16;break;case"b":r[1]=6,A.setFloat64(n,t.v?1:0,!0),a|=2,n+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[1]=3,A.setUint32(n,e.indexOf(t.v),!0),a|=8,n+=4;break;default:throw"unsupported cell type "+t.t}return A.setUint32(8,a,!0),r.slice(0,n)}function y1(t,e){var r=new Uint8Array(32),A=ku(r),n=12,a=0;switch(r[0]=3,t.t){case"n":r[2]=2,A.setFloat64(n,t.v,!0),a|=32,n+=8;break;case"b":r[2]=6,A.setFloat64(n,t.v?1:0,!0),a|=32,n+=8;break;case"s":if(e.indexOf(t.v)==-1)throw new Error("Value ".concat(t.v," missing from SST!"));r[2]=3,A.setUint32(n,e.indexOf(t.v),!0),a|=16,n+=4;break;default:throw"unsupported cell type "+t.t}return A.setUint32(4,a,!0),r.slice(0,n)}function Ti(t){var e=eA(t);return Jl(e[1][0].data)}function oO(t,e,r){var A,n,a,i;if(!((A=t[6])!=null&&A[0])||!((n=t[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var s=((i=(a=t[8])==null?void 0:a[0])==null?void 0:i.data)&&wo(t[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var o=0,l=ku(t[7][0].data),c=0,d=[],g=ku(t[4][0].data),h=0,m=[],v=0;v<e.length;++v){if(e[v]==null){l.setUint16(v*2,65535,!0),g.setUint16(v*2,65535);continue}l.setUint16(v*2,c,!0),g.setUint16(v*2,h,!0);var B,x;switch(typeof e[v]){case"string":B=B1({t:"s",v:e[v]},r),x=y1({t:"s",v:e[v]},r);break;case"number":B=B1({t:"n",v:e[v]},r),x=y1({t:"n",v:e[v]},r);break;case"boolean":B=B1({t:"b",v:e[v]},r),x=y1({t:"b",v:e[v]},r);break;default:throw new Error("Unsupported value "+e[v])}d.push(B),c+=B.length,m.push(x),h+=x.length,++o}for(t[2][0].data=Ar(o);v<t[7][0].data.length/2;++v)l.setUint16(v*2,65535,!0),g.setUint16(v*2,65535,!0);return t[6][0].data=_i(d),t[3][0].data=_i(m),o}function lO(t,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=t.Sheets[t.SheetNames[0]];t.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var A=un(r["!ref"]);A.s.r=A.s.c=0;var n=!1;A.e.c>9&&(n=!0,A.e.c=9),A.e.r>49&&(n=!0,A.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(jr(A)));var a=Pu(r,{range:A,header:1}),i=["~Sh33tJ5~"];a.forEach(function(_){return _.forEach(function(S){typeof S=="string"&&i.push(S)})});var s={},o=[],l=or.read(e.numbers,{type:"base64"});l.FileIndex.map(function(_,S){return[_,l.FullPaths[S]]}).forEach(function(_){var S=_[0],Q=_[1];if(S.type==2&&S.name.match(/\.iwa/)){var j=S.content,ie=jn(j),oe=Gn(ie);oe.forEach(function(le){o.push(le.id),s[le.id]={deps:[],location:Q,type:wo(le.messages[0].meta[1][0].data)}})}}),o.sort(function(_,S){return _-S});var c=o.filter(function(_){return _>1}).map(function(_){return[_,Ar(_)]});l.FileIndex.map(function(_,S){return[_,l.FullPaths[S]]}).forEach(function(_){var S=_[0];if(_[1],!!S.name.match(/\.iwa/)){var Q=Gn(jn(S.content));Q.forEach(function(j){j.messages.forEach(function(ie){c.forEach(function(oe){j.messages.some(function(le){return wo(le.meta[1][0].data)!=11006&&aO(le.data,oe[1])})&&s[oe[0]].deps.push(j.id)})})})}});for(var d=or.find(l,s[1].location),g=Gn(jn(d.content)),h,m=0;m<g.length;++m){var v=g[m];v.id==1&&(h=v)}var B=Ti(eA(h.messages[0].data)[1][0].data);for(d=or.find(l,s[B].location),g=Gn(jn(d.content)),m=0;m<g.length;++m)v=g[m],v.id==B&&(h=v);for(B=Ti(eA(h.messages[0].data)[2][0].data),d=or.find(l,s[B].location),g=Gn(jn(d.content)),m=0;m<g.length;++m)v=g[m],v.id==B&&(h=v);for(B=Ti(eA(h.messages[0].data)[2][0].data),d=or.find(l,s[B].location),g=Gn(jn(d.content)),m=0;m<g.length;++m)v=g[m],v.id==B&&(h=v);var x=eA(h.messages[0].data);{x[6][0].data=Ar(A.e.r+1),x[7][0].data=Ar(A.e.c+1);var b=Ti(x[46][0].data),F=or.find(l,s[b].location),O=Gn(jn(F.content));{for(var W=0;W<O.length&&O[W].id!=b;++W);if(O[W].id!=b)throw"Bad ColumnRowUIDMapArchive";var q=eA(O[W].messages[0].data);q[1]=[],q[2]=[],q[3]=[];for(var L=0;L<=A.e.c;++L){var k=[];k[1]=k[2]=[{type:0,data:Ar(L+420690)}],q[1].push({type:2,data:BA(k)}),q[2].push({type:0,data:Ar(L)}),q[3].push({type:0,data:Ar(L)})}q[4]=[],q[5]=[],q[6]=[];for(var K=0;K<=A.e.r;++K)k=[],k[1]=k[2]=[{type:0,data:Ar(K+726270)}],q[4].push({type:2,data:BA(k)}),q[5].push({type:0,data:Ar(K)}),q[6].push({type:0,data:Ar(K)});O[W].messages[0].data=BA(q)}F.content=yo(Bo(O)),F.size=F.content.length,delete x[46];var re=eA(x[4][0].data);{re[7][0].data=Ar(A.e.r+1);var U=eA(re[1][0].data),T=Ti(U[2][0].data);F=or.find(l,s[T].location),O=Gn(jn(F.content));{if(O[0].id!=T)throw"Bad HeaderStorageBucket";var V=eA(O[0].messages[0].data);for(K=0;K<a.length;++K){var Y=eA(V[2][0].data);Y[1][0].data=Ar(K),Y[4][0].data=Ar(a[K].length),V[2][K]={type:V[2][0].type,data:BA(Y)}}O[0].messages[0].data=BA(V)}F.content=yo(Bo(O)),F.size=F.content.length;var ue=Ti(re[2][0].data);F=or.find(l,s[ue].location),O=Gn(jn(F.content));{if(O[0].id!=ue)throw"Bad HeaderStorageBucket";for(V=eA(O[0].messages[0].data),L=0;L<=A.e.c;++L)Y=eA(V[2][0].data),Y[1][0].data=Ar(L),Y[4][0].data=Ar(A.e.r+1),V[2][L]={type:V[2][0].type,data:BA(Y)};O[0].messages[0].data=BA(V)}F.content=yo(Bo(O)),F.size=F.content.length;var ge=Ti(re[4][0].data);(function(){for(var _=or.find(l,s[ge].location),S=Gn(jn(_.content)),Q,j=0;j<S.length;++j){var ie=S[j];ie.id==ge&&(Q=ie)}var oe=eA(Q.messages[0].data);{oe[3]=[];var le=[];i.forEach(function(Me,Xe){le[1]=[{type:0,data:Ar(Xe)}],le[2]=[{type:0,data:Ar(1)}],le[3]=[{type:2,data:nO(Me)}],oe[3].push({type:2,data:BA(le)})})}Q.messages[0].data=BA(oe);var xe=Bo(S),Qe=yo(xe);_.content=Qe,_.size=_.content.length})();var we=eA(re[3][0].data);{var pe=we[1][0];delete we[2];var ae=eA(pe.data);{var se=Ti(ae[2][0].data);(function(){for(var _=or.find(l,s[se].location),S=Gn(jn(_.content)),Q,j=0;j<S.length;++j){var ie=S[j];ie.id==se&&(Q=ie)}var oe=eA(Q.messages[0].data);{delete oe[6],delete we[7];var le=new Uint8Array(oe[5][0].data);oe[5]=[];for(var xe=0,Qe=0;Qe<=A.e.r;++Qe){var Me=eA(le);xe+=oO(Me,a[Qe],i),Me[1][0].data=Ar(Qe),oe[5].push({data:BA(Me),type:2})}oe[1]=[{type:0,data:Ar(A.e.c+1)}],oe[2]=[{type:0,data:Ar(A.e.r+1)}],oe[3]=[{type:0,data:Ar(xe)}],oe[4]=[{type:0,data:Ar(A.e.r+1)}]}Q.messages[0].data=BA(oe);var Xe=Bo(S),qe=yo(Xe);_.content=qe,_.size=_.content.length})()}pe.data=BA(ae)}re[3][0].data=BA(we)}x[4][0].data=BA(re)}h.messages[0].data=BA(x);var ye=Bo(g),C=yo(ye);return d.content=C,d.size=d.content.length,l}function cO(t){return function(r){for(var A=0;A!=t.length;++A){var n=t[A];r[n[0]]===void 0&&(r[n[0]]=n[1]),n[2]==="n"&&(r[n[0]]=Number(r[n[0]]))}}}function x1(t){cO([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(t)}function fO(t,e){return e.bookType=="ods"?My(t,e):e.bookType=="numbers"?lO(t,e):e.bookType=="xlsb"?uO(t,e):hO(t,e)}function uO(t,e){mo=1024,t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(mu(),pu(t.SSF),e.revssf=vu(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Yl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r=e.bookType=="xlsb"?"bin":"xml",A=py.indexOf(e.bookType)>-1,n=kB();x1(e=e||{});var a=Yd(),i="",s=0;if(e.cellXfs=[],Si(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),i="docProps/core.xml",kt(a,i,RB(t.Props,e)),n.coreprops.push(i),rr(e.rels,2,i,Xt.CORE_PROPS),i="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var o=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}for(t.Props.Worksheets=t.Props.SheetNames.length,kt(a,i,VB(t.Props)),n.extprops.push(i),rr(e.rels,3,i,Xt.EXT_PROPS),t.Custprops!==t.Props&&pA(t.Custprops||{}).length>0&&(i="docProps/custom.xml",kt(a,i,KB(t.Custprops)),n.custprops.push(i),rr(e.rels,4,i,Xt.CUST_PROPS)),s=1;s<=t.SheetNames.length;++s){var c={"!id":{}},d=t.Sheets[t.SheetNames[s-1]],g=(d||{})["!type"]||"sheet";switch(g){case"chart":default:i="xl/worksheets/sheet"+s+"."+r,kt(a,i,gk(s-1,i,e,t,c)),n.sheets.push(i),rr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(d){var h=d["!comments"],m=!1,v="";h&&h.length>0&&(v="xl/comments"+s+"."+r,kt(a,v,vk(h,v)),n.comments.push(v),rr(c,-1,"../comments"+s+"."+r,Xt.CMNT),m=!0),d["!legacy"]&&m&&kt(a,"xl/drawings/vmlDrawing"+s+".vml",dy(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}c["!id"].rId1&&kt(a,DB(i),go(c))}return e.Strings!=null&&e.Strings.length>0&&(i="xl/sharedStrings."+r,kt(a,i,mk(e.Strings,i,e)),n.strs.push(i),rr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),i="xl/workbook."+r,kt(a,i,dk(t,i)),n.workbooks.push(i),rr(e.rels,1,i,Xt.WB),i="xl/theme/theme1.xml",kt(a,i,uy(t.Themes,e)),n.themes.push(i),rr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),i="xl/styles."+r,kt(a,i,pk(t,i,e)),n.styles.push(i),rr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&A&&(i="xl/vbaProject.bin",kt(a,i,t.vbaraw),n.vba.push(i),rr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),i="xl/metadata."+r,kt(a,i,wk(i)),n.metadata.push(i),rr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),kt(a,"[Content_Types].xml",OB(n,e)),kt(a,"_rels/.rels",go(e.rels)),kt(a,"xl/_rels/workbook."+r+".rels",go(e.wbrels)),delete e.revssf,delete e.ssf,a}function hO(t,e){mo=1024,t&&!t.SSF&&(t.SSF=$A(Sr)),t&&t.SSF&&(mu(),pu(t.SSF),e.revssf=vu(t.SSF),e.revssf[t.SSF[65535]]=0,e.ssf=t.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Yl?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var r="xml",A=py.indexOf(e.bookType)>-1,n=kB();x1(e=e||{});var a=Yd(),i="",s=0;if(e.cellXfs=[],Si(e.cellXfs,{},{revssf:{General:0}}),t.Props||(t.Props={}),i="docProps/core.xml",kt(a,i,RB(t.Props,e)),n.coreprops.push(i),rr(e.rels,2,i,Xt.CORE_PROPS),i="docProps/app.xml",!(t.Props&&t.Props.SheetNames))if(!t.Workbook||!t.Workbook.Sheets)t.Props.SheetNames=t.SheetNames;else{for(var o=[],l=0;l<t.SheetNames.length;++l)(t.Workbook.Sheets[l]||{}).Hidden!=2&&o.push(t.SheetNames[l]);t.Props.SheetNames=o}t.Props.Worksheets=t.Props.SheetNames.length,kt(a,i,VB(t.Props)),n.extprops.push(i),rr(e.rels,3,i,Xt.EXT_PROPS),t.Custprops!==t.Props&&pA(t.Custprops||{}).length>0&&(i="docProps/custom.xml",kt(a,i,KB(t.Custprops)),n.custprops.push(i),rr(e.rels,4,i,Xt.CUST_PROPS));var c=["SheetJ5"];for(e.tcid=0,s=1;s<=t.SheetNames.length;++s){var d={"!id":{}},g=t.Sheets[t.SheetNames[s-1]],h=(g||{})["!type"]||"sheet";switch(h){case"chart":default:i="xl/worksheets/sheet"+s+"."+r,kt(a,i,_y(s-1,e,t,d)),n.sheets.push(i),rr(e.wbrels,-1,"worksheets/sheet"+s+"."+r,Xt.WS[0])}if(g){var m=g["!comments"],v=!1,B="";if(m&&m.length>0){var x=!1;m.forEach(function(b){b[1].forEach(function(F){F.T==!0&&(x=!0)})}),x&&(B="xl/threadedComments/threadedComment"+s+"."+r,kt(a,B,G6(m,c,e)),n.threadedcomments.push(B),rr(d,-1,"../threadedComments/threadedComment"+s+"."+r,Xt.TCMNT)),B="xl/comments"+s+"."+r,kt(a,B,gy(m)),n.comments.push(B),rr(d,-1,"../comments"+s+"."+r,Xt.CMNT),v=!0}g["!legacy"]&&v&&kt(a,"xl/drawings/vmlDrawing"+s+".vml",dy(s,g["!comments"])),delete g["!comments"],delete g["!legacy"]}d["!id"].rId1&&kt(a,DB(i),go(d))}return e.Strings!=null&&e.Strings.length>0&&(i="xl/sharedStrings."+r,kt(a,i,ny(e.Strings,e)),n.strs.push(i),rr(e.wbrels,-1,"sharedStrings."+r,Xt.SST)),i="xl/workbook."+r,kt(a,i,Iy(t)),n.workbooks.push(i),rr(e.rels,1,i,Xt.WB),i="xl/theme/theme1.xml",kt(a,i,uy(t.Themes,e)),n.themes.push(i),rr(e.wbrels,-1,"theme/theme1.xml",Xt.THEME),i="xl/styles."+r,kt(a,i,ly(t,e)),n.styles.push(i),rr(e.wbrels,-1,"styles."+r,Xt.STY),t.vbaraw&&A&&(i="xl/vbaProject.bin",kt(a,i,t.vbaraw),n.vba.push(i),rr(e.wbrels,-1,"vbaProject.bin",Xt.VBA)),i="xl/metadata."+r,kt(a,i,hy()),n.metadata.push(i),rr(e.wbrels,-1,"metadata."+r,Xt.XLMETA),c.length>1&&(i="xl/persons/person.xml",kt(a,i,j6(c)),n.people.push(i),rr(e.wbrels,-1,"persons/person.xml",Xt.PEOPLE)),kt(a,"[Content_Types].xml",OB(n,e)),kt(a,"_rels/.rels",go(e.rels)),kt(a,"xl/_rels/workbook."+r+".rels",go(e.wbrels)),delete e.revssf,delete e.ssf,a}function dO(t,e){var r="";switch((e||{}).type||"base64"){case"buffer":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];case"base64":r=Da(t.slice(0,12));break;case"binary":r=t;break;case"array":return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Ry(t,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return Pl(e.file,or.write(t,{type:Yt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return or.write(t,e)}function gO(t,e){var r=$A(e||{}),A=fO(t,r);return pO(A,r)}function pO(t,e){var r={},A=Yt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(r.compression="DEFLATE"),e.password)r.type=A;else switch(e.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":r.type=A;break;default:throw new Error("Unrecognized type "+e.type)}var n=t.FullPaths?or.write(t,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!e.compression}):t.generate(r);if(typeof Deno<"u"&&typeof n=="string"){if(e.type=="binary"||e.type=="base64")return n;n=new Uint8Array(cu(n))}return e.password&&typeof encrypt_agile<"u"?Ry(encrypt_agile(n,e.password),e):e.type==="file"?Pl(e.file,n):e.type=="string"?Rl(n):n}function mO(t,e){var r=e||{},A=Lk(t,r);return Ry(A,r)}function wa(t,e,r){r||(r="");var A=r+t;switch(e.type){case"base64":return kl(Ha(A));case"binary":return Ha(A);case"string":return t;case"file":return Pl(e.file,A,"utf8");case"buffer":return Yt?Pa(A,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(A):wa(A,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function vO(t,e){switch(e.type){case"base64":return kl(t);case"binary":return t;case"string":return t;case"file":return Pl(e.file,t,"binary");case"buffer":return Yt?Pa(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function Ou(t,e){switch(e.type){case"string":case"base64":case"binary":for(var r="",A=0;A<t.length;++A)r+=String.fromCharCode(t[A]);return e.type=="base64"?kl(r):e.type=="string"?Rl(r):r;case"file":return Pl(e.file,t);case"buffer":return t;default:throw new Error("Unrecognized type "+e.type)}}function Du(t,e){jU(),Ak(t);var r=$A(e||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),r.type=="array"){r.type="binary";var A=Du(t,r);return r.type="array",cu(A)}var n=0;if(r.sheet&&(typeof r.sheet=="number"?n=r.sheet:n=t.SheetNames.indexOf(r.sheet),!t.SheetNames[n]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return wa(Ik(t,r),r);case"slk":case"sylk":return wa(e6.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"htm":case"html":return wa(Qy(t.Sheets[t.SheetNames[n]],r),r);case"txt":return vO(Vy(t.Sheets[t.SheetNames[n]],r),r);case"csv":return wa(C1(t.Sheets[t.SheetNames[n]],r),r,"\uFEFF");case"dif":return wa(t6.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"dbf":return Ou(ZN.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"prn":return wa(r6.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"rtf":return wa(l6.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"eth":return wa(ry.from_sheet(t.Sheets[t.SheetNames[n]],r),r);case"fods":return wa(My(t,r),r);case"wk1":return Ou(Ay.sheet_to_wk1(t.Sheets[t.SheetNames[n]],r),r);case"wk3":return Ou(Ay.book_to_wk3(t,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),Ou(Ly(t,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),mO(t,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return gO(t,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function wO(t,e,r,A,n,a,i,s){var o=vA(r),l=s.defval,c=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),d=!0,g=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(g,"__rowNum__",{value:r,enumerable:!1})}catch{g.__rowNum__=r}else g.__rowNum__=r;if(!i||t[r])for(var h=e.s.c;h<=e.e.c;++h){var m=i?t[r][h]:t[A[h]+o];if(m===void 0||m.t===void 0){if(l===void 0)continue;a[h]!=null&&(g[a[h]]=l);continue}var v=m.v;switch(m.t){case"z":if(v==null)break;continue;case"e":v=v==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+m.t)}if(a[h]!=null){if(v==null)if(m.t=="e"&&v===null)g[a[h]]=null;else if(l!==void 0)g[a[h]]=l;else if(c&&v===null)g[a[h]]=null;else continue;else g[a[h]]=c&&(m.t!=="n"||m.t==="n"&&s.rawNumbers!==!1)?v:Va(m,v,s);v!=null&&(d=!1)}}return{row:g,isempty:d}}function Pu(t,e){if(t==null||t["!ref"]==null)return[];var r={t:"n",v:0},A=0,n=1,a=[],i=0,s="",o={s:{r:0,c:0},e:{r:0,c:0}},l=e||{},c=l.range!=null?l.range:t["!ref"];switch(l.header===1?A=1:l.header==="A"?A=2:Array.isArray(l.header)?A=3:l.header==null&&(A=0),typeof c){case"string":o=wr(c);break;case"number":o=wr(t["!ref"]),o.s.r=c;break;default:o=c}A>0&&(n=0);var d=vA(o.s.r),g=[],h=[],m=0,v=0,B=Array.isArray(t),x=o.s.r,b=0,F={};B&&!t[x]&&(t[x]=[]);var O=l.skipHidden&&t["!cols"]||[],W=l.skipHidden&&t["!rows"]||[];for(b=o.s.c;b<=o.e.c;++b)if(!(O[b]||{}).hidden)switch(g[b]=UA(b),r=B?t[x][b]:t[g[b]+d],A){case 1:a[b]=b-o.s.c;break;case 2:a[b]=g[b];break;case 3:a[b]=l.header[b-o.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=i=Va(r,null,l),v=F[i]||0,!v)F[i]=1;else{do s=i+"_"+v++;while(F[s]);F[i]=v,F[s]=1}a[b]=s}for(x=o.s.r+n;x<=o.e.r;++x)if(!(W[x]||{}).hidden){var q=wO(t,o,x,g,A,a,B,l);(q.isempty===!1||(A===1?l.blankrows!==!1:l.blankrows))&&(h[m++]=q.row)}return h.length=m,h}var Hy=/"/g;function BO(t,e,r,A,n,a,i,s){for(var o=!0,l=[],c="",d=vA(r),g=e.s.c;g<=e.e.c;++g)if(A[g]){var h=s.dense?(t[r]||[])[g]:t[A[g]+d];if(h==null)c="";else if(h.v!=null){o=!1,c=""+(s.rawNumbers&&h.t=="n"?h.v:Va(h,null,s));for(var m=0,v=0;m!==c.length;++m)if((v=c.charCodeAt(m))===n||v===a||v===34||s.forceQuotes){c='"'+c.replace(Hy,'""')+'"';break}c=="ID"&&(c='"ID"')}else h.f!=null&&!h.F?(o=!1,c="="+h.f,c.indexOf(",")>=0&&(c='"'+c.replace(Hy,'""')+'"')):c="";l.push(c)}return s.blankrows===!1&&o?null:l.join(i)}function C1(t,e){var r=[],A=e??{};if(t==null||t["!ref"]==null)return"";var n=wr(t["!ref"]),a=A.FS!==void 0?A.FS:",",i=a.charCodeAt(0),s=A.RS!==void 0?A.RS:`
357
357
  `,o=s.charCodeAt(0),l=new RegExp((a=="|"?"\\|":a)+"+$"),c="",d=[];A.dense=Array.isArray(t);for(var g=A.skipHidden&&t["!cols"]||[],h=A.skipHidden&&t["!rows"]||[],m=n.s.c;m<=n.e.c;++m)(g[m]||{}).hidden||(d[m]=UA(m));for(var v=0,B=n.s.r;B<=n.e.r;++B)(h[B]||{}).hidden||(c=BO(t,n,B,d,i,o,a,A),c!=null&&(A.strip&&(c=c.replace(l,"")),(c||A.blankrows!==!1)&&r.push((v++?s:"")+c)));return delete A.dense,r.join("")}function Vy(t,e){e||(e={}),e.FS=" ",e.RS=`
358
- `;var r=C1(t,e);return r}function yO(t){var e="",r,A="";if(t==null||t["!ref"]==null)return[];var n=wr(t["!ref"]),a="",i=[],s,o=[],l=Array.isArray(t);for(s=n.s.c;s<=n.e.c;++s)i[s]=UA(s);for(var c=n.s.r;c<=n.e.r;++c)for(a=vA(c),s=n.s.c;s<=n.e.c;++s)if(e=i[s]+a,r=l?(t[c]||[])[s]:t[e],A="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;A=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)A=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)A=""+r.v;else if(r.t=="b")A=r.v?"TRUE":"FALSE";else if(r.w!==void 0)A="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?A="'"+r.v:A=""+r.v}}o[o.length]=e+"="+A}return o}function Ky(t,e,r){var A=r||{},n=+!A.skipHeader,a=t||{},i=0,s=0;if(a&&A.origin!=null)if(typeof A.origin=="number")i=A.origin;else{var o=typeof A.origin=="string"?sA(A.origin):A.origin;i=o.r,s=o.c}var l,c={s:{c:0,r:0},e:{c:s,r:i+e.length-1+n}};if(a["!ref"]){var d=wr(a["!ref"]);c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),i==-1&&(i=d.e.r+1,c.e.r=i+e.length-1+n)}else i==-1&&(i=0,c.e.r=e.length-1+n);var g=A.header||[],h=0;e.forEach(function(v,B){pA(v).forEach(function(x){(h=g.indexOf(x))==-1&&(g[h=g.length]=x);var b=v[x],F="z",O="",W=tr({c:s+h,r:i+B+n});l=Zl(a,W),b&&typeof b=="object"&&!(b instanceof Date)?a[W]=b:(typeof b=="number"?F="n":typeof b=="boolean"?F="b":typeof b=="string"?F="s":b instanceof Date?(F="d",A.cellDates||(F="n",b=YA(b)),O=A.dateNF||Sr[14]):b===null&&A.nullError&&(F="e",b=0),l?(l.t=F,l.v=b,delete l.w,delete l.R,O&&(l.z=O)):a[W]=l={t:F,v:b},O&&(l.z=O))})}),c.e.c=Math.max(c.e.c,s+g.length-1);var m=vA(i);if(n)for(h=0;h<g.length;++h)a[UA(h+s)+m]={t:"s",v:g[h]};return a["!ref"]=jr(c),a}function xO(t,e){return Ky(null,t,e)}function Zl(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var A=sA(e);return t[A.r]||(t[A.r]=[]),t[A.r][A.c]||(t[A.r][A.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?Zl(t,tr(e)):Zl(t,tr({r:e,c:r||0}))}function CO(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function bO(){return{SheetNames:[],Sheets:{}}}function EO(t,e,r,A){var n=1;if(!r)for(;n<=65535&&t.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(A&&t.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);n=a&&+a[2]||0;var i=a&&a[1]||r;for(++n;n<=65535&&t.SheetNames.indexOf(r=i+n)!=-1;++n);}if(Uy(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function FO(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var A=CO(t,e);switch(t.Workbook.Sheets[A]||(t.Workbook.Sheets[A]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[A].Hidden=r}function SO(t,e){return t.z=e,t}function Gy(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function _O(t,e,r){return Gy(t,"#"+e,r)}function TO(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function UO(t,e,r,A){for(var n=typeof e!="string"?e:wr(e),a=typeof e=="string"?e:jr(e),i=n.s.r;i<=n.e.r;++i)for(var s=n.s.c;s<=n.e.c;++s){var o=Zl(t,i,s);o.t="n",o.F=a,delete o.v,i==n.s.r&&s==n.s.c&&(o.f=r,A&&(o.D=!0))}return t}var Ga={encode_col:UA,encode_row:vA,encode_cell:tr,encode_range:jr,decode_col:a1,decode_row:n1,split_cell:zI,decode_cell:sA,decode_range:un,format_cell:Va,sheet_add_aoa:SB,sheet_add_json:Ky,sheet_add_dom:ky,aoa_to_sheet:fo,json_to_sheet:xO,table_to_sheet:Oy,table_to_book:tO,sheet_to_csv:C1,sheet_to_txt:Vy,sheet_to_json:Pu,sheet_to_html:Qy,sheet_to_formulae:yO,sheet_to_row_object_array:Pu,sheet_get_cell:Zl,book_new:bO,book_append_sheet:EO,book_set_sheet_visibility:FO,cell_set_number_format:SO,cell_set_hyperlink:Gy,cell_set_internal_link:_O,cell_add_comment:TO,sheet_set_array_formula:UO,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function jy(t,e,r,A,n){let{series:a}=t;if(!a||t.base===0)return{...a,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const i=[...a].map(l=>l.value).reduce((l,c)=>l+c,0),s=[];let o=0;for(let l=0;l<a.length;l+=1){let c=a[l].value/i;const d=c*(Math.PI*1.9999),h=a[l].value/2/i*(Math.PI*2),{startX:m,startY:v,endX:B,endY:x,path:b}=Xy([e,r],[A,n],[o,d],110);s.push({...a[l],proportion:c,ratio:d,path:b,startX:m,startY:v,endX:B,endY:x,center:Xy([e,r],[A*1.45,n*1.45],[o,h],110)}),o+=d}return s}function zy([t,e],[r,A]){return[t+r,e+A]}function Wy([[t,e],[r,A]],[n,a]){return[t*n+e*a,r*n+A*a]}function IO(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function Xy([t,e],[r,A],[n,a],i){a=a%(2*Math.PI);const s=IO(i),[o,l]=zy(Wy(s,[r*Math.cos(n),A*Math.sin(n)]),[t,e]),[c,d]=zy(Wy(s,[r*Math.cos(n+a),A*Math.sin(n+a)]),[t,e]),g=a>Math.PI?1:0,h=a>0?1:0;return{startX:o,startY:l,endX:c,endY:d,path:`M${o} ${l} A ${[r,A,i/(2*Math.PI)*360,g,h,c,d].join(" ")}`}}function Mu({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(A=>{if(Object.hasOwn(e,A)){const n=e[A];typeof n=="boolean"?r[A]=n:["string","number"].includes(typeof n)?QO(n)&&(r[A]=n):Array.isArray(r[A])?NO({userConfig:e,key:A})&&(r[A]=n):LO({userConfig:e,key:A})&&(r[A]=Mu({defaultConfig:r[A],userConfig:n}))}}),r}function NO({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length}function LO({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function QO(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function kO(t){return![void 0,NaN,1/0,-1/0].includes(t)}function OO(t,e=0){return isNaN(t)?e:t}const Ui=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"];function qy(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,a,i,s]=n;return`#${a}${i}${s}`}else if(n=t.match(r)){const[,a,i,s]=n;return`#${xo(a)}${xo(i)}${xo(s)}`}else if(n=t.match(A)){const[,a,i,s]=n,o=DO(Number(a),Number(i),Number(s));return`#${xo(o[0])}${xo(o[1])}${xo(o[2])}`}return null}function xo(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function DO(t,e,r){t/=360,e/=100,r/=100;let A,n,a;if(e===0)A=n=a=r;else{const i=(l,c,d)=>(d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?l+(c-l)*6*d:d<.5?c:d<.6666666666666666?l+(c-l)*(.6666666666666666-d)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=i(o,s,t+1/3),n=i(o,s,t),a=i(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(a*255)]}const _J="",b1=(t,e)=>{const r=t.__vccOpts||t;for(const[A,n]of e)r[A]=n;return r},PO={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`;return{useSafeValues:!0,palette:Ui,defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,padding:{top:36,right:12,bottom:12,left:48},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,show:!1,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t}},computed:{chartConfig(){return Object.keys(this.config||{}).length?this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config}):this.defaultConfig},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,A)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*A*this.absoluteDataset.filter(n=>n.type==="bar").filter(n=>!this.segregatedSeries.includes(n.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[A]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){return Math.min(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.min(...t.series)))},maxSeries(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>t.series.length))},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=[...this.plotSet,...this.barSet,...this.lineSet].map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.chartConfig.chart.grid.labels.xAxisLabels.values.forEach((r,A)=>{const n=[r];this.plotSet.length&&this.plotSet.forEach(a=>{n.push(this.canShowValue(a.absoluteValues[A])?Number(a.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.barSet.length&&this.barSet.forEach(a=>{n.push(this.canShowValue(a.absoluteValues[A])?Number(a.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.lineSet.length&&this.lineSet.forEach(a=>{n.push(this.canShowValue(a.absoluteValues[A])?Number(a.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),e.push(n)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(n=>({name:n.name,color:n.color,type:n.type,value:n.absoluteValues.find((a,i)=>i===this.selectedSerieIndex)}));let e="",r=t.map(n=>n.value).filter(n=>this.isSafeValue(n)&&n!==null).reduce((n,a)=>Math.abs(n)+Math.abs(a),0);const A=this.chartConfig.chart.grid.labels.xAxisLabels.values[this.selectedSerieIndex];return A&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${A}</div>`),t.forEach(n=>{this.isSafeValue(n.value)&&n.value!==null&&(e+=`<div><span style="color:${n.color}; margin-right: 3px">${this.icons[n.type]}</span>${n.name} : <b>${this.chartConfig.chart.tooltip.showValue?n.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(n.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,A=48;if(t&&e){const{width:n,height:a}=t.getBoundingClientRect(),i=e.getBoundingClientRect();this.clientPosition.x+n/2>i.right?r=-n:this.clientPosition.x-n/2<i.left?r=0:r=-n/2,this.clientPosition.y+a>i.bottom&&(A=-a-48)}return{top:this.clientPosition.y+A,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let n=5;n>0;n-=1){const a=t*n;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*n),value:a})}const r=this.closestDecimal(this.min/5),A=[];for(let n=5;n>=0;n-=1){const a=Math.abs(r)*n;A.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*n),value:-a})}return[...e,...A]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,A=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${A})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",A),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,A)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
358
+ `;var r=C1(t,e);return r}function yO(t){var e="",r,A="";if(t==null||t["!ref"]==null)return[];var n=wr(t["!ref"]),a="",i=[],s,o=[],l=Array.isArray(t);for(s=n.s.c;s<=n.e.c;++s)i[s]=UA(s);for(var c=n.s.r;c<=n.e.r;++c)for(a=vA(c),s=n.s.c;s<=n.e.c;++s)if(e=i[s]+a,r=l?(t[c]||[])[s]:t[e],A="",r!==void 0){if(r.F!=null){if(e=r.F,!r.f)continue;A=r.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(r.f!=null)A=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)A=""+r.v;else if(r.t=="b")A=r.v?"TRUE":"FALSE";else if(r.w!==void 0)A="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?A="'"+r.v:A=""+r.v}}o[o.length]=e+"="+A}return o}function Ky(t,e,r){var A=r||{},n=+!A.skipHeader,a=t||{},i=0,s=0;if(a&&A.origin!=null)if(typeof A.origin=="number")i=A.origin;else{var o=typeof A.origin=="string"?sA(A.origin):A.origin;i=o.r,s=o.c}var l,c={s:{c:0,r:0},e:{c:s,r:i+e.length-1+n}};if(a["!ref"]){var d=wr(a["!ref"]);c.e.c=Math.max(c.e.c,d.e.c),c.e.r=Math.max(c.e.r,d.e.r),i==-1&&(i=d.e.r+1,c.e.r=i+e.length-1+n)}else i==-1&&(i=0,c.e.r=e.length-1+n);var g=A.header||[],h=0;e.forEach(function(v,B){pA(v).forEach(function(x){(h=g.indexOf(x))==-1&&(g[h=g.length]=x);var b=v[x],F="z",O="",W=tr({c:s+h,r:i+B+n});l=Zl(a,W),b&&typeof b=="object"&&!(b instanceof Date)?a[W]=b:(typeof b=="number"?F="n":typeof b=="boolean"?F="b":typeof b=="string"?F="s":b instanceof Date?(F="d",A.cellDates||(F="n",b=YA(b)),O=A.dateNF||Sr[14]):b===null&&A.nullError&&(F="e",b=0),l?(l.t=F,l.v=b,delete l.w,delete l.R,O&&(l.z=O)):a[W]=l={t:F,v:b},O&&(l.z=O))})}),c.e.c=Math.max(c.e.c,s+g.length-1);var m=vA(i);if(n)for(h=0;h<g.length;++h)a[UA(h+s)+m]={t:"s",v:g[h]};return a["!ref"]=jr(c),a}function xO(t,e){return Ky(null,t,e)}function Zl(t,e,r){if(typeof e=="string"){if(Array.isArray(t)){var A=sA(e);return t[A.r]||(t[A.r]=[]),t[A.r][A.c]||(t[A.r][A.c]={t:"z"})}return t[e]||(t[e]={t:"z"})}return typeof e!="number"?Zl(t,tr(e)):Zl(t,tr({r:e,c:r||0}))}function CO(t,e){if(typeof e=="number"){if(e>=0&&t.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var r=t.SheetNames.indexOf(e);if(r>-1)return r;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function bO(){return{SheetNames:[],Sheets:{}}}function EO(t,e,r,A){var n=1;if(!r)for(;n<=65535&&t.SheetNames.indexOf(r="Sheet"+n)!=-1;++n,r=void 0);if(!r||t.SheetNames.length>=65535)throw new Error("Too many worksheets");if(A&&t.SheetNames.indexOf(r)>=0){var a=r.match(/(^.*?)(\d+)$/);n=a&&+a[2]||0;var i=a&&a[1]||r;for(++n;n<=65535&&t.SheetNames.indexOf(r=i+n)!=-1;++n);}if(Uy(r),t.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return t.SheetNames.push(r),t.Sheets[r]=e,r}function FO(t,e,r){t.Workbook||(t.Workbook={}),t.Workbook.Sheets||(t.Workbook.Sheets=[]);var A=CO(t,e);switch(t.Workbook.Sheets[A]||(t.Workbook.Sheets[A]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}t.Workbook.Sheets[A].Hidden=r}function SO(t,e){return t.z=e,t}function Gy(t,e,r){return e?(t.l={Target:e},r&&(t.l.Tooltip=r)):delete t.l,t}function _O(t,e,r){return Gy(t,"#"+e,r)}function TO(t,e,r){t.c||(t.c=[]),t.c.push({t:e,a:r||"SheetJS"})}function UO(t,e,r,A){for(var n=typeof e!="string"?e:wr(e),a=typeof e=="string"?e:jr(e),i=n.s.r;i<=n.e.r;++i)for(var s=n.s.c;s<=n.e.c;++s){var o=Zl(t,i,s);o.t="n",o.F=a,delete o.v,i==n.s.r&&s==n.s.c&&(o.f=r,A&&(o.D=!0))}return t}var Ga={encode_col:UA,encode_row:vA,encode_cell:tr,encode_range:jr,decode_col:a1,decode_row:n1,split_cell:zI,decode_cell:sA,decode_range:un,format_cell:Va,sheet_add_aoa:SB,sheet_add_json:Ky,sheet_add_dom:ky,aoa_to_sheet:fo,json_to_sheet:xO,table_to_sheet:Oy,table_to_book:tO,sheet_to_csv:C1,sheet_to_txt:Vy,sheet_to_json:Pu,sheet_to_html:Qy,sheet_to_formulae:yO,sheet_to_row_object_array:Pu,sheet_get_cell:Zl,book_new:bO,book_append_sheet:EO,book_set_sheet_visibility:FO,cell_set_number_format:SO,cell_set_hyperlink:Gy,cell_set_internal_link:_O,cell_add_comment:TO,sheet_set_array_formula:UO,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function jy(t,e,r,A,n){let{series:a}=t;if(!a||t.base===0)return{...a,proportion:0,ratio:0,path:"",startX:0,startY:0,endX:0,center:{}};const i=[...a].map(l=>l.value).reduce((l,c)=>l+c,0),s=[];let o=0;for(let l=0;l<a.length;l+=1){let c=a[l].value/i;const d=c*(Math.PI*1.9999),h=a[l].value/2/i*(Math.PI*2),{startX:m,startY:v,endX:B,endY:x,path:b}=Xy([e,r],[A,n],[o,d],110);s.push({...a[l],proportion:c,ratio:d,path:b,startX:m,startY:v,endX:B,endY:x,center:Xy([e,r],[A*1.45,n*1.45],[o,h],110)}),o+=d}return s}function zy([t,e],[r,A]){return[t+r,e+A]}function Wy([[t,e],[r,A]],[n,a]){return[t*n+e*a,r*n+A*a]}function IO(t){return[[Math.cos(t),-Math.sin(t)],[Math.sin(t),Math.cos(t)]]}function Xy([t,e],[r,A],[n,a],i){a=a%(2*Math.PI);const s=IO(i),[o,l]=zy(Wy(s,[r*Math.cos(n),A*Math.sin(n)]),[t,e]),[c,d]=zy(Wy(s,[r*Math.cos(n+a),A*Math.sin(n+a)]),[t,e]),g=a>Math.PI?1:0,h=a>0?1:0;return{startX:o,startY:l,endX:c,endY:d,path:`M${o} ${l} A ${[r,A,i/(2*Math.PI)*360,g,h,c,d].join(" ")}`}}function Mu({defaultConfig:t,userConfig:e}){const r={...t};return Object.keys(r).forEach(A=>{if(Object.hasOwn(e,A)){const n=e[A];typeof n=="boolean"?r[A]=n:["string","number"].includes(typeof n)?QO(n)&&(r[A]=n):Array.isArray(r[A])?NO({userConfig:e,key:A})&&(r[A]=n):LO({userConfig:e,key:A})&&(r[A]=Mu({defaultConfig:r[A],userConfig:n}))}}),r}function NO({userConfig:t,key:e}){return Object.hasOwn(t,e)&&Array.isArray(t[e])&&t[e].length}function LO({userConfig:t,key:e}){return Object.hasOwn(t,e)&&!Array.isArray(t[e])&&typeof t[e]=="object"}function QO(t){return![null,void 0,NaN,1/0,-1/0].includes(t)}function kO(t){return![void 0,NaN,1/0,-1/0].includes(t)}function OO(t,e=0){return isNaN(t)?e:t}const Ui=["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac","#b77322","#16d620","#b91383","#f4359e","#9c5935","#a9c413","#2a778d","#668d1c","#bea413","#0c5922","#743411"];function qy(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,a,i,s]=n;return`#${a}${i}${s}`}else if(n=t.match(r)){const[,a,i,s]=n;return`#${xo(a)}${xo(i)}${xo(s)}`}else if(n=t.match(A)){const[,a,i,s]=n,o=DO(Number(a),Number(i),Number(s));return`#${xo(o[0])}${xo(o[1])}${xo(o[2])}`}return null}function xo(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e}function DO(t,e,r){t/=360,e/=100,r/=100;let A,n,a;if(e===0)A=n=a=r;else{const i=(l,c,d)=>(d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?l+(c-l)*6*d:d<.5?c:d<.6666666666666666?l+(c-l)*(.6666666666666666-d)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=i(o,s,t+1/3),n=i(o,s,t),a=i(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(a*255)]}const _J="",b1=(t,e)=>{const r=t.__vccOpts||t;for(const[A,n]of e)r[A]=n;return r},PO={name:"vue-ui-xy",props:{config:{type:Object,default(){return{}}},dataset:{type:Array,default(){return[]}}},data(){const t=`vue-data-ui-xy_${Math.random()}_${Math.random()}`;return{useSafeValues:!0,palette:Ui,defaultConfig:{showWarnings:!0,showTable:!0,chart:{fontFamily:"inherit",backgroundColor:"#FFFFFF",color:"#2D353C",height:300,width:500,padding:{top:36,right:12,bottom:12,left:48},grid:{stroke:"#e1e5e8",showVerticalLines:!1,labels:{color:"#2D353C",show:!0,fontSize:10,axis:{yLabel:"",xLabel:"",fontSize:12},xAxisLabels:{color:"#2D353C",show:!0,values:[],fontSize:6}}},labels:{fontSize:10},legend:{color:"#2D353C",show:!0,useDiv:!0,fontSize:16},title:{show:!0,useDiv:!0,color:"#2D353C",text:"",fontSize:20,bold:!0,offsetX:0,offsetY:0,subtitle:{fontSize:16,color:"grey",text:""}},tooltip:{color:"#2D353C",backgroundColor:"white",show:!0,showValue:!0,showPercentage:!1,roundingValue:0,roundingPercentage:0},userOptions:{show:!0,title:"options",labels:{dataLabels:"Show datalabels",titleInside:"Title inside",legendInside:"Legend inside",showTable:"Show table"}}},bar:{useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},line:{radius:3,useGradient:!0,strokeWidth:2,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},plot:{radius:3,useGradient:!0,labels:{show:!1,offsetY:-6,rounding:0,color:"#2D353C"}},table:{rounding:0,th:{backgroundColor:"#FAFAFA",color:"#2D353C",outline:"1px solid #e1e5e8"},td:{backgroundColor:"#FFFFFF",color:"#2D353C",outline:"1px solid #e1e5e8"}}},clientPosition:{x:0,y:0},icons:{line:"▬",bar:"◼",plot:"●"},isPrinting:!1,isTooltip:!1,mutableConfig:{dataLabels:{show:!0},titleInside:!0,legendInside:!0,showTable:!1},selectedSerieIndex:null,selectedRowIndex:null,segregatedSeries:[],uniqueId:t}},computed:{chartConfig(){return Object.keys(this.config||{}).length?this.treeShake({defaultConfig:this.defaultConfig,userConfig:this.config}):this.defaultConfig},relativeZero(){return this.min>=0?0:Math.abs(this.min)},absoluteMax(){return this.max+this.relativeZero},safeDataset(){return this.useSafeValues?this.dataset.map((t,e)=>({...t,series:t.series.map(r=>this.isSafeValue(r)?r:null),id:`uniqueId_${e}`})):this.dataset},relativeDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])})).filter(t=>!this.segregatedSeries.includes(t.id))},absoluteDataset(){return this.safeDataset.map((t,e)=>({...t,series:t.series.map(r=>r+this.relativeZero),absoluteValues:t.series,color:this.convertColorToHex(t.color?t.color:this.palette[e])}))},barSet(){return this.absoluteDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).map((t,e)=>({...t,plots:t.series.map((r,A)=>({x:this.drawingArea.left-this.slot.bar/2+this.slot.bar*e+this.slot.bar*A*this.absoluteDataset.filter(n=>n.type==="bar").filter(n=>!this.segregatedSeries.includes(n.id)).length,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(r),value:t.absoluteValues[A]}))}))},lineSet(){return this.absoluteDataset.filter(t=>t.type==="line").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.line/2+this.slot.line*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},plotSet(){return this.absoluteDataset.filter(t=>t.type==="plot").filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>({...t,plots:t.series.map((e,r)=>({x:this.drawingArea.left+this.slot.plot/2+this.slot.plot*r,y:this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(e),value:t.absoluteValues[r]}))}))},drawingArea(){return{top:this.chartConfig.chart.padding.top,right:this.chartConfig.chart.width-this.chartConfig.chart.padding.right,bottom:this.chartConfig.chart.height-this.chartConfig.chart.padding.bottom,left:this.chartConfig.chart.padding.left,height:this.chartConfig.chart.height-(this.chartConfig.chart.padding.top+this.chartConfig.chart.padding.bottom),width:this.chartConfig.chart.width-(this.chartConfig.chart.padding.right+this.chartConfig.chart.padding.left)}},max(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.max(...t.series)))},min(){return Math.min(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>Math.min(...t.series)))},maxSeries(){return Math.max(...this.safeDataset.filter(t=>!this.segregatedSeries.includes(t.id)).map(t=>t.series.length))},slot(){return{bar:this.drawingArea.width/this.maxSeries/this.safeDataset.filter(t=>t.type==="bar").filter(t=>!this.segregatedSeries.includes(t.id)).length,plot:this.drawingArea.width/this.maxSeries,line:this.drawingArea.width/this.maxSeries}},maxSlot(){return Math.max(...Object.values(this.slot).filter(t=>t!==1/0))},table(){if(this.safeDataset.length===0)return{head:[],body:[]};const t=[...this.plotSet,...this.barSet,...this.lineSet].map(r=>({label:r.name,color:r.color,type:r.type})),e=[];return this.chartConfig.chart.grid.labels.xAxisLabels.values.forEach((r,A)=>{const n=[r];this.plotSet.length&&this.plotSet.forEach(a=>{n.push(this.canShowValue(a.absoluteValues[A])?Number(a.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.barSet.length&&this.barSet.forEach(a=>{n.push(this.canShowValue(a.absoluteValues[A])?Number(a.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),this.lineSet.length&&this.lineSet.forEach(a=>{n.push(this.canShowValue(a.absoluteValues[A])?Number(a.absoluteValues[A].toFixed(this.chartConfig.table.rounding)):"")}),e.push(n)}),{head:t,body:e}},tooltipContent(){const t=this.relativeDataset.map(n=>({name:n.name,color:n.color,type:n.type,value:n.absoluteValues.find((a,i)=>i===this.selectedSerieIndex)}));let e="",r=t.map(n=>n.value).filter(n=>this.isSafeValue(n)&&n!==null).reduce((n,a)=>Math.abs(n)+Math.abs(a),0);const A=this.chartConfig.chart.grid.labels.xAxisLabels.values[this.selectedSerieIndex];return A&&(e+=`<div style="padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #e1e5e8; width:100%">${A}</div>`),t.forEach(n=>{this.isSafeValue(n.value)&&n.value!==null&&(e+=`<div><span style="color:${n.color}; margin-right: 3px">${this.icons[n.type]}</span>${n.name} : <b>${this.chartConfig.chart.tooltip.showValue?n.value.toFixed(this.chartConfig.chart.tooltip.roundingValue):""}</b> ${this.chartConfig.chart.tooltip.showPercentage?`(${this.checkNaN(Math.abs(n.value)/r*100).toFixed(this.chartConfig.chart.tooltip.roundingPercentage)}%)`:""}</div>`)}),`<div style="border-radius:4px;padding:12px;font-variant-numeric: tabular-nums; background:${this.chartConfig.chart.tooltip.backgroundColor};color:${this.chartConfig.chart.tooltip.color}">${e}</div>`},tooltipPosition(){const t=this.$refs.tooltip,e=this.$refs.chart;let r=0,A=48;if(t&&e){const{width:n,height:a}=t.getBoundingClientRect(),i=e.getBoundingClientRect();this.clientPosition.x+n/2>i.right?r=-n:this.clientPosition.x-n/2<i.left?r=0:r=-n/2,this.clientPosition.y+a>i.bottom&&(A=-a-48)}return{top:this.clientPosition.y+A,left:this.clientPosition.x+r}},viewBox(){return`0 0 ${this.chartConfig.chart.width} ${this.chartConfig.chart.height}`},yLabels(){const t=this.closestDecimal(this.max/5),e=[];for(let n=5;n>0;n-=1){const a=t*n;e.push({y:this.zero-this.drawingArea.height*this.ratioToMax(t*n),value:a})}const r=this.closestDecimal(this.min/5),A=[];for(let n=5;n>=0;n-=1){const a=Math.abs(r)*n;A.push({y:this.zero+this.drawingArea.height*this.ratioToMax(Math.abs(r)*n),value:-a})}return[...e,...A]},zero(){return this.drawingArea.bottom-this.drawingArea.height*this.ratioToMax(this.relativeZero)}},mounted(){const t=document.getElementById("yAxisLabel");if(t){const r=t.getBBox().height/2+this.chartConfig.chart.padding.left/5,A=this.chartConfig.chart.height/2;t.setAttributeNS(null,"transform",`rotate(-90, ${r}, ${A})`),t.setAttributeNS(null,"x",r),t.setAttributeNS(null,"y",A),t.setAttributeNS(null,"font-size",this.chartConfig.chart.grid.labels.axis.fontSize)}this.chartConfig.showWarnings&&this.dataset.forEach(e=>{e.series.forEach((r,A)=>{this.isSafeValue(r)||console.warn(`SmartXY has detected an unsafe value in your dataset:
359
359
  -----> The serie '${e.name}' contains the value '${r}' at index ${A}.
360
- '${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{checkNaN:OO,isSafeValue:kO,treeShake:Mu,calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let A;return t<0,A=Math.round(t/r)*r,A},convertColorToHex(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,a,i,s]=n;return`#${a}${i}${s}`}else if(n=t.match(r)){const[,a,i,s]=n;return`#${this.decimalToHex(a)}${this.decimalToHex(i)}${this.decimalToHex(s)}`}else if(n=t.match(A)){const[,a,i,s]=n,o=this.hslToRgb(Number(a),Number(i),Number(s));return`#${this.decimalToHex(o[0])}${this.decimalToHex(o[1])}${this.decimalToHex(o[2])}`}return null},decimalToHex(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e},hslToRgb(t,e,r){t/=360,e/=100,r/=100;let A,n,a;if(e===0)A=n=a=r;else{const i=(l,c,d)=>(d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?l+(c-l)*6*d:d<.5?c:d<.6666666666666666?l+(c-l)*(.6666666666666666-d)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=i(o,s,t+1/3),n=i(o,s,t),a=i(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(a*255)]},ratioToMax(t){return t/this.absoluteMax},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}},shiftHue(t,e){const r=l=>({r:parseInt(l.substring(1,3),16),g:parseInt(l.substring(3,5),16),b:parseInt(l.substring(5,7),16)}),A=({r:l,g:c,b:d})=>{l/=255,c/=255,d/=255;const g=Math.max(l,c,d),h=Math.min(l,c,d);let m,v,B=(g+h)/2;if(g===h)m=v=0;else{const x=g-h;switch(v=B>.5?x/(2-g-h):x/(g+h),g){case l:m=(c-d)/x+(c<d?6:0);break;case c:m=(d-l)/x+2;break;case d:m=(l-c)/x+4;break}m/=6}return{h:m,s:v,l:B}},n=({h:l,s:c,l:d})=>{let g,h,m;if(c===0)g=h=m=d;else{const v=(b,F,O)=>(O<0&&(O+=1),O>1&&(O-=1),O<.16666666666666666?b+(F-b)*6*O:O<.5?F:O<.6666666666666666?b+(F-b)*(.6666666666666666-O)*6:b),B=d<.5?d*(1+c):d+c-d*c,x=2*d-B;g=v(x,B,l+.3333333333333333),h=v(x,B,l),m=v(x,B,l-.3333333333333333)}return{r:Math.round(g*255),g:Math.round(h*255),b:Math.round(m*255)}},a=r(t),i=A(a);i.h+=e,i.h=(i.h+1)%1;const s=n(i);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){const t=this.$refs.chart;t&&(this.isPrinting=!0,this.$nextTick(()=>{const e={height:851.89,width:595.28},r=new Bt("","pt","a4");let A,n,a,i,s;xd(t).then(o=>{A=o.width,n=o.height;let l=n;const c=A/e.width*e.height;let d=0;if(a=e.width,i=582.28/A*n,s=o.toDataURL("image/png",1),l<c)r.addImage(s,"PNG",33,24,a*.9,i*.9,"","FAST");else for(;l>0;)r.addImage(s,"PNG",33,d,a*.9,i*.9,"","FAST"),l-=c,d-=e.height-24,l>0&&r.addPage();r.save(`${this.chartConfig.chart.title.text||"vue-ui-xy"}.pdf`)}).finally(()=>{this.isPrinting=!1})}))},generateXls(){const t=[[this.chartConfig.chart.title.text],[this.chartConfig.chart.title.subtitle.text],[""]],e=["",...this.table.head.map(c=>c.label)],r=this.table.body,A=t.concat([e]).concat(r);function n(c){let d=new ArrayBuffer(c.length),g=new Uint8Array(d);for(let h=0;h<c.length;h++)g[h]=c.charCodeAt(h)&255;return d}const a=Ga.book_new(),i=Ga.aoa_to_sheet(A);Ga.book_append_sheet(a,i,"Sheet1");const s=Du(a,{bookType:"xlsx",type:"binary"}),o=new Blob([n(s)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=document.createElement("a");l.href=window.URL.createObjectURL(o),l.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,l.click(),window.URL.revokeObjectURL(l.href)}}},MO=t=>(u.pushScopeId("data-v-ade50da0"),t=t(),u.popScopeId(),t),RO={class:"vue-ui-xy-user-option-item"},HO=["id","name"],VO=["for"],KO={class:"vue-ui-xy-user-option-item"},GO=["id","name"],jO=["for"],zO={class:"vue-ui-xy-user-option-item"},WO=["id","name"],XO=["for"],qO={class:"vue-ui-xy-user-option-item"},YO=["id","name"],$O=["for"],JO=["disabled"],ZO={key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},eD=[u.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-ade50da0></path><path d="M18 16v.01" data-v-ade50da0></path><path d="M6 16v.01" data-v-ade50da0></path><path d="M12 5v.01" data-v-ade50da0></path><path d="M12 12v.01" data-v-ade50da0></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-ade50da0></path>',6)],tD={key:1},rD=["viewBox"],AD={class:"vue-ui-xy-grid"},nD=["stroke","x1","x2","y1","y2"],aD=["stroke","x1","x2","y1","y2"],iD={key:0},sD=["x1","x2","y1","y2","stroke"],oD=["id"],lD=["stop-color"],cD=["stop-color"],fD=["stop-color"],uD=["id"],hD=["stop-color"],dD=["stop-color"],gD=["stop-color"],pD=["id"],mD=["stop-color"],vD=["stop-color"],wD=["id"],BD=["stop-color"],yD=["stop-color"],xD=["x","y","height","width","fill"],CD=["cx","cy","r","fill","stroke"],bD=["x1","x2","y1","y2","stroke","stroke-width"],ED=["cx","cy","r","fill","stroke"],FD={key:0},SD=["x","y","font-size","fill"],_D={key:1},TD=["x","y","font-size","fill"],UD={key:2},ID=["x","y","font-size","fill"],ND={key:3},LD=["x1","x2","y1","y2","stroke"],QD=["x","y","font-size","fill"],kD=["font-size","fill"],OD=["x","y","font-size","fill"],DD={key:4},PD={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},MD={key:5},RD=["y"],HD={class:"vue-ui-xy-legend"},VD=["onClick"],KD={key:6},GD=["y","x","font-size","fill"],jD={key:7},zD=["x","y","height","width","fill","onMouseenter"],WD=["onClick"],XD=["innerHTML"],qD=["innerHTML"],YD={class:"vue-ui-xy-table"},$D={style:{"max-width":"200px",margin:"0 auto"}},JD=[MO(()=>u.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[u.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],ZD=["onMouseover"];function eP(t,e,r,A,n,a){return u.openBlock(),u.createElementBlock("div",{class:"vue-ui-xy",ref:"chart",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color};width:100%`)},[a.chartConfig.chart.title.show&&(!n.mutableConfig.titleInside||n.isPrinting)?(u.openBlock(),u.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:u.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[u.createElementVNode("div",{class:"vue-ui-xy-title-main",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},u.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(u.openBlock(),u.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize}px; color:${a.chartConfig.chart.title.subtitle.color}`)},u.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):u.createCommentVNode("",!0)],4)):u.createCommentVNode("",!0),a.chartConfig.chart.userOptions.show?(u.openBlock(),u.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[u.createElementVNode("summary",{style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},u.toDisplayString(a.chartConfig.chart.userOptions.title),5),u.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},[u.createElementVNode("div",RO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-datalabels_${n.uniqueId}`,name:`vue-ui-xy-option-datalabels_${n.uniqueId}`,"onUpdate:modelValue":e[0]||(e[0]=i=>n.mutableConfig.dataLabels.show=i)},null,8,HO),[[u.vModelCheckbox,n.mutableConfig.dataLabels.show]]),u.createElementVNode("label",{for:`vue-ui-xy-option-datalabels_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.dataLabels),9,VO)]),u.createElementVNode("div",KO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-title_${n.uniqueId}`,name:`vue-ui-xy-option-title_${n.uniqueId}`,"onUpdate:modelValue":e[1]||(e[1]=i=>n.mutableConfig.titleInside=i)},null,8,GO),[[u.vModelCheckbox,n.mutableConfig.titleInside]]),u.createElementVNode("label",{for:`vue-ui-xy-option-title_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.titleInside),9,jO)]),u.createElementVNode("div",zO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-legend_${n.uniqueId}`,name:`vue-ui-xy-option-legend_${n.uniqueId}`,"onUpdate:modelValue":e[2]||(e[2]=i=>n.mutableConfig.legendInside=i)},null,8,WO),[[u.vModelCheckbox,n.mutableConfig.legendInside]]),u.createElementVNode("label",{for:`vue-ui-xy-option-legend_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.legendInside),9,XO)]),u.createElementVNode("div",qO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-table_${n.uniqueId}`,name:`vue-ui-xy-option-table_${n.uniqueId}`,"onUpdate:modelValue":e[3]||(e[3]=i=>n.mutableConfig.showTable=i)},null,8,YO),[[u.vModelCheckbox,n.mutableConfig.showTable]]),u.createElementVNode("label",{for:`vue-ui-xy-option-table_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.showTable),9,$O)]),u.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...i)=>a.generatePdf&&a.generatePdf(...i)),disabled:n.isPrinting,style:{"margin-top":"12px"}},[n.isPrinting?(u.openBlock(),u.createElementBlock("svg",ZO,eD)):(u.openBlock(),u.createElementBlock("span",tD,"PDF"))],8,JO),u.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...i)=>a.generateXls&&a.generateXls(...i))}," XLSX ")],4)],4)):u.createCommentVNode("",!0),(u.openBlock(),u.createElementBlock("svg",{width:"100%",viewBox:a.viewBox,class:"vue-ui-xy-svg",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color}; font-family:${a.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[u.createElementVNode("g",AD,[u.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-linecap":"round"},null,8,nD),u.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.right,y1:a.zero,y2:a.zero,"stroke-linecap":"round"},null,8,aD),a.chartConfig.chart.grid.showVerticalLines?(u.openBlock(),u.createElementBlock("g",iD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.maxSeries+1,(i,s)=>(u.openBlock(),u.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,x2:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-width":"0.5",stroke:a.chartConfig.chart.grid.stroke},null,8,sD))),128))])):u.createCommentVNode("",!0)]),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.barSet,(i,s)=>(u.openBlock(),u.createElementBlock("defs",{key:`def_rect_${s}`},[u.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[u.createElementVNode("stop",{offset:"0%","stop-color":i.color},null,8,lD),u.createElementVNode("stop",{offset:"62%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,cD),u.createElementVNode("stop",{offset:"100%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,fD)],8,oD),u.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[u.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,hD),u.createElementVNode("stop",{offset:"38%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,dD),u.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,gD)],8,uD)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.plotSet,(i,s)=>(u.openBlock(),u.createElementBlock("defs",{key:`def_plot_${s}`},[u.createElementVNode("radialGradient",{id:`plotGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[u.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,mD),u.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,vD)],8,pD)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.lineSet,(i,s)=>(u.openBlock(),u.createElementBlock("defs",{key:`def_line_${s}`},[u.createElementVNode("radialGradient",{id:`lineGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[u.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,BD),u.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,yD)],8,wD)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.barSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`serie_bar_${s}`,class:u.normalizeClass(`serie_bar_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`bar_plot_${s}_${l}`},[a.canShowValue(o.value)?(u.openBlock(),u.createElementBlock("rect",{key:0,x:a.calcRectX(o),y:a.calcRectY(o),height:a.calcRectHeight(o),width:a.calcRectWidth(),fill:a.chartConfig.bar.useGradient?o.value>=0?`url(#rectGradient_pos_${s}_${n.uniqueId})`:`url(#rectGradient_neg_${s}_${n.uniqueId})`:i.color},null,8,xD)):u.createCommentVNode("",!0)]))),128))],2))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.plotSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`serie_plot_${s}`,class:u.normalizeClass(`serie_plot_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`circle_plot_${s}_${l}`},[a.canShowValue(o.value)?(u.openBlock(),u.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:a.chartConfig.plot.radius,fill:a.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${n.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,CD)):u.createCommentVNode("",!0)]))),128))],2))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.lineSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`serie_line_${s}`,class:u.normalizeClass(`serie_line_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`line_${s}_${l}`},[l<i.plots.length-1&&a.canShowValue(o.value)&&a.canShowValue(i.plots[l+1].value)?(u.openBlock(),u.createElementBlock("line",{key:0,x1:o.x,x2:i.plots[l+1].x,y1:o.y,y2:i.plots[l+1].y,stroke:i.color,"stroke-width":a.chartConfig.line.strokeWidth},null,8,bD)):u.createCommentVNode("",!0)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`circle_line_${s}_${l}`},[a.canShowValue(o.value)?(u.openBlock(),u.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:a.chartConfig.line.radius,fill:a.chartConfig.line.useGradient?`url(#lineGradient_${s}_${n.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,ED)):u.createCommentVNode("",!0)]))),128))],2))),128)),a.chartConfig.bar.labels.show&&n.mutableConfig.dataLabels.show?(u.openBlock(),u.createElementBlock("g",FD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.barSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_bar_${s}`,class:u.normalizeClass(`xLabel_bar_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_bar_${s}_${l}`},[u.createElementVNode("text",{x:o.x+a.calcRectWidth(),y:o.y+a.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.bar.labels.color},u.toDisplayString(a.canShowValue(o.value)?o.value.toFixed(a.chartConfig.bar.labels.rounding):""),9,SD)]))),128))],2))),128))])):u.createCommentVNode("",!0),a.chartConfig.plot.labels.show&&n.mutableConfig.dataLabels.show?(u.openBlock(),u.createElementBlock("g",_D,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.plotSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_plot_${s}`,class:u.normalizeClass(`xLabel_plot_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_plot_${s}_${l}`},[u.createElementVNode("text",{x:o.x,y:o.y+a.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.plot.labels.color},u.toDisplayString(a.canShowValue(o.value)?o.value.toFixed(a.chartConfig.plot.labels.rounding):""),9,TD)]))),128))],2))),128))])):u.createCommentVNode("",!0),a.chartConfig.line.labels.show&&n.mutableConfig.dataLabels.show?(u.openBlock(),u.createElementBlock("g",UD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.lineSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_line_${s}`,class:u.normalizeClass(`xLabel_line_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_line_${s}_${l}`},[u.createElementVNode("text",{x:o.x,y:o.y+a.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.line.labels.color},u.toDisplayString(a.canShowValue(o.value)?o.value.toFixed(a.chartConfig.line.labels.rounding):""),9,ID)]))),128))],2))),128))])):u.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.show?(u.openBlock(),u.createElementBlock("g",ND,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.yLabels,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`yLabel_${s}`},[i.value>=a.min&&i.value<=a.max?(u.openBlock(),u.createElementBlock("line",{key:0,x1:a.drawingArea.left,x2:a.drawingArea.left-5,y1:i.y,y2:i.y,stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,LD)):u.createCommentVNode("",!0),i.value>=a.min&&i.value<=a.max?(u.openBlock(),u.createElementBlock("text",{key:1,x:a.drawingArea.left-5,y:i.y+a.chartConfig.chart.labels.fontSize/3,"font-size":a.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:a.chartConfig.chart.grid.labels.color},u.toDisplayString(a.canShowValue(i.value)?i.value.toFixed(0):""),9,QD)):u.createCommentVNode("",!0)]))),128))])):u.createCommentVNode("",!0),u.createElementVNode("g",null,[a.chartConfig.chart.grid.labels.axis.yLabel?(u.openBlock(),u.createElementBlock("text",{key:0,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},u.toDisplayString(a.chartConfig.chart.grid.labels.axis.yLabel),9,kD)):u.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.axis.xLabel?(u.openBlock(),u.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.chartConfig.chart.width/2,y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.axis.fontSize+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color},u.toDisplayString(a.chartConfig.chart.grid.labels.axis.xLabel),9,OD)):u.createCommentVNode("",!0)]),a.chartConfig.chart.title.show&&n.mutableConfig.titleInside&&!n.isPrinting?(u.openBlock(),u.createElementBlock("g",DD,[(u.openBlock(),u.createElementBlock("foreignObject",PD,[u.createElementVNode("div",{class:"vue-ui-xy-title",style:u.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[u.createElementVNode("div",{class:"vue-ui-xy-title-main",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize*.6}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},u.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(u.openBlock(),u.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${a.chartConfig.chart.title.subtitle.color}`)},u.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):u.createCommentVNode("",!0)],4)]))])):u.createCommentVNode("",!0),a.chartConfig.chart.legend.show&&n.mutableConfig.legendInside&&!n.isPrinting?(u.openBlock(),u.createElementBlock("g",MD,[(u.openBlock(),u.createElementBlock("foreignObject",{x:"0",y:a.drawingArea.bottom+a.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:u.normalizeStyle(`overflow:visible; font-size:${a.chartConfig.chart.legend.fontSize*.6}px`)},[u.createElementVNode("div",HD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.absoluteDataset,(i,s)=>(u.openBlock(),u.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>a.segregate(i),class:u.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(i.id)})},[["plot"].includes(i.type)?(u.openBlock(),u.createElementBlock("span",{key:0,style:u.normalizeStyle(`color:${i.color}`)},"●",4)):u.createCommentVNode("",!0),["line"].includes(i.type)?(u.openBlock(),u.createElementBlock("span",{key:1,style:u.normalizeStyle(`color:${i.color}`)},"▬",4)):u.createCommentVNode("",!0),["bar"].includes(i.type)?(u.openBlock(),u.createElementBlock("span",{key:2,style:u.normalizeStyle(`color:${i.color}`)},"◼",4)):u.createCommentVNode("",!0),u.createElementVNode("span",{style:u.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},u.toDisplayString(i.name),5)],10,VD))),128))])],12,RD))])):u.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.xAxisLabels.show?(u.openBlock(),u.createElementBlock("g",KD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.maxSeries,(i,s)=>(u.openBlock(),u.createElementBlock("text",{key:`time_label_${s}`,"text-anchor":"middle",y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s+a.drawingArea.width/a.maxSeries/2,"font-size":a.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:a.chartConfig.chart.grid.labels.xAxisLabels.color},u.toDisplayString(a.chartConfig.chart.grid.labels.xAxisLabels.values[s]||""),9,GD))),128))])):u.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show?(u.openBlock(),u.createElementBlock("g",jD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.maxSeries,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`tooltip_trap_${s}`},[u.createElementVNode("rect",{x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s,y:a.drawingArea.top,height:a.drawingArea.height,width:a.drawingArea.width/a.maxSeries,fill:n.selectedSerieIndex===s||n.selectedRowIndex===s?"rgba(0,0,0,0.03)":"transparent",onMouseenter:o=>a.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=o=>a.toggleTooltip(!1))},null,40,zD)]))),128))])):u.createCommentVNode("",!0)],12,rD)),a.chartConfig.chart.legend.show&&(!n.mutableConfig.legendInside||n.isPrinting)?(u.openBlock(),u.createElementBlock("div",{key:2,class:"vue-ui-xy-legend",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.legend.fontSize}px`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.absoluteDataset,(i,s)=>(u.openBlock(),u.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>a.segregate(i),class:u.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(i.id)})},[u.createElementVNode("span",{style:u.normalizeStyle(`color:${i.color}`),innerHTML:n.icons[i.type]},null,12,XD),u.createElementVNode("span",{style:u.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},u.toDisplayString(i.name),5)],10,WD))),128))],4)):u.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show&&n.isTooltip?(u.openBlock(),u.createElementBlock("div",{key:3,class:"vue-ui-xy-tooltip",ref:"tooltip",style:u.normalizeStyle(`top:${a.tooltipPosition.top}px;left:${a.tooltipPosition.left}px; background-color:${a.chartConfig.chart.tooltip.backgroundColor};color:${a.chartConfig.chart.tooltip.color}`),innerHTML:a.tooltipContent},null,12,qD)):u.createCommentVNode("",!0),a.chartConfig.showTable&&n.mutableConfig.showTable?(u.openBlock(),u.createElementBlock("div",{key:4,class:u.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":n.isPrinting}),onClick:e[9]||(e[9]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[u.createElementVNode("table",YD,[u.createElementVNode("thead",null,[u.createElementVNode("tr",null,[u.createElementVNode("th",{style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},null,4),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.table.head,(i,s)=>(u.openBlock(),u.createElementBlock("th",{key:`th_${s}`,style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},[u.createElementVNode("div",$D,[u.createElementVNode("span",{style:u.normalizeStyle(`color:${i.color}; margin-right:3px`)},u.toDisplayString(n.icons[i.type]),5),u.createTextVNode(u.toDisplayString(i.label),1)])],4))),128))]),u.createElementVNode("tr",null,[u.createElementVNode("th",{align:"right",style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},JD,4),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.table.head,(i,s)=>(u.openBlock(),u.createElementBlock("th",{key:`th_sum_${s}`,style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},u.toDisplayString(a.relativeDataset[s].absoluteValues.reduce((o,l)=>o+l,0).toFixed(a.chartConfig.table.rounding)),5))),128))])]),u.createElementVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.table.body,(i,s)=>(u.openBlock(),u.createElementBlock("tr",{key:`tr_${s}`,class:u.normalizeClass({"vue-ui-xy-table-tr-selected":n.selectedSerieIndex===s||n.selectedRowIndex===s}),onMouseover:o=>n.selectedRowIndex=s,onMouseleave:e[8]||(e[8]=o=>n.selectedRowIndex=null)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i,(o,l)=>(u.openBlock(),u.createElementBlock("td",{key:`td_${s}_${l}`,style:u.normalizeStyle(`background:${a.chartConfig.table.td.backgroundColor};color:${a.chartConfig.table.td.color}`)},u.toDisplayString(o),5))),128))],42,ZD))),128))])])],2)):u.createCommentVNode("",!0)],4)}const tP=b1(PO,[["render",eP],["__scopeId","data-v-ade50da0"]]),IJ="",rP={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,defaultConfig:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((e,r)=>e-r),palette:Ui,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(e=>({average:Object.hasOwn(e,"average")?e.average:!1,decimals:Object.hasOwn(e,"decimals")?e.decimals:0,isMultiselect:Object.hasOwn(e,"isMultiselect")?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,"isPercentage")?e.isPercentage:!1,isSearch:Object.hasOwn(e,"isSearch")?e.isSearch:!1,isSort:Object.hasOwn(e,"isSort")?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,"percentageTo")?e.percentageTo:void 0,prefix:Object.hasOwn(e,"prefix")?e.prefix:"",rangeFilter:Object.hasOwn(e,"rangeFilter")?e.rangeFilter:!1,suffix:Object.hasOwn(e,"suffix")?e.suffix:"",sum:Object.hasOwn(e,"sum")?e.sum:!1,type:e.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
360
+ '${r}' was converted to null to allow the chart to display.`)})}),document.addEventListener("mousemove",e=>{this.clientPosition={x:e.clientX,y:e.clientY}}),this.mutableConfig={dataLabels:{show:!0},titleInside:!this.chartConfig.chart.title.useDiv,legendInside:!this.chartConfig.chart.legend.useDiv}},methods:{checkNaN:OO,isSafeValue:kO,treeShake:Mu,calcRectHeight(t){return t.value>=0?this.zero-t.y:t.y-this.zero},calcRectWidth(){return this.slot.bar*.9},calcRectX(t){return t.x+this.slot.bar*.05+this.slot.bar/2},calcRectY(t){return t.value>=0?t.y:this.zero},canShowValue(t){return![null,void 0,NaN].includes(t)},closeDetails(){const t=this.$refs.details;t&&t.removeAttribute("open")},closestDecimal(t){if(t===0)return 0;const r=10**Math.floor(Math.log10(Math.abs(t)));let A;return t<0,A=Math.round(t/r)*r,A},convertColorToHex(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,r=/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*[\d.]+)?\)$/i,A=/^hsla?\((\d+),\s*([\d.]+)%,\s*([\d.]+)%(?:,\s*[\d.]+)?\)$/i;let n;if(n=t.match(e)){const[,a,i,s]=n;return`#${a}${i}${s}`}else if(n=t.match(r)){const[,a,i,s]=n;return`#${this.decimalToHex(a)}${this.decimalToHex(i)}${this.decimalToHex(s)}`}else if(n=t.match(A)){const[,a,i,s]=n,o=this.hslToRgb(Number(a),Number(i),Number(s));return`#${this.decimalToHex(o[0])}${this.decimalToHex(o[1])}${this.decimalToHex(o[2])}`}return null},decimalToHex(t){const e=Number(t).toString(16);return e.length===1?"0"+e:e},hslToRgb(t,e,r){t/=360,e/=100,r/=100;let A,n,a;if(e===0)A=n=a=r;else{const i=(l,c,d)=>(d<0&&(d+=1),d>1&&(d-=1),d<.16666666666666666?l+(c-l)*6*d:d<.5?c:d<.6666666666666666?l+(c-l)*(.6666666666666666-d)*6:l),s=r<.5?r*(1+e):r+e-r*e,o=2*r-s;A=i(o,s,t+1/3),n=i(o,s,t),a=i(o,s,t-1/3)}return[Math.round(A*255),Math.round(n*255),Math.round(a*255)]},ratioToMax(t){return t/this.absoluteMax},segregate(t){if(this.segregatedSeries.includes(t.id))this.segregatedSeries=this.segregatedSeries.filter(e=>e!==t.id);else{if(this.segregatedSeries.length+1===this.safeDataset.length)return;this.segregatedSeries.push(t.id)}},shiftHue(t,e){const r=l=>({r:parseInt(l.substring(1,3),16),g:parseInt(l.substring(3,5),16),b:parseInt(l.substring(5,7),16)}),A=({r:l,g:c,b:d})=>{l/=255,c/=255,d/=255;const g=Math.max(l,c,d),h=Math.min(l,c,d);let m,v,B=(g+h)/2;if(g===h)m=v=0;else{const x=g-h;switch(v=B>.5?x/(2-g-h):x/(g+h),g){case l:m=(c-d)/x+(c<d?6:0);break;case c:m=(d-l)/x+2;break;case d:m=(l-c)/x+4;break}m/=6}return{h:m,s:v,l:B}},n=({h:l,s:c,l:d})=>{let g,h,m;if(c===0)g=h=m=d;else{const v=(b,F,O)=>(O<0&&(O+=1),O>1&&(O-=1),O<.16666666666666666?b+(F-b)*6*O:O<.5?F:O<.6666666666666666?b+(F-b)*(.6666666666666666-O)*6:b),B=d<.5?d*(1+c):d+c-d*c,x=2*d-B;g=v(x,B,l+.3333333333333333),h=v(x,B,l),m=v(x,B,l-.3333333333333333)}return{r:Math.round(g*255),g:Math.round(h*255),b:Math.round(m*255)}},a=r(t),i=A(a);i.h+=e,i.h=(i.h+1)%1;const s=n(i);return`#${(s.r<<16|s.g<<8|s.b).toString(16).padStart(6,"0")}`},toggleTooltip(t,e=null){this.isTooltip=t,t?this.selectedSerieIndex=e:this.selectedSerieIndex=null},generatePdf(){const t=this.$refs.chart;t&&(this.isPrinting=!0,this.$nextTick(()=>{const e={height:851.89,width:595.28},r=new Bt("","pt","a4");let A,n,a,i,s;xd(t).then(o=>{A=o.width,n=o.height;let l=n;const c=A/e.width*e.height;let d=0;if(a=e.width,i=582.28/A*n,s=o.toDataURL("image/png",1),l<c)r.addImage(s,"PNG",33,24,a*.9,i*.9,"","FAST");else for(;l>0;)r.addImage(s,"PNG",33,d,a*.9,i*.9,"","FAST"),l-=c,d-=e.height-24,l>0&&r.addPage();r.save(`${this.chartConfig.chart.title.text||"vue-ui-xy"}.pdf`)}).finally(()=>{this.isPrinting=!1})}))},generateXls(){const t=[[this.chartConfig.chart.title.text],[this.chartConfig.chart.title.subtitle.text],[""]],e=["",...this.table.head.map(c=>c.label)],r=this.table.body,A=t.concat([e]).concat(r);function n(c){let d=new ArrayBuffer(c.length),g=new Uint8Array(d);for(let h=0;h<c.length;h++)g[h]=c.charCodeAt(h)&255;return d}const a=Ga.book_new(),i=Ga.aoa_to_sheet(A);Ga.book_append_sheet(a,i,"Sheet1");const s=Du(a,{bookType:"xlsx",type:"binary"}),o=new Blob([n(s)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),l=document.createElement("a");l.href=window.URL.createObjectURL(o),l.download=`${this.chartConfig.chart.title.text.replaceAll(" ","_")||"vue-ui-xy"}.xlsx`,l.click(),window.URL.revokeObjectURL(l.href)}}},MO=t=>(u.pushScopeId("data-v-fff5213c"),t=t(),u.popScopeId(),t),RO={class:"vue-ui-xy-user-option-item"},HO=["id","name"],VO=["for"],KO={class:"vue-ui-xy-user-option-item"},GO=["id","name"],jO=["for"],zO={class:"vue-ui-xy-user-option-item"},WO=["id","name"],XO=["for"],qO={class:"vue-ui-xy-user-option-item"},YO=["id","name"],$O=["for"],JO=["disabled"],ZO={key:0,class:"vue-ui-xy-print-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"#2c3e50",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},eD=[u.createStaticVNode('<path stroke="none" d="M0 0h24v24H0z" fill="none" data-v-fff5213c></path><path d="M18 16v.01" data-v-fff5213c></path><path d="M6 16v.01" data-v-fff5213c></path><path d="M12 5v.01" data-v-fff5213c></path><path d="M12 12v.01" data-v-fff5213c></path><path d="M12 1a4 4 0 0 1 2.001 7.464l.001 .072a3.998 3.998 0 0 1 1.987 3.758l.22 .128a3.978 3.978 0 0 1 1.591 -.417l.2 -.005a4 4 0 1 1 -3.994 3.77l-.28 -.16c-.522 .25 -1.108 .39 -1.726 .39c-.619 0 -1.205 -.14 -1.728 -.391l-.279 .16l.007 .231a4 4 0 1 1 -2.212 -3.579l.222 -.129a3.998 3.998 0 0 1 1.988 -3.756l.002 -.071a4 4 0 0 1 -1.995 -3.265l-.005 -.2a4 4 0 0 1 4 -4z" data-v-fff5213c></path>',6)],tD={key:1},rD=["viewBox"],AD={class:"vue-ui-xy-grid"},nD=["stroke","x1","x2","y1","y2"],aD=["stroke","x1","x2","y1","y2"],iD={key:0},sD=["x1","x2","y1","y2","stroke"],oD=["id"],lD=["stop-color"],cD=["stop-color"],fD=["stop-color"],uD=["id"],hD=["stop-color"],dD=["stop-color"],gD=["stop-color"],pD=["id"],mD=["stop-color"],vD=["stop-color"],wD=["id"],BD=["stop-color"],yD=["stop-color"],xD=["x","y","height","width","fill"],CD=["cx","cy","r","fill","stroke"],bD=["x1","x2","y1","y2","stroke","stroke-width"],ED=["cx","cy","r","fill","stroke"],FD={key:0},SD=["x","y","font-size","fill"],_D={key:1},TD=["x","y","font-size","fill"],UD={key:2},ID=["x","y","font-size","fill"],ND={key:3},LD=["x1","x2","y1","y2","stroke"],QD=["x","y","font-size","fill"],kD=["font-size","fill"],OD=["x","y","font-size","fill"],DD={key:4},PD={x:"0",y:"0",width:"100%",height:"40px",style:{overflow:"visible"}},MD={key:5},RD=["y"],HD={class:"vue-ui-xy-legend"},VD=["onClick"],KD={key:6},GD=["y","x","font-size","fill"],jD={key:7},zD=["x","y","height","width","fill","onMouseenter"],WD=["onClick"],XD=["innerHTML"],qD=["innerHTML"],YD={class:"vue-ui-xy-table"},$D={style:{"max-width":"200px",margin:"0 auto","text-align":"center"}},JD=[MO(()=>u.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round"},[u.createElementVNode("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),u.createElementVNode("path",{d:"M18 16v2a1 1 0 0 1 -1 1h-11l6 -7l-6 -7h11a1 1 0 0 1 1 1v2"})],-1))],ZD=["onMouseover"];function eP(t,e,r,A,n,a){return u.openBlock(),u.createElementBlock("div",{class:"vue-ui-xy",ref:"chart",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color};width:100%`)},[a.chartConfig.chart.title.show&&(!n.mutableConfig.titleInside||n.isPrinting)?(u.openBlock(),u.createElementBlock("div",{key:0,class:"vue-ui-xy-title",style:u.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[u.createElementVNode("div",{class:"vue-ui-xy-title-main",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},u.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(u.openBlock(),u.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize}px; color:${a.chartConfig.chart.title.subtitle.color}`)},u.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):u.createCommentVNode("",!0)],4)):u.createCommentVNode("",!0),a.chartConfig.chart.userOptions.show?(u.openBlock(),u.createElementBlock("details",{key:1,class:"vue-ui-xy-user-options",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`),"data-html2canvas-ignore":"",ref:"details"},[u.createElementVNode("summary",{style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},u.toDisplayString(a.chartConfig.chart.userOptions.title),5),u.createElementVNode("div",{class:"vue-ui-xy-user-options-items",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor};color:${a.chartConfig.chart.color}`)},[u.createElementVNode("div",RO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-datalabels_${n.uniqueId}`,name:`vue-ui-xy-option-datalabels_${n.uniqueId}`,"onUpdate:modelValue":e[0]||(e[0]=i=>n.mutableConfig.dataLabels.show=i)},null,8,HO),[[u.vModelCheckbox,n.mutableConfig.dataLabels.show]]),u.createElementVNode("label",{for:`vue-ui-xy-option-datalabels_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.dataLabels),9,VO)]),u.createElementVNode("div",KO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-title_${n.uniqueId}`,name:`vue-ui-xy-option-title_${n.uniqueId}`,"onUpdate:modelValue":e[1]||(e[1]=i=>n.mutableConfig.titleInside=i)},null,8,GO),[[u.vModelCheckbox,n.mutableConfig.titleInside]]),u.createElementVNode("label",{for:`vue-ui-xy-option-title_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.titleInside),9,jO)]),u.createElementVNode("div",zO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-legend_${n.uniqueId}`,name:`vue-ui-xy-option-legend_${n.uniqueId}`,"onUpdate:modelValue":e[2]||(e[2]=i=>n.mutableConfig.legendInside=i)},null,8,WO),[[u.vModelCheckbox,n.mutableConfig.legendInside]]),u.createElementVNode("label",{for:`vue-ui-xy-option-legend_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.legendInside),9,XO)]),u.createElementVNode("div",qO,[u.withDirectives(u.createElementVNode("input",{type:"checkbox",id:`vue-ui-xy-option-table_${n.uniqueId}`,name:`vue-ui-xy-option-table_${n.uniqueId}`,"onUpdate:modelValue":e[3]||(e[3]=i=>n.mutableConfig.showTable=i)},null,8,YO),[[u.vModelCheckbox,n.mutableConfig.showTable]]),u.createElementVNode("label",{for:`vue-ui-xy-option-table_${n.uniqueId}`},u.toDisplayString(a.chartConfig.chart.userOptions.labels.showTable),9,$O)]),u.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[4]||(e[4]=(...i)=>a.generatePdf&&a.generatePdf(...i)),disabled:n.isPrinting,style:{"margin-top":"12px"}},[n.isPrinting?(u.openBlock(),u.createElementBlock("svg",ZO,eD)):(u.openBlock(),u.createElementBlock("span",tD,"PDF"))],8,JO),u.createElementVNode("button",{class:"vue-ui-xy-button",onClick:e[5]||(e[5]=(...i)=>a.generateXls&&a.generateXls(...i))}," XLSX ")],4)],4)):u.createCommentVNode("",!0),(u.openBlock(),u.createElementBlock("svg",{width:"100%",viewBox:a.viewBox,class:"vue-ui-xy-svg",style:u.normalizeStyle(`background:${a.chartConfig.chart.backgroundColor}; color:${a.chartConfig.chart.color}; font-family:${a.chartConfig.chart.fontFamily}`),onClick:e[7]||(e[7]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[u.createElementVNode("g",AD,[u.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-linecap":"round"},null,8,nD),u.createElementVNode("line",{stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1",x1:a.drawingArea.left,x2:a.drawingArea.right,y1:a.zero,y2:a.zero,"stroke-linecap":"round"},null,8,aD),a.chartConfig.chart.grid.showVerticalLines?(u.openBlock(),u.createElementBlock("g",iD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.maxSeries+1,(i,s)=>(u.openBlock(),u.createElementBlock("line",{key:`grid_vertical_line_${s}`,x1:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,x2:a.drawingArea.width/a.maxSeries*s+a.drawingArea.left,y1:a.drawingArea.top,y2:a.drawingArea.bottom,"stroke-width":"0.5",stroke:a.chartConfig.chart.grid.stroke},null,8,sD))),128))])):u.createCommentVNode("",!0)]),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.barSet,(i,s)=>(u.openBlock(),u.createElementBlock("defs",{key:`def_rect_${s}`},[u.createElementVNode("linearGradient",{id:`rectGradient_pos_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[u.createElementVNode("stop",{offset:"0%","stop-color":i.color},null,8,lD),u.createElementVNode("stop",{offset:"62%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,cD),u.createElementVNode("stop",{offset:"100%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,fD)],8,oD),u.createElementVNode("linearGradient",{id:`rectGradient_neg_${s}_${n.uniqueId}`,x2:"0%",y2:"100%"},[u.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}66`},null,8,hD),u.createElementVNode("stop",{offset:"38%","stop-color":`${a.shiftHue(i.color,.02)}DE`},null,8,dD),u.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,gD)],8,uD)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.plotSet,(i,s)=>(u.openBlock(),u.createElementBlock("defs",{key:`def_plot_${s}`},[u.createElementVNode("radialGradient",{id:`plotGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[u.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,mD),u.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,vD)],8,pD)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.lineSet,(i,s)=>(u.openBlock(),u.createElementBlock("defs",{key:`def_line_${s}`},[u.createElementVNode("radialGradient",{id:`lineGradient_${s}_${n.uniqueId}`,cx:"50%",cy:"50%",r:"50%",fx:"50%",fy:"50%"},[u.createElementVNode("stop",{offset:"0%","stop-color":`${a.shiftHue(i.color,.05)}`},null,8,BD),u.createElementVNode("stop",{offset:"100%","stop-color":i.color},null,8,yD)],8,wD)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.barSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`serie_bar_${s}`,class:u.normalizeClass(`serie_bar_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`bar_plot_${s}_${l}`},[a.canShowValue(o.value)?(u.openBlock(),u.createElementBlock("rect",{key:0,x:a.calcRectX(o),y:a.calcRectY(o),height:a.calcRectHeight(o),width:a.calcRectWidth(),fill:a.chartConfig.bar.useGradient?o.value>=0?`url(#rectGradient_pos_${s}_${n.uniqueId})`:`url(#rectGradient_neg_${s}_${n.uniqueId})`:i.color},null,8,xD)):u.createCommentVNode("",!0)]))),128))],2))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.plotSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`serie_plot_${s}`,class:u.normalizeClass(`serie_plot_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`circle_plot_${s}_${l}`},[a.canShowValue(o.value)?(u.openBlock(),u.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:a.chartConfig.plot.radius,fill:a.chartConfig.plot.useGradient?`url(#plotGradient_${s}_${n.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,CD)):u.createCommentVNode("",!0)]))),128))],2))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.lineSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`serie_line_${s}`,class:u.normalizeClass(`serie_line_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`line_${s}_${l}`},[l<i.plots.length-1&&a.canShowValue(o.value)&&a.canShowValue(i.plots[l+1].value)?(u.openBlock(),u.createElementBlock("line",{key:0,x1:o.x,x2:i.plots[l+1].x,y1:o.y,y2:i.plots[l+1].y,stroke:i.color,"stroke-width":a.chartConfig.line.strokeWidth},null,8,bD)):u.createCommentVNode("",!0)]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`circle_line_${s}_${l}`},[a.canShowValue(o.value)?(u.openBlock(),u.createElementBlock("circle",{key:0,cx:o.x,cy:o.y,r:a.chartConfig.line.radius,fill:a.chartConfig.line.useGradient?`url(#lineGradient_${s}_${n.uniqueId})`:i.color,stroke:a.chartConfig.chart.backgroundColor,"stroke-width":"0.5"},null,8,ED)):u.createCommentVNode("",!0)]))),128))],2))),128)),a.chartConfig.bar.labels.show&&n.mutableConfig.dataLabels.show?(u.openBlock(),u.createElementBlock("g",FD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.barSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_bar_${s}`,class:u.normalizeClass(`xLabel_bar_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_bar_${s}_${l}`},[u.createElementVNode("text",{x:o.x+a.calcRectWidth(),y:o.y+a.chartConfig.bar.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.bar.labels.color},u.toDisplayString(a.canShowValue(o.value)?o.value.toFixed(a.chartConfig.bar.labels.rounding):""),9,SD)]))),128))],2))),128))])):u.createCommentVNode("",!0),a.chartConfig.plot.labels.show&&n.mutableConfig.dataLabels.show?(u.openBlock(),u.createElementBlock("g",_D,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.plotSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_plot_${s}`,class:u.normalizeClass(`xLabel_plot_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_plot_${s}_${l}`},[u.createElementVNode("text",{x:o.x,y:o.y+a.chartConfig.plot.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.plot.labels.color},u.toDisplayString(a.canShowValue(o.value)?o.value.toFixed(a.chartConfig.plot.labels.rounding):""),9,TD)]))),128))],2))),128))])):u.createCommentVNode("",!0),a.chartConfig.line.labels.show&&n.mutableConfig.dataLabels.show?(u.openBlock(),u.createElementBlock("g",UD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.lineSet,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_line_${s}`,class:u.normalizeClass(`xLabel_line_${s}`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i.plots,(o,l)=>(u.openBlock(),u.createElementBlock("g",{key:`xLabel_line_${s}_${l}`},[u.createElementVNode("text",{x:o.x,y:o.y+a.chartConfig.line.labels.offsetY,"text-anchor":"middle","font-size":a.chartConfig.chart.labels.fontSize,fill:a.chartConfig.line.labels.color},u.toDisplayString(a.canShowValue(o.value)?o.value.toFixed(a.chartConfig.line.labels.rounding):""),9,ID)]))),128))],2))),128))])):u.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.show?(u.openBlock(),u.createElementBlock("g",ND,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.yLabels,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`yLabel_${s}`},[i.value>=a.min&&i.value<=a.max?(u.openBlock(),u.createElementBlock("line",{key:0,x1:a.drawingArea.left,x2:a.drawingArea.left-5,y1:i.y,y2:i.y,stroke:a.chartConfig.chart.grid.stroke,"stroke-width":"1"},null,8,LD)):u.createCommentVNode("",!0),i.value>=a.min&&i.value<=a.max?(u.openBlock(),u.createElementBlock("text",{key:1,x:a.drawingArea.left-5,y:i.y+a.chartConfig.chart.labels.fontSize/3,"font-size":a.chartConfig.chart.grid.labels.fontSize,"text-anchor":"end",fill:a.chartConfig.chart.grid.labels.color},u.toDisplayString(a.canShowValue(i.value)?i.value.toFixed(0):""),9,QD)):u.createCommentVNode("",!0)]))),128))])):u.createCommentVNode("",!0),u.createElementVNode("g",null,[a.chartConfig.chart.grid.labels.axis.yLabel?(u.openBlock(),u.createElementBlock("text",{key:0,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color,id:"yAxisLabel","text-anchor":"middle",style:{transition:"none"}},u.toDisplayString(a.chartConfig.chart.grid.labels.axis.yLabel),9,kD)):u.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.axis.xLabel?(u.openBlock(),u.createElementBlock("text",{key:1,"text-anchor":"middle",x:a.chartConfig.chart.width/2,y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.axis.fontSize+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,"font-size":a.chartConfig.chart.grid.labels.axis.fontSize,fill:a.chartConfig.chart.grid.labels.color},u.toDisplayString(a.chartConfig.chart.grid.labels.axis.xLabel),9,OD)):u.createCommentVNode("",!0)]),a.chartConfig.chart.title.show&&n.mutableConfig.titleInside&&!n.isPrinting?(u.openBlock(),u.createElementBlock("g",DD,[(u.openBlock(),u.createElementBlock("foreignObject",PD,[u.createElementVNode("div",{class:"vue-ui-xy-title",style:u.normalizeStyle(`font-family:${a.chartConfig.chart.fontFamily}`)},[u.createElementVNode("div",{class:"vue-ui-xy-title-main",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.fontSize*.6}px; color:${a.chartConfig.chart.title.color}; font-weight:${a.chartConfig.chart.title.bold?"bold":"400"}`)},u.toDisplayString(a.chartConfig.chart.title.text),5),a.chartConfig.chart.title.subtitle.text?(u.openBlock(),u.createElementBlock("div",{key:0,class:"vue-ui-xy-title-subtitle",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.title.subtitle.fontSize*.6}px; color:${a.chartConfig.chart.title.subtitle.color}`)},u.toDisplayString(a.chartConfig.chart.title.subtitle.text),5)):u.createCommentVNode("",!0)],4)]))])):u.createCommentVNode("",!0),a.chartConfig.chart.legend.show&&n.mutableConfig.legendInside&&!n.isPrinting?(u.openBlock(),u.createElementBlock("g",MD,[(u.openBlock(),u.createElementBlock("foreignObject",{x:"0",y:a.drawingArea.bottom+a.chartConfig.chart.padding.bottom/3+12,width:"100%",height:"20px",style:u.normalizeStyle(`overflow:visible; font-size:${a.chartConfig.chart.legend.fontSize*.6}px`)},[u.createElementVNode("div",HD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.absoluteDataset,(i,s)=>(u.openBlock(),u.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>a.segregate(i),class:u.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(i.id)})},[["plot"].includes(i.type)?(u.openBlock(),u.createElementBlock("span",{key:0,style:u.normalizeStyle(`color:${i.color}`)},"●",4)):u.createCommentVNode("",!0),["line"].includes(i.type)?(u.openBlock(),u.createElementBlock("span",{key:1,style:u.normalizeStyle(`color:${i.color}`)},"▬",4)):u.createCommentVNode("",!0),["bar"].includes(i.type)?(u.openBlock(),u.createElementBlock("span",{key:2,style:u.normalizeStyle(`color:${i.color}`)},"◼",4)):u.createCommentVNode("",!0),u.createElementVNode("span",{style:u.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},u.toDisplayString(i.name),5)],10,VD))),128))])],12,RD))])):u.createCommentVNode("",!0),a.chartConfig.chart.grid.labels.xAxisLabels.show?(u.openBlock(),u.createElementBlock("g",KD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.maxSeries,(i,s)=>(u.openBlock(),u.createElementBlock("text",{key:`time_label_${s}`,"text-anchor":"middle",y:a.drawingArea.bottom+a.chartConfig.chart.grid.labels.xAxisLabels.fontSize*1.3,x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s+a.drawingArea.width/a.maxSeries/2,"font-size":a.chartConfig.chart.grid.labels.xAxisLabels.fontSize,fill:a.chartConfig.chart.grid.labels.xAxisLabels.color},u.toDisplayString(a.chartConfig.chart.grid.labels.xAxisLabels.values[s]||""),9,GD))),128))])):u.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show?(u.openBlock(),u.createElementBlock("g",jD,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.maxSeries,(i,s)=>(u.openBlock(),u.createElementBlock("g",{key:`tooltip_trap_${s}`},[u.createElementVNode("rect",{x:a.drawingArea.left+a.drawingArea.width/a.maxSeries*s,y:a.drawingArea.top,height:a.drawingArea.height,width:a.drawingArea.width/a.maxSeries,fill:n.selectedSerieIndex===s||n.selectedRowIndex===s?"rgba(0,0,0,0.03)":"transparent",onMouseenter:o=>a.toggleTooltip(!0,s),onMouseleave:e[6]||(e[6]=o=>a.toggleTooltip(!1))},null,40,zD)]))),128))])):u.createCommentVNode("",!0)],12,rD)),a.chartConfig.chart.legend.show&&(!n.mutableConfig.legendInside||n.isPrinting)?(u.openBlock(),u.createElementBlock("div",{key:2,class:"vue-ui-xy-legend",style:u.normalizeStyle(`font-size:${a.chartConfig.chart.legend.fontSize}px`)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.absoluteDataset,(i,s)=>(u.openBlock(),u.createElementBlock("div",{key:`div_legend_item_${s}`,onClick:o=>a.segregate(i),class:u.normalizeClass({"vue-ui-xy-legend-item":!0,"vue-ui-xy-legend-item-segregated":n.segregatedSeries.includes(i.id)})},[u.createElementVNode("span",{style:u.normalizeStyle(`color:${i.color}`),innerHTML:n.icons[i.type]},null,12,XD),u.createElementVNode("span",{style:u.normalizeStyle(`color:${a.chartConfig.chart.legend.color}`)},u.toDisplayString(i.name),5)],10,WD))),128))],4)):u.createCommentVNode("",!0),a.chartConfig.chart.tooltip.show&&n.isTooltip?(u.openBlock(),u.createElementBlock("div",{key:3,class:"vue-ui-xy-tooltip",ref:"tooltip",style:u.normalizeStyle(`top:${a.tooltipPosition.top}px;left:${a.tooltipPosition.left}px; background-color:${a.chartConfig.chart.tooltip.backgroundColor};color:${a.chartConfig.chart.tooltip.color}`),innerHTML:a.tooltipContent},null,12,qD)):u.createCommentVNode("",!0),a.chartConfig.showTable&&n.mutableConfig.showTable?(u.openBlock(),u.createElementBlock("div",{key:4,class:u.normalizeClass({"vue-ui-xy-table-wrapper":!0,"vue-ui-xy-table-wrapper-printing":n.isPrinting}),onClick:e[9]||(e[9]=(...i)=>a.closeDetails&&a.closeDetails(...i))},[u.createElementVNode("table",YD,[u.createElementVNode("thead",null,[u.createElementVNode("tr",null,[u.createElementVNode("th",{style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},null,4),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.table.head,(i,s)=>(u.openBlock(),u.createElementBlock("th",{key:`th_${s}`,style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},[u.createElementVNode("div",$D,[u.createElementVNode("span",{style:u.normalizeStyle(`color:${i.color}; margin-right:3px`)},u.toDisplayString(n.icons[i.type]),5),u.createTextVNode(u.toDisplayString(i.label),1)])],4))),128))]),u.createElementVNode("tr",null,[u.createElementVNode("th",{align:"right",style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color}`)},JD,4),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.table.head,(i,s)=>(u.openBlock(),u.createElementBlock("th",{align:"right",key:`th_sum_${s}`,style:u.normalizeStyle(`background:${a.chartConfig.table.th.backgroundColor};color:${a.chartConfig.table.th.color};padding-right:6px`)},u.toDisplayString(a.relativeDataset[s].absoluteValues.reduce((o,l)=>o+l,0).toFixed(a.chartConfig.table.rounding)),5))),128))])]),u.createElementVNode("tbody",null,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(a.table.body,(i,s)=>(u.openBlock(),u.createElementBlock("tr",{key:`tr_${s}`,class:u.normalizeClass({"vue-ui-xy-table-tr-selected":n.selectedSerieIndex===s||n.selectedRowIndex===s}),onMouseover:o=>n.selectedRowIndex=s,onMouseleave:e[8]||(e[8]=o=>n.selectedRowIndex=null)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(i,(o,l)=>(u.openBlock(),u.createElementBlock("td",{key:`td_${s}_${l}`,style:u.normalizeStyle(`background:${a.chartConfig.table.td.backgroundColor};color:${a.chartConfig.table.td.color};padding-right:6px;`)},u.toDisplayString(o),5))),128))],42,ZD))),128))])])],2)):u.createCommentVNode("",!0)],4)}const tP=b1(PO,[["render",eP],["__scopeId","data-v-fff5213c"]]),IJ="",rP={name:"vue-ui-table",props:{config:{type:Object,default(){return{}}},dataset:{type:Object,default(){return{}}}},data(){return{uid:`vue-ui-table-${Math.random()}`,defaultConfig:{fontFamily:"inherit",maxHeight:500,rowsPerPage:25,style:{th:{backgroundColor:"#E1E5E8",color:"#2D353C",outline:"1px solid #FFFFFF",selected:{backgroundColor:"#6376DD",color:"#FFFFFF"}},rows:{even:{backgroundColor:"#f3f5f7",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}},odd:{backgroundColor:"#FFFFFF",color:"#2D353C",selectedCell:{backgroundColor:"#6375dd5b",color:"#2D353C"},selectedNeighbors:{backgroundColor:"#63dd821e",color:"#2D353C"}}},inputs:{backgroundColor:"#FFFFFF",color:"#2D353C",border:"1px solid #CCCCCC",accentColor:"#6376DD"},dropdowns:{backgroundColor:"#E1E5E8",color:"#2D353C",icons:{selected:{color:"#008000",unicode:"✔"},unselected:{color:"#ff0000",unicode:"✖"}}},infoBar:{backgroundColor:"#E1E5E8",color:"#2D353C"},pagination:{buttons:{backgroundColor:"#E1E5E8",color:"#2D353C",opacityDisabled:.5},navigationIndicator:{backgroundColor:"#6376DD"}},exportMenu:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{backgroundColor:"#FAFAFA",color:"#2D353C"}},closeButtons:{backgroundColor:"transparent",color:"#2D353C",borderRadius:"50%"},chart:{modal:{backgroundColor:"#E1E5E8",color:"#2D353C",buttons:{selected:{backgroundColor:"#6376DD",color:"#FFFFFF"},unselected:{backgroundColor:"#FFFFFF",color:"#2D353C"}}},layout:{backgroundColor:"#FFFFFF",axis:{stroke:"#ccd1d4",strokeWidth:2},bar:{fill:"",stroke:"#FFFFFF"},line:{stroke:"#6376DD75",strokeWidth:4,plot:{fill:"#22348f",stroke:"#FFFFFF",strokeWidth:1,radius:{selected:6,unselected:4}},selector:{stroke:"#ccc",strokeWidth:1,strokeDasharray:5}},labels:{color:"#2D353C"},progression:{stroke:"#2D353C",strokeWidth:2,strokeDasharray:4,arrowSize:7}}}},translations:{average:"Average",by:"by",chooseCategoryColumn:"Choose category column",exportAllButton:"XLSX all",exportAllLabel:"Export all rows of your current filtered dataset",exportPageButton:"XLSX page",exportPageLabel:"Export rows of the current page",from:"From",inputPlaceholder:"Search...",makeDonut:"Generate",nb:"Nb",page:"Page",paginatorLabel:"Rows per page",sizeWarning:"Displaying too many rows at a time can lead to slower performance",sum:"Somme",to:"To",total:"Total",totalRows:"Total rows"},useChart:!0},bodyCopy:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),buttonTimeout:null,canMoveChart:!1,chart:{height:316,type:"bar",width:512},constants:{ASC:1,BAR:"bar",DATE:"date",DESC:-1,DONUT:"donut",LINE:"line",NUMERIC:"numeric",PERCENTAGE:"percentage",TEXT:"text"},clientX:100,clientY:100,cssClass:{CELL:"smart-td-selected",FIRST_TD:"smart-td-selected-first",LAST_TD:"smart-td-selected-last",ROW:"smart-td-selected-neighbor"},currentDonut:void 0,currentFilter:void 0,currentSearch:void 0,currentSelectionSpan:{col:void 0,rows:[]},currentPage:0,dates:{},filteredDatesIndexes:{},hasNaN:{},iconColor:"#2D353C",iconSize:20,immutableRangeFilters:{},isExportRequest:!1,isLoading:!1,itemsPerPage:this.config.rowsPerPage?this.config.rowsPerPage:25,multiselects:{},paginatorOptions:[...new Set([10,25,50,100,250,500,this.config.rowsPerPage?this.config.rowsPerPage:25,this.dataset.body.length])].sort((e,r)=>e-r),palette:Ui,percentages:{},rafId:null,rangeFilters:{},searches:{},selectedColumn:void 0,selectedDonutCategory:void 0,selectedPlot:void 0,showChart:!1,showDonutOptions:!1,sorts:{},tableBody:JSON.parse(JSON.stringify(this.dataset.body)).map((e,r)=>({...e,absoluteIndex:r})),tableHead:JSON.parse(JSON.stringify(this.dataset.header)).map(e=>({average:Object.hasOwn(e,"average")?e.average:!1,decimals:Object.hasOwn(e,"decimals")?e.decimals:0,isMultiselect:Object.hasOwn(e,"isMultiselect")?e.isMultiselect:!1,isPercentage:Object.hasOwn(e,"isPercentage")?e.isPercentage:!1,isSearch:Object.hasOwn(e,"isSearch")?e.isSearch:!1,isSort:Object.hasOwn(e,"isSort")?e.isSort:!1,name:e.name,percentageTo:Object.hasOwn(e,"percentageTo")?e.percentageTo:void 0,prefix:Object.hasOwn(e,"prefix")?e.prefix:"",rangeFilter:Object.hasOwn(e,"rangeFilter")?e.rangeFilter:!1,suffix:Object.hasOwn(e,"suffix")?e.suffix:"",sum:Object.hasOwn(e,"sum")?e.sum:!1,type:e.type}))}},mounted(){if(this.dataset.header.length===0)throw new Error(`vue-ui-table error: missing header data.
361
361
  Provide an array of objects of type:
362
362
  {
363
363
  name: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-data-ui",
3
3
  "private": false,
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "type": "module",
6
6
  "description": "A user-empowering data visualization Vue components library",
7
7
  "keywords": ["Vue", "data visualization", "chart", "table"],