@marimo-team/islands 0.17.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (580) hide show
  1. package/dist/{Combination-De9yoNY5.js → Combination-DrSsMSEB.js} +860 -816
  2. package/dist/{ConnectedDataExplorerComponent-DuvpJOKp.js → ConnectedDataExplorerComponent-DY9cADKc.js} +2282 -2232
  3. package/dist/{ImageComparisonComponent--etUl2pp.js → ImageComparisonComponent-CJvR7Qzp.js} +3 -2
  4. package/dist/{_baseIsEqual-BFlyFUxC.js → _baseIsEqual-DbBiwJP8.js} +1 -1
  5. package/dist/{_basePickBy-gCCvtjgp.js → _basePickBy-ChFDiIEt.js} +3 -3
  6. package/dist/{_baseProperty-BuqBC0Ie.js → _baseProperty-Bf09f9Ee.js} +5 -5
  7. package/dist/_baseUniq-D5kohCWB.js +59 -0
  8. package/dist/any-language-editor-Bs2c1bKU.js +156 -0
  9. package/dist/apl-Bp8pgLcx.js +4 -0
  10. package/dist/{arc-C_O2hc-b.js → arc-DM-UhhIs.js} +2 -2
  11. package/dist/architecture-O4VJ6CD3-SVEfQWDz.js +24 -0
  12. package/dist/{architectureDiagram-W76B3OCA-CrK99pJi.js → architectureDiagram-W76B3OCA-GKSiVAlH.js} +41 -38
  13. package/dist/asciiarmor-IoNSjDv9.js +4 -0
  14. package/dist/asn1-B1GnbkOF.js +4 -0
  15. package/dist/{blockDiagram-QIGZ2CNN-BJOEyO6w.js → blockDiagram-QIGZ2CNN-wX8KWoV2.js} +30 -29
  16. package/dist/brainfuck-TRxEs4B5.js +4 -0
  17. package/dist/{button-ADXOb_gX.js → button-B8zS4Mtw.js} +5 -4
  18. package/dist/{c4Diagram-FPNF74CW-7Pz_X9wF.js → c4Diagram-FPNF74CW-Ns4C9pNn.js} +12 -12
  19. package/dist/{channel-X-wRUxX6.js → channel-Dgla_oqe.js} +1 -1
  20. package/dist/{check-COlaG7Ss.js → check-BZnPxXnd.js} +1 -1
  21. package/dist/{chunk-3AY6CYHV-BQH2fFpA.js → chunk-3AY6CYHV-HfZ-8MFM.js} +10 -10
  22. package/dist/{chunk-4BX2VUAB-D-QtDCKM.js → chunk-4BX2VUAB-CV5cUTmw.js} +1 -1
  23. package/dist/{chunk-4KMFLZZN-BirZvvJS.js → chunk-4KMFLZZN-Cbgb64pE.js} +17 -18
  24. package/dist/{chunk-55IACEB6-DjtPYZKs.js → chunk-55IACEB6--aEkhs1O.js} +1 -1
  25. package/dist/{chunk-6OXUPJBA-CTnnqlzw.js → chunk-6OXUPJBA-DQZp24uZ.js} +7 -7
  26. package/dist/{chunk-7GE3RBXV-CT47hCrL.js → chunk-7GE3RBXV-D0K_8mbM.js} +1 -1
  27. package/dist/{chunk-ABZYJK2D-B6ZsU6SR.js → chunk-ABZYJK2D-BwKkjFgF.js} +3 -3
  28. package/dist/{chunk-BN7GFLIU-DYWEsrG4.js → chunk-BN7GFLIU-93ktvOI2.js} +1 -1
  29. package/dist/{chunk-CVBHYZKI-BuzDGXz0.js → chunk-CVBHYZKI-tTpx9vm_.js} +1 -1
  30. package/dist/{chunk-CXMOBAN2-Bas2S5w1.js → chunk-CXMOBAN2-CagHnxl1.js} +6 -6
  31. package/dist/{chunk-EXTU4WIE-DXwNSukz.js → chunk-EXTU4WIE-Ve2vgn5X.js} +2 -2
  32. package/dist/{chunk-FMBD7UC4-CYKEpuPr.js → chunk-FMBD7UC4-CCvcIQpJ.js} +1 -1
  33. package/dist/{chunk-JA3XYJ7Z-DcxfkcDC.js → chunk-JA3XYJ7Z-CrQC4eYr.js} +4 -4
  34. package/dist/{chunk-JEIROHC2-C01ZIcIG.js → chunk-JEIROHC2-tuJLHPKk.js} +1 -1
  35. package/dist/{chunk-K7UQS3LO-CmbT97MV.js → chunk-K7UQS3LO-BzsTVREe.js} +7 -7
  36. package/dist/{chunk-KMC2YHZD-D64m-1E1.js → chunk-KMC2YHZD-CdKOlVi0.js} +1 -1
  37. package/dist/{chunk-QN33PNHL-DjB0j8Dr.js → chunk-QN33PNHL-CbdYySGk.js} +2 -2
  38. package/dist/{chunk-QYVHNE3D-VA4W4oxG.js → chunk-QYVHNE3D-BDj4udRH.js} +2 -2
  39. package/dist/{chunk-QZHKN3VN-KT0fl3Em.js → chunk-QZHKN3VN-E6VBm6ir.js} +1 -1
  40. package/dist/{chunk-S3R3BYOJ-C5zmcMvn.js → chunk-S3R3BYOJ-DuumGJ4u.js} +6 -6
  41. package/dist/{chunk-T44TD3VJ-BMOgu-Hk.js → chunk-T44TD3VJ-Bc-UhG4i.js} +1 -1
  42. package/dist/{chunk-TVAH2DTR-eKm8SKnH.js → chunk-TVAH2DTR-s8skdWqT.js} +6 -6
  43. package/dist/{chunk-TZMSLE5B-CQxFRiI2.js → chunk-TZMSLE5B-CUfRRoFb.js} +3 -3
  44. package/dist/{chunk-WFRQ32O7-Dg51o277.js → chunk-WFRQ32O7-BquRwCCj.js} +1 -1
  45. package/dist/{chunk-WFWHJNB7-DVLO98ge.js → chunk-WFWHJNB7-CHl0gCzu.js} +1 -1
  46. package/dist/{chunk-XRWGC2XP-UNFKdWQh.js → chunk-XRWGC2XP-CoSEoOcO.js} +1 -1
  47. package/dist/{chunk-ZPAFE4SF-DbCSwfLK.js → chunk-ZPAFE4SF-Bf1fn8cY.js} +1 -1
  48. package/dist/classDiagram-KNZD7YFC-ONLi1fgN.js +40 -0
  49. package/dist/classDiagram-v2-RKCZMP56-Ceij_i8m.js +40 -0
  50. package/dist/{clike-CytFO-kN.js → clike-Cbszc5XU.js} +1 -1
  51. package/dist/clojure-BNTL3o8Z.js +4 -0
  52. package/dist/{clone-CCgVUJ6x.js → clone-DE59DFkY.js} +1 -1
  53. package/dist/cmake-Bp6uEjiS.js +4 -0
  54. package/dist/cobol-CtS_R__A.js +4 -0
  55. package/dist/coffeescript-D5u5aYAu.js +4 -0
  56. package/dist/commonlisp-BvLWy9eh.js +4 -0
  57. package/dist/compiler-runtime-5MdCVm0X.js +13 -0
  58. package/dist/{constants-BaCMVd12.js → constants-BlvmN57i.js} +3 -3
  59. package/dist/{copy-GNcK40wy.js → copy-bxQOKABs.js} +2 -2
  60. package/dist/{cose-bilkent-S5V4N54A-BnvuJG6Y.js → cose-bilkent-S5V4N54A-DZE8LVzQ.js} +3 -3
  61. package/dist/crystal-CaTWnt-Z.js +4 -0
  62. package/dist/css-BMUPibQH.js +5 -0
  63. package/dist/cypher-PopjPg_G.js +4 -0
  64. package/dist/d-Ds7bO8W5.js +4 -0
  65. package/dist/{dagre-5GWH7T2D-rn7tZYaQ.js → dagre-5GWH7T2D-g2ShbPGy.js} +39 -37
  66. package/dist/{dagre-Bghq6VKO.js → dagre-TBn9HZB0.js} +14 -13
  67. package/dist/{data-grid-overlay-editor-B4_Caieu.js → data-grid-overlay-editor-BuhjNOgs.js} +4 -4
  68. package/dist/{diagram-N5W7TBWH-lbF94o-g.js → diagram-N5W7TBWH-BYhyeV0B.js} +44 -41
  69. package/dist/{diagram-QEK2KX5R-CKBhSzsO.js → diagram-QEK2KX5R-CiuUIBpl.js} +38 -35
  70. package/dist/{diagram-S2PKOQOG-161_1f53.js → diagram-S2PKOQOG-D0Z2Q5P-.js} +38 -35
  71. package/dist/diff-C_xR-pxD.js +4 -0
  72. package/dist/{dist-BSyYM1Gi.js → dist-7CqcJssH.js} +6 -6
  73. package/dist/{dist-C9-uHBqC.js → dist-8v4BI_h_.js} +1 -1
  74. package/dist/{dist-71jYYbWP.js → dist-B3CNaJau.js} +2 -2
  75. package/dist/dist-B9JCXzyv.js +6 -0
  76. package/dist/{dist-DzJem5xc.js → dist-BMhv6XDi.js} +1 -1
  77. package/dist/{dist-CWh5ZwcC.js → dist-BYS0EtbC.js} +2 -2
  78. package/dist/{dist-BaPjLM6s.js → dist-BgsDu-bU.js} +1 -1
  79. package/dist/{dist-CNAkUyxv.js → dist-BxmsyHv5.js} +1 -1
  80. package/dist/{dist-CWqB4bg8.js → dist-C02gS--y.js} +3 -3
  81. package/dist/{dist-C76MUPD3.js → dist-C5Iu9a3-.js} +2 -2
  82. package/dist/{dist-DxESp2-T.js → dist-C5Ns3q-m.js} +3 -3
  83. package/dist/dist-C6QrJGYr.js +10 -0
  84. package/dist/{dist-BAqp4Vtl.js → dist-CBu8cgzz.js} +8 -4
  85. package/dist/dist-CFZ32udY.js +6 -0
  86. package/dist/{dist-DaTVdKJa.js → dist-CXimnGhI.js} +2 -2
  87. package/dist/{dist-CtOeHDJp.js → dist-CawOxmKh.js} +5 -5
  88. package/dist/dist-CmgxQNWN.js +10 -0
  89. package/dist/dist-Cr6Cu8sC.js +6 -0
  90. package/dist/{dist-BBhmkni2.js → dist-CxRajUZ6.js} +1 -1
  91. package/dist/{dist-CPNnKuPh.js → dist-D08oiinq.js} +12 -10
  92. package/dist/{dist-BNRdMfJH.js → dist-D4LUTYHc.js} +2 -2
  93. package/dist/{dist-C2IEc8og.js → dist-DGKjHTv9.js} +5 -5
  94. package/dist/{dist-4dtbqf8A.js → dist-DGnWQOnS.js} +3 -3
  95. package/dist/{dist-BqdQPWpQ.js → dist-DSDOMDNR.js} +2 -2
  96. package/dist/{dist-_4cudra1.js → dist-DTNqkRGE.js} +3 -3
  97. package/dist/{dist-28HYzERB.js → dist-D_GkrgWD.js} +2 -2
  98. package/dist/{dist-Cw0F6l-7.js → dist-DbHWFmjZ.js} +1 -1
  99. package/dist/{dist-B_wjJqqS.js → dist-Dh7gw0Ay.js} +2 -2
  100. package/dist/{dist-B8Pbw5ln.js → dist-DiO9ni9a.js} +2 -2
  101. package/dist/{dist-BYHiiJB-.js → dist-DlSZED-1.js} +2 -2
  102. package/dist/{dist-Da046MhT.js → dist-DvsjKDQ4.js} +1 -1
  103. package/dist/{dist-O0zVziwn.js → dist-DzKKEoge.js} +3 -3
  104. package/dist/{dist-CwZcC4om.js → dist-HKzG1oF6.js} +1 -1
  105. package/dist/{dist-CJb8EiFO.js → dist-K_AqLCfS.js} +3 -3
  106. package/dist/dist-NxHLuq7w.js +6 -0
  107. package/dist/dist-S2JcqPPB.js +12 -0
  108. package/dist/{dist-CNvMOZu9.js → dist-XkGsOiy0.js} +2 -2
  109. package/dist/{dist-Drf3cyIW.js → dist-_tHnp24J.js} +3 -3
  110. package/dist/{dist-xLN9qCAp.js → dist-eSnWVS11.js} +3 -3
  111. package/dist/dist-hcPlrsR9.js +6 -0
  112. package/dist/{dist-DlK420ke.js → dist-owpR56zn.js} +1 -1
  113. package/dist/dist-poXa8G8m.js +6 -0
  114. package/dist/{dist-CTIyD_KU.js → dist-qGpLTiEi.js} +3 -3
  115. package/dist/{dockerfile-Cmlcqk35.js → dockerfile-CWWeWT3z.js} +1 -1
  116. package/dist/dtd-CGRYzaHQ.js +4 -0
  117. package/dist/dylan-Ctfki5HL.js +4 -0
  118. package/dist/ecl--gmEivzz.js +4 -0
  119. package/dist/eiffel-o31DRAP-.js +4 -0
  120. package/dist/elm-Dqa6TVIh.js +4 -0
  121. package/dist/{erDiagram-AWTI2OKA-BU7Qig7n.js → erDiagram-AWTI2OKA-BeadFjpg.js} +25 -25
  122. package/dist/erlang-BtVO_vQG.js +4 -0
  123. package/dist/error-banner-B7LmpmGT.js +1013 -0
  124. package/dist/{esm-Oo8OvZ6m.js → esm-CQIOyi5v.js} +579 -564
  125. package/dist/{factor-BZnBK3CG.js → factor-7tQNNEWF.js} +1 -1
  126. package/dist/factor-CNLvRc__.js +5 -0
  127. package/dist/{flowDiagram-PVAE7QVJ-JKJebWeY.js → flowDiagram-PVAE7QVJ-GgklUvqn.js} +27 -27
  128. package/dist/{formats-DOEuF6TR.js → formats-kyFd0DPJ.js} +23 -22
  129. package/dist/forth-Bp2zDfH-.js +4 -0
  130. package/dist/fortran-B3A-KieX.js +4 -0
  131. package/dist/{ganttDiagram-OWAHRB6G-BvWRfg05.js → ganttDiagram-OWAHRB6G-D5wYR6WK.js} +17 -17
  132. package/dist/gas-_Xt_kGOG.js +4 -0
  133. package/dist/gherkin-DzZpg8Ls.js +4 -0
  134. package/dist/gitGraph-ZV4HHKMB-DFGD7PPm.js +24 -0
  135. package/dist/{gitGraphDiagram-NY62KEGX-VEJJBf5L.js → gitGraphDiagram-NY62KEGX-DCwA-g9b.js} +38 -35
  136. package/dist/{glide-data-editor-Bne10icG.js → glide-data-editor-1bUl_mRe.js} +515 -515
  137. package/dist/graphlib-R11f1son.js +228 -0
  138. package/dist/groovy-BtD10jRQ.js +4 -0
  139. package/dist/haskell-C-JVWnIV.js +4 -0
  140. package/dist/haxe-Del5TcJQ.js +5 -0
  141. package/dist/idl-BLlRatde.js +4 -0
  142. package/dist/info-63CPKGFF-eZyiEu_4.js +24 -0
  143. package/dist/infoDiagram-STP46IZ2-CUr2vZlE.js +48 -0
  144. package/dist/{isEmpty-Do_v2sls.js → isEmpty-CIFmGKJN.js} +2 -2
  145. package/dist/isString-BsphYkXQ.js +9 -0
  146. package/dist/{isSymbol-CtkA8Y0a.js → isSymbol-BnxbuvDK.js} +1 -1
  147. package/dist/javascript-Bm7QL4E3.js +5 -0
  148. package/dist/jinja2-BxbImxq2.js +4 -0
  149. package/dist/{journeyDiagram-BIP6EPQ6-CsgEQgxh.js → journeyDiagram-BIP6EPQ6-DtjQC_m1.js} +10 -10
  150. package/dist/jsx-runtime-CvL6gNI-.js +22 -0
  151. package/dist/julia-DV1Vz9mw.js +4 -0
  152. package/dist/{kanban-definition-6OIFK2YF-Bi8Ete2P.js → kanban-definition-6OIFK2YF-U3q5gvb8.js} +19 -19
  153. package/dist/{katex-C-g3rKKt.js → katex-BWgzyQrl.js} +1 -1
  154. package/dist/{label-BiVIU_wb.js → label-Wr-xTlW7.js} +463 -453
  155. package/dist/{line-B7-GoF1m.js → line-C7OvOvNm.js} +3 -3
  156. package/dist/{linear-DeGGALuc.js → linear-CgANSWNu.js} +4 -4
  157. package/dist/livescript-9UMSMMrl.js +4 -0
  158. package/dist/{loader-BBqwtZWj.js → loader-Dj9XWZTh.js} +164 -4
  159. package/dist/lua-Bcbc7wWe.js +4 -0
  160. package/dist/main.js +40719 -41544
  161. package/dist/mathematica-DG4QUwYU.js +4 -0
  162. package/dist/mbox--auqAoPc.js +4 -0
  163. package/dist/{memoize-D7eDkf3R.js → memoize-XkDn33QI.js} +1 -1
  164. package/dist/{merge-C_6cGM6o.js → merge-dMlizkC5.js} +1 -1
  165. package/dist/{mermaid-BmtvsZ2m.js → mermaid-DIjoC4T4.js} +67 -66
  166. package/dist/{mermaid-parser.core-geyG_6o0.js → mermaid-parser.core-B433qyUL.js} +8 -8
  167. package/dist/{mhchem-OhAaJ0fA.js → mhchem-1x4KnXMF.js} +1 -1
  168. package/dist/min-WjLsUjBa.js +89 -0
  169. package/dist/{mindmap-definition-Q6HEUPPD-B-wmX1oG.js → mindmap-definition-Q6HEUPPD-LFgV4R8y.js} +24 -24
  170. package/dist/mirc-9dVcMicH.js +4 -0
  171. package/dist/mllike-Di9N4E3Q.js +6 -0
  172. package/dist/modelica-S3adENkL.js +4 -0
  173. package/dist/mscgen-DAG0zH4w.js +6 -0
  174. package/dist/mumps-afzuy08D.js +4 -0
  175. package/dist/{now-DumxsrcX.js → now-8WTe-KKa.js} +1 -1
  176. package/dist/nsis-Bzwy0lPH.js +5 -0
  177. package/dist/{nsis-D4bLR_Y1.js → nsis-CFb2Zrib.js} +1 -1
  178. package/dist/ntriples-D9oM8s3v.js +4 -0
  179. package/dist/{number-overlay-editor-D6r-48ka.js → number-overlay-editor-DYjnpjXo.js} +2 -2
  180. package/dist/octave-BMLCk2qM.js +4 -0
  181. package/dist/{once-3OSMKEsL.js → once-rI5AYku5.js} +1 -1
  182. package/dist/{ordinal-DpEbSVPc.js → ordinal-pQYxWJYN.js} +1 -1
  183. package/dist/oz-CX5JTWTK.js +4 -0
  184. package/dist/packet-HUATNLJX-BvWMmF9U.js +24 -0
  185. package/dist/pascal-BeZmsfFX.js +4 -0
  186. package/dist/perl-CZ_HryPN.js +4 -0
  187. package/dist/pie-WTHONI2E-BCXZJKz0.js +24 -0
  188. package/dist/{pieDiagram-ADFJNKIX-C3GvPNUL.js → pieDiagram-ADFJNKIX-CsZmho0o.js} +43 -40
  189. package/dist/pig-OPEEOu6V.js +4 -0
  190. package/dist/powershell-DyR-5LnA.js +4 -0
  191. package/dist/{precisionRound-7YYJq2rW.js → precisionRound-DMLkFNYv.js} +1 -1
  192. package/dist/properties-Cl4tecfb.js +4 -0
  193. package/dist/protobuf-B8X247vV.js +4 -0
  194. package/dist/pug-Kmpa-Pbv.js +5 -0
  195. package/dist/{pug-Dv3gE36O.js → pug-ZDYeT34w.js} +1 -1
  196. package/dist/puppet-Pl07qkSO.js +4 -0
  197. package/dist/python-DQgTXBpp.js +5 -0
  198. package/dist/q-D7uiP00h.js +4 -0
  199. package/dist/{quadrantDiagram-LMRXKWRM-DPXwGNVa.js → quadrantDiagram-LMRXKWRM-CY6GTOgM.js} +8 -8
  200. package/dist/r-DbUoToEd.js +4 -0
  201. package/dist/radar-NJJJXTRR-8kjOeCwx.js +24 -0
  202. package/dist/{range-CIbLpsrs.js → range-CTMc_Qhu.js} +3 -3
  203. package/dist/{react-plotly-DYyvxcRD.js → react-plotly-Cs07wkly.js} +2 -2
  204. package/dist/react-vega-B9eMrRW1.js +32035 -0
  205. package/dist/react-vega-DM3e8kar.js +25 -0
  206. package/dist/reduce-C-jV7KRY.js +268 -0
  207. package/dist/{requirementDiagram-4UW4RH46-Cs3Hqnm0.js → requirementDiagram-4UW4RH46-CfLWneBF.js} +24 -24
  208. package/dist/rpm-BjQFZZ1e.js +5 -0
  209. package/dist/ruby-BXpop5ZX.js +4 -0
  210. package/dist/{sankeyDiagram-GR3RE2ED-Be1d_Xf7.js → sankeyDiagram-GR3RE2ED-Dkxfzm6f.js} +7 -7
  211. package/dist/sas-CzFr9Hlz.js +4 -0
  212. package/dist/scheme-C6QRPvcm.js +4 -0
  213. package/dist/{sequenceDiagram-C3RYC4MD-lbtovKTa.js → sequenceDiagram-C3RYC4MD-hSi31Kfa.js} +14 -14
  214. package/dist/shell-Bs7FrcsL.js +4 -0
  215. package/dist/sieve-D39XRya9.js +4 -0
  216. package/dist/{slides-component-BoeQU7-s.js → slides-component-Ct11erUn.js} +9 -8
  217. package/dist/smalltalk-CdAwDOFE.js +4 -0
  218. package/dist/sparql-DsDWhEhN.js +4 -0
  219. package/dist/spec-rqRnkIf4.js +1256 -0
  220. package/dist/{src-BTqT1mA1.js → src-CKr0QbVy.js} +1 -1
  221. package/dist/{stateDiagram-KXAO66HF-BmbR-Rol.js → stateDiagram-KXAO66HF-DJsLA_DN.js} +42 -40
  222. package/dist/stateDiagram-v2-UMBNRL4Z-D-p_ngHt.js +39 -0
  223. package/dist/{step-2RJrMSSG.js → step-BsM8YHun.js} +1 -1
  224. package/dist/stex-DvqvBdH8.js +5 -0
  225. package/dist/style.css +1 -1
  226. package/dist/stylus-DxzxWmvV.js +4 -0
  227. package/dist/swift-DTC4Wg4z.js +4 -0
  228. package/dist/tcl-DantlS-i.js +4 -0
  229. package/dist/textile-pOphaahD.js +4 -0
  230. package/dist/{time-BB30r1tK.js → time-U9NHhrDC.js} +4 -4
  231. package/dist/{timeline-definition-XQNQX7LJ-1mv5caPW.js → timeline-definition-XQNQX7LJ-rojWjX6M.js} +7 -7
  232. package/dist/{toNumber-D3Ystr3y.js → toNumber-CUG0Hyhp.js} +2 -2
  233. package/dist/{toString-CbuxCRDG.js → toString-CT4n1k2E.js} +2 -2
  234. package/dist/toml-hgYsPM5p.js +4 -0
  235. package/dist/treemap-75Q7IDZK-Do1WIR9v.js +24 -0
  236. package/dist/troff-BwevrEUZ.js +4 -0
  237. package/dist/{dtd-RplB6hDg.js → ttcn-C5gJcxta.js} +2 -2
  238. package/dist/ttcn-cfg-CPKlfqST.js +4 -0
  239. package/dist/turtle-EH0lMhMf.js +4 -0
  240. package/dist/{types-BPohCsA7.js → types-Bt7p5SYB.js} +1028 -1038
  241. package/dist/uniq-DgSyegN3.js +8 -0
  242. package/dist/{useAsyncData-DHBqeb9a.js → useAsyncData-Dp2V69OV.js} +3 -3
  243. package/dist/{useIframeCapabilities-BEvvwlwt.js → useIframeCapabilities-B9u0SmJ4.js} +2 -2
  244. package/dist/{useTheme-CnMbo-iq.js → useTheme-D7vlj42b.js} +4 -4
  245. package/dist/vb-DNk7gts-.js +4 -0
  246. package/dist/vbscript-znK_5PUS.js +4 -0
  247. package/dist/vega-component-C58Jk3ub.js +633 -0
  248. package/dist/{vega-loader.browser.module-CFMtdrNw.js → vega-loader.browser-BK7-IO9k.js} +91 -99
  249. package/dist/velocity-DmPhlhdp.js +4 -0
  250. package/dist/verilog-CePnwf4S.js +4 -0
  251. package/dist/vhdl-Ckdh8uiO.js +4 -0
  252. package/dist/webidl-8N8qbzRd.js +4 -0
  253. package/dist/xquery-Cocyk-z0.js +4 -0
  254. package/dist/{xychartDiagram-6GGTOJPD-njc-naaw.js → xychartDiagram-6GGTOJPD-CiC1eONZ.js} +23 -23
  255. package/dist/yacas-CPmShRg-.js +4 -0
  256. package/dist/z80-B500UaFh.js +4 -0
  257. package/package.json +12 -9
  258. package/src/components/ai/ai-provider-icon.tsx +2 -1
  259. package/src/components/app-config/constants.ts +25 -1
  260. package/src/components/charts/lazy.tsx +7 -0
  261. package/src/components/charts/tooltip.ts +5 -0
  262. package/src/components/charts/types.ts +8 -0
  263. package/src/components/chat/acp/__tests__/state.test.ts +0 -13
  264. package/src/components/chat/acp/agent-panel.tsx +7 -1
  265. package/src/components/chat/acp/agent-selector.tsx +5 -0
  266. package/src/components/chat/acp/blocks.tsx +51 -8
  267. package/src/components/chat/acp/state.ts +8 -2
  268. package/src/components/chat/acp/thread.tsx +10 -3
  269. package/src/components/chat/chat-panel.tsx +7 -1
  270. package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +473 -184
  271. package/src/components/data-table/__tests__/chart-spec-model.test.ts +32 -28
  272. package/src/components/data-table/charts/__tests__/__snapshots__/spec-snapshot.test.ts.snap +1 -1
  273. package/src/components/data-table/charts/__tests__/altair-generator.test.ts +162 -0
  274. package/src/components/data-table/charts/__tests__/spec-snapshot.test.ts +1 -1
  275. package/src/components/data-table/charts/__tests__/spec.test.ts +145 -6
  276. package/src/components/data-table/charts/chart-spec/altair-generator.ts +6 -1
  277. package/src/components/data-table/charts/chart-spec/encodings.ts +11 -7
  278. package/src/components/data-table/charts/chart-spec/spec.ts +9 -8
  279. package/src/components/data-table/charts/chart-spec/tooltips.ts +4 -3
  280. package/src/components/data-table/charts/chart-spec/types.ts +1 -1
  281. package/src/components/data-table/charts/chart-spec/utils.ts +23 -0
  282. package/src/components/data-table/charts/components/form-fields.tsx +2 -2
  283. package/src/components/data-table/charts/constants.ts +7 -3
  284. package/src/components/data-table/charts/lazy-chart.tsx +15 -11
  285. package/src/components/data-table/charts/types.ts +6 -14
  286. package/src/components/data-table/column-summary/chart-spec-model.tsx +112 -269
  287. package/src/components/data-table/column-summary/column-summary.tsx +12 -12
  288. package/src/components/data-table/column-summary/legacy-chart-spec.ts +78 -2
  289. package/src/components/data-table/column-summary/utils.ts +1 -1
  290. package/src/components/datasources/__tests__/utils.test.ts +339 -138
  291. package/src/components/datasources/column-preview.tsx +9 -9
  292. package/src/components/datasources/datasources.tsx +4 -0
  293. package/src/components/datasources/utils.ts +94 -4
  294. package/src/components/editor/Output.tsx +9 -6
  295. package/src/components/editor/ai/ai-completion-editor.tsx +2 -2
  296. package/src/components/editor/code/readonly-diff.tsx +4 -0
  297. package/src/components/editor/output/ConsoleOutput.tsx +14 -11
  298. package/src/components/editor/renderers/slides-layout/types.ts +1 -1
  299. package/src/components/tracing/tracing-spec.ts +2 -2
  300. package/src/components/tracing/tracing.test.tsx +1 -1
  301. package/src/components/tracing/tracing.tsx +57 -74
  302. package/src/components/tracing/utils.ts +22 -0
  303. package/src/components/ui/query-param-preserving-link.tsx +48 -0
  304. package/src/core/ai/context/providers/__tests__/cell-output.test.ts +12 -1
  305. package/src/core/ai/context/providers/cell-output.ts +2 -8
  306. package/src/core/ai/tools/__tests__/run-cells-tool.test.ts +1 -1
  307. package/src/core/ai/tools/edit-notebook-tool.ts +15 -7
  308. package/src/core/ai/tools/run-cells-tool.ts +60 -26
  309. package/src/core/cells/ids.ts +1 -1
  310. package/src/core/codemirror/language/__tests__/extension.test.ts +6 -12
  311. package/src/core/codemirror/language/__tests__/markdown.test.ts +23 -36
  312. package/src/core/codemirror/language/languages/python.ts +40 -6
  313. package/src/core/codemirror/language/languages/sql/completion-store.ts +2 -2
  314. package/src/core/codemirror/language/languages/sql/sql.ts +14 -0
  315. package/src/core/codemirror/language/languages/sql/utils.ts +54 -3
  316. package/src/core/codemirror/lsp/notebook-lsp.ts +52 -4
  317. package/src/core/codemirror/lsp/transports.ts +3 -0
  318. package/src/core/datasets/__tests__/data-source.test.ts +6 -0
  319. package/src/core/datasets/data-source-connections.ts +1 -0
  320. package/src/core/dom/__tests__/outline.test.ts +43 -0
  321. package/src/core/dom/outline.ts +1 -1
  322. package/src/core/islands/main.ts +2 -0
  323. package/src/core/lsp/__tests__/transport.test.ts +57 -0
  324. package/src/core/lsp/transport.ts +16 -0
  325. package/src/plugins/core/RenderHTML.tsx +26 -0
  326. package/src/plugins/core/sanitize.ts +8 -1
  327. package/src/plugins/impl/DataTablePlugin.tsx +21 -27
  328. package/src/plugins/impl/data-explorer/ConnectedDataExplorerComponent.tsx +26 -22
  329. package/src/plugins/impl/data-explorer/functions/function.ts +1 -2
  330. package/src/plugins/impl/data-explorer/functions/types.ts +65 -14
  331. package/src/plugins/impl/data-explorer/queries/queries.ts +9 -9
  332. package/src/plugins/impl/data-explorer/queries/types.ts +23 -5
  333. package/src/plugins/impl/data-frames/DataFramePlugin.tsx +2 -1
  334. package/src/plugins/impl/vega/__tests__/__snapshots__/make-selectable.test.ts.snap +2309 -0
  335. package/src/plugins/impl/vega/__tests__/encodings.test.ts +93 -0
  336. package/src/plugins/impl/vega/__tests__/make-selectable.test.ts +621 -0
  337. package/src/plugins/impl/vega/__tests__/params.test.ts +121 -1
  338. package/src/plugins/impl/vega/encodings.ts +16 -2
  339. package/src/plugins/impl/vega/make-selectable.ts +339 -10
  340. package/src/plugins/impl/vega/params.ts +76 -14
  341. package/src/plugins/impl/vega/types.ts +32 -13
  342. package/src/plugins/impl/vega/vega-component.tsx +74 -26
  343. package/src/plugins/impl/vega/vega.css +1 -0
  344. package/src/stories/__fixtures__/vega.ts +1 -1
  345. package/src/utils/arrays.ts +16 -0
  346. package/dist/_baseUniq-CKN9mEDq.js +0 -324
  347. package/dist/any-language-editor-Du2Q_6IK.js +0 -156
  348. package/dist/apl-CUm2DGqh.js +0 -4
  349. package/dist/architecture-O4VJ6CD3-PFw3eFBY.js +0 -21
  350. package/dist/asciiarmor-lqJ78U01.js +0 -4
  351. package/dist/asn1-CjwpSTlW.js +0 -4
  352. package/dist/brainfuck-ClvDI1dq.js +0 -4
  353. package/dist/classDiagram-KNZD7YFC-HUFFxNdk.js +0 -40
  354. package/dist/classDiagram-v2-RKCZMP56-Dw7Acmuf.js +0 -40
  355. package/dist/clojure-8GefCgPe.js +0 -4
  356. package/dist/cmake-yAhT9H0F.js +0 -4
  357. package/dist/cobol-BmltueOY.js +0 -4
  358. package/dist/coffeescript-C7KEQBcH.js +0 -4
  359. package/dist/commonlisp-CNbiJRU-.js +0 -4
  360. package/dist/crystal-OdjZZ8bc.js +0 -4
  361. package/dist/css-DhTxMmL_.js +0 -5
  362. package/dist/cypher-CgN8E3YI.js +0 -4
  363. package/dist/d-g41sJcBC.js +0 -4
  364. package/dist/diff-ViRYYhhg.js +0 -4
  365. package/dist/dist-BfJO8Bm9.js +0 -12
  366. package/dist/dist-CLuF3AtO.js +0 -6
  367. package/dist/dist-CU04U4NL.js +0 -10
  368. package/dist/dist-DNUT6b47.js +0 -6
  369. package/dist/dist-DbAb2sY7.js +0 -6
  370. package/dist/dist-DiDFQ2Rk.js +0 -6
  371. package/dist/dist-SNAyAOJ-.js +0 -6
  372. package/dist/dist-cbW5xJNV.js +0 -6
  373. package/dist/dist-h8eGLSbK.js +0 -10
  374. package/dist/dylan-BX8KJufP.js +0 -4
  375. package/dist/ecl-CWtLaNMH.js +0 -4
  376. package/dist/eiffel-C-mlZPMn.js +0 -4
  377. package/dist/elm-CWp06vcb.js +0 -4
  378. package/dist/erlang-pfp22AZM.js +0 -4
  379. package/dist/error-banner-BAWlXn49.js +0 -1012
  380. package/dist/esm-B2pocBPL.js +0 -26
  381. package/dist/esm-YVnxJqkD.js +0 -33066
  382. package/dist/factor-CEn53jua.js +0 -5
  383. package/dist/forth-CL8vu_y8.js +0 -4
  384. package/dist/fortran-DsmXkYtE.js +0 -4
  385. package/dist/gas-mYt9Rtlx.js +0 -4
  386. package/dist/gherkin-DHNCKBNj.js +0 -4
  387. package/dist/gitGraph-ZV4HHKMB-Cpd6k0O8.js +0 -21
  388. package/dist/graphlib-DRS8CrjA.js +0 -227
  389. package/dist/groovy-DzRtOS5a.js +0 -4
  390. package/dist/haskell-Bl9iT_Mp.js +0 -4
  391. package/dist/haxe-DqA0ED6k.js +0 -5
  392. package/dist/idl-WU2hil4i.js +0 -4
  393. package/dist/info-63CPKGFF-CG-xzUJo.js +0 -21
  394. package/dist/infoDiagram-STP46IZ2-zoRBGoup.js +0 -45
  395. package/dist/javascript-QY2BGJeV.js +0 -5
  396. package/dist/jinja2-Czleq7Sk.js +0 -4
  397. package/dist/jsx-runtime-DZyWJV5b.js +0 -31
  398. package/dist/julia-Dru3Qi0y.js +0 -4
  399. package/dist/livescript-Dxqi_HLT.js +0 -4
  400. package/dist/lua-ByH1cUQZ.js +0 -4
  401. package/dist/mathematica-CWJIFuES.js +0 -4
  402. package/dist/mbox-qhPIGaUI.js +0 -4
  403. package/dist/min-Dwa_NbP6.js +0 -93
  404. package/dist/mirc-yYcXhXBY.js +0 -4
  405. package/dist/mllike-BfT_Nl9x.js +0 -6
  406. package/dist/modelica-lVDtz1Rm.js +0 -4
  407. package/dist/mscgen-DvwdD1QJ.js +0 -6
  408. package/dist/mumps-BiY3GwKd.js +0 -4
  409. package/dist/nsis-Dk18Sq_4.js +0 -5
  410. package/dist/ntriples-Cj-8VqKF.js +0 -4
  411. package/dist/octave-BgFAaYjU.js +0 -4
  412. package/dist/oz-IsEG1I1m.js +0 -4
  413. package/dist/packet-HUATNLJX-Cafuo3IG.js +0 -21
  414. package/dist/pascal-BVf7FtIE.js +0 -4
  415. package/dist/perl-BM0-y4mZ.js +0 -4
  416. package/dist/pie-WTHONI2E-BE0pHBwB.js +0 -21
  417. package/dist/pig-CLBjzQmc.js +0 -4
  418. package/dist/powershell-B_qvE33J.js +0 -4
  419. package/dist/properties-CUTpsH2y.js +0 -4
  420. package/dist/protobuf-DqCP8a-0.js +0 -4
  421. package/dist/pug-BvexKkw4.js +0 -5
  422. package/dist/puppet-CoIi0R3f.js +0 -4
  423. package/dist/python-C-11-YMh.js +0 -5
  424. package/dist/q-CCVgEip7.js +0 -4
  425. package/dist/r-CIdR0Sfs.js +0 -4
  426. package/dist/radar-NJJJXTRR-0adgjw0u.js +0 -21
  427. package/dist/rpm-Dwvm039g.js +0 -5
  428. package/dist/ruby-DpTnO5gb.js +0 -4
  429. package/dist/sas-CK9boxgv.js +0 -4
  430. package/dist/scheme-Y1aYL-Qq.js +0 -4
  431. package/dist/shell-D3eXGsHd.js +0 -4
  432. package/dist/sieve-BdwSFdWJ.js +0 -4
  433. package/dist/smalltalk-BTYJquCm.js +0 -4
  434. package/dist/sparql-CYF0g4Cc.js +0 -4
  435. package/dist/stateDiagram-v2-UMBNRL4Z-DdJ7qVWc.js +0 -39
  436. package/dist/stex-CyWhoWHt.js +0 -5
  437. package/dist/stylus-BBiKaI2h.js +0 -4
  438. package/dist/swift-COb15qFR.js +0 -4
  439. package/dist/tcl-Jik1LXu9.js +0 -4
  440. package/dist/textile-BFHPD3wr.js +0 -4
  441. package/dist/toml-Brp9fBXs.js +0 -4
  442. package/dist/treemap-75Q7IDZK-CyBT8_Wh.js +0 -21
  443. package/dist/troff-CcZRW4vg.js +0 -4
  444. package/dist/tslib.es6-3ZL768sZ.js +0 -49
  445. package/dist/ttcn-Bz_6ifRd.js +0 -4
  446. package/dist/ttcn-cfg-v-yi2rKc.js +0 -4
  447. package/dist/turtle-CDOsZYhB.js +0 -4
  448. package/dist/useDateFormatter-BkbjKw83.js +0 -543
  449. package/dist/vb-CL7fRwRw.js +0 -4
  450. package/dist/vbscript-CR2xfxpw.js +0 -4
  451. package/dist/vega-component-BfFcXZxw.js +0 -465
  452. package/dist/velocity-CfuZoxPt.js +0 -4
  453. package/dist/verilog-CySTkzw_.js +0 -4
  454. package/dist/vhdl-Dvcd8KHW.js +0 -4
  455. package/dist/webidl-tbJt7sKk.js +0 -4
  456. package/dist/xquery-DJQVztyc.js +0 -4
  457. package/dist/yacas-BbgBReEH.js +0 -4
  458. package/dist/z80-DPyb8VGz.js +0 -4
  459. /package/dist/{_arrayReduce-Cd9xQjbl.js → _arrayReduce-CmsTTAw1.js} +0 -0
  460. /package/dist/{_baseSlice-CE9WsQZm.js → _baseSlice-CAnpEJwx.js} +0 -0
  461. /package/dist/{_hasUnicode-DkEebvtD.js → _hasUnicode-CbmCTPAa.js} +0 -0
  462. /package/dist/{apl-aGhy11IM.js → apl-Css595_H.js} +0 -0
  463. /package/dist/{array-DYSXIreg.js → array-D3smvOQ_.js} +0 -0
  464. /package/dist/{asciiarmor-DJKJ3Gkn.js → asciiarmor-BTCuJwxh.js} +0 -0
  465. /package/dist/{asn1-C6f5IeNs.js → asn1-DXjhS5QI.js} +0 -0
  466. /package/dist/{asterisk-DB1poX9_.js → asterisk-5HlmsIaw.js} +0 -0
  467. /package/dist/{brainfuck-Ch9vjun0.js → brainfuck--WlEc-iG.js} +0 -0
  468. /package/dist/{chunk-57QY23SG-BpXU7ph4.js → chunk-57QY23SG-D7ymhFFp.js} +0 -0
  469. /package/dist/{click-outside-container-2BH589Bq.js → click-outside-container-DSVM9sZw.js} +0 -0
  470. /package/dist/{clike-Bc2PZzZQ.js → clike-DDIJB_R8.js} +0 -0
  471. /package/dist/{clojure-B_lpr3zt.js → clojure-Z-GPBZyY.js} +0 -0
  472. /package/dist/{cmake-DaocNF4I.js → cmake-DncBqspt.js} +0 -0
  473. /package/dist/{cobol-suTPtt7c.js → cobol-DqUe0gl7.js} +0 -0
  474. /package/dist/{coffeescript-CPLIvtqJ.js → coffeescript-CH5_OO0H.js} +0 -0
  475. /package/dist/{colors-BXlG8Lmz.js → colors-DQmMCNWX.js} +0 -0
  476. /package/dist/{common-keywords-Bhll7O3b.js → common-keywords-CAEsQSF5.js} +0 -0
  477. /package/dist/{commonlisp-BqM3qFK7.js → commonlisp-UmhR9BfE.js} +0 -0
  478. /package/dist/{crystal-AsSFu4ke.js → crystal-5Sqf7MXt.js} +0 -0
  479. /package/dist/{css-Df7Sdeyh.js → css-bDybSxwf.js} +0 -0
  480. /package/dist/{cypher-CaVKL6Gu.js → cypher-PIeAFhrd.js} +0 -0
  481. /package/dist/{cytoscape.esm-BFEMljQI.js → cytoscape.esm-DclyBJ4D.js} +0 -0
  482. /package/dist/{d-DCGWK7NQ.js → d-Bd8EVRQt.js} +0 -0
  483. /package/dist/{defaultLocale-Cto8YOmX.js → defaultLocale-BPzjWfXP.js} +0 -0
  484. /package/dist/{defaultLocale-CYgZlqDF.js → defaultLocale-Om7Wxg5c.js} +0 -0
  485. /package/dist/{diff-CsxOM4Tr.js → diff-CAQdgtD6.js} +0 -0
  486. /package/dist/{dtd-Dwr0Jmks.js → dtd-eKW3pZj_.js} +0 -0
  487. /package/dist/{duckdb-keywords-7wAWf848.js → duckdb-keywords-BC3kWZZM.js} +0 -0
  488. /package/dist/{dylan-A7-ZBSey.js → dylan-CIO7R9Tr.js} +0 -0
  489. /package/dist/{ebnf-9_SaGDUz.js → ebnf-Pr4a9I6n.js} +0 -0
  490. /package/dist/{ecl-BzJVIQDc.js → ecl-BqYW-aOJ.js} +0 -0
  491. /package/dist/{eiffel-CO9eC_Op.js → eiffel-BOKM91eM.js} +0 -0
  492. /package/dist/{elm-CVAWj8SB.js → elm-3sobs3PV.js} +0 -0
  493. /package/dist/{emotion-is-prop-valid.esm-C3Yi5GQt.js → emotion-is-prop-valid.esm-Cm1uulbm.js} +0 -0
  494. /package/dist/{erlang-DWbZP546.js → erlang-C5EBzhP1.js} +0 -0
  495. /package/dist/{esm-AtKNNGYO.js → esm-CopBBL2y.js} +0 -0
  496. /package/dist/{fcl-CM9t2iay.js → fcl-Brh8s8q_.js} +0 -0
  497. /package/dist/{forth-BTYqUuu3.js → forth-DneRHr4K.js} +0 -0
  498. /package/dist/{fortran-DgAjHcCq.js → fortran-DsdmZbwQ.js} +0 -0
  499. /package/dist/{gas-BjDSWPZd.js → gas-DaoJ65Z9.js} +0 -0
  500. /package/dist/{gherkin-ClRqqpKv.js → gherkin-DUP_UlW-.js} +0 -0
  501. /package/dist/{groovy-BzNjnc8x.js → groovy-Rvyan8yX.js} +0 -0
  502. /package/dist/{haskell-DLdk34Jq.js → haskell-DIvpY54L.js} +0 -0
  503. /package/dist/{haxe-l6gaY_IS.js → haxe-Da_5bBNs.js} +0 -0
  504. /package/dist/{http-6Qg7z_h2.js → http-CMvcwl3E.js} +0 -0
  505. /package/dist/{idl-hlWT4D26.js → idl-DvL3aO0N.js} +0 -0
  506. /package/dist/{init-tZ42Torz.js → init-BNp5RczD.js} +0 -0
  507. /package/dist/{invariant-D3JoRb4I.js → invariant-Cl2wkkjN.js} +0 -0
  508. /package/dist/{isArrayLikeObject-DU5MCuQM.js → isArrayLikeObject-1qkWxZbL.js} +0 -0
  509. /package/dist/{javascript-DGukg1sB.js → javascript-DoyAP8vn.js} +0 -0
  510. /package/dist/{jinja2-DI5k_Er3.js → jinja2-Veqp7mFj.js} +0 -0
  511. /package/dist/{julia-BvDZDiIT.js → julia-Gi684CX7.js} +0 -0
  512. /package/dist/{katex-DgfMWJY9.js → katex-U6RPAuWM.js} +0 -0
  513. /package/dist/{livescript-2YMQfkfI.js → livescript-BKj_Zhvo.js} +0 -0
  514. /package/dist/{lua-DIUrQRfA.js → lua-CDA7hreG.js} +0 -0
  515. /package/dist/{main-BMTpe7M0.js → main-63eIj2Yx.js} +0 -0
  516. /package/dist/{marked.esm-DkVwEwtO.js → marked.esm-DE8HU3tw.js} +0 -0
  517. /package/dist/{math-qsHyz2Eo.js → math-C2iLT5gz.js} +0 -0
  518. /package/dist/{mathematica-Dqmg_BwL.js → mathematica-GWfSHReY.js} +0 -0
  519. /package/dist/{mbox-Cng-P-F1.js → mbox-Dwsrc4Ak.js} +0 -0
  520. /package/dist/{mirc-CNDqOVhQ.js → mirc-B2JE5ype.js} +0 -0
  521. /package/dist/{mllike-C1n2UDyX.js → mllike-BkBh4PFX.js} +0 -0
  522. /package/dist/{modelica-QqQC2pFj.js → modelica-C0hNlKgR.js} +0 -0
  523. /package/dist/{mscgen-C3fl8uhp.js → mscgen-DWWpdZnb.js} +0 -0
  524. /package/dist/{mumps-BeCUbMej.js → mumps-CMePAlSe.js} +0 -0
  525. /package/dist/{nginx-ejv7DsBz.js → nginx-GurZbX0E.js} +0 -0
  526. /package/dist/{node-sql-parser-CoPWN4hn.js → node-sql-parser-IKID_dZE.js} +0 -0
  527. /package/dist/{ntriples-CUgUpcma.js → ntriples-BnE6tX0Y.js} +0 -0
  528. /package/dist/{octave-BD652tGl.js → octave-Dfu3PmNP.js} +0 -0
  529. /package/dist/{oz-DrRsFa0K.js → oz-DqNpAjpZ.js} +0 -0
  530. /package/dist/{pascal-hpcx9sVn.js → pascal-GP_8jbNL.js} +0 -0
  531. /package/dist/{path-Bbv2tLY1.js → path-BeMi_1Je.js} +0 -0
  532. /package/dist/{perl-DW8XHeFc.js → perl-DUDEqQOD.js} +0 -0
  533. /package/dist/{pig-Cv7Nxbfo.js → pig-Csr4LnKs.js} +0 -0
  534. /package/dist/{powershell-Dr7WZMDU.js → powershell-Cw4tDKZx.js} +0 -0
  535. /package/dist/{prop-types-Bd16OEUP.js → prop-types-CzOfzj9N.js} +0 -0
  536. /package/dist/{properties-D-qJDXAM.js → properties-CUhUGfHR.js} +0 -0
  537. /package/dist/{protobuf-B48QZbd3.js → protobuf-CPZe957V.js} +0 -0
  538. /package/dist/{puppet-15JDyiY2.js → puppet-BP1AOwo6.js} +0 -0
  539. /package/dist/{purify.es-CrfFzTyi.js → purify.es-CDFkadZl.js} +0 -0
  540. /package/dist/{python-DWkQA94h.js → python-BMcMimC3.js} +0 -0
  541. /package/dist/{q-BzRpKgfd.js → q-BNfSHUci.js} +0 -0
  542. /package/dist/{r-dcNRe_Q8.js → r-DiJzLRZc.js} +0 -0
  543. /package/dist/{range-CQvYp_qE.js → range-sX2tw-Jz.js} +0 -0
  544. /package/dist/{react-dom-CpBooCbY.js → react-dom-BTjywDxo.js} +0 -0
  545. /package/dist/{rpm-Djl3Dsf1.js → rpm-CywAxCKo.js} +0 -0
  546. /package/dist/{ruby-Dd2CZTip.js → ruby-B0a4mSSU.js} +0 -0
  547. /package/dist/{sas-DYF5_Iqu.js → sas-DTh30wZQ.js} +0 -0
  548. /package/dist/{scheme-YtWcji1H.js → scheme-CsOlAIFf.js} +0 -0
  549. /package/dist/{shell-C3uC3Y0Z.js → shell-7w75P-tg.js} +0 -0
  550. /package/dist/{sieve-DHB17sQG.js → sieve-BphUEMa4.js} +0 -0
  551. /package/dist/{simple-mode-BMmwP_vI.js → simple-mode-BcThS5Pa.js} +0 -0
  552. /package/dist/{smalltalk-Y5v1Np3H.js → smalltalk-CHwdNey_.js} +0 -0
  553. /package/dist/{solr-DvRJLlRD.js → solr-CuWbYJLt.js} +0 -0
  554. /package/dist/{sparql-BEt3GJwM.js → sparql-BtwCqUvT.js} +0 -0
  555. /package/dist/{spreadsheet-Dp4B9_rc.js → spreadsheet-C1JzeuKn.js} +0 -0
  556. /package/dist/{sql-DBsUs8nQ.js → sql-wv_2DQzf.js} +0 -0
  557. /package/dist/{stex-C6-x52ei.js → stex-BmcrV7cx.js} +0 -0
  558. /package/dist/{stylus-DroA8via.js → stylus-SVJ7TGPh.js} +0 -0
  559. /package/dist/{swift-DR0x1ESK.js → swift-f7KaABxm.js} +0 -0
  560. /package/dist/{tcl-BeuTFc_c.js → tcl-CbTFkeHJ.js} +0 -0
  561. /package/dist/{textile-C0ikhHN3.js → textile-CFn6QLRy.js} +0 -0
  562. /package/dist/{tiddlywiki-C_2Nvsgu.js → tiddlywiki-DBhMcdVM.js} +0 -0
  563. /package/dist/{tiki-CKQlhmQQ.js → tiki-CqcXr_YN.js} +0 -0
  564. /package/dist/{timer-CcUhugb0.js → timer-ly0jlpkr.js} +0 -0
  565. /package/dist/{toml-BqNUJWRI.js → toml-YgDIoI1n.js} +0 -0
  566. /package/dist/{treemap-BYLUKIzA.js → treemap-D5sUCpbF.js} +0 -0
  567. /package/dist/{troff-DkK0f2ZH.js → troff-CIp_4RXg.js} +0 -0
  568. /package/dist/{ttcn-Bf8vrg-_.js → ttcn-Yn_uOBYK.js} +0 -0
  569. /package/dist/{ttcn-cfg-DjCKzd95.js → ttcn-cfg-BVum2rmM.js} +0 -0
  570. /package/dist/{turtle-SSc84S9m.js → turtle-BeWx-YoQ.js} +0 -0
  571. /package/dist/{vb-CQ6DC3cL.js → vb-DKEmSA_2.js} +0 -0
  572. /package/dist/{vbscript-Dw0gFssg.js → vbscript-BPsxuP0n.js} +0 -0
  573. /package/dist/{velocity-BvJQyBmj.js → velocity-ycm1NvlO.js} +0 -0
  574. /package/dist/{verilog-CKGAvQjj.js → verilog-ogjm0Ytr.js} +0 -0
  575. /package/dist/{vhdl-B40_x6fM.js → vhdl-BvjyOM9y.js} +0 -0
  576. /package/dist/{webidl-Bi9hczCv.js → webidl-QdwcTYEu.js} +0 -0
  577. /package/dist/{xquery-DwWUXvP3.js → xquery-BErHIIc-.js} +0 -0
  578. /package/dist/{yacas-ClUs0mmH.js → yacas-BBBJNs0h.js} +0 -0
  579. /package/dist/{z80-DPC4UGzR.js → z80-nG9RRukG.js} +0 -0
  580. /package/dist/{zod-mAEs2ITo.js → zod-0AbTN3Cg.js} +0 -0
@@ -3,35 +3,35 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import { s as __toESM, t as __commonJSMin } from "./chunk-DgPTj83v.js";
5
5
  import { t as require_react } from "./react-DHL_F5hS.js";
6
- import { n as require_compiler_runtime, t as require_jsx_runtime } from "./jsx-runtime-DZyWJV5b.js";
7
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-GNcK40wy.js";
8
- import "./Combination-De9yoNY5.js";
9
- import "./check-COlaG7Ss.js";
10
- import { c as Select, d as SelectItem, h as SelectValue, j as useOnMount, l as SelectContent, m as SelectTrigger, t as Label } from "./label-BiVIU_wb.js";
11
- import { Gt as useNonce, Jt as capitalize_default, Qt as Pencil, S as DropdownMenuSubTrigger, Yt as Trash, Zt as Plus, a as Input, b as DropdownMenuSub, g as DropdownMenuItem, m as DropdownMenuContent, n as ErrorBoundary, p as DropdownMenu, qt as logNever, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-BPohCsA7.js";
12
- import { t as Button, u as Events } from "./button-ADXOb_gX.js";
6
+ import { t as require_compiler_runtime } from "./compiler-runtime-5MdCVm0X.js";
7
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-bxQOKABs.js";
8
+ import "./Combination-DrSsMSEB.js";
9
+ import "./check-BZnPxXnd.js";
10
+ import { T as useOnMount, a as SelectItem, c as SelectTrigger, k as logNever, l as SelectValue, n as Select, r as SelectContent, t as Label } from "./label-Wr-xTlW7.js";
11
+ import { S as DropdownMenuSubTrigger, X as capitalize_default, Xt as Pencil, Y as useNonce, Yt as Plus, a as Input, b as DropdownMenuSub, g as DropdownMenuItem, m as DropdownMenuContent, n as ErrorBoundary, p as DropdownMenu, qt as Trash, t as BulkEdit, v as DropdownMenuPortal, x as DropdownMenuSubContent, y as DropdownMenuSeparator } from "./types-Bt7p5SYB.js";
12
+ import { t as Button, u as Events } from "./button-B8zS4Mtw.js";
13
13
  import { s as Logger } from "./hotkeys-DVxFjl2s.js";
14
- import "./react-dom-CpBooCbY.js";
15
- import { h as useEvent_default, n as useTheme } from "./useTheme-CnMbo-iq.js";
16
- import "./isArrayLikeObject-DU5MCuQM.js";
17
- import "./isSymbol-CtkA8Y0a.js";
18
- import "./toString-CbuxCRDG.js";
19
- import "./toNumber-D3Ystr3y.js";
20
- import "./_baseIsEqual-BFlyFUxC.js";
21
- import "./merge-C_6cGM6o.js";
22
- import "./_baseSlice-CE9WsQZm.js";
23
- import "./_hasUnicode-DkEebvtD.js";
24
- import "./now-DumxsrcX.js";
25
- import "./constants-BaCMVd12.js";
26
- import "./zod-mAEs2ITo.js";
27
- import "./invariant-D3JoRb4I.js";
28
- import "./once-3OSMKEsL.js";
29
- import { t as marked } from "./marked.esm-DkVwEwtO.js";
30
- import "./tslib.es6-3ZL768sZ.js";
31
- import "./emotion-is-prop-valid.esm-C3Yi5GQt.js";
32
- import { t as require_prop_types } from "./prop-types-Bd16OEUP.js";
33
- import { A as require__isIndex, B as require_isObject, C as assert, D as require__hasPath, E as maybe, F as require__ListCache, G as require__Symbol, H as require_isSymbol, I as require_eq, J as require_isArray, K as require__root, L as require__getNative, M as require__castPath, N as require__MapCache, O as require__toKey, P as require__Map, R as require__toSource, S as resolveCellsThunk, T as deepEqual, U as require_isObjectLike, V as require__isKey, W as require__baseGetTag, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require_isArguments, k as require_isLength, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as require__freeGlobal, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as assertNever, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isFunction } from "./click-outside-container-2BH589Bq.js";
34
- import { t as styled_default } from "./dist-CNAkUyxv.js";
14
+ import { t as require_jsx_runtime } from "./jsx-runtime-CvL6gNI-.js";
15
+ import "./react-dom-BTjywDxo.js";
16
+ import { h as useEvent_default, n as useTheme } from "./useTheme-D7vlj42b.js";
17
+ import "./isArrayLikeObject-1qkWxZbL.js";
18
+ import "./isSymbol-BnxbuvDK.js";
19
+ import "./toString-CT4n1k2E.js";
20
+ import "./toNumber-CUG0Hyhp.js";
21
+ import "./_baseIsEqual-DbBiwJP8.js";
22
+ import "./merge-dMlizkC5.js";
23
+ import "./_baseSlice-CAnpEJwx.js";
24
+ import "./_hasUnicode-CbmCTPAa.js";
25
+ import "./now-8WTe-KKa.js";
26
+ import "./constants-BlvmN57i.js";
27
+ import "./zod-0AbTN3Cg.js";
28
+ import "./invariant-Cl2wkkjN.js";
29
+ import "./once-rI5AYku5.js";
30
+ import { t as marked } from "./marked.esm-DE8HU3tw.js";
31
+ import "./emotion-is-prop-valid.esm-Cm1uulbm.js";
32
+ import { t as require_prop_types } from "./prop-types-CzOfzj9N.js";
33
+ import { A as require__isIndex, B as require_isObject, C as assert, D as require__hasPath, E as maybe, F as require__ListCache, G as require__Symbol, H as require_isSymbol, I as require_eq, J as require_isArray, K as require__root, L as require__getNative, M as require__castPath, N as require__MapCache, O as require__toKey, P as require__Map, R as require__toSource, S as resolveCellsThunk, T as deepEqual, U as require_isObjectLike, V as require__isKey, W as require__baseGetTag, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require_isArguments, k as require_isLength, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as require__freeGlobal, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as assertNever, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isFunction } from "./click-outside-container-DSVM9sZw.js";
34
+ import { t as styled_default } from "./dist-BxmsyHv5.js";
35
35
  let GlideDataEditor, glide_data_editor_default;
36
36
  let __tla = (async () => {
37
37
  const ImageOverlayEditorStyle = styled_default("div")({
@@ -349,7 +349,7 @@ let __tla = (async () => {
349
349
  })), require_cssClasses = __commonJSMin(((e) => {
350
350
  Object.defineProperty(e, "__esModule", {
351
351
  value: true
352
- });
352
+ }), e.default = void 0;
353
353
  var t = n(require_classnames());
354
354
  function n(e2) {
355
355
  return e2 && e2.__esModule ? e2 : {
@@ -421,14 +421,14 @@ let __tla = (async () => {
421
421
  })), require_dimensions = __commonJSMin(((e) => {
422
422
  Object.defineProperty(e, "__esModule", {
423
423
  value: true
424
- }), e.outerWidth = function(e2) {
424
+ }), e.outerWidth = void 0, e.outerWidth = function(e2) {
425
425
  var t = e2.offsetWidth, n = getComputedStyle(e2);
426
426
  return t += parseInt(n.marginLeft) + parseInt(n.marginRight), t;
427
427
  };
428
428
  })), require_CSSTranslate = __commonJSMin(((e) => {
429
429
  Object.defineProperty(e, "__esModule", {
430
430
  value: true
431
- }), e.default = function(e2, t, n) {
431
+ }), e.default = void 0, e.default = function(e2, t, n) {
432
432
  var r = e2 === 0 ? e2 : e2 + t;
433
433
  return "translate3d" + ("(" + (n === "horizontal" ? [
434
434
  r,
@@ -443,13 +443,13 @@ let __tla = (async () => {
443
443
  })), require_window = __commonJSMin(((e) => {
444
444
  Object.defineProperty(e, "__esModule", {
445
445
  value: true
446
- }), e.default = function() {
446
+ }), e.default = void 0, e.default = function() {
447
447
  return window;
448
448
  };
449
449
  })), require_Thumbs = __commonJSMin(((e) => {
450
450
  Object.defineProperty(e, "__esModule", {
451
451
  value: true
452
- });
452
+ }), e.default = void 0;
453
453
  var t = u(require_react()), r = c(require_cssClasses()), i = require_dimensions(), a = c(require_CSSTranslate()), o = c(require_lib()), s = c(require_window());
454
454
  function c(e2) {
455
455
  return e2 && e2.__esModule ? e2 : {
@@ -774,13 +774,13 @@ let __tla = (async () => {
774
774
  })), require_document = __commonJSMin(((e) => {
775
775
  Object.defineProperty(e, "__esModule", {
776
776
  value: true
777
- }), e.default = function() {
777
+ }), e.default = void 0, e.default = function() {
778
778
  return document;
779
779
  };
780
780
  })), require_utils = __commonJSMin(((e) => {
781
781
  Object.defineProperty(e, "__esModule", {
782
782
  value: true
783
- });
783
+ }), e.setPosition = e.getPosition = e.isKeyboardEvent = e.defaultStatusFormatter = e.noop = void 0;
784
784
  var t = require_react(), r = i(require_CSSTranslate());
785
785
  function i(e2) {
786
786
  return e2 && e2.__esModule ? e2 : {
@@ -816,7 +816,7 @@ let __tla = (async () => {
816
816
  })), require_animations = __commonJSMin(((e) => {
817
817
  Object.defineProperty(e, "__esModule", {
818
818
  value: true
819
- });
819
+ }), e.fadeAnimationHandler = e.slideStopSwipingHandler = e.slideSwipeAnimationHandler = e.slideAnimationHandler = void 0;
820
820
  var t = require_react(), r = a(require_CSSTranslate()), i = require_utils();
821
821
  function a(e2) {
822
822
  return e2 && e2.__esModule ? e2 : {
@@ -917,7 +917,7 @@ let __tla = (async () => {
917
917
  })), require_Carousel = __commonJSMin(((e) => {
918
918
  Object.defineProperty(e, "__esModule", {
919
919
  value: true
920
- });
920
+ }), e.default = void 0;
921
921
  var t = m(require_react()), r = u(require_lib()), i = u(require_cssClasses()), a = u(require_Thumbs()), o = u(require_document()), s = u(require_window()), c = require_utils(), l = require_animations();
922
922
  function u(e2) {
923
923
  return e2 && e2.__esModule ? e2 : {
@@ -3187,36 +3187,36 @@ let __tla = (async () => {
3187
3187
  kind: GridCellKind.Loading,
3188
3188
  allowOverlay: false
3189
3189
  };
3190
- function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, Nr, B, Pr, V) {
3191
- let H = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Fr = performance.now(), U = I.baseFontFull;
3192
- e.font = U;
3193
- let Ir = {
3190
+ function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, Nr, B, V, H) {
3191
+ let U = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Pr = performance.now(), W = I.baseFontFull;
3192
+ e.font = W;
3193
+ let Fr = {
3194
3194
  ctx: e
3195
- }, W = [
3195
+ }, G = [
3196
3196
  0,
3197
3197
  0
3198
- ], G = x > 0 ? getFreezeTrailingHeight(c, x, l) : 0, Lr, K, q = getSkipPoint(C);
3199
- return walkColumns(t, s, a, o, i, (t2, a2, o2, s2, J) => {
3200
- let Rr = Math.max(0, s2 - a2), zr = a2 + Rr, Br = i + 1, Vr = t2.width - Rr, Hr = r - i - 1;
3198
+ ], K = x > 0 ? getFreezeTrailingHeight(c, x, l) : 0, Ir, q, J = getSkipPoint(C);
3199
+ return walkColumns(t, s, a, o, i, (t2, a2, o2, s2, Y) => {
3200
+ let Lr = Math.max(0, s2 - a2), Rr = a2 + Lr, zr = i + 1, Br = t2.width - Lr, Vr = r - i - 1;
3201
3201
  if (C.length > 0) {
3202
3202
  let e2 = false;
3203
3203
  for (let t3 = 0; t3 < C.length; t3++) {
3204
3204
  let n2 = C[t3];
3205
- if (intersectRect(zr, Br, Vr, Hr, n2.x, n2.y, n2.width, n2.height)) {
3205
+ if (intersectRect(Rr, zr, Br, Vr, n2.x, n2.y, n2.width, n2.height)) {
3206
3206
  e2 = true;
3207
3207
  break;
3208
3208
  }
3209
3209
  }
3210
3210
  if (!e2) return;
3211
3211
  }
3212
- let Ur = () => {
3213
- e.save(), e.beginPath(), e.rect(zr, Br, Vr, Hr), e.clip();
3214
- }, Wr = D.columns.hasIndex(t2.sourceIndex), Y = f(t2.group ?? "").overrideTheme, Gr = t2.themeOverride === void 0 && Y === void 0 ? I : mergeAndRealizeTheme(I, Y, t2.themeOverride), Kr = Gr.baseFontFull;
3215
- Kr !== U && (U = Kr, e.font = Kr), Ur();
3212
+ let Hr = () => {
3213
+ e.save(), e.beginPath(), e.rect(Rr, zr, Br, Vr), e.clip();
3214
+ }, Ur = D.columns.hasIndex(t2.sourceIndex), Wr = f(t2.group ?? "").overrideTheme, Gr = t2.themeOverride === void 0 && Wr === void 0 ? I : mergeAndRealizeTheme(I, Wr, t2.themeOverride), Kr = Gr.baseFontFull;
3215
+ Kr !== W && (W = Kr, e.font = Kr), Hr();
3216
3216
  let qr;
3217
- return walkRowsInCol(J, o2, r, c, l, x, S, q, (i2, o3, l2, f2, x2) => {
3217
+ return walkRowsInCol(Y, o2, r, c, l, x, S, J, (i2, o3, l2, f2, x2) => {
3218
3218
  var _a, _b, _c;
3219
- if (o3 < 0 || (W[0] = t2.sourceIndex, W[1] = o3, E !== void 0 && !E.has(W))) return;
3219
+ if (o3 < 0 || (G[0] = t2.sourceIndex, G[1] = o3, E !== void 0 && !E.has(G))) return;
3220
3220
  if (C.length > 0) {
3221
3221
  let e2 = false;
3222
3222
  for (let n2 = 0; n2 < C.length; n2++) {
@@ -3228,33 +3228,33 @@ let __tla = (async () => {
3228
3228
  }
3229
3229
  if (!e2) return;
3230
3230
  }
3231
- let S2 = D.rows.hasIndex(o3), q2 = h.hasIndex(o3), J2 = o3 < c ? u(W) : loadingCell$1, Rr2 = a2, zr2 = t2.width, Br2 = false, Vr2 = false;
3232
- if (J2.span !== void 0) {
3233
- let [r2, c2] = J2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
3234
- if (K === void 0 && (K = /* @__PURE__ */ new Set()), K.has(u2)) {
3235
- H--;
3231
+ let S2 = D.rows.hasIndex(o3), J2 = h.hasIndex(o3), Y2 = o3 < c ? u(G) : loadingCell$1, Lr2 = a2, Rr2 = t2.width, zr2 = false, Br2 = false;
3232
+ if (Y2.span !== void 0) {
3233
+ let [r2, c2] = Y2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
3234
+ if (q === void 0 && (q = /* @__PURE__ */ new Set()), q.has(u2)) {
3235
+ U--;
3236
3236
  return;
3237
3237
  } else {
3238
- let r3 = getSpanBounds(J2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
3239
- if (!t2.sticky && r3[0] !== void 0 && (Vr2 = true), o4 !== void 0) {
3240
- Rr2 = o4.x, zr2 = o4.width, K.add(u2), e.restore(), qr = void 0, e.save(), e.beginPath();
3238
+ let r3 = getSpanBounds(Y2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
3239
+ if (!t2.sticky && r3[0] !== void 0 && (Br2 = true), o4 !== void 0) {
3240
+ Lr2 = o4.x, Rr2 = o4.width, q.add(u2), e.restore(), qr = void 0, e.save(), e.beginPath();
3241
3241
  let t3 = Math.max(0, s2 - o4.x);
3242
- e.rect(o4.x + t3, i2, o4.width - t3, l2), Lr === void 0 && (Lr = []), Lr.push({
3242
+ e.rect(o4.x + t3, i2, o4.width - t3, l2), Ir === void 0 && (Ir = []), Ir.push({
3243
3243
  x: o4.x + t3,
3244
3244
  y: i2,
3245
3245
  width: o4.width - t3,
3246
3246
  height: l2
3247
- }), e.clip(), Br2 = true;
3247
+ }), e.clip(), zr2 = true;
3248
3248
  }
3249
3249
  }
3250
3250
  }
3251
- let Hr2 = m == null ? void 0 : m(o3), Y2 = x2 && ((_a = t2.trailingRowOptions) == null ? void 0 : _a.themeOverride) !== void 0 ? (_b = t2.trailingRowOptions) == null ? void 0 : _b.themeOverride : void 0, X = J2.themeOverride === void 0 && Hr2 === void 0 && Y2 === void 0 ? Gr : mergeAndRealizeTheme(Gr, Hr2, Y2, J2.themeOverride);
3251
+ let Vr2 = m == null ? void 0 : m(o3), Wr2 = x2 && ((_a = t2.trailingRowOptions) == null ? void 0 : _a.themeOverride) !== void 0 ? (_b = t2.trailingRowOptions) == null ? void 0 : _b.themeOverride : void 0, X = Y2.themeOverride === void 0 && Vr2 === void 0 && Wr2 === void 0 ? Gr : mergeAndRealizeTheme(Gr, Vr2, Wr2, Y2.themeOverride);
3252
3252
  e.beginPath();
3253
- let Jr = cellIsSelected(W, J2, D), Yr = cellIsInRange(W, J2, D, y), Xr = J2.span !== void 0 && D.columns.some((e2) => J2.span !== void 0 && e2 >= J2.span[0] && e2 <= J2.span[1]);
3254
- Jr && !g && y ? Yr = 0 : Jr && y && (Yr = Math.max(Yr, 1)), Xr && Yr++, Jr || (S2 && Yr++, Wr && !x2 && Yr++);
3255
- let Zr = J2.kind === GridCellKind.Protected ? X.bgCellMedium : X.bgCell, Qr;
3256
- if ((f2 || Zr !== I.bgCell) && (Qr = blend(Zr, Qr)), Yr > 0 || q2) {
3257
- q2 && (Qr = blend(X.bgHeader, Qr));
3253
+ let Jr = cellIsSelected(G, Y2, D), Yr = cellIsInRange(G, Y2, D, y), Xr = Y2.span !== void 0 && D.columns.some((e2) => Y2.span !== void 0 && e2 >= Y2.span[0] && e2 <= Y2.span[1]);
3254
+ Jr && !g && y ? Yr = 0 : Jr && y && (Yr = Math.max(Yr, 1)), Xr && Yr++, Jr || (S2 && Yr++, Ur && !x2 && Yr++);
3255
+ let Zr = Y2.kind === GridCellKind.Protected ? X.bgCellMedium : X.bgCell, Qr;
3256
+ if ((f2 || Zr !== I.bgCell) && (Qr = blend(Zr, Qr)), Yr > 0 || J2) {
3257
+ J2 && (Qr = blend(X.bgHeader, Qr));
3258
3258
  for (let e2 = 0; e2 < Yr; e2++) Qr = blend(X.accentLight, Qr);
3259
3259
  } else if (O !== void 0) {
3260
3260
  for (let e2 of O) if (e2[0] === t2.sourceIndex && e2[1] === o3) {
@@ -3268,11 +3268,11 @@ let __tla = (async () => {
3268
3268
  }
3269
3269
  let ei = false;
3270
3270
  if (E !== void 0) {
3271
- let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r - G)) - t3;
3272
- (n2 !== l2 - 1 || Rr2 + 1 <= s2) && (ei = true, e.save(), e.beginPath(), e.rect(Rr2 + 1, t3, zr2 - 1, n2), e.clip()), Qr = Qr === void 0 ? X.bgCell : blend(Qr, X.bgCell);
3271
+ let t3 = i2 + 1, n2 = (f2 ? t3 + l2 - 1 : Math.min(t3 + l2 - 1, r - K)) - t3;
3272
+ (n2 !== l2 - 1 || Lr2 + 1 <= s2) && (ei = true, e.save(), e.beginPath(), e.rect(Lr2 + 1, t3, Rr2 - 1, n2), e.clip()), Qr = Qr === void 0 ? X.bgCell : blend(Qr, X.bgCell);
3273
3273
  }
3274
3274
  let ti = t2.sourceIndex === n.length - 1, ni = o3 === c - 1;
3275
- Qr !== void 0 && (e.fillStyle = Qr, qr !== void 0 && (qr.fillStyle = Qr), E === void 0 ? e.fillRect(Rr2, i2, zr2, l2) : e.fillRect(Rr2 + 1, i2 + 1, zr2 - (ti ? 2 : 1), l2 - (ni ? 2 : 1))), J2.style === "faded" && (e.globalAlpha = 0.6);
3275
+ Qr !== void 0 && (e.fillStyle = Qr, qr !== void 0 && (qr.fillStyle = Qr), E === void 0 ? e.fillRect(Lr2, i2, Rr2, l2) : e.fillRect(Lr2 + 1, i2 + 1, Rr2 - (ti ? 2 : 1), l2 - (ni ? 2 : 1))), Y2.style === "faded" && (e.globalAlpha = 0.6);
3276
3276
  let ii;
3277
3277
  for (let e2 = 0; e2 < M.length; e2++) {
3278
3278
  let n2 = M[e2];
@@ -3281,13 +3281,13 @@ let __tla = (async () => {
3281
3281
  break;
3282
3282
  }
3283
3283
  }
3284
- if (zr2 > V && !Vr2) {
3284
+ if (Rr2 > H && !Br2) {
3285
3285
  let n2 = X.baseFontFull;
3286
- n2 !== U && (e.font = n2, U = n2), qr = drawCell(e, J2, t2.sourceIndex, o3, ti, ni, Rr2, i2, zr2, l2, Yr > 0, X, Qr ?? X.bgCell, A, j, (ii == null ? void 0 : ii.hoverAmount) ?? 0, N, F, Fr, P, qr, L, Nr, B, Pr);
3286
+ n2 !== W && (e.font = n2, W = n2), qr = drawCell(e, Y2, t2.sourceIndex, o3, ti, ni, Lr2, i2, Rr2, l2, Yr > 0, X, Qr ?? X.bgCell, A, j, (ii == null ? void 0 : ii.hoverAmount) ?? 0, N, F, Pr, P, qr, L, Nr, B, V);
3287
3287
  }
3288
- return ei && e.restore(), J2.style === "faded" && (e.globalAlpha = 1), H--, Br2 && (e.restore(), (_c = qr == null ? void 0 : qr.deprep) == null ? void 0 : _c.call(qr, Ir), qr = void 0, Ur(), U = Kr, e.font = Kr), H <= 0;
3289
- }), e.restore(), H <= 0;
3290
- }), Lr;
3288
+ return ei && e.restore(), Y2.style === "faded" && (e.globalAlpha = 1), U--, zr2 && (e.restore(), (_c = qr == null ? void 0 : qr.deprep) == null ? void 0 : _c.call(qr, Fr), qr = void 0, Hr(), W = Kr, e.font = Kr), U <= 0;
3289
+ }), e.restore(), U <= 0;
3290
+ }), Ir;
3291
3291
  }
3292
3292
  var allocatedItem = [
3293
3293
  0,
@@ -4423,34 +4423,34 @@ let __tla = (async () => {
4423
4423
  }
4424
4424
  function drawGrid(e, t) {
4425
4425
  var _a;
4426
- let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: Nr, prelightCells: B, drawCellCallback: Pr, highlightRegions: V, resizeCol: H, imageLoader: Fr, lastBlitData: U, hoverValues: Ir, hyperWrapping: W, hoverInfo: G, spriteManager: K, maxScaleFactor: q, hasAppendRow: J, touchMode: Rr, enqueue: zr, renderStateProvider: Br, getCellRenderer: Vr, renderStrategy: Hr, bufferACtx: Ur, bufferBCtx: Wr, damage: Y, minimumCellWidth: Gr, resizeIndicator: Kr } = e;
4426
+ let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: Nr, prelightCells: B, drawCellCallback: V, highlightRegions: H, resizeCol: U, imageLoader: Pr, lastBlitData: W, hoverValues: Fr, hyperWrapping: G, hoverInfo: K, spriteManager: q, maxScaleFactor: J, hasAppendRow: Y, touchMode: Lr, enqueue: Rr, renderStateProvider: zr, getCellRenderer: Br, renderStrategy: Vr, bufferACtx: Hr, bufferBCtx: Ur, damage: Wr, minimumCellWidth: Gr, resizeIndicator: Kr } = e;
4427
4427
  if (i === 0 || a === 0) return;
4428
- let qr = Hr === "double-buffer", X = Math.min(q, Math.ceil(window.devicePixelRatio ?? 1)), Jr = Hr !== "direct" && computeCanBlit(e, t), Yr = n.canvas;
4428
+ let qr = Vr === "double-buffer", X = Math.min(J, Math.ceil(window.devicePixelRatio ?? 1)), Jr = Vr !== "direct" && computeCanBlit(e, t), Yr = n.canvas;
4429
4429
  (Yr.width !== i * X || Yr.height !== a * X) && (Yr.width = i * X, Yr.height = a * X, Yr.style.width = i + "px", Yr.style.height = a + "px");
4430
4430
  let Xr = r.canvas, Zr = f ? S + x : x, Qr = Zr + 1;
4431
4431
  (Xr.width !== i * X || Xr.height !== Qr * X) && (Xr.width = i * X, Xr.height = Qr * X, Xr.style.width = i + "px", Xr.style.height = Qr + "px");
4432
- let $r = Ur.canvas, ei = Wr.canvas;
4433
- qr && ($r.width !== i * X || $r.height !== a * X) && ($r.width = i * X, $r.height = a * X, U.current !== void 0 && (U.current.aBufferScroll = void 0)), qr && (ei.width !== i * X || ei.height !== a * X) && (ei.width = i * X, ei.height = a * X, U.current !== void 0 && (U.current.bBufferScroll = void 0));
4434
- let ti = U.current;
4432
+ let $r = Hr.canvas, ei = Ur.canvas;
4433
+ qr && ($r.width !== i * X || $r.height !== a * X) && ($r.width = i * X, $r.height = a * X, W.current !== void 0 && (W.current.aBufferScroll = void 0)), qr && (ei.width !== i * X || ei.height !== a * X) && (ei.width = i * X, ei.height = a * X, W.current !== void 0 && (W.current.bBufferScroll = void 0));
4434
+ let ti = W.current;
4435
4435
  if (Jr === true && o === (ti == null ? void 0 : ti.cellXOffset) && s === (ti == null ? void 0 : ti.cellYOffset) && c === (ti == null ? void 0 : ti.translateX) && l === (ti == null ? void 0 : ti.translateY)) return;
4436
4436
  let ni = null;
4437
4437
  qr && (ni = n);
4438
4438
  let ri = r, ii;
4439
- ii = qr ? Y === void 0 ? (ti == null ? void 0 : ti.lastBuffer) === "b" ? Ur : Wr : (ti == null ? void 0 : ti.lastBuffer) === "b" ? Wr : Ur : n;
4439
+ ii = qr ? Wr === void 0 ? (ti == null ? void 0 : ti.lastBuffer) === "b" ? Hr : Ur : (ti == null ? void 0 : ti.lastBuffer) === "b" ? Ur : Hr : n;
4440
4440
  let ai = ii.canvas, oi = qr ? ai === $r ? ei : $r : Yr, si = typeof E == "number" ? () => E : E;
4441
4441
  ri.save(), ii.save(), ri.beginPath(), ii.beginPath(), ri.textBaseline = "middle", ii.textBaseline = "middle", X !== 1 && (ri.scale(X, X), ii.scale(X, X));
4442
4442
  let ci = getEffectiveColumns(u, o, i, h, c), li = [], ui = y && ((_a = A.current) == null ? void 0 : _a.cell[1]) === s && l === 0, di = false;
4443
- if (V !== void 0) {
4444
- for (let e2 of V) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
4443
+ if (H !== void 0) {
4444
+ for (let e2 of H) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
4445
4445
  di = true;
4446
4446
  break;
4447
4447
  }
4448
4448
  }
4449
4449
  let pi = () => {
4450
- drawGridHeaders(ri, ci, f, G, i, c, x, S, h, k, A, g, K, Ir, D, F, Y, Nr, Rr), drawGridLines(ri, ci, s, c, l, i, a, void 0, void 0, S, Zr, si, I, D, M, N, g, true), ri.beginPath(), ri.moveTo(0, Qr - 0.5), ri.lineTo(i, Qr - 0.5), ri.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), ri.stroke(), di && drawHighlightRings(ri, i, a, o, s, c, l, u, m, x, S, E, M, N, V, g), ui && drawFillHandle(ri, i, a, s, c, l, ci, u, g, Zr, A, si, P, M, J, j, N);
4450
+ drawGridHeaders(ri, ci, f, K, i, c, x, S, h, k, A, g, q, Fr, D, F, Wr, Nr, Lr), drawGridLines(ri, ci, s, c, l, i, a, void 0, void 0, S, Zr, si, I, D, M, N, g, true), ri.beginPath(), ri.moveTo(0, Qr - 0.5), ri.lineTo(i, Qr - 0.5), ri.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), ri.stroke(), di && drawHighlightRings(ri, i, a, o, s, c, l, u, m, x, S, E, M, N, H, g), ui && drawFillHandle(ri, i, a, s, c, l, ci, u, g, Zr, A, si, P, M, Y, j, N);
4451
4451
  };
4452
- if (Y !== void 0) {
4453
- let e2 = ci[ci.length - 1].sourceIndex + 1, t2 = Y.hasItemInRegion([
4452
+ if (Wr !== void 0) {
4453
+ let e2 = ci[ci.length - 1].sourceIndex + 1, t2 = Wr.hasItemInRegion([
4454
4454
  {
4455
4455
  x: o,
4456
4456
  y: -2,
@@ -4483,11 +4483,11 @@ let __tla = (async () => {
4483
4483
  when: M > 0
4484
4484
  }
4485
4485
  ]), n2 = (e3) => {
4486
- drawCells(e3, ci, u, a, Zr, c, l, s, N, si, P, F, I, C, L, y, M, J, li, Y, A, B, V, Fr, K, Ir, G, Pr, W, g, zr, Br, Vr, O, Gr);
4486
+ drawCells(e3, ci, u, a, Zr, c, l, s, N, si, P, F, I, C, L, y, M, Y, li, Wr, A, B, H, Pr, q, Fr, K, V, G, g, Rr, zr, Br, O, Gr);
4487
4487
  let t3 = A.current;
4488
- j && y && t3 !== void 0 && Y.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, ci, u, g, Zr, A, si, P, M, J, j, N);
4488
+ j && y && t3 !== void 0 && Wr.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, ci, u, g, Zr, A, si, P, M, Y, j, N);
4489
4489
  };
4490
- t2 && (n2(ii), ni !== null && (ni.save(), ni.scale(X, X), ni.textBaseline = "middle", n2(ni), ni.restore()), Y.hasHeader() && (clipHeaderDamage(ri, ci, i, S, Zr, c, l, s, Y), pi())), ii.restore(), ri.restore();
4490
+ t2 && (n2(ii), ni !== null && (ni.save(), ni.scale(X, X), ni.textBaseline = "middle", n2(ni), ni.restore()), Wr.hasHeader() && (clipHeaderDamage(ri, ci, i, S, Zr, c, l, s, Wr), pi())), ii.restore(), ri.restore();
4491
4491
  return;
4492
4492
  }
4493
4493
  if ((Jr !== true || o !== (ti == null ? void 0 : ti.cellXOffset) || c !== (ti == null ? void 0 : ti.translateX) || ui !== (ti == null ? void 0 : ti.mustDrawFocusOnHeader) || di !== (ti == null ? void 0 : ti.mustDrawHighlightRingsOnHeader)) && pi(), Jr === true) {
@@ -4496,16 +4496,16 @@ let __tla = (async () => {
4496
4496
  li = e2;
4497
4497
  } else Jr !== false && (assert(ti !== void 0), li = blitResizedCol(ti, o, s, c, l, i, a, Zr, ci, Jr));
4498
4498
  overdrawStickyBoundaries(ii, ci, i, a, M, N, D, si, g);
4499
- let mi = drawHighlightRings(ii, i, a, o, s, c, l, u, m, x, S, E, M, N, V, g), hi = y ? drawFillHandle(ii, i, a, s, c, l, ci, u, g, Zr, A, si, P, M, J, j, N) : void 0;
4499
+ let mi = drawHighlightRings(ii, i, a, o, s, c, l, u, m, x, S, E, M, N, H, g), hi = y ? drawFillHandle(ii, i, a, s, c, l, ci, u, g, Zr, A, si, P, M, Y, j, N) : void 0;
4500
4500
  if (ii.fillStyle = g.bgCell, li.length > 0) {
4501
4501
  ii.beginPath();
4502
4502
  for (let e2 of li) ii.rect(e2.x, e2.y, e2.width, e2.height);
4503
4503
  ii.clip(), ii.fill(), ii.beginPath();
4504
4504
  } else ii.fillRect(0, 0, i, a);
4505
- let gi = drawCells(ii, ci, u, a, Zr, c, l, s, N, si, P, F, I, C, L, y, M, J, li, Y, A, B, V, Fr, K, Ir, G, Pr, W, g, zr, Br, Vr, O, Gr);
4506
- drawBlanks(ii, ci, u, i, a, Zr, c, l, s, N, si, I, A.rows, C, M, J, li, Y, g), drawExtraRowThemes(ii, ci, s, c, l, i, a, li, Zr, si, I, D, M, N, g), drawGridLines(ii, ci, s, c, l, i, a, li, gi, S, Zr, si, I, D, M, N, g), mi == null ? void 0 : mi(), hi == null ? void 0 : hi(), k && Kr !== "none" && walkColumns(ci, 0, c, 0, Zr, (e2, t2) => e2.sourceIndex === H ? (drawColumnResizeOutline(ri, t2 + e2.width, 0, Zr + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), Kr === "full" && drawColumnResizeOutline(ii, t2 + e2.width, Zr, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), ni !== null && (ni.fillStyle = g.bgCell, ni.fillRect(0, 0, i, a), ni.drawImage(ii.canvas, 0, 0));
4507
- let _i = getLastRow(ci, a, Zr, c, l, s, N, si, M, J);
4508
- Fr == null ? void 0 : Fr.setWindow({
4505
+ let gi = drawCells(ii, ci, u, a, Zr, c, l, s, N, si, P, F, I, C, L, y, M, Y, li, Wr, A, B, H, Pr, q, Fr, K, V, G, g, Rr, zr, Br, O, Gr);
4506
+ drawBlanks(ii, ci, u, i, a, Zr, c, l, s, N, si, I, A.rows, C, M, Y, li, Wr, g), drawExtraRowThemes(ii, ci, s, c, l, i, a, li, Zr, si, I, D, M, N, g), drawGridLines(ii, ci, s, c, l, i, a, li, gi, S, Zr, si, I, D, M, N, g), mi == null ? void 0 : mi(), hi == null ? void 0 : hi(), k && Kr !== "none" && walkColumns(ci, 0, c, 0, Zr, (e2, t2) => e2.sourceIndex === U ? (drawColumnResizeOutline(ri, t2 + e2.width, 0, Zr + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), Kr === "full" && drawColumnResizeOutline(ii, t2 + e2.width, Zr, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), ni !== null && (ni.fillStyle = g.bgCell, ni.fillRect(0, 0, i, a), ni.drawImage(ii.canvas, 0, 0));
4507
+ let _i = getLastRow(ci, a, Zr, c, l, s, N, si, M, Y);
4508
+ Pr == null ? void 0 : Pr.setWindow({
4509
4509
  x: o,
4510
4510
  y: s,
4511
4511
  width: ci.length,
@@ -4514,7 +4514,7 @@ let __tla = (async () => {
4514
4514
  length: M
4515
4515
  }, (e2, t2) => N - 1 - t2));
4516
4516
  let vi = ti !== void 0 && (o !== ti.cellXOffset || c !== ti.translateX), yi = ti !== void 0 && (s !== ti.cellYOffset || l !== ti.translateY);
4517
- U.current = {
4517
+ W.current = {
4518
4518
  cellXOffset: o,
4519
4519
  cellYOffset: s,
4520
4520
  translateX: c,
@@ -4628,7 +4628,7 @@ let __tla = (async () => {
4628
4628
  var _a;
4629
4629
  return e.kind === GridCellKind.Custom ? e.copyData : ((_a = t == null ? void 0 : t(e)) == null ? void 0 : _a.getAccessibilityString(e)) ?? "";
4630
4630
  }, data_grid_default = import_react.memo(import_react.forwardRef((e, t) => {
4631
- let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: Nr, onMouseMove: B, onItemHovered: Pr, dragAndDropState: V, firstColAccessible: H, onKeyDown: Fr, onKeyUp: U, highlightRegions: Ir, canvasRef: W, onDragStart: G, onDragEnd: K, eventTargetRef: q, isResizing: J, resizeColumn: Rr, isDragging: zr, isDraggable: Br = false, allowResize: Vr, disabledRows: Hr, hasAppendRow: Ur, getGroupDetails: Wr, theme: Y, prelightCells: Gr, headerIcons: Kr, verticalBorder: qr, drawCell: X, drawHeader: Jr, onCellFocused: Yr, onDragOverCell: Xr, onDrop: Zr, onDragLeave: Qr, imageWindowLoader: $r, smoothScrollX: ti = false, smoothScrollY: oi = false, experimental: si, getCellRenderer: ci, resizeIndicator: li = "full" } = e, ui = e.translateX ?? 0, di = e.translateY ?? 0, fi = Math.max(A, Math.min(a.length - 1, o)), pi = import_react.useRef(null), mi = import_react.useRef((si == null ? void 0 : si.eventTarget) ?? window), hi = mi.current, gi = $r, _i = import_react.useRef(), [vi, bi] = import_react.useState(false), xi = import_react.useRef([]), Si = import_react.useRef(), [Ci, wi] = import_react.useState(), [Ti, Ei] = import_react.useState(), Di = import_react.useRef(null), [Oi, ki] = import_react.useState(), [Ai, ji] = import_react.useState(false), Mi = import_react.useRef(Ai);
4631
+ let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: Nr, onMouseMove: B, onItemHovered: V, dragAndDropState: H, firstColAccessible: U, onKeyDown: Pr, onKeyUp: W, highlightRegions: Fr, canvasRef: G, onDragStart: K, onDragEnd: q, eventTargetRef: J, isResizing: Y, resizeColumn: Lr, isDragging: Rr, isDraggable: zr = false, allowResize: Br, disabledRows: Vr, hasAppendRow: Hr, getGroupDetails: Ur, theme: Wr, prelightCells: Gr, headerIcons: Kr, verticalBorder: qr, drawCell: X, drawHeader: Jr, onCellFocused: Yr, onDragOverCell: Xr, onDrop: Zr, onDragLeave: Qr, imageWindowLoader: $r, smoothScrollX: ti = false, smoothScrollY: oi = false, experimental: si, getCellRenderer: ci, resizeIndicator: li = "full" } = e, ui = e.translateX ?? 0, di = e.translateY ?? 0, fi = Math.max(A, Math.min(a.length - 1, o)), pi = import_react.useRef(null), mi = import_react.useRef((si == null ? void 0 : si.eventTarget) ?? window), hi = mi.current, gi = $r, _i = import_react.useRef(), [vi, bi] = import_react.useState(false), xi = import_react.useRef([]), Si = import_react.useRef(), [Ci, wi] = import_react.useState(), [Ti, Ei] = import_react.useState(), Di = import_react.useRef(null), [Oi, ki] = import_react.useState(), [Ai, ji] = import_react.useState(false), Mi = import_react.useRef(Ai);
4632
4632
  Mi.current = Ai;
4633
4633
  let Ni = import_react.useMemo(() => new SpriteManager(Kr, () => {
4634
4634
  Xi.current = void 0, ea.current();
@@ -4647,9 +4647,9 @@ let __tla = (async () => {
4647
4647
  Ii,
4648
4648
  Li
4649
4649
  ]);
4650
- let Ri = useMappedColumns(a, A), zi = import_react.useMemo(() => N ? getStickyWidth(Ri, V) : 0, [
4650
+ let Ri = useMappedColumns(a, A), zi = import_react.useMemo(() => N ? getStickyWidth(Ri, H) : 0, [
4651
4651
  Ri,
4652
- V,
4652
+ H,
4653
4653
  N
4654
4654
  ]), Bi = import_react.useCallback((e2, t2, i2) => {
4655
4655
  let a2 = e2.getBoundingClientRect();
@@ -4843,33 +4843,33 @@ let __tla = (async () => {
4843
4843
  mappedColumns: Ri,
4844
4844
  enableGroups: S,
4845
4845
  freezeColumns: A,
4846
- dragAndDropState: V,
4847
- theme: Y,
4846
+ dragAndDropState: H,
4847
+ theme: Wr,
4848
4848
  headerHeight: c,
4849
4849
  groupHeaderHeight: u,
4850
- disabledRows: Hr ?? CompactSelection.empty(),
4850
+ disabledRows: Vr ?? CompactSelection.empty(),
4851
4851
  rowHeight: f,
4852
4852
  verticalBorder: qr,
4853
- isResizing: J,
4854
- resizeCol: Rr,
4853
+ isResizing: Y,
4854
+ resizeCol: Lr,
4855
4855
  isFocused: O,
4856
4856
  selection: k,
4857
4857
  fillHandle: l,
4858
4858
  drawCellCallback: X,
4859
- hasAppendRow: Ur,
4859
+ hasAppendRow: Hr,
4860
4860
  overrideCursor: a2,
4861
4861
  maxScaleFactor: Ji,
4862
4862
  freezeTrailingRows: M,
4863
4863
  rows: m,
4864
4864
  drawFocus: F,
4865
4865
  getCellContent: h,
4866
- getGroupDetails: Wr ?? ((e3) => ({
4866
+ getGroupDetails: Ur ?? ((e3) => ({
4867
4867
  name: e3
4868
4868
  })),
4869
4869
  getRowThemeOverride: g,
4870
4870
  drawHeaderCallback: Jr,
4871
4871
  prelightCells: Gr,
4872
- highlightRegions: Ir,
4872
+ highlightRegions: Fr,
4873
4873
  imageLoader: gi,
4874
4874
  lastBlitData: Si,
4875
4875
  damage: _i.current,
@@ -4899,16 +4899,16 @@ let __tla = (async () => {
4899
4899
  Ri,
4900
4900
  S,
4901
4901
  A,
4902
- V,
4903
- Y,
4902
+ H,
4903
+ Wr,
4904
4904
  c,
4905
4905
  u,
4906
- Hr,
4906
+ Vr,
4907
4907
  f,
4908
4908
  qr,
4909
- J,
4910
- Ur,
4911
- Rr,
4909
+ Y,
4910
+ Hr,
4911
+ Lr,
4912
4912
  O,
4913
4913
  k,
4914
4914
  l,
@@ -4917,12 +4917,12 @@ let __tla = (async () => {
4917
4917
  F,
4918
4918
  Ji,
4919
4919
  h,
4920
- Wr,
4920
+ Ur,
4921
4921
  g,
4922
4922
  X,
4923
4923
  Jr,
4924
4924
  Gr,
4925
- Ir,
4925
+ Fr,
4926
4926
  gi,
4927
4927
  Ni,
4928
4928
  vi,
@@ -4962,29 +4962,29 @@ let __tla = (async () => {
4962
4962
  ], true);
4963
4963
  da = e2.kind === InnerGridCellKind.NewRow || e2.kind === InnerGridCellKind.Marker && e2.markerKind !== "number", fa = e2.kind === GridCellKind.Boolean && booleanCellIsEditable(e2), pa = e2.cursor;
4964
4964
  }
4965
- let ma = zr ? "grabbing" : (Ti ?? false) || J ? "col-resize" : aa || C ? "crosshair" : pa === void 0 ? la || da || fa || ua ? "pointer" : "default" : pa, ha = import_react.useMemo(() => ({
4965
+ let ma = Rr ? "grabbing" : (Ti ?? false) || Y ? "col-resize" : aa || C ? "crosshair" : pa === void 0 ? la || da || fa || ua ? "pointer" : "default" : pa, ha = import_react.useMemo(() => ({
4966
4966
  contain: "strict",
4967
4967
  display: "block",
4968
4968
  cursor: ma
4969
4969
  }), [
4970
4970
  ma
4971
- ]), ga = import_react.useRef("default"), _a = q == null ? void 0 : q.current;
4971
+ ]), ga = import_react.useRef("default"), _a = J == null ? void 0 : J.current;
4972
4972
  _a != null && ga.current !== ha.cursor && (_a.style.cursor = ga.current = ha.cursor);
4973
4973
  let va = import_react.useCallback((e2, t2, n2, r2) => {
4974
- if (Wr === void 0) return;
4975
- let i2 = Wr(e2);
4974
+ if (Ur === void 0) return;
4975
+ let i2 = Ur(e2);
4976
4976
  if (i2.actions !== void 0) {
4977
4977
  let e3 = getActionBoundsForGroup(t2, i2.actions);
4978
4978
  for (let [a2, o2] of e3.entries()) if (pointInRect(o2, n2 + t2.x, r2 + o2.y)) return i2.actions[a2];
4979
4979
  }
4980
4980
  }, [
4981
- Wr
4981
+ Ur
4982
4982
  ]), ya = import_react.useCallback((e2, t2, n2, r2) => {
4983
4983
  let i2 = Ri[t2];
4984
- if (!zr && !J && !(Ti ?? false)) {
4984
+ if (!Rr && !Y && !(Ti ?? false)) {
4985
4985
  let a2 = Bi(e2, t2, -1);
4986
4986
  assert(a2 !== void 0);
4987
- let o2 = computeHeaderLayout(void 0, i2, a2.x, a2.y, a2.width, a2.height, Y, direction(i2.title) === "rtl");
4987
+ let o2 = computeHeaderLayout(void 0, i2, a2.x, a2.y, a2.width, a2.height, Wr, direction(i2.title) === "rtl");
4988
4988
  if (i2.hasMenu === true && o2.menuBounds !== void 0 && pointInRect(o2.menuBounds, n2, r2)) return {
4989
4989
  area: "menu",
4990
4990
  bounds: o2.menuBounds
@@ -4998,11 +4998,11 @@ let __tla = (async () => {
4998
4998
  Ri,
4999
4999
  Bi,
5000
5000
  Ti,
5001
- zr,
5002
- J,
5003
- Y
5001
+ Rr,
5002
+ Y,
5003
+ Wr
5004
5004
  ]), ba = import_react.useRef(0), xa = import_react.useRef(), Sa = import_react.useRef(false), Ca = import_react.useCallback((e2) => {
5005
- let t2 = pi.current, n2 = q == null ? void 0 : q.current;
5005
+ let t2 = pi.current, n2 = J == null ? void 0 : J.current;
5006
5006
  if (t2 === null || e2.target !== t2 && e2.target !== n2) return;
5007
5007
  Sa.current = true;
5008
5008
  let r2, i2;
@@ -5011,10 +5011,10 @@ let __tla = (async () => {
5011
5011
  if (r2 > e3.right || i2 > e3.bottom) return;
5012
5012
  }
5013
5013
  let a2 = Vi(t2, r2, i2, e2);
5014
- xa.current = a2.location, a2.isTouch && (ba.current = Date.now()), Mi.current !== a2.isTouch && ji(a2.isTouch), !(a2.kind === "header" && ya(t2, a2.location[0], r2, i2) !== void 0) && (a2.kind === "group-header" && va(a2.group, a2.bounds, a2.localEventX, a2.localEventY) !== void 0 || (I == null ? void 0 : I(a2), !a2.isTouch && Br !== true && Br !== a2.kind && a2.button < 3 && a2.button !== 1 && e2.preventDefault()));
5014
+ xa.current = a2.location, a2.isTouch && (ba.current = Date.now()), Mi.current !== a2.isTouch && ji(a2.isTouch), !(a2.kind === "header" && ya(t2, a2.location[0], r2, i2) !== void 0) && (a2.kind === "group-header" && va(a2.group, a2.bounds, a2.localEventX, a2.localEventY) !== void 0 || (I == null ? void 0 : I(a2), !a2.isTouch && zr !== true && zr !== a2.kind && a2.button < 3 && a2.button !== 1 && e2.preventDefault()));
5015
5015
  }, [
5016
- q,
5017
- Br,
5016
+ J,
5017
+ zr,
5018
5018
  Vi,
5019
5019
  va,
5020
5020
  ya,
@@ -5027,7 +5027,7 @@ let __tla = (async () => {
5027
5027
  wa.current = Date.now();
5028
5028
  let n2 = pi.current;
5029
5029
  if (Sa.current = false, L === void 0 || n2 === null) return;
5030
- let r2 = q == null ? void 0 : q.current, i2 = e2.target !== n2 && e2.target !== r2, a2, o2, s2 = true;
5030
+ let r2 = J == null ? void 0 : J.current, i2 = e2.target !== n2 && e2.target !== r2, a2, o2, s2 = true;
5031
5031
  if (e2 instanceof MouseEvent) {
5032
5032
  if (a2 = e2.clientX, o2 = e2.clientY, s2 = e2.button < 3, e2.pointerType === "touch") return;
5033
5033
  } else a2 = e2.changedTouches[0].clientX, o2 = e2.changedTouches[0].clientY;
@@ -5053,7 +5053,7 @@ let __tla = (async () => {
5053
5053
  L(c2, i2);
5054
5054
  }, [
5055
5055
  L,
5056
- q,
5056
+ J,
5057
5057
  Vi,
5058
5058
  ya,
5059
5059
  va
@@ -5062,7 +5062,7 @@ let __tla = (async () => {
5062
5062
  var _a2, _b;
5063
5063
  let t2 = pi.current;
5064
5064
  if (t2 === null) return;
5065
- let n2 = q == null ? void 0 : q.current, r2 = e2.target !== t2 && e2.target !== n2, i2, a2, o2 = true;
5065
+ let n2 = J == null ? void 0 : J.current, r2 = e2.target !== t2 && e2.target !== n2, i2, a2, o2 = true;
5066
5066
  e2 instanceof MouseEvent ? (i2 = e2.clientX, a2 = e2.clientY, o2 = e2.button < 3) : (i2 = e2.changedTouches[0].clientX, a2 = e2.changedTouches[0].clientY);
5067
5067
  let s2 = Vi(t2, i2, a2, e2);
5068
5068
  Mi.current !== s2.isTouch && ji(s2.isTouch), !r2 && e2.cancelable && o2 && e2.preventDefault();
@@ -5075,22 +5075,22 @@ let __tla = (async () => {
5075
5075
  e3 !== void 0 && s2.button === 0 && e3.onClick(s2);
5076
5076
  }
5077
5077
  }, [
5078
- q,
5078
+ J,
5079
5079
  Vi,
5080
5080
  ya,
5081
5081
  y,
5082
5082
  x,
5083
5083
  va
5084
5084
  ]), hi, false), useEventListener("contextmenu", import_react.useCallback((e2) => {
5085
- let t2 = pi.current, n2 = q == null ? void 0 : q.current;
5085
+ let t2 = pi.current, n2 = J == null ? void 0 : J.current;
5086
5086
  t2 === null || e2.target !== t2 && e2.target !== n2 || j === void 0 || j(Vi(t2, e2.clientX, e2.clientY, e2), () => {
5087
5087
  e2.cancelable && e2.preventDefault();
5088
5088
  });
5089
5089
  }, [
5090
- q,
5090
+ J,
5091
5091
  Vi,
5092
5092
  j
5093
- ]), (q == null ? void 0 : q.current) ?? null, false);
5093
+ ]), (J == null ? void 0 : J.current) ?? null, false);
5094
5094
  let Ea = import_react.useCallback((e2) => {
5095
5095
  _i.current = new CellSet(e2.map((e3) => e3.item)), xi.current = e2, ea.current(), _i.current = void 0;
5096
5096
  }, []), Oa = import_react.useMemo(() => new AnimationManager(Ea), [
@@ -5114,12 +5114,12 @@ let __tla = (async () => {
5114
5114
  var _a2;
5115
5115
  let t2 = pi.current;
5116
5116
  if (t2 === null) return;
5117
- let n2 = q == null ? void 0 : q.current, r2 = e2.target !== t2 && e2.target !== n2, i2 = Vi(t2, e2.clientX, e2.clientY, e2);
5117
+ let n2 = J == null ? void 0 : J.current, r2 = e2.target !== t2 && e2.target !== n2, i2 = Vi(t2, e2.clientX, e2.clientY, e2);
5118
5118
  if (i2.kind !== "out-of-bounds" && r2 && !Sa.current && !i2.isTouch) return;
5119
5119
  let a2 = (e3, t3) => {
5120
5120
  wi((n3) => n3 === e3 || (n3 == null ? void 0 : n3[0][0]) === (e3 == null ? void 0 : e3[0][0]) && (n3 == null ? void 0 : n3[0][1]) === (e3 == null ? void 0 : e3[0][1]) && ((n3 == null ? void 0 : n3[1][0]) === (e3 == null ? void 0 : e3[1][0]) && (n3 == null ? void 0 : n3[1][1]) === (e3 == null ? void 0 : e3[1][1]) || !t3) ? n3 : e3);
5121
5121
  };
5122
- if (!mouseEventArgsAreEqual(i2, Aa.current)) ki(void 0), Pr == null ? void 0 : Pr(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
5122
+ if (!mouseEventArgsAreEqual(i2, Aa.current)) ki(void 0), V == null ? void 0 : V(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
5123
5123
  i2.location,
5124
5124
  [
5125
5125
  i2.localEventX,
@@ -5143,16 +5143,16 @@ let __tla = (async () => {
5143
5143
  i2.location
5144
5144
  ]));
5145
5145
  }
5146
- let o2 = i2.location[0] >= (H ? 0 : 1);
5147
- Ei(i2.kind === "header" && i2.isEdge && o2 && Vr === true), oa(i2.kind === "cell" && i2.isFillHandle), Nr == null ? void 0 : Nr(e2), B(i2);
5146
+ let o2 = i2.location[0] >= (U ? 0 : 1);
5147
+ Ei(i2.kind === "header" && i2.isEdge && o2 && Br === true), oa(i2.kind === "cell" && i2.isFillHandle), Nr == null ? void 0 : Nr(e2), B(i2);
5148
5148
  }, [
5149
- q,
5149
+ J,
5150
5150
  Vi,
5151
- H,
5152
- Vr,
5151
+ U,
5152
+ Br,
5153
5153
  Nr,
5154
5154
  B,
5155
- Pr,
5155
+ V,
5156
5156
  h,
5157
5157
  ci,
5158
5158
  na
@@ -5161,7 +5161,7 @@ let __tla = (async () => {
5161
5161
  let t2 = pi.current;
5162
5162
  if (t2 === null) return;
5163
5163
  let n2, r2;
5164
- k.current !== void 0 && (n2 = Bi(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Fr == null ? void 0 : Fr({
5164
+ k.current !== void 0 && (n2 = Bi(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Pr == null ? void 0 : Pr({
5165
5165
  bounds: n2,
5166
5166
  stopPropagation: () => e2.stopPropagation(),
5167
5167
  preventDefault: () => e2.preventDefault(),
@@ -5176,14 +5176,14 @@ let __tla = (async () => {
5176
5176
  location: r2
5177
5177
  });
5178
5178
  }, [
5179
- Fr,
5179
+ Pr,
5180
5180
  k,
5181
5181
  Bi
5182
5182
  ]), Ma = import_react.useCallback((e2) => {
5183
5183
  let t2 = pi.current;
5184
5184
  if (t2 === null) return;
5185
5185
  let n2, r2;
5186
- k.current !== void 0 && (n2 = Bi(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), U == null ? void 0 : U({
5186
+ k.current !== void 0 && (n2 = Bi(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), W == null ? void 0 : W({
5187
5187
  bounds: n2,
5188
5188
  stopPropagation: () => e2.stopPropagation(),
5189
5189
  preventDefault: () => e2.preventDefault(),
@@ -5198,28 +5198,28 @@ let __tla = (async () => {
5198
5198
  location: r2
5199
5199
  });
5200
5200
  }, [
5201
- U,
5201
+ W,
5202
5202
  k,
5203
5203
  Bi
5204
5204
  ]), Pa = import_react.useCallback((e2) => {
5205
- if (pi.current = e2, W !== void 0 && (W.current = e2), si == null ? void 0 : si.eventTarget) mi.current = si.eventTarget;
5205
+ if (pi.current = e2, G !== void 0 && (G.current = e2), si == null ? void 0 : si.eventTarget) mi.current = si.eventTarget;
5206
5206
  else if (e2 === null) mi.current = window;
5207
5207
  else {
5208
5208
  let t2 = e2.getRootNode();
5209
5209
  t2 === document && (mi.current = window), mi.current = t2;
5210
5210
  }
5211
5211
  }, [
5212
- W,
5212
+ G,
5213
5213
  si == null ? void 0 : si.eventTarget
5214
5214
  ]);
5215
5215
  useEventListener("dragstart", import_react.useCallback((e2) => {
5216
5216
  let t2 = pi.current;
5217
- if (t2 === null || Br === false || J) {
5217
+ if (t2 === null || zr === false || Y) {
5218
5218
  e2.preventDefault();
5219
5219
  return;
5220
5220
  }
5221
5221
  let n2, r2, i2 = Vi(t2, e2.clientX, e2.clientY);
5222
- if (Br !== true && i2.kind !== Br) {
5222
+ if (zr !== true && i2.kind !== zr) {
5223
5223
  e2.preventDefault();
5224
5224
  return;
5225
5225
  }
@@ -5228,7 +5228,7 @@ let __tla = (async () => {
5228
5228
  }, o2, s2, c2, l2 = (e3, t3, n3) => {
5229
5229
  o2 = e3, s2 = t3, c2 = n3;
5230
5230
  }, u2 = false;
5231
- if (G == null ? void 0 : G({
5231
+ if (K == null ? void 0 : K({
5232
5232
  ...i2,
5233
5233
  setData: a2,
5234
5234
  setDragImage: l2,
@@ -5243,22 +5243,22 @@ let __tla = (async () => {
5243
5243
  let o3 = Math.ceil(window.devicePixelRatio ?? 1);
5244
5244
  i3.width = a3.width * o3, i3.height = a3.height * o3;
5245
5245
  let s3 = i3.getContext("2d");
5246
- s3 !== null && (s3.scale(o3, o3), s3.textBaseline = "middle", r3 === -1 ? (s3.font = Y.headerFontFull, s3.fillStyle = Y.bgHeader, s3.fillRect(0, 0, i3.width, i3.height), drawHeader(s3, 0, 0, a3.width, a3.height, Ri[n3], false, Y, false, void 0, void 0, false, 0, Ni, Jr, false)) : (s3.font = Y.baseFontFull, s3.fillStyle = Y.bgCell, s3.fillRect(0, 0, i3.width, i3.height), drawCell(s3, h([
5246
+ s3 !== null && (s3.scale(o3, o3), s3.textBaseline = "middle", r3 === -1 ? (s3.font = Wr.headerFontFull, s3.fillStyle = Wr.bgHeader, s3.fillRect(0, 0, i3.width, i3.height), drawHeader(s3, 0, 0, a3.width, a3.height, Ri[n3], false, Wr, false, void 0, void 0, false, 0, Ni, Jr, false)) : (s3.font = Wr.baseFontFull, s3.fillStyle = Wr.bgCell, s3.fillRect(0, 0, i3.width, i3.height), drawCell(s3, h([
5247
5247
  n3,
5248
5248
  r3
5249
- ]), 0, r3, false, false, 0, 0, a3.width, a3.height, false, Y, Y.bgCell, gi, Ni, 1, void 0, false, 0, void 0, void 0, void 0, qi, ci, () => void 0))), i3.style.left = "-100%", i3.style.position = "absolute", i3.style.width = `${a3.width}px`, i3.style.height = `${a3.height}px`, document.body.append(i3), e2.dataTransfer.setDragImage(i3, a3.width / 2, a3.height / 2), window.setTimeout(() => {
5249
+ ]), 0, r3, false, false, 0, 0, a3.width, a3.height, false, Wr, Wr.bgCell, gi, Ni, 1, void 0, false, 0, void 0, void 0, void 0, qi, ci, () => void 0))), i3.style.left = "-100%", i3.style.position = "absolute", i3.style.width = `${a3.width}px`, i3.style.height = `${a3.height}px`, document.body.append(i3), e2.dataTransfer.setDragImage(i3, a3.width / 2, a3.height / 2), window.setTimeout(() => {
5250
5250
  i3.remove();
5251
5251
  }, 0);
5252
5252
  }
5253
5253
  }
5254
5254
  else e2.preventDefault();
5255
5255
  }, [
5256
- Br,
5257
- J,
5256
+ zr,
5257
+ Y,
5258
5258
  Vi,
5259
- G,
5259
+ K,
5260
5260
  Bi,
5261
- Y,
5261
+ Wr,
5262
5262
  Ri,
5263
5263
  Ni,
5264
5264
  Jr,
@@ -5266,12 +5266,12 @@ let __tla = (async () => {
5266
5266
  gi,
5267
5267
  qi,
5268
5268
  ci
5269
- ]), (q == null ? void 0 : q.current) ?? null, false, false);
5269
+ ]), (J == null ? void 0 : J.current) ?? null, false, false);
5270
5270
  let Fa = import_react.useRef();
5271
5271
  useEventListener("dragover", import_react.useCallback((e2) => {
5272
5272
  let t2 = pi.current;
5273
5273
  if (Zr !== void 0 && e2.preventDefault(), t2 === null || Xr === void 0) return;
5274
- let [n2, r2] = Vi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (H ? 0 : 1), [a2, o2] = Fa.current ?? [];
5274
+ let [n2, r2] = Vi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (U ? 0 : 1), [a2, o2] = Fa.current ?? [];
5275
5275
  (a2 !== i2 || o2 !== r2) && (Fa.current = [
5276
5276
  i2,
5277
5277
  r2
@@ -5280,71 +5280,71 @@ let __tla = (async () => {
5280
5280
  r2
5281
5281
  ], e2.dataTransfer));
5282
5282
  }, [
5283
- H,
5283
+ U,
5284
5284
  Vi,
5285
5285
  Xr,
5286
5286
  Zr
5287
- ]), (q == null ? void 0 : q.current) ?? null, false, false), useEventListener("dragend", import_react.useCallback(() => {
5288
- Fa.current = void 0, K == null ? void 0 : K();
5287
+ ]), (J == null ? void 0 : J.current) ?? null, false, false), useEventListener("dragend", import_react.useCallback(() => {
5288
+ Fa.current = void 0, q == null ? void 0 : q();
5289
5289
  }, [
5290
- K
5291
- ]), (q == null ? void 0 : q.current) ?? null, false, false), useEventListener("drop", import_react.useCallback((e2) => {
5290
+ q
5291
+ ]), (J == null ? void 0 : J.current) ?? null, false, false), useEventListener("drop", import_react.useCallback((e2) => {
5292
5292
  let t2 = pi.current;
5293
5293
  if (t2 === null || Zr === void 0) return;
5294
5294
  e2.preventDefault();
5295
5295
  let [n2, r2] = Vi(t2, e2.clientX, e2.clientY).location;
5296
5296
  Zr([
5297
- n2 - (H ? 0 : 1),
5297
+ n2 - (U ? 0 : 1),
5298
5298
  r2
5299
5299
  ], e2.dataTransfer);
5300
5300
  }, [
5301
- H,
5301
+ U,
5302
5302
  Vi,
5303
5303
  Zr
5304
- ]), (q == null ? void 0 : q.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
5304
+ ]), (J == null ? void 0 : J.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
5305
5305
  Qr == null ? void 0 : Qr();
5306
5306
  }, [
5307
5307
  Qr
5308
- ]), (q == null ? void 0 : q.current) ?? null, false, false);
5308
+ ]), (J == null ? void 0 : J.current) ?? null, false, false);
5309
5309
  let Ia = import_react.useRef(k);
5310
5310
  Ia.current = k;
5311
5311
  let Ra = import_react.useRef(null), Va = import_react.useCallback((e2) => {
5312
5312
  var _a2;
5313
- pi.current === null || !pi.current.contains(document.activeElement) || (e2 === null && Ia.current.current !== void 0 ? (_a2 = W == null ? void 0 : W.current) == null ? void 0 : _a2.focus({
5313
+ pi.current === null || !pi.current.contains(document.activeElement) || (e2 === null && Ia.current.current !== void 0 ? (_a2 = G == null ? void 0 : G.current) == null ? void 0 : _a2.focus({
5314
5314
  preventScroll: true
5315
5315
  }) : e2 !== null && e2.focus({
5316
5316
  preventScroll: true
5317
5317
  }), Ra.current = e2);
5318
5318
  }, [
5319
- W
5319
+ G
5320
5320
  ]);
5321
5321
  import_react.useImperativeHandle(t, () => ({
5322
5322
  focus: () => {
5323
5323
  var _a2;
5324
5324
  let e2 = Ra.current;
5325
- e2 === null || !document.contains(e2) ? (_a2 = W == null ? void 0 : W.current) == null ? void 0 : _a2.focus({
5325
+ e2 === null || !document.contains(e2) ? (_a2 = G == null ? void 0 : G.current) == null ? void 0 : _a2.focus({
5326
5326
  preventScroll: true
5327
5327
  }) : e2.focus({
5328
5328
  preventScroll: true
5329
5329
  });
5330
5330
  },
5331
5331
  getBounds: (e2, t2) => {
5332
- if (!(W === void 0 || W.current === null)) return Bi(W.current, e2 ?? 0, t2 ?? -1);
5332
+ if (!(G === void 0 || G.current === null)) return Bi(G.current, e2 ?? 0, t2 ?? -1);
5333
5333
  },
5334
5334
  damage: ia,
5335
5335
  getMouseArgsForPosition: (e2, t2, n2) => {
5336
- if (!(W === void 0 || W.current === null)) return Vi(W.current, e2, t2, n2);
5336
+ if (!(G === void 0 || G.current === null)) return Vi(G.current, e2, t2, n2);
5337
5337
  }
5338
5338
  }), [
5339
- W,
5339
+ G,
5340
5340
  ia,
5341
5341
  Bi
5342
5342
  ]);
5343
5343
  let Ha = import_react.useRef(), Ua = useDebouncedMemo(() => {
5344
5344
  var _a2, _b, _c;
5345
5345
  if (n < 50 || (si == null ? void 0 : si.disableAccessibilityTree) === true) return null;
5346
- let e2 = getEffectiveColumns(Ri, fi, n, V, ui), t2 = H ? 0 : -1;
5347
- !H && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
5346
+ let e2 = getEffectiveColumns(Ri, fi, n, H, ui), t2 = U ? 0 : -1;
5347
+ !U && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
5348
5348
  let [r2, a2] = ((_b = k.current) == null ? void 0 : _b.cell) ?? [], o2 = (_c = k.current) == null ? void 0 : _c.range, c2 = e2.map((e3) => e3.sourceIndex), l2 = (0, import_range$1.default)(s, Math.min(m, s + i));
5349
5349
  return r2 !== void 0 && a2 !== void 0 && !(c2.includes(r2) && l2.includes(a2)) && Va(null), import_react.createElement("table", {
5350
5350
  key: "access-tree",
@@ -5390,8 +5390,8 @@ let __tla = (async () => {
5390
5390
  id: u2,
5391
5391
  "data-testid": u2,
5392
5392
  onClick: () => {
5393
- let e4 = W == null ? void 0 : W.current;
5394
- if (e4 != null) return Fr == null ? void 0 : Fr({
5393
+ let e4 = G == null ? void 0 : G.current;
5394
+ if (e4 != null) return Pr == null ? void 0 : Pr({
5395
5395
  bounds: Bi(e4, i2, n2),
5396
5396
  cancel: () => void 0,
5397
5397
  preventDefault: () => void 0,
@@ -5418,7 +5418,7 @@ let __tla = (async () => {
5418
5418
  n,
5419
5419
  Ri,
5420
5420
  fi,
5421
- V,
5421
+ H,
5422
5422
  ui,
5423
5423
  m,
5424
5424
  s,
@@ -5426,8 +5426,8 @@ let __tla = (async () => {
5426
5426
  k,
5427
5427
  Va,
5428
5428
  h,
5429
- W,
5430
- Fr,
5429
+ G,
5430
+ Pr,
5431
5431
  Bi,
5432
5432
  Yr
5433
5433
  ], 200), Wa = A === 0 || !N ? 0 : fi > A ? 1 : (0, import_clamp$2.default)(-ui / 100, 0, 1), Ga = -s * 32 + di, Ka = P ? (0, import_clamp$2.default)(-Ga / 100, 0, 1) : 0, qa = import_react.useMemo(() => {
@@ -5492,112 +5492,112 @@ let __tla = (async () => {
5492
5492
  return (0, import_clamp$1.default)(Math.round(t - (e.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
5493
5493
  }
5494
5494
  var data_grid_dnd_default = (e) => {
5495
- let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: Nr, lockColumns: B, onColumnProposeMove: Pr, onMouseDown: V, onMouseUp: H, onItemHovered: Fr, onDragStart: U, canvasRef: Ir } = e, W = (M ?? P ?? N) !== void 0, { columns: G, selection: Lr } = e, K = Lr.columns, q = import_react.useCallback((e2) => {
5495
+ let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: Nr, lockColumns: B, onColumnProposeMove: V, onMouseDown: H, onMouseUp: U, onItemHovered: Pr, onDragStart: W, canvasRef: Fr } = e, G = (M ?? P ?? N) !== void 0, { columns: K, selection: Ir } = e, q = Ir.columns, J = import_react.useCallback((e2) => {
5496
5496
  let [t2, n2] = e2.location;
5497
- a !== void 0 && s !== t2 && t2 >= B ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Fr == null ? void 0 : Fr(e2));
5497
+ a !== void 0 && s !== t2 && t2 >= B ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Pr == null ? void 0 : Pr(e2));
5498
5498
  }, [
5499
5499
  a,
5500
5500
  h,
5501
5501
  s,
5502
- Fr,
5502
+ Pr,
5503
5503
  B,
5504
5504
  r,
5505
5505
  l,
5506
5506
  S
5507
- ]), J = j !== void 0, Rr = import_react.useCallback((e2) => {
5507
+ ]), Y = j !== void 0, Lr = import_react.useCallback((e2) => {
5508
5508
  var _a;
5509
5509
  if (e2.button === 0) {
5510
5510
  let [t2, r2] = e2.location;
5511
- if (e2.kind === "out-of-bounds" && e2.isEdge && W) {
5512
- let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(G.length - 1, -1);
5513
- e3 !== void 0 && (n(e3.x), i(G.length - 1));
5511
+ if (e2.kind === "out-of-bounds" && e2.isEdge && G) {
5512
+ let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(K.length - 1, -1);
5513
+ e3 !== void 0 && (n(e3.x), i(K.length - 1));
5514
5514
  } else if (e2.kind === "header" && t2 >= B) {
5515
- let r3 = Ir == null ? void 0 : Ir.current;
5516
- if (e2.isEdge && W && r3) {
5515
+ let r3 = Fr == null ? void 0 : Fr.current;
5516
+ if (e2.isEdge && G && r3) {
5517
5517
  n(e2.bounds.x), i(t2);
5518
5518
  let a2 = r3.getBoundingClientRect().width / r3.offsetWidth, o2 = e2.bounds.width / a2;
5519
- N == null ? void 0 : N(G[t2], o2, t2, o2 + (G[t2].growOffset ?? 0));
5520
- } else e2.kind === "header" && J && (m(e2.bounds.x), o(t2));
5519
+ N == null ? void 0 : N(K[t2], o2, t2, o2 + (K[t2].growOffset ?? 0));
5520
+ } else e2.kind === "header" && Y && (m(e2.bounds.x), o(t2));
5521
5521
  } else e2.kind === "cell" && B > 0 && t2 === 0 && r2 !== void 0 && Nr !== void 0 && (D(e2.bounds.y), g(r2));
5522
5522
  }
5523
- V == null ? void 0 : V(e2);
5523
+ H == null ? void 0 : H(e2);
5524
5524
  }, [
5525
- V,
5526
- W,
5525
+ H,
5526
+ G,
5527
5527
  B,
5528
5528
  Nr,
5529
5529
  F,
5530
- G,
5531
- J,
5530
+ K,
5531
+ Y,
5532
5532
  N,
5533
- Ir
5534
- ]), zr = import_react.useCallback((e2, t2) => {
5533
+ Fr
5534
+ ]), Rr = import_react.useCallback((e2, t2) => {
5535
5535
  l || S || (O == null ? void 0 : O(e2, t2));
5536
5536
  }, [
5537
5537
  l,
5538
5538
  S,
5539
5539
  O
5540
- ]), Br = import_react.useCallback((e2, t2) => {
5540
+ ]), zr = import_react.useCallback((e2, t2) => {
5541
5541
  l || S || (k == null ? void 0 : k(e2, t2));
5542
5542
  }, [
5543
5543
  l,
5544
5544
  S,
5545
5545
  k
5546
- ]), Vr = import_react.useRef(-1), Hr = import_react.useCallback(() => {
5547
- Vr.current = -1, g(void 0), x(void 0), D(void 0), C(false), o(void 0), c(void 0), m(void 0), u(false), i(void 0), n(void 0);
5548
- }, []), Ur = import_react.useCallback((e2, t2) => {
5546
+ ]), Br = import_react.useRef(-1), Vr = import_react.useCallback(() => {
5547
+ Br.current = -1, g(void 0), x(void 0), D(void 0), C(false), o(void 0), c(void 0), m(void 0), u(false), i(void 0), n(void 0);
5548
+ }, []), Hr = import_react.useCallback((e2, t2) => {
5549
5549
  if (e2.button === 0) {
5550
5550
  if (r !== void 0) {
5551
- if ((K == null ? void 0 : K.hasIndex(r)) === true) for (let e4 of K) {
5551
+ if ((q == null ? void 0 : q.hasIndex(r)) === true) for (let e4 of q) {
5552
5552
  if (e4 === r) continue;
5553
- let t3 = G[e4], n2 = offsetColumnSize(t3, Vr.current, L, I);
5553
+ let t3 = K[e4], n2 = offsetColumnSize(t3, Br.current, L, I);
5554
5554
  M == null ? void 0 : M(t3, n2, e4, n2 + (t3.growOffset ?? 0));
5555
5555
  }
5556
- let e3 = offsetColumnSize(G[r], Vr.current, L, I);
5557
- if (P == null ? void 0 : P(G[r], e3, r, e3 + (G[r].growOffset ?? 0)), K.hasIndex(r)) for (let e4 of K) {
5556
+ let e3 = offsetColumnSize(K[r], Br.current, L, I);
5557
+ if (P == null ? void 0 : P(K[r], e3, r, e3 + (K[r].growOffset ?? 0)), q.hasIndex(r)) for (let e4 of q) {
5558
5558
  if (e4 === r) continue;
5559
- let t3 = G[e4], n2 = offsetColumnSize(t3, Vr.current, L, I);
5559
+ let t3 = K[e4], n2 = offsetColumnSize(t3, Br.current, L, I);
5560
5560
  P == null ? void 0 : P(t3, n2, e4, n2 + (t3.growOffset ?? 0));
5561
5561
  }
5562
5562
  }
5563
- Hr(), a !== void 0 && s !== void 0 && (Pr == null ? void 0 : Pr(a, s)) !== false && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (Nr == null ? void 0 : Nr(h, y));
5563
+ Vr(), a !== void 0 && s !== void 0 && (V == null ? void 0 : V(a, s)) !== false && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (Nr == null ? void 0 : Nr(h, y));
5564
5564
  }
5565
- H == null ? void 0 : H(e2, t2);
5565
+ U == null ? void 0 : U(e2, t2);
5566
5566
  }, [
5567
- H,
5567
+ U,
5568
5568
  r,
5569
5569
  a,
5570
5570
  s,
5571
5571
  h,
5572
5572
  y,
5573
- K,
5573
+ q,
5574
5574
  P,
5575
- G,
5575
+ K,
5576
5576
  L,
5577
5577
  I,
5578
5578
  M,
5579
5579
  j,
5580
5580
  Nr,
5581
- Hr,
5582
- Pr
5583
- ]), Wr = import_react.useMemo(() => {
5584
- if (!(a === void 0 || s === void 0) && a !== s && (Pr == null ? void 0 : Pr(a, s)) !== false) return {
5581
+ Vr,
5582
+ V
5583
+ ]), Ur = import_react.useMemo(() => {
5584
+ if (!(a === void 0 || s === void 0) && a !== s && (V == null ? void 0 : V(a, s)) !== false) return {
5585
5585
  src: a,
5586
5586
  dest: s
5587
5587
  };
5588
5588
  }, [
5589
5589
  a,
5590
5590
  s,
5591
- Pr
5592
- ]), Y = import_react.useCallback((e2) => {
5593
- let n2 = Ir == null ? void 0 : Ir.current;
5591
+ V
5592
+ ]), Wr = import_react.useCallback((e2) => {
5593
+ let n2 = Fr == null ? void 0 : Fr.current;
5594
5594
  if (a !== void 0 && f !== void 0) Math.abs(e2.clientX - f) > 20 && u(true);
5595
5595
  else if (h !== void 0 && E !== void 0) Math.abs(e2.clientY - E) > 20 && C(true);
5596
5596
  else if (r !== void 0 && t !== void 0 && n2) {
5597
- let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 = G[r], s2 = offsetColumnSize(o2, a2, L, I);
5598
- if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)), Vr.current = a2, (K == null ? void 0 : K.first()) === r) for (let e3 of K) {
5597
+ let i2 = n2.getBoundingClientRect().width / n2.offsetWidth, a2 = (e2.clientX - t) / i2, o2 = K[r], s2 = offsetColumnSize(o2, a2, L, I);
5598
+ if (M == null ? void 0 : M(o2, s2, r, s2 + (o2.growOffset ?? 0)), Br.current = a2, (q == null ? void 0 : q.first()) === r) for (let e3 of q) {
5599
5599
  if (e3 === r) continue;
5600
- let t2 = G[e3], n3 = offsetColumnSize(t2, Vr.current, L, I);
5600
+ let t2 = K[e3], n3 = offsetColumnSize(t2, Br.current, L, I);
5601
5601
  M == null ? void 0 : M(t2, n3, e3, n3 + (t2.growOffset ?? 0));
5602
5602
  }
5603
5603
  }
@@ -5608,12 +5608,12 @@ let __tla = (async () => {
5608
5608
  E,
5609
5609
  r,
5610
5610
  t,
5611
- G,
5611
+ K,
5612
5612
  L,
5613
5613
  I,
5614
5614
  M,
5615
- K,
5616
- Ir
5615
+ q,
5616
+ Fr
5617
5617
  ]), Gr = import_react.useCallback((e2, t2) => {
5618
5618
  if (h === void 0 || y === void 0) return A(e2, t2);
5619
5619
  let [n2, r2] = e2;
@@ -5626,10 +5626,10 @@ let __tla = (async () => {
5626
5626
  y,
5627
5627
  A
5628
5628
  ]), Kr = import_react.useCallback((e2) => {
5629
- U == null ? void 0 : U(e2), e2.defaultPrevented() || Hr();
5629
+ W == null ? void 0 : W(e2), e2.defaultPrevented() || Vr();
5630
5630
  }, [
5631
- Hr,
5632
- U
5631
+ Vr,
5632
+ W
5633
5633
  ]);
5634
5634
  return import_react.createElement(data_grid_default, {
5635
5635
  accessibilityHeight: e.accessibilityHeight,
@@ -5689,16 +5689,16 @@ let __tla = (async () => {
5689
5689
  width: e.width,
5690
5690
  getCellContent: Gr,
5691
5691
  isResizing: r !== void 0,
5692
- onHeaderMenuClick: zr,
5693
- onHeaderIndicatorClick: Br,
5692
+ onHeaderMenuClick: Rr,
5693
+ onHeaderIndicatorClick: zr,
5694
5694
  isDragging: l,
5695
- onItemHovered: q,
5695
+ onItemHovered: J,
5696
5696
  onDragStart: Kr,
5697
- onMouseDown: Rr,
5698
- allowResize: W,
5699
- onMouseUp: Ur,
5700
- dragAndDropState: Wr,
5701
- onMouseMoveRaw: Y,
5697
+ onMouseDown: Lr,
5698
+ allowResize: G,
5699
+ onMouseUp: Hr,
5700
+ dragAndDropState: Ur,
5701
+ onMouseMoveRaw: Wr,
5702
5702
  ref: F
5703
5703
  });
5704
5704
  };
@@ -5844,49 +5844,49 @@ let __tla = (async () => {
5844
5844
  use_kinetic_scroll_default(h && browserIsSafari.value, L, O);
5845
5845
  let Nr = import_react.useRef(L);
5846
5846
  Nr.current = L;
5847
- let B = import_react.useRef(), Pr = import_react.useRef(false);
5847
+ let B = import_react.useRef(), V = import_react.useRef(false);
5848
5848
  import_react.useLayoutEffect(() => {
5849
- Pr.current ? L() : Pr.current = true;
5849
+ V.current ? L() : V.current = true;
5850
5850
  }, [
5851
5851
  L,
5852
5852
  l,
5853
5853
  u
5854
5854
  ]);
5855
- let V = import_react.useCallback((e2) => {
5855
+ let H = import_react.useCallback((e2) => {
5856
5856
  O.current = e2, g !== void 0 && (g.current = e2);
5857
5857
  }, [
5858
5858
  g
5859
- ]), H = 0, Fr = 0, U = Math.min(r, BROWSER_MAX_DIV_HEIGHT);
5859
+ ]), U = 0, Pr = 0, W = Math.min(r, BROWSER_MAX_DIV_HEIGHT);
5860
5860
  for (x.push(import_react.createElement("div", {
5861
- key: H++,
5861
+ key: U++,
5862
5862
  style: {
5863
5863
  width: i,
5864
5864
  height: 0
5865
5865
  }
5866
- })); Fr < U; ) {
5867
- let e2 = Math.min(MAX_PADDER_SEGMENT_HEIGHT, U - Fr);
5866
+ })); Pr < W; ) {
5867
+ let e2 = Math.min(MAX_PADDER_SEGMENT_HEIGHT, W - Pr);
5868
5868
  x.push(import_react.createElement("div", {
5869
- key: H++,
5869
+ key: U++,
5870
5870
  style: {
5871
5871
  width: 0,
5872
5872
  height: e2
5873
5873
  }
5874
- })), Fr += e2;
5875
- }
5876
- let { ref: Ir, width: W, height: G } = useResizeDetector(y);
5877
- return typeof window < "u" && (((_a = B.current) == null ? void 0 : _a.height) !== G || ((_b = B.current) == null ? void 0 : _b.width) !== W) && (window.setTimeout(() => Nr.current(), 0), B.current = {
5878
- width: W,
5879
- height: G
5880
- }), (W ?? 0) === 0 || (G ?? 0) === 0 ? import_react.createElement("div", {
5881
- ref: Ir
5874
+ })), Pr += e2;
5875
+ }
5876
+ let { ref: Fr, width: G, height: K } = useResizeDetector(y);
5877
+ return typeof window < "u" && (((_a = B.current) == null ? void 0 : _a.height) !== K || ((_b = B.current) == null ? void 0 : _b.width) !== G) && (window.setTimeout(() => Nr.current(), 0), B.current = {
5878
+ width: G,
5879
+ height: K
5880
+ }), (G ?? 0) === 0 || (K ?? 0) === 0 ? import_react.createElement("div", {
5881
+ ref: Fr
5882
5882
  }) : import_react.createElement("div", {
5883
- ref: Ir
5883
+ ref: Fr
5884
5884
  }, import_react.createElement(ScrollRegionStyle, {
5885
5885
  isSafari: browserIsSafari.value
5886
5886
  }, import_react.createElement("div", {
5887
5887
  className: "dvn-underlay"
5888
5888
  }, t), import_react.createElement("div", {
5889
- ref: V,
5889
+ ref: H,
5890
5890
  style: B.current,
5891
5891
  draggable: o,
5892
5892
  onDragStart: (e2) => {
@@ -5903,7 +5903,7 @@ let __tla = (async () => {
5903
5903
  }), import_react.createElement("div", {
5904
5904
  ref: M,
5905
5905
  style: {
5906
- height: G,
5906
+ height: K,
5907
5907
  maxHeight: n - Math.ceil(k % 1),
5908
5908
  position: "sticky",
5909
5909
  top: 0,
@@ -5921,11 +5921,11 @@ let __tla = (async () => {
5921
5921
  if (typeof r == "number") B += n * r;
5922
5922
  else for (let e2 = 0; e2 < n; e2++) B += r(e2);
5923
5923
  C !== void 0 && (B += C);
5924
- let Pr = import_react.useRef(), V = import_react.useCallback(() => {
5924
+ let V = import_react.useRef(), H = import_react.useCallback(() => {
5925
5925
  var _a, _b;
5926
- if (Pr.current === void 0) return;
5926
+ if (V.current === void 0) return;
5927
5927
  let e2 = {
5928
- ...Pr.current
5928
+ ...V.current
5929
5929
  }, i2 = 0, a2 = e2.x < 0 ? -e2.x : 0, o2 = 0, c2 = 0;
5930
5930
  e2.x = e2.x < 0 ? 0 : e2.x;
5931
5931
  let l2 = 0;
@@ -5973,15 +5973,15 @@ let __tla = (async () => {
5973
5973
  s,
5974
5974
  D,
5975
5975
  O
5976
- ]), H = import_react.useCallback((e2) => {
5977
- Pr.current = e2, V();
5976
+ ]), U = import_react.useCallback((e2) => {
5977
+ V.current = e2, H();
5978
5978
  }, [
5979
- V
5979
+ H
5980
5980
  ]);
5981
5981
  return import_react.useEffect(() => {
5982
- V();
5982
+ H();
5983
5983
  }, [
5984
- V
5984
+ H
5985
5985
  ]), import_react.createElement(InfiniteScroller, {
5986
5986
  scrollRef: h,
5987
5987
  className: f,
@@ -5995,7 +5995,7 @@ let __tla = (async () => {
5995
5995
  paddingBottom: j,
5996
5996
  paddingRight: A,
5997
5997
  rightElementProps: x,
5998
- update: H,
5998
+ update: U,
5999
5999
  initialSize: E
6000
6000
  }, import_react.createElement(data_grid_dnd_default, {
6001
6001
  eventTargetRef: h,
@@ -6238,7 +6238,7 @@ let __tla = (async () => {
6238
6238
  u,
6239
6239
  M,
6240
6240
  C
6241
- ]), Pr = import_react.useCallback((e2) => {
6241
+ ]), V = import_react.useCallback((e2) => {
6242
6242
  (e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ? B() : Nr());
6243
6243
  }, [
6244
6244
  I,
@@ -6250,18 +6250,18 @@ let __tla = (async () => {
6250
6250
  }, [
6251
6251
  N
6252
6252
  ]);
6253
- let [V, H] = import_react.useState(false);
6253
+ let [H, U] = import_react.useState(false);
6254
6254
  import_react.useEffect(() => {
6255
- if (f) H(true);
6255
+ if (f) U(true);
6256
6256
  else {
6257
- let e2 = setTimeout(() => H(false), 150);
6257
+ let e2 = setTimeout(() => U(false), 150);
6258
6258
  return () => clearTimeout(e2);
6259
6259
  }
6260
6260
  }, [
6261
6261
  f
6262
6262
  ]);
6263
- let Fr = import_react.useMemo(() => {
6264
- if (!f && !V) return null;
6263
+ let Pr = import_react.useMemo(() => {
6264
+ if (!f && !H) return null;
6265
6265
  let e2;
6266
6266
  C !== void 0 && (e2 = C.results >= 1e3 ? "over 1000" : `${C.results} result${C.results === 1 ? "" : "s"}`, C.selectedIndex >= 0 && (e2 = `${C.selectedIndex + 1} of ${e2}`));
6267
6267
  let t2 = (e3) => {
@@ -6285,7 +6285,7 @@ let __tla = (async () => {
6285
6285
  onChange: L,
6286
6286
  value: x,
6287
6287
  tabIndex: f ? void 0 : -1,
6288
- onKeyDownCapture: Pr
6288
+ onKeyDownCapture: V
6289
6289
  }), import_react.createElement("button", {
6290
6290
  type: "button",
6291
6291
  "aria-label": "Previous Result",
@@ -6321,14 +6321,14 @@ let __tla = (async () => {
6321
6321
  })));
6322
6322
  }, [
6323
6323
  f,
6324
- V,
6324
+ H,
6325
6325
  C,
6326
6326
  r,
6327
6327
  h,
6328
6328
  a,
6329
6329
  L,
6330
6330
  x,
6331
- Pr,
6331
+ V,
6332
6332
  B,
6333
6333
  Nr,
6334
6334
  m,
@@ -6414,7 +6414,7 @@ let __tla = (async () => {
6414
6414
  smoothScrollX: e.smoothScrollX,
6415
6415
  smoothScrollY: e.smoothScrollY,
6416
6416
  resizeIndicator: e.resizeIndicator
6417
- }), Fr);
6417
+ }), Pr);
6418
6418
  }, _exp$2 = () => (e) => Math.max(16, e.targetHeight - 10), RenameInput = styled_default("input")({
6419
6419
  name: "RenameInput",
6420
6420
  class: "gdg-r17m35ur",
@@ -7421,7 +7421,7 @@ let __tla = (async () => {
7421
7421
  scrollRef: f
7422
7422
  };
7423
7423
  }
7424
- var import_clamp = __toESM(require_clamp(), 1), import_uniq = __toESM(require_uniq(), 1), import_flatten = __toESM(require_flatten(), 1), import_range = __toESM(require_range(), 1), import_debounce = __toESM(require_debounce(), 1), DataGridOverlayEditor = import_react.lazy(async () => await import("./data-grid-overlay-editor-B4_Caieu.js")), idCounter = 0;
7424
+ var import_clamp = __toESM(require_clamp(), 1), import_uniq = __toESM(require_uniq(), 1), import_flatten = __toESM(require_flatten(), 1), import_range = __toESM(require_range(), 1), import_debounce = __toESM(require_debounce(), 1), DataGridOverlayEditor = import_react.lazy(async () => await import("./data-grid-overlay-editor-BuhjNOgs.js")), idCounter = 0;
7425
7425
  function getSpanStops(e) {
7426
7426
  return (0, import_uniq.default)((0, import_flatten.default)((0, import_flatten.default)(e).filter((e2) => e2.span !== void 0).map((e2) => {
7427
7427
  var _a, _b;
@@ -7458,7 +7458,7 @@ let __tla = (async () => {
7458
7458
  };
7459
7459
  const DataEditor = import_react.forwardRef((e, t) => {
7460
7460
  var _a2, _b, _c2;
7461
- let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: Nr = "default", onGroupHeaderClicked: B, onCellContextMenu: Pr, className: V, onHeaderContextMenu: H, getCellsForSelection: Fr, onGroupHeaderContextMenu: U, onGroupHeaderRenamed: Ir, onCellEdited: W, onCellsEdited: G, onSearchResultsChanged: K, searchResults: J, onSearchValueChange: Rr, searchValue: zr, onKeyDown: Br, onKeyUp: Vr, keybindings: Hr, editOnType: Ur = true, onRowAppended: Wr, onColumnMoved: Y, validateCell: Gr, highlightRegions: Kr, rangeSelect: qr = "rect", columnSelect: X = "multi", rowSelect: Jr = "multi", rangeSelectionBlending: Yr = "exclusive", columnSelectionBlending: Xr = "exclusive", rowSelectionBlending: Zr = "exclusive", onDelete: ii, onDragStart: si, onMouseMove: ci, onPaste: li, copyHeaders: ui = false, freezeColumns: fi = 0, cellActivationBehavior: pi = "second-click", rowSelectionMode: mi = "auto", onHeaderMenuClick: gi, onHeaderIndicatorClick: _i, getGroupDetails: vi, rowGrouping: xi, onSearchClose: Ci, onItemHovered: wi, onSelectionCleared: Ti, showSearch: Ei, onVisibleRegionChanged: Di, gridSelection: Oi, onGridSelectionChange: ki, minColumnWidth: Ai = 50, maxColumnWidth: ji = 500, maxColumnAutoWidth: Mi, provideEditor: Ni, trailingRowOptions: Pi, freezeTrailingRows: Fi = 0, allowedFillDirections: Ii = "orthogonal", scrollOffsetX: Li, scrollOffsetY: Ri, verticalBorder: zi, onDragOverCell: Bi, onDrop: Vi, onColumnResize: Hi, onColumnResizeEnd: Ui, onColumnResizeStart: Wi, customRenderers: Gi, fillHandle: qi, experimental: Ji, fixedShadowX: Yi, fixedShadowY: Xi, headerIcons: Zi, imageWindowLoader: Qi, initialSize: $i, isDraggable: ea, onDragLeave: ta, onRowMoved: na, overscrollX: ra, overscrollY: ia, preventDiagonalScrolling: aa, rightElement: oa, rightElementProps: sa, trapFocus: ca = false, smoothScrollX: la, smoothScrollY: ua, scaleToRem: da = false, rowHeight: fa = 34, headerHeight: pa = 36, groupHeaderHeight: ma = pa, theme: ha, isOutsideClick: ga, renderers: _a, resizeIndicator: va, scrollToActiveCell: ya = true, drawFocusRing: ba = true } = e, xa = ba === "no-editor" ? i === void 0 : ba, Sa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, Ca = (Sa == null ? void 0 : Sa.kind) ?? e.rowMarkers ?? "none", wa = (Sa == null ? void 0 : Sa.width) ?? e.rowMarkerWidth, Ta = (Sa == null ? void 0 : Sa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ea = (Sa == null ? void 0 : Sa.theme) ?? e.rowMarkerTheme, Da = Sa == null ? void 0 : Sa.headerTheme, Aa = Sa == null ? void 0 : Sa.headerAlwaysVisible, Na = Jr !== "multi" || (Sa == null ? void 0 : Sa.headerDisabled) === true, Pa = (Sa == null ? void 0 : Sa.checkboxStyle) ?? "square", Fa = Math.max(Ai, 20), Ia = Math.max(ji, Fa), La = Math.max(Mi ?? Ia, Fa), za = import_react.useMemo(() => typeof window > "u" ? {
7461
+ let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: Nr = "default", onGroupHeaderClicked: B, onCellContextMenu: V, className: H, onHeaderContextMenu: U, getCellsForSelection: Pr, onGroupHeaderContextMenu: W, onGroupHeaderRenamed: Fr, onCellEdited: G, onCellsEdited: K, onSearchResultsChanged: q, searchResults: Y, onSearchValueChange: Lr, searchValue: Rr, onKeyDown: zr, onKeyUp: Br, keybindings: Vr, editOnType: Hr = true, onRowAppended: Ur, onColumnMoved: Wr, validateCell: Gr, highlightRegions: Kr, rangeSelect: qr = "rect", columnSelect: X = "multi", rowSelect: Jr = "multi", rangeSelectionBlending: Yr = "exclusive", columnSelectionBlending: Xr = "exclusive", rowSelectionBlending: Zr = "exclusive", onDelete: ii, onDragStart: si, onMouseMove: ci, onPaste: li, copyHeaders: ui = false, freezeColumns: fi = 0, cellActivationBehavior: pi = "second-click", rowSelectionMode: mi = "auto", onHeaderMenuClick: gi, onHeaderIndicatorClick: _i, getGroupDetails: vi, rowGrouping: xi, onSearchClose: Ci, onItemHovered: wi, onSelectionCleared: Ti, showSearch: Ei, onVisibleRegionChanged: Di, gridSelection: Oi, onGridSelectionChange: ki, minColumnWidth: Ai = 50, maxColumnWidth: ji = 500, maxColumnAutoWidth: Mi, provideEditor: Ni, trailingRowOptions: Pi, freezeTrailingRows: Fi = 0, allowedFillDirections: Ii = "orthogonal", scrollOffsetX: Li, scrollOffsetY: Ri, verticalBorder: zi, onDragOverCell: Bi, onDrop: Vi, onColumnResize: Hi, onColumnResizeEnd: Ui, onColumnResizeStart: Wi, customRenderers: Gi, fillHandle: qi, experimental: Ji, fixedShadowX: Yi, fixedShadowY: Xi, headerIcons: Zi, imageWindowLoader: Qi, initialSize: $i, isDraggable: ea, onDragLeave: ta, onRowMoved: na, overscrollX: ra, overscrollY: ia, preventDiagonalScrolling: aa, rightElement: oa, rightElementProps: sa, trapFocus: ca = false, smoothScrollX: la, smoothScrollY: ua, scaleToRem: da = false, rowHeight: fa = 34, headerHeight: pa = 36, groupHeaderHeight: ma = pa, theme: ha, isOutsideClick: ga, renderers: _a, resizeIndicator: va, scrollToActiveCell: ya = true, drawFocusRing: ba = true } = e, xa = ba === "no-editor" ? i === void 0 : ba, Sa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, Ca = (Sa == null ? void 0 : Sa.kind) ?? e.rowMarkers ?? "none", wa = (Sa == null ? void 0 : Sa.width) ?? e.rowMarkerWidth, Ta = (Sa == null ? void 0 : Sa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ea = (Sa == null ? void 0 : Sa.theme) ?? e.rowMarkerTheme, Da = Sa == null ? void 0 : Sa.headerTheme, Aa = Sa == null ? void 0 : Sa.headerAlwaysVisible, Na = Jr !== "multi" || (Sa == null ? void 0 : Sa.headerDisabled) === true, Pa = (Sa == null ? void 0 : Sa.checkboxStyle) ?? "square", Fa = Math.max(Ai, 20), Ia = Math.max(ji, Fa), La = Math.max(Mi ?? Ia, Fa), za = import_react.useMemo(() => typeof window > "u" ? {
7462
7462
  fontSize: "16px"
7463
7463
  } : window.getComputedStyle(document.documentElement), []), { rows: Z, rowNumberMapper: Ba, rowHeight: Va, getRowThemeOverride: Ha } = useRowGroupingInner(xi, C, fa, h), { rowHeight: Ua, headerHeight: Wa, groupHeaderHeight: Ga, theme: Ka, overscrollX: qa, overscrollY: Ja } = useRemAdjuster({
7464
7464
  groupHeaderHeight: ma,
@@ -7471,7 +7471,7 @@ let __tla = (async () => {
7471
7471
  rowHeight: Va,
7472
7472
  scaleToRem: da,
7473
7473
  theme: ha
7474
- }), Ya = useKeybindingsWithDefaults(Hr), Xa = wa ?? (C > 1e4 ? 48 : C > 1e3 ? 44 : C > 100 ? 36 : 32), Za = Ca !== "none", Q = Za ? 1 : 0, Qa = Wr !== void 0, $a = (Pi == null ? void 0 : Pi.sticky) === true, [eo, to] = import_react.useState(false), no = Ei ?? eo, ro = import_react.useCallback(() => {
7474
+ }), Ya = useKeybindingsWithDefaults(Vr), Xa = wa ?? (C > 1e4 ? 48 : C > 1e3 ? 44 : C > 100 ? 36 : 32), Za = Ca !== "none", Q = Za ? 1 : 0, Qa = Ur !== void 0, $a = (Pi == null ? void 0 : Pi.sticky) === true, [eo, to] = import_react.useState(false), no = Ei ?? eo, ro = import_react.useCallback(() => {
7475
7475
  Ci === void 0 ? to(false) : Ci();
7476
7476
  }, [
7477
7477
  Ci
@@ -7480,7 +7480,7 @@ let __tla = (async () => {
7480
7480
  Q
7481
7481
  ]) ?? n, io = import_react.useRef();
7482
7482
  io.current === void 0 && (io.current = new AbortController()), import_react.useEffect(() => () => io == null ? void 0 : io.current.abort(), []);
7483
- let [ao, oo] = useCellsForSelection(Fr, E, Q, io.current, Z), so = import_react.useCallback((e2, t2, n2) => {
7483
+ let [ao, oo] = useCellsForSelection(Pr, E, Q, io.current, Z), so = import_react.useCallback((e2, t2, n2) => {
7484
7484
  if (Gr === void 0) return true;
7485
7485
  let r2 = [
7486
7486
  e2[0] - Q,
@@ -7601,12 +7601,12 @@ let __tla = (async () => {
7601
7601
  e3.location[0] - Q,
7602
7602
  e3.location[1]
7603
7603
  ]
7604
- })), n2 = G == null ? void 0 : G(t2);
7605
- if (n2 !== true) for (let e3 of t2) W == null ? void 0 : W(e3.location, e3.value);
7604
+ })), n2 = K == null ? void 0 : K(t2);
7605
+ if (n2 !== true) for (let e3 of t2) G == null ? void 0 : G(e3.location, e3.value);
7606
7606
  return n2;
7607
7607
  }, [
7608
- W,
7609
7608
  G,
7609
+ K,
7610
7610
  Q
7611
7611
  ]), [Uo, Wo] = import_react.useState(), Go = $.current !== void 0 && $.current.range.width * $.current.range.height > 1 ? $.current.range : void 0, Ko = xa ? (_a2 = $.current) == null ? void 0 : _a2.cell : void 0, qo = Ko == null ? void 0 : Ko[0], Jo = Ko == null ? void 0 : Ko[1], Yo = import_react.useMemo(() => {
7612
7612
  if ((Kr === void 0 || Kr.length === 0) && (Go ?? qo ?? Jo ?? Uo) === void 0) return;
@@ -7723,7 +7723,7 @@ let __tla = (async () => {
7723
7723
  let t2 = (vi == null ? void 0 : vi(e2)) ?? {
7724
7724
  name: e2
7725
7725
  };
7726
- return Ir !== void 0 && e2 !== "" && (t2 = {
7726
+ return Fr !== void 0 && e2 !== "" && (t2 = {
7727
7727
  icon: t2.icon,
7728
7728
  name: t2.name,
7729
7729
  overrideTheme: t2.overrideTheme,
@@ -7741,7 +7741,7 @@ let __tla = (async () => {
7741
7741
  }), t2;
7742
7742
  }, [
7743
7743
  vi,
7744
- Ir
7744
+ Fr
7745
7745
  ]), $o = import_react.useCallback((e2) => {
7746
7746
  var _a3;
7747
7747
  let [t2, n2] = e2.cell, r2 = jo[t2], i2 = (r2 == null ? void 0 : r2.group) === void 0 ? void 0 : (_a3 = Qo(r2.group)) == null ? void 0 : _a3.overrideTheme, o2 = r2 == null ? void 0 : r2.themeOverride, s2 = Ha == null ? void 0 : Ha(n2);
@@ -7911,7 +7911,7 @@ let __tla = (async () => {
7911
7911
  let os = import_react.useCallback(async (e2, t2 = true, n2) => {
7912
7912
  var _a3, _b2;
7913
7913
  if (((_b2 = (_a3 = jo[e2]) == null ? void 0 : _a3.trailingRowOptions) == null ? void 0 : _b2.disabled) === true) return;
7914
- let r2 = Wr == null ? void 0 : Wr(), i2, a2 = true;
7914
+ let r2 = Ur == null ? void 0 : Ur(), i2, a2 = true;
7915
7915
  r2 !== void 0 && (i2 = await r2, i2 === "top" && (a2 = false), typeof i2 == "number" && (a2 = false));
7916
7916
  let o2 = 0, s2 = () => {
7917
7917
  if (as.current <= Z) {
@@ -7944,7 +7944,7 @@ let __tla = (async () => {
7944
7944
  s2();
7945
7945
  }, [
7946
7946
  jo,
7947
- Wr,
7947
+ Ur,
7948
7948
  Q,
7949
7949
  Z,
7950
7950
  _o
@@ -8317,7 +8317,7 @@ let __tla = (async () => {
8317
8317
  if (t3.x !== n3.x || t3.y !== n3.y) return;
8318
8318
  if (e2.isLongTouch === true) {
8319
8319
  if (e2.kind === "cell" && itemsAreEqual((_b2 = $.current) == null ? void 0 : _b2.cell, e2.location)) {
8320
- Pr == null ? void 0 : Pr([
8320
+ V == null ? void 0 : V([
8321
8321
  f2,
8322
8322
  e2.location[1]
8323
8323
  ], {
@@ -8326,14 +8326,14 @@ let __tla = (async () => {
8326
8326
  });
8327
8327
  return;
8328
8328
  } else if (e2.kind === "header" && $.columns.hasIndex(r2)) {
8329
- H == null ? void 0 : H(f2, {
8329
+ U == null ? void 0 : U(f2, {
8330
8330
  ...e2,
8331
8331
  preventDefault: s2
8332
8332
  });
8333
8333
  return;
8334
8334
  } else if (e2.kind === "group-header") {
8335
8335
  if (f2 < 0) return;
8336
- U == null ? void 0 : U(f2, {
8336
+ W == null ? void 0 : W(f2, {
8337
8337
  ...e2,
8338
8338
  preventDefault: s2
8339
8339
  });
@@ -8379,9 +8379,9 @@ let __tla = (async () => {
8379
8379
  Ho,
8380
8380
  O,
8381
8381
  es,
8382
- Pr,
8383
- H,
8382
+ V,
8384
8383
  U,
8384
+ W,
8385
8385
  ps,
8386
8386
  B,
8387
8387
  F,
@@ -8470,11 +8470,11 @@ let __tla = (async () => {
8470
8470
  ]), Fs = whenDefined(I, import_react.useCallback((e2, t2) => (I == null ? void 0 : I(e2 - Q, t2 - Q)) !== false, [
8471
8471
  I,
8472
8472
  Q
8473
- ])), Is = whenDefined(Y, import_react.useCallback((e2, t2) => {
8474
- Y == null ? void 0 : Y(e2 - Q, t2 - Q), X !== "none" && yo(CompactSelection.fromSingleSelection(t2), void 0, true);
8473
+ ])), Is = whenDefined(Wr, import_react.useCallback((e2, t2) => {
8474
+ Wr == null ? void 0 : Wr(e2 - Q, t2 - Q), X !== "none" && yo(CompactSelection.fromSingleSelection(t2), void 0, true);
8475
8475
  }, [
8476
8476
  X,
8477
- Y,
8477
+ Wr,
8478
8478
  Q,
8479
8479
  yo
8480
8480
  ])), Ls = import_react.useRef(false), Rs = import_react.useCallback((e2) => {
@@ -8903,7 +8903,7 @@ let __tla = (async () => {
8903
8903
  Ws
8904
8904
  ]), Qs = import_react.useCallback((e2) => {
8905
8905
  let t2 = false;
8906
- if (Br !== void 0 && Br({
8906
+ if (zr !== void 0 && zr({
8907
8907
  ...e2,
8908
8908
  ...e2.location && {
8909
8909
  location: [
@@ -8916,7 +8916,7 @@ let __tla = (async () => {
8916
8916
  }
8917
8917
  }), t2 || Zs(e2) || $.current === void 0) return;
8918
8918
  let [n2, r2] = $.current.cell, i2 = Mo.current;
8919
- if (Ur && !e2.metaKey && !e2.ctrlKey && $.current !== void 0 && e2.key.length === 1 && /[\p{L}\p{M}\p{N}\p{S}\p{P}]/u.test(e2.key) && e2.bounds !== void 0 && isReadWriteCell(E([
8919
+ if (Hr && !e2.metaKey && !e2.ctrlKey && $.current !== void 0 && e2.key.length === 1 && /[\p{L}\p{M}\p{N}\p{S}\p{P}]/u.test(e2.key) && e2.bounds !== void 0 && isReadWriteCell(E([
8920
8920
  n2 - Q,
8921
8921
  Math.max(0, Math.min(r2, Z - 1))
8922
8922
  ]))) {
@@ -8927,8 +8927,8 @@ let __tla = (async () => {
8927
8927
  ]), es(e2.bounds, true, e2.key), e2.stopPropagation(), e2.preventDefault();
8928
8928
  }
8929
8929
  }, [
8930
- Ur,
8931
- Br,
8930
+ Hr,
8931
+ zr,
8932
8932
  Zs,
8933
8933
  $,
8934
8934
  E,
@@ -8939,19 +8939,19 @@ let __tla = (async () => {
8939
8939
  es
8940
8940
  ]), $s = import_react.useCallback((e2, t2) => {
8941
8941
  let n2 = e2.location[0] - Q;
8942
- if (e2.kind === "header" && (H == null ? void 0 : H(n2, {
8942
+ if (e2.kind === "header" && (U == null ? void 0 : U(n2, {
8943
8943
  ...e2,
8944
8944
  preventDefault: t2
8945
8945
  })), e2.kind === "group-header") {
8946
8946
  if (n2 < 0) return;
8947
- U == null ? void 0 : U(n2, {
8947
+ W == null ? void 0 : W(n2, {
8948
8948
  ...e2,
8949
8949
  preventDefault: t2
8950
8950
  });
8951
8951
  }
8952
8952
  if (e2.kind === "cell") {
8953
8953
  let [r2, i2] = e2.location;
8954
- Pr == null ? void 0 : Pr([
8954
+ V == null ? void 0 : V([
8955
8955
  n2,
8956
8956
  i2
8957
8957
  ], {
@@ -8961,9 +8961,9 @@ let __tla = (async () => {
8961
8961
  }
8962
8962
  }, [
8963
8963
  $,
8964
- Pr,
8964
+ V,
8965
+ W,
8965
8966
  U,
8966
- H,
8967
8967
  Q,
8968
8968
  Ks
8969
8969
  ]), ec = import_react.useCallback(async (e2) => {
@@ -9162,11 +9162,11 @@ let __tla = (async () => {
9162
9162
  go
9163
9163
  ]), f, false, false);
9164
9164
  let nc = import_react.useCallback((e2, t2) => {
9165
- if (K !== void 0) {
9165
+ if (q !== void 0) {
9166
9166
  Q !== 0 && (e2 = e2.map((e3) => [
9167
9167
  e3[0] - Q,
9168
9168
  e3[1]
9169
- ])), K(e2, t2);
9169
+ ])), q(e2, t2);
9170
9170
  return;
9171
9171
  }
9172
9172
  if (e2.length === 0 || t2 === -1) return;
@@ -9176,7 +9176,7 @@ let __tla = (async () => {
9176
9176
  r2
9177
9177
  ], Ks(n2, r2, false, false));
9178
9178
  }, [
9179
- K,
9179
+ q,
9180
9180
  Q,
9181
9181
  Ks
9182
9182
  ]), [rc, ic] = ((_c2 = Oi == null ? void 0 : Oi.current) == null ? void 0 : _c2.cell) ?? [], ac = import_react.useRef(ns);
@@ -9210,11 +9210,11 @@ let __tla = (async () => {
9210
9210
  canvasBounds: n2,
9211
9211
  onClose: () => bs(void 0),
9212
9212
  onFinish: (e3) => {
9213
- bs(void 0), Ir == null ? void 0 : Ir(t2, e3);
9213
+ bs(void 0), Fr == null ? void 0 : Fr(t2, e3);
9214
9214
  }
9215
9215
  });
9216
9216
  }, [
9217
- Ir,
9217
+ Fr,
9218
9218
  ys
9219
9219
  ]), uc = Math.min(jo.length, fi + (Za ? 1 : 0));
9220
9220
  import_react.useImperativeHandle(t, () => ({
@@ -9404,7 +9404,7 @@ let __tla = (async () => {
9404
9404
  value: bo
9405
9405
  }, import_react.createElement(DataEditorContainer, {
9406
9406
  style: xc,
9407
- className: V,
9407
+ className: H,
9408
9408
  inWidth: y ?? yc,
9409
9409
  inHeight: x ?? bc
9410
9410
  }, import_react.createElement(data_grid_search_default, {
@@ -9427,7 +9427,7 @@ let __tla = (async () => {
9427
9427
  rightElementProps: sa,
9428
9428
  smoothScrollX: la,
9429
9429
  smoothScrollY: ua,
9430
- className: V,
9430
+ className: H,
9431
9431
  enableGroups: Do,
9432
9432
  onCanvasFocused: _c,
9433
9433
  onCanvasBlur: vc,
@@ -9473,7 +9473,7 @@ let __tla = (async () => {
9473
9473
  isFilling: (c == null ? void 0 : c.fillHandle) === true,
9474
9474
  onMouseMove: As,
9475
9475
  onKeyDown: Qs,
9476
- onKeyUp: Vr,
9476
+ onKeyUp: Br,
9477
9477
  onMouseDown: vs,
9478
9478
  onMouseUp: ks,
9479
9479
  onDragOverCell: Bi,
@@ -9482,9 +9482,9 @@ let __tla = (async () => {
9482
9482
  onVisibleRegionChanged: Ps,
9483
9483
  clientSize: xo,
9484
9484
  rowHeight: Ua,
9485
- searchResults: J,
9486
- searchValue: zr,
9487
- onSearchValueChange: Rr,
9485
+ searchResults: Y,
9486
+ searchValue: Rr,
9487
+ onSearchValueChange: Lr,
9488
9488
  rows: Vo,
9489
9489
  scrollRef: Io,
9490
9490
  selection: $,
@@ -9952,7 +9952,7 @@ let __tla = (async () => {
9952
9952
  height: l - 1
9953
9953
  };
9954
9954
  }
9955
- var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-D6r-48ka.js"));
9955
+ var NumberOverlayEditor = import_react.lazy(async () => await import("./number-overlay-editor-DYjnpjXo.js"));
9956
9956
  const numberCellRenderer = {
9957
9957
  getAccessibilityString: (e) => {
9958
9958
  var _a;
@@ -10485,8 +10485,8 @@ let __tla = (async () => {
10485
10485
  }), t[8] = m) : m = t[8];
10486
10486
  let h;
10487
10487
  t[9] === Symbol.for("react.memo_cache_sentinel") ? (h = (e2) => o(e2.target.value), t[9] = h) : h = t[9];
10488
- let y;
10489
- t[10] !== u || t[11] !== a ? (y = (0, import_jsx_runtime.jsxs)("div", {
10488
+ let x;
10489
+ t[10] !== u || t[11] !== a ? (x = (0, import_jsx_runtime.jsxs)("div", {
10490
10490
  children: [
10491
10491
  m,
10492
10492
  (0, import_jsx_runtime.jsx)(Input, {
@@ -10497,17 +10497,17 @@ let __tla = (async () => {
10497
10497
  onKeyDown: u
10498
10498
  })
10499
10499
  ]
10500
- }), t[10] = u, t[11] = a, t[12] = y) : y = t[12];
10501
- let x = !a.trim(), E;
10502
- t[13] !== c || t[14] !== x ? (E = (0, import_jsx_runtime.jsx)(Button, {
10500
+ }), t[10] = u, t[11] = a, t[12] = x) : x = t[12];
10501
+ let C = !a.trim(), E;
10502
+ t[13] !== c || t[14] !== C ? (E = (0, import_jsx_runtime.jsx)(Button, {
10503
10503
  onClick: c,
10504
- disabled: x,
10504
+ disabled: C,
10505
10505
  size: "sm",
10506
10506
  className: "w-full",
10507
10507
  children: "Rename"
10508
- }), t[13] = c, t[14] = x, t[15] = E) : E = t[15];
10509
- let D;
10510
- return t[16] !== y || t[17] !== E ? (D = (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
10508
+ }), t[13] = c, t[14] = C, t[15] = E) : E = t[15];
10509
+ let k;
10510
+ return t[16] !== x || t[17] !== E ? (k = (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
10511
10511
  children: [
10512
10512
  f,
10513
10513
  (0, import_jsx_runtime.jsx)(DropdownMenuPortal, {
@@ -10516,128 +10516,128 @@ let __tla = (async () => {
10516
10516
  children: (0, import_jsx_runtime.jsxs)("div", {
10517
10517
  className: "space-y-3",
10518
10518
  children: [
10519
- y,
10519
+ x,
10520
10520
  E
10521
10521
  ]
10522
10522
  })
10523
10523
  })
10524
10524
  })
10525
10525
  ]
10526
- }), t[16] = y, t[17] = E, t[18] = D) : D = t[18], D;
10526
+ }), t[16] = x, t[17] = E, t[18] = k) : k = t[18], k;
10527
10527
  }, AddColumnSub = (e) => {
10528
- let t = (0, import_compiler_runtime.c)(77), { direction: n, onAdd: r, onCancel: i } = e, [a, o] = (0, import_react.useState)(""), [s, l] = (0, import_react.useState)("string"), f, y, x, S, E, A, j, M, N, P, F, Nr, Pr, V, H;
10528
+ let t = (0, import_compiler_runtime.c)(77), { direction: n, onAdd: r, onCancel: i } = e, [a, o] = (0, import_react.useState)(""), [s, c] = (0, import_react.useState)("string"), u, x, S, C, k, A, j, M, N, P, L, B, V, H, U;
10529
10529
  if (t[0] !== a || t[1] !== s || t[2] !== n || t[3] !== r || t[4] !== i) {
10530
10530
  let e2 = [
10531
10531
  "string",
10532
10532
  "number",
10533
10533
  "boolean",
10534
10534
  "datetime"
10535
- ], B;
10536
- t[20] !== a || t[21] !== s || t[22] !== r ? (B = () => {
10537
- a.trim() && (r(a.trim(), s), o(""), l("string"));
10538
- }, t[20] = a, t[21] = s, t[22] = r, t[23] = B) : B = t[23], A = B;
10539
- let Fr2;
10540
- t[24] !== A || t[25] !== i ? (Fr2 = (e3) => {
10535
+ ], Nr;
10536
+ t[20] !== a || t[21] !== s || t[22] !== r ? (Nr = () => {
10537
+ a.trim() && (r(a.trim(), s), o(""), c("string"));
10538
+ }, t[20] = a, t[21] = s, t[22] = r, t[23] = Nr) : Nr = t[23], A = Nr;
10539
+ let Pr2;
10540
+ t[24] !== A || t[25] !== i ? (Pr2 = (e3) => {
10541
10541
  e3.key === "Enter" ? A() : e3.key === "Escape" && i();
10542
- }, t[24] = A, t[25] = i, t[26] = Fr2) : Fr2 = t[26];
10543
- let U2 = Fr2;
10544
- E = DropdownMenuSub;
10545
- let Ir2;
10546
- t[27] === Symbol.for("react.memo_cache_sentinel") ? (Ir2 = (0, import_jsx_runtime.jsx)(Plus, {
10542
+ }, t[24] = A, t[25] = i, t[26] = Pr2) : Pr2 = t[26];
10543
+ let W2 = Pr2;
10544
+ k = DropdownMenuSub;
10545
+ let Fr2;
10546
+ t[27] === Symbol.for("react.memo_cache_sentinel") ? (Fr2 = (0, import_jsx_runtime.jsx)(Plus, {
10547
10547
  className: "mr-2 h-3.5 w-3.5"
10548
- }), t[27] = Ir2) : Ir2 = t[27], t[28] === n ? H = t[29] : (H = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10548
+ }), t[27] = Fr2) : Fr2 = t[27], t[28] === n ? U = t[29] : (U = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10549
10549
  children: [
10550
- Ir2,
10550
+ Fr2,
10551
10551
  "Add column to the ",
10552
10552
  n
10553
10553
  ]
10554
- }), t[28] = n, t[29] = H), S = DropdownMenuPortal, x = DropdownMenuSubContent, V = "w-64 p-4", Nr = "space-y-3";
10555
- let W2 = `add-column-input-${n}`, G2;
10556
- t[30] === W2 ? G2 = t[31] : (G2 = (0, import_jsx_runtime.jsx)(Label, {
10557
- htmlFor: W2,
10554
+ }), t[28] = n, t[29] = U), C = DropdownMenuPortal, S = DropdownMenuSubContent, H = "w-64 p-4", B = "space-y-3";
10555
+ let G2 = `add-column-input-${n}`, K2;
10556
+ t[30] === G2 ? K2 = t[31] : (K2 = (0, import_jsx_runtime.jsx)(Label, {
10557
+ htmlFor: G2,
10558
10558
  children: "Column name"
10559
- }), t[30] = W2, t[31] = G2);
10560
- let Lr2 = `add-column-input-${n}`, K2;
10561
- t[32] === Symbol.for("react.memo_cache_sentinel") ? (K2 = (e3) => o(e3.target.value), t[32] = K2) : K2 = t[32];
10562
- let q2;
10563
- t[33] !== a || t[34] !== U2 || t[35] !== Lr2 ? (q2 = (0, import_jsx_runtime.jsx)(Input, {
10564
- id: Lr2,
10559
+ }), t[30] = G2, t[31] = K2);
10560
+ let Ir2 = `add-column-input-${n}`, q2;
10561
+ t[32] === Symbol.for("react.memo_cache_sentinel") ? (q2 = (e3) => o(e3.target.value), t[32] = q2) : q2 = t[32];
10562
+ let J2;
10563
+ t[33] !== a || t[34] !== W2 || t[35] !== Ir2 ? (J2 = (0, import_jsx_runtime.jsx)(Input, {
10564
+ id: Ir2,
10565
10565
  value: a,
10566
- onChange: K2,
10566
+ onChange: q2,
10567
10567
  placeholder: "Enter column name",
10568
10568
  className: "mt-1",
10569
- onKeyDown: U2
10570
- }), t[33] = a, t[34] = U2, t[35] = Lr2, t[36] = q2) : q2 = t[36], t[37] !== G2 || t[38] !== q2 ? (Pr = (0, import_jsx_runtime.jsxs)("div", {
10569
+ onKeyDown: W2
10570
+ }), t[33] = a, t[34] = W2, t[35] = Ir2, t[36] = J2) : J2 = t[36], t[37] !== K2 || t[38] !== J2 ? (V = (0, import_jsx_runtime.jsxs)("div", {
10571
10571
  children: [
10572
- G2,
10573
- q2
10572
+ K2,
10573
+ J2
10574
10574
  ]
10575
- }), t[37] = G2, t[38] = q2, t[39] = Pr) : Pr = t[39];
10576
- let J2 = `add-column-type-${n}`;
10577
- t[40] === J2 ? F = t[41] : (F = (0, import_jsx_runtime.jsx)(Label, {
10578
- htmlFor: J2,
10575
+ }), t[37] = K2, t[38] = J2, t[39] = V) : V = t[39];
10576
+ let Y2 = `add-column-type-${n}`;
10577
+ t[40] === Y2 ? L = t[41] : (L = (0, import_jsx_runtime.jsx)(Label, {
10578
+ htmlFor: Y2,
10579
10579
  children: "Data type"
10580
- }), t[40] = J2, t[41] = F), y = Select, M = s, t[42] === Symbol.for("react.memo_cache_sentinel") ? (N = (e3) => l(e3), t[42] = N) : N = t[42];
10581
- let Rr = `add-column-type-${n}`, zr;
10582
- t[43] === Symbol.for("react.memo_cache_sentinel") ? (zr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = zr) : zr = t[43], t[44] === Rr ? P = t[45] : (P = (0, import_jsx_runtime.jsx)(SelectTrigger, {
10583
- id: Rr,
10580
+ }), t[40] = Y2, t[41] = L), x = Select, M = s, t[42] === Symbol.for("react.memo_cache_sentinel") ? (N = (e3) => c(e3), t[42] = N) : N = t[42];
10581
+ let Lr = `add-column-type-${n}`, Rr;
10582
+ t[43] === Symbol.for("react.memo_cache_sentinel") ? (Rr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = Rr) : Rr = t[43], t[44] === Lr ? P = t[45] : (P = (0, import_jsx_runtime.jsx)(SelectTrigger, {
10583
+ id: Lr,
10584
10584
  className: "mt-1",
10585
- children: zr
10586
- }), t[44] = Rr, t[45] = P), f = SelectContent, j = e2.map(_temp), t[0] = a, t[1] = s, t[2] = n, t[3] = r, t[4] = i, t[5] = f, t[6] = y, t[7] = x, t[8] = S, t[9] = E, t[10] = A, t[11] = j, t[12] = M, t[13] = N, t[14] = P, t[15] = F, t[16] = Nr, t[17] = Pr, t[18] = V, t[19] = H;
10587
- } else f = t[5], y = t[6], x = t[7], S = t[8], E = t[9], A = t[10], j = t[11], M = t[12], N = t[13], P = t[14], F = t[15], Nr = t[16], Pr = t[17], V = t[18], H = t[19];
10588
- let Fr;
10589
- t[46] !== f || t[47] !== j ? (Fr = (0, import_jsx_runtime.jsx)(f, {
10585
+ children: Rr
10586
+ }), t[44] = Lr, t[45] = P), u = SelectContent, j = e2.map(_temp), t[0] = a, t[1] = s, t[2] = n, t[3] = r, t[4] = i, t[5] = u, t[6] = x, t[7] = S, t[8] = C, t[9] = k, t[10] = A, t[11] = j, t[12] = M, t[13] = N, t[14] = P, t[15] = L, t[16] = B, t[17] = V, t[18] = H, t[19] = U;
10587
+ } else u = t[5], x = t[6], S = t[7], C = t[8], k = t[9], A = t[10], j = t[11], M = t[12], N = t[13], P = t[14], L = t[15], B = t[16], V = t[17], H = t[18], U = t[19];
10588
+ let Pr;
10589
+ t[46] !== u || t[47] !== j ? (Pr = (0, import_jsx_runtime.jsx)(u, {
10590
10590
  children: j
10591
- }), t[46] = f, t[47] = j, t[48] = Fr) : Fr = t[48];
10592
- let U;
10593
- t[49] !== y || t[50] !== Fr || t[51] !== M || t[52] !== N || t[53] !== P ? (U = (0, import_jsx_runtime.jsxs)(y, {
10591
+ }), t[46] = u, t[47] = j, t[48] = Pr) : Pr = t[48];
10592
+ let W;
10593
+ t[49] !== x || t[50] !== Pr || t[51] !== M || t[52] !== N || t[53] !== P ? (W = (0, import_jsx_runtime.jsxs)(x, {
10594
10594
  value: M,
10595
10595
  onValueChange: N,
10596
10596
  children: [
10597
10597
  P,
10598
- Fr
10598
+ Pr
10599
10599
  ]
10600
- }), t[49] = y, t[50] = Fr, t[51] = M, t[52] = N, t[53] = P, t[54] = U) : U = t[54];
10601
- let Ir;
10602
- t[55] !== U || t[56] !== F ? (Ir = (0, import_jsx_runtime.jsxs)("div", {
10600
+ }), t[49] = x, t[50] = Pr, t[51] = M, t[52] = N, t[53] = P, t[54] = W) : W = t[54];
10601
+ let Fr;
10602
+ t[55] !== W || t[56] !== L ? (Fr = (0, import_jsx_runtime.jsxs)("div", {
10603
10603
  children: [
10604
- F,
10605
- U
10604
+ L,
10605
+ W
10606
10606
  ]
10607
- }), t[55] = U, t[56] = F, t[57] = Ir) : Ir = t[57];
10608
- let W = !a.trim(), G;
10609
- t[58] !== A || t[59] !== W ? (G = (0, import_jsx_runtime.jsx)(Button, {
10607
+ }), t[55] = W, t[56] = L, t[57] = Fr) : Fr = t[57];
10608
+ let G = !a.trim(), K;
10609
+ t[58] !== A || t[59] !== G ? (K = (0, import_jsx_runtime.jsx)(Button, {
10610
10610
  onClick: A,
10611
- disabled: W,
10611
+ disabled: G,
10612
10612
  size: "sm",
10613
10613
  className: "w-full",
10614
10614
  children: "Add"
10615
- }), t[58] = A, t[59] = W, t[60] = G) : G = t[60];
10616
- let Lr;
10617
- t[61] !== Ir || t[62] !== G || t[63] !== Nr || t[64] !== Pr ? (Lr = (0, import_jsx_runtime.jsxs)("div", {
10618
- className: Nr,
10615
+ }), t[58] = A, t[59] = G, t[60] = K) : K = t[60];
10616
+ let Ir;
10617
+ t[61] !== Fr || t[62] !== K || t[63] !== B || t[64] !== V ? (Ir = (0, import_jsx_runtime.jsxs)("div", {
10618
+ className: B,
10619
10619
  children: [
10620
- Pr,
10621
- Ir,
10622
- G
10620
+ V,
10621
+ Fr,
10622
+ K
10623
10623
  ]
10624
- }), t[61] = Ir, t[62] = G, t[63] = Nr, t[64] = Pr, t[65] = Lr) : Lr = t[65];
10625
- let K;
10626
- t[66] !== x || t[67] !== Lr || t[68] !== V ? (K = (0, import_jsx_runtime.jsx)(x, {
10627
- className: V,
10628
- children: Lr
10629
- }), t[66] = x, t[67] = Lr, t[68] = V, t[69] = K) : K = t[69];
10624
+ }), t[61] = Fr, t[62] = K, t[63] = B, t[64] = V, t[65] = Ir) : Ir = t[65];
10630
10625
  let q;
10631
- t[70] !== S || t[71] !== K ? (q = (0, import_jsx_runtime.jsx)(S, {
10632
- children: K
10633
- }), t[70] = S, t[71] = K, t[72] = q) : q = t[72];
10626
+ t[66] !== S || t[67] !== Ir || t[68] !== H ? (q = (0, import_jsx_runtime.jsx)(S, {
10627
+ className: H,
10628
+ children: Ir
10629
+ }), t[66] = S, t[67] = Ir, t[68] = H, t[69] = q) : q = t[69];
10634
10630
  let J;
10635
- return t[73] !== E || t[74] !== q || t[75] !== H ? (J = (0, import_jsx_runtime.jsxs)(E, {
10631
+ t[70] !== C || t[71] !== q ? (J = (0, import_jsx_runtime.jsx)(C, {
10632
+ children: q
10633
+ }), t[70] = C, t[71] = q, t[72] = J) : J = t[72];
10634
+ let Y;
10635
+ return t[73] !== k || t[74] !== J || t[75] !== U ? (Y = (0, import_jsx_runtime.jsxs)(k, {
10636
10636
  children: [
10637
- H,
10638
- q
10637
+ U,
10638
+ J
10639
10639
  ]
10640
- }), t[73] = E, t[74] = q, t[75] = H, t[76] = J) : J = t[76], J;
10640
+ }), t[73] = k, t[74] = J, t[75] = U, t[76] = Y) : Y = t[76], Y;
10641
10641
  };
10642
10642
  function _temp(e) {
10643
10643
  return (0, import_jsx_runtime.jsx)(SelectItem, {
@@ -10708,69 +10708,69 @@ let __tla = (async () => {
10708
10708
  }
10709
10709
  }
10710
10710
  }
10711
- GlideDataEditor = ({ data: e, setData: t, columnFields: n, setColumnFields: r, editableColumns: i, edits: c, onAddEdits: l, onAddRows: u, onDeleteRows: m, onRenameColumn: h, onDeleteColumn: g, onAddColumn: x }) => {
10712
- let { theme: S } = useTheme(), C = (0, import_react.useRef)(null), [D, O] = (0, import_react.useState)(), [k, I] = (0, import_react.useState)(false), [L, V] = import_react.useState({
10711
+ GlideDataEditor = ({ data: e, setData: t, columnFields: n, setColumnFields: r, editableColumns: c, edits: l, onAddEdits: f, onAddRows: m, onDeleteRows: h, onRenameColumn: g, onDeleteColumn: y, onAddColumn: x }) => {
10712
+ let { theme: S } = useTheme(), E = (0, import_react.useRef)(null), [D, O] = (0, import_react.useState)(), [F, I] = (0, import_react.useState)(false), [V, H] = import_react.useState({
10713
10713
  columns: CompactSelection.empty(),
10714
10714
  rows: CompactSelection.empty()
10715
- }), [U, Ir] = (0, import_react.useState)({}), W = useNonce();
10715
+ }), [W, Fr] = (0, import_react.useState)({}), G = useNonce();
10716
10716
  useOnMount(() => {
10717
- if (c.length === 0) return;
10717
+ if (l.length === 0) return;
10718
10718
  let n2 = /* @__PURE__ */ new Map();
10719
- for (let i3 of c) if (isPositionalEdit(i3)) if (i3.rowIdx >= e.length) {
10720
- n2.has(i3.rowIdx) || n2.set(i3.rowIdx, {});
10721
- let e2 = n2.get(i3.rowIdx);
10722
- e2 && (e2[i3.columnId] = i3.value);
10719
+ for (let i2 of l) if (isPositionalEdit(i2)) if (i2.rowIdx >= e.length) {
10720
+ n2.has(i2.rowIdx) || n2.set(i2.rowIdx, {});
10721
+ let e2 = n2.get(i2.rowIdx);
10722
+ e2 && (e2[i2.columnId] = i2.value);
10723
10723
  } else t((e2) => {
10724
10724
  let t2 = [
10725
10725
  ...e2
10726
10726
  ];
10727
- return t2[i3.rowIdx][i3.columnId] = i3.value, t2;
10727
+ return t2[i2.rowIdx][i2.columnId] = i2.value, t2;
10728
10728
  });
10729
- else if (isRowEdit(i3) && i3.type === BulkEdit.Remove) t((e2) => e2.filter((e3, t2) => t2 !== i3.rowIdx));
10730
- else if (isColumnEdit(i3)) switch (i3.type) {
10729
+ else if (isRowEdit(i2) && i2.type === BulkEdit.Remove) t((e2) => e2.filter((e3, t2) => t2 !== i2.rowIdx));
10730
+ else if (isColumnEdit(i2)) switch (i2.type) {
10731
10731
  case BulkEdit.Remove:
10732
- t((e2) => removeColumn(e2, i3.columnIdx)), r((e2) => modifyColumnFields({
10732
+ t((e2) => removeColumn(e2, i2.columnIdx)), r((e2) => modifyColumnFields({
10733
10733
  columnFields: e2,
10734
- columnIdx: i3.columnIdx,
10734
+ columnIdx: i2.columnIdx,
10735
10735
  type: "remove"
10736
10736
  }));
10737
10737
  break;
10738
10738
  case BulkEdit.Insert:
10739
10739
  r((e2) => modifyColumnFields({
10740
10740
  columnFields: e2,
10741
- columnIdx: i3.columnIdx,
10741
+ columnIdx: i2.columnIdx,
10742
10742
  type: "insert",
10743
- newColumnName: i3.newName
10744
- })), t((e2) => insertColumn(e2, i3.newName));
10743
+ newColumnName: i2.newName
10744
+ })), t((e2) => insertColumn(e2, i2.newName));
10745
10745
  break;
10746
10746
  case BulkEdit.Rename: {
10747
- let e2 = G[i3.columnIdx].title, n3 = i3.newName;
10747
+ let e2 = K[i2.columnIdx].title, n3 = i2.newName;
10748
10748
  if (!e2 || !n3) return;
10749
10749
  r((e3) => modifyColumnFields({
10750
10750
  columnFields: e3,
10751
- columnIdx: i3.columnIdx,
10751
+ columnIdx: i2.columnIdx,
10752
10752
  type: "rename",
10753
10753
  newColumnName: n3
10754
10754
  })), t((t2) => renameColumn(t2, e2, n3));
10755
10755
  break;
10756
10756
  }
10757
10757
  }
10758
- let i2 = [
10758
+ let i = [
10759
10759
  ...n2.entries()
10760
10760
  ].sort(([e2], [t2]) => e2 - t2).map(([, e2]) => e2);
10761
- i2.length > 0 && t((e2) => [
10761
+ i.length > 0 && t((e2) => [
10762
10762
  ...e2,
10763
- ...i2
10764
- ]), W();
10763
+ ...i
10764
+ ]), G();
10765
10765
  });
10766
- let G = (0, import_react.useMemo)(() => {
10766
+ let K = (0, import_react.useMemo)(() => {
10767
10767
  let e2 = [];
10768
10768
  for (let [t2, r2] of Object.entries(n)) {
10769
- let n2 = i === "all" || i.includes(t2);
10769
+ let n2 = c === "all" || c.includes(t2);
10770
10770
  e2.push({
10771
10771
  id: t2,
10772
10772
  title: t2,
10773
- width: U[t2],
10773
+ width: W[t2],
10774
10774
  icon: n2 ? getColumnHeaderIcon(r2) : GridColumnIcon.ProtectedColumnOverlay,
10775
10775
  style: "normal",
10776
10776
  kind: getColumnKind(r2),
@@ -10784,63 +10784,63 @@ let __tla = (async () => {
10784
10784
  return e2;
10785
10785
  }, [
10786
10786
  n,
10787
- U,
10788
- i,
10787
+ W,
10788
+ c,
10789
10789
  S
10790
- ]), Lr = (0, import_react.useCallback)((t2) => {
10791
- let [n2, r2] = t2, a = e[r2][G[n2].title], o = G[n2].kind, s = i === "all" || i.includes(G[n2].title);
10792
- if (o === GridCellKind.Boolean) {
10793
- let e2 = !!a;
10790
+ ]), Ir = (0, import_react.useCallback)((t2) => {
10791
+ let [n2, r2] = t2, i = e[r2][K[n2].title], a = K[n2].kind, o = c === "all" || c.includes(K[n2].title);
10792
+ if (a === GridCellKind.Boolean) {
10793
+ let e2 = !!i;
10794
10794
  return {
10795
10795
  kind: GridCellKind.Boolean,
10796
10796
  allowOverlay: false,
10797
- readonly: !s,
10797
+ readonly: !o,
10798
10798
  data: e2
10799
10799
  };
10800
10800
  }
10801
- return o === GridCellKind.Number && typeof a == "number" ? {
10801
+ return a === GridCellKind.Number && typeof i == "number" ? {
10802
10802
  kind: GridCellKind.Number,
10803
- allowOverlay: s,
10804
- readonly: !s,
10805
- displayData: String(a),
10806
- data: a
10803
+ allowOverlay: o,
10804
+ readonly: !o,
10805
+ displayData: String(i),
10806
+ data: i
10807
10807
  } : {
10808
10808
  kind: GridCellKind.Text,
10809
- allowOverlay: s,
10810
- readonly: !s,
10811
- displayData: String(a),
10812
- data: String(a)
10809
+ allowOverlay: o,
10810
+ readonly: !o,
10811
+ displayData: String(i),
10812
+ data: String(i)
10813
10813
  };
10814
10814
  }, [
10815
- G,
10815
+ K,
10816
10816
  e,
10817
- i
10818
- ]), K = (0, import_react.useCallback)((e2, n2) => {
10819
- let [r2, i2] = e2, a = G[r2], o = a.title, s = n2.data;
10817
+ c
10818
+ ]), q = (0, import_react.useCallback)((e2, n2) => {
10819
+ let [r2, i] = e2, a = K[r2], o = a.title, s = n2.data;
10820
10820
  (a.dataType === "number" || a.dataType === "integer") && (n2.data === void 0 || n2.data === "") && (s = null), t((e3) => {
10821
10821
  let t2 = [
10822
10822
  ...e3
10823
10823
  ];
10824
- return t2[i2][o] = s, t2;
10825
- }), l([
10824
+ return t2[i][o] = s, t2;
10825
+ }), f([
10826
10826
  {
10827
- rowIdx: i2,
10827
+ rowIdx: i,
10828
10828
  columnId: o,
10829
10829
  value: s
10830
10830
  }
10831
10831
  ]);
10832
10832
  }, [
10833
- G,
10834
- l,
10833
+ K,
10834
+ f,
10835
10835
  t
10836
- ]), q = (0, import_react.useCallback)((e2, t2) => {
10837
- Ir((n2) => ({
10836
+ ]), J = (0, import_react.useCallback)((e2, t2) => {
10837
+ Fr((n2) => ({
10838
10838
  ...n2,
10839
10839
  [e2.title]: t2
10840
10840
  }));
10841
- }, []), J = (0, import_react.useCallback)((e2, t2, r2) => {
10842
- let [i2, a] = e2;
10843
- switch (n[G[i2].title]) {
10841
+ }, []), Y = (0, import_react.useCallback)((e2, t2, r2) => {
10842
+ let [i, a] = e2;
10843
+ switch (n[K[i].title]) {
10844
10844
  case "number":
10845
10845
  case "integer":
10846
10846
  if (Number.isNaN(Number(t2.data))) return false;
@@ -10852,21 +10852,21 @@ let __tla = (async () => {
10852
10852
  return true;
10853
10853
  }, [
10854
10854
  n,
10855
- G
10856
- ]), Rr = (0, import_react.useCallback)((n2) => {
10857
- if (C.current) {
10855
+ K
10856
+ ]), Lr = (0, import_react.useCallback)((n2) => {
10857
+ if (E.current) {
10858
10858
  if (Events.isMetaOrCtrl(n2) && n2.key === "c") {
10859
- C.current.emit("copy");
10859
+ E.current.emit("copy");
10860
10860
  return;
10861
10861
  }
10862
10862
  if (Events.isMetaOrCtrl(n2) && n2.key === "v") {
10863
10863
  pasteCells({
10864
- selection: L,
10864
+ selection: V,
10865
10865
  data: e,
10866
10866
  setData: t,
10867
- columns: G,
10868
- editableColumns: i,
10869
- onAddEdits: l
10867
+ columns: K,
10868
+ editableColumns: c,
10869
+ onAddEdits: f
10870
10870
  });
10871
10871
  return;
10872
10872
  }
@@ -10880,14 +10880,14 @@ let __tla = (async () => {
10880
10880
  }
10881
10881
  }
10882
10882
  }, [
10883
- G,
10883
+ K,
10884
10884
  e,
10885
- i,
10886
- l,
10887
- L,
10885
+ c,
10886
+ f,
10887
+ V,
10888
10888
  t
10889
- ]), zr = (0, import_react.useCallback)(() => {
10890
- let e2 = Object.fromEntries(G.map((e3) => {
10889
+ ]), Rr = (0, import_react.useCallback)(() => {
10890
+ let e2 = Object.fromEntries(K.map((e3) => {
10891
10891
  let t2 = e3.dataType;
10892
10892
  switch (t2) {
10893
10893
  case "boolean":
@@ -10921,74 +10921,74 @@ let __tla = (async () => {
10921
10921
  ];
10922
10922
  }
10923
10923
  }));
10924
- u([
10924
+ m([
10925
10925
  e2
10926
10926
  ]), t((t2) => [
10927
10927
  ...t2,
10928
10928
  e2
10929
10929
  ]);
10930
10930
  }, [
10931
- G,
10932
- u,
10931
+ K,
10932
+ m,
10933
10933
  t
10934
- ]), Br = () => {
10935
- let e2 = L.rows.toArray();
10936
- m(e2);
10934
+ ]), zr = () => {
10935
+ let e2 = V.rows.toArray();
10936
+ h(e2);
10937
10937
  let n2 = 0;
10938
10938
  for (let r2 of e2) {
10939
10939
  let e3 = r2 - n2;
10940
10940
  t((t2) => t2.filter((t3, n3) => n3 !== e3)), n2++;
10941
10941
  }
10942
- V({
10942
+ H({
10943
10943
  columns: CompactSelection.empty(),
10944
10944
  rows: CompactSelection.empty()
10945
10945
  });
10946
- }, Vr = useEvent_default((e2, t2) => {
10946
+ }, Br = useEvent_default((e2, t2) => {
10947
10947
  O({
10948
10948
  col: e2,
10949
10949
  bounds: t2
10950
10950
  });
10951
- }), Hr = async () => {
10951
+ }), Vr = async () => {
10952
10952
  if (D) {
10953
- let e2 = G[D.col].title;
10953
+ let e2 = K[D.col].title;
10954
10954
  await copyToClipboard(e2), O(void 0);
10955
10955
  }
10956
10956
  };
10957
- function Ur(e2) {
10957
+ function Hr(e2) {
10958
10958
  toast({
10959
10959
  title: `Column '${e2}' already exists`,
10960
10960
  description: "Please enter a different column name",
10961
10961
  variant: "danger"
10962
10962
  });
10963
10963
  }
10964
- let Wr = (e2) => {
10964
+ let Ur = (e2) => {
10965
10965
  if (D) {
10966
- let i2 = G[D.col].title;
10966
+ let i = K[D.col].title;
10967
10967
  if (n[e2]) {
10968
- Ur(e2);
10968
+ Hr(e2);
10969
10969
  return;
10970
10970
  }
10971
- let a = G[D.col].dataType;
10972
- h(D.col, e2), r((t2) => modifyColumnFields({
10971
+ let a = K[D.col].dataType;
10972
+ g(D.col, e2), r((t2) => modifyColumnFields({
10973
10973
  columnFields: t2,
10974
10974
  columnIdx: D.col,
10975
10975
  type: "rename",
10976
10976
  dataType: a,
10977
10977
  newColumnName: e2
10978
- })), t((t2) => renameColumn(t2, i2, e2)), O(void 0);
10978
+ })), t((t2) => renameColumn(t2, i, e2)), O(void 0);
10979
10979
  }
10980
- }, Y = () => {
10981
- D && (g(D.col), r((e2) => modifyColumnFields({
10980
+ }, Wr = () => {
10981
+ D && (y(D.col), r((e2) => modifyColumnFields({
10982
10982
  columnFields: e2,
10983
10983
  columnIdx: D.col,
10984
10984
  type: "remove"
10985
10985
  })), t((e2) => removeColumn(e2, D.col)), O(void 0));
10986
10986
  }, Gr = (e2) => {
10987
- let { direction: i2, columnName: a, dataType: o } = e2;
10987
+ let { direction: i, columnName: a, dataType: o } = e2;
10988
10988
  if (D) {
10989
- let e3 = D.col + (i2 === "left" ? 0 : 1), s = Math.max(0, Math.min(e3, G.length));
10989
+ let e3 = D.col + (i === "left" ? 0 : 1), s = Math.max(0, Math.min(e3, K.length));
10990
10990
  if (n[a]) {
10991
- Ur(a);
10991
+ Hr(a);
10992
10992
  return;
10993
10993
  }
10994
10994
  x(s, a), r((e4) => modifyColumnFields({
@@ -10999,44 +10999,44 @@ let __tla = (async () => {
10999
10999
  newColumnName: a
11000
11000
  })), t((e4) => insertColumn(e4, a)), O(void 0);
11001
11001
  }
11002
- }, Kr = (D == null ? void 0 : D.col) === G.length - 1, qr = D !== void 0, X = "mr-2 h-3.5 w-3.5", Jr = {
11002
+ }, Kr = (D == null ? void 0 : D.col) === K.length - 1, qr = D !== void 0, X = "mr-2 h-3.5 w-3.5", Jr = {
11003
11003
  hint: "New row",
11004
11004
  sticky: true,
11005
11005
  tint: true
11006
- }, Yr = e.length > 1e5, Xr = i === "all";
11006
+ }, Yr = e.length > 1e5, Xr = c === "all";
11007
11007
  return (0, import_jsx_runtime.jsxs)("div", {
11008
11008
  className: "relative",
11009
11009
  children: [
11010
11010
  (0, import_jsx_runtime.jsx)(ErrorBoundary, {
11011
11011
  children: (0, import_jsx_runtime.jsx)(DataEditorAll, {
11012
- ref: C,
11013
- getCellContent: Lr,
11014
- columns: G,
11015
- gridSelection: L,
11016
- onGridSelectionChange: V,
11012
+ ref: E,
11013
+ getCellContent: Ir,
11014
+ columns: K,
11015
+ gridSelection: V,
11016
+ onGridSelectionChange: H,
11017
11017
  rows: e.length,
11018
11018
  overscrollX: 50,
11019
11019
  smoothScrollX: !Yr,
11020
11020
  smoothScrollY: !Yr,
11021
- validateCell: J,
11021
+ validateCell: Y,
11022
11022
  getCellsForSelection: true,
11023
11023
  onPaste: true,
11024
- showSearch: k,
11024
+ showSearch: F,
11025
11025
  fillHandle: true,
11026
11026
  allowedFillDirections: "vertical",
11027
- onKeyDown: Rr,
11027
+ onKeyDown: Lr,
11028
11028
  height: e.length > 10 ? 450 : void 0,
11029
11029
  width: "100%",
11030
11030
  rowMarkers: {
11031
11031
  kind: "both"
11032
11032
  },
11033
11033
  rowSelectionMode: "multi",
11034
- onCellEdited: K,
11035
- onColumnResize: q,
11036
- onHeaderMenuClick: Vr,
11034
+ onCellEdited: q,
11035
+ onColumnResize: J,
11036
+ onHeaderMenuClick: Br,
11037
11037
  theme: getGlideTheme(S),
11038
11038
  trailingRowOptions: Jr,
11039
- onRowAppended: zr,
11039
+ onRowAppended: Rr,
11040
11040
  maxColumnAutoWidth: 600,
11041
11041
  maxColumnWidth: 600
11042
11042
  })
@@ -11046,8 +11046,8 @@ let __tla = (async () => {
11046
11046
  let e2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
11047
11047
  children: [
11048
11048
  Xr && (0, import_jsx_runtime.jsx)(RenameColumnSub, {
11049
- currentColumnName: G[D.col].title,
11050
- onRename: Wr,
11049
+ currentColumnName: K[D.col].title,
11050
+ onRename: Ur,
11051
11051
  onCancel: () => O(void 0)
11052
11052
  }),
11053
11053
  (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
@@ -11071,7 +11071,7 @@ let __tla = (async () => {
11071
11071
  }),
11072
11072
  (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
11073
11073
  !Kr && Xr && (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
11074
- onClick: Y,
11074
+ onClick: Wr,
11075
11075
  className: "text-destructive focus:text-destructive",
11076
11076
  children: [
11077
11077
  (0, import_jsx_runtime.jsx)(Trash, {
@@ -11093,7 +11093,7 @@ let __tla = (async () => {
11093
11093
  className: "fixed w-52",
11094
11094
  children: [
11095
11095
  (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
11096
- onClick: Hr,
11096
+ onClick: Vr,
11097
11097
  children: [
11098
11098
  (0, import_jsx_runtime.jsx)(Copy, {
11099
11099
  className: X
@@ -11111,10 +11111,10 @@ let __tla = (async () => {
11111
11111
  children: (0, import_jsx_runtime.jsx)(Button, {
11112
11112
  variant: "destructive",
11113
11113
  size: "sm",
11114
- disabled: L.rows.length === 0,
11114
+ disabled: V.rows.length === 0,
11115
11115
  className: "right-2 h-7",
11116
- onClick: Br,
11117
- children: L.rows.length <= 1 ? "Delete row" : "Delete rows"
11116
+ onClick: zr,
11117
+ children: V.rows.length <= 1 ? "Delete row" : "Delete rows"
11118
11118
  })
11119
11119
  })
11120
11120
  ]