@bcgov/design-system-react-components 0.5.0-pr522 → 0.5.0-pr524

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.
@@ -5,7 +5,7 @@ var $dbSRa$react = require('react');
5
5
  var $iETbY$reactdom = require('react-dom');
6
6
 
7
7
  function styleInject(css, ref) {
8
- if ( ref === undefined ) ref = {};
8
+ if ( ref === void 0 ) ref = {};
9
9
  var insertAt = ref.insertAt;
10
10
 
11
11
  if (!css || typeof document === 'undefined') { return; }
@@ -121,7 +121,7 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
121
121
  return {
122
122
  *[Symbol.iterator] () {
123
123
  let parent = keyMap.get(key);
124
- let node = (parent === null || parent === undefined ? undefined : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
124
+ let node = (parent === null || parent === void 0 ? void 0 : parent.firstChildKey) != null ? keyMap.get(parent.firstChildKey) : null;
125
125
  while(node){
126
126
  yield node;
127
127
  node = node.nextKey != null ? keyMap.get(node.nextKey) : undefined;
@@ -136,7 +136,7 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
136
136
  node = this.keyMap.get(node.prevKey);
137
137
  while(node && node.type !== 'item' && node.lastChildKey != null)node = this.keyMap.get(node.lastChildKey);
138
138
  var _node_key;
139
- return (_node_key = node === null || node === undefined ? undefined : node.key) !== null && _node_key !== undefined ? _node_key : null;
139
+ return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
140
140
  }
141
141
  return node.parentKey;
142
142
  }
@@ -156,13 +156,13 @@ class $23b9f4fcf0fe224b$export$408d25a4e12db025 {
156
156
  }
157
157
  getLastKey() {
158
158
  let node = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
159
- while((node === null || node === undefined ? undefined : node.lastChildKey) != null)node = this.keyMap.get(node.lastChildKey);
159
+ while((node === null || node === void 0 ? void 0 : node.lastChildKey) != null)node = this.keyMap.get(node.lastChildKey);
160
160
  var _node_key;
161
- return (_node_key = node === null || node === undefined ? undefined : node.key) !== null && _node_key !== undefined ? _node_key : null;
161
+ return (_node_key = node === null || node === void 0 ? void 0 : node.key) !== null && _node_key !== void 0 ? _node_key : null;
162
162
  }
163
163
  getItem(key) {
164
164
  var _this_keyMap_get;
165
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== undefined ? _this_keyMap_get : null;
165
+ return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
166
166
  }
167
167
  at() {
168
168
  throw new Error('Not implemented');
@@ -256,7 +256,7 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
256
256
  }
257
257
  get isConnected() {
258
258
  var _this_parentNode;
259
- return ((_this_parentNode = this.parentNode) === null || _this_parentNode === undefined ? undefined : _this_parentNode.isConnected) || false;
259
+ return ((_this_parentNode = this.parentNode) === null || _this_parentNode === void 0 ? void 0 : _this_parentNode.isConnected) || false;
260
260
  }
261
261
  appendChild(child) {
262
262
  this.ownerDocument.startTransaction();
@@ -350,14 +350,14 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
350
350
  node.level = this.level;
351
351
  node.parentKey = this.parentNode instanceof $681cc3c98f569e39$export$dc064fe9e59310fd ? this.parentNode.node.key : null;
352
352
  var _this_previousSibling_node_key;
353
- node.prevKey = (_this_previousSibling_node_key = (_this_previousSibling = this.previousSibling) === null || _this_previousSibling === undefined ? undefined : _this_previousSibling.node.key) !== null && _this_previousSibling_node_key !== undefined ? _this_previousSibling_node_key : null;
353
+ node.prevKey = (_this_previousSibling_node_key = (_this_previousSibling = this.previousSibling) === null || _this_previousSibling === void 0 ? void 0 : _this_previousSibling.node.key) !== null && _this_previousSibling_node_key !== void 0 ? _this_previousSibling_node_key : null;
354
354
  var _this_nextSibling_node_key;
355
- node.nextKey = (_this_nextSibling_node_key = (_this_nextSibling = this.nextSibling) === null || _this_nextSibling === undefined ? undefined : _this_nextSibling.node.key) !== null && _this_nextSibling_node_key !== undefined ? _this_nextSibling_node_key : null;
355
+ node.nextKey = (_this_nextSibling_node_key = (_this_nextSibling = this.nextSibling) === null || _this_nextSibling === void 0 ? void 0 : _this_nextSibling.node.key) !== null && _this_nextSibling_node_key !== void 0 ? _this_nextSibling_node_key : null;
356
356
  node.hasChildNodes = !!this.firstChild;
357
357
  var _this_firstChild_node_key;
358
- node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === undefined ? undefined : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== undefined ? _this_firstChild_node_key : null;
358
+ node.firstChildKey = (_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null;
359
359
  var _this_lastChild_node_key;
360
- node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === undefined ? undefined : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== undefined ? _this_lastChild_node_key : null;
360
+ node.lastChildKey = (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null;
361
361
  }
362
362
  setProps(obj, ref, rendered, render) {
363
363
  let node = this.ownerDocument.getMutableNode(this);
@@ -461,7 +461,7 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
461
461
  let collection = this.getMutableCollection();
462
462
  for (let element of this.mutatedNodes)if (element.isConnected) collection.addNode(element.node);
463
463
  var _this_firstChild_node_key, _this_lastChild_node_key;
464
- collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === undefined ? undefined : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== undefined ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === undefined ? undefined : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== undefined ? _this_lastChild_node_key : null, this.isSSR);
464
+ collection.commit((_this_firstChild_node_key = (_this_firstChild = this.firstChild) === null || _this_firstChild === void 0 ? void 0 : _this_firstChild.node.key) !== null && _this_firstChild_node_key !== void 0 ? _this_firstChild_node_key : null, (_this_lastChild_node_key = (_this_lastChild = this.lastChild) === null || _this_lastChild === void 0 ? void 0 : _this_lastChild.node.key) !== null && _this_lastChild_node_key !== void 0 ? _this_lastChild_node_key : null, this.isSSR);
465
465
  this.mutatedNodes.clear();
466
466
  }
467
467
  this.collectionMutated = false;
@@ -518,7 +518,7 @@ function $e948873055cbafe4$export$727c8fc270210f13(props) {
518
518
  rendered = children(item);
519
519
  var _rendered_props_id, _ref;
520
520
  // @ts-ignore
521
- let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== undefined ? _rendered_props_id : item.key) !== null && _ref !== undefined ? _ref : item.id;
521
+ let key = (_ref = (_rendered_props_id = rendered.props.id) !== null && _rendered_props_id !== void 0 ? _rendered_props_id : item.key) !== null && _ref !== void 0 ? _ref : item.id;
522
522
  if (key == null) throw new Error('Could not determine key for item');
523
523
  if (idScope) key = idScope + ':' + key;
524
524
  // Note: only works if wrapped Item passes through id...
@@ -587,7 +587,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
587
587
  // a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
588
588
  // Since React runs the second render immediately after the first, this is safe.
589
589
  // @ts-ignore
590
- let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ($dbSRa$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === undefined ? undefined : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === undefined ? undefined : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
590
+ let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ($dbSRa$react).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
591
591
  if (currentOwner) {
592
592
  let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
593
593
  if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
@@ -739,7 +739,7 @@ function $8ae05eaa5c114e9c$export$7f54fc3180508a52(fn) {
739
739
  // @ts-ignore
740
740
  return ($dbSRa$react.useCallback)((...args)=>{
741
741
  const f = ref.current;
742
- return f === null || f === undefined ? undefined : f(...args);
742
+ return f === null || f === void 0 ? void 0 : f(...args);
743
743
  }, []);
744
744
  }
745
745
 
@@ -896,7 +896,7 @@ function $bdb11010cef70236$export$b4cc09c592e8fdb8(depArray = []) {
896
896
 
897
897
  const $431fbd86ca7dc216$export$b204af158042fbac = (el)=>{
898
898
  var _el_ownerDocument;
899
- return (_el_ownerDocument = el === null || el === undefined ? undefined : el.ownerDocument) !== null && _el_ownerDocument !== undefined ? _el_ownerDocument : document;
899
+ return (_el_ownerDocument = el === null || el === void 0 ? void 0 : el.ownerDocument) !== null && _el_ownerDocument !== void 0 ? _el_ownerDocument : document;
900
900
  };
901
901
  const $431fbd86ca7dc216$export$f21a1ffae260145a = (el)=>{
902
902
  if (el && 'window' in el && el.window === el) return el;
@@ -994,7 +994,7 @@ const $65484d02dcb7eb3e$var$propRe = /^(data-.*)$/;
994
994
  function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, opts = {}) {
995
995
  let { labelable: labelable, isLink: isLink, propNames: propNames } = opts;
996
996
  let filteredProps = {};
997
- for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === undefined ? undefined : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
997
+ for(const prop in props)if (Object.prototype.hasOwnProperty.call(props, prop) && ($65484d02dcb7eb3e$var$DOMPropNames.has(prop) || labelable && $65484d02dcb7eb3e$var$labelablePropNames.has(prop) || isLink && $65484d02dcb7eb3e$var$linkPropNames.has(prop) || (propNames === null || propNames === void 0 ? void 0 : propNames.has(prop)) || $65484d02dcb7eb3e$var$propRe.test(prop))) filteredProps[prop] = props[prop];
998
998
  return filteredProps;
999
999
  }
1000
1000
 
@@ -1075,11 +1075,11 @@ function $7215afc6de606d6b$var$restoreScrollPosition(scrollableElements) {
1075
1075
  */ function $c87311424ea30a05$var$testUserAgent(re) {
1076
1076
  var _window_navigator_userAgentData;
1077
1077
  if (typeof window === 'undefined' || window.navigator == null) return false;
1078
- return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === undefined ? undefined : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
1078
+ return ((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.brands.some((brand)=>re.test(brand.brand))) || re.test(window.navigator.userAgent);
1079
1079
  }
1080
1080
  function $c87311424ea30a05$var$testPlatform(re) {
1081
1081
  var _window_navigator_userAgentData;
1082
- return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === undefined ? undefined : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
1082
+ return typeof window !== 'undefined' && window.navigator != null ? re.test(((_window_navigator_userAgentData = window.navigator['userAgentData']) === null || _window_navigator_userAgentData === void 0 ? void 0 : _window_navigator_userAgentData.platform) || window.navigator.platform) : false;
1083
1083
  }
1084
1084
  function $c87311424ea30a05$var$cached(fn) {
1085
1085
  let res = null;
@@ -1153,7 +1153,7 @@ function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(target, modifiers, setOpening
1153
1153
  // will prevent links with target="_blank" from opening. However, it does allow the event if the
1154
1154
  // Command/Control key is held, which opens the link in a background tab. This seems like the best we can do.
1155
1155
  // See https://bugzilla.mozilla.org/show_bug.cgi?id=257870 and https://bugzilla.mozilla.org/show_bug.cgi?id=746640.
1156
- if (($c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === undefined ? undefined : (_window_event_type = _window_event.type) === null || _window_event_type === undefined ? undefined : _window_event_type.startsWith('key')) && target.target === '_blank') {
1156
+ if (($c87311424ea30a05$export$b7d78993b74f766d)() && ((_window_event = window.event) === null || _window_event === void 0 ? void 0 : (_window_event_type = _window_event.type) === null || _window_event_type === void 0 ? void 0 : _window_event_type.startsWith('key')) && target.target === '_blank') {
1157
1157
  if (($c87311424ea30a05$export$9ac100e40613ea10)()) metaKey = true;
1158
1158
  else ctrlKey = true;
1159
1159
  }
@@ -1201,7 +1201,7 @@ function $ea8dcbcb9ea1b556$var$openSyntheticLink(target, modifiers) {
1201
1201
  function $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {
1202
1202
  let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
1203
1203
  var _props_href;
1204
- const href = router.useHref((_props_href = props.href) !== null && _props_href !== undefined ? _props_href : '');
1204
+ const href = router.useHref((_props_href = props.href) !== null && _props_href !== void 0 ? _props_href : '');
1205
1205
  return {
1206
1206
  'data-href': props.href ? href : undefined,
1207
1207
  'data-target': props.target,
@@ -1214,14 +1214,14 @@ function $ea8dcbcb9ea1b556$export$bdc77b0c0a3a85d6(props) {
1214
1214
  function $ea8dcbcb9ea1b556$export$7e924b3091a3bd18(props) {
1215
1215
  let router = $ea8dcbcb9ea1b556$export$9a302a45f65d0572();
1216
1216
  var _props_href;
1217
- const href = router.useHref((_props_href = props === null || props === undefined ? undefined : props.href) !== null && _props_href !== undefined ? _props_href : '');
1217
+ const href = router.useHref((_props_href = props === null || props === void 0 ? void 0 : props.href) !== null && _props_href !== void 0 ? _props_href : '');
1218
1218
  return {
1219
- href: (props === null || props === undefined ? undefined : props.href) ? href : undefined,
1220
- target: props === null || props === undefined ? undefined : props.target,
1221
- rel: props === null || props === undefined ? undefined : props.rel,
1222
- download: props === null || props === undefined ? undefined : props.download,
1223
- ping: props === null || props === undefined ? undefined : props.ping,
1224
- referrerPolicy: props === null || props === undefined ? undefined : props.referrerPolicy
1219
+ href: (props === null || props === void 0 ? void 0 : props.href) ? href : undefined,
1220
+ target: props === null || props === void 0 ? void 0 : props.target,
1221
+ rel: props === null || props === void 0 ? void 0 : props.rel,
1222
+ download: props === null || props === void 0 ? void 0 : props.download,
1223
+ ping: props === null || props === void 0 ? void 0 : props.ping,
1224
+ referrerPolicy: props === null || props === void 0 ? void 0 : props.referrerPolicy
1225
1225
  };
1226
1226
  }
1227
1227
 
@@ -1314,7 +1314,7 @@ function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
1314
1314
  let globalListeners = ($dbSRa$react.useRef)(new Map());
1315
1315
  let addGlobalListener = ($dbSRa$react.useCallback)((eventTarget, type, listener, options)=>{
1316
1316
  // Make sure we remove the listener after it is called with the `once` option.
1317
- let fn = (options === null || options === undefined ? undefined : options.once) ? (...args)=>{
1317
+ let fn = (options === null || options === void 0 ? void 0 : options.once) ? (...args)=>{
1318
1318
  globalListeners.current.delete(listener);
1319
1319
  listener(...args);
1320
1320
  } : listener;
@@ -1328,7 +1328,7 @@ function $03deb23ff14920c4$export$4eaf04e54aa8eed6() {
1328
1328
  }, []);
1329
1329
  let removeGlobalListener = ($dbSRa$react.useCallback)((eventTarget, type, listener, options)=>{
1330
1330
  var _globalListeners_current_get;
1331
- let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === undefined ? undefined : _globalListeners_current_get.fn) || listener;
1331
+ let fn = ((_globalListeners_current_get = globalListeners.current.get(listener)) === null || _globalListeners_current_get === void 0 ? void 0 : _globalListeners_current_get.fn) || listener;
1332
1332
  eventTarget.removeEventListener(type, fn, options);
1333
1333
  globalListeners.current.delete(listener);
1334
1334
  }, []);
@@ -1446,7 +1446,7 @@ function $9daab02d461809db$var$hasResizeObserver() {
1446
1446
  function $9daab02d461809db$export$683480f191c0e3ea(options) {
1447
1447
  const { ref: ref, box: box, onResize: onResize } = options;
1448
1448
  ($dbSRa$react.useEffect)(()=>{
1449
- let element = ref === null || ref === undefined ? undefined : ref.current;
1449
+ let element = ref === null || ref === void 0 ? void 0 : ref.current;
1450
1450
  if (!element) return;
1451
1451
  if (!$9daab02d461809db$var$hasResizeObserver()) {
1452
1452
  window.addEventListener('resize', onResize, false);
@@ -1589,8 +1589,8 @@ function $5df64b3807dc15ee$export$d699905dd57c73ca() {
1589
1589
  }
1590
1590
  function $5df64b3807dc15ee$var$getViewportSize() {
1591
1591
  return {
1592
- width: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === undefined ? undefined : $5df64b3807dc15ee$var$visualViewport.width) || window.innerWidth,
1593
- height: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === undefined ? undefined : $5df64b3807dc15ee$var$visualViewport.height) || window.innerHeight
1592
+ width: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === void 0 ? void 0 : $5df64b3807dc15ee$var$visualViewport.width) || window.innerWidth,
1593
+ height: $5df64b3807dc15ee$var$visualViewport && ($5df64b3807dc15ee$var$visualViewport === null || $5df64b3807dc15ee$var$visualViewport === void 0 ? void 0 : $5df64b3807dc15ee$var$visualViewport.height) || window.innerHeight
1594
1594
  };
1595
1595
  }
1596
1596
 
@@ -1735,18 +1735,18 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
1735
1735
  // won't cause a scroll if the element is already focused and doesn't behave consistently when an element is partially out of view horizontally vs vertically
1736
1736
  _targetElement_scrollIntoView;
1737
1737
  let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
1738
- targetElement === null || targetElement === undefined ? undefined : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === undefined ? undefined : _targetElement_scrollIntoView.call(targetElement, {
1738
+ targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
1739
1739
  block: 'nearest'
1740
1740
  });
1741
1741
  let { left: newLeft, top: newTop } = targetElement.getBoundingClientRect();
1742
1742
  // Account for sub pixel differences from rounding
1743
1743
  if (Math.abs(originalLeft - newLeft) > 1 || Math.abs(originalTop - newTop) > 1) {
1744
1744
  var _opts_containingElement_scrollIntoView, _opts_containingElement, _targetElement_scrollIntoView1;
1745
- opts === null || opts === undefined ? undefined : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === undefined ? undefined : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === undefined ? undefined : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
1745
+ opts === null || opts === void 0 ? void 0 : (_opts_containingElement = opts.containingElement) === null || _opts_containingElement === void 0 ? void 0 : (_opts_containingElement_scrollIntoView = _opts_containingElement.scrollIntoView) === null || _opts_containingElement_scrollIntoView === void 0 ? void 0 : _opts_containingElement_scrollIntoView.call(_opts_containingElement, {
1746
1746
  block: 'center',
1747
1747
  inline: 'center'
1748
1748
  });
1749
- (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === undefined ? undefined : _targetElement_scrollIntoView1.call(targetElement, {
1749
+ (_targetElement_scrollIntoView1 = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView1 === void 0 ? void 0 : _targetElement_scrollIntoView1.call(targetElement, {
1750
1750
  block: 'nearest'
1751
1751
  });
1752
1752
  }
@@ -1807,10 +1807,10 @@ function $99facab73266f662$export$5add1d006293d136(ref, initialValue, onReset) {
1807
1807
  });
1808
1808
  ($dbSRa$react.useEffect)(()=>{
1809
1809
  var _ref_current;
1810
- let form = ref === null || ref === undefined ? undefined : (_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.form;
1811
- form === null || form === undefined ? undefined : form.addEventListener('reset', handleReset);
1810
+ let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
1811
+ form === null || form === void 0 ? void 0 : form.addEventListener('reset', handleReset);
1812
1812
  return ()=>{
1813
- form === null || form === undefined ? undefined : form.removeEventListener('reset', handleReset);
1813
+ form === null || form === void 0 ? void 0 : form.removeEventListener('reset', handleReset);
1814
1814
  };
1815
1815
  }, [
1816
1816
  ref,
@@ -1919,7 +1919,7 @@ function requireUseSyncExternalStoreShim_production_min () {
1919
1919
  if (hasRequiredUseSyncExternalStoreShim_production_min) return useSyncExternalStoreShim_production_min;
1920
1920
  hasRequiredUseSyncExternalStoreShim_production_min = 1;
1921
1921
  var e=$dbSRa$react;function h(a,b){return a===b&&(0!==a||1/a===1/b)||a!==a&&b!==b}var k="function"===typeof Object.is?Object.is:h,l=e.useState,m=e.useEffect,n=e.useLayoutEffect,p=e.useDebugValue;function q(a,b){var d=b(),f=l({inst:{value:d,getSnapshot:b}}),c=f[0].inst,g=f[1];n(function(){c.value=d;c.getSnapshot=b;r(c)&&g({inst:c});},[a,d,b]);m(function(){r(c)&&g({inst:c});return a(function(){r(c)&&g({inst:c});})},[a]);p(d);return d}
1922
- function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return true}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=undefined!==e.useSyncExternalStore?e.useSyncExternalStore:u;
1922
+ function r(a){var b=a.getSnapshot;a=a.value;try{var d=b();return !k(a,d)}catch(f){return !0}}function t(a,b){return b()}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?t:q;useSyncExternalStoreShim_production_min.useSyncExternalStore=void 0!==e.useSyncExternalStore?e.useSyncExternalStore:u;
1923
1923
  return useSyncExternalStoreShim_production_min;
1924
1924
  }
1925
1925
 
@@ -2244,7 +2244,7 @@ const $e1995378a142960e$var$useSyncExternalStore = typeof ($dbSRa$react)['useSyn
2244
2244
  function $e1995378a142960e$var$useCollectionDocument(createCollection) {
2245
2245
  // The document instance is mutable, and should never change between renders.
2246
2246
  // useSyncExternalStore is used to subscribe to updates, which vends immutable Collection objects.
2247
- let [document] = ($dbSRa$react.useState)(()=>new ($681cc3c98f569e39$export$b34a105447964f9f)((createCollection === null || createCollection === undefined ? undefined : createCollection()) || new ($23b9f4fcf0fe224b$export$408d25a4e12db025)()));
2247
+ let [document] = ($dbSRa$react.useState)(()=>new ($681cc3c98f569e39$export$b34a105447964f9f)((createCollection === null || createCollection === void 0 ? void 0 : createCollection()) || new ($23b9f4fcf0fe224b$export$408d25a4e12db025)()));
2248
2248
  let subscribe = ($dbSRa$react.useCallback)((fn)=>document.subscribe(fn), [
2249
2249
  document
2250
2250
  ]);
@@ -2288,7 +2288,7 @@ function $e1995378a142960e$var$useSSRCollectionNode(Type, props, ref, rendered,
2288
2288
  // collection by the time we need to use the collection to render to the real DOM.
2289
2289
  // After hydration, we switch to client rendering using the portal.
2290
2290
  let itemRef = ($dbSRa$react.useCallback)((element)=>{
2291
- element === null || element === undefined ? undefined : element.setProps(props, ref, rendered, render);
2291
+ element === null || element === void 0 ? void 0 : element.setProps(props, ref, rendered, render);
2292
2292
  }, [
2293
2293
  props,
2294
2294
  ref,
@@ -2338,7 +2338,7 @@ function $e1995378a142960e$export$e953bb1cd0f19726(type, render, useChildren = $
2338
2338
  var _useSSRCollectionNode;
2339
2339
  return (_useSSRCollectionNode = $e1995378a142960e$var$useSSRCollectionNode(type, props, ref, null, children, (node)=>/*#__PURE__*/ ($dbSRa$react).createElement(Component, {
2340
2340
  node: node
2341
- }))) !== null && _useSSRCollectionNode !== undefined ? _useSSRCollectionNode : /*#__PURE__*/ ($dbSRa$react).createElement(($dbSRa$react).Fragment, null);
2341
+ }))) !== null && _useSSRCollectionNode !== void 0 ? _useSSRCollectionNode : /*#__PURE__*/ ($dbSRa$react).createElement(($dbSRa$react).Fragment, null);
2342
2342
  });
2343
2343
  // @ts-ignore
2344
2344
  Result.displayName = render.name;
@@ -2353,8 +2353,8 @@ function $e1995378a142960e$var$useCollectionChildren(options) {
2353
2353
  const $e1995378a142960e$var$CollectionContext = /*#__PURE__*/ ($dbSRa$react.createContext)(null);
2354
2354
  function $e1995378a142960e$export$fb8073518f34e6ec(props) {
2355
2355
  let ctx = ($dbSRa$react.useContext)($e1995378a142960e$var$CollectionContext);
2356
- let dependencies = ((ctx === null || ctx === undefined ? undefined : ctx.dependencies) || []).concat(props.dependencies);
2357
- let idScope = props.idScope || (ctx === null || ctx === undefined ? undefined : ctx.idScope);
2356
+ let dependencies = ((ctx === null || ctx === void 0 ? void 0 : ctx.dependencies) || []).concat(props.dependencies);
2357
+ let idScope = props.idScope || (ctx === null || ctx === void 0 ? void 0 : ctx.idScope);
2358
2358
  let children = $e1995378a142960e$var$useCollectionChildren({
2359
2359
  ...props,
2360
2360
  idScope: idScope,
@@ -2427,7 +2427,7 @@ function $7135fc7d473fd974$var$useCollectionRender(collection, parent, renderDro
2427
2427
  type: 'item',
2428
2428
  key: key,
2429
2429
  dropPosition: 'before'
2430
- }), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === undefined ? undefined : _collection_getItem.type) !== 'item') && renderDropIndicator({
2430
+ }), rendered, (keyAfter == null || ((_collection_getItem = collection.getItem(keyAfter)) === null || _collection_getItem === void 0 ? void 0 : _collection_getItem.type) !== 'item') && renderDropIndicator({
2431
2431
  type: 'item',
2432
2432
  key: key,
2433
2433
  dropPosition: 'after'
@@ -2488,12 +2488,12 @@ function $64fa3d84918910a7$export$4d86445c2cf5e3(props) {
2488
2488
  else if (children == null) computedChildren = defaultChildren;
2489
2489
  else computedChildren = children;
2490
2490
  return {
2491
- className: computedClassName !== null && computedClassName !== undefined ? computedClassName : defaultClassName,
2491
+ className: computedClassName !== null && computedClassName !== void 0 ? computedClassName : defaultClassName,
2492
2492
  style: computedStyle || defaultStyle ? {
2493
2493
  ...defaultStyle,
2494
2494
  ...computedStyle
2495
2495
  } : undefined,
2496
- children: computedChildren !== null && computedChildren !== undefined ? computedChildren : defaultChildren,
2496
+ children: computedChildren !== null && computedChildren !== void 0 ? computedChildren : defaultChildren,
2497
2497
  'data-rac': ''
2498
2498
  };
2499
2499
  }, [
@@ -2812,12 +2812,12 @@ class $f6c31cce2adf654f$var$PressEvent {
2812
2812
  constructor(type, pointerType, originalEvent, state){
2813
2813
  (_class_private_field_init)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, {
2814
2814
  writable: true,
2815
- value: undefined
2815
+ value: void 0
2816
2816
  });
2817
2817
  (_class_private_field_set)(this, $f6c31cce2adf654f$var$_shouldStopPropagation, true);
2818
2818
  var _state_target;
2819
- let currentTarget = (_state_target = state === null || state === undefined ? undefined : state.target) !== null && _state_target !== undefined ? _state_target : originalEvent.currentTarget;
2820
- const rect = currentTarget === null || currentTarget === undefined ? undefined : currentTarget.getBoundingClientRect();
2819
+ let currentTarget = (_state_target = state === null || state === void 0 ? void 0 : state.target) !== null && _state_target !== void 0 ? _state_target : originalEvent.currentTarget;
2820
+ const rect = currentTarget === null || currentTarget === void 0 ? void 0 : currentTarget.getBoundingClientRect();
2821
2821
  let x, y = 0;
2822
2822
  let clientX, clientY = null;
2823
2823
  if (originalEvent.clientX != null && originalEvent.clientY != null) {
@@ -2958,7 +2958,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
2958
2958
  // https://bugs.chromium.org/p/chromium/issues/detail?id=1393524
2959
2959
  // https://bugs.webkit.org/show_bug.cgi?id=55291
2960
2960
  // https://bugzilla.mozilla.org/show_bug.cgi?id=1299553
2961
- if (e.metaKey && ($c87311424ea30a05$export$9ac100e40613ea10)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === undefined ? undefined : _state_metaKeyEvents.set(e.key, e.nativeEvent);
2961
+ if (e.metaKey && ($c87311424ea30a05$export$9ac100e40613ea10)()) (_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.set(e.key, e.nativeEvent);
2962
2962
  } else if (e.key === 'Meta') state.metaKeyEvents = new Map();
2963
2963
  },
2964
2964
  onClick (e) {
@@ -3000,15 +3000,15 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
3000
3000
  ($ea8dcbcb9ea1b556$export$95185d699e05d4d7)(state.target, e, false);
3001
3001
  }
3002
3002
  state.isPressed = false;
3003
- (_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === undefined ? undefined : _state_metaKeyEvents1.delete(e.key);
3004
- } else if (e.key === 'Meta' && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === undefined ? undefined : _state_metaKeyEvents.size)) {
3003
+ (_state_metaKeyEvents1 = state.metaKeyEvents) === null || _state_metaKeyEvents1 === void 0 ? void 0 : _state_metaKeyEvents1.delete(e.key);
3004
+ } else if (e.key === 'Meta' && ((_state_metaKeyEvents = state.metaKeyEvents) === null || _state_metaKeyEvents === void 0 ? void 0 : _state_metaKeyEvents.size)) {
3005
3005
  var _state_target;
3006
3006
  // If we recorded keydown events that occurred while the Meta key was pressed,
3007
3007
  // and those haven't received keyup events already, fire keyup events ourselves.
3008
3008
  // See comment above for more info about the macOS bug causing this.
3009
3009
  let events = state.metaKeyEvents;
3010
3010
  state.metaKeyEvents = undefined;
3011
- for (let event of events.values())(_state_target = state.target) === null || _state_target === undefined ? undefined : _state_target.dispatchEvent(new KeyboardEvent('keyup', event));
3011
+ for (let event of events.values())(_state_target = state.target) === null || _state_target === void 0 ? void 0 : _state_target.dispatchEvent(new KeyboardEvent('keyup', event));
3012
3012
  }
3013
3013
  };
3014
3014
  if (typeof PointerEvent !== 'undefined') {
@@ -3262,7 +3262,7 @@ function $f6c31cce2adf654f$export$45712eceda6fad21(props) {
3262
3262
  return ()=>{
3263
3263
  var _ref_current_target;
3264
3264
  if (!allowTextSelectionOnPress) // eslint-disable-next-line react-hooks/exhaustive-deps
3265
- ($14c0b72509d70225$export$b0d6fa1ab32e3295)((_ref_current_target = ref.current.target) !== null && _ref_current_target !== undefined ? _ref_current_target : undefined);
3265
+ ($14c0b72509d70225$export$b0d6fa1ab32e3295)((_ref_current_target = ref.current.target) !== null && _ref_current_target !== void 0 ? _ref_current_target : undefined);
3266
3266
  };
3267
3267
  }, [
3268
3268
  allowTextSelectionOnPress
@@ -3399,7 +3399,7 @@ function $f6c31cce2adf654f$var$isValidInputKey(target, key) {
3399
3399
  const $f1ab8c75478c6f73$export$3351871ee4b288b8 = /*#__PURE__*/ ($dbSRa$react).forwardRef(({ children: children, ...props }, ref)=>{
3400
3400
  let isRegistered = ($dbSRa$react.useRef)(false);
3401
3401
  let prevContext = ($dbSRa$react.useContext)(($ae1eeba8b9eafd08$export$5165eccb35aaadb5));
3402
- ref = ($df56164dff5785e2$export$4338b53315abf666)(ref || (prevContext === null || prevContext === undefined ? undefined : prevContext.ref));
3402
+ ref = ($df56164dff5785e2$export$4338b53315abf666)(ref || (prevContext === null || prevContext === void 0 ? void 0 : prevContext.ref));
3403
3403
  let context = ($3ef42575df84b30b$export$9d1611c77c2fe928)(prevContext || {}, {
3404
3404
  ...props,
3405
3405
  ref: ref,
@@ -3486,7 +3486,7 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
3486
3486
  };
3487
3487
  }, []);
3488
3488
  let dispatchBlur = ($8ae05eaa5c114e9c$export$7f54fc3180508a52)((e)=>{
3489
- onBlur === null || onBlur === undefined ? undefined : onBlur(e);
3489
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
3490
3490
  });
3491
3491
  // This function is called during a React onFocus event.
3492
3492
  return ($dbSRa$react.useCallback)((e)=>{
@@ -3513,7 +3513,7 @@ function $8a9cb279dc87e130$export$715c682d09d639cc(onBlur) {
3513
3513
  stateRef.current.observer = new MutationObserver(()=>{
3514
3514
  if (stateRef.current.isFocused && target.disabled) {
3515
3515
  var _stateRef_current_observer;
3516
- (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === undefined ? undefined : _stateRef_current_observer.disconnect();
3516
+ (_stateRef_current_observer = stateRef.current.observer) === null || _stateRef_current_observer === void 0 ? void 0 : _stateRef_current_observer.disconnect();
3517
3517
  let relatedTargetEl = target === document.activeElement ? null : document.activeElement;
3518
3518
  target.dispatchEvent(new FocusEvent('blur', {
3519
3519
  relatedTarget: relatedTargetEl
@@ -3782,18 +3782,18 @@ const $507fabe10e71c6fb$var$nonTextInputTypes = new Set([
3782
3782
  * focus visible style can be properly set.
3783
3783
  */ function $507fabe10e71c6fb$var$isKeyboardFocusEvent(isTextInput, modality, e) {
3784
3784
  var _e_target;
3785
- const IHTMLInputElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).HTMLInputElement : HTMLInputElement;
3786
- const IHTMLTextAreaElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
3787
- const IHTMLElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).HTMLElement : HTMLElement;
3788
- const IKeyboardEvent = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === undefined ? undefined : e.target).KeyboardEvent : KeyboardEvent;
3789
- isTextInput = isTextInput || (e === null || e === undefined ? undefined : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === undefined ? undefined : (_e_target = e.target) === null || _e_target === undefined ? undefined : _e_target.type) || (e === null || e === undefined ? undefined : e.target) instanceof IHTMLTextAreaElement || (e === null || e === undefined ? undefined : e.target) instanceof IHTMLElement && (e === null || e === undefined ? undefined : e.target.isContentEditable);
3785
+ const IHTMLInputElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLInputElement : HTMLInputElement;
3786
+ const IHTMLTextAreaElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement;
3787
+ const IHTMLElement = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).HTMLElement : HTMLElement;
3788
+ const IKeyboardEvent = typeof window !== 'undefined' ? ($431fbd86ca7dc216$export$f21a1ffae260145a)(e === null || e === void 0 ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
3789
+ isTextInput = isTextInput || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLInputElement && !$507fabe10e71c6fb$var$nonTextInputTypes.has(e === null || e === void 0 ? void 0 : (_e_target = e.target) === null || _e_target === void 0 ? void 0 : _e_target.type) || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLTextAreaElement || (e === null || e === void 0 ? void 0 : e.target) instanceof IHTMLElement && (e === null || e === void 0 ? void 0 : e.target.isContentEditable);
3790
3790
  return !(isTextInput && modality === 'keyboard' && e instanceof IKeyboardEvent && !$507fabe10e71c6fb$var$FOCUS_VISIBLE_INPUT_KEYS[e.key]);
3791
3791
  }
3792
3792
  function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(fn, deps, opts) {
3793
3793
  $507fabe10e71c6fb$var$setupGlobalFocusEvents();
3794
3794
  ($dbSRa$react.useEffect)(()=>{
3795
3795
  let handler = (modality, e)=>{
3796
- if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === undefined ? undefined : opts.isTextInput), modality, e)) return;
3796
+ if (!$507fabe10e71c6fb$var$isKeyboardFocusEvent(!!(opts === null || opts === void 0 ? void 0 : opts.isTextInput), modality, e)) return;
3797
3797
  fn($507fabe10e71c6fb$export$b9b3dfddab17db27());
3798
3798
  };
3799
3799
  $507fabe10e71c6fb$var$changeHandlers.add(handler);
@@ -4331,7 +4331,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
4331
4331
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
4332
4332
  var _startRef_current;
4333
4333
  // Find all rendered nodes between the sentinels and add them to the scope.
4334
- let node = (_startRef_current = startRef.current) === null || _startRef_current === undefined ? undefined : _startRef_current.nextSibling;
4334
+ let node = (_startRef_current = startRef.current) === null || _startRef_current === void 0 ? void 0 : _startRef_current.nextSibling;
4335
4335
  let nodes = [];
4336
4336
  let stopPropagation = (e)=>e.stopPropagation();
4337
4337
  while(node && node !== endRef.current){
@@ -4372,7 +4372,7 @@ function $9bf71ea28793e738$export$20e40289641fbbb6(props) {
4372
4372
  var _focusScopeTree_getTreeNode_parent, _focusScopeTree_getTreeNode;
4373
4373
  var _focusScopeTree_getTreeNode_parent_scopeRef;
4374
4374
  // Scope may have been re-parented.
4375
- let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === undefined ? undefined : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === undefined ? undefined : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== undefined ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
4375
+ let parentScope = (_focusScopeTree_getTreeNode_parent_scopeRef = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : (_focusScopeTree_getTreeNode_parent = _focusScopeTree_getTreeNode.parent) === null || _focusScopeTree_getTreeNode_parent === void 0 ? void 0 : _focusScopeTree_getTreeNode_parent.scopeRef) !== null && _focusScopeTree_getTreeNode_parent_scopeRef !== void 0 ? _focusScopeTree_getTreeNode_parent_scopeRef : null;
4376
4376
  if ((scopeRef === $9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope(scopeRef, $9bf71ea28793e738$var$activeScope)) && (!parentScope || $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(parentScope))) $9bf71ea28793e738$var$activeScope = parentScope;
4377
4377
  $9bf71ea28793e738$export$d06fae2ee68b101e.removeTreeNode(scopeRef);
4378
4378
  };
@@ -4553,20 +4553,20 @@ function $9bf71ea28793e738$var$useFocusContainment(scopeRef, contain) {
4553
4553
  if (ownerDocument.body.contains(e.target)) {
4554
4554
  var _focusedNode_current;
4555
4555
  focusedNode.current = e.target;
4556
- (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === undefined ? undefined : _focusedNode_current.focus();
4556
+ (_focusedNode_current = focusedNode.current) === null || _focusedNode_current === void 0 ? void 0 : _focusedNode_current.focus();
4557
4557
  } else if ($9bf71ea28793e738$var$activeScope.current) $9bf71ea28793e738$var$focusFirstInScope($9bf71ea28793e738$var$activeScope.current);
4558
4558
  }
4559
4559
  });
4560
4560
  };
4561
4561
  ownerDocument.addEventListener('keydown', onKeyDown, false);
4562
4562
  ownerDocument.addEventListener('focusin', onFocus, false);
4563
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4564
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusout', onBlur, false));
4563
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4564
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusout', onBlur, false));
4565
4565
  return ()=>{
4566
4566
  ownerDocument.removeEventListener('keydown', onKeyDown, false);
4567
4567
  ownerDocument.removeEventListener('focusin', onFocus, false);
4568
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4569
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusout', onBlur, false));
4568
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4569
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusout', onBlur, false));
4570
4570
  };
4571
4571
  }, [
4572
4572
  scopeRef,
@@ -4604,7 +4604,7 @@ function $9bf71ea28793e738$export$1258395f99bf9cbf(element) {
4604
4604
  }
4605
4605
  function $9bf71ea28793e738$var$isAncestorScope(ancestor, scope) {
4606
4606
  var _focusScopeTree_getTreeNode;
4607
- let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === undefined ? undefined : _focusScopeTree_getTreeNode.parent;
4607
+ let parent = (_focusScopeTree_getTreeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scope)) === null || _focusScopeTree_getTreeNode === void 0 ? void 0 : _focusScopeTree_getTreeNode.parent;
4608
4608
  while(parent){
4609
4609
  if (parent.scopeRef === ancestor) return true;
4610
4610
  parent = parent.parent;
@@ -4671,10 +4671,10 @@ function $9bf71ea28793e738$var$useActiveScopeTracker(scopeRef, restore, contain)
4671
4671
  else if (!$9bf71ea28793e738$var$isElementInAnyScope(target)) $9bf71ea28793e738$var$activeScope = null;
4672
4672
  };
4673
4673
  ownerDocument.addEventListener('focusin', onFocus, false);
4674
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4674
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4675
4675
  return ()=>{
4676
4676
  ownerDocument.removeEventListener('focusin', onFocus, false);
4677
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4677
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4678
4678
  };
4679
4679
  }, [
4680
4680
  scopeRef,
@@ -4688,7 +4688,7 @@ function $9bf71ea28793e738$var$shouldRestoreFocus(scopeRef) {
4688
4688
  if (scope.nodeToRestore) return false;
4689
4689
  scope = scope.parent;
4690
4690
  }
4691
- return (scope === null || scope === undefined ? undefined : scope.scopeRef) === scopeRef;
4691
+ return (scope === null || scope === void 0 ? void 0 : scope.scopeRef) === scopeRef;
4692
4692
  }
4693
4693
  function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain) {
4694
4694
  // create a ref during render instead of useLayoutEffect so the active element is saved before a child with autoFocus=true mounts.
@@ -4706,10 +4706,10 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
4706
4706
  if ((!$9bf71ea28793e738$var$activeScope || $9bf71ea28793e738$var$isAncestorScope($9bf71ea28793e738$var$activeScope, scopeRef)) && $9bf71ea28793e738$var$isElementInScope(ownerDocument.activeElement, scopeRef.current)) $9bf71ea28793e738$var$activeScope = scopeRef;
4707
4707
  };
4708
4708
  ownerDocument.addEventListener('focusin', onFocus, false);
4709
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4709
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.addEventListener('focusin', onFocus, false));
4710
4710
  return ()=>{
4711
4711
  ownerDocument.removeEventListener('focusin', onFocus, false);
4712
- scope === null || scope === undefined ? undefined : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4712
+ scope === null || scope === void 0 ? void 0 : scope.forEach((element)=>element.removeEventListener('focusin', onFocus, false));
4713
4713
  };
4714
4714
  // eslint-disable-next-line react-hooks/exhaustive-deps
4715
4715
  }, [
@@ -4774,7 +4774,7 @@ function $9bf71ea28793e738$var$useRestoreFocus(scopeRef, restoreFocus, contain)
4774
4774
  let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
4775
4775
  if (!treeNode) return;
4776
4776
  var _nodeToRestoreRef_current;
4777
- treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== undefined ? _nodeToRestoreRef_current : undefined;
4777
+ treeNode.nodeToRestore = (_nodeToRestoreRef_current = nodeToRestoreRef.current) !== null && _nodeToRestoreRef_current !== void 0 ? _nodeToRestoreRef_current : undefined;
4778
4778
  return ()=>{
4779
4779
  let treeNode = $9bf71ea28793e738$export$d06fae2ee68b101e.getTreeNode(scopeRef);
4780
4780
  if (!treeNode) return;
@@ -4825,17 +4825,17 @@ function $9bf71ea28793e738$var$restoreFocusToElement(node) {
4825
4825
  }))) $9bf71ea28793e738$var$focusElement(node);
4826
4826
  }
4827
4827
  function $9bf71ea28793e738$export$2d6ec8fc375ceafa(root, opts, scope) {
4828
- let selector = (opts === null || opts === undefined ? undefined : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
4828
+ let selector = (opts === null || opts === void 0 ? void 0 : opts.tabbable) ? $9bf71ea28793e738$var$TABBABLE_ELEMENT_SELECTOR : $9bf71ea28793e738$var$FOCUSABLE_ELEMENT_SELECTOR;
4829
4829
  let walker = ($431fbd86ca7dc216$export$b204af158042fbac)(root).createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {
4830
4830
  acceptNode (node) {
4831
4831
  var _opts_from;
4832
4832
  // Skip nodes inside the starting node.
4833
- if (opts === null || opts === undefined ? undefined : (_opts_from = opts.from) === null || _opts_from === undefined ? undefined : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
4834
- if (node.matches(selector) && ($645f2e67b85a24c9$export$e989c0fffaa6b27a)(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === undefined ? undefined : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
4833
+ if (opts === null || opts === void 0 ? void 0 : (_opts_from = opts.from) === null || _opts_from === void 0 ? void 0 : _opts_from.contains(node)) return NodeFilter.FILTER_REJECT;
4834
+ if (node.matches(selector) && ($645f2e67b85a24c9$export$e989c0fffaa6b27a)(node) && (!scope || $9bf71ea28793e738$var$isElementInScope(node, scope)) && (!(opts === null || opts === void 0 ? void 0 : opts.accept) || opts.accept(node))) return NodeFilter.FILTER_ACCEPT;
4835
4835
  return NodeFilter.FILTER_SKIP;
4836
4836
  }
4837
4837
  });
4838
- if (opts === null || opts === undefined ? undefined : opts.from) walker.currentNode = opts.from;
4838
+ if (opts === null || opts === void 0 ? void 0 : opts.from) walker.currentNode = opts.from;
4839
4839
  return walker;
4840
4840
  }
4841
4841
  class $9bf71ea28793e738$var$Tree {
@@ -4846,7 +4846,7 @@ class $9bf71ea28793e738$var$Tree {
4846
4846
  return this.fastMap.get(data);
4847
4847
  }
4848
4848
  addTreeNode(scopeRef, parent, nodeToRestore) {
4849
- let parentNode = this.fastMap.get(parent !== null && parent !== undefined ? parent : null);
4849
+ let parentNode = this.fastMap.get(parent !== null && parent !== void 0 ? parent : null);
4850
4850
  if (!parentNode) return;
4851
4851
  let node = new $9bf71ea28793e738$var$TreeNode({
4852
4852
  scopeRef: scopeRef
@@ -4884,7 +4884,7 @@ class $9bf71ea28793e738$var$Tree {
4884
4884
  var _node_parent;
4885
4885
  let newTree = new $9bf71ea28793e738$var$Tree();
4886
4886
  var _node_parent_scopeRef;
4887
- for (let node of this.traverse())newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === undefined ? undefined : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== undefined ? _node_parent_scopeRef : null, node.nodeToRestore);
4887
+ for (let node of this.traverse())newTree.addTreeNode(node.scopeRef, (_node_parent_scopeRef = (_node_parent = node.parent) === null || _node_parent === void 0 ? void 0 : _node_parent.scopeRef) !== null && _node_parent_scopeRef !== void 0 ? _node_parent_scopeRef : null, node.nodeToRestore);
4888
4888
  return newTree;
4889
4889
  }
4890
4890
  constructor(){
@@ -5020,10 +5020,10 @@ function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(props, domRef) {
5020
5020
 
5021
5021
 
5022
5022
  function $83013635b024ae3d$export$eac1895992b9f3d6(ref, options) {
5023
- let isDisabled = options === null || options === undefined ? undefined : options.isDisabled;
5023
+ let isDisabled = options === null || options === void 0 ? void 0 : options.isDisabled;
5024
5024
  let [hasTabbableChild, setHasTabbableChild] = ($dbSRa$react.useState)(false);
5025
5025
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
5026
- if ((ref === null || ref === undefined ? undefined : ref.current) && !isDisabled) {
5026
+ if ((ref === null || ref === void 0 ? void 0 : ref.current) && !isDisabled) {
5027
5027
  let update = ()=>{
5028
5028
  if (ref.current) {
5029
5029
  let walker = ($9bf71ea28793e738$export$2d6ec8fc375ceafa)(ref.current, {
@@ -5100,7 +5100,7 @@ function $298d61e98472621b$export$dcf14c9974fe2767(props, ref) {
5100
5100
  'aria-current': props['aria-current'],
5101
5101
  onClick: (e)=>{
5102
5102
  var _pressProps_onClick;
5103
- (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === undefined ? undefined : _pressProps_onClick.call(pressProps, e);
5103
+ (_pressProps_onClick = pressProps.onClick) === null || _pressProps_onClick === void 0 ? void 0 : _pressProps_onClick.call(pressProps, e);
5104
5104
  if (deprecatedOnClick) {
5105
5105
  deprecatedOnClick(e);
5106
5106
  console.warn('onClick is deprecated, please use onPress');
@@ -5292,7 +5292,7 @@ class $5b160d28a433310d$export$c17fa47878dc55b6 {
5292
5292
  [locale]: globalStrings[pkg]
5293
5293
  }, locale);
5294
5294
  }
5295
- let dictionary = $5b160d28a433310d$var$cachedGlobalStrings === null || $5b160d28a433310d$var$cachedGlobalStrings === undefined ? undefined : $5b160d28a433310d$var$cachedGlobalStrings[packageName];
5295
+ let dictionary = $5b160d28a433310d$var$cachedGlobalStrings === null || $5b160d28a433310d$var$cachedGlobalStrings === void 0 ? void 0 : $5b160d28a433310d$var$cachedGlobalStrings[packageName];
5296
5296
  if (!dictionary) throw new Error(`Strings for package "${packageName}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);
5297
5297
  return dictionary;
5298
5298
  }
@@ -5518,7 +5518,7 @@ function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'ass
5518
5518
  // if we're in a test environment, announce without waiting
5519
5519
  // @ts-ignore
5520
5520
  if (!(typeof IS_REACT_ACT_ENVIRONMENT === 'boolean' ? IS_REACT_ACT_ENVIRONMENT : typeof jest !== 'undefined')) setTimeout(()=>{
5521
- if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === undefined ? undefined : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === undefined ? undefined : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
5521
+ if ($319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.isAttached()) $319e236875307eab$var$liveAnnouncer === null || $319e236875307eab$var$liveAnnouncer === void 0 ? void 0 : $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
5522
5522
  }, 100);
5523
5523
  else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
5524
5524
  } else $319e236875307eab$var$liveAnnouncer.announce(message, assertiveness, timeout);
@@ -5532,7 +5532,7 @@ function $319e236875307eab$export$a9b970dcc4ae71a9(message, assertiveness = 'ass
5532
5532
  class $319e236875307eab$var$LiveAnnouncer {
5533
5533
  isAttached() {
5534
5534
  var _this_node;
5535
- return (_this_node = this.node) === null || _this_node === undefined ? undefined : _this_node.isConnected;
5535
+ return (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node.isConnected;
5536
5536
  }
5537
5537
  createLog(ariaLive) {
5538
5538
  let node = document.createElement('div');
@@ -5555,8 +5555,8 @@ class $319e236875307eab$var$LiveAnnouncer {
5555
5555
  node.setAttribute('role', 'img');
5556
5556
  node.setAttribute('aria-labelledby', message['aria-labelledby']);
5557
5557
  } else node.textContent = message;
5558
- if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === undefined ? undefined : _this_assertiveLog.appendChild(node);
5559
- else (_this_politeLog = this.politeLog) === null || _this_politeLog === undefined ? undefined : _this_politeLog.appendChild(node);
5558
+ if (assertiveness === 'assertive') (_this_assertiveLog = this.assertiveLog) === null || _this_assertiveLog === void 0 ? void 0 : _this_assertiveLog.appendChild(node);
5559
+ else (_this_politeLog = this.politeLog) === null || _this_politeLog === void 0 ? void 0 : _this_politeLog.appendChild(node);
5560
5560
  if (message !== '') setTimeout(()=>{
5561
5561
  node.remove();
5562
5562
  }, timeout);
@@ -5665,7 +5665,7 @@ function $e5be200c675c3b3a$var$useFormValidationStateImpl(props) {
5665
5665
  validate,
5666
5666
  value
5667
5667
  ]);
5668
- if (builtinValidation === null || builtinValidation === undefined ? undefined : builtinValidation.validationDetails.valid) builtinValidation = undefined;
5668
+ if (builtinValidation === null || builtinValidation === void 0 ? void 0 : builtinValidation.validationDetails.valid) builtinValidation = undefined;
5669
5669
  // Get relevant server errors from the form.
5670
5670
  let serverErrors = ($dbSRa$react.useContext)($e5be200c675c3b3a$export$571b5131b7e65c11);
5671
5671
  let serverErrorMessages = ($dbSRa$react.useMemo)(()=>{
@@ -5799,7 +5799,7 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
5799
5799
  let { validationBehavior: validationBehavior, focus: focus } = props;
5800
5800
  // This is a useLayoutEffect so that it runs before the useEffect in useFormValidationState, which commits the validation change.
5801
5801
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
5802
- if (validationBehavior === 'native' && (ref === null || ref === undefined ? undefined : ref.current)) {
5802
+ if (validationBehavior === 'native' && (ref === null || ref === void 0 ? void 0 : ref.current)) {
5803
5803
  let errorMessage = state.realtimeValidation.isInvalid ? state.realtimeValidation.validationErrors.join(' ') || 'Invalid value.' : '';
5804
5804
  ref.current.setCustomValidity(errorMessage);
5805
5805
  // Prevent default tooltip for validation message.
@@ -5817,11 +5817,11 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
5817
5817
  // This avoids clearing server errors that the user didn't actually fix.
5818
5818
  if (!state.displayValidation.isInvalid) state.commitValidation();
5819
5819
  // Auto focus the first invalid input in a form, unless the error already had its default prevented.
5820
- let form = ref === null || ref === undefined ? undefined : (_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.form;
5820
+ let form = ref === null || ref === void 0 ? void 0 : (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.form;
5821
5821
  if (!e.defaultPrevented && ref && form && $e93e671b31057976$var$getFirstInvalidInput(form) === ref.current) {
5822
5822
  var _ref_current1;
5823
5823
  if (focus) focus();
5824
- else (_ref_current1 = ref.current) === null || _ref_current1 === undefined ? undefined : _ref_current1.focus();
5824
+ else (_ref_current1 = ref.current) === null || _ref_current1 === void 0 ? void 0 : _ref_current1.focus();
5825
5825
  // Always show focus ring.
5826
5826
  ($507fabe10e71c6fb$export$8397ddfc504fdb9a)('keyboard');
5827
5827
  }
@@ -5832,16 +5832,16 @@ function $e93e671b31057976$export$b8473d3665f3a75a(props, state, ref) {
5832
5832
  state.commitValidation();
5833
5833
  });
5834
5834
  ($dbSRa$react.useEffect)(()=>{
5835
- let input = ref === null || ref === undefined ? undefined : ref.current;
5835
+ let input = ref === null || ref === void 0 ? void 0 : ref.current;
5836
5836
  if (!input) return;
5837
5837
  let form = input.form;
5838
5838
  input.addEventListener('invalid', onInvalid);
5839
5839
  input.addEventListener('change', onChange);
5840
- form === null || form === undefined ? undefined : form.addEventListener('reset', onReset);
5840
+ form === null || form === void 0 ? void 0 : form.addEventListener('reset', onReset);
5841
5841
  return ()=>{
5842
5842
  input.removeEventListener('invalid', onInvalid);
5843
5843
  input.removeEventListener('change', onChange);
5844
- form === null || form === undefined ? undefined : form.removeEventListener('reset', onReset);
5844
+ form === null || form === void 0 ? void 0 : form.removeEventListener('reset', onReset);
5845
5845
  };
5846
5846
  }, [
5847
5847
  ref,
@@ -6219,7 +6219,7 @@ function $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {
6219
6219
  });
6220
6220
  let { name: name, descriptionId: descriptionId, errorMessageId: errorMessageId, validationBehavior: validationBehavior } = ($1ae600c947479353$export$ec98120685d4f57d).get(state);
6221
6221
  var _props_validationBehavior;
6222
- validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : validationBehavior;
6222
+ validationBehavior = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : validationBehavior;
6223
6223
  // Local validation for this checkbox.
6224
6224
  let { realtimeValidation: realtimeValidation } = ($e5be200c675c3b3a$export$fc1a364ae1f3ff10)({
6225
6225
  ...props,
@@ -6243,7 +6243,7 @@ function $fba3e38d5ca8983f$export$353b32fc6898d37d(props, state, inputRef) {
6243
6243
  isReadOnly: props.isReadOnly || state.isReadOnly,
6244
6244
  isDisabled: props.isDisabled || state.isDisabled,
6245
6245
  name: props.name || name,
6246
- isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== undefined ? _props_isRequired : state.isRequired,
6246
+ isRequired: (_props_isRequired = props.isRequired) !== null && _props_isRequired !== void 0 ? _props_isRequired : state.isRequired,
6247
6247
  validationBehavior: validationBehavior,
6248
6248
  [($e5be200c675c3b3a$export$a763b9476acd3eb)]: {
6249
6249
  realtimeValidation: combinedRealtimeValidation,
@@ -6472,15 +6472,15 @@ function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
6472
6472
  let width = 0, height = 0, totalWidth = 0, totalHeight = 0, top = 0, left = 0;
6473
6473
  let scroll = {};
6474
6474
  var _visualViewport_scale;
6475
- let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.scale) !== null && _visualViewport_scale !== undefined ? _visualViewport_scale : 1) > 1;
6475
+ let isPinchZoomedIn = ((_visualViewport_scale = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.scale) !== null && _visualViewport_scale !== void 0 ? _visualViewport_scale : 1) > 1;
6476
6476
  if (containerNode.tagName === 'BODY') {
6477
6477
  let documentElement = document.documentElement;
6478
6478
  totalWidth = documentElement.clientWidth;
6479
6479
  totalHeight = documentElement.clientHeight;
6480
6480
  var _visualViewport_width;
6481
- width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.width) !== null && _visualViewport_width !== undefined ? _visualViewport_width : totalWidth;
6481
+ width = (_visualViewport_width = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.width) !== null && _visualViewport_width !== void 0 ? _visualViewport_width : totalWidth;
6482
6482
  var _visualViewport_height;
6483
- height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.height) !== null && _visualViewport_height !== undefined ? _visualViewport_height : totalHeight;
6483
+ height = (_visualViewport_height = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.height) !== null && _visualViewport_height !== void 0 ? _visualViewport_height : totalHeight;
6484
6484
  scroll.top = documentElement.scrollTop || containerNode.scrollTop;
6485
6485
  scroll.left = documentElement.scrollLeft || containerNode.scrollLeft;
6486
6486
  // The goal of the below is to get a top/left value that represents the top/left of the visual viewport with
@@ -6505,9 +6505,9 @@ function $edcf132a9284368a$var$getContainerDimensions(containerNode) {
6505
6505
  scroll.top = 0;
6506
6506
  scroll.left = 0;
6507
6507
  var _visualViewport_pageTop;
6508
- top = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.pageTop) !== null && _visualViewport_pageTop !== undefined ? _visualViewport_pageTop : 0;
6508
+ top = (_visualViewport_pageTop = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.pageTop) !== null && _visualViewport_pageTop !== void 0 ? _visualViewport_pageTop : 0;
6509
6509
  var _visualViewport_pageLeft;
6510
- left = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === undefined ? undefined : $edcf132a9284368a$var$visualViewport.pageLeft) !== null && _visualViewport_pageLeft !== undefined ? _visualViewport_pageLeft : 0;
6510
+ left = (_visualViewport_pageLeft = $edcf132a9284368a$var$visualViewport === null || $edcf132a9284368a$var$visualViewport === void 0 ? void 0 : $edcf132a9284368a$var$visualViewport.pageLeft) !== null && _visualViewport_pageLeft !== void 0 ? _visualViewport_pageLeft : 0;
6511
6511
  }
6512
6512
  return {
6513
6513
  width: width,
@@ -6537,7 +6537,7 @@ boundaryDimensions, // The dimensions of the containing block element that the p
6537
6537
  // position: relative/absolute, it will be different.
6538
6538
  containerDimensions, padding, containerOffsetWithBoundary) {
6539
6539
  var _containerDimensions_scroll_axis;
6540
- let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== undefined ? _containerDimensions_scroll_axis : 0;
6540
+ let containerScroll = (_containerDimensions_scroll_axis = containerDimensions.scroll[axis]) !== null && _containerDimensions_scroll_axis !== void 0 ? _containerDimensions_scroll_axis : 0;
6541
6541
  // The height/width of the boundary. Matches the axis along which we are adjusting the overlay position
6542
6542
  let boundarySize = boundaryDimensions[$edcf132a9284368a$var$AXIS_SIZE[axis]];
6543
6543
  // Calculate the edges of the boundary (accomodating for the boundary padding) and the edges of the overlay.
@@ -6584,14 +6584,14 @@ function $edcf132a9284368a$var$computePosition(childOffset, boundaryDimensions,
6584
6584
  let position = {};
6585
6585
  var _childOffset_crossAxis;
6586
6586
  // button position
6587
- position[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== undefined ? _childOffset_crossAxis : 0;
6587
+ position[crossAxis] = (_childOffset_crossAxis = childOffset[crossAxis]) !== null && _childOffset_crossAxis !== void 0 ? _childOffset_crossAxis : 0;
6588
6588
  var _childOffset_crossSize, _overlaySize_crossSize, _childOffset_crossSize1, _overlaySize_crossSize1;
6589
6589
  if (crossPlacement === 'center') // + (button size / 2) - (overlay size / 2)
6590
6590
  // at this point the overlay center should match the button center
6591
- position[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== undefined ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== undefined ? _overlaySize_crossSize : 0)) / 2;
6591
+ position[crossAxis] += (((_childOffset_crossSize = childOffset[crossSize]) !== null && _childOffset_crossSize !== void 0 ? _childOffset_crossSize : 0) - ((_overlaySize_crossSize = overlaySize[crossSize]) !== null && _overlaySize_crossSize !== void 0 ? _overlaySize_crossSize : 0)) / 2;
6592
6592
  else if (crossPlacement !== crossAxis) // + (button size) - (overlay size)
6593
6593
  // at this point the overlay bottom should match the button bottom
6594
- position[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== undefined ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== undefined ? _overlaySize_crossSize1 : 0);
6594
+ position[crossAxis] += ((_childOffset_crossSize1 = childOffset[crossSize]) !== null && _childOffset_crossSize1 !== void 0 ? _childOffset_crossSize1 : 0) - ((_overlaySize_crossSize1 = overlaySize[crossSize]) !== null && _overlaySize_crossSize1 !== void 0 ? _overlaySize_crossSize1 : 0);
6595
6595
  /* else {
6596
6596
  the overlay top should match the button top
6597
6597
  } */
@@ -6617,23 +6617,23 @@ function $edcf132a9284368a$var$getMaxHeight(position, boundaryDimensions, contai
6617
6617
  var _position_bottom;
6618
6618
  // For cases where position is set via "bottom" instead of "top", we need to calculate the true overlay top with respect to the boundary. Reverse calculate this with the same method
6619
6619
  // used in computePosition.
6620
- let overlayTop = position.top != null ? containerOffsetWithBoundary.top + position.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position.bottom) !== null && _position_bottom !== undefined ? _position_bottom : 0) - overlayHeight);
6620
+ let overlayTop = position.top != null ? containerOffsetWithBoundary.top + position.top : containerOffsetWithBoundary.top + (containerHeight - ((_position_bottom = position.bottom) !== null && _position_bottom !== void 0 ? _position_bottom : 0) - overlayHeight);
6621
6621
  var _boundaryDimensions_scroll_top, _margins_top, _margins_bottom, _boundaryDimensions_scroll_top1, _margins_top1, _margins_bottom1;
6622
6622
  let maxHeight = heightGrowthDirection !== 'top' ? // We want the distance between the top of the overlay to the bottom of the boundary
6623
- Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== undefined ? _boundaryDimensions_scroll_top : 0) - overlayTop // this is the top of the overlay
6624
- - (((_margins_top = margins.top) !== null && _margins_top !== undefined ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== undefined ? _margins_bottom : 0) + padding // save additional space for margin and padding
6623
+ Math.max(0, boundaryDimensions.height + boundaryDimensions.top + ((_boundaryDimensions_scroll_top = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top !== void 0 ? _boundaryDimensions_scroll_top : 0) - overlayTop // this is the top of the overlay
6624
+ - (((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0) + padding // save additional space for margin and padding
6625
6625
  )) : Math.max(0, overlayTop + overlayHeight // this is the bottom of the overlay
6626
- - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== undefined ? _boundaryDimensions_scroll_top1 : 0) // this is the top of the boundary
6627
- ) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== undefined ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== undefined ? _margins_bottom1 : 0) + padding // save additional space for margin and padding
6626
+ - (boundaryDimensions.top + ((_boundaryDimensions_scroll_top1 = boundaryDimensions.scroll.top) !== null && _boundaryDimensions_scroll_top1 !== void 0 ? _boundaryDimensions_scroll_top1 : 0) // this is the top of the boundary
6627
+ ) - (((_margins_top1 = margins.top) !== null && _margins_top1 !== void 0 ? _margins_top1 : 0) + ((_margins_bottom1 = margins.bottom) !== null && _margins_bottom1 !== void 0 ? _margins_bottom1 : 0) + padding // save additional space for margin and padding
6628
6628
  ));
6629
6629
  return Math.min(boundaryDimensions.height - padding * 2, maxHeight);
6630
6630
  }
6631
6631
  function $edcf132a9284368a$var$getAvailableSpace(boundaryDimensions, containerOffsetWithBoundary, childOffset, margins, padding, placementInfo) {
6632
6632
  let { placement: placement, axis: axis, size: size } = placementInfo;
6633
6633
  var _boundaryDimensions_scroll_axis, _margins_axis;
6634
- if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== undefined ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== undefined ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6634
+ if (placement === axis) return Math.max(0, childOffset[axis] - boundaryDimensions[axis] - ((_boundaryDimensions_scroll_axis = boundaryDimensions.scroll[axis]) !== null && _boundaryDimensions_scroll_axis !== void 0 ? _boundaryDimensions_scroll_axis : 0) + containerOffsetWithBoundary[axis] - ((_margins_axis = margins[axis]) !== null && _margins_axis !== void 0 ? _margins_axis : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6635
6635
  var _margins_axis1;
6636
- return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== undefined ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6636
+ return Math.max(0, boundaryDimensions[size] + boundaryDimensions[axis] + boundaryDimensions.scroll[axis] - containerOffsetWithBoundary[axis] - childOffset[axis] - childOffset[size] - ((_margins_axis1 = margins[axis]) !== null && _margins_axis1 !== void 0 ? _margins_axis1 : 0) - margins[$edcf132a9284368a$var$FLIPPED_DIRECTION[axis]] - padding);
6637
6637
  }
6638
6638
  function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset, overlaySize, scrollSize, margins, padding, flip, boundaryDimensions, containerDimensions, containerOffsetWithBoundary, offset, crossOffset, isContainerPositioned, userSetMaxHeight, arrowSize, arrowBoundaryOffset) {
6639
6639
  let placementInfo = $edcf132a9284368a$var$parsePlacement(placementInput);
@@ -6681,7 +6681,7 @@ function $edcf132a9284368a$export$6839422d1f33cee9(placementInput, childOffset,
6681
6681
  const arrowMinPosition = arrowSize / 2 + arrowBoundaryOffset;
6682
6682
  var _margins_left, _margins_right, _margins_top, _margins_bottom;
6683
6683
  // overlaySize[crossSize] - margins = true size of the overlay
6684
- const overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === 'left' ? ((_margins_left = margins.left) !== null && _margins_left !== undefined ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== undefined ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== undefined ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== undefined ? _margins_bottom : 0);
6684
+ const overlayMargin = $edcf132a9284368a$var$AXIS[crossAxis] === 'left' ? ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0) : ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);
6685
6685
  const arrowMaxPosition = overlaySize[crossSize] - overlayMargin - arrowSize / 2 - arrowBoundaryOffset;
6686
6686
  // Min/Max position limits for the arrow with respect to the trigger/overlay anchor element
6687
6687
  // Same margin accomodation done here as well as for the preferredArrowPosition
@@ -6713,9 +6713,9 @@ function $edcf132a9284368a$export$b3ceb0cbf1056d98(opts) {
6713
6713
  let overlaySize = $edcf132a9284368a$var$getOffset(overlayNode);
6714
6714
  let margins = $edcf132a9284368a$var$getMargins(overlayNode);
6715
6715
  var _margins_left, _margins_right;
6716
- overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== undefined ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== undefined ? _margins_right : 0);
6716
+ overlaySize.width += ((_margins_left = margins.left) !== null && _margins_left !== void 0 ? _margins_left : 0) + ((_margins_right = margins.right) !== null && _margins_right !== void 0 ? _margins_right : 0);
6717
6717
  var _margins_top, _margins_bottom;
6718
- overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== undefined ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== undefined ? _margins_bottom : 0);
6718
+ overlaySize.height += ((_margins_top = margins.top) !== null && _margins_top !== void 0 ? _margins_top : 0) + ((_margins_bottom = margins.bottom) !== null && _margins_bottom !== void 0 ? _margins_bottom : 0);
6719
6719
  let scrollSize = $edcf132a9284368a$var$getScroll(scrollNode);
6720
6720
  let boundaryDimensions = $edcf132a9284368a$var$getContainerDimensions(boundaryElement);
6721
6721
  let containerDimensions = $edcf132a9284368a$var$getContainerDimensions(container);
@@ -6870,15 +6870,15 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6870
6870
  // Note, the position freezing breaks if body sizes itself dynamicly with the visual viewport but that might
6871
6871
  // just be a non-realistic use case
6872
6872
  // Upon opening a overlay, record the current visual viewport scale so we can freeze the overlay styles
6873
- let lastScale = ($dbSRa$react.useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.scale);
6873
+ let lastScale = ($dbSRa$react.useRef)($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale);
6874
6874
  ($dbSRa$react.useEffect)(()=>{
6875
- if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.scale;
6875
+ if (isOpen) lastScale.current = $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale;
6876
6876
  }, [
6877
6877
  isOpen
6878
6878
  ]);
6879
6879
  let updatePosition = ($dbSRa$react.useCallback)(()=>{
6880
6880
  if (shouldUpdatePosition === false || !isOpen || !overlayRef.current || !targetRef.current || !boundaryElement) return;
6881
- if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;
6881
+ if (($2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.scale) !== lastScale.current) return;
6882
6882
  // Determine a scroll anchor based on the focused element.
6883
6883
  // This stores the offset of the anchor element from the scroll container
6884
6884
  // so it can be restored after repositioning. This way if the overlay height
@@ -6886,19 +6886,19 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6886
6886
  let anchor = null;
6887
6887
  if (scrollRef.current && scrollRef.current.contains(document.activeElement)) {
6888
6888
  var _document_activeElement;
6889
- let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === undefined ? undefined : _document_activeElement.getBoundingClientRect();
6889
+ let anchorRect = (_document_activeElement = document.activeElement) === null || _document_activeElement === void 0 ? void 0 : _document_activeElement.getBoundingClientRect();
6890
6890
  let scrollRect = scrollRef.current.getBoundingClientRect();
6891
6891
  var _anchorRect_top;
6892
6892
  // Anchor from the top if the offset is in the top half of the scrollable element,
6893
6893
  // otherwise anchor from the bottom.
6894
6894
  anchor = {
6895
6895
  type: 'top',
6896
- offset: ((_anchorRect_top = anchorRect === null || anchorRect === undefined ? undefined : anchorRect.top) !== null && _anchorRect_top !== undefined ? _anchorRect_top : 0) - scrollRect.top
6896
+ offset: ((_anchorRect_top = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.top) !== null && _anchorRect_top !== void 0 ? _anchorRect_top : 0) - scrollRect.top
6897
6897
  };
6898
6898
  if (anchor.offset > scrollRect.height / 2) {
6899
6899
  anchor.type = 'bottom';
6900
6900
  var _anchorRect_bottom;
6901
- anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === undefined ? undefined : anchorRect.bottom) !== null && _anchorRect_bottom !== undefined ? _anchorRect_bottom : 0) - scrollRect.bottom;
6901
+ anchor.offset = ((_anchorRect_bottom = anchorRect === null || anchorRect === void 0 ? void 0 : anchorRect.bottom) !== null && _anchorRect_bottom !== void 0 ? _anchorRect_bottom : 0) - scrollRect.bottom;
6902
6902
  }
6903
6903
  }
6904
6904
  // Always reset the overlay's previous max height if not defined by the user so that we can compensate for
@@ -6909,7 +6909,7 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6909
6909
  overlay.style.top = '0px';
6910
6910
  overlay.style.bottom = '';
6911
6911
  var _window_visualViewport_height;
6912
- overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === undefined ? undefined : _window_visualViewport.height) !== null && _window_visualViewport_height !== undefined ? _window_visualViewport_height : window.innerHeight) + 'px';
6912
+ overlay.style.maxHeight = ((_window_visualViewport_height = (_window_visualViewport = window.visualViewport) === null || _window_visualViewport === void 0 ? void 0 : _window_visualViewport.height) !== null && _window_visualViewport_height !== void 0 ? _window_visualViewport_height : window.innerHeight) + 'px';
6913
6913
  }
6914
6914
  let position = ($edcf132a9284368a$export$b3ceb0cbf1056d98)({
6915
6915
  placement: $2a41e45df1593e64$var$translateRTL(placement, direction),
@@ -6978,17 +6978,17 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
6978
6978
  let onScroll = ()=>{
6979
6979
  if (isResizing.current) onResize();
6980
6980
  };
6981
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);
6982
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);
6981
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('resize', onResize);
6982
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.addEventListener('scroll', onScroll);
6983
6983
  return ()=>{
6984
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);
6985
- $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === undefined ? undefined : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);
6984
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('resize', onResize);
6985
+ $2a41e45df1593e64$var$visualViewport === null || $2a41e45df1593e64$var$visualViewport === void 0 ? void 0 : $2a41e45df1593e64$var$visualViewport.removeEventListener('scroll', onScroll);
6986
6986
  };
6987
6987
  }, [
6988
6988
  updatePosition
6989
6989
  ]);
6990
6990
  let close = ($dbSRa$react.useCallback)(()=>{
6991
- if (!isResizing.current) onClose === null || onClose === undefined ? undefined : onClose();
6991
+ if (!isResizing.current) onClose === null || onClose === void 0 ? void 0 : onClose();
6992
6992
  }, [
6993
6993
  onClose,
6994
6994
  isResizing
@@ -7006,17 +7006,17 @@ function $2a41e45df1593e64$export$d39e1813b3bdd0e1(props) {
7006
7006
  style: {
7007
7007
  position: 'absolute',
7008
7008
  zIndex: 100000,
7009
- ...position === null || position === undefined ? undefined : position.position,
7010
- maxHeight: (_position_maxHeight = position === null || position === undefined ? undefined : position.maxHeight) !== null && _position_maxHeight !== undefined ? _position_maxHeight : '100vh'
7009
+ ...position === null || position === void 0 ? void 0 : position.position,
7010
+ maxHeight: (_position_maxHeight = position === null || position === void 0 ? void 0 : position.maxHeight) !== null && _position_maxHeight !== void 0 ? _position_maxHeight : '100vh'
7011
7011
  }
7012
7012
  },
7013
- placement: (_position_placement = position === null || position === undefined ? undefined : position.placement) !== null && _position_placement !== undefined ? _position_placement : null,
7013
+ placement: (_position_placement = position === null || position === void 0 ? void 0 : position.placement) !== null && _position_placement !== void 0 ? _position_placement : null,
7014
7014
  arrowProps: {
7015
7015
  'aria-hidden': 'true',
7016
7016
  role: 'presentation',
7017
7017
  style: {
7018
- left: position === null || position === undefined ? undefined : position.arrowOffsetLeft,
7019
- top: position === null || position === undefined ? undefined : position.arrowOffsetTop
7018
+ left: position === null || position === void 0 ? void 0 : position.arrowOffsetLeft,
7019
+ top: position === null || position === void 0 ? void 0 : position.arrowOffsetTop
7020
7020
  }
7021
7021
  },
7022
7022
  updatePosition: updatePosition
@@ -7112,7 +7112,7 @@ function $a11501f3d1d39e6c$export$ea8f71083e90600f(props, ref) {
7112
7112
  // do not close the outer overlay. At this point, the active scope should
7113
7113
  // still be the outer overlay, since blur events run before focus.
7114
7114
  if (!e.relatedTarget || ($9bf71ea28793e738$export$1258395f99bf9cbf)(e.relatedTarget)) return;
7115
- if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose === null || onClose === undefined ? undefined : onClose();
7115
+ if (!shouldCloseOnInteractOutside || shouldCloseOnInteractOutside(e.relatedTarget)) onClose === null || onClose === void 0 ? void 0 : onClose();
7116
7116
  }
7117
7117
  });
7118
7118
  let onPointerDownUnderlay = (e)=>{
@@ -7350,8 +7350,8 @@ function $49c51c25361d4cd2$var$preventScrollMobileSafari() {
7350
7350
  }), $49c51c25361d4cd2$var$addEvent(document, 'focus', onFocus, true));
7351
7351
  return ()=>{
7352
7352
  // Restore styles and scroll the page back to where it was.
7353
- restoreScrollableStyles === null || restoreScrollableStyles === undefined ? undefined : restoreScrollableStyles();
7354
- restoreStyles === null || restoreStyles === undefined ? undefined : restoreStyles();
7353
+ restoreScrollableStyles === null || restoreScrollableStyles === void 0 ? void 0 : restoreScrollableStyles();
7354
+ restoreStyles === null || restoreStyles === void 0 ? void 0 : restoreStyles();
7355
7355
  removeEvents();
7356
7356
  };
7357
7357
  }
@@ -7453,7 +7453,7 @@ function $f57aed4a881a3485$export$b47c3594eab58386(props) {
7453
7453
  let isSSR = ($b5e257d569688ac6$export$535bd6ca7f90a273)();
7454
7454
  let { portalContainer: portalContainer = isSSR ? null : document.body, ...rest } = props;
7455
7455
  ($dbSRa$react).useEffect(()=>{
7456
- if (portalContainer === null || portalContainer === undefined ? undefined : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');
7456
+ if (portalContainer === null || portalContainer === void 0 ? void 0 : portalContainer.closest('[data-overlay-container]')) throw new Error('An OverlayContainer must not be inside another container. Please change the portalContainer prop.');
7457
7457
  }, [
7458
7458
  portalContainer
7459
7459
  ]);
@@ -7788,7 +7788,7 @@ function $5e3802645cc19319$export$1c3ebcada18427bf(targets, root = document.body
7788
7788
  };
7789
7789
  let hide = (node)=>{
7790
7790
  var _refCountMap_get;
7791
- let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== undefined ? _refCountMap_get : 0;
7791
+ let refCount = (_refCountMap_get = $5e3802645cc19319$var$refCountMap.get(node)) !== null && _refCountMap_get !== void 0 ? _refCountMap_get : 0;
7792
7792
  // If already aria-hidden, and the ref count is zero, then this element
7793
7793
  // was already hidden and there's nothing for us to do.
7794
7794
  if (node.getAttribute('aria-hidden') === 'true' && refCount === 0) return;
@@ -7921,7 +7921,7 @@ function $f2f8a6077418541e$export$542a6fd13ac93354(props, state) {
7921
7921
  const $96b38030c423d352$export$60d741e20e0aa309 = /*#__PURE__*/ ($dbSRa$react.createContext)({});
7922
7922
  function $96b38030c423d352$export$574e9b0fb070c3b0() {
7923
7923
  var _useContext;
7924
- return (_useContext = ($dbSRa$react.useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== undefined ? _useContext : {};
7924
+ return (_useContext = ($dbSRa$react.useContext)($96b38030c423d352$export$60d741e20e0aa309)) !== null && _useContext !== void 0 ? _useContext : {};
7925
7925
  }
7926
7926
 
7927
7927
  /*
@@ -7968,9 +7968,9 @@ function $337b884510726a0d$export$c6fdb837b070b4ff(props) {
7968
7968
  }
7969
7969
  function $337b884510726a0d$export$14c98a7594375490() {
7970
7970
  let ctx = ($dbSRa$react.useContext)($337b884510726a0d$export$a2200b96afd16271);
7971
- let setContain = ctx === null || ctx === undefined ? undefined : ctx.setContain;
7971
+ let setContain = ctx === null || ctx === void 0 ? void 0 : ctx.setContain;
7972
7972
  ($f0a04ccd8dbdd83b$export$e5c5a5f917a5871c)(()=>{
7973
- setContain === null || setContain === undefined ? undefined : setContain(true);
7973
+ setContain === null || setContain === void 0 ? void 0 : setContain(true);
7974
7974
  }, [
7975
7975
  setContain
7976
7976
  ]);
@@ -8152,7 +8152,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8152
8152
  if (e.altKey && e.key === 'Tab') e.preventDefault();
8153
8153
  // Keyboard events bubble through portals. Don't handle keyboard events
8154
8154
  // for elements outside the collection (e.g. menus).
8155
- if (!((_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.contains(e.target))) return;
8155
+ if (!((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(e.target))) return;
8156
8156
  const navigateToKey = (key, childFocus)=>{
8157
8157
  if (key != null) {
8158
8158
  if (manager.isLink(key) && linkBehavior === 'selection' && selectOnFocus && !($feb5ffebff200149$export$d3e3bd3e26688c04)(e)) {
@@ -8161,7 +8161,7 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8161
8161
  ($iETbY$reactdom.flushSync)(()=>{
8162
8162
  manager.setFocusedKey(key, childFocus);
8163
8163
  });
8164
- let item = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === undefined ? undefined : _scrollRef_current.querySelector(`[data-key="${CSS.escape(key.toString())}"]`);
8164
+ let item = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.querySelector(`[data-key="${CSS.escape(key.toString())}"]`);
8165
8165
  let itemProps = manager.getItemProps(key);
8166
8166
  if (item) router.open(item, e, itemProps.href, itemProps.routerOptions);
8167
8167
  return;
@@ -8176,8 +8176,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8176
8176
  case 'ArrowDown':
8177
8177
  if (delegate.getKeyBelow) {
8178
8178
  var _delegate_getKeyBelow, _delegate_getFirstKey, _delegate_getFirstKey1;
8179
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === undefined ? undefined : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate);
8180
- if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === undefined ? undefined : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
8179
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, manager.focusedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
8180
+ if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate, manager.focusedKey);
8181
8181
  if (nextKey != null) {
8182
8182
  e.preventDefault();
8183
8183
  navigateToKey(nextKey);
@@ -8187,8 +8187,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8187
8187
  case 'ArrowUp':
8188
8188
  if (delegate.getKeyAbove) {
8189
8189
  var _delegate_getKeyAbove, _delegate_getLastKey, _delegate_getLastKey1;
8190
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === undefined ? undefined : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === undefined ? undefined : _delegate_getLastKey.call(delegate);
8191
- if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === undefined ? undefined : _delegate_getLastKey1.call(delegate, manager.focusedKey);
8190
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, manager.focusedKey) : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate);
8191
+ if (nextKey == null && shouldFocusWrap) nextKey = (_delegate_getLastKey1 = delegate.getLastKey) === null || _delegate_getLastKey1 === void 0 ? void 0 : _delegate_getLastKey1.call(delegate, manager.focusedKey);
8192
8192
  if (nextKey != null) {
8193
8193
  e.preventDefault();
8194
8194
  navigateToKey(nextKey);
@@ -8198,8 +8198,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8198
8198
  case 'ArrowLeft':
8199
8199
  if (delegate.getKeyLeftOf) {
8200
8200
  var _delegate_getKeyLeftOf, _delegate_getFirstKey2, _delegate_getLastKey2;
8201
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === undefined ? undefined : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
8202
- if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === undefined ? undefined : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === undefined ? undefined : _delegate_getLastKey2.call(delegate, manager.focusedKey);
8201
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyLeftOf = delegate.getKeyLeftOf) === null || _delegate_getKeyLeftOf === void 0 ? void 0 : _delegate_getKeyLeftOf.call(delegate, manager.focusedKey) : null;
8202
+ if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getFirstKey2 = delegate.getFirstKey) === null || _delegate_getFirstKey2 === void 0 ? void 0 : _delegate_getFirstKey2.call(delegate, manager.focusedKey) : (_delegate_getLastKey2 = delegate.getLastKey) === null || _delegate_getLastKey2 === void 0 ? void 0 : _delegate_getLastKey2.call(delegate, manager.focusedKey);
8203
8203
  if (nextKey != null) {
8204
8204
  e.preventDefault();
8205
8205
  navigateToKey(nextKey, direction === 'rtl' ? 'first' : 'last');
@@ -8209,8 +8209,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8209
8209
  case 'ArrowRight':
8210
8210
  if (delegate.getKeyRightOf) {
8211
8211
  var _delegate_getKeyRightOf, _delegate_getLastKey3, _delegate_getFirstKey3;
8212
- let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === undefined ? undefined : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
8213
- if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === undefined ? undefined : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === undefined ? undefined : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
8212
+ let nextKey = manager.focusedKey != null ? (_delegate_getKeyRightOf = delegate.getKeyRightOf) === null || _delegate_getKeyRightOf === void 0 ? void 0 : _delegate_getKeyRightOf.call(delegate, manager.focusedKey) : null;
8213
+ if (nextKey == null && shouldFocusWrap) nextKey = direction === 'rtl' ? (_delegate_getLastKey3 = delegate.getLastKey) === null || _delegate_getLastKey3 === void 0 ? void 0 : _delegate_getLastKey3.call(delegate, manager.focusedKey) : (_delegate_getFirstKey3 = delegate.getFirstKey) === null || _delegate_getFirstKey3 === void 0 ? void 0 : _delegate_getFirstKey3.call(delegate, manager.focusedKey);
8214
8214
  if (nextKey != null) {
8215
8215
  e.preventDefault();
8216
8216
  navigateToKey(nextKey, direction === 'rtl' ? 'last' : 'first');
@@ -8305,8 +8305,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8305
8305
  var _scrollRef_current, _scrollRef_current1;
8306
8306
  var _scrollRef_current_scrollTop, _scrollRef_current_scrollLeft;
8307
8307
  scrollPos.current = {
8308
- top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === undefined ? undefined : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== undefined ? _scrollRef_current_scrollTop : 0,
8309
- left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === undefined ? undefined : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== undefined ? _scrollRef_current_scrollLeft : 0
8308
+ top: (_scrollRef_current_scrollTop = (_scrollRef_current = scrollRef.current) === null || _scrollRef_current === void 0 ? void 0 : _scrollRef_current.scrollTop) !== null && _scrollRef_current_scrollTop !== void 0 ? _scrollRef_current_scrollTop : 0,
8309
+ left: (_scrollRef_current_scrollLeft = (_scrollRef_current1 = scrollRef.current) === null || _scrollRef_current1 === void 0 ? void 0 : _scrollRef_current1.scrollLeft) !== null && _scrollRef_current_scrollLeft !== void 0 ? _scrollRef_current_scrollLeft : 0
8310
8310
  };
8311
8311
  });
8312
8312
  let onFocus = (e)=>{
@@ -8331,8 +8331,8 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8331
8331
  // and either focus the first or last item accordingly.
8332
8332
  let relatedTarget = e.relatedTarget;
8333
8333
  var _manager_lastSelectedKey, _manager_firstSelectedKey;
8334
- if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== undefined ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === undefined ? undefined : _delegate_getLastKey.call(delegate));
8335
- else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== undefined ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate));
8334
+ if (relatedTarget && e.currentTarget.compareDocumentPosition(relatedTarget) & Node.DOCUMENT_POSITION_FOLLOWING) navigateToFirstKey((_manager_lastSelectedKey = manager.lastSelectedKey) !== null && _manager_lastSelectedKey !== void 0 ? _manager_lastSelectedKey : (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate));
8335
+ else navigateToFirstKey((_manager_firstSelectedKey = manager.firstSelectedKey) !== null && _manager_firstSelectedKey !== void 0 ? _manager_firstSelectedKey : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate));
8336
8336
  } else if (!isVirtualized && scrollRef.current) {
8337
8337
  // Restore the scroll position to what it was before.
8338
8338
  scrollRef.current.scrollTop = scrollPos.current.top;
@@ -8362,9 +8362,9 @@ function $ae20dd8cbca75726$export$d6daf82dcd84e87c(options) {
8362
8362
  let focusedKey = null;
8363
8363
  var _delegate_getFirstKey1;
8364
8364
  // Check focus strategy to determine which item to focus
8365
- if (autoFocus === 'first') focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== undefined ? _delegate_getFirstKey1 : null;
8365
+ if (autoFocus === 'first') focusedKey = (_delegate_getFirstKey1 = (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate)) !== null && _delegate_getFirstKey1 !== void 0 ? _delegate_getFirstKey1 : null;
8366
8366
  var _delegate_getLastKey1;
8367
- if (autoFocus === 'last') focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === undefined ? undefined : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== undefined ? _delegate_getLastKey1 : null;
8367
+ if (autoFocus === 'last') focusedKey = (_delegate_getLastKey1 = (_delegate_getLastKey = delegate.getLastKey) === null || _delegate_getLastKey === void 0 ? void 0 : _delegate_getLastKey.call(delegate)) !== null && _delegate_getLastKey1 !== void 0 ? _delegate_getLastKey1 : null;
8368
8368
  // If there are any selected keys, make the first one the new focus target
8369
8369
  let selectedKeys = manager.selectedKeys;
8370
8370
  if (selectedKeys.size) {
@@ -8628,11 +8628,11 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
8628
8628
  }
8629
8629
  function $880e95eb8b93ba9a$var$isActionKey() {
8630
8630
  let event = window.event;
8631
- return (event === null || event === undefined ? undefined : event.key) === 'Enter';
8631
+ return (event === null || event === void 0 ? void 0 : event.key) === 'Enter';
8632
8632
  }
8633
8633
  function $880e95eb8b93ba9a$var$isSelectionKey() {
8634
8634
  let event = window.event;
8635
- return (event === null || event === undefined ? undefined : event.key) === ' ' || (event === null || event === undefined ? undefined : event.code) === 'Space';
8635
+ return (event === null || event === void 0 ? void 0 : event.key) === ' ' || (event === null || event === void 0 ? void 0 : event.code) === 'Space';
8636
8636
  }
8637
8637
 
8638
8638
  /*
@@ -8664,18 +8664,18 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
8664
8664
  let container = this.ref.current;
8665
8665
  var _container_scrollWidth, _container_scrollHeight;
8666
8666
  return {
8667
- width: (_container_scrollWidth = container === null || container === undefined ? undefined : container.scrollWidth) !== null && _container_scrollWidth !== undefined ? _container_scrollWidth : 0,
8668
- height: (_container_scrollHeight = container === null || container === undefined ? undefined : container.scrollHeight) !== null && _container_scrollHeight !== undefined ? _container_scrollHeight : 0
8667
+ width: (_container_scrollWidth = container === null || container === void 0 ? void 0 : container.scrollWidth) !== null && _container_scrollWidth !== void 0 ? _container_scrollWidth : 0,
8668
+ height: (_container_scrollHeight = container === null || container === void 0 ? void 0 : container.scrollHeight) !== null && _container_scrollHeight !== void 0 ? _container_scrollHeight : 0
8669
8669
  };
8670
8670
  }
8671
8671
  getVisibleRect() {
8672
8672
  let container = this.ref.current;
8673
8673
  var _container_scrollLeft, _container_scrollTop, _container_offsetWidth, _container_offsetHeight;
8674
8674
  return {
8675
- x: (_container_scrollLeft = container === null || container === undefined ? undefined : container.scrollLeft) !== null && _container_scrollLeft !== undefined ? _container_scrollLeft : 0,
8676
- y: (_container_scrollTop = container === null || container === undefined ? undefined : container.scrollTop) !== null && _container_scrollTop !== undefined ? _container_scrollTop : 0,
8677
- width: (_container_offsetWidth = container === null || container === undefined ? undefined : container.offsetWidth) !== null && _container_offsetWidth !== undefined ? _container_offsetWidth : 0,
8678
- height: (_container_offsetHeight = container === null || container === undefined ? undefined : container.offsetHeight) !== null && _container_offsetHeight !== undefined ? _container_offsetHeight : 0
8675
+ x: (_container_scrollLeft = container === null || container === void 0 ? void 0 : container.scrollLeft) !== null && _container_scrollLeft !== void 0 ? _container_scrollLeft : 0,
8676
+ y: (_container_scrollTop = container === null || container === void 0 ? void 0 : container.scrollTop) !== null && _container_scrollTop !== void 0 ? _container_scrollTop : 0,
8677
+ width: (_container_offsetWidth = container === null || container === void 0 ? void 0 : container.offsetWidth) !== null && _container_offsetWidth !== void 0 ? _container_offsetWidth : 0,
8678
+ height: (_container_offsetHeight = container === null || container === void 0 ? void 0 : container.offsetHeight) !== null && _container_offsetHeight !== void 0 ? _container_offsetHeight : 0
8679
8679
  };
8680
8680
  }
8681
8681
  constructor(ref){
@@ -8698,13 +8698,13 @@ function $880e95eb8b93ba9a$var$isSelectionKey() {
8698
8698
  class $2a25aae57d74318e$export$a05409b8bb224a5a {
8699
8699
  isDisabled(item) {
8700
8700
  var _item_props;
8701
- return this.disabledBehavior === 'all' && (((_item_props = item.props) === null || _item_props === undefined ? undefined : _item_props.isDisabled) || this.disabledKeys.has(item.key));
8701
+ return this.disabledBehavior === 'all' && (((_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || this.disabledKeys.has(item.key));
8702
8702
  }
8703
8703
  findNextNonDisabled(key, getNext) {
8704
8704
  let nextKey = key;
8705
8705
  while(nextKey != null){
8706
8706
  let item = this.collection.getItem(nextKey);
8707
- if ((item === null || item === undefined ? undefined : item.type) === 'item' && !this.isDisabled(item)) return nextKey;
8707
+ if ((item === null || item === void 0 ? void 0 : item.type) === 'item' && !this.isDisabled(item)) return nextKey;
8708
8708
  nextKey = getNext(nextKey);
8709
8709
  }
8710
8710
  return null;
@@ -8802,7 +8802,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
8802
8802
  itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
8803
8803
  }
8804
8804
  }
8805
- return nextKey !== null && nextKey !== undefined ? nextKey : this.getFirstKey();
8805
+ return nextKey !== null && nextKey !== void 0 ? nextKey : this.getFirstKey();
8806
8806
  }
8807
8807
  getKeyPageBelow(key) {
8808
8808
  let menu = this.ref.current;
@@ -8823,7 +8823,7 @@ class $2a25aae57d74318e$export$a05409b8bb224a5a {
8823
8823
  itemRect = nextKey == null ? null : this.layoutDelegate.getItemRect(nextKey);
8824
8824
  }
8825
8825
  }
8826
- return nextKey !== null && nextKey !== undefined ? nextKey : this.getLastKey();
8826
+ return nextKey !== null && nextKey !== void 0 ? nextKey : this.getLastKey();
8827
8827
  }
8828
8828
  getKeyForSearch(search, fromKey) {
8829
8829
  if (!this.collator) return null;
@@ -9045,7 +9045,7 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9045
9045
  let v = partialNode.value;
9046
9046
  if (v != null) {
9047
9047
  var _v_key;
9048
- let key = (_v_key = v.key) !== null && _v_key !== undefined ? _v_key : v.id;
9048
+ let key = (_v_key = v.key) !== null && _v_key !== void 0 ? _v_key : v.id;
9049
9049
  if (key == null) throw new Error('No key found for item');
9050
9050
  return key;
9051
9051
  }
@@ -9063,7 +9063,7 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9063
9063
  children.push(child);
9064
9064
  });
9065
9065
  var _partialNode_index;
9066
- let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== undefined ? _partialNode_index : 0;
9066
+ let index = (_partialNode_index = partialNode.index) !== null && _partialNode_index !== void 0 ? _partialNode_index : 0;
9067
9067
  for (const child of children)yield* this.getFullNode({
9068
9068
  element: child,
9069
9069
  index: index++
@@ -9093,13 +9093,13 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9093
9093
  }
9094
9094
  let childNodes = type.getCollectionNode(element.props, this.context);
9095
9095
  var _partialNode_index1;
9096
- let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== undefined ? _partialNode_index1 : 0;
9096
+ let index = (_partialNode_index1 = partialNode.index) !== null && _partialNode_index1 !== void 0 ? _partialNode_index1 : 0;
9097
9097
  let result = childNodes.next();
9098
9098
  while(!result.done && result.value){
9099
9099
  let childNode = result.value;
9100
9100
  partialNode.index = index;
9101
9101
  var _childNode_key;
9102
- let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== undefined ? _childNode_key : null;
9102
+ let nodeKey = (_childNode_key = childNode.key) !== null && _childNode_key !== void 0 ? _childNode_key : null;
9103
9103
  if (nodeKey == null) nodeKey = childNode.element ? null : this.getKey(element, partialNode, state, parentKey);
9104
9104
  let nodes = this.getFullNode({
9105
9105
  ...childNode,
@@ -9113,12 +9113,12 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9113
9113
  for (let node of children){
9114
9114
  var _childNode_value, _ref;
9115
9115
  // Cache the node based on its value
9116
- node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== undefined ? _childNode_value : partialNode.value) !== null && _ref !== undefined ? _ref : null;
9116
+ node.value = (_ref = (_childNode_value = childNode.value) !== null && _childNode_value !== void 0 ? _childNode_value : partialNode.value) !== null && _ref !== void 0 ? _ref : null;
9117
9117
  if (node.value) this.cache.set(node.value, node);
9118
9118
  var _parentNode_type;
9119
9119
  // The partial node may have specified a type for the child in order to specify a constraint.
9120
9120
  // Verify that the full node that was built recursively matches this type.
9121
- if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === undefined ? undefined : parentNode.type) !== null && _parentNode_type !== undefined ? _parentNode_type : 'unknown parent type')}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
9121
+ if (partialNode.type && node.type !== partialNode.type) throw new Error(`Unsupported type <${$eb2240fc39a57fa5$var$capitalize(node.type)}> in <${$eb2240fc39a57fa5$var$capitalize((_parentNode_type = parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== null && _parentNode_type !== void 0 ? _parentNode_type : 'unknown parent type')}>. Only <${$eb2240fc39a57fa5$var$capitalize(partialNode.type)}> is supported.`);
9122
9122
  index++;
9123
9123
  yield node;
9124
9124
  }
@@ -9136,11 +9136,11 @@ class $eb2240fc39a57fa5$export$bf788dd355e3a401 {
9136
9136
  props: partialNode.props,
9137
9137
  key: partialNode.key,
9138
9138
  parentKey: parentNode ? parentNode.key : null,
9139
- value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== undefined ? _partialNode_value : null,
9139
+ value: (_partialNode_value = partialNode.value) !== null && _partialNode_value !== void 0 ? _partialNode_value : null,
9140
9140
  level: parentNode ? parentNode.level + 1 : 0,
9141
9141
  index: partialNode.index,
9142
9142
  rendered: partialNode.rendered,
9143
- textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== undefined ? _partialNode_textValue : '',
9143
+ textValue: (_partialNode_textValue = partialNode.textValue) !== null && _partialNode_textValue !== void 0 ? _partialNode_textValue : '',
9144
9144
  'aria-label': partialNode['aria-label'],
9145
9145
  wrapper: partialNode.wrapper,
9146
9146
  shouldInvalidate: partialNode.shouldInvalidate,
@@ -9288,7 +9288,7 @@ function $c5a24bc478652b5f$export$8c434b3a7a4dad6(collection, a, b) {
9288
9288
  function $c5a24bc478652b5f$var$getAncestors(collection, node) {
9289
9289
  let parents = [];
9290
9290
  let currNode = node;
9291
- while((currNode === null || currNode === undefined ? undefined : currNode.parentKey) != null){
9291
+ while((currNode === null || currNode === void 0 ? void 0 : currNode.parentKey) != null){
9292
9292
  currNode = collection.getItem(currNode.parentKey);
9293
9293
  if (currNode) parents.unshift(currNode);
9294
9294
  }
@@ -9341,17 +9341,17 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9341
9341
  let { key: key } = props;
9342
9342
  let data = ($b1f0cad8af73213b$export$3585ede4d035bf14).get(state);
9343
9343
  var _props_isDisabled;
9344
- let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== undefined ? _props_isDisabled : state.selectionManager.isDisabled(key);
9344
+ let isDisabled = (_props_isDisabled = props.isDisabled) !== null && _props_isDisabled !== void 0 ? _props_isDisabled : state.selectionManager.isDisabled(key);
9345
9345
  var _props_isSelected;
9346
- let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== undefined ? _props_isSelected : state.selectionManager.isSelected(key);
9346
+ let isSelected = (_props_isSelected = props.isSelected) !== null && _props_isSelected !== void 0 ? _props_isSelected : state.selectionManager.isSelected(key);
9347
9347
  var _props_shouldSelectOnPressUp;
9348
- let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== undefined ? _props_shouldSelectOnPressUp : data === null || data === undefined ? undefined : data.shouldSelectOnPressUp;
9348
+ let shouldSelectOnPressUp = (_props_shouldSelectOnPressUp = props.shouldSelectOnPressUp) !== null && _props_shouldSelectOnPressUp !== void 0 ? _props_shouldSelectOnPressUp : data === null || data === void 0 ? void 0 : data.shouldSelectOnPressUp;
9349
9349
  var _props_shouldFocusOnHover;
9350
- let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== undefined ? _props_shouldFocusOnHover : data === null || data === undefined ? undefined : data.shouldFocusOnHover;
9350
+ let shouldFocusOnHover = (_props_shouldFocusOnHover = props.shouldFocusOnHover) !== null && _props_shouldFocusOnHover !== void 0 ? _props_shouldFocusOnHover : data === null || data === void 0 ? void 0 : data.shouldFocusOnHover;
9351
9351
  var _props_shouldUseVirtualFocus;
9352
- let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== undefined ? _props_shouldUseVirtualFocus : data === null || data === undefined ? undefined : data.shouldUseVirtualFocus;
9352
+ let shouldUseVirtualFocus = (_props_shouldUseVirtualFocus = props.shouldUseVirtualFocus) !== null && _props_shouldUseVirtualFocus !== void 0 ? _props_shouldUseVirtualFocus : data === null || data === void 0 ? void 0 : data.shouldUseVirtualFocus;
9353
9353
  var _props_isVirtualized;
9354
- let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== undefined ? _props_isVirtualized : data === null || data === undefined ? undefined : data.isVirtualized;
9354
+ let isVirtualized = (_props_isVirtualized = props.isVirtualized) !== null && _props_isVirtualized !== void 0 ? _props_isVirtualized : data === null || data === void 0 ? void 0 : data.isVirtualized;
9355
9355
  let labelId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)();
9356
9356
  let descriptionId = ($bdb11010cef70236$export$b4cc09c592e8fdb8)();
9357
9357
  let optionProps = {
@@ -9369,13 +9369,13 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9369
9369
  }
9370
9370
  let item = state.collection.getItem(key);
9371
9371
  if (isVirtualized) {
9372
- let index = Number(item === null || item === undefined ? undefined : item.index);
9372
+ let index = Number(item === null || item === void 0 ? void 0 : item.index);
9373
9373
  optionProps['aria-posinset'] = Number.isNaN(index) ? undefined : index + 1;
9374
9374
  optionProps['aria-setsize'] = ($453cc9f0df89c0a5$export$77d5aafae4e095b2)(state.collection);
9375
9375
  }
9376
- let onAction = (data === null || data === undefined ? undefined : data.onAction) ? ()=>{
9376
+ let onAction = (data === null || data === void 0 ? void 0 : data.onAction) ? ()=>{
9377
9377
  var _data_onAction;
9378
- return data === null || data === undefined ? undefined : (_data_onAction = data.onAction) === null || _data_onAction === undefined ? undefined : _data_onAction.call(data, key);
9378
+ return data === null || data === void 0 ? void 0 : (_data_onAction = data.onAction) === null || _data_onAction === void 0 ? void 0 : _data_onAction.call(data, key);
9379
9379
  } : undefined;
9380
9380
  let { itemProps: itemProps, isPressed: isPressed, isFocused: isFocused, hasAction: hasAction, allowsSelection: allowsSelection } = ($880e95eb8b93ba9a$export$ecf600387e221c37)({
9381
9381
  selectionManager: state.selectionManager,
@@ -9386,8 +9386,8 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9386
9386
  isVirtualized: isVirtualized,
9387
9387
  shouldUseVirtualFocus: shouldUseVirtualFocus,
9388
9388
  isDisabled: isDisabled,
9389
- onAction: onAction || (item === null || item === undefined ? undefined : (_item_props = item.props) === null || _item_props === undefined ? undefined : _item_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)(item === null || item === undefined ? undefined : (_item_props1 = item.props) === null || _item_props1 === undefined ? undefined : _item_props1.onAction, onAction) : undefined,
9390
- linkBehavior: data === null || data === undefined ? undefined : data.linkBehavior
9389
+ onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : undefined,
9390
+ linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior
9391
9391
  });
9392
9392
  let { hoverProps: hoverProps } = ($6179b936705e76d3$export$ae780daf29e6d456)({
9393
9393
  isDisabled: isDisabled || !shouldFocusOnHover,
@@ -9398,9 +9398,9 @@ function $293f70390ea03370$export$497855f14858aa34(props, state, ref) {
9398
9398
  }
9399
9399
  }
9400
9400
  });
9401
- let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(item === null || item === undefined ? undefined : item.props);
9401
+ let domProps = ($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(item === null || item === void 0 ? void 0 : item.props);
9402
9402
  delete domProps.id;
9403
- let linkProps = ($ea8dcbcb9ea1b556$export$7e924b3091a3bd18)(item === null || item === undefined ? undefined : item.props);
9403
+ let linkProps = ($ea8dcbcb9ea1b556$export$7e924b3091a3bd18)(item === null || item === void 0 ? void 0 : item.props);
9404
9404
  return {
9405
9405
  optionProps: {
9406
9406
  ...optionProps,
@@ -9949,7 +9949,7 @@ function $5e910fae8e128ead$export$6e3e27031a30522f(props, state, ref) {
9949
9949
  */ const $ce9b18daab526bbd$export$5b9bb410392e3991 = new WeakMap();
9950
9950
  function $ce9b18daab526bbd$export$f45c25170b9a99c2(state, key) {
9951
9951
  var _listMap_get;
9952
- let { id: id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== undefined ? _listMap_get : {};
9952
+ let { id: id } = (_listMap_get = $ce9b18daab526bbd$export$5b9bb410392e3991.get(state)) !== null && _listMap_get !== void 0 ? _listMap_get : {};
9953
9953
  if (!id) throw new Error('Unknown list');
9954
9954
  return `${id}-${$ce9b18daab526bbd$export$e0c709538cb8ae18(key)}`;
9955
9955
  }
@@ -10528,7 +10528,7 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
10528
10528
  let { getRowText: getRowText = (key)=>{
10529
10529
  var _state_collection_getTextValue, _state_collection, _state_collection_getItem;
10530
10530
  var _state_collection_getTextValue1;
10531
- return (_state_collection_getTextValue1 = (_state_collection_getTextValue = (_state_collection = state.collection).getTextValue) === null || _state_collection_getTextValue === undefined ? undefined : _state_collection_getTextValue.call(_state_collection, key)) !== null && _state_collection_getTextValue1 !== undefined ? _state_collection_getTextValue1 : (_state_collection_getItem = state.collection.getItem(key)) === null || _state_collection_getItem === undefined ? undefined : _state_collection_getItem.textValue;
10531
+ return (_state_collection_getTextValue1 = (_state_collection_getTextValue = (_state_collection = state.collection).getTextValue) === null || _state_collection_getTextValue === void 0 ? void 0 : _state_collection_getTextValue.call(_state_collection, key)) !== null && _state_collection_getTextValue1 !== void 0 ? _state_collection_getTextValue1 : (_state_collection_getItem = state.collection.getItem(key)) === null || _state_collection_getItem === void 0 ? void 0 : _state_collection_getItem.textValue;
10532
10532
  } } = props;
10533
10533
  let stringFormatter = ($fca6afa0e843324b$export$f12b703ca79dfbb1)((($parcel$interopDefault$3($835c96616a7cb4f9$exports))), '@react-aria/grid');
10534
10534
  // Many screen readers do not announce when items in a grid are selected/deselected.
@@ -10568,7 +10568,7 @@ function $92599c3fd427b763$export$137e594ef3218a10(props, state) {
10568
10568
  }
10569
10569
  // Announce how many items are selected, except when selecting the first item.
10570
10570
  if (state.selectionManager.selectionMode === 'multiple') {
10571
- if (messages.length === 0 || selection === 'all' || selection.size > 1 || lastSelection.current === 'all' || ((_lastSelection_current = lastSelection.current) === null || _lastSelection_current === undefined ? undefined : _lastSelection_current.size) > 1) messages.push(selection === 'all' ? stringFormatter.format('selectedAll') : stringFormatter.format('selectedCount', {
10571
+ if (messages.length === 0 || selection === 'all' || selection.size > 1 || lastSelection.current === 'all' || ((_lastSelection_current = lastSelection.current) === null || _lastSelection_current === void 0 ? void 0 : _lastSelection_current.size) > 1) messages.push(selection === 'all' ? stringFormatter.format('selectedAll') : stringFormatter.format('selectedCount', {
10572
10572
  count: selection.size
10573
10573
  }));
10574
10574
  }
@@ -10733,7 +10733,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10733
10733
  var _ref_current;
10734
10734
  // Don't shift focus to the row if the active element is a element within the row already
10735
10735
  // (e.g. clicking on a row button)
10736
- if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.contains(document.activeElement)))) ($6a99195332edec8b$export$80f3e147d781571c)(ref.current);
10736
+ if (ref.current !== null && (keyWhenFocused.current != null && node.key !== keyWhenFocused.current || !((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.contains(document.activeElement)))) ($6a99195332edec8b$export$80f3e147d781571c)(ref.current);
10737
10737
  };
10738
10738
  let treeGridRowProps = {};
10739
10739
  let hasChildRows;
@@ -10742,29 +10742,29 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10742
10742
  var _state_collection_getChildren, _state_collection, _filter_at;
10743
10743
  // TODO: ideally node.hasChildNodes would be a way to tell if a row has child nodes, but the row's contents make it so that value is always
10744
10744
  // true...
10745
- let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === undefined ? undefined : _state_collection_getChildren.call(_state_collection, node.key);
10745
+ let children = (_state_collection_getChildren = (_state_collection = state.collection).getChildren) === null || _state_collection_getChildren === void 0 ? void 0 : _state_collection_getChildren.call(_state_collection, node.key);
10746
10746
  hasChildRows = [
10747
- ...children !== null && children !== undefined ? children : []
10747
+ ...children !== null && children !== void 0 ? children : []
10748
10748
  ].length > 1;
10749
10749
  if (onAction == null && !hasLink && state.selectionManager.selectionMode === 'none' && hasChildRows) onAction = ()=>state.toggleKey(node.key);
10750
10750
  let isExpanded = hasChildRows ? state.expandedKeys.has(node.key) : undefined;
10751
10751
  let setSize = 1;
10752
10752
  var _filter_at_index;
10753
- if (node.level > 0 && (node === null || node === undefined ? undefined : node.parentKey) != null) {
10753
+ if (node.level > 0 && (node === null || node === void 0 ? void 0 : node.parentKey) != null) {
10754
10754
  let parent = state.collection.getItem(node.parentKey);
10755
10755
  if (parent) {
10756
10756
  var _state_collection_getChildren1, _state_collection1;
10757
10757
  // siblings must exist because our original node exists, same with lastItem
10758
- let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === undefined ? undefined : _state_collection_getChildren1.call(_state_collection1, parent.key);
10758
+ let siblings = (_state_collection_getChildren1 = (_state_collection1 = state.collection).getChildren) === null || _state_collection_getChildren1 === void 0 ? void 0 : _state_collection_getChildren1.call(_state_collection1, parent.key);
10759
10759
  setSize = ($c5a24bc478652b5f$export$7475b2c64539e4cf)(siblings).index + 1;
10760
10760
  }
10761
10761
  } else setSize = ((_filter_at_index = (_filter_at = [
10762
10762
  ...state.collection
10763
- ].filter((row)=>row.level === 0).at(-1)) === null || _filter_at === undefined ? undefined : _filter_at.index) !== null && _filter_at_index !== undefined ? _filter_at_index : 0) + 1;
10763
+ ].filter((row)=>row.level === 0).at(-1)) === null || _filter_at === void 0 ? void 0 : _filter_at.index) !== null && _filter_at_index !== void 0 ? _filter_at_index : 0) + 1;
10764
10764
  treeGridRowProps = {
10765
10765
  'aria-expanded': isExpanded,
10766
10766
  'aria-level': node.level + 1,
10767
- 'aria-posinset': (node === null || node === undefined ? undefined : node.index) + 1,
10767
+ 'aria-posinset': (node === null || node === void 0 ? void 0 : node.index) + 1,
10768
10768
  'aria-setsize': setSize
10769
10769
  };
10770
10770
  }
@@ -10774,7 +10774,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10774
10774
  ref: ref,
10775
10775
  isVirtualized: isVirtualized,
10776
10776
  shouldSelectOnPressUp: shouldSelectOnPressUp,
10777
- onAction: onAction || ((_node_props = node.props) === null || _node_props === undefined ? undefined : _node_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)((_node_props1 = node.props) === null || _node_props1 === undefined ? undefined : _node_props1.onAction, onAction ? ()=>onAction(node.key) : undefined) : undefined,
10777
+ onAction: onAction || ((_node_props = node.props) === null || _node_props === void 0 ? void 0 : _node_props.onAction) ? ($ff5963eb1fccf552$export$e08e3b67e392101e)((_node_props1 = node.props) === null || _node_props1 === void 0 ? void 0 : _node_props1.onAction, onAction ? ()=>onAction(node.key) : undefined) : undefined,
10778
10778
  focus: focus,
10779
10779
  linkBehavior: linkBehavior
10780
10780
  });
@@ -10867,7 +10867,7 @@ function $4e8b0456ef72939f$export$9610e69494fadfd2(props, state, ref) {
10867
10867
  var _ref_current_parentElement;
10868
10868
  e.stopPropagation();
10869
10869
  e.preventDefault();
10870
- (_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === undefined ? undefined : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
10870
+ (_ref_current_parentElement = ref.current.parentElement) === null || _ref_current_parentElement === void 0 ? void 0 : _ref_current_parentElement.dispatchEvent(new KeyboardEvent(e.nativeEvent.type, e.nativeEvent));
10871
10871
  }
10872
10872
  break;
10873
10873
  case 'Tab':
@@ -11073,7 +11073,7 @@ function $430f30ed08ec25fa$export$62b9571f283ff5c2(props, state) {
11073
11073
  let { focusWithinProps: focusWithinProps } = ($9ab94262bd0047c7$export$420e68273165f4ec)({
11074
11074
  onBlurWithin (e) {
11075
11075
  var _props_onBlur;
11076
- (_props_onBlur = props.onBlur) === null || _props_onBlur === undefined ? undefined : _props_onBlur.call(props, e);
11076
+ (_props_onBlur = props.onBlur) === null || _props_onBlur === void 0 ? void 0 : _props_onBlur.call(props, e);
11077
11077
  if (!state.selectedValue) state.setLastFocusedValue(null);
11078
11078
  },
11079
11079
  onFocusWithin: props.onFocus,
@@ -11196,7 +11196,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
11196
11196
  var _delegate_getKeyAbove, _delegate_getFirstKey;
11197
11197
  // prevent scrolling containers
11198
11198
  e.preventDefault();
11199
- let key = state.selectedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === undefined ? undefined : _delegate_getKeyAbove.call(delegate, state.selectedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === undefined ? undefined : _delegate_getFirstKey.call(delegate);
11199
+ let key = state.selectedKey != null ? (_delegate_getKeyAbove = delegate.getKeyAbove) === null || _delegate_getKeyAbove === void 0 ? void 0 : _delegate_getKeyAbove.call(delegate, state.selectedKey) : (_delegate_getFirstKey = delegate.getFirstKey) === null || _delegate_getFirstKey === void 0 ? void 0 : _delegate_getFirstKey.call(delegate);
11200
11200
  if (key) state.setSelectedKey(key);
11201
11201
  break;
11202
11202
  }
@@ -11205,7 +11205,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
11205
11205
  var _delegate_getKeyBelow, _delegate_getFirstKey1;
11206
11206
  // prevent scrolling containers
11207
11207
  e.preventDefault();
11208
- let key = state.selectedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === undefined ? undefined : _delegate_getKeyBelow.call(delegate, state.selectedKey) : (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === undefined ? undefined : _delegate_getFirstKey1.call(delegate);
11208
+ let key = state.selectedKey != null ? (_delegate_getKeyBelow = delegate.getKeyBelow) === null || _delegate_getKeyBelow === void 0 ? void 0 : _delegate_getKeyBelow.call(delegate, state.selectedKey) : (_delegate_getFirstKey1 = delegate.getFirstKey) === null || _delegate_getFirstKey1 === void 0 ? void 0 : _delegate_getFirstKey1.call(delegate);
11209
11209
  if (key) state.setSelectedKey(key);
11210
11210
  break;
11211
11211
  }
@@ -11244,7 +11244,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
11244
11244
  onClick: ()=>{
11245
11245
  if (!props.isDisabled) {
11246
11246
  var _ref_current;
11247
- (_ref_current = ref.current) === null || _ref_current === undefined ? undefined : _ref_current.focus();
11247
+ (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
11248
11248
  // Show the focus ring so the user knows where focus went
11249
11249
  ($507fabe10e71c6fb$export$8397ddfc504fdb9a)('keyboard');
11250
11250
  }
@@ -11327,7 +11327,7 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
11327
11327
  validationBehavior: validationBehavior,
11328
11328
  focus: ()=>{
11329
11329
  var _triggerRef_current;
11330
- return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === undefined ? undefined : _triggerRef_current.focus();
11330
+ return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();
11331
11331
  }
11332
11332
  }, state, props.selectRef);
11333
11333
  var _state_selectedKey;
@@ -11357,7 +11357,7 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
11357
11357
  disabled: isDisabled,
11358
11358
  required: validationBehavior === 'native' && isRequired,
11359
11359
  name: name,
11360
- value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== undefined ? _state_selectedKey : '',
11360
+ value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : '',
11361
11361
  onChange: (e)=>state.setSelectedKey(e.target.value)
11362
11362
  }
11363
11363
  };
@@ -11393,7 +11393,7 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
11393
11393
  autoComplete: selectProps.autoComplete,
11394
11394
  name: name,
11395
11395
  disabled: isDisabled,
11396
- value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== undefined ? _state_selectedKey : ''
11396
+ value: (_state_selectedKey = state.selectedKey) !== null && _state_selectedKey !== void 0 ? _state_selectedKey : ''
11397
11397
  });
11398
11398
  return null;
11399
11399
  }
@@ -11807,8 +11807,8 @@ function $fc6126c82a4601f1$export$3f568fff7dff2f03(props, state, ref) {
11807
11807
  let onKeyDown = (e)=>{
11808
11808
  if (e.key === 'Delete' || e.key === 'Backspace') {
11809
11809
  e.preventDefault();
11810
- if (state.selectionManager.isSelected(item.key)) onRemove === null || onRemove === undefined ? undefined : onRemove(new Set(state.selectionManager.selectedKeys));
11811
- else onRemove === null || onRemove === undefined ? undefined : onRemove(new Set([
11810
+ if (state.selectionManager.isSelected(item.key)) onRemove === null || onRemove === void 0 ? void 0 : onRemove(new Set(state.selectionManager.selectedKeys));
11811
+ else onRemove === null || onRemove === void 0 ? void 0 : onRemove(new Set([
11812
11812
  item.key
11813
11813
  ]));
11814
11814
  }
@@ -11862,8 +11862,8 @@ function $326e436e94273fe1$export$1c4b08e0eca38426(props, state) {
11862
11862
  labelable: true
11863
11863
  });
11864
11864
  let { hoverProps: hoverProps } = ($6179b936705e76d3$export$ae780daf29e6d456)({
11865
- onHoverStart: ()=>state === null || state === undefined ? undefined : state.open(true),
11866
- onHoverEnd: ()=>state === null || state === undefined ? undefined : state.close()
11865
+ onHoverStart: ()=>state === null || state === void 0 ? void 0 : state.open(true),
11866
+ onHoverEnd: ()=>state === null || state === void 0 ? void 0 : state.close()
11867
11867
  });
11868
11868
  return {
11869
11869
  tooltipProps: ($3ef42575df84b30b$export$9d1611c77c2fe928)(domProps, hoverProps, {
@@ -12117,7 +12117,7 @@ function $d2b4bc8c273e7be6$var$Button(props, ref) {
12117
12117
  isFocused: isFocused,
12118
12118
  isFocusVisible: isFocusVisible,
12119
12119
  isDisabled: props.isDisabled || false,
12120
- isPending: isPending !== null && isPending !== undefined ? isPending : false
12120
+ isPending: isPending !== null && isPending !== void 0 ? isPending : false
12121
12121
  };
12122
12122
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
12123
12123
  ...props,
@@ -12269,7 +12269,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12269
12269
  invalidValues.current = s;
12270
12270
  validation.updateValidation(($e5be200c675c3b3a$export$75ee7c75d68f5b0e)(...s.values()));
12271
12271
  },
12272
- validationState: (_props_validationState = props.validationState) !== null && _props_validationState !== undefined ? _props_validationState : isInvalid ? 'invalid' : null,
12272
+ validationState: (_props_validationState = props.validationState) !== null && _props_validationState !== void 0 ? _props_validationState : isInvalid ? 'invalid' : null,
12273
12273
  isInvalid: isInvalid,
12274
12274
  isRequired: isRequired
12275
12275
  };
@@ -12299,12 +12299,12 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12299
12299
  getKeyBefore(key) {
12300
12300
  let node = this.keyMap.get(key);
12301
12301
  var _node_prevKey;
12302
- return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== undefined ? _node_prevKey : null : null;
12302
+ return node ? (_node_prevKey = node.prevKey) !== null && _node_prevKey !== void 0 ? _node_prevKey : null : null;
12303
12303
  }
12304
12304
  getKeyAfter(key) {
12305
12305
  let node = this.keyMap.get(key);
12306
12306
  var _node_nextKey;
12307
- return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== undefined ? _node_nextKey : null : null;
12307
+ return node ? (_node_nextKey = node.nextKey) !== null && _node_nextKey !== void 0 ? _node_nextKey : null : null;
12308
12308
  }
12309
12309
  getFirstKey() {
12310
12310
  return this.firstKey;
@@ -12314,7 +12314,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12314
12314
  }
12315
12315
  getItem(key) {
12316
12316
  var _this_keyMap_get;
12317
- return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== undefined ? _this_keyMap_get : null;
12317
+ return (_this_keyMap_get = this.keyMap.get(key)) !== null && _this_keyMap_get !== void 0 ? _this_keyMap_get : null;
12318
12318
  }
12319
12319
  at(idx) {
12320
12320
  const keys = [
@@ -12324,7 +12324,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12324
12324
  }
12325
12325
  getChildren(key) {
12326
12326
  let node = this.keyMap.get(key);
12327
- return (node === null || node === undefined ? undefined : node.childNodes) || [];
12327
+ return (node === null || node === void 0 ? void 0 : node.childNodes) || [];
12328
12328
  }
12329
12329
  constructor(nodes){
12330
12330
  this.keyMap = new Map();
@@ -12353,7 +12353,7 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12353
12353
  last.nextKey = undefined;
12354
12354
  }
12355
12355
  var _last_key;
12356
- this.lastKey = (_last_key = last === null || last === undefined ? undefined : last.key) !== null && _last_key !== undefined ? _last_key : null;
12356
+ this.lastKey = (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
12357
12357
  }
12358
12358
  }
12359
12359
 
@@ -12371,11 +12371,11 @@ function $587d3ad58be6d31f$export$daff6da51032a415(props = {}) {
12371
12371
  constructor(keys, anchorKey, currentKey){
12372
12372
  super(keys);
12373
12373
  if (keys instanceof $e40ea825a81a3709$export$52baac22726c72bf) {
12374
- this.anchorKey = anchorKey !== null && anchorKey !== undefined ? anchorKey : keys.anchorKey;
12375
- this.currentKey = currentKey !== null && currentKey !== undefined ? currentKey : keys.currentKey;
12374
+ this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : keys.anchorKey;
12375
+ this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : keys.currentKey;
12376
12376
  } else {
12377
- this.anchorKey = anchorKey !== null && anchorKey !== undefined ? anchorKey : null;
12378
- this.currentKey = currentKey !== null && currentKey !== undefined ? currentKey : null;
12377
+ this.anchorKey = anchorKey !== null && anchorKey !== void 0 ? anchorKey : null;
12378
+ this.currentKey = currentKey !== null && currentKey !== void 0 ? currentKey : null;
12379
12379
  }
12380
12380
  }
12381
12381
  }
@@ -12567,7 +12567,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12567
12567
  if (!first || item && ($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, item, first) < 0) first = item;
12568
12568
  }
12569
12569
  var _first_key;
12570
- return (_first_key = first === null || first === undefined ? undefined : first.key) !== null && _first_key !== undefined ? _first_key : null;
12570
+ return (_first_key = first === null || first === void 0 ? void 0 : first.key) !== null && _first_key !== void 0 ? _first_key : null;
12571
12571
  }
12572
12572
  get lastSelectedKey() {
12573
12573
  let last = null;
@@ -12576,7 +12576,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12576
12576
  if (!last || item && ($c5a24bc478652b5f$export$8c434b3a7a4dad6)(this.collection, item, last) > 0) last = item;
12577
12577
  }
12578
12578
  var _last_key;
12579
- return (_last_key = last === null || last === undefined ? undefined : last.key) !== null && _last_key !== undefined ? _last_key : null;
12579
+ return (_last_key = last === null || last === void 0 ? void 0 : last.key) !== null && _last_key !== void 0 ? _last_key : null;
12580
12580
  }
12581
12581
  get disabledKeys() {
12582
12582
  return this.state.disabledKeys;
@@ -12602,10 +12602,10 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12602
12602
  else {
12603
12603
  let selectedKeys = this.state.selectedKeys;
12604
12604
  var _selectedKeys_anchorKey;
12605
- let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== undefined ? _selectedKeys_anchorKey : mappedToKey;
12605
+ let anchorKey = (_selectedKeys_anchorKey = selectedKeys.anchorKey) !== null && _selectedKeys_anchorKey !== void 0 ? _selectedKeys_anchorKey : mappedToKey;
12606
12606
  selection = new ($e40ea825a81a3709$export$52baac22726c72bf)(selectedKeys, anchorKey, mappedToKey);
12607
12607
  var _selectedKeys_currentKey;
12608
- for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== undefined ? _selectedKeys_currentKey : mappedToKey))selection.delete(key);
12608
+ for (let key of this.getKeyRange(anchorKey, (_selectedKeys_currentKey = selectedKeys.currentKey) !== null && _selectedKeys_currentKey !== void 0 ? _selectedKeys_currentKey : mappedToKey))selection.delete(key);
12609
12609
  for (let key of this.getKeyRange(mappedToKey, anchorKey))if (this.canSelectItem(key)) selection.add(key);
12610
12610
  }
12611
12611
  this.state.setSelectedKeys(selection);
@@ -12621,7 +12621,7 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12621
12621
  }
12622
12622
  getKeyRangeInternal(from, to) {
12623
12623
  var _this_layoutDelegate;
12624
- if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === undefined ? undefined : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
12624
+ if ((_this_layoutDelegate = this.layoutDelegate) === null || _this_layoutDelegate === void 0 ? void 0 : _this_layoutDelegate.getKeyRange) return this.layoutDelegate.getKeyRange(from, to);
12625
12625
  let keys = [];
12626
12626
  let key = from;
12627
12627
  while(key != null){
@@ -12695,10 +12695,10 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12695
12695
  if (this.canSelectItem(key)) {
12696
12696
  var _getFirstItem;
12697
12697
  let item = this.collection.getItem(key);
12698
- if ((item === null || item === undefined ? undefined : item.type) === 'item') keys.push(key);
12698
+ if ((item === null || item === void 0 ? void 0 : item.type) === 'item') keys.push(key);
12699
12699
  var _getFirstItem_key;
12700
12700
  // Add child keys. If cell selection is allowed, then include item children too.
12701
- if ((item === null || item === undefined ? undefined : item.hasChildNodes) && (this.allowsCellSelection || item.type !== 'item')) addKeys((_getFirstItem_key = (_getFirstItem = ($c5a24bc478652b5f$export$fbdeaa6a76694f71)(($c5a24bc478652b5f$export$1005530eda016c13)(item, this.collection))) === null || _getFirstItem === undefined ? undefined : _getFirstItem.key) !== null && _getFirstItem_key !== undefined ? _getFirstItem_key : null);
12701
+ if ((item === null || item === void 0 ? void 0 : item.hasChildNodes) && (this.allowsCellSelection || item.type !== 'item')) addKeys((_getFirstItem_key = (_getFirstItem = ($c5a24bc478652b5f$export$fbdeaa6a76694f71)(($c5a24bc478652b5f$export$1005530eda016c13)(item, this.collection))) === null || _getFirstItem === void 0 ? void 0 : _getFirstItem.key) !== null && _getFirstItem_key !== void 0 ? _getFirstItem_key : null);
12702
12702
  }
12703
12703
  key = this.collection.getKeyAfter(key);
12704
12704
  }
@@ -12750,28 +12750,28 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
12750
12750
  var _item_props;
12751
12751
  if (this.state.selectionMode === 'none' || this.state.disabledKeys.has(key)) return false;
12752
12752
  let item = this.collection.getItem(key);
12753
- if (!item || (item === null || item === undefined ? undefined : (_item_props = item.props) === null || _item_props === undefined ? undefined : _item_props.isDisabled) || item.type === 'cell' && !this.allowsCellSelection) return false;
12753
+ if (!item || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.isDisabled) || item.type === 'cell' && !this.allowsCellSelection) return false;
12754
12754
  return true;
12755
12755
  }
12756
12756
  isDisabled(key) {
12757
12757
  var _this_collection_getItem_props, _this_collection_getItem;
12758
- return this.state.disabledBehavior === 'all' && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === undefined ? undefined : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === undefined ? undefined : _this_collection_getItem_props.isDisabled));
12758
+ return this.state.disabledBehavior === 'all' && (this.state.disabledKeys.has(key) || !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.isDisabled));
12759
12759
  }
12760
12760
  isLink(key) {
12761
12761
  var _this_collection_getItem_props, _this_collection_getItem;
12762
- return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === undefined ? undefined : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === undefined ? undefined : _this_collection_getItem_props.href);
12762
+ return !!((_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : (_this_collection_getItem_props = _this_collection_getItem.props) === null || _this_collection_getItem_props === void 0 ? void 0 : _this_collection_getItem_props.href);
12763
12763
  }
12764
12764
  getItemProps(key) {
12765
12765
  var _this_collection_getItem;
12766
- return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === undefined ? undefined : _this_collection_getItem.props;
12766
+ return (_this_collection_getItem = this.collection.getItem(key)) === null || _this_collection_getItem === void 0 ? void 0 : _this_collection_getItem.props;
12767
12767
  }
12768
12768
  constructor(collection, state, options){
12769
12769
  this.collection = collection;
12770
12770
  this.state = state;
12771
12771
  var _options_allowsCellSelection;
12772
- this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === undefined ? undefined : options.allowsCellSelection) !== null && _options_allowsCellSelection !== undefined ? _options_allowsCellSelection : false;
12772
+ this.allowsCellSelection = (_options_allowsCellSelection = options === null || options === void 0 ? void 0 : options.allowsCellSelection) !== null && _options_allowsCellSelection !== void 0 ? _options_allowsCellSelection : false;
12773
12773
  this._isSelectAll = null;
12774
- this.layoutDelegate = (options === null || options === undefined ? undefined : options.layoutDelegate) || null;
12774
+ this.layoutDelegate = (options === null || options === void 0 ? void 0 : options.layoutDelegate) || null;
12775
12775
  }
12776
12776
  }
12777
12777
 
@@ -12820,18 +12820,18 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
12820
12820
  ...cachedCollection.current.getKeys()
12821
12821
  ].map((key)=>{
12822
12822
  const itemNode = cachedCollection.current.getItem(key);
12823
- return (itemNode === null || itemNode === undefined ? undefined : itemNode.type) === 'item' ? itemNode : null;
12823
+ return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;
12824
12824
  }).filter((node)=>node !== null);
12825
12825
  const itemNodes = [
12826
12826
  ...collection.getKeys()
12827
12827
  ].map((key)=>{
12828
12828
  const itemNode = collection.getItem(key);
12829
- return (itemNode === null || itemNode === undefined ? undefined : itemNode.type) === 'item' ? itemNode : null;
12829
+ return (itemNode === null || itemNode === void 0 ? void 0 : itemNode.type) === 'item' ? itemNode : null;
12830
12830
  }).filter((node)=>node !== null);
12831
12831
  var _cachedItemNodes_length, _itemNodes_length;
12832
- const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === undefined ? undefined : cachedItemNodes.length) !== null && _cachedItemNodes_length !== undefined ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === undefined ? undefined : itemNodes.length) !== null && _itemNodes_length !== undefined ? _itemNodes_length : 0);
12832
+ const diff = ((_cachedItemNodes_length = cachedItemNodes === null || cachedItemNodes === void 0 ? void 0 : cachedItemNodes.length) !== null && _cachedItemNodes_length !== void 0 ? _cachedItemNodes_length : 0) - ((_itemNodes_length = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length !== void 0 ? _itemNodes_length : 0);
12833
12833
  var _startItem_index, _startItem_index1, _itemNodes_length1;
12834
- let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index !== undefined ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index1 !== undefined ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === undefined ? undefined : itemNodes.length) !== null && _itemNodes_length1 !== undefined ? _itemNodes_length1 : 0) - 1);
12834
+ let index = Math.min(diff > 1 ? Math.max(((_startItem_index = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index !== void 0 ? _startItem_index : 0) - diff + 1, 0) : (_startItem_index1 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index1 !== void 0 ? _startItem_index1 : 0, ((_itemNodes_length1 = itemNodes === null || itemNodes === void 0 ? void 0 : itemNodes.length) !== null && _itemNodes_length1 !== void 0 ? _itemNodes_length1 : 0) - 1);
12835
12835
  let newNode = null;
12836
12836
  let isReverseSearching = false;
12837
12837
  while(index >= 0){
@@ -12844,7 +12844,7 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
12844
12844
  else {
12845
12845
  isReverseSearching = true;
12846
12846
  var _startItem_index2, _startItem_index3;
12847
- if (index > ((_startItem_index2 = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index2 !== undefined ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === undefined ? undefined : startItem.index) !== null && _startItem_index3 !== undefined ? _startItem_index3 : 0;
12847
+ if (index > ((_startItem_index2 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index2 !== void 0 ? _startItem_index2 : 0)) index = (_startItem_index3 = startItem === null || startItem === void 0 ? void 0 : startItem.index) !== null && _startItem_index3 !== void 0 ? _startItem_index3 : 0;
12848
12848
  index--;
12849
12849
  }
12850
12850
  }
@@ -12879,7 +12879,7 @@ function $e72dd72e1c76a225$export$2f645645f7bca764(props) {
12879
12879
 
12880
12880
  function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
12881
12881
  var _props_defaultSelectedKey;
12882
- let [selectedKey, setSelectedKey] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== undefined ? _props_defaultSelectedKey : null, props.onSelectionChange);
12882
+ let [selectedKey, setSelectedKey] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.selectedKey, (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : null, props.onSelectionChange);
12883
12883
  let selectedKeys = ($dbSRa$react.useMemo)(()=>selectedKey != null ? [
12884
12884
  selectedKey
12885
12885
  ] : [], [
@@ -12895,7 +12895,7 @@ function $a0d645289fe9b86b$export$e7f05e985daf4b5f(props) {
12895
12895
  // impossible, but TS doesn't know that
12896
12896
  if (keys === 'all') return;
12897
12897
  var _keys_values_next_value;
12898
- let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== undefined ? _keys_values_next_value : null;
12898
+ let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
12899
12899
  // Always fire onSelectionChange, even if the key is the same
12900
12900
  // as the current key (useControlledState does not).
12901
12901
  if (key === selectedKey && props.onSelectionChange) props.onSelectionChange(key);
@@ -13112,7 +13112,7 @@ function $a54cdc5c1942b639$export$bca9d026f8e704eb(props) {
13112
13112
  props.name
13113
13113
  ]);
13114
13114
  var _props_defaultValue;
13115
- let [selectedValue, setSelected] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== undefined ? _props_defaultValue : null, props.onChange);
13115
+ let [selectedValue, setSelected] = ($458b0a5536c1a7cf$export$40bfa8c7b0832715)(props.value, (_props_defaultValue = props.defaultValue) !== null && _props_defaultValue !== void 0 ? _props_defaultValue : null, props.onChange);
13116
13116
  let [lastFocusedValue, setLastFocusedValue] = ($dbSRa$react.useState)(null);
13117
13117
  let validation = ($e5be200c675c3b3a$export$fc1a364ae1f3ff10)({
13118
13118
  ...props,
@@ -13316,7 +13316,7 @@ function $8796f90736e175cb$export$4d40659c25ecb50b(props = {}) {
13316
13316
  const $ee014567cb39d3f0$export$ff05c3ac10437e03 = /*#__PURE__*/ ($dbSRa$react.createContext)(null);
13317
13317
  function $ee014567cb39d3f0$var$FieldError(props, ref) {
13318
13318
  let validation = ($dbSRa$react.useContext)($ee014567cb39d3f0$export$ff05c3ac10437e03);
13319
- if (!(validation === null || validation === undefined ? undefined : validation.isInvalid)) return null;
13319
+ if (!(validation === null || validation === void 0 ? void 0 : validation.isInvalid)) return null;
13320
13320
  return /*#__PURE__*/ ($dbSRa$react).createElement($ee014567cb39d3f0$var$FieldErrorInner, {
13321
13321
  ...props,
13322
13322
  ref: ref
@@ -13371,7 +13371,7 @@ function $d3e0e05bdfcf66bd$var$Form(props, ref) {
13371
13371
  validationBehavior: validationBehavior
13372
13372
  }
13373
13373
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($e5be200c675c3b3a$export$571b5131b7e65c11).Provider, {
13374
- value: validationErrors !== null && validationErrors !== undefined ? validationErrors : {}
13374
+ value: validationErrors !== null && validationErrors !== void 0 ? validationErrors : {}
13375
13375
  }, children)));
13376
13376
  }
13377
13377
  /**
@@ -13405,7 +13405,7 @@ function $bc237834342dbd75$var$CheckboxGroup(props, ref) {
13405
13405
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bc237834342dbd75$export$baf37c4be89255b8);
13406
13406
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
13407
13407
  var _props_validationBehavior, _ref;
13408
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
13408
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
13409
13409
  let state = ($587d3ad58be6d31f$export$daff6da51032a415)({
13410
13410
  ...props,
13411
13411
  validationBehavior: validationBehavior
@@ -13471,7 +13471,7 @@ function $bc237834342dbd75$var$Checkbox(props, ref) {
13471
13471
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(otherProps, ref, ($4e85f108e88277b8$export$b085522c77523c51));
13472
13472
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
13473
13473
  var _props_validationBehavior, _ref;
13474
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
13474
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
13475
13475
  let groupState = ($dbSRa$react.useContext)($bc237834342dbd75$export$139c5b8563afc1fc);
13476
13476
  let inputRef = ($df56164dff5785e2$export$4338b53315abf666)(($5dc95899b306f630$export$c9058316764c140e)(userProvidedInputRef, props.inputRef !== undefined ? props.inputRef : null));
13477
13477
  let { labelProps: labelProps, inputProps: inputProps, isSelected: isSelected, isDisabled: isDisabled, isReadOnly: isReadOnly, isPressed: isPressed, isInvalid: isInvalid } = groupState ? ($fba3e38d5ca8983f$export$353b32fc6898d37d)({
@@ -13960,32 +13960,32 @@ function $612b8eb6cb90e02d$var$DropIndicator(props, ref) {
13960
13960
  */ const $612b8eb6cb90e02d$export$62ed72bc21f6b8a6 = /*#__PURE__*/ ($dbSRa$react.forwardRef)($612b8eb6cb90e02d$var$DropIndicator);
13961
13961
  function $612b8eb6cb90e02d$export$971707d8a129a1f7(dragAndDropHooks, dropState) {
13962
13962
  var _dragAndDropHooks_isVirtualDragging;
13963
- let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.renderDropIndicator;
13964
- let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === undefined ? undefined : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
13963
+ let renderDropIndicator = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.renderDropIndicator;
13964
+ let isVirtualDragging = dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks);
13965
13965
  let fn = ($dbSRa$react.useCallback)((target)=>{
13966
13966
  // Only show drop indicators when virtual dragging or this is the current drop target.
13967
- if (isVirtualDragging || (dropState === null || dropState === undefined ? undefined : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /*#__PURE__*/ ($dbSRa$react).createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {
13967
+ if (isVirtualDragging || (dropState === null || dropState === void 0 ? void 0 : dropState.isDropTarget(target))) return renderDropIndicator ? renderDropIndicator(target) : /*#__PURE__*/ ($dbSRa$react).createElement($612b8eb6cb90e02d$export$62ed72bc21f6b8a6, {
13968
13968
  target: target
13969
13969
  });
13970
13970
  // We invalidate whenever the target changes.
13971
13971
  // eslint-disable-next-line react-hooks/exhaustive-deps
13972
13972
  }, [
13973
- dropState === null || dropState === undefined ? undefined : dropState.target,
13973
+ dropState === null || dropState === void 0 ? void 0 : dropState.target,
13974
13974
  isVirtualDragging,
13975
13975
  renderDropIndicator
13976
13976
  ]);
13977
- return (dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.useDropIndicator) ? fn : undefined;
13977
+ return (dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDropIndicator) ? fn : undefined;
13978
13978
  }
13979
13979
  function $612b8eb6cb90e02d$export$d1e8e3fbb7461f6(selectionManager, dragAndDropHooks, dropState) {
13980
13980
  var _dragAndDropHooks_isVirtualDragging, _dropState_target;
13981
13981
  // Persist the focused key and the drop target key.
13982
13982
  let focusedKey = selectionManager.focusedKey;
13983
13983
  let dropTargetKey = null;
13984
- if ((dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === undefined ? undefined : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === undefined ? undefined : (_dropState_target = dropState.target) === null || _dropState_target === undefined ? undefined : _dropState_target.type) === 'item') {
13984
+ if ((dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : (_dragAndDropHooks_isVirtualDragging = dragAndDropHooks.isVirtualDragging) === null || _dragAndDropHooks_isVirtualDragging === void 0 ? void 0 : _dragAndDropHooks_isVirtualDragging.call(dragAndDropHooks)) && (dropState === null || dropState === void 0 ? void 0 : (_dropState_target = dropState.target) === null || _dropState_target === void 0 ? void 0 : _dropState_target.type) === 'item') {
13985
13985
  dropTargetKey = dropState.target.key;
13986
13986
  var _dropState_collection_getKeyAfter;
13987
13987
  if (dropState.target.dropPosition === 'after') // Normalize to the "before" drop position since we only render those to the DOM.
13988
- dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== undefined ? _dropState_collection_getKeyAfter : dropTargetKey;
13988
+ dropTargetKey = (_dropState_collection_getKeyAfter = dropState.collection.getKeyAfter(dropTargetKey)) !== null && _dropState_collection_getKeyAfter !== void 0 ? _dropState_collection_getKeyAfter : dropTargetKey;
13989
13989
  }
13990
13990
  return ($dbSRa$react.useMemo)(()=>{
13991
13991
  return new Set([
@@ -14106,8 +14106,8 @@ function $eed445e0843c11d0$var$StandaloneListBox({ props: props, listBoxRef: lis
14106
14106
  function $eed445e0843c11d0$var$ListBoxInner({ state: state, props: props, listBoxRef: listBoxRef }) {
14107
14107
  let { dragAndDropHooks: dragAndDropHooks, layout: layout = 'stack', orientation: orientation = 'vertical' } = props;
14108
14108
  let { collection: collection, selectionManager: selectionManager } = state;
14109
- let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.useDraggableCollectionState);
14110
- let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === undefined ? undefined : dragAndDropHooks.useDroppableCollectionState);
14109
+ let isListDraggable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDraggableCollectionState);
14110
+ let isListDroppable = !!(dragAndDropHooks === null || dragAndDropHooks === void 0 ? void 0 : dragAndDropHooks.useDroppableCollectionState);
14111
14111
  let { direction: direction } = ($18f2051aff69b9bf$export$43bb16f9c6d9e3f7)();
14112
14112
  let { disabledBehavior: disabledBehavior, disabledKeys: disabledKeys } = selectionManager;
14113
14113
  let collator = ($325a3faab7a68acd$export$a16aca283550c30d)({
@@ -14213,7 +14213,7 @@ function $eed445e0843c11d0$var$ListBoxInner({ state: state, props: props, listBo
14213
14213
  }, props.renderEmptyState(renderValues));
14214
14214
  return /*#__PURE__*/ ($dbSRa$react).createElement(($9bf71ea28793e738$export$20e40289641fbbb6), null, /*#__PURE__*/ ($dbSRa$react).createElement("div", {
14215
14215
  ...($65484d02dcb7eb3e$export$457c3d6518dd4c6f)(props),
14216
- ...($3ef42575df84b30b$export$9d1611c77c2fe928)(listBoxProps, focusProps, droppableCollection === null || droppableCollection === undefined ? undefined : droppableCollection.collectionProps),
14216
+ ...($3ef42575df84b30b$export$9d1611c77c2fe928)(listBoxProps, focusProps, droppableCollection === null || droppableCollection === void 0 ? void 0 : droppableCollection.collectionProps),
14217
14217
  ...renderProps,
14218
14218
  ref: listBoxRef,
14219
14219
  slot: props.slot || undefined,
@@ -14277,7 +14277,7 @@ function $eed445e0843c11d0$var$ListBoxSection(props, ref, section, className = '
14277
14277
  var _props_arialabel;
14278
14278
  let { headingProps: headingProps, groupProps: groupProps } = ($af383d3bef1cfdc9$export$c3f9f39876e4bc7)({
14279
14279
  heading: heading,
14280
- 'aria-label': (_props_arialabel = props['aria-label']) !== null && _props_arialabel !== undefined ? _props_arialabel : undefined
14280
+ 'aria-label': (_props_arialabel = props['aria-label']) !== null && _props_arialabel !== void 0 ? _props_arialabel : undefined
14281
14281
  });
14282
14282
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
14283
14283
  defaultClassName: className,
@@ -14310,7 +14310,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14310
14310
  let { dragAndDropHooks: dragAndDropHooks, dragState: dragState, dropState: dropState } = ($dbSRa$react.useContext)(($612b8eb6cb90e02d$export$d188a835a7bc5783));
14311
14311
  let { optionProps: optionProps, labelProps: labelProps, descriptionProps: descriptionProps, ...states } = ($293f70390ea03370$export$497855f14858aa34)({
14312
14312
  key: item.key,
14313
- 'aria-label': props === null || props === undefined ? undefined : props['aria-label']
14313
+ 'aria-label': props === null || props === void 0 ? void 0 : props['aria-label']
14314
14314
  }, state, ref);
14315
14315
  let { hoverProps: hoverProps, isHovered: isHovered } = ($6179b936705e76d3$export$ae780daf29e6d456)({
14316
14316
  isDisabled: !states.allowsSelection && !states.hasAction,
@@ -14343,7 +14343,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14343
14343
  selectionBehavior: state.selectionManager.selectionBehavior,
14344
14344
  allowsDragging: !!dragState,
14345
14345
  isDragging: isDragging,
14346
- isDropTarget: droppableItem === null || droppableItem === undefined ? undefined : droppableItem.isDropTarget
14346
+ isDropTarget: droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget
14347
14347
  }
14348
14348
  });
14349
14349
  ($dbSRa$react.useEffect)(()=>{
@@ -14353,7 +14353,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14353
14353
  ]);
14354
14354
  let ElementType = props.href ? 'a' : 'div';
14355
14355
  return /*#__PURE__*/ ($dbSRa$react).createElement(ElementType, {
14356
- ...($3ef42575df84b30b$export$9d1611c77c2fe928)(optionProps, hoverProps, draggableItem === null || draggableItem === undefined ? undefined : draggableItem.dragProps, droppableItem === null || droppableItem === undefined ? undefined : droppableItem.dropProps),
14356
+ ...($3ef42575df84b30b$export$9d1611c77c2fe928)(optionProps, hoverProps, draggableItem === null || draggableItem === void 0 ? void 0 : draggableItem.dragProps, droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.dropProps),
14357
14357
  ...renderProps,
14358
14358
  ref: ref,
14359
14359
  "data-allows-dragging": !!dragState || undefined,
@@ -14364,7 +14364,7 @@ const $eed445e0843c11d0$export$a11e76429ed99b4 = /*#__PURE__*/ ($e1995378a142960
14364
14364
  "data-focus-visible": states.isFocusVisible || undefined,
14365
14365
  "data-pressed": states.isPressed || undefined,
14366
14366
  "data-dragging": isDragging || undefined,
14367
- "data-drop-target": (droppableItem === null || droppableItem === undefined ? undefined : droppableItem.isDropTarget) || undefined,
14367
+ "data-drop-target": (droppableItem === null || droppableItem === void 0 ? void 0 : droppableItem.isDropTarget) || undefined,
14368
14368
  "data-selection-mode": state.selectionManager.selectionMode === 'none' ? undefined : state.selectionManager.selectionMode
14369
14369
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($64fa3d84918910a7$export$2881499e37b75b9a), {
14370
14370
  values: [
@@ -14525,7 +14525,7 @@ function $07b14b47974efb58$var$PopoverInner({ state: state, isExiting: isExiting
14525
14525
  var _props_offset;
14526
14526
  let { popoverProps: popoverProps, underlayProps: underlayProps, arrowProps: arrowProps, placement: placement } = ($f2f8a6077418541e$export$542a6fd13ac93354)({
14527
14527
  ...props,
14528
- offset: (_props_offset = props.offset) !== null && _props_offset !== undefined ? _props_offset : 8,
14528
+ offset: (_props_offset = props.offset) !== null && _props_offset !== void 0 ? _props_offset : 8,
14529
14529
  arrowSize: arrowWidth
14530
14530
  }, state);
14531
14531
  let ref = props.popoverRef;
@@ -14666,7 +14666,7 @@ function $de32f1b87079253c$var$Dialog(props, ref) {
14666
14666
  style: props.style,
14667
14667
  children: props.children,
14668
14668
  values: {
14669
- close: (state === null || state === undefined ? undefined : state.close) || (()=>{})
14669
+ close: (state === null || state === void 0 ? void 0 : state.close) || (()=>{})
14670
14670
  }
14671
14671
  });
14672
14672
  return /*#__PURE__*/ ($dbSRa$react).createElement("section", {
@@ -14695,7 +14695,7 @@ function $de32f1b87079253c$var$Dialog(props, ref) {
14695
14695
  slots: {
14696
14696
  [($64fa3d84918910a7$export$c62b8e45d58ddad9)]: {},
14697
14697
  close: {
14698
- onPress: ()=>state === null || state === undefined ? undefined : state.close()
14698
+ onPress: ()=>state === null || state === void 0 ? void 0 : state.close()
14699
14699
  }
14700
14700
  }
14701
14701
  }
@@ -14767,11 +14767,11 @@ function $28f4fd908f0de97f$var$Disclosure(props, ref) {
14767
14767
  onExpandedChange (isExpanded) {
14768
14768
  var _props_onExpandedChange;
14769
14769
  if (groupState) groupState.toggleKey(id);
14770
- (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === undefined ? undefined : _props_onExpandedChange.call(props, isExpanded);
14770
+ (_props_onExpandedChange = props.onExpandedChange) === null || _props_onExpandedChange === void 0 ? void 0 : _props_onExpandedChange.call(props, isExpanded);
14771
14771
  }
14772
14772
  });
14773
14773
  let panelRef = ($dbSRa$react).useRef(null);
14774
- let isDisabled = props.isDisabled || (groupState === null || groupState === undefined ? undefined : groupState.isDisabled) || false;
14774
+ let isDisabled = props.isDisabled || (groupState === null || groupState === void 0 ? void 0 : groupState.isDisabled) || false;
14775
14775
  let { buttonProps: buttonProps, panelProps: panelProps } = ($5e910fae8e128ead$export$6e3e27031a30522f)({
14776
14776
  ...props,
14777
14777
  isExpanded: isExpanded,
@@ -14882,7 +14882,7 @@ function $5cb03073d3f54797$var$Heading(props, ref) {
14882
14882
  return /*#__PURE__*/ ($dbSRa$react).createElement(Element, {
14883
14883
  ...domProps,
14884
14884
  ref: ref,
14885
- className: className !== null && className !== undefined ? className : 'react-aria-Heading'
14885
+ className: className !== null && className !== void 0 ? className : 'react-aria-Heading'
14886
14886
  }, children);
14887
14887
  }
14888
14888
  const $5cb03073d3f54797$export$a8a3e93435678ff9 = /*#__PURE__*/ ($dbSRa$react.forwardRef)($5cb03073d3f54797$var$Heading);
@@ -15053,7 +15053,7 @@ function $b6c3ddc6086f204d$var$RadioGroup(props, ref) {
15053
15053
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $b6c3ddc6086f204d$export$a79eda4ff50e30b6);
15054
15054
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
15055
15055
  var _props_validationBehavior, _ref;
15056
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
15056
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
15057
15057
  let state = ($a54cdc5c1942b639$export$bca9d026f8e704eb)({
15058
15058
  ...props,
15059
15059
  validationBehavior: validationBehavior
@@ -15233,7 +15233,7 @@ function $82d7e5349645de74$var$Select(props, ref) {
15233
15233
  function $82d7e5349645de74$var$SelectInner({ props: props, selectRef: ref, collection: collection }) {
15234
15234
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
15235
15235
  var _props_validationBehavior, _ref;
15236
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
15236
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
15237
15237
  let state = ($2bc3a590c5373a4e$export$5159ec8b34d4ec12)({
15238
15238
  ...props,
15239
15239
  collection: collection,
@@ -15387,7 +15387,7 @@ function $82d7e5349645de74$var$SelectValue(props, ref) {
15387
15387
  let state = ($dbSRa$react.useContext)($82d7e5349645de74$export$ef445b55be0601bd);
15388
15388
  let { placeholder: placeholder } = ($64fa3d84918910a7$export$fabf2dc03a41866e)($82d7e5349645de74$export$7540cee5be7dc19b);
15389
15389
  let selectedItem = state.selectedKey != null ? state.collection.getItem(state.selectedKey) : null;
15390
- let rendered = selectedItem === null || selectedItem === undefined ? undefined : selectedItem.props.children;
15390
+ let rendered = selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.props.children;
15391
15391
  if (typeof rendered === 'function') {
15392
15392
  // If the selected item has a function as a child, we need to call it to render to React.JSX.
15393
15393
  let fn = rendered;
@@ -15406,11 +15406,11 @@ function $82d7e5349645de74$var$SelectValue(props, ref) {
15406
15406
  var _ref, _state_selectedItem_value, _state_selectedItem_textValue;
15407
15407
  let renderProps = ($64fa3d84918910a7$export$4d86445c2cf5e3)({
15408
15408
  ...props,
15409
- defaultChildren: (_ref = rendered !== null && rendered !== undefined ? rendered : placeholder) !== null && _ref !== undefined ? _ref : stringFormatter.format('selectPlaceholder'),
15409
+ defaultChildren: (_ref = rendered !== null && rendered !== void 0 ? rendered : placeholder) !== null && _ref !== void 0 ? _ref : stringFormatter.format('selectPlaceholder'),
15410
15410
  defaultClassName: 'react-aria-SelectValue',
15411
15411
  values: {
15412
- selectedItem: (_state_selectedItem_value = (_state_selectedItem = state.selectedItem) === null || _state_selectedItem === undefined ? undefined : _state_selectedItem.value) !== null && _state_selectedItem_value !== undefined ? _state_selectedItem_value : null,
15413
- selectedText: (_state_selectedItem_textValue = (_state_selectedItem1 = state.selectedItem) === null || _state_selectedItem1 === undefined ? undefined : _state_selectedItem1.textValue) !== null && _state_selectedItem_textValue !== undefined ? _state_selectedItem_textValue : null,
15412
+ selectedItem: (_state_selectedItem_value = (_state_selectedItem = state.selectedItem) === null || _state_selectedItem === void 0 ? void 0 : _state_selectedItem.value) !== null && _state_selectedItem_value !== void 0 ? _state_selectedItem_value : null,
15413
+ selectedText: (_state_selectedItem_textValue = (_state_selectedItem1 = state.selectedItem) === null || _state_selectedItem1 === void 0 ? void 0 : _state_selectedItem1.textValue) !== null && _state_selectedItem_textValue !== void 0 ? _state_selectedItem_textValue : null,
15414
15414
  isPlaceholder: !selectedItem
15415
15415
  }
15416
15416
  });
@@ -15556,7 +15556,7 @@ function $eaf9e70818b436db$var$TagGroupInner({ props: props, forwardedRef: ref,
15556
15556
  ...domProps,
15557
15557
  ref: ref,
15558
15558
  slot: props.slot || undefined,
15559
- className: (_props_className = props.className) !== null && _props_className !== undefined ? _props_className : 'react-aria-TagGroup',
15559
+ className: (_props_className = props.className) !== null && _props_className !== void 0 ? _props_className : 'react-aria-TagGroup',
15560
15560
  style: props.style
15561
15561
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($64fa3d84918910a7$export$2881499e37b75b9a), {
15562
15562
  values: [
@@ -15769,7 +15769,7 @@ function $bcdf0525bf22703d$var$TextField(props, ref) {
15769
15769
  [props, ref] = ($64fa3d84918910a7$export$29f1550f4b0d4415)(props, ref, $bcdf0525bf22703d$export$2129e27b3ef0d483);
15770
15770
  let { validationBehavior: formValidationBehavior } = ($64fa3d84918910a7$export$fabf2dc03a41866e)(($d3e0e05bdfcf66bd$export$c24727297075ec6a)) || {};
15771
15771
  var _props_validationBehavior, _ref;
15772
- let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== undefined ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== undefined ? _ref : 'native';
15772
+ let validationBehavior = (_ref = (_props_validationBehavior = props.validationBehavior) !== null && _props_validationBehavior !== void 0 ? _props_validationBehavior : formValidationBehavior) !== null && _ref !== void 0 ? _ref : 'native';
15773
15773
  let inputRef = ($dbSRa$react.useRef)(null);
15774
15774
  let [labelRef, label] = ($64fa3d84918910a7$export$9d4c57ee4c6ffdd8)();
15775
15775
  let [inputElementType, setInputElementType] = ($dbSRa$react.useState)('input');
@@ -15954,7 +15954,7 @@ function $4e3b923658d69c60$var$TooltipInner(props) {
15954
15954
  ...overlayProps.style,
15955
15955
  ...renderProps.style
15956
15956
  },
15957
- "data-placement": placement !== null && placement !== undefined ? placement : undefined,
15957
+ "data-placement": placement !== null && placement !== void 0 ? placement : undefined,
15958
15958
  "data-entering": isEntering || undefined,
15959
15959
  "data-exiting": props.isExiting || undefined
15960
15960
  }, /*#__PURE__*/ ($dbSRa$react).createElement(($44f671af83e7d9e0$export$2de4954e8ae13b9f).Provider, {