@tamagui/core 3.0.7 → 3.0.9

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.
@@ -86,7 +86,7 @@ function createRefComponent(render) {
86
86
  }
87
87
  //#endregion
88
88
  //#region ../web/dist/esm/helpers/isObj.native.js
89
- var isObj = function(x) {
89
+ var isObj = function isObj2(x) {
90
90
  return x && !Array.isArray(x) && typeof x === "object";
91
91
  };
92
92
  function isPlainObject(value) {
@@ -96,20 +96,20 @@ function isPlainObject(value) {
96
96
  }
97
97
  //#endregion
98
98
  //#region ../web/dist/esm/helpers/mergeProps.native.js
99
- var mergeLayer = function(out, layer) {
99
+ var mergeLayer = function mergeLayer2(out, layer) {
100
100
  for (var key in layer) {
101
101
  var value = layer[key];
102
102
  if (value === void 0 && key in out) continue;
103
103
  out[key] = value;
104
104
  }
105
105
  };
106
- var mergeProps = function(defaultProps, props) {
106
+ var mergeProps = function mergeProps2(defaultProps, props) {
107
107
  var out = {};
108
108
  mergeLayer(out, defaultProps);
109
109
  mergeLayer(out, props);
110
110
  return out;
111
111
  };
112
- var mergeComponentProps = function(defaultProps, contextProps, props) {
112
+ var mergeComponentProps = function mergeComponentProps2(defaultProps, contextProps, props) {
113
113
  var overriddenContext = null;
114
114
  if (!defaultProps && !contextProps) return [props, overriddenContext];
115
115
  var out = {};
@@ -155,7 +155,7 @@ var _excluded$9 = [
155
155
  "scope",
156
156
  "__disableMergeDefaultValues"
157
157
  ];
158
- var createStyledContext = function(defaultValues) {
158
+ var createStyledContext = function createStyledContext2(defaultValues) {
159
159
  "use no memo";
160
160
  var namespaceOrOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
161
161
  var namespace = typeof namespaceOrOptions === "string" ? namespaceOrOptions : namespaceOrOptions.namespace || "";
@@ -174,10 +174,10 @@ var createStyledContext = function(defaultValues) {
174
174
  }
175
175
  return ScopedContext;
176
176
  }
177
- var getNamespacedScope = function(scope) {
177
+ var getNamespacedScope = function getNamespacedScope2(scope) {
178
178
  return namespace ? `${namespace}--${scope}` : scope;
179
179
  };
180
- var Provider = function(param) {
180
+ var Provider = function Provider2(param) {
181
181
  var { children, scope: scopeIn, __disableMergeDefaultValues } = param, values = _objectWithoutProperties(param, _excluded$9);
182
182
  var scope = getNamespacedScope(scopeIn);
183
183
  var next = react.default.useMemo(function() {
@@ -193,7 +193,7 @@ var createStyledContext = function(defaultValues) {
193
193
  })
194
194
  });
195
195
  };
196
- var useStyledContext = function() {
196
+ var useStyledContext = function useStyledContext2() {
197
197
  var scopeIn = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
198
198
  var lastScopeInNamespace = react.default.useContext(LastScopeInNamespace);
199
199
  var scope = namespace ? scopeIn ? getNamespacedScope(scopeIn) : lastScopeInNamespace : scopeIn;
@@ -232,7 +232,7 @@ var ComponentContext = createStyledContext({
232
232
  "setParentFocusState",
233
233
  "insets"
234
234
  ] });
235
- var useConfiguration = function() {
235
+ var useConfiguration = function useConfiguration2() {
236
236
  return (0, react.useContext)(ComponentContext);
237
237
  };
238
238
  //#endregion
@@ -410,7 +410,7 @@ function formatDiagnosticValue(value) {
410
410
  var items1 = keys.map(function(key2) {
411
411
  try {
412
412
  return `${key2}: ${formatDiagnosticValue(value[key2], depth + 1, seen)}`;
413
- } catch (e) {
413
+ } catch (unused) {
414
414
  return `${key2}: [Unavailable]`;
415
415
  }
416
416
  });
@@ -459,7 +459,7 @@ function canonicalTransitionProperty(key) {
459
459
  //#region ../simple-hash/dist/esm/index.native.js
460
460
  var cache$2 = /* @__PURE__ */ new Map();
461
461
  var cacheSize = 0;
462
- var simpleHash = function(strIn) {
462
+ var simpleHash = function simpleHash2(strIn) {
463
463
  var hashMin = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 10;
464
464
  var cacheKey = `${hashMin}:${strIn}`;
465
465
  if (cache$2.has(cacheKey)) return cache$2.get(cacheKey);
@@ -493,7 +493,7 @@ var simpleHash = function(strIn) {
493
493
  cacheSize++;
494
494
  return res;
495
495
  };
496
- var hashChar = function(hash, c) {
496
+ var hashChar = function hashChar2(hash, c) {
497
497
  return Math.imul(31, hash) + c.charCodeAt(0) | 0;
498
498
  };
499
499
  function isValidCSSCharCode(code) {
@@ -1111,7 +1111,7 @@ var cssStyleProps = {
1111
1111
  };
1112
1112
  //#endregion
1113
1113
  //#region ../helpers/dist/esm/toStylePropsObject.native.js
1114
- var toStylePropsObject = function() {
1114
+ var toStylePropsObject = function toStylePropsObject2() {
1115
1115
  for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) sources[_key] = arguments[_key];
1116
1116
  var out = {};
1117
1117
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -1178,7 +1178,7 @@ var validStyles = stylePropsView;
1178
1178
  //#endregion
1179
1179
  //#region ../helpers/dist/esm/withStaticProperties.native.js
1180
1180
  var Decorated = /* @__PURE__ */ Symbol();
1181
- var withStaticProperties = function(component, staticProps) {
1181
+ var withStaticProperties = function withStaticProperties2(component, staticProps) {
1182
1182
  var out = (function() {
1183
1183
  if (component[Decorated]) return typeof component === "function" ? Object.assign(component.bind(null), component) : _objectSpread2({}, component);
1184
1184
  return component;
@@ -1330,13 +1330,13 @@ function parseFlatValueProduction(source) {
1330
1330
  var length = source.length;
1331
1331
  var segments = [];
1332
1332
  var sawChain = false, chainStart = -1, chainEnd = -1, segmentStart = 0, wordStart = -1, lastColon = -1, quote = 0, comment = false, depth = 0, valid = true, clauseChainValid = true, currentChainValid = true, chainNonPlatformModifiers = null;
1333
- var close = function(end) {
1333
+ var close = function close2(end) {
1334
1334
  var start = segmentStart;
1335
1335
  while (start < end && source.charCodeAt(start) <= 32) start++;
1336
1336
  while (end > start && source.charCodeAt(end - 1) <= 32) end--;
1337
1337
  segments.push(start, end, chainStart, chainEnd, (!sawChain ? 1 : 0) | (clauseChainValid ? 6 : 0));
1338
1338
  };
1339
- var flush = function() {
1339
+ var flush = function flush2() {
1340
1340
  if (wordStart !== -1 && lastColon !== -1) {
1341
1341
  chainStart = wordStart;
1342
1342
  chainEnd = lastColon;
@@ -1426,19 +1426,19 @@ function parseFlatValueChecked(source) {
1426
1426
  var length = source.length;
1427
1427
  var segments = [];
1428
1428
  var failure = null, failureIndex = -1, sawChain = false, chainStart = -1, chainEnd = -1, chainValid = true, segmentValid = true, segmentStart = 0, comment = false, commentStart = -1, quote = 0, quoteStart = -1, url = false, depth = 0, parenStart = -1, wordStart = -1, lastColon = -1, wordErrorMin = length, wordErrorMax = -1, chainNonPlatformModifiers = null;
1429
- var report = function(code2, index2) {
1429
+ var report = function report2(code2, index2) {
1430
1430
  if (failureIndex === -1) failureIndex = index2;
1431
1431
  failure !== null && failure !== void 0 || (failure = code2);
1432
1432
  wordErrorMin = Math.min(wordErrorMin, index2);
1433
1433
  wordErrorMax = Math.max(wordErrorMax, index2);
1434
1434
  };
1435
- var close = function(end) {
1435
+ var close = function close2(end) {
1436
1436
  var start = segmentStart;
1437
1437
  while (start < end && source.charCodeAt(start) <= 32) start++;
1438
1438
  while (end > start && source.charCodeAt(end - 1) <= 32) end--;
1439
1439
  segments.push(start, end, chainStart, chainEnd, (!sawChain ? 1 : 0) | (segmentValid ? 2 : 0) | (chainValid ? 4 : 0));
1440
1440
  };
1441
- var flush = function(end) {
1441
+ var flush = function flush2(end) {
1442
1442
  if (wordStart !== -1 && lastColon !== -1) {
1443
1443
  chainStart = wordStart;
1444
1444
  chainEnd = lastColon;
@@ -1590,8 +1590,9 @@ function isRootThemeName(name) {
1590
1590
  return name.length > 0 && !name.includes("_");
1591
1591
  }
1592
1592
  function compileModifierVocabulary(view, onRefusal, onRegistered) {
1593
+ var _view_platformNames;
1593
1594
  var names = /* @__PURE__ */ Object.create(null);
1594
- var register = function(name2, code) {
1595
+ var register = function register2(name2, code) {
1595
1596
  var kind = code & 7;
1596
1597
  if (name2.charCodeAt(0) === 64) {
1597
1598
  onRefusal === null || onRefusal === void 0 || onRefusal(1, name2, kind, 0);
@@ -1628,7 +1629,6 @@ function compileModifierVocabulary(view, onRefusal, onRegistered) {
1628
1629
  forEachModifierName(view.mediaNames, function(name2, rank2) {
1629
1630
  return register(name2, 2 | rank2 << 3);
1630
1631
  });
1631
- var _view_platformNames;
1632
1632
  forEachModifierName((_view_platformNames = view.platformNames) !== null && _view_platformNames !== void 0 ? _view_platformNames : grammarPlatformNames, function(name2) {
1633
1633
  return register(name2, 3 | grammarPlatformRank(name2) << 3);
1634
1634
  });
@@ -1885,6 +1885,7 @@ function createGlobalState(key, defaultValue) {
1885
1885
  //#region ../native/dist/esm/gestureState.native.js
1886
1886
  var _globalThis;
1887
1887
  var _PRESS_STATE_KEY;
1888
+ var _$1;
1888
1889
  var state$1 = createGlobalState(`gesture`, {
1889
1890
  enabled: false,
1890
1891
  Gesture: null,
@@ -1919,12 +1920,11 @@ var PRESS_MOVE_CANCEL_DISTANCE = 12;
1919
1920
  var PRESS_MOVE_CANCEL_DISTANCE_SQ = PRESS_MOVE_CANCEL_DISTANCE * PRESS_MOVE_CANCEL_DISTANCE;
1920
1921
  var PRESS_STATE_KEY = "__tamagui_press_state__";
1921
1922
  function getEventPointerId(e) {
1923
+ var _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6, _ref7;
1922
1924
  var _e_pointer, _e_event, _e_event_pointer, _e_event1, _e_nativeEvent, _e_nativeEvent1, _e_event_nativeEvent, _e_event2, _e_event_nativeEvent1, _e_event3;
1923
- var _e_pointerId, _ref, _ref1, _ref2, _ref3, _ref4, _ref5, _ref6;
1924
- var pointerId = (_ref6 = (_ref5 = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_ref = (_e_pointerId = e === null || e === void 0 ? void 0 : e.pointerId) !== null && _e_pointerId !== void 0 ? _e_pointerId : e === null || e === void 0 ? void 0 : (_e_pointer = e.pointer) === null || _e_pointer === void 0 ? void 0 : _e_pointer.id) !== null && _ref !== void 0 ? _ref : e === null || e === void 0 ? void 0 : (_e_event = e.event) === null || _e_event === void 0 ? void 0 : _e_event.pointerId) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_event1 = e.event) === null || _e_event1 === void 0 ? void 0 : (_e_event_pointer = _e_event1.pointer) === null || _e_event_pointer === void 0 ? void 0 : _e_event_pointer.id) !== null && _ref2 !== void 0 ? _ref2 : e === null || e === void 0 ? void 0 : (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pointerId) !== null && _ref3 !== void 0 ? _ref3 : e === null || e === void 0 ? void 0 : (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.id) !== null && _ref4 !== void 0 ? _ref4 : e === null || e === void 0 ? void 0 : (_e_event2 = e.event) === null || _e_event2 === void 0 ? void 0 : (_e_event_nativeEvent = _e_event2.nativeEvent) === null || _e_event_nativeEvent === void 0 ? void 0 : _e_event_nativeEvent.pointerId) !== null && _ref5 !== void 0 ? _ref5 : e === null || e === void 0 ? void 0 : (_e_event3 = e.event) === null || _e_event3 === void 0 ? void 0 : (_e_event_nativeEvent1 = _e_event3.nativeEvent) === null || _e_event_nativeEvent1 === void 0 ? void 0 : _e_event_nativeEvent1.id) !== null && _ref6 !== void 0 ? _ref6 : null;
1925
+ var pointerId = (_ref = (_ref1 = (_ref2 = (_ref3 = (_ref4 = (_ref5 = (_ref6 = (_ref7 = e === null || e === void 0 ? void 0 : e.pointerId) !== null && _ref7 !== void 0 ? _ref7 : e === null || e === void 0 ? void 0 : (_e_pointer = e.pointer) === null || _e_pointer === void 0 ? void 0 : _e_pointer.id) !== null && _ref6 !== void 0 ? _ref6 : e === null || e === void 0 ? void 0 : (_e_event = e.event) === null || _e_event === void 0 ? void 0 : _e_event.pointerId) !== null && _ref5 !== void 0 ? _ref5 : e === null || e === void 0 ? void 0 : (_e_event1 = e.event) === null || _e_event1 === void 0 ? void 0 : (_e_event_pointer = _e_event1.pointer) === null || _e_event_pointer === void 0 ? void 0 : _e_event_pointer.id) !== null && _ref4 !== void 0 ? _ref4 : e === null || e === void 0 ? void 0 : (_e_nativeEvent = e.nativeEvent) === null || _e_nativeEvent === void 0 ? void 0 : _e_nativeEvent.pointerId) !== null && _ref3 !== void 0 ? _ref3 : e === null || e === void 0 ? void 0 : (_e_nativeEvent1 = e.nativeEvent) === null || _e_nativeEvent1 === void 0 ? void 0 : _e_nativeEvent1.id) !== null && _ref2 !== void 0 ? _ref2 : e === null || e === void 0 ? void 0 : (_e_event2 = e.event) === null || _e_event2 === void 0 ? void 0 : (_e_event_nativeEvent = _e_event2.nativeEvent) === null || _e_event_nativeEvent === void 0 ? void 0 : _e_event_nativeEvent.pointerId) !== null && _ref1 !== void 0 ? _ref1 : e === null || e === void 0 ? void 0 : (_e_event3 = e.event) === null || _e_event3 === void 0 ? void 0 : (_e_event_nativeEvent1 = _e_event3.nativeEvent) === null || _e_event_nativeEvent1 === void 0 ? void 0 : _e_event_nativeEvent1.id) !== null && _ref !== void 0 ? _ref : null;
1925
1926
  return pointerId == null || Number.isNaN(pointerId) ? null : Number(pointerId);
1926
1927
  }
1927
- var _$1;
1928
1928
  var pressState = (_$1 = (_globalThis = globalThis)[_PRESS_STATE_KEY = PRESS_STATE_KEY]) !== null && _$1 !== void 0 ? _$1 : _globalThis[_PRESS_STATE_KEY] = {
1929
1929
  owner: null,
1930
1930
  ownerId: null,
@@ -1963,9 +1963,9 @@ function getGestureHandler() {
1963
1963
  state$1.get().enabled = false;
1964
1964
  },
1965
1965
  createPressGesture(config) {
1966
+ var _config_delayLongPress;
1966
1967
  var { Gesture } = state$1.get();
1967
1968
  if (!Gesture) return null;
1968
- var _config_delayLongPress;
1969
1969
  var longPressDuration = (_config_delayLongPress = config.delayLongPress) !== null && _config_delayLongPress !== void 0 ? _config_delayLongPress : 500;
1970
1970
  var myToken = {};
1971
1971
  var myDebugId = ++pressGestureDebugId;
@@ -1978,7 +1978,7 @@ function getGestureHandler() {
1978
1978
  cancelledByMove: false
1979
1979
  };
1980
1980
  var GRACE_PERIOD_MS = process.env.TAMAGUI_RNGH_PRESS_DELAY ? +process.env.TAMAGUI_RNGH_PRESS_DELAY : 24;
1981
- var tryClaimOwnership = function(e) {
1981
+ var tryClaimOwnership = function tryClaimOwnership2(e) {
1982
1982
  var now = Date.now();
1983
1983
  resetStaleOwner(now, config.debugName);
1984
1984
  var currentPointerId = getEventPointerId(e);
@@ -1992,24 +1992,24 @@ function getGestureHandler() {
1992
1992
  }
1993
1993
  return pressState.owner === myToken;
1994
1994
  };
1995
- var isOwner = function() {
1995
+ var isOwner = function isOwner2() {
1996
1996
  return pressState.owner === myToken;
1997
1997
  };
1998
- var releaseOwnership = function() {
1998
+ var releaseOwnership = function releaseOwnership2() {
1999
1999
  if (flags.pressInTimer) {
2000
2000
  clearTimeout(flags.pressInTimer);
2001
2001
  flags.pressInTimer = null;
2002
2002
  }
2003
2003
  if (pressState.owner === myToken) resetPressOwner();
2004
2004
  };
2005
- var firePressIn = function(e) {
2005
+ var firePressIn = function firePressIn2(e) {
2006
2006
  if (!flags.didPressIn && isOwner()) {
2007
2007
  var _config_onPressIn;
2008
2008
  flags.didPressIn = true;
2009
2009
  (_config_onPressIn = config.onPressIn) === null || _config_onPressIn === void 0 || _config_onPressIn.call(config, e);
2010
2010
  }
2011
2011
  };
2012
- var schedulePressIn = function(e) {
2012
+ var schedulePressIn = function schedulePressIn2(e) {
2013
2013
  if (flags.pressInTimer) clearTimeout(flags.pressInTimer);
2014
2014
  flags.pressInTimer = setTimeout(function() {
2015
2015
  flags.pressInTimer = null;
@@ -2025,10 +2025,10 @@ function getGestureHandler() {
2025
2025
  tryClaimOwnership(e);
2026
2026
  schedulePressIn(e);
2027
2027
  }).onTouchesMove(function(e) {
2028
+ var _ref;
2028
2029
  var _e_changedTouches, _e_allTouches;
2029
2030
  if (flags.cancelledByMove || flags.moveStartX === null) return;
2030
- var _e_changedTouches_;
2031
- var touch = (_e_changedTouches_ = (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0]) !== null && _e_changedTouches_ !== void 0 ? _e_changedTouches_ : (_e_allTouches = e.allTouches) === null || _e_allTouches === void 0 ? void 0 : _e_allTouches[0];
2031
+ var touch = (_ref = (_e_changedTouches = e.changedTouches) === null || _e_changedTouches === void 0 ? void 0 : _e_changedTouches[0]) !== null && _ref !== void 0 ? _ref : (_e_allTouches = e.allTouches) === null || _e_allTouches === void 0 ? void 0 : _e_allTouches[0];
2032
2032
  if (!touch) return;
2033
2033
  var dx = touch.absoluteX - flags.moveStartX;
2034
2034
  var dy = touch.absoluteY - flags.moveStartY;
@@ -2147,14 +2147,13 @@ function hasSafeAreaSetup() {
2147
2147
  //#region ../native/dist/esm/nativeMenuContext.native.js
2148
2148
  var _g;
2149
2149
  var _KEY;
2150
- var KEY = "__tamagui_native_menu_context__";
2151
- var g = globalThis;
2152
2150
  var _;
2153
- var NativeMenuContext = (_ = (_g = g)[_KEY = KEY]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
2151
+ var NativeMenuContext = (_ = (_g = globalThis)[_KEY = "__tamagui_native_menu_context__"]) !== null && _ !== void 0 ? _ : _g[_KEY] = (0, react.createContext)(false);
2154
2152
  //#endregion
2155
2153
  //#region ../web/dist/esm/helpers/resolveSafeAreaVariable.native.js
2156
2154
  var didWarnMissingSetup = false;
2157
2155
  function resolveSafeAreaVariable(name) {
2156
+ var _ref;
2158
2157
  var _state_initialMetrics;
2159
2158
  var edge = name.startsWith("safe-area-") ? name.slice(10) : "";
2160
2159
  if (edge !== "top" && edge !== "right" && edge !== "bottom" && edge !== "left") return;
@@ -2166,8 +2165,7 @@ function resolveSafeAreaVariable(name) {
2166
2165
  }
2167
2166
  return 0;
2168
2167
  }
2169
- var _state_initialMetrics_insets_edge;
2170
- return state.enabled ? (_state_initialMetrics_insets_edge = (_state_initialMetrics = state.initialMetrics) === null || _state_initialMetrics === void 0 ? void 0 : _state_initialMetrics.insets[edge]) !== null && _state_initialMetrics_insets_edge !== void 0 ? _state_initialMetrics_insets_edge : 0 : 0;
2168
+ return state.enabled ? (_ref = (_state_initialMetrics = state.initialMetrics) === null || _state_initialMetrics === void 0 ? void 0 : _state_initialMetrics.insets[edge]) !== null && _ref !== void 0 ? _ref : 0 : 0;
2171
2169
  }
2172
2170
  function subscribeToSafeArea(listener) {
2173
2171
  return getSafeArea().subscribe(listener);
@@ -2183,8 +2181,8 @@ var warned = globalThis.process.env.NODE_ENV !== "production" ? /* @__PURE__ */
2183
2181
  function warnOnce(key) {
2184
2182
  var message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : key;
2185
2183
  if (globalThis.process.env.NODE_ENV === "development") {
2186
- var _warned_size;
2187
- if ((warned === null || warned === void 0 ? void 0 : warned.has(key)) || ((_warned_size = warned === null || warned === void 0 ? void 0 : warned.size) !== null && _warned_size !== void 0 ? _warned_size : 0) >= warnLimit) return;
2184
+ var _ref;
2185
+ if ((warned === null || warned === void 0 ? void 0 : warned.has(key)) || ((_ref = warned === null || warned === void 0 ? void 0 : warned.size) !== null && _ref !== void 0 ? _ref : 0) >= warnLimit) return;
2188
2186
  warned === null || warned === void 0 || warned.add(key);
2189
2187
  console.warn(`[tamagui] ${message}`);
2190
2188
  }
@@ -2273,7 +2271,7 @@ function resolveStyleStaticConfig(staticConfig, conf, revision) {
2273
2271
  if (resolvedBaseStyle && !staticConfig.disableBaseStylePiece) {
2274
2272
  var directBaseStyle;
2275
2273
  var directBaseKeys;
2276
- var flushDirectBaseStyle = function() {
2274
+ var flushDirectBaseStyle = function flushDirectBaseStyle2() {
2277
2275
  if (!directBaseStyle || !directBaseKeys) return;
2278
2276
  var piece = createStylePiece(directBaseStyle, "base");
2279
2277
  baseStylePiece || (baseStylePiece = piece);
@@ -2393,7 +2391,7 @@ function prepareConfigRevision(config) {
2393
2391
  rank
2394
2392
  ];
2395
2393
  }
2396
- var resolveCondition = function(authored) {
2394
+ var resolveCondition = function resolveCondition2(authored) {
2397
2395
  var cached = conditionModifiers[authored];
2398
2396
  if (cached !== void 0) return cached;
2399
2397
  var result = null;
@@ -2462,10 +2460,10 @@ function prepareConfigRevision(config) {
2462
2460
  insetInline: 8,
2463
2461
  borderRadius: 8
2464
2462
  };
2465
- var propertyKind = function(property) {
2463
+ var propertyKind = function propertyKind2(property) {
2466
2464
  return propertyKinds[property] || 0;
2467
2465
  };
2468
- var tokenCategory = function(property) {
2466
+ var tokenCategory = function tokenCategory2(property) {
2469
2467
  return config.tokensParsed[property] ? property : config.tokensParsed.borderWidth && property.startsWith("border") && property.endsWith("Width") ? "borderWidth" : getTokenCategoryForProperty(property);
2470
2468
  };
2471
2469
  var normalizedTransitions = /* @__PURE__ */ new Map();
@@ -2478,11 +2476,11 @@ function prepareConfigRevision(config) {
2478
2476
  expandSafeArea: expandSafeAreaValue,
2479
2477
  safeAreaVariable: resolveSafeAreaVariable,
2480
2478
  parseFlatValue,
2481
- styleStaticConfig: function(staticConfig, conf) {
2479
+ styleStaticConfig: function styleStaticConfig(staticConfig, conf) {
2482
2480
  return resolveStyleStaticConfig(staticConfig, conf, captured.revision);
2483
2481
  },
2484
2482
  propertyKind,
2485
- compositeValue: function(property, raw, context, resolve) {
2483
+ compositeValue: function compositeValue(property, raw, context, resolve) {
2486
2484
  var kind2 = propertyKinds[property];
2487
2485
  if (kind2 < 7) return;
2488
2486
  if (kind2 === 7) {
@@ -2518,7 +2516,7 @@ function prepareConfigRevision(config) {
2518
2516
  return value;
2519
2517
  }
2520
2518
  },
2521
- normalizeTransition: function(raw) {
2519
+ normalizeTransition: function normalizeTransition(raw) {
2522
2520
  var known = normalizedTransitions.get(raw);
2523
2521
  if (known !== void 0) return known;
2524
2522
  var out = raw.replace(/\/\*[\s\S]*?\*\/|(["'])(?:\\.|(?!\1)[^\\])*\1|[A-Za-z_][\w-]*/g, function(authored, quote, offset) {
@@ -2529,7 +2527,7 @@ function prepareConfigRevision(config) {
2529
2527
  normalizedTransitions.set(raw, out);
2530
2528
  return out;
2531
2529
  },
2532
- embeddedTokens: function(raw, resolve) {
2530
+ embeddedTokens: function embeddedTokens(raw, resolve) {
2533
2531
  return raw.replace(/\/\*[\s\S]*?\*\/|(["'])(?:\\.|(?!\1)[^\\])*\1|[$A-Za-z_][\w.$-]*(?:\/\d*\.?\d+)?/g, function(word, quote, offset) {
2534
2532
  var before = raw.charCodeAt(offset - 1);
2535
2533
  return quote || word[0] !== "$" && (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(offset - 2) === 45 || raw.charCodeAt(offset + word.length) === 40) ? word : resolve(word);
@@ -2552,7 +2550,7 @@ var setConfigCalledByThisInstance = false;
2552
2550
  var haventCalledErrorMessage = globalThis.process.env.NODE_ENV === "development" ? `
2553
2551
  Haven't called createTamagui yet. ${MISSING_THEME_MESSAGE}
2554
2552
  ` : `\u274C Error 001`;
2555
- var getConfigFromGlobalOrLocal = function() {
2553
+ var getConfigFromGlobalOrLocal = function getConfigFromGlobalOrLocal2() {
2556
2554
  if (conf) return conf;
2557
2555
  if (globalThis.__tamaguiConfig) {
2558
2556
  if (globalThis.process.env.NODE_ENV === "development" && globalThis.__tamaguiEvaluationConfig !== globalThis.__tamaguiConfig && !globalThis.__tamaguiHasWarnedGlobalFallback && !globalThis.__tamaguiPendingCheck) {
@@ -2573,7 +2571,7 @@ Tamagui: Using global config fallback. This may indicate duplicate tamagui insta
2573
2571
  }
2574
2572
  return null;
2575
2573
  };
2576
- var getSetting = function(key) {
2574
+ var getSetting = function getSetting2(key) {
2577
2575
  var config = getConfigFromGlobalOrLocal();
2578
2576
  if (globalThis.process.env.NODE_ENV === "development") {
2579
2577
  if (!config) throw new Error(haventCalledErrorMessage);
@@ -2585,7 +2583,7 @@ function getStyleCompat() {
2585
2583
  var config = getConfigFromGlobalOrLocal();
2586
2584
  return (config === null || config === void 0 ? void 0 : (_config_settings = config.settings) === null || _config_settings === void 0 ? void 0 : _config_settings.styleCompat) || "web";
2587
2585
  }
2588
- var setConfig = function(next) {
2586
+ var setConfig = function setConfig2(next) {
2589
2587
  setConfigCalledByThisInstance = true;
2590
2588
  var previous = conf;
2591
2589
  var previousGlobal = globalThis.__tamaguiConfig;
@@ -2595,7 +2593,7 @@ var setConfig = function(next) {
2595
2593
  globalThis.__tamaguiConfig = next;
2596
2594
  if (process.env.TAMAGUI_ENVIRONMENT === "tamagui") globalThis.__tamaguiEvaluationConfig = next;
2597
2595
  };
2598
- var setConfigFont = function(name, font, fontParsed) {
2596
+ var setConfigFont = function setConfigFont2(name, font, fontParsed) {
2599
2597
  var config = getConfigFromGlobalOrLocal();
2600
2598
  if (globalThis.process.env.NODE_ENV === "development") {
2601
2599
  if (!config) throw new Error(haventCalledErrorMessage);
@@ -2604,58 +2602,58 @@ var setConfigFont = function(name, font, fontParsed) {
2604
2602
  config.fontsParsed[name] = fontParsed;
2605
2603
  prepareConfigRevision(config);
2606
2604
  };
2607
- var getConfig = function() {
2605
+ var getConfig = function getConfig2() {
2608
2606
  var config = getConfigFromGlobalOrLocal();
2609
2607
  if (!config) throw new Error(formatDiagnostic("Err0", "TamaguiConfig", "no config is available", "Call createTamagui before rendering and deduplicate Tamagui package versions", "config", config));
2610
2608
  return config;
2611
2609
  };
2612
- var getConfigMaybe = function() {
2610
+ var getConfigMaybe = function getConfigMaybe2() {
2613
2611
  return getConfigFromGlobalOrLocal();
2614
2612
  };
2615
2613
  var tokens;
2616
2614
  function setTokens(next) {
2617
2615
  tokens = next;
2618
2616
  }
2619
- var getTokensParsed = function() {
2617
+ var getTokensParsed = function getTokensParsed2() {
2618
+ var _ref;
2620
2619
  var _getConfigFromGlobalOrLocal;
2621
- var _getConfigFromGlobalOrLocal_tokensParsed;
2622
- return (_getConfigFromGlobalOrLocal_tokensParsed = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _getConfigFromGlobalOrLocal_tokensParsed !== void 0 ? _getConfigFromGlobalOrLocal_tokensParsed : tokens;
2620
+ return (_ref = (_getConfigFromGlobalOrLocal = getConfigFromGlobalOrLocal()) === null || _getConfigFromGlobalOrLocal === void 0 ? void 0 : _getConfigFromGlobalOrLocal.tokensParsed) !== null && _ref !== void 0 ? _ref : tokens;
2623
2621
  };
2624
- var getTokens = function() {
2622
+ var getTokens = function getTokens2() {
2625
2623
  if (globalThis.process.env.NODE_ENV === "development") {
2626
2624
  if (!getConfigFromGlobalOrLocal()) throw new Error(haventCalledErrorMessage);
2627
2625
  }
2628
2626
  return getTokensParsed();
2629
2627
  };
2630
- var getTokenObject = function(value, group) {
2628
+ var getTokenObject = function getTokenObject2(value, group) {
2631
2629
  var _tokens_group, _tokens_;
2632
2630
  var tokens2 = getTokensParsed();
2633
2631
  return group ? (_tokens_group = tokens2[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[value] : (_tokens_ = tokens2[Object.keys(tokens2).find(function(cat) {
2634
2632
  return tokens2[cat][value];
2635
2633
  }) || ""]) === null || _tokens_ === void 0 ? void 0 : _tokens_[value];
2636
2634
  };
2637
- var getToken = function(value, group) {
2635
+ var getToken = function getToken2(value, group) {
2638
2636
  var useVariable = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
2639
2637
  var token = getTokenObject(value, group);
2640
2638
  return useVariable ? token === null || token === void 0 ? void 0 : token.variable : token === null || token === void 0 ? void 0 : token.val;
2641
2639
  };
2642
- var getTokenValue = function(value, group) {
2640
+ var getTokenValue = function getTokenValue2(value, group) {
2643
2641
  if (value === "unset" || value === "auto") return;
2644
2642
  return getToken(value, group, false);
2645
2643
  };
2646
- var getThemes = function() {
2644
+ var getThemes = function getThemes2() {
2647
2645
  return getConfigFromGlobalOrLocal().themes;
2648
2646
  };
2649
- var updateConfig = function(key, value) {
2647
+ var updateConfig = function updateConfig2(key, value) {
2650
2648
  var config = getConfigFromGlobalOrLocal();
2651
2649
  if (!config || key === "__proto__" || !(key in config)) return;
2652
2650
  Object.assign(config[key], value);
2653
2651
  prepareConfigRevision(config);
2654
2652
  };
2655
- var getFont = function(name) {
2653
+ var getFont = function getFont2(name) {
2654
+ var _conf_fontsParsed_name;
2656
2655
  var _Object_entries_find;
2657
2656
  var conf2 = getConfig();
2658
- var _conf_fontsParsed_name;
2659
2657
  return (_conf_fontsParsed_name = conf2.fontsParsed[name]) !== null && _conf_fontsParsed_name !== void 0 ? _conf_fontsParsed_name : (_Object_entries_find = Object.entries(conf2.fontsParsed).find(function(param) {
2660
2658
  var [k] = param;
2661
2659
  var _conf_fontsParsed_k_family, _conf_fontsParsed_k;
@@ -2684,7 +2682,7 @@ function constructCSSVariableName(name) {
2684
2682
  return `var(--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${name})`;
2685
2683
  }
2686
2684
  var pxStringRe$1 = /^-?\d*\.?\d+px$/;
2687
- var createVariable = function(props) {
2685
+ var createVariable = function createVariable2(props) {
2688
2686
  var skipHash = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
2689
2687
  if (!skipHash && isVariable(props)) return props;
2690
2688
  var { key, name, val } = props;
@@ -2708,19 +2706,19 @@ function isVariable(v) {
2708
2706
  }
2709
2707
  function getVariable(nameOrVariable) {
2710
2708
  var group = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "size";
2709
+ var _ref;
2711
2710
  var _tokens_group;
2712
2711
  if (nameOrVariable === null || nameOrVariable === void 0 ? void 0 : nameOrVariable.dynamic) return nameOrVariable;
2713
2712
  setDidGetVariableValue(true);
2714
2713
  if (isVariable(nameOrVariable)) return variableToString(nameOrVariable);
2715
2714
  var tokens = getConfig().tokensParsed;
2716
- var _tokens_group_nameOrVariable;
2717
- return variableToString((_tokens_group_nameOrVariable = (_tokens_group = tokens[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[nameOrVariable]) !== null && _tokens_group_nameOrVariable !== void 0 ? _tokens_group_nameOrVariable : nameOrVariable);
2715
+ return variableToString((_ref = (_tokens_group = tokens[group]) === null || _tokens_group === void 0 ? void 0 : _tokens_group[nameOrVariable]) !== null && _ref !== void 0 ? _ref : nameOrVariable);
2718
2716
  }
2719
2717
  var accessed = false;
2720
- var setDidGetVariableValue = function(val) {
2718
+ var setDidGetVariableValue = function setDidGetVariableValue2(val) {
2721
2719
  return accessed = val;
2722
2720
  };
2723
- var didGetVariableValue = function() {
2721
+ var didGetVariableValue = function didGetVariableValue2() {
2724
2722
  return accessed;
2725
2723
  };
2726
2724
  function getVariableValue(v, group) {
@@ -2738,7 +2736,7 @@ function getVariableValue(v, group) {
2738
2736
  }
2739
2737
  return v;
2740
2738
  }
2741
- var createCSSVariable = function(nameProp) {
2739
+ var createCSSVariable = function createCSSVariable2(nameProp) {
2742
2740
  var includeVar = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
2743
2741
  if (globalThis.process.env.NODE_ENV === "development") {
2744
2742
  if (!nameProp || typeof nameProp !== "string") throw new Error(`createCSSVariable expected string, got: ${nameProp}`);
@@ -2760,11 +2758,11 @@ function isOptimizedForFirstRender() {
2760
2758
  //#endregion
2761
2759
  //#region ../web/dist/esm/helpers/mediaState.native.js
2762
2760
  var mediaState = {};
2763
- var setMediaState = function(next) {
2761
+ var setMediaState = function setMediaState2(next) {
2764
2762
  mediaState = next;
2765
2763
  };
2766
2764
  var mediaQueryConfig = {};
2767
- var getMedia = function() {
2765
+ var getMedia = function getMedia2() {
2768
2766
  return mediaState;
2769
2767
  };
2770
2768
  var mediaKeys = /* @__PURE__ */ new Set();
@@ -2781,7 +2779,7 @@ function mediaKeyMatch(key, dimensions) {
2781
2779
  //#endregion
2782
2780
  //#region ../web/dist/esm/helpers/matchMedia.native.js
2783
2781
  var matchMediaImpl = matchMediaFallback;
2784
- var matchMedia = function() {
2782
+ var matchMedia = function matchMedia2() {
2785
2783
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
2786
2784
  return matchMediaImpl(...args);
2787
2785
  };
@@ -2796,11 +2794,11 @@ function matchMediaFallback(query) {
2796
2794
  }));
2797
2795
  }
2798
2796
  return {
2799
- match: function(a, b) {
2797
+ match: function match(a, b) {
2800
2798
  return false;
2801
2799
  },
2802
- addListener: function() {},
2803
- removeListener: function() {},
2800
+ addListener: function addListener() {},
2801
+ removeListener: function removeListener() {},
2804
2802
  matches: false
2805
2803
  };
2806
2804
  }
@@ -2815,7 +2813,7 @@ function setupMatchMedia(_) {
2815
2813
  }
2816
2814
  var dispose = /* @__PURE__ */ new Set();
2817
2815
  var mediaVersion = 0;
2818
- var configureMedia = function(config) {
2816
+ var configureMedia = function configureMedia2(config) {
2819
2817
  var { media } = config;
2820
2818
  var mediaQueryDefaultActive = getSetting("mediaQueryDefaultActive");
2821
2819
  if (!media) return;
@@ -2840,7 +2838,7 @@ var setupVersion = -1;
2840
2838
  function setupMediaListeners() {
2841
2839
  var _loop = function(key2) {
2842
2840
  var str = mediaObjectToString(mediaQueryConfig[key2]);
2843
- var getMatch = function() {
2841
+ var getMatch = function getMatch2() {
2844
2842
  return matchMedia(str);
2845
2843
  };
2846
2844
  var match = getMatch();
@@ -3192,7 +3190,7 @@ function useMedia(emitter, debug, uid) {
3192
3190
  });
3193
3191
  return ref.optimizeForFirstRender ? state : ref.proxy;
3194
3192
  }
3195
- var incReducer$1 = function(c) {
3193
+ var incReducer$1 = function incReducer2(c) {
3196
3194
  return c + 1;
3197
3195
  };
3198
3196
  var disableMediaTouch = false;
@@ -3290,7 +3288,7 @@ var HadTheme = /* @__PURE__ */ new WeakMap();
3290
3288
  var PendingUpdate = /* @__PURE__ */ new Map();
3291
3289
  var states = /* @__PURE__ */ new Map();
3292
3290
  var shouldForce = false;
3293
- var forceUpdateThemes = function() {
3291
+ var forceUpdateThemes = function forceUpdateThemes2() {
3294
3292
  cacheVersion++;
3295
3293
  shouldForce = true;
3296
3294
  allListeners.forEach(function(cb) {
@@ -3298,24 +3296,24 @@ var forceUpdateThemes = function() {
3298
3296
  });
3299
3297
  shouldForce = false;
3300
3298
  };
3301
- var getThemeState = function(id) {
3299
+ var getThemeState = function getThemeState2(id) {
3302
3300
  return states.get(id);
3303
3301
  };
3304
3302
  var themeUpdateLayers = /* @__PURE__ */ new Map();
3305
3303
  var themeProviderParents = /* @__PURE__ */ new Map();
3306
- var getThemeUpdateLayer = function(id) {
3304
+ var getThemeUpdateLayer = function getThemeUpdateLayer2(id) {
3307
3305
  return themeUpdateLayers.get(id);
3308
3306
  };
3309
- var getThemeProviderParent = function(id) {
3307
+ var getThemeProviderParent = function getThemeProviderParent2(id) {
3310
3308
  return themeProviderParents.get(id);
3311
3309
  };
3312
- var getThemeProviderChainSizes = function() {
3310
+ var getThemeProviderChainSizes = function getThemeProviderChainSizes2() {
3313
3311
  return {
3314
3312
  layers: themeUpdateLayers.size,
3315
3313
  parents: themeProviderParents.size
3316
3314
  };
3317
3315
  };
3318
- var registerThemeProviderChain = function(id, parentId, props) {
3316
+ var registerThemeProviderChain = function registerThemeProviderChain2(id, parentId, props) {
3319
3317
  themeProviderParents.set(id, parentId);
3320
3318
  if (props._themeUpdate) themeUpdateLayers.set(id, props._themeUpdate);
3321
3319
  else themeUpdateLayers.delete(id);
@@ -3325,20 +3323,20 @@ var themeNameCache = /* @__PURE__ */ new Map();
3325
3323
  var themeNameCacheVer = -1;
3326
3324
  var themes = null;
3327
3325
  var rootThemeState = null;
3328
- var getRootThemeState = function() {
3326
+ var getRootThemeState = function getRootThemeState2() {
3329
3327
  return rootThemeState;
3330
3328
  };
3331
- var getThemeBaseName = function(name) {
3329
+ var getThemeBaseName = function getThemeBaseName2(name) {
3332
3330
  return name.replace(/^(light|dark)_/, "");
3333
3331
  };
3334
- var incReducer = function(c) {
3332
+ var incReducer = function incReducer2(c) {
3335
3333
  return c + 1;
3336
3334
  };
3337
- var useThemeState = function(props) {
3335
+ var useThemeState = function useThemeState2(props) {
3338
3336
  "use no memo";
3339
3337
  var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, keys = arguments.length > 2 ? arguments[2] : void 0, schemeKeys = arguments.length > 3 ? arguments[3] : void 0, cascadeOnChange = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false, optimizeForFirstRender = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;
3340
- var _props__themeUpdate;
3341
3338
  var _ref;
3339
+ var _props__themeUpdate;
3342
3340
  var { disable } = props;
3343
3341
  var parentId = (0, react.useContext)(ThemeStateContext);
3344
3342
  if (!parentId && !isRoot) throw new Error(globalThis.process.env.NODE_ENV === "development" ? `${MISSING_THEME_MESSAGE}
@@ -3383,7 +3381,7 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
3383
3381
  var _listenersByParent, _pid;
3384
3382
  var pid = r.parentId;
3385
3383
  var sid = r.id;
3386
- var cb = function(forced) {
3384
+ var cb = function cb2(forced) {
3387
3385
  var next = getSnapshotImpl(r);
3388
3386
  if (next !== r.lastSnap) {
3389
3387
  var _r_props_nativeUpdate, _r_props;
@@ -3433,7 +3431,7 @@ Looked for theme${props.name ? ` "${props.name}"` : ""}, but no parent theme con
3433
3431
  }, [keys, propsKey]);
3434
3432
  return state;
3435
3433
  };
3436
- var shouldSubscribeToTheme = function(r, cascadeOnChange) {
3434
+ var shouldSubscribeToTheme = function shouldSubscribeToTheme2(r, cascadeOnChange) {
3437
3435
  var _r_keys_current, _r_props_needsUpdate, _r_props;
3438
3436
  return Boolean(r.optimizeForFirstRender || r.isRoot || cascadeOnChange || hasThemeUpdatingProps(r.props) || ((_r_keys_current = r.keys.current) === null || _r_keys_current === void 0 ? void 0 : _r_keys_current.size) || ((_r_props_needsUpdate = (_r_props = r.props).needsUpdate) === null || _r_props_needsUpdate === void 0 ? void 0 : _r_props_needsUpdate.call(_r_props)));
3439
3437
  };
@@ -3447,7 +3445,7 @@ function cleanupThemeState(r) {
3447
3445
  themeUpdateLayers.delete(r.id);
3448
3446
  themeProviderParents.delete(r.id);
3449
3447
  }
3450
- var getSnapshotImpl = function(r) {
3448
+ var getSnapshotImpl = function getSnapshotImpl2(r) {
3451
3449
  var _keys_current, _schemeKeys_current, _keys_current1, _props_needsUpdate;
3452
3450
  var { id, parentId, props, propsKey, isRoot, keys, optimizeForFirstRender } = r;
3453
3451
  var schemeKeys = r.schemeKeys;
@@ -3482,8 +3480,9 @@ var getSnapshotImpl = function(r) {
3482
3480
  states.set(id, next);
3483
3481
  return local;
3484
3482
  };
3485
- var getNextState = function(lastState, props, propsKey) {
3483
+ var getNextState = function getNextState2(lastState, props, propsKey) {
3486
3484
  var isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, id = arguments.length > 4 ? arguments[4] : void 0, parentId = arguments.length > 5 ? arguments[5] : void 0, needsUpdate = arguments.length > 6 ? arguments[6] : void 0, pendingUpdate = arguments.length > 7 ? arguments[7] : void 0;
3485
+ var _ref;
3487
3486
  var parentState = states.get(parentId);
3488
3487
  if (props.passThrough) return [false, parentState || lastState || { name: "" }];
3489
3488
  themes || (themes = getConfig().themes);
@@ -3501,8 +3500,8 @@ var getNextState = function(lastState, props, propsKey) {
3501
3500
  return [shouldRerender, _objectSpread2(_objectSpread2({}, parentState), {}, { isNew: false })];
3502
3501
  }
3503
3502
  if (!resolvedName) {
3504
- var _ref, _ref1;
3505
- var next = (_ref1 = (_ref = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref !== void 0 ? _ref : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
3503
+ var _ref1, _ref2;
3504
+ var next = (_ref1 = (_ref2 = lastState !== null && lastState !== void 0 ? lastState : parentState) !== null && _ref2 !== void 0 ? _ref2 : rootThemeState) !== null && _ref1 !== void 0 ? _ref1 : {
3506
3505
  id,
3507
3506
  name: "light",
3508
3507
  theme: getConfig().themes.light
@@ -3511,8 +3510,7 @@ var getNextState = function(lastState, props, propsKey) {
3511
3510
  return [false, next];
3512
3511
  }
3513
3512
  var scheme = getAuthoredThemeScheme(themes[resolvedName]) || getThemeScheme(resolvedName);
3514
- var _parentState_inverses;
3515
- var parentInverses = (_parentState_inverses = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _parentState_inverses !== void 0 ? _parentState_inverses : 0;
3513
+ var parentInverses = (_ref = parentState === null || parentState === void 0 ? void 0 : parentState.inverses) !== null && _ref !== void 0 ? _ref : 0;
3516
3514
  var isInverse = Boolean(parentState && scheme !== parentState.scheme);
3517
3515
  var inverses = parentInverses + (isInverse ? 1 : 0);
3518
3516
  var nextState = {
@@ -3597,7 +3595,7 @@ function resolveThemeName(parentName, name, themes2) {
3597
3595
  if (!forceUpdate && found === parentName && found !== "light" && found !== "dark") return null;
3598
3596
  return found;
3599
3597
  }
3600
- var hasThemeUpdatingProps = function(props) {
3598
+ var hasThemeUpdatingProps = function hasThemeUpdatingProps2(props) {
3601
3599
  return "name" in props || "forceClassName" in props || "_themeUpdate" in props;
3602
3600
  };
3603
3601
  //#endregion
@@ -3640,7 +3638,7 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3640
3638
  var config = getConfig();
3641
3639
  var proxied1 = Object.fromEntries(Object.entries(_state.theme).flatMap(function(param) {
3642
3640
  var [key, value] = param;
3643
- var get = function(platform) {
3641
+ var get = function get2(platform) {
3644
3642
  if (!curState) return;
3645
3643
  var outVal = getVariable(value);
3646
3644
  var { name, scheme } = curState;
@@ -3701,12 +3699,12 @@ function getThemeProxied(_props, _state, _keys, _schemeKeys) {
3701
3699
  //#endregion
3702
3700
  //#region ../web/dist/esm/hooks/useTheme.native.js
3703
3701
  var EMPTY = {};
3704
- var useTheme = function() {
3702
+ var useTheme = function useTheme2() {
3705
3703
  "use no memo";
3706
3704
  var [theme] = useThemeWithState(EMPTY);
3707
3705
  return theme;
3708
3706
  };
3709
- var useThemeWithState = function(props) {
3707
+ var useThemeWithState = function useThemeWithState2(props) {
3710
3708
  "use no memo";
3711
3709
  var isRoot = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false, forThemeView = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
3712
3710
  var bag = (0, react.useRef)(null);
@@ -3733,7 +3731,7 @@ var _excluded2$3 = ["_expressions"];
3733
3731
  var EMPTY_EXPRESSIONS = [];
3734
3732
  var EMPTY_THEME = {};
3735
3733
  var FALLBACK_THEME_CACHE = /* @__PURE__ */ new WeakMap();
3736
- var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKeys) {
3734
+ var _withStableStyle = function _withStableStyle2(Component, createStyle, hasThemeKeys, hasMediaKeys) {
3737
3735
  return /* @__PURE__ */ react.default.memo(function WithStableStyle(props) {
3738
3736
  var { ref } = props, propsWithoutRef = _objectWithoutProperties(props, _excluded$8);
3739
3737
  var { _expressions = EMPTY_EXPRESSIONS } = propsWithoutRef, rest = _objectWithoutProperties(propsWithoutRef, _excluded2$3);
@@ -3753,7 +3751,7 @@ var _withStableStyle = function(Component, createStyle, hasThemeKeys, hasMediaKe
3753
3751
  if (!gettableTheme) {
3754
3752
  var _loop = function(key2) {
3755
3753
  var value = fallbackTheme[key2];
3756
- gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && typeof value === "object" ? value : { val: value }), {}, { get: function() {
3754
+ gettableTheme[key2] = typeof (value === null || value === void 0 ? void 0 : value.get) === "function" ? value : _objectSpread2(_objectSpread2({}, value && typeof value === "object" ? value : { val: value }), {}, { get: function get() {
3757
3755
  return getVariable(value);
3758
3756
  } });
3759
3757
  };
@@ -3868,6 +3866,7 @@ function getCompiledMapping(mapping) {
3868
3866
  return compiled;
3869
3867
  }
3870
3868
  function resolveCompiledMapping(compiled, stateName, theme) {
3869
+ var _ref;
3871
3870
  var cached = compiled.states.get(stateName);
3872
3871
  if ((cached === null || cached === void 0 ? void 0 : cached.theme) === theme) return cached;
3873
3872
  var renderProps = {};
@@ -3876,8 +3875,7 @@ function resolveCompiledMapping(compiled, stateName, theme) {
3876
3875
  renderProps[styleKey] = value === void 0 ? null : getVariableValue(value);
3877
3876
  }
3878
3877
  renderProps = normalizeNativeStyle(renderProps, true);
3879
- var _engine_processStyleColors;
3880
- var nativeProps = (_engine_processStyleColors = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _engine_processStyleColors !== void 0 ? _engine_processStyleColors : renderProps;
3878
+ var nativeProps = (_ref = engine === null || engine === void 0 ? void 0 : engine.processStyleColors(renderProps)) !== null && _ref !== void 0 ? _ref : renderProps;
3881
3879
  if (compiled.states.size >= 1e4) compiled.states.clear();
3882
3880
  var resolved = {
3883
3881
  theme,
@@ -4083,7 +4081,7 @@ var hostTextProps = {
4083
4081
  allowFontScaling: true,
4084
4082
  ellipsizeMode: "tail"
4085
4083
  };
4086
- var _withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
4084
+ var _withNativeStyle = function _withNativeStyle2(Component, baseStyle, themeStyleKeys, host) {
4087
4085
  var _hooks_getBaseViews;
4088
4086
  var Fallback = _withStableStyle(Component, function(theme) {
4089
4087
  var themedStyle = {};
@@ -4099,14 +4097,14 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
4099
4097
  var HostText = host === "text" && !("userSelect" in baseStyle) && !("verticalAlign" in baseStyle) ? baseViews === null || baseViews === void 0 ? void 0 : baseViews.NativeText : void 0;
4100
4098
  var hostTextBase = HostText ? _objectSpread2(_objectSpread2({ overflow: "hidden" }, baseStyle), typeof baseStyle.fontWeight === "number" && { fontWeight: String(baseStyle.fontWeight) }) : baseStyle;
4101
4099
  var entries = /* @__PURE__ */ new Map();
4102
- var createEntry = function() {
4100
+ var createEntry = function createEntry2() {
4103
4101
  var entry = {
4104
4102
  style: [baseStyle, null],
4105
4103
  hostTextStyle: [hostTextBase, null],
4106
4104
  stateName: "",
4107
4105
  theme: null,
4108
4106
  state: null,
4109
- ref: function(node) {
4107
+ ref: function ref(node) {
4110
4108
  if (node) linkHost(node, entry.state);
4111
4109
  }
4112
4110
  };
@@ -4119,7 +4117,7 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
4119
4117
  var linkState = createNativeStyleLinkState;
4120
4118
  var linkHost = linkNativeStyleHost;
4121
4119
  var assignRef = setRef;
4122
- var render = function(props, key) {
4120
+ var render = function render2(props, key) {
4123
4121
  var scopeId = (0, react.use)(ScopeContext);
4124
4122
  var inText = TextAncestor ? (0, react.use)(TextAncestor) : false;
4125
4123
  var themeState = scopeId && engineOf() ? scopeState(scopeId) : void 0;
@@ -4144,8 +4142,8 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
4144
4142
  }
4145
4143
  if (entry.stateName !== name || entry.theme !== theme) {
4146
4144
  var themed = resolve(themeStyleKeys, name, theme);
4147
- entry.style[1] = themed;
4148
- entry.hostTextStyle[1] = themed;
4145
+ entry.style = [baseStyle, themed];
4146
+ entry.hostTextStyle = [hostTextBase, themed];
4149
4147
  entry.stateName = name;
4150
4148
  entry.theme = theme;
4151
4149
  entry.state = linkState(themeStyleKeys, scopeId, name, theme);
@@ -4169,7 +4167,7 @@ var _withNativeStyle = function(Component, baseStyle, themeStyleKeys, host) {
4169
4167
  children: element
4170
4168
  }, key);
4171
4169
  };
4172
- var NativeStyleView = function(props) {
4170
+ var NativeStyleView = function NativeStyleView2(props) {
4173
4171
  return render(props);
4174
4172
  };
4175
4173
  NativeStyleView.inline = function(element) {
@@ -4189,7 +4187,7 @@ function mayRenderText(children) {
4189
4187
  var isDevTools = (function() {
4190
4188
  if (globalThis.process.env.NODE_ENV === "development") try {
4191
4189
  return new Function("try {return this===window;}catch(e){ return false;}")();
4192
- } catch (e) {}
4190
+ } catch (unused) {}
4193
4191
  return false;
4194
4192
  })();
4195
4193
  //#endregion
@@ -4272,8 +4270,8 @@ function useMainThreadPressEvents(events, viewProps) {
4272
4270
  ownsResponder.current = false;
4273
4271
  };
4274
4272
  viewProps.onResponderTerminationRequest = function(e) {
4275
- var _userTerminationRequest;
4276
- return (_userTerminationRequest = userTerminationRequest === null || userTerminationRequest === void 0 ? void 0 : userTerminationRequest(e)) !== null && _userTerminationRequest !== void 0 ? _userTerminationRequest : handlers.onResponderTerminationRequest();
4273
+ var _ref;
4274
+ return (_ref = userTerminationRequest === null || userTerminationRequest === void 0 ? void 0 : userTerminationRequest(e)) !== null && _ref !== void 0 ? _ref : handlers.onResponderTerminationRequest();
4277
4275
  };
4278
4276
  viewProps.onResponderMove = function(e) {
4279
4277
  userMove === null || userMove === void 0 || userMove(e);
@@ -4288,16 +4286,16 @@ function useMainThreadPressEvents(events, viewProps) {
4288
4286
  //#region ../web/dist/esm/eventHandling.native.js
4289
4287
  var isFabric = !!globalThis.nativeFabricUIManager;
4290
4288
  var isAndroidCache;
4291
- var getIsAndroid = function() {
4289
+ var getIsAndroid = function getIsAndroid2() {
4292
4290
  if (isAndroidCache === void 0) isAndroidCache = (react_native.Platform === null || react_native.Platform === void 0 ? void 0 : react_native.Platform.OS) === "android";
4293
4291
  return isAndroidCache;
4294
4292
  };
4295
4293
  var isNativeDesktopCache;
4296
- var getIsNativeDesktop = function() {
4294
+ var getIsNativeDesktop = function getIsNativeDesktop2() {
4297
4295
  if (isNativeDesktopCache === void 0) isNativeDesktopCache = (react_native.Platform === null || react_native.Platform === void 0 ? void 0 : react_native.Platform.OS) === "macos" || (react_native.Platform === null || react_native.Platform === void 0 ? void 0 : react_native.Platform.OS) === "windows";
4298
4296
  return isNativeDesktopCache;
4299
4297
  };
4300
- var responderClaim = function() {
4298
+ var responderClaim = function responderClaim2() {
4301
4299
  return true;
4302
4300
  };
4303
4301
  var responderWrapperStyle = { display: "contents" };
@@ -4347,7 +4345,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
4347
4345
  var gestureRef = (0, react.useRef)(null);
4348
4346
  var longPressTimerRef = (0, react.useRef)(null);
4349
4347
  var longPressedRef = (0, react.useRef)(false);
4350
- var clearLongPress = function() {
4348
+ var clearLongPress = function clearLongPress2() {
4351
4349
  if (longPressTimerRef.current) clearTimeout(longPressTimerRef.current);
4352
4350
  longPressTimerRef.current = null;
4353
4351
  };
@@ -4355,7 +4353,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
4355
4353
  return clearLongPress;
4356
4354
  }, []);
4357
4355
  var pressActiveRef = (0, react.useRef)(false);
4358
- var beginPress = function(e) {
4356
+ var beginPress = function beginPress2(e) {
4359
4357
  var _callbacksRef_current_onPressIn, _callbacksRef_current;
4360
4358
  if (pressActiveRef.current) return;
4361
4359
  pressActiveRef.current = true;
@@ -4374,7 +4372,7 @@ function useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNat
4374
4372
  }
4375
4373
  (_callbacksRef_current_onPressIn = (_callbacksRef_current = callbacksRef.current).onPressIn) === null || _callbacksRef_current_onPressIn === void 0 || _callbacksRef_current_onPressIn.call(_callbacksRef_current, e !== null && e !== void 0 ? e : {});
4376
4374
  };
4377
- var endPress = function(e) {
4375
+ var endPress = function endPress2(e) {
4378
4376
  var firePress = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
4379
4377
  var _callbacksRef_current_onPress, _callbacksRef_current, _callbacksRef_current_onPressOut, _callbacksRef_current1;
4380
4378
  clearLongPress();
@@ -4452,7 +4450,7 @@ function getTransitionResolver() {
4452
4450
  }
4453
4451
  //#endregion
4454
4452
  //#region ../web/dist/esm/helpers/getCSSStylesAtomic.native.js
4455
- var empty$1 = function() {};
4453
+ var empty$1 = function empty2() {};
4456
4454
  var flushDirectStyles = empty$1;
4457
4455
  var registerAtomicSlot = empty$1;
4458
4456
  var getCSSStylesAtomic = empty$1;
@@ -4504,9 +4502,9 @@ function parseOutlineShorthand(value) {
4504
4502
  //#endregion
4505
4503
  //#region ../web/dist/esm/helpers/expandStyle.native.js
4506
4504
  var _loop = function(parent2) {
4505
+ var _ref;
4507
4506
  var _exec;
4508
- var _exec_index;
4509
- var prefix = parent2.slice(0, (_exec_index = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _exec_index !== void 0 ? _exec_index : parent2.length);
4507
+ var prefix = parent2.slice(0, (_ref = (_exec = /[A-Z]/.exec(parent2)) === null || _exec === void 0 ? void 0 : _exec.index) !== null && _ref !== void 0 ? _ref : parent2.length);
4510
4508
  EXPANSIONS[parent2] = EXPANSIONS[parent2].map(function(k) {
4511
4509
  return `${prefix}${k}`;
4512
4510
  });
@@ -4959,10 +4957,10 @@ function rgba(colorInt) {
4959
4957
  var normalizeCSSColor = import_normalize_color.default || import_normalize_color;
4960
4958
  //#endregion
4961
4959
  //#region ../web/dist/esm/helpers/normalizeColor.native.js
4962
- var isDynamicColor = function(color) {
4960
+ var isDynamicColor = function isDynamicColor2(color) {
4963
4961
  return typeof color.dynamic === "object" && color.dynamic !== null;
4964
4962
  };
4965
- var normalizeColor = function(color, opacity) {
4963
+ var normalizeColor = function normalizeColor1(color, opacity) {
4966
4964
  if (!color) return;
4967
4965
  if (typeof color !== "string") {
4968
4966
  if (opacity === void 0 || opacity === 1 || !isDynamicColor(color)) return color;
@@ -4975,13 +4973,13 @@ var normalizeColor = function(color, opacity) {
4975
4973
  }
4976
4974
  var rgbaVal = getRgba(color);
4977
4975
  if (rgbaVal) {
4978
- var colors = `${rgbaVal.r},${rgbaVal.g},${rgbaVal.b}`;
4979
4976
  var _ref;
4977
+ var colors = `${rgbaVal.r},${rgbaVal.g},${rgbaVal.b}`;
4980
4978
  return opacity === 1 ? `rgb(${colors})` : `rgba(${colors},${(_ref = opacity !== null && opacity !== void 0 ? opacity : rgbaVal.a) !== null && _ref !== void 0 ? _ref : 1})`;
4981
4979
  }
4982
4980
  return color;
4983
4981
  };
4984
- var getRgba = function(color) {
4982
+ var getRgba = function getRgba2(color) {
4985
4983
  if (typeof color !== "string") return;
4986
4984
  var colorNum = normalizeCSSColor(color.replace(/^(rgb|hsl)\((?=[^)]*\/)/, "$1a("));
4987
4985
  if (colorNum != null) return rgba(colorNum);
@@ -5088,15 +5086,15 @@ var defaultSizing = {
5088
5086
  }
5089
5087
  }
5090
5088
  };
5091
- var toPx$1 = function(value) {
5089
+ var toPx$1 = function toPx2(value) {
5092
5090
  return typeof value === "number" ? value : Number.parseFloat(value);
5093
5091
  };
5094
5092
  function resolveSizing(size, env) {
5093
+ var _ref, _ref1, _ref2, _ref3, _ref4;
5095
5094
  var _font_size, _font_size1, _font_lineHeight, _tokens_space;
5096
5095
  if (size === false) return void 0;
5097
5096
  var conf = (env === null || env === void 0 ? void 0 : env.fonts) && (env === null || env === void 0 ? void 0 : env.tokens) ? void 0 : getConfig();
5098
- var _env_sizing;
5099
- var sizing = _objectSpread2(_objectSpread2({}, defaultSizing), (_env_sizing = env === null || env === void 0 ? void 0 : env.sizing) !== null && _env_sizing !== void 0 ? _env_sizing : conf === null || conf === void 0 ? void 0 : conf.sizing);
5097
+ var sizing = _objectSpread2(_objectSpread2({}, defaultSizing), (_ref = env === null || env === void 0 ? void 0 : env.sizing) !== null && _ref !== void 0 ? _ref : conf === null || conf === void 0 ? void 0 : conf.sizing);
5100
5098
  var name = size === true || size == null ? sizing.default : size;
5101
5099
  var rung = sizing.sizes[name];
5102
5100
  if (!rung) return void 0;
@@ -5113,12 +5111,9 @@ function resolveSizing(size, env) {
5113
5111
  icon: rung.px.icon,
5114
5112
  square: rung.px.square
5115
5113
  });
5116
- var _env_fonts;
5117
- var fonts = (_env_fonts = env === null || env === void 0 ? void 0 : env.fonts) !== null && _env_fonts !== void 0 ? _env_fonts : conf === null || conf === void 0 ? void 0 : conf.fontsParsed;
5118
- var _env_tokens;
5119
- var tokens = (_env_tokens = env === null || env === void 0 ? void 0 : env.tokens) !== null && _env_tokens !== void 0 ? _env_tokens : conf === null || conf === void 0 ? void 0 : conf.tokensParsed;
5120
- var _conf_defaultFontToken, _env_font;
5121
- var font = (_env_font = env === null || env === void 0 ? void 0 : env.font) !== null && _env_font !== void 0 ? _env_font : fonts === null || fonts === void 0 ? void 0 : fonts[(_conf_defaultFontToken = conf === null || conf === void 0 ? void 0 : conf.defaultFontToken) !== null && _conf_defaultFontToken !== void 0 ? _conf_defaultFontToken : "body"];
5114
+ var fonts = (_ref1 = env === null || env === void 0 ? void 0 : env.fonts) !== null && _ref1 !== void 0 ? _ref1 : conf === null || conf === void 0 ? void 0 : conf.fontsParsed;
5115
+ var tokens = (_ref2 = env === null || env === void 0 ? void 0 : env.tokens) !== null && _ref2 !== void 0 ? _ref2 : conf === null || conf === void 0 ? void 0 : conf.tokensParsed;
5116
+ var font = (_ref3 = env === null || env === void 0 ? void 0 : env.font) !== null && _ref3 !== void 0 ? _ref3 : fonts === null || fonts === void 0 ? void 0 : fonts[(_ref4 = conf === null || conf === void 0 ? void 0 : conf.defaultFontToken) !== null && _ref4 !== void 0 ? _ref4 : "body"];
5122
5117
  var px = {
5123
5118
  fontSize: toPx$1(getVariableValue(font === null || font === void 0 ? void 0 : (_font_size = font.size) === null || _font_size === void 0 ? void 0 : _font_size[rung.fontSize])),
5124
5119
  control: toPx$1(getVariableValue(font === null || font === void 0 ? void 0 : (_font_size1 = font.size) === null || _font_size1 === void 0 ? void 0 : _font_size1[rung.controlFontSize])),
@@ -5158,13 +5153,13 @@ var dynamicComputedNumberProbe = 712367821;
5158
5153
  var dynamicShapeProbeValues = /* @__PURE__ */ new WeakSet();
5159
5154
  function createDynamicShapeProbe() {
5160
5155
  var probe = new Proxy(function target2() {}, {
5161
- apply: function() {
5156
+ apply: function apply() {
5162
5157
  return probe;
5163
5158
  },
5164
- construct: function() {
5159
+ construct: function construct() {
5165
5160
  return probe;
5166
5161
  },
5167
- get: function(_target, key) {
5162
+ get: function get(_target, key) {
5168
5163
  if (key === Symbol.toPrimitive) return function(hint) {
5169
5164
  return hint === "number" ? dynamicComputedNumberProbe : dynamicComputedProbe;
5170
5165
  };
@@ -5174,14 +5169,14 @@ function createDynamicShapeProbe() {
5174
5169
  if (key === dynamicSpreadProbe) return true;
5175
5170
  return probe;
5176
5171
  },
5177
- getOwnPropertyDescriptor: function(target2, key) {
5172
+ getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target2, key) {
5178
5173
  return key === dynamicSpreadProbe ? {
5179
5174
  configurable: true,
5180
5175
  enumerable: true,
5181
5176
  value: true
5182
5177
  } : Reflect.getOwnPropertyDescriptor(target2, key);
5183
5178
  },
5184
- ownKeys: function(target2) {
5179
+ ownKeys: function ownKeys(target2) {
5185
5180
  return [...Reflect.ownKeys(target2), dynamicSpreadProbe];
5186
5181
  }
5187
5182
  });
@@ -5193,13 +5188,13 @@ function findDynamicShapeViolation(value) {
5193
5188
  var seen = /* @__PURE__ */ new WeakSet();
5194
5189
  var spread = false;
5195
5190
  var computed = false;
5196
- var visit = function(current) {
5191
+ var visit = function visit1(current) {
5197
5192
  if (dynamicShapeProbeValues.has(current) || seen.has(current)) return;
5198
5193
  seen.add(current);
5199
5194
  var descriptors;
5200
5195
  try {
5201
5196
  descriptors = Object.getOwnPropertyDescriptors(current);
5202
- } catch (e) {
5197
+ } catch (unused) {
5203
5198
  return;
5204
5199
  }
5205
5200
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -5244,7 +5239,7 @@ function validateDynamicShape(fn) {
5244
5239
  if (!violation) return;
5245
5240
  var reasons = [violation.spread ? "a spread from a dynamic input" : "", violation.computed ? "a computed key from a dynamic input" : ""].filter(Boolean);
5246
5241
  console.warn(`[tamagui] styled.dynamic${fn.name ? ` (${fn.name})` : ""} returned ${reasons.join(" and ")} during its development shape check. Dynamic style bodies require static object keys for extraction; this definition will deopt instead.`);
5247
- } catch (e) {}
5242
+ } catch (unused) {}
5248
5243
  }
5249
5244
  function styledDynamic(fn) {
5250
5245
  if (!fn) return bareStyledDynamic;
@@ -5285,15 +5280,15 @@ var totalSelectorsInserted = /* @__PURE__ */ new Map();
5285
5280
  var allSelectors = {};
5286
5281
  var allRules = {};
5287
5282
  var allRuleSets = {};
5288
- var getAllSelectors = function() {
5283
+ var getAllSelectors = function getAllSelectors2() {
5289
5284
  return allSelectors;
5290
5285
  };
5291
- var getRulesForIdentifier = function(identifier) {
5286
+ var getRulesForIdentifier = function getRulesForIdentifier2(identifier) {
5292
5287
  return allRuleSets[identifier];
5293
5288
  };
5294
5289
  var sortedRules = [];
5295
5290
  var sortedRulesStale = true;
5296
- var getAllRules = function() {
5291
+ var getAllRules = function getAllRules2() {
5297
5292
  if (process.env.TAMAGUI_RUNTIME !== "island") {
5298
5293
  if (sortedRulesStale) {
5299
5294
  sortedRules = Object.keys(allRules).sort().map(function(key) {
@@ -5493,7 +5488,7 @@ function isTamaguiComponent(comp) {
5493
5488
  }
5494
5489
  //#endregion
5495
5490
  //#region ../web/dist/esm/helpers/isTamaguiElement.native.js
5496
- var isTamaguiElement = function(child) {
5491
+ var isTamaguiElement = function isTamaguiElement2(child) {
5497
5492
  return /* @__PURE__ */ react.default.isValidElement(child) && isTamaguiComponent(child.type);
5498
5493
  };
5499
5494
  //#endregion
@@ -5702,11 +5697,11 @@ function isDynamicUnitValue(value) {
5702
5697
  return !!((_UNIT_RE_exec = UNIT_RE.exec(trimmed.replace(/\s+/g, ""))) === null || _UNIT_RE_exec === void 0 ? void 0 : _UNIT_RE_exec[2]);
5703
5698
  }
5704
5699
  function getUnitContext(key, styleState) {
5700
+ var _ref;
5705
5701
  var _styleState_conf_settings, _styleState_conf, _styleState_style, _groupEntry_state, _styleState_componentState_group_, _styleState_componentState_group, _styleState_componentState;
5706
5702
  var window = react_native.Dimensions.get("window");
5707
5703
  var fontScale = typeof react_native.PixelRatio !== "undefined" && react_native.PixelRatio.getFontScale ? react_native.PixelRatio.getFontScale() : 1;
5708
- var _styleState_conf_settings_remBaseFontSize;
5709
- var remBaseFontSize = (_styleState_conf_settings_remBaseFontSize = styleState === null || styleState === void 0 ? void 0 : (_styleState_conf = styleState.conf) === null || _styleState_conf === void 0 ? void 0 : (_styleState_conf_settings = _styleState_conf.settings) === null || _styleState_conf_settings === void 0 ? void 0 : _styleState_conf_settings.remBaseFontSize) !== null && _styleState_conf_settings_remBaseFontSize !== void 0 ? _styleState_conf_settings_remBaseFontSize : 16;
5704
+ var remBaseFontSize = (_ref = styleState === null || styleState === void 0 ? void 0 : (_styleState_conf = styleState.conf) === null || _styleState_conf === void 0 ? void 0 : (_styleState_conf_settings = _styleState_conf.settings) === null || _styleState_conf_settings === void 0 ? void 0 : _styleState_conf_settings.remBaseFontSize) !== null && _ref !== void 0 ? _ref : 16;
5710
5705
  var isFontSizeProp = key === "fontSize";
5711
5706
  var elementFontSize = typeof (styleState === null || styleState === void 0 ? void 0 : (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.fontSize) === "number" ? styleState.style.fontSize : remBaseFontSize;
5712
5707
  var groupContext = styleState === null || styleState === void 0 ? void 0 : styleState.flatGroupContext;
@@ -5763,10 +5758,10 @@ function evaluateCalc(expr, ctx) {
5763
5758
  if (s.toLowerCase().startsWith("calc(") && s.endsWith(")")) s = s.slice(5, -1).trim();
5764
5759
  var tokens = s.match(/[()*/+-]|[^\s()*/+-]+/g) || [];
5765
5760
  var pos = 0;
5766
- var peek = function() {
5761
+ var peek = function peek2() {
5767
5762
  return tokens[pos];
5768
5763
  };
5769
- var consume = function() {
5764
+ var consume = function consume2() {
5770
5765
  return tokens[pos++];
5771
5766
  };
5772
5767
  function parseExpression() {
@@ -6032,8 +6027,8 @@ function resolveConditionModifier(state, condition, authored) {
6032
6027
  ranks[rankIndex] = precedence;
6033
6028
  var buildCSS = false;
6034
6029
  if (kind === 2) {
6035
- var _state_flatMediaState;
6036
6030
  var _state;
6031
+ var _state_flatMediaState;
6037
6032
  var query = modifier[3];
6038
6033
  if (!query) return setConditionUnresolved(condition, name);
6039
6034
  if (buildCSS) appendConditionWrapper(condition, `@media ${query}`);
@@ -6049,8 +6044,8 @@ function resolveConditionModifier(state, condition, authored) {
6049
6044
  return;
6050
6045
  }
6051
6046
  if (kind === 6) {
6052
- var _state_componentState_group, _state_flatGroupContext, _state_flatGroupContext1, _component_media;
6053
6047
  var _state1, _state2;
6048
+ var _state_componentState_group, _state_flatGroupContext, _state_flatGroupContext1, _component_media;
6054
6049
  var size = modifier[4];
6055
6050
  var containerName = modifier[5];
6056
6051
  var groupName = `@${containerName}`;
@@ -6069,14 +6064,13 @@ function resolveConditionModifier(state, condition, authored) {
6069
6064
  }
6070
6065
  var selector = modifier[3];
6071
6066
  if (kind === 5) {
6067
+ var _ref, _state3;
6072
6068
  var _state_componentState_group1, _state_flatGroupContext2, _this;
6073
- var _state3;
6074
6069
  var groupName1 = modifier[4];
6075
6070
  if (buildCSS) condition[conditionSelector] += `:where(.t_group_${groupName1}${selector} *)`;
6076
6071
  var component1 = (_state_componentState_group1 = state.componentState.group) === null || _state_componentState_group1 === void 0 ? void 0 : _state_componentState_group1[groupName1];
6077
6072
  var context1 = (_state_flatGroupContext2 = state.flatGroupContext) === null || _state_flatGroupContext2 === void 0 ? void 0 : _state_flatGroupContext2[groupName1];
6078
- var _component_pseudo;
6079
- if (!((_this = (_component_pseudo = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _component_pseudo !== void 0 ? _component_pseudo : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
6073
+ if (!((_this = (_ref = component1 === null || component1 === void 0 ? void 0 : component1.pseudo) !== null && _ref !== void 0 ? _ref : context1 === null || context1 === void 0 ? void 0 : context1.state.pseudo) === null || _this === void 0 ? void 0 : _this[modifier[5]])) condition[conditionValue] &= -2;
6080
6074
  ((_state3 = state).flatGroupKeys || (_state3.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupName1);
6081
6075
  } else {
6082
6076
  var _state4;
@@ -6244,7 +6238,7 @@ function contributeProp(pass, keyOg, valOg) {
6244
6238
  }
6245
6239
  var resolveClassName = styleFrontend === null || styleFrontend === void 0 ? void 0 : styleFrontend.resolveClassName;
6246
6240
  var composedProps = null;
6247
- var sink = function(entry2) {
6241
+ var sink = function sink2(entry2) {
6248
6242
  var property3 = entry2[0];
6249
6243
  var condition2 = entry2[2];
6250
6244
  if (property3.charCodeAt(0) === 95 && property3.charCodeAt(1) === 95) {
@@ -6427,10 +6421,8 @@ function contributeProp(pass, keyOg, valOg) {
6427
6421
  if (!isValidStyleKeyInit) {
6428
6422
  if (keyInit === "textOverflow") {
6429
6423
  if (isText && valInit === "ellipsis") {
6430
- var _viewProps, _viewProps1;
6431
- var _numberOfLines;
6424
+ var _viewProps, _numberOfLines, _viewProps1, _ellipsizeMode;
6432
6425
  (_numberOfLines = (_viewProps = viewProps).numberOfLines) !== null && _numberOfLines !== void 0 || (_viewProps.numberOfLines = 1);
6433
- var _ellipsizeMode;
6434
6426
  (_ellipsizeMode = (_viewProps1 = viewProps).ellipsizeMode) !== null && _ellipsizeMode !== void 0 || (_viewProps1.ellipsizeMode = "tail");
6435
6427
  }
6436
6428
  return;
@@ -6527,11 +6519,11 @@ function contributeProp(pass, keyOg, valOg) {
6527
6519
  log("style", _objectSpread2({}, styleState.style));
6528
6520
  log("viewProps", _objectSpread2({}, viewProps));
6529
6521
  log("transforms", styleState.transformAccumulator);
6530
- } catch (e) {}
6522
+ } catch (unused) {}
6531
6523
  console.groupEnd();
6532
6524
  }
6533
6525
  }
6534
- var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
6526
+ var getSplitStyles = function getSplitStyles2(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
6535
6527
  var _staticConfig_Component_staticConfig, _staticConfig_Component, _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia, _styleState_flatGroupKeys1, _styleState_flatGroupMedia1, _styleState_style;
6536
6528
  var conf = getConfig();
6537
6529
  styleStaticConfig || (styleStaticConfig = getStyleStaticConfig(staticConfig, conf));
@@ -6769,15 +6761,13 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
6769
6761
  var nativeTextMetrics;
6770
6762
  var _styleState_style2;
6771
6763
  if (viewProps.tabIndex === 0) {
6772
- var _viewProps;
6773
- var _accessible;
6764
+ var _viewProps, _accessible;
6774
6765
  (_accessible = (_viewProps = viewProps).accessible) !== null && _accessible !== void 0 || (_viewProps.accessible = true);
6775
6766
  }
6776
6767
  if ((isText || isInput || staticConfig.isDOM) && !isHOC && (styleState.nativeLineHeight !== void 0 || ((_styleState_style2 = styleState.style) === null || _styleState_style2 === void 0 ? void 0 : _styleState_style2.fontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentFontSize) !== void 0 || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.parentLineHeight) !== void 0)) {
6768
+ var _styleState2, _styleState_nativeLineHeight;
6777
6769
  var _parentSplitStyles_nativeTextMetrics;
6778
- var _styleState2;
6779
6770
  var style = (_styleState2 = styleState).style || (_styleState2.style = {});
6780
- var _styleState_nativeLineHeight;
6781
6771
  var lineHeight = (_styleState_nativeLineHeight = styleState.nativeLineHeight) !== null && _styleState_nativeLineHeight !== void 0 ? _styleState_nativeLineHeight : parentSplitStyles === null || parentSplitStyles === void 0 ? void 0 : (_parentSplitStyles_nativeTextMetrics = parentSplitStyles.nativeTextMetrics) === null || _parentSplitStyles_nativeTextMetrics === void 0 ? void 0 : _parentSplitStyles_nativeTextMetrics.lineHeight;
6782
6772
  if (typeof lineHeight === "string") {
6783
6773
  var length = resolveNativeUnits("lineHeight", lineHeight, styleState);
@@ -6916,7 +6906,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
6916
6906
  parentSplitStyles
6917
6907
  });
6918
6908
  for (var key8 in logs) log(key8, logs[key8]);
6919
- } catch (e) {}
6909
+ } catch (unused) {}
6920
6910
  console.groupEnd();
6921
6911
  }
6922
6912
  }
@@ -6928,8 +6918,7 @@ var stylePieceStaticConfig = {
6928
6918
  isText: true,
6929
6919
  validStyles: stylePropsInput
6930
6920
  };
6931
- var compileStylePieceRuntime = function(piece, layer) {};
6932
- setStylePieceCompiler(compileStylePieceRuntime);
6921
+ setStylePieceCompiler(function compileStylePieceRuntime2(piece, layer) {});
6933
6922
  setStylePieceResolver(function(piece, theme, themeName) {
6934
6923
  var split = getSplitStyles({ style: piece }, stylePieceStaticConfig, theme, themeName, defaultComponentStateMounted, {
6935
6924
  isAnimated: false,
@@ -6987,11 +6976,10 @@ function mergeStyle(styleState, key, val) {
6987
6976
  var { viewProps, styleProps, staticConfig } = styleState;
6988
6977
  var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
6989
6978
  if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
6979
+ var _styleState, _ref;
6990
6980
  var _styleState_originalContextPropValues;
6991
- var _styleState;
6992
6981
  (_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
6993
6982
  var originalFromState = (_styleState_originalContextPropValues = styleState.originalContextPropValues) === null || _styleState_originalContextPropValues === void 0 ? void 0 : _styleState_originalContextPropValues[key];
6994
- var _ref;
6995
6983
  styleState.overriddenContextProps[key] = (_ref = originalVal !== null && originalVal !== void 0 ? originalVal : originalFromState) !== null && _ref !== void 0 ? _ref : val;
6996
6984
  }
6997
6985
  if (key === "transform" || key in stylePropsTransform) {
@@ -7038,7 +7026,7 @@ function recordStyleTokenProvenance(styleState, key, originalVal) {
7038
7026
  ((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;
7039
7027
  } else if (styleState.tokenProvenance && key in styleState.tokenProvenance) delete styleState.tokenProvenance[key];
7040
7028
  }
7041
- var resolveStyleObject = function(styleState, styleIn) {
7029
+ var resolveStyleObject = function resolveStyleObject2(styleState, styleIn) {
7042
7030
  var { conf, styleProps } = styleState;
7043
7031
  var styleOut = {};
7044
7032
  var originalValues;
@@ -7053,10 +7041,10 @@ var resolveStyleObject = function(styleState, styleIn) {
7053
7041
  childState.flatAtomics = void 0;
7054
7042
  childState.flatSlots = void 0;
7055
7043
  childState.flatPropertyLayers = void 0;
7056
- var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
7044
+ var mergeAccepted = function mergeAccepted2(_state, key2, value2, disableNormalize, originalValue) {
7045
+ var _ref;
7057
7046
  styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : normalizeValueWithProperty(value2, key2);
7058
- var _styleInOriginalValues_key;
7059
- var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
7047
+ var trackedOriginal = (_ref = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _ref !== void 0 ? _ref : originalValue;
7060
7048
  if (trackedOriginal !== void 0) (originalValues || (originalValues = {}))[key2] = trackedOriginal;
7061
7049
  };
7062
7050
  for (var key in styleIn) {
@@ -7078,8 +7066,8 @@ var recordDefault = 8;
7078
7066
  var recordCSS = 16;
7079
7067
  function writeStyleRecord(state, property, value, cursor, original, flags) {
7080
7068
  var conditionOverride = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : -1;
7081
- var _direct_flatPass, _direct_flatPass1;
7082
7069
  var _direct;
7070
+ var _direct_flatPass, _direct_flatPass1;
7083
7071
  var condition = conditionOverride !== -1 ? conditionOverride : cursor ? cursor[conditionValue] : 0;
7084
7072
  var identity = cursor ? cursor[conditionKey] : "";
7085
7073
  if (value === "unset" && identity !== "") {
@@ -7126,11 +7114,11 @@ function completeResolvedStyles(state) {
7126
7114
  var direct = state;
7127
7115
  var shadow = direct.flatWebShadow;
7128
7116
  if (shadow && (direct.flatBoxShadowSequence || 0) <= shadow[4]) {
7117
+ var _shadow_;
7129
7118
  var offset = shadow[1] || {
7130
7119
  width: 0,
7131
7120
  height: 0
7132
7121
  };
7133
- var _shadow_;
7134
7122
  var color = normalizeColor(shadow[0], (_shadow_ = shadow[2]) !== null && _shadow_ !== void 0 ? _shadow_ : 1);
7135
7123
  if (color) {
7136
7124
  var next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow[3])} ${color}`;
@@ -7251,10 +7239,10 @@ function emitUnderCondition(state, property, value, cursor, originalValue, conte
7251
7239
  }
7252
7240
  return condition;
7253
7241
  }
7254
- var formatScanFailure = function(failure, source, failureIndex) {
7242
+ var formatScanFailure = function formatScanFailure2(failure, source, failureIndex) {
7255
7243
  return failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : failure === "over-deep-clause" ? `a clause with more than 5 non-platform conditions` : "an unterminated \"(\"";
7256
7244
  };
7257
- var warnScanFailure = function(property, source, failure, failureIndex) {
7245
+ var warnScanFailure = function warnScanFailure2(property, source, failure, failureIndex) {
7258
7246
  if (globalThis.process.env.NODE_ENV === "development") warnRefusedValue(property, source, formatScanFailure(failure, source, failureIndex));
7259
7247
  };
7260
7248
  var borderTargets = {
@@ -7490,8 +7478,8 @@ function configuredValue(state, property, raw) {
7490
7478
  }
7491
7479
  function ownsSourceLayer(state, property) {
7492
7480
  var conditional = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
7493
- var _direct_flatPass, _direct_flatPass1;
7494
7481
  var _direct;
7482
+ var _direct_flatPass, _direct_flatPass1;
7495
7483
  var direct = state;
7496
7484
  var layer = ((_direct_flatPass = direct.flatPass) === null || _direct_flatPass === void 0 ? void 0 : _direct_flatPass[passSourceLayer]) || 0;
7497
7485
  var layers = (_direct = direct).flatPropertyLayers || (_direct.flatPropertyLayers = /* @__PURE__ */ new Map());
@@ -7782,8 +7770,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
7782
7770
  if (!(flags & 1)) continue;
7783
7771
  if (start === end) continue;
7784
7772
  if (flags & 2) {
7785
- var _slices, _index;
7786
- var _;
7773
+ var _slices, _index, _;
7787
7774
  var payload = (_ = (_slices = slices)[_index = index]) !== null && _ !== void 0 ? _ : _slices[_index] = value.slice(start, end);
7788
7775
  emitConditionalValue(state, property, payload, parentCondition, payload, sink, warnMode, contextOnly);
7789
7776
  hasBase = true;
@@ -7794,7 +7781,7 @@ function walkConditionalValue(state, property, value, parent, sink) {
7794
7781
  }
7795
7782
  var lastPayloadStart = 0;
7796
7783
  for (var index1 = 0; index1 < segments.length; index1 += 5) {
7797
- var _slices1, _ref;
7784
+ var _slices1, _ref, _1;
7798
7785
  var start1 = segments[index1];
7799
7786
  var end1 = segments[index1 + 1];
7800
7787
  var flags1 = segments[index1 + 4];
@@ -7808,12 +7795,10 @@ function walkConditionalValue(state, property, value, parent, sink) {
7808
7795
  if (warnMode && globalThis.process.env.NODE_ENV === "development") warnRefusedValue(property, value, "a conditional clause has no value");
7809
7796
  continue;
7810
7797
  }
7811
- var _1;
7812
7798
  var cursor = conditionFromKey(state, (_1 = (_slices1 = slices)[_ref = index1 + 2]) !== null && _1 !== void 0 ? _1 : _slices1[_ref] = value.slice(segments[index1 + 2], segments[index1 + 3]), parentCondition);
7813
7799
  conditions |= cursor[conditionValue];
7814
7800
  if (cursor[conditionValue] & conditionResolvedFlag || warnMode) {
7815
- var _slices2, _index1;
7816
- var _2;
7801
+ var _slices2, _index1, _2;
7817
7802
  emitConditionalValue(state, property, (_2 = (_slices2 = slices)[_index1 = index1]) !== null && _2 !== void 0 ? _2 : _slices2[_index1] = value.slice(start1, end1), cursor, value, sink, warnMode, contextOnly);
7818
7803
  }
7819
7804
  }
@@ -7988,9 +7973,9 @@ function usePointerEvents(props, viewProps) {
7988
7973
  };
7989
7974
  if (!hasPointerEvents) return;
7990
7975
  var bag = ref.current;
7991
- var createNormalizedEvent = function(e) {
7992
- var touch = e.nativeEvent;
7976
+ var createNormalizedEvent = function createNormalizedEvent2(e) {
7993
7977
  var _touch_identifier;
7978
+ var touch = e.nativeEvent;
7994
7979
  return _objectSpread2(_objectSpread2({}, e), {}, {
7995
7980
  clientX: touch.pageX,
7996
7981
  clientY: touch.pageY,
@@ -8002,10 +7987,10 @@ function usePointerEvents(props, viewProps) {
8002
7987
  pointerId: (_touch_identifier = touch.identifier) !== null && _touch_identifier !== void 0 ? _touch_identifier : 0,
8003
7988
  nativeEvent: touch,
8004
7989
  target: {
8005
- setPointerCapture: function(_pointerId) {
7990
+ setPointerCapture: function setPointerCapture(_pointerId) {
8006
7991
  bag.isCaptured = true;
8007
7992
  },
8008
- releasePointerCapture: function(_pointerId) {
7993
+ releasePointerCapture: function releasePointerCapture(_pointerId) {
8009
7994
  bag.isCaptured = false;
8010
7995
  }
8011
7996
  }
@@ -8089,7 +8074,7 @@ function setElementProps(element) {
8089
8074
  }
8090
8075
  //#endregion
8091
8076
  //#region ../web/dist/esm/helpers/subscribeToContextGroup.native.js
8092
- var useGroupSetRevision = function(pseudoGroups, mediaGroups) {
8077
+ var useGroupSetRevision = function useGroupSetRevision2(pseudoGroups, mediaGroups) {
8093
8078
  var previous = (0, react.useRef)({
8094
8079
  pseudoGroups,
8095
8080
  mediaGroups,
@@ -8102,7 +8087,7 @@ var useGroupSetRevision = function(pseudoGroups, mediaGroups) {
8102
8087
  };
8103
8088
  return previous.current.revision;
8104
8089
  };
8105
- var setsEqual = function(a, b) {
8090
+ var setsEqual = function setsEqual2(a, b) {
8106
8091
  if (a === b) return true;
8107
8092
  if (!a || !b || a.size !== b.size) return false;
8108
8093
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
@@ -8123,7 +8108,7 @@ var setsEqual = function(a, b) {
8123
8108
  }
8124
8109
  return true;
8125
8110
  };
8126
- var subscribeToContextGroup = function(props) {
8111
+ var subscribeToContextGroup = function subscribeToContextGroup2(props) {
8127
8112
  var { pseudoGroups, mediaGroups, groupContext } = props;
8128
8113
  if (pseudoGroups || mediaGroups) {
8129
8114
  if (globalThis.process.env.NODE_ENV === "development" && !groupContext) console.debug(`No context group found`);
@@ -8171,7 +8156,7 @@ var subscribeToContextGroup = function(props) {
8171
8156
  };
8172
8157
  }
8173
8158
  };
8174
- var createGroupListener = function(name, param) {
8159
+ var createGroupListener = function createGroupListener2(name, param) {
8175
8160
  var { setStateShallow, pseudoGroups, mediaGroups, groupContext } = param;
8176
8161
  var parent = groupContext === null || groupContext === void 0 ? void 0 : groupContext[name];
8177
8162
  if (!parent) return function() {};
@@ -8223,7 +8208,7 @@ var createGroupListener = function(name, param) {
8223
8208
  //#endregion
8224
8209
  //#region ../use-did-finish-ssr/dist/esm/ClientOnly.native.js
8225
8210
  var ClientOnlyContext = /* @__PURE__ */ (0, react.createContext)(false);
8226
- var ClientOnly = function(param) {
8211
+ var ClientOnly = function ClientOnly2(param) {
8227
8212
  var { children, enabled } = param;
8228
8213
  var existingValue = (0, react.useContext)(ClientOnlyContext);
8229
8214
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClientOnlyContext.Provider, {
@@ -8233,7 +8218,7 @@ var ClientOnly = function(param) {
8233
8218
  };
8234
8219
  //#endregion
8235
8220
  //#region ../use-did-finish-ssr/dist/esm/index.native.js
8236
- var useIsClientOnly = function() {
8221
+ var useIsClientOnly = function useIsClientOnly2() {
8237
8222
  return react.useContext(ClientOnlyContext);
8238
8223
  };
8239
8224
  function useDidFinishSSR() {
@@ -8245,10 +8230,10 @@ function useClientValue(value) {
8245
8230
  }
8246
8231
  //#endregion
8247
8232
  //#region ../web/dist/esm/hooks/useComponentState.native.js
8248
- var useComponentState = function(props, animationDriver, staticConfig, config) {
8233
+ var useComponentState = function useComponentState2(props, animationDriver, staticConfig, config) {
8249
8234
  "use no memo";
8235
+ var _stateRef, _ref, _ref1, _curStateRef, _curStateRef1;
8250
8236
  var _getPlatformDriver, _animationDriver_usePresence;
8251
- var _stateRef, _curStateRef, _curStateRef1;
8252
8237
  var isHydrated = useDidFinishSSR();
8253
8238
  var needsHydration = !useIsClientOnly();
8254
8239
  var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
@@ -8259,10 +8244,8 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
8259
8244
  optimizeForFirstRender: isOptimizedForFirstRender()
8260
8245
  });
8261
8246
  var hasAnimationProp = Boolean(!isHOC && "transition" in props || props.style && hasAnimatedStyleValue(props.style));
8262
- var _animationDriver_inputStyle;
8263
- var inputStyle = (_animationDriver_inputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _animationDriver_inputStyle !== void 0 ? _animationDriver_inputStyle : "css";
8264
- var _animationDriver_outputStyle;
8265
- var outputStyle = (_animationDriver_outputStyle = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _animationDriver_outputStyle !== void 0 ? _animationDriver_outputStyle : "css";
8247
+ var inputStyle = (_ref = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.inputStyle) !== null && _ref !== void 0 ? _ref : "css";
8248
+ var outputStyle = (_ref1 = animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.outputStyle) !== null && _ref1 !== void 0 ? _ref1 : "css";
8266
8249
  if (!needsHydration && hasAnimationProp) curStateRef.hasAnimated = true;
8267
8250
  var platformPseudoPossible = Boolean(!isHOC && useAnimations && (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) && ((_getPlatformDriver = getPlatformDriver()) === null || _getPlatformDriver === void 0 ? void 0 : _getPlatformDriver.pseudo));
8268
8251
  var willBeAnimatedClient = Boolean((hasAnimationProp || platformPseudoPossible) && !isHOC && useAnimations || curStateRef.hasAnimated);
@@ -8272,8 +8255,7 @@ var useComponentState = function(props, animationDriver, staticConfig, config) {
8272
8255
  var animatePresenceOptIn = willBeAnimated && !isHOC && props["animatePresence"] !== false;
8273
8256
  if (animatePresenceOptIn) curStateRef.shouldRegisterPresence = true;
8274
8257
  else {
8275
- var _curStateRef2;
8276
- var _shouldRegisterPresence;
8258
+ var _curStateRef2, _shouldRegisterPresence;
8277
8259
  (_shouldRegisterPresence = (_curStateRef2 = curStateRef).shouldRegisterPresence) !== null && _shouldRegisterPresence !== void 0 || (_curStateRef2.shouldRegisterPresence = false);
8278
8260
  }
8279
8261
  var presenceResult = (animationDriver === null || animationDriver === void 0 ? void 0 : (_animationDriver_usePresence = animationDriver.usePresence) === null || _animationDriver_usePresence === void 0 ? void 0 : _animationDriver_usePresence.call(animationDriver, curStateRef)) || null;
@@ -8373,11 +8355,11 @@ function hasAnimatedStyleValue(style) {
8373
8355
  }
8374
8356
  return false;
8375
8357
  }
8376
- var isDisabled = function(props) {
8358
+ var isDisabled = function isDisabled2(props) {
8377
8359
  var _props_accessibilityState;
8378
8360
  return props.disabled || props.passThrough || ((_props_accessibilityState = props.accessibilityState) === null || _props_accessibilityState === void 0 ? void 0 : _props_accessibilityState.disabled) || props["aria-disabled"] || props.accessibilityDisabled || false;
8379
8361
  };
8380
- var useSplitStyles = function(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
8362
+ var useSplitStyles = function useSplitStyles2(a, b, c, d, e, f, g, h, i, j, k, l, m, n) {
8381
8363
  "use no memo";
8382
8364
  var res = getSplitStyles(a, b, c, d, e, f, g, h, i, j, k, l, m, n);
8383
8365
  if (process.env.TAMAGUI_RUNTIME !== "island" && false);
@@ -8394,7 +8376,7 @@ var Slot = /* @__PURE__ */ (0, react.memo)(createRefComponent(function Slot2(pro
8394
8376
  }
8395
8377
  return react.Children.count(children) > 1 ? react.Children.only(null) : null;
8396
8378
  }));
8397
- var Slottable = function(param) {
8379
+ var Slottable = function Slottable2(param) {
8398
8380
  var { children } = param;
8399
8381
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children });
8400
8382
  };
@@ -8577,10 +8559,10 @@ function createComponent(staticConfig) {
8577
8559
  var { Component, isText, isHOC } = staticConfig;
8578
8560
  var res;
8579
8561
  var { displayName } = staticConfig;
8580
- var component = function(propsInWithRef) {
8562
+ var component = function component2(propsInWithRef) {
8581
8563
  "use no memo";
8564
+ var _stateRef_current, _avoidReRenders, _ref, _ref1;
8582
8565
  var _hooks_usePropsTransform, _staticConfig_neverSkipProps;
8583
- var _stateRef_current;
8584
8566
  var forwardedRef = propsInWithRef.ref;
8585
8567
  var propsIn = propsInWithRef;
8586
8568
  config = config || getConfig();
@@ -8633,14 +8615,14 @@ function createComponent(staticConfig) {
8633
8615
  if (globalThis.process.env.NODE_ENV === "development" && true) react.default.useEffect(function() {
8634
8616
  var node;
8635
8617
  var overlay = null;
8636
- var remove = function() {
8618
+ var remove = function remove2() {
8637
8619
  if (overlay) try {
8638
8620
  var _overlay_parentNode;
8639
8621
  (_overlay_parentNode = overlay.parentNode) === null || _overlay_parentNode === void 0 || _overlay_parentNode.removeChild(overlay);
8640
8622
  overlay = null;
8641
- } catch (e) {}
8623
+ } catch (unused) {}
8642
8624
  };
8643
- var debugVisualizerHandler = function() {
8625
+ var debugVisualizerHandler = function debugVisualizerHandler2() {
8644
8626
  var show = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
8645
8627
  node = stateRef.current.host;
8646
8628
  if (!node) return;
@@ -8680,12 +8662,12 @@ function createComponent(staticConfig) {
8680
8662
  }, [displayName]);
8681
8663
  var groupContextParent = react.default.useContext(GroupContext);
8682
8664
  var animationDriver = (function() {
8665
+ var _ref9, _componentContext_animationDriver;
8683
8666
  if (props.animatedBy && config) {
8684
8667
  if (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;
8685
8668
  return props.animatedBy === "default" ? config.animations : null;
8686
8669
  }
8687
- var _componentContext_animationDriver, _ref5;
8688
- return (_ref5 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref5 !== void 0 ? _ref5 : null;
8670
+ return (_ref9 = (_componentContext_animationDriver = componentContext.animationDriver) !== null && _componentContext_animationDriver !== void 0 ? _componentContext_animationDriver : config === null || config === void 0 ? void 0 : config.animations) !== null && _ref9 !== void 0 ? _ref9 : null;
8689
8671
  })();
8690
8672
  var useAnimations = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? void 0 : animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.useAnimations;
8691
8673
  var componentState = useComponentState(props, (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.isStub) ? null : animationDriver, staticConfig, config);
@@ -8693,7 +8675,6 @@ function createComponent(staticConfig) {
8693
8675
  var { groupName } = componentState;
8694
8676
  var { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;
8695
8677
  props = componentState.props;
8696
- var _avoidReRenders;
8697
8678
  (_avoidReRenders = (_stateRef_current = stateRef.current).avoidReRenders) !== null && _avoidReRenders !== void 0 || (_stateRef_current.avoidReRenders = !!(animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders));
8698
8679
  if (stateRef.current.avoidReRenders) useIsomorphicLayoutEffect(function() {
8699
8680
  var emitted = stateRef.current.prevPseudoState;
@@ -8742,9 +8723,9 @@ function createComponent(staticConfig) {
8742
8723
  var _stateRef_current1;
8743
8724
  themeStateProps.deopt = willBeAnimated;
8744
8725
  themeStateProps.nativeUpdate = (_stateRef_current1 = stateRef.current).nativeUpdateProxy || (_stateRef_current1.nativeUpdateProxy = function(next) {
8726
+ var _ref9;
8745
8727
  var _stateRef_current_nativeStyleUpdate, _stateRef_current3;
8746
- var _stateRef_current_nativeStyleUpdate1;
8747
- return (_stateRef_current_nativeStyleUpdate1 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _stateRef_current_nativeStyleUpdate1 !== void 0 ? _stateRef_current_nativeStyleUpdate1 : false;
8728
+ return (_ref9 = (_stateRef_current_nativeStyleUpdate = (_stateRef_current3 = stateRef.current).nativeStyleUpdate) === null || _stateRef_current_nativeStyleUpdate === void 0 ? void 0 : _stateRef_current_nativeStyleUpdate.call(_stateRef_current3, next)) !== null && _ref9 !== void 0 ? _ref9 : false;
8748
8729
  });
8749
8730
  if (globalThis.process.env.NODE_ENV === "development") {
8750
8731
  if (debugProp && debugProp !== "profile") {
@@ -8802,10 +8783,8 @@ ${banner}
8802
8783
  willBeAnimated = finalizedComponentState.willBeAnimated;
8803
8784
  willBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;
8804
8785
  platformPseudo = finalizedComponentState.platformPseudo;
8805
- var _splitStyles_frontendGroup;
8806
- groupName = (_splitStyles_frontendGroup = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _splitStyles_frontendGroup !== void 0 ? _splitStyles_frontendGroup : groupName;
8807
- var _splitStyles_frontendContainer;
8808
- var containerProp = (_splitStyles_frontendContainer = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _splitStyles_frontendContainer !== void 0 ? _splitStyles_frontendContainer : props.container;
8786
+ groupName = (_ref = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendGroup) !== null && _ref !== void 0 ? _ref : groupName;
8787
+ var containerProp = (_ref1 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainer) !== null && _ref1 !== void 0 ? _ref1 : props.container;
8809
8788
  var containerName = props.containerName || (typeof containerProp === "string" ? containerProp : void 0);
8810
8789
  var containerType = (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.frontendContainerType) || props.containerType || (containerProp ? "inline-size" : void 0);
8811
8790
  var isContainer = !!containerType && containerType !== "normal";
@@ -8832,7 +8811,7 @@ ${banner}
8832
8811
  };
8833
8812
  var entry = {
8834
8813
  state: { pseudo: defaultComponentStateMounted },
8835
- subscribe: function(listener) {
8814
+ subscribe: function subscribe(listener) {
8836
8815
  var _stateRef_current_group2;
8837
8816
  var dispose = (_stateRef_current_group2 = stateRef.current.group) === null || _stateRef_current_group2 === void 0 ? void 0 : _stateRef_current_group2.subscribe(listener);
8838
8817
  return function() {
@@ -8986,6 +8965,7 @@ ${banner}
8986
8965
  var _stateRef_current2;
8987
8966
  var ogSetStateShallow = setStateShallow;
8988
8967
  stateRef.current.updateStyleListener = function() {
8968
+ var _ref9, _ref12;
8989
8969
  var useStyleListener = stateRef.current.useStyleListener;
8990
8970
  if (!useStyleListener) {
8991
8971
  var pendingState = stateRef.current.nextState;
@@ -8995,8 +8975,7 @@ ${banner}
8995
8975
  var updatedState = stateRef.current.nextState || state;
8996
8976
  var mediaState2 = stateRef.current.nextMedia;
8997
8977
  var nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? _objectSpread2(_objectSpread2({}, styleProps), {}, { mediaState: mediaState2 }) : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);
8998
- var _nextStyles_effectiveTransition, _ref5;
8999
- var effectiveTransition2 = (_ref5 = (_nextStyles_effectiveTransition = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _nextStyles_effectiveTransition !== void 0 ? _nextStyles_effectiveTransition : props.transition) !== null && _ref5 !== void 0 ? _ref5 : platformPseudo ? "0ms" : void 0;
8978
+ var effectiveTransition2 = (_ref9 = (_ref12 = nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.effectiveTransition) !== null && _ref12 !== void 0 ? _ref12 : props.transition) !== null && _ref9 !== void 0 ? _ref9 : platformPseudo ? "0ms" : void 0;
9000
8979
  stateRef.current.prevPseudoState = extractPseudoState(updatedState);
9001
8980
  var hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);
9002
8981
  useStyleListener((nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.style) || {}, effectiveTransition2, hasActivePseudo, nextStyles === null || nextStyles === void 0 ? void 0 : nextStyles.nativeTextMetrics);
@@ -9043,7 +9022,7 @@ ${banner}
9043
9022
  ogSetStateShallow(next);
9044
9023
  }
9045
9024
  };
9046
- setStateShallow = function(state2) {
9025
+ setStateShallow = function setStateShallow2(state2) {
9047
9026
  var _stateRef_current_setStateShallow, _stateRef_current3;
9048
9027
  (_stateRef_current_setStateShallow = (_stateRef_current3 = stateRef.current).setStateShallow) === null || _stateRef_current_setStateShallow === void 0 || _stateRef_current_setStateShallow.call(_stateRef_current3, state2);
9049
9028
  };
@@ -9064,7 +9043,7 @@ ${banner}
9064
9043
  var groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
9065
9044
  stateRef.current.prevStyle = splitStylesStyle || null;
9066
9045
  var propsWithAnimation = props;
9067
- var _ref6 = viewPropsIn || {}, { asChild, children, themeShallow, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref6, nonTamaguiProps = _objectWithoutProperties(_ref6, _excluded2$2);
9046
+ var _ref13 = viewPropsIn || {}, { asChild, children, themeShallow, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp } = _ref13, nonTamaguiProps = _objectWithoutProperties(_ref13, _excluded2$2);
9068
9047
  var viewProps = nonTamaguiProps;
9069
9048
  if (props.forceStyle) viewProps.forceStyle = props.forceStyle;
9070
9049
  if (isHOC) {
@@ -9078,12 +9057,12 @@ ${banner}
9078
9057
  var shouldUseAnimation = (inputStyle === "css" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;
9079
9058
  var animatedRef;
9080
9059
  if (shouldUseAnimation) {
9060
+ var _ref2, _ref3;
9081
9061
  var _splitStyles_nativeTextMetrics;
9082
9062
  var useStyleEmitter = (animationDriver === null || animationDriver === void 0 ? void 0 : animationDriver.avoidReRenders) ? function(listener) {
9083
9063
  stateRef.current.useStyleListener = listener;
9084
9064
  } : void 0;
9085
- var _splitStyles_effectiveTransition, _ref;
9086
- var effectiveTransition = (_ref = (_splitStyles_effectiveTransition = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _splitStyles_effectiveTransition !== void 0 ? _splitStyles_effectiveTransition : props.transition) !== null && _ref !== void 0 ? _ref : platformPseudo ? "0ms" : void 0;
9065
+ var effectiveTransition = (_ref2 = (_ref3 = splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.effectiveTransition) !== null && _ref3 !== void 0 ? _ref3 : props.transition) !== null && _ref2 !== void 0 ? _ref2 : platformPseudo ? "0ms" : void 0;
9087
9066
  if (splitStyles) splitStyles.effectiveTransition = effectiveTransition;
9088
9067
  stateRef.current.prevPseudoState = extractPseudoState(state);
9089
9068
  var animations = useAnimations({
@@ -9145,7 +9124,7 @@ ${banner}
9145
9124
  usePointerEvents(props, viewProps);
9146
9125
  if (globalThis.process.env.NODE_ENV === "development") {}
9147
9126
  if (globalThis.process.env.NODE_ENV === "development" && time$1) time$1`events-hooks`;
9148
- var unPress = function() {
9127
+ var unPress = function unPress2() {
9149
9128
  setStateShallow({
9150
9129
  press: false,
9151
9130
  pressIn: false
@@ -9182,7 +9161,7 @@ ${banner}
9182
9161
  useIsomorphicLayoutEffect(function() {
9183
9162
  var disposeSafeArea;
9184
9163
  if (splitStyles === null || splitStyles === void 0 ? void 0 : splitStyles.usesSafeArea) {
9185
- var updateSafeArea = function() {
9164
+ var updateSafeArea = function updateSafeArea2() {
9186
9165
  setState(function(previous) {
9187
9166
  return _objectSpread2({}, previous);
9188
9167
  });
@@ -9248,7 +9227,7 @@ ${banner}
9248
9227
  onPressOut === null || onPressOut === void 0 || onPressOut(e);
9249
9228
  onMouseUp === null || onMouseUp === void 0 || onMouseUp(e);
9250
9229
  } : void 0 }, (attachHover || attachPress) && {
9251
- onMouseEnter: function(e) {
9230
+ onMouseEnter: function onMouseEnter1(e) {
9252
9231
  var next = {};
9253
9232
  if (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;
9254
9233
  if (needsPressState) {
@@ -9258,7 +9237,7 @@ ${banner}
9258
9237
  onHoverIn === null || onHoverIn === void 0 || onHoverIn(e);
9259
9238
  onMouseEnter === null || onMouseEnter === void 0 || onMouseEnter(e);
9260
9239
  },
9261
- onMouseLeave: function(e) {
9240
+ onMouseLeave: function onMouseLeave1(e) {
9262
9241
  var next = {};
9263
9242
  if (needsHoverState) next.hover = false;
9264
9243
  if (needsPressState) {
@@ -9282,11 +9261,11 @@ ${banner}
9282
9261
  unPress();
9283
9262
  onPress === null || onPress === void 0 || onPress(e);
9284
9263
  } : void 0
9285
- }, attachPress && onLongPress && { onLongPress: function(e) {
9264
+ }, attachPress && onLongPress && { onLongPress: function onLongPress1(e) {
9286
9265
  unPress();
9287
9266
  onLongPress === null || onLongPress === void 0 || onLongPress(e);
9288
9267
  } }), attachFocus && {
9289
- onFocus: function(e) {
9268
+ onFocus: function onFocus1(e) {
9290
9269
  var next = {};
9291
9270
  if (componentContext.setParentFocusState) {
9292
9271
  componentContext.setParentFocusState({ focusWithin: true });
@@ -9298,7 +9277,7 @@ ${banner}
9298
9277
  setStateShallow(next);
9299
9278
  onFocus === null || onFocus === void 0 || onFocus(e);
9300
9279
  },
9301
- onBlur: function(e) {
9280
+ onBlur: function onBlur1(e) {
9302
9281
  if (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });
9303
9282
  setStateShallow({
9304
9283
  focus: false,
@@ -9337,10 +9316,10 @@ ${banner}
9337
9316
  });
9338
9317
  var hasRealPressEvents = false;
9339
9318
  var pressGesture = null;
9319
+ var _ref4, _ref5, _ref6, _ref7, _props_testID;
9340
9320
  var propsWithHref = props;
9341
9321
  var propsInWithHref = propsIn;
9342
- var _props_testID, _ref1, _ref2, _ref3, _ref4;
9343
- var pressDebugDetail = (_ref4 = (_ref3 = (_ref2 = (_ref1 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref1 !== void 0 ? _ref1 : props.accessibilityLabel) !== null && _ref2 !== void 0 ? _ref2 : propsIn.accessibilityLabel) !== null && _ref3 !== void 0 ? _ref3 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
9322
+ var pressDebugDetail = (_ref4 = (_ref5 = (_ref6 = (_ref7 = (_props_testID = props.testID) !== null && _props_testID !== void 0 ? _props_testID : propsIn.testID) !== null && _ref7 !== void 0 ? _ref7 : props.accessibilityLabel) !== null && _ref6 !== void 0 ? _ref6 : propsIn.accessibilityLabel) !== null && _ref5 !== void 0 ? _ref5 : typeof propsWithHref.href === "string" ? propsWithHref.href : null) !== null && _ref4 !== void 0 ? _ref4 : typeof propsInWithHref.href === "string" ? propsInWithHref.href : null;
9344
9323
  var pressDebugName = displayName ? pressDebugDetail ? `${displayName}:${pressDebugDetail}` : displayName : pressDebugDetail || null;
9345
9324
  hasRealPressEvents = !!(onPress || onPressIn || onPressOut || onLongPress);
9346
9325
  pressGesture = useEvents(events, viewProps, stateRef, staticConfig, isHOC, isInsideNativeMenu, pressDebugName, hasRealPressEvents);
@@ -9399,10 +9378,10 @@ ${banner}
9399
9378
  var provideText = !!textMetrics && children !== null && typeof children === "object" && (!componentContext.inText || textMetrics.fontSize !== componentContext.parentFontSize || textMetrics.lineHeight !== componentContext.parentLineHeight || animatedText !== componentContext.animatedText);
9400
9379
  var provideFocus = conditionalStates === null || conditionalStates === void 0 ? void 0 : conditionalStates.has("focus-within");
9401
9380
  if (provideText || provideFocus) {
9402
- var _textMetrics_fontSize;
9381
+ var _ref8;
9403
9382
  content = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, componentContext), {}, {
9404
9383
  inText: provideText || componentContext.inText,
9405
- parentFontSize: (_textMetrics_fontSize = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _textMetrics_fontSize !== void 0 ? _textMetrics_fontSize : componentContext.parentFontSize,
9384
+ parentFontSize: (_ref8 = textMetrics === null || textMetrics === void 0 ? void 0 : textMetrics.fontSize) !== null && _ref8 !== void 0 ? _ref8 : componentContext.parentFontSize,
9406
9385
  parentLineHeight: textMetrics ? textMetrics.lineHeight : componentContext.parentLineHeight,
9407
9386
  animatedText,
9408
9387
  setParentFocusState: provideFocus ? setStateShallow : componentContext.setParentFocusState,
@@ -9477,12 +9456,12 @@ ${banner}
9477
9456
  }
9478
9457
  return res;
9479
9458
  }
9480
- var fromPx = function(val) {
9459
+ var fromPx = function fromPx2(val) {
9481
9460
  if (typeof val === "number") return val;
9482
9461
  if (typeof val === "string") return +val.replace("px", "");
9483
9462
  return 0;
9484
9463
  };
9485
- var getCustomRender = function(renderProp, content, viewProps, state) {
9464
+ var getCustomRender = function getCustomRender2(renderProp, content, viewProps, state) {
9486
9465
  if (typeof renderProp === "function") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));
9487
9466
  if (renderProp) {
9488
9467
  if (typeof renderProp === "object" && /* @__PURE__ */ react.default.isValidElement(renderProp)) {
@@ -9507,14 +9486,14 @@ function isHTMLElement(el) {
9507
9486
  //#endregion
9508
9487
  //#region ../web/dist/esm/helpers/getExpandedShorthands.native.js
9509
9488
  function getExpandedShorthand(propKey, props) {
9510
- var shorthands = getConfig().inverseShorthands;
9511
9489
  var _props_propKey;
9490
+ var shorthands = getConfig().inverseShorthands;
9512
9491
  return (_props_propKey = props[propKey]) !== null && _props_propKey !== void 0 ? _props_propKey : props[shorthands[propKey]];
9513
9492
  }
9514
9493
  //#endregion
9515
9494
  //#region ../web/dist/esm/helpers/registerCSSVariable.native.js
9516
9495
  var variableGeneration = 0;
9517
- var registerCSSVariable = function(v) {
9496
+ var registerCSSVariable = function registerCSSVariable2(v) {
9518
9497
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) {
9519
9498
  var key = getVariableValue(v);
9520
9499
  if (tokensValueToVariable.has(key) || tokensValueToVariable.size < 1e4) {
@@ -9523,23 +9502,23 @@ var registerCSSVariable = function(v) {
9523
9502
  }
9524
9503
  }
9525
9504
  };
9526
- var variableToCSS = function(v) {
9505
+ var variableToCSS = function variableToCSS2(v) {
9527
9506
  var unitless = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
9528
9507
  if (!process.env.TAMAGUI_DID_OUTPUT_CSS) return `--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX || ""}${createCSSVariable(v.name, false)}:${!unitless && typeof v.val === "number" ? `${v.val}px` : v.val}`;
9529
9508
  return "";
9530
9509
  };
9531
9510
  var tokensValueToVariable = /* @__PURE__ */ new Map();
9532
9511
  var autoVariables = [];
9533
- var serializeVariables = function(variables) {
9512
+ var serializeVariables = function serializeVariables2(variables) {
9534
9513
  return variables.map(function(v) {
9535
9514
  return `--${v.name}:${v.val}`;
9536
9515
  }).join(";");
9537
9516
  };
9538
- var getAutoVariableCSS = function() {
9517
+ var getAutoVariableCSS = function getAutoVariableCSS2() {
9539
9518
  return serializeVariables(autoVariables);
9540
9519
  };
9541
9520
  var mutatedAutoVariables = [];
9542
- var getMutatedAutoVariableCSS = function() {
9521
+ var getMutatedAutoVariableCSS = function getMutatedAutoVariableCSS2() {
9543
9522
  return serializeVariables(mutatedAutoVariables);
9544
9523
  };
9545
9524
  //#endregion
@@ -9633,19 +9612,19 @@ var fontWeights = [
9633
9612
  "800",
9634
9613
  "900"
9635
9614
  ];
9636
- var processSection = function(section, keys, defaultValue) {
9615
+ var processSection = function processSection2(section, keys, defaultValue) {
9637
9616
  if (typeof section === "string") return section;
9638
9617
  var sectionKeys = Object.keys(section);
9639
9618
  var fillValue = section[sectionKeys[0]];
9640
9619
  return Object.fromEntries([.../* @__PURE__ */ new Set([...keys, ...sectionKeys])].map(function(key) {
9641
- var _section_key, _ref;
9620
+ var _ref, _section_key;
9642
9621
  var value = (_ref = (_section_key = section[key]) !== null && _section_key !== void 0 ? _section_key : defaultValue) !== null && _ref !== void 0 ? _ref : fillValue;
9643
9622
  fillValue = value;
9644
9623
  defaultValue = value;
9645
9624
  return [key, value];
9646
9625
  }));
9647
9626
  };
9648
- var createFont = function(font) {
9627
+ var createFont = function createFont2(font) {
9649
9628
  var sizeKeys = Object.keys(font.size || {});
9650
9629
  var processedFont = Object.fromEntries(Object.entries(font).map(function(param) {
9651
9630
  var [key, section] = param;
@@ -9752,7 +9731,7 @@ function createShorthands(shorthands) {
9752
9731
  //#endregion
9753
9732
  //#region ../web/dist/esm/createVariables.native.js
9754
9733
  var cache = /* @__PURE__ */ new WeakMap();
9755
- var createVariables = function(tokens) {
9734
+ var createVariables = function createVariables1(tokens) {
9756
9735
  var parentPath = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
9757
9736
  arguments.length > 2 && arguments[2] !== void 0 && arguments[2];
9758
9737
  if (cache.has(tokens)) return tokens;
@@ -9788,27 +9767,26 @@ var createVariables = function(tokens) {
9788
9767
  };
9789
9768
  //#endregion
9790
9769
  //#region ../web/dist/esm/helpers/defaultAnimationDriver.native.js
9791
- var noAnimationDriver = function(method) {
9770
+ var noAnimationDriver = function noAnimationDriver2(method) {
9792
9771
  console.warn(`No animation driver configured. To use ${method}, you must pass \`animations\` to createTamagui. See: https://tamagui.dev/docs/core/animations`);
9793
9772
  };
9794
- var createEmptyAnimationDriver = function() {
9773
+ var defaultAnimationDriver = function createEmptyAnimationDriver2() {
9795
9774
  return {
9796
9775
  inputStyle: "css",
9797
9776
  outputStyle: "css",
9798
9777
  isStub: true,
9799
9778
  animations: {},
9800
- useAnimations: function() {
9779
+ useAnimations: function useAnimations() {
9801
9780
  return noAnimationDriver("animations");
9802
9781
  },
9803
- usePresence: function() {
9782
+ usePresence: function usePresence() {
9804
9783
  return noAnimationDriver("usePresence");
9805
9784
  },
9806
- ResetPresence: function() {
9785
+ ResetPresence: function ResetPresence() {
9807
9786
  return noAnimationDriver("ResetPresence");
9808
9787
  }
9809
9788
  };
9810
- };
9811
- var defaultAnimationDriver = createEmptyAnimationDriver();
9789
+ }();
9812
9790
  //#endregion
9813
9791
  //#region ../web/dist/esm/helpers/resolveAnimationDriver.native.js
9814
9792
  function isAnimationDriver(value) {
@@ -10078,7 +10056,7 @@ var unitlessSuffixes = [
10078
10056
  "ratio",
10079
10057
  "elevation"
10080
10058
  ];
10081
- var isUnitlessVariableKey = function(key) {
10059
+ var isUnitlessVariableKey = function isUnitlessVariableKey2(key) {
10082
10060
  var lower = key.toLowerCase();
10083
10061
  return unitlessSuffixes.some(function(suffix) {
10084
10062
  return lower.endsWith(suffix);
@@ -10091,7 +10069,7 @@ var tokenCategoryOrder = [
10091
10069
  "radius",
10092
10070
  "zIndex"
10093
10071
  ];
10094
- var findVariableToken = function(tokensParsed, name) {
10072
+ var findVariableToken = function findVariableToken2(tokensParsed, name) {
10095
10073
  if (globalThis.process.env.NODE_ENV === "development") {
10096
10074
  var found;
10097
10075
  var foundCategory;
@@ -10146,7 +10124,7 @@ var findVariableToken = function(tokensParsed, name) {
10146
10124
  function mergeConfigVariablesIntoTheme(theme, themeName, variables, tokensParsed) {
10147
10125
  var scheme = themeName.startsWith("dark") ? "dark" : "light";
10148
10126
  var resolving = /* @__PURE__ */ new Set();
10149
- var resolveRawValue = function(key2, value) {
10127
+ var resolveRawValue = function resolveRawValue1(key2, value) {
10150
10128
  if (typeof value === "object" && value !== null) {
10151
10129
  if (isVariable(value)) return value.val;
10152
10130
  if ("needsPx" in value) return value;
@@ -10435,10 +10413,10 @@ function createTamagui$2(configIn) {
10435
10413
  lastIndex: -1,
10436
10414
  static: null
10437
10415
  };
10438
- var getCSS$1 = function() {
10416
+ var getCSS$1 = function getCSS2() {
10439
10417
  return getCSS(themeConfig, arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, cssState);
10440
10418
  };
10441
- var getNewCSS = function(opts) {
10419
+ var getNewCSS = function getNewCSS2(opts) {
10442
10420
  return getCSS$1(_objectSpread2(_objectSpread2({}, opts), {}, { sinceLastCall: true }));
10443
10421
  };
10444
10422
  var inputAnimations = configIn.animations;
@@ -10571,8 +10549,8 @@ var builtinShorthands = {
10571
10549
  //#endregion
10572
10550
  //#region ../web/dist/esm/createTokens.native.js
10573
10551
  function createTokens(tokens) {
10574
- if (globalThis.process.env.NODE_ENV !== "production") validateNoTrueTokenKeys(tokens);
10575
10552
  var _process_env_TAMAGUI_TOKEN_PREFIX;
10553
+ if (globalThis.process.env.NODE_ENV !== "production") validateNoTrueTokenKeys(tokens);
10576
10554
  return createVariables(tokens, (_process_env_TAMAGUI_TOKEN_PREFIX = process.env.TAMAGUI_TOKEN_PREFIX) !== null && _process_env_TAMAGUI_TOKEN_PREFIX !== void 0 ? _process_env_TAMAGUI_TOKEN_PREFIX : "t");
10577
10555
  }
10578
10556
  function validateNoTrueTokenKeys(tokens) {
@@ -10587,7 +10565,7 @@ function validateNoTrueTokenKeys(tokens) {
10587
10565
  function mergeVariantValues(earlier, later) {
10588
10566
  if (typeof earlier !== "string" || typeof later !== "string") return later;
10589
10567
  if (!earlier.includes(":") && !later.includes(":")) return later;
10590
- var getSlot = function(token, colon) {
10568
+ var getSlot = function getSlot2(token, colon) {
10591
10569
  var slot = [];
10592
10570
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
10593
10571
  try {
@@ -10613,7 +10591,7 @@ function mergeVariantValues(earlier, later) {
10613
10591
  };
10614
10592
  var clauses = /* @__PURE__ */ new Map();
10615
10593
  var base;
10616
- var add = function(source, reject) {
10594
+ var add = function add2(source, reject) {
10617
10595
  var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;
10618
10596
  try {
10619
10597
  for (var _iterator = source.trim().split(/\s+/)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
@@ -10651,7 +10629,7 @@ function mergeStyleBranch(parentBranch, ourBranch) {
10651
10629
  for (var key in ourBranch) out[key] = key in parentBranch ? mergeVariantValues(parentBranch[key], ourBranch[key]) : ourBranch[key];
10652
10630
  return out;
10653
10631
  }
10654
- var mergeVariants = function(parentVariants, ourVariants) {
10632
+ var mergeVariants = function mergeVariants1(parentVariants, ourVariants) {
10655
10633
  var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
10656
10634
  if (!ourVariants) return parentVariants || {};
10657
10635
  if (!parentVariants) return ourVariants || {};
@@ -10684,12 +10662,11 @@ function resolveSelection(state, variants, key, value, parentKey, condition) {
10684
10662
  if (!isObj(output)) return;
10685
10663
  var originals = styleOriginalValues.get(output);
10686
10664
  for (var outputKey in output) {
10665
+ var _ref;
10687
10666
  if (!state.styleProps.noSkip && outputKey in skipProps) continue;
10688
10667
  var raw = output[outputKey];
10689
10668
  if (raw == null) continue;
10690
- var _$value = state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey);
10691
- var _originals_outputKey;
10692
- emitVariantStyle(state, outputKey, _$value, (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : raw, condition, parentKey === key && outputKey === key);
10669
+ emitVariantStyle(state, outputKey, state.styleProps.noNormalize ? raw : normalizeValueWithProperty(raw, state.conf.shorthands[outputKey] || outputKey), (_ref = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _ref !== void 0 ? _ref : raw, condition, parentKey === key && outputKey === key);
10693
10670
  }
10694
10671
  }
10695
10672
  //#endregion
@@ -10752,7 +10729,8 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10752
10729
  var reactNativeConfig = !parentStaticConfig ? getReactNativeConfig(Component) : void 0;
10753
10730
  var resolvedIsReactNative = Boolean(reactNativeConfig || isReactNative);
10754
10731
  var component = createComponent((function() {
10755
- var _ref = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref, defaultProps = _objectWithoutProperties(_ref, _excluded$2);
10732
+ var _ref;
10733
+ var _ref2 = options || {}, { variants, displayName: _displayName, defaultVariants, context, contextProps } = _ref2, defaultProps = _objectWithoutProperties(_ref2, _excluded$2);
10756
10734
  var parentDefaultVariants;
10757
10735
  var parentDefaultProps;
10758
10736
  var mergedBaseClassName = (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName) && baseClassName ? `${parentStaticConfig.baseClassName} ${baseClassName}` : baseClassName || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.baseClassName);
@@ -10783,8 +10761,7 @@ function styledImpl(frontend, ComponentIn, optionsOrBaseClassName, configOrOptio
10783
10761
  var isInput = Boolean((config === null || config === void 0 ? void 0 : config.isInput) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isInput));
10784
10762
  var isText = Boolean((config === null || config === void 0 ? void 0 : config.isText) || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isText));
10785
10763
  var validStyles = (config === null || config === void 0 ? void 0 : config.validStyles) || ((config === null || config === void 0 ? void 0 : config.isInput) ? stylePropsInput : (config === null || config === void 0 ? void 0 : config.isText) ? stylePropsText : parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.validStyles);
10786
- var _config_acceptsClassName;
10787
- var acceptsClassName = (_config_acceptsClassName = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _config_acceptsClassName !== void 0 ? _config_acceptsClassName : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
10764
+ var acceptsClassName = (_ref = config === null || config === void 0 ? void 0 : config.acceptsClassName) !== null && _ref !== void 0 ? _ref : isPlainStyledComponent || resolvedIsReactNative || (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.isHOC) && (parentStaticConfig === null || parentStaticConfig === void 0 ? void 0 : parentStaticConfig.acceptsClassName);
10788
10765
  var conf = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, parentStaticConfig), config), !isPlainStyledComponent && { Component }), {}, {
10789
10766
  variants,
10790
10767
  baseClassName: mergedBaseClassName,
@@ -10822,7 +10799,7 @@ function useStyle(piece) {
10822
10799
  }
10823
10800
  //#endregion
10824
10801
  //#region ../web/dist/esm/hooks/useIsTouchDevice.native.js
10825
- var useIsTouchDevice = function() {
10802
+ var useIsTouchDevice = function useIsTouchDevice2() {
10826
10803
  return true;
10827
10804
  };
10828
10805
  //#endregion
@@ -10840,13 +10817,13 @@ function useAnimatedNumberDriver() {
10840
10817
  function useAnimatedNumber(initial) {
10841
10818
  return useAnimatedNumberDriver().useAnimatedNumber(initial);
10842
10819
  }
10843
- var useAnimatedNumberStyle = function(value, getStyle) {
10820
+ var useAnimatedNumberStyle = function useAnimatedNumberStyle2(value, getStyle) {
10844
10821
  return useAnimatedNumberDriver().useAnimatedNumberStyle(value, getStyle);
10845
10822
  };
10846
- var useAnimatedNumbersStyle = function(values, getStyle) {
10823
+ var useAnimatedNumbersStyle = function useAnimatedNumbersStyle2(values, getStyle) {
10847
10824
  return useAnimatedNumberDriver().useAnimatedNumbersStyle(values, getStyle);
10848
10825
  };
10849
- var useAnimatedNumberReaction = function(opts, onValue) {
10826
+ var useAnimatedNumberReaction = function useAnimatedNumberReaction2(opts, onValue) {
10850
10827
  return useAnimatedNumberDriver().useAnimatedNumberReaction(opts, onValue);
10851
10828
  };
10852
10829
  //#endregion
@@ -10854,7 +10831,7 @@ var useAnimatedNumberReaction = function(opts, onValue) {
10854
10831
  var forceUpdateState = {
10855
10832
  forceClassName: true,
10856
10833
  deopt: true,
10857
- needsUpdate: function() {
10834
+ needsUpdate: function needsUpdate() {
10858
10835
  return true;
10859
10836
  }
10860
10837
  };
@@ -10935,11 +10912,11 @@ var domEventProps = {
10935
10912
  };
10936
10913
  //#endregion
10937
10914
  //#region ../web/dist/esm/dom/adapters.native.js
10938
- var noop = function() {};
10939
- var returnFalse = function() {
10915
+ var noop = function noop2() {};
10916
+ var returnFalse = function returnFalse2() {
10940
10917
  return false;
10941
10918
  };
10942
- var clickFromPress = function(onClick) {
10919
+ var clickFromPress = function clickFromPress2(onClick) {
10943
10920
  return function(event) {
10944
10921
  var _event_nativeEvent_pageX, _event_nativeEvent_pageY;
10945
10922
  onClick({
@@ -10958,7 +10935,7 @@ var clickFromPress = function(onClick) {
10958
10935
  });
10959
10936
  };
10960
10937
  };
10961
- var changeFromText = function(onChange) {
10938
+ var changeFromText = function changeFromText2(onChange) {
10962
10939
  return function(event) {
10963
10940
  var _event_nativeEvent_text;
10964
10941
  onChange({
@@ -10967,7 +10944,7 @@ var changeFromText = function(onChange) {
10967
10944
  });
10968
10945
  };
10969
10946
  };
10970
- var inputFromText = function(onInput) {
10947
+ var inputFromText = function inputFromText2(onInput) {
10971
10948
  return function(event) {
10972
10949
  var _event_nativeEvent_text;
10973
10950
  onInput({
@@ -10976,7 +10953,7 @@ var inputFromText = function(onInput) {
10976
10953
  });
10977
10954
  };
10978
10955
  };
10979
- var keyFromKeyPress = function(onKeyDown) {
10956
+ var keyFromKeyPress = function keyFromKeyPress2(onKeyDown) {
10980
10957
  return function(event) {
10981
10958
  var _event_nativeEvent_key;
10982
10959
  onKeyDown({
@@ -10985,7 +10962,7 @@ var keyFromKeyPress = function(onKeyDown) {
10985
10962
  });
10986
10963
  };
10987
10964
  };
10988
- var loadFromImage = function(onLoad) {
10965
+ var loadFromImage = function loadFromImage2(onLoad) {
10989
10966
  return function(event) {
10990
10967
  var source = event.nativeEvent.source;
10991
10968
  onLoad({
@@ -10997,12 +10974,12 @@ var loadFromImage = function(onLoad) {
10997
10974
  });
10998
10975
  };
10999
10976
  };
11000
- var errorFromImage = function(onError) {
10977
+ var errorFromImage = function errorFromImage2(onError) {
11001
10978
  return function() {
11002
10979
  onError({ type: "error" });
11003
10980
  };
11004
10981
  };
11005
- var textEntryChange = function(onChange, onInput) {
10982
+ var textEntryChange = function textEntryChange2(onChange, onInput) {
11006
10983
  if (!onChange) return onInput && inputFromText(onInput);
11007
10984
  if (!onInput) return changeFromText(onChange);
11008
10985
  return function(event) {
@@ -11097,7 +11074,7 @@ function assignRef(ref, value) {
11097
11074
  else if (ref) ref.current = value;
11098
11075
  }
11099
11076
  function scaledRect(rect, scale) {
11100
- var value = function(name) {
11077
+ var value = function value2(name) {
11101
11078
  return typeof rect[name] === "number" ? rect[name] / scale : rect[name];
11102
11079
  };
11103
11080
  var DOMRectConstructor = globalThis.DOMRect;
@@ -11163,7 +11140,7 @@ function facadeFor(instance, tag, viewportScale) {
11163
11140
  var property = _step.value;
11164
11141
  if (property in host) Object.defineProperty(facade, property, {
11165
11142
  configurable: true,
11166
- get: function() {
11143
+ get: function get() {
11167
11144
  return typeof host[property] === "number" ? host[property] / viewportScale : host[property];
11168
11145
  }
11169
11146
  });
@@ -11183,7 +11160,7 @@ function facadeFor(instance, tag, viewportScale) {
11183
11160
  if (tag === "img") Object.defineProperty(facade, "complete", {
11184
11161
  configurable: true,
11185
11162
  enumerable: true,
11186
- get: function() {
11163
+ get: function get() {
11187
11164
  var _host_complete;
11188
11165
  return (_host_complete = host.complete) !== null && _host_complete !== void 0 ? _host_complete : false;
11189
11166
  }
@@ -11194,13 +11171,13 @@ function facadeFor(instance, tag, viewportScale) {
11194
11171
  Object.defineProperties(facade, _objectSpread2({
11195
11172
  selectionStart: {
11196
11173
  enumerable: true,
11197
- get: function() {
11174
+ get: function get() {
11198
11175
  return selectionStart;
11199
11176
  }
11200
11177
  },
11201
11178
  selectionEnd: {
11202
11179
  enumerable: true,
11203
- get: function() {
11180
+ get: function get() {
11204
11181
  return selectionEnd;
11205
11182
  }
11206
11183
  }
@@ -11236,14 +11213,14 @@ function createDOMRefCallback(ref, tag, viewportScale) {
11236
11213
  var callback = byTag.get(cacheKey);
11237
11214
  if (!callback) {
11238
11215
  var release;
11239
- callback = function(instance) {
11216
+ callback = function callback2(instance) {
11240
11217
  if (!instance) {
11241
11218
  if (release) return release();
11242
11219
  return assignRef(ref, null);
11243
11220
  }
11244
11221
  release === null || release === void 0 || release();
11245
11222
  var cleanup = assignRef(ref, facadeFor(instance, tag, viewportScale));
11246
- var currentRelease = function() {
11223
+ var currentRelease = function currentRelease1() {
11247
11224
  if (release !== currentRelease) return;
11248
11225
  release = void 0;
11249
11226
  if (typeof cleanup === "function") cleanup();
@@ -11364,11 +11341,11 @@ function resolvedDOMView(props) {
11364
11341
  }
11365
11342
  function DOMTextWithInheritedStyle(param) {
11366
11343
  var { props } = param;
11344
+ var _context_animationDriver;
11367
11345
  var parent = (0, react.useContext)(inheritedTextStyleContext);
11368
11346
  var context = (0, react.useContext)(ComponentContext);
11369
11347
  var value = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
11370
11348
  var content = renderDOMText(_objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, value.style] }));
11371
- var _context_animationDriver;
11372
11349
  var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
11373
11350
  if (value.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) content = (0, react_jsx_runtime.jsx)(NativeTextBinding, {
11374
11351
  element: content,
@@ -11392,11 +11369,11 @@ function resolvedDOMText(props) {
11392
11369
  }
11393
11370
  function DOMTextInputWithInheritedStyle(param) {
11394
11371
  var { props } = param;
11372
+ var _context_animationDriver;
11395
11373
  var parent = (0, react.useContext)(inheritedTextStyleContext);
11396
11374
  var context = (0, react.useContext)(ComponentContext);
11397
11375
  var inherited = resolveInheritedTextStyle([props.style, props.__inheritedStyles], parent, context, props.__textMetrics);
11398
11376
  var resolved = _objectSpread2(_objectSpread2({}, props), {}, { style: [props.style, inherited.style] });
11399
- var _context_animationDriver;
11400
11377
  var driver = context.animatedText && ((_context_animationDriver = context.animationDriver) !== null && _context_animationDriver !== void 0 ? _context_animationDriver : getConfig().animations);
11401
11378
  if (inherited.metrics.inheritsFontSize && context.animatedText && (driver === null || driver === void 0 ? void 0 : driver.useTextMetrics)) return (0, react_jsx_runtime.jsx)(NativeTextBinding, {
11402
11379
  element: renderDOMTextInput(resolved),
@@ -11532,6 +11509,7 @@ function resolveDOMProps(props, tag, spec, tables) {
11532
11509
  var hasInputMode = false;
11533
11510
  var hasRole = false;
11534
11511
  for (var name in props) {
11512
+ var _tables_unsupportedProps_name, _tables_renamed_name;
11535
11513
  var value = props[name];
11536
11514
  if (value === void 0) continue;
11537
11515
  if (name === "display") {
@@ -11579,13 +11557,11 @@ function resolveDOMProps(props, tag, spec, tables) {
11579
11557
  continue;
11580
11558
  }
11581
11559
  if (tables.unsupportedEvents.has(name)) throw new Error(`${name} has no native DOM event equivalent`);
11582
- var _tables_unsupportedProps_name;
11583
11560
  var note = (_tables_unsupportedProps_name = tables.unsupportedProps[name]) !== null && _tables_unsupportedProps_name !== void 0 ? _tables_unsupportedProps_name : name.startsWith("data-") && name !== "data-testid" ? tables.dataPropNote : void 0;
11584
11561
  if (note !== void 0) throw new Error(`${name} is not supported on native html.${tag}: ${note}`);
11585
11562
  if (name === "onKeyDown" && !spec.entry) throw new Error("onKeyDown requires a native text-entry control");
11586
11563
  if (name === "inputMode") hasInputMode = true;
11587
11564
  else if (name === "role") hasRole = true;
11588
- var _tables_renamed_name;
11589
11565
  next[(_tables_renamed_name = tables.renamed[name]) !== null && _tables_renamed_name !== void 0 ? _tables_renamed_name : name] = value;
11590
11566
  }
11591
11567
  if (nested) Object.assign(next, nested);
@@ -11606,7 +11582,7 @@ function resolveDOMProps(props, tag, spec, tables) {
11606
11582
  function createDOMTagFactory(tables) {
11607
11583
  return function domTag(tag, Component) {
11608
11584
  var spec = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
11609
- var Tag = function(props) {
11585
+ var Tag = function Tag2(props) {
11610
11586
  return (0, react_jsx_runtime.jsx)(Component, resolveDOMProps(props, tag, spec, tables));
11611
11587
  };
11612
11588
  Tag.displayName = tag;
@@ -11619,7 +11595,7 @@ function createDOMTagFactory(tables) {
11619
11595
  };
11620
11596
  }
11621
11597
  function unsupportedDOMTag(tag, note) {
11622
- var Tag = function() {
11598
+ var Tag = function Tag2() {
11623
11599
  throw new Error(`html.${tag} is not supported on native: ${note}`);
11624
11600
  };
11625
11601
  Tag.displayName = tag;
@@ -11746,7 +11722,7 @@ var domTag = createDOMTagFactory({
11746
11722
  });
11747
11723
  var domValidStyles = _objectSpread2(_objectSpread2({}, viewStaticConfig.validStyles), textStaticConfig.validStyles);
11748
11724
  var domInputValidStyles = _objectSpread2(_objectSpread2({}, domValidStyles), stylePropsInput);
11749
- var primitive = function(component) {
11725
+ var primitive = function primitive2(component) {
11750
11726
  return component;
11751
11727
  };
11752
11728
  var html = {
@@ -12453,9 +12429,9 @@ var html = {
12453
12429
  };
12454
12430
  //#endregion
12455
12431
  //#region ../web/dist/esm/views/Configuration.native.js
12456
- var Configuration = function(props) {
12457
- var current = react.default.useContext(ComponentContext);
12432
+ var Configuration = function Configuration2(props) {
12458
12433
  var _props_disableSSR;
12434
+ var current = react.default.useContext(ComponentContext);
12459
12435
  return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClientOnly, {
12460
12436
  enabled: (_props_disableSSR = props.disableSSR) !== null && _props_disableSSR !== void 0 ? _props_disableSSR : current.disableSSR,
12461
12437
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ComponentContext.Provider, _objectSpread2(_objectSpread2({}, current), props))
@@ -12491,7 +12467,7 @@ function SafeAreaTracker() {
12491
12467
  }
12492
12468
  //#endregion
12493
12469
  //#region ../web/dist/esm/views/ThemeProvider.native.js
12494
- var ThemeProvider = function(props) {
12470
+ var ThemeProvider = function ThemeProvider2(props) {
12495
12471
  "use no memo";
12496
12472
  var addThemeClassName = props.isSubtreeRoot ? false : getSetting("addThemeClassName");
12497
12473
  var forceClassName = props.isSubtreeRoot || addThemeClassName === void 0;
@@ -12581,7 +12557,7 @@ function useGet(currentValue, initialValue, forwardToFunction) {
12581
12557
  function useEvent(callback) {
12582
12558
  return useGet(callback, defaultValue, true);
12583
12559
  }
12584
- var defaultValue = function() {
12560
+ var defaultValue = function defaultValue2() {
12585
12561
  throw new Error("Cannot call an event handler while rendering.");
12586
12562
  };
12587
12563
  //#endregion
@@ -12616,17 +12592,17 @@ var LayoutHandlers = /* @__PURE__ */ new WeakMap();
12616
12592
  var LayoutDisableKey = /* @__PURE__ */ new WeakMap();
12617
12593
  var Nodes = /* @__PURE__ */ new Set();
12618
12594
  var NodeRectCache = /* @__PURE__ */ new WeakMap();
12619
- var usePretransformDimensions = function() {
12595
+ var usePretransformDimensions = function usePretransformDimensions2() {
12620
12596
  return globalThis.__TAMAGUI_ONLAYOUT_PRETRANSFORM === true || process.env.TAMAGUI_ONLAYOUT_PRETRANSFORM === "1";
12621
12597
  };
12622
- var isDebugLayout = function() {
12598
+ var isDebugLayout = function isDebugLayout2() {
12623
12599
  var _window_location_search, _window_location;
12624
12600
  return typeof window !== "undefined" && ((_window_location = window.location) === null || _window_location === void 0 ? void 0 : (_window_location_search = _window_location.search) === null || _window_location_search === void 0 ? void 0 : _window_location_search.includes("__tamaDebugLayout"));
12625
12601
  };
12626
12602
  var DisableLayoutContextValues = {};
12627
12603
  var DisableLayoutContextKey = /* @__PURE__ */ (0, react.createContext)("");
12628
12604
  var ENABLE = false;
12629
- var LayoutMeasurementController = function(param) {
12605
+ var LayoutMeasurementController = function LayoutMeasurementController2(param) {
12630
12606
  var { disable, children } = param;
12631
12607
  var id = (0, react.useId)();
12632
12608
  useIsomorphicLayoutEffect(function() {
@@ -12792,14 +12768,14 @@ if (ENABLE) {
12792
12768
  return _layoutOnAnimationFrame.apply(this, arguments);
12793
12769
  }
12794
12770
  resumeLayoutLoop = scheduleLayoutFrame2;
12795
- measureOnNextFrame = function() {
12771
+ measureOnNextFrame = function measureOnNextFrame2() {
12796
12772
  frameCount = 0;
12797
12773
  scheduleLayoutFrame2();
12798
12774
  };
12799
12775
  document.addEventListener("visibilitychange", scheduleLayoutFrame2);
12800
12776
  scheduleLayoutFrame2();
12801
12777
  }
12802
- var getElementLayoutEvent = function(nodeRect, parentRect, node) {
12778
+ var getElementLayoutEvent = function getElementLayoutEvent2(nodeRect, parentRect, node) {
12803
12779
  return {
12804
12780
  nativeEvent: {
12805
12781
  layout: getRelativeDimensions(nodeRect, parentRect, node),
@@ -12808,13 +12784,13 @@ var getElementLayoutEvent = function(nodeRect, parentRect, node) {
12808
12784
  timeStamp: Date.now()
12809
12785
  };
12810
12786
  };
12811
- var getPreTransformDimensions = function(node) {
12787
+ var getPreTransformDimensions = function getPreTransformDimensions2(node) {
12812
12788
  return {
12813
12789
  width: node.offsetWidth,
12814
12790
  height: node.offsetHeight
12815
12791
  };
12816
12792
  };
12817
- var getRelativeDimensions = function(a, b, aNode) {
12793
+ var getRelativeDimensions = function getRelativeDimensions2(a, b, aNode) {
12818
12794
  var left = a.left - b.left;
12819
12795
  var top = a.top - b.top;
12820
12796
  var { width, height } = usePretransformDimensions() && aNode ? getPreTransformDimensions(aNode) : {
@@ -13262,7 +13238,7 @@ var NativeMediaQueryList = /* @__PURE__ */ (function() {
13262
13238
  })();
13263
13239
  //#endregion
13264
13240
  //#region ../react-native-media-driver/dist/esm/matchMedia.native.js
13265
- var matchMedia$1 = function(query) {
13241
+ var matchMedia$1 = function matchMedia2(query) {
13266
13242
  return new NativeMediaQueryList(query);
13267
13243
  };
13268
13244
  //#endregion