@sparkle-learning/core 0.0.55 → 0.0.57

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 (1097) hide show
  1. package/dist/sparkle-core/PrivateRoute-a12e7ee5.js +37 -0
  2. package/dist/sparkle-core/account.service-e711795d.js +63 -0
  3. package/dist/sparkle-core/active-router-af86c9b4.js +73 -0
  4. package/dist/sparkle-core/animation-676a644d.js +984 -0
  5. package/dist/sparkle-core/app-globals-9ffa9ec3.js +10 -0
  6. package/dist/sparkle-core/appdata.service-703dff70.js +69 -0
  7. package/dist/sparkle-core/assets/user.png +0 -0
  8. package/dist/sparkle-core/assets.service-6508aae6.js +71 -0
  9. package/dist/sparkle-core/assignment.service-e42e9368.js +17 -0
  10. package/dist/sparkle-core/button-active-d68c5eb7.js +67 -0
  11. package/dist/sparkle-core/compass-svg.entry.js +128 -0
  12. package/dist/sparkle-core/context-consumer.entry.js +25 -0
  13. package/dist/sparkle-core/course-select.entry.js +26 -0
  14. package/dist/sparkle-core/css-shim-04165e59.js +4 -0
  15. package/dist/sparkle-core/dom-26e7cb2c.js +73 -0
  16. package/dist/sparkle-core/dom-utils-8e73e88b.js +55 -0
  17. package/dist/sparkle-core/facilitator.service-00a88935.js +79 -0
  18. package/dist/sparkle-core/facilitator.store-01be0386.js +18 -0
  19. package/dist/sparkle-core/feed.service-d495f3e1.js +53 -0
  20. package/dist/sparkle-core/framework-delegate-d3fa493f.js +107 -0
  21. package/dist/sparkle-core/haptic-a9e94599.js +124 -0
  22. package/dist/sparkle-core/header-mobile-collapse.entry.js +86 -0
  23. package/dist/sparkle-core/helpers-f11f0674.js +406 -0
  24. package/dist/sparkle-core/icons-758d1417.js +41 -0
  25. package/dist/sparkle-core/index-05b398c2.js +34 -0
  26. package/dist/sparkle-core/index-0af0deac.js +312 -0
  27. package/dist/sparkle-core/index-0df264ee.js +4518 -0
  28. package/dist/sparkle-core/index-183cda39.js +223 -0
  29. package/dist/sparkle-core/index-18a69883.js +1336 -0
  30. package/dist/sparkle-core/index-1d7a6fa0.js +269 -0
  31. package/dist/sparkle-core/index-1dec9544.js +3064 -0
  32. package/dist/sparkle-core/index-81dab78f.js +85 -0
  33. package/dist/sparkle-core/index-9b5bcea1.js +22 -0
  34. package/dist/sparkle-core/index-bb469fe3.js +128 -0
  35. package/dist/sparkle-core/index-d2990a48.js +184 -0
  36. package/dist/sparkle-core/index-dd414b33.js +653 -0
  37. package/dist/sparkle-core/index-faeec85a.js +8 -0
  38. package/dist/sparkle-core/index.es-1f6eedc5.js +11066 -0
  39. package/dist/sparkle-core/index.esm.js +19 -1
  40. package/dist/sparkle-core/input-shims-0b2f5522.js +418 -0
  41. package/dist/sparkle-core/ion-accordion-group.entry.js +201 -0
  42. package/dist/sparkle-core/ion-accordion.entry.js +332 -0
  43. package/dist/sparkle-core/ion-action-sheet.entry.js +263 -0
  44. package/dist/sparkle-core/ion-alert.entry.js +448 -0
  45. package/dist/sparkle-core/ion-app.entry.js +75 -0
  46. package/dist/sparkle-core/ion-avatar.entry.js +21 -0
  47. package/dist/sparkle-core/ion-back-button.entry.js +90 -0
  48. package/dist/sparkle-core/ion-backdrop.entry.js +63 -0
  49. package/dist/sparkle-core/ion-badge.entry.js +25 -0
  50. package/dist/sparkle-core/ion-breadcrumb.entry.js +91 -0
  51. package/dist/sparkle-core/ion-breadcrumbs.entry.js +129 -0
  52. package/dist/sparkle-core/ion-button.entry.js +125 -0
  53. package/dist/sparkle-core/ion-buttons.entry.js +38 -0
  54. package/dist/sparkle-core/ion-card-content.entry.js +26 -0
  55. package/dist/sparkle-core/ion-card-header.entry.js +33 -0
  56. package/dist/sparkle-core/ion-card-subtitle.entry.js +26 -0
  57. package/dist/sparkle-core/ion-card-title.entry.js +26 -0
  58. package/dist/sparkle-core/ion-card.entry.js +64 -0
  59. package/dist/sparkle-core/ion-checkbox.entry.js +109 -0
  60. package/dist/sparkle-core/ion-chip.entry.js +36 -0
  61. package/dist/sparkle-core/ion-col.entry.js +121 -0
  62. package/dist/sparkle-core/ion-content.entry.js +319 -0
  63. package/dist/sparkle-core/ion-datetime-button.entry.js +308 -0
  64. package/dist/sparkle-core/ion-datetime.entry.js +1619 -0
  65. package/dist/sparkle-core/ion-fab-button.entry.js +104 -0
  66. package/dist/sparkle-core/ion-fab-list.entry.js +41 -0
  67. package/dist/sparkle-core/ion-fab.entry.js +72 -0
  68. package/dist/sparkle-core/ion-footer.entry.js +116 -0
  69. package/dist/sparkle-core/ion-grid.entry.js +24 -0
  70. package/dist/sparkle-core/ion-header.entry.js +341 -0
  71. package/dist/sparkle-core/ion-icon.entry.js +200 -0
  72. package/dist/sparkle-core/ion-img.entry.js +97 -0
  73. package/dist/sparkle-core/ion-infinite-scroll-content.entry.js +33 -0
  74. package/dist/sparkle-core/ion-infinite-scroll.entry.js +202 -0
  75. package/dist/sparkle-core/ion-input.entry.js +293 -0
  76. package/dist/sparkle-core/ion-item-divider.entry.js +36 -0
  77. package/dist/sparkle-core/ion-item-group.entry.js +27 -0
  78. package/dist/sparkle-core/ion-item-option.entry.js +56 -0
  79. package/dist/sparkle-core/ion-item-options.entry.js +43 -0
  80. package/dist/sparkle-core/ion-item-sliding.entry.js +394 -0
  81. package/dist/sparkle-core/ion-item.entry.js +267 -0
  82. package/dist/sparkle-core/ion-label.entry.js +77 -0
  83. package/dist/sparkle-core/ion-list-header.entry.js +27 -0
  84. package/dist/sparkle-core/ion-list.entry.js +48 -0
  85. package/dist/sparkle-core/ion-loading.entry.js +211 -0
  86. package/dist/sparkle-core/ion-menu-button.entry.js +72 -0
  87. package/dist/sparkle-core/ion-menu-toggle.entry.js +43 -0
  88. package/dist/sparkle-core/ion-menu.entry.js +575 -0
  89. package/dist/sparkle-core/ion-modal.entry.js +1706 -0
  90. package/dist/sparkle-core/ion-nav-link.entry.js +43 -0
  91. package/dist/sparkle-core/ion-nav.entry.js +872 -0
  92. package/dist/sparkle-core/ion-note.entry.js +25 -0
  93. package/dist/sparkle-core/ion-picker-column-internal.entry.js +363 -0
  94. package/dist/sparkle-core/ion-picker-column.entry.js +327 -0
  95. package/dist/sparkle-core/ion-picker-internal.entry.js +454 -0
  96. package/dist/sparkle-core/ion-picker.entry.js +217 -0
  97. package/dist/sparkle-core/ion-popover.entry.js +1362 -0
  98. package/dist/sparkle-core/ion-progress-bar.entry.js +70 -0
  99. package/dist/sparkle-core/ion-radio-group.entry.js +121 -0
  100. package/dist/sparkle-core/ion-radio.entry.js +111 -0
  101. package/dist/sparkle-core/ion-range.entry.js +511 -0
  102. package/dist/sparkle-core/ion-refresher-content.entry.js +31 -0
  103. package/dist/sparkle-core/ion-refresher.entry.js +798 -0
  104. package/dist/sparkle-core/ion-reorder-group.entry.js +277 -0
  105. package/dist/sparkle-core/ion-reorder.entry.js +34 -0
  106. package/dist/sparkle-core/ion-ripple-effect.entry.js +89 -0
  107. package/dist/sparkle-core/ion-route-redirect.entry.js +20 -0
  108. package/dist/sparkle-core/ion-route.entry.js +45 -0
  109. package/dist/sparkle-core/ion-router-link.entry.js +34 -0
  110. package/dist/sparkle-core/ion-router-outlet.entry.js +196 -0
  111. package/dist/sparkle-core/ion-router.entry.js +827 -0
  112. package/dist/sparkle-core/ion-row.entry.js +16 -0
  113. package/dist/sparkle-core/ion-searchbar.entry.js +366 -0
  114. package/dist/sparkle-core/ion-segment-button.entry.js +98 -0
  115. package/dist/sparkle-core/ion-segment.entry.js +415 -0
  116. package/dist/sparkle-core/ion-select-option.entry.js +23 -0
  117. package/dist/sparkle-core/ion-select-popover.entry.js +96 -0
  118. package/dist/sparkle-core/ion-select.entry.js +510 -0
  119. package/dist/sparkle-core/ion-skeleton-text.entry.js +29 -0
  120. package/dist/sparkle-core/ion-slide.entry.js +21 -0
  121. package/dist/sparkle-core/ion-slides.entry.js +387 -0
  122. package/dist/sparkle-core/ion-spinner.entry.js +60 -0
  123. package/dist/sparkle-core/ion-split-pane.entry.js +156 -0
  124. package/dist/sparkle-core/ion-tab-bar.entry.js +71 -0
  125. package/dist/sparkle-core/ion-tab-button.entry.js +99 -0
  126. package/dist/sparkle-core/ion-tab.entry.js +63 -0
  127. package/dist/sparkle-core/ion-tabs.entry.js +150 -0
  128. package/dist/sparkle-core/ion-text.entry.js +20 -0
  129. package/dist/sparkle-core/ion-textarea.entry.js +244 -0
  130. package/dist/sparkle-core/ion-thumbnail.entry.js +16 -0
  131. package/dist/sparkle-core/ion-title.entry.js +48 -0
  132. package/dist/sparkle-core/ion-toast.entry.js +268 -0
  133. package/dist/sparkle-core/ion-toggle.entry.js +173 -0
  134. package/dist/sparkle-core/ion-toolbar.entry.js +70 -0
  135. package/dist/sparkle-core/ion-virtual-scroll.entry.js +551 -0
  136. package/dist/sparkle-core/ionic-global-127576f6.js +226 -0
  137. package/dist/sparkle-core/ios.transition-02531dda.js +479 -0
  138. package/dist/sparkle-core/location-utils-fea12957.js +229 -0
  139. package/dist/sparkle-core/match-path-760e1797.js +343 -0
  140. package/dist/sparkle-core/md.transition-f8765467.js +55 -0
  141. package/dist/sparkle-core/media.service-2609406e.js +36 -0
  142. package/dist/sparkle-core/menu-toggle-util-6cc13cbd.js +12 -0
  143. package/dist/sparkle-core/overlays-fd3cfa13.js +493 -0
  144. package/dist/sparkle-core/parse-60474840.js +1196 -0
  145. package/dist/sparkle-core/purify-d9093094.js +1469 -0
  146. package/dist/sparkle-core/quiz.model-1cff62e4.js +5 -0
  147. package/dist/sparkle-core/shadow-css-1257b266.js +387 -0
  148. package/dist/sparkle-core/signalR.service-2b7645c1.js +2983 -0
  149. package/dist/sparkle-core/sparkle-animation-player.entry.js +513 -0
  150. package/dist/sparkle-core/sparkle-assignment.entry.js +114 -0
  151. package/dist/sparkle-core/sparkle-button.entry.js +24 -0
  152. package/dist/sparkle-core/sparkle-card.entry.js +61 -0
  153. package/dist/sparkle-core/sparkle-cards.entry.js +15 -0
  154. package/dist/sparkle-core/sparkle-character-intro.entry.js +22 -0
  155. package/dist/sparkle-core/sparkle-code.entry.js +39 -0
  156. package/dist/sparkle-core/sparkle-compass-post.entry.js +129 -0
  157. package/dist/sparkle-core/sparkle-compass.entry.js +122 -0
  158. package/dist/sparkle-core/sparkle-core.css +2660 -1
  159. package/dist/sparkle-core/sparkle-core.esm.js +130 -1
  160. package/dist/sparkle-core/sparkle-course-root.entry.js +155 -0
  161. package/dist/sparkle-core/sparkle-discussion-questions.entry.js +122 -0
  162. package/dist/sparkle-core/sparkle-discussion-results.entry.js +189 -0
  163. package/dist/sparkle-core/sparkle-discussion.entry.js +52 -0
  164. package/dist/sparkle-core/sparkle-dropdown.entry.js +57 -0
  165. package/dist/sparkle-core/sparkle-emoji.entry.js +77 -0
  166. package/dist/sparkle-core/sparkle-export-lessons.entry.js +10081 -0
  167. package/dist/sparkle-core/sparkle-facilitator-dashboard.entry.js +93 -0
  168. package/dist/sparkle-core/sparkle-facilitator-header.entry.js +60 -0
  169. package/dist/sparkle-core/sparkle-facilitator-notes-form.entry.js +160 -0
  170. package/dist/sparkle-core/sparkle-facilitator-notes.entry.js +65 -0
  171. package/dist/sparkle-core/sparkle-facilitator-page.entry.js +198 -0
  172. package/dist/sparkle-core/sparkle-feed-post.entry.js +131 -0
  173. package/dist/sparkle-core/sparkle-feedback.entry.js +106 -0
  174. package/dist/sparkle-core/sparkle-file-upload.entry.js +57 -0
  175. package/dist/sparkle-core/sparkle-forgot-password.entry.js +80 -0
  176. package/dist/sparkle-core/sparkle-goal-form.entry.js +182 -0
  177. package/dist/sparkle-core/sparkle-goal-item.entry.js +15 -0
  178. package/dist/sparkle-core/sparkle-goal-progress.entry.js +15 -0
  179. package/dist/sparkle-core/sparkle-goals.entry.js +47 -0
  180. package/dist/sparkle-core/sparkle-gww-comment-list.entry.js +22 -0
  181. package/dist/sparkle-core/sparkle-gww-graph.entry.js +15 -0
  182. package/dist/sparkle-core/sparkle-gww-item.entry.js +80 -0
  183. package/dist/sparkle-core/sparkle-gww.entry.js +44 -0
  184. package/dist/sparkle-core/sparkle-header.entry.js +97 -0
  185. package/dist/sparkle-core/sparkle-health.entry.js +70 -0
  186. package/dist/sparkle-core/sparkle-input.entry.js +52 -0
  187. package/dist/sparkle-core/sparkle-intro.entry.js +22 -0
  188. package/dist/sparkle-core/sparkle-login.entry.js +116 -0
  189. package/dist/sparkle-core/sparkle-lower-content-nav.entry.js +18 -0
  190. package/dist/sparkle-core/sparkle-menu-collapsible.entry.js +42 -0
  191. package/dist/sparkle-core/sparkle-menu-toggle.entry.js +24 -0
  192. package/dist/sparkle-core/sparkle-menu.entry.js +26 -0
  193. package/dist/sparkle-core/sparkle-modal-image.entry.js +33 -0
  194. package/dist/sparkle-core/sparkle-mood.entry.js +76 -0
  195. package/dist/sparkle-core/sparkle-nav.entry.js +113 -0
  196. package/dist/sparkle-core/sparkle-notfound-page.entry.js +25 -0
  197. package/dist/sparkle-core/sparkle-online-students.entry.js +55 -0
  198. package/dist/sparkle-core/sparkle-overlay.entry.js +90 -0
  199. package/dist/sparkle-core/sparkle-page-footer.entry.js +24 -0
  200. package/dist/sparkle-core/sparkle-page.entry.js +245 -0
  201. package/dist/sparkle-core/sparkle-pagination.entry.js +67 -0
  202. package/dist/sparkle-core/sparkle-poll.entry.js +15 -0
  203. package/dist/sparkle-core/sparkle-quiz-container.entry.js +43 -0
  204. package/dist/sparkle-core/sparkle-quiz-feedback.entry.js +18 -0
  205. package/dist/sparkle-core/sparkle-quiz-input.entry.js +16 -0
  206. package/dist/sparkle-core/sparkle-quiz-old.entry.js +116 -0
  207. package/dist/sparkle-core/sparkle-quiz-opinion.entry.js +41 -0
  208. package/dist/sparkle-core/sparkle-quiz-poll.entry.js +16 -0
  209. package/dist/sparkle-core/sparkle-quiz-select.entry.js +29 -0
  210. package/dist/sparkle-core/sparkle-quiz.entry.js +98 -0
  211. package/dist/sparkle-core/sparkle-reset-password.entry.js +96 -0
  212. package/dist/sparkle-core/sparkle-root.entry.js +79 -0
  213. package/dist/sparkle-core/sparkle-select.entry.js +57 -0
  214. package/dist/sparkle-core/sparkle-sidebar.entry.js +39 -0
  215. package/dist/sparkle-core/sparkle-signup.entry.js +144 -0
  216. package/dist/sparkle-core/sparkle-tab.entry.js +22 -0
  217. package/dist/sparkle-core/sparkle-table-of-contents.entry.js +67 -0
  218. package/dist/sparkle-core/sparkle-tabs.entry.js +62 -0
  219. package/dist/sparkle-core/sparkle-unauthorized.entry.js +17 -0
  220. package/dist/sparkle-core/sparkle-user-enrollment.entry.js +85 -0
  221. package/dist/sparkle-core/sparkle-user-profile.entry.js +129 -0
  222. package/dist/sparkle-core/sparkle-validation-error.entry.js +17 -0
  223. package/dist/sparkle-core/sparkle-video-player.entry.js +18 -0
  224. package/dist/sparkle-core/sparkle-youtube.entry.js +35 -0
  225. package/dist/sparkle-core/status-tap-52feb1b1.js +40 -0
  226. package/dist/sparkle-core/stencil-async-content.entry.js +28 -0
  227. package/dist/sparkle-core/stencil-route-link.entry.js +74 -0
  228. package/dist/sparkle-core/stencil-route-switch.entry.js +100 -0
  229. package/dist/sparkle-core/stencil-route-title.entry.js +28 -0
  230. package/dist/sparkle-core/stencil-route.entry.js +93 -0
  231. package/dist/sparkle-core/stencil-router-prompt.entry.js +55 -0
  232. package/dist/sparkle-core/stencil-router-redirect.entry.js +28 -0
  233. package/dist/sparkle-core/stencil-router.entry.js +636 -0
  234. package/dist/sparkle-core/store.service-0f7d998b.js +16 -0
  235. package/dist/sparkle-core/student.service-f0375229.js +59 -0
  236. package/dist/sparkle-core/swipe-back-9a614189.js +73 -0
  237. package/dist/sparkle-core/swiper.bundle-4274e115.js +6418 -0
  238. package/dist/sparkle-core/user.store-3d052406.js +19 -0
  239. package/dist/sparkle-core/util-ba470e54.js +14683 -0
  240. package/dist/sparkle-core/utils-cae23bce.js +114 -0
  241. package/dist/types/components/sparkle-video-player/sparkle-video-player.d.ts +7 -0
  242. package/dist/types/components.d.ts +21 -0
  243. package/package.json +1 -1
  244. package/dist/cjs/PrivateRoute-f97245ce.js +0 -217
  245. package/dist/cjs/active-router-f9e18bd8.js +0 -75
  246. package/dist/cjs/animation-ee586546.js +0 -986
  247. package/dist/cjs/app-globals-33c9f31b.js +0 -9
  248. package/dist/cjs/appdata.service-c8d71e05.js +0 -73
  249. package/dist/cjs/assets.service-bfa75092.js +0 -50
  250. package/dist/cjs/assignment.service-690fb59c.js +0 -19
  251. package/dist/cjs/auth.store-1e630a7d.js +0 -3392
  252. package/dist/cjs/compass-svg.cjs.entry.js +0 -132
  253. package/dist/cjs/context-consumer.cjs.entry.js +0 -29
  254. package/dist/cjs/course-select.cjs.entry.js +0 -30
  255. package/dist/cjs/cubic-bezier-53d26d05.js +0 -93
  256. package/dist/cjs/dir-5af5259a.js +0 -20
  257. package/dist/cjs/environment-config.service-c8ff1f3d.js +0 -28
  258. package/dist/cjs/facilitator.service-ff0e1659.js +0 -95
  259. package/dist/cjs/feed.service-8eca4de6.js +0 -57
  260. package/dist/cjs/focus-visible-b0b07ba6.js +0 -76
  261. package/dist/cjs/framework-delegate-59a98abd.js +0 -111
  262. package/dist/cjs/gesture-controller-0eb5579e.js +0 -196
  263. package/dist/cjs/haptic-780f33c4.js +0 -116
  264. package/dist/cjs/hardware-back-button-92d97ff8.js +0 -76
  265. package/dist/cjs/header-mobile-collapse_61.cjs.entry.js +0 -15124
  266. package/dist/cjs/helpers-c2496722.js +0 -425
  267. package/dist/cjs/httpService-d2e7bf8f.js +0 -687
  268. package/dist/cjs/icons-fda820af.js +0 -26
  269. package/dist/cjs/index-12082cba.js +0 -465
  270. package/dist/cjs/index-15ea05f5.js +0 -314
  271. package/dist/cjs/index-51e8292e.js +0 -1928
  272. package/dist/cjs/index-787d4498.js +0 -232
  273. package/dist/cjs/index-8b5629a6.js +0 -186
  274. package/dist/cjs/index-975586fd.js +0 -48
  275. package/dist/cjs/index-9c7b27e4.js +0 -140
  276. package/dist/cjs/index-af080b50.js +0 -139
  277. package/dist/cjs/index-e56e09b8.js +0 -38
  278. package/dist/cjs/index.cjs.js +0 -26
  279. package/dist/cjs/index.es-38cbcdbe.js +0 -10666
  280. package/dist/cjs/input-shims-eff63b88.js +0 -418
  281. package/dist/cjs/ion-accordion-group.cjs.entry.js +0 -205
  282. package/dist/cjs/ion-accordion.cjs.entry.js +0 -336
  283. package/dist/cjs/ion-action-sheet_7.cjs.entry.js +0 -2935
  284. package/dist/cjs/ion-app.cjs.entry.js +0 -79
  285. package/dist/cjs/ion-back-button.cjs.entry.js +0 -94
  286. package/dist/cjs/ion-backdrop.cjs.entry.js +0 -67
  287. package/dist/cjs/ion-badge.cjs.entry.js +0 -29
  288. package/dist/cjs/ion-breadcrumb.cjs.entry.js +0 -95
  289. package/dist/cjs/ion-breadcrumbs.cjs.entry.js +0 -133
  290. package/dist/cjs/ion-buttons_3.cjs.entry.js +0 -153
  291. package/dist/cjs/ion-card-header.cjs.entry.js +0 -37
  292. package/dist/cjs/ion-card-subtitle.cjs.entry.js +0 -30
  293. package/dist/cjs/ion-card-title.cjs.entry.js +0 -30
  294. package/dist/cjs/ion-chip.cjs.entry.js +0 -40
  295. package/dist/cjs/ion-content_2.cjs.entry.js +0 -659
  296. package/dist/cjs/ion-datetime-button.cjs.entry.js +0 -312
  297. package/dist/cjs/ion-datetime.cjs.entry.js +0 -1623
  298. package/dist/cjs/ion-fab-button.cjs.entry.js +0 -108
  299. package/dist/cjs/ion-fab-list.cjs.entry.js +0 -45
  300. package/dist/cjs/ion-fab.cjs.entry.js +0 -76
  301. package/dist/cjs/ion-footer.cjs.entry.js +0 -120
  302. package/dist/cjs/ion-img.cjs.entry.js +0 -101
  303. package/dist/cjs/ion-infinite-scroll-content.cjs.entry.js +0 -37
  304. package/dist/cjs/ion-infinite-scroll.cjs.entry.js +0 -206
  305. package/dist/cjs/ion-item-divider.cjs.entry.js +0 -40
  306. package/dist/cjs/ion-item-group.cjs.entry.js +0 -31
  307. package/dist/cjs/ion-item-option.cjs.entry.js +0 -60
  308. package/dist/cjs/ion-item-options.cjs.entry.js +0 -47
  309. package/dist/cjs/ion-item-sliding.cjs.entry.js +0 -398
  310. package/dist/cjs/ion-loading.cjs.entry.js +0 -215
  311. package/dist/cjs/ion-menu-button.cjs.entry.js +0 -76
  312. package/dist/cjs/ion-menu-toggle.cjs.entry.js +0 -47
  313. package/dist/cjs/ion-menu.cjs.entry.js +0 -575
  314. package/dist/cjs/ion-modal.cjs.entry.js +0 -1711
  315. package/dist/cjs/ion-nav-link.cjs.entry.js +0 -47
  316. package/dist/cjs/ion-nav.cjs.entry.js +0 -872
  317. package/dist/cjs/ion-picker-column-internal_2.cjs.entry.js +0 -808
  318. package/dist/cjs/ion-picker-column.cjs.entry.js +0 -331
  319. package/dist/cjs/ion-picker.cjs.entry.js +0 -221
  320. package/dist/cjs/ion-progress-bar.cjs.entry.js +0 -74
  321. package/dist/cjs/ion-refresher-content.cjs.entry.js +0 -35
  322. package/dist/cjs/ion-refresher.cjs.entry.js +0 -802
  323. package/dist/cjs/ion-reorder-group.cjs.entry.js +0 -281
  324. package/dist/cjs/ion-reorder.cjs.entry.js +0 -38
  325. package/dist/cjs/ion-route-redirect.cjs.entry.js +0 -24
  326. package/dist/cjs/ion-route.cjs.entry.js +0 -49
  327. package/dist/cjs/ion-router-link.cjs.entry.js +0 -38
  328. package/dist/cjs/ion-router-outlet.cjs.entry.js +0 -200
  329. package/dist/cjs/ion-router.cjs.entry.js +0 -831
  330. package/dist/cjs/ion-searchbar.cjs.entry.js +0 -370
  331. package/dist/cjs/ion-segment-button.cjs.entry.js +0 -102
  332. package/dist/cjs/ion-segment.cjs.entry.js +0 -417
  333. package/dist/cjs/ion-skeleton-text.cjs.entry.js +0 -33
  334. package/dist/cjs/ion-slide.cjs.entry.js +0 -25
  335. package/dist/cjs/ion-slides.cjs.entry.js +0 -391
  336. package/dist/cjs/ion-split-pane.cjs.entry.js +0 -154
  337. package/dist/cjs/ion-tab-bar.cjs.entry.js +0 -75
  338. package/dist/cjs/ion-tab-button.cjs.entry.js +0 -103
  339. package/dist/cjs/ion-tab.cjs.entry.js +0 -59
  340. package/dist/cjs/ion-tabs.cjs.entry.js +0 -154
  341. package/dist/cjs/ion-thumbnail.cjs.entry.js +0 -20
  342. package/dist/cjs/ion-toast.cjs.entry.js +0 -272
  343. package/dist/cjs/ion-toggle.cjs.entry.js +0 -177
  344. package/dist/cjs/ion-virtual-scroll.cjs.entry.js +0 -555
  345. package/dist/cjs/ionic-global-2cde9d3a.js +0 -231
  346. package/dist/cjs/ios.transition-da235483.js +0 -482
  347. package/dist/cjs/keyboard-91096619.js +0 -140
  348. package/dist/cjs/loader.cjs.js +0 -24
  349. package/dist/cjs/localstorage.service-6346a41d.js +0 -40
  350. package/dist/cjs/md.transition-be429e07.js +0 -57
  351. package/dist/cjs/media.service-8a1b9bc5.js +0 -40
  352. package/dist/cjs/menu-toggle-util-7a01448c.js +0 -14
  353. package/dist/cjs/overlays-32df265a.js +0 -507
  354. package/dist/cjs/parse-d0071120.js +0 -1237
  355. package/dist/cjs/purify-fb9c107e.js +0 -1468
  356. package/dist/cjs/signalR.service-bd6b42f9.js +0 -2985
  357. package/dist/cjs/sparkle-animation-player.cjs.entry.js +0 -515
  358. package/dist/cjs/sparkle-assignment.cjs.entry.js +0 -110
  359. package/dist/cjs/sparkle-character-intro.cjs.entry.js +0 -26
  360. package/dist/cjs/sparkle-code.cjs.entry.js +0 -43
  361. package/dist/cjs/sparkle-compass-post.cjs.entry.js +0 -133
  362. package/dist/cjs/sparkle-compass.cjs.entry.js +0 -126
  363. package/dist/cjs/sparkle-core.cjs.js +0 -22
  364. package/dist/cjs/sparkle-discussion-questions_2.cjs.entry.js +0 -281
  365. package/dist/cjs/sparkle-discussion.cjs.entry.js +0 -42
  366. package/dist/cjs/sparkle-emoji.cjs.entry.js +0 -80
  367. package/dist/cjs/sparkle-facilitator-notes-form.cjs.entry.js +0 -121
  368. package/dist/cjs/sparkle-feed-post.cjs.entry.js +0 -116
  369. package/dist/cjs/sparkle-feedback.cjs.entry.js +0 -101
  370. package/dist/cjs/sparkle-file-upload.cjs.entry.js +0 -53
  371. package/dist/cjs/sparkle-goal-form.cjs.entry.js +0 -179
  372. package/dist/cjs/sparkle-gww-comment-list.cjs.entry.js +0 -26
  373. package/dist/cjs/sparkle-gww-graph.cjs.entry.js +0 -19
  374. package/dist/cjs/sparkle-input.cjs.entry.js +0 -56
  375. package/dist/cjs/sparkle-intro.cjs.entry.js +0 -26
  376. package/dist/cjs/sparkle-lower-content-nav.cjs.entry.js +0 -22
  377. package/dist/cjs/sparkle-menu-collapsible.cjs.entry.js +0 -46
  378. package/dist/cjs/sparkle-modal-image.cjs.entry.js +0 -34
  379. package/dist/cjs/sparkle-notfound-page.cjs.entry.js +0 -25
  380. package/dist/cjs/sparkle-overlay.cjs.entry.js +0 -92
  381. package/dist/cjs/sparkle-poll.cjs.entry.js +0 -19
  382. package/dist/cjs/sparkle-quiz-container.cjs.entry.js +0 -47
  383. package/dist/cjs/sparkle-quiz-feedback_5.cjs.entry.js +0 -117
  384. package/dist/cjs/sparkle-quiz-old.cjs.entry.js +0 -120
  385. package/dist/cjs/sparkle-quiz.cjs.entry.js +0 -103
  386. package/dist/cjs/sparkle-select.cjs.entry.js +0 -61
  387. package/dist/cjs/sparkle-sidebar.cjs.entry.js +0 -43
  388. package/dist/cjs/sparkle-tab.cjs.entry.js +0 -26
  389. package/dist/cjs/sparkle-table-of-contents.cjs.entry.js +0 -71
  390. package/dist/cjs/sparkle-tabs.cjs.entry.js +0 -66
  391. package/dist/cjs/sparkle-youtube.cjs.entry.js +0 -39
  392. package/dist/cjs/spinner-configs-0ac05f2d.js +0 -147
  393. package/dist/cjs/status-tap-033befa2.js +0 -42
  394. package/dist/cjs/stencil-async-content.cjs.entry.js +0 -32
  395. package/dist/cjs/stencil-route-title.cjs.entry.js +0 -32
  396. package/dist/cjs/stencil-router-prompt.cjs.entry.js +0 -59
  397. package/dist/cjs/student.service-7e5385be.js +0 -78
  398. package/dist/cjs/swipe-back-4a826f9b.js +0 -76
  399. package/dist/cjs/swiper.bundle-8c897c07.js +0 -6420
  400. package/dist/cjs/theme-b0b295c1.js +0 -48
  401. package/dist/cjs/token.service-7a41953d.js +0 -97
  402. package/dist/cjs/util-47e320b2.js +0 -2462
  403. package/dist/collection/PrivateRoute.js +0 -27
  404. package/dist/collection/appconst.js +0 -13
  405. package/dist/collection/assets/img/forward.svg +0 -5
  406. package/dist/collection/assets/img/help/fitt-logo.svg +0 -1
  407. package/dist/collection/assets/img/home/big-white-wall.svg +0 -15
  408. package/dist/collection/assets/img/home/find-help.svg +0 -23
  409. package/dist/collection/assets/img/home/lessons.svg +0 -26
  410. package/dist/collection/assets/img/home/my-goals.svg +0 -19
  411. package/dist/collection/assets/img/home/my-health.svg +0 -17
  412. package/dist/collection/assets/img/home/my-mood.svg +0 -26
  413. package/dist/collection/assets/img/pause.svg +0 -5
  414. package/dist/collection/assets/img/play-symbol.svg +0 -8
  415. package/dist/collection/assets/img/play.svg +0 -4
  416. package/dist/collection/assets/img/rewind.svg +0 -5
  417. package/dist/collection/assets/lib/SignalRAspNetCoreHelper.js +0 -17
  418. package/dist/collection/assets/lib/sparkleUtility.js +0 -8
  419. package/dist/collection/assets/svg/profile.svg +0 -2
  420. package/dist/collection/collection-manifest.json +0 -218
  421. package/dist/collection/components/compass-svg/compass-svg.css +0 -15
  422. package/dist/collection/components/compass-svg/compass-svg.js +0 -156
  423. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.css +0 -7
  424. package/dist/collection/components/layout/facilitator/export-lessons/export-lessons.js +0 -110
  425. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.css +0 -3
  426. package/dist/collection/components/layout/facilitator/facilitator-dashboard/facilitator-dashboard.js +0 -214
  427. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header-mobile-collapse/facilitator-header-mobile-collapse.js +0 -0
  428. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.css +0 -172
  429. package/dist/collection/components/layout/facilitator/facilitator-header/facilitator-header.js +0 -104
  430. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.css +0 -3
  431. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes-form/facilitator-notes-form.js +0 -144
  432. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.css +0 -14
  433. package/dist/collection/components/layout/facilitator/facilitator-notes/facilitator-notes.js +0 -64
  434. package/dist/collection/components/layout/facilitator/facilitator-page.css +0 -196
  435. package/dist/collection/components/layout/facilitator/facilitator-page.js +0 -281
  436. package/dist/collection/components/layout/facilitator/online-students/online-students.css +0 -0
  437. package/dist/collection/components/layout/facilitator/online-students/online-students.js +0 -70
  438. package/dist/collection/components/layout/page/page.css +0 -183
  439. package/dist/collection/components/layout/page/page.js +0 -321
  440. package/dist/collection/components/layout/page/templates/default.js +0 -9
  441. package/dist/collection/components/layout/page/templates/error.js +0 -33
  442. package/dist/collection/components/layout/page/templates/index.js +0 -8
  443. package/dist/collection/components/layout/page/templates/pdf.js +0 -8
  444. package/dist/collection/components/layout/page/to-hypertext.js +0 -27
  445. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.css +0 -3
  446. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-form/sparkle-goal-form.js +0 -252
  447. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.css +0 -12
  448. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-item/sparkle-goal-item.js +0 -59
  449. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.css +0 -33
  450. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goal-progress/sparkle-goal-progress.js +0 -37
  451. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.css +0 -8
  452. package/dist/collection/components/mini-apps/sparkle-goals/sparkle-goals.js +0 -40
  453. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.css +0 -7
  454. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-comment-list/sparkle-gww-comment-list.js +0 -52
  455. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.css +0 -3
  456. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-graph/sparkle-gww-graph.js +0 -14
  457. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.css +0 -30
  458. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww-item/sparkle-gww-item.js +0 -187
  459. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.css +0 -3
  460. package/dist/collection/components/mini-apps/sparkle-gww/sparkle-gww.js +0 -43
  461. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.css +0 -10
  462. package/dist/collection/components/mini-apps/sparkle-health/sparkle-health.js +0 -111
  463. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.css +0 -11
  464. package/dist/collection/components/mini-apps/sparkle-mood/sparkle-mood.js +0 -127
  465. package/dist/collection/components/modal-image/modal-image.css +0 -61
  466. package/dist/collection/components/modal-image/modal-image.js +0 -159
  467. package/dist/collection/components/sparkle-animation-player/assets/play-button-disabled-overlay.png +0 -0
  468. package/dist/collection/components/sparkle-animation-player/assets/play-button-overlay.png +0 -0
  469. package/dist/collection/components/sparkle-animation-player/caption-parser.js +0 -94
  470. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.css +0 -157
  471. package/dist/collection/components/sparkle-animation-player/sparkle-animation-player.js +0 -598
  472. package/dist/collection/components/sparkle-assignment/sparkle-assignment.css +0 -30
  473. package/dist/collection/components/sparkle-assignment/sparkle-assignment.js +0 -159
  474. package/dist/collection/components/sparkle-character-intro/assets/characters/character-img.jpg +0 -0
  475. package/dist/collection/components/sparkle-character-intro/assets/characters/jen.png +0 -0
  476. package/dist/collection/components/sparkle-character-intro/assets/characters/kimberly.png +0 -0
  477. package/dist/collection/components/sparkle-character-intro/assets/characters/valeria.png +0 -0
  478. package/dist/collection/components/sparkle-character-intro/assets/characters/yuna.png +0 -0
  479. package/dist/collection/components/sparkle-character-intro/assets/characters/zynab.png +0 -0
  480. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.css +0 -74
  481. package/dist/collection/components/sparkle-character-intro/sparkle-character-intro.js +0 -68
  482. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.css +0 -35
  483. package/dist/collection/components/sparkle-compass/sparkle-compass-post/sparkle-compass-post.js +0 -171
  484. package/dist/collection/components/sparkle-compass/sparkle-compass.css +0 -25
  485. package/dist/collection/components/sparkle-compass/sparkle-compass.js +0 -283
  486. package/dist/collection/components/sparkle-course-root/sparkle-course-root.css +0 -3
  487. package/dist/collection/components/sparkle-course-root/sparkle-course-root.js +0 -196
  488. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.css +0 -157
  489. package/dist/collection/components/sparkle-discussion/sparkle-discussion-questions/sparkle-discussion-questions.js +0 -232
  490. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.css +0 -158
  491. package/dist/collection/components/sparkle-discussion/sparkle-discussion-results/sparkle-discussion-results.js +0 -274
  492. package/dist/collection/components/sparkle-discussion/sparkle-discussion.css +0 -5
  493. package/dist/collection/components/sparkle-discussion/sparkle-discussion.js +0 -112
  494. package/dist/collection/components/sparkle-emoji/sparkle-emoji.css +0 -16
  495. package/dist/collection/components/sparkle-emoji/sparkle-emoji.js +0 -116
  496. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.css +0 -35
  497. package/dist/collection/components/sparkle-feed-post/sparkle-feed-post.js +0 -193
  498. package/dist/collection/components/sparkle-feedback/sparkle-feedback.css +0 -3
  499. package/dist/collection/components/sparkle-feedback/sparkle-feedback.js +0 -118
  500. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.css +0 -0
  501. package/dist/collection/components/sparkle-file-upload/sparkle-file-upload.js +0 -105
  502. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.css +0 -4
  503. package/dist/collection/components/sparkle-forgot-password/sparkle-forgot-password.js +0 -107
  504. package/dist/collection/components/sparkle-input/sparkle-input.css +0 -0
  505. package/dist/collection/components/sparkle-input/sparkle-input.js +0 -212
  506. package/dist/collection/components/sparkle-intro/sparkle-intro.css +0 -15
  507. package/dist/collection/components/sparkle-intro/sparkle-intro.js +0 -35
  508. package/dist/collection/components/sparkle-login/sparkle-login.css +0 -4
  509. package/dist/collection/components/sparkle-login/sparkle-login.js +0 -173
  510. package/dist/collection/components/sparkle-poll/sparkle-poll.css +0 -3
  511. package/dist/collection/components/sparkle-poll/sparkle-poll.js +0 -15
  512. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.css +0 -3
  513. package/dist/collection/components/sparkle-quiz/sparkle-quiz-feedback/sparkle-quiz-feedback.js +0 -69
  514. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.css +0 -3
  515. package/dist/collection/components/sparkle-quiz/sparkle-quiz-input/sparkle-quiz-input.js +0 -59
  516. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.css +0 -48
  517. package/dist/collection/components/sparkle-quiz/sparkle-quiz-old/sparkle-quiz-old.js +0 -327
  518. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.css +0 -18
  519. package/dist/collection/components/sparkle-quiz/sparkle-quiz-opinion/sparkle-quiz-opinion.js +0 -106
  520. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.css +0 -3
  521. package/dist/collection/components/sparkle-quiz/sparkle-quiz-poll/sparkle-quiz-poll.js +0 -59
  522. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.css +0 -3
  523. package/dist/collection/components/sparkle-quiz/sparkle-quiz-select/sparkle-quiz-select.js +0 -100
  524. package/dist/collection/components/sparkle-quiz/sparkle-quiz.css +0 -48
  525. package/dist/collection/components/sparkle-quiz/sparkle-quiz.js +0 -221
  526. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.css +0 -3
  527. package/dist/collection/components/sparkle-quiz-container/sparkle-quiz-container.js +0 -98
  528. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.css +0 -3
  529. package/dist/collection/components/sparkle-reset-password/sparkle-reset-password.js +0 -126
  530. package/dist/collection/components/sparkle-root/sparkle-root.css +0 -61
  531. package/dist/collection/components/sparkle-root/sparkle-root.js +0 -86
  532. package/dist/collection/components/sparkle-signup/sparkle-signup.css +0 -6
  533. package/dist/collection/components/sparkle-signup/sparkle-signup.js +0 -197
  534. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.css +0 -13
  535. package/dist/collection/components/sparkle-unauthorized/sparkle-unauthorized.js +0 -18
  536. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.css +0 -3
  537. package/dist/collection/components/sparkle-user-enrollment/sparkle-user-enrollment.js +0 -93
  538. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.css +0 -54
  539. package/dist/collection/components/sparkle-user-profile/sparkle-user-profile.js +0 -151
  540. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.css +0 -11
  541. package/dist/collection/components/sparkle-validation-error/sparkle-validation-error.js +0 -44
  542. package/dist/collection/components/sparkle-youtube/sparkle-youtube.css +0 -24
  543. package/dist/collection/components/sparkle-youtube/sparkle-youtube.js +0 -99
  544. package/dist/collection/global/app.js +0 -4
  545. package/dist/collection/helpers/utils.js +0 -3
  546. package/dist/collection/icons.js +0 -36
  547. package/dist/collection/index.js +0 -3
  548. package/dist/collection/l10n.js +0 -18
  549. package/dist/collection/models/api.model.js +0 -7
  550. package/dist/collection/models/assets.model.js +0 -1
  551. package/dist/collection/models/auth/auth.user.js +0 -1
  552. package/dist/collection/models/class.model.js +0 -5
  553. package/dist/collection/models/course.model.js +0 -10
  554. package/dist/collection/models/definitions.js +0 -1
  555. package/dist/collection/models/facilitator-dashboard.model.js +0 -5
  556. package/dist/collection/models/goal.model.js +0 -1
  557. package/dist/collection/models/index.js +0 -1
  558. package/dist/collection/models/markdown.model.js +0 -1
  559. package/dist/collection/models/page.model.js +0 -1
  560. package/dist/collection/models/quiz.model.js +0 -3
  561. package/dist/collection/models/user.model.js +0 -1
  562. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part1.js +0 -2727
  563. package/dist/collection/pages/course/welcome-to-mind-body/introduction/animation/m4l1p1_part2.js +0 -2042
  564. package/dist/collection/services/account.service.js +0 -61
  565. package/dist/collection/services/appdata.service.js +0 -60
  566. package/dist/collection/services/assignment.service.js +0 -14
  567. package/dist/collection/services/auth/auth.service.js +0 -64
  568. package/dist/collection/services/core/assets.service.js +0 -45
  569. package/dist/collection/services/core/localstorage.service.js +0 -34
  570. package/dist/collection/services/environment/environment-config.js +0 -24
  571. package/dist/collection/services/environment/environment-config.service.js +0 -24
  572. package/dist/collection/services/facilitator.service.js +0 -76
  573. package/dist/collection/services/feed.service.js +0 -43
  574. package/dist/collection/services/httpService.js +0 -103
  575. package/dist/collection/services/index.js +0 -4
  576. package/dist/collection/services/media.service.js +0 -29
  577. package/dist/collection/services/signalR.service.js +0 -83
  578. package/dist/collection/services/store.service.js +0 -13
  579. package/dist/collection/services/student.service.js +0 -56
  580. package/dist/collection/services/token.service.js +0 -79
  581. package/dist/collection/stores/auth.store.js +0 -12
  582. package/dist/collection/stores/class.store.js +0 -5
  583. package/dist/collection/stores/error.store.js +0 -5
  584. package/dist/collection/stores/facilitator.store.js +0 -15
  585. package/dist/collection/stores/feed.store.js +0 -8
  586. package/dist/collection/stores/goal.store.js +0 -7
  587. package/dist/collection/stores/index.js +0 -1
  588. package/dist/collection/stores/media.store.js +0 -5
  589. package/dist/collection/stores/mood.store.js +0 -5
  590. package/dist/collection/stores/nav.store.js +0 -11
  591. package/dist/collection/stores/signalR.store.js +0 -6
  592. package/dist/collection/stores/theme.store.js +0 -9
  593. package/dist/collection/stores/toc.store.js +0 -5
  594. package/dist/collection/stores/user.store.js +0 -16
  595. package/dist/collection/util.js +0 -55
  596. package/dist/collection/utils.js +0 -92
  597. package/dist/esm/PrivateRoute-90ac95b8.js +0 -212
  598. package/dist/esm/active-router-fc9e4e06.js +0 -73
  599. package/dist/esm/animation-12377cb3.js +0 -984
  600. package/dist/esm/app-globals-3f0347b0.js +0 -7
  601. package/dist/esm/appdata.service-2e84e167.js +0 -70
  602. package/dist/esm/assets.service-def1d63c.js +0 -48
  603. package/dist/esm/assignment.service-8d31f141.js +0 -17
  604. package/dist/esm/auth.store-dba2c2da.js +0 -3381
  605. package/dist/esm/compass-svg.entry.js +0 -128
  606. package/dist/esm/context-consumer.entry.js +0 -25
  607. package/dist/esm/course-select.entry.js +0 -26
  608. package/dist/esm/dir-03012648.js +0 -18
  609. package/dist/esm/environment-config.service-b191f276.js +0 -26
  610. package/dist/esm/facilitator.service-18c47bdf.js +0 -92
  611. package/dist/esm/feed.service-b4f3cae4.js +0 -54
  612. package/dist/esm/framework-delegate-3e634a5c.js +0 -107
  613. package/dist/esm/gesture-controller-7be18351.js +0 -194
  614. package/dist/esm/haptic-522f76f2.js +0 -110
  615. package/dist/esm/header-mobile-collapse_61.entry.js +0 -15060
  616. package/dist/esm/helpers-bf0e23d6.js +0 -403
  617. package/dist/esm/httpService-7986aeed.js +0 -685
  618. package/dist/esm/icons-1c794c74.js +0 -18
  619. package/dist/esm/index-21661af2.js +0 -463
  620. package/dist/esm/index-2b84cad2.js +0 -223
  621. package/dist/esm/index-4044fde9.js +0 -25
  622. package/dist/esm/index-45fec1e7.js +0 -184
  623. package/dist/esm/index-5e8971ae.js +0 -128
  624. package/dist/esm/index-c04b9ed5.js +0 -1888
  625. package/dist/esm/index-cded2d87.js +0 -312
  626. package/dist/esm/index-dad75b83.js +0 -34
  627. package/dist/esm/index.es-e0c0f891.js +0 -10580
  628. package/dist/esm/index.js +0 -12
  629. package/dist/esm/input-shims-671d8d9f.js +0 -416
  630. package/dist/esm/ion-accordion-group.entry.js +0 -201
  631. package/dist/esm/ion-accordion.entry.js +0 -332
  632. package/dist/esm/ion-action-sheet_7.entry.js +0 -2925
  633. package/dist/esm/ion-app.entry.js +0 -75
  634. package/dist/esm/ion-back-button.entry.js +0 -90
  635. package/dist/esm/ion-backdrop.entry.js +0 -63
  636. package/dist/esm/ion-badge.entry.js +0 -25
  637. package/dist/esm/ion-breadcrumb.entry.js +0 -91
  638. package/dist/esm/ion-breadcrumbs.entry.js +0 -129
  639. package/dist/esm/ion-buttons_3.entry.js +0 -147
  640. package/dist/esm/ion-card-header.entry.js +0 -33
  641. package/dist/esm/ion-card-subtitle.entry.js +0 -26
  642. package/dist/esm/ion-card-title.entry.js +0 -26
  643. package/dist/esm/ion-chip.entry.js +0 -36
  644. package/dist/esm/ion-content_2.entry.js +0 -654
  645. package/dist/esm/ion-datetime-button.entry.js +0 -308
  646. package/dist/esm/ion-datetime.entry.js +0 -1619
  647. package/dist/esm/ion-fab-button.entry.js +0 -104
  648. package/dist/esm/ion-fab-list.entry.js +0 -41
  649. package/dist/esm/ion-fab.entry.js +0 -72
  650. package/dist/esm/ion-footer.entry.js +0 -116
  651. package/dist/esm/ion-img.entry.js +0 -97
  652. package/dist/esm/ion-infinite-scroll-content.entry.js +0 -33
  653. package/dist/esm/ion-infinite-scroll.entry.js +0 -202
  654. package/dist/esm/ion-item-divider.entry.js +0 -36
  655. package/dist/esm/ion-item-group.entry.js +0 -27
  656. package/dist/esm/ion-item-option.entry.js +0 -56
  657. package/dist/esm/ion-item-options.entry.js +0 -43
  658. package/dist/esm/ion-item-sliding.entry.js +0 -394
  659. package/dist/esm/ion-loading.entry.js +0 -211
  660. package/dist/esm/ion-menu-button.entry.js +0 -72
  661. package/dist/esm/ion-menu-toggle.entry.js +0 -43
  662. package/dist/esm/ion-menu.entry.js +0 -571
  663. package/dist/esm/ion-modal.entry.js +0 -1707
  664. package/dist/esm/ion-nav-link.entry.js +0 -43
  665. package/dist/esm/ion-nav.entry.js +0 -868
  666. package/dist/esm/ion-picker-column-internal_2.entry.js +0 -803
  667. package/dist/esm/ion-picker-column.entry.js +0 -327
  668. package/dist/esm/ion-picker.entry.js +0 -217
  669. package/dist/esm/ion-progress-bar.entry.js +0 -70
  670. package/dist/esm/ion-refresher-content.entry.js +0 -31
  671. package/dist/esm/ion-refresher.entry.js +0 -798
  672. package/dist/esm/ion-reorder-group.entry.js +0 -277
  673. package/dist/esm/ion-reorder.entry.js +0 -34
  674. package/dist/esm/ion-route-redirect.entry.js +0 -20
  675. package/dist/esm/ion-route.entry.js +0 -45
  676. package/dist/esm/ion-router-link.entry.js +0 -34
  677. package/dist/esm/ion-router-outlet.entry.js +0 -196
  678. package/dist/esm/ion-router.entry.js +0 -827
  679. package/dist/esm/ion-searchbar.entry.js +0 -366
  680. package/dist/esm/ion-segment-button.entry.js +0 -98
  681. package/dist/esm/ion-segment.entry.js +0 -413
  682. package/dist/esm/ion-skeleton-text.entry.js +0 -29
  683. package/dist/esm/ion-slide.entry.js +0 -21
  684. package/dist/esm/ion-slides.entry.js +0 -387
  685. package/dist/esm/ion-split-pane.entry.js +0 -150
  686. package/dist/esm/ion-tab-bar.entry.js +0 -71
  687. package/dist/esm/ion-tab-button.entry.js +0 -99
  688. package/dist/esm/ion-tab.entry.js +0 -55
  689. package/dist/esm/ion-tabs.entry.js +0 -150
  690. package/dist/esm/ion-thumbnail.entry.js +0 -16
  691. package/dist/esm/ion-toast.entry.js +0 -268
  692. package/dist/esm/ion-toggle.entry.js +0 -173
  693. package/dist/esm/ion-virtual-scroll.entry.js +0 -551
  694. package/dist/esm/ionic-global-4903e23e.js +0 -226
  695. package/dist/esm/ios.transition-131d64fe.js +0 -479
  696. package/dist/esm/loader.js +0 -20
  697. package/dist/esm/md.transition-f6126011.js +0 -55
  698. package/dist/esm/media.service-6e90bc41.js +0 -37
  699. package/dist/esm/menu-toggle-util-bace8ae6.js +0 -12
  700. package/dist/esm/overlays-4233a39d.js +0 -491
  701. package/dist/esm/parse-1ae3a9bb.js +0 -1196
  702. package/dist/esm/polyfills/core-js.js +0 -11
  703. package/dist/esm/polyfills/css-shim.js +0 -1
  704. package/dist/esm/polyfills/dom.js +0 -79
  705. package/dist/esm/polyfills/es5-html-element.js +0 -1
  706. package/dist/esm/polyfills/index.js +0 -34
  707. package/dist/esm/polyfills/system.js +0 -6
  708. package/dist/esm/purify-85bfcc69.js +0 -1466
  709. package/dist/esm/signalR.service-c33fba50.js +0 -2982
  710. package/dist/esm/sparkle-animation-player.entry.js +0 -511
  711. package/dist/esm/sparkle-assignment.entry.js +0 -106
  712. package/dist/esm/sparkle-character-intro.entry.js +0 -22
  713. package/dist/esm/sparkle-code.entry.js +0 -39
  714. package/dist/esm/sparkle-compass-post.entry.js +0 -129
  715. package/dist/esm/sparkle-compass.entry.js +0 -122
  716. package/dist/esm/sparkle-core.js +0 -20
  717. package/dist/esm/sparkle-discussion-questions_2.entry.js +0 -276
  718. package/dist/esm/sparkle-discussion.entry.js +0 -38
  719. package/dist/esm/sparkle-emoji.entry.js +0 -76
  720. package/dist/esm/sparkle-facilitator-notes-form.entry.js +0 -117
  721. package/dist/esm/sparkle-feed-post.entry.js +0 -112
  722. package/dist/esm/sparkle-feedback.entry.js +0 -97
  723. package/dist/esm/sparkle-file-upload.entry.js +0 -49
  724. package/dist/esm/sparkle-goal-form.entry.js +0 -175
  725. package/dist/esm/sparkle-gww-comment-list.entry.js +0 -22
  726. package/dist/esm/sparkle-gww-graph.entry.js +0 -15
  727. package/dist/esm/sparkle-input.entry.js +0 -52
  728. package/dist/esm/sparkle-intro.entry.js +0 -22
  729. package/dist/esm/sparkle-lower-content-nav.entry.js +0 -18
  730. package/dist/esm/sparkle-menu-collapsible.entry.js +0 -42
  731. package/dist/esm/sparkle-modal-image.entry.js +0 -30
  732. package/dist/esm/sparkle-notfound-page.entry.js +0 -21
  733. package/dist/esm/sparkle-overlay.entry.js +0 -88
  734. package/dist/esm/sparkle-poll.entry.js +0 -15
  735. package/dist/esm/sparkle-quiz-container.entry.js +0 -43
  736. package/dist/esm/sparkle-quiz-feedback_5.entry.js +0 -109
  737. package/dist/esm/sparkle-quiz-old.entry.js +0 -116
  738. package/dist/esm/sparkle-quiz.entry.js +0 -99
  739. package/dist/esm/sparkle-select.entry.js +0 -57
  740. package/dist/esm/sparkle-sidebar.entry.js +0 -39
  741. package/dist/esm/sparkle-tab.entry.js +0 -22
  742. package/dist/esm/sparkle-table-of-contents.entry.js +0 -67
  743. package/dist/esm/sparkle-tabs.entry.js +0 -62
  744. package/dist/esm/sparkle-youtube.entry.js +0 -35
  745. package/dist/esm/status-tap-dde52787.js +0 -40
  746. package/dist/esm/stencil-async-content.entry.js +0 -28
  747. package/dist/esm/stencil-route-title.entry.js +0 -28
  748. package/dist/esm/stencil-router-prompt.entry.js +0 -55
  749. package/dist/esm/student.service-08af124f.js +0 -75
  750. package/dist/esm/swipe-back-7847a0c1.js +0 -74
  751. package/dist/esm/swiper.bundle-b6a959de.js +0 -6418
  752. package/dist/esm/token.service-71a5d33f.js +0 -94
  753. package/dist/esm/util-57cc8006.js +0 -2451
  754. package/dist/index.cjs.js +0 -1
  755. package/dist/index.js +0 -1
  756. package/dist/loader/cdn.js +0 -3
  757. package/dist/loader/index.cjs.js +0 -3
  758. package/dist/loader/index.d.ts +0 -12
  759. package/dist/loader/index.es2017.js +0 -3
  760. package/dist/loader/index.js +0 -4
  761. package/dist/loader/package.json +0 -10
  762. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.ios.css +0 -75
  763. package/dist/node_modules/@ionic/core/dist/collection/components/accordion/accordion.md.css +0 -72
  764. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.ios.css +0 -25
  765. package/dist/node_modules/@ionic/core/dist/collection/components/accordion-group/accordion-group.md.css +0 -59
  766. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.ios.css +0 -357
  767. package/dist/node_modules/@ionic/core/dist/collection/components/action-sheet/action-sheet.md.css +0 -290
  768. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.ios.css +0 -494
  769. package/dist/node_modules/@ionic/core/dist/collection/components/alert/alert.md.css +0 -502
  770. package/dist/node_modules/@ionic/core/dist/collection/components/app/app.css +0 -17
  771. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.ios.css +0 -22
  772. package/dist/node_modules/@ionic/core/dist/collection/components/avatar/avatar.md.css +0 -22
  773. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.ios.css +0 -281
  774. package/dist/node_modules/@ionic/core/dist/collection/components/back-button/back-button.md.css +0 -309
  775. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.ios.css +0 -26
  776. package/dist/node_modules/@ionic/core/dist/collection/components/backdrop/backdrop.md.css +0 -26
  777. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.ios.css +0 -58
  778. package/dist/node_modules/@ionic/core/dist/collection/components/badge/badge.md.css +0 -62
  779. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.ios.css +0 -234
  780. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumb/breadcrumb.md.css +0 -237
  781. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.ios.css +0 -38
  782. package/dist/node_modules/@ionic/core/dist/collection/components/breadcrumbs/breadcrumbs.md.css +0 -37
  783. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.ios.css +0 -439
  784. package/dist/node_modules/@ionic/core/dist/collection/components/button/button.md.css +0 -428
  785. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.ios.css +0 -128
  786. package/dist/node_modules/@ionic/core/dist/collection/components/buttons/buttons.md.css +0 -151
  787. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.ios.css +0 -101
  788. package/dist/node_modules/@ionic/core/dist/collection/components/card/card.md.css +0 -95
  789. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.ios.css +0 -61
  790. package/dist/node_modules/@ionic/core/dist/collection/components/card-content/card-content.md.css +0 -63
  791. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.ios.css +0 -37
  792. package/dist/node_modules/@ionic/core/dist/collection/components/card-header/card-header.md.css +0 -35
  793. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.ios.css +0 -28
  794. package/dist/node_modules/@ionic/core/dist/collection/components/card-subtitle/card-subtitle.md.css +0 -26
  795. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.ios.css +0 -27
  796. package/dist/node_modules/@ionic/core/dist/collection/components/card-title/card-title.md.css +0 -27
  797. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.ios.css +0 -169
  798. package/dist/node_modules/@ionic/core/dist/collection/components/checkbox/checkbox.md.css +0 -172
  799. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.ios.css +0 -200
  800. package/dist/node_modules/@ionic/core/dist/collection/components/chip/chip.md.css +0 -200
  801. package/dist/node_modules/@ionic/core/dist/collection/components/col/col.css +0 -108
  802. package/dist/node_modules/@ionic/core/dist/collection/components/content/content.css +0 -237
  803. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.ios.css +0 -648
  804. package/dist/node_modules/@ionic/core/dist/collection/components/datetime/datetime.md.css +0 -637
  805. package/dist/node_modules/@ionic/core/dist/collection/components/datetime-button/datetime-button.css +0 -60
  806. package/dist/node_modules/@ionic/core/dist/collection/components/fab/fab.css +0 -61
  807. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.ios.css +0 -338
  808. package/dist/node_modules/@ionic/core/dist/collection/components/fab-button/fab-button.md.css +0 -307
  809. package/dist/node_modules/@ionic/core/dist/collection/components/fab-list/fab-list.css +0 -116
  810. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.ios.css +0 -37
  811. package/dist/node_modules/@ionic/core/dist/collection/components/footer/footer.md.css +0 -37
  812. package/dist/node_modules/@ionic/core/dist/collection/components/grid/grid.css +0 -151
  813. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.ios.css +0 -108
  814. package/dist/node_modules/@ionic/core/dist/collection/components/header/header.md.css +0 -40
  815. package/dist/node_modules/@ionic/core/dist/collection/components/img/img.css +0 -12
  816. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll/infinite-scroll.css +0 -8
  817. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.ios.css +0 -54
  818. package/dist/node_modules/@ionic/core/dist/collection/components/infinite-scroll-content/infinite-scroll-content.md.css +0 -54
  819. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.ios.css +0 -185
  820. package/dist/node_modules/@ionic/core/dist/collection/components/input/input.md.css +0 -185
  821. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.ios.css +0 -669
  822. package/dist/node_modules/@ionic/core/dist/collection/components/item/item.md.css +0 -928
  823. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.ios.css +0 -204
  824. package/dist/node_modules/@ionic/core/dist/collection/components/item-divider/item-divider.md.css +0 -297
  825. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.ios.css +0 -3
  826. package/dist/node_modules/@ionic/core/dist/collection/components/item-group/item-group.md.css +0 -3
  827. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.ios.css +0 -186
  828. package/dist/node_modules/@ionic/core/dist/collection/components/item-option/item-option.md.css +0 -180
  829. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.ios.css +0 -88
  830. package/dist/node_modules/@ionic/core/dist/collection/components/item-options/item-options.md.css +0 -85
  831. package/dist/node_modules/@ionic/core/dist/collection/components/item-sliding/item-sliding.css +0 -42
  832. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.ios.css +0 -156
  833. package/dist/node_modules/@ionic/core/dist/collection/components/label/label.md.css +0 -250
  834. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.ios.css +0 -91
  835. package/dist/node_modules/@ionic/core/dist/collection/components/list/list.md.css +0 -114
  836. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.ios.css +0 -118
  837. package/dist/node_modules/@ionic/core/dist/collection/components/list-header/list-header.md.css +0 -94
  838. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.ios.css +0 -109
  839. package/dist/node_modules/@ionic/core/dist/collection/components/loading/loading.md.css +0 -100
  840. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.ios.css +0 -127
  841. package/dist/node_modules/@ionic/core/dist/collection/components/menu/menu.md.css +0 -123
  842. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.ios.css +0 -175
  843. package/dist/node_modules/@ionic/core/dist/collection/components/menu-button/menu-button.md.css +0 -178
  844. package/dist/node_modules/@ionic/core/dist/collection/components/menu-toggle/menu-toggle.css +0 -3
  845. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.ios.css +0 -250
  846. package/dist/node_modules/@ionic/core/dist/collection/components/modal/modal.md.css +0 -177
  847. package/dist/node_modules/@ionic/core/dist/collection/components/nav/nav.css +0 -10
  848. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.ios.css +0 -16
  849. package/dist/node_modules/@ionic/core/dist/collection/components/note/note.md.css +0 -17
  850. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.ios.css +0 -217
  851. package/dist/node_modules/@ionic/core/dist/collection/components/picker/picker.md.css +0 -204
  852. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.ios.css +0 -122
  853. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column/picker-column.md.css +0 -123
  854. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.ios.css +0 -82
  855. package/dist/node_modules/@ionic/core/dist/collection/components/picker-column-internal/picker-column-internal.md.css +0 -85
  856. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.ios.css +0 -126
  857. package/dist/node_modules/@ionic/core/dist/collection/components/picker-internal/picker-internal.md.css +0 -122
  858. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.ios.css +0 -201
  859. package/dist/node_modules/@ionic/core/dist/collection/components/popover/popover.md.css +0 -132
  860. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.ios.css +0 -206
  861. package/dist/node_modules/@ionic/core/dist/collection/components/progress-bar/progress-bar.md.css +0 -206
  862. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.ios.css +0 -177
  863. package/dist/node_modules/@ionic/core/dist/collection/components/radio/radio.md.css +0 -178
  864. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.ios.css +0 -275
  865. package/dist/node_modules/@ionic/core/dist/collection/components/range/range.md.css +0 -320
  866. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.ios.css +0 -189
  867. package/dist/node_modules/@ionic/core/dist/collection/components/refresher/refresher.md.css +0 -210
  868. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.ios.css +0 -15
  869. package/dist/node_modules/@ionic/core/dist/collection/components/reorder/reorder.md.css +0 -15
  870. package/dist/node_modules/@ionic/core/dist/collection/components/reorder-group/reorder-group.css +0 -33
  871. package/dist/node_modules/@ionic/core/dist/collection/components/ripple-effect/ripple-effect.css +0 -58
  872. package/dist/node_modules/@ionic/core/dist/collection/components/router-link/router-link.css +0 -29
  873. package/dist/node_modules/@ionic/core/dist/collection/components/router-outlet/route-outlet.css +0 -10
  874. package/dist/node_modules/@ionic/core/dist/collection/components/row/row.css +0 -4
  875. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.ios.css +0 -348
  876. package/dist/node_modules/@ionic/core/dist/collection/components/searchbar/searchbar.md.css +0 -279
  877. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.ios.css +0 -65
  878. package/dist/node_modules/@ionic/core/dist/collection/components/segment/segment.md.css +0 -36
  879. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.ios.css +0 -446
  880. package/dist/node_modules/@ionic/core/dist/collection/components/segment-button/segment-button.md.css +0 -424
  881. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.ios.css +0 -145
  882. package/dist/node_modules/@ionic/core/dist/collection/components/select/select.md.css +0 -177
  883. package/dist/node_modules/@ionic/core/dist/collection/components/select-option/select-option.css +0 -3
  884. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.ios.css +0 -14
  885. package/dist/node_modules/@ionic/core/dist/collection/components/select-popover/select-popover.md.css +0 -37
  886. package/dist/node_modules/@ionic/core/dist/collection/components/skeleton-text/skeleton-text.css +0 -53
  887. package/dist/node_modules/@ionic/core/dist/collection/components/slide/slide.css +0 -31
  888. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.ios.css +0 -764
  889. package/dist/node_modules/@ionic/core/dist/collection/components/slides/slides.md.css +0 -764
  890. package/dist/node_modules/@ionic/core/dist/collection/components/spinner/spinner.css +0 -167
  891. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.ios.css +0 -108
  892. package/dist/node_modules/@ionic/core/dist/collection/components/split-pane/split-pane.md.css +0 -108
  893. package/dist/node_modules/@ionic/core/dist/collection/components/tab/tab.css +0 -4
  894. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.ios.css +0 -97
  895. package/dist/node_modules/@ionic/core/dist/collection/components/tab-bar/tab-bar.md.css +0 -82
  896. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.ios.css +0 -308
  897. package/dist/node_modules/@ionic/core/dist/collection/components/tab-button/tab-button.md.css +0 -331
  898. package/dist/node_modules/@ionic/core/dist/collection/components/tabs/tabs.css +0 -19
  899. package/dist/node_modules/@ionic/core/dist/collection/components/text/text.css +0 -3
  900. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.ios.css +0 -175
  901. package/dist/node_modules/@ionic/core/dist/collection/components/textarea/textarea.md.css +0 -179
  902. package/dist/node_modules/@ionic/core/dist/collection/components/thumbnail/thumbnail.css +0 -21
  903. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.ios.css +0 -122
  904. package/dist/node_modules/@ionic/core/dist/collection/components/title/title.md.css +0 -55
  905. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.ios.css +0 -262
  906. package/dist/node_modules/@ionic/core/dist/collection/components/toast/toast.md.css +0 -295
  907. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.ios.css +0 -286
  908. package/dist/node_modules/@ionic/core/dist/collection/components/toggle/toggle.md.css +0 -261
  909. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.ios.css +0 -175
  910. package/dist/node_modules/@ionic/core/dist/collection/components/toolbar/toolbar.md.css +0 -168
  911. package/dist/node_modules/@ionic/core/dist/collection/components/virtual-scroll/virtual-scroll.css +0 -21
  912. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/button/button.css +0 -49
  913. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/card/card.css +0 -208
  914. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/cards/cards.css +0 -31
  915. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/code/code.css +0 -245
  916. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/dropdown/dropdown.css +0 -115
  917. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header-mobile-collapse/header-mobile-collapse.css +0 -255
  918. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/header/header.css +0 -232
  919. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/collapsible/collapsible.css +0 -3
  920. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu-toggle/menu-toggle.css +0 -25
  921. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/menu/menu.css +0 -71
  922. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/nav/nav.css +0 -194
  923. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/notfound-page/notfound-page.css +0 -4
  924. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/overlay/overlay.css +0 -67
  925. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/page-footer/page-footer.css +0 -25
  926. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/pagination/pagination.css +0 -93
  927. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/select/select.css +0 -52
  928. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sidebar/sidebar.css +0 -98
  929. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/sparkle-lower-content-nav/sparkle-lower-content-nav.css +0 -8
  930. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/table-of-contents/table-of-contents.css +0 -37
  931. package/dist/node_modules/@sparkle-learning/components/dist/collection/components/tabs/tabs.css +0 -64
  932. package/dist/node_modules/@stencil/router/dist/collection/components/route/route.css +0 -3
  933. package/dist/node_modules/ionicons/dist/collection/components/icon/icon.css +0 -101
  934. package/dist/sparkle-core/p-00d10dc9.js +0 -4
  935. package/dist/sparkle-core/p-0147266a.js +0 -1
  936. package/dist/sparkle-core/p-04c7b276.entry.js +0 -1
  937. package/dist/sparkle-core/p-05c032dd.js +0 -4
  938. package/dist/sparkle-core/p-06642405.entry.js +0 -1
  939. package/dist/sparkle-core/p-0664370b.entry.js +0 -1
  940. package/dist/sparkle-core/p-06c7d0f2.entry.js +0 -1
  941. package/dist/sparkle-core/p-076f0239.js +0 -4
  942. package/dist/sparkle-core/p-077c732b.js +0 -4
  943. package/dist/sparkle-core/p-08420531.entry.js +0 -1
  944. package/dist/sparkle-core/p-08cca80d.entry.js +0 -1
  945. package/dist/sparkle-core/p-0ad5c123.entry.js +0 -1
  946. package/dist/sparkle-core/p-0afa3a4d.entry.js +0 -1
  947. package/dist/sparkle-core/p-0c3f3ea6.entry.js +0 -1
  948. package/dist/sparkle-core/p-0e4de1d0.js +0 -4
  949. package/dist/sparkle-core/p-0e8e539f.entry.js +0 -1
  950. package/dist/sparkle-core/p-11356b03.entry.js +0 -1
  951. package/dist/sparkle-core/p-11a6c175.entry.js +0 -1
  952. package/dist/sparkle-core/p-12dd96d7.js +0 -4
  953. package/dist/sparkle-core/p-13ec39db.entry.js +0 -1
  954. package/dist/sparkle-core/p-1adc98f6.js +0 -1
  955. package/dist/sparkle-core/p-1b1ba156.entry.js +0 -1
  956. package/dist/sparkle-core/p-1e125ca5.entry.js +0 -1
  957. package/dist/sparkle-core/p-1e4782af.entry.js +0 -1
  958. package/dist/sparkle-core/p-2033cd86.js +0 -7
  959. package/dist/sparkle-core/p-214d1229.entry.js +0 -1
  960. package/dist/sparkle-core/p-23aca7ca.js +0 -4
  961. package/dist/sparkle-core/p-24cb9a33.entry.js +0 -1
  962. package/dist/sparkle-core/p-27fbabc3.entry.js +0 -1
  963. package/dist/sparkle-core/p-2ba70507.entry.js +0 -1
  964. package/dist/sparkle-core/p-2c1ca854.entry.js +0 -1
  965. package/dist/sparkle-core/p-2d9659e2.entry.js +0 -1
  966. package/dist/sparkle-core/p-2f569553.js +0 -1
  967. package/dist/sparkle-core/p-30b810d1.entry.js +0 -4
  968. package/dist/sparkle-core/p-32f4e565.entry.js +0 -1
  969. package/dist/sparkle-core/p-352677e6.entry.js +0 -1
  970. package/dist/sparkle-core/p-38b7cf68.entry.js +0 -1
  971. package/dist/sparkle-core/p-38c842d5.entry.js +0 -1
  972. package/dist/sparkle-core/p-3963e02b.entry.js +0 -1
  973. package/dist/sparkle-core/p-39712c56.entry.js +0 -4
  974. package/dist/sparkle-core/p-39a31e43.js +0 -1
  975. package/dist/sparkle-core/p-3daf2915.entry.js +0 -352
  976. package/dist/sparkle-core/p-3de0e00c.js +0 -4
  977. package/dist/sparkle-core/p-4053ecdb.entry.js +0 -1
  978. package/dist/sparkle-core/p-408176ba.js +0 -1
  979. package/dist/sparkle-core/p-42ed7d5f.entry.js +0 -1
  980. package/dist/sparkle-core/p-48f72e63.js +0 -4
  981. package/dist/sparkle-core/p-4b4a8703.js +0 -1
  982. package/dist/sparkle-core/p-4c6a7e52.js +0 -1
  983. package/dist/sparkle-core/p-4d1cfcbe.entry.js +0 -1
  984. package/dist/sparkle-core/p-4d4077ea.js +0 -4
  985. package/dist/sparkle-core/p-4fba3e4c.js +0 -1
  986. package/dist/sparkle-core/p-506221fe.js +0 -4
  987. package/dist/sparkle-core/p-5096739e.entry.js +0 -1
  988. package/dist/sparkle-core/p-5322c920.entry.js +0 -1
  989. package/dist/sparkle-core/p-5893bbe5.entry.js +0 -1
  990. package/dist/sparkle-core/p-594a6982.entry.js +0 -1
  991. package/dist/sparkle-core/p-5c435d5a.entry.js +0 -1
  992. package/dist/sparkle-core/p-5cad23f1.js +0 -3
  993. package/dist/sparkle-core/p-5d409601.js +0 -1
  994. package/dist/sparkle-core/p-601397df.entry.js +0 -1
  995. package/dist/sparkle-core/p-604a7987.js +0 -4
  996. package/dist/sparkle-core/p-616941c6.entry.js +0 -1
  997. package/dist/sparkle-core/p-6316d124.entry.js +0 -1
  998. package/dist/sparkle-core/p-63f71ada.entry.js +0 -1
  999. package/dist/sparkle-core/p-69487d90.entry.js +0 -1
  1000. package/dist/sparkle-core/p-6bde0192.entry.js +0 -7
  1001. package/dist/sparkle-core/p-6d2f4093.entry.js +0 -7
  1002. package/dist/sparkle-core/p-6ffd2420.entry.js +0 -1
  1003. package/dist/sparkle-core/p-72053ae0.entry.js +0 -1
  1004. package/dist/sparkle-core/p-73721c84.js +0 -4
  1005. package/dist/sparkle-core/p-74864276.entry.js +0 -1
  1006. package/dist/sparkle-core/p-7d8427eb.js +0 -4
  1007. package/dist/sparkle-core/p-7dae0f0e.js +0 -1
  1008. package/dist/sparkle-core/p-7dbfc316.js +0 -1
  1009. package/dist/sparkle-core/p-7e7ce516.js +0 -4
  1010. package/dist/sparkle-core/p-81714d94.entry.js +0 -1
  1011. package/dist/sparkle-core/p-8492a765.entry.js +0 -1
  1012. package/dist/sparkle-core/p-859563db.entry.js +0 -1
  1013. package/dist/sparkle-core/p-85d4cd5c.entry.js +0 -1
  1014. package/dist/sparkle-core/p-865f36a8.entry.js +0 -1
  1015. package/dist/sparkle-core/p-86ed13f0.js +0 -5
  1016. package/dist/sparkle-core/p-871106e0.js +0 -4
  1017. package/dist/sparkle-core/p-894ff7e6.entry.js +0 -1
  1018. package/dist/sparkle-core/p-8a41b502.entry.js +0 -1
  1019. package/dist/sparkle-core/p-8b56f734.js +0 -1
  1020. package/dist/sparkle-core/p-8c74cbb6.entry.js +0 -1
  1021. package/dist/sparkle-core/p-924b2917.js +0 -4
  1022. package/dist/sparkle-core/p-9289cdbc.entry.js +0 -1
  1023. package/dist/sparkle-core/p-957715c5.entry.js +0 -1
  1024. package/dist/sparkle-core/p-973fe404.entry.js +0 -22
  1025. package/dist/sparkle-core/p-975b99ee.entry.js +0 -1
  1026. package/dist/sparkle-core/p-98daeddb.entry.js +0 -1
  1027. package/dist/sparkle-core/p-99ee9919.js +0 -1
  1028. package/dist/sparkle-core/p-9abbd715.entry.js +0 -1
  1029. package/dist/sparkle-core/p-9d894ed4.js +0 -4
  1030. package/dist/sparkle-core/p-9e309b3e.entry.js +0 -1
  1031. package/dist/sparkle-core/p-9e7fee8f.entry.js +0 -1
  1032. package/dist/sparkle-core/p-9ebf0537.entry.js +0 -1
  1033. package/dist/sparkle-core/p-a208ab2d.js +0 -4
  1034. package/dist/sparkle-core/p-a2638250.entry.js +0 -1
  1035. package/dist/sparkle-core/p-a2ebcf0a.entry.js +0 -1
  1036. package/dist/sparkle-core/p-a98d7ebe.entry.js +0 -1
  1037. package/dist/sparkle-core/p-add30d46.js +0 -4
  1038. package/dist/sparkle-core/p-b0603d19.js +0 -16
  1039. package/dist/sparkle-core/p-b06e2bef.js +0 -1
  1040. package/dist/sparkle-core/p-b3f375fb.entry.js +0 -1
  1041. package/dist/sparkle-core/p-b5f3e1bf.entry.js +0 -1
  1042. package/dist/sparkle-core/p-b6fec622.entry.js +0 -1
  1043. package/dist/sparkle-core/p-b8d71ff4.js +0 -1
  1044. package/dist/sparkle-core/p-b96f3c84.entry.js +0 -7
  1045. package/dist/sparkle-core/p-bd80ff43.js +0 -4
  1046. package/dist/sparkle-core/p-bd90903e.js +0 -1
  1047. package/dist/sparkle-core/p-be64105c.entry.js +0 -1
  1048. package/dist/sparkle-core/p-c0533c23.entry.js +0 -1
  1049. package/dist/sparkle-core/p-c2990b24.entry.js +0 -1
  1050. package/dist/sparkle-core/p-c3cadfc6.entry.js +0 -1
  1051. package/dist/sparkle-core/p-c60b29bd.entry.js +0 -4
  1052. package/dist/sparkle-core/p-c64a34cd.entry.js +0 -1
  1053. package/dist/sparkle-core/p-c9f753a4.js +0 -1
  1054. package/dist/sparkle-core/p-cabe9139.js +0 -1
  1055. package/dist/sparkle-core/p-cabfbf22.entry.js +0 -1
  1056. package/dist/sparkle-core/p-cc518c36.entry.js +0 -1
  1057. package/dist/sparkle-core/p-cffd4817.entry.js +0 -1
  1058. package/dist/sparkle-core/p-d0adf726.entry.js +0 -1
  1059. package/dist/sparkle-core/p-d20e4fcf.entry.js +0 -1
  1060. package/dist/sparkle-core/p-d24e53ab.entry.js +0 -1
  1061. package/dist/sparkle-core/p-d288e6c1.entry.js +0 -1
  1062. package/dist/sparkle-core/p-d601810e.entry.js +0 -1
  1063. package/dist/sparkle-core/p-d68092b7.js +0 -4
  1064. package/dist/sparkle-core/p-da391f3f.js +0 -1
  1065. package/dist/sparkle-core/p-de4deb61.entry.js +0 -1
  1066. package/dist/sparkle-core/p-e0cad1bb.js +0 -1
  1067. package/dist/sparkle-core/p-e249aebf.entry.js +0 -1
  1068. package/dist/sparkle-core/p-e3e36ce9.entry.js +0 -1
  1069. package/dist/sparkle-core/p-e421d638.entry.js +0 -1
  1070. package/dist/sparkle-core/p-e686d8b5.entry.js +0 -4
  1071. package/dist/sparkle-core/p-e8988989.entry.js +0 -1
  1072. package/dist/sparkle-core/p-e9431eeb.js +0 -7
  1073. package/dist/sparkle-core/p-ea962e1b.entry.js +0 -1
  1074. package/dist/sparkle-core/p-eaa8bbee.js +0 -4
  1075. package/dist/sparkle-core/p-ebd4354b.entry.js +0 -1
  1076. package/dist/sparkle-core/p-ee1e0eb4.js +0 -2
  1077. package/dist/sparkle-core/p-ef4edc48.entry.js +0 -4
  1078. package/dist/sparkle-core/p-f196c124.entry.js +0 -7
  1079. package/dist/sparkle-core/p-f3cba72a.js +0 -4
  1080. package/dist/sparkle-core/p-f47fe1fe.entry.js +0 -1
  1081. package/dist/sparkle-core/p-f714f77a.entry.js +0 -1
  1082. package/dist/sparkle-core/p-f891c79a.entry.js +0 -1
  1083. package/dist/sparkle-core/p-fb0ca75e.entry.js +0 -5
  1084. package/dist/sparkle-core/p-fb757951.entry.js +0 -1
  1085. package/dist/sparkle-core/p-fd8d0738.entry.js +0 -4
  1086. package/dist/sparkle-core/p-fda95b6e.entry.js +0 -1
  1087. package/dist/sparkle-core/p-fe6dc976.entry.js +0 -1
  1088. package/dist/sparkle-core/p-ff080f82.entry.js +0 -10
  1089. package/dist/sparkle-core/p-ff7a8a71.js +0 -4
  1090. /package/dist/{esm → sparkle-core}/cubic-bezier-4c0db14f.js +0 -0
  1091. /package/dist/{esm → sparkle-core}/focus-visible-4e9a0764.js +0 -0
  1092. /package/dist/{esm → sparkle-core}/hardware-back-button-fa04d6e9.js +0 -0
  1093. /package/dist/{esm → sparkle-core}/index-be6112f8.js +0 -0
  1094. /package/dist/{esm → sparkle-core}/keyboard-7e8329b3.js +0 -0
  1095. /package/dist/{esm → sparkle-core}/localstorage.service-4bf408c8.js +0 -0
  1096. /package/dist/{esm → sparkle-core}/spinner-configs-a37e628a.js +0 -0
  1097. /package/dist/{esm → sparkle-core}/theme-7ef00c83.js +0 -0
@@ -1,16 +0,0 @@
1
- import{b as t,c as r,g as i}from"./p-2f569553.js";import"./p-ee1e0eb4.js";var e,n,s=function(t){return t&&t.Math==Math&&t},a=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},h=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),u=!o((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=Function.prototype.call,f=u?c.bind(c):function(){return c.apply(c,arguments)},l={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,d={f:v&&!l.call({1:2},1)?function(t){var r=v(this,t);return!!r&&r.enumerable}:l},p=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},g=Function.prototype,y=g.call,m=u&&g.bind.bind(y,y),b=u?function(t){return t&&m(t)}:function(t){return t&&function(){return y.apply(t,arguments)}},w=b({}.toString),x=b("".slice),M=function(t){return x(w(t),8,-1)},k=a.Object,N=b("".split),S=o((function(){return!k("z").propertyIsEnumerable(0)}))?function(t){return"String"==M(t)?N(t,""):k(t)}:k,P=a.TypeError,O=function(t){if(null==t)throw P("Can't call method on "+t);return t},j=function(t){return S(O(t))},C=function(t){return"function"==typeof t},A=function(t){return"object"==typeof t?null!==t:C(t)},E=function(t){return C(t)?t:void 0},T=function(t,r){return arguments.length<2?E(a[t]):a[t]&&a[t][r]},R=b({}.isPrototypeOf),B=T("navigator","userAgent")||"",$=a.process,L=a.Deno,I=$&&$.versions||L&&L.version,F=I&&I.v8;F&&(n=(e=F.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!n&&B&&(!(e=B.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=B.match(/Chrome\/(\d+)/))&&(n=+e[1]);var D=n,z=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&D&&D<41})),Y=z&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,_=a.Object,X=Y?function(t){return"symbol"==typeof t}:function(t){var r=T("Symbol");return C(r)&&R(r.prototype,_(t))},q=a.String,G=function(t){try{return q(t)}catch(t){return"Object"}},V=a.TypeError,U=function(t){if(C(t))return t;throw V(G(t)+" is not a function")},H=function(t,r){var i=t[r];return null==i?void 0:U(i)},W=a.TypeError,Q=Object.defineProperty,Z=function(t,r){try{Q(a,t,{value:r,configurable:!0,writable:!0})}catch(i){a[t]=r}return r},K=a["__core-js_shared__"]||Z("__core-js_shared__",{}),J=r((function(t){(t.exports=function(t,r){return K[t]||(K[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),tt=a.Object,rt=function(t){return tt(O(t))},it=b({}.hasOwnProperty),et=Object.hasOwn||function(t,r){return it(rt(t),r)},nt=0,st=Math.random(),at=b(1..toString),ot=function(t){return"Symbol("+(void 0===t?"":t)+")_"+at(++nt+st,36)},ht=J("wks"),ut=a.Symbol,ct=ut&&ut.for,ft=Y?ut:ut&&ut.withoutSetter||ot,lt=function(t){if(!et(ht,t)||!z&&"string"!=typeof ht[t]){var r="Symbol."+t;ht[t]=z&&et(ut,t)?ut[t]:Y&&ct?ct(r):ft(r)}return ht[t]},vt=a.TypeError,dt=lt("toPrimitive"),pt=function(t){var r=function(t,r){if(!A(t)||X(t))return t;var i,e=H(t,dt);if(e){if(void 0===r&&(r="default"),i=f(e,t,r),!A(i)||X(i))return i;throw vt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var i,e;if("string"===r&&C(i=t.toString)&&!A(e=f(i,t)))return e;if(C(i=t.valueOf)&&!A(e=f(i,t)))return e;if("string"!==r&&C(i=t.toString)&&!A(e=f(i,t)))return e;throw W("Can't convert object to primitive value")}(t,r)}(t,"string");return X(r)?r:r+""},gt=a.document,yt=A(gt)&&A(gt.createElement),mt=function(t){return yt?gt.createElement(t):{}},bt=!h&&!o((function(){return 7!=Object.defineProperty(mt("div"),"a",{get:function(){return 7}}).a})),wt=Object.getOwnPropertyDescriptor,xt={f:h?wt:function(t,r){if(t=j(t),r=pt(r),bt)try{return wt(t,r)}catch(t){}if(et(t,r))return p(!f(d.f,t,r),t[r])}},Mt=h&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),kt=a.String,Nt=a.TypeError,St=function(t){if(A(t))return t;throw Nt(kt(t)+" is not an object")},Pt=a.TypeError,Ot=Object.defineProperty,jt=Object.getOwnPropertyDescriptor,Ct={f:h?Mt?function(t,r,i){if(St(t),r=pt(r),St(i),"function"==typeof t&&"prototype"===r&&"value"in i&&"writable"in i&&!i.writable){var e=jt(t,r);e&&e.writable&&(t[r]=i.value,i={configurable:"configurable"in i?i.configurable:e.configurable,enumerable:"enumerable"in i?i.enumerable:e.enumerable,writable:!1})}return Ot(t,r,i)}:Ot:function(t,r,i){if(St(t),r=pt(r),St(i),bt)try{return Ot(t,r,i)}catch(t){}if("get"in i||"set"in i)throw Pt("Accessors not supported");return"value"in i&&(t[r]=i.value),t}},At=h?function(t,r,i){return Ct.f(t,r,p(1,i))}:function(t,r,i){return t[r]=i,t},Et=b(Function.toString);C(K.inspectSource)||(K.inspectSource=function(t){return Et(t)});var Tt,Rt,Bt,$t=K.inspectSource,Lt=a.WeakMap,It=C(Lt)&&/native code/.test($t(Lt)),Ft=J("keys"),Dt=function(t){return Ft[t]||(Ft[t]=ot(t))},zt={},Yt=a.TypeError;if(It||K.state){var _t=K.state||(K.state=new(0,a.WeakMap)),Xt=b(_t.get),qt=b(_t.has),Gt=b(_t.set);Tt=function(t,r){if(qt(_t,t))throw new Yt("Object already initialized");return r.facade=t,Gt(_t,t,r),r},Rt=function(t){return Xt(_t,t)||{}},Bt=function(t){return qt(_t,t)}}else{var Vt=Dt("state");zt[Vt]=!0,Tt=function(t,r){if(et(t,Vt))throw new Yt("Object already initialized");return r.facade=t,At(t,Vt,r),r},Rt=function(t){return et(t,Vt)?t[Vt]:{}},Bt=function(t){return et(t,Vt)}}var Ut={set:Tt,get:Rt,has:Bt,enforce:function(t){return Bt(t)?Rt(t):Tt(t,{})},getterFor:function(t){return function(r){var i;if(!A(r)||(i=Rt(r)).type!==t)throw Yt("Incompatible receiver, "+t+" required");return i}}},Ht=Function.prototype,Wt=h&&Object.getOwnPropertyDescriptor,Qt=et(Ht,"name"),Zt={EXISTS:Qt,PROPER:Qt&&"something"===function(){}.name,CONFIGURABLE:Qt&&(!h||h&&Wt(Ht,"name").configurable)},Kt=r((function(t){var r=Zt.CONFIGURABLE,i=Ut.get,e=Ut.enforce,n=String(String).split("String");(t.exports=function(t,i,s,o){var h,u=!!o&&!!o.unsafe,c=!!o&&!!o.enumerable,f=!!o&&!!o.noTargetGet,l=o&&void 0!==o.name?o.name:i;C(s)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!et(s,"name")||r&&s.name!==l)&&At(s,"name",l),(h=e(s)).source||(h.source=n.join("string"==typeof l?l:""))),t!==a?(u?!f&&t[i]&&(c=!0):delete t[i],c?t[i]=s:At(t,i,s)):c?t[i]=s:Z(i,s)})(Function.prototype,"toString",(function(){return C(this)&&i(this).source||$t(this)}))})),Jt=Math.ceil,tr=Math.floor,rr=function(t){var r=+t;return r!=r||0===r?0:(r>0?tr:Jt)(r)},ir=Math.max,er=Math.min,nr=function(t,r){var i=rr(t);return i<0?ir(i+r,0):er(i,r)},sr=Math.min,ar=function(t){return t>0?sr(rr(t),9007199254740991):0},or=function(t){return ar(t.length)},hr=function(t){return function(r,i,e){var n,s=j(r),a=or(s),o=nr(e,a);if(t&&i!=i){for(;a>o;)if((n=s[o++])!=n)return!0}else for(;a>o;o++)if((t||o in s)&&s[o]===i)return t||o||0;return!t&&-1}},ur={includes:hr(!0),indexOf:hr(!1)},cr=ur.indexOf,fr=b([].push),lr=function(t,r){var i,e=j(t),n=0,s=[];for(i in e)!et(zt,i)&&et(e,i)&&fr(s,i);for(;r.length>n;)et(e,i=r[n++])&&(~cr(s,i)||fr(s,i));return s},vr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],dr=vr.concat("length","prototype"),pr={f:Object.getOwnPropertyNames||function(t){return lr(t,dr)}},gr={f:Object.getOwnPropertySymbols},yr=b([].concat),mr=T("Reflect","ownKeys")||function(t){var r=pr.f(St(t)),i=gr.f;return i?yr(r,i(t)):r},br=function(t,r,i){for(var e=mr(r),n=Ct.f,s=xt.f,a=0;a<e.length;a++){var o=e[a];et(t,o)||i&&et(i,o)||n(t,o,s(r,o))}},wr=/#|\.prototype\./,xr=function(t,r){var i=kr[Mr(t)];return i==Sr||i!=Nr&&(C(r)?o(r):!!r)},Mr=xr.normalize=function(t){return String(t).replace(wr,".").toLowerCase()},kr=xr.data={},Nr=xr.NATIVE="N",Sr=xr.POLYFILL="P",Pr=xr,Or=xt.f,jr=function(t,r){var i,e,n,s,o,h=t.target,u=t.global,c=t.stat;if(i=u?a:c?a[h]||Z(h,{}):(a[h]||{}).prototype)for(e in r){if(s=r[e],n=t.noTargetGet?(o=Or(i,e))&&o.value:i[e],!Pr(u?e:h+(c?".":"#")+e,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;br(s,n)}(t.sham||n&&n.sham)&&At(s,"sham",!0),Kt(i,e,s,t)}},Cr=a.Promise,Ar=a.String,Er=a.TypeError,Tr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,i={};try{(t=b(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(i,[]),r=i instanceof Array}catch(t){}return function(i,e){return St(i),function(t){if("object"==typeof t||C(t))return t;throw Er("Can't set "+Ar(t)+" as a prototype")}(e),r?t(i,e):i.__proto__=e,i}}():void 0),Rr=Ct.f,Br=lt("toStringTag"),$r=function(t,r,i){t&&!i&&(t=t.prototype),t&&!et(t,Br)&&Rr(t,Br,{configurable:!0,value:r})},Lr=lt("species"),Ir=a.TypeError,Fr=b(b.bind),Dr=function(t,r){return U(t),void 0===r?t:u?Fr(t,r):function(){return t.apply(r,arguments)}},zr={},Yr=lt("iterator"),_r=Array.prototype,Xr={};Xr[lt("toStringTag")]="z";var qr="[object z]"===String(Xr),Gr=lt("toStringTag"),Vr=a.Object,Ur="Arguments"==M(function(){return arguments}()),Hr=qr?M:function(t){var r,i,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,r){try{return t[r]}catch(t){}}(r=Vr(t),Gr))?i:Ur?M(r):"Object"==(e=M(r))&&C(r.callee)?"Arguments":e},Wr=lt("iterator"),Qr=function(t){if(null!=t)return H(t,Wr)||H(t,"@@iterator")||zr[Hr(t)]},Zr=a.TypeError,Kr=function(t,r,i){var e,n;St(t);try{if(!(e=H(t,"return"))){if("throw"===r)throw i;return i}e=f(e,t)}catch(t){n=!0,e=t}if("throw"===r)throw i;if(n)throw e;return St(e),i},Jr=a.TypeError,ti=function(t,r){this.stopped=t,this.result=r},ri=ti.prototype,ii=function(t,r,i){var e,n,s,a,o,h,u,c,l=!(!i||!i.AS_ENTRIES),v=!(!i||!i.IS_ITERATOR),d=!(!i||!i.INTERRUPTED),p=Dr(r,i&&i.that),g=function(t){return e&&Kr(e,"normal",t),new ti(!0,t)},y=function(t){return l?(St(t),d?p(t[0],t[1],g):p(t[0],t[1])):d?p(t,g):p(t)};if(v)e=t;else{if(!(n=Qr(t)))throw Jr(G(t)+" is not iterable");if(void 0!==(c=n)&&(zr.Array===c||_r[Yr]===c)){for(s=0,a=or(t);a>s;s++)if((o=y(t[s]))&&R(ri,o))return o;return new ti(!1)}e=function(t,r){var i=arguments.length<2?Qr(t):r;if(U(i))return St(f(i,t));throw Zr(G(t)+" is not iterable")}(t,n)}for(h=e.next;!(u=f(h,e)).done;){try{o=y(u.value)}catch(t){Kr(e,"throw",t)}if("object"==typeof o&&o&&R(ri,o))return o}return new ti(!1)},ei=lt("iterator"),ni=!1;try{var si=0,ai={next:function(){return{done:!!si++}},return:function(){ni=!0}};ai[ei]=function(){return this},Array.from(ai,(function(){throw 2}))}catch(t){}var oi=function(){},hi=[],ui=T("Reflect","construct"),ci=/^\s*(?:class|function)\b/,fi=b(ci.exec),li=!ci.exec(oi),vi=function(t){if(!C(t))return!1;try{return ui(oi,hi,t),!0}catch(t){return!1}},di=function(t){if(!C(t))return!1;switch(Hr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return li||!!fi(ci,$t(t))}catch(t){return!0}};di.sham=!0;var pi,gi,yi,mi,bi=!ui||o((function(){var t;return vi(vi.call)||!vi(Object)||!vi((function(){t=!0}))||t}))?di:vi,wi=a.TypeError,xi=lt("species"),Mi=function(t,r){var i,e=St(t).constructor;return void 0===e||null==(i=St(e)[xi])?r:function(t){if(bi(t))return t;throw wi(G(t)+" is not a constructor")}(i)},ki=Function.prototype,Ni=ki.apply,Si=ki.call,Pi="object"==typeof Reflect&&Reflect.apply||(u?Si.bind(Ni):function(){return Si.apply(Ni,arguments)}),Oi=T("document","documentElement"),ji=b([].slice),Ci=a.TypeError,Ai=function(t,r){if(t<r)throw Ci("Not enough arguments");return t},Ei=/(?:ipad|iphone|ipod).*applewebkit/i.test(B),Ti="process"==M(a.process),Ri=a.setImmediate,Bi=a.clearImmediate,$i=a.process,Li=a.Dispatch,Ii=a.Function,Fi=a.MessageChannel,Di=a.String,zi=0,Yi={};try{pi=a.location}catch(t){}var _i=function(t){if(et(Yi,t)){var r=Yi[t];delete Yi[t],r()}},Xi=function(t){return function(){_i(t)}},qi=function(t){_i(t.data)},Gi=function(t){a.postMessage(Di(t),pi.protocol+"//"+pi.host)};Ri&&Bi||(Ri=function(t){Ai(arguments.length,1);var r=C(t)?t:Ii(t),i=ji(arguments,1);return Yi[++zi]=function(){Pi(r,void 0,i)},gi(zi),zi},Bi=function(t){delete Yi[t]},Ti?gi=function(t){$i.nextTick(Xi(t))}:Li&&Li.now?gi=function(t){Li.now(Xi(t))}:Fi&&!Ei?(mi=(yi=new Fi).port2,yi.port1.onmessage=qi,gi=Dr(mi.postMessage,mi)):a.addEventListener&&C(a.postMessage)&&!a.importScripts&&pi&&"file:"!==pi.protocol&&!o(Gi)?(gi=Gi,a.addEventListener("message",qi,!1)):gi="onreadystatechange"in mt("script")?function(t){Oi.appendChild(mt("script")).onreadystatechange=function(){Oi.removeChild(this),_i(t)}}:function(t){setTimeout(Xi(t),0)});var Vi,Ui,Hi,Wi,Qi,Zi,Ki,Ji,te={set:Ri,clear:Bi},re=/ipad|iphone|ipod/i.test(B)&&void 0!==a.Pebble,ie=/web0s(?!.*chrome)/i.test(B),ee=te.set,ne=a.MutationObserver||a.WebKitMutationObserver,se=a.document,ae=a.process,oe=a.Promise,he=(0,xt.f)(a,"queueMicrotask"),ue=he&&he.value;ue||(Vi=function(){var t,r;for(Ti&&(t=ae.domain)&&t.exit();Ui;){r=Ui.fn,Ui=Ui.next;try{r()}catch(t){throw Ui?Wi():Hi=void 0,t}}Hi=void 0,t&&t.enter()},Ei||Ti||ie||!ne||!se?!re&&oe&&oe.resolve?((Ki=oe.resolve(void 0)).constructor=oe,Ji=Dr(Ki.then,Ki),Wi=function(){Ji(Vi)}):Ti?Wi=function(){ae.nextTick(Vi)}:(ee=Dr(ee,a),Wi=function(){ee(Vi)}):(Qi=!0,Zi=se.createTextNode(""),new ne(Vi).observe(Zi,{characterData:!0}),Wi=function(){Zi.data=Qi=!Qi}));var ce=ue||function(t){var r={fn:t,next:void 0};Hi&&(Hi.next=r),Ui||(Ui=r,Wi()),Hi=r},fe=function(t){var r,i;this.promise=new t((function(t,e){if(void 0!==r||void 0!==i)throw TypeError("Bad Promise constructor");r=t,i=e})),this.resolve=U(r),this.reject=U(i)},le={f:function(t){return new fe(t)}},ve=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},de=function(){this.head=null,this.tail=null};de.prototype={add:function(t){var r={item:t,next:null};this.head?this.tail.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var pe,ge,ye,me,be,we=de,xe="object"==typeof window,Me=te.set,ke=lt("species"),Ne="Promise",Se=Ut.getterFor(Ne),Pe=Ut.set,Oe=Ut.getterFor(Ne),je=Cr&&Cr.prototype,Ce=Cr,Ae=je,Ee=a.TypeError,Te=a.document,Re=a.process,Be=le.f,$e=Be,Le=!!(Te&&Te.createEvent&&a.dispatchEvent),Ie=C(a.PromiseRejectionEvent),Fe=!1,De=Pr(Ne,(function(){var t=$t(Ce),r=t!==String(Ce);if(!r&&66===D)return!0;if(D>=51&&/native code/.test(t))return!1;var i=new Ce((function(t){t(1)})),e=function(t){t((function(){}),(function(){}))};return(i.constructor={})[ke]=e,!(Fe=i.then((function(){}))instanceof e)||!r&&xe&&!Ie})),ze=De||!function(){if(!ni)return!1;var t=!1;try{var r={};r[ei]=function(){return{next:function(){return{done:t=!0}}}},Ce.all(r).catch((function(){}))}catch(t){}return t}(),Ye=function(t){var r;return!(!A(t)||!C(r=t.then))&&r},_e=function(t,r){var i,e,n,s=r.value,a=1==r.state,o=a?t.ok:t.fail,h=t.resolve,u=t.reject,c=t.domain;try{o?(a||(2===r.rejection&&Ue(r),r.rejection=1),!0===o?i=s:(c&&c.enter(),i=o(s),c&&(c.exit(),n=!0)),i===t.promise?u(Ee("Promise-chain cycle")):(e=Ye(i))?f(e,i,h,u):h(i)):u(s)}catch(t){c&&!n&&c.exit(),u(t)}},Xe=function(t,r){t.notified||(t.notified=!0,ce((function(){for(var i,e=t.reactions;i=e.get();)_e(i,t);t.notified=!1,r&&!t.rejection&&Ge(t)})))},qe=function(t,r,i){var e,n;Le?((e=Te.createEvent("Event")).promise=r,e.reason=i,e.initEvent(t,!1,!0),a.dispatchEvent(e)):e={promise:r,reason:i},!Ie&&(n=a["on"+t])?n(e):"unhandledrejection"===t&&function(t,r){var i=a.console;i&&i.error&&(1==arguments.length?i.error(t):i.error(t,r))}("Unhandled promise rejection",i)},Ge=function(t){f(Me,a,(function(){var r,i=t.facade,e=t.value;if(Ve(t)&&(r=ve((function(){Ti?Re.emit("unhandledRejection",e,i):qe("unhandledrejection",i,e)})),t.rejection=Ti||Ve(t)?2:1,r.error))throw r.value}))},Ve=function(t){return 1!==t.rejection&&!t.parent},Ue=function(t){f(Me,a,(function(){var r=t.facade;Ti?Re.emit("rejectionHandled",r):qe("rejectionhandled",r,t.value)}))},He=function(t,r,i){return function(e){t(r,e,i)}},We=function(t,r,i){t.done||(t.done=!0,i&&(t=i),t.value=r,t.state=2,Xe(t,!0))},Qe=function(t,r,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===r)throw Ee("Promise can't be resolved itself");var e=Ye(r);e?ce((function(){var i={done:!1};try{f(e,r,He(Qe,i,t),He(We,i,t))}catch(r){We(i,r,t)}})):(t.value=r,t.state=1,Xe(t,!1))}catch(r){We({done:!1},r,t)}}};if(De&&(Ce=function(t){!function(t){if(R(Ae,t))return t;throw Ir("Incorrect invocation")}(this),U(t),f(pe,this);var r=Se(this);try{t(He(Qe,r),He(We,r))}catch(t){We(r,t)}},(pe=function(){Pe(this,{type:Ne,done:!1,notified:!1,parent:!1,reactions:new we,rejection:!1,state:0,value:void 0})}).prototype=function(t,r){for(var i in r)Kt(t,i,r[i],undefined);return t}(Ae=Ce.prototype,{then:function(t,r){var i=Oe(this),e=Be(Mi(this,Ce));return i.parent=!0,e.ok=!C(t)||t,e.fail=C(r)&&r,e.domain=Ti?Re.domain:void 0,0==i.state?i.reactions.add(e):ce((function(){_e(e,i)})),e.promise},catch:function(t){return this.then(void 0,t)}}),ge=function(){var t=new pe,r=Se(t);this.promise=t,this.resolve=He(Qe,r),this.reject=He(We,r)},le.f=Be=function(t){return t===Ce||t===ye?new ge(t):$e(t)},C(Cr)&&je!==Object.prototype)){me=je.then,Fe||(Kt(je,"then",(function(t,r){var i=this;return new Ce((function(t,r){f(me,i,t,r)})).then(t,r)}),{unsafe:!0}),Kt(je,"catch",Ae.catch,{unsafe:!0}));try{delete je.constructor}catch(t){}Tr&&Tr(je,Ae)}jr({global:!0,wrap:!0,forced:De},{Promise:Ce}),$r(Ce,Ne,!1),be=T(Ne),h&&be&&!be[Lr]&&(0,Ct.f)(be,Lr,{configurable:!0,get:function(){return this}}),ye=T(Ne),jr({target:Ne,stat:!0,forced:De},{reject:function(t){var r=Be(this);return f(r.reject,void 0,t),r.promise}}),jr({target:Ne,stat:!0,forced:De},{resolve:function(t){return function(t,r){if(St(t),A(r)&&r.constructor===t)return r;var i=le.f(t);return(0,i.resolve)(r),i.promise}(this,t)}}),jr({target:Ne,stat:!0,forced:ze},{all:function(t){var r=this,i=Be(r),e=i.resolve,n=i.reject,s=ve((function(){var i=U(r.resolve),s=[],a=0,o=1;ii(t,(function(t){var h=a++,u=!1;o++,f(i,r,t).then((function(t){u||(u=!0,s[h]=t,--o||e(s))}),n)})),--o||e(s)}));return s.error&&n(s.value),i.promise},race:function(t){var r=this,i=Be(r),e=i.reject,n=ve((function(){var n=U(r.resolve);ii(t,(function(t){f(n,r,t).then(i.resolve,e)}))}));return n.error&&e(n.value),i.promise}});const Ze=i(r((function(t){function r(t,r,i,e,n,s,a){try{var o=t[s](a),h=o.value}catch(t){return void i(t)}o.done?r(h):Promise.resolve(h).then(e,n)}t.exports=function(t){return function(){var i=this,e=arguments;return new Promise((function(n,s){var a=t.apply(i,e);function o(t){r(a,n,s,o,h,"next",t)}function h(t){r(a,n,s,o,h,"throw",t)}o(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports})));var Ke,Je=a.String,tn=function(t){if("Symbol"===Hr(t))throw TypeError("Cannot convert a Symbol value to a string");return Je(t)},rn=function(){var t=St(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r},en=a.RegExp,nn=o((function(){var t=en("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),sn=nn||o((function(){return!en("a","y").sticky})),an={BROKEN_CARET:nn||o((function(){var t=en("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:sn,UNSUPPORTED_Y:nn},on=Object.keys||function(t){return lr(t,vr)},hn={f:h&&!Mt?Object.defineProperties:function(t,r){St(t);for(var i,e=j(r),n=on(r),s=n.length,a=0;s>a;)Ct.f(t,i=n[a++],e[i]);return t}},un=Dt("IE_PROTO"),cn=function(){},fn=function(t){return"<script>"+t+"<\/script>"},ln=function(t){t.write(fn("")),t.close();var r=t.parentWindow.Object;return t=null,r},vn=function(){try{Ke=new ActiveXObject("htmlfile")}catch(t){}var t,r;vn="undefined"!=typeof document?document.domain&&Ke?ln(Ke):((r=mt("iframe")).style.display="none",Oi.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(fn("document.F=Object")),t.close(),t.F):ln(Ke);for(var i=vr.length;i--;)delete vn.prototype[vr[i]];return vn()};zt[un]=!0;var dn,pn,gn=Object.create||function(t,r){var i;return null!==t?(cn.prototype=St(t),i=new cn,cn.prototype=null,i[un]=t):i=vn(),void 0===r?i:hn.f(i,r)},yn=a.RegExp,mn=o((function(){var t=yn(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),bn=a.RegExp,wn=o((function(){var t=bn("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),xn=Ut.get,Mn=J("native-string-replace",String.prototype.replace),kn=RegExp.prototype.exec,Nn=kn,Sn=b("".charAt),Pn=b("".indexOf),On=b("".replace),jn=b("".slice),Cn=(pn=/b*/g,f(kn,dn=/a/,"a"),f(kn,pn,"a"),0!==dn.lastIndex||0!==pn.lastIndex),An=an.BROKEN_CARET,En=void 0!==/()??/.exec("")[1];(Cn||En||An||mn||wn)&&(Nn=function(t){var r,i,e,n,s,a,o,h=this,u=xn(h),c=tn(t),l=u.raw;if(l)return l.lastIndex=h.lastIndex,r=f(Nn,l,c),h.lastIndex=l.lastIndex,r;var v=u.groups,d=An&&h.sticky,p=f(rn,h),g=h.source,y=0,m=c;if(d&&(p=On(p,"y",""),-1===Pn(p,"g")&&(p+="g"),m=jn(c,h.lastIndex),h.lastIndex>0&&(!h.multiline||h.multiline&&"\n"!==Sn(c,h.lastIndex-1))&&(g="(?: "+g+")",m=" "+m,y++),i=new RegExp("^(?:"+g+")",p)),En&&(i=new RegExp("^"+g+"$(?!\\s)",p)),Cn&&(e=h.lastIndex),n=f(kn,d?i:h,m),d?n?(n.input=jn(n.input,y),n[0]=jn(n[0],y),n.index=h.lastIndex,h.lastIndex+=n[0].length):h.lastIndex=0:Cn&&n&&(h.lastIndex=h.global?n.index+n[0].length:e),En&&n&&n.length>1&&f(Mn,n[0],i,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(n[s]=void 0)})),n&&v)for(n.groups=a=gn(null),s=0;s<v.length;s++)a[(o=v[s])[0]]=n[o[1]];return n});var Tn=Nn;jr({target:"RegExp",proto:!0,forced:/./.exec!==Tn},{exec:Tn});var Rn=lt("species"),Bn=RegExp.prototype,$n=function(t,r,i,e){var n=lt(t),s=!o((function(){var r={};return r[n]=function(){return 7},7!=""[t](r)})),a=s&&!o((function(){var r=!1,i=/a/;return"split"===t&&((i={}).constructor={},i.constructor[Rn]=function(){return i},i.flags="",i[n]=/./[n]),i.exec=function(){return r=!0,null},i[n](""),!r}));if(!s||!a||i){var h=b(/./[n]),u=r(n,""[t],(function(t,r,i,e,n){var a=b(t),o=r.exec;return o===Tn||o===Bn.exec?s&&!n?{done:!0,value:h(r,i,e)}:{done:!0,value:a(i,r,e)}:{done:!1}}));Kt(String.prototype,t,u[0]),Kt(Bn,n,u[1])}e&&At(Bn[n],"sham",!0)},Ln=b("".charAt),In=b("".charCodeAt),Fn=b("".slice),Dn=function(t){return function(r,i){var e,n,s=tn(O(r)),a=rr(i),o=s.length;return a<0||a>=o?t?"":void 0:(e=In(s,a))<55296||e>56319||a+1===o||(n=In(s,a+1))<56320||n>57343?t?Ln(s,a):e:t?Fn(s,a,a+2):n-56320+(e-55296<<10)+65536}},zn=(Dn(!1),Dn(!0)),Yn=function(t,r,i){return r+(i?zn(t,r).length:1)},_n=a.TypeError,Xn=function(t,r){var i=t.exec;if(C(i)){var e=f(i,t,r);return null!==e&&St(e),e}if("RegExp"===M(t))return f(Tn,t,r);throw _n("RegExp#exec called on incompatible receiver")};$n("match",(function(t,r,i){return[function(r){var i=O(this),e=null==r?void 0:H(r,t);return e?f(e,r,i):new RegExp(r)[t](tn(i))},function(t){var e=St(this),n=tn(t),s=i(r,e,n);if(s.done)return s.value;if(!e.global)return Xn(e,n);var a=e.unicode;e.lastIndex=0;for(var o,h=[],u=0;null!==(o=Xn(e,n));){var c=tn(o[0]);h[u]=c,""===c&&(e.lastIndex=Yn(n,ar(e.lastIndex),a)),u++}return 0===u?null:h}]}));var qn=Math.floor,Gn=b("".charAt),Vn=b("".replace),Un=b("".slice),Hn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wn=/\$([$&'`]|\d{1,2})/g,Qn=function(t,r,i,e,n,s){var a=i+t.length,o=e.length,h=Wn;return void 0!==n&&(n=rt(n),h=Hn),Vn(s,h,(function(s,h){var u;switch(Gn(h,0)){case"$":return"$";case"&":return t;case"`":return Un(r,0,i);case"'":return Un(r,a);case"<":u=n[Un(h,1,-1)];break;default:var c=+h;if(0===c)return s;if(c>o){var f=qn(c/10);return 0===f?s:f<=o?void 0===e[f-1]?Gn(h,1):e[f-1]+Gn(h,1):s}u=e[c-1]}return void 0===u?"":u}))},Zn=lt("replace"),Kn=Math.max,Jn=Math.min,ts=b([].concat),rs=b([].push),is=b("".indexOf),es=b("".slice),ns="$0"==="a".replace(/./,"$0"),ss=!!/./[Zn]&&""===/./[Zn]("a","$0");$n("replace",(function(t,r,i){var e=ss?"$":"$0";return[function(t,i){var e=O(this),n=null==t?void 0:H(t,Zn);return n?f(n,t,e,i):f(r,tn(e),t,i)},function(t,n){var s=St(this),a=tn(t);if("string"==typeof n&&-1===is(n,e)&&-1===is(n,"$<")){var o=i(r,s,a,n);if(o.done)return o.value}var h=C(n);h||(n=tn(n));var u=s.global;if(u){var c=s.unicode;s.lastIndex=0}for(var f=[];;){var l=Xn(s,a);if(null===l)break;if(rs(f,l),!u)break;""===tn(l[0])&&(s.lastIndex=Yn(a,ar(s.lastIndex),c))}for(var v,d="",p=0,g=0;g<f.length;g++){for(var y=tn((l=f[g])[0]),m=Kn(Jn(rr(l.index),a.length),0),b=[],w=1;w<l.length;w++)rs(b,void 0===(v=l[w])?v:String(v));var x=l.groups;if(h){var M=ts([y],b,m,a);void 0!==x&&rs(M,x);var k=tn(Pi(n,void 0,M))}else k=Qn(y,a,m,b,x,n);m>=p&&(d+=es(a,p,m)+k,p=m+y.length)}return d+es(a,p)}]}),!!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!ns||ss);var as,os=lt("match"),hs=function(t){var r;return A(t)&&(void 0!==(r=t[os])?!!r:"RegExp"==M(t))},us=a.TypeError,cs=function(t){if(hs(t))throw us("The method doesn't accept regular expressions");return t},fs=lt("match"),ls=function(t){var r=/./;try{"/./"[t](r)}catch(i){try{return r[fs]=!1,"/./"[t](r)}catch(t){}}return!1},vs=xt.f,ds=b("".startsWith),ps=b("".slice),gs=Math.min,ys=ls("startsWith"),ms=!(ys||(as=vs(String.prototype,"startsWith"),!as||as.writable));jr({target:"String",proto:!0,forced:!ms&&!ys},{startsWith:function(t){var r=tn(O(this));cs(t);var i=ar(gs(arguments.length>1?arguments[1]:void 0,r.length)),e=tn(t);return ds?ds(r,e,i):ps(r,i,i+e.length)===e}});var bs=lt("unscopables"),ws=Array.prototype;null==ws[bs]&&Ct.f(ws,bs,{configurable:!0,value:gn(null)});var xs,Ms,ks,Ns=function(t){ws[bs][t]=!0},Ss=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Ps=Dt("IE_PROTO"),Os=a.Object,js=Os.prototype,Cs=Ss?Os.getPrototypeOf:function(t){var r=rt(t);if(et(r,Ps))return r[Ps];var i=r.constructor;return C(i)&&r instanceof i?i.prototype:r instanceof Os?js:null},As=lt("iterator"),Es=!1;[].keys&&("next"in(ks=[].keys())?(Ms=Cs(Cs(ks)))!==Object.prototype&&(xs=Ms):Es=!0),(null==xs||o((function(){var t={};return xs[As].call(t)!==t})))&&(xs={}),C(xs[As])||Kt(xs,As,(function(){return this}));var Ts={IteratorPrototype:xs,BUGGY_SAFARI_ITERATORS:Es},Rs=Ts.IteratorPrototype,Bs=function(){return this},$s=Zt.PROPER,Ls=Zt.CONFIGURABLE,Is=Ts.IteratorPrototype,Fs=Ts.BUGGY_SAFARI_ITERATORS,Ds=lt("iterator"),zs=function(){return this},Ys=Ct.f,_s=Ut.set,Xs=Ut.getterFor("Array Iterator"),qs=function(t,r,i,e,n){!function(t,r,i){var e="Array Iterator";t.prototype=gn(Rs,{next:p(1,i)}),$r(t,e,!1),zr[e]=Bs}(i,0,(function(){var t=Xs(this),r=t.target,i=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==i?{value:e,done:!1}:"values"==i?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}));var s,a,o,h=function(t){if(t===n&&v)return v;if(!Fs&&t in c)return c[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},u=!1,c=t.prototype,l=c[Ds]||c["@@iterator"]||c.values,v=!Fs&&l||h(n),d=c.entries||l;if(d&&(s=Cs(d.call(new t)))!==Object.prototype&&s.next&&(Cs(s)!==Is&&(Tr?Tr(s,Is):C(s[Ds])||Kt(s,Ds,zs)),$r(s,"Array Iterator",!0)),$s&&l&&"values"!==l.name&&(Ls?At(c,"name","values"):(u=!0,v=function(){return f(l,this)})),void(a={values:h("values"),keys:h("keys"),entries:h("entries")}))for(o in a)(Fs||u||!(o in c))&&Kt(c,o,a[o]);else jr({target:r,proto:!0,forced:Fs||u},a);return c[Ds]!==v&&Kt(c,Ds,v,{name:n}),zr.Array=v,a}(Array,"Array",(function(t,r){_s(this,{type:"Array Iterator",target:j(t),index:0,kind:r})}),0,"values"),Gs=zr.Arguments=zr.Array;if(Ns("keys"),Ns("values"),Ns("entries"),h&&"values"!==Gs.name)try{Ys(Gs,"name",{value:"values"})}catch(t){}var Vs={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Us=mt("span").classList,Hs=Us&&Us.constructor&&Us.constructor.prototype,Ws=Hs===Object.prototype?void 0:Hs,Qs=lt("iterator"),Zs=lt("toStringTag"),Ks=qs.values,Js=function(t,r){if(t){if(t[Qs]!==Ks)try{At(t,Qs,Ks)}catch(r){t[Qs]=Ks}if(t[Zs]||At(t,Zs,r),Vs[r])for(var i in qs)if(t[i]!==qs[i])try{At(t,i,qs[i])}catch(r){t[i]=qs[i]}}};for(var ta in Vs)Js(a[ta]&&a[ta].prototype,ta);Js(Ws,"DOMTokenList");const ra=i(r((function(t){t.exports=function(t,r,i){return r in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t},t.exports.__esModule=!0,t.exports.default=t.exports})));var ia=a.TypeError,ea=function(t){return function(r,i,e,n){U(i);var s=rt(r),a=S(s),o=or(s),h=t?o-1:0,u=t?-1:1;if(e<2)for(;;){if(h in a){n=a[h],h+=u;break}if(h+=u,t?h<0:o<=h)throw ia("Reduce of empty array with no initial value")}for(;t?h>=0:o>h;h+=u)h in a&&(n=i(n,a[h],h,s));return n}},na=function(t,r){var i=[][t];return!!i&&o((function(){i.call(null,r||function(){return 1},1)}))},sa=[ea(!1),ea(!0)][0],aa=na("reduce");jr({target:"Array",proto:!0,forced:!aa||!Ti&&D>79&&D<83},{reduce:function(t){var r=arguments.length;return sa(this,t,r,r>1?arguments[1]:void 0)}});var oa=xt.f,ha=b("".endsWith),ua=b("".slice),ca=Math.min,fa=ls("endsWith"),la=!fa&&!!function(){var t=oa(String.prototype,"endsWith");return t&&!t.writable}();jr({target:"String",proto:!0,forced:!la&&!fa},{endsWith:function(t){var r=tn(O(this));cs(t);var i=arguments.length>1?arguments[1]:void 0,e=r.length,n=void 0===i?e:ca(ar(i),e),s=tn(t);return ha?ha(r,s,n):ua(r,n-s.length,n)===s}});var va=a.Array,da=Math.max,pa=function(t,r,i){for(var e,n,s,a=or(t),o=nr(r,a),h=nr(void 0===i?a:i,a),u=va(da(h-o,0)),c=0;o<h;o++,c++)e=u,n=t[o],void 0,(s=pt(c))in e?Ct.f(e,s,p(0,n)):e[s]=n;return u.length=c,u},ga=an.UNSUPPORTED_Y,ya=Math.min,ma=[].push,ba=b(/./.exec),wa=b(ma),xa=b("".slice);$n("split",(function(t,r,i){var e;return e="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,i){var e=tn(O(this)),n=void 0===i?4294967295:i>>>0;if(0===n)return[];if(void 0===t)return[e];if(!hs(t))return f(r,e,t,n);for(var s,a,o,h=[],u=0,c=new RegExp(t.source,(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":"")+"g");(s=f(Tn,c,e))&&!((a=c.lastIndex)>u&&(wa(h,xa(e,u,s.index)),s.length>1&&s.index<e.length&&Pi(ma,h,pa(s,1)),o=s[0].length,u=a,h.length>=n));)c.lastIndex===s.index&&c.lastIndex++;return u===e.length?!o&&ba(c,"")||wa(h,""):wa(h,xa(e,u)),h.length>n?pa(h,0,n):h}:"0".split(void 0,0).length?function(t,i){return void 0===t&&0===i?[]:f(r,this,t,i)}:r,[function(r,i){var n=O(this),s=null==r?void 0:H(r,t);return s?f(s,r,n,i):f(e,tn(n),r,i)},function(t,n){var s=St(this),a=tn(t),o=i(e,s,a,n,e!==r);if(o.done)return o.value;var h=Mi(s,RegExp),u=s.unicode,c=new h(ga?"^(?:"+s.source+")":s,(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(ga?"g":"y")),f=void 0===n?4294967295:n>>>0;if(0===f)return[];if(0===a.length)return null===Xn(c,a)?[a]:[];for(var l=0,v=0,d=[];v<a.length;){c.lastIndex=ga?0:v;var p,g=Xn(c,ga?xa(a,v):a);if(null===g||(p=ya(ar(c.lastIndex+(ga?v:0)),a.length))===l)v=Yn(a,v,u);else{if(wa(d,xa(a,l,v)),d.length===f)return d;for(var y=1;y<=g.length-1;y++)if(wa(d,g[y]),d.length===f)return d;v=l=p}}return wa(d,xa(a,l)),d}]}),!!o((function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var i="ab".split(t);return 2!==i.length||"a"!==i[0]||"b"!==i[1]})),ga);for(var Ma=r((function(r){(function(){var t,i,e,n,s,a;"undefined"!=typeof performance&&null!==performance&&performance.now?r.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(r.exports=function(){return(t()-s)/1e6},i=process.hrtime,n=(t=function(){var t;return 1e9*(t=i())[0]+t[1]})(),a=1e9*process.uptime(),s=n-a):Date.now?(r.exports=function(){return Date.now()-e},e=Date.now()):(r.exports=function(){return(new Date).getTime()-e},e=(new Date).getTime())}).call(t)})),ka="undefined"==typeof window?t:window,Na=["moz","webkit"],Sa="AnimationFrame",Pa=ka["request"+Sa],Oa=ka["cancel"+Sa]||ka["cancelRequest"+Sa],ja=0;!Pa&&ja<Na.length;ja++)Pa=ka[Na[ja]+"Request"+Sa],Oa=ka[Na[ja]+"Cancel"+Sa]||ka[Na[ja]+"CancelRequest"+Sa];if(!Pa||!Oa){var Ca=0,Aa=0,Ea=[];Pa=function(t){if(0===Ea.length){var r=Ma(),i=Math.max(0,16.666666666666668-(r-Ca));Ca=i+r,setTimeout((function(){var t=Ea.slice(0);Ea.length=0;for(var r=0;r<t.length;r++)if(!t[r].cancelled)try{t[r].callback(Ca)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(i))}return Ea.push({handle:++Aa,callback:t,cancelled:!1}),Aa},Oa=function(t){for(var r=0;r<Ea.length;r++)Ea[r].handle===t&&(Ea[r].cancelled=!0)}}var Ta=function(t){return Pa.call(ka,t)};Ta.cancel=function(){Oa.apply(ka,arguments)},Ta.polyfill=function(t){t||(t=ka),t.requestAnimationFrame=Pa,t.cancelAnimationFrame=Oa};var Ra="\t\n\v\f\r                 \u2028\u2029\ufeff",Ba=b("".replace),$a="["+Ra+"]",La=RegExp("^"+$a+$a+"*"),Ia=RegExp($a+$a+"*$"),Fa=function(t){return function(r){var i=tn(O(r));return 1&t&&(i=Ba(i,La,"")),2&t&&(i=Ba(i,Ia,"")),i}},Da={start:Fa(1),end:Fa(2),trim:Fa(3)},za=Zt.PROPER,Ya=Da.trim;jr({target:"String",proto:!0,forced:("trim",o((function(){return!!Ra.trim()||"​…᠎"!=="​…᠎".trim()||za&&"trim"!==Ra.trim.name})))},{trim:function(){return Ya(this)}});var _a=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var r={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=r[t]||t;for(var i=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],e=0;e<i.length;e++){var n=i[e].process,s=i[e].re.exec(t);if(s){var a=n(s);this.r=a[0],this.g=a[1],this.b=a[2],a.length>3&&(this.alpha=a[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),r=this.g.toString(16),i=this.b.toString(16);return 1==t.length&&(t="0"+t),1==r.length&&(r="0"+r),1==i.length&&(i="0"+i),"#"+t+r+i},this.getHelpXML=function(){for(var t=new Array,e=0;e<i.length;e++)for(var n=i[e].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var a in r)t[t.length]=a;var o=document.createElement("ul");for(o.setAttribute("id","rgbcolor-examples"),e=0;e<t.length;e++)try{var h=document.createElement("li"),u=new RGBColor(t[e]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+u.toHex()+"; color:"+u.toHex(),c.appendChild(document.createTextNode("test"));var f=document.createTextNode(" "+t[e]+" -> "+u.toRGB()+" -> "+u.toHex());h.appendChild(c),h.appendChild(f),o.appendChild(h)}catch(t){}return o}},Xa=ur.indexOf,qa=b([].indexOf),Ga=!!qa&&1/qa([1],1,-0)<0,Va=na("indexOf");jr({target:"Array",proto:!0,forced:Ga||!Va},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Ga?qa(this,t,r)||0:Xa(this,t,r)}});var Ua=b("".indexOf);jr({target:"String",proto:!0,forced:!ls("includes")},{includes:function(t){return!!~Ua(tn(O(this)),tn(cs(t)),arguments.length>1?arguments[1]:void 0)}});var Ha=Array.isArray||function(t){return"Array"==M(t)},Wa=b([].reverse),Qa=[1,2];jr({target:"Array",proto:!0,forced:String(Qa)===String(Qa.reverse())},{reverse:function(){return Ha(this)&&(this.length=this.length),Wa(this)}});
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */
16
- var Za=function(t,r){return(Za=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(t,r)};function Ka(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}Za(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}function Ja(t,r){var i=t[0],e=t[1];return[i*Math.cos(r)-e*Math.sin(r),i*Math.sin(r)+e*Math.cos(r)]}function to(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var i=0;i<t.length;i++)if("number"!=typeof t[i])throw new Error("assertNumbers arguments["+i+"] is not a number. "+typeof t[i]+" == typeof "+t[i]);return!0}var ro=Math.PI;function io(t,r,i){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var e=t.rX,n=t.rY,s=t.x,a=t.y;e=Math.abs(t.rX),n=Math.abs(t.rY);var o=Ja([(r-s)/2,(i-a)/2],-t.xRot/180*ro),h=o[0],u=o[1],c=Math.pow(h,2)/Math.pow(e,2)+Math.pow(u,2)/Math.pow(n,2);1<c&&(e*=Math.sqrt(c),n*=Math.sqrt(c)),t.rX=e,t.rY=n;var f=Math.pow(e,2)*Math.pow(u,2)+Math.pow(n,2)*Math.pow(h,2),l=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(e,2)*Math.pow(n,2)-f)/f)),v=e*u/n*l,d=-n*h/e*l,p=Ja([v,d],t.xRot/180*ro);t.cX=p[0]+(r+s)/2,t.cY=p[1]+(i+a)/2,t.phi1=Math.atan2((u-d)/n,(h-v)/e),t.phi2=Math.atan2((-u-d)/n,(-h-v)/e),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*ro),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*ro),t.phi1*=180/ro,t.phi2*=180/ro}function eo(t,r,i){to(t,r,i);var e=t*t+r*r-i*i;if(0>e)return[];if(0===e)return[[t*i/(t*t+r*r),r*i/(t*t+r*r)]];var n=Math.sqrt(e);return[[(t*i+r*n)/(t*t+r*r),(r*i-t*n)/(t*t+r*r)],[(t*i-r*n)/(t*t+r*r),(r*i+t*n)/(t*t+r*r)]]}var no,so=Math.PI/180;function ao(t,r,i){return(1-i)*t+i*r}function oo(t,r,i,e){return t+Math.cos(e/180*ro)*r+Math.sin(e/180*ro)*i}function ho(t,r,i,e){var n=1e-6,s=r-t,a=i-r,o=3*s+3*(e-i)-6*a,h=6*(a-s),u=3*s;return Math.abs(o)<n?[-u/h]:function(t,r,i){void 0===i&&(i=1e-6);var e=t*t/4-r;if(e<-i)return[];if(e<=i)return[-t/2];var n=Math.sqrt(e);return[-t/2-n,-t/2+n]}(h/o,u/o,n)}function uo(t,r,i,e,n){var s=1-n;return t*(s*s*s)+r*(3*s*s*n)+i*(3*s*n*n)+e*(n*n*n)}!function(t){function r(){return n((function(t,r,i){return t.relative&&(void 0!==t.x1&&(t.x1+=r),void 0!==t.y1&&(t.y1+=i),void 0!==t.x2&&(t.x2+=r),void 0!==t.y2&&(t.y2+=i),void 0!==t.x&&(t.x+=r),void 0!==t.y&&(t.y+=i),t.relative=!1),t}))}function i(){var t=NaN,r=NaN,i=NaN,e=NaN;return n((function(n,s,a){return n.type&go.SMOOTH_CURVE_TO&&(n.type=go.CURVE_TO,t=isNaN(t)?s:t,r=isNaN(r)?a:r,n.x1=n.relative?s-t:2*s-t,n.y1=n.relative?a-r:2*a-r),n.type&go.CURVE_TO?(t=n.relative?s+n.x2:n.x2,r=n.relative?a+n.y2:n.y2):(t=NaN,r=NaN),n.type&go.SMOOTH_QUAD_TO&&(n.type=go.QUAD_TO,i=isNaN(i)?s:i,e=isNaN(e)?a:e,n.x1=n.relative?s-i:2*s-i,n.y1=n.relative?a-e:2*a-e),n.type&go.QUAD_TO?(i=n.relative?s+n.x1:n.x1,e=n.relative?a+n.y1:n.y1):(i=NaN,e=NaN),n}))}function e(){var t=NaN,r=NaN;return n((function(i,e,n){if(i.type&go.SMOOTH_QUAD_TO&&(i.type=go.QUAD_TO,t=isNaN(t)?e:t,r=isNaN(r)?n:r,i.x1=i.relative?e-t:2*e-t,i.y1=i.relative?n-r:2*n-r),i.type&go.QUAD_TO){t=i.relative?e+i.x1:i.x1,r=i.relative?n+i.y1:i.y1;var s=i.x1,a=i.y1;i.type=go.CURVE_TO,i.x1=((i.relative?0:e)+2*s)/3,i.y1=((i.relative?0:n)+2*a)/3,i.x2=(i.x+2*s)/3,i.y2=(i.y+2*a)/3}else t=NaN,r=NaN;return i}))}function n(t){var r=0,i=0,e=NaN,n=NaN;return function(s){if(isNaN(e)&&!(s.type&go.MOVE_TO))throw new Error("path must start with moveto");var a=t(s,r,i,e,n);return s.type&go.CLOSE_PATH&&(r=e,i=n),void 0!==s.x&&(r=s.relative?r+s.x:s.x),void 0!==s.y&&(i=s.relative?i+s.y:s.y),s.type&go.MOVE_TO&&(e=r,n=i),a}}function s(t,r,i,e,s,a){return to(t,r,i,e,s,a),n((function(n,o,h,u){var c=n.x1,f=n.x2,l=n.relative&&!isNaN(u),v=void 0!==n.x?n.x:l?0:o,d=void 0!==n.y?n.y:l?0:h;function p(t){return t*t}n.type&go.HORIZ_LINE_TO&&0!==r&&(n.type=go.LINE_TO,n.y=n.relative?0:h),n.type&go.VERT_LINE_TO&&0!==i&&(n.type=go.LINE_TO,n.x=n.relative?0:o),void 0!==n.x&&(n.x=n.x*t+d*i+(l?0:s)),void 0!==n.y&&(n.y=v*r+n.y*e+(l?0:a)),void 0!==n.x1&&(n.x1=n.x1*t+n.y1*i+(l?0:s)),void 0!==n.y1&&(n.y1=c*r+n.y1*e+(l?0:a)),void 0!==n.x2&&(n.x2=n.x2*t+n.y2*i+(l?0:s)),void 0!==n.y2&&(n.y2=f*r+n.y2*e+(l?0:a));var g=t*e-r*i;if(void 0!==n.xRot&&(1!==t||0!==r||0!==i||1!==e))if(0===g)delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag,n.type=go.LINE_TO;else{var y=n.xRot*Math.PI/180,m=Math.sin(y),b=Math.cos(y),w=1/p(n.rX),x=1/p(n.rY),M=p(b)*w+p(m)*x,k=2*m*b*(w-x),N=p(m)*w+p(b)*x,S=M*e*e-k*r*e+N*r*r,P=k*(t*e+r*i)-2*(M*i*e+N*t*r),O=M*i*i-k*t*i+N*t*t,j=(Math.atan2(P,S-O)+Math.PI)%Math.PI/2,C=Math.sin(j),A=Math.cos(j);n.rX=Math.abs(g)/Math.sqrt(S*p(A)+P*C*A+O*p(C)),n.rY=Math.abs(g)/Math.sqrt(S*p(C)-P*C*A+O*p(A)),n.xRot=180*j/Math.PI}return void 0!==n.sweepFlag&&0>g&&(n.sweepFlag=+!n.sweepFlag),n}))}t.ROUND=function(t){function r(r){return Math.round(r*t)/t}return void 0===t&&(t=1e13),to(t),function(t){return void 0!==t.x1&&(t.x1=r(t.x1)),void 0!==t.y1&&(t.y1=r(t.y1)),void 0!==t.x2&&(t.x2=r(t.x2)),void 0!==t.y2&&(t.y2=r(t.y2)),void 0!==t.x&&(t.x=r(t.x)),void 0!==t.y&&(t.y=r(t.y)),void 0!==t.rX&&(t.rX=r(t.rX)),void 0!==t.rY&&(t.rY=r(t.rY)),t}},t.TO_ABS=r,t.TO_REL=function(){return n((function(t,r,i){return t.relative||(void 0!==t.x1&&(t.x1-=r),void 0!==t.y1&&(t.y1-=i),void 0!==t.x2&&(t.x2-=r),void 0!==t.y2&&(t.y2-=i),void 0!==t.x&&(t.x-=r),void 0!==t.y&&(t.y-=i),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,r,i){return void 0===t&&(t=!0),void 0===r&&(r=!0),void 0===i&&(i=!0),n((function(e,n,s,a,o){if(isNaN(a)&&!(e.type&go.MOVE_TO))throw new Error("path must start with moveto");return r&&e.type&go.HORIZ_LINE_TO&&(e.type=go.LINE_TO,e.y=e.relative?0:s),i&&e.type&go.VERT_LINE_TO&&(e.type=go.LINE_TO,e.x=e.relative?0:n),t&&e.type&go.CLOSE_PATH&&(e.type=go.LINE_TO,e.x=e.relative?a-n:a,e.y=e.relative?o-s:o),e.type&go.ARC&&(0===e.rX||0===e.rY)&&(e.type=go.LINE_TO,delete e.rX,delete e.rY,delete e.xRot,delete e.lArcFlag,delete e.sweepFlag),e}))},t.NORMALIZE_ST=i,t.QT_TO_C=e,t.INFO=n,t.SANITIZE=function(t){void 0===t&&(t=0),to(t);var r=NaN,i=NaN,e=NaN,s=NaN;return n((function(n,a,o,h,u){var c=Math.abs,f=!1,l=0,v=0;if(n.type&go.SMOOTH_CURVE_TO&&(l=isNaN(r)?0:a-r,v=isNaN(i)?0:o-i),n.type&(go.CURVE_TO|go.SMOOTH_CURVE_TO)?(r=n.relative?a+n.x2:n.x2,i=n.relative?o+n.y2:n.y2):(r=NaN,i=NaN),n.type&go.SMOOTH_QUAD_TO?(e=isNaN(e)?a:2*a-e,s=isNaN(s)?o:2*o-s):n.type&go.QUAD_TO?(e=n.relative?a+n.x1:n.x1,s=n.relative?o+n.y1:n.y2):(e=NaN,s=NaN),n.type&go.LINE_COMMANDS||n.type&go.ARC&&(0===n.rX||0===n.rY||!n.lArcFlag)||n.type&go.CURVE_TO||n.type&go.SMOOTH_CURVE_TO||n.type&go.QUAD_TO||n.type&go.SMOOTH_QUAD_TO){var d=void 0===n.x?0:n.relative?n.x:n.x-a,p=void 0===n.y?0:n.relative?n.y:n.y-o;l=isNaN(e)?void 0===n.x1?l:n.relative?n.x:n.x1-a:e-a,v=isNaN(s)?void 0===n.y1?v:n.relative?n.y:n.y1-o:s-o;var g=void 0===n.x2?0:n.relative?n.x:n.x2-a,y=void 0===n.y2?0:n.relative?n.y:n.y2-o;c(d)<=t&&c(p)<=t&&c(l)<=t&&c(v)<=t&&c(g)<=t&&c(y)<=t&&(f=!0)}return n.type&go.CLOSE_PATH&&c(a-h)<=t&&c(o-u)<=t&&(f=!0),f?[]:n}))},t.MATRIX=s,t.ROTATE=function(t,r,i){void 0===r&&(r=0),void 0===i&&(i=0),to(t,r,i);var e=Math.sin(t),n=Math.cos(t);return s(n,e,-e,n,r-r*n+i*e,i-r*e-i*n)},t.TRANSLATE=function(t,r){return void 0===r&&(r=0),to(t,r),s(1,0,0,1,t,r)},t.SCALE=function(t,r){return void 0===r&&(r=t),to(t,r),s(t,0,0,r,0,0)},t.SKEW_X=function(t){return to(t),s(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return to(t),s(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),to(t),s(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),to(t),s(1,0,0,-1,0,t)},t.A_TO_C=function(){return n((function(t,r,i){return go.ARC===t.type?function(t,r,i){var e,n,s,a;t.cX||io(t,r,i);for(var o=Math.min(t.phi1,t.phi2),h=Math.max(t.phi1,t.phi2)-o,u=Math.ceil(h/90),c=new Array(u),f=r,l=i,v=0;v<u;v++){var d=ao(t.phi1,t.phi2,v/u),p=ao(t.phi1,t.phi2,(v+1)/u),g=4/3*Math.tan((p-d)*so/4),y=[Math.cos(d*so)-g*Math.sin(d*so),Math.sin(d*so)+g*Math.cos(d*so)],m=y[0],b=y[1],w=[Math.cos(p*so),Math.sin(p*so)],x=w[0],M=w[1],k=[x+g*Math.sin(p*so),M-g*Math.cos(p*so)],N=k[0],S=k[1];c[v]={relative:t.relative,type:go.CURVE_TO};var P=function(r,i){var e=Ja([r*t.rX,i*t.rY],t.xRot);return[t.cX+e[0],t.cY+e[1]]};e=P(m,b),c[v].x1=e[0],c[v].y1=e[1],n=P(N,S),c[v].x2=n[0],c[v].y2=n[1],s=P(x,M),c[v].x=s[0],c[v].y=s[1],t.relative&&(c[v].x1-=f,c[v].y1-=l,c[v].x2-=f,c[v].y2-=l,c[v].x-=f,c[v].y-=l),f=(a=[c[v].x,c[v].y])[0],l=a[1]}return c}(t,t.relative?0:r,t.relative?0:i):t}))},t.ANNOTATE_ARCS=function(){return n((function(t,r,i){return t.relative&&(r=0,i=0),go.ARC===t.type&&io(t,r,i),t}))},t.CLONE=function(){return function(t){var r={};for(var i in t)r[i]=t[i];return r}},t.CALCULATE_BOUNDS=function(){var t=r(),s=e(),a=i(),o=n((function(r,i,e){var n=a(s(t(function(t){var r={};for(var i in t)r[i]=t[i];return r}(r))));function h(t){t>o.maxX&&(o.maxX=t),t<o.minX&&(o.minX=t)}function u(t){t>o.maxY&&(o.maxY=t),t<o.minY&&(o.minY=t)}if(n.type&go.DRAWING_COMMANDS&&(h(i),u(e)),n.type&go.HORIZ_LINE_TO&&h(n.x),n.type&go.VERT_LINE_TO&&u(n.y),n.type&go.LINE_TO&&(h(n.x),u(n.y)),n.type&go.CURVE_TO){h(n.x),u(n.y);for(var c=0,f=ho(i,n.x1,n.x2,n.x);c<f.length;c++)0<(O=f[c])&&1>O&&h(uo(i,n.x1,n.x2,n.x,O));for(var l=0,v=ho(e,n.y1,n.y2,n.y);l<v.length;l++)0<(O=v[l])&&1>O&&u(uo(e,n.y1,n.y2,n.y,O))}if(n.type&go.ARC){h(n.x),u(n.y),io(n,i,e);for(var d=n.xRot/180*Math.PI,p=Math.cos(d)*n.rX,g=Math.sin(d)*n.rX,y=-Math.sin(d)*n.rY,m=Math.cos(d)*n.rY,b=n.phi1<n.phi2?[n.phi1,n.phi2]:-180>n.phi2?[n.phi2+360,n.phi1+360]:[n.phi2,n.phi1],w=b[0],x=b[1],M=function(t){var r=180*Math.atan2(t[1],t[0])/Math.PI;return r<w?r+360:r},k=0,N=eo(y,-p,0).map(M);k<N.length;k++)(O=N[k])>w&&O<x&&h(oo(n.cX,p,y,O));for(var S=0,P=eo(m,-g,0).map(M);S<P.length;S++){var O;(O=P[S])>w&&O<x&&u(oo(n.cY,g,m,O))}}return r}));return o.minX=1/0,o.maxX=-1/0,o.minY=1/0,o.maxY=-1/0,o}}(no||(no={}));var co,fo=function(){function t(){}return t.prototype.round=function(t){return this.transform(no.ROUND(t))},t.prototype.toAbs=function(){return this.transform(no.TO_ABS())},t.prototype.toRel=function(){return this.transform(no.TO_REL())},t.prototype.normalizeHVZ=function(t,r,i){return this.transform(no.NORMALIZE_HVZ(t,r,i))},t.prototype.normalizeST=function(){return this.transform(no.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(no.QT_TO_C())},t.prototype.aToC=function(){return this.transform(no.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(no.SANITIZE(t))},t.prototype.translate=function(t,r){return this.transform(no.TRANSLATE(t,r))},t.prototype.scale=function(t,r){return this.transform(no.SCALE(t,r))},t.prototype.rotate=function(t,r,i){return this.transform(no.ROTATE(t,r,i))},t.prototype.matrix=function(t,r,i,e,n,s){return this.transform(no.MATRIX(t,r,i,e,n,s))},t.prototype.skewX=function(t){return this.transform(no.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(no.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(no.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(no.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(no.ANNOTATE_ARCS())},t}(),lo=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},vo=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},po=function(t){function r(){var r=t.call(this)||this;return r.curNumber="",r.curCommandType=-1,r.curCommandRelative=!1,r.canParseCommandOrComma=!0,r.curNumberHasExp=!1,r.curNumberHasExpDigits=!1,r.curNumberHasDecimal=!1,r.curArgs=[],r}return Ka(r,t),r.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},r.prototype.parse=function(t,r){var i=this;void 0===r&&(r=[]);for(var e=function(t){r.push(t),i.curArgs.length=0,i.canParseCommandOrComma=!0},n=0;n<t.length;n++){var s=t[n],a=!(this.curCommandType!==go.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),o=vo(s)&&("0"===this.curNumber&&"0"===s||a);if(!vo(s)||o)if("e"!==s&&"E"!==s)if("-"!==s&&"+"!==s||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==s||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===go.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+n+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+n+'"');this.curArgs.push(h),this.curArgs.length===yo[this.curCommandType]&&(go.HORIZ_LINE_TO===this.curCommandType?e({type:go.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):go.VERT_LINE_TO===this.curCommandType?e({type:go.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===go.MOVE_TO||this.curCommandType===go.LINE_TO||this.curCommandType===go.SMOOTH_QUAD_TO?(e({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),go.MOVE_TO===this.curCommandType&&(this.curCommandType=go.LINE_TO)):this.curCommandType===go.CURVE_TO?e({type:go.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===go.SMOOTH_CURVE_TO?e({type:go.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===go.QUAD_TO?e({type:go.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===go.ARC&&e({type:go.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!lo(s))if(","===s&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==s&&"-"!==s&&"."!==s)if(o)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==s&&"Z"!==s)if("h"===s||"H"===s)this.curCommandType=go.HORIZ_LINE_TO,this.curCommandRelative="h"===s;else if("v"===s||"V"===s)this.curCommandType=go.VERT_LINE_TO,this.curCommandRelative="v"===s;else if("m"===s||"M"===s)this.curCommandType=go.MOVE_TO,this.curCommandRelative="m"===s;else if("l"===s||"L"===s)this.curCommandType=go.LINE_TO,this.curCommandRelative="l"===s;else if("c"===s||"C"===s)this.curCommandType=go.CURVE_TO,this.curCommandRelative="c"===s;else if("s"===s||"S"===s)this.curCommandType=go.SMOOTH_CURVE_TO,this.curCommandRelative="s"===s;else if("q"===s||"Q"===s)this.curCommandType=go.QUAD_TO,this.curCommandRelative="q"===s;else if("t"===s||"T"===s)this.curCommandType=go.SMOOTH_QUAD_TO,this.curCommandRelative="t"===s;else{if("a"!==s&&"A"!==s)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+".");this.curCommandType=go.ARC,this.curCommandRelative="a"===s}else r.push({type:go.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal="."===s}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},r.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,i){void 0===i&&(i=[]);for(var e=0,n=Object.getPrototypeOf(this).parse.call(this,r);e<n.length;e++){var s=t(n[e]);Array.isArray(s)?i.push.apply(i,s):i.push(s)}return i}}})},r}(fo),go=function(t){function r(i){var e=t.call(this)||this;return e.commands="string"==typeof i?r.parse(i):i,e}return Ka(r,t),r.prototype.encode=function(){return r.encode(this.commands)},r.prototype.getBounds=function(){var t=no.CALCULATE_BOUNDS();return this.transform(t),t},r.prototype.transform=function(t){for(var r=[],i=0,e=this.commands;i<e.length;i++){var n=t(e[i]);Array.isArray(n)?r.push.apply(r,n):r.push(n)}return this.commands=r,this},r.encode=function(t){return function(t){var r="";Array.isArray(t)||(t=[t]);for(var i=0;i<t.length;i++){var e=t[i];if(e.type===go.CLOSE_PATH)r+="z";else if(e.type===go.HORIZ_LINE_TO)r+=(e.relative?"h":"H")+e.x;else if(e.type===go.VERT_LINE_TO)r+=(e.relative?"v":"V")+e.y;else if(e.type===go.MOVE_TO)r+=(e.relative?"m":"M")+e.x+" "+e.y;else if(e.type===go.LINE_TO)r+=(e.relative?"l":"L")+e.x+" "+e.y;else if(e.type===go.CURVE_TO)r+=(e.relative?"c":"C")+e.x1+" "+e.y1+" "+e.x2+" "+e.y2+" "+e.x+" "+e.y;else if(e.type===go.SMOOTH_CURVE_TO)r+=(e.relative?"s":"S")+e.x2+" "+e.y2+" "+e.x+" "+e.y;else if(e.type===go.QUAD_TO)r+=(e.relative?"q":"Q")+e.x1+" "+e.y1+" "+e.x+" "+e.y;else if(e.type===go.SMOOTH_QUAD_TO)r+=(e.relative?"t":"T")+e.x+" "+e.y;else{if(e.type!==go.ARC)throw new Error('Unexpected command type "'+e.type+'" at index '+i+".");r+=(e.relative?"a":"A")+e.rX+" "+e.rY+" "+e.xRot+" "+ +e.lArcFlag+" "+ +e.sweepFlag+" "+e.x+" "+e.y}}return r}(t)},r.parse=function(t){var r=new po,i=[];return r.parse(t,i),r.finish(i),i},r.CLOSE_PATH=1,r.MOVE_TO=2,r.HORIZ_LINE_TO=4,r.VERT_LINE_TO=8,r.LINE_TO=16,r.CURVE_TO=32,r.SMOOTH_CURVE_TO=64,r.QUAD_TO=128,r.SMOOTH_QUAD_TO=256,r.ARC=512,r.LINE_COMMANDS=r.LINE_TO|r.HORIZ_LINE_TO|r.VERT_LINE_TO,r.DRAWING_COMMANDS=r.HORIZ_LINE_TO|r.VERT_LINE_TO|r.LINE_TO|r.CURVE_TO|r.SMOOTH_CURVE_TO|r.QUAD_TO|r.SMOOTH_QUAD_TO|r.ARC,r}(fo),yo=((co={})[go.MOVE_TO]=2,co[go.LINE_TO]=2,co[go.HORIZ_LINE_TO]=1,co[go.VERT_LINE_TO]=1,co[go.CLOSE_PATH]=0,co[go.QUAD_TO]=4,co[go.SMOOTH_QUAD_TO]=2,co[go.CURVE_TO]=6,co[go.SMOOTH_CURVE_TO]=4,co[go.ARC]=7,co),mo=Zt.PROPER,bo=RegExp.prototype,wo=bo.toString,xo=b(rn);function Mo(t){return(Mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}(o((function(){return"/a/b"!=wo.call({source:"a",flags:"b"})}))||mo&&"toString"!=wo.name)&&Kt(RegExp.prototype,"toString",(function(){var t=St(this),r=tn(t.source),i=t.flags;return"/"+r+"/"+tn(void 0===i&&R(bo,t)&&!("flags"in bo)?xo(t):i)}),{unsafe:!0});var ko=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],No=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function So(t,r,i,e,n,s){if(!(isNaN(s)||s<1)){s|=0;var a=function(t,r,i,e,n){if("string"==typeof t&&(t=document.getElementById(t)),!t||"object"!==Mo(t)||!("getContext"in t))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var s=t.getContext("2d");try{return s.getImageData(r,i,e,n)}catch(t){throw new Error("unable to access image data: "+t)}}(t,r,i,e,n);a=function(t,r,i,e,n,s){for(var a,o=t.data,h=2*s+1,u=e-1,c=n-1,f=s+1,l=f*(f+1)/2,v=new Po,d=v,p=1;p<h;p++)d=d.next=new Po,p===f&&(a=d);d.next=v;for(var g=null,y=null,m=0,b=0,w=ko[s],x=No[s],M=0;M<n;M++){d=v;for(var k=o[b],N=o[b+1],S=o[b+2],P=o[b+3],O=0;O<f;O++)d.r=k,d.g=N,d.b=S,d.a=P,d=d.next;for(var j=0,C=0,A=0,E=0,T=f*k,R=f*N,B=f*S,$=f*P,L=l*k,I=l*N,F=l*S,D=l*P,z=1;z<f;z++){var Y=b+((u<z?u:z)<<2),_=o[Y],X=o[Y+1],q=o[Y+2],G=o[Y+3],V=f-z;L+=(d.r=_)*V,I+=(d.g=X)*V,F+=(d.b=q)*V,D+=(d.a=G)*V,j+=_,C+=X,A+=q,E+=G,d=d.next}g=v,y=a;for(var U=0;U<e;U++){var H=D*w>>x;if(o[b+3]=H,0!==H){var W=255/H;o[b]=(L*w>>x)*W,o[b+1]=(I*w>>x)*W,o[b+2]=(F*w>>x)*W}else o[b]=o[b+1]=o[b+2]=0;L-=T,I-=R,F-=B,D-=$,T-=g.r,R-=g.g,B-=g.b,$-=g.a;var Q=U+s+1;L+=j+=g.r=o[Q=m+(Q<u?Q:u)<<2],I+=C+=g.g=o[Q+1],F+=A+=g.b=o[Q+2],D+=E+=g.a=o[Q+3],g=g.next;var Z=y.r,K=y.g,J=y.b,tt=y.a;T+=Z,R+=K,B+=J,$+=tt,j-=Z,C-=K,A-=J,E-=tt,y=y.next,b+=4}m+=e}for(var rt=0;rt<e;rt++){var it=o[b=rt<<2],et=o[b+1],nt=o[b+2],st=o[b+3],at=f*it,ot=f*et,ht=f*nt,ut=f*st,ct=l*it,ft=l*et,lt=l*nt,vt=l*st;d=v;for(var dt=0;dt<f;dt++)d.r=it,d.g=et,d.b=nt,d.a=st,d=d.next;for(var pt=e,gt=0,yt=0,mt=0,bt=0,wt=1;wt<=s;wt++){var xt=f-wt;ct+=(d.r=it=o[b=pt+rt<<2])*xt,ft+=(d.g=et=o[b+1])*xt,lt+=(d.b=nt=o[b+2])*xt,vt+=(d.a=st=o[b+3])*xt,bt+=it,gt+=et,yt+=nt,mt+=st,d=d.next,wt<c&&(pt+=e)}b=rt,g=v,y=a;for(var Mt=0;Mt<n;Mt++){var kt=b<<2;o[kt+3]=st=vt*w>>x,st>0?(o[kt]=(ct*w>>x)*(st=255/st),o[kt+1]=(ft*w>>x)*st,o[kt+2]=(lt*w>>x)*st):o[kt]=o[kt+1]=o[kt+2]=0,ct-=at,ft-=ot,lt-=ht,vt-=ut,at-=g.r,ot-=g.g,ht-=g.b,ut-=g.a,kt=rt+((kt=Mt+f)<c?kt:c)*e<<2,ct+=bt+=g.r=o[kt],ft+=gt+=g.g=o[kt+1],lt+=yt+=g.b=o[kt+2],vt+=mt+=g.a=o[kt+3],g=g.next,at+=it=y.r,ot+=et=y.g,ht+=nt=y.b,ut+=st=y.a,bt-=it,gt-=et,yt-=nt,mt-=st,y=y.next,b+=e}}return t}(a,0,0,e,n,s),t.getContext("2d").putImageData(a,r,i)}}var Po=function t(){!function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,t),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null},Oo=Object.freeze({__proto__:null,offscreen:function(){var{DOMParser:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:t,createCanvas:(t,r)=>new OffscreenCanvas(t,r),createImage:t=>Ze((function*(){var r=yield fetch(t),i=yield r.blob();return yield createImageBitmap(i)}))()};return"undefined"==typeof DOMParser&&void 0!==t||Reflect.deleteProperty(r,"DOMParser"),r},node:function(t){var{DOMParser:r,canvas:i,fetch:e}=t;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:r,fetch:e,createCanvas:i.createCanvas,createImage:i.loadImage}}});function jo(t){return t.replace(/(?!\u3000)\s+/gm," ")}function Co(t){return t.replace(/^[\n \t]+/,"")}function Ao(t){return t.replace(/[\n \t]+$/,"")}function Eo(t){return((t||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[]).map(parseFloat)}var To=/^[A-Z-]+$/;function Ro(t){return To.test(t)?t.toLowerCase():t}function Bo(t){var r=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(t)||[];return r[2]||r[3]||r[4]}function $o(t){if(!t.startsWith("rgb"))return t;var r=3;return t.replace(/\d+(\.\d+)?/g,((t,i)=>r--&&i?String(Math.round(parseFloat(t))):t))}var Lo=/(\[[^\]]+\])/g,Io=/(#[^\s+>~.[:]+)/g,Fo=/(\.[^\s+>~.[:]+)/g,Do=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,zo=/(:[\w-]+\([^)]*\))/gi,Yo=/(:[^\s+>~.[:]+)/g,_o=/([^\s+>~.[:]+)/g;function Xo(t,r){var i=r.exec(t);return i?[t.replace(r," "),i.length]:[t,0]}function qo(t){var r=[0,0,0],i=t.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),e=0;return[i,e]=Xo(i,Lo),r[1]+=e,[i,e]=Xo(i,Io),r[0]+=e,[i,e]=Xo(i,Fo),r[1]+=e,[i,e]=Xo(i,Do),r[2]+=e,[i,e]=Xo(i,zo),r[1]+=e,[i,e]=Xo(i,Yo),r[1]+=e,i=i.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[i,e]=Xo(i,_o),r[2]+=e,r.join("")}var Go=1e-8;function Vo(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))}function Uo(t,r){return(t[0]*r[0]+t[1]*r[1])/(Vo(t)*Vo(r))}function Ho(t,r){return(t[0]*r[1]<t[1]*r[0]?-1:1)*Math.acos(Uo(t,r))}function Wo(t){return t*t*t}function Qo(t){return 3*t*t*(1-t)}function Zo(t){return 3*t*(1-t)*(1-t)}function Ko(t){return(1-t)*(1-t)*(1-t)}function Jo(t){return t*t}function th(t){return 2*t*(1-t)}function rh(t){return(1-t)*(1-t)}class ih{constructor(t,r,i){this.document=t,this.name=r,this.value=i,this.isNormalizedColor=!1}static empty(t){return new ih(t,"EMPTY","")}split(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",{document:r,name:i}=this;return jo(this.getString()).trim().split(t).map((t=>new ih(r,i,t)))}hasValue(t){var{value:r}=this;return null!==r&&""!==r&&(t||0!==r)&&void 0!==r}isString(t){var{value:r}=this,i="string"==typeof r;return i&&t?t.test(r):i}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var t=this.getString();switch(!0){case t.endsWith("px"):case/^[0-9]+$/.test(t):return!0;default:return!1}}setValue(t){return this.value=t,this}getValue(t){return void 0===t||this.hasValue()?this.value:t}getNumber(t){if(!this.hasValue())return void 0===t?0:parseFloat(t);var{value:r}=this,i=parseFloat(r);return this.isString(/%$/)&&(i/=100),i}getString(t){return void 0===t||this.hasValue()?void 0===this.value?"":String(this.value):String(t)}getColor(t){var r=this.getString(t);return this.isNormalizedColor||(this.isNormalizedColor=!0,r=$o(r),this.value=r),r}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var[i,e]="boolean"==typeof t?[void 0,t]:[t],{viewPort:n}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(n.computeSize("x"),n.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(n.computeSize("x"),n.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*n.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*n.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&e:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*n.computeSize(i);default:var s=this.getNumber();return r&&s<1?s*n.computeSize(i):s}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var t=this.getString(),r=/#([^)'"]+)/.exec(t);return r&&(r=r[1]),r||(r=t),this.document.definitions[r]}getFillStyleDefinition(t,r){var i=this.getDefinition();if(!i)return null;if("function"==typeof i.createGradient)return i.createGradient(this.document.ctx,t,r);if("function"==typeof i.createPattern){if(i.getHrefAttribute().hasValue()){var e=i.getAttribute("patternTransform");i=i.getHrefAttribute().getDefinition(),e.hasValue()&&i.getAttribute("patternTransform",!0).setValue(e.value)}return i.createPattern(this.document.ctx,t,r)}return null}getTextBaseline(){return this.hasValue()?ih.textBaselineMapping[this.getString()]:null}addOpacity(t){for(var r=this.getColor(),i=r.length,e=0,n=0;n<i&&(","===r[n]&&e++,3!==e);n++);if(t.hasValue()&&this.isString()&&3!==e){var s=new _a(r);s.ok&&(s.alpha=t.getNumber(),r=s.toRGBA())}return new ih(this.document,this.name,r)}}ih.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class eh{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(t,r){this.viewPorts.push({width:t,height:r})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:t}=this;return t[t.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(t){return"number"==typeof t?t:"x"===t?this.width:"y"===t?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class nh{constructor(t,r){this.x=t,this.y=r}static parse(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,[i=r,e=r]=Eo(t);return new nh(i,e)}static parseScale(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,[i=r,e=i]=Eo(t);return new nh(i,e)}static parsePath(t){for(var r=Eo(t),i=r.length,e=[],n=0;n<i;n+=2)e.push(new nh(r[n],r[n+1]));return e}angleTo(t){return Math.atan2(t.y-this.y,t.x-this.x)}applyTransform(t){var{x:r,y:i}=this,e=r*t[1]+i*t[3]+t[5];this.x=r*t[0]+i*t[2]+t[4],this.y=e}}class sh{constructor(t){this.screen=t,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:t,onClick:r,onMouseMove:i}=this,e=t.ctx.canvas;e.onclick=r,e.onmousemove=i,this.working=!0}}stop(){if(this.working){var t=this.screen.ctx.canvas;this.working=!1,t.onclick=null,t.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:t,events:r,eventElements:i}=this,{style:e}=t.ctx.canvas;e&&(e.cursor=""),r.forEach(((t,r)=>{for(var{run:e}=t,n=i[r];n;)e(n),n=n.parent})),this.events=[],this.eventElements=[]}}checkPath(t,r){if(this.working&&r){var{events:i,eventElements:e}=this;i.forEach(((i,n)=>{var{x:s,y:a}=i;!e[n]&&r.isPointInPath&&r.isPointInPath(s,a)&&(e[n]=t)}))}}checkBoundingBox(t,r){if(this.working&&r){var{events:i,eventElements:e}=this;i.forEach(((i,n)=>{var{x:s,y:a}=i;!e[n]&&r.isPointInBox(s,a)&&(e[n]=t)}))}}mapXY(t,r){for(var{window:i,ctx:e}=this.screen,n=new nh(t,r),s=e.canvas;s;)n.x-=s.offsetLeft,n.y-=s.offsetTop,s=s.offsetParent;return i.scrollX&&(n.x+=i.scrollX),i.scrollY&&(n.y+=i.scrollY),n}onClick(t){var{x:r,y:i}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onclick",x:r,y:i,run(t){t.onClick&&t.onClick()}})}onMouseMove(t){var{x:r,y:i}=this.mapXY(t.clientX,t.clientY);this.events.push({type:"onmousemove",x:r,y:i,run(t){t.onMouseMove&&t.onMouseMove()}})}}var ah="undefined"!=typeof window?window:null,oh="undefined"!=typeof fetch?fetch.bind(void 0):null;class hh{constructor(t){var{fetch:r=oh,window:i=ah}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ctx=t,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new eh,this.mouse=new sh(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=i,this.fetch=r}wait(t){this.waits.push(t)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var t=this.waits.every((t=>t()));return t&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=t,t}setDefaults(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4}setViewBox(t){var{document:r,ctx:i,aspectRatio:e,width:n,desiredWidth:s,height:a,desiredHeight:o,minX:h=0,minY:u=0,refX:c,refY:f,clip:l=!1,clipX:v=0,clipY:d=0}=t,p=jo(e).replace(/^defer\s/,""),[g,y]=p.split(" "),m=g||"xMidYMid",b=y||"meet",w=n/s,x=a/o,M=Math.min(w,x),k=Math.max(w,x),N=s,S=o;"meet"===b&&(N*=M,S*=M),"slice"===b&&(N*=k,S*=k);var P=new ih(r,"refX",c),O=new ih(r,"refY",f),j=P.hasValue()&&O.hasValue();if(j&&i.translate(-M*P.getPixels("x"),-M*O.getPixels("y")),l){var C=M*v,A=M*d;i.beginPath(),i.moveTo(C,A),i.lineTo(n,A),i.lineTo(n,a),i.lineTo(C,a),i.closePath(),i.clip()}if(!j){var E="meet"===b&&M===x,T="slice"===b&&k===x,R="meet"===b&&M===w,B="slice"===b&&k===w;m.startsWith("xMid")&&(E||T)&&i.translate(n/2-N/2,0),m.endsWith("YMid")&&(R||B)&&i.translate(0,a/2-S/2),m.startsWith("xMax")&&(E||T)&&i.translate(n-N,0),m.endsWith("YMax")&&(R||B)&&i.translate(0,a-S)}switch(!0){case"none"===m:i.scale(w,x);break;case"meet"===b:i.scale(M,M);break;case"slice"===b:i.scale(k,k)}i.translate(-h,-u)}start(t){var{enableRedraw:r=!1,ignoreMouse:i=!1,ignoreAnimation:e=!1,ignoreDimensions:n=!1,ignoreClear:s=!1,forceRedraw:a,scaleWidth:o,scaleHeight:h,offsetX:u,offsetY:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{FRAMERATE:f,mouse:l}=this,v=1e3/f;if(this.frameDuration=v,this.readyPromise=new Promise((t=>{this.resolveReady=t})),this.isReady()&&this.render(t,n,s,o,h,u,c),r){var d=Date.now(),p=d,g=0,y=()=>{d=Date.now(),(g=d-p)>=v&&(p=d-g%v,this.shouldUpdate(e,a)&&(this.render(t,n,s,o,h,u,c),l.runEvents())),this.intervalId=Ta(y)};i||l.start(),this.intervalId=Ta(y)}}stop(){this.intervalId&&(Ta.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(t,r){if(!t){var{frameDuration:i}=this;if(this.animations.reduce(((t,r)=>r.update(i)||t),!1))return!0}return!("function"!=typeof r||!r())||!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents()}render(t,r,i,e,n,s,a){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:h,viewPort:u,ctx:c,isFirstRender:f}=this,l=c.canvas;u.clear(),l.width&&l.height?u.setCurrent(l.width,l.height):u.setCurrent(o,h);var v=t.getStyle("width"),d=t.getStyle("height");!r&&(f||"number"!=typeof e&&"number"!=typeof n)&&(v.hasValue()&&(l.width=v.getPixels("x"),l.style&&(l.style.width="".concat(l.width,"px"))),d.hasValue()&&(l.height=d.getPixels("y"),l.style&&(l.style.height="".concat(l.height,"px"))));var p=l.clientWidth||l.width,g=l.clientHeight||l.height;if(r&&v.hasValue()&&d.hasValue()&&(p=v.getPixels("x"),g=d.getPixels("y")),u.setCurrent(p,g),"number"==typeof s&&t.getAttribute("x",!0).setValue(s),"number"==typeof a&&t.getAttribute("y",!0).setValue(a),"number"==typeof e||"number"==typeof n){var y=Eo(t.getAttribute("viewBox").getString()),m=0,b=0;if("number"==typeof e){var w=t.getStyle("width");w.hasValue()?m=w.getPixels("x")/e:isNaN(y[2])||(m=y[2]/e)}if("number"==typeof n){var x=t.getStyle("height");x.hasValue()?b=x.getPixels("y")/n:isNaN(y[3])||(b=y[3]/n)}m||(m=b),b||(b=m),t.getAttribute("width",!0).setValue(e),t.getAttribute("height",!0).setValue(n);var M=t.getStyle("transform",!0,!0);M.setValue("".concat(M.getString()," scale(").concat(1/m,", ").concat(1/b,")"))}i||c.clearRect(0,0,p,g),t.render(c),f&&(this.isFirstRender=!1)}}hh.defaultWindow=ah,hh.defaultFetch=oh;var{defaultFetch:uh}=hh,ch="undefined"!=typeof DOMParser?DOMParser:null;class fh{constructor(){var{fetch:t=uh,DOMParser:r=ch}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.fetch=t,this.DOMParser=r}parse(t){var r=this;return Ze((function*(){return t.startsWith("<")?r.parseFromString(t):r.load(t)}))()}parseFromString(t){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(t,"image/svg+xml"))}catch(i){return this.checkDocument(r.parseFromString(t,"text/xml"))}}checkDocument(t){var r=t.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return t}load(t){var r=this;return Ze((function*(){var i=yield r.fetch(t),e=yield i.text();return r.parseFromString(e)}))()}}class lh{constructor(t,r){this.type="translate",this.point=null,this.point=nh.parse(r)}apply(t){var{x:r,y:i}=this.point;t.translate(r||0,i||0)}unapply(t){var{x:r,y:i}=this.point;t.translate(-1*r||0,-1*i||0)}applyToPoint(t){var{x:r,y:i}=this.point;t.applyTransform([1,0,0,1,r||0,i||0])}}class vh{constructor(t,r,i){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Eo(r);this.angle=new ih(t,"angle",e[0]),this.originX=i[0],this.originY=i[1],this.cx=e[1]||0,this.cy=e[2]||0}apply(t){var{cx:r,cy:i,originX:e,originY:n,angle:s}=this,a=r+e.getPixels("x"),o=i+n.getPixels("y");t.translate(a,o),t.rotate(s.getRadians()),t.translate(-a,-o)}unapply(t){var{cx:r,cy:i,originX:e,originY:n,angle:s}=this,a=r+e.getPixels("x"),o=i+n.getPixels("y");t.translate(a,o),t.rotate(-1*s.getRadians()),t.translate(-a,-o)}applyToPoint(t){var{cx:r,cy:i,angle:e}=this,n=e.getRadians();t.applyTransform([1,0,0,1,r||0,i||0]),t.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),t.applyTransform([1,0,0,1,-r||0,-i||0])}}class dh{constructor(t,r,i){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=nh.parseScale(r);0!==e.x&&0!==e.y||(e.x=1e-8,e.y=1e-8),this.scale=e,this.originX=i[0],this.originY=i[1]}apply(t){var{scale:{x:r,y:i},originX:e,originY:n}=this,s=e.getPixels("x"),a=n.getPixels("y");t.translate(s,a),t.scale(r,i||r),t.translate(-s,-a)}unapply(t){var{scale:{x:r,y:i},originX:e,originY:n}=this,s=e.getPixels("x"),a=n.getPixels("y");t.translate(s,a),t.scale(1/r,1/i||r),t.translate(-s,-a)}applyToPoint(t){var{x:r,y:i}=this.scale;t.applyTransform([r||0,0,0,i||0,0,0])}}class ph{constructor(t,r,i){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Eo(r),this.originX=i[0],this.originY=i[1]}apply(t){var{originX:r,originY:i,matrix:e}=this,n=r.getPixels("x"),s=i.getPixels("y");t.translate(n,s),t.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t.translate(-n,-s)}unapply(t){var{originX:r,originY:i,matrix:e}=this,n=e[0],s=e[2],a=e[4],o=e[1],h=e[3],u=e[5],c=1/(n*(1*h-0*u)-s*(1*o-0*u)+a*(0*o-0*h)),f=r.getPixels("x"),l=i.getPixels("y");t.translate(f,l),t.transform(c*(1*h-0*u),c*(0*u-1*o),c*(0*a-1*s),c*(1*n-0*a),c*(s*u-a*h),c*(a*o-n*u)),t.translate(-f,-l)}applyToPoint(t){t.applyTransform(this.matrix)}}class gh extends ph{constructor(t,r,i){super(t,r,i),this.type="skew",this.angle=null,this.angle=new ih(t,"angle",r)}}class yh extends gh{constructor(t,r,i){super(t,r,i),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class mh extends gh{constructor(t,r,i){super(t,r,i),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}class bh{constructor(t,r,i){this.document=t,this.transforms=[],function(t){return jo(t).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(r).forEach((t=>{if("none"!==t){var[r,e]=function(t){var[r,i]=t.split("(");return[r.trim(),i.trim().replace(")","")]}(t),n=bh.transformTypes[r];void 0!==n&&this.transforms.push(new n(this.document,e,i))}}))}static fromElement(t,r){var i=r.getStyle("transform",!1,!0),[e,n=e]=r.getStyle("transform-origin",!1,!0).split(),s=[e,n];return i.hasValue()?new bh(t,i.getString(),s):null}apply(t){for(var{transforms:r}=this,i=r.length,e=0;e<i;e++)r[e].apply(t)}unapply(t){for(var{transforms:r}=this,i=r.length-1;i>=0;i--)r[i].unapply(t)}applyToPoint(t){for(var{transforms:r}=this,i=r.length,e=0;e<i;e++)r[e].applyToPoint(t)}}bh.transformTypes={translate:lh,rotate:vh,scale:dh,matrix:ph,skewX:yh,skewY:mh};class wh{constructor(t,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.document=t,this.node=r,this.captureTextNodes=i,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],r&&1===r.nodeType){Array.from(r.attributes).forEach((r=>{var i=Ro(r.nodeName);this.attributes[i]=new ih(t,i,r.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()&&this.getAttribute("style").getString().split(";").map((t=>t.trim())).forEach((r=>{if(r){var[i,e]=r.split(":").map((t=>t.trim()));this.styles[i]=new ih(t,i,e)}}));var{definitions:e}=t,n=this.getAttribute("id");n.hasValue()&&(e[n.getString()]||(e[n.getString()]=this)),Array.from(r.childNodes).forEach((r=>{if(1===r.nodeType)this.addChild(r);else if(i&&(3===r.nodeType||4===r.nodeType)){var e=t.createTextNode(r);e.getText().length>0&&this.addChild(e)}}))}}getAttribute(t){var r=this.attributes[t];if(!r&&arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=new ih(this.document,t,"");return this.attributes[t]=i,i}return r||ih.empty(this.document)}getHrefAttribute(){for(var t in this.attributes)if("href"===t||t.endsWith(":href"))return this.attributes[t];return ih.empty(this.document)}getStyle(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=this.styles[t];if(e)return e;var n=this.getAttribute(t);if(null!=n&&n.hasValue())return this.styles[t]=n,n;if(!i){var{parent:s}=this;if(s){var a=s.getStyle(t);if(null!=a&&a.hasValue())return a}}if(r){var o=new ih(this.document,t,"");return this.styles[t]=o,o}return e||ih.empty(this.document)}render(t){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(t.save(),this.getStyle("mask").hasValue()){var r=this.getStyle("mask").getDefinition();r&&(this.applyEffects(t),r.apply(t,this))}else if("none"!==this.getStyle("filter").getValue("none")){var i=this.getStyle("filter").getDefinition();i&&(this.applyEffects(t),i.apply(t,this))}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}}setContext(t){}applyEffects(t){var r=bh.fromElement(this.document,this);r&&r.apply(t);var i=this.getStyle("clip-path",!1,!0);if(i.hasValue()){var e=i.getDefinition();e&&e.apply(t)}}clearContext(t){}renderChildren(t){this.children.forEach((r=>{r.render(t)}))}addChild(t){var r=t instanceof wh?t:this.document.createElement(t);r.parent=this,wh.ignoreChildTypes.includes(r.type)||this.children.push(r)}matchesSelector(t){var r,{node:i}=this;if("function"==typeof i.matches)return i.matches(t);var e=null===(r=i.getAttribute)||void 0===r?void 0:r.call(i,"class");return!(!e||""===e)&&e.split(" ").some((r=>".".concat(r)===t))}addStylesFromStyleDefinition(){var{styles:t,stylesSpecificity:r}=this.document;for(var i in t)if(!i.startsWith("@")&&this.matchesSelector(i)){var e=t[i],n=r[i];if(e)for(var s in e){var a=this.stylesSpecificity[s];void 0===a&&(a="000"),n>=a&&(this.styles[s]=e[s],this.stylesSpecificity[s]=n)}}}removeStyles(t,r){return r.reduce(((r,i)=>{var e=t.getStyle(i);if(!e.hasValue())return r;var n=e.getString();return e.setValue(""),[...r,[i,n]]}),[])}restoreStyles(t,r){r.forEach((r=>{var[i,e]=r;t.getStyle(i,!0).setValue(e)}))}isFirstChild(){var t;return 0===(null===(t=this.parent)||void 0===t?void 0:t.children.indexOf(this))}}wh.ignoreChildTypes=["title"];class xh extends wh{constructor(t,r,i){super(t,r,i)}}function Mh(t){var r=t.trim();return/^('|")/.test(r)?r:'"'.concat(r,'"')}function kh(t){if(!t)return"";var r=t.trim().toLowerCase();switch(r){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return r;default:return/^oblique\s+(-|)\d+deg$/.test(r)?r:""}}function Nh(t){if(!t)return"";var r=t.trim().toLowerCase();switch(r){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return r;default:return/^[\d.]+$/.test(r)?r:""}}class Sh{constructor(t,r,i,e,n,s){var a=s?"string"==typeof s?Sh.parse(s):s:{};this.fontFamily=n||a.fontFamily,this.fontSize=e||a.fontSize,this.fontStyle=t||a.fontStyle,this.fontWeight=i||a.fontWeight,this.fontVariant=r||a.fontVariant}static parse(){var t=arguments.length>1?arguments[1]:void 0,r="",i="",e="",n="",s="",a=jo(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").trim().split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return a.forEach((t=>{switch(!0){case!o.fontStyle&&Sh.styles.includes(t):"inherit"!==t&&(r=t),o.fontStyle=!0;break;case!o.fontVariant&&Sh.variants.includes(t):"inherit"!==t&&(i=t),o.fontStyle=!0,o.fontVariant=!0;break;case!o.fontWeight&&Sh.weights.includes(t):"inherit"!==t&&(e=t),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0;break;case!o.fontSize:"inherit"!==t&&([n]=t.split("/")),o.fontStyle=!0,o.fontVariant=!0,o.fontWeight=!0,o.fontSize=!0;break;default:"inherit"!==t&&(s+=t)}})),new Sh(r,i,e,n,s,t)}toString(){return[kh(this.fontStyle),this.fontVariant,Nh(this.fontWeight),this.fontSize,(t=this.fontFamily,"undefined"==typeof process?t:t.trim().split(",").map(Mh).join(","))].join(" ").trim();var t}}Sh.styles="normal|italic|oblique|inherit",Sh.variants="normal|small-caps|inherit",Sh.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Ph{constructor(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;this.x1=t,this.y1=r,this.x2=i,this.y2=e,this.addPoint(t,r),this.addPoint(i,e)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(t,r){void 0!==t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),void 0!==r&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),r<this.y1&&(this.y1=r),r>this.y2&&(this.y2=r))}addX(t){this.addPoint(t,null)}addY(t){this.addPoint(null,t)}addBoundingBox(t){if(t){var{x1:r,y1:i,x2:e,y2:n}=t;this.addPoint(r,i),this.addPoint(e,n)}}sumCubic(t,r,i,e,n){return Math.pow(1-t,3)*r+3*Math.pow(1-t,2)*t*i+3*(1-t)*Math.pow(t,2)*e+Math.pow(t,3)*n}bezierCurveAdd(t,r,i,e,n){var s=6*r-12*i+6*e,a=-3*r+9*i-9*e+3*n,o=3*i-3*r;if(0!==a){var h=Math.pow(s,2)-4*o*a;if(!(h<0)){var u=(-s+Math.sqrt(h))/(2*a);0<u&&u<1&&(t?this.addX(this.sumCubic(u,r,i,e,n)):this.addY(this.sumCubic(u,r,i,e,n)));var c=(-s-Math.sqrt(h))/(2*a);0<c&&c<1&&(t?this.addX(this.sumCubic(c,r,i,e,n)):this.addY(this.sumCubic(c,r,i,e,n)))}}else{if(0===s)return;var f=-o/s;0<f&&f<1&&(t?this.addX(this.sumCubic(f,r,i,e,n)):this.addY(this.sumCubic(f,r,i,e,n)))}}addBezierCurve(t,r,i,e,n,s,a,o){this.addPoint(t,r),this.addPoint(a,o),this.bezierCurveAdd(!0,t,i,n,a),this.bezierCurveAdd(!1,r,e,s,o)}addQuadraticCurve(t,r,i,e,n,s){var a=t+2/3*(i-t),o=r+2/3*(e-r);this.addBezierCurve(t,r,a,a+1/3*(n-t),o,o+1/3*(s-r),n,s)}isPointInBox(t,r){var{x1:i,y1:e,x2:n,y2:s}=this;return i<=t&&t<=n&&e<=r&&r<=s}}class Oh extends go{constructor(t){super(t.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new nh(0,0),this.control=new nh(0,0),this.current=new nh(0,0),this.points=[],this.angles=[]}isEnd(){var{i:t,commands:r}=this;return t>=r.length-1}next(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}getPoint(){var t=new nh(this.command[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x"],this.command[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y"]);return this.makeAbsolute(t)}getAsControlPoint(t,r){var i=this.getPoint(t,r);return this.control=i,i}getAsCurrentPoint(t,r){var i=this.getPoint(t,r);return this.current=i,i}getReflectedControlPoint(){var t=this.previousCommand.type;if(t!==go.CURVE_TO&&t!==go.SMOOTH_CURVE_TO&&t!==go.QUAD_TO&&t!==go.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:i},control:{x:e,y:n}}=this;return new nh(2*r-e,2*i-n)}makeAbsolute(t){if(this.command.relative){var{x:r,y:i}=this.current;t.x+=r,t.y+=i}return t}addMarker(t,r,i){var{points:e,angles:n}=this;i&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=e[e.length-1].angleTo(i)),this.addMarkerAngle(t,r?r.angleTo(t):null)}addMarkerAngle(t,r){this.points.push(t),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:t}=this,r=t.length,i=0;i<r;i++)if(!t[i])for(var e=i+1;e<r;e++)if(t[e]){t[i]=t[e];break}return t}}class jh extends wh{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var t=1,r=this;r;){var i=r.getStyle("opacity",!1,!0);i.hasValue(!0)&&(t*=i.getNumber()),r=r.parent}return t}setContext(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!r){var i=this.getStyle("fill"),e=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),s=this.getStyle("stroke-opacity");if(i.isUrlDefinition()){var a=i.getFillStyleDefinition(this,e);a&&(t.fillStyle=a)}else if(i.hasValue()){"currentColor"===i.getString()&&i.setValue(this.getStyle("color").getColor());var o=i.getColor();"inherit"!==o&&(t.fillStyle="none"===o?"rgba(0,0,0,0)":o)}if(e.hasValue()){var h=new ih(this.document,"fill",t.fillStyle).addOpacity(e).getColor();t.fillStyle=h}if(n.isUrlDefinition()){var u=n.getFillStyleDefinition(this,s);u&&(t.strokeStyle=u)}else if(n.hasValue()){"currentColor"===n.getString()&&n.setValue(this.getStyle("color").getColor());var c=n.getString();"inherit"!==c&&(t.strokeStyle="none"===c?"rgba(0,0,0,0)":c)}if(s.hasValue()){var f=new ih(this.document,"stroke",t.strokeStyle).addOpacity(s).getString();t.strokeStyle=f}var l=this.getStyle("stroke-width");if(l.hasValue()){var v=l.getPixels();t.lineWidth=v||1e-8}var d=this.getStyle("stroke-linecap"),p=this.getStyle("stroke-linejoin"),g=this.getStyle("stroke-miterlimit"),y=this.getStyle("stroke-dasharray"),m=this.getStyle("stroke-dashoffset");if(d.hasValue()&&(t.lineCap=d.getString()),p.hasValue()&&(t.lineJoin=p.getString()),g.hasValue()&&(t.miterLimit=g.getNumber()),y.hasValue()&&"none"!==y.getString()){var b=Eo(y.getString());void 0!==t.setLineDash?t.setLineDash(b):void 0!==t.webkitLineDash?t.webkitLineDash=b:void 0===t.mozDash||1===b.length&&0===b[0]||(t.mozDash=b);var w=m.getPixels();void 0!==t.lineDashOffset?t.lineDashOffset=w:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=w:void 0!==t.mozDashOffset&&(t.mozDashOffset=w)}}if(this.modifiedEmSizeStack=!1,void 0!==t.font){var x=this.getStyle("font"),M=this.getStyle("font-style"),k=this.getStyle("font-variant"),N=this.getStyle("font-weight"),S=this.getStyle("font-size"),P=this.getStyle("font-family"),O=new Sh(M.getString(),k.getString(),N.getString(),S.hasValue()?"".concat(S.getPixels(!0),"px"):"",P.getString(),Sh.parse(x.getString(),t.font));M.setValue(O.fontStyle),k.setValue(O.fontVariant),N.setValue(O.fontWeight),S.setValue(O.fontSize),P.setValue(O.fontFamily),t.font=O.toString(),S.isPixels()&&(this.document.emSize=S.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}clearContext(t){super.clearContext(t),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Ch extends jh{constructor(t,r,i){super(t,r,i),this.type="path",this.pathParser=null,this.pathParser=new Oh(this.getAttribute("d").getString())}path(t){var{pathParser:r}=this,i=new Ph;for(r.reset(),t&&t.beginPath();!r.isEnd();)switch(r.next().type){case Oh.MOVE_TO:this.pathM(t,i);break;case Oh.LINE_TO:this.pathL(t,i);break;case Oh.HORIZ_LINE_TO:this.pathH(t,i);break;case Oh.VERT_LINE_TO:this.pathV(t,i);break;case Oh.CURVE_TO:this.pathC(t,i);break;case Oh.SMOOTH_CURVE_TO:this.pathS(t,i);break;case Oh.QUAD_TO:this.pathQ(t,i);break;case Oh.SMOOTH_QUAD_TO:this.pathT(t,i);break;case Oh.ARC:this.pathA(t,i);break;case Oh.CLOSE_PATH:this.pathZ(t,i)}return i}getBoundingBox(t){return this.path()}getMarkers(){var{pathParser:t}=this,r=t.getMarkerPoints(),i=t.getMarkerAngles();return r.map(((t,r)=>[t,i[r]]))}renderChildren(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var r=this.getStyle("fill-rule");""!==t.fillStyle&&("inherit"!==r.getString("inherit")?t.fill(r.getString()):t.fill()),""!==t.strokeStyle&&("non-scaling-stroke"===this.getAttribute("vector-effect").getString()?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var i=this.getMarkers();if(i){var e=i.length-1,n=this.getStyle("marker-start"),s=this.getStyle("marker-mid"),a=this.getStyle("marker-end");if(n.isUrlDefinition()){var o=n.getDefinition(),[h,u]=i[0];o.render(t,h,u)}if(s.isUrlDefinition())for(var c=s.getDefinition(),f=1;f<e;f++){var[l,v]=i[f];c.render(t,l,v)}if(a.isUrlDefinition()){var d=a.getDefinition(),[p,g]=i[e];d.render(t,p,g)}}}static pathM(t){var r=t.getAsCurrentPoint();return t.start=t.current,{point:r}}pathM(t,r){var{pathParser:i}=this,{point:e}=Ch.pathM(i),{x:n,y:s}=e;i.addMarker(e),r.addPoint(n,s),t&&t.moveTo(n,s)}static pathL(t){var{current:r}=t;return{current:r,point:t.getAsCurrentPoint()}}pathL(t,r){var{pathParser:i}=this,{current:e,point:n}=Ch.pathL(i),{x:s,y:a}=n;i.addMarker(n,e),r.addPoint(s,a),t&&t.lineTo(s,a)}static pathH(t){var{current:r,command:i}=t,e=new nh((i.relative?r.x:0)+i.x,r.y);return t.current=e,{current:r,point:e}}pathH(t,r){var{pathParser:i}=this,{current:e,point:n}=Ch.pathH(i),{x:s,y:a}=n;i.addMarker(n,e),r.addPoint(s,a),t&&t.lineTo(s,a)}static pathV(t){var{current:r,command:i}=t,e=new nh(r.x,(i.relative?r.y:0)+i.y);return t.current=e,{current:r,point:e}}pathV(t,r){var{pathParser:i}=this,{current:e,point:n}=Ch.pathV(i),{x:s,y:a}=n;i.addMarker(n,e),r.addPoint(s,a),t&&t.lineTo(s,a)}static pathC(t){var{current:r}=t;return{current:r,point:t.getPoint("x1","y1"),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathC(t,r){var{pathParser:i}=this,{current:e,point:n,controlPoint:s,currentPoint:a}=Ch.pathC(i);i.addMarker(a,s,n),r.addBezierCurve(e.x,e.y,n.x,n.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(n.x,n.y,s.x,s.y,a.x,a.y)}static pathS(t){var{current:r}=t;return{current:r,point:t.getReflectedControlPoint(),controlPoint:t.getAsControlPoint("x2","y2"),currentPoint:t.getAsCurrentPoint()}}pathS(t,r){var{pathParser:i}=this,{current:e,point:n,controlPoint:s,currentPoint:a}=Ch.pathS(i);i.addMarker(a,s,n),r.addBezierCurve(e.x,e.y,n.x,n.y,s.x,s.y,a.x,a.y),t&&t.bezierCurveTo(n.x,n.y,s.x,s.y,a.x,a.y)}static pathQ(t){var{current:r}=t;return{current:r,controlPoint:t.getAsControlPoint("x1","y1"),currentPoint:t.getAsCurrentPoint()}}pathQ(t,r){var{pathParser:i}=this,{current:e,controlPoint:n,currentPoint:s}=Ch.pathQ(i);i.addMarker(s,n,n),r.addQuadraticCurve(e.x,e.y,n.x,n.y,s.x,s.y),t&&t.quadraticCurveTo(n.x,n.y,s.x,s.y)}static pathT(t){var{current:r}=t,i=t.getReflectedControlPoint();return t.control=i,{current:r,controlPoint:i,currentPoint:t.getAsCurrentPoint()}}pathT(t,r){var{pathParser:i}=this,{current:e,controlPoint:n,currentPoint:s}=Ch.pathT(i);i.addMarker(s,n,n),r.addQuadraticCurve(e.x,e.y,n.x,n.y,s.x,s.y),t&&t.quadraticCurveTo(n.x,n.y,s.x,s.y)}static pathA(t){var{current:r,command:i}=t,{rX:e,rY:n,xRot:s,lArcFlag:a,sweepFlag:o}=i,h=s*(Math.PI/180),u=t.getAsCurrentPoint(),c=new nh(Math.cos(h)*(r.x-u.x)/2+Math.sin(h)*(r.y-u.y)/2,-Math.sin(h)*(r.x-u.x)/2+Math.cos(h)*(r.y-u.y)/2),f=Math.pow(c.x,2)/Math.pow(e,2)+Math.pow(c.y,2)/Math.pow(n,2);f>1&&(e*=Math.sqrt(f),n*=Math.sqrt(f));var l=(a===o?-1:1)*Math.sqrt((Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(e,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(l)&&(l=0);var v=new nh(l*e*c.y/n,l*-n*c.x/e),d=new nh((r.x+u.x)/2+Math.cos(h)*v.x-Math.sin(h)*v.y,(r.y+u.y)/2+Math.sin(h)*v.x+Math.cos(h)*v.y),p=Ho([1,0],[(c.x-v.x)/e,(c.y-v.y)/n]),g=[(c.x-v.x)/e,(c.y-v.y)/n],y=[(-c.x-v.x)/e,(-c.y-v.y)/n],m=Ho(g,y);return Uo(g,y)<=-1&&(m=Math.PI),Uo(g,y)>=1&&(m=0),{currentPoint:u,rX:e,rY:n,sweepFlag:o,xAxisRotation:h,centp:d,a1:p,ad:m}}pathA(t,r){var{pathParser:i}=this,{currentPoint:e,rX:n,rY:s,sweepFlag:a,xAxisRotation:o,centp:h,a1:u,ad:c}=Ch.pathA(i),f=1-a?1:-1,l=u+f*(c/2),v=new nh(h.x+n*Math.cos(l),h.y+s*Math.sin(l));if(i.addMarkerAngle(v,l-f*Math.PI/2),i.addMarkerAngle(e,l-f*Math.PI),r.addPoint(e.x,e.y),t&&!isNaN(u)&&!isNaN(c)){var d=n>s?n:s,p=n>s?1:n/s,g=n>s?s/n:1;t.translate(h.x,h.y),t.rotate(o),t.scale(p,g),t.arc(0,0,d,u,u+c,Boolean(1-a)),t.scale(1/p,1/g),t.rotate(-o),t.translate(-h.x,-h.y)}}static pathZ(t){t.current=t.start}pathZ(t,r){Ch.pathZ(this.pathParser),t&&r.x1!==r.x2&&r.y1!==r.y2&&t.closePath()}}class Ah extends Ch{constructor(t,r,i){super(t,r,i),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class Eh extends jh{constructor(t,r,i){super(t,r,new.target===Eh||i),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(t){super.setContext(t,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(t){if("text"!==this.type)return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var r=null;return this.children.forEach(((i,e)=>{var n=this.getChildBoundingBox(t,this,this,e);r?r.addBoundingBox(n):r=n})),r}getFontSize(){var{document:t,parent:r}=this,i=Sh.parse(t.ctx.font).fontSize;return r.getStyle("font-size").getNumber(i)}getTElementBoundingBox(t){var r=this.getFontSize();return new Ph(this.x,this.y-r,this.x+this.measureText(t),this.y)}getGlyph(t,r,i){var e=r[i],n=null;if(t.isArabic){var s=r.length,a=r[i-1],o=r[i+1],h="isolated";if((0===i||" "===a)&&i<s-1&&" "!==o&&(h="terminal"),i>0&&" "!==a&&i<s-1&&" "!==o&&(h="medial"),i>0&&" "!==a&&(i===s-1||" "===o)&&(h="initial"),void 0!==t.glyphs[e]){var u=t.glyphs[e];n=u instanceof Ah?u:u[h]}}else n=t.glyphs[e];return n||(n=t.missingGlyph),n}getText(){return""}getTextFromNode(t){var r=t||this.node,i=Array.from(r.parentNode.childNodes),e=i.indexOf(r),n=i.length-1,s=jo(r.textContent||"");return 0===e&&(s=Co(s)),e===n&&(s=Ao(s)),s}renderChildren(t){if("text"===this.type){this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(((r,i)=>{this.renderChild(t,this,this,i)}));var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}else this.renderTElementChildren(t)}renderTElementChildren(t){var{document:r,parent:i}=this,e=this.getText(),n=i.getStyle("font-family").getDefinition();if(n)for(var{unitsPerEm:s}=n.fontFace,a=Sh.parse(r.ctx.font),o=i.getStyle("font-size").getNumber(a.fontSize),h=i.getStyle("font-style").getString(a.fontStyle),u=o/s,c=n.isRTL?e.split("").reverse().join(""):e,f=Eo(i.getAttribute("dx").getString()),l=c.length,v=0;v<l;v++){var d=this.getGlyph(n,c,v);t.translate(this.x,this.y),t.scale(u,-u);var p=t.lineWidth;t.lineWidth=t.lineWidth*s/o,"italic"===h&&t.transform(1,0,.4,1,0,0),d.render(t),"italic"===h&&t.transform(1,0,-.4,1,0,0),t.lineWidth=p,t.scale(1/u,-1/u),t.translate(-this.x,-this.y),this.x+=o*(d.horizAdvX||n.horizAdvX)/s,void 0===f[v]||isNaN(f[v])||(this.x+=f[v])}else{var{x:g,y}=this;t.fillStyle&&t.fillText(e,g,y),t.strokeStyle&&t.strokeText(e,g,y)}}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var t,r=this.leafTexts[this.textChunkStart],i=r.getStyle("text-anchor").getString("start");t="start"===i?r.x-this.minX:"end"===i?r.x-this.maxX:r.x-(this.minX+this.maxX)/2;for(var e=this.textChunkStart;e<this.leafTexts.length;e++)this.leafTexts[e].x+=t;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(t){this.children.forEach(((r,i)=>{this.adjustChildCoordinatesRecursiveCore(t,this,this,i)})),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(t,r,i,e){var n=i.children[e];n.children.length>0?n.children.forEach(((i,e)=>{r.adjustChildCoordinatesRecursiveCore(t,r,n,e)})):this.adjustChildCoordinates(t,r,i,e)}adjustChildCoordinates(t,r,i,e){var n=i.children[e];if("function"!=typeof n.measureText)return n;t.save(),n.setContext(t,!0);var s=n.getAttribute("x"),a=n.getAttribute("y"),o=n.getAttribute("dx"),h=n.getAttribute("dy"),u=n.getStyle("font-family").getDefinition(),c=Boolean(u)&&u.isRTL;0===e&&(s.hasValue()||s.setValue(n.getInheritedAttribute("x")),a.hasValue()||a.setValue(n.getInheritedAttribute("y")),o.hasValue()||o.setValue(n.getInheritedAttribute("dx")),h.hasValue()||h.setValue(n.getInheritedAttribute("dy")));var f=n.measureText(t);return c&&(r.x-=f),s.hasValue()?(r.applyAnchoring(),n.x=s.getPixels("x"),o.hasValue()&&(n.x+=o.getPixels("x"))):(o.hasValue()&&(r.x+=o.getPixels("x")),n.x=r.x),r.x=n.x,c||(r.x+=f),a.hasValue()?(n.y=a.getPixels("y"),h.hasValue()&&(n.y+=h.getPixels("y"))):(h.hasValue()&&(r.y+=h.getPixels("y")),n.y=r.y),r.y=n.y,r.leafTexts.push(n),r.minX=Math.min(r.minX,n.x,n.x+f),r.maxX=Math.max(r.maxX,n.x,n.x+f),n.clearContext(t),t.restore(),n}getChildBoundingBox(t,r,i,e){var n=i.children[e];if("function"!=typeof n.getBoundingBox)return null;var s=n.getBoundingBox(t);return s?(n.children.forEach(((i,e)=>{var a=r.getChildBoundingBox(t,r,n,e);s.addBoundingBox(a)})),s):null}renderChild(t,r,i,e){var n=i.children[e];n.render(t),n.children.forEach(((i,e)=>{r.renderChild(t,r,n,e)}))}measureText(t){var{measureCache:r}=this;if(~r)return r;var i=this.getText(),e=this.measureTargetText(t,i);return this.measureCache=e,e}measureTargetText(t,r){if(!r.length)return 0;var{parent:i}=this,e=i.getStyle("font-family").getDefinition();if(e){for(var n=this.getFontSize(),s=e.isRTL?r.split("").reverse().join(""):r,a=Eo(i.getAttribute("dx").getString()),o=s.length,h=0,u=0;u<o;u++)h+=(this.getGlyph(e,s,u).horizAdvX||e.horizAdvX)*n/e.fontFace.unitsPerEm,void 0===a[u]||isNaN(a[u])||(h+=a[u]);return h}if(!t.measureText)return 10*r.length;t.save(),this.setContext(t,!0);var{width:c}=t.measureText(r);return this.clearContext(t),t.restore(),c}getInheritedAttribute(t){for(var r=this;r instanceof Eh&&r.isFirstChild();){var i=r.parent.getAttribute(t);if(i.hasValue(!0))return i.getValue("0");r=r.parent}return null}}class Th extends Eh{constructor(t,r,i){super(t,r,new.target===Th||i),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class Rh extends Th{constructor(){super(...arguments),this.type="textNode"}}class Bh extends jh{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(t){var r,{document:i}=this,{screen:e,window:n}=i,s=t.canvas;if(e.setDefaults(t),s.style&&void 0!==t.font&&n&&void 0!==n.getComputedStyle){t.font=n.getComputedStyle(s).getPropertyValue("font");var a=new ih(i,"fontSize",Sh.parse(t.font).fontSize);a.hasValue()&&(i.rootEmSize=a.getPixels("y"),i.emSize=i.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:h}=e.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),c=this.getAttribute("refY"),f=this.getAttribute("viewBox"),l=f.hasValue()?Eo(f.getString()):null,v=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),d=0,p=0,g=0,y=0;l&&(d=l[0],p=l[1]),this.root||(o=this.getStyle("width").getPixels("x"),h=this.getStyle("height").getPixels("y"),"marker"===this.type&&(g=d,y=p,d=0,p=0)),e.viewPort.setCurrent(o,h),!this.node||this.parent&&"foreignObject"!==(null===(r=this.node.parentNode)||void 0===r?void 0:r.nodeName)||!this.getStyle("transform",!1,!0).hasValue()||this.getStyle("transform-origin",!1,!0).hasValue()||this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),l&&(o=l[2],h=l[3]),i.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:e.viewPort.width,desiredWidth:o,height:e.viewPort.height,desiredHeight:h,minX:d,minY:p,refX:u.getValue(),refY:c.getValue(),clip:v,clipX:g,clipY:y}),l&&(e.viewPort.removeCurrent(),e.viewPort.setCurrent(o,h))}clearContext(t){super.clearContext(t),this.document.screen.viewPort.removeCurrent()}resize(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],e=this.getAttribute("width",!0),n=this.getAttribute("height",!0),s=this.getAttribute("viewBox"),a=this.getAttribute("style"),o=e.getNumber(0),h=n.getNumber(0);if(i)if("string"==typeof i)this.getAttribute("preserveAspectRatio",!0).setValue(i);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(e.setValue(t),n.setValue(r),s.hasValue()||s.setValue("0 0 ".concat(o||t," ").concat(h||r)),a.hasValue()){var c=this.getStyle("width"),f=this.getStyle("height");c.hasValue()&&c.setValue("".concat(t,"px")),f.hasValue()&&f.setValue("".concat(r,"px"))}}}class $h extends Ch{constructor(){super(...arguments),this.type="rect"}path(t){var r=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),e=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),s=this.getAttribute("rx"),a=this.getAttribute("ry"),o=s.getPixels("x"),h=a.getPixels("y");if(s.hasValue()&&!a.hasValue()&&(h=o),a.hasValue()&&!s.hasValue()&&(o=h),o=Math.min(o,e/2),h=Math.min(h,n/2),t){var u=(Math.sqrt(2)-1)/3*4;t.beginPath(),n>0&&e>0&&(t.moveTo(r+o,i),t.lineTo(r+e-o,i),t.bezierCurveTo(r+e-o+u*o,i,r+e,i+h-u*h,r+e,i+h),t.lineTo(r+e,i+n-h),t.bezierCurveTo(r+e,i+n-h+u*h,r+e-o+u*o,i+n,r+e-o,i+n),t.lineTo(r+o,i+n),t.bezierCurveTo(r+o-u*o,i+n,r,i+n-h+u*h,r,i+n-h),t.lineTo(r,i+h),t.bezierCurveTo(r,i+h-u*h,r+o-u*o,i,r+o,i),t.closePath())}return new Ph(r,i,r+e,i+n)}getMarkers(){return null}}class Lh extends Ch{constructor(){super(...arguments),this.type="circle"}path(t){var r=this.getAttribute("cx").getPixels("x"),i=this.getAttribute("cy").getPixels("y"),e=this.getAttribute("r").getPixels();return t&&e>0&&(t.beginPath(),t.arc(r,i,e,0,2*Math.PI,!1),t.closePath()),new Ph(r-e,i-e,r+e,i+e)}getMarkers(){return null}}class Ih extends Ch{constructor(){super(...arguments),this.type="ellipse"}path(t){var r=(Math.sqrt(2)-1)/3*4,i=this.getAttribute("rx").getPixels("x"),e=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),s=this.getAttribute("cy").getPixels("y");return t&&i>0&&e>0&&(t.beginPath(),t.moveTo(n+i,s),t.bezierCurveTo(n+i,s+r*e,n+r*i,s+e,n,s+e),t.bezierCurveTo(n-r*i,s+e,n-i,s+r*e,n-i,s),t.bezierCurveTo(n-i,s-r*e,n-r*i,s-e,n,s-e),t.bezierCurveTo(n+r*i,s-e,n+i,s-r*e,n+i,s),t.closePath()),new Ph(n-i,s-e,n+i,s+e)}getMarkers(){return null}}class Fh extends Ch{constructor(){super(...arguments),this.type="line"}getPoints(){return[new nh(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new nh(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(t){var[{x:r,y:i},{x:e,y:n}]=this.getPoints();return t&&(t.beginPath(),t.moveTo(r,i),t.lineTo(e,n)),new Ph(r,i,e,n)}getMarkers(){var[t,r]=this.getPoints(),i=t.angleTo(r);return[[t,i],[r,i]]}}class Dh extends Ch{constructor(t,r,i){super(t,r,i),this.type="polyline",this.points=[],this.points=nh.parsePath(this.getAttribute("points").getString())}path(t){var{points:r}=this,[{x:i,y:e}]=r,n=new Ph(i,e);return t&&(t.beginPath(),t.moveTo(i,e)),r.forEach((r=>{var{x:i,y:e}=r;n.addPoint(i,e),t&&t.lineTo(i,e)})),n}getMarkers(){var{points:t}=this,r=t.length-1,i=[];return t.forEach(((e,n)=>{n!==r&&i.push([e,e.angleTo(t[n+1])])})),i.length>0&&i.push([t[t.length-1],i[i.length-1][1]]),i}}class zh extends Dh{constructor(){super(...arguments),this.type="polygon"}path(t){var r=super.path(t),[{x:i,y:e}]=this.points;return t&&(t.lineTo(i,e),t.closePath()),r}}class Yh extends wh{constructor(){super(...arguments),this.type="pattern"}createPattern(t,r,i){var e=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),s=new Bh(this.document,null);s.attributes.viewBox=new ih(this.document,"viewBox",this.getAttribute("viewBox").getValue()),s.attributes.width=new ih(this.document,"width","".concat(e,"px")),s.attributes.height=new ih(this.document,"height","".concat(n,"px")),s.attributes.transform=new ih(this.document,"transform",this.getAttribute("patternTransform").getValue()),s.children=this.children;var a=this.document.createCanvas(e,n),o=a.getContext("2d"),h=this.getAttribute("x"),u=this.getAttribute("y");h.hasValue()&&u.hasValue()&&o.translate(h.getPixels("x",!0),u.getPixels("y",!0)),i.hasValue()?this.styles["fill-opacity"]=i:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var f=-1;f<=1;f++)o.save(),s.attributes.x=new ih(this.document,"x",c*a.width),s.attributes.y=new ih(this.document,"y",f*a.height),s.render(o),o.restore();return t.createPattern(a,"repeat")}}class _h extends wh{constructor(){super(...arguments),this.type="marker"}render(t,r,i){if(r){var{x:e,y:n}=r,s=this.getAttribute("orient").getString("auto"),a=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(e,n),"auto"===s&&t.rotate(i),"strokeWidth"===a&&t.scale(t.lineWidth,t.lineWidth),t.save();var o=new Bh(this.document,null);o.type=this.type,o.attributes.viewBox=new ih(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new ih(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new ih(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new ih(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new ih(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new ih(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new ih(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new ih(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(t),t.restore(),"strokeWidth"===a&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"===s&&t.rotate(-i),t.translate(-e,-n)}}}class Xh extends wh{constructor(){super(...arguments),this.type="defs"}render(){}}class qh extends jh{constructor(){super(...arguments),this.type="g"}getBoundingBox(t){var r=new Ph;return this.children.forEach((i=>{r.addBoundingBox(i.getBoundingBox(t))})),r}}class Gh extends wh{constructor(t,r,i){super(t,r,i),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:e,children:n}=this;n.forEach((t=>{"stop"===t.type&&e.push(t)}))}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(t,r,i){var e=this;this.getHrefAttribute().hasValue()&&(e=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(e));var{stops:n}=e,s=this.getGradient(t,r);if(!s)return this.addParentOpacity(i,n[n.length-1].color);if(n.forEach((t=>{s.addColorStop(t.offset,this.addParentOpacity(i,t.color))})),this.getAttribute("gradientTransform").hasValue()){var{document:a}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:h}=a.screen,[u]=h.viewPorts,c=new $h(a,null);c.attributes.x=new ih(a,"x",-o/3),c.attributes.y=new ih(a,"y",-o/3),c.attributes.width=new ih(a,"width",o),c.attributes.height=new ih(a,"height",o);var f=new qh(a,null);f.attributes.transform=new ih(a,"transform",this.getAttribute("gradientTransform").getValue()),f.children=[c];var l=new Bh(a,null);l.attributes.x=new ih(a,"x",0),l.attributes.y=new ih(a,"y",0),l.attributes.width=new ih(a,"width",u.width),l.attributes.height=new ih(a,"height",u.height),l.children=[f];var v=a.createCanvas(u.width,u.height),d=v.getContext("2d");return d.fillStyle=s,l.render(d),d.createPattern(v,"no-repeat")}return s}inheritStopContainer(t){this.attributesToInherit.forEach((r=>{!this.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())}))}addParentOpacity(t,r){return t.hasValue()?new ih(this.document,"color",r).addOpacity(t).getColor():r}}class Vh extends Gh{constructor(t,r,i){super(t,r,i),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(t,r){var i="objectBoundingBox"===this.getGradientUnits(),e=i?r.getBoundingBox(t):null;if(i&&!e)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=i?e.x+e.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),s=i?e.y+e.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),a=i?e.x+e.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=i?e.y+e.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===a&&s===o?null:t.createLinearGradient(n,s,a,o)}}class Uh extends Gh{constructor(t,r,i){super(t,r,i),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(t,r){var i="objectBoundingBox"===this.getGradientUnits(),e=r.getBoundingBox(t);if(i&&!e)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=i?e.x+e.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),s=i?e.y+e.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),a=n,o=s;this.getAttribute("fx").hasValue()&&(a=i?e.x+e.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=i?e.y+e.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var h=i?(e.width+e.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return t.createRadialGradient(a,o,u,n,s,h)}}class Hh extends wh{constructor(t,r,i){super(t,r,i),this.type="stop";var e=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),s=this.getStyle("stop-color",!0);""===s.getString()&&s.setValue("#000"),n.hasValue()&&(s=s.addOpacity(n)),this.offset=e,this.color=s.getColor()}}class Wh extends wh{constructor(t,r,i){super(t,r,i),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,t.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new ih(t,"values",null);var e=this.getAttribute("values");e.hasValue()&&this.values.setValue(e.getString().split(";"))}getProperty(){var t=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return"CSS"===t?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:t}=this,{progress:r,from:i,to:e}=this.getProgress(),n=i.getNumber()+(e.getNumber()-i.getNumber())*r;return"%"===t&&(n*=100),"".concat(n).concat(t)}update(t){var{parent:r}=this,i=this.getProperty();if(this.initialValue||(this.initialValue=i.getString(),this.initialUnits=i.getUnits()),this.duration>this.maxDuration){var e=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==e||this.frozen){if("remove"===e&&!this.removed)return this.removed=!0,i.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=i.getString();return!1}this.duration+=t;var n=!1;if(this.begin<this.duration){var s=this.calcValue(),a=this.getAttribute("type");if(a.hasValue()){var o=a.getString();s="".concat(o,"(").concat(s,")")}i.setValue(s),n=!0}return n}getProgress(){var{document:t,values:r}=this,i={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(r.hasValue()){var e=i.progress*(r.getValue().length-1),n=Math.floor(e),s=Math.ceil(e);i.from=new ih(t,"from",parseFloat(r.getValue()[n])),i.to=new ih(t,"to",parseFloat(r.getValue()[s])),i.progress=(e-n)/(s-n)}else i.from=this.from,i.to=this.to;return i}}class Qh extends Wh{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:t,from:r,to:i}=this.getProgress(),e=new _a(r.getColor()),n=new _a(i.getColor());if(e.ok&&n.ok){var s=e.g+(n.g-e.g)*t,a=e.b+(n.b-e.b)*t;return"rgb(".concat(Math.floor(e.r+(n.r-e.r)*t),", ").concat(Math.floor(s),", ").concat(Math.floor(a),")")}return this.getAttribute("from").getColor()}}class Zh extends Wh{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:t,from:r,to:i}=this.getProgress(),e=Eo(r.getString()),n=Eo(i.getString());return e.map(((r,i)=>r+(n[i]-r)*t)).join(" ")}}class Kh extends wh{constructor(t,r,i){super(t,r,i),this.type="font",this.glyphs={},this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:e}=t,{children:n}=this;for(var s of n)switch(s.type){case"font-face":this.fontFace=s;var a=s.getStyle("font-family");a.hasValue()&&(e[a.getString()]=this);break;case"missing-glyph":this.missingGlyph=s;break;case"glyph":var o=s;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[o.unicode]&&(this.glyphs[o.unicode]={}),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o}}render(){}}class Jh extends wh{constructor(t,r,i){super(t,r,i),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class tu extends Ch{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class ru extends Eh{constructor(){super(...arguments),this.type="tref"}getText(){var t=this.getHrefAttribute().getDefinition();if(t){var r=t.children[0];if(r)return r.getText()}return""}}class iu extends Eh{constructor(t,r,i){super(t,r,i),this.type="a";var{childNodes:e}=r,n=e[0],s=e.length>0&&Array.from(e).every((t=>3===t.nodeType));this.hasText=s,this.text=s?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(t){if(this.hasText){super.renderChildren(t);var{document:r,x:i,y:e}=this,{mouse:n}=r.screen,s=new ih(r,"fontSize",Sh.parse(r.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new Ph(i,e-s.getPixels("y"),i+this.measureText(t),e))}else if(this.children.length>0){var a=new qh(this.document,null);a.children=this.children,a.parent=this,a.render(t)}}onClick(){var{window:t}=this.document;t&&t.open(this.getHrefAttribute().getString())}onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}function eu(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),i.push.apply(i,e)}return i}function nu(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?eu(Object(i),!0).forEach((function(r){ra(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):eu(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}class su extends Eh{constructor(t,r,i){super(t,r,i),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var e=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(e)}getText(){return this.text}path(t){var{dataArray:r}=this;t&&t.beginPath(),r.forEach((r=>{var{type:i,points:e}=r;switch(i){case Oh.LINE_TO:t&&t.lineTo(e[0],e[1]);break;case Oh.MOVE_TO:t&&t.moveTo(e[0],e[1]);break;case Oh.CURVE_TO:t&&t.bezierCurveTo(e[0],e[1],e[2],e[3],e[4],e[5]);break;case Oh.QUAD_TO:t&&t.quadraticCurveTo(e[0],e[1],e[2],e[3]);break;case Oh.ARC:var[n,s,a,o,h,u,c,f]=e,l=a>o?a:o,v=a>o?1:a/o,d=a>o?o/a:1;t&&(t.translate(n,s),t.rotate(c),t.scale(v,d),t.arc(0,0,l,h,h+u,Boolean(1-f)),t.scale(1/v,1/d),t.rotate(-c),t.translate(-n,-s));break;case Oh.CLOSE_PATH:t&&t.closePath()}}))}renderChildren(t){this.setTextData(t),t.save();var r=this.parent.getStyle("text-decoration").getString(),i=this.getFontSize(),{glyphInfo:e}=this,n=t.fillStyle;"underline"===r&&t.beginPath(),e.forEach(((e,n)=>{var{p0:s,p1:a,rotation:o,text:h}=e;t.save(),t.translate(s.x,s.y),t.rotate(o),t.fillStyle&&t.fillText(h,0,0),t.strokeStyle&&t.strokeText(h,0,0),t.restore(),"underline"===r&&(0===n&&t.moveTo(s.x,s.y+i/8),t.lineTo(a.x,a.y+i/5))})),"underline"===r&&(t.lineWidth=i/20,t.strokeStyle=n,t.stroke(),t.closePath()),t.restore()}getLetterSpacingAt(){return this.letterSpacingCache[arguments.length>0&&void 0!==arguments[0]?arguments[0]:0]||0}findSegmentToFitChar(t,r,i,e,n,s,a,o,h){var u=s,c=this.measureText(t,o);" "===o&&"justify"===r&&i<e&&(c+=(e-i)/n),h>-1&&(u+=this.getLetterSpacingAt(h));var f=this.textHeight/20,l=this.getEquidistantPointOnPath(u,f,0),v=this.getEquidistantPointOnPath(u+c,f,0),d={p0:l,p1:v},p=l&&v?Math.atan2(v.y-l.y,v.x-l.x):0;if(a){var g=Math.cos(Math.PI/2+p)*a,y=Math.cos(-p)*a;d.p0=nu(nu({},l),{},{x:l.x+g,y:l.y+y}),d.p1=nu(nu({},v),{},{x:v.x+g,y:v.y+y})}return{offset:u+=c,segment:d,rotation:p}}measureText(t,r){var{measuresCache:i}=this,e=r||this.getText();if(i.has(e))return i.get(e);var n=this.measureTargetText(t,e);return i.set(e,n),n}setTextData(t){if(!this.glyphInfo){var r=this.getText(),i=r.split(""),e=r.split(" ").length-1,n=this.parent.getAttribute("dx").split().map((t=>t.getPixels("x"))),s=this.parent.getAttribute("dy").getPixels("y"),a=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),h=this.parent.getStyle("letter-spacing"),u=0;o.hasValue()&&"inherit"!==o.getValue()?o.hasValue()&&"initial"!==o.getValue()&&"unset"!==o.getValue()&&(u=o.getPixels()):u=h.getPixels();var c=[],f=r.length;this.letterSpacingCache=c;for(var l=0;l<f;l++)c.push(void 0!==n[l]?n[l]:u);var v=c.reduce(((t,r,i)=>0===i?0:t+r||0),0),d=this.measureText(t),p=Math.max(d+v,0);this.textWidth=d,this.textHeight=this.getFontSize(),this.glyphInfo=[];var g=this.getPathLength(),y=this.getStyle("startOffset").getNumber(0)*g,m=0;"middle"!==a&&"center"!==a||(m=-p/2),"end"!==a&&"right"!==a||(m=-p),m+=y,i.forEach(((r,n)=>{var{offset:o,segment:h,rotation:u}=this.findSegmentToFitChar(t,a,p,g,e,m,s,r,n);m=o,h.p0&&h.p1&&this.glyphInfo.push({text:i[n],p0:h.p0,p1:h.p1,rotation:u})}))}}parsePathData(t){if(this.pathLength=-1,!t)return[];var r=[],{pathParser:i}=t;for(i.reset();!i.isEnd();){var{current:e}=i,n=e?e.x:0,s=e?e.y:0,a=i.next(),o=a.type,h=[];switch(a.type){case Oh.MOVE_TO:this.pathM(i,h);break;case Oh.LINE_TO:o=this.pathL(i,h);break;case Oh.HORIZ_LINE_TO:o=this.pathH(i,h);break;case Oh.VERT_LINE_TO:o=this.pathV(i,h);break;case Oh.CURVE_TO:this.pathC(i,h);break;case Oh.SMOOTH_CURVE_TO:o=this.pathS(i,h);break;case Oh.QUAD_TO:this.pathQ(i,h);break;case Oh.SMOOTH_QUAD_TO:o=this.pathT(i,h);break;case Oh.ARC:h=this.pathA(i);break;case Oh.CLOSE_PATH:Ch.pathZ(i)}r.push(a.type!==Oh.CLOSE_PATH?{type:o,points:h,start:{x:n,y:s},pathLength:this.calcLength(n,s,o,h)}:{type:Oh.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(t,r){var{x:i,y:e}=Ch.pathM(t).point;r.push(i,e)}pathL(t,r){var{x:i,y:e}=Ch.pathL(t).point;return r.push(i,e),Oh.LINE_TO}pathH(t,r){var{x:i,y:e}=Ch.pathH(t).point;return r.push(i,e),Oh.LINE_TO}pathV(t,r){var{x:i,y:e}=Ch.pathV(t).point;return r.push(i,e),Oh.LINE_TO}pathC(t,r){var{point:i,controlPoint:e,currentPoint:n}=Ch.pathC(t);r.push(i.x,i.y,e.x,e.y,n.x,n.y)}pathS(t,r){var{point:i,controlPoint:e,currentPoint:n}=Ch.pathS(t);return r.push(i.x,i.y,e.x,e.y,n.x,n.y),Oh.CURVE_TO}pathQ(t,r){var{controlPoint:i,currentPoint:e}=Ch.pathQ(t);r.push(i.x,i.y,e.x,e.y)}pathT(t,r){var{controlPoint:i,currentPoint:e}=Ch.pathT(t);return r.push(i.x,i.y,e.x,e.y),Oh.QUAD_TO}pathA(t){var{rX:r,rY:i,sweepFlag:e,xAxisRotation:n,centp:s,a1:a,ad:o}=Ch.pathA(t);return 0===e&&o>0&&(o-=2*Math.PI),1===e&&o<0&&(o+=2*Math.PI),[s.x,s.y,r,i,a,o,n,e]}calcLength(t,r,i,e){var n=0,s=null,a=null,o=0;switch(i){case Oh.LINE_TO:return this.getLineLength(t,r,e[0],e[1]);case Oh.CURVE_TO:for(n=0,s=this.getPointOnCubicBezier(0,t,r,e[0],e[1],e[2],e[3],e[4],e[5]),o=.01;o<=1;o+=.01)a=this.getPointOnCubicBezier(o,t,r,e[0],e[1],e[2],e[3],e[4],e[5]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case Oh.QUAD_TO:for(n=0,s=this.getPointOnQuadraticBezier(0,t,r,e[0],e[1],e[2],e[3]),o=.01;o<=1;o+=.01)a=this.getPointOnQuadraticBezier(o,t,r,e[0],e[1],e[2],e[3]),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return n;case Oh.ARC:n=0;var h=e[4],u=e[5],c=e[4]+u,f=Math.PI/180;if(Math.abs(h-c)<f&&(f=Math.abs(h-c)),s=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],h,0),u<0)for(o=h-f;o>c;o-=f)a=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],o,0),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;else for(o=h+f;o<c;o+=f)a=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],o,0),n+=this.getLineLength(s.x,s.y,a.x,a.y),s=a;return a=this.getPointOnEllipticalArc(e[0],e[1],e[2],e[3],c,0),n+this.getLineLength(s.x,s.y,a.x,a.y)}return 0}getPointOnLine(t,r,i,e,n){var s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:r,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:i,o=(n-i)/(e-r+1e-8),h=Math.sqrt(t*t/(1+o*o));e<r&&(h*=-1);var u=o*h,c=null;if(e===r)c={x:s,y:a+u};else if((a-i)/(s-r+1e-8)===o)c={x:s+h,y:a+u};else{var f,l,v=this.getLineLength(r,i,e,n);if(v<1e-8)return null;var d=(s-r)*(e-r)+(a-i)*(n-i),p=this.getLineLength(s,a,f=r+(d/=v*v)*(e-r),l=i+d*(n-i)),g=Math.sqrt(t*t-p*p);h=Math.sqrt(g*g/(1+o*o)),e<r&&(h*=-1),c={x:f+h,y:l+(u=o*h)}}return c}getPointOnPath(t){var r=this.getPathLength(),i=0,e=null;if(t<-5e-5||t-5e-5>r)return null;var{dataArray:n}=this;for(var s of n){if(!s||!(s.pathLength<5e-5||i+s.pathLength+5e-5<t)){var a=t-i,o=0;switch(s.type){case Oh.LINE_TO:e=this.getPointOnLine(a,s.start.x,s.start.y,s.points[0],s.points[1],s.start.x,s.start.y);break;case Oh.ARC:var h=s.points[5],u=s.points[4]+h;if(o=s.points[4]+a/s.pathLength*h,h<0&&o<u||h>=0&&o>u)break;e=this.getPointOnEllipticalArc(s.points[0],s.points[1],s.points[2],s.points[3],o,s.points[6]);break;case Oh.CURVE_TO:(o=a/s.pathLength)>1&&(o=1),e=this.getPointOnCubicBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3],s.points[4],s.points[5]);break;case Oh.QUAD_TO:(o=a/s.pathLength)>1&&(o=1),e=this.getPointOnQuadraticBezier(o,s.start.x,s.start.y,s.points[0],s.points[1],s.points[2],s.points[3])}if(e)return e;break}i+=s.pathLength}return null}getLineLength(t,r,i,e){return Math.sqrt((i-t)*(i-t)+(e-r)*(e-r))}getPathLength(){return-1===this.pathLength&&(this.pathLength=this.dataArray.reduce(((t,r)=>r.pathLength>0?t+r.pathLength:t),0)),this.pathLength}getPointOnCubicBezier(t,r,i,e,n,s,a,o,h){return{x:o*Wo(t)+s*Qo(t)+e*Zo(t)+r*Ko(t),y:h*Wo(t)+a*Qo(t)+n*Zo(t)+i*Ko(t)}}getPointOnQuadraticBezier(t,r,i,e,n,s,a){return{x:s*Jo(t)+e*th(t)+r*rh(t),y:a*Jo(t)+n*th(t)+i*rh(t)}}getPointOnEllipticalArc(t,r,i,e,n,s){var a=Math.cos(s),o=Math.sin(s),h=i*Math.cos(n),u=e*Math.sin(n);return{x:t+(h*a-u*o),y:r+(h*o+u*a)}}buildEquidistantCache(t,r){var i=this.getPathLength(),e=r||.25,n=t||i/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==e){this.equidistantCache={step:n,precision:e,points:[]};for(var s=0,a=0;a<=i;a+=e){var o=this.getPointOnPath(a),h=this.getPointOnPath(a+e);o&&h&&(s+=this.getLineLength(o.x,o.y,h.x,h.y))>=n&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:a}),s-=n)}}}getEquidistantPointOnPath(t,r,i){if(this.buildEquidistantCache(r,i),t<0||t-this.getPathLength()>5e-5)return null;var e=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[e]||null}}var au=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class ou extends jh{constructor(t,r,i){super(t,r,i),this.type="image",this.loaded=!1;var e=this.getHrefAttribute().getString();if(e){var n=e.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(e);t.images.push(this),n?this.loadSvg(e):this.loadImage(e),this.isSvg=n}}loadImage(t){var r=this;return Ze((function*(){try{var i=yield r.document.createImage(t);r.image=i}catch(r){console.error('Error while loading image "'.concat(t,'":'),r)}r.loaded=!0}))()}loadSvg(t){var r=this;return Ze((function*(){var i=au.exec(t);if(i){var e=i[5];r.image="base64"===i[4]?atob(e):decodeURIComponent(e)}else try{var n=yield r.document.fetch(t),s=yield n.text();r.image=s}catch(r){console.error('Error while loading image "'.concat(t,'":'),r)}r.loaded=!0}))()}renderChildren(t){var{document:r,image:i,loaded:e}=this,n=this.getAttribute("x").getPixels("x"),s=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(e&&i&&a&&o){if(t.save(),t.translate(n,s),this.isSvg){var h=r.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:a,scaleHeight:o});h.document.documentElement.parent=this,h.render()}else{var u=this.image;r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a,desiredWidth:u.width,height:o,desiredHeight:u.height}),this.loaded&&(void 0===u.complete||u.complete)&&t.drawImage(u,0,0)}t.restore()}}getBoundingBox(){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),i=this.getStyle("width").getPixels("x"),e=this.getStyle("height").getPixels("y");return new Ph(t,r,t+i,r+e)}}class hu extends jh{constructor(){super(...arguments),this.type="symbol"}render(t){}}class uu{constructor(t){this.document=t,this.loaded=!1,t.fonts.push(this)}load(t,r){var i=this;return Ze((function*(){try{var{document:e}=i,n=(yield e.canvg.parser.load(r)).getElementsByTagName("font");Array.from(n).forEach((r=>{var i=e.createElement(r);e.definitions[t]=i}))}catch(t){console.error('Error while loading font "'.concat(r,'":'),t)}i.loaded=!0}))()}}class cu extends wh{constructor(t,r,i){super(t,r,i),this.type="style",jo(Array.from(r.childNodes).map((t=>t.textContent)).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}").forEach((r=>{var i=r.trim();if(i){var e=i.split("{"),n=e[0].split(","),s=e[1].split(";");n.forEach((r=>{var i=r.trim();if(i){var e=t.styles[i]||{};if(s.forEach((r=>{var i=r.indexOf(":"),n=r.substr(0,i).trim(),s=r.substr(i+1,r.length-i).trim();n&&s&&(e[n]=new ih(t,n,s))})),t.styles[i]=e,t.stylesSpecificity[i]=qo(i),"@font-face"===i){var n=e["font-family"].getString().replace(/"|'/g,"");e.src.getString().split(",").forEach((r=>{if(r.indexOf('format("svg")')>0){var i=Bo(r);i&&new uu(t).load(n,i)}}))}}}))}}))}}cu.parseExternalUrl=Bo;class fu extends jh{constructor(){super(...arguments),this.type="use"}setContext(t){super.setContext(t);var r=this.getAttribute("x"),i=this.getAttribute("y");r.hasValue()&&t.translate(r.getPixels("x"),0),i.hasValue()&&t.translate(0,i.getPixels("y"))}path(t){var{element:r}=this;r&&r.path(t)}renderChildren(t){var{document:r,element:i}=this;if(i){var e=i;if("symbol"===i.type&&((e=new Bh(r,null)).attributes.viewBox=new ih(r,"viewBox",i.getAttribute("viewBox").getString()),e.attributes.preserveAspectRatio=new ih(r,"preserveAspectRatio",i.getAttribute("preserveAspectRatio").getString()),e.attributes.overflow=new ih(r,"overflow",i.getAttribute("overflow").getString()),e.children=i.children,i.styles.opacity=new ih(r,"opacity",this.calculateOpacity())),"svg"===e.type){var n=this.getStyle("width",!1,!0),s=this.getStyle("height",!1,!0);n.hasValue()&&(e.attributes.width=new ih(r,"width",n.getString())),s.hasValue()&&(e.attributes.height=new ih(r,"height",s.getString()))}var a=e.parent;e.parent=this,e.render(t),e.parent=a}}getBoundingBox(t){var{element:r}=this;return r?r.getBoundingBox(t):null}elementTransform(){var{document:t,element:r}=this;return bh.fromElement(t,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function lu(t,r,i,e,n,s){return t[i*e*4+4*r+s]}function vu(t,r,i,e,n,s,a){t[i*e*4+4*r+s]=a}function du(t,r,i){return t[r]*i}function pu(t,r,i,e){return r+Math.cos(t)*i+Math.sin(t)*e}class gu extends wh{constructor(t,r,i){super(t,r,i),this.type="feColorMatrix";var e=Eo(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":var n=e[0];e=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var s=e[0]*Math.PI/180;e=[pu(s,.213,.787,-.213),pu(s,.715,-.715,-.715),pu(s,.072,-.072,.928),0,0,pu(s,.213,-.213,.143),pu(s,.715,.285,.14),pu(s,.072,-.072,-.283),0,0,pu(s,.213,-.213,-.787),pu(s,.715,-.715,.715),pu(s,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":e=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}this.matrix=e,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(t,r,i,e,n){for(var{includeOpacity:s,matrix:a}=this,o=t.getImageData(0,0,e,n),h=0;h<n;h++)for(var u=0;u<e;u++){var c=lu(o.data,u,h,e,0,0),f=lu(o.data,u,h,e,0,1),l=lu(o.data,u,h,e,0,2),v=lu(o.data,u,h,e,0,3),d=du(a,0,c)+du(a,1,f)+du(a,2,l)+du(a,3,v)+du(a,4,1),p=du(a,5,c)+du(a,6,f)+du(a,7,l)+du(a,8,v)+du(a,9,1),g=du(a,10,c)+du(a,11,f)+du(a,12,l)+du(a,13,v)+du(a,14,1),y=du(a,15,c)+du(a,16,f)+du(a,17,l)+du(a,18,v)+du(a,19,1);s&&(d=0,p=0,g=0,y*=v/255),vu(o.data,u,h,e,0,0,d),vu(o.data,u,h,e,0,1,p),vu(o.data,u,h,e,0,2,g),vu(o.data,u,h,e,0,3,y)}t.clearRect(0,0,e,n),t.putImageData(o,0,0)}}class yu extends wh{constructor(){super(...arguments),this.type="mask"}apply(t,r){var{document:i}=this,e=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");if(!s&&!a){var o=new Ph;this.children.forEach((r=>{o.addBoundingBox(r.getBoundingBox(t))})),e=Math.floor(o.x1),n=Math.floor(o.y1),s=Math.floor(o.width),a=Math.floor(o.height)}var h=this.removeStyles(r,yu.ignoreStyles),u=i.createCanvas(e+s,n+a),c=u.getContext("2d");i.screen.setDefaults(c),this.renderChildren(c),new gu(i,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(c,0,0,e+s,n+a);var f=i.createCanvas(e+s,n+a),l=f.getContext("2d");i.screen.setDefaults(l),r.render(l),l.globalCompositeOperation="destination-in",l.fillStyle=c.createPattern(u,"no-repeat"),l.fillRect(0,0,e+s,n+a),t.fillStyle=l.createPattern(f,"no-repeat"),t.fillRect(0,0,e+s,n+a),this.restoreStyles(r,h)}render(t){}}yu.ignoreStyles=["mask","transform","clip-path"];var mu=()=>{};class bu extends wh{constructor(){super(...arguments),this.type="clipPath"}apply(t){var{document:r}=this,i=Reflect.getPrototypeOf(t),{beginPath:e,closePath:n}=t;i&&(i.beginPath=mu,i.closePath=mu),Reflect.apply(e,t,[]),this.children.forEach((e=>{if(void 0!==e.path){var s=void 0!==e.elementTransform?e.elementTransform():null;s||(s=bh.fromElement(r,e)),s&&s.apply(t),e.path(t),i&&(i.closePath=n),s&&s.unapply(t)}})),Reflect.apply(n,t,[]),t.clip(),i&&(i.beginPath=e,i.closePath=n)}render(t){}}class wu extends wh{constructor(){super(...arguments),this.type="filter"}apply(t,r){var{document:i,children:e}=this,n=r.getBoundingBox(t);if(n){var s=0,a=0;e.forEach((t=>{var r=t.extraFilterDistance||0;s=Math.max(s,r),a=Math.max(a,r)}));var o=Math.floor(n.width),h=Math.floor(n.height),u=o+2*s,c=h+2*a;if(!(u<1||c<1)){var f=Math.floor(n.x),l=Math.floor(n.y),v=this.removeStyles(r,wu.ignoreStyles),d=i.createCanvas(u,c),p=d.getContext("2d");i.screen.setDefaults(p),p.translate(-f+s,-l+a),r.render(p),e.forEach((t=>{"function"==typeof t.apply&&t.apply(p,0,0,u,c)})),t.drawImage(d,0,0,u,c,f-s,l-a,u,c),this.restoreStyles(r,v)}}}render(t){}}wu.ignoreStyles=["filter","transform","clip-path"];class xu extends wh{constructor(t,r,i){super(t,r,i),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(t,r,i,e,n){}}class Mu extends wh{constructor(){super(...arguments),this.type="feMorphology"}apply(t,r,i,e,n){}}class ku extends wh{constructor(){super(...arguments),this.type="feComposite"}apply(t,r,i,e,n){}}class Nu extends wh{constructor(t,r,i){super(t,r,i),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(t,r,i,e,n){var{document:s,blurRadius:a}=this,o=s.window?s.window.document.body:null,h=t.canvas;h.id=s.getUniqueId(),o&&(h.style.display="none",o.appendChild(h)),So(h,r,i,e,n,a),o&&o.removeChild(h)}}class Su extends wh{constructor(){super(...arguments),this.type="title"}}class Pu extends wh{constructor(){super(...arguments),this.type="desc"}}var Ou={svg:Bh,rect:$h,circle:Lh,ellipse:Ih,line:Fh,polyline:Dh,polygon:zh,path:Ch,pattern:Yh,marker:_h,defs:Xh,linearGradient:Vh,radialGradient:Uh,stop:Hh,animate:Wh,animateColor:Qh,animateTransform:Zh,font:Kh,"font-face":Jh,"missing-glyph":tu,glyph:Ah,text:Eh,tspan:Th,tref:ru,a:iu,textPath:su,image:ou,g:qh,symbol:hu,style:cu,use:fu,mask:yu,clipPath:bu,filter:wu,feDropShadow:xu,feMorphology:Mu,feComposite:ku,feColorMatrix:gu,feGaussianBlur:Nu,title:Su,desc:Pu};function ju(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),i.push.apply(i,e)}return i}function Cu(){return(Cu=Ze((function*(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=document.createElement("img");return r&&(i.crossOrigin="Anonymous"),new Promise(((r,e)=>{i.onload=()=>{r(i)},i.onerror=(t,r,i,n,s)=>{e(s)},i.src=t}))}))).apply(this,arguments)}class Au{constructor(t){var{rootEmSize:r=12,emSize:i=12,createCanvas:e=Au.createCanvas,createImage:n=Au.createImage,anonymousCrossOrigin:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.canvg=t,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=t.screen,this.rootEmSize=r,this.emSize=i,this.createCanvas=e,this.createImage=this.bindCreateImage(n,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(t,r){return"boolean"==typeof r?(i,e)=>t(i,"boolean"==typeof e?e:r):t}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:t}=this;return t[t.length-1]}set emSize(t){var{emSizeStack:r}=this;r.push(t)}popEmSize(){var{emSizeStack:t}=this;t.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every((t=>t.loaded))}isFontsLoaded(){return this.fonts.every((t=>t.loaded))}createDocumentElement(t){var r=this.createElement(t.documentElement);return r.root=!0,r.addStylesFromStyleDefinition(),this.documentElement=r,r}createElement(t){var r=t.nodeName.replace(/^[^:]+:/,""),i=Au.elementTypes[r];return void 0!==i?new i(this,t):new xh(this,t)}createTextNode(t){return new Rh(this,t)}setViewBox(t){this.screen.setViewBox(function(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?ju(Object(i),!0).forEach((function(r){ra(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):ju(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}({document:this},t))}}function Eu(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),i.push.apply(i,e)}return i}function Tu(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?Eu(Object(i),!0).forEach((function(r){ra(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Eu(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}return t}Au.createCanvas=function(t,r){var i=document.createElement("canvas");return i.width=t,i.height=r,i},Au.createImage=function(t){return Cu.apply(this,arguments)},Au.elementTypes=Ou;class Ru{constructor(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.parser=new fh(i),this.screen=new hh(t,i),this.options=i;var e=new Au(this,i),n=e.createDocumentElement(r);this.document=e,this.documentElement=n}static from(t,r){var i=arguments;return Ze((function*(){var e=i.length>2&&void 0!==i[2]?i[2]:{},n=new fh(e),s=yield n.parse(r);return new Ru(t,s,e)}))()}static fromString(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},e=new fh(i).parseFromString(r);return new Ru(t,e,i)}fork(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ru.from(t,r,Tu(Tu({},this.options),i))}forkString(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ru.fromString(t,r,Tu(Tu({},this.options),i))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var t=arguments,r=this;return Ze((function*(){r.start(Tu({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t.length>0&&void 0!==t[0]?t[0]:{})),yield r.ready(),r.stop()}))()}start(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{documentElement:r,screen:i,options:e}=this;i.start(r,Tu(Tu({enableRedraw:!0},e),t))}stop(){this.screen.stop()}resize(t){this.documentElement.resize(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,arguments.length>2&&void 0!==arguments[2]&&arguments[2])}}export default Ru;export{iu as AElement,Qh as AnimateColorElement,Wh as AnimateElement,Zh as AnimateTransformElement,Ph as BoundingBox,Wo as CB1,Qo as CB2,Zo as CB3,Ko as CB4,Ru as Canvg,Lh as CircleElement,bu as ClipPathElement,Xh as DefsElement,Pu as DescElement,Au as Document,wh as Element,Ih as EllipseElement,gu as FeColorMatrixElement,ku as FeCompositeElement,xu as FeDropShadowElement,Nu as FeGaussianBlurElement,Mu as FeMorphologyElement,wu as FilterElement,Sh as Font,Kh as FontElement,Jh as FontFaceElement,qh as GElement,Ah as GlyphElement,Gh as GradientElement,ou as ImageElement,Fh as LineElement,Vh as LinearGradientElement,_h as MarkerElement,yu as MaskElement,ph as Matrix,tu as MissingGlyphElement,sh as Mouse,Go as PSEUDO_ZERO,fh as Parser,Ch as PathElement,Oh as PathParser,Yh as PatternElement,nh as Point,zh as PolygonElement,Dh as PolylineElement,ih as Property,Jo as QB1,th as QB2,rh as QB3,Uh as RadialGradientElement,$h as RectElement,jh as RenderedElement,vh as Rotate,Bh as SVGElement,uu as SVGFontLoader,dh as Scale,hh as Screen,gh as Skew,yh as SkewX,mh as SkewY,Hh as StopElement,cu as StyleElement,hu as SymbolElement,ru as TRefElement,Th as TSpanElement,Eh as TextElement,su as TextPathElement,Su as TitleElement,bh as Transform,lh as Translate,xh as UnknownElement,fu as UseElement,eh as ViewPort,jo as compressSpaces,qo as getSelectorSpecificity,Ro as normalizeAttributeName,$o as normalizeColor,Bo as parseExternalUrl,Oo as presets,Eo as toNumbers,Co as trimLeft,Ao as trimRight,Vo as vectorMagnitude,Ho as vectorsAngle,Uo as vectorsRatio}
@@ -1 +0,0 @@
1
- import{a as e,u as t,f as r,s as o,T as n}from"./p-2f569553.js";import{t as i}from"./p-ff7a8a71.js";import{E as a}from"./p-bd90903e.js";import{T as f}from"./p-7dae0f0e.js";var s=e,u=Object.prototype.hasOwnProperty,c={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},l=Array.isArray,p=String.prototype.split,d=Array.prototype.push,m=function(e,t){d.apply(e,l(t)?t:[t])},y=Date.prototype.toISOString,v=r.default,b={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:t.encode,encodeValuesOnly:!1,format:v,formatter:r.formatters[v],indices:!1,serializeDate:function(e){return y.call(e)},skipNulls:!1,strictNullHandling:!1},w={},h=function e(r,n,i,a,f,s,u,c,d,y,v,h,g,j,k){for(var E,T=r,D=k,P=0,S=!1;void 0!==(D=D.get(w))&&!S;){var O=D.get(r);if(P+=1,void 0!==O){if(O===P)throw new RangeError("Cyclic object value");S=!0}void 0===D.get(w)&&(P=0)}if("function"==typeof u?T=u(n,T):T instanceof Date?T=y(T):"comma"===i&&l(T)&&(T=t.maybeMap(T,(function(e){return e instanceof Date?y(e):e}))),null===T){if(a)return s&&!g?s(n,b.encoder,j,"key",v):n;T=""}if("string"==typeof(E=T)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||t.isBuffer(T)){if(s){var N=g?n:s(n,b.encoder,j,"key",v);if("comma"===i&&g){for(var x=p.call(String(T),","),z="",C=0;C<x.length;++C)z+=(0===C?"":",")+h(s(x[C],b.encoder,j,"value",v));return[h(N)+"="+z]}return[h(N)+"="+h(s(T,b.encoder,j,"value",v))]}return[h(n)+"="+h(String(T))]}var H,U=[];if(void 0===T)return U;if("comma"===i&&l(T))H=[{value:T.length>0?T.join(",")||null:void 0}];else if(l(u))H=u;else{var A=Object.keys(T);H=c?A.sort(c):A}for(var B=0;B<H.length;++B){var Q=H[B],R="object"==typeof Q&&void 0!==Q.value?Q.value:T[Q];if(!f||null!==R){var V=l(T)?"function"==typeof i?i(n,Q):n:n+(d?"."+Q:"["+Q+"]");k.set(r,P);var I=o();I.set(w,k),m(U,e(R,V,i,a,f,s,u,c,d,y,v,h,g,j,I))}}return U};class g{constructor(){}static getInstance(){return g.instance||(g.instance=new g),g.instance}static init(){var e=a.getInstance().get("sparkle");this.http=s.create({baseURL:e.apiUrl,headers:{"Content-Type":"application/json"},timeout:3e4,paramsSerializer:function(e){return function(e,t){var n,i=e,a=function(e){if(!e)return b;if(null!=e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||b.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=r.default;if(void 0!==e.format){if(!u.call(r.formatters,e.format))throw new TypeError("Unknown format option provided.");o=e.format}var n=r.formatters[o],i=b.filter;return("function"==typeof e.filter||l(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:b.addQueryPrefix,allowDots:void 0===e.allowDots?b.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:b.charsetSentinel,delimiter:void 0===e.delimiter?b.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:b.encode,encoder:"function"==typeof e.encoder?e.encoder:b.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:b.encodeValuesOnly,filter:i,format:o,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:b.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:b.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:b.strictNullHandling}}(t);"function"==typeof a.filter?i=(0,a.filter)("",i):l(a.filter)&&(n=a.filter);var f=[];if("object"!=typeof i||null===i)return"";var s=c[t&&t.arrayFormat in c?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices"];n||(n=Object.keys(i)),a.sort&&n.sort(a.sort);for(var p=o(),d=0;d<n.length;++d){var y=n[d];a.skipNulls&&null===i[y]||m(f,h(i[y],y,s,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,p))}var v=f.join(a.delimiter),w=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&(w+="iso-8859-1"===a.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),v.length>0?w+v:""}(e,{encode:!1})}}),this.http.interceptors.request.use((async function(t){let r=await f.getInstance().getToken();return r&&(t.headers.common.Authorization="Bearer "+r),t.headers.common["Sparkle.CourseId"]=e.courseId,console.log(n.state.pageInfo),n.state.pageInfo&&(t.headers.common["Sparkle.CourseModuleId"]=n.state.pageInfo.courseModuleId,t.headers.common["Sparkle.SessionId"]=n.state.pageInfo.sessionId,t.headers.common["Sparkle.PageId"]=n.state.pageInfo.pageId),t}),(function(e){return Promise.reject(e)})),this.http.interceptors.response.use((async e=>(e.data.Message&&(await i.create({message:e.data.Message,duration:3e3})).present(),e.data.Failed?null:e.data)),(async e=>e.response&&e.response.data&&e.response.data.ErrorMessage?((await i.create({message:e.response.data.ErrorMessage,duration:3e3})).present(),Promise.reject(e)):e.response&&e.response.data&&400==e.response.status?((await i.create({message:e.response.data.Message,duration:3e3})).present(),Promise.reject(e.response.data)):e.response&&e.response.data&&e.response.data.Message?((await i.create({message:e.response.data.Message,duration:3e3})).present(),Promise.reject(e)):(e.request?console.log(e.request):(await i.create({message:"Unknown Error",duration:3e3})).present(),setTimeout((()=>{}),1e3),Promise.reject(e))))}}export{g as H}
@@ -1 +0,0 @@
1
- import{r as t,i,h as e,H as s,e as n}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{m as o}from"./p-d68092b7.js";import{b as p,c as h,a}from"./p-604a7987.js";const c=class{constructor(e){t(this,e),this.ionPickerColChange=i(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0}colChanged(){this.refresh()}async connectedCallback(){let t=0,i=.81;"ios"===r(this)&&(t=-.46,i=1),this.rotateFactor=t,this.scaleFactor=i,this.gesture=(await import("./p-e9431eeb.js")).createGesture({el:this.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:t=>this.onStart(t),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.gesture.enable(),this.tmrId=setTimeout((()=>{this.noAnimate=!1,this.refresh(!0)}),250)}componentDidLoad(){const t=this.optsEl;t&&(this.optHeight=t.firstElementChild?t.firstElementChild.clientHeight:0),this.refresh()}disconnectedCallback(){cancelAnimationFrame(this.rafId),clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}emitColChange(){this.ionPickerColChange.emit(this.col)}setSelected(t,i){const e=t>-1?-t*this.optHeight:0;this.velocity=0,cancelAnimationFrame(this.rafId),this.update(e,i,!0),this.emitColChange()}update(t,i,e){if(!this.optsEl)return;let s=0,n=0;const{col:r,rotateFactor:o}=this,h=r.selectedIndex=this.indexForY(-t),a=0===i?"":i+"ms",c=`scale(${this.scaleFactor})`,d=this.optsEl.children;for(let e=0;e<d.length;e++){const p=d[e],f=r.options[e],g=e*this.optHeight+t;let x="";if(0!==o){const t=g*o;Math.abs(t)<=90?(s=0,n=90,x=`rotateX(${t}deg) `):s=-9999}else n=0,s=g;const k=h===e;x+=`translate3d(0px,${s}px,${n}px) `,1===this.scaleFactor||k||(x+=c),this.noAnimate?(f.duration=0,p.style.transitionDuration=""):i!==f.duration&&(f.duration=i,p.style.transitionDuration=a),x!==f.transform&&(f.transform=x),p.style.transform=x,k!==f.selected&&(f.selected=k,k?p.classList.add(l):p.classList.remove(l))}this.col.prevSelected=h,e&&(this.y=t),this.lastIndex!==h&&(p(),this.lastIndex=h)}decelerate(){if(0!==this.velocity){this.velocity*=d,this.velocity=this.velocity>0?Math.max(this.velocity,1):Math.min(this.velocity,-1);let t=this.y+this.velocity;t>this.minY?(t=this.minY,this.velocity=0):t<this.maxY&&(t=this.maxY,this.velocity=0),this.update(t,0,!0),Math.round(t)%this.optHeight!=0||Math.abs(this.velocity)>1?this.rafId=requestAnimationFrame((()=>this.decelerate())):(this.velocity=0,this.emitColChange(),h())}else if(this.y%this.optHeight!=0){const t=Math.abs(this.y%this.optHeight);this.velocity=t>this.optHeight/2?1:-1,this.decelerate()}}indexForY(t){return Math.min(Math.max(Math.abs(Math.round(t/this.optHeight)),0),this.col.options.length-1)}onStart(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation(),a(),cancelAnimationFrame(this.rafId);const i=this.col.options;let e=i.length-1,s=0;for(let t=0;t<i.length;t++)i[t].disabled||(e=Math.min(e,t),s=Math.max(s,t));this.minY=-e*this.optHeight,this.maxY=-s*this.optHeight}onMove(t){t.event.cancelable&&t.event.preventDefault(),t.event.stopPropagation();let i=this.y+t.deltaY;i>this.minY?(i=Math.pow(i,.8),this.bounceFrom=i):i<this.maxY?(i+=Math.pow(this.maxY-i,.9),this.bounceFrom=i):this.bounceFrom=0,this.update(i,0,!1)}onEnd(t){if(this.bounceFrom>0)return this.update(this.minY,100,!0),void this.emitColChange();if(this.bounceFrom<0)return this.update(this.maxY,100,!0),void this.emitColChange();if(this.velocity=o(-f,23*t.velocityY,f),0===this.velocity&&0===t.deltaY){const i=t.event.target.closest(".picker-opt");(null==i?void 0:i.hasAttribute("opt-index"))&&this.setSelected(parseInt(i.getAttribute("opt-index"),10),g)}else{if(this.y+=t.deltaY,Math.abs(t.velocityY)<.05){const i=t.deltaY>0,e=Math.abs(this.y)%this.optHeight/this.optHeight;i&&e>.5?this.velocity=-1*Math.abs(this.velocity):!i&&e<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}refresh(t){let i=this.col.options.length-1,e=0;const s=this.col.options;for(let t=0;t<s.length;t++)s[t].disabled||(i=Math.min(i,t),e=Math.max(e,t));if(0!==this.velocity)return;const n=o(i,this.col.selectedIndex||0,e);if(this.col.prevSelected!==n||t){const t=n*this.optHeight*-1;this.velocity=0,this.update(t,g,!0)}}render(){const t=this.col,i=r(this);return e(s,{class:{[i]:!0,"picker-col":!0,"picker-opts-left":"left"===this.col.align,"picker-opts-right":"right"===this.col.align},style:{"max-width":this.col.columnWidth}},t.prefix&&e("div",{class:"picker-prefix",style:{width:t.prefixWidth}},t.prefix),e("div",{class:"picker-opts",style:{maxWidth:t.optionsWidth},ref:t=>this.optsEl=t},t.options.map(((t,i)=>e("button",{type:"button",class:{"picker-opt":!0,"picker-opt-disabled":!!t.disabled},"opt-index":i},t.text)))),t.suffix&&e("div",{class:"picker-suffix",style:{width:t.suffixWidth}},t.suffix))}get el(){return n(this)}static get watchers(){return{col:["colChanged"]}}},l="picker-opt-selected",d=.97,f=90,g=150;c.style={ios:".picker-col{display:flex;position:relative;flex:1;justify-content:center;height:100%;box-sizing:content-box;contain:content}.picker-opts{position:relative;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{justify-content:flex-start}.picker-opts-right{justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:4px;padding-right:4px;padding-top:0;padding-bottom:0;transform-style:preserve-3d}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;transform-origin:center center;height:46px;transform-style:preserve-3d;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;backface-visibility:hidden;pointer-events:auto}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{transform-origin:calc(100% - center) center}",md:".picker-col{display:flex;position:relative;flex:1;justify-content:center;height:100%;box-sizing:content-box;contain:content}.picker-opts{position:relative;flex:1;max-width:100%}.picker-opt{left:0;top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}[dir=rtl] .picker-opt,:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{justify-content:flex-start}.picker-opts-right{justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;flex:1;text-align:start;white-space:nowrap}.picker-col{padding-left:8px;padding-right:8px;padding-top:0;padding-bottom:0;transform-style:preserve-3d}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.picker-col{padding-left:unset;padding-right:unset;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px}}.picker-prefix,.picker-suffix,.picker-opts{top:77px;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}"};export{c as ion_picker_column}
@@ -1 +0,0 @@
1
- import{r as t,f as o,h as n,H as e,e as i}from"./p-ee1e0eb4.js";import{g as r}from"./p-871106e0.js";import{a,r as s}from"./p-d68092b7.js";import{h as c}from"./p-0e4de1d0.js";let d=0;const l=class{constructor(n){t(this,n),this.segmentEl=null,this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+d++,this.updateStyle=()=>{o(this)},this.updateState=()=>{this.segmentEl&&(this.checked=this.segmentEl.value===this.value)}}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),a(t,"ionSelect",this.updateState),a(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&(s(t,"ionSelect",this.updateState),s(t,"ionStyle",this.updateStyle),this.segmentEl=null)}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}get tabIndex(){return this.checked&&!this.disabled?0:-1}render(){const{checked:t,type:o,disabled:i,hasIcon:a,hasLabel:s,layout:d,segmentEl:l,tabIndex:g}=this,b=r(this);return n(e,{role:"tab","aria-selected":t?"true":"false","aria-disabled":i?"true":null,tabIndex:g,class:{[b]:!0,"in-toolbar":c("ion-toolbar",this.el),"in-toolbar-color":c("ion-toolbar[color]",this.el),"in-segment":c("ion-segment",this.el),"in-segment-color":void 0!==(null==l?void 0:l.color),"segment-button-has-label":s,"segment-button-has-icon":a,"segment-button-has-label-only":s&&!a,"segment-button-has-icon-only":a&&!s,"segment-button-disabled":i,"segment-button-checked":t,[`segment-button-layout-${d}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},n("button",{type:o,tabIndex:-1,class:"button-native",part:"native",disabled:i},n("span",{class:"button-inner"},n("slot",null)),"md"===b&&n("ion-ripple-effect",null)),n("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},n("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return i(this)}};l.style={ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;flex-basis:0;flex-direction:row;min-width:70px;min-height:28px;transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;transition:160ms opacity ease-in-out;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:2px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:2px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}}.segment-button-indicator{padding-left:2px;padding-right:2px;left:0;right:0;top:0;bottom:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.segment-button-indicator{padding-left:unset;padding-right:unset;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px}}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:#fff}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:flex;position:relative;flex:1 1 auto;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;font-kerning:none;cursor:pointer}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:var(--margin-start);margin-right:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);transform:translate3d(0, 0, 0);display:flex;position:relative;flex-direction:inherit;flex-grow:1;align-items:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{margin-left:unset;margin-right:unset;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end)}}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){.button-native{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:flex;position:relative;flex-flow:inherit;align-items:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){flex-shrink:0;order:-1;pointer-events:none}::slotted(ion-label){display:block;align-self:center;line-height:22px;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{transform-origin:left;position:absolute;opacity:0;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);transform:var(--indicator-transform);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{transform:none}.segment-button-indicator-animated{transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;max-width:360px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:8px;margin-right:0}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-start) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}}:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:0;margin-right:8px}@supports (margin-inline-start: 0) or (-webkit-margin-start: 0){:host(.segment-button-layout-icon-end) ::slotted(ion-label){margin-left:unset;margin-right:unset;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'};export{l as ion_segment_button}
@@ -1 +0,0 @@
1
- import{r as t,i,h as e,H as s,e as n}from"./p-ee1e0eb4.js";import{c as h,g as o}from"./p-871106e0.js";import{g as a}from"./p-4d4077ea.js";import{G as r}from"./p-076f0239.js";import{n as d,i as m,o as u,m as l}from"./p-d68092b7.js";import{m as c}from"./p-2033cd86.js";import{g as p}from"./p-ff7a8a71.js";import"./p-add30d46.js";import"./p-48f72e63.js";const b='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',g=class{constructor(e){t(this,e),this.ionWillOpen=i(this,"ionWillOpen",7),this.ionWillClose=i(this,"ionWillClose",7),this.ionDidOpen=i(this,"ionDidOpen",7),this.ionDidClose=i(this,"ionDidClose",7),this.ionMenuChange=i(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=r.createBlocker({disableScroll:!0}),this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=t=>{const i=p(document);i&&!i.contains(this.el)||this.trapKeyboardFocus(t,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,i){const e=this.contentEl;e&&(void 0!==i&&e.classList.remove(`menu-content-${i}`),e.classList.add(`menu-content-${t}`),e.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=d(this.side)}swipeGestureChanged(){this.updateState()}async connectedCallback(){"undefined"!=typeof customElements&&await customElements.whenDefined("ion-menu"),void 0===this.type&&(this.type=h.get("menuType","overlay"));const t=void 0!==this.contentId?document.getElementById(this.contentId):null;null!==t?(this.el.contains(t)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),this.contentEl=t,t.classList.add("menu-content"),this.typeChanged(this.type,void 0),this.sideChanged(),c._register(this),this.gesture=(await import("./p-e9431eeb.js")).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:t=>this.canStart(t),onWillStart:()=>this.onWillStart(),onStart:()=>this.onStart(),onMove:t=>this.onMove(t),onEnd:t=>this.onEnd(t)}),this.updateState()):console.error('Menu: must have a "content" element to listen for drag events on.')}componentWillLoad(){this.inheritedAttributes=m(this.el)}async componentDidLoad(){this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen}),this.updateState()}disconnectedCallback(){this.blocker.destroy(),c._unregister(this),this.animation&&this.animation.destroy(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.animation=void 0,this.contentEl=this.backdropEl=this.menuInnerEl=void 0}onSplitPaneChanged(t){this.isPaneVisible=t.detail.isPane(this.el),this.updateState()}onBackdropClick(t){this._isOpen&&this.lastOnEnd<t.timeStamp-100&&t.composedPath&&!t.composedPath().includes(this.menuInnerEl)&&(t.preventDefault(),t.stopPropagation(),this.close())}onKeydown(t){"Escape"===t.key&&this.close()}isOpen(){return Promise.resolve(this._isOpen)}isActive(){return Promise.resolve(this._isActive())}open(t=!0){return this.setOpen(!0,t)}close(t=!0){return this.setOpen(!1,t)}toggle(t=!0){return this.setOpen(!this._isOpen,t)}setOpen(t,i=!0){return c._setOpen(this,t,i)}focusFirstDescendant(){const{el:t}=this,i=t.querySelector(b);i?i.focus():t.focus()}focusLastDescendant(){const{el:t}=this,i=Array.from(t.querySelectorAll(b)),e=i.length>0?i[i.length-1]:null;e?e.focus():t.focus()}trapKeyboardFocus(t,i){const e=t.target;e&&(this.el.contains(e)?this.lastFocus=e:(this.focusFirstDescendant(),this.lastFocus===i.activeElement&&this.focusLastDescendant()))}async _setOpen(t,i=!0){return!(!this._isActive()||this.isAnimating||t===this._isOpen||(this.beforeAnimation(t),await this.loadAnimation(),await this.startAnimation(t,i),this.afterAnimation(t),0))}async loadAnimation(){const t=this.menuInnerEl.offsetWidth;t===this.width&&void 0!==this.animation||(this.width=t,this.animation&&(this.animation.destroy(),this.animation=void 0),this.animation=await c._createAnimation(this.type,this),h.getBoolean("animated",!0)||this.animation.duration(0),this.animation.fill("both"))}async startAnimation(t,i){const e=!t,s=o(this),n="ios"===s?"cubic-bezier(0.32,0.72,0,1)":"cubic-bezier(0.0,0.0,0.2,1)",h="ios"===s?"cubic-bezier(1, 0, 0.68, 0.28)":"cubic-bezier(0.4, 0, 0.6, 1)",a=this.animation.direction(e?"reverse":"normal").easing(e?h:n).onFinish((()=>{"reverse"===a.getDirection()&&a.direction("normal")}));i?await a.play():a.play({sync:!0})}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!(document.querySelector("ion-modal.show-modal")||!this.canSwipe())&&(!!this._isOpen||!c._getOpenSync()&&f(window,t.currentX,this.isEndSide,this.maxEdgeStart))}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){this.isAnimating&&this.animation?this.animation.progressStart(!0,this._isOpen?1:0):u(!1,"isAnimating has to be true")}onMove(t){if(!this.isAnimating||!this.animation)return void u(!1,"isAnimating has to be true");const i=w(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-i:i)}onEnd(t){if(!this.isAnimating||!this.animation)return void u(!1,"isAnimating has to be true");const i=this._isOpen,e=this.isEndSide,s=w(t.deltaX,i,e),n=this.width,h=s/n,o=t.velocityX,r=n/2,d=o>=0&&(o>.2||t.deltaX>r),m=o<=0&&(o<-.2||t.deltaX<-r),c=i?e?d:m:e?m:d;let p=!i&&c;i&&!c&&(p=!0),this.lastOnEnd=t.currentTime;let b=c?.001:-.001;b+=a([0,0],[.4,0],[.6,1],[1,1],l(0,h<0?.01:h,.9999))[0]||0;const g=this._isOpen?!c:c;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish((()=>this.afterAnimation(p)),{oneTimeCallback:!0}).progressEnd(g?1:0,this._isOpen?1-b:b,300)}beforeAnimation(t){u(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(v),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(x),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(t){var i;u(this.isAnimating,"_before() should be called while animating"),this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.contentEl&&(this.contentEl.classList.add(y),this.contentEl.setAttribute("aria-hidden","true")),this.ionDidOpen.emit(),(null===(i=document.activeElement)||void 0===i?void 0:i.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(v),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(y),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(x),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),!t&&this._isOpen&&this.forceClosing(),this.disabled||c._setActiveMenu(this),u(!this.isAnimating,"can not be animating")}forceClosing(){u(this._isOpen,"menu cannot be closed"),this.isAnimating=!0,this.animation.direction("reverse").play({sync:!0}),this.afterAnimation(!1)}render(){const{isEndSide:t,type:i,disabled:n,isPaneVisible:h,inheritedAttributes:a}=this,r=o(this);return e(s,{role:"navigation","aria-label":a["aria-label"]||"menu",class:{[r]:!0,[`menu-type-${i}`]:!0,"menu-enabled":!n,"menu-side-end":t,"menu-side-start":!t,"menu-pane-visible":h}},e("div",{class:"menu-inner",part:"container",ref:t=>this.menuInnerEl=t},e("slot",null)),e("ion-backdrop",{ref:t=>this.backdropEl=t,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return n(this)}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}},w=(t,i,e)=>Math.max(0,i!==e?-t:t),f=(t,i,e,s)=>e?i>=t.innerWidth-s:i<=s,v="show-menu",x="show-backdrop",y="menu-content-open";g.style={ios:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{left:0;right:auto;top:0;bottom:0;transform:translateX(-9999px);display:flex;position:absolute;flex-direction:column;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}[dir=rtl] .menu-inner,:host-context([dir=rtl]) .menu-inner{left:unset;right:unset;left:auto;right:0}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;right:auto;left:0}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;right:0;left:auto;}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;transform:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",md:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{left:0;right:auto;top:0;bottom:0;transform:translateX(-9999px);display:flex;position:absolute;flex-direction:column;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}[dir=rtl] .menu-inner,:host-context([dir=rtl]) .menu-inner{left:unset;right:unset;left:auto;right:0}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;right:auto;left:0}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;right:0;left:auto;}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;transform:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-overlay) .menu-inner{box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}"};export{g as ion_menu}
@@ -1 +0,0 @@
1
- import{H as t}from"./p-b06e2bef.js";import{d as e}from"./p-2f569553.js";const{state:s,reset:a}=e({posts:[],postsLoading:!1,createPostLoading:!1,postIdLoading:null}),o={state:s,reset:a};class n{constructor(){}static getInstance(){return n.instance||(n.instance=new n),n.instance}async getAllPosts(){o.state.postsLoading=!0;let e=await t.http.get("api/v1/Feed/GetAll");return e&&(o.state.posts=e.Data,o.state.postsLoading=!1),e}async createPost(e){o.state.createPostLoading=!0;let s=await t.http.post("api/v1/Feed/PostFeed",e);return s&&(o.state.posts=[s.Data,...o.state.posts],o.state.createPostLoading=!1),s}async createPostComment(e){o.state.postIdLoading=e.PostId;let s=await t.http.post("api/v1/Feed/Comment",e);return s&&(o.state.posts=o.state.posts.map((t=>t.Id==s.Data.ClassFeedPostId?Object.assign(Object.assign({},t),{Comments:[...t.Comments,s.Data]}):t)),o.state.postIdLoading=null),s}}export{n as F,o as f}
@@ -1,7 +0,0 @@
1
- import{r as t,i as o,e as n}from"./p-ee1e0eb4.js";import{c as e,p as r}from"./p-d68092b7.js";
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */const s=t=>"/"+t.filter((t=>t.length>0)).join("/"),i=t=>{let o,n=[""];if(null!=t){const e=t.indexOf("?");e>-1&&(o=t.substring(e+1),t=t.substring(0,e)),n=t.split("/").map((t=>t.trim())).filter((t=>t.length>0)),0===n.length&&(n=[""])}return{segments:n,queryString:o}},c=async(t,o,n,r,s=!1,i)=>{try{const a=u(t);if(r>=o.length||!a)return s;await new Promise((t=>e(a,t)));const l=o[r],h=await a.setRouteId(l.id,l.params,n,i);return h.changed&&(n="root",s=!0),s=await c(h.element,o,n,r+1,s,i),h.markVisible&&await h.markVisible(),s}catch(t){return console.error(t),!1}},a=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",u=t=>{if(!t)return;if(t.matches(a))return t;const o=t.querySelector(a);return null!=o?o:void 0},l=(t,o)=>o.find((o=>((t,o)=>{const{from:n,to:e}=o;if(void 0===e)return!1;if(n.length>t.length)return!1;for(let o=0;o<n.length;o++){const e=n[o];if("*"===e)return!0;if(e!==t[o])return!1}return n.length===t.length})(t,o))),h=(t,o)=>{const n=Math.min(t.length,o.length);let e=0;for(let r=0;r<n;r++){const n=t[r],s=o[r];if(n.id.toLowerCase()!==s.id)break;if(n.params){const t=Object.keys(n.params);if(t.length===s.segments.length){const o=t.map((t=>`:${t}`));for(let t=0;t<o.length&&o[t].toLowerCase()===s.segments[t];t++)e++}}e++}return e},f=(t,o)=>{const n=new g(t);let e,r=!1;for(let t=0;t<o.length;t++){const s=o[t].segments;if(""===s[0])r=!0;else{for(const o of s){const r=n.next();if(":"===o[0]){if(""===r)return null;e=e||[],(e[t]||(e[t]={}))[o.slice(1)]=r}else if(r!==o)return null}r=!1}}return r&&r!==(""===n.next())?null:e?o.map(((t,o)=>({id:t.id,segments:t.segments,params:d(t.params,e[o]),beforeEnter:t.beforeEnter,beforeLeave:t.beforeLeave}))):o},d=(t,o)=>t||o?Object.assign(Object.assign({},t),o):void 0,w=(t,o)=>{let n=null,e=0;for(const r of o){const o=f(t,r);if(null!==o){const t=m(o);t>e&&(e=t,n=o)}}return n},m=t=>{let o=1,n=1;for(const e of t)for(const t of e.segments)":"===t[0]?o+=Math.pow(1,n):""!==t&&(o+=Math.pow(2,n)),n++;return o};class g{constructor(t){this.segments=t.slice()}next(){return this.segments.length>0?this.segments.shift():""}}
5
- /*!
6
- * (C) Ionic http://ionicframework.com - MIT License
7
- */const b=(t,o)=>o in t?t[o]:t.hasAttribute(o)?t.getAttribute(o):null,p=t=>Array.from(t.children).filter((t=>"ION-ROUTE-REDIRECT"===t.tagName)).map((t=>{const o=b(t,"to");return{from:i(b(t,"from")).segments,to:null==o?void 0:i(o)}})),y=t=>R(v(t)),v=t=>Array.from(t.children).filter((t=>"ION-ROUTE"===t.tagName&&t.component)).map((t=>{const o=b(t,"component");return{segments:i(b(t,"url")).segments,id:o.toLowerCase(),params:t.componentProps,beforeLeave:t.beforeLeave,beforeEnter:t.beforeEnter,children:v(t)}})),R=t=>{const o=[];for(const n of t)C([],o,n);return o},C=(t,o,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const e of n.children)C(t,o,e);else o.push(t)},E=class{constructor(n){t(this,n),this.ionRouteWillChange=o(this,"ionRouteWillChange",7),this.ionRouteDidChange=o(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}async componentWillLoad(){await(u(document.body)?Promise.resolve():new Promise((t=>{window.addEventListener("ionNavWillLoad",(()=>t()),{once:!0})})));const t=await this.runGuards(this.getSegments());if(!0!==t){if("object"==typeof t){const{redirect:o}=t,n=i(o);this.setSegments(n.segments,"root",n.queryString),await this.writeNavStateRoot(n.segments,"root")}}else await this.onRoutesChanged()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",r(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",r(this.onRoutesChanged.bind(this),100))}async onPopState(){const t=this.historyDirection();let o=this.getSegments();const n=await this.runGuards(o);if(!0!==n){if("object"!=typeof n)return!1;o=i(n.redirect).segments}return this.writeNavStateRoot(o,t)}onBackButton(t){t.detail.register(0,(t=>{this.back(),t()}))}async canTransition(){const t=await this.runGuards();return!0===t||"object"==typeof t&&t.redirect}async push(t,o="forward",n){var e;if(t.startsWith(".")){const o=null!==(e=this.previousPath)&&void 0!==e?e:"/",n=new URL(t,`https://host/${o}`);t=n.pathname+n.search}let r=i(t);const s=await this.runGuards(r.segments);if(!0!==s){if("object"!=typeof s)return!1;r=i(s.redirect)}return this.setSegments(r.segments,o,r.queryString),this.writeNavStateRoot(r.segments,o,n)}back(){return window.history.back(),Promise.resolve(this.waitPromise)}async printDebug(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const o of t){const t=[];o.forEach((o=>t.push(...o.segments)));const n=o.map((t=>t.id));console.debug(`%c ${s(t)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${n.join(", ")})`)}console.groupEnd()})(y(this.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const o of t)o.to&&console.debug("FROM: ",`$c ${s(o.from)}`,"font-weight: bold"," TO: ",`$c ${s(o.to.segments)}`,"font-weight: bold");console.groupEnd()})(p(this.el))}async navChanged(t){if(this.busy)return console.warn("[ion-router] router is busy, navChanged was cancelled"),!1;const{ids:o,outlet:n}=await(async()=>{const t=[];let o,n=window.document.body;for(;o=u(n);){const e=await o.getRouteId();if(!e)break;n=e.element,e.element=void 0,t.push(e)}return{ids:t,outlet:o}})(),e=((t,o)=>{let n=null,e=0;for(const r of o){const o=h(t,r);o>e&&(n=r,e=o)}return n?n.map(((o,n)=>{var e;return{id:o.id,segments:o.segments,params:d(o.params,null===(e=t[n])||void 0===e?void 0:e.params)}})):null})(o,y(this.el));if(!e)return console.warn("[ion-router] no matching URL for ",o.map((t=>t.id))),!1;const r=(t=>{const o=[];for(const n of t)for(const t of n.segments)if(":"===t[0]){const e=n.params&&n.params[t.slice(1)];if(!e)return null;o.push(e)}else""!==t&&o.push(t);return o})(e);return r?(this.setSegments(r,t),await this.safeWriteNavState(n,e,"root",r,null,o.length),!0):(console.warn("[ion-router] router could not match path because some required param is missing"),!1)}onRedirectChanged(){const t=this.getSegments();t&&l(t,p(this.el))&&this.writeNavStateRoot(t,"root")}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),"root")}historyDirection(){var t;const o=window;null===o.history.state&&(this.state++,o.history.replaceState(this.state,o.document.title,null===(t=o.document.location)||void 0===t?void 0:t.href));const n=o.history.state,e=this.lastState;return this.lastState=n,n>e||n>=e&&e>0?"forward":n<e?"back":"root"}async writeNavStateRoot(t,o,n){if(!t)return console.error("[ion-router] URL is not part of the routing set"),!1;const e=p(this.el),r=l(t,e);let s=null;if(r){const{segments:n,queryString:e}=r.to;this.setSegments(n,o,e),s=r.from,t=n}const i=y(this.el),c=w(t,i);return c?this.safeWriteNavState(document.body,c,o,t,s,0,n):(console.error("[ion-router] the path does not match any route"),!1)}async safeWriteNavState(t,o,n,e,r,s=0,i){const c=await this.lock();let a=!1;try{a=await this.writeNavState(t,o,n,e,r,s,i)}catch(t){console.error(t)}return c(),a}async lock(){const t=this.waitPromise;let o;return this.waitPromise=new Promise((t=>o=t)),void 0!==t&&await t,o}async runGuards(t=this.getSegments(),o){if(void 0===o&&(o=i(this.previousPath).segments),!t||!o)return!0;const n=y(this.el),e=w(o,n),r=e&&e[e.length-1].beforeLeave,s=!r||await r();if(!1===s||"object"==typeof s)return s;const c=w(t,n),a=c&&c[c.length-1].beforeEnter;return!a||a()}async writeNavState(t,o,n,e,r,s=0,i){if(this.busy)return console.warn("[ion-router] router is busy, transition was cancelled"),!1;this.busy=!0;const a=this.routeChangeEvent(e,r);a&&this.ionRouteWillChange.emit(a);const u=await c(t,o,n,s,!1,i);return this.busy=!1,a&&this.ionRouteDidChange.emit(a),u}setSegments(t,o,n){this.state++,((t,o,n,e,r,c,a)=>{const u=((t,o,n)=>{let e=s(t);return o&&(e="#"+e),void 0!==n&&(e+="?"+n),e})([...i(o).segments,...e],n,a);"forward"===r?t.pushState(c,"",u):t.replaceState(c,"",u)})(window.history,this.root,this.useHash,t,o,this.state,n)}getSegments(){return((t,o,n)=>{const e=i(this.root).segments,r=n?t.hash.slice(1):t.pathname;return((t,o)=>{if(t.length>o.length)return null;if(t.length<=1&&""===t[0])return o;for(let n=0;n<t.length;n++)if(t[n]!==o[n])return null;return o.length===t.length?[""]:o.slice(t.length)})(e,i(r).segments)})(window.location,0,this.useHash)}routeChangeEvent(t,o){const n=this.previousPath,e=s(t);return this.previousPath=e,e===n?null:{from:n,redirectedFrom:o?s(o):null,to:e}}get el(){return n(this)}};export{E as ion_router}
@@ -1,4 +0,0 @@
1
- import{c as o}from"./p-d68092b7.js";import{b as t}from"./p-a208ab2d.js";
2
- /*!
3
- * (C) Ionic http://ionicframework.com - MIT License
4
- */const s="ion-content",n=".ion-content-scroll-host",a=o=>o&&"ION-CONTENT"===o.tagName,e=async t=>a(t)?(await new Promise((s=>o(t,s))),t.getScrollElement()):t,r=o=>o.querySelector(".ion-content-scroll-host")||o.querySelector("ion-content, .ion-content-scroll-host"),i=o=>o.closest("ion-content, .ion-content-scroll-host"),c=(o,t)=>a(o)?o.scrollToTop(t):Promise.resolve(o.scrollTo({top:0,left:0,behavior:t>0?"smooth":"auto"})),l=(o,t,s,n)=>a(o)?o.scrollByPoint(t,s,n):Promise.resolve(o.scrollBy({top:s,left:t,behavior:n>0?"smooth":"auto"})),h=o=>t(o,"ion-content"),m=o=>{if(a(o)){const t=o.scrollY;return o.scrollY=!1,t}return o.style.setProperty("overflow","hidden"),!0},f=(o,t)=>{a(o)?o.scrollY=t:o.style.removeProperty("overflow")};export{s as I,r as a,n as b,l as c,m as d,i as f,e as g,a as i,h as p,f as r,c as s}
@@ -1 +0,0 @@
1
- class t{constructor(){this.init()}static getInstance(){return t.instance||(t.instance=new t),t.instance}init(){if(!window)return;const t=window;this.m=new Map(Object.entries(t.Sparkle.config))}get(t,n){const s=this.m.get(t);return void 0!==s?s:n}}export{t as E}