@flickfyi/flkr 0.0.140 → 0.0.146

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 (494) hide show
  1. package/node_modules/@flickfyi/attestation/.turbo/turbo-build.log +7 -7
  2. package/node_modules/@flickfyi/biscuit/.turbo/turbo-build.log +7 -7
  3. package/node_modules/@flickfyi/core/.oxlintrc.json +2 -1
  4. package/node_modules/@flickfyi/core/.turbo/turbo-build.log +502 -95
  5. package/node_modules/@flickfyi/core/README.md +58 -4
  6. package/node_modules/@flickfyi/core/dist/index.cjs +1 -1
  7. package/node_modules/@flickfyi/core/dist/index.js +35 -24
  8. package/node_modules/@flickfyi/core/dist/kowalski/calculations.d.ts +17 -0
  9. package/node_modules/@flickfyi/core/dist/kowalski/calculator.d.ts +13 -0
  10. package/node_modules/@flickfyi/core/dist/kowalski/catalog.cjs +1 -0
  11. package/node_modules/@flickfyi/core/dist/kowalski/catalog.d.cts +962 -0
  12. package/node_modules/@flickfyi/core/dist/kowalski/catalog.d.ts +962 -0
  13. package/node_modules/@flickfyi/core/dist/kowalski/catalog.js +639 -0
  14. package/node_modules/@flickfyi/core/dist/kowalski/clocks.d.ts +4 -0
  15. package/node_modules/@flickfyi/core/dist/kowalski/date-time.d.ts +22 -0
  16. package/node_modules/@flickfyi/core/dist/kowalski/details.d.ts +7 -0
  17. package/node_modules/@flickfyi/core/dist/kowalski/everyday.d.ts +8 -0
  18. package/node_modules/@flickfyi/core/dist/kowalski/format.d.ts +4 -0
  19. package/node_modules/@flickfyi/core/dist/kowalski/frame.d.ts +161 -0
  20. package/node_modules/@flickfyi/core/dist/kowalski/index.cjs +21 -0
  21. package/node_modules/@flickfyi/core/dist/kowalski/index.d.cts +8 -0
  22. package/node_modules/@flickfyi/core/dist/kowalski/index.d.ts +8 -0
  23. package/node_modules/@flickfyi/core/dist/kowalski/index.js +7496 -0
  24. package/node_modules/@flickfyi/core/dist/kowalski/productivity.d.ts +5 -0
  25. package/node_modules/@flickfyi/core/dist/kowalski/recipe.d.ts +8 -0
  26. package/node_modules/@flickfyi/core/dist/kowalski/tools.d.ts +7 -0
  27. package/node_modules/@flickfyi/core/dist/kowalski/use-clock.d.ts +6 -0
  28. package/node_modules/@flickfyi/core/dist/kowalski/use-configured-feature.d.ts +19 -0
  29. package/node_modules/@flickfyi/core/dist/kowalski/use-feature-store.d.ts +15 -0
  30. package/node_modules/@flickfyi/core/dist/kowalski.css +506 -0
  31. package/node_modules/@flickfyi/core/dist/molecules/field/field.d.ts +8 -0
  32. package/node_modules/@flickfyi/core/dist/molecules/index.cjs +1 -1
  33. package/node_modules/@flickfyi/core/dist/molecules/index.d.cts +3 -0
  34. package/node_modules/@flickfyi/core/dist/molecules/index.d.ts +3 -0
  35. package/node_modules/@flickfyi/core/dist/molecules/index.js +88 -27
  36. package/node_modules/@flickfyi/core/dist/molecules/segmented/segmented.d.ts +10 -0
  37. package/node_modules/@flickfyi/core/dist/molecules/stepper/stepper.d.ts +10 -0
  38. package/node_modules/@flickfyi/core/dist/quantum/use-store.d.ts +7 -1
  39. package/node_modules/@flickfyi/core/dist/themes.css +2 -0
  40. package/node_modules/@flickfyi/core/examples/kowalski/bill-split/bill-split.stories.tsx +15 -0
  41. package/node_modules/@flickfyi/core/examples/kowalski/bill-split/bill-split.tsx +17 -0
  42. package/node_modules/@flickfyi/core/examples/kowalski/bookmark/bookmark.stories.tsx +15 -0
  43. package/node_modules/@flickfyi/core/examples/kowalski/bookmark/bookmark.tsx +23 -0
  44. package/node_modules/@flickfyi/core/examples/kowalski/budget/budget.stories.tsx +15 -0
  45. package/node_modules/@flickfyi/core/examples/kowalski/budget/budget.tsx +26 -0
  46. package/node_modules/@flickfyi/core/examples/kowalski/calculator/calculator.stories.tsx +15 -0
  47. package/node_modules/@flickfyi/core/examples/kowalski/calculator/calculator.tsx +24 -0
  48. package/node_modules/@flickfyi/core/examples/kowalski/checklist/checklist.stories.tsx +15 -0
  49. package/node_modules/@flickfyi/core/examples/kowalski/checklist/checklist.tsx +26 -0
  50. package/node_modules/@flickfyi/core/examples/kowalski/color-palette/color-palette.stories.tsx +15 -0
  51. package/node_modules/@flickfyi/core/examples/kowalski/color-palette/color-palette.tsx +22 -0
  52. package/node_modules/@flickfyi/core/examples/kowalski/contact/contact.stories.tsx +15 -0
  53. package/node_modules/@flickfyi/core/examples/kowalski/contact/contact.tsx +23 -0
  54. package/node_modules/@flickfyi/core/examples/kowalski/countdown/countdown.stories.tsx +15 -0
  55. package/node_modules/@flickfyi/core/examples/kowalski/countdown/countdown.tsx +23 -0
  56. package/node_modules/@flickfyi/core/examples/kowalski/event/event.stories.tsx +15 -0
  57. package/node_modules/@flickfyi/core/examples/kowalski/event/event.tsx +24 -0
  58. package/node_modules/@flickfyi/core/examples/kowalski/expense/expense.stories.tsx +15 -0
  59. package/node_modules/@flickfyi/core/examples/kowalski/expense/expense.tsx +23 -0
  60. package/node_modules/@flickfyi/core/examples/kowalski/goal/goal.stories.tsx +15 -0
  61. package/node_modules/@flickfyi/core/examples/kowalski/goal/goal.tsx +24 -0
  62. package/node_modules/@flickfyi/core/examples/kowalski/habit/habit.stories.tsx +15 -0
  63. package/node_modules/@flickfyi/core/examples/kowalski/habit/habit.tsx +23 -0
  64. package/node_modules/@flickfyi/core/examples/kowalski/ledger/ledger.stories.tsx +15 -0
  65. package/node_modules/@flickfyi/core/examples/kowalski/ledger/ledger.tsx +25 -0
  66. package/node_modules/@flickfyi/core/examples/kowalski/note/note.stories.tsx +15 -0
  67. package/node_modules/@flickfyi/core/examples/kowalski/note/note.tsx +22 -0
  68. package/node_modules/@flickfyi/core/examples/kowalski/poll/poll.stories.tsx +15 -0
  69. package/node_modules/@flickfyi/core/examples/kowalski/poll/poll.tsx +26 -0
  70. package/node_modules/@flickfyi/core/examples/kowalski/random-picker/random-picker.stories.tsx +15 -0
  71. package/node_modules/@flickfyi/core/examples/kowalski/random-picker/random-picker.tsx +23 -0
  72. package/node_modules/@flickfyi/core/examples/kowalski/rating/rating.stories.tsx +15 -0
  73. package/node_modules/@flickfyi/core/examples/kowalski/rating/rating.tsx +19 -0
  74. package/node_modules/@flickfyi/core/examples/kowalski/recipe/recipe.stories.tsx +15 -0
  75. package/node_modules/@flickfyi/core/examples/kowalski/recipe/recipe.tsx +120 -0
  76. package/node_modules/@flickfyi/core/examples/kowalski/reminder/reminder.stories.tsx +15 -0
  77. package/node_modules/@flickfyi/core/examples/kowalski/reminder/reminder.tsx +23 -0
  78. package/node_modules/@flickfyi/core/examples/kowalski/rotation/rotation.stories.tsx +15 -0
  79. package/node_modules/@flickfyi/core/examples/kowalski/rotation/rotation.tsx +27 -0
  80. package/node_modules/@flickfyi/core/examples/kowalski/scoreboard/scoreboard.stories.tsx +15 -0
  81. package/node_modules/@flickfyi/core/examples/kowalski/scoreboard/scoreboard.tsx +26 -0
  82. package/node_modules/@flickfyi/core/examples/kowalski/shopping-list/shopping-list.stories.tsx +15 -0
  83. package/node_modules/@flickfyi/core/examples/kowalski/shopping-list/shopping-list.tsx +27 -0
  84. package/node_modules/@flickfyi/core/examples/kowalski/task-board/task-board.stories.tsx +15 -0
  85. package/node_modules/@flickfyi/core/examples/kowalski/task-board/task-board.tsx +27 -0
  86. package/node_modules/@flickfyi/core/examples/kowalski/theme.ts +3 -0
  87. package/node_modules/@flickfyi/core/examples/kowalski/time-zone/time-zone.stories.tsx +15 -0
  88. package/node_modules/@flickfyi/core/examples/kowalski/time-zone/time-zone.tsx +22 -0
  89. package/node_modules/@flickfyi/core/examples/kowalski/timer/timer.stories.tsx +15 -0
  90. package/node_modules/@flickfyi/core/examples/kowalski/timer/timer.tsx +23 -0
  91. package/node_modules/@flickfyi/core/examples/kowalski/trip/trip.stories.tsx +15 -0
  92. package/node_modules/@flickfyi/core/examples/kowalski/trip/trip.tsx +26 -0
  93. package/node_modules/@flickfyi/core/examples/kowalski/unit-converter/unit-converter.stories.tsx +15 -0
  94. package/node_modules/@flickfyi/core/examples/kowalski/unit-converter/unit-converter.tsx +24 -0
  95. package/node_modules/@flickfyi/core/examples/parrott/calculator/calculator.stories.tsx +3 -1
  96. package/node_modules/@flickfyi/core/examples/parrott/checklist/checklist.stories.tsx +3 -1
  97. package/node_modules/@flickfyi/core/examples/parrott/countdown/countdown.stories.tsx +3 -1
  98. package/node_modules/@flickfyi/core/examples/parrott/counter/counter.stories.tsx +1 -0
  99. package/node_modules/@flickfyi/core/examples/parrott/fortune/fortune.stories.tsx +3 -1
  100. package/node_modules/@flickfyi/core/examples/parrott/grid/grid.stories.tsx +3 -1
  101. package/node_modules/@flickfyi/core/examples/parrott/kale-smoothie/kale-smoothie.stories.tsx +1 -0
  102. package/node_modules/@flickfyi/core/examples/parrott/list/list.stories.tsx +3 -1
  103. package/node_modules/@flickfyi/core/examples/parrott/log/log.stories.tsx +3 -1
  104. package/node_modules/@flickfyi/core/examples/parrott/timed-task/timed-task.stories.tsx +3 -1
  105. package/node_modules/@flickfyi/core/examples/parrott/timer/timer.stories.tsx +3 -1
  106. package/node_modules/@flickfyi/core/fixtures/native/host/project.yml +3 -0
  107. package/node_modules/@flickfyi/core/fixtures/native/src/catalog-features.tsx +88 -0
  108. package/node_modules/@flickfyi/core/package.json +35 -5
  109. package/node_modules/@flickfyi/core/package.tsgo.json +19 -1
  110. package/node_modules/@flickfyi/core/scripts/vite-globals.d.ts +2 -0
  111. package/node_modules/@flickfyi/core/src/generated-types.d.ts +1 -0
  112. package/node_modules/@flickfyi/core/src/kowalski/README.md +9 -0
  113. package/node_modules/@flickfyi/core/src/kowalski/calculations.ts +106 -0
  114. package/node_modules/@flickfyi/core/src/kowalski/calculator.ts +243 -0
  115. package/node_modules/@flickfyi/core/src/kowalski/catalog.ts +787 -0
  116. package/node_modules/@flickfyi/core/src/kowalski/clocks.tsx +464 -0
  117. package/node_modules/@flickfyi/core/src/kowalski/date-time.tsx +469 -0
  118. package/node_modules/@flickfyi/core/src/kowalski/details.tsx +1387 -0
  119. package/node_modules/@flickfyi/core/src/kowalski/everyday.tsx +652 -0
  120. package/node_modules/@flickfyi/core/src/kowalski/format.ts +48 -0
  121. package/node_modules/@flickfyi/core/src/kowalski/frame.tsx +351 -0
  122. package/node_modules/@flickfyi/core/src/kowalski/index.ts +23 -0
  123. package/node_modules/@flickfyi/core/src/kowalski/productivity.tsx +575 -0
  124. package/node_modules/@flickfyi/core/src/kowalski/recipe.tsx +555 -0
  125. package/node_modules/@flickfyi/core/src/kowalski/stories/composition.stories.tsx +47 -0
  126. package/node_modules/@flickfyi/core/src/kowalski/stories/composition.tsx +100 -0
  127. package/node_modules/@flickfyi/core/src/kowalski/tools.tsx +1213 -0
  128. package/node_modules/@flickfyi/core/src/kowalski/use-clock.ts +19 -0
  129. package/node_modules/@flickfyi/core/src/kowalski/use-configured-feature.ts +85 -0
  130. package/node_modules/@flickfyi/core/src/kowalski/use-feature-store.ts +119 -0
  131. package/node_modules/@flickfyi/core/src/molecules/field/field.tsx +34 -0
  132. package/node_modules/@flickfyi/core/src/molecules/index.ts +3 -0
  133. package/node_modules/@flickfyi/core/src/molecules/segmented/segmented.tsx +48 -0
  134. package/node_modules/@flickfyi/core/src/molecules/stepper/stepper.tsx +54 -0
  135. package/node_modules/@flickfyi/core/src/quantum/use-store.ts +41 -16
  136. package/node_modules/@flickfyi/core/tests/fly.test.ts +34 -7
  137. package/node_modules/@flickfyi/core/tests/kowalski-calculations.test.ts +60 -0
  138. package/node_modules/@flickfyi/core/tests/kowalski-calculator.test.ts +142 -0
  139. package/node_modules/@flickfyi/core/tests/kowalski-contracts.test.ts +223 -0
  140. package/node_modules/@flickfyi/core/tests/kowalski-date-time.test.tsx +462 -0
  141. package/node_modules/@flickfyi/core/tests/kowalski-features.test.tsx +2158 -0
  142. package/node_modules/@flickfyi/core/tests/kowalski-store.test.tsx +514 -0
  143. package/node_modules/@flickfyi/core/tests/preview-build.test.ts +1 -1
  144. package/node_modules/@flickfyi/core/tests/quantum-use-store.test.ts +53 -1
  145. package/node_modules/@flickfyi/core/tests/verify-tsgo-assets.test.ts +1 -1
  146. package/node_modules/@flickfyi/core/tsconfig.vite-dts.json +2 -1
  147. package/node_modules/@flickfyi/core/tsgo.bun.lock +111 -9
  148. package/node_modules/@flickfyi/core/tsgo.package.json +21 -3
  149. package/node_modules/@flickfyi/core/vite.config.ts +9 -5
  150. package/node_modules/@flickfyi/core/vitest.config.ts +1 -1
  151. package/node_modules/@flickfyi/http-message-sig/.turbo/turbo-build.log +7 -7
  152. package/node_modules/@flickfyi/identity/.turbo/turbo-build.log +8 -9
  153. package/node_modules/@flickfyi/lens/.turbo/turbo-build.log +7 -7
  154. package/node_modules/@flickfyi/photon/.turbo/turbo-build.log +9 -9
  155. package/node_modules/@flickfyi/photon/Sources/Photon/Components/Button.swift +29 -2
  156. package/node_modules/@flickfyi/photon/Sources/PhotonVersion/Resources/photon-version.json +1 -1
  157. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Components/ButtonHostTests.swift +26 -0
  158. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-features.styles.json +1 -0
  159. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-native.styles.json +1 -1
  160. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-scale.styles.json +1 -1
  161. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-theme.styles.json +1 -1
  162. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/catalog-typography.styles.json +1 -1
  163. package/node_modules/@flickfyi/photon/Tests/PhotonTests/Fixtures/StyleX/stylex-calculator.styles.json +1 -1
  164. package/node_modules/@flickfyi/photon/dist/globals.d.ts +5 -0
  165. package/node_modules/@flickfyi/photon/dist/version.cjs +1 -1
  166. package/node_modules/@flickfyi/photon/dist/version.js +1 -1
  167. package/node_modules/@flickfyi/photon/generated/react-swiftui.d.ts +1 -0
  168. package/node_modules/@flickfyi/photon/package.json +1 -1
  169. package/node_modules/@flickfyi/photon/src/globals.d.ts +5 -0
  170. package/node_modules/@flickfyi/rwsdk-extensions/.turbo/turbo-build.log +7 -7
  171. package/node_modules/@formatjs/fast-memoize/LICENSE.md +9 -0
  172. package/node_modules/@formatjs/fast-memoize/README.md +3 -0
  173. package/node_modules/@formatjs/fast-memoize/index.d.ts +35 -0
  174. package/node_modules/@formatjs/fast-memoize/index.js +69 -0
  175. package/node_modules/@formatjs/fast-memoize/index.js.map +1 -0
  176. package/node_modules/@formatjs/fast-memoize/package.json +25 -0
  177. package/node_modules/@formatjs/icu-messageformat-parser/LICENSE.md +9 -0
  178. package/node_modules/@formatjs/icu-messageformat-parser/README.md +38 -0
  179. package/node_modules/@formatjs/icu-messageformat-parser/index.d.ts +393 -0
  180. package/node_modules/@formatjs/icu-messageformat-parser/index.js +2187 -0
  181. package/node_modules/@formatjs/icu-messageformat-parser/index.js.map +1 -0
  182. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.d.ts +175 -0
  183. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
  184. package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js.map +1 -0
  185. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.d.ts +183 -0
  186. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
  187. package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js.map +1 -0
  188. package/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
  189. package/node_modules/@formatjs/icu-messageformat-parser/printer.d.ts +154 -0
  190. package/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
  191. package/node_modules/@formatjs/icu-messageformat-parser/printer.js.map +1 -0
  192. package/node_modules/@formatjs/icu-skeleton-parser/LICENSE.md +9 -0
  193. package/node_modules/@formatjs/icu-skeleton-parser/README.md +1 -0
  194. package/node_modules/@formatjs/icu-skeleton-parser/index.d.ts +67 -0
  195. package/node_modules/@formatjs/icu-skeleton-parser/index.js +380 -0
  196. package/node_modules/@formatjs/icu-skeleton-parser/index.js.map +1 -0
  197. package/node_modules/@formatjs/icu-skeleton-parser/package.json +15 -0
  198. package/node_modules/@formatjs/intl/LICENSE.md +9 -0
  199. package/node_modules/@formatjs/intl/README.md +3 -0
  200. package/node_modules/@formatjs/intl/index.d.ts +499 -0
  201. package/node_modules/@formatjs/intl/index.js +595 -0
  202. package/node_modules/@formatjs/intl/index.js.map +1 -0
  203. package/node_modules/@formatjs/intl/package.json +37 -0
  204. package/node_modules/decimal.js/LICENCE.md +23 -0
  205. package/node_modules/decimal.js/README.md +246 -0
  206. package/node_modules/decimal.js/decimal.d.ts +301 -0
  207. package/node_modules/decimal.js/decimal.js +4951 -0
  208. package/node_modules/decimal.js/decimal.mjs +4914 -0
  209. package/node_modules/decimal.js/package.json +55 -0
  210. package/node_modules/format-quantity/LICENSE +21 -0
  211. package/node_modules/format-quantity/README.md +181 -0
  212. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.development.d.ts +131 -0
  213. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.development.js +214 -0
  214. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.development.js.map +1 -0
  215. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.production.d.ts +131 -0
  216. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.production.js +2 -0
  217. package/node_modules/format-quantity/dist/cjs/format-quantity.cjs.production.js.map +1 -0
  218. package/node_modules/format-quantity/dist/cjs/index.d.ts +1 -0
  219. package/node_modules/format-quantity/dist/cjs/index.js +6 -0
  220. package/node_modules/format-quantity/dist/format-quantity.d.mts +131 -0
  221. package/node_modules/format-quantity/dist/format-quantity.legacy-esm.d.ts +131 -0
  222. package/node_modules/format-quantity/dist/format-quantity.legacy-esm.js +268 -0
  223. package/node_modules/format-quantity/dist/format-quantity.legacy-esm.js.map +1 -0
  224. package/node_modules/format-quantity/dist/format-quantity.mjs +208 -0
  225. package/node_modules/format-quantity/dist/format-quantity.mjs.map +1 -0
  226. package/node_modules/format-quantity/dist/format-quantity.production.d.mts +131 -0
  227. package/node_modules/format-quantity/dist/format-quantity.production.mjs +2 -0
  228. package/node_modules/format-quantity/dist/format-quantity.production.mjs.map +1 -0
  229. package/node_modules/format-quantity/dist/format-quantity.umd.min.js +3 -0
  230. package/node_modules/format-quantity/dist/format-quantity.umd.min.js.map +1 -0
  231. package/node_modules/format-quantity/package.json +81 -0
  232. package/node_modules/intl-messageformat/LICENSE.md +33 -0
  233. package/node_modules/intl-messageformat/README.md +3 -0
  234. package/node_modules/intl-messageformat/index.d.ts +177 -0
  235. package/node_modules/intl-messageformat/index.js +327 -0
  236. package/node_modules/intl-messageformat/index.js.map +1 -0
  237. package/node_modules/intl-messageformat/intl-messageformat.iife.js +2819 -0
  238. package/node_modules/intl-messageformat/package.json +40 -0
  239. package/node_modules/numeric-quantity/LICENSE +21 -0
  240. package/node_modules/numeric-quantity/README.md +306 -0
  241. package/node_modules/numeric-quantity/dist/cjs/index.d.ts +1 -0
  242. package/node_modules/numeric-quantity/dist/cjs/index.js +6 -0
  243. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.development.d.ts +293 -0
  244. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.development.js +579 -0
  245. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.development.js.map +1 -0
  246. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.production.d.ts +293 -0
  247. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.production.js +2 -0
  248. package/node_modules/numeric-quantity/dist/cjs/numeric-quantity.cjs.production.js.map +1 -0
  249. package/node_modules/numeric-quantity/dist/numeric-quantity.d.mts +293 -0
  250. package/node_modules/numeric-quantity/dist/numeric-quantity.iife.umd.min.js +2 -0
  251. package/node_modules/numeric-quantity/dist/numeric-quantity.iife.umd.min.js.map +1 -0
  252. package/node_modules/numeric-quantity/dist/numeric-quantity.legacy-esm.d.ts +293 -0
  253. package/node_modules/numeric-quantity/dist/numeric-quantity.legacy-esm.js +622 -0
  254. package/node_modules/numeric-quantity/dist/numeric-quantity.legacy-esm.js.map +1 -0
  255. package/node_modules/numeric-quantity/dist/numeric-quantity.mjs +564 -0
  256. package/node_modules/numeric-quantity/dist/numeric-quantity.mjs.map +1 -0
  257. package/node_modules/numeric-quantity/dist/numeric-quantity.production.d.mts +293 -0
  258. package/node_modules/numeric-quantity/dist/numeric-quantity.production.mjs +2 -0
  259. package/node_modules/numeric-quantity/dist/numeric-quantity.production.mjs.map +1 -0
  260. package/node_modules/numeric-quantity/package.json +72 -0
  261. package/node_modules/validator/LICENSE +20 -0
  262. package/node_modules/validator/README.md +269 -0
  263. package/node_modules/validator/es/index.js +218 -0
  264. package/node_modules/validator/es/lib/alpha.js +151 -0
  265. package/node_modules/validator/es/lib/blacklist.js +5 -0
  266. package/node_modules/validator/es/lib/contains.js +15 -0
  267. package/node_modules/validator/es/lib/equals.js +5 -0
  268. package/node_modules/validator/es/lib/escape.js +5 -0
  269. package/node_modules/validator/es/lib/isAbaRouting.js +15 -0
  270. package/node_modules/validator/es/lib/isAfter.js +10 -0
  271. package/node_modules/validator/es/lib/isAlpha.js +23 -0
  272. package/node_modules/validator/es/lib/isAlphanumeric.js +23 -0
  273. package/node_modules/validator/es/lib/isAscii.js +10 -0
  274. package/node_modules/validator/es/lib/isBIC.js +16 -0
  275. package/node_modules/validator/es/lib/isBase32.js +15 -0
  276. package/node_modules/validator/es/lib/isBase58.js +8 -0
  277. package/node_modules/validator/es/lib/isBase64.js +23 -0
  278. package/node_modules/validator/es/lib/isBefore.js +10 -0
  279. package/node_modules/validator/es/lib/isBoolean.js +15 -0
  280. package/node_modules/validator/es/lib/isBtcAddress.js +7 -0
  281. package/node_modules/validator/es/lib/isByteLength.js +19 -0
  282. package/node_modules/validator/es/lib/isCreditCard.js +43 -0
  283. package/node_modules/validator/es/lib/isCurrency.js +74 -0
  284. package/node_modules/validator/es/lib/isDataURI.js +31 -0
  285. package/node_modules/validator/es/lib/isDate.js +93 -0
  286. package/node_modules/validator/es/lib/isDecimal.js +22 -0
  287. package/node_modules/validator/es/lib/isDivisibleBy.js +6 -0
  288. package/node_modules/validator/es/lib/isEAN.js +70 -0
  289. package/node_modules/validator/es/lib/isEmail.js +165 -0
  290. package/node_modules/validator/es/lib/isEmpty.js +10 -0
  291. package/node_modules/validator/es/lib/isEthereumAddress.js +6 -0
  292. package/node_modules/validator/es/lib/isFQDN.js +67 -0
  293. package/node_modules/validator/es/lib/isFloat.js +14 -0
  294. package/node_modules/validator/es/lib/isFullWidth.js +6 -0
  295. package/node_modules/validator/es/lib/isHSL.js +13 -0
  296. package/node_modules/validator/es/lib/isHalfWidth.js +6 -0
  297. package/node_modules/validator/es/lib/isHash.js +21 -0
  298. package/node_modules/validator/es/lib/isHexColor.js +13 -0
  299. package/node_modules/validator/es/lib/isHexadecimal.js +6 -0
  300. package/node_modules/validator/es/lib/isIBAN.js +171 -0
  301. package/node_modules/validator/es/lib/isIMEI.js +40 -0
  302. package/node_modules/validator/es/lib/isIP.js +58 -0
  303. package/node_modules/validator/es/lib/isIPRange.js +41 -0
  304. package/node_modules/validator/es/lib/isISBN.js +47 -0
  305. package/node_modules/validator/es/lib/isISIN.js +55 -0
  306. package/node_modules/validator/es/lib/isISO15924.js +9 -0
  307. package/node_modules/validator/es/lib/isISO31661Alpha2.js +21 -0
  308. package/node_modules/validator/es/lib/isISO31661Alpha3.js +20 -0
  309. package/node_modules/validator/es/lib/isISO31661Numeric.js +8 -0
  310. package/node_modules/validator/es/lib/isISO4217.js +9 -0
  311. package/node_modules/validator/es/lib/isISO6346.js +28 -0
  312. package/node_modules/validator/es/lib/isISO6391.js +6 -0
  313. package/node_modules/validator/es/lib/isISO8601.js +42 -0
  314. package/node_modules/validator/es/lib/isISRC.js +8 -0
  315. package/node_modules/validator/es/lib/isISSN.js +19 -0
  316. package/node_modules/validator/es/lib/isIdentityCard.js +407 -0
  317. package/node_modules/validator/es/lib/isIn.js +23 -0
  318. package/node_modules/validator/es/lib/isInt.js +19 -0
  319. package/node_modules/validator/es/lib/isJSON.js +26 -0
  320. package/node_modules/validator/es/lib/isJWT.js +15 -0
  321. package/node_modules/validator/es/lib/isLatLong.js +21 -0
  322. package/node_modules/validator/es/lib/isLength.js +27 -0
  323. package/node_modules/validator/es/lib/isLicensePlate.js +58 -0
  324. package/node_modules/validator/es/lib/isLocale.js +107 -0
  325. package/node_modules/validator/es/lib/isLowercase.js +5 -0
  326. package/node_modules/validator/es/lib/isLuhnNumber.js +25 -0
  327. package/node_modules/validator/es/lib/isMACAddress.js +36 -0
  328. package/node_modules/validator/es/lib/isMD5.js +6 -0
  329. package/node_modules/validator/es/lib/isMagnetURI.js +9 -0
  330. package/node_modules/validator/es/lib/isMailtoURI.js +75 -0
  331. package/node_modules/validator/es/lib/isMimeType.js +40 -0
  332. package/node_modules/validator/es/lib/isMobilePhone.js +212 -0
  333. package/node_modules/validator/es/lib/isMongoId.js +6 -0
  334. package/node_modules/validator/es/lib/isMultibyte.js +10 -0
  335. package/node_modules/validator/es/lib/isNumeric.js +10 -0
  336. package/node_modules/validator/es/lib/isOctal.js +6 -0
  337. package/node_modules/validator/es/lib/isPassportNumber.js +145 -0
  338. package/node_modules/validator/es/lib/isPort.js +8 -0
  339. package/node_modules/validator/es/lib/isPostalCode.js +100 -0
  340. package/node_modules/validator/es/lib/isRFC3339.js +21 -0
  341. package/node_modules/validator/es/lib/isRgbColor.js +34 -0
  342. package/node_modules/validator/es/lib/isSemVer.js +14 -0
  343. package/node_modules/validator/es/lib/isSlug.js +6 -0
  344. package/node_modules/validator/es/lib/isStrongPassword.js +90 -0
  345. package/node_modules/validator/es/lib/isSurrogatePair.js +6 -0
  346. package/node_modules/validator/es/lib/isTaxID.js +1407 -0
  347. package/node_modules/validator/es/lib/isTime.js +22 -0
  348. package/node_modules/validator/es/lib/isULID.js +5 -0
  349. package/node_modules/validator/es/lib/isURL.js +241 -0
  350. package/node_modules/validator/es/lib/isUUID.js +23 -0
  351. package/node_modules/validator/es/lib/isUppercase.js +5 -0
  352. package/node_modules/validator/es/lib/isVAT.js +264 -0
  353. package/node_modules/validator/es/lib/isVariableWidth.js +7 -0
  354. package/node_modules/validator/es/lib/isWhitelisted.js +10 -0
  355. package/node_modules/validator/es/lib/ltrim.js +7 -0
  356. package/node_modules/validator/es/lib/matches.js +8 -0
  357. package/node_modules/validator/es/lib/normalizeEmail.js +131 -0
  358. package/node_modules/validator/es/lib/rtrim.js +15 -0
  359. package/node_modules/validator/es/lib/stripLow.js +7 -0
  360. package/node_modules/validator/es/lib/toBoolean.js +8 -0
  361. package/node_modules/validator/es/lib/toDate.js +6 -0
  362. package/node_modules/validator/es/lib/toFloat.js +5 -0
  363. package/node_modules/validator/es/lib/toInt.js +5 -0
  364. package/node_modules/validator/es/lib/trim.js +5 -0
  365. package/node_modules/validator/es/lib/unescape.js +8 -0
  366. package/node_modules/validator/es/lib/util/algorithms.js +79 -0
  367. package/node_modules/validator/es/lib/util/assertString.js +4 -0
  368. package/node_modules/validator/es/lib/util/checkHost.js +12 -0
  369. package/node_modules/validator/es/lib/util/includesArray.js +6 -0
  370. package/node_modules/validator/es/lib/util/includesString.js +4 -0
  371. package/node_modules/validator/es/lib/util/merge.js +14 -0
  372. package/node_modules/validator/es/lib/util/multilineRegex.js +12 -0
  373. package/node_modules/validator/es/lib/util/nullUndefinedCheck.js +3 -0
  374. package/node_modules/validator/es/lib/util/toString.js +13 -0
  375. package/node_modules/validator/es/lib/util/typeOf.js +10 -0
  376. package/node_modules/validator/es/lib/whitelist.js +5 -0
  377. package/node_modules/validator/index.js +229 -0
  378. package/node_modules/validator/lib/alpha.js +157 -0
  379. package/node_modules/validator/lib/blacklist.js +14 -0
  380. package/node_modules/validator/lib/contains.js +24 -0
  381. package/node_modules/validator/lib/equals.js +14 -0
  382. package/node_modules/validator/lib/escape.js +14 -0
  383. package/node_modules/validator/lib/isAbaRouting.js +23 -0
  384. package/node_modules/validator/lib/isAfter.js +19 -0
  385. package/node_modules/validator/lib/isAlpha.js +31 -0
  386. package/node_modules/validator/lib/isAlphanumeric.js +31 -0
  387. package/node_modules/validator/lib/isAscii.js +18 -0
  388. package/node_modules/validator/lib/isBIC.js +24 -0
  389. package/node_modules/validator/lib/isBase32.js +24 -0
  390. package/node_modules/validator/lib/isBase58.js +16 -0
  391. package/node_modules/validator/lib/isBase64.js +32 -0
  392. package/node_modules/validator/lib/isBefore.js +19 -0
  393. package/node_modules/validator/lib/isBoolean.js +24 -0
  394. package/node_modules/validator/lib/isBtcAddress.js +16 -0
  395. package/node_modules/validator/lib/isByteLength.js +27 -0
  396. package/node_modules/validator/lib/isCreditCard.js +52 -0
  397. package/node_modules/validator/lib/isCurrency.js +83 -0
  398. package/node_modules/validator/lib/isDataURI.js +40 -0
  399. package/node_modules/validator/lib/isDate.js +102 -0
  400. package/node_modules/validator/lib/isDecimal.js +31 -0
  401. package/node_modules/validator/lib/isDivisibleBy.js +15 -0
  402. package/node_modules/validator/lib/isEAN.js +78 -0
  403. package/node_modules/validator/lib/isEmail.js +174 -0
  404. package/node_modules/validator/lib/isEmpty.js +19 -0
  405. package/node_modules/validator/lib/isEthereumAddress.js +15 -0
  406. package/node_modules/validator/lib/isFQDN.js +76 -0
  407. package/node_modules/validator/lib/isFloat.js +22 -0
  408. package/node_modules/validator/lib/isFullWidth.js +14 -0
  409. package/node_modules/validator/lib/isHSL.js +22 -0
  410. package/node_modules/validator/lib/isHalfWidth.js +14 -0
  411. package/node_modules/validator/lib/isHash.js +30 -0
  412. package/node_modules/validator/lib/isHexColor.js +22 -0
  413. package/node_modules/validator/lib/isHexadecimal.js +15 -0
  414. package/node_modules/validator/lib/isIBAN.js +178 -0
  415. package/node_modules/validator/lib/isIMEI.js +49 -0
  416. package/node_modules/validator/lib/isIP.js +67 -0
  417. package/node_modules/validator/lib/isIPRange.js +50 -0
  418. package/node_modules/validator/lib/isISBN.js +56 -0
  419. package/node_modules/validator/lib/isISIN.js +64 -0
  420. package/node_modules/validator/lib/isISO15924.js +16 -0
  421. package/node_modules/validator/lib/isISO31661Alpha2.js +28 -0
  422. package/node_modules/validator/lib/isISO31661Alpha3.js +28 -0
  423. package/node_modules/validator/lib/isISO31661Numeric.js +16 -0
  424. package/node_modules/validator/lib/isISO4217.js +16 -0
  425. package/node_modules/validator/lib/isISO6346.js +35 -0
  426. package/node_modules/validator/lib/isISO6391.js +15 -0
  427. package/node_modules/validator/lib/isISO8601.js +50 -0
  428. package/node_modules/validator/lib/isISRC.js +16 -0
  429. package/node_modules/validator/lib/isISSN.js +28 -0
  430. package/node_modules/validator/lib/isIdentityCard.js +416 -0
  431. package/node_modules/validator/lib/isIn.js +32 -0
  432. package/node_modules/validator/lib/isInt.js +28 -0
  433. package/node_modules/validator/lib/isJSON.js +35 -0
  434. package/node_modules/validator/lib/isJWT.js +24 -0
  435. package/node_modules/validator/lib/isLatLong.js +30 -0
  436. package/node_modules/validator/lib/isLength.js +35 -0
  437. package/node_modules/validator/lib/isLicensePlate.js +67 -0
  438. package/node_modules/validator/lib/isLocale.js +115 -0
  439. package/node_modules/validator/lib/isLowercase.js +14 -0
  440. package/node_modules/validator/lib/isLuhnNumber.js +34 -0
  441. package/node_modules/validator/lib/isMACAddress.js +45 -0
  442. package/node_modules/validator/lib/isMD5.js +15 -0
  443. package/node_modules/validator/lib/isMagnetURI.js +18 -0
  444. package/node_modules/validator/lib/isMailtoURI.js +84 -0
  445. package/node_modules/validator/lib/isMimeType.js +48 -0
  446. package/node_modules/validator/lib/isMobilePhone.js +219 -0
  447. package/node_modules/validator/lib/isMongoId.js +15 -0
  448. package/node_modules/validator/lib/isMultibyte.js +18 -0
  449. package/node_modules/validator/lib/isNumeric.js +19 -0
  450. package/node_modules/validator/lib/isOctal.js +15 -0
  451. package/node_modules/validator/lib/isPassportNumber.js +152 -0
  452. package/node_modules/validator/lib/isPort.js +17 -0
  453. package/node_modules/validator/lib/isPostalCode.js +107 -0
  454. package/node_modules/validator/lib/isRFC3339.js +29 -0
  455. package/node_modules/validator/lib/isRgbColor.js +42 -0
  456. package/node_modules/validator/lib/isSemVer.js +22 -0
  457. package/node_modules/validator/lib/isSlug.js +15 -0
  458. package/node_modules/validator/lib/isStrongPassword.js +99 -0
  459. package/node_modules/validator/lib/isSurrogatePair.js +15 -0
  460. package/node_modules/validator/lib/isTaxID.js +1417 -0
  461. package/node_modules/validator/lib/isTime.js +31 -0
  462. package/node_modules/validator/lib/isULID.js +14 -0
  463. package/node_modules/validator/lib/isURL.js +249 -0
  464. package/node_modules/validator/lib/isUUID.js +32 -0
  465. package/node_modules/validator/lib/isUppercase.js +14 -0
  466. package/node_modules/validator/lib/isVAT.js +274 -0
  467. package/node_modules/validator/lib/isVariableWidth.js +16 -0
  468. package/node_modules/validator/lib/isWhitelisted.js +19 -0
  469. package/node_modules/validator/lib/ltrim.js +16 -0
  470. package/node_modules/validator/lib/matches.js +17 -0
  471. package/node_modules/validator/lib/normalizeEmail.js +140 -0
  472. package/node_modules/validator/lib/rtrim.js +24 -0
  473. package/node_modules/validator/lib/stripLow.js +16 -0
  474. package/node_modules/validator/lib/toBoolean.js +17 -0
  475. package/node_modules/validator/lib/toDate.js +15 -0
  476. package/node_modules/validator/lib/toFloat.js +14 -0
  477. package/node_modules/validator/lib/toInt.js +14 -0
  478. package/node_modules/validator/lib/trim.js +14 -0
  479. package/node_modules/validator/lib/unescape.js +17 -0
  480. package/node_modules/validator/lib/util/algorithms.js +88 -0
  481. package/node_modules/validator/lib/util/assertString.js +12 -0
  482. package/node_modules/validator/lib/util/checkHost.js +20 -0
  483. package/node_modules/validator/lib/util/includesArray.js +14 -0
  484. package/node_modules/validator/lib/util/includesString.js +12 -0
  485. package/node_modules/validator/lib/util/merge.js +22 -0
  486. package/node_modules/validator/lib/util/multilineRegex.js +20 -0
  487. package/node_modules/validator/lib/util/nullUndefinedCheck.js +11 -0
  488. package/node_modules/validator/lib/util/toString.js +21 -0
  489. package/node_modules/validator/lib/util/typeOf.js +18 -0
  490. package/node_modules/validator/lib/whitelist.js +14 -0
  491. package/node_modules/validator/package.json +76 -0
  492. package/node_modules/validator/validator.js +5808 -0
  493. package/node_modules/validator/validator.min.js +23 -0
  494. package/package.json +3 -3
@@ -0,0 +1,21 @@
1
+ require("../kowalski.css");
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let l=require("@flickfyi/core"),u=require("@stylexjs/stylex");u=c(u,1);let d=require("luxon"),f=require("react"),p=require("decimal.js"),m=require("validator/lib/isURL.js");m=c(m,1);let h=require("zod/v4"),g=require("@formatjs/intl"),_=require("validator/lib/isCurrency.js");_=c(_,1);let v=require("@flickfyi/core/atoms"),y=require("@flickfyi/core/molecules"),b=require("@flickfyi/lens"),x=require("format-quantity");var S={"2xl":`var(--x1e84273)`,"2xlLeading":`var(--x1tpfof8)`,"3xl":`var(--xdmy5t4)`,"3xlLeading":`var(--x1ess3ri)`,"4xl":`var(--x1uqv0tt)`,"4xlLeading":`var(--xoajvfx)`,"5xl":`var(--x1id3agp)`,"5xlLeading":`var(--xkbrmbc)`,"6xl":`var(--xq5yqbx)`,"6xlLeading":`var(--xkxawly)`,"7xl":`var(--xbadeym)`,"7xlLeading":`var(--xnyzq3x)`,"8xl":`var(--x3w55qa)`,"8xlLeading":`var(--xv47j9j)`,base:`var(--xw02fdu)`,baseLeading:`var(--xmv2pde)`,lg:`var(--x173yy0i)`,lgLeading:`var(--xuioold)`,sm:`var(--x1o4cn9x)`,smLeading:`var(--x5mbrki)`,xl:`var(--xyfiaz)`,xlLeading:`var(--xy9i4ci)`,xs:`var(--xyh3ukq)`,xsLeading:`var(--x1lrupup)`,__varGroupHash__:`xxhuyrc`},C={bodyFamily:`var(--x1ww9s9k)`,captionTracking:`var(--x2qug6k)`,displayColor:`var(--x1yzo09z)`,displayFamily:`var(--x1s7eds3)`,displayLeading:`var(--x1aedt4i)`,displaySize:`var(--x1bidobx)`,displayTracking:`var(--x12h2abv)`,displayWeight:`var(--xdoyj9w)`,headingColor:`var(--xowkbxe)`,headingFamily:`var(--x3nvgm2)`,headingLeading:`var(--x1six51p)`,headingSize:`var(--x1v2u6wf)`,headingStyle:`var(--xwfcljh)`,headingTracking:`var(--x1dnfkpb)`,headingTransform:`var(--xuqwxjy)`,headingWeight:`var(--x1v3m9ho)`,labelTracking:`var(--xe4a6tv)`,labelTransform:`var(--x9yqlk)`,strongStyle:`var(--x1h3zius)`,strongWeight:`var(--xamuq8i)`,titleFamily:`var(--xomyvjx)`,titleWeight:`var(--xqbuear)`,uiFamily:`var(--x1iw5fg4)`,uiWeight:`var(--x1kdogtu)`,__varGroupHash__:`x1h64s5r`},w={destructive:{"--x9nupr4":`x5kw3eu`,"--x1uto2pu":`xnn1hla`,"--x1bctnvr":`x1tovtra`,"--x1yuz3j8":`x8dqbgv`,$$css:!0},disabled:{"--x9nupr4":`xoow1if`,"--x1uto2pu":`xwkaegc`,"--x1bctnvr":`xw08cve`,"--x1yuz3j8":`x34odox`,$$css:!0},lg:{kGuDYH:`xrbuwz4`,kLWn49:`xefnbsy`,kAzted:`xwy7i26`,kGO01o:`xyyt4w1`,kE3dHu:`xu8itml`,kpe85a:`x1xn0acw`,kLKAdn:`x10p6gt5`,$$css:!0},primary:{"--x9nupr4":`xzbsfna`,"--x1uto2pu":`xz9hihg`,"--x1bctnvr":`x19yfq3x`,"--x1yuz3j8":`xtd1x58`,$$css:!0},quiet:{"--x9nupr4":`xf77iua`,"--x1uto2pu":`xwkaegc`,"--x1bctnvr":`xdsp7ug`,$$css:!0},secondary:{"--x9nupr4":`xs5vea6`,"--x1uto2pu":`xd6y849`,"--x1bctnvr":`x1m6zpy3`,"--x1yuz3j8":`x1ua4ae0`,$$css:!0},selected:{"--x9nupr4":`xr12r97`,"--x1uto2pu":`x17z6mdr`,"--x1bctnvr":`xaejoni`,"--x1yuz3j8":`x1ta9ov8`,$$css:!0},sm:{kGuDYH:`xg2vrdc`,kLWn49:`x1lvlgeo`,kAzted:`x1anugvq`,kGO01o:`xiz7bc4`,kE3dHu:`xf3mudm`,kpe85a:`x1t92ggr`,kLKAdn:`x1sr4ywe`,$$css:!0}},T={accent:{kMwMTN:`xchsc02`,kSiTet:`x1hc1fzr`,$$css:!0},mutedInk:{kMwMTN:`x1hvuwc0`,$$css:!0},screen:{"--x1yuz3j8":`x1rh1aws`,"--x1yzo09z":`x1atqolk`,"--xowkbxe":`xcikm5w`,kWkggS:`x1x2tyu6`,kVAM5u:`x9r1u3d`,kaIpWk:`x19uu6d`,kMzoRj:`xc342km`,kGVxlE:`x1gnnqk1`,kMwMTN:`x14zzll4`,$$css:!0},selected:{"--x1yuz3j8":`x1ta9ov8`,kWkggS:`x14y5hzf`,kVAM5u:`xj890v6`,kMwMTN:`xzdc0hn`,$$css:!0},surface:{"--x1yuz3j8":`x1ua4ae0`,kWkggS:`xpkqiqq`,kVAM5u:`xg1h3yp`,kaIpWk:`x19uu6d`,ksu8eU:`x1y0btm7`,kMzoRj:`xljh9te`,kGVxlE:`x1koujpl`,kMwMTN:`x1hqp5vk`,$$css:!0},tray:{"--x1yuz3j8":`x1ua4ae0`,kWkggS:`x163dzul`,kVAM5u:`x19b2fto`,kaIpWk:`xq636m2`,ksu8eU:`x1y0btm7`,kMzoRj:`x1s6s5x7`,kGVxlE:`x1gnnqk1`,kMwMTN:`x1hqp5vk`,$$css:!0}},E={caption:{kMwMTN:`x1hvuwc0`,kMv6JI:`xw0sljs`,kGuDYH:`xx29u00`,kKX8nH:`x1j61x8r`,k63SB2:`x1hn1v7j`,kb6lSQ:`xvavigx`,kLWn49:`x1h0uwdi`,kP9fke:`xtvhhri`,$$css:!0},display:{kMwMTN:`x177djjb`,kMv6JI:`x1qra89s`,kGuDYH:`xkb7h96`,kKX8nH:`x1j61x8r`,k63SB2:`x1yitz12`,kb6lSQ:`x140i3h3`,kLWn49:`x18jf8vb`,kP9fke:`x6mezaz`,$$css:!0},h1:{kMwMTN:`x38fzc4`,kMv6JI:`x16u5gxi`,kGuDYH:`xubh4uk`,kKX8nH:`x1u52p1w`,k63SB2:`x18x13c3`,kb6lSQ:`x7fzxe7`,kLWn49:`x1a49ice`,kP9fke:`xrf7n4q`,$$css:!0},h2:{kMv6JI:`xqq04me`,kGuDYH:`x181kg9y`,kKX8nH:`x1j61x8r`,k63SB2:`xgnkoy4`,kb6lSQ:`x12oo3zp`,kLWn49:`x1xbieo3`,kP9fke:`x6mezaz`,$$css:!0},label:{kMv6JI:`xw0sljs`,kGuDYH:`xg2vrdc`,kKX8nH:`x1j61x8r`,k63SB2:`x1hn1v7j`,kb6lSQ:`x1wfl4kp`,kLWn49:`x1lvlgeo`,kP9fke:`x1nqem7z`,$$css:!0},lead:{kMv6JI:`xqq04me`,kGuDYH:`xozo05z`,kKX8nH:`x1j61x8r`,k63SB2:`xo1l8bm`,kb6lSQ:`x12oo3zp`,kLWn49:`x1rurdap`,kP9fke:`x6mezaz`,$$css:!0},muted:{kMwMTN:`x1hvuwc0`,kMv6JI:`xbyriim`,kGuDYH:`xg2vrdc`,kKX8nH:`x1j61x8r`,k63SB2:`xo1l8bm`,kb6lSQ:`x12oo3zp`,kLWn49:`x1lvlgeo`,kSiTet:`x1hc1fzr`,kP9fke:`x6mezaz`,$$css:!0},strong:{kMv6JI:`xbyriim`,kKX8nH:`x13vjpf3`,k63SB2:`xm08xp9`,$$css:!0},text:{kMv6JI:`xbyriim`,kGuDYH:`xrbuwz4`,kKX8nH:`x1j61x8r`,k63SB2:`xo1l8bm`,kb6lSQ:`x12oo3zp`,kLWn49:`xefnbsy`,kP9fke:`x6mezaz`,$$css:!0}},ee=h.z.string().regex(/^[A-Za-z][A-Za-z0-9]*$/).optional(),te=h.z.enum([`private`,`public`]).default(`private`),ne={budget:`spent_`,checklist:`completed_`,habit:`completed_`,poll:`vote_`,recipe:`step_`,scoreboard:`score_`,shoppingList:`got_`,taskBoard:`status_`},re=[`sunday`,`monday`,`tuesday`,`wednesday`,`thursday`,`friday`,`saturday`],D={billSplit:{description:`Split a bill equally with an optional tip, rounding in the selected currency.`,exportName:`BillSplit`,props:j({currency:ie(),people:h.z.number().int().min(1).max(1e3),tipPercent:h.z.number().min(0).max(100).default(0),title:F(`Split the bill`),total:h.z.number().min(0).max(0xe8d4a51000)}),storeSchema:P({people:h.z.number().int().min(1).max(1e3).default(1),tipPercent:h.z.number().min(0).max(100).default(0),total:h.z.number().min(0).max(0xe8d4a51000).default(0)})},bookmark:{description:`Display, edit, and retain a web bookmark. No implicit metadata fetch.`,exportName:`Bookmark`,props:j({note:h.z.string().max(1e4).default(``),title:F(),url:de()}),storeSchema:P({note:I(h.z.string().max(1e4).default(``)),title:I(h.z.string().max(160).default(``)),url:I(de().nullable().default(null))})},budget:{description:`Track spending against category limits for one budget period. No bank connection or payments.`,exportName:`Budget`,props:j({categories:M({label:h.z.string().min(1).max(80),limit:h.z.number().positive().max(0xe8d4a51000)},12),currency:ie(),title:F(`Budget`)}),storeSchema:ae(ne.budget,h.z.number().min(0).max(0xe8d4a51000),{})},calculator:{description:`A persistent keypad calculator with chained arithmetic, decimals, sign, percent, and repeated equals. Supports +, -, *, /. No executable expression strings.`,exportName:`Calculator`,props:j({left:h.z.number().default(0),operator:h.z.enum([`+`,`-`,`*`,`/`]).default(`+`),right:h.z.number().default(0),title:F(`Calculate`)}),storeSchema:P({calculation:h.z.object({entry:h.z.string().max(40).regex(/^(?:-?\d+(?:\.\d*)?(?:e[+-]?\d+)?|Error)$/),left:h.z.number(),operator:h.z.enum([`+`,`-`,`*`,`/`]),overwrite:h.z.boolean(),phase:h.z.enum([`left`,`operator`,`right`,`result`,`error`]),right:h.z.number()}).refine(e=>e.phase===`error`?e.entry===`Error`:e.entry!==`Error`&&Number.isFinite(Number(e.entry)),`Calculator entry must match its phase and represent a finite number.`).default({entry:`0`,left:0,operator:`+`,overwrite:!1,phase:`left`,right:0})})},checklist:{description:`A persistent checklist with independent completion and progress. No external actions.`,exportName:`Checklist`,props:j({items:M({label:h.z.string().min(1).max(500)},100),title:F()}),storeSchema:ae(ne.checklist,h.z.boolean(),{})},colorPalette:{description:`Choose and retain an sRGB color and display matching shades.`,exportName:`ColorPalette`,props:j({color:h.z.string().regex(/^#[\da-fA-F]{6}$/),title:F(`Palette`)}),storeSchema:P({color:I(h.z.string().regex(/^#[\da-fA-F]{6}$/).default(`#6366f1`))})},contact:{description:`Display, edit, and retain a contact. Does not insert into the address book.`,exportName:`Contact`,props:j({email:h.z.email().optional(),name:h.z.string().min(1).max(160),phone:h.z.string().min(1).max(80).optional()}),storeSchema:P({email:I(h.z.email().nullable().default(null)),name:I(h.z.string().max(160).default(``)),phone:I(h.z.string().min(1).max(80).nullable().default(null))})},countdown:{description:`Count down to an explicit instant. Resolve missing dates before instantiation.`,exportName:`Countdown`,props:j({target:h.z.iso.datetime({offset:!0}),timeZone:le().default(`UTC`),title:F()}),storeSchema:P({target:I(h.z.iso.datetime({offset:!0}).nullable().default(null))})},event:{description:`Save and edit event details in the app. Does not create a calendar event.`,exportName:`Event`,props:j({location:h.z.string().max(500).default(``),startsAt:h.z.iso.datetime({offset:!0}).nullable().default(null),timeZone:le().default(`UTC`),title:F()}),storeSchema:P({location:I(h.z.string().max(500).default(``)),startsAt:I(h.z.iso.datetime({offset:!0}).nullable().default(null)),title:I(h.z.string().max(160).default(``))})},expense:{description:`Edit and retain one expense. No payments, bank connection, or exchange-rate lookup.`,exportName:`Expense`,props:j({amount:h.z.number().min(0).max(0xe8d4a51000),category:h.z.string().max(80).default(`Other`),currency:ie(),title:F()}),storeSchema:P({amount:h.z.number().min(0).max(0xe8d4a51000).default(0),category:I(h.z.string().max(80).default(`Other`)),title:I(h.z.string().max(160).default(``))})},goal:{description:`A personal goal with editable progress, target, and a fixed increment. Not a distributed counter.`,exportName:`Goal`,props:j({progress:h.z.number().min(0).max(0xe8d4a51000).default(0),step:h.z.number().positive().max(1e9).default(1),target:h.z.number().positive().max(0xe8d4a51000),title:F(),unit:h.z.string().max(40).default(``)}),storeSchema:P({progress:h.z.number().min(0).default(0)})},habit:{description:`Track a habit by local date and edit its weekday schedule. No notifications.`,exportName:`Habit`,props:j({timeZone:le().default(`UTC`),title:F(),weekdays:ue()}),storeSchema:ae(ne.habit,h.z.boolean(),{weekdays:ue()})},ledger:{description:`A running tab of shared costs between two people, split evenly, with settle up. No payments.`,exportName:`Ledger`,props:j({currency:ie(),people:M({label:h.z.string().min(1).max(80)},2,2),title:F(`Shared tab`)}),storeSchema:P({entries:h.z.array(h.z.strictObject({amount:h.z.number().positive().max(0xe8d4a51000),id:N(),label:h.z.string().max(160),paidBy:N()})).max(200).default([])})},note:{description:`An editable persistent note. Plain text; no HTML or code execution.`,exportName:`Note`,props:j({body:h.z.string().max(2e4),title:h.z.string().max(160)}),storeSchema:P({body:I(h.z.string().max(2e4).default(``)),title:I(h.z.string().max(160).default(``))})},poll:{exportName:`Poll`,description:`Cast or change a vote and derive totals from votes. Shared voting only when explicitly requested.`,props:j({options:M({label:h.z.string().min(1).max(160)},12,2),question:h.z.string().min(1).max(500),shared:h.z.boolean().default(!1)}),storeSchema:ae(ne.poll,N(),{})},randomPicker:{description:`Flip a coin, roll a die, or pick from a bounded integer range or list. Retains the last result.`,exportName:`RandomPicker`,props:h.z.discriminatedUnion(`mode`,[j({mode:h.z.literal(`coin`),title:F(`Pick one`)}),j({mode:h.z.literal(`dice`),title:F(`Pick one`)}),j({maximum:h.z.number().int().min(-1e9).max(1e9),minimum:h.z.number().int().min(-1e9).max(1e9),mode:h.z.literal(`range`),title:F(`Pick one`)}).refine(e=>e.minimum<=e.maximum,{message:`Minimum cannot exceed maximum.`,path:[`maximum`]}),j({mode:h.z.literal(`list`),options:h.z.array(h.z.string().min(1).max(160)).min(1).max(100),title:F(`Pick one`)})]),storeSchema:P({result:h.z.strictObject({domain:oe(),value:h.z.union([h.z.number().int(),h.z.string().max(160)])}).nullable().default(null)})},rating:{description:`Rate one thing from one to five stars and keep a short note about it.`,exportName:`Rating`,props:j({subject:h.z.string().min(1).max(160),title:F(`Your rating`)}),storeSchema:P({note:I(h.z.string().max(2e3).default(``)),stars:h.z.number().int().min(0).max(5).default(0)})},recipe:{description:`Cook a recipe whose steps follow the Recipe Graph Format (rgf/0-draft): each step uses ingredients or earlier step outputs, waits on the steps in after, and may carry a duration, doneness cue, and attention. Ingredients carry a numeric amount and unit, and meta.servings is a number, so amounts scale with servings. Shows running timers, the current step, and the next few. No nutrition or shopping lookup.`,exportName:`Recipe`,props:j({ingredients:M({amount:h.z.number().positive().max(1e6).optional(),label:h.z.string().min(1).max(160),notes:h.z.array(h.z.string().max(160)).max(10).optional(),unit:h.z.string().max(40).optional()},60),servings:h.z.number().int().min(1).max(100).optional(),steps:h.z.array(h.z.strictObject({after:h.z.array(N()).max(60).optional(),attention:h.z.enum([`active`,`passive`]).optional(),doneness:h.z.string().max(200).optional(),duration:h.z.strictObject({maxMinutes:h.z.number().nonnegative().max(10080).optional(),minMinutes:h.z.number().nonnegative().max(10080).optional(),raw:h.z.string().min(1).max(80)}).refine(e=>e.minMinutes===void 0||e.maxMinutes===void 0||e.minMinutes<=e.maxMinutes,`minMinutes cannot exceed maxMinutes.`).optional(),equipment:h.z.array(h.z.string().min(1).max(160)).max(20).optional(),id:N(),instruction:h.z.string().min(1).max(500),kind:h.z.enum([`setup`,`transform`,`wait`,`serve`]).optional(),label:h.z.string().max(80).optional(),outputs:h.z.array(h.z.strictObject({id:N(),name:h.z.string().max(160).optional()})).max(10).optional(),temperature:h.z.string().min(1).max(80).optional(),uses:h.z.array(h.z.strictObject({id:N(),portion:h.z.string().max(80).optional(),source:h.z.discriminatedUnion(`kind`,[h.z.strictObject({ingredientId:N(),kind:h.z.literal(`ingredient`)}),h.z.strictObject({kind:h.z.literal(`output`),outputId:N()})])})).max(30).default([])})).min(1).max(60),title:F(),yield:h.z.string().max(160).optional()}).superRefine((e,t)=>{let n=new Set(e.ingredients.map(e=>e.id)),r=new Set,i=new Set;for(let a of e.steps){!r.has(a.id)&&(a.after??[]).every(e=>r.has(e))&&a.uses.every(e=>e.source.kind===`ingredient`?n.has(e.source.ingredientId):i.has(e.source.outputId))||t.addIssue({code:`custom`,message:`Step ${a.id} needs a unique ID and can only use ingredients and earlier steps.`}),r.add(a.id);for(let e of a.outputs??[])i.has(e.id)&&t.addIssue({code:`custom`,message:`Output IDs must be unique.`}),i.add(e.id)}}),storeSchema:ae(ne.recipe,h.z.strictObject({done:h.z.boolean(),endsAt:h.z.number().nullable()}),{cooking:h.z.boolean().default(!1),servings:h.z.number().int().min(1).max(100).default(1)})},reminder:{description:`Complete, reopen, and edit an in-app reminder. Does not schedule notifications.`,exportName:`Reminder`,props:j({dueAt:h.z.iso.datetime({offset:!0}).nullable().default(null),recurrence:h.z.enum([`none`,`daily`,`weekly`]).default(`none`),timeZone:le().optional(),title:h.z.string().min(1).max(500)}),storeSchema:P({completedAt:h.z.number().nullable().default(null),dueAt:I(h.z.iso.datetime({offset:!0}).nullable().default(null)),title:I(h.z.string().max(500).default(``))})},rotation:{description:`Take turns through a fixed group in order and pass the turn on when done.`,exportName:`Rotation`,props:j({people:M({label:h.z.string().min(1).max(80)},20,2),task:h.z.string().min(1).max(160),title:F(`Whose turn`)}),storeSchema:P({completed:h.z.number().int().min(0).default(0),turn:N().nullable().default(null)})},scoreboard:{description:`Keep score for a few players with a fixed step. Not a distributed counter or a league.`,exportName:`Scoreboard`,props:j({players:M({label:h.z.string().min(1).max(80)},12,2),step:h.z.number().int().positive().max(1e3).default(1),title:F(`Scores`)}),storeSchema:ae(ne.scoreboard,h.z.number().int(),{})},shoppingList:{description:`Check items off a shopping list with optional prices and a running cart total. No ordering.`,exportName:`ShoppingList`,props:j({currency:ie(),items:M({label:h.z.string().min(1).max(160),price:h.z.number().min(0).max(1e9).optional(),quantity:h.z.number().int().min(1).max(999).default(1)},100),title:F(`Shopping list`)}),storeSchema:ae(ne.shoppingList,h.z.boolean(),{})},taskBoard:{description:`Move tasks between To do, Doing, and Done. No assignees, dates, or sync.`,exportName:`TaskBoard`,props:j({tasks:M({label:h.z.string().min(1).max(500)},50),title:F(`Tasks`)}),storeSchema:ae(ne.taskBoard,h.z.enum([`todo`,`doing`,`done`]),{})},timeZone:{description:`Compare local times in named time zones, live or at an explicit instant.`,exportName:`TimeZone`,props:j({at:h.z.iso.datetime({offset:!0}).nullable().default(null),title:F(`World clock`),zones:h.z.array(le()).min(2).max(6)}),storeSchema:P({at:I(h.z.iso.datetime({offset:!0}).nullable().default(null))})},timer:{description:`Countdown, focus, break, or stopwatch. Start, pause, resume, reset; no background alarm.`,exportName:`Timer`,props:j({durationSeconds:h.z.number().int().min(1).max(604800).default(300),mode:h.z.enum([`countdown`,`focus`,`break`,`stopwatch`]).default(`countdown`),title:F(`Timer`)}),storeSchema:P({elapsedSeconds:h.z.number().min(0).default(0),startedAt:h.z.number().nullable().default(null)})},trip:{description:`Edit and retain trip details. No bookings or itinerary retrieval.`,exportName:`Trip`,props:j({destination:h.z.string().min(1).max(160),endDate:h.z.iso.date().nullable().default(null),origin:h.z.string().min(1).max(160),startDate:h.z.iso.date().nullable().default(null),title:F(`Trip`),transport:h.z.enum([`car`,`train`,`plane`,`walk`,`other`]).default(`other`)}).refine(e=>!e.startDate||!e.endDate||e.endDate>=e.startDate,{message:`The trip cannot end before it starts.`,path:[`endDate`]}),storeSchema:P({destination:I(h.z.string().max(160).default(``)),endDate:I(h.z.iso.date().nullable().default(null)),origin:I(h.z.string().max(160).default(``)),startDate:I(h.z.iso.date().nullable().default(null))}).refine(e=>!e.startDate.value||!e.endDate.value||e.endDate.value>=e.startDate.value,`The trip cannot end before it starts.`)},unitConverter:{description:`Convert compatible length, mass, or temperature units deterministically.`,exportName:`UnitConverter`,props:j({from:ce(),title:F(`Convert`),to:ce(),value:h.z.number()}).refine(({from:e,to:t})=>A[e].dimension===A[t].dimension,{message:`Source and destination units must measure the same dimension.`,path:[`to`]}),storeSchema:P({from:I(ce().default(`km`)),to:I(ce().default(`mi`)),value:h.z.number().default(0)}).refine(({from:e,to:t})=>A[e.value].dimension===A[t.value].dimension,`Incompatible units.`)}};h.z.enum(`checklist.timer.habit.goal.poll.event.reminder.trip.countdown.timeZone.colorPalette.billSplit.expense.unitConverter.calculator.randomPicker.contact.bookmark.note.budget.scoreboard.taskBoard.recipe.rotation.shoppingList.rating.ledger`.split(`.`));var O=h.z.object({configuration:h.z.string().default(``),voter:h.z.string().min(1)}),k={max_allowed_length:2048,protocols:[`http`,`https`],require_host:!0,require_protocol:!0,require_tld:!1,require_valid_protocol:!0},A={c:{dimension:`temperature`,factor:1,offset:0},f:{dimension:`temperature`,factor:5/9,offset:-32},ft:{dimension:`length`,factor:.3048,offset:0},g:{dimension:`mass`,factor:.001,offset:0},k:{dimension:`temperature`,factor:1,offset:-273.15},kg:{dimension:`mass`,factor:1,offset:0},km:{dimension:`length`,factor:1e3,offset:0},lb:{dimension:`mass`,factor:.45359237,offset:0},m:{dimension:`length`,factor:1,offset:0},mi:{dimension:`length`,factor:1609.344,offset:0}};function j(e){return h.z.strictObject({id:ee,revision:h.z.number().int().min(0).default(0),scope:te,...e})}function ie(){return h.z.string().regex(/^[A-Z]{3}$/).default(`USD`)}function ae(e,t,n){let r=P(n),i=new Set(Object.keys(r.shape));return h.z.intersection(r.loose(),h.z.looseRecord(h.z.templateLiteral([e,h.z.string()]),t)).refine(t=>Object.keys(t).every(t=>i.has(t)||t.startsWith(e)),`Item fields must start with ${e}.`)}function M(e,t,n=1){return h.z.array(h.z.strictObject(e).extend({id:N()})).min(n).max(t).refine(se,`IDs must be unique.`)}function N(){return h.z.string().min(1).max(80).refine(e=>e!==`__proto__`)}function oe(){return h.z.union([h.z.strictObject({mode:h.z.literal(`coin`)}),h.z.strictObject({mode:h.z.literal(`dice`)}),h.z.strictObject({maximum:h.z.number().int(),minimum:h.z.number().int(),mode:h.z.literal(`range`)}),h.z.strictObject({mode:h.z.literal(`list`),options:h.z.array(h.z.string().max(160)).max(100)})])}function P(e){return h.z.object({configuration:h.z.record(h.z.string(),h.z.unknown()).nullable().default(null),configurationRevision:h.z.number().int().min(0).default(0),...e})}function F(e){let t=h.z.string().min(1).max(160);return e===void 0?t:t.default(e)}function se(e){let t=e.map(e=>`id`in e?e.id:void 0);return new Set(t).size===t.length}function ce(){return h.z.enum([`m`,`km`,`mi`,`ft`,`kg`,`g`,`lb`,`c`,`f`,`k`])}function le(){return h.z.string().max(80).refine(e=>{try{return new Intl.DateTimeFormat(`en`,{timeZone:e}).format(0),!0}catch{return!1}},`Use a valid IANA time zone.`)}function ue(){return h.z.array(h.z.enum(re)).max(7).default([...re])}function de(){return h.z.string().max(2048).refine(e=>(0,m.default)(e,k),`Use a valid HTTP or HTTPS address.`)}function I(e){return h.z.object({value:e}).default(()=>({value:e.parse(void 0)}))}var L=(0,g.createIntl)({defaultLocale:`en-US`,formats:{number:{decimal:{maximumFractionDigits:100,maximumSignificantDigits:17,roundingPriority:`morePrecision`},integer:{maximumFractionDigits:0},twoDigits:{maximumFractionDigits:0,minimumIntegerDigits:2,useGrouping:!1}}},locale:`en-US`,messages:{}},(0,g.createIntlCache)());function R(e,t){let n=t?L.formatNumberToParts(0,{currency:t,style:`currency`}).find(e=>e.type===`currency`)?.value??t:``,r=e.replaceAll(`‎`,``).trim().replaceAll(`\xA0`,` `),i=r.replace(n,``);return(0,_.default)(r,{allow_space_after_symbol:!0,digits_after_decimal:[i.split(`.`)[1]?.length??0],symbol:n})?Number(i.replaceAll(`,`,``).trim()):NaN}var fe=p.Decimal.clone({precision:40,rounding:p.Decimal.ROUND_HALF_UP});function pe(e,t){return e.elapsedSeconds+(e.startedAt===null?0:Math.max(0,t-e.startedAt)/1e3)}function me(e,t,n,r){let i=10**(L.formatters.getNumberFormat(L.locale,{currency:r,style:`currency`}).resolvedOptions().maximumFractionDigits??2),a=new fe(e).times(new fe(n).div(100).plus(1)).times(i).toDecimalPlaces(0),o=a.dividedToIntegerBy(t);return{perPerson:o.div(i).toNumber(),remainder:a.minus(o.times(t)).div(i).toNumber(),total:a.div(i).toNumber()}}function he(e,t,n){let r=A[t],i=A[n];if(r.dimension!==i.dimension)throw Error(`Incompatible units`);return t===n?e:(e+r.offset)*r.factor/i.factor-i.offset}function ge(e,t){let n=L.formatDateToParts(e,{day:`2-digit`,month:`2-digit`,timeZone:t,year:`numeric`});return[`year`,`month`,`day`].map(e=>n.find(t=>t.type===e)?.value).join(`-`)}function _e(e,t,n){if(!e||t===`none`)return null;let r=(t===`daily`?1:7)*864e5,i=Date.parse(e);return new Date(i+Math.max(1,Math.floor((n-i)/r)+1)*r).toISOString()}function ve(e,t){if(!(t>=0&&t<1))throw Error(`Random sample must be in [0, 1)`);if(e.mode===`coin`)return t<.5?`Heads`:`Tails`;if(e.mode===`list`)return e.options[Math.floor(t*e.options.length)];let[n,r]=e.mode===`dice`?[1,6]:[e.minimum,e.maximum];return n+Math.floor(t*(r-n+1))}function ye(e,t){return L.formatNumber(e,{currency:t,format:`decimal`,style:`currency`})}var be=o(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,S=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],C=`[object Arguments]`,w=`[object Array]`,T=`[object AsyncFunction]`,E=`[object Boolean]`,ee=`[object Date]`,te=`[object DOMException]`,ne=`[object Error]`,re=`[object Function]`,D=`[object GeneratorFunction]`,O=`[object Map]`,k=`[object Number]`,A=`[object Null]`,j=`[object Object]`,ie=`[object Promise]`,ae=`[object Proxy]`,M=`[object RegExp]`,N=`[object Set]`,oe=`[object String]`,P=`[object Symbol]`,F=`[object Undefined]`,se=`[object WeakMap]`,ce=`[object WeakSet]`,le=`[object ArrayBuffer]`,ue=`[object DataView]`,de=`[object Float32Array]`,I=`[object Float64Array]`,L=`[object Int8Array]`,R=`[object Int16Array]`,fe=`[object Int32Array]`,pe=`[object Uint8Array]`,me=`[object Uint8ClampedArray]`,he=`[object Uint16Array]`,ge=`[object Uint32Array]`,_e=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39);/g,z=/[&<>"']/g,xe=RegExp(be.source),Se=RegExp(z.source),Ce=/<%-([\s\S]+?)%>/g,we=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,Te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ee=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Oe=/[\\^$.*+?()[\]{}|]/g,V=RegExp(Oe.source),ke=/^\s+/,Ae=/\s/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Me=/\{\n\/\* \[wrapped with (.+)\] \*/,Ne=/,? & /,Pe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/[()=,{}\[\]\/\s]/,Ie=/\\(\\)?/g,Le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Re=/\w*$/,ze=/^[-+]0x[0-9a-f]+$/i,Be=/^0b[01]+$/i,Ve=/^\[object .+?Constructor\]$/,He=/^0o[0-7]+$/i,Ue=/^(?:0|[1-9]\d*)$/,We=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,H=/($^)/,Ge=/['\n\r\u2028\u2029\\]/g,Ke=`\\ud800-\\udfff`,qe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Je=`\\u2700-\\u27bf`,U=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ye=`\\xac\\xb1\\xd7\\xf7`,Xe=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ze=`\\u2000-\\u206f`,Qe=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,$e=`A-Z\\xc0-\\xd6\\xd8-\\xde`,et=`\\ufe0e\\ufe0f`,tt=Ye+Xe+Ze+Qe,nt=`['’]`,W=`[`+Ke+`]`,rt=`[`+tt+`]`,it=`[`+qe+`]`,at=`\\d+`,ot=`[`+Je+`]`,st=`[`+U+`]`,ct=`[^`+Ke+tt+at+Je+U+$e+`]`,lt=`\\ud83c[\\udffb-\\udfff]`,ut=`(?:`+it+`|`+lt+`)`,dt=`[^`+Ke+`]`,ft=`(?:\\ud83c[\\udde6-\\uddff]){2}`,pt=`[\\ud800-\\udbff][\\udc00-\\udfff]`,mt=`[`+$e+`]`,ht=`\\u200d`,gt=`(?:`+st+`|`+ct+`)`,_t=`(?:`+mt+`|`+ct+`)`,vt=`(?:`+nt+`(?:d|ll|m|re|s|t|ve))?`,yt=`(?:`+nt+`(?:D|LL|M|RE|S|T|VE))?`,bt=ut+`?`,xt=`[`+et+`]?`,St=`(?:`+ht+`(?:`+[dt,ft,pt].join(`|`)+`)`+xt+bt+`)*`,Ct=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,wt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Tt=xt+bt+St,Et=`(?:`+[ot,ft,pt].join(`|`)+`)`+Tt,Dt=`(?:`+[dt+it+`?`,it,ft,pt,W].join(`|`)+`)`,Ot=RegExp(nt,`g`),kt=RegExp(it,`g`),At=RegExp(lt+`(?=`+lt+`)|`+Dt+Tt,`g`),jt=RegExp([mt+`?`+st+`+`+vt+`(?=`+[rt,mt,`$`].join(`|`)+`)`,_t+`+`+yt+`(?=`+[rt,mt+gt,`$`].join(`|`)+`)`,mt+`?`+gt+`+`+vt,mt+`+`+yt,wt,Ct,at,Et].join(`|`),`g`),Mt=RegExp(`[`+ht+Ke+qe+et+`]`),Nt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Pt=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Ft=-1,G={};G[de]=G[I]=G[L]=G[R]=G[fe]=G[pe]=G[me]=G[he]=G[ge]=!0,G[C]=G[w]=G[le]=G[E]=G[ue]=G[ee]=G[ne]=G[re]=G[O]=G[k]=G[j]=G[M]=G[N]=G[oe]=G[se]=!1;var K={};K[C]=K[w]=K[le]=K[ue]=K[E]=K[ee]=K[de]=K[I]=K[L]=K[R]=K[fe]=K[O]=K[k]=K[j]=K[M]=K[N]=K[oe]=K[P]=K[pe]=K[me]=K[he]=K[ge]=!0,K[ne]=K[re]=K[se]=!1;var It={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},Lt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Rt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},zt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Bt=parseFloat,Vt=parseInt,Ht=typeof global==`object`&&global&&global.Object===Object&&global,Ut=typeof self==`object`&&self&&self.Object===Object&&self,Wt=Ht||Ut||Function(`return this`)(),Gt=typeof e==`object`&&e&&!e.nodeType&&e,Kt=Gt&&typeof t==`object`&&t&&!t.nodeType&&t,qt=Kt&&Kt.exports===Gt,Jt=qt&&Ht.process,Yt=function(){try{return Kt&&Kt.require&&Kt.require(`util`).types||Jt&&Jt.binding&&Jt.binding(`util`)}catch{}}(),Xt=Yt&&Yt.isArrayBuffer,Zt=Yt&&Yt.isDate,Qt=Yt&&Yt.isMap,$t=Yt&&Yt.isRegExp,en=Yt&&Yt.isSet,tn=Yt&&Yt.isTypedArray;function nn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function rn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function an(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function on(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function sn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function cn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function ln(e,t){return!!(e!=null&&e.length)&&xn(e,t,0)>-1}function un(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function fn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function pn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function mn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function hn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var gn=Tn(`length`);function _n(e){return e.split(``)}function vn(e){return e.match(Pe)||[]}function yn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function bn(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function xn(e,t,n){return t===t?Zn(e,t,n):bn(e,Cn,n)}function Sn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Cn(e){return e!==e}function wn(e,t){var n=e==null?0:e.length;return n?kn(e,t)/n:v}function Tn(e){return function(t){return t==null?n:t[e]}}function En(e){return function(t){return e==null?n:e[t]}}function Dn(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function On(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function kn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function An(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function jn(e,t){return dn(t,function(t){return[t,e[t]]})}function Mn(e){return e&&e.slice(0,tr(e)+1).replace(ke,``)}function Nn(e){return function(t){return e(t)}}function Pn(e,t){return dn(t,function(t){return e[t]})}function Fn(e,t){return e.has(t)}function In(e,t){for(var n=-1,r=e.length;++n<r&&xn(t,e[n],0)>-1;);return n}function Ln(e,t){for(var n=e.length;n--&&xn(t,e[n],0)>-1;);return n}function Rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var zn=En(It),Bn=En(Lt);function Vn(e){return`\\`+zt[e]}function Hn(e,t){return e==null?n:e[t]}function Un(e){return Mt.test(e)}function Wn(e){return Nt.test(e)}function Gn(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function qn(e,t){return function(n){return e(t(n))}}function Jn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function Yn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function Xn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Zn(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function Qn(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function $n(e){return Un(e)?rr(e):gn(e)}function er(e){return Un(e)?ir(e):_n(e)}function tr(e){for(var t=e.length;t--&&Ae.test(e.charAt(t)););return t}var nr=En(Rt);function rr(e){for(var t=At.lastIndex=0;At.test(e);)++t;return t}function ir(e){return e.match(At)||[]}function ar(e){return e.match(jt)||[]}var or=(function e(t){t=t==null?Wt:or.defaults(Wt.Object(),t,or.pick(Wt,Pt));var Ae=t.Array,Pe=t.Date,Ke=t.Error,qe=t.Function,Je=t.Math,U=t.Object,Ye=t.RegExp,Xe=t.String,Ze=t.TypeError,Qe=Ae.prototype,$e=qe.prototype,et=U.prototype,tt=t[`__core-js_shared__`],nt=$e.toString,W=et.hasOwnProperty,rt=0,it=function(){var e=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),at=et.toString,ot=nt.call(U),st=Wt._,ct=Ye(`^`+nt.call(W).replace(Oe,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),lt=qt?t.Buffer:n,ut=t.Symbol,dt=t.Uint8Array,ft=lt?lt.allocUnsafe:n,pt=qn(U.getPrototypeOf,U),mt=U.create,ht=et.propertyIsEnumerable,gt=Qe.splice,_t=ut?ut.isConcatSpreadable:n,vt=ut?ut.iterator:n,yt=ut?ut.toStringTag:n,bt=function(){try{var e=Mo(U,`defineProperty`);return e({},``,{}),e}catch{}}(),xt=t.clearTimeout!==Wt.clearTimeout&&t.clearTimeout,St=Pe&&Pe.now!==Wt.Date.now&&Pe.now,Ct=t.setTimeout!==Wt.setTimeout&&t.setTimeout,wt=Je.ceil,Tt=Je.floor,Et=U.getOwnPropertySymbols,Dt=lt?lt.isBuffer:n,At=t.isFinite,jt=Qe.join,Mt=qn(U.keys,U),Nt=Je.max,It=Je.min,Lt=Pe.now,Rt=t.parseInt,zt=Je.random,Ht=Qe.reverse,Ut=Mo(t,`DataView`),Gt=Mo(t,`Map`),Kt=Mo(t,`Promise`),Jt=Mo(t,`Set`),Yt=Mo(t,`WeakMap`),gn=Mo(U,`create`),_n=Yt&&new Yt,En={},Zn=_s(Ut),rr=_s(Gt),ir=_s(Kt),sr=_s(Jt),cr=_s(Yt),lr=ut?ut.prototype:n,ur=lr?lr.valueOf:n,dr=lr?lr.toString:n;function q(e){if(lu(e)&&!Z(e)&&!(e instanceof J)){if(e instanceof mr)return e;if(W.call(e,`__wrapped__`))return ys(e)}return new mr(e)}var fr=function(){function e(){}return function(t){if(!cu(t))return{};if(mt)return mt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function pr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}q.templateSettings={escape:Ce,evaluate:we,interpolate:B,variable:``,imports:{_:q}},q.prototype=pr.prototype,q.prototype.constructor=q,mr.prototype=fr(pr.prototype),mr.prototype.constructor=mr;function J(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function hr(){var e=new J(this.__wrapped__);return e.__actions__=Ua(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ua(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ua(this.__views__),e}function gr(){if(this.__filtered__){var e=new J(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function _r(){var e=this.__wrapped__.value(),t=this.__dir__,n=Z(e),r=t<0,i=n?e.length:0,a=Lo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=It(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return wa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}J.prototype=fr(pr.prototype),J.prototype.constructor=J;function vr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yr(){this.__data__=gn?gn(null):{},this.size=0}function br(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function xr(e){var t=this.__data__;if(gn){var r=t[e];return r===i?n:r}return W.call(t,e)?t[e]:n}function Sr(e){var t=this.__data__;return gn?t[e]!==n:W.call(t,e)}function Cr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=gn&&t===n?i:t,this}vr.prototype.clear=yr,vr.prototype.delete=br,vr.prototype.get=xr,vr.prototype.has=Sr,vr.prototype.set=Cr;function wr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Tr(){this.__data__=[],this.size=0}function Er(e){var t=this.__data__,n=Zr(t,e);return n<0?!1:(n==t.length-1?t.pop():gt.call(t,n,1),--this.size,!0)}function Dr(e){var t=this.__data__,r=Zr(t,e);return r<0?n:t[r][1]}function Or(e){return Zr(this.__data__,e)>-1}function kr(e,t){var n=this.__data__,r=Zr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}wr.prototype.clear=Tr,wr.prototype.delete=Er,wr.prototype.get=Dr,wr.prototype.has=Or,wr.prototype.set=kr;function Ar(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jr(){this.size=0,this.__data__={hash:new vr,map:new(Gt||wr),string:new vr}}function Mr(e){var t=Ao(this,e).delete(e);return this.size-=+!!t,t}function Nr(e){return Ao(this,e).get(e)}function Pr(e){return Ao(this,e).has(e)}function Fr(e,t){var n=Ao(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ar.prototype.clear=jr,Ar.prototype.delete=Mr,Ar.prototype.get=Nr,Ar.prototype.has=Pr,Ar.prototype.set=Fr;function Ir(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ar;++t<n;)this.add(e[t])}function Lr(e){return this.__data__.set(e,i),this}function Rr(e){return this.__data__.has(e)}Ir.prototype.add=Ir.prototype.push=Lr,Ir.prototype.has=Rr;function zr(e){var t=this.__data__=new wr(e);this.size=t.size}function Br(){this.__data__=new wr,this.size=0}function Vr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hr(e){return this.__data__.get(e)}function Ur(e){return this.__data__.has(e)}function Wr(e,t){var n=this.__data__;if(n instanceof wr){var r=n.__data__;if(!Gt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ar(r)}return n.set(e,t),this.size=n.size,this}zr.prototype.clear=Br,zr.prototype.delete=Vr,zr.prototype.get=Hr,zr.prototype.has=Ur,zr.prototype.set=Wr;function Gr(e,t){var n=Z(e),r=!n&&Kl(e),i=!n&&!r&&Zl(e),a=!n&&!r&&!i&&wu(e),o=n||r||i||a,s=o?An(e.length,Xe):[],c=s.length;for(var l in e)(t||W.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Go(l,c)))&&s.push(l);return s}function Kr(e){var t=e.length;return t?e[ia(0,t-1)]:n}function qr(e,t){return ms(Ua(e),ri(t,0,e.length))}function Jr(e){return ms(Ua(e))}function Yr(e,t,r){(r!==n&&!Ul(e[t],r)||r===n&&!(t in e))&&ti(e,t,r)}function Xr(e,t,r){var i=e[t];(!(W.call(e,t)&&Ul(i,r))||r===n&&!(t in e))&&ti(e,t,r)}function Zr(e,t){for(var n=e.length;n--;)if(Ul(e[n][0],t))return n;return-1}function Qr(e,t,n,r){return li(e,function(e,i,a){t(r,e,n(e),a)}),r}function $r(e,t){return e&&Wa(t,id(t),e)}function ei(e,t){return e&&Wa(t,ad(t),e)}function ti(e,t,n){t==`__proto__`&&bt?bt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ni(e,t){for(var r=-1,i=t.length,a=Ae(i),o=e==null;++r<i;)a[r]=o?n:Qu(e,t[r]);return a}function ri(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ii(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!cu(e))return e;var d=Z(e);if(d){if(s=Bo(e),!c)return Ua(e,s)}else{var f=Io(e),p=f==re||f==D;if(Zl(e))return Na(e,c);if(f==j||f==C||p&&!a){if(s=l||p?{}:Vo(e),!c)return l?Ka(e,ei(s,e)):Ga(e,$r(s,e))}else{if(!K[f])return a?e:{};s=Ho(e,f,c)}}o||=new zr;var m=o.get(e);if(m)return m;o.set(e,s),xu(e)?e.forEach(function(n){s.add(ii(n,t,r,n,e,o))}):uu(e)&&e.forEach(function(n,i){s.set(i,ii(n,t,r,i,e,o))});var h=d?n:(u?l?Eo:To:l?ad:id)(e);return an(h||e,function(n,i){h&&(i=n,n=e[i]),Xr(s,i,ii(n,t,r,i,e,o))}),s}function ai(e){var t=id(e);return function(n){return oi(n,e,t)}}function oi(e,t,r){var i=r.length;if(e==null)return!i;for(e=U(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function si(e,t,i){if(typeof e!=`function`)throw new Ze(r);return us(function(){e.apply(n,i)},t)}function ci(e,t,n,r){var i=-1,a=ln,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=dn(t,Nn(n))),r?(a=un,o=!1):t.length>=200&&(a=Fn,o=!1,t=new Ir(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var li=Ya(vi),ui=Ya(yi,!0);function di(e,t){var n=!0;return li(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function fi(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Cu(s):r(s,c)))var c=s,l=o}return l}function pi(e,t,r,i){var a=e.length;for(r=Q(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Q(i),i<0&&(i+=a),i=r>i?0:Mu(i);r<i;)e[r++]=t;return e}function mi(e,t){var n=[];return li(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function hi(e,t,n,r,i){var a=-1,o=e.length;for(n||=Wo,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?hi(s,t-1,n,r,i):fn(i,s):r||(i[i.length]=s)}return i}var gi=Xa(),_i=Xa(!0);function vi(e,t){return e&&gi(e,t,id)}function yi(e,t){return e&&_i(e,t,id)}function bi(e,t){return cn(t,function(t){return au(e[t])})}function xi(e,t){t=ka(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[gs(t[r++])];return r&&r==i?e:n}function Si(e,t,n){var r=t(e);return Z(e)?r:fn(r,n(e))}function Ci(e){return e==null?e===n?F:A:yt&&yt in U(e)?No(e):is(e)}function wi(e,t){return e>t}function Ti(e,t){return e!=null&&W.call(e,t)}function Ei(e,t){return e!=null&&t in U(e)}function Di(e,t,n){return e>=It(t,n)&&e<Nt(t,n)}function Oi(e,t,r){for(var i=r?un:ln,a=e[0].length,o=e.length,s=o,c=Ae(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=dn(d,Nn(t))),l=It(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Ir(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Fn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Fn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function ki(e,t,n,r){return vi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Ai(e,t,r){t=ka(t,e),e=os(e,t);var i=e==null?e:e[gs(Ws(t))];return i==null?n:nn(i,e,r)}function ji(e){return lu(e)&&Ci(e)==C}function Mi(e){return lu(e)&&Ci(e)==le}function Ni(e){return lu(e)&&Ci(e)==ee}function Pi(e,t,n,r,i){return e===t?!0:e==null||t==null||!lu(e)&&!lu(t)?e!==e&&t!==t:Fi(e,t,n,r,Pi,i)}function Fi(e,t,n,r,i,a){var o=Z(e),s=Z(t),c=o?w:Io(e),l=s?w:Io(t);c=c==C?j:c,l=l==C?j:l;var u=c==j,d=l==j,f=c==l;if(f&&Zl(e)){if(!Zl(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new zr,o||wu(e)?xo(e,t,n,r,i,a):So(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&W.call(e,`__wrapped__`),m=d&&W.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new zr,i(h,g,n,r,a)}}return f?(a||=new zr,Co(e,t,n,r,i,a)):!1}function Ii(e){return lu(e)&&Io(e)==O}function Li(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=U(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new zr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Pi(d,u,3,i,f):p))return!1}}return!0}function Ri(e){return!cu(e)||Xo(e)?!1:(au(e)?ct:Ve).test(_s(e))}function zi(e){return lu(e)&&Ci(e)==M}function Bi(e){return lu(e)&&Io(e)==N}function Vi(e){return lu(e)&&su(e.length)&&!!G[Ci(e)]}function Hi(e){return typeof e==`function`?e:e==null?pf:typeof e==`object`?Z(e)?Ji(e[0],e[1]):qi(e):Ef(e)}function Ui(e){if(!Qo(e))return Mt(e);var t=[];for(var n in U(e))W.call(e,n)&&n!=`constructor`&&t.push(n);return t}function Wi(e){if(!cu(e))return rs(e);var t=Qo(e),n=[];for(var r in e)(r!=`constructor`||!t&&W.call(e,r))&&n.push(r);return n}function Gi(e,t){return e<t}function Ki(e,t){var n=-1,r=Jl(e)?Ae(e.length):[];return li(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function qi(e){var t=jo(e);return t.length==1&&t[0][2]?es(t[0][0],t[0][1]):function(n){return n===e||Li(n,e,t)}}function Ji(e,t){return qo(e)&&$o(t)?es(gs(e),t):function(r){var i=Qu(r,e);return i===n&&i===t?ed(r,e):Pi(t,i,3)}}function Yi(e,t,r,i,a){e!==t&&gi(t,function(o,s){if(a||=new zr,cu(o))Xi(e,t,s,r,Yi,i,a);else{var c=i?i(cs(e,s),o,s+``,e,t,a):n;c===n&&(c=o),Yr(e,s,c)}},ad)}function Xi(e,t,r,i,a,o,s){var c=cs(e,r),l=cs(t,r),u=s.get(l);if(u){Yr(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=Z(l),m=!p&&Zl(l),h=!p&&!m&&wu(l);d=l,p||m||h?Z(c)?d=c:Yl(c)?d=Ua(c):m?(f=!1,d=Na(l,!0)):h?(f=!1,d=Ra(l,!0)):d=[]:vu(l)||Kl(l)?(d=c,Kl(c)?d=Pu(c):(!cu(c)||au(c))&&(d=Vo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),Yr(e,r,d)}function Zi(e,t){var r=e.length;if(r)return t+=t<0?r:0,Go(t,r)?e[t]:n}function Qi(e,t,n){t=t.length?dn(t,function(e){return Z(e)?function(t){return xi(t,e.length===1?e[0]:e)}:e}):[pf];var r=-1;return t=dn(t,Nn(X())),On(Ki(e,function(e,n,i){return{criteria:dn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Ba(e,t,n)})}function $i(e,t){return ea(e,t,function(t,n){return ed(e,n)})}function ea(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=xi(e,o);n(s,o)&&la(a,ka(o,e),s)}return a}function ta(e){return function(t){return xi(t,e)}}function na(e,t,n,r){var i=r?Sn:xn,a=-1,o=t.length,s=e;for(e===t&&(t=Ua(t)),n&&(s=dn(e,Nn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&gt.call(s,c,1),gt.call(e,c,1);return e}function ra(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;Go(i)?gt.call(e,i,1):xa(e,i)}}return e}function ia(e,t){return e+Tt(zt()*(t-e+1))}function aa(e,t,n,r){for(var i=-1,a=Nt(wt((t-e)/(n||1)),0),o=Ae(a);a--;)o[r?a:++i]=e,e+=n;return o}function oa(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=Tt(t/2),t&&(e+=e);while(t);return n}function Y(e,t){return ds(as(e,t,pf),e+``)}function sa(e){return Kr(Cd(e))}function ca(e,t){var n=Cd(e);return ms(n,ri(t,0,n.length))}function la(e,t,r,i){if(!cu(e))return e;t=ka(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=gs(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=cu(d)?d:Go(t[a+1])?[]:{})}Xr(c,l,u),c=c[l]}return e}var ua=_n?function(e,t){return _n.set(e,t),e}:pf,da=bt?function(e,t){return bt(e,`toString`,{configurable:!0,enumerable:!1,value:lf(t),writable:!0})}:pf;function fa(e){return ms(Cd(e))}function pa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Ae(i);++r<i;)a[r]=e[r+t];return a}function ma(e,t){var n;return li(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function ha(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Cu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return ga(e,t,pf,n)}function ga(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Cu(t),u=t===n;a<o;){var d=Tt((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Cu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return It(o,b)}function _a(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Ul(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function va(e){return typeof e==`number`?e:Cu(e)?v:+e}function ya(e){if(typeof e==`string`)return e;if(Z(e))return dn(e,ya)+``;if(Cu(e))return dr?dr.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ba(e,t,n){var r=-1,i=ln,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=un;else if(a>=200){var l=t?null:ho(e);if(l)return Yn(l);o=!1,i=Fn,c=new Ir}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function xa(e,t){t=ka(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=gs(t[n]);if(i===`__proto__`&&!W.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=os(e,t);return a==null||delete a[gs(Ws(t))]}function Sa(e,t,n,r){return la(e,t,n(xi(e,t)),r)}function Ca(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?pa(e,r?0:a,r?a+1:i):pa(e,r?a+1:0,r?i:a)}function wa(e,t){var n=e;return n instanceof J&&(n=n.value()),pn(t,function(e,t){return t.func.apply(t.thisArg,fn([e],t.args))},n)}function Ta(e,t,n){var r=e.length;if(r<2)return r?ba(e[0]):[];for(var i=-1,a=Ae(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=ci(a[i]||o,e[s],t,n));return ba(hi(a,1),t,n)}function Ea(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Da(e){return Yl(e)?e:[]}function Oa(e){return typeof e==`function`?e:pf}function ka(e,t){return Z(e)?e:qo(e,t)?[e]:hs($(e))}var Aa=Y;function ja(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:pa(e,t,r)}var Ma=xt||function(e){return Wt.clearTimeout(e)};function Na(e,t){if(t)return e.slice();var n=e.length,r=ft?ft(n):new e.constructor(n);return e.copy(r),r}function Pa(e){var t=new e.constructor(e.byteLength);return new dt(t).set(new dt(e)),t}function Fa(e,t){var n=t?Pa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ia(e){var t=new e.constructor(e.source,Re.exec(e));return t.lastIndex=e.lastIndex,t}function La(e){return ur?U(ur.call(e)):{}}function Ra(e,t){var n=t?Pa(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function za(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Cu(e),s=t!==n,c=t===null,l=t===t,u=Cu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Ba(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=za(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Va(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=Nt(a-o,0),u=Ae(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function Ha(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=Nt(a-s,0),d=Ae(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function Ua(e,t){var n=-1,r=e.length;for(t||=Ae(r);++n<r;)t[n]=e[n];return t}function Wa(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?ti(r,c,l):Xr(r,c,l)}return r}function Ga(e,t){return Wa(e,Po(e),t)}function Ka(e,t){return Wa(e,Fo(e),t)}function qa(e,t){return function(n,r){var i=Z(n)?rn:Qr,a=t?t():{};return i(n,e,X(r,2),a)}}function Ja(e){return Y(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&Ko(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=U(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function Ya(e,t){return function(n,r){if(n==null)return n;if(!Jl(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=U(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function Xa(e){return function(t,n,r){for(var i=-1,a=U(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function Za(e,t,n){var r=t&o,i=eo(e);function a(){return(this&&this!==Wt&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function Qa(e){return function(t){t=$(t);var r=Un(t)?er(t):n,i=r?r[0]:t.charAt(0),a=r?ja(r,1).join(``):t.slice(1);return i[e]()+a}}function $a(e){return function(t){return pn(rf(Ad(t).replace(Ot,``)),e,``)}}function eo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=fr(e.prototype),r=e.apply(n,t);return cu(r)?r:n}}function to(e,t,r){var i=eo(e);function a(){for(var o=arguments.length,s=Ae(o),c=o,l=ko(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:Jn(s,l);return o-=u.length,o<r?po(e,t,io,a.placeholder,n,s,u,n,n,r-o):nn(this&&this!==Wt&&this instanceof a?i:e,this,s)}return a}function no(e){return function(t,r,i){var a=U(t);if(!Jl(t)){var o=X(r,3);t=id(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function ro(e){return wo(function(t){var i=t.length,a=i,o=mr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new Ze(r);if(o&&!l&&Oo(s)==`wrapper`)var l=new mr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=Oo(s),m=d==`wrapper`?Do(s):n;l=m&&Yo(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[Oo(m[0])].apply(l,m[3]):s.length==1&&Yo(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&Z(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function io(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:eo(e);function C(){for(var n=arguments.length,o=Ae(n),s=n;s--;)o[s]=arguments[s];if(b)var c=ko(C),l=Rn(o,c);if(i&&(o=Va(o,i,a,b)),u&&(o=Ha(o,u,d,b)),n-=l,b&&n<g){var f=Jn(o,c);return po(e,t,io,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=ss(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==Wt&&this instanceof C&&(w=S||eo(w)),w.apply(m,o)}return C}function ao(e,t){return function(n,r){return ki(n,e,t(r),{})}}function oo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=ya(r),i=ya(i)):(r=va(r),i=va(i)),a=e(r,i)}return a}}function so(e){return wo(function(t){return t=dn(t,Nn(X())),Y(function(n){var r=this;return e(t,function(e){return nn(e,r,n)})})})}function co(e,t){t=t===n?` `:ya(t);var r=t.length;if(r<2)return r?oa(t,e):t;var i=oa(t,wt(e/$n(t)));return Un(t)?ja(er(i),0,e).join(``):i.slice(0,e)}function lo(e,t,n,r){var i=t&o,a=eo(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=Ae(l+o),d=this&&this!==Wt&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return nn(d,i?n:this,u)}return s}function uo(e){return function(t,r,i){return i&&typeof i!=`number`&&Ko(t,r,i)&&(r=i=n),t=ju(t),r===n?(r=t,t=0):r=ju(r),i=i===n?t<r?1:-1:ju(i),aa(t,r,i,e)}}function fo(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Nu(t),n=Nu(n)),e(t,n)}}function po(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return Yo(e)&&ls(S,x),S.placeholder=i,fs(S,e,t)}function mo(e){var t=Je[e];return function(e,n){if(e=Nu(e),n=n==null?0:It(Q(n),292),n&&At(e)){var r=($(e)+`e`).split(`e`);return r=($(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var ho=Jt&&1/Yn(new Jt([,-0]))[1]==h?function(e){return new Jt(e)}:xf;function go(e){return function(t){var n=Io(t);return n==O?Kn(t):n==N?Xn(t):jn(t,e(t))}}function _o(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new Ze(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:Nt(Q(m),0),h=h===n?h:Q(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Do(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&ns(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:Nt(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=Za(e,t,i);else S=t==c||t==l?to(e,t,h):(t==u||t==(o|u))&&!f.length?lo(e,t,i,a):io.apply(n,x);return fs((b?ua:ls)(S,x),e,t)}function vo(e,t,r,i){return e===n||Ul(e,et[r])&&!W.call(i,r)?t:e}function yo(e,t,r,i,a,o){return cu(e)&&cu(t)&&(o.set(t,e),Yi(e,t,n,yo,o),o.delete(t)),e}function bo(e){return vu(e)?n:e}function xo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Ir:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!hn(t,function(e,t){if(!Fn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function So(e,t,n,r,i,a,o){switch(n){case ue:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case le:return!(e.byteLength!=t.byteLength||!a(new dt(e),new dt(t)));case E:case ee:case k:return Ul(+e,+t);case ne:return e.name==t.name&&e.message==t.message;case M:case oe:return e==t+``;case O:var s=Kn;case N:var c=r&1;if(s||=Yn,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=xo(s(e),s(t),r,i,a,o);return o.delete(e),u;case P:if(ur)return ur.call(e)==ur.call(t)}return!1}function Co(e,t,r,i,a,o){var s=r&1,c=To(e),l=c.length;if(l!=To(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:W.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function wo(e){return ds(as(e,n,Ns),e+``)}function To(e){return Si(e,id,Po)}function Eo(e){return Si(e,ad,Fo)}var Do=_n?function(e){return _n.get(e)}:xf;function Oo(e){for(var t=e.name+``,n=En[t],r=W.call(En,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function ko(e){return(W.call(q,`placeholder`)?q:e).placeholder}function X(){var e=q.iteratee||mf;return e=e===mf?Hi:e,arguments.length?e(arguments[0],arguments[1]):e}function Ao(e,t){var n=e.__data__;return Jo(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function jo(e){for(var t=id(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,$o(i)]}return t}function Mo(e,t){var r=Hn(e,t);return Ri(r)?r:n}function No(e){var t=W.call(e,yt),r=e[yt];try{e[yt]=n;var i=!0}catch{}var a=at.call(e);return i&&(t?e[yt]=r:delete e[yt]),a}var Po=Et?function(e){return e==null?[]:(e=U(e),cn(Et(e),function(t){return ht.call(e,t)}))}:Af,Fo=Et?function(e){for(var t=[];e;)fn(t,Po(e)),e=pt(e);return t}:Af,Io=Ci;(Ut&&Io(new Ut(new ArrayBuffer(1)))!=ue||Gt&&Io(new Gt)!=O||Kt&&Io(Kt.resolve())!=ie||Jt&&Io(new Jt)!=N||Yt&&Io(new Yt)!=se)&&(Io=function(e){var t=Ci(e),r=t==j?e.constructor:n,i=r?_s(r):``;if(i)switch(i){case Zn:return ue;case rr:return O;case ir:return ie;case sr:return N;case cr:return se}return t});function Lo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=It(t,e+o);break;case`takeRight`:e=Nt(e,t-o)}}return{start:e,end:t}}function Ro(e){var t=e.match(Me);return t?t[1].split(Ne):[]}function zo(e,t,n){t=ka(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=gs(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&su(i)&&Go(o,i)&&(Z(e)||Kl(e)))}function Bo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&W.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Vo(e){return typeof e.constructor==`function`&&!Qo(e)?fr(pt(e)):{}}function Ho(e,t,n){var r=e.constructor;switch(t){case le:return Pa(e);case E:case ee:return new r(+e);case ue:return Fa(e,n);case de:case I:case L:case R:case fe:case pe:case me:case he:case ge:return Ra(e,n);case O:return new r;case k:case oe:return new r(e);case M:return Ia(e);case N:return new r;case P:return La(e)}}function Uo(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(je,`{
3
+ /* [wrapped with `+t+`] */
4
+ `)}function Wo(e){return Z(e)||Kl(e)||!!(_t&&e&&e[_t])}function Go(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Ue.test(e))&&e>-1&&e%1==0&&e<t}function Ko(e,t,n){if(!cu(n))return!1;var r=typeof t;return(r==`number`?Jl(n)&&Go(t,n.length):r==`string`&&t in n)?Ul(n[t],e):!1}function qo(e,t){if(Z(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Cu(e)?!0:Ee.test(e)||!Te.test(e)||t!=null&&e in U(t)}function Jo(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function Yo(e){var t=Oo(e),n=q[t];if(typeof n!=`function`||!(t in J.prototype))return!1;if(e===n)return!0;var r=Do(n);return!!r&&e===r[0]}function Xo(e){return!!it&&it in e}var Zo=tt?au:jf;function Qo(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||et)}function $o(e){return e===e&&!cu(e)}function es(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in U(r))}}function ts(e){var t=Tl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function ns(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Va(m,d,t[4]):d,e[4]=m?Jn(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?Ha(m,d,t[6]):d,e[6]=m?Jn(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:It(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function rs(e){var t=[];if(e!=null)for(var n in U(e))t.push(n);return t}function is(e){return at.call(e)}function as(e,t,r){return t=Nt(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=Nt(n.length-t,0),o=Ae(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=Ae(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),nn(e,this,s)}}function os(e,t){return t.length<2?e:xi(e,pa(t,0,-1))}function ss(e,t){for(var r=e.length,i=It(t.length,r),a=Ua(e);i--;){var o=t[i];e[i]=Go(o,r)?a[o]:n}return e}function cs(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var ls=ps(ua),us=Ct||function(e,t){return Wt.setTimeout(e,t)},ds=ps(da);function fs(e,t,n){var r=t+``;return ds(e,Uo(r,vs(Ro(r),n)))}function ps(e){var t=0,r=0;return function(){var i=Lt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function ms(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ia(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var hs=ts(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(De,function(e,n,r,i){t.push(r?i.replace(Ie,`$1`):n||e)}),t});function gs(e){if(typeof e==`string`||Cu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function _s(e){if(e!=null){try{return nt.call(e)}catch{}try{return e+``}catch{}}return``}function vs(e,t){return an(S,function(n){var r=`_.`+n[0];t&n[1]&&!ln(e,r)&&e.push(r)}),e.sort()}function ys(e){if(e instanceof J)return e.clone();var t=new mr(e.__wrapped__,e.__chain__);return t.__actions__=Ua(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function bs(e,t,r){t=(r?Ko(e,t,r):t===n)?1:Nt(Q(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=Ae(wt(i/t));a<i;)s[o++]=pa(e,a,a+=t);return s}function xs(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ss(){var e=arguments.length;if(!e)return[];for(var t=Ae(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return fn(Z(n)?Ua(n):[n],hi(t,1))}var Cs=Y(function(e,t){return Yl(e)?ci(e,hi(t,1,Yl,!0)):[]}),ws=Y(function(e,t){var r=Ws(t);return Yl(r)&&(r=n),Yl(e)?ci(e,hi(t,1,Yl,!0),X(r,2)):[]}),Ts=Y(function(e,t){var r=Ws(t);return Yl(r)&&(r=n),Yl(e)?ci(e,hi(t,1,Yl,!0),n,r):[]});function Es(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Q(t),pa(e,t<0?0:t,i)):[]}function Ds(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Q(t),t=i-t,pa(e,0,t<0?0:t)):[]}function Os(e,t){return e&&e.length?Ca(e,X(t,3),!0,!0):[]}function ks(e,t){return e&&e.length?Ca(e,X(t,3),!0):[]}function As(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&Ko(e,t,n)&&(n=0,r=i),pi(e,t,n,r)):[]}function js(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Q(n);return i<0&&(i=Nt(r+i,0)),bn(e,X(t,3),i)}function Ms(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Q(r),a=r<0?Nt(i+a,0):It(a,i-1)),bn(e,X(t,3),a,!0)}function Ns(e){return e!=null&&e.length?hi(e,1):[]}function Ps(e){return e!=null&&e.length?hi(e,h):[]}function Fs(e,t){return e!=null&&e.length?(t=t===n?1:Q(t),hi(e,t)):[]}function Is(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];ti(r,i[0],i[1])}return r}function Ls(e){return e&&e.length?e[0]:n}function Rs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Q(n);return i<0&&(i=Nt(r+i,0)),xn(e,t,i)}function zs(e){return e!=null&&e.length?pa(e,0,-1):[]}var Bs=Y(function(e){var t=dn(e,Da);return t.length&&t[0]===e[0]?Oi(t):[]}),Vs=Y(function(e){var t=Ws(e),r=dn(e,Da);return t===Ws(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Oi(r,X(t,2)):[]}),Hs=Y(function(e){var t=Ws(e),r=dn(e,Da);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Oi(r,n,t):[]});function Us(e,t){return e==null?``:jt.call(e,t)}function Ws(e){var t=e==null?0:e.length;return t?e[t-1]:n}function Gs(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Q(r),a=a<0?Nt(i+a,0):It(a,i-1)),t===t?Qn(e,t,a):bn(e,Cn,a,!0)}function Ks(e,t){return e&&e.length?Zi(e,Q(t)):n}var qs=Y(Js);function Js(e,t){return e&&e.length&&t&&t.length?na(e,t):e}function Ys(e,t,n){return e&&e.length&&t&&t.length?na(e,t,X(n,2)):e}function Xs(e,t,r){return e&&e.length&&t&&t.length?na(e,t,n,r):e}var Zs=wo(function(e,t){var n=e==null?0:e.length,r=ni(e,t);return ra(e,dn(t,function(e){return Go(e,n)?+e:e}).sort(za)),r});function Qs(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=X(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return ra(e,i),n}function $s(e){return e==null?e:Ht.call(e)}function ec(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&Ko(e,t,r)?(t=0,r=i):(t=t==null?0:Q(t),r=r===n?i:Q(r)),pa(e,t,r)):[]}function tc(e,t){return ha(e,t)}function nc(e,t,n){return ga(e,t,X(n,2))}function rc(e,t){var n=e==null?0:e.length;if(n){var r=ha(e,t);if(r<n&&Ul(e[r],t))return r}return-1}function ic(e,t){return ha(e,t,!0)}function ac(e,t,n){return ga(e,t,X(n,2),!0)}function oc(e,t){if(e!=null&&e.length){var n=ha(e,t,!0)-1;if(Ul(e[n],t))return n}return-1}function sc(e){return e&&e.length?_a(e):[]}function cc(e,t){return e&&e.length?_a(e,X(t,2)):[]}function lc(e){var t=e==null?0:e.length;return t?pa(e,1,t):[]}function uc(e,t,r){return e&&e.length?(t=r||t===n?1:Q(t),pa(e,0,t<0?0:t)):[]}function dc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Q(t),t=i-t,pa(e,t<0?0:t,i)):[]}function fc(e,t){return e&&e.length?Ca(e,X(t,3),!1,!0):[]}function pc(e,t){return e&&e.length?Ca(e,X(t,3)):[]}var mc=Y(function(e){return ba(hi(e,1,Yl,!0))}),hc=Y(function(e){var t=Ws(e);return Yl(t)&&(t=n),ba(hi(e,1,Yl,!0),X(t,2))}),gc=Y(function(e){var t=Ws(e);return t=typeof t==`function`?t:n,ba(hi(e,1,Yl,!0),n,t)});function _c(e){return e&&e.length?ba(e):[]}function vc(e,t){return e&&e.length?ba(e,X(t,2)):[]}function yc(e,t){return t=typeof t==`function`?t:n,e&&e.length?ba(e,n,t):[]}function bc(e){if(!(e&&e.length))return[];var t=0;return e=cn(e,function(e){if(Yl(e))return t=Nt(e.length,t),!0}),An(t,function(t){return dn(e,Tn(t))})}function xc(e,t){if(!(e&&e.length))return[];var r=bc(e);return t==null?r:dn(r,function(e){return nn(t,n,e)})}var Sc=Y(function(e,t){return Yl(e)?ci(e,t):[]}),Cc=Y(function(e){return Ta(cn(e,Yl))}),wc=Y(function(e){var t=Ws(e);return Yl(t)&&(t=n),Ta(cn(e,Yl),X(t,2))}),Tc=Y(function(e){var t=Ws(e);return t=typeof t==`function`?t:n,Ta(cn(e,Yl),n,t)}),Ec=Y(bc);function Dc(e,t){return Ea(e||[],t||[],Xr)}function Oc(e,t){return Ea(e||[],t||[],la)}var kc=Y(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,xc(e,r)});function Ac(e){var t=q(e);return t.__chain__=!0,t}function jc(e,t){return t(e),e}function Mc(e,t){return t(e)}var Nc=wo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ni(t,e)};return t>1||this.__actions__.length||!(i instanceof J)||!Go(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Mc,args:[a],thisArg:n}),new mr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Pc(){return Ac(this)}function Fc(){return new mr(this.value(),this.__chain__)}function Ic(){this.__values__===n&&(this.__values__=Au(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function Lc(){return this}function Rc(e){for(var t,r=this;r instanceof pr;){var i=ys(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function zc(){var e=this.__wrapped__;if(e instanceof J){var t=e;return this.__actions__.length&&(t=new J(this)),t=t.reverse(),t.__actions__.push({func:Mc,args:[$s],thisArg:n}),new mr(t,this.__chain__)}return this.thru($s)}function Bc(){return wa(this.__wrapped__,this.__actions__)}var Vc=qa(function(e,t,n){W.call(e,n)?++e[n]:ti(e,n,1)});function Hc(e,t,r){var i=Z(e)?sn:di;return r&&Ko(e,t,r)&&(t=n),i(e,X(t,3))}function Uc(e,t){return(Z(e)?cn:mi)(e,X(t,3))}var Wc=no(js),Gc=no(Ms);function Kc(e,t){return hi(tl(e,t),1)}function qc(e,t){return hi(tl(e,t),h)}function Jc(e,t,r){return r=r===n?1:Q(r),hi(tl(e,t),r)}function Yc(e,t){return(Z(e)?an:li)(e,X(t,3))}function Xc(e,t){return(Z(e)?on:ui)(e,X(t,3))}var Zc=qa(function(e,t,n){W.call(e,n)?e[n].push(t):ti(e,n,[t])});function Qc(e,t,n,r){e=Jl(e)?e:Cd(e),n=n&&!r?Q(n):0;var i=e.length;return n<0&&(n=Nt(i+n,0)),Su(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&xn(e,t,n)>-1}var $c=Y(function(e,t,n){var r=-1,i=typeof t==`function`,a=Jl(e)?Ae(e.length):[];return li(e,function(e){a[++r]=i?nn(t,e,n):Ai(e,t,n)}),a}),el=qa(function(e,t,n){ti(e,n,t)});function tl(e,t){return(Z(e)?dn:Ki)(e,X(t,3))}function nl(e,t,r,i){return e==null?[]:(Z(t)||(t=t==null?[]:[t]),r=i?n:r,Z(r)||(r=r==null?[]:[r]),Qi(e,t,r))}var rl=qa(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function il(e,t,n){var r=Z(e)?pn:Dn,i=arguments.length<3;return r(e,X(t,4),n,i,li)}function al(e,t,n){var r=Z(e)?mn:Dn,i=arguments.length<3;return r(e,X(t,4),n,i,ui)}function ol(e,t){return(Z(e)?cn:mi)(e,El(X(t,3)))}function sl(e){return(Z(e)?Kr:sa)(e)}function cl(e,t,r){return t=(r?Ko(e,t,r):t===n)?1:Q(t),(Z(e)?qr:ca)(e,t)}function ll(e){return(Z(e)?Jr:fa)(e)}function ul(e){if(e==null)return 0;if(Jl(e))return Su(e)?$n(e):e.length;var t=Io(e);return t==O||t==N?e.size:Ui(e).length}function dl(e,t,r){var i=Z(e)?hn:ma;return r&&Ko(e,t,r)&&(t=n),i(e,X(t,3))}var fl=Y(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ko(e,t[0],t[1])?t=[]:n>2&&Ko(t[0],t[1],t[2])&&(t=[t[0]]),Qi(e,hi(t,1),[])}),pl=St||function(){return Wt.Date.now()};function ml(e,t){if(typeof t!=`function`)throw new Ze(r);return e=Q(e),function(){if(--e<1)return t.apply(this,arguments)}}function hl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,_o(e,f,n,n,n,n,t)}function gl(e,t){var i;if(typeof t!=`function`)throw new Ze(r);return e=Q(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var _l=Y(function(e,t,n){var r=o;if(n.length){var i=Jn(n,ko(_l));r|=u}return _o(e,r,t,n,i)}),vl=Y(function(e,t,n){var r=o|s;if(n.length){var i=Jn(n,ko(vl));r|=u}return _o(t,r,e,n,i)});function yl(e,t,r){t=r?n:t;var i=_o(e,c,n,n,n,n,n,t);return i.placeholder=yl.placeholder,i}function bl(e,t,r){t=r?n:t;var i=_o(e,l,n,n,n,n,n,t);return i.placeholder=bl.placeholder,i}function xl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new Ze(r);t=Nu(t)||0,cu(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?Nt(Nu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=us(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?It(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=pl();if(v(e))return b(e);l=us(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Ma(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(pl())}function C(){var e=pl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Ma(l),l=us(y,t),h(u)}return l===n&&(l=us(y,t)),c}return C.cancel=x,C.flush=S,C}var Sl=Y(function(e,t){return si(e,1,t)}),Cl=Y(function(e,t,n){return si(e,Nu(t)||0,n)});function wl(e){return _o(e,m)}function Tl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new Ze(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Tl.Cache||Ar),n}Tl.Cache=Ar;function El(e){if(typeof e!=`function`)throw new Ze(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Dl(e){return gl(2,e)}var Ol=Aa(function(e,t){t=t.length==1&&Z(t[0])?dn(t[0],Nn(X())):dn(hi(t,1),Nn(X()));var n=t.length;return Y(function(r){for(var i=-1,a=It(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return nn(e,this,r)})}),kl=Y(function(e,t){return _o(e,u,n,t,Jn(t,ko(kl)))}),Al=Y(function(e,t){return _o(e,d,n,t,Jn(t,ko(Al)))}),jl=wo(function(e,t){return _o(e,p,n,n,n,t)});function Ml(e,t){if(typeof e!=`function`)throw new Ze(r);return t=t===n?t:Q(t),Y(e,t)}function Nl(e,t){if(typeof e!=`function`)throw new Ze(r);return t=t==null?0:Nt(Q(t),0),Y(function(n){var r=n[t],i=ja(n,0,t);return r&&fn(i,r),nn(e,this,i)})}function Pl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new Ze(r);return cu(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),xl(e,t,{leading:i,maxWait:t,trailing:a})}function Fl(e){return hl(e,1)}function Il(e,t){return kl(Oa(t),e)}function Ll(){if(!arguments.length)return[];var e=arguments[0];return Z(e)?e:[e]}function Rl(e){return ii(e,4)}function zl(e,t){return t=typeof t==`function`?t:n,ii(e,4,t)}function Bl(e){return ii(e,5)}function Vl(e,t){return t=typeof t==`function`?t:n,ii(e,5,t)}function Hl(e,t){return t==null||oi(e,t,id(t))}function Ul(e,t){return e===t||e!==e&&t!==t}var Wl=fo(wi),Gl=fo(function(e,t){return e>=t}),Kl=ji(function(){return arguments}())?ji:function(e){return lu(e)&&W.call(e,`callee`)&&!ht.call(e,`callee`)},Z=Ae.isArray,ql=Xt?Nn(Xt):Mi;function Jl(e){return e!=null&&su(e.length)&&!au(e)}function Yl(e){return lu(e)&&Jl(e)}function Xl(e){return e===!0||e===!1||lu(e)&&Ci(e)==E}var Zl=Dt||jf,Ql=Zt?Nn(Zt):Ni;function $l(e){return lu(e)&&e.nodeType===1&&!vu(e)}function eu(e){if(e==null)return!0;if(Jl(e)&&(Z(e)||typeof e==`string`||typeof e.splice==`function`||Zl(e)||wu(e)||Kl(e)))return!e.length;var t=Io(e);if(t==O||t==N)return!e.size;if(Qo(e))return!Ui(e).length;for(var n in e)if(W.call(e,n))return!1;return!0}function tu(e,t){return Pi(e,t)}function nu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Pi(e,t,n,r):!!i}function ru(e){if(!lu(e))return!1;var t=Ci(e);return t==ne||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!vu(e)}function iu(e){return typeof e==`number`&&At(e)}function au(e){if(!cu(e))return!1;var t=Ci(e);return t==re||t==D||t==T||t==ae}function ou(e){return typeof e==`number`&&e==Q(e)}function su(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function cu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function lu(e){return typeof e==`object`&&!!e}var uu=Qt?Nn(Qt):Ii;function du(e,t){return e===t||Li(e,t,jo(t))}function fu(e,t,r){return r=typeof r==`function`?r:n,Li(e,t,jo(t),r)}function pu(e){return _u(e)&&e!=+e}function mu(e){if(Zo(e))throw new Ke(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ri(e)}function hu(e){return e===null}function gu(e){return e==null}function _u(e){return typeof e==`number`||lu(e)&&Ci(e)==k}function vu(e){if(!lu(e)||Ci(e)!=j)return!1;var t=pt(e);if(t===null)return!0;var n=W.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&nt.call(n)==ot}var yu=$t?Nn($t):zi;function bu(e){return ou(e)&&e>=-g&&e<=g}var xu=en?Nn(en):Bi;function Su(e){return typeof e==`string`||!Z(e)&&lu(e)&&Ci(e)==oe}function Cu(e){return typeof e==`symbol`||lu(e)&&Ci(e)==P}var wu=tn?Nn(tn):Vi;function Tu(e){return e===n}function Eu(e){return lu(e)&&Io(e)==se}function Du(e){return lu(e)&&Ci(e)==ce}var Ou=fo(Gi),ku=fo(function(e,t){return e<=t});function Au(e){if(!e)return[];if(Jl(e))return Su(e)?er(e):Ua(e);if(vt&&e[vt])return Gn(e[vt]());var t=Io(e);return(t==O?Kn:t==N?Yn:Cd)(e)}function ju(e){return e?(e=Nu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Q(e){var t=ju(e),n=t%1;return t===t?n?t-n:t:0}function Mu(e){return e?ri(Q(e),0,y):0}function Nu(e){if(typeof e==`number`)return e;if(Cu(e))return v;if(cu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=cu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Mn(e);var n=Be.test(e);return n||He.test(e)?Vt(e.slice(2),n?2:8):ze.test(e)?v:+e}function Pu(e){return Wa(e,ad(e))}function Fu(e){return e?ri(Q(e),-g,g):e===0?e:0}function $(e){return e==null?``:ya(e)}var Iu=Ja(function(e,t){if(Qo(t)||Jl(t)){Wa(t,id(t),e);return}for(var n in t)W.call(t,n)&&Xr(e,n,t[n])}),Lu=Ja(function(e,t){Wa(t,ad(t),e)}),Ru=Ja(function(e,t,n,r){Wa(t,ad(t),e,r)}),zu=Ja(function(e,t,n,r){Wa(t,id(t),e,r)}),Bu=wo(ni);function Vu(e,t){var n=fr(e);return t==null?n:$r(n,t)}var Hu=Y(function(e,t){e=U(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&Ko(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=ad(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||Ul(d,et[u])&&!W.call(e,u))&&(e[u]=o[u])}return e}),Uu=Y(function(e){return e.push(n,yo),nn(ld,n,e)});function Wu(e,t){return yn(e,X(t,3),vi)}function Gu(e,t){return yn(e,X(t,3),yi)}function Ku(e,t){return e==null?e:gi(e,X(t,3),ad)}function qu(e,t){return e==null?e:_i(e,X(t,3),ad)}function Ju(e,t){return e&&vi(e,X(t,3))}function Yu(e,t){return e&&yi(e,X(t,3))}function Xu(e){return e==null?[]:bi(e,id(e))}function Zu(e){return e==null?[]:bi(e,ad(e))}function Qu(e,t,r){var i=e==null?n:xi(e,t);return i===n?r:i}function $u(e,t){return e!=null&&zo(e,t,Ti)}function ed(e,t){return e!=null&&zo(e,t,Ei)}var td=ao(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=at.call(t)),e[t]=n},lf(pf)),nd=ao(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=at.call(t)),W.call(e,t)?e[t].push(n):e[t]=[n]},X),rd=Y(Ai);function id(e){return Jl(e)?Gr(e):Ui(e)}function ad(e){return Jl(e)?Gr(e,!0):Wi(e)}function od(e,t){var n={};return t=X(t,3),vi(e,function(e,r,i){ti(n,t(e,r,i),e)}),n}function sd(e,t){var n={};return t=X(t,3),vi(e,function(e,r,i){ti(n,r,t(e,r,i))}),n}var cd=Ja(function(e,t,n){Yi(e,t,n)}),ld=Ja(function(e,t,n,r){Yi(e,t,n,r)}),ud=wo(function(e,t){var n={};if(e==null)return n;var r=!1;t=dn(t,function(t){return t=ka(t,e),r||=t.length>1,t}),Wa(e,Eo(e),n),r&&(n=ii(n,7,bo));for(var i=t.length;i--;)xa(n,t[i]);return n});function dd(e,t){return pd(e,El(X(t)))}var fd=wo(function(e,t){return e==null?{}:$i(e,t)});function pd(e,t){if(e==null)return{};var n=dn(Eo(e),function(e){return[e]});return t=X(t),ea(e,n,function(e,n){return t(e,n[0])})}function md(e,t,r){t=ka(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[gs(t[i])];o===n&&(i=a,o=r),e=au(o)?o.call(e):o}return e}function hd(e,t,n){return e==null?e:la(e,t,n)}function gd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:la(e,t,r,i)}var _d=go(id),vd=go(ad);function yd(e,t,n){var r=Z(e),i=r||Zl(e)||wu(e);if(t=X(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:cu(e)&&au(a)?fr(pt(e)):{}}return(i?an:vi)(e,function(e,r,i){return t(n,e,r,i)}),n}function bd(e,t){return e==null||xa(e,t)}function xd(e,t,n){return e==null?e:Sa(e,t,Oa(n))}function Sd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Sa(e,t,Oa(r),i)}function Cd(e){return e==null?[]:Pn(e,id(e))}function wd(e){return e==null?[]:Pn(e,ad(e))}function Td(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Nu(r),r=r===r?r:0),t!==n&&(t=Nu(t),t=t===t?t:0),ri(Nu(e),t,r)}function Ed(e,t,r){return t=ju(t),r===n?(r=t,t=0):r=ju(r),e=Nu(e),Di(e,t,r)}function Dd(e,t,r){if(r&&typeof r!=`boolean`&&Ko(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ju(e),t===n?(t=e,e=0):t=ju(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=zt();return It(e+a*(t-e+Bt(`1e-`+((a+``).length-1))),t)}return ia(e,t)}var Od=$a(function(e,t,n){return t=t.toLowerCase(),e+(n?kd(t):t)});function kd(e){return nf($(e).toLowerCase())}function Ad(e){return e=$(e),e&&e.replace(We,zn).replace(kt,``)}function jd(e,t,r){e=$(e),t=ya(t);var i=e.length;r=r===n?i:ri(Q(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Md(e){return e=$(e),e&&Se.test(e)?e.replace(z,Bn):e}function Nd(e){return e=$(e),e&&V.test(e)?e.replace(Oe,`\\$&`):e}var Pd=$a(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Fd=$a(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),Id=Qa(`toLowerCase`);function Ld(e,t,n){e=$(e),t=Q(t);var r=t?$n(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return co(Tt(i),n)+e+co(wt(i),n)}function Rd(e,t,n){e=$(e),t=Q(t);var r=t?$n(e):0;return t&&r<t?e+co(t-r,n):e}function zd(e,t,n){e=$(e),t=Q(t);var r=t?$n(e):0;return t&&r<t?co(t-r,n)+e:e}function Bd(e,t,n){return n||t==null?t=0:t&&=+t,Rt($(e).replace(ke,``),t||0)}function Vd(e,t,r){return t=(r?Ko(e,t,r):t===n)?1:Q(t),oa($(e),t)}function Hd(){var e=arguments,t=$(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var Ud=$a(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function Wd(e,t,r){return r&&typeof r!=`number`&&Ko(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=$(e),e&&(typeof t==`string`||t!=null&&!yu(t))&&(t=ya(t),!t&&Un(e))?ja(er(e),0,r):e.split(t,r)):[]}var Gd=$a(function(e,t,n){return e+(n?` `:``)+nf(t)});function Kd(e,t,n){return e=$(e),n=n==null?0:ri(Q(n),0,e.length),t=ya(t),e.slice(n,n+t.length)==t}function qd(e,t,r){var i=q.templateSettings;r&&Ko(e,t,r)&&(t=n),e=$(e),t=zu({},t,i,vo);var a=zu({},t.imports,i.imports,vo),o=id(a),s=Pn(a,o);an(o,function(e){if(Fe.test(e))throw new Ke("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||H,f=`__p += '`,p=Ye((t.escape||H).source+`|`+d.source+`|`+(d===B?Le:H).source+`|`+(t.evaluate||H).source+`|$`,`g`),m=`//# sourceURL=`+(W.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Ft+`]`)+`
5
+ `;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(Ge,Vn),n&&(c=!0,f+=`' +
6
+ __e(`+n+`) +
7
+ '`),a&&(l=!0,f+=`';
8
+ `+a+`;
9
+ __p += '`),r&&(f+=`' +
10
+ ((__t = (`+r+`)) == null ? '' : __t) +
11
+ '`),u=o+t.length,t}),f+=`';
12
+ `;var h=W.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
13
+ `+f+`
14
+ }
15
+ `;else if(Fe.test(h))throw new Ke("Invalid `variable` option passed into `_.template`");f=(l?f.replace(_e,``):f).replace(ve,`$1`).replace(ye,`$1;`),f=`function(`+(h||`obj`)+`) {
16
+ `+(h?``:`obj || (obj = {});
17
+ `)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
18
+ function print() { __p += __j.call(arguments, '') }
19
+ `:`;
20
+ `)+f+`return __p
21
+ }`;var g=af(function(){return qe(o,m+`return `+f).apply(n,s)});if(g.source=f,ru(g))throw g;return g}function Jd(e){return $(e).toLowerCase()}function Yd(e){return $(e).toUpperCase()}function Xd(e,t,r){if(e=$(e),e&&(r||t===n))return Mn(e);if(!e||!(t=ya(t)))return e;var i=er(e),a=er(t);return ja(i,In(i,a),Ln(i,a)+1).join(``)}function Zd(e,t,r){if(e=$(e),e&&(r||t===n))return e.slice(0,tr(e)+1);if(!e||!(t=ya(t)))return e;var i=er(e);return ja(i,0,Ln(i,er(t))+1).join(``)}function Qd(e,t,r){if(e=$(e),e&&(r||t===n))return e.replace(ke,``);if(!e||!(t=ya(t)))return e;var i=er(e);return ja(i,In(i,er(t))).join(``)}function $d(e,t){var r=30,i=`...`;if(cu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Q(t.length):r,i=`omission`in t?ya(t.omission):i}e=$(e);var o=e.length;if(Un(e)){var s=er(e);o=s.length}if(r>=o)return e;var c=r-$n(i);if(c<1)return i;var l=s?ja(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),yu(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=Ye(a.source,$(Re.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(ya(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ef(e){return e=$(e),e&&xe.test(e)?e.replace(be,nr):e}var tf=$a(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),nf=Qa(`toUpperCase`);function rf(e,t,r){return e=$(e),t=r?n:t,t===n?Wn(e)?ar(e):vn(e):e.match(t)||[]}var af=Y(function(e,t){try{return nn(e,n,t)}catch(e){return ru(e)?e:new Ke(e)}}),of=wo(function(e,t){return an(t,function(t){t=gs(t),ti(e,t,_l(e[t],e))}),e});function sf(e){var t=e==null?0:e.length,n=X();return e=t?dn(e,function(e){if(typeof e[1]!=`function`)throw new Ze(r);return[n(e[0]),e[1]]}):[],Y(function(n){for(var r=-1;++r<t;){var i=e[r];if(nn(i[0],this,n))return nn(i[1],this,n)}})}function cf(e){return ai(ii(e,1))}function lf(e){return function(){return e}}function uf(e,t){return e==null||e!==e?t:e}var df=ro(),ff=ro(!0);function pf(e){return e}function mf(e){return Hi(typeof e==`function`?e:ii(e,1))}function hf(e){return qi(ii(e,1))}function gf(e,t){return Ji(e,ii(t,1))}var _f=Y(function(e,t){return function(n){return Ai(n,e,t)}}),vf=Y(function(e,t){return function(n){return Ai(e,n,t)}});function yf(e,t,n){var r=id(t),i=bi(t,r);n==null&&(!cu(t)||!i.length&&r.length)&&(n=t,t=e,e=this,i=bi(t,id(t)));var a=!(cu(n)&&`chain`in n)||!!n.chain,o=au(e);return an(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Ua(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,fn([this.value()],arguments))})}),e}function bf(){return Wt._===this&&(Wt._=st),this}function xf(){}function Sf(e){return e=Q(e),Y(function(t){return Zi(t,e)})}var Cf=so(dn),wf=so(sn),Tf=so(hn);function Ef(e){return qo(e)?Tn(gs(e)):ta(e)}function Df(e){return function(t){return e==null?n:xi(e,t)}}var Of=uo(),kf=uo(!0);function Af(){return[]}function jf(){return!1}function Mf(){return{}}function Nf(){return``}function Pf(){return!0}function Ff(e,t){if(e=Q(e),e<1||e>g)return[];var n=y,r=It(e,y);t=X(t),e-=y;for(var i=An(r,t);++n<e;)t(n);return i}function If(e){return Z(e)?dn(e,gs):Cu(e)?[e]:Ua(hs($(e)))}function Lf(e){var t=++rt;return $(e)+t}var Rf=oo(function(e,t){return e+t},0),zf=mo(`ceil`),Bf=oo(function(e,t){return e/t},1),Vf=mo(`floor`);function Hf(e){return e&&e.length?fi(e,pf,wi):n}function Uf(e,t){return e&&e.length?fi(e,X(t,2),wi):n}function Wf(e){return wn(e,pf)}function Gf(e,t){return wn(e,X(t,2))}function Kf(e){return e&&e.length?fi(e,pf,Gi):n}function qf(e,t){return e&&e.length?fi(e,X(t,2),Gi):n}var Jf=oo(function(e,t){return e*t},1),Yf=mo(`round`),Xf=oo(function(e,t){return e-t},0);function Zf(e){return e&&e.length?kn(e,pf):0}function Qf(e,t){return e&&e.length?kn(e,X(t,2)):0}return q.after=ml,q.ary=hl,q.assign=Iu,q.assignIn=Lu,q.assignInWith=Ru,q.assignWith=zu,q.at=Bu,q.before=gl,q.bind=_l,q.bindAll=of,q.bindKey=vl,q.castArray=Ll,q.chain=Ac,q.chunk=bs,q.compact=xs,q.concat=Ss,q.cond=sf,q.conforms=cf,q.constant=lf,q.countBy=Vc,q.create=Vu,q.curry=yl,q.curryRight=bl,q.debounce=xl,q.defaults=Hu,q.defaultsDeep=Uu,q.defer=Sl,q.delay=Cl,q.difference=Cs,q.differenceBy=ws,q.differenceWith=Ts,q.drop=Es,q.dropRight=Ds,q.dropRightWhile=Os,q.dropWhile=ks,q.fill=As,q.filter=Uc,q.flatMap=Kc,q.flatMapDeep=qc,q.flatMapDepth=Jc,q.flatten=Ns,q.flattenDeep=Ps,q.flattenDepth=Fs,q.flip=wl,q.flow=df,q.flowRight=ff,q.fromPairs=Is,q.functions=Xu,q.functionsIn=Zu,q.groupBy=Zc,q.initial=zs,q.intersection=Bs,q.intersectionBy=Vs,q.intersectionWith=Hs,q.invert=td,q.invertBy=nd,q.invokeMap=$c,q.iteratee=mf,q.keyBy=el,q.keys=id,q.keysIn=ad,q.map=tl,q.mapKeys=od,q.mapValues=sd,q.matches=hf,q.matchesProperty=gf,q.memoize=Tl,q.merge=cd,q.mergeWith=ld,q.method=_f,q.methodOf=vf,q.mixin=yf,q.negate=El,q.nthArg=Sf,q.omit=ud,q.omitBy=dd,q.once=Dl,q.orderBy=nl,q.over=Cf,q.overArgs=Ol,q.overEvery=wf,q.overSome=Tf,q.partial=kl,q.partialRight=Al,q.partition=rl,q.pick=fd,q.pickBy=pd,q.property=Ef,q.propertyOf=Df,q.pull=qs,q.pullAll=Js,q.pullAllBy=Ys,q.pullAllWith=Xs,q.pullAt=Zs,q.range=Of,q.rangeRight=kf,q.rearg=jl,q.reject=ol,q.remove=Qs,q.rest=Ml,q.reverse=$s,q.sampleSize=cl,q.set=hd,q.setWith=gd,q.shuffle=ll,q.slice=ec,q.sortBy=fl,q.sortedUniq=sc,q.sortedUniqBy=cc,q.split=Wd,q.spread=Nl,q.tail=lc,q.take=uc,q.takeRight=dc,q.takeRightWhile=fc,q.takeWhile=pc,q.tap=jc,q.throttle=Pl,q.thru=Mc,q.toArray=Au,q.toPairs=_d,q.toPairsIn=vd,q.toPath=If,q.toPlainObject=Pu,q.transform=yd,q.unary=Fl,q.union=mc,q.unionBy=hc,q.unionWith=gc,q.uniq=_c,q.uniqBy=vc,q.uniqWith=yc,q.unset=bd,q.unzip=bc,q.unzipWith=xc,q.update=xd,q.updateWith=Sd,q.values=Cd,q.valuesIn=wd,q.without=Sc,q.words=rf,q.wrap=Il,q.xor=Cc,q.xorBy=wc,q.xorWith=Tc,q.zip=Ec,q.zipObject=Dc,q.zipObjectDeep=Oc,q.zipWith=kc,q.entries=_d,q.entriesIn=vd,q.extend=Lu,q.extendWith=Ru,yf(q,q),q.add=Rf,q.attempt=af,q.camelCase=Od,q.capitalize=kd,q.ceil=zf,q.clamp=Td,q.clone=Rl,q.cloneDeep=Bl,q.cloneDeepWith=Vl,q.cloneWith=zl,q.conformsTo=Hl,q.deburr=Ad,q.defaultTo=uf,q.divide=Bf,q.endsWith=jd,q.eq=Ul,q.escape=Md,q.escapeRegExp=Nd,q.every=Hc,q.find=Wc,q.findIndex=js,q.findKey=Wu,q.findLast=Gc,q.findLastIndex=Ms,q.findLastKey=Gu,q.floor=Vf,q.forEach=Yc,q.forEachRight=Xc,q.forIn=Ku,q.forInRight=qu,q.forOwn=Ju,q.forOwnRight=Yu,q.get=Qu,q.gt=Wl,q.gte=Gl,q.has=$u,q.hasIn=ed,q.head=Ls,q.identity=pf,q.includes=Qc,q.indexOf=Rs,q.inRange=Ed,q.invoke=rd,q.isArguments=Kl,q.isArray=Z,q.isArrayBuffer=ql,q.isArrayLike=Jl,q.isArrayLikeObject=Yl,q.isBoolean=Xl,q.isBuffer=Zl,q.isDate=Ql,q.isElement=$l,q.isEmpty=eu,q.isEqual=tu,q.isEqualWith=nu,q.isError=ru,q.isFinite=iu,q.isFunction=au,q.isInteger=ou,q.isLength=su,q.isMap=uu,q.isMatch=du,q.isMatchWith=fu,q.isNaN=pu,q.isNative=mu,q.isNil=gu,q.isNull=hu,q.isNumber=_u,q.isObject=cu,q.isObjectLike=lu,q.isPlainObject=vu,q.isRegExp=yu,q.isSafeInteger=bu,q.isSet=xu,q.isString=Su,q.isSymbol=Cu,q.isTypedArray=wu,q.isUndefined=Tu,q.isWeakMap=Eu,q.isWeakSet=Du,q.join=Us,q.kebabCase=Pd,q.last=Ws,q.lastIndexOf=Gs,q.lowerCase=Fd,q.lowerFirst=Id,q.lt=Ou,q.lte=ku,q.max=Hf,q.maxBy=Uf,q.mean=Wf,q.meanBy=Gf,q.min=Kf,q.minBy=qf,q.stubArray=Af,q.stubFalse=jf,q.stubObject=Mf,q.stubString=Nf,q.stubTrue=Pf,q.multiply=Jf,q.nth=Ks,q.noConflict=bf,q.noop=xf,q.now=pl,q.pad=Ld,q.padEnd=Rd,q.padStart=zd,q.parseInt=Bd,q.random=Dd,q.reduce=il,q.reduceRight=al,q.repeat=Vd,q.replace=Hd,q.result=md,q.round=Yf,q.runInContext=e,q.sample=sl,q.size=ul,q.snakeCase=Ud,q.some=dl,q.sortedIndex=tc,q.sortedIndexBy=nc,q.sortedIndexOf=rc,q.sortedLastIndex=ic,q.sortedLastIndexBy=ac,q.sortedLastIndexOf=oc,q.startCase=Gd,q.startsWith=Kd,q.subtract=Xf,q.sum=Zf,q.sumBy=Qf,q.template=qd,q.times=Ff,q.toFinite=ju,q.toInteger=Q,q.toLength=Mu,q.toLower=Jd,q.toNumber=Nu,q.toSafeInteger=Fu,q.toString=$,q.toUpper=Yd,q.trim=Xd,q.trimEnd=Zd,q.trimStart=Qd,q.truncate=$d,q.unescape=ef,q.uniqueId=Lf,q.upperCase=tf,q.upperFirst=nf,q.each=Yc,q.eachRight=Xc,q.first=Ls,yf(q,function(){var e={};return vi(q,function(t,n){W.call(q.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),q.VERSION=`4.18.1`,an([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){q[e].placeholder=q}),an([`drop`,`take`],function(e,t){J.prototype[e]=function(r){r=r===n?1:Nt(Q(r),0);var i=this.__filtered__&&!t?new J(this):this.clone();return i.__filtered__?i.__takeCount__=It(r,i.__takeCount__):i.__views__.push({size:It(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},J.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),an([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;J.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:X(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),an([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);J.prototype[e]=function(){return this[n](1).value()[0]}}),an([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);J.prototype[e]=function(){return this.__filtered__?new J(this):this[n](1)}}),J.prototype.compact=function(){return this.filter(pf)},J.prototype.find=function(e){return this.filter(e).head()},J.prototype.findLast=function(e){return this.reverse().find(e)},J.prototype.invokeMap=Y(function(e,t){return typeof e==`function`?new J(this):this.map(function(n){return Ai(n,e,t)})}),J.prototype.reject=function(e){return this.filter(El(X(e)))},J.prototype.slice=function(e,t){e=Q(e);var r=this;return r.__filtered__&&(e>0||t<0)?new J(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Q(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},J.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},J.prototype.toArray=function(){return this.take(y)},vi(J.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=q[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(q.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof J,l=s[0],u=c||Z(t),d=function(e){var t=a.apply(q,fn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new J(this);var g=e.apply(t,s);return g.__actions__.push({func:Mc,args:[d],thisArg:n}),new mr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),an([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=Qe[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);q.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Z(i)?i:[],e)}return this[n](function(n){return t.apply(Z(n)?n:[],e)})}}),vi(J.prototype,function(e,t){var n=q[t];if(n){var r=n.name+``;W.call(En,r)||(En[r]=[]),En[r].push({name:t,func:n})}}),En[io(n,s).name]=[{name:`wrapper`,func:n}],J.prototype.clone=hr,J.prototype.reverse=gr,J.prototype.value=_r,q.prototype.at=Nc,q.prototype.chain=Pc,q.prototype.commit=Fc,q.prototype.next=Ic,q.prototype.plant=Rc,q.prototype.reverse=zc,q.prototype.toJSON=q.prototype.valueOf=q.prototype.value=Bc,q.prototype.first=q.prototype.head,vt&&(q.prototype[vt]=Lc),q})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(Wt._=or,define(function(){return or})):Kt?((Kt.exports=or)._=or,Gt._=or):Wt._=or}).call(e)}))();function z({children:e,component:t,detail:n,header:r,notice:i,onRetry:a,title:o,trailing:s}){return _CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.tray,V.frame),r??_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1tcuh5f`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 xtjojy7 x1q0g3np x1a02dak x1hao96`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2,V.grow),o),s),n&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),n)),e,i&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,V.notice),i),a&&_CRAYONCORE_$REACT.createElement(B,{component:t,onClick:a},`Retry`))}function xe({children:e,style:t}){return _CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.surface,V.well,t),e)}function Se({children:e}){return _CRAYONCORE_$REACT.createElement(xe,{style:V.facts},_CRAYONCORE_$REACT.createElement(y.List,null,e))}function Ce({disabled:e,label:t,onClick:n}){return _CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:t,disabled:e,onClick:n,style:[w.quiet,V.trailingAction]},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x138sq3e xl56j7k`},_CRAYONCORE_$REACT.createElement(l.Icon,{name:`pencil`}),_CRAYONCORE_$REACT.createElement(l.Text,null,`Edit`)))}function we({children:e}){return _CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1qjc9v5 xdt5ytf x138sq3e`},e)}function B({children:e,disabled:t,icon:n,onClick:r,size:i,variant:a=`secondary`}){return _CRAYONCORE_$REACT.createElement(v.Button,{disabled:t,onClick:r,style:[w[a],i===`lg`&&w.lg,V.action,t&&w.disabled]},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x138sq3e xl56j7k`},n&&_CRAYONCORE_$REACT.createElement(l.Icon,{name:n}),_CRAYONCORE_$REACT.createElement(l.Text,null,e)))}function Te({component:e,label:t,multiline:n,onChange:r,parseValue:i,ready:a,saving:o,validate:s=()=>!0,value:c}){let[d,p]=(0,f.useState)(c),[m,h]=(0,f.useState)();(0,f.useEffect)(()=>{m===void 0&&p(e=>i&&i(e)===i(c)?e:c)},[i,m,c]);let g=s(d),_=a?_CRAYONCORE_$REACT.createElement(v.Input,{multiline:n,placeholder:t,onChange:e=>{p(e);let t={text:e};h(t),s(e)&&r(e,()=>h(e=>e===t?void 0:e))},value:d,style:[V.input,n&&V.multiline]}):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),c||`Loading…`);return _CRAYONCORE_$REACT.createElement(y.Field,{error:!g&&`Enter a valid ${t.toLowerCase()}.`,label:t},_,a&&g&&m!==void 0&&!o&&_CRAYONCORE_$REACT.createElement(B,{component:e,onClick:()=>r(d,()=>h(e=>e===m?void 0:e))},`Retry `,t.toLowerCase()))}function Ee({value:e}){return _CRAYONCORE_$REACT.createElement(y.Progress,{max:1,value:e})}function De({component:e,integer:t=!1,label:n,max:r=0xe8d4a51000,min:i=-0xe8d4a51000,onChange:a,ready:o,saving:s,value:c}){return _CRAYONCORE_$REACT.createElement(Te,{component:e,label:n,ready:o,saving:s,parseValue:R,value:L.formatNumber(c,{format:`decimal`}),validate:e=>Number.isFinite(R(e))&&R(e)>=i&&R(e)<=r&&(!t||Number.isInteger(R(e))),onChange:(e,t)=>a(R(e),t)})}function Oe({component:e,detail:t,label:n,onClick:r,ready:i,selected:a}){return _CRAYONCORE_$REACT.createElement(y.Choice,{checked:a,description:t,disabled:!i,onCheckedChange:r,style:e===`checklist`&&y.completedTaskStyle},n)}var V={action:{kGNEyG:`x6s0dn4`,kCS8Yb:`x1t1x2f9`,kzQI83:`x1iyjqo2`,kjj79g:`xl56j7k`,$$css:!0},actionContent:{kGNEyG:`x6s0dn4`,kXwgrk:`x1q0g3np`,kOIVth:`x138sq3e`,kjj79g:`xl56j7k`,$$css:!0},actions:{kXwgrk:`x1q0g3np`,kwnvtZ:`x1a02dak`,kOIVth:`x138sq3e`,$$css:!0},choiceText:{kOIVth:`x1tcuh5f`,k9WMMc:`xdpxx8g`,$$css:!0},facts:{kOIVth:`xxhr3t`,kmVPX3:`x1717udv`,$$css:!0},field:{kOIVth:`x138sq3e`,k7Eaqz:`xeuugli`,$$css:!0},fieldLabel:{kMwMTN:`x1hvuwc0`,$$css:!0},frame:{kGNEyG:`x1qjc9v5`,kXwgrk:`xdt5ytf`,kOIVth:`x1tib3ki`,kogj98:`xu36zgx`,k7Eaqz:`xeuugli`,kmVPX3:`xe97fin`,$$css:!0},grow:{kCS8Yb:`x1t1x2f9`,kzQI83:`x1iyjqo2`,k7Eaqz:`xeuugli`,$$css:!0},header:{kOIVth:`x1tcuh5f`,$$css:!0},headerRow:{kGNEyG:`x6s0dn4`,k1C7PZ:`xtjojy7`,kXwgrk:`x1q0g3np`,kwnvtZ:`x1a02dak`,khm7nJ:`x1hao96`,$$css:!0},input:{kzqmXN:`xh8yej3`,$$css:!0},list:{kOIVth:`xxhr3t`,$$css:!0},multiline:{kAzted:`xz42glx`,$$css:!0},notice:{kMwMTN:`x1gaiw33`,$$css:!0},stepperInput:{k9WMMc:`x2b8uid`,$$css:!0},stack:{kGNEyG:`x1qjc9v5`,kXwgrk:`xdt5ytf`,kOIVth:`x138sq3e`,$$css:!0},trailingAction:{kmuXW:`x2lah0s`,kE3dHu:`x1uhho1l`,kpe85a:`x1xpa7k`,$$css:!0},well:{kGNEyG:`x1qjc9v5`,kaIpWk:`x1q77w72`,kOIVth:`x138sq3e`,k7Eaqz:`xeuugli`,kmVPX3:`xe97fin`,$$css:!0}};function ke(e){return _CRAYONCORE_$REACT.createElement(je,{...e,dateOnly:!1})}function Ae(e){return _CRAYONCORE_$REACT.createElement(je,{...e,dateOnly:!0,timeZone:`UTC`})}function je({actionLabel:e,clearable:t=!1,compact:n=!1,component:r,dateOnly:i,label:a,inline:o=!1,onChange:s,onEditingChange:c,ready:d,saving:p,submitLabel:m,timeZone:h,value:g}){let[_,v]=(0,f.useState)(!1),[y,b]=(0,f.useState)(g);(0,f.useEffect)(()=>{if(!o)return c?.(_),()=>c?.(!1)},[_,o,c]);let x=()=>{v(!1),c?.(!1)},S=g?Date.parse(i?`${g}T12:00:00Z`:g):void 0,C=i?`date`:`date & time`;return o&&d?_CRAYONCORE_$REACT.createElement(Me,{clearable:t,component:r,dateOnly:i,inline:!0,label:a,onCancel:x,onChange:s,onEditingChange:c,timeZone:h,value:g}):_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x5bzeeg`},!n&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label),a),!n&&!_&&(S===void 0?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`No date set`):_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1tcuh5f`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.strong),Le(S,h)),!i&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),Re(S,h)))),_&&d?_CRAYONCORE_$REACT.createElement(Me,{key:`${y}:${h}`,clearable:t,component:r,dateOnly:i,onCancel:x,onChange:e=>{let t=p===void 0?s(e):s(e,x);(t===void 0||p===void 0&&t)&&x()},saving:p,submitLabel:m,timeZone:h,value:y}):_CRAYONCORE_$REACT.createElement(B,{component:r,disabled:!d||p,icon:`calendar`,onClick:()=>{b(g),v(!0),c?.(!0)}},e??`${g?`Change`:`Choose`} ${C}`))}function Me({clearable:e,component:t,dateOnly:n,inline:r=!1,label:i=`Date & time`,onCancel:a,onChange:o,onEditingChange:s,saving:c,submitLabel:p,timeZone:m,value:h}){let[g]=(0,f.useState)(h),[_]=(0,f.useState)(()=>h?d.DateTime.fromISO(n?`${h}T12:00:00`:h,{locale:`en-US`,zone:m}):d.DateTime.fromMillis(Math.ceil((Date.now()+36e5)/36e5)*36e5,{locale:`en-US`,zone:m})),y=_.millisecond?`h:mm:ss.SSS a`:_.second?`h:mm:ss a`:`h:mm a`,[b,x]=(0,f.useState)(_.toFormat(`MM/dd/yyyy`)),[S,C]=(0,f.useState)(_.toFormat(y)),[T,ee]=(0,f.useState)(_.offset),[te,ne]=(0,f.useState)(r&&h===null),re=d.DateTime.fromFormat(b.trim(),`M/d/yyyy`,{locale:`en-US`,zone:`UTC`}),D=[`h:mm:ss.SSS a`,`h:mm:ss a`,`h:mm a`].map(e=>d.DateTime.fromFormat(S.trim().toUpperCase(),e,{locale:`en-US`,zone:`UTC`})).find(e=>e.isValid)??d.DateTime.invalid(`Invalid time`),O=re.isValid&&(n||D.isValid)?{...Pe(re),hour:n?12:D.hour,millisecond:n?0:D.millisecond,minute:n?0:D.minute,second:n?0:D.second}:void 0,k=O?Fe(O,m):[],A=k.find(e=>e.offset===T)??k[0],j=A?.toMillis(),ie=te||j!==void 0,ae=O&&JSON.stringify(O)===JSON.stringify(Pe(_))&&A?.offset===_.offset,M=te?null:j===void 0?void 0:ae&&g?g:n?new Date(j).toISOString().slice(0,10):new Date(j).toISOString(),N=(0,f.useRef)(g);return(0,f.useEffect)(()=>{if(r)return s?.(!ie),()=>s?.(!1)},[r,s,ie]),(0,f.useEffect)(()=>{r&&M!==void 0&&M!==N.current&&(N.current=M,o(M))},[r,M,o]),c?_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x5bzeeg`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving date…`),j!==void 0&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),Le(j,m),!n&&` · ${Re(j,m)}`)):_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x5bzeeg`},r&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x138sq3e x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.strong),i),e&&!te&&_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`Remove ${i.toLowerCase()}`,onClick:()=>ne(!0),style:w.quiet},_CRAYONCORE_$REACT.createElement(l.Text,null,`Clear`))),te?_CRAYONCORE_$REACT.createElement(B,{component:t,onClick:()=>ne(!1)},`Add date`):_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1q0g3np x1a02dak x138sq3e`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xgualba x1iyjqo2 x1c4shhz xeuugli`},(!r||!n)&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Date`),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`MM/DD/YYYY`,value:b,onChange:x})),!n&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xgualba x1iyjqo2 x1c4shhz xeuugli`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Time`),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`h:mm AM/PM`,value:S,onChange:C}))),!te&&!n&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),ze(j??_.toMillis(),m)),!te&&k.length>1&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x5bzeeg`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`This time happens twice when the clocks change. Choose an occurrence.`),_CRAYONCORE_$REACT.createElement(Ne,{component:t,label:`Occurrence`,onChange:e=>{let t=k.find((t,n)=>Ie(t,n)===e);t&&ee(t.offset)},options:k.map(Ie),value:Ie(A??k[0],k.indexOf(A??k[0]))})),!ie&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),O?`This time is skipped when the clocks change. Choose another time.`:n?`Enter a valid date (MM/DD/YYYY).`:`Enter a valid date (MM/DD/YYYY) and time (h:mm AM/PM).`),!r&&_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:t,onClick:a},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:t,disabled:!ie,onClick:()=>{M!==void 0&&o(M)},variant:`primary`},p??`Save date`)),!r&&e&&h&&_CRAYONCORE_$REACT.createElement(B,{component:t,onClick:()=>o(null),variant:`quiet`},`Remove date`))}function Ne({label:e,onChange:t,options:n,value:r}){return _CRAYONCORE_$REACT.createElement(v.Picker,{label:e,onChange:e=>{n.includes(e)&&t(e)},value:r,style:Be.choice},n.map(e=>_CRAYONCORE_$REACT.createElement(l.Text,{key:e,value:e},e)))}function Pe(e){return{day:e.day,hour:e.hour,millisecond:e.millisecond,minute:e.minute,month:e.month,second:e.second,year:e.year}}function Fe(e,t){let n=d.DateTime.fromObject(e,{zone:t});return n.isValid&&JSON.stringify(Pe(n))===JSON.stringify(e)?(0,be.sortBy)(n.getPossibleOffsets(),e=>e.toMillis()):[]}function Ie(e,t){return`${t===0?`First`:`Second`} · ${e.offsetNameLong}`}function Le(e,t){return L.formatters.getDateTimeFormat(L.locale,{day:`numeric`,era:d.DateTime.fromMillis(e,{zone:t}).year<=0?`short`:void 0,month:`long`,timeZone:t,weekday:`short`,year:`numeric`}).format(e)}function Re(e,t){let n=new Date(e);return L.formatters.getDateTimeFormat(L.locale,{hour:`numeric`,hour12:!0,minute:`2-digit`,...n.getUTCSeconds()!==0||n.getUTCMilliseconds()!==0?{second:`2-digit`}:{},...n.getUTCMilliseconds()===0?{}:{fractionalSecondDigits:3},timeZone:t,timeZoneName:`short`}).format(e)}function ze(e,t){return L.formatters.getDateTimeFormat(L.locale,{timeZone:t,timeZoneName:`long`}).formatToParts(e).find(e=>e.type===`timeZoneName`)?.value??t.replaceAll(`_`,` `)}var Be={choice:{kzqmXN:`xh8yej3`,$$css:!0}};function Ve(e=!0,t){let[n,r]=(0,f.useState)(Date.now);return(0,f.useLayoutEffect)(()=>{if(!e)return;r(Date.now());let t=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(t)},[e,t]),n}function He(e,t,n,r){let i=0,a=t,o,s=0,c,l,u=new Set,d=async e=>{let t=s,o=++i,c;try{c=await n(e)}catch(e){throw t===s&&o===i&&r?.(),e}if(t===s&&o===i){a=c;for(let e of u)e()}},f=()=>{if(o||c)return;let t=s;c=e().then(e=>{if(t!==s||u.size===0)return;let n=e.subscribe(e=>{t===s&&d(e).catch(()=>void 0)});o=e,l=n}).catch(e=>{t===s&&(o=void 0,c=void 0,l=void 0,r?.())})},p=()=>{i+=1,s+=1,c=void 0,l?.(),l=void 0,o=void 0};return{acceptSnapshot:d,getSnapshot:()=>a,getStore:()=>o,replaceSnapshot(e){a=e;for(let e of u)e()},retry(){p(),u.size>0&&f()},subscribe(e){return u.add(e),f(),()=>{u.delete(e),u.size===0&&p()}}}}function Ue({initialState:e,name:t,schema:n,scope:r=`private`}){let i=(0,f.useMemo)(()=>(0,b.makeLens)({schema:n}),[n]),a=(0,f.useMemo)(()=>({pending:new Set}),[i,t,r]),o=(0,f.useMemo)(()=>{let n=He(async()=>Quantum.openStore({initialState:e,name:t,scope:r,version:i.latest}),{ready:!1,value:e},async e=>({ready:!0,value:await i.parse(e.rawValue,{from:h.z.literal(i.latest).parse(e.version)})}),()=>n.replaceSnapshot({...n.getSnapshot(),loadFailed:!0,ready:!1}));return n},[i,t,r,a]),s=(0,f.useSyncExternalStore)(o.subscribe,o.getSnapshot,o.getSnapshot),c=(0,f.useCallback)((e,t)=>{let r=o.getSnapshot(),i=o.getStore(),s=i?.setAsync;if(!r.ready||!i||!s||i.canWrite===!1)return!1;let c=We(r.value,a.pending),l=typeof e==`function`?e(c):e;return n.parse({...c,...l}),a.pending.add(l),a.error=void 0,o.replaceSnapshot({...r}),(async()=>{try{let e=await s.call(i,l);o.getStore()===i&&(await o.acceptSnapshot(e),t?.())}catch{a.error=`Could not save this change. Please try again.`}finally{a.pending.delete(l),o.replaceSnapshot({...o.getSnapshot()})}})(),!0},[o,n,a]),l=(0,f.useCallback)(()=>{o.replaceSnapshot({...o.getSnapshot(),loadFailed:!1,ready:!1}),o.retry()},[o]),u=o.getStore()?.setAsync!==void 0,d=o.getStore()?.canWrite!==!1;return{error:s.loadFailed?`Could not load this feature. Please try again.`:s.ready&&!u?`Update Flick to save changes to this feature.`:d?a.error:`This view is read-only.`,ready:s.ready&&u&&d,retry:s.loadFailed?l:void 0,saving:a.pending.size>0,set:c,value:We(s.value,a.pending)}}function We(e,t){for(let n of t)e={...e,...n};return e}function H({name:e,revision:t,schema:n,scope:r,seed:i}){let a=JSON.stringify(i),o=Ue({initialState:{...i,configuration:i,configurationRevision:t},name:e,schema:n,scope:r}),{ready:s,set:c,value:l}=o,u=JSON.stringify(l),d=(0,f.useMemo)(()=>({}),[e,n,r]),p=(0,f.useMemo)(()=>{if(!s||t<=l.configurationRevision)return{};try{let e=n.parse(l.configuration??{}),r={};for(let t in i)t!==`configuration`&&t!==`configurationRevision`&&JSON.stringify(i[t])!==JSON.stringify(e[t])&&(r[t]=i[t]);let a={...r,configuration:i,configurationRevision:t};return n.safeParse({...l,...a}).success?{patch:a}:{error:`The requested update conflicts with your saved values. Adjust the related fields to apply it.`}}catch{return{error:`The saved configuration could not be read. Your current values are preserved.`}}},[a,u,s,t,n]);(0,f.useEffect)(()=>{let e=JSON.stringify([a,u,t]);p.patch&&d.key!==e&&(d.key=e,c(p.patch))},[d,a,u,t,c,p]);let m=p.patch;return{...o,error:p.error??o.error,retry:o.retry??(o.error&&!o.saving&&m?()=>{c(m)}:void 0)}}function Ge(e){let t=D.timer.props.parse(e),n=D.timer.storeSchema,r=H({name:t.id??`KowalskiTimer`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({})}),i=t.mode===`stopwatch`,a=!i&&pe(r.value,Date.now())>=t.durationSeconds,o=Ve(r.value.startedAt!==null&&!a),s=a?t.durationSeconds:pe(r.value,o),c=Math.max(0,t.durationSeconds-s),f=r.value.startedAt!==null&&!a,p=i?Math.floor(s):Math.ceil(c),m=(i?p:t.durationSeconds)>=3600,h=L.formatDurationToParts(d.Duration.fromObject({seconds:p}).shiftTo(`hours`,`minutes`,`seconds`).toObject(),{hours:`2-digit`,hoursDisplay:`always`,minutes:`2-digit`,minutesDisplay:`always`,seconds:`2-digit`,secondsDisplay:`always`,style:`digital`}),g=h.slice(m?0:h.findIndex(e=>e.unit===`minute`)).map(e=>e.value).join(``),_=t.mode===`focus`?`Focus session`:t.mode===`break`?`Break time`:i?`Stopwatch`:`Countdown timer`,v=r.saving?`Saving…`:!r.ready&&!r.error?`Loading…`:a?`Complete`:f?`Running`:s>0?`Paused`:`Ready`;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`timer`,title:t.title,detail:_,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,(f||a)&&T.accent),v)},_CRAYONCORE_$REACT.createElement(xe,{style:U.clock},_CRAYONCORE_$REACT.createElement(l.Text,{animated:f?`numeric`:void 0,...u.props(E.display,U.digits(g.length))},g),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),a?`Time’s up`:i?`Time elapsed`:`Time remaining`),!i&&_CRAYONCORE_$REACT.createElement(Ee,{component:`timer`,value:s/t.durationSeconds})),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1r8uery x1iyjqo2 xeuugli`},_CRAYONCORE_$REACT.createElement(B,{component:`timer`,icon:a?`arrow.counterclockwise`:f?`pause`:`play`,variant:`primary`,disabled:!r.ready,onClick:()=>r.set(e=>{let n=Date.now();if(a)return{elapsedSeconds:0,startedAt:n};let r=pe(e,n);return e.startedAt===null?{startedAt:n}:{elapsedSeconds:i?r:Math.min(t.durationSeconds,r),startedAt:null}})},a?`Start again`:f?`Pause`:s>0?`Resume`:`Start`)),_CRAYONCORE_$REACT.createElement(B,{component:`timer`,variant:`quiet`,disabled:!r.ready||s===0&&r.value.startedAt===null,onClick:()=>r.set(()=>({elapsedSeconds:0,startedAt:null}))},`Reset`)))}function Ke(e){let t=D.countdown.props.parse(e),n=D.countdown.storeSchema,r=H({name:t.id??`KowalskiCountdown`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({target:{value:t.target}})}),i=Ve(),a=r.value.target.value?Date.parse(r.value.target.value):void 0,o=a===void 0?0:Math.max(0,Math.ceil((a-i)/1e3)),s=[{label:`day`,value:Math.floor(o/86400)},{label:`hour`,value:Math.floor(o%86400/3600)},{label:`minute`,value:Math.floor(o%3600/60)},{label:`second`,value:o%60}],c=o>=86400?0:o>=3600?1:o>=60?2:3,d=s[c],f=L.formatNumber(d.value);return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`countdown`,title:t.title},_CRAYONCORE_$REACT.createElement(xe,{style:Ye.remaining},_CRAYONCORE_$REACT.createElement(l.Text,{animated:o>0?`numeric`:void 0,...u.props(E.display,Ye.amount(f.length),o===0&&Ye.arrived)},a===void 0?`—`:o===0?`It’s time`:f),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),a===void 0?`Choose a target below`:o===0?`Your countdown has arrived`:`${L.formatNumberToParts(d.value,{style:`unit`,unit:d.label,unitDisplay:`long`}).find(e=>e.type===`unit`)?.value} to go`),o>0&&c<3&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xtjojy7 x1q0g3np x1a02dak xl56j7k x1hao96`},s.slice(c+1).map(e=>_CRAYONCORE_$REACT.createElement(l.Flex,{key:e.label,className:`x1pha0wt x1q0g3np x1tcuh5f`},_CRAYONCORE_$REACT.createElement(l.Text,{animated:`numeric`,...u.props(E.strong)},L.formatNumber(e.value)),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),L.formatNumberToParts(e.value,{style:`unit`,unit:e.label,unitDisplay:`long`}).find(e=>e.type===`unit`)?.value))))),_CRAYONCORE_$REACT.createElement(ke,{component:`countdown`,label:`Target date & time`,ready:r.ready,saving:r.saving,timeZone:t.timeZone,value:r.value.target.value||null,onChange:(e,t)=>e!==null&&r.set(()=>({target:{value:e}}),t)}))}function qe(e){let t=D.timeZone.props.parse(e),n=D.timeZone.storeSchema,r=H({name:t.id??`KowalskiTimeZone`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({at:{value:t.at}})}),[i,a]=(0,f.useState)(!1),o=r.value.at.value===null,s=Ve(o),c=r.value.at.value?Date.parse(r.value.at.value):s,p=t.zones[0],m=p.split(`/`).at(-1)?.replaceAll(`_`,` `),h=d.DateTime.fromMillis(c,{locale:`en`,zone:p}),g=d.DateTime.utc(h.year,h.month,h.day);return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`timeZone`,title:t.title,detail:`Times relative to ${m}`,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,o&&T.accent),r.saving?`Saving…`:!r.ready&&!r.error?`Loading…`:o?`Live`:`Fixed time`)},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x138sq3e`},t.zones.map((e,t)=>{let n=h.setZone(e),r=d.DateTime.utc(n.year,n.month,n.day).diff(g,`days`).days,i=n.offset-h.offset,a=L.formatDuration(d.Duration.fromObject({minutes:Math.abs(i)}).shiftTo(`hours`,`minutes`,`seconds`).toObject(),{style:`long`}),s=L.formatTimeToParts(c,{fractionalSecondDigits:!o&&n.millisecond!==0?3:void 0,hour:`numeric`,hour12:!0,minute:`2-digit`,second:!o&&(n.second!==0||n.millisecond!==0)?`2-digit`:void 0,timeZone:e}),f=s.filter(e=>e.type!==`dayPeriod`).map(e=>e.value).join(``).trim();return _CRAYONCORE_$REACT.createElement(xe,{key:`${e}:${t}`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x5bzeeg`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xjheoya x1iyjqo2 x1tcuh5f xeuugli`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),e.split(`/`).at(-1)?.replaceAll(`_`,` `)),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),t===0?`Reference`:i===0?`Same time`:`${a} ${i>0?`ahead`:`behind`}`),r!==0&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,T.accent),r===1?`Next day`:r===-1?`Previous day`:`${L.formatNumber(Math.abs(r))} days ${r>0?`ahead`:`behind`}`)),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xuk3077 x1iyjqo2 x1tcuh5f x1hr2gdg`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xuk3077 x1q0g3np x1c4shhz`},_CRAYONCORE_$REACT.createElement(l.Text,{animated:o?`numeric`:void 0,...u.props(E.display,Je.digits(f.length))},f),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,Je.period),s.find(e=>e.type===`dayPeriod`)?.value)),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),L.formatDate(c,{day:`numeric`,...n.year<=0?{era:`short`,year:`numeric`}:{},month:`short`,weekday:`short`,timeZone:e})))))})),_CRAYONCORE_$REACT.createElement(ke,{actionLabel:`Compare another time`,compact:!0,component:`timeZone`,label:`Comparison time · ${m}`,ready:r.ready,saving:r.saving,submitLabel:`Compare this time`,timeZone:p,value:r.value.at.value,onChange:(e,t)=>r.set(()=>({at:{value:e}}),t),onEditingChange:a}),!o&&_CRAYONCORE_$REACT.createElement(B,{component:`timeZone`,icon:`clock`,disabled:!r.ready||r.saving||i,onClick:()=>r.set(()=>({at:{value:null}}))},`Return to live`),!o&&i&&!r.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Save or cancel your comparison before returning to live.`))}var Je={digits:e=>[{kGuDYH:(e>8?S[`2xl`]:e>5?S[`3xl`]:S[`4xl`])==null?e>8?S[`2xl`]:e>5?S[`3xl`]:S[`4xl`]:`xdmh292`,kLWn49:(e>8?S[`2xlLeading`]:e>5?S[`3xlLeading`]:S[`4xlLeading`])==null?e>8?S[`2xlLeading`]:e>5?S[`3xlLeading`]:S[`4xlLeading`]:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>8?S[`2xl`]:e>5?S[`3xl`]:S[`4xl`]),"--x-lineHeight":(e>8?S[`2xlLeading`]:e>5?S[`3xlLeading`]:S[`4xlLeading`])==null?void 0:e>8?S[`2xlLeading`]:e>5?S[`3xlLeading`]:S[`4xlLeading`]}],period:{k1K539:`xpe194`,$$css:!0}},U={clock:{kGNEyG:`x1qjc9v5`,kOIVth:`x5bzeeg`,k9WMMc:`x2b8uid`,$$css:!0},digits:e=>[{kGuDYH:(e>11?S[`3xl`]:e>8?S[`4xl`]:e>5?S[`5xl`]:C.displaySize)==null?e>11?S[`3xl`]:e>8?S[`4xl`]:e>5?S[`5xl`]:C.displaySize:`xdmh292`,kLWn49:(e>11?S[`3xlLeading`]:e>8?S[`4xlLeading`]:e>5?S[`5xlLeading`]:C.displayLeading)==null?e>11?S[`3xlLeading`]:e>8?S[`4xlLeading`]:e>5?S[`5xlLeading`]:C.displayLeading:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>11?S[`3xl`]:e>8?S[`4xl`]:e>5?S[`5xl`]:C.displaySize),"--x-lineHeight":(e>11?S[`3xlLeading`]:e>8?S[`4xlLeading`]:e>5?S[`5xlLeading`]:C.displayLeading)==null?void 0:e>11?S[`3xlLeading`]:e>8?S[`4xlLeading`]:e>5?S[`5xlLeading`]:C.displayLeading}]},Ye={amount:e=>[{kGuDYH:(e>6?S[`4xl`]:e>4?S[`6xl`]:C.displaySize)==null?e>6?S[`4xl`]:e>4?S[`6xl`]:C.displaySize:`xdmh292`,kLWn49:(e>6?S[`4xlLeading`]:e>4?S[`6xlLeading`]:C.displayLeading)==null?e>6?S[`4xlLeading`]:e>4?S[`6xlLeading`]:C.displayLeading:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>6?S[`4xl`]:e>4?S[`6xl`]:C.displaySize),"--x-lineHeight":(e>6?S[`4xlLeading`]:e>4?S[`6xlLeading`]:C.displayLeading)==null?void 0:e>6?S[`4xlLeading`]:e>4?S[`6xlLeading`]:C.displayLeading}],arrived:{kGuDYH:`xbecnzp`,kLWn49:`xz3hd8j`,$$css:!0},remaining:{kGNEyG:`x1qjc9v5`,kOIVth:`x138sq3e`,k9WMMc:`x2b8uid`,$$css:!0}};function Xe(e){let t=D.event.props.parse(e),n=D.event.storeSchema,r=H({name:t.id??`KowalskiEvent`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({location:{value:t.location},startsAt:{value:t.startsAt},title:{value:t.title}})}),[i,a]=(0,f.useState)({location:``,startsAt:t.startsAt,title:``}),[o,s]=(0,f.useState)(null),[c,d]=(0,f.useState)(!1),p=o!==null,m=r.value.title.value.trim()?r.value.title.value:`Untitled event`,h=r.value.startsAt.value?Date.parse(r.value.startsAt.value):null,g=h===null?[]:L.formatters.getDateTimeFormat(L.locale,{fractionalSecondDigits:h%1e3==0?void 0:3,hour:`numeric`,hour12:!0,minute:`2-digit`,second:h%6e4==0?void 0:`2-digit`,timeZone:t.timeZone,timeZoneName:`long`}).formatToParts(h),_=i.title.trim().length>0&&D.event.props.shape.title.safeParse(i.title).success,b=D.event.props.shape.location.safeParse(i.location).success,x=o&&(i.title!==o.title||i.location!==o.location||i.startsAt!==o.startsAt);return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`event`,title:m,detail:h===null?`Date to be decided`:L.formatters.getDateTimeFormat(L.locale,{day:`numeric`,month:`long`,timeZone:t.timeZone,weekday:`long`}).format(h)},p&&!r.saving?_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1rnvnas`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.field),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),`Title`),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Title`,value:i.title,onChange:e=>a(t=>({...t,title:e})),style:[V.input]}),!_&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),i.title.trim()?`Use 160 characters or fewer.`:`Add an event title.`)),_CRAYONCORE_$REACT.createElement(ke,{inline:!0,clearable:!0,component:`event`,label:`Start date & time`,onChange:e=>a(t=>({...t,startsAt:e})),onEditingChange:d,ready:r.ready,timeZone:t.timeZone,value:i.startsAt}),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.field),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),`Location`),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,nt.optional),`Optional`)),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Location`,value:i.location,onChange:e=>a(t=>({...t,location:e})),style:[V.input]}),!b&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Use 500 characters or fewer.`)),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`event`,onClick:()=>s(null)},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`event`,disabled:c||r.saving||!r.ready||!x||!_||!b,onClick:()=>{!c&&o&&x&&_&&b&&r.set(e=>({...i.title!==o.title&&i.title!==e.title.value&&{title:{value:i.title}},...i.startsAt!==o.startsAt&&i.startsAt!==e.startsAt.value&&{startsAt:{value:i.startsAt}},...i.location!==o.location&&i.location!==e.location.value&&{location:{value:i.location}}}),()=>s(null))},variant:`primary`},`Save changes`))):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`):!r.ready&&!r.error?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Loading event…`):null,_CRAYONCORE_$REACT.createElement(Se,null,_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`Time`,trailing:h===null?`Not set`:g.filter(e=>e.type!==`timeZoneName`).map(e=>e.value).join(``).trim()}),_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`Where`,trailing:r.value.location.value.trim()?r.value.location.value:`To be decided`})),!p&&_CRAYONCORE_$REACT.createElement(B,{component:`event`,disabled:!r.ready||r.saving,icon:`pencil`,onClick:()=>{let e={location:r.value.location.value,startsAt:r.value.startsAt.value,title:r.value.title.value};a(e),s(e)}},`Edit event`)))}function Ze(e){let t=D.reminder.props.parse(e),n=t.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone,r=D.reminder.storeSchema,i=H({name:t.id??`KowalskiReminder`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({dueAt:{value:t.dueAt},title:{value:t.title}})}),[a,o]=(0,f.useState)({dueAt:t.dueAt,title:t.title}),[s,c]=(0,f.useState)(null),[d,p]=(0,f.useState)(!1),m=s!==null,h=i.value.completedAt!==null,g=i.value.dueAt.value?Date.parse(i.value.dueAt.value):null,_=Ve(g!==null),b=i.value.title.value.trim()?i.value.title.value:`Untitled reminder`,x=L.formatters.getDateTimeFormat(L.locale,{day:`numeric`,month:`long`,timeZone:n,weekday:`short`,year:`numeric`}),S=L.formatters.getDateTimeFormat(L.locale,{fractionalSecondDigits:g!==null&&g%1e3!=0?3:void 0,hour:`numeric`,hour12:!0,minute:`2-digit`,second:g!==null&&g%6e4!=0?`2-digit`:void 0,timeZone:n}),C=g===null?`No due date`:h?`Due date`:g<_?`Overdue`:x.format(g)===x.format(_)?`Due today`:`Upcoming`,w=h?_e(i.value.dueAt.value,t.recurrence,_):null,T=a.title.trim().length>0&&D.reminder.props.shape.title.safeParse(a.title).success,ee=s&&(a.title!==s.title||a.dueAt!==s.dueAt);return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`reminder`,title:b,detail:i.value.completedAt===null?void 0:`Completed ${L.formatters.getDateTimeFormat(L.locale,{dateStyle:`medium`,hour12:!0,timeStyle:`short`,timeZone:n}).format(i.value.completedAt)}`,trailing:!m&&_CRAYONCORE_$REACT.createElement(Ce,{disabled:!i.ready,label:`Edit reminder`,onClick:()=>{let e={dueAt:i.value.dueAt.value,title:i.value.title.value};o(e),c(e)}})},m&&i.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`):m?_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1rnvnas`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.field),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),`Reminder`),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Reminder`,value:a.title,onChange:e=>o(t=>({...t,title:e})),style:[V.input]}),!T&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),a.title.trim()?`Use 500 characters or fewer.`:`Add a reminder title.`)),_CRAYONCORE_$REACT.createElement(ke,{inline:!0,clearable:!0,component:`reminder`,label:`Due date & time`,onChange:e=>o(t=>({...t,dueAt:e})),onEditingChange:p,ready:i.ready,timeZone:n,value:a.dueAt}),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`reminder`,onClick:()=>c(null)},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`reminder`,disabled:d||i.saving||!i.ready||!ee||!T,onClick:()=>{!d&&s&&ee&&T&&i.set(e=>({...a.title!==s.title&&a.title!==e.title.value&&{title:{value:a.title}},...a.dueAt!==s.dueAt&&a.dueAt!==e.dueAt.value&&{dueAt:{value:a.dueAt}}}),()=>c(null))},variant:`primary`},i.saving?`Saving…`:`Save changes`))):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(Se,null,_CRAYONCORE_$REACT.createElement(y.List.Item,{label:C,trailing:g===null?`Not set`:x.format(g)}),g!==null&&_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`Time`,trailing:S.format(g)}),t.recurrence!==`none`&&_CRAYONCORE_$REACT.createElement(y.List.Item,{description:g===null?`Add a due date to start repeating.`:void 0,label:`Repeats`,trailing:t.recurrence===`daily`?`Every 24 hours`:`Every 7 days`}),w&&_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`Next occurrence`,trailing:`${x.format(Date.parse(w))} · ${S.format(Date.parse(w))}`})),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),w&&_CRAYONCORE_$REACT.createElement(B,{component:`reminder`,disabled:!i.ready,icon:`arrow.right`,onClick:()=>i.set(e=>{let n=_e(e.dueAt.value,t.recurrence,Date.now());return e.completedAt!==null&&n?{completedAt:null,dueAt:{value:n}}:{}}),variant:`primary`},`Start next reminder`),_CRAYONCORE_$REACT.createElement(B,{component:`reminder`,disabled:!i.ready,icon:h?`arrow.uturn.backward`:`checkmark`,onClick:()=>i.set(e=>({completedAt:e.completedAt===null?Date.now():null})),variant:w?`secondary`:`primary`},h?`Reopen`:`Complete`))))}function Qe(e){let t=D.trip.props.parse(e),n=D.trip.storeSchema,r=H({name:t.id??`KowalskiTrip`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({destination:{value:t.destination},endDate:{value:t.endDate},origin:{value:t.origin},startDate:{value:t.startDate}})}),[i,a]=(0,f.useState)({destination:t.destination,endDate:t.endDate,origin:t.origin,startDate:t.startDate}),[o,s]=(0,f.useState)(null),[c,d]=(0,f.useState)(!1),[p,m]=(0,f.useState)(!1),[h,g]=(0,f.useState)(!1),_=o!==null,b={car:{icon:`car.fill`,label:`By car`},other:{icon:`suitcase.fill`,label:`Travel plans`},plane:{icon:`airplane`,label:`By plane`},train:{icon:`tram.fill`,label:`By train`},walk:{icon:`figure.walk`,label:`On foot`}}[t.transport],x=r.value.startDate.value,S=r.value.endDate.value,C=L.formatters.getDateTimeFormat(L.locale,{day:`numeric`,era:x?.startsWith(`0000-`)||S?.startsWith(`0000-`)?`short`:void 0,month:`short`,timeZone:`UTC`,year:`numeric`}),w=x?Date.parse(`${x}T12:00:00Z`):null,T=S?Date.parse(`${S}T12:00:00Z`):null,ee=w!==null&&T!==null?Math.round((T-w)/864e5):null,te=w!==null&&T!==null?x===S?C.format(w):`${C.format(w)} – ${C.format(T)}`:w===null?T===null?`Dates open`:`Until ${C.format(T)}`:`From ${C.format(w)}`,ne=ee===null?x?`End date to be decided`:S?`Start date to be decided`:`Set dates when you’re ready`:ee===0?`Day trip`:L.formatMessage({defaultMessage:`{days, number} days · {nights, plural, one {# night} other {# nights}}`,id:`kowalski.trip.duration`},{days:ee+1,nights:ee}),re=o&&(i.destination!==o.destination||i.endDate!==o.endDate||i.origin!==o.origin||i.startDate!==o.startDate),O=D.trip.props.shape.origin.safeParse(i.origin).success,k=D.trip.props.shape.destination.safeParse(i.destination).success,A=o&&i.startDate!==o.startDate?i.startDate:x,j=o&&i.endDate!==o.endDate?i.endDate:S,ie=!A||!j||A<=j;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`trip`,title:t.title,detail:b.label},_&&r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`):_?_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1rnvnas`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.field),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),`From`),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`From`,value:i.origin,onChange:e=>a(t=>({...t,origin:e})),style:[V.input]}),!O&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Use 160 characters or fewer.`)),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.field),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),`To`),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`To`,value:i.destination,onChange:e=>a(t=>({...t,destination:e})),style:[V.input]}),!k&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Use 160 characters or fewer.`)),_CRAYONCORE_$REACT.createElement(Ae,{inline:!0,clearable:!0,component:`trip`,label:`Start date`,onChange:e=>{a(t=>({...t,startDate:e})),g(!1)},onEditingChange:m,ready:r.ready,value:i.startDate}),_CRAYONCORE_$REACT.createElement(Ae,{inline:!0,clearable:!0,component:`trip`,label:`End date`,onChange:e=>{a(t=>({...t,endDate:e})),g(!1)},onEditingChange:d,ready:r.ready,value:i.endDate}),(!ie||h)&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`The trip cannot end before it starts. Adjust either date before saving.`),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`trip`,onClick:()=>{s(null),d(!1),m(!1)}},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`trip`,disabled:r.saving||!r.ready||c||p||!re||!O||!k||!ie,onClick:()=>{if(!r.saving&&r.ready&&!c&&!p&&o&&re&&O&&k&&ie)try{r.set(e=>({...i.destination!==o.destination&&i.destination!==e.destination.value&&{destination:{value:i.destination}},...i.endDate!==o.endDate&&i.endDate!==e.endDate.value&&{endDate:{value:i.endDate}},...i.origin!==o.origin&&i.origin!==e.origin.value&&{origin:{value:i.origin}},...i.startDate!==o.startDate&&i.startDate!==e.startDate.value&&{startDate:{value:i.startDate}}}),()=>s(null))}catch{g(!0)}},variant:`primary`},r.saving?`Saving…`:`Save changes`))):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(Se,null,_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`From`,trailing:r.value.origin.value.trim()?r.value.origin.value:`To be decided`}),_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`To`,trailing:r.value.destination.value.trim()?r.value.destination.value:`To be decided`}),_CRAYONCORE_$REACT.createElement(y.List.Item,{description:ne,label:`Dates`,trailing:te})),!_&&_CRAYONCORE_$REACT.createElement(B,{component:`trip`,disabled:!r.ready||r.saving,icon:`pencil`,onClick:()=>{let e={destination:r.value.destination.value,endDate:r.value.endDate.value,origin:r.value.origin.value,startDate:r.value.startDate.value};a(e),s(e),g(!1)}},`Edit trip`)))}function $e(e){let t=D.contact.props.parse(e),n=D.contact.storeSchema,r=H({name:t.id??`KowalskiContact`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({email:{value:t.email??null},name:{value:t.name},phone:{value:t.phone??null}})}),[i,a]=(0,f.useState)({email:``,name:``,phone:``}),[o,s]=(0,f.useState)(null),c=o!==null,d=r.value.name.value.trim()?r.value.name.value:`Unnamed contact`,p=[{key:`name`,label:`Name`,valid:i.name.trim().length>0&&D.contact.props.shape.name.safeParse(i.name).success,validation:i.name.trim()?`Use 160 characters or fewer.`:`Add a name.`},{key:`phone`,label:`Phone`,valid:i.phone===``||D.contact.props.shape.phone.safeParse(i.phone).success,validation:`Use 80 characters or fewer.`},{key:`email`,label:`Email`,valid:i.email===``||D.contact.props.shape.email.safeParse(i.email).success,validation:`Enter a valid email address.`}],m=o&&(i.email!==o.email||i.name!==o.name||i.phone!==o.phone);return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`contact`,title:d,trailing:!c&&_CRAYONCORE_$REACT.createElement(Ce,{disabled:!r.ready||r.saving,label:`Edit contact`,onClick:()=>{let e={email:r.value.email.value??``,name:r.value.name.value,phone:r.value.phone.value??``};s(e),a(e)}})},c&&!r.saving?_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1rnvnas`},p.map(e=>_CRAYONCORE_$REACT.createElement(l.Flex,{key:e.key,...u.props(V.field)},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),e.label),e.key!==`name`&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,W.optional),`Optional`)),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:e.label,value:i[e.key],onChange:t=>a(n=>({...n,[e.key]:t})),style:[V.input]}),!e.valid&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),e.validation))),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`contact`,onClick:()=>s(null)},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`contact`,disabled:r.saving||!r.ready||!m||p.some(e=>!e.valid),variant:`primary`,onClick:()=>{o&&m&&!p.some(e=>!e.valid)&&r.set(e=>({...i.email!==o.email&&i.email!==(e.email.value??``)&&{email:{value:i.email||null}},...i.name!==o.name&&i.name!==e.name.value&&{name:{value:i.name}},...i.phone!==o.phone&&i.phone!==(e.phone.value??``)&&{phone:{value:i.phone||null}}}),()=>s(null))}},`Save changes`))):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`):!r.ready&&!r.error?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Loading contact…`):null,_CRAYONCORE_$REACT.createElement(Se,null,_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`Phone`,trailing:r.value.phone.value??`No phone number`}),_CRAYONCORE_$REACT.createElement(y.List.Item,{label:`Email`,trailing:r.value.email.value??`No email address`})),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),[{address:r.value.phone.value,icon:`phone`,verb:`Call`},{address:r.value.email.value,icon:`envelope`,verb:`Email`}].map(e=>e.address!==null&&_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`${e.verb} ${d}`,disabled:!r.ready||r.saving,href:e.verb===`Call`?`tel:${encodeURIComponent(e.address.replaceAll(/[()\s.-]/g,``))}`:`mailto:${encodeURIComponent(e.address)}`,key:e.verb,style:[w.secondary,w.lg,V.action]},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actionContent),_CRAYONCORE_$REACT.createElement(l.Icon,{name:e.icon}),_CRAYONCORE_$REACT.createElement(l.Text,null,e.verb)))))))}function et(e){let t=D.bookmark.props.parse(e),n=D.bookmark.storeSchema,r=H({name:t.id??`KowalskiBookmark`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({note:{value:t.note},title:{value:t.title},url:{value:t.url}})}),[i,a]=(0,f.useState)({note:``,title:``,url:``}),[o,s]=(0,f.useState)(null),[c,d]=(0,f.useState)(!1),[p,m]=(0,f.useState)(!1),h=o!==null,g=(r.value.url.value??``).replace(/^https?:\/\//i,``).split(/[/?#]/)[0]?.split(`@`).pop()?.replace(/^www\./i,``),_=r.value.title.value.trim()?r.value.title.value:g||`Untitled bookmark`,y=r.value.note.value,b=(0,be.toArray)(y),x=b.length>360,S={note:D.bookmark.props.shape.note.safeParse(i.note).success,title:D.bookmark.props.shape.title.safeParse(i.title).success,url:D.bookmark.props.shape.url.safeParse(i.url).success},C=o&&(i.note!==o.note||i.title!==o.title||i.url!==o.url);function ee(){if(!r.ready||r.saving)return;let e={note:r.value.note.value,title:r.value.title.value,url:r.value.url.value??``};a(e),s(e)}return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`bookmark`,title:_,detail:g||`No web address`,trailing:!h&&_CRAYONCORE_$REACT.createElement(Ce,{disabled:!r.ready||r.saving,label:`Edit bookmark`,onClick:ee})},h?_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1rnvnas`},r.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`),[{key:`title`,label:`Title`,message:`Use 160 characters or fewer.`},{key:`url`,label:`Web address`,message:`Use a valid address starting with https:// or http://.`},{key:`note`,label:`Note`,message:`Use 10,000 characters or fewer.`}].map(e=>_CRAYONCORE_$REACT.createElement(l.Flex,{key:e.key,...u.props(V.field)},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),e.label),e.key!==`url`&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,rt.caption),`Optional`)),r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text,T.surface,V.input,rt.submittedValue),i[e.key]||(e.key===`note`?`No note`:`No title`)):_CRAYONCORE_$REACT.createElement(v.Input,{multiline:e.key===`note`,placeholder:e.label,value:i[e.key],onChange:t=>a(n=>({...n,[e.key]:t})),style:[V.input,e.key===`note`&&V.multiline]}),!S[e.key]&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),e.message))),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`bookmark`,disabled:r.saving,onClick:()=>s(null)},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`bookmark`,disabled:r.saving||!r.ready||!C||!S.title||!S.url||!S.note,onClick:()=>{r.ready&&!r.saving&&o&&C&&S.title&&S.url&&S.note&&r.set(e=>({...i.title!==o.title&&i.title!==e.title.value&&{title:{value:i.title}},...i.url!==o.url&&i.url!==(e.url.value??``)&&{url:{value:i.url||null}},...i.note!==o.note&&i.note!==e.note.value&&{note:{value:i.note}}}),()=>s(null))},variant:`primary`},r.saving?`Saving…`:`Save changes`))):_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1tib3ki`},r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`):!r.ready&&!r.error?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Loading bookmark…`):null,_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x5bzeeg`},y&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text,rt.noteText),x&&!p?`${b.slice(0,360).join(``)}…`:y),x&&_CRAYONCORE_$REACT.createElement(B,{component:`bookmark`,onClick:()=>m(e=>!e),variant:`quiet`},p?`Show less`:`Read full note`),!y&&_CRAYONCORE_$REACT.createElement(B,{component:`bookmark`,disabled:!r.ready||r.saving,icon:`plus`,onClick:ee,variant:`quiet`},`Add a note`)),r.value.url.value&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1tcuh5f x1vk53p6`},_CRAYONCORE_$REACT.createElement(v.Button,{onClick:()=>d(e=>!e),style:[w.quiet,rt.addressButton]},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x5bzeeg x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.strong,rt.caption),c?`Hide web address`:`Show web address`),_CRAYONCORE_$REACT.createElement(l.Icon,{name:c?`chevron.up`:`chevron.down`,...u.props(E.muted,rt.chevron)}))),c&&_CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.surface,rt.addressValue),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,rt.caption),r.value.url.value))),r.value.url.value&&_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`Open ${_}`,disabled:!r.ready||r.saving,href:r.value.url.value,style:[w.primary,w.lg,V.action]},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actionContent),_CRAYONCORE_$REACT.createElement(l.Icon,{name:`arrow.up.right`}),_CRAYONCORE_$REACT.createElement(l.Text,null,`Open link`)))))}function tt(e){let t=D.note.props.parse(e),n=D.note.storeSchema,r=H({name:t.id??`KowalskiNote`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({body:{value:t.body},title:{value:t.title}})}),[i,a]=(0,f.useState)(null),[o,s]=(0,f.useState)(null),c=i?.value??r.value.body.value,d=o?.value??r.value.title.value,p=c.length<=2e4,m=d.length<=160,h=r.ready?c:r.value.body.value,g=(0,f.useMemo)(()=>[...new Intl.Segmenter(`en`,{granularity:`word`}).segment(h)].filter(e=>e.isWordLike||/\p{N}/u.test(e.segment)).length,[h]),_=i!==null||o!==null,y=r.ready?!p||!m?`Not saved`:r.saving?`Saving…`:_||r.error?`Not saved`:`Saved`:r.error?`Read-only`:`Loading…`;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`note`,title:r.value.title.value||`Untitled note`,header:!1},_CRAYONCORE_$REACT.createElement(xe,null,r.ready?_CRAYONCORE_$REACT.createElement(v.Input,{multiline:!0,placeholder:`Untitled note`,value:d,onChange:e=>{let t={value:e};s(t),e.length<=160&&r.set(()=>({title:t}),()=>s(e=>e===t?null:e))},style:[E.h2,it.page]}):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),r.value.title.value||`Untitled note`),r.ready?_CRAYONCORE_$REACT.createElement(v.Input,{multiline:!0,placeholder:`Start writing…`,value:c,onChange:e=>{let t={value:e};a(t),e.length<=2e4&&r.set(()=>({body:t}),()=>a(e=>e===t?null:e))},style:[E.text,it.page,it.body]}):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text,it.body),h||(r.error?`This note is empty.`:`Loading note…`))),!m&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,V.notice),`Title is too long. Use 160 characters or fewer.`),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x138sq3e`},!p&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,V.notice),`Note is too long. Use 20,000 characters or fewer to save.`),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x138sq3e x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),L.formatMessage({defaultMessage:`{count, plural, one {# word} other {# words}}`,id:`kowalski.note.words`},{count:g})),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),y)),r.ready&&!r.saving&&_&&p&&m&&_CRAYONCORE_$REACT.createElement(B,{component:`note`,onClick:()=>{r.set(()=>({...i&&{body:i},...o&&{title:o}}),()=>{a(e=>e===i?null:e),s(e=>e===o?null:e)})}},`Retry save`)))}var nt={optional:{kGuDYH:`xx29u00`,$$css:!0}},W={optional:{kGuDYH:`xx29u00`,$$css:!0}},rt={addressButton:{kmVPX3:`x1esoa3j`,k9WMMc:`xdpxx8g`,$$css:!0},addressValue:{k7Eaqz:`x1vk53p6`,kmVPX3:`x199fk5p`,$$css:!0},caption:{kGuDYH:`xg2vrdc`,$$css:!0},chevron:{kGuDYH:`xx29u00`,k63SB2:`x1s688f`,$$css:!0},noteText:{kLWn49:`x1dbl2gt`,$$css:!0},submittedValue:{k7Eaqz:`x1vk53p6`,$$css:!0}},it={body:{kAzted:`xz42glx`,$$css:!0},page:{kWkggS:`xjbqb8w`,kMzoRj:`xc342km`,kE3dHu:`x1uhho1l`,kpe85a:`x1xpa7k`,k9WMMc:`xdpxx8g`,kzqmXN:`xh8yej3`,$$css:!0}};function at(e){let t=D.budget.props.parse(e),n=t.categories,r=D.budget.storeSchema,i=H({name:t.id??`KowalskiBudget`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({})}),[a,o]=(0,f.useState)(n[0].id),[s,c]=(0,f.useState)({value:``}),d=e=>ye(e,t.currency),p=e=>i.value[`spent_${e}`]??0,m=n.reduce((e,t)=>e+p(t.id),0),h=n.reduce((e,t)=>e+t.limit,0),g=h-m,_=n.find(e=>e.id===a)??n[0],b=R(s.value,t.currency),x=Number.isFinite(b)&&b>0&&b<=0xe8d4a51000-p(_.id);return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`budget`,title:t.title,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,g<0&&V.notice),g<0?`${d(-g)} over`:`${d(g)} left`)},_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(y.Stat,null,_CRAYONCORE_$REACT.createElement(y.Stat.Value,null,d(m)),_CRAYONCORE_$REACT.createElement(y.Stat.Caption,null,`Spent of ${d(h)}`)),_CRAYONCORE_$REACT.createElement(Ee,{component:`budget`,value:Math.min(1,m/h)})),_CRAYONCORE_$REACT.createElement(Se,null,n.map(e=>_CRAYONCORE_$REACT.createElement(y.List.Item,{description:p(e.id)>e.limit?`${d(p(e.id)-e.limit)} over`:void 0,key:e.id,label:e.label,trailing:`${d(p(e.id))} of ${d(e.limit)}`}))),_CRAYONCORE_$REACT.createElement(y.Field,{error:s.value&&!x&&`Enter an amount within the supported range.`,label:`Add spending`},_CRAYONCORE_$REACT.createElement(v.Picker,{label:`Category`,value:_.id,onChange:o},n.map(e=>_CRAYONCORE_$REACT.createElement(l.Text,{key:e.id,value:e.id},e.label))),_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Amount`,value:s.value,onChange:e=>c({value:e}),style:[V.input]})),_CRAYONCORE_$REACT.createElement(B,{component:`budget`,disabled:!x||!i.ready||i.saving,icon:`plus`,size:`lg`,variant:`primary`,onClick:()=>i.set(e=>({[`spent_${_.id}`]:(e[`spent_${_.id}`]??0)+b}),()=>c(e=>e===s?{value:``}:e))},`Add to ${_.label}`))}function ot(e){let t=D.scoreboard.props.parse(e),n=t.players,r=D.scoreboard.storeSchema,i=H({name:t.id??`KowalskiScoreboard`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({})}),a=e=>i.value[`score_${e}`]??0,o=Math.max(...n.map(e=>a(e.id))),s=n.filter(e=>a(e.id)===o),c=n.some(e=>a(e.id)!==0),d=(e,n)=>i.set(r=>({[`score_${e}`]:(r[`score_${e}`]??0)+n*t.step}));return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`scoreboard`,title:t.title,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,c&&s.length===1&&T.accent),c?s.length===1?`${s[0].label} leads`:`Tied at ${L.formatNumber(o)}`:`No scores yet`)},_CRAYONCORE_$REACT.createElement(Se,null,n.map(e=>_CRAYONCORE_$REACT.createElement(y.List.Item,{key:e.id,label:e.label,trailing:_CRAYONCORE_$REACT.createElement(y.Stepper,{decrementDisabled:!i.ready,decrementLabel:`Lower ${e.label}`,incrementDisabled:!i.ready,incrementLabel:`Raise ${e.label}`,onDecrement:()=>d(e.id,-1),onIncrement:()=>d(e.id,1)},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2,ht.score),L.formatNumber(a(e.id))))}))),c&&_CRAYONCORE_$REACT.createElement(B,{component:`scoreboard`,disabled:!i.ready,icon:`arrow.counterclockwise`,onClick:()=>i.set(()=>Object.fromEntries(n.map(e=>[`score_${e.id}`,0])))},`New game`))}function st(e){let t=D.taskBoard.props.parse(e),n=t.tasks,r=D.taskBoard.storeSchema,i=H({name:t.id??`KowalskiTaskBoard`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({})}),[a,o]=(0,f.useState)(`todo`),s=e=>i.value[`status_${e}`]??`todo`,c=n.filter(e=>s(e.id)===a);return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`taskBoard`,title:t.title,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`${L.formatNumber(n.filter(e=>s(e.id)===`done`).length)} of ${L.formatNumber(n.length)} done`)},_CRAYONCORE_$REACT.createElement(y.Segmented,{options:mt.map(e=>({label:`${e.label} ${L.formatNumber(n.filter(t=>s(t.id)===e.value).length)}`,value:e.value})),value:a,onChange:o}),c.length===0?_CRAYONCORE_$REACT.createElement(xe,{style:ht.empty},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),a===`done`?`Nothing finished yet.`:`Nothing here.`)):_CRAYONCORE_$REACT.createElement(Se,null,c.map(e=>{let t=a===`todo`?`doing`:a===`doing`?`done`:`todo`;return _CRAYONCORE_$REACT.createElement(y.List.Item,{key:e.id,label:e.label,trailing:_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`${ft[a]}: ${e.label}`,disabled:!i.ready,onClick:()=>{i.set(()=>({[`status_${e.id}`]:t}))},style:[w.quiet,w.sm,V.trailingAction]},_CRAYONCORE_$REACT.createElement(l.Text,null,ft[a]))})})))}function ct(e){let t=D.rotation.props.parse(e),n=t.people,r=D.rotation.storeSchema,i=H({name:t.id??`KowalskiRotation`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({})}),a=e=>Math.max(0,n.findIndex(t=>t.id===e)),o=n[a(i.value.turn)],s=e=>i.set(t=>({completed:t.completed+ +!!e,turn:n[(a(t.turn)+1)%n.length].id}));return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`rotation`,title:t.title,detail:t.task},_CRAYONCORE_$REACT.createElement(y.Field,{label:i.value.completed>0?`Order · ${L.formatNumber(i.value.completed)} done so far`:`Order`},_CRAYONCORE_$REACT.createElement(Se,null,n.map(e=>_CRAYONCORE_$REACT.createElement(y.List.Item,{key:e.id,label:e.label,trailing:e.id===o.id?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,T.accent),`Now`):void 0})))),_CRAYONCORE_$REACT.createElement(xe,{style:ht.centered},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,V.fieldLabel),`Up now`),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h1),o.label)),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`rotation`,disabled:!i.ready,size:`lg`,onClick:()=>s(!1)},`Skip`),_CRAYONCORE_$REACT.createElement(B,{component:`rotation`,disabled:!i.ready,icon:`checkmark`,size:`lg`,variant:`primary`,onClick:()=>s(!0)},`Done`)))}function lt(e){let t=D.shoppingList.props.parse(e),n=t.items,r=D.shoppingList.storeSchema,i=H({name:t.id??`KowalskiShoppingList`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({})}),a=e=>ye(e,t.currency),o=e=>!!i.value[`got_${e}`],s=n.filter(e=>e.price!==void 0),c=e=>(e.price??0)*e.quantity,d=s.reduce((e,t)=>e+c(t),0),f=s.filter(e=>o(e.id)).reduce((e,t)=>e+c(t),0),p=n.filter(e=>o(e.id)).length;return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`shoppingList`,title:t.title,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`${L.formatNumber(p)} of ${L.formatNumber(n.length)}`)},s.length>0&&_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(y.Stat,null,_CRAYONCORE_$REACT.createElement(y.Stat.Value,null,a(f)),_CRAYONCORE_$REACT.createElement(y.Stat.Caption,null,`In the cart of ${a(d)}`))),_CRAYONCORE_$REACT.createElement(y.List,{style:y.completedTaskStyle},n.map(e=>_CRAYONCORE_$REACT.createElement(y.Choice,{checked:o(e.id),description:e.price===void 0?e.quantity>1?`× ${L.formatNumber(e.quantity)}`:void 0:e.quantity>1?`${L.formatNumber(e.quantity)} × ${a(e.price)}`:a(e.price),disabled:!i.ready,key:e.id,onCheckedChange:t=>i.set(()=>({[`got_${e.id}`]:t}))},e.label))),p>0&&_CRAYONCORE_$REACT.createElement(B,{component:`shoppingList`,disabled:!i.ready,onClick:()=>i.set(()=>Object.fromEntries(n.map(e=>[`got_${e.id}`,!1])))},`Start a new trip`))}function ut(e){let t=D.rating.props.parse(e),n=D.rating.storeSchema,r=H({name:t.id??`KowalskiRating`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({})}),i=r.value.stars;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`rating`,title:t.title,detail:t.subject},_CRAYONCORE_$REACT.createElement(Te,{component:`rating`,label:`Note`,multiline:!0,ready:r.ready,saving:r.saving,validate:e=>e.length<=2e3,value:r.value.note.value,onChange:(e,t)=>r.set(()=>({note:{value:e}}),t)}),_CRAYONCORE_$REACT.createElement(xe,{style:ht.centered},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1q0g3np x1tcuh5f xl56j7k`},[1,2,3,4,5].map(e=>_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`${e} ${e===1?`star`:`stars`}`,disabled:!r.ready,key:e,onClick:()=>{r.set(()=>({stars:i===e?0:e}))},selected:e===i,style:[w.quiet,ht.star]},_CRAYONCORE_$REACT.createElement(l.Icon,{name:`star`,...u.props(E.h1,e<=i?T.accent:ht.emptyStar)})))),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),pt[i])))}function dt(e){let t=D.ledger.props.parse(e),n=D.ledger.storeSchema,r=H({name:t.id??`KowalskiLedger`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({})}),[i,a]=t.people,[o,s]=(0,f.useState)({value:``}),[c,d]=(0,f.useState)({value:``}),[p,m]=(0,f.useState)(i.id),h=e=>ye(e,t.currency),g=e=>e===i.id?i.label:a.label,_=R(c.value,t.currency),b=n.shape.entries.unwrap().element.shape.label.safeParse(o.value.trim()).success,x=b&&Number.isFinite(_)&&_>0&&_<=0xe8d4a51000,S=r.value.entries.reduce((e,t)=>e+(t.paidBy===i.id?t.amount:-t.amount)/2,0),C=Math.abs(S)<.005;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`ledger`,title:t.title,detail:`${i.label} and ${a.label} · costs split evenly`},_CRAYONCORE_$REACT.createElement(xe,{style:ht.centered},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h1),C?`All square`:h(Math.abs(S))),!C&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),S>0?`${a.label} owes ${i.label}`:`${i.label} owes ${a.label}`)),r.value.entries.length>0&&_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(B,{component:`ledger`,disabled:!r.ready,onClick:()=>r.set(()=>({entries:[]}))},`Settle up`),_CRAYONCORE_$REACT.createElement(Se,null,r.value.entries.slice(0,20).map(e=>_CRAYONCORE_$REACT.createElement(y.List.Item,{description:`Paid by ${g(e.paidBy)}`,key:e.id,label:e.label||`Shared cost`,trailing:h(e.amount)})))),_CRAYONCORE_$REACT.createElement(y.Field,{error:!b&&`Keep the description within 160 characters.`,label:`What for`},_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`What for`,value:o.value,onChange:e=>s({value:e}),style:[V.input]})),_CRAYONCORE_$REACT.createElement(y.Field,{error:c.value&&!x&&`Enter an amount within the supported range.`,label:`Amount`},_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Amount`,value:c.value,onChange:e=>d({value:e}),style:[V.input]})),_CRAYONCORE_$REACT.createElement(y.Field,{label:`Paid by`},_CRAYONCORE_$REACT.createElement(y.Segmented,{options:t.people.map(e=>({label:e.label,value:e.id})),value:p,onChange:m})),_CRAYONCORE_$REACT.createElement(B,{component:`ledger`,disabled:!x||!r.ready||r.saving||r.value.entries.length>=200,icon:`plus`,size:`lg`,variant:`primary`,onClick:()=>r.set(e=>({entries:[{amount:_,id:`${Date.now().toString(36)}${Math.random().toString(36).slice(2,8)}`,label:o.value.trim(),paidBy:p},...e.entries]}),()=>{d(e=>e===c?{value:``}:e),s(e=>e===o?{value:``}:e)})},`Add to the tab`))}var ft={doing:`Finish`,done:`Reopen`,todo:`Start`},pt=[`Tap a star to rate`,`Poor`,`Fair`,`Good`,`Great`,`Excellent`],mt=[{label:`To do`,value:`todo`},{label:`Doing`,value:`doing`},{label:`Done`,value:`done`}],ht={centered:{kGNEyG:`x6s0dn4`,k9WMMc:`x2b8uid`,$$css:!0},empty:{kGNEyG:`x6s0dn4`,kmVPX3:`x1zezxo`,$$css:!0},emptyStar:{kMwMTN:`xwk8r4n`,$$css:!0},score:{k7Eaqz:`x1qjs1oc`,k9WMMc:`x2b8uid`,$$css:!0},star:{k7Eaqz:`xeuugli`,kE3dHu:`xes1apb`,kpe85a:`x86fdxp`,$$css:!0}},gt={ks0D6T:`x193iq5w`,k7Eaqz:`xeuugli`,$$css:!0};function _t(e){let t=D.checklist.props.parse(e),n=t.items,r=D.checklist.storeSchema,i=H({name:t.id??`KowalskiChecklist`,revision:t.revision,schema:r,scope:t.scope,seed:r.parse({})}),a=e=>i.value[`completed_${e}`]===!0,o=n.filter(e=>a(e.id)).length,s=!i.ready&&!i.error,c=n.length-o;return _CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`checklist`,title:t.title,trailing:_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1c4shhz`},!s&&c===0&&_CRAYONCORE_$REACT.createElement(l.Icon,{name:`checkmark.circle.fill`,...u.props(T.accent)}),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),s?`Loading checklist…`:`${L.formatNumber(o)} of ${L.formatNumber(n.length)} complete`))},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.list),n.toSorted((e,t)=>Number(a(e.id))-Number(a(t.id))).map(e=>_CRAYONCORE_$REACT.createElement(Oe,{key:e.id,component:`checklist`,label:e.label,ready:i.ready,selected:a(e.id),onClick:()=>{i.set(t=>({[`completed_${e.id}`]:t[`completed_${e.id}`]!==!0}))}}))),i.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`))}function vt(e){let t=D.goal.props.parse(e),n=D.goal.storeSchema,r=H({name:t.id??`KowalskiGoal`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({progress:t.progress})}),i=r.value.progress,a=!r.ready&&!r.error,o=!a&&i>=t.target,s=(0,f.useMemo)(()=>L.formatters.getNumberFormat(L.locale,{maximumSignificantDigits:17}),[]),c=new p.Decimal(t.target).minus(i).abs().toNumber(),d=a?`—`:s.format(i),m=s.format(t.target),h=s.format(c),g=s.format(t.step),_=new p.Decimal(i).plus(t.step).toNumber(),v=p.Decimal.max(0,new p.Decimal(i).minus(t.step)).toNumber(),y=t.unit?` ${t.unit}`:``,b=e=>r.set(n=>{let r=p.Decimal.max(0,new p.Decimal(n.progress).plus(t.step*e)).toNumber();return{progress:Number.isFinite(r)?r:n.progress}});return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`goal`,title:t.title},_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1pha0wt x1q0g3np x1a02dak x138sq3e`},_CRAYONCORE_$REACT.createElement(l.Text,{animated:`numeric`,...u.props(E.display,xt.value(d.length))},d),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`of ${m}${y}`)),_CRAYONCORE_$REACT.createElement(Ee,{component:`goal`,value:a?0:i/t.target}),(a||o)&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1c4shhz`},o&&_CRAYONCORE_$REACT.createElement(l.Icon,{name:`checkmark.circle.fill`,...u.props(T.accent)}),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,o&&T.accent),a?`Loading saved progress…`:i>t.target?`Goal reached, ${h}${y} beyond your target`:`Goal reached`))),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x138sq3e`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`goal`,disabled:!r.ready||v===i,onClick:()=>b(-1)},`−${g}`),_CRAYONCORE_$REACT.createElement(B,{component:`goal`,variant:`primary`,disabled:!r.ready||!Number.isFinite(_)||_===i,onClick:()=>b(1)},`+${g}`)),r.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving progress…`),r.ready&&_===i&&v===i&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`This increment is too small to change this total.`)))}function yt(e){let t=D.habit.props.parse(e),[n,r]=(0,f.useState)(!1),i=D.habit.storeSchema,a=H({name:t.id??`KowalskiHabit`,revision:t.revision,schema:i,scope:t.scope,seed:i.parse({weekdays:t.weekdays})}),o=ge(Ve(),t.timeZone),s=!a.ready&&!a.error,c=e=>re[new Date(`${e}T00:00:00Z`).getUTCDay()],p=e=>d.Info.weekdays(`short`,{locale:L.locale})[(re.indexOf(e)+6)%7],m=a.value.weekdays.includes(c(o)),h=a.value[`completed_${o}`]===!0,g=[...re.slice(1),re[0]],_=g.filter(e=>a.value.weekdays.includes(e)),b=_.length===7?`Every day`:_.length===0?`No scheduled days`:(0,be.isEqual)(_,g.slice(0,5))?`Monday to Friday`:(0,be.isEqual)(_,g.slice(5))?`Saturday & Sunday`:L.formatList(_.map(p),{type:`unit`}),x=Array.from({length:7},(e,t)=>{let n=new Date(`${o}T00:00:00Z`);n.setUTCDate(n.getUTCDate()-6+t);let r=n.toISOString().slice(0,10);return{complete:a.value[`completed_${r}`]===!0,date:r,label:p(c(r)),number:n.getUTCDate(),scheduled:a.value.weekdays.includes(c(r))}});return _CRAYONCORE_$REACT.createElement(z,{onRetry:a.retry,notice:a.error,component:`habit`,title:t.title},_CRAYONCORE_$REACT.createElement(y.Field,{label:`Schedule`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x5bzeeg x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text,V.grow),s?`Loading saved schedule…`:b),_CRAYONCORE_$REACT.createElement(v.Button,{disabled:!a.ready,onClick:()=>r(e=>!e),style:[w.quiet,V.trailingAction]},_CRAYONCORE_$REACT.createElement(l.Text,null,n?`Done editing`:`Edit schedule`))),n&&_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1q0g3np x1a02dak x138sq3e`},g.map(e=>_CRAYONCORE_$REACT.createElement(v.Button,{key:e,selected:a.value.weekdays.includes(e),disabled:!a.ready,onClick:()=>{a.set(t=>({weekdays:t.weekdays.includes(e)?t.weekdays.filter(t=>t!==e):[...t.weekdays,e]}))},style:[w.secondary,St.weekday]},_CRAYONCORE_$REACT.createElement(l.Text,null,p(e))))),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Changes save as you tap. Completed days stay saved when the schedule changes.`))),_CRAYONCORE_$REACT.createElement(y.Field,{label:`Last seven days`},s?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Loading saved history…`):_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1q0g3np x1tcuh5f`},x.map(e=>_CRAYONCORE_$REACT.createElement(l.Flex,{key:e.date,className:`x6s0dn4 x1t1x2f9 x1iyjqo2 x138sq3e xeuugli`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,e.date===o&&T.accent),e.date===o?`Today`:e.label),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.surface,St.date,e.date===o&&T.selected,e.complete&&St.completedDate,!e.scheduled&&!e.complete&&St.offDay),_CRAYONCORE_$REACT.createElement(l.Text,null,e.number)))))),_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x5bzeeg x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h1),s?`Loading…`:h?`Complete`:m?`Not yet`:`Off day`),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),L.formatters.getDateTimeFormat(L.locale,{day:`numeric`,month:`short`,timeZone:`UTC`,weekday:`short`}).format(new Date(`${o}T00:00:00Z`)))),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),s?`Loading saved completions…`:m?`Scheduled today`:h?`Completed on an off day`:`No completion needed today`)),a.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`),_CRAYONCORE_$REACT.createElement(B,{component:`habit`,variant:h||!m?`secondary`:`primary`,icon:h?`arrow.uturn.backward`:`checkmark`,size:`lg`,disabled:!a.ready,onClick:()=>{a.set(e=>({[`completed_${o}`]:e[`completed_${o}`]!==!0}))}},h?`Undo`:`Complete today`))}function bt(e){let t=D.poll.props.parse(e),n=t.options,r=D.poll.storeSchema,i=t.id??`KowalskiPoll`,a=Ue({initialState:{configuration:``,voter:(0,f.useMemo)(()=>`${Date.now().toString(36)}-${Math.random().toString(36).slice(2)}-${Math.random().toString(36).slice(2)}`,[i])},name:`${i}Voter`,schema:O,scope:`private`}),o=H({name:i,revision:t.revision,schema:r,scope:t.shared?`public`:`private`,seed:r.parse({})}),s=new Set(n.map(e=>e.id)),c=`vote_${a.value.voter}`,d=Object.entries(o.value).filter(([e,t])=>e.startsWith(`vote_`)&&typeof t==`string`&&s.has(t)).map(([,e])=>e),p=n.find(e=>e.id===o.value[c]),m=o.error??a.error,h=o.ready&&a.ready,g=!h&&!m,_=L.formatters.getNumberFormat(L.locale,{maximumFractionDigits:1,style:`percent`});return _CRAYONCORE_$REACT.createElement(z,{onRetry:o.retry||a.retry?()=>{o.retry?.(),a.retry?.()}:void 0,notice:m,component:`poll`,title:t.question,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),g?`Loading…`:L.formatMessage({defaultMessage:`{count, plural, one {# vote} other {# votes}}`,id:`kowalski.poll.votes`},{count:d.length}))},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x138sq3e`},n.map(e=>{let t=d.filter(t=>t===e.id).length,n=p?.id===e.id,r=d.length?t/d.length:0,i=r>0&&r<.001?`<0.1%`:r<1&&r>.999?`>99.9%`:_.format(r);return _CRAYONCORE_$REACT.createElement(v.Button,{key:e.id,selected:n,disabled:!h,onClick:()=>{o.set(()=>({[c]:e.id}))},style:[w.secondary,Ct.option,!h&&w.disabled]},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1cy8zhl x1q0g3np x5bzeeg`},_CRAYONCORE_$REACT.createElement(l.Flex,{0:{className:`x6s0dn4 xpkqiqq xrdotid x7duk5r x1y0btm7 xj21mw8 x2lah0s xdnt39p xl56j7k xgwenil`},1:{className:`x6s0dn4 x7duk5r x1y0btm7 xj21mw8 x2lah0s xdnt39p xl56j7k xgwenil x1ckma9v xj890v6`}}[!!n<<0],n&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1gpii1i x7duk5r x168ehga xzv3c7p`})),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.grow,V.choiceText),_CRAYONCORE_$REACT.createElement(l.Text,null,e.label),n&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,T.accent),`Your vote`),d.length>0&&_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(Ee,{component:`poll`,value:r}),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),L.formatMessage({defaultMessage:`{count, plural, one {# vote} other {# votes}} · {share}`,id:`kowalski.poll.share`},{count:t,share:i}))))))})),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),h?o.saving&&p?`Saving… You can still change your vote.`:m?`Choose an option to try again.`:p?`Tap another option to change your vote.`:d.length===0?`Be the first to vote. Choose one option.`:`Choose one option to add your vote.`:m?`Voting is unavailable.`:`Loading your ballot…`))}var xt={value:e=>[gt,{kGuDYH:(e>12?S.xl:e>7?S[`4xl`]:C.displaySize)==null?e>12?S.xl:e>7?S[`4xl`]:C.displaySize:`xdmh292`,kLWn49:(e>12?S.xlLeading:e>7?S[`4xlLeading`]:C.displayLeading)==null?e>12?S.xlLeading:e>7?S[`4xlLeading`]:C.displayLeading:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>12?S.xl:e>7?S[`4xl`]:C.displaySize),"--x-lineHeight":(e>12?S.xlLeading:e>7?S[`4xlLeading`]:C.displayLeading)==null?void 0:e>12?S.xlLeading:e>7?S[`4xlLeading`]:C.displayLeading}]},St={completedDate:{kWkggS:`x1ckma9v`,kVAM5u:`xj890v6`,kMwMTN:`x1dmkooz`,$$css:!0},date:{kGNEyG:`x6s0dn4`,kaIpWk:`x7duk5r`,kZKoxP:`xm26jvq`,kjj79g:`xl56j7k`,kzqmXN:`x1yhq0kw`,$$css:!0},offDay:{kSiTet:`xbyyjgo`,$$css:!0},weekday:{kCS8Yb:`xdya7az`,kzQI83:`x1iyjqo2`,k9WMMc:`x2b8uid`,$$css:!0}},Ct={option:{kGNEyG:`x1qjc9v5`,kmVPX3:`xjy2meq`,$$css:!0}};function wt(e){let t=D.recipe.props.parse(e),n=D.recipe.storeSchema,r=t.servings??null,i=H({name:t.id??`KowalskiRecipe`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({servings:r??1})}),[a,o]=(0,f.useState)(!1),[s,c]=(0,f.useState)(!1),[d,p]=(0,f.useState)(!1),m=jt(t.steps),h=e=>i.value[`step_${e}`]?.done,g=e=>i.value[`step_${e}`]?.endsAt??null,_=Ve(t.steps.some(e=>g(e.id)!==null&&!h(e.id)),t.steps.map(e=>g(e.id)??``).join(`,`)),b=r===null?1:i.value.servings/r,x=e=>(m.prerequisites.get(e.id)??[]).filter(e=>!h(e)),S=t.steps.filter(e=>h(e.id)),C=s?S:S.slice(-1),ee=t.steps.filter(e=>!h(e.id)&&g(e.id)!==null).toSorted((e,t)=>(g(e.id)??0)-(g(t.id)??0)),te=t.steps.filter(e=>!h(e.id)&&g(e.id)===null).toSorted((e,n)=>Number(x(e).length>0)-Number(x(n).length>0)||(x(e).length>0?0:(m.chain.get(n.id)??0)-(m.chain.get(e.id)??0))||t.steps.indexOf(e)-t.steps.indexOf(n)),[ne,...re]=te,O=ne&&x(ne).length===0?ne:void 0,k=O?void 0:ee[0],A=O?re:te,j=d?A:A.slice(0,2),ie=ee.filter(e=>e!==k),ae=e=>Math.ceil(((g(e.id)??_)-_)/1e3),M=(e,t)=>{i.set(()=>({[`step_${e.id}`]:t}))},N=e=>M(e,{done:!0,endsAt:g(e.id)}),oe=e=>M(e,{done:!1,endsAt:null}),P=(e,t)=>M(e,{done:!1,endsAt:t}),F=(e,t)=>M(e,{done:!1,endsAt:Math.max(t,g(e.id)??0)+6e4}),se=e=>e.doneness?`Time’s up. Done when ${e.doneness}.`:`Time’s up`,ce=e=>e.uses.map(({id:e,portion:n,source:r})=>{if(r.kind===`output`)return{id:e,label:m.outputs.get(r.outputId)??``,value:n};let i=t.ingredients.find(e=>e.id===r.ingredientId);return{id:e,label:i?.label??``,value:n??(i&&At(i,b))}}),le=_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(y.Field,{label:`Ingredients`},_CRAYONCORE_$REACT.createElement(Se,null,t.ingredients.map(e=>_CRAYONCORE_$REACT.createElement(y.List.Item,{description:e.notes?.join(` · `),key:e.id,label:e.label,trailing:At(e,b)})))),r!==null&&_CRAYONCORE_$REACT.createElement(y.Field,{label:`Servings`},_CRAYONCORE_$REACT.createElement(y.Stepper,{decrementDisabled:!i.ready||i.value.servings<=1,decrementLabel:`Fewer servings`,incrementDisabled:!i.ready||i.value.servings>=100,incrementLabel:`More servings`,onDecrement:()=>i.set(e=>({servings:Math.max(1,e.servings-1)})),onIncrement:()=>i.set(e=>({servings:Math.min(100,e.servings+1)}))},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2,V.stepperInput),L.formatNumber(i.value.servings)))));return i.value.cooking?_CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`recipe`,title:t.title,trailing:_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`${L.formatNumber(S.length)} of ${L.formatNumber(t.steps.length)} done`)},a?_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,le,_CRAYONCORE_$REACT.createElement(Tt,{label:`Hide ingredients`,open:!0,onClick:()=>o(!1)})):_CRAYONCORE_$REACT.createElement(Tt,{label:[r===null?t.yield:L.formatMessage({defaultMessage:`{count, plural, one {# serving} other {# servings}}`,id:`kowalski.recipe.servings`},{count:i.value.servings}),L.formatMessage({defaultMessage:`{count, plural, one {# ingredient} other {# ingredients}}`,id:`kowalski.recipe.ingredients`},{count:t.ingredients.length})].filter(Boolean).join(` · `),open:!1,onClick:()=>o(!0)}),S.length>C.length&&_CRAYONCORE_$REACT.createElement(Tt,{label:L.formatMessage({defaultMessage:`{count, plural, one {Show # earlier step} other {Show # earlier steps}}`,id:`kowalski.recipe.earlier`},{count:S.length-C.length}),open:!1,onClick:()=>c(!0)}),C.length>0&&_CRAYONCORE_$REACT.createElement(y.List,{style:y.completedTaskStyle},C.map(e=>_CRAYONCORE_$REACT.createElement(y.Choice,{checked:!0,disabled:!i.ready,key:e.id,onCheckedChange:()=>oe(e)},e.instruction))),A.length>2&&_CRAYONCORE_$REACT.createElement(Tt,{label:d?`Show fewer`:L.formatMessage({defaultMessage:`{count, plural, one {Show # more step} other {Show # more steps}}`,id:`kowalski.recipe.later`},{count:A.length-2}),open:d,onClick:()=>p(e=>!e)}),j.length>0&&_CRAYONCORE_$REACT.createElement(y.List,null,j.map(e=>{let t=x(e).length>0,n=Ft(e);return _CRAYONCORE_$REACT.createElement(l.Flex,{key:e.id,...{0:{className:`x6s0dn4 xtjojy7 x1q0g3np`},1:{className:`x6s0dn4 xtjojy7 x1q0g3np xbyyjgo`}}[!!t<<0]},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.grow),_CRAYONCORE_$REACT.createElement(y.Choice,{checked:!1,disabled:!i.ready||t,onCheckedChange:()=>N(e)},e.instruction)),n!==null&&!t&&_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`Start timer: ${e.instruction}`,disabled:!i.ready,onClick:()=>P(e,Date.now()+n*6e4),style:[w.secondary,w.sm,Et.trailing]},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actionContent),_CRAYONCORE_$REACT.createElement(l.Icon,{name:`timer`}),_CRAYONCORE_$REACT.createElement(l.Text,null,`Start ${e.duration?.raw}`))))})),ie.length>0&&_CRAYONCORE_$REACT.createElement(y.List,null,ie.map(e=>_CRAYONCORE_$REACT.createElement(l.Flex,{key:e.id,className:`x6s0dn4 xtjojy7 x1q0g3np`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.grow),_CRAYONCORE_$REACT.createElement(y.Choice,{checked:!1,description:ae(e)>0?void 0:se(e),disabled:!i.ready,onCheckedChange:()=>N(e)},e.instruction)),ae(e)>0?_CRAYONCORE_$REACT.createElement(l.Text,{animated:`numeric`,...u.props(T.accent,Et.trailing)},kt(ae(e))):_CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:`Add a minute: ${e.instruction}`,disabled:!i.ready,onClick:()=>F(e,Date.now()),style:[w.secondary,w.sm,Et.trailing]},_CRAYONCORE_$REACT.createElement(l.Text,null,`+1 min`))))),_CRAYONCORE_$REACT.createElement(xe,null,O?_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),O.instruction),O.uses.length>0&&_CRAYONCORE_$REACT.createElement(y.List,null,ce(O).map(e=>_CRAYONCORE_$REACT.createElement(y.List.Item,{key:e.id,label:e.label,trailing:e.value}))),[O.temperature,O.equipment?.join(`, `)].filter(Boolean).map(e=>_CRAYONCORE_$REACT.createElement(l.Text,{key:e,...u.props(E.muted)},e)),_CRAYONCORE_$REACT.createElement(B,{component:`recipe`,icon:Ft(O)===null?`checkmark`:`timer`,size:`lg`,variant:`primary`,disabled:!i.ready,onClick:()=>{let e=Ft(O);e===null?N(O):P(O,Date.now()+e*6e4)}},Ft(O)===null?`Done`:`Start ${O.duration?.raw}`)):k?_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),k.instruction),ae(k)>0?_CRAYONCORE_$REACT.createElement(l.Text,{animated:`numeric`,...u.props(E.display,T.accent)},kt(ae(k))):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),se(k)),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`recipe`,icon:`checkmark`,size:`lg`,variant:ae(k)>0?`secondary`:`primary`,disabled:!i.ready,onClick:()=>N(k)},`Done`),ae(k)<=0&&_CRAYONCORE_$REACT.createElement(B,{component:`recipe`,size:`lg`,variant:`secondary`,disabled:!i.ready,onClick:()=>F(k,Date.now())},`+1 min`))):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),`All done`),_CRAYONCORE_$REACT.createElement(B,{component:`recipe`,variant:`quiet`,disabled:!i.ready,onClick:()=>i.set(()=>({cooking:!1,...Object.fromEntries(t.steps.map(e=>[`step_${e.id}`,{done:!1,endsAt:null}]))}))},`Cook again`)))):_CRAYONCORE_$REACT.createElement(z,{onRetry:i.retry,notice:i.error,component:`recipe`,title:t.title,detail:Nt(t.steps,m)},le,_CRAYONCORE_$REACT.createElement(B,{component:`recipe`,icon:`play`,size:`lg`,variant:`primary`,disabled:!i.ready,onClick:()=>i.set(()=>({cooking:!0}))},`Start cooking`))}function Tt({label:e,onClick:t,open:n}){return _CRAYONCORE_$REACT.createElement(v.Button,{onClick:t,style:[w.quiet,w.sm,Et.disclosure]},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actionContent),_CRAYONCORE_$REACT.createElement(l.Text,null,e),_CRAYONCORE_$REACT.createElement(l.Icon,{name:n?`chevron.up`:`chevron.down`})))}var Et={disclosure:{kSGwAc:`xqcrz7y`,kE3dHu:`x1uhho1l`,kpe85a:`x1xpa7k`,$$css:!0},trailing:{kmuXW:`x2lah0s`,$$css:!0}};function Dt(e){return e>=10?L.formatNumber(Math.round(e)):(0,x.formatQuantity)(e,{vulgarFractions:!0})??L.formatNumber(e)}function Ot(e){return e.attention??(e.kind===`wait`?`passive`:`active`)}function kt(e){return d.Duration.fromObject({seconds:e}).toFormat(e>=3600?`h:mm:ss`:`m:ss`)}function At(e,t){return e.amount===void 0?e.unit:[Dt(e.amount*t),e.unit].filter(Boolean).join(` `)}function jt(e){let t=new Map(e.flatMap(e=>(e.outputs??[]).map(t=>[t.id,e.id]))),n=new Map(e.flatMap(e=>(e.outputs??[]).map(t=>[t.id,t.name??Mt(e)]))),r=new Map(e.map(e=>[e.id,[...new Set([...e.after??[],...e.uses.flatMap(e=>e.source.kind===`output`?[t.get(e.source.outputId)??``]:[])])].filter(Boolean)])),i=t=>{let n=new Map;for(let i of e.toReversed()){let a=e.filter(e=>r.get(e.id)?.includes(i.id));n.set(i.id,t(i)+Math.max(0,...a.map(e=>n.get(e.id)??0)))}return n};return{chain:i(e=>e.duration?.maxMinutes??e.duration?.minMinutes??0),outputs:n,prerequisites:r,shortest:i(e=>e.duration?.minMinutes??e.duration?.maxMinutes??0)}}function Mt(e){return e?.label??e?.outputs?.[0]?.name??e?.instruction??``}function Nt(e,t){let n=Math.max(0,...t.chain.values()),r=Math.max(0,...t.shortest.values()),i=e.filter(e=>Ot(e)===`active`).reduce((e,t)=>e+(Ft(t)??0),0);if(n===0)return;let a=`${Pt(r,n)} total`;return i>0?`${a}, ${Pt(i,i)} hands-on`:a}function Pt(e,t){let n=t>=60,r=L.formatters.getNumberFormat(L.locale,{maximumFractionDigits:1,style:`unit`,unit:n?`hour`:`minute`,unitDisplay:`short`}),i=n?60:1;return e===t?r.format(t/i):r.formatRange(e/i,t/i)}function Ft(e){return e.duration?.minMinutes??e.duration?.maxMinutes??null}var G=p.Decimal.clone({precision:12,toExpPos:12}),K=[`clear`,`sign`,`%`,`/`,`7`,`8`,`9`,`*`,`4`,`5`,`6`,`-`,`1`,`2`,`3`,`+`,`backspace`,`0`,`.`,`=`];function It({left:e,operator:t,right:n}){let r=Ht(e,t,n);return{entry:r===null?`Error`:new G(r).toString(),left:e,operator:t,overwrite:!0,phase:r===null?`error`:`result`,right:n}}function Lt(e,t){if(t===`clear`||t===`backspace`&&(e.phase===`result`||e.phase===`error`))return Vt(e)===`C`?{...e,entry:`0`,overwrite:!1}:{entry:`0`,left:0,operator:`+`,overwrite:!1,phase:`left`,right:0};if(t===`backspace`){let t=e.overwrite?``:e.entry.slice(0,-1);return{...e,entry:!t||t===`-`?`0`:t,overwrite:!1,phase:e.phase===`operator`?`right`:e.phase}}if(t===`+`||t===`-`||t===`*`||t===`/`){if(e.phase===`error`)return e;let n=e.phase===`right`?Ht(e.left,e.operator,Number(e.entry)):Number(e.entry);return n===null?{...e,entry:`Error`,phase:`error`,right:Number(e.entry)}:{...e,entry:new G(n).toString(),left:n,operator:t,overwrite:!0,phase:`operator`,right:0}}if(t===`=`){if(e.phase===`left`||e.phase===`error`)return e;let t=e.phase===`result`?Number(e.entry):e.left,n=e.phase===`operator`?t:e.phase===`result`?e.right:Number(e.entry);return It({left:t,operator:e.operator,right:n})}if(t===`sign`||t===`%`){if(e.phase===`error`)return e;let n=e.phase===`operator`||e.phase===`right`?`right`:`left`,r=e.phase===`operator`?`0`:e.entry;if(t===`sign`)return{...e,entry:r.startsWith(`-`)?r.slice(1):`-${r}`,overwrite:e.phase!==`operator`&&e.overwrite,phase:n};let i=new G(r).div(100),a=n===`right`&&(e.operator===`+`||e.operator===`-`)?i.times(e.left):i;return Number.isFinite(a.toNumber())?{...e,entry:new G(a.toNumber()).toString(),overwrite:!0,phase:n}:{...e,entry:`Error`,phase:`error`}}let n=e.phase===`operator`||e.phase===`right`?`right`:`left`,r=e.overwrite||e.phase!==`left`&&e.phase!==`right`,i=r?`0`:e.entry;if(t===`.`&&i.includes(`.`)||t!==`.`&&i.replaceAll(/\D/g,``).length>=12)return e;let a=t===`.`?`${i}.`:i===`0`?t:i===`-0`?`-${t}`:`${i}${t}`;return{...n===`left`&&r?{left:0,operator:`+`,right:0}:e,entry:a,overwrite:!1,phase:n}}function Rt(e,t){return t===`clear`?Vt(e):t===`backspace`?`⌫`:t===`sign`?`±`:t===`*`?`×`:t===`/`?`÷`:t===`-`?`−`:t}function zt(e){if(e.phase===`left`)return` `;let t=Bt(new G(e.left).valueOf()),n=Rt(e,e.operator);return e.phase===`result`||e.phase===`error`?`${t} ${n} ${Bt(new G(e.right).valueOf())} =`:`${t} ${n}`}function Bt(e){if(e===`Error`)return e;let t=new G(e);if(t.e>=12||t.e<-12)return L.formatNumber(t.toNumber(),{maximumSignificantDigits:12,notation:`scientific`});let n=e.includes(`e`)?t.toFixed(t.decimalPlaces()):e;return L.formatNumber(Number(n),{maximumFractionDigits:100,minimumFractionDigits:n.split(`.`)[1]?.length??0})+(n.endsWith(`.`)?`.`:``)}function Vt(e){return(e.phase===`left`||e.phase===`right`)&&e.entry!==`0`?`C`:`AC`}function Ht(e,t,n){let r=new G(e),i=(t===`+`?r.plus(n):t===`-`?r.minus(n):t===`*`?r.times(n):r.div(n)).toNumber();return Number.isFinite(i)?i:null}var Ut={k9WMMc:`x2b8uid`,$$css:!0},Wt={kaIpWk:`x1kthbf2`,kZKoxP:`x6glvpn`,$$css:!0},Gt={kGNEyG:`x6s0dn4`,kaIpWk:`x1a5t7es`,kZKoxP:`xwy76x4`,kjj79g:`xl56j7k`,$$css:!0},Kt={k1xSpc:`xrvj5dj`,kOIVth:`x138sq3e`,kumcoG:`xqketvx`,$$css:!0},qt={k9WMMc:`x1hr2gdg`,$$css:!0},Jt={kzqmXN:`xh8yej3`,$$css:!0};function Yt(e){let t=D.billSplit.props.parse(e),n=D.billSplit.storeSchema,r=H({name:t.id??`KowalskiBillSplit`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({people:t.people,tipPercent:t.tipPercent,total:t.total})}),i=me(r.value.total,r.value.people,r.value.tipPercent,t.currency),a=L.formatters.getNumberFormat(L.locale,{currency:t.currency,style:`currency`}),o=ye(r.value.total,t.currency),s=a.format(i.perPerson),c=me(r.value.total,1,0,t.currency).total,d=[0,15,20,25],[p,m]=(0,f.useState)(!1),[h,g]=(0,f.useState)(L.formatNumber(r.value.people,{format:`integer`})),[_,b]=(0,f.useState)();(0,f.useEffect)(()=>{_===void 0&&g(e=>R(e)===r.value.people?e:L.formatNumber(r.value.people,{format:`integer`}))},[_,r.value.people]);let x=p||!d.includes(r.value.tipPercent),S=n.shape.people.safeParse(R(h)).success;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`billSplit`,title:t.title},_CRAYONCORE_$REACT.createElement(Te,{component:`billSplit`,label:`Bill total`,value:o,ready:r.ready,saving:r.saving,parseValue:e=>R(e,t.currency),validate:e=>n.shape.total.safeParse(R(e,t.currency)).success,onChange:(e,n)=>{r.set({total:R(e,t.currency)},n)}}),_CRAYONCORE_$REACT.createElement(y.Field,{label:`Tip`},_CRAYONCORE_$REACT.createElement(y.Segmented,{disabled:!r.ready,options:[...d.map(e=>({label:L.formatNumber(e/100,{style:`percent`}),value:e})),{label:`Custom`,value:`custom`}],value:x?`custom`:r.value.tipPercent,onChange:e=>{m(e===`custom`),typeof e==`number`&&r.set({tipPercent:e})}})),x&&_CRAYONCORE_$REACT.createElement(De,{component:`billSplit`,label:`Tip percent`,min:0,max:100,ready:r.ready,saving:r.saving,value:r.value.tipPercent,onChange:(e,t)=>{r.set({tipPercent:e},t)}}),_CRAYONCORE_$REACT.createElement(y.Field,{error:!S&&`Choose 1–1,000 people.`,label:`People`},_CRAYONCORE_$REACT.createElement(y.Stepper,{decrementDisabled:!r.ready||r.value.people<=1,decrementLabel:`Fewer people`,incrementDisabled:!r.ready||r.value.people>=1e3,incrementLabel:`More people`,onDecrement:()=>{b(void 0),r.set(e=>({people:Math.max(1,e.people-1)}))},onIncrement:()=>{b(void 0),r.set(e=>({people:Math.min(1e3,e.people+1)}))}},r.ready?_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`People`,value:h,onChange:e=>{g(e);let t={text:e};b(t),n.shape.people.safeParse(R(e)).success&&r.set({people:R(e)},()=>b(e=>e===t?void 0:e))},style:[V.input,V.stepperInput]}):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text,V.stepperInput),L.formatNumber(r.value.people,{format:`integer`}))),r.ready&&S&&_!==void 0&&!r.saving&&_CRAYONCORE_$REACT.createElement(B,{component:`billSplit`,onClick:()=>r.set({people:R(h)},()=>b(e=>e===_?void 0:e))},`Retry people`)),_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(y.Stat,null,_CRAYONCORE_$REACT.createElement(y.Stat.Value,{style:nn.amount(s.length)},s),_CRAYONCORE_$REACT.createElement(y.Stat.Caption,null,`Per person`)),i.remainder>0&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,nn.centered),`One person pays ${a.format(i.perPerson+i.remainder)} — ${a.format(i.remainder)} extra to cover rounding.`),r.value.tipPercent>0&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x138sq3e x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Tip (${L.formatNumber(r.value.tipPercent,{format:`decimal`,style:`unit`,unit:`percent`,unitDisplay:`narrow`})})`),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),a.format(i.total-c))),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x138sq3e x1qughib`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.strong),`Total with tip`),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.strong),a.format(i.total)))))}function Xt(e){let t=D.expense.props.parse(e),n=D.expense.storeSchema,r=H({name:t.id??`KowalskiExpense`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({amount:t.amount,category:{value:t.category},title:{value:t.title}})}),[i,a]=(0,f.useState)({amount:``,category:``,title:``}),[o,s]=(0,f.useState)(null),c=o!==null,d=R(i.amount,t.currency),p=n.shape.amount.safeParse(d).success,m=i.title.trim().length>0&&D.expense.props.shape.title.safeParse(i.title).success,h=D.expense.props.shape.category.safeParse(i.category).success,g=o!==null&&(d!==R(o.amount,t.currency)||i.category!==o.category||i.title!==o.title),_=ye(r.value.amount,t.currency);return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`expense`,title:c?`Edit expense`:r.value.title.value.trim()?r.value.title.value:`Untitled expense`},c?_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(y.Field,{error:!p&&`Enter an amount from 0 to 1,000,000,000,000.`,label:t.currency===`USD`?`Amount`:`Amount (${t.currency})`},r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),i.amount):_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Amount`,value:i.amount,onChange:e=>a(t=>({...t,amount:e})),style:[V.input]})),[{key:`title`,label:`Description`,valid:m,validation:`Add a description using 160 characters or fewer.`},{key:`category`,label:`Category`,valid:h,validation:`Use 80 characters or fewer.`}].map(e=>_CRAYONCORE_$REACT.createElement(y.Field,{error:!e.valid&&e.validation,key:e.key,label:e.label},r.saving?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),i[e.key]||`Uncategorized`):_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:e.label,value:i[e.key],onChange:t=>a(n=>({...n,[e.key]:t})),style:[V.input]}))),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),_CRAYONCORE_$REACT.createElement(B,{component:`expense`,disabled:r.saving,onClick:()=>{r.saving||s(null)}},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`expense`,disabled:r.saving||!r.ready||!g||!p||!m||!h,variant:`primary`,onClick:()=>{o&&r.ready&&!r.saving&&g&&p&&m&&h&&r.set(()=>({...d!==R(o.amount,t.currency)&&{amount:d},...i.category!==o.category&&{category:{value:i.category}},...i.title!==o.title&&{title:{value:i.title}}}),()=>s(null))}},r.saving?`Saving…`:`Save changes`)),r.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`)):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(l.Text,{animated:`numeric`,...u.props(E.display,sn.amount(_.length))},_),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),r.value.category.value.trim()?r.value.category.value:`Uncategorized`)),!c&&_CRAYONCORE_$REACT.createElement(B,{component:`expense`,disabled:!r.ready||r.saving,icon:`pencil`,onClick:()=>{let e={amount:_,category:r.value.category.value,title:r.value.title.value};s(e),a(e)}},`Edit expense`)))}function Zt(e){let t=D.unitConverter.props.parse(e),n=D.unitConverter.storeSchema,r=H({name:t.id??`KowalskiUnitConverter`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({from:{value:t.from},to:{value:t.to},value:t.value})}),i=[{label:`Meters`,value:`m`},{label:`Kilometers`,value:`km`},{label:`Miles`,value:`mi`},{label:`Feet`,value:`ft`},{label:`Kilograms`,value:`kg`},{label:`Grams`,value:`g`},{label:`Pounds`,value:`lb`},{label:`Celsius`,value:`c`},{label:`Fahrenheit`,value:`f`},{label:`Kelvin`,value:`k`}],a=[{from:`m`,label:`Length`,to:`ft`},{from:`kg`,label:`Weight`,to:`lb`},{from:`c`,label:`Temperature`,to:`f`}],o=A[r.value.from.value].dimension,s=i.filter(e=>A[e.value].dimension===o),c=i.find(e=>e.value===r.value.from.value),d=i.find(e=>e.value===r.value.to.value),p=L.formatNumber(r.value.value,{format:`decimal`}),[m,h]=(0,f.useState)(p),[g,_]=(0,f.useState)();(0,f.useEffect)(()=>{if(r.error&&r.ready){_(e=>e??m);return}g===void 0&&h(e=>R(e)===r.value.value?e:p)},[m,g,r.error,r.ready,r.value.value,p]);let b=Number.isFinite(R(m)),x=he(b?R(m):r.value.value,r.value.from.value,r.value.to.value),S=b?Number.isFinite(x)?L.formatNumber(x,{notation:Math.abs(x)>=1e9||x!==0&&Math.abs(x)<1e-6?`scientific`:`standard`,...Math.abs(x)<1?{maximumSignificantDigits:4}:{maximumFractionDigits:3}}):`Out of range`:`—`;return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`unitConverter`,title:t.title},_CRAYONCORE_$REACT.createElement(y.Segmented,{disabled:!r.ready,options:a.map(e=>({label:e.label,value:e.label})),value:a.find(e=>A[e.from].dimension===o)?.label,onChange:e=>{let t=a.find(t=>t.label===e);t&&r.set(e=>A[e.from.value].dimension===A[t.from].dimension?{}:{from:{value:t.from},to:{value:t.to}})}}),_CRAYONCORE_$REACT.createElement(y.Field,{error:!b&&`Enter a valid number.`,label:`From`},r.ready?_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Value`,value:m,onChange:e=>{h(e),_(e),Number.isFinite(R(e))&&r.set(()=>({value:R(e)}),()=>_(t=>t===e?void 0:t))},style:[V.input]}):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),m),r.ready?_CRAYONCORE_$REACT.createElement(v.Picker,{label:`From unit`,value:c?.label,onChange:e=>{r.set(t=>{let n=i.find(t=>t.label===e);return n&&A[n.value].dimension===A[t.to.value].dimension?{from:{value:n.value}}:{}})},style:V.input},s.map(e=>_CRAYONCORE_$REACT.createElement(l.Text,{key:e.value,value:e.label},e.label))):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),c?.label),r.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving changes…`),g!==void 0&&r.ready&&b&&R(m)!==r.value.value&&_CRAYONCORE_$REACT.createElement(B,{component:`unitConverter`,disabled:r.saving,onClick:()=>r.set(()=>({value:R(m)}),()=>_(e=>e===m?void 0:e))},`Retry saving value`)),_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h1,on.result),S),r.ready?_CRAYONCORE_$REACT.createElement(v.Picker,{label:`To unit`,value:d?.label,onChange:e=>{r.set(t=>{let n=i.find(t=>t.label===e);return n&&A[n.value].dimension===A[t.from.value].dimension?{to:{value:n.value}}:{}})},style:V.input},s.map(e=>_CRAYONCORE_$REACT.createElement(l.Text,{key:e.value,value:e.label},e.label))):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text),d?.label)),_CRAYONCORE_$REACT.createElement(B,{component:`unitConverter`,icon:`arrow.left.arrow.right`,disabled:!r.ready,onClick:()=>{r.set(e=>({from:e.to,to:e.from}))}},`Swap units`))}function Qt(e){let t=D.calculator.props.parse(e),n=D.calculator.storeSchema,r=H({name:t.id??`KowalskiCalculator`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({calculation:It(t)})}),i=r.value.calculation,a=Bt(i.entry);return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`calculator`,title:t.title},_CRAYONCORE_$REACT.createElement(xe,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,an.equation),zt(i)),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.display,an.value(a.length)),a),i.phase===`error`&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,an.error),i.operator===`/`&&i.right===0?`Cannot divide by zero`:`Number out of range`)),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`xrvj5dj x138sq3e x1sipb5g`},K.map(e=>{let t=e===`+`||e===`-`||e===`*`||e===`/`,n=e===`backspace`||e===`clear`||e===`sign`||e===`%`,a=t&&i.phase===`operator`&&i.operator===e;return _CRAYONCORE_$REACT.createElement(v.Button,{accessibilityLabel:e===`backspace`?`⌫: delete last digit`:Rt(i,e),key:e,disabled:!r.ready,selected:a,onClick:()=>{r.set(t=>({calculation:Lt(t.calculation,e)}))},style:[w.secondary,(t||n)&&an.operation,e===`=`&&w.primary,an.key,n&&an.utility,t&&an.operator]},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),Rt(i,e)))})))}function $t(e){let t=D.randomPicker.props.parse(e),n=D.randomPicker.storeSchema,r=t.id??`KowalskiRandomPicker`,[i,a]=(0,f.useState)(!1),o=H({name:r,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({})}),s=t.mode===`list`?{mode:t.mode,options:t.options}:t.mode===`range`?{maximum:t.maximum,minimum:t.minimum,mode:t.mode}:{mode:t.mode},c=JSON.stringify(s),d=L.formatters.getNumberFormat(L.locale),p=t.mode===`range`?`${d.format(t.minimum)} to ${d.format(t.maximum)}, inclusive`:void 0,{ready:m,set:h,value:g}=o,_=g.result&&(0,be.isEqual)(g.result.domain,s)?g.result.value:null,b=typeof _==`number`?d.format(_):_,x=t.mode===`dice`?`You rolled`:t.mode===`coin`?`It landed on`:`Your pick`,S=(0,f.useMemo)(()=>({}),[r,t.scope]);return(0,f.useEffect)(()=>{let e=JSON.stringify([c,t.revision,g.result]);m&&S.key!==e&&t.revision>=g.configurationRevision&&g.result&&JSON.stringify(g.result.domain)!==c&&(S.key=e,h({result:null}))},[S,t.revision,c,m,h,g.configurationRevision,g.result]),_CRAYONCORE_$REACT.createElement(z,{onRetry:o.retry,notice:o.error,component:`randomPicker`,title:t.title,detail:p},t.mode===`list`&&_CRAYONCORE_$REACT.createElement(y.Field,{label:`Choices`},_CRAYONCORE_$REACT.createElement(Se,null,t.options.slice(0,i?t.options.length:4).map((e,t)=>_CRAYONCORE_$REACT.createElement(y.List.Item,{key:t,label:`${L.formatNumber(t+1)}. ${e}`,trailing:_===e?_CRAYONCORE_$REACT.createElement(l.Icon,{name:`checkmark`,...u.props(T.accent)}):void 0}))),t.options.length>4&&_CRAYONCORE_$REACT.createElement(v.Button,{onClick:()=>a(e=>!e),style:[w.quiet,tn.disclosure]},_CRAYONCORE_$REACT.createElement(l.Text,null,i?`Show fewer`:`Show all ${L.formatNumber(t.options.length)} options`))),_CRAYONCORE_$REACT.createElement(xe,{style:tn.stage},!o.ready&&!o.error?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Loading last result…`):t.mode===`coin`||t.mode===`dice`?_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),_===null?t.mode===`coin`?`Heads or tails?`:`Ready to roll`:x),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.surface,tn.face,t.mode===`coin`&&tn.coin),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.display,tn.faceValue,t.mode===`coin`&&_!==null&&tn.coinValue),b??`?`))):b===null?_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`No pick yet`):_CRAYONCORE_$REACT.createElement(_CRAYONCORE_$REACT.Fragment,null,_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),x),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.display,tn.result(b.length),t.mode===`list`&&tn.listResult),b))),o.saving&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`Saving pick…`),_CRAYONCORE_$REACT.createElement(B,{component:`randomPicker`,icon:`shuffle`,size:`lg`,variant:`primary`,disabled:!o.ready,onClick:()=>{o.set(()=>({result:{domain:s,value:ve(s,Math.random())}}))}},t.mode===`coin`?_===null?`Flip coin`:`Flip again`:t.mode===`dice`?_===null?`Roll die`:`Roll again`:_===null?`Pick one`:`Pick again`))}function en(e){let t=D.colorPalette.props.parse(e),n=D.colorPalette.storeSchema,r=H({name:t.id??`KowalskiColorPalette`,revision:t.revision,schema:n,scope:t.scope,seed:n.parse({color:{value:t.color}})}),i=r.value.color.value,[a,o]=(0,f.useState)(null),[s,c]=(0,f.useState)(i.toLowerCase()),d=a!==null,p=`#${a??``}`,m=D.colorPalette.props.shape.color.safeParse(p).success,h=!r.ready||r.saving||d&&!m,g=!r.ready||d,_=(0,be.uniqBy)([{label:`Darker`,mix:-.6},{label:`Dark`,mix:-.3},{label:`Base`,mix:0},{label:`Light`,mix:.3},{label:`Lighter`,mix:.6}].map(e=>{let t=cn(s,e.mix);return{color:t,label:t===s?`Base`:e.label}}),`color`);(0,f.useEffect)(()=>{!d&&!r.saving&&![-.6,-.3,0,.3,.6].some(e=>cn(s,e)===i.toLowerCase())&&c(i.toLowerCase())},[i,d,s,r.saving]);let b=[1,3,5].map(e=>Number.parseInt(i.slice(e,e+2),16));return _CRAYONCORE_$REACT.createElement(z,{onRetry:r.retry,notice:r.error,component:`colorPalette`,title:t.title},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1tib3ki`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.surface,rn.preview(i))),_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x1a02dak x5bzeeg x1qughib`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1tcuh5f xeuugli`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2),i.toUpperCase()),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),`RGB (${b.map(e=>L.formatNumber(e)).join(`, `)})`)))),_CRAYONCORE_$REACT.createElement(y.Field,{label:`Shades & tints`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(rn.swatches(_.length)),_.map(e=>{let t=e.color===i.toLowerCase();return _CRAYONCORE_$REACT.createElement(v.Button,{key:e.color,selected:t,disabled:g,onClick:()=>{g||r.set(()=>({color:{value:e.color}}))},style:[w.secondary,rn.swatchButton,g&&w.disabled]},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x1qjc9v5 x1c4shhz`},_CRAYONCORE_$REACT.createElement(l.Flex,u.props(T.surface,rn.swatch(e.color)),t&&_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1ckma9v x1kthbf2 x1dmkooz xdnt39p xl56j7k xgwenil`},_CRAYONCORE_$REACT.createElement(l.Icon,{name:`checkmark`}))),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.label,rn.centered),e.label),_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted,rn.centered),e.color.toUpperCase())))})),(r.saving||!r.ready&&!r.error||d)&&_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.muted),r.saving?`Saving color…`:d?`Finish editing to choose a shade.`:`Loading saved color…`)),d&&_CRAYONCORE_$REACT.createElement(y.Field,{error:!m&&`Enter six digits using 0–9 and A–F.`,label:`Hex color`},_CRAYONCORE_$REACT.createElement(l.Flex,{className:`x6s0dn4 x1q0g3np x138sq3e`},_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.h2,rn.prefix),`#`),r.ready&&!r.saving?_CRAYONCORE_$REACT.createElement(v.Input,{placeholder:`Hex color`,value:a,onChange:e=>o(e.replace(/^#/,``).toUpperCase()),style:[rn.input]}):_CRAYONCORE_$REACT.createElement(l.Text,u.props(E.text,rn.input),a))),_CRAYONCORE_$REACT.createElement(l.Flex,u.props(V.actions),d&&_CRAYONCORE_$REACT.createElement(B,{component:`colorPalette`,disabled:r.saving,onClick:()=>o(null)},`Cancel`),_CRAYONCORE_$REACT.createElement(B,{component:`colorPalette`,disabled:h,variant:d?`primary`:`secondary`,onClick:()=>{h||(d?p.toLowerCase()===i.toLowerCase()?o(null):r.set(()=>({color:{value:p}}),()=>{c(p.toLowerCase()),o(null)}):o(i.slice(1).toUpperCase()))}},r.saving&&d?`Saving…`:d?`Done`:`Edit hex`)))}var tn={coin:{kaIpWk:`x7duk5r`,$$css:!0},coinValue:{kGuDYH:`x1gmppj9`,kLWn49:`xbz77kw`,$$css:!0},disclosure:{kSGwAc:`xqcrz7y`,kE3dHu:`x1uhho1l`,kpe85a:`x1xpa7k`,$$css:!0},face:{kGNEyG:`x6s0dn4`,kaIpWk:`x9rthzg`,kZKoxP:`x6glvpn`,kjj79g:`xl56j7k`,kzqmXN:`x3yymcs`,$$css:!0},faceValue:{k9WMMc:`x2b8uid`,$$css:!0},listResult:{kGuDYH:`x1gmppj9`,kLWn49:`xbz77kw`,$$css:!0},result:e=>[Ut,{kGuDYH:(e>14?S[`2xl`]:e>8?S[`4xl`]:C.displaySize)==null?e>14?S[`2xl`]:e>8?S[`4xl`]:C.displaySize:`xdmh292`,kLWn49:(e>14?S[`2xlLeading`]:e>8?S[`4xlLeading`]:C.displayLeading)==null?e>14?S[`2xlLeading`]:e>8?S[`4xlLeading`]:C.displayLeading:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>14?S[`2xl`]:e>8?S[`4xl`]:C.displaySize),"--x-lineHeight":(e>14?S[`2xlLeading`]:e>8?S[`4xlLeading`]:C.displayLeading)==null?void 0:e>14?S[`2xlLeading`]:e>8?S[`4xlLeading`]:C.displayLeading}],stage:{kGNEyG:`x6s0dn4`,kOIVth:`x1tib3ki`,kjj79g:`xl56j7k`,$$css:!0}},nn={amount:e=>[{kGuDYH:(e>16?S.lg:e>9?S[`4xl`]:C.displaySize)==null?e>16?S.lg:e>9?S[`4xl`]:C.displaySize:`xdmh292`,kLWn49:(e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading)==null?e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>16?S.lg:e>9?S[`4xl`]:C.displaySize),"--x-lineHeight":(e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading)==null?void 0:e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading}],centered:{k9WMMc:`x2b8uid`,$$css:!0}},rn={centered:{k9WMMc:`x2b8uid`,$$css:!0},input:{kzQI83:`x1iyjqo2`,k7Eaqz:`xeuugli`,$$css:!0},prefix:{kmuXW:`x2lah0s`,$$css:!0},preview:e=>[Wt,{kWkggS:e==null?e:`xl8spv7`,$$css:!0},{"--x-backgroundColor":e??void 0}],swatch:e=>[Gt,{kWkggS:e==null?e:`xl8spv7`,$$css:!0},{"--x-backgroundColor":e??void 0}],swatchButton:{kGNEyG:`x1qjc9v5`,k7Eaqz:`xeuugli`,kGO01o:`x1hh3yso`,kE3dHu:`xes1apb`,kpe85a:`x86fdxp`,kLKAdn:`xow8rzb`,$$css:!0},swatches:e=>[Kt,{"--x-gridTemplateColumns":`repeat(${Math.min(e,3)}, minmax(0, 1fr))`==null?void 0:`repeat(${Math.min(e,3)}, minmax(0, 1fr))`}]},an={equation:{k9WMMc:`x1hr2gdg`,$$css:!0},error:{k9WMMc:`x1hr2gdg`,$$css:!0},key:{kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kAzted:`x1wg09nn`,k7Eaqz:`xeuugli`,kE3dHu:`x1uhho1l`,kpe85a:`x1xpa7k`,k9WMMc:`x2b8uid`,$$css:!0},operation:{"--x9nupr4":`xb2ti4t`,$$css:!0},operator:{"--x1bctnvr":`xdsp7ug`,$$css:!0},utility:{"--x1bctnvr":`x1rstxt7`,$$css:!0},value:e=>[qt,{kGuDYH:(e>16?S.lg:e>9?S[`4xl`]:C.displaySize)==null?e>16?S.lg:e>9?S[`4xl`]:C.displaySize:`xdmh292`,kLWn49:(e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading)==null?e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>16?S.lg:e>9?S[`4xl`]:C.displaySize),"--x-lineHeight":(e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading)==null?void 0:e>16?S.lgLeading:e>9?S[`4xlLeading`]:C.displayLeading}]},on={result:{k7Eaqz:`xeuugli`,$$css:!0}},sn={amount:e=>[Jt,{kGuDYH:(e>16?S.lg:e>9?S[`2xl`]:S[`4xl`])==null?e>16?S.lg:e>9?S[`2xl`]:S[`4xl`]:`xdmh292`,kLWn49:(e>16?S.lgLeading:e>9?S[`2xlLeading`]:S[`4xlLeading`])==null?e>16?S.lgLeading:e>9?S[`2xlLeading`]:S[`4xlLeading`]:`x15dsfln`,$$css:!0},{"--x-fontSize":(e=>typeof e==`number`?e+`px`:e??void 0)(e>16?S.lg:e>9?S[`2xl`]:S[`4xl`]),"--x-lineHeight":(e>16?S.lgLeading:e>9?S[`2xlLeading`]:S[`4xlLeading`])==null?void 0:e>16?S.lgLeading:e>9?S[`2xlLeading`]:S[`4xlLeading`]}]};function cn(e,t){let n=t<0?0:255;return`#${[1,3,5].map(r=>Math.round(Number.parseInt(e.slice(r,r+2),16)*(1-Math.abs(t))+n*Math.abs(t)).toString(16).padStart(2,`0`)).join(``)}`}exports.BillSplit=Yt,exports.Bookmark=et,exports.Budget=at,exports.Calculator=Qt,exports.Checklist=_t,exports.ColorPalette=en,exports.Contact=$e,exports.Countdown=Ke,exports.Event=Xe,exports.Expense=Xt,exports.Goal=vt,exports.Habit=yt,exports.KowalskiStack=we,exports.Ledger=dt,exports.Note=tt,exports.Poll=bt,exports.RandomPicker=$t,exports.Rating=ut,exports.Recipe=wt,exports.Reminder=Ze,exports.Rotation=ct,exports.Scoreboard=ot,exports.ShoppingList=lt,exports.TaskBoard=st,exports.TimeZone=qe,exports.Timer=Ge,exports.Trip=Qe,exports.UnitConverter=Zt;
@@ -0,0 +1,8 @@
1
+ export type { KowalskiInput, KowalskiProps } from './catalog.js';
2
+ export { Countdown, Timer, TimeZone } from './clocks.js';
3
+ export { Bookmark, Contact, Event, Note, Reminder, Trip } from './details.js';
4
+ export { Budget, Ledger, Rating, Rotation, Scoreboard, ShoppingList, TaskBoard, } from './everyday.js';
5
+ export { KowalskiStack } from './frame.js';
6
+ export { Checklist, Goal, Habit, Poll } from './productivity.js';
7
+ export { Recipe } from './recipe.js';
8
+ export { BillSplit, Calculator, ColorPalette, Expense, RandomPicker, UnitConverter, } from './tools.js';
@@ -0,0 +1,8 @@
1
+ export type { KowalskiInput, KowalskiProps } from './catalog.js';
2
+ export { Countdown, Timer, TimeZone } from './clocks.js';
3
+ export { Bookmark, Contact, Event, Note, Reminder, Trip } from './details.js';
4
+ export { Budget, Ledger, Rating, Rotation, Scoreboard, ShoppingList, TaskBoard, } from './everyday.js';
5
+ export { KowalskiStack } from './frame.js';
6
+ export { Checklist, Goal, Habit, Poll } from './productivity.js';
7
+ export { Recipe } from './recipe.js';
8
+ export { BillSplit, Calculator, ColorPalette, Expense, RandomPicker, UnitConverter, } from './tools.js';