@tamagui/web 3.0.0-beta.653.1 → 3.0.0-beta.655.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 (31) hide show
  1. package/dist/cjs/helpers/directStyle.cjs +2 -1
  2. package/dist/cjs/helpers/directStyle.native.cjs +3 -2
  3. package/dist/cjs/helpers/directStyle.native.js +3 -2
  4. package/dist/cjs/helpers/directStyle.native.js.map +1 -1
  5. package/dist/cjs/helpers/getSplitStyles.cjs +0 -12
  6. package/dist/cjs/helpers/getSplitStyles.native.cjs +35 -35
  7. package/dist/cjs/helpers/getSplitStyles.native.js +35 -35
  8. package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
  9. package/dist/cjs/helpers/registerCSSVariable.cjs +7 -15
  10. package/dist/cjs/helpers/registerCSSVariable.native.cjs +7 -15
  11. package/dist/cjs/helpers/registerCSSVariable.native.js +7 -15
  12. package/dist/cjs/helpers/registerCSSVariable.native.js.map +1 -1
  13. package/dist/esm/helpers/directStyle.mjs +3 -2
  14. package/dist/esm/helpers/directStyle.mjs.map +1 -1
  15. package/dist/esm/helpers/directStyle.native.js +4 -3
  16. package/dist/esm/helpers/directStyle.native.js.map +1 -1
  17. package/dist/esm/helpers/getSplitStyles.mjs +3 -15
  18. package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
  19. package/dist/esm/helpers/getSplitStyles.native.js +35 -35
  20. package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
  21. package/dist/esm/helpers/registerCSSVariable.mjs +7 -15
  22. package/dist/esm/helpers/registerCSSVariable.mjs.map +1 -1
  23. package/dist/esm/helpers/registerCSSVariable.native.js +7 -15
  24. package/dist/esm/helpers/registerCSSVariable.native.js.map +1 -1
  25. package/package.json +15 -15
  26. package/src/helpers/directStyle.ts +12 -4
  27. package/src/helpers/getSplitStyles.tsx +1 -38
  28. package/src/helpers/registerCSSVariable.ts +7 -29
  29. package/types/helpers/directStyle.d.ts.map +1 -1
  30. package/types/helpers/getSplitStyles.d.ts.map +1 -1
  31. package/types/helpers/registerCSSVariable.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"directStyle.js","names":[],"sources":["esm/helpers/directStyle.js"],"sourcesContent":["import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, tokenCategories } from \"@tamagui/helpers\";\nimport { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, compareClausePrecedence, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { isVariable } from \"../createVariable\";\nimport { mediaKeyMatch } from \"../hooks/useMedia\";\nimport { warnOnce, warnRefusedValue } from \"./warnOnce\";\nimport { expandStyle } from \"./expandStyle\";\nimport { getCSSStyleAtomic } from \"./getCSSStylesAtomic\";\nimport { isColorStyleKey } from \"./getDynamicVal\";\nimport { shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { mediaObjectToString } from \"./mediaObjectToString\";\nimport { normalizeColor } from \"./normalizeColor\";\nimport { getTokenCategoryForProperty, tokenCategoryByProperty } from \"./tokenCategories\";\nimport { resolveSafeAreaVariable } from \"./resolveSafeAreaVariable\";\nimport { expandSafeAreaValue, isSafeAreaKey } from \"./resolveSafeArea\";\nimport { resolveVariableValue } from \"./resolveVariableValue\";\nimport { THEME_REF_PREFIX } from \"./themeRef\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst baseClausePrecedence = [\n\t0,\n\t0,\n\t0,\n\t0\n];\nconst stateSelectors = {\n\thover: \":hover\",\n\tpress: \":active\",\n\tfocus: \":focus\",\n\t\"focus-visible\": \":focus-visible\",\n\t\"focus-within\": \":focus-within\",\n\tdisabled: \"[aria-disabled]\",\n\topen: \"[data-state=\\\"open\\\"]\",\n\tchecked: \"[data-state=\\\"checked\\\"]\",\n\thighlighted: \"[data-highlighted]\",\n\tselected: \"[data-state=\\\"active\\\"]\",\n\tinvalid: \"[aria-invalid=\\\"true\\\"]\"\n};\nconst legacyTransformParts = /* @__PURE__ */ new Set([\n\t\"matrix\",\n\t\"perspective\",\n\t\"rotateX\",\n\t\"rotateY\",\n\t\"rotateZ\",\n\t\"scaleZ\",\n\t\"skewX\",\n\t\"skewY\"\n]);\nconst webShadowParts = /* @__PURE__ */ new Set([\n\t\"shadowColor\",\n\t\"shadowOffset\",\n\t\"shadowOpacity\",\n\t\"shadowRadius\"\n]);\nconst webTextShadowParts = /* @__PURE__ */ new Set([\n\t\"textShadowColor\",\n\t\"textShadowOffset\",\n\t\"textShadowRadius\"\n]);\nconst lineStyles = /* @__PURE__ */ new Set([\n\t\"none\",\n\t\"hidden\",\n\t\"dotted\",\n\t\"dashed\",\n\t\"solid\",\n\t\"double\",\n\t\"groove\",\n\t\"ridge\",\n\t\"inset\",\n\t\"outset\"\n]);\nconst borderTargets = {\n\tborder: {\n\t\twidth: [\n\t\t\t\"borderTopWidth\",\n\t\t\t\"borderRightWidth\",\n\t\t\t\"borderBottomWidth\",\n\t\t\t\"borderLeftWidth\"\n\t\t],\n\t\tstyle: [\n\t\t\t\"borderTopStyle\",\n\t\t\t\"borderRightStyle\",\n\t\t\t\"borderBottomStyle\",\n\t\t\t\"borderLeftStyle\"\n\t\t],\n\t\tcolor: [\n\t\t\t\"borderTopColor\",\n\t\t\t\"borderRightColor\",\n\t\t\t\"borderBottomColor\",\n\t\t\t\"borderLeftColor\"\n\t\t]\n\t},\n\tborderTop: {\n\t\twidth: [\"borderTopWidth\"],\n\t\tstyle: [\"borderTopStyle\"],\n\t\tcolor: [\"borderTopColor\"]\n\t},\n\tborderRight: {\n\t\twidth: [\"borderRightWidth\"],\n\t\tstyle: [\"borderRightStyle\"],\n\t\tcolor: [\"borderRightColor\"]\n\t},\n\tborderBottom: {\n\t\twidth: [\"borderBottomWidth\"],\n\t\tstyle: [\"borderBottomStyle\"],\n\t\tcolor: [\"borderBottomColor\"]\n\t},\n\tborderLeft: {\n\t\twidth: [\"borderLeftWidth\"],\n\t\tstyle: [\"borderLeftStyle\"],\n\t\tcolor: [\"borderLeftColor\"]\n\t},\n\toutline: {\n\t\twidth: [\"outlineWidth\"],\n\t\tstyle: [\"outlineStyle\"],\n\t\tcolor: [\"outlineColor\"]\n\t},\n\tborderBlock: {\n\t\twidth: [\"borderBlockStartWidth\", \"borderBlockEndWidth\"],\n\t\tstyle: [\"borderBlockStartStyle\", \"borderBlockEndStyle\"],\n\t\tcolor: [\"borderBlockStartColor\", \"borderBlockEndColor\"]\n\t},\n\tborderInline: {\n\t\twidth: [\"borderInlineStartWidth\", \"borderInlineEndWidth\"],\n\t\tstyle: [\"borderInlineStartStyle\", \"borderInlineEndStyle\"],\n\t\tcolor: [\"borderInlineStartColor\", \"borderInlineEndColor\"]\n\t}\n};\nconst borderStyleDefaults = {\n\tborderWidth: \"borderStyle\",\n\tborderTopWidth: \"borderTopStyle\",\n\tborderRightWidth: \"borderRightStyle\",\n\tborderBottomWidth: \"borderBottomStyle\",\n\tborderLeftWidth: \"borderLeftStyle\"\n};\nconst mediaQueries = /* @__PURE__ */ new WeakMap();\nconst clausePrecedenceOrders = /* @__PURE__ */ new WeakMap();\nfunction queryFor(state, name) {\n\tlet queries = mediaQueries.get(state.conf);\n\tif (!queries) {\n\t\tqueries = {};\n\t\tconst media = state.conf.media || {};\n\t\tfor (const key in media) queries[key] = mediaObjectToString(media[key]);\n\t\tmediaQueries.set(state.conf, queries);\n\t}\n\treturn queries[name];\n}\nfunction precedenceOrderFor(state) {\n\tlet order = clausePrecedenceOrders.get(state.conf);\n\tif (!order) {\n\t\torder = createClausePrecedenceOrder(state.conf.media);\n\t\tclausePrecedenceOrders.set(state.conf, order);\n\t}\n\treturn order;\n}\nfunction stateIsActive(state, name) {\n\tconst component = state.componentState;\n\tif (name === \"hover\") return !!component.hover;\n\tif (name === \"press\") return !!(component.press || component.pressIn);\n\tif (name === \"focus\") return !!component.focus;\n\tif (name === \"focus-visible\") return !!component.focusVisible;\n\tif (name === \"focus-within\") return !!component.focusWithin;\n\tif (name === \"disabled\") return !!(component.disabled || state.props.disabled);\n\tif (name === \"enter\") return !!component.unmounted;\n\tif (name === \"exit\") return !!state.styleProps.isExiting;\n\treturn false;\n}\nfunction platformMatches(name) {\n\tif (name === \"web\") return isWeb;\n\tif (name === \"native\") return !isWeb;\n\tif (name === \"ios\") return isIos;\n\tif (name === \"android\") return isAndroid;\n\tif (name === \"tvos\") return isIos && isTV;\n\tif (name === \"androidtv\") return isAndroid && isTV;\n\treturn name === \"tv\" && isTV;\n}\nfunction groupCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst stateName = modifier.slice(6, slash === -1 ? void 0 : slash);\n\tconst groupName = slash === -1 ? \"true\" : modifier.slice(slash + 1);\n\tconst selector = stateSelectors[stateName];\n\tif (!selector || !groupName) return false;\n\tout.selector += `:where(.t_group_${groupName}${selector} *)`;\n\tif (stateName === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\tconst component = state.componentState.group?.[groupName];\n\tconst context = state.flatGroupContext?.[groupName];\n\tout.active &&= !!(component?.pseudo ?? context?.state.pseudo)?.[stateName];\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(groupName);\n\treturn true;\n}\nfunction containerCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst size = modifier.slice(1, slash === -1 ? void 0 : slash);\n\tconst name = slash === -1 ? null : modifier.slice(slash + 1);\n\tconst query = queryFor(state, size);\n\tif (!query || name !== null && !name) return false;\n\tconst key = name === null ? \"@\" : `@${name}`;\n\t(out.wrappers ||= []).push(name === null ? `@container ${query}` : `@container ${name} ${query}`);\n\tconst component = state.componentState.group?.[key];\n\tconst context = state.flatGroupContext?.[key];\n\tconst active = component?.media?.[size];\n\tout.active &&= active === void 0 ? !!(context?.state.layout && mediaKeyMatch(size, context.state.layout)) : !!active;\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(key);\n\t(state.flatGroupMedia ||= /* @__PURE__ */ new Set()).add(size);\n\treturn true;\n}\nfunction getCondition(state, source) {\n\tconst out = {\n\t\tkey: \"\",\n\t\tactive: true,\n\t\temit: true,\n\t\tselector: \"\"\n\t};\n\tconst canonical = [];\n\tconst kinds = [];\n\tconst seenModifiers = /* @__PURE__ */ new Set();\n\tlet selfStateSpecificity = 0;\n\tlet start = 0;\n\tfor (let index = 0; index <= source.length; index++) {\n\t\tif (index !== source.length && source.charCodeAt(index) !== 58) continue;\n\t\tlet modifier = canonicalClauseModifier(source.slice(start, index));\n\t\tstart = index + 1;\n\t\tif (!modifier) return null;\n\t\tif (seenModifiers.has(modifier)) continue;\n\t\tseenModifiers.add(modifier);\n\t\tif (modifier.startsWith(\"group-\")) {\n\t\t\tif (!groupCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"group\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier.charCodeAt(0) === 64) {\n\t\t\tif (!containerCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"container\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in stateSelectors || modifier === \"enter\" || modifier === \"exit\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"state\");\n\t\t\tselfStateSpecificity++;\n\t\t\tconst selector = stateSelectors[modifier];\n\t\t\tif (!isWeb && modifier !== \"hover\" && modifier !== \"press\" && modifier !== \"focus\" && modifier !== \"focus-visible\" && modifier !== \"focus-within\" && modifier !== \"disabled\" && modifier !== \"enter\" && modifier !== \"exit\") out.unsupportedState = modifier;\n\t\t\tif (modifier === \"enter\" || modifier === \"exit\") {\n\t\t\t\tconst cls = modifier === \"enter\" ? \".t_unmounted\" : \".t_exiting\";\n\t\t\t\tout.selector += `:is(${cls}, ${cls} *)`;\n\t\t\t\tout[modifier] = true;\n\t\t\t} else if (selector) out.selector += selector;\n\t\t\tif (modifier === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\t\t\tout.active &&= stateIsActive(state, modifier);\n\t\t\tif (modifier === \"hover\" || modifier === \"press\" || modifier === \"focus\" || modifier === \"focus-visible\" || modifier === \"focus-within\") (state.flatStateKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in (state.conf.media || {})) {\n\t\t\tconst query = queryFor(state, modifier);\n\t\t\tif (!query) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"media\");\n\t\t\t(out.wrappers ||= []).push(`@media ${query}`);\n\t\t\tout.active &&= !!state.flatMediaState?.[modifier];\n\t\t\t(state.flatMediaKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (isRootThemeName(modifier) && modifier in (state.conf.themes || {})) {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"theme\");\n\t\t\tout.theme = modifier;\n\t\t\tout.selector += `:where(.t_${modifier}, .t_${modifier} *)`;\n\t\t\tout.active &&= state.flatThemeName === modifier || state.flatThemeName?.startsWith(`${modifier}_`) === true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier === \"web\" || modifier === \"native\" || modifier === \"ios\" || modifier === \"android\" || modifier === \"tv\" || modifier === \"tvos\" || modifier === \"androidtv\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"platform\");\n\t\t\tconst matches = platformMatches(modifier);\n\t\t\tout.active &&= matches;\n\t\t\tout.emit &&= matches;\n\t\t\tcontinue;\n\t\t}\n\t\treturn null;\n\t}\n\tout.key = clauseConditionSetKey(canonical);\n\tout.precedence = getClausePrecedenceKeyFromKinds(canonical, kinds, precedenceOrderFor(state));\n\tout.classRepetitions = clauseSubjectClassRepetitions(out.precedence, selfStateSpecificity);\n\treturn out;\n}\nconst tokenLookup = {\n\tvalue: void 0,\n\tfromTheme: false,\n\tthemeKey: \"\"\n};\nfunction fillTokenLookup(value, fromTheme, themeKey) {\n\ttokenLookup.value = value;\n\ttokenLookup.fromTheme = fromTheme;\n\ttokenLookup.themeKey = themeKey;\n\treturn tokenLookup;\n}\nfunction tokenVariable(state, property, name) {\n\tlet lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;\n\tif (property === \"fontFamily\") {\n\t\tconst family = state.conf.fontsParsed[lookupName]?.family;\n\t\treturn family ? fillTokenLookup(family, false, lookupName) : void 0;\n\t}\n\tconst fontKey = property === \"fontSize\" ? \"size\" : property === \"fontWeight\" ? \"weight\" : property === \"lineHeight\" || property === \"letterSpacing\" ? property : void 0;\n\tif (fontKey) {\n\t\tconst value = (state.conf.fontsParsed[state.fontFamily || state.conf.defaultFontToken] || state.conf.fontsParsed[state.conf.defaultFontToken])?.[fontKey]?.[lookupName];\n\t\treturn value ? fillTokenLookup(value, false, lookupName) : void 0;\n\t}\n\tconst category = getTokenCategoryForProperty(property);\n\tconst dot = lookupName.indexOf(\".\");\n\tif (dot !== -1) {\n\t\tconst prefix = lookupName.slice(0, dot);\n\t\tif (!category || prefix === category || prefix === \"color\") lookupName = lookupName.slice(dot + 1);\n\t}\n\tif (category) {\n\t\tconst own = state.conf.tokensParsed[category]?.[lookupName];\n\t\tif (own) return fillTokenLookup(own, false, lookupName);\n\t\tfor (const sibling of [\n\t\t\t\"color\",\n\t\t\t\"space\",\n\t\t\t\"size\",\n\t\t\t\"radius\",\n\t\t\t\"zIndex\"\n\t\t]) if (sibling !== category && state.conf.tokensParsed[sibling]?.[lookupName]) return;\n\t} else {\n\t\tconst first = lookupName.charCodeAt(0);\n\t\tif (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;\n\t}\n\tconst theme = state.theme?.[lookupName] || state.conf.themes?.[state.flatThemeName || \"\"]?.[lookupName];\n\tif (theme) return fillTokenLookup(theme, true, lookupName);\n\tif (category) return;\n\tconst token = state.conf.tokensParsed.space?.[lookupName] || state.conf.tokensParsed.color?.[lookupName];\n\treturn token ? fillTokenLookup(token, false, lookupName) : void 0;\n}\nfunction configuredValue(state, property, raw) {\n\tlet name = raw;\n\tlet opacity;\n\tconst slash = raw.lastIndexOf(\"/\");\n\tif (slash > 0) {\n\t\tconst amount = Number(raw.slice(slash + 1));\n\t\tif (Number.isInteger(amount) && amount >= 0 && amount <= 100) {\n\t\t\tname = raw.slice(0, slash);\n\t\t\topacity = amount;\n\t\t}\n\t}\n\tconst safeArea = resolveSafeAreaVariable(name);\n\tif (safeArea !== void 0) {\n\t\tstate.flatUsesSafeArea = true;\n\t\treturn safeArea;\n\t}\n\tconst lookup = tokenVariable(state, property, name);\n\tif (!lookup || !isVariable(lookup.value)) {\n\t\tif (process.env.NODE_ENV === \"development\" && tokenCategoryByProperty[property] && state.conf.tokensParsed.color?.[name]) warnOnce(`\"${name}\" contributes to \"color\", not \"${property}\"; keeping it literal`);\n\t\treturn raw;\n\t}\n\tconst resolveValues = isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues;\n\tif (resolveValues === \"except-theme\" && lookup.fromTheme) return `${THEME_REF_PREFIX}${lookup.themeKey}${opacity !== void 0 ? `/${opacity}` : \"\"}`;\n\tlet value = resolveVariableValue(property, lookup.value, resolveValues);\n\tif (opacity !== void 0) value = isWeb ? `color-mix(in srgb, ${value} ${opacity}%, transparent)` : normalizeColor(value, opacity / 100);\n\treturn value;\n}\nconst letterFreeCallPattern = /^[A-Za-z-]+\\([^A-Za-z]*\\)$/;\nfunction resolveEmbeddedTokens(state, property, raw) {\n\tif (letterFreeCallPattern.test(raw)) return raw;\n\treturn raw.replace(/[$A-Za-z_][\\w.$-]*(?:\\/\\d+)?/g, (word, index) => {\n\t\tif (word.charCodeAt(0) !== 36) {\n\t\t\tconst before = raw.charCodeAt(index - 1);\n\t\t\tif (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(index - 2) === 45 || raw.charCodeAt(index + word.length) === 40) return word;\n\t\t}\n\t\tconst value = configuredValue(state, property, word);\n\t\treturn value === word ? word : String(value);\n\t});\n}\nfunction normalizeTransitionNames(state, raw) {\n\tlet quote = 0;\n\tlet depth = 0;\n\tlet copyFrom = 0;\n\tlet out = \"\";\n\tfor (let index = 0; index < raw.length; index++) {\n\t\tconst code = raw.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) {\n\t\t\tquote = code;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 40) {\n\t\t\tdepth++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 41) {\n\t\t\tdepth--;\n\t\t\tcontinue;\n\t\t}\n\t\tif (depth || !(code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) || index > 1 && raw.charCodeAt(index - 1) === 45 && raw.charCodeAt(index - 2) === 45) continue;\n\t\tlet end = index + 1;\n\t\twhile (end < raw.length) {\n\t\t\tconst next = raw.charCodeAt(end);\n\t\t\tif (next >= 48 && next <= 57 || next >= 65 && next <= 90 || next >= 97 && next <= 122 || next === 45 || next === 95) end++;\n\t\t\telse break;\n\t\t}\n\t\tif (raw.charCodeAt(end) !== 40) {\n\t\t\tconst authored = raw.slice(index, end);\n\t\t\tlet property = state.conf.shorthands[authored] || authored;\n\t\t\tif (property === \"x\" || property === \"y\") property = \"translate\";\n\t\t\telse if (property === \"scaleX\" || property === \"scaleY\") property = \"scale\";\n\t\t\telse if (legacyTransformParts.has(property)) property = \"transform\";\n\t\t\tif (property !== authored || /[A-Z]/.test(property)) {\n\t\t\t\tout += raw.slice(copyFrom, index);\n\t\t\t\tout += property.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n\t\t\t\tcopyFrom = end;\n\t\t\t}\n\t\t}\n\t\tindex = end - 1;\n\t}\n\treturn copyFrom ? out + raw.slice(copyFrom) : raw;\n}\nfunction directStyleSignature(property, value, conditionKey = \"\") {\n\treturn `\u001f${property}\u001f${conditionKey}\u001e${String(value)}`;\n}\nfunction directAtomic(state, property, value, condition, isDefault = false) {\n\tconst atomics = state.flatAtomics ||= {};\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : property;\n\tconst existing = atomics[atomicKey];\n\tconst contribution = directStyleSignature(property, value, condition?.key || \"\");\n\tconst signature = existing ? existing.signature + contribution : contribution;\n\tconst next = getCSSStyleAtomic(property, value, condition?.selector, condition?.wrappers, signature, true, atomicKey, condition?.classRepetitions);\n\tif (!next) return;\n\tconst identifier = next[StyleObjectIdentifier];\n\tconst nextRules = next[StyleObjectRules];\n\tconst slotted = condition || atomicKey === \"transition\";\n\tif (!existing) {\n\t\tconst atomic = {\n\t\t\tbaseRules: slotted ? 0 : nextRules.length,\n\t\t\tconditions: void 0,\n\t\t\tsignature,\n\t\t\tstyleObject: next\n\t\t};\n\t\tif (slotted) atomic.conditions = { [atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key]: {\n\t\t\tcount: nextRules.length,\n\t\t\tindex: 0,\n\t\t\tprecedence: condition?.precedence ?? baseClausePrecedence,\n\t\t\tdefault: isDefault\n\t\t} };\n\t\tatomics[atomicKey] = atomic;\n\t} else {\n\t\tconst previousIdentifier = existing.styleObject[StyleObjectIdentifier];\n\t\tconst rules = existing.styleObject[StyleObjectRules];\n\t\tif (!condition && !isDefault && existing.conditions) for (const key in existing.conditions) {\n\t\t\tconst entry = existing.conditions[key];\n\t\t\tif (!entry.default) continue;\n\t\t\trules.splice(entry.index, entry.count);\n\t\t\tdelete existing.conditions[key];\n\t\t\tfor (const otherKey in existing.conditions) {\n\t\t\t\tconst other = existing.conditions[otherKey];\n\t\t\t\tif (other.index > entry.index) other.index -= entry.count;\n\t\t\t}\n\t\t}\n\t\tif (previousIdentifier !== identifier) {\n\t\t\tconst oldSelector = `.${previousIdentifier}`;\n\t\t\tconst newSelector = `.${identifier}`;\n\t\t\tfor (let index = 0; index < rules.length; index++) rules[index] = rules[index].replaceAll(oldSelector, newSelector);\n\t\t}\n\t\tif (slotted) {\n\t\t\tconst slot = atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key;\n\t\t\tconst previous = existing.conditions?.[slot];\n\t\t\tif (previous) {\n\t\t\t\trules.splice(previous.index, previous.count);\n\t\t\t\tif (existing.conditions) for (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry !== previous && entry.index > previous.index) entry.index -= previous.count;\n\t\t\t\t}\n\t\t\t\tdelete existing.conditions[slot];\n\t\t\t}\n\t\t\tconst precedence = condition?.precedence ?? baseClausePrecedence;\n\t\t\tlet insertionIndex = rules.length;\n\t\t\tif (existing.conditions) {\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (compareClausePrecedence(entry.precedence, precedence) > 0 && entry.index < insertionIndex) insertionIndex = entry.index;\n\t\t\t\t}\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry.index >= insertionIndex) entry.index += nextRules.length;\n\t\t\t\t}\n\t\t\t}\n\t\t\t(existing.conditions ||= {})[slot] = {\n\t\t\t\tcount: nextRules.length,\n\t\t\t\tindex: insertionIndex,\n\t\t\t\tprecedence,\n\t\t\t\tdefault: isDefault\n\t\t\t};\n\t\t\trules.splice(insertionIndex, 0, ...nextRules);\n\t\t} else {\n\t\t\tconst difference = nextRules.length - existing.baseRules;\n\t\t\trules.splice(0, existing.baseRules, ...nextRules);\n\t\t\tif (difference && existing.conditions) for (const key in existing.conditions) existing.conditions[key].index += difference;\n\t\t\texisting.baseRules = nextRules.length;\n\t\t}\n\t\texisting.signature = signature;\n\t\texisting.styleObject[StyleObjectIdentifier] = identifier;\n\t\texisting.styleObject[1] = next[1];\n\t}\n\tstate.classNames[atomicKey] = identifier;\n}\nfunction emitBorderStyleDefault(state, property, condition) {\n\tif (!isWeb || !state.flatShouldDoClasses || state.styleProps.noNormalize === false) return;\n\tconst target = borderStyleDefaults[property];\n\tif (!target) return;\n\tconst atomic = state.flatAtomics?.[target];\n\tif (atomic?.baseRules || state.classNames[target] && !atomic || condition && atomic?.conditions?.[condition.key]) return;\n\tdirectAtomic(state, target, \"solid\", condition, true);\n}\nfunction flushDirectStyles(state, clear = false) {\n\tconst direct = state;\n\tconst atomics = direct.flatAtomics;\n\tif (!atomics) return;\n\tfor (const property in atomics) {\n\t\tconst styleObject = atomics[property].styleObject;\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n\tif (clear) direct.flatAtomics = void 0;\n}\nfunction getDirectDynamicThemeAccess(state) {\n\treturn state.flatDynamicThemeAccess;\n}\nfunction emitProperty(state, property, value, condition, merge, originalValue, contextOnly) {\n\tconst direct = state;\n\tif (condition?.enter) (state.flatEnterKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (condition?.exit) (state.flatExitKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (!isWeb && condition?.theme) {\n\t\tif (supportsDynamicColorIOS && isColorStyleKey(property)) {\n\t\t\tconst schemes = (direct.flatDynamicColors ||= {})[property] ||= {};\n\t\t\tschemes[condition.theme] = typeof originalValue === \"string\" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;\n\t\t\tmerge(state, property, { dynamic: { ...schemes } }, 1, false, originalValue);\n\t\t\treturn;\n\t\t}\n\t\tdirect.flatDynamicThemeAccess = true;\n\t}\n\tif (contextOnly) {\n\t\tif (!condition || condition.active) (state.overriddenContextProps ||= {})[property] = originalValue;\n\t\treturn;\n\t}\n\tif (isWeb && state.flatShouldDoClasses) {\n\t\tif (!condition) {\n\t\t\tif (state.style) delete state.style[property];\n\t\t}\n\t\tdirectAtomic(state, property, value, condition);\n\t\treturn;\n\t}\n\tif (condition) {\n\t\tif (!condition.active) return;\n\t\tconst previous = direct.flatPrecedence?.[property];\n\t\tif (previous && compareClausePrecedence(condition.precedence, previous) < 0) return;\n\t\t(direct.flatPrecedence ||= {})[property] = condition.precedence;\n\t\t(state.flatActiveConditions ||= {})[property] = true;\n\t} else if (state.flatActiveConditions?.[property]) return;\n\tmerge(state, property, value, 1, true, originalValue);\n}\nfunction splitComponents(value) {\n\tconst parts = [];\n\tlet start = 0;\n\tlet quote = 0;\n\tlet depth = 0;\n\tfor (let index = 0; index <= value.length; index++) {\n\t\tconst code = index === value.length ? 32 : value.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) quote = code;\n\t\telse if (code === 40) depth++;\n\t\telse if (code === 41) depth--;\n\t\telse if (!depth && code <= 32) {\n\t\t\tif (index > start) parts.push(value.slice(start, index));\n\t\t\tstart = index + 1;\n\t\t}\n\t}\n\treturn parts;\n}\nfunction emitBorder(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb && (property === \"borderBlock\" || property === \"borderInline\")) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`RN has no logical border shorthand \"${property}\"; dropping it`);\n\t\treturn;\n\t}\n\tconst targets = borderTargets[property];\n\tlet width;\n\tlet style;\n\tlet color;\n\tfor (const part of splitComponents(raw)) {\n\t\tconst lower = part.toLowerCase();\n\t\tif (lineStyles.has(lower) || property === \"outline\" && lower === \"auto\") style = part;\n\t\telse if (lower === \"thin\" || lower === \"medium\" || lower === \"thick\" || /^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:[a-z%]+)?$/i.test(part) || /^(?:calc|var|min|max|clamp)\\(/i.test(part)) width = part;\n\t\telse color = part;\n\t}\n\tif (style === \"none\" && width === void 0) width = \"0\";\n\tif (width !== void 0) for (const target of targets.width) emitResolved(state, target, width, condition, merge, originalValue, contextOnly);\n\tif (style !== void 0) {\n\t\tconst styleTargets = !isWeb && property === \"border\" ? [\"borderStyle\"] : targets.style;\n\t\tfor (const target of styleTargets) emitProperty(state, target, style, condition, merge, originalValue, contextOnly);\n\t}\n\tif (color !== void 0) for (const target of targets.color) emitResolved(state, target, color, condition, merge, originalValue, contextOnly);\n}\nfunction emitTextDecoration(state, raw, condition, merge, originalValue, contextOnly) {\n\tfor (const part of splitComponents(raw)) emitResolved(state, part === \"solid\" || part === \"double\" || part === \"dotted\" || part === \"dashed\" || part === \"wavy\" ? \"textDecorationStyle\" : part === \"underline\" || part === \"overline\" || part === \"line-through\" || part === \"none\" ? \"textDecorationLine\" : \"textDecorationColor\", part, condition, merge, originalValue, contextOnly);\n}\nfunction addComposition(state, property) {\n\tif (state.classNames[property]) return;\n\tconst value = property === \"translate\" ? \"var(--t-x, 0px) var(--t-y, 0px)\" : \"var(--t-scale-x, 1) var(--t-scale-y, 1)\";\n\tconst defaults = property === \"translate\" ? \"--t-x:0px;--t-y:0px\" : \"--t-scale-x:1;--t-scale-y:1\";\n\tconst styleObject = getCSSStyleAtomic(property, value, \"\", void 0, void 0, true);\n\tconst identifier = styleObject[StyleObjectIdentifier];\n\tstyleObject[StyleObjectRules].unshift(`:where(.${identifier}){${defaults}}`);\n\tif (shouldInsertStyleRules(identifier)) {\n\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t}\n\tstate.classNames[property] = identifier;\n}\nfunction emitTransform(state, property, value, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb || !state.flatShouldDoClasses) {\n\t\tif (!isWeb && property === \"scale\") {\n\t\t\temitProperty(state, \"scaleX\", value, condition, merge, originalValue, contextOnly);\n\t\t\temitProperty(state, \"scaleY\", value, condition, merge, originalValue, contextOnly);\n\t\t} else emitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tconst targets = property === \"scale\" ? [\"--t-scale-x\", \"--t-scale-y\"] : [property === \"x\" ? \"--t-x\" : property === \"y\" ? \"--t-y\" : property === \"scaleX\" ? \"--t-scale-x\" : property === \"scaleY\" ? \"--t-scale-y\" : \"rotate\"];\n\tfor (const target of targets) {\n\t\tlet targetValue = value;\n\t\tif (typeof targetValue === \"number\") {\n\t\t\tif (target === \"--t-x\" || target === \"--t-y\") targetValue = `${targetValue}px`;\n\t\t\telse if (target === \"rotate\") targetValue = `${targetValue}deg`;\n\t\t}\n\t\temitProperty(state, target, targetValue, condition, merge, originalValue, contextOnly);\n\t\tif (target === \"--t-x\" || target === \"--t-y\") addComposition(state, \"translate\");\n\t\telse if (target.startsWith(\"--t-scale\")) addComposition(state, \"scale\");\n\t}\n}\nfunction emitResolved(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tlet value = configuredValue(state, property, raw);\n\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction shadowUnit(part) {\n\treturn typeof part === \"number\" ? `${part}px` : part || \"0px\";\n}\nfunction emitWebShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatWebShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.shadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tconst color = normalizeColor(shadow.shadowColor, shadow.shadowOpacity ?? 1);\n\tif (!color) return;\n\tconst next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.shadowRadius)} ${color}`;\n\temitProperty(state, \"boxShadow\", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next, null, merge, originalValue, contextOnly);\n}\nfunction emitWebTextShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatTextShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.textShadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tif (!shadow.textShadowColor) return;\n\temitProperty(state, \"textShadow\", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`, null, merge, originalValue, contextOnly);\n}\nfunction emitValue(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (typeof raw === \"string\") raw = raw.trim();\n\tif (isVariable(raw)) raw = resolveVariableValue(property, raw, isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues);\n\temitBorderStyleDefault(state, property, condition);\n\tif (typeof raw === \"string\" && (property === \"transition\" || property === \"transitionProperty\")) raw = normalizeTransitionNames(state, raw);\n\tif (legacyTransformParts.has(property)) {\n\t\tif (isWeb && state.flatShouldDoClasses && state.classNames.transform) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`legacy transform part \"${property}\" is dropped because \"transform\" owns the property`);\n\t\t\treturn;\n\t\t}\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (isWeb && state.flatShouldDoClasses && !condition) {\n\t\t\tconst direct = state;\n\t\t\t(direct.flatLegacyTransforms ||= {})[property] = value2;\n\t\t\temitProperty(state, \"transform\", transformsToString(Object.keys(direct.flatLegacyTransforms).sort().map((key) => ({ [key]: direct.flatLegacyTransforms[key] }))), null, merge, originalValue, contextOnly);\n\t\t} else if (condition && isWeb && state.flatShouldDoClasses) emitProperty(state, \"transform\", `${property}(${value2})`, condition, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webTextShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebTextShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && state.flatShouldDoClasses) {\n\t\tif (property === \"transform\") {\n\t\t\tconst direct = state;\n\t\t\tif (process.env.NODE_ENV === \"development\" && direct.flatLegacyTransforms) for (const part in direct.flatLegacyTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\tdirect.flatLegacyTransforms = void 0;\n\t\t\tif (state.flatTransforms) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") for (const part in state.flatTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\t\tstate.flatTransforms = void 0;\n\t\t\t}\n\t\t}\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"transform\" && Array.isArray(raw)) raw = transformsToString(raw);\n\tif (typeof raw === \"string\" && property in borderTargets) {\n\t\temitBorder(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"textDecoration\") {\n\t\temitTextDecoration(state, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"background\") {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length === 1 && !/^(?:url|image-set|.*gradient)\\(/i.test(parts[0])) {\n\t\t\temitResolved(state, \"backgroundColor\", parts[0], condition, merge, originalValue, contextOnly);\n\t\t\treturn;\n\t\t}\n\t\tif (!isWeb) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native background cannot represent \"${raw}\"; dropping it`);\n\t\t\treturn;\n\t\t}\n\t}\n\tif (property === \"x\" || property === \"y\" || property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" || property === \"rotate\") {\n\t\tlet value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value2 === \"string\" && !value2.startsWith(THEME_REF_PREFIX)) {\n\t\t\tif (property === \"rotate\" && !/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:deg|rad)$/i.test(value2)) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native transform \"${property}\" cannot represent \"${value2}\"; dropping it`);\n\t\t\t\tif (condition?.active && state.flatTransforms) delete state.flatTransforms[property];\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value2)) value2 = Number.parseFloat(value2);\n\t\t\telse if (Number.isFinite(Number(value2))) value2 = Number(value2);\n\t\t}\n\t\temitTransform(state, property, value2, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (isWeb && !state.flatShouldDoClasses && !condition && property === \"borderRadius\") {\n\t\tif (typeof raw === \"string\") emitResolved(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\telse emitProperty(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tlet value = raw;\n\tif (typeof raw === \"string\") {\n\t\tvalue = configuredValue(state, property, raw);\n\t\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\t}\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"boxShadow\" && !condition) state.flatBoxShadow = value;\n\tif (!isWeb && property === \"fontVariant\" && typeof value === \"string\") value = value.split(/[,\\s]+/).filter(Boolean);\n\tconst expanded = state.styleProps.noExpand ? null : expandStyle(property, value, state.conf.settings.styleCompat || \"web\");\n\tif (!expanded) {\n\t\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && expanded.length > 1) {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length > 0 && parts.length <= (expanded.length === 4 ? 4 : 2)) {\n\t\t\tfor (let index = 0; index < expanded.length; index++) {\n\t\t\t\tconst partIndex = index === 0 || parts.length === 1 ? 0 : index === 1 || index === 3 && parts.length < 4 ? 1 : index === 2 && parts.length < 3 ? 0 : index;\n\t\t\t\temitResolved(state, expanded[index][0], parts[partIndex], condition, merge, originalValue, contextOnly);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tfor (let index = 0; index < expanded.length; index++) emitProperty(state, expanded[index][0], expanded[index][1], condition, merge, originalValue, contextOnly);\n}\nfunction emitSegment(state, property, source, start, end, condition, merge, originalValue, contextOnly) {\n\twhile (start < end && source.charCodeAt(start) <= 32) start++;\n\twhile (end > start && source.charCodeAt(end - 1) <= 32) end--;\n\tif (start === end) return false;\n\tif (!condition || condition.emit && (condition.active || isWeb && state.flatShouldDoClasses || !isWeb && condition.theme && supportsDynamicColorIOS && isColorStyleKey(property))) {\n\t\tconst value = source.slice(start, end);\n\t\temitValue(state, property, value, condition, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeStyleString(state, property, source, merge, originalValue, contextOnly = false) {\n\tif (isWeb && source.indexOf(\":\") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`conditional \"${property}\" needs its composite property; dropping it`);\n\t\treturn true;\n\t}\n\tif (source.indexOf(\":\") === -1) {\n\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\treturn true;\n\t}\n\tconst conditions = [];\n\tconst starts = [];\n\tconst ends = [];\n\tlet pending = null;\n\tlet refused = \"\";\n\tlet lifecycle = false;\n\tscanFlatValue(source, {\n\t\tsegment(start, end, isBase) {\n\t\t\tif (start === end) {\n\t\t\t\tif (!isBase && !refused) refused = \"a conditional clause has no value\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconditions.push(pending);\n\t\t\tstarts.push(start);\n\t\t\tends.push(end);\n\t\t},\n\t\tchain(start, end) {\n\t\t\tif (refused) return false;\n\t\t\tconst next = getCondition(state, source.slice(start, end));\n\t\t\tif (!next) {\n\t\t\t\trefused = `unknown modifier \"${source.slice(start, end)}\"`;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && next.unsupportedState) warnOnce(`${property}: \"${next.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\t\t\tpending = next;\n\t\t\tlifecycle ||= !!(next.enter || next.exit);\n\t\t\treturn true;\n\t\t},\n\t\terror(code, index) {\n\t\t\tif (refused) return;\n\t\t\trefused = code === \"invalid-character\" ? `\"${source[index]}\" would end the declaration or rule` : code === \"unterminated-string\" ? \"an unterminated string\" : code === \"unterminated-comment\" ? \"an unterminated \\\"/*\\\" comment\" : code === \"stray-comment-close\" ? \"a stray \\\"*/\\\"\" : \"an unterminated \\\"(\\\"\";\n\t\t}\n\t});\n\tif (refused) {\n\t\tif (property === \"aspectRatio\") {\n\t\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, source, refused);\n\t\treturn true;\n\t}\n\tlet hasBase = false;\n\tlet lastPayloadStart = 0;\n\tfor (let index = 0; index < conditions.length; index++) {\n\t\tconst condition = conditions[index];\n\t\tlastPayloadStart = starts[index];\n\t\tconst emitted = emitSegment(state, property, source, starts[index], ends[index], condition, merge, originalValue, contextOnly);\n\t\tif (!condition && emitted) hasBase = true;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && !hasBase && conditions.length > 0 && (property in tokenCategories.color || property in tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) warnOnce(`${property}=\"${source}\" has multiple values after its first conditional. Write the base value before the first conditional.`);\n\tif ((!isWeb || !state.flatShouldDoClasses) && lifecycle && !hasBase) {\n\t\tconst value = property === \"opacity\" ? 1 : property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" ? 1 : property === \"rotate\" ? \"0deg\" : property === \"x\" || property === \"y\" ? 0 : null;\n\t\tif (value !== null) emitValue(state, property, value, null, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeFrontendValue(state, property, value, merge, contextOnly = false) {\n\tif (value.base !== null) emitValue(state, property, value.base, null, merge, value.base, contextOnly);\n\tfor (const clause of value.clauses) {\n\t\tconst condition = getCondition(state, clause.modifiers.join(\":\"));\n\t\tif (condition && condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, clause.payload, condition, merge, clause.payload, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue, contextOnly = false) {\n\tconst condition = getCondition(state, conditionSource);\n\tif (!condition) {\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, value, `unknown modifier \"${conditionSource}\"`);\n\t\treturn;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && condition.unsupportedState) warnOnce(`${property}: \"${condition.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\tif (condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction contributeStyleValue(state, property, value, merge, originalValue, contextOnly = false) {\n\tif (value === \"safe\" && isSafeAreaKey(property)) {\n\t\tconst expanded = expandSafeAreaValue(property);\n\t\tif (expanded) {\n\t\t\tstate.flatUsesSafeArea = true;\n\t\t\tfor (const [key, resolved] of expanded) emitValue(state, key, resolved, null, merge, originalValue ?? value, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t}\n\tif (typeof value === \"string\") return contributeStyleString(state, property, value, merge, originalValue, contextOnly);\n\tif (value != null) {\n\t\temitValue(state, property, value, null, merge, originalValue ?? value, contextOnly);\n\t\treturn true;\n\t}\n\treturn false;\n}\nfunction clearDirectStyle(state, property) {\n\tconst direct = state;\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : webShadowParts.has(property) ? \"boxShadow\" : webTextShadowParts.has(property) ? \"textShadow\" : legacyTransformParts.has(property) ? \"transform\" : property;\n\tif (direct.flatAtomics) delete direct.flatAtomics[atomicKey];\n\tdelete state.classNames[atomicKey];\n}\n\nexport { clearDirectStyle, contributeFrontendValue, contributeStyleString, contributeStyleValue, contributeVariantClauseValue, directStyleSignature, flushDirectStyles, getCondition, getDirectDynamicThemeAccess, platformMatches };"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB;CAC5B;CACA;CACA;CACA;AACD;AACA,MAAM,iBAAiB;CACtB,OAAO;CACP,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;CACV,MAAM;CACN,SAAS;CACT,aAAa;CACb,UAAU;CACV,SAAS;AACV;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,iCAAiC,IAAI,IAAI;CAC9C;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,qCAAqC,IAAI,IAAI;CAClD;CACA;CACA;AACD,CAAC;AACD,MAAM,6BAA6B,IAAI,IAAI;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,gBAAgB;CACrB,QAAQ;EACP,OAAO;GACN;GACA;GACA;GACA;EACD;EACA,OAAO;GACN;GACA;GACA;GACA;EACD;EACA,OAAO;GACN;GACA;GACA;GACA;EACD;CACD;CACA,WAAW;EACV,OAAO,CAAC,gBAAgB;EACxB,OAAO,CAAC,gBAAgB;EACxB,OAAO,CA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,"file":"directStyle.js","names":[],"sources":["esm/helpers/directStyle.js"],"sourcesContent":["import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from \"@tamagui/constants\";\nimport { StyleObjectIdentifier, StyleObjectRules, nonAnimatableStyleProps, tokenCategories } from \"@tamagui/helpers\";\nimport { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, compareClausePrecedence, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from \"@tamagui/style-grammar/runtime\";\nimport { isVariable } from \"../createVariable\";\nimport { mediaKeyMatch } from \"../hooks/useMedia\";\nimport { warnOnce, warnRefusedValue } from \"./warnOnce\";\nimport { expandStyle } from \"./expandStyle\";\nimport { getCSSStyleAtomic } from \"./getCSSStylesAtomic\";\nimport { isColorStyleKey } from \"./getDynamicVal\";\nimport { shouldInsertStyleRules, updateRules } from \"./insertStyleRule\";\nimport { mediaObjectToString } from \"./mediaObjectToString\";\nimport { normalizeColor } from \"./normalizeColor\";\nimport { getTokenCategoryForProperty, tokenCategoryByProperty } from \"./tokenCategories\";\nimport { resolveSafeAreaVariable } from \"./resolveSafeAreaVariable\";\nimport { expandSafeAreaValue, isSafeAreaKey } from \"./resolveSafeArea\";\nimport { resolveVariableValue } from \"./resolveVariableValue\";\nimport { THEME_REF_PREFIX } from \"./themeRef\";\nimport { transformsToString } from \"./transformsToString\";\n\nconst baseClausePrecedence = [\n\t0,\n\t0,\n\t0,\n\t0\n];\nconst stateSelectors = {\n\thover: \":hover\",\n\tpress: \":active\",\n\tfocus: \":focus\",\n\t\"focus-visible\": \":focus-visible\",\n\t\"focus-within\": \":focus-within\",\n\tdisabled: \"[aria-disabled]\",\n\topen: \"[data-state=\\\"open\\\"]\",\n\tchecked: \"[data-state=\\\"checked\\\"]\",\n\thighlighted: \"[data-highlighted]\",\n\tselected: \"[data-state=\\\"active\\\"]\",\n\tinvalid: \"[aria-invalid=\\\"true\\\"]\"\n};\nconst legacyTransformParts = /* @__PURE__ */ new Set([\n\t\"matrix\",\n\t\"perspective\",\n\t\"rotateX\",\n\t\"rotateY\",\n\t\"rotateZ\",\n\t\"scaleZ\",\n\t\"skewX\",\n\t\"skewY\"\n]);\nconst webShadowParts = /* @__PURE__ */ new Set([\n\t\"shadowColor\",\n\t\"shadowOffset\",\n\t\"shadowOpacity\",\n\t\"shadowRadius\"\n]);\nconst webTextShadowParts = /* @__PURE__ */ new Set([\n\t\"textShadowColor\",\n\t\"textShadowOffset\",\n\t\"textShadowRadius\"\n]);\nconst lineStyles = /* @__PURE__ */ new Set([\n\t\"none\",\n\t\"hidden\",\n\t\"dotted\",\n\t\"dashed\",\n\t\"solid\",\n\t\"double\",\n\t\"groove\",\n\t\"ridge\",\n\t\"inset\",\n\t\"outset\"\n]);\nconst borderTargets = {\n\tborder: {\n\t\twidth: [\n\t\t\t\"borderTopWidth\",\n\t\t\t\"borderRightWidth\",\n\t\t\t\"borderBottomWidth\",\n\t\t\t\"borderLeftWidth\"\n\t\t],\n\t\tstyle: [\n\t\t\t\"borderTopStyle\",\n\t\t\t\"borderRightStyle\",\n\t\t\t\"borderBottomStyle\",\n\t\t\t\"borderLeftStyle\"\n\t\t],\n\t\tcolor: [\n\t\t\t\"borderTopColor\",\n\t\t\t\"borderRightColor\",\n\t\t\t\"borderBottomColor\",\n\t\t\t\"borderLeftColor\"\n\t\t]\n\t},\n\tborderTop: {\n\t\twidth: [\"borderTopWidth\"],\n\t\tstyle: [\"borderTopStyle\"],\n\t\tcolor: [\"borderTopColor\"]\n\t},\n\tborderRight: {\n\t\twidth: [\"borderRightWidth\"],\n\t\tstyle: [\"borderRightStyle\"],\n\t\tcolor: [\"borderRightColor\"]\n\t},\n\tborderBottom: {\n\t\twidth: [\"borderBottomWidth\"],\n\t\tstyle: [\"borderBottomStyle\"],\n\t\tcolor: [\"borderBottomColor\"]\n\t},\n\tborderLeft: {\n\t\twidth: [\"borderLeftWidth\"],\n\t\tstyle: [\"borderLeftStyle\"],\n\t\tcolor: [\"borderLeftColor\"]\n\t},\n\toutline: {\n\t\twidth: [\"outlineWidth\"],\n\t\tstyle: [\"outlineStyle\"],\n\t\tcolor: [\"outlineColor\"]\n\t},\n\tborderBlock: {\n\t\twidth: [\"borderBlockStartWidth\", \"borderBlockEndWidth\"],\n\t\tstyle: [\"borderBlockStartStyle\", \"borderBlockEndStyle\"],\n\t\tcolor: [\"borderBlockStartColor\", \"borderBlockEndColor\"]\n\t},\n\tborderInline: {\n\t\twidth: [\"borderInlineStartWidth\", \"borderInlineEndWidth\"],\n\t\tstyle: [\"borderInlineStartStyle\", \"borderInlineEndStyle\"],\n\t\tcolor: [\"borderInlineStartColor\", \"borderInlineEndColor\"]\n\t}\n};\nconst borderStyleDefaults = {\n\tborderWidth: \"borderStyle\",\n\tborderTopWidth: \"borderTopStyle\",\n\tborderRightWidth: \"borderRightStyle\",\n\tborderBottomWidth: \"borderBottomStyle\",\n\tborderLeftWidth: \"borderLeftStyle\"\n};\nconst mediaQueries = /* @__PURE__ */ new WeakMap();\nconst clausePrecedenceOrders = /* @__PURE__ */ new WeakMap();\nfunction queryFor(state, name) {\n\tlet queries = mediaQueries.get(state.conf);\n\tif (!queries) {\n\t\tqueries = {};\n\t\tconst media = state.conf.media || {};\n\t\tfor (const key in media) queries[key] = mediaObjectToString(media[key]);\n\t\tmediaQueries.set(state.conf, queries);\n\t}\n\treturn queries[name];\n}\nfunction precedenceOrderFor(state) {\n\tlet order = clausePrecedenceOrders.get(state.conf);\n\tif (!order) {\n\t\torder = createClausePrecedenceOrder(state.conf.media);\n\t\tclausePrecedenceOrders.set(state.conf, order);\n\t}\n\treturn order;\n}\nfunction stateIsActive(state, name) {\n\tconst component = state.componentState;\n\tif (name === \"hover\") return !!component.hover;\n\tif (name === \"press\") return !!(component.press || component.pressIn);\n\tif (name === \"focus\") return !!component.focus;\n\tif (name === \"focus-visible\") return !!component.focusVisible;\n\tif (name === \"focus-within\") return !!component.focusWithin;\n\tif (name === \"disabled\") return !!(component.disabled || state.props.disabled);\n\tif (name === \"enter\") return !!component.unmounted;\n\tif (name === \"exit\") return !!state.styleProps.isExiting;\n\treturn false;\n}\nfunction platformMatches(name) {\n\tif (name === \"web\") return isWeb;\n\tif (name === \"native\") return !isWeb;\n\tif (name === \"ios\") return isIos;\n\tif (name === \"android\") return isAndroid;\n\tif (name === \"tvos\") return isIos && isTV;\n\tif (name === \"androidtv\") return isAndroid && isTV;\n\treturn name === \"tv\" && isTV;\n}\nfunction groupCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst stateName = modifier.slice(6, slash === -1 ? void 0 : slash);\n\tconst groupName = slash === -1 ? \"true\" : modifier.slice(slash + 1);\n\tconst selector = stateSelectors[stateName];\n\tif (!selector || !groupName) return false;\n\tout.selector += `:where(.t_group_${groupName}${selector} *)`;\n\tif (stateName === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\tconst component = state.componentState.group?.[groupName];\n\tconst context = state.flatGroupContext?.[groupName];\n\tout.active &&= !!(component?.pseudo ?? context?.state.pseudo)?.[stateName];\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(groupName);\n\treturn true;\n}\nfunction containerCondition(state, modifier, out) {\n\tconst slash = modifier.indexOf(\"/\");\n\tconst size = modifier.slice(1, slash === -1 ? void 0 : slash);\n\tconst name = slash === -1 ? null : modifier.slice(slash + 1);\n\tconst query = queryFor(state, size);\n\tif (!query || name !== null && !name) return false;\n\tconst key = name === null ? \"@\" : `@${name}`;\n\t(out.wrappers ||= []).push(name === null ? `@container ${query}` : `@container ${name} ${query}`);\n\tconst component = state.componentState.group?.[key];\n\tconst context = state.flatGroupContext?.[key];\n\tconst active = component?.media?.[size];\n\tout.active &&= active === void 0 ? !!(context?.state.layout && mediaKeyMatch(size, context.state.layout)) : !!active;\n\t(state.flatGroupKeys ||= /* @__PURE__ */ new Set()).add(key);\n\t(state.flatGroupMedia ||= /* @__PURE__ */ new Set()).add(size);\n\treturn true;\n}\nfunction getCondition(state, source) {\n\tconst out = {\n\t\tkey: \"\",\n\t\tactive: true,\n\t\temit: true,\n\t\tselector: \"\"\n\t};\n\tconst canonical = [];\n\tconst kinds = [];\n\tconst seenModifiers = /* @__PURE__ */ new Set();\n\tlet selfStateSpecificity = 0;\n\tlet start = 0;\n\tfor (let index = 0; index <= source.length; index++) {\n\t\tif (index !== source.length && source.charCodeAt(index) !== 58) continue;\n\t\tlet modifier = canonicalClauseModifier(source.slice(start, index));\n\t\tstart = index + 1;\n\t\tif (!modifier) return null;\n\t\tif (seenModifiers.has(modifier)) continue;\n\t\tseenModifiers.add(modifier);\n\t\tif (modifier.startsWith(\"group-\")) {\n\t\t\tif (!groupCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"group\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier.charCodeAt(0) === 64) {\n\t\t\tif (!containerCondition(state, modifier, out)) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"container\");\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in stateSelectors || modifier === \"enter\" || modifier === \"exit\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"state\");\n\t\t\tselfStateSpecificity++;\n\t\t\tconst selector = stateSelectors[modifier];\n\t\t\tif (!isWeb && modifier !== \"hover\" && modifier !== \"press\" && modifier !== \"focus\" && modifier !== \"focus-visible\" && modifier !== \"focus-within\" && modifier !== \"disabled\" && modifier !== \"enter\" && modifier !== \"exit\") out.unsupportedState = modifier;\n\t\t\tif (modifier === \"enter\" || modifier === \"exit\") {\n\t\t\t\tconst cls = modifier === \"enter\" ? \".t_unmounted\" : \".t_exiting\";\n\t\t\t\tout.selector += `:is(${cls}, ${cls} *)`;\n\t\t\t\tout[modifier] = true;\n\t\t\t} else if (selector) out.selector += selector;\n\t\t\tif (modifier === \"hover\") (out.wrappers ||= []).push(\"@media (hover: hover)\");\n\t\t\tout.active &&= stateIsActive(state, modifier);\n\t\t\tif (modifier === \"hover\" || modifier === \"press\" || modifier === \"focus\" || modifier === \"focus-visible\" || modifier === \"focus-within\") (state.flatStateKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier in (state.conf.media || {})) {\n\t\t\tconst query = queryFor(state, modifier);\n\t\t\tif (!query) return null;\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"media\");\n\t\t\t(out.wrappers ||= []).push(`@media ${query}`);\n\t\t\tout.active &&= !!state.flatMediaState?.[modifier];\n\t\t\t(state.flatMediaKeys ||= /* @__PURE__ */ new Set()).add(modifier);\n\t\t\tcontinue;\n\t\t}\n\t\tif (isRootThemeName(modifier) && modifier in (state.conf.themes || {})) {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"theme\");\n\t\t\tout.theme = modifier;\n\t\t\tout.selector += `:where(.t_${modifier}, .t_${modifier} *)`;\n\t\t\tout.active &&= state.flatThemeName === modifier || state.flatThemeName?.startsWith(`${modifier}_`) === true;\n\t\t\tcontinue;\n\t\t}\n\t\tif (modifier === \"web\" || modifier === \"native\" || modifier === \"ios\" || modifier === \"android\" || modifier === \"tv\" || modifier === \"tvos\" || modifier === \"androidtv\") {\n\t\t\tcanonical.push(modifier);\n\t\t\tkinds.push(\"platform\");\n\t\t\tconst matches = platformMatches(modifier);\n\t\t\tout.active &&= matches;\n\t\t\tout.emit &&= matches;\n\t\t\tcontinue;\n\t\t}\n\t\treturn null;\n\t}\n\tout.key = clauseConditionSetKey(canonical);\n\tout.precedence = getClausePrecedenceKeyFromKinds(canonical, kinds, precedenceOrderFor(state));\n\tout.classRepetitions = clauseSubjectClassRepetitions(out.precedence, selfStateSpecificity);\n\treturn out;\n}\nconst tokenLookup = {\n\tvalue: void 0,\n\tfromTheme: false,\n\tthemeKey: \"\"\n};\nfunction fillTokenLookup(value, fromTheme, themeKey) {\n\ttokenLookup.value = value;\n\ttokenLookup.fromTheme = fromTheme;\n\ttokenLookup.themeKey = themeKey;\n\treturn tokenLookup;\n}\nfunction tokenVariable(state, property, name) {\n\tlet lookupName = name.charCodeAt(0) === 36 ? name.slice(1) : name;\n\tif (property === \"fontFamily\") {\n\t\tconst family = state.conf.fontsParsed[lookupName]?.family;\n\t\treturn family ? fillTokenLookup(family, false, lookupName) : void 0;\n\t}\n\tconst fontKey = property === \"fontSize\" ? \"size\" : property === \"fontWeight\" ? \"weight\" : property === \"lineHeight\" || property === \"letterSpacing\" ? property : void 0;\n\tif (fontKey) {\n\t\tconst value = (state.conf.fontsParsed[state.fontFamily || state.conf.defaultFontToken] || state.conf.fontsParsed[state.conf.defaultFontToken])?.[fontKey]?.[lookupName];\n\t\treturn value ? fillTokenLookup(value, false, lookupName) : void 0;\n\t}\n\tconst category = getTokenCategoryForProperty(property);\n\tconst dot = lookupName.indexOf(\".\");\n\tif (dot !== -1) {\n\t\tconst prefix = lookupName.slice(0, dot);\n\t\tif (!category || prefix === category || prefix === \"color\") lookupName = lookupName.slice(dot + 1);\n\t}\n\tif (category) {\n\t\tconst own = state.conf.tokensParsed[category]?.[lookupName];\n\t\tif (own) return fillTokenLookup(own, false, lookupName);\n\t\tfor (const sibling of [\n\t\t\t\"color\",\n\t\t\t\"space\",\n\t\t\t\"size\",\n\t\t\t\"radius\",\n\t\t\t\"zIndex\"\n\t\t]) if (sibling !== category && state.conf.tokensParsed[sibling]?.[lookupName]) return;\n\t} else {\n\t\tconst first = lookupName.charCodeAt(0);\n\t\tif (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;\n\t}\n\tconst theme = state.theme?.[lookupName] || state.conf.themes?.[state.flatThemeName || \"\"]?.[lookupName];\n\tif (theme) return fillTokenLookup(theme, true, lookupName);\n\tif (category) return;\n\tconst token = state.conf.tokensParsed.space?.[lookupName] || state.conf.tokensParsed.color?.[lookupName];\n\treturn token ? fillTokenLookup(token, false, lookupName) : void 0;\n}\nfunction configuredValue(state, property, raw) {\n\tlet name = raw;\n\tlet opacity;\n\tconst slash = raw.lastIndexOf(\"/\");\n\tif (slash > 0) {\n\t\tconst amount = Number(raw.slice(slash + 1));\n\t\tif (Number.isInteger(amount) && amount >= 0 && amount <= 100) {\n\t\t\tname = raw.slice(0, slash);\n\t\t\topacity = amount;\n\t\t}\n\t}\n\tconst safeArea = resolveSafeAreaVariable(name);\n\tif (safeArea !== void 0) {\n\t\tstate.flatUsesSafeArea = true;\n\t\treturn safeArea;\n\t}\n\tconst lookup = tokenVariable(state, property, name);\n\tif (!lookup || !isVariable(lookup.value)) {\n\t\tif (process.env.NODE_ENV === \"development\" && tokenCategoryByProperty[property] && state.conf.tokensParsed.color?.[name]) warnOnce(`\"${name}\" contributes to \"color\", not \"${property}\"; keeping it literal`);\n\t\treturn raw;\n\t}\n\tconst resolveValues = isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues;\n\tif (resolveValues === \"except-theme\" && lookup.fromTheme) return `${THEME_REF_PREFIX}${lookup.themeKey}${opacity !== void 0 ? `/${opacity}` : \"\"}`;\n\tlet value = resolveVariableValue(property, lookup.value, resolveValues);\n\tif (opacity !== void 0) value = isWeb ? `color-mix(in srgb, ${value} ${opacity}%, transparent)` : normalizeColor(value, opacity / 100);\n\treturn value;\n}\nconst letterFreeCallPattern = /^[A-Za-z-]+\\([^A-Za-z]*\\)$/;\nfunction resolveEmbeddedTokens(state, property, raw) {\n\tif (letterFreeCallPattern.test(raw)) return raw;\n\treturn raw.replace(/[$A-Za-z_][\\w.$-]*(?:\\/\\d+)?/g, (word, index) => {\n\t\tif (word.charCodeAt(0) !== 36) {\n\t\t\tconst before = raw.charCodeAt(index - 1);\n\t\t\tif (before >= 48 && before <= 57 || before === 35 || before === 45 && raw.charCodeAt(index - 2) === 45 || raw.charCodeAt(index + word.length) === 40) return word;\n\t\t}\n\t\tconst value = configuredValue(state, property, word);\n\t\treturn value === word ? word : String(value);\n\t});\n}\nfunction normalizeTransitionNames(state, raw) {\n\tlet quote = 0;\n\tlet depth = 0;\n\tlet copyFrom = 0;\n\tlet out = \"\";\n\tfor (let index = 0; index < raw.length; index++) {\n\t\tconst code = raw.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) {\n\t\t\tquote = code;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 40) {\n\t\t\tdepth++;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 41) {\n\t\t\tdepth--;\n\t\t\tcontinue;\n\t\t}\n\t\tif (depth || !(code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95) || index > 1 && raw.charCodeAt(index - 1) === 45 && raw.charCodeAt(index - 2) === 45) continue;\n\t\tlet end = index + 1;\n\t\twhile (end < raw.length) {\n\t\t\tconst next = raw.charCodeAt(end);\n\t\t\tif (next >= 48 && next <= 57 || next >= 65 && next <= 90 || next >= 97 && next <= 122 || next === 45 || next === 95) end++;\n\t\t\telse break;\n\t\t}\n\t\tif (raw.charCodeAt(end) !== 40) {\n\t\t\tconst authored = raw.slice(index, end);\n\t\t\tlet property = state.conf.shorthands[authored] || authored;\n\t\t\tif (property === \"x\" || property === \"y\") property = \"translate\";\n\t\t\telse if (property === \"scaleX\" || property === \"scaleY\") property = \"scale\";\n\t\t\telse if (legacyTransformParts.has(property)) property = \"transform\";\n\t\t\tif (property !== authored || /[A-Z]/.test(property)) {\n\t\t\t\tout += raw.slice(copyFrom, index);\n\t\t\t\tout += property.replace(/[A-Z]/g, (letter) => `-${letter.toLowerCase()}`);\n\t\t\t\tcopyFrom = end;\n\t\t\t}\n\t\t}\n\t\tindex = end - 1;\n\t}\n\treturn copyFrom ? out + raw.slice(copyFrom) : raw;\n}\nfunction directStyleSignature(property, value, conditionKey = \"\") {\n\treturn `\u001f${property}\u001f${conditionKey}\u001e${String(value)}`;\n}\nfunction directAtomic(state, property, value, condition, isDefault = false) {\n\tconst atomics = state.flatAtomics ||= {};\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : property;\n\tconst existing = atomics[atomicKey];\n\tconst contribution = directStyleSignature(property, value, condition?.key || \"\");\n\tconst signature = existing ? existing.signature + contribution : contribution;\n\tconst next = getCSSStyleAtomic(property, value, condition?.selector, condition?.wrappers, signature, true, atomicKey, condition?.classRepetitions);\n\tif (!next) return;\n\tconst identifier = next[StyleObjectIdentifier];\n\tconst nextRules = next[StyleObjectRules];\n\tconst slotted = condition || atomicKey === \"transition\";\n\tif (!existing) {\n\t\tconst atomic = {\n\t\t\tbaseRules: slotted ? 0 : nextRules.length,\n\t\t\tconditions: void 0,\n\t\t\tsignature,\n\t\t\tstyleObject: next\n\t\t};\n\t\tif (slotted) atomic.conditions = { [atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key]: {\n\t\t\tcount: nextRules.length,\n\t\t\tindex: 0,\n\t\t\tprecedence: condition?.precedence ?? baseClausePrecedence,\n\t\t\tdefault: isDefault\n\t\t} };\n\t\tatomics[atomicKey] = atomic;\n\t} else {\n\t\tconst previousIdentifier = existing.styleObject[StyleObjectIdentifier];\n\t\tconst rules = existing.styleObject[StyleObjectRules];\n\t\tif (!condition && !isDefault && existing.conditions) for (const key in existing.conditions) {\n\t\t\tconst entry = existing.conditions[key];\n\t\t\tif (!entry.default) continue;\n\t\t\trules.splice(entry.index, entry.count);\n\t\t\tdelete existing.conditions[key];\n\t\t\tfor (const otherKey in existing.conditions) {\n\t\t\t\tconst other = existing.conditions[otherKey];\n\t\t\t\tif (other.index > entry.index) other.index -= entry.count;\n\t\t\t}\n\t\t}\n\t\tif (previousIdentifier !== identifier) {\n\t\t\tconst oldSelector = `.${previousIdentifier}`;\n\t\t\tconst newSelector = `.${identifier}`;\n\t\t\tfor (let index = 0; index < rules.length; index++) rules[index] = rules[index].replaceAll(oldSelector, newSelector);\n\t\t}\n\t\tif (slotted) {\n\t\t\tconst slot = atomicKey === \"transition\" ? `${condition?.key || \"\"}\\0${property}` : condition.key;\n\t\t\tconst previous = existing.conditions?.[slot];\n\t\t\tif (previous) {\n\t\t\t\trules.splice(previous.index, previous.count);\n\t\t\t\tif (existing.conditions) for (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry !== previous && entry.index > previous.index) entry.index -= previous.count;\n\t\t\t\t}\n\t\t\t\tdelete existing.conditions[slot];\n\t\t\t}\n\t\t\tconst precedence = condition?.precedence ?? baseClausePrecedence;\n\t\t\tlet insertionIndex = rules.length;\n\t\t\tif (existing.conditions) {\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (compareClausePrecedence(entry.precedence, precedence) > 0 && entry.index < insertionIndex) insertionIndex = entry.index;\n\t\t\t\t}\n\t\t\t\tfor (const key in existing.conditions) {\n\t\t\t\t\tconst entry = existing.conditions[key];\n\t\t\t\t\tif (entry.index >= insertionIndex) entry.index += nextRules.length;\n\t\t\t\t}\n\t\t\t}\n\t\t\t(existing.conditions ||= {})[slot] = {\n\t\t\t\tcount: nextRules.length,\n\t\t\t\tindex: insertionIndex,\n\t\t\t\tprecedence,\n\t\t\t\tdefault: isDefault\n\t\t\t};\n\t\t\trules.splice(insertionIndex, 0, ...nextRules);\n\t\t} else {\n\t\t\tconst difference = nextRules.length - existing.baseRules;\n\t\t\trules.splice(0, existing.baseRules, ...nextRules);\n\t\t\tif (difference && existing.conditions) for (const key in existing.conditions) existing.conditions[key].index += difference;\n\t\t\texisting.baseRules = nextRules.length;\n\t\t}\n\t\texisting.signature = signature;\n\t\texisting.styleObject[StyleObjectIdentifier] = identifier;\n\t\texisting.styleObject[1] = next[1];\n\t}\n\tstate.classNames[atomicKey] = identifier;\n}\nfunction emitBorderStyleDefault(state, property, condition) {\n\tif (!isWeb || !state.flatShouldDoClasses || state.styleProps.noNormalize === false) return;\n\tconst target = borderStyleDefaults[property];\n\tif (!target) return;\n\tconst atomic = state.flatAtomics?.[target];\n\tif (atomic?.baseRules || state.classNames[target] && !atomic || condition && atomic?.conditions?.[condition.key]) return;\n\tdirectAtomic(state, target, \"solid\", condition, true);\n}\nfunction flushDirectStyles(state, clear = false) {\n\tconst direct = state;\n\tconst atomics = direct.flatAtomics;\n\tif (!atomics) return;\n\tfor (const property in atomics) {\n\t\tconst styleObject = atomics[property].styleObject;\n\t\tconst identifier = styleObject[StyleObjectIdentifier];\n\t\tif (shouldInsertStyleRules(identifier)) {\n\t\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t\t}\n\t}\n\tif (clear) direct.flatAtomics = void 0;\n}\nfunction getDirectDynamicThemeAccess(state) {\n\treturn state.flatDynamicThemeAccess;\n}\nfunction emitProperty(state, property, value, condition, merge, originalValue, contextOnly) {\n\tconst direct = state;\n\tif (condition?.enter) (state.flatEnterKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (condition?.exit) (state.flatExitKeys ||= /* @__PURE__ */ new Set()).add(property);\n\tif (!isWeb && condition?.theme) {\n\t\tif (supportsDynamicColorIOS && isColorStyleKey(property)) {\n\t\t\tconst schemes = (direct.flatDynamicColors ||= {})[property] ||= {};\n\t\t\tschemes[condition.theme] = typeof originalValue === \"string\" && /^[a-z]+$/i.test(originalValue) ? originalValue : value;\n\t\t\tmerge(state, property, { dynamic: { ...schemes } }, 1, false, originalValue);\n\t\t\treturn;\n\t\t}\n\t\tdirect.flatDynamicThemeAccess = true;\n\t}\n\tif (contextOnly) {\n\t\tif (!condition || condition.active) (state.overriddenContextProps ||= {})[property] = originalValue;\n\t\treturn;\n\t}\n\tconst shouldPromoteAnimatedStyle = isWeb && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && !state.animationDriver?.isReactNative && property in nonAnimatableStyleProps;\n\tif (isWeb && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {\n\t\tif (!condition) {\n\t\t\tif (state.style) delete state.style[property];\n\t\t}\n\t\tdirectAtomic(state, property, value, condition);\n\t\treturn;\n\t}\n\tif (condition) {\n\t\tif (!condition.active) return;\n\t\tconst previous = direct.flatPrecedence?.[property];\n\t\tif (previous && compareClausePrecedence(condition.precedence, previous) < 0) return;\n\t\t(direct.flatPrecedence ||= {})[property] = condition.precedence;\n\t\t(state.flatActiveConditions ||= {})[property] = true;\n\t} else if (state.flatActiveConditions?.[property]) return;\n\tmerge(state, property, value, 1, true, originalValue);\n}\nfunction splitComponents(value) {\n\tconst parts = [];\n\tlet start = 0;\n\tlet quote = 0;\n\tlet depth = 0;\n\tfor (let index = 0; index <= value.length; index++) {\n\t\tconst code = index === value.length ? 32 : value.charCodeAt(index);\n\t\tif (quote) {\n\t\t\tif (code === 92) index++;\n\t\t\telse if (code === quote) quote = 0;\n\t\t\tcontinue;\n\t\t}\n\t\tif (code === 34 || code === 39) quote = code;\n\t\telse if (code === 40) depth++;\n\t\telse if (code === 41) depth--;\n\t\telse if (!depth && code <= 32) {\n\t\t\tif (index > start) parts.push(value.slice(start, index));\n\t\t\tstart = index + 1;\n\t\t}\n\t}\n\treturn parts;\n}\nfunction emitBorder(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb && (property === \"borderBlock\" || property === \"borderInline\")) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`RN has no logical border shorthand \"${property}\"; dropping it`);\n\t\treturn;\n\t}\n\tconst targets = borderTargets[property];\n\tlet width;\n\tlet style;\n\tlet color;\n\tfor (const part of splitComponents(raw)) {\n\t\tconst lower = part.toLowerCase();\n\t\tif (lineStyles.has(lower) || property === \"outline\" && lower === \"auto\") style = part;\n\t\telse if (lower === \"thin\" || lower === \"medium\" || lower === \"thick\" || /^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:[a-z%]+)?$/i.test(part) || /^(?:calc|var|min|max|clamp)\\(/i.test(part)) width = part;\n\t\telse color = part;\n\t}\n\tif (style === \"none\" && width === void 0) width = \"0\";\n\tif (width !== void 0) for (const target of targets.width) emitResolved(state, target, width, condition, merge, originalValue, contextOnly);\n\tif (style !== void 0) {\n\t\tconst styleTargets = !isWeb && property === \"border\" ? [\"borderStyle\"] : targets.style;\n\t\tfor (const target of styleTargets) emitProperty(state, target, style, condition, merge, originalValue, contextOnly);\n\t}\n\tif (color !== void 0) for (const target of targets.color) emitResolved(state, target, color, condition, merge, originalValue, contextOnly);\n}\nfunction emitTextDecoration(state, raw, condition, merge, originalValue, contextOnly) {\n\tfor (const part of splitComponents(raw)) emitResolved(state, part === \"solid\" || part === \"double\" || part === \"dotted\" || part === \"dashed\" || part === \"wavy\" ? \"textDecorationStyle\" : part === \"underline\" || part === \"overline\" || part === \"line-through\" || part === \"none\" ? \"textDecorationLine\" : \"textDecorationColor\", part, condition, merge, originalValue, contextOnly);\n}\nfunction addComposition(state, property) {\n\tif (state.classNames[property]) return;\n\tconst value = property === \"translate\" ? \"var(--t-x, 0px) var(--t-y, 0px)\" : \"var(--t-scale-x, 1) var(--t-scale-y, 1)\";\n\tconst defaults = property === \"translate\" ? \"--t-x:0px;--t-y:0px\" : \"--t-scale-x:1;--t-scale-y:1\";\n\tconst styleObject = getCSSStyleAtomic(property, value, \"\", void 0, void 0, true);\n\tconst identifier = styleObject[StyleObjectIdentifier];\n\tstyleObject[StyleObjectRules].unshift(`:where(.${identifier}){${defaults}}`);\n\tif (shouldInsertStyleRules(identifier)) {\n\t\tupdateRules(identifier, styleObject[StyleObjectRules]);\n\t\tstate.flatRulesToInsert[identifier] = styleObject;\n\t}\n\tstate.classNames[property] = identifier;\n}\nfunction emitTransform(state, property, value, condition, merge, originalValue, contextOnly) {\n\tif (!isWeb || !state.flatShouldDoClasses) {\n\t\tif (!isWeb && property === \"scale\") {\n\t\t\temitProperty(state, \"scaleX\", value, condition, merge, originalValue, contextOnly);\n\t\t\temitProperty(state, \"scaleY\", value, condition, merge, originalValue, contextOnly);\n\t\t} else emitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tconst targets = property === \"scale\" ? [\"--t-scale-x\", \"--t-scale-y\"] : [property === \"x\" ? \"--t-x\" : property === \"y\" ? \"--t-y\" : property === \"scaleX\" ? \"--t-scale-x\" : property === \"scaleY\" ? \"--t-scale-y\" : \"rotate\"];\n\tfor (const target of targets) {\n\t\tlet targetValue = value;\n\t\tif (typeof targetValue === \"number\") {\n\t\t\tif (target === \"--t-x\" || target === \"--t-y\") targetValue = `${targetValue}px`;\n\t\t\telse if (target === \"rotate\") targetValue = `${targetValue}deg`;\n\t\t}\n\t\temitProperty(state, target, targetValue, condition, merge, originalValue, contextOnly);\n\t\tif (target === \"--t-x\" || target === \"--t-y\") addComposition(state, \"translate\");\n\t\telse if (target.startsWith(\"--t-scale\")) addComposition(state, \"scale\");\n\t}\n}\nfunction emitResolved(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tlet value = configuredValue(state, property, raw);\n\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction shadowUnit(part) {\n\treturn typeof part === \"number\" ? `${part}px` : part || \"0px\";\n}\nfunction emitWebShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatWebShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.shadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tconst color = normalizeColor(shadow.shadowColor, shadow.shadowOpacity ?? 1);\n\tif (!color) return;\n\tconst next = `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.shadowRadius)} ${color}`;\n\temitProperty(state, \"boxShadow\", state.flatBoxShadow ? `${state.flatBoxShadow}, ${next}` : next, null, merge, originalValue, contextOnly);\n}\nfunction emitWebTextShadow(state, property, value, merge, originalValue, contextOnly) {\n\tconst shadow = state.flatTextShadow ||= {};\n\tshadow[property] = value;\n\tconst offset = shadow.textShadowOffset || {\n\t\twidth: 0,\n\t\theight: 0\n\t};\n\tif (!shadow.textShadowColor) return;\n\temitProperty(state, \"textShadow\", `${shadowUnit(offset.width)} ${shadowUnit(offset.height)} ${shadowUnit(shadow.textShadowRadius)} ${shadow.textShadowColor}`, null, merge, originalValue, contextOnly);\n}\nfunction emitValue(state, property, raw, condition, merge, originalValue, contextOnly) {\n\tif (typeof raw === \"string\") raw = raw.trim();\n\tif (isVariable(raw)) raw = resolveVariableValue(property, raw, isWeb && !state.flatShouldDoClasses && state.styleProps.resolveValues === \"auto\" ? \"value\" : state.styleProps.resolveValues);\n\temitBorderStyleDefault(state, property, condition);\n\tif (typeof raw === \"string\" && (property === \"transition\" || property === \"transitionProperty\")) raw = normalizeTransitionNames(state, raw);\n\tif (legacyTransformParts.has(property)) {\n\t\tif (isWeb && state.flatShouldDoClasses && state.classNames.transform) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`legacy transform part \"${property}\" is dropped because \"transform\" owns the property`);\n\t\t\treturn;\n\t\t}\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (isWeb && state.flatShouldDoClasses && !condition) {\n\t\t\tconst direct = state;\n\t\t\t(direct.flatLegacyTransforms ||= {})[property] = value2;\n\t\t\temitProperty(state, \"transform\", transformsToString(Object.keys(direct.flatLegacyTransforms).sort().map((key) => ({ [key]: direct.flatLegacyTransforms[key] }))), null, merge, originalValue, contextOnly);\n\t\t} else if (condition && isWeb && state.flatShouldDoClasses) emitProperty(state, \"transform\", `${property}(${value2})`, condition, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && webTextShadowParts.has(property)) {\n\t\tconst value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif (state.flatShouldDoClasses) emitWebTextShadow(state, property, value2, merge, originalValue, contextOnly);\n\t\telse merge(state, property, value2, 1, false, originalValue);\n\t\treturn;\n\t}\n\tif (isWeb && state.flatShouldDoClasses) {\n\t\tif (property === \"transform\") {\n\t\t\tconst direct = state;\n\t\t\tif (process.env.NODE_ENV === \"development\" && direct.flatLegacyTransforms) for (const part in direct.flatLegacyTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\tdirect.flatLegacyTransforms = void 0;\n\t\t\tif (state.flatTransforms) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") for (const part in state.flatTransforms) warnOnce(`legacy transform part \"${part}\" is dropped because \"transform\" owns the property`);\n\t\t\t\tstate.flatTransforms = void 0;\n\t\t\t}\n\t\t}\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"transform\" && Array.isArray(raw)) raw = transformsToString(raw);\n\tif (typeof raw === \"string\" && property in borderTargets) {\n\t\temitBorder(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"textDecoration\") {\n\t\temitTextDecoration(state, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && property === \"background\") {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length === 1 && !/^(?:url|image-set|.*gradient)\\(/i.test(parts[0])) {\n\t\t\temitResolved(state, \"backgroundColor\", parts[0], condition, merge, originalValue, contextOnly);\n\t\t\treturn;\n\t\t}\n\t\tif (!isWeb) {\n\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native background cannot represent \"${raw}\"; dropping it`);\n\t\t\treturn;\n\t\t}\n\t}\n\tif (property === \"x\" || property === \"y\" || property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" || property === \"rotate\") {\n\t\tlet value2 = typeof raw === \"string\" ? configuredValue(state, property, raw) : raw;\n\t\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value2 === \"string\" && !value2.startsWith(THEME_REF_PREFIX)) {\n\t\t\tif (property === \"rotate\" && !/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:deg|rad)$/i.test(value2)) {\n\t\t\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`native transform \"${property}\" cannot represent \"${value2}\"; dropping it`);\n\t\t\t\tif (condition?.active && state.flatTransforms) delete state.flatTransforms[property];\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value2)) value2 = Number.parseFloat(value2);\n\t\t\telse if (Number.isFinite(Number(value2))) value2 = Number(value2);\n\t\t}\n\t\temitTransform(state, property, value2, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (isWeb && !state.flatShouldDoClasses && !condition && property === \"borderRadius\") {\n\t\tif (typeof raw === \"string\") emitResolved(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\telse emitProperty(state, property, raw, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tlet value = raw;\n\tif (typeof raw === \"string\") {\n\t\tvalue = configuredValue(state, property, raw);\n\t\tif (value === raw && /[\\s,(]/.test(raw)) value = resolveEmbeddedTokens(state, property, raw);\n\t}\n\tif ((!isWeb || !state.flatShouldDoClasses) && typeof value === \"string\") {\n\t\tif (/^-?(?:\\d+\\.?\\d*|\\.\\d+)(?:px|dp)$/i.test(value)) value = Number.parseFloat(value);\n\t\telse if (value !== \"\" && Number.isFinite(Number(value))) value = Number(value);\n\t}\n\tif (isWeb && state.flatShouldDoClasses && property === \"boxShadow\" && !condition) state.flatBoxShadow = value;\n\tif (!isWeb && property === \"fontVariant\" && typeof value === \"string\") value = value.split(/[,\\s]+/).filter(Boolean);\n\tconst expanded = state.styleProps.noExpand ? null : expandStyle(property, value, state.conf.settings.styleCompat || \"web\");\n\tif (!expanded) {\n\t\temitProperty(state, property, value, condition, merge, originalValue, contextOnly);\n\t\treturn;\n\t}\n\tif (typeof raw === \"string\" && expanded.length > 1) {\n\t\tconst parts = splitComponents(raw);\n\t\tif (parts.length > 0 && parts.length <= (expanded.length === 4 ? 4 : 2)) {\n\t\t\tfor (let index = 0; index < expanded.length; index++) {\n\t\t\t\tconst partIndex = index === 0 || parts.length === 1 ? 0 : index === 1 || index === 3 && parts.length < 4 ? 1 : index === 2 && parts.length < 3 ? 0 : index;\n\t\t\t\temitResolved(state, expanded[index][0], parts[partIndex], condition, merge, originalValue, contextOnly);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t}\n\tfor (let index = 0; index < expanded.length; index++) emitProperty(state, expanded[index][0], expanded[index][1], condition, merge, originalValue, contextOnly);\n}\nfunction emitSegment(state, property, source, start, end, condition, merge, originalValue, contextOnly) {\n\twhile (start < end && source.charCodeAt(start) <= 32) start++;\n\twhile (end > start && source.charCodeAt(end - 1) <= 32) end--;\n\tif (start === end) return false;\n\tif (!condition || condition.emit && (condition.active || isWeb && state.flatShouldDoClasses || !isWeb && condition.theme && supportsDynamicColorIOS && isColorStyleKey(property))) {\n\t\tconst value = source.slice(start, end);\n\t\temitValue(state, property, value, condition, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeStyleString(state, property, source, merge, originalValue, contextOnly = false) {\n\tif (isWeb && source.indexOf(\":\") !== -1 && (webShadowParts.has(property) || legacyTransformParts.has(property))) {\n\t\tif (process.env.NODE_ENV === \"development\") warnOnce(`conditional \"${property}\" needs its composite property; dropping it`);\n\t\treturn true;\n\t}\n\tif (source.indexOf(\":\") === -1) {\n\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\treturn true;\n\t}\n\tconst conditions = [];\n\tconst starts = [];\n\tconst ends = [];\n\tlet pending = null;\n\tlet refused = \"\";\n\tlet lifecycle = false;\n\tscanFlatValue(source, {\n\t\tsegment(start, end, isBase) {\n\t\t\tif (start === end) {\n\t\t\t\tif (!isBase && !refused) refused = \"a conditional clause has no value\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconditions.push(pending);\n\t\t\tstarts.push(start);\n\t\t\tends.push(end);\n\t\t},\n\t\tchain(start, end) {\n\t\t\tif (refused) return false;\n\t\t\tconst next = getCondition(state, source.slice(start, end));\n\t\t\tif (!next) {\n\t\t\t\trefused = `unknown modifier \"${source.slice(start, end)}\"`;\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (process.env.NODE_ENV === \"development\" && next.unsupportedState) warnOnce(`${property}: \"${next.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\t\t\tpending = next;\n\t\t\tlifecycle ||= !!(next.enter || next.exit);\n\t\t\treturn true;\n\t\t},\n\t\terror(code, index) {\n\t\t\tif (refused) return;\n\t\t\trefused = code === \"invalid-character\" ? `\"${source[index]}\" would end the declaration or rule` : code === \"unterminated-string\" ? \"an unterminated string\" : code === \"unterminated-comment\" ? \"an unterminated \\\"/*\\\" comment\" : code === \"stray-comment-close\" ? \"a stray \\\"*/\\\"\" : \"an unterminated \\\"(\\\"\";\n\t\t}\n\t});\n\tif (refused) {\n\t\tif (property === \"aspectRatio\") {\n\t\t\temitValue(state, property, source, null, merge, originalValue ?? source, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, source, refused);\n\t\treturn true;\n\t}\n\tlet hasBase = false;\n\tlet lastPayloadStart = 0;\n\tfor (let index = 0; index < conditions.length; index++) {\n\t\tconst condition = conditions[index];\n\t\tlastPayloadStart = starts[index];\n\t\tconst emitted = emitSegment(state, property, source, starts[index], ends[index], condition, merge, originalValue, contextOnly);\n\t\tif (!condition && emitted) hasBase = true;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && !hasBase && conditions.length > 0 && (property in tokenCategories.color || property in tokenCategoryByProperty) && splitComponents(source.slice(lastPayloadStart)).length > 1) warnOnce(`${property}=\"${source}\" has multiple values after its first conditional. Write the base value before the first conditional.`);\n\tif ((!isWeb || !state.flatShouldDoClasses) && lifecycle && !hasBase) {\n\t\tconst value = property === \"opacity\" ? 1 : property === \"scale\" || property === \"scaleX\" || property === \"scaleY\" ? 1 : property === \"rotate\" ? \"0deg\" : property === \"x\" || property === \"y\" ? 0 : null;\n\t\tif (value !== null) emitValue(state, property, value, null, merge, value, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeFrontendValue(state, property, value, merge, contextOnly = false) {\n\tif (value.base !== null) emitValue(state, property, value.base, null, merge, value.base, contextOnly);\n\tfor (const clause of value.clauses) {\n\t\tconst condition = getCondition(state, clause.modifiers.join(\":\"));\n\t\tif (condition && condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, clause.payload, condition, merge, clause.payload, contextOnly);\n\t}\n\treturn true;\n}\nfunction contributeVariantClauseValue(state, property, value, conditionSource, merge, originalValue, contextOnly = false) {\n\tconst condition = getCondition(state, conditionSource);\n\tif (!condition) {\n\t\tif (process.env.NODE_ENV === \"development\") warnRefusedValue(property, value, `unknown modifier \"${conditionSource}\"`);\n\t\treturn;\n\t}\n\tif (process.env.NODE_ENV === \"development\" && condition.unsupportedState) warnOnce(`${property}: \"${condition.unsupportedState}:\" has no native component-state source; dropping the clause`);\n\tif (condition.emit && (condition.active || isWeb && state.flatShouldDoClasses)) emitValue(state, property, value, condition, merge, originalValue, contextOnly);\n}\nfunction contributeStyleValue(state, property, value, merge, originalValue, contextOnly = false) {\n\tif (value === \"safe\" && isSafeAreaKey(property)) {\n\t\tconst expanded = expandSafeAreaValue(property);\n\t\tif (expanded) {\n\t\t\tstate.flatUsesSafeArea = true;\n\t\t\tfor (const [key, resolved] of expanded) emitValue(state, key, resolved, null, merge, originalValue ?? value, contextOnly);\n\t\t\treturn true;\n\t\t}\n\t}\n\tif (typeof value === \"string\") return contributeStyleString(state, property, value, merge, originalValue, contextOnly);\n\tif (value != null) {\n\t\temitValue(state, property, value, null, merge, originalValue ?? value, contextOnly);\n\t\treturn true;\n\t}\n\treturn false;\n}\nfunction clearDirectStyle(state, property) {\n\tconst direct = state;\n\tconst atomicKey = property.startsWith(\"transition\") ? \"transition\" : webShadowParts.has(property) ? \"boxShadow\" : webTextShadowParts.has(property) ? \"textShadow\" : legacyTransformParts.has(property) ? \"transform\" : property;\n\tif (direct.flatAtomics) delete direct.flatAtomics[atomicKey];\n\tdelete state.classNames[atomicKey];\n}\n\nexport { clearDirectStyle, contributeFrontendValue, contributeStyleString, contributeStyleValue, contributeVariantClauseValue, directStyleSignature, flushDirectStyles, getCondition, getDirectDynamicThemeAccess, platformMatches };"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAM,uBAAuB;CAC5B;CACA;CACA;CACA;AACD;AACA,MAAM,iBAAiB;CACtB,OAAO;CACP,OAAO;CACP,OAAO;CACP,iBAAiB;CACjB,gBAAgB;CAChB,UAAU;CACV,MAAM;CACN,SAAS;CACT,aAAa;CACb,UAAU;CACV,SAAS;AACV;AACA,MAAM,uCAAuC,IAAI,IAAI;CACpD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,iCAAiC,IAAI,IAAI;CAC9C;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,qCAAqC,IAAI,IAAI;CAClD;CACA;CACA;AACD,CAAC;AACD,MAAM,6BAA6B,IAAI,IAAI;CAC1C;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,gBAAgB;CACrB,QAAQ;EACP,OAAO;GACN;GACA;GACA;GACA;EACD;EACA,OAAO;GACN;GACA;GACA;GACA;EACD;EACA,OAAO;GACN;GACA;GACA;GACA;EACD;CACD;CACA,WAAW;EACV,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,WAAW,YAAY,IAAI,eAAe,eAAe,IAAI,QAAQ,IAAI,cAAc,mBAAmB,IAAI,QAAQ,IAAI,eAAe,qBAAqB,IAAI,QAAQ,IAAI,cAAc;CACvN,IAAI,OAAO,aAAa,OAAO,OAAO,YAAY;CAClD,OAAO,MAAM,WAAW;AACzB"}
@@ -1,5 +1,5 @@
1
1
  import { isAndroid, isIos, isTV, isWeb, supportsDynamicColorIOS } from "@tamagui/constants";
2
- import { StyleObjectIdentifier, StyleObjectRules, tokenCategories } from "@tamagui/helpers";
2
+ import { StyleObjectIdentifier, StyleObjectRules, nonAnimatableStyleProps, tokenCategories } from "@tamagui/helpers";
3
3
  import { canonicalClauseModifier, clauseConditionSetKey, clauseSubjectClassRepetitions, compareClausePrecedence, createClausePrecedenceOrder, getClausePrecedenceKeyFromKinds, isRootThemeName, scanFlatValue } from "@tamagui/style-grammar/runtime";
4
4
  import { isVariable } from "../createVariable.native.js";
5
5
  import { mediaKeyMatch } from "../hooks/useMedia.native.js";
@@ -570,7 +570,7 @@ function getDirectDynamicThemeAccess(state) {
570
570
  return state.flatDynamicThemeAccess;
571
571
  }
572
572
  function emitProperty(state, property, value, condition, merge, originalValue, contextOnly) {
573
- var _state_flatActiveConditions;
573
+ var _state_animationDriver, _state_flatActiveConditions;
574
574
  var _state, _state1;
575
575
  var direct = state;
576
576
  if (condition === null || condition === void 0 ? void 0 : condition.enter) ((_state = state).flatEnterKeys || (_state.flatEnterKeys = /* @__PURE__ */ new Set())).add(property);
@@ -592,7 +592,8 @@ function emitProperty(state, property, value, condition, merge, originalValue, c
592
592
  }
593
593
  return;
594
594
  }
595
- if (isWeb && state.flatShouldDoClasses) {
595
+ var shouldPromoteAnimatedStyle = isWeb && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && !((_state_animationDriver = state.animationDriver) === null || _state_animationDriver === void 0 ? void 0 : _state_animationDriver.isReactNative) && property in nonAnimatableStyleProps;
596
+ if (isWeb && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {
596
597
  if (!condition) {
597
598
  if (state.style) delete state.style[property];
598
599
  }