@tamagui/web 3.0.0-beta.1216.1 → 3.0.0-beta.1310.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/dist/cjs/createComponent.cjs +4 -6
  2. package/dist/cjs/createComponent.native.cjs +3 -5
  3. package/dist/cjs/createComponent.native.js +3 -5
  4. package/dist/cjs/createComponent.native.js.map +1 -1
  5. package/dist/cjs/helpers/createDesignSystem.cjs +9 -7
  6. package/dist/cjs/helpers/createDesignSystem.native.cjs +4 -4
  7. package/dist/cjs/helpers/createDesignSystem.native.js +4 -4
  8. package/dist/cjs/helpers/createDesignSystem.native.js.map +1 -1
  9. package/dist/cjs/helpers/expandStyle.native.cjs +0 -1
  10. package/dist/cjs/helpers/expandStyle.native.js +0 -1
  11. package/dist/cjs/helpers/expandStyle.native.js.map +1 -1
  12. package/dist/cjs/helpers/expandStyles.cjs +8 -2
  13. package/dist/cjs/helpers/expandStyles.native.cjs +7 -7
  14. package/dist/cjs/helpers/expandStyles.native.js +7 -7
  15. package/dist/cjs/helpers/expandStyles.native.js.map +1 -1
  16. package/dist/cjs/helpers/getSplitStyles.cjs +7 -2
  17. package/dist/cjs/helpers/getSplitStyles.native.cjs +21 -6
  18. package/dist/cjs/helpers/getSplitStyles.native.js +21 -6
  19. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  20. package/dist/cjs/helpers/getThemeCSSRules.cjs +6 -6
  21. package/dist/cjs/helpers/nativeOnlyProps.cjs +0 -1
  22. package/dist/cjs/helpers/nativeOnlyProps.native.cjs +0 -1
  23. package/dist/cjs/helpers/nativeOnlyProps.native.js +0 -1
  24. package/dist/cjs/helpers/nativeOnlyProps.native.js.map +1 -1
  25. package/dist/cjs/views/Theme.cjs +3 -2
  26. package/dist/cjs/views/Theme.native.cjs +3 -2
  27. package/dist/cjs/views/Theme.native.js +3 -2
  28. package/dist/cjs/views/Theme.native.js.map +1 -1
  29. package/dist/esm/createComponent.mjs +4 -15
  30. package/dist/esm/createComponent.mjs.map +1 -1
  31. package/dist/esm/createComponent.native.js +3 -14
  32. package/dist/esm/createComponent.native.js.map +1 -1
  33. package/dist/esm/helpers/createDesignSystem.mjs +9 -7
  34. package/dist/esm/helpers/createDesignSystem.mjs.map +1 -1
  35. package/dist/esm/helpers/createDesignSystem.native.js +4 -4
  36. package/dist/esm/helpers/createDesignSystem.native.js.map +1 -1
  37. package/dist/esm/helpers/expandStyle.native.js +1 -2
  38. package/dist/esm/helpers/expandStyle.native.js.map +1 -1
  39. package/dist/esm/helpers/expandStyles.mjs +8 -2
  40. package/dist/esm/helpers/expandStyles.mjs.map +1 -1
  41. package/dist/esm/helpers/expandStyles.native.js +7 -7
  42. package/dist/esm/helpers/expandStyles.native.js.map +1 -1
  43. package/dist/esm/helpers/getSplitStyles.mjs +7 -2
  44. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  45. package/dist/esm/helpers/getSplitStyles.native.js +21 -6
  46. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  47. package/dist/esm/helpers/getThemeCSSRules.mjs +6 -6
  48. package/dist/esm/helpers/getThemeCSSRules.mjs.map +1 -1
  49. package/dist/esm/helpers/nativeOnlyProps.mjs +0 -1
  50. package/dist/esm/helpers/nativeOnlyProps.mjs.map +1 -1
  51. package/dist/esm/helpers/nativeOnlyProps.native.js +0 -1
  52. package/dist/esm/helpers/nativeOnlyProps.native.js.map +1 -1
  53. package/dist/esm/views/Theme.mjs +3 -2
  54. package/dist/esm/views/Theme.mjs.map +1 -1
  55. package/dist/esm/views/Theme.native.js +3 -2
  56. package/dist/esm/views/Theme.native.js.map +1 -1
  57. package/package.json +17 -18
  58. package/src/createComponent.tsx +18 -12
  59. package/src/dom/styleTypes.ts +1 -1
  60. package/src/helpers/createDesignSystem.ts +19 -5
  61. package/src/helpers/expandStyle.ts +0 -4
  62. package/src/helpers/expandStyles.ts +0 -9
  63. package/src/helpers/getSplitStyles.tsx +82 -15
  64. package/src/helpers/getThemeCSSRules.ts +8 -5
  65. package/src/helpers/nativeOnlyProps.ts +0 -1
  66. package/src/interfaces/RNExclusiveTypes.ts +0 -2
  67. package/src/types.tsx +9 -0
  68. package/src/views/Theme.tsx +7 -4
  69. package/types/createComponent.d.ts.map +1 -1
  70. package/types/dom/styleTypes.d.ts +1 -1
  71. package/types/dom/styleTypes.d.ts.map +1 -1
  72. package/types/helpers/createDesignSystem.d.ts.map +1 -1
  73. package/types/helpers/expandStyle.d.ts.map +1 -1
  74. package/types/helpers/expandStyles.d.ts.map +1 -1
  75. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  76. package/types/helpers/getThemeCSSRules.d.ts.map +1 -1
  77. package/types/helpers/nativeOnlyProps.d.ts +0 -1
  78. package/types/helpers/nativeOnlyProps.d.ts.map +1 -1
  79. package/types/interfaces/RNExclusiveTypes.d.ts +1 -2
  80. package/types/interfaces/RNExclusiveTypes.d.ts.map +1 -1
  81. package/types/types.d.ts +3 -0
  82. package/types/types.d.ts.map +1 -1
  83. package/types/views/Theme.d.ts.map +1 -1
  84. package/dist/cjs/helpers/timer.cjs +0 -28
  85. package/dist/cjs/helpers/timer.native.cjs +0 -30
  86. package/dist/cjs/helpers/timer.native.js +0 -32
  87. package/dist/cjs/helpers/timer.native.js.map +0 -1
  88. package/dist/esm/helpers/timer.mjs +0 -13
  89. package/dist/esm/helpers/timer.mjs.map +0 -1
  90. package/dist/esm/helpers/timer.native.js +0 -13
  91. package/dist/esm/helpers/timer.native.js.map +0 -1
  92. package/src/helpers/timer.ts +0 -9
  93. package/types/helpers/timer.d.ts +0 -2
  94. package/types/helpers/timer.d.ts.map +0 -1
@@ -33,6 +33,9 @@ function getThemeCSSRules(props) {
33
33
  if (process.env.TAMAGUI_DID_OUTPUT_CSS) {} else if (!process.env.TAMAGUI_DOES_SSR_CSS || process.env.TAMAGUI_DOES_SSR_CSS === "mutates-themes" || process.env.TAMAGUI_DOES_SSR_CSS === "false") {
34
34
  const cssRuleSets = [];
35
35
  const { config, themeName, theme, names } = props;
36
+ const whitespace = process.env.NODE_ENV === "development" ? " " : "";
37
+ const mediaIndent = process.env.NODE_ENV === "development" ? "\n " : "";
38
+ const mediaClose = process.env.NODE_ENV === "development" ? "\n " : "";
36
39
  const hasDarkLight = props.hasDarkLight ?? (config.themes && ("light" in config.themes || "dark" in config.themes));
37
40
  const CNP = `.${import_constants.THEME_CLASSNAME_PREFIX}`;
38
41
  let vars = "";
@@ -88,7 +91,7 @@ function getThemeCSSRules(props) {
88
91
  const addTo = (0, import_config.getSetting)("addThemeClassName");
89
92
  if (!(isBaseTheme(x) && (addTo === "html" || addTo === "body"))) return `:root ${x}`;
90
93
  return `${addTo === "body" ? "body" : ":root"}${x}`;
91
- }).join(", ") + `, .tm_xxt`} {${vars}}`;
94
+ }).join(", ") + `, .tm_xxt`}${whitespace}{${vars}}`;
92
95
  cssRuleSets.push(css);
93
96
  if ((0, import_config.getSetting)("shouldAddPrefersColorThemes")) {
94
97
  const schemeOf = (x) => {
@@ -111,12 +114,9 @@ function getThemeCSSRules(props) {
111
114
  if (isBase && themeName === baseName) {
112
115
  const bgString = theme.background ? `background:${(0, import_createVariable.variableToString)(theme.background)};` : "";
113
116
  const fgString = theme.color ? `color:${(0, import_createVariable.variableToString)(theme.color)}` : "";
114
- bodyRulesString = bgString || fgString ? `body{${bgString}${fgString}}
115
- ` : "";
117
+ bodyRulesString = bgString || fgString ? `body{${bgString}${fgString}}${mediaIndent}` : "";
116
118
  }
117
- cssRuleSets.push(`@media(prefers-color-scheme:${baseName}){
118
- ${bodyRulesString}${lessSpecificSelectors} {${vars}}
119
- }`);
119
+ cssRuleSets.push(`@media(prefers-color-scheme:${baseName}){${mediaIndent}${bodyRulesString}${lessSpecificSelectors}${whitespace}{${vars}}${mediaClose}}`);
120
120
  }
121
121
  }
122
122
  const selectionStyles = (0, import_config.getSetting)("selectionStyles");
@@ -30,7 +30,6 @@ const nativeOnlyProps = {
30
30
  android_hyphenationFrequency: 1,
31
31
  dataDetectorType: 1,
32
32
  dynamicTypeRamp: 1,
33
- elevationAndroid: 1,
34
33
  ellipsizeMode: 1,
35
34
  hapticFeedback: 1,
36
35
  hapticStyle: 1,
@@ -32,7 +32,6 @@ var nativeOnlyProps = {
32
32
  android_hyphenationFrequency: 1,
33
33
  dataDetectorType: 1,
34
34
  dynamicTypeRamp: 1,
35
- elevationAndroid: 1,
36
35
  ellipsizeMode: 1,
37
36
  hapticFeedback: 1,
38
37
  hapticStyle: 1,
@@ -32,7 +32,6 @@ var nativeOnlyProps = {
32
32
  android_hyphenationFrequency: 1,
33
33
  dataDetectorType: 1,
34
34
  dynamicTypeRamp: 1,
35
- elevationAndroid: 1,
36
35
  ellipsizeMode: 1,
37
36
  hapticFeedback: 1,
38
37
  hapticStyle: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"nativeOnlyProps.native.js","names":[],"sources":["cjs/helpers/nativeOnlyProps.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar nativeOnlyProps_exports = {};\n__export(nativeOnlyProps_exports, {\n nativeOnlyProps: () => nativeOnlyProps\n});\nmodule.exports = __toCommonJS(nativeOnlyProps_exports);\nvar nativeOnlyProps = {\n accessibilityElementsHidden: 1,\n accessibilityIgnoresInvertColors: 1,\n accessibilityLanguage: 1,\n adjustsFontSizeToFit: 1,\n allowFontScaling: 1,\n android_hyphenationFrequency: 1,\n dataDetectorType: 1,\n dynamicTypeRamp: 1,\n elevationAndroid: 1,\n ellipsizeMode: 1,\n hapticFeedback: 1,\n hapticStyle: 1,\n hitSlop: 1,\n importantForAccessibility: 1,\n lineBreakStrategyIOS: 1,\n maxFontSizeMultiplier: 1,\n minimumFontScale: 1,\n needsOffscreenAlphaCompositing: 1,\n nextFocusDown: 1,\n nextFocusForward: 1,\n nextFocusLeft: 1,\n nextFocusRight: 1,\n nextFocusUp: 1,\n onAccessibilityAction: 1,\n onAccessibilityEscape: 1,\n onAccessibilityTap: 1,\n onMagicTap: 1,\n onTextLayout: 1,\n pressRetentionOffset: 1,\n shouldRasterizeIOS: 1,\n suppressHighlighting: 1,\n textBreakStrategy: 1\n};\n//# sourceMappingURL=nativeOnlyProps.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAChC,uBAAuB,gBACzB,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,kBAAkB;CACpB,6BAA6B;CAC7B,kCAAkC;CAClC,uBAAuB;CACvB,sBAAsB;CACtB,kBAAkB;CAClB,8BAA8B;CAC9B,kBAAkB;CAClB,iBAAiB;CACjB,kBAAkB;CAClB,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,SAAS;CACT,2BAA2B;CAC3B,sBAAsB;CACtB,uBAAuB;CACvB,kBAAkB;CAClB,gCAAgC;CAChC,eAAe;CACf,kBAAkB;CAClB,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,uBAAuB;CACvB,uBAAuB;CACvB,oBAAoB;CACpB,YAAY;CACZ,cAAc;CACd,sBAAsB;CACtB,oBAAoB;CACpB,sBAAsB;CACtB,mBAAmB;AACrB"}
1
+ {"version":3,"file":"nativeOnlyProps.native.js","names":[],"sources":["cjs/helpers/nativeOnlyProps.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar nativeOnlyProps_exports = {};\n__export(nativeOnlyProps_exports, {\n nativeOnlyProps: () => nativeOnlyProps\n});\nmodule.exports = __toCommonJS(nativeOnlyProps_exports);\nvar nativeOnlyProps = {\n accessibilityElementsHidden: 1,\n accessibilityIgnoresInvertColors: 1,\n accessibilityLanguage: 1,\n adjustsFontSizeToFit: 1,\n allowFontScaling: 1,\n android_hyphenationFrequency: 1,\n dataDetectorType: 1,\n dynamicTypeRamp: 1,\n ellipsizeMode: 1,\n hapticFeedback: 1,\n hapticStyle: 1,\n hitSlop: 1,\n importantForAccessibility: 1,\n lineBreakStrategyIOS: 1,\n maxFontSizeMultiplier: 1,\n minimumFontScale: 1,\n needsOffscreenAlphaCompositing: 1,\n nextFocusDown: 1,\n nextFocusForward: 1,\n nextFocusLeft: 1,\n nextFocusRight: 1,\n nextFocusUp: 1,\n onAccessibilityAction: 1,\n onAccessibilityEscape: 1,\n onAccessibilityTap: 1,\n onMagicTap: 1,\n onTextLayout: 1,\n pressRetentionOffset: 1,\n shouldRasterizeIOS: 1,\n suppressHighlighting: 1,\n textBreakStrategy: 1\n};\n//# sourceMappingURL=nativeOnlyProps.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAChC,uBAAuB,gBACzB,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,kBAAkB;CACpB,6BAA6B;CAC7B,kCAAkC;CAClC,uBAAuB;CACvB,sBAAsB;CACtB,kBAAkB;CAClB,8BAA8B;CAC9B,kBAAkB;CAClB,iBAAiB;CACjB,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,SAAS;CACT,2BAA2B;CAC3B,sBAAsB;CACtB,uBAAuB;CACvB,kBAAkB;CAClB,gCAAgC;CAChC,eAAe;CACf,kBAAkB;CAClB,eAAe;CACf,gBAAgB;CAChB,aAAa;CACb,uBAAuB;CACvB,uBAAuB;CACvB,oBAAoB;CACpB,YAAY;CACZ,cAAc;CACd,sBAAsB;CACtB,oBAAoB;CACpB,sBAAsB;CACtB,mBAAmB;AACrB"}
@@ -72,8 +72,9 @@ function getThemedChildren(themeState, children, props, isRoot = false, stateRef
72
72
  });
73
73
  const { isInverse } = themeState;
74
74
  const requiresExtraWrapper = isInverse || forceClassName;
75
- if (!state.hasEverThemed) state.hasEverThemed = true;
76
- if (requiresExtraWrapper || themeState.name === "dark" || themeState.name === "light") state.hasEverThemed = "wrapped";
75
+ const isFirstThemedRender = !state.hasEverThemed;
76
+ if (isFirstThemedRender) state.hasEverThemed = true;
77
+ if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
77
78
  if (shallow) if (!themeState.parentId) {} else {
78
79
  const parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);
79
80
  if (!parentState) throw new Error(process.env.NODE_ENV !== "production" ? (0, import_formatDiagnostic.formatDiagnostic)("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
@@ -88,8 +88,9 @@ function getThemedChildren(themeState, children, props) {
88
88
  });
89
89
  var { isInverse } = themeState;
90
90
  var requiresExtraWrapper = isInverse || forceClassName;
91
- if (!state.hasEverThemed) state.hasEverThemed = true;
92
- if (requiresExtraWrapper || themeState.name === "dark" || themeState.name === "light") state.hasEverThemed = "wrapped";
91
+ var isFirstThemedRender = !state.hasEverThemed;
92
+ if (isFirstThemedRender) state.hasEverThemed = true;
93
+ if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
93
94
  if (shallow) if (!themeState.parentId) {} else {
94
95
  var parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);
95
96
  if (!parentState) throw new Error(process.env.NODE_ENV !== "production" ? (0, import_formatDiagnostic.formatDiagnostic)("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
@@ -88,8 +88,9 @@ function getThemedChildren(themeState, children, props) {
88
88
  });
89
89
  var { isInverse } = themeState;
90
90
  var requiresExtraWrapper = isInverse || forceClassName;
91
- if (!state.hasEverThemed) state.hasEverThemed = true;
92
- if (requiresExtraWrapper || themeState.name === "dark" || themeState.name === "light") state.hasEverThemed = "wrapped";
91
+ var isFirstThemedRender = !state.hasEverThemed;
92
+ if (isFirstThemedRender) state.hasEverThemed = true;
93
+ if (requiresExtraWrapper || isFirstThemedRender && (themeState.name === "dark" || themeState.name === "light")) state.hasEverThemed = "wrapped";
93
94
  if (shallow) if (!themeState.parentId) {} else {
94
95
  var parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);
95
96
  if (!parentState) throw new Error(process.env.NODE_ENV !== "production" ? (0, import_formatDiagnostic.formatDiagnostic)("‼️010", "Theme", "parent theme state is missing for shallow rendering", "Keep <Theme shallow> inside its mounted parent Theme", "name,parentId", {
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.native.js","names":[],"sources":["cjs/views/Theme.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Theme_exports = {};\n__export(Theme_exports, {\n\tTheme: () => Theme,\n\tgetThemedChildren: () => getThemedChildren\n});\nmodule.exports = __toCommonJS(Theme_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_createVariable = require(\"../createVariable\");\nvar import_formatDiagnostic = require(\"../helpers/formatDiagnostic\");\nvar import_nativeStyleEngine = require(\"../helpers/nativeStyleEngine\");\nvar import_warnOnce = require(\"../helpers/warnOnce\");\nvar import_useTheme = require(\"../hooks/useTheme\");\nvar import_useThemeState = require(\"../hooks/useThemeState\");\nvar import_ThemeDebug = require(\"./ThemeDebug\");\nvar Theme = (0, import_compose_refs.createRefComponent)(function Theme2(props, ref) {\n\t\"use no memo\";\n\tif (props.disable) return props.children;\n\tif (process.env.NODE_ENV === \"development\") {\n\t\tfor (var key in props) if (!import_helpers.reservedThemeProps[key] && key !== \"srcloc\" && !key.startsWith(\"data-\")) (0, import_warnOnce.warnOnce)(`theme-update:${key}`, `<Theme ${key}=...> no longer accepts inline values. Wrap the subtree in <ThemeUpdate ${key}=...> instead.`);\n\t}\n\tvar { passThrough } = props;\n\tvar isRoot = !!props[\"_isRoot\"];\n\tvar [_, themeState] = (0, import_useTheme.useThemeWithState)(props, isRoot, true);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t(0, import_nativeStyleEngine.updateNativeStyleScope)(themeState.id, themeState.name, themeState.theme);\n\t\treturn function() {\n\t\t\treturn (0, import_nativeStyleEngine.removeNativeStyleScope)(themeState.id);\n\t\t};\n\t}, [\n\t\tthemeState.id,\n\t\tthemeState.name,\n\t\tthemeState.theme\n\t]);\n\tvar finalChildren = props[\"disable-child-theme\"] ? import_react.Children.map(props.children, function(child) {\n\t\treturn passThrough || !/* @__PURE__ */ (0, import_react.isValidElement)(child) ? child : /* @__PURE__ */ (0, import_react.cloneElement)(child, { [\"data-disable-theme\"]: true });\n\t}) : props.children;\n\tif (ref && /* @__PURE__ */ (0, import_react.isValidElement)(finalChildren)) finalChildren = /* @__PURE__ */ (0, import_react.cloneElement)(finalChildren, { ref });\n\tvar stateRef = (0, import_react.useRef)({ hasEverThemed: false });\n\treturn getThemedChildren(themeState, finalChildren, props, isRoot, stateRef, passThrough);\n});\nTheme[\"avoidForwardRef\"] = true;\nfunction getThemedChildren(themeState, children, props) {\n\tvar isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, stateRef = arguments.length > 4 ? arguments[4] : void 0, passThrough = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;\n\tvar { shallow, forceClassName } = props;\n\tvar state = stateRef.current;\n\tvar shouldRenderChildrenWithTheme = state.hasEverThemed || themeState.isNew || isRoot || (0, import_useThemeState.hasThemeUpdatingProps)(props);\n\tif (process.env.NODE_ENV === \"development\" && props.debug === \"visualize\") children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, {\n\t\tthemeState,\n\t\tthemeProps: props,\n\t\tchildren\n\t});\n\tif (!shouldRenderChildrenWithTheme) return children;\n\tchildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_useThemeState.ThemeStateContext.Provider, {\n\t\tvalue: themeState.id,\n\t\tchildren\n\t});\n\tvar { isInverse } = themeState;\n\tvar requiresExtraWrapper = isInverse || forceClassName;\n\tif (!state.hasEverThemed) state.hasEverThemed = true;\n\tif (requiresExtraWrapper || themeState.name === \"dark\" || themeState.name === \"light\") state.hasEverThemed = \"wrapped\";\n\tif (shallow) if (!themeState.parentId) {} else {\n\t\tvar parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);\n\t\tif (!parentState) throw new Error(process.env.NODE_ENV !== \"production\" ? (0, import_formatDiagnostic.formatDiagnostic)(\"‼️010\", \"Theme\", \"parent theme state is missing for shallow rendering\", \"Keep <Theme shallow> inside its mounted parent Theme\", \"name,parentId\", {\n\t\t\tname: themeState.name,\n\t\t\tparentId: themeState.parentId\n\t\t}) : \"❌ Error 014\");\n\t\tchildren = import_react.Children.toArray(children).map(function(child) {\n\t\t\treturn /* @__PURE__ */ (0, import_react.isValidElement)(child) ? passThrough ? child : /* @__PURE__ */ (0, import_react.cloneElement)(child, void 0, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, {\n\t\t\t\tname: parentState.name,\n\t\t\t\tchildren: child.props.children\n\t\t\t})) : child;\n\t\t});\n\t}\n\tif (process.env.NODE_ENV === \"development\") {\n\t\tif (!passThrough && props.debug) console.warn(` getThemedChildren`, {\n\t\t\trequiresExtraWrapper,\n\t\t\tforceClassName,\n\t\t\tthemeState,\n\t\t\tstate,\n\t\t\tthemeSpanProps: getThemeClassNameAndColor(themeState, props, isRoot)\n\t\t});\n\t}\n\tif (forceClassName === false) return children;\n\tif (import_constants.isWeb) {\n\t\tvar _props__themeUpdate;\n\t\tvar baseStyle = props.contain ? inertContainedStyle : inertStyle;\n\t\tvar { className = \"\", color } = passThrough ? {} : getThemeClassNameAndColor(themeState, props, isRoot);\n\t\tvar inlineClassName = passThrough ? void 0 : (_props__themeUpdate = props._themeUpdate) === null || _props__themeUpdate === void 0 ? void 0 : _props__themeUpdate.className;\n\t\tchildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"span\", {\n\t\t\tclassName: `${className} is_Theme${inlineClassName ? ` ${inlineClassName}` : \"\"}`,\n\t\t\tstyle: passThrough ? baseStyle : {\n\t\t\t\tcolor,\n\t\t\t\t...baseStyle\n\t\t\t},\n\t\t\tchildren\n\t\t});\n\t\tif (state.hasEverThemed === \"wrapped\") {\n\t\t\tvar scheme = requiresExtraWrapper && themeState.schemeAuthored && themeState.scheme;\n\t\t\tvar className1 = scheme ? `t_${scheme} _dsp_contents` : \"_dsp_contents\";\n\t\t\tchildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"span\", {\n\t\t\t\tclassName: className1,\n\t\t\t\tchildren\n\t\t\t});\n\t\t}\n\t\treturn children;\n\t}\n\treturn children;\n}\nvar inertStyle = { display: \"contents\" };\nvar inertContainedStyle = {\n\tdisplay: \"contents\",\n\tcontain: \"strict\"\n};\nvar empty = {\n\tclassName: \"\",\n\tcolor: void 0\n};\nfunction getThemeClassNameAndColor(themeState, props, isRoot) {\n\tif (!themeState.isNew && !props.forceClassName) return empty;\n\treturn {\n\t\tcolor: (themeState === null || themeState === void 0 ? void 0 : themeState.theme) && themeState.isNew ? (0, import_createVariable.variableToString)(themeState.theme.color) : \"\",\n\t\tclassName: (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GAAG;GACJ;GACA;EACD,CAAC;EACD,IAAI,MAAM,kBAAkB,WAAW;GACtC,IAAI,SAAS,wBAAwB,WAAW,kBAAkB,WAAW;GAC7E,IAAI,aAAa,SAAS,KAAK,OAAO,kBAAkB;GACxD,WAA2B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,QAAQ;IAC9D,WAAW;IACX;GACD,CAAC;EACF;EACA,OAAO;CACR;CACA,OAAO;AACR;AACA,IAAI,aAAa,EAAE,SAAS,WAAW;AACvC,IAAI,sBAAsB;CACzB,SAAS;CACT,SAAS;AACV;AACA,IAAI,QAAQ;CACX,WAAW;CACX,OAAO,KAAK;AACb;AACA,SAAS,0BAA0B,YAAY,OAAO,QAAQ;CAC7D,IAAI,CAAC,WAAW,SAAS,CAAC,MAAM,gBAAgB,OAAO;CACvD,OAAO;EACN,QAAQ,eAAe,QAAQ,eAAe,KAAK,IAAI,KAAK,IAAI,WAAW,UAAU,WAAW,SAAS,GAAG,sBAAsB,iBAAgB,CAAE,WAAW,MAAM,KAAK,IAAI;EAC9K,YAAY,GAAG,eAAe,mBAAkB,CAAE,WAAW,MAAM,QAAQ,WAAW,cAAc;CACrG;AACD"}
1
+ {"version":3,"file":"Theme.native.js","names":[],"sources":["cjs/views/Theme.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Theme_exports = {};\n__export(Theme_exports, {\n\tTheme: () => Theme,\n\tgetThemedChildren: () => getThemedChildren\n});\nmodule.exports = __toCommonJS(Theme_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_createVariable = require(\"../createVariable\");\nvar import_formatDiagnostic = require(\"../helpers/formatDiagnostic\");\nvar import_nativeStyleEngine = require(\"../helpers/nativeStyleEngine\");\nvar import_warnOnce = require(\"../helpers/warnOnce\");\nvar import_useTheme = require(\"../hooks/useTheme\");\nvar import_useThemeState = require(\"../hooks/useThemeState\");\nvar import_ThemeDebug = require(\"./ThemeDebug\");\nvar Theme = (0, import_compose_refs.createRefComponent)(function Theme2(props, ref) {\n\t\"use no memo\";\n\tif (props.disable) return props.children;\n\tif (process.env.NODE_ENV === \"development\") {\n\t\tfor (var key in props) if (!import_helpers.reservedThemeProps[key] && key !== \"srcloc\" && !key.startsWith(\"data-\")) (0, import_warnOnce.warnOnce)(`theme-update:${key}`, `<Theme ${key}=...> no longer accepts inline values. Wrap the subtree in <ThemeUpdate ${key}=...> instead.`);\n\t}\n\tvar { passThrough } = props;\n\tvar isRoot = !!props[\"_isRoot\"];\n\tvar [_, themeState] = (0, import_useTheme.useThemeWithState)(props, isRoot, true);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t(0, import_nativeStyleEngine.updateNativeStyleScope)(themeState.id, themeState.name, themeState.theme);\n\t\treturn function() {\n\t\t\treturn (0, import_nativeStyleEngine.removeNativeStyleScope)(themeState.id);\n\t\t};\n\t}, [\n\t\tthemeState.id,\n\t\tthemeState.name,\n\t\tthemeState.theme\n\t]);\n\tvar finalChildren = props[\"disable-child-theme\"] ? import_react.Children.map(props.children, function(child) {\n\t\treturn passThrough || !/* @__PURE__ */ (0, import_react.isValidElement)(child) ? child : /* @__PURE__ */ (0, import_react.cloneElement)(child, { [\"data-disable-theme\"]: true });\n\t}) : props.children;\n\tif (ref && /* @__PURE__ */ (0, import_react.isValidElement)(finalChildren)) finalChildren = /* @__PURE__ */ (0, import_react.cloneElement)(finalChildren, { ref });\n\tvar stateRef = (0, import_react.useRef)({ hasEverThemed: false });\n\treturn getThemedChildren(themeState, finalChildren, props, isRoot, stateRef, passThrough);\n});\nTheme[\"avoidForwardRef\"] = true;\nfunction getThemedChildren(themeState, children, props) {\n\tvar isRoot = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, stateRef = arguments.length > 4 ? arguments[4] : void 0, passThrough = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false;\n\tvar { shallow, forceClassName } = props;\n\tvar state = stateRef.current;\n\tvar shouldRenderChildrenWithTheme = state.hasEverThemed || themeState.isNew || isRoot || (0, import_useThemeState.hasThemeUpdatingProps)(props);\n\tif (process.env.NODE_ENV === \"development\" && props.debug === \"visualize\") children = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ThemeDebug.ThemeDebug, {\n\t\tthemeState,\n\t\tthemeProps: props,\n\t\tchildren\n\t});\n\tif (!shouldRenderChildrenWithTheme) return children;\n\tchildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_useThemeState.ThemeStateContext.Provider, {\n\t\tvalue: themeState.id,\n\t\tchildren\n\t});\n\tvar { isInverse } = themeState;\n\tvar requiresExtraWrapper = isInverse || forceClassName;\n\tvar isFirstThemedRender = !state.hasEverThemed;\n\tif (isFirstThemedRender) state.hasEverThemed = true;\n\tif (requiresExtraWrapper || isFirstThemedRender && (themeState.name === \"dark\" || themeState.name === \"light\")) state.hasEverThemed = \"wrapped\";\n\tif (shallow) if (!themeState.parentId) {} else {\n\t\tvar parentState = (0, import_useThemeState.getThemeState)(themeState.isNew ? themeState.id : themeState.parentId);\n\t\tif (!parentState) throw new Error(process.env.NODE_ENV !== \"production\" ? (0, import_formatDiagnostic.formatDiagnostic)(\"‼️010\", \"Theme\", \"parent theme state is missing for shallow rendering\", \"Keep <Theme shallow> inside its mounted parent Theme\", \"name,parentId\", {\n\t\t\tname: themeState.name,\n\t\t\tparentId: themeState.parentId\n\t\t}) : \"❌ Error 014\");\n\t\tchildren = import_react.Children.toArray(children).map(function(child) {\n\t\t\treturn /* @__PURE__ */ (0, import_react.isValidElement)(child) ? passThrough ? child : /* @__PURE__ */ (0, import_react.cloneElement)(child, void 0, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Theme, {\n\t\t\t\tname: parentState.name,\n\t\t\t\tchildren: child.props.children\n\t\t\t})) : child;\n\t\t});\n\t}\n\tif (process.env.NODE_ENV === \"development\") {\n\t\tif (!passThrough && props.debug) console.warn(` getThemedChildren`, {\n\t\t\trequiresExtraWrapper,\n\t\t\tforceClassName,\n\t\t\tthemeState,\n\t\t\tstate,\n\t\t\tthemeSpanProps: getThemeClassNameAndColor(themeState, props, isRoot)\n\t\t});\n\t}\n\tif (forceClassName === false) return children;\n\tif (import_constants.isWeb) {\n\t\tvar _props__themeUpdate;\n\t\tvar baseStyle = props.contain ? inertContainedStyle : inertStyle;\n\t\tvar { className = \"\", color } = passThrough ? {} : getThemeClassNameAndColor(themeState, props, isRoot);\n\t\tvar inlineClassName = passThrough ? void 0 : (_props__themeUpdate = props._themeUpdate) === null || _props__themeUpdate === void 0 ? void 0 : _props__themeUpdate.className;\n\t\tchildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"span\", {\n\t\t\tclassName: `${className} is_Theme${inlineClassName ? ` ${inlineClassName}` : \"\"}`,\n\t\t\tstyle: passThrough ? baseStyle : {\n\t\t\t\tcolor,\n\t\t\t\t...baseStyle\n\t\t\t},\n\t\t\tchildren\n\t\t});\n\t\tif (state.hasEverThemed === \"wrapped\") {\n\t\t\tvar scheme = requiresExtraWrapper && themeState.schemeAuthored && themeState.scheme;\n\t\t\tvar className1 = scheme ? `t_${scheme} _dsp_contents` : \"_dsp_contents\";\n\t\t\tchildren = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\"span\", {\n\t\t\t\tclassName: className1,\n\t\t\t\tchildren\n\t\t\t});\n\t\t}\n\t\treturn children;\n\t}\n\treturn children;\n}\nvar inertStyle = { display: \"contents\" };\nvar inertContainedStyle = {\n\tdisplay: \"contents\",\n\tcontain: \"strict\"\n};\nvar empty = {\n\tclassName: \"\",\n\tcolor: void 0\n};\nfunction getThemeClassNameAndColor(themeState, props, isRoot) {\n\tif (!themeState.isNew && !props.forceClassName) return empty;\n\treturn {\n\t\tcolor: (themeState === null || themeState === void 0 ? void 0 : themeState.theme) && themeState.isNew ? (0, import_createVariable.variableToString)(themeState.theme.color) : \"\",\n\t\tclassName: (0, import_helpers.getThemeClassNames)(themeState.name, isRoot, themeState.schemeAuthored)\n\t};\n}\n//# sourceMappingURL=Theme.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;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CACT,SAAS;AACV;AACA,IAAI,QAAQ;CACX,WAAW;CACX,OAAO,KAAK;AACb;AACA,SAAS,0BAA0B,YAAY,OAAO,QAAQ;CAC7D,IAAI,CAAC,WAAW,SAAS,CAAC,MAAM,gBAAgB,OAAO;CACvD,OAAO;EACN,QAAQ,eAAe,QAAQ,eAAe,KAAK,IAAI,KAAK,IAAI,WAAW,UAAU,WAAW,SAAS,GAAG,sBAAsB,iBAAgB,CAAE,WAAW,MAAM,KAAK,IAAI;EAC9K,YAAY,GAAG,eAAe,mBAAkB,CAAE,WAAW,MAAM,QAAQ,WAAW,cAAc;CACrG;AACD"}
@@ -32,15 +32,6 @@ import { Slot } from "./views/Slot.mjs";
32
32
  import { getThemedChildren } from "./views/Theme.mjs";
33
33
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
34
34
 
35
- var __require$1 = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
36
- if (typeof require !== "undefined") return require.apply(this, arguments);
37
- throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
38
- });
39
-
40
- var __require = /* @__PURE__ */ ((x) => typeof __require$1 !== "undefined" ? __require$1 : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof __require$1 !== "undefined" ? __require$1 : a)[b] }) : x)(function(x) {
41
- if (typeof __require$1 !== "undefined") return __require$1.apply(this, arguments);
42
- throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
43
- });
44
35
  let time;
45
36
  let debugKeyListeners;
46
37
  let startVisualizer;
@@ -210,10 +201,6 @@ function createComponent(staticConfig) {
210
201
  let overriddenContextProps = null;
211
202
  const componentContext = React.useContext(ComponentContext);
212
203
  const hasTextAncestor = !!(isWeb && isText ? componentContext.inText : false);
213
- if (!process.env.TAMAGUI_IS_CORE_NODE && process.env.NODE_ENV === "development" && debugProp === "profile" && !time) {
214
- time = __require$1("@tamagui/timer").timer().start();
215
- globalThis["time"] = time;
216
- }
217
204
  if (process.env.NODE_ENV === "development" && !time && globalThis.time) time = globalThis.time;
218
205
  if (process.env.NODE_ENV === "development" && time) time`non-tamagui time (ignore)`;
219
206
  let props = propsIn;
@@ -306,7 +293,7 @@ function createComponent(staticConfig) {
306
293
  let elementType = BaseComponent;
307
294
  const isAnimatedCustomComponent = animationDriver && isAnimated && animationDriver.needsCustomComponent;
308
295
  if (isAnimatedCustomComponent) elementType = animationDriver[isText ? "Text" : "View"] || elementType;
309
- const disableTheme = props["data-disable-theme"] || isHOC;
296
+ const disableTheme = props["data-disable-theme"] && !("theme" in props) || isHOC;
310
297
  if (process.env.NODE_ENV === "development" && time) time`theme-props`;
311
298
  const themeStateProps = {
312
299
  disable: disableTheme,
@@ -395,7 +382,8 @@ ${banner}
395
382
  willBeAnimated,
396
383
  canPlatformPseudo: componentState.platformPseudo,
397
384
  displayName,
398
- styledContext: styledContextValue
385
+ styledContext: styledContextValue,
386
+ prevStyle: isWeb ? void 0 : stateRef.current.prevStyle
399
387
  };
400
388
  const themeName = themeState?.name || "";
401
389
  if (process.env.NODE_ENV === "development" && time) time`split-styles-prepare`;
@@ -567,6 +555,7 @@ ${banner}
567
555
  setMediaShouldUpdate(stateRef.current, shouldListenForMedia, mediaListeningKeys, stateRef.current.optimizeForFirstRender);
568
556
  const { viewProps: viewPropsIn, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};
569
557
  const groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);
558
+ if (!isWeb) stateRef.current.prevStyle = splitStylesStyle || null;
570
559
  const propsWithAnimation = props;
571
560
  const { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp, ...nonTamaguiProps } = viewPropsIn || {};
572
561
  let viewProps = nonTamaguiProps;
@@ -1 +1 @@
1
- {"version":3,"file":"createComponent.js","names":[],"sources":["esm/createComponent.js"],"sourcesContent":["import { composeRefs, setRef } from \"@tamagui/compose-refs\";\nimport { getPlatformDriver, isClient, isNativeDesktop, isServer, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { composeEventHandlers } from \"@tamagui/helpers\";\nimport { isEqualShallow } from \"@tamagui/is-equal-shallow\";\nimport React, { useMemo } from \"react\";\nimport { devConfig, getConfig } from \"./config\";\nimport { isDevTools } from \"./constants/isDevTools\";\nimport { ComponentContext } from \"./contexts/ComponentContext\";\nimport { GroupContext } from \"./contexts/GroupContext\";\nimport { didGetVariableValue, setDidGetVariableValue } from \"./createVariable\";\nimport { defaultComponentStateMounted } from \"./defaultComponentState\";\nimport { getWebEvents } from \"./eventHandling\";\nimport { componentDisplayName } from \"./helpers/componentDisplayName\";\nimport { getSplitStyles } from \"./helpers/getSplitStyles\";\nimport { getConfigRevisionState } from \"./helpers/grammarConfig\";\nimport { getStyleStaticConfig } from \"./helpers/styleStaticConfig\";\nimport { log } from \"./helpers/log\";\nimport { mergeComponentProps } from \"./helpers/mergeProps\";\nimport { mergeRenderElementProps } from \"./helpers/mergeRenderElementProps\";\nimport { usePointerEvents } from \"./helpers/pointerEvents\";\nimport { extractPseudoState } from \"./helpers/extractPseudoState\";\nimport { subscribeToSafeArea } from \"./helpers/resolveSafeAreaVariable\";\nimport { setElementProps } from \"./helpers/setElementProps\";\nimport { subscribeToContextGroup, useGroupSetRevision } from \"./helpers/subscribeToContextGroup\";\nimport { getStyleTags } from \"./helpers/wrapStyleTags\";\nimport { useComponentState } from \"./hooks/useComponentState\";\nimport { useSplitStyles } from \"./hooks/useSplitStyles\";\nimport { setMediaShouldUpdate, useMedia } from \"./hooks/useMedia\";\nimport { useThemeWithState } from \"./hooks/useTheme\";\nimport { hooks } from \"./setupHooks\";\nimport { Slot } from \"./views/Slot\";\nimport { getThemedChildren } from \"./views/Theme\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n\nvar __require = /* @__PURE__ */ ((x) => typeof require !== \"undefined\" ? require : typeof Proxy !== \"undefined\" ? new Proxy(x, { get: (a, b) => (typeof require !== \"undefined\" ? require : a)[b] }) : x)(function(x) {\n\tif (typeof require !== \"undefined\") return require.apply(this, arguments);\n\tthrow Error(\"Calling `require` for \\\"\" + x + \"\\\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.\");\n});\n\nlet time;\nlet debugKeyListeners;\nlet startVisualizer;\nconst componentSetStates = /* @__PURE__ */ new Set();\nconst avoidReRenderKeys = /* @__PURE__ */ new Set([\n\t\"hover\",\n\t\"press\",\n\t\"pressIn\",\n\t\"group\",\n\t\"focus\",\n\t\"focusWithin\",\n\t\"media\"\n]);\nconst groupPseudoKeys = [\n\t\"disabled\",\n\t\"hover\",\n\t\"press\",\n\t\"pressIn\",\n\t\"focus\",\n\t\"focusVisible\",\n\t\"focusWithin\"\n];\nif (typeof window !== \"undefined\") {\n\tconst cancelPresses = () => {\n\t\tcomponentSetStates.forEach((setState) => setState((prev) => {\n\t\t\tif (prev.press || prev.pressIn) return {\n\t\t\t\t...prev,\n\t\t\t\tpress: false,\n\t\t\t\tpressIn: false\n\t\t\t};\n\t\t\treturn prev;\n\t\t}));\n\t\tcomponentSetStates.clear();\n\t};\n\tconst cancelTouches = () => {\n\t\tcomponentSetStates.forEach((setState) => setState((prev) => {\n\t\t\tif (prev.press || prev.pressIn || prev.hover) return {\n\t\t\t\t...prev,\n\t\t\t\tpress: false,\n\t\t\t\tpressIn: false,\n\t\t\t\thover: false\n\t\t\t};\n\t\t\treturn prev;\n\t\t}));\n\t\tcomponentSetStates.clear();\n\t};\n\taddEventListener(\"mouseup\", cancelPresses);\n\taddEventListener(\"touchend\", cancelTouches);\n\taddEventListener(\"touchcancel\", cancelTouches);\n\tif (process.env.NODE_ENV === \"development\") startVisualizer = () => {\n\t\tconst devVisualizerConfig = devConfig?.visualizer;\n\t\tif (devVisualizerConfig && !globalThis.__tamaguiDevVisualizer) {\n\t\t\tlet show = function(val) {\n\t\t\t\tclearTimeout(tm);\n\t\t\t\tisShowing = val;\n\t\t\t\tdebugKeyListeners?.forEach((l) => l(val));\n\t\t\t\tif (!val && resizeListener) {\n\t\t\t\t\twindow.removeEventListener(\"resize\", resizeListener);\n\t\t\t\t\tresizeListener = null;\n\t\t\t\t}\n\t\t\t}, cancelShow = function() {\n\t\t\t\tclearTimeout(tm);\n\t\t\t\tif (resizeListener) {\n\t\t\t\t\twindow.removeEventListener(\"resize\", resizeListener);\n\t\t\t\t\tresizeListener = null;\n\t\t\t\t}\n\t\t\t};\n\t\t\tglobalThis.__tamaguiDevVisualizer = true;\n\t\t\tdebugKeyListeners = /* @__PURE__ */ new Set();\n\t\t\tlet tm;\n\t\t\tlet isShowing = false;\n\t\t\tlet resizeListener = null;\n\t\t\tconst options = {\n\t\t\t\tkey: \"Alt\",\n\t\t\t\tdelay: 800,\n\t\t\t\t...typeof devVisualizerConfig === \"object\" ? devVisualizerConfig : {}\n\t\t\t};\n\t\t\twindow.addEventListener(\"blur\", () => {\n\t\t\t\tshow(false);\n\t\t\t});\n\t\t\twindow.addEventListener(\"keydown\", ({ key, metaKey, defaultPrevented }) => {\n\t\t\t\tclearTimeout(tm);\n\t\t\t\tif (defaultPrevented) return;\n\t\t\t\tif (metaKey) return;\n\t\t\t\tif (key === options.key) {\n\t\t\t\t\tif (!resizeListener) {\n\t\t\t\t\t\tresizeListener = () => cancelShow();\n\t\t\t\t\t\twindow.addEventListener(\"resize\", resizeListener);\n\t\t\t\t\t}\n\t\t\t\t\ttm = setTimeout(() => {\n\t\t\t\t\t\tshow(true);\n\t\t\t\t\t}, options.delay);\n\t\t\t\t}\n\t\t\t});\n\t\t\twindow.addEventListener(\"keyup\", ({ defaultPrevented }) => {\n\t\t\t\tif (defaultPrevented) return;\n\t\t\t\tcancelShow();\n\t\t\t\tif (isShowing) show(false);\n\t\t\t});\n\t\t}\n\t};\n}\nconst lastInteractionWasKeyboard = { value: false };\nconst lastInteractionWasTouch = { value: false };\nif (isWeb && typeof document !== \"undefined\") {\n\tdocument.addEventListener(\"keydown\", () => {\n\t\tif (!lastInteractionWasKeyboard.value) lastInteractionWasKeyboard.value = true;\n\t});\n\tdocument.addEventListener(\"mousedown\", () => {\n\t\tif (lastInteractionWasKeyboard.value) lastInteractionWasKeyboard.value = false;\n\t});\n\tdocument.addEventListener(\"mousemove\", () => {\n\t\tif (lastInteractionWasKeyboard.value) lastInteractionWasKeyboard.value = false;\n\t\tlastInteractionWasTouch.value = false;\n\t});\n\tdocument.addEventListener(\"touchstart\", () => {\n\t\tlastInteractionWasTouch.value = true;\n\t});\n}\nfunction createComponent(staticConfig) {\n\tif (process.env.TAMAGUI_RUNTIME === \"zero\") throw new Error(process.env.NODE_ENV !== \"production\" ? `[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.` : \"❌ Error 010\");\n\tlet config = null;\n\tlet resolvedDefaultProps;\n\tlet resolvedStyleRevision = -1;\n\tlet resolvedStyleStaticConfig;\n\tconst { Component, isText, isHOC } = staticConfig;\n\tlet res;\n\tconst { displayName } = staticConfig;\n\tconst component = (propsInWithRef) => {\n\t\t\"use no memo\";\n\t\tconst forwardedRef = propsInWithRef.ref;\n\t\tconst propsIn = propsInWithRef;\n\t\tconfig = config || getConfig();\n\t\tconst styleRevision = getConfigRevisionState(config).revision;\n\t\tif (resolvedStyleRevision !== styleRevision) {\n\t\t\tresolvedStyleRevision = styleRevision;\n\t\t\tconst nextStyleStaticConfig = getStyleStaticConfig(staticConfig, config);\n\t\t\tresolvedStyleStaticConfig = nextStyleStaticConfig;\n\t\t\tresolvedDefaultProps = nextStyleStaticConfig.defaultProps;\n\t\t\tif (isWeb && !staticConfig.isText && config.settings.defaultPosition === \"relative\" && nextStyleStaticConfig.baseStyle?.position === void 0) resolvedStyleStaticConfig = {\n\t\t\t\t...nextStyleStaticConfig,\n\t\t\t\tbaseStyle: {\n\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t...nextStyleStaticConfig.baseStyle\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tconst styleStaticConfig = resolvedStyleStaticConfig;\n\t\tstyleStaticConfig.styledContextKeys;\n\t\tconst internalID = process.env.NODE_ENV === \"development\" ? React.useId() : \"\";\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (startVisualizer) {\n\t\t\t\tstartVisualizer();\n\t\t\t\tstartVisualizer = void 0;\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"test\") {\n\t\t\tconst testRenderCount = propsIn[\"data-test-renders\"];\n\t\t\tif (testRenderCount && typeof testRenderCount === \"object\" && !Object.isFrozen(testRenderCount)) {\n\t\t\t\ttestRenderCount.current = testRenderCount.current ?? 0;\n\t\t\t\ttestRenderCount.current += 1;\n\t\t\t}\n\t\t}\n\t\tconst { context } = staticConfig;\n\t\tconst debugProp = propsIn[\"debug\"];\n\t\tconst styledContextValue = context ? React.useContext(context) : void 0;\n\t\tlet overriddenContextProps = null;\n\t\tconst componentContext = React.useContext(ComponentContext);\n\t\tconst hasTextAncestor = !!(isWeb && isText ? componentContext.inText : false);\n\t\tif (!process.env.TAMAGUI_IS_CORE_NODE && process.env.NODE_ENV === \"development\" && debugProp === \"profile\" && !time) {\n\t\t\ttime = require(\"@tamagui/timer\").timer().start();\n\t\t\tglobalThis[\"time\"] = time;\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && !time && globalThis.time) time = globalThis.time;\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`non-tamagui time (ignore)`;\n\t\tlet props = propsIn;\n\t\tconst [nextProps, overrides] = mergeComponentProps(resolvedDefaultProps, styledContextValue, propsIn);\n\t\tprops = nextProps;\n\t\toverriddenContextProps = overrides;\n\t\tif (process.env.NODE_ENV === \"development\" && isClient) React.useEffect(() => {\n\t\t\tlet node;\n\t\t\tlet overlay = null;\n\t\t\tconst remove = () => {\n\t\t\t\tif (overlay) try {\n\t\t\t\t\toverlay.parentNode?.removeChild(overlay);\n\t\t\t\t\toverlay = null;\n\t\t\t\t} catch {}\n\t\t\t};\n\t\t\tconst debugVisualizerHandler = (show = false) => {\n\t\t\t\tnode = stateRef.current.host;\n\t\t\t\tif (!node) return;\n\t\t\t\tif (show) {\n\t\t\t\t\tif (!overlay) {\n\t\t\t\t\t\toverlay = document.createElement(\"span\");\n\t\t\t\t\t\toverlay.style.inset = \"0px\";\n\t\t\t\t\t\toverlay.style.zIndex = \"1000000\";\n\t\t\t\t\t\toverlay.style.position = \"absolute\";\n\t\t\t\t\t\toverlay.style.borderColor = \"red\";\n\t\t\t\t\t\toverlay.style.borderWidth = \"1px\";\n\t\t\t\t\t\toverlay.style.borderStyle = \"dotted\";\n\t\t\t\t\t}\n\t\t\t\t\tconst dataAt = node.getAttribute(\"data-at\") || \"\";\n\t\t\t\t\tconst dataIn = node.getAttribute(\"data-in\") || \"\";\n\t\t\t\t\tconst tooltip = document.createElement(\"span\");\n\t\t\t\t\ttooltip.style.position = \"absolute\";\n\t\t\t\t\ttooltip.style.top = \"0px\";\n\t\t\t\t\ttooltip.style.left = \"0px\";\n\t\t\t\t\ttooltip.style.padding = \"3px\";\n\t\t\t\t\ttooltip.style.background = \"rgba(0,0,0,0.75)\";\n\t\t\t\t\ttooltip.style.color = \"rgba(255,255,255,1)\";\n\t\t\t\t\ttooltip.style.fontSize = \"12px\";\n\t\t\t\t\ttooltip.style.lineHeight = \"12px\";\n\t\t\t\t\ttooltip.style.fontFamily = \"monospace\";\n\t\t\t\t\ttooltip.innerText = `${displayName || \"\"} ${dataAt} ${dataIn}`.trim();\n\t\t\t\t\toverlay.appendChild(tooltip);\n\t\t\t\t\tnode.appendChild(overlay);\n\t\t\t\t} else remove();\n\t\t\t};\n\t\t\tdebugKeyListeners = debugKeyListeners || /* @__PURE__ */ new Set();\n\t\t\tdebugKeyListeners.add(debugVisualizerHandler);\n\t\t\treturn () => {\n\t\t\t\tremove();\n\t\t\t\tdebugKeyListeners?.delete(debugVisualizerHandler);\n\t\t\t};\n\t\t}, [displayName]);\n\t\tconst groupContextParent = React.useContext(GroupContext);\n\t\tconst animationDriver = (() => {\n\t\t\tif (props.animatedBy && config) {\n\t\t\t\tif (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;\n\t\t\t\treturn props.animatedBy === \"default\" ? config.animations : null;\n\t\t\t}\n\t\t\treturn componentContext.animationDriver ?? config?.animations ?? null;\n\t\t})();\n\t\tconst useAnimations = animationDriver?.isStub ? void 0 : animationDriver?.useAnimations;\n\t\tconst componentState = useComponentState(props, animationDriver?.isStub ? null : animationDriver, staticConfig, config);\n\t\tconst { disabled, hasAnimationProp, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, inputStyle, outputStyle, startedUnhydrated } = componentState;\n\t\tlet { groupName } = componentState;\n\t\tlet { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;\n\t\tprops = componentState.props;\n\t\tstateRef.current.avoidReRenders ??= !!animationDriver?.avoidReRenders;\n\t\tif (stateRef.current.avoidReRenders) useIsomorphicLayoutEffect(() => {\n\t\t\tconst emitted = stateRef.current.prevPseudoState;\n\t\t\tif (emitted && (emitted.hover || emitted.press || emitted.focus)) stateRef.current.updateStyleListener?.();\n\t\t\tconst pendingState = stateRef.current.nextState;\n\t\t\tif (!pendingState) return;\n\t\t\tstateRef.current.nextState = void 0;\n\t\t\tif (!isEqualShallow(state, pendingState)) componentState.setStateShallow(pendingState);\n\t\t});\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tif (!platformPseudo || props.disabled) return;\n\t\t\tconst pseudoDriver = getPlatformDriver()?.pseudo;\n\t\t\tconst host = stateRef.current.host;\n\t\t\tif (!pseudoDriver || !host) return;\n\t\t\treturn pseudoDriver.subscribe(host, ({ hovered }) => {\n\t\t\t\tstateRef.current.setStateShallow?.({ hover: hovered });\n\t\t\t});\n\t\t}, [platformPseudo, props.disabled]);\n\t\tlet setStateShallow = componentState.setStateShallow;\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`use-state`;\n\t\tconst renderProp = props.render;\n\t\tconst element = isWeb ? !Component || typeof Component === \"string\" ? renderProp || Component : Component : Component;\n\t\tconst BaseComponent = isText ? element || \"span\" : element || (hasTextAncestor ? \"span\" : \"div\");\n\t\tlet elementType = BaseComponent;\n\t\tconst isAnimatedCustomComponent = animationDriver && isAnimated && animationDriver.needsCustomComponent;\n\t\tif (isAnimatedCustomComponent) elementType = animationDriver[isText ? \"Text\" : \"View\"] || elementType;\n\t\tconst disableTheme = props[\"data-disable-theme\"] || isHOC;\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`theme-props`;\n\t\tconst themeStateProps = {\n\t\t\tdisable: disableTheme,\n\t\t\tshallow: props.themeShallow,\n\t\t\tdebug: debugProp\n\t\t};\n\t\tif (\"theme\" in props) themeStateProps.name = props.theme;\n\t\tif (!stateRef.current.optimizeForFirstRender) themeStateProps.needsUpdate = stateRef.current.themeNeedsUpdate || (stateRef.current.themeNeedsUpdate = () => !!stateRef.current.isListeningToTheme);\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (debugProp && debugProp !== \"profile\") {\n\t\t\t\tconst name = `${displayName || Component?.displayName || Component?.name || \"[Unnamed Component]\"}`;\n\t\t\t\tconst type = (hasEnterStyle ? \"(hasEnter)\" : \" \") + (isAnimated ? \"(animated)\" : \" \") + (noClass ? \"(noClass)\" : \" \") + (state.press || state.pressIn ? \"(PRESSED)\" : \" \") + (state.hover ? \"(HOVERED)\" : \" \") + (state.focus ? \"(FOCUSED)\" : \" \") + (state.focusWithin ? \"(WITHIN FOCUSED)\" : \" \") + (presenceState?.isPresent === false ? \"(EXIT)\" : \"\");\n\t\t\t\tconst dataIs = propsIn[\"data-is\"] || \"\";\n\t\t\t\tconst banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : \"\"} ${type.trim()} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`;\n\t\t\t\tconst ch = propsIn.children;\n\t\t\t\tlet childLog = typeof ch === \"string\" ? ch.length > 4 ? ch.slice(0, 4) + \"...\" : ch : \"\";\n\t\t\t\tif (childLog.length) childLog = `(children: ${childLog})`;\n\t\t\t\tif (isWeb) {\n\t\t\t\t\tconsole.info(`%c ${banner}`, \"background: green; color: white;\");\n\t\t\t\t\tif (isServer) log({\n\t\t\t\t\t\tnoClass,\n\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\tisWeb,\n\t\t\t\t\t\tinputStyle\n\t\t\t\t\t});\n\t\t\t\t\telse {\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t\tconsole.groupCollapsed(`${childLog} [inspect props, state, context \\u{1F447}]`);\n\t\t\t\t\t\tlog(\"props in:\", propsIn);\n\t\t\t\t\t\tlog(\"final props:\", props);\n\t\t\t\t\t\tlog({\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\tstaticConfig,\n\t\t\t\t\t\t\telementType,\n\t\t\t\t\t\t\tthemeStateProps\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlog({\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\toverriddenContextProps,\n\t\t\t\t\t\t\tcomponentContext\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlog({\n\t\t\t\t\t\t\tpresence,\n\t\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\t\tisHOC,\n\t\t\t\t\t\t\thasAnimationProp,\n\t\t\t\t\t\t\tuseAnimations\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconsole.info(`\n\n------------------------------\n${banner}\n------------------------------\n`);\n\t\t\t\t\tlog(`children:`, props.children);\n\t\t\t\t\tlog({\n\t\t\t\t\t\toverriddenContextProps,\n\t\t\t\t\t\tstyledContextValue\n\t\t\t\t\t});\n\t\t\t\t\tlog({\n\t\t\t\t\t\tnoClass,\n\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\tisWeb,\n\t\t\t\t\t\tinputStyle\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`pre-theme-media`;\n\t\tconst [theme, themeState] = useThemeWithState(themeStateProps);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`theme`;\n\t\tif (!isAnimatedCustomComponent) elementType = element || elementType;\n\t\tconst isStringElement = typeof elementType === \"string\";\n\t\tconst mediaState = useMedia(componentContext, debugProp, stateRef.current);\n\t\tsetDidGetVariableValue(false);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`media`;\n\t\tconst styleProps = {\n\t\t\tmediaState,\n\t\t\tnoClass,\n\t\t\tresolveValues: isAnimated && inputStyle !== \"css\" || isHOC && state.unmounted == false && hasAnimationProp ? \"value\" : \"auto\",\n\t\t\tisExiting,\n\t\t\tisAnimated,\n\t\t\twillBeAnimated,\n\t\t\tcanPlatformPseudo: componentState.platformPseudo,\n\t\t\tdisplayName,\n\t\t\tstyledContext: styledContextValue\n\t\t};\n\t\tconst themeName = themeState?.name || \"\";\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`split-styles-prepare`;\n\t\tconst splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);\n\t\tconst finalizedComponentState = componentState.finalizeStyleFlags(!!splitStyles?.hasEnterStyle, !!splitStyles?.platformPseudo);\n\t\thasEnterStyle = finalizedComponentState.hasEnterStyle;\n\t\tisAnimated = finalizedComponentState.isAnimated;\n\t\twillBeAnimated = finalizedComponentState.willBeAnimated;\n\t\twillBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;\n\t\tplatformPseudo = finalizedComponentState.platformPseudo;\n\t\tgroupName = splitStyles?.frontendGroup ?? groupName;\n\t\tconst containerProp = splitStyles?.frontendContainer ?? props.container;\n\t\tconst containerName = props.containerName || (typeof containerProp === \"string\" ? containerProp : void 0);\n\t\tconst containerType = splitStyles?.frontendContainerType || props.containerType || (containerProp ? \"inline-size\" : void 0);\n\t\tconst isContainer = !!containerType && containerType !== \"normal\";\n\t\tconst allGroupContexts = useMemo(() => {\n\t\t\tif (!groupName && !isContainer || props.passThrough) return groupContextParent;\n\t\t\tconst listeners = /* @__PURE__ */ new Set();\n\t\t\tstateRef.current.group?.listeners?.clear();\n\t\t\tstateRef.current.group = {\n\t\t\t\tlisteners,\n\t\t\t\temit(state2) {\n\t\t\t\t\tlisteners.forEach((l) => l(state2));\n\t\t\t\t},\n\t\t\t\tsubscribe(cb) {\n\t\t\t\t\tlisteners.add(cb);\n\t\t\t\t\tif (listeners.size === 1) setStateShallow({ hasDynGroupChildren: true });\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tlisteners.delete(cb);\n\t\t\t\t\t\tif (listeners.size === 0) setStateShallow({ hasDynGroupChildren: false });\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst entry = {\n\t\t\t\tstate: { pseudo: defaultComponentStateMounted },\n\t\t\t\tsubscribe: (listener) => {\n\t\t\t\t\tconst dispose = stateRef.current.group?.subscribe(listener);\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tdispose?.();\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst next = { ...groupContextParent };\n\t\t\tif (groupName) next[groupName] = entry;\n\t\t\tif (isContainer) {\n\t\t\t\tnext[\"@\"] = entry;\n\t\t\t\tif (containerName) next[`@${containerName}`] = entry;\n\t\t\t}\n\t\t\treturn next;\n\t\t}, [\n\t\t\tstateRef,\n\t\t\tgroupName,\n\t\t\tcontainerName,\n\t\t\tisContainer,\n\t\t\tgroupContextParent\n\t\t]);\n\t\tconst isPassthrough = !splitStyles;\n\t\tlet contextForOverride = staticConfig.context;\n\t\tif (splitStyles?.overriddenContextProps) {\n\t\t\tconst contextForProps = staticConfig.context || staticConfig.parentStaticConfig?.context;\n\t\t\tif (contextForProps) {\n\t\t\t\tfor (const key in splitStyles.overriddenContextProps) {\n\t\t\t\t\toverriddenContextProps = overriddenContextProps || {};\n\t\t\t\t\toverriddenContextProps[key] = splitStyles.overriddenContextProps[key];\n\t\t\t\t}\n\t\t\t\tif (!staticConfig.context) contextForOverride = contextForProps;\n\t\t\t}\n\t\t}\n\t\tconst groupContext = groupName || isContainer ? allGroupContexts?.[groupName ?? \"@\"] || null : null;\n\t\tif (!isPassthrough && groupContext && isContainer) {\n\t\t\tconst groupState = groupContext?.state;\n\t\t\tif (groupState && groupState.layout === void 0) {\n\t\t\t\tif (splitStyles.style?.width || splitStyles.style?.height) groupState.layout = {\n\t\t\t\t\twidth: fromPx(splitStyles.style.width),\n\t\t\t\t\theight: fromPx(splitStyles.style.height)\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\tconst hasEnterExitTransition = props.transition && typeof props.transition === \"object\" && !Array.isArray(props.transition) && (\"enter\" in props.transition || \"exit\" in props.transition);\n\t\tif (!isPassthrough && (hasAnimationProp || groupName || platformPseudo) && animationDriver?.avoidReRenders && !hasEnterExitTransition) {\n\t\t\tlet updateGroupListeners = function() {\n\t\t\t\tconst updatedState = stateRef.current.nextState;\n\t\t\t\tif (groupContext) {\n\t\t\t\t\tconst { group, hasDynGroupChildren, unmounted, transition, ...childrenGroupState } = updatedState;\n\t\t\t\t\tnotifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst ogSetStateShallow = setStateShallow;\n\t\t\tstateRef.current.updateStyleListener = () => {\n\t\t\t\tconst useStyleListener = stateRef.current.useStyleListener;\n\t\t\t\tif (!useStyleListener) {\n\t\t\t\t\tconst pendingState = stateRef.current.nextState;\n\t\t\t\t\tif (pendingState) ogSetStateShallow(pendingState);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst updatedState = stateRef.current.nextState || state;\n\t\t\t\tconst mediaState2 = stateRef.current.nextMedia;\n\t\t\t\tconst nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? {\n\t\t\t\t\t...styleProps,\n\t\t\t\t\tmediaState: mediaState2\n\t\t\t\t} : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);\n\t\t\t\tconst effectiveTransition = nextStyles?.effectiveTransition ?? props.transition ?? (platformPseudo ? \"0ms\" : void 0);\n\t\t\t\tstateRef.current.prevPseudoState = extractPseudoState(updatedState);\n\t\t\t\tconst hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);\n\t\t\t\tuseStyleListener(nextStyles?.style || {}, effectiveTransition, hasActivePseudo);\n\t\t\t};\n\t\t\tcomponentContext.mediaEmitListeners = componentContext.mediaEmitListeners || /* @__PURE__ */ new Set();\n\t\t\tif (!stateRef.current.mediaEmitCleanup) {\n\t\t\t\tconst updateListener = (next) => {\n\t\t\t\t\tstateRef.current.nextMedia = next;\n\t\t\t\t\tstateRef.current.updateStyleListener?.();\n\t\t\t\t};\n\t\t\t\tcomponentContext.mediaEmitListeners.add(updateListener);\n\t\t\t\tstateRef.current.mediaEmitCleanup = () => {\n\t\t\t\t\tcomponentContext.mediaEmitListeners?.delete(updateListener);\n\t\t\t\t};\n\t\t\t}\n\t\t\tcomponentContext.mediaEmit = componentContext.mediaEmit || ((next) => {\n\t\t\t\tfor (const listener of componentContext.mediaEmitListeners) listener(next);\n\t\t\t});\n\t\t\tstateRef.current.setStateShallow = (nextOrGetNext) => {\n\t\t\t\tconst prev = stateRef.current.nextState || state;\n\t\t\t\tconst next = typeof nextOrGetNext === \"function\" ? nextOrGetNext(prev) : nextOrGetNext;\n\t\t\t\tif (next === prev || isEqualShallow(prev, next)) return;\n\t\t\t\tlet canAvoidReRender = true;\n\t\t\t\tfor (const key in next) if (!avoidReRenderKeys.has(key)) {\n\t\t\t\t\tcanAvoidReRender = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tconst updatedState = {\n\t\t\t\t\t...prev,\n\t\t\t\t\t...next\n\t\t\t\t};\n\t\t\t\tstateRef.current.nextState = updatedState;\n\t\t\t\tif (canAvoidReRender) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\" && debugProp && debugProp !== \"profile\") {\n\t\t\t\t\t\tconsole.groupCollapsed(`[\\u26A1\\uFE0F] avoid setState`, displayName, next, {\n\t\t\t\t\t\t\tupdatedState,\n\t\t\t\t\t\t\tprops\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconsole.info(stateRef.current.host);\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t}\n\t\t\t\t\tupdateGroupListeners();\n\t\t\t\t\tstateRef.current.updateStyleListener?.();\n\t\t\t\t} else {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\" && debugProp && debugProp !== \"profile\") console.info(`[\\u{1F40C}] re-render`, {\n\t\t\t\t\t\tcanAvoidReRender,\n\t\t\t\t\t\tnext\n\t\t\t\t\t});\n\t\t\t\t\togSetStateShallow(next);\n\t\t\t\t}\n\t\t\t};\n\t\t\tsetStateShallow = (state2) => {\n\t\t\t\tstateRef.current.setStateShallow?.(state2);\n\t\t\t};\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`split-styles`;\n\t\tif (splitStyles) {\n\t\t\tif (props.group && props.untilMeasured === \"hide\" && !stateRef.current.hasMeasured) {\n\t\t\t\tsplitStyles.style = splitStyles.style || {};\n\t\t\t\tsplitStyles.style.opacity = 0;\n\t\t\t}\n\t\t}\n\t\tconst hasRuntimeMediaKeys = splitStyles?.hasMedia && splitStyles.hasMedia !== true;\n\t\tconst shouldListenForMedia = didGetVariableValue() || hasRuntimeMediaKeys || noClass && splitStyles?.hasMedia === true;\n\t\tconst mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;\n\t\tif (process.env.NODE_ENV === \"development\" && debugProp === \"verbose\") console.info(`useMedia() createComponent`, shouldListenForMedia, mediaListeningKeys);\n\t\tsetMediaShouldUpdate(stateRef.current, shouldListenForMedia, mediaListeningKeys, stateRef.current.optimizeForFirstRender);\n\t\tconst { viewProps: viewPropsIn, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};\n\t\tconst groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);\n\t\tconst propsWithAnimation = props;\n\t\tconst { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp, ...nonTamaguiProps } = viewPropsIn || {};\n\t\tlet viewProps = nonTamaguiProps;\n\t\tif (props.forceStyle) viewProps.forceStyle = props.forceStyle;\n\t\tif (isHOC) {\n\t\t\tif (typeof _themeProp !== \"undefined\") viewProps.theme = _themeProp;\n\t\t\tif (typeof passThrough !== \"undefined\") viewProps.passThrough = passThrough;\n\t\t\tif (typeof asChild !== \"undefined\") viewProps.asChild = asChild;\n\t\t\tif (typeof onTransition !== \"undefined\") viewProps.onTransition = onTransition;\n\t\t}\n\t\tlet animationStyles;\n\t\tconst shouldUseAnimation = (inputStyle === \"css\" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;\n\t\tlet animatedRef;\n\t\tif (shouldUseAnimation) {\n\t\t\tconst useStyleEmitter = animationDriver?.avoidReRenders ? (listener) => {\n\t\t\t\tstateRef.current.useStyleListener = listener;\n\t\t\t} : void 0;\n\t\t\tconst effectiveTransition = splitStyles?.effectiveTransition ?? props.transition ?? (platformPseudo ? \"0ms\" : void 0);\n\t\t\tif (splitStyles) splitStyles.effectiveTransition = effectiveTransition;\n\t\t\tstateRef.current.prevPseudoState = extractPseudoState(state);\n\t\t\tconst animations = useAnimations({\n\t\t\t\tprops: propsWithAnimation,\n\t\t\t\tstyle: isHydrated ? splitStylesStyle || {} : { ...splitStylesStyle },\n\t\t\t\tstyleState: splitStyles,\n\t\t\t\tuseStyleEmitter,\n\t\t\t\tpresence,\n\t\t\t\tcomponentState: state,\n\t\t\t\tstyleProps,\n\t\t\t\ttheme,\n\t\t\t\tthemeName,\n\t\t\t\tstaticConfig,\n\t\t\t\tstateRef,\n\t\t\t\tonTransition\n\t\t\t});\n\t\t\tif (animations) {\n\t\t\t\tif (animations.ref) animatedRef = animations.ref;\n\t\t\t\tif (isHydrated && animations) {\n\t\t\t\t\tanimationStyles = animations.style;\n\t\t\t\t\tviewProps.style = animationStyles;\n\t\t\t\t\tif (animations.className) viewProps.className = `${state.unmounted === \"should-enter\" ? \"t_unmounted \" : \"\"}${viewProps.className || \"\"} ${animations.className}`;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && time) time`animations`;\n\t\t}\n\t\tif (isWeb && isExiting) viewProps.className = `t_exiting ${viewProps.className || \"\"}`;\n\t\tif (process.env.NODE_ENV === \"development\" && props.untilMeasured && !isContainer) console.warn(`You set untilMeasured without establishing a container. Set it on the parent with container or container=\"name\", not on the child using a container clause.`);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`destructure`;\n\t\tif (!isPassthrough && groupContext && isContainer) nonTamaguiProps.onLayout = composeEventHandlers(nonTamaguiProps.onLayout, (e) => {\n\t\t\tconst layout = e.nativeEvent.layout;\n\t\t\tgroupContext.state.layout = layout;\n\t\t\tstateRef.current.group?.emit({ layout });\n\t\t\tif (!stateRef.current.hasMeasured && props.untilMeasured === \"hide\") setState((prev) => ({ ...prev }));\n\t\t\tstateRef.current.hasMeasured = true;\n\t\t});\n\t\tviewProps = hooks.usePropsTransform?.(elementType, nonTamaguiProps, stateRef, stateRef.current.willHydrate) || nonTamaguiProps;\n\t\tstateRef.current.composedForwardedRef = forwardedRef;\n\t\tif (!stateRef.current.composedRef) stateRef.current.composedRef = composeRefs((x) => {\n\t\t\tstateRef.current.host = x;\n\t\t\tconst current = stateRef.current.composedForwardedRef;\n\t\t\tstateRef.current.attachedForwardedRef = x ? current : void 0;\n\t\t\tsetRef(current, x);\n\t\t}, setElementProps, animatedRef);\n\t\tviewProps.ref = stateRef.current.composedRef;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tconst attached = stateRef.current.attachedForwardedRef;\n\t\t\tif (attached === forwardedRef) return;\n\t\t\tif (attached) setRef(attached, null);\n\t\t\tstateRef.current.attachedForwardedRef = forwardedRef;\n\t\t\tif (stateRef.current.host) setRef(forwardedRef, stateRef.current.host);\n\t\t}, [forwardedRef]);\n\t\tusePointerEvents(props, viewProps);\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (!isText && isWeb && !isHOC) React.Children.toArray(props.children).forEach((item) => {\n\t\t\t\tif (typeof item === \"string\" && item !== \"\\n\") console.error(`Unexpected text node: ${item}. A text node cannot be a child of a <${displayName || propsIn.tag || \"View\"}>.`, props);\n\t\t\t});\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`events-hooks`;\n\t\tconst unPress = () => {\n\t\t\tsetStateShallow({\n\t\t\t\tpress: false,\n\t\t\t\tpressIn: false\n\t\t\t});\n\t\t};\n\t\tif (process.env.NODE_ENV === \"development\" && isWeb) useIsomorphicLayoutEffect(() => {\n\t\t\tif (debugProp === \"verbose\") {\n\t\t\t\tlet cssStyleDeclarationToObject = function(style) {\n\t\t\t\t\tconst styleObject = {};\n\t\t\t\t\tfor (let i = 0; i < style.length; i++) {\n\t\t\t\t\t\tlet prop = style[i];\n\t\t\t\t\t\tstyleObject[prop] = style.getPropertyValue(prop);\n\t\t\t\t\t}\n\t\t\t\t\treturn styleObject;\n\t\t\t\t};\n\t\t\t\tconst computed = stateRef.current.host ? cssStyleDeclarationToObject(getComputedStyle(stateRef.current.host)) : {};\n\t\t\t\tconsole.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`);\n\t\t\t\tconsole.warn(stateRef.current.host);\n\t\t\t\tconsole.warn(computed);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t});\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tif (state.unmounted === true && hasEnterStyle) {\n\t\t\t\tsetStateShallow({ unmounted: \"should-enter\" });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (state.unmounted) {\n\t\t\t\tif (inputStyle === \"css\") {\n\t\t\t\t\tlet cancelled = false;\n\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\tif (cancelled) return;\n\t\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\t\tif (cancelled) return;\n\t\t\t\t\t\t\tsetStateShallow({ unmounted: false });\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tcancelled = true;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tsetStateShallow({ unmounted: false });\n\t\t\t}\n\t\t}, [state.unmounted, inputStyle]);\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\treturn () => {\n\t\t\t\tcomponentSetStates.delete(setState);\n\t\t\t\tstateRef.current.mediaEmitCleanup?.();\n\t\t\t\tstateRef.current.mediaEmitCleanup = void 0;\n\t\t\t};\n\t\t}, []);\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tlet disposeSafeArea;\n\t\t\tif (splitStyles?.usesSafeArea) {\n\t\t\t\tconst updateSafeArea = () => {\n\t\t\t\t\tsetState((previous) => ({ ...previous }));\n\t\t\t\t};\n\t\t\t\tdisposeSafeArea = subscribeToSafeArea(updateSafeArea);\n\t\t\t}\n\t\t\tif (disabled) return disposeSafeArea;\n\t\t\tif (!pseudoGroups && !mediaGroups) return disposeSafeArea;\n\t\t\tif (!allGroupContexts) return disposeSafeArea;\n\t\t\tconst disposeGroup = subscribeToContextGroup({\n\t\t\t\tgroupContext: allGroupContexts,\n\t\t\t\tsetStateShallow,\n\t\t\t\tmediaGroups,\n\t\t\t\tpseudoGroups\n\t\t\t});\n\t\t\tif (!disposeSafeArea) return disposeGroup;\n\t\t\treturn () => {\n\t\t\t\tdisposeSafeArea();\n\t\t\t\tdisposeGroup?.();\n\t\t\t};\n\t\t}, [\n\t\t\tallGroupContexts,\n\t\t\tdisabled,\n\t\t\tsplitStyles?.usesSafeArea,\n\t\t\tgroupSetRevision\n\t\t]);\n\t\tconst groupEmitter = stateRef.current.group;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tif (!groupContext || !groupEmitter) return;\n\t\t\tnotifyGroupSubscribers(groupContext, groupEmitter, state);\n\t\t}, [\n\t\t\tgroupContext,\n\t\t\tgroupEmitter,\n\t\t\tstate\n\t\t]);\n\t\tconst conditionalStates = !disabled ? splitStyles?.programStates : void 0;\n\t\tconst runtimePressStyle = !disabled && (conditionalStates?.has(\"press\") || conditionalStates?.has(\"active\"));\n\t\tconst runtimeFocusStyle = !disabled && conditionalStates?.has(\"focus\");\n\t\tconst runtimeFocusVisibleStyle = !disabled && conditionalStates?.has(\"focus-visible\");\n\t\tconst attachFocus = Boolean(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur || !!componentContext.setParentFocusState);\n\t\tconst hasDynamicGroupChildren = Boolean(groupName && state.hasDynGroupChildren);\n\t\tconst attachPress = Boolean(hasDynamicGroupChildren || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick);\n\t\tconst runtimeHoverStyle = !disabled && conditionalStates?.has(\"hover\");\n\t\tconst needsHoverState = Boolean(hasDynamicGroupChildren || runtimeHoverStyle && !platformPseudo);\n\t\tconst attachHover = (isWeb || isNativeDesktop) && !!(hasDynamicGroupChildren || needsHoverState || onMouseEnter || onMouseLeave);\n\t\tconst shouldAttach = !disabled && !props.asChild && Boolean(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);\n\t\tconst needsPressState = Boolean(hasDynamicGroupChildren || runtimePressStyle);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`events-setup`;\n\t\tif (process.env.NODE_ENV === \"development\" && debugProp === \"verbose\") log(`\\u{1FAA9} events()`, {\n\t\t\truntimeFocusStyle,\n\t\t\truntimePressStyle,\n\t\t\truntimeHoverStyle,\n\t\t\truntimeFocusVisibleStyle,\n\t\t\tattachPress,\n\t\t\tattachFocus,\n\t\t\tattachHover,\n\t\t\tshouldAttach,\n\t\t\tneedsHoverState\n\t\t});\n\t\tconst events = shouldAttach ? {\n\t\t\tonPressOut: attachPress ? (e) => {\n\t\t\t\tunPress();\n\t\t\t\tonPressOut?.(e);\n\t\t\t\tonMouseUp?.(e);\n\t\t\t} : void 0,\n\t\t\t...(attachHover || attachPress) && {\n\t\t\t\tonMouseEnter: (e) => {\n\t\t\t\t\tconst next = {};\n\t\t\t\t\tif (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;\n\t\t\t\t\tif (needsPressState) {\n\t\t\t\t\t\tif (state.pressIn) next.press = true;\n\t\t\t\t\t}\n\t\t\t\t\tsetStateShallow(next);\n\t\t\t\t\tonHoverIn?.(e);\n\t\t\t\t\tonMouseEnter?.(e);\n\t\t\t\t},\n\t\t\t\tonMouseLeave: (e) => {\n\t\t\t\t\tconst next = {};\n\t\t\t\t\tif (needsHoverState) next.hover = false;\n\t\t\t\t\tif (needsPressState) {\n\t\t\t\t\t\tnext.press = false;\n\t\t\t\t\t\tnext.pressIn = false;\n\t\t\t\t\t}\n\t\t\t\t\tsetStateShallow(next);\n\t\t\t\t\tonHoverOut?.(e);\n\t\t\t\t\tonMouseLeave?.(e);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonPressIn: attachPress ? (e) => {\n\t\t\t\tif (needsPressState) setStateShallow({\n\t\t\t\t\tpress: true,\n\t\t\t\t\tpressIn: true\n\t\t\t\t});\n\t\t\t\tonPressIn?.(e);\n\t\t\t\tonMouseDown?.(e);\n\t\t\t\tif (isWeb) componentSetStates.add(setState);\n\t\t\t} : void 0,\n\t\t\tonPress: attachPress ? (e) => {\n\t\t\t\tunPress();\n\t\t\t\tonClick?.(e);\n\t\t\t\tif (onPress || onClick) e.stopPropagation();\n\t\t\t\tonPress?.(e);\n\t\t\t\tonLongPress?.(e);\n\t\t\t} : void 0,\n\t\t\t...attachFocus && {\n\t\t\t\tonFocus: (e) => {\n\t\t\t\t\tconst next = {};\n\t\t\t\t\tif (componentContext.setParentFocusState) {\n\t\t\t\t\t\tcomponentContext.setParentFocusState({ focusWithin: true });\n\t\t\t\t\t\tnext.focusWithin = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (conditionalStates?.has(\"focus-visible\")) if (lastInteractionWasKeyboard.value) next.focusVisible = true;\n\t\t\t\t\telse next.focus = true;\n\t\t\t\t\telse next.focus = true;\n\t\t\t\t\tsetStateShallow(next);\n\t\t\t\t\tonFocus?.(e);\n\t\t\t\t},\n\t\t\t\tonBlur: (e) => {\n\t\t\t\t\tif (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });\n\t\t\t\t\tsetStateShallow({\n\t\t\t\t\t\tfocus: false,\n\t\t\t\t\t\tfocusVisible: false,\n\t\t\t\t\t\tfocusWithin: false\n\t\t\t\t\t});\n\t\t\t\t\tonBlur?.(e);\n\t\t\t\t}\n\t\t\t}\n\t\t} : null;\n\t\tif (events) Object.assign(viewProps, getWebEvents(events));\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`events`;\n\t\tif (process.env.NODE_ENV === \"development\" && debugProp === \"verbose\") log(`events`, {\n\t\t\tevents,\n\t\t\tattachHover,\n\t\t\tattachPress\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`hooks`;\n\t\tif (asChild && !isHOC) {\n\t\t\telementType = Slot;\n\t\t\t{\n\t\t\t\tconst passEvents = getWebEvents({\n\t\t\t\t\tonPress,\n\t\t\t\t\tonLongPress,\n\t\t\t\t\tonPressIn,\n\t\t\t\t\tonPressOut,\n\t\t\t\t\tonMouseUp,\n\t\t\t\t\tonMouseDown,\n\t\t\t\t\tonMouseEnter,\n\t\t\t\t\tonMouseLeave,\n\t\t\t\t\tonFocus,\n\t\t\t\t\tonBlur\n\t\t\t\t}, asChild === \"web\" || asChild === \"except-style-web\");\n\t\t\t\tObject.assign(viewProps, passEvents);\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`spaced-as-child`;\n\t\tlet content;\n\t\tconst childrenFromHooks = hooks.useChildren ? hooks.useChildren(elementType, children, viewProps, isPassthrough) : void 0;\n\t\tif (isPassthrough) content = React.createElement(BaseComponent, { style: { display: \"contents\" } }, propsIn.children);\n\t\telse {\n\t\t\tif (childrenFromHooks) content = childrenFromHooks;\n\t\t\tconst isRenderPropString = typeof renderProp === \"string\";\n\t\t\tif (renderProp && !isRenderPropString) {\n\t\t\t\tconst out = getCustomRender(renderProp, content || children, viewProps, componentState);\n\t\t\t\tif (out) {\n\t\t\t\t\tviewProps = out.viewProps;\n\t\t\t\t\tif (isAnimatedCustomComponent && elementType[\"acceptRenderProp\"] && typeof out.elementType === \"string\") viewProps.render = out.elementType;\n\t\t\t\t\telse elementType = out.elementType;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!content) {\n\t\t\t\tif (isRenderPropString && elementType[\"acceptRenderProp\"]) viewProps.render = renderProp;\n\t\t\t\tcontent = React.createElement(elementType, viewProps, content || children);\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && time) time`use-children`;\n\t\t}\n\t\tconst ResetPresence = animationDriver?.isStub ? void 0 : animationDriver?.ResetPresence;\n\t\tconst needsReset = Boolean(!asChild && splitStyles && !isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState));\n\t\tconst hasEverReset = stateRef.current.hasEverResetPresence;\n\t\tif (needsReset && !hasEverReset) stateRef.current.hasEverResetPresence = true;\n\t\tif ((needsReset || hasEverReset) && ResetPresence) content = /* @__PURE__ */ jsx(ResetPresence, {\n\t\t\tdisabled: !needsReset,\n\t\t\tchildren: content\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`create-element`;\n\t\tif (conditionalStates?.has(\"focus-within\")) content = /* @__PURE__ */ jsx(ComponentContext.Provider, {\n\t\t\t...componentContext,\n\t\t\tsetParentFocusState: setStateShallow,\n\t\t\tchildren: content\n\t\t});\n\t\tif (groupName || isContainer) content = /* @__PURE__ */ jsx(GroupContext.Provider, {\n\t\t\tvalue: allGroupContexts,\n\t\t\tchildren: content\n\t\t});\n\t\tif (!asChild && isText && !hasTextAncestor) content = /* @__PURE__ */ jsx(ComponentContext.Provider, {\n\t\t\t...componentContext,\n\t\t\tinText: true,\n\t\t\tchildren: content\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`group-context`;\n\t\tcontent = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`themed-children`;\n\t\tif (overriddenContextProps && contextForOverride) {\n\t\t\tconst Provider = contextForOverride.Provider;\n\t\t\tfor (const key in styledContextValue) if (!(key in overriddenContextProps)) overriddenContextProps[key] = styledContextValue[key];\n\t\t\tcontent = /* @__PURE__ */ jsx(Provider, {\n\t\t\t\t__disableMergeDefaultValues: true,\n\t\t\t\t...overriddenContextProps,\n\t\t\t\tchildren: content\n\t\t\t});\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`context-override`;\n\t\tif (process.env.TAMAGUI_RUNTIME !== \"island\" && startedUnhydrated && splitStyles) content = /* @__PURE__ */ jsxs(Fragment, { children: [content, !isHydrated ? getStyleTags(Object.values(splitStyles.rulesToInsert)) : null] });\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`style-tags`;\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (debugProp && debugProp !== \"profile\") {\n\t\t\t\tconst title = `render <${typeof elementType === \"string\" ? elementType : \"Component\"} /> (${internalID}) with props`;\n\t\t\t\tif (!isWeb || !isClient) {\n\t\t\t\t\tlog(title);\n\t\t\t\t\tlog(`state: `, state);\n\t\t\t\t\tif (isDevTools) log(\"viewProps\", viewProps);\n\t\t\t\t\tlog(`final styles:`);\n\t\t\t\t\tfor (const key in splitStylesStyle) log(key, splitStylesStyle[key]);\n\t\t\t\t} else {\n\t\t\t\t\tconsole.groupCollapsed(title);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlog(\"viewProps\", viewProps);\n\t\t\t\t\t\tlog(\"children\", content);\n\t\t\t\t\t\tif (typeof window !== \"undefined\") log({\n\t\t\t\t\t\t\tpropsIn,\n\t\t\t\t\t\t\tprops,\n\t\t\t\t\t\t\tattachPress,\n\t\t\t\t\t\t\tanimationStyles,\n\t\t\t\t\t\t\tclassNames,\n\t\t\t\t\t\t\tcontent,\n\t\t\t\t\t\t\telementType,\n\t\t\t\t\t\t\tevents,\n\t\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\t\thasRuntimeMediaKeys,\n\t\t\t\t\t\t\tisStringElement,\n\t\t\t\t\t\t\tmediaListeningKeys,\n\t\t\t\t\t\t\tshouldAttach,\n\t\t\t\t\t\t\tnoClass,\n\t\t\t\t\t\t\tshouldListenForMedia,\n\t\t\t\t\t\t\tsplitStyles,\n\t\t\t\t\t\t\tsplitStylesStyle,\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\tstateRef,\n\t\t\t\t\t\t\tstaticConfig,\n\t\t\t\t\t\t\tstyleProps,\n\t\t\t\t\t\t\tthemeState,\n\t\t\t\t\t\t\tviewProps,\n\t\t\t\t\t\t\twillBeAnimated,\n\t\t\t\t\t\t\tstartedUnhydrated\n\t\t\t\t\t\t});\n\t\t\t\t\t} catch {} finally {\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) {\n\t\t\ttime`rest`;\n\t\t\tif (!globalThis[\"willPrint\"]) {\n\t\t\t\tglobalThis[\"willPrint\"] = true;\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdelete globalThis[\"willPrint\"];\n\t\t\t\t\ttime.print();\n\t\t\t\t\ttime = null;\n\t\t\t\t}, 50);\n\t\t\t}\n\t\t}\n\t\treturn content;\n\t};\n\tfunction notifyGroupSubscribers(groupContext, groupEmitter, pseudo) {\n\t\tif (!groupContext || !groupEmitter) return;\n\t\tconst prevPseudo = groupContext.state.pseudo;\n\t\tconst shouldReplacePseudo = !prevPseudo || \"unmounted\" in prevPseudo || \"group\" in prevPseudo || \"hasDynGroupChildren\" in prevPseudo || \"transition\" in prevPseudo;\n\t\tconst nextPseudo = shouldReplacePseudo ? {} : prevPseudo;\n\t\tlet didChange = shouldReplacePseudo;\n\t\tfor (let i = 0; i < groupPseudoKeys.length; i++) {\n\t\t\tconst key = groupPseudoKeys[i];\n\t\t\tconst value = pseudo[key];\n\t\t\tif (nextPseudo[key] !== value) {\n\t\t\t\tnextPseudo[key] = value;\n\t\t\t\tdidChange = true;\n\t\t\t} else if (didChange) nextPseudo[key] = value;\n\t\t}\n\t\tif (!didChange) return;\n\t\tgroupContext.state.pseudo = nextPseudo;\n\t\tgroupEmitter.emit(groupContext.state);\n\t}\n\tres = component;\n\tres = React.memo(res);\n\tres.staticConfig = staticConfig;\n\tres.resolve = (resolver) => {\n\t\tconst next = createComponent({\n\t\t\t...staticConfig,\n\t\t\tresolvers: staticConfig.resolvers ? [...staticConfig.resolvers, resolver] : [resolver]\n\t\t});\n\t\tfor (const key in res) {\n\t\t\tif (key === \"propTypes\" || key in next) continue;\n\t\t\tnext[key] = res[key];\n\t\t}\n\t\treturn next;\n\t};\n\tif (displayName) {\n\t\tres.displayName = displayName;\n\t\tres[componentDisplayName] = displayName;\n\t}\n\treturn res;\n}\nconst fromPx = (val) => {\n\tif (typeof val === \"number\") return val;\n\tif (typeof val === \"string\") return +val.replace(\"px\", \"\");\n\treturn 0;\n};\nconst getCustomRender = (renderProp, content, viewProps, state) => {\n\tif (typeof renderProp === \"function\") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));\n\tif (renderProp) {\n\t\tif (typeof renderProp === \"object\" && React.isValidElement(renderProp)) {\n\t\t\tif (getRenderElementForPlatform(renderProp)) {\n\t\t\t\tconst elementProps = renderProp.props;\n\t\t\t\tconst mergedProps = elementProps ? mergeRenderElementProps(elementProps, viewProps, content) : viewProps;\n\t\t\t\treturn {\n\t\t\t\t\telementType: renderProp.type,\n\t\t\t\t\tviewProps: mergedProps\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n};\nfunction getRenderElementForPlatform(potential) {\n\treturn potential;\n}\n\nexport { componentSetStates, createComponent };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAI,YAA4B,kBAAE,MAAM,uBAAmB,4BAAwB,OAAO,UAAU,cAAc,IAAI,MAAM,GAAG,EAAE,MAAM,GAAG,OAAO,uBAAmB,4BAAwB,EAAC,CAAE,GAAG,CAAC,IAAI,EAAC,CAAE,SAAS,GAAG;CACrN,IAAI,uBAAmB,aAAa,mBAAe,MAAM,MAAM,SAAS;CACxE,MAAM,MAAM,6BAA6B,IAAI,2JAA2J;AACzM,CAAC;AAED,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,MAAM,qCAAqC,IAAI,IAAI;AACnD,MAAM,oCAAoC,IAAI,IAAI;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,kBAAkB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AACA,IAAI,OAAO,WAAW,aAAa;CAClC,MAAM,sBAAsB;EAC3B,mBAAmB,SAAS,aAAa,UAAU,SAAS;GAC3D,IAAI,KAAK,SAAS,KAAK,SAAS,OAAO;IACtC,G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jB;EACA,OAAO;CACR;CACA,IAAI,aAAa;EAChB,IAAI,cAAc;EAClB,IAAI,wBAAwB;CAC7B;CACA,OAAO;AACR;AACA,MAAM,UAAU,QAAQ;CACvB,IAAI,OAAO,QAAQ,UAAU,OAAO;CACpC,IAAI,OAAO,QAAQ,UAAU,OAAO,CAAC,IAAI,QAAQ,MAAM,EAAE;CACzD,OAAO;AACR;AACA,MAAM,mBAAmB,YAAY,SAAS,WAAW,UAAU;CAClE,IAAI,OAAO,eAAe,YAAY,aAAa,4BAA4B,WAAW,WAAW,KAAK,CAAC;CAC3G,IAAI,YAAY;EACf,IAAI,OAAO,eAAe,YAAY,MAAM,eAAe,UAAU,GAAG;GACvE,IAAI,4BAA4B,UAAU,GAAG;IAC5C,MAAM,eAAe,WAAW;IAChC,MAAM,cAAc,eAAe,wBAAwB,cAAc,WAAW,OAAO,IAAI;IAC/F,OAAO;KACN,aAAa,WAAW;KACxB,WAAW;IACZ;GACD;EACD;CACD;AACD;AACA,SAAS,4BAA4B,WAAW;CAC/C,OAAO;AACR"}
1
+ {"version":3,"file":"createComponent.js","names":[],"sources":["esm/createComponent.js"],"sourcesContent":["import { composeRefs, setRef } from \"@tamagui/compose-refs\";\nimport { getPlatformDriver, isClient, isNativeDesktop, isServer, isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { composeEventHandlers } from \"@tamagui/helpers\";\nimport { isEqualShallow } from \"@tamagui/is-equal-shallow\";\nimport React, { useMemo } from \"react\";\nimport { devConfig, getConfig } from \"./config\";\nimport { isDevTools } from \"./constants/isDevTools\";\nimport { ComponentContext } from \"./contexts/ComponentContext\";\nimport { GroupContext } from \"./contexts/GroupContext\";\nimport { didGetVariableValue, setDidGetVariableValue } from \"./createVariable\";\nimport { defaultComponentStateMounted } from \"./defaultComponentState\";\nimport { getWebEvents } from \"./eventHandling\";\nimport { componentDisplayName } from \"./helpers/componentDisplayName\";\nimport { getSplitStyles } from \"./helpers/getSplitStyles\";\nimport { getConfigRevisionState } from \"./helpers/grammarConfig\";\nimport { getStyleStaticConfig } from \"./helpers/styleStaticConfig\";\nimport { log } from \"./helpers/log\";\nimport { mergeComponentProps } from \"./helpers/mergeProps\";\nimport { mergeRenderElementProps } from \"./helpers/mergeRenderElementProps\";\nimport { usePointerEvents } from \"./helpers/pointerEvents\";\nimport { extractPseudoState } from \"./helpers/extractPseudoState\";\nimport { subscribeToSafeArea } from \"./helpers/resolveSafeAreaVariable\";\nimport { setElementProps } from \"./helpers/setElementProps\";\nimport { subscribeToContextGroup, useGroupSetRevision } from \"./helpers/subscribeToContextGroup\";\nimport { getStyleTags } from \"./helpers/wrapStyleTags\";\nimport { useComponentState } from \"./hooks/useComponentState\";\nimport { useSplitStyles } from \"./hooks/useSplitStyles\";\nimport { setMediaShouldUpdate, useMedia } from \"./hooks/useMedia\";\nimport { useThemeWithState } from \"./hooks/useTheme\";\nimport { hooks } from \"./setupHooks\";\nimport { Slot } from \"./views/Slot\";\nimport { getThemedChildren } from \"./views/Theme\";\nimport { Fragment, jsx, jsxs } from \"react/jsx-runtime\";\n\nlet time;\nlet debugKeyListeners;\nlet startVisualizer;\nconst componentSetStates = /* @__PURE__ */ new Set();\nconst avoidReRenderKeys = /* @__PURE__ */ new Set([\n\t\"hover\",\n\t\"press\",\n\t\"pressIn\",\n\t\"group\",\n\t\"focus\",\n\t\"focusWithin\",\n\t\"media\"\n]);\nconst groupPseudoKeys = [\n\t\"disabled\",\n\t\"hover\",\n\t\"press\",\n\t\"pressIn\",\n\t\"focus\",\n\t\"focusVisible\",\n\t\"focusWithin\"\n];\nif (typeof window !== \"undefined\") {\n\tconst cancelPresses = () => {\n\t\tcomponentSetStates.forEach((setState) => setState((prev) => {\n\t\t\tif (prev.press || prev.pressIn) return {\n\t\t\t\t...prev,\n\t\t\t\tpress: false,\n\t\t\t\tpressIn: false\n\t\t\t};\n\t\t\treturn prev;\n\t\t}));\n\t\tcomponentSetStates.clear();\n\t};\n\tconst cancelTouches = () => {\n\t\tcomponentSetStates.forEach((setState) => setState((prev) => {\n\t\t\tif (prev.press || prev.pressIn || prev.hover) return {\n\t\t\t\t...prev,\n\t\t\t\tpress: false,\n\t\t\t\tpressIn: false,\n\t\t\t\thover: false\n\t\t\t};\n\t\t\treturn prev;\n\t\t}));\n\t\tcomponentSetStates.clear();\n\t};\n\taddEventListener(\"mouseup\", cancelPresses);\n\taddEventListener(\"touchend\", cancelTouches);\n\taddEventListener(\"touchcancel\", cancelTouches);\n\tif (process.env.NODE_ENV === \"development\") startVisualizer = () => {\n\t\tconst devVisualizerConfig = devConfig?.visualizer;\n\t\tif (devVisualizerConfig && !globalThis.__tamaguiDevVisualizer) {\n\t\t\tlet show = function(val) {\n\t\t\t\tclearTimeout(tm);\n\t\t\t\tisShowing = val;\n\t\t\t\tdebugKeyListeners?.forEach((l) => l(val));\n\t\t\t\tif (!val && resizeListener) {\n\t\t\t\t\twindow.removeEventListener(\"resize\", resizeListener);\n\t\t\t\t\tresizeListener = null;\n\t\t\t\t}\n\t\t\t}, cancelShow = function() {\n\t\t\t\tclearTimeout(tm);\n\t\t\t\tif (resizeListener) {\n\t\t\t\t\twindow.removeEventListener(\"resize\", resizeListener);\n\t\t\t\t\tresizeListener = null;\n\t\t\t\t}\n\t\t\t};\n\t\t\tglobalThis.__tamaguiDevVisualizer = true;\n\t\t\tdebugKeyListeners = /* @__PURE__ */ new Set();\n\t\t\tlet tm;\n\t\t\tlet isShowing = false;\n\t\t\tlet resizeListener = null;\n\t\t\tconst options = {\n\t\t\t\tkey: \"Alt\",\n\t\t\t\tdelay: 800,\n\t\t\t\t...typeof devVisualizerConfig === \"object\" ? devVisualizerConfig : {}\n\t\t\t};\n\t\t\twindow.addEventListener(\"blur\", () => {\n\t\t\t\tshow(false);\n\t\t\t});\n\t\t\twindow.addEventListener(\"keydown\", ({ key, metaKey, defaultPrevented }) => {\n\t\t\t\tclearTimeout(tm);\n\t\t\t\tif (defaultPrevented) return;\n\t\t\t\tif (metaKey) return;\n\t\t\t\tif (key === options.key) {\n\t\t\t\t\tif (!resizeListener) {\n\t\t\t\t\t\tresizeListener = () => cancelShow();\n\t\t\t\t\t\twindow.addEventListener(\"resize\", resizeListener);\n\t\t\t\t\t}\n\t\t\t\t\ttm = setTimeout(() => {\n\t\t\t\t\t\tshow(true);\n\t\t\t\t\t}, options.delay);\n\t\t\t\t}\n\t\t\t});\n\t\t\twindow.addEventListener(\"keyup\", ({ defaultPrevented }) => {\n\t\t\t\tif (defaultPrevented) return;\n\t\t\t\tcancelShow();\n\t\t\t\tif (isShowing) show(false);\n\t\t\t});\n\t\t}\n\t};\n}\nconst lastInteractionWasKeyboard = { value: false };\nconst lastInteractionWasTouch = { value: false };\nif (isWeb && typeof document !== \"undefined\") {\n\tdocument.addEventListener(\"keydown\", () => {\n\t\tif (!lastInteractionWasKeyboard.value) lastInteractionWasKeyboard.value = true;\n\t});\n\tdocument.addEventListener(\"mousedown\", () => {\n\t\tif (lastInteractionWasKeyboard.value) lastInteractionWasKeyboard.value = false;\n\t});\n\tdocument.addEventListener(\"mousemove\", () => {\n\t\tif (lastInteractionWasKeyboard.value) lastInteractionWasKeyboard.value = false;\n\t\tlastInteractionWasTouch.value = false;\n\t});\n\tdocument.addEventListener(\"touchstart\", () => {\n\t\tlastInteractionWasTouch.value = true;\n\t});\n}\nfunction createComponent(staticConfig) {\n\tif (process.env.TAMAGUI_RUNTIME === \"zero\") throw new Error(process.env.NODE_ENV !== \"production\" ? `[tamagui zero-runtime] createComponent ran in a zero-runtime graph. No Tamagui component renderer ships in this mode, so a component reference survived compilation. Fix the site or move the owning module to a declared full-runtime island.` : \"❌ Error 010\");\n\tlet config = null;\n\tlet resolvedDefaultProps;\n\tlet resolvedStyleRevision = -1;\n\tlet resolvedStyleStaticConfig;\n\tconst { Component, isText, isHOC } = staticConfig;\n\tlet res;\n\tconst { displayName } = staticConfig;\n\tconst component = (propsInWithRef) => {\n\t\t\"use no memo\";\n\t\tconst forwardedRef = propsInWithRef.ref;\n\t\tconst propsIn = propsInWithRef;\n\t\tconfig = config || getConfig();\n\t\tconst styleRevision = getConfigRevisionState(config).revision;\n\t\tif (resolvedStyleRevision !== styleRevision) {\n\t\t\tresolvedStyleRevision = styleRevision;\n\t\t\tconst nextStyleStaticConfig = getStyleStaticConfig(staticConfig, config);\n\t\t\tresolvedStyleStaticConfig = nextStyleStaticConfig;\n\t\t\tresolvedDefaultProps = nextStyleStaticConfig.defaultProps;\n\t\t\tif (isWeb && !staticConfig.isText && config.settings.defaultPosition === \"relative\" && nextStyleStaticConfig.baseStyle?.position === void 0) resolvedStyleStaticConfig = {\n\t\t\t\t...nextStyleStaticConfig,\n\t\t\t\tbaseStyle: {\n\t\t\t\t\tposition: \"relative\",\n\t\t\t\t\t...nextStyleStaticConfig.baseStyle\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\tconst styleStaticConfig = resolvedStyleStaticConfig;\n\t\tstyleStaticConfig.styledContextKeys;\n\t\tconst internalID = process.env.NODE_ENV === \"development\" ? React.useId() : \"\";\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (startVisualizer) {\n\t\t\t\tstartVisualizer();\n\t\t\t\tstartVisualizer = void 0;\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"test\") {\n\t\t\tconst testRenderCount = propsIn[\"data-test-renders\"];\n\t\t\tif (testRenderCount && typeof testRenderCount === \"object\" && !Object.isFrozen(testRenderCount)) {\n\t\t\t\ttestRenderCount.current = testRenderCount.current ?? 0;\n\t\t\t\ttestRenderCount.current += 1;\n\t\t\t}\n\t\t}\n\t\tconst { context } = staticConfig;\n\t\tconst debugProp = propsIn[\"debug\"];\n\t\tconst styledContextValue = context ? React.useContext(context) : void 0;\n\t\tlet overriddenContextProps = null;\n\t\tconst componentContext = React.useContext(ComponentContext);\n\t\tconst hasTextAncestor = !!(isWeb && isText ? componentContext.inText : false);\n\t\tif (process.env.NODE_ENV === \"development\" && !time && globalThis.time) time = globalThis.time;\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`non-tamagui time (ignore)`;\n\t\tlet props = propsIn;\n\t\tconst [nextProps, overrides] = mergeComponentProps(resolvedDefaultProps, styledContextValue, propsIn);\n\t\tprops = nextProps;\n\t\toverriddenContextProps = overrides;\n\t\tif (process.env.NODE_ENV === \"development\" && isClient) React.useEffect(() => {\n\t\t\tlet node;\n\t\t\tlet overlay = null;\n\t\t\tconst remove = () => {\n\t\t\t\tif (overlay) try {\n\t\t\t\t\toverlay.parentNode?.removeChild(overlay);\n\t\t\t\t\toverlay = null;\n\t\t\t\t} catch {}\n\t\t\t};\n\t\t\tconst debugVisualizerHandler = (show = false) => {\n\t\t\t\tnode = stateRef.current.host;\n\t\t\t\tif (!node) return;\n\t\t\t\tif (show) {\n\t\t\t\t\tif (!overlay) {\n\t\t\t\t\t\toverlay = document.createElement(\"span\");\n\t\t\t\t\t\toverlay.style.inset = \"0px\";\n\t\t\t\t\t\toverlay.style.zIndex = \"1000000\";\n\t\t\t\t\t\toverlay.style.position = \"absolute\";\n\t\t\t\t\t\toverlay.style.borderColor = \"red\";\n\t\t\t\t\t\toverlay.style.borderWidth = \"1px\";\n\t\t\t\t\t\toverlay.style.borderStyle = \"dotted\";\n\t\t\t\t\t}\n\t\t\t\t\tconst dataAt = node.getAttribute(\"data-at\") || \"\";\n\t\t\t\t\tconst dataIn = node.getAttribute(\"data-in\") || \"\";\n\t\t\t\t\tconst tooltip = document.createElement(\"span\");\n\t\t\t\t\ttooltip.style.position = \"absolute\";\n\t\t\t\t\ttooltip.style.top = \"0px\";\n\t\t\t\t\ttooltip.style.left = \"0px\";\n\t\t\t\t\ttooltip.style.padding = \"3px\";\n\t\t\t\t\ttooltip.style.background = \"rgba(0,0,0,0.75)\";\n\t\t\t\t\ttooltip.style.color = \"rgba(255,255,255,1)\";\n\t\t\t\t\ttooltip.style.fontSize = \"12px\";\n\t\t\t\t\ttooltip.style.lineHeight = \"12px\";\n\t\t\t\t\ttooltip.style.fontFamily = \"monospace\";\n\t\t\t\t\ttooltip.innerText = `${displayName || \"\"} ${dataAt} ${dataIn}`.trim();\n\t\t\t\t\toverlay.appendChild(tooltip);\n\t\t\t\t\tnode.appendChild(overlay);\n\t\t\t\t} else remove();\n\t\t\t};\n\t\t\tdebugKeyListeners = debugKeyListeners || /* @__PURE__ */ new Set();\n\t\t\tdebugKeyListeners.add(debugVisualizerHandler);\n\t\t\treturn () => {\n\t\t\t\tremove();\n\t\t\t\tdebugKeyListeners?.delete(debugVisualizerHandler);\n\t\t\t};\n\t\t}, [displayName]);\n\t\tconst groupContextParent = React.useContext(GroupContext);\n\t\tconst animationDriver = (() => {\n\t\t\tif (props.animatedBy && config) {\n\t\t\t\tif (config.animationDrivers) return props.animatedBy in config.animationDrivers ? config.animationDrivers[props.animatedBy] : config.animations;\n\t\t\t\treturn props.animatedBy === \"default\" ? config.animations : null;\n\t\t\t}\n\t\t\treturn componentContext.animationDriver ?? config?.animations ?? null;\n\t\t})();\n\t\tconst useAnimations = animationDriver?.isStub ? void 0 : animationDriver?.useAnimations;\n\t\tconst componentState = useComponentState(props, animationDriver?.isStub ? null : animationDriver, staticConfig, config);\n\t\tconst { disabled, hasAnimationProp, isExiting, isHydrated, presence, presenceState, setState, noClass, state, stateRef, inputStyle, outputStyle, startedUnhydrated } = componentState;\n\t\tlet { groupName } = componentState;\n\t\tlet { hasEnterStyle, isAnimated, willBeAnimated, willBeAnimatedClient, platformPseudo } = componentState;\n\t\tprops = componentState.props;\n\t\tstateRef.current.avoidReRenders ??= !!animationDriver?.avoidReRenders;\n\t\tif (stateRef.current.avoidReRenders) useIsomorphicLayoutEffect(() => {\n\t\t\tconst emitted = stateRef.current.prevPseudoState;\n\t\t\tif (emitted && (emitted.hover || emitted.press || emitted.focus)) stateRef.current.updateStyleListener?.();\n\t\t\tconst pendingState = stateRef.current.nextState;\n\t\t\tif (!pendingState) return;\n\t\t\tstateRef.current.nextState = void 0;\n\t\t\tif (!isEqualShallow(state, pendingState)) componentState.setStateShallow(pendingState);\n\t\t});\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tif (!platformPseudo || props.disabled) return;\n\t\t\tconst pseudoDriver = getPlatformDriver()?.pseudo;\n\t\t\tconst host = stateRef.current.host;\n\t\t\tif (!pseudoDriver || !host) return;\n\t\t\treturn pseudoDriver.subscribe(host, ({ hovered }) => {\n\t\t\t\tstateRef.current.setStateShallow?.({ hover: hovered });\n\t\t\t});\n\t\t}, [platformPseudo, props.disabled]);\n\t\tlet setStateShallow = componentState.setStateShallow;\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`use-state`;\n\t\tconst renderProp = props.render;\n\t\tconst element = isWeb ? !Component || typeof Component === \"string\" ? renderProp || Component : Component : Component;\n\t\tconst BaseComponent = isText ? element || \"span\" : element || (hasTextAncestor ? \"span\" : \"div\");\n\t\tlet elementType = BaseComponent;\n\t\tconst isAnimatedCustomComponent = animationDriver && isAnimated && animationDriver.needsCustomComponent;\n\t\tif (isAnimatedCustomComponent) elementType = animationDriver[isText ? \"Text\" : \"View\"] || elementType;\n\t\tconst disableTheme = props[\"data-disable-theme\"] && !(\"theme\" in props) || isHOC;\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`theme-props`;\n\t\tconst themeStateProps = {\n\t\t\tdisable: disableTheme,\n\t\t\tshallow: props.themeShallow,\n\t\t\tdebug: debugProp\n\t\t};\n\t\tif (\"theme\" in props) themeStateProps.name = props.theme;\n\t\tif (!stateRef.current.optimizeForFirstRender) themeStateProps.needsUpdate = stateRef.current.themeNeedsUpdate || (stateRef.current.themeNeedsUpdate = () => !!stateRef.current.isListeningToTheme);\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (debugProp && debugProp !== \"profile\") {\n\t\t\t\tconst name = `${displayName || Component?.displayName || Component?.name || \"[Unnamed Component]\"}`;\n\t\t\t\tconst type = (hasEnterStyle ? \"(hasEnter)\" : \" \") + (isAnimated ? \"(animated)\" : \" \") + (noClass ? \"(noClass)\" : \" \") + (state.press || state.pressIn ? \"(PRESSED)\" : \" \") + (state.hover ? \"(HOVERED)\" : \" \") + (state.focus ? \"(FOCUSED)\" : \" \") + (state.focusWithin ? \"(WITHIN FOCUSED)\" : \" \") + (presenceState?.isPresent === false ? \"(EXIT)\" : \"\");\n\t\t\t\tconst dataIs = propsIn[\"data-is\"] || \"\";\n\t\t\t\tconst banner = `<${name} /> ${internalID} ${dataIs ? ` ${dataIs}` : \"\"} ${type.trim()} (hydrated: ${isHydrated}) (unmounted: ${state.unmounted})`;\n\t\t\t\tconst ch = propsIn.children;\n\t\t\t\tlet childLog = typeof ch === \"string\" ? ch.length > 4 ? ch.slice(0, 4) + \"...\" : ch : \"\";\n\t\t\t\tif (childLog.length) childLog = `(children: ${childLog})`;\n\t\t\t\tif (isWeb) {\n\t\t\t\t\tconsole.info(`%c ${banner}`, \"background: green; color: white;\");\n\t\t\t\t\tif (isServer) log({\n\t\t\t\t\t\tnoClass,\n\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\tisWeb,\n\t\t\t\t\t\tinputStyle\n\t\t\t\t\t});\n\t\t\t\t\telse {\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t\tconsole.groupCollapsed(`${childLog} [inspect props, state, context \\u{1F447}]`);\n\t\t\t\t\t\tlog(\"props in:\", propsIn);\n\t\t\t\t\t\tlog(\"final props:\", props);\n\t\t\t\t\t\tlog({\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\tstaticConfig,\n\t\t\t\t\t\t\telementType,\n\t\t\t\t\t\t\tthemeStateProps\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlog({\n\t\t\t\t\t\t\tcontext,\n\t\t\t\t\t\t\toverriddenContextProps,\n\t\t\t\t\t\t\tcomponentContext\n\t\t\t\t\t\t});\n\t\t\t\t\t\tlog({\n\t\t\t\t\t\t\tpresence,\n\t\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\t\tisHOC,\n\t\t\t\t\t\t\thasAnimationProp,\n\t\t\t\t\t\t\tuseAnimations\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tconsole.info(`\n\n------------------------------\n${banner}\n------------------------------\n`);\n\t\t\t\t\tlog(`children:`, props.children);\n\t\t\t\t\tlog({\n\t\t\t\t\t\toverriddenContextProps,\n\t\t\t\t\t\tstyledContextValue\n\t\t\t\t\t});\n\t\t\t\t\tlog({\n\t\t\t\t\t\tnoClass,\n\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\tisWeb,\n\t\t\t\t\t\tinputStyle\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`pre-theme-media`;\n\t\tconst [theme, themeState] = useThemeWithState(themeStateProps);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`theme`;\n\t\tif (!isAnimatedCustomComponent) elementType = element || elementType;\n\t\tconst isStringElement = typeof elementType === \"string\";\n\t\tconst mediaState = useMedia(componentContext, debugProp, stateRef.current);\n\t\tsetDidGetVariableValue(false);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`media`;\n\t\tconst styleProps = {\n\t\t\tmediaState,\n\t\t\tnoClass,\n\t\t\tresolveValues: isAnimated && inputStyle !== \"css\" || isHOC && state.unmounted == false && hasAnimationProp ? \"value\" : \"auto\",\n\t\t\tisExiting,\n\t\t\tisAnimated,\n\t\t\twillBeAnimated,\n\t\t\tcanPlatformPseudo: componentState.platformPseudo,\n\t\t\tdisplayName,\n\t\t\tstyledContext: styledContextValue,\n\t\t\tprevStyle: isWeb ? void 0 : stateRef.current.prevStyle\n\t\t};\n\t\tconst themeName = themeState?.name || \"\";\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`split-styles-prepare`;\n\t\tconst splitStyles = useSplitStyles(props, staticConfig, theme, themeName, state, styleProps, null, componentContext, groupContextParent, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);\n\t\tconst finalizedComponentState = componentState.finalizeStyleFlags(!!splitStyles?.hasEnterStyle, !!splitStyles?.platformPseudo);\n\t\thasEnterStyle = finalizedComponentState.hasEnterStyle;\n\t\tisAnimated = finalizedComponentState.isAnimated;\n\t\twillBeAnimated = finalizedComponentState.willBeAnimated;\n\t\twillBeAnimatedClient = finalizedComponentState.willBeAnimatedClient;\n\t\tplatformPseudo = finalizedComponentState.platformPseudo;\n\t\tgroupName = splitStyles?.frontendGroup ?? groupName;\n\t\tconst containerProp = splitStyles?.frontendContainer ?? props.container;\n\t\tconst containerName = props.containerName || (typeof containerProp === \"string\" ? containerProp : void 0);\n\t\tconst containerType = splitStyles?.frontendContainerType || props.containerType || (containerProp ? \"inline-size\" : void 0);\n\t\tconst isContainer = !!containerType && containerType !== \"normal\";\n\t\tconst allGroupContexts = useMemo(() => {\n\t\t\tif (!groupName && !isContainer || props.passThrough) return groupContextParent;\n\t\t\tconst listeners = /* @__PURE__ */ new Set();\n\t\t\tstateRef.current.group?.listeners?.clear();\n\t\t\tstateRef.current.group = {\n\t\t\t\tlisteners,\n\t\t\t\temit(state2) {\n\t\t\t\t\tlisteners.forEach((l) => l(state2));\n\t\t\t\t},\n\t\t\t\tsubscribe(cb) {\n\t\t\t\t\tlisteners.add(cb);\n\t\t\t\t\tif (listeners.size === 1) setStateShallow({ hasDynGroupChildren: true });\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tlisteners.delete(cb);\n\t\t\t\t\t\tif (listeners.size === 0) setStateShallow({ hasDynGroupChildren: false });\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst entry = {\n\t\t\t\tstate: { pseudo: defaultComponentStateMounted },\n\t\t\t\tsubscribe: (listener) => {\n\t\t\t\t\tconst dispose = stateRef.current.group?.subscribe(listener);\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tdispose?.();\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst next = { ...groupContextParent };\n\t\t\tif (groupName) next[groupName] = entry;\n\t\t\tif (isContainer) {\n\t\t\t\tnext[\"@\"] = entry;\n\t\t\t\tif (containerName) next[`@${containerName}`] = entry;\n\t\t\t}\n\t\t\treturn next;\n\t\t}, [\n\t\t\tstateRef,\n\t\t\tgroupName,\n\t\t\tcontainerName,\n\t\t\tisContainer,\n\t\t\tgroupContextParent\n\t\t]);\n\t\tconst isPassthrough = !splitStyles;\n\t\tlet contextForOverride = staticConfig.context;\n\t\tif (splitStyles?.overriddenContextProps) {\n\t\t\tconst contextForProps = staticConfig.context || staticConfig.parentStaticConfig?.context;\n\t\t\tif (contextForProps) {\n\t\t\t\tfor (const key in splitStyles.overriddenContextProps) {\n\t\t\t\t\toverriddenContextProps = overriddenContextProps || {};\n\t\t\t\t\toverriddenContextProps[key] = splitStyles.overriddenContextProps[key];\n\t\t\t\t}\n\t\t\t\tif (!staticConfig.context) contextForOverride = contextForProps;\n\t\t\t}\n\t\t}\n\t\tconst groupContext = groupName || isContainer ? allGroupContexts?.[groupName ?? \"@\"] || null : null;\n\t\tif (!isPassthrough && groupContext && isContainer) {\n\t\t\tconst groupState = groupContext?.state;\n\t\t\tif (groupState && groupState.layout === void 0) {\n\t\t\t\tif (splitStyles.style?.width || splitStyles.style?.height) groupState.layout = {\n\t\t\t\t\twidth: fromPx(splitStyles.style.width),\n\t\t\t\t\theight: fromPx(splitStyles.style.height)\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t\tconst hasEnterExitTransition = props.transition && typeof props.transition === \"object\" && !Array.isArray(props.transition) && (\"enter\" in props.transition || \"exit\" in props.transition);\n\t\tif (!isPassthrough && (hasAnimationProp || groupName || platformPseudo) && animationDriver?.avoidReRenders && !hasEnterExitTransition) {\n\t\t\tlet updateGroupListeners = function() {\n\t\t\t\tconst updatedState = stateRef.current.nextState;\n\t\t\t\tif (groupContext) {\n\t\t\t\t\tconst { group, hasDynGroupChildren, unmounted, transition, ...childrenGroupState } = updatedState;\n\t\t\t\t\tnotifyGroupSubscribers(groupContext, stateRef.current.group || null, childrenGroupState);\n\t\t\t\t}\n\t\t\t};\n\t\t\tconst ogSetStateShallow = setStateShallow;\n\t\t\tstateRef.current.updateStyleListener = () => {\n\t\t\t\tconst useStyleListener = stateRef.current.useStyleListener;\n\t\t\t\tif (!useStyleListener) {\n\t\t\t\t\tconst pendingState = stateRef.current.nextState;\n\t\t\t\t\tif (pendingState) ogSetStateShallow(pendingState);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tconst updatedState = stateRef.current.nextState || state;\n\t\t\t\tconst mediaState2 = stateRef.current.nextMedia;\n\t\t\t\tconst nextStyles = getSplitStyles(props, staticConfig, theme, themeName, updatedState, mediaState2 ? {\n\t\t\t\t\t...styleProps,\n\t\t\t\t\tmediaState: mediaState2\n\t\t\t\t} : styleProps, null, componentContext, allGroupContexts, elementType, startedUnhydrated, debugProp, animationDriver, styleStaticConfig);\n\t\t\t\tconst effectiveTransition = nextStyles?.effectiveTransition ?? props.transition ?? (platformPseudo ? \"0ms\" : void 0);\n\t\t\t\tstateRef.current.prevPseudoState = extractPseudoState(updatedState);\n\t\t\t\tconst hasActivePseudo = Boolean(updatedState.hover || updatedState.press || updatedState.pressIn || updatedState.focus || updatedState.focusWithin);\n\t\t\t\tuseStyleListener(nextStyles?.style || {}, effectiveTransition, hasActivePseudo);\n\t\t\t};\n\t\t\tcomponentContext.mediaEmitListeners = componentContext.mediaEmitListeners || /* @__PURE__ */ new Set();\n\t\t\tif (!stateRef.current.mediaEmitCleanup) {\n\t\t\t\tconst updateListener = (next) => {\n\t\t\t\t\tstateRef.current.nextMedia = next;\n\t\t\t\t\tstateRef.current.updateStyleListener?.();\n\t\t\t\t};\n\t\t\t\tcomponentContext.mediaEmitListeners.add(updateListener);\n\t\t\t\tstateRef.current.mediaEmitCleanup = () => {\n\t\t\t\t\tcomponentContext.mediaEmitListeners?.delete(updateListener);\n\t\t\t\t};\n\t\t\t}\n\t\t\tcomponentContext.mediaEmit = componentContext.mediaEmit || ((next) => {\n\t\t\t\tfor (const listener of componentContext.mediaEmitListeners) listener(next);\n\t\t\t});\n\t\t\tstateRef.current.setStateShallow = (nextOrGetNext) => {\n\t\t\t\tconst prev = stateRef.current.nextState || state;\n\t\t\t\tconst next = typeof nextOrGetNext === \"function\" ? nextOrGetNext(prev) : nextOrGetNext;\n\t\t\t\tif (next === prev || isEqualShallow(prev, next)) return;\n\t\t\t\tlet canAvoidReRender = true;\n\t\t\t\tfor (const key in next) if (!avoidReRenderKeys.has(key)) {\n\t\t\t\t\tcanAvoidReRender = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tconst updatedState = {\n\t\t\t\t\t...prev,\n\t\t\t\t\t...next\n\t\t\t\t};\n\t\t\t\tstateRef.current.nextState = updatedState;\n\t\t\t\tif (canAvoidReRender) {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\" && debugProp && debugProp !== \"profile\") {\n\t\t\t\t\t\tconsole.groupCollapsed(`[\\u26A1\\uFE0F] avoid setState`, displayName, next, {\n\t\t\t\t\t\t\tupdatedState,\n\t\t\t\t\t\t\tprops\n\t\t\t\t\t\t});\n\t\t\t\t\t\tconsole.info(stateRef.current.host);\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t}\n\t\t\t\t\tupdateGroupListeners();\n\t\t\t\t\tstateRef.current.updateStyleListener?.();\n\t\t\t\t} else {\n\t\t\t\t\tif (process.env.NODE_ENV === \"development\" && debugProp && debugProp !== \"profile\") console.info(`[\\u{1F40C}] re-render`, {\n\t\t\t\t\t\tcanAvoidReRender,\n\t\t\t\t\t\tnext\n\t\t\t\t\t});\n\t\t\t\t\togSetStateShallow(next);\n\t\t\t\t}\n\t\t\t};\n\t\t\tsetStateShallow = (state2) => {\n\t\t\t\tstateRef.current.setStateShallow?.(state2);\n\t\t\t};\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`split-styles`;\n\t\tif (splitStyles) {\n\t\t\tif (props.group && props.untilMeasured === \"hide\" && !stateRef.current.hasMeasured) {\n\t\t\t\tsplitStyles.style = splitStyles.style || {};\n\t\t\t\tsplitStyles.style.opacity = 0;\n\t\t\t}\n\t\t}\n\t\tconst hasRuntimeMediaKeys = splitStyles?.hasMedia && splitStyles.hasMedia !== true;\n\t\tconst shouldListenForMedia = didGetVariableValue() || hasRuntimeMediaKeys || noClass && splitStyles?.hasMedia === true;\n\t\tconst mediaListeningKeys = hasRuntimeMediaKeys ? splitStyles.hasMedia : null;\n\t\tif (process.env.NODE_ENV === \"development\" && debugProp === \"verbose\") console.info(`useMedia() createComponent`, shouldListenForMedia, mediaListeningKeys);\n\t\tsetMediaShouldUpdate(stateRef.current, shouldListenForMedia, mediaListeningKeys, stateRef.current.optimizeForFirstRender);\n\t\tconst { viewProps: viewPropsIn, style: splitStylesStyle, classNames, pseudoGroups, mediaGroups } = splitStyles || {};\n\t\tconst groupSetRevision = useGroupSetRevision(pseudoGroups, mediaGroups);\n\t\tif (!isWeb) stateRef.current.prevStyle = splitStylesStyle || null;\n\t\tconst propsWithAnimation = props;\n\t\tconst { asChild, children, themeShallow, spaceDirection: _spaceDirection, onPress, onLongPress, onPressIn, onPressOut, onHoverIn, onHoverOut, onMouseUp, onMouseDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onTransition, separator, passThrough, forceStyle: _forceStyle, onClick, theme: _themeProp, ...nonTamaguiProps } = viewPropsIn || {};\n\t\tlet viewProps = nonTamaguiProps;\n\t\tif (props.forceStyle) viewProps.forceStyle = props.forceStyle;\n\t\tif (isHOC) {\n\t\t\tif (typeof _themeProp !== \"undefined\") viewProps.theme = _themeProp;\n\t\t\tif (typeof passThrough !== \"undefined\") viewProps.passThrough = passThrough;\n\t\t\tif (typeof asChild !== \"undefined\") viewProps.asChild = asChild;\n\t\t\tif (typeof onTransition !== \"undefined\") viewProps.onTransition = onTransition;\n\t\t}\n\t\tlet animationStyles;\n\t\tconst shouldUseAnimation = (inputStyle === \"css\" ? willBeAnimatedClient : willBeAnimated) && useAnimations && !isHOC;\n\t\tlet animatedRef;\n\t\tif (shouldUseAnimation) {\n\t\t\tconst useStyleEmitter = animationDriver?.avoidReRenders ? (listener) => {\n\t\t\t\tstateRef.current.useStyleListener = listener;\n\t\t\t} : void 0;\n\t\t\tconst effectiveTransition = splitStyles?.effectiveTransition ?? props.transition ?? (platformPseudo ? \"0ms\" : void 0);\n\t\t\tif (splitStyles) splitStyles.effectiveTransition = effectiveTransition;\n\t\t\tstateRef.current.prevPseudoState = extractPseudoState(state);\n\t\t\tconst animations = useAnimations({\n\t\t\t\tprops: propsWithAnimation,\n\t\t\t\tstyle: isHydrated ? splitStylesStyle || {} : { ...splitStylesStyle },\n\t\t\t\tstyleState: splitStyles,\n\t\t\t\tuseStyleEmitter,\n\t\t\t\tpresence,\n\t\t\t\tcomponentState: state,\n\t\t\t\tstyleProps,\n\t\t\t\ttheme,\n\t\t\t\tthemeName,\n\t\t\t\tstaticConfig,\n\t\t\t\tstateRef,\n\t\t\t\tonTransition\n\t\t\t});\n\t\t\tif (animations) {\n\t\t\t\tif (animations.ref) animatedRef = animations.ref;\n\t\t\t\tif (isHydrated && animations) {\n\t\t\t\t\tanimationStyles = animations.style;\n\t\t\t\t\tviewProps.style = animationStyles;\n\t\t\t\t\tif (animations.className) viewProps.className = `${state.unmounted === \"should-enter\" ? \"t_unmounted \" : \"\"}${viewProps.className || \"\"} ${animations.className}`;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && time) time`animations`;\n\t\t}\n\t\tif (isWeb && isExiting) viewProps.className = `t_exiting ${viewProps.className || \"\"}`;\n\t\tif (process.env.NODE_ENV === \"development\" && props.untilMeasured && !isContainer) console.warn(`You set untilMeasured without establishing a container. Set it on the parent with container or container=\"name\", not on the child using a container clause.`);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`destructure`;\n\t\tif (!isPassthrough && groupContext && isContainer) nonTamaguiProps.onLayout = composeEventHandlers(nonTamaguiProps.onLayout, (e) => {\n\t\t\tconst layout = e.nativeEvent.layout;\n\t\t\tgroupContext.state.layout = layout;\n\t\t\tstateRef.current.group?.emit({ layout });\n\t\t\tif (!stateRef.current.hasMeasured && props.untilMeasured === \"hide\") setState((prev) => ({ ...prev }));\n\t\t\tstateRef.current.hasMeasured = true;\n\t\t});\n\t\tviewProps = hooks.usePropsTransform?.(elementType, nonTamaguiProps, stateRef, stateRef.current.willHydrate) || nonTamaguiProps;\n\t\tstateRef.current.composedForwardedRef = forwardedRef;\n\t\tif (!stateRef.current.composedRef) stateRef.current.composedRef = composeRefs((x) => {\n\t\t\tstateRef.current.host = x;\n\t\t\tconst current = stateRef.current.composedForwardedRef;\n\t\t\tstateRef.current.attachedForwardedRef = x ? current : void 0;\n\t\t\tsetRef(current, x);\n\t\t}, setElementProps, animatedRef);\n\t\tviewProps.ref = stateRef.current.composedRef;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tconst attached = stateRef.current.attachedForwardedRef;\n\t\t\tif (attached === forwardedRef) return;\n\t\t\tif (attached) setRef(attached, null);\n\t\t\tstateRef.current.attachedForwardedRef = forwardedRef;\n\t\t\tif (stateRef.current.host) setRef(forwardedRef, stateRef.current.host);\n\t\t}, [forwardedRef]);\n\t\tusePointerEvents(props, viewProps);\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (!isText && isWeb && !isHOC) React.Children.toArray(props.children).forEach((item) => {\n\t\t\t\tif (typeof item === \"string\" && item !== \"\\n\") console.error(`Unexpected text node: ${item}. A text node cannot be a child of a <${displayName || propsIn.tag || \"View\"}>.`, props);\n\t\t\t});\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`events-hooks`;\n\t\tconst unPress = () => {\n\t\t\tsetStateShallow({\n\t\t\t\tpress: false,\n\t\t\t\tpressIn: false\n\t\t\t});\n\t\t};\n\t\tif (process.env.NODE_ENV === \"development\" && isWeb) useIsomorphicLayoutEffect(() => {\n\t\t\tif (debugProp === \"verbose\") {\n\t\t\t\tlet cssStyleDeclarationToObject = function(style) {\n\t\t\t\t\tconst styleObject = {};\n\t\t\t\t\tfor (let i = 0; i < style.length; i++) {\n\t\t\t\t\t\tlet prop = style[i];\n\t\t\t\t\t\tstyleObject[prop] = style.getPropertyValue(prop);\n\t\t\t\t\t}\n\t\t\t\t\treturn styleObject;\n\t\t\t\t};\n\t\t\t\tconst computed = stateRef.current.host ? cssStyleDeclarationToObject(getComputedStyle(stateRef.current.host)) : {};\n\t\t\t\tconsole.groupCollapsed(`Rendered > (opacity: ${computed.opacity})`);\n\t\t\t\tconsole.warn(stateRef.current.host);\n\t\t\t\tconsole.warn(computed);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t});\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tif (state.unmounted === true && hasEnterStyle) {\n\t\t\t\tsetStateShallow({ unmounted: \"should-enter\" });\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (state.unmounted) {\n\t\t\t\tif (inputStyle === \"css\") {\n\t\t\t\t\tlet cancelled = false;\n\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\tif (cancelled) return;\n\t\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\t\tif (cancelled) return;\n\t\t\t\t\t\t\tsetStateShallow({ unmounted: false });\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t\treturn () => {\n\t\t\t\t\t\tcancelled = true;\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tsetStateShallow({ unmounted: false });\n\t\t\t}\n\t\t}, [state.unmounted, inputStyle]);\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\treturn () => {\n\t\t\t\tcomponentSetStates.delete(setState);\n\t\t\t\tstateRef.current.mediaEmitCleanup?.();\n\t\t\t\tstateRef.current.mediaEmitCleanup = void 0;\n\t\t\t};\n\t\t}, []);\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tlet disposeSafeArea;\n\t\t\tif (splitStyles?.usesSafeArea) {\n\t\t\t\tconst updateSafeArea = () => {\n\t\t\t\t\tsetState((previous) => ({ ...previous }));\n\t\t\t\t};\n\t\t\t\tdisposeSafeArea = subscribeToSafeArea(updateSafeArea);\n\t\t\t}\n\t\t\tif (disabled) return disposeSafeArea;\n\t\t\tif (!pseudoGroups && !mediaGroups) return disposeSafeArea;\n\t\t\tif (!allGroupContexts) return disposeSafeArea;\n\t\t\tconst disposeGroup = subscribeToContextGroup({\n\t\t\t\tgroupContext: allGroupContexts,\n\t\t\t\tsetStateShallow,\n\t\t\t\tmediaGroups,\n\t\t\t\tpseudoGroups\n\t\t\t});\n\t\t\tif (!disposeSafeArea) return disposeGroup;\n\t\t\treturn () => {\n\t\t\t\tdisposeSafeArea();\n\t\t\t\tdisposeGroup?.();\n\t\t\t};\n\t\t}, [\n\t\t\tallGroupContexts,\n\t\t\tdisabled,\n\t\t\tsplitStyles?.usesSafeArea,\n\t\t\tgroupSetRevision\n\t\t]);\n\t\tconst groupEmitter = stateRef.current.group;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tif (!groupContext || !groupEmitter) return;\n\t\t\tnotifyGroupSubscribers(groupContext, groupEmitter, state);\n\t\t}, [\n\t\t\tgroupContext,\n\t\t\tgroupEmitter,\n\t\t\tstate\n\t\t]);\n\t\tconst conditionalStates = !disabled ? splitStyles?.programStates : void 0;\n\t\tconst runtimePressStyle = !disabled && (conditionalStates?.has(\"press\") || conditionalStates?.has(\"active\"));\n\t\tconst runtimeFocusStyle = !disabled && conditionalStates?.has(\"focus\");\n\t\tconst runtimeFocusVisibleStyle = !disabled && conditionalStates?.has(\"focus-visible\");\n\t\tconst attachFocus = Boolean(runtimePressStyle || runtimeFocusStyle || runtimeFocusVisibleStyle || onFocus || onBlur || !!componentContext.setParentFocusState);\n\t\tconst hasDynamicGroupChildren = Boolean(groupName && state.hasDynGroupChildren);\n\t\tconst attachPress = Boolean(hasDynamicGroupChildren || runtimePressStyle || onPress || onPressOut || onPressIn || onMouseDown || onMouseUp || onLongPress || onClick);\n\t\tconst runtimeHoverStyle = !disabled && conditionalStates?.has(\"hover\");\n\t\tconst needsHoverState = Boolean(hasDynamicGroupChildren || runtimeHoverStyle && !platformPseudo);\n\t\tconst attachHover = (isWeb || isNativeDesktop) && !!(hasDynamicGroupChildren || needsHoverState || onMouseEnter || onMouseLeave);\n\t\tconst shouldAttach = !disabled && !props.asChild && Boolean(attachFocus || attachPress || attachHover || runtimePressStyle || runtimeHoverStyle || runtimeFocusStyle);\n\t\tconst needsPressState = Boolean(hasDynamicGroupChildren || runtimePressStyle);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`events-setup`;\n\t\tif (process.env.NODE_ENV === \"development\" && debugProp === \"verbose\") log(`\\u{1FAA9} events()`, {\n\t\t\truntimeFocusStyle,\n\t\t\truntimePressStyle,\n\t\t\truntimeHoverStyle,\n\t\t\truntimeFocusVisibleStyle,\n\t\t\tattachPress,\n\t\t\tattachFocus,\n\t\t\tattachHover,\n\t\t\tshouldAttach,\n\t\t\tneedsHoverState\n\t\t});\n\t\tconst events = shouldAttach ? {\n\t\t\tonPressOut: attachPress ? (e) => {\n\t\t\t\tunPress();\n\t\t\t\tonPressOut?.(e);\n\t\t\t\tonMouseUp?.(e);\n\t\t\t} : void 0,\n\t\t\t...(attachHover || attachPress) && {\n\t\t\t\tonMouseEnter: (e) => {\n\t\t\t\t\tconst next = {};\n\t\t\t\t\tif (needsHoverState && !lastInteractionWasTouch.value) next.hover = true;\n\t\t\t\t\tif (needsPressState) {\n\t\t\t\t\t\tif (state.pressIn) next.press = true;\n\t\t\t\t\t}\n\t\t\t\t\tsetStateShallow(next);\n\t\t\t\t\tonHoverIn?.(e);\n\t\t\t\t\tonMouseEnter?.(e);\n\t\t\t\t},\n\t\t\t\tonMouseLeave: (e) => {\n\t\t\t\t\tconst next = {};\n\t\t\t\t\tif (needsHoverState) next.hover = false;\n\t\t\t\t\tif (needsPressState) {\n\t\t\t\t\t\tnext.press = false;\n\t\t\t\t\t\tnext.pressIn = false;\n\t\t\t\t\t}\n\t\t\t\t\tsetStateShallow(next);\n\t\t\t\t\tonHoverOut?.(e);\n\t\t\t\t\tonMouseLeave?.(e);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonPressIn: attachPress ? (e) => {\n\t\t\t\tif (needsPressState) setStateShallow({\n\t\t\t\t\tpress: true,\n\t\t\t\t\tpressIn: true\n\t\t\t\t});\n\t\t\t\tonPressIn?.(e);\n\t\t\t\tonMouseDown?.(e);\n\t\t\t\tif (isWeb) componentSetStates.add(setState);\n\t\t\t} : void 0,\n\t\t\tonPress: attachPress ? (e) => {\n\t\t\t\tunPress();\n\t\t\t\tonClick?.(e);\n\t\t\t\tif (onPress || onClick) e.stopPropagation();\n\t\t\t\tonPress?.(e);\n\t\t\t\tonLongPress?.(e);\n\t\t\t} : void 0,\n\t\t\t...attachFocus && {\n\t\t\t\tonFocus: (e) => {\n\t\t\t\t\tconst next = {};\n\t\t\t\t\tif (componentContext.setParentFocusState) {\n\t\t\t\t\t\tcomponentContext.setParentFocusState({ focusWithin: true });\n\t\t\t\t\t\tnext.focusWithin = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (conditionalStates?.has(\"focus-visible\")) if (lastInteractionWasKeyboard.value) next.focusVisible = true;\n\t\t\t\t\telse next.focus = true;\n\t\t\t\t\telse next.focus = true;\n\t\t\t\t\tsetStateShallow(next);\n\t\t\t\t\tonFocus?.(e);\n\t\t\t\t},\n\t\t\t\tonBlur: (e) => {\n\t\t\t\t\tif (componentContext.setParentFocusState) componentContext.setParentFocusState({ focusWithin: false });\n\t\t\t\t\tsetStateShallow({\n\t\t\t\t\t\tfocus: false,\n\t\t\t\t\t\tfocusVisible: false,\n\t\t\t\t\t\tfocusWithin: false\n\t\t\t\t\t});\n\t\t\t\t\tonBlur?.(e);\n\t\t\t\t}\n\t\t\t}\n\t\t} : null;\n\t\tif (events) Object.assign(viewProps, getWebEvents(events));\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`events`;\n\t\tif (process.env.NODE_ENV === \"development\" && debugProp === \"verbose\") log(`events`, {\n\t\t\tevents,\n\t\t\tattachHover,\n\t\t\tattachPress\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`hooks`;\n\t\tif (asChild && !isHOC) {\n\t\t\telementType = Slot;\n\t\t\t{\n\t\t\t\tconst passEvents = getWebEvents({\n\t\t\t\t\tonPress,\n\t\t\t\t\tonLongPress,\n\t\t\t\t\tonPressIn,\n\t\t\t\t\tonPressOut,\n\t\t\t\t\tonMouseUp,\n\t\t\t\t\tonMouseDown,\n\t\t\t\t\tonMouseEnter,\n\t\t\t\t\tonMouseLeave,\n\t\t\t\t\tonFocus,\n\t\t\t\t\tonBlur\n\t\t\t\t}, asChild === \"web\" || asChild === \"except-style-web\");\n\t\t\t\tObject.assign(viewProps, passEvents);\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`spaced-as-child`;\n\t\tlet content;\n\t\tconst childrenFromHooks = hooks.useChildren ? hooks.useChildren(elementType, children, viewProps, isPassthrough) : void 0;\n\t\tif (isPassthrough) content = React.createElement(BaseComponent, { style: { display: \"contents\" } }, propsIn.children);\n\t\telse {\n\t\t\tif (childrenFromHooks) content = childrenFromHooks;\n\t\t\tconst isRenderPropString = typeof renderProp === \"string\";\n\t\t\tif (renderProp && !isRenderPropString) {\n\t\t\t\tconst out = getCustomRender(renderProp, content || children, viewProps, componentState);\n\t\t\t\tif (out) {\n\t\t\t\t\tviewProps = out.viewProps;\n\t\t\t\t\tif (isAnimatedCustomComponent && elementType[\"acceptRenderProp\"] && typeof out.elementType === \"string\") viewProps.render = out.elementType;\n\t\t\t\t\telse elementType = out.elementType;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!content) {\n\t\t\t\tif (isRenderPropString && elementType[\"acceptRenderProp\"]) viewProps.render = renderProp;\n\t\t\t\tcontent = React.createElement(elementType, viewProps, content || children);\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && time) time`use-children`;\n\t\t}\n\t\tconst ResetPresence = animationDriver?.isStub ? void 0 : animationDriver?.ResetPresence;\n\t\tconst needsReset = Boolean(!asChild && splitStyles && !isHOC && ResetPresence && willBeAnimated && (hasEnterStyle || presenceState));\n\t\tconst hasEverReset = stateRef.current.hasEverResetPresence;\n\t\tif (needsReset && !hasEverReset) stateRef.current.hasEverResetPresence = true;\n\t\tif ((needsReset || hasEverReset) && ResetPresence) content = /* @__PURE__ */ jsx(ResetPresence, {\n\t\t\tdisabled: !needsReset,\n\t\t\tchildren: content\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`create-element`;\n\t\tif (conditionalStates?.has(\"focus-within\")) content = /* @__PURE__ */ jsx(ComponentContext.Provider, {\n\t\t\t...componentContext,\n\t\t\tsetParentFocusState: setStateShallow,\n\t\t\tchildren: content\n\t\t});\n\t\tif (groupName || isContainer) content = /* @__PURE__ */ jsx(GroupContext.Provider, {\n\t\t\tvalue: allGroupContexts,\n\t\t\tchildren: content\n\t\t});\n\t\tif (!asChild && isText && !hasTextAncestor) content = /* @__PURE__ */ jsx(ComponentContext.Provider, {\n\t\t\t...componentContext,\n\t\t\tinText: true,\n\t\t\tchildren: content\n\t\t});\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`group-context`;\n\t\tcontent = disableTheme || !splitStyles ? content : getThemedChildren(themeState, content, themeStateProps, false, stateRef);\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`themed-children`;\n\t\tif (overriddenContextProps && contextForOverride) {\n\t\t\tconst Provider = contextForOverride.Provider;\n\t\t\tfor (const key in styledContextValue) if (!(key in overriddenContextProps)) overriddenContextProps[key] = styledContextValue[key];\n\t\t\tcontent = /* @__PURE__ */ jsx(Provider, {\n\t\t\t\t__disableMergeDefaultValues: true,\n\t\t\t\t...overriddenContextProps,\n\t\t\t\tchildren: content\n\t\t\t});\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`context-override`;\n\t\tif (process.env.TAMAGUI_RUNTIME !== \"island\" && startedUnhydrated && splitStyles) content = /* @__PURE__ */ jsxs(Fragment, { children: [content, !isHydrated ? getStyleTags(Object.values(splitStyles.rulesToInsert)) : null] });\n\t\tif (process.env.NODE_ENV === \"development\" && time) time`style-tags`;\n\t\tif (process.env.NODE_ENV === \"development\") {\n\t\t\tif (debugProp && debugProp !== \"profile\") {\n\t\t\t\tconst title = `render <${typeof elementType === \"string\" ? elementType : \"Component\"} /> (${internalID}) with props`;\n\t\t\t\tif (!isWeb || !isClient) {\n\t\t\t\t\tlog(title);\n\t\t\t\t\tlog(`state: `, state);\n\t\t\t\t\tif (isDevTools) log(\"viewProps\", viewProps);\n\t\t\t\t\tlog(`final styles:`);\n\t\t\t\t\tfor (const key in splitStylesStyle) log(key, splitStylesStyle[key]);\n\t\t\t\t} else {\n\t\t\t\t\tconsole.groupCollapsed(title);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlog(\"viewProps\", viewProps);\n\t\t\t\t\t\tlog(\"children\", content);\n\t\t\t\t\t\tif (typeof window !== \"undefined\") log({\n\t\t\t\t\t\t\tpropsIn,\n\t\t\t\t\t\t\tprops,\n\t\t\t\t\t\t\tattachPress,\n\t\t\t\t\t\t\tanimationStyles,\n\t\t\t\t\t\t\tclassNames,\n\t\t\t\t\t\t\tcontent,\n\t\t\t\t\t\t\telementType,\n\t\t\t\t\t\t\tevents,\n\t\t\t\t\t\t\tisAnimated,\n\t\t\t\t\t\t\thasRuntimeMediaKeys,\n\t\t\t\t\t\t\tisStringElement,\n\t\t\t\t\t\t\tmediaListeningKeys,\n\t\t\t\t\t\t\tshouldAttach,\n\t\t\t\t\t\t\tnoClass,\n\t\t\t\t\t\t\tshouldListenForMedia,\n\t\t\t\t\t\t\tsplitStyles,\n\t\t\t\t\t\t\tsplitStylesStyle,\n\t\t\t\t\t\t\tstate,\n\t\t\t\t\t\t\tstateRef,\n\t\t\t\t\t\t\tstaticConfig,\n\t\t\t\t\t\t\tstyleProps,\n\t\t\t\t\t\t\tthemeState,\n\t\t\t\t\t\t\tviewProps,\n\t\t\t\t\t\t\twillBeAnimated,\n\t\t\t\t\t\t\tstartedUnhydrated\n\t\t\t\t\t\t});\n\t\t\t\t\t} catch {} finally {\n\t\t\t\t\t\tconsole.groupEnd();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\" && time) {\n\t\t\ttime`rest`;\n\t\t\tif (!globalThis[\"willPrint\"]) {\n\t\t\t\tglobalThis[\"willPrint\"] = true;\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdelete globalThis[\"willPrint\"];\n\t\t\t\t\ttime.print();\n\t\t\t\t\ttime = null;\n\t\t\t\t}, 50);\n\t\t\t}\n\t\t}\n\t\treturn content;\n\t};\n\tfunction notifyGroupSubscribers(groupContext, groupEmitter, pseudo) {\n\t\tif (!groupContext || !groupEmitter) return;\n\t\tconst prevPseudo = groupContext.state.pseudo;\n\t\tconst shouldReplacePseudo = !prevPseudo || \"unmounted\" in prevPseudo || \"group\" in prevPseudo || \"hasDynGroupChildren\" in prevPseudo || \"transition\" in prevPseudo;\n\t\tconst nextPseudo = shouldReplacePseudo ? {} : prevPseudo;\n\t\tlet didChange = shouldReplacePseudo;\n\t\tfor (let i = 0; i < groupPseudoKeys.length; i++) {\n\t\t\tconst key = groupPseudoKeys[i];\n\t\t\tconst value = pseudo[key];\n\t\t\tif (nextPseudo[key] !== value) {\n\t\t\t\tnextPseudo[key] = value;\n\t\t\t\tdidChange = true;\n\t\t\t} else if (didChange) nextPseudo[key] = value;\n\t\t}\n\t\tif (!didChange) return;\n\t\tgroupContext.state.pseudo = nextPseudo;\n\t\tgroupEmitter.emit(groupContext.state);\n\t}\n\tres = component;\n\tres = React.memo(res);\n\tres.staticConfig = staticConfig;\n\tres.resolve = (resolver) => {\n\t\tconst next = createComponent({\n\t\t\t...staticConfig,\n\t\t\tresolvers: staticConfig.resolvers ? [...staticConfig.resolvers, resolver] : [resolver]\n\t\t});\n\t\tfor (const key in res) {\n\t\t\tif (key === \"propTypes\" || key in next) continue;\n\t\t\tnext[key] = res[key];\n\t\t}\n\t\treturn next;\n\t};\n\tif (displayName) {\n\t\tres.displayName = displayName;\n\t\tres[componentDisplayName] = displayName;\n\t}\n\treturn res;\n}\nconst fromPx = (val) => {\n\tif (typeof val === \"number\") return val;\n\tif (typeof val === \"string\") return +val.replace(\"px\", \"\");\n\treturn 0;\n};\nconst getCustomRender = (renderProp, content, viewProps, state) => {\n\tif (typeof renderProp === \"function\") renderProp = getRenderElementForPlatform(renderProp(viewProps, state));\n\tif (renderProp) {\n\t\tif (typeof renderProp === \"object\" && React.isValidElement(renderProp)) {\n\t\t\tif (getRenderElementForPlatform(renderProp)) {\n\t\t\t\tconst elementProps = renderProp.props;\n\t\t\t\tconst mergedProps = elementProps ? mergeRenderElementProps(elementProps, viewProps, content) : viewProps;\n\t\t\t\treturn {\n\t\t\t\t\telementType: renderProp.type,\n\t\t\t\t\tviewProps: mergedProps\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\t}\n};\nfunction getRenderElementForPlatform(potential) {\n\treturn potential;\n}\n\nexport { componentSetStates, createComponent };"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCA,IAAI;AACJ,IAAI;AACJ,IAAI;AACJ,MAAM,qCAAqC,IAAI,IAAI;AACnD,MAAM,oCAAoC,IAAI,IAAI;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,kBAAkB;CACvB;CACA;CACA;CACA;CACA;CACA;CACA;AACD;AACA,IAAI,OAAO,WAAW,aAAa;CAClC,MAAM,sBAAsB;EAC3B,mBAAmB,SAAS,aAAa,UAAU,SAAS;GAC3D,IAAI,KAAK,SAAS,KAAK,SAAS,OAAO;IACtC,GAAG;IACH,OAAO;IACP,SAAS;GACV;GACA,OAAO;EACR,CAAC,CAAC;EACF,mBAAmB,MAAM;CAC1B;CACA,MAAM,sBAAsB;E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