@master/css 2.0.0-alpha.9 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (872) hide show
  1. package/README.md +2 -0
  2. package/esm/apis/configure.d.ts +2 -0
  3. package/esm/apis/configure.js +11 -0
  4. package/esm/apis/configure.js.map +1 -0
  5. package/esm/apis/extend.d.ts +5 -0
  6. package/esm/apis/extend.js +61 -0
  7. package/esm/apis/extend.js.map +1 -0
  8. package/esm/apis/fill-color-scale.d.ts +1 -0
  9. package/esm/apis/fill-color-scale.js +60 -0
  10. package/esm/apis/fill-color-scale.js.map +1 -0
  11. package/esm/apis/index.d.ts +7 -0
  12. package/esm/apis/index.js +8 -0
  13. package/esm/apis/index.js.map +1 -0
  14. package/esm/apis/init.d.ts +3 -0
  15. package/esm/apis/init.js +13 -0
  16. package/esm/apis/init.js.map +1 -0
  17. package/{render-from-html.d.ts → esm/apis/render-from-html.d.ts} +2 -2
  18. package/esm/apis/render-from-html.js +19 -0
  19. package/esm/apis/render-from-html.js.map +1 -0
  20. package/{render-into-html.d.ts → esm/apis/render-into-html.d.ts} +2 -2
  21. package/esm/apis/render-into-html.js +10 -0
  22. package/esm/apis/render-into-html.js.map +1 -0
  23. package/{render.d.ts → esm/apis/render.d.ts} +2 -2
  24. package/esm/apis/render.js +14 -0
  25. package/esm/apis/render.js.map +1 -0
  26. package/esm/config/breakpoints.d.ts +13 -0
  27. package/esm/config/breakpoints.js +14 -0
  28. package/esm/config/breakpoints.js.map +1 -0
  29. package/esm/config/colors.d.ts +25 -0
  30. package/esm/config/colors.js +266 -0
  31. package/esm/config/colors.js.map +1 -0
  32. package/esm/config/index.d.ts +36 -0
  33. package/esm/config/index.js +22 -0
  34. package/esm/config/index.js.map +1 -0
  35. package/esm/config/root-size.d.ts +2 -0
  36. package/esm/config/root-size.js +3 -0
  37. package/esm/config/root-size.js.map +1 -0
  38. package/esm/config/rules.d.ts +3 -0
  39. package/esm/config/rules.js +390 -0
  40. package/esm/config/rules.js.map +1 -0
  41. package/esm/config/scheme.d.ts +8 -0
  42. package/esm/config/scheme.js +9 -0
  43. package/esm/config/scheme.js.map +1 -0
  44. package/esm/config/selectors.d.ts +19 -0
  45. package/esm/config/selectors.js +20 -0
  46. package/esm/config/selectors.js.map +1 -0
  47. package/esm/config/semantics.d.ts +82 -0
  48. package/esm/config/semantics.js +83 -0
  49. package/esm/config/semantics.js.map +1 -0
  50. package/esm/config/themes.d.ts +2 -0
  51. package/esm/config/themes.js +3 -0
  52. package/esm/config/themes.js.map +1 -0
  53. package/esm/config/values.d.ts +126 -0
  54. package/esm/config/values.js +85 -0
  55. package/esm/config/values.js.map +1 -0
  56. package/{constants → esm/constants}/start-symbol.d.ts +0 -0
  57. package/esm/constants/start-symbol.js +6 -0
  58. package/esm/constants/start-symbol.js.map +1 -0
  59. package/esm/css.d.ts +77 -0
  60. package/esm/css.js +981 -0
  61. package/esm/css.js.map +1 -0
  62. package/esm/index.d.ts +5 -0
  63. package/esm/index.js +6 -0
  64. package/esm/index.js.map +1 -0
  65. package/esm/polyfills/css-escape.d.ts +2 -0
  66. package/esm/polyfills/css-escape.js +91 -0
  67. package/esm/polyfills/css-escape.js.map +1 -0
  68. package/esm/rule.d.ts +71 -0
  69. package/esm/rule.js +609 -0
  70. package/esm/rule.js.map +1 -0
  71. package/{rules → esm/rules}/accent-color.d.ts +3 -2
  72. package/esm/rules/accent-color.js +8 -0
  73. package/esm/rules/accent-color.js.map +1 -0
  74. package/esm/rules/align-content.d.ts +6 -0
  75. package/esm/rules/align-content.js +7 -0
  76. package/esm/rules/align-content.js.map +1 -0
  77. package/esm/rules/align-items.d.ts +6 -0
  78. package/esm/rules/align-items.js +7 -0
  79. package/esm/rules/align-items.js.map +1 -0
  80. package/esm/rules/align-self.d.ts +6 -0
  81. package/esm/rules/align-self.js +7 -0
  82. package/esm/rules/align-self.js.map +1 -0
  83. package/esm/rules/animation-delay.d.ts +7 -0
  84. package/esm/rules/animation-delay.js +8 -0
  85. package/esm/rules/animation-delay.js.map +1 -0
  86. package/esm/rules/animation-direction.d.ts +6 -0
  87. package/esm/rules/animation-direction.js +7 -0
  88. package/esm/rules/animation-direction.js.map +1 -0
  89. package/esm/rules/animation-duration.d.ts +7 -0
  90. package/esm/rules/animation-duration.js +8 -0
  91. package/esm/rules/animation-duration.js.map +1 -0
  92. package/esm/rules/animation-fill-mode.d.ts +6 -0
  93. package/esm/rules/animation-fill-mode.js +7 -0
  94. package/esm/rules/animation-fill-mode.js.map +1 -0
  95. package/esm/rules/animation-iteration-count.d.ts +7 -0
  96. package/esm/rules/animation-iteration-count.js +8 -0
  97. package/esm/rules/animation-iteration-count.js.map +1 -0
  98. package/esm/rules/animation-name.d.ts +6 -0
  99. package/esm/rules/animation-name.js +7 -0
  100. package/esm/rules/animation-name.js.map +1 -0
  101. package/esm/rules/animation-play-state.d.ts +6 -0
  102. package/esm/rules/animation-play-state.js +7 -0
  103. package/esm/rules/animation-play-state.js.map +1 -0
  104. package/esm/rules/animation-timing-function.d.ts +6 -0
  105. package/esm/rules/animation-timing-function.js +7 -0
  106. package/esm/rules/animation-timing-function.js.map +1 -0
  107. package/{rules → esm/rules}/animation.d.ts +3 -2
  108. package/esm/rules/animation.js +9 -0
  109. package/esm/rules/animation.js.map +1 -0
  110. package/esm/rules/appearance.d.ts +5 -0
  111. package/esm/rules/appearance.js +6 -0
  112. package/esm/rules/appearance.js.map +1 -0
  113. package/esm/rules/aspect-radio.d.ts +7 -0
  114. package/esm/rules/aspect-radio.js +8 -0
  115. package/esm/rules/aspect-radio.js.map +1 -0
  116. package/esm/rules/backdrop-filter.d.ts +11 -0
  117. package/esm/rules/backdrop-filter.js +26 -0
  118. package/esm/rules/backdrop-filter.js.map +1 -0
  119. package/esm/rules/background-attachment.d.ts +6 -0
  120. package/esm/rules/background-attachment.js +7 -0
  121. package/esm/rules/background-attachment.js.map +1 -0
  122. package/esm/rules/background-blend-mode.d.ts +5 -0
  123. package/esm/rules/background-blend-mode.js +6 -0
  124. package/esm/rules/background-blend-mode.js.map +1 -0
  125. package/esm/rules/background-clip.d.ts +9 -0
  126. package/esm/rules/background-clip.js +13 -0
  127. package/esm/rules/background-clip.js.map +1 -0
  128. package/{rules → esm/rules}/background-color.d.ts +3 -2
  129. package/esm/rules/background-color.js +9 -0
  130. package/esm/rules/background-color.js.map +1 -0
  131. package/{rules → esm/rules}/background-image.d.ts +3 -2
  132. package/esm/rules/background-image.js +8 -0
  133. package/esm/rules/background-image.js.map +1 -0
  134. package/esm/rules/background-origin.d.ts +6 -0
  135. package/esm/rules/background-origin.js +7 -0
  136. package/esm/rules/background-origin.js.map +1 -0
  137. package/esm/rules/background-position.d.ts +7 -0
  138. package/esm/rules/background-position.js +8 -0
  139. package/esm/rules/background-position.js.map +1 -0
  140. package/esm/rules/background-repeat.d.ts +6 -0
  141. package/esm/rules/background-repeat.js +7 -0
  142. package/esm/rules/background-repeat.js.map +1 -0
  143. package/esm/rules/background-size.d.ts +6 -0
  144. package/esm/rules/background-size.js +7 -0
  145. package/esm/rules/background-size.js.map +1 -0
  146. package/{rules → esm/rules}/background.d.ts +3 -2
  147. package/esm/rules/background.js +9 -0
  148. package/esm/rules/background.js.map +1 -0
  149. package/esm/rules/border-collapse.d.ts +6 -0
  150. package/esm/rules/border-collapse.js +7 -0
  151. package/esm/rules/border-collapse.js.map +1 -0
  152. package/{rules → esm/rules}/border-color.d.ts +2 -2
  153. package/esm/rules/border-color.js +15 -0
  154. package/esm/rules/border-color.js.map +1 -0
  155. package/esm/rules/border-image-outset.d.ts +5 -0
  156. package/esm/rules/border-image-outset.js +6 -0
  157. package/esm/rules/border-image-outset.js.map +1 -0
  158. package/esm/rules/border-image-repeat.d.ts +6 -0
  159. package/esm/rules/border-image-repeat.js +7 -0
  160. package/esm/rules/border-image-repeat.js.map +1 -0
  161. package/esm/rules/border-image-slice.d.ts +6 -0
  162. package/esm/rules/border-image-slice.js +7 -0
  163. package/esm/rules/border-image-slice.js.map +1 -0
  164. package/esm/rules/border-image-source.d.ts +6 -0
  165. package/esm/rules/border-image-source.js +7 -0
  166. package/esm/rules/border-image-source.js.map +1 -0
  167. package/esm/rules/border-image-width.d.ts +6 -0
  168. package/esm/rules/border-image-width.js +7 -0
  169. package/esm/rules/border-image-width.js.map +1 -0
  170. package/esm/rules/border-image.d.ts +6 -0
  171. package/esm/rules/border-image.js +7 -0
  172. package/esm/rules/border-image.js.map +1 -0
  173. package/esm/rules/border-radius.d.ts +9 -0
  174. package/esm/rules/border-radius.js +74 -0
  175. package/esm/rules/border-radius.js.map +1 -0
  176. package/esm/rules/border-spacing.d.ts +5 -0
  177. package/esm/rules/border-spacing.js +6 -0
  178. package/esm/rules/border-spacing.js.map +1 -0
  179. package/esm/rules/border-style.d.ts +9 -0
  180. package/esm/rules/border-style.js +13 -0
  181. package/esm/rules/border-style.js.map +1 -0
  182. package/esm/rules/border-width.d.ts +9 -0
  183. package/esm/rules/border-width.js +13 -0
  184. package/esm/rules/border-width.js.map +1 -0
  185. package/{rules → esm/rules}/border.d.ts +2 -2
  186. package/esm/rules/border.js +14 -0
  187. package/esm/rules/border.js.map +1 -0
  188. package/esm/rules/box-decoration-break.d.ts +9 -0
  189. package/esm/rules/box-decoration-break.js +13 -0
  190. package/esm/rules/box-decoration-break.js.map +1 -0
  191. package/{rules → esm/rules}/box-shadow.d.ts +3 -2
  192. package/esm/rules/box-shadow.js +8 -0
  193. package/esm/rules/box-shadow.js.map +1 -0
  194. package/esm/rules/box-sizing.d.ts +6 -0
  195. package/esm/rules/box-sizing.js +7 -0
  196. package/esm/rules/box-sizing.js.map +1 -0
  197. package/esm/rules/break-after.d.ts +5 -0
  198. package/esm/rules/break-after.js +6 -0
  199. package/esm/rules/break-after.js.map +1 -0
  200. package/esm/rules/break-before.d.ts +5 -0
  201. package/esm/rules/break-before.js +6 -0
  202. package/esm/rules/break-before.js.map +1 -0
  203. package/esm/rules/break-inside.d.ts +5 -0
  204. package/esm/rules/break-inside.js +6 -0
  205. package/esm/rules/break-inside.js.map +1 -0
  206. package/{rules → esm/rules}/caret-color.d.ts +3 -2
  207. package/esm/rules/caret-color.js +8 -0
  208. package/esm/rules/caret-color.js.map +1 -0
  209. package/esm/rules/clear.d.ts +5 -0
  210. package/esm/rules/clear.js +6 -0
  211. package/esm/rules/clear.js.map +1 -0
  212. package/esm/rules/clip-path.d.ts +6 -0
  213. package/esm/rules/clip-path.js +7 -0
  214. package/esm/rules/clip-path.js.map +1 -0
  215. package/{rules → esm/rules}/color.d.ts +3 -2
  216. package/esm/rules/color.js +9 -0
  217. package/esm/rules/color.js.map +1 -0
  218. package/esm/rules/column-span.d.ts +6 -0
  219. package/esm/rules/column-span.js +7 -0
  220. package/esm/rules/column-span.js.map +1 -0
  221. package/{rules → esm/rules}/columns.d.ts +3 -2
  222. package/esm/rules/columns.js +9 -0
  223. package/esm/rules/columns.js.map +1 -0
  224. package/esm/rules/contain.d.ts +5 -0
  225. package/esm/rules/contain.js +6 -0
  226. package/esm/rules/contain.js.map +1 -0
  227. package/esm/rules/content.d.ts +5 -0
  228. package/esm/rules/content.js +6 -0
  229. package/esm/rules/content.js.map +1 -0
  230. package/esm/rules/counter-increment.d.ts +6 -0
  231. package/esm/rules/counter-increment.js +7 -0
  232. package/esm/rules/counter-increment.js.map +1 -0
  233. package/esm/rules/cursor.d.ts +5 -0
  234. package/esm/rules/cursor.js +6 -0
  235. package/esm/rules/cursor.js.map +1 -0
  236. package/esm/rules/cx.d.ts +6 -0
  237. package/esm/rules/cx.js +7 -0
  238. package/esm/rules/cx.js.map +1 -0
  239. package/esm/rules/cy.d.ts +6 -0
  240. package/esm/rules/cy.js +7 -0
  241. package/esm/rules/cy.js.map +1 -0
  242. package/esm/rules/direction.d.ts +5 -0
  243. package/esm/rules/direction.js +6 -0
  244. package/esm/rules/direction.js.map +1 -0
  245. package/esm/rules/display.d.ts +6 -0
  246. package/esm/rules/display.js +7 -0
  247. package/esm/rules/display.js.map +1 -0
  248. package/{rules → esm/rules}/fill.d.ts +3 -2
  249. package/esm/rules/fill.js +8 -0
  250. package/esm/rules/fill.js.map +1 -0
  251. package/esm/rules/filter.d.ts +8 -0
  252. package/esm/rules/filter.js +20 -0
  253. package/esm/rules/filter.js.map +1 -0
  254. package/esm/rules/flex-basis.d.ts +5 -0
  255. package/esm/rules/flex-basis.js +6 -0
  256. package/esm/rules/flex-basis.js.map +1 -0
  257. package/esm/rules/flex-direction.d.ts +6 -0
  258. package/esm/rules/flex-direction.js +7 -0
  259. package/esm/rules/flex-direction.js.map +1 -0
  260. package/esm/rules/flex-grow.d.ts +6 -0
  261. package/esm/rules/flex-grow.js +7 -0
  262. package/esm/rules/flex-grow.js.map +1 -0
  263. package/esm/rules/flex-shrink.d.ts +6 -0
  264. package/esm/rules/flex-shrink.js +7 -0
  265. package/esm/rules/flex-shrink.js.map +1 -0
  266. package/esm/rules/flex-wrap.d.ts +6 -0
  267. package/esm/rules/flex-wrap.js +7 -0
  268. package/esm/rules/flex-wrap.js.map +1 -0
  269. package/esm/rules/flex.d.ts +7 -0
  270. package/esm/rules/flex.js +8 -0
  271. package/esm/rules/flex.js.map +1 -0
  272. package/esm/rules/float.d.ts +5 -0
  273. package/esm/rules/float.js +6 -0
  274. package/esm/rules/float.js.map +1 -0
  275. package/esm/rules/font-family.d.ts +6 -0
  276. package/esm/rules/font-family.js +7 -0
  277. package/esm/rules/font-family.js.map +1 -0
  278. package/esm/rules/font-size.d.ts +6 -0
  279. package/esm/rules/font-size.js +7 -0
  280. package/esm/rules/font-size.js.map +1 -0
  281. package/{rules → esm/rules}/font-smoothing.d.ts +2 -2
  282. package/esm/rules/font-smoothing.js +34 -0
  283. package/esm/rules/font-smoothing.js.map +1 -0
  284. package/esm/rules/font-style.d.ts +7 -0
  285. package/esm/rules/font-style.js +8 -0
  286. package/esm/rules/font-style.js.map +1 -0
  287. package/esm/rules/font-variant-numeric.d.ts +6 -0
  288. package/esm/rules/font-variant-numeric.js +7 -0
  289. package/esm/rules/font-variant-numeric.js.map +1 -0
  290. package/esm/rules/font-weight.d.ts +7 -0
  291. package/esm/rules/font-weight.js +8 -0
  292. package/esm/rules/font-weight.js.map +1 -0
  293. package/{rules → esm/rules}/font.d.ts +3 -2
  294. package/esm/rules/font.js +9 -0
  295. package/esm/rules/font.js.map +1 -0
  296. package/{rules → esm/rules}/gap.d.ts +2 -2
  297. package/esm/rules/gap.js +17 -0
  298. package/esm/rules/gap.js.map +1 -0
  299. package/esm/rules/grid-area.d.ts +7 -0
  300. package/esm/rules/grid-area.js +8 -0
  301. package/esm/rules/grid-area.js.map +1 -0
  302. package/esm/rules/grid-auto-columns.d.ts +6 -0
  303. package/esm/rules/grid-auto-columns.js +7 -0
  304. package/esm/rules/grid-auto-columns.js.map +1 -0
  305. package/esm/rules/grid-auto-flow.d.ts +6 -0
  306. package/esm/rules/grid-auto-flow.js +7 -0
  307. package/esm/rules/grid-auto-flow.js.map +1 -0
  308. package/esm/rules/grid-auto-rows.d.ts +5 -0
  309. package/esm/rules/grid-auto-rows.js +6 -0
  310. package/esm/rules/grid-auto-rows.js.map +1 -0
  311. package/esm/rules/grid-column-end.d.ts +7 -0
  312. package/esm/rules/grid-column-end.js +8 -0
  313. package/esm/rules/grid-column-end.js.map +1 -0
  314. package/esm/rules/grid-column-start.d.ts +7 -0
  315. package/esm/rules/grid-column-start.js +8 -0
  316. package/esm/rules/grid-column-start.js.map +1 -0
  317. package/{rules → esm/rules}/grid-column.d.ts +3 -2
  318. package/esm/rules/grid-column.js +14 -0
  319. package/esm/rules/grid-column.js.map +1 -0
  320. package/{rules → esm/rules}/grid-columns.d.ts +4 -3
  321. package/esm/rules/grid-columns.js +21 -0
  322. package/esm/rules/grid-columns.js.map +1 -0
  323. package/esm/rules/grid-row-end.d.ts +6 -0
  324. package/esm/rules/grid-row-end.js +7 -0
  325. package/esm/rules/grid-row-end.js.map +1 -0
  326. package/esm/rules/grid-row-start.d.ts +6 -0
  327. package/esm/rules/grid-row-start.js +7 -0
  328. package/esm/rules/grid-row-start.js.map +1 -0
  329. package/{rules → esm/rules}/grid-row.d.ts +3 -2
  330. package/esm/rules/grid-row.js +14 -0
  331. package/esm/rules/grid-row.js.map +1 -0
  332. package/esm/rules/grid-rows.d.ts +9 -0
  333. package/esm/rules/grid-rows.js +21 -0
  334. package/esm/rules/grid-rows.js.map +1 -0
  335. package/esm/rules/grid-template-areas.d.ts +5 -0
  336. package/esm/rules/grid-template-areas.js +6 -0
  337. package/esm/rules/grid-template-areas.js.map +1 -0
  338. package/esm/rules/grid-template-columns.d.ts +6 -0
  339. package/esm/rules/grid-template-columns.js +7 -0
  340. package/esm/rules/grid-template-columns.js.map +1 -0
  341. package/esm/rules/grid-template-rows.d.ts +5 -0
  342. package/esm/rules/grid-template-rows.js +6 -0
  343. package/esm/rules/grid-template-rows.js.map +1 -0
  344. package/esm/rules/grid-template.d.ts +6 -0
  345. package/esm/rules/grid-template.js +7 -0
  346. package/esm/rules/grid-template.js.map +1 -0
  347. package/esm/rules/grid.d.ts +6 -0
  348. package/esm/rules/grid.js +7 -0
  349. package/esm/rules/grid.js.map +1 -0
  350. package/esm/rules/group.d.ts +9 -0
  351. package/esm/rules/group.js +105 -0
  352. package/esm/rules/group.js.map +1 -0
  353. package/esm/rules/height.d.ts +6 -0
  354. package/esm/rules/height.js +7 -0
  355. package/esm/rules/height.js.map +1 -0
  356. package/esm/rules/inset.d.ts +9 -0
  357. package/esm/rules/inset.js +12 -0
  358. package/esm/rules/inset.js.map +1 -0
  359. package/esm/rules/isolation.d.ts +5 -0
  360. package/esm/rules/isolation.js +6 -0
  361. package/esm/rules/isolation.js.map +1 -0
  362. package/esm/rules/justify-content.d.ts +6 -0
  363. package/esm/rules/justify-content.js +7 -0
  364. package/esm/rules/justify-content.js.map +1 -0
  365. package/esm/rules/justify-items.d.ts +6 -0
  366. package/esm/rules/justify-items.js +7 -0
  367. package/esm/rules/justify-items.js.map +1 -0
  368. package/esm/rules/justify-self.d.ts +6 -0
  369. package/esm/rules/justify-self.js +7 -0
  370. package/esm/rules/justify-self.js.map +1 -0
  371. package/esm/rules/letter-spacing.d.ts +7 -0
  372. package/esm/rules/letter-spacing.js +8 -0
  373. package/esm/rules/letter-spacing.js.map +1 -0
  374. package/esm/rules/line-clamp.d.ts +9 -0
  375. package/esm/rules/line-clamp.js +12 -0
  376. package/esm/rules/line-clamp.js.map +1 -0
  377. package/esm/rules/line-height.d.ts +7 -0
  378. package/esm/rules/line-height.js +8 -0
  379. package/esm/rules/line-height.js.map +1 -0
  380. package/{rules → esm/rules}/lines.d.ts +2 -2
  381. package/esm/rules/lines.js +17 -0
  382. package/esm/rules/lines.js.map +1 -0
  383. package/esm/rules/list-style-image.d.ts +6 -0
  384. package/esm/rules/list-style-image.js +7 -0
  385. package/esm/rules/list-style-image.js.map +1 -0
  386. package/esm/rules/list-style-position.d.ts +6 -0
  387. package/esm/rules/list-style-position.js +7 -0
  388. package/esm/rules/list-style-position.js.map +1 -0
  389. package/esm/rules/list-style-type.d.ts +6 -0
  390. package/esm/rules/list-style-type.js +7 -0
  391. package/esm/rules/list-style-type.js.map +1 -0
  392. package/esm/rules/list-style.d.ts +6 -0
  393. package/esm/rules/list-style.js +7 -0
  394. package/esm/rules/list-style.js.map +1 -0
  395. package/{rules → esm/rules}/margin.d.ts +2 -2
  396. package/esm/rules/margin.js +14 -0
  397. package/esm/rules/margin.js.map +1 -0
  398. package/esm/rules/mask-image.d.ts +8 -0
  399. package/esm/rules/mask-image.js +12 -0
  400. package/esm/rules/mask-image.js.map +1 -0
  401. package/esm/rules/max-height.d.ts +6 -0
  402. package/esm/rules/max-height.js +7 -0
  403. package/esm/rules/max-height.js.map +1 -0
  404. package/esm/rules/max-width.d.ts +6 -0
  405. package/esm/rules/max-width.js +7 -0
  406. package/esm/rules/max-width.js.map +1 -0
  407. package/esm/rules/min-height.d.ts +6 -0
  408. package/esm/rules/min-height.js +7 -0
  409. package/esm/rules/min-height.js.map +1 -0
  410. package/esm/rules/min-width.d.ts +6 -0
  411. package/esm/rules/min-width.js +7 -0
  412. package/esm/rules/min-width.js.map +1 -0
  413. package/esm/rules/mix-blend-mode.d.ts +6 -0
  414. package/esm/rules/mix-blend-mode.js +7 -0
  415. package/esm/rules/mix-blend-mode.js.map +1 -0
  416. package/esm/rules/object-fit.d.ts +6 -0
  417. package/esm/rules/object-fit.js +7 -0
  418. package/esm/rules/object-fit.js.map +1 -0
  419. package/esm/rules/object-position.d.ts +6 -0
  420. package/esm/rules/object-position.js +7 -0
  421. package/esm/rules/object-position.js.map +1 -0
  422. package/esm/rules/opacity.d.ts +6 -0
  423. package/esm/rules/opacity.js +7 -0
  424. package/esm/rules/opacity.js.map +1 -0
  425. package/esm/rules/order.d.ts +7 -0
  426. package/esm/rules/order.js +9 -0
  427. package/esm/rules/order.js.map +1 -0
  428. package/{rules → esm/rules}/outline-color.d.ts +3 -2
  429. package/esm/rules/outline-color.js +8 -0
  430. package/esm/rules/outline-color.js.map +1 -0
  431. package/esm/rules/outline-offset.d.ts +5 -0
  432. package/esm/rules/outline-offset.js +6 -0
  433. package/esm/rules/outline-offset.js.map +1 -0
  434. package/esm/rules/outline-style.d.ts +6 -0
  435. package/esm/rules/outline-style.js +7 -0
  436. package/esm/rules/outline-style.js.map +1 -0
  437. package/esm/rules/outline-width.d.ts +6 -0
  438. package/esm/rules/outline-width.js +7 -0
  439. package/esm/rules/outline-width.js.map +1 -0
  440. package/esm/rules/outline.d.ts +7 -0
  441. package/esm/rules/outline.js +8 -0
  442. package/esm/rules/outline.js.map +1 -0
  443. package/{rules → esm/rules}/overflow.d.ts +2 -2
  444. package/esm/rules/overflow.js +27 -0
  445. package/esm/rules/overflow.js.map +1 -0
  446. package/{rules → esm/rules}/overscroll-behavior.d.ts +2 -2
  447. package/esm/rules/overscroll-behavior.js +16 -0
  448. package/esm/rules/overscroll-behavior.js.map +1 -0
  449. package/{rules → esm/rules}/padding.d.ts +2 -2
  450. package/esm/rules/padding.js +14 -0
  451. package/esm/rules/padding.js.map +1 -0
  452. package/esm/rules/place-content.d.ts +6 -0
  453. package/esm/rules/place-content.js +7 -0
  454. package/esm/rules/place-content.js.map +1 -0
  455. package/esm/rules/place-items.d.ts +6 -0
  456. package/esm/rules/place-items.js +7 -0
  457. package/esm/rules/place-items.js.map +1 -0
  458. package/esm/rules/place-self.d.ts +6 -0
  459. package/esm/rules/place-self.js +7 -0
  460. package/esm/rules/place-self.js.map +1 -0
  461. package/esm/rules/placement.d.ts +8 -0
  462. package/esm/rules/placement.js +30 -0
  463. package/esm/rules/placement.js.map +1 -0
  464. package/esm/rules/pointer-events.d.ts +5 -0
  465. package/esm/rules/pointer-events.js +6 -0
  466. package/esm/rules/pointer-events.js.map +1 -0
  467. package/esm/rules/position.d.ts +5 -0
  468. package/esm/rules/position.js +6 -0
  469. package/esm/rules/position.js.map +1 -0
  470. package/esm/rules/quotes.d.ts +5 -0
  471. package/esm/rules/quotes.js +6 -0
  472. package/esm/rules/quotes.js.map +1 -0
  473. package/esm/rules/resize.d.ts +5 -0
  474. package/esm/rules/resize.js +6 -0
  475. package/esm/rules/resize.js.map +1 -0
  476. package/esm/rules/rx.d.ts +6 -0
  477. package/esm/rules/rx.js +7 -0
  478. package/esm/rules/rx.js.map +1 -0
  479. package/esm/rules/ry.d.ts +6 -0
  480. package/esm/rules/ry.js +7 -0
  481. package/esm/rules/ry.js.map +1 -0
  482. package/esm/rules/scroll-behavior.d.ts +5 -0
  483. package/esm/rules/scroll-behavior.js +6 -0
  484. package/esm/rules/scroll-behavior.js.map +1 -0
  485. package/esm/rules/scroll-margin.d.ts +9 -0
  486. package/esm/rules/scroll-margin.js +46 -0
  487. package/esm/rules/scroll-margin.js.map +1 -0
  488. package/esm/rules/scroll-padding.d.ts +9 -0
  489. package/esm/rules/scroll-padding.js +46 -0
  490. package/esm/rules/scroll-padding.js.map +1 -0
  491. package/esm/rules/scroll-snap-align.d.ts +6 -0
  492. package/esm/rules/scroll-snap-align.js +7 -0
  493. package/esm/rules/scroll-snap-align.js.map +1 -0
  494. package/esm/rules/scroll-snap-stop.d.ts +6 -0
  495. package/esm/rules/scroll-snap-stop.js +7 -0
  496. package/esm/rules/scroll-snap-stop.js.map +1 -0
  497. package/esm/rules/scroll-snap-type.d.ts +6 -0
  498. package/esm/rules/scroll-snap-type.js +7 -0
  499. package/esm/rules/scroll-snap-type.js.map +1 -0
  500. package/esm/rules/shape-image-threshold.d.ts +6 -0
  501. package/esm/rules/shape-image-threshold.js +7 -0
  502. package/esm/rules/shape-image-threshold.js.map +1 -0
  503. package/esm/rules/shape-margin.d.ts +6 -0
  504. package/esm/rules/shape-margin.js +7 -0
  505. package/esm/rules/shape-margin.js.map +1 -0
  506. package/esm/rules/shape-outside.d.ts +6 -0
  507. package/esm/rules/shape-outside.js +7 -0
  508. package/esm/rules/shape-outside.js.map +1 -0
  509. package/{rules → esm/rules}/spacing.d.ts +2 -2
  510. package/esm/rules/spacing.js +49 -0
  511. package/esm/rules/spacing.js.map +1 -0
  512. package/esm/rules/stroke-dasharray.d.ts +5 -0
  513. package/esm/rules/stroke-dasharray.js +6 -0
  514. package/esm/rules/stroke-dasharray.js.map +1 -0
  515. package/esm/rules/stroke-dashoffset.d.ts +5 -0
  516. package/esm/rules/stroke-dashoffset.js +6 -0
  517. package/esm/rules/stroke-dashoffset.js.map +1 -0
  518. package/esm/rules/stroke-width.d.ts +6 -0
  519. package/esm/rules/stroke-width.js +7 -0
  520. package/esm/rules/stroke-width.js.map +1 -0
  521. package/esm/rules/stroke.d.ts +6 -0
  522. package/esm/rules/stroke.js +7 -0
  523. package/esm/rules/stroke.js.map +1 -0
  524. package/esm/rules/table-layout.d.ts +5 -0
  525. package/esm/rules/table-layout.js +6 -0
  526. package/esm/rules/table-layout.js.map +1 -0
  527. package/esm/rules/text-align.d.ts +6 -0
  528. package/esm/rules/text-align.js +7 -0
  529. package/esm/rules/text-align.js.map +1 -0
  530. package/{rules → esm/rules}/text-decoration-color.d.ts +3 -2
  531. package/esm/rules/text-decoration-color.js +8 -0
  532. package/esm/rules/text-decoration-color.js.map +1 -0
  533. package/esm/rules/text-decoration-line.d.ts +6 -0
  534. package/esm/rules/text-decoration-line.js +7 -0
  535. package/esm/rules/text-decoration-line.js.map +1 -0
  536. package/esm/rules/text-decoration-style.d.ts +6 -0
  537. package/esm/rules/text-decoration-style.js +7 -0
  538. package/esm/rules/text-decoration-style.js.map +1 -0
  539. package/esm/rules/text-decoration-thickness.d.ts +7 -0
  540. package/esm/rules/text-decoration-thickness.js +8 -0
  541. package/esm/rules/text-decoration-thickness.js.map +1 -0
  542. package/{rules → esm/rules}/text-decoration.d.ts +3 -2
  543. package/esm/rules/text-decoration.js +9 -0
  544. package/esm/rules/text-decoration.js.map +1 -0
  545. package/{rules → esm/rules}/text-fill-color.d.ts +2 -2
  546. package/esm/rules/text-fill-color.js +13 -0
  547. package/esm/rules/text-fill-color.js.map +1 -0
  548. package/esm/rules/text-indent.d.ts +5 -0
  549. package/esm/rules/text-indent.js +6 -0
  550. package/esm/rules/text-indent.js.map +1 -0
  551. package/esm/rules/text-orientation.d.ts +6 -0
  552. package/esm/rules/text-orientation.js +7 -0
  553. package/esm/rules/text-orientation.js.map +1 -0
  554. package/esm/rules/text-overflow.d.ts +6 -0
  555. package/esm/rules/text-overflow.js +7 -0
  556. package/esm/rules/text-overflow.js.map +1 -0
  557. package/esm/rules/text-rendering.d.ts +6 -0
  558. package/esm/rules/text-rendering.js +7 -0
  559. package/esm/rules/text-rendering.js.map +1 -0
  560. package/esm/rules/text-shadow.d.ts +6 -0
  561. package/esm/rules/text-shadow.js +7 -0
  562. package/esm/rules/text-shadow.js.map +1 -0
  563. package/{rules → esm/rules}/text-size.d.ts +2 -2
  564. package/esm/rules/text-size.js +18 -0
  565. package/esm/rules/text-size.js.map +1 -0
  566. package/{rules → esm/rules}/text-stroke-color.d.ts +2 -2
  567. package/esm/rules/text-stroke-color.js +13 -0
  568. package/esm/rules/text-stroke-color.js.map +1 -0
  569. package/{rules → esm/rules}/text-stroke-width.d.ts +2 -2
  570. package/esm/rules/text-stroke-width.js +11 -0
  571. package/esm/rules/text-stroke-width.js.map +1 -0
  572. package/{rules → esm/rules}/text-stroke.d.ts +2 -2
  573. package/esm/rules/text-stroke.js +11 -0
  574. package/esm/rules/text-stroke.js.map +1 -0
  575. package/esm/rules/text-transform.d.ts +6 -0
  576. package/esm/rules/text-transform.js +7 -0
  577. package/esm/rules/text-transform.js.map +1 -0
  578. package/esm/rules/text-underline-offset.d.ts +5 -0
  579. package/esm/rules/text-underline-offset.js +6 -0
  580. package/esm/rules/text-underline-offset.js.map +1 -0
  581. package/esm/rules/touch-action.d.ts +5 -0
  582. package/esm/rules/touch-action.js +6 -0
  583. package/esm/rules/touch-action.js.map +1 -0
  584. package/esm/rules/transform-box.d.ts +6 -0
  585. package/esm/rules/transform-box.js +7 -0
  586. package/esm/rules/transform-box.js.map +1 -0
  587. package/esm/rules/transform-origin.d.ts +7 -0
  588. package/esm/rules/transform-origin.js +8 -0
  589. package/esm/rules/transform-origin.js.map +1 -0
  590. package/esm/rules/transform-style.d.ts +6 -0
  591. package/esm/rules/transform-style.js +7 -0
  592. package/esm/rules/transform-style.js.map +1 -0
  593. package/esm/rules/transform.d.ts +9 -0
  594. package/esm/rules/transform.js +45 -0
  595. package/esm/rules/transform.js.map +1 -0
  596. package/esm/rules/transition-delay.d.ts +7 -0
  597. package/esm/rules/transition-delay.js +8 -0
  598. package/esm/rules/transition-delay.js.map +1 -0
  599. package/esm/rules/transition-duration.d.ts +7 -0
  600. package/esm/rules/transition-duration.js +8 -0
  601. package/esm/rules/transition-duration.js.map +1 -0
  602. package/esm/rules/transition-property.d.ts +6 -0
  603. package/esm/rules/transition-property.js +7 -0
  604. package/esm/rules/transition-property.js.map +1 -0
  605. package/esm/rules/transition-timing-function.d.ts +6 -0
  606. package/esm/rules/transition-timing-function.js +7 -0
  607. package/esm/rules/transition-timing-function.js.map +1 -0
  608. package/esm/rules/transition.d.ts +7 -0
  609. package/esm/rules/transition.js +8 -0
  610. package/esm/rules/transition.js.map +1 -0
  611. package/esm/rules/user-drag.d.ts +8 -0
  612. package/esm/rules/user-drag.js +12 -0
  613. package/esm/rules/user-drag.js.map +1 -0
  614. package/esm/rules/user-select.d.ts +8 -0
  615. package/esm/rules/user-select.js +12 -0
  616. package/esm/rules/user-select.js.map +1 -0
  617. package/{rules → esm/rules}/variable.d.ts +2 -2
  618. package/esm/rules/variable.js +12 -0
  619. package/esm/rules/variable.js.map +1 -0
  620. package/esm/rules/vertical-align.d.ts +6 -0
  621. package/esm/rules/vertical-align.js +7 -0
  622. package/esm/rules/vertical-align.js.map +1 -0
  623. package/esm/rules/visibility.d.ts +5 -0
  624. package/esm/rules/visibility.js +6 -0
  625. package/esm/rules/visibility.js.map +1 -0
  626. package/esm/rules/white-space.d.ts +6 -0
  627. package/esm/rules/white-space.js +7 -0
  628. package/esm/rules/white-space.js.map +1 -0
  629. package/esm/rules/width.d.ts +6 -0
  630. package/esm/rules/width.js +7 -0
  631. package/esm/rules/width.js.map +1 -0
  632. package/esm/rules/will-change.d.ts +5 -0
  633. package/esm/rules/will-change.js +6 -0
  634. package/esm/rules/will-change.js.map +1 -0
  635. package/esm/rules/word-break.d.ts +6 -0
  636. package/esm/rules/word-break.js +7 -0
  637. package/esm/rules/word-break.js.map +1 -0
  638. package/esm/rules/word-spacing.d.ts +6 -0
  639. package/esm/rules/word-spacing.js +7 -0
  640. package/esm/rules/word-spacing.js.map +1 -0
  641. package/esm/rules/writing-mode.d.ts +6 -0
  642. package/esm/rules/writing-mode.js +7 -0
  643. package/esm/rules/writing-mode.js.map +1 -0
  644. package/esm/rules/x.d.ts +6 -0
  645. package/esm/rules/x.js +7 -0
  646. package/esm/rules/x.js.map +1 -0
  647. package/esm/rules/y.d.ts +6 -0
  648. package/esm/rules/y.js +7 -0
  649. package/esm/rules/y.js.map +1 -0
  650. package/esm/rules/z-index.d.ts +7 -0
  651. package/esm/rules/z-index.js +8 -0
  652. package/esm/rules/z-index.js.map +1 -0
  653. package/esm/utils/concat-arrays.d.ts +1 -0
  654. package/esm/utils/concat-arrays.js +8 -0
  655. package/esm/utils/concat-arrays.js.map +1 -0
  656. package/esm/utils/get-border-props.d.ts +3 -0
  657. package/esm/utils/get-border-props.js +44 -0
  658. package/esm/utils/get-border-props.js.map +1 -0
  659. package/{utils → esm/utils}/get-css-property-text.d.ts +1 -1
  660. package/esm/utils/get-css-property-text.js +8 -0
  661. package/esm/utils/get-css-property-text.js.map +1 -0
  662. package/esm/utils/get-type.d.ts +7 -0
  663. package/esm/utils/get-type.js +10 -0
  664. package/esm/utils/get-type.js.map +1 -0
  665. package/esm/utils/hex-to-rgb.d.ts +1 -0
  666. package/esm/utils/hex-to-rgb.js +8 -0
  667. package/esm/utils/hex-to-rgb.js.map +1 -0
  668. package/esm/utils/is-plain-object.d.ts +8 -0
  669. package/esm/utils/is-plain-object.js +13 -0
  670. package/esm/utils/is-plain-object.js.map +1 -0
  671. package/esm/utils/is-symbol.d.ts +7 -0
  672. package/esm/utils/is-symbol.js +11 -0
  673. package/esm/utils/is-symbol.js.map +1 -0
  674. package/{utils → esm/utils}/normalize-css-calc-text.d.ts +0 -0
  675. package/esm/utils/normalize-css-calc-text.js +56 -0
  676. package/esm/utils/normalize-css-calc-text.js.map +1 -0
  677. package/esm/utils/parse-value-unit.d.ts +2 -0
  678. package/esm/utils/parse-value-unit.js +48 -0
  679. package/esm/utils/parse-value-unit.js.map +1 -0
  680. package/{utils → esm/utils}/parse-value.d.ts +3 -2
  681. package/esm/utils/parse-value.js +84 -0
  682. package/esm/utils/parse-value.js.map +1 -0
  683. package/esm/utils/rgb-to-hex.d.ts +1 -0
  684. package/esm/utils/rgb-to-hex.js +4 -0
  685. package/esm/utils/rgb-to-hex.js.map +1 -0
  686. package/index.cjs.js +3 -0
  687. package/index.cjs.js.map +7 -0
  688. package/index.js +3 -1
  689. package/index.js.map +7 -0
  690. package/package.json +51 -3
  691. package/breakpoints.js +0 -1
  692. package/color.scss +0 -1
  693. package/colors.js +0 -1
  694. package/configure.d.ts +0 -1
  695. package/constants/css-browser-prefix.d.ts +0 -3
  696. package/constants/css-property-keyword.d.ts +0 -206
  697. package/constants/direction.d.ts +0 -10
  698. package/constants/priority-selectors.d.ts +0 -1
  699. package/css.d.ts +0 -69
  700. package/default-config.d.ts +0 -2
  701. package/index.d.ts +0 -12
  702. package/init.d.ts +0 -3
  703. package/interfaces/config.d.ts +0 -14
  704. package/interfaces/css-property-info.d.ts +0 -5
  705. package/interfaces/media-feature-rule.d.ts +0 -7
  706. package/interfaces/media.d.ts +0 -8
  707. package/master-css.min.js +0 -1
  708. package/render.js +0 -1
  709. package/rule.d.ts +0 -53
  710. package/rules/align-content.d.ts +0 -5
  711. package/rules/align-items.d.ts +0 -5
  712. package/rules/align-self.d.ts +0 -5
  713. package/rules/animation-delay.d.ts +0 -6
  714. package/rules/animation-direction.d.ts +0 -5
  715. package/rules/animation-duration.d.ts +0 -6
  716. package/rules/animation-fill-mode.d.ts +0 -5
  717. package/rules/animation-iteration-count.d.ts +0 -6
  718. package/rules/animation-name.d.ts +0 -5
  719. package/rules/animation-play-state.d.ts +0 -5
  720. package/rules/animation-timing-function.d.ts +0 -5
  721. package/rules/appearance.d.ts +0 -4
  722. package/rules/aspect-radio.d.ts +0 -6
  723. package/rules/backdrop-filter.d.ts +0 -9
  724. package/rules/background-attachment.d.ts +0 -5
  725. package/rules/background-blend-mode.d.ts +0 -4
  726. package/rules/background-clip.d.ts +0 -8
  727. package/rules/background-origin.d.ts +0 -5
  728. package/rules/background-position.d.ts +0 -6
  729. package/rules/background-repeat.d.ts +0 -5
  730. package/rules/background-size.d.ts +0 -5
  731. package/rules/border-collapse.d.ts +0 -5
  732. package/rules/border-image-outset.d.ts +0 -4
  733. package/rules/border-image-repeat.d.ts +0 -5
  734. package/rules/border-image-slice.d.ts +0 -5
  735. package/rules/border-image-source.d.ts +0 -5
  736. package/rules/border-image-width.d.ts +0 -5
  737. package/rules/border-image.d.ts +0 -5
  738. package/rules/border-radius.d.ts +0 -9
  739. package/rules/border-spacing.d.ts +0 -4
  740. package/rules/border-style.d.ts +0 -9
  741. package/rules/border-width.d.ts +0 -9
  742. package/rules/box-decoration-break.d.ts +0 -8
  743. package/rules/box-sizing.d.ts +0 -5
  744. package/rules/break-after.d.ts +0 -4
  745. package/rules/break-before.d.ts +0 -4
  746. package/rules/break-inside.d.ts +0 -4
  747. package/rules/clear.d.ts +0 -4
  748. package/rules/clip-path.d.ts +0 -5
  749. package/rules/column-span.d.ts +0 -5
  750. package/rules/contain.d.ts +0 -4
  751. package/rules/content.d.ts +0 -4
  752. package/rules/counter-increment.d.ts +0 -5
  753. package/rules/cursor.d.ts +0 -4
  754. package/rules/cx.d.ts +0 -5
  755. package/rules/cy.d.ts +0 -5
  756. package/rules/direction.d.ts +0 -4
  757. package/rules/display.d.ts +0 -5
  758. package/rules/filter.d.ts +0 -6
  759. package/rules/flex-basis.d.ts +0 -4
  760. package/rules/flex-direction.d.ts +0 -5
  761. package/rules/flex-grow.d.ts +0 -5
  762. package/rules/flex-shrink.d.ts +0 -5
  763. package/rules/flex-wrap.d.ts +0 -5
  764. package/rules/flex.d.ts +0 -6
  765. package/rules/float.d.ts +0 -4
  766. package/rules/font-family.d.ts +0 -5
  767. package/rules/font-size.d.ts +0 -5
  768. package/rules/font-style.d.ts +0 -6
  769. package/rules/font-variant-numeric.d.ts +0 -5
  770. package/rules/font-weight.d.ts +0 -6
  771. package/rules/grid-area.d.ts +0 -6
  772. package/rules/grid-auto-columns.d.ts +0 -5
  773. package/rules/grid-auto-flow.d.ts +0 -5
  774. package/rules/grid-auto-rows.d.ts +0 -4
  775. package/rules/grid-column-end.d.ts +0 -6
  776. package/rules/grid-column-start.d.ts +0 -6
  777. package/rules/grid-row-end.d.ts +0 -5
  778. package/rules/grid-row-start.d.ts +0 -5
  779. package/rules/grid-rows.d.ts +0 -8
  780. package/rules/grid-template-areas.d.ts +0 -4
  781. package/rules/grid-template-columns.d.ts +0 -5
  782. package/rules/grid-template-rows.d.ts +0 -4
  783. package/rules/grid-template.d.ts +0 -5
  784. package/rules/grid.d.ts +0 -5
  785. package/rules/group.d.ts +0 -9
  786. package/rules/height.d.ts +0 -5
  787. package/rules/index.d.ts +0 -2
  788. package/rules/inset.d.ts +0 -8
  789. package/rules/isolation.d.ts +0 -4
  790. package/rules/justify-content.d.ts +0 -5
  791. package/rules/justify-items.d.ts +0 -5
  792. package/rules/justify-self.d.ts +0 -5
  793. package/rules/letter-spacing.d.ts +0 -6
  794. package/rules/line-height.d.ts +0 -6
  795. package/rules/list-style-image.d.ts +0 -5
  796. package/rules/list-style-position.d.ts +0 -5
  797. package/rules/list-style-type.d.ts +0 -5
  798. package/rules/list-style.d.ts +0 -5
  799. package/rules/mask-image.d.ts +0 -7
  800. package/rules/max-height.d.ts +0 -5
  801. package/rules/max-width.d.ts +0 -5
  802. package/rules/min-height.d.ts +0 -5
  803. package/rules/min-width.d.ts +0 -5
  804. package/rules/mix-blend-mode.d.ts +0 -5
  805. package/rules/object-fit.d.ts +0 -5
  806. package/rules/object-position.d.ts +0 -5
  807. package/rules/opacity.d.ts +0 -5
  808. package/rules/order.d.ts +0 -6
  809. package/rules/outline-offset.d.ts +0 -4
  810. package/rules/outline-style.d.ts +0 -5
  811. package/rules/outline-width.d.ts +0 -5
  812. package/rules/outline.d.ts +0 -6
  813. package/rules/place-content.d.ts +0 -5
  814. package/rules/place-items.d.ts +0 -5
  815. package/rules/place-self.d.ts +0 -5
  816. package/rules/placement.d.ts +0 -7
  817. package/rules/pointer-events.d.ts +0 -4
  818. package/rules/position.d.ts +0 -4
  819. package/rules/quotes.d.ts +0 -4
  820. package/rules/resize.d.ts +0 -4
  821. package/rules/rx.d.ts +0 -5
  822. package/rules/ry.d.ts +0 -5
  823. package/rules/scroll-behavior.d.ts +0 -4
  824. package/rules/scroll-margin.d.ts +0 -9
  825. package/rules/scroll-padding.d.ts +0 -9
  826. package/rules/scroll-snap-align.d.ts +0 -5
  827. package/rules/scroll-snap-stop.d.ts +0 -5
  828. package/rules/scroll-snap-type.d.ts +0 -5
  829. package/rules/shape-image-threshold.d.ts +0 -5
  830. package/rules/shape-margin.d.ts +0 -5
  831. package/rules/shape-outside.d.ts +0 -5
  832. package/rules/stroke-dasharray.d.ts +0 -4
  833. package/rules/stroke-dashoffset.d.ts +0 -4
  834. package/rules/stroke-width.d.ts +0 -5
  835. package/rules/stroke.d.ts +0 -5
  836. package/rules/table-layout.d.ts +0 -4
  837. package/rules/text-align.d.ts +0 -5
  838. package/rules/text-decoration-line.d.ts +0 -5
  839. package/rules/text-decoration-style.d.ts +0 -5
  840. package/rules/text-decoration-thickness.d.ts +0 -6
  841. package/rules/text-indent.d.ts +0 -4
  842. package/rules/text-orientation.d.ts +0 -5
  843. package/rules/text-overflow.d.ts +0 -5
  844. package/rules/text-rendering.d.ts +0 -5
  845. package/rules/text-shadow.d.ts +0 -5
  846. package/rules/text-transform.d.ts +0 -5
  847. package/rules/text-underline-offset.d.ts +0 -4
  848. package/rules/touch-action.d.ts +0 -4
  849. package/rules/transform-box.d.ts +0 -5
  850. package/rules/transform-origin.d.ts +0 -6
  851. package/rules/transform-style.d.ts +0 -5
  852. package/rules/transform.d.ts +0 -7
  853. package/rules/transition-delay.d.ts +0 -6
  854. package/rules/transition-duration.d.ts +0 -6
  855. package/rules/transition-property.d.ts +0 -5
  856. package/rules/transition-timing-function.d.ts +0 -5
  857. package/rules/transition.d.ts +0 -6
  858. package/rules/user-drag.d.ts +0 -7
  859. package/rules/user-select.d.ts +0 -7
  860. package/rules/vertical-align.d.ts +0 -5
  861. package/rules/visibility.d.ts +0 -4
  862. package/rules/white-space.d.ts +0 -5
  863. package/rules/width.d.ts +0 -5
  864. package/rules/will-change.d.ts +0 -4
  865. package/rules/word-break.d.ts +0 -5
  866. package/rules/word-spacing.d.ts +0 -5
  867. package/rules/writing-mode.d.ts +0 -5
  868. package/rules/x.d.ts +0 -5
  869. package/rules/y.d.ts +0 -5
  870. package/rules/z-index.d.ts +0 -6
  871. package/utils/get-border-props.d.ts +0 -3
  872. package/utils/parse-value-unit.d.ts +0 -1
@@ -0,0 +1,8 @@
1
+ export function getCssPropertyText(name, property) {
2
+ return (name ? name + ':' : '')
3
+ + (property.unit
4
+ ? property.value + property.unit
5
+ : property.value)
6
+ + (property.important ? '!important' : '');
7
+ }
8
+ //# sourceMappingURL=get-css-property-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-css-property-text.js","sourceRoot":"","sources":["../../../src/utils/get-css-property-text.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,IAAY,EAAE,QAA6D;IAC1G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;UACzB,CAAC,QAAQ,CAAC,IAAI;YACZ,CAAC,CAAC,QAAQ,CAAC,KAAK,GAAG,QAAQ,CAAC,IAAI;YAChC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC;UACnB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC,CAAA;AAClD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns the object type of the given payload
3
+ *
4
+ * @param {*} payload
5
+ * @returns {string}
6
+ */
7
+ export declare function getType(payload: any): string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Returns the object type of the given payload
3
+ *
4
+ * @param {*} payload
5
+ * @returns {string}
6
+ */
7
+ export function getType(payload) {
8
+ return Object.prototype.toString.call(payload).slice(8, -1);
9
+ }
10
+ //# sourceMappingURL=get-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-type.js","sourceRoot":"","sources":["../../../src/utils/get-type.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,UAAU,OAAO,CAAC,OAAY;IAChC,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAC/D,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function hexToRgb(hex: any): number[];
@@ -0,0 +1,8 @@
1
+ export function hexToRgb(hex) {
2
+ if (hex.startsWith('#')) {
3
+ hex = hex.slice(1);
4
+ }
5
+ const aRgbHex = hex.match(/.{1,2}/g);
6
+ return [parseInt(aRgbHex[0], 16), parseInt(aRgbHex[1], 16), parseInt(aRgbHex[2], 16)];
7
+ }
8
+ //# sourceMappingURL=hex-to-rgb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex-to-rgb.js","sourceRoot":"","sources":["../../../src/utils/hex-to-rgb.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,GAAG;IACxB,IAAI,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;QACrB,GAAG,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;KACrB;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA;AACzF,CAAC"}
@@ -0,0 +1,8 @@
1
+ export declare type PlainObject = Record<string | number | symbol, any>;
2
+ /**
3
+ * Returns whether the payload is a plain JavaScript object (excluding special classes or objects with other prototypes)
4
+ *
5
+ * @param {*} payload
6
+ * @returns {payload is PlainObject}
7
+ */
8
+ export declare function isPlainObject(payload: any): payload is PlainObject;
@@ -0,0 +1,13 @@
1
+ import { getType } from './get-type';
2
+ /**
3
+ * Returns whether the payload is a plain JavaScript object (excluding special classes or objects with other prototypes)
4
+ *
5
+ * @param {*} payload
6
+ * @returns {payload is PlainObject}
7
+ */
8
+ export function isPlainObject(payload) {
9
+ if (getType(payload) !== 'Object')
10
+ return false;
11
+ return payload.constructor === Object && Object.getPrototypeOf(payload) === Object.prototype;
12
+ }
13
+ //# sourceMappingURL=is-plain-object.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-plain-object.js","sourceRoot":"","sources":["../../../src/utils/is-plain-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAIpC;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,OAAY;IACtC,IAAI,OAAO,CAAC,OAAO,CAAC,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAA;IAC/C,OAAO,OAAO,CAAC,WAAW,KAAK,MAAM,IAAI,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,MAAM,CAAC,SAAS,CAAA;AAChG,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returns whether the payload is a Symbol
3
+ *
4
+ * @param {*} payload
5
+ * @returns {payload is symbol}
6
+ */
7
+ export declare function isSymbol(payload: any): payload is symbol;
@@ -0,0 +1,11 @@
1
+ import { getType } from './get-type';
2
+ /**
3
+ * Returns whether the payload is a Symbol
4
+ *
5
+ * @param {*} payload
6
+ * @returns {payload is symbol}
7
+ */
8
+ export function isSymbol(payload) {
9
+ return getType(payload) === 'Symbol';
10
+ }
11
+ //# sourceMappingURL=is-symbol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"is-symbol.js","sourceRoot":"","sources":["../../../src/utils/is-symbol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEpC;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,OAAY;IACjC,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,QAAQ,CAAA;AACxC,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * 將 calc( 正規化
3
+ * https://aoyue.notion.site/css-calc-2f37632c5cf749949cc060f0f2111443
4
+ */
5
+ export function normalizeCssCalcText(value) {
6
+ const isOperator = (char) => char === '+' || char === '-' || char === '*' || char === '/';
7
+ let newValue = '', type, current = '', endWithBracket = false;
8
+ function clear() {
9
+ type = null;
10
+ current = '';
11
+ }
12
+ for (let i = 0; i < value.length; i++) {
13
+ const char = value[i];
14
+ if (char === '(' || char === ')') {
15
+ endWithBracket = char === ')';
16
+ newValue += current + char;
17
+ clear();
18
+ }
19
+ else if (char === ',') {
20
+ newValue += current + char + ' ';
21
+ clear();
22
+ }
23
+ else {
24
+ switch (type) {
25
+ // 字串
26
+ case 1:
27
+ break;
28
+ // 數字
29
+ case 2:
30
+ if (isOperator(char)) {
31
+ newValue += current + ' ' + char + ' ';
32
+ clear();
33
+ continue;
34
+ }
35
+ break;
36
+ default:
37
+ if (endWithBracket) {
38
+ current += ' ';
39
+ }
40
+ if (!isNaN(+char)) {
41
+ type = 2;
42
+ }
43
+ else if (!isOperator(char)) {
44
+ type = 1;
45
+ }
46
+ break;
47
+ }
48
+ current += char;
49
+ }
50
+ }
51
+ if (current) {
52
+ newValue += current;
53
+ }
54
+ return newValue;
55
+ }
56
+ //# sourceMappingURL=normalize-css-calc-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-css-calc-text.js","sourceRoot":"","sources":["../../../src/utils/normalize-css-calc-text.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,KAAa;IAC9C,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,CAAA;IAEjG,IAAI,QAAQ,GAAG,EAAE,EAAE,IAAW,EAAE,OAAO,GAAG,EAAE,EAAE,cAAc,GAAG,KAAK,CAAA;IACpE,SAAS,KAAK;QACV,IAAI,GAAG,IAAI,CAAA;QACX,OAAO,GAAG,EAAE,CAAA;IAChB,CAAC;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QAErB,IAAI,IAAI,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,EAAE;YAC9B,cAAc,GAAG,IAAI,KAAK,GAAG,CAAA;YAC7B,QAAQ,IAAI,OAAO,GAAG,IAAI,CAAA;YAC1B,KAAK,EAAE,CAAA;SACV;aAAM,IAAI,IAAI,KAAK,GAAG,EAAE;YACrB,QAAQ,IAAI,OAAO,GAAG,IAAI,GAAG,GAAG,CAAA;YAChC,KAAK,EAAE,CAAA;SACV;aAAM;YACH,QAAQ,IAAI,EAAE;gBACd,KAAK;gBACL,KAAK,CAAC;oBACF,MAAK;gBACL,KAAK;gBACT,KAAK,CAAC;oBACF,IAAI,UAAU,CAAC,IAAI,CAAC,EAAE;wBAClB,QAAQ,IAAI,OAAO,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,CAAA;wBACtC,KAAK,EAAE,CAAA;wBACP,SAAQ;qBACX;oBACD,MAAK;gBACT;oBACI,IAAI,cAAc,EAAE;wBAChB,OAAO,IAAI,GAAG,CAAA;qBACjB;oBAED,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE;wBACf,IAAI,GAAG,CAAC,CAAA;qBACX;yBAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE;wBAC1B,IAAI,GAAG,CAAC,CAAA;qBACX;oBACD,MAAK;aACR;YAED,OAAO,IAAI,IAAI,CAAA;SAClB;KACJ;IAED,IAAI,OAAO,EAAE;QACT,QAAQ,IAAI,OAAO,CAAA;KACtB;IAED,OAAO,QAAQ,CAAA;AACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import type { MasterCSSConfig } from '../config';
2
+ export declare function parseValueUnit(value: string, getUnit: (method: string) => string, { rootSize }: MasterCSSConfig): string;
@@ -0,0 +1,48 @@
1
+ export function parseValueUnit(value, getUnit, { rootSize }) {
2
+ let result = '';
3
+ let i = 0;
4
+ (function analyze(end, method) {
5
+ let current = '';
6
+ const unit = method
7
+ ? getUnit(method)
8
+ : '';
9
+ const pushCurrent = () => {
10
+ if (current) {
11
+ result += (!unit || Number.isNaN(+current))
12
+ ? current
13
+ : (+current / (unit === 'rem' ? rootSize : 1)) + unit;
14
+ current = '';
15
+ }
16
+ };
17
+ for (; i < value.length; i++) {
18
+ const val = value[i];
19
+ if (val === end && (end !== '\'' || value[i + 1] === ')')) {
20
+ pushCurrent();
21
+ result += val;
22
+ break;
23
+ }
24
+ else if (val === ',' || val === ' ') {
25
+ pushCurrent();
26
+ result += val;
27
+ }
28
+ else if (!current && val === '\'') {
29
+ result += val;
30
+ i++;
31
+ analyze(val);
32
+ current = '';
33
+ }
34
+ else if (current && val === '(') {
35
+ result += current + val;
36
+ i++;
37
+ analyze(')', current);
38
+ current = '';
39
+ }
40
+ else {
41
+ current += val;
42
+ }
43
+ }
44
+ pushCurrent();
45
+ })();
46
+ return result;
47
+ }
48
+ //# sourceMappingURL=parse-value-unit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-value-unit.js","sourceRoot":"","sources":["../../../src/utils/parse-value-unit.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,cAAc,CAAC,KAAa,EAAE,OAAmC,EAAE,EAAE,QAAQ,EAAmB;IAC5G,IAAI,MAAM,GAAG,EAAE,CAAA;IAEf,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,CAAC,SAAS,OAAO,CAAC,GAAI,EAAE,MAAO;QAC3B,IAAI,OAAO,GAAG,EAAE,CAAA;QAChB,MAAM,IAAI,GAAG,MAAM;YACf,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;YACjB,CAAC,CAAC,EAAE,CAAA;QAER,MAAM,WAAW,GAAG,GAAG,EAAE;YACrB,IAAI,OAAO,EAAE;gBACT,MAAM,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC;oBACvC,CAAC,CAAC,OAAO;oBACT,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,CAAC,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;gBAEzD,OAAO,GAAG,EAAE,CAAA;aACf;QACL,CAAC,CAAA;QAED,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC1B,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;YAEpB,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC,GAAG,KAAK,IAAI,IAAI,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC,EAAE;gBACvD,WAAW,EAAE,CAAA;gBACb,MAAM,IAAI,GAAG,CAAA;gBACb,MAAK;aACR;iBAAM,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,GAAG,EAAE;gBACnC,WAAW,EAAE,CAAA;gBACb,MAAM,IAAI,GAAG,CAAA;aAChB;iBAAM,IAAI,CAAC,OAAO,IAAI,GAAG,KAAK,IAAI,EAAE;gBACjC,MAAM,IAAI,GAAG,CAAA;gBAEb,CAAC,EAAE,CAAA;gBACH,OAAO,CAAC,GAAG,CAAC,CAAA;gBACZ,OAAO,GAAG,EAAE,CAAA;aACf;iBAAM,IAAI,OAAO,IAAI,GAAG,KAAK,GAAG,EAAE;gBAC/B,MAAM,IAAI,OAAO,GAAG,GAAG,CAAA;gBAEvB,CAAC,EAAE,CAAA;gBACH,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;gBACrB,OAAO,GAAG,EAAE,CAAA;aACf;iBAAM;gBACH,OAAO,IAAI,GAAG,CAAA;aACjB;SACJ;QAED,WAAW,EAAE,CAAA;IACjB,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,MAAM,CAAA;AACjB,CAAC"}
@@ -1,5 +1,6 @@
1
- export declare function parseValue(token: string | number, defaultUnit?: string, colorsThemesMap?: Record<string, Record<string, Record<string, string>>>, values?: Record<string, string | number>, rootSize?: number, theme?: string, bypassWhenUnmatchColor?: boolean): {
2
- value: any;
1
+ export declare function parseValue(token: string | number, defaultUnit?: string, colorsThemesMap?: Record<string, Record<string, Record<string, string>>>, values?: Record<string, string | number>, rootSize?: number, themes?: string[]): {
2
+ value: string;
3
3
  unit: string;
4
4
  unitToken: string;
5
+ colorMatched?: boolean;
5
6
  };
@@ -0,0 +1,84 @@
1
+ import { normalizeCssCalcText } from './normalize-css-calc-text';
2
+ const UNIT_VALUE_PATTERN = /^([+-.]?\d+(\.?\d+)?)(.*)?/;
3
+ const VAR_START = 'var(--';
4
+ export function parseValue(token, defaultUnit, colorsThemesMap, values, rootSize, themes) {
5
+ let value = values ? values[token] : '';
6
+ let unit = '';
7
+ let unitToken = '';
8
+ let colorMatched = undefined;
9
+ if (value) {
10
+ return { value, unit, unitToken };
11
+ }
12
+ else if (typeof token === 'number') {
13
+ value = token;
14
+ unit = defaultUnit || '';
15
+ }
16
+ else {
17
+ if (colorsThemesMap) {
18
+ const colorNames = Object.keys(colorsThemesMap);
19
+ let anyMatched = false;
20
+ let hasColorName = false;
21
+ token = token.replace(new RegExp(`(^|,| |\\()(${colorNames.join('|')})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`, 'gm'), (origin, prefix, colorName, level, opacityStr) => {
22
+ hasColorName = true;
23
+ const themeHexColorMap = colorsThemesMap[colorName]?.[level || ''];
24
+ if (themeHexColorMap) {
25
+ let hexColor;
26
+ for (const eachTheme of themes) {
27
+ if ((hexColor = themeHexColorMap[eachTheme]))
28
+ break;
29
+ }
30
+ if (hexColor) {
31
+ anyMatched = true;
32
+ let newValue = hexColor;
33
+ if (opacityStr) {
34
+ let opacity = opacityStr.endsWith('%')
35
+ ? parseFloat(opacityStr) / 100.0
36
+ : +opacityStr;
37
+ opacity = isNaN(opacity)
38
+ ? 1
39
+ : Math.min(Math.max(opacity, 0), 1);
40
+ newValue += Math.round(opacity * 255).toString(16).toUpperCase().padStart(2, '0');
41
+ }
42
+ return prefix + newValue;
43
+ }
44
+ }
45
+ return origin;
46
+ });
47
+ if (hasColorName) {
48
+ colorMatched = anyMatched;
49
+ }
50
+ }
51
+ if (defaultUnit) {
52
+ const matches = token.match(UNIT_VALUE_PATTERN);
53
+ // ['0.5deg', '0.5', 'deg', index: 0, input: '0.5deg', groups: undefined]
54
+ if (matches) {
55
+ if (token.includes('/')) {
56
+ // w:1/2 -> width: 50%
57
+ const splits = token.split('/');
58
+ return { value: (+splits[0] / +splits[1]) * 100 + '%', unit, unitToken };
59
+ }
60
+ else {
61
+ value = +matches[1];
62
+ unit = unitToken = matches[3] || '';
63
+ /**
64
+ * 當無單位值且 defaultUnit === 'rem',
65
+ * 將 pxValue / 16 轉為 remValue
66
+ */
67
+ if (!unit) {
68
+ if (defaultUnit === 'rem' || defaultUnit === 'em') {
69
+ value = value / rootSize;
70
+ }
71
+ unit = defaultUnit || '';
72
+ }
73
+ return { value, unit, unitToken };
74
+ }
75
+ }
76
+ }
77
+ value = (token.indexOf('calc(') === -1
78
+ ? token
79
+ : normalizeCssCalcText(token))
80
+ .replace(/\$\(((\w|-)+)\)/g, VAR_START + '$1)');
81
+ }
82
+ return { value, unit, unitToken, colorMatched };
83
+ }
84
+ //# sourceMappingURL=parse-value.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse-value.js","sourceRoot":"","sources":["../../../src/utils/parse-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,kBAAkB,GAAG,4BAA4B,CAAA;AACvD,MAAM,SAAS,GAAG,QAAQ,CAAA;AAE1B,MAAM,UAAU,UAAU,CACtB,KAAsB,EACtB,WAAoB,EACpB,eAAwE,EACxE,MAAwC,EACxC,QAAiB,EACjB,MAAiB;IAOjB,IAAI,KAAK,GAAQ,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;IAC5C,IAAI,IAAI,GAAG,EAAE,CAAA;IACb,IAAI,SAAS,GAAG,EAAE,CAAA;IAClB,IAAI,YAAY,GAAY,SAAS,CAAA;IAErC,IAAI,KAAK,EAAE;QACP,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;KACpC;SAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAClC,KAAK,GAAG,KAAK,CAAA;QACb,IAAI,GAAG,WAAW,IAAI,EAAE,CAAA;KAC3B;SAAM;QACH,IAAI,eAAe,EAAE;YACjB,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA;YAC/C,IAAI,UAAU,GAAG,KAAK,CAAA;YACtB,IAAI,YAAY,GAAG,KAAK,CAAA;YAExB,KAAK,GAAG,KAAK,CAAC,OAAO,CACjB,IAAI,MAAM,CAAC,eAAe,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,0DAA0D,EAAE,IAAI,CAAC,EAC/G,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,EAAE;gBAC7C,YAAY,GAAG,IAAI,CAAA;gBAEnB,MAAM,gBAAgB,GAAI,eAAe,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,CAAA;gBACnE,IAAI,gBAAgB,EAAE;oBAClB,IAAI,QAAgB,CAAA;oBACpB,KAAK,MAAM,SAAS,IAAI,MAAM,EAAE;wBAC5B,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,SAAS,CAAC,CAAC;4BACxC,MAAK;qBACZ;oBAED,IAAI,QAAQ,EAAE;wBACV,UAAU,GAAG,IAAI,CAAA;wBAEjB,IAAI,QAAQ,GAAG,QAAQ,CAAA;wBACvB,IAAI,UAAU,EAAE;4BACZ,IAAI,OAAO,GAAG,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;gCAClC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,GAAG,KAAK;gCAChC,CAAC,CAAC,CAAC,UAAU,CAAA;4BAEjB,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;gCACpB,CAAC,CAAC,CAAC;gCACH,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;4BAEvC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;yBACpF;wBAED,OAAO,MAAM,GAAG,QAAQ,CAAA;qBAC3B;iBACJ;gBAED,OAAO,MAAM,CAAA;YACjB,CAAC,CAAC,CAAA;YAEN,IAAI,YAAY,EAAE;gBACd,YAAY,GAAG,UAAU,CAAA;aAC5B;SACJ;QACD,IAAI,WAAW,EAAE;YACb,MAAM,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAA;YAC/C,yEAAyE;YACzE,IAAI,OAAO,EAAE;gBACT,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;oBACrB,sBAAsB;oBACtB,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;oBAC/B,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;iBAC3E;qBAAM;oBACH,KAAK,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAA;oBACnB,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;oBACnC;;;uBAGG;oBACH,IAAI,CAAC,IAAI,EAAE;wBACP,IAAI,WAAW,KAAK,KAAK,IAAI,WAAW,KAAK,IAAI,EAAE;4BAC/C,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;yBAC3B;wBACD,IAAI,GAAG,WAAW,IAAI,EAAE,CAAA;qBAC3B;oBACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;iBACpC;aACJ;SACJ;QACD,KAAK,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAClC,CAAC,CAAC,KAAK;YACP,CAAC,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;aAC7B,OAAO,CAAC,kBAAkB,EAAE,SAAS,GAAG,KAAK,CAAC,CAAA;KACtD;IACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,YAAY,EAAE,CAAA;AACnD,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function rgbToHex(r: any, g: any, b: any): any;
@@ -0,0 +1,4 @@
1
+ export function rgbToHex(r, g, b) {
2
+ return ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
3
+ }
4
+ //# sourceMappingURL=rgb-to-hex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rgb-to-hex.js","sourceRoot":"","sources":["../../../src/utils/rgb-to-hex.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IAC5B,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;AACvE,CAAC"}
package/index.cjs.js ADDED
@@ -0,0 +1,3 @@
1
+ var $o=Object.create;var Ei=Object.defineProperty;var Uo=Object.getOwnPropertyDescriptor;var Qo=Object.getOwnPropertyNames;var Yo=Object.getPrototypeOf,qo=Object.prototype.hasOwnProperty;var Xo=(r,o,i)=>o in r?Ei(r,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[o]=i;var Zo=(r,o)=>()=>(o||r((o={exports:{}}).exports,o),o.exports),Jo=(r,o)=>{for(var i in o)Ei(r,i,{get:o[i],enumerable:!0})},Mo=(r,o,i,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let s of Qo(o))!qo.call(r,s)&&s!==i&&Ei(r,s,{get:()=>o[s],enumerable:!(a=Uo(o,s))||a.enumerable});return r};var io=(r,o,i)=>(i=r!=null?$o(Yo(r)):{},Mo(o||!r||!r.__esModule?Ei(i,"default",{value:r,enumerable:!0}):i,r)),Ko=r=>Mo(Ei({},"__esModule",{value:!0}),r);var e=(r,o,i)=>(Xo(r,typeof o!="symbol"?o+"":o,i),i),No=(r,o,i)=>{if(!o.has(r))throw TypeError("Cannot "+i)};var Ee=(r,o,i)=>(No(r,o,"read from private field"),i?i.call(r):o.get(r)),oo=(r,o,i)=>{if(o.has(r))throw TypeError("Cannot add the same private member more than once");o instanceof WeakSet?o.add(r):o.set(r,i)},so=(r,o,i,a)=>(No(r,o,"write to private field"),a?a.call(r,i):o.set(r,i),i);var eo=Zo((Co,Go)=>{(function(r,o){typeof Co=="object"?Go.exports=o(r):typeof define=="function"&&define.amd?define([],o.bind(r,r)):o(r)})(typeof global<"u"?global:Co,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var o=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");var a=String(i),s=a.length,c=-1,d,p="",f=a.charCodeAt(0);if(s==1&&f==45)return"\\"+a;for(;++c<s;){if(d=a.charCodeAt(c),d==0){p+="\uFFFD";continue}if(d>=1&&d<=31||d==127||c==0&&d>=48&&d<=57||c==1&&d>=48&&d<=57&&f==45){p+="\\"+d.toString(16)+" ";continue}if(d>=128||d==45||d==95||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122){p+=a.charAt(c);continue}p+="\\"+a.charAt(c)}return p};return r.CSS||(r.CSS={}),r.CSS.escape=o,o})});var Cs={};Jo(Cs,{DefaultRules:()=>So,MasterCSSRule:()=>t,PRIORITY_SELECTORS:()=>xo,configure:()=>yo,default:()=>P,defaultBreakpoints:()=>Tr,defaultColors:()=>ao,defaultConfig:()=>kr,defaultRootSize:()=>no,defaultScheme:()=>fo,defaultSelectors:()=>lo,defaultSemantics:()=>co,defaultThemes:()=>mo,defaultValues:()=>po,extend:()=>Ki,fillColorScale:()=>E,init:()=>qi,render:()=>_o,renderFromHTML:()=>to,renderIntoHTML:()=>zo});module.exports=Ko(Cs);var es={"3xs":360,"2xs":480,xs:600,sm:768,md:1024,lg:1280,xl:1440,"2xl":1600,"3xl":1920,"4xl":2560},Tr=es;function Di(r){r.startsWith("#")&&(r=r.slice(1));let o=r.match(/.{1,2}/g);return[parseInt(o[0],16),parseInt(o[1],16),parseInt(o[2],16)]}function ko(r,o,i){return((1<<24)+(r<<16)+(o<<8)+i).toString(16).slice(1)}function E(r){typeof r=="string"&&(r={"":r});let o=""in r,i=!1;for(let a in r)if(a&&+a>=100){i=!0;break}if(!i&&(!o||Object.keys(r).length>1)){let a=0,s="0"in r?Di(r[0]):[0,0,0],c,d,p=[],f=()=>{let u=c-a,x=d.map((l,m)=>(l-s[m])/u);for(let l of p){let m=l-a,n=s.map((v,h)=>Math.round(v+x[h]*m));r[l]="#"+ko.call(this,...n)}};for(let u=1;u<100;u++)u in r?(p.length?(c=u,d=Di(r[u]),f(),p.length=0,s=d):s=Di(r[u]),a=u):p.push(u);p.length&&(c=100,d="100"in r?Di(r[100]):[255,255,255],f())}return o||(r[""]=r[i?"500":"50"]),r}var ts={slate:E({5:"#141e2b",10:"#19212d",20:"#262f3e",30:"#323e52",40:"#41516b",50:"#616a84",55:"#6c7693",60:"#959db3",70:"#a3abbf",80:"#d7dae3",95:"#f6f7f8"}),gray:E({5:"#1e1d1f",10:"#212022",20:"#2f2e30",30:"#3e3d40",40:"#504f52",50:"#6b6a6d",55:"#777679",60:"#9e9da0",70:"#abaaae",80:"#dad9db",95:"#f5f4f7"}),brown:E({5:"#271b15",10:"#2b1e18",20:"#3c2b22",30:"#50382c",40:"#694839",50:"#8d604b",55:"#9d6b53",60:"#b79788",70:"#c1a598",80:"#efd5c9",95:"#faf2ef"}),orange:E({5:"#2e1907",10:"#331b07",20:"#47260b",30:"#5d320e",40:"#7a4111",50:"#a15717",55:"#b4611a",60:"#e38739",70:"#e79855",80:"#f7d4b5",95:"#fcf1e7"}),gold:E({5:"#281b00",10:"#2d1e01",20:"#3f2a00",30:"#543800",40:"#6d4900",50:"#906000",55:"#9c6d00",60:"#d09100",70:"#dca000",80:"#fbd67f",95:"#fff3d8"}),yellow:E({5:"#251d00",10:"#282000",20:"#3a2e01",30:"#4b3b00",40:"#624e00",50:"#806700",55:"#8e7200",60:"#be9900",70:"#d0a700",80:"#edda8f",95:"#fff5ca"}),grass:E({5:"#162106",10:"#182406",20:"#223308",30:"#2c4408",40:"#3a570b",50:"#4e750e",60:"#74ae15",70:"#7dbc17",80:"#bfe87c",95:"#ebfad4"}),green:E({5:"#042311",10:"#032611",20:"#023717",30:"#03481f",40:"#025d26",50:"#067b34",55:"#07883a",60:"#09b64d",70:"#0ac553",80:"#80f1a4",95:"#e0fae8"}),beryl:E({5:"#002319",10:"#00271c",20:"#003626",30:"#004732",40:"#005c41",50:"#007954",55:"#00875e",60:"#00b37c",70:"#00c387",80:"#72f0c5",95:"#d6fcef"}),teal:E({5:"#012220",10:"#012624",20:"#003532",30:"#004541",40:"#005a54",50:"#00776f",55:"#00857c",60:"#00b1a5",70:"#00bfb2",80:"#6aeee5",95:"#d4fcf8"}),cyan:E({5:"#00222b",10:"#00252e",20:"#013340",30:"#004457",40:"#00576f",50:"#007391",55:"#0080a1",60:"#00abd7",70:"#00b9e9",80:"#97e6fa",95:"#dff8ff"}),sky:E({5:"#031f34",10:"#032339",20:"#04314e",30:"#044169",40:"#065386",50:"#086eb3",55:"#097ac5",60:"#29a4f5",70:"#4db3f7",80:"#b3e0ff",95:"#eaf6fe"}),blue:E({5:"#07194a",10:"#081c53",20:"#0a2773",30:"#0e3496",40:"#1146b6",50:"#175fe9",55:"#2671ea",60:"#6b9ef1",70:"#81acf3",80:"#c6dbfe",95:"#edf4fe"}),indigo:E({5:"#1f1645",10:"#20174f",20:"#2b1f74",30:"#37289d",40:"#463fb1",50:"#5a5bd5",55:"#6464f1",60:"#9393f5",70:"#a1a5ee",80:"#d5d7fe",95:"#f1f2ff"}),violet:E({5:"#2b0a4e",10:"#2e0b57",20:"#3d1179",30:"#4e169f",40:"#5f2eba",50:"#7949e5",55:"#8755f5",60:"#ac8af8",70:"#b89bf9",80:"#e1d4fe",95:"#f5f1ff"}),purple:E({5:"#2e0c47",10:"#330c4e",20:"#460f6c",30:"#5b1390",40:"#7421b1",50:"#9832e4",55:"#a348e7",60:"#c184ef",70:"#ca96f1",80:"#ead1fe",95:"#f9f0ff"}),fuchsia:E({5:"#39092a",10:"#400932",20:"#560d4a",30:"#6f1165",40:"#8c158a",50:"#b61cbb",55:"#ca1fce",60:"#e66ee9",70:"#ea86ed",80:"#facbfb",95:"#feefff"}),pink:E({5:"#3d0722",10:"#430725",20:"#5d0933",30:"#790d44",40:"#9a1058",50:"#ca1473",55:"#e11681",60:"#f170b4",70:"#f388c0",80:"#fdcde6",95:"#fff0f8"}),crimson:E({5:"#430213",10:"#470314",20:"#62041c",30:"#800524",40:"#9f1036",50:"#ce1a4b",55:"#e8144c",60:"#f37596",70:"#f58ba7",80:"#fdceda",95:"#fff1f4"}),red:E({5:"#450001",10:"#490102",20:"#640304",30:"#800506",40:"#a11012",50:"#d11a1e",55:"#ed0a0e",60:"#f97476",70:"#fa8b8d",80:"#fdcfcf",95:"#fff1f1"}),black:"#000000",white:"#ffffff"},ao=ts;var no=16;var rs={"::scrollbar":"::-webkit-scrollbar","::scrollbar-button":"::-webkit-scrollbar-button","::scrollbar-thumb":"::-webkit-scrollbar-thumb","::scrollbar-track":"::-webkit-scrollbar-track","::scrollbar-track-piece":"::-webkit-scrollbar-track-piece","::scrollbar-corner":"::-webkit-scrollbar-corner","::slider-thumb":["::-webkit-slider-thumb","::-moz-range-thumb"],"::slider-runnable-track":["::-webkit-slider-runnable-track","::-moz-range-track"],"::meter":"::-webkit-meter","::resizer":"::-webkit-resizer","::progress":"::-webkit-progress",":first":":first-child",":last":":last-child",":even":":nth-child(2n)",":odd":":nth-child(odd)",":nth(":":nth-child("},lo=rs;var is={square:"aspect-ratio:1/1",video:"aspect-ratio:16/9",rounded:"border-radius:1e9em",round:"border-radius:50%",hidden:"display:none",hide:"display:none",block:"display:block",table:"display:table",flex:"display:flex",grid:"display:grid",contents:"display:contents",inline:"display:inline","inline-block":"display:inline-block","inline-flex":"display:inline-flex","inline-grid":"display:inline-grid","inline-table":"display:inline-table","table-cell":"display:table-cell","table-caption":"display:table-caption","flow-root":"display:flow-root","list-item":"display:list-item","table-row":"display:table-row","table-column":"display:table-column","table-row-group":"display:table-row-group","table-column-group":"display:table-column-group","table-header-group":"display:table-header-group","table-footer-group":"display:table-footer-group",italic:"font-style:italic",oblique:"font-style:oblique",isolate:"isolation:isolate",overflow:"overflow:visible",untouchable:"pointer-events:none",static:"position:static",fixed:"position:fixed",abs:"position:absolute",rel:"position:relative",sticky:"position:sticky",uppercase:"text-transform:uppercase",lowercase:"text-transform:lowercase",capitalize:"text-transform:capitalize",visible:"visibility:visible",invisible:"visibility:hidden","center-content":{"justify-content":"center","align-items":"center"},"sr-only":{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)","white-space":"nowrap","border-width":"0"},full:{width:"100%",height:"100%"},center:{left:0,right:0,"margin-left":"auto","margin-right":"auto"},middle:{top:0,bottom:0,"margin-top":"auto","margin-bottom":"auto"},"break-spaces":{"white-space":"break-spaces"},"break-word":{"overflow-wrap":"break-word",overflow:"hidden"}},co=is;var os=["dark","light"],mo=os;var ss={preference:"system",storage:{sync:!0,key:"scheme"}},fo=ss;var ji={content:"content-box",border:"border-box",padding:"padding-box"},Li={min:"min-content",max:"max-content"},q={full:"100%",fit:"fit-content",max:"max-content",min:"min-content"};for(let r in Tr)q[r]=Tr[r]/16+"rem";var as={BackgroundClip:ji,BackgroundOrigin:ji,BoxSizing:{content:"content-box",border:"border-box"},ClipPath:{...ji,margin:"margin-box",fill:"fill-box",stroke:"stroke-box",view:"view-box"},FlexDirection:{col:"column","col-reverse":"column-reverse"},FontFamily:{mono:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",sans:"ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",serif:"ui-serif, Georgia, Cambria, Times New Roman, Times, serif"},FontWeight:{thin:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,heavy:900},GridAutoColumns:Li,GridAutoRows:Li,GridTemplateColumns:Li,GridTemplateRows:Li,Order:{first:-999999,last:999999},Position:{abs:"absolute",rel:"relative"},ShapeOutside:{...ji,margin:"margin-box"},TransformBox:{...ji,fill:"fill-box",stroke:"stroke-box",view:"view-box"},Width:q,MinWidth:q,MinHeight:q,MaxWidth:q,MaxHeight:q,Height:q,FlexBasis:q},po=as;function Gi(r,o){return(r?r+":":"")+(o.unit?o.value+o.unit:o.value)+(o.important?"!important":"")}function To(r){let o=p=>p==="+"||p==="-"||p==="*"||p==="/",i="",a,s="",c=!1;function d(){a=null,s=""}for(let p=0;p<r.length;p++){let f=r[p];if(f==="("||f===")")c=f===")",i+=s+f,d();else if(f===",")i+=s+f+" ",d();else{switch(a){case 1:break;case 2:if(o(f)){i+=s+" "+f+" ",d();continue}break;default:c&&(s+=" "),isNaN(+f)?o(f)||(a=1):a=2;break}s+=f}}return s&&(i+=s),i}var ns=/^([+-.]?\d+(\.?\d+)?)(.*)?/,ls="var(--";function _i(r,o,i,a,s,c){let d=a?a[r]:"",p="",f="",u;if(d)return{value:d,unit:p,unitToken:f};if(typeof r=="number")d=r,p=o||"";else{if(i){let x=Object.keys(i),l=!1,m=!1;r=r.replace(new RegExp(`(^|,| |\\()(${x.join("|")})(?:-([0-9]+))?(?:\\/(\\.?[0-9]+%?))?(?=(\\)|\\}|,| |$))`,"gm"),(n,v,h,g,S)=>{m=!0;let y=i[h]?.[g||""];if(y){let O;for(let B of c)if(O=y[B])break;if(O){l=!0;let B=O;if(S){let R=S.endsWith("%")?parseFloat(S)/100:+S;R=isNaN(R)?1:Math.min(Math.max(R,0),1),B+=Math.round(R*255).toString(16).toUpperCase().padStart(2,"0")}return v+B}}return n}),m&&(u=l)}if(o){let x=r.match(ns);if(x)if(r.includes("/")){let l=r.split("/");return{value:+l[0]/+l[1]*100+"%",unit:p,unitToken:f}}else return d=+x[1],p=f=x[3]||"",p||((o==="rem"||o==="em")&&(d=d/s),p=o||""),{value:d,unit:p,unitToken:f}}d=(r.indexOf("calc(")===-1?r:To(r)).replace(/\$\(((\w|-)+)\)/g,ls+"$1)")}return{value:d,unit:p,unitToken:f,colorMatched:u}}var wr={"(":")","'":"'","{":"}"};var xo=[":disabled",":active",":focus",":hover"],zi="matches",cs="semantics",wo="symbol",Ao="width",uo="max-"+Ao,ho="min-"+Ao,vo="motion",Io="reduce",Oo=Io+"d-"+vo,go="px",ds="rem",ms=["!","*",">","+","~",":","[","@","_"],fs=/(\\'(?:.*?)[^\\]\\')(?=[*_>~+,)])|(\[[^=]+='(?:.*?)[^\\]'\])/,ps=r=>r.split(fs).map((o,i)=>i%3?o:o.replace(/_/g," ")).join(""),t=class{constructor(o,i,a){this.className=o;this.matching=i;this.css=a;let s=this.constructor,{id:c,unit:d,propName:p,colorful:f}=s,{breakpoints:u,mediaQueries:x,semantics:l,rootSize:m}=a.config,n=a.config.values[c],v=a.relationThemesMap[o],{themeNames:h,colorsThemesMap:g,selectors:S}=a,y=o,O,B,R,F;if(i.origin===cs)R=y.slice(i.value.length),O=l[i.value];else{let I;if(i.origin===zi)if(c==="Group"){let k=0;for(;k<y.length&&!(y[k]==="{"&&y[k-1]!=="\\");k++);B=y.slice(0,k),I=y.slice(k)}else{let k=y.indexOf(":");this.prefix=y.slice(0,k+1),this.prefix.includes("(")?(this.prefix=void 0,I=y):I=y.slice(k+1)}else i.origin===wo&&(this.symbol=y[0],I=y.slice(1));F=[];let C="",M=0;(function k(j,N,T=""){let b,w=!1;for(j&&(j===")"&&C.slice(-1)==="$"?b=C.length-1:j==="'"&&(w=!0),C+=I[M++]);M<I.length;M++){let A=I[M];if(A===j){if(C+=A,w){let W=0;for(let z=C.length-2;C[z]==="\\";z--)W++;if(W%2)continue}b!==void 0&&(C=C.slice(0,b)+C.slice(b).replace(/\$\((.*)\)/,"var(--$1)")),N||(w?F.push(C):F.push({value:C}),T="",C="");break}else if(!w&&A in wr)k(wr[A],N===void 0?0:N+1,T);else if(A==="|"&&j!=="}"&&(!w||T==="path"))j?C+=" ":(F.push({value:C}),C="");else{if(!j){if(A==="."){if(isNaN(+I[M+1]))break;I[M-1]==="-"&&(C+="0")}else if(A===","){F.push({value:C},","),C="";continue}else if(A==="#"&&(C||F.length&&I[M-1]!=="|")||ms.includes(A))break;T+=A}C+=A}}})(),C&&F.push({value:C}),R=I.slice(M)}R[0]==="!"&&(this.important=!0,R=R.slice(1));let D=I=>{let C=ps(I),M=[],k="",j=0;for(let N=0;N<C.length;N++){let T=C[N];if(T==="\\"){k+=T+C[++N];continue}!j&&T===","?(M.push(k),k=""):(k+=T,j&&T===")"?j--:T==="("&&j++)}return k&&M.push(k),M};this.prefixSelectors=B?D(B):[""];let H=R.split("@"),$=H[0];if($){this.vendorSuffixSelectors={};let I=(N,T,b,w)=>{for(let[A,W]of T)if(A.test(N)){for(let z of W)I(N.replace(A,z),T,b,!0);return}w&&b.push(N)},C=[];""in S?I($,S[""],C,!0):C.push($);let M={};for(let[N,T]of Object.entries(S)){if(!N)continue;let b=[];for(let w of C)I(w,T,b,!1);b.length&&(M[N]=b)}let k=(N,T)=>{let b=T.reduce((w,A)=>(w.push(...D(A)),w),[]);N in this.vendorSuffixSelectors?this.vendorSuffixSelectors[N].push(...b):this.vendorSuffixSelectors[N]=b},j=Object.keys(M);if(j.length)for(let N of j)k(N,M[N]);else k("",C);for(let N of Object.values(this.vendorSuffixSelectors))for(let T of N){this.hasWhere!==!1&&(this.hasWhere=T.includes(":where("));for(let b=0;b<xo.length;b++)if(T.includes(xo[b])){(this.prioritySelectorIndex===-1||this.prioritySelectorIndex>b)&&(this.prioritySelectorIndex=b);break}}}else this.vendorSuffixSelectors={"":[""]};for(let I=1;I<H.length;I++){let C=H[I];if(C)if(h.includes(C))this.themeName=C;else if(C==="rtl"||C==="ltr")this.direction=C;else{let M,k,j=C.indexOf("_");if(j!==-1)M=C.slice(0,j),k=C.slice(j);else{let N=C.indexOf("(");N!==-1&&(M=C.slice(0,N),k=C.slice(N))}if(!M){M="media";let N=[];this.media={token:C,features:{}};let T=C.split("&");for(let b of T)if(b==="all"||b==="print"||b==="screen"||b==="speech")this.media.type=b;else if(b==="\u{1F5A8}")this.media.type="print";else if(b==="landscape"||b==="portrait")N.push("(orientation:"+b+")");else if(b===vo||b===Oo)N.push("(prefers-"+Oo+":"+(b===vo?"no-preference":Io)+")");else if(x&&b in x)N.push(x[b]);else{let w={token:b},A="",W="",z=0;b.startsWith("<=")?(W="<=",A=uo):b.startsWith(">=")||u[b]?(W=">=",A=ho):b.startsWith(">")?(W=">",A=ho,z=.02):b.startsWith("<")&&(W="<",A=uo,z=-.02);let Y=W?b.replace(W,""):b,L=u[Y];switch(A){case uo:case ho:L?Object.assign(w,_i(L,go)):Object.assign(w,_i(Y,go)),w.unit===go&&(w.value+=z),this.media.features[A]=w,N.push("("+A+":"+(w.value+w.unit)+")");break}}k="",this.media.type&&(k=this.media.type),N.length&&(k+=(k?" and ":"")+N.join(" and "))}k&&(this.at[M]=(M in this.at?this.at[M]+" and ":"")+k.replace(/_/g," "))}}this.order===void 0&&(this.order=0);let V=(I,C)=>{let M,k,j=(T,b,w)=>{let A="";this.direction&&(A+="[dir="+this.direction+"] ");let W=this.prefixSelectors.map(L=>L+A),z=(L,Wi)=>{let Fi=L?"."+L+" ":"",ro="."+CSS.escape(Wi);return W.map(Pi=>Fi+Pi).reduce((Pi,Ho)=>(Pi.push(w.reduce((Ro,Vo)=>(Ro.push(Ho+ro+Vo),Ro),[]).join(",")),Pi),[]).join(",")},Y=z(b,o)+(v?Object.entries(v).filter(([L])=>this.themeName||!f||!b||!L||L===b).map(([L,Wi])=>Wi.reduce((Fi,ro)=>Fi+","+z(this.themeName??(f&&b||L),ro),"")).join(""):"")+"{"+T+"}";for(let L of Object.keys(this.at).sort((Wi,Fi)=>Fi==="supports"?-1:1))Y="@"+L+" "+this.at[L]+"{"+Y+"}";return Y},N=[];if(F){let T,b;for(let w of F)typeof w=="string"?N.push(w):(T=_i(w.value,d,f&&g,n,m,this.themeName?[this.themeName,""]:[I]),T.colorMatched!==void 0&&b!==!0&&(b=T.colorMatched),N.push(T.value+T.unit));if(C&&(b===void 0?I:!b))return;if(N.length===1?T?(M=T.value,k=T.unit):M=N[0]:M=N.reduce((w,A,W)=>w+A+(A===","||F[W+1]===","||W===F.length-1?"":" "),""),typeof M!="object"){this.parseValue&&(M=this.parseValue(M,this.css.config)),f&&M==="current"?M="currentColor":n&&M in n&&(M=n[M].toString());let w={unit:k,value:M,important:this.important};if(this.getThemeProps){let A=this.getThemeProps(w,a);for(let W in A)for(let z of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:M,text:j(Object.entries(A[W]).map(([Y,L])=>Gi(Y,{important:this.important,unit:"",value:L})).join(";"),W,z),themeName:W});return}else this.get&&(M=this.get(w))}}else M=O;for(let T of Object.values(this.vendorSuffixSelectors))this.natives.push({unit:k,value:M,text:j(typeof M=="object"?Object.entries(M).map(([b,w])=>Gi(b,{...typeof w=="object"?w:{unit:"",value:w},important:this.important})).join(";"):Gi(p,{unit:k,value:M,important:this.important}),I,T),themeName:I})};if(this.getThemeProps)V(void 0,!1);else if(this.themeName)V(this.themeName,!1);else if(f)for(let I of h)V(I,!0);else V("",!1)}prefix;symbol;token;prefixSelectors;vendorSuffixSelectors;important;media;at={};direction;themeName;unitToken;hasWhere;prioritySelectorIndex=-1;natives=[];static match(o,i){if(this.matches&&this.matches.test(o))return{origin:zi};if(this.colorStarts&&(o.match("^"+this.colorStarts+"(?:(?:#|(rgb|hsl)\\(.*\\))((?!\\|).)*$|(?:transparent|current))")||i.length&&o.match("^"+this.colorStarts+"("+i.join("|")+")")&&o.indexOf("|")===-1))return{origin:zi};if(this.symbol&&o.startsWith(this.symbol))return{origin:wo};if(this.propName&&o.startsWith(this.propName+":"))return{origin:zi}}};e(t,"id"),e(t,"propName"),e(t,"matches"),e(t,"colorStarts"),e(t,"symbol"),e(t,"unit",ds),e(t,"colorful");typeof window<"u"&&(window.MasterCSSRule=t);var X=class extends t{};e(X,"id","FontWeight"),e(X,"matches",/^f(ont)?:(thin|extralight|light|regular|medium|semibold|bold|bolder|extrabold|heavy)(?!\|)/),e(X,"propName","font-weight"),e(X,"unit","");var De=class extends t{};e(De,"id","FontFamily"),e(De,"matches",/^f(ont)?:(mono|sans|serif)(?!\|)/),e(De,"propName","font-family");var je=class extends t{};e(je,"id","FontSize"),e(je,"matches",/^f(ont)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(je,"propName","font-size");var Or=class extends t{get(r){let i=this.prefix[0]==="m"?"margin":"padding",a=i+"-left",s=i+"-right",c=i+"-top",d=i+"-bottom";switch(this.prefix[1]){case"x":return{[a]:r,[s]:r};case"y":return{[c]:r,[d]:r};case"l":return{[a]:r};case"r":return{[s]:r};case"t":return{[c]:r};case"b":return{[d]:r};default:return{[i]:r}}}get order(){return this.prefix==="p:"||this.prefix==="m:"?-1:0}};e(Or,"id","Spacing"),e(Or,"matches",/^[pm][xytblr]?:./);var We=class extends t{};e(We,"id","Width"),e(We,"matches",/^w:./),e(We,"propName","width");var Pe=class extends t{};e(Pe,"id","Height"),e(Pe,"matches",/^h:./),e(Pe,"propName","height");var Le=class extends t{};e(Le,"id","MinWidth"),e(Le,"matches",/^min-w:./),e(Le,"propName","min-width");var Ge=class extends t{};e(Ge,"id","MinHeight"),e(Ge,"matches",/^min-h:./),e(Ge,"propName","min-height");var Z=class extends t{};e(Z,"id","LetterSpacing"),e(Z,"matches",/^ls:./),e(Z,"propName","letter-spacing"),e(Z,"unit","em");var us="subpixel-antialiased",Bo="-webkit-font-smoothing",Fo="-moz-osx-font-smoothing",_e=class extends t{get(r){let o={};switch(r.value){case us:o[Bo]=o[Fo]={...r,value:"auto"};break;case"antialiased":o[Bo]={...r,value:"antialiased"},o[Fo]={...r,value:"grayscale"};break}return o}};e(_e,"id","FontSmoothing"),e(_e,"matches",/^f(ont)?:(antialiased|subpixel-antialiased)(?!\|)/),e(_e,"unit","");var J=class extends t{};e(J,"id","FontStyle"),e(J,"matches",/^f(ont)?:(normal|italic|oblique)(?!\|)/),e(J,"propName","font-style"),e(J,"unit","deg");var ze=class extends t{};e(ze,"id","FontVariantNumeric"),e(ze,"matches",/^f(ont)?:(ordinal|slashed-zero|lining-nums|oldstyle-nums|proportional-nums|tabular-nums|diagonal-fractions|stacked-fractions)(?!\|)/),e(ze,"propName","font-variant-numeric");var K=class extends t{};e(K,"id","LineHeight"),e(K,"matches",/^lh:./),e(K,"propName","line-height"),e(K,"unit","");var He=class extends t{};e(He,"id","ObjectFit"),e(He,"matches",/^(object|obj):(contain|cover|fill|scale-down)/),e(He,"propName","object-fit");var Ve=class extends t{};e(Ve,"id","ObjectPosition"),e(Ve,"matches",/^(object|obj):(top|bottom|right|left|center)/),e(Ve,"propName","object-position");var $e=class extends t{};e($e,"id","TextAlign"),e($e,"matches",/^t(ext)?:(justify|center|left|right|start|end)(?!\|)/),e($e,"propName","text-align");var ee=class extends t{order=-1};e(ee,"id","TextDecoration"),e(ee,"matches",/^t(ext)?:(underline|line-through|overline)/),e(ee,"propName","text-decoration"),e(ee,"colorful",!0);var Ue=class extends t{};e(Ue,"id","TextTransform"),e(Ue,"matches",/^t(ext)?:(uppercase|lowercase|capitalize)(?!\|)/),e(Ue,"propName","text-transform");var Qe=class extends t{};e(Qe,"id","VerticalAlign"),e(Qe,"matches",/^(?:v|vertical):./),e(Qe,"propName","vertical-align");var Ye=class extends t{get(r){return{overflow:{...r,value:"hidden"},display:{...r,value:"-webkit-box"},"overflow-wrap":{...r,value:"break-word"},"text-overflow":{...r,value:"ellipsis"},"-webkit-box-orient":{...r,value:"vertical"},"-webkit-line-clamp":r}}};e(Ye,"id","Lines"),e(Ye,"matches",/^lines:./),e(Ye,"unit","");var te=class extends t{};e(te,"id","TransformOrigin"),e(te,"matches",/^transform:((top|bottom|right|left|center)|\d)/),e(te,"propName","transform-origin"),e(te,"unit","px");var qe=class extends t{};e(qe,"id","TransformStyle"),e(qe,"matches",/^transform:(flat|preserve-3d)(?!\|)/),e(qe,"propName","transform-style");var Xe=class extends t{};e(Xe,"id","TransformBox"),e(Xe,"matches",/^transform:(content|border|fill|stroke|view)(?!\|)/),e(Xe,"propName","transform-box");var re=class extends t{parseValue(r,{rootSize:o}){return r.replace(/(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\((.*?)\)/g,(i,a,s,c)=>{let d,p;switch(a){case"translate":d="rem";break;case"skew":d="deg";break;case"rotate":s==="3d"&&(p=!0),d="deg";break;default:return i}let f=c.split(",");return i.replace(c,f.map((u,x)=>!p||f.length-1===x?Number.isNaN(+u)?u:u/(d==="rem"?o:1)+d:u).join(","))})}};e(re,"id","Transform"),e(re,"matches",/^(translate|scale|skew|rotate|perspective|matrix)(3d|[XYZ])?\(/),e(re,"propName","transform"),e(re,"unit","");var Ze=class extends t{order=-1};e(Ze,"id","Transition"),e(Ze,"symbol","~"),e(Ze,"propName","transition");var ie=class extends t{};e(ie,"id","TransitionDelay"),e(ie,"matches",/^~delay:./),e(ie,"propName","transition-delay"),e(ie,"unit","ms");var oe=class extends t{};e(oe,"id","TransitionDuration"),e(oe,"matches",/^~duration:./),e(oe,"propName","transition-duration"),e(oe,"unit","ms");var Je=class extends t{};e(Je,"id","TransitionProperty"),e(Je,"matches",/^~property:./),e(Je,"propName","transition-property");var Ke=class extends t{};e(Ke,"id","TransitionTimingFunction"),e(Ke,"matches",/^~easing:./),e(Ke,"propName","transition-timing-function");var et=class extends t{};e(et,"id","MaxHeight"),e(et,"matches",/^max-h:./),e(et,"propName","max-height");var tt=class extends t{};e(tt,"id","MaxWidth"),e(tt,"matches",/^max-w:./),e(tt,"propName","max-width");var rt=class extends t{};e(rt,"id","Display"),e(rt,"matches",/^d:./),e(rt,"propName","display");var it=class extends t{};e(it,"id","BoxSizing"),e(it,"matches",/^box:(content|border)(?!\|)/),e(it,"propName","box-sizing");var ot=class extends t{};e(ot,"id","Opacity"),e(ot,"propName","opacity"),e(ot,"unit","");var Ar=class extends t{};e(Ar,"id","Visibility"),e(Ar,"propName","visibility");var Ir=class extends t{};e(Ir,"id","Clear"),e(Ir,"propName","clear");var Br=class extends t{};e(Br,"id","Float"),e(Br,"propName","float");var Fr=class extends t{};e(Fr,"id","Isolation"),e(Fr,"propName","isolation");var Er=class extends t{get(r){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":return{"overflow-x":r};case"y":return{"overflow-y":r}}return{overflow:r}}get order(){if(this.prefix)switch(this.prefix.slice(-2,-1)){case"x":case"y":return 0}return-1}};e(Er,"id","Overflow"),e(Er,"matches",/^overflow(-x|-y)?:(?:visible|overlay|hidden|scroll|auto|clip|inherit|initial|revert|revert-layer|unset|\$|var)/);var Dr=class extends t{get(r){switch(this.prefix.slice(-2,-1)){case"x":return{"overscroll-behavior-x":r};case"y":return{"overscroll-behavior-y":r};default:return{"overscroll-behavior":r}}}};e(Dr,"id","OverscrollBehavior"),e(Dr,"matches",/^overscroll-behavior(?:-[xy])?:/);var se=class extends t{};e(se,"id","ZIndex"),e(se,"matches",/^z:./),e(se,"propName","z-index"),e(se,"unit","");var ae=class extends t{};e(ae,"id","AnimationDelay"),e(ae,"matches",/^@delay:./),e(ae,"propName","animation-delay"),e(ae,"unit","ms");var st=class extends t{};e(st,"id","AnimationDirection"),e(st,"matches",/^@direction:./),e(st,"propName","animation-direction");var at=class extends t{};e(at,"id","AnimationFillMode"),e(at,"matches",/^@fill-mode:./),e(at,"propName","animation-fill-mode");var ne=class extends t{};e(ne,"id","AnimationIterationCount"),e(ne,"matches",/^@iteration-count:./),e(ne,"propName","animation-interation-count"),e(ne,"unit","");var nt=class extends t{};e(nt,"id","AnimationName"),e(nt,"matches",/^@name:./),e(nt,"propName","animation-name");var lt=class extends t{};e(lt,"id","AnimationPlayState"),e(lt,"matches",/^@play-state:./),e(lt,"propName","animation-play-state");var ct=class extends t{};e(ct,"id","AnimationTimingFunction"),e(ct,"matches",/^@easing:./),e(ct,"propName","animation-timing-function");var le=class extends t{order=-1};e(le,"id","Animation"),e(le,"symbol","@"),e(le,"propName","animation"),e(le,"unit","");var Hi="border-";function ce(r,o,i=""){i&&(i="-"+i);let a=/^b(order)?-?(.)?/.exec(r)[2],s=Hi+"left"+i,c=Hi+"right"+i,d=Hi+"top"+i,p=Hi+"bottom"+i;switch(a){case"x":return{[s]:o,[c]:o};case"y":return{[d]:o,[p]:o};case"l":return{[s]:o};case"r":return{[c]:o};case"t":return{[d]:o};case"b":return{[p]:o};default:return{["border"+i]:o}}}var de=class extends t{get(r){return ce(this.prefix,r,"color")}get order(){return this.prefix==="border-color:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(de,"id","BorderColor"),e(de,"matches",/^border(-(left|right|top|bottom))?-color:./),e(de,"colorStarts","b([xytblr]|(order(-(left|right|top|bottom))?))?:"),e(de,"colorful",!0);var Vi="border-top-left-radius",$i="border-top-right-radius",Ui="border-bottom-left-radius",Qi="border-bottom-right-radius",Eo="border-radius",hs=[Vi,$i,Ui,Qi],jr=class extends t{get(r){if(this.prefix){let i="",a=this.prefix.split("-");if(a.length>1)for(let s=1;s<a.length-1;s++)i+=a[s][0];else i=this.prefix.slice(1,-1);switch(i){case"t":return{[Vi]:r,[$i]:r};case"tl":case"lt":return{[Vi]:r};case"rt":case"tr":return{[$i]:r};case"b":return{[Ui]:r,[Qi]:r};case"bl":case"lb":return{[Ui]:r};case"br":case"rb":return{[Qi]:r};case"l":return{[Vi]:r,[Ui]:r};case"r":return{[$i]:r,[Qi]:r};default:return{[Eo]:r}}}let o=this.prefix?.slice(0,-1);return{[hs.includes(o)?o:Eo]:r}}get order(){return this.prefix==="border-radius:"||this.prefix==="r:"?-1:0}};e(jr,"id","BorderRadius"),e(jr,"matches",/^((r[tblr]?[tblr]?|border(-(top|bottom)-(left|right))?-radius):.)/);var Wr=class extends t{get(r){return ce(this.prefix,r,"style")}get order(){return this.prefix==="border-style:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Wr,"id","BorderStyle"),e(Wr,"matches",/^(border(-(left|right|top|bottom))?-style:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|))/);var Pr=class extends t{get(r){return ce(this.prefix,r,"width")}get order(){return this.prefix==="border-width:"||this.prefix==="b:"||this.prefix==="border:"?-1:0}};e(Pr,"id","BorderWidth"),e(Pr,"matches",/^(border(-(left|right|top|bottom))?-width:.|b([xytblr]|order(-(left|right|top|bottom))?)?:(([0-9]|(max|min|calc|clamp)\(.*\))|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/);var dt=class extends t{get(r){return ce(this.prefix,r)}get order(){return this.prefix==="border:"||this.prefix==="b:"?-2:-1}};e(dt,"id","Border"),e(dt,"matches",/^b([xytblr]?|order(-(left|right|top|bottom))?):./),e(dt,"colorful",!0);var mt=class extends t{};e(mt,"id","BackgroundAttachment"),e(mt,"matches",/^(bg|background):(fixed|local|scroll)(?!\|)/),e(mt,"propName","background-attachment");var Lr=class extends t{};e(Lr,"id","BackgroundBlendMode"),e(Lr,"propName","background-blend-mode");var ft=class extends t{get(r){return{"-webkit-background-clip":r,"background-clip":r}}};e(ft,"id","BackgroundClip"),e(ft,"matches",/^(bg|background):text(?!\|)/),e(ft,"propName","background-clip");var U=class extends t{};e(U,"id","BackgroundColor"),e(U,"colorStarts","(bg|background):"),e(U,"propName","background-color"),e(U,"unit",""),e(U,"colorful",!0);var pt=class extends t{};e(pt,"id","BackgroundOrigin"),e(pt,"matches",/^(bg|background):(content|border|padding)(?!\|)/),e(pt,"propName","background-origin");var me=class extends t{};e(me,"id","BackgroundPosition"),e(me,"matches",/^(bg|background):(top|bottom|right|left|center)(?!\|)/),e(me,"propName","background-position"),e(me,"unit","px");var ut=class extends t{};e(ut,"id","BackgroundRepeat"),e(ut,"matches",/^(bg|background):(space|round|repeat|no-repeat|repeat-x|repeat-y)(?![;a-zA-Z])/),e(ut,"propName","background-repeat");var ht=class extends t{};e(ht,"id","BackgroundSize"),e(ht,"matches",/^(bg|background):((auto|cover|contain)(?!\|)|\.?\d((?!\|).)*$)/),e(ht,"propName","background-size");var fe=class extends t{};e(fe,"id","BackgroundImage"),e(fe,"matches",/^(bg|background):(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(fe,"propName","background-image"),e(fe,"colorful",!0);var pe=class extends t{order=-1};e(pe,"id","Background"),e(pe,"matches",/^bg:./),e(pe,"propName","background"),e(pe,"colorful",!0);var gt=class extends t{};e(gt,"id","MixBlendMode"),e(gt,"matches",/^blend:./),e(gt,"propName","mix-blend-mode");var Gr=class extends t{};e(Gr,"id","Position"),e(Gr,"propName","position");var _r=class extends t{get(r){let o=this.prefix.slice(0,-1);switch(o){case"top":case"left":case"right":case"bottom":return{[o]:r};case"center":return{left:r,right:r,"margin-left":{...r,unit:""},"margin-right":{...r,unit:""}};case"middle":return{top:r,bottom:r,"margin-top":{...r,unit:""},"margin-bottom":{...r,unit:""}}}}};e(_r,"id","Placement"),e(_r,"matches",/^(top|left|right|bottom|center|middle):./);function Yi(r,o,{rootSize:i}){let a="",s=0;return function c(d,p){let f="",u=p?o(p):"",x=()=>{f&&(a+=!u||Number.isNaN(+f)?f:+f/(u==="rem"?i:1)+u,f="")};for(;s<r.length;s++){let l=r[s];if(l===d&&(d!=="'"||r[s+1]===")")){x(),a+=l;break}else l===","||l===" "?(x(),a+=l):!f&&l==="'"?(a+=l,s++,c(l),f=""):f&&l==="("?(a+=f+l,s++,c(")",f),f=""):f+=l}x()}(),a}var xt=class extends t{get(r){return{"backdrop-filter":r,"-webkit-backdrop-filter":r}}parseValue(r,o){return Yi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(xt,"id","BackdropFilter"),e(xt,"matches",/^bd:./),e(xt,"propName","backdrop-filter");var ue=class extends t{};e(ue,"id","Fill"),e(ue,"propName","fill"),e(ue,"colorStarts","fill:"),e(ue,"colorful",!0);var vt=class extends t{};e(vt,"id","Stroke"),e(vt,"propName","stroke"),e(vt,"colorful",!0);var St=class extends t{};e(St,"id","StrokeWidth"),e(St,"matches",/^stroke:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(St,"propName","stroke-width");var bt=class extends t{parseValue(r,o){return Yi(r,i=>{switch(i){case"blur":case"drop-shadow":return"rem";case"hue-rotate":return"deg"}return""},o)}};e(bt,"id","Filter"),e(bt,"matches",/^(blur|brightness|contrast|drop-shadow|grayscale|hue-rotate|invert|opacity|saturate|sepia)\(/),e(bt,"propName","filter");var zr=class extends t{};e(zr,"id","Cursor"),e(zr,"propName","cursor");var Hr=class extends t{};e(Hr,"id","PointerEvents"),e(Hr,"propName","pointer-events");var Vr=class extends t{};e(Vr,"id","Resize"),e(Vr,"propName","resize");var $r=class extends t{};e($r,"id","TouchAction"),e($r,"propName","touch-action");var Ur=class extends t{get(r){return{"user-drag":r,"-webkit-user-drag":r}}};e(Ur,"id","UserDrag"),e(Ur,"propName","user-drag");var Qr=class extends t{get(r){return{"user-select":r,"-webkit-user-select":r}}};e(Qr,"id","UserSelect"),e(Qr,"propName","user-select");var he=class extends t{};e(he,"id","BoxShadow"),e(he,"matches",/^s(?:hadow)?:./),e(he,"propName","box-shadow"),e(he,"colorful",!0);var yt=class extends t{};e(yt,"id","TextShadow"),e(yt,"propName","text-shadow"),e(yt,"colorful",!0);var Yr=class extends t{get(r){return{"font-size":r,"line-height":{...r,value:r.unit==="rem"?r.value+.375+r.unit:"calc("+r.value+r.unit+" + .375rem)",unit:""}}}};e(Yr,"id","TextSize"),e(Yr,"matches",/^t(ext)?:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/);var Ct=class extends t{};e(Ct,"id","WordBreak"),e(Ct,"propName","word-break"),e(Ct,"unit","");var ge=class extends t{get(r){return{display:{...r,value:"grid"},"grid-template-columns":{...this,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(ge,"id","GridColumns"),e(ge,"matches",/^grid-cols:./),e(ge,"propName","grid-columns"),e(ge,"unit","");var Rt=class extends t{get(r){return{display:{...r,value:"grid"},"grid-auto-flow":{...r,value:"column"},"grid-template-rows":{...r,value:"repeat("+r.value+",minmax("+0+","+1+"fr))"}}}};e(Rt,"id","GridRows"),e(Rt,"propName","grid-rows"),e(Rt,"unit","");var qr=class extends t{get(r){switch(this.prefix[4]){case"x":return{"column-gap":r};case"y":return{"row-gap":r};default:return{gap:r}}}order=-1};e(qr,"id","Gap"),e(qr,"matches",/^gap(-x|-y)?:./);var Mt=class extends t{};e(Mt,"id","WordSpacing"),e(Mt,"propName","word-spacing"),e(Mt,"unit","em");var Nt=class extends t{get(r){return{["--"+this.prefix.slice(1,-1)]:r}}};e(Nt,"id","Variable"),e(Nt,"matches",/^\$[^ {}A-Z]+:[^ ]/),e(Nt,"unit","");var xe=class extends t{};e(xe,"id","AspectRadio"),e(xe,"matches",/^aspect:./),e(xe,"propName","aspect-ratio"),e(xe,"unit","");var kt=class extends t{get(r){return{"box-decoration-break":r,"-webkit-box-decoration-break":r}}};e(kt,"id","BoxDecorationBreak"),e(kt,"matches",/^box:(slice|clone)(?!\|)/),e(kt,"propName","box-decoration-break");var Xr=class extends t{};e(Xr,"id","BreakAfter"),e(Xr,"propName","break-after");var Zr=class extends t{};e(Zr,"id","BreakBefore"),e(Zr,"propName","break-before");var Jr=class extends t{};e(Jr,"id","BreakInside"),e(Jr,"propName","break-inside");var Tt=class extends t{};e(Tt,"id","FlexShrink"),e(Tt,"propName","flex-shrink"),e(Tt,"unit","");var wt=class extends t{};e(wt,"id","FlexDirection"),e(wt,"matches",/^flex:((row|col|column)(-reverse)?)(?!\|)/),e(wt,"propName","flex-direction");var Ot=class extends t{};e(Ot,"id","FlexGrow"),e(Ot,"propName","flex-grow"),e(Ot,"unit","");var At=class extends t{};e(At,"id","FlexWrap"),e(At,"matches",/^flex:(wrap(-reverse)?|nowrap)(?!\|)/),e(At,"propName","flex-wrap");var Kr=class extends t{};e(Kr,"id","FlexBasis"),e(Kr,"propName","flex-basis");var It=class extends t{order=-1};e(It,"id","Flex"),e(It,"propName","flex"),e(It,"unit","");var ve=class extends t{};e(ve,"id","Order"),e(ve,"matches",/^o:./),e(ve,"propName","order"),e(ve,"unit","");var Se=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(Se,"id","GridColumn"),e(Se,"matches",/^grid-col(?:umn)?(?:-span)?:./),e(Se,"propName","grid-column"),e(Se,"unit","");var Bt=class extends t{};e(Bt,"id","ColumnSpan"),e(Bt,"matches",/^col-span:./),e(Bt,"propName","column-span");var be=class extends t{parseValue(r){return this.prefix.slice(-5,-1)==="span"&&r!=="auto"?"span "+r+"/span "+r:r}order=-1};e(be,"id","GridRow"),e(be,"matches",/^grid-row-span:./),e(be,"propName","grid-row"),e(be,"unit","");var Q=class extends t{};e(Q,"id","Color"),e(Q,"colorStarts","(?:color|fg|foreground):"),e(Q,"colorful",!0),e(Q,"propName","color"),e(Q,"unit","");var Ft=class extends t{};e(Ft,"id","AlignContent"),e(Ft,"matches",/^ac:./),e(Ft,"propName","align-content");var Et=class extends t{};e(Et,"id","AlignItems"),e(Et,"matches",/^ai:./),e(Et,"propName","align-items");var Dt=class extends t{};e(Dt,"id","AlignSelf"),e(Dt,"matches",/^as:./),e(Dt,"propName","align-self");var jt=class extends t{};e(jt,"id","GridAutoColumns"),e(jt,"matches",/^grid-auto-cols:./),e(jt,"propName","grid-auto-columns");var Wt=class extends t{};e(Wt,"id","GridAutoFlow"),e(Wt,"matches",/^grid-flow:./),e(Wt,"propName","grid-auto-flow");var ei=class extends t{};e(ei,"id","GridAutoRows"),e(ei,"propName","grid-auto-rows");var Pt=class extends t{};e(Pt,"id","JustifyContent"),e(Pt,"matches",/^jc:./),e(Pt,"propName","justify-content");var Lt=class extends t{};e(Lt,"id","JustifyItems"),e(Lt,"matches",/^ji:./),e(Lt,"propName","justify-items");var Gt=class extends t{};e(Gt,"id","JustifySelf"),e(Gt,"matches",/^js:./),e(Gt,"propName","justify-self");var ti=class extends t{order=-1};e(ti,"id","PlaceContent"),e(ti,"propName","place-content");var ri=class extends t{order=-1};e(ri,"id","PlaceItems"),e(ri,"propName","place-items");var ii=class extends t{order=-1};e(ii,"id","PlaceSelf"),e(ii,"propName","place-self");var oi=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="padding:"?-1:0}};e(oi,"id","Padding"),e(oi,"matches",/^padding(?:-(?:left|right|top|bottom))?:./);var si=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}get order(){return this.prefix==="margin:"?-1:0}};e(si,"id","Margin"),e(si,"matches",/^margin(-(left|right|top|bottom))?:./);var _t=class extends t{};e(_t,"id","TextOverflow"),e(_t,"matches",/^(text-(overflow|ovf):.|t(ext)?:(ellipsis|clip)(?!\|))/),e(_t,"propName","text-overflow");var zt=class extends t{};e(zt,"id","ListStylePosition"),e(zt,"matches",/^list-style:(inside|outside)(?!\|)/),e(zt,"propName","list-style-position");var Ht=class extends t{};e(Ht,"id","ListStyleType"),e(Ht,"matches",/^list-style:(disc|decimal)(?!\|)/),e(Ht,"propName","list-style-type");var ai=class extends t{order=-1};e(ai,"id","ListStyle"),e(ai,"propName","list-style");var ye=class extends t{};e(ye,"id","TextDecorationColor"),e(ye,"propName","text-decoration-color"),e(ye,"colorStarts","text-decoration:"),e(ye,"colorful",!0);var Vt=class extends t{};e(Vt,"id","TextDecorationStyle"),e(Vt,"matches",/^t(ext)?:(solid|double|dotted|dashed|wavy)(?!\|)/),e(Vt,"propName","text-decoration-style");var Ce=class extends t{};e(Ce,"id","TextDecorationThickness"),e(Ce,"matches",/^text-decoration:(from-font(?!\|)|([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$)/),e(Ce,"propName","text-decoration-thickness"),e(Ce,"unit","em");var ni=class extends t{};e(ni,"id","TextIndent"),e(ni,"propName","text-indent");var li=class extends t{};e(li,"id","Content"),e(li,"propName","content");var Re=class extends t{};e(Re,"id","OutlineColor"),e(Re,"propName","outline-color"),e(Re,"colorStarts","outline:"),e(Re,"colorful",!0);var ci=class extends t{};e(ci,"id","OutlineOffset"),e(ci,"propName","outline-offset");var $t=class extends t{};e($t,"id","OutlineStyle"),e($t,"matches",/^outline:(none|dotted|dashed|solid|double|groove|ridge|inset|outset)(?!\|)/),e($t,"propName","outline-style");var Ut=class extends t{};e(Ut,"id","OutlineWidth"),e(Ut,"matches",/^outline:(medium|thick|thin|[0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(Ut,"propName","outline-width");var Qt=class extends t{order=-1};e(Qt,"id","Outline"),e(Qt,"propName","outline"),e(Qt,"colorful",!0);var Yt=class extends t{};e(Yt,"id","BorderCollapse"),e(Yt,"matches",/^b(order)?:(collapse|separate)(?!\|)/),e(Yt,"propName","border-collapse");var di=class extends t{};e(di,"id","BorderSpacing"),e(di,"propName","border-spacing");var mi=class extends t{};e(mi,"id","TableLayout"),e(mi,"propName","table-layout");var Me=class extends t{};e(Me,"id","AccentColor"),e(Me,"propName","accent-color"),e(Me,"colorStarts","accent:"),e(Me,"colorful",!0);var fi=class extends t{};e(fi,"id","Appearance"),e(fi,"propName","appearance");var Ne=class extends t{};e(Ne,"id","CaretColor"),e(Ne,"propName","caret-color"),e(Ne,"colorStarts","caret:"),e(Ne,"colorful",!0);var pi=class extends t{};e(pi,"id","ScrollBehavior"),e(pi,"propName","scroll-behavior");var ui=class extends t{get(r){if(this.prefix.slice(-3,-2)==="m")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-margin-left":r,"scroll-margin-right":r};case"y":return{"scroll-margin-top":r,"scroll-margin-bottom":r};case"l":return{"scroll-margin-left":r};case"r":return{"scroll-margin-right":r};case"t":return{"scroll-margin-top":r};case"b":return{"scroll-margin-bottom":r}}else return{[this.prefix.replace(/-m(?!argin)/,"-margin").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-margin:"||this.prefix==="scroll-m:"?-1:0}};e(ui,"id","ScrollMargin"),e(ui,"matches",/^scroll-m([xytblr]|argin(-(top|bottom|left|right))?)?:./);var hi=class extends t{get(r){if(this.prefix.slice(-3,-2)==="p")switch(this.prefix.slice(-2,-1)){case"x":return{"scroll-padding-left":r,"scroll-padding-right":r};case"y":return{"scroll-padding-top":r,"scroll-padding-bottom":r};case"l":return{"scroll-padding-left":r};case"r":return{"scroll-padding-right":r};case"t":return{"scroll-padding-top":r};case"b":return{"scroll-padding-bottom":r}}else return{[this.prefix.replace(/-p(?!adding)/,"-padding").slice(0,-1)]:r}}get order(){return this.prefix==="scroll-padding:"||this.prefix==="scroll-p:"?-1:0}};e(hi,"id","ScrollPadding"),e(hi,"matches",/^scroll-p([xytblr]|adding(-(top|bottom|left|right))?)?:./);var qt=class extends t{};e(qt,"id","ScrollSnapAlign"),e(qt,"matches",/^scroll-snap:(start|end|center)/),e(qt,"propName","scroll-snap-align");var Xt=class extends t{};e(Xt,"id","ScrollSnapStop"),e(Xt,"matches",/^scroll-snap:(normal|always)(?!\|)/),e(Xt,"propName","scroll-snap-stop");var Zt=class extends t{};e(Zt,"id","ScrollSnapType"),e(Zt,"matches",/^scroll-snap:(([xy]|block|inline|both)(\|(proximity|mandatory))?)(?!\|)/),e(Zt,"propName","scroll-snap-type");var gi=class extends t{};e(gi,"id","WillChange"),e(gi,"propName","will-change");var xi=class extends t{};e(xi,"id","TextUnderlineOffset"),e(xi,"propName","text-underline-offset");var Jt=class extends t{get(r){return{[this.prefix.slice(0,-1)]:r}}};e(Jt,"id","Inset"),e(Jt,"matches",/^(?:top|bottom|left|right):./),e(Jt,"propName","inset");var ke=class extends t{order=-1};e(ke,"id","Columns"),e(ke,"matches",/^(columns|cols):./),e(ke,"propName","columns"),e(ke,"unit","");var Kt=class extends t{};e(Kt,"id","WhiteSpace"),e(Kt,"propName","white-space"),e(Kt,"unit","");var er=class extends t{};e(er,"id","TextOrientation"),e(er,"matches",/^t(ext)?:(mixed|upright|sideways-right|sideways|use-glyph-orientation)(?!\|)/),e(er,"propName","text-orientation");var tr=class extends t{};e(tr,"id","WritingMode"),e(tr,"matches",/^writing:./),e(tr,"propName","writing-mode");var vi=class extends t{};e(vi,"id","Contain"),e(vi,"propName","contain");var Te=class extends t{};e(Te,"id","AnimationDuration"),e(Te,"matches",/^@duration:./),e(Te,"propName","animation-duration"),e(Te,"unit","ms");var rr=class extends t{};e(rr,"id","TextRendering"),e(rr,"matches",/^t(ext)?:(optimizeSpeed|optimizeLegibility|geometricPrecision)(?!\|)/),e(rr,"propName","text-rendering");var Si=class extends t{};e(Si,"id","Direction"),e(Si,"propName","direction");var ir=class extends t{};e(ir,"id","TextDecorationLine"),e(ir,"matches",/^t(ext)?:(none|underline|overline|line-through)(?!\|)/),e(ir,"propName","text-decoration-line");var we=class extends t{};e(we,"id","GridColumnStart"),e(we,"matches",/^grid-col-start:./),e(we,"propName","grid-column-start"),e(we,"unit","");var or=class extends t{};e(or,"id","ListStyleImage"),e(or,"matches",/^list-style:(url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)((?!\|).)*$/),e(or,"propName","list-style-image");var sr=class extends t{};e(sr,"id","ShapeOutside"),e(sr,"matches",/^shape:((margin|content|border|padding)(?!\|)|(inset|circle|ellipse|polygon|url|linear-gradient)\(.*\)((?!\|).)*$)/),e(sr,"propName","shape-outside");var ar=class extends t{};e(ar,"id","ShapeMargin"),e(ar,"matches",/^shape:([0-9]|(max|min|calc|clamp)\(.*\))((?!\|).)*$/),e(ar,"propName","shape-margin");var nr=class extends t{};e(nr,"id","ShapeImageThreshold"),e(nr,"propName","shape-image-threshold"),e(nr,"unit","");var lr=class extends t{};e(lr,"id","ClipPath"),e(lr,"matches",/^clip:./),e(lr,"propName","clip-path");var bi=class extends t{order=-1};e(bi,"id","Grid"),e(bi,"propName","grid");var Oe=class extends t{order=-1};e(Oe,"id","Font"),e(Oe,"matches",/^f:./),e(Oe,"propName","font"),e(Oe,"unit","");var yi=class extends t{};e(yi,"id","Quotes"),e(yi,"propName","quotes");var Ci=class extends t{order=-1};e(Ci,"id","GridTemplate"),e(Ci,"propName","grid-template");var cr=class extends t{};e(cr,"id","GridRowStart"),e(cr,"propName","grid-row-start"),e(cr,"unit","");var Ri=class extends t{};e(Ri,"id","GridTemplateAreas"),e(Ri,"propName","grid-template-areas");var dr=class extends t{};e(dr,"id","GridTemplateColumns"),e(dr,"matches",/^grid-template-cols:./),e(dr,"propName","grid-template-columns");var Mi=class extends t{};e(Mi,"id","GridTemplateRows"),e(Mi,"propName","grid-template-rows");var mr=class extends t{order=-1};e(mr,"id","GridArea"),e(mr,"propName","grid-area"),e(mr,"unit","");var Ae=class extends t{};e(Ae,"id","GridColumnEnd"),e(Ae,"matches",/^grid-col-end:./),e(Ae,"propName","grid-column-end"),e(Ae,"unit","");var fr=class extends t{};e(fr,"id","GridRowEnd"),e(fr,"propName","grid-row-end"),e(fr,"unit","");var Ni=class extends t{get(r){return{"mask-image":r,"-webkit-mask-image":r}}};e(Ni,"id","MaskImage"),e(Ni,"propName","mask-image");var Ie=class extends t{get(r){return{"-webkit-text-fill-color":r}}};e(Ie,"id","TextFillColor"),e(Ie,"matches",/^text-fill-color:./),e(Ie,"colorStarts","(text-fill|text|t):"),e(Ie,"colorful",!0);var ki=class extends t{get(r){return{"-webkit-text-stroke":r}}};e(ki,"id","TextStroke"),e(ki,"matches",/^text-stroke:./);var Ti=class extends t{get(r){return{"-webkit-text-stroke-width":r}}};e(Ti,"id","TextStrokeWidth"),e(Ti,"matches",/^text-stroke(:((thin|medium|thick)(?!\|)|\.?\d((?!\|).)*$)|-width:.)/);var Be=class extends t{get(r){return{"-webkit-text-stroke-color":r}}};e(Be,"id","TextStrokeColor"),e(Be,"matches",/^text-stroke-color:./),e(Be,"colorStarts","text-stroke:"),e(Be,"colorful",!0);var wi=class extends t{};e(wi,"id","StrokeDasharray"),e(wi,"propName","stroke-dasharray");var Oi=class extends t{};e(Oi,"id","StrokeDashoffset"),e(Oi,"propName","stroke-dash-offset");var pr=class extends t{};e(pr,"id","X"),e(pr,"propName","x"),e(pr,"unit","");var ur=class extends t{};e(ur,"id","Y"),e(ur,"propName","y"),e(ur,"unit","");var hr=class extends t{};e(hr,"id","Cx"),e(hr,"propName","cx"),e(hr,"unit","");var gr=class extends t{};e(gr,"id","Cy"),e(gr,"propName","cy"),e(gr,"unit","");var xr=class extends t{};e(xr,"id","Rx"),e(xr,"propName","rx"),e(xr,"unit","");var vr=class extends t{};e(vr,"id","Ry"),e(vr,"propName","ry"),e(vr,"unit","");var Ai=class extends t{};e(Ai,"id","BorderImageOutset"),e(Ai,"propName","border-image-outset");var Sr=class extends t{};e(Sr,"id","BorderImageRepeat"),e(Sr,"matches",/^border-image:(?:stretch|repeat|round|space)(?:(?!\|).)*$/),e(Sr,"propName","border-image-repeat");var br=class extends t{};e(br,"id","BorderImageSlice"),e(br,"propName","border-image-slice"),e(br,"unit","");var yr=class extends t{};e(yr,"id","BorderImageSource"),e(yr,"matches",/^border-image:(?:url|linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient|conic-gradient)\(.*\)(?:(?!\|).)*$/),e(yr,"propName","border-image-source");var Cr=class extends t{};e(Cr,"id","BorderImageWidth"),e(Cr,"matches",/^border-image:(?:\.?[0-9]|(max|min|calc|clamp)\(.*\))(?:(?!\|).)*$/),e(Cr,"propName","border-image-width");var Rr=class extends t{};e(Rr,"id","BorderImage"),e(Rr,"propName","border-image"),e(Rr,"unit","");var gs=/\{(.*)\}/,Mr=class extends t{getThemeProps(r,o){let i={},a=(u,x)=>{let l=x.indexOf(":");if(l!==-1){u in i||(i[u]={});let m=i[u],n=x.slice(0,l);n in m||(m[n]=x.slice(l+1))}},s=u=>{let x=(l,m)=>{let n=m.slice(CSS.escape(u.className).length).match(gs)[1].split(";");for(let v of n)a(l,v)};if(this.themeName){let l=u.natives.find(m=>m.themeName===this.themeName)??u.natives.find(m=>!m.themeName);l&&x(this.themeName,l.text)}else for(let l of u.natives)x(l.themeName,l.text)},c=[],d="",p=()=>{d&&(c.push(d),d="")},f=1;(function u(x){for(;f<r.value.length;f++){let l=r.value[f];if(!x){if(l===";"){p();continue}if(l==="}")break}if(d+=l,x===l){if(x==="'"){let m=0;for(let n=d.length-2;d[n]==="\\";n--)m++;if(m%2)continue}break}else l in wr&&x!=="'"&&(f++,u(wr[l]))}})(void 0),p();for(let u of c){let x=o.findAndNew(u);if(Array.isArray(x))for(let l of x)s(l);else x?s(x):a(this.themeName??"",u)}return i}};e(Mr,"id","Group"),e(Mr,"matches",/^(?:.+?[*_>~+])?\{.+?\}/),e(Mr,"unit","");var Nr=class extends t{};e(Nr,"id","CounterIncrement"),e(Nr,"propName","counter-increment"),e(Nr,"unit","");var xs=[Mr,Nt,je,X,De,_e,J,ze,Oe,Q,Or,si,oi,Kr,At,Ot,Tt,wt,It,rt,We,Pe,Le,Ge,vi,li,Nr,Z,K,He,Ve,$e,ye,Vt,Ce,ir,ee,xi,_t,er,Ue,rr,ni,Qe,ke,Kt,Jt,Ye,et,tt,it,ot,Ar,Ir,Br,Fr,Er,Dr,se,Gr,_r,zr,Hr,Vr,$r,Ct,Mt,Ur,Qr,yt,Yr,Ie,Ti,Be,ki,he,mi,Xe,qe,te,re,Je,Ke,oe,ie,Ze,ae,st,Te,at,ne,nt,lt,ct,le,de,jr,Wr,Pr,Yt,di,Ai,Sr,br,yr,Cr,Rr,dt,mt,Lr,ft,U,pt,me,ut,ht,fe,pe,gt,xt,bt,ue,wi,Oi,St,vt,pr,ur,hr,gr,xr,vr,we,Ae,Se,ge,cr,fr,be,Rt,jt,Wt,ei,Ri,dr,Mi,Ci,mr,bi,qr,ve,Jr,Zr,Xr,kt,xe,Bt,Ft,Et,Dt,Pt,Lt,Gt,ti,ri,ii,zt,Ht,or,ai,Re,ci,$t,Ut,Qt,Me,fi,Ne,pi,ui,hi,qt,Xt,Zt,gi,tr,Si,sr,ar,nr,lr,yi,Ni],So=xs;var kr={colors:ao,breakpoints:Tr,semantics:co,values:po,selectors:lo,themes:mo,scheme:fo,Rules:So,rootSize:no};function qi(r){if(typeof window<"u"){let o=new P(r,document);return P.root=o,o.observe(),o}else return new P(r)}var vs=[",",".","#","[","!","*",">","+","~",":","@"],Ss=/^::-[a-z]+-/m,Do=typeof document<"u",Xi;Do&&(Xi=document.createElement("style"),Xi.title="master");var _="max-width",G="min-width",bs="attributes",jo=typeof window<"u",ys=jo?window.MutationObserver:Object,Ii,Fe,Zi=class extends ys{constructor(i=kr,a){super(s=>{let c={},d=[],p=[],f=[],u=(n,v)=>{v?n.classList.forEach(l):n.classList.forEach(x);let h=n.children;for(let g=0;g<h.length;g++){let S=h[g];S.classList&&(p.push(S),u(S,v))}},x=n=>{n in c?c[n]++:c[n]=1},l=n=>{n in c?c[n]--:c[n]=-1},m=(n,v)=>{for(let h=0;h<n.length;h++){let g=n[h];g.classList&&!p.includes(g)&&!f.includes(g)&&(g.isConnected!==v?(p.push(g),u(g,v)):f.push(g))}};for(let n=0;n<s.length;n++){let v=s[n],{addedNodes:h,removedNodes:g,type:S,target:y,oldValue:O}=v;if(S===bs){if(y.className===O||d.find(B=>B.target===y))continue;d.push(v)}else m(h,!1),m(g,!0)}if(!(!d.length&&!Object.keys(c).length)){for(let{oldValue:n,target:v}of d){let h=p.includes(v),g=v.classList,S=n?n.split(" "):[];if(h){if(v.isConnected)continue;for(let y of S)g.contains(y)||l(y)}else if(v.isConnected){g.forEach(y=>{S.includes(y)||x(y)});for(let y of S)g.contains(y)||l(y)}else for(let y of S)l(y)}for(let n in c){let v=c[n],h=(this.countOfClass[n]||0)+v;h===0?(delete this.countOfClass[n],this.delete(n)):(n in this.countOfClass||this.findAndInsert(n),this.countOfClass[n]=h)}}});this.config=i;this.root=a;e(this,"style");e(this,"rules",[]);e(this,"ruleOfClass",{});e(this,"countOfClass",{});e(this,"host");e(this,"ready",!1);e(this,"semantics");e(this,"classes");e(this,"colorsThemesMap");e(this,"colorNames");e(this,"themeNames");e(this,"relationThemesMap");e(this,"relations");e(this,"selectors");e(this,"schemeMQL");oo(this,Ii,void 0);oo(this,Fe,void 0);e(this,"onThemeChange",i=>{this.theme=i.matches?"dark":"light"});if(this.cache(),Do&&a){let s=a===document;this.host=s?document.documentElement:a.host,this.scheme=this.storageScheme||i.scheme.preference;let c=s?document.head:a,d=s?document.styleSheets:a.styleSheets;for(let p of d){let{title:f,href:u,ownerNode:x}=p;(f==="master"||u&&/master(?:\..+)?\.css/.test(u))&&(this.style=x)}if(this.style)for(let p=0;p<this.style.sheet.cssRules.length;p++){let f=x=>{if(x.selectorText){let m=x.selectorText.split(", ")[0].split(" ");for(let n=0;n<m.length;n++){let v=m[n];if(v[0]==="."){let h=v.slice(1),g="";for(let S=0;S<h.length;S++){let y=h[S],O=h[S+1];if(y==="\\"){if(S++,O!=="\\"){g+=O;continue}}else if(vs.includes(y))break;g+=y}if(!(g in this.ruleOfClass)&&!(g in this.classes)){let S=this.findAndNew(g);if(S)return S}}}}else if(x.cssRules)for(let l=0;l<x.cssRules.length;l++){let m=f(x.cssRules[l]);if(m)return m}},u=f(this.style.sheet.cssRules[p]);if(u){this.rules.push(u),this.ruleOfClass[u.className]=u;for(let x=0;x<u.natives.length;x++)u.natives[x].cssRule=this.style.sheet.cssRules[p+x];p+=u.natives.length-1}}else this.style=Xi.cloneNode(),c.prepend(this.style)}Zi.instances.push(this),this.ready=!0}static refresh(i){for(let a of this.instances)a.refresh(i)}get storageScheme(){let{storage:i}=this.config.scheme;return localStorage.getItem(i.key)}set scheme(i){if(i!==Ee(this,Ii)){so(this,Ii,i);let{storage:a}=this.config.scheme;i==="system"?(this.schemeMQL=window.matchMedia("(prefers-color-scheme:dark)"),this.schemeMQL.addEventListener("change",this.onThemeChange),this.theme=this.schemeMQL.matches?"dark":"light"):(this.removeSchemeListener(),this.theme=i),this.storageScheme!==i&&a.sync&&localStorage.setItem(a.key,i),this.ready&&this.host.dispatchEvent(new CustomEvent("scheme",{detail:this}))}}get scheme(){return Ee(this,Ii)}set theme(i){i!==Ee(this,Fe)&&(Ee(this,Fe)&&this.host.classList.remove(Ee(this,Fe)),so(this,Fe,i),this.host===document.documentElement&&(this.host.style.colorScheme=i),this.host.classList.add(i),this.ready&&this.host.dispatchEvent(new CustomEvent("theme",{detail:this})))}get theme(){return Ee(this,Fe)}removeSchemeListener(){this.schemeMQL&&(this.schemeMQL.removeEventListener("change",this.onThemeChange),this.schemeMQL=null)}cache(){this.semantics=[],this.classes={},this.colorsThemesMap={},this.relationThemesMap={},this.relations={},this.colorNames=[],this.themeNames=[""],this.selectors={};let{semantics:i,classes:a,selectors:s,themes:c,colors:d}=this.config;function p(l){return l.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}if(i)for(let l in i)this.semantics.push([new RegExp("^"+p(l)+"(?=!|\\*|>|\\+|~|:|\\[|@|_|\\.|$)","m"),l]);if(s)for(let[l,m]of Object.entries(s)){let n=new RegExp(p(l)+"(?![a-z-])");for(let v of Array.isArray(m)?m:[m]){let h=v.match(Ss)?.[0]??"",g=this.selectors[h];g||(g=this.selectors[h]=[]);let S=g.find(([y])=>y===n);S||(S=[n,[]],g.push(S)),S[1].push(v)}}let f=[...a?Object.keys(a):[],...c&&!Array.isArray(c)?Object.entries(c).flatMap(([l,{classes:m}])=>m?Object.keys(m):[]):[]],u=l=>{if(l in this.classes)return;let m=this.classes[l]=[],n=(v,h)=>{if(!h)return;let g=Array.isArray(h)?h:h.replace(/(?:\n(?:\s*))+/g," ").trim().split(" ");for(let S of g){let y=O=>{O in this.relationThemesMap?v in this.relationThemesMap[O]?this.relationThemesMap[O][v].push(l):this.relationThemesMap[O][v]=[l]:this.relationThemesMap[O]={[v]:[l]},m.includes(O)||m.push(O)};if(f.includes(S)){u(S);for(let O of this.classes[S])y(O)}else y(S)}};if(n("",a?.[l]),c&&!Array.isArray(c))for(let[v,{classes:h}]of Object.entries(c))n(v,h?.[l])};for(let l of f)u(l);for(let l in this.relationThemesMap){let m=this.relations[l]=[];for(let n of Object.values(this.relationThemesMap[l]))for(let v of n)m.includes(v)||m.push(v)}let x=(l,m)=>{if(!!m)for(let n in m){let v=m[n];if(typeof v=="string"&&(v={"":v}),n in this.colorsThemesMap){let h=this.colorsThemesMap[n];for(let g in v){let S=v[g];g in h?h[g][l]=S:h[g]={[l]:S}}}else this.colorNames.push(n),this.colorsThemesMap[n]=Object.entries(v).reduce((h,[g,S])=>(h[g]={[l]:S},h),{})}};if(x("",d),c)if(Array.isArray(c))this.themeNames.push(...c);else for(let l in c){let m=c[l];x(l,m.colors),this.themeNames.push(l)}}observe(i={subtree:!0,childList:!0}){return i.subtree&&this.host.querySelectorAll("[class]").forEach(a=>{a.classList.forEach(s=>{s in this.countOfClass?this.countOfClass[s]++:(this.countOfClass[s]=1,this.findAndInsert(s))})}),super.observe(this.root,{...i,attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),this}disconnect(){super.disconnect(),this.ruleOfClass={},this.countOfClass={},this.rules.length=0;let i=this.style.sheet;if(i)for(let a=i.cssRules.length-1;a>=0;a--)i.deleteRule(a)}findAndNew(i){let a=s=>{if(s in this.ruleOfClass)return this.ruleOfClass[s];for(let c of this.config.Rules){let d=c.match(s,this.colorNames);if(d)return new c(s,d,this)}for(let c of this.semantics)if(s.match(c[0]))return new t(s,{origin:"semantics",value:c[1]},this)};return i in this.classes?this.classes[i].map(a).filter(s=>s):a(i)}refresh(i){if(this.config=i,this.cache(),!this.style)return;let a=Xi.cloneNode();this.style.replaceWith(a),this.style=style,this.rules.length=0,this.ruleOfClass={};for(let s in this.countOfClass)this.findAndInsert(s)}destroy(){let i=Zi.instances;this.disconnect(),i.splice(i.indexOf(this),1),this.style.remove(),this.removeSchemeListener()}insert(i){if(this.ruleOfClass[i.className])return;let{validateRule:a}=this.config;if(a&&!a(i,this))return;let s,c=this.rules.length-1,{media:d,order:p,prioritySelectorIndex:f,hasWhere:u,className:x}=i,l=(m,n,v,h)=>{let g=0,S;n&&(g=m.findIndex(n)),v&&(S=m.findIndex(v)),g===-1&&(g=m.length),(S===void 0||S===-1)&&(S=m.length);let y=m.slice(g,S);for(let O=0;O<y.length;O++){let B=y[O];if(!(B.prioritySelectorIndex===-1||h&&h(B))&&(B.prioritySelectorIndex<f||B.prioritySelectorIndex===f&&(u&&!B.hasWhere||B.order>=p)))return g+O}return g+y.length};if(d){let m=this.rules.findIndex(n=>n.media);if(m!==-1){let n=d.features[_],v=d.features[G];if(n&&v){let h=n.value-v.value;for(let g=c;g>=m;g--){s=g;let S=this.rules[g],y=S.media,O=y.features[_],B=y.features[G];if(!O||!B){s++;break}let R=O.value-B.value;if(R===h){if(u!==S.hasWhere)continue;if(f!==-1){let F=[this.rules[g]];for(let D=g-1;D>=m;D--){let H=this.rules[D];if(H.hasWhere!==u)break;let $=H.media,V=$.features[_],I=$.features[G];if(!V||!I||V.value-I.value!==R)break;F.unshift(this.rules[D])}s=l(this.rules,D=>D.media&&D.prioritySelectorIndex!==-1&&D.media.features[G]&&D.media.features[_])}break}else if(R>h)break}}else if(v)for(let h=m;h<=c;h++){s=h;let g=this.rules[h],S=g.media,y=S.features[_],O=S.features[G];if(y){if(O)break;continue}let B=O?.value;if(B===v.value){if(!u&&g.hasWhere){s++;continue}if(f!==-1)s=l(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[G]&&R.media.features[_],R=>!R.media.features[G]&&!R.media.features[_]);else for(let R=h;R<=c;R++){let F=this.rules[R],D=F.media,H=D.features[G];if(!D.features[_]){if(F.hasWhere!==u||H.value!==B||F.order>=p)break;s=R+1}}break}else{if(B>v.value)break;s++}}else if(n)for(let h=c;h>=m;h--){s=h;let g=this.rules[h],S=g.media,y=S.features[_];if(S.features[G])continue;let B=y?.value;if(!B||B>n.value){s++;break}else if(B===n.value){if(u&&!g.hasWhere)continue;if(f!==-1)s=l(this.rules,R=>R.media,R=>R.media&&R.prioritySelectorIndex!==-1&&R.media.features[G]&&R.media.features[_],R=>!R.media.features[G]&&!R.media.features[_]);else{let R=[this.rules[h]];for(let F=h-1;F>=m;F--){let D=this.rules[F],H=D.media,$=H.features[G],V=H.features[_];if(!$&&(!V||V.value!==B||D.hasWhere!==u))break;R.unshift(D)}for(let F=0;F<R.length;F++){let D=R[F];if(!D.media.features[G]){if(D.order>=p)break;s=h-R.length+2+F}}}break}}}if(s===void 0)if(m===-1)s=c+1;else if(f!==-1)s=m+l(this.rules.slice(m),void 0,n=>n.media.features[_]||n.media.features[G]);else if(u){let n=m;for(;n<this.rules.length;n++){let v=this.rules[n];if(v.prioritySelectorIndex!==-1||!v.hasWhere||v.order>=p){s=n;break}}s===void 0&&(s=n)}else for(let n=m;n<=c;n++){s=n;let v=this.rules[n],h=v.media;if(v.prioritySelectorIndex!==-1||h.features[_]||h.features[G])break;if(v.hasWhere)s++;else if(v.order>=p)break}}else if(f===-1)if(u)s=this.rules.findIndex(m=>!m.hasWhere||m.media||m.prioritySelectorIndex!==-1||m.order>=p),s===-1&&(s=c+1);else{let m=0;for(;m<this.rules.length;m++){let n=this.rules[m];if(n.media||!n.hasWhere&&(n.order>=p||n.prioritySelectorIndex!==-1)){s=m;break}}s===void 0&&(s=m)}else s=l(this.rules,void 0,m=>m.media);if(this.rules.splice(s,0,i),this.ruleOfClass[x]=i,this.style){let m=this.style.sheet,n=0,v=h=>{let g=this.rules[h];if(g){if(!g.natives.length)return v(h-1);let S=g.natives[g.natives.length-1].cssRule;for(let y=0;y<m.cssRules.length;y++)if(m.cssRules[y]===S){n=y+1;break}}};v(s-1);for(let h=0;h<i.natives.length;)try{let g=i.natives[h];m.insertRule(g.text,n),g.cssRule=m.cssRules[n++],h++}catch(g){console.error(g),i.natives.splice(h,1)}}}delete(i){let a=this.style.sheet,s=c=>{let d=this.ruleOfClass[c];if(!(!d||c in this.relations&&this.relations[c].some(p=>p in this.countOfClass))){if(d.natives.length){let p=d.natives[0];for(let f=0;f<a.cssRules.length;f++)if(a.cssRules[f]===p.cssRule){for(let x=0;x<d.natives.length;x++)a.deleteRule(f);this.rules.splice(this.rules.indexOf(d),1);break}}delete this.ruleOfClass[c]}};if(i in this.classes){for(let c of this.classes[i])c in this.countOfClass||s(c);delete this.ruleOfClass[i]}else s(i)}findAndInsert(i){let a=this.findAndNew(i);if(Array.isArray(a))for(let s of a)this.insert(s);else a&&this.insert(a)}get text(){return this.rules.map(i=>i.natives.map(a=>a.text).join("")).join("")}},P=Zi;Ii=new WeakMap,Fe=new WeakMap,e(P,"init",qi),e(P,"defaultConfig",kr),e(P,"instances",[]),e(P,"root");jo&&(window.MasterCSS=P);function Wo(r,o){return Array.isArray(r)&&Array.isArray(o)?r.concat(o):o}function Ji(r){return Object.prototype.toString.call(r).slice(8,-1)}function Bi(r){return Ji(r)!=="Object"?!1:r.constructor===Object&&Object.getPrototypeOf(r)===Object.prototype}function bo(r){return Ji(r)==="Symbol"}function Po(r,o,i,a){let s={}.propertyIsEnumerable.call(a,o)?"enumerable":"nonenumerable";s==="enumerable"&&(r[o]=i),s==="nonenumerable"&&Object.defineProperty(r,o,{value:i,enumerable:!1,writable:!0,configurable:!0})}function Lo(r,o,i){if(!Bi(o))return o;let a={};if(Bi(r)){let p=Object.getOwnPropertyNames(r),f=Object.getOwnPropertySymbols(r);a=[...p,...f].reduce((u,x)=>{let l=r[x];return(!bo(x)&&!Object.getOwnPropertyNames(o).includes(x)||bo(x)&&!Object.getOwnPropertySymbols(o).includes(x))&&Po(u,x,l,r),u},{})}let s=Object.getOwnPropertyNames(o),c=Object.getOwnPropertySymbols(o);return[...s,...c].reduce((p,f)=>{let u=o[f],x=Bi(r)?r[f]:void 0;x!==void 0&&Bi(u)&&(u=Lo(x,u,i));let l=i?i(x,u,f):u;return Po(p,f,l,o),p},a)}function Ki(r,...o){return o.filter(i=>Bi(i)).reduce((i,a)=>Lo(i,a,Wo),r)}function yo(...r){return r.length?Ki(kr,...r):kr}var IR=io(eo());function _o(r,o=new P){if(!!r?.length){for(let i of r)i in o.countOfClass||(o.findAndInsert(i),o.countOfClass[i]=1);return o.rules.map(i=>i.natives.reduce((a,s)=>a+s.text,"")).join("")}}var ER=io(eo());function to(r,o=new P){if(!r)return;let i=/\sclass="([^"]*)"/gm,a;for(;a=i.exec(r);){let s=a[1].replace(/\n/g,"").split(" ").filter(c=>c);for(let c of s)c in o.countOfClass||(o.findAndInsert(c),o.countOfClass[c]=1)}return o.rules.map(s=>s.natives.reduce((c,d)=>c+d.text,"")).join("")}var WR=io(eo());function zo(r,o=new P){if(!!r)return r.replace(/(<head>)/,`$1<style title="master">${to(r,o)}</style>`)}
2
+ /*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */
3
+ //# sourceMappingURL=index.cjs.js.map