@sheetxl/react 0.7.23 → 0.7.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{DO7GMGTiL67zwKAs.cjs → CXgnB-1pBVJaAbPj.cjs} +1 -1
- package/browser/cjs/{Ct-n32KgF_6BC7g-.cjs → DW3DaJeAphtYDztB.cjs} +1 -1
- package/browser/cjs/{B74ExJOGY_2WF_Nk.cjs → Vv_BzEAhvRFFHHgO.cjs} +1 -1
- package/browser/cjs/index.cjs +4 -4
- package/browser/esm/{Ghtgmxu52GqkgYCO.mjs → 7b9weMmsnwpjKTj4.mjs} +1 -1
- package/browser/esm/{DQ-SZI5rmXrPbUze.mjs → Axg4DO-g2HKchmXK.mjs} +1 -1
- package/browser/esm/{eT5cWvBfYZj_Iyje.mjs → BnPtC2B4STd5THbc.mjs} +1 -1
- package/browser/esm/index.mjs +5 -5
- package/node/esm/{DJJvpdSDeu0yf-Vy.mjs → C5yMXysWyKNbCRd5.mjs} +1 -1
- package/node/esm/index.mjs +3 -3
- package/package.json +5 -5
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6{pointer-events:none}._sheetxl-sheet_1qeq6_5 ._viewport-overlay_1qeq6_6 *{pointer-events:initial}._sheetxl-sheet_1qeq6_5 .cell-container>*{overflow:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .text-box{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .text-line{text-rendering:optimizespeed;position:absolute;vertical-align:baseline;white-space:pre}._sheetxl-sheet_1qeq6_5 .cell-container .filter-button{position:absolute;display:flex;align-items:center;justify-content:center;flex-direction:row;margin-bottom:4px}._sheetxl-sheet_1qeq6_5 .cell-container .text-debug-bounds{position:absolute;background:green;pointer-events:none;opacity:.2}._sheetxl-sheet_1qeq6_5 .cell-container .fill{position:absolute}._sheetxl-sheet_1qeq6_5 .cell-container .pending{width:6px;height:6px;top:5px;left:4px;position:absolute;border:var(--sxl-app-color-primary-dark, grey) .5px;border-style:double;border-radius:50%;background-color:var(--sxl-app-color-button-surface, grey);opacity:1;animation:_pulse_1qeq6_1 1.5s infinite alternate}@keyframes _pulse_1qeq6_1{0%{transform:scale(1);opacity:1}50%{transform:scale(1.2);opacity:.8}to{transform:scale(1);opacity:1}}._sheetxl-sheet_1qeq6_5 .cell-container .slider{position:absolute;width:130%;height:2px;bottom:1px;opacity:0;animation:_fadeIn_1qeq6_1 0s .5s forwards;overflow-x:hidden}._sheetxl-sheet_1qeq6_5 .cell-container .line{position:absolute;opacity:.3;background:var(--sxl-app-color-primary-light, rgb(173, 173, 173)) .5px;width:100%;height:2px}._sheetxl-sheet_1qeq6_5 .cell-container .subline{position:absolute;background:var(--sxl-app-color-primary, rgb(77, 77, 77)) .5px;opacity:.9;height:3px}._sheetxl-sheet_1qeq6_5 .cell-container .inc{animation-delay:0s;animation:_increase_1qeq6_1 3s infinite}@keyframes _fadeIn_1qeq6_1{0%{opacity:0;height:0px}to{opacity:1;height:2px}}@keyframes _increase_1qeq6_1{0%{left:-150%;width:30%;animation-timing-function:ease}to{left:100%;width:30%}}._TaskPaneArea_6dmgk_5{position:absolute;height:100%;width:100%;display:flex;flex-direction:row}._TaskPaneTitle_6dmgk_13{display:flex;box-sizing:border-box;flex:1 1 0;flex-direction:row;align-items:center;font-size:1.25rem;height:100%;width:100%;padding:8px 16px;border-bottom:solid rgba(0,0,0,.2) 1px}._TaskPaneTitle_6dmgk_13 .title{opacity:.87}._TaskPaneTitle_6dmgk_13.focused .title{opacity:1}._TaskPaneFrame_6dmgk_36{display:flex;position:relative;flex-direction:column;width:100%;box-sizing:border-box;flex:1 1 0;min-height:0;align-items:stretch;justify-content:stretch;margin-bottom:4px;border-radius:4px;overflow:hidden}._TaskPaneStrip_6dmgk_52{display:flex;flex-direction:column;gap:4px;margin-top:4px;margin-left:2px}._TaskPaneStripItem_6dmgk_60{display:flex;flex-direction:row;align-items:center;padding:4px;border-radius:4px;border:grey solid 1px}._TaskPaneStripItem_6dmgk_60.selected{font-weight:700}._sheet-scrollbar_104cg_1{margin-left:2px;margin-bottom:1px;align-items:center}._sheet-selection_12wyx_5 .fill-handle .dragging,._movable-area_314c6_5 .moveable-control-box .dragging{opacity:0}._movable-area_314c6_5 .moveable-control-box .moveable-control{width:11px;height:11px;margin-top:-5.5px;margin-left:-5.5px;background-color:var(--sxl-app-color-background, white);background-image:var(--sxl-app-image-background);border:2px solid var(--sxl-app-color-primary-dark, grey)}._movable-area_314c6_5 .moveable-control-box .moveable-line{background:var(--sxl-app-color-grey, grey)}@media (pointer: coarse){._movable-area_314c6_5 .moveable-control-box .moveable-control{width:22px;height:22px;margin-top:-11px;margin-left:-11px}}._editable-input_1bqx6_6{position:absolute;left:0;top:0;width:100%;min-height:calc(100% + 1px);border:none;padding:0;outline:none;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:1.2;letter-spacing:inherit;text-transform:inherit;background:transparent}@keyframes _pop_1wyun_1{0%{transform:scale(1)}to{transform:scale(var(--scale))}}@keyframes _fadeIn_1wyun_33{0%{opacity:0}to{opacity:1}}._Wrapper_1wyun_25{display:flex;box-sizing:border-box;transform:translate3d(var(--translate-x, 0),var(--translate-y, 0),0) scaleX(var(--scale-x, 1)) scaleY(var(--scale-y, 1));transform-origin:0 0;touch-action:manipulation}._Wrapper_1wyun_25._dragOverlay_1wyun_37{z-index:999}._Item_1wyun_47{position:relative;display:flex;align-items:center;outline:none;box-sizing:border-box;transform-origin:50% 50%;-webkit-tap-highlight-color:transparent;transform:scale(var(--scale, 1))}._Item_1wyun_47:not(._withHandle_1wyun_61){touch-action:manipulation}._Item_1wyun_47._dragging_1wyun_66:not(._dragOverlay_1wyun_37){z-index:999}._Item_1wyun_47._dragOverlay_1wyun_37{cursor:inherit;animation:_pop_1wyun_1 .2s cubic-bezier(.18,.67,.6,1.22);transform:scale(var(--scale));opacity:1}._Row_1kr10_1{display:flex;box-sizing:border-box}._TabStrip_3x0dp_1::-webkit-scrollbar{display:none;height:0px}._TabStrip_3x0dp_1{overflow-y:auto;overflow-x:hidden;position:relative}._script-editor_iy654_5 .monaco-editor{position:absolute}._script-editor_iy654_5 .monaco-editor .margin-icon{display:block;width:16px;height:16px;background-size:16px;background-repeat:no-repeat;background-position:center;background-size:contain}._script-editor_iy654_5 .monaco-editor .formula{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="m 12.106007,8.1692949 c 0.124174,-0.1578352 0.181773,-0.3565642 0.283755,-0.5271169 0.10273,-0.1715492 0.04413,-0.2027176 -0.129161,-0.2014713 -0.685452,0.00576 -1.371152,-0.00277 -2.056604,0.00501 C 10.021228,7.4479573 9.9586414,7.407817 9.9935503,7.2080883 10.145401,6.3413623 10.291269,5.4736396 10.51219,4.6213758 10.642847,4.1167002 10.782479,3.6117747 11.061498,3.1622046 11.339518,2.7138809 11.726751,2.5974365 12.2035,2.829328 c 0.398455,0.1934923 0.722604,0.4827333 0.990152,0.8340617 0.116944,0.1535968 0.27079,0.2740306 0.449073,0.1715499 0.343348,-0.1974819 0.644807,-0.4383502 0.819599,-0.826332 0.100985,-0.2244112 0.157836,-0.476001 0.04039,-0.7058977 C 14.339646,1.9840253 14.038187,1.7618584 13.707056,1.6394296 13.156999,1.4362128 12.562559,1.4840872 12.017239,1.6758341 11.38789,1.8970037 10.783727,2.2625445 10.259602,2.6724688 10.066109,2.8238217 9.8783519,2.9839017 9.7013165,3.1547035 9.0502751,3.7823067 8.5657962,4.529097 8.2246919,5.3651534 7.9823276,5.9595939 7.7888351,6.5660026 7.6913412,7.2015842 7.673637,7.318528 7.6357391,7.423253 7.5065759,7.4432009 7.3472438,7.4678879 7.1592376,7.4436995 6.9974121,7.4441728 6.6351128,7.4451447 6.2598478,7.3676233 5.9915515,7.6815496 5.8721151,7.8211835 5.7461952,7.9840062 5.6439635,8.1371045 c -0.1009847,0.1518511 -0.093255,0.3002122 0.085027,0.367535 0.1957362,0.073561 0.4528118,0.026182 0.6530361,0.0197 0.2645558,-0.00847 0.5291116,0.00501 0.7936674,-7.476e-4 0.1820229,-0.00374 0.2413669,0.030421 0.2064588,0.2358807 C 7.3487406,8.9587006 7.3095941,9.1492003 7.2804197,9.3464333 7.1804317,10.024404 7.0667304,10.700629 6.9525298,11.376606 6.7936963,12.314146 6.6371075,13.252434 6.4655575,14.188478 6.3017374,15.082631 6.1855427,15.985013 5.983074,16.873433 5.8249883,17.568607 5.7240037,18.277248 5.5556954,18.969682 5.4145655,19.550158 5.293882,20.143601 4.9722259,20.665731 4.7380909,21.045734 4.3959882,21.206312 3.9663652,21.104829 3.5778849,21.012322 3.2115961,20.866205 2.8951763,20.608631 2.6862246,20.438328 2.4473513,20.31141 2.1920214,20.458026 1.9519014,20.595915 1.7791048,20.851743 1.646453,21.088123 1.2205704,21.847879 1.915497,22.569984 2.6655289,22.684434 3.1692071,22.760986 3.666153,22.580208 4.1087416,22.356046 4.6996913,22.056582 5.2103511,21.635437 5.6387269,21.13874 5.9898058,20.731558 6.3575906,20.343327 6.6500737,19.890016 6.8450616,19.58756 7.0238427,19.274881 7.1866655,18.954471 7.7639005,17.817206 8.1227091,16.589926 8.4189318,15.354418 8.5613081,14.760227 8.716401,14.169777 8.8478064,13.572843 9.0268365,12.760724 9.1741996,11.934891 9.3083481,11.114294 9.3749255,10.707112 9.4310263,10.300679 9.5160532,9.8967389 9.5861222,9.5636133 9.6442168,9.2185186 9.6890985,8.8814035 9.7414633,8.4891827 9.990308,8.5136187 10.329668,8.4762164 c 0.286249,-0.03167 0.574492,-0.046376 0.861739,-0.067571 0.230395,-0.016703 0.494951,0.00396 0.711881,-0.088019 0.07754,-0.032911 0.147613,-0.080788 0.202719,-0.1513533 z"/><path d="M 22.473802,7.8481382 C 22.426924,7.6912996 22.341898,7.5501696 22.231437,7.4294861 22.130452,7.3192756 21.987827,7.1749046 21.851933,7.1098255 21.411589,6.8988785 20.817398,7.0838898 20.436149,7.3422154 20.23343,7.479854 20.052405,7.6519026 19.871131,7.8167201 19.691352,7.9802913 19.517061,8.1488492 19.35723,8.3321177 19.025101,8.7128687 18.724639,9.1210479 18.436396,9.5354601 18.296263,9.7374301 17.901549,10.472252 17.781115,10.399942 17.654198,10.323892 17.495365,9.5905657 17.435023,9.3843566 17.351243,9.0978583 17.29539,8.8016361 17.161741,8.5323425 16.97922,8.1643081 16.865268,7.7623629 16.608941,7.4307332 16.325934,7.0639457 16.001036,6.9584722 15.558946,7.092371 c -0.43436,0.1314054 -0.78469,0.4049374 -1.128539,0.6819608 -0.503927,0.4056851 -0.879442,0.926319 -1.256951,1.4439609 -0.28226,0.387483 -0.284753,0.3857373 0.04488,0.7380631 0.206458,0.2211702 0.202718,0.2184272 0.389229,-0.00847 0.2663,-0.3251469 0.524872,-0.6595196 0.882433,-0.8934057 0.261315,-0.1713009 0.417904,-0.1368908 0.57948,0.1326518 0.07929,0.1326517 0.146866,0.2752777 0.200225,0.4208957 0.335619,0.9141014 0.590201,1.8541344 0.89191,2.7784594 0.03815,0.117691 -0.01122,0.193991 -0.06707,0.278519 -0.356565,0.538837 -0.719363,1.074182 -1.123054,1.578607 -0.320409,0.401198 -0.643312,0.803891 -1.073932,1.097621 -0.187757,0.128912 -0.40768,0.217679 -0.635831,0.156839 -0.233887,-0.06283 -0.37377,-0.27478 -0.587459,-0.373521 -0.006,-0.003 -0.01272,-0.0052 -0.01895,-0.0079 -0.09974,-0.04064 -0.249845,-0.0389 -0.353074,-0.01571 -0.454059,0.102482 -0.697669,0.614139 -0.790177,1.023813 -0.08379,0.371776 -0.0013,0.778209 0.261315,1.062463 0.228899,0.24785 0.572248,0.351327 0.901634,0.356315 0.189003,0.0028 0.39995,-0.04663 0.57549,-0.11445 0.670241,-0.262062 1.181649,-0.887172 1.605038,-1.441717 0.285501,-0.374517 0.550555,-0.763994 0.829573,-1.143499 0.230645,-0.313677 0.68595,-1.247726 0.81586,-1.250718 0.07854,-0.0017 0.09924,0.185762 0.114199,0.241117 0.03341,0.123675 0.06658,0.247351 0.102232,0.370279 0.167561,0.578481 0.343848,1.156464 0.525122,1.730458 0.120934,0.384242 0.315921,0.782697 0.560779,1.103356 0.07431,0.09749 0.167311,0.190749 0.26306,0.266799 0.371276,0.296972 0.838799,0.27453 1.266177,0.123177 0.191498,-0.06757 0.370029,-0.163071 0.539335,-0.275527 0.781948,-0.519886 1.340732,-1.244235 1.868598,-2.002495 0.124423,-0.178781 0.107467,-0.278769 -0.03441,-0.428127 -0.367286,-0.386237 -0.357062,-0.389727 -0.705149,0.01995 -0.261066,0.306446 -0.527117,0.612643 -0.879442,0.818851 -0.245855,0.144621 -0.413416,0.103229 -0.592696,-0.118439 -0.14861,-0.183518 -0.246353,-0.396709 -0.33138,-0.614886 -0.349831,-0.901136 -0.588954,-1.838675 -0.885177,-2.757515 -0.21743,-0.674231 -0.223414,-0.680464 0.20945,-1.248723 0.447575,-0.587708 0.875703,-1.1968602 1.462163,-1.6613914 0.431119,-0.3416031 0.73183,-0.3226534 1.129037,0.059094 0.0788,0.075801 0.207456,0.1388856 0.316919,0.1476127 0.369781,0.029674 0.691187,-0.3024566 0.880939,-0.5792304 0.188006,-0.2727835 0.259319,-0.6183768 0.163072,-0.9392845 z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .macro{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M 5.1933594,1.4433594 6.3417969,2.5234375 6.2109375,2.6621094 c -3.466072,3.6769426 -3.467641,9.6565186 0,13.3339846 l 0.1308594,0.136718 -1.1484375,1.082032 -0.1328125,-0.140625 c -4.0371886,-4.28224 -4.0373752,-11.2077961 0,-15.4902346 z m 14.4726566,0 0.132812,0.140625 c 4.03717,4.2822197 4.037356,11.2058636 0,15.4882816 l -0.132812,0.140625 -1.148438,-1.080079 0.130859,-0.138671 c 3.465532,-3.675243 3.466902,-9.6542123 0,-13.3320316 L 18.517578,2.5234375 Z M 7.7597656,4.4335937 8.8769531,5.5488281 8.7421875,5.6816406 c -2.0366665,2.0366662 -2.037411,5.3404354 0,7.3769534 L 8.8769531,13.191406 7.7597656,14.310547 7.625,14.173828 C 4.9718615,11.520692 4.9723209,7.222936 7.6269531,4.5683594 Z m 9.3398434,0 0.132813,0.1347657 c 2.653779,2.6537788 2.65545,6.9500666 0,9.6054686 l -0.132813,0.136719 -1.117187,-1.119141 0.134765,-0.132812 c 2.036637,-2.035554 2.037534,-5.3391996 0,-7.3769534 L 15.982422,5.5488281 Z m -4.669921,1.7011719 c 0.811773,0 1.627703,0.304374 2.25,0.90625 1.260638,1.2198223 1.260413,3.1986104 0,4.4179684 -0.355144,0.343115 -0.779063,0.585007 -1.226563,0.732422 l -0.234375,0.07617 v 3.386719 h 0.002 v 6.048828 c 0,0.436615 -0.351565,0.791016 -0.789062,0.791016 -0.43763,0 -0.791016,-0.354618 -0.791016,-0.791016 v -3.308594 -6.126953 l -0.234375,-0.07617 c -0.448339,-0.147699 -0.871819,-0.38969 -1.226562,-0.732422 -1.2608671,-1.22004 -1.2605877,-3.1984433 0,-4.4179684 0.62227,-0.6019293 1.438264,-0.90625 2.25,-0.90625 z m 0,1.5820313 c -0.417461,0 -0.829931,0.1510762 -1.146485,0.4570312 -0.615751,0.5967629 -0.616877,1.5583713 0,2.1562499 0.314469,0.303373 0.726552,0.455078 1.146485,0.455078 0.421182,0 0.833304,-0.153008 1.148437,-0.457031 0.61548,-0.5965047 0.616739,-1.5585025 0,-2.15625 C 13.261859,7.8661993 12.846121,7.7167969 12.429688,7.7167969 Z"/></svg>');cursor:pointer}._script-editor_iy654_5 .monaco-editor .autorun{background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="grey"><path d="M10 15h5.88c.27-.31.67-.5 1.12-.5.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.44 0-.84-.19-1.12-.5H11.9c-.46 2.28-2.48 4-4.9 4-2.76 0-5-2.24-5-5 0-2.42 1.72-4.44 4-4.9v2.07c-1.16.41-2 1.53-2 2.83 0 1.65 1.35 3 3 3s3-1.35 3-3zm2.5-11c1.65 0 3 1.35 3 3h2c0-2.76-2.24-5-5-5s-5 2.24-5 5c0 1.43.6 2.71 1.55 3.62l-2.35 3.9c-.68.14-1.2.75-1.2 1.48 0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5c0-.16-.02-.31-.07-.45l3.38-5.63C10.49 9.61 9.5 8.42 9.5 7c0-1.65 1.35-3 3-3m4.5 9c-.64 0-1.23.2-1.72.54l-3.05-5.07C11.53 8.35 11 7.74 11 7c0-.83.67-1.5 1.5-1.5S14 6.17 14 7c0 .15-.02.29-.06.43l2.19 3.65c.28-.05.57-.08.87-.08 2.76 0 5 2.24 5 5s-2.24 5-5 5c-1.85 0-3.47-1.01-4.33-2.5h2.67c.48.32 1.05.5 1.66.5 1.65 0 3-1.35 3-3s-1.35-3-3-3"/></svg>');cursor:pointer}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
"use strict";/**
|
|
3
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.
|
|
3
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.7.24
|
|
4
4
|
*
|
|
5
5
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
6
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -20,14 +20,14 @@ All contents and formatting are removed.`,shortcut:{key:"Delete",modifiers:[r.Ke
|
|
|
20
20
|
|
|
21
21
|
The formatting is not applied.`,icon:"PasteValues",shortcut:{key:"V",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}}),new r.Command("pasteFormats",v,{label:"Paste Formatting",scopedLabels:{paste:"Formatting"},description:`Paste only the formats of the selected cells.
|
|
22
22
|
|
|
23
|
-
The content is not applied.`,icon:"PasteFormats"}),new r.Command("pasteFormulas",v,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied.",icon:"PasteFormulas"}),new r.Command("pasteTranspose",v,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped.",icon:"PasteTranspose"}),new r.Command("pasteLinks",v,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells.",icon:"PasteLinks"})];i.addCommands(I,!0)},[i,e]),o.useEffect(()=>{if(!i)return;const v={disabled:!t.getProtection().isFormatCellsAllowed()};i.getCommand("pasteValues").updateCallback(I=>w.paste({...Ll,...I})).update(v),i.getCommand("pasteFormats").updateCallback((I,q)=>w.paste({...Nl,description:q.getLabel(),...I})).update(v),i.getCommand("pasteFormulas").updateCallback((I,q)=>w.paste({...Pl,description:q.getLabel(),...I})).update(v),i.getCommand("pasteTranspose").updateCallback((I,q)=>w.paste({...jl,description:q.getLabel(),...I})).update(v),i.getCommand("pasteLinks").updateCallback((I,q)=>w.paste({...Bl,description:q.getLabel(),...I})).update(v),i.getCommand("cut").update(v),i.getCommand("paste").update(v)},[t,i]);const N=o.useMemo(()=>{if(!z||!M.current)return;const v=z.key;if(v!=="copy"&&v!=="cut"&&v!=="formatPainter")return;const I=M.current.getItem();if(I.getSource()!==t)return;const q=M.current.isCut?.(),X=q?k:C,E=q?c:h,j=I.getCoords(),$=j?[j]:null;return $&&$.length!==0?ve=>{const Y=[];for(let _=0;_<$.length;_++){const A=$[_],J=ve.toClipBounds(ve.getRangeCoordsBounds(A,{top:0,left:0,right:1,bottom:1}),gt.SELECTION_CLIP_INSETS);J&&(Y.push(p({range:A,key:`copy-selection-background-${_}`,x:J.x,y:J.y,width:Math.max(J.width,0),height:Math.max(J.height,0),stroke:X,strokeWidth:2})),Y.push(p({range:A,key:`copy-selection-foreground-${_}`,x:J.x+(J.width<=2?-1:0),y:J.y,width:Math.max(J.width,3),height:Math.max(J.height,3),stroke:E,strokeWidth:2,isAnimatedStroke:!0})))}return Y}:null},[z,t,n,h,C,c,k]);return{...w,clipboard:K,overlays:N}},Ol=o.memo(o.forwardRef((e,t)=>{const{view:n,element:i,sheet:a,gridStyle:l,commands:f}=e,h=l.body??{},c=a.getView(),{overlays:C}=br({element:i,sheet:a,sheetView:c,commands:f,copyForegroundColor:l.selection.strokeFill,copyBackgroundColor:h.fill,cutForegroundColor:l.selectionRemove.strokeFill,cutBackgroundColor:h.fill});return Qe(a?.getSelection(),{onChange(k){}}),o.useEffect(()=>{n?.getStage()},[n?.getStage()]),C&&n?C(n):null})),Hl="_sheet-selection_12wyx_5",Vl={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},Ul={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},Kl={key:"dragCopy",description:"Drag selection to copy cell contents."},$l={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},Bo=(e,t)=>t.ctrlKey&&t.shiftKey?$l:t.ctrlKey?Kl:t.shiftKey?Ul:Vl,Wl={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},Gl=o.memo(o.forwardRef((e,t)=>{const{view:n,commands:i,className:a,onFirstRender:l,onShowTooltip:f,onCloseTooltip:h,sheet:c,gridRef:C,gridStyle:k,isActive:y,...p}=e,M=n?.getBounds(),T=r.useCallbackRef(f,[f]),z=r.useCallbackRef(h,[h]),[D,Z]=o.useState(()=>c?.getSelection().getCoords()),K=r.useCallbackRef(H=>{he.CoordUtils.isEqualSelectionCoords(H,D)||c&&c.getSelection().updateCoords(H)},[c,D]),w=r.useEditMode(),N=o.useRef(null),[v,I]=o.useState(c?.getProtection().isLocked()),[q,X]=o.useState(c?.getView().getMovableSelection().length>0),E=r.ReactUtils.detectIt().primaryInput==="touch",j=!E&&y,$=w.getMode()?.args?.stateAndCoords?.coords??null,ve=$!==null||q,Y=r.useCallbackRef(H=>{const W=he.CoordUtils.cellToRange(H);if(c.isClosed())return W;const me=c.getRange(W,{ignoreHidden:!0}).getMerges();return me.length===0?W:me[0]},[c]),_=r.useCallbackRef((H,W,me,ue,fe,Me)=>{const ae=c.getSelectedRange().getExtended(ue,H).getCoords();switch(ue){case d.IRange.Direction.Up:return ae.rowStart;case d.IRange.Direction.Down:return ae.rowEnd;case d.IRange.Direction.Left:return ae.colStart;case d.IRange.Direction.Right:return ae.colEnd}},[c]),A=r.useCallbackRef(()=>{const H=c.getUsedRange()?.getCoords(),W=c.getRowHeaders().getUsedRange()?.getCoords(),me=c.getColumnHeaders().getUsedRange()?.getCoords();return{...H,colEnd:Math.max(H?.colEnd??0,me?.max??0),rowEnd:Math.max(H?.rowEnd??0,W?.max??0)}},[c]),J=r.useCallbackRef((H,W)=>c.getRowHeaders().hiddenHeadersAt(H,W),[c]),x=r.useCallbackRef((H,W)=>c.getColumnHeaders().hiddenHeadersAt(H,W),[c]),S=r.useCallbackRef(H=>c.getRange(H,{ignoreHidden:!0}).getMerges(),[c]),oe=r.useCallbackRef(H=>{c?.getSelection().setAdjusting(H)},[c]),ie=r.useCallbackRef(async()=>{c?.getSelection().setAdjusting(null),w.getMode()?.key==="formatPainter"&&(await i?.getCommand("pasteFormats")?.execute({}),w.setMode(null))},[w,D,c,i]),qe=o.useMemo(()=>{const H=w.getMode();return H?.key==="cut"||H?.key==="copy"},[w]);Qe(c?.getView(),{onMovableSelectionChange:()=>{X(c.getView().getMovableSelection().length>0)}}),Qe(c?.getSelection(),{onChange(H){const W=c.getSelection().getCoords();Z(W)}}),Qe(c,{onProtectionChange:()=>{I(c.getProtection().isLocked())}});const{body:de={}}=k||{},Pe=r.useNotifier(),je=n.getLayout(),De=!(j&&D.ranges.length<=1&&$===null&&!v&&(!w.getMode()||qe)),{cursor:Ie,renderOverlay:ke,onPointerDown:ge}=gt.useSelection({gridRef:C,commands:i,layout:je,getCellCoordsAsRangeCoords:Y,selection:D,fillHandleBorderColor:de.fill,selectionBackgroundColor:y?k.selection.fill:k.selectionInactive.fill,selectionBorderColor:y?k.selection.strokeFill:k.selectionInactive.strokeFill,selectionRemoveBackgroundColor:y?k.selectionRemove.fill:k.selectionInactive.fill,selectionRemoveBorderColor:y?k.selectionRemove.strokeFill:k.selectionInactive.strokeFill,disableFillDrag:De,disableMoveDrag:E||!(y&&D.ranges.length<=1&&$===null&&!v),disableTouchSelection:ve,onSelectionChange:K,onSelectionDragStart:oe,onSelectionDragEnd:ie,onMoveDragStart:(H,W,me)=>{w.setMode(Bo(0,me))},onMoveDragUpdate:(H,W,me)=>{w.setMode(Bo(0,me))},onMoveDragEnd:(H,W)=>{w.setMode(null)},onMoveDragDone:async(H,W,me)=>{if(he.CoordUtils.isEqualRanges(H,W))return;const ue=c.getRange(W);if(Pe?.showOptions){const g=ue.getDifferences(H);let Ne=!1;const Be=g.getCount();for(let Te=0;!Ne&&Te<Be;Te++)Ne=g.at(Te).isContentful();if(Ne&&await Pe?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const fe=!me.ctrlKey,Me=me.shiftKey,ae=Me?fe?"Insert Moved Cells":"Insert Copied Cells":fe?"Move Cells":"Copy Cells",be=await Pe?.showBusy?.(ae);try{const g=c.getRange(H);await ue.doBatch(async()=>{Me?await ue.insertFrom(H,{isCut:fe,undoRange:g}):await ue.copyFrom(H,{isCut:fe,undoRange:g}),g.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0}),ue.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0})},{description:ae,autoSelect:!0})}catch(g){Pe?.showError?.(g)}finally{be?.()}},contentfulCellFinder:_,hiddenRowsAt:J,hiddenColumnsAt:x,mergedRanges:S,getDataCoords:A,canSelectionSpanMergedCells:H=>{const W=c.getRange(H);return W.isEntireColumns()||W.isEntireRows()},onFill:async(H,W)=>{const me="Auto Fill",ue=await Pe?.showBusy?.(me);try{await c.doBatch(()=>{c.getRange(H).autoFill(W),c.getRange(W).autoFit({orientations:d.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:me,autoSelect:!0})}catch(fe){Pe?.showError?.(fe)}finally{N.current=null,ue?.()}},onFillPreview:(H,W,me)=>{if(C.current&&T){w.setMode(Wl);try{N.current?.direction!==me&&(N.current=null,c.getRange(H).autoFill(W,{previewOnly:Be=>{N.current={callback:Be,direction:me}}}));const ue=N.current?.callback?.(W);if(!ue||ue.isEmpty())return;const fe=ue.toText();if(!fe)return;const Me=he.CoordUtils.cellToRange(ue.getCoords()),ae=n.getRelativePointFromClient(0,0);let be=0,g=0,Ne=r.ToolTipPlacement.Bottom;if(me===d.IRange.Direction.Down){be=je.getColOffset(Me.colEnd+1)-ae.x;const Be=je.getRowOffset(Me.rowEnd),Te=je.getRowOffset(Me.rowEnd+1);g=Te-(Te-Be)/2-ae.y,Ne=r.ToolTipPlacement.Right}else if(me===d.IRange.Direction.Right){g=je.getRowOffset(Me.rowEnd+1)-ae.y;const Be=je.getColOffset(Me.colEnd),Te=je.getColOffset(Me.colEnd+1);be=Te-(Te-Be)/2-ae.x,Ne=r.ToolTipPlacement.Bottom}else if(me===d.IRange.Direction.Up){be=je.getColOffset(Me.colEnd+1)-ae.x;const Be=je.getRowOffset(Me.rowStart),Te=je.getRowOffset(Me.rowStart+1);g=Te-(Te-Be)/2-ae.y,Ne=r.ToolTipPlacement.Right}else if(me===d.IRange.Direction.Left){g=je.getRowOffset(Me.rowEnd+1)-ae.y;const Be=je.getColOffset(Me.colStart),Te=je.getColOffset(Me.colStart+1);be=Te-(Te-Be)/2-ae.x,Ne=r.ToolTipPlacement.Bottom}T({anchor:{x:be,y:g},display:fe,placement:Ne})}catch(ue){Pe?.showError?.(ue)}}},onFillDone:()=>{N.current=null,w.setMode(null),z?.()}}),O=r.useCallbackRef(H=>{ge(r.ReactUtils.createSyntheticEvent(H))},[ge,$]);o.useEffect(()=>{const H=n?.getStage();if(H)return H.addEventListener("pointerdown",O),()=>{H.removeEventListener("pointerdown",O)}},[n?.getStage()]);const Fe=r.useImperativeElement(t,()=>({}),[]),ze=o.useRef(null);return s.jsx("div",{className:ct(a,"sheet-selection",Hl),style:{position:"absolute",width:M?.width,height:M?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:Nt([Fe,ze]),...p,children:ke(n)})})),Sn=Object.freeze({x:0,y:0,width:0,height:0}),_l={fireOnModelChange:!1},Zl=o.memo(o.forwardRef((e,t)=>{const{children:n,view:i,movable:a,onRefLoad:l,onRefUnload:f,onHide:h,onShow:c,onUnFocus:C,isDragging:k,updateFrameBounds:y,dragStart:p,style:M,disabled:T,renderMovable:z,...D}=e,[Z,K]=o.useState(Sn),[w,N]=o.useState(null),[v,I]=o.useState(!1),q=o.useRef(null);o.useLayoutEffect(()=>{if(a.isClosed())return;const E=a.getBounds();if(!E)return;const j=i.toViewBounds(E);K(j??Sn),y(j??Sn)},[i?.getBounds()]),Qe(a,{onBoundsChange:E=>{const j=E.getBounds();if(!j)return;const $=i.toViewBounds(j);K($??Sn),y($)},onSelectionChange:()=>{const E=he.CommonUtils.hasFocus(q.current,!0);!v&&!E||a.isSelected()||C()}}),Qe(a,{onRequestFocus:()=>he.CommonUtils.whenFocus(q.current,!0)},_l),o.useEffect(()=>{const E=q.current;return l(E),()=>{f(E)}},[]);const X=o.useMemo(()=>{if(!Z)return null;let{width:E,height:j}=Z;return z({view:i,movable:a,disabled:T,isDragging:k,style:{position:"relative",left:0,top:0,width:E,height:j},onHide:h,onShow:c})},[i,a,Z.width,Z.height,T,k]);return s.jsx("div",{className:"movable",tabIndex:0,ref:Nt([q,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:Z.x,top:Z.y,width:Z.width,height:Z.height,...M},onMouseDown:async E=>{const j=E.shiftKey||E.ctrlKey,$=a.isSelected(),ve=E.currentTarget;j&&$?a.unselect():($&&!j||await a.select({addToSelection:j}),p(E.nativeEvent,ve),ve.focus())},onFocus:E=>{E.relatedTarget&&!w&&N(E.relatedTarget),I(!0)},onBlur:E=>{w&&!q?.current?.contains(E.relatedTarget)&&N(null),E.relatedTarget&&I(!1)},...D,children:X})})),Xl="_movable-area_314c6_5",xr=o.memo(o.forwardRef((e,t)=>{const{view:n,movables:i,movablesView:a,renderMovable:l,transactional:f,onUnFocus:h,onFocus:c,disabled:C=!1,disableDrag:k=!1,disableResize:y=!1,className:p,style:M,renderDirections:T=["nw","n","ne","w","e","sw","s","se"],onFirstRender:z,...D}=e,Z=n.getBounds(),K=r.useCallbackRef(z,[z]),w=r.useCallbackRef(h,[h]),N=r.useCallbackRef(c,[c]),[v,I]=o.useState([]),[q,X]=o.useState(!1),[E,j]=o.useState(!1),$=o.useRef(!0),ve=o.useRef(new Map),Y=o.useRef(new Map),_=o.useRef(new Map),A=o.useRef(new Map),J=o.useRef(new Map),x=o.useRef({onRequestFocus:m=>(me(m),null)}),S=o.useRef(null),oe=o.useRef(null),ie=o.useRef(null),[qe,de]=o.useReducer(m=>m+1,0);o.useLayoutEffect(()=>{de()},[n,i]),Qe(i,{onCollectionChange:()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0}),F=J.current;F.forEach(te=>{te()}),F.clear();const G=x.current;for(let te=0;te<m.length;te++){const le=m[te];if(le.isClosed())continue;const b=le.addListeners(G);F.set(le,b)}de()},onInvalidated:()=>{de()}}),Qe(a,{onMovableSelectionChange(m){je(),de()}});const Pe=o.useCallback((m,F)=>{const G=_.current.get(m);ie.current&&(ie.current.getTargets().forEach(te=>{if(te===G)return te.style.left=F.x+"px",te.style.top=F.y+"px",te.style.width=F.width+"px",void(te.style.height=F.height+"px")}),ie.current.updateRect())},[]),je=()=>{const m=[],F=a.getMovableSelection();F.forEach(G=>{const te=_.current.get(G);te&&F.indexOf(G)!==-1&&m.push(te)}),I(G=>he.CommonUtils.isEqualArrays(G,m)?G:m)},De=o.useRef(null),Ie=o.useRef(null),ke=o.useMemo(()=>(Ie.current||(Ie.current=new Promise(m=>{De.current=m})),Ie.current),[]),ge=o.useRef(null),O=r.useCallbackRef(async(m,F)=>{ge.current=F,await(async()=>!(!await ke.then()||!ie.current))()&&ge.current===F&&ie.current.dragStart(m,F)},[v]),[Fe,ze]=o.useState(!1),H=o.useRef(null),W=o.useRef(null),me=r.useCallbackRef(async(m=null)=>{if(m||(m=a.getMovableSelection()[0]),!m)return w?.(),!1;const F=_.current.get(m);F?(await he.CommonUtils.whenFocus(F),F.focus(),W.current=F,H.current=null):H.current=m},[a]);o.useEffect(()=>{Fe&&v.length>0&&W.current!==v[0]&&me(),$.current&&(K?.(),$.current=!1)},[v]);const ue=o.useMemo(()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0});if(m.length===0&&ve.current.size===0)return null;const F=(B,R,P,ce=!0)=>{const se=B.isSelected(),ye={tabIndex:P,view:n,movable:B,onRefLoad:ee=>{H.current===B&&(ee.focus(),W.current=ee,H.current=null),_.current.set(B,ee),Y.current.set(ee,B),R.rendered=!0,je()},onRefUnload:ee=>{_.current.delete(B),Y.current.delete(ee),R.rendered=!1,je()},onUnFocus:w,onHide:ee=>{R.onHide=ee},onShow:ee=>{R.onShow=ee},isDragging:se&&(E||q),disabled:C,renderMovable:l,updateFrameBounds:ee=>{Pe(B,ee)},dragStart:O,onMouseUp:()=>{if(ge.current=null,oe.current){X(!1),j(!1);let ee=!1;A.current?.forEach(pe=>{he.CommonUtils.isEqualBounds(pe.movable.getBounds(),pe.startBounds)||(ee=!0)}),ee?Me():ae()}},style:{opacity:ce?q&&se?.7:void 0:0,zIndex:q&&se?B.getZIndex()+m.length:void 0,pointerEvents:ce?void 0:"none",cursor:E&&se?"grabbing":C||k?"initial":"move",boxShadow:!se||E&&!q?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(Zl,{...ye},`movable-${B.getUUID()}`)},G=ve.current,te=new Map,le=[];for(let B=0;B<m.length;B++){const R=m[B];if(R.isClosed())continue;let P=G.get(R);P||(P={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(ce,se)=>{if(!se||se.shown===!0)return;se.shown=!0;const ye=++se.visibilityRequestId;requestAnimationFrame(()=>{const ee=ve.current.get(ce);ee&&ye===se.visibilityRequestId&&(se.onShow?.(ce),ee.shown=!0)})},doHide:async(ce,se)=>{if(!se||se?.shown===!1)return;se.shown=!1;const ye=++se.visibilityRequestId,ee=await Promise.resolve(se.onHide?.(ce));ye===se.visibilityRequestId&&ee!==!1&&(se.shown=!1,ve.current.delete(ce),de())},visibilityRequestId:0}),P.frame=F(R,P,B,!0),le.push(P.frame),P.doShow(R,P),G.delete(R),te.set(R,P)}const b=[];return a.getMovableSelection().forEach(B=>{const R=G.get(B);R&&(R.frame=F(B,R,-1,!1),b.push(R.frame),G.delete(B),te.set(B,R))}),G.forEach((B,R)=>{B.frame=F(R,B,-1,!1),b.push(B.frame),B.doHide(R,B),G.delete(R),te.set(R,B)}),ve.current=te,je(),[...b,...le]},[qe,n,l,C,k,y,q,E]),fe=r.useCallbackRef((m,F)=>{const G=`${F} ${v.length===1?d.TextUtils.capitalize(Y.current?.get(v[0]).getContent().getType()):"Drawings"}`;oe.current&&(console.warn(`Transaction ${oe.current.getDescription()} is being replaced by ${G}`),oe.current.rollback(),oe.current=null),oe.current=f.beginCommit({description:G}),A.current.clear();for(let te=0;te<v.length;te++){const le=v[te],b=Y.current?.get(le);b?A.current.set(le,{movable:b,startBounds:n.toViewBounds(b.getBounds())}):console.warn("invalid element",b)}},[f,n,v]),Me=o.useCallback(()=>{if(!oe.current)return;const m=[];A.current?.forEach(F=>{m.push(F.movable)}),oe.current.commit({viewAfter:{view:a,movableSelection:m}}),A.current.clear(),oe.current=null},[]),ae=o.useCallback(()=>{oe.current&&(oe.current.rollback(),oe.current=null)},[]),be=o.useRef(null);o.useEffect(()=>{be.current&&(be.current.onscroll=m=>{m.preventDefault(),m.srcElement.scrollTop=0,m.srcElement.scrollLeft=0})},[be.current]);const g=r.useImperativeElement(t,()=>({isMovableArea:()=>!0,focusMovable:me,focus:()=>{me()}}),[a]),[Ne,Be]=o.useState(null),Te=o.useRef(!1),u=o.useRef(!1),L=o.useRef(!1);o.useEffect(()=>{if(C||v.length===0||L.current||Te.current)return;if(u.current)return void requestAnimationFrame(()=>{ie.current&&S.current&&ie.current.refTargets.length>0&&(L.current=!0,De.current?.(!0)),I([...v])});Te.current=!0;const m=o.lazy(async()=>{try{const F=await Promise.resolve().then(()=>require("./Ct-n32KgF_6BC7g-.cjs"));return Te.current=!1,u.current=!0,I([...v]),F}catch(F){return console.warn(F),De.current?.(!1),null}});Be(m)},[v,C,k,y]);const U=o.useMemo(()=>!Ne||C?null:s.jsx(o.Suspense,{children:s.jsx(Ne,{className:ct({dragging:q||E,resizing:q,moving:E}),container:null,ref:ie,target:ie.current?v:[],draggable:!C&&!k,resizable:!C&&!y,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:T,onResizeStart:m=>{fe(m.target,"Resize")},onResize:m=>{if(!oe.current)return m.stopDrag(),void de();X(!0);const F=m.direction[0]!==0&&m.direction[1]!==0;let G=0,te=0;for(let le=0;le<v.length;le++){const b=v[le],B=A.current.get(b),R=Y.current.get(b);if(!B||!R){console.warn("invalid element");continue}let P=m.dist[0],ce=m.dist[1],se=m.drag.dist[0],ye=m.drag.dist[1],ee=B.startBounds.width,pe=B.startBounds.height;le===0?(G=ee,te=pe):(P*=ee/G,se*=ee/G,ce*=pe/te,ye*=pe/te);const V={...B.startBounds};if(V.width=Math.max(0,ee+P),V.height=Math.max(0,pe+ce),m.direction[0]===-1&&(V.width=Math.max(0,Math.min(B.startBounds.x+ee,ee-se))),m.direction[1]===-1&&(V.height=Math.max(0,Math.min(B.startBounds.y+pe,pe-ye))),F&&(R.isLockAspectRatio()||m.inputEvent?.shiftKey)){const Q=ee/pe,re=V.width/V.height;re>Q?V.height=V.width/Q:re<Q&&(V.width=V.height*Q)}m.direction[0]===-1&&(V.x=Math.max(0,Math.min(B.startBounds.x+ee,B.startBounds.x+ee-V.width))),m.direction[1]===-1&&(V.y=Math.min(B.startBounds.y+pe,B.startBounds.y+pe-V.height)),B.movable.setBounds(n.toAbsoluteBounds(V))}},onResizeEnd:m=>{X(!1),Me()},onDragStart:m=>{fe(m.target,"Move")},onDrag:m=>{if(!oe.current)return m.stopDrag(),void de();j(!0);for(let F=0;F<v.length;F++){const G=v[F],te=A.current.get(G);te?te.movable.setBounds(n.toAbsoluteBounds({...te.startBounds,x:te.startBounds.x+m.translate[0],y:te.startBounds.y+m.translate[1]})):console.warn("invalid element")}},onDragEnd:m=>{},onMouseUp:m=>{}})}),[qe,Ne,v,n,C,k,y,q,E]);return s.jsx("div",{className:ct(p,"movable-area",Xl),style:{width:Z.width,height:Z.height,...M,position:"absolute",overflow:"hidden",willChange:"transform"},ref:Nt([g,be]),...D,children:s.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:Z.width,height:Z.height},...D,children:s.jsxs("div",{ref:S,style:{position:"absolute",pointerEvents:"auto"},onFocus:m=>{N?.(),ze(!0)},onBlur:m=>{ze(!1)},onKeyDownCapture:m=>{if(m.isDefaultPrevented())return;const F=m.nativeEvent.ctrlKey,G=m.nativeEvent.altKey,te=m.nativeEvent.shiftKey;if(m.which===r.KeyCodes.Escape){const P=a.getMovableSelection();let ce=[...P];return v.forEach(se=>{if(ce.length===0)return;const ye=Y.current.get(se);let ee=ce.indexOf(ye);ce.splice(ee,1)}),ce.length!==P.length&&a.selectMovables(ce),ce.length===0&&w?.(),void m.preventDefault()}const le=.1,b=P=>{i.updateSelected(ce=>{ce.setRotation(ce.getRotation()+P)},"Rotate")},B=(P,ce=!0)=>{i.updateSelected(se=>{const ye=se.getBounds();let ee=1+P;ce||(ee=1/ee);const pe=Math.sqrt(Math.pow(ye.width,2)+Math.pow(ye.height,2)),V=Math.atan2(ye.height,ye.width),Q=ee*pe;if(Q<10)return;const re=Q*Math.cos(V),Ee=Q*Math.sin(V),Ue={x:ye.x+(ye.width-re)/2,y:ye.y+(ye.height-Ee)/2,width:re,height:Ee};se.setBounds(Ue)},"Resize")},R=P=>{i.updateSelected(ce=>{const se=ce.getBounds(),ye={x:se.x+(P.x??0),y:se.y+(P.y??0),width:se.width+(P.width??0),height:se.height+(P.height??0)};ce.setBounds(ye)},"Nudge")};if(m.which===r.KeyCodes.Delete)i.updateSelected(P=>{P.delete()},"Delete"),m.preventDefault();else if(m.key==="a"&&F){const P=a.getMovableSelection();a.selectMovables(i.getItems(),!0),a.selectMovables(P,!0),m.preventDefault()}else m.key==="ArrowLeft"?(te?B(le,!1):G?b(-10):R({x:F?-10:-1}),m.preventDefault()):m.key==="ArrowRight"?(te?B(le,!0):G?b(10):R({x:F?10:1}),m.preventDefault()):m.key==="ArrowUp"?(te?B(le,!0):R({y:F?-10:-1}),m.preventDefault()):m.key==="ArrowDown"&&(te?B(le,!1):R({y:F?10:1}),m.preventDefault())},children:[ue,U]})})})})),Ut=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,i=0,a=0;for(let l=0;l<e.length;l++){const f=e[l].getBounds();t=Math.min(f.x,t),n=Math.min(f.y,n),i=Math.max(f.x+f.width,i),a=Math.max(f.y+f.height,a)}return{x:t,y:n,width:i-t,height:a-n}},Oo=(e,t=!0)=>{const n=[],i=t?"x":"y",a=t?"y":"x",l=t?"width":"height";let f=0,h=Number.MAX_SAFE_INTEGER,c=0;for(let y=0;y<e.length;y++){const p=e[y],M=p.getBounds();f+=M[l],h=Math.min(M[i],h),c=Math.max(M[i]+M[l],c),n.push({bounds:M,movable:p})}const C=(c-h-f)/(e.length-1);n.sort((y,p)=>{const M=y.bounds[i],T=p.bounds[i];return M!==T?M-T:y.bounds[a]-p.bounds[a]});const k=new Map;k.set(n[0].movable,n[0].bounds);for(let y=1;y<n.length-1;y++){const p=n[y-1].bounds,M={...n[y].bounds};M[i]=p[i]+p[l]+C,n[y].bounds=M,k.set(n[y].movable,M)}return k.set(n[n.length-1].movable,n[n.length-1].bounds),k},qr=e=>{const{movables:t,movablesView:n,transactional:i,commands:a,target:l,onRepeatCommandChange:f}=e,h=r.useNotifier(),c=r.useEditMode();o.useRef(c.getMode()).current=c.getMode();const C=r.useCallbackRef(async(w,N,v=null,I=!0)=>{const q=async()=>{const X=await Promise.resolve(h?.showBusy?.(w.getLabel()));try{await N();const E=v??w?.getLabel?.();if(f){let j=null;w&&E!==!1&&(j=new r.SimpleCommand(w.getKey(),l,{label:E,description:E},q)),f(j)}X?.(),I&&c.setMode(null)}catch(E){X?.(),h?.showError?.(E)}};await q()},[f,h]),[k,y]=o.useReducer(w=>w+1,0),p=r.useCallbackRef((w,N,v)=>{if(!n)return;const I=n.getMovableSelection();if(I.length===0)return;let q="Drawings";if(I.length===1){const E=I[0];q=d.TextUtils.capitalize(E.getContent().getType())??"Drawing"}const X=`${w.getLabel()} ${q}`;C(w,()=>{let E=null;i&&(E=i.beginCommit(X));const j=n.getMovableSelection();if(j.length===0)return;const $=v?.(j);for(let ve=0;ve<j.length;ve++){const Y=j[ve];N(Y,$)}E?.commit()})},[n,i]),[M,T]=o.useState(n.getMovableSelection()[0]??null),[z,D]=o.useState(!M||M?.isProtected()),Z=o.useMemo(()=>[new r.Command("moveToFront",l,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",icon:"DrawToFront",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToFront()})}),new r.Command("moveForward",l,{label:"Bring Forward",description:"Move forward one layer in the z order.",icon:"DrawMoveForward",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveForward()})}),new r.Command("moveToBack",l,{label:"Send to Back",description:"Move to the back of all of the other drawings.",icon:"DrawToBack",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToBack()})}),new r.Command("moveBackward",l,{label:"Send Backward",description:"Move backwards one layer in the z order.",icon:"DrawMoveBackward",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveBackward()})}),new r.Command("toggleLockAspectRatio",l,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners.",icon:"DrawAspect"},function(){p(this,w=>{w.setLockAspectRatio(!w.isLockAspectRatio())})}),new r.Command("formatAnchorTypeTwoCell",l,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.TwoCell)})}),new r.Command("formatAnchorTypeOneCell",l,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.OneCell)})}),new r.Command("formatAnchorTypeAbsolute",l,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.Absolute)})}),new r.Command("formatDrawAlignLeft",l,{label:"Align Left",description:"Align the selected drawings to the left.",icon:"DrawAlignLeft"},function(){p(this,(w,N)=>{w.setBounds({x:N.x})},Ut)}),new r.Command("formatDrawAlignCenter",l,{label:"Align Center",description:"Align the selected drawings vertically relative to each other.",icon:"DrawAlignCenter"},function(){p(this,(w,N)=>{w.setBounds({x:(N.width-w.getBounds().width)/2+N.x})},Ut)}),new r.Command("formatDrawAlignRight",l,{label:"Align Right",description:"Align the selected drawings to the right.",icon:"DrawAlignRight"},function(){p(this,(w,N)=>{w.setBounds({x:N.width-w.getBounds().width+N.x})},Ut)}),new r.Command("formatDrawAlignTop",l,{label:"Align Top",description:"Align the selected drawings to the top.",icon:"DrawAlignTop"},function(){p(this,(w,N)=>{w.setBounds({y:N.y})},Ut)}),new r.Command("formatDrawAlignMiddle",l,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other.",icon:"DrawAlignMiddle"},function(){p(this,(w,N)=>{w.setBounds({y:(N.height-w.getBounds().height)/2+N.y})},Ut)}),new r.Command("formatDrawAlignBottom",l,{label:"Align Bottom",description:"Align the selected drawings to the bottom.",icon:"DrawAlignBottom"},function(){p(this,(w,N)=>{w.setBounds({y:N.height-w.getBounds().height+N.y})},Ut)}),new r.Command("formatDrawDistributeHorz",l,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each.",icon:"DrawDistributeHorz"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w))}),new r.Command("formatDrawDistributeVert",l,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each.",icon:"DrawDistributeVert"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w,!1))}),new r.Command("formatDrawFlipHorz",l,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new r.Command("formatDrawFlipVert",l,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new r.Command("formatDrawGroup",l,{label:"Group",description:"Group the selected drawings into a single drawing.",icon:"DrawGroup"}),new r.Command("formatDrawUngroup",l,{label:"Ungroup",description:"Break the group of a drawing into individual drawings.",icon:"DrawUngroup"}),new r.Command("formatDrawSwapShapes",l,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new r.Command("formatDrawSwapShapesHorz",l,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new r.Command("formatDrawSwapShapesVert",l,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[n,M]);o.useEffect(()=>{},[c]);const K=o.useMemo(()=>{let w=null;return w=a?a.createChildGroup(l,"movable",!1):new r.CommandGroup(l,"movable"),w.addCommands(Z,!0),w},[a,Z]);return Qe(M,{onAnyChange:()=>{K.getCommand("formatAnchorTypeTwoCell").update({state:M?.getAnchorType()===d.IAnchored.Type.TwoCell}),K.getCommand("formatAnchorTypeOneCell").update({state:M?.getAnchorType()===d.IAnchored.Type.OneCell}),K.getCommand("formatAnchorTypeAbsolute").update({state:M?.getAnchorType()===d.IAnchored.Type.Absolute}),K.getCommand("formatAnchorTypeAbsolute").update({state:M?.getAnchorType()===d.IAnchored.Type.Absolute}),K.getCommand("toggleLockAspectRatio").update({state:M?.isLockAspectRatio()})},onProtectedChange:w=>{D(w.isProtected())},onDelete:()=>{}}),Qe(n,{onMovableSelectionChange:()=>{const w=n.getMovableSelection()[0]??null;T(w),D(!w||w.isProtected()),y()}}),Qe(t,{onCollectionChange:()=>{y()}}),o.useEffect(()=>{const w={disabled:z};K.getCommand("formatAnchorTypeTwoCell").update(w),K.getCommand("formatAnchorTypeOneCell").update(w),K.getCommand("formatAnchorTypeAbsolute").update(w),K.getCommand("toggleLockAspectRatio").update(w);const N=t.getCount(),v=n.getMovableSelection(),I=z||N<=1||v.length===0;let q={disabled:I},X=q;if(!I&&v.length===1){const $=v[0];$.getZIndex()===0&&(q={disabled:!0}),$.getZIndex()===N-1&&(X={disabled:!0})}K.getCommand("moveToFront").update(X),K.getCommand("moveForward").update(X),K.getCommand("moveToBack").update(q),K.getCommand("moveBackward").update(q);const E={disabled:z||v.length<=1};K.getCommand("formatDrawAlignLeft").update(E),K.getCommand("formatDrawAlignCenter").update(E),K.getCommand("formatDrawAlignRight").update(E),K.getCommand("formatDrawAlignTop").update(E),K.getCommand("formatDrawAlignMiddle").update(E),K.getCommand("formatDrawAlignBottom").update(E),K.getCommand("formatDrawFlipHorz").update(E),K.getCommand("formatDrawFlipVert").update(E),K.getCommand("formatDrawGroup").update(E),K.getCommand("formatDrawUngroup").update(E),K.getCommand("formatDrawSwapShapes").update(E),K.getCommand("formatDrawSwapShapesHorz").update(E),K.getCommand("formatDrawSwapShapesVert").update(E);const j={disabled:z||v.length<=2};K.getCommand("formatDrawDistributeHorz").update(j),K.getCommand("formatDrawDistributeVert").update(j)},[k,z,k]),K},Yl=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,description:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const k=r.useImperativeElement(t,()=>({isEmptyFrame:()=>!0}),[]),[y,{height:p,width:M}]=Wt();return s.jsx("div",{...C,ref:Nt([k,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a})})})})),Jl=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,propsMovable:a,renderMovable:l,commands:f,target:h,onRepeatCommandChange:c}=e,C=qr({movables:i.getMovables(),movablesView:i?.getView(),transactional:i,onRepeatCommandChange:c,commands:f,target:h});o.useEffect(()=>{n?.getStage()},[n?.getStage()]);const k=o.useMemo(()=>s.jsx(xr,{ref:t,view:n,movables:i.getMovables(),disableResize:!i.getProtection().isObjectsAllowed(),disableDrag:!i.getProtection().isObjectsAllowed(),movablesView:i.getView(),transactional:i,renderMovable:l,...a,onFocus:()=>{C.activate(),a?.onFocus?.()}},"movable-area"),[i,a,f,C]);return k&&n?k:null})),Ql=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,gridStyle:a,getCellEditor:l,showProtectedError:f,setEditingCoords:h,commands:c}=e,C=r.useEditMode(),[k,y]=o.useState(null),[p,M]=o.useState(null),[T,z]=o.useState(null),[D,Z]=o.useState(null),[K,w]=o.useState(null);o.useLayoutEffect(()=>{if(T===null)return Z(null),void w(null);const x=()=>{const S=i.getRange(T).getCell(),oe=S.getStyle();let ie,qe=oe.getFill()?.toCSS(a.body.darkMode);qe.background!=="none"&&qe.background!=="transparent"||(qe=i.getStyles().getNormal().getFill().toCSS(a.body.darkMode)),qe.background!=="none"&&qe.background!=="transparent"||(qe={background:a.body.fill}),Z({style:qe}),S&&!S.getFormula()&&(ie=S?.getRenderHorizontalAlignment()),w(ie??r.HorizontalAlignment.Left)};return x(),i.getRange(T).addListener(()=>{x()})},[i,T,a?.body]);const N=r.useCallbackRef(()=>{let x=p.editState.dirty??"";if(p.editState.dirty!==void 0){const S=d.TextUtils.clampString(x);try{const oe=p.sheet.getRange(p.coords),ie=`Typing '${S}' into ${oe.toString()}`;return oe.setValue(x,{description:ie,autoFit:!0}),z(null),M(null),C.setMode(null),h(null),!0}catch(oe){throw he.Notifier.error(new Error(`Unable to enter '${S}'.`,{cause:oe})),oe}}},[i,p]),v=r.useCallbackRef(x=>i.getRange(x).getCell().getExtrusions()??he.CoordUtils.cellToRange(x),[i]),I=r.useCallbackRef(x=>{let S=d.IRange.Orientation.Row,oe=!1;x!==d.IRange.Direction.Up&&x!==d.IRange.Direction.Down||(S=d.IRange.Orientation.Column),x!==d.IRange.Direction.Left&&x!==d.IRange.Direction.Up||(oe=!0),i.getSelection().traverse(S,oe)},[i]),q=o.useCallback((x,S)=>{if(l)return l(x,S);if(!i)return null;const{ref:oe,...ie}=x;return s.jsx(gr,{ref:oe,...ie,sheet:i,bodyStyle:a?.body,activeCoords:S,commands:c,onChangeEdit:qe=>{const de={sheet:i,coords:S,editState:qe};C.setMode(Pe=>({...Pe,description:de.editState.editMode?"Edit":"Enter",args:{...Pe?.args,stateAndCoords:de}}))},editState:p.editState})},[i,D,l,p,T]),{renderOverlay:X,startEdit:E,submitEdit:j,cancelEdit:$,onKeyboardEventNative:ve,onPointerEventNative:Y}=gt.useKeyboardEditorOverlay({view:n,activeCoords:k,getCellEditor:q,canEdit:()=>{const x=i.getProtection();if(x.isReadOnly())return!1;const S=x.isLocked();return S&&f(),!S},onBeforeStartEdit:x=>{const S=hr(()=>i.getRange(x).getCell()),oe={sheet:i,coords:x,editState:Object.freeze(S)};C.setMode({key:"edit",args:{stateAndCoords:oe}}),M(oe)},onStartEdit:x=>{z(x),h(x)},onSubmitEdit:N,onCancelEdit:x=>{z(null),M(null),C.setMode(null),h(null)},onDoneEdit:x=>{C.setMode(null)},onNavigate:I,propsContainer:D,borderStrokeFill:a.selection?.strokeFill,borderStrokeWidth:i?.getSelection().getCoords().ranges?.length>1?1:2,alignment:K,getRangeCoords:v});Qe(i.getSelection(),{onChange(x){y(i.getSelection().getCoords().cell)}});const _=r.useCallbackRef(x=>{Y(x),T&&j()},[Y,$,T]),A=o.useCallback(x=>{Y(x)},[Y]),J=o.useCallback(x=>{ve(x)},[ve]);return o.useEffect(()=>{const x=n?.getStage();if(x)return x.addEventListener("pointerdown",_),x.addEventListener("dblclick",A),x.addEventListener("keydown",J),()=>{x.removeEventListener("pointerdown",_),x.removeEventListener("dblclick",A),x.removeEventListener("keydown",J)}},[n?.getStage()]),o.useEffect(()=>{const x=C.getMode(),S=x?.key;S==="edit"||S==="enter"?p?x.args?.cancel?$():x.args?.submit?j():M(x.args?.stateAndCoords):E(x.args?.start):T&&$()},[C]),X(n,t)})),Sr="white",Rr="black",ei=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,ti=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,ni=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i}=e,[a,l]=o.useState(i.getTables().getCount()>0),[f,h]=o.useState(null),[c,C]=o.useState(null),[k,y]=o.useState(null),[p,M]=o.useState(null),T=r.useCallbackRef(()=>{if(i.getTables().getCount()>0){l(!0);const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)}else l(!1),h(null)},[i,n]),z=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const I=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:I});q.length===1&&q[0].select()},[n,i]),D=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const I=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:I});if(q.length===1){const X=q[0].getRange().getCoords(),E={colStart:X.colStart,rowStart:I.rowIndex,colEnd:X.colEnd,rowEnd:I.rowIndex};i.getRange(E).select()}},[n,i]),Z=r.useCallbackRef(()=>{if(!a)return;const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)},[i,a,n]);Qe(i?.getSelection(),{onChange(v){C(i.getSelection().getCoords().cell)}}),Qe(k,{onAnyChange(v){T(),Z()}}),Qe(p,{onAnyChange(v){Z()}}),Qe(i,{onTablesChange(v){T(),Z()},onInvalidated(v){T(),Z()}});const K=o.useMemo(()=>he.CommonUtils.debounce(he.CommonUtils.throttle(Z,300),300),[]);o.useEffect(()=>{K()},[n]),o.useEffect(()=>{let v=null;if(f)for(let I=0;I<f.length&&!v;I++){const q=f[I],X=q.getRange().getCoords();d.CoordUtils.isCellWithinRange(c,X)&&(v=q)}y(v)},[c,f]);const w=r.useCallbackRef(v=>{let I=null;if(f)for(let q=0;q<f.length;q++){const X=f[q],E=X.getRange().getCoords();let j=n.getRangeCoordsBounds(E);const $=n.getRelativePointFromClient(v.clientX,v.clientY),ve=$.x,Y=$.y;if(ve>=j.x&&ve<=j.x+j.width&&Y>=j.y&&Y<=j.y+j.height){const _=n.getViewportSize();ve<=0||Y<=0||ve>=_.width||Y>=_.height||(I=X)}}M(I)},[n,f]);if(o.useEffect(()=>{const v=n?.getStage();if(v&&f)return v.addEventListener("mousemove",w),v.addEventListener("mouseleave",w),()=>{v.removeEventListener("mousemove",w),v.removeEventListener("mouseleave",w)}},[f,n?.getStage()]),!n||!f||f.length===0)return null;const N=[];for(let v=0;v<f.length;v++){const I=f[v];if(I.isClosed())continue;const q=I===p,X=I===k,E=I.getRange().getCoords(),j=n.getRangeCoordsBounds(E);let $;if(q||X){const ve=I.getStyle().getProperties(),Y=ve.headerRow?.fill?.background??ve.wholeTable?.border?.top?.color?.toString();if(Y&&i){const _=i.getStyles().parseColor(Y);_&&($=_.toCSS())}$||($="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}N.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:j.height,pointerEvents:"all",cursor:ei},onMouseDown:D},`table-select-row-${I.getName()}`)),N.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:Math.min(16,j.height),pointerEvents:"all",cursor:ti},onMouseDown:z},`table-select-${I.getName()}`)),N.push(s.jsx(gt.Selection,{x:j.x,y:j.y,width:j.width,height:j.height,range:E,strokeWidth:X?.5:0,stroke:$??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:q?`${$} 0px 0px 1px 1px`:void 0}},`table-outline-${I.getName()}`))}return N})),oi=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,animationTime:a=60}=e,[l,f]=o.useState(null),[h,c]=o.useState(null),C=o.useRef(null),k=r.useCallbackRef(()=>{const D=i.getSelectedCell(),Z=D.getSpill()?.getCoords()??null;he.CoordUtils.isEqualRanges(Z,l)||(c(Z?{transition:l?"move":"in",bounds:n.getRangeCoordsBounds(Z),coords:Z}:{transition:"out",bounds:n.getRangeCoordsBounds(l),coords:l}),f(Z))},[i,n,l]);o.useEffect(()=>(C.current&&(clearTimeout(C.current),C.current=null),h&&(C.current=setTimeout(()=>{c(null),C.current=null},a)),()=>{C.current&&(clearTimeout(C.current),C.current=null)}),[h,a]);const y=o.useMemo(()=>he.CommonUtils.debounce(he.CommonUtils.throttle(k,80),80),[]);if(Qe(i?.getSelection(),{onChange(D){y()}}),Qe(i,{onSpillsChange(D){k()},onInvalidated(D){k()}}),!n||!l&&!h)return null;const p=i.getRange(l).getValue()instanceof d.FormulaError.Spill,M=[];let T=h?.bounds??n.getRangeCoordsBounds(l);if(h&&!he.CommonUtils.isEqualBounds(h.bounds,n.getRangeCoordsBounds(h.coords))&&c(null),T=n.toClipBounds(T,-10),!T)return;const z="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return M.push(s.jsx(gt.Selection,{x:T.x,y:T.y,width:T.width,height:T.height,range:l,strokeWidth:1,stroke:z,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:p?"6 3":void 0,opacity:h?.transition==="out"?0:1,transition:h?.transition?h.transition==="in"||h.transition==="out"?`opacity ${1.5*a}ms ease-in-out`:`left ${a}ms ease-out, top ${a}ms ease-out, width ${a}ms ease-out, height ${a}ms ease-out`:"none",boxShadow:`${z} 0px 0px 4px 0px`}},"spill-outline}")),M})),ri={position:"absolute",top:0,left:0,bottom:0,right:0},Ho=(e,t)=>{const n={...e},i=t?.getNormal().getFont(),a=i?.toCSS(),l={text:{fontFamily:a?.fontFamily,fontSize:i?.getSize()}},f=n.body=he.CommonUtils.mergeContentful(e.body,l);return n.body=he.CommonUtils.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},f),n.buttonSurface=he.CommonUtils.mergeContentful({fill:"#fff",text:{fill:"black"},edgeStrokeFill:"black"},n.buttonSurface),n.selection={fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#217346",strokeWidth:2,...e.selection},n.selectionInactive={...n.selection,fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#dad8d6",...e.selectionInactive},n.selectionRemove={...n.selection,fill:"rgba(200, 0, 0, 0.1)",strokeFill:"rgba(200, 0, 0, 1)",...e.selectionRemove},n.headerSelection={...n.selection,...e.headerSelection},n.headerSelectionInactive={...n.selectionInactive,...e.headerSelectionInactive},n.header=he.CommonUtils.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=he.CommonUtils.mergeContentful(n.header,l),n.headerSelect=he.CommonUtils.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=he.CommonUtils.mergeContentful(n.headerSelect,l),n.headerSelectAll=he.CommonUtils.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=he.CommonUtils.mergeContentful(n.headerSelectAll,l),n},li={fireOnModelChange:!1},Vo={},kr=o.memo(o.forwardRef((e,t)=>{const{sheet:n,gridStyle:i=Vo,headersStyle:a=Vo,onSheetContextMenu:l,showColumnHeaders:f,propsColumnHeader:h,showRowHeaders:c,propsRowHeader:C,showScrollbars:k=!0,propsScrollPane:y,onViewportChange:p,commands:M,onRepeatCommandChange:T,overlays:z,renderMovable:D,viewportComponent:Z,onElementLoad:K,getCellEditor:w,onFocus:N,onBlur:v,style:I=r.ReactUtils.EmptyCssProperties,onShowTooltip:q,onShowColumnTooltip:X,onShowRowTooltip:E,onCloseTooltip:j,propsGrid:$,propsCellRender:ve,...Y}=e;if(o.useEffect(()=>{d.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[_,A]=o.useReducer(ne=>ne+1,0),[J,{width:x,height:S}]=Wt(),oe=r.useCallbackRef(q,[q]),ie=r.useCallbackRef(X,[X]),qe=r.useCallbackRef(E,[E]),de=r.useCallbackRef(j,[j]),Pe=o.useRef(!1);o.useLayoutEffect(()=>{Pe.current=!0},[n]);const je=n?.getStyles(),De=o.useMemo(()=>Ho(i,je),[i,je]),Ie=o.useMemo(()=>Ho(a,je),[a,je]),{body:ke={},buttonSurface:ge={}}=De,{header:O={},headerSelect:Fe={},headerSelectAll:ze={}}=Ie,H=o.useRef(null),[W,me]=o.useState(()=>n?.getView()),ue=(W?.getZoomScale()??100)/100,fe=o.useMemo(()=>({vertical:W.isShowColumnGridlines()&&ue>=.4,horizontal:W.isShowRowGridlines()&&ue>=.4}),[W?.isShowColumnGridlines(),W?.isShowRowGridlines(),ue]),Me=o.useMemo(()=>{if(W?.getGridLineColor())return{strokeDasharray:"1,1"}},[W?.getGridLineColor(),De]),ae=f??W?.isShowColumnHeaders(),be=c??W?.isShowRowHeaders(),[g,Ne]=o.useState({width:0,height:0}),Be=o.useMemo(()=>{let ne=40,Re=20;const Ke=n?.getStyles().getNormal().getFont();if(g.width>0&&g.height>0){const Ve=Ke?.toCSS()?.fontFamily??De.header.text.fontFamily,Ge=Ke?.getSize()??De.header.text.fontSize,We=d.IFont.getSharedMeasurer()(""+g.height,Math.ceil(Ge*d.IFont.getDeviceScale()),Ve);ne=We.width,Re=We.lineHeight}return{width:Math.round(ne+5),height:Math.round(Re+3)}},[g,De?.header.text,n]),Te=be?ue*Be.width:O.edgeStrokeWidth,u=ae?ue*Be.height:O.edgeStrokeWidth,L=Math.max(x,(n?.getColumnHeaders().getDefaultSize()??Be.width)+Te+1),U=Math.max(S,(n?.getRowHeaders().getDefaultSize()??Be.height)+u+1),m=o.useRef(new Map),F=o.useRef(null),G=()=>({getColOffset:ne=>n.getColumnHeaders().findOffset(ne),getColIndex:ne=>n.getColumnHeaders().findIndex(ne),getRowOffset:ne=>n.getRowHeaders().findOffset(ne),getRowIndex:ne=>n.getRowHeaders().findIndex(ne)}),[te,le]=o.useState(()=>G()),[b,B]=o.useState(!1),[R,P]=o.useState(null),ce=!0,se=De.selection?.strokeFill,ye=o.useCallback(()=>Mt.current,[]),[ee,pe]=o.useState(),V=r.useCallbackRef(ne=>{pe(ne);const Re=n?n.getView():null;Re&&Re.setTopLeft(ne?{left:ne.left,top:ne.top}:null),p?.(ne)},[n,p]),Q=o.useRef(null);o.useEffect(()=>{if(!ee||!n)return;const ne=n.getRangeAtBounds({x:ee.left,y:ee.top,width:ee.width,height:ee.height});Q.current?.(),Q.current=ne.addListener(()=>{const Re=ne.getCoords();H?.current?.invalidate(Re)})},[ee,n]);const[re,Ee]=o.useState(()=>n?.getView().getTopLeft()),Ue=r.useCallbackRef(ne=>{const Re=he.CoordUtils.cellToRange(ne);if(n.isClosed())return Re;const Ke=n.getRange(Re,{ignoreHidden:!0}).getMerges();return Ke.length===0?Re:Ke[0]},[n]),Oe=ne=>{if(!ne||ne.coords.colIndex===0&&ne.coords.rowIndex===0)return null;const Re={};return ne.coords.colIndex>0&&(Re[he.AnchorLocation.Left]={index:ne.coords.colIndex,scrollOffset:ne.topLeft.left}),ne.coords.rowIndex>0&&(Re[he.AnchorLocation.Top]={index:ne.coords.rowIndex,scrollOffset:ne.topLeft.top}),Re},[xe,He]=o.useState(()=>Oe(n.getView().getFreezePanes())),Ce=r.useEditMode(),Ae=o.useCallback(()=>H.current,[]),we=r.useCallbackRef(ne=>{Ce.setMode(Re=>Re?.key==="edit"?{...Re,args:{...Re.args}}:{key:"edit",args:{stateAndCoords:null,start:ne}})},[]),Se=r.useCallbackRef(()=>ee,[ee]),Le=wr({sheet:n,commands:M,target:Ae,onRepeatCommandChange:T,bodyStyle:ke,onStartEdit:we,getViewport:Se}),[Ze,_e]=o.useState(n.getSelection().isEntire()),[Xe,at]=o.useState(W?.getMovableSelection().length>0),ot=R!==null||Xe,$e=null,[lt,it]=o.useState(!1);o.useEffect(()=>{it(!1)},[n.getProtection()]);const Je=r.useNotifier(),st=r.useCallbackRef(()=>{lt||(it(!0),Je.showMessage?.(s.jsxs("span",{children:["This sheet is protected.",s.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:r.NotifierType.Error}))},[Je,lt]),wt=o.useMemo(()=>{const ne=Ce.getMode();return ne?.cursor?ne.cursor:null},[$e,Ce]),[bt,dt]=o.useState(null),ft=o.useRef(!1),[xt,Un]=o.useState([]),Yt=o.useRef(null),[fn,Pt]=o.useState(he.TypesUtils.EmptyTopLeft),[jt,It]=o.useState(he.TypesUtils.EmptyTopLeft);o.useEffect(()=>{Pt({left:re?.left,top:0})},[re?.left]),o.useEffect(()=>{It({left:0,top:re?.top})},[re?.top]),Qe(n?.getView(),{onFreezeSplitChange:()=>{He(Oe(n.getView().getFreezePanes()))},onTopLeftChange:()=>{Ee(n.getView().getTopLeft())},onMovableSelectionChange:()=>{at(n.getView().getMovableSelection().length>0)}}),Qe(n?.getSelection(),{onChange:()=>{_e(n.getSelection().isEntire())}}),Qe(n,{onViewChange(){me(n.getView()),le(G())},onLayoutChange:()=>{const ne=n.getEntireRange();Ne({height:ne.getRowCount(),width:ne.getColumnCount()}),le(G())},onStyleChange:()=>{At()},onMovablesChange:()=>{},onInvalidated:()=>{At()}}),Qe(n,{onRequestScrollIntoView:async(ne,Re)=>{if(!Re)return;const Ke={colIndex:Re?.coords?.colStart,rowIndex:Re?.coords?.rowStart};return await H.current?.scrollCellCoordsIntoView(Ke,Re?.scroll),!0},onRequestFocus:()=>he.CommonUtils.whenFocus(Mt.current)},li);const pt=o.useRef(!1),pn=o.useMemo(()=>{const ne=he.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&ie?.(Ve)})},32),Re=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:0,rowEnd:g.height,colStart:Ve,colEnd:Ve})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getColOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.x+tt.width,rt.getColOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===he.AnchorLocation.Left||Tt===he.AnchorLocation.Center||Tt===he.AnchorLocation.Right)){const to=he.CommonUtils.roundAccurately(Ge*he.CommonUtils.getDPI(),0),bn=he.CommonUtils.roundAccurately(n?.getColumnWidthAsFontUnit(Ge/ue),2).toFixed(2),no="Width: "+(Ge?bn+" ("+to+" pixels)":"Hidden"),tn=Gn.current.getGridElement().getRelativePointFromClient(0,0),Vt=0-tn.y,xn=0-tn.y+u,oo=tn.x-tt.x;ne({anchor:{x:nt-oo,y:Vt,width:yt-nt,height:xn-Vt},display:no})}const zt=[0,0,0,tt.height],Yn={style:{boxShadow:`0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},Jn={x:nt-1,y:0,width:1,height:tt.height},Qn={style:{boxShadow:`-0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},eo={x:yt-1,y:0,width:1,height:tt.height};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Re(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Re(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Re(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},...h}},[n,h,u,bt]),Bt=o.useMemo(()=>{const ne=he.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&qe?.(Ve)})},32),Re=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:Ve,rowEnd:Ve,colStart:0,colEnd:g.width})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getRowOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.y+tt.height,rt.getRowOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===he.AnchorLocation.Top||Tt===he.AnchorLocation.Center||Tt===he.AnchorLocation.Bottom)){const to=Math.floor(10*he.CommonUtils.getDPI())/10,bn=he.CommonUtils.roundAccurately(Ge*to,0),no=he.CommonUtils.roundAccurately(bn/ue/(n?.getRowHeaders().getScaleFactor()*he.CommonUtils.getDPI()),2).toFixed(2),tn="Height: "+(Ge?no+" ("+bn+" pixels)":"Hidden"),Vt=Ht.current.getGridElement().getRelativePointFromClient(0,0),xn=0-Vt.x,oo=0-Vt.x+Te,gl=Vt.y-tt.y;ne({anchor:{x:xn,y:nt-gl,width:oo-xn,height:yt-nt},display:tn})}const zt=[0,0,tt.width,0],Yn={style:{boxShadow:`0px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},Jn={x:0,y:nt-1,width:tt.width,height:1},Qn={style:{boxShadow:`0px -0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},eo={x:0,y:yt-1,width:tt.width,height:1};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Re(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Re(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Re(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},...C}},[n,C,Te]),Mt=r.useImperativeElement(t,()=>{const ne=Ke=>{n?.getView()&&n.getView().selectMovables([]),F.current=null,H?.current?.focus(Ke)},Re=async(Ke=null)=>{if(Ke||(Ke=n?.getView().getMovableSelection()[0]),!Ke)return!1;const Ve=Ke.getAnchorCoords();if(!Ve)return!1;const Ge=H.current?.getViewFromCellCoords({colIndex:Ve.colStart,rowIndex:Ve.rowStart});if(!Ge)return!1;const We=Ge.getAnchor();n?.getView().getMovableSelection().indexOf(Ke)===-1&&n?.getView().selectMovables([Ke]);let rt=m.current?.get(We);return rt?.current?(await rt.current.focusMovable(Ke),!0):(F.current={movable:Ke,anchor:We},!0)};return{getGridElement:()=>H.current,getRowHeaderElement:()=>Ht.current,getColumnHeaderElement:()=>Gn.current,rowHeaderHeight:()=>u,colHeaderWidth:()=>Te,startEdit:we,submitEdit:()=>{Ce.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{Ce.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:R!==null,focus:Ke=>{n?.getView().getMovableSelection().length>0&&Re()||ne(Ke)},focusSheet:ne,focusMovable:Re,contains:Ke=>H?.current?.contains?.(Ke),invalidate:At,isSheetElement:()=>!0,getSheet:()=>n}},[n]),At=o.useCallback(ne=>{Pe.current||(H?.current?.invalidate(ne),A?.())},[]);o.useEffect(()=>{At()},[De]);const Jt=Ze?ze.edgeStrokeFill:O.fill,Kn=Ze?Fe.fill:typeof De.headerHover=="function"?De.headerHover(O)?.fill:O.fill,et=o.useMemo(()=>Z?s.jsx("div",{className:ct("sheetxl-viewport-overlay",Sl),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:Z}):s.jsx(s.Fragment,{}),[Z]);let Qt=null;ae&&be&&(Qt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${u}px`,width:`${Te}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:ne=>{let Re=!ne.ctrlKey;Le?.getCommand("selectAll")?.execute(!Re||ne.button!==0),ne.nativeEvent.which===r.MouseButtonCodes.Right?l?.({originalEvent:ne,clientX:ne.clientX,clientY:ne.clientY,rowIndex:-1,colIndex:-1}):H.current?.focus()},children:[s.jsx("div",{style:{height:u-5+"px",width:u-5+"px",clipPath:`path('M${u-5} 0 L0 ${u-5} L${u-5} ${u-5} L${u-5} 0 Z')`,borderRight:`2px solid ${Jt}`,borderBottom:`2px solid ${Jt}`,background:`${Kn}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${u}px`,width:`${Te}px`,boxSizing:"border-box",borderRight:`solid 1px ${O.strokeFill}`,borderBottom:`solid 1px ${O.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const Ot=r.useCallbackRef(({_left:ne,_top:Re})=>{},[]),vn=r.useCallbackRef(ne=>{if(!l)return;const Re=H.current.getViewFromClient(ne.clientX,ne.clientY)?.getCellCoordsFromClient(ne.clientX,ne.clientY);Re&&(l({originalEvent:ne,clientX:ne.clientX,clientY:ne.clientY,rowIndex:Re.rowIndex,colIndex:Re.colIndex}),ne.stopPropagation(),ne.preventDefault())},[l]),ut=r.useCallbackRef(ne=>{if(!(!ne.shiftKey&&(ne.ctrlKey||ne.metaKey)))return;const{deltaY:Re}=ne;return Re>0?Le.getCommand("sheetZoomOut")?.execute():Re<0&&Le.getCommand("sheetZoomIn")?.execute(),Re===0},[Le]);o.useEffect(()=>{Un(null),Yt.current=null,ft.current=!1,dt(null);const ne=n?.getView().getTopLeft();Ot(ne),H.current?.scrollTo(ne),Ee(ne),me(n.getView()),He(Oe(n.getView().getFreezePanes())),le(G()),A()},[n?.getView()]);const vt=o.useCallback((ne,Re)=>n.getRowHeaders().hiddenHeadersAt(ne,Re),[n]),Cn=o.useCallback((ne,Re)=>n.getColumnHeaders().hiddenHeadersAt(ne,Re),[n]),en=r.useCallbackRef(ne=>{const Re=ne.getVisibleRangeCoords();if(!Re)return null;const Ke=[];return n.getRange(Re).forEach((Ve,Ge)=>{const We=Ge.getCoords(),rt=Ge.getCell();(nt=>{if(nt.isEmpty())return!1;const tt=nt.getSpans();if(tt.width>1||tt.height>1||nt.getStyle().hasVisibleStyling()||W.isShowFormulas()&&nt.getFormula()!==null)return!0;const yt=nt.getValue();return yt!==null&&!(!W.isShowZeros()&&yt===0&&nt.getType()===d.ScalarType.Number)})(rt)&&Ke.push({coords:We,value:rt,range:W.isShowFormulas()?null:rt.getExtrusions()})},{ignoreHidden:!0,includeMergeOverflow:!0}),Ke},[n,W.isShowZeros(),W.isShowFormulas(),R]);o.useEffect(()=>{const ne=[];z&&ne.push(...z),bt&&ne.push(...bt),he.CommonUtils.isEqualArrays(ne,Yt.current)||(Yt.current=ne,Un(ne))},[z,bt,De]);const Dt=o.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:i?.body?.text?.fill??"black"}}),[De?.header?.edgeStrokeFill]),$n=r.useCallbackRef(ne=>{ne.isDefaultPrevented()||ne.isPropagationStopped()||(F.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),Wn=o.useMemo(()=>{const ne=Ce.getMode();return ne?.key==="cut"||ne?.key==="copy"},[Ce]),yn=r.useCallbackRef(async ne=>{const Re=Ce.getMode();return ne.keyCode===r.KeyCodes.Escape&&Re?(ne.preventDefault(),void Ce.setMode(null)):ne.keyCode===r.KeyCodes.Enter&&Wn?(ne.preventDefault(),await Le?.getCommand("paste")?.execute(),void Ce.setMode(null)):void Le?.dispatchToFocusedCommand(ne)},[Le,Ce]),Ht=o.useRef(null),wn=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Te+O.edgeStrokeWidth}px`,minWidth:`${Te+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(jo,{ref:Ht,sheetElement:Mt.current,gridRef:H,freezeStart:xe?.[he.AnchorLocation.Top],oppositeSize:Te,containerWidth:Te,containerHeight:U,sheetHeader:n.getRowHeaders(),gridStyle:Ie,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:jt,onSheetContextMenu:l,tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Te+O.edgeStrokeWidth}px`,minWidth:`${Te+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2",...Bt?.style},...Bt})}),[Te,u,U,n,jt,xe?.[he.AnchorLocation.Top],De,ce,l,O.fill,C]),Gn=o.useRef(null),ll=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(jo,{ref:Gn,sheetElement:Mt.current,gridRef:H,freezeStart:xe?.[he.AnchorLocation.Left],oppositeSize:u,containerWidth:L,containerHeight:u,sheetHeader:n.getColumnHeaders(),gridStyle:Ie,scrollPoint:fn,onSheetContextMenu:l,...pn,style:{...pn?.style,position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[u,L,n,fn,xe?.[he.AnchorLocation.Left],De,O.fill,ce,l,h]),il=r.useCallbackRef(ne=>{const{value:Re,key:Ke,...Ve}=ne;let Ge=Re,We=R;if(!We||We.colIndex===ne.coords.colIndex&&We.rowIndex===ne.coords.rowIndex||(We=null),!Ge){const tt=ne.range;if(Ge=n.getRange({rowIndex:tt.rowStart,colIndex:tt.colStart}).getCell(),Ge.isEmpty())return null}let rt=null;Ge.getHyperlink()&&(rt=async tt=>{if(ve?.onLinkMouseDown?.(tt),tt.button===0&&!tt.isDefaultPrevented()){tt.stopPropagation(),tt.preventDefault();try{await Ge.getHyperlink()?.open()}catch(yt){Je.showError?.(yt)}}}),We&&We.colIndex===ne.range.colStart&&We.rowIndex===ne.range.rowStart&&(Ge=Ge.createTemporaryCell({value:null}));const nt=n.getStyles();return o.createElement(ur,{...Ve,key:Ke,bodyStyle:ke,docTheme:nt.getTheme(),normalStyle:nt.getNormal(),showFormulas:W.isShowFormulas(),showZeros:W.isShowZeros(),onLinkMouseDown:rt,...ve,value:Ge})},[n,te,ke,R,W?.isShowFormulas(),W.isShowZeros()]),al=o.useCallback(ne=>{const{key:Re,ref:Ke,...Ve}=ne;return[s.jsx(Al,{ref:Ke,getVisibleCells:en,sheet:n,gridStyle:De,...Ve},`border-${Re}`),s.jsx(ni,{ref:Ke,sheet:n,commands:Le,...Ve},`table-${Re}`),s.jsx(oi,{ref:Ke,sheet:n,...Ve},`spill-${Re}`),s.jsx(Gl,{ref:Ke,sheet:n,commands:Le,onShowTooltip:oe,onCloseTooltip:de,gridStyle:De,gridRef:H,isActive:ce,...Ve},`selection-${Re}`),s.jsx(Ol,{ref:Ke,sheet:n,commands:Le,gridStyle:De,element:ye,...Ve},`copy-paste-${Re}`),s.jsx(Jl,{ref:Ke,sheet:n,commands:Le,target:Ae,renderMovable:D,propsMovable:{onUnFocus:()=>{Mt.current.focus()}},...Ve},`movable-${Re}`),s.jsx(Ql,{ref:Ke,sheet:n,commands:Le,gridStyle:De,getCellEditor:w,showProtectedError:st,setEditingCoords:P,...Ve},`editor-${Re}`)]},[n,H.current,De,w,Le,Je]),[Io,sl]=o.useState(!1),cl=o.useMemo(()=>{if(L===0||U===0)return null;const ne=n.getStyles().getNormal(),Re=ne.getFont(),Ke=ne.getFill(),Ve=ne.getBorder(),Ge=ne.getFill().getType()===d.IFill.Type.None;let We=Me,rt=Me;const nt=(yt,Tt,zt)=>zt?{stroke:Ve.getBottom().isNone()?"none":yt.getColor().toRGBA(ke.darkMode).toString(),...Tt}:Tt;rt=nt(Ve.getBottom(),rt,!Ve.getBottom().isNone()),rt=nt(Ve.getTop(),rt,!Ve.getTop().isNone()),We=nt(Ve.getRight(),We,!Ve.getRight().isNone()),We=nt(Ve.getLeft(),We,!Ve.getLeft().isNone());let tt=W?.getGridLineColor()?.toRGBA(ke.darkMode).toString()??ke.strokeFill;return Ge||(rt=nt(Ve.getBottom(),rt,!0),rt=nt(Ve.getTop(),rt,!0),We=nt(Ve.getRight(),We,!0),We=nt(Ve.getLeft(),We,!0)),s.jsx(gt.Grid,{className:"sheetxl-sheet-primary",style:{...ri,...Ke.toCSS(ke.darkMode),...Re.toCSS(ke.darkMode,ue),"--sxl-app-color-background":ke.fill,"--sxl-app-color-shadow":De.colorShadow,"--sxl-app-color-grey":De.colorGrey,"--sxl-app-color-button-fill":ge.fill,"--sxl-app-color-button-text":ge.text?.fill,"--sxl-app-color-button-border":ge.edgeStrokeFill,"--sxl-app-color-primary-dark":De.selection.strokeFill},ref:H,zoom:ue,...$,onFirstRender:yt=>{sl(!0),$?.onFirstRender?.(yt),Le?.activate()},showGridLines:fe,gridLineColor:tt,propsGridLineColumns:We,propsGridLineRows:rt,freezeLeft:xe?.[he.AnchorLocation.Left],propsFreezeLeft:Dt,freezeTop:xe?.[he.AnchorLocation.Top],propsFreezeTop:Dt,width:L,height:U,columnCount:g.width,rowCount:g.height,cursor:wt??$e??"cell",clipCells:!0,layout:te,renderCell:il,renderOverlay:al,getCellCoordsAsRangeCoords:Ue,hiddenRowsAt:vt,hiddenColumnsAt:Cn,getVisibleCells:en,onWheelScroll:ut,onPointerDown:$n,onKeyDown:yn,onViewportChange:V,onImmediateScroll:Ot,scrollPoint:re,propsStage:{onFocus:()=>{Le?.activate()}},renderOverlays:xt})},[_]);o.useEffect(()=>{Pe.current||A()},[te,xe,ue,Le,re?.left,re?.top,ke,$,L,U,wt,xt,ce,$e]);let _n={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};k||(_n={..._n,...I});const dl=o.useMemo(()=>{const ne=n.getStyles().getTheme(),Re=ne.getColorScheme(),Ke=ne.getFontScheme();return{"--sxl-doc-color-dk1":Re.getDk1().toCSS(ke.darkMode),"--sxl-doc-color-dk2":Re.getDk2().toCSS(ke.darkMode),"--sxl-doc-color-lt1":Re.getLt1().toCSS(ke.darkMode),"--sxl-doc-color-lt2":Re.getLt2().toCSS(ke.darkMode),"--sxl-doc-color-accent1":Re.getAccent1().toCSS(ke.darkMode),"--sxl-doc-color-accent2":Re.getAccent2().toCSS(ke.darkMode),"--sxl-doc-color-accent3":Re.getAccent3().toCSS(ke.darkMode),"--sxl-doc-color-accent4":Re.getAccent4().toCSS(ke.darkMode),"--sxl-doc-color-accent5":Re.getAccent5().toCSS(ke.darkMode),"--sxl-doc-color-accent6":Re.getAccent6().toCSS(ke.darkMode),"--sxl-doc-color-hlink":Re.getHlink().toCSS(ke.darkMode),"--sxl-doc-color-fol-hlink":Re.getFolHlink().toCSS(ke.darkMode),"--sxl-doc-font-major":Ke.getMajorFont(),"--sxl-doc-font-minor":Ke.getMinorFont()}},[n.getStyles().getTheme()]),Eo=r.useCallbackRef(ne=>{const{style:Re,...Ke}=ne;return s.jsx(bo,{...Ke,style:{paddingLeft:"4px",paddingRight:"4px",...Re},sheet:n})},[n]);let Zn=s.jsx("div",{style:_n,onTouchStart:()=>{Fo()},onFocus:ne=>{B(!0),N?.(ne)},onBlur:ne=>{B(!1),v?.(ne)},ref:Mt,...Y,children:s.jsx("div",{className:ct("sheetxl-sheet",ql),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...dl},children:s.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[Qt,wn,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[ll,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,backgroundColor:ke.fill},ref:J,onContextMenu:vn,children:[cl,et,s.jsx(Rl,{style:{position:"absolute",right:24,bottom:4},colorLicensee:De?.selection?.strokeFill,colorCredits:De?.body?.text?.fill})]})]})]})})});k&&(Zn=s.jsx(r.ScrollPane,{style:{flex:"1 1 100%",overflow:"hidden",background:`${O.fill}`,minHeight:2*Be.height,minWidth:2*Be.width,...I},viewport:ee,touchElement:H.current?.stage,disableTouch:ot,onScrollViewport:ne=>{H.current?.scrollTo(ne)},renderScrollbarHorizontal:Eo,renderScrollbarVertical:Eo,...y,children:Zn})),o.useEffect(()=>{Pe.current=!1,A?.(),b&&Mt.current?.focus()},[n]);const[Xn,ul]=o.useState(!1),Fo=r.useCallbackRef(()=>{Xn||ul(!0)},[Xn]);return o.useEffect(()=>{if(Io)return typeof K=="function"&&K(),r.ReactUtils.detectIt().primaryInput==="touch"&&Fo(),()=>{}},[K,Io,Xn]),Zn}));kr.displayName="SheetElement";const Uo="data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=",Mr=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,style:a,picture:l,description:f,isDragging:h,view:c,onHide:C,onShow:k,onKeyDownCapture:y,onFocus:p,onBlur:M,loadingPanel:T,...z}=e,[D,Z]=o.useState(!1),[K,w]=o.useState(null),[N,v]=o.useState(null),[I,q]=o.useState(null);o.useEffect(()=>{v(null),l.getDetails().then(j=>{Z(!1),v(j.asUrl()),j.asSVGText?.()&&q(j.asSVGText())}).catch(j=>{console.warn(j),Z(!0),v(Uo),q(null)})},[l]);const X=r.useImperativeElement(t,()=>({isPictureEditor:()=>!0}),[]),E=o.useMemo(()=>{if(N||I)return s.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:D?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:D?"var(--sxl-app-color-background, white)":void 0,boxShadow:D?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:D?"contain":void 0,opacity:K?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:N,onLoad:()=>{w(!0)},onError:({currentTarget:j})=>{console.log("error"),j.onerror=null,v(Uo),Z(!0)},alt:f??`${l.getType()}`})},[K,l,N,I,h]);if(!l.isClosed())return s.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:h?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...a,width:"100%",height:"100%"},tabIndex:0,...z,onKeyDownCapture:j=>{y?.(j)},ref:X,children:[K||D?void 0:T,E]})}));Mr.displayName="PictureEditor";const ii=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,chart:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const k=r.useImperativeElement(t,()=>({isChartEditor:()=>!0}),[]),[y,{height:p,width:M}]=Wt();if(!a.isClosed())return s.jsx("div",{...C,ref:Nt([k,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a.getDescription()})})})})),ai="_editable-input_1bqx6_6",si=e=>s.jsx("input",{...e}),Tr=o.memo(o.forwardRef((e,t)=>{const{style:n={},className:i,value:a="",onSubmit:l,onChange:f,onCancel:h,renderInput:c=si,styleHover:C={},dragging:k,maxLength:y,disabled:p=!1,readOnly:M=!1,...T}=e,[z,D]=o.useState(!1),[Z,K]=o.useState(!1),[w,N]=o.useState(a);o.useEffect(()=>{N(a)},[a]);const v=o.useRef(null),[I,q]=o.useState(null),X=r.useNotifier(),E=o.useCallback(function(J){const x=J.message;I!==x&&(X?.showMessage?.(x,{type:r.NotifierType.Error}),q(x))},[X,I]),j=o.useCallback(J=>{let x=!1;try{x=l?.(J)??!0}catch(S){E(S)}return x?(v.current=null,K(!1),N(J),x):(setTimeout(()=>{v.current?.focus()},0),x)},[l]),$=r.useCallbackRef(()=>{N(a),v.current=null,K(!1),h?.()},[h,a]),ve=o.useMemo(()=>{if(!Z)return null;const J={className:ct(ai),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:y,type:"text",value:w,onFocus:x=>{v.current||(v.current=x.target,setTimeout(()=>{x.target?.select()},0))},onBlur:x=>{v.current&&j(w)},onChange:x=>{Z&&N(x.target.value)},onMouseDown:x=>x.stopPropagation(),onKeyDown:x=>x.code==="Escape"?(x.preventDefault(),void $()):x.code==="Enter"?(x.preventDefault(),void j(x.target.value)):void(x.code!=="Tab"?x.stopPropagation():j(x.target.value))};return s.jsx(s.Fragment,{children:c(J)})},[Z,w,j,$,c,p]),[Y,_]=o.useState();o.useLayoutEffect(()=>{let J=Object.assign({},n);(k||z)&&(J=Object.assign(J,C)),_(J)},[k,z,C,n]),o.useEffect(()=>{ve&&f?.(w)},[ve,f,w]);const A=r.useImperativeElement(t,()=>({startEdit(){p||M||K(!0)},cancel(){$()}}),[]);return s.jsxs("div",{...T,ref:A,style:{flexDirection:"column",display:"flex",...Y},className:ct(i),children:[s.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{p||M||K(!0)},onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[s.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:Z?0:1},children:w}),ve]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...C},children:w})]})})),jn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function Zt(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function xo(e){return"nodeType"in e}function Ct(e){var t,n;return e?Zt(e)?e:xo(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function qo(e){const{Document:t}=Ct(e);return e instanceof t}function gn(e){return!Zt(e)&&e instanceof Ct(e).HTMLElement}function Ir(e){return e instanceof Ct(e).SVGElement}function _t(e){return e?Zt(e)?e.document:xo(e)?qo(e)?e:gn(e)||Ir(e)?e.ownerDocument:document:document:document}const Rt=jn?o.useLayoutEffect:o.useEffect;function Bn(e){const t=o.useRef(e);return Rt(()=>{t.current=e}),o.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.current==null?void 0:t.current(...i)},[])}function cn(e,t){t===void 0&&(t=[e]);const n=o.useRef(e);return Rt(()=>{n.current!==e&&(n.current=e)},t),n}function rn(e,t){const n=o.useRef();return o.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Fn(e){const t=Bn(e),n=o.useRef(null),i=o.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,i]}function An(e){const t=o.useRef();return o.useEffect(()=>{t.current=e},[e]),t.current}let lo={};function hn(e,t){return o.useMemo(()=>{if(t)return t;const n=lo[e]==null?0:lo[e]+1;return lo[e]=n,e+"-"+n},[e,t])}function Er(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>{const h=Object.entries(f);for(const[c,C]of h){const k=l[c];k!=null&&(l[c]=k+e*C)}return l},{...t})}}const $t=Er(1),dn=Er(-1);function On(e){if(!e)return!1;const{KeyboardEvent:t}=Ct(e.target);return t&&e instanceof t}function Dn(e){if((function(t){if(!t)return!1;const{TouchEvent:n}=Ct(t.target);return n&&t instanceof n})(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return(function(t){return"clientX"in t&&"clientY"in t})(e)?{x:e.clientX,y:e.clientY}:null}const Lt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Lt.Translate.toString(e),Lt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),Ko="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ci(e){return e.matches(Ko)?e:e.querySelector(Ko)}const di={display:"none"};function ui(e){let{id:t,value:n}=e;return o.createElement("div",{id:t,style:di},n)}function gi(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return o.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n)}const Fr=o.createContext(null),hi={draggable:`
|
|
23
|
+
The content is not applied.`,icon:"PasteFormats"}),new r.Command("pasteFormulas",v,{label:"Paste Formulas",scopedLabels:{paste:"Formulas"},description:"Paste only the formulas of the selected cells. The values and formatting is not applied.",icon:"PasteFormulas"}),new r.Command("pasteTranspose",v,{label:"Paste Transpose",scopedLabels:{paste:"Transpose"},description:"Paste with the rows and columns flipped.",icon:"PasteTranspose"}),new r.Command("pasteLinks",v,{label:"Paste Links",scopedLabels:{paste:"Links"},description:"Paste as formula references to the original cells.",icon:"PasteLinks"})];i.addCommands(I,!0)},[i,e]),o.useEffect(()=>{if(!i)return;const v={disabled:!t.getProtection().isFormatCellsAllowed()};i.getCommand("pasteValues").updateCallback(I=>w.paste({...Ll,...I})).update(v),i.getCommand("pasteFormats").updateCallback((I,q)=>w.paste({...Nl,description:q.getLabel(),...I})).update(v),i.getCommand("pasteFormulas").updateCallback((I,q)=>w.paste({...Pl,description:q.getLabel(),...I})).update(v),i.getCommand("pasteTranspose").updateCallback((I,q)=>w.paste({...jl,description:q.getLabel(),...I})).update(v),i.getCommand("pasteLinks").updateCallback((I,q)=>w.paste({...Bl,description:q.getLabel(),...I})).update(v),i.getCommand("cut").update(v),i.getCommand("paste").update(v)},[t,i]);const N=o.useMemo(()=>{if(!z||!M.current)return;const v=z.key;if(v!=="copy"&&v!=="cut"&&v!=="formatPainter")return;const I=M.current.getItem();if(I.getSource()!==t)return;const q=M.current.isCut?.(),X=q?k:C,E=q?c:h,j=I.getCoords(),$=j?[j]:null;return $&&$.length!==0?ve=>{const Y=[];for(let _=0;_<$.length;_++){const A=$[_],J=ve.toClipBounds(ve.getRangeCoordsBounds(A,{top:0,left:0,right:1,bottom:1}),gt.SELECTION_CLIP_INSETS);J&&(Y.push(p({range:A,key:`copy-selection-background-${_}`,x:J.x,y:J.y,width:Math.max(J.width,0),height:Math.max(J.height,0),stroke:X,strokeWidth:2})),Y.push(p({range:A,key:`copy-selection-foreground-${_}`,x:J.x+(J.width<=2?-1:0),y:J.y,width:Math.max(J.width,3),height:Math.max(J.height,3),stroke:E,strokeWidth:2,isAnimatedStroke:!0})))}return Y}:null},[z,t,n,h,C,c,k]);return{...w,clipboard:K,overlays:N}},Ol=o.memo(o.forwardRef((e,t)=>{const{view:n,element:i,sheet:a,gridStyle:l,commands:f}=e,h=l.body??{},c=a.getView(),{overlays:C}=br({element:i,sheet:a,sheetView:c,commands:f,copyForegroundColor:l.selection.strokeFill,copyBackgroundColor:h.fill,cutForegroundColor:l.selectionRemove.strokeFill,cutBackgroundColor:h.fill});return Qe(a?.getSelection(),{onChange(k){}}),o.useEffect(()=>{n?.getStage()},[n?.getStage()]),C&&n?C(n):null})),Hl="_sheet-selection_12wyx_5",Vl={key:"dragCut",description:"Drag selection to move cell contents.",cursor:"move"},Ul={key:"dragCutInsert",description:"Drag selection to insert cell contents.",cursor:"copy"},Kl={key:"dragCopy",description:"Drag selection to copy cell contents."},$l={key:"dragCopyInsert",description:"Drag selection to insert copied cell contents.",cursor:"move"},Bo=(e,t)=>t.ctrlKey&&t.shiftKey?$l:t.ctrlKey?Kl:t.shiftKey?Ul:Vl,Wl={key:"fill",description:"Drag selection to extend series or fill.",cursor:"crosshair"},Gl=o.memo(o.forwardRef((e,t)=>{const{view:n,commands:i,className:a,onFirstRender:l,onShowTooltip:f,onCloseTooltip:h,sheet:c,gridRef:C,gridStyle:k,isActive:y,...p}=e,M=n?.getBounds(),T=r.useCallbackRef(f,[f]),z=r.useCallbackRef(h,[h]),[D,Z]=o.useState(()=>c?.getSelection().getCoords()),K=r.useCallbackRef(H=>{he.CoordUtils.isEqualSelectionCoords(H,D)||c&&c.getSelection().updateCoords(H)},[c,D]),w=r.useEditMode(),N=o.useRef(null),[v,I]=o.useState(c?.getProtection().isLocked()),[q,X]=o.useState(c?.getView().getMovableSelection().length>0),E=r.ReactUtils.detectIt().primaryInput==="touch",j=!E&&y,$=w.getMode()?.args?.stateAndCoords?.coords??null,ve=$!==null||q,Y=r.useCallbackRef(H=>{const W=he.CoordUtils.cellToRange(H);if(c.isClosed())return W;const me=c.getRange(W,{ignoreHidden:!0}).getMerges();return me.length===0?W:me[0]},[c]),_=r.useCallbackRef((H,W,me,ue,fe,Me)=>{const ae=c.getSelectedRange().getExtended(ue,H).getCoords();switch(ue){case d.IRange.Direction.Up:return ae.rowStart;case d.IRange.Direction.Down:return ae.rowEnd;case d.IRange.Direction.Left:return ae.colStart;case d.IRange.Direction.Right:return ae.colEnd}},[c]),A=r.useCallbackRef(()=>{const H=c.getUsedRange()?.getCoords(),W=c.getRowHeaders().getUsedRange()?.getCoords(),me=c.getColumnHeaders().getUsedRange()?.getCoords();return{...H,colEnd:Math.max(H?.colEnd??0,me?.max??0),rowEnd:Math.max(H?.rowEnd??0,W?.max??0)}},[c]),J=r.useCallbackRef((H,W)=>c.getRowHeaders().hiddenHeadersAt(H,W),[c]),x=r.useCallbackRef((H,W)=>c.getColumnHeaders().hiddenHeadersAt(H,W),[c]),S=r.useCallbackRef(H=>c.getRange(H,{ignoreHidden:!0}).getMerges(),[c]),oe=r.useCallbackRef(H=>{c?.getSelection().setAdjusting(H)},[c]),ie=r.useCallbackRef(async()=>{c?.getSelection().setAdjusting(null),w.getMode()?.key==="formatPainter"&&(await i?.getCommand("pasteFormats")?.execute({}),w.setMode(null))},[w,D,c,i]),qe=o.useMemo(()=>{const H=w.getMode();return H?.key==="cut"||H?.key==="copy"},[w]);Qe(c?.getView(),{onMovableSelectionChange:()=>{X(c.getView().getMovableSelection().length>0)}}),Qe(c?.getSelection(),{onChange(H){const W=c.getSelection().getCoords();Z(W)}}),Qe(c,{onProtectionChange:()=>{I(c.getProtection().isLocked())}});const{body:de={}}=k||{},Pe=r.useNotifier(),je=n.getLayout(),De=!(j&&D.ranges.length<=1&&$===null&&!v&&(!w.getMode()||qe)),{cursor:Ie,renderOverlay:ke,onPointerDown:ge}=gt.useSelection({gridRef:C,commands:i,layout:je,getCellCoordsAsRangeCoords:Y,selection:D,fillHandleBorderColor:de.fill,selectionBackgroundColor:y?k.selection.fill:k.selectionInactive.fill,selectionBorderColor:y?k.selection.strokeFill:k.selectionInactive.strokeFill,selectionRemoveBackgroundColor:y?k.selectionRemove.fill:k.selectionInactive.fill,selectionRemoveBorderColor:y?k.selectionRemove.strokeFill:k.selectionInactive.strokeFill,disableFillDrag:De,disableMoveDrag:E||!(y&&D.ranges.length<=1&&$===null&&!v),disableTouchSelection:ve,onSelectionChange:K,onSelectionDragStart:oe,onSelectionDragEnd:ie,onMoveDragStart:(H,W,me)=>{w.setMode(Bo(0,me))},onMoveDragUpdate:(H,W,me)=>{w.setMode(Bo(0,me))},onMoveDragEnd:(H,W)=>{w.setMode(null)},onMoveDragDone:async(H,W,me)=>{if(he.CoordUtils.isEqualRanges(H,W))return;const ue=c.getRange(W);if(Pe?.showOptions){const g=ue.getDifferences(H);let Ne=!1;const Be=g.getCount();for(let Te=0;!Ne&&Te<Be;Te++)Ne=g.at(Te).isContentful();if(Ne&&await Pe?.showOptions({title:"Confirm",description:"There is already data here. Do you want to replace it?",options:["Replace","Cancel"],defaultOption:"Replace"})!=="Replace")return}const fe=!me.ctrlKey,Me=me.shiftKey,ae=Me?fe?"Insert Moved Cells":"Insert Copied Cells":fe?"Move Cells":"Copy Cells",be=await Pe?.showBusy?.(ae);try{const g=c.getRange(H);await ue.doBatch(async()=>{Me?await ue.insertFrom(H,{isCut:fe,undoRange:g}):await ue.copyFrom(H,{isCut:fe,undoRange:g}),g.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0}),ue.autoFit({skipCustomSize:!0,orientations:d.IRange.Orientations.Row,minContent:!0})},{description:ae,autoSelect:!0})}catch(g){Pe?.showError?.(g)}finally{be?.()}},contentfulCellFinder:_,hiddenRowsAt:J,hiddenColumnsAt:x,mergedRanges:S,getDataCoords:A,canSelectionSpanMergedCells:H=>{const W=c.getRange(H);return W.isEntireColumns()||W.isEntireRows()},onFill:async(H,W)=>{const me="Auto Fill",ue=await Pe?.showBusy?.(me);try{await c.doBatch(()=>{c.getRange(H).autoFill(W),c.getRange(W).autoFit({orientations:d.IRange.Orientations.Row,skipCustomSize:!0,minContent:!0})},{description:me,autoSelect:!0})}catch(fe){Pe?.showError?.(fe)}finally{N.current=null,ue?.()}},onFillPreview:(H,W,me)=>{if(C.current&&T){w.setMode(Wl);try{N.current?.direction!==me&&(N.current=null,c.getRange(H).autoFill(W,{previewOnly:Be=>{N.current={callback:Be,direction:me}}}));const ue=N.current?.callback?.(W);if(!ue||ue.isEmpty())return;const fe=ue.toText();if(!fe)return;const Me=he.CoordUtils.cellToRange(ue.getCoords()),ae=n.getRelativePointFromClient(0,0);let be=0,g=0,Ne=r.ToolTipPlacement.Bottom;if(me===d.IRange.Direction.Down){be=je.getColOffset(Me.colEnd+1)-ae.x;const Be=je.getRowOffset(Me.rowEnd),Te=je.getRowOffset(Me.rowEnd+1);g=Te-(Te-Be)/2-ae.y,Ne=r.ToolTipPlacement.Right}else if(me===d.IRange.Direction.Right){g=je.getRowOffset(Me.rowEnd+1)-ae.y;const Be=je.getColOffset(Me.colEnd),Te=je.getColOffset(Me.colEnd+1);be=Te-(Te-Be)/2-ae.x,Ne=r.ToolTipPlacement.Bottom}else if(me===d.IRange.Direction.Up){be=je.getColOffset(Me.colEnd+1)-ae.x;const Be=je.getRowOffset(Me.rowStart),Te=je.getRowOffset(Me.rowStart+1);g=Te-(Te-Be)/2-ae.y,Ne=r.ToolTipPlacement.Right}else if(me===d.IRange.Direction.Left){g=je.getRowOffset(Me.rowEnd+1)-ae.y;const Be=je.getColOffset(Me.colStart),Te=je.getColOffset(Me.colStart+1);be=Te-(Te-Be)/2-ae.x,Ne=r.ToolTipPlacement.Bottom}T({anchor:{x:be,y:g},display:fe,placement:Ne})}catch(ue){Pe?.showError?.(ue)}}},onFillDone:()=>{N.current=null,w.setMode(null),z?.()}}),O=r.useCallbackRef(H=>{ge(r.ReactUtils.createSyntheticEvent(H))},[ge,$]);o.useEffect(()=>{const H=n?.getStage();if(H)return H.addEventListener("pointerdown",O),()=>{H.removeEventListener("pointerdown",O)}},[n?.getStage()]);const Fe=r.useImperativeElement(t,()=>({}),[]),ze=o.useRef(null);return s.jsx("div",{className:ct(a,"sheet-selection",Hl),style:{position:"absolute",width:M?.width,height:M?.height,overflow:"hidden",pointerEvents:"none",willChange:"none"},ref:Nt([Fe,ze]),...p,children:ke(n)})})),Sn=Object.freeze({x:0,y:0,width:0,height:0}),_l={fireOnModelChange:!1},Zl=o.memo(o.forwardRef((e,t)=>{const{children:n,view:i,movable:a,onRefLoad:l,onRefUnload:f,onHide:h,onShow:c,onUnFocus:C,isDragging:k,updateFrameBounds:y,dragStart:p,style:M,disabled:T,renderMovable:z,...D}=e,[Z,K]=o.useState(Sn),[w,N]=o.useState(null),[v,I]=o.useState(!1),q=o.useRef(null);o.useLayoutEffect(()=>{if(a.isClosed())return;const E=a.getBounds();if(!E)return;const j=i.toViewBounds(E);K(j??Sn),y(j??Sn)},[i?.getBounds()]),Qe(a,{onBoundsChange:E=>{const j=E.getBounds();if(!j)return;const $=i.toViewBounds(j);K($??Sn),y($)},onSelectionChange:()=>{const E=he.CommonUtils.hasFocus(q.current,!0);!v&&!E||a.isSelected()||C()}}),Qe(a,{onRequestFocus:()=>he.CommonUtils.whenFocus(q.current,!0)},_l),o.useEffect(()=>{const E=q.current;return l(E),()=>{f(E)}},[]);const X=o.useMemo(()=>{if(!Z)return null;let{width:E,height:j}=Z;return z({view:i,movable:a,disabled:T,isDragging:k,style:{position:"relative",left:0,top:0,width:E,height:j},onHide:h,onShow:c})},[i,a,Z.width,Z.height,T,k]);return s.jsx("div",{className:"movable",tabIndex:0,ref:Nt([q,t]),style:{display:"flex",alignItems:"stretch",justifyContent:"stretch",position:"absolute",maxWidth:"auto",maxHeight:"auto",minWidth:"auto",minHeight:"auto",left:Z.x,top:Z.y,width:Z.width,height:Z.height,...M},onMouseDown:async E=>{const j=E.shiftKey||E.ctrlKey,$=a.isSelected(),ve=E.currentTarget;j&&$?a.unselect():($&&!j||await a.select({addToSelection:j}),p(E.nativeEvent,ve),ve.focus())},onFocus:E=>{E.relatedTarget&&!w&&N(E.relatedTarget),I(!0)},onBlur:E=>{w&&!q?.current?.contains(E.relatedTarget)&&N(null),E.relatedTarget&&I(!1)},...D,children:X})})),Xl="_movable-area_314c6_5",xr=o.memo(o.forwardRef((e,t)=>{const{view:n,movables:i,movablesView:a,renderMovable:l,transactional:f,onUnFocus:h,onFocus:c,disabled:C=!1,disableDrag:k=!1,disableResize:y=!1,className:p,style:M,renderDirections:T=["nw","n","ne","w","e","sw","s","se"],onFirstRender:z,...D}=e,Z=n.getBounds(),K=r.useCallbackRef(z,[z]),w=r.useCallbackRef(h,[h]),N=r.useCallbackRef(c,[c]),[v,I]=o.useState([]),[q,X]=o.useState(!1),[E,j]=o.useState(!1),$=o.useRef(!0),ve=o.useRef(new Map),Y=o.useRef(new Map),_=o.useRef(new Map),A=o.useRef(new Map),J=o.useRef(new Map),x=o.useRef({onRequestFocus:m=>(me(m),null)}),S=o.useRef(null),oe=o.useRef(null),ie=o.useRef(null),[qe,de]=o.useReducer(m=>m+1,0);o.useLayoutEffect(()=>{de()},[n,i]),Qe(i,{onCollectionChange:()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0}),F=J.current;F.forEach(te=>{te()}),F.clear();const G=x.current;for(let te=0;te<m.length;te++){const le=m[te];if(le.isClosed())continue;const b=le.addListeners(G);F.set(le,b)}de()},onInvalidated:()=>{de()}}),Qe(a,{onMovableSelectionChange(m){je(),de()}});const Pe=o.useCallback((m,F)=>{const G=_.current.get(m);ie.current&&(ie.current.getTargets().forEach(te=>{if(te===G)return te.style.left=F.x+"px",te.style.top=F.y+"px",te.style.width=F.width+"px",void(te.style.height=F.height+"px")}),ie.current.updateRect())},[]),je=()=>{const m=[],F=a.getMovableSelection();F.forEach(G=>{const te=_.current.get(G);te&&F.indexOf(G)!==-1&&m.push(te)}),I(G=>he.CommonUtils.isEqualArrays(G,m)?G:m)},De=o.useRef(null),Ie=o.useRef(null),ke=o.useMemo(()=>(Ie.current||(Ie.current=new Promise(m=>{De.current=m})),Ie.current),[]),ge=o.useRef(null),O=r.useCallbackRef(async(m,F)=>{ge.current=F,await(async()=>!(!await ke.then()||!ie.current))()&&ge.current===F&&ie.current.dragStart(m,F)},[v]),[Fe,ze]=o.useState(!1),H=o.useRef(null),W=o.useRef(null),me=r.useCallbackRef(async(m=null)=>{if(m||(m=a.getMovableSelection()[0]),!m)return w?.(),!1;const F=_.current.get(m);F?(await he.CommonUtils.whenFocus(F),F.focus(),W.current=F,H.current=null):H.current=m},[a]);o.useEffect(()=>{Fe&&v.length>0&&W.current!==v[0]&&me(),$.current&&(K?.(),$.current=!1)},[v]);const ue=o.useMemo(()=>{const m=i.getItems({address:n.getVisibleRangeCoords(),ignoreHidden:!0});if(m.length===0&&ve.current.size===0)return null;const F=(B,R,P,ce=!0)=>{const se=B.isSelected(),ye={tabIndex:P,view:n,movable:B,onRefLoad:ee=>{H.current===B&&(ee.focus(),W.current=ee,H.current=null),_.current.set(B,ee),Y.current.set(ee,B),R.rendered=!0,je()},onRefUnload:ee=>{_.current.delete(B),Y.current.delete(ee),R.rendered=!1,je()},onUnFocus:w,onHide:ee=>{R.onHide=ee},onShow:ee=>{R.onShow=ee},isDragging:se&&(E||q),disabled:C,renderMovable:l,updateFrameBounds:ee=>{Pe(B,ee)},dragStart:O,onMouseUp:()=>{if(ge.current=null,oe.current){X(!1),j(!1);let ee=!1;A.current?.forEach(pe=>{he.CommonUtils.isEqualBounds(pe.movable.getBounds(),pe.startBounds)||(ee=!0)}),ee?Me():ae()}},style:{opacity:ce?q&&se?.7:void 0:0,zIndex:q&&se?B.getZIndex()+m.length:void 0,pointerEvents:ce?void 0:"none",cursor:E&&se?"grabbing":C||k?"initial":"move",boxShadow:!se||E&&!q?void 0:"1px 1px 2px 2px rgba(0,0,0,.15)"}};return s.jsx(Zl,{...ye},`movable-${B.getUUID()}`)},G=ve.current,te=new Map,le=[];for(let B=0;B<m.length;B++){const R=m[B];if(R.isClosed())continue;let P=G.get(R);P||(P={frame:null,shown:null,onShow:null,onHide:null,rendered:!1,doShow:(ce,se)=>{if(!se||se.shown===!0)return;se.shown=!0;const ye=++se.visibilityRequestId;requestAnimationFrame(()=>{const ee=ve.current.get(ce);ee&&ye===se.visibilityRequestId&&(se.onShow?.(ce),ee.shown=!0)})},doHide:async(ce,se)=>{if(!se||se?.shown===!1)return;se.shown=!1;const ye=++se.visibilityRequestId,ee=await Promise.resolve(se.onHide?.(ce));ye===se.visibilityRequestId&&ee!==!1&&(se.shown=!1,ve.current.delete(ce),de())},visibilityRequestId:0}),P.frame=F(R,P,B,!0),le.push(P.frame),P.doShow(R,P),G.delete(R),te.set(R,P)}const b=[];return a.getMovableSelection().forEach(B=>{const R=G.get(B);R&&(R.frame=F(B,R,-1,!1),b.push(R.frame),G.delete(B),te.set(B,R))}),G.forEach((B,R)=>{B.frame=F(R,B,-1,!1),b.push(B.frame),B.doHide(R,B),G.delete(R),te.set(R,B)}),ve.current=te,je(),[...b,...le]},[qe,n,l,C,k,y,q,E]),fe=r.useCallbackRef((m,F)=>{const G=`${F} ${v.length===1?d.TextUtils.capitalize(Y.current?.get(v[0]).getContent().getType()):"Drawings"}`;oe.current&&(console.warn(`Transaction ${oe.current.getDescription()} is being replaced by ${G}`),oe.current.rollback(),oe.current=null),oe.current=f.beginCommit({description:G}),A.current.clear();for(let te=0;te<v.length;te++){const le=v[te],b=Y.current?.get(le);b?A.current.set(le,{movable:b,startBounds:n.toViewBounds(b.getBounds())}):console.warn("invalid element",b)}},[f,n,v]),Me=o.useCallback(()=>{if(!oe.current)return;const m=[];A.current?.forEach(F=>{m.push(F.movable)}),oe.current.commit({viewAfter:{view:a,movableSelection:m}}),A.current.clear(),oe.current=null},[]),ae=o.useCallback(()=>{oe.current&&(oe.current.rollback(),oe.current=null)},[]),be=o.useRef(null);o.useEffect(()=>{be.current&&(be.current.onscroll=m=>{m.preventDefault(),m.srcElement.scrollTop=0,m.srcElement.scrollLeft=0})},[be.current]);const g=r.useImperativeElement(t,()=>({isMovableArea:()=>!0,focusMovable:me,focus:()=>{me()}}),[a]),[Ne,Be]=o.useState(null),Te=o.useRef(!1),u=o.useRef(!1),L=o.useRef(!1);o.useEffect(()=>{if(C||v.length===0||L.current||Te.current)return;if(u.current)return void requestAnimationFrame(()=>{ie.current&&S.current&&ie.current.refTargets.length>0&&(L.current=!0,De.current?.(!0)),I([...v])});Te.current=!0;const m=o.lazy(async()=>{try{const F=await Promise.resolve().then(()=>require("./DW3DaJeAphtYDztB.cjs"));return Te.current=!1,u.current=!0,I([...v]),F}catch(F){return console.warn(F),De.current?.(!1),null}});Be(m)},[v,C,k,y]);const U=o.useMemo(()=>!Ne||C?null:s.jsx(o.Suspense,{children:s.jsx(Ne,{className:ct({dragging:q||E,resizing:q,moving:E}),container:null,ref:ie,target:ie.current?v:[],draggable:!C&&!k,resizable:!C&&!y,individualGroupable:!0,edgeDraggable:!1,throttleDrag:2,throttleResize:2,origin:!1,keepRatio:!1,renderDirections:T,onResizeStart:m=>{fe(m.target,"Resize")},onResize:m=>{if(!oe.current)return m.stopDrag(),void de();X(!0);const F=m.direction[0]!==0&&m.direction[1]!==0;let G=0,te=0;for(let le=0;le<v.length;le++){const b=v[le],B=A.current.get(b),R=Y.current.get(b);if(!B||!R){console.warn("invalid element");continue}let P=m.dist[0],ce=m.dist[1],se=m.drag.dist[0],ye=m.drag.dist[1],ee=B.startBounds.width,pe=B.startBounds.height;le===0?(G=ee,te=pe):(P*=ee/G,se*=ee/G,ce*=pe/te,ye*=pe/te);const V={...B.startBounds};if(V.width=Math.max(0,ee+P),V.height=Math.max(0,pe+ce),m.direction[0]===-1&&(V.width=Math.max(0,Math.min(B.startBounds.x+ee,ee-se))),m.direction[1]===-1&&(V.height=Math.max(0,Math.min(B.startBounds.y+pe,pe-ye))),F&&(R.isLockAspectRatio()||m.inputEvent?.shiftKey)){const Q=ee/pe,re=V.width/V.height;re>Q?V.height=V.width/Q:re<Q&&(V.width=V.height*Q)}m.direction[0]===-1&&(V.x=Math.max(0,Math.min(B.startBounds.x+ee,B.startBounds.x+ee-V.width))),m.direction[1]===-1&&(V.y=Math.min(B.startBounds.y+pe,B.startBounds.y+pe-V.height)),B.movable.setBounds(n.toAbsoluteBounds(V))}},onResizeEnd:m=>{X(!1),Me()},onDragStart:m=>{fe(m.target,"Move")},onDrag:m=>{if(!oe.current)return m.stopDrag(),void de();j(!0);for(let F=0;F<v.length;F++){const G=v[F],te=A.current.get(G);te?te.movable.setBounds(n.toAbsoluteBounds({...te.startBounds,x:te.startBounds.x+m.translate[0],y:te.startBounds.y+m.translate[1]})):console.warn("invalid element")}},onDragEnd:m=>{},onMouseUp:m=>{}})}),[qe,Ne,v,n,C,k,y,q,E]);return s.jsx("div",{className:ct(p,"movable-area",Xl),style:{width:Z.width,height:Z.height,...M,position:"absolute",overflow:"hidden",willChange:"transform"},ref:Nt([g,be]),...D,children:s.jsx("div",{className:"movable-scroll",style:{position:"absolute",cursor:"initial",left:0,top:0,width:Z.width,height:Z.height},...D,children:s.jsxs("div",{ref:S,style:{position:"absolute",pointerEvents:"auto"},onFocus:m=>{N?.(),ze(!0)},onBlur:m=>{ze(!1)},onKeyDownCapture:m=>{if(m.isDefaultPrevented())return;const F=m.nativeEvent.ctrlKey,G=m.nativeEvent.altKey,te=m.nativeEvent.shiftKey;if(m.which===r.KeyCodes.Escape){const P=a.getMovableSelection();let ce=[...P];return v.forEach(se=>{if(ce.length===0)return;const ye=Y.current.get(se);let ee=ce.indexOf(ye);ce.splice(ee,1)}),ce.length!==P.length&&a.selectMovables(ce),ce.length===0&&w?.(),void m.preventDefault()}const le=.1,b=P=>{i.updateSelected(ce=>{ce.setRotation(ce.getRotation()+P)},"Rotate")},B=(P,ce=!0)=>{i.updateSelected(se=>{const ye=se.getBounds();let ee=1+P;ce||(ee=1/ee);const pe=Math.sqrt(Math.pow(ye.width,2)+Math.pow(ye.height,2)),V=Math.atan2(ye.height,ye.width),Q=ee*pe;if(Q<10)return;const re=Q*Math.cos(V),Ee=Q*Math.sin(V),Ue={x:ye.x+(ye.width-re)/2,y:ye.y+(ye.height-Ee)/2,width:re,height:Ee};se.setBounds(Ue)},"Resize")},R=P=>{i.updateSelected(ce=>{const se=ce.getBounds(),ye={x:se.x+(P.x??0),y:se.y+(P.y??0),width:se.width+(P.width??0),height:se.height+(P.height??0)};ce.setBounds(ye)},"Nudge")};if(m.which===r.KeyCodes.Delete)i.updateSelected(P=>{P.delete()},"Delete"),m.preventDefault();else if(m.key==="a"&&F){const P=a.getMovableSelection();a.selectMovables(i.getItems(),!0),a.selectMovables(P,!0),m.preventDefault()}else m.key==="ArrowLeft"?(te?B(le,!1):G?b(-10):R({x:F?-10:-1}),m.preventDefault()):m.key==="ArrowRight"?(te?B(le,!0):G?b(10):R({x:F?10:1}),m.preventDefault()):m.key==="ArrowUp"?(te?B(le,!0):R({y:F?-10:-1}),m.preventDefault()):m.key==="ArrowDown"&&(te?B(le,!1):R({y:F?10:1}),m.preventDefault())},children:[ue,U]})})})})),Ut=e=>{let t=Number.MAX_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER,i=0,a=0;for(let l=0;l<e.length;l++){const f=e[l].getBounds();t=Math.min(f.x,t),n=Math.min(f.y,n),i=Math.max(f.x+f.width,i),a=Math.max(f.y+f.height,a)}return{x:t,y:n,width:i-t,height:a-n}},Oo=(e,t=!0)=>{const n=[],i=t?"x":"y",a=t?"y":"x",l=t?"width":"height";let f=0,h=Number.MAX_SAFE_INTEGER,c=0;for(let y=0;y<e.length;y++){const p=e[y],M=p.getBounds();f+=M[l],h=Math.min(M[i],h),c=Math.max(M[i]+M[l],c),n.push({bounds:M,movable:p})}const C=(c-h-f)/(e.length-1);n.sort((y,p)=>{const M=y.bounds[i],T=p.bounds[i];return M!==T?M-T:y.bounds[a]-p.bounds[a]});const k=new Map;k.set(n[0].movable,n[0].bounds);for(let y=1;y<n.length-1;y++){const p=n[y-1].bounds,M={...n[y].bounds};M[i]=p[i]+p[l]+C,n[y].bounds=M,k.set(n[y].movable,M)}return k.set(n[n.length-1].movable,n[n.length-1].bounds),k},qr=e=>{const{movables:t,movablesView:n,transactional:i,commands:a,target:l,onRepeatCommandChange:f}=e,h=r.useNotifier(),c=r.useEditMode();o.useRef(c.getMode()).current=c.getMode();const C=r.useCallbackRef(async(w,N,v=null,I=!0)=>{const q=async()=>{const X=await Promise.resolve(h?.showBusy?.(w.getLabel()));try{await N();const E=v??w?.getLabel?.();if(f){let j=null;w&&E!==!1&&(j=new r.SimpleCommand(w.getKey(),l,{label:E,description:E},q)),f(j)}X?.(),I&&c.setMode(null)}catch(E){X?.(),h?.showError?.(E)}};await q()},[f,h]),[k,y]=o.useReducer(w=>w+1,0),p=r.useCallbackRef((w,N,v)=>{if(!n)return;const I=n.getMovableSelection();if(I.length===0)return;let q="Drawings";if(I.length===1){const E=I[0];q=d.TextUtils.capitalize(E.getContent().getType())??"Drawing"}const X=`${w.getLabel()} ${q}`;C(w,()=>{let E=null;i&&(E=i.beginCommit(X));const j=n.getMovableSelection();if(j.length===0)return;const $=v?.(j);for(let ve=0;ve<j.length;ve++){const Y=j[ve];N(Y,$)}E?.commit()})},[n,i]),[M,T]=o.useState(n.getMovableSelection()[0]??null),[z,D]=o.useState(!M||M?.isProtected()),Z=o.useMemo(()=>[new r.Command("moveToFront",l,{label:"Bring to Front",description:"Move to the front of all of the other drawings.",icon:"DrawToFront",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToFront()})}),new r.Command("moveForward",l,{label:"Bring Forward",description:"Move forward one layer in the z order.",icon:"DrawMoveForward",shortcut:{key:"BracketRight",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveForward()})}),new r.Command("moveToBack",l,{label:"Send to Back",description:"Move to the back of all of the other drawings.",icon:"DrawToBack",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl,r.KeyModifiers.Shift]}},function(){p(this,w=>{w.moveToBack()})}),new r.Command("moveBackward",l,{label:"Send Backward",description:"Move backwards one layer in the z order.",icon:"DrawMoveBackward",shortcut:{key:"BracketLeft",modifiers:[r.KeyModifiers.Ctrl]}},function(){p(this,w=>{w.moveBackward()})}),new r.Command("toggleLockAspectRatio",l,{label:"Lock Aspect Ratio",description:"Toggle whether the aspect ratio should be maintained when resizing from corners.",icon:"DrawAspect"},function(){p(this,w=>{w.setLockAspectRatio(!w.isLockAspectRatio())})}),new r.Command("formatAnchorTypeTwoCell",l,{label:"Move and size with cells",description:"Set your drawing to move and resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.TwoCell)})}),new r.Command("formatAnchorTypeOneCell",l,{label:"Move but don't size with cells",description:"Set your drawing to only move when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.OneCell)})}),new r.Command("formatAnchorTypeAbsolute",l,{label:"Don't move or size with cells",description:"Set your drawing to never move or resize when underling sheet resizes.",icon:"DrawResize"},function(){p(this,w=>{w.setAnchorType(d.IAnchored.Type.Absolute)})}),new r.Command("formatDrawAlignLeft",l,{label:"Align Left",description:"Align the selected drawings to the left.",icon:"DrawAlignLeft"},function(){p(this,(w,N)=>{w.setBounds({x:N.x})},Ut)}),new r.Command("formatDrawAlignCenter",l,{label:"Align Center",description:"Align the selected drawings vertically relative to each other.",icon:"DrawAlignCenter"},function(){p(this,(w,N)=>{w.setBounds({x:(N.width-w.getBounds().width)/2+N.x})},Ut)}),new r.Command("formatDrawAlignRight",l,{label:"Align Right",description:"Align the selected drawings to the right.",icon:"DrawAlignRight"},function(){p(this,(w,N)=>{w.setBounds({x:N.width-w.getBounds().width+N.x})},Ut)}),new r.Command("formatDrawAlignTop",l,{label:"Align Top",description:"Align the selected drawings to the top.",icon:"DrawAlignTop"},function(){p(this,(w,N)=>{w.setBounds({y:N.y})},Ut)}),new r.Command("formatDrawAlignMiddle",l,{label:"Align Middle",description:"Align the selected drawings horizontally relative to each other.",icon:"DrawAlignMiddle"},function(){p(this,(w,N)=>{w.setBounds({y:(N.height-w.getBounds().height)/2+N.y})},Ut)}),new r.Command("formatDrawAlignBottom",l,{label:"Align Bottom",description:"Align the selected drawings to the bottom.",icon:"DrawAlignBottom"},function(){p(this,(w,N)=>{w.setBounds({y:N.height-w.getBounds().height+N.y})},Ut)}),new r.Command("formatDrawDistributeHorz",l,{label:"Distribute Horizontally",description:"Distribute the selected drawings horizontally with equal spacing between each.",icon:"DrawDistributeHorz"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w))}),new r.Command("formatDrawDistributeVert",l,{label:"Distribute Vertically",description:"Distribute the selected drawings vertically with equal spacing between each.",icon:"DrawDistributeVert"},function(){p(this,(w,N)=>{w.setBounds(N.get(w))},w=>Oo(w,!1))}),new r.Command("formatDrawFlipHorz",l,{label:"Flip Horizontally",description:"Flip the selected drawings horizontally."}),new r.Command("formatDrawFlipVert",l,{label:"Flip Vertically",description:"Flip the selected drawings vertically."}),new r.Command("formatDrawGroup",l,{label:"Group",description:"Group the selected drawings into a single drawing.",icon:"DrawGroup"}),new r.Command("formatDrawUngroup",l,{label:"Ungroup",description:"Break the group of a drawing into individual drawings.",icon:"DrawUngroup"}),new r.Command("formatDrawSwapShapes",l,{label:"Swap Shapes",description:"Swap the positions of the swap."}),new r.Command("formatDrawSwapShapesHorz",l,{label:"Swap Shapes Horizontally",description:"Swap the positions of the swap horizontally."}),new r.Command("formatDrawSwapShapesVert",l,{label:"Swap Shapes Vertically",description:"Swap the positions of the swap vertically."})],[n,M]);o.useEffect(()=>{},[c]);const K=o.useMemo(()=>{let w=null;return w=a?a.createChildGroup(l,"movable",!1):new r.CommandGroup(l,"movable"),w.addCommands(Z,!0),w},[a,Z]);return Qe(M,{onAnyChange:()=>{K.getCommand("formatAnchorTypeTwoCell").update({state:M?.getAnchorType()===d.IAnchored.Type.TwoCell}),K.getCommand("formatAnchorTypeOneCell").update({state:M?.getAnchorType()===d.IAnchored.Type.OneCell}),K.getCommand("formatAnchorTypeAbsolute").update({state:M?.getAnchorType()===d.IAnchored.Type.Absolute}),K.getCommand("formatAnchorTypeAbsolute").update({state:M?.getAnchorType()===d.IAnchored.Type.Absolute}),K.getCommand("toggleLockAspectRatio").update({state:M?.isLockAspectRatio()})},onProtectedChange:w=>{D(w.isProtected())},onDelete:()=>{}}),Qe(n,{onMovableSelectionChange:()=>{const w=n.getMovableSelection()[0]??null;T(w),D(!w||w.isProtected()),y()}}),Qe(t,{onCollectionChange:()=>{y()}}),o.useEffect(()=>{const w={disabled:z};K.getCommand("formatAnchorTypeTwoCell").update(w),K.getCommand("formatAnchorTypeOneCell").update(w),K.getCommand("formatAnchorTypeAbsolute").update(w),K.getCommand("toggleLockAspectRatio").update(w);const N=t.getCount(),v=n.getMovableSelection(),I=z||N<=1||v.length===0;let q={disabled:I},X=q;if(!I&&v.length===1){const $=v[0];$.getZIndex()===0&&(q={disabled:!0}),$.getZIndex()===N-1&&(X={disabled:!0})}K.getCommand("moveToFront").update(X),K.getCommand("moveForward").update(X),K.getCommand("moveToBack").update(q),K.getCommand("moveBackward").update(q);const E={disabled:z||v.length<=1};K.getCommand("formatDrawAlignLeft").update(E),K.getCommand("formatDrawAlignCenter").update(E),K.getCommand("formatDrawAlignRight").update(E),K.getCommand("formatDrawAlignTop").update(E),K.getCommand("formatDrawAlignMiddle").update(E),K.getCommand("formatDrawAlignBottom").update(E),K.getCommand("formatDrawFlipHorz").update(E),K.getCommand("formatDrawFlipVert").update(E),K.getCommand("formatDrawGroup").update(E),K.getCommand("formatDrawUngroup").update(E),K.getCommand("formatDrawSwapShapes").update(E),K.getCommand("formatDrawSwapShapesHorz").update(E),K.getCommand("formatDrawSwapShapesVert").update(E);const j={disabled:z||v.length<=2};K.getCommand("formatDrawDistributeHorz").update(j),K.getCommand("formatDrawDistributeVert").update(j)},[k,z,k]),K},Yl=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,description:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const k=r.useImperativeElement(t,()=>({isEmptyFrame:()=>!0}),[]),[y,{height:p,width:M}]=Wt();return s.jsx("div",{...C,ref:Nt([k,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",border:"var(--sxl-app-color-grey, grey) solid 1px",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a})})})})),Jl=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,propsMovable:a,renderMovable:l,commands:f,target:h,onRepeatCommandChange:c}=e,C=qr({movables:i.getMovables(),movablesView:i?.getView(),transactional:i,onRepeatCommandChange:c,commands:f,target:h});o.useEffect(()=>{n?.getStage()},[n?.getStage()]);const k=o.useMemo(()=>s.jsx(xr,{ref:t,view:n,movables:i.getMovables(),disableResize:!i.getProtection().isObjectsAllowed(),disableDrag:!i.getProtection().isObjectsAllowed(),movablesView:i.getView(),transactional:i,renderMovable:l,...a,onFocus:()=>{C.activate(),a?.onFocus?.()}},"movable-area"),[i,a,f,C]);return k&&n?k:null})),Ql=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,gridStyle:a,getCellEditor:l,showProtectedError:f,setEditingCoords:h,commands:c}=e,C=r.useEditMode(),[k,y]=o.useState(null),[p,M]=o.useState(null),[T,z]=o.useState(null),[D,Z]=o.useState(null),[K,w]=o.useState(null);o.useLayoutEffect(()=>{if(T===null)return Z(null),void w(null);const x=()=>{const S=i.getRange(T).getCell(),oe=S.getStyle();let ie,qe=oe.getFill()?.toCSS(a.body.darkMode);qe.background!=="none"&&qe.background!=="transparent"||(qe=i.getStyles().getNormal().getFill().toCSS(a.body.darkMode)),qe.background!=="none"&&qe.background!=="transparent"||(qe={background:a.body.fill}),Z({style:qe}),S&&!S.getFormula()&&(ie=S?.getRenderHorizontalAlignment()),w(ie??r.HorizontalAlignment.Left)};return x(),i.getRange(T).addListener(()=>{x()})},[i,T,a?.body]);const N=r.useCallbackRef(()=>{let x=p.editState.dirty??"";if(p.editState.dirty!==void 0){const S=d.TextUtils.clampString(x);try{const oe=p.sheet.getRange(p.coords),ie=`Typing '${S}' into ${oe.toString()}`;return oe.setValue(x,{description:ie,autoFit:!0}),z(null),M(null),C.setMode(null),h(null),!0}catch(oe){throw he.Notifier.error(new Error(`Unable to enter '${S}'.`,{cause:oe})),oe}}},[i,p]),v=r.useCallbackRef(x=>i.getRange(x).getCell().getExtrusions()??he.CoordUtils.cellToRange(x),[i]),I=r.useCallbackRef(x=>{let S=d.IRange.Orientation.Row,oe=!1;x!==d.IRange.Direction.Up&&x!==d.IRange.Direction.Down||(S=d.IRange.Orientation.Column),x!==d.IRange.Direction.Left&&x!==d.IRange.Direction.Up||(oe=!0),i.getSelection().traverse(S,oe)},[i]),q=o.useCallback((x,S)=>{if(l)return l(x,S);if(!i)return null;const{ref:oe,...ie}=x;return s.jsx(gr,{ref:oe,...ie,sheet:i,bodyStyle:a?.body,activeCoords:S,commands:c,onChangeEdit:qe=>{const de={sheet:i,coords:S,editState:qe};C.setMode(Pe=>({...Pe,description:de.editState.editMode?"Edit":"Enter",args:{...Pe?.args,stateAndCoords:de}}))},editState:p.editState})},[i,D,l,p,T]),{renderOverlay:X,startEdit:E,submitEdit:j,cancelEdit:$,onKeyboardEventNative:ve,onPointerEventNative:Y}=gt.useKeyboardEditorOverlay({view:n,activeCoords:k,getCellEditor:q,canEdit:()=>{const x=i.getProtection();if(x.isReadOnly())return!1;const S=x.isLocked();return S&&f(),!S},onBeforeStartEdit:x=>{const S=hr(()=>i.getRange(x).getCell()),oe={sheet:i,coords:x,editState:Object.freeze(S)};C.setMode({key:"edit",args:{stateAndCoords:oe}}),M(oe)},onStartEdit:x=>{z(x),h(x)},onSubmitEdit:N,onCancelEdit:x=>{z(null),M(null),C.setMode(null),h(null)},onDoneEdit:x=>{C.setMode(null)},onNavigate:I,propsContainer:D,borderStrokeFill:a.selection?.strokeFill,borderStrokeWidth:i?.getSelection().getCoords().ranges?.length>1?1:2,alignment:K,getRangeCoords:v});Qe(i.getSelection(),{onChange(x){y(i.getSelection().getCoords().cell)}});const _=r.useCallbackRef(x=>{Y(x),T&&j()},[Y,$,T]),A=o.useCallback(x=>{Y(x)},[Y]),J=o.useCallback(x=>{ve(x)},[ve]);return o.useEffect(()=>{const x=n?.getStage();if(x)return x.addEventListener("pointerdown",_),x.addEventListener("dblclick",A),x.addEventListener("keydown",J),()=>{x.removeEventListener("pointerdown",_),x.removeEventListener("dblclick",A),x.removeEventListener("keydown",J)}},[n?.getStage()]),o.useEffect(()=>{const x=C.getMode(),S=x?.key;S==="edit"||S==="enter"?p?x.args?.cancel?$():x.args?.submit?j():M(x.args?.stateAndCoords):E(x.args?.start):T&&$()},[C]),X(n,t)})),Sr="white",Rr="black",ei=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='m 14.5,8 -5.6875,5.6875 v -3.25 H 1.5 v -4.875 h 7.3125 v -3.25 z' stroke='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 15 8, pointer`,ti=`url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg' %3E%3Cg%3E%3Cpath d='M 13.24564,12.979958 H 5.2023009 L 7.500398,10.681861 2.3296796,5.5111425 5.7768252,2.0639969 10.947543,7.2347153 13.24564,4.9366182 Z' stroke='${Rr}' fill='${Sr}'/%3E%3C/g%3E%3C/svg%3E%0A") 12 12, pointer`,ni=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i}=e,[a,l]=o.useState(i.getTables().getCount()>0),[f,h]=o.useState(null),[c,C]=o.useState(null),[k,y]=o.useState(null),[p,M]=o.useState(null),T=r.useCallbackRef(()=>{if(i.getTables().getCount()>0){l(!0);const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)}else l(!1),h(null)},[i,n]),z=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const I=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:I});q.length===1&&q[0].select()},[n,i]),D=r.useCallbackRef(v=>{v.preventDefault(),v.stopPropagation();const I=n.getCellCoordsFromClient(v.clientX,v.clientY),q=i.getTables().getItems({address:I});if(q.length===1){const X=q[0].getRange().getCoords(),E={colStart:X.colStart,rowStart:I.rowIndex,colEnd:X.colEnd,rowEnd:I.rowIndex};i.getRange(E).select()}},[n,i]),Z=r.useCallbackRef(()=>{if(!a)return;const v=i.getTables().getItems({address:n.getVisibleRangeCoords()});h(v.length>0?v:null)},[i,a,n]);Qe(i?.getSelection(),{onChange(v){C(i.getSelection().getCoords().cell)}}),Qe(k,{onAnyChange(v){T(),Z()}}),Qe(p,{onAnyChange(v){Z()}}),Qe(i,{onTablesChange(v){T(),Z()},onInvalidated(v){T(),Z()}});const K=o.useMemo(()=>he.CommonUtils.debounce(he.CommonUtils.throttle(Z,300),300),[]);o.useEffect(()=>{K()},[n]),o.useEffect(()=>{let v=null;if(f)for(let I=0;I<f.length&&!v;I++){const q=f[I],X=q.getRange().getCoords();d.CoordUtils.isCellWithinRange(c,X)&&(v=q)}y(v)},[c,f]);const w=r.useCallbackRef(v=>{let I=null;if(f)for(let q=0;q<f.length;q++){const X=f[q],E=X.getRange().getCoords();let j=n.getRangeCoordsBounds(E);const $=n.getRelativePointFromClient(v.clientX,v.clientY),ve=$.x,Y=$.y;if(ve>=j.x&&ve<=j.x+j.width&&Y>=j.y&&Y<=j.y+j.height){const _=n.getViewportSize();ve<=0||Y<=0||ve>=_.width||Y>=_.height||(I=X)}}M(I)},[n,f]);if(o.useEffect(()=>{const v=n?.getStage();if(v&&f)return v.addEventListener("mousemove",w),v.addEventListener("mouseleave",w),()=>{v.removeEventListener("mousemove",w),v.removeEventListener("mouseleave",w)}},[f,n?.getStage()]),!n||!f||f.length===0)return null;const N=[];for(let v=0;v<f.length;v++){const I=f[v];if(I.isClosed())continue;const q=I===p,X=I===k,E=I.getRange().getCoords(),j=n.getRangeCoordsBounds(E);let $;if(q||X){const ve=I.getStyle().getProperties(),Y=ve.headerRow?.fill?.background??ve.wholeTable?.border?.top?.color?.toString();if(Y&&i){const _=i.getStyles().parseColor(Y);_&&($=_.toCSS())}$||($="var(--sxl-app-color-shadow, rgba(0,0,0,.15))")}N.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:j.height,pointerEvents:"all",cursor:ei},onMouseDown:D},`table-select-row-${I.getName()}`)),N.push(s.jsx("div",{style:{position:"absolute",left:j.x,top:j.y,width:Math.min(16,j.width),height:Math.min(16,j.height),pointerEvents:"all",cursor:ti},onMouseDown:z},`table-select-${I.getName()}`)),N.push(s.jsx(gt.Selection,{x:j.x,y:j.y,width:j.width,height:j.height,range:E,strokeWidth:X?.5:0,stroke:$??"var(--sxl-app-color-grey, grey)",style:{willChange:"box-shadow",transition:"box-shadow 80ms ease-in-out",boxShadow:q?`${$} 0px 0px 1px 1px`:void 0}},`table-outline-${I.getName()}`))}return N})),oi=o.memo(o.forwardRef((e,t)=>{const{view:n,sheet:i,animationTime:a=60}=e,[l,f]=o.useState(null),[h,c]=o.useState(null),C=o.useRef(null),k=r.useCallbackRef(()=>{const D=i.getSelectedCell(),Z=D.getSpill()?.getCoords()??null;he.CoordUtils.isEqualRanges(Z,l)||(c(Z?{transition:l?"move":"in",bounds:n.getRangeCoordsBounds(Z),coords:Z}:{transition:"out",bounds:n.getRangeCoordsBounds(l),coords:l}),f(Z))},[i,n,l]);o.useEffect(()=>(C.current&&(clearTimeout(C.current),C.current=null),h&&(C.current=setTimeout(()=>{c(null),C.current=null},a)),()=>{C.current&&(clearTimeout(C.current),C.current=null)}),[h,a]);const y=o.useMemo(()=>he.CommonUtils.debounce(he.CommonUtils.throttle(k,80),80),[]);if(Qe(i?.getSelection(),{onChange(D){y()}}),Qe(i,{onSpillsChange(D){k()},onInvalidated(D){k()}}),!n||!l&&!h)return null;const p=i.getRange(l).getValue()instanceof d.FormulaError.Spill,M=[];let T=h?.bounds??n.getRangeCoordsBounds(l);if(h&&!he.CommonUtils.isEqualBounds(h.bounds,n.getRangeCoordsBounds(h.coords))&&c(null),T=n.toClipBounds(T,-10),!T)return;const z="var(--sxl-app-color-primary-dark, rgba(0,0,0,.15))";return M.push(s.jsx(gt.Selection,{x:T.x,y:T.y,width:T.width,height:T.height,range:l,strokeWidth:1,stroke:z,style:{willChange:"transform, opacity, width, height, opacity, left, top",strokeDasharray:p?"6 3":void 0,opacity:h?.transition==="out"?0:1,transition:h?.transition?h.transition==="in"||h.transition==="out"?`opacity ${1.5*a}ms ease-in-out`:`left ${a}ms ease-out, top ${a}ms ease-out, width ${a}ms ease-out, height ${a}ms ease-out`:"none",boxShadow:`${z} 0px 0px 4px 0px`}},"spill-outline}")),M})),ri={position:"absolute",top:0,left:0,bottom:0,right:0},Ho=(e,t)=>{const n={...e},i=t?.getNormal().getFont(),a=i?.toCSS(),l={text:{fontFamily:a?.fontFamily,fontSize:i?.getSize()}},f=n.body=he.CommonUtils.mergeContentful(e.body,l);return n.body=he.CommonUtils.mergeContentful({fill:"#fff",strokeFill:"#dad8d6",strokeWidth:.5,text:{fontWeight:"400",fontStyle:"normal",fill:"#040404"}},f),n.buttonSurface=he.CommonUtils.mergeContentful({fill:"#fff",text:{fill:"black"},edgeStrokeFill:"black"},n.buttonSurface),n.selection={fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#217346",strokeWidth:2,...e.selection},n.selectionInactive={...n.selection,fill:"rgba(16, 124, 65, 0.1)",strokeFill:"#dad8d6",...e.selectionInactive},n.selectionRemove={...n.selection,fill:"rgba(200, 0, 0, 0.1)",strokeFill:"rgba(200, 0, 0, 1)",...e.selectionRemove},n.headerSelection={...n.selection,...e.headerSelection},n.headerSelectionInactive={...n.selectionInactive,...e.headerSelectionInactive},n.header=he.CommonUtils.mergeContentful(n.body,{edgeStrokeFill:"rgb(171, 171, 171)",fill:"#f0f0f0",strokeShadow:void 0,edgeStrokeWidth:1},e.header),n.header=he.CommonUtils.mergeContentful(n.header,l),n.headerSelect=he.CommonUtils.mergeContentful(n.header,{fill:"rgba(16, 124, 65, 0.1)",text:{fill:n.headerSelection.strokeFill,fontWeight:"700"}},e.headerSelect),n.headerSelect=he.CommonUtils.mergeContentful(n.headerSelect,l),n.headerSelectAll=he.CommonUtils.mergeContentful(n.headerSelect,{},e.headerSelectAll),n.headerSelectAll=he.CommonUtils.mergeContentful(n.headerSelectAll,l),n},li={fireOnModelChange:!1},Vo={},kr=o.memo(o.forwardRef((e,t)=>{const{sheet:n,gridStyle:i=Vo,headersStyle:a=Vo,onSheetContextMenu:l,showColumnHeaders:f,propsColumnHeader:h,showRowHeaders:c,propsRowHeader:C,showScrollbars:k=!0,propsScrollPane:y,onViewportChange:p,commands:M,onRepeatCommandChange:T,overlays:z,renderMovable:D,viewportComponent:Z,onElementLoad:K,getCellEditor:w,onFocus:N,onBlur:v,style:I=r.ReactUtils.EmptyCssProperties,onShowTooltip:q,onShowColumnTooltip:X,onShowRowTooltip:E,onCloseTooltip:j,propsGrid:$,propsCellRender:ve,...Y}=e;if(o.useEffect(()=>{d.LicenseManager._validate(!0)},[]),!n)throw new Error("ISheet must be provided.");const[_,A]=o.useReducer(ne=>ne+1,0),[J,{width:x,height:S}]=Wt(),oe=r.useCallbackRef(q,[q]),ie=r.useCallbackRef(X,[X]),qe=r.useCallbackRef(E,[E]),de=r.useCallbackRef(j,[j]),Pe=o.useRef(!1);o.useLayoutEffect(()=>{Pe.current=!0},[n]);const je=n?.getStyles(),De=o.useMemo(()=>Ho(i,je),[i,je]),Ie=o.useMemo(()=>Ho(a,je),[a,je]),{body:ke={},buttonSurface:ge={}}=De,{header:O={},headerSelect:Fe={},headerSelectAll:ze={}}=Ie,H=o.useRef(null),[W,me]=o.useState(()=>n?.getView()),ue=(W?.getZoomScale()??100)/100,fe=o.useMemo(()=>({vertical:W.isShowColumnGridlines()&&ue>=.4,horizontal:W.isShowRowGridlines()&&ue>=.4}),[W?.isShowColumnGridlines(),W?.isShowRowGridlines(),ue]),Me=o.useMemo(()=>{if(W?.getGridLineColor())return{strokeDasharray:"1,1"}},[W?.getGridLineColor(),De]),ae=f??W?.isShowColumnHeaders(),be=c??W?.isShowRowHeaders(),[g,Ne]=o.useState({width:0,height:0}),Be=o.useMemo(()=>{let ne=40,Re=20;const Ke=n?.getStyles().getNormal().getFont();if(g.width>0&&g.height>0){const Ve=Ke?.toCSS()?.fontFamily??De.header.text.fontFamily,Ge=Ke?.getSize()??De.header.text.fontSize,We=d.IFont.getSharedMeasurer()(""+g.height,Math.ceil(Ge*d.IFont.getDeviceScale()),Ve);ne=We.width,Re=We.lineHeight}return{width:Math.round(ne+5),height:Math.round(Re+3)}},[g,De?.header.text,n]),Te=be?ue*Be.width:O.edgeStrokeWidth,u=ae?ue*Be.height:O.edgeStrokeWidth,L=Math.max(x,(n?.getColumnHeaders().getDefaultSize()??Be.width)+Te+1),U=Math.max(S,(n?.getRowHeaders().getDefaultSize()??Be.height)+u+1),m=o.useRef(new Map),F=o.useRef(null),G=()=>({getColOffset:ne=>n.getColumnHeaders().findOffset(ne),getColIndex:ne=>n.getColumnHeaders().findIndex(ne),getRowOffset:ne=>n.getRowHeaders().findOffset(ne),getRowIndex:ne=>n.getRowHeaders().findIndex(ne)}),[te,le]=o.useState(()=>G()),[b,B]=o.useState(!1),[R,P]=o.useState(null),ce=!0,se=De.selection?.strokeFill,ye=o.useCallback(()=>Mt.current,[]),[ee,pe]=o.useState(),V=r.useCallbackRef(ne=>{pe(ne);const Re=n?n.getView():null;Re&&Re.setTopLeft(ne?{left:ne.left,top:ne.top}:null),p?.(ne)},[n,p]),Q=o.useRef(null);o.useEffect(()=>{if(!ee||!n)return;const ne=n.getRangeAtBounds({x:ee.left,y:ee.top,width:ee.width,height:ee.height});Q.current?.(),Q.current=ne.addListener(()=>{const Re=ne.getCoords();H?.current?.invalidate(Re)})},[ee,n]);const[re,Ee]=o.useState(()=>n?.getView().getTopLeft()),Ue=r.useCallbackRef(ne=>{const Re=he.CoordUtils.cellToRange(ne);if(n.isClosed())return Re;const Ke=n.getRange(Re,{ignoreHidden:!0}).getMerges();return Ke.length===0?Re:Ke[0]},[n]),Oe=ne=>{if(!ne||ne.coords.colIndex===0&&ne.coords.rowIndex===0)return null;const Re={};return ne.coords.colIndex>0&&(Re[he.AnchorLocation.Left]={index:ne.coords.colIndex,scrollOffset:ne.topLeft.left}),ne.coords.rowIndex>0&&(Re[he.AnchorLocation.Top]={index:ne.coords.rowIndex,scrollOffset:ne.topLeft.top}),Re},[xe,He]=o.useState(()=>Oe(n.getView().getFreezePanes())),Ce=r.useEditMode(),Ae=o.useCallback(()=>H.current,[]),we=r.useCallbackRef(ne=>{Ce.setMode(Re=>Re?.key==="edit"?{...Re,args:{...Re.args}}:{key:"edit",args:{stateAndCoords:null,start:ne}})},[]),Se=r.useCallbackRef(()=>ee,[ee]),Le=wr({sheet:n,commands:M,target:Ae,onRepeatCommandChange:T,bodyStyle:ke,onStartEdit:we,getViewport:Se}),[Ze,_e]=o.useState(n.getSelection().isEntire()),[Xe,at]=o.useState(W?.getMovableSelection().length>0),ot=R!==null||Xe,$e=null,[lt,it]=o.useState(!1);o.useEffect(()=>{it(!1)},[n.getProtection()]);const Je=r.useNotifier(),st=r.useCallbackRef(()=>{lt||(it(!0),Je.showMessage?.(s.jsxs("span",{children:["This sheet is protected.",s.jsx("br",{}),"To make a change, unprotect the sheet. You might be requested to enter a password."]}),{type:r.NotifierType.Error}))},[Je,lt]),wt=o.useMemo(()=>{const ne=Ce.getMode();return ne?.cursor?ne.cursor:null},[$e,Ce]),[bt,dt]=o.useState(null),ft=o.useRef(!1),[xt,Un]=o.useState([]),Yt=o.useRef(null),[fn,Pt]=o.useState(he.TypesUtils.EmptyTopLeft),[jt,It]=o.useState(he.TypesUtils.EmptyTopLeft);o.useEffect(()=>{Pt({left:re?.left,top:0})},[re?.left]),o.useEffect(()=>{It({left:0,top:re?.top})},[re?.top]),Qe(n?.getView(),{onFreezeSplitChange:()=>{He(Oe(n.getView().getFreezePanes()))},onTopLeftChange:()=>{Ee(n.getView().getTopLeft())},onMovableSelectionChange:()=>{at(n.getView().getMovableSelection().length>0)}}),Qe(n?.getSelection(),{onChange:()=>{_e(n.getSelection().isEntire())}}),Qe(n,{onViewChange(){me(n.getView()),le(G())},onLayoutChange:()=>{const ne=n.getEntireRange();Ne({height:ne.getRowCount(),width:ne.getColumnCount()}),le(G())},onStyleChange:()=>{At()},onMovablesChange:()=>{},onInvalidated:()=>{At()}}),Qe(n,{onRequestScrollIntoView:async(ne,Re)=>{if(!Re)return;const Ke={colIndex:Re?.coords?.colStart,rowIndex:Re?.coords?.rowStart};return await H.current?.scrollCellCoordsIntoView(Ke,Re?.scroll),!0},onRequestFocus:()=>he.CommonUtils.whenFocus(Mt.current)},li);const pt=o.useRef(!1),pn=o.useMemo(()=>{const ne=he.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&ie?.(Ve)})},32),Re=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:0,rowEnd:g.height,colStart:Ve,colEnd:Ve})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getColOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.x+tt.width,rt.getColOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===he.AnchorLocation.Left||Tt===he.AnchorLocation.Center||Tt===he.AnchorLocation.Right)){const to=he.CommonUtils.roundAccurately(Ge*he.CommonUtils.getDPI(),0),bn=he.CommonUtils.roundAccurately(n?.getColumnWidthAsFontUnit(Ge/ue),2).toFixed(2),no="Width: "+(Ge?bn+" ("+to+" pixels)":"Hidden"),tn=Gn.current.getGridElement().getRelativePointFromClient(0,0),Vt=0-tn.y,xn=0-tn.y+u,oo=tn.x-tt.x;ne({anchor:{x:nt-oo,y:Vt,width:yt-nt,height:xn-Vt},display:no})}const zt=[0,0,0,tt.height],Yn={style:{boxShadow:`0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},Jn={x:nt-1,y:0,width:1,height:tt.height},Qn={style:{boxShadow:`-0.5px 0px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},eo={x:yt-1,y:0,width:1,height:tt.height};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Re(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Re(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Re(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},...h}},[n,h,u,bt]),Bt=o.useMemo(()=>{const ne=he.CommonUtils.debounce(Ve=>{requestAnimationFrame(()=>{ft.current&&qe?.(Ve)})},32),Re=(Ve,Ge)=>{ft.current=!0,dt([We=>{if(!We.toClipBounds(We.getRangeCoordsBounds({rowStart:Ve,rowEnd:Ve,colStart:0,colEnd:g.width})))return;const rt=We.getLayout(),nt=Math.max(0,rt.getRowOffset(Ve)),tt=We.getBounds(),yt=Math.min(tt.y+tt.height,rt.getRowOffset(Ve+1)),Tt=We.getAnchor();if(Ge!==null&&(Tt===he.AnchorLocation.Top||Tt===he.AnchorLocation.Center||Tt===he.AnchorLocation.Bottom)){const to=Math.floor(10*he.CommonUtils.getDPI())/10,bn=he.CommonUtils.roundAccurately(Ge*to,0),no=he.CommonUtils.roundAccurately(bn/ue/(n?.getRowHeaders().getScaleFactor()*he.CommonUtils.getDPI()),2).toFixed(2),tn="Height: "+(Ge?no+" ("+bn+" pixels)":"Hidden"),Vt=Ht.current.getGridElement().getRelativePointFromClient(0,0),xn=0-Vt.x,oo=0-Vt.x+Te,gl=Vt.y-tt.y;ne({anchor:{x:xn,y:nt-gl,width:oo-xn,height:yt-nt},display:tn})}const zt=[0,0,tt.width,0],Yn={style:{boxShadow:`0px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},Jn={x:0,y:nt-1,width:tt.width,height:1},Qn={style:{boxShadow:`0px -0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:se}},eo={x:0,y:yt-1,width:tt.width,height:1};return s.jsxs(o.Fragment,{children:[s.jsx(gt.SVGLine,{linePoints:zt,bounds:Jn,...Yn}),s.jsx(gt.SVGLine,{linePoints:zt,bounds:eo,...Qn})]},"resize-dividers")}])};let Ke=null;return{onResizeHeadersStart:(Ve,Ge,We)=>{Ke=n.beginCommit(We),pt.current=!1,Re(Ve,Ge)},onResizeHeaders:(Ve,Ge,We)=>{pt.current=!1,Re(Ve,Ge)},onResizeHeadersDown:(Ve,Ge)=>{pt.current=!0,setTimeout(()=>{pt.current&&Re(Ve,Ge)},360)},onResizeHeadersEnd:(Ve,Ge,We)=>{Ke?.commit({description:We}),Ke=null,pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},onResizeHeadersUp:Ve=>{pt.current=!1,requestAnimationFrame(()=>de?.()),ft.current=!1,dt(null)},...C}},[n,C,Te]),Mt=r.useImperativeElement(t,()=>{const ne=Ke=>{n?.getView()&&n.getView().selectMovables([]),F.current=null,H?.current?.focus(Ke)},Re=async(Ke=null)=>{if(Ke||(Ke=n?.getView().getMovableSelection()[0]),!Ke)return!1;const Ve=Ke.getAnchorCoords();if(!Ve)return!1;const Ge=H.current?.getViewFromCellCoords({colIndex:Ve.colStart,rowIndex:Ve.rowStart});if(!Ge)return!1;const We=Ge.getAnchor();n?.getView().getMovableSelection().indexOf(Ke)===-1&&n?.getView().selectMovables([Ke]);let rt=m.current?.get(We);return rt?.current?(await rt.current.focusMovable(Ke),!0):(F.current={movable:Ke,anchor:We},!0)};return{getGridElement:()=>H.current,getRowHeaderElement:()=>Ht.current,getColumnHeaderElement:()=>Gn.current,rowHeaderHeight:()=>u,colHeaderWidth:()=>Te,startEdit:we,submitEdit:()=>{Ce.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,submit:!0}})},cancelEdit:()=>{Ce.setMode(Ke=>Ke?.key!=="edit"?Ke:{key:"edit",args:{stateAndCoords:null,cancel:!0}})},isEditing:R!==null,focus:Ke=>{n?.getView().getMovableSelection().length>0&&Re()||ne(Ke)},focusSheet:ne,focusMovable:Re,contains:Ke=>H?.current?.contains?.(Ke),invalidate:At,isSheetElement:()=>!0,getSheet:()=>n}},[n]),At=o.useCallback(ne=>{Pe.current||(H?.current?.invalidate(ne),A?.())},[]);o.useEffect(()=>{At()},[De]);const Jt=Ze?ze.edgeStrokeFill:O.fill,Kn=Ze?Fe.fill:typeof De.headerHover=="function"?De.headerHover(O)?.fill:O.fill,et=o.useMemo(()=>Z?s.jsx("div",{className:ct("sheetxl-viewport-overlay",Sl),style:{width:"100%",height:"100%",boxSizing:"border-box",position:"absolute"},children:Z}):s.jsx(s.Fragment,{}),[Z]);let Qt=null;ae&&be&&(Qt=s.jsxs("div",{tabIndex:-1,className:"top-left-corner",style:{padding:"2 2",position:"absolute",height:`${u}px`,width:`${Te}px`,zIndex:1,boxSizing:"border-box",cursor:"cell"},onMouseDown:ne=>{let Re=!ne.ctrlKey;Le?.getCommand("selectAll")?.execute(!Re||ne.button!==0),ne.nativeEvent.which===r.MouseButtonCodes.Right?l?.({originalEvent:ne,clientX:ne.clientX,clientY:ne.clientY,rowIndex:-1,colIndex:-1}):H.current?.focus()},children:[s.jsx("div",{style:{height:u-5+"px",width:u-5+"px",clipPath:`path('M${u-5} 0 L0 ${u-5} L${u-5} ${u-5} L${u-5} 0 Z')`,borderRight:`2px solid ${Jt}`,borderBottom:`2px solid ${Jt}`,background:`${Kn}`,boxSizing:"border-box",position:"absolute",right:"2px",bottom:"2px"}}),s.jsx("div",{style:{position:"absolute",height:`${u}px`,width:`${Te}px`,boxSizing:"border-box",borderRight:`solid 1px ${O.strokeFill}`,borderBottom:`solid 1px ${O.strokeFill}`,right:"-1px",bottom:"-1px"}})]}));const Ot=r.useCallbackRef(({_left:ne,_top:Re})=>{},[]),vn=r.useCallbackRef(ne=>{if(!l)return;const Re=H.current.getViewFromClient(ne.clientX,ne.clientY)?.getCellCoordsFromClient(ne.clientX,ne.clientY);Re&&(l({originalEvent:ne,clientX:ne.clientX,clientY:ne.clientY,rowIndex:Re.rowIndex,colIndex:Re.colIndex}),ne.stopPropagation(),ne.preventDefault())},[l]),ut=r.useCallbackRef(ne=>{if(!(!ne.shiftKey&&(ne.ctrlKey||ne.metaKey)))return;const{deltaY:Re}=ne;return Re>0?Le.getCommand("sheetZoomOut")?.execute():Re<0&&Le.getCommand("sheetZoomIn")?.execute(),Re===0},[Le]);o.useEffect(()=>{Un(null),Yt.current=null,ft.current=!1,dt(null);const ne=n?.getView().getTopLeft();Ot(ne),H.current?.scrollTo(ne),Ee(ne),me(n.getView()),He(Oe(n.getView().getFreezePanes())),le(G()),A()},[n?.getView()]);const vt=o.useCallback((ne,Re)=>n.getRowHeaders().hiddenHeadersAt(ne,Re),[n]),Cn=o.useCallback((ne,Re)=>n.getColumnHeaders().hiddenHeadersAt(ne,Re),[n]),en=r.useCallbackRef(ne=>{const Re=ne.getVisibleRangeCoords();if(!Re)return null;const Ke=[];return n.getRange(Re).forEach((Ve,Ge)=>{const We=Ge.getCoords(),rt=Ge.getCell();(nt=>{if(nt.isEmpty())return!1;const tt=nt.getSpans();if(tt.width>1||tt.height>1||nt.getStyle().hasVisibleStyling()||W.isShowFormulas()&&nt.getFormula()!==null)return!0;const yt=nt.getValue();return yt!==null&&!(!W.isShowZeros()&&yt===0&&nt.getType()===d.ScalarType.Number)})(rt)&&Ke.push({coords:We,value:rt,range:W.isShowFormulas()?null:rt.getExtrusions()})},{ignoreHidden:!0,includeMergeOverflow:!0}),Ke},[n,W.isShowZeros(),W.isShowFormulas(),R]);o.useEffect(()=>{const ne=[];z&&ne.push(...z),bt&&ne.push(...bt),he.CommonUtils.isEqualArrays(ne,Yt.current)||(Yt.current=ne,Un(ne))},[z,bt,De]);const Dt=o.useMemo(()=>({style:{boxShadow:`0.5px 0.5px 0px 0px ${i?.body?.fill}`},propsPath:{stroke:i?.body?.text?.fill??"black"}}),[De?.header?.edgeStrokeFill]),$n=r.useCallbackRef(ne=>{ne.isDefaultPrevented()||ne.isPropagationStopped()||(F.current=null,n?.getView().getMovableSelection().length>0&&n.getView().selectMovables([]))},[n]),Wn=o.useMemo(()=>{const ne=Ce.getMode();return ne?.key==="cut"||ne?.key==="copy"},[Ce]),yn=r.useCallbackRef(async ne=>{const Re=Ce.getMode();return ne.keyCode===r.KeyCodes.Escape&&Re?(ne.preventDefault(),void Ce.setMode(null)):ne.keyCode===r.KeyCodes.Enter&&Wn?(ne.preventDefault(),await Le?.getCommand("paste")?.execute(),void Ce.setMode(null)):void Le?.dispatchToFocusedCommand(ne)},[Le,Ce]),Ht=o.useRef(null),wn=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Te+O.edgeStrokeWidth}px`,minWidth:`${Te+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2"},children:s.jsx(jo,{ref:Ht,sheetElement:Mt.current,gridRef:H,freezeStart:xe?.[he.AnchorLocation.Top],oppositeSize:Te,containerWidth:Te,containerHeight:U,sheetHeader:n.getRowHeaders(),gridStyle:Ie,verticalPadding:Math.max(0,Math.floor(n.getStyles().getNormal().getFont().getSize()/10)),scrollPoint:jt,onSheetContextMenu:l,tabIndex:-1,style:{position:"relative",flex:"0",top:`${u+1}px`,width:`${Te+O.edgeStrokeWidth}px`,minWidth:`${Te+O.edgeStrokeWidth}px`,borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,height:`calc(100% - ${u}px)`,boxSizing:"border-box",zIndex:"2",...Bt?.style},...Bt})}),[Te,u,U,n,jt,xe?.[he.AnchorLocation.Top],De,ce,l,O.fill,C]),Gn=o.useRef(null),ll=o.useMemo(()=>s.jsx("div",{tabIndex:-1,style:{position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"},children:s.jsx(jo,{ref:Gn,sheetElement:Mt.current,gridRef:H,freezeStart:xe?.[he.AnchorLocation.Left],oppositeSize:u,containerWidth:L,containerHeight:u,sheetHeader:n.getColumnHeaders(),gridStyle:Ie,scrollPoint:fn,onSheetContextMenu:l,...pn,style:{...pn?.style,position:"relative",left:"0px",width:"100%",height:`${u+O.edgeStrokeWidth}px`,minHeight:`${u+O.edgeStrokeWidth}px`,borderBottom:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,boxSizing:"border-box",zIndex:"1"}})}),[u,L,n,fn,xe?.[he.AnchorLocation.Left],De,O.fill,ce,l,h]),il=r.useCallbackRef(ne=>{const{value:Re,key:Ke,...Ve}=ne;let Ge=Re,We=R;if(!We||We.colIndex===ne.coords.colIndex&&We.rowIndex===ne.coords.rowIndex||(We=null),!Ge){const tt=ne.range;if(Ge=n.getRange({rowIndex:tt.rowStart,colIndex:tt.colStart}).getCell(),Ge.isEmpty())return null}let rt=null;Ge.getHyperlink()&&(rt=async tt=>{if(ve?.onLinkMouseDown?.(tt),tt.button===0&&!tt.isDefaultPrevented()){tt.stopPropagation(),tt.preventDefault();try{await Ge.getHyperlink()?.open()}catch(yt){Je.showError?.(yt)}}}),We&&We.colIndex===ne.range.colStart&&We.rowIndex===ne.range.rowStart&&(Ge=Ge.createTemporaryCell({value:null}));const nt=n.getStyles();return o.createElement(ur,{...Ve,key:Ke,bodyStyle:ke,docTheme:nt.getTheme(),normalStyle:nt.getNormal(),showFormulas:W.isShowFormulas(),showZeros:W.isShowZeros(),onLinkMouseDown:rt,...ve,value:Ge})},[n,te,ke,R,W?.isShowFormulas(),W.isShowZeros()]),al=o.useCallback(ne=>{const{key:Re,ref:Ke,...Ve}=ne;return[s.jsx(Al,{ref:Ke,getVisibleCells:en,sheet:n,gridStyle:De,...Ve},`border-${Re}`),s.jsx(ni,{ref:Ke,sheet:n,commands:Le,...Ve},`table-${Re}`),s.jsx(oi,{ref:Ke,sheet:n,...Ve},`spill-${Re}`),s.jsx(Gl,{ref:Ke,sheet:n,commands:Le,onShowTooltip:oe,onCloseTooltip:de,gridStyle:De,gridRef:H,isActive:ce,...Ve},`selection-${Re}`),s.jsx(Ol,{ref:Ke,sheet:n,commands:Le,gridStyle:De,element:ye,...Ve},`copy-paste-${Re}`),s.jsx(Jl,{ref:Ke,sheet:n,commands:Le,target:Ae,renderMovable:D,propsMovable:{onUnFocus:()=>{Mt.current.focus()}},...Ve},`movable-${Re}`),s.jsx(Ql,{ref:Ke,sheet:n,commands:Le,gridStyle:De,getCellEditor:w,showProtectedError:st,setEditingCoords:P,...Ve},`editor-${Re}`)]},[n,H.current,De,w,Le,Je]),[Io,sl]=o.useState(!1),cl=o.useMemo(()=>{if(L===0||U===0)return null;const ne=n.getStyles().getNormal(),Re=ne.getFont(),Ke=ne.getFill(),Ve=ne.getBorder(),Ge=ne.getFill().getType()===d.IFill.Type.None;let We=Me,rt=Me;const nt=(yt,Tt,zt)=>zt?{stroke:Ve.getBottom().isNone()?"none":yt.getColor().toRGBA(ke.darkMode).toString(),...Tt}:Tt;rt=nt(Ve.getBottom(),rt,!Ve.getBottom().isNone()),rt=nt(Ve.getTop(),rt,!Ve.getTop().isNone()),We=nt(Ve.getRight(),We,!Ve.getRight().isNone()),We=nt(Ve.getLeft(),We,!Ve.getLeft().isNone());let tt=W?.getGridLineColor()?.toRGBA(ke.darkMode).toString()??ke.strokeFill;return Ge||(rt=nt(Ve.getBottom(),rt,!0),rt=nt(Ve.getTop(),rt,!0),We=nt(Ve.getRight(),We,!0),We=nt(Ve.getLeft(),We,!0)),s.jsx(gt.Grid,{className:"sheetxl-sheet-primary",style:{...ri,...Ke.toCSS(ke.darkMode),...Re.toCSS(ke.darkMode,ue),"--sxl-app-color-background":ke.fill,"--sxl-app-color-shadow":De.colorShadow,"--sxl-app-color-grey":De.colorGrey,"--sxl-app-color-button-fill":ge.fill,"--sxl-app-color-button-text":ge.text?.fill,"--sxl-app-color-button-border":ge.edgeStrokeFill,"--sxl-app-color-primary-dark":De.selection.strokeFill},ref:H,zoom:ue,...$,onFirstRender:yt=>{sl(!0),$?.onFirstRender?.(yt),Le?.activate()},showGridLines:fe,gridLineColor:tt,propsGridLineColumns:We,propsGridLineRows:rt,freezeLeft:xe?.[he.AnchorLocation.Left],propsFreezeLeft:Dt,freezeTop:xe?.[he.AnchorLocation.Top],propsFreezeTop:Dt,width:L,height:U,columnCount:g.width,rowCount:g.height,cursor:wt??$e??"cell",clipCells:!0,layout:te,renderCell:il,renderOverlay:al,getCellCoordsAsRangeCoords:Ue,hiddenRowsAt:vt,hiddenColumnsAt:Cn,getVisibleCells:en,onWheelScroll:ut,onPointerDown:$n,onKeyDown:yn,onViewportChange:V,onImmediateScroll:Ot,scrollPoint:re,propsStage:{onFocus:()=>{Le?.activate()}},renderOverlays:xt})},[_]);o.useEffect(()=>{Pe.current||A()},[te,xe,ue,Le,re?.left,re?.top,ke,$,L,U,wt,xt,ce,$e]);let _n={flex:"1 1 100%",display:"flex",alignContent:"stretch",position:"relative"};k||(_n={..._n,...I});const dl=o.useMemo(()=>{const ne=n.getStyles().getTheme(),Re=ne.getColorScheme(),Ke=ne.getFontScheme();return{"--sxl-doc-color-dk1":Re.getDk1().toCSS(ke.darkMode),"--sxl-doc-color-dk2":Re.getDk2().toCSS(ke.darkMode),"--sxl-doc-color-lt1":Re.getLt1().toCSS(ke.darkMode),"--sxl-doc-color-lt2":Re.getLt2().toCSS(ke.darkMode),"--sxl-doc-color-accent1":Re.getAccent1().toCSS(ke.darkMode),"--sxl-doc-color-accent2":Re.getAccent2().toCSS(ke.darkMode),"--sxl-doc-color-accent3":Re.getAccent3().toCSS(ke.darkMode),"--sxl-doc-color-accent4":Re.getAccent4().toCSS(ke.darkMode),"--sxl-doc-color-accent5":Re.getAccent5().toCSS(ke.darkMode),"--sxl-doc-color-accent6":Re.getAccent6().toCSS(ke.darkMode),"--sxl-doc-color-hlink":Re.getHlink().toCSS(ke.darkMode),"--sxl-doc-color-fol-hlink":Re.getFolHlink().toCSS(ke.darkMode),"--sxl-doc-font-major":Ke.getMajorFont(),"--sxl-doc-font-minor":Ke.getMinorFont()}},[n.getStyles().getTheme()]),Eo=r.useCallbackRef(ne=>{const{style:Re,...Ke}=ne;return s.jsx(bo,{...Ke,style:{paddingLeft:"4px",paddingRight:"4px",...Re},sheet:n})},[n]);let Zn=s.jsx("div",{style:_n,onTouchStart:()=>{Fo()},onFocus:ne=>{B(!0),N?.(ne)},onBlur:ne=>{B(!1),v?.(ne)},ref:Mt,...Y,children:s.jsx("div",{className:ct("sheetxl-sheet",ql),style:{position:"absolute",width:"100%",height:"100%",boxSizing:"border-box",display:"flex",flexDirection:"column",flex:"1 1 100%",zIndex:"0",...dl},children:s.jsxs("div",{style:{display:"flex",flexDirection:"row",flex:"1 1 100%"},children:[Qt,wn,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",overflow:"hidden",position:"relative"},children:[ll,s.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:"1 1 100%",position:"relative",borderRight:`solid ${O.edgeStrokeWidth}px ${O.edgeStrokeFill}`,backgroundColor:ke.fill},ref:J,onContextMenu:vn,children:[cl,et,s.jsx(Rl,{style:{position:"absolute",right:24,bottom:4},colorLicensee:De?.selection?.strokeFill,colorCredits:De?.body?.text?.fill})]})]})]})})});k&&(Zn=s.jsx(r.ScrollPane,{style:{flex:"1 1 100%",overflow:"hidden",background:`${O.fill}`,minHeight:2*Be.height,minWidth:2*Be.width,...I},viewport:ee,touchElement:H.current?.stage,disableTouch:ot,onScrollViewport:ne=>{H.current?.scrollTo(ne)},renderScrollbarHorizontal:Eo,renderScrollbarVertical:Eo,...y,children:Zn})),o.useEffect(()=>{Pe.current=!1,A?.(),b&&Mt.current?.focus()},[n]);const[Xn,ul]=o.useState(!1),Fo=r.useCallbackRef(()=>{Xn||ul(!0)},[Xn]);return o.useEffect(()=>{if(Io)return typeof K=="function"&&K(),r.ReactUtils.detectIt().primaryInput==="touch"&&Fo(),()=>{}},[K,Io,Xn]),Zn}));kr.displayName="SheetElement";const Uo="data:image/webp;base64,UklGRhIPAABXRUJQVlA4TAYPAAAv/8F/EM8HIZJtWU0fdlTh3wRCIMlkE+EqkiTFyt57/KQ8/zKeEf5iaseNJClS1DGDxWcwvhfuCo5tW88SHw8Xh5ypbC3tnf8QHEfOB/D97w4PuFHBIx6MHJ74zvj/0aLdlH9AYWEjHiwOJR5M7Q+FAigmTRQOJRqczrVUKABQSMYgoAFFAhIwBkgaYEkBSABowDGgcYakUZirArQhRMUIIHGLBIAEEoDRfyokIAEAMhrSRmEOSPyS/jvR+BYFIWkUhLQhCpLGGQ2rhPiCOKPxDIVQmAZQDMYIjCTfNQXVJv8pnQqhuAonnczGDPv0VwFw/w+uGiAwQYjJXxffaJzROKPHoArGAPA+6o9AtiIj4XgAWGKCwAQBVNMSHQNEjTMqOSWPQEFRHOVl4vp/nnhI/DBNK8CGXCpeFvONip/jvPn67qb957v+Nssyv96/Jwg/xzT9yORhfR4fb6vF9ef39Nt62g55v37/7dRzfx9xFLRtIyX8ae+/AxARE8APxbCQtkidoqVGDBDxR3r8/59vo88vnW07v9nrY+l0tn0zemuSnn03W83Otn2zcarbfIrZqnG7Ykr77/nS5PP+/E6/iP7DgiRJiZX13F2QhYM/OrBtm7at/ZB927Zt27ZtPr/oK7Jt27b9x7dtGxcv1sFcc/R1woj+S2IkSZGkaXMpD2sZhqf3R5Y/23+2/2z/2f6z/Wf7z/af7T/bf7b/bP/97S8/r8tpn2+Rafa98ufeMc3nfK8v3V9QZHWVtFs5f/i2z8bd7+E/nX/Vuk9+uO6dF3IuWEy12r0S9eGUdA5q0RtuvnxxXpUFVPf5eQlfe7jG8j58Q6+uZZZNRGmv+GgOidbMMHMMy/WbJu7az/wcUqUk9C01LJNj5tZsDsnuizfPWh/F3WdN4FDO/eiYow4LozJuhpfDoPtcywyr8pAYDpv2RlmOB1TF7fBymPXAqA4Wwskrp3JY9oVZZA2efmm8m8O2Xa796tcoMprDvA2DAprXfkYWC9C0eflat2xrBgtRrKuDwgXemsKS5I6vr2zVzq9ZnLbUUzSHL5lFast+JTPi1rJUZWzN1bBuSSxZ7pvqaFfeVpYub2QtzaqI3McCtsppqPXPTWc0C9kjB3TqyFcsZ54b8/XpXJSHRW23qU1LJrC4PdFRlWsMzWCJ815ZpUYDU1no7mqiQ7VvYbnz9zIUaOkqFr3tZ7XnfKSHhe/+ON3pNJblL8N1QXEG+xlCXzXXmvKZjKJYn9IWKV7POMqIqlaYVtEMpU0l6lq46Eo3g2lvO2WtRPoB48m/SFXjwt3JiMqYp6eJkHWTGVQ3BZSky30Mq0/KVMTnZ2BN6aggV2UwtPa0UI+rGV1pylkm1RjB+IpZqpoxRG5ghGW/oZjr9xlj+xarZSiBBEaZe5BSxhK4jXHmeVElj/2Bkeb2KeQVzWKs7eumDnMZbemtlGEU4236UVUYyojb3UATK5Yx5lY30sOqRVlBn3YPdqKCgrexZ7SwcknQP13bfjWC6nD1XEcreHs8QgXOTg369bDmlxFQNU28mRpwYUMNXDcTQVXC2woYTOo2DrJxk1+ZQ9/9PIeNprjRs72ij4H2wbdZjdzdTDYizUXG9P3gnfZGDVy3gFMxD5ZBN9U7BWoJpoK2OpBvHvbYArWBUlFDgXu8QG2BVJanG2xLxC/UckNZZ6Om5VZmnd1NQfvtrRJzByPGXHr8ohqyn/eOr0MIZXAJZFvF1zGAUvC0AuzT+LpgXxJ7K/BuK/jA8LpiXhpPwZ3dcFN4XbIukUVgnVR01Y4WhVi19KLTC6Ca/vD4uevReM40PgHVY9GFMC2bHkAtG10Qy9K5rzHOLQkcGVwYwxJ6H+fspuAC2ZVSG5Rbjg0ulFk5Ta2FcUHTvcqtGrCo7aqZFo2EaK3oOXi0mpOO+xoinOB8cGgF2JTYrQC9EFoRJqV2Gp6Z3oisEItymxKBbniR+yIrxqDsBoCzUGQFpS+93fnYNiO4Z6FVwxc1WjXpotdCc0HoXHRMPucfY0qQTXJ6L+jqGCY0EzekcaOm+LY/g4PSCGCuirwgDtJ4dePy/uCvg2tJ8wNkhDzmObBsJDkhj7OagtL3rrwAhX84mnWiv8Yz+M/IXgyZHTFNc3jZ7dLYfSNo5uA2EpLzJT/c8b1liOY47CtHKOEfj+xcyRJ2vCqAx0MyRR2zE88uwr4hV9RxkoHGeIDv93Cf8aVotiT/uiTb0X+uKfFgnCw5Y473FWJxu7whx/wull0JkMwhx5MMJJ6UPeKYjyCZ43iw/BHHTwOxtAQAOPafwGEExem+vKd794bhxzckhNFvDgGbYbhCgoAbe46jcKsw0MbcH4Qv3hAH2vgOHIsbg4CNPScxuFcoWGPuhWFX8WnO/gt7hufPIVhSEstIOjN7ChF4WDhIY34RwcqGb4uHWfjnPZwmAQGN73PI7xkh4Yy5nvzuFhPOeKj4OkhQsqeJF9qz0DXAWB45sBFU7K6QXoKENTLOzPyC9PYIDGR8sfBOscikTwfzHp3MJlOPcujyB2TnYjiEMbeUfn0jOoRxP9GVeRgPYPyk6FqH3AaAUh5ZkOL4hpC/XLOim8/yXQ3yxXxWck9o4gb3h85/inFrhLfLQf3iIZIPNfmWLFQvniG4DyUPtYvHij7V0UXl4uxqua0vG3WLOUduNxjdELBn98vm8Jroy5z5jCSzJpY9m/CWnF43NYtvlHu8CclKxeJPxDabzNQrfkBsZ8pNteLMCKmdIDu1irmj1LaRn1rFraT2oAxVKh4oNcuHj7aRx9FNhof3pPaq5Djyzsi2RD3sDXmCSAejD/wqmeIM3y7JzS1b9YkfkfpAIchXdeI1Yu9ZqrHaxNOFdqGcVSbmgMyW974v2DmPb3A+lMhsbcl6rMrMXCCz9WSuKnFDmW0gdzWJc2S2suxVJO4s9YiT/uoRt5TZ1gJQjbitzMaJQC3iFVJfqhAElYiX6M3VCQ7FijMOokpYIfSTMFQLbYV+QQhlobUXtDJB9dBZ6OnOAFVEjtDznfyribpCz3e2ryoKLP9yJ4Uyu9x+rsmYUS2zS7yrjDSpjwuidbXxtdCmda46NghtGuPq4yOphx071LYKeZ+E7hXXamTk37XjTjzo+gqq0ThI7L2Nq9X7Z7Gexp1aq1ofnovVNO7cmfX67FyspXEnP/P74qxa1uho3Omrm6ZePpF73PkPzL41q5gbSOzu8PrOvGbek9uoXvF2Z1bKbQOvd8yajU3kdpHRx+W6yY4QfGfjfT4tV87dJLfBD1y+Kqudm0jwjjX5orx6+ol+ISM9viernxV/5+53wqw94f3OSCHJ/XII3Z/23S+tgPeHH5DovQgYoAWye5ovQkdldwpehNIDspuOLkSPkfDdCXaXo+7Pdj8G87pGemPRgnRI/Eua2/Pd78zMMvH3OhxtZhw/I/G7AytM78lvS6o4lQI4YuRQcbofwH5n//w6UqDeJwDtSBSpNyEcXSigSHkgHIqUqXq6x53xGUFoV56ZdHwZg41hYuU5jsF0b6AE6zEC0fEk0RqAwpIg0XKXwDiC6G9ghGsLwWgXolUZFzVxWAxjph3TgRyLsuFHIATsfQLS1gQRWw7laOMARGyyQUi61z5k/QiKRd1Dtq8Qi79e847ZDst/3Al+ROO7N6xn5HGtQWh62DdqiwiOWWyjtipAeLrXNGzvQjq40J5hu/ccIoPvOcbtUlBnFMF8VdZFswowGX6U4Yl+2KOLQHWiW+D2NUPl5/29Ijcb2NEGtYqc/ySw0wlzV2+038muI2AtFXWS2zCsewq3gsl+ZytEZnC/Xmi/011M0FpQYSPW/QRcwWC/80WfA3fcCXdOr2+ElFz+/U74CoFrnkPjFCy97I2tInRdo9T6RkgGku93yrYEz68HZdY3QrKQungC2DoKVCQTifM3g3g6yfboZfY76zCC2CeKHAvMNmPW/U47vogw9kKo4KzkLGMFzONOfFSo0Myk3O3A3xLMLlKowOxk3O/MtQlnj8QKy1C+/U69koCa6/BYQVnK1kcEtUV6kP1OvqsRVkOuV+wYMpuOqfY7ew8C26/7B+s6Y4maQXC7VMG6zFqaHigmvK0aravMZfm5E7SFfMJhdo/WRfZy/NwZ5hHk5vkgWscByNAj1YS5CxStwxCUb3dTQt2T4ToKQvGfO0kbgu3f28J1EIbCP3eWKwl40x8Yrm0ginaLQcg79ZCgX7UJRcEmnSPsncBBv2oZjGLF5sA/70y3oj/vTIcVcIpRHw3+nS1mnLHIzH1JAdV+MPhXk4WkRC5SQU1Sg3711QgJSnwfRWjhFPPuQ33e2b4oIi30WgZDblUd0kPzIbsvhzTRMMCm1yNddClc3iPqOO+ULrD2HSJ15EiEyr2YFFJVPFCeHqSSAh/gvPsZtZx32ptQPkd3xZx24NkYX1EbIsVczQUotivppivhSW1J2undDHDzGhqQfno+HZmHCkhDtYzG5fZzpKOOTUblxmrSUic2gjrv9KSoym8GJH0l6SozC40J9UlbHUnB4vETpK9OPorkZURWkcY6H4VjEbPupLWe9WKwriHpreZfIniyqPOkuSLmuaU3rRtpr4N7hf9/4yfSX+d2Sj6tqZdBKsx5j9Tu6EBa7IRLZLt6OUiRHZoqr62NSJddiHTLKsVJ+uzAWElXLBheRhrN4ZwmpcdakFarNS9bxDnMToMUW9148cTMKyfldvpu0WTecJz0mxEn1x2e+DzScQ6fTAsmZ2xtTz+n5juS5bGlM+m66meSZPl7Y2dnUnjLtmaIsSpxVEdSerkuvwiTmOedIMV38uKUcHfXqwFSflVL4zPDeJxhV3uyBB2/cnx4+sK8QJahqm47Y8PNg9c0JItRedyM2PAxMWqZQVakyrgZMeFg7y8PsS7VeuO70P4bxP3ZRaUGWZ6OmVv9oSk63llBVqkLh4Zt9IaW1Tt6tjfIYhWRY86YGCKH/WWGmUOWraaHxzw1yV2DMxQ2zHq51Tmyfl2o99bI25Jig2vP54ljDp9ykLWsdj3fkO9vvWPKtL8wndo7YeztOy8bcKh5OVncyhq2XNrd96ZpLrjy5/qYb/l8S7q2r1NJlj/bf7b/bP/Z/rP9Z/vP9p/tP9t/tv9s//3djwA=",Mr=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,style:a,picture:l,description:f,isDragging:h,view:c,onHide:C,onShow:k,onKeyDownCapture:y,onFocus:p,onBlur:M,loadingPanel:T,...z}=e,[D,Z]=o.useState(!1),[K,w]=o.useState(null),[N,v]=o.useState(null),[I,q]=o.useState(null);o.useEffect(()=>{v(null),l.getDetails().then(j=>{Z(!1),v(j.asUrl()),j.asSVGText?.()&&q(j.asSVGText())}).catch(j=>{console.warn(j),Z(!0),v(Uo),q(null)})},[l]);const X=r.useImperativeElement(t,()=>({isPictureEditor:()=>!0}),[]),E=o.useMemo(()=>{if(N||I)return s.jsx("img",{style:{flex:"1",width:"100%",height:"100%",border:D?"var(--sxl-app-color-grey, grey) solid 1px":void 0,backgroundColor:D?"var(--sxl-app-color-background, white)":void 0,boxShadow:D?"0px 0px 3px var(--sxl-app-color-error, red)":void 0,objectFit:D?"contain":void 0,opacity:K?1:0,filter:"var(--sxl-app-filter-dark-invert)"},draggable:!1,src:N,onLoad:()=>{w(!0)},onError:({currentTarget:j})=>{console.log("error"),j.onerror=null,v(Uo),Z(!0)},alt:f??`${l.getType()}`})},[K,l,N,I,h]);if(!l.isClosed())return s.jsxs("div",{className:"picture-editor",style:{position:"relative",display:"flex",flex:"1 1 100%",filter:h?"drop-shadow(1px 1px 1.5px var(--sxl-app-color-shadow, rgba(0, 0, 0, .25)))":void 0,...a,width:"100%",height:"100%"},tabIndex:0,...z,onKeyDownCapture:j=>{y?.(j)},ref:X,children:[K||D?void 0:T,E]})}));Mr.displayName="PictureEditor";const ii=o.memo(o.forwardRef((e,t)=>{const{children:n,disabled:i,chart:a,view:l,isDragging:f,onHide:h,onShow:c,...C}=e;o.useEffect(()=>{},[a]);const k=r.useImperativeElement(t,()=>({isChartEditor:()=>!0}),[]),[y,{height:p,width:M}]=Wt();if(!a.isClosed())return s.jsx("div",{...C,ref:Nt([k,y]),children:s.jsx("div",{className:"chart-editor",style:{width:"100%",height:"100%",backgroundColor:"var(--sxl-app-color-background, white)",backgroundImage:"var(--sxl-app-image-background)",alignItems:"center",justifyContent:"center",zoom:l.getZoom(),display:"flex",position:"relative",border:"var(--sxl-app-color-grey, grey) solid 1px",filter:i?"blur(1px)":void 0,boxShadow:f?"1px 1px 2px var(--sxl-app-color-shadow, rgba(0,0,0,.15))":void 0},children:s.jsx("div",{style:{textAlign:"center"},children:a.getDescription()})})})})),ai="_editable-input_1bqx6_6",si=e=>s.jsx("input",{...e}),Tr=o.memo(o.forwardRef((e,t)=>{const{style:n={},className:i,value:a="",onSubmit:l,onChange:f,onCancel:h,renderInput:c=si,styleHover:C={},dragging:k,maxLength:y,disabled:p=!1,readOnly:M=!1,...T}=e,[z,D]=o.useState(!1),[Z,K]=o.useState(!1),[w,N]=o.useState(a);o.useEffect(()=>{N(a)},[a]);const v=o.useRef(null),[I,q]=o.useState(null),X=r.useNotifier(),E=o.useCallback(function(J){const x=J.message;I!==x&&(X?.showMessage?.(x,{type:r.NotifierType.Error}),q(x))},[X,I]),j=o.useCallback(J=>{let x=!1;try{x=l?.(J)??!0}catch(S){E(S)}return x?(v.current=null,K(!1),N(J),x):(setTimeout(()=>{v.current?.focus()},0),x)},[l]),$=r.useCallbackRef(()=>{N(a),v.current=null,K(!1),h?.()},[h,a]),ve=o.useMemo(()=>{if(!Z)return null;const J={className:ct(ai),autoFocus:!0,spellCheck:!1,name:"editable-label",autoComplete:"off",maxLength:y,type:"text",value:w,onFocus:x=>{v.current||(v.current=x.target,setTimeout(()=>{x.target?.select()},0))},onBlur:x=>{v.current&&j(w)},onChange:x=>{Z&&N(x.target.value)},onMouseDown:x=>x.stopPropagation(),onKeyDown:x=>x.code==="Escape"?(x.preventDefault(),void $()):x.code==="Enter"?(x.preventDefault(),void j(x.target.value)):void(x.code!=="Tab"?x.stopPropagation():j(x.target.value))};return s.jsx(s.Fragment,{children:c(J)})},[Z,w,j,$,c,p]),[Y,_]=o.useState();o.useLayoutEffect(()=>{let J=Object.assign({},n);(k||z)&&(J=Object.assign(J,C)),_(J)},[k,z,C,n]),o.useEffect(()=>{ve&&f?.(w)},[ve,f,w]);const A=r.useImperativeElement(t,()=>({startEdit(){p||M||K(!0)},cancel(){$()}}),[]);return s.jsxs("div",{...T,ref:A,style:{flexDirection:"column",display:"flex",...Y},className:ct(i),children:[s.jsxs("div",{style:{position:"relative",boxSizing:"content-box",whiteSpace:"pre",userSelect:"none",display:"flex",justifyContent:"center"},onDoubleClick:()=>{p||M||K(!0)},onMouseEnter:()=>D(!0),onMouseLeave:()=>D(!1),children:[s.jsx("div",{className:"editable-label-container",style:{textAlign:"center",display:"flex",minHeight:"1em",marginTop:"2px",opacity:Z?0:1},children:w}),ve]}),s.jsx("div",{style:{whiteSpace:"pre",position:"relative",maxHeight:"0px",height:"0px",visibility:"hidden",marginLeft:"1px",marginRight:"1px",overflow:"hidden",...C},children:w})]})})),jn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0;function Zt(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function xo(e){return"nodeType"in e}function Ct(e){var t,n;return e?Zt(e)?e:xo(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function qo(e){const{Document:t}=Ct(e);return e instanceof t}function gn(e){return!Zt(e)&&e instanceof Ct(e).HTMLElement}function Ir(e){return e instanceof Ct(e).SVGElement}function _t(e){return e?Zt(e)?e.document:xo(e)?qo(e)?e:gn(e)||Ir(e)?e.ownerDocument:document:document:document}const Rt=jn?o.useLayoutEffect:o.useEffect;function Bn(e){const t=o.useRef(e);return Rt(()=>{t.current=e}),o.useCallback(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t.current==null?void 0:t.current(...i)},[])}function cn(e,t){t===void 0&&(t=[e]);const n=o.useRef(e);return Rt(()=>{n.current!==e&&(n.current=e)},t),n}function rn(e,t){const n=o.useRef();return o.useMemo(()=>{const i=e(n.current);return n.current=i,i},[...t])}function Fn(e){const t=Bn(e),n=o.useRef(null),i=o.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,i]}function An(e){const t=o.useRef();return o.useEffect(()=>{t.current=e},[e]),t.current}let lo={};function hn(e,t){return o.useMemo(()=>{if(t)return t;const n=lo[e]==null?0:lo[e]+1;return lo[e]=n,e+"-"+n},[e,t])}function Er(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>{const h=Object.entries(f);for(const[c,C]of h){const k=l[c];k!=null&&(l[c]=k+e*C)}return l},{...t})}}const $t=Er(1),dn=Er(-1);function On(e){if(!e)return!1;const{KeyboardEvent:t}=Ct(e.target);return t&&e instanceof t}function Dn(e){if((function(t){if(!t)return!1;const{TouchEvent:n}=Ct(t.target);return n&&t instanceof n})(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return(function(t){return"clientX"in t&&"clientY"in t})(e)?{x:e.clientX,y:e.clientY}:null}const Lt=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Lt.Translate.toString(e),Lt.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:i}=e;return t+" "+n+"ms "+i}}}),Ko="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ci(e){return e.matches(Ko)?e:e.querySelector(Ko)}const di={display:"none"};function ui(e){let{id:t,value:n}=e;return o.createElement("div",{id:t,style:di},n)}function gi(e){let{id:t,announcement:n,ariaLiveType:i="assertive"}=e;return o.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n)}const Fr=o.createContext(null),hi={draggable:`
|
|
24
24
|
To pick up a draggable item, press the space bar.
|
|
25
25
|
While dragging, use the arrow keys to move the item.
|
|
26
26
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
27
|
-
`},mi={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function fi(e){let{announcements:t=mi,container:n,hiddenTextDescribedById:i,screenReaderInstructions:a=hi}=e;const{announce:l,announcement:f}=(function(){const[y,p]=o.useState("");return{announce:o.useCallback(M=>{M!=null&&p(M)},[]),announcement:y}})(),h=hn("DndLiveRegion"),[c,C]=o.useState(!1);if(o.useEffect(()=>{C(!0)},[]),(function(y){const p=o.useContext(Fr);o.useEffect(()=>{if(!p)throw new Error("useDndMonitor must be used within a children of <DndContext>");return p(y)},[y,p])})(o.useMemo(()=>({onDragStart(y){let{active:p}=y;l(t.onDragStart({active:p}))},onDragMove(y){let{active:p,over:M}=y;t.onDragMove&&l(t.onDragMove({active:p,over:M}))},onDragOver(y){let{active:p,over:M}=y;l(t.onDragOver({active:p,over:M}))},onDragEnd(y){let{active:p,over:M}=y;l(t.onDragEnd({active:p,over:M}))},onDragCancel(y){let{active:p,over:M}=y;l(t.onDragCancel({active:p,over:M}))}}),[l,t])),!c)return null;const k=o.createElement(o.Fragment,null,o.createElement(ui,{id:i,value:a.draggable}),o.createElement(gi,{id:h,announcement:f}));return n?Kt.createPortal(k,n):k}var ht;function zn(){}function io(e,t){return o.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ht||(ht={}));const kt=Object.freeze({x:0,y:0});function Ar(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function pi(e,t){const n=Dn(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Dr(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function vi(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function $o(e){let{left:t,top:n,height:i,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+i},{x:t+a,y:n+i}]}function zr(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Wo(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Ci=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=Wo(t,t.left,t.top),l=[];for(const f of i){const{id:h}=f,c=n.get(h);if(c){const C=Ar(Wo(c),a);l.push({id:h,data:{droppableContainer:f,value:C}})}}return l.sort(Dr)};function yi(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),f=a-i,h=l-n;if(i<a&&n<l){const c=t.width*t.height,C=e.width*e.height,k=f*h;return Number((k/(c+C-k)).toFixed(4))}return 0}const wi=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=[];for(const l of i){const{id:f}=l,h=n.get(f);if(h){const c=yi(h,t);c>0&&a.push({id:f,data:{droppableContainer:l,value:c}})}}return a.sort(vi)};function Go(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:kt}function bi(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>({...l,top:l.top+e*f.y,bottom:l.bottom+e*f.y,left:l.left+e*f.x,right:l.right+e*f.x}),{...t})}}const xi=bi(1);function Lr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const qi={ignoreTransform:!1};function Xt(e,t){t===void 0&&(t=qi);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:C,transformOrigin:k}=Ct(e).getComputedStyle(e);C&&(n=(function(y,p,M){const T=Lr(p);if(!T)return y;const{scaleX:z,scaleY:D,x:Z,y:K}=T,w=y.left-Z-(1-z)*parseFloat(M),N=y.top-K-(1-D)*parseFloat(M.slice(M.indexOf(" ")+1)),v=z?y.width/z:y.width,I=D?y.height/D:y.height;return{width:v,height:I,top:N,right:w+v,bottom:N+I,left:w}})(n,C,k))}const{top:i,left:a,width:l,height:f,bottom:h,right:c}=n;return{top:i,left:a,width:l,height:f,bottom:h,right:c}}function _o(e){return Xt(e,{ignoreTransform:!0})}function Hn(e,t){const n=[];return e?(function i(a){if(t!=null&&n.length>=t||!a)return n;if(qo(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!gn(a)||Ir(a)||n.includes(a))return n;const l=Ct(e).getComputedStyle(a);return a!==e&&(function(f,h){h===void 0&&(h=Ct(f).getComputedStyle(f));const c=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(C=>{const k=h[C];return typeof k=="string"&&c.test(k)})})(a,l)&&n.push(a),(function(f,h){return h===void 0&&(h=Ct(f).getComputedStyle(f)),h.position==="fixed"})(a,l)?n:i(a.parentNode)})(e):n}function Nr(e){const[t]=Hn(e,1);return t??null}function ao(e){return jn&&e?Zt(e)?e:xo(e)?qo(e)||e===_t(e).scrollingElement?window:gn(e)?e:null:null:null}function Pr(e){return Zt(e)?e.scrollX:e.scrollLeft}function jr(e){return Zt(e)?e.scrollY:e.scrollTop}function go(e){return{x:Pr(e),y:jr(e)}}var mt;function Br(e){return!(!jn||!e)&&e===document.scrollingElement}function Or(e){const t={x:0,y:0},n=Br(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mt||(mt={}));const Si={x:.2,y:.2};function Ri(e,t,n,i,a){let{top:l,left:f,right:h,bottom:c}=n;i===void 0&&(i=10),a===void 0&&(a=Si);const{isTop:C,isBottom:k,isLeft:y,isRight:p}=Or(e),M={x:0,y:0},T={x:0,y:0},z=t.height*a.y,D=t.width*a.x;return!C&&l<=t.top+z?(M.y=mt.Backward,T.y=i*Math.abs((t.top+z-l)/z)):!k&&c>=t.bottom-z&&(M.y=mt.Forward,T.y=i*Math.abs((t.bottom-z-c)/z)),!p&&h>=t.right-D?(M.x=mt.Forward,T.x=i*Math.abs((t.right-D-h)/D)):!y&&f<=t.left+D&&(M.x=mt.Backward,T.x=i*Math.abs((t.left+D-f)/D)),{direction:M,speed:T}}function ki(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:f}=window;return{top:0,left:0,right:l,bottom:f,width:l,height:f}}const{top:t,left:n,right:i,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Hr(e){return e.reduce((t,n)=>$t(t,go(n)),kt)}function Vr(e,t){if(t===void 0&&(t=Xt),!e)return;const{top:n,left:i,bottom:a,right:l}=t(e);Nr(e)&&(a<=0||l<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Mi=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+Pr(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+jr(n),0)}]];class ho{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Hn(n),a=Hr(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,f,h]of Mi)for(const c of f)Object.defineProperty(this,c,{get:()=>{const C=h(i),k=a[l]-C;return this.rect[c]+k},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ln{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var a;(a=this.target)==null||a.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function so(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}var qt,Ye;function Zo(e){e.preventDefault()}function Ti(e){e.stopPropagation()}(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(qt||(qt={})),(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ye||(Ye={}));const Ur={start:[Ye.Space,Ye.Enter],cancel:[Ye.Esc],end:[Ye.Space,Ye.Enter,Ye.Tab]},Ii=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ye.Right:return{...n,x:n.x+25};case Ye.Left:return{...n,x:n.x-25};case Ye.Down:return{...n,y:n.y+25};case Ye.Up:return{...n,y:n.y-25}}};class So{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ln(_t(n)),this.windowListeners=new ln(Ct(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Vr(i),n(kt)}handleKeyDown(t){if(On(t)){const{active:n,context:i,options:a}=this.props,{keyboardCodes:l=Ur,coordinateGetter:f=Ii,scrollBehavior:h="smooth"}=a,{code:c}=t;if(l.end.includes(c))return void this.handleEnd(t);if(l.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:C}=i.current,k=C?{x:C.left,y:C.top}:kt;this.referenceCoordinates||(this.referenceCoordinates=k);const y=f(t,{active:n,context:i.current,currentCoordinates:k});if(y){const p=dn(y,k),M={x:0,y:0},{scrollableAncestors:T}=i.current;for(const z of T){const D=t.code,{isTop:Z,isRight:K,isLeft:w,isBottom:N,maxScroll:v,minScroll:I}=Or(z),q=ki(z),X={x:Math.min(D===Ye.Right?q.right-q.width/2:q.right,Math.max(D===Ye.Right?q.left:q.left+q.width/2,y.x)),y:Math.min(D===Ye.Down?q.bottom-q.height/2:q.bottom,Math.max(D===Ye.Down?q.top:q.top+q.height/2,y.y))},E=D===Ye.Right&&!K||D===Ye.Left&&!w,j=D===Ye.Down&&!N||D===Ye.Up&&!Z;if(E&&X.x!==y.x){const $=z.scrollLeft+p.x,ve=D===Ye.Right&&$<=v.x||D===Ye.Left&&$>=I.x;if(ve&&!p.y)return void z.scrollTo({left:$,behavior:h});M.x=ve?z.scrollLeft-$:D===Ye.Right?z.scrollLeft-v.x:z.scrollLeft-I.x,M.x&&z.scrollBy({left:-M.x,behavior:h});break}if(j&&X.y!==y.y){const $=z.scrollTop+p.y,ve=D===Ye.Down&&$<=v.y||D===Ye.Up&&$>=I.y;if(ve&&!p.x)return void z.scrollTo({top:$,behavior:h});M.y=ve?z.scrollTop-$:D===Ye.Down?z.scrollTop-v.y:z.scrollTop-I.y,M.y&&z.scrollBy({top:-M.y,behavior:h});break}}this.handleMove(t,$t(dn(y,this.referenceCoordinates),M))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Xo(e){return!!(e&&"distance"in e)}function Yo(e){return!!(e&&"delay"in e)}So.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Ur,onActivation:a}=t,{active:l}=n;const{code:f}=e.nativeEvent;if(i.start.includes(f)){const h=l.activatorNode.current;return(!h||e.target===h)&&(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];class Ro{constructor(t,n,i){var a;i===void 0&&(i=(function(h){const{EventTarget:c}=Ct(h);return h instanceof c?h:_t(h)})(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:f}=l;this.props=t,this.events=n,this.document=_t(f),this.documentListeners=new ln(this.document),this.listeners=new ln(i),this.windowListeners=new ln(Ct(f)),this.initialCoordinates=(a=Dn(l))!=null?a:kt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.DragStart,Zo),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),this.windowListeners.add(qt.ContextMenu,Zo),this.documentListeners.add(qt.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yo(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Xo(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:a}=this.props;a(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(qt.Click,Ti,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:a,props:l}=this,{onMove:f,options:{activationConstraint:h}}=l;if(!a)return;const c=(n=Dn(t))!=null?n:kt,C=dn(a,c);if(!i&&h){if(Xo(h)){if(h.tolerance!=null&&so(C,h.tolerance))return this.handleCancel();if(so(C,h.distance))return this.handleStart()}return Yo(h)&&so(C,h.tolerance)?this.handleCancel():void this.handlePending(h,C)}t.cancelable&&t.preventDefault(),f(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ye.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Ei={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Kr extends Ro{constructor(t){const{event:n}=t,i=_t(n.target);super(t,Ei,i)}}Kr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!(!n.isPrimary||n.button!==0)&&(i?.({event:n}),!0)}}];const Fi={move:{name:"mousemove"},end:{name:"mouseup"}};var mo;(function(e){e[e.RightClick=2]="RightClick"})(mo||(mo={}));class $r extends Ro{constructor(t){super(t,Fi,_t(t.event.target))}}$r.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==mo.RightClick&&(i?.({event:n}),!0)}}];const co={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Wr extends Ro{constructor(t){super(t,co)}static setup(){return window.addEventListener(co.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(co.move.name,t)};function t(){}}}var an,Ln;function Ai(e){let{acceleration:t,activator:n=an.Pointer,canScroll:i,draggingRect:a,enabled:l,interval:f=5,order:h=Ln.TreeOrder,pointerCoordinates:c,scrollableAncestors:C,scrollableAncestorRects:k,delta:y,threshold:p}=e;const M=(function(I){let{delta:q,disabled:X}=I;const E=An(q);return rn(j=>{if(X||!E||!j)return Di;const $={x:Math.sign(q.x-E.x),y:Math.sign(q.y-E.y)};return{x:{[mt.Backward]:j.x[mt.Backward]||$.x===-1,[mt.Forward]:j.x[mt.Forward]||$.x===1},y:{[mt.Backward]:j.y[mt.Backward]||$.y===-1,[mt.Forward]:j.y[mt.Forward]||$.y===1}}},[X,q,E])})({delta:y,disabled:!l}),[T,z]=(function(){const I=o.useRef(null);return[o.useCallback((q,X)=>{I.current=setInterval(q,X)},[]),o.useCallback(()=>{I.current!==null&&(clearInterval(I.current),I.current=null)},[])]})(),D=o.useRef({x:0,y:0}),Z=o.useRef({x:0,y:0}),K=o.useMemo(()=>{switch(n){case an.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case an.DraggableRect:return a}},[n,a,c]),w=o.useRef(null),N=o.useCallback(()=>{const I=w.current;if(!I)return;const q=D.current.x*Z.current.x,X=D.current.y*Z.current.y;I.scrollBy(q,X)},[]),v=o.useMemo(()=>h===Ln.TreeOrder?[...C].reverse():C,[h,C]);o.useEffect(()=>{if(l&&C.length&&K){for(const I of v){if(i?.(I)===!1)continue;const q=C.indexOf(I),X=k[q];if(!X)continue;const{direction:E,speed:j}=Ri(I,X,K,t,p);for(const $ of["x","y"])M[$][E[$]]||(j[$]=0,E[$]=0);if(j.x>0||j.y>0)return z(),w.current=I,T(N,f),D.current=j,void(Z.current=E)}D.current={x:0,y:0},Z.current={x:0,y:0},z()}else z()},[t,N,i,z,l,f,JSON.stringify(K),JSON.stringify(M),T,C,v,k,JSON.stringify(p)])}Wr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:a}=n;return!(a.length>1)&&(i?.({event:n}),!0)}}],(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(an||(an={})),(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ln||(Ln={}));const Di={x:{[mt.Backward]:!1,[mt.Forward]:!1},y:{[mt.Backward]:!1,[mt.Forward]:!1}};var un,fo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(un||(un={})),(function(e){e.Optimized="optimized"})(fo||(fo={}));const Jo=new Map;function po(e,t){return rn(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nn(e){let{callback:t,disabled:n}=e;const i=Bn(t),a=o.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:l}=window;return new l(i)},[n]);return o.useEffect(()=>()=>a?.disconnect(),[a]),a}function zi(e){return new ho(Xt(e),e)}function Qo(e,t,n){t===void 0&&(t=zi);const[i,a]=o.useState(null);function l(){a(c=>{if(!e)return null;var C;if(e.isConnected===!1)return(C=c??n)!=null?C:null;const k=t(e);return JSON.stringify(c)===JSON.stringify(k)?c:k})}const f=(function(c){let{callback:C,disabled:k}=c;const y=Bn(C),p=o.useMemo(()=>{if(k||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:M}=window;return new M(y)},[y,k]);return o.useEffect(()=>()=>p?.disconnect(),[p]),p})({callback(c){if(e)for(const C of c){const{type:k,target:y}=C;if(k==="childList"&&y instanceof HTMLElement&&y.contains(e)){l();break}}}}),h=Nn({callback:l});return Rt(()=>{l(),e?(h?.observe(e),f?.observe(document.body,{childList:!0,subtree:!0})):(h?.disconnect(),f?.disconnect())},[e]),i}const er=[];function tr(e,t){t===void 0&&(t=[]);const n=o.useRef(null);return o.useEffect(()=>{n.current=null},t),o.useEffect(()=>{const i=e!==kt;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?dn(e,n.current):kt}function nr(e){return o.useMemo(()=>e?(function(t){const n=t.innerWidth,i=t.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}})(e):null,[e])}const or=[];function Gr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gn(t)?t:e}const Li=[{sensor:Kr,options:{}},{sensor:So,options:{}}],Ni={current:{}},Mn={draggable:{measure:_o},droppable:{measure:_o,strategy:un.WhileDragging,frequency:fo.Optimized},dragOverlay:{measure:Xt}};class sn extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const Pi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new sn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mn,measureDroppableContainers:zn,windowRect:null,measuringScheduled:!1},_r={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zn,draggableNodes:new Map,over:null,measureDroppableContainers:zn},mn=o.createContext(_r),Zr=o.createContext(Pi);function ji(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new sn}}}function Bi(e,t){switch(t.type){case ht.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ht.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ht.DragEnd:case ht.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ht.RegisterDroppable:{const{element:n}=t,{id:i}=n,a=new sn(e.droppable.containers);return a.set(i,n),{...e,droppable:{...e.droppable,containers:a}}}case ht.SetDroppableDisabled:{const{id:n,key:i,disabled:a}=t,l=e.droppable.containers.get(n);if(!l||i!==l.key)return e;const f=new sn(e.droppable.containers);return f.set(n,{...l,disabled:a}),{...e,droppable:{...e.droppable,containers:f}}}case ht.UnregisterDroppable:{const{id:n,key:i}=t,a=e.droppable.containers.get(n);if(!a||i!==a.key)return e;const l=new sn(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function Oi(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=o.useContext(mn),l=An(i),f=An(n?.id);return o.useEffect(()=>{if(!t&&!i&&l&&f!=null){if(!On(l)||document.activeElement===l.target)return;const h=a.get(f);if(!h)return;const{activatorNode:c,node:C}=h;if(!c.current&&!C.current)return;requestAnimationFrame(()=>{for(const k of[c.current,C.current]){if(!k)continue;const y=ci(k);if(y){y.focus();break}}})}},[i,t,a,f,l]),null}function Xr(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((a,l)=>l({transform:a,...i}),n):n}const Vn=o.createContext({...kt,scaleX:1,scaleY:1});var Ft;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ft||(Ft={}));const Hi=o.memo(function(e){var t,n,i,a;let{id:l,accessibility:f,autoScroll:h=!0,children:c,sensors:C=Li,collisionDetection:k=wi,measuring:y,modifiers:p,...M}=e;const T=o.useReducer(Bi,void 0,ji),[z,D]=T,[Z,K]=(function(){const[V]=o.useState(()=>new Set),Q=o.useCallback(re=>(V.add(re),()=>V.delete(re)),[V]);return[o.useCallback(re=>{let{type:Ee,event:Ue}=re;V.forEach(Oe=>{var xe;return(xe=Oe[Ee])==null?void 0:xe.call(Oe,Ue)})},[V]),Q]})(),[w,N]=o.useState(Ft.Uninitialized),v=w===Ft.Initialized,{draggable:{active:I,nodes:q,translate:X},droppable:{containers:E}}=z,j=I!=null?q.get(I):null,$=o.useRef({initial:null,translated:null}),ve=o.useMemo(()=>{var V;return I!=null?{id:I,data:(V=j?.data)!=null?V:Ni,rect:$}:null},[I,j]),Y=o.useRef(null),[_,A]=o.useState(null),[J,x]=o.useState(null),S=cn(M,Object.values(M)),oe=hn("DndDescribedBy",l),ie=o.useMemo(()=>E.getEnabled(),[E]),qe=(de=y,o.useMemo(()=>({draggable:{...Mn.draggable,...de?.draggable},droppable:{...Mn.droppable,...de?.droppable},dragOverlay:{...Mn.dragOverlay,...de?.dragOverlay}}),[de?.draggable,de?.droppable,de?.dragOverlay]));var de;const{droppableRects:Pe,measureDroppableContainers:je,measuringScheduled:De}=(function(V,Q){let{dragging:re,dependencies:Ee,config:Ue}=Q;const[Oe,xe]=o.useState(null),{frequency:He,measure:Ce,strategy:Ae}=Ue,we=o.useRef(V),Se=(function(){switch(Ae){case un.Always:return!1;case un.BeforeDragging:return re;default:return!re}})(),Le=cn(Se),Ze=o.useCallback(function(at){at===void 0&&(at=[]),Le.current||xe(ot=>ot===null?at:ot.concat(at.filter($e=>!ot.includes($e))))},[Le]),_e=o.useRef(null),Xe=rn(at=>{if(Se&&!re)return Jo;if(!at||at===Jo||we.current!==V||Oe!=null){const ot=new Map;for(let $e of V){if(!$e)continue;if(Oe&&Oe.length>0&&!Oe.includes($e.id)&&$e.rect.current){ot.set($e.id,$e.rect.current);continue}const lt=$e.node.current,it=lt?new ho(Ce(lt),lt):null;$e.rect.current=it,it&&ot.set($e.id,it)}return ot}return at},[V,Oe,re,Se,Ce]);return o.useEffect(()=>{we.current=V},[V]),o.useEffect(()=>{Se||Ze()},[re,Se]),o.useEffect(()=>{Oe&&Oe.length>0&&xe(null)},[JSON.stringify(Oe)]),o.useEffect(()=>{Se||typeof He!="number"||_e.current!==null||(_e.current=setTimeout(()=>{Ze(),_e.current=null},He))},[He,Se,Ze,...Ee]),{droppableRects:Xe,measureDroppableContainers:Ze,measuringScheduled:Oe!=null}})(ie,{dragging:v,dependencies:[X.x,X.y],config:qe.droppable}),Ie=(function(V,Q){const re=Q!=null?V.get(Q):void 0,Ee=re?re.node.current:null;return rn(Ue=>{var Oe;return Q==null?null:(Oe=Ee??Ue)!=null?Oe:null},[Ee,Q])})(q,I),ke=o.useMemo(()=>J?Dn(J):null,[J]),ge=(function(){const V=_?.autoScrollEnabled===!1,Q=typeof h=="object"?h.enabled===!1:h===!1,re=v&&!V&&!Q;return typeof h=="object"?{...h,enabled:re}:{enabled:re}})(),O=(function(V,Q){return po(V,Q)})(Ie,qe.draggable.measure);(function(V){let{activeNode:Q,measure:re,initialRect:Ee,config:Ue=!0}=V;const Oe=o.useRef(!1),{x:xe,y:He}=typeof Ue=="boolean"?{x:Ue,y:Ue}:Ue;Rt(()=>{if(!xe&&!He||!Q)return void(Oe.current=!1);if(Oe.current||!Ee)return;const Ce=Q?.node.current;if(!Ce||Ce.isConnected===!1)return;const Ae=Go(re(Ce),Ee);if(xe||(Ae.x=0),He||(Ae.y=0),Oe.current=!0,Math.abs(Ae.x)>0||Math.abs(Ae.y)>0){const we=Nr(Ce);we&&we.scrollBy({top:Ae.y,left:Ae.x})}},[Q,xe,He,Ee,re])})({activeNode:I!=null?q.get(I):null,config:ge.layoutShiftCompensation,initialRect:O,measure:qe.draggable.measure});const Fe=Qo(Ie,qe.draggable.measure,O),ze=Qo(Ie?Ie.parentElement:null),H=o.useRef({activatorEvent:null,active:null,activeNode:Ie,collisionRect:null,collisions:null,droppableRects:Pe,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),W=E.getNodeFor((t=H.current.over)==null?void 0:t.id),me=(function(V){let{measure:Q}=V;const[re,Ee]=o.useState(null),Ue=Nn({callback:o.useCallback(Ce=>{for(const{target:Ae}of Ce)if(gn(Ae)){Ee(we=>{const Se=Q(Ae);return we?{...we,width:Se.width,height:Se.height}:Se});break}},[Q])}),Oe=o.useCallback(Ce=>{const Ae=Gr(Ce);Ue?.disconnect(),Ae&&Ue?.observe(Ae),Ee(Ae?Q(Ae):null)},[Q,Ue]),[xe,He]=Fn(Oe);return o.useMemo(()=>({nodeRef:xe,rect:re,setRef:He}),[re,xe,He])})({measure:qe.dragOverlay.measure}),ue=(n=me.nodeRef.current)!=null?n:Ie,fe=v?(i=me.rect)!=null?i:Fe:null,Me=!!(me.nodeRef.current&&me.rect),ae=Go(be=Me?null:Fe,po(be));var be;const g=nr(ue?Ct(ue):null),Ne=(function(V){const Q=o.useRef(V),re=rn(Ee=>V?Ee&&Ee!==er&&V&&Q.current&&V.parentNode===Q.current.parentNode?Ee:Hn(V):er,[V]);return o.useEffect(()=>{Q.current=V},[V]),re})(v?W??Ie:null),Be=(function(V,Q){Q===void 0&&(Q=Xt);const[re]=V,Ee=nr(re?Ct(re):null),[Ue,Oe]=o.useState(or);function xe(){Oe(()=>V.length?V.map(Ce=>Br(Ce)?Ee:new ho(Q(Ce),Ce)):or)}const He=Nn({callback:xe});return Rt(()=>{He?.disconnect(),xe(),V.forEach(Ce=>He?.observe(Ce))},[V]),Ue})(Ne),Te=Xr(p,{transform:{x:X.x-ae.x,y:X.y-ae.y,scaleX:1,scaleY:1},activatorEvent:J,active:ve,activeNodeRect:Fe,containerNodeRect:ze,draggingNodeRect:fe,over:H.current.over,overlayNodeRect:me.rect,scrollableAncestors:Ne,scrollableAncestorRects:Be,windowRect:g}),u=ke?$t(ke,X):null,L=(function(V){const[Q,re]=o.useState(null),Ee=o.useRef(V),Ue=o.useCallback(Oe=>{const xe=ao(Oe.target);xe&&re(He=>He?(He.set(xe,go(xe)),new Map(He)):null)},[]);return o.useEffect(()=>{const Oe=Ee.current;if(V!==Oe){xe(Oe);const He=V.map(Ce=>{const Ae=ao(Ce);return Ae?(Ae.addEventListener("scroll",Ue,{passive:!0}),[Ae,go(Ae)]):null}).filter(Ce=>Ce!=null);re(He.length?new Map(He):null),Ee.current=V}return()=>{xe(V),xe(Oe)};function xe(He){He.forEach(Ce=>{const Ae=ao(Ce);Ae?.removeEventListener("scroll",Ue)})}},[Ue,V]),o.useMemo(()=>V.length?Q?Array.from(Q.values()).reduce((Oe,xe)=>$t(Oe,xe),kt):Hr(V):kt,[V,Q])})(Ne),U=tr(L),m=tr(L,[Fe]),F=$t(Te,U),G=fe?xi(fe,Te):null,te=ve&&G?k({active:ve,collisionRect:G,droppableRects:Pe,droppableContainers:ie,pointerCoordinates:u}):null,le=zr(te,"id"),[b,B]=o.useState(null),R=(function(V,Q,re){return{...V,scaleX:Q&&re?Q.width/re.width:1,scaleY:Q&&re?Q.height/re.height:1}})(Me?Te:$t(Te,m),(a=b?.rect)!=null?a:null,Fe),P=o.useRef(null),ce=o.useCallback((V,Q)=>{let{sensor:re,options:Ee}=Q;if(Y.current==null)return;const Ue=q.get(Y.current);if(!Ue)return;const Oe=V.nativeEvent,xe=new re({active:Y.current,activeNode:Ue,event:Oe,options:Ee,context:H,onAbort(Ce){if(!q.get(Ce))return;const{onDragAbort:Ae}=S.current,we={id:Ce};Ae?.(we),Z({type:"onDragAbort",event:we})},onPending(Ce,Ae,we,Se){if(!q.get(Ce))return;const{onDragPending:Le}=S.current,Ze={id:Ce,constraint:Ae,initialCoordinates:we,offset:Se};Le?.(Ze),Z({type:"onDragPending",event:Ze})},onStart(Ce){const Ae=Y.current;if(Ae==null)return;const we=q.get(Ae);if(!we)return;const{onDragStart:Se}=S.current,Le={activatorEvent:Oe,active:{id:Ae,data:we.data,rect:$}};Kt.unstable_batchedUpdates(()=>{Se?.(Le),N(Ft.Initializing),D({type:ht.DragStart,initialCoordinates:Ce,active:Ae}),Z({type:"onDragStart",event:Le}),A(P.current),x(Oe)})},onMove(Ce){D({type:ht.DragMove,coordinates:Ce})},onEnd:He(ht.DragEnd),onCancel:He(ht.DragCancel)});function He(Ce){return async function(){const{active:Ae,collisions:we,over:Se,scrollAdjustedTranslate:Le}=H.current;let Ze=null;if(Ae&&Le){const{cancelDrop:_e}=S.current;Ze={activatorEvent:Oe,active:Ae,collisions:we,delta:Le,over:Se},Ce===ht.DragEnd&&typeof _e=="function"&&await Promise.resolve(_e(Ze))&&(Ce=ht.DragCancel)}Y.current=null,Kt.unstable_batchedUpdates(()=>{D({type:Ce}),N(Ft.Uninitialized),B(null),A(null),x(null),P.current=null;const _e=Ce===ht.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const Xe=S.current[_e];Xe?.(Ze),Z({type:_e,event:Ze})}})}}P.current=xe},[q]),se=o.useCallback((V,Q)=>(re,Ee)=>{const Ue=re.nativeEvent,Oe=q.get(Ee);if(Y.current!==null||!Oe||Ue.dndKit||Ue.defaultPrevented)return;const xe={active:Oe};V(re,Q.options,xe)===!0&&(Ue.dndKit={capturedBy:Q.sensor},Y.current=Ee,ce(re,Q))},[q,ce]),ye=(function(V,Q){return o.useMemo(()=>V.reduce((re,Ee)=>{const{sensor:Ue}=Ee;return[...re,...Ue.activators.map(Oe=>({eventName:Oe.eventName,handler:Q(Oe.handler,Ee)}))]},[]),[V,Q])})(C,se);(function(V){o.useEffect(()=>{if(!jn)return;const Q=V.map(re=>{let{sensor:Ee}=re;return Ee.setup==null?void 0:Ee.setup()});return()=>{for(const re of Q)re?.()}},V.map(Q=>{let{sensor:re}=Q;return re}))})(C),Rt(()=>{Fe&&w===Ft.Initializing&&N(Ft.Initialized)},[Fe,w]),o.useEffect(()=>{const{onDragMove:V}=S.current,{active:Q,activatorEvent:re,collisions:Ee,over:Ue}=H.current;if(!Q||!re)return;const Oe={active:Q,activatorEvent:re,collisions:Ee,delta:{x:F.x,y:F.y},over:Ue};Kt.unstable_batchedUpdates(()=>{V?.(Oe),Z({type:"onDragMove",event:Oe})})},[F.x,F.y]),o.useEffect(()=>{const{active:V,activatorEvent:Q,collisions:re,droppableContainers:Ee,scrollAdjustedTranslate:Ue}=H.current;if(!V||Y.current==null||!Q||!Ue)return;const{onDragOver:Oe}=S.current,xe=Ee.get(le),He=xe&&xe.rect.current?{id:xe.id,rect:xe.rect.current,data:xe.data,disabled:xe.disabled}:null,Ce={active:V,activatorEvent:Q,collisions:re,delta:{x:Ue.x,y:Ue.y},over:He};Kt.unstable_batchedUpdates(()=>{B(He),Oe?.(Ce),Z({type:"onDragOver",event:Ce})})},[le]),Rt(()=>{H.current={activatorEvent:J,active:ve,activeNode:Ie,collisionRect:G,collisions:te,droppableRects:Pe,draggableNodes:q,draggingNode:ue,draggingNodeRect:fe,droppableContainers:E,over:b,scrollableAncestors:Ne,scrollAdjustedTranslate:F},$.current={initial:fe,translated:G}},[ve,Ie,te,G,q,ue,fe,Pe,E,b,Ne,F]),Ai({...ge,delta:X,draggingRect:G,pointerCoordinates:u,scrollableAncestors:Ne,scrollableAncestorRects:Be});const ee=o.useMemo(()=>({active:ve,activeNode:Ie,activeNodeRect:Fe,activatorEvent:J,collisions:te,containerNodeRect:ze,dragOverlay:me,draggableNodes:q,droppableContainers:E,droppableRects:Pe,over:b,measureDroppableContainers:je,scrollableAncestors:Ne,scrollableAncestorRects:Be,measuringConfiguration:qe,measuringScheduled:De,windowRect:g}),[ve,Ie,Fe,J,te,ze,me,q,E,Pe,b,je,Ne,Be,qe,De,g]),pe=o.useMemo(()=>({activatorEvent:J,activators:ye,active:ve,activeNodeRect:Fe,ariaDescribedById:{draggable:oe},dispatch:D,draggableNodes:q,over:b,measureDroppableContainers:je}),[J,ye,ve,Fe,D,oe,q,b,je]);return o.createElement(Fr.Provider,{value:K},o.createElement(mn.Provider,{value:pe},o.createElement(Zr.Provider,{value:ee},o.createElement(Vn.Provider,{value:R},c)),o.createElement(Oi,{disabled:f?.restoreFocus===!1})),o.createElement(fi,{...f,hiddenTextDescribedById:oe}))}),Vi=o.createContext(null),rr="button";function Ui(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const l=hn("Draggable"),{activators:f,activatorEvent:h,active:c,activeNodeRect:C,ariaDescribedById:k,draggableNodes:y,over:p}=o.useContext(mn),{role:M=rr,roleDescription:T="draggable",tabIndex:z=0}=a??{},D=c?.id===t,Z=o.useContext(D?Vn:Vi),[K,w]=Fn(),[N,v]=Fn(),I=(function(X,E){return o.useMemo(()=>X.reduce((j,$)=>{let{eventName:ve,handler:Y}=$;return j[ve]=_=>{Y(_,E)},j},{}),[X,E])})(f,t),q=cn(n);return Rt(()=>(y.set(t,{id:t,key:l,node:K,activatorNode:N,data:q}),()=>{const X=y.get(t);X&&X.key===l&&y.delete(t)}),[y,t]),{active:c,activatorEvent:h,activeNodeRect:C,attributes:o.useMemo(()=>({role:M,tabIndex:z,"aria-disabled":i,"aria-pressed":!(!D||M!==rr)||void 0,"aria-roledescription":T,"aria-describedby":k.draggable}),[i,M,z,D,T,k.draggable]),isDragging:D,listeners:i?void 0:I,node:K,over:p,setNodeRef:w,setActivatorNodeRef:v,transform:Z}}function Yr(){return o.useContext(Zr)}const Ki={timeout:25};function $i(e){let{animation:t,children:n}=e;const[i,a]=o.useState(null),[l,f]=o.useState(null),h=An(n);return n||i||!h||a(h),Rt(()=>{if(!l)return;const c=i?.key,C=i?.props.id;c!=null&&C!=null?Promise.resolve(t(C,l)).then(()=>{a(null)}):a(null)},[t,i,l]),o.createElement(o.Fragment,null,n,i?o.cloneElement(i,{ref:f}):null)}const Wi={x:0,y:0,scaleX:1,scaleY:1};function Gi(e){let{children:t}=e;return o.createElement(mn.Provider,{value:_r},o.createElement(Vn.Provider,{value:Wi},t))}const _i={position:"fixed",touchAction:"none"},Zi=e=>On(e)?"transform 250ms ease":void 0,Xi=o.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:l,className:f,rect:h,style:c,transform:C,transition:k=Zi}=e;if(!h)return null;const y=a?C:{...C,scaleX:1,scaleY:1},p={..._i,width:h.width,height:h.height,top:h.top,left:h.left,transform:Lt.Transform.toString(y),transformOrigin:a&&i?pi(i,h):void 0,transition:typeof k=="function"?k(i):k,...c};return o.createElement(n,{className:f,style:p,ref:t},l)}),Yi=e=>t=>{let{active:n,dragOverlay:i}=t;const a={},{styles:l,className:f}=e;if(l!=null&&l.active)for(const[h,c]of Object.entries(l.active))c!==void 0&&(a[h]=n.node.style.getPropertyValue(h),n.node.style.setProperty(h,c));if(l!=null&&l.dragOverlay)for(const[h,c]of Object.entries(l.dragOverlay))c!==void 0&&i.node.style.setProperty(h,c);return f!=null&&f.active&&n.node.classList.add(f.active),f!=null&&f.dragOverlay&&i.node.classList.add(f.dragOverlay),function(){for(const[h,c]of Object.entries(a))n.node.style.setProperty(h,c);f!=null&&f.active&&n.node.classList.remove(f.active)}},Jr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Lt.Transform.toString(t)},{transform:Lt.Transform.toString(n)}]},sideEffects:Yi({styles:{active:{opacity:"0"}}})};function Ji(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return Bn((l,f)=>{if(t===null)return;const h=n.get(l);if(!h)return;const c=h.node.current;if(!c)return;const C=Gr(f);if(!C)return;const{transform:k}=Ct(f).getComputedStyle(f),y=Lr(k);if(!y)return;const p=typeof t=="function"?t:(function(M){const{duration:T,easing:z,sideEffects:D,keyframes:Z}={...Jr,...M};return K=>{let{active:w,dragOverlay:N,transform:v,...I}=K;if(!T)return;const q={x:N.rect.left-w.rect.left,y:N.rect.top-w.rect.top},X={scaleX:v.scaleX!==1?w.rect.width*v.scaleX/N.rect.width:1,scaleY:v.scaleY!==1?w.rect.height*v.scaleY/N.rect.height:1},E={x:v.x-q.x,y:v.y-q.y,...X},j=Z({...I,active:w,dragOverlay:N,transform:{initial:v,final:E}}),[$]=j,ve=j[j.length-1];if(JSON.stringify($)===JSON.stringify(ve))return;const Y=D?.({active:w,dragOverlay:N,...I}),_=N.node.animate(j,{duration:T,easing:z,fill:"forwards"});return new Promise(A=>{_.onfinish=()=>{Y?.(),A()}})}})(t);return Vr(c,a.draggable.measure),p({active:{id:l,data:h.data,node:c,rect:a.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:f,rect:a.dragOverlay.measure(C)},droppableContainers:i,measuringConfiguration:a,transform:y})})}let lr=0;function Qi(e){return o.useMemo(()=>{if(e!=null)return lr++,lr},[e])}const ea=o.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:l,modifiers:f,wrapperElement:h="div",className:c,zIndex:C=999}=e;const{activatorEvent:k,active:y,activeNodeRect:p,containerNodeRect:M,draggableNodes:T,droppableContainers:z,dragOverlay:D,over:Z,measuringConfiguration:K,scrollableAncestors:w,scrollableAncestorRects:N,windowRect:v}=Yr(),I=o.useContext(Vn),q=Qi(y?.id),X=Xr(f,{activatorEvent:k,active:y,activeNodeRect:p,containerNodeRect:M,draggingNodeRect:D.rect,over:Z,overlayNodeRect:D.rect,scrollableAncestors:w,scrollableAncestorRects:N,transform:I,windowRect:v}),E=po(p),j=Ji({config:i,draggableNodes:T,droppableContainers:z,measuringConfiguration:K}),$=E?D.setRef:void 0;return o.createElement(Gi,null,o.createElement($i,{animation:j},y&&q?o.createElement(Xi,{key:q,id:y.id,ref:$,as:h,activatorEvent:k,adjustScale:t,className:c,transition:l,rect:E,style:{zIndex:C,...a},transform:X},n):null))});function ko(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function ta(e,t){return e.reduce((n,i,a)=>{const l=t.get(i);return l&&(n[a]=l),n},Array(e.length))}function Rn(e){return e!==null&&e>=0}const kn={scaleX:1,scaleY:1},na=e=>{var t;let{rects:n,activeNodeRect:i,activeIndex:a,overIndex:l,index:f}=e;const h=(t=n[a])!=null?t:i;if(!h)return null;const c=(function(C,k,y){const p=C[k],M=C[k-1],T=C[k+1];return!p||!M&&!T?0:y<k?M?p.left-(M.left+M.width):T.left-(p.left+p.width):T?T.left-(p.left+p.width):p.left-(M.left+M.width)})(n,f,a);if(f===a){const C=n[l];return C?{x:a<l?C.left+C.width-(h.left+h.width):C.left-h.left,y:0,...kn}:null}return f>a&&f<=l?{x:-h.width-c,y:0,...kn}:f<a&&f>=l?{x:h.width+c,y:0,...kn}:{x:0,y:0,...kn}},Mo=e=>{let{rects:t,activeIndex:n,overIndex:i,index:a}=e;const l=ko(t,i,n),f=t[a],h=l[a];return h&&f?{x:h.left-f.left,y:h.top-f.top,scaleX:h.width/f.width,scaleY:h.height/f.height}:null},Qr="Sortable",el=o.createContext({activeIndex:-1,containerId:Qr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Mo,disabled:{draggable:!1,droppable:!1}});function oa(e){let{children:t,id:n,items:i,strategy:a=Mo,disabled:l=!1}=e;const{active:f,dragOverlay:h,droppableRects:c,over:C,measureDroppableContainers:k}=Yr(),y=hn(Qr,n),p=h.rect!==null,M=o.useMemo(()=>i.map(I=>typeof I=="object"&&"id"in I?I.id:I),[i]),T=f!=null,z=f?M.indexOf(f.id):-1,D=C?M.indexOf(C.id):-1,Z=o.useRef(M),K=!(function(I,q){if(I===q)return!0;if(I.length!==q.length)return!1;for(let X=0;X<I.length;X++)if(I[X]!==q[X])return!1;return!0})(M,Z.current),w=D!==-1&&z===-1||K,N=(function(I){return typeof I=="boolean"?{draggable:I,droppable:I}:I})(l);Rt(()=>{K&&T&&k(M)},[K,M,T,k]),o.useEffect(()=>{Z.current=M},[M]);const v=o.useMemo(()=>({activeIndex:z,containerId:y,disabled:N,disableTransforms:w,items:M,overIndex:D,useDragOverlay:p,sortedRects:ta(M,c),strategy:a}),[z,y,N.draggable,N.droppable,w,M,D,c,p,a]);return o.createElement(el.Provider,{value:v},t)}const ra=e=>{let{id:t,items:n,activeIndex:i,overIndex:a}=e;return ko(n,i,a).indexOf(t)},la=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:a,items:l,newIndex:f,previousItems:h,previousContainerId:c,transition:C}=e;return!(!C||!i)&&(h===l||a!==f)&&(!!n||f!==a&&t===c)},ia={duration:200,easing:"ease"},tl="transform",aa=Lt.Transition.toString({property:tl,duration:0,easing:"linear"}),sa={roleDescription:"sortable"};function ca(e){let{animateLayoutChanges:t=la,attributes:n,disabled:i,data:a,getNewIndex:l=ra,id:f,strategy:h,resizeObserverConfig:c,transition:C=ia}=e;const{items:k,containerId:y,activeIndex:p,disabled:M,disableTransforms:T,sortedRects:z,overIndex:D,useDragOverlay:Z,strategy:K}=o.useContext(el),w=(function(W,me){var ue,fe;return typeof W=="boolean"?{draggable:W,droppable:!1}:{draggable:(ue=W?.draggable)!=null?ue:me.draggable,droppable:(fe=W?.droppable)!=null?fe:me.droppable}})(i,M),N=k.indexOf(f),v=o.useMemo(()=>({sortable:{containerId:y,index:N,items:k},...a}),[y,a,N,k]),I=o.useMemo(()=>k.slice(k.indexOf(f)),[k,f]),{rect:q,node:X,isOver:E,setNodeRef:j}=(function(W){let{data:me,disabled:ue=!1,id:fe,resizeObserverConfig:Me}=W;const ae=hn("Droppable"),{active:be,dispatch:g,over:Ne,measureDroppableContainers:Be}=o.useContext(mn),Te=o.useRef({disabled:ue}),u=o.useRef(!1),L=o.useRef(null),U=o.useRef(null),{disabled:m,updateMeasurementsFor:F,timeout:G}={...Ki,...Me},te=cn(F??fe),le=Nn({callback:o.useCallback(()=>{u.current?(U.current!=null&&clearTimeout(U.current),U.current=setTimeout(()=>{Be(Array.isArray(te.current)?te.current:[te.current]),U.current=null},G)):u.current=!0},[G]),disabled:m||!be}),b=o.useCallback((ce,se)=>{le&&(se&&(le.unobserve(se),u.current=!1),ce&&le.observe(ce))},[le]),[B,R]=Fn(b),P=cn(me);return o.useEffect(()=>{le&&B.current&&(le.disconnect(),u.current=!1,le.observe(B.current))},[B,le]),o.useEffect(()=>(g({type:ht.RegisterDroppable,element:{id:fe,key:ae,disabled:ue,node:B,rect:L,data:P}}),()=>g({type:ht.UnregisterDroppable,key:ae,id:fe})),[fe]),o.useEffect(()=>{ue!==Te.current.disabled&&(g({type:ht.SetDroppableDisabled,id:fe,key:ae,disabled:ue}),Te.current.disabled=ue)},[fe,ae,ue,g]),{active:be,rect:L,isOver:Ne?.id===fe,node:B,over:Ne,setNodeRef:R}})({id:f,data:v,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...c}}),{active:$,activatorEvent:ve,activeNodeRect:Y,attributes:_,setNodeRef:A,listeners:J,isDragging:x,over:S,setActivatorNodeRef:oe,transform:ie}=Ui({id:f,data:v,attributes:{...sa,...n},disabled:w.draggable}),qe=(function(){for(var W=arguments.length,me=new Array(W),ue=0;ue<W;ue++)me[ue]=arguments[ue];return o.useMemo(()=>fe=>{me.forEach(Me=>Me(fe))},me)})(j,A),de=!!$,Pe=de&&!T&&Rn(p)&&Rn(D),je=!Z&&x,De=je&&Pe?ie:null,Ie=Pe?De??(h??K)({rects:z,activeNodeRect:Y,activeIndex:p,overIndex:D,index:N}):null,ke=Rn(p)&&Rn(D)?l({id:f,items:k,activeIndex:p,overIndex:D}):N,ge=$?.id,O=o.useRef({activeId:ge,items:k,newIndex:ke,containerId:y}),Fe=k!==O.current.items,ze=t({active:$,containerId:y,isDragging:x,isSorting:de,id:f,index:N,items:k,newIndex:O.current.newIndex,previousItems:O.current.items,previousContainerId:O.current.containerId,transition:C,wasDragging:O.current.activeId!=null}),H=(function(W){let{disabled:me,index:ue,node:fe,rect:Me}=W;const[ae,be]=o.useState(null),g=o.useRef(ue);return Rt(()=>{if(!me&&ue!==g.current&&fe.current){const Ne=Me.current;if(Ne){const Be=Xt(fe.current,{ignoreTransform:!0}),Te={x:Ne.left-Be.left,y:Ne.top-Be.top,scaleX:Ne.width/Be.width,scaleY:Ne.height/Be.height};(Te.x||Te.y)&&be(Te)}}ue!==g.current&&(g.current=ue)},[me,ue,fe,Me]),o.useEffect(()=>{ae&&be(null)},[ae]),ae})({disabled:!ze,index:N,node:X,rect:q});return o.useEffect(()=>{de&&O.current.newIndex!==ke&&(O.current.newIndex=ke),y!==O.current.containerId&&(O.current.containerId=y),k!==O.current.items&&(O.current.items=k)},[de,ke,y,k]),o.useEffect(()=>{if(ge===O.current.activeId)return;if(ge!=null&&O.current.activeId==null)return void(O.current.activeId=ge);const W=setTimeout(()=>{O.current.activeId=ge},50);return()=>clearTimeout(W)},[ge]),{active:$,activeIndex:p,attributes:_,data:v,rect:q,index:N,newIndex:ke,items:k,isOver:E,isSorting:de,isDragging:x,listeners:J,node:X,overIndex:D,over:S,setNodeRef:qe,setActivatorNodeRef:oe,setDroppableNodeRef:j,setDraggableNodeRef:A,transform:H??Ie,transition:(function(){if(H||Fe&&O.current.newIndex===N)return aa;if(!(je&&!On(ve)||!C)&&(de||ze))return Lt.Transition.toString({...C,property:tl})})()}}function Pn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const da=[Ye.Down,Ye.Right,Ye.Up,Ye.Left],ua=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:a,droppableContainers:l,over:f,scrollableAncestors:h}}=t;if(da.includes(e.code)){if(e.preventDefault(),!n||!i)return;const c=[];l.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const p=a.get(y.id);if(p)switch(e.code){case Ye.Down:i.top<p.top&&c.push(y);break;case Ye.Up:i.top>p.top&&c.push(y);break;case Ye.Left:i.left>p.left&&c.push(y);break;case Ye.Right:i.left<p.left&&c.push(y)}});const C=(y=>{let{collisionRect:p,droppableRects:M,droppableContainers:T}=y;const z=$o(p),D=[];for(const Z of T){const{id:K}=Z,w=M.get(K);if(w){const N=$o(w),v=z.reduce((q,X,E)=>q+Ar(N[E],X),0),I=Number((v/4).toFixed(4));D.push({id:K,data:{droppableContainer:Z,value:I}})}}return D.sort(Dr)})({collisionRect:i,droppableRects:a,droppableContainers:c});let k=zr(C,"id");if(k===f?.id&&C.length>1&&(k=C[1].id),k!=null){const y=l.get(n.id),p=l.get(k),M=p?a.get(p.id):null,T=p?.node.current;if(T&&M&&y&&p){const z=Hn(T).some((N,v)=>h[v]!==N),D=ir(y,p),Z=(function(N,v){return!Pn(N)||!Pn(v)||!ir(N,v)?!1:N.data.current.sortable.index<v.data.current.sortable.index})(y,p),K=z||!D?{x:0,y:0}:{x:Z?i.width-M.width:0,y:Z?i.height-M.height:0},w={x:M.left,y:M.top};return K.x&&K.y?w:dn(w,K)}}}};function ir(e,t){return!(!Pn(e)||!Pn(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const ga=e=>{let{transform:t}=e;return{...t,y:0}},nl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,index:l,editing:f,editable:h,selectedIndex:c,background:C,activeColor:k,borderColor:y,borderWidth:p,dragging:M,...T}=e;return s.jsxs("div",{ref:t,className:ct(a),style:{...i,display:"flex",flexDirection:"column",background:c===l?"white":C,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===l?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...T,children:[s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[s.jsx("div",{style:{marginLeft:c===l?"0px":"-1px",marginTop:c===l?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===l?s.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):s.jsx(s.Fragment,{})]}),s.jsx("div",{style:{flex:"1 1 100%",background:c===l&&k?k?.toCSS():"none",minHeight:"2px"}})]})})),St={Wrapper:"_Wrapper_1wyun_25",fadeIn:"_fadeIn_1wyun_33",dragOverlay:"_dragOverlay_1wyun_37",Item:"_Item_1wyun_47",withHandle:"_withHandle_1wyun_61",dragging:"_dragging_1wyun_66",disabled:"_disabled_1wyun_74"},ol=o.memo(o.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:i,fadeIn:a,handle:l,height:f,index:h,listeners:c,onRemove:C,renderItem:k,sorting:y,style:p,transition:M,transform:T,value:z,wrapperStyle:D,...Z},K)=>{o.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=k?k({dragOverlay:!!t,dragging:!!n,sorting:!!y,index:h,fadeIn:!!a,listeners:c,ref:K,style:p,transform:T,transition:M,value:z}):s.jsx(s.Fragment,{children:z});return s.jsx("div",{className:ct("tab-item",St.Wrapper,a&&St.fadeIn,y&&St.sorting,t&&St.dragOverlay),style:{...D,transition:[M,D?.transition].filter(Boolean).join(", "),"--translate-x":T?`${Math.round(T.x)}px`:void 0,"--translate-y":T?`${Math.round(T.y)}px`:void 0,"--scale-x":T?.scaleX?`${T.scaleX}`:void 0,"--scale-y":T?.scaleY?`${T.scaleY}`:void 0,"--index":h},ref:K,children:s.jsx("div",{className:ct(St.Item,n&&St.dragging,l&&St.withHandle,t&&St.dragOverlay,i&&St.disabled,e&&St.color,"dragging"),style:p,"data-cypress":"draggable-item",...l?void 0:c,...Z,tabIndex:l?void 0:-1,children:w})})})),ar={Row:"_Row_1kr10_1"},ha=o.memo(o.forwardRef(({children:e,horizontal:t,style:n},i)=>s.jsx("div",{ref:i,style:{...n},className:ct(ar.Row,t&&ar.horizontal),children:e}))),ma={...Jr},fa=o.memo(o.forwardRef((e,t)=>{const{className:n,activationConstraint:i,animateLayoutChanges:a,adjustScale:l=!1,collisionDetection:f=Ci,coordinateGetter:h=ua,dropAnimation:c=ma,getItemStyles:C=()=>({}),getNewIndex:k,handle:y=!1,items:p,onMove:M,isDisabled:T=()=>!1,measuring:z,modifiers:D,renderItem:Z,renderDivider:K,reorderItems:w=ko,strategy:N=Mo,style:v,useDragOverlay:I=!0,onDragStart:q,wrapperStyle:X=()=>({})}=e,[E,j]=o.useState(()=>p);o.useEffect(()=>{j(p)},[p]);const[$,ve]=o.useState(null),Y=(function(){for(var S=arguments.length,oe=new Array(S),ie=0;ie<S;ie++)oe[ie]=arguments[ie];return o.useMemo(()=>[...oe].filter(qe=>qe!=null),[...oe])})(io($r,{activationConstraint:i}),io(Wr,{activationConstraint:i}),io(So,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:h})),_=E.indexOf.bind(E),A=$?_($):-1,J=[];E.map((S,oe)=>{J.push(s.jsx(pa,{id:S,handle:y,index:oe,style:C,wrapperStyle:X,disabled:T(S),renderItem:Z,animateLayoutChanges:a,useDragOverlay:I,getNewIndex:k},S+"-"+oe));const ie=K?.({key:"divider-"+oe});ie&&J.push(ie)});const{getPortalContainer:x}=r.useFullscreenPortal();return s.jsxs(Hi,{sensors:Y,collisionDetection:f,onDragStart:S=>{const{active:oe}=S;oe&&(q?.(S),ve(oe.id))},autoScroll:{canScroll:S=>!0},onDragEnd:S=>{if(ve(null),S.over){const oe=_(S.over.id);A!==oe&&(j(ie=>w(ie,A,oe)),M?.(A,oe))}},onDragCancel:()=>{ve(null)},measuring:z,modifiers:D,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...v},className:ct(n,St.Wrapper),children:s.jsx(oa,{items:E,strategy:N,children:s.jsx(ha,{ref:t,children:J})})}),I?Kt.createPortal(s.jsx(ea,{adjustScale:l,dropAnimation:c,children:$?s.jsx(ol,{value:E[A],handle:y,renderItem:Z,wrapperStyle:X({index:A,isDragging:!0,id:E[A]}),index:A,dragging:!0,style:C({id:E[A],index:A,isSorting:$!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),x()):null]})}));function pa({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:i,id:a,index:l,onRemove:f,style:h,renderItem:c,useDragOverlay:C,wrapperStyle:k}){const{attributes:y,isDragging:p,isSorting:M,listeners:T,overIndex:z,setNodeRef:D,transform:Z,transition:K}=ca({id:a,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(ol,{ref:D,value:a,disabled:e,dragging:p,sorting:M,handle:i,renderItem:c,index:l,style:h({index:l,id:a,isDragging:p,isSorting:M,overIndex:z}),onRemove:f?()=>f(a):void 0,transform:Z,transition:K,wrapperStyle:k({index:l,isDragging:p,id:a}),listeners:T,"data-index":l,"data-id":a,dragOverlay:!C&&p,...y})}const va="_TabStrip_3x0dp_1",Ca=new d.Color("rgb(33, 115, 70)"),ya="#eee",wa=e=>s.jsx(nl,{...e}),rl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,selectedTabIndex:l=0,tabNames:f=[],onSelectedTabIndexChange:h,onTabNameChange:c,onTabMove:C,renderScrollButtonStart:k=r.defaultCreateScrollStartButton,renderScrollButtonEnd:y=r.defaultCreateScrollEndButton,renderScrollButtonEdge:p=r.defaultCreateScrollEdgeButton,renderTabButton:M=wa,renderTabDivider:T,propsEditLabel:z,disabled:D=!1,disableDrag:Z=!1,background:K="white",activeColor:w=Ca,borderColor:N=ya,borderWidth:v=1}=e,[I,q]=o.useState(l),[X,E]=o.useState(f),j=o.useCallback(ae=>{const be=x.current?.[ae]?.closest(".tab-item")??x.current?.[ae];be&&je.current?.scrollTo({top:be.offsetTop,left:be.offsetLeft,behavior:"smooth"})},[]);o.useEffect(()=>{j(l)},[l]);const $=o.useCallback((ae,be)=>{be!==I&&(q(be),h?.(be)),j(be)},[h,I]),ve=o.useCallback((ae,be)=>{C?.(ae,be)},[C]),Y=o.useRef(null),[_,A]=o.useState(-1),J=o.useCallback((ae,be)=>{c?.(ae,be)},[c]);o.useLayoutEffect(()=>{q(l)},[l]),o.useLayoutEffect(()=>{E(f)},[f]);const x=o.useRef([]),S=o.useRef(null);o.useImperativeHandle(t,()=>Object.assign({startEdit(ae){x.current?.[ae]?.startEdit()},cancel(ae){x.current?.[ae]?.cancel()}},S.current),[I,_]);const oe=o.useCallback(({value:ae,index:be,dragging:g})=>{const{style:Ne,maxLength:Be,...Te}=z||{},u=s.jsx(Tr,{ref:L=>{x.current[be]=L},value:ae,disabled:D,maxLength:Be,style:{color:I===be&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...Ne},styleHover:{},onSubmit:L=>(Y.current=!1,A(-1),J(be,L)),onCancel:()=>{Y.current=!1,A(-1)},onChange:L=>{Y.current=!0,A(be)},...Te});return M({onClick:L=>$(L,be),value:ae,index:be,editing:_===be&&Y.current,editable:!0,disabled:D,selectedIndex:I,background:K,activeColor:w,borderColor:N,borderWidth:v,dragging:g,children:u})},[I,J,$,z,D,_,M]),[ie,{width:qe}]=Wt(),[de,{width:Pe}]=Wt(),je=o.useRef(null),[De,Ie]=o.useState({left:0,top:0,width:0,height:0}),[ke,ge]=o.useState(null);o.useEffect(()=>{ke!==null&&je.current&&je.current.scrollTo({left:ke,behavior:"smooth"})},[ke]);const O=o.useCallback((ae,be=!1)=>{if(!je.current)return 0;let g=je.current.firstChild.getBoundingClientRect(),Ne=je.current.firstChild.firstChild.children,Be=0;return Be=be?0:r.ScrollUtils.getScrollTo(ae,g.left,Ne,!0,Math.max(0,ae-200)),ge(Be),Math.max(0,Be)},[]),Fe=o.useCallback((ae,be=!1)=>{if(!je.current)return 0;let g=je.current.firstChild.getBoundingClientRect(),Ne=je.current.firstChild.firstChild.children,Be=0;const Te=Math.ceil(Pe-qe);return Be=be?Te:r.ScrollUtils.getScrollTo(ae,g.left,Ne,!1,Math.max(0,ae+200)),ge(Be),Math.min(Te,Be)},[Pe,qe]),ze=o.useRef(null),H=o.useRef(null),W=o.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=null,ze.current=null)},[]),me=o.useCallback((ae,be,g=260)=>{ze.current=ae,H.current=setTimeout(()=>{const Ne=be?O(ze.current||ae):Fe(ze.current||ae);Ne!==ze.current?me(Ne,be,120):W()},g)},[O,Fe,W]);o.useEffect(()=>()=>W(),[W]);const ue=o.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(De.left)<=0||Math.floor(Pe-qe)===0,orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:W,onMouseLeave:W,onMouseDown:()=>me(je.current.scrollLeft,!0),onClick:ae=>O(Math.min(je.current.scrollLeft,ke??Number.MAX_SAFE_INTEGER),ae.ctrlKey)}),[De,ke,Pe,qe]),fe=o.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(Pe-qe)<=Math.ceil(De.left),orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:W,onMouseLeave:W,onMouseDown:()=>me(je.current.scrollLeft,!1),onClick:ae=>Fe(Math.max(je.current.scrollLeft,ke??0),ae.ctrlKey)}),[De,ke,Pe,qe]),Me=o.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,p?.(ue)]}),[ue,fe,k,y,n,p]);return s.jsxs("div",{style:{...i,display:"flex",alignItems:"stretch"},className:ct(va,a),ref:S,children:[s.jsx("div",{style:{borderTop:`solid ${N} ${v}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Me}),s.jsx("div",{className:"Tabs",ref:ie,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:s.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:je,onScroll:ae=>{Ie({left:ae.target.scrollLeft,top:ae.target.scrollTop,width:ae.target.scrollWidth,height:ae.target.scrollHeight})},children:s.jsx(fa,{isDisabled:ae=>D||Z,items:X,strategy:na,modifiers:[ga],ref:de,renderItem:oe,renderDivider:T,onMove:ve,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:p(fe)})]})}));rl.displayName="TabStrip";const Tn=o.createContext(null);Tn.displayName="DocThemesContext";const ba="_script-editor_iy654_5",xa={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},qa=o.lazy(()=>Promise.resolve().then(()=>require("./B74ExJOGY_2WF_Nk.cjs")));let nn,on,Et=["define","require"],sr=!1,In="@0.7.23";In!=="@local"&&In!=="@0.0.0"||(In="");const Sa=`https://cdn.jsdelivr.net/npm/@sheetxl/sdk${In}/types/scripting.d.ts`,cr=async(e,t,n)=>{const i=e.getModel();if(!i)return;const a=await t.languages.typescript.getTypeScriptWorker(),l=await a(i.uri),f=await l.getNavigationTree(i.uri.toString()),h=e.getPosition();let c={...h};c.lineNumber=1,c.column=1;let C=!1;for(let z=h.lineNumber;z>=1;z--)if(i.getLineContent(z).trim()===""){const D=To(f,i.getOffsetAt({lineNumber:z,column:1}),"function");if(!D||ka(D)){C=!0,c.lineNumber=z+1;break}{const Z=D.spans[0].start;z=i.getPositionAt(Z).lineNumber,c.lineNumber=z}}let k=n,y=!1;!C&&!k.startsWith(`
|
|
27
|
+
`},mi={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function fi(e){let{announcements:t=mi,container:n,hiddenTextDescribedById:i,screenReaderInstructions:a=hi}=e;const{announce:l,announcement:f}=(function(){const[y,p]=o.useState("");return{announce:o.useCallback(M=>{M!=null&&p(M)},[]),announcement:y}})(),h=hn("DndLiveRegion"),[c,C]=o.useState(!1);if(o.useEffect(()=>{C(!0)},[]),(function(y){const p=o.useContext(Fr);o.useEffect(()=>{if(!p)throw new Error("useDndMonitor must be used within a children of <DndContext>");return p(y)},[y,p])})(o.useMemo(()=>({onDragStart(y){let{active:p}=y;l(t.onDragStart({active:p}))},onDragMove(y){let{active:p,over:M}=y;t.onDragMove&&l(t.onDragMove({active:p,over:M}))},onDragOver(y){let{active:p,over:M}=y;l(t.onDragOver({active:p,over:M}))},onDragEnd(y){let{active:p,over:M}=y;l(t.onDragEnd({active:p,over:M}))},onDragCancel(y){let{active:p,over:M}=y;l(t.onDragCancel({active:p,over:M}))}}),[l,t])),!c)return null;const k=o.createElement(o.Fragment,null,o.createElement(ui,{id:i,value:a.draggable}),o.createElement(gi,{id:h,announcement:f}));return n?Kt.createPortal(k,n):k}var ht;function zn(){}function io(e,t){return o.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ht||(ht={}));const kt=Object.freeze({x:0,y:0});function Ar(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function pi(e,t){const n=Dn(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Dr(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return n-i}function vi(e,t){let{data:{value:n}}=e,{data:{value:i}}=t;return i-n}function $o(e){let{left:t,top:n,height:i,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+i},{x:t+a,y:n+i}]}function zr(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Wo(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const Ci=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=Wo(t,t.left,t.top),l=[];for(const f of i){const{id:h}=f,c=n.get(h);if(c){const C=Ar(Wo(c),a);l.push({id:h,data:{droppableContainer:f,value:C}})}}return l.sort(Dr)};function yi(e,t){const n=Math.max(t.top,e.top),i=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),f=a-i,h=l-n;if(i<a&&n<l){const c=t.width*t.height,C=e.width*e.height,k=f*h;return Number((k/(c+C-k)).toFixed(4))}return 0}const wi=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:i}=e;const a=[];for(const l of i){const{id:f}=l,h=n.get(f);if(h){const c=yi(h,t);c>0&&a.push({id:f,data:{droppableContainer:l,value:c}})}}return a.sort(vi)};function Go(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:kt}function bi(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return i.reduce((l,f)=>({...l,top:l.top+e*f.y,bottom:l.bottom+e*f.y,left:l.left+e*f.x,right:l.right+e*f.x}),{...t})}}const xi=bi(1);function Lr(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const qi={ignoreTransform:!1};function Xt(e,t){t===void 0&&(t=qi);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:C,transformOrigin:k}=Ct(e).getComputedStyle(e);C&&(n=(function(y,p,M){const T=Lr(p);if(!T)return y;const{scaleX:z,scaleY:D,x:Z,y:K}=T,w=y.left-Z-(1-z)*parseFloat(M),N=y.top-K-(1-D)*parseFloat(M.slice(M.indexOf(" ")+1)),v=z?y.width/z:y.width,I=D?y.height/D:y.height;return{width:v,height:I,top:N,right:w+v,bottom:N+I,left:w}})(n,C,k))}const{top:i,left:a,width:l,height:f,bottom:h,right:c}=n;return{top:i,left:a,width:l,height:f,bottom:h,right:c}}function _o(e){return Xt(e,{ignoreTransform:!0})}function Hn(e,t){const n=[];return e?(function i(a){if(t!=null&&n.length>=t||!a)return n;if(qo(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!gn(a)||Ir(a)||n.includes(a))return n;const l=Ct(e).getComputedStyle(a);return a!==e&&(function(f,h){h===void 0&&(h=Ct(f).getComputedStyle(f));const c=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(C=>{const k=h[C];return typeof k=="string"&&c.test(k)})})(a,l)&&n.push(a),(function(f,h){return h===void 0&&(h=Ct(f).getComputedStyle(f)),h.position==="fixed"})(a,l)?n:i(a.parentNode)})(e):n}function Nr(e){const[t]=Hn(e,1);return t??null}function ao(e){return jn&&e?Zt(e)?e:xo(e)?qo(e)||e===_t(e).scrollingElement?window:gn(e)?e:null:null:null}function Pr(e){return Zt(e)?e.scrollX:e.scrollLeft}function jr(e){return Zt(e)?e.scrollY:e.scrollTop}function go(e){return{x:Pr(e),y:jr(e)}}var mt;function Br(e){return!(!jn||!e)&&e===document.scrollingElement}function Or(e){const t={x:0,y:0},n=Br(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=i.y,isRight:e.scrollLeft>=i.x,maxScroll:i,minScroll:t}}(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mt||(mt={}));const Si={x:.2,y:.2};function Ri(e,t,n,i,a){let{top:l,left:f,right:h,bottom:c}=n;i===void 0&&(i=10),a===void 0&&(a=Si);const{isTop:C,isBottom:k,isLeft:y,isRight:p}=Or(e),M={x:0,y:0},T={x:0,y:0},z=t.height*a.y,D=t.width*a.x;return!C&&l<=t.top+z?(M.y=mt.Backward,T.y=i*Math.abs((t.top+z-l)/z)):!k&&c>=t.bottom-z&&(M.y=mt.Forward,T.y=i*Math.abs((t.bottom-z-c)/z)),!p&&h>=t.right-D?(M.x=mt.Forward,T.x=i*Math.abs((t.right-D-h)/D)):!y&&f<=t.left+D&&(M.x=mt.Backward,T.x=i*Math.abs((t.left+D-f)/D)),{direction:M,speed:T}}function ki(e){if(e===document.scrollingElement){const{innerWidth:l,innerHeight:f}=window;return{top:0,left:0,right:l,bottom:f,width:l,height:f}}const{top:t,left:n,right:i,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:i,bottom:a,width:e.clientWidth,height:e.clientHeight}}function Hr(e){return e.reduce((t,n)=>$t(t,go(n)),kt)}function Vr(e,t){if(t===void 0&&(t=Xt),!e)return;const{top:n,left:i,bottom:a,right:l}=t(e);Nr(e)&&(a<=0||l<=0||n>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Mi=[["x",["left","right"],function(e){return e.reduce((t,n)=>t+Pr(n),0)}],["y",["top","bottom"],function(e){return e.reduce((t,n)=>t+jr(n),0)}]];class ho{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=Hn(n),a=Hr(i);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,f,h]of Mi)for(const c of f)Object.defineProperty(this,c,{get:()=>{const C=h(i),k=a[l]-C;return this.rect[c]+k},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ln{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...n)})},this.target=t}add(t,n,i){var a;(a=this.target)==null||a.addEventListener(t,n,i),this.listeners.push([t,n,i])}}function so(e,t){const n=Math.abs(e.x),i=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+i**2)>t:"x"in t&&"y"in t?n>t.x&&i>t.y:"x"in t?n>t.x:"y"in t&&i>t.y}var qt,Ye;function Zo(e){e.preventDefault()}function Ti(e){e.stopPropagation()}(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(qt||(qt={})),(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Ye||(Ye={}));const Ur={start:[Ye.Space,Ye.Enter],cancel:[Ye.Esc],end:[Ye.Space,Ye.Enter,Ye.Tab]},Ii=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Ye.Right:return{...n,x:n.x+25};case Ye.Left:return{...n,x:n.x-25};case Ye.Down:return{...n,y:n.y+25};case Ye.Up:return{...n,y:n.y-25}}};class So{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ln(_t(n)),this.windowListeners=new ln(Ct(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(qt.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,i=t.node.current;i&&Vr(i),n(kt)}handleKeyDown(t){if(On(t)){const{active:n,context:i,options:a}=this.props,{keyboardCodes:l=Ur,coordinateGetter:f=Ii,scrollBehavior:h="smooth"}=a,{code:c}=t;if(l.end.includes(c))return void this.handleEnd(t);if(l.cancel.includes(c))return void this.handleCancel(t);const{collisionRect:C}=i.current,k=C?{x:C.left,y:C.top}:kt;this.referenceCoordinates||(this.referenceCoordinates=k);const y=f(t,{active:n,context:i.current,currentCoordinates:k});if(y){const p=dn(y,k),M={x:0,y:0},{scrollableAncestors:T}=i.current;for(const z of T){const D=t.code,{isTop:Z,isRight:K,isLeft:w,isBottom:N,maxScroll:v,minScroll:I}=Or(z),q=ki(z),X={x:Math.min(D===Ye.Right?q.right-q.width/2:q.right,Math.max(D===Ye.Right?q.left:q.left+q.width/2,y.x)),y:Math.min(D===Ye.Down?q.bottom-q.height/2:q.bottom,Math.max(D===Ye.Down?q.top:q.top+q.height/2,y.y))},E=D===Ye.Right&&!K||D===Ye.Left&&!w,j=D===Ye.Down&&!N||D===Ye.Up&&!Z;if(E&&X.x!==y.x){const $=z.scrollLeft+p.x,ve=D===Ye.Right&&$<=v.x||D===Ye.Left&&$>=I.x;if(ve&&!p.y)return void z.scrollTo({left:$,behavior:h});M.x=ve?z.scrollLeft-$:D===Ye.Right?z.scrollLeft-v.x:z.scrollLeft-I.x,M.x&&z.scrollBy({left:-M.x,behavior:h});break}if(j&&X.y!==y.y){const $=z.scrollTop+p.y,ve=D===Ye.Down&&$<=v.y||D===Ye.Up&&$>=I.y;if(ve&&!p.x)return void z.scrollTo({top:$,behavior:h});M.y=ve?z.scrollTop-$:D===Ye.Down?z.scrollTop-v.y:z.scrollTop-I.y,M.y&&z.scrollBy({top:-M.y,behavior:h});break}}this.handleMove(t,$t(dn(y,this.referenceCoordinates),M))}}}handleMove(t,n){const{onMove:i}=this.props;t.preventDefault(),i(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Xo(e){return!!(e&&"distance"in e)}function Yo(e){return!!(e&&"delay"in e)}So.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:i=Ur,onActivation:a}=t,{active:l}=n;const{code:f}=e.nativeEvent;if(i.start.includes(f)){const h=l.activatorNode.current;return(!h||e.target===h)&&(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];class Ro{constructor(t,n,i){var a;i===void 0&&(i=(function(h){const{EventTarget:c}=Ct(h);return h instanceof c?h:_t(h)})(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:f}=l;this.props=t,this.events=n,this.document=_t(f),this.documentListeners=new ln(this.document),this.listeners=new ln(i),this.windowListeners=new ln(Ct(f)),this.initialCoordinates=(a=Dn(l))!=null?a:kt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:i}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(qt.Resize,this.handleCancel),this.windowListeners.add(qt.DragStart,Zo),this.windowListeners.add(qt.VisibilityChange,this.handleCancel),this.windowListeners.add(qt.ContextMenu,Zo),this.documentListeners.add(qt.Keydown,this.handleKeydown),n){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Yo(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Xo(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:i,onPending:a}=this.props;a(i,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(qt.Click,Ti,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(qt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:i,initialCoordinates:a,props:l}=this,{onMove:f,options:{activationConstraint:h}}=l;if(!a)return;const c=(n=Dn(t))!=null?n:kt,C=dn(a,c);if(!i&&h){if(Xo(h)){if(h.tolerance!=null&&so(C,h.tolerance))return this.handleCancel();if(so(C,h.distance))return this.handleStart()}return Yo(h)&&so(C,h.tolerance)?this.handleCancel():void this.handlePending(h,C)}t.cancelable&&t.preventDefault(),f(c)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Ye.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const Ei={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Kr extends Ro{constructor(t){const{event:n}=t,i=_t(n.target);super(t,Ei,i)}}Kr.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return!(!n.isPrimary||n.button!==0)&&(i?.({event:n}),!0)}}];const Fi={move:{name:"mousemove"},end:{name:"mouseup"}};var mo;(function(e){e[e.RightClick=2]="RightClick"})(mo||(mo={}));class $r extends Ro{constructor(t){super(t,Fi,_t(t.event.target))}}$r.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;return n.button!==mo.RightClick&&(i?.({event:n}),!0)}}];const co={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class Wr extends Ro{constructor(t){super(t,co)}static setup(){return window.addEventListener(co.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(co.move.name,t)};function t(){}}}var an,Ln;function Ai(e){let{acceleration:t,activator:n=an.Pointer,canScroll:i,draggingRect:a,enabled:l,interval:f=5,order:h=Ln.TreeOrder,pointerCoordinates:c,scrollableAncestors:C,scrollableAncestorRects:k,delta:y,threshold:p}=e;const M=(function(I){let{delta:q,disabled:X}=I;const E=An(q);return rn(j=>{if(X||!E||!j)return Di;const $={x:Math.sign(q.x-E.x),y:Math.sign(q.y-E.y)};return{x:{[mt.Backward]:j.x[mt.Backward]||$.x===-1,[mt.Forward]:j.x[mt.Forward]||$.x===1},y:{[mt.Backward]:j.y[mt.Backward]||$.y===-1,[mt.Forward]:j.y[mt.Forward]||$.y===1}}},[X,q,E])})({delta:y,disabled:!l}),[T,z]=(function(){const I=o.useRef(null);return[o.useCallback((q,X)=>{I.current=setInterval(q,X)},[]),o.useCallback(()=>{I.current!==null&&(clearInterval(I.current),I.current=null)},[])]})(),D=o.useRef({x:0,y:0}),Z=o.useRef({x:0,y:0}),K=o.useMemo(()=>{switch(n){case an.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case an.DraggableRect:return a}},[n,a,c]),w=o.useRef(null),N=o.useCallback(()=>{const I=w.current;if(!I)return;const q=D.current.x*Z.current.x,X=D.current.y*Z.current.y;I.scrollBy(q,X)},[]),v=o.useMemo(()=>h===Ln.TreeOrder?[...C].reverse():C,[h,C]);o.useEffect(()=>{if(l&&C.length&&K){for(const I of v){if(i?.(I)===!1)continue;const q=C.indexOf(I),X=k[q];if(!X)continue;const{direction:E,speed:j}=Ri(I,X,K,t,p);for(const $ of["x","y"])M[$][E[$]]||(j[$]=0,E[$]=0);if(j.x>0||j.y>0)return z(),w.current=I,T(N,f),D.current=j,void(Z.current=E)}D.current={x:0,y:0},Z.current={x:0,y:0},z()}else z()},[t,N,i,z,l,f,JSON.stringify(K),JSON.stringify(M),T,C,v,k,JSON.stringify(p)])}Wr.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:i}=t;const{touches:a}=n;return!(a.length>1)&&(i?.({event:n}),!0)}}],(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(an||(an={})),(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ln||(Ln={}));const Di={x:{[mt.Backward]:!1,[mt.Forward]:!1},y:{[mt.Backward]:!1,[mt.Forward]:!1}};var un,fo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(un||(un={})),(function(e){e.Optimized="optimized"})(fo||(fo={}));const Jo=new Map;function po(e,t){return rn(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Nn(e){let{callback:t,disabled:n}=e;const i=Bn(t),a=o.useMemo(()=>{if(n||typeof window>"u"||window.ResizeObserver===void 0)return;const{ResizeObserver:l}=window;return new l(i)},[n]);return o.useEffect(()=>()=>a?.disconnect(),[a]),a}function zi(e){return new ho(Xt(e),e)}function Qo(e,t,n){t===void 0&&(t=zi);const[i,a]=o.useState(null);function l(){a(c=>{if(!e)return null;var C;if(e.isConnected===!1)return(C=c??n)!=null?C:null;const k=t(e);return JSON.stringify(c)===JSON.stringify(k)?c:k})}const f=(function(c){let{callback:C,disabled:k}=c;const y=Bn(C),p=o.useMemo(()=>{if(k||typeof window>"u"||window.MutationObserver===void 0)return;const{MutationObserver:M}=window;return new M(y)},[y,k]);return o.useEffect(()=>()=>p?.disconnect(),[p]),p})({callback(c){if(e)for(const C of c){const{type:k,target:y}=C;if(k==="childList"&&y instanceof HTMLElement&&y.contains(e)){l();break}}}}),h=Nn({callback:l});return Rt(()=>{l(),e?(h?.observe(e),f?.observe(document.body,{childList:!0,subtree:!0})):(h?.disconnect(),f?.disconnect())},[e]),i}const er=[];function tr(e,t){t===void 0&&(t=[]);const n=o.useRef(null);return o.useEffect(()=>{n.current=null},t),o.useEffect(()=>{const i=e!==kt;i&&!n.current&&(n.current=e),!i&&n.current&&(n.current=null)},[e]),n.current?dn(e,n.current):kt}function nr(e){return o.useMemo(()=>e?(function(t){const n=t.innerWidth,i=t.innerHeight;return{top:0,left:0,right:n,bottom:i,width:n,height:i}})(e):null,[e])}const or=[];function Gr(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return gn(t)?t:e}const Li=[{sensor:Kr,options:{}},{sensor:So,options:{}}],Ni={current:{}},Mn={draggable:{measure:_o},droppable:{measure:_o,strategy:un.WhileDragging,frequency:fo.Optimized},dragOverlay:{measure:Xt}};class sn extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,i;return(n=(i=this.get(t))==null?void 0:i.node.current)!=null?n:void 0}}const Pi={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new sn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:zn},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Mn,measureDroppableContainers:zn,windowRect:null,measuringScheduled:!1},_r={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:zn,draggableNodes:new Map,over:null,measureDroppableContainers:zn},mn=o.createContext(_r),Zr=o.createContext(Pi);function ji(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new sn}}}function Bi(e,t){switch(t.type){case ht.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case ht.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case ht.DragEnd:case ht.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ht.RegisterDroppable:{const{element:n}=t,{id:i}=n,a=new sn(e.droppable.containers);return a.set(i,n),{...e,droppable:{...e.droppable,containers:a}}}case ht.SetDroppableDisabled:{const{id:n,key:i,disabled:a}=t,l=e.droppable.containers.get(n);if(!l||i!==l.key)return e;const f=new sn(e.droppable.containers);return f.set(n,{...l,disabled:a}),{...e,droppable:{...e.droppable,containers:f}}}case ht.UnregisterDroppable:{const{id:n,key:i}=t,a=e.droppable.containers.get(n);if(!a||i!==a.key)return e;const l=new sn(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function Oi(e){let{disabled:t}=e;const{active:n,activatorEvent:i,draggableNodes:a}=o.useContext(mn),l=An(i),f=An(n?.id);return o.useEffect(()=>{if(!t&&!i&&l&&f!=null){if(!On(l)||document.activeElement===l.target)return;const h=a.get(f);if(!h)return;const{activatorNode:c,node:C}=h;if(!c.current&&!C.current)return;requestAnimationFrame(()=>{for(const k of[c.current,C.current]){if(!k)continue;const y=ci(k);if(y){y.focus();break}}})}},[i,t,a,f,l]),null}function Xr(e,t){let{transform:n,...i}=t;return e!=null&&e.length?e.reduce((a,l)=>l({transform:a,...i}),n):n}const Vn=o.createContext({...kt,scaleX:1,scaleY:1});var Ft;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ft||(Ft={}));const Hi=o.memo(function(e){var t,n,i,a;let{id:l,accessibility:f,autoScroll:h=!0,children:c,sensors:C=Li,collisionDetection:k=wi,measuring:y,modifiers:p,...M}=e;const T=o.useReducer(Bi,void 0,ji),[z,D]=T,[Z,K]=(function(){const[V]=o.useState(()=>new Set),Q=o.useCallback(re=>(V.add(re),()=>V.delete(re)),[V]);return[o.useCallback(re=>{let{type:Ee,event:Ue}=re;V.forEach(Oe=>{var xe;return(xe=Oe[Ee])==null?void 0:xe.call(Oe,Ue)})},[V]),Q]})(),[w,N]=o.useState(Ft.Uninitialized),v=w===Ft.Initialized,{draggable:{active:I,nodes:q,translate:X},droppable:{containers:E}}=z,j=I!=null?q.get(I):null,$=o.useRef({initial:null,translated:null}),ve=o.useMemo(()=>{var V;return I!=null?{id:I,data:(V=j?.data)!=null?V:Ni,rect:$}:null},[I,j]),Y=o.useRef(null),[_,A]=o.useState(null),[J,x]=o.useState(null),S=cn(M,Object.values(M)),oe=hn("DndDescribedBy",l),ie=o.useMemo(()=>E.getEnabled(),[E]),qe=(de=y,o.useMemo(()=>({draggable:{...Mn.draggable,...de?.draggable},droppable:{...Mn.droppable,...de?.droppable},dragOverlay:{...Mn.dragOverlay,...de?.dragOverlay}}),[de?.draggable,de?.droppable,de?.dragOverlay]));var de;const{droppableRects:Pe,measureDroppableContainers:je,measuringScheduled:De}=(function(V,Q){let{dragging:re,dependencies:Ee,config:Ue}=Q;const[Oe,xe]=o.useState(null),{frequency:He,measure:Ce,strategy:Ae}=Ue,we=o.useRef(V),Se=(function(){switch(Ae){case un.Always:return!1;case un.BeforeDragging:return re;default:return!re}})(),Le=cn(Se),Ze=o.useCallback(function(at){at===void 0&&(at=[]),Le.current||xe(ot=>ot===null?at:ot.concat(at.filter($e=>!ot.includes($e))))},[Le]),_e=o.useRef(null),Xe=rn(at=>{if(Se&&!re)return Jo;if(!at||at===Jo||we.current!==V||Oe!=null){const ot=new Map;for(let $e of V){if(!$e)continue;if(Oe&&Oe.length>0&&!Oe.includes($e.id)&&$e.rect.current){ot.set($e.id,$e.rect.current);continue}const lt=$e.node.current,it=lt?new ho(Ce(lt),lt):null;$e.rect.current=it,it&&ot.set($e.id,it)}return ot}return at},[V,Oe,re,Se,Ce]);return o.useEffect(()=>{we.current=V},[V]),o.useEffect(()=>{Se||Ze()},[re,Se]),o.useEffect(()=>{Oe&&Oe.length>0&&xe(null)},[JSON.stringify(Oe)]),o.useEffect(()=>{Se||typeof He!="number"||_e.current!==null||(_e.current=setTimeout(()=>{Ze(),_e.current=null},He))},[He,Se,Ze,...Ee]),{droppableRects:Xe,measureDroppableContainers:Ze,measuringScheduled:Oe!=null}})(ie,{dragging:v,dependencies:[X.x,X.y],config:qe.droppable}),Ie=(function(V,Q){const re=Q!=null?V.get(Q):void 0,Ee=re?re.node.current:null;return rn(Ue=>{var Oe;return Q==null?null:(Oe=Ee??Ue)!=null?Oe:null},[Ee,Q])})(q,I),ke=o.useMemo(()=>J?Dn(J):null,[J]),ge=(function(){const V=_?.autoScrollEnabled===!1,Q=typeof h=="object"?h.enabled===!1:h===!1,re=v&&!V&&!Q;return typeof h=="object"?{...h,enabled:re}:{enabled:re}})(),O=(function(V,Q){return po(V,Q)})(Ie,qe.draggable.measure);(function(V){let{activeNode:Q,measure:re,initialRect:Ee,config:Ue=!0}=V;const Oe=o.useRef(!1),{x:xe,y:He}=typeof Ue=="boolean"?{x:Ue,y:Ue}:Ue;Rt(()=>{if(!xe&&!He||!Q)return void(Oe.current=!1);if(Oe.current||!Ee)return;const Ce=Q?.node.current;if(!Ce||Ce.isConnected===!1)return;const Ae=Go(re(Ce),Ee);if(xe||(Ae.x=0),He||(Ae.y=0),Oe.current=!0,Math.abs(Ae.x)>0||Math.abs(Ae.y)>0){const we=Nr(Ce);we&&we.scrollBy({top:Ae.y,left:Ae.x})}},[Q,xe,He,Ee,re])})({activeNode:I!=null?q.get(I):null,config:ge.layoutShiftCompensation,initialRect:O,measure:qe.draggable.measure});const Fe=Qo(Ie,qe.draggable.measure,O),ze=Qo(Ie?Ie.parentElement:null),H=o.useRef({activatorEvent:null,active:null,activeNode:Ie,collisionRect:null,collisions:null,droppableRects:Pe,draggableNodes:q,draggingNode:null,draggingNodeRect:null,droppableContainers:E,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),W=E.getNodeFor((t=H.current.over)==null?void 0:t.id),me=(function(V){let{measure:Q}=V;const[re,Ee]=o.useState(null),Ue=Nn({callback:o.useCallback(Ce=>{for(const{target:Ae}of Ce)if(gn(Ae)){Ee(we=>{const Se=Q(Ae);return we?{...we,width:Se.width,height:Se.height}:Se});break}},[Q])}),Oe=o.useCallback(Ce=>{const Ae=Gr(Ce);Ue?.disconnect(),Ae&&Ue?.observe(Ae),Ee(Ae?Q(Ae):null)},[Q,Ue]),[xe,He]=Fn(Oe);return o.useMemo(()=>({nodeRef:xe,rect:re,setRef:He}),[re,xe,He])})({measure:qe.dragOverlay.measure}),ue=(n=me.nodeRef.current)!=null?n:Ie,fe=v?(i=me.rect)!=null?i:Fe:null,Me=!!(me.nodeRef.current&&me.rect),ae=Go(be=Me?null:Fe,po(be));var be;const g=nr(ue?Ct(ue):null),Ne=(function(V){const Q=o.useRef(V),re=rn(Ee=>V?Ee&&Ee!==er&&V&&Q.current&&V.parentNode===Q.current.parentNode?Ee:Hn(V):er,[V]);return o.useEffect(()=>{Q.current=V},[V]),re})(v?W??Ie:null),Be=(function(V,Q){Q===void 0&&(Q=Xt);const[re]=V,Ee=nr(re?Ct(re):null),[Ue,Oe]=o.useState(or);function xe(){Oe(()=>V.length?V.map(Ce=>Br(Ce)?Ee:new ho(Q(Ce),Ce)):or)}const He=Nn({callback:xe});return Rt(()=>{He?.disconnect(),xe(),V.forEach(Ce=>He?.observe(Ce))},[V]),Ue})(Ne),Te=Xr(p,{transform:{x:X.x-ae.x,y:X.y-ae.y,scaleX:1,scaleY:1},activatorEvent:J,active:ve,activeNodeRect:Fe,containerNodeRect:ze,draggingNodeRect:fe,over:H.current.over,overlayNodeRect:me.rect,scrollableAncestors:Ne,scrollableAncestorRects:Be,windowRect:g}),u=ke?$t(ke,X):null,L=(function(V){const[Q,re]=o.useState(null),Ee=o.useRef(V),Ue=o.useCallback(Oe=>{const xe=ao(Oe.target);xe&&re(He=>He?(He.set(xe,go(xe)),new Map(He)):null)},[]);return o.useEffect(()=>{const Oe=Ee.current;if(V!==Oe){xe(Oe);const He=V.map(Ce=>{const Ae=ao(Ce);return Ae?(Ae.addEventListener("scroll",Ue,{passive:!0}),[Ae,go(Ae)]):null}).filter(Ce=>Ce!=null);re(He.length?new Map(He):null),Ee.current=V}return()=>{xe(V),xe(Oe)};function xe(He){He.forEach(Ce=>{const Ae=ao(Ce);Ae?.removeEventListener("scroll",Ue)})}},[Ue,V]),o.useMemo(()=>V.length?Q?Array.from(Q.values()).reduce((Oe,xe)=>$t(Oe,xe),kt):Hr(V):kt,[V,Q])})(Ne),U=tr(L),m=tr(L,[Fe]),F=$t(Te,U),G=fe?xi(fe,Te):null,te=ve&&G?k({active:ve,collisionRect:G,droppableRects:Pe,droppableContainers:ie,pointerCoordinates:u}):null,le=zr(te,"id"),[b,B]=o.useState(null),R=(function(V,Q,re){return{...V,scaleX:Q&&re?Q.width/re.width:1,scaleY:Q&&re?Q.height/re.height:1}})(Me?Te:$t(Te,m),(a=b?.rect)!=null?a:null,Fe),P=o.useRef(null),ce=o.useCallback((V,Q)=>{let{sensor:re,options:Ee}=Q;if(Y.current==null)return;const Ue=q.get(Y.current);if(!Ue)return;const Oe=V.nativeEvent,xe=new re({active:Y.current,activeNode:Ue,event:Oe,options:Ee,context:H,onAbort(Ce){if(!q.get(Ce))return;const{onDragAbort:Ae}=S.current,we={id:Ce};Ae?.(we),Z({type:"onDragAbort",event:we})},onPending(Ce,Ae,we,Se){if(!q.get(Ce))return;const{onDragPending:Le}=S.current,Ze={id:Ce,constraint:Ae,initialCoordinates:we,offset:Se};Le?.(Ze),Z({type:"onDragPending",event:Ze})},onStart(Ce){const Ae=Y.current;if(Ae==null)return;const we=q.get(Ae);if(!we)return;const{onDragStart:Se}=S.current,Le={activatorEvent:Oe,active:{id:Ae,data:we.data,rect:$}};Kt.unstable_batchedUpdates(()=>{Se?.(Le),N(Ft.Initializing),D({type:ht.DragStart,initialCoordinates:Ce,active:Ae}),Z({type:"onDragStart",event:Le}),A(P.current),x(Oe)})},onMove(Ce){D({type:ht.DragMove,coordinates:Ce})},onEnd:He(ht.DragEnd),onCancel:He(ht.DragCancel)});function He(Ce){return async function(){const{active:Ae,collisions:we,over:Se,scrollAdjustedTranslate:Le}=H.current;let Ze=null;if(Ae&&Le){const{cancelDrop:_e}=S.current;Ze={activatorEvent:Oe,active:Ae,collisions:we,delta:Le,over:Se},Ce===ht.DragEnd&&typeof _e=="function"&&await Promise.resolve(_e(Ze))&&(Ce=ht.DragCancel)}Y.current=null,Kt.unstable_batchedUpdates(()=>{D({type:Ce}),N(Ft.Uninitialized),B(null),A(null),x(null),P.current=null;const _e=Ce===ht.DragEnd?"onDragEnd":"onDragCancel";if(Ze){const Xe=S.current[_e];Xe?.(Ze),Z({type:_e,event:Ze})}})}}P.current=xe},[q]),se=o.useCallback((V,Q)=>(re,Ee)=>{const Ue=re.nativeEvent,Oe=q.get(Ee);if(Y.current!==null||!Oe||Ue.dndKit||Ue.defaultPrevented)return;const xe={active:Oe};V(re,Q.options,xe)===!0&&(Ue.dndKit={capturedBy:Q.sensor},Y.current=Ee,ce(re,Q))},[q,ce]),ye=(function(V,Q){return o.useMemo(()=>V.reduce((re,Ee)=>{const{sensor:Ue}=Ee;return[...re,...Ue.activators.map(Oe=>({eventName:Oe.eventName,handler:Q(Oe.handler,Ee)}))]},[]),[V,Q])})(C,se);(function(V){o.useEffect(()=>{if(!jn)return;const Q=V.map(re=>{let{sensor:Ee}=re;return Ee.setup==null?void 0:Ee.setup()});return()=>{for(const re of Q)re?.()}},V.map(Q=>{let{sensor:re}=Q;return re}))})(C),Rt(()=>{Fe&&w===Ft.Initializing&&N(Ft.Initialized)},[Fe,w]),o.useEffect(()=>{const{onDragMove:V}=S.current,{active:Q,activatorEvent:re,collisions:Ee,over:Ue}=H.current;if(!Q||!re)return;const Oe={active:Q,activatorEvent:re,collisions:Ee,delta:{x:F.x,y:F.y},over:Ue};Kt.unstable_batchedUpdates(()=>{V?.(Oe),Z({type:"onDragMove",event:Oe})})},[F.x,F.y]),o.useEffect(()=>{const{active:V,activatorEvent:Q,collisions:re,droppableContainers:Ee,scrollAdjustedTranslate:Ue}=H.current;if(!V||Y.current==null||!Q||!Ue)return;const{onDragOver:Oe}=S.current,xe=Ee.get(le),He=xe&&xe.rect.current?{id:xe.id,rect:xe.rect.current,data:xe.data,disabled:xe.disabled}:null,Ce={active:V,activatorEvent:Q,collisions:re,delta:{x:Ue.x,y:Ue.y},over:He};Kt.unstable_batchedUpdates(()=>{B(He),Oe?.(Ce),Z({type:"onDragOver",event:Ce})})},[le]),Rt(()=>{H.current={activatorEvent:J,active:ve,activeNode:Ie,collisionRect:G,collisions:te,droppableRects:Pe,draggableNodes:q,draggingNode:ue,draggingNodeRect:fe,droppableContainers:E,over:b,scrollableAncestors:Ne,scrollAdjustedTranslate:F},$.current={initial:fe,translated:G}},[ve,Ie,te,G,q,ue,fe,Pe,E,b,Ne,F]),Ai({...ge,delta:X,draggingRect:G,pointerCoordinates:u,scrollableAncestors:Ne,scrollableAncestorRects:Be});const ee=o.useMemo(()=>({active:ve,activeNode:Ie,activeNodeRect:Fe,activatorEvent:J,collisions:te,containerNodeRect:ze,dragOverlay:me,draggableNodes:q,droppableContainers:E,droppableRects:Pe,over:b,measureDroppableContainers:je,scrollableAncestors:Ne,scrollableAncestorRects:Be,measuringConfiguration:qe,measuringScheduled:De,windowRect:g}),[ve,Ie,Fe,J,te,ze,me,q,E,Pe,b,je,Ne,Be,qe,De,g]),pe=o.useMemo(()=>({activatorEvent:J,activators:ye,active:ve,activeNodeRect:Fe,ariaDescribedById:{draggable:oe},dispatch:D,draggableNodes:q,over:b,measureDroppableContainers:je}),[J,ye,ve,Fe,D,oe,q,b,je]);return o.createElement(Fr.Provider,{value:K},o.createElement(mn.Provider,{value:pe},o.createElement(Zr.Provider,{value:ee},o.createElement(Vn.Provider,{value:R},c)),o.createElement(Oi,{disabled:f?.restoreFocus===!1})),o.createElement(fi,{...f,hiddenTextDescribedById:oe}))}),Vi=o.createContext(null),rr="button";function Ui(e){let{id:t,data:n,disabled:i=!1,attributes:a}=e;const l=hn("Draggable"),{activators:f,activatorEvent:h,active:c,activeNodeRect:C,ariaDescribedById:k,draggableNodes:y,over:p}=o.useContext(mn),{role:M=rr,roleDescription:T="draggable",tabIndex:z=0}=a??{},D=c?.id===t,Z=o.useContext(D?Vn:Vi),[K,w]=Fn(),[N,v]=Fn(),I=(function(X,E){return o.useMemo(()=>X.reduce((j,$)=>{let{eventName:ve,handler:Y}=$;return j[ve]=_=>{Y(_,E)},j},{}),[X,E])})(f,t),q=cn(n);return Rt(()=>(y.set(t,{id:t,key:l,node:K,activatorNode:N,data:q}),()=>{const X=y.get(t);X&&X.key===l&&y.delete(t)}),[y,t]),{active:c,activatorEvent:h,activeNodeRect:C,attributes:o.useMemo(()=>({role:M,tabIndex:z,"aria-disabled":i,"aria-pressed":!(!D||M!==rr)||void 0,"aria-roledescription":T,"aria-describedby":k.draggable}),[i,M,z,D,T,k.draggable]),isDragging:D,listeners:i?void 0:I,node:K,over:p,setNodeRef:w,setActivatorNodeRef:v,transform:Z}}function Yr(){return o.useContext(Zr)}const Ki={timeout:25};function $i(e){let{animation:t,children:n}=e;const[i,a]=o.useState(null),[l,f]=o.useState(null),h=An(n);return n||i||!h||a(h),Rt(()=>{if(!l)return;const c=i?.key,C=i?.props.id;c!=null&&C!=null?Promise.resolve(t(C,l)).then(()=>{a(null)}):a(null)},[t,i,l]),o.createElement(o.Fragment,null,n,i?o.cloneElement(i,{ref:f}):null)}const Wi={x:0,y:0,scaleX:1,scaleY:1};function Gi(e){let{children:t}=e;return o.createElement(mn.Provider,{value:_r},o.createElement(Vn.Provider,{value:Wi},t))}const _i={position:"fixed",touchAction:"none"},Zi=e=>On(e)?"transform 250ms ease":void 0,Xi=o.forwardRef((e,t)=>{let{as:n,activatorEvent:i,adjustScale:a,children:l,className:f,rect:h,style:c,transform:C,transition:k=Zi}=e;if(!h)return null;const y=a?C:{...C,scaleX:1,scaleY:1},p={..._i,width:h.width,height:h.height,top:h.top,left:h.left,transform:Lt.Transform.toString(y),transformOrigin:a&&i?pi(i,h):void 0,transition:typeof k=="function"?k(i):k,...c};return o.createElement(n,{className:f,style:p,ref:t},l)}),Yi=e=>t=>{let{active:n,dragOverlay:i}=t;const a={},{styles:l,className:f}=e;if(l!=null&&l.active)for(const[h,c]of Object.entries(l.active))c!==void 0&&(a[h]=n.node.style.getPropertyValue(h),n.node.style.setProperty(h,c));if(l!=null&&l.dragOverlay)for(const[h,c]of Object.entries(l.dragOverlay))c!==void 0&&i.node.style.setProperty(h,c);return f!=null&&f.active&&n.node.classList.add(f.active),f!=null&&f.dragOverlay&&i.node.classList.add(f.dragOverlay),function(){for(const[h,c]of Object.entries(a))n.node.style.setProperty(h,c);f!=null&&f.active&&n.node.classList.remove(f.active)}},Jr={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Lt.Transform.toString(t)},{transform:Lt.Transform.toString(n)}]},sideEffects:Yi({styles:{active:{opacity:"0"}}})};function Ji(e){let{config:t,draggableNodes:n,droppableContainers:i,measuringConfiguration:a}=e;return Bn((l,f)=>{if(t===null)return;const h=n.get(l);if(!h)return;const c=h.node.current;if(!c)return;const C=Gr(f);if(!C)return;const{transform:k}=Ct(f).getComputedStyle(f),y=Lr(k);if(!y)return;const p=typeof t=="function"?t:(function(M){const{duration:T,easing:z,sideEffects:D,keyframes:Z}={...Jr,...M};return K=>{let{active:w,dragOverlay:N,transform:v,...I}=K;if(!T)return;const q={x:N.rect.left-w.rect.left,y:N.rect.top-w.rect.top},X={scaleX:v.scaleX!==1?w.rect.width*v.scaleX/N.rect.width:1,scaleY:v.scaleY!==1?w.rect.height*v.scaleY/N.rect.height:1},E={x:v.x-q.x,y:v.y-q.y,...X},j=Z({...I,active:w,dragOverlay:N,transform:{initial:v,final:E}}),[$]=j,ve=j[j.length-1];if(JSON.stringify($)===JSON.stringify(ve))return;const Y=D?.({active:w,dragOverlay:N,...I}),_=N.node.animate(j,{duration:T,easing:z,fill:"forwards"});return new Promise(A=>{_.onfinish=()=>{Y?.(),A()}})}})(t);return Vr(c,a.draggable.measure),p({active:{id:l,data:h.data,node:c,rect:a.draggable.measure(c)},draggableNodes:n,dragOverlay:{node:f,rect:a.dragOverlay.measure(C)},droppableContainers:i,measuringConfiguration:a,transform:y})})}let lr=0;function Qi(e){return o.useMemo(()=>{if(e!=null)return lr++,lr},[e])}const ea=o.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:a,transition:l,modifiers:f,wrapperElement:h="div",className:c,zIndex:C=999}=e;const{activatorEvent:k,active:y,activeNodeRect:p,containerNodeRect:M,draggableNodes:T,droppableContainers:z,dragOverlay:D,over:Z,measuringConfiguration:K,scrollableAncestors:w,scrollableAncestorRects:N,windowRect:v}=Yr(),I=o.useContext(Vn),q=Qi(y?.id),X=Xr(f,{activatorEvent:k,active:y,activeNodeRect:p,containerNodeRect:M,draggingNodeRect:D.rect,over:Z,overlayNodeRect:D.rect,scrollableAncestors:w,scrollableAncestorRects:N,transform:I,windowRect:v}),E=po(p),j=Ji({config:i,draggableNodes:T,droppableContainers:z,measuringConfiguration:K}),$=E?D.setRef:void 0;return o.createElement(Gi,null,o.createElement($i,{animation:j},y&&q?o.createElement(Xi,{key:q,id:y.id,ref:$,as:h,activatorEvent:k,adjustScale:t,className:c,transition:l,rect:E,style:{zIndex:C,...a},transform:X},n):null))});function ko(e,t,n){const i=e.slice();return i.splice(n<0?i.length+n:n,0,i.splice(t,1)[0]),i}function ta(e,t){return e.reduce((n,i,a)=>{const l=t.get(i);return l&&(n[a]=l),n},Array(e.length))}function Rn(e){return e!==null&&e>=0}const kn={scaleX:1,scaleY:1},na=e=>{var t;let{rects:n,activeNodeRect:i,activeIndex:a,overIndex:l,index:f}=e;const h=(t=n[a])!=null?t:i;if(!h)return null;const c=(function(C,k,y){const p=C[k],M=C[k-1],T=C[k+1];return!p||!M&&!T?0:y<k?M?p.left-(M.left+M.width):T.left-(p.left+p.width):T?T.left-(p.left+p.width):p.left-(M.left+M.width)})(n,f,a);if(f===a){const C=n[l];return C?{x:a<l?C.left+C.width-(h.left+h.width):C.left-h.left,y:0,...kn}:null}return f>a&&f<=l?{x:-h.width-c,y:0,...kn}:f<a&&f>=l?{x:h.width+c,y:0,...kn}:{x:0,y:0,...kn}},Mo=e=>{let{rects:t,activeIndex:n,overIndex:i,index:a}=e;const l=ko(t,i,n),f=t[a],h=l[a];return h&&f?{x:h.left-f.left,y:h.top-f.top,scaleX:h.width/f.width,scaleY:h.height/f.height}:null},Qr="Sortable",el=o.createContext({activeIndex:-1,containerId:Qr,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Mo,disabled:{draggable:!1,droppable:!1}});function oa(e){let{children:t,id:n,items:i,strategy:a=Mo,disabled:l=!1}=e;const{active:f,dragOverlay:h,droppableRects:c,over:C,measureDroppableContainers:k}=Yr(),y=hn(Qr,n),p=h.rect!==null,M=o.useMemo(()=>i.map(I=>typeof I=="object"&&"id"in I?I.id:I),[i]),T=f!=null,z=f?M.indexOf(f.id):-1,D=C?M.indexOf(C.id):-1,Z=o.useRef(M),K=!(function(I,q){if(I===q)return!0;if(I.length!==q.length)return!1;for(let X=0;X<I.length;X++)if(I[X]!==q[X])return!1;return!0})(M,Z.current),w=D!==-1&&z===-1||K,N=(function(I){return typeof I=="boolean"?{draggable:I,droppable:I}:I})(l);Rt(()=>{K&&T&&k(M)},[K,M,T,k]),o.useEffect(()=>{Z.current=M},[M]);const v=o.useMemo(()=>({activeIndex:z,containerId:y,disabled:N,disableTransforms:w,items:M,overIndex:D,useDragOverlay:p,sortedRects:ta(M,c),strategy:a}),[z,y,N.draggable,N.droppable,w,M,D,c,p,a]);return o.createElement(el.Provider,{value:v},t)}const ra=e=>{let{id:t,items:n,activeIndex:i,overIndex:a}=e;return ko(n,i,a).indexOf(t)},la=e=>{let{containerId:t,isSorting:n,wasDragging:i,index:a,items:l,newIndex:f,previousItems:h,previousContainerId:c,transition:C}=e;return!(!C||!i)&&(h===l||a!==f)&&(!!n||f!==a&&t===c)},ia={duration:200,easing:"ease"},tl="transform",aa=Lt.Transition.toString({property:tl,duration:0,easing:"linear"}),sa={roleDescription:"sortable"};function ca(e){let{animateLayoutChanges:t=la,attributes:n,disabled:i,data:a,getNewIndex:l=ra,id:f,strategy:h,resizeObserverConfig:c,transition:C=ia}=e;const{items:k,containerId:y,activeIndex:p,disabled:M,disableTransforms:T,sortedRects:z,overIndex:D,useDragOverlay:Z,strategy:K}=o.useContext(el),w=(function(W,me){var ue,fe;return typeof W=="boolean"?{draggable:W,droppable:!1}:{draggable:(ue=W?.draggable)!=null?ue:me.draggable,droppable:(fe=W?.droppable)!=null?fe:me.droppable}})(i,M),N=k.indexOf(f),v=o.useMemo(()=>({sortable:{containerId:y,index:N,items:k},...a}),[y,a,N,k]),I=o.useMemo(()=>k.slice(k.indexOf(f)),[k,f]),{rect:q,node:X,isOver:E,setNodeRef:j}=(function(W){let{data:me,disabled:ue=!1,id:fe,resizeObserverConfig:Me}=W;const ae=hn("Droppable"),{active:be,dispatch:g,over:Ne,measureDroppableContainers:Be}=o.useContext(mn),Te=o.useRef({disabled:ue}),u=o.useRef(!1),L=o.useRef(null),U=o.useRef(null),{disabled:m,updateMeasurementsFor:F,timeout:G}={...Ki,...Me},te=cn(F??fe),le=Nn({callback:o.useCallback(()=>{u.current?(U.current!=null&&clearTimeout(U.current),U.current=setTimeout(()=>{Be(Array.isArray(te.current)?te.current:[te.current]),U.current=null},G)):u.current=!0},[G]),disabled:m||!be}),b=o.useCallback((ce,se)=>{le&&(se&&(le.unobserve(se),u.current=!1),ce&&le.observe(ce))},[le]),[B,R]=Fn(b),P=cn(me);return o.useEffect(()=>{le&&B.current&&(le.disconnect(),u.current=!1,le.observe(B.current))},[B,le]),o.useEffect(()=>(g({type:ht.RegisterDroppable,element:{id:fe,key:ae,disabled:ue,node:B,rect:L,data:P}}),()=>g({type:ht.UnregisterDroppable,key:ae,id:fe})),[fe]),o.useEffect(()=>{ue!==Te.current.disabled&&(g({type:ht.SetDroppableDisabled,id:fe,key:ae,disabled:ue}),Te.current.disabled=ue)},[fe,ae,ue,g]),{active:be,rect:L,isOver:Ne?.id===fe,node:B,over:Ne,setNodeRef:R}})({id:f,data:v,disabled:w.droppable,resizeObserverConfig:{updateMeasurementsFor:I,...c}}),{active:$,activatorEvent:ve,activeNodeRect:Y,attributes:_,setNodeRef:A,listeners:J,isDragging:x,over:S,setActivatorNodeRef:oe,transform:ie}=Ui({id:f,data:v,attributes:{...sa,...n},disabled:w.draggable}),qe=(function(){for(var W=arguments.length,me=new Array(W),ue=0;ue<W;ue++)me[ue]=arguments[ue];return o.useMemo(()=>fe=>{me.forEach(Me=>Me(fe))},me)})(j,A),de=!!$,Pe=de&&!T&&Rn(p)&&Rn(D),je=!Z&&x,De=je&&Pe?ie:null,Ie=Pe?De??(h??K)({rects:z,activeNodeRect:Y,activeIndex:p,overIndex:D,index:N}):null,ke=Rn(p)&&Rn(D)?l({id:f,items:k,activeIndex:p,overIndex:D}):N,ge=$?.id,O=o.useRef({activeId:ge,items:k,newIndex:ke,containerId:y}),Fe=k!==O.current.items,ze=t({active:$,containerId:y,isDragging:x,isSorting:de,id:f,index:N,items:k,newIndex:O.current.newIndex,previousItems:O.current.items,previousContainerId:O.current.containerId,transition:C,wasDragging:O.current.activeId!=null}),H=(function(W){let{disabled:me,index:ue,node:fe,rect:Me}=W;const[ae,be]=o.useState(null),g=o.useRef(ue);return Rt(()=>{if(!me&&ue!==g.current&&fe.current){const Ne=Me.current;if(Ne){const Be=Xt(fe.current,{ignoreTransform:!0}),Te={x:Ne.left-Be.left,y:Ne.top-Be.top,scaleX:Ne.width/Be.width,scaleY:Ne.height/Be.height};(Te.x||Te.y)&&be(Te)}}ue!==g.current&&(g.current=ue)},[me,ue,fe,Me]),o.useEffect(()=>{ae&&be(null)},[ae]),ae})({disabled:!ze,index:N,node:X,rect:q});return o.useEffect(()=>{de&&O.current.newIndex!==ke&&(O.current.newIndex=ke),y!==O.current.containerId&&(O.current.containerId=y),k!==O.current.items&&(O.current.items=k)},[de,ke,y,k]),o.useEffect(()=>{if(ge===O.current.activeId)return;if(ge!=null&&O.current.activeId==null)return void(O.current.activeId=ge);const W=setTimeout(()=>{O.current.activeId=ge},50);return()=>clearTimeout(W)},[ge]),{active:$,activeIndex:p,attributes:_,data:v,rect:q,index:N,newIndex:ke,items:k,isOver:E,isSorting:de,isDragging:x,listeners:J,node:X,overIndex:D,over:S,setNodeRef:qe,setActivatorNodeRef:oe,setDroppableNodeRef:j,setDraggableNodeRef:A,transform:H??Ie,transition:(function(){if(H||Fe&&O.current.newIndex===N)return aa;if(!(je&&!On(ve)||!C)&&(de||ze))return Lt.Transition.toString({...C,property:tl})})()}}function Pn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const da=[Ye.Down,Ye.Right,Ye.Up,Ye.Left],ua=(e,t)=>{let{context:{active:n,collisionRect:i,droppableRects:a,droppableContainers:l,over:f,scrollableAncestors:h}}=t;if(da.includes(e.code)){if(e.preventDefault(),!n||!i)return;const c=[];l.getEnabled().forEach(y=>{if(!y||y!=null&&y.disabled)return;const p=a.get(y.id);if(p)switch(e.code){case Ye.Down:i.top<p.top&&c.push(y);break;case Ye.Up:i.top>p.top&&c.push(y);break;case Ye.Left:i.left>p.left&&c.push(y);break;case Ye.Right:i.left<p.left&&c.push(y)}});const C=(y=>{let{collisionRect:p,droppableRects:M,droppableContainers:T}=y;const z=$o(p),D=[];for(const Z of T){const{id:K}=Z,w=M.get(K);if(w){const N=$o(w),v=z.reduce((q,X,E)=>q+Ar(N[E],X),0),I=Number((v/4).toFixed(4));D.push({id:K,data:{droppableContainer:Z,value:I}})}}return D.sort(Dr)})({collisionRect:i,droppableRects:a,droppableContainers:c});let k=zr(C,"id");if(k===f?.id&&C.length>1&&(k=C[1].id),k!=null){const y=l.get(n.id),p=l.get(k),M=p?a.get(p.id):null,T=p?.node.current;if(T&&M&&y&&p){const z=Hn(T).some((N,v)=>h[v]!==N),D=ir(y,p),Z=(function(N,v){return!Pn(N)||!Pn(v)||!ir(N,v)?!1:N.data.current.sortable.index<v.data.current.sortable.index})(y,p),K=z||!D?{x:0,y:0}:{x:Z?i.width-M.width:0,y:Z?i.height-M.height:0},w={x:M.left,y:M.top};return K.x&&K.y?w:dn(w,K)}}}};function ir(e,t){return!(!Pn(e)||!Pn(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const ga=e=>{let{transform:t}=e;return{...t,y:0}},nl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,index:l,editing:f,editable:h,selectedIndex:c,background:C,activeColor:k,borderColor:y,borderWidth:p,dragging:M,...T}=e;return s.jsxs("div",{ref:t,className:ct(a),style:{...i,display:"flex",flexDirection:"column",background:c===l?"white":C,minHeight:"0px",fontFamily:"inherit",fontSize:"16px",fontWeight:c===l?"700":"400",lineHeight:"1",letterSpacing:"0px",textTransform:"none",minWidth:"unset"},...T,children:[s.jsxs("div",{style:{flex:"1 1 100%",display:"flex",flexDirection:"row"},children:[s.jsx("div",{style:{marginLeft:c===l?"0px":"-1px",marginTop:c===l?"0px":"4px",marginBottom:"0px",background:"grey",minWidth:"1px"}}),n,c===l?s.jsx("div",{style:{marginLeft:"0px",marginTop:"0px",marginBottom:"0px",background:"grey",minWidth:"1px"}}):s.jsx(s.Fragment,{})]}),s.jsx("div",{style:{flex:"1 1 100%",background:c===l&&k?k?.toCSS():"none",minHeight:"2px"}})]})})),St={Wrapper:"_Wrapper_1wyun_25",fadeIn:"_fadeIn_1wyun_33",dragOverlay:"_dragOverlay_1wyun_37",Item:"_Item_1wyun_47",withHandle:"_withHandle_1wyun_61",dragging:"_dragging_1wyun_66",disabled:"_disabled_1wyun_74"},ol=o.memo(o.forwardRef(({color:e,dragOverlay:t,dragging:n,disabled:i,fadeIn:a,handle:l,height:f,index:h,listeners:c,onRemove:C,renderItem:k,sorting:y,style:p,transition:M,transform:T,value:z,wrapperStyle:D,...Z},K)=>{o.useEffect(()=>{if(t)return document.body.style.cursor="grabbing",()=>{document.body.style.cursor=""}},[t]);const w=k?k({dragOverlay:!!t,dragging:!!n,sorting:!!y,index:h,fadeIn:!!a,listeners:c,ref:K,style:p,transform:T,transition:M,value:z}):s.jsx(s.Fragment,{children:z});return s.jsx("div",{className:ct("tab-item",St.Wrapper,a&&St.fadeIn,y&&St.sorting,t&&St.dragOverlay),style:{...D,transition:[M,D?.transition].filter(Boolean).join(", "),"--translate-x":T?`${Math.round(T.x)}px`:void 0,"--translate-y":T?`${Math.round(T.y)}px`:void 0,"--scale-x":T?.scaleX?`${T.scaleX}`:void 0,"--scale-y":T?.scaleY?`${T.scaleY}`:void 0,"--index":h},ref:K,children:s.jsx("div",{className:ct(St.Item,n&&St.dragging,l&&St.withHandle,t&&St.dragOverlay,i&&St.disabled,e&&St.color,"dragging"),style:p,"data-cypress":"draggable-item",...l?void 0:c,...Z,tabIndex:l?void 0:-1,children:w})})})),ar={Row:"_Row_1kr10_1"},ha=o.memo(o.forwardRef(({children:e,horizontal:t,style:n},i)=>s.jsx("div",{ref:i,style:{...n},className:ct(ar.Row,t&&ar.horizontal),children:e}))),ma={...Jr},fa=o.memo(o.forwardRef((e,t)=>{const{className:n,activationConstraint:i,animateLayoutChanges:a,adjustScale:l=!1,collisionDetection:f=Ci,coordinateGetter:h=ua,dropAnimation:c=ma,getItemStyles:C=()=>({}),getNewIndex:k,handle:y=!1,items:p,onMove:M,isDisabled:T=()=>!1,measuring:z,modifiers:D,renderItem:Z,renderDivider:K,reorderItems:w=ko,strategy:N=Mo,style:v,useDragOverlay:I=!0,onDragStart:q,wrapperStyle:X=()=>({})}=e,[E,j]=o.useState(()=>p);o.useEffect(()=>{j(p)},[p]);const[$,ve]=o.useState(null),Y=(function(){for(var S=arguments.length,oe=new Array(S),ie=0;ie<S;ie++)oe[ie]=arguments[ie];return o.useMemo(()=>[...oe].filter(qe=>qe!=null),[...oe])})(io($r,{activationConstraint:i}),io(Wr,{activationConstraint:i}),io(So,{scrollBehavior:"Cypress"in window?"auto":void 0,coordinateGetter:h})),_=E.indexOf.bind(E),A=$?_($):-1,J=[];E.map((S,oe)=>{J.push(s.jsx(pa,{id:S,handle:y,index:oe,style:C,wrapperStyle:X,disabled:T(S),renderItem:Z,animateLayoutChanges:a,useDragOverlay:I,getNewIndex:k},S+"-"+oe));const ie=K?.({key:"divider-"+oe});ie&&J.push(ie)});const{getPortalContainer:x}=r.useFullscreenPortal();return s.jsxs(Hi,{sensors:Y,collisionDetection:f,onDragStart:S=>{const{active:oe}=S;oe&&(q?.(S),ve(oe.id))},autoScroll:{canScroll:S=>!0},onDragEnd:S=>{if(ve(null),S.over){const oe=_(S.over.id);A!==oe&&(j(ie=>w(ie,A,oe)),M?.(A,oe))}},onDragCancel:()=>{ve(null)},measuring:z,modifiers:D,children:[s.jsx("div",{style:{display:"flex",justifyContent:"flex-start",boxSizing:"border-box",...v},className:ct(n,St.Wrapper),children:s.jsx(oa,{items:E,strategy:N,children:s.jsx(ha,{ref:t,children:J})})}),I?Kt.createPortal(s.jsx(ea,{adjustScale:l,dropAnimation:c,children:$?s.jsx(ol,{value:E[A],handle:y,renderItem:Z,wrapperStyle:X({index:A,isDragging:!0,id:E[A]}),index:A,dragging:!0,style:C({id:E[A],index:A,isSorting:$!==null,isDragging:!0,overIndex:-1,isDragOverlay:!0}),dragOverlay:!0}):null}),x()):null]})}));function pa({disabled:e,animateLayoutChanges:t,getNewIndex:n,handle:i,id:a,index:l,onRemove:f,style:h,renderItem:c,useDragOverlay:C,wrapperStyle:k}){const{attributes:y,isDragging:p,isSorting:M,listeners:T,overIndex:z,setNodeRef:D,transform:Z,transition:K}=ca({id:a,animateLayoutChanges:t,disabled:e,getNewIndex:n});return s.jsx(ol,{ref:D,value:a,disabled:e,dragging:p,sorting:M,handle:i,renderItem:c,index:l,style:h({index:l,id:a,isDragging:p,isSorting:M,overIndex:z}),onRemove:f?()=>f(a):void 0,transform:Z,transition:K,wrapperStyle:k({index:l,isDragging:p,id:a}),listeners:T,"data-index":l,"data-id":a,dragOverlay:!C&&p,...y})}const va="_TabStrip_3x0dp_1",Ca=new d.Color("rgb(33, 115, 70)"),ya="#eee",wa=e=>s.jsx(nl,{...e}),rl=o.memo(o.forwardRef((e,t)=>{const{children:n,style:i,className:a,selectedTabIndex:l=0,tabNames:f=[],onSelectedTabIndexChange:h,onTabNameChange:c,onTabMove:C,renderScrollButtonStart:k=r.defaultCreateScrollStartButton,renderScrollButtonEnd:y=r.defaultCreateScrollEndButton,renderScrollButtonEdge:p=r.defaultCreateScrollEdgeButton,renderTabButton:M=wa,renderTabDivider:T,propsEditLabel:z,disabled:D=!1,disableDrag:Z=!1,background:K="white",activeColor:w=Ca,borderColor:N=ya,borderWidth:v=1}=e,[I,q]=o.useState(l),[X,E]=o.useState(f),j=o.useCallback(ae=>{const be=x.current?.[ae]?.closest(".tab-item")??x.current?.[ae];be&&je.current?.scrollTo({top:be.offsetTop,left:be.offsetLeft,behavior:"smooth"})},[]);o.useEffect(()=>{j(l)},[l]);const $=o.useCallback((ae,be)=>{be!==I&&(q(be),h?.(be)),j(be)},[h,I]),ve=o.useCallback((ae,be)=>{C?.(ae,be)},[C]),Y=o.useRef(null),[_,A]=o.useState(-1),J=o.useCallback((ae,be)=>{c?.(ae,be)},[c]);o.useLayoutEffect(()=>{q(l)},[l]),o.useLayoutEffect(()=>{E(f)},[f]);const x=o.useRef([]),S=o.useRef(null);o.useImperativeHandle(t,()=>Object.assign({startEdit(ae){x.current?.[ae]?.startEdit()},cancel(ae){x.current?.[ae]?.cancel()}},S.current),[I,_]);const oe=o.useCallback(({value:ae,index:be,dragging:g})=>{const{style:Ne,maxLength:Be,...Te}=z||{},u=s.jsx(Tr,{ref:L=>{x.current[be]=L},value:ae,disabled:D,maxLength:Be,style:{color:I===be&&w?w?.toRGBA().toString():"inherit",flex:"1 1 100%",paddingTop:"1px",paddingBottom:"1px",...Ne},styleHover:{},onSubmit:L=>(Y.current=!1,A(-1),J(be,L)),onCancel:()=>{Y.current=!1,A(-1)},onChange:L=>{Y.current=!0,A(be)},...Te});return M({onClick:L=>$(L,be),value:ae,index:be,editing:_===be&&Y.current,editable:!0,disabled:D,selectedIndex:I,background:K,activeColor:w,borderColor:N,borderWidth:v,dragging:g,children:u})},[I,J,$,z,D,_,M]),[ie,{width:qe}]=Wt(),[de,{width:Pe}]=Wt(),je=o.useRef(null),[De,Ie]=o.useState({left:0,top:0,width:0,height:0}),[ke,ge]=o.useState(null);o.useEffect(()=>{ke!==null&&je.current&&je.current.scrollTo({left:ke,behavior:"smooth"})},[ke]);const O=o.useCallback((ae,be=!1)=>{if(!je.current)return 0;let g=je.current.firstChild.getBoundingClientRect(),Ne=je.current.firstChild.firstChild.children,Be=0;return Be=be?0:r.ScrollUtils.getScrollTo(ae,g.left,Ne,!0,Math.max(0,ae-200)),ge(Be),Math.max(0,Be)},[]),Fe=o.useCallback((ae,be=!1)=>{if(!je.current)return 0;let g=je.current.firstChild.getBoundingClientRect(),Ne=je.current.firstChild.firstChild.children,Be=0;const Te=Math.ceil(Pe-qe);return Be=be?Te:r.ScrollUtils.getScrollTo(ae,g.left,Ne,!1,Math.max(0,ae+200)),ge(Be),Math.min(Te,Be)},[Pe,qe]),ze=o.useRef(null),H=o.useRef(null),W=o.useCallback(()=>{H.current&&(clearTimeout(H.current),H.current=null,ze.current=null)},[]),me=o.useCallback((ae,be,g=260)=>{ze.current=ae,H.current=setTimeout(()=>{const Ne=be?O(ze.current||ae):Fe(ze.current||ae);Ne!==ze.current?me(Ne,be,120):W()},g)},[O,Fe,W]);o.useEffect(()=>()=>W(),[W]);const ue=o.useMemo(()=>({style:{marginLeft:"4px",marginRight:"6px"},disabled:Math.floor(De.left)<=0||Math.floor(Pe-qe)===0,orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:W,onMouseLeave:W,onMouseDown:()=>me(je.current.scrollLeft,!0),onClick:ae=>O(Math.min(je.current.scrollLeft,ke??Number.MAX_SAFE_INTEGER),ae.ctrlKey)}),[De,ke,Pe,qe]),fe=o.useMemo(()=>({style:{marginLeft:"6px",marginRight:"4px"},disabled:Math.floor(Pe-qe)<=Math.ceil(De.left),orientation:r.ScrollbarOrientation.Horizontal,onMouseUp:W,onMouseLeave:W,onMouseDown:()=>me(je.current.scrollLeft,!1),onClick:ae=>Fe(Math.max(je.current.scrollLeft,ke??0),ae.ctrlKey)}),[De,ke,Pe,qe]),Me=o.useMemo(()=>s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{minWidth:"16px"}}),n,p?.(ue)]}),[ue,fe,k,y,n,p]);return s.jsxs("div",{style:{...i,display:"flex",alignItems:"stretch"},className:ct(va,a),ref:S,children:[s.jsx("div",{style:{borderTop:`solid ${N} ${v}px`,position:"absolute",width:"100%"}}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:Me}),s.jsx("div",{className:"Tabs",ref:ie,style:{flex:"1 1 100%",display:"flex",position:"relative",overflow:"hidden"},children:s.jsx("div",{style:{position:"relative",overflowY:"hidden",overflowX:"hidden",marginBottom:"3px"},ref:je,onScroll:ae=>{Ie({left:ae.target.scrollLeft,top:ae.target.scrollTop,width:ae.target.scrollWidth,height:ae.target.scrollHeight})},children:s.jsx(fa,{isDisabled:ae=>D||Z,items:X,strategy:na,modifiers:[ga],ref:de,renderItem:oe,renderDivider:T,onMove:ve,activationConstraint:{distance:15}})})}),s.jsx("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:p(fe)})]})}));rl.displayName="TabStrip";const Tn=o.createContext(null);Tn.displayName="DocThemesContext";const ba="_script-editor_iy654_5",xa={lightbulb:{enabled:!1},tabSize:2,acceptSuggestionOnCommitCharacter:!0,acceptSuggestionOnEnter:"on",accessibilitySupport:"auto",automaticLayout:!0,autoIndent:!1,codeLens:!0,colorDecorators:!0,contextmenu:!0,cursorBlinking:"blink",cursorSmoothCaretAnimation:!1,cursorStyle:"line",disableLayerHinting:!1,disableMonospaceOptimizations:!1,dragAndDrop:!0,glyphMargin:!0,fixedOverflowWidgets:!1,folding:!0,foldingStrategy:"auto",fontLigatures:!1,formatOnPaste:!0,formatOnType:!1,hideCursorInOverviewRuler:!1,highlightActiveIndentGuide:!0,links:!0,lineDecorationsWidth:8,lineNumbersMinChars:3,mouseWheelZoom:!1,multiCursorMergeOverlapping:!0,multiCursorModifier:"alt",overviewRulerBorder:!0,overviewRulerLanes:2,quickSuggestions:!0,quickSuggestionsDelay:100,readOnly:!1,renderControlCharacters:!1,renderFinalNewline:!0,renderIndentGuides:!0,renderLineHighlight:"all",renderWhitespace:"none",revealHorizontalRightPadding:30,roundedSelection:!0,rulers:[],scrollBeyondLastColumn:5,scrollBeyondLastLine:!0,selectOnLineNumbers:!0,selectionClipboard:!0,selectionHighlight:!0,showLightbulbIconMode:!1,showFoldingControls:"mouseover",smoothScrolling:!0,suggestOnTriggerCharacters:!0,wordBasedSuggestions:!0,wordSeparators:`~!@#$%^&*()-=+[{]}|;:'",.<>/?`,wordWrap:"off",wordWrapBreakAfterCharacters:" })]?|&,;",wordWrapBreakBeforeCharacters:"{([+",wordWrapBreakObtrusiveCharacters:".",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:"none"},qa=o.lazy(()=>Promise.resolve().then(()=>require("./Vv_BzEAhvRFFHHgO.cjs")));let nn,on,Et=["define","require"],sr=!1,In="@0.7.24";In!=="@local"&&In!=="@0.0.0"||(In="");const Sa=`https://cdn.jsdelivr.net/npm/@sheetxl/sdk${In}/types/scripting.d.ts`,cr=async(e,t,n)=>{const i=e.getModel();if(!i)return;const a=await t.languages.typescript.getTypeScriptWorker(),l=await a(i.uri),f=await l.getNavigationTree(i.uri.toString()),h=e.getPosition();let c={...h};c.lineNumber=1,c.column=1;let C=!1;for(let z=h.lineNumber;z>=1;z--)if(i.getLineContent(z).trim()===""){const D=To(f,i.getOffsetAt({lineNumber:z,column:1}),"function");if(!D||ka(D)){C=!0,c.lineNumber=z+1;break}{const Z=D.spans[0].start;z=i.getPositionAt(Z).lineNumber,c.lineNumber=z}}let k=n,y=!1;!C&&!k.startsWith(`
|
|
28
28
|
`)&&c.lineNumber>1&&(k=`
|
|
29
29
|
`+k,y=!0);let p=!1;i.getLineCount()>1&&(k.endsWith(`
|
|
30
30
|
|
|
31
31
|
`)||(k+=`
|
|
32
32
|
|
|
33
|
-
`,p=!0));const M=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${k}`}];let T=null;i.pushEditOperations([],M,z=>(T=z[0].range,y&&T.startLineNumber++,p&&T.endLineNumber--,[new t.Selection(T.startLineNumber,T.startColumn,T.endLineNumber,T.endColumn)])),e.setSelection({startLineNumber:T.endLineNumber,startColumn:T.endColumn,endLineNumber:T.startLineNumber,endColumn:T.startColumn})};function Ra(e,t){let n=null;const i=e.length;for(let a=0;!n&&a<i;a++){const l=e[a];l.getName()===t.text&&(n=l)}return n?n.getContext():"formula"}function vo(e,t,n,i,a=[]){if(i.kind==="function"&&i.kindModifiers==="export"){const l=i.spans[0].start,f=e.getPositionAt(l);a.push({name:i.text,type:Ra(n,i),lineNumber:f.lineNumber})}if(i.childItems)for(const l of i.childItems)vo(e,t,n,l,a);return a}function To(e,t,n="function",i){const a=e.spans,l=a.length;for(let f=0;f<l;f++){const h=a[f];if(h.start<=t&&t<h.start+h.length){if(e.kind===n&&(!i||e.kindModifiers===i))return e;for(const c of e.childItems||[]){const C=To(c,t,n,i);if(C)return C}}return null}}function ka(e){return e.kind==="comment"}const Ma=o.memo(o.forwardRef((e,t)=>{const{className:n,style:i,commands:a,readOnly:l=!1,darkMode:f,loadingPanel:h,autoFocus:c=!0,frame:C,onStatusChange:k,...y}=e,p=o.useRef(null),M=o.useRef(!1),T=o.useMemo(()=>({contains(ge){if(!p.current)return;const O=p.current.editor;return O&&O.getDomNode()?.contains(ge)},focus(){if(!p.current)return;const ge=p.current.editor;return ge&&ge.getDomNode()?.focus()}}),[]),z=o.useMemo(()=>[new r.Command("help",T,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),D=o.useMemo(()=>{let ge=null;const O=()=>T;return ge=a?a.createChildGroup(O,"scriptEditor",!1):new r.CommandGroup(O,"scriptEditor"),ge.addCommands(z,!0),ge},[a,z]),Z=a.getGroup("workbook"),K=r.useCommands(Z,["executeSelectedScript","saveScripts"]),w=K[0],N=K[1],v=w?.getContext(),[I,q]=o.useState({message:"Loading",cursor:"",dirty:!1}),[X,E]=o.useState({loading:!1,compiling:!1,errors:[],warnings:[]}),j=r.useCallbackRef(ge=>{q(O=>{const Fe={...O,...ge};return he.CommonUtils.deepEqual(Fe,O)?O:(N.update({disabled:!Fe.dirty}).updateCallback(async()=>{await $()}),Fe)})},[k,N]);o.useEffect(()=>{k?.(I)},[k,I]);const $=r.useCallbackRef(async()=>{if(!p.current)return;const ge=p.current.editor;let O;if(I.dirty){const Fe=ge.getValue();await v?.saveSource(Fe),O=v?.getScripts().getModules().getByName("scripts");const ze=O?.getSource(),H=ge.getValue(),W=(ze?.length??0)!==Fe.length||ze!==H;j({dirty:W})}else O=v?.getScripts().getModules().getByName("scripts");return O},[I]);o.useEffect(()=>{const ge=C?.addListener({onBeforeHide:async()=>(await $(),!0)});return()=>{ge?.()}},[C]),o.useEffect(()=>{const ge=v?.getScripts();if(ge)return ge.addListeners({onBeforeSearch:()=>$()})},[v]);const ve=r.useCallbackRef(ge=>{w?.execute(ge)},[w]),Y=o.useRef(""),[_,A]=o.useState(!1),J=r.useCallbackRef(async()=>{if(!p.current)return null;const ge=p.current,O=ge.editor;if(!O)return null;const Fe=ge.monaco,ze=await(async(H,W,me="export")=>{const ue=H.getModel();if(!ue)return null;const fe=await W.languages.typescript.getTypeScriptWorker(),Me=await fe(ue.uri),ae=await Me.getNavigationTree(ue.uri.toString());let be=null,g=H.getSelection();if(!g)return null;const Ne=g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn?ue.getLineCount():Math.min(g.endLineNumber,ue.getLineCount());for(let Be=g.startLineNumber;!be&&Be<=Ne;Be++){const Te=To(ae,ue.getOffsetAt({lineNumber:Be,column:1}),"function",me);Te&&(be=Te.text)}return be})(O,Fe);return j({message:(ze??"").toUpperCase()}),ze?{source:O.getValue(),name:ze}:null},[]);r.useCallbackRef(he.CommonUtils.debounce($,200),[]);const x=r.useCallbackRef(async(ge,O,Fe)=>{E(H=>({...H,compiling:!0}));const ze=await v?.getScripts().createModule({source:Fe?.getValue(),declarationsOnly:!0});ze&&((async function(H,W){const me=[];for(let ue=1;ue<H.getLineCount()+1;ue++){const fe={startLineNumber:ue,startColumn:1,endLineNumber:ue,endColumn:H.getLineLength(ue)+1},Me=H.getValueInRange(fe).indexOf("modelt");Me!==-1&&me.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:W.MarkerSeverity.Hint,startLineNumber:fe.startLineNumber,startColumn:Me+1,endLineNumber:fe.startLineNumber,endColumn:Me+5})}W.editor.setModelMarkers(H,"owner",me)})(ge,O),(async function(H,W,me,ue){const fe=await W.languages.typescript.getTypeScriptWorker(),Me=await fe(H.uri),ae=await Me.getNavigationTree(H.uri.toString()),be=vo(H,W,ue,ae).map(g=>{let Ne=null,Be=null;return g.type==="formula"?(Ne="formula.margin-icon",Be="Formula"):g.type==="macro"?(Ne="macro.margin-icon",Be="Macro"):g.type==="autoRun"&&(Ne="autorun.margin-icon",Be="Auto Run"),{range:new W.Range(g.lineNumber,1,g.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:Ne,glyphMarginHoverMessage:{value:Be},stickiness:W.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});Pe.current&&Pe.current.clear(),Pe.current=me.createDecorationsCollection(be)})(ge,O,Fe,ze?ze.getFunctions().getItems():he.CommonUtils.EmptyArray),E(H=>({...H,compiling:!1})))},[v]),S=r.useCallbackRef(he.CommonUtils.debounce(x,580),[]),oe=r.useCallbackRef(async(ge=void 0)=>{if(!p.current||!v)return;const O=p.current.editor.getPosition(),Fe={cursor:O?O.toString():""};ge!==void 0&&(Fe.message=ge),j(Fe);const ze=J();v.setSelectedFunction(ze)},[v]);o.useEffect(()=>{},[X]);const ie=o.useRef(null),qe=r.useCallbackRef(async()=>{await $(),C?.close()},[C]);o.useEffect(()=>{if(!v)return;const ge={insertSnippet:Fe=>{p.current?.editor&&cr(p.current.editor,p.current.monaco,Fe)},close:()=>qe()};v.setEditor(ge),v.setSelectedFunction(J());const O=v.addContainerListener({onBeforeSave:async()=>{$()},onReadonlyChange(){},onScriptChange:async()=>{if(!p.current?.editor||!v)return;const Fe=p.current.editor,ze=v.getScripts().getModules().getItems()[0]?.getSource()??"";Fe.setValue(ze)}});return()=>{v.setEditor(null),O()}},[v]),o.useEffect(()=>()=>{const ge=ie.current;if(ge){ge.dispose();const O=ge.debounceTimer;O!==void 0&&clearTimeout(O),ie.current=null}},[_]);const de=r.useCallbackRef(ge=>{const O=p.current?.editor;return!!O&&(O.focus(ge),!0)},[I]),Pe=o.useRef(null),je=r.useCallbackRef((ge,O)=>{p.current={monaco:O,editor:ge},A(!0),oe("Loading Types");const Fe=v?.getScripts().getModules().getItems()[0]?.getSource()??"";ge.setValue(Fe),Promise.resolve().then(()=>require("./DO7GMGTiL67zwKAs.cjs")).then(H=>H.customEditor).then(async H=>{oe(""),H.AutoTypings.create(ge,{shareCache:!0,dontAdaptEditorOptions:!0,monaco:O,onUpdate:(W,me)=>{if(W.type==="LookedUpPackage"&&W.success!==void 0){const ue=O.languages.typescript.typescriptDefaults.getDiagnosticsOptions();O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({...ue,diagnosticCodesToIgnore:[]})}},onError:W=>{W==="Not implemented yet"&&(W="Compile Errors"),console.warn("Error compiling types",W)}}).then(W=>{ie.current=W;const me=ge.getModel();S(me,O,ge),(()=>{if(sr)return;const ue=(Me,ae)=>{try{if(ae===void 0)try{delete globalThis[Me]}catch{try{globalThis[Me]=void 0}catch{}}else globalThis[Me]=ae}catch{}},fe=Et.length;for(let Me=0;Me<fe;Me++){const ae=Et[Me];ue(ae,nn[ae])}nn=void 0,sr=!0})()})}),ge.addCommand("executeScript",function(H,...W){W?.[0]&&ve({functionName:W?.[0]})},""),ge.addAction({id:"executeScript",label:"Execute",keybindings:[O.KeyCode.F8],run:async H=>{const W=J();v?.setSelectedFunction(W);const me=await W;ve(me)}}),ge.addAction({id:"saveScript",label:"Save Script",keybindings:[O.KeyMod.CtrlCmd|O.KeyCode.KeyS],run:H=>{$()}}),ge.onMouseDown(async H=>{if(H.target.type===O.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const W=H.target.position.lineNumber,me=await O.languages.typescript.getTypeScriptWorker(),ue=await me(ze.uri),fe=await ue.getNavigationTree(ze.uri.toString()),Me=(await $()).getFunctions().getItems(),ae=vo(ze,O,Me,fe).find(be=>be.lineNumber===W);if(ae){const be=H.event.browserEvent.button;be===0?ae.type==="macro"||ae.type==="autoRun"?ve({functionName:ae.name}):ae.type==="formula"&&v?.quickInsertFunction?.(ae.name):be===2&&(console.log("Context menu for function:",ae.name),H.event.browserEvent.preventDefault())}}}),ge.onDidChangeModelContent(()=>{j({dirty:!0}),S(ze,O,ge)}),O.editor.onDidChangeMarkers(H=>{H.some(W=>W.toString()===ze.uri.toString())});const ze=ge.getModel();(function(H,W){W.languages.registerInlayHintsProvider("typescript",{provideInlayHints(me,ue,fe){const Me=[];for(let ae=1;ae<me.getLineCount()+1;ae++){const be={startLineNumber:ae,startColumn:1,endLineNumber:ae,endColumn:me.getLineLength(ae)+1},g="hint",Ne=me.getValueInRange(be).indexOf("hint");Ne!==-1&&Me.push({kind:W.languages.InlayHintKind.Type,position:{lineNumber:be.startLineNumber,column:Ne+g.length+1},label:"[hint]"})}return{hints:Me,dispose:()=>{}}}})})(0,O),ze.onDidChangeContent(H=>{const W=v?.getScripts().getModules().getByName("scripts"),me=W?.getSource(),ue=ge.getValue(),fe=(me?.length??0)!==ue.length||me!==ue;j({dirty:fe})}),ge.onDidChangeCursorPosition(H=>{oe()})},[v]),De=o.useMemo(()=>_?null:h||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[_,h]),Ie=o.useMemo(()=>{if(!_){if(!nn){nn={};const O=Et.length;for(let Fe=0;Fe<O;Fe++){const ze=Et[Fe];nn[ze]=globalThis[ze]}}if(on){const O=Et.length;for(let Fe=0;Fe<O;Fe++){const ze=Et[Fe];globalThis[ze]=on[ze]}}}const ge=v?.getScripts().getModules()?.getByName("scripts")?.getSource()??"";return s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[s.jsx(o.Suspense,{children:s.jsx(qa,{theme:f?"extended-dark":"extended",options:{...xa,fixedOverflowWidgets:!0,readOnly:l},language:"typescript",value:ge,onValidate:O=>{let Fe=!1;const ze=O?O.length:0;for(let H=0;!Fe&&H<ze;H++)O[H].severity===8&&(Fe=!0)},beforeMount:O=>{O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1,diagnosticCodesToIgnore:[2307]}),O.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),O.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),O.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let Fe=!1,ze=!1;try{const H=await(async()=>await(await fetch(Sa)).text())(),W=O.Uri.parse('inmemory://model/"sheetxl-models".d.ts');let me=O.editor.getModel(W);me?ze=!0:me=O.editor.createModel(H,"typescript",W),O.editor.setModelMarkers(me,"default",[]),Fe=!0}catch(H){console.warn("cant load types",H)}if(O.languages.registerLinkProvider("*",{provideLinks:(H,W)=>{const me=[],ue={links:me},fe=H.getLinesContent(),Me=fe.length;for(let ae=1;ae<=Me;ae++){const be=fe[ae-1],g=O.editor.tokenize(be,"typescript"),Ne=g[0].length;for(let Be=0;Be<Ne;Be++){const Te=g[0]?.[Be];if(Te&&Te.type.startsWith("string")){let u=Te.offset,L=g[0]?.[Be+1]?.offset??be.length,U=new O.Range(ae,u+1,ae,L+1),m=H.getValueInRange(U);const F=m[0];F!=="`"&&F!=="'"&&F!=='"'||(u++,m=m.substring(1));const G=m[m.length-1];G!=="`"&&G!=="'"&&G!=='"'||(u++,m=m.substring(0,m.length-1));try{v.getRanges(m)&&me.push({range:{endColumn:L,endLineNumber:ae,startColumn:u,startLineNumber:ae},tooltip:`Goto range '${m}'`,url:`/range/${m}`})}catch(te){console.warn(te)}}}}return ue}}),O.editor.registerLinkOpener({open(H){if(H?.path?.startsWith("/range/")){try{v.getRanges(H.path.substring(7))?.select()}catch(W){console.warn("invalid range",W)}return!0}return!1}}),!ze){const H=O.languages.typescript.typescriptDefaults.getCompilerOptions();O.languages.typescript.typescriptDefaults.setCompilerOptions({...H,target:O.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,baseUrl:"inmemory://model/",allowNonTsExtensions:!0})}if(Y.current&&(await cr(p.current.editor,p.current.monaco,Y.current),Y.current=null),M.current&&requestAnimationFrame(async()=>{M.current&&O.editor.focus()}),!on){on={};const H=Et.length;for(let W=0;W<H;W++){const me=Et[W];on[me]=globalThis[me]}}})()},onMount:je})}),De]})},[v,D,l,De,f]),ke=r.useImperativeElement(t,()=>({isScriptEditorElement:()=>!0,focus:ge=>{de(ge)},close:()=>qe(),getEditor:()=>v?.getEditor()}),[v]);return o.useEffect(()=>(c&&requestAnimationFrame(()=>{ke.current?.focus()}),()=>{p.current?.editor&&requestAnimationFrame(()=>{ke.current?.contains(document.activeElement)&&ke.current?.focus()})}),[]),s.jsx("div",{className:ct("script-editor",ba,n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...i},ref:ke,...y,children:Ie})})),Ta=Object.freeze(Object.defineProperty({__proto__:null,FindScopeOptions:{Workbook:"workbook",Sheet:"sheet"}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>d.LicenseManager}),exports.ChartAreaIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z"}),s.jsx("path",{className:"styled info_light",d:"M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z"}),s.jsx("path",{className:"styled info_dark",d:"M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z"})]}),exports.ChartAreaStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z"}),s.jsx("path",{className:"styled background",d:"M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z"}),s.jsx("path",{className:"styled info_light",d:"M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartAreaStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1941 h -1834 v -1834 h 1834 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z"}),s.jsx("path",{className:"styled info_light",d:"M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z"})]}),exports.ChartBarIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z"}),s.jsx("path",{className:"styled background",d:"M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z"}),s.jsx("path",{className:"styled info_light",d:"M 1813 277 v 299 h -1706 v -299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1088 v 299 h -810 v -299 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 896 1109 h -795 v -42 h 838 v 322 h -43 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z"})]}),exports.ChartBarStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 704 832 v -469 h 640 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1600 v -469 h 811 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z"})]}),exports.ChartBarStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 533 832 v -469 h 1195 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1173 1600 v -469 h 555 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z"})]}),exports.ChartBubble3DIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartBubbleIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1387 h -469 v -640 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 1131 h -469 v -811 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z"})]}),exports.ChartColumnStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1515 h -469 v -1195 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 875 h -469 v -555 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z"})]}),exports.ChartEditor=ii,exports.ChartLineIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z"}),s.jsx("path",{className:"styled info",d:"M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z"})]}),exports.ChartLineMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z"}),s.jsx("path",{className:"styled info",d:"M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z"})]}),exports.ChartLineStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z"})]}),exports.ChartLineStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 1877 299 h -1770 v -43 h 1770 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedPercentMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z"})]}),exports.ChartPieDoughnutIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z"}),s.jsx("path",{className:"styled background",d:"M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z"}),s.jsx("path",{className:"styled current_color",d:"M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z"}),s.jsx("path",{className:"styled info_light",d:"M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z"})]}),exports.ChartPieIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z"}),s.jsx("path",{className:"styled current_color",d:"M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z"}),s.jsx("path",{className:"styled info_light",d:"M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z"})]}),exports.ChartScatterLinesIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z"}),s.jsx("path",{className:"styled info",d:"M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z"}),s.jsx("path",{className:"styled current_color",d:"M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartScatterLinesMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z"}),s.jsx("path",{className:"styled background",d:"M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z"}),s.jsx("path",{className:"styled info",d:"M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z"})]}),exports.ChartScatterLinesMarkersSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z"}),s.jsx("path",{className:"styled background",d:"M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z"}),s.jsx("path",{className:"styled info",d:"M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z"})]}),exports.ChartScatterLinesSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z"}),s.jsx("path",{className:"styled info",d:"M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z"})]}),exports.ChartScatterMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"}),s.jsx("path",{className:"styled background",d:"M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z"}),s.jsx("path",{className:"styled info",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"})]}),exports.CommandContext=Ta,exports.CornerTriangle=uo,exports.DefaultTaskPaneRegistry=En,exports.DocThemesContext=Tn,exports.DocThemesProvider=e=>{const{themes:t,children:n}=e;return s.jsx(Tn.Provider,{value:t,children:n})},exports.EditableLabel=Tr,exports.EmptyFrame=Yl,exports.FilterButton=dr,exports.LogoNoPaddingIcon=e=>s.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[s.jsx("path",{d:"M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z",fill:"#547DBE"}),s.jsx("path",{d:"m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z",fill:"#FFFFFF"}),s.jsx("path",{d:"m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z",fill:"#547DBE",fillOpacity:"0.4"}),s.jsx("path",{d:"m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z",strokeWidth:"2.5",stroke:"#EB594D",fill:"#f9CECB"})]}),exports.LogoTextNoPaddingIcon=vr,exports.MovableArea=xr,exports.PictureEditor=Mr,exports.ScriptEditor=Ma,exports.SheetCellEditor=gr,exports.SheetCellRenderer=ur,exports.SheetElement=kr,exports.SheetScrollbar=bo,exports.StaticBorderRenderer=xl,exports.StyledStrokePath=mr,exports.Tab=nl,exports.TabStrip=rl,exports.TaskPaneArea=El,exports.TaskPaneProvider=({children:e,renderArea:t,onUpdateArea:n,registry:i=En})=>{const a=o.useRef(null),l=o.useRef(null),[f,h]=o.useState(null),[c,C]=o.useState(null),k=r.useCallbackRef(p=>{const M=t({registry:i,onClose:()=>{C(null),n?.(null)},ref:T=>{T&&C(T)}});return n?.(M),M},[t,i,f]),y=o.useMemo(()=>({activateTaskPane(p,M){l.current!==p&&(a.current?a.current.activateTaskPane(p,M):(h(p),k(p)))}}),[]);return o.useEffect(()=>{c&&f&&(c.activateTaskPane(f,{autoFocus:!0}),h(null))},[f,c]),o.createElement(Cr.Provider,{value:c??y},e)},exports.TaskPaneStrip=wo,exports.TaskPaneTitle=yo,exports.createCellEditStateFromCell=hr,exports.useBordersOverlay=Co,exports.useDocThemes=()=>{const e=o.useContext(Tn),[t]=o.useState(()=>new d.ThemeCollection);return o.useMemo(()=>e||t,[e])},exports.useModelListener=Qe,exports.useMovableCommands=qr,exports.useRangeListener=(e,t,n,i)=>{const a=o.useRef(n);a.current=n;const l=i?.fireOnAddressChange??!0;o.useEffect(()=>{if(!e||!t||!a.current){const c={getSource:()=>null,getFrom:()=>null,getTo:()=>null,trigger:"delete",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()};return void a.current?.(c)}const f=c=>{a.current?.(c)},h=e.getRange(t).addListener(f,i);if(l){const c=e.getRange(t);f({getSource:()=>c,getFrom:()=>null,getTo:()=>null,trigger:"modelChange",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()})}return()=>{h?.()}},[e,t])},exports.useSheetCommands=wr,exports.useSheetCopyPaste=br,exports.useTaskPaneArea=yr;
|
|
33
|
+
`,p=!0));const M=[{range:new t.Range(c.lineNumber,c.column,c.lineNumber,c.column),text:`${k}`}];let T=null;i.pushEditOperations([],M,z=>(T=z[0].range,y&&T.startLineNumber++,p&&T.endLineNumber--,[new t.Selection(T.startLineNumber,T.startColumn,T.endLineNumber,T.endColumn)])),e.setSelection({startLineNumber:T.endLineNumber,startColumn:T.endColumn,endLineNumber:T.startLineNumber,endColumn:T.startColumn})};function Ra(e,t){let n=null;const i=e.length;for(let a=0;!n&&a<i;a++){const l=e[a];l.getName()===t.text&&(n=l)}return n?n.getContext():"formula"}function vo(e,t,n,i,a=[]){if(i.kind==="function"&&i.kindModifiers==="export"){const l=i.spans[0].start,f=e.getPositionAt(l);a.push({name:i.text,type:Ra(n,i),lineNumber:f.lineNumber})}if(i.childItems)for(const l of i.childItems)vo(e,t,n,l,a);return a}function To(e,t,n="function",i){const a=e.spans,l=a.length;for(let f=0;f<l;f++){const h=a[f];if(h.start<=t&&t<h.start+h.length){if(e.kind===n&&(!i||e.kindModifiers===i))return e;for(const c of e.childItems||[]){const C=To(c,t,n,i);if(C)return C}}return null}}function ka(e){return e.kind==="comment"}const Ma=o.memo(o.forwardRef((e,t)=>{const{className:n,style:i,commands:a,readOnly:l=!1,darkMode:f,loadingPanel:h,autoFocus:c=!0,frame:C,onStatusChange:k,...y}=e,p=o.useRef(null),M=o.useRef(!1),T=o.useMemo(()=>({contains(ge){if(!p.current)return;const O=p.current.editor;return O&&O.getDomNode()?.contains(ge)},focus(){if(!p.current)return;const ge=p.current.editor;return ge&&ge.getDomNode()?.focus()}}),[]),z=o.useMemo(()=>[new r.Command("help",T,{label:"Script Commands",description:"Open Editor Commands",shortcut:{key:"F1"}},()=>{})],[]),D=o.useMemo(()=>{let ge=null;const O=()=>T;return ge=a?a.createChildGroup(O,"scriptEditor",!1):new r.CommandGroup(O,"scriptEditor"),ge.addCommands(z,!0),ge},[a,z]),Z=a.getGroup("workbook"),K=r.useCommands(Z,["executeSelectedScript","saveScripts"]),w=K[0],N=K[1],v=w?.getContext(),[I,q]=o.useState({message:"Loading",cursor:"",dirty:!1}),[X,E]=o.useState({loading:!1,compiling:!1,errors:[],warnings:[]}),j=r.useCallbackRef(ge=>{q(O=>{const Fe={...O,...ge};return he.CommonUtils.deepEqual(Fe,O)?O:(N.update({disabled:!Fe.dirty}).updateCallback(async()=>{await $()}),Fe)})},[k,N]);o.useEffect(()=>{k?.(I)},[k,I]);const $=r.useCallbackRef(async()=>{if(!p.current)return;const ge=p.current.editor;let O;if(I.dirty){const Fe=ge.getValue();await v?.saveSource(Fe),O=v?.getScripts().getModules().getByName("scripts");const ze=O?.getSource(),H=ge.getValue(),W=(ze?.length??0)!==Fe.length||ze!==H;j({dirty:W})}else O=v?.getScripts().getModules().getByName("scripts");return O},[I]);o.useEffect(()=>{const ge=C?.addListener({onBeforeHide:async()=>(await $(),!0)});return()=>{ge?.()}},[C]),o.useEffect(()=>{const ge=v?.getScripts();if(ge)return ge.addListeners({onBeforeSearch:()=>$()})},[v]);const ve=r.useCallbackRef(ge=>{w?.execute(ge)},[w]),Y=o.useRef(""),[_,A]=o.useState(!1),J=r.useCallbackRef(async()=>{if(!p.current)return null;const ge=p.current,O=ge.editor;if(!O)return null;const Fe=ge.monaco,ze=await(async(H,W,me="export")=>{const ue=H.getModel();if(!ue)return null;const fe=await W.languages.typescript.getTypeScriptWorker(),Me=await fe(ue.uri),ae=await Me.getNavigationTree(ue.uri.toString());let be=null,g=H.getSelection();if(!g)return null;const Ne=g.startLineNumber===g.endLineNumber&&g.startColumn===g.endColumn?ue.getLineCount():Math.min(g.endLineNumber,ue.getLineCount());for(let Be=g.startLineNumber;!be&&Be<=Ne;Be++){const Te=To(ae,ue.getOffsetAt({lineNumber:Be,column:1}),"function",me);Te&&(be=Te.text)}return be})(O,Fe);return j({message:(ze??"").toUpperCase()}),ze?{source:O.getValue(),name:ze}:null},[]);r.useCallbackRef(he.CommonUtils.debounce($,200),[]);const x=r.useCallbackRef(async(ge,O,Fe)=>{E(H=>({...H,compiling:!0}));const ze=await v?.getScripts().createModule({source:Fe?.getValue(),declarationsOnly:!0});ze&&((async function(H,W){const me=[];for(let ue=1;ue<H.getLineCount()+1;ue++){const fe={startLineNumber:ue,startColumn:1,endLineNumber:ue,endColumn:H.getLineLength(ue)+1},Me=H.getValueInRange(fe).indexOf("modelt");Me!==-1&&me.push({message:"found 'modelt'",resource:"https://www.sheetxl.com",severity:W.MarkerSeverity.Hint,startLineNumber:fe.startLineNumber,startColumn:Me+1,endLineNumber:fe.startLineNumber,endColumn:Me+5})}W.editor.setModelMarkers(H,"owner",me)})(ge,O),(async function(H,W,me,ue){const fe=await W.languages.typescript.getTypeScriptWorker(),Me=await fe(H.uri),ae=await Me.getNavigationTree(H.uri.toString()),be=vo(H,W,ue,ae).map(g=>{let Ne=null,Be=null;return g.type==="formula"?(Ne="formula.margin-icon",Be="Formula"):g.type==="macro"?(Ne="macro.margin-icon",Be="Macro"):g.type==="autoRun"&&(Ne="autorun.margin-icon",Be="Auto Run"),{range:new W.Range(g.lineNumber,1,g.lineNumber,1),options:{isWholeLine:!1,glyphMarginClassName:Ne,glyphMarginHoverMessage:{value:Be},stickiness:W.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}});Pe.current&&Pe.current.clear(),Pe.current=me.createDecorationsCollection(be)})(ge,O,Fe,ze?ze.getFunctions().getItems():he.CommonUtils.EmptyArray),E(H=>({...H,compiling:!1})))},[v]),S=r.useCallbackRef(he.CommonUtils.debounce(x,580),[]),oe=r.useCallbackRef(async(ge=void 0)=>{if(!p.current||!v)return;const O=p.current.editor.getPosition(),Fe={cursor:O?O.toString():""};ge!==void 0&&(Fe.message=ge),j(Fe);const ze=J();v.setSelectedFunction(ze)},[v]);o.useEffect(()=>{},[X]);const ie=o.useRef(null),qe=r.useCallbackRef(async()=>{await $(),C?.close()},[C]);o.useEffect(()=>{if(!v)return;const ge={insertSnippet:Fe=>{p.current?.editor&&cr(p.current.editor,p.current.monaco,Fe)},close:()=>qe()};v.setEditor(ge),v.setSelectedFunction(J());const O=v.addContainerListener({onBeforeSave:async()=>{$()},onReadonlyChange(){},onScriptChange:async()=>{if(!p.current?.editor||!v)return;const Fe=p.current.editor,ze=v.getScripts().getModules().getItems()[0]?.getSource()??"";Fe.setValue(ze)}});return()=>{v.setEditor(null),O()}},[v]),o.useEffect(()=>()=>{const ge=ie.current;if(ge){ge.dispose();const O=ge.debounceTimer;O!==void 0&&clearTimeout(O),ie.current=null}},[_]);const de=r.useCallbackRef(ge=>{const O=p.current?.editor;return!!O&&(O.focus(ge),!0)},[I]),Pe=o.useRef(null),je=r.useCallbackRef((ge,O)=>{p.current={monaco:O,editor:ge},A(!0),oe("Loading Types");const Fe=v?.getScripts().getModules().getItems()[0]?.getSource()??"";ge.setValue(Fe),Promise.resolve().then(()=>require("./CXgnB-1pBVJaAbPj.cjs")).then(H=>H.customEditor).then(async H=>{oe(""),H.AutoTypings.create(ge,{shareCache:!0,dontAdaptEditorOptions:!0,monaco:O,onUpdate:(W,me)=>{if(W.type==="LookedUpPackage"&&W.success!==void 0){const ue=O.languages.typescript.typescriptDefaults.getDiagnosticsOptions();O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({...ue,diagnosticCodesToIgnore:[]})}},onError:W=>{W==="Not implemented yet"&&(W="Compile Errors"),console.warn("Error compiling types",W)}}).then(W=>{ie.current=W;const me=ge.getModel();S(me,O,ge),(()=>{if(sr)return;const ue=(Me,ae)=>{try{if(ae===void 0)try{delete globalThis[Me]}catch{try{globalThis[Me]=void 0}catch{}}else globalThis[Me]=ae}catch{}},fe=Et.length;for(let Me=0;Me<fe;Me++){const ae=Et[Me];ue(ae,nn[ae])}nn=void 0,sr=!0})()})}),ge.addCommand("executeScript",function(H,...W){W?.[0]&&ve({functionName:W?.[0]})},""),ge.addAction({id:"executeScript",label:"Execute",keybindings:[O.KeyCode.F8],run:async H=>{const W=J();v?.setSelectedFunction(W);const me=await W;ve(me)}}),ge.addAction({id:"saveScript",label:"Save Script",keybindings:[O.KeyMod.CtrlCmd|O.KeyCode.KeyS],run:H=>{$()}}),ge.onMouseDown(async H=>{if(H.target.type===O.editor.MouseTargetType.GUTTER_GLYPH_MARGIN){const W=H.target.position.lineNumber,me=await O.languages.typescript.getTypeScriptWorker(),ue=await me(ze.uri),fe=await ue.getNavigationTree(ze.uri.toString()),Me=(await $()).getFunctions().getItems(),ae=vo(ze,O,Me,fe).find(be=>be.lineNumber===W);if(ae){const be=H.event.browserEvent.button;be===0?ae.type==="macro"||ae.type==="autoRun"?ve({functionName:ae.name}):ae.type==="formula"&&v?.quickInsertFunction?.(ae.name):be===2&&(console.log("Context menu for function:",ae.name),H.event.browserEvent.preventDefault())}}}),ge.onDidChangeModelContent(()=>{j({dirty:!0}),S(ze,O,ge)}),O.editor.onDidChangeMarkers(H=>{H.some(W=>W.toString()===ze.uri.toString())});const ze=ge.getModel();(function(H,W){W.languages.registerInlayHintsProvider("typescript",{provideInlayHints(me,ue,fe){const Me=[];for(let ae=1;ae<me.getLineCount()+1;ae++){const be={startLineNumber:ae,startColumn:1,endLineNumber:ae,endColumn:me.getLineLength(ae)+1},g="hint",Ne=me.getValueInRange(be).indexOf("hint");Ne!==-1&&Me.push({kind:W.languages.InlayHintKind.Type,position:{lineNumber:be.startLineNumber,column:Ne+g.length+1},label:"[hint]"})}return{hints:Me,dispose:()=>{}}}})})(0,O),ze.onDidChangeContent(H=>{const W=v?.getScripts().getModules().getByName("scripts"),me=W?.getSource(),ue=ge.getValue(),fe=(me?.length??0)!==ue.length||me!==ue;j({dirty:fe})}),ge.onDidChangeCursorPosition(H=>{oe()})},[v]),De=o.useMemo(()=>_?null:h||s.jsx("div",{style:{position:"absolute",width:"100%",height:"100%"},children:"Loading..."}),[_,h]),Ie=o.useMemo(()=>{if(!_){if(!nn){nn={};const O=Et.length;for(let Fe=0;Fe<O;Fe++){const ze=Et[Fe];nn[ze]=globalThis[ze]}}if(on){const O=Et.length;for(let Fe=0;Fe<O;Fe++){const ze=Et[Fe];globalThis[ze]=on[ze]}}}const ge=v?.getScripts().getModules()?.getByName("scripts")?.getSource()??"";return s.jsxs("div",{style:{display:"flex",flex:"1 1 100%",width:"100%",flexDirection:"row",position:"relative",boxSizing:"border-box"},children:[s.jsx(o.Suspense,{children:s.jsx(qa,{theme:f?"extended-dark":"extended",options:{...xa,fixedOverflowWidgets:!0,readOnly:l},language:"typescript",value:ge,onValidate:O=>{let Fe=!1;const ze=O?O.length:0;for(let H=0;!Fe&&H<ze;H++)O[H].severity===8&&(Fe=!0)},beforeMount:O=>{O.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!1,noSyntaxValidation:!1,diagnosticCodesToIgnore:[2307]}),O.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),O.editor.defineTheme("extended",{base:"vs",inherit:!0,rules:[],colors:{}}),O.editor.defineTheme("extended-dark",{base:"vs-dark",inherit:!0,rules:[],colors:{}}),(async()=>{let Fe=!1,ze=!1;try{const H=await(async()=>await(await fetch(Sa)).text())(),W=O.Uri.parse('inmemory://model/"sheetxl-models".d.ts');let me=O.editor.getModel(W);me?ze=!0:me=O.editor.createModel(H,"typescript",W),O.editor.setModelMarkers(me,"default",[]),Fe=!0}catch(H){console.warn("cant load types",H)}if(O.languages.registerLinkProvider("*",{provideLinks:(H,W)=>{const me=[],ue={links:me},fe=H.getLinesContent(),Me=fe.length;for(let ae=1;ae<=Me;ae++){const be=fe[ae-1],g=O.editor.tokenize(be,"typescript"),Ne=g[0].length;for(let Be=0;Be<Ne;Be++){const Te=g[0]?.[Be];if(Te&&Te.type.startsWith("string")){let u=Te.offset,L=g[0]?.[Be+1]?.offset??be.length,U=new O.Range(ae,u+1,ae,L+1),m=H.getValueInRange(U);const F=m[0];F!=="`"&&F!=="'"&&F!=='"'||(u++,m=m.substring(1));const G=m[m.length-1];G!=="`"&&G!=="'"&&G!=='"'||(u++,m=m.substring(0,m.length-1));try{v.getRanges(m)&&me.push({range:{endColumn:L,endLineNumber:ae,startColumn:u,startLineNumber:ae},tooltip:`Goto range '${m}'`,url:`/range/${m}`})}catch(te){console.warn(te)}}}}return ue}}),O.editor.registerLinkOpener({open(H){if(H?.path?.startsWith("/range/")){try{v.getRanges(H.path.substring(7))?.select()}catch(W){console.warn("invalid range",W)}return!0}return!1}}),!ze){const H=O.languages.typescript.typescriptDefaults.getCompilerOptions();O.languages.typescript.typescriptDefaults.setCompilerOptions({...H,target:O.languages.typescript.ScriptTarget.ES2020,lib:["webworker","es2020","esnext.asynciterable"],downlevelIteration:!0,moduleResolution:O.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,baseUrl:"inmemory://model/",allowNonTsExtensions:!0})}if(Y.current&&(await cr(p.current.editor,p.current.monaco,Y.current),Y.current=null),M.current&&requestAnimationFrame(async()=>{M.current&&O.editor.focus()}),!on){on={};const H=Et.length;for(let W=0;W<H;W++){const me=Et[W];on[me]=globalThis[me]}}})()},onMount:je})}),De]})},[v,D,l,De,f]),ke=r.useImperativeElement(t,()=>({isScriptEditorElement:()=>!0,focus:ge=>{de(ge)},close:()=>qe(),getEditor:()=>v?.getEditor()}),[v]);return o.useEffect(()=>(c&&requestAnimationFrame(()=>{ke.current?.focus()}),()=>{p.current?.editor&&requestAnimationFrame(()=>{ke.current?.contains(document.activeElement)&&ke.current?.focus()})}),[]),s.jsx("div",{className:ct("script-editor",ba,n),style:{display:"flex",flexDirection:"row",flex:"1 1 100%",position:"relative",...i},ref:ke,...y,children:Ie})})),Ta=Object.freeze(Object.defineProperty({__proto__:null,FindScopeOptions:{Workbook:"workbook",Sheet:"sheet"}},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(exports,"LicenseManager",{enumerable:!0,get:()=>d.LicenseManager}),exports.ChartAreaIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 253 256 l 544 -345 l 74 -91 l 644 466 l 277 -464 m 0 718 l -913 -662 l -476 591 l -403 -408 v 785 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 530 1511 l 473 -588 l 914 656 l 24 53 v 304 h -1834 l 2 -864 z"}),s.jsx("path",{className:"styled info_light",d:"M 1939 923 v 658 l -288 -192 m -1272 -40 l 525 -312 l -374 474 z"}),s.jsx("path",{className:"styled info_dark",d:"M 361 1342 l 572 -362 l 22 36 l -571 362 m 1248 1 l 287 -483 l 37 22 l -287 482 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 896 v 1067 h -1878 v -1878 h 43 v 989 l 400 405 l 471 -585 l 921 667 v -665 m 0 1024 v -306 l -913 -662 l -476 591 l -403 -408 v 785 z"})]}),exports.ChartAreaStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 640 v 926 l -641 -554 l -618 703 l -576 -575 v 780 h 1835 v 43 h -1878 v -1878 h 43 v 353 l 576 577 l 661 -704 l 276 329 z"}),s.jsx("path",{className:"styled background",d:"M 1963 1941 h -1856 v -853 l 597 597 l 618 -704 l 641 555 z"}),s.jsx("path",{className:"styled info_light",d:"M 1963 1536 l -641 -555 l -618 704 l -597 -597 v -640 l 597 597 l 661 -704 l 269 319 h 329 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 640 v 43 h -342 l -258 -310 l -659 702 l -597 -598 v -60 l 597 598 l 661 -704 l 276 329 m 322 866 v 60 l -641 -554 l -618 703 l -597 -597 v -62 l 597 599 l 618 -704 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartAreaStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 1524 l -788 -746 l -576 662 l -428 -428 v 823 h 1792 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1941 h -1834 v -1834 h 1834 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 85 v 1878 h -1878 v -1878 m 1835 43 h -1792 v 1792 h 1792 z"}),s.jsx("path",{className:"styled info_light",d:"M 1941 107 v 1493 l -810 -768 l -576 661 l -448 -448 v -938 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1963 1649 l -831 -786 l -576 662 l -471 -467 v -973 h 1878 m -43 1465 v -1422 h -1792 v 908 l 426 426 l 575 -661 z"})]}),exports.ChartBarIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1707 v 341 h -640 v 299 h -1067 v 171 h 811 v 298 h 512 v 342 h -1323 v 213 m 0 -1067 h 1024 v -256 h -1024 m 0 1067 h 1280 v -256 h -1280 z"}),s.jsx("path",{className:"styled background",d:"M 1429 1387 v 298 h -1322 v -298 m 1066 -811 v 299 h -1066 v -299 z"}),s.jsx("path",{className:"styled info_light",d:"M 1813 277 v 299 h -1706 v -299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 101 597 v -42 h 1691 v -256 h -1691 v -43 h 1734 v 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1088 v 299 h -810 v -299 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 896 1109 h -795 v -42 h 838 v 322 h -43 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 768 h 1024 v -256 h 43 v 299 h -1067 v 469 h 1323 v 342 h -1323 v 213 m 0 -512 v 256 h 1280 v -256 z"})]}),exports.ChartBarStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1237 v 512 h -1237 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 555 v -427 h -555 m 0 1195 h 768 v -427 h -768 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 597 v 469 m -597 768 v -469 h 810 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 597 v 512 h -597 v 256 h 811 v 512 h -811 v 299 m 0 -768 v 427 h 768 v -427 m -768 -768 v 427 h 555 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 704 832 v -469 h 640 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1365 341 v 512 h -682 v -512 m 640 43 h -598 v 427 h 598 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 917 1600 v -469 h 811 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -853 v -512 m 811 43 h -768 v 427 h 768 z"})]}),exports.ChartBarStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 1621 v 512 h -1621 v 256 h 1621 v 512 h -1621 v 299 m 0 -1109 h 384 v -427 h -384 m 0 1195 h 1024 v -427 h -1024 z"}),s.jsx("path",{className:"styled background",d:"M 107 832 v -469 h 426 v 469 m -426 768 v -469 h 1066 v 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 256 h 427 v 512 h -427 v 256 h 1067 v 512 h -1067 v 299 m 0 -768 v 427 h 1024 v -427 m -1024 -768 v 427 h 384 v -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 533 832 v -469 h 1195 v 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1749 341 v 512 h -1237 v -512 m 1195 43 h -1152 v 427 h 1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1173 1600 v -469 h 555 v 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1749 1109 v 512 h -597 v -512 m 555 43 h -512 v 427 h 512 z"})]}),exports.ChartBubble3DIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartBubbleIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 171 v -1323 h 341 v 512 h 299 v 811 h 170 v -1067 h 299 v -640 h 341 v 1707 m -853 0 v -768 h -256 v 768 m 1067 0 v -1664 h -256 v 1664 z"}),s.jsx("path",{className:"styled background",d:"M 1728 1941 h -299 v -1706 h 299 m -811 1706 h -298 v -810 h 298 z"}),s.jsx("path",{className:"styled info_light",d:"M 619 1941 h -299 v -1322 h 299 z"}),s.jsx("path",{className:"styled info_dark",d:"M 640 1941 h -43 v -1301 h -256 v 1301 h -42 v -1344 h 341 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1429 1941 h -298 v -1066 h 298 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1432 896 h -280 v 1050 h -43 v -1093 h 323 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 768 v -768 h -256 v -43 h 299 v 811 h 469 v -1707 h 341 v 1707 m -42 0 v -1664 h -256 v 1664 z"})]}),exports.ChartColumnStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1195 h 512 v 1195 h 256 v -1621 h 512 v 1621 m -810 -512 h -427 v 512 h 427 m 768 -768 h -427 v 768 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -554 h 469 m 768 554 h -469 v -810 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -555 h 512 v 555 h 256 v -811 h 512 v 811 m -469 0 h 427 v -768 h -427 m -768 768 h 427 v -512 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1387 h -469 v -640 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 725 h 512 v 683 h -512 m 43 -640 v 597 h 427 v -597 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 1131 h -469 v -811 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 853 h -512 m 43 -811 v 768 h 427 v -768 z"})]}),exports.ChartColumnStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -1621 h 512 v 1621 h 256 v -1621 h 512 v 1621 m -810 -384 h -427 v 384 h 427 m 768 -1024 h -427 v 1024 h 427 z"}),s.jsx("path",{className:"styled background",d:"M 832 1941 h -469 v -426 h 469 m 768 426 h -469 v -1066 h 469 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 h 213 v -427 h 512 v 427 h 256 v -1067 h 512 v 1067 m -469 0 h 427 v -1024 h -427 m -768 1024 h 427 v -384 h -427 z"}),s.jsx("path",{className:"styled info_light",d:"M 832 1515 h -469 v -1195 h 469 z"}),s.jsx("path",{className:"styled info_dark",d:"M 341 299 h 512 v 1237 h -512 m 43 -1195 v 1152 h 427 v -1152 z"}),s.jsx("path",{className:"styled secondary_light",d:"M 1600 875 h -469 v -555 h 469 z"}),s.jsx("path",{className:"styled secondary_dark",d:"M 1109 299 h 512 v 597 h -512 m 43 -555 v 512 h 427 v -512 z"})]}),exports.ChartEditor=ii,exports.ChartLineIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 197 144 l 402 -402 l 361 360 l 263 -301 l 32 28 l -265 303 l 264 265 l -30 30 l -262 -263 l -317 362 l -444 -326 l -775 776 v 268 m 806 -1074 l 407 299 l 292 -335 l -332 -332 m -1173 832 v 281 l 740 -740 l -162 -119 z"}),s.jsx("path",{className:"styled info",d:"M 122 1658 l -30 -30 l 1209 -1210 l 655 655 l -30 30 l -625 -625 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1165 l 574 -574 l 639 469 l 584 -668 l 32 28 l -610 697 l -641 -470 l -578 578 v 610 z"})]}),exports.ChartLineMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 99 73 l 175 -190 h -18 v -170 h 170 v 140 l 233 233 l 280 -373 v -171 h 170 v 171 h -118 l -302 402 l 194 195 h 98 v 171 h -171 v -171 h 13 l -160 -160 l -109 144 v 144 h -170 v -104 l -279 -205 l -703 759 v 147 h -85 m 1015 -1152 l -199 215 l 251 184 v -15 h 139 l 110 -147 l -237 -237 m -1079 726 v 256 h 48 l 705 -761 l -70 -52 v 2 h -171 v -12 l -427 426 v 141 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -640 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 416 -554 v -171 h 170 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 z"}),s.jsx("path",{className:"styled info",d:"M 1694 1024 h 98 v 171 h -171 v -171 h 13 l -427 -427 h -64 l -930 1005 v 147 h -170 v -170 h 133 l 909 -982 h -18 v -170 h 170 v 140 z"})]}),exports.ChartLineStackedIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1037 l 571 -570 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 l -581 582 v 452 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 121 1189 l -29 -31 l 607 -606 l 535 259 l 651 -550 l 27 33 l -669 565 l -534 -259 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -256 h -42 v -171 h 42 v -1067 h 43 v 1067 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 h -118 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -85 v 256 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1802 427 l -437 581 v 144 h -170 v -104 l -384 -282 v 2 h -171 v -12 l -427 426 v 141 h -170 v -171 h 140 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -554 v -171 h 171 v 171 z"})]}),exports.ChartLineStackedPercentIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 171 h 1749 v 43 h -1749 v 1335 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"}),s.jsx("path",{className:"styled info",d:"M 1877 299 h -1770 v -43 h 1770 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1549 l 573 -574 l 576 424 l 563 -751 l 32 27 l -587 781 l -578 -425 l -579 578 v 226 z"})]}),exports.ChartLineStackedPercentMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1195 h -42 v -171 h 42 v -128 h 43 v 128 h 85 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 h 171 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -85 v 1195 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -214 h -42 v -170 h 42 v -1494 h 43 v 1494 h 55 l 457 -457 v -98 h 171 v 117 l 384 282 v -15 h 139 l 415 -555 v -170 h 171 v 170 h -118 l -437 582 v 144 h -170 v -104 l -384 -283 v 3 h -171 v -13 l -427 427 v 140 h -85 v 171 z"}),s.jsx("path",{className:"styled info",d:"M 1920 213 v 171 h -171 v -85 h -384 v 85 h -170 v -85 h -427 v 85 h -171 v -85 h -384 v 85 h -170 v -171 h 170 v 43 h 384 v -43 h 171 v 43 h 427 v -43 h 170 v 43 h 384 v -43 z"})]}),exports.ChartPieDoughnutIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 187 q -41 89 -98 168 q -58 78 -130 142 q -125 112 -284 176 q -160 64 -342 64 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 33 -244 q 33 -118 93 -221 q 59 -104 144 -190 q 84 -86 187 -148 q 102 -62 221 -97 q 118 -36 247 -39 m 307 1305 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 q -90 8 -167 48 q -78 39 -135 102 q -58 62 -91 144 q -33 81 -33 173 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 84 0 159 -27 q 74 -28 134 -76 m -293 530 q 173 0 325 -60 q 151 -61 270 -168 l -272 -272 q -66 54 -148 85 q -82 31 -175 31 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -100 37 -189 q 36 -90 100 -158 q 63 -69 149 -112 q 85 -43 183 -51 v -384 q -119 6 -228 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -56 97 -86 209 q -30 111 -30 231 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 z"}),s.jsx("path",{className:"styled background",d:"M 1658 1692 q -125 119 -286 187 q -162 68 -348 68 q -127 0 -244 -33 q -118 -33 -220 -93 q -103 -60 -186 -143 q -84 -84 -144 -186 q -60 -103 -93 -220 q -33 -118 -33 -245 q 0 -125 32 -241 q 32 -116 90 -217 q 58 -101 140 -184 q 81 -84 181 -144 q 99 -61 214 -95 q 115 -35 239 -38 v 429 q -97 5 -181 45 q -85 40 -148 106 q -63 65 -99 152 q -36 86 -36 184 q 0 101 39 190 q 38 89 104 155 q 66 66 155 105 q 89 38 190 38 q 91 0 171 -30 q 80 -31 144 -85 z"}),s.jsx("path",{className:"styled current_color",d:"M 1364 1406 q -69 61 -155 96 q -86 34 -185 34 q -106 0 -199 -40 q -94 -40 -163 -109 q -70 -70 -110 -163 q -40 -94 -40 -200 q 0 -103 39 -194 q 38 -92 105 -161 q 66 -69 156 -110 q 89 -42 191 -46 v 42 q -94 4 -175 43 q -82 38 -142 101 q -61 63 -96 147 q -35 84 -35 178 q 0 97 37 183 q 37 85 101 149 q 63 63 149 100 q 85 37 182 37 q 90 0 169 -31 q 79 -31 141 -86 m 332 333 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -98 58 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 239 q 32 114 91 214 q 58 99 140 181 q 81 81 181 140 q 99 58 214 90 q 114 32 238 32 q 179 0 335 -64 q 155 -65 276 -178 z"}),s.jsx("path",{className:"styled info_light",d:"M 1515 1024 q 0 -102 -38 -191 q -39 -89 -106 -156 q -67 -67 -156 -105 q -89 -39 -191 -39 q -5 0 -10 1 q -6 0 -11 0 v -426 q 5 0 11 0 q 5 -1 10 -1 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -302 -301 q 77 -68 122 -162 q 45 -95 45 -206 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -63 188 q -41 89 -98 168 q -58 78 -130 142 l -333 -334 q 81 -65 129 -159 q 47 -95 47 -207 q 0 -97 -37 -182 q -37 -86 -100 -149 q -64 -64 -149 -101 q -86 -37 -183 -37 q -11 0 -21 1 q -11 0 -22 1 v -471 q 11 0 22 0 q 10 -1 21 -1 m 627 1579 q 62 -61 112 -133 q 50 -73 85 -154 q 35 -81 54 -170 q 18 -89 18 -183 q 0 -124 -32 -238 q -32 -115 -90 -214 q -59 -100 -140 -181 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -239 -32 v 384 q 106 0 200 40 q 93 40 163 110 q 69 69 109 163 q 40 93 40 199 q 0 109 -42 204 q -42 94 -114 164 z"})]}),exports.ChartPieIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 130 -33 250 q -34 119 -95 224 q -62 104 -147 190 q -86 86 -190 147 q -105 61 -225 95 q -120 33 -249 33 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -126 32 -243 q 31 -117 89 -219 q 58 -102 140 -187 q 82 -86 182 -148 q 100 -62 217 -99 q 116 -37 243 -43 m -862 939 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 173 0 325 -61 q 151 -61 272 -167 l -638 -638 v -924 q -121 6 -230 41 q -109 35 -204 94 q -95 59 -172 140 q -78 81 -133 179 q -55 97 -85 209 q -31 111 -31 231 z"}),s.jsx("path",{className:"styled background",d:"M 1941 1024 q 0 127 -32 244 q -33 117 -93 219 q -60 102 -143 186 q -84 83 -186 143 q -102 60 -219 93 q -117 32 -244 32 q -127 0 -244 -32 q -117 -33 -219 -93 q -102 -60 -185 -143 q -84 -84 -144 -186 q -60 -102 -92 -219 q -33 -117 -33 -244 q 0 -127 33 -244 q 32 -117 92 -219 q 60 -102 144 -185 q 83 -84 185 -144 q 102 -60 219 -92 q 117 -33 244 -33 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 z"}),s.jsx("path",{className:"styled current_color",d:"M 1666 1709 q -127 118 -291 186 q -164 68 -351 68 q -130 0 -249 -33 q -120 -34 -224 -95 q -105 -62 -191 -147 q -86 -86 -147 -190 q -61 -105 -94 -225 q -34 -120 -34 -249 q 0 -128 33 -246 q 32 -119 92 -222 q 59 -103 143 -188 q 84 -86 186 -147 q 102 -62 220 -97 q 117 -35 244 -38 v 43 q -121 3 -233 37 q -112 33 -209 92 q -97 59 -177 140 q -80 81 -137 180 q -57 98 -88 211 q -31 113 -31 235 q 0 124 32 238 q 32 114 91 214 q 58 99 140 181 q 82 82 182 141 q 99 58 214 90 q 114 32 237 32 q 178 0 334 -65 q 156 -65 277 -177 z"}),s.jsx("path",{className:"styled info_light",d:"M 1024 107 q 127 0 244 33 q 117 32 219 92 q 102 60 186 144 q 83 83 143 185 q 60 102 93 219 q 32 117 32 244 q 0 99 -20 193 q -21 93 -58 178 q -38 85 -92 160 q -54 75 -121 138 l -647 -648 v -937 q 5 0 11 0 q 5 -1 10 -1 z"}),s.jsx("path",{className:"styled info_dark",d:"M 1024 85 q 129 0 249 34 q 120 33 225 95 q 104 61 190 147 q 85 85 147 190 q 61 104 95 224 q 33 120 33 249 q 0 104 -22 202 q -22 98 -62 187 q -41 89 -99 168 q -58 78 -130 142 q -9 -8 -15 -15 q -6 -6 -10 -10 q -5 -5 -5 -6 l -639 -638 v -969 m 670 1578 q 62 -61 112 -133 q 50 -72 85 -153 q 35 -82 54 -170 q 18 -89 18 -183 q 0 -123 -32 -237 q -32 -115 -90 -214 q -59 -100 -141 -182 q -82 -82 -181 -140 q -100 -59 -214 -91 q -115 -32 -238 -32 v 908 z"})]}),exports.ChartScatterLinesIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1503 1457 l -10 61 l -42 -6 l 16 -96 l -334 -380 l -309 389 l -72 -147 l -248 421 l -37 -21 l 262 -446 l -463 -951 l 39 -18 l 451 925 l 227 -387 l 149 168 l 564 -710 l -184 1143 l 263 299 l -68 -525 l 42 -5 l 83 661 m -728 -828 l -114 -130 l -212 360 l 54 112 m 644 14 l 155 -951 l -471 593 m 803 918 v 43 h -1878 v -1878 h 43 v 1835 z"}),s.jsx("path",{className:"styled info",d:"M 1493 1518 l -42 -6 l 180 -1103 l -807 1016 l -558 -1144 l 39 -18 l 527 1083 l 864 -1087 z"}),s.jsx("path",{className:"styled current_color",d:"M 1832 1832 l -842 -958 l -486 825 l -37 -21 l 516 -877 l 792 900 l -68 -525 l 42 -5 m 214 749 v 43 h -1878 v -1878 h 43 v 1835 z"})]}),exports.ChartScatterLinesMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 213 342 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 361 762 l 165 -282 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 78 89 l 449 -570 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -258 814 l 410 467 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 l 70 565 l -482 -549 l -46 145 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 53 -166 l -189 -214 l -295 375 l -69 -146 l -147 251 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 166 -283 l -375 -789 q -14 3 -28 3 m 982 1109 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1323 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 m -105 275 l -401 509 l 176 200 m -355 -301 l -187 301 l 52 129 l 258 -327 l -93 -106 q -15 3 -30 3 m -638 -683 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 z"}),s.jsx("path",{className:"styled background",d:"M 1771 296 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -35 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 m -1320 7 q 0 22 -8 42 q -9 19 -23 34 q -15 15 -34 24 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -35 -24 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 15 -15 35 -23 q 19 -9 41 -9 q 22 0 42 9 q 19 8 34 23 q 14 14 23 34 q 8 19 8 41 m 902 1232 q 0 23 -8 43 q -9 19 -23 34 q -15 14 -35 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -43 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 q 22 0 42 9 q 20 8 35 23 q 14 14 23 34 q 8 19 8 41 z"}),s.jsx("path",{className:"styled info",d:"M 1664 171 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -11 0 -20 -2 q -10 -2 -19 -5 l -319 1008 q 26 17 43 45 q 16 28 16 63 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 15 0 29 3 l 293 -923 l -724 918 l -466 -982 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 63 q -17 28 -44 45 l 435 919 l 734 -932 q -20 -18 -31 -42 q -11 -25 -11 -53 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m -1323 213 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 m 982 1152 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 m 341 -1152 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -18 27 q -7 15 -7 33 q 0 35 25 60 q 25 25 60 25 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1636 1182 l 70 565 l -825 -939 q -15 3 -30 3 l -360 615 q 29 17 47 46 q 17 29 17 64 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 q 11 0 23 3 l 357 -609 q -36 -14 -59 -46 q -23 -32 -23 -73 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 34 -16 62 q -16 28 -42 45 l 726 826 l -54 -422 q -5 1 -8 1 q -4 0 -8 0 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 38 -19 69 q -20 30 -52 46 z"})]}),exports.ChartScatterLinesMarkersSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 l -7 2 q -26 93 -66 161 q -40 68 -88 116 q -48 47 -101 76 q -54 29 -108 44 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -115 -15 -221 -84 q -107 -69 -207 -190 q -36 91 -59 176 q -24 85 -38 152 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 15 -73 42 -167 q 26 -95 69 -195 q -48 -62 -94 -141 q -47 -80 -89 -168 q -43 -88 -80 -178 q -37 -91 -64 -176 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 19 59 48 135 q 29 75 67 158 q 37 82 84 167 q 47 85 103 163 q 33 -72 76 -141 q 42 -70 96 -131 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 5 0 9 1 q 3 0 7 0 q 1 -20 2 -40 q 0 -21 0 -43 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 q 18 113 27 215 q 8 102 8 193 q 0 25 0 48 q 0 23 -2 46 q 32 16 51 46 q 19 30 19 68 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 m -171 -1206 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 q 0 35 25 60 q 25 25 60 25 m -1408 86 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 354 -278 q 59 -80 92 -194 q -23 -4 -42 -15 q -19 -12 -33 -28 q -14 -17 -22 -38 q -8 -21 -8 -45 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -57 63 -101 136 q -44 73 -77 150 q 41 53 87 99 q 45 46 96 82 q 50 36 106 60 q 55 23 115 32 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 z"}),s.jsx("path",{className:"styled background",d:"M 1305 1497 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 m -890 -1072 q 0 23 -9 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -42 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 22 0 42 9 q 20 8 35 23 q 15 15 24 35 q 9 20 9 43 m 1317 -167 q 0 23 -8 43 q -9 20 -24 35 q -15 15 -35 24 q -20 8 -43 8 q -23 0 -43 -8 q -20 -9 -35 -24 q -15 -15 -23 -35 q -9 -20 -9 -43 q 0 -23 9 -43 q 8 -20 23 -35 q 15 -15 35 -23 q 20 -9 43 -9 q 23 0 43 9 q 20 8 35 23 q 15 15 24 35 q 8 20 8 43 z"}),s.jsx("path",{className:"styled info",d:"M 1689 365 q 18 112 27 213 q 8 101 8 193 q 0 183 -35 322 q -35 138 -106 234 q -29 38 -60 67 q -32 29 -65 51 q -34 21 -68 36 q -35 14 -68 24 q -2 24 -13 46 q -11 21 -28 37 q -17 15 -39 24 q -22 9 -47 9 q -45 0 -78 -26 q -34 -26 -45 -66 q -114 -15 -224 -87 q -110 -72 -211 -196 q -101 -125 -189 -299 q -89 -174 -160 -393 q -25 -2 -46 -12 q -22 -11 -37 -28 q -16 -17 -25 -39 q -9 -23 -9 -48 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 45 -26 79 q -27 33 -69 44 q 23 69 59 161 q 35 92 83 191 q 48 99 109 197 q 61 98 136 179 q 74 81 161 137 q 87 55 187 70 q 1 -25 12 -47 q 11 -22 28 -38 q 17 -16 40 -25 q 22 -10 48 -10 q 45 0 79 28 q 34 27 45 69 q 61 -19 120 -56 q 59 -37 110 -105 q 133 -178 133 -530 q 0 -174 -33 -390 q -14 3 -28 3 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 35 -16 64 q -17 28 -44 45 m -1476 62 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 m 982 1152 q 35 0 60 -25 q 25 -25 25 -61 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 12 27 19 q 15 6 33 6 m 341 -1323 q 0 35 25 60 q 25 25 60 25 q 18 0 34 -6 q 15 -7 27 -18 q 11 -12 18 -27 q 7 -16 7 -34 q 0 -18 -7 -33 q -7 -16 -18 -27 q -12 -12 -27 -18 q -16 -7 -34 -7 q -35 0 -60 25 q -25 25 -25 60 z"}),s.jsx("path",{className:"styled current_color",d:"M 128 1920 h 1835 v 43 h -1878 v -1878 h 43 m 1664 1501 q 37 13 61 46 q 24 33 24 75 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 v -34 q 0 -140 -15 -248 q -16 -108 -42 -191 q -14 3 -28 3 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -29 13 -54 q 12 -26 32 -43 q -45 -61 -95 -94 q -51 -34 -93 -49 q -43 -15 -71 -17 q -29 -3 -31 -3 q -78 0 -144 16 q -67 15 -126 46 q 3 14 3 28 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -29 0 -55 -13 q -66 73 -115 161 q -49 87 -84 176 q -35 88 -58 172 q -24 83 -37 148 q 41 12 67 46 q 26 33 26 78 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -26 10 -48 q 9 -23 25 -40 q 16 -18 38 -28 q 22 -10 47 -12 q 14 -67 38 -152 q 23 -86 59 -177 q 36 -92 87 -182 q 50 -90 118 -167 q -38 -36 -38 -90 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 35 0 64 17 q 28 16 45 43 q 63 -32 133 -48 q 70 -17 154 -17 q 6 0 39 4 q 32 3 79 21 q 47 17 102 54 q 55 37 107 105 q 21 -9 45 -9 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 35 -16 63 q -17 28 -43 45 q 30 96 45 210 q 14 114 14 248 z"})]}),exports.ChartScatterLinesSmoothIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1577 -902 q 93 215 93 547 q 0 88 -6 184 l -43 -3 q 3 -47 5 -92 q 2 -45 2 -88 q 0 -277 -68 -470 q -25 97 -65 167 q -40 70 -89 119 q -49 48 -104 78 q -55 29 -108 46 q -54 16 -103 22 q -49 5 -87 5 q -74 0 -141 -21 q -68 -21 -129 -58 q -62 -37 -116 -88 q -55 -51 -104 -111 q -39 93 -64 181 q -25 88 -40 157 q -15 69 -21 112 q -6 42 -6 44 l -42 -4 q 0 -2 7 -48 q 6 -46 23 -120 q 16 -74 44 -168 q 27 -94 70 -192 q -60 -79 -109 -167 q -50 -88 -90 -174 q -40 -86 -70 -164 q -30 -79 -50 -141 q -21 -62 -32 -102 q -11 -40 -13 -47 l 42 -11 q 0 2 10 37 q 10 35 29 93 q 19 58 48 135 q 28 76 66 160 q 38 83 86 170 q 47 86 104 165 q 45 -96 106 -184 q 61 -89 142 -156 q 80 -68 181 -108 q 101 -40 227 -40 q 3 0 22 2 q 19 1 49 9 q 30 8 68 25 q 38 16 80 46 q 41 29 83 75 q 42 46 80 112 q 5 -42 8 -87 q 2 -45 2 -93 q 0 -243 -64 -562 l 42 -8 q 65 325 65 569 q 0 68 -5 130 q -5 61 -15 117 m -156 283 q 79 -106 111 -275 q -33 -74 -72 -125 q -40 -51 -81 -84 q -41 -34 -80 -52 q -39 -19 -69 -27 q -31 -9 -49 -11 q -19 -2 -20 -2 q -121 0 -218 41 q -97 40 -173 107 q -77 67 -135 155 q -58 87 -101 181 q 47 60 100 112 q 53 51 112 89 q 58 37 123 59 q 65 21 136 21 q 45 0 99 -7 q 54 -7 110 -27 q 55 -21 109 -58 q 54 -37 98 -97 z"}),s.jsx("path",{className:"styled info",d:"M 1792 1749 l -43 -3 q 6 -93 6 -178 q 0 -244 -51 -422 q -51 -179 -152 -287 q -47 -49 -93 -76 q -46 -28 -83 -40 q -38 -13 -62 -15 q -24 -3 -25 -3 q -124 0 -223 44 q -99 43 -177 114 q -78 71 -136 162 q -58 90 -100 186 q -42 95 -69 187 q -28 91 -44 164 q -16 72 -22 118 q -7 46 -7 49 l -42 -4 q 0 -3 5 -34 q 4 -32 14 -84 q 10 -52 27 -120 q 17 -68 43 -144 q 25 -76 60 -156 q 35 -80 82 -155 q 46 -76 105 -143 q 58 -67 131 -117 q 73 -51 161 -80 q 88 -29 193 -29 q 3 0 30 3 q 27 2 69 16 q 41 14 92 44 q 51 30 102 84 q 216 231 216 735 q 0 45 -2 91 q -2 45 -5 93 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1004 -387 q -111 0 -207 -46 q -97 -46 -179 -121 q -83 -75 -151 -172 q -68 -97 -122 -199 q -55 -102 -96 -201 q -41 -99 -68 -178 q -28 -80 -43 -132 q -15 -53 -17 -62 l 42 -11 q 1 2 14 50 q 13 47 40 124 q 26 76 66 173 q 39 96 91 197 q 52 101 118 197 q 65 96 144 171 q 79 75 171 121 q 92 46 197 46 q 45 0 99 -7 q 54 -7 110 -27 q 56 -21 110 -58 q 54 -37 98 -97 q 133 -180 133 -528 q 0 -121 -16 -261 q -16 -141 -48 -302 l 42 -8 q 65 325 65 569 q 0 364 -142 556 q -50 67 -111 108 q -62 40 -123 62 q -62 22 -119 29 q -57 7 -98 7 z"})]}),exports.ChartScatterMarkersIcon=e=>s.jsxs("svg",{viewBox:"0,0,2048,2048",...e,children:[s.jsx("path",{className:"styled high_contrast",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 m 768 384 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"}),s.jsx("path",{className:"styled background",d:"M 1195 1344 q 22 0 42 9 q 19 8 33 23 q 14 14 23 34 q 8 19 8 41 q 0 45 -30 76 q -31 30 -76 30 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -14 -23 -33 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -15 34 -23 q 19 -9 41 -9 m -427 -341 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m 939 -512 q 45 0 76 31 q 30 30 30 75 q 0 22 -8 42 q -9 19 -23 34 q -14 14 -33 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 m -1323 -256 q 22 0 42 9 q 19 8 34 22 q 14 14 23 34 q 8 19 8 41 q 0 22 -8 42 q -9 19 -23 34 q -15 14 -34 23 q -20 8 -42 8 q -22 0 -41 -8 q -20 -9 -34 -23 q -15 -15 -23 -34 q -9 -20 -9 -42 q 0 -22 9 -41 q 8 -20 23 -34 q 14 -14 34 -22 q 19 -9 41 -9 z"}),s.jsx("path",{className:"styled info",d:"M 384 213 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 1323 42 q 26 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -18 0 -33 7 q -16 6 -27 18 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 7 33 7 m -939 298 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 40 -28 q 23 -10 50 -10 m 0 214 q 18 0 34 -7 q 15 -7 27 -18 q 11 -12 18 -27 q 6 -16 6 -34 q 0 -35 -25 -60 q -25 -25 -60 -25 q -35 0 -60 25 q -25 25 -25 60 q 0 18 7 34 q 6 15 18 27 q 11 11 27 18 q 15 7 33 7 m 427 128 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 m 0 213 q 35 0 60 -25 q 25 -25 25 -60 q 0 -18 -6 -33 q -7 -16 -18 -27 q -12 -12 -27 -19 q -16 -7 -34 -7 q -18 0 -33 7 q -16 7 -27 19 q -12 11 -19 27 q -7 15 -7 33 q 0 18 7 34 q 7 15 19 27 q 11 11 27 18 q 15 6 33 6 z"}),s.jsx("path",{className:"styled current_color",d:"M 1963 1920 v 43 h -1878 v -1878 h 43 v 1835 m 1579 -213 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 26 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -24 10 -50 10 m -854 -982 q -26 0 -49 -10 q -24 -10 -41 -27 q -18 -18 -28 -41 q -10 -23 -10 -50 q 0 -26 10 -49 q 10 -24 28 -41 q 17 -18 41 -28 q 23 -10 49 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 41 q 10 23 10 49 q 0 27 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m -469 982 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 m 1024 -640 q -27 0 -50 -10 q -23 -10 -40 -27 q -18 -18 -28 -41 q -10 -24 -10 -50 q 0 -27 10 -50 q 10 -23 28 -40 q 17 -18 40 -28 q 23 -10 50 -10 q 27 0 50 10 q 23 10 41 28 q 17 17 27 40 q 10 23 10 50 q 0 26 -10 50 q -10 23 -27 41 q -18 17 -41 27 q -23 10 -50 10 z"})]}),exports.CommandContext=Ta,exports.CornerTriangle=uo,exports.DefaultTaskPaneRegistry=En,exports.DocThemesContext=Tn,exports.DocThemesProvider=e=>{const{themes:t,children:n}=e;return s.jsx(Tn.Provider,{value:t,children:n})},exports.EditableLabel=Tr,exports.EmptyFrame=Yl,exports.FilterButton=dr,exports.LogoNoPaddingIcon=e=>s.jsxs("svg",{...e,viewBox:"0 0 48 48",children:[s.jsx("path",{d:"M 2.2827924,0 C 1.5038324,0 0.87090248,0.52603 0.87090248,1.17149 v 25.39667 h -0.01 v 20.2607 c 0,0.39663 0.24025002,0.74639 0.60481992,0.95852 v 0.18499 h 0.50664 c 0.0972,0.0173 0.19732,0.0276 0.30092,0.0276 h 15.5346916 16.7448 v 0 h 11.35822 c 0.10311,0 0.20276,-0.0104 0.29945,-0.0276 h 0.0696 v -0.0182 c 0.59938,-0.13566 1.04238,-0.58606 1.04238,-1.12526 V 26.96484 c 0.006,-0.0429 0.009,-0.0853 0.009,-0.12925 V 1.17154 c 0,-0.64586 -0.63293,-1.17149 -1.41189,-1.17149 h -15.7478 v 2e-4 h -2.06997 V 5e-5 Z",fill:"#547DBE"}),s.jsx("path",{d:"m 2.8338324,2.7184 v 9.0404 H 11.538484 V 2.7184 Z m 11.2334116,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.26696,0 v 9.0404 h 8.70465 V 2.7184 Z m 11.33258,0 v 9.0404 h 8.70465 V 2.7184 Z M 2.8338324,14.32723 v 8.84046 h 8.7046516 v -8.84046 z m 11.2334116,0 v 8.84046 h 8.70465 v -8.84046 z m 11.26696,0 v 8.84046 h 8.70465 v -8.84046 z m 11.33258,0 v 8.84046 h 8.70465 V 14.32723 Z M 2.8338324,25.73691 v 8.67308 h 8.7046516 v -8.67308 z m 11.2334116,0 v 8.67308 h 8.73721 v -8.67308 z m 11.26696,0 v 8.67308 h 8.70465 v -8.67308 z m 11.33258,0 v 8.67308 h 8.70465 V 25.73691 Z M 2.8693424,36.61859 v 8.67357 h 8.7046616 v -8.67357 z m 11.2339116,0 v 8.67357 h 8.73771 v -8.67357 z m 11.26697,0 v 8.67357 h 8.70465 v -8.67357 z m 11.33257,0 v 8.67357 h 8.70465 v -8.67357 z",fill:"#FFFFFF"}),s.jsx("path",{d:"m 2.8254424,2.72091 v 9.04041 H 11.570544 V 2.72091 Z m 0,11.60889 v 8.84036 H 11.570544 V 14.3298 Z m 0,11.40958 v 8.67357 h 8.7451016 v -8.67357 z m 0.036,10.88167 v 8.67358 h 8.7451116 v -8.67358 z",fill:"#547DBE",fillOpacity:"0.4"}),s.jsx("path",{d:"m 30.820434,6.19497 c 1.85291,0 3.66241,0.29708 5.4285,0.89113 1.7656,0.5942 3.49568,1.50108 5.19073,2.72107 l -2.37584,3.25571 c -1.40941,-1.01391 -2.79515,-1.76647 -4.15721,-2.25759 -1.36206,-0.49111 -2.72412,-0.73667 -4.08618,-0.73667 -2.5817,0 -4.58902,0.53064 -6.02232,1.59218 -1.43334,1.06143 -2.14989,2.56661 -2.14989,4.51523 v 0.0237 c 0,1.36241 0.41177,2.40021 1.23532,3.11315 0.82355,0.71288 1.89253,1.24367 3.20703,1.59217 1.31446,0.3485 2.71608,0.67341 4.20493,0.97439 1.29842,0.26929 2.58944,0.58216 3.87257,0.9386 1.28263,0.3565 2.45032,0.8635 3.50356,1.52097 1.05324,0.65747 1.89288,1.5486 2.51841,2.6734 0.62553,1.12485 0.93829,2.59035 0.93829,4.39635 v 0.0477 c 0,3.18435 -1.10849,5.64817 -3.32597,7.39066 -2.21698,1.7425 -5.33724,2.61399 -9.35978,2.61399 -1.67882,0 -3.25863,-0.15841 -4.73958,-0.47523 -1.4808,-0.31681 -2.86644,-0.79204 -4.15737,-1.42617 -1.29077,-0.63363 -2.49827,-1.42567 -3.6227,-2.37612 l 2.54179,-3.20819 c 1.39383,1.204 2.91819,2.10717 4.57323,2.70928 1.6549,0.60205 3.45641,0.90307 5.40463,0.90307 2.73991,0 4.85823,-0.52704 6.35447,-1.58048 1.49674,-1.05359 2.24511,-2.53098 2.24511,-4.43213 v -0.0237 c 0,-1.37834 -0.37197,-2.43583 -1.11639,-3.17245 -0.74442,-0.73668 -1.71824,-1.2912 -2.92194,-1.66359 -1.2037,-0.37223 -2.51051,-0.6851 -3.91993,-0.9386 -1.34627,-0.23762 -2.69635,-0.51485 -4.05046,-0.83182 -1.35417,-0.31677 -2.59339,-0.7841 -3.71782,-1.40204 -1.12448,-0.61779 -2.03125,-1.49708 -2.72017,-2.63782 -0.68898,-1.14078 -1.03341,-2.66156 -1.03341,-4.5627 v -0.0237 c 0,-3.21623 1.06898,-5.70753 3.20718,-7.47386 2.13805,-1.76648 5.15506,-2.64981 9.05121,-2.64981 z",strokeWidth:"2.5",stroke:"#EB594D",fill:"#f9CECB"})]}),exports.LogoTextNoPaddingIcon=vr,exports.MovableArea=xr,exports.PictureEditor=Mr,exports.ScriptEditor=Ma,exports.SheetCellEditor=gr,exports.SheetCellRenderer=ur,exports.SheetElement=kr,exports.SheetScrollbar=bo,exports.StaticBorderRenderer=xl,exports.StyledStrokePath=mr,exports.Tab=nl,exports.TabStrip=rl,exports.TaskPaneArea=El,exports.TaskPaneProvider=({children:e,renderArea:t,onUpdateArea:n,registry:i=En})=>{const a=o.useRef(null),l=o.useRef(null),[f,h]=o.useState(null),[c,C]=o.useState(null),k=r.useCallbackRef(p=>{const M=t({registry:i,onClose:()=>{C(null),n?.(null)},ref:T=>{T&&C(T)}});return n?.(M),M},[t,i,f]),y=o.useMemo(()=>({activateTaskPane(p,M){l.current!==p&&(a.current?a.current.activateTaskPane(p,M):(h(p),k(p)))}}),[]);return o.useEffect(()=>{c&&f&&(c.activateTaskPane(f,{autoFocus:!0}),h(null))},[f,c]),o.createElement(Cr.Provider,{value:c??y},e)},exports.TaskPaneStrip=wo,exports.TaskPaneTitle=yo,exports.createCellEditStateFromCell=hr,exports.useBordersOverlay=Co,exports.useDocThemes=()=>{const e=o.useContext(Tn),[t]=o.useState(()=>new d.ThemeCollection);return o.useMemo(()=>e||t,[e])},exports.useModelListener=Qe,exports.useMovableCommands=qr,exports.useRangeListener=(e,t,n,i)=>{const a=o.useRef(n);a.current=n;const l=i?.fireOnAddressChange??!0;o.useEffect(()=>{if(!e||!t||!a.current){const c={getSource:()=>null,getFrom:()=>null,getTo:()=>null,trigger:"delete",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()};return void a.current?.(c)}const f=c=>{a.current?.(c)},h=e.getRange(t).addListener(f,i);if(l){const c=e.getRange(t);f({getSource:()=>c,getFrom:()=>null,getTo:()=>null,trigger:"modelChange",isDataChange:!1,isTransactional:!1,isUndo:!1,timeStamp:Date.now()})}return()=>{h?.()}},[e,t])},exports.useSheetCommands=wr,exports.useSheetCopyPaste=br,exports.useTaskPaneArea=yr;
|