grep-components 2.5.2 → 2.6.0-GREPF-2577.2

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 (149) hide show
  1. package/dist/{build/components → components}/AppBar/MainAppStyles.d.ts +3 -3
  2. package/dist/index.js +1237 -1197
  3. package/dist/index.js.map +1 -1
  4. package/package.json +23 -25
  5. /package/dist/{build/assets → assets}/index.d.ts +0 -0
  6. /package/dist/{build/components → components}/AppBar/AppBar.d.ts +0 -0
  7. /package/dist/{build/components → components}/AppBar/MobileAppBar.d.ts +0 -0
  8. /package/dist/{build/components → components}/AppBar/stories/AppBarStory.stories.d.ts +0 -0
  9. /package/dist/{build/components → components}/AppBar/types.d.ts +0 -0
  10. /package/dist/{build/components → components}/AppBarNavList/MobileAppBarNavList.d.ts +0 -0
  11. /package/dist/{build/components → components}/AppBarNavList/index.d.ts +0 -0
  12. /package/dist/{build/components → components}/AppBarNavList/stories/AppBarNavList.stories.d.ts +0 -0
  13. /package/dist/{build/components → components}/AppBarNavList/styles/index.d.ts +0 -0
  14. /package/dist/{build/components → components}/AppBarProfile/index.d.ts +0 -0
  15. /package/dist/{build/components → components}/AppBarProfile/stories/AppBarProfile.stories.d.ts +0 -0
  16. /package/dist/{build/components → components}/AppBarProfile/styles/index.d.ts +0 -0
  17. /package/dist/{build/components → components}/BodyLayout/index.d.ts +0 -0
  18. /package/dist/{build/components → components}/CircularLoading/index.d.ts +0 -0
  19. /package/dist/{build/components → components}/CircularLoading/stories/CircularLoading.stories.d.ts +0 -0
  20. /package/dist/{build/components → components}/ConfirmationDialog/components/dialog.d.ts +0 -0
  21. /package/dist/{build/components → components}/ConfirmationDialog/index.d.ts +0 -0
  22. /package/dist/{build/components → components}/ConfirmationDialog/stories/dialog.stories.d.ts +0 -0
  23. /package/dist/{build/components → components}/ConfirmationDialog/styles/index.d.ts +0 -0
  24. /package/dist/{build/components → components}/ContainedLinkList/index.d.ts +0 -0
  25. /package/dist/{build/components → components}/ContainedLinkList/stories/ContainedLinkList.stories.d.ts +0 -0
  26. /package/dist/{build/components → components}/ContainedLinkList/styles/index.d.ts +0 -0
  27. /package/dist/{build/components → components}/DropdownMenu/components/collapsable-menu-item.d.ts +0 -0
  28. /package/dist/{build/components → components}/DropdownMenu/components/collapsable-menu.d.ts +0 -0
  29. /package/dist/{build/components → components}/DropdownMenu/index.d.ts +0 -0
  30. /package/dist/{build/components → components}/DropdownMenu/stories/DropDownMenu.stories.d.ts +0 -0
  31. /package/dist/{build/components → components}/DropdownMenu/styles/collapsable-menu-item.style.d.ts +0 -0
  32. /package/dist/{build/components → components}/DropdownMenu/styles/dropdown-menu.style.d.ts +0 -0
  33. /package/dist/{build/components → components}/Footer/index.d.ts +0 -0
  34. /package/dist/{build/components → components}/Footer/stories/Footer.stories.d.ts +0 -0
  35. /package/dist/{build/components → components}/Footer/styles/index.d.ts +0 -0
  36. /package/dist/{build/components → components}/GDPR/index.d.ts +0 -0
  37. /package/dist/{build/components → components}/GDPR/stories/GDPR.stories.d.ts +0 -0
  38. /package/dist/{build/components → components}/GDPR/styles/index.d.ts +0 -0
  39. /package/dist/{build/components → components}/GrepCrumbs/index.d.ts +0 -0
  40. /package/dist/{build/components → components}/GrepCrumbs/stories/GrepCrumbs.stories.d.ts +0 -0
  41. /package/dist/{build/components → components}/GrepCrumbs/styles/styles.d.ts +0 -0
  42. /package/dist/{build/components → components}/GrepDatePicker/index.d.ts +0 -0
  43. /package/dist/{build/components → components}/GrepDatePicker/stories/DatePicker.stories.d.ts +0 -0
  44. /package/dist/{build/components → components}/GrepDateRange/index.d.ts +0 -0
  45. /package/dist/{build/components → components}/GrepDateRange/stories/GrepDateRange.stories.d.ts +0 -0
  46. /package/dist/{build/components → components}/GrepDialog/dialog.d.ts +0 -0
  47. /package/dist/{build/components → components}/GrepDialog/index.d.ts +0 -0
  48. /package/dist/{build/components → components}/GrepDialog/stories/dialog.stories.d.ts +0 -0
  49. /package/dist/{build/components → components}/GrepEditor/components/buttons/InlineButton.d.ts +0 -0
  50. /package/dist/{build/components → components}/GrepEditor/components/buttons/button.d.ts +0 -0
  51. /package/dist/{build/components → components}/GrepEditor/components/buttons/index.d.ts +0 -0
  52. /package/dist/{build/components → components}/GrepEditor/components/editor.d.ts +0 -0
  53. /package/dist/{build/components → components}/GrepEditor/components/plugins/CustomHtmlExport.d.ts +0 -0
  54. /package/dist/{build/components → components}/GrepEditor/components/plugins/DisablePastePlugin.d.ts +0 -0
  55. /package/dist/{build/components → components}/GrepEditor/components/plugins/HeadingPlugin.d.ts +0 -0
  56. /package/dist/{build/components → components}/GrepEditor/components/plugins/InitialDataPlugin.d.ts +0 -0
  57. /package/dist/{build/components → components}/GrepEditor/components/plugins/PreventNewlinesPlugin.d.ts +0 -0
  58. /package/dist/{build/components → components}/GrepEditor/components/plugins/StyleWrapperPlugin.d.ts +0 -0
  59. /package/dist/{build/components → components}/GrepEditor/components/plugins/TextNodeStylingPlugin.d.ts +0 -0
  60. /package/dist/{build/components → components}/GrepEditor/components/plugins/ToolbarPlugin.d.ts +0 -0
  61. /package/dist/{build/components → components}/GrepEditor/components/utils/getDOMRangeRect.d.ts +0 -0
  62. /package/dist/{build/components → components}/GrepEditor/components/utils/getSelectedNode.d.ts +0 -0
  63. /package/dist/{build/components → components}/GrepEditor/components/utils/setFloatingElemPosition.d.ts +0 -0
  64. /package/dist/{build/components → components}/GrepEditor/entities/index.d.ts +0 -0
  65. /package/dist/{build/components → components}/GrepEditor/index.d.ts +0 -0
  66. /package/dist/{build/components → components}/GrepEditor/stories/GrepEditor.stories.d.ts +0 -0
  67. /package/dist/{build/components → components}/GrepEditor/styles/buttonStyles.d.ts +0 -0
  68. /package/dist/{build/components → components}/GrepEditor/styles/editorStyles.d.ts +0 -0
  69. /package/dist/{build/components → components}/GrepEditor/styles/index.d.ts +0 -0
  70. /package/dist/{build/components → components}/GrepInput/index.d.ts +0 -0
  71. /package/dist/{build/components → components}/GrepInput/stories/GrepInput.stories.d.ts +0 -0
  72. /package/dist/{build/components → components}/GrepSelect/index.d.ts +0 -0
  73. /package/dist/{build/components → components}/GrepSelect/stories/GrepSelect.stories.d.ts +0 -0
  74. /package/dist/{build/components → components}/GrepTable/components/GrepPaginationActions.d.ts +0 -0
  75. /package/dist/{build/components → components}/GrepTable/components/grep-table-cell.d.ts +0 -0
  76. /package/dist/{build/components → components}/GrepTable/components/grep-table-header-cell.d.ts +0 -0
  77. /package/dist/{build/components → components}/GrepTable/components/grep-table-header.d.ts +0 -0
  78. /package/dist/{build/components → components}/GrepTable/components/grep-table-pagination.d.ts +0 -0
  79. /package/dist/{build/components → components}/GrepTable/components/grep-table-placeholder.d.ts +0 -0
  80. /package/dist/{build/components → components}/GrepTable/components/grep-table-row.d.ts +0 -0
  81. /package/dist/{build/components → components}/GrepTable/index.d.ts +0 -0
  82. /package/dist/{build/components → components}/GrepTable/stories/GrepTable.stories.d.ts +0 -0
  83. /package/dist/{build/components → components}/GrepTable/styles/index.d.ts +0 -0
  84. /package/dist/{build/components → components}/GrepTableCard/index.d.ts +0 -0
  85. /package/dist/{build/components → components}/GrepTableCard/stories/GrepTableCard.stories.d.ts +0 -0
  86. /package/dist/{build/components → components}/GrepTableCard/styles/index.d.ts +0 -0
  87. /package/dist/{build/components → components}/GreyCover/index.d.ts +0 -0
  88. /package/dist/{build/components → components}/GreyCover/stories/GreyCover.stories.d.ts +0 -0
  89. /package/dist/{build/components → components}/GreyCover/styles/index.d.ts +0 -0
  90. /package/dist/{build/components → components}/InfoContainer/index.d.ts +0 -0
  91. /package/dist/{build/components → components}/InfoContainer/stories/infoContainer.stories.d.ts +0 -0
  92. /package/dist/{build/components → components}/LinkList/index.d.ts +0 -0
  93. /package/dist/{build/components → components}/LinkList/stories/LinkList.stories.d.ts +0 -0
  94. /package/dist/{build/components → components}/LoadingOverlay/index.d.ts +0 -0
  95. /package/dist/{build/components → components}/LoadingOverlay/stories/LoadingOverlay.stories.d.ts +0 -0
  96. /package/dist/{build/components → components}/MainLayout/index.d.ts +0 -0
  97. /package/dist/{build/components → components}/MainLayout/stories/MainLayout.stories.d.ts +0 -0
  98. /package/dist/{build/components → components}/NavGuard/index.d.ts +0 -0
  99. /package/dist/{build/components → components}/NavGuard/stories/NavGuard.stories.d.ts +0 -0
  100. /package/dist/{build/components → components}/OverflowTooltip/index.d.ts +0 -0
  101. /package/dist/{build/components → components}/ProfileInfo/index.d.ts +0 -0
  102. /package/dist/{build/components → components}/ProfileInfo/stories/ProfileInfo.stories.d.ts +0 -0
  103. /package/dist/{build/components → components}/ProfileInfo/styles/index.d.ts +0 -0
  104. /package/dist/{build/components → components}/SearchBar/index.d.ts +0 -0
  105. /package/dist/{build/components → components}/SearchBar/stories/SearchBar.stories.d.ts +0 -0
  106. /package/dist/{build/components → components}/SearchBar/styles/index.d.ts +0 -0
  107. /package/dist/{build/components → components}/ServiceMessage/index.d.ts +0 -0
  108. /package/dist/{build/components → components}/ServiceMessage/styles/index.d.ts +0 -0
  109. /package/dist/{build/components → components}/Sidebar/index.d.ts +0 -0
  110. /package/dist/{build/components → components}/Sidebar/stories/Sidebar.stories.d.ts +0 -0
  111. /package/dist/{build/components → components}/Sidebar/styles/index.d.ts +0 -0
  112. /package/dist/{build/components → components}/SortableTable/components/cell.d.ts +0 -0
  113. /package/dist/{build/components → components}/SortableTable/components/row.d.ts +0 -0
  114. /package/dist/{build/components → components}/SortableTable/index.d.ts +0 -0
  115. /package/dist/{build/components → components}/SortableTable/stories/SortableTable.stories.d.ts +0 -0
  116. /package/dist/{build/components → components}/SortableTable/styles/row.style.d.ts +0 -0
  117. /package/dist/{build/components → components}/ToC/components/nav-tree-node.d.ts +0 -0
  118. /package/dist/{build/components → components}/ToC/components/nav-tree.d.ts +0 -0
  119. /package/dist/{build/components → components}/ToC/components/nav.d.ts +0 -0
  120. /package/dist/{build/components → components}/ToC/context/index.d.ts +0 -0
  121. /package/dist/{build/components → components}/ToC/context/provider.d.ts +0 -0
  122. /package/dist/{build/components → components}/ToC/index.d.ts +0 -0
  123. /package/dist/{build/components → components}/ToC/stories/ToC.stories.d.ts +0 -0
  124. /package/dist/{build/components → components}/ToC/stories/_scaffold.d.ts +0 -0
  125. /package/dist/{build/components → components}/ToC/stories/_text.d.ts +0 -0
  126. /package/dist/{build/components → components}/ToC/stories/standard.d.ts +0 -0
  127. /package/dist/{build/components → components}/ToC/styles/nav-tree-node.style.d.ts +0 -0
  128. /package/dist/{build/components → components}/ToC/styles/nav-tree.style.d.ts +0 -0
  129. /package/dist/{build/components → components}/ToC/styles/nav.style.d.ts +0 -0
  130. /package/dist/{build/components → components}/ToC/utils/element-level.d.ts +0 -0
  131. /package/dist/{build/components → components}/ToC/utils/identity-element.d.ts +0 -0
  132. /package/dist/{build/components → components}/ToC/utils/normalize.d.ts +0 -0
  133. /package/dist/{build/components → components}/ToC/utils/tree-builder.d.ts +0 -0
  134. /package/dist/{build/components → components}/index.d.ts +0 -0
  135. /package/dist/{build/hooks → hooks}/index.d.ts +0 -0
  136. /package/dist/{build/hooks → hooks}/use-content-elements.d.ts +0 -0
  137. /package/dist/{build/hooks → hooks}/use-date.d.ts +0 -0
  138. /package/dist/{build/hooks → hooks}/use-debounce.d.ts +0 -0
  139. /package/dist/{build/index.d.ts → index.d.ts} +0 -0
  140. /package/dist/{build/setupTests.d.ts → setupTests.d.ts} +0 -0
  141. /package/dist/{build/stories → stories}/index.stories.d.ts +0 -0
  142. /package/dist/{build/styling → styling}/Colors/colors.d.ts +0 -0
  143. /package/dist/{build/styling → styling}/Colors/index.d.ts +0 -0
  144. /package/dist/{build/styling → styling}/hex2rgb.d.ts +0 -0
  145. /package/dist/{build/styling → styling}/index.d.ts +0 -0
  146. /package/dist/{build/styling → styling}/makeStyles.d.ts +0 -0
  147. /package/dist/{build/utils → utils}/dateHelper.d.ts +0 -0
  148. /package/dist/{build/utils → utils}/index.d.ts +0 -0
  149. /package/dist/{build/utils → utils}/keyboard.d.ts +0 -0
package/dist/index.js CHANGED
@@ -3,13 +3,13 @@ import LocalizedFormatPlugin from 'dayjs/plugin/localizedFormat';
3
3
  import isBetweenPlugin from 'dayjs/plugin/isBetween';
4
4
  import { red, pink, purple, deepPurple, indigo, blue, lightBlue, cyan, teal, green, lightGreen, lime, yellow, amber, orange, deepOrange, brown, grey, blueGrey } from '@mui/material/colors';
5
5
  import * as React from 'react';
6
- import React__default, { useRef, useMemo as useMemo$1, createContext, useContext, forwardRef, createElement, useState, useCallback as useCallback$1, useEffect, useLayoutEffect as useLayoutEffect$1 } from 'react';
6
+ import React__default, { useRef, useMemo as useMemo$1, createContext, useContext, forwardRef, createElement, useState, useCallback as useCallback$1, useEffect, useLayoutEffect } from 'react';
7
7
  import AccountCircle from '@mui/icons-material/AccountCircle';
8
8
  import ArrowDropdown from '@mui/icons-material/ArrowDropDown';
9
9
  import { Button, Box, Typography, Tabs, Tab, Collapse, MenuList, Tooltip, MenuItem as MenuItem$1, Menu as Menu$1, Container, List, ListItem, ListItemText, ListItemButton, CircularProgress, TextField, FormControl, InputLabel, Select, OutlinedInput, Input, Checkbox, FormHelperText, IconButton as IconButton$1, TableHead as TableHead$1, TableRow as TableRow$1, ToggleButtonGroup, ToggleButton, AppBar as AppBar$1, Toolbar as Toolbar$1, Divider as Divider$1, Dialog as Dialog$1, DialogTitle as DialogTitle$1, DialogContent as DialogContent$1, DialogContentText as DialogContentText$1, DialogActions as DialogActions$1 } from '@mui/material';
10
10
  import { useTheme, styled } from '@mui/material/styles';
11
11
  import { __unsafe_useEmotionCache } from '@emotion/react';
12
- import { useNavigate, NavLink, useBlocker, useLocation } from 'react-router-dom';
12
+ import { useNavigate, NavLink, useBlocker, useLocation } from 'react-router';
13
13
  import MenuIcon from '@mui/icons-material/Menu';
14
14
  import Box$1 from '@mui/material/Box';
15
15
  import IconButton from '@mui/material/IconButton';
@@ -142,130 +142,139 @@ function getDefaultExportFromCjs (x) {
142
142
 
143
143
  var Key_enum = {};
144
144
 
145
- (function (exports) {
146
- Object.defineProperty(exports, "__esModule", { value: true });
147
- (function (Key) {
148
- Key[Key["Backspace"] = 8] = "Backspace";
149
- Key[Key["Tab"] = 9] = "Tab";
150
- Key[Key["Enter"] = 13] = "Enter";
151
- Key[Key["Shift"] = 16] = "Shift";
152
- Key[Key["Ctrl"] = 17] = "Ctrl";
153
- Key[Key["Alt"] = 18] = "Alt";
154
- Key[Key["PauseBreak"] = 19] = "PauseBreak";
155
- Key[Key["CapsLock"] = 20] = "CapsLock";
156
- Key[Key["Escape"] = 27] = "Escape";
157
- Key[Key["Space"] = 32] = "Space";
158
- Key[Key["PageUp"] = 33] = "PageUp";
159
- Key[Key["PageDown"] = 34] = "PageDown";
160
- Key[Key["End"] = 35] = "End";
161
- Key[Key["Home"] = 36] = "Home";
162
- Key[Key["LeftArrow"] = 37] = "LeftArrow";
163
- Key[Key["UpArrow"] = 38] = "UpArrow";
164
- Key[Key["RightArrow"] = 39] = "RightArrow";
165
- Key[Key["DownArrow"] = 40] = "DownArrow";
166
- Key[Key["Insert"] = 45] = "Insert";
167
- Key[Key["Delete"] = 46] = "Delete";
168
- Key[Key["Zero"] = 48] = "Zero";
169
- Key[Key["ClosedParen"] = 48] = "ClosedParen";
170
- Key[Key["One"] = 49] = "One";
171
- Key[Key["ExclamationMark"] = 49] = "ExclamationMark";
172
- Key[Key["Two"] = 50] = "Two";
173
- Key[Key["AtSign"] = 50] = "AtSign";
174
- Key[Key["Three"] = 51] = "Three";
175
- Key[Key["PoundSign"] = 51] = "PoundSign";
176
- Key[Key["Hash"] = 51] = "Hash";
177
- Key[Key["Four"] = 52] = "Four";
178
- Key[Key["DollarSign"] = 52] = "DollarSign";
179
- Key[Key["Five"] = 53] = "Five";
180
- Key[Key["PercentSign"] = 53] = "PercentSign";
181
- Key[Key["Six"] = 54] = "Six";
182
- Key[Key["Caret"] = 54] = "Caret";
183
- Key[Key["Hat"] = 54] = "Hat";
184
- Key[Key["Seven"] = 55] = "Seven";
185
- Key[Key["Ampersand"] = 55] = "Ampersand";
186
- Key[Key["Eight"] = 56] = "Eight";
187
- Key[Key["Star"] = 56] = "Star";
188
- Key[Key["Asterik"] = 56] = "Asterik";
189
- Key[Key["Nine"] = 57] = "Nine";
190
- Key[Key["OpenParen"] = 57] = "OpenParen";
191
- Key[Key["A"] = 65] = "A";
192
- Key[Key["B"] = 66] = "B";
193
- Key[Key["C"] = 67] = "C";
194
- Key[Key["D"] = 68] = "D";
195
- Key[Key["E"] = 69] = "E";
196
- Key[Key["F"] = 70] = "F";
197
- Key[Key["G"] = 71] = "G";
198
- Key[Key["H"] = 72] = "H";
199
- Key[Key["I"] = 73] = "I";
200
- Key[Key["J"] = 74] = "J";
201
- Key[Key["K"] = 75] = "K";
202
- Key[Key["L"] = 76] = "L";
203
- Key[Key["M"] = 77] = "M";
204
- Key[Key["N"] = 78] = "N";
205
- Key[Key["O"] = 79] = "O";
206
- Key[Key["P"] = 80] = "P";
207
- Key[Key["Q"] = 81] = "Q";
208
- Key[Key["R"] = 82] = "R";
209
- Key[Key["S"] = 83] = "S";
210
- Key[Key["T"] = 84] = "T";
211
- Key[Key["U"] = 85] = "U";
212
- Key[Key["V"] = 86] = "V";
213
- Key[Key["W"] = 87] = "W";
214
- Key[Key["X"] = 88] = "X";
215
- Key[Key["Y"] = 89] = "Y";
216
- Key[Key["Z"] = 90] = "Z";
217
- Key[Key["LeftWindowKey"] = 91] = "LeftWindowKey";
218
- Key[Key["RightWindowKey"] = 92] = "RightWindowKey";
219
- Key[Key["SelectKey"] = 93] = "SelectKey";
220
- Key[Key["Numpad0"] = 96] = "Numpad0";
221
- Key[Key["Numpad1"] = 97] = "Numpad1";
222
- Key[Key["Numpad2"] = 98] = "Numpad2";
223
- Key[Key["Numpad3"] = 99] = "Numpad3";
224
- Key[Key["Numpad4"] = 100] = "Numpad4";
225
- Key[Key["Numpad5"] = 101] = "Numpad5";
226
- Key[Key["Numpad6"] = 102] = "Numpad6";
227
- Key[Key["Numpad7"] = 103] = "Numpad7";
228
- Key[Key["Numpad8"] = 104] = "Numpad8";
229
- Key[Key["Numpad9"] = 105] = "Numpad9";
230
- Key[Key["Multiply"] = 106] = "Multiply";
231
- Key[Key["Add"] = 107] = "Add";
232
- Key[Key["Subtract"] = 109] = "Subtract";
233
- Key[Key["DecimalPoint"] = 110] = "DecimalPoint";
234
- Key[Key["Divide"] = 111] = "Divide";
235
- Key[Key["F1"] = 112] = "F1";
236
- Key[Key["F2"] = 113] = "F2";
237
- Key[Key["F3"] = 114] = "F3";
238
- Key[Key["F4"] = 115] = "F4";
239
- Key[Key["F5"] = 116] = "F5";
240
- Key[Key["F6"] = 117] = "F6";
241
- Key[Key["F7"] = 118] = "F7";
242
- Key[Key["F8"] = 119] = "F8";
243
- Key[Key["F9"] = 120] = "F9";
244
- Key[Key["F10"] = 121] = "F10";
245
- Key[Key["F11"] = 122] = "F11";
246
- Key[Key["F12"] = 123] = "F12";
247
- Key[Key["NumLock"] = 144] = "NumLock";
248
- Key[Key["ScrollLock"] = 145] = "ScrollLock";
249
- Key[Key["SemiColon"] = 186] = "SemiColon";
250
- Key[Key["Equals"] = 187] = "Equals";
251
- Key[Key["Comma"] = 188] = "Comma";
252
- Key[Key["Dash"] = 189] = "Dash";
253
- Key[Key["Period"] = 190] = "Period";
254
- Key[Key["UnderScore"] = 189] = "UnderScore";
255
- Key[Key["PlusSign"] = 187] = "PlusSign";
256
- Key[Key["ForwardSlash"] = 191] = "ForwardSlash";
257
- Key[Key["Tilde"] = 192] = "Tilde";
258
- Key[Key["GraveAccent"] = 192] = "GraveAccent";
259
- Key[Key["OpenBracket"] = 219] = "OpenBracket";
260
- Key[Key["ClosedBracket"] = 221] = "ClosedBracket";
261
- Key[Key["Quote"] = 222] = "Quote";
262
- })(exports.Key || (exports.Key = {}));
263
- } (Key_enum));
145
+ var hasRequiredKey_enum;
146
+
147
+ function requireKey_enum () {
148
+ if (hasRequiredKey_enum) return Key_enum;
149
+ hasRequiredKey_enum = 1;
150
+ (function (exports) {
151
+ Object.defineProperty(exports, "__esModule", { value: true });
152
+ (function (Key) {
153
+ Key[Key["Backspace"] = 8] = "Backspace";
154
+ Key[Key["Tab"] = 9] = "Tab";
155
+ Key[Key["Enter"] = 13] = "Enter";
156
+ Key[Key["Shift"] = 16] = "Shift";
157
+ Key[Key["Ctrl"] = 17] = "Ctrl";
158
+ Key[Key["Alt"] = 18] = "Alt";
159
+ Key[Key["PauseBreak"] = 19] = "PauseBreak";
160
+ Key[Key["CapsLock"] = 20] = "CapsLock";
161
+ Key[Key["Escape"] = 27] = "Escape";
162
+ Key[Key["Space"] = 32] = "Space";
163
+ Key[Key["PageUp"] = 33] = "PageUp";
164
+ Key[Key["PageDown"] = 34] = "PageDown";
165
+ Key[Key["End"] = 35] = "End";
166
+ Key[Key["Home"] = 36] = "Home";
167
+ Key[Key["LeftArrow"] = 37] = "LeftArrow";
168
+ Key[Key["UpArrow"] = 38] = "UpArrow";
169
+ Key[Key["RightArrow"] = 39] = "RightArrow";
170
+ Key[Key["DownArrow"] = 40] = "DownArrow";
171
+ Key[Key["Insert"] = 45] = "Insert";
172
+ Key[Key["Delete"] = 46] = "Delete";
173
+ Key[Key["Zero"] = 48] = "Zero";
174
+ Key[Key["ClosedParen"] = 48] = "ClosedParen";
175
+ Key[Key["One"] = 49] = "One";
176
+ Key[Key["ExclamationMark"] = 49] = "ExclamationMark";
177
+ Key[Key["Two"] = 50] = "Two";
178
+ Key[Key["AtSign"] = 50] = "AtSign";
179
+ Key[Key["Three"] = 51] = "Three";
180
+ Key[Key["PoundSign"] = 51] = "PoundSign";
181
+ Key[Key["Hash"] = 51] = "Hash";
182
+ Key[Key["Four"] = 52] = "Four";
183
+ Key[Key["DollarSign"] = 52] = "DollarSign";
184
+ Key[Key["Five"] = 53] = "Five";
185
+ Key[Key["PercentSign"] = 53] = "PercentSign";
186
+ Key[Key["Six"] = 54] = "Six";
187
+ Key[Key["Caret"] = 54] = "Caret";
188
+ Key[Key["Hat"] = 54] = "Hat";
189
+ Key[Key["Seven"] = 55] = "Seven";
190
+ Key[Key["Ampersand"] = 55] = "Ampersand";
191
+ Key[Key["Eight"] = 56] = "Eight";
192
+ Key[Key["Star"] = 56] = "Star";
193
+ Key[Key["Asterik"] = 56] = "Asterik";
194
+ Key[Key["Nine"] = 57] = "Nine";
195
+ Key[Key["OpenParen"] = 57] = "OpenParen";
196
+ Key[Key["A"] = 65] = "A";
197
+ Key[Key["B"] = 66] = "B";
198
+ Key[Key["C"] = 67] = "C";
199
+ Key[Key["D"] = 68] = "D";
200
+ Key[Key["E"] = 69] = "E";
201
+ Key[Key["F"] = 70] = "F";
202
+ Key[Key["G"] = 71] = "G";
203
+ Key[Key["H"] = 72] = "H";
204
+ Key[Key["I"] = 73] = "I";
205
+ Key[Key["J"] = 74] = "J";
206
+ Key[Key["K"] = 75] = "K";
207
+ Key[Key["L"] = 76] = "L";
208
+ Key[Key["M"] = 77] = "M";
209
+ Key[Key["N"] = 78] = "N";
210
+ Key[Key["O"] = 79] = "O";
211
+ Key[Key["P"] = 80] = "P";
212
+ Key[Key["Q"] = 81] = "Q";
213
+ Key[Key["R"] = 82] = "R";
214
+ Key[Key["S"] = 83] = "S";
215
+ Key[Key["T"] = 84] = "T";
216
+ Key[Key["U"] = 85] = "U";
217
+ Key[Key["V"] = 86] = "V";
218
+ Key[Key["W"] = 87] = "W";
219
+ Key[Key["X"] = 88] = "X";
220
+ Key[Key["Y"] = 89] = "Y";
221
+ Key[Key["Z"] = 90] = "Z";
222
+ Key[Key["LeftWindowKey"] = 91] = "LeftWindowKey";
223
+ Key[Key["RightWindowKey"] = 92] = "RightWindowKey";
224
+ Key[Key["SelectKey"] = 93] = "SelectKey";
225
+ Key[Key["Numpad0"] = 96] = "Numpad0";
226
+ Key[Key["Numpad1"] = 97] = "Numpad1";
227
+ Key[Key["Numpad2"] = 98] = "Numpad2";
228
+ Key[Key["Numpad3"] = 99] = "Numpad3";
229
+ Key[Key["Numpad4"] = 100] = "Numpad4";
230
+ Key[Key["Numpad5"] = 101] = "Numpad5";
231
+ Key[Key["Numpad6"] = 102] = "Numpad6";
232
+ Key[Key["Numpad7"] = 103] = "Numpad7";
233
+ Key[Key["Numpad8"] = 104] = "Numpad8";
234
+ Key[Key["Numpad9"] = 105] = "Numpad9";
235
+ Key[Key["Multiply"] = 106] = "Multiply";
236
+ Key[Key["Add"] = 107] = "Add";
237
+ Key[Key["Subtract"] = 109] = "Subtract";
238
+ Key[Key["DecimalPoint"] = 110] = "DecimalPoint";
239
+ Key[Key["Divide"] = 111] = "Divide";
240
+ Key[Key["F1"] = 112] = "F1";
241
+ Key[Key["F2"] = 113] = "F2";
242
+ Key[Key["F3"] = 114] = "F3";
243
+ Key[Key["F4"] = 115] = "F4";
244
+ Key[Key["F5"] = 116] = "F5";
245
+ Key[Key["F6"] = 117] = "F6";
246
+ Key[Key["F7"] = 118] = "F7";
247
+ Key[Key["F8"] = 119] = "F8";
248
+ Key[Key["F9"] = 120] = "F9";
249
+ Key[Key["F10"] = 121] = "F10";
250
+ Key[Key["F11"] = 122] = "F11";
251
+ Key[Key["F12"] = 123] = "F12";
252
+ Key[Key["NumLock"] = 144] = "NumLock";
253
+ Key[Key["ScrollLock"] = 145] = "ScrollLock";
254
+ Key[Key["SemiColon"] = 186] = "SemiColon";
255
+ Key[Key["Equals"] = 187] = "Equals";
256
+ Key[Key["Comma"] = 188] = "Comma";
257
+ Key[Key["Dash"] = 189] = "Dash";
258
+ Key[Key["Period"] = 190] = "Period";
259
+ Key[Key["UnderScore"] = 189] = "UnderScore";
260
+ Key[Key["PlusSign"] = 187] = "PlusSign";
261
+ Key[Key["ForwardSlash"] = 191] = "ForwardSlash";
262
+ Key[Key["Tilde"] = 192] = "Tilde";
263
+ Key[Key["GraveAccent"] = 192] = "GraveAccent";
264
+ Key[Key["OpenBracket"] = 219] = "OpenBracket";
265
+ Key[Key["ClosedBracket"] = 221] = "ClosedBracket";
266
+ Key[Key["Quote"] = 222] = "Quote";
267
+ })(exports.Key || (exports.Key = {}));
268
+ } (Key_enum));
269
+ return Key_enum;
270
+ }
271
+
272
+ var Key_enumExports = requireKey_enum();
264
273
 
265
274
  const onActivation = (cb) => (ev) => {
266
275
  switch (ev.which) {
267
- case Key_enum.Key.Space:
268
- case Key_enum.Key.Enter:
276
+ case Key_enumExports.Key.Space:
277
+ case Key_enumExports.Key.Enter:
269
278
  cb(ev);
270
279
  break;
271
280
  }
@@ -1713,10 +1722,10 @@ const MainLayout = (props) => (React.createElement(Box, { display: "flex", flex:
1713
1722
  const CollapsableMenu = ({ children, onMenuClose, ...collapseProps }) => {
1714
1723
  const onKeyDown = (e) => {
1715
1724
  switch (e.keyCode) {
1716
- case Key_enum.Key.Escape:
1725
+ case Key_enumExports.Key.Escape:
1717
1726
  onMenuClose && onMenuClose();
1718
1727
  return;
1719
- case Key_enum.Key.LeftArrow:
1728
+ case Key_enumExports.Key.LeftArrow:
1720
1729
  onMenuClose && onMenuClose();
1721
1730
  }
1722
1731
  e.stopPropagation();
@@ -1797,7 +1806,7 @@ const CollapsableMenuItem = ({ items, onClick, children, onClose: _onclose, tool
1797
1806
  const handleKey = (e) => {
1798
1807
  if (items) {
1799
1808
  switch (e.keyCode) {
1800
- case Key_enum.Key.RightArrow:
1809
+ case Key_enumExports.Key.RightArrow:
1801
1810
  if (expand()) {
1802
1811
  e.preventDefault();
1803
1812
  e.stopPropagation();
@@ -2313,7 +2322,7 @@ const GrepTable = ({ placeholderText, dropdownItems, isRowDisabled, pagination,
2313
2322
  _openDropdown(e, row);
2314
2323
  }, onKeyDown: (e) => {
2315
2324
  switch (e.which) {
2316
- case Key_enum.Key.Enter:
2325
+ case Key_enumExports.Key.Enter:
2317
2326
  // dont show dropdown
2318
2327
  e.preventDefault();
2319
2328
  break;
@@ -2371,33 +2380,33 @@ const GrepTable = ({ placeholderText, dropdownItems, isRowDisabled, pagination,
2371
2380
  }
2372
2381
  };
2373
2382
  switch (e.keyCode) {
2374
- case Key_enum.Key.DownArrow:
2383
+ case Key_enumExports.Key.DownArrow:
2375
2384
  moveSelectedRow(1);
2376
2385
  break;
2377
- case Key_enum.Key.UpArrow:
2386
+ case Key_enumExports.Key.UpArrow:
2378
2387
  moveSelectedRow(-1);
2379
2388
  break;
2380
- case Key_enum.Key.LeftArrow:
2381
- case Key_enum.Key.PageUp:
2389
+ case Key_enumExports.Key.LeftArrow:
2390
+ case Key_enumExports.Key.PageUp:
2382
2391
  moveSelectedRow(-rowsPerPage);
2383
2392
  break;
2384
- case Key_enum.Key.RightArrow:
2385
- case Key_enum.Key.PageDown:
2393
+ case Key_enumExports.Key.RightArrow:
2394
+ case Key_enumExports.Key.PageDown:
2386
2395
  moveSelectedRow(rowsPerPage);
2387
2396
  break;
2388
- case Key_enum.Key.Home:
2397
+ case Key_enumExports.Key.Home:
2389
2398
  setSelectedRowIndex(0);
2390
2399
  break;
2391
- case Key_enum.Key.End:
2400
+ case Key_enumExports.Key.End:
2392
2401
  setSelectedRowIndex(maxIndex);
2393
2402
  break;
2394
- case Key_enum.Key.Tab:
2403
+ case Key_enumExports.Key.Tab:
2395
2404
  requestAnimationFrame(() => {
2396
2405
  // check is any children still has focus
2397
2406
  !containsFocus(tableRef.current) && setSelectedRowIndex(-1);
2398
2407
  });
2399
2408
  break;
2400
- case Key_enum.Key.Enter:
2409
+ case Key_enumExports.Key.Enter:
2401
2410
  selectedRow && _handleRowClick(selectedRow);
2402
2411
  break;
2403
2412
  }
@@ -2718,376 +2727,385 @@ const useDate = (value = null, options) => {
2718
2727
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2719
2728
  */
2720
2729
 
2721
- /** Used as the `TypeError` message for "Functions" methods. */
2722
- var FUNC_ERROR_TEXT$1 = 'Expected a function';
2730
+ var lodash_debounce;
2731
+ var hasRequiredLodash_debounce;
2723
2732
 
2724
- /** Used as references for various `Number` constants. */
2725
- var NAN$1 = 0 / 0;
2733
+ function requireLodash_debounce () {
2734
+ if (hasRequiredLodash_debounce) return lodash_debounce;
2735
+ hasRequiredLodash_debounce = 1;
2736
+ /** Used as the `TypeError` message for "Functions" methods. */
2737
+ var FUNC_ERROR_TEXT = 'Expected a function';
2726
2738
 
2727
- /** `Object#toString` result references. */
2728
- var symbolTag$1 = '[object Symbol]';
2739
+ /** Used as references for various `Number` constants. */
2740
+ var NAN = 0 / 0;
2729
2741
 
2730
- /** Used to match leading and trailing whitespace. */
2731
- var reTrim$1 = /^\s+|\s+$/g;
2742
+ /** `Object#toString` result references. */
2743
+ var symbolTag = '[object Symbol]';
2732
2744
 
2733
- /** Used to detect bad signed hexadecimal string values. */
2734
- var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
2745
+ /** Used to match leading and trailing whitespace. */
2746
+ var reTrim = /^\s+|\s+$/g;
2735
2747
 
2736
- /** Used to detect binary string values. */
2737
- var reIsBinary$1 = /^0b[01]+$/i;
2748
+ /** Used to detect bad signed hexadecimal string values. */
2749
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
2738
2750
 
2739
- /** Used to detect octal string values. */
2740
- var reIsOctal$1 = /^0o[0-7]+$/i;
2751
+ /** Used to detect binary string values. */
2752
+ var reIsBinary = /^0b[01]+$/i;
2741
2753
 
2742
- /** Built-in method references without a dependency on `root`. */
2743
- var freeParseInt$1 = parseInt;
2754
+ /** Used to detect octal string values. */
2755
+ var reIsOctal = /^0o[0-7]+$/i;
2744
2756
 
2745
- /** Detect free variable `global` from Node.js. */
2746
- var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2757
+ /** Built-in method references without a dependency on `root`. */
2758
+ var freeParseInt = parseInt;
2747
2759
 
2748
- /** Detect free variable `self`. */
2749
- var freeSelf$1 = typeof self == 'object' && self && self.Object === Object && self;
2760
+ /** Detect free variable `global` from Node.js. */
2761
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2750
2762
 
2751
- /** Used as a reference to the global object. */
2752
- var root$1 = freeGlobal$1 || freeSelf$1 || Function('return this')();
2763
+ /** Detect free variable `self`. */
2764
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
2753
2765
 
2754
- /** Used for built-in method references. */
2755
- var objectProto$1 = Object.prototype;
2766
+ /** Used as a reference to the global object. */
2767
+ var root = freeGlobal || freeSelf || Function('return this')();
2756
2768
 
2757
- /**
2758
- * Used to resolve the
2759
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2760
- * of values.
2761
- */
2762
- var objectToString$1 = objectProto$1.toString;
2769
+ /** Used for built-in method references. */
2770
+ var objectProto = Object.prototype;
2763
2771
 
2764
- /* Built-in method references for those with the same name as other `lodash` methods. */
2765
- var nativeMax$1 = Math.max,
2766
- nativeMin$1 = Math.min;
2772
+ /**
2773
+ * Used to resolve the
2774
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
2775
+ * of values.
2776
+ */
2777
+ var objectToString = objectProto.toString;
2767
2778
 
2768
- /**
2769
- * Gets the timestamp of the number of milliseconds that have elapsed since
2770
- * the Unix epoch (1 January 1970 00:00:00 UTC).
2771
- *
2772
- * @static
2773
- * @memberOf _
2774
- * @since 2.4.0
2775
- * @category Date
2776
- * @returns {number} Returns the timestamp.
2777
- * @example
2778
- *
2779
- * _.defer(function(stamp) {
2780
- * console.log(_.now() - stamp);
2781
- * }, _.now());
2782
- * // => Logs the number of milliseconds it took for the deferred invocation.
2783
- */
2784
- var now$1 = function() {
2785
- return root$1.Date.now();
2786
- };
2779
+ /* Built-in method references for those with the same name as other `lodash` methods. */
2780
+ var nativeMax = Math.max,
2781
+ nativeMin = Math.min;
2787
2782
 
2788
- /**
2789
- * Creates a debounced function that delays invoking `func` until after `wait`
2790
- * milliseconds have elapsed since the last time the debounced function was
2791
- * invoked. The debounced function comes with a `cancel` method to cancel
2792
- * delayed `func` invocations and a `flush` method to immediately invoke them.
2793
- * Provide `options` to indicate whether `func` should be invoked on the
2794
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
2795
- * with the last arguments provided to the debounced function. Subsequent
2796
- * calls to the debounced function return the result of the last `func`
2797
- * invocation.
2798
- *
2799
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
2800
- * invoked on the trailing edge of the timeout only if the debounced function
2801
- * is invoked more than once during the `wait` timeout.
2802
- *
2803
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2804
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2805
- *
2806
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2807
- * for details over the differences between `_.debounce` and `_.throttle`.
2808
- *
2809
- * @static
2810
- * @memberOf _
2811
- * @since 0.1.0
2812
- * @category Function
2813
- * @param {Function} func The function to debounce.
2814
- * @param {number} [wait=0] The number of milliseconds to delay.
2815
- * @param {Object} [options={}] The options object.
2816
- * @param {boolean} [options.leading=false]
2817
- * Specify invoking on the leading edge of the timeout.
2818
- * @param {number} [options.maxWait]
2819
- * The maximum time `func` is allowed to be delayed before it's invoked.
2820
- * @param {boolean} [options.trailing=true]
2821
- * Specify invoking on the trailing edge of the timeout.
2822
- * @returns {Function} Returns the new debounced function.
2823
- * @example
2824
- *
2825
- * // Avoid costly calculations while the window size is in flux.
2826
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2827
- *
2828
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2829
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
2830
- * 'leading': true,
2831
- * 'trailing': false
2832
- * }));
2833
- *
2834
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2835
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2836
- * var source = new EventSource('/stream');
2837
- * jQuery(source).on('message', debounced);
2838
- *
2839
- * // Cancel the trailing debounced invocation.
2840
- * jQuery(window).on('popstate', debounced.cancel);
2841
- */
2842
- function debounce$1(func, wait, options) {
2843
- var lastArgs,
2844
- lastThis,
2845
- maxWait,
2846
- result,
2847
- timerId,
2848
- lastCallTime,
2849
- lastInvokeTime = 0,
2850
- leading = false,
2851
- maxing = false,
2852
- trailing = true;
2853
-
2854
- if (typeof func != 'function') {
2855
- throw new TypeError(FUNC_ERROR_TEXT$1);
2856
- }
2857
- wait = toNumber$1(wait) || 0;
2858
- if (isObject$1(options)) {
2859
- leading = !!options.leading;
2860
- maxing = 'maxWait' in options;
2861
- maxWait = maxing ? nativeMax$1(toNumber$1(options.maxWait) || 0, wait) : maxWait;
2862
- trailing = 'trailing' in options ? !!options.trailing : trailing;
2863
- }
2864
-
2865
- function invokeFunc(time) {
2866
- var args = lastArgs,
2867
- thisArg = lastThis;
2868
-
2869
- lastArgs = lastThis = undefined;
2870
- lastInvokeTime = time;
2871
- result = func.apply(thisArg, args);
2872
- return result;
2873
- }
2783
+ /**
2784
+ * Gets the timestamp of the number of milliseconds that have elapsed since
2785
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
2786
+ *
2787
+ * @static
2788
+ * @memberOf _
2789
+ * @since 2.4.0
2790
+ * @category Date
2791
+ * @returns {number} Returns the timestamp.
2792
+ * @example
2793
+ *
2794
+ * _.defer(function(stamp) {
2795
+ * console.log(_.now() - stamp);
2796
+ * }, _.now());
2797
+ * // => Logs the number of milliseconds it took for the deferred invocation.
2798
+ */
2799
+ var now = function() {
2800
+ return root.Date.now();
2801
+ };
2874
2802
 
2875
- function leadingEdge(time) {
2876
- // Reset any `maxWait` timer.
2877
- lastInvokeTime = time;
2878
- // Start the timer for the trailing edge.
2879
- timerId = setTimeout(timerExpired, wait);
2880
- // Invoke the leading edge.
2881
- return leading ? invokeFunc(time) : result;
2882
- }
2803
+ /**
2804
+ * Creates a debounced function that delays invoking `func` until after `wait`
2805
+ * milliseconds have elapsed since the last time the debounced function was
2806
+ * invoked. The debounced function comes with a `cancel` method to cancel
2807
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
2808
+ * Provide `options` to indicate whether `func` should be invoked on the
2809
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
2810
+ * with the last arguments provided to the debounced function. Subsequent
2811
+ * calls to the debounced function return the result of the last `func`
2812
+ * invocation.
2813
+ *
2814
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
2815
+ * invoked on the trailing edge of the timeout only if the debounced function
2816
+ * is invoked more than once during the `wait` timeout.
2817
+ *
2818
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
2819
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
2820
+ *
2821
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
2822
+ * for details over the differences between `_.debounce` and `_.throttle`.
2823
+ *
2824
+ * @static
2825
+ * @memberOf _
2826
+ * @since 0.1.0
2827
+ * @category Function
2828
+ * @param {Function} func The function to debounce.
2829
+ * @param {number} [wait=0] The number of milliseconds to delay.
2830
+ * @param {Object} [options={}] The options object.
2831
+ * @param {boolean} [options.leading=false]
2832
+ * Specify invoking on the leading edge of the timeout.
2833
+ * @param {number} [options.maxWait]
2834
+ * The maximum time `func` is allowed to be delayed before it's invoked.
2835
+ * @param {boolean} [options.trailing=true]
2836
+ * Specify invoking on the trailing edge of the timeout.
2837
+ * @returns {Function} Returns the new debounced function.
2838
+ * @example
2839
+ *
2840
+ * // Avoid costly calculations while the window size is in flux.
2841
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
2842
+ *
2843
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
2844
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
2845
+ * 'leading': true,
2846
+ * 'trailing': false
2847
+ * }));
2848
+ *
2849
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
2850
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
2851
+ * var source = new EventSource('/stream');
2852
+ * jQuery(source).on('message', debounced);
2853
+ *
2854
+ * // Cancel the trailing debounced invocation.
2855
+ * jQuery(window).on('popstate', debounced.cancel);
2856
+ */
2857
+ function debounce(func, wait, options) {
2858
+ var lastArgs,
2859
+ lastThis,
2860
+ maxWait,
2861
+ result,
2862
+ timerId,
2863
+ lastCallTime,
2864
+ lastInvokeTime = 0,
2865
+ leading = false,
2866
+ maxing = false,
2867
+ trailing = true;
2868
+
2869
+ if (typeof func != 'function') {
2870
+ throw new TypeError(FUNC_ERROR_TEXT);
2871
+ }
2872
+ wait = toNumber(wait) || 0;
2873
+ if (isObject(options)) {
2874
+ leading = !!options.leading;
2875
+ maxing = 'maxWait' in options;
2876
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
2877
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
2878
+ }
2883
2879
 
2884
- function remainingWait(time) {
2885
- var timeSinceLastCall = time - lastCallTime,
2886
- timeSinceLastInvoke = time - lastInvokeTime,
2887
- result = wait - timeSinceLastCall;
2880
+ function invokeFunc(time) {
2881
+ var args = lastArgs,
2882
+ thisArg = lastThis;
2888
2883
 
2889
- return maxing ? nativeMin$1(result, maxWait - timeSinceLastInvoke) : result;
2890
- }
2884
+ lastArgs = lastThis = undefined;
2885
+ lastInvokeTime = time;
2886
+ result = func.apply(thisArg, args);
2887
+ return result;
2888
+ }
2891
2889
 
2892
- function shouldInvoke(time) {
2893
- var timeSinceLastCall = time - lastCallTime,
2894
- timeSinceLastInvoke = time - lastInvokeTime;
2890
+ function leadingEdge(time) {
2891
+ // Reset any `maxWait` timer.
2892
+ lastInvokeTime = time;
2893
+ // Start the timer for the trailing edge.
2894
+ timerId = setTimeout(timerExpired, wait);
2895
+ // Invoke the leading edge.
2896
+ return leading ? invokeFunc(time) : result;
2897
+ }
2895
2898
 
2896
- // Either this is the first call, activity has stopped and we're at the
2897
- // trailing edge, the system time has gone backwards and we're treating
2898
- // it as the trailing edge, or we've hit the `maxWait` limit.
2899
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2900
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2901
- }
2899
+ function remainingWait(time) {
2900
+ var timeSinceLastCall = time - lastCallTime,
2901
+ timeSinceLastInvoke = time - lastInvokeTime,
2902
+ result = wait - timeSinceLastCall;
2902
2903
 
2903
- function timerExpired() {
2904
- var time = now$1();
2905
- if (shouldInvoke(time)) {
2906
- return trailingEdge(time);
2907
- }
2908
- // Restart the timer.
2909
- timerId = setTimeout(timerExpired, remainingWait(time));
2910
- }
2904
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
2905
+ }
2911
2906
 
2912
- function trailingEdge(time) {
2913
- timerId = undefined;
2907
+ function shouldInvoke(time) {
2908
+ var timeSinceLastCall = time - lastCallTime,
2909
+ timeSinceLastInvoke = time - lastInvokeTime;
2914
2910
 
2915
- // Only invoke if we have `lastArgs` which means `func` has been
2916
- // debounced at least once.
2917
- if (trailing && lastArgs) {
2918
- return invokeFunc(time);
2919
- }
2920
- lastArgs = lastThis = undefined;
2921
- return result;
2922
- }
2911
+ // Either this is the first call, activity has stopped and we're at the
2912
+ // trailing edge, the system time has gone backwards and we're treating
2913
+ // it as the trailing edge, or we've hit the `maxWait` limit.
2914
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
2915
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
2916
+ }
2923
2917
 
2924
- function cancel() {
2925
- if (timerId !== undefined) {
2926
- clearTimeout(timerId);
2927
- }
2928
- lastInvokeTime = 0;
2929
- lastArgs = lastCallTime = lastThis = timerId = undefined;
2930
- }
2918
+ function timerExpired() {
2919
+ var time = now();
2920
+ if (shouldInvoke(time)) {
2921
+ return trailingEdge(time);
2922
+ }
2923
+ // Restart the timer.
2924
+ timerId = setTimeout(timerExpired, remainingWait(time));
2925
+ }
2931
2926
 
2932
- function flush() {
2933
- return timerId === undefined ? result : trailingEdge(now$1());
2934
- }
2927
+ function trailingEdge(time) {
2928
+ timerId = undefined;
2935
2929
 
2936
- function debounced() {
2937
- var time = now$1(),
2938
- isInvoking = shouldInvoke(time);
2930
+ // Only invoke if we have `lastArgs` which means `func` has been
2931
+ // debounced at least once.
2932
+ if (trailing && lastArgs) {
2933
+ return invokeFunc(time);
2934
+ }
2935
+ lastArgs = lastThis = undefined;
2936
+ return result;
2937
+ }
2939
2938
 
2940
- lastArgs = arguments;
2941
- lastThis = this;
2942
- lastCallTime = time;
2939
+ function cancel() {
2940
+ if (timerId !== undefined) {
2941
+ clearTimeout(timerId);
2942
+ }
2943
+ lastInvokeTime = 0;
2944
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
2945
+ }
2943
2946
 
2944
- if (isInvoking) {
2945
- if (timerId === undefined) {
2946
- return leadingEdge(lastCallTime);
2947
- }
2948
- if (maxing) {
2949
- // Handle invocations in a tight loop.
2950
- timerId = setTimeout(timerExpired, wait);
2951
- return invokeFunc(lastCallTime);
2952
- }
2953
- }
2954
- if (timerId === undefined) {
2955
- timerId = setTimeout(timerExpired, wait);
2956
- }
2957
- return result;
2958
- }
2959
- debounced.cancel = cancel;
2960
- debounced.flush = flush;
2961
- return debounced;
2962
- }
2947
+ function flush() {
2948
+ return timerId === undefined ? result : trailingEdge(now());
2949
+ }
2963
2950
 
2964
- /**
2965
- * Checks if `value` is the
2966
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2967
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2968
- *
2969
- * @static
2970
- * @memberOf _
2971
- * @since 0.1.0
2972
- * @category Lang
2973
- * @param {*} value The value to check.
2974
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2975
- * @example
2976
- *
2977
- * _.isObject({});
2978
- * // => true
2979
- *
2980
- * _.isObject([1, 2, 3]);
2981
- * // => true
2982
- *
2983
- * _.isObject(_.noop);
2984
- * // => true
2985
- *
2986
- * _.isObject(null);
2987
- * // => false
2988
- */
2989
- function isObject$1(value) {
2990
- var type = typeof value;
2991
- return !!value && (type == 'object' || type == 'function');
2992
- }
2951
+ function debounced() {
2952
+ var time = now(),
2953
+ isInvoking = shouldInvoke(time);
2993
2954
 
2994
- /**
2995
- * Checks if `value` is object-like. A value is object-like if it's not `null`
2996
- * and has a `typeof` result of "object".
2997
- *
2998
- * @static
2999
- * @memberOf _
3000
- * @since 4.0.0
3001
- * @category Lang
3002
- * @param {*} value The value to check.
3003
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
3004
- * @example
3005
- *
3006
- * _.isObjectLike({});
3007
- * // => true
3008
- *
3009
- * _.isObjectLike([1, 2, 3]);
3010
- * // => true
3011
- *
3012
- * _.isObjectLike(_.noop);
3013
- * // => false
3014
- *
3015
- * _.isObjectLike(null);
3016
- * // => false
3017
- */
3018
- function isObjectLike$1(value) {
3019
- return !!value && typeof value == 'object';
3020
- }
2955
+ lastArgs = arguments;
2956
+ lastThis = this;
2957
+ lastCallTime = time;
3021
2958
 
3022
- /**
3023
- * Checks if `value` is classified as a `Symbol` primitive or object.
3024
- *
3025
- * @static
3026
- * @memberOf _
3027
- * @since 4.0.0
3028
- * @category Lang
3029
- * @param {*} value The value to check.
3030
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
3031
- * @example
3032
- *
3033
- * _.isSymbol(Symbol.iterator);
3034
- * // => true
3035
- *
3036
- * _.isSymbol('abc');
3037
- * // => false
3038
- */
3039
- function isSymbol$1(value) {
3040
- return typeof value == 'symbol' ||
3041
- (isObjectLike$1(value) && objectToString$1.call(value) == symbolTag$1);
3042
- }
2959
+ if (isInvoking) {
2960
+ if (timerId === undefined) {
2961
+ return leadingEdge(lastCallTime);
2962
+ }
2963
+ if (maxing) {
2964
+ // Handle invocations in a tight loop.
2965
+ timerId = setTimeout(timerExpired, wait);
2966
+ return invokeFunc(lastCallTime);
2967
+ }
2968
+ }
2969
+ if (timerId === undefined) {
2970
+ timerId = setTimeout(timerExpired, wait);
2971
+ }
2972
+ return result;
2973
+ }
2974
+ debounced.cancel = cancel;
2975
+ debounced.flush = flush;
2976
+ return debounced;
2977
+ }
3043
2978
 
3044
- /**
3045
- * Converts `value` to a number.
3046
- *
3047
- * @static
3048
- * @memberOf _
3049
- * @since 4.0.0
3050
- * @category Lang
3051
- * @param {*} value The value to process.
3052
- * @returns {number} Returns the number.
3053
- * @example
3054
- *
3055
- * _.toNumber(3.2);
3056
- * // => 3.2
3057
- *
3058
- * _.toNumber(Number.MIN_VALUE);
3059
- * // => 5e-324
3060
- *
3061
- * _.toNumber(Infinity);
3062
- * // => Infinity
3063
- *
3064
- * _.toNumber('3.2');
3065
- * // => 3.2
3066
- */
3067
- function toNumber$1(value) {
3068
- if (typeof value == 'number') {
3069
- return value;
3070
- }
3071
- if (isSymbol$1(value)) {
3072
- return NAN$1;
3073
- }
3074
- if (isObject$1(value)) {
3075
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
3076
- value = isObject$1(other) ? (other + '') : other;
3077
- }
3078
- if (typeof value != 'string') {
3079
- return value === 0 ? value : +value;
3080
- }
3081
- value = value.replace(reTrim$1, '');
3082
- var isBinary = reIsBinary$1.test(value);
3083
- return (isBinary || reIsOctal$1.test(value))
3084
- ? freeParseInt$1(value.slice(2), isBinary ? 2 : 8)
3085
- : (reIsBadHex$1.test(value) ? NAN$1 : +value);
3086
- }
2979
+ /**
2980
+ * Checks if `value` is the
2981
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
2982
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
2983
+ *
2984
+ * @static
2985
+ * @memberOf _
2986
+ * @since 0.1.0
2987
+ * @category Lang
2988
+ * @param {*} value The value to check.
2989
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
2990
+ * @example
2991
+ *
2992
+ * _.isObject({});
2993
+ * // => true
2994
+ *
2995
+ * _.isObject([1, 2, 3]);
2996
+ * // => true
2997
+ *
2998
+ * _.isObject(_.noop);
2999
+ * // => true
3000
+ *
3001
+ * _.isObject(null);
3002
+ * // => false
3003
+ */
3004
+ function isObject(value) {
3005
+ var type = typeof value;
3006
+ return !!value && (type == 'object' || type == 'function');
3007
+ }
3087
3008
 
3088
- var lodash_debounce = debounce$1;
3009
+ /**
3010
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
3011
+ * and has a `typeof` result of "object".
3012
+ *
3013
+ * @static
3014
+ * @memberOf _
3015
+ * @since 4.0.0
3016
+ * @category Lang
3017
+ * @param {*} value The value to check.
3018
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
3019
+ * @example
3020
+ *
3021
+ * _.isObjectLike({});
3022
+ * // => true
3023
+ *
3024
+ * _.isObjectLike([1, 2, 3]);
3025
+ * // => true
3026
+ *
3027
+ * _.isObjectLike(_.noop);
3028
+ * // => false
3029
+ *
3030
+ * _.isObjectLike(null);
3031
+ * // => false
3032
+ */
3033
+ function isObjectLike(value) {
3034
+ return !!value && typeof value == 'object';
3035
+ }
3089
3036
 
3090
- var _debounce = /*@__PURE__*/getDefaultExportFromCjs(lodash_debounce);
3037
+ /**
3038
+ * Checks if `value` is classified as a `Symbol` primitive or object.
3039
+ *
3040
+ * @static
3041
+ * @memberOf _
3042
+ * @since 4.0.0
3043
+ * @category Lang
3044
+ * @param {*} value The value to check.
3045
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
3046
+ * @example
3047
+ *
3048
+ * _.isSymbol(Symbol.iterator);
3049
+ * // => true
3050
+ *
3051
+ * _.isSymbol('abc');
3052
+ * // => false
3053
+ */
3054
+ function isSymbol(value) {
3055
+ return typeof value == 'symbol' ||
3056
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
3057
+ }
3058
+
3059
+ /**
3060
+ * Converts `value` to a number.
3061
+ *
3062
+ * @static
3063
+ * @memberOf _
3064
+ * @since 4.0.0
3065
+ * @category Lang
3066
+ * @param {*} value The value to process.
3067
+ * @returns {number} Returns the number.
3068
+ * @example
3069
+ *
3070
+ * _.toNumber(3.2);
3071
+ * // => 3.2
3072
+ *
3073
+ * _.toNumber(Number.MIN_VALUE);
3074
+ * // => 5e-324
3075
+ *
3076
+ * _.toNumber(Infinity);
3077
+ * // => Infinity
3078
+ *
3079
+ * _.toNumber('3.2');
3080
+ * // => 3.2
3081
+ */
3082
+ function toNumber(value) {
3083
+ if (typeof value == 'number') {
3084
+ return value;
3085
+ }
3086
+ if (isSymbol(value)) {
3087
+ return NAN;
3088
+ }
3089
+ if (isObject(value)) {
3090
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
3091
+ value = isObject(other) ? (other + '') : other;
3092
+ }
3093
+ if (typeof value != 'string') {
3094
+ return value === 0 ? value : +value;
3095
+ }
3096
+ value = value.replace(reTrim, '');
3097
+ var isBinary = reIsBinary.test(value);
3098
+ return (isBinary || reIsOctal.test(value))
3099
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
3100
+ : (reIsBadHex.test(value) ? NAN : +value);
3101
+ }
3102
+
3103
+ lodash_debounce = debounce;
3104
+ return lodash_debounce;
3105
+ }
3106
+
3107
+ var lodash_debounceExports = requireLodash_debounce();
3108
+ var _debounce = /*@__PURE__*/getDefaultExportFromCjs(lodash_debounceExports);
3091
3109
 
3092
3110
  /**
3093
3111
  * Custom hook for debouncing functions inside components
@@ -3886,7 +3904,6 @@ const preset = {
3886
3904
  onDragUpdate,
3887
3905
  onDragEnd
3888
3906
  };
3889
- var preset$1 = preset;
3890
3907
 
3891
3908
  const origin = {
3892
3909
  x: 0,
@@ -3924,7 +3941,7 @@ const apply = fn => point => ({
3924
3941
  y: fn(point.y)
3925
3942
  });
3926
3943
 
3927
- var executeClip = ((frame, subject) => {
3944
+ var executeClip = (frame, subject) => {
3928
3945
  const result = getRect({
3929
3946
  top: Math.max(subject.top, frame.top),
3930
3947
  right: Math.min(subject.right, frame.right),
@@ -3935,7 +3952,7 @@ var executeClip = ((frame, subject) => {
3935
3952
  return null;
3936
3953
  }
3937
3954
  return result;
3938
- });
3955
+ };
3939
3956
 
3940
3957
  const offsetByPosition = (spacing, point) => ({
3941
3958
  top: spacing.top + point.y,
@@ -3984,7 +4001,7 @@ const clip = (target, frame) => {
3984
4001
  }
3985
4002
  return getRect(target);
3986
4003
  };
3987
- var getSubject = (({
4004
+ var getSubject = ({
3988
4005
  page,
3989
4006
  withPlaceholder,
3990
4007
  axis,
@@ -3998,9 +4015,9 @@ var getSubject = (({
3998
4015
  withPlaceholder,
3999
4016
  active: clipped
4000
4017
  };
4001
- });
4018
+ };
4002
4019
 
4003
- var scrollDroppable = ((droppable, newScroll) => {
4020
+ var scrollDroppable = (droppable, newScroll) => {
4004
4021
  !droppable.frame ? process.env.NODE_ENV !== "production" ? invariant() : invariant() : void 0;
4005
4022
  const scrollable = droppable.frame;
4006
4023
  const scrollDiff = subtract(newScroll, scrollable.scroll.initial);
@@ -4029,7 +4046,7 @@ var scrollDroppable = ((droppable, newScroll) => {
4029
4046
  subject
4030
4047
  };
4031
4048
  return result;
4032
- });
4049
+ };
4033
4050
 
4034
4051
  const toDroppableMap = memoizeOne(droppables => droppables.reduce((previous, current) => {
4035
4052
  previous[current.descriptor.id] = current;
@@ -4062,7 +4079,7 @@ function tryGetCombine(impact) {
4062
4079
 
4063
4080
  var removeDraggableFromList = memoizeOne((remove, list) => list.filter(item => item.descriptor.id !== remove.descriptor.id));
4064
4081
 
4065
- var moveToNextCombine = (({
4082
+ var moveToNextCombine = ({
4066
4083
  isMovingForward,
4067
4084
  draggable,
4068
4085
  destination,
@@ -4110,9 +4127,9 @@ var moveToNextCombine = (({
4110
4127
  }
4111
4128
  const before = withoutDraggable[proposedIndex];
4112
4129
  return getImpact(before.descriptor.id);
4113
- });
4130
+ };
4114
4131
 
4115
- var isHomeOf = ((draggable, destination) => draggable.descriptor.droppableId === destination.descriptor.id);
4132
+ var isHomeOf = (draggable, destination) => draggable.descriptor.droppableId === destination.descriptor.id;
4116
4133
 
4117
4134
  const noDisplacedBy = {
4118
4135
  point: origin,
@@ -4128,11 +4145,10 @@ const noImpact = {
4128
4145
  displacedBy: noDisplacedBy,
4129
4146
  at: null
4130
4147
  };
4131
- var noImpact$1 = noImpact;
4132
4148
 
4133
- var isWithin = ((lowerBound, upperBound) => value => lowerBound <= value && value <= upperBound);
4149
+ var isWithin = (lowerBound, upperBound) => value => lowerBound <= value && value <= upperBound;
4134
4150
 
4135
- var isPartiallyVisibleThroughFrame = (frame => {
4151
+ var isPartiallyVisibleThroughFrame = frame => {
4136
4152
  const isWithinVertical = isWithin(frame.top, frame.bottom);
4137
4153
  const isWithinHorizontal = isWithin(frame.left, frame.right);
4138
4154
  return subject => {
@@ -4155,16 +4171,16 @@ var isPartiallyVisibleThroughFrame = (frame => {
4155
4171
  const isTargetBiggerOnOneAxis = isBiggerVertically && isPartiallyVisibleHorizontally || isBiggerHorizontally && isPartiallyVisibleVertically;
4156
4172
  return isTargetBiggerOnOneAxis;
4157
4173
  };
4158
- });
4174
+ };
4159
4175
 
4160
- var isTotallyVisibleThroughFrame = (frame => {
4176
+ var isTotallyVisibleThroughFrame = frame => {
4161
4177
  const isWithinVertical = isWithin(frame.top, frame.bottom);
4162
4178
  const isWithinHorizontal = isWithin(frame.left, frame.right);
4163
4179
  return subject => {
4164
4180
  const isContained = isWithinVertical(subject.top) && isWithinVertical(subject.bottom) && isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);
4165
4181
  return isContained;
4166
4182
  };
4167
- });
4183
+ };
4168
4184
 
4169
4185
  const vertical = {
4170
4186
  direction: 'vertical',
@@ -4189,7 +4205,7 @@ const horizontal = {
4189
4205
  crossAxisSize: 'height'
4190
4206
  };
4191
4207
 
4192
- var isTotallyVisibleThroughFrameOnAxis = (axis => frame => {
4208
+ var isTotallyVisibleThroughFrameOnAxis = axis => frame => {
4193
4209
  const isWithinVertical = isWithin(frame.top, frame.bottom);
4194
4210
  const isWithinHorizontal = isWithin(frame.left, frame.right);
4195
4211
  return subject => {
@@ -4198,7 +4214,7 @@ var isTotallyVisibleThroughFrameOnAxis = (axis => frame => {
4198
4214
  }
4199
4215
  return isWithinHorizontal(subject.left) && isWithinHorizontal(subject.right);
4200
4216
  };
4201
- });
4217
+ };
4202
4218
 
4203
4219
  const getDroppableDisplaced = (target, destination) => {
4204
4220
  const displacement = destination.frame ? destination.frame.scroll.diff.displacement : origin;
@@ -4381,7 +4397,7 @@ function didStartAfterCritical(draggableId, afterCritical) {
4381
4397
  return Boolean(afterCritical.effected[draggableId]);
4382
4398
  }
4383
4399
 
4384
- var fromCombine = (({
4400
+ var fromCombine = ({
4385
4401
  isMovingForward,
4386
4402
  destination,
4387
4403
  draggables,
@@ -4405,9 +4421,9 @@ var fromCombine = (({
4405
4421
  return combineWithIndex + 1;
4406
4422
  }
4407
4423
  return combineWithIndex;
4408
- });
4424
+ };
4409
4425
 
4410
- var fromReorder = (({
4426
+ var fromReorder = ({
4411
4427
  isMovingForward,
4412
4428
  isInHomeList,
4413
4429
  insideDestination,
@@ -4428,9 +4444,9 @@ var fromReorder = (({
4428
4444
  return null;
4429
4445
  }
4430
4446
  return proposedIndex;
4431
- });
4447
+ };
4432
4448
 
4433
- var moveToNextIndex = (({
4449
+ var moveToNextIndex = ({
4434
4450
  isMovingForward,
4435
4451
  isInHomeList,
4436
4452
  draggable,
@@ -4483,9 +4499,9 @@ var moveToNextIndex = (({
4483
4499
  displacedBy: previousImpact.displacedBy,
4484
4500
  index: newIndex
4485
4501
  });
4486
- });
4502
+ };
4487
4503
 
4488
- var getCombinedItemDisplacement = (({
4504
+ var getCombinedItemDisplacement = ({
4489
4505
  displaced,
4490
4506
  afterCritical,
4491
4507
  combineWith,
@@ -4496,9 +4512,9 @@ var getCombinedItemDisplacement = (({
4496
4512
  return isDisplaced ? origin : negate(displacedBy.point);
4497
4513
  }
4498
4514
  return isDisplaced ? displacedBy.point : origin;
4499
- });
4515
+ };
4500
4516
 
4501
- var whenCombining = (({
4517
+ var whenCombining = ({
4502
4518
  afterCritical,
4503
4519
  impact,
4504
4520
  draggables
@@ -4514,7 +4530,7 @@ var whenCombining = (({
4514
4530
  displacedBy: impact.displacedBy
4515
4531
  });
4516
4532
  return add(center, displaceBy);
4517
- });
4533
+ };
4518
4534
 
4519
4535
  const distanceFromStartToBorderBoxCenter = (axis, box) => box.margin[axis.start] + box.borderBox[axis.size] / 2;
4520
4536
  const distanceFromEndToBorderBoxCenter = (axis, box) => box.margin[axis.end] + box.borderBox[axis.size] / 2;
@@ -4535,7 +4551,7 @@ const goIntoStart = ({
4535
4551
  isMoving
4536
4552
  }) => patch(axis.line, moveInto.contentBox[axis.start] + distanceFromStartToBorderBoxCenter(axis, isMoving), getCrossAxisBorderBoxCenter(axis, moveInto.contentBox, isMoving));
4537
4553
 
4538
- var whenReordering = (({
4554
+ var whenReordering = ({
4539
4555
  impact,
4540
4556
  draggable,
4541
4557
  draggables,
@@ -4590,15 +4606,15 @@ var whenReordering = (({
4590
4606
  moveRelativeTo: last.page,
4591
4607
  isMoving: draggablePage
4592
4608
  });
4593
- });
4609
+ };
4594
4610
 
4595
- var withDroppableDisplacement = ((droppable, point) => {
4611
+ var withDroppableDisplacement = (droppable, point) => {
4596
4612
  const frame = droppable.frame;
4597
4613
  if (!frame) {
4598
4614
  return point;
4599
4615
  }
4600
4616
  return add(point, frame.scroll.diff.displacement);
4601
- });
4617
+ };
4602
4618
 
4603
4619
  const getResultWithoutDroppableDisplacement = ({
4604
4620
  impact,
@@ -4630,14 +4646,14 @@ const getResultWithoutDroppableDisplacement = ({
4630
4646
  afterCritical
4631
4647
  });
4632
4648
  };
4633
- var getPageBorderBoxCenterFromImpact = (args => {
4649
+ var getPageBorderBoxCenterFromImpact = args => {
4634
4650
  const withoutDisplacement = getResultWithoutDroppableDisplacement(args);
4635
4651
  const droppable = args.droppable;
4636
4652
  const withDisplacement = droppable ? withDroppableDisplacement(droppable, withoutDisplacement) : withoutDisplacement;
4637
4653
  return withDisplacement;
4638
- });
4654
+ };
4639
4655
 
4640
- var scrollViewport = ((viewport, newScroll) => {
4656
+ var scrollViewport = (viewport, newScroll) => {
4641
4657
  const diff = subtract(newScroll, viewport.scroll.initial);
4642
4658
  const displacement = negate(diff);
4643
4659
  const frame = getRect({
@@ -4659,7 +4675,7 @@ var scrollViewport = ((viewport, newScroll) => {
4659
4675
  }
4660
4676
  };
4661
4677
  return updated;
4662
- });
4678
+ };
4663
4679
 
4664
4680
  function getDraggables$1(ids, draggables) {
4665
4681
  return ids.map(id => draggables[id]);
@@ -4673,7 +4689,7 @@ function tryGetVisible(id, groups) {
4673
4689
  }
4674
4690
  return null;
4675
4691
  }
4676
- var speculativelyIncrease = (({
4692
+ var speculativelyIncrease = ({
4677
4693
  impact,
4678
4694
  viewport,
4679
4695
  destination,
@@ -4719,11 +4735,11 @@ var speculativelyIncrease = (({
4719
4735
  }
4720
4736
  };
4721
4737
  return newImpact;
4722
- });
4738
+ };
4723
4739
 
4724
- var withViewportDisplacement = ((viewport, point) => add(viewport.scroll.diff.displacement, point));
4740
+ var withViewportDisplacement = (viewport, point) => add(viewport.scroll.diff.displacement, point);
4725
4741
 
4726
- var getClientFromPageBorderBoxCenter = (({
4742
+ var getClientFromPageBorderBoxCenter = ({
4727
4743
  pageBorderBoxCenter,
4728
4744
  draggable,
4729
4745
  viewport
@@ -4731,9 +4747,9 @@ var getClientFromPageBorderBoxCenter = (({
4731
4747
  const withoutPageScrollChange = withViewportDisplacement(viewport, pageBorderBoxCenter);
4732
4748
  const offset = subtract(withoutPageScrollChange, draggable.page.borderBox.center);
4733
4749
  return add(draggable.client.borderBox.center, offset);
4734
- });
4750
+ };
4735
4751
 
4736
- var isTotallyVisibleInNewLocation = (({
4752
+ var isTotallyVisibleInNewLocation = ({
4737
4753
  draggable,
4738
4754
  destination,
4739
4755
  newPageBorderBoxCenter,
@@ -4750,9 +4766,9 @@ var isTotallyVisibleInNewLocation = (({
4750
4766
  viewport
4751
4767
  };
4752
4768
  return onlyOnMainAxis ? isTotallyVisibleOnAxis(args) : isTotallyVisible(args);
4753
- });
4769
+ };
4754
4770
 
4755
- var moveToNextPlace = (({
4771
+ var moveToNextPlace = ({
4756
4772
  isMovingForward,
4757
4773
  draggable,
4758
4774
  destination,
@@ -4828,14 +4844,14 @@ var moveToNextPlace = (({
4828
4844
  impact: cautious,
4829
4845
  scrollJumpRequest: distance
4830
4846
  };
4831
- });
4847
+ };
4832
4848
 
4833
4849
  const getKnownActive = droppable => {
4834
4850
  const rect = droppable.subject.active;
4835
4851
  !rect ? process.env.NODE_ENV !== "production" ? invariant(false, 'Cannot get clipped area from droppable') : invariant() : void 0;
4836
4852
  return rect;
4837
4853
  };
4838
- var getBestCrossAxisDroppable = (({
4854
+ var getBestCrossAxisDroppable = ({
4839
4855
  isMovingForward,
4840
4856
  pageBorderBoxCenter,
4841
4857
  source,
@@ -4890,7 +4906,7 @@ var getBestCrossAxisDroppable = (({
4890
4906
  }
4891
4907
  return getKnownActive(a)[axis.start] - getKnownActive(b)[axis.start];
4892
4908
  })[0];
4893
- });
4909
+ };
4894
4910
 
4895
4911
  const getCurrentPageBorderBoxCenter = (draggable, afterCritical) => {
4896
4912
  const original = draggable.page.borderBox.center;
@@ -4901,7 +4917,7 @@ const getCurrentPageBorderBox = (draggable, afterCritical) => {
4901
4917
  return didStartAfterCritical(draggable.descriptor.id, afterCritical) ? offsetByPosition(original, negate(afterCritical.displacedBy.point)) : original;
4902
4918
  };
4903
4919
 
4904
- var getClosestDraggable = (({
4920
+ var getClosestDraggable = ({
4905
4921
  pageBorderBoxCenter,
4906
4922
  viewport,
4907
4923
  destination,
@@ -4925,7 +4941,7 @@ var getClosestDraggable = (({
4925
4941
  return a.descriptor.index - b.descriptor.index;
4926
4942
  });
4927
4943
  return sorted[0] || null;
4928
- });
4944
+ };
4929
4945
 
4930
4946
  var getDisplacedBy = memoizeOne(function getDisplacedBy(axis, displaceBy) {
4931
4947
  const displacement = displaceBy[axis.line];
@@ -5026,7 +5042,7 @@ const removePlaceholder = droppable => {
5026
5042
  };
5027
5043
  };
5028
5044
 
5029
- var moveToNewDroppable = (({
5045
+ var moveToNewDroppable = ({
5030
5046
  previousPageBorderBoxCenter,
5031
5047
  moveRelativeTo,
5032
5048
  insideDestination,
@@ -5090,9 +5106,9 @@ var moveToNewDroppable = (({
5090
5106
  last: emptyGroups,
5091
5107
  index: proposedIndex
5092
5108
  });
5093
- });
5109
+ };
5094
5110
 
5095
- var moveCrossAxis = (({
5111
+ var moveCrossAxis = ({
5096
5112
  isMovingForward,
5097
5113
  previousPageBorderBoxCenter,
5098
5114
  draggable,
@@ -5150,9 +5166,9 @@ var moveCrossAxis = (({
5150
5166
  impact,
5151
5167
  scrollJumpRequest: null
5152
5168
  };
5153
- });
5169
+ };
5154
5170
 
5155
- var whatIsDraggedOver = (impact => {
5171
+ var whatIsDraggedOver = impact => {
5156
5172
  const at = impact.at;
5157
5173
  if (!at) {
5158
5174
  return null;
@@ -5161,13 +5177,13 @@ var whatIsDraggedOver = (impact => {
5161
5177
  return at.destination.droppableId;
5162
5178
  }
5163
5179
  return at.combine.droppableId;
5164
- });
5180
+ };
5165
5181
 
5166
5182
  const getDroppableOver$1 = (impact, droppables) => {
5167
5183
  const id = whatIsDraggedOver(impact);
5168
5184
  return id ? droppables[id] : null;
5169
5185
  };
5170
- var moveInDirection = (({
5186
+ var moveInDirection = ({
5171
5187
  state,
5172
5188
  type
5173
5189
  }) => {
@@ -5207,7 +5223,7 @@ var moveInDirection = (({
5207
5223
  viewport: state.viewport,
5208
5224
  afterCritical: state.afterCritical
5209
5225
  });
5210
- });
5226
+ };
5211
5227
 
5212
5228
  function isMovementAllowed(state) {
5213
5229
  return state.phase === 'DRAGGING' || state.phase === 'COLLECTING';
@@ -5289,13 +5305,13 @@ function getDroppableOver({
5289
5305
 
5290
5306
  const offsetRectByPosition = (rect, point) => getRect(offsetByPosition(rect, point));
5291
5307
 
5292
- var withDroppableScroll = ((droppable, area) => {
5308
+ var withDroppableScroll = (droppable, area) => {
5293
5309
  const frame = droppable.frame;
5294
5310
  if (!frame) {
5295
5311
  return area;
5296
5312
  }
5297
5313
  return offsetRectByPosition(area, frame.scroll.diff.value);
5298
- });
5314
+ };
5299
5315
 
5300
5316
  function getIsDisplaced({
5301
5317
  displaced,
@@ -5320,7 +5336,7 @@ function atIndex({
5320
5336
  }
5321
5337
  return closest.descriptor.index;
5322
5338
  }
5323
- var getReorderImpact = (({
5339
+ var getReorderImpact = ({
5324
5340
  pageBorderBoxWithDroppableScroll: targetRect,
5325
5341
  draggable,
5326
5342
  destination,
@@ -5368,10 +5384,10 @@ var getReorderImpact = (({
5368
5384
  displacedBy,
5369
5385
  index: newIndex
5370
5386
  });
5371
- });
5387
+ };
5372
5388
 
5373
5389
  const combineThresholdDivisor = 4;
5374
- var getCombineImpact = (({
5390
+ var getCombineImpact = ({
5375
5391
  draggable,
5376
5392
  pageBorderBoxWithDroppableScroll: targetRect,
5377
5393
  previousImpact,
@@ -5424,9 +5440,9 @@ var getCombineImpact = (({
5424
5440
  }
5425
5441
  };
5426
5442
  return impact;
5427
- });
5443
+ };
5428
5444
 
5429
- var getDragImpact = (({
5445
+ var getDragImpact = ({
5430
5446
  pageOffset,
5431
5447
  draggable,
5432
5448
  draggables,
@@ -5442,7 +5458,7 @@ var getDragImpact = (({
5442
5458
  droppables
5443
5459
  });
5444
5460
  if (!destinationId) {
5445
- return noImpact$1;
5461
+ return noImpact;
5446
5462
  }
5447
5463
  const destination = droppables[destinationId];
5448
5464
  const insideDestination = getDraggablesInsideDroppable(destination.descriptor.id, draggables);
@@ -5463,12 +5479,12 @@ var getDragImpact = (({
5463
5479
  viewport,
5464
5480
  afterCritical
5465
5481
  });
5466
- });
5482
+ };
5467
5483
 
5468
- var patchDroppableMap = ((droppables, updated) => ({
5484
+ var patchDroppableMap = (droppables, updated) => ({
5469
5485
  ...droppables,
5470
5486
  [updated.descriptor.id]: updated
5471
- }));
5487
+ });
5472
5488
 
5473
5489
  const clearUnusedPlaceholder = ({
5474
5490
  previousImpact,
@@ -5490,7 +5506,7 @@ const clearUnusedPlaceholder = ({
5490
5506
  const updated = removePlaceholder(lastDroppable);
5491
5507
  return patchDroppableMap(droppables, updated);
5492
5508
  };
5493
- var recomputePlaceholders = (({
5509
+ var recomputePlaceholders = ({
5494
5510
  draggable,
5495
5511
  draggables,
5496
5512
  droppables,
@@ -5515,9 +5531,9 @@ var recomputePlaceholders = (({
5515
5531
  }
5516
5532
  const patched = addPlaceholder(droppable, draggable, draggables);
5517
5533
  return patchDroppableMap(cleaned, patched);
5518
- });
5534
+ };
5519
5535
 
5520
- var update = (({
5536
+ var update = ({
5521
5537
  state,
5522
5538
  clientSelection: forcedClientSelection,
5523
5539
  dimensions: forcedDimensions,
@@ -5581,12 +5597,12 @@ var update = (({
5581
5597
  forceShouldAnimate: scrollJumpRequest ? false : null
5582
5598
  };
5583
5599
  return result;
5584
- });
5600
+ };
5585
5601
 
5586
5602
  function getDraggables(ids, draggables) {
5587
5603
  return ids.map(id => draggables[id]);
5588
5604
  }
5589
- var recompute = (({
5605
+ var recompute = ({
5590
5606
  impact,
5591
5607
  viewport,
5592
5608
  draggables,
@@ -5607,9 +5623,9 @@ var recompute = (({
5607
5623
  ...impact,
5608
5624
  displaced
5609
5625
  };
5610
- });
5626
+ };
5611
5627
 
5612
- var getClientBorderBoxCenter = (({
5628
+ var getClientBorderBoxCenter = ({
5613
5629
  impact,
5614
5630
  draggable,
5615
5631
  droppable,
@@ -5629,9 +5645,9 @@ var getClientBorderBoxCenter = (({
5629
5645
  draggable,
5630
5646
  viewport
5631
5647
  });
5632
- });
5648
+ };
5633
5649
 
5634
- var refreshSnap = (({
5650
+ var refreshSnap = ({
5635
5651
  state,
5636
5652
  dimensions: forcedDimensions,
5637
5653
  viewport: forcedViewport
@@ -5669,14 +5685,14 @@ var refreshSnap = (({
5669
5685
  dimensions,
5670
5686
  viewport
5671
5687
  });
5672
- });
5688
+ };
5673
5689
 
5674
- var getHomeLocation = (descriptor => ({
5690
+ var getHomeLocation = descriptor => ({
5675
5691
  index: descriptor.index,
5676
5692
  droppableId: descriptor.droppableId
5677
- }));
5693
+ });
5678
5694
 
5679
- var getLiftEffect = (({
5695
+ var getLiftEffect = ({
5680
5696
  draggable,
5681
5697
  home,
5682
5698
  draggables,
@@ -5716,12 +5732,12 @@ var getLiftEffect = (({
5716
5732
  impact,
5717
5733
  afterCritical
5718
5734
  };
5719
- });
5735
+ };
5720
5736
 
5721
- var patchDimensionMap = ((dimensions, updated) => ({
5737
+ var patchDimensionMap = (dimensions, updated) => ({
5722
5738
  draggables: dimensions.draggables,
5723
5739
  droppables: patchDroppableMap(dimensions.droppables, updated)
5724
- }));
5740
+ });
5725
5741
 
5726
5742
  const start = key => {
5727
5743
  if (process.env.NODE_ENV !== 'production') {
@@ -5738,7 +5754,7 @@ const finish = key => {
5738
5754
  }
5739
5755
  };
5740
5756
 
5741
- var offsetDraggable = (({
5757
+ var offsetDraggable = ({
5742
5758
  draggable,
5743
5759
  offset: offset$1,
5744
5760
  initialWindowScroll
@@ -5755,15 +5771,15 @@ var offsetDraggable = (({
5755
5771
  page
5756
5772
  };
5757
5773
  return moved;
5758
- });
5774
+ };
5759
5775
 
5760
- var getFrame = (droppable => {
5776
+ var getFrame = droppable => {
5761
5777
  const frame = droppable.frame;
5762
5778
  !frame ? process.env.NODE_ENV !== "production" ? invariant(false, 'Expected Droppable to have a frame') : invariant() : void 0;
5763
5779
  return frame;
5764
- });
5780
+ };
5765
5781
 
5766
- var adjustAdditionsForScrollChanges = (({
5782
+ var adjustAdditionsForScrollChanges = ({
5767
5783
  additions,
5768
5784
  updatedDroppables,
5769
5785
  viewport
@@ -5782,8 +5798,8 @@ var adjustAdditionsForScrollChanges = (({
5782
5798
  });
5783
5799
  return moved;
5784
5800
  });
5785
- });
5786
- var publishWhileDraggingInVirtual = (({
5801
+ };
5802
+ var publishWhileDraggingInVirtual = ({
5787
5803
  state,
5788
5804
  published
5789
5805
  }) => {
@@ -5856,7 +5872,7 @@ var publishWhileDraggingInVirtual = (({
5856
5872
  isWaiting: false
5857
5873
  };
5858
5874
  return dropPending;
5859
- });
5875
+ };
5860
5876
 
5861
5877
  const isSnapping = state => state.movementMode === 'SNAP';
5862
5878
  const postDroppableChange = (state, updated, isEnabledChanging) => {
@@ -5886,7 +5902,7 @@ const idle$2 = {
5886
5902
  completed: null,
5887
5903
  shouldFlush: false
5888
5904
  };
5889
- var reducer = ((state = idle$2, action) => {
5905
+ var reducer = (state = idle$2, action) => {
5890
5906
  if (action.type === 'FLUSH') {
5891
5907
  return {
5892
5908
  ...idle$2,
@@ -6136,8 +6152,11 @@ var reducer = ((state = idle$2, action) => {
6136
6152
  };
6137
6153
  }
6138
6154
  return state;
6139
- });
6155
+ };
6140
6156
 
6157
+ function guard(action, predicate) {
6158
+ return action instanceof Object && 'type' in action && action.type === predicate;
6159
+ }
6141
6160
  const beforeInitialCapture = args => ({
6142
6161
  type: 'BEFORE_INITIAL_CAPTURE',
6143
6162
  payload: args
@@ -6210,7 +6229,7 @@ const completeDrop = args => ({
6210
6229
  type: 'DROP_COMPLETE',
6211
6230
  payload: args
6212
6231
  });
6213
- const drop$1 = args => ({
6232
+ const drop = args => ({
6214
6233
  type: 'DROP',
6215
6234
  payload: args
6216
6235
  });
@@ -6258,11 +6277,11 @@ function validateDimensions(critical, dimensions) {
6258
6277
  }
6259
6278
  }
6260
6279
 
6261
- var lift = (marshal => ({
6280
+ var lift = marshal => ({
6262
6281
  getState,
6263
6282
  dispatch
6264
6283
  }) => next => action => {
6265
- if (action.type !== 'LIFT') {
6284
+ if (!guard(action, 'LIFT')) {
6266
6285
  next(action);
6267
6286
  return;
6268
6287
  }
@@ -6303,20 +6322,20 @@ var lift = (marshal => ({
6303
6322
  movementMode,
6304
6323
  viewport
6305
6324
  }));
6306
- });
6325
+ };
6307
6326
 
6308
- var style = (marshal => () => next => action => {
6309
- if (action.type === 'INITIAL_PUBLISH') {
6327
+ var style = marshal => () => next => action => {
6328
+ if (guard(action, 'INITIAL_PUBLISH')) {
6310
6329
  marshal.dragging();
6311
6330
  }
6312
- if (action.type === 'DROP_ANIMATE') {
6331
+ if (guard(action, 'DROP_ANIMATE')) {
6313
6332
  marshal.dropping(action.payload.completed.result.reason);
6314
6333
  }
6315
- if (action.type === 'FLUSH' || action.type === 'DROP_COMPLETE') {
6334
+ if (guard(action, 'FLUSH') || guard(action, 'DROP_COMPLETE')) {
6316
6335
  marshal.resting();
6317
6336
  }
6318
6337
  next(action);
6319
- });
6338
+ };
6320
6339
 
6321
6340
  const curves = {
6322
6341
  outOfTheWay: 'cubic-bezier(0.2, 0, 0, 1)',
@@ -6369,7 +6388,7 @@ const {
6369
6388
  const dropTimeRange = maxDropTime - minDropTime;
6370
6389
  const maxDropTimeAtDistance = 1500;
6371
6390
  const cancelDropModifier = 0.6;
6372
- var getDropDuration = (({
6391
+ var getDropDuration = ({
6373
6392
  current,
6374
6393
  destination,
6375
6394
  reason
@@ -6385,9 +6404,9 @@ var getDropDuration = (({
6385
6404
  const duration = minDropTime + dropTimeRange * percentage;
6386
6405
  const withDuration = reason === 'CANCEL' ? duration * cancelDropModifier : duration;
6387
6406
  return Number(withDuration.toFixed(2));
6388
- });
6407
+ };
6389
6408
 
6390
- var getNewHomeClientOffset = (({
6409
+ var getNewHomeClientOffset = ({
6391
6410
  impact,
6392
6411
  draggable,
6393
6412
  dimensions,
@@ -6411,9 +6430,9 @@ var getNewHomeClientOffset = (({
6411
6430
  });
6412
6431
  const offset = subtract(newClientCenter, draggable.client.borderBox.center);
6413
6432
  return offset;
6414
- });
6433
+ };
6415
6434
 
6416
- var getDropImpact = (({
6435
+ var getDropImpact = ({
6417
6436
  draggables,
6418
6437
  reason,
6419
6438
  lastImpact,
@@ -6448,13 +6467,13 @@ var getDropImpact = (({
6448
6467
  impact: withoutMovement,
6449
6468
  didDropInsideDroppable: true
6450
6469
  };
6451
- });
6470
+ };
6452
6471
 
6453
6472
  const dropMiddleware = ({
6454
6473
  getState,
6455
6474
  dispatch
6456
6475
  }) => next => action => {
6457
- if (action.type !== 'DROP') {
6476
+ if (!guard(action, 'DROP')) {
6458
6477
  next(action);
6459
6478
  return;
6460
6479
  }
@@ -6534,12 +6553,11 @@ const dropMiddleware = ({
6534
6553
  };
6535
6554
  dispatch(animateDrop(args));
6536
6555
  };
6537
- var drop = dropMiddleware;
6538
6556
 
6539
- var getWindowScroll = (() => ({
6557
+ var getWindowScroll = () => ({
6540
6558
  x: window.pageXOffset,
6541
6559
  y: window.pageYOffset
6542
- }));
6560
+ });
6543
6561
 
6544
6562
  function getWindowScrollBinding(update) {
6545
6563
  return {
@@ -6585,7 +6603,7 @@ function getScrollListener({
6585
6603
  };
6586
6604
  }
6587
6605
 
6588
- const shouldEnd = action => action.type === 'DROP_COMPLETE' || action.type === 'DROP_ANIMATE' || action.type === 'FLUSH';
6606
+ const shouldStop$1 = action => guard(action, 'DROP_COMPLETE') || guard(action, 'DROP_ANIMATE') || guard(action, 'FLUSH');
6589
6607
  const scrollListener = store => {
6590
6608
  const listener = getScrollListener({
6591
6609
  onWindowScroll: newScroll => {
@@ -6595,18 +6613,17 @@ const scrollListener = store => {
6595
6613
  }
6596
6614
  });
6597
6615
  return next => action => {
6598
- if (!listener.isActive() && action.type === 'INITIAL_PUBLISH') {
6616
+ if (!listener.isActive() && guard(action, 'INITIAL_PUBLISH')) {
6599
6617
  listener.start();
6600
6618
  }
6601
- if (listener.isActive() && shouldEnd(action)) {
6619
+ if (listener.isActive() && shouldStop$1(action)) {
6602
6620
  listener.stop();
6603
6621
  }
6604
6622
  next(action);
6605
6623
  };
6606
6624
  };
6607
- var scrollListener$1 = scrollListener;
6608
6625
 
6609
- var getExpiringAnnounce = (announce => {
6626
+ var getExpiringAnnounce = announce => {
6610
6627
  let wasCalled = false;
6611
6628
  let isExpired = false;
6612
6629
  const timeoutId = setTimeout(() => {
@@ -6630,9 +6647,9 @@ var getExpiringAnnounce = (announce => {
6630
6647
  };
6631
6648
  result.wasCalled = () => wasCalled;
6632
6649
  return result;
6633
- });
6650
+ };
6634
6651
 
6635
- var getAsyncMarshal = (() => {
6652
+ var getAsyncMarshal = () => {
6636
6653
  const entries = [];
6637
6654
  const execute = timerId => {
6638
6655
  const index = entries.findIndex(item => item.timerId === timerId);
@@ -6663,7 +6680,7 @@ var getAsyncMarshal = (() => {
6663
6680
  add,
6664
6681
  flush
6665
6682
  };
6666
- });
6683
+ };
6667
6684
 
6668
6685
  const areLocationsEqual = (first, second) => {
6669
6686
  if (first == null && second == null) {
@@ -6720,7 +6737,7 @@ function execute(responder, data, announce, getDefaultMessage) {
6720
6737
  announce(getDefaultMessage(data));
6721
6738
  }
6722
6739
  }
6723
- var getPublisher = ((getResponders, announce) => {
6740
+ var getPublisher = (getResponders, announce) => {
6724
6741
  const asyncMarshal = getAsyncMarshal();
6725
6742
  let dragging = null;
6726
6743
  const beforeCapture = (draggableId, mode) => {
@@ -6755,7 +6772,7 @@ var getPublisher = ((getResponders, announce) => {
6755
6772
  lastCombine: null
6756
6773
  };
6757
6774
  asyncMarshal.add(() => {
6758
- withTimings('onDragStart', () => execute(getResponders().onDragStart, data, announce, preset$1.onDragStart));
6775
+ withTimings('onDragStart', () => execute(getResponders().onDragStart, data, announce, preset.onDragStart));
6759
6776
  });
6760
6777
  };
6761
6778
  const update = (critical, impact) => {
@@ -6783,7 +6800,7 @@ var getPublisher = ((getResponders, announce) => {
6783
6800
  destination: location
6784
6801
  };
6785
6802
  asyncMarshal.add(() => {
6786
- withTimings('onDragUpdate', () => execute(getResponders().onDragUpdate, data, announce, preset$1.onDragUpdate));
6803
+ withTimings('onDragUpdate', () => execute(getResponders().onDragUpdate, data, announce, preset.onDragUpdate));
6787
6804
  });
6788
6805
  };
6789
6806
  const flush = () => {
@@ -6793,7 +6810,7 @@ var getPublisher = ((getResponders, announce) => {
6793
6810
  const drop = result => {
6794
6811
  !dragging ? process.env.NODE_ENV !== "production" ? invariant(false, 'Cannot fire onDragEnd when there is no matching onDragStart') : invariant() : void 0;
6795
6812
  dragging = null;
6796
- withTimings('onDragEnd', () => execute(getResponders().onDragEnd, result, announce, preset$1.onDragEnd));
6813
+ withTimings('onDragEnd', () => execute(getResponders().onDragEnd, result, announce, preset.onDragEnd));
6797
6814
  };
6798
6815
  const abort = () => {
6799
6816
  if (!dragging) {
@@ -6816,23 +6833,23 @@ var getPublisher = ((getResponders, announce) => {
6816
6833
  drop,
6817
6834
  abort
6818
6835
  };
6819
- });
6836
+ };
6820
6837
 
6821
- var responders = ((getResponders, announce) => {
6838
+ var responders = (getResponders, announce) => {
6822
6839
  const publisher = getPublisher(getResponders, announce);
6823
6840
  return store => next => action => {
6824
- if (action.type === 'BEFORE_INITIAL_CAPTURE') {
6841
+ if (guard(action, 'BEFORE_INITIAL_CAPTURE')) {
6825
6842
  publisher.beforeCapture(action.payload.draggableId, action.payload.movementMode);
6826
6843
  return;
6827
6844
  }
6828
- if (action.type === 'INITIAL_PUBLISH') {
6845
+ if (guard(action, 'INITIAL_PUBLISH')) {
6829
6846
  const critical = action.payload.critical;
6830
6847
  publisher.beforeStart(critical, action.payload.movementMode);
6831
6848
  next(action);
6832
6849
  publisher.start(critical, action.payload.movementMode);
6833
6850
  return;
6834
6851
  }
6835
- if (action.type === 'DROP_COMPLETE') {
6852
+ if (guard(action, 'DROP_COMPLETE')) {
6836
6853
  const result = action.payload.completed.result;
6837
6854
  publisher.flush();
6838
6855
  next(action);
@@ -6840,7 +6857,7 @@ var responders = ((getResponders, announce) => {
6840
6857
  return;
6841
6858
  }
6842
6859
  next(action);
6843
- if (action.type === 'FLUSH') {
6860
+ if (guard(action, 'FLUSH')) {
6844
6861
  publisher.abort();
6845
6862
  return;
6846
6863
  }
@@ -6849,10 +6866,10 @@ var responders = ((getResponders, announce) => {
6849
6866
  publisher.update(state.critical, state.impact);
6850
6867
  }
6851
6868
  };
6852
- });
6869
+ };
6853
6870
 
6854
6871
  const dropAnimationFinishMiddleware = store => next => action => {
6855
- if (action.type !== 'DROP_ANIMATION_FINISHED') {
6872
+ if (!guard(action, 'DROP_ANIMATION_FINISHED')) {
6856
6873
  next(action);
6857
6874
  return;
6858
6875
  }
@@ -6862,7 +6879,6 @@ const dropAnimationFinishMiddleware = store => next => action => {
6862
6879
  completed: state.completed
6863
6880
  }));
6864
6881
  };
6865
- var dropAnimationFinish = dropAnimationFinishMiddleware;
6866
6882
 
6867
6883
  const dropAnimationFlushOnScrollMiddleware = store => {
6868
6884
  let unbind = null;
@@ -6878,11 +6894,11 @@ const dropAnimationFlushOnScrollMiddleware = store => {
6878
6894
  }
6879
6895
  }
6880
6896
  return next => action => {
6881
- if (action.type === 'FLUSH' || action.type === 'DROP_COMPLETE' || action.type === 'DROP_ANIMATION_FINISHED') {
6897
+ if (guard(action, 'FLUSH') || guard(action, 'DROP_COMPLETE') || guard(action, 'DROP_ANIMATION_FINISHED')) {
6882
6898
  clear();
6883
6899
  }
6884
6900
  next(action);
6885
- if (action.type !== 'DROP_ANIMATE') {
6901
+ if (!guard(action, 'DROP_ANIMATE')) {
6886
6902
  return;
6887
6903
  }
6888
6904
  const binding = {
@@ -6905,19 +6921,18 @@ const dropAnimationFlushOnScrollMiddleware = store => {
6905
6921
  });
6906
6922
  };
6907
6923
  };
6908
- var dropAnimationFlushOnScroll = dropAnimationFlushOnScrollMiddleware;
6909
6924
 
6910
- var dimensionMarshalStopper = (marshal => () => next => action => {
6911
- if (action.type === 'DROP_COMPLETE' || action.type === 'FLUSH' || action.type === 'DROP_ANIMATE') {
6925
+ var dimensionMarshalStopper = marshal => () => next => action => {
6926
+ if (guard(action, 'DROP_COMPLETE') || guard(action, 'FLUSH') || guard(action, 'DROP_ANIMATE')) {
6912
6927
  marshal.stopPublishing();
6913
6928
  }
6914
6929
  next(action);
6915
- });
6930
+ };
6916
6931
 
6917
- var focus = (marshal => {
6932
+ var focus = marshal => {
6918
6933
  let isWatching = false;
6919
6934
  return () => next => action => {
6920
- if (action.type === 'INITIAL_PUBLISH') {
6935
+ if (guard(action, 'INITIAL_PUBLISH')) {
6921
6936
  isWatching = true;
6922
6937
  marshal.tryRecordFocus(action.payload.critical.draggable.id);
6923
6938
  next(action);
@@ -6928,12 +6943,12 @@ var focus = (marshal => {
6928
6943
  if (!isWatching) {
6929
6944
  return;
6930
6945
  }
6931
- if (action.type === 'FLUSH') {
6946
+ if (guard(action, 'FLUSH')) {
6932
6947
  isWatching = false;
6933
6948
  marshal.tryRestoreFocusRecorded();
6934
6949
  return;
6935
6950
  }
6936
- if (action.type === 'DROP_COMPLETE') {
6951
+ if (guard(action, 'DROP_COMPLETE')) {
6937
6952
  isWatching = false;
6938
6953
  const result = action.payload.completed.result;
6939
6954
  if (result.combine) {
@@ -6942,16 +6957,16 @@ var focus = (marshal => {
6942
6957
  marshal.tryRestoreFocusRecorded();
6943
6958
  }
6944
6959
  };
6945
- });
6960
+ };
6946
6961
 
6947
- const shouldStop = action => action.type === 'DROP_COMPLETE' || action.type === 'DROP_ANIMATE' || action.type === 'FLUSH';
6948
- var autoScroll = (autoScroller => store => next => action => {
6962
+ const shouldStop = action => guard(action, 'DROP_COMPLETE') || guard(action, 'DROP_ANIMATE') || guard(action, 'FLUSH');
6963
+ var autoScroll = autoScroller => store => next => action => {
6949
6964
  if (shouldStop(action)) {
6950
6965
  autoScroller.stop();
6951
6966
  next(action);
6952
6967
  return;
6953
6968
  }
6954
- if (action.type === 'INITIAL_PUBLISH') {
6969
+ if (guard(action, 'INITIAL_PUBLISH')) {
6955
6970
  next(action);
6956
6971
  const state = store.getState();
6957
6972
  !(state.phase === 'DRAGGING') ? process.env.NODE_ENV !== "production" ? invariant(false, 'Expected phase to be DRAGGING after INITIAL_PUBLISH') : invariant() : void 0;
@@ -6960,11 +6975,11 @@ var autoScroll = (autoScroller => store => next => action => {
6960
6975
  }
6961
6976
  next(action);
6962
6977
  autoScroller.scroll(store.getState());
6963
- });
6978
+ };
6964
6979
 
6965
6980
  const pendingDrop = store => next => action => {
6966
6981
  next(action);
6967
- if (action.type !== 'PUBLISH_WHILE_DRAGGING') {
6982
+ if (!guard(action, 'PUBLISH_WHILE_DRAGGING')) {
6968
6983
  return;
6969
6984
  }
6970
6985
  const postActionState = store.getState();
@@ -6974,23 +6989,22 @@ const pendingDrop = store => next => action => {
6974
6989
  if (postActionState.isWaiting) {
6975
6990
  return;
6976
6991
  }
6977
- store.dispatch(drop$1({
6992
+ store.dispatch(drop({
6978
6993
  reason: postActionState.reason
6979
6994
  }));
6980
6995
  };
6981
- var pendingDrop$1 = pendingDrop;
6982
6996
 
6983
6997
  const composeEnhancers = process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
6984
6998
  name: '@hello-pangea/dnd'
6985
6999
  }) : compose;
6986
- var createStore = (({
7000
+ var createStore = ({
6987
7001
  dimensionMarshal,
6988
7002
  focusMarshal,
6989
7003
  styleMarshal,
6990
7004
  getResponders,
6991
7005
  announce,
6992
7006
  autoScroller
6993
- }) => createStore$1(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift(dimensionMarshal), drop, dropAnimationFinish, dropAnimationFlushOnScroll, pendingDrop$1, autoScroll(autoScroller), scrollListener$1, focus(focusMarshal), responders(getResponders, announce)))));
7007
+ }) => createStore$1(reducer, composeEnhancers(applyMiddleware(style(styleMarshal), dimensionMarshalStopper(dimensionMarshal), lift(dimensionMarshal), dropMiddleware, dropAnimationFinishMiddleware, dropAnimationFlushOnScrollMiddleware, pendingDrop, autoScroll(autoScroller), scrollListener, focus(focusMarshal), responders(getResponders, announce))));
6994
7008
 
6995
7009
  const clean$1 = () => ({
6996
7010
  additions: {},
@@ -7068,7 +7082,7 @@ function createPublisher({
7068
7082
  };
7069
7083
  }
7070
7084
 
7071
- var getMaxScroll = (({
7085
+ var getMaxScroll = ({
7072
7086
  scrollHeight,
7073
7087
  scrollWidth,
7074
7088
  height,
@@ -7086,15 +7100,15 @@ var getMaxScroll = (({
7086
7100
  y: Math.max(0, maxScroll.y)
7087
7101
  };
7088
7102
  return adjustedMaxScroll;
7089
- });
7103
+ };
7090
7104
 
7091
- var getDocumentElement = (() => {
7105
+ var getDocumentElement = () => {
7092
7106
  const doc = document.documentElement;
7093
7107
  !doc ? process.env.NODE_ENV !== "production" ? invariant(false, 'Cannot find document.documentElement') : invariant() : void 0;
7094
7108
  return doc;
7095
- });
7109
+ };
7096
7110
 
7097
- var getMaxWindowScroll = (() => {
7111
+ var getMaxWindowScroll = () => {
7098
7112
  const doc = getDocumentElement();
7099
7113
  const maxScroll = getMaxScroll({
7100
7114
  scrollHeight: doc.scrollHeight,
@@ -7103,9 +7117,9 @@ var getMaxWindowScroll = (() => {
7103
7117
  height: doc.clientHeight
7104
7118
  });
7105
7119
  return maxScroll;
7106
- });
7120
+ };
7107
7121
 
7108
- var getViewport = (() => {
7122
+ var getViewport = () => {
7109
7123
  const scroll = getWindowScroll();
7110
7124
  const maxScroll = getMaxWindowScroll();
7111
7125
  const top = scroll.y;
@@ -7134,9 +7148,9 @@ var getViewport = (() => {
7134
7148
  }
7135
7149
  };
7136
7150
  return viewport;
7137
- });
7151
+ };
7138
7152
 
7139
- var getInitialPublish = (({
7153
+ var getInitialPublish = ({
7140
7154
  critical,
7141
7155
  scrollOptions,
7142
7156
  registry
@@ -7158,7 +7172,7 @@ var getInitialPublish = (({
7158
7172
  viewport
7159
7173
  };
7160
7174
  return result;
7161
- });
7175
+ };
7162
7176
 
7163
7177
  function shouldPublishUpdate(registry, dragging, entry) {
7164
7178
  if (entry.descriptor.id === dragging.id) {
@@ -7179,7 +7193,7 @@ function shouldPublishUpdate(registry, dragging, entry) {
7179
7193
  }
7180
7194
  return true;
7181
7195
  }
7182
- var createDimensionMarshal = ((registry, callbacks) => {
7196
+ var createDimensionMarshal = (registry, callbacks) => {
7183
7197
  let collection = null;
7184
7198
  const publisher = createPublisher({
7185
7199
  callbacks: {
@@ -7276,9 +7290,9 @@ var createDimensionMarshal = ((registry, callbacks) => {
7276
7290
  stopPublishing
7277
7291
  };
7278
7292
  return marshal;
7279
- });
7293
+ };
7280
7294
 
7281
- var canStartDrag = ((state, id) => {
7295
+ var canStartDrag = (state, id) => {
7282
7296
  if (state.phase === 'IDLE') {
7283
7297
  return true;
7284
7298
  }
@@ -7289,11 +7303,11 @@ var canStartDrag = ((state, id) => {
7289
7303
  return false;
7290
7304
  }
7291
7305
  return state.completed.result.reason === 'DROP';
7292
- });
7306
+ };
7293
7307
 
7294
- var scrollWindow = (change => {
7308
+ var scrollWindow = change => {
7295
7309
  window.scrollBy(change.x, change.y);
7296
- });
7310
+ };
7297
7311
 
7298
7312
  const getScrollableDroppables = memoizeOne(droppables => toDroppableList(droppables).filter(droppable => {
7299
7313
  if (!droppable.isEnabled) {
@@ -7311,7 +7325,7 @@ const getScrollableDroppableOver = (target, droppables) => {
7311
7325
  }) || null;
7312
7326
  return maybe;
7313
7327
  };
7314
- var getBestScrollableDroppable = (({
7328
+ var getBestScrollableDroppable = ({
7315
7329
  center,
7316
7330
  destination,
7317
7331
  droppables
@@ -7325,7 +7339,7 @@ var getBestScrollableDroppable = (({
7325
7339
  }
7326
7340
  const dimension = getScrollableDroppableOver(center, droppables);
7327
7341
  return dimension;
7328
- });
7342
+ };
7329
7343
 
7330
7344
  const defaultAutoScrollerOptions = {
7331
7345
  startFromPercentage: 0.25,
@@ -7339,7 +7353,7 @@ const defaultAutoScrollerOptions = {
7339
7353
  disabled: false
7340
7354
  };
7341
7355
 
7342
- var getDistanceThresholds = ((container, axis, getAutoScrollerOptions = () => defaultAutoScrollerOptions) => {
7356
+ var getDistanceThresholds = (container, axis, getAutoScrollerOptions = () => defaultAutoScrollerOptions) => {
7343
7357
  const autoScrollerOptions = getAutoScrollerOptions();
7344
7358
  const startScrollingFrom = container[axis.size] * autoScrollerOptions.startFromPercentage;
7345
7359
  const maxScrollValueAt = container[axis.size] * autoScrollerOptions.maxScrollAtPercentage;
@@ -7348,9 +7362,9 @@ var getDistanceThresholds = ((container, axis, getAutoScrollerOptions = () => de
7348
7362
  maxScrollValueAt
7349
7363
  };
7350
7364
  return thresholds;
7351
- });
7365
+ };
7352
7366
 
7353
- var getPercentage = (({
7367
+ var getPercentage = ({
7354
7368
  startOfRange,
7355
7369
  endOfRange,
7356
7370
  current
@@ -7367,11 +7381,11 @@ var getPercentage = (({
7367
7381
  const currentInRange = current - startOfRange;
7368
7382
  const percentage = currentInRange / range;
7369
7383
  return percentage;
7370
- });
7384
+ };
7371
7385
 
7372
7386
  var minScroll = 1;
7373
7387
 
7374
- var getValueFromDistance = ((distanceToEdge, thresholds, getAutoScrollerOptions = () => defaultAutoScrollerOptions) => {
7388
+ var getValueFromDistance = (distanceToEdge, thresholds, getAutoScrollerOptions = () => defaultAutoScrollerOptions) => {
7375
7389
  const autoScrollerOptions = getAutoScrollerOptions();
7376
7390
  if (distanceToEdge > thresholds.startScrollingFrom) {
7377
7391
  return 0;
@@ -7390,9 +7404,9 @@ var getValueFromDistance = ((distanceToEdge, thresholds, getAutoScrollerOptions
7390
7404
  const percentageFromStartScrollingFrom = 1 - percentageFromMaxScrollValueAt;
7391
7405
  const scroll = autoScrollerOptions.maxPixelScroll * autoScrollerOptions.ease(percentageFromStartScrollingFrom);
7392
7406
  return Math.ceil(scroll);
7393
- });
7407
+ };
7394
7408
 
7395
- var dampenValueByTime = ((proposedScroll, dragStartTime, getAutoScrollerOptions) => {
7409
+ var dampenValueByTime = (proposedScroll, dragStartTime, getAutoScrollerOptions) => {
7396
7410
  const autoScrollerOptions = getAutoScrollerOptions();
7397
7411
  const accelerateAt = autoScrollerOptions.durationDampening.accelerateAt;
7398
7412
  const stopAt = autoScrollerOptions.durationDampening.stopDampeningAt;
@@ -7413,9 +7427,9 @@ var dampenValueByTime = ((proposedScroll, dragStartTime, getAutoScrollerOptions)
7413
7427
  });
7414
7428
  const scroll = proposedScroll * autoScrollerOptions.ease(betweenAccelerateAtAndStopAtPercentage);
7415
7429
  return Math.ceil(scroll);
7416
- });
7430
+ };
7417
7431
 
7418
- var getValue = (({
7432
+ var getValue = ({
7419
7433
  distanceToEdge,
7420
7434
  thresholds,
7421
7435
  dragStartTime,
@@ -7430,9 +7444,9 @@ var getValue = (({
7430
7444
  return scroll;
7431
7445
  }
7432
7446
  return Math.max(dampenValueByTime(scroll, dragStartTime, getAutoScrollerOptions), minScroll);
7433
- });
7447
+ };
7434
7448
 
7435
- var getScrollOnAxis = (({
7449
+ var getScrollOnAxis = ({
7436
7450
  container,
7437
7451
  distanceToEdges,
7438
7452
  dragStartTime,
@@ -7458,9 +7472,9 @@ var getScrollOnAxis = (({
7458
7472
  shouldUseTimeDampening,
7459
7473
  getAutoScrollerOptions
7460
7474
  });
7461
- });
7475
+ };
7462
7476
 
7463
- var adjustForSizeLimits = (({
7477
+ var adjustForSizeLimits = ({
7464
7478
  container,
7465
7479
  subject,
7466
7480
  proposedScroll
@@ -7477,10 +7491,10 @@ var adjustForSizeLimits = (({
7477
7491
  x: isTooBigHorizontally ? 0 : proposedScroll.x,
7478
7492
  y: isTooBigVertically ? 0 : proposedScroll.y
7479
7493
  };
7480
- });
7494
+ };
7481
7495
 
7482
7496
  const clean = apply(value => value === 0 ? 0 : value);
7483
- var getScroll$1 = (({
7497
+ var getScroll$1 = ({
7484
7498
  dragStartTime,
7485
7499
  container,
7486
7500
  subject,
@@ -7526,7 +7540,7 @@ var getScroll$1 = (({
7526
7540
  return null;
7527
7541
  }
7528
7542
  return isEqual$1(limited, origin) ? null : limited;
7529
- });
7543
+ };
7530
7544
 
7531
7545
  const smallestSigned = apply(value => {
7532
7546
  if (value === 0) {
@@ -7629,7 +7643,7 @@ const getDroppableOverlap = (droppable, change) => {
7629
7643
  });
7630
7644
  };
7631
7645
 
7632
- var getWindowScrollChange = (({
7646
+ var getWindowScrollChange = ({
7633
7647
  viewport,
7634
7648
  subject,
7635
7649
  center,
@@ -7646,9 +7660,9 @@ var getWindowScrollChange = (({
7646
7660
  getAutoScrollerOptions
7647
7661
  });
7648
7662
  return scroll && canScrollWindow(viewport, scroll) ? scroll : null;
7649
- });
7663
+ };
7650
7664
 
7651
- var getDroppableScrollChange = (({
7665
+ var getDroppableScrollChange = ({
7652
7666
  droppable,
7653
7667
  subject,
7654
7668
  center,
@@ -7669,9 +7683,9 @@ var getDroppableScrollChange = (({
7669
7683
  getAutoScrollerOptions
7670
7684
  });
7671
7685
  return scroll && canScrollDroppable(droppable, scroll) ? scroll : null;
7672
- });
7686
+ };
7673
7687
 
7674
- var scroll = (({
7688
+ var scroll = ({
7675
7689
  state,
7676
7690
  dragStartTime,
7677
7691
  shouldUseTimeDampening,
@@ -7716,9 +7730,9 @@ var scroll = (({
7716
7730
  if (change) {
7717
7731
  scrollDroppable(droppable.descriptor.id, change);
7718
7732
  }
7719
- });
7733
+ };
7720
7734
 
7721
- var createFluidScroller = (({
7735
+ var createFluidScroller = ({
7722
7736
  scrollWindow,
7723
7737
  scrollDroppable,
7724
7738
  getAutoScrollerOptions = () => defaultAutoScrollerOptions
@@ -7779,9 +7793,9 @@ var createFluidScroller = (({
7779
7793
  stop,
7780
7794
  scroll: tryScroll
7781
7795
  };
7782
- });
7796
+ };
7783
7797
 
7784
- var createJumpScroller = (({
7798
+ var createJumpScroller = ({
7785
7799
  move,
7786
7800
  scrollDroppable,
7787
7801
  scrollWindow
@@ -7842,9 +7856,9 @@ var createJumpScroller = (({
7842
7856
  moveByOffset(state, windowRemainder);
7843
7857
  };
7844
7858
  return jumpScroller;
7845
- });
7859
+ };
7846
7860
 
7847
- var createAutoScroller = (({
7861
+ var createAutoScroller = ({
7848
7862
  scrollDroppable,
7849
7863
  scrollWindow,
7850
7864
  move,
@@ -7880,7 +7894,7 @@ var createAutoScroller = (({
7880
7894
  stop: fluidScroller.stop
7881
7895
  };
7882
7896
  return scroller;
7883
- });
7897
+ };
7884
7898
 
7885
7899
  const prefix = 'data-rfd';
7886
7900
  const dragHandle = (() => {
@@ -7920,7 +7934,7 @@ const getStyles = (rules, property) => rules.map(rule => {
7920
7934
  return `${rule.selector} { ${value} }`;
7921
7935
  }).join(' ');
7922
7936
  const noPointerEvents = 'pointer-events: none;';
7923
- var getStyles$1 = (contextId => {
7937
+ var getStyles$1 = contextId => {
7924
7938
  const getSelector = makeGetSelector(contextId);
7925
7939
  const dragHandle$1 = (() => {
7926
7940
  const grabCursor = `
@@ -7982,10 +7996,9 @@ var getStyles$1 = (contextId => {
7982
7996
  dropAnimating: getStyles(rules, 'dropAnimating'),
7983
7997
  userCancel: getStyles(rules, 'userCancel')
7984
7998
  };
7985
- });
7999
+ };
7986
8000
 
7987
- const useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? useLayoutEffect$1 : useEffect;
7988
- var useLayoutEffect = useIsomorphicLayoutEffect;
8001
+ const useIsomorphicLayoutEffect = typeof window !== 'undefined' && typeof window.document !== 'undefined' && typeof window.document.createElement !== 'undefined' ? useLayoutEffect : useEffect;
7989
8002
 
7990
8003
  const getHead = () => {
7991
8004
  const head = document.querySelector('head');
@@ -8014,7 +8027,7 @@ function useStyleMarshal(contextId, nonce) {
8014
8027
  !el ? process.env.NODE_ENV !== "production" ? invariant(false, 'Cannot set dynamic style element if it is not set') : invariant() : void 0;
8015
8028
  el.textContent = proposed;
8016
8029
  }, []);
8017
- useLayoutEffect(() => {
8030
+ useIsomorphicLayoutEffect(() => {
8018
8031
  !(!alwaysRef.current && !dynamicRef.current) ? process.env.NODE_ENV !== "production" ? invariant(false, 'style elements already mounted') : invariant() : void 0;
8019
8032
  const always = createStyleEl(nonce);
8020
8033
  const dynamic = createStyleEl(nonce);
@@ -8063,12 +8076,12 @@ function querySelectorAll(parentNode, selector) {
8063
8076
  return Array.from(parentNode.querySelectorAll(selector));
8064
8077
  }
8065
8078
 
8066
- var getWindowFromEl = (el => {
8079
+ var getWindowFromEl = el => {
8067
8080
  if (el && el.ownerDocument && el.ownerDocument.defaultView) {
8068
8081
  return el.ownerDocument.defaultView;
8069
8082
  }
8070
8083
  return window;
8071
- });
8084
+ };
8072
8085
 
8073
8086
  function isHtmlElement(el) {
8074
8087
  return el instanceof getWindowFromEl(el).HTMLElement;
@@ -8151,7 +8164,7 @@ function useFocusMarshal(contextId) {
8151
8164
  }
8152
8165
  recordRef.current = id;
8153
8166
  }, []);
8154
- useLayoutEffect(() => {
8167
+ useIsomorphicLayoutEffect(() => {
8155
8168
  isMountedRef.current = true;
8156
8169
  return function clearFrameOnUnmount() {
8157
8170
  isMountedRef.current = false;
@@ -8284,11 +8297,7 @@ function useRegistry() {
8284
8297
  const registry = useMemo(createRegistry, []);
8285
8298
  useEffect(() => {
8286
8299
  return function unmount() {
8287
- if (React__default.version.startsWith('16') || React__default.version.startsWith('17')) {
8288
- requestAnimationFrame(registry.clean);
8289
- } else {
8290
- registry.clean();
8291
- }
8300
+ registry.clean();
8292
8301
  };
8293
8302
  }, [registry]);
8294
8303
  return registry;
@@ -8296,11 +8305,11 @@ function useRegistry() {
8296
8305
 
8297
8306
  var StoreContext = React__default.createContext(null);
8298
8307
 
8299
- var getBodyElement = (() => {
8308
+ var getBodyElement = () => {
8300
8309
  const body = document.body;
8301
8310
  !body ? process.env.NODE_ENV !== "production" ? invariant(false, 'Cannot find document.body') : invariant() : void 0;
8302
8311
  return body;
8303
- });
8312
+ };
8304
8313
 
8305
8314
  const visuallyHidden = {
8306
8315
  position: 'absolute',
@@ -8313,7 +8322,6 @@ const visuallyHidden = {
8313
8322
  clip: 'rect(0 0 0 0)',
8314
8323
  'clip-path': 'inset(100%)'
8315
8324
  };
8316
- var visuallyHidden$1 = visuallyHidden;
8317
8325
 
8318
8326
  const getId = contextId => `rfd-announcement-${contextId}`;
8319
8327
  function useAnnouncer(contextId) {
@@ -8325,7 +8333,7 @@ function useAnnouncer(contextId) {
8325
8333
  el.id = id;
8326
8334
  el.setAttribute('aria-live', 'assertive');
8327
8335
  el.setAttribute('aria-atomic', 'true');
8328
- _extends(el.style, visuallyHidden$1);
8336
+ _extends(el.style, visuallyHidden);
8329
8337
  getBodyElement().appendChild(el);
8330
8338
  return function cleanup() {
8331
8339
  setTimeout(function remove() {
@@ -8359,18 +8367,13 @@ function useAnnouncer(contextId) {
8359
8367
  return announce;
8360
8368
  }
8361
8369
 
8362
- let count$1 = 0;
8363
8370
  const defaults = {
8364
8371
  separator: '::'
8365
8372
  };
8366
- function useDeprecatedUniqueId(prefix, options = defaults) {
8367
- return useMemo(() => `${prefix}${options.separator}${count$1++}`, [options.separator, prefix]);
8368
- }
8369
8373
  function useUniqueId(prefix, options = defaults) {
8370
8374
  const id = React__default.useId();
8371
8375
  return useMemo(() => `${prefix}${options.separator}${id}`, [options.separator, prefix, id]);
8372
8376
  }
8373
- var useUniqueId$1 = 'useId' in React__default ? useUniqueId : useDeprecatedUniqueId;
8374
8377
 
8375
8378
  function getElementId({
8376
8379
  contextId,
@@ -8382,7 +8385,7 @@ function useHiddenTextElement({
8382
8385
  contextId,
8383
8386
  text
8384
8387
  }) {
8385
- const uniqueId = useUniqueId$1('hidden-text', {
8388
+ const uniqueId = useUniqueId('hidden-text', {
8386
8389
  separator: '-'
8387
8390
  });
8388
8391
  const id = useMemo(() => getElementId({
@@ -8408,8 +8411,8 @@ function useHiddenTextElement({
8408
8411
  var AppContext = React__default.createContext(null);
8409
8412
 
8410
8413
  var peerDependencies = {
8411
- react: "^16.8.5 || ^17.0.0 || ^18.0.0",
8412
- "react-dom": "^16.8.5 || ^17.0.0 || ^18.0.0"
8414
+ react: "^18.0.0",
8415
+ "react-dom": "^18.0.0"
8413
8416
  };
8414
8417
 
8415
8418
  const semver = /(\d+)\.(\d+)\.(\d+)/;
@@ -8441,7 +8444,7 @@ const isSatisfied = (expected, actual) => {
8441
8444
  }
8442
8445
  return actual.patch >= expected.patch;
8443
8446
  };
8444
- var checkReactVersion = ((peerDepValue, actualValue) => {
8447
+ var checkReactVersion = (peerDepValue, actualValue) => {
8445
8448
  const peerDep = getVersion(peerDepValue);
8446
8449
  const actual = getVersion(actualValue);
8447
8450
  if (isSatisfied(peerDep, actual)) {
@@ -8453,7 +8456,7 @@ var checkReactVersion = ((peerDepValue, actualValue) => {
8453
8456
 
8454
8457
  This can result in run time bugs, and even fatal crashes
8455
8458
  `) : void 0;
8456
- });
8459
+ };
8457
8460
 
8458
8461
  const suffix = `
8459
8462
  We expect a html5 doctype: <!doctype html>
@@ -8461,7 +8464,7 @@ const suffix = `
8461
8464
 
8462
8465
  More information: https://github.com/hello-pangea/dnd/blob/main/docs/guides/doctype.md
8463
8466
  `;
8464
- var checkDoctype = (doc => {
8467
+ var checkDoctype = doc => {
8465
8468
  const doctype = doc.doctype;
8466
8469
  if (!doctype) {
8467
8470
  process.env.NODE_ENV !== "production" ? warning(`
@@ -8486,7 +8489,7 @@ var checkDoctype = (doc => {
8486
8489
  ${suffix}
8487
8490
  `) : void 0;
8488
8491
  }
8489
- });
8492
+ };
8490
8493
 
8491
8494
  function useDev(useHook) {
8492
8495
  if (process.env.NODE_ENV !== 'production') {
@@ -8584,11 +8587,11 @@ const preventedKeys = {
8584
8587
  [enter]: true,
8585
8588
  [tab]: true
8586
8589
  };
8587
- var preventStandardKeyEvents = (event => {
8590
+ var preventStandardKeyEvents = event => {
8588
8591
  if (preventedKeys[event.keyCode]) {
8589
8592
  event.preventDefault();
8590
8593
  }
8591
- });
8594
+ };
8592
8595
 
8593
8596
  const supportedEventName = (() => {
8594
8597
  const base = 'visibilitychange';
@@ -8599,7 +8602,6 @@ const supportedEventName = (() => {
8599
8602
  const supported = candidates.find(eventName => `on${eventName}` in document);
8600
8603
  return supported || base;
8601
8604
  })();
8602
- var supportedPageVisibilityEventName = supportedEventName;
8603
8605
 
8604
8606
  const primaryButton = 0;
8605
8607
  const sloppyClickThreshold = 5;
@@ -8711,7 +8713,7 @@ function getCaptureBindings({
8711
8713
  event.preventDefault();
8712
8714
  }
8713
8715
  }, {
8714
- eventName: supportedPageVisibilityEventName,
8716
+ eventName: supportedEventName,
8715
8717
  fn: cancel
8716
8718
  }];
8717
8719
  }
@@ -8824,7 +8826,7 @@ function useMouseSensor(api) {
8824
8826
  };
8825
8827
  bindCapturingEvents();
8826
8828
  }, [bindCapturingEvents]);
8827
- useLayoutEffect(function mount() {
8829
+ useIsomorphicLayoutEffect(function mount() {
8828
8830
  listenForCapture();
8829
8831
  return function unmount() {
8830
8832
  unbindEventsRef.current();
@@ -8909,7 +8911,7 @@ function getDraggingBindings(actions, stop) {
8909
8911
  passive: true
8910
8912
  }
8911
8913
  }, {
8912
- eventName: supportedPageVisibilityEventName,
8914
+ eventName: supportedEventName,
8913
8915
  fn: cancel
8914
8916
  }];
8915
8917
  }
@@ -8957,7 +8959,7 @@ function useKeyboardSensor(api) {
8957
8959
  };
8958
8960
  unbindEventsRef.current = bindEvents(window, [startCaptureBinding], options);
8959
8961
  }, [startCaptureBinding]);
8960
- useLayoutEffect(function mount() {
8962
+ useIsomorphicLayoutEffect(function mount() {
8961
8963
  listenForCapture();
8962
8964
  return function unmount() {
8963
8965
  unbindEventsRef.current();
@@ -8998,7 +9000,7 @@ function getWindowBindings({
8998
9000
  cancel();
8999
9001
  }
9000
9002
  }, {
9001
- eventName: supportedPageVisibilityEventName,
9003
+ eventName: supportedEventName,
9002
9004
  fn: cancel
9003
9005
  }];
9004
9006
  }
@@ -9085,7 +9087,7 @@ function getHandleBindings({
9085
9087
  event.preventDefault();
9086
9088
  }
9087
9089
  }, {
9088
- eventName: supportedPageVisibilityEventName,
9090
+ eventName: supportedEventName,
9089
9091
  fn: cancel
9090
9092
  }];
9091
9093
  }
@@ -9196,7 +9198,7 @@ function useTouchSensor(api) {
9196
9198
  });
9197
9199
  bindCapturingEvents();
9198
9200
  }, [bindCapturingEvents, getPhase, setPhase, startDragging]);
9199
- useLayoutEffect(function mount() {
9201
+ useIsomorphicLayoutEffect(function mount() {
9200
9202
  listenForCapture();
9201
9203
  return function unmount() {
9202
9204
  unbindEventsRef.current();
@@ -9207,7 +9209,7 @@ function useTouchSensor(api) {
9207
9209
  }
9208
9210
  };
9209
9211
  }, [getPhase, listenForCapture, setPhase]);
9210
- useLayoutEffect(function webkitHack() {
9212
+ useIsomorphicLayoutEffect(function webkitHack() {
9211
9213
  const unbind = bindEvents(window, [{
9212
9214
  eventName: 'touchmove',
9213
9215
  fn: () => {},
@@ -9255,7 +9257,7 @@ function isEventInInteractiveElement(draggable, event) {
9255
9257
  return isAnInteractiveElement(draggable, target);
9256
9258
  }
9257
9259
 
9258
- var getBorderBoxCenterPosition = (el => getRect(el.getBoundingClientRect()).center);
9260
+ var getBorderBoxCenterPosition = el => getRect(el.getBoundingClientRect()).center;
9259
9261
 
9260
9262
  function isElement(el) {
9261
9263
  return el instanceof getWindowFromEl(el).Element;
@@ -9467,7 +9469,7 @@ function tryStart({
9467
9469
  setTimeout(unbind);
9468
9470
  }
9469
9471
  completed();
9470
- store.dispatch(drop$1({
9472
+ store.dispatch(drop({
9471
9473
  reason
9472
9474
  }));
9473
9475
  }
@@ -9563,7 +9565,7 @@ function useSensorMarshal({
9563
9565
  lockAPI.tryAbandon();
9564
9566
  }
9565
9567
  }, [lockAPI]);
9566
- useLayoutEffect(function listenToStore() {
9568
+ useIsomorphicLayoutEffect(function listenToStore() {
9567
9569
  let previous = store.getState();
9568
9570
  const unsubscribe = store.subscribe(() => {
9569
9571
  const current = store.getState();
@@ -9572,7 +9574,7 @@ function useSensorMarshal({
9572
9574
  });
9573
9575
  return unsubscribe;
9574
9576
  }, [lockAPI, store, tryAbandonLock]);
9575
- useLayoutEffect(() => {
9577
+ useIsomorphicLayoutEffect(() => {
9576
9578
  return lockAPI.tryAbandon;
9577
9579
  }, [lockAPI.tryAbandon]);
9578
9580
  const canGetLock = useCallback(draggableId => {
@@ -9628,11 +9630,7 @@ const createResponders = props => ({
9628
9630
  props.onBeforeCapture(t);
9629
9631
  }
9630
9632
  };
9631
- if (React__default.version.startsWith('16') || React__default.version.startsWith('17')) {
9632
- onBeforeCapureCallback();
9633
- } else {
9634
- flushSync(onBeforeCapureCallback);
9635
- }
9633
+ flushSync(onBeforeCapureCallback);
9636
9634
  },
9637
9635
  onBeforeDragStart: props.onBeforeDragStart,
9638
9636
  onDragStart: props.onDragStart,
@@ -9762,17 +9760,13 @@ function App(props) {
9762
9760
  }, props.children));
9763
9761
  }
9764
9762
 
9765
- let count = 0;
9766
- function useDeprecatedUniqueContextId() {
9767
- return useMemo(() => `${count++}`, []);
9768
- }
9769
9763
  function useUniqueContextId() {
9770
9764
  return React__default.useId();
9771
9765
  }
9772
- var useUniqueContextId$1 = 'useId' in React__default ? useUniqueContextId : useDeprecatedUniqueContextId;
9766
+
9773
9767
  function DragDropContext(props) {
9774
- const contextId = useUniqueContextId$1();
9775
- const dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset$1.dragHandleUsageInstructions;
9768
+ const contextId = useUniqueContextId();
9769
+ const dragHandleUsageInstructions = props.dragHandleUsageInstructions || preset.dragHandleUsageInstructions;
9776
9770
  return React__default.createElement(ErrorBoundary, null, setCallbacks => React__default.createElement(App, {
9777
9771
  nonce: props.nonce,
9778
9772
  contextId: contextId,
@@ -9876,7 +9870,7 @@ function getDimension$1(descriptor, el, windowScroll = origin) {
9876
9870
  }
9877
9871
 
9878
9872
  function useDraggablePublisher(args) {
9879
- const uniqueId = useUniqueId$1('draggable');
9873
+ const uniqueId = useUniqueId('draggable');
9880
9874
  const {
9881
9875
  descriptor,
9882
9876
  registry,
@@ -9903,11 +9897,11 @@ function useDraggablePublisher(args) {
9903
9897
  }), [descriptor, getDimension, options, uniqueId]);
9904
9898
  const publishedRef = useRef(entry);
9905
9899
  const isFirstPublishRef = useRef(true);
9906
- useLayoutEffect(() => {
9900
+ useIsomorphicLayoutEffect(() => {
9907
9901
  registry.draggable.register(publishedRef.current);
9908
9902
  return () => registry.draggable.unregister(publishedRef.current);
9909
9903
  }, [registry.draggable]);
9910
- useLayoutEffect(() => {
9904
+ useIsomorphicLayoutEffect(() => {
9911
9905
  if (isFirstPublishRef.current) {
9912
9906
  isFirstPublishRef.current = false;
9913
9907
  return;
@@ -10029,11 +10023,7 @@ const Draggable = props => {
10029
10023
  if (event.propertyName !== 'transform') {
10030
10024
  return;
10031
10025
  }
10032
- if (React__default.version.startsWith('16') || React__default.version.startsWith('17')) {
10033
- dropAnimationFinishedAction();
10034
- } else {
10035
- flushSync(dropAnimationFinishedAction);
10036
- }
10026
+ flushSync(dropAnimationFinishedAction);
10037
10027
  }, [dropAnimationFinishedAction, mapped]);
10038
10028
  const provided = useMemo(() => {
10039
10029
  const style = getStyle$1(mapped);
@@ -10060,11 +10050,10 @@ const Draggable = props => {
10060
10050
  }), [descriptor.droppableId, descriptor.id, descriptor.index, descriptor.type]);
10061
10051
  return React__default.createElement(React__default.Fragment, null, children(provided, mapped.snapshot, rubric));
10062
10052
  };
10063
- var Draggable$1 = Draggable;
10064
10053
 
10065
- var isStrictEqual = ((a, b) => a === b);
10054
+ var isStrictEqual = (a, b) => a === b;
10066
10055
 
10067
- var whatIsDraggedOverFromResult = (result => {
10056
+ var whatIsDraggedOverFromResult = result => {
10068
10057
  const {
10069
10058
  combine,
10070
10059
  destination
@@ -10076,7 +10065,7 @@ var whatIsDraggedOverFromResult = (result => {
10076
10065
  return combine.droppableId;
10077
10066
  }
10078
10067
  return null;
10079
- });
10068
+ };
10080
10069
 
10081
10070
  const getCombineWithFromResult = result => {
10082
10071
  return result.combine ? result.combine.draggableId : null;
@@ -10253,8 +10242,7 @@ const mapDispatchToProps$1 = {
10253
10242
  const ConnectedDraggable = connect(makeMapStateToProps$1, mapDispatchToProps$1, null, {
10254
10243
  context: StoreContext,
10255
10244
  areStatePropsEqual: isStrictEqual
10256
- })(Draggable$1);
10257
- var ConnectedDraggable$1 = ConnectedDraggable;
10245
+ })(Draggable);
10258
10246
 
10259
10247
  function PrivateDraggable(props) {
10260
10248
  const droppableContext = useRequiredContext(DroppableContext);
@@ -10262,7 +10250,7 @@ function PrivateDraggable(props) {
10262
10250
  if (isUsingCloneFor === props.draggableId && !props.isClone) {
10263
10251
  return null;
10264
10252
  }
10265
- return React__default.createElement(ConnectedDraggable$1, props);
10253
+ return React__default.createElement(ConnectedDraggable, props);
10266
10254
  }
10267
10255
  function PublicDraggable(props) {
10268
10256
  const isEnabled = typeof props.isDragDisabled === 'boolean' ? !props.isDragDisabled : true;
@@ -10336,7 +10324,7 @@ const getClosestScrollable = el => {
10336
10324
  return el;
10337
10325
  };
10338
10326
 
10339
- var checkForNestedScrollContainers = (scrollable => {
10327
+ var checkForNestedScrollContainers = scrollable => {
10340
10328
  if (!scrollable) {
10341
10329
  return;
10342
10330
  }
@@ -10351,12 +10339,12 @@ var checkForNestedScrollContainers = (scrollable => {
10351
10339
 
10352
10340
  We hope to support nested scroll containers soon: https://github.com/atlassian/react-beautiful-dnd/issues/131
10353
10341
  `) : void 0;
10354
- });
10342
+ };
10355
10343
 
10356
- var getScroll = (el => ({
10344
+ var getScroll = el => ({
10357
10345
  x: el.scrollLeft,
10358
10346
  y: el.scrollTop
10359
- }));
10347
+ });
10360
10348
 
10361
10349
  const getIsFixed = el => {
10362
10350
  if (!el) {
@@ -10368,16 +10356,16 @@ const getIsFixed = el => {
10368
10356
  }
10369
10357
  return getIsFixed(el.parentElement);
10370
10358
  };
10371
- var getEnv = (start => {
10359
+ var getEnv = start => {
10372
10360
  const closestScrollable = getClosestScrollable(start);
10373
10361
  const isFixedOnPage = getIsFixed(start);
10374
10362
  return {
10375
10363
  closestScrollable,
10376
10364
  isFixedOnPage
10377
10365
  };
10378
- });
10366
+ };
10379
10367
 
10380
- var getDroppableDimension = (({
10368
+ var getDroppableDimension = ({
10381
10369
  descriptor,
10382
10370
  isEnabled,
10383
10371
  isCombineEnabled,
@@ -10436,7 +10424,7 @@ var getDroppableDimension = (({
10436
10424
  subject
10437
10425
  };
10438
10426
  return dimension;
10439
- });
10427
+ };
10440
10428
 
10441
10429
  const getClient = (targetRef, closestScrollable) => {
10442
10430
  const base = getBox(targetRef);
@@ -10465,7 +10453,7 @@ const getClient = (targetRef, closestScrollable) => {
10465
10453
  });
10466
10454
  return client;
10467
10455
  };
10468
- var getDimension = (({
10456
+ var getDimension = ({
10469
10457
  ref,
10470
10458
  descriptor,
10471
10459
  env,
@@ -10506,7 +10494,7 @@ var getDimension = (({
10506
10494
  closest
10507
10495
  });
10508
10496
  return dimension;
10509
- });
10497
+ };
10510
10498
 
10511
10499
  const immediate = {
10512
10500
  passive: false
@@ -10514,13 +10502,13 @@ const immediate = {
10514
10502
  const delayed = {
10515
10503
  passive: true
10516
10504
  };
10517
- var getListenerOptions = (options => options.shouldPublishImmediately ? immediate : delayed);
10505
+ var getListenerOptions = options => options.shouldPublishImmediately ? immediate : delayed;
10518
10506
 
10519
10507
  const getClosestScrollableFromDrag = dragging => dragging && dragging.env.closestScrollable || null;
10520
10508
  function useDroppablePublisher(args) {
10521
10509
  const whileDraggingRef = useRef(null);
10522
10510
  const appContext = useRequiredContext(AppContext);
10523
- const uniqueId = useUniqueId$1('droppable');
10511
+ const uniqueId = useUniqueId('droppable');
10524
10512
  const {
10525
10513
  registry,
10526
10514
  marshal
@@ -10635,7 +10623,7 @@ function useDroppablePublisher(args) {
10635
10623
  descriptor,
10636
10624
  callbacks
10637
10625
  }), [callbacks, descriptor, uniqueId]);
10638
- useLayoutEffect(() => {
10626
+ useIsomorphicLayoutEffect(() => {
10639
10627
  publishedDescriptorRef.current = entry.descriptor;
10640
10628
  registry.droppable.register(entry);
10641
10629
  return () => {
@@ -10646,13 +10634,13 @@ function useDroppablePublisher(args) {
10646
10634
  registry.droppable.unregister(entry);
10647
10635
  };
10648
10636
  }, [callbacks, descriptor, dragStopped, entry, marshal, registry.droppable]);
10649
- useLayoutEffect(() => {
10637
+ useIsomorphicLayoutEffect(() => {
10650
10638
  if (!whileDraggingRef.current) {
10651
10639
  return;
10652
10640
  }
10653
10641
  marshal.updateDroppableIsEnabled(publishedDescriptorRef.current.id, !args.isDropDisabled);
10654
10642
  }, [args.isDropDisabled, marshal]);
10655
- useLayoutEffect(() => {
10643
+ useIsomorphicLayoutEffect(() => {
10656
10644
  if (!whileDraggingRef.current) {
10657
10645
  return;
10658
10646
  }
@@ -10989,7 +10977,6 @@ const Droppable = props => {
10989
10977
  value: droppableContext
10990
10978
  }, children(provided, snapshot), getClone());
10991
10979
  };
10992
- var Droppable$1 = Droppable;
10993
10980
 
10994
10981
  function getBody() {
10995
10982
  !document.body ? process.env.NODE_ENV !== "production" ? invariant(false, 'document.body is not ready') : invariant() : void 0;
@@ -11141,7 +11128,7 @@ const ConnectedDroppable = connect(makeMapStateToProps, mapDispatchToProps, (sta
11141
11128
  }, {
11142
11129
  context: StoreContext,
11143
11130
  areStatePropsEqual: isStrictEqual
11144
- })(Droppable$1);
11131
+ })(Droppable);
11145
11132
  var ConnectedDroppable$1 = ConnectedDroppable;
11146
11133
 
11147
11134
  const setDimensions = (el) => {
@@ -12299,8 +12286,17 @@ var k=require$$3;let v=new Map;function w(a){for(;null!=a;){if(a.nodeType===Node
12299
12286
  * This source code is licensed under the MIT license found in the
12300
12287
  * LICENSE file in the root directory of this source tree.
12301
12288
  */
12302
- const LexicalSelection = process.env.NODE_ENV === 'development' ? requireLexicalSelection_dev() : requireLexicalSelection_prod();
12303
- var LexicalSelection_1 = LexicalSelection;
12289
+
12290
+ var LexicalSelection_1;
12291
+ var hasRequiredLexicalSelection;
12292
+
12293
+ function requireLexicalSelection () {
12294
+ if (hasRequiredLexicalSelection) return LexicalSelection_1;
12295
+ hasRequiredLexicalSelection = 1;
12296
+ const LexicalSelection = process.env.NODE_ENV === 'development' ? requireLexicalSelection_dev() : requireLexicalSelection_prod();
12297
+ LexicalSelection_1 = LexicalSelection;
12298
+ return LexicalSelection_1;
12299
+ }
12304
12300
 
12305
12301
  var LexicalUtils_dev = {};
12306
12302
 
@@ -12317,7 +12313,7 @@ function requireLexicalUtils_dev () {
12317
12313
  if (hasRequiredLexicalUtils_dev) return LexicalUtils_dev;
12318
12314
  hasRequiredLexicalUtils_dev = 1;
12319
12315
 
12320
- var selection = LexicalSelection_1;
12316
+ var selection = requireLexicalSelection();
12321
12317
  var lexical = require$$3;
12322
12318
 
12323
12319
  /**
@@ -13060,7 +13056,7 @@ var hasRequiredLexicalUtils_prod;
13060
13056
  function requireLexicalUtils_prod () {
13061
13057
  if (hasRequiredLexicalUtils_prod) return LexicalUtils_prod;
13062
13058
  hasRequiredLexicalUtils_prod = 1;
13063
- var h=LexicalSelection_1,B=require$$3;function C(a){let b=new URLSearchParams;b.append("code",a);for(let c=1;c<arguments.length;c++)b.append("v",arguments[c]);throw Error(`Minified Lexical error #${a}; visit https://lexical.dev/docs/error?${b} for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}function D(...a){return ()=>{a.forEach(b=>b());}}let E={attributes:!0,characterData:!0,childList:!0,subtree:!0};
13059
+ var h=requireLexicalSelection(),B=require$$3;function C(a){let b=new URLSearchParams;b.append("code",a);for(let c=1;c<arguments.length;c++)b.append("v",arguments[c]);throw Error(`Minified Lexical error #${a}; visit https://lexical.dev/docs/error?${b} for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}function D(...a){return ()=>{a.forEach(b=>b());}}let E={attributes:!0,characterData:!0,childList:!0,subtree:!0};
13064
13060
  function F(a,b,c){function e(){if(null===g)throw Error("Unexpected null rootDOMNode");if(null===n)throw Error("Unexpected null parentDOMNode");let {left:p,top:z}=g.getBoundingClientRect();var q=n;let r=h.createRectsFromDOMRange(a,b);t.isConnected||q.append(t);q=!1;for(let x=0;x<r.length;x++){var w=r[x];let u=k[x]||document.createElement("div"),y=u.style;"absolute"!==y.position&&(y.position="absolute",q=!0);var l=`${w.left-p}px`;y.left!==l&&(y.left=l,q=!0);l=`${w.top-z}px`;y.top!==l&&(u.style.top=
13065
13061
  l,q=!0);l=`${w.width}px`;y.width!==l&&(u.style.width=l,q=!0);w=`${w.height}px`;y.height!==w&&(u.style.height=w,q=!0);u.parentNode!==t&&(t.append(u),q=!0);k[x]=u;}for(;k.length>r.length;)k.pop();q&&c(k);}function d(){g=n=null;null!==m&&m.disconnect();m=null;t.remove();for(let p of k)p.remove();k=[];}function f(){let p=a.getRootElement();if(null===p)return d();let z=p.parentElement;if(!(z instanceof HTMLElement))return d();d();g=p;n=z;m=new MutationObserver(q=>{let r=a.getRootElement(),w=r&&r.parentElement;
13066
13062
  if(r!==g||w!==n)return f();for(let l of q)if(!t.contains(l.target))return e()});m.observe(z,E);e();}let g=null,n=null,m=null,k=[],t=document.createElement("div"),A=a.registerRootListener(f);return ()=>{A();d();}}function G(a,b){for(let c of b)if(a.type.startsWith(c))return !0;return !1}let H=(a,b)=>{for(;a!==B.$getRoot()&&null!=a;){if(b(a))return a;a=a.getParent();}return null};LexicalUtils_prod.$splitNode=B.$splitNode;LexicalUtils_prod.isHTMLAnchorElement=B.isHTMLAnchorElement;LexicalUtils_prod.isHTMLElement=B.isHTMLElement;
@@ -13085,8 +13081,17 @@ var h=LexicalSelection_1,B=require$$3;function C(a){let b=new URLSearchParams;b.
13085
13081
  * This source code is licensed under the MIT license found in the
13086
13082
  * LICENSE file in the root directory of this source tree.
13087
13083
  */
13088
- const LexicalUtils = process.env.NODE_ENV === 'development' ? requireLexicalUtils_dev() : requireLexicalUtils_prod();
13089
- var LexicalUtils_1 = LexicalUtils;
13084
+
13085
+ var LexicalUtils_1;
13086
+ var hasRequiredLexicalUtils;
13087
+
13088
+ function requireLexicalUtils () {
13089
+ if (hasRequiredLexicalUtils) return LexicalUtils_1;
13090
+ hasRequiredLexicalUtils = 1;
13091
+ const LexicalUtils = process.env.NODE_ENV === 'development' ? requireLexicalUtils_dev() : requireLexicalUtils_prod();
13092
+ LexicalUtils_1 = LexicalUtils;
13093
+ return LexicalUtils_1;
13094
+ }
13090
13095
 
13091
13096
  /**
13092
13097
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -13101,8 +13106,8 @@ function requireLexicalHtml_dev () {
13101
13106
  if (hasRequiredLexicalHtml_dev) return LexicalHtml_dev;
13102
13107
  hasRequiredLexicalHtml_dev = 1;
13103
13108
 
13104
- var selection = LexicalSelection_1;
13105
- var utils = LexicalUtils_1;
13109
+ var selection = requireLexicalSelection();
13110
+ var utils = requireLexicalUtils();
13106
13111
  var lexical = require$$3;
13107
13112
 
13108
13113
  /** @module @lexical/html */
@@ -13276,7 +13281,7 @@ var hasRequiredLexicalHtml_prod;
13276
13281
  function requireLexicalHtml_prod () {
13277
13282
  if (hasRequiredLexicalHtml_prod) return LexicalHtml_prod;
13278
13283
  hasRequiredLexicalHtml_prod = 1;
13279
- var m=LexicalSelection_1,p=LexicalUtils_1,q=require$$3;
13284
+ var m=requireLexicalSelection(),p=requireLexicalUtils(),q=require$$3;
13280
13285
  function u(c,e,h,a=null){let f=null!==a?e.isSelected(a):!0,k=q.$isElementNode(e)&&e.excludeFromCopy("html");var d=e;null!==a&&(d=m.$cloneWithProperties(e),d=q.$isTextNode(d)&&null!==a?m.$sliceSelectedTextNodeContent(a,d):d);let g=q.$isElementNode(d)?d.getChildren():[];var b=c._nodes.get(d.getType());b=b&&void 0!==b.exportDOM?b.exportDOM(c,d):d.exportDOM(c);let {element:l,after:r}=b;if(!l)return !1;b=document.createDocumentFragment();for(let n=0;n<g.length;n++){let t=g[n],x=u(c,t,b,a);!f&&q.$isElementNode(e)&&
13281
13286
  x&&e.extractWithChild(t,a,"html")&&(f=!0);}f&&!k?(p.isHTMLElement(l)&&l.append(b),h.append(l),r&&(c=r.call(d,l))&&l.replaceWith(c)):h.append(b);return f}let v=new Set(["STYLE","SCRIPT"]);
13282
13287
  function w(c,e,h=new Map,a){let f=[];if(v.has(c.nodeName))return f;let k=null;var d,{nodeName:g}=c,b=e._htmlConversions.get(g.toLowerCase());g=null;if(void 0!==b)for(d of b)b=d(c),null!==b&&(null===g||(g.priority||0)<(b.priority||0))&&(g=b);g=(d=null!==g?g.conversion:null)?d(c):null;d=null;if(null!==g){d=g.after;b=g.node;k=Array.isArray(b)?b[b.length-1]:b;if(null!==k){for(var [,l]of h)if(k=l(k,a),!k)break;k&&f.push(...(Array.isArray(b)?b:[k]));}null!=g.forChild&&h.set(c.nodeName,g.forChild);}c=c.childNodes;
@@ -13292,8 +13297,17 @@ var m=LexicalSelection_1,p=LexicalUtils_1,q=require$$3;
13292
13297
  * This source code is licensed under the MIT license found in the
13293
13298
  * LICENSE file in the root directory of this source tree.
13294
13299
  */
13295
- const LexicalHtml = process.env.NODE_ENV === 'development' ? requireLexicalHtml_dev() : requireLexicalHtml_prod();
13296
- var LexicalHtml_1 = LexicalHtml;
13300
+
13301
+ var LexicalHtml_1;
13302
+ var hasRequiredLexicalHtml;
13303
+
13304
+ function requireLexicalHtml () {
13305
+ if (hasRequiredLexicalHtml) return LexicalHtml_1;
13306
+ hasRequiredLexicalHtml = 1;
13307
+ const LexicalHtml = process.env.NODE_ENV === 'development' ? requireLexicalHtml_dev() : requireLexicalHtml_prod();
13308
+ LexicalHtml_1 = LexicalHtml;
13309
+ return LexicalHtml_1;
13310
+ }
13297
13311
 
13298
13312
  /**
13299
13313
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -13308,9 +13322,9 @@ function requireLexicalClipboard_dev () {
13308
13322
  if (hasRequiredLexicalClipboard_dev) return LexicalClipboard_dev;
13309
13323
  hasRequiredLexicalClipboard_dev = 1;
13310
13324
 
13311
- var html = LexicalHtml_1;
13312
- var selection = LexicalSelection_1;
13313
- var utils = LexicalUtils_1;
13325
+ var html = requireLexicalHtml();
13326
+ var selection = requireLexicalSelection();
13327
+ var utils = requireLexicalUtils();
13314
13328
  var lexical = require$$3;
13315
13329
 
13316
13330
  /**
@@ -13706,7 +13720,7 @@ var hasRequiredLexicalClipboard_prod;
13706
13720
  function requireLexicalClipboard_prod () {
13707
13721
  if (hasRequiredLexicalClipboard_prod) return LexicalClipboard_prod;
13708
13722
  hasRequiredLexicalClipboard_prod = 1;
13709
- var f=LexicalHtml_1,m=LexicalSelection_1,q=LexicalUtils_1,r=require$$3;function t(a){let b=new URLSearchParams;b.append("code",a);for(let c=1;c<arguments.length;c++)b.append("v",arguments[c]);throw Error(`Minified Lexical error #${a}; visit https://lexical.dev/docs/error?${b} for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}
13723
+ var f=requireLexicalHtml(),m=requireLexicalSelection(),q=requireLexicalUtils(),r=require$$3;function t(a){let b=new URLSearchParams;b.append("code",a);for(let c=1;c<arguments.length;c++)b.append("v",arguments[c]);throw Error(`Minified Lexical error #${a}; visit https://lexical.dev/docs/error?${b} for the full message or `+"use the non-minified dev environment for full errors and additional helpful warnings.");}
13710
13724
  let u="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function v(a){let b=r.$getSelection();if(null==b)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(b)&&b.isCollapsed()||0===b.getNodes().length?"":f.$generateHtmlFromNodes(a,b)}
13711
13725
  function w(a){let b=r.$getSelection();if(null==b)throw Error("Expected valid LexicalSelection");return r.$isRangeSelection(b)&&b.isCollapsed()||0===b.getNodes().length?null:JSON.stringify(x(a,b))}function y(a,b,c){a.dispatchCommand(r.SELECTION_INSERT_CLIPBOARD_NODES_COMMAND,{nodes:b,selection:c})||c.insertNodes(b);}
13712
13726
  function z(a,b,c,d=[]){let e=null!==b?c.isSelected(b):!0,h=r.$isElementNode(c)&&c.excludeFromCopy("html");var g=c;if(null!==b){var k=m.$cloneWithProperties(c);g=k=r.$isTextNode(k)&&null!==b?m.$sliceSelectedTextNodeContent(b,k):k;}let n=r.$isElementNode(g)?g.getChildren():[];var l=g;k=l.exportJSON();var p=l.constructor;k.type!==p.getType()&&t(58,p.name);r.$isElementNode(l)&&(Array.isArray(k.children)||t(59,p.name));r.$isTextNode(g)&&(g=g.__text,0<g.length?k.text=g:e=!1);for(g=0;g<n.length;g++)l=n[g],
@@ -13752,8 +13766,8 @@ function requireLexicalRichText_dev () {
13752
13766
  hasRequiredLexicalRichText_dev = 1;
13753
13767
 
13754
13768
  var clipboard = requireLexicalClipboard();
13755
- var selection = LexicalSelection_1;
13756
- var utils = LexicalUtils_1;
13769
+ var selection = requireLexicalSelection();
13770
+ var utils = requireLexicalUtils();
13757
13771
  var lexical = require$$3;
13758
13772
 
13759
13773
  /**
@@ -14528,7 +14542,7 @@ var hasRequiredLexicalRichText_prod;
14528
14542
  function requireLexicalRichText_prod () {
14529
14543
  if (hasRequiredLexicalRichText_prod) return LexicalRichText_prod;
14530
14544
  hasRequiredLexicalRichText_prod = 1;
14531
- var c=requireLexicalClipboard(),g=LexicalSelection_1,h=LexicalUtils_1,k=require$$3;function l(b,a){return "undefined"!==typeof document.caretRangeFromPoint?(b=document.caretRangeFromPoint(b,a),null===b?null:{node:b.startContainer,offset:b.startOffset}):"undefined"!==document.caretPositionFromPoint?(b=document.caretPositionFromPoint(b,a),null===b?null:{node:b.offsetNode,offset:b.offset}):null}
14545
+ var c=requireLexicalClipboard(),g=requireLexicalSelection(),h=requireLexicalUtils(),k=require$$3;function l(b,a){return "undefined"!==typeof document.caretRangeFromPoint?(b=document.caretRangeFromPoint(b,a),null===b?null:{node:b.startContainer,offset:b.startOffset}):"undefined"!==document.caretPositionFromPoint?(b=document.caretPositionFromPoint(b,a),null===b?null:{node:b.offsetNode,offset:b.offset}):null}
14532
14546
  let n="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,p=n&&"documentMode"in document?document.documentMode:null;let q=n&&"InputEvent"in window&&!p?"getTargetRanges"in new window.InputEvent("input"):!1,r=n&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),t=n&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;
14533
14547
  let u=n&&/^(?=.*Chrome).*/i.test(navigator.userAgent),v=n&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!u,w=k.createCommand("DRAG_DROP_PASTE_FILE");
14534
14548
  class x extends k.ElementNode{static getType(){return "quote"}static clone(b){return new x(b.__key)}constructor(b){super(b);}createDOM(b){let a=document.createElement("blockquote");h.addClassNamesToElement(a,b.theme.quote);return a}updateDOM(){return !1}static importDOM(){return {blockquote:()=>({conversion:y,priority:0})}}exportDOM(b){({element:b}=super.exportDOM(b));if(b&&h.isHTMLElement(b)){this.isEmpty()&&b.append(document.createElement("br"));var a=this.getFormatType();b.style.textAlign=a;if(a=this.getDirection())b.dir=
@@ -14563,8 +14577,19 @@ let u=n&&/^(?=.*Chrome).*/i.test(navigator.userAgent),v=n&&/AppleWebKit\/[\d.]+/
14563
14577
  * This source code is licensed under the MIT license found in the
14564
14578
  * LICENSE file in the root directory of this source tree.
14565
14579
  */
14566
- const LexicalRichText = process.env.NODE_ENV === 'development' ? requireLexicalRichText_dev() : requireLexicalRichText_prod();
14567
- var LexicalRichText_1 = LexicalRichText;
14580
+
14581
+ var LexicalRichText_1;
14582
+ var hasRequiredLexicalRichText;
14583
+
14584
+ function requireLexicalRichText () {
14585
+ if (hasRequiredLexicalRichText) return LexicalRichText_1;
14586
+ hasRequiredLexicalRichText = 1;
14587
+ const LexicalRichText = process.env.NODE_ENV === 'development' ? requireLexicalRichText_dev() : requireLexicalRichText_prod();
14588
+ LexicalRichText_1 = LexicalRichText;
14589
+ return LexicalRichText_1;
14590
+ }
14591
+
14592
+ var LexicalRichTextExports = requireLexicalRichText();
14568
14593
 
14569
14594
  const useEditorStyles = makeStyles()((theme, { hasFocus, hasContent, readOnly, hasCustomToolbar }) => ({
14570
14595
  root: {
@@ -14654,6 +14679,8 @@ const useEditorStyles = makeStyles()((theme, { hasFocus, hasContent, readOnly, h
14654
14679
 
14655
14680
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
14656
14681
 
14682
+ var LexicalUtilsExports = requireLexicalUtils();
14683
+
14657
14684
  function StyleWrapperPlugin({ showCharcount, helperText, readOnly, classes, label, children, autoFocus, toolbarAnchor, hasCustomToolbar, }) {
14658
14685
  const [editor] = useLexicalComposerContext();
14659
14686
  const [hasFocus, setFocused] = useState(() => {
@@ -14661,7 +14688,7 @@ function StyleWrapperPlugin({ showCharcount, helperText, readOnly, classes, labe
14661
14688
  });
14662
14689
  const [charCount, setCharCount] = useState(0);
14663
14690
  useEffect(() => {
14664
- return LexicalUtils_1.mergeRegister(editor.registerCommand(BLUR_COMMAND, () => {
14691
+ return LexicalUtilsExports.mergeRegister(editor.registerCommand(BLUR_COMMAND, () => {
14665
14692
  setFocused(editor.getRootElement() === document.activeElement);
14666
14693
  return false;
14667
14694
  }, COMMAND_PRIORITY_EDITOR), editor.registerCommand(FOCUS_COMMAND, () => {
@@ -14743,7 +14770,7 @@ const htmlExportMap = new Map([
14743
14770
  },
14744
14771
  ],
14745
14772
  [
14746
- LexicalRichText_1.HeadingNode,
14773
+ LexicalRichTextExports.HeadingNode,
14747
14774
  (editor, node) => {
14748
14775
  const headingNode = node;
14749
14776
  const element = headingNode.createDOM(editor._config);
@@ -14807,7 +14834,7 @@ function ModifyPastePlugin({ blockPasting, stripPastedStyles, }) {
14807
14834
  function PreventNewlinesPlugin({ disableNewlines, }) {
14808
14835
  const [editor] = useLexicalComposerContext();
14809
14836
  if (disableNewlines) {
14810
- LexicalUtils_1.mergeRegister(editor.registerNodeTransform(RootNode, (rootNode) => {
14837
+ LexicalUtilsExports.mergeRegister(editor.registerNodeTransform(RootNode, (rootNode) => {
14811
14838
  if (rootNode.getChildrenSize() <= 1)
14812
14839
  return;
14813
14840
  rootNode.getLastChild()?.remove();
@@ -14901,6 +14928,8 @@ function getDOMRangeRect(nativeSelection, rootElement) {
14901
14928
  return rect;
14902
14929
  }
14903
14930
 
14931
+ var LexicalSelectionExports = requireLexicalSelection();
14932
+
14904
14933
  /**
14905
14934
  * Copyright (c) Meta Platforms, Inc. and affiliates.
14906
14935
  *
@@ -14918,10 +14947,10 @@ function getSelectedNode(selection) {
14918
14947
  }
14919
14948
  const isBackward = selection.isBackward();
14920
14949
  if (isBackward) {
14921
- return LexicalSelection_1.$isAtNodeEnd(focus) ? anchorNode : focusNode;
14950
+ return LexicalSelectionExports.$isAtNodeEnd(focus) ? anchorNode : focusNode;
14922
14951
  }
14923
14952
  else {
14924
- return LexicalSelection_1.$isAtNodeEnd(anchor) ? anchorNode : focusNode;
14953
+ return LexicalSelectionExports.$isAtNodeEnd(anchor) ? anchorNode : focusNode;
14925
14954
  }
14926
14955
  }
14927
14956
 
@@ -15006,7 +15035,7 @@ function TextFormatFloatingToolbar({ editor, anchorElem, isBold, isItalic, butto
15006
15035
  editor.getEditorState().read(() => {
15007
15036
  updateTextFormatFloatingToolbar();
15008
15037
  });
15009
- return LexicalUtils_1.mergeRegister(editor.registerUpdateListener(({ editorState }) => {
15038
+ return LexicalUtilsExports.mergeRegister(editor.registerUpdateListener(({ editorState }) => {
15010
15039
  editorState.read(() => {
15011
15040
  updateTextFormatFloatingToolbar();
15012
15041
  });
@@ -15072,7 +15101,7 @@ function useFloatingTextFormatToolbar(editor, anchorElem, buttons, CustomToolbar
15072
15101
  };
15073
15102
  }, [updatePopup]);
15074
15103
  useEffect(() => {
15075
- return LexicalUtils_1.mergeRegister(editor.registerUpdateListener(() => {
15104
+ return LexicalUtilsExports.mergeRegister(editor.registerUpdateListener(() => {
15076
15105
  updatePopup();
15077
15106
  }), editor.registerRootListener(() => {
15078
15107
  if (editor.getRootElement() === null) {
@@ -15099,6 +15128,8 @@ function FloatingTextFormatToolbarPlugin({ anchorElem, buttons, CustomToolbar, }
15099
15128
  return useFloatingTextFormatToolbar(editor, anchorElem, buttons, CustomToolbar);
15100
15129
  }
15101
15130
 
15131
+ var LexicalHtmlExports = requireLexicalHtml();
15132
+
15102
15133
  function InsertDataPlugin({ html }) {
15103
15134
  const [editor] = useLexicalComposerContext();
15104
15135
  const parser = new DOMParser();
@@ -15109,7 +15140,7 @@ function InsertDataPlugin({ html }) {
15109
15140
  }
15110
15141
  const dom = parser.parseFromString(html, 'text/html');
15111
15142
  editor.update(() => {
15112
- const nodes = LexicalHtml_1.$generateNodesFromDOM(editor, dom);
15143
+ const nodes = LexicalHtmlExports.$generateNodesFromDOM(editor, dom);
15113
15144
  $insertNodes(nodes);
15114
15145
  });
15115
15146
  }, []);
@@ -15132,12 +15163,12 @@ function HeadingPlugin({ html }) {
15132
15163
  // Only replace if tag is heading.
15133
15164
  if (tag) {
15134
15165
  editor.registerNodeTransform(ParagraphNode, (node) => {
15135
- node.replace(LexicalRichText_1.$createHeadingNode(`${tag}`));
15166
+ node.replace(LexicalRichTextExports.$createHeadingNode(`${tag}`));
15136
15167
  });
15137
15168
  }
15138
15169
  else {
15139
15170
  // Replace a heading with paragraph
15140
- editor.registerNodeTransform(LexicalRichText_1.HeadingNode, (node) => {
15171
+ editor.registerNodeTransform(LexicalRichTextExports.HeadingNode, (node) => {
15141
15172
  node.replace($createParagraphNode(), true);
15142
15173
  });
15143
15174
  }
@@ -15288,7 +15319,7 @@ function Editor({ html, label, classes, autoFocus, helperText, showCharCount, al
15288
15319
  theme,
15289
15320
  editable: !readOnly,
15290
15321
  onError,
15291
- nodes: [LexicalRichText_1.HeadingNode],
15322
+ nodes: [LexicalRichTextExports.HeadingNode],
15292
15323
  html: {
15293
15324
  export: htmlExportMap,
15294
15325
  },
@@ -15388,7 +15419,7 @@ const ToolbarFixer = styled('div')(({ theme }) => ({
15388
15419
  maxHeight: `${dimensions.toolbarMenuHeight + dimensions.toolbarHeight}px`,
15389
15420
  },
15390
15421
  }));
15391
- const ToolbarInner = styled('div')(({ colors, theme }) => {
15422
+ const ToolbarInner = styled('div')(({ colors, theme, }) => {
15392
15423
  if (!theme) {
15393
15424
  return {};
15394
15425
  }
@@ -15774,438 +15805,447 @@ const useGrepDialog = () => React__default.useContext(GrepDialogServiceContext);
15774
15805
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
15775
15806
  */
15776
15807
 
15777
- /** Used as the `TypeError` message for "Functions" methods. */
15778
- var FUNC_ERROR_TEXT = 'Expected a function';
15808
+ var lodash_throttle;
15809
+ var hasRequiredLodash_throttle;
15779
15810
 
15780
- /** Used as references for various `Number` constants. */
15781
- var NAN = 0 / 0;
15811
+ function requireLodash_throttle () {
15812
+ if (hasRequiredLodash_throttle) return lodash_throttle;
15813
+ hasRequiredLodash_throttle = 1;
15814
+ /** Used as the `TypeError` message for "Functions" methods. */
15815
+ var FUNC_ERROR_TEXT = 'Expected a function';
15782
15816
 
15783
- /** `Object#toString` result references. */
15784
- var symbolTag = '[object Symbol]';
15817
+ /** Used as references for various `Number` constants. */
15818
+ var NAN = 0 / 0;
15785
15819
 
15786
- /** Used to match leading and trailing whitespace. */
15787
- var reTrim = /^\s+|\s+$/g;
15820
+ /** `Object#toString` result references. */
15821
+ var symbolTag = '[object Symbol]';
15788
15822
 
15789
- /** Used to detect bad signed hexadecimal string values. */
15790
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
15823
+ /** Used to match leading and trailing whitespace. */
15824
+ var reTrim = /^\s+|\s+$/g;
15791
15825
 
15792
- /** Used to detect binary string values. */
15793
- var reIsBinary = /^0b[01]+$/i;
15826
+ /** Used to detect bad signed hexadecimal string values. */
15827
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
15794
15828
 
15795
- /** Used to detect octal string values. */
15796
- var reIsOctal = /^0o[0-7]+$/i;
15829
+ /** Used to detect binary string values. */
15830
+ var reIsBinary = /^0b[01]+$/i;
15797
15831
 
15798
- /** Built-in method references without a dependency on `root`. */
15799
- var freeParseInt = parseInt;
15832
+ /** Used to detect octal string values. */
15833
+ var reIsOctal = /^0o[0-7]+$/i;
15800
15834
 
15801
- /** Detect free variable `global` from Node.js. */
15802
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
15835
+ /** Built-in method references without a dependency on `root`. */
15836
+ var freeParseInt = parseInt;
15803
15837
 
15804
- /** Detect free variable `self`. */
15805
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
15838
+ /** Detect free variable `global` from Node.js. */
15839
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
15806
15840
 
15807
- /** Used as a reference to the global object. */
15808
- var root = freeGlobal || freeSelf || Function('return this')();
15841
+ /** Detect free variable `self`. */
15842
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
15809
15843
 
15810
- /** Used for built-in method references. */
15811
- var objectProto = Object.prototype;
15844
+ /** Used as a reference to the global object. */
15845
+ var root = freeGlobal || freeSelf || Function('return this')();
15812
15846
 
15813
- /**
15814
- * Used to resolve the
15815
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
15816
- * of values.
15817
- */
15818
- var objectToString = objectProto.toString;
15847
+ /** Used for built-in method references. */
15848
+ var objectProto = Object.prototype;
15819
15849
 
15820
- /* Built-in method references for those with the same name as other `lodash` methods. */
15821
- var nativeMax = Math.max,
15822
- nativeMin = Math.min;
15850
+ /**
15851
+ * Used to resolve the
15852
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
15853
+ * of values.
15854
+ */
15855
+ var objectToString = objectProto.toString;
15823
15856
 
15824
- /**
15825
- * Gets the timestamp of the number of milliseconds that have elapsed since
15826
- * the Unix epoch (1 January 1970 00:00:00 UTC).
15827
- *
15828
- * @static
15829
- * @memberOf _
15830
- * @since 2.4.0
15831
- * @category Date
15832
- * @returns {number} Returns the timestamp.
15833
- * @example
15834
- *
15835
- * _.defer(function(stamp) {
15836
- * console.log(_.now() - stamp);
15837
- * }, _.now());
15838
- * // => Logs the number of milliseconds it took for the deferred invocation.
15839
- */
15840
- var now = function() {
15841
- return root.Date.now();
15842
- };
15857
+ /* Built-in method references for those with the same name as other `lodash` methods. */
15858
+ var nativeMax = Math.max,
15859
+ nativeMin = Math.min;
15843
15860
 
15844
- /**
15845
- * Creates a debounced function that delays invoking `func` until after `wait`
15846
- * milliseconds have elapsed since the last time the debounced function was
15847
- * invoked. The debounced function comes with a `cancel` method to cancel
15848
- * delayed `func` invocations and a `flush` method to immediately invoke them.
15849
- * Provide `options` to indicate whether `func` should be invoked on the
15850
- * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
15851
- * with the last arguments provided to the debounced function. Subsequent
15852
- * calls to the debounced function return the result of the last `func`
15853
- * invocation.
15854
- *
15855
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
15856
- * invoked on the trailing edge of the timeout only if the debounced function
15857
- * is invoked more than once during the `wait` timeout.
15858
- *
15859
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
15860
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
15861
- *
15862
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
15863
- * for details over the differences between `_.debounce` and `_.throttle`.
15864
- *
15865
- * @static
15866
- * @memberOf _
15867
- * @since 0.1.0
15868
- * @category Function
15869
- * @param {Function} func The function to debounce.
15870
- * @param {number} [wait=0] The number of milliseconds to delay.
15871
- * @param {Object} [options={}] The options object.
15872
- * @param {boolean} [options.leading=false]
15873
- * Specify invoking on the leading edge of the timeout.
15874
- * @param {number} [options.maxWait]
15875
- * The maximum time `func` is allowed to be delayed before it's invoked.
15876
- * @param {boolean} [options.trailing=true]
15877
- * Specify invoking on the trailing edge of the timeout.
15878
- * @returns {Function} Returns the new debounced function.
15879
- * @example
15880
- *
15881
- * // Avoid costly calculations while the window size is in flux.
15882
- * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
15883
- *
15884
- * // Invoke `sendMail` when clicked, debouncing subsequent calls.
15885
- * jQuery(element).on('click', _.debounce(sendMail, 300, {
15886
- * 'leading': true,
15887
- * 'trailing': false
15888
- * }));
15889
- *
15890
- * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
15891
- * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
15892
- * var source = new EventSource('/stream');
15893
- * jQuery(source).on('message', debounced);
15894
- *
15895
- * // Cancel the trailing debounced invocation.
15896
- * jQuery(window).on('popstate', debounced.cancel);
15897
- */
15898
- function debounce(func, wait, options) {
15899
- var lastArgs,
15900
- lastThis,
15901
- maxWait,
15902
- result,
15903
- timerId,
15904
- lastCallTime,
15905
- lastInvokeTime = 0,
15906
- leading = false,
15907
- maxing = false,
15908
- trailing = true;
15909
-
15910
- if (typeof func != 'function') {
15911
- throw new TypeError(FUNC_ERROR_TEXT);
15912
- }
15913
- wait = toNumber(wait) || 0;
15914
- if (isObject(options)) {
15915
- leading = !!options.leading;
15916
- maxing = 'maxWait' in options;
15917
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
15918
- trailing = 'trailing' in options ? !!options.trailing : trailing;
15919
- }
15920
-
15921
- function invokeFunc(time) {
15922
- var args = lastArgs,
15923
- thisArg = lastThis;
15924
-
15925
- lastArgs = lastThis = undefined;
15926
- lastInvokeTime = time;
15927
- result = func.apply(thisArg, args);
15928
- return result;
15929
- }
15861
+ /**
15862
+ * Gets the timestamp of the number of milliseconds that have elapsed since
15863
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
15864
+ *
15865
+ * @static
15866
+ * @memberOf _
15867
+ * @since 2.4.0
15868
+ * @category Date
15869
+ * @returns {number} Returns the timestamp.
15870
+ * @example
15871
+ *
15872
+ * _.defer(function(stamp) {
15873
+ * console.log(_.now() - stamp);
15874
+ * }, _.now());
15875
+ * // => Logs the number of milliseconds it took for the deferred invocation.
15876
+ */
15877
+ var now = function() {
15878
+ return root.Date.now();
15879
+ };
15930
15880
 
15931
- function leadingEdge(time) {
15932
- // Reset any `maxWait` timer.
15933
- lastInvokeTime = time;
15934
- // Start the timer for the trailing edge.
15935
- timerId = setTimeout(timerExpired, wait);
15936
- // Invoke the leading edge.
15937
- return leading ? invokeFunc(time) : result;
15938
- }
15881
+ /**
15882
+ * Creates a debounced function that delays invoking `func` until after `wait`
15883
+ * milliseconds have elapsed since the last time the debounced function was
15884
+ * invoked. The debounced function comes with a `cancel` method to cancel
15885
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
15886
+ * Provide `options` to indicate whether `func` should be invoked on the
15887
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
15888
+ * with the last arguments provided to the debounced function. Subsequent
15889
+ * calls to the debounced function return the result of the last `func`
15890
+ * invocation.
15891
+ *
15892
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
15893
+ * invoked on the trailing edge of the timeout only if the debounced function
15894
+ * is invoked more than once during the `wait` timeout.
15895
+ *
15896
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
15897
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
15898
+ *
15899
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
15900
+ * for details over the differences between `_.debounce` and `_.throttle`.
15901
+ *
15902
+ * @static
15903
+ * @memberOf _
15904
+ * @since 0.1.0
15905
+ * @category Function
15906
+ * @param {Function} func The function to debounce.
15907
+ * @param {number} [wait=0] The number of milliseconds to delay.
15908
+ * @param {Object} [options={}] The options object.
15909
+ * @param {boolean} [options.leading=false]
15910
+ * Specify invoking on the leading edge of the timeout.
15911
+ * @param {number} [options.maxWait]
15912
+ * The maximum time `func` is allowed to be delayed before it's invoked.
15913
+ * @param {boolean} [options.trailing=true]
15914
+ * Specify invoking on the trailing edge of the timeout.
15915
+ * @returns {Function} Returns the new debounced function.
15916
+ * @example
15917
+ *
15918
+ * // Avoid costly calculations while the window size is in flux.
15919
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
15920
+ *
15921
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
15922
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
15923
+ * 'leading': true,
15924
+ * 'trailing': false
15925
+ * }));
15926
+ *
15927
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
15928
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
15929
+ * var source = new EventSource('/stream');
15930
+ * jQuery(source).on('message', debounced);
15931
+ *
15932
+ * // Cancel the trailing debounced invocation.
15933
+ * jQuery(window).on('popstate', debounced.cancel);
15934
+ */
15935
+ function debounce(func, wait, options) {
15936
+ var lastArgs,
15937
+ lastThis,
15938
+ maxWait,
15939
+ result,
15940
+ timerId,
15941
+ lastCallTime,
15942
+ lastInvokeTime = 0,
15943
+ leading = false,
15944
+ maxing = false,
15945
+ trailing = true;
15946
+
15947
+ if (typeof func != 'function') {
15948
+ throw new TypeError(FUNC_ERROR_TEXT);
15949
+ }
15950
+ wait = toNumber(wait) || 0;
15951
+ if (isObject(options)) {
15952
+ leading = !!options.leading;
15953
+ maxing = 'maxWait' in options;
15954
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
15955
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
15956
+ }
15939
15957
 
15940
- function remainingWait(time) {
15941
- var timeSinceLastCall = time - lastCallTime,
15942
- timeSinceLastInvoke = time - lastInvokeTime,
15943
- result = wait - timeSinceLastCall;
15958
+ function invokeFunc(time) {
15959
+ var args = lastArgs,
15960
+ thisArg = lastThis;
15944
15961
 
15945
- return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
15946
- }
15962
+ lastArgs = lastThis = undefined;
15963
+ lastInvokeTime = time;
15964
+ result = func.apply(thisArg, args);
15965
+ return result;
15966
+ }
15947
15967
 
15948
- function shouldInvoke(time) {
15949
- var timeSinceLastCall = time - lastCallTime,
15950
- timeSinceLastInvoke = time - lastInvokeTime;
15968
+ function leadingEdge(time) {
15969
+ // Reset any `maxWait` timer.
15970
+ lastInvokeTime = time;
15971
+ // Start the timer for the trailing edge.
15972
+ timerId = setTimeout(timerExpired, wait);
15973
+ // Invoke the leading edge.
15974
+ return leading ? invokeFunc(time) : result;
15975
+ }
15951
15976
 
15952
- // Either this is the first call, activity has stopped and we're at the
15953
- // trailing edge, the system time has gone backwards and we're treating
15954
- // it as the trailing edge, or we've hit the `maxWait` limit.
15955
- return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
15956
- (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
15957
- }
15977
+ function remainingWait(time) {
15978
+ var timeSinceLastCall = time - lastCallTime,
15979
+ timeSinceLastInvoke = time - lastInvokeTime,
15980
+ result = wait - timeSinceLastCall;
15958
15981
 
15959
- function timerExpired() {
15960
- var time = now();
15961
- if (shouldInvoke(time)) {
15962
- return trailingEdge(time);
15963
- }
15964
- // Restart the timer.
15965
- timerId = setTimeout(timerExpired, remainingWait(time));
15966
- }
15982
+ return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
15983
+ }
15967
15984
 
15968
- function trailingEdge(time) {
15969
- timerId = undefined;
15985
+ function shouldInvoke(time) {
15986
+ var timeSinceLastCall = time - lastCallTime,
15987
+ timeSinceLastInvoke = time - lastInvokeTime;
15970
15988
 
15971
- // Only invoke if we have `lastArgs` which means `func` has been
15972
- // debounced at least once.
15973
- if (trailing && lastArgs) {
15974
- return invokeFunc(time);
15975
- }
15976
- lastArgs = lastThis = undefined;
15977
- return result;
15978
- }
15989
+ // Either this is the first call, activity has stopped and we're at the
15990
+ // trailing edge, the system time has gone backwards and we're treating
15991
+ // it as the trailing edge, or we've hit the `maxWait` limit.
15992
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
15993
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
15994
+ }
15979
15995
 
15980
- function cancel() {
15981
- if (timerId !== undefined) {
15982
- clearTimeout(timerId);
15983
- }
15984
- lastInvokeTime = 0;
15985
- lastArgs = lastCallTime = lastThis = timerId = undefined;
15986
- }
15996
+ function timerExpired() {
15997
+ var time = now();
15998
+ if (shouldInvoke(time)) {
15999
+ return trailingEdge(time);
16000
+ }
16001
+ // Restart the timer.
16002
+ timerId = setTimeout(timerExpired, remainingWait(time));
16003
+ }
15987
16004
 
15988
- function flush() {
15989
- return timerId === undefined ? result : trailingEdge(now());
15990
- }
16005
+ function trailingEdge(time) {
16006
+ timerId = undefined;
15991
16007
 
15992
- function debounced() {
15993
- var time = now(),
15994
- isInvoking = shouldInvoke(time);
16008
+ // Only invoke if we have `lastArgs` which means `func` has been
16009
+ // debounced at least once.
16010
+ if (trailing && lastArgs) {
16011
+ return invokeFunc(time);
16012
+ }
16013
+ lastArgs = lastThis = undefined;
16014
+ return result;
16015
+ }
15995
16016
 
15996
- lastArgs = arguments;
15997
- lastThis = this;
15998
- lastCallTime = time;
16017
+ function cancel() {
16018
+ if (timerId !== undefined) {
16019
+ clearTimeout(timerId);
16020
+ }
16021
+ lastInvokeTime = 0;
16022
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
16023
+ }
15999
16024
 
16000
- if (isInvoking) {
16001
- if (timerId === undefined) {
16002
- return leadingEdge(lastCallTime);
16003
- }
16004
- if (maxing) {
16005
- // Handle invocations in a tight loop.
16006
- timerId = setTimeout(timerExpired, wait);
16007
- return invokeFunc(lastCallTime);
16008
- }
16009
- }
16010
- if (timerId === undefined) {
16011
- timerId = setTimeout(timerExpired, wait);
16012
- }
16013
- return result;
16014
- }
16015
- debounced.cancel = cancel;
16016
- debounced.flush = flush;
16017
- return debounced;
16018
- }
16025
+ function flush() {
16026
+ return timerId === undefined ? result : trailingEdge(now());
16027
+ }
16019
16028
 
16020
- /**
16021
- * Creates a throttled function that only invokes `func` at most once per
16022
- * every `wait` milliseconds. The throttled function comes with a `cancel`
16023
- * method to cancel delayed `func` invocations and a `flush` method to
16024
- * immediately invoke them. Provide `options` to indicate whether `func`
16025
- * should be invoked on the leading and/or trailing edge of the `wait`
16026
- * timeout. The `func` is invoked with the last arguments provided to the
16027
- * throttled function. Subsequent calls to the throttled function return the
16028
- * result of the last `func` invocation.
16029
- *
16030
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
16031
- * invoked on the trailing edge of the timeout only if the throttled function
16032
- * is invoked more than once during the `wait` timeout.
16033
- *
16034
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
16035
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
16036
- *
16037
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
16038
- * for details over the differences between `_.throttle` and `_.debounce`.
16039
- *
16040
- * @static
16041
- * @memberOf _
16042
- * @since 0.1.0
16043
- * @category Function
16044
- * @param {Function} func The function to throttle.
16045
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
16046
- * @param {Object} [options={}] The options object.
16047
- * @param {boolean} [options.leading=true]
16048
- * Specify invoking on the leading edge of the timeout.
16049
- * @param {boolean} [options.trailing=true]
16050
- * Specify invoking on the trailing edge of the timeout.
16051
- * @returns {Function} Returns the new throttled function.
16052
- * @example
16053
- *
16054
- * // Avoid excessively updating the position while scrolling.
16055
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
16056
- *
16057
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
16058
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
16059
- * jQuery(element).on('click', throttled);
16060
- *
16061
- * // Cancel the trailing throttled invocation.
16062
- * jQuery(window).on('popstate', throttled.cancel);
16063
- */
16064
- function throttle(func, wait, options) {
16065
- var leading = true,
16066
- trailing = true;
16029
+ function debounced() {
16030
+ var time = now(),
16031
+ isInvoking = shouldInvoke(time);
16067
16032
 
16068
- if (typeof func != 'function') {
16069
- throw new TypeError(FUNC_ERROR_TEXT);
16070
- }
16071
- if (isObject(options)) {
16072
- leading = 'leading' in options ? !!options.leading : leading;
16073
- trailing = 'trailing' in options ? !!options.trailing : trailing;
16074
- }
16075
- return debounce(func, wait, {
16076
- 'leading': leading,
16077
- 'maxWait': wait,
16078
- 'trailing': trailing
16079
- });
16080
- }
16033
+ lastArgs = arguments;
16034
+ lastThis = this;
16035
+ lastCallTime = time;
16081
16036
 
16082
- /**
16083
- * Checks if `value` is the
16084
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
16085
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
16086
- *
16087
- * @static
16088
- * @memberOf _
16089
- * @since 0.1.0
16090
- * @category Lang
16091
- * @param {*} value The value to check.
16092
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
16093
- * @example
16094
- *
16095
- * _.isObject({});
16096
- * // => true
16097
- *
16098
- * _.isObject([1, 2, 3]);
16099
- * // => true
16100
- *
16101
- * _.isObject(_.noop);
16102
- * // => true
16103
- *
16104
- * _.isObject(null);
16105
- * // => false
16106
- */
16107
- function isObject(value) {
16108
- var type = typeof value;
16109
- return !!value && (type == 'object' || type == 'function');
16110
- }
16037
+ if (isInvoking) {
16038
+ if (timerId === undefined) {
16039
+ return leadingEdge(lastCallTime);
16040
+ }
16041
+ if (maxing) {
16042
+ // Handle invocations in a tight loop.
16043
+ timerId = setTimeout(timerExpired, wait);
16044
+ return invokeFunc(lastCallTime);
16045
+ }
16046
+ }
16047
+ if (timerId === undefined) {
16048
+ timerId = setTimeout(timerExpired, wait);
16049
+ }
16050
+ return result;
16051
+ }
16052
+ debounced.cancel = cancel;
16053
+ debounced.flush = flush;
16054
+ return debounced;
16055
+ }
16111
16056
 
16112
- /**
16113
- * Checks if `value` is object-like. A value is object-like if it's not `null`
16114
- * and has a `typeof` result of "object".
16115
- *
16116
- * @static
16117
- * @memberOf _
16118
- * @since 4.0.0
16119
- * @category Lang
16120
- * @param {*} value The value to check.
16121
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
16122
- * @example
16123
- *
16124
- * _.isObjectLike({});
16125
- * // => true
16126
- *
16127
- * _.isObjectLike([1, 2, 3]);
16128
- * // => true
16129
- *
16130
- * _.isObjectLike(_.noop);
16131
- * // => false
16132
- *
16133
- * _.isObjectLike(null);
16134
- * // => false
16135
- */
16136
- function isObjectLike(value) {
16137
- return !!value && typeof value == 'object';
16138
- }
16057
+ /**
16058
+ * Creates a throttled function that only invokes `func` at most once per
16059
+ * every `wait` milliseconds. The throttled function comes with a `cancel`
16060
+ * method to cancel delayed `func` invocations and a `flush` method to
16061
+ * immediately invoke them. Provide `options` to indicate whether `func`
16062
+ * should be invoked on the leading and/or trailing edge of the `wait`
16063
+ * timeout. The `func` is invoked with the last arguments provided to the
16064
+ * throttled function. Subsequent calls to the throttled function return the
16065
+ * result of the last `func` invocation.
16066
+ *
16067
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
16068
+ * invoked on the trailing edge of the timeout only if the throttled function
16069
+ * is invoked more than once during the `wait` timeout.
16070
+ *
16071
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
16072
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
16073
+ *
16074
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
16075
+ * for details over the differences between `_.throttle` and `_.debounce`.
16076
+ *
16077
+ * @static
16078
+ * @memberOf _
16079
+ * @since 0.1.0
16080
+ * @category Function
16081
+ * @param {Function} func The function to throttle.
16082
+ * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
16083
+ * @param {Object} [options={}] The options object.
16084
+ * @param {boolean} [options.leading=true]
16085
+ * Specify invoking on the leading edge of the timeout.
16086
+ * @param {boolean} [options.trailing=true]
16087
+ * Specify invoking on the trailing edge of the timeout.
16088
+ * @returns {Function} Returns the new throttled function.
16089
+ * @example
16090
+ *
16091
+ * // Avoid excessively updating the position while scrolling.
16092
+ * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
16093
+ *
16094
+ * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
16095
+ * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
16096
+ * jQuery(element).on('click', throttled);
16097
+ *
16098
+ * // Cancel the trailing throttled invocation.
16099
+ * jQuery(window).on('popstate', throttled.cancel);
16100
+ */
16101
+ function throttle(func, wait, options) {
16102
+ var leading = true,
16103
+ trailing = true;
16139
16104
 
16140
- /**
16141
- * Checks if `value` is classified as a `Symbol` primitive or object.
16142
- *
16143
- * @static
16144
- * @memberOf _
16145
- * @since 4.0.0
16146
- * @category Lang
16147
- * @param {*} value The value to check.
16148
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
16149
- * @example
16150
- *
16151
- * _.isSymbol(Symbol.iterator);
16152
- * // => true
16153
- *
16154
- * _.isSymbol('abc');
16155
- * // => false
16156
- */
16157
- function isSymbol(value) {
16158
- return typeof value == 'symbol' ||
16159
- (isObjectLike(value) && objectToString.call(value) == symbolTag);
16160
- }
16105
+ if (typeof func != 'function') {
16106
+ throw new TypeError(FUNC_ERROR_TEXT);
16107
+ }
16108
+ if (isObject(options)) {
16109
+ leading = 'leading' in options ? !!options.leading : leading;
16110
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
16111
+ }
16112
+ return debounce(func, wait, {
16113
+ 'leading': leading,
16114
+ 'maxWait': wait,
16115
+ 'trailing': trailing
16116
+ });
16117
+ }
16161
16118
 
16162
- /**
16163
- * Converts `value` to a number.
16164
- *
16165
- * @static
16166
- * @memberOf _
16167
- * @since 4.0.0
16168
- * @category Lang
16169
- * @param {*} value The value to process.
16170
- * @returns {number} Returns the number.
16171
- * @example
16172
- *
16173
- * _.toNumber(3.2);
16174
- * // => 3.2
16175
- *
16176
- * _.toNumber(Number.MIN_VALUE);
16177
- * // => 5e-324
16178
- *
16179
- * _.toNumber(Infinity);
16180
- * // => Infinity
16181
- *
16182
- * _.toNumber('3.2');
16183
- * // => 3.2
16184
- */
16185
- function toNumber(value) {
16186
- if (typeof value == 'number') {
16187
- return value;
16188
- }
16189
- if (isSymbol(value)) {
16190
- return NAN;
16191
- }
16192
- if (isObject(value)) {
16193
- var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
16194
- value = isObject(other) ? (other + '') : other;
16195
- }
16196
- if (typeof value != 'string') {
16197
- return value === 0 ? value : +value;
16198
- }
16199
- value = value.replace(reTrim, '');
16200
- var isBinary = reIsBinary.test(value);
16201
- return (isBinary || reIsOctal.test(value))
16202
- ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
16203
- : (reIsBadHex.test(value) ? NAN : +value);
16204
- }
16119
+ /**
16120
+ * Checks if `value` is the
16121
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
16122
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
16123
+ *
16124
+ * @static
16125
+ * @memberOf _
16126
+ * @since 0.1.0
16127
+ * @category Lang
16128
+ * @param {*} value The value to check.
16129
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
16130
+ * @example
16131
+ *
16132
+ * _.isObject({});
16133
+ * // => true
16134
+ *
16135
+ * _.isObject([1, 2, 3]);
16136
+ * // => true
16137
+ *
16138
+ * _.isObject(_.noop);
16139
+ * // => true
16140
+ *
16141
+ * _.isObject(null);
16142
+ * // => false
16143
+ */
16144
+ function isObject(value) {
16145
+ var type = typeof value;
16146
+ return !!value && (type == 'object' || type == 'function');
16147
+ }
16148
+
16149
+ /**
16150
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
16151
+ * and has a `typeof` result of "object".
16152
+ *
16153
+ * @static
16154
+ * @memberOf _
16155
+ * @since 4.0.0
16156
+ * @category Lang
16157
+ * @param {*} value The value to check.
16158
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
16159
+ * @example
16160
+ *
16161
+ * _.isObjectLike({});
16162
+ * // => true
16163
+ *
16164
+ * _.isObjectLike([1, 2, 3]);
16165
+ * // => true
16166
+ *
16167
+ * _.isObjectLike(_.noop);
16168
+ * // => false
16169
+ *
16170
+ * _.isObjectLike(null);
16171
+ * // => false
16172
+ */
16173
+ function isObjectLike(value) {
16174
+ return !!value && typeof value == 'object';
16175
+ }
16176
+
16177
+ /**
16178
+ * Checks if `value` is classified as a `Symbol` primitive or object.
16179
+ *
16180
+ * @static
16181
+ * @memberOf _
16182
+ * @since 4.0.0
16183
+ * @category Lang
16184
+ * @param {*} value The value to check.
16185
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
16186
+ * @example
16187
+ *
16188
+ * _.isSymbol(Symbol.iterator);
16189
+ * // => true
16190
+ *
16191
+ * _.isSymbol('abc');
16192
+ * // => false
16193
+ */
16194
+ function isSymbol(value) {
16195
+ return typeof value == 'symbol' ||
16196
+ (isObjectLike(value) && objectToString.call(value) == symbolTag);
16197
+ }
16198
+
16199
+ /**
16200
+ * Converts `value` to a number.
16201
+ *
16202
+ * @static
16203
+ * @memberOf _
16204
+ * @since 4.0.0
16205
+ * @category Lang
16206
+ * @param {*} value The value to process.
16207
+ * @returns {number} Returns the number.
16208
+ * @example
16209
+ *
16210
+ * _.toNumber(3.2);
16211
+ * // => 3.2
16212
+ *
16213
+ * _.toNumber(Number.MIN_VALUE);
16214
+ * // => 5e-324
16215
+ *
16216
+ * _.toNumber(Infinity);
16217
+ * // => Infinity
16218
+ *
16219
+ * _.toNumber('3.2');
16220
+ * // => 3.2
16221
+ */
16222
+ function toNumber(value) {
16223
+ if (typeof value == 'number') {
16224
+ return value;
16225
+ }
16226
+ if (isSymbol(value)) {
16227
+ return NAN;
16228
+ }
16229
+ if (isObject(value)) {
16230
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
16231
+ value = isObject(other) ? (other + '') : other;
16232
+ }
16233
+ if (typeof value != 'string') {
16234
+ return value === 0 ? value : +value;
16235
+ }
16236
+ value = value.replace(reTrim, '');
16237
+ var isBinary = reIsBinary.test(value);
16238
+ return (isBinary || reIsOctal.test(value))
16239
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
16240
+ : (reIsBadHex.test(value) ? NAN : +value);
16241
+ }
16205
16242
 
16206
- var lodash_throttle = throttle;
16243
+ lodash_throttle = throttle;
16244
+ return lodash_throttle;
16245
+ }
16207
16246
 
16208
- var throttle$1 = /*@__PURE__*/getDefaultExportFromCjs(lodash_throttle);
16247
+ var lodash_throttleExports = requireLodash_throttle();
16248
+ var throttle = /*@__PURE__*/getDefaultExportFromCjs(lodash_throttleExports);
16209
16249
 
16210
16250
  const generateElementId = (element) => {
16211
16251
  const tmpId = element.innerText.replace(/\s/g, '-').toLowerCase();
@@ -16251,7 +16291,7 @@ const GrepTableOfContentProvider = ({ ...props }) => {
16251
16291
  return identifyElementFn(identifier || generateElementId);
16252
16292
  }, [identifier, identifyElementFn]);
16253
16293
  const elements = useContentElements(container, props.selector || defaultSelector, { identify });
16254
- const setSelected = useCallback$1(throttle$1((element, scroll) => {
16294
+ const setSelected = useCallback$1(throttle((element, scroll) => {
16255
16295
  element && scroll && scrollToElement(element);
16256
16296
  _setSelected(element);
16257
16297
  }, 50, { trailing: false }), [_setSelected, scrollToElement]);
@@ -16273,7 +16313,7 @@ const GrepTableOfContentProvider = ({ ...props }) => {
16273
16313
  const target = scrollTarget || window;
16274
16314
  if (!target)
16275
16315
  return;
16276
- const onScroll = throttle$1(() => {
16316
+ const onScroll = throttle(() => {
16277
16317
  const element = getViewportElement();
16278
16318
  setSelected(element);
16279
16319
  }, 50);
@@ -16477,7 +16517,7 @@ const GrepTableOfContentNav = (props) => {
16477
16517
  });
16478
16518
  }, [ref]);
16479
16519
  const onKeyDown = (e) => {
16480
- if (selected && e.which === Key_enum.Key.Tab && e.shiftKey === false) {
16520
+ if (selected && e.which === Key_enumExports.Key.Tab && e.shiftKey === false) {
16481
16521
  const tabindex = selected.getAttribute('tabindex');
16482
16522
  selected.setAttribute('tabindex', '0');
16483
16523
  selected.focus();
@@ -16487,12 +16527,12 @@ const GrepTableOfContentNav = (props) => {
16487
16527
  : selected.setAttribute('tabindex', tabindex);
16488
16528
  });
16489
16529
  }
16490
- if ([Key_enum.Key.UpArrow, Key_enum.Key.DownArrow].includes(e.which)) {
16530
+ if ([Key_enumExports.Key.UpArrow, Key_enumExports.Key.DownArrow].includes(e.which)) {
16491
16531
  e.preventDefault();
16492
16532
  e.stopPropagation();
16493
16533
  const nodes = Object.values(elements);
16494
16534
  const currentIndex = nodes.indexOf(selected);
16495
- const moveIndex = e.which === Key_enum.Key.UpArrow ? -1 : 1;
16535
+ const moveIndex = e.which === Key_enumExports.Key.UpArrow ? -1 : 1;
16496
16536
  const next = nodes[currentIndex + moveIndex];
16497
16537
  next && setSelected(next, true);
16498
16538
  focusSelected();
@@ -16500,13 +16540,13 @@ const GrepTableOfContentNav = (props) => {
16500
16540
  };
16501
16541
  useEffect(() => {
16502
16542
  const onKeyDown = (e) => {
16503
- e.keyCode === Key_enum.Key.Alt && setShowKeyboardHint(true);
16543
+ e.keyCode === Key_enumExports.Key.Alt && setShowKeyboardHint(true);
16504
16544
  if (e.altKey) {
16505
- e.keyCode === Key_enum.Key.I && focusSelected();
16545
+ e.keyCode === Key_enumExports.Key.I && focusSelected();
16506
16546
  }
16507
16547
  };
16508
16548
  const onKeyUp = (e) => {
16509
- e.keyCode === Key_enum.Key.Alt && setShowKeyboardHint(false);
16549
+ e.keyCode === Key_enumExports.Key.Alt && setShowKeyboardHint(false);
16510
16550
  };
16511
16551
  window.addEventListener('keydown', onKeyDown);
16512
16552
  window.addEventListener('keyup', onKeyUp);