@commercetools/nimbus 0.0.0-canary-20251121163008 → 0.0.0-canary-20251126141630

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 (197) hide show
  1. package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js → CollectionBuilder-BnYe2z4W.es.js} +1 -19
  2. package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js.map → CollectionBuilder-BnYe2z4W.es.js.map} +1 -1
  3. package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js → CollectionBuilder-DjRx57vm.cjs.js} +2 -18
  4. package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js.map → CollectionBuilder-DjRx57vm.cjs.js.map} +1 -1
  5. package/dist/chunks/{DatePicker-DeknOPX6.es.js → DatePicker-9m2POezC.es.js} +2 -2
  6. package/dist/chunks/{DatePicker-DeknOPX6.es.js.map → DatePicker-9m2POezC.es.js.map} +1 -1
  7. package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js → DatePicker-BGFu7oAQ.cjs.js} +2 -2
  8. package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js.map → DatePicker-BGFu7oAQ.cjs.js.map} +1 -1
  9. package/dist/chunks/{Dialog-DUbUCf4o.es.js → Dialog-DcnmO0xr.es.js} +5 -5
  10. package/dist/chunks/{Dialog-DUbUCf4o.es.js.map → Dialog-DcnmO0xr.es.js.map} +1 -1
  11. package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js → Dialog-flHBRP1h.cjs.js} +2 -2
  12. package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js.map → Dialog-flHBRP1h.cjs.js.map} +1 -1
  13. package/dist/chunks/{Header-Bvo6aMcQ.es.js → Header-CliQVNVa.es.js} +3 -3
  14. package/dist/chunks/{Header-Bvo6aMcQ.es.js.map → Header-CliQVNVa.es.js.map} +1 -1
  15. package/dist/chunks/{Header-Bvl-gjeR.cjs.js → Header-CyskU0rw.cjs.js} +2 -2
  16. package/dist/chunks/{Header-Bvl-gjeR.cjs.js.map → Header-CyskU0rw.cjs.js.map} +1 -1
  17. package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js → ListBox-BjV-0DWh.cjs.js} +2 -2
  18. package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js.map → ListBox-BjV-0DWh.cjs.js.map} +1 -1
  19. package/dist/chunks/{ListBox-C8TVMFFY.es.js → ListBox-CcSs4yTw.es.js} +6 -6
  20. package/dist/chunks/{ListBox-C8TVMFFY.es.js.map → ListBox-CcSs4yTw.es.js.map} +1 -1
  21. package/dist/chunks/{Modal-CMJEwrBs.es.js → Modal-3QPNDzpi.es.js} +3 -3
  22. package/dist/chunks/{Modal-CMJEwrBs.es.js.map → Modal-3QPNDzpi.es.js.map} +1 -1
  23. package/dist/chunks/{Modal-DjOIA2BE.cjs.js → Modal-mFYEMNT-.cjs.js} +2 -2
  24. package/dist/chunks/{Modal-DjOIA2BE.cjs.js.map → Modal-mFYEMNT-.cjs.js.map} +1 -1
  25. package/dist/chunks/{SelectionManager-bgcDT3lR.es.js → SelectionManager-B0Cb1kHW.es.js} +2 -2
  26. package/dist/chunks/{SelectionManager-bgcDT3lR.es.js.map → SelectionManager-B0Cb1kHW.es.js.map} +1 -1
  27. package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js → SelectionManager-D9tuw16C.cjs.js} +2 -2
  28. package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js.map → SelectionManager-D9tuw16C.cjs.js.map} +1 -1
  29. package/dist/chunks/{Separator-DyU2njbj.cjs.js → Separator-BvA4UGuq.cjs.js} +2 -2
  30. package/dist/chunks/{Separator-DyU2njbj.cjs.js.map → Separator-BvA4UGuq.cjs.js.map} +1 -1
  31. package/dist/chunks/{Separator-BmVimNX_.es.js → Separator-DP89PKAS.es.js} +2 -2
  32. package/dist/chunks/{Separator-BmVimNX_.es.js.map → Separator-DP89PKAS.es.js.map} +1 -1
  33. package/dist/chunks/{combobox-BAOSfyZz.cjs.js → combobox-CPndQJhl.cjs.js} +2 -2
  34. package/dist/chunks/{combobox-BAOSfyZz.cjs.js.map → combobox-CPndQJhl.cjs.js.map} +1 -1
  35. package/dist/chunks/{combobox-D-sXUVsS.es.js → combobox-DVGJtTY-.es.js} +9 -9
  36. package/dist/chunks/{combobox-D-sXUVsS.es.js.map → combobox-DVGJtTY-.es.js.map} +1 -1
  37. package/dist/chunks/{data-table-q_xAC6Y4.cjs.js → data-table-DhijpIzD.cjs.js} +2 -2
  38. package/dist/chunks/{data-table-q_xAC6Y4.cjs.js.map → data-table-DhijpIzD.cjs.js.map} +1 -1
  39. package/dist/chunks/{data-table-VGdNqVuy.es.js → data-table-mOrhnFve.es.js} +11 -11
  40. package/dist/chunks/{data-table-VGdNqVuy.es.js.map → data-table-mOrhnFve.es.js.map} +1 -1
  41. package/dist/chunks/{date-picker-Bx4kkIdC.cjs.js → date-picker-B4MhmcwJ.cjs.js} +2 -2
  42. package/dist/chunks/{date-picker-Bx4kkIdC.cjs.js.map → date-picker-B4MhmcwJ.cjs.js.map} +1 -1
  43. package/dist/chunks/{date-picker-CRo_w6Jz.es.js → date-picker-DoN3I22T.es.js} +3 -3
  44. package/dist/chunks/{date-picker-CRo_w6Jz.es.js.map → date-picker-DoN3I22T.es.js.map} +1 -1
  45. package/dist/chunks/{date-range-picker-BcY8cXPH.cjs.js → date-range-picker-Bsu09Yvu.cjs.js} +2 -2
  46. package/dist/chunks/{date-range-picker-BcY8cXPH.cjs.js.map → date-range-picker-Bsu09Yvu.cjs.js.map} +1 -1
  47. package/dist/chunks/{date-range-picker-CrFq736s.es.js → date-range-picker-CY4y1m0B.es.js} +3 -3
  48. package/dist/chunks/{date-range-picker-CrFq736s.es.js.map → date-range-picker-CY4y1m0B.es.js.map} +1 -1
  49. package/dist/chunks/{date-range-picker-field-BDCEC-kA.cjs.js → date-range-picker-field-CgO9OoyB.cjs.js} +2 -2
  50. package/dist/chunks/{date-range-picker-field-BDCEC-kA.cjs.js.map → date-range-picker-field-CgO9OoyB.cjs.js.map} +1 -1
  51. package/dist/chunks/{date-range-picker-field-L56QHJs-.es.js → date-range-picker-field-_f1tY_ZQ.es.js} +3 -3
  52. package/dist/chunks/{date-range-picker-field-L56QHJs-.es.js.map → date-range-picker-field-_f1tY_ZQ.es.js.map} +1 -1
  53. package/dist/chunks/{dialog-BHTOGgtN.cjs.js → dialog-BiE3sKA_.cjs.js} +2 -2
  54. package/dist/chunks/{dialog-BHTOGgtN.cjs.js.map → dialog-BiE3sKA_.cjs.js.map} +1 -1
  55. package/dist/chunks/{dialog-DGko_UBT.es.js → dialog-g2eRAaPW.es.js} +3 -3
  56. package/dist/chunks/{dialog-DGko_UBT.es.js.map → dialog-g2eRAaPW.es.js.map} +1 -1
  57. package/dist/chunks/{draggable-list-Dk7BxgW-.es.js → draggable-list-CQ7h_F__.es.js} +9 -9
  58. package/dist/chunks/{draggable-list-Dk7BxgW-.es.js.map → draggable-list-CQ7h_F__.es.js.map} +1 -1
  59. package/dist/chunks/{draggable-list-BPM-ioyq.cjs.js → draggable-list-DArcamJL.cjs.js} +2 -2
  60. package/dist/chunks/{draggable-list-BPM-ioyq.cjs.js.map → draggable-list-DArcamJL.cjs.js.map} +1 -1
  61. package/dist/chunks/{drawer-DbQScPqa.cjs.js → drawer-80jf-a5D.cjs.js} +2 -2
  62. package/dist/chunks/{drawer-DbQScPqa.cjs.js.map → drawer-80jf-a5D.cjs.js.map} +1 -1
  63. package/dist/chunks/{drawer-BUiIQ9L5.es.js → drawer-CdfOinPU.es.js} +3 -3
  64. package/dist/chunks/{drawer-BUiIQ9L5.es.js.map → drawer-CdfOinPU.es.js.map} +1 -1
  65. package/dist/chunks/{form-field-CJHX6A4q.cjs.js → form-field-Ca3k84cH.cjs.js} +2 -2
  66. package/dist/chunks/{form-field-CJHX6A4q.cjs.js.map → form-field-Ca3k84cH.cjs.js.map} +1 -1
  67. package/dist/chunks/{form-field-CGjPf6rA.es.js → form-field-CzFcczIs.es.js} +2 -2
  68. package/dist/chunks/{form-field-CGjPf6rA.es.js.map → form-field-CzFcczIs.es.js.map} +1 -1
  69. package/dist/chunks/{localized-field-Cb0fyOZF.cjs.js → localized-field-BJXrxOc7.cjs.js} +2 -2
  70. package/dist/chunks/{localized-field-Cb0fyOZF.cjs.js.map → localized-field-BJXrxOc7.cjs.js.map} +1 -1
  71. package/dist/chunks/{localized-field-DFQ6Knzt.es.js → localized-field-Bq8xTkHi.es.js} +7 -7
  72. package/dist/chunks/{localized-field-DFQ6Knzt.es.js.map → localized-field-Bq8xTkHi.es.js.map} +1 -1
  73. package/dist/chunks/{menu-Ctsou8BQ.cjs.js → menu-8MZlyluP.cjs.js} +2 -2
  74. package/dist/chunks/{menu-Ctsou8BQ.cjs.js.map → menu-8MZlyluP.cjs.js.map} +1 -1
  75. package/dist/chunks/{menu-hZacrl0C.es.js → menu-xeJ9lZMo.es.js} +4 -4
  76. package/dist/chunks/{menu-hZacrl0C.es.js.map → menu-xeJ9lZMo.es.js.map} +1 -1
  77. package/dist/chunks/{money-input-BmRHEzuc.es.js → money-input-CdcKcoW7.es.js} +2 -2
  78. package/dist/chunks/{money-input-BmRHEzuc.es.js.map → money-input-CdcKcoW7.es.js.map} +1 -1
  79. package/dist/chunks/{money-input-Dg8WwuK4.cjs.js → money-input-DKK4IkDa.cjs.js} +2 -2
  80. package/dist/chunks/{money-input-Dg8WwuK4.cjs.js.map → money-input-DKK4IkDa.cjs.js.map} +1 -1
  81. package/dist/chunks/{money-input-field-Cj9jvBsE.cjs.js → money-input-field-dVccFP1i.cjs.js} +2 -2
  82. package/dist/chunks/{money-input-field-Cj9jvBsE.cjs.js.map → money-input-field-dVccFP1i.cjs.js.map} +1 -1
  83. package/dist/chunks/{money-input-field-Dec63VQv.es.js → money-input-field-vVLyfqtt.es.js} +3 -3
  84. package/dist/chunks/{money-input-field-Dec63VQv.es.js.map → money-input-field-vVLyfqtt.es.js.map} +1 -1
  85. package/dist/chunks/{number-input-field-D7aLGfzZ.es.js → number-input-field-BDAnY1HI.es.js} +2 -2
  86. package/dist/chunks/{number-input-field-D7aLGfzZ.es.js.map → number-input-field-BDAnY1HI.es.js.map} +1 -1
  87. package/dist/chunks/{number-input-field-BgCaRtnS.cjs.js → number-input-field-_SV3uOSQ.cjs.js} +2 -2
  88. package/dist/chunks/{number-input-field-BgCaRtnS.cjs.js.map → number-input-field-_SV3uOSQ.cjs.js.map} +1 -1
  89. package/dist/chunks/{pagination-DPEQK0Xq.es.js → pagination-Bw4PfQiy.es.js} +2 -2
  90. package/dist/chunks/{pagination-DPEQK0Xq.es.js.map → pagination-Bw4PfQiy.es.js.map} +1 -1
  91. package/dist/chunks/{pagination-CQ0roDut.cjs.js → pagination-DpIJKRGy.cjs.js} +2 -2
  92. package/dist/chunks/{pagination-CQ0roDut.cjs.js.map → pagination-DpIJKRGy.cjs.js.map} +1 -1
  93. package/dist/chunks/{popover-DY7ASSCU.cjs.js → popover-DHeke7qU.cjs.js} +2 -2
  94. package/dist/chunks/{popover-DY7ASSCU.cjs.js.map → popover-DHeke7qU.cjs.js.map} +1 -1
  95. package/dist/chunks/{popover-BAIwOPdC.es.js → popover-zNeVW5hN.es.js} +2 -2
  96. package/dist/chunks/{popover-BAIwOPdC.es.js.map → popover-zNeVW5hN.es.js.map} +1 -1
  97. package/dist/chunks/{rich-text-input-DAc5Qrg9.es.js → rich-text-input-D9-NrOjQ.es.js} +3 -10
  98. package/dist/chunks/{rich-text-input-DAc5Qrg9.es.js.map → rich-text-input-D9-NrOjQ.es.js.map} +1 -1
  99. package/dist/chunks/{rich-text-input-uQdozf3f.cjs.js → rich-text-input-v6nJvAeT.cjs.js} +2 -8
  100. package/dist/chunks/{rich-text-input-uQdozf3f.cjs.js.map → rich-text-input-v6nJvAeT.cjs.js.map} +1 -1
  101. package/dist/chunks/{scoped-search-input-D5GJjsyF.es.js → scoped-search-input-CJTn4Zz-.es.js} +2 -2
  102. package/dist/chunks/{scoped-search-input-D5GJjsyF.es.js.map → scoped-search-input-CJTn4Zz-.es.js.map} +1 -1
  103. package/dist/chunks/{scoped-search-input-Bjm-BowW.cjs.js → scoped-search-input-DR1UVqfn.cjs.js} +2 -2
  104. package/dist/chunks/{scoped-search-input-Bjm-BowW.cjs.js.map → scoped-search-input-DR1UVqfn.cjs.js.map} +1 -1
  105. package/dist/chunks/{select-CQwpSckj.es.js → select-DCLqY_H8.es.js} +7 -7
  106. package/dist/chunks/{select-CQwpSckj.es.js.map → select-DCLqY_H8.es.js.map} +1 -1
  107. package/dist/chunks/{select-muD4KBy_.cjs.js → select-noWcLHsw.cjs.js} +2 -2
  108. package/dist/chunks/{select-muD4KBy_.cjs.js.map → select-noWcLHsw.cjs.js.map} +1 -1
  109. package/dist/chunks/{separator-1ZNnZk9T.cjs.js → separator-DryRIJEa.cjs.js} +2 -2
  110. package/dist/chunks/{separator-1ZNnZk9T.cjs.js.map → separator-DryRIJEa.cjs.js.map} +1 -1
  111. package/dist/chunks/{separator-CxPOiV-V.es.js → separator-PVuFkBJX.es.js} +2 -2
  112. package/dist/chunks/{separator-CxPOiV-V.es.js.map → separator-PVuFkBJX.es.js.map} +1 -1
  113. package/dist/chunks/{split-button-jWOgks2W.cjs.js → split-button-C0ErPS5z.cjs.js} +2 -2
  114. package/dist/chunks/{split-button-jWOgks2W.cjs.js.map → split-button-C0ErPS5z.cjs.js.map} +1 -1
  115. package/dist/chunks/{split-button-Dtp64tp3.es.js → split-button-Rxsqp2QA.es.js} +2 -2
  116. package/dist/chunks/{split-button-Dtp64tp3.es.js.map → split-button-Rxsqp2QA.es.js.map} +1 -1
  117. package/dist/chunks/{tabs-DfNhZz7h.es.js → tabs-Dt3Dhaiq.es.js} +5 -5
  118. package/dist/chunks/{tabs-DfNhZz7h.es.js.map → tabs-Dt3Dhaiq.es.js.map} +1 -1
  119. package/dist/chunks/{tabs-CHNOmHyg.cjs.js → tabs-e-3yG4hI.cjs.js} +2 -2
  120. package/dist/chunks/{tabs-CHNOmHyg.cjs.js.map → tabs-e-3yG4hI.cjs.js.map} +1 -1
  121. package/dist/chunks/{tag-group-CaQdCaEc.es.js → tag-group-CklEK4eJ.es.js} +7 -7
  122. package/dist/chunks/{tag-group-CaQdCaEc.es.js.map → tag-group-CklEK4eJ.es.js.map} +1 -1
  123. package/dist/chunks/{tag-group-D5Mhaf6-.cjs.js → tag-group-D0NF_ay2.cjs.js} +2 -2
  124. package/dist/chunks/{tag-group-D5Mhaf6-.cjs.js.map → tag-group-D0NF_ay2.cjs.js.map} +1 -1
  125. package/dist/chunks/{text-input-field-DbicgCUY.cjs.js → text-input-field-D0MJSUw8.cjs.js} +2 -2
  126. package/dist/chunks/{text-input-field-DbicgCUY.cjs.js.map → text-input-field-D0MJSUw8.cjs.js.map} +1 -1
  127. package/dist/chunks/{text-input-field-CNXk82pQ.es.js → text-input-field-DeQ-WI6P.es.js} +2 -2
  128. package/dist/chunks/{text-input-field-CNXk82pQ.es.js.map → text-input-field-DeQ-WI6P.es.js.map} +1 -1
  129. package/dist/chunks/{useGridListItem-DAGp36bD.es.js → useGridListItem-CjGTTOtc.es.js} +3 -3
  130. package/dist/chunks/{useGridListItem-DAGp36bD.es.js.map → useGridListItem-CjGTTOtc.es.js.map} +1 -1
  131. package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js → useGridListItem-Ck5JPksV.cjs.js} +2 -2
  132. package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js.map → useGridListItem-Ck5JPksV.cjs.js.map} +1 -1
  133. package/dist/chunks/{useListState-QQtJHpsQ.cjs.js → useListState-BSrUXH20.cjs.js} +2 -2
  134. package/dist/chunks/{useListState-QQtJHpsQ.cjs.js.map → useListState-BSrUXH20.cjs.js.map} +1 -1
  135. package/dist/chunks/{useListState-BHLGQlP3.es.js → useListState-CRfmjiWx.es.js} +2 -2
  136. package/dist/chunks/{useListState-BHLGQlP3.es.js.map → useListState-CRfmjiWx.es.js.map} +1 -1
  137. package/dist/chunks/{useSingleSelectListState-B29G7the.es.js → useSingleSelectListState-DFR33TSw.es.js} +2 -2
  138. package/dist/chunks/{useSingleSelectListState-B29G7the.es.js.map → useSingleSelectListState-DFR33TSw.es.js.map} +1 -1
  139. package/dist/chunks/{useSingleSelectListState-CsD7W9nK.cjs.js → useSingleSelectListState-DnlbcBEG.cjs.js} +2 -2
  140. package/dist/chunks/{useSingleSelectListState-CsD7W9nK.cjs.js.map → useSingleSelectListState-DnlbcBEG.cjs.js.map} +1 -1
  141. package/dist/components/combobox.cjs +1 -1
  142. package/dist/components/combobox.es.js +1 -1
  143. package/dist/components/data-table.cjs +1 -1
  144. package/dist/components/data-table.es.js +1 -1
  145. package/dist/components/date-picker.cjs +1 -1
  146. package/dist/components/date-picker.es.js +1 -1
  147. package/dist/components/date-range-picker-field.cjs +1 -1
  148. package/dist/components/date-range-picker-field.es.js +1 -1
  149. package/dist/components/date-range-picker.cjs +1 -1
  150. package/dist/components/date-range-picker.es.js +1 -1
  151. package/dist/components/dialog.cjs +1 -1
  152. package/dist/components/dialog.es.js +1 -1
  153. package/dist/components/draggable-list.cjs +1 -1
  154. package/dist/components/draggable-list.es.js +1 -1
  155. package/dist/components/drawer.cjs +1 -1
  156. package/dist/components/drawer.es.js +1 -1
  157. package/dist/components/fields.cjs +1 -1
  158. package/dist/components/fields.es.js +4 -4
  159. package/dist/components/form-field.cjs +1 -1
  160. package/dist/components/form-field.es.js +1 -1
  161. package/dist/components/localized-field.cjs +1 -1
  162. package/dist/components/localized-field.es.js +1 -1
  163. package/dist/components/money-input-field.cjs +1 -1
  164. package/dist/components/money-input-field.es.js +1 -1
  165. package/dist/components/money-input.cjs +1 -1
  166. package/dist/components/money-input.es.js +1 -1
  167. package/dist/components/number-input-field.cjs +1 -1
  168. package/dist/components/number-input-field.es.js +1 -1
  169. package/dist/components/pagination.cjs +1 -1
  170. package/dist/components/pagination.es.js +1 -1
  171. package/dist/components/patterns.cjs +1 -1
  172. package/dist/components/patterns.es.js +4 -4
  173. package/dist/components/popover.cjs +1 -1
  174. package/dist/components/popover.es.js +1 -1
  175. package/dist/components/rich-text-input.cjs +1 -1
  176. package/dist/components/rich-text-input.es.js +1 -1
  177. package/dist/components/scoped-search-input.cjs +1 -1
  178. package/dist/components/scoped-search-input.es.js +1 -1
  179. package/dist/components/select.cjs +1 -1
  180. package/dist/components/select.es.js +1 -1
  181. package/dist/components/separator.cjs +1 -1
  182. package/dist/components/separator.es.js +1 -1
  183. package/dist/components/split-button.cjs +1 -1
  184. package/dist/components/split-button.es.js +1 -1
  185. package/dist/components/tabs.cjs +1 -1
  186. package/dist/components/tabs.es.js +1 -1
  187. package/dist/components/tag-group.cjs +1 -1
  188. package/dist/components/tag-group.es.js +1 -1
  189. package/dist/components/text-input-field.cjs +1 -1
  190. package/dist/components/text-input-field.es.js +1 -1
  191. package/dist/components/utils.cjs +1 -1
  192. package/dist/components/utils.cjs.map +1 -1
  193. package/dist/components/utils.es.js +0 -1
  194. package/dist/components/utils.es.js.map +1 -1
  195. package/dist/index.cjs +1 -1
  196. package/dist/index.es.js +24 -24
  197. package/package.json +10 -10
@@ -1,2 +1,2 @@
1
- "use strict";const a=require("react"),J=require("./utils-Bv1frUk6.cjs.js"),D=require("./mergeProps-CxnHrnow.cjs.js"),se=require("./focusWithoutScrolling-BlyUcXdY.cjs.js"),ce=require("./openLink-DkCJYbzq.cjs.js"),j=require("./useEvent-D0r31Azw.cjs.js"),Y=require("./scrollIntoView-BE5bh59O.cjs.js"),Be=require("./FocusScope-vAM-Q62b.cjs.js"),ye=require("./useFocusVisible-DfE3Z6QO.cjs.js"),ue=require("./focusSafely-Dvxmj9Tu.cjs.js"),Le=require("react-dom"),Oe=require("./context-CyT9C4U4.cjs.js"),xe=require("./platform-BDLy2vDY.cjs.js"),we=require("./usePress-MEEljcWP.cjs.js"),qe=require("./useGlobalListeners-CwGh-cDn.cjs.js"),Ue=require("./CollectionBuilder-BipvtvSl.cjs.js"),ze=require("./useControlledState-D0L6S_5r.cjs.js");function he(n,e){const t=a.useRef(!0),l=a.useRef(null);D.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(t.current=!0,()=>{t.current=!1}),[]),D.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{t.current?t.current=!1:(!l.current||e.some((i,c)=>!Object.is(i,l[c])))&&n(),l.current=e},e)}function H(n){return xe.$c87311424ea30a05$export$9ac100e40613ea10()?n.metaKey:n.ctrlKey}const Ve=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function He(n){return n instanceof HTMLInputElement&&!Ve.has(n.type)||n instanceof HTMLTextAreaElement||n instanceof HTMLElement&&n.isContentEditable}const Fe="react-aria-clear-focus",Pe="react-aria-focus",We=500;function Ee(n){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:i,threshold:c=We,accessibilityDescription:o}=n;const d=a.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:g}=qe.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:I}=we.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:e,onPressStart($){if($.continuePropagation(),($.pointerType==="mouse"||$.pointerType==="touch")&&(t&&t({...$,type:"longpressstart"}),d.current=setTimeout(()=>{$.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),J.$431fbd86ca7dc216$export$b204af158042fbac($.target).activeElement!==$.target&&se.$7215afc6de606d6b$export$de79e2c695e052f3($.target),i&&i({...$,type:"longpress"}),d.current=void 0},c),$.pointerType==="touch")){let S=b=>{b.preventDefault()};f($.target,"contextmenu",S,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{g($.target,"contextmenu",S)},30)},{once:!0})}},onPressEnd($){d.current&&clearTimeout(d.current),l&&($.pointerType==="mouse"||$.pointerType==="touch")&&l({...$,type:"longpressend"})}}),K=Y.$ef06256079686ba0$export$f8aeda7b10753fa1(i&&!e?o:void 0);return{longPressProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(I,K)}}function ae(n){let e=ke(J.$431fbd86ca7dc216$export$b204af158042fbac(n));e!==n&&(e&&Te(e,n),n&&de(n,e))}function Te(n,e){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function de(n,e){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function ke(n){let e=J.$d4ee10de306f2510$export$cd4e5573fbe2b576(n),t=e?.getAttribute("aria-activedescendant");return t&&n.getElementById(t)||e}function fe(n){return xe.$c87311424ea30a05$export$e1865c3bedcd822b()?n.altKey:n.ctrlKey}function Z(n,e){var t,l;let i=`[data-key="${CSS.escape(String(e))}"]`,c=(t=n.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(i=`[data-collection="${CSS.escape(c)}"]${i}`),(l=n.current)===null||l===void 0?void 0:l.querySelector(i)}const De=new WeakMap;function Ge(n){let e=D.$bdb11010cef70236$export$f680877a34711e37();return De.set(n,e),e}function je(n){return De.get(n)}const Ye=1e3;function Ie(n){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=n,i=a.useRef({search:"",timeout:void 0}).current,c=o=>{let d=Ze(o.key);if(!(!d||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||i.search.length===0&&d===" ")){if(d===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=d,e.getKeyForSearch!=null){let f=e.getKeyForSearch(i.search,t.focusedKey);f==null&&(f=e.getKeyForSearch(i.search)),f!=null&&(t.setFocusedKey(f),l&&l(f))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ye)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function Ze(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function Je(n){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:i=!1,shouldFocusWrap:c=!1,disallowEmptySelection:o=!1,disallowSelectAll:d=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:g=e.selectionBehavior==="replace",disallowTypeAhead:I=!1,shouldUseVirtualFocus:K,allowsTabNavigation:$=!1,isVirtualized:S,scrollRef:b=l,linkBehavior:A="action"}=n,{direction:y}=Oe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),F=ce.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),h=s=>{var p;if(s.altKey&&s.key==="Tab"&&s.preventDefault(),!(!((p=l.current)===null||p===void 0)&&p.contains(s.target)))return;const m=(u,z)=>{if(u!=null){if(e.isLink(u)&&A==="selection"&&g&&!fe(s)){Le.flushSync(()=>{e.setFocusedKey(u,z)});let V=Z(l,u),$e=e.getItemProps(u);V&&F.open(V,s,$e.href,$e.routerOptions);return}if(e.setFocusedKey(u,z),e.isLink(u)&&A==="override")return;s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):g&&!fe(s)&&e.replaceSelection(u)}};switch(s.key){case"ArrowDown":if(t.getKeyBelow){var r,w,T;let u=e.focusedKey!=null?(r=t.getKeyBelow)===null||r===void 0?void 0:r.call(t,e.focusedKey):(w=t.getFirstKey)===null||w===void 0?void 0:w.call(t);u==null&&c&&(u=(T=t.getFirstKey)===null||T===void 0?void 0:T.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u))}break;case"ArrowUp":if(t.getKeyAbove){var B,q,N;let u=e.focusedKey!=null?(B=t.getKeyAbove)===null||B===void 0?void 0:B.call(t,e.focusedKey):(q=t.getLastKey)===null||q===void 0?void 0:q.call(t);u==null&&c&&(u=(N=t.getLastKey)===null||N===void 0?void 0:N.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var _,ee,te;let u=e.focusedKey!=null?(_=t.getKeyLeftOf)===null||_===void 0?void 0:_.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(ee=t.getFirstKey)===null||ee===void 0?void 0:ee.call(t,e.focusedKey):(te=t.getLastKey)===null||te===void 0?void 0:te.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var le,ne,ie;let u=e.focusedKey!=null?(le=t.getKeyRightOf)===null||le===void 0?void 0:le.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(ne=t.getLastKey)===null||ne===void 0?void 0:ne.call(t,e.focusedKey):(ie=t.getFirstKey)===null||ie===void 0?void 0:ie.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u,y==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&s.shiftKey)return;s.preventDefault();let u=t.getFirstKey(e.focusedKey,H(s));e.setFocusedKey(u),u!=null&&(H(s)&&s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):g&&e.replaceSelection(u))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&s.shiftKey)return;s.preventDefault();let u=t.getLastKey(e.focusedKey,H(s));e.setFocusedKey(u),u!=null&&(H(s)&&s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):g&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(s.preventDefault(),m(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(s.preventDefault(),m(u))}break;case"a":H(s)&&e.selectionMode==="multiple"&&d!==!0&&(s.preventDefault(),e.selectAll());break;case"Escape":f==="clearSelection"&&!o&&e.selectedKeys.size!==0&&(s.stopPropagation(),s.preventDefault(),e.clearSelection());break;case"Tab":if(!$){if(s.shiftKey)l.current.focus();else{let u=Be.$9bf71ea28793e738$export$2d6ec8fc375ceafa(l.current,{tabbable:!0}),z,V;do V=u.lastChild(),V&&(z=V);while(V);z&&!z.contains(document.activeElement)&&se.$7215afc6de606d6b$export$de79e2c695e052f3(z)}break}}},v=a.useRef({top:0,left:0});j.$e9faafb641e167db$export$90fc3a17d93f704c(b,"scroll",S?void 0:()=>{var s,p,m,r;v.current={top:(m=(s=b.current)===null||s===void 0?void 0:s.scrollTop)!==null&&m!==void 0?m:0,left:(r=(p=b.current)===null||p===void 0?void 0:p.scrollLeft)!==null&&r!==void 0?r:0}});let x=s=>{if(e.isFocused){s.currentTarget.contains(s.target)||e.setFocused(!1);return}if(s.currentTarget.contains(s.target)){if(e.setFocused(!0),e.focusedKey==null){var p,m;let T=q=>{q!=null&&(e.setFocusedKey(q),g&&!e.isSelected(q)&&e.replaceSelection(q))},B=s.relatedTarget;var r,w;B&&s.currentTarget.compareDocumentPosition(B)&Node.DOCUMENT_POSITION_FOLLOWING?T((r=e.lastSelectedKey)!==null&&r!==void 0?r:(p=t.getLastKey)===null||p===void 0?void 0:p.call(t)):T((w=e.firstSelectedKey)!==null&&w!==void 0?w:(m=t.getFirstKey)===null||m===void 0?void 0:m.call(t))}else!S&&b.current&&(b.current.scrollTop=v.current.top,b.current.scrollLeft=v.current.left);if(e.focusedKey!=null&&b.current){let T=Z(l,e.focusedKey);T instanceof HTMLElement&&(!T.contains(document.activeElement)&&!K&&se.$7215afc6de606d6b$export$de79e2c695e052f3(T),ye.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&Y.$2f04cbc44ee30ce0$export$c826860796309d1b(T,{containingElement:l.current}))}}},L=s=>{s.currentTarget.contains(s.relatedTarget)||e.setFocused(!1)},k=a.useRef(!1);j.$e9faafb641e167db$export$90fc3a17d93f704c(l,Pe,K?s=>{let{detail:p}=s;s.stopPropagation(),e.setFocused(!0),p?.focusStrategy==="first"&&(k.current=!0)}:void 0);let M=D.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{var s,p;let m=(p=(s=t.getFirstKey)===null||s===void 0?void 0:s.call(t))!==null&&p!==void 0?p:null;if(m==null){let r=J.$d4ee10de306f2510$export$cd4e5573fbe2b576();ae(l.current),de(r,null),e.collection.size>0&&(k.current=!1)}else e.setFocusedKey(m),k.current=!1});he(()=>{k.current&&M()},[e.collection,M]);let E=D.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.collection.size>0&&(k.current=!1)});he(()=>{E()},[e.focusedKey,E]),j.$e9faafb641e167db$export$90fc3a17d93f704c(l,Fe,K?s=>{var p;s.stopPropagation(),e.setFocused(!1),!((p=s.detail)===null||p===void 0)&&p.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=a.useRef(i),U=a.useRef(!1);a.useEffect(()=>{if(W.current){var s,p;let w=null;var m;i==="first"&&(w=(m=(s=t.getFirstKey)===null||s===void 0?void 0:s.call(t))!==null&&m!==void 0?m:null);var r;i==="last"&&(w=(r=(p=t.getLastKey)===null||p===void 0?void 0:p.call(t))!==null&&r!==void 0?r:null);let T=e.selectedKeys;if(T.size){for(let B of T)if(e.canSelectItem(B)){w=B;break}}e.setFocused(!0),e.setFocusedKey(w),w==null&&!K&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),e.collection.size>0&&(W.current=!1,U.current=!0)}});let O=a.useRef(e.focusedKey),R=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==O.current||U.current)&&b.current&&l.current){let s=ye.$507fabe10e71c6fb$export$630ff653c5ada6a9(),p=Z(l,e.focusedKey);if(!(p instanceof HTMLElement))return;(s==="keyboard"||U.current)&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{b.current&&(Y.$2f04cbc44ee30ce0$export$53a0910f038337bd(b.current,p),s!=="virtual"&&Y.$2f04cbc44ee30ce0$export$c826860796309d1b(p,{containingElement:l.current}))}))}!K&&e.isFocused&&e.focusedKey==null&&O.current!=null&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),O.current=e.focusedKey,U.current=!1}),a.useEffect(()=>()=>{R.current&&cancelAnimationFrame(R.current)},[]),j.$e9faafb641e167db$export$90fc3a17d93f704c(l,"react-aria-focus-scope-restore",s=>{s.preventDefault(),e.setFocused(!0)});let P={onKeyDown:h,onFocus:x,onBlur:L,onMouseDown(s){b.current===s.target&&s.preventDefault()}},{typeSelectProps:Q}=Ie({keyboardDelegate:t,selectionManager:e});I||(P=D.$3ef42575df84b30b$export$9d1611c77c2fe928(Q,P));let G;K||(G=e.focusedKey==null?0:-1);let X=Ge(e.collection);return{collectionProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{tabIndex:G,"data-collection":X})}}function Qe(n){let{id:e,selectionManager:t,key:l,ref:i,shouldSelectOnPressUp:c,shouldUseVirtualFocus:o,focus:d,isDisabled:f,onAction:g,allowsDifferentPressOrigin:I,linkBehavior:K="action"}=n,$=ce.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();e=D.$bdb11010cef70236$export$f680877a34711e37(e);let S=r=>{if(r.pointerType==="keyboard"&&fe(r))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(K==="selection"&&i.current){let w=t.getItemProps(l);$.open(i.current,r,w.href,w.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(K==="override"||K==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):r&&r.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||r&&(H(r)||r.pointerType==="touch"||r.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};a.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(o?ae(i.current):d?d():document.activeElement!==i.current&&i.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(i.current))},[i,l,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),f=f||t.isDisabled(l);let b={};!o&&!f?b={tabIndex:l===t.focusedKey?0:-1,onFocus(r){r.target===i.current&&t.setFocusedKey(l)}}:f&&(b.onMouseDown=r=>{r.preventDefault()});let A=t.isLink(l)&&K==="override",y=g&&n.UNSTABLE_itemBehavior==="action",F=t.isLink(l)&&K!=="selection"&&K!=="none",h=!f&&t.canSelectItem(l)&&!A&&!y,v=(g||F)&&!f,x=v&&(t.selectionBehavior==="replace"?!h:!h||t.isEmpty),L=v&&h&&t.selectionBehavior==="replace",k=x||L,M=a.useRef(null),E=k&&h,W=a.useRef(!1),U=a.useRef(!1),O=t.getItemProps(l),R=r=>{if(g){var w;g(),(w=i.current)===null||w===void 0||w.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}F&&i.current&&$.open(i.current,r,O.href,O.routerOptions)},P={ref:i};if(c?(P.onPressStart=r=>{M.current=r.pointerType,W.current=E,r.pointerType==="keyboard"&&(!k||ve())&&S(r)},I?(P.onPressUp=x?void 0:r=>{r.pointerType==="mouse"&&h&&S(r)},P.onPress=x?R:r=>{r.pointerType!=="keyboard"&&r.pointerType!=="mouse"&&h&&S(r)}):P.onPress=r=>{if(x||L&&r.pointerType!=="mouse"){if(r.pointerType==="keyboard"&&!be())return;R(r)}else r.pointerType!=="keyboard"&&h&&S(r)}):(P.onPressStart=r=>{M.current=r.pointerType,W.current=E,U.current=x,h&&(r.pointerType==="mouse"&&!x||r.pointerType==="keyboard"&&(!v||ve()))&&S(r)},P.onPress=r=>{(r.pointerType==="touch"||r.pointerType==="pen"||r.pointerType==="virtual"||r.pointerType==="keyboard"&&k&&be()||r.pointerType==="mouse"&&U.current)&&(k?R(r):h&&S(r))}),b["data-collection"]=je(t.collection),b["data-key"]=l,P.preventFocusOnPress=o,o&&(P=D.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{onPressStart(r){r.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(r){r.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}})),O)for(let r of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[r]&&(P[r]=D.$ff5963eb1fccf552$export$e08e3b67e392101e(P[r],O[r]));let{pressProps:Q,isPressed:G}=we.$f6c31cce2adf654f$export$45712eceda6fad21(P),X=L?r=>{M.current==="mouse"&&(r.stopPropagation(),r.preventDefault(),R(r))}:void 0,{longPressProps:s}=Ee({isDisabled:!E,onLongPress(r){r.pointerType==="touch"&&(S(r),t.setSelectionBehavior("toggle"))}}),p=r=>{M.current==="touch"&&W.current&&r.preventDefault()},m=K!=="none"&&t.isLink(l)?r=>{ce.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||r.preventDefault()}:void 0;return{itemProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(b,h||x||o&&!f?Q:{},E?s:{},{onDoubleClick:X,onDragStartCapture:p,onClick:m,id:e},o?{onMouseDown:r=>r.preventDefault()}:void 0),isPressed:G,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:f,allowsSelection:h,hasAction:k}}function be(){let n=window.event;return n?.key==="Enter"}function ve(){let n=window.event;return n?.key===" "||n?.code==="Space"}class Xe{build(e,t){return this.context=t,me(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let i=0;for(let c of l)yield*this.getFullNode({value:c,index:i},{renderer:t}),i++}else{let i=[];a.Children.forEach(t,o=>{o&&i.push(o)});let c=0;for(let o of i){let d=this.getFullNode({element:o,index:c},{});for(let f of d)c++,yield f}}}getKey(e,t,l,i){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${i}${t.key}`;let c=t.value;if(c!=null){var o;let d=(o=c.key)!==null&&o!==void 0?o:c.id;if(d==null)throw new Error("No key found for item");return d}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,h=>{y.push(h)});var c;let F=(c=e.index)!==null&&c!==void 0?c:0;for(const h of y)yield*this.getFullNode({element:h,index:F++},t,l,i);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=i?i.key:null,yield y;return}o=t.renderer(e.value)}if(a.isValidElement(o)){let y=o.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let x=o.type;throw new Error(`Unknown element <${x}> in collection.`)}let F=y.getCollectionNode(o.props,this.context);var d;let h=(d=e.index)!==null&&d!==void 0?d:0,v=F.next();for(;!v.done&&v.value;){let x=v.value;e.index=h;var f;let L=(f=x.key)!==null&&f!==void 0?f:null;L==null&&(L=x.element?null:this.getKey(o,e,t,l));let M=[...this.getFullNode({...x,key:L,index:h,wrapper:Ne(e.wrapper,x.wrapper)},this.getChildState(t,x),l?`${l}${o.key}`:o.key,i)];for(let E of M){var g,I;E.value=(I=(g=x.value)!==null&&g!==void 0?g:e.value)!==null&&I!==void 0?I:null,E.value&&this.cache.set(E.value,E);var K;if(e.type&&E.type!==e.type)throw new Error(`Unsupported type <${re(E.type)}> in <${re((K=i?.type)!==null&&K!==void 0?K:"unknown parent type")}>. Only <${re(e.type)}> is supported.`);h++,yield E}v=F.next(M)}return}if(e.key==null||e.type==null)return;let $=this;var S,b;let A={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(S=e.value)!==null&&S!==void 0?S:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:me(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let F of e.childNodes()){F.key!=null&&(F.key=`${A.key}${F.key}`);let h=$.getFullNode({...F,index:y},$.getChildState(t,F),A.key,A);for(let v of h)y++,yield v}})};yield A}constructor(){this.cache=new WeakMap}}function me(n){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=n());for(let l of t)e.push(l),yield l}}}function Ne(n,e){if(n&&e)return t=>n(e(t));if(n)return n;if(e)return e}function re(n){return n[0].toUpperCase()+n.slice(1)}function _e(n,e,t){let l=a.useMemo(()=>new Xe,[]),{children:i,items:c,collection:o}=n;return a.useMemo(()=>{if(o)return o;let f=l.build({children:i,items:c},t);return e(f)},[l,i,c,o,t,e])}function Ae(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function Ce(n){return Me(n,0)}function Me(n,e){if(e<0)return;let t=0;for(let l of n){if(t===e)return l;t++}}function et(n){let e;for(let t of n)e=t;return e}function oe(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...ge(n,e),e],i=[...ge(n,t),t],c=l.slice(0,i.length).findIndex((o,d)=>o!==i[d]);return c!==-1?(e=l[c],t=i[c],e.index-t.index):l.findIndex(o=>o===t)>=0?1:(i.findIndex(o=>o===e)>=0,-1)}function ge(n,e){let t=[],l=e;for(;l?.parentKey!=null;)l=n.getItem(l.parentKey),l&&t.unshift(l);return t}const tt=a.createContext(null),Re={CollectionRoot({collection:n,renderDropIndicator:e}){return Ke(n,null,e)},CollectionBranch({collection:n,parent:e,renderDropIndicator:t}){return Ke(n,e,t)}};function Ke(n,e,t){return Ue.$e948873055cbafe4$export$727c8fc270210f13({items:e?n.getChildren(e.key):n,dependencies:[t],children(l){let i=l.render(l);return!t||l.type!=="item"?i:a.createElement(a.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),i,lt(n,l,t))}})}function lt(n,e,t){let l=e.key,i=n.getKeyAfter(l),c=i!=null?n.getItem(i):null;for(;c!=null&&c.type!=="item";)i=n.getKeyAfter(c.key),c=i!=null?n.getItem(i):null;let o=e.nextKey!=null?n.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?n.getItem(o.nextKey):null;let d=[];if(o==null){let f=e;for(;f&&(!c||f.parentKey!==c.parentKey&&c.level<f.level);){let g=t({type:"item",key:f.key,dropPosition:"after"});a.isValidElement(g)&&d.push(a.cloneElement(g,{key:`${f.key}-after`})),f=f.parentKey!=null?n.getItem(f.parentKey):null}}return d}const nt=a.createContext(Re);function it(n){return a.useMemo(()=>n!=null?new Set([n]):null,[n])}class C extends Set{constructor(e,t,l){super(e),e instanceof C?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function rt(n,e){if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}function ot(n){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:i="toggle",disabledBehavior:c="all"}=n,o=a.useRef(!1),[,d]=a.useState(!1),f=a.useRef(null),g=a.useRef(null),[,I]=a.useState(null),K=a.useMemo(()=>Se(n.selectedKeys),[n.selectedKeys]),$=a.useMemo(()=>Se(n.defaultSelectedKeys,new C),[n.defaultSelectedKeys]),[S,b]=ze.$458b0a5536c1a7cf$export$40bfa8c7b0832715(K,$,n.onSelectionChange),A=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,F]=a.useState(i);i==="replace"&&y==="toggle"&&typeof S=="object"&&S.size===0&&F("replace");let h=a.useRef(i);return a.useEffect(()=>{i!==h.current&&(F(i),h.current=i)},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:F,get isFocused(){return o.current},setFocused(v){o.current=v,d(v)},get focusedKey(){return f.current},get childFocusStrategy(){return g.current},setFocusedKey(v,x="first"){f.current=v,g.current=x,I(v)},selectedKeys:S,setSelectedKeys(v){(l||!rt(v,S))&&b(v)},disabledKeys:A,disabledBehavior:c}}function Se(n,e){return n?n==="all"?"all":new C(n):e}class pe{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&oe(this.collection,i,e)<0)&&(e=i)}var t;return(t=e?.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&oe(this.collection,i,e)>0)&&(e=i)}var t;return(t=e?.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new C([t],t,t);else{let o=this.state.selectedKeys;var i;let d=(i=o.anchorKey)!==null&&i!==void 0?i:t;l=new C(o,d,t);var c;for(let f of this.getKeyRange(d,(c=o.currentKey)!==null&&c!==void 0?c:t))l.delete(f);for(let f of this.getKeyRange(t,d))this.canSelectItem(f)&&l.add(f)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),i=this.collection.getItem(t);return l&&i?oe(this.collection,l,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],c=e;for(;c!=null;){let o=this.collection.getItem(c);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(c),c===t)return i;c=this.collection.getKeyAfter(c)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new C(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new C([t],t,t):new C;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new C;for(let l of e){let i=this.getKey(l);if(i!=null&&(t.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var i;let o=this.collection.getItem(l);o?.type==="item"&&e.push(l);var c;o?.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&t((c=(i=Ce(Ae(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&c!==void 0?c:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new C)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new pe(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var i;this.allowsCellSelection=(i=l?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=l?.layoutDelegate||null}}exports.$21f1aa98acb08317$export$16792effe837dba3=H;exports.$21f1aa98acb08317$export$c57958e35f31ed73=He;exports.$55f9b1ae81f22853$export$2b35b76d2e30e129=de;exports.$55f9b1ae81f22853$export$6c5dc7e81d2cc29a=Te;exports.$55f9b1ae81f22853$export$759df0d867455a91=ke;exports.$55f9b1ae81f22853$export$76e4e37e5339496d=ae;exports.$5671b20cf9b562b2$export$447a38995de2c711=Fe;exports.$5671b20cf9b562b2$export$831c820ad60f9d12=Pe;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=nt;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=it;exports.$7135fc7d473fd974$export$a164736487e3f0ae=Re;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=tt;exports.$7613b1592d41b092$export$6cd28814d92fa9c9=_e;exports.$7af3f5b51489e0b5$export$253fe78d46329472=ot;exports.$880e95eb8b93ba9a$export$ecf600387e221c37=Qe;exports.$8a26561d2877236e$export$c24ed0104d07eab9=Ee;exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c=Je;exports.$c5a24bc478652b5f$export$1005530eda016c13=Ae;exports.$c5a24bc478652b5f$export$5f3398f8733f90e2=Me;exports.$c5a24bc478652b5f$export$7475b2c64539e4cf=et;exports.$c5a24bc478652b5f$export$fbdeaa6a76694f71=Ce;exports.$d496c0a20b6e58ec$export$6c8a5aaad13c9852=pe;exports.$fb3050f43d946246$export$e32c88dfddc6e1d8=Ie;exports.$feb5ffebff200149$export$c3d8340acf92597f=Z;
2
- //# sourceMappingURL=SelectionManager-CCETIs4l.cjs.js.map
1
+ "use strict";const a=require("react"),J=require("./utils-Bv1frUk6.cjs.js"),D=require("./mergeProps-CxnHrnow.cjs.js"),se=require("./focusWithoutScrolling-BlyUcXdY.cjs.js"),ce=require("./openLink-DkCJYbzq.cjs.js"),j=require("./useEvent-D0r31Azw.cjs.js"),Y=require("./scrollIntoView-BE5bh59O.cjs.js"),Be=require("./FocusScope-vAM-Q62b.cjs.js"),ye=require("./useFocusVisible-DfE3Z6QO.cjs.js"),ue=require("./focusSafely-Dvxmj9Tu.cjs.js"),Le=require("react-dom"),Oe=require("./context-CyT9C4U4.cjs.js"),xe=require("./platform-BDLy2vDY.cjs.js"),we=require("./usePress-MEEljcWP.cjs.js"),qe=require("./useGlobalListeners-CwGh-cDn.cjs.js"),Ue=require("./CollectionBuilder-DjRx57vm.cjs.js"),ze=require("./useControlledState-D0L6S_5r.cjs.js");function he(n,e){const t=a.useRef(!0),l=a.useRef(null);D.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>(t.current=!0,()=>{t.current=!1}),[]),D.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{t.current?t.current=!1:(!l.current||e.some((i,c)=>!Object.is(i,l[c])))&&n(),l.current=e},e)}function H(n){return xe.$c87311424ea30a05$export$9ac100e40613ea10()?n.metaKey:n.ctrlKey}const Ve=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function He(n){return n instanceof HTMLInputElement&&!Ve.has(n.type)||n instanceof HTMLTextAreaElement||n instanceof HTMLElement&&n.isContentEditable}const Fe="react-aria-clear-focus",Pe="react-aria-focus",We=500;function Ee(n){let{isDisabled:e,onLongPressStart:t,onLongPressEnd:l,onLongPress:i,threshold:c=We,accessibilityDescription:o}=n;const d=a.useRef(void 0);let{addGlobalListener:f,removeGlobalListener:g}=qe.$03deb23ff14920c4$export$4eaf04e54aa8eed6(),{pressProps:I}=we.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:e,onPressStart($){if($.continuePropagation(),($.pointerType==="mouse"||$.pointerType==="touch")&&(t&&t({...$,type:"longpressstart"}),d.current=setTimeout(()=>{$.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),J.$431fbd86ca7dc216$export$b204af158042fbac($.target).activeElement!==$.target&&se.$7215afc6de606d6b$export$de79e2c695e052f3($.target),i&&i({...$,type:"longpress"}),d.current=void 0},c),$.pointerType==="touch")){let S=b=>{b.preventDefault()};f($.target,"contextmenu",S,{once:!0}),f(window,"pointerup",()=>{setTimeout(()=>{g($.target,"contextmenu",S)},30)},{once:!0})}},onPressEnd($){d.current&&clearTimeout(d.current),l&&($.pointerType==="mouse"||$.pointerType==="touch")&&l({...$,type:"longpressend"})}}),K=Y.$ef06256079686ba0$export$f8aeda7b10753fa1(i&&!e?o:void 0);return{longPressProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(I,K)}}function ae(n){let e=ke(J.$431fbd86ca7dc216$export$b204af158042fbac(n));e!==n&&(e&&Te(e,n),n&&de(n,e))}function Te(n,e){n.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}function de(n,e){n.dispatchEvent(new FocusEvent("focus",{relatedTarget:e})),n.dispatchEvent(new FocusEvent("focusin",{bubbles:!0,relatedTarget:e}))}function ke(n){let e=J.$d4ee10de306f2510$export$cd4e5573fbe2b576(n),t=e?.getAttribute("aria-activedescendant");return t&&n.getElementById(t)||e}function fe(n){return xe.$c87311424ea30a05$export$e1865c3bedcd822b()?n.altKey:n.ctrlKey}function Z(n,e){var t,l;let i=`[data-key="${CSS.escape(String(e))}"]`,c=(t=n.current)===null||t===void 0?void 0:t.dataset.collection;return c&&(i=`[data-collection="${CSS.escape(c)}"]${i}`),(l=n.current)===null||l===void 0?void 0:l.querySelector(i)}const De=new WeakMap;function Ge(n){let e=D.$bdb11010cef70236$export$f680877a34711e37();return De.set(n,e),e}function je(n){return De.get(n)}const Ye=1e3;function Ie(n){let{keyboardDelegate:e,selectionManager:t,onTypeSelect:l}=n,i=a.useRef({search:"",timeout:void 0}).current,c=o=>{let d=Ze(o.key);if(!(!d||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target)||i.search.length===0&&d===" ")){if(d===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=d,e.getKeyForSearch!=null){let f=e.getKeyForSearch(i.search,t.focusedKey);f==null&&(f=e.getKeyForSearch(i.search)),f!=null&&(t.setFocusedKey(f),l&&l(f))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},Ye)}};return{typeSelectProps:{onKeyDownCapture:e.getKeyForSearch?c:void 0}}}function Ze(n){return n.length===1||!/^[A-Z]/i.test(n)?n:""}function Je(n){let{selectionManager:e,keyboardDelegate:t,ref:l,autoFocus:i=!1,shouldFocusWrap:c=!1,disallowEmptySelection:o=!1,disallowSelectAll:d=!1,escapeKeyBehavior:f="clearSelection",selectOnFocus:g=e.selectionBehavior==="replace",disallowTypeAhead:I=!1,shouldUseVirtualFocus:K,allowsTabNavigation:$=!1,isVirtualized:S,scrollRef:b=l,linkBehavior:A="action"}=n,{direction:y}=Oe.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),F=ce.$ea8dcbcb9ea1b556$export$9a302a45f65d0572(),h=s=>{var p;if(s.altKey&&s.key==="Tab"&&s.preventDefault(),!(!((p=l.current)===null||p===void 0)&&p.contains(s.target)))return;const m=(u,z)=>{if(u!=null){if(e.isLink(u)&&A==="selection"&&g&&!fe(s)){Le.flushSync(()=>{e.setFocusedKey(u,z)});let V=Z(l,u),$e=e.getItemProps(u);V&&F.open(V,s,$e.href,$e.routerOptions);return}if(e.setFocusedKey(u,z),e.isLink(u)&&A==="override")return;s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):g&&!fe(s)&&e.replaceSelection(u)}};switch(s.key){case"ArrowDown":if(t.getKeyBelow){var r,w,T;let u=e.focusedKey!=null?(r=t.getKeyBelow)===null||r===void 0?void 0:r.call(t,e.focusedKey):(w=t.getFirstKey)===null||w===void 0?void 0:w.call(t);u==null&&c&&(u=(T=t.getFirstKey)===null||T===void 0?void 0:T.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u))}break;case"ArrowUp":if(t.getKeyAbove){var B,q,N;let u=e.focusedKey!=null?(B=t.getKeyAbove)===null||B===void 0?void 0:B.call(t,e.focusedKey):(q=t.getLastKey)===null||q===void 0?void 0:q.call(t);u==null&&c&&(u=(N=t.getLastKey)===null||N===void 0?void 0:N.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u))}break;case"ArrowLeft":if(t.getKeyLeftOf){var _,ee,te;let u=e.focusedKey!=null?(_=t.getKeyLeftOf)===null||_===void 0?void 0:_.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(ee=t.getFirstKey)===null||ee===void 0?void 0:ee.call(t,e.focusedKey):(te=t.getLastKey)===null||te===void 0?void 0:te.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u,y==="rtl"?"first":"last"))}break;case"ArrowRight":if(t.getKeyRightOf){var le,ne,ie;let u=e.focusedKey!=null?(le=t.getKeyRightOf)===null||le===void 0?void 0:le.call(t,e.focusedKey):null;u==null&&c&&(u=y==="rtl"?(ne=t.getLastKey)===null||ne===void 0?void 0:ne.call(t,e.focusedKey):(ie=t.getFirstKey)===null||ie===void 0?void 0:ie.call(t,e.focusedKey)),u!=null&&(s.preventDefault(),m(u,y==="rtl"?"last":"first"))}break;case"Home":if(t.getFirstKey){if(e.focusedKey===null&&s.shiftKey)return;s.preventDefault();let u=t.getFirstKey(e.focusedKey,H(s));e.setFocusedKey(u),u!=null&&(H(s)&&s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):g&&e.replaceSelection(u))}break;case"End":if(t.getLastKey){if(e.focusedKey===null&&s.shiftKey)return;s.preventDefault();let u=t.getLastKey(e.focusedKey,H(s));e.setFocusedKey(u),u!=null&&(H(s)&&s.shiftKey&&e.selectionMode==="multiple"?e.extendSelection(u):g&&e.replaceSelection(u))}break;case"PageDown":if(t.getKeyPageBelow&&e.focusedKey!=null){let u=t.getKeyPageBelow(e.focusedKey);u!=null&&(s.preventDefault(),m(u))}break;case"PageUp":if(t.getKeyPageAbove&&e.focusedKey!=null){let u=t.getKeyPageAbove(e.focusedKey);u!=null&&(s.preventDefault(),m(u))}break;case"a":H(s)&&e.selectionMode==="multiple"&&d!==!0&&(s.preventDefault(),e.selectAll());break;case"Escape":f==="clearSelection"&&!o&&e.selectedKeys.size!==0&&(s.stopPropagation(),s.preventDefault(),e.clearSelection());break;case"Tab":if(!$){if(s.shiftKey)l.current.focus();else{let u=Be.$9bf71ea28793e738$export$2d6ec8fc375ceafa(l.current,{tabbable:!0}),z,V;do V=u.lastChild(),V&&(z=V);while(V);z&&!z.contains(document.activeElement)&&se.$7215afc6de606d6b$export$de79e2c695e052f3(z)}break}}},v=a.useRef({top:0,left:0});j.$e9faafb641e167db$export$90fc3a17d93f704c(b,"scroll",S?void 0:()=>{var s,p,m,r;v.current={top:(m=(s=b.current)===null||s===void 0?void 0:s.scrollTop)!==null&&m!==void 0?m:0,left:(r=(p=b.current)===null||p===void 0?void 0:p.scrollLeft)!==null&&r!==void 0?r:0}});let x=s=>{if(e.isFocused){s.currentTarget.contains(s.target)||e.setFocused(!1);return}if(s.currentTarget.contains(s.target)){if(e.setFocused(!0),e.focusedKey==null){var p,m;let T=q=>{q!=null&&(e.setFocusedKey(q),g&&!e.isSelected(q)&&e.replaceSelection(q))},B=s.relatedTarget;var r,w;B&&s.currentTarget.compareDocumentPosition(B)&Node.DOCUMENT_POSITION_FOLLOWING?T((r=e.lastSelectedKey)!==null&&r!==void 0?r:(p=t.getLastKey)===null||p===void 0?void 0:p.call(t)):T((w=e.firstSelectedKey)!==null&&w!==void 0?w:(m=t.getFirstKey)===null||m===void 0?void 0:m.call(t))}else!S&&b.current&&(b.current.scrollTop=v.current.top,b.current.scrollLeft=v.current.left);if(e.focusedKey!=null&&b.current){let T=Z(l,e.focusedKey);T instanceof HTMLElement&&(!T.contains(document.activeElement)&&!K&&se.$7215afc6de606d6b$export$de79e2c695e052f3(T),ye.$507fabe10e71c6fb$export$630ff653c5ada6a9()==="keyboard"&&Y.$2f04cbc44ee30ce0$export$c826860796309d1b(T,{containingElement:l.current}))}}},L=s=>{s.currentTarget.contains(s.relatedTarget)||e.setFocused(!1)},k=a.useRef(!1);j.$e9faafb641e167db$export$90fc3a17d93f704c(l,Pe,K?s=>{let{detail:p}=s;s.stopPropagation(),e.setFocused(!0),p?.focusStrategy==="first"&&(k.current=!0)}:void 0);let M=D.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{var s,p;let m=(p=(s=t.getFirstKey)===null||s===void 0?void 0:s.call(t))!==null&&p!==void 0?p:null;if(m==null){let r=J.$d4ee10de306f2510$export$cd4e5573fbe2b576();ae(l.current),de(r,null),e.collection.size>0&&(k.current=!1)}else e.setFocusedKey(m),k.current=!1});he(()=>{k.current&&M()},[e.collection,M]);let E=D.$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{e.collection.size>0&&(k.current=!1)});he(()=>{E()},[e.focusedKey,E]),j.$e9faafb641e167db$export$90fc3a17d93f704c(l,Fe,K?s=>{var p;s.stopPropagation(),e.setFocused(!1),!((p=s.detail)===null||p===void 0)&&p.clearFocusKey&&e.setFocusedKey(null)}:void 0);const W=a.useRef(i),U=a.useRef(!1);a.useEffect(()=>{if(W.current){var s,p;let w=null;var m;i==="first"&&(w=(m=(s=t.getFirstKey)===null||s===void 0?void 0:s.call(t))!==null&&m!==void 0?m:null);var r;i==="last"&&(w=(r=(p=t.getLastKey)===null||p===void 0?void 0:p.call(t))!==null&&r!==void 0?r:null);let T=e.selectedKeys;if(T.size){for(let B of T)if(e.canSelectItem(B)){w=B;break}}e.setFocused(!0),e.setFocusedKey(w),w==null&&!K&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),e.collection.size>0&&(W.current=!1,U.current=!0)}});let O=a.useRef(e.focusedKey),R=a.useRef(null);a.useEffect(()=>{if(e.isFocused&&e.focusedKey!=null&&(e.focusedKey!==O.current||U.current)&&b.current&&l.current){let s=ye.$507fabe10e71c6fb$export$630ff653c5ada6a9(),p=Z(l,e.focusedKey);if(!(p instanceof HTMLElement))return;(s==="keyboard"||U.current)&&(R.current&&cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{b.current&&(Y.$2f04cbc44ee30ce0$export$53a0910f038337bd(b.current,p),s!=="virtual"&&Y.$2f04cbc44ee30ce0$export$c826860796309d1b(p,{containingElement:l.current}))}))}!K&&e.isFocused&&e.focusedKey==null&&O.current!=null&&l.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(l.current),O.current=e.focusedKey,U.current=!1}),a.useEffect(()=>()=>{R.current&&cancelAnimationFrame(R.current)},[]),j.$e9faafb641e167db$export$90fc3a17d93f704c(l,"react-aria-focus-scope-restore",s=>{s.preventDefault(),e.setFocused(!0)});let P={onKeyDown:h,onFocus:x,onBlur:L,onMouseDown(s){b.current===s.target&&s.preventDefault()}},{typeSelectProps:Q}=Ie({keyboardDelegate:t,selectionManager:e});I||(P=D.$3ef42575df84b30b$export$9d1611c77c2fe928(Q,P));let G;K||(G=e.focusedKey==null?0:-1);let X=Ge(e.collection);return{collectionProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{tabIndex:G,"data-collection":X})}}function Qe(n){let{id:e,selectionManager:t,key:l,ref:i,shouldSelectOnPressUp:c,shouldUseVirtualFocus:o,focus:d,isDisabled:f,onAction:g,allowsDifferentPressOrigin:I,linkBehavior:K="action"}=n,$=ce.$ea8dcbcb9ea1b556$export$9a302a45f65d0572();e=D.$bdb11010cef70236$export$f680877a34711e37(e);let S=r=>{if(r.pointerType==="keyboard"&&fe(r))t.toggleSelection(l);else{if(t.selectionMode==="none")return;if(t.isLink(l)){if(K==="selection"&&i.current){let w=t.getItemProps(l);$.open(i.current,r,w.href,w.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(K==="override"||K==="none")return}t.selectionMode==="single"?t.isSelected(l)&&!t.disallowEmptySelection?t.toggleSelection(l):t.replaceSelection(l):r&&r.shiftKey?t.extendSelection(l):t.selectionBehavior==="toggle"||r&&(H(r)||r.pointerType==="touch"||r.pointerType==="virtual")?t.toggleSelection(l):t.replaceSelection(l)}};a.useEffect(()=>{l===t.focusedKey&&t.isFocused&&(o?ae(i.current):d?d():document.activeElement!==i.current&&i.current&&ue.$3ad3f6e1647bc98d$export$80f3e147d781571c(i.current))},[i,l,t.focusedKey,t.childFocusStrategy,t.isFocused,o]),f=f||t.isDisabled(l);let b={};!o&&!f?b={tabIndex:l===t.focusedKey?0:-1,onFocus(r){r.target===i.current&&t.setFocusedKey(l)}}:f&&(b.onMouseDown=r=>{r.preventDefault()});let A=t.isLink(l)&&K==="override",y=g&&n.UNSTABLE_itemBehavior==="action",F=t.isLink(l)&&K!=="selection"&&K!=="none",h=!f&&t.canSelectItem(l)&&!A&&!y,v=(g||F)&&!f,x=v&&(t.selectionBehavior==="replace"?!h:!h||t.isEmpty),L=v&&h&&t.selectionBehavior==="replace",k=x||L,M=a.useRef(null),E=k&&h,W=a.useRef(!1),U=a.useRef(!1),O=t.getItemProps(l),R=r=>{if(g){var w;g(),(w=i.current)===null||w===void 0||w.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}F&&i.current&&$.open(i.current,r,O.href,O.routerOptions)},P={ref:i};if(c?(P.onPressStart=r=>{M.current=r.pointerType,W.current=E,r.pointerType==="keyboard"&&(!k||ve())&&S(r)},I?(P.onPressUp=x?void 0:r=>{r.pointerType==="mouse"&&h&&S(r)},P.onPress=x?R:r=>{r.pointerType!=="keyboard"&&r.pointerType!=="mouse"&&h&&S(r)}):P.onPress=r=>{if(x||L&&r.pointerType!=="mouse"){if(r.pointerType==="keyboard"&&!be())return;R(r)}else r.pointerType!=="keyboard"&&h&&S(r)}):(P.onPressStart=r=>{M.current=r.pointerType,W.current=E,U.current=x,h&&(r.pointerType==="mouse"&&!x||r.pointerType==="keyboard"&&(!v||ve()))&&S(r)},P.onPress=r=>{(r.pointerType==="touch"||r.pointerType==="pen"||r.pointerType==="virtual"||r.pointerType==="keyboard"&&k&&be()||r.pointerType==="mouse"&&U.current)&&(k?R(r):h&&S(r))}),b["data-collection"]=je(t.collection),b["data-key"]=l,P.preventFocusOnPress=o,o&&(P=D.$3ef42575df84b30b$export$9d1611c77c2fe928(P,{onPressStart(r){r.pointerType!=="touch"&&(t.setFocused(!0),t.setFocusedKey(l))},onPress(r){r.pointerType==="touch"&&(t.setFocused(!0),t.setFocusedKey(l))}})),O)for(let r of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])O[r]&&(P[r]=D.$ff5963eb1fccf552$export$e08e3b67e392101e(P[r],O[r]));let{pressProps:Q,isPressed:G}=we.$f6c31cce2adf654f$export$45712eceda6fad21(P),X=L?r=>{M.current==="mouse"&&(r.stopPropagation(),r.preventDefault(),R(r))}:void 0,{longPressProps:s}=Ee({isDisabled:!E,onLongPress(r){r.pointerType==="touch"&&(S(r),t.setSelectionBehavior("toggle"))}}),p=r=>{M.current==="touch"&&W.current&&r.preventDefault()},m=K!=="none"&&t.isLink(l)?r=>{ce.$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening||r.preventDefault()}:void 0;return{itemProps:D.$3ef42575df84b30b$export$9d1611c77c2fe928(b,h||x||o&&!f?Q:{},E?s:{},{onDoubleClick:X,onDragStartCapture:p,onClick:m,id:e},o?{onMouseDown:r=>r.preventDefault()}:void 0),isPressed:G,isSelected:t.isSelected(l),isFocused:t.isFocused&&t.focusedKey===l,isDisabled:f,allowsSelection:h,hasAction:k}}function be(){let n=window.event;return n?.key==="Enter"}function ve(){let n=window.event;return n?.key===" "||n?.code==="Space"}class Xe{build(e,t){return this.context=t,me(()=>this.iterateCollection(e))}*iterateCollection(e){let{children:t,items:l}=e;if(a.isValidElement(t)&&t.type===a.Fragment)yield*this.iterateCollection({children:t.props.children,items:l});else if(typeof t=="function"){if(!l)throw new Error("props.children was a function but props.items is missing");let i=0;for(let c of l)yield*this.getFullNode({value:c,index:i},{renderer:t}),i++}else{let i=[];a.Children.forEach(t,o=>{o&&i.push(o)});let c=0;for(let o of i){let d=this.getFullNode({element:o,index:c},{});for(let f of d)c++,yield f}}}getKey(e,t,l,i){if(e.key!=null)return e.key;if(t.type==="cell"&&t.key!=null)return`${i}${t.key}`;let c=t.value;if(c!=null){var o;let d=(o=c.key)!==null&&o!==void 0?o:c.id;if(d==null)throw new Error("No key found for item");return d}return i?`${i}.${t.index}`:`$.${t.index}`}getChildState(e,t){return{renderer:t.renderer||e.renderer}}*getFullNode(e,t,l,i){if(a.isValidElement(e.element)&&e.element.type===a.Fragment){let y=[];a.Children.forEach(e.element.props.children,h=>{y.push(h)});var c;let F=(c=e.index)!==null&&c!==void 0?c:0;for(const h of y)yield*this.getFullNode({element:h,index:F++},t,l,i);return}let o=e.element;if(!o&&e.value&&t&&t.renderer){let y=this.cache.get(e.value);if(y&&(!y.shouldInvalidate||!y.shouldInvalidate(this.context))){y.index=e.index,y.parentKey=i?i.key:null,yield y;return}o=t.renderer(e.value)}if(a.isValidElement(o)){let y=o.type;if(typeof y!="function"&&typeof y.getCollectionNode!="function"){let x=o.type;throw new Error(`Unknown element <${x}> in collection.`)}let F=y.getCollectionNode(o.props,this.context);var d;let h=(d=e.index)!==null&&d!==void 0?d:0,v=F.next();for(;!v.done&&v.value;){let x=v.value;e.index=h;var f;let L=(f=x.key)!==null&&f!==void 0?f:null;L==null&&(L=x.element?null:this.getKey(o,e,t,l));let M=[...this.getFullNode({...x,key:L,index:h,wrapper:Ne(e.wrapper,x.wrapper)},this.getChildState(t,x),l?`${l}${o.key}`:o.key,i)];for(let E of M){var g,I;E.value=(I=(g=x.value)!==null&&g!==void 0?g:e.value)!==null&&I!==void 0?I:null,E.value&&this.cache.set(E.value,E);var K;if(e.type&&E.type!==e.type)throw new Error(`Unsupported type <${re(E.type)}> in <${re((K=i?.type)!==null&&K!==void 0?K:"unknown parent type")}>. Only <${re(e.type)}> is supported.`);h++,yield E}v=F.next(M)}return}if(e.key==null||e.type==null)return;let $=this;var S,b;let A={type:e.type,props:e.props,key:e.key,parentKey:i?i.key:null,value:(S=e.value)!==null&&S!==void 0?S:null,level:i?i.level+1:0,index:e.index,rendered:e.rendered,textValue:(b=e.textValue)!==null&&b!==void 0?b:"","aria-label":e["aria-label"],wrapper:e.wrapper,shouldInvalidate:e.shouldInvalidate,hasChildNodes:e.hasChildNodes||!1,childNodes:me(function*(){if(!e.hasChildNodes||!e.childNodes)return;let y=0;for(let F of e.childNodes()){F.key!=null&&(F.key=`${A.key}${F.key}`);let h=$.getFullNode({...F,index:y},$.getChildState(t,F),A.key,A);for(let v of h)y++,yield v}})};yield A}constructor(){this.cache=new WeakMap}}function me(n){let e=[],t=null;return{*[Symbol.iterator](){for(let l of e)yield l;t||(t=n());for(let l of t)e.push(l),yield l}}}function Ne(n,e){if(n&&e)return t=>n(e(t));if(n)return n;if(e)return e}function re(n){return n[0].toUpperCase()+n.slice(1)}function _e(n,e,t){let l=a.useMemo(()=>new Xe,[]),{children:i,items:c,collection:o}=n;return a.useMemo(()=>{if(o)return o;let f=l.build({children:i,items:c},t);return e(f)},[l,i,c,o,t,e])}function Ae(n,e){return typeof e.getChildren=="function"?e.getChildren(n.key):n.childNodes}function Ce(n){return Me(n,0)}function Me(n,e){if(e<0)return;let t=0;for(let l of n){if(t===e)return l;t++}}function et(n){let e;for(let t of n)e=t;return e}function oe(n,e,t){if(e.parentKey===t.parentKey)return e.index-t.index;let l=[...ge(n,e),e],i=[...ge(n,t),t],c=l.slice(0,i.length).findIndex((o,d)=>o!==i[d]);return c!==-1?(e=l[c],t=i[c],e.index-t.index):l.findIndex(o=>o===t)>=0?1:(i.findIndex(o=>o===e)>=0,-1)}function ge(n,e){let t=[],l=e;for(;l?.parentKey!=null;)l=n.getItem(l.parentKey),l&&t.unshift(l);return t}const tt=a.createContext(null),Re={CollectionRoot({collection:n,renderDropIndicator:e}){return Ke(n,null,e)},CollectionBranch({collection:n,parent:e,renderDropIndicator:t}){return Ke(n,e,t)}};function Ke(n,e,t){return Ue.$e948873055cbafe4$export$727c8fc270210f13({items:e?n.getChildren(e.key):n,dependencies:[t],children(l){let i=l.render(l);return!t||l.type!=="item"?i:a.createElement(a.Fragment,null,t({type:"item",key:l.key,dropPosition:"before"}),i,lt(n,l,t))}})}function lt(n,e,t){let l=e.key,i=n.getKeyAfter(l),c=i!=null?n.getItem(i):null;for(;c!=null&&c.type!=="item";)i=n.getKeyAfter(c.key),c=i!=null?n.getItem(i):null;let o=e.nextKey!=null?n.getItem(e.nextKey):null;for(;o!=null&&o.type!=="item";)o=o.nextKey!=null?n.getItem(o.nextKey):null;let d=[];if(o==null){let f=e;for(;f&&(!c||f.parentKey!==c.parentKey&&c.level<f.level);){let g=t({type:"item",key:f.key,dropPosition:"after"});a.isValidElement(g)&&d.push(a.cloneElement(g,{key:`${f.key}-after`})),f=f.parentKey!=null?n.getItem(f.parentKey):null}}return d}const nt=a.createContext(Re);function it(n){return a.useMemo(()=>n!=null?new Set([n]):null,[n])}class C extends Set{constructor(e,t,l){super(e),e instanceof C?(this.anchorKey=t??e.anchorKey,this.currentKey=l??e.currentKey):(this.anchorKey=t??null,this.currentKey=l??null)}}function rt(n,e){if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}function ot(n){let{selectionMode:e="none",disallowEmptySelection:t=!1,allowDuplicateSelectionEvents:l,selectionBehavior:i="toggle",disabledBehavior:c="all"}=n,o=a.useRef(!1),[,d]=a.useState(!1),f=a.useRef(null),g=a.useRef(null),[,I]=a.useState(null),K=a.useMemo(()=>Se(n.selectedKeys),[n.selectedKeys]),$=a.useMemo(()=>Se(n.defaultSelectedKeys,new C),[n.defaultSelectedKeys]),[S,b]=ze.$458b0a5536c1a7cf$export$40bfa8c7b0832715(K,$,n.onSelectionChange),A=a.useMemo(()=>n.disabledKeys?new Set(n.disabledKeys):new Set,[n.disabledKeys]),[y,F]=a.useState(i);i==="replace"&&y==="toggle"&&typeof S=="object"&&S.size===0&&F("replace");let h=a.useRef(i);return a.useEffect(()=>{i!==h.current&&(F(i),h.current=i)},[i]),{selectionMode:e,disallowEmptySelection:t,selectionBehavior:y,setSelectionBehavior:F,get isFocused(){return o.current},setFocused(v){o.current=v,d(v)},get focusedKey(){return f.current},get childFocusStrategy(){return g.current},setFocusedKey(v,x="first"){f.current=v,g.current=x,I(v)},selectedKeys:S,setSelectedKeys(v){(l||!rt(v,S))&&b(v)},disabledKeys:A,disabledBehavior:c}}function Se(n,e){return n?n==="all"?"all":new C(n):e}class pe{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(e){this.state.setSelectionBehavior(e)}get isFocused(){return this.state.isFocused}setFocused(e){this.state.setFocused(e)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(e,t){(e==null||this.collection.getItem(e))&&this.state.setFocusedKey(e,t)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(e){if(this.state.selectionMode==="none")return!1;let t=this.getKey(e);return t==null?!1:this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t)}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let e=this.getSelectAllKeys(),t=this.state.selectedKeys;return this._isSelectAll=e.every(l=>t.has(l)),this._isSelectAll}get firstSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&oe(this.collection,i,e)<0)&&(e=i)}var t;return(t=e?.key)!==null&&t!==void 0?t:null}get lastSelectedKey(){let e=null;for(let l of this.state.selectedKeys){let i=this.collection.getItem(l);(!e||i&&oe(this.collection,i,e)>0)&&(e=i)}var t;return(t=e?.key)!==null&&t!==void 0?t:null}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l;if(this.state.selectedKeys==="all")l=new C([t],t,t);else{let o=this.state.selectedKeys;var i;let d=(i=o.anchorKey)!==null&&i!==void 0?i:t;l=new C(o,d,t);var c;for(let f of this.getKeyRange(d,(c=o.currentKey)!==null&&c!==void 0?c:t))l.delete(f);for(let f of this.getKeyRange(t,d))this.canSelectItem(f)&&l.add(f)}this.state.setSelectedKeys(l)}getKeyRange(e,t){let l=this.collection.getItem(e),i=this.collection.getItem(t);return l&&i?oe(this.collection,l,i)<=0?this.getKeyRangeInternal(e,t):this.getKeyRangeInternal(t,e):[]}getKeyRangeInternal(e,t){var l;if(!((l=this.layoutDelegate)===null||l===void 0)&&l.getKeyRange)return this.layoutDelegate.getKeyRange(e,t);let i=[],c=e;for(;c!=null;){let o=this.collection.getItem(c);if(o&&(o.type==="item"||o.type==="cell"&&this.allowsCellSelection)&&i.push(c),c===t)return i;c=this.collection.getKeyAfter(c)}return[]}getKey(e){let t=this.collection.getItem(e);if(!t||t.type==="cell"&&this.allowsCellSelection)return e;for(;t&&t.type!=="item"&&t.parentKey!=null;)t=this.collection.getItem(t.parentKey);return!t||t.type!=="item"?null:t.key}toggleSelection(e){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(e)){this.replaceSelection(e);return}let t=this.getKey(e);if(t==null)return;let l=new C(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);l.has(t)?l.delete(t):this.canSelectItem(t)&&(l.add(t),l.anchorKey=t,l.currentKey=t),!(this.disallowEmptySelection&&l.size===0)&&this.state.setSelectedKeys(l)}replaceSelection(e){if(this.selectionMode==="none")return;let t=this.getKey(e);if(t==null)return;let l=this.canSelectItem(t)?new C([t],t,t):new C;this.state.setSelectedKeys(l)}setSelectedKeys(e){if(this.selectionMode==="none")return;let t=new C;for(let l of e){let i=this.getKey(l);if(i!=null&&(t.add(i),this.selectionMode==="single"))break}this.state.setSelectedKeys(t)}getSelectAllKeys(){let e=[],t=l=>{for(;l!=null;){if(this.canSelectItem(l)){var i;let o=this.collection.getItem(l);o?.type==="item"&&e.push(l);var c;o?.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&t((c=(i=Ce(Ae(o,this.collection)))===null||i===void 0?void 0:i.key)!==null&&c!==void 0?c:null)}l=this.collection.getKeyAfter(l)}};return t(this.collection.getFirstKey()),e}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new C)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(e,t){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(e)&&!this.disallowEmptySelection?this.toggleSelection(e):this.replaceSelection(e):this.selectionBehavior==="toggle"||t&&(t.pointerType==="touch"||t.pointerType==="virtual")?this.toggleSelection(e):this.replaceSelection(e))}isSelectionEqual(e){if(e===this.state.selectedKeys)return!0;let t=this.selectedKeys;if(e.size!==t.size)return!1;for(let l of e)if(!t.has(l))return!1;for(let l of t)if(!e.has(l))return!1;return!0}canSelectItem(e){var t;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(e))return!1;let l=this.collection.getItem(e);return!(!l||!(l==null||(t=l.props)===null||t===void 0)&&t.isDisabled||l.type==="cell"&&!this.allowsCellSelection)}isDisabled(e){var t,l;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(e)||!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.isDisabled))}isLink(e){var t,l;return!!(!((l=this.collection.getItem(e))===null||l===void 0||(t=l.props)===null||t===void 0)&&t.href)}getItemProps(e){var t;return(t=this.collection.getItem(e))===null||t===void 0?void 0:t.props}withCollection(e){return new pe(e,this.state,{allowsCellSelection:this.allowsCellSelection,layoutDelegate:this.layoutDelegate||void 0})}constructor(e,t,l){this.collection=e,this.state=t;var i;this.allowsCellSelection=(i=l?.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null,this.layoutDelegate=l?.layoutDelegate||null}}exports.$21f1aa98acb08317$export$16792effe837dba3=H;exports.$21f1aa98acb08317$export$c57958e35f31ed73=He;exports.$55f9b1ae81f22853$export$2b35b76d2e30e129=de;exports.$55f9b1ae81f22853$export$6c5dc7e81d2cc29a=Te;exports.$55f9b1ae81f22853$export$759df0d867455a91=ke;exports.$55f9b1ae81f22853$export$76e4e37e5339496d=ae;exports.$5671b20cf9b562b2$export$447a38995de2c711=Fe;exports.$5671b20cf9b562b2$export$831c820ad60f9d12=Pe;exports.$7135fc7d473fd974$export$4feb769f8ddf26c5=nt;exports.$7135fc7d473fd974$export$90e00781bc59d8f9=it;exports.$7135fc7d473fd974$export$a164736487e3f0ae=Re;exports.$7135fc7d473fd974$export$d40e14dec8b060a8=tt;exports.$7613b1592d41b092$export$6cd28814d92fa9c9=_e;exports.$7af3f5b51489e0b5$export$253fe78d46329472=ot;exports.$880e95eb8b93ba9a$export$ecf600387e221c37=Qe;exports.$8a26561d2877236e$export$c24ed0104d07eab9=Ee;exports.$ae20dd8cbca75726$export$d6daf82dcd84e87c=Je;exports.$c5a24bc478652b5f$export$1005530eda016c13=Ae;exports.$c5a24bc478652b5f$export$5f3398f8733f90e2=Me;exports.$c5a24bc478652b5f$export$7475b2c64539e4cf=et;exports.$c5a24bc478652b5f$export$fbdeaa6a76694f71=Ce;exports.$d496c0a20b6e58ec$export$6c8a5aaad13c9852=pe;exports.$fb3050f43d946246$export$e32c88dfddc6e1d8=Ie;exports.$feb5ffebff200149$export$c3d8340acf92597f=Z;
2
+ //# sourceMappingURL=SelectionManager-D9tuw16C.cjs.js.map