cross-country 1.2.21 → 1.2.22

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 (259) hide show
  1. package/dist/Color-F6OSRLHC-BbLcUd-T.js +575 -0
  2. package/dist/{bolt-Bw4E_fgS.js → bolt-BLbYxvOV.js} +6 -5
  3. package/dist/bundle.css +36 -31
  4. package/dist/colour-util-Bzfca_cM.js +775 -0
  5. package/dist/components/atoms/circle/__tests__/circle.test.js +2 -2
  6. package/dist/components/atoms/column/__tests__/column.test.js +2 -2
  7. package/dist/components/atoms/index.js +1 -1
  8. package/dist/components/atoms/list/index.js +4 -0
  9. package/dist/components/atoms/list/list-item/index.js +4 -0
  10. package/dist/components/atoms/list/list-item/list-item.js +20 -0
  11. package/dist/components/atoms/list/list.js +33 -0
  12. package/dist/components/atoms/radio/index.js +2 -2
  13. package/dist/components/atoms/radio/radio.js +42 -3
  14. package/dist/components/atoms/text/animate-number/animate-number.js +1 -1
  15. package/dist/components/atoms/text/index.js +1 -1
  16. package/dist/components/atoms/text/input/__stories__/state-machine-fetch-dragons.js +3 -3
  17. package/dist/components/atoms/text/input/input-text-machine.js +3 -3
  18. package/dist/components/atoms/text/input/state-machine-text-input.js +1 -1
  19. package/dist/components/atoms/text/span/__stories__/span-story.js +6 -5
  20. package/dist/components/index.js +116 -116
  21. package/dist/components/molecules/autocomplete/autocomplete-machine.js +3 -3
  22. package/dist/components/molecules/autocomplete/autocomplete.js +1 -1
  23. package/dist/components/molecules/card/amazon/amazon-card.js +7 -6
  24. package/dist/components/molecules/card/builder/card-builder-machine/card-builder-machine.js +1 -1
  25. package/dist/components/molecules/card/builder/card-builder-machine/card-service-events.js +2 -2
  26. package/dist/components/molecules/card/builder/card-builder-machine/platform-states-amazon.js +1 -1
  27. package/dist/components/molecules/card/builder/card-builder-machine/platform-states-common.js +1 -1
  28. package/dist/components/molecules/card/builder/card-builder.js +1 -1
  29. package/dist/components/molecules/card/builder/card-editor.js +7 -6
  30. package/dist/components/molecules/card/card.js +6 -5
  31. package/dist/components/molecules/carousel/carousel.js +6 -5
  32. package/dist/components/molecules/day-number/day-number.js +6 -5
  33. package/dist/components/molecules/field/field.js +6 -5
  34. package/dist/components/molecules/gold-leaf/gold-leaf-view/__tests__/gold-leaf-view.test.js +3 -3
  35. package/dist/components/molecules/gold-leaf/gold-leaf-view/controls/gold-leaf-view-controls.js +8 -7
  36. package/dist/components/molecules/gold-leaf/gold-leaf-view/email/gold-leaf-email-view.js +7 -6
  37. package/dist/components/molecules/gold-leaf/gold-leaf-view/gold-leaf-view.js +7 -6
  38. package/dist/components/molecules/gold-leaf/gold-leaf-view/index.js +1 -1
  39. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-leaf-image.js +7 -6
  40. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.js +40 -0
  41. package/dist/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-image-card.js +8 -7
  42. package/dist/components/molecules/gold-leaf/gold-leaf.js +1 -1
  43. package/dist/components/molecules/header/Header.js +10 -9
  44. package/dist/components/molecules/hero/hero.js +7 -6
  45. package/dist/components/molecules/icons/index.js +4 -3
  46. package/dist/components/molecules/icons/x/x.js +6 -5
  47. package/dist/components/molecules/index.js +8 -7
  48. package/dist/components/molecules/key-value-pairs/__tests__/key-value-pairs.js +1 -1
  49. package/dist/components/molecules/key-value-pairs/key-value-pairs.js +10 -9
  50. package/dist/components/molecules/keywords/keywords.js +6 -5
  51. package/dist/components/molecules/loading/__tests__/loading.test.js +1 -1
  52. package/dist/components/molecules/log-error-boundary/__stories__/log-error-boundary-story.js +1 -1
  53. package/dist/components/molecules/log-error-boundary/__tests__/log-error-boundary.test.js +2 -2
  54. package/dist/components/molecules/log-error-boundary/log-error-boundary.js +6 -5
  55. package/dist/components/molecules/modal/modal.js +6 -5
  56. package/dist/components/molecules/policies/index.js +4 -3
  57. package/dist/components/molecules/policies/privacy-policy.js +8 -7
  58. package/dist/components/molecules/policies/terms-of-use.js +8 -7
  59. package/dist/components/molecules/quote/quote.js +6 -5
  60. package/dist/components/molecules/radiogroup/__stories__/radio-group-form-story.js +12 -11
  61. package/dist/components/molecules/radiogroup/__stories__/radio-group-react-hook-form-story.js +15 -14
  62. package/dist/components/molecules/radiogroup/radiogroup.js +9 -9
  63. package/dist/components/molecules/related-articles/related-articles.js +15 -14
  64. package/dist/components/molecules/search/search.js +6 -5
  65. package/dist/components/molecules/stagger/stagger.js +6 -5
  66. package/dist/components/molecules/tile/corners.js +1 -1
  67. package/dist/components/molecules/tile/index.js +1 -1
  68. package/dist/components/molecules/tile/tile-interactive.js +5 -4
  69. package/dist/components/molecules/tile/tile.js +1 -1
  70. package/dist/components/molecules/time-progress/__tests__/progress.test.js +1 -1
  71. package/dist/components/molecules/time-progress/pilot/index.js +2 -3
  72. package/dist/components/molecules/time-progress/progress-over-year.js +6 -5
  73. package/dist/components/molecules/time-progress/progress.js +6 -5
  74. package/dist/components/molecules/user/anon-user.js +6 -5
  75. package/dist/components/molecules/user/user.js +7 -6
  76. package/dist/components/molecules/venn-diagram/__tests__/venn-diagram.tests.js +2 -2
  77. package/dist/components/molecules/venn-diagram/venn-diagram-circle.js +6 -5
  78. package/dist/components/molecules/venn-diagram/venn-diagram.js +6 -5
  79. package/dist/components/molecules/wallpaper/__tests__/wallpaper.tests.js +2 -2
  80. package/dist/components/molecules/wallpaper/wallpaper.js +1 -1
  81. package/dist/components/molecules/wrapper/__stories__/wrapper-children-story.js +6 -5
  82. package/dist/components/organisms/actors/actor/actor-builder-machine.js +2 -2
  83. package/dist/components/organisms/actors/actor/actor-builder.js +6 -5
  84. package/dist/components/organisms/actors/actor/actor.js +5 -4
  85. package/dist/components/organisms/actors/actor/index.js +1 -1
  86. package/dist/components/organisms/actors/animal/animal.js +1 -1
  87. package/dist/components/organisms/actors/monsters/troll/troll-machine.js +2 -2
  88. package/dist/components/organisms/actors/monsters/troll/troll.js +6 -5
  89. package/dist/components/organisms/actors/party/cleric/cleric.js +1 -1
  90. package/dist/components/organisms/actors/party/hunter/hunter.js +1 -1
  91. package/dist/components/organisms/actors/party/warrior/warrior.js +1 -1
  92. package/dist/components/organisms/actors/party/wizard/wizard.js +1 -1
  93. package/dist/components/organisms/actors/wisp/wisp.js +1 -1
  94. package/dist/components/organisms/ads/ad-card.js +6 -5
  95. package/dist/components/organisms/animation/animate-actor/animate-actor.js +6 -5
  96. package/dist/components/organisms/animation/one-day/one-day.js +15 -14
  97. package/dist/components/organisms/animation/reverse-text-animation/reverse-text-animation.js +6 -5
  98. package/dist/components/organisms/bento/layouts/five-by-four/bento-five-by-four.js +9 -8
  99. package/dist/components/organisms/bento/layouts/four-by-four/bento-four-by-four.js +6 -5
  100. package/dist/components/organisms/bento/layouts/three-by-three/bento-three-by-three.js +6 -5
  101. package/dist/components/organisms/bento/layouts/two-by-two/bento-two-by-two.js +6 -5
  102. package/dist/components/organisms/blog/__stories__/blog-story.js +9 -8
  103. package/dist/components/organisms/blog/blog-post/__stories__/blog-post-story.js +6 -5
  104. package/dist/components/organisms/blog/blog-post/blog-post-machine/build-listicle-machine.js +1 -1
  105. package/dist/components/organisms/blog/blog-post/blog-post-machine/delete-listicle-item.js +2 -2
  106. package/dist/components/organisms/blog/blog-post/blog-post-machine/load-listicle.js +2 -2
  107. package/dist/components/organisms/blog/blog-post/blog-post-machine/manage-listicle-items.js +1 -1
  108. package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle-item.js +2 -2
  109. package/dist/components/organisms/blog/blog-post/blog-post-machine/save-listicle.js +2 -2
  110. package/dist/components/organisms/blog/blog-post/blog-post-machine/update-listice-item.js +2 -2
  111. package/dist/components/organisms/blog/blog-post/blog-post.js +6 -5
  112. package/dist/components/organisms/blog/blog-post-list.js +12 -11
  113. package/dist/components/organisms/blog/blog.js +6 -5
  114. package/dist/components/organisms/branch/branch.js +6 -5
  115. package/dist/components/organisms/branches/__tests__/branch-list.test.js +6 -4
  116. package/dist/components/organisms/branches/branch-list.js +61 -39
  117. package/dist/components/organisms/branches/branches.js +7 -6
  118. package/dist/components/organisms/calendar/calendar.js +6 -5
  119. package/dist/components/organisms/charts/chart/__stories__/data-set.js +1 -1
  120. package/dist/components/organisms/charts/chart/chart-gold-leaf/chart-gold-leaf.js +4 -3
  121. package/dist/components/organisms/clusters/cluster.js +6 -5
  122. package/dist/components/organisms/json-map-tile-grid/index.js +1 -1
  123. package/dist/components/organisms/json-map-tile-grid/json-map-tile-grid.js +6 -4
  124. package/dist/components/organisms/listicle/__stories__/andor-right-click-story.js +6 -5
  125. package/dist/components/organisms/listicle/__stories__/listicle-fb-v-canada-story.js +6 -5
  126. package/dist/components/organisms/listicle/__stories__/listicle-story.js +6 -5
  127. package/dist/components/organisms/listicle/build-listicle-machine/build-listicle-machine.js +1 -1
  128. package/dist/components/organisms/listicle/build-listicle-machine/delete-listicle-item.js +2 -2
  129. package/dist/components/organisms/listicle/build-listicle-machine/load-listicle.js +2 -2
  130. package/dist/components/organisms/listicle/build-listicle-machine/manage-listicle-items.js +1 -1
  131. package/dist/components/organisms/listicle/build-listicle-machine/save-listicle-item.js +2 -2
  132. package/dist/components/organisms/listicle/build-listicle-machine/save-listicle.js +2 -2
  133. package/dist/components/organisms/listicle/build-listicle-machine/update-listice-item.js +2 -2
  134. package/dist/components/organisms/listicle/edit-listicle/edit-listicle.js +13 -12
  135. package/dist/components/organisms/listicle/edit-listicle-item-list/edit-listicle-item-list.js +6 -5
  136. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item-input.js +12 -11
  137. package/dist/components/organisms/listicle/edit-listicle-item-list/listicle-item.js +6 -5
  138. package/dist/components/organisms/listicle/listicle-builder.js +14 -13
  139. package/dist/components/organisms/listicle/listicle-item-list.js +12 -11
  140. package/dist/components/organisms/listicle/listicle.js +6 -5
  141. package/dist/components/organisms/listicle/post-link.js +7 -6
  142. package/dist/components/organisms/login/__stories__/login-story.js +6 -5
  143. package/dist/components/organisms/login/login-fetching-transition.js +6 -5
  144. package/dist/components/organisms/login/login-fields-transition.js +21 -20
  145. package/dist/components/organisms/login/login-response-transition.js +66 -11
  146. package/dist/components/organisms/login/login-submit-transition.js +6 -5
  147. package/dist/components/organisms/login/login-view.js +7 -6
  148. package/dist/components/organisms/metrics/metrics.js +6 -5
  149. package/dist/components/organisms/palettes/palettes.js +14 -12
  150. package/dist/components/organisms/player/player.js +6 -5
  151. package/dist/components/organisms/registration/password-strength-helper.js +11 -10
  152. package/dist/components/organisms/registration/post-registration.js +2 -2
  153. package/dist/components/organisms/registration/registration-form.js +6 -5
  154. package/dist/components/organisms/registration/registration-machine.js +2 -2
  155. package/dist/components/organisms/registration/registration-response.js +6 -5
  156. package/dist/components/organisms/registration/registration.js +7 -6
  157. package/dist/components/organisms/stage/stage.js +9 -8
  158. package/dist/components/organisms/survey/__stories__/build-form-story.js +6 -5
  159. package/dist/components/organisms/survey/build-form-machine.js +2 -2
  160. package/dist/components/organisms/survey/build-form.js +8 -7
  161. package/dist/components/organisms/survey/final-form.js +8 -7
  162. package/dist/components/organisms/survey/question/edit/__stories__/edit-question-story.js +6 -5
  163. package/dist/components/organisms/survey/question/edit/add-media.js +6 -5
  164. package/dist/components/organisms/survey/question/edit/add-question/__stories__/add-question-story.js +6 -5
  165. package/dist/components/organisms/survey/question/edit/add-question/add-question.js +30 -29
  166. package/dist/components/organisms/survey/question/edit/answer/answer-input.js +6 -5
  167. package/dist/components/organisms/survey/question/edit/answer-input.js +6 -5
  168. package/dist/components/organisms/survey/question/edit/edit-multiple-choice.js +6 -5
  169. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js +2 -2
  170. package/dist/components/organisms/survey/question/edit/edit-option-list/edit-option-list.js +7 -6
  171. package/dist/components/organisms/survey/question/edit/edit-option-list/option-input.js +6 -5
  172. package/dist/components/organisms/survey/question/edit/edit-option-list/option.js +7 -6
  173. package/dist/components/organisms/survey/question/edit/question-answer-input.js +6 -5
  174. package/dist/components/organisms/survey/question/take/__stories__/multiple-choice-story.js +6 -5
  175. package/dist/components/organisms/survey/question/take/__stories__/take-answer-date-time-input-story.js +6 -5
  176. package/dist/components/organisms/survey/question/take/__stories__/take-answer-input-story.js +6 -5
  177. package/dist/components/organisms/survey/question/take/inputs/input-manager.js +6 -5
  178. package/dist/components/organisms/survey/question/take/multiple-choice.js +6 -5
  179. package/dist/components/organisms/survey/question/take/take-answer-input.js +12 -11
  180. package/dist/components/organisms/tile-grid/__tests__/tile-grid.tests.js +3 -3
  181. package/dist/components/organisms/tile-grid/grid-row.js +6 -5
  182. package/dist/components/organisms/tile-grid/index.js +1 -1
  183. package/dist/components/organisms/tile-grid/island-tile-grid.js +12 -11
  184. package/dist/components/organisms/tile-grid/tile-grid.js +6 -4
  185. package/dist/components/organisms/worlds/area-of-effect/__stories__/area-of-affect-story.js +6 -5
  186. package/dist/components/organisms/worlds/area-of-effect/area-of-affect.js +31 -29
  187. package/dist/components/organisms/worlds/island/__stories__/island-story.js +18 -16
  188. package/dist/components/organisms/worlds/island/__stories__/island-util.js +25 -23
  189. package/dist/components/pages/home/headwinds/header/headwinds-header.js +6 -5
  190. package/dist/components/pages/home/headwinds/headwinds-footer.js +6 -5
  191. package/dist/components/pages/home/headwinds/headwinds-hero.js +6 -5
  192. package/dist/components/pages/home/headwinds/headwinds-sidequest.js +35 -34
  193. package/dist/components/pages/home/headwinds/home.js +9 -8
  194. package/dist/components/pages/index.js +6 -5
  195. package/dist/components/pages/profile/headwinds/headwinds-profile.js +21 -20
  196. package/dist/components/pages/profile/index.js +4 -3
  197. package/dist/components/templates/articles/article/article.js +6 -5
  198. package/dist/components/templates/home/headwinds/headwinds-home-hero.js +6 -5
  199. package/dist/components/templates/home/headwinds/headwinds-home.js +6 -5
  200. package/dist/components/templates/home/home.js +10 -9
  201. package/dist/fp-util-DZLSTUg5.js +8 -0
  202. package/dist/gold-leaf-view-CgRraK2i.js +183 -0
  203. package/dist/gold-leaf-view.module-p3mWnO60.js +17 -0
  204. package/dist/headline-DzDFQZ3e.js +11 -0
  205. package/dist/image-find-util-DMX6BcO-.js +1036 -0
  206. package/dist/index-BTF1caLu.js +2529 -0
  207. package/dist/{index-COQaJqs5.js → index-OdyFkztm.js} +3670 -2660
  208. package/dist/{index-DsigmIMS.js → index-_cvPLH70.js} +1 -1
  209. package/dist/index.esm-DGm91C_6.js +944 -0
  210. package/dist/index.js +143 -140
  211. package/dist/lib/components/atoms/list/index.d.ts +2 -0
  212. package/dist/lib/components/atoms/list/list-item/index.d.ts +2 -0
  213. package/dist/lib/components/atoms/list/list-item/list-item.d.ts +10 -0
  214. package/dist/lib/components/atoms/list/list.d.ts +12 -0
  215. package/dist/lib/components/molecules/gold-leaf/gold-leaf-view/title-image/gold-title-card.d.ts +4 -0
  216. package/dist/lib/components/organisms/branch/branch.d.ts +3 -1
  217. package/dist/lib/components/organisms/branches/__stories__/branches.stories.d.ts +7 -0
  218. package/dist/lib/components/organisms/branches/branch-list.d.ts +4 -1
  219. package/dist/lib/models/TreeModel.d.ts +12 -0
  220. package/dist/lib/models/index.d.ts +1 -0
  221. package/dist/lib/utils/golds/feed-util.d.ts +17 -0
  222. package/dist/lib/utils/index.d.ts +5 -0
  223. package/dist/list.module-pjS_KHqp.js +10 -0
  224. package/dist/{log-2a4cc478.esm-HFv7vQ7j.js → log-2a4cc478.esm-BdzQp5f-.js} +15 -15
  225. package/dist/{log-error-boundary-story-BF8rmHhr.js → log-error-boundary-story-CcyM__Yt.js} +6541 -7185
  226. package/dist/{magic-string.es-VsGWiGpd.js → magic-string.es-QkQE39Zh.js} +11 -6
  227. package/dist/{radio-BTUtRmLM.js → mobile-detect-CWVWWCSg.js} +12 -51
  228. package/dist/models/TreeModel.js +12 -0
  229. package/dist/models/index.js +3 -2
  230. package/dist/{react-spring_web.modern-nSq5Xzxb.js → react-spring_web.modern-ClBJWBW2.js} +281 -273
  231. package/dist/{react.esm-BEaxtOYu.js → react.esm-BpVcViTQ.js} +2197 -2181
  232. package/dist/string-util-D7tmqJRS.js +35 -0
  233. package/dist/table-data-BnRZ5F7y.js +16 -0
  234. package/dist/utils/golds/feed-util.js +240 -0
  235. package/dist/utils/index.js +12 -0
  236. package/dist/{vi.YFlodzP_-CjWVzrI3.js → vi.YFlodzP_-C3qjkUdf.js} +2 -2
  237. package/dist/{xstate-actors.esm-Ba6reXm_.js → xstate-actors.esm-CcLF5JHw.js} +1 -1
  238. package/dist/{xstate-react.esm-Ct8KIFgA.js → xstate-react.esm-DWdE0_Ay.js} +1 -1
  239. package/dist/{xstate.esm-Bo02HSs2.js → xstate.esm-COAqQ2fq.js} +11 -11
  240. package/package.json +4 -2
  241. package/dist/Color-ERTF36HU-DRLqcX19.js +0 -358
  242. package/dist/_getTag-CqbPZ7Cl.js +0 -449
  243. package/dist/components/organisms/branches/__stories__/branches-story.js +0 -6
  244. package/dist/components/organisms/branches/branch-list.types.js +0 -1
  245. package/dist/feed-util-CZfVh6cR.js +0 -244
  246. package/dist/fp-util-4N0NK_eU.js +0 -8
  247. package/dist/gold-leaf-view-BAGw5McJ.js +0 -117
  248. package/dist/gold-leaf-view.module-BTNjKEeW.js +0 -17
  249. package/dist/headline-DuHL8hAt.js +0 -11
  250. package/dist/image-find-util-Cl2ZJHfC.js +0 -41
  251. package/dist/index-BsYJgl86.js +0 -3853
  252. package/dist/index-Cdg9lY68.js +0 -542
  253. package/dist/index.esm-BrPDxyfz.js +0 -933
  254. package/dist/lib/components/organisms/branches/__stories__/branches-story.d.ts +0 -2
  255. package/dist/lib/components/organisms/branches/branch-list.types.d.ts +0 -5
  256. package/dist/list-BkQjCFcb.js +0 -14
  257. package/dist/list-item-DyDjznkQ.js +0 -8
  258. package/dist/login-response-transition-Dws0eBbH.js +0 -123
  259. package/dist/table-data-PGM-_ef9.js +0 -16
@@ -1,3853 +0,0 @@
1
- import { jsxs as Xn, jsx as L } from "react/jsx-runtime";
2
- import be from "./components/atoms/column/column.js";
3
- import Yr from "./components/atoms/row/row.js";
4
- import Yn, { forwardRef as qn, useState as xt, useRef as qr } from "react";
5
- import { u as Zr, a as Kr } from "./react-spring_web.modern-nSq5Xzxb.js";
6
- import "./components/atoms/group/group.js";
7
- import "./components/molecules/wrapper/wrapper.js";
8
- import "./components/molecules/wallpaper/wallpaper.js";
9
- import "./components/organisms/registration/registration-machine.js";
10
- import "./transform-DGclBZTD.js";
11
- import "./components/organisms/survey/question/edit/edit-option-list/edit-option-list-machine.js";
12
- import "./index.esm-DI2C2CaF.js";
13
- import "./react-masonry-css.module-CJ43viV7.js";
14
- import Jr from "./models/ActorModel.js";
15
- import "./models/BookModel.js";
16
- import "./models/ChapterModel.js";
17
- import "./models/PlayerModel.js";
18
- import "./models/EnemyModel.js";
19
- import "./models/ItemModel.js";
20
- import "./models/LeafModel.js";
21
- import "./models/LevelModel.js";
22
- import "./models/NeutralModel.js";
23
- import "./models/NPCModel.js";
24
- import "./models/PortholeBranchModel.js";
25
- import "./models/SettingsModel.js";
26
- import "./models/ShieldModel.js";
27
- import "./models/TileModel.js";
28
- import "./models/UserModel.js";
29
- import "./models/WeaponModel.js";
30
- import "./models/WorldModel.js";
31
- import { c as Ze } from "./clsx.m-BMVuQnLY.js";
32
- import { c as E, g as Qr } from "./index-DukGzmpD.js";
33
- import ei from "./components/molecules/tile/corners.js";
34
- import { s as je } from "./tile.module-DWYaYExr.js";
35
- const ti = [
36
- [
37
- "#69d2e7",
38
- "#a7dbd8",
39
- "#e0e4cc",
40
- "#f38630",
41
- "#fa6900"
42
- ],
43
- [
44
- "#fe4365",
45
- "#fc9d9a",
46
- "#f9cdad",
47
- "#c8c8a9",
48
- "#83af9b"
49
- ],
50
- [
51
- "#ecd078",
52
- "#d95b43",
53
- "#c02942",
54
- "#542437",
55
- "#53777a"
56
- ],
57
- [
58
- "#556270",
59
- "#4ecdc4",
60
- "#c7f464",
61
- "#ff6b6b",
62
- "#c44d58"
63
- ],
64
- [
65
- "#774f38",
66
- "#e08e79",
67
- "#f1d4af",
68
- "#ece5ce",
69
- "#c5e0dc"
70
- ],
71
- [
72
- "#e8ddcb",
73
- "#cdb380",
74
- "#036564",
75
- "#033649",
76
- "#031634"
77
- ],
78
- [
79
- "#490a3d",
80
- "#bd1550",
81
- "#e97f02",
82
- "#f8ca00",
83
- "#8a9b0f"
84
- ],
85
- [
86
- "#594f4f",
87
- "#547980",
88
- "#45ada8",
89
- "#9de0ad",
90
- "#e5fcc2"
91
- ],
92
- [
93
- "#00a0b0",
94
- "#6a4a3c",
95
- "#cc333f",
96
- "#eb6841",
97
- "#edc951"
98
- ],
99
- [
100
- "#e94e77",
101
- "#d68189",
102
- "#c6a49a",
103
- "#c6e5d9",
104
- "#f4ead5"
105
- ],
106
- [
107
- "#3fb8af",
108
- "#7fc7af",
109
- "#dad8a7",
110
- "#ff9e9d",
111
- "#ff3d7f"
112
- ],
113
- [
114
- "#d9ceb2",
115
- "#948c75",
116
- "#d5ded9",
117
- "#7a6a53",
118
- "#99b2b7"
119
- ],
120
- [
121
- "#ffffff",
122
- "#cbe86b",
123
- "#f2e9e1",
124
- "#1c140d",
125
- "#cbe86b"
126
- ],
127
- [
128
- "#efffcd",
129
- "#dce9be",
130
- "#555152",
131
- "#2e2633",
132
- "#99173c"
133
- ],
134
- [
135
- "#343838",
136
- "#005f6b",
137
- "#008c9e",
138
- "#00b4cc",
139
- "#00dffc"
140
- ],
141
- [
142
- "#413e4a",
143
- "#73626e",
144
- "#b38184",
145
- "#f0b49e",
146
- "#f7e4be"
147
- ],
148
- [
149
- "#ff4e50",
150
- "#fc913a",
151
- "#f9d423",
152
- "#ede574",
153
- "#e1f5c4"
154
- ],
155
- [
156
- "#99b898",
157
- "#fecea8",
158
- "#ff847c",
159
- "#e84a5f",
160
- "#2a363b"
161
- ],
162
- [
163
- "#655643",
164
- "#80bca3",
165
- "#f6f7bd",
166
- "#e6ac27",
167
- "#bf4d28"
168
- ],
169
- [
170
- "#00a8c6",
171
- "#40c0cb",
172
- "#f9f2e7",
173
- "#aee239",
174
- "#8fbe00"
175
- ],
176
- [
177
- "#351330",
178
- "#424254",
179
- "#64908a",
180
- "#e8caa4",
181
- "#cc2a41"
182
- ],
183
- [
184
- "#554236",
185
- "#f77825",
186
- "#d3ce3d",
187
- "#f1efa5",
188
- "#60b99a"
189
- ],
190
- [
191
- "#5d4157",
192
- "#838689",
193
- "#a8caba",
194
- "#cad7b2",
195
- "#ebe3aa"
196
- ],
197
- [
198
- "#8c2318",
199
- "#5e8c6a",
200
- "#88a65e",
201
- "#bfb35a",
202
- "#f2c45a"
203
- ],
204
- [
205
- "#fad089",
206
- "#ff9c5b",
207
- "#f5634a",
208
- "#ed303c",
209
- "#3b8183"
210
- ],
211
- [
212
- "#ff4242",
213
- "#f4fad2",
214
- "#d4ee5e",
215
- "#e1edb9",
216
- "#f0f2eb"
217
- ],
218
- [
219
- "#f8b195",
220
- "#f67280",
221
- "#c06c84",
222
- "#6c5b7b",
223
- "#355c7d"
224
- ],
225
- [
226
- "#d1e751",
227
- "#ffffff",
228
- "#000000",
229
- "#4dbce9",
230
- "#26ade4"
231
- ],
232
- [
233
- "#1b676b",
234
- "#519548",
235
- "#88c425",
236
- "#bef202",
237
- "#eafde6"
238
- ],
239
- [
240
- "#5e412f",
241
- "#fcebb6",
242
- "#78c0a8",
243
- "#f07818",
244
- "#f0a830"
245
- ],
246
- [
247
- "#bcbdac",
248
- "#cfbe27",
249
- "#f27435",
250
- "#f02475",
251
- "#3b2d38"
252
- ],
253
- [
254
- "#452632",
255
- "#91204d",
256
- "#e4844a",
257
- "#e8bf56",
258
- "#e2f7ce"
259
- ],
260
- [
261
- "#eee6ab",
262
- "#c5bc8e",
263
- "#696758",
264
- "#45484b",
265
- "#36393b"
266
- ],
267
- [
268
- "#f0d8a8",
269
- "#3d1c00",
270
- "#86b8b1",
271
- "#f2d694",
272
- "#fa2a00"
273
- ],
274
- [
275
- "#2a044a",
276
- "#0b2e59",
277
- "#0d6759",
278
- "#7ab317",
279
- "#a0c55f"
280
- ],
281
- [
282
- "#f04155",
283
- "#ff823a",
284
- "#f2f26f",
285
- "#fff7bd",
286
- "#95cfb7"
287
- ],
288
- [
289
- "#b9d7d9",
290
- "#668284",
291
- "#2a2829",
292
- "#493736",
293
- "#7b3b3b"
294
- ],
295
- [
296
- "#bbbb88",
297
- "#ccc68d",
298
- "#eedd99",
299
- "#eec290",
300
- "#eeaa88"
301
- ],
302
- [
303
- "#b3cc57",
304
- "#ecf081",
305
- "#ffbe40",
306
- "#ef746f",
307
- "#ab3e5b"
308
- ],
309
- [
310
- "#a3a948",
311
- "#edb92e",
312
- "#f85931",
313
- "#ce1836",
314
- "#009989"
315
- ],
316
- [
317
- "#300030",
318
- "#480048",
319
- "#601848",
320
- "#c04848",
321
- "#f07241"
322
- ],
323
- [
324
- "#67917a",
325
- "#170409",
326
- "#b8af03",
327
- "#ccbf82",
328
- "#e33258"
329
- ],
330
- [
331
- "#aab3ab",
332
- "#c4cbb7",
333
- "#ebefc9",
334
- "#eee0b7",
335
- "#e8caaf"
336
- ],
337
- [
338
- "#e8d5b7",
339
- "#0e2430",
340
- "#fc3a51",
341
- "#f5b349",
342
- "#e8d5b9"
343
- ],
344
- [
345
- "#ab526b",
346
- "#bca297",
347
- "#c5ceae",
348
- "#f0e2a4",
349
- "#f4ebc3"
350
- ],
351
- [
352
- "#607848",
353
- "#789048",
354
- "#c0d860",
355
- "#f0f0d8",
356
- "#604848"
357
- ],
358
- [
359
- "#b6d8c0",
360
- "#c8d9bf",
361
- "#dadabd",
362
- "#ecdbbc",
363
- "#fedcba"
364
- ],
365
- [
366
- "#a8e6ce",
367
- "#dcedc2",
368
- "#ffd3b5",
369
- "#ffaaa6",
370
- "#ff8c94"
371
- ],
372
- [
373
- "#3e4147",
374
- "#fffedf",
375
- "#dfba69",
376
- "#5a2e2e",
377
- "#2a2c31"
378
- ],
379
- [
380
- "#fc354c",
381
- "#29221f",
382
- "#13747d",
383
- "#0abfbc",
384
- "#fcf7c5"
385
- ],
386
- [
387
- "#cc0c39",
388
- "#e6781e",
389
- "#c8cf02",
390
- "#f8fcc1",
391
- "#1693a7"
392
- ],
393
- [
394
- "#1c2130",
395
- "#028f76",
396
- "#b3e099",
397
- "#ffeaad",
398
- "#d14334"
399
- ],
400
- [
401
- "#a7c5bd",
402
- "#e5ddcb",
403
- "#eb7b59",
404
- "#cf4647",
405
- "#524656"
406
- ],
407
- [
408
- "#dad6ca",
409
- "#1bb0ce",
410
- "#4f8699",
411
- "#6a5e72",
412
- "#563444"
413
- ],
414
- [
415
- "#5c323e",
416
- "#a82743",
417
- "#e15e32",
418
- "#c0d23e",
419
- "#e5f04c"
420
- ],
421
- [
422
- "#edebe6",
423
- "#d6e1c7",
424
- "#94c7b6",
425
- "#403b33",
426
- "#d3643b"
427
- ],
428
- [
429
- "#fdf1cc",
430
- "#c6d6b8",
431
- "#987f69",
432
- "#e3ad40",
433
- "#fcd036"
434
- ],
435
- [
436
- "#230f2b",
437
- "#f21d41",
438
- "#ebebbc",
439
- "#bce3c5",
440
- "#82b3ae"
441
- ],
442
- [
443
- "#b9d3b0",
444
- "#81bda4",
445
- "#b28774",
446
- "#f88f79",
447
- "#f6aa93"
448
- ],
449
- [
450
- "#3a111c",
451
- "#574951",
452
- "#83988e",
453
- "#bcdea5",
454
- "#e6f9bc"
455
- ],
456
- [
457
- "#5e3929",
458
- "#cd8c52",
459
- "#b7d1a3",
460
- "#dee8be",
461
- "#fcf7d3"
462
- ],
463
- [
464
- "#1c0113",
465
- "#6b0103",
466
- "#a30006",
467
- "#c21a01",
468
- "#f03c02"
469
- ],
470
- [
471
- "#000000",
472
- "#9f111b",
473
- "#b11623",
474
- "#292c37",
475
- "#cccccc"
476
- ],
477
- [
478
- "#382f32",
479
- "#ffeaf2",
480
- "#fcd9e5",
481
- "#fbc5d8",
482
- "#f1396d"
483
- ],
484
- [
485
- "#e3dfba",
486
- "#c8d6bf",
487
- "#93ccc6",
488
- "#6cbdb5",
489
- "#1a1f1e"
490
- ],
491
- [
492
- "#f6f6f6",
493
- "#e8e8e8",
494
- "#333333",
495
- "#990100",
496
- "#b90504"
497
- ],
498
- [
499
- "#1b325f",
500
- "#9cc4e4",
501
- "#e9f2f9",
502
- "#3a89c9",
503
- "#f26c4f"
504
- ],
505
- [
506
- "#a1dbb2",
507
- "#fee5ad",
508
- "#faca66",
509
- "#f7a541",
510
- "#f45d4c"
511
- ],
512
- [
513
- "#c1b398",
514
- "#605951",
515
- "#fbeec2",
516
- "#61a6ab",
517
- "#accec0"
518
- ],
519
- [
520
- "#5e9fa3",
521
- "#dcd1b4",
522
- "#fab87f",
523
- "#f87e7b",
524
- "#b05574"
525
- ],
526
- [
527
- "#951f2b",
528
- "#f5f4d7",
529
- "#e0dfb1",
530
- "#a5a36c",
531
- "#535233"
532
- ],
533
- [
534
- "#8dccad",
535
- "#988864",
536
- "#fea6a2",
537
- "#f9d6ac",
538
- "#ffe9af"
539
- ],
540
- [
541
- "#2d2d29",
542
- "#215a6d",
543
- "#3ca2a2",
544
- "#92c7a3",
545
- "#dfece6"
546
- ],
547
- [
548
- "#413d3d",
549
- "#040004",
550
- "#c8ff00",
551
- "#fa023c",
552
- "#4b000f"
553
- ],
554
- [
555
- "#eff3cd",
556
- "#b2d5ba",
557
- "#61ada0",
558
- "#248f8d",
559
- "#605063"
560
- ],
561
- [
562
- "#ffefd3",
563
- "#fffee4",
564
- "#d0ecea",
565
- "#9fd6d2",
566
- "#8b7a5e"
567
- ],
568
- [
569
- "#cfffdd",
570
- "#b4dec1",
571
- "#5c5863",
572
- "#a85163",
573
- "#ff1f4c"
574
- ],
575
- [
576
- "#9dc9ac",
577
- "#fffec7",
578
- "#f56218",
579
- "#ff9d2e",
580
- "#919167"
581
- ],
582
- [
583
- "#4e395d",
584
- "#827085",
585
- "#8ebe94",
586
- "#ccfc8e",
587
- "#dc5b3e"
588
- ],
589
- [
590
- "#a8a7a7",
591
- "#cc527a",
592
- "#e8175d",
593
- "#474747",
594
- "#363636"
595
- ],
596
- [
597
- "#f8edd1",
598
- "#d88a8a",
599
- "#474843",
600
- "#9d9d93",
601
- "#c5cfc6"
602
- ],
603
- [
604
- "#046d8b",
605
- "#309292",
606
- "#2fb8ac",
607
- "#93a42a",
608
- "#ecbe13"
609
- ],
610
- [
611
- "#f38a8a",
612
- "#55443d",
613
- "#a0cab5",
614
- "#cde9ca",
615
- "#f1edd0"
616
- ],
617
- [
618
- "#a70267",
619
- "#f10c49",
620
- "#fb6b41",
621
- "#f6d86b",
622
- "#339194"
623
- ],
624
- [
625
- "#ff003c",
626
- "#ff8a00",
627
- "#fabe28",
628
- "#88c100",
629
- "#00c176"
630
- ],
631
- [
632
- "#ffedbf",
633
- "#f7803c",
634
- "#f54828",
635
- "#2e0d23",
636
- "#f8e4c1"
637
- ],
638
- [
639
- "#4e4d4a",
640
- "#353432",
641
- "#94ba65",
642
- "#2790b0",
643
- "#2b4e72"
644
- ],
645
- [
646
- "#0ca5b0",
647
- "#4e3f30",
648
- "#fefeeb",
649
- "#f8f4e4",
650
- "#a5b3aa"
651
- ],
652
- [
653
- "#4d3b3b",
654
- "#de6262",
655
- "#ffb88c",
656
- "#ffd0b3",
657
- "#f5e0d3"
658
- ],
659
- [
660
- "#fffbb7",
661
- "#a6f6af",
662
- "#66b6ab",
663
- "#5b7c8d",
664
- "#4f2958"
665
- ],
666
- [
667
- "#edf6ee",
668
- "#d1c089",
669
- "#b3204d",
670
- "#412e28",
671
- "#151101"
672
- ],
673
- [
674
- "#9d7e79",
675
- "#ccac95",
676
- "#9a947c",
677
- "#748b83",
678
- "#5b756c"
679
- ],
680
- [
681
- "#fcfef5",
682
- "#e9ffe1",
683
- "#cdcfb7",
684
- "#d6e6c3",
685
- "#fafbe3"
686
- ],
687
- [
688
- "#9cddc8",
689
- "#bfd8ad",
690
- "#ddd9ab",
691
- "#f7af63",
692
- "#633d2e"
693
- ],
694
- [
695
- "#30261c",
696
- "#403831",
697
- "#36544f",
698
- "#1f5f61",
699
- "#0b8185"
700
- ],
701
- [
702
- "#aaff00",
703
- "#ffaa00",
704
- "#ff00aa",
705
- "#aa00ff",
706
- "#00aaff"
707
- ],
708
- [
709
- "#d1313d",
710
- "#e5625c",
711
- "#f9bf76",
712
- "#8eb2c5",
713
- "#615375"
714
- ],
715
- [
716
- "#ffe181",
717
- "#eee9e5",
718
- "#fad3b2",
719
- "#ffba7f",
720
- "#ff9c97"
721
- ],
722
- [
723
- "#73c8a9",
724
- "#dee1b6",
725
- "#e1b866",
726
- "#bd5532",
727
- "#373b44"
728
- ],
729
- [
730
- "#805841",
731
- "#dcf7f3",
732
- "#fffcdd",
733
- "#ffd8d8",
734
- "#f5a2a2"
735
- ]
736
- ];
737
- class ni {
738
- constructor() {
739
- }
740
- getColours() {
741
- const t = {
742
- lips: "#c0c0c0",
743
- drySoil: "#c8b51d",
744
- sand: "#efe9e2",
745
- // me
746
- glass: "#c0c8d9",
747
- numberCruncher: "#718fb4",
748
- higherGround: "#a68573",
749
- mailaise: "#4e596c",
750
- explorer: "#3d3335",
751
- blackSnout: "#120f12"
752
- };
753
- return [
754
- "lips",
755
- "drySoil",
756
- "sand",
757
- "glass",
758
- "numberCruncher",
759
- "higherGround",
760
- "mailaise",
761
- "explorer",
762
- "blackSnout"
763
- ].map((o) => t[o]);
764
- }
765
- getSplashPalette() {
766
- return [
767
- { hex: "#C1DED2", id: 0 },
768
- { hex: "#D9D9D9", id: 1 },
769
- { hex: "#EFE9E2", id: 2 },
770
- { hex: "#EEEEEE", id: 3 },
771
- { hex: "#F9EBDE", id: 4 },
772
- { hex: "#E9DACC", id: 5 }
773
- ];
774
- }
775
- getColour(t) {
776
- return globalVariable[t];
777
- }
778
- getColorPalettes(t) {
779
- return ti[t];
780
- }
781
- hexToRgb(t) {
782
- let n = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t), r = parseInt(n[1], 16), o = parseInt(n[2], 16), c = parseInt(n[3], 16);
783
- return "rgb(" + String(r) + "," + String(o) + "," + String(c) + ")";
784
- }
785
- // color credit: http://stackoverflow.com/questions/5560248/programmatically-lighten-or-darken-a-hex-color-or-rgb-and-blend-colors
786
- // note percet is a decimal like 0.5
787
- // you can effectively use getShadedColor and either pass -0.5 or 0.5 to darken or lighten a color respectively
788
- getShadedColor(t, n) {
789
- let r = t.split(","), o = n < 0 ? 0 : 255, c = n < 0 ? n * -1 : n, d = parseInt(r[0].slice(4)), s = parseInt(r[1]), a = parseInt(r[2]);
790
- return "rgb(" + (Math.round((o - d) * c) + d) + "," + (Math.round((o - s) * c) + s) + "," + (Math.round((o - a) * c) + a) + ")";
791
- }
792
- getBlendedColor(t, n, r) {
793
- let o = t.split(","), c = n.split(","), d = parseInt(o[0].slice(4)), s = parseInt(o[1]), a = parseInt(o[2]);
794
- return "rgb(" + (Math.round((parseInt(c[0].slice(4)) - d) * r) + d) + "," + (Math.round((parseInt(c[1]) - s) * r) + s) + "," + (Math.round((parseInt(c[2]) - a) * r) + a) + ")";
795
- }
796
- // I can't exactly remember what is colorData?! I think it's picked from the canvas?!
797
- lighten(t) {
798
- let n = t.lightCount * 10 / 100;
799
- return t.originalColor, t.curColor = this.getBlendedColor(t.originalColor, "rgb(255,255,255)", n), t.lightCount >= 10 && (t.lightCount = 9), t.lightCount++, t.darkCount <= 0 && (t.darkCount = 1), t.darkCount--, t;
800
- }
801
- darken(t) {
802
- let n = t.darkCount * 10 / 100;
803
- return t.originalColor, t.curColor = this.getBlendedColor(t.originalColor, "rgb(0,0,0)", n), t.darkCount >= 10 && (t.darkCount = 9), t.darkCount++, t.lightCount <= 0 && (t.lightCount = 1), t.lightCount--, t;
804
- }
805
- }
806
- const Dt = new ni(), ri = { fill: "#eee", value: 0, id: 0 }, Ge = 5, ii = qn(
807
- ({
808
- isSelected: e = !1,
809
- setSelected: t,
810
- isInteractive: n = !0,
811
- customClass: r,
812
- size: o = 100,
813
- cornerColor: c = "#ddd",
814
- customStyle: d = {},
815
- type: s,
816
- model: a = ri,
817
- springModel: l = null,
818
- borderRadius: f = 10,
819
- children: p,
820
- //sample = 'light-grey', // shallow-water
821
- ...x
822
- }, U) => {
823
- const [b, g] = xt(!1), { fill: C, id: ce } = a, ie = {
824
- ...d,
825
- width: o,
826
- height: o,
827
- backgroundColor: C,
828
- padding: 0
829
- }, $ = () => t ? t(e ? null : a) : null, A = Zr(l), Z = () => {
830
- console.log("Tile onMouseEnter"), g(!0);
831
- }, oe = () => {
832
- console.log("Tile onMouseLeave"), g(!1);
833
- };
834
- return console.log("InteractiveTile", { model: a, customStyle: d }), /* @__PURE__ */ Xn(
835
- be,
836
- {
837
- customClass: Ze(
838
- je.tile,
839
- je.interactive,
840
- { [je.in]: !e, [je.out]: e },
841
- r
842
- ),
843
- hasChildrenCentered: !0,
844
- customStyle: {
845
- ...ie,
846
- backgroundColor: C,
847
- borderRadius: 8,
848
- margin: 2,
849
- borderColor: C
850
- },
851
- onClick: $,
852
- onMouseEnter: Z,
853
- onMouseLeave: oe,
854
- ref: U,
855
- ...x,
856
- children: [
857
- l ? /* @__PURE__ */ L(
858
- Kr.div,
859
- {
860
- style: {
861
- ...ie,
862
- backgroundColor: A.backgroundColor.to((K) => K),
863
- width: o - Ge,
864
- height: o - Ge
865
- }
866
- }
867
- ) : /* @__PURE__ */ L(
868
- be,
869
- {
870
- hasChildrenCentered: !0,
871
- customStyle: {
872
- ...ie,
873
- width: o - Ge,
874
- height: o - Ge,
875
- borderRadius: f,
876
- backgroundColor: C
877
- },
878
- children: p
879
- }
880
- ),
881
- /* @__PURE__ */ L(ei, { size: 100, isHovered: b, cornerColor: a.fill })
882
- ]
883
- }
884
- );
885
- }
886
- ), oi = qn((e, t) => {
887
- const { type: n } = e;
888
- switch (n) {
889
- case "interactive":
890
- default:
891
- return /* @__PURE__ */ L(ii, { ...e, ref: t });
892
- }
893
- });
894
- var Zn = {}, kt = {}, Pt = {};
895
- Object.defineProperty(Pt, "__esModule", { value: !0 });
896
- Pt.default = ci;
897
- var _n = "html", An = "head", Be = "body", ai = /<([a-zA-Z]+[0-9]?)/, Cn = /<head[^]*>/i, Sn = /<body[^]*>/i, qe = function(e, t) {
898
- throw new Error("This browser does not support `document.implementation.createHTMLDocument`");
899
- }, Ot = function(e, t) {
900
- throw new Error("This browser does not support `DOMParser.prototype.parseFromString`");
901
- }, On = typeof window == "object" && window.DOMParser;
902
- if (typeof On == "function") {
903
- var li = new On(), si = "text/html";
904
- Ot = function(e, t) {
905
- return t && (e = "<".concat(t, ">").concat(e, "</").concat(t, ">")), li.parseFromString(e, si);
906
- }, qe = Ot;
907
- }
908
- if (typeof document == "object" && document.implementation) {
909
- var ze = document.implementation.createHTMLDocument();
910
- qe = function(e, t) {
911
- if (t) {
912
- var n = ze.documentElement.querySelector(t);
913
- return n && (n.innerHTML = e), ze;
914
- }
915
- return ze.documentElement.innerHTML = e, ze;
916
- };
917
- }
918
- var $e = typeof document == "object" && document.createElement("template"), wt;
919
- $e && $e.content && (wt = function(e) {
920
- return $e.innerHTML = e, $e.content.childNodes;
921
- });
922
- function ci(e) {
923
- var t, n, r = e.match(ai), o = r && r[1] ? r[1].toLowerCase() : "";
924
- switch (o) {
925
- case _n: {
926
- var c = Ot(e);
927
- if (!Cn.test(e)) {
928
- var d = c.querySelector(An);
929
- (t = d == null ? void 0 : d.parentNode) === null || t === void 0 || t.removeChild(d);
930
- }
931
- if (!Sn.test(e)) {
932
- var d = c.querySelector(Be);
933
- (n = d == null ? void 0 : d.parentNode) === null || n === void 0 || n.removeChild(d);
934
- }
935
- return c.querySelectorAll(_n);
936
- }
937
- case An:
938
- case Be: {
939
- var s = qe(e).querySelectorAll(o);
940
- return Sn.test(e) && Cn.test(e) ? s[0].parentNode.childNodes : s;
941
- }
942
- default: {
943
- if (wt)
944
- return wt(e);
945
- var d = qe(e, Be).querySelector(Be);
946
- return d.childNodes;
947
- }
948
- }
949
- }
950
- var Ke = {}, Kn = {}, Mt = {};
951
- (function(e) {
952
- Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
953
- var t;
954
- (function(r) {
955
- r.Root = "root", r.Text = "text", r.Directive = "directive", r.Comment = "comment", r.Script = "script", r.Style = "style", r.Tag = "tag", r.CDATA = "cdata", r.Doctype = "doctype";
956
- })(t = e.ElementType || (e.ElementType = {}));
957
- function n(r) {
958
- return r.type === t.Tag || r.type === t.Script || r.type === t.Style;
959
- }
960
- e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
961
- })(Mt);
962
- var T = {}, te = E && E.__extends || /* @__PURE__ */ function() {
963
- var e = function(t, n) {
964
- return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
965
- r.__proto__ = o;
966
- } || function(r, o) {
967
- for (var c in o) Object.prototype.hasOwnProperty.call(o, c) && (r[c] = o[c]);
968
- }, e(t, n);
969
- };
970
- return function(t, n) {
971
- if (typeof n != "function" && n !== null)
972
- throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
973
- e(t, n);
974
- function r() {
975
- this.constructor = t;
976
- }
977
- t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
978
- };
979
- }(), Ie = E && E.__assign || function() {
980
- return Ie = Object.assign || function(e) {
981
- for (var t, n = 1, r = arguments.length; n < r; n++) {
982
- t = arguments[n];
983
- for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
984
- }
985
- return e;
986
- }, Ie.apply(this, arguments);
987
- };
988
- Object.defineProperty(T, "__esModule", { value: !0 });
989
- T.cloneNode = T.hasChildren = T.isDocument = T.isDirective = T.isComment = T.isText = T.isCDATA = T.isTag = T.Element = T.Document = T.CDATA = T.NodeWithChildren = T.ProcessingInstruction = T.Comment = T.Text = T.DataNode = T.Node = void 0;
990
- var G = Mt, Lt = (
991
- /** @class */
992
- function() {
993
- function e() {
994
- this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
995
- }
996
- return Object.defineProperty(e.prototype, "parentNode", {
997
- // Read-write aliases for properties
998
- /**
999
- * Same as {@link parent}.
1000
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1001
- */
1002
- get: function() {
1003
- return this.parent;
1004
- },
1005
- set: function(t) {
1006
- this.parent = t;
1007
- },
1008
- enumerable: !1,
1009
- configurable: !0
1010
- }), Object.defineProperty(e.prototype, "previousSibling", {
1011
- /**
1012
- * Same as {@link prev}.
1013
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1014
- */
1015
- get: function() {
1016
- return this.prev;
1017
- },
1018
- set: function(t) {
1019
- this.prev = t;
1020
- },
1021
- enumerable: !1,
1022
- configurable: !0
1023
- }), Object.defineProperty(e.prototype, "nextSibling", {
1024
- /**
1025
- * Same as {@link next}.
1026
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1027
- */
1028
- get: function() {
1029
- return this.next;
1030
- },
1031
- set: function(t) {
1032
- this.next = t;
1033
- },
1034
- enumerable: !1,
1035
- configurable: !0
1036
- }), e.prototype.cloneNode = function(t) {
1037
- return t === void 0 && (t = !1), Ft(this, t);
1038
- }, e;
1039
- }()
1040
- );
1041
- T.Node = Lt;
1042
- var Je = (
1043
- /** @class */
1044
- function(e) {
1045
- te(t, e);
1046
- function t(n) {
1047
- var r = e.call(this) || this;
1048
- return r.data = n, r;
1049
- }
1050
- return Object.defineProperty(t.prototype, "nodeValue", {
1051
- /**
1052
- * Same as {@link data}.
1053
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1054
- */
1055
- get: function() {
1056
- return this.data;
1057
- },
1058
- set: function(n) {
1059
- this.data = n;
1060
- },
1061
- enumerable: !1,
1062
- configurable: !0
1063
- }), t;
1064
- }(Lt)
1065
- );
1066
- T.DataNode = Je;
1067
- var Jn = (
1068
- /** @class */
1069
- function(e) {
1070
- te(t, e);
1071
- function t() {
1072
- var n = e !== null && e.apply(this, arguments) || this;
1073
- return n.type = G.ElementType.Text, n;
1074
- }
1075
- return Object.defineProperty(t.prototype, "nodeType", {
1076
- get: function() {
1077
- return 3;
1078
- },
1079
- enumerable: !1,
1080
- configurable: !0
1081
- }), t;
1082
- }(Je)
1083
- );
1084
- T.Text = Jn;
1085
- var Qn = (
1086
- /** @class */
1087
- function(e) {
1088
- te(t, e);
1089
- function t() {
1090
- var n = e !== null && e.apply(this, arguments) || this;
1091
- return n.type = G.ElementType.Comment, n;
1092
- }
1093
- return Object.defineProperty(t.prototype, "nodeType", {
1094
- get: function() {
1095
- return 8;
1096
- },
1097
- enumerable: !1,
1098
- configurable: !0
1099
- }), t;
1100
- }(Je)
1101
- );
1102
- T.Comment = Qn;
1103
- var er = (
1104
- /** @class */
1105
- function(e) {
1106
- te(t, e);
1107
- function t(n, r) {
1108
- var o = e.call(this, r) || this;
1109
- return o.name = n, o.type = G.ElementType.Directive, o;
1110
- }
1111
- return Object.defineProperty(t.prototype, "nodeType", {
1112
- get: function() {
1113
- return 1;
1114
- },
1115
- enumerable: !1,
1116
- configurable: !0
1117
- }), t;
1118
- }(Je)
1119
- );
1120
- T.ProcessingInstruction = er;
1121
- var Qe = (
1122
- /** @class */
1123
- function(e) {
1124
- te(t, e);
1125
- function t(n) {
1126
- var r = e.call(this) || this;
1127
- return r.children = n, r;
1128
- }
1129
- return Object.defineProperty(t.prototype, "firstChild", {
1130
- // Aliases
1131
- /** First child of the node. */
1132
- get: function() {
1133
- var n;
1134
- return (n = this.children[0]) !== null && n !== void 0 ? n : null;
1135
- },
1136
- enumerable: !1,
1137
- configurable: !0
1138
- }), Object.defineProperty(t.prototype, "lastChild", {
1139
- /** Last child of the node. */
1140
- get: function() {
1141
- return this.children.length > 0 ? this.children[this.children.length - 1] : null;
1142
- },
1143
- enumerable: !1,
1144
- configurable: !0
1145
- }), Object.defineProperty(t.prototype, "childNodes", {
1146
- /**
1147
- * Same as {@link children}.
1148
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1149
- */
1150
- get: function() {
1151
- return this.children;
1152
- },
1153
- set: function(n) {
1154
- this.children = n;
1155
- },
1156
- enumerable: !1,
1157
- configurable: !0
1158
- }), t;
1159
- }(Lt)
1160
- );
1161
- T.NodeWithChildren = Qe;
1162
- var tr = (
1163
- /** @class */
1164
- function(e) {
1165
- te(t, e);
1166
- function t() {
1167
- var n = e !== null && e.apply(this, arguments) || this;
1168
- return n.type = G.ElementType.CDATA, n;
1169
- }
1170
- return Object.defineProperty(t.prototype, "nodeType", {
1171
- get: function() {
1172
- return 4;
1173
- },
1174
- enumerable: !1,
1175
- configurable: !0
1176
- }), t;
1177
- }(Qe)
1178
- );
1179
- T.CDATA = tr;
1180
- var nr = (
1181
- /** @class */
1182
- function(e) {
1183
- te(t, e);
1184
- function t() {
1185
- var n = e !== null && e.apply(this, arguments) || this;
1186
- return n.type = G.ElementType.Root, n;
1187
- }
1188
- return Object.defineProperty(t.prototype, "nodeType", {
1189
- get: function() {
1190
- return 9;
1191
- },
1192
- enumerable: !1,
1193
- configurable: !0
1194
- }), t;
1195
- }(Qe)
1196
- );
1197
- T.Document = nr;
1198
- var rr = (
1199
- /** @class */
1200
- function(e) {
1201
- te(t, e);
1202
- function t(n, r, o, c) {
1203
- o === void 0 && (o = []), c === void 0 && (c = n === "script" ? G.ElementType.Script : n === "style" ? G.ElementType.Style : G.ElementType.Tag);
1204
- var d = e.call(this, o) || this;
1205
- return d.name = n, d.attribs = r, d.type = c, d;
1206
- }
1207
- return Object.defineProperty(t.prototype, "nodeType", {
1208
- get: function() {
1209
- return 1;
1210
- },
1211
- enumerable: !1,
1212
- configurable: !0
1213
- }), Object.defineProperty(t.prototype, "tagName", {
1214
- // DOM Level 1 aliases
1215
- /**
1216
- * Same as {@link name}.
1217
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
1218
- */
1219
- get: function() {
1220
- return this.name;
1221
- },
1222
- set: function(n) {
1223
- this.name = n;
1224
- },
1225
- enumerable: !1,
1226
- configurable: !0
1227
- }), Object.defineProperty(t.prototype, "attributes", {
1228
- get: function() {
1229
- var n = this;
1230
- return Object.keys(this.attribs).map(function(r) {
1231
- var o, c;
1232
- return {
1233
- name: r,
1234
- value: n.attribs[r],
1235
- namespace: (o = n["x-attribsNamespace"]) === null || o === void 0 ? void 0 : o[r],
1236
- prefix: (c = n["x-attribsPrefix"]) === null || c === void 0 ? void 0 : c[r]
1237
- };
1238
- });
1239
- },
1240
- enumerable: !1,
1241
- configurable: !0
1242
- }), t;
1243
- }(Qe)
1244
- );
1245
- T.Element = rr;
1246
- function ir(e) {
1247
- return (0, G.isTag)(e);
1248
- }
1249
- T.isTag = ir;
1250
- function or(e) {
1251
- return e.type === G.ElementType.CDATA;
1252
- }
1253
- T.isCDATA = or;
1254
- function ar(e) {
1255
- return e.type === G.ElementType.Text;
1256
- }
1257
- T.isText = ar;
1258
- function lr(e) {
1259
- return e.type === G.ElementType.Comment;
1260
- }
1261
- T.isComment = lr;
1262
- function sr(e) {
1263
- return e.type === G.ElementType.Directive;
1264
- }
1265
- T.isDirective = sr;
1266
- function cr(e) {
1267
- return e.type === G.ElementType.Root;
1268
- }
1269
- T.isDocument = cr;
1270
- function fi(e) {
1271
- return Object.prototype.hasOwnProperty.call(e, "children");
1272
- }
1273
- T.hasChildren = fi;
1274
- function Ft(e, t) {
1275
- t === void 0 && (t = !1);
1276
- var n;
1277
- if (ar(e))
1278
- n = new Jn(e.data);
1279
- else if (lr(e))
1280
- n = new Qn(e.data);
1281
- else if (ir(e)) {
1282
- var r = t ? bt(e.children) : [], o = new rr(e.name, Ie({}, e.attribs), r);
1283
- r.forEach(function(a) {
1284
- return a.parent = o;
1285
- }), e.namespace != null && (o.namespace = e.namespace), e["x-attribsNamespace"] && (o["x-attribsNamespace"] = Ie({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (o["x-attribsPrefix"] = Ie({}, e["x-attribsPrefix"])), n = o;
1286
- } else if (or(e)) {
1287
- var r = t ? bt(e.children) : [], c = new tr(r);
1288
- r.forEach(function(l) {
1289
- return l.parent = c;
1290
- }), n = c;
1291
- } else if (cr(e)) {
1292
- var r = t ? bt(e.children) : [], d = new nr(r);
1293
- r.forEach(function(l) {
1294
- return l.parent = d;
1295
- }), e["x-mode"] && (d["x-mode"] = e["x-mode"]), n = d;
1296
- } else if (sr(e)) {
1297
- var s = new er(e.name, e.data);
1298
- e["x-name"] != null && (s["x-name"] = e["x-name"], s["x-publicId"] = e["x-publicId"], s["x-systemId"] = e["x-systemId"]), n = s;
1299
- } else
1300
- throw new Error("Not implemented yet: ".concat(e.type));
1301
- return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n;
1302
- }
1303
- T.cloneNode = Ft;
1304
- function bt(e) {
1305
- for (var t = e.map(function(r) {
1306
- return Ft(r, !0);
1307
- }), n = 1; n < t.length; n++)
1308
- t[n].prev = t[n - 1], t[n - 1].next = t[n];
1309
- return t;
1310
- }
1311
- (function(e) {
1312
- var t = E && E.__createBinding || (Object.create ? function(s, a, l, f) {
1313
- f === void 0 && (f = l);
1314
- var p = Object.getOwnPropertyDescriptor(a, l);
1315
- (!p || ("get" in p ? !a.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
1316
- return a[l];
1317
- } }), Object.defineProperty(s, f, p);
1318
- } : function(s, a, l, f) {
1319
- f === void 0 && (f = l), s[f] = a[l];
1320
- }), n = E && E.__exportStar || function(s, a) {
1321
- for (var l in s) l !== "default" && !Object.prototype.hasOwnProperty.call(a, l) && t(a, s, l);
1322
- };
1323
- Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
1324
- var r = Mt, o = T;
1325
- n(T, e);
1326
- var c = {
1327
- withStartIndices: !1,
1328
- withEndIndices: !1,
1329
- xmlMode: !1
1330
- }, d = (
1331
- /** @class */
1332
- function() {
1333
- function s(a, l, f) {
1334
- this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof l == "function" && (f = l, l = c), typeof a == "object" && (l = a, a = void 0), this.callback = a ?? null, this.options = l ?? c, this.elementCB = f ?? null;
1335
- }
1336
- return s.prototype.onparserinit = function(a) {
1337
- this.parser = a;
1338
- }, s.prototype.onreset = function() {
1339
- this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
1340
- }, s.prototype.onend = function() {
1341
- this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
1342
- }, s.prototype.onerror = function(a) {
1343
- this.handleCallback(a);
1344
- }, s.prototype.onclosetag = function() {
1345
- this.lastNode = null;
1346
- var a = this.tagStack.pop();
1347
- this.options.withEndIndices && (a.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(a);
1348
- }, s.prototype.onopentag = function(a, l) {
1349
- var f = this.options.xmlMode ? r.ElementType.Tag : void 0, p = new o.Element(a, l, void 0, f);
1350
- this.addNode(p), this.tagStack.push(p);
1351
- }, s.prototype.ontext = function(a) {
1352
- var l = this.lastNode;
1353
- if (l && l.type === r.ElementType.Text)
1354
- l.data += a, this.options.withEndIndices && (l.endIndex = this.parser.endIndex);
1355
- else {
1356
- var f = new o.Text(a);
1357
- this.addNode(f), this.lastNode = f;
1358
- }
1359
- }, s.prototype.oncomment = function(a) {
1360
- if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
1361
- this.lastNode.data += a;
1362
- return;
1363
- }
1364
- var l = new o.Comment(a);
1365
- this.addNode(l), this.lastNode = l;
1366
- }, s.prototype.oncommentend = function() {
1367
- this.lastNode = null;
1368
- }, s.prototype.oncdatastart = function() {
1369
- var a = new o.Text(""), l = new o.CDATA([a]);
1370
- this.addNode(l), a.parent = l, this.lastNode = a;
1371
- }, s.prototype.oncdataend = function() {
1372
- this.lastNode = null;
1373
- }, s.prototype.onprocessinginstruction = function(a, l) {
1374
- var f = new o.ProcessingInstruction(a, l);
1375
- this.addNode(f);
1376
- }, s.prototype.handleCallback = function(a) {
1377
- if (typeof this.callback == "function")
1378
- this.callback(a, this.dom);
1379
- else if (a)
1380
- throw a;
1381
- }, s.prototype.addNode = function(a) {
1382
- var l = this.tagStack[this.tagStack.length - 1], f = l.children[l.children.length - 1];
1383
- this.options.withStartIndices && (a.startIndex = this.parser.startIndex), this.options.withEndIndices && (a.endIndex = this.parser.endIndex), l.children.push(a), f && (a.prev = f, f.next = a), a.parent = l, this.lastNode = null;
1384
- }, s;
1385
- }()
1386
- );
1387
- e.DomHandler = d, e.default = d;
1388
- })(Kn);
1389
- var fr = {};
1390
- (function(e) {
1391
- Object.defineProperty(e, "__esModule", { value: !0 }), e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES = void 0, e.CASE_SENSITIVE_TAG_NAMES = [
1392
- "animateMotion",
1393
- "animateTransform",
1394
- "clipPath",
1395
- "feBlend",
1396
- "feColorMatrix",
1397
- "feComponentTransfer",
1398
- "feComposite",
1399
- "feConvolveMatrix",
1400
- "feDiffuseLighting",
1401
- "feDisplacementMap",
1402
- "feDropShadow",
1403
- "feFlood",
1404
- "feFuncA",
1405
- "feFuncB",
1406
- "feFuncG",
1407
- "feFuncR",
1408
- "feGaussianBlur",
1409
- "feImage",
1410
- "feMerge",
1411
- "feMergeNode",
1412
- "feMorphology",
1413
- "feOffset",
1414
- "fePointLight",
1415
- "feSpecularLighting",
1416
- "feSpotLight",
1417
- "feTile",
1418
- "feTurbulence",
1419
- "foreignObject",
1420
- "linearGradient",
1421
- "radialGradient",
1422
- "textPath"
1423
- ], e.CASE_SENSITIVE_TAG_NAMES_MAP = e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t, n) {
1424
- return t[n.toLowerCase()] = n, t;
1425
- }, {});
1426
- })(fr);
1427
- Object.defineProperty(Ke, "__esModule", { value: !0 });
1428
- Ke.formatAttributes = ur;
1429
- Ke.formatDOM = dr;
1430
- var We = Kn, ui = fr;
1431
- function di(e) {
1432
- return ui.CASE_SENSITIVE_TAG_NAMES_MAP[e];
1433
- }
1434
- function ur(e) {
1435
- for (var t = {}, n = 0, r = e.length; n < r; n++) {
1436
- var o = e[n];
1437
- t[o.name] = o.value;
1438
- }
1439
- return t;
1440
- }
1441
- function pi(e) {
1442
- e = e.toLowerCase();
1443
- var t = di(e);
1444
- return t || e;
1445
- }
1446
- function dr(e, t, n) {
1447
- t === void 0 && (t = null);
1448
- for (var r = [], o, c = 0, d = e.length; c < d; c++) {
1449
- var s = e[c];
1450
- switch (s.nodeType) {
1451
- case 1: {
1452
- var a = pi(s.nodeName);
1453
- o = new We.Element(a, ur(s.attributes)), o.children = dr(
1454
- // template children are on content
1455
- a === "template" ? s.content.childNodes : s.childNodes,
1456
- o
1457
- );
1458
- break;
1459
- }
1460
- case 3:
1461
- o = new We.Text(s.nodeValue);
1462
- break;
1463
- case 8:
1464
- o = new We.Comment(s.nodeValue);
1465
- break;
1466
- default:
1467
- continue;
1468
- }
1469
- var l = r[c - 1] || null;
1470
- l && (l.next = o), o.parent = t, o.prev = l, o.next = null, r.push(o);
1471
- }
1472
- return n && (o = new We.ProcessingInstruction(n.substring(0, n.indexOf(" ")).toLowerCase(), n), o.next = r[0] || null, o.parent = t, r.unshift(o), r[1] && (r[1].prev = r[0])), r;
1473
- }
1474
- var mi = E && E.__importDefault || function(e) {
1475
- return e && e.__esModule ? e : { default: e };
1476
- };
1477
- Object.defineProperty(kt, "__esModule", { value: !0 });
1478
- kt.default = yi;
1479
- var hi = mi(Pt), gi = Ke, bi = /<(![a-zA-Z\s]+)>/;
1480
- function yi(e) {
1481
- if (typeof e != "string")
1482
- throw new TypeError("First argument must be a string");
1483
- if (!e)
1484
- return [];
1485
- var t = e.match(bi), n = t ? t[1] : void 0;
1486
- return (0, gi.formatDOM)((0, hi.default)(e), null, n);
1487
- }
1488
- var et = {}, X = {}, tt = {}, Ti = 0;
1489
- tt.SAME = Ti;
1490
- var vi = 1;
1491
- tt.CAMELCASE = vi;
1492
- tt.possibleStandardNames = {
1493
- accept: 0,
1494
- acceptCharset: 1,
1495
- "accept-charset": "acceptCharset",
1496
- accessKey: 1,
1497
- action: 0,
1498
- allowFullScreen: 1,
1499
- alt: 0,
1500
- as: 0,
1501
- async: 0,
1502
- autoCapitalize: 1,
1503
- autoComplete: 1,
1504
- autoCorrect: 1,
1505
- autoFocus: 1,
1506
- autoPlay: 1,
1507
- autoSave: 1,
1508
- capture: 0,
1509
- cellPadding: 1,
1510
- cellSpacing: 1,
1511
- challenge: 0,
1512
- charSet: 1,
1513
- checked: 0,
1514
- children: 0,
1515
- cite: 0,
1516
- class: "className",
1517
- classID: 1,
1518
- className: 1,
1519
- cols: 0,
1520
- colSpan: 1,
1521
- content: 0,
1522
- contentEditable: 1,
1523
- contextMenu: 1,
1524
- controls: 0,
1525
- controlsList: 1,
1526
- coords: 0,
1527
- crossOrigin: 1,
1528
- dangerouslySetInnerHTML: 1,
1529
- data: 0,
1530
- dateTime: 1,
1531
- default: 0,
1532
- defaultChecked: 1,
1533
- defaultValue: 1,
1534
- defer: 0,
1535
- dir: 0,
1536
- disabled: 0,
1537
- disablePictureInPicture: 1,
1538
- disableRemotePlayback: 1,
1539
- download: 0,
1540
- draggable: 0,
1541
- encType: 1,
1542
- enterKeyHint: 1,
1543
- for: "htmlFor",
1544
- form: 0,
1545
- formMethod: 1,
1546
- formAction: 1,
1547
- formEncType: 1,
1548
- formNoValidate: 1,
1549
- formTarget: 1,
1550
- frameBorder: 1,
1551
- headers: 0,
1552
- height: 0,
1553
- hidden: 0,
1554
- high: 0,
1555
- href: 0,
1556
- hrefLang: 1,
1557
- htmlFor: 1,
1558
- httpEquiv: 1,
1559
- "http-equiv": "httpEquiv",
1560
- icon: 0,
1561
- id: 0,
1562
- innerHTML: 1,
1563
- inputMode: 1,
1564
- integrity: 0,
1565
- is: 0,
1566
- itemID: 1,
1567
- itemProp: 1,
1568
- itemRef: 1,
1569
- itemScope: 1,
1570
- itemType: 1,
1571
- keyParams: 1,
1572
- keyType: 1,
1573
- kind: 0,
1574
- label: 0,
1575
- lang: 0,
1576
- list: 0,
1577
- loop: 0,
1578
- low: 0,
1579
- manifest: 0,
1580
- marginWidth: 1,
1581
- marginHeight: 1,
1582
- max: 0,
1583
- maxLength: 1,
1584
- media: 0,
1585
- mediaGroup: 1,
1586
- method: 0,
1587
- min: 0,
1588
- minLength: 1,
1589
- multiple: 0,
1590
- muted: 0,
1591
- name: 0,
1592
- noModule: 1,
1593
- nonce: 0,
1594
- noValidate: 1,
1595
- open: 0,
1596
- optimum: 0,
1597
- pattern: 0,
1598
- placeholder: 0,
1599
- playsInline: 1,
1600
- poster: 0,
1601
- preload: 0,
1602
- profile: 0,
1603
- radioGroup: 1,
1604
- readOnly: 1,
1605
- referrerPolicy: 1,
1606
- rel: 0,
1607
- required: 0,
1608
- reversed: 0,
1609
- role: 0,
1610
- rows: 0,
1611
- rowSpan: 1,
1612
- sandbox: 0,
1613
- scope: 0,
1614
- scoped: 0,
1615
- scrolling: 0,
1616
- seamless: 0,
1617
- selected: 0,
1618
- shape: 0,
1619
- size: 0,
1620
- sizes: 0,
1621
- span: 0,
1622
- spellCheck: 1,
1623
- src: 0,
1624
- srcDoc: 1,
1625
- srcLang: 1,
1626
- srcSet: 1,
1627
- start: 0,
1628
- step: 0,
1629
- style: 0,
1630
- summary: 0,
1631
- tabIndex: 1,
1632
- target: 0,
1633
- title: 0,
1634
- type: 0,
1635
- useMap: 1,
1636
- value: 0,
1637
- width: 0,
1638
- wmode: 0,
1639
- wrap: 0,
1640
- about: 0,
1641
- accentHeight: 1,
1642
- "accent-height": "accentHeight",
1643
- accumulate: 0,
1644
- additive: 0,
1645
- alignmentBaseline: 1,
1646
- "alignment-baseline": "alignmentBaseline",
1647
- allowReorder: 1,
1648
- alphabetic: 0,
1649
- amplitude: 0,
1650
- arabicForm: 1,
1651
- "arabic-form": "arabicForm",
1652
- ascent: 0,
1653
- attributeName: 1,
1654
- attributeType: 1,
1655
- autoReverse: 1,
1656
- azimuth: 0,
1657
- baseFrequency: 1,
1658
- baselineShift: 1,
1659
- "baseline-shift": "baselineShift",
1660
- baseProfile: 1,
1661
- bbox: 0,
1662
- begin: 0,
1663
- bias: 0,
1664
- by: 0,
1665
- calcMode: 1,
1666
- capHeight: 1,
1667
- "cap-height": "capHeight",
1668
- clip: 0,
1669
- clipPath: 1,
1670
- "clip-path": "clipPath",
1671
- clipPathUnits: 1,
1672
- clipRule: 1,
1673
- "clip-rule": "clipRule",
1674
- color: 0,
1675
- colorInterpolation: 1,
1676
- "color-interpolation": "colorInterpolation",
1677
- colorInterpolationFilters: 1,
1678
- "color-interpolation-filters": "colorInterpolationFilters",
1679
- colorProfile: 1,
1680
- "color-profile": "colorProfile",
1681
- colorRendering: 1,
1682
- "color-rendering": "colorRendering",
1683
- contentScriptType: 1,
1684
- contentStyleType: 1,
1685
- cursor: 0,
1686
- cx: 0,
1687
- cy: 0,
1688
- d: 0,
1689
- datatype: 0,
1690
- decelerate: 0,
1691
- descent: 0,
1692
- diffuseConstant: 1,
1693
- direction: 0,
1694
- display: 0,
1695
- divisor: 0,
1696
- dominantBaseline: 1,
1697
- "dominant-baseline": "dominantBaseline",
1698
- dur: 0,
1699
- dx: 0,
1700
- dy: 0,
1701
- edgeMode: 1,
1702
- elevation: 0,
1703
- enableBackground: 1,
1704
- "enable-background": "enableBackground",
1705
- end: 0,
1706
- exponent: 0,
1707
- externalResourcesRequired: 1,
1708
- fill: 0,
1709
- fillOpacity: 1,
1710
- "fill-opacity": "fillOpacity",
1711
- fillRule: 1,
1712
- "fill-rule": "fillRule",
1713
- filter: 0,
1714
- filterRes: 1,
1715
- filterUnits: 1,
1716
- floodOpacity: 1,
1717
- "flood-opacity": "floodOpacity",
1718
- floodColor: 1,
1719
- "flood-color": "floodColor",
1720
- focusable: 0,
1721
- fontFamily: 1,
1722
- "font-family": "fontFamily",
1723
- fontSize: 1,
1724
- "font-size": "fontSize",
1725
- fontSizeAdjust: 1,
1726
- "font-size-adjust": "fontSizeAdjust",
1727
- fontStretch: 1,
1728
- "font-stretch": "fontStretch",
1729
- fontStyle: 1,
1730
- "font-style": "fontStyle",
1731
- fontVariant: 1,
1732
- "font-variant": "fontVariant",
1733
- fontWeight: 1,
1734
- "font-weight": "fontWeight",
1735
- format: 0,
1736
- from: 0,
1737
- fx: 0,
1738
- fy: 0,
1739
- g1: 0,
1740
- g2: 0,
1741
- glyphName: 1,
1742
- "glyph-name": "glyphName",
1743
- glyphOrientationHorizontal: 1,
1744
- "glyph-orientation-horizontal": "glyphOrientationHorizontal",
1745
- glyphOrientationVertical: 1,
1746
- "glyph-orientation-vertical": "glyphOrientationVertical",
1747
- glyphRef: 1,
1748
- gradientTransform: 1,
1749
- gradientUnits: 1,
1750
- hanging: 0,
1751
- horizAdvX: 1,
1752
- "horiz-adv-x": "horizAdvX",
1753
- horizOriginX: 1,
1754
- "horiz-origin-x": "horizOriginX",
1755
- ideographic: 0,
1756
- imageRendering: 1,
1757
- "image-rendering": "imageRendering",
1758
- in2: 0,
1759
- in: 0,
1760
- inlist: 0,
1761
- intercept: 0,
1762
- k1: 0,
1763
- k2: 0,
1764
- k3: 0,
1765
- k4: 0,
1766
- k: 0,
1767
- kernelMatrix: 1,
1768
- kernelUnitLength: 1,
1769
- kerning: 0,
1770
- keyPoints: 1,
1771
- keySplines: 1,
1772
- keyTimes: 1,
1773
- lengthAdjust: 1,
1774
- letterSpacing: 1,
1775
- "letter-spacing": "letterSpacing",
1776
- lightingColor: 1,
1777
- "lighting-color": "lightingColor",
1778
- limitingConeAngle: 1,
1779
- local: 0,
1780
- markerEnd: 1,
1781
- "marker-end": "markerEnd",
1782
- markerHeight: 1,
1783
- markerMid: 1,
1784
- "marker-mid": "markerMid",
1785
- markerStart: 1,
1786
- "marker-start": "markerStart",
1787
- markerUnits: 1,
1788
- markerWidth: 1,
1789
- mask: 0,
1790
- maskContentUnits: 1,
1791
- maskUnits: 1,
1792
- mathematical: 0,
1793
- mode: 0,
1794
- numOctaves: 1,
1795
- offset: 0,
1796
- opacity: 0,
1797
- operator: 0,
1798
- order: 0,
1799
- orient: 0,
1800
- orientation: 0,
1801
- origin: 0,
1802
- overflow: 0,
1803
- overlinePosition: 1,
1804
- "overline-position": "overlinePosition",
1805
- overlineThickness: 1,
1806
- "overline-thickness": "overlineThickness",
1807
- paintOrder: 1,
1808
- "paint-order": "paintOrder",
1809
- panose1: 0,
1810
- "panose-1": "panose1",
1811
- pathLength: 1,
1812
- patternContentUnits: 1,
1813
- patternTransform: 1,
1814
- patternUnits: 1,
1815
- pointerEvents: 1,
1816
- "pointer-events": "pointerEvents",
1817
- points: 0,
1818
- pointsAtX: 1,
1819
- pointsAtY: 1,
1820
- pointsAtZ: 1,
1821
- prefix: 0,
1822
- preserveAlpha: 1,
1823
- preserveAspectRatio: 1,
1824
- primitiveUnits: 1,
1825
- property: 0,
1826
- r: 0,
1827
- radius: 0,
1828
- refX: 1,
1829
- refY: 1,
1830
- renderingIntent: 1,
1831
- "rendering-intent": "renderingIntent",
1832
- repeatCount: 1,
1833
- repeatDur: 1,
1834
- requiredExtensions: 1,
1835
- requiredFeatures: 1,
1836
- resource: 0,
1837
- restart: 0,
1838
- result: 0,
1839
- results: 0,
1840
- rotate: 0,
1841
- rx: 0,
1842
- ry: 0,
1843
- scale: 0,
1844
- security: 0,
1845
- seed: 0,
1846
- shapeRendering: 1,
1847
- "shape-rendering": "shapeRendering",
1848
- slope: 0,
1849
- spacing: 0,
1850
- specularConstant: 1,
1851
- specularExponent: 1,
1852
- speed: 0,
1853
- spreadMethod: 1,
1854
- startOffset: 1,
1855
- stdDeviation: 1,
1856
- stemh: 0,
1857
- stemv: 0,
1858
- stitchTiles: 1,
1859
- stopColor: 1,
1860
- "stop-color": "stopColor",
1861
- stopOpacity: 1,
1862
- "stop-opacity": "stopOpacity",
1863
- strikethroughPosition: 1,
1864
- "strikethrough-position": "strikethroughPosition",
1865
- strikethroughThickness: 1,
1866
- "strikethrough-thickness": "strikethroughThickness",
1867
- string: 0,
1868
- stroke: 0,
1869
- strokeDasharray: 1,
1870
- "stroke-dasharray": "strokeDasharray",
1871
- strokeDashoffset: 1,
1872
- "stroke-dashoffset": "strokeDashoffset",
1873
- strokeLinecap: 1,
1874
- "stroke-linecap": "strokeLinecap",
1875
- strokeLinejoin: 1,
1876
- "stroke-linejoin": "strokeLinejoin",
1877
- strokeMiterlimit: 1,
1878
- "stroke-miterlimit": "strokeMiterlimit",
1879
- strokeWidth: 1,
1880
- "stroke-width": "strokeWidth",
1881
- strokeOpacity: 1,
1882
- "stroke-opacity": "strokeOpacity",
1883
- suppressContentEditableWarning: 1,
1884
- suppressHydrationWarning: 1,
1885
- surfaceScale: 1,
1886
- systemLanguage: 1,
1887
- tableValues: 1,
1888
- targetX: 1,
1889
- targetY: 1,
1890
- textAnchor: 1,
1891
- "text-anchor": "textAnchor",
1892
- textDecoration: 1,
1893
- "text-decoration": "textDecoration",
1894
- textLength: 1,
1895
- textRendering: 1,
1896
- "text-rendering": "textRendering",
1897
- to: 0,
1898
- transform: 0,
1899
- typeof: 0,
1900
- u1: 0,
1901
- u2: 0,
1902
- underlinePosition: 1,
1903
- "underline-position": "underlinePosition",
1904
- underlineThickness: 1,
1905
- "underline-thickness": "underlineThickness",
1906
- unicode: 0,
1907
- unicodeBidi: 1,
1908
- "unicode-bidi": "unicodeBidi",
1909
- unicodeRange: 1,
1910
- "unicode-range": "unicodeRange",
1911
- unitsPerEm: 1,
1912
- "units-per-em": "unitsPerEm",
1913
- unselectable: 0,
1914
- vAlphabetic: 1,
1915
- "v-alphabetic": "vAlphabetic",
1916
- values: 0,
1917
- vectorEffect: 1,
1918
- "vector-effect": "vectorEffect",
1919
- version: 0,
1920
- vertAdvY: 1,
1921
- "vert-adv-y": "vertAdvY",
1922
- vertOriginX: 1,
1923
- "vert-origin-x": "vertOriginX",
1924
- vertOriginY: 1,
1925
- "vert-origin-y": "vertOriginY",
1926
- vHanging: 1,
1927
- "v-hanging": "vHanging",
1928
- vIdeographic: 1,
1929
- "v-ideographic": "vIdeographic",
1930
- viewBox: 1,
1931
- viewTarget: 1,
1932
- visibility: 0,
1933
- vMathematical: 1,
1934
- "v-mathematical": "vMathematical",
1935
- vocab: 0,
1936
- widths: 0,
1937
- wordSpacing: 1,
1938
- "word-spacing": "wordSpacing",
1939
- writingMode: 1,
1940
- "writing-mode": "writingMode",
1941
- x1: 0,
1942
- x2: 0,
1943
- x: 0,
1944
- xChannelSelector: 1,
1945
- xHeight: 1,
1946
- "x-height": "xHeight",
1947
- xlinkActuate: 1,
1948
- "xlink:actuate": "xlinkActuate",
1949
- xlinkArcrole: 1,
1950
- "xlink:arcrole": "xlinkArcrole",
1951
- xlinkHref: 1,
1952
- "xlink:href": "xlinkHref",
1953
- xlinkRole: 1,
1954
- "xlink:role": "xlinkRole",
1955
- xlinkShow: 1,
1956
- "xlink:show": "xlinkShow",
1957
- xlinkTitle: 1,
1958
- "xlink:title": "xlinkTitle",
1959
- xlinkType: 1,
1960
- "xlink:type": "xlinkType",
1961
- xmlBase: 1,
1962
- "xml:base": "xmlBase",
1963
- xmlLang: 1,
1964
- "xml:lang": "xmlLang",
1965
- xmlns: 0,
1966
- "xml:space": "xmlSpace",
1967
- xmlnsXlink: 1,
1968
- "xmlns:xlink": "xmlnsXlink",
1969
- xmlSpace: 1,
1970
- y1: 0,
1971
- y2: 0,
1972
- y: 0,
1973
- yChannelSelector: 1,
1974
- z: 0,
1975
- zoomAndPan: 1
1976
- };
1977
- const pr = 0, ne = 1, nt = 2, rt = 3, Ht = 4, mr = 5, hr = 6;
1978
- function Ei(e) {
1979
- return I.hasOwnProperty(e) ? I[e] : null;
1980
- }
1981
- function H(e, t, n, r, o, c, d) {
1982
- this.acceptsBooleans = t === nt || t === rt || t === Ht, this.attributeName = r, this.attributeNamespace = o, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = c, this.removeEmptyString = d;
1983
- }
1984
- const I = {}, _i = [
1985
- "children",
1986
- "dangerouslySetInnerHTML",
1987
- // TODO: This prevents the assignment of defaultValue to regular
1988
- // elements (not just inputs). Now that ReactDOMInput assigns to the
1989
- // defaultValue property -- do we need this?
1990
- "defaultValue",
1991
- "defaultChecked",
1992
- "innerHTML",
1993
- "suppressContentEditableWarning",
1994
- "suppressHydrationWarning",
1995
- "style"
1996
- ];
1997
- _i.forEach((e) => {
1998
- I[e] = new H(
1999
- e,
2000
- pr,
2001
- !1,
2002
- // mustUseProperty
2003
- e,
2004
- // attributeName
2005
- null,
2006
- // attributeNamespace
2007
- !1,
2008
- // sanitizeURL
2009
- !1
2010
- // removeEmptyString
2011
- );
2012
- });
2013
- [
2014
- ["acceptCharset", "accept-charset"],
2015
- ["className", "class"],
2016
- ["htmlFor", "for"],
2017
- ["httpEquiv", "http-equiv"]
2018
- ].forEach(([e, t]) => {
2019
- I[e] = new H(
2020
- e,
2021
- ne,
2022
- !1,
2023
- // mustUseProperty
2024
- t,
2025
- // attributeName
2026
- null,
2027
- // attributeNamespace
2028
- !1,
2029
- // sanitizeURL
2030
- !1
2031
- // removeEmptyString
2032
- );
2033
- });
2034
- ["contentEditable", "draggable", "spellCheck", "value"].forEach((e) => {
2035
- I[e] = new H(
2036
- e,
2037
- nt,
2038
- !1,
2039
- // mustUseProperty
2040
- e.toLowerCase(),
2041
- // attributeName
2042
- null,
2043
- // attributeNamespace
2044
- !1,
2045
- // sanitizeURL
2046
- !1
2047
- // removeEmptyString
2048
- );
2049
- });
2050
- [
2051
- "autoReverse",
2052
- "externalResourcesRequired",
2053
- "focusable",
2054
- "preserveAlpha"
2055
- ].forEach((e) => {
2056
- I[e] = new H(
2057
- e,
2058
- nt,
2059
- !1,
2060
- // mustUseProperty
2061
- e,
2062
- // attributeName
2063
- null,
2064
- // attributeNamespace
2065
- !1,
2066
- // sanitizeURL
2067
- !1
2068
- // removeEmptyString
2069
- );
2070
- });
2071
- [
2072
- "allowFullScreen",
2073
- "async",
2074
- // Note: there is a special case that prevents it from being written to the DOM
2075
- // on the client side because the browsers are inconsistent. Instead we call focus().
2076
- "autoFocus",
2077
- "autoPlay",
2078
- "controls",
2079
- "default",
2080
- "defer",
2081
- "disabled",
2082
- "disablePictureInPicture",
2083
- "disableRemotePlayback",
2084
- "formNoValidate",
2085
- "hidden",
2086
- "loop",
2087
- "noModule",
2088
- "noValidate",
2089
- "open",
2090
- "playsInline",
2091
- "readOnly",
2092
- "required",
2093
- "reversed",
2094
- "scoped",
2095
- "seamless",
2096
- // Microdata
2097
- "itemScope"
2098
- ].forEach((e) => {
2099
- I[e] = new H(
2100
- e,
2101
- rt,
2102
- !1,
2103
- // mustUseProperty
2104
- e.toLowerCase(),
2105
- // attributeName
2106
- null,
2107
- // attributeNamespace
2108
- !1,
2109
- // sanitizeURL
2110
- !1
2111
- // removeEmptyString
2112
- );
2113
- });
2114
- [
2115
- "checked",
2116
- // Note: `option.selected` is not updated if `select.multiple` is
2117
- // disabled with `removeAttribute`. We have special logic for handling this.
2118
- "multiple",
2119
- "muted",
2120
- "selected"
2121
- // NOTE: if you add a camelCased prop to this list,
2122
- // you'll need to set attributeName to name.toLowerCase()
2123
- // instead in the assignment below.
2124
- ].forEach((e) => {
2125
- I[e] = new H(
2126
- e,
2127
- rt,
2128
- !0,
2129
- // mustUseProperty
2130
- e,
2131
- // attributeName
2132
- null,
2133
- // attributeNamespace
2134
- !1,
2135
- // sanitizeURL
2136
- !1
2137
- // removeEmptyString
2138
- );
2139
- });
2140
- [
2141
- "capture",
2142
- "download"
2143
- // NOTE: if you add a camelCased prop to this list,
2144
- // you'll need to set attributeName to name.toLowerCase()
2145
- // instead in the assignment below.
2146
- ].forEach((e) => {
2147
- I[e] = new H(
2148
- e,
2149
- Ht,
2150
- !1,
2151
- // mustUseProperty
2152
- e,
2153
- // attributeName
2154
- null,
2155
- // attributeNamespace
2156
- !1,
2157
- // sanitizeURL
2158
- !1
2159
- // removeEmptyString
2160
- );
2161
- });
2162
- [
2163
- "cols",
2164
- "rows",
2165
- "size",
2166
- "span"
2167
- // NOTE: if you add a camelCased prop to this list,
2168
- // you'll need to set attributeName to name.toLowerCase()
2169
- // instead in the assignment below.
2170
- ].forEach((e) => {
2171
- I[e] = new H(
2172
- e,
2173
- hr,
2174
- !1,
2175
- // mustUseProperty
2176
- e,
2177
- // attributeName
2178
- null,
2179
- // attributeNamespace
2180
- !1,
2181
- // sanitizeURL
2182
- !1
2183
- // removeEmptyString
2184
- );
2185
- });
2186
- ["rowSpan", "start"].forEach((e) => {
2187
- I[e] = new H(
2188
- e,
2189
- mr,
2190
- !1,
2191
- // mustUseProperty
2192
- e.toLowerCase(),
2193
- // attributeName
2194
- null,
2195
- // attributeNamespace
2196
- !1,
2197
- // sanitizeURL
2198
- !1
2199
- // removeEmptyString
2200
- );
2201
- });
2202
- const Ut = /[\-\:]([a-z])/g, jt = (e) => e[1].toUpperCase();
2203
- [
2204
- "accent-height",
2205
- "alignment-baseline",
2206
- "arabic-form",
2207
- "baseline-shift",
2208
- "cap-height",
2209
- "clip-path",
2210
- "clip-rule",
2211
- "color-interpolation",
2212
- "color-interpolation-filters",
2213
- "color-profile",
2214
- "color-rendering",
2215
- "dominant-baseline",
2216
- "enable-background",
2217
- "fill-opacity",
2218
- "fill-rule",
2219
- "flood-color",
2220
- "flood-opacity",
2221
- "font-family",
2222
- "font-size",
2223
- "font-size-adjust",
2224
- "font-stretch",
2225
- "font-style",
2226
- "font-variant",
2227
- "font-weight",
2228
- "glyph-name",
2229
- "glyph-orientation-horizontal",
2230
- "glyph-orientation-vertical",
2231
- "horiz-adv-x",
2232
- "horiz-origin-x",
2233
- "image-rendering",
2234
- "letter-spacing",
2235
- "lighting-color",
2236
- "marker-end",
2237
- "marker-mid",
2238
- "marker-start",
2239
- "overline-position",
2240
- "overline-thickness",
2241
- "paint-order",
2242
- "panose-1",
2243
- "pointer-events",
2244
- "rendering-intent",
2245
- "shape-rendering",
2246
- "stop-color",
2247
- "stop-opacity",
2248
- "strikethrough-position",
2249
- "strikethrough-thickness",
2250
- "stroke-dasharray",
2251
- "stroke-dashoffset",
2252
- "stroke-linecap",
2253
- "stroke-linejoin",
2254
- "stroke-miterlimit",
2255
- "stroke-opacity",
2256
- "stroke-width",
2257
- "text-anchor",
2258
- "text-decoration",
2259
- "text-rendering",
2260
- "underline-position",
2261
- "underline-thickness",
2262
- "unicode-bidi",
2263
- "unicode-range",
2264
- "units-per-em",
2265
- "v-alphabetic",
2266
- "v-hanging",
2267
- "v-ideographic",
2268
- "v-mathematical",
2269
- "vector-effect",
2270
- "vert-adv-y",
2271
- "vert-origin-x",
2272
- "vert-origin-y",
2273
- "word-spacing",
2274
- "writing-mode",
2275
- "xmlns:xlink",
2276
- "x-height"
2277
- // NOTE: if you add a camelCased prop to this list,
2278
- // you'll need to set attributeName to name.toLowerCase()
2279
- // instead in the assignment below.
2280
- ].forEach((e) => {
2281
- const t = e.replace(Ut, jt);
2282
- I[t] = new H(
2283
- t,
2284
- ne,
2285
- !1,
2286
- // mustUseProperty
2287
- e,
2288
- null,
2289
- // attributeNamespace
2290
- !1,
2291
- // sanitizeURL
2292
- !1
2293
- // removeEmptyString
2294
- );
2295
- });
2296
- [
2297
- "xlink:actuate",
2298
- "xlink:arcrole",
2299
- "xlink:role",
2300
- "xlink:show",
2301
- "xlink:title",
2302
- "xlink:type"
2303
- // NOTE: if you add a camelCased prop to this list,
2304
- // you'll need to set attributeName to name.toLowerCase()
2305
- // instead in the assignment below.
2306
- ].forEach((e) => {
2307
- const t = e.replace(Ut, jt);
2308
- I[t] = new H(
2309
- t,
2310
- ne,
2311
- !1,
2312
- // mustUseProperty
2313
- e,
2314
- "http://www.w3.org/1999/xlink",
2315
- !1,
2316
- // sanitizeURL
2317
- !1
2318
- // removeEmptyString
2319
- );
2320
- });
2321
- [
2322
- "xml:base",
2323
- "xml:lang",
2324
- "xml:space"
2325
- // NOTE: if you add a camelCased prop to this list,
2326
- // you'll need to set attributeName to name.toLowerCase()
2327
- // instead in the assignment below.
2328
- ].forEach((e) => {
2329
- const t = e.replace(Ut, jt);
2330
- I[t] = new H(
2331
- t,
2332
- ne,
2333
- !1,
2334
- // mustUseProperty
2335
- e,
2336
- "http://www.w3.org/XML/1998/namespace",
2337
- !1,
2338
- // sanitizeURL
2339
- !1
2340
- // removeEmptyString
2341
- );
2342
- });
2343
- ["tabIndex", "crossOrigin"].forEach((e) => {
2344
- I[e] = new H(
2345
- e,
2346
- ne,
2347
- !1,
2348
- // mustUseProperty
2349
- e.toLowerCase(),
2350
- // attributeName
2351
- null,
2352
- // attributeNamespace
2353
- !1,
2354
- // sanitizeURL
2355
- !1
2356
- // removeEmptyString
2357
- );
2358
- });
2359
- const Ai = "xlinkHref";
2360
- I[Ai] = new H(
2361
- "xlinkHref",
2362
- ne,
2363
- !1,
2364
- // mustUseProperty
2365
- "xlink:href",
2366
- "http://www.w3.org/1999/xlink",
2367
- !0,
2368
- // sanitizeURL
2369
- !1
2370
- // removeEmptyString
2371
- );
2372
- ["src", "href", "action", "formAction"].forEach((e) => {
2373
- I[e] = new H(
2374
- e,
2375
- ne,
2376
- !1,
2377
- // mustUseProperty
2378
- e.toLowerCase(),
2379
- // attributeName
2380
- null,
2381
- // attributeNamespace
2382
- !0,
2383
- // sanitizeURL
2384
- !0
2385
- // removeEmptyString
2386
- );
2387
- });
2388
- const {
2389
- CAMELCASE: Ci,
2390
- SAME: Si,
2391
- possibleStandardNames: wn
2392
- } = tt, Oi = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", wi = Oi + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", Ni = RegExp.prototype.test.bind(
2393
- // eslint-disable-next-line no-misleading-character-class
2394
- new RegExp("^(data|aria)-[" + wi + "]*$")
2395
- ), Ri = Object.keys(
2396
- wn
2397
- ).reduce((e, t) => {
2398
- const n = wn[t];
2399
- return n === Si ? e[t] = t : n === Ci ? e[t.toLowerCase()] = t : e[t] = n, e;
2400
- }, {});
2401
- X.BOOLEAN = rt;
2402
- X.BOOLEANISH_STRING = nt;
2403
- X.NUMERIC = mr;
2404
- X.OVERLOADED_BOOLEAN = Ht;
2405
- X.POSITIVE_NUMERIC = hr;
2406
- X.RESERVED = pr;
2407
- X.STRING = ne;
2408
- X.getPropertyInfo = Ei;
2409
- X.isCustomAttribute = Ni;
2410
- X.possibleStandardNames = Ri;
2411
- var Gt = {}, Bt = {}, Nn = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Ii = /\n/g, xi = /^\s*/, Di = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, ki = /^:\s*/, Pi = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Mi = /^[;\s]*/, Li = /^\s+|\s+$/g, Fi = `
2412
- `, Rn = "/", In = "*", se = "", Hi = "comment", Ui = "declaration", ji = function(e, t) {
2413
- if (typeof e != "string")
2414
- throw new TypeError("First argument must be a string");
2415
- if (!e) return [];
2416
- t = t || {};
2417
- var n = 1, r = 1;
2418
- function o(b) {
2419
- var g = b.match(Ii);
2420
- g && (n += g.length);
2421
- var C = b.lastIndexOf(Fi);
2422
- r = ~C ? b.length - C : r + b.length;
2423
- }
2424
- function c() {
2425
- var b = { line: n, column: r };
2426
- return function(g) {
2427
- return g.position = new d(b), l(), g;
2428
- };
2429
- }
2430
- function d(b) {
2431
- this.start = b, this.end = { line: n, column: r }, this.source = t.source;
2432
- }
2433
- d.prototype.content = e;
2434
- function s(b) {
2435
- var g = new Error(
2436
- t.source + ":" + n + ":" + r + ": " + b
2437
- );
2438
- if (g.reason = b, g.filename = t.source, g.line = n, g.column = r, g.source = e, !t.silent) throw g;
2439
- }
2440
- function a(b) {
2441
- var g = b.exec(e);
2442
- if (g) {
2443
- var C = g[0];
2444
- return o(C), e = e.slice(C.length), g;
2445
- }
2446
- }
2447
- function l() {
2448
- a(xi);
2449
- }
2450
- function f(b) {
2451
- var g;
2452
- for (b = b || []; g = p(); )
2453
- g !== !1 && b.push(g);
2454
- return b;
2455
- }
2456
- function p() {
2457
- var b = c();
2458
- if (!(Rn != e.charAt(0) || In != e.charAt(1))) {
2459
- for (var g = 2; se != e.charAt(g) && (In != e.charAt(g) || Rn != e.charAt(g + 1)); )
2460
- ++g;
2461
- if (g += 2, se === e.charAt(g - 1))
2462
- return s("End of comment missing");
2463
- var C = e.slice(2, g - 2);
2464
- return r += 2, o(C), e = e.slice(g), r += 2, b({
2465
- type: Hi,
2466
- comment: C
2467
- });
2468
- }
2469
- }
2470
- function x() {
2471
- var b = c(), g = a(Di);
2472
- if (g) {
2473
- if (p(), !a(ki)) return s("property missing ':'");
2474
- var C = a(Pi), ce = b({
2475
- type: Ui,
2476
- property: xn(g[0].replace(Nn, se)),
2477
- value: C ? xn(C[0].replace(Nn, se)) : se
2478
- });
2479
- return a(Mi), ce;
2480
- }
2481
- }
2482
- function U() {
2483
- var b = [];
2484
- f(b);
2485
- for (var g; g = x(); )
2486
- g !== !1 && (b.push(g), f(b));
2487
- return b;
2488
- }
2489
- return l(), U();
2490
- };
2491
- function xn(e) {
2492
- return e ? e.replace(Li, se) : se;
2493
- }
2494
- var Gi = E && E.__importDefault || function(e) {
2495
- return e && e.__esModule ? e : { default: e };
2496
- };
2497
- Object.defineProperty(Bt, "__esModule", { value: !0 });
2498
- Bt.default = zi;
2499
- var Bi = Gi(ji);
2500
- function zi(e, t) {
2501
- var n = null;
2502
- if (!e || typeof e != "string")
2503
- return n;
2504
- var r = (0, Bi.default)(e), o = typeof t == "function";
2505
- return r.forEach(function(c) {
2506
- if (c.type === "declaration") {
2507
- var d = c.property, s = c.value;
2508
- o ? t(d, s, c) : s && (n = n || {}, n[d] = s);
2509
- }
2510
- }), n;
2511
- }
2512
- var it = {};
2513
- Object.defineProperty(it, "__esModule", { value: !0 });
2514
- it.camelCase = void 0;
2515
- var $i = /^--[a-zA-Z0-9_-]+$/, Wi = /-([a-z])/g, Vi = /^[^-]+$/, Xi = /^-(webkit|moz|ms|o|khtml)-/, Yi = /^-(ms)-/, qi = function(e) {
2516
- return !e || Vi.test(e) || $i.test(e);
2517
- }, Zi = function(e, t) {
2518
- return t.toUpperCase();
2519
- }, Dn = function(e, t) {
2520
- return "".concat(t, "-");
2521
- }, Ki = function(e, t) {
2522
- return t === void 0 && (t = {}), qi(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(Yi, Dn) : e = e.replace(Xi, Dn), e.replace(Wi, Zi));
2523
- };
2524
- it.camelCase = Ki;
2525
- var Ji = E && E.__importDefault || function(e) {
2526
- return e && e.__esModule ? e : { default: e };
2527
- }, Qi = Ji(Bt), eo = it;
2528
- function Nt(e, t) {
2529
- var n = {};
2530
- return !e || typeof e != "string" || (0, Qi.default)(e, function(r, o) {
2531
- r && o && (n[(0, eo.camelCase)(r, t)] = o);
2532
- }), n;
2533
- }
2534
- Nt.default = Nt;
2535
- var to = Nt;
2536
- (function(e) {
2537
- var t = E && E.__importDefault || function(f) {
2538
- return f && f.__esModule ? f : { default: f };
2539
- };
2540
- Object.defineProperty(e, "__esModule", { value: !0 }), e.returnFirstArg = e.canTextBeChildOfNode = e.ELEMENTS_WITH_NO_TEXT_CHILDREN = e.PRESERVE_CUSTOM_ATTRIBUTES = void 0, e.isCustomComponent = c, e.setStyleProp = s;
2541
- var n = Yn, r = t(to), o = /* @__PURE__ */ new Set([
2542
- "annotation-xml",
2543
- "color-profile",
2544
- "font-face",
2545
- "font-face-src",
2546
- "font-face-uri",
2547
- "font-face-format",
2548
- "font-face-name",
2549
- "missing-glyph"
2550
- ]);
2551
- function c(f, p) {
2552
- return f.includes("-") ? !o.has(f) : !!(p && typeof p.is == "string");
2553
- }
2554
- var d = {
2555
- reactCompat: !0
2556
- };
2557
- function s(f, p) {
2558
- if (typeof f == "string") {
2559
- if (!f.trim()) {
2560
- p.style = {};
2561
- return;
2562
- }
2563
- try {
2564
- p.style = (0, r.default)(f, d);
2565
- } catch {
2566
- p.style = {};
2567
- }
2568
- }
2569
- }
2570
- e.PRESERVE_CUSTOM_ATTRIBUTES = Number(n.version.split(".")[0]) >= 16, e.ELEMENTS_WITH_NO_TEXT_CHILDREN = /* @__PURE__ */ new Set([
2571
- "tr",
2572
- "tbody",
2573
- "thead",
2574
- "tfoot",
2575
- "colgroup",
2576
- "table",
2577
- "head",
2578
- "html",
2579
- "frameset"
2580
- ]);
2581
- var a = function(f) {
2582
- return !e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(f.name);
2583
- };
2584
- e.canTextBeChildOfNode = a;
2585
- var l = function(f) {
2586
- return f;
2587
- };
2588
- e.returnFirstArg = l;
2589
- })(Gt);
2590
- Object.defineProperty(et, "__esModule", { value: !0 });
2591
- et.default = oo;
2592
- var Re = X, kn = Gt, no = ["checked", "value"], ro = ["input", "select", "textarea"], io = {
2593
- reset: !0,
2594
- submit: !0
2595
- };
2596
- function oo(e, t) {
2597
- e === void 0 && (e = {});
2598
- var n = {}, r = !!(e.type && io[e.type]);
2599
- for (var o in e) {
2600
- var c = e[o];
2601
- if ((0, Re.isCustomAttribute)(o)) {
2602
- n[o] = c;
2603
- continue;
2604
- }
2605
- var d = o.toLowerCase(), s = Pn(d);
2606
- if (s) {
2607
- var a = (0, Re.getPropertyInfo)(s);
2608
- switch (no.includes(s) && ro.includes(t) && !r && (s = Pn("default" + d)), n[s] = c, a && a.type) {
2609
- case Re.BOOLEAN:
2610
- n[s] = !0;
2611
- break;
2612
- case Re.OVERLOADED_BOOLEAN:
2613
- c === "" && (n[s] = !0);
2614
- break;
2615
- }
2616
- continue;
2617
- }
2618
- kn.PRESERVE_CUSTOM_ATTRIBUTES && (n[o] = c);
2619
- }
2620
- return (0, kn.setStyleProp)(e.style, n), n;
2621
- }
2622
- function Pn(e) {
2623
- return Re.possibleStandardNames[e];
2624
- }
2625
- var zt = {}, ao = E && E.__importDefault || function(e) {
2626
- return e && e.__esModule ? e : { default: e };
2627
- };
2628
- Object.defineProperty(zt, "__esModule", { value: !0 });
2629
- zt.default = gr;
2630
- var yt = Yn, lo = ao(et), xe = Gt, so = {
2631
- cloneElement: yt.cloneElement,
2632
- createElement: yt.createElement,
2633
- isValidElement: yt.isValidElement
2634
- };
2635
- function gr(e, t) {
2636
- t === void 0 && (t = {});
2637
- for (var n = [], r = typeof t.replace == "function", o = t.transform || xe.returnFirstArg, c = t.library || so, d = c.cloneElement, s = c.createElement, a = c.isValidElement, l = e.length, f = 0; f < l; f++) {
2638
- var p = e[f];
2639
- if (r) {
2640
- var x = t.replace(p, f);
2641
- if (a(x)) {
2642
- l > 1 && (x = d(x, {
2643
- key: x.key || f
2644
- })), n.push(o(x, p, f));
2645
- continue;
2646
- }
2647
- }
2648
- if (p.type === "text") {
2649
- var U = !p.data.trim().length;
2650
- if (U && p.parent && !(0, xe.canTextBeChildOfNode)(p.parent) || t.trim && U)
2651
- continue;
2652
- n.push(o(p.data, p, f));
2653
- continue;
2654
- }
2655
- var b = p, g = {};
2656
- co(b) ? ((0, xe.setStyleProp)(b.attribs.style, b.attribs), g = b.attribs) : b.attribs && (g = (0, lo.default)(b.attribs, b.name));
2657
- var C = void 0;
2658
- switch (p.type) {
2659
- case "script":
2660
- case "style":
2661
- p.children[0] && (g.dangerouslySetInnerHTML = {
2662
- __html: p.children[0].data
2663
- });
2664
- break;
2665
- case "tag":
2666
- p.name === "textarea" && p.children[0] ? g.defaultValue = p.children[0].data : p.children && p.children.length && (C = gr(p.children, t));
2667
- break;
2668
- default:
2669
- continue;
2670
- }
2671
- l > 1 && (g.key = f), n.push(o(s(p.name, g, C), p, f));
2672
- }
2673
- return n.length === 1 ? n[0] : n;
2674
- }
2675
- function co(e) {
2676
- return xe.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && (0, xe.isCustomComponent)(e.name, e.attribs);
2677
- }
2678
- var br = {}, $t = {};
2679
- (function(e) {
2680
- Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
2681
- var t;
2682
- (function(r) {
2683
- r.Root = "root", r.Text = "text", r.Directive = "directive", r.Comment = "comment", r.Script = "script", r.Style = "style", r.Tag = "tag", r.CDATA = "cdata", r.Doctype = "doctype";
2684
- })(t = e.ElementType || (e.ElementType = {}));
2685
- function n(r) {
2686
- return r.type === t.Tag || r.type === t.Script || r.type === t.Style;
2687
- }
2688
- e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
2689
- })($t);
2690
- var v = {}, re = E && E.__extends || /* @__PURE__ */ function() {
2691
- var e = function(t, n) {
2692
- return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
2693
- r.__proto__ = o;
2694
- } || function(r, o) {
2695
- for (var c in o) Object.prototype.hasOwnProperty.call(o, c) && (r[c] = o[c]);
2696
- }, e(t, n);
2697
- };
2698
- return function(t, n) {
2699
- if (typeof n != "function" && n !== null)
2700
- throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
2701
- e(t, n);
2702
- function r() {
2703
- this.constructor = t;
2704
- }
2705
- t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
2706
- };
2707
- }(), De = E && E.__assign || function() {
2708
- return De = Object.assign || function(e) {
2709
- for (var t, n = 1, r = arguments.length; n < r; n++) {
2710
- t = arguments[n];
2711
- for (var o in t) Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
2712
- }
2713
- return e;
2714
- }, De.apply(this, arguments);
2715
- };
2716
- Object.defineProperty(v, "__esModule", { value: !0 });
2717
- v.cloneNode = v.hasChildren = v.isDocument = v.isDirective = v.isComment = v.isText = v.isCDATA = v.isTag = v.Element = v.Document = v.CDATA = v.NodeWithChildren = v.ProcessingInstruction = v.Comment = v.Text = v.DataNode = v.Node = void 0;
2718
- var B = $t, Wt = (
2719
- /** @class */
2720
- function() {
2721
- function e() {
2722
- this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
2723
- }
2724
- return Object.defineProperty(e.prototype, "parentNode", {
2725
- // Read-write aliases for properties
2726
- /**
2727
- * Same as {@link parent}.
2728
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
2729
- */
2730
- get: function() {
2731
- return this.parent;
2732
- },
2733
- set: function(t) {
2734
- this.parent = t;
2735
- },
2736
- enumerable: !1,
2737
- configurable: !0
2738
- }), Object.defineProperty(e.prototype, "previousSibling", {
2739
- /**
2740
- * Same as {@link prev}.
2741
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
2742
- */
2743
- get: function() {
2744
- return this.prev;
2745
- },
2746
- set: function(t) {
2747
- this.prev = t;
2748
- },
2749
- enumerable: !1,
2750
- configurable: !0
2751
- }), Object.defineProperty(e.prototype, "nextSibling", {
2752
- /**
2753
- * Same as {@link next}.
2754
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
2755
- */
2756
- get: function() {
2757
- return this.next;
2758
- },
2759
- set: function(t) {
2760
- this.next = t;
2761
- },
2762
- enumerable: !1,
2763
- configurable: !0
2764
- }), e.prototype.cloneNode = function(t) {
2765
- return t === void 0 && (t = !1), Vt(this, t);
2766
- }, e;
2767
- }()
2768
- );
2769
- v.Node = Wt;
2770
- var ot = (
2771
- /** @class */
2772
- function(e) {
2773
- re(t, e);
2774
- function t(n) {
2775
- var r = e.call(this) || this;
2776
- return r.data = n, r;
2777
- }
2778
- return Object.defineProperty(t.prototype, "nodeValue", {
2779
- /**
2780
- * Same as {@link data}.
2781
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
2782
- */
2783
- get: function() {
2784
- return this.data;
2785
- },
2786
- set: function(n) {
2787
- this.data = n;
2788
- },
2789
- enumerable: !1,
2790
- configurable: !0
2791
- }), t;
2792
- }(Wt)
2793
- );
2794
- v.DataNode = ot;
2795
- var yr = (
2796
- /** @class */
2797
- function(e) {
2798
- re(t, e);
2799
- function t() {
2800
- var n = e !== null && e.apply(this, arguments) || this;
2801
- return n.type = B.ElementType.Text, n;
2802
- }
2803
- return Object.defineProperty(t.prototype, "nodeType", {
2804
- get: function() {
2805
- return 3;
2806
- },
2807
- enumerable: !1,
2808
- configurable: !0
2809
- }), t;
2810
- }(ot)
2811
- );
2812
- v.Text = yr;
2813
- var Tr = (
2814
- /** @class */
2815
- function(e) {
2816
- re(t, e);
2817
- function t() {
2818
- var n = e !== null && e.apply(this, arguments) || this;
2819
- return n.type = B.ElementType.Comment, n;
2820
- }
2821
- return Object.defineProperty(t.prototype, "nodeType", {
2822
- get: function() {
2823
- return 8;
2824
- },
2825
- enumerable: !1,
2826
- configurable: !0
2827
- }), t;
2828
- }(ot)
2829
- );
2830
- v.Comment = Tr;
2831
- var vr = (
2832
- /** @class */
2833
- function(e) {
2834
- re(t, e);
2835
- function t(n, r) {
2836
- var o = e.call(this, r) || this;
2837
- return o.name = n, o.type = B.ElementType.Directive, o;
2838
- }
2839
- return Object.defineProperty(t.prototype, "nodeType", {
2840
- get: function() {
2841
- return 1;
2842
- },
2843
- enumerable: !1,
2844
- configurable: !0
2845
- }), t;
2846
- }(ot)
2847
- );
2848
- v.ProcessingInstruction = vr;
2849
- var at = (
2850
- /** @class */
2851
- function(e) {
2852
- re(t, e);
2853
- function t(n) {
2854
- var r = e.call(this) || this;
2855
- return r.children = n, r;
2856
- }
2857
- return Object.defineProperty(t.prototype, "firstChild", {
2858
- // Aliases
2859
- /** First child of the node. */
2860
- get: function() {
2861
- var n;
2862
- return (n = this.children[0]) !== null && n !== void 0 ? n : null;
2863
- },
2864
- enumerable: !1,
2865
- configurable: !0
2866
- }), Object.defineProperty(t.prototype, "lastChild", {
2867
- /** Last child of the node. */
2868
- get: function() {
2869
- return this.children.length > 0 ? this.children[this.children.length - 1] : null;
2870
- },
2871
- enumerable: !1,
2872
- configurable: !0
2873
- }), Object.defineProperty(t.prototype, "childNodes", {
2874
- /**
2875
- * Same as {@link children}.
2876
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
2877
- */
2878
- get: function() {
2879
- return this.children;
2880
- },
2881
- set: function(n) {
2882
- this.children = n;
2883
- },
2884
- enumerable: !1,
2885
- configurable: !0
2886
- }), t;
2887
- }(Wt)
2888
- );
2889
- v.NodeWithChildren = at;
2890
- var Er = (
2891
- /** @class */
2892
- function(e) {
2893
- re(t, e);
2894
- function t() {
2895
- var n = e !== null && e.apply(this, arguments) || this;
2896
- return n.type = B.ElementType.CDATA, n;
2897
- }
2898
- return Object.defineProperty(t.prototype, "nodeType", {
2899
- get: function() {
2900
- return 4;
2901
- },
2902
- enumerable: !1,
2903
- configurable: !0
2904
- }), t;
2905
- }(at)
2906
- );
2907
- v.CDATA = Er;
2908
- var _r = (
2909
- /** @class */
2910
- function(e) {
2911
- re(t, e);
2912
- function t() {
2913
- var n = e !== null && e.apply(this, arguments) || this;
2914
- return n.type = B.ElementType.Root, n;
2915
- }
2916
- return Object.defineProperty(t.prototype, "nodeType", {
2917
- get: function() {
2918
- return 9;
2919
- },
2920
- enumerable: !1,
2921
- configurable: !0
2922
- }), t;
2923
- }(at)
2924
- );
2925
- v.Document = _r;
2926
- var Ar = (
2927
- /** @class */
2928
- function(e) {
2929
- re(t, e);
2930
- function t(n, r, o, c) {
2931
- o === void 0 && (o = []), c === void 0 && (c = n === "script" ? B.ElementType.Script : n === "style" ? B.ElementType.Style : B.ElementType.Tag);
2932
- var d = e.call(this, o) || this;
2933
- return d.name = n, d.attribs = r, d.type = c, d;
2934
- }
2935
- return Object.defineProperty(t.prototype, "nodeType", {
2936
- get: function() {
2937
- return 1;
2938
- },
2939
- enumerable: !1,
2940
- configurable: !0
2941
- }), Object.defineProperty(t.prototype, "tagName", {
2942
- // DOM Level 1 aliases
2943
- /**
2944
- * Same as {@link name}.
2945
- * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
2946
- */
2947
- get: function() {
2948
- return this.name;
2949
- },
2950
- set: function(n) {
2951
- this.name = n;
2952
- },
2953
- enumerable: !1,
2954
- configurable: !0
2955
- }), Object.defineProperty(t.prototype, "attributes", {
2956
- get: function() {
2957
- var n = this;
2958
- return Object.keys(this.attribs).map(function(r) {
2959
- var o, c;
2960
- return {
2961
- name: r,
2962
- value: n.attribs[r],
2963
- namespace: (o = n["x-attribsNamespace"]) === null || o === void 0 ? void 0 : o[r],
2964
- prefix: (c = n["x-attribsPrefix"]) === null || c === void 0 ? void 0 : c[r]
2965
- };
2966
- });
2967
- },
2968
- enumerable: !1,
2969
- configurable: !0
2970
- }), t;
2971
- }(at)
2972
- );
2973
- v.Element = Ar;
2974
- function Cr(e) {
2975
- return (0, B.isTag)(e);
2976
- }
2977
- v.isTag = Cr;
2978
- function Sr(e) {
2979
- return e.type === B.ElementType.CDATA;
2980
- }
2981
- v.isCDATA = Sr;
2982
- function Or(e) {
2983
- return e.type === B.ElementType.Text;
2984
- }
2985
- v.isText = Or;
2986
- function wr(e) {
2987
- return e.type === B.ElementType.Comment;
2988
- }
2989
- v.isComment = wr;
2990
- function Nr(e) {
2991
- return e.type === B.ElementType.Directive;
2992
- }
2993
- v.isDirective = Nr;
2994
- function Rr(e) {
2995
- return e.type === B.ElementType.Root;
2996
- }
2997
- v.isDocument = Rr;
2998
- function fo(e) {
2999
- return Object.prototype.hasOwnProperty.call(e, "children");
3000
- }
3001
- v.hasChildren = fo;
3002
- function Vt(e, t) {
3003
- t === void 0 && (t = !1);
3004
- var n;
3005
- if (Or(e))
3006
- n = new yr(e.data);
3007
- else if (wr(e))
3008
- n = new Tr(e.data);
3009
- else if (Cr(e)) {
3010
- var r = t ? Tt(e.children) : [], o = new Ar(e.name, De({}, e.attribs), r);
3011
- r.forEach(function(a) {
3012
- return a.parent = o;
3013
- }), e.namespace != null && (o.namespace = e.namespace), e["x-attribsNamespace"] && (o["x-attribsNamespace"] = De({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (o["x-attribsPrefix"] = De({}, e["x-attribsPrefix"])), n = o;
3014
- } else if (Sr(e)) {
3015
- var r = t ? Tt(e.children) : [], c = new Er(r);
3016
- r.forEach(function(l) {
3017
- return l.parent = c;
3018
- }), n = c;
3019
- } else if (Rr(e)) {
3020
- var r = t ? Tt(e.children) : [], d = new _r(r);
3021
- r.forEach(function(l) {
3022
- return l.parent = d;
3023
- }), e["x-mode"] && (d["x-mode"] = e["x-mode"]), n = d;
3024
- } else if (Nr(e)) {
3025
- var s = new vr(e.name, e.data);
3026
- e["x-name"] != null && (s["x-name"] = e["x-name"], s["x-publicId"] = e["x-publicId"], s["x-systemId"] = e["x-systemId"]), n = s;
3027
- } else
3028
- throw new Error("Not implemented yet: ".concat(e.type));
3029
- return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n;
3030
- }
3031
- v.cloneNode = Vt;
3032
- function Tt(e) {
3033
- for (var t = e.map(function(r) {
3034
- return Vt(r, !0);
3035
- }), n = 1; n < t.length; n++)
3036
- t[n].prev = t[n - 1], t[n - 1].next = t[n];
3037
- return t;
3038
- }
3039
- (function(e) {
3040
- var t = E && E.__createBinding || (Object.create ? function(s, a, l, f) {
3041
- f === void 0 && (f = l);
3042
- var p = Object.getOwnPropertyDescriptor(a, l);
3043
- (!p || ("get" in p ? !a.__esModule : p.writable || p.configurable)) && (p = { enumerable: !0, get: function() {
3044
- return a[l];
3045
- } }), Object.defineProperty(s, f, p);
3046
- } : function(s, a, l, f) {
3047
- f === void 0 && (f = l), s[f] = a[l];
3048
- }), n = E && E.__exportStar || function(s, a) {
3049
- for (var l in s) l !== "default" && !Object.prototype.hasOwnProperty.call(a, l) && t(a, s, l);
3050
- };
3051
- Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
3052
- var r = $t, o = v;
3053
- n(v, e);
3054
- var c = {
3055
- withStartIndices: !1,
3056
- withEndIndices: !1,
3057
- xmlMode: !1
3058
- }, d = (
3059
- /** @class */
3060
- function() {
3061
- function s(a, l, f) {
3062
- this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof l == "function" && (f = l, l = c), typeof a == "object" && (l = a, a = void 0), this.callback = a ?? null, this.options = l ?? c, this.elementCB = f ?? null;
3063
- }
3064
- return s.prototype.onparserinit = function(a) {
3065
- this.parser = a;
3066
- }, s.prototype.onreset = function() {
3067
- this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
3068
- }, s.prototype.onend = function() {
3069
- this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
3070
- }, s.prototype.onerror = function(a) {
3071
- this.handleCallback(a);
3072
- }, s.prototype.onclosetag = function() {
3073
- this.lastNode = null;
3074
- var a = this.tagStack.pop();
3075
- this.options.withEndIndices && (a.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(a);
3076
- }, s.prototype.onopentag = function(a, l) {
3077
- var f = this.options.xmlMode ? r.ElementType.Tag : void 0, p = new o.Element(a, l, void 0, f);
3078
- this.addNode(p), this.tagStack.push(p);
3079
- }, s.prototype.ontext = function(a) {
3080
- var l = this.lastNode;
3081
- if (l && l.type === r.ElementType.Text)
3082
- l.data += a, this.options.withEndIndices && (l.endIndex = this.parser.endIndex);
3083
- else {
3084
- var f = new o.Text(a);
3085
- this.addNode(f), this.lastNode = f;
3086
- }
3087
- }, s.prototype.oncomment = function(a) {
3088
- if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
3089
- this.lastNode.data += a;
3090
- return;
3091
- }
3092
- var l = new o.Comment(a);
3093
- this.addNode(l), this.lastNode = l;
3094
- }, s.prototype.oncommentend = function() {
3095
- this.lastNode = null;
3096
- }, s.prototype.oncdatastart = function() {
3097
- var a = new o.Text(""), l = new o.CDATA([a]);
3098
- this.addNode(l), a.parent = l, this.lastNode = a;
3099
- }, s.prototype.oncdataend = function() {
3100
- this.lastNode = null;
3101
- }, s.prototype.onprocessinginstruction = function(a, l) {
3102
- var f = new o.ProcessingInstruction(a, l);
3103
- this.addNode(f);
3104
- }, s.prototype.handleCallback = function(a) {
3105
- if (typeof this.callback == "function")
3106
- this.callback(a, this.dom);
3107
- else if (a)
3108
- throw a;
3109
- }, s.prototype.addNode = function(a) {
3110
- var l = this.tagStack[this.tagStack.length - 1], f = l.children[l.children.length - 1];
3111
- this.options.withStartIndices && (a.startIndex = this.parser.startIndex), this.options.withEndIndices && (a.endIndex = this.parser.endIndex), l.children.push(a), f && (a.prev = f, f.next = a), a.parent = l, this.lastNode = null;
3112
- }, s;
3113
- }()
3114
- );
3115
- e.DomHandler = d, e.default = d;
3116
- })(br);
3117
- (function(e) {
3118
- var t = E && E.__importDefault || function(a) {
3119
- return a && a.__esModule ? a : { default: a };
3120
- };
3121
- Object.defineProperty(e, "__esModule", { value: !0 }), e.htmlToDOM = e.domToReact = e.attributesToProps = e.Text = e.ProcessingInstruction = e.Element = e.Comment = void 0, e.default = s;
3122
- var n = t(kt);
3123
- e.htmlToDOM = n.default;
3124
- var r = t(et);
3125
- e.attributesToProps = r.default;
3126
- var o = t(zt);
3127
- e.domToReact = o.default;
3128
- var c = br;
3129
- Object.defineProperty(e, "Comment", { enumerable: !0, get: function() {
3130
- return c.Comment;
3131
- } }), Object.defineProperty(e, "Element", { enumerable: !0, get: function() {
3132
- return c.Element;
3133
- } }), Object.defineProperty(e, "ProcessingInstruction", { enumerable: !0, get: function() {
3134
- return c.ProcessingInstruction;
3135
- } }), Object.defineProperty(e, "Text", { enumerable: !0, get: function() {
3136
- return c.Text;
3137
- } });
3138
- var d = { lowerCaseAttributeNames: !1 };
3139
- function s(a, l) {
3140
- if (typeof a != "string")
3141
- throw new TypeError("First argument must be a string");
3142
- return a ? (0, o.default)((0, n.default)(a, (l == null ? void 0 : l.htmlparser2) || d), l) : [];
3143
- }
3144
- })(Zn);
3145
- const Mn = /* @__PURE__ */ Qr(Zn), wa = Mn.default || Mn;
3146
- /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
3147
- const {
3148
- entries: Ir,
3149
- setPrototypeOf: Ln,
3150
- isFrozen: uo,
3151
- getPrototypeOf: po,
3152
- getOwnPropertyDescriptor: mo
3153
- } = Object;
3154
- let {
3155
- freeze: F,
3156
- seal: W,
3157
- create: xr
3158
- } = Object, {
3159
- apply: Rt,
3160
- construct: It
3161
- } = typeof Reflect < "u" && Reflect;
3162
- F || (F = function(t) {
3163
- return t;
3164
- });
3165
- W || (W = function(t) {
3166
- return t;
3167
- });
3168
- Rt || (Rt = function(t, n, r) {
3169
- return t.apply(n, r);
3170
- });
3171
- It || (It = function(t, n) {
3172
- return new t(...n);
3173
- });
3174
- const Ve = z(Array.prototype.forEach), Fn = z(Array.prototype.pop), Ce = z(Array.prototype.push), Ye = z(String.prototype.toLowerCase), vt = z(String.prototype.toString), Hn = z(String.prototype.match), Se = z(String.prototype.replace), ho = z(String.prototype.indexOf), go = z(String.prototype.trim), V = z(Object.prototype.hasOwnProperty), M = z(RegExp.prototype.test), Oe = bo(TypeError);
3175
- function z(e) {
3176
- return function(t) {
3177
- for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
3178
- r[o - 1] = arguments[o];
3179
- return Rt(e, t, r);
3180
- };
3181
- }
3182
- function bo(e) {
3183
- return function() {
3184
- for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
3185
- n[r] = arguments[r];
3186
- return It(e, n);
3187
- };
3188
- }
3189
- function y(e, t) {
3190
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Ye;
3191
- Ln && Ln(e, null);
3192
- let r = t.length;
3193
- for (; r--; ) {
3194
- let o = t[r];
3195
- if (typeof o == "string") {
3196
- const c = n(o);
3197
- c !== o && (uo(t) || (t[r] = c), o = c);
3198
- }
3199
- e[o] = !0;
3200
- }
3201
- return e;
3202
- }
3203
- function yo(e) {
3204
- for (let t = 0; t < e.length; t++)
3205
- V(e, t) || (e[t] = null);
3206
- return e;
3207
- }
3208
- function le(e) {
3209
- const t = xr(null);
3210
- for (const [n, r] of Ir(e))
3211
- V(e, n) && (Array.isArray(r) ? t[n] = yo(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = le(r) : t[n] = r);
3212
- return t;
3213
- }
3214
- function we(e, t) {
3215
- for (; e !== null; ) {
3216
- const r = mo(e, t);
3217
- if (r) {
3218
- if (r.get)
3219
- return z(r.get);
3220
- if (typeof r.value == "function")
3221
- return z(r.value);
3222
- }
3223
- e = po(e);
3224
- }
3225
- function n() {
3226
- return null;
3227
- }
3228
- return n;
3229
- }
3230
- const Un = F(["a", "abbr", "acronym", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "big", "blink", "blockquote", "body", "br", "button", "canvas", "caption", "center", "cite", "code", "col", "colgroup", "content", "data", "datalist", "dd", "decorator", "del", "details", "dfn", "dialog", "dir", "div", "dl", "dt", "element", "em", "fieldset", "figcaption", "figure", "font", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "marquee", "menu", "menuitem", "meter", "nav", "nobr", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "section", "select", "shadow", "small", "source", "spacer", "span", "strike", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "tt", "u", "ul", "var", "video", "wbr"]), Et = F(["svg", "a", "altglyph", "altglyphdef", "altglyphitem", "animatecolor", "animatemotion", "animatetransform", "circle", "clippath", "defs", "desc", "ellipse", "filter", "font", "g", "glyph", "glyphref", "hkern", "image", "line", "lineargradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialgradient", "rect", "stop", "style", "switch", "symbol", "text", "textpath", "title", "tref", "tspan", "view", "vkern"]), _t = F(["feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"]), To = F(["animate", "color-profile", "cursor", "discard", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "foreignobject", "hatch", "hatchpath", "mesh", "meshgradient", "meshpatch", "meshrow", "missing-glyph", "script", "set", "solidcolor", "unknown", "use"]), At = F(["math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msup", "msubsup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "mprescripts"]), vo = F(["maction", "maligngroup", "malignmark", "mlongdiv", "mscarries", "mscarry", "msgroup", "mstack", "msline", "msrow", "semantics", "annotation", "annotation-xml", "mprescripts", "none"]), jn = F(["#text"]), Gn = F(["accept", "action", "align", "alt", "autocapitalize", "autocomplete", "autopictureinpicture", "autoplay", "background", "bgcolor", "border", "capture", "cellpadding", "cellspacing", "checked", "cite", "class", "clear", "color", "cols", "colspan", "controls", "controlslist", "coords", "crossorigin", "datetime", "decoding", "default", "dir", "disabled", "disablepictureinpicture", "disableremoteplayback", "download", "draggable", "enctype", "enterkeyhint", "face", "for", "headers", "height", "hidden", "high", "href", "hreflang", "id", "inputmode", "integrity", "ismap", "kind", "label", "lang", "list", "loading", "loop", "low", "max", "maxlength", "media", "method", "min", "minlength", "multiple", "muted", "name", "nonce", "noshade", "novalidate", "nowrap", "open", "optimum", "pattern", "placeholder", "playsinline", "popover", "popovertarget", "popovertargetaction", "poster", "preload", "pubdate", "radiogroup", "readonly", "rel", "required", "rev", "reversed", "role", "rows", "rowspan", "spellcheck", "scope", "selected", "shape", "size", "sizes", "span", "srclang", "start", "src", "srcset", "step", "style", "summary", "tabindex", "title", "translate", "type", "usemap", "valign", "value", "width", "wrap", "xmlns", "slot"]), Ct = F(["accent-height", "accumulate", "additive", "alignment-baseline", "ascent", "attributename", "attributetype", "azimuth", "basefrequency", "baseline-shift", "begin", "bias", "by", "class", "clip", "clippathunits", "clip-path", "clip-rule", "color", "color-interpolation", "color-interpolation-filters", "color-profile", "color-rendering", "cx", "cy", "d", "dx", "dy", "diffuseconstant", "direction", "display", "divisor", "dur", "edgemode", "elevation", "end", "fill", "fill-opacity", "fill-rule", "filter", "filterunits", "flood-color", "flood-opacity", "font-family", "font-size", "font-size-adjust", "font-stretch", "font-style", "font-variant", "font-weight", "fx", "fy", "g1", "g2", "glyph-name", "glyphref", "gradientunits", "gradienttransform", "height", "href", "id", "image-rendering", "in", "in2", "k", "k1", "k2", "k3", "k4", "kerning", "keypoints", "keysplines", "keytimes", "lang", "lengthadjust", "letter-spacing", "kernelmatrix", "kernelunitlength", "lighting-color", "local", "marker-end", "marker-mid", "marker-start", "markerheight", "markerunits", "markerwidth", "maskcontentunits", "maskunits", "max", "mask", "media", "method", "mode", "min", "name", "numoctaves", "offset", "operator", "opacity", "order", "orient", "orientation", "origin", "overflow", "paint-order", "path", "pathlength", "patterncontentunits", "patterntransform", "patternunits", "points", "preservealpha", "preserveaspectratio", "primitiveunits", "r", "rx", "ry", "radius", "refx", "refy", "repeatcount", "repeatdur", "restart", "result", "rotate", "scale", "seed", "shape-rendering", "specularconstant", "specularexponent", "spreadmethod", "startoffset", "stddeviation", "stitchtiles", "stop-color", "stop-opacity", "stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin", "stroke-miterlimit", "stroke-opacity", "stroke", "stroke-width", "style", "surfacescale", "systemlanguage", "tabindex", "targetx", "targety", "transform", "transform-origin", "text-anchor", "text-decoration", "text-rendering", "textlength", "type", "u1", "u2", "unicode", "values", "viewbox", "visibility", "version", "vert-adv-y", "vert-origin-x", "vert-origin-y", "width", "word-spacing", "wrap", "writing-mode", "xchannelselector", "ychannelselector", "x", "x1", "x2", "xmlns", "y", "y1", "y2", "z", "zoomandpan"]), Bn = F(["accent", "accentunder", "align", "bevelled", "close", "columnsalign", "columnlines", "columnspan", "denomalign", "depth", "dir", "display", "displaystyle", "encoding", "fence", "frame", "height", "href", "id", "largeop", "length", "linethickness", "lspace", "lquote", "mathbackground", "mathcolor", "mathsize", "mathvariant", "maxsize", "minsize", "movablelimits", "notation", "numalign", "open", "rowalign", "rowlines", "rowspacing", "rowspan", "rspace", "rquote", "scriptlevel", "scriptminsize", "scriptsizemultiplier", "selection", "separator", "separators", "stretchy", "subscriptshift", "supscriptshift", "symmetric", "voffset", "width", "xmlns"]), Xe = F(["xlink:href", "xml:id", "xlink:title", "xml:space", "xmlns:xlink"]), Eo = W(/\{\{[\w\W]*|[\w\W]*\}\}/gm), _o = W(/<%[\w\W]*|[\w\W]*%>/gm), Ao = W(/\${[\w\W]*}/gm), Co = W(/^data-[\-\w.\u00B7-\uFFFF]/), So = W(/^aria-[\-\w]+$/), Dr = W(
3231
- /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i
3232
- // eslint-disable-line no-useless-escape
3233
- ), Oo = W(/^(?:\w+script|data):/i), wo = W(
3234
- /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g
3235
- // eslint-disable-line no-control-regex
3236
- ), kr = W(/^html$/i), No = W(/^[a-z][.\w]*(-[.\w]+)+$/i);
3237
- var zn = /* @__PURE__ */ Object.freeze({
3238
- __proto__: null,
3239
- MUSTACHE_EXPR: Eo,
3240
- ERB_EXPR: _o,
3241
- TMPLIT_EXPR: Ao,
3242
- DATA_ATTR: Co,
3243
- ARIA_ATTR: So,
3244
- IS_ALLOWED_URI: Dr,
3245
- IS_SCRIPT_OR_DATA: Oo,
3246
- ATTR_WHITESPACE: wo,
3247
- DOCTYPE_NAME: kr,
3248
- CUSTOM_ELEMENT: No
3249
- });
3250
- const Ne = {
3251
- element: 1,
3252
- attribute: 2,
3253
- text: 3,
3254
- cdataSection: 4,
3255
- entityReference: 5,
3256
- // Deprecated
3257
- entityNode: 6,
3258
- // Deprecated
3259
- progressingInstruction: 7,
3260
- comment: 8,
3261
- document: 9,
3262
- documentType: 10,
3263
- documentFragment: 11,
3264
- notation: 12
3265
- // Deprecated
3266
- }, Ro = function() {
3267
- return typeof window > "u" ? null : window;
3268
- }, Io = function(t, n) {
3269
- if (typeof t != "object" || typeof t.createPolicy != "function")
3270
- return null;
3271
- let r = null;
3272
- const o = "data-tt-policy-suffix";
3273
- n && n.hasAttribute(o) && (r = n.getAttribute(o));
3274
- const c = "dompurify" + (r ? "#" + r : "");
3275
- try {
3276
- return t.createPolicy(c, {
3277
- createHTML(d) {
3278
- return d;
3279
- },
3280
- createScriptURL(d) {
3281
- return d;
3282
- }
3283
- });
3284
- } catch {
3285
- return console.warn("TrustedTypes policy " + c + " could not be created."), null;
3286
- }
3287
- };
3288
- function Pr() {
3289
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ro();
3290
- const t = (h) => Pr(h);
3291
- if (t.version = "3.1.6", t.removed = [], !e || !e.document || e.document.nodeType !== Ne.document)
3292
- return t.isSupported = !1, t;
3293
- let {
3294
- document: n
3295
- } = e;
3296
- const r = n, o = r.currentScript, {
3297
- DocumentFragment: c,
3298
- HTMLTemplateElement: d,
3299
- Node: s,
3300
- Element: a,
3301
- NodeFilter: l,
3302
- NamedNodeMap: f = e.NamedNodeMap || e.MozNamedAttrMap,
3303
- HTMLFormElement: p,
3304
- DOMParser: x,
3305
- trustedTypes: U
3306
- } = e, b = a.prototype, g = we(b, "cloneNode"), C = we(b, "remove"), ce = we(b, "nextSibling"), ie = we(b, "childNodes"), $ = we(b, "parentNode");
3307
- if (typeof d == "function") {
3308
- const h = n.createElement("template");
3309
- h.content && h.content.ownerDocument && (n = h.content.ownerDocument);
3310
- }
3311
- let A, Z = "";
3312
- const {
3313
- implementation: oe,
3314
- createNodeIterator: K,
3315
- createDocumentFragment: J,
3316
- getElementsByTagName: ke
3317
- } = n, {
3318
- importNode: Pe
3319
- } = r;
3320
- let D = {};
3321
- t.isSupported = typeof Ir == "function" && typeof $ == "function" && oe && oe.createHTMLDocument !== void 0;
3322
- const {
3323
- MUSTACHE_EXPR: ye,
3324
- ERB_EXPR: Te,
3325
- TMPLIT_EXPR: fe,
3326
- DATA_ATTR: Lr,
3327
- ARIA_ATTR: Fr,
3328
- IS_SCRIPT_OR_DATA: Hr,
3329
- ATTR_WHITESPACE: Xt,
3330
- CUSTOM_ELEMENT: Ur
3331
- } = zn;
3332
- let {
3333
- IS_ALLOWED_URI: Yt
3334
- } = zn, O = null;
3335
- const qt = y({}, [...Un, ...Et, ..._t, ...At, ...jn]);
3336
- let w = null;
3337
- const Zt = y({}, [...Gn, ...Ct, ...Bn, ...Xe]);
3338
- let S = Object.seal(xr(null, {
3339
- tagNameCheck: {
3340
- writable: !0,
3341
- configurable: !1,
3342
- enumerable: !0,
3343
- value: null
3344
- },
3345
- attributeNameCheck: {
3346
- writable: !0,
3347
- configurable: !1,
3348
- enumerable: !0,
3349
- value: null
3350
- },
3351
- allowCustomizedBuiltInElements: {
3352
- writable: !0,
3353
- configurable: !1,
3354
- enumerable: !0,
3355
- value: !1
3356
- }
3357
- })), ve = null, lt = null, Kt = !0, st = !0, Jt = !1, Qt = !0, ue = !1, ct = !0, ae = !1, ft = !1, ut = !1, de = !1, Me = !1, Le = !1, en = !0, tn = !1;
3358
- const jr = "user-content-";
3359
- let dt = !0, Ee = !1, pe = {}, me = null;
3360
- const nn = y({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
3361
- let rn = null;
3362
- const on = y({}, ["audio", "video", "img", "source", "image", "track"]);
3363
- let pt = null;
3364
- const an = y({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", He = "http://www.w3.org/2000/svg", Q = "http://www.w3.org/1999/xhtml";
3365
- let he = Q, mt = !1, ht = null;
3366
- const Gr = y({}, [Fe, He, Q], vt);
3367
- let _e = null;
3368
- const Br = ["application/xhtml+xml", "text/html"], zr = "text/html";
3369
- let N = null, ge = null;
3370
- const $r = n.createElement("form"), ln = function(i) {
3371
- return i instanceof RegExp || i instanceof Function;
3372
- }, gt = function() {
3373
- let i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3374
- if (!(ge && ge === i)) {
3375
- if ((!i || typeof i != "object") && (i = {}), i = le(i), _e = // eslint-disable-next-line unicorn/prefer-includes
3376
- Br.indexOf(i.PARSER_MEDIA_TYPE) === -1 ? zr : i.PARSER_MEDIA_TYPE, N = _e === "application/xhtml+xml" ? vt : Ye, O = V(i, "ALLOWED_TAGS") ? y({}, i.ALLOWED_TAGS, N) : qt, w = V(i, "ALLOWED_ATTR") ? y({}, i.ALLOWED_ATTR, N) : Zt, ht = V(i, "ALLOWED_NAMESPACES") ? y({}, i.ALLOWED_NAMESPACES, vt) : Gr, pt = V(i, "ADD_URI_SAFE_ATTR") ? y(
3377
- le(an),
3378
- // eslint-disable-line indent
3379
- i.ADD_URI_SAFE_ATTR,
3380
- // eslint-disable-line indent
3381
- N
3382
- // eslint-disable-line indent
3383
- ) : an, rn = V(i, "ADD_DATA_URI_TAGS") ? y(
3384
- le(on),
3385
- // eslint-disable-line indent
3386
- i.ADD_DATA_URI_TAGS,
3387
- // eslint-disable-line indent
3388
- N
3389
- // eslint-disable-line indent
3390
- ) : on, me = V(i, "FORBID_CONTENTS") ? y({}, i.FORBID_CONTENTS, N) : nn, ve = V(i, "FORBID_TAGS") ? y({}, i.FORBID_TAGS, N) : {}, lt = V(i, "FORBID_ATTR") ? y({}, i.FORBID_ATTR, N) : {}, pe = V(i, "USE_PROFILES") ? i.USE_PROFILES : !1, Kt = i.ALLOW_ARIA_ATTR !== !1, st = i.ALLOW_DATA_ATTR !== !1, Jt = i.ALLOW_UNKNOWN_PROTOCOLS || !1, Qt = i.ALLOW_SELF_CLOSE_IN_ATTR !== !1, ue = i.SAFE_FOR_TEMPLATES || !1, ct = i.SAFE_FOR_XML !== !1, ae = i.WHOLE_DOCUMENT || !1, de = i.RETURN_DOM || !1, Me = i.RETURN_DOM_FRAGMENT || !1, Le = i.RETURN_TRUSTED_TYPE || !1, ut = i.FORCE_BODY || !1, en = i.SANITIZE_DOM !== !1, tn = i.SANITIZE_NAMED_PROPS || !1, dt = i.KEEP_CONTENT !== !1, Ee = i.IN_PLACE || !1, Yt = i.ALLOWED_URI_REGEXP || Dr, he = i.NAMESPACE || Q, S = i.CUSTOM_ELEMENT_HANDLING || {}, i.CUSTOM_ELEMENT_HANDLING && ln(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (S.tagNameCheck = i.CUSTOM_ELEMENT_HANDLING.tagNameCheck), i.CUSTOM_ELEMENT_HANDLING && ln(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (S.attributeNameCheck = i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), i.CUSTOM_ELEMENT_HANDLING && typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (S.allowCustomizedBuiltInElements = i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), ue && (st = !1), Me && (de = !0), pe && (O = y({}, jn), w = [], pe.html === !0 && (y(O, Un), y(w, Gn)), pe.svg === !0 && (y(O, Et), y(w, Ct), y(w, Xe)), pe.svgFilters === !0 && (y(O, _t), y(w, Ct), y(w, Xe)), pe.mathMl === !0 && (y(O, At), y(w, Bn), y(w, Xe))), i.ADD_TAGS && (O === qt && (O = le(O)), y(O, i.ADD_TAGS, N)), i.ADD_ATTR && (w === Zt && (w = le(w)), y(w, i.ADD_ATTR, N)), i.ADD_URI_SAFE_ATTR && y(pt, i.ADD_URI_SAFE_ATTR, N), i.FORBID_CONTENTS && (me === nn && (me = le(me)), y(me, i.FORBID_CONTENTS, N)), dt && (O["#text"] = !0), ae && y(O, ["html", "head", "body"]), O.table && (y(O, ["tbody"]), delete ve.tbody), i.TRUSTED_TYPES_POLICY) {
3391
- if (typeof i.TRUSTED_TYPES_POLICY.createHTML != "function")
3392
- throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
3393
- if (typeof i.TRUSTED_TYPES_POLICY.createScriptURL != "function")
3394
- throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
3395
- A = i.TRUSTED_TYPES_POLICY, Z = A.createHTML("");
3396
- } else
3397
- A === void 0 && (A = Io(U, o)), A !== null && typeof Z == "string" && (Z = A.createHTML(""));
3398
- F && F(i), ge = i;
3399
- }
3400
- }, sn = y({}, ["mi", "mo", "mn", "ms", "mtext"]), cn = y({}, ["foreignobject", "annotation-xml"]), Wr = y({}, ["title", "style", "font", "a", "script"]), fn = y({}, [...Et, ..._t, ...To]), un = y({}, [...At, ...vo]), Vr = function(i) {
3401
- let u = $(i);
3402
- (!u || !u.tagName) && (u = {
3403
- namespaceURI: he,
3404
- tagName: "template"
3405
- });
3406
- const m = Ye(i.tagName), _ = Ye(u.tagName);
3407
- return ht[i.namespaceURI] ? i.namespaceURI === He ? u.namespaceURI === Q ? m === "svg" : u.namespaceURI === Fe ? m === "svg" && (_ === "annotation-xml" || sn[_]) : !!fn[m] : i.namespaceURI === Fe ? u.namespaceURI === Q ? m === "math" : u.namespaceURI === He ? m === "math" && cn[_] : !!un[m] : i.namespaceURI === Q ? u.namespaceURI === He && !cn[_] || u.namespaceURI === Fe && !sn[_] ? !1 : !un[m] && (Wr[m] || !fn[m]) : !!(_e === "application/xhtml+xml" && ht[i.namespaceURI]) : !1;
3408
- }, Y = function(i) {
3409
- Ce(t.removed, {
3410
- element: i
3411
- });
3412
- try {
3413
- $(i).removeChild(i);
3414
- } catch {
3415
- C(i);
3416
- }
3417
- }, Ue = function(i, u) {
3418
- try {
3419
- Ce(t.removed, {
3420
- attribute: u.getAttributeNode(i),
3421
- from: u
3422
- });
3423
- } catch {
3424
- Ce(t.removed, {
3425
- attribute: null,
3426
- from: u
3427
- });
3428
- }
3429
- if (u.removeAttribute(i), i === "is" && !w[i])
3430
- if (de || Me)
3431
- try {
3432
- Y(u);
3433
- } catch {
3434
- }
3435
- else
3436
- try {
3437
- u.setAttribute(i, "");
3438
- } catch {
3439
- }
3440
- }, dn = function(i) {
3441
- let u = null, m = null;
3442
- if (ut)
3443
- i = "<remove></remove>" + i;
3444
- else {
3445
- const R = Hn(i, /^[\r\n\t ]+/);
3446
- m = R && R[0];
3447
- }
3448
- _e === "application/xhtml+xml" && he === Q && (i = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + i + "</body></html>");
3449
- const _ = A ? A.createHTML(i) : i;
3450
- if (he === Q)
3451
- try {
3452
- u = new x().parseFromString(_, _e);
3453
- } catch {
3454
- }
3455
- if (!u || !u.documentElement) {
3456
- u = oe.createDocument(he, "template", null);
3457
- try {
3458
- u.documentElement.innerHTML = mt ? Z : _;
3459
- } catch {
3460
- }
3461
- }
3462
- const k = u.body || u.documentElement;
3463
- return i && m && k.insertBefore(n.createTextNode(m), k.childNodes[0] || null), he === Q ? ke.call(u, ae ? "html" : "body")[0] : ae ? u.documentElement : k;
3464
- }, pn = function(i) {
3465
- return K.call(
3466
- i.ownerDocument || i,
3467
- i,
3468
- // eslint-disable-next-line no-bitwise
3469
- l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION,
3470
- null
3471
- );
3472
- }, mn = function(i) {
3473
- return i instanceof p && (typeof i.nodeName != "string" || typeof i.textContent != "string" || typeof i.removeChild != "function" || !(i.attributes instanceof f) || typeof i.removeAttribute != "function" || typeof i.setAttribute != "function" || typeof i.namespaceURI != "string" || typeof i.insertBefore != "function" || typeof i.hasChildNodes != "function");
3474
- }, hn = function(i) {
3475
- return typeof s == "function" && i instanceof s;
3476
- }, ee = function(i, u, m) {
3477
- D[i] && Ve(D[i], (_) => {
3478
- _.call(t, u, m, ge);
3479
- });
3480
- }, gn = function(i) {
3481
- let u = null;
3482
- if (ee("beforeSanitizeElements", i, null), mn(i))
3483
- return Y(i), !0;
3484
- const m = N(i.nodeName);
3485
- if (ee("uponSanitizeElement", i, {
3486
- tagName: m,
3487
- allowedTags: O
3488
- }), i.hasChildNodes() && !hn(i.firstElementChild) && M(/<[/\w]/g, i.innerHTML) && M(/<[/\w]/g, i.textContent) || i.nodeType === Ne.progressingInstruction || ct && i.nodeType === Ne.comment && M(/<[/\w]/g, i.data))
3489
- return Y(i), !0;
3490
- if (!O[m] || ve[m]) {
3491
- if (!ve[m] && yn(m) && (S.tagNameCheck instanceof RegExp && M(S.tagNameCheck, m) || S.tagNameCheck instanceof Function && S.tagNameCheck(m)))
3492
- return !1;
3493
- if (dt && !me[m]) {
3494
- const _ = $(i) || i.parentNode, k = ie(i) || i.childNodes;
3495
- if (k && _) {
3496
- const R = k.length;
3497
- for (let j = R - 1; j >= 0; --j) {
3498
- const q = g(k[j], !0);
3499
- q.__removalCount = (i.__removalCount || 0) + 1, _.insertBefore(q, ce(i));
3500
- }
3501
- }
3502
- }
3503
- return Y(i), !0;
3504
- }
3505
- return i instanceof a && !Vr(i) || (m === "noscript" || m === "noembed" || m === "noframes") && M(/<\/no(script|embed|frames)/i, i.innerHTML) ? (Y(i), !0) : (ue && i.nodeType === Ne.text && (u = i.textContent, Ve([ye, Te, fe], (_) => {
3506
- u = Se(u, _, " ");
3507
- }), i.textContent !== u && (Ce(t.removed, {
3508
- element: i.cloneNode()
3509
- }), i.textContent = u)), ee("afterSanitizeElements", i, null), !1);
3510
- }, bn = function(i, u, m) {
3511
- if (en && (u === "id" || u === "name") && (m in n || m in $r))
3512
- return !1;
3513
- if (!(st && !lt[u] && M(Lr, u))) {
3514
- if (!(Kt && M(Fr, u))) {
3515
- if (!w[u] || lt[u]) {
3516
- if (
3517
- // First condition does a very basic check if a) it's basically a valid custom element tagname AND
3518
- // b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3519
- // and c) if the attribute name passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.attributeNameCheck
3520
- !(yn(i) && (S.tagNameCheck instanceof RegExp && M(S.tagNameCheck, i) || S.tagNameCheck instanceof Function && S.tagNameCheck(i)) && (S.attributeNameCheck instanceof RegExp && M(S.attributeNameCheck, u) || S.attributeNameCheck instanceof Function && S.attributeNameCheck(u)) || // Alternative, second condition checks if it's an `is`-attribute, AND
3521
- // the value passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
3522
- u === "is" && S.allowCustomizedBuiltInElements && (S.tagNameCheck instanceof RegExp && M(S.tagNameCheck, m) || S.tagNameCheck instanceof Function && S.tagNameCheck(m)))
3523
- ) return !1;
3524
- } else if (!pt[u]) {
3525
- if (!M(Yt, Se(m, Xt, ""))) {
3526
- if (!((u === "src" || u === "xlink:href" || u === "href") && i !== "script" && ho(m, "data:") === 0 && rn[i])) {
3527
- if (!(Jt && !M(Hr, Se(m, Xt, "")))) {
3528
- if (m)
3529
- return !1;
3530
- }
3531
- }
3532
- }
3533
- }
3534
- }
3535
- }
3536
- return !0;
3537
- }, yn = function(i) {
3538
- return i !== "annotation-xml" && Hn(i, Ur);
3539
- }, Tn = function(i) {
3540
- ee("beforeSanitizeAttributes", i, null);
3541
- const {
3542
- attributes: u
3543
- } = i;
3544
- if (!u)
3545
- return;
3546
- const m = {
3547
- attrName: "",
3548
- attrValue: "",
3549
- keepAttr: !0,
3550
- allowedAttributes: w
3551
- };
3552
- let _ = u.length;
3553
- for (; _--; ) {
3554
- const k = u[_], {
3555
- name: R,
3556
- namespaceURI: j,
3557
- value: q
3558
- } = k, Ae = N(R);
3559
- let P = R === "value" ? q : go(q);
3560
- if (m.attrName = Ae, m.attrValue = P, m.keepAttr = !0, m.forceKeepAttr = void 0, ee("uponSanitizeAttribute", i, m), P = m.attrValue, ct && M(/((--!?|])>)|<\/(style|title)/i, P)) {
3561
- Ue(R, i);
3562
- continue;
3563
- }
3564
- if (m.forceKeepAttr || (Ue(R, i), !m.keepAttr))
3565
- continue;
3566
- if (!Qt && M(/\/>/i, P)) {
3567
- Ue(R, i);
3568
- continue;
3569
- }
3570
- ue && Ve([ye, Te, fe], (En) => {
3571
- P = Se(P, En, " ");
3572
- });
3573
- const vn = N(i.nodeName);
3574
- if (bn(vn, Ae, P)) {
3575
- if (tn && (Ae === "id" || Ae === "name") && (Ue(R, i), P = jr + P), A && typeof U == "object" && typeof U.getAttributeType == "function" && !j)
3576
- switch (U.getAttributeType(vn, Ae)) {
3577
- case "TrustedHTML": {
3578
- P = A.createHTML(P);
3579
- break;
3580
- }
3581
- case "TrustedScriptURL": {
3582
- P = A.createScriptURL(P);
3583
- break;
3584
- }
3585
- }
3586
- try {
3587
- j ? i.setAttributeNS(j, R, P) : i.setAttribute(R, P), mn(i) ? Y(i) : Fn(t.removed);
3588
- } catch {
3589
- }
3590
- }
3591
- }
3592
- ee("afterSanitizeAttributes", i, null);
3593
- }, Xr = function h(i) {
3594
- let u = null;
3595
- const m = pn(i);
3596
- for (ee("beforeSanitizeShadowDOM", i, null); u = m.nextNode(); )
3597
- ee("uponSanitizeShadowNode", u, null), !gn(u) && (u.content instanceof c && h(u.content), Tn(u));
3598
- ee("afterSanitizeShadowDOM", i, null);
3599
- };
3600
- return t.sanitize = function(h) {
3601
- let i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, u = null, m = null, _ = null, k = null;
3602
- if (mt = !h, mt && (h = "<!-->"), typeof h != "string" && !hn(h))
3603
- if (typeof h.toString == "function") {
3604
- if (h = h.toString(), typeof h != "string")
3605
- throw Oe("dirty is not a string, aborting");
3606
- } else
3607
- throw Oe("toString is not a function");
3608
- if (!t.isSupported)
3609
- return h;
3610
- if (ft || gt(i), t.removed = [], typeof h == "string" && (Ee = !1), Ee) {
3611
- if (h.nodeName) {
3612
- const q = N(h.nodeName);
3613
- if (!O[q] || ve[q])
3614
- throw Oe("root node is forbidden and cannot be sanitized in-place");
3615
- }
3616
- } else if (h instanceof s)
3617
- u = dn("<!---->"), m = u.ownerDocument.importNode(h, !0), m.nodeType === Ne.element && m.nodeName === "BODY" || m.nodeName === "HTML" ? u = m : u.appendChild(m);
3618
- else {
3619
- if (!de && !ue && !ae && // eslint-disable-next-line unicorn/prefer-includes
3620
- h.indexOf("<") === -1)
3621
- return A && Le ? A.createHTML(h) : h;
3622
- if (u = dn(h), !u)
3623
- return de ? null : Le ? Z : "";
3624
- }
3625
- u && ut && Y(u.firstChild);
3626
- const R = pn(Ee ? h : u);
3627
- for (; _ = R.nextNode(); )
3628
- gn(_) || (_.content instanceof c && Xr(_.content), Tn(_));
3629
- if (Ee)
3630
- return h;
3631
- if (de) {
3632
- if (Me)
3633
- for (k = J.call(u.ownerDocument); u.firstChild; )
3634
- k.appendChild(u.firstChild);
3635
- else
3636
- k = u;
3637
- return (w.shadowroot || w.shadowrootmode) && (k = Pe.call(r, k, !0)), k;
3638
- }
3639
- let j = ae ? u.outerHTML : u.innerHTML;
3640
- return ae && O["!doctype"] && u.ownerDocument && u.ownerDocument.doctype && u.ownerDocument.doctype.name && M(kr, u.ownerDocument.doctype.name) && (j = "<!DOCTYPE " + u.ownerDocument.doctype.name + `>
3641
- ` + j), ue && Ve([ye, Te, fe], (q) => {
3642
- j = Se(j, q, " ");
3643
- }), A && Le ? A.createHTML(j) : j;
3644
- }, t.setConfig = function() {
3645
- let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
3646
- gt(h), ft = !0;
3647
- }, t.clearConfig = function() {
3648
- ge = null, ft = !1;
3649
- }, t.isValidAttribute = function(h, i, u) {
3650
- ge || gt({});
3651
- const m = N(h), _ = N(i);
3652
- return bn(m, _, u);
3653
- }, t.addHook = function(h, i) {
3654
- typeof i == "function" && (D[h] = D[h] || [], Ce(D[h], i));
3655
- }, t.removeHook = function(h) {
3656
- if (D[h])
3657
- return Fn(D[h]);
3658
- }, t.removeHooks = function(h) {
3659
- D[h] && (D[h] = []);
3660
- }, t.removeAllHooks = function() {
3661
- D = {};
3662
- }, t;
3663
- }
3664
- var Na = Pr();
3665
- const xo = "_actor_2k764_1", $n = {
3666
- actor: xo
3667
- }, Mr = 50, Do = { color: "purple" }, ko = { color: "green" }, Po = { color: "cornflowerblue" }, Mo = { head: Do, body: ko, legs: Po, type: "humanoid" };
3668
- new Jr({ name: "Actor" }).toObject();
3669
- const Lo = (e, t) => {
3670
- const { head: n, body: r, legs: o } = e, c = Math.floor(t / 3) - 4, d = String(c) === "NaN" ? 0 : c;
3671
- return /* @__PURE__ */ Xn("div", { children: [
3672
- /* @__PURE__ */ L(
3673
- "div",
3674
- {
3675
- style: { backgroundColor: n.color, width: 40, height: d }
3676
- }
3677
- ),
3678
- /* @__PURE__ */ L(
3679
- "div",
3680
- {
3681
- style: { backgroundColor: r.color, width: 40, height: d }
3682
- }
3683
- ),
3684
- /* @__PURE__ */ L(
3685
- "div",
3686
- {
3687
- style: {
3688
- backgroundColor: o.color,
3689
- width: 40,
3690
- height: d - 10
3691
- }
3692
- }
3693
- )
3694
- ] });
3695
- }, Fo = { x: 0, y: 0, z: 0 }, Ho = {
3696
- opacity: 1,
3697
- width: Mr,
3698
- height: 80,
3699
- alignItems: "center"
3700
- }, Wn = {
3701
- backgroundColor: "red"
3702
- }, Ra = ({
3703
- position: e = Fo,
3704
- customClass: t = "",
3705
- // for the tile container
3706
- customTileStyle: n = Ho,
3707
- customSkinStyle: r = Wn,
3708
- config: o = Mo,
3709
- tileSize: c = Mr,
3710
- children: d = null,
3711
- ...s
3712
- }) => {
3713
- const a = Ze($n.actor, t), l = (o == null ? void 0 : o.type) || null, f = () => {
3714
- switch (l) {
3715
- case "humanoid":
3716
- case "one":
3717
- return null;
3718
- case "three":
3719
- default:
3720
- return o ? Lo(o, c) : null;
3721
- }
3722
- }, { x: p, y: x, z: U } = e;
3723
- return /* @__PURE__ */ L(
3724
- be,
3725
- {
3726
- customClass: $n.actor,
3727
- customStyle: {
3728
- ...n,
3729
- transform: `translate3d(${p}px, ${x}px, ${U}px)`
3730
- },
3731
- name: "actor tile",
3732
- ...s,
3733
- children: /* @__PURE__ */ L(
3734
- be,
3735
- {
3736
- customClass: a,
3737
- customStyle: { ...Wn, ...r },
3738
- name: "actor skin",
3739
- children: l ? f() : d
3740
- }
3741
- )
3742
- }
3743
- );
3744
- }, Uo = "_tileGrid_tpkps_2", jo = "_tileGridIso_tpkps_6", St = {
3745
- tileGrid: Uo,
3746
- tileGridIso: jo
3747
- }, Go = {
3748
- id: "0",
3749
- name: "snowbank",
3750
- label: "",
3751
- description: "",
3752
- material: "snow",
3753
- movement_cost: 0,
3754
- color: "#67bd67",
3755
- type: "tile",
3756
- skin: "",
3757
- damage: 0,
3758
- is_obstacle: !0,
3759
- obstacle_remover: "shovel",
3760
- fill: "#67bd67",
3761
- elevation: 0,
3762
- age: -1
3763
- // doesn't age
3764
- }, Bo = Dt.hexToRgb("#67bd67"), zo = -0.1, $o = Dt.getShadedColor(Bo, zo), Ia = ({
3765
- totalInRow: e = 4,
3766
- gapSize: t = 0,
3767
- models: n = [Go],
3768
- isDemo: r = !1,
3769
- width: o = 400,
3770
- tileConfig: c = { size: 100, fill: "#67bd67", cornerColor: $o },
3771
- isIsometric: d = !1,
3772
- customClass: s = null,
3773
- tileRefs: a
3774
- }) => {
3775
- const [l, f] = xt(null), p = Math.floor(o / e - t), x = n.length, b = (() => {
3776
- const $ = [], A = [...n];
3777
- for (; A.length; ) $.push(A.splice(0, e));
3778
- return $;
3779
- })(), C = (($) => {
3780
- let A = -1;
3781
- const Z = (K, J) => K.map((ke, Pe) => {
3782
- const D = $[J][Pe];
3783
- A < x - 1 && A++;
3784
- const ye = `${J}${Pe}`, Te = l ? D.id === l.id : !1;
3785
- return /* @__PURE__ */ L(
3786
- oi,
3787
- {
3788
- model: D,
3789
- ...c,
3790
- customStyle: {
3791
- margin: t,
3792
- backgroundColor: (D == null ? void 0 : D.fill) ?? "pink",
3793
- //tileModel.color,
3794
- width: p,
3795
- height: p
3796
- },
3797
- setSelected: f,
3798
- isSelected: Te,
3799
- ref: (fe) => {
3800
- a && fe && (a.current[A] = fe);
3801
- }
3802
- },
3803
- ye
3804
- );
3805
- }), oe = (K, J) => {
3806
- const ke = Z(K, J);
3807
- return /* @__PURE__ */ L(Yr, { className: St.tileRow, children: ke }, J);
3808
- };
3809
- return $.map((K, J) => oe(K, J));
3810
- })(b), ce = d ? St.tileGridIso : St.tileGrid, ie = Ze(ce, s);
3811
- return /* @__PURE__ */ L(be, { customClass: ie, children: C });
3812
- }, Wo = "_tileGrid_tpkps_2", Vo = "_tileGridIso_tpkps_6", Vn = {
3813
- tileGrid: Wo,
3814
- tileGridIso: Vo
3815
- };
3816
- Dt.hexToRgb("#67bd67");
3817
- const xa = ({
3818
- models: e,
3819
- isIsometric: t = !1,
3820
- customClass: n = ""
3821
- }) => {
3822
- const [r, o] = xt(null);
3823
- qr([]), e.length;
3824
- const c = e.map((f) => ({
3825
- ...f,
3826
- id: `tile_${f.x}_${f.y}`,
3827
- fill: f.color ?? "#67bd67"
3828
- })), s = c.map((f, p) => (r && (f.id, r.id), /* @__PURE__ */ L(
3829
- "div",
3830
- {
3831
- style: {
3832
- position: "absolute",
3833
- left: `${f.x}px`,
3834
- top: `${f.y}px`,
3835
- width: `${f.width}px`,
3836
- height: `${f.height}px`,
3837
- backgroundColor: f.fill
3838
- }
3839
- },
3840
- f.id
3841
- ))), a = t ? Vn.tileGridIso : Vn.tileGrid, l = Ze(a, n);
3842
- return /* @__PURE__ */ L(be, { customClass: l, children: /* @__PURE__ */ L("div", { style: { position: "relative", width: "100%", height: "100%" }, children: s }) });
3843
- };
3844
- export {
3845
- Ra as A,
3846
- ii as I,
3847
- xa as J,
3848
- oi as T,
3849
- Ia as a,
3850
- wa as b,
3851
- Dt as c,
3852
- Na as p
3853
- };