ku4web-components 6.4.81 → 6.4.82

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 (255) hide show
  1. package/dist/cjs/{index-a9159bd6.js → index-a7b6d98c.js} +1 -1
  2. package/dist/cjs/ku4-carousel-controls.cjs.entry.js +2 -2
  3. package/dist/cjs/ku4-carousel-slide.cjs.entry.js +1 -1
  4. package/dist/cjs/ku4-carousel.cjs.entry.js +3 -3
  5. package/dist/cjs/ku4-col.cjs.entry.js +1 -1
  6. package/dist/cjs/ku4-drawer.cjs.entry.js +1 -1
  7. package/dist/cjs/ku4-feature.cjs.entry.js +2 -2
  8. package/dist/cjs/ku4-focus-trap.cjs.entry.js +26 -26
  9. package/dist/cjs/ku4-form.cjs.entry.js +3 -3
  10. package/dist/cjs/ku4-grid.cjs.entry.js +1 -1
  11. package/dist/cjs/ku4-label.cjs.entry.js +2 -2
  12. package/dist/cjs/ku4-mask.cjs.entry.js +2 -2
  13. package/dist/cjs/ku4-modal.cjs.entry.js +3 -3
  14. package/dist/cjs/ku4-panel.cjs.entry.js +1 -1
  15. package/dist/cjs/ku4-preview.cjs.entry.js +14 -43
  16. package/dist/cjs/ku4-tab-list.cjs.entry.js +4 -4
  17. package/dist/cjs/ku4-tab-panel.cjs.entry.js +3 -3
  18. package/dist/cjs/ku4-tab.cjs.entry.js +3 -3
  19. package/dist/cjs/ku4-table.cjs.entry.js +1 -1
  20. package/dist/cjs/ku4-tooltip.cjs.entry.js +2 -2
  21. package/dist/cjs/ku4-validation.cjs.entry.js +2 -2
  22. package/dist/cjs/ku4web-components.cjs.js +8 -103
  23. package/dist/cjs/loader.cjs.js +3 -19
  24. package/dist/cjs/{shadow-css-c44ea13a.js → shadow-css-78860e39.js} +1 -1
  25. package/dist/esm/{index-26cde78a.js → index-81a98b72.js} +1 -1
  26. package/dist/esm/ku4-carousel-controls.entry.js +2 -2
  27. package/dist/esm/ku4-carousel-slide.entry.js +1 -1
  28. package/dist/esm/ku4-carousel.entry.js +3 -3
  29. package/dist/esm/ku4-col.entry.js +1 -1
  30. package/dist/esm/ku4-drawer.entry.js +1 -1
  31. package/dist/esm/ku4-feature.entry.js +2 -2
  32. package/dist/esm/ku4-focus-trap.entry.js +3 -3
  33. package/dist/esm/ku4-form.entry.js +3 -3
  34. package/dist/esm/ku4-grid.entry.js +1 -1
  35. package/dist/esm/ku4-label.entry.js +2 -2
  36. package/dist/esm/ku4-mask.entry.js +2 -2
  37. package/dist/esm/ku4-modal.entry.js +3 -3
  38. package/dist/esm/ku4-panel.entry.js +1 -1
  39. package/dist/esm/ku4-preview.entry.js +5 -34
  40. package/dist/esm/ku4-tab-list.entry.js +4 -4
  41. package/dist/esm/ku4-tab-panel.entry.js +3 -3
  42. package/dist/esm/ku4-tab.entry.js +3 -3
  43. package/dist/esm/ku4-table.entry.js +1 -1
  44. package/dist/esm/ku4-tooltip.entry.js +2 -2
  45. package/dist/esm/ku4-validation.entry.js +2 -2
  46. package/dist/esm/ku4web-components.js +8 -103
  47. package/dist/esm/loader.js +3 -19
  48. package/dist/{ku4web-components/shadow-css-ef431969.js → esm/shadow-css-4d56fa31.js} +1 -1
  49. package/dist/esm-es5/{index-26cde78a.js → index-81a98b72.js} +1 -1
  50. package/dist/esm-es5/ku4-carousel-controls.entry.js +1 -1
  51. package/dist/esm-es5/ku4-carousel-slide.entry.js +1 -1
  52. package/dist/esm-es5/ku4-carousel.entry.js +1 -1
  53. package/dist/esm-es5/ku4-col.entry.js +1 -1
  54. package/dist/esm-es5/ku4-drawer.entry.js +1 -1
  55. package/dist/esm-es5/ku4-feature.entry.js +1 -1
  56. package/dist/esm-es5/ku4-focus-trap.entry.js +1 -1
  57. package/dist/esm-es5/ku4-form.entry.js +1 -1
  58. package/dist/esm-es5/ku4-grid.entry.js +1 -1
  59. package/dist/esm-es5/ku4-label.entry.js +1 -1
  60. package/dist/esm-es5/ku4-mask.entry.js +1 -1
  61. package/dist/esm-es5/ku4-modal.entry.js +1 -1
  62. package/dist/esm-es5/ku4-panel.entry.js +1 -1
  63. package/dist/esm-es5/ku4-preview.entry.js +1 -1
  64. package/dist/esm-es5/ku4-tab-list.entry.js +1 -1
  65. package/dist/esm-es5/ku4-tab-panel.entry.js +1 -1
  66. package/dist/esm-es5/ku4-tab.entry.js +1 -1
  67. package/dist/esm-es5/ku4-table.entry.js +1 -1
  68. package/dist/esm-es5/ku4-tooltip.entry.js +1 -1
  69. package/dist/esm-es5/ku4-validation.entry.js +1 -1
  70. package/dist/esm-es5/ku4web-components.js +1 -1
  71. package/dist/esm-es5/loader.js +1 -1
  72. package/dist/esm-es5/{shadow-css-ef431969.js → shadow-css-4d56fa31.js} +0 -0
  73. package/dist/index.js +1 -1
  74. package/dist/ku4web-components/index.esm.js +0 -1
  75. package/dist/ku4web-components/ku4web-components.css +1 -299
  76. package/dist/ku4web-components/ku4web-components.esm.js +1 -129
  77. package/dist/ku4web-components/ku4web-components.js +1 -1
  78. package/dist/ku4web-components/{p-5d6cf40f.system.entry.js → p-02328d34.system.entry.js} +1 -1
  79. package/dist/ku4web-components/{p-5eb48119.system.entry.js → p-050f184b.system.entry.js} +1 -1
  80. package/dist/ku4web-components/{p-ca547c71.system.entry.js → p-073cefec.system.entry.js} +1 -1
  81. package/dist/ku4web-components/{p-e10de631.entry.js → p-097ba217.entry.js} +1 -1
  82. package/dist/ku4web-components/{p-2a6d5089.entry.js → p-0adeb8e4.entry.js} +1 -1
  83. package/dist/ku4web-components/{p-6d63d17d.entry.js → p-0ce97586.entry.js} +1 -1
  84. package/dist/ku4web-components/p-0f77bef9.system.js +1 -0
  85. package/dist/ku4web-components/{p-0e222607.system.entry.js → p-136e5a03.system.entry.js} +1 -1
  86. package/dist/ku4web-components/{p-2300b0b7.system.entry.js → p-1d5a1caf.system.entry.js} +1 -1
  87. package/dist/ku4web-components/{p-b3bdc458.system.entry.js → p-288482da.system.entry.js} +1 -1
  88. package/dist/ku4web-components/{p-f0e309a9.system.entry.js → p-32e9a8d0.system.entry.js} +1 -1
  89. package/dist/ku4web-components/{p-801fab11.system.entry.js → p-3a0d1ff7.system.entry.js} +1 -1
  90. package/dist/ku4web-components/{p-b60c60e4.entry.js → p-3f147a02.entry.js} +1 -1
  91. package/dist/ku4web-components/{p-8c0cb5c1.entry.js → p-3f2a008c.entry.js} +1 -1
  92. package/dist/ku4web-components/{p-25ca27d4.entry.js → p-3f4082d5.entry.js} +1 -1
  93. package/dist/ku4web-components/{p-94dd5fad.entry.js → p-49275772.entry.js} +1 -1
  94. package/dist/ku4web-components/{p-0cc659d9.system.entry.js → p-524cef27.system.entry.js} +1 -1
  95. package/dist/ku4web-components/{p-64bcfdeb.system.entry.js → p-52d815ab.system.entry.js} +1 -1
  96. package/dist/ku4web-components/{p-92bc6bf1.system.entry.js → p-596beaad.system.entry.js} +1 -1
  97. package/dist/ku4web-components/{p-6f47f245.entry.js → p-5f9d0077.entry.js} +1 -1
  98. package/dist/ku4web-components/{p-993123b6.entry.js → p-5fcea805.entry.js} +1 -1
  99. package/dist/ku4web-components/{p-e6937d21.entry.js → p-61214088.entry.js} +1 -1
  100. package/dist/ku4web-components/{p-57ec7c89.entry.js → p-66b8247f.entry.js} +1 -1
  101. package/dist/ku4web-components/{p-341081d6.system.entry.js → p-6b9e3523.system.entry.js} +1 -1
  102. package/dist/ku4web-components/{p-03d6fb35.system.entry.js → p-6cfd9011.system.entry.js} +1 -1
  103. package/dist/ku4web-components/{p-e29d66a7.system.entry.js → p-7bfc256a.system.entry.js} +1 -1
  104. package/dist/ku4web-components/{p-dc35b1af.entry.js → p-818caf0f.entry.js} +1 -1
  105. package/dist/ku4web-components/{p-df1544c7.entry.js → p-8642aef5.entry.js} +1 -1
  106. package/dist/ku4web-components/{p-b10887b2.js → p-881e100a.js} +0 -0
  107. package/dist/ku4web-components/{p-db493d59.system.entry.js → p-95698618.system.entry.js} +1 -1
  108. package/dist/ku4web-components/{p-e2ae0504.system.js → p-96ec7b4f.system.js} +1 -1
  109. package/dist/ku4web-components/{p-d6f80a73.system.entry.js → p-a0d0c99e.system.entry.js} +1 -1
  110. package/dist/ku4web-components/{p-75161edb.system.entry.js → p-acb43765.system.entry.js} +1 -1
  111. package/dist/ku4web-components/{p-c646a177.entry.js → p-b47bb3d0.entry.js} +1 -1
  112. package/dist/ku4web-components/p-c798faf2.entry.js +1 -0
  113. package/dist/ku4web-components/{p-0c05c4ad.entry.js → p-cd0d0b40.entry.js} +1 -1
  114. package/dist/ku4web-components/{p-deb02b56.entry.js → p-cd4cdcbb.entry.js} +1 -1
  115. package/dist/ku4web-components/{p-c459bbb7.entry.js → p-d17f65a6.entry.js} +1 -1
  116. package/dist/ku4web-components/{p-01ae9e4c.system.entry.js → p-d848909c.system.entry.js} +1 -1
  117. package/dist/ku4web-components/{p-c62c66be.entry.js → p-d8868855.entry.js} +1 -1
  118. package/dist/ku4web-components/{p-0ded083e.js → p-e6b3a708.js} +1 -1
  119. package/dist/ku4web-components/{p-9f1bc248.system.entry.js → p-ea4b32de.system.entry.js} +1 -1
  120. package/dist/ku4web-components/{p-55d15007.entry.js → p-f3fbe1e6.entry.js} +1 -1
  121. package/dist/ku4web-components/{p-6bf18c7c.system.js → p-fbf3ad1e.system.js} +0 -0
  122. package/dist/ku4web-components/{p-6c5699e3.system.entry.js → p-fc0c3bf4.system.entry.js} +1 -1
  123. package/package.json +4 -4
  124. package/dist/cjs/app-globals-3a1e7e63.js +0 -5
  125. package/dist/cjs/css-shim-aaf4fec9.js +0 -6
  126. package/dist/cjs/dom-14886762.js +0 -75
  127. package/dist/cjs/index-652a3cbf.js +0 -14
  128. package/dist/cjs/index-8e9e8864.js +0 -3093
  129. package/dist/cjs/index-c904eb3a.js +0 -10
  130. package/dist/cjs/uid-eb3bec28.js +0 -11
  131. package/dist/collection/capabilities/a11y/aria.js +0 -26
  132. package/dist/collection/capabilities/angular/index.js +0 -24
  133. package/dist/collection/capabilities/decorators/deprecated.js +0 -20
  134. package/dist/collection/capabilities/decorators/index.js +0 -3
  135. package/dist/collection/capabilities/decorators/memoize.js +0 -7
  136. package/dist/collection/capabilities/dom/isFocusable.js +0 -7
  137. package/dist/collection/capabilities/dom/queryFocusable.js +0 -2
  138. package/dist/collection/capabilities/identity/uid.js +0 -6
  139. package/dist/collection/capabilities/mask/index.js +0 -5
  140. package/dist/collection/capabilities/mask/patterns/date.js +0 -40
  141. package/dist/collection/capabilities/mask/patterns/index.js +0 -7
  142. package/dist/collection/capabilities/react/index.js +0 -25
  143. package/dist/collection/capabilities/testing/html.js +0 -14
  144. package/dist/collection/capabilities/testing/styles.js +0 -14
  145. package/dist/collection/capabilities/vue/index.js +0 -28
  146. package/dist/collection/capabilities/vue3/index.js +0 -26
  147. package/dist/collection/collection-manifest.json +0 -31
  148. package/dist/collection/components/ku4-carousel/ku4-carousel.css +0 -221
  149. package/dist/collection/components/ku4-carousel/ku4-carousel.js +0 -362
  150. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.css +0 -32
  151. package/dist/collection/components/ku4-carousel-controls/ku4-carousel-controls.js +0 -112
  152. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.css +0 -3
  153. package/dist/collection/components/ku4-carousel-slide/ku4-carousel-slide.js +0 -159
  154. package/dist/collection/components/ku4-col/ku4-col.css +0 -601
  155. package/dist/collection/components/ku4-col/ku4-col.js +0 -288
  156. package/dist/collection/components/ku4-drawer/ku4-drawer.css +0 -56
  157. package/dist/collection/components/ku4-drawer/ku4-drawer.js +0 -163
  158. package/dist/collection/components/ku4-feature/ku4-feature.js +0 -70
  159. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.css +0 -3
  160. package/dist/collection/components/ku4-focus-trap/ku4-focus-trap.js +0 -441
  161. package/dist/collection/components/ku4-form/ku4-form.js +0 -225
  162. package/dist/collection/components/ku4-grid/ku4-grid.css +0 -751
  163. package/dist/collection/components/ku4-grid/ku4-grid.js +0 -408
  164. package/dist/collection/components/ku4-label/ku4-label.css +0 -36
  165. package/dist/collection/components/ku4-label/ku4-label.js +0 -115
  166. package/dist/collection/components/ku4-mask/ku4-mask.css +0 -3
  167. package/dist/collection/components/ku4-mask/ku4-mask.js +0 -458
  168. package/dist/collection/components/ku4-modal/ku4-modal.css +0 -85
  169. package/dist/collection/components/ku4-modal/ku4-modal.js +0 -208
  170. package/dist/collection/components/ku4-panel/ku4-panel.css +0 -14
  171. package/dist/collection/components/ku4-panel/ku4-panel.js +0 -119
  172. package/dist/collection/components/ku4-preview/ku4-preview.css +0 -23
  173. package/dist/collection/components/ku4-preview/ku4-preview.js +0 -266
  174. package/dist/collection/components/ku4-tab/ku4-tab.css +0 -82
  175. package/dist/collection/components/ku4-tab/ku4-tab.js +0 -191
  176. package/dist/collection/components/ku4-tab-list/ku4-tab-list.css +0 -6
  177. package/dist/collection/components/ku4-tab-list/ku4-tab-list.js +0 -118
  178. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.css +0 -26
  179. package/dist/collection/components/ku4-tab-panel/ku4-tab-panel.js +0 -166
  180. package/dist/collection/components/ku4-table/ku4-table.css +0 -116
  181. package/dist/collection/components/ku4-table/ku4-table.js +0 -120
  182. package/dist/collection/components/ku4-tooltip/ku4-tooltip.css +0 -56
  183. package/dist/collection/components/ku4-tooltip/ku4-tooltip.js +0 -274
  184. package/dist/collection/components/ku4-validation/ku4-validation.css +0 -19
  185. package/dist/collection/components/ku4-validation/ku4-validation.js +0 -364
  186. package/dist/collection/components/ku4-validation/validate.js +0 -14
  187. package/dist/collection/index.js +0 -1
  188. package/dist/collection/security.js +0 -27
  189. package/dist/esm/app-globals-0f993ce5.js +0 -3
  190. package/dist/esm/css-shim-091f949f.js +0 -4
  191. package/dist/esm/dom-a385e381.js +0 -73
  192. package/dist/esm/index-3e1e5aa3.js +0 -3
  193. package/dist/esm/index-516c5188.js +0 -3057
  194. package/dist/esm/index-7ff6e718.js +0 -3
  195. package/dist/esm/shadow-css-ef431969.js +0 -388
  196. package/dist/esm/uid-9dbd7ad0.js +0 -9
  197. package/dist/ku4web-components/app-globals-0f993ce5.js +0 -3
  198. package/dist/ku4web-components/app-globals-497eb362.system.js +0 -1
  199. package/dist/ku4web-components/css-shim-091f949f.js +0 -4
  200. package/dist/ku4web-components/css-shim-c5bffe6b.system.js +0 -1
  201. package/dist/ku4web-components/dom-99eb7b76.system.js +0 -21
  202. package/dist/ku4web-components/dom-a385e381.js +0 -73
  203. package/dist/ku4web-components/index-380cbe3a.system.js +0 -1
  204. package/dist/ku4web-components/index-3e1e5aa3.js +0 -3
  205. package/dist/ku4web-components/index-516c5188.js +0 -3057
  206. package/dist/ku4web-components/index-7d482e8a.system.js +0 -1
  207. package/dist/ku4web-components/index-7ff6e718.js +0 -3
  208. package/dist/ku4web-components/index-fd0c89d0.system.js +0 -1
  209. package/dist/ku4web-components/index.system.js +0 -1
  210. package/dist/ku4web-components/ku4-carousel-controls.entry.js +0 -89
  211. package/dist/ku4web-components/ku4-carousel-controls.system.entry.js +0 -1
  212. package/dist/ku4web-components/ku4-carousel-slide.entry.js +0 -47
  213. package/dist/ku4web-components/ku4-carousel-slide.system.entry.js +0 -1
  214. package/dist/ku4web-components/ku4-carousel.entry.js +0 -168
  215. package/dist/ku4web-components/ku4-carousel.system.entry.js +0 -1
  216. package/dist/ku4web-components/ku4-col.entry.js +0 -75
  217. package/dist/ku4web-components/ku4-col.system.entry.js +0 -1
  218. package/dist/ku4web-components/ku4-drawer.entry.js +0 -35
  219. package/dist/ku4web-components/ku4-drawer.system.entry.js +0 -1
  220. package/dist/ku4web-components/ku4-feature.entry.js +0 -29
  221. package/dist/ku4web-components/ku4-feature.system.entry.js +0 -1
  222. package/dist/ku4web-components/ku4-focus-trap.entry.js +0 -323
  223. package/dist/ku4web-components/ku4-focus-trap.system.entry.js +0 -1
  224. package/dist/ku4web-components/ku4-form.entry.js +0 -112
  225. package/dist/ku4web-components/ku4-form.system.entry.js +0 -1
  226. package/dist/ku4web-components/ku4-grid.entry.js +0 -108
  227. package/dist/ku4web-components/ku4-grid.system.entry.js +0 -1
  228. package/dist/ku4web-components/ku4-label.entry.js +0 -70
  229. package/dist/ku4web-components/ku4-label.system.entry.js +0 -1
  230. package/dist/ku4web-components/ku4-mask.entry.js +0 -342
  231. package/dist/ku4web-components/ku4-mask.system.entry.js +0 -1
  232. package/dist/ku4web-components/ku4-modal.entry.js +0 -75
  233. package/dist/ku4web-components/ku4-modal.system.entry.js +0 -1
  234. package/dist/ku4web-components/ku4-panel.entry.js +0 -49
  235. package/dist/ku4web-components/ku4-panel.system.entry.js +0 -1
  236. package/dist/ku4web-components/ku4-preview.entry.js +0 -128
  237. package/dist/ku4web-components/ku4-preview.system.entry.js +0 -1
  238. package/dist/ku4web-components/ku4-tab-list.entry.js +0 -76
  239. package/dist/ku4web-components/ku4-tab-list.system.entry.js +0 -1
  240. package/dist/ku4web-components/ku4-tab-panel.entry.js +0 -72
  241. package/dist/ku4web-components/ku4-tab-panel.system.entry.js +0 -1
  242. package/dist/ku4web-components/ku4-tab.entry.js +0 -63
  243. package/dist/ku4web-components/ku4-tab.system.entry.js +0 -1
  244. package/dist/ku4web-components/ku4-table.entry.js +0 -79
  245. package/dist/ku4web-components/ku4-table.system.entry.js +0 -1
  246. package/dist/ku4web-components/ku4-tooltip.entry.js +0 -120
  247. package/dist/ku4web-components/ku4-tooltip.system.entry.js +0 -1
  248. package/dist/ku4web-components/ku4-validation.entry.js +0 -162
  249. package/dist/ku4web-components/ku4-validation.system.entry.js +0 -1
  250. package/dist/ku4web-components/ku4web-components.system.js +0 -1
  251. package/dist/ku4web-components/p-019be0a7.entry.js +0 -1
  252. package/dist/ku4web-components/p-e641f14e.system.js +0 -1
  253. package/dist/ku4web-components/shadow-css-27708fdd.system.js +0 -13
  254. package/dist/ku4web-components/uid-9dbd7ad0.js +0 -9
  255. package/dist/ku4web-components/uid-fb867945.system.js +0 -1
@@ -1,3 +0,0 @@
1
- class t{static isNull(e){return null===e}static isEmpty(e){return t.isString(e)&&""===e||t.isArray(e)&&e.length<1||t.isObjectLiteral(e)&&Object.keys(e).length<1}static isUndefined(e){return void 0===e}static isZero(e){return 0===e}static exists(e){return !(t.isUndefined(e)||t.isNull(e))}static isNullOrEmpty(e){return !t.exists(e)||t.isEmpty(e)}static isArray(e){return Array.isArray(e)}static isBool(e){return "boolean"==typeof e}static isTrue(e){return t.isBool(e)&&!0===e}static isFalse(e){return t.isBool(e)&&!1===e}static isDate(e){return e instanceof Date}static isNumber(e){return ("number"==typeof e||e instanceof Number)&&!isNaN(e)}static isEven(e){return this.isNumber(e)&&!this.isZero(e)&&e%2==0}static isOdd(e){return this.isNumber(e)&&!this.isZero(e)&&!this.isEven(e)}static isString(e){return "string"==typeof e||e instanceof String}static isFunction(e){return e instanceof Function}static isAsyncFunction(e){try{return "AsyncFunction"===Object.getPrototypeOf(e).constructor.name||t.isFunction(e)&&/^async/.test(e.toString())||t.isFunction(e().then)}catch(e){return !1}}static isPromise(e){return e instanceof Promise}static isObject(e){return t.exists(e)&&"object"==typeof e&&!(t.isBool(e)||t.isNumber(e)||t.isDate(e)||t.isArray(e)||t.isString(e)||t.isFunction(e))}static isObjectLiteral(e){return t.isObject(e)&&e.constructor==={}.constructor}static isTruthy(e){return !t.isFalsy(e)}static isFalsy(e){return t.isZero(e)||t.isFalse(e)||t.isNullOrEmpty(e)||isNaN(e)}}function e(...e){return "".concat(...e)}function r(e,...t){return t.reduce(((e,t,r)=>e.replace(new RegExp(`\\{${r}\\}`,"g"),t&&t.toString?t.toString():t)),e)}function i(e){return s(n(e))}function s(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/^[\s\n]*/,""):e}function n(e){return t.exists(e)&&t.isFunction(e.replace)?e.replace(/[\s\n]*$/,""):e}var a=Object.freeze({__proto__:null,build:e,chunk:function(e,r=0){if(!t.isString(e)||Number.isNaN(r)||r<0)return [];if(r<e.length){let t=0;const n=r||e.length,s=[];for(;t<e.length;)s.push(e.slice(t,t+n)),t+=n;return s}return [e]},format:r,trim:i,trimStart:s,trimEnd:n,capitalize:function(e=""){return (e||"").charAt(0).toUpperCase()+(e||"").slice(1).toLowerCase()},mask:function(e,r,n="_"){return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((e,t)=>e.replace(new RegExp(n),t)),r)},unmask:function(e,r,n="_"){const s=new RegExp(n);return t.isFunction(r)?r(e):t.isString(r)&&e.split("").reduce(((e,t,n)=>!s.test(t)&&s.test(r.charAt(n))?e+t:e),"")}});function h(e,t){try{return e()}catch{return t}}let l;h.async=async(e,t)=>{try{return await e()}catch{return t}};class d{constructor(e,t,r){if(t<1||t>12)throw new Error("Invalid month at Assert.DayPoint");if(r<1||r>y(t,e))throw new Error("Invalid date at DayPoint");this._value=arguments.length>=3?new Date(e,t-1,r):new Date,this._day=this._value.getDay(),this._date=r,this._month=t,this._year=e;}get value(){return this._value}get day(){return this._day}get date(){return this._date}get month(){return this._month}get year(){return this._year}get shortYear(){const e=this._year.toString();return parseInt(e.substr(e.length-2))}get isWeekday(){const e=this._day;return e>0&&e<6}get isWeekend(){return !this.isWeekday}get isLeapYear(){return f(this._year)}get nextDay(){return p(this,1,0,0)}get prevDay(){return p(this,-1,0,0)}get nextMonth(){return p(this,0,1,0)}get prevMonth(){return p(this,0,-1,0)}get nextYear(){return p(this,0,0,1)}get prevYear(){return p(this,0,0,-1)}get firstDayOfMonth(){return new d(this._year,this._month,1)}get lastDayOfMonth(){return new d(this._year,this._month,y(this._month,this._year))}add(e,t,r){function n(e,t,r){let n=e,s=t;for(;s--;)n=n[r];return n}const{abs:s}=Math,o=s(e),i=s(r),a=s(t),c=r<0?"prevDay":"nextDay",u=t<0?"prevMonth":"nextMonth";return n(n(n(this,o,e<0?"prevYear":"nextYear"),a,u),i,c)}isBefore(e){return !(this.isAfter(e)||this.equals(e))}isAfter(e){const t=this._year,r=e.year,n=this._month,s=e.month;return t>r||t===r&&n>s||t===r&&n===s&&this._date>e.date}equals(e){return this._year===e.year&&this._month===e.month&&this._date===e.date}toString(e="mm/dd/yyyy"){const t=/y{3,}/i.test(e)?this._year:this.shortYear,n=this._month,s=this._date,o=/m{2}/i.test(e)&&n<10?"0{1}":"{1}",i=/d{2}/i.test(e)&&s<10?"0{2}":"{2}";return r(e.replace(/y+/gi,"{0}").replace(/m+/gi,o).replace(/d+/gi,i),t,n,s)}toDate(){return this._value}toJson(){return this._value.toJSON()}static canParse(e){return t.isString(e)||t.isNumber(e)||t.isDate(e)?!isNaN(new Date(e).valueOf()):e instanceof d}static parse(e){if(e instanceof d)return e;let n=t.isString(e)?i(e).replace(/T\d{2}:\d{2}:\d{2}(.\d+)?Z/,""):e;if(/^\d{4}-\d{1,2}-\d{1,2}$/.test(n)){const e=n.split("-"),[t]=e;e.push(t),e.shift(),n=e.join("/");}const s=new Date(n);if(!t.exists(n)||Number.isNaN(s.valueOf()))throw new Error(r("Cannot parse value= {0}",n));return new d(s.getFullYear(),s.getMonth()+1,s.getDate())}static tryParse(e){return h((()=>d.parse(e)),null)}static assumeNow(e){l=d.parse(e);}static get today(){return l||d.parse(new Date)}}function y(e,r){return 2===e?f(r)?29:28:e<8&&t.isEven(e)||e>7&&t.isOdd(e)?30:31}function f(t){const r=t.toString().split(/\B/);return parseFloat(e(r[r.length-2],r[r.length-1]))%4==0}function p(e,t,r,n){const s=e.month,o=e.year,i=e.date,a=r,c=n;let u=i+t,l=s+a,h=o+c;if(i+t>y(s,o)&&(u=1,l=s+a+1),i+t<1){const t=e.prevMonth;u=y(t.month,t.year),l=s+a-1;}return l>12&&(l=1,h=o+c+1),l<1&&(l=12,h=o+c-1),new d(h,l,u)}function m(e,t=0){const r=Math.pow(10,-t);return Math.round(parseFloat((e*r).toFixed(Math.abs(t))))/r}function g(e,t=0){return m(e+5*Math.pow(10,t-1),t)}function _(e,t=0){return 0===e?0:m(e-5*Math.pow(10,t-1),t)}function w(e,t=0){return e<0?g(e,t):_(e,t)}function x(e){const t=(e,r=0,n=1)=>0<e?t(--e,n,r+n):r;return t(e)}function v(e){let t=0,r=1,n=0;for(;e>1;)n=t,t=r,r+=n,e--;return e<1?t:r}function b(e,t=0){const r=parseInt(e);return Number.isNaN(r)?t:r}var N=Object.freeze({__proto__:null,random:function(e=0,t=1){return Math.random()*(t-e)+e},round:m,roundUp:g,roundDown:_,roundTowardZero:w,gcd:function e(t,r){return 0===r?Math.abs(t):e(r,t%r)},fib:x,fib2:v,fibArray:function(e){return Array(e).fill(0).map((()=>x(--e))).reverse()},fib2Array:function(e){return Array(e).fill(0).map((()=>v(--e))).reverse()},tryParseInt:b,tryParseFloat:function(e,t=0){const r=parseFloat(e);return Number.isNaN(r)?t:r}});class ${constructor(e=0,r=0){if(!t.isNumber(e)||!t.isNumber(r))throw new Error("Coord requires numeric x and y values");this._x=e,this._y=r;}get x(){return this._x}get y(){return this._y}get value(){return {x:this.x,y:this.y}}get half(){return this.divide(new $(2,2))}get abs(){return new $(Math.abs(this.x),Math.abs(this.y))}equals(e){return this.x===e.x&&this.y===e.y}add(e){return new $(this.x+e.x,this.y+e.y)}subtract(e){return new $(this.x-e.x,this.y-e.y)}multiply(e){return new $(this.x*e.x,this.y*e.y)}divide(e){return new $(this.x/e.x,this.y/e.y)}round(e=0){return new $(m(this.x,e),m(this.y,e))}toString(){return `(${this.x},${this.y})`}static canParse(e){return t.isArray(e)?!(Number.isNaN(e[0])||Number.isNaN(e[1])):t.isObjectLiteral(e)&&"x"in e&&"y"in e?!(Number.isNaN(e.x)||Number.isNaN(e.y)):e instanceof $}static parse(e){return t.exists(e)?e instanceof $?e:t.isArray(e)?new $(e[0],e[1]):t.isObjectLiteral(e)&&t.exists(e.x)&&t.exists(e.y)?new $(e.x,e.y):null:null}static tryParse(e){return h((()=>$.parse(e)),null)}}class F extends ${constructor(e=0,t=0){super(e,t),this._lengthSquared=Math.pow(e,2)+Math.pow(t,2),this._magnitude=Math.sqrt(this._lengthSquared),this._unitNormalX=0===e&&0===t?0:e/this._magnitude,this._unitNormalY=0===e&&0===t?0:t/this._magnitude;}get magnitude(){return this._magnitude}get isZero(){return 0===this.x&&0===this.y}get normal(){return new F(this._unitNormalX,this._unitNormalY)}get invert(){return new F(-this.x,-this.y)}get norm(){return new F(Math.abs(this.x),Math.abs(this.y))}get perpendicular(){return new F(-this.y,this.x)}equals(e){return e instanceof F&&this.x===e.x&&this.y===e.y}add(e){return e instanceof F?new F(this.x+e.x,this.y+e.y):null}dot(e){return e instanceof F?this.x*e.x+this.y*e.y:null}perpendicularAtTo(e){if(!(e instanceof F))return null;const t=e.add(this.projectionOfOnto(e).invert);return new F(t.x,t.y)}projectionOfOnto(e){if(!(e instanceof F))return null;const t=e.normal.scale(this.dot(e.normal));return new F(t.x,t.y)}scale(e){return new F(this.x*e,this.y*e)}unitNormalDot(e){return e instanceof F?this.normal.x*e.normal.x+this.normal.y*e.normal.y:null}reflect(e){if(!(e instanceof F))return null;if(e.isZero)return this;const t=e.normal;return this.add(t.scale(2*t.dot(this)).invert)}round(e=0){return new F(m(this.x,e),m(this.y,e))}}class O extends ${constructor(e,t){super(e,t);}isAbove(e){return this.y<e.y}isBelow(e){return this.y>e.y}isLeftOf(e){return this.x<e.x}isRightOf(e){return this.x>e.x}distanceFrom(e){return new F(this.x-e.x,this.y-e.y)}distanceTo(e){return this.distanceFrom(e).invert}static canParse(e){return e instanceof O||$.canParse(e)}static parse(e){if(e instanceof O)return e;const t=$.parse(e);return new O(t.x,t.y)}static tryParse(e){return h((()=>O.parse(e)),null)}}function k(){return Math.random().toString().substr(2)}function Z(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}var R=Object.freeze({__proto__:null,uid:k,uuid:Z,suid:function(){return Symbol(k())},suuid:function(){return Symbol(Z())}});Object.freeze({__proto__:null,pattern:e=>e.toString().replace(/(^\/)|(\/$)/g,"").replace(/\\/g,"\\"),escape:e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),alpha:/^[A-z]+$/,alphaNumeric:/^[A-z0-9]+$/,base64:/^[A-z0-9=]+$/,dataUrl:/^\s*data:([a-z]+\/[a-z0-9+-]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=._~:@/?%\s-]*\s*$/i,email:/^\w+([.\w-]+)?@\w+([.\w-]+)?\.[A-Za-z0-9]{2,}$/,empty:/^$/,numeric:/^-?[0-9]+$/,script:/(<script[A-z0-9\n\s\t\r.={([\])}'",;!&|$/#:<>*?+\u0000-\u0037\u00C2\u00A0\u2122-]*?<\/script>)/,uid:/^\d{14,}$/i,url:/^(https?:\/\/)?[^{}\\:]+\.[A-z0-9]{2,12}(\/[^?\s]+)*\/?(\?([^=?#]+=[^=?#]*(&[^=?#]+=[^=?#]*)*(#.*)?)?)?$/,uuid:/^[{(]?[0-9A-F]{8}[-]?([0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$/i});class Cookie{static serialize(e,r=defaultParams){try{if(t.isUndefined(e))throw new Error;const{name:n,expires:s,path:o,domain:i,secure:a}=Object.assign(defaultParams,r),c=kvPair(n,e),u=d.canParse(s)?kvPair("; expires",d.parse(s).toDate().toGMTString()):"",l=o?kvPair("; path",o.split("/").map((e=>encodeURIComponent(e))).join("/")):"",h=i?kvPair("; domain",encodeURIComponent(i)):"";return c+u+l+h+(a?"; secure":"")}catch(t){throw new Error(a.format("Cannot serialize {0}",e))}}static deserialize(e){try{return read$1(e)[1]}catch(t){throw new Error(a.format("Cannot deserialize {0}",e))}}static read(e){try{const[t,r]=read$1(e);return {name:t,value:r}}catch(t){throw new Error(a.format("Cannot read {0}",e))}}}const defaultParams={name:R.uid(),expires:d.today.nextYear.toDate(),path:"/",domain:null,secure:!1},kvPair=(e,t)=>`${e}=${t}`,read$1=e=>/;/.test(e)?e.substring(0,e.search(";")).split("="):e.split("=");class Device{static get orientation(){const{screen:e}=window,t=(e.orientation||{}).type||e.mozOrientation||e.msOrientation,r=window.orientation;return t===Device.landscapePrimary||90===r?Device.landscapePrimary:t===Device.landscapeSecondary||-90===r?Device.landscapeSecondary:t===Device.portraitPrimary||0===r?Device.portraitPrimary:t===Device.portraitSecondary||180===r?Device.portraitSecondary:void 0}static get landscapePrimary(){return "landscape-primary"}static get landscapeSecondary(){return "landscape-secondary"}static get portraitPrimary(){return "portrait-primary"}static get portraitSecondary(){return "portrait-secondary"}static get isMobile(){return /Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(window.navigator.userAgent)}}const onPreventScroll=new Set,onResumeScroll=new Set;let scroll,lastPageYOffset,lastPageXOffset,scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1;class Document{static get scrollbarWidth(){return window.innerWidth-document.documentElement.clientWidth}static get isScrollPrevented(){return t.exists(Document.scrollY)}static preventScroll(){try{onPreventScroll.forEach((e=>e()));}catch(e){}Document.position=document.body.style.position,Document.offsetY=document.body.style.top,Document.offsetX=document.body.style.left,Document.width=document.body.style.width,Document.height=document.body.style.height,Document.documentWidth=document.documentElement.style.width,Document.documentWidth=document.documentElement.style.width,Document.documentHeight=document.documentElement.style.height,Document.overflowY=document.documentElement.style.overflowY,Document.scrollX=window.scrollX||window.pageXOffset,Document.scrollY=window.scrollY||window.pageYOffset;const{scrollbarWidth:e}=Document;document.body.style.position="fixed",document.body.style.left=`-${Document.scrollX}px`,document.body.style.top=`calc(-${Document.scrollY}px - ${window.getComputedStyle(document.body)["padding-top"]} - ${window.getComputedStyle(document.body)["margin-top"]})`,document.body.style.width=`calc(100vw - ${e}px - ${window.getComputedStyle(document.body)["padding-left"]} - ${window.getComputedStyle(document.body)["padding-right"]} - ${window.getComputedStyle(document.body)["margin-left"]} - ${window.getComputedStyle(document.body)["margin-right"]})`,document.documentElement.style.width="100wh",document.documentElement.style.height="100vh",document.documentElement.style.overflowY=e&&"scroll";}static resumeScroll(){try{onResumeScroll.forEach((e=>e()));}catch(e){}document.body.style.position=Document.position,document.body.style.top=Document.offsetY,document.body.style.left=Document.offsetX,document.body.style.width=Document.width,document.body.style.height=Document.height,document.documentElement.style.width=Document.documentWidth,document.documentElement.style.height=Document.documentHeight,document.documentElement.style.overflowY=Document.overflowY,window.scrollTo(Document.scrollX,Document.scrollY),Document.position=null,Document.offsetY=null,Document.offsetX=null,Document.width=null,Document.height=null,Document.documentWidth=null,Document.documentHeight=null,Document.overflowY=null,Document.scrollX=null,Document.scrollY=null;}static onPreventScroll(e){onPreventScroll.add(e);}static onResumeScroll(e){onResumeScroll.add(e);}static get scroll(){return scroll||(scroll=new Scroll,lastPageYOffset=window.pageYOffset,lastPageXOffset=window.pageXOffset,scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1,window.addEventListener("unload",(()=>scroll.unload()))),scroll}}const updateScrollValue=()=>{const e=window.pageYOffset,t=window.pageXOffset;scrollIsDown=e>lastPageYOffset,scrollIsUp=e<lastPageYOffset,scrollIsRight=t>lastPageXOffset,scrollIsLeft=t<lastPageXOffset,lastPageYOffset=e||window.pageYOffset,lastPageXOffset=t||window.pageXOffset;};class Scroll{constructor(){document.addEventListener("scroll",updateScrollValue,{passive:!0});}get down(){return scrollIsDown}get up(){return scrollIsUp}get left(){return scrollIsLeft}get right(){return scrollIsRight}unload(){document.removeEventListener("scroll",updateScrollValue),scrollIsDown=!1,scrollIsUp=!1,scrollIsLeft=!1,scrollIsRight=!1,lastPageYOffset=window.pageYOffset,lastPageXOffset=window.pageXOffset,scroll=null;}}function encodeBase64(e,r=!1){if(!t.isString(e))throw new Error("Cannot encode non-string values.");const n=window.btoa(e);return r?n.replace(/=/g,""):n}function decodeBase64(e){if(!t.isString(e))throw new Error("Cannot encode non-string values.");return window.atob(e)}function encodeUtf8(e){if(!t.isString(e))throw new Error("Cannot encode non-string values.");return decodeURIComponent(encodeURIComponent(e))}function decodeUtf8(e){if(!t.isString(e))throw new Error("Cannot decode non-string values.");return decodeURIComponent(encodeURIComponent(e))}class Json{static serialize(e){if(t.isFunction(e))return;if(!t.exists(e))return e;if(!t.isArray(e)&&!t.isObject(e))return e.toString();const r=t.isArray(e)?"[{0}]":"{{0}}",n=[];return Object.keys(e).forEach((r=>{const s=e[r];if(t.isUndefined(s))return;const o=t.isNumber(s)?s:t.isDate(s)?`"${d.parse(s).toJson()}"`:t.isString(s)?`"${serializeString(s)}"`:Json.serialize(s);n[n.length]=(t.isObject(e)&&!t.isArray(e)?`"${r}":`:"")+o;})),a.format(r,n)}static deserialize(e){return /function|(=$)/i.test(e)?e:Json.deserialize_unsafe(e)}static deserialize_unsafe(value){try{const result=t.isString(value)?eval(`(${deserializeString(value)})`):value;return t.exists(result)?t.isNullOrEmpty(result.tagName)&&(t.isObject(result)||t.isArray(result))?(Object.keys(result).forEach((e=>{const r=result[e];(t.isObject(r)||t.isArray(r))&&(result[e]=Json.deserialize(r)),/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(r)&&d.canParse(r)&&(result[e]=d.parse(r).toDate());})),result):/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(result)?d.parse(result).toDate():result:result}catch(e){throw new Error(a.format("Cannot deserialize {0}",value))}}static encode(e,t=!1){try{return encodeBase64(Json.serialize(e),t)}catch(t){throw new Error(a.format("Cannot encode {0}",e))}}static decode(e){try{return Json.deserialize(decodeBase64(e))}catch(t){throw new Error(a.format("Cannot decode {0}",e))}}}function serializeString(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\//g,"/").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")}function deserializeString(e){return e.replace(/\\\//g,"/").replace(/\\\\f/g,"\\f").replace(/\\\\n/g,"\\n").replace(/\\\\r/g,"\\r").replace(/\\\\t/g,"\\t")}class QueryString{static serialize(e){try{let r="";return Object.keys(e).forEach((n=>{const s=e[n],o=t.isDate(s)?d.parse(s).toJson():s;r+=a.format("&{0}={1}",encodeURIComponent(n),encodeURIComponent(Json.serialize(o)));})),r.replace(/^&/,"")}catch(t){throw new Error(a.format("Cannot serialize {0}",e))}}static deserialize(e){if(/\??[^\s"'<>]+=[^\s"'<>]+/.test(e)){const t=e.replace(/.*\?/,"").split("&"),r={};return t.forEach((e=>{const[t,n]=e.split("="),s=/^null$|^true$|^false$|^\d+(\.\d+?)?$|^\[.*]$|^{.*}$/.test(n)?n:`"${n}"`;r[decodeURIComponent(t)]=Json.deserialize(decodeURIComponent(s));})),r}}}var worker=e=>{const t=e.toString(),r=t.indexOf("{")+1,n=t.lastIndexOf("}"),s=/(=>)/.test(t)&&!/{/gm.test(t)?`${t.replace("=>","=> {")}}`:t.substring(r,n),o=new self.Blob([s],{type:"text/javascript"});return new Worker(URL.createObjectURL(o))},connection=()=>{const e=self.indexedDB||self.mozIndexedDB||self.webkitIndexedDB||self.msIndexedDB;function t(t){if(!/^[A-z][A-z0-9]*$/.test(t))throw new Error("Invalid collection name. Must be alphanumeric and begin with an alpha character");return new Promise(((r,n)=>{try{const s=e.open(t);s.onerror=()=>{n(new Error("Error opening IndexedDB."));},s.onupgradeneeded=e=>{e.target.result.createObjectStore(t,{autoIncrement:!1});},s.onsuccess=()=>{r(s.result);};}catch(e){n(e);}}))}onmessage=function(e){const r=e.data[0],n=e.data[1],s=e.data[2];try{"read"===r&&function(e){return t(e).then((t=>new Promise(((r,n)=>{const s=t.transaction([e],"readonly").objectStore(e).get(1);s.onsuccess=e=>{t.close(),r(e.target.result);},s.onerror=()=>{t.close(),n(s.error);};}))))}(n).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message]))),"write"===r&&function(e,r){return t(e).then((t=>new Promise(((n,s)=>{const o=t.transaction([e],"readwrite").objectStore(e).put(r,1);o.onsuccess=e=>{t.close(),n(e.target.result);},o.onerror=()=>{t.close(),s(o.error);};}))))}(n,s).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message]))),"remove"===r&&function(e){return t(e).then((t=>new Promise(((r,n)=>{const s=t.transaction([e],"readwrite").objectStore(e).delete(1);s.onsuccess=e=>{t.close(),r(e.target.result);},s.onerror=()=>{t.close(),n(s.error);};}))))}(n).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message]))),"drop"===r&&function(e){return t(e).then((t=>(t.onversionchange=()=>t.close(),new Promise(((t,r)=>{const n=indexedDB.deleteDatabase(e);n.onsuccess=()=>{t(!0);},n.onerror=()=>{r(n.error);},n.onblocked=()=>{r(n.error);};})))))}(n).then((e=>postMessage([r,n,e]))).catch((e=>postMessage(["error",e.message])));}catch(e){postMessage(["error",e.message]);}};};const validCollection=/^[A-z]+$/;let connectionThread;class Store{static get connected(){return t.exists(connectionThread)}static connect(){try{return Store.connected||(connectionThread=worker(connection)),Store}catch{throw new Error("Store could not connect.")}}static disconnect(){try{if(Store.connected)return connectionThread.terminate(),connectionThread=null,Store}catch{throw new Error("Store could not be disconnected.")}}static async read(e){return new Promise(((r,n)=>{if(validCollection.test(e))if(t.exists(connectionThread)){const t=s=>{const[o,i,a]=s.data;"error"===o&&i===e&&(n(new Error(a)),connectionThread.removeEventListener("message",t)),"read"===o&&i===e&&(r(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["read",e]);}else n(new Error("Cannot read disconnected Store."));else n(new Error("Invalid collection name must contain only alpha characters."));}))}static async write(e,r){return new Promise(((n,s)=>{if(validCollection.test(e))if(t.exists(connectionThread)){const t=r=>{const[o,i,a]=r.data;"error"===o&&i===e&&(s(new Error(a)),connectionThread.removeEventListener("message",t)),"write"===o&&i===e&&(n(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["write",e,r]);}else s(Error("Cannot write disconnected Store."));else s(new Error("Invalid collection name must contain only alpha characters."));}))}static async remove(e){return new Promise(((r,n)=>{if(validCollection.test(e))if(t.exists(connectionThread)){const t=s=>{const[o,i,a]=s.data;"error"===o&&i===e&&(n(new Error(a)),connectionThread.removeEventListener("message",t)),"remove"===o&&i===e&&(r(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["remove",e]);}else n(Error("Cannot write disconnected Store."));else n(new Error("Invalid collection name must contain only alpha characters."));}))}static async delete(e){return new Promise(((r,n)=>{if(!t.isNullOrEmpty(e)&&validCollection.test(e))if(t.exists(connectionThread)){const t=s=>{const[o,i,a]=s.data;"error"===o&&i===e&&(n(new Error(a)),connectionThread.removeEventListener("message",t)),"drop"===o&&i===e&&(r(a),connectionThread.removeEventListener("message",t));};connectionThread.addEventListener("message",t),connectionThread.postMessage(["drop",e]);}else n(Error("Cannot drop disconnected Store."));else n(new Error("Invalid collection name must contain only alpha characters."));}))}static async save(){try{return await navigator.storage.persist()}catch(e){return !1}}static async estimate(){try{const e=navigator.storage||navigator.webkitPersistentStorage,{quota:t=NaN,usage:r=NaN}=await e.estimate()||{};return {quota:t,usage:r,free:`${N.roundUp((t-r)/t*100,-4)}%`,used:`${N.roundUp(r/t*100,-4)}%`}}catch(e){return {}}}static async saved(){try{return await navigator.storage.persisted()}catch{return !1}}}class Dto{constructor(e={},r){if(!t.isArray(e)&&!t.isObject(e))throw new TypeError("Dto value must be Array or object literal");this._value=e,this._name=r;}get value(){return t.isArray(this._value)?[...this._value]:{...this._value}}get name(){return this._name}set name(e){this._name=e;}read(e){return t.exists(e)?!t.isArray(this._value)||t.isNumber(e)?this._value[e]:void 0:this.value}remove(e){return t.isString(e)&&t.exists(e)&&delete this._value[e],t.isFunction(e)&&this._value.splice(this._value.findIndex(e),1),this}write(e,r){return t.isNullOrEmpty(e)||(t.isArray(this._value)?(t.isUndefined(r)&&this._value.push(e),t.isNumber(e)&&(this._value[e]=r)):this._value[e]=r),this}update(e){const r=Object.assign(this.value,e);return this._value=t.isArray(this._value)?Object.values(r):r,this}clear(){return this._value=t.isArray(this._value)?[]:{},this}async save(){return Store.connect(),await Store.write(this.name,this.encode(!0,!0)),await Store.save()}async saveAs(e){return this.name=e,Store.connect(),await Store.delete(this.name),this.save()}async delete(){return Store.connect(),await Store.delete(this.name),this}encode(e=!1,t=!1){const r=Json.serialize(this._value);return encodeBase64(t?encodeURIComponent(r):r,e)}static decode(e,t){const r=decodeBase64(e),n=decodeURIComponent(r);return new Dto(Json.deserialize(n),t)}toFormData(){const{value:e}=this,t=new window.FormData;return Object.keys(e).forEach((r=>t.append(r,e[r]))),t}toJson(){return Json.serialize(this._value)}toQueryString(){return QueryString.serialize(this._value)}static parseFormData(e){const t={};for(const[r,n]of e.entries())t[r]=n;return new Dto(t)}static parseJson(e){return new Dto(Json.deserialize(e))}static parseJwt(e){try{const[,t]=e.split(".");return new Dto(JSON.parse(window.atob(t)))}catch(t){throw new SyntaxError(`Cannot parseJwt: ${e}`)}}static parseQueryString(e){return new Dto(QueryString.deserialize(e))}static async load(e){return Store.connect(),Store.read(e).then((t=>{try{return Dto.decode(t,e)}catch{return}})).catch((()=>{}))}}class Event{static mute(e){return !!t.exists(e)&&(t.isFunction(e.preventDefault)&&e.preventDefault(),t.isFunction(e.stopPropagation)&&e.stopPropagation(),t.isFunction(e.stopImmediatePropagation)&&e.stopImmediatePropagation(),t.exists(e.cancelBubble)&&(e.cancelBubble=!0),!1)}}const readFieldNames=e=>{const t=e.getAttribute("id"),r=[...e.querySelectorAll("[name]")].map((e=>e.name)),n=t?[...document.querySelectorAll(`[form="${t}"]`)].map((e=>e.name)):[];return [...r,...n]},readData=e=>new window.FormData(e),read=e=>{const r={};try{readData(e).forEach(((e,n)=>{const s=r[n];t.isArray(s)?r[n].push(e):t.exists(s)?r[n]=[r[n],e]:r[n]=e;}));}catch(t){[...e.elements].forEach((e=>{const{name:t,type:n,value:s,files:o}=e;if("file"===n)r[t]=o[0];else if("checkbox"===n||"radio"===n)e.checked&&(r[t]=s);else if(e.multiple){const n=[];e.querySelectorAll("option").forEach((e=>e.selected&&n.push(e.value))),r[t]=n.length<2?n[0]:n;}else r[t]=s;}));}return r},readJson=e=>JSON.stringify(read(e)),write=(e,r)=>{[...e.elements].forEach((e=>{/^select$/i.test(e.nodeName)?t.isArray(r[e.name])?[...e.options].forEach((t=>{t.selected=r[e.name].indexOf(t.value)>=0;})):t.exists(r[e.name])&&(e.value=r[e.name]):t.exists(r[e.name])&&("checkbox"===e.type||"radio"===e.type?e.checked=r[e.name]===e.value:e.value=r[e.name]);}));};var index={readFieldNames:readFieldNames,read:read,readData:readData,readJson:readJson,write:write};class Key{constructor(e,t,r={}){this.key=e,this.msKey=t||e,this.altKey=r.altKey||!1,this.ctrlKey=r.ctrlKey||!1,this.metaKey=r.metaKey||!1,this.shiftKey=r.shiftKey||!1;}get alt(){const{key:e,msKey:t,ctrlKey:r,metaKey:n,shiftKey:s}=this;return new Key(e,t,{altKey:!0,ctrlKey:r,metaKey:n,shiftKey:s})}get ctrl(){const{key:e,msKey:t,altKey:r,metaKey:n,shiftKey:s}=this;return new Key(e,t,{altKey:r,ctrlKey:!0,metaKey:n,shiftKey:s})}get meta(){const{key:e,msKey:t,altKey:r,ctrlKey:n,shiftKey:s}=this;return new Key(e,t,{altKey:r,ctrlKey:n,metaKey:!0,shiftKey:s})}get shift(){const{key:e,msKey:t,altKey:r,ctrlKey:n,metaKey:s}=this;return new Key(e,t,{altKey:r,ctrlKey:n,metaKey:s,shiftKey:!0})}equals(e){return e instanceof Key&&this.altKey===e.altKey&&this.ctrlKey===e.ctrlKey&&this.metaKey===e.metaKey&&this.shiftKey===e.shiftKey&&(this.key===e.key||this.msKey===e.msKey)}didFire(e){const{code:t,key:r,altKey:n,ctrlKey:s,metaKey:o,shiftKey:i}=e,a="Dead"===r?t:r;return e&&("ANY"===this.key||this.equals(new Key(a,a,{altKey:n,ctrlKey:s,metaKey:o,shiftKey:i})))}static get press(){return "keypress"}static get down(){return "keydown"}static get up(){return "keyup"}static get any(){return new Key("ANY")}static get esc(){return new Key("Escape","Esc")}static get enter(){return new Key("Enter")}static get space(){return new Key(" ","Spacebar")}static get tab(){return new Key("Tab")}static get left(){return new Key("ArrowLeft","Left")}static get right(){return new Key("ArrowRight","Right")}}class Keyboard{static on(e,t,r,n){const s=e=>t.didFire(e)?r(e,t):null;return window.addEventListener(e,s,n),{unsubscribe:()=>{window.removeEventListener(e,s);}}}static onKeyPress(e,t,r){return Keyboard.on(Key.press,e,t,r)}static onKeyDown(e,t,r){return Keyboard.on(Key.down,e,t,r)}static onKeyUp(e,t,r){return Keyboard.on(Key.up,e,t,r)}}class Swipe{constructor(e,t=0){this.didTouchStart=this.didTouchStart.bind(this),this.didTouchEnd=this.didTouchEnd.bind(this),this.didTouchMove=this.didTouchMove.bind(this),e.addEventListener("touchstart",this.didTouchStart,{capture:!1,passive:!0}),e.addEventListener("touchend",this.didTouchEnd,{capture:!1,passive:!0}),e.addEventListener("touchmove",this.didTouchMove,{capture:!1,passive:!0}),this.element=e,this.tolerance=t,this.didSwipeLeft=()=>{},this.didSwipeRight=()=>{},this.didMove=()=>{};}onLeft(e){return this.didSwipeLeft=e,this}onRight(e){return this.didSwipeRight=e,this}onMove(e){return this.didMove=e,this}destroy(){const{element:e}=this;return e.removeEventListener("touchstart",this.didTouchStart,!1),e.removeEventListener("touchend",this.didTouchEnd,!1),e.removeEventListener("touchmove",this.didTouchMove,!1),this}didTouchStart({touches:[e]}){this.touchStartPoint=new O(e.pageX,e.pageY);}didTouchEnd(e){const[t]=e.changedTouches,{touchStartPoint:r}=this,n=new O(t.pageX,t.pageY);n.isLeftOf(r)&&Math.abs(n.distanceFrom(r).x)>this.tolerance&&this.didSwipeLeft(e),n.isRightOf(r)&&Math.abs(n.distanceFrom(r).x)>this.tolerance&&this.didSwipeRight(e);}didTouchMove(e){const[t]=e.touches,{touchStartPoint:r}=this,n=new O(t.pageX,t.pageY);this.didMove({distance:n.distanceFrom(r),up:n.isAbove(r),down:n.isBelow(r),left:n.isLeftOf(r),right:n.isRightOf(r)});}}
2
-
3
- export { Document as D, Event as E, Key as K, Swipe as S, Device as a, index as i };
@@ -1,388 +0,0 @@
1
- /*
2
- Stencil Client Platform v2.14.2 | MIT Licensed | https://stenciljs.com
3
- */
4
- /**
5
- * @license
6
- * Copyright Google Inc. All Rights Reserved.
7
- *
8
- * Use of this source code is governed by an MIT-style license that can be
9
- * found in the LICENSE file at https://angular.io/license
10
- *
11
- * This file is a port of shadowCSS from webcomponents.js to TypeScript.
12
- * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
13
- * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
14
- */
15
- const safeSelector = (selector) => {
16
- const placeholders = [];
17
- let index = 0;
18
- let content;
19
- // Replaces attribute selectors with placeholders.
20
- // The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
21
- selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
22
- const replaceBy = `__ph-${index}__`;
23
- placeholders.push(keep);
24
- index++;
25
- return replaceBy;
26
- });
27
- // Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
28
- // WS and "+" would otherwise be interpreted as selector separators.
29
- content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
30
- const replaceBy = `__ph-${index}__`;
31
- placeholders.push(exp);
32
- index++;
33
- return pseudo + replaceBy;
34
- });
35
- const ss = {
36
- content,
37
- placeholders,
38
- };
39
- return ss;
40
- };
41
- const restoreSafeSelector = (placeholders, content) => {
42
- return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
43
- };
44
- const _polyfillHost = '-shadowcsshost';
45
- const _polyfillSlotted = '-shadowcssslotted';
46
- // note: :host-context pre-processed to -shadowcsshostcontext.
47
- const _polyfillHostContext = '-shadowcsscontext';
48
- const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
49
- const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
50
- const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
51
- const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
52
- const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
53
- const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
54
- const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
55
- const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
56
- const _polyfillHostRe = /-shadowcsshost/gim;
57
- const _colonHostRe = /:host/gim;
58
- const _colonSlottedRe = /::slotted/gim;
59
- const _colonHostContextRe = /:host-context/gim;
60
- const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
61
- const stripComments = (input) => {
62
- return input.replace(_commentRe, '');
63
- };
64
- const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
65
- const extractCommentsWithHash = (input) => {
66
- return input.match(_commentWithHashRe) || [];
67
- };
68
- const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
69
- const _curlyRe = /([{}])/g;
70
- const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
71
- const OPEN_CURLY = '{';
72
- const CLOSE_CURLY = '}';
73
- const BLOCK_PLACEHOLDER = '%BLOCK%';
74
- const processRules = (input, ruleCallback) => {
75
- const inputWithEscapedBlocks = escapeBlocks(input);
76
- let nextBlockIndex = 0;
77
- return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
78
- const selector = m[2];
79
- let content = '';
80
- let suffix = m[4];
81
- let contentPrefix = '';
82
- if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
83
- content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
84
- suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
85
- contentPrefix = '{';
86
- }
87
- const cssRule = {
88
- selector,
89
- content,
90
- };
91
- const rule = ruleCallback(cssRule);
92
- return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
93
- });
94
- };
95
- const escapeBlocks = (input) => {
96
- const inputParts = input.split(_curlyRe);
97
- const resultParts = [];
98
- const escapedBlocks = [];
99
- let bracketCount = 0;
100
- let currentBlockParts = [];
101
- for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
102
- const part = inputParts[partIndex];
103
- if (part === CLOSE_CURLY) {
104
- bracketCount--;
105
- }
106
- if (bracketCount > 0) {
107
- currentBlockParts.push(part);
108
- }
109
- else {
110
- if (currentBlockParts.length > 0) {
111
- escapedBlocks.push(currentBlockParts.join(''));
112
- resultParts.push(BLOCK_PLACEHOLDER);
113
- currentBlockParts = [];
114
- }
115
- resultParts.push(part);
116
- }
117
- if (part === OPEN_CURLY) {
118
- bracketCount++;
119
- }
120
- }
121
- if (currentBlockParts.length > 0) {
122
- escapedBlocks.push(currentBlockParts.join(''));
123
- resultParts.push(BLOCK_PLACEHOLDER);
124
- }
125
- const strEscapedBlocks = {
126
- escapedString: resultParts.join(''),
127
- blocks: escapedBlocks,
128
- };
129
- return strEscapedBlocks;
130
- };
131
- const insertPolyfillHostInCssText = (selector) => {
132
- selector = selector
133
- .replace(_colonHostContextRe, _polyfillHostContext)
134
- .replace(_colonHostRe, _polyfillHost)
135
- .replace(_colonSlottedRe, _polyfillSlotted);
136
- return selector;
137
- };
138
- const convertColonRule = (cssText, regExp, partReplacer) => {
139
- // m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
140
- return cssText.replace(regExp, (...m) => {
141
- if (m[2]) {
142
- const parts = m[2].split(',');
143
- const r = [];
144
- for (let i = 0; i < parts.length; i++) {
145
- const p = parts[i].trim();
146
- if (!p)
147
- break;
148
- r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
149
- }
150
- return r.join(',');
151
- }
152
- else {
153
- return _polyfillHostNoCombinator + m[3];
154
- }
155
- });
156
- };
157
- const colonHostPartReplacer = (host, part, suffix) => {
158
- return host + part.replace(_polyfillHost, '') + suffix;
159
- };
160
- const convertColonHost = (cssText) => {
161
- return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
162
- };
163
- const colonHostContextPartReplacer = (host, part, suffix) => {
164
- if (part.indexOf(_polyfillHost) > -1) {
165
- return colonHostPartReplacer(host, part, suffix);
166
- }
167
- else {
168
- return host + part + suffix + ', ' + part + ' ' + host + suffix;
169
- }
170
- };
171
- const convertColonSlotted = (cssText, slotScopeId) => {
172
- const slotClass = '.' + slotScopeId + ' > ';
173
- const selectors = [];
174
- cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
175
- if (m[2]) {
176
- const compound = m[2].trim();
177
- const suffix = m[3];
178
- const slottedSelector = slotClass + compound + suffix;
179
- let prefixSelector = '';
180
- for (let i = m[4] - 1; i >= 0; i--) {
181
- const char = m[5][i];
182
- if (char === '}' || char === ',') {
183
- break;
184
- }
185
- prefixSelector = char + prefixSelector;
186
- }
187
- const orgSelector = prefixSelector + slottedSelector;
188
- const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
189
- if (orgSelector.trim() !== addedSelector.trim()) {
190
- const updatedSelector = `${addedSelector}, ${orgSelector}`;
191
- selectors.push({
192
- orgSelector,
193
- updatedSelector,
194
- });
195
- }
196
- return slottedSelector;
197
- }
198
- else {
199
- return _polyfillHostNoCombinator + m[3];
200
- }
201
- });
202
- return {
203
- selectors,
204
- cssText,
205
- };
206
- };
207
- const convertColonHostContext = (cssText) => {
208
- return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
209
- };
210
- const convertShadowDOMSelectors = (cssText) => {
211
- return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
212
- };
213
- const makeScopeMatcher = (scopeSelector) => {
214
- const lre = /\[/g;
215
- const rre = /\]/g;
216
- scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
217
- return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
218
- };
219
- const selectorNeedsScoping = (selector, scopeSelector) => {
220
- const re = makeScopeMatcher(scopeSelector);
221
- return !re.test(selector);
222
- };
223
- const injectScopingSelector = (selector, scopingSelector) => {
224
- return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
225
- return before + scopingSelector + colon + after;
226
- });
227
- };
228
- const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
229
- // In Android browser, the lastIndex is not reset when the regex is used in String.replace()
230
- _polyfillHostRe.lastIndex = 0;
231
- if (_polyfillHostRe.test(selector)) {
232
- const replaceBy = `.${hostSelector}`;
233
- return selector
234
- .replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
235
- .replace(_polyfillHostRe, replaceBy + ' ');
236
- }
237
- return scopeSelector + ' ' + selector;
238
- };
239
- const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
240
- const isRe = /\[is=([^\]]*)\]/g;
241
- scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
242
- const className = '.' + scopeSelector;
243
- const _scopeSelectorPart = (p) => {
244
- let scopedP = p.trim();
245
- if (!scopedP) {
246
- return '';
247
- }
248
- if (p.indexOf(_polyfillHostNoCombinator) > -1) {
249
- scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
250
- }
251
- else {
252
- // remove :host since it should be unnecessary
253
- const t = p.replace(_polyfillHostRe, '');
254
- if (t.length > 0) {
255
- scopedP = injectScopingSelector(t, className);
256
- }
257
- }
258
- return scopedP;
259
- };
260
- const safeContent = safeSelector(selector);
261
- selector = safeContent.content;
262
- let scopedSelector = '';
263
- let startIndex = 0;
264
- let res;
265
- const sep = /( |>|\+|~(?!=))\s*/g;
266
- // If a selector appears before :host it should not be shimmed as it
267
- // matches on ancestor elements and not on elements in the host's shadow
268
- // `:host-context(div)` is transformed to
269
- // `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
270
- // the `div` is not part of the component in the 2nd selectors and should not be scoped.
271
- // Historically `component-tag:host` was matching the component so we also want to preserve
272
- // this behavior to avoid breaking legacy apps (it should not match).
273
- // The behavior should be:
274
- // - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
275
- // - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
276
- // `:host-context(tag)`)
277
- const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
278
- // Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
279
- let shouldScope = !hasHost;
280
- while ((res = sep.exec(selector)) !== null) {
281
- const separator = res[1];
282
- const part = selector.slice(startIndex, res.index).trim();
283
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
284
- const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
285
- scopedSelector += `${scopedPart} ${separator} `;
286
- startIndex = sep.lastIndex;
287
- }
288
- const part = selector.substring(startIndex);
289
- shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
290
- scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
291
- // replace the placeholders with their original values
292
- return restoreSafeSelector(safeContent.placeholders, scopedSelector);
293
- };
294
- const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
295
- return selector
296
- .split(',')
297
- .map((shallowPart) => {
298
- if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
299
- return shallowPart.trim();
300
- }
301
- if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
302
- return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
303
- }
304
- else {
305
- return shallowPart.trim();
306
- }
307
- })
308
- .join(', ');
309
- };
310
- const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
311
- return processRules(cssText, (rule) => {
312
- let selector = rule.selector;
313
- let content = rule.content;
314
- if (rule.selector[0] !== '@') {
315
- selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
316
- }
317
- else if (rule.selector.startsWith('@media') ||
318
- rule.selector.startsWith('@supports') ||
319
- rule.selector.startsWith('@page') ||
320
- rule.selector.startsWith('@document')) {
321
- content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
322
- }
323
- const cssRule = {
324
- selector: selector.replace(/\s{2,}/g, ' ').trim(),
325
- content,
326
- };
327
- return cssRule;
328
- });
329
- };
330
- const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
331
- cssText = insertPolyfillHostInCssText(cssText);
332
- cssText = convertColonHost(cssText);
333
- cssText = convertColonHostContext(cssText);
334
- const slotted = convertColonSlotted(cssText, slotScopeId);
335
- cssText = slotted.cssText;
336
- cssText = convertShadowDOMSelectors(cssText);
337
- if (scopeId) {
338
- cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
339
- }
340
- cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
341
- cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
342
- return {
343
- cssText: cssText.trim(),
344
- slottedSelectors: slotted.selectors,
345
- };
346
- };
347
- const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
348
- const hostScopeId = scopeId + '-h';
349
- const slotScopeId = scopeId + '-s';
350
- const commentsWithHash = extractCommentsWithHash(cssText);
351
- cssText = stripComments(cssText);
352
- const orgSelectors = [];
353
- if (commentOriginalSelector) {
354
- const processCommentedSelector = (rule) => {
355
- const placeholder = `/*!@___${orgSelectors.length}___*/`;
356
- const comment = `/*!@${rule.selector}*/`;
357
- orgSelectors.push({ placeholder, comment });
358
- rule.selector = placeholder + rule.selector;
359
- return rule;
360
- };
361
- cssText = processRules(cssText, (rule) => {
362
- if (rule.selector[0] !== '@') {
363
- return processCommentedSelector(rule);
364
- }
365
- else if (rule.selector.startsWith('@media') ||
366
- rule.selector.startsWith('@supports') ||
367
- rule.selector.startsWith('@page') ||
368
- rule.selector.startsWith('@document')) {
369
- rule.content = processRules(rule.content, processCommentedSelector);
370
- return rule;
371
- }
372
- return rule;
373
- });
374
- }
375
- const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
376
- cssText = [scoped.cssText, ...commentsWithHash].join('\n');
377
- if (commentOriginalSelector) {
378
- orgSelectors.forEach(({ placeholder, comment }) => {
379
- cssText = cssText.replace(placeholder, comment);
380
- });
381
- }
382
- scoped.slottedSelectors.forEach((slottedSelector) => {
383
- cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
384
- });
385
- return cssText;
386
- };
387
-
388
- export { scopeCss };
@@ -1,9 +0,0 @@
1
- import { R } from './index-3e1e5aa3.js';
2
-
3
- const uid = () => {
4
- // @ts-ignore
5
- let value;
6
- return (() => { value = R.uid(); })();
7
- };
8
-
9
- export { uid as u };
@@ -1,3 +0,0 @@
1
- const globalScripts = () => {};
2
-
3
- export { globalScripts as g };
@@ -1 +0,0 @@
1
- System.register([],(function(t){"use strict";return{execute:function(){var e=t("g",(function(){}))}}}));
@@ -1,4 +0,0 @@
1
- /*
2
- Stencil Client Patch Esm v2.14.2 | MIT Licensed | https://stenciljs.com
3
- */
4
- var __assign=undefined&&undefined.__assign||function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\.".concat(t),".".concat(r))}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
@@ -1 +0,0 @@
1
- System.register([],(function(){"use strict";return{execute:function(){var t=undefined&&undefined.__assign||function(){return(t=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var s in e=arguments[r])Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s]);return t}).apply(this,arguments)},e=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function r(t){return o(s(t=n(t)),t)}function n(t){return t.replace(l.comments,"").replace(l.port,"")}function s(t){var r=new e;r.start=0,r.end=t.length;for(var n=r,s=0,o=t.length;s<o;s++)if(t[s]===u){n.rules||(n.rules=[]);var i=n,a=i.rules[i.rules.length-1]||null;(n=new e).start=s+1,n.parent=i,n.previous=a,i.rules.push(n)}else t[s]===c&&(n.end=s+1,n=n.parent||r);return r}function o(t,e){var r=e.substring(t.start,t.end-1);if(t.parsedCssText=t.cssText=r.trim(),t.parent){var n=t.previous?t.previous.end:t.parent.start;r=(r=(r=i(r=e.substring(n,t.start-1))).replace(l.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=t.parsedSelector=t.selector=r.trim();t.atRule=0===s.indexOf(h),t.atRule?0===s.indexOf(f)?t.type=a.MEDIA_RULE:s.match(l.keyframesRule)&&(t.type=a.KEYFRAMES_RULE,t.keyframesName=t.selector.split(l.multipleSpaces).pop()):0===s.indexOf(p)?t.type=a.MIXIN_RULE:t.type=a.STYLE_RULE}var u=t.rules;if(u)for(var c=0,v=u.length,d=void 0;c<v&&(d=u[c]);c++)o(d,e);return t}function i(t){return t.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var t=arguments[1],e=6-t.length;e--;)t="0"+t;return"\\"+t}))}var a={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},u="{",c="}",l={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},p="--",f="@media",h="@";function v(t,e,r){t.lastIndex=0;var n=e.substring(r).match(t);if(n){var s=r+n.index;return{start:s,end:s+n[0].length}}return null}var d=/\bvar\(/,m=/\B--[\w-]+\s*:/,g=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,y=/^[\t ]+\n/gm;function S(t,e,r){return t[e]?t[e]:r?M(r,t):""}function b(t,e){for(var r=0,n=e;n<t.length;n++){var s=t[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function E(t,e){var r=v(d,t,e);if(!r)return null;var n=b(t,r.start),s=t.substring(r.end,n-1).split(","),o=s[0],i=s.slice(1);return{start:r.start,end:n,propName:o.trim(),fallback:i.length>0?i.join(",").trim():void 0}}function x(t,e,r){var n=E(t,r);if(!n)return e.push(t.substring(r,t.length)),t.length;var s=n.propName,o=null!=n.fallback?I(n.fallback):void 0;return e.push(t.substring(r,n.start),(function(t){return S(t,s,o)})),n.end}function M(t,e){for(var r="",n=0;n<t.length;n++){var s=t[n];r+="string"==typeof s?s:s(e)}return r}function w(t,e){for(var r=!1,n=!1,s=e;s<t.length;s++){var o=t[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else{if(";"===o)return s+1;if("}"===o)return s}}return s}function C(t){for(var e="",r=0;;){var n=v(m,t,r),s=n?n.start:t.length;if(e+=t.substring(r,s),!n)break;r=w(t,s)}return e}function I(t){var e=0;t=C(t=t.replace(g,"")).replace(y,"");for(var r=[];e<t.length;)e=x(t,r,e);return r}function R(t){var e={};t.forEach((function(t){t.declarations.forEach((function(t){e[t.prop]=t.value}))}));for(var r={},n=Object.entries(e),s=function(t){var e=!1;if(n.forEach((function(t){var n=t[0],s=M(t[1],r);s!==r[n]&&(r[n]=s,e=!0)})),!e)return"break"},o=0;o<10;o++){if("break"===s())break}return r}function k(t,e){if(void 0===e&&(e=0),!t.rules)return[];var r=[];return t.rules.filter((function(t){return t.type===a.STYLE_RULE})).forEach((function(t){var n=O(t.cssText);n.length>0&&t.parsedSelector.split(",").forEach((function(t){t=t.trim(),r.push({selector:t,declarations:n,specificity:_(),nu:e})})),e++})),r}function _(t){return 1}var A="!important",L=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function O(t){for(var e,r=[];e=L.exec(t.trim());){var n=T(e[2]),s=n.value,o=n.important;r.push({prop:e[1].trim(),value:I(s),important:o})}return r}function T(t){var e=(t=t.replace(/\s+/gim," ").trim()).endsWith(A);return e&&(t=t.substr(0,t.length-A.length).trim()),{value:t,important:e}}function U(t,e,r){var n=[],s=N(e,t);return r.forEach((function(t){return n.push(t)})),s.forEach((function(t){return n.push(t)})),$(P(n).filter((function(e){return G(t,e.selector)})))}function N(t,e){for(var r=[];e;){var n=t.get(e);n&&r.push(n),e=e.parentElement}return r}function P(t){var e=[];return t.forEach((function(t){e.push.apply(e,t.selectors)})),e}function $(t){return t.sort((function(t,e){return t.specificity===e.specificity?t.nu-e.nu:t.specificity-e.specificity})),t}function G(t,e){return":root"===e||"html"===e||t.matches(e)}function H(t){var e=r(t),n=I(t);return{original:t,template:n,selectors:k(e),usesCssVars:n.length>1}}function V(t,e){if(t.some((function(t){return t.styleEl===e})))return!1;var r=H(e.textContent);return r.styleEl=e,t.push(r),!0}function Y(t){var e=R(P(t));t.forEach((function(t){t.usesCssVars&&(t.styleEl.textContent=M(t.template,e))}))}function j(e,r){var n=e.template.map((function(t){return"string"==typeof t?q(t,e.scopeId,r):t})),s=e.selectors.map((function(n){return t(t({},n),{selector:q(n.selector,e.scopeId,r)})}));return t(t({},e),{template:n,selectors:s,scopeId:r})}function q(t,e,r){return t=F(t,"\\.".concat(e),".".concat(r))}function F(t,e,r){return t.replace(new RegExp(e,"g"),r)}function B(t,e){return K(t,e),D(t,e).then((function(){Y(e)}))}function W(t,e){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){K(t,e)&&Y(e)})).observe(document.head,{childList:!0})}function D(t,e){for(var r=[],n=t.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(X(t,e,n[s]));return Promise.all(r)}function K(t,e){return Array.from(t.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(t){return V(e,t)})).some(Boolean)}function X(t,e,r){var n=r.href;return fetch(n).then((function(t){return t.text()})).then((function(s){if(Z(s)&&r.parentNode){Q(s)&&(s=tt(s,n));var o=t.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,V(e,o),r.parentNode.insertBefore(o,r),r.remove()}})).catch((function(t){console.error(t)}))}var z=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function Z(t){return t.indexOf("var(")>-1||z.test(t)}var J=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function Q(t){return J.lastIndex=0,J.test(t)}function tt(t,e){var r=e.replace(/[^/]*$/,"");return t.replace(J,(function(t,e){var n=r+e;return t.replace(e,n)}))}var et=function(){function t(t,e){this.win=t,this.doc=e,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return t.prototype.i=function(){var t=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(e){t.win.requestAnimationFrame((function(){W(t.doc,t.globalScopes),B(t.doc,t.globalScopes).then((function(){return e()}))}))})))},t.prototype.addLink=function(t){var e=this;return X(this.doc,this.globalScopes,t).then((function(){e.updateGlobal()}))},t.prototype.addGlobalStyle=function(t){V(this.globalScopes,t)&&this.updateGlobal()},t.prototype.createHostStyle=function(t,e,r,n){if(this.hostScopeMap.has(t))throw new Error("host style already created");var s=this.registerHostTemplate(r,e,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=e="".concat(s.scopeId,"-").concat(this.count),o.textContent="/*needs update*/",this.hostStyleMap.set(t,o),this.hostScopeMap.set(t,j(s,e)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=M(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(t,s)):o.textContent=r,o},t.prototype.removeHost=function(t){var e=this.hostStyleMap.get(t);e&&e.remove(),this.hostStyleMap.delete(t),this.hostScopeMap.delete(t)},t.prototype.updateHost=function(t){var e=this.hostScopeMap.get(t);if(e&&e.usesCssVars&&e.isScoped){var r=this.hostStyleMap.get(t);if(r){var n=R(U(t,this.hostScopeMap,this.globalScopes));r.textContent=M(e.template,n)}}},t.prototype.updateGlobal=function(){Y(this.globalScopes)},t.prototype.registerHostTemplate=function(t,e,r){var n=this.scopesMap.get(e);return n||((n=H(t)).scopeId=e,n.isScoped=r,this.scopesMap.set(e,n)),n},t}();!function(t){!t||t.__cssshim||t.CSS&&t.CSS.supports&&t.CSS.supports("color","var(--c)")||(t.__cssshim=new et(t,t.document))}("undefined"!=typeof window&&window)}}}));
@@ -1,21 +0,0 @@
1
- System.register([],(function(){"use strict";return{execute:function(){(function(){var t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function e(e){var n=t.has(e);e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e);return!n&&e}function n(t){var e=t.isConnected;if(void 0!==e)return e;for(;t&&!(t.__CE_isImportDocument||t instanceof Document);)t=t.parentNode||(window.ShadowRoot&&t instanceof ShadowRoot?t.host:void 0);return!(!t||!(t.__CE_isImportDocument||t instanceof Document))}function o(t,e){for(;e&&e!==t&&!e.nextSibling;)e=e.parentNode;return e&&e!==t?e.nextSibling:null}function i(t,e,n){n=void 0===n?new Set:n;for(var r=t;r;){if(r.nodeType===Node.ELEMENT_NODE){var a=r;e(a);var c=a.localName;if("link"===c&&"import"===a.getAttribute("rel")){r=a.import;if(r instanceof Node&&!n.has(r))for(n.add(r),r=r.firstChild;r;r=r.nextSibling)i(r,e,n);r=o(t,a);continue}else if("template"===c){r=o(t,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)i(a,e,n)}r=r.firstChild?r.firstChild:o(t,r)}}function r(t,e,n){t[e]=n}function a(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1}function c(t,e,n){t.a.set(e,n);t.g.set(n.constructorFunction,n)}function l(t,e){t.b=!0;t.c.push(e)}function s(t,e){t.b=!0;t.f.push(e)}function u(t,e){t.b&&i(e,(function(e){return f(t,e)}))}function f(t,e){if(t.b&&!e.__CE_patched){e.__CE_patched=!0;for(var n=0;n<t.c.length;n++)t.c[n](e);for(n=0;n<t.f.length;n++)t.f[n](e)}}function p(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state?t.connectedCallback(o):m(t,o)}}function h(t,e){var n=[];i(e,(function(t){return n.push(t)}));for(e=0;e<n.length;e++){var o=n[e];1===o.__CE_state&&t.disconnectedCallback(o)}}function d(t,e,n){n=void 0===n?{}:n;var o=n.u||new Set,r=n.i||function(e){return m(t,e)},a=[];i(e,(function(e){if("link"===e.localName&&"import"===e.getAttribute("rel")){var n=e.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0);n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:e.addEventListener("load",(function(){var n=e.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var i=new Set(o);i.delete(n);d(t,n,{u:i,i:r})}}))}else a.push(e)}),o);if(t.b)for(e=0;e<a.length;e++)f(t,a[e]);for(e=0;e<a.length;e++)r(a[e])}function m(t,e){if(void 0===e.__CE_state){var o=e.ownerDocument;if(o.defaultView||o.__CE_isImportDocument&&o.__CE_hasRegistry)if(o=t.a.get(e.localName)){o.constructionStack.push(e);var i=o.constructorFunction;try{try{if(new i!==e)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{o.constructionStack.pop()}}catch(c){throw e.__CE_state=2,c}e.__CE_state=1;e.__CE_definition=o;if(o.attributeChangedCallback)for(o=o.observedAttributes,i=0;i<o.length;i++){var r=o[i],a=e.getAttribute(r);null!==a&&t.attributeChangedCallback(e,r,null,a,null)}n(e)&&t.connectedCallback(e)}}}a.prototype.connectedCallback=function(t){var e=t.__CE_definition;e.connectedCallback&&e.connectedCallback.call(t)};a.prototype.disconnectedCallback=function(t){var e=t.__CE_definition;e.disconnectedCallback&&e.disconnectedCallback.call(t)};a.prototype.attributeChangedCallback=function(t,e,n,o,i){var r=t.__CE_definition;r.attributeChangedCallback&&-1<r.observedAttributes.indexOf(e)&&r.attributeChangedCallback.call(t,e,n,o,i)};function y(t){var e=document;this.c=t;this.a=e;this.b=void 0;d(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function b(t){t.b&&t.b.disconnect()}y.prototype.f=function(t){var e=this.a.readyState;"interactive"!==e&&"complete"!==e||b(this);for(e=0;e<t.length;e++)for(var n=t[e].addedNodes,o=0;o<n.length;o++)d(this.c,n[o])};function v(){var t=this;this.b=this.a=void 0;this.c=new Promise((function(e){t.b=e;t.a&&e(t.a)}))}function g(t){if(t.a)throw Error("Already resolved.");t.a=void 0;t.b&&t.b(void 0)}function w(t){this.c=!1;this.a=t;this.j=new Map;this.f=function(t){return t()};this.b=!1;this.g=[];this.o=new y(t)}w.prototype.l=function(t,n){var o=this;if(!(n instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!e(t))throw new SyntaxError("The element name '"+t+"' is not valid.");if(this.a.a.get(t))throw Error("A custom element with name '"+t+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var i=function(t){var e=r[t];if(void 0!==e&&!(e instanceof Function))throw Error("The '"+t+"' callback must be a function.");return e},r=n.prototype;if(!(r instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var a=i("connectedCallback");var l=i("disconnectedCallback");var s=i("adoptedCallback");var u=i("attributeChangedCallback");var f=n.observedAttributes||[]}catch(p){return}finally{this.c=!1}n={localName:t,constructorFunction:n,connectedCallback:a,disconnectedCallback:l,adoptedCallback:s,attributeChangedCallback:u,observedAttributes:f,constructionStack:[]};c(this.a,t,n);this.g.push(n);this.b||(this.b=!0,this.f((function(){return E(o)})))};w.prototype.i=function(t){d(this.a,t)};function E(t){if(!1!==t.b){t.b=!1;for(var e=t.g,n=[],o=new Map,i=0;i<e.length;i++)o.set(e[i].localName,[]);d(t.a,document,{i:function(e){if(void 0===e.__CE_state){var i=e.localName,r=o.get(i);r?r.push(e):t.a.a.get(i)&&n.push(e)}}});for(i=0;i<n.length;i++)m(t.a,n[i]);for(;0<e.length;){var r=e.shift();i=r.localName;r=o.get(r.localName);for(var a=0;a<r.length;a++)m(t.a,r[a]);(i=t.j.get(i))&&g(i)}}}w.prototype.get=function(t){if(t=this.a.a.get(t))return t.constructorFunction};w.prototype.m=function(t){if(!e(t))return Promise.reject(new SyntaxError("'"+t+"' is not a valid custom element name."));var n=this.j.get(t);if(n)return n.c;n=new v;this.j.set(t,n);this.a.a.get(t)&&!this.g.some((function(e){return e.localName===t}))&&g(n);return n.c};w.prototype.s=function(t){b(this.o);var e=this.f;this.f=function(n){return t((function(){return e(n)}))}};window.CustomElementRegistry=w;w.prototype.define=w.prototype.l;w.prototype.upgrade=w.prototype.i;w.prototype.get=w.prototype.get;w.prototype.whenDefined=w.prototype.m;w.prototype.polyfillWrapFlushCallback=w.prototype.s;var _=window.Document.prototype.createElement,C=window.Document.prototype.createElementNS,N=window.Document.prototype.importNode,S=window.Document.prototype.prepend,T=window.Document.prototype.append,D=window.DocumentFragment.prototype.prepend,k=window.DocumentFragment.prototype.append,A=window.Node.prototype.cloneNode,O=window.Node.prototype.appendChild,j=window.Node.prototype.insertBefore,L=window.Node.prototype.removeChild,M=window.Node.prototype.replaceChild,x=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),H=window.Element.prototype.attachShadow,R=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,F=window.Element.prototype.setAttribute,I=window.Element.prototype.removeAttribute,z=window.Element.prototype.getAttributeNS,U=window.Element.prototype.setAttributeNS,W=window.Element.prototype.removeAttributeNS,q=window.Element.prototype.insertAdjacentElement,B=window.Element.prototype.insertAdjacentHTML,$=window.Element.prototype.prepend,V=window.Element.prototype.append,X=window.Element.prototype.before,G=window.Element.prototype.after,J=window.Element.prototype.replaceWith,K=window.Element.prototype.remove,Q=window.HTMLElement,Y=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Z=window.HTMLElement.prototype.insertAdjacentElement,tt=window.HTMLElement.prototype.insertAdjacentHTML;var et=new function(){};function nt(){var t=st;window.HTMLElement=function(){function e(){var e=this.constructor,n=t.g.get(e);if(!n)throw Error("The custom element being constructed was not registered with `customElements`.");var o=n.constructionStack;if(0===o.length)return o=_.call(document,n.localName),Object.setPrototypeOf(o,e.prototype),o.__CE_state=1,o.__CE_definition=n,f(t,o),o;n=o.length-1;var i=o[n];if(i===et)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");o[n]=et;Object.setPrototypeOf(i,e.prototype);f(t,i);return i}e.prototype=Q.prototype;Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e});return e}()}function ot(t,e,o){function i(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}void 0!==o.h&&(e.prepend=i(o.h));void 0!==o.append&&(e.append=i(o.append))}function it(){var t=st;r(Document.prototype,"createElement",(function(e){if(this.__CE_hasRegistry){var n=t.a.get(e);if(n)return new n.constructorFunction}e=_.call(this,e);f(t,e);return e}));r(Document.prototype,"importNode",(function(e,n){e=N.call(this,e,!!n);this.__CE_hasRegistry?d(t,e):u(t,e);return e}));r(Document.prototype,"createElementNS",(function(e,n){if(this.__CE_hasRegistry&&(null===e||"http://www.w3.org/1999/xhtml"===e)){var o=t.a.get(n);if(o)return new o.constructorFunction}e=C.call(this,e,n);f(t,e);return e}));ot(t,Document.prototype,{h:S,append:T})}function rt(){function t(t,o){Object.defineProperty(t,"textContent",{enumerable:o.enumerable,configurable:!0,get:o.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)o.set.call(this,t);else{var i=void 0;if(this.firstChild){var r=this.childNodes,a=r.length;if(0<a&&n(this)){i=Array(a);for(var c=0;c<a;c++)i[c]=r[c]}}o.set.call(this,t);if(i)for(t=0;t<i.length;t++)h(e,i[t])}}})}var e=st;r(Node.prototype,"insertBefore",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=j.call(this,t,o);if(n(this))for(o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);o=j.call(this,t,o);i&&h(e,t);n(this)&&p(e,t);return o}));r(Node.prototype,"appendChild",(function(t){if(t instanceof DocumentFragment){var o=Array.prototype.slice.apply(t.childNodes);t=O.call(this,t);if(n(this))for(var i=0;i<o.length;i++)p(e,o[i]);return t}o=n(t);i=O.call(this,t);o&&h(e,t);n(this)&&p(e,t);return i}));r(Node.prototype,"cloneNode",(function(t){t=A.call(this,!!t);this.ownerDocument.__CE_hasRegistry?d(e,t):u(e,t);return t}));r(Node.prototype,"removeChild",(function(t){var o=n(t),i=L.call(this,t);o&&h(e,t);return i}));r(Node.prototype,"replaceChild",(function(t,o){if(t instanceof DocumentFragment){var i=Array.prototype.slice.apply(t.childNodes);t=M.call(this,t,o);if(n(this))for(h(e,o),o=0;o<i.length;o++)p(e,i[o]);return t}i=n(t);var r=M.call(this,t,o),a=n(this);a&&h(e,o);i&&h(e,t);a&&p(e,t);return r}));x&&x.get?t(Node.prototype,x):l(e,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var t=[],e=0;e<this.childNodes.length;e++){var n=this.childNodes[e];n.nodeType!==Node.COMMENT_NODE&&t.push(n.textContent)}return t.join("")},set:function(t){for(;this.firstChild;)L.call(this,this.firstChild);null!=t&&""!==t&&O.call(this,document.createTextNode(t))}})}))}function at(t){function e(e){return function(o){for(var i=[],r=0;r<arguments.length;++r)i[r]=arguments[r];r=[];for(var a=[],c=0;c<i.length;c++){var l=i[c];l instanceof Element&&n(l)&&a.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)r.push(l);else r.push(l)}e.apply(this,i);for(i=0;i<a.length;i++)h(t,a[i]);if(n(this))for(i=0;i<r.length;i++)a=r[i],a instanceof Element&&p(t,a)}}var o=Element.prototype;void 0!==X&&(o.before=e(X));void 0!==X&&(o.after=e(G));void 0!==J&&r(o,"replaceWith",(function(e){for(var o=[],i=0;i<arguments.length;++i)o[i]=arguments[i];i=[];for(var r=[],a=0;a<o.length;a++){var c=o[a];c instanceof Element&&n(c)&&r.push(c);if(c instanceof DocumentFragment)for(c=c.firstChild;c;c=c.nextSibling)i.push(c);else i.push(c)}a=n(this);J.apply(this,o);for(o=0;o<r.length;o++)h(t,r[o]);if(a)for(h(t,this),o=0;o<i.length;o++)r=i[o],r instanceof Element&&p(t,r)}));void 0!==K&&r(o,"remove",(function(){var e=n(this);K.call(this);e&&h(t,this)}))}function ct(){function t(t,e){Object.defineProperty(t,"innerHTML",{enumerable:e.enumerable,configurable:!0,get:e.get,set:function(t){var o=this,r=void 0;n(this)&&(r=[],i(this,(function(t){t!==o&&r.push(t)})));e.set.call(this,t);if(r)for(var c=0;c<r.length;c++){var l=r[c];1===l.__CE_state&&a.disconnectedCallback(l)}this.ownerDocument.__CE_hasRegistry?d(a,this):u(a,this);return t}})}function e(t,e){r(t,"insertAdjacentElement",(function(t,o){var i=n(o);t=e.call(this,t,o);i&&h(a,o);n(t)&&p(a,o);return t}))}function o(t,e){function n(t,e){for(var n=[];t!==e;t=t.nextSibling)n.push(t);for(e=0;e<n.length;e++)d(a,n[e])}r(t,"insertAdjacentHTML",(function(t,o){t=t.toLowerCase();if("beforebegin"===t){var i=this.previousSibling;e.call(this,t,o);n(i||this.parentNode.firstChild,this)}else if("afterbegin"===t)i=this.firstChild,e.call(this,t,o),n(this.firstChild,i);else if("beforeend"===t)i=this.lastChild,e.call(this,t,o),n(i||this.firstChild,null);else if("afterend"===t)i=this.nextSibling,e.call(this,t,o),n(this.nextSibling,i);else throw new SyntaxError("The value provided ("+String(t)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.")}))}var a=st;H&&r(Element.prototype,"attachShadow",(function(t){t=H.call(this,t);var e=a;if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.c.length;n++)e.c[n](t)}return this.__CE_shadowRoot=t}));R&&R.get?t(Element.prototype,R):Y&&Y.get?t(HTMLElement.prototype,Y):s(a,(function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return A.call(this,!0).innerHTML},set:function(t){var e="template"===this.localName,n=e?this.content:this,o=C.call(document,this.namespaceURI,this.localName);for(o.innerHTML=t;0<n.childNodes.length;)L.call(n,n.childNodes[0]);for(t=e?o.content:o;0<t.childNodes.length;)O.call(n,t.childNodes[0])}})}));r(Element.prototype,"setAttribute",(function(t,e){if(1!==this.__CE_state)return F.call(this,t,e);var n=P.call(this,t);F.call(this,t,e);e=P.call(this,t);a.attributeChangedCallback(this,t,n,e,null)}));r(Element.prototype,"setAttributeNS",(function(t,e,n){if(1!==this.__CE_state)return U.call(this,t,e,n);var o=z.call(this,t,e);U.call(this,t,e,n);n=z.call(this,t,e);a.attributeChangedCallback(this,e,o,n,t)}));r(Element.prototype,"removeAttribute",(function(t){if(1!==this.__CE_state)return I.call(this,t);var e=P.call(this,t);I.call(this,t);null!==e&&a.attributeChangedCallback(this,t,e,null,null)}));r(Element.prototype,"removeAttributeNS",(function(t,e){if(1!==this.__CE_state)return W.call(this,t,e);var n=z.call(this,t,e);W.call(this,t,e);var o=z.call(this,t,e);n!==o&&a.attributeChangedCallback(this,e,n,o,t)}));Z?e(HTMLElement.prototype,Z):q?e(Element.prototype,q):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");tt?o(HTMLElement.prototype,tt):B?o(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");ot(a,Element.prototype,{h:$,append:V});at(a)}var lt=window.customElements;if(!lt||lt.forcePolyfill||"function"!=typeof lt.define||"function"!=typeof lt.get){var st=new a;nt();it();ot(st,DocumentFragment.prototype,{h:D,append:k});rt();ct();document.__CE_hasRegistry=!0;var ut=new w(st);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ut})}}).call(self);"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var t=document.querySelector("base");return t&&t.href?t.href:document.URL}});"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail);return n},window.CustomEvent.prototype=window.Event.prototype);(function(t,e,n){t.composedPath||(t.composedPath=function(){if(this.path)return this.path;var t=this.target;for(this.path=[];null!==t.parentNode;)this.path.push(t),t=t.parentNode;this.path.push(e,n);return this.path})})(Event.prototype,document,window);
2
- /*!
3
- Element.closest and Element.matches
4
- https://github.com/jonathantneal/closest
5
- Creative Commons Zero v1.0 Universal
6
- */(function(t){"function"!==typeof t.matches&&(t.matches=t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||function(t){t=(this.document||this.ownerDocument).querySelectorAll(t);for(var e=0;t[e]&&t[e]!==this;)++e;return!!t[e]});"function"!==typeof t.closest&&(t.closest=function(t){for(var e=this;e&&1===e.nodeType;){if(e.matches(t))return e;e=e.parentNode}return null})})(window.Element.prototype);
7
- /*!
8
- Element.getRootNode()
9
- */(function(t){function e(t){t=n(t);return t&&11===t.nodeType?e(t.host):t}function n(t){return t&&t.parentNode?n(t.parentNode):t}"function"!==typeof t.getRootNode&&(t.getRootNode=function(t){return t&&t.composed?e(this):n(this)})})(Element.prototype);
10
- /*!
11
- Element.isConnected()
12
- */(function(t){"isConnected"in t||Object.defineProperty(t,"isConnected",{configurable:!0,enumerable:!0,get:function(){var t=this.getRootNode({composed:!0});return t&&9===t.nodeType}})})(Element.prototype);
13
- /*!
14
- Element.remove()
15
- */(function(t){t.forEach((function(t){t.hasOwnProperty("remove")||Object.defineProperty(t,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
16
- /*!
17
- Element.classList
18
- */!function(t){"classList"in t||Object.defineProperty(t,"classList",{get:function(){var t=this,e=(t.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){e.length>0?t.setAttribute("class",e.join(" ")):t.removeAttribute("class")}return""===e[0]&&e.splice(0,1),e.toggle=function(t,o){void 0!==o?o?e.add(t):e.remove(t):-1!==e.indexOf(t)?e.splice(e.indexOf(t),1):e.push(t),n()},e.add=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1===e.indexOf(t[o])&&e.push(t[o]);n()},e.remove=function(){for(var t=[].slice.call(arguments),o=0,i=t.length;o<i;o++)-1!==e.indexOf(t[o])&&e.splice(e.indexOf(t[o]),1);n()},e.item=function(t){return e[t]},e.contains=function(t){return-1!==e.indexOf(t)},e.replace=function(t,o){-1!==e.indexOf(t)&&e.splice(e.indexOf(t),1,o),n()},e.value=t.getAttribute("class")||"",e}})}(Element.prototype);
19
- /*!
20
- DOMTokenList
21
- */(function(t){try{document.body.classList.add()}catch(o){var e=t.add,n=t.remove;t.add=function(){for(var t=0;t<arguments.length;t++)e.call(this,arguments[t])};t.remove=function(){for(var t=0;t<arguments.length;t++)n.call(this,arguments[t])}}})(DOMTokenList.prototype)}}}));