@oiz/stzh-components 2.0.0-beta → 2.1.0-alpha

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 (693) hide show
  1. package/dist/cjs/{app-globals-58a084a9.js → app-globals-e1f4f1d9.js} +1 -1
  2. package/dist/cjs/{dom-874a1e39.js → dom-9deb26c8.js} +1 -1
  3. package/dist/cjs/{index-ac9bdc7f.js → index-9fcb4305.js} +228 -210
  4. package/dist/cjs/loader.cjs.js +4 -4
  5. package/dist/cjs/{shadow-css-a33dc836.js → shadow-css-bf3843d2.js} +1 -1
  6. package/dist/cjs/stzh-accordion-item.cjs.entry.js +34 -26
  7. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -3
  8. package/dist/cjs/stzh-actions.cjs.entry.js +3 -5
  9. package/dist/cjs/stzh-actionset.cjs.entry.js +16 -24
  10. package/dist/cjs/stzh-anchornav.cjs.entry.js +52 -0
  11. package/dist/cjs/stzh-appnav.cjs.entry.js +4 -7
  12. package/dist/cjs/stzh-appointments.cjs.entry.js +12 -17
  13. package/dist/cjs/stzh-audio.cjs.entry.js +4150 -0
  14. package/dist/cjs/stzh-badge_3.cjs.entry.js +38 -59
  15. package/dist/cjs/stzh-calendar.cjs.entry.js +9 -25
  16. package/dist/cjs/stzh-card-list.cjs.entry.js +23 -26
  17. package/dist/cjs/stzh-card.cjs.entry.js +37 -49
  18. package/dist/cjs/stzh-cell.cjs.entry.js +1 -8
  19. package/dist/cjs/stzh-checkbox.cjs.entry.js +15 -20
  20. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +29 -20
  21. package/dist/cjs/stzh-chip-select.cjs.entry.js +57 -11
  22. package/dist/cjs/stzh-chip.cjs.entry.js +15 -24
  23. package/dist/cjs/stzh-clamp.cjs.entry.js +27 -0
  24. package/dist/cjs/stzh-components.cjs.js +5 -5
  25. package/dist/cjs/stzh-container.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
  27. package/dist/cjs/stzh-datalist.cjs.entry.js +8 -20
  28. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +12 -12
  29. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-datatable.cjs.entry.js +16 -22
  31. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +431 -0
  32. package/dist/cjs/stzh-dialog.cjs.entry.js +12 -20
  33. package/dist/cjs/stzh-dropdown.cjs.entry.js +17 -37
  34. package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -5
  35. package/dist/cjs/stzh-figure.cjs.entry.js +1 -3
  36. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +7 -7
  37. package/dist/cjs/stzh-footer.cjs.entry.js +5 -5
  38. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +10 -21
  39. package/dist/cjs/stzh-header.cjs.entry.js +3 -9
  40. package/dist/cjs/stzh-heading.cjs.entry.js +2 -5
  41. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  42. package/dist/cjs/stzh-hspace.cjs.entry.js +2 -11
  43. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
  44. package/dist/cjs/{stzh-input-description-9802abc2.js → stzh-input-description-4326b0d9.js} +1 -1
  45. package/dist/cjs/stzh-input.cjs.entry.js +32 -39
  46. package/dist/cjs/stzh-link.cjs.entry.js +27 -33
  47. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-list.cjs.entry.js +1 -2
  49. package/dist/cjs/stzh-loader.cjs.entry.js +1 -4
  50. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -4
  51. package/dist/cjs/stzh-menu_2.cjs.entry.js +13 -17
  52. package/dist/cjs/stzh-message.cjs.entry.js +6 -19
  53. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-olmap.cjs.entry.js +51129 -0
  55. package/dist/cjs/stzh-overlay.cjs.entry.js +1 -4
  56. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  57. package/dist/cjs/stzh-pagetitle.cjs.entry.js +2 -2
  58. package/dist/cjs/stzh-popover.cjs.entry.js +10 -13
  59. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
  60. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +9 -9
  61. package/dist/cjs/stzh-progressbar.cjs.entry.js +9 -24
  62. package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -1
  63. package/dist/cjs/stzh-row.cjs.entry.js +1 -9
  64. package/dist/cjs/stzh-saptcha.cjs.entry.js +5 -8
  65. package/dist/cjs/stzh-section.cjs.entry.js +1 -2
  66. package/dist/cjs/stzh-skiplink.cjs.entry.js +4 -2
  67. package/dist/cjs/stzh-sortable.cjs.entry.js +29 -32
  68. package/dist/cjs/stzh-status.cjs.entry.js +1 -5
  69. package/dist/cjs/stzh-sticky.cjs.entry.js +84 -0
  70. package/dist/cjs/stzh-table.cjs.entry.js +9 -11
  71. package/dist/cjs/stzh-text.cjs.entry.js +37 -0
  72. package/dist/cjs/stzh-toggle.cjs.entry.js +16 -22
  73. package/dist/cjs/stzh-tooltip.cjs.entry.js +12 -23
  74. package/dist/cjs/stzh-upload.cjs.entry.js +52 -131
  75. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +5 -7
  76. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +8 -9
  77. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +7 -8
  78. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-vspace.cjs.entry.js +2 -11
  80. package/dist/collection/assets/i18n/de.json +19 -0
  81. package/dist/collection/assets/i18n/en.json +19 -0
  82. package/dist/collection/assets/icons/mono/code-window.svg +3 -0
  83. package/dist/collection/assets/icons/mono/target-bullet.svg +12 -0
  84. package/dist/collection/assets/media/olmap/marker-active.png +0 -0
  85. package/dist/collection/assets/media/olmap/marker-position.png +0 -0
  86. package/dist/collection/assets/media/olmap/marker.png +0 -0
  87. package/dist/collection/assets/media/olmap/thumb-satellite.jpg +0 -0
  88. package/dist/collection/assets/media/olmap/thumb-streets.jpg +0 -0
  89. package/dist/collection/collection-manifest.json +7 -2
  90. package/dist/collection/components/stzh-accordion/stzh-accordion.js +0 -2
  91. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +34 -8
  92. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +123 -24
  93. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +9 -0
  94. package/dist/collection/components/stzh-actions/stzh-actions.js +2 -4
  95. package/dist/collection/components/stzh-actionset/stzh-actionset.js +21 -29
  96. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +286 -0
  97. package/dist/collection/components/stzh-anchornav/stzh-anchornav.js +216 -0
  98. package/dist/collection/components/stzh-anchornav/stzh-anchornav.stories.js +76 -0
  99. package/dist/collection/components/stzh-appnav/stzh-appnav.js +3 -6
  100. package/dist/collection/components/stzh-appointments/stzh-appointments.js +11 -16
  101. package/dist/collection/components/stzh-audio/stzh-audio.css +319 -0
  102. package/dist/collection/components/stzh-audio/stzh-audio.js +333 -0
  103. package/dist/collection/components/stzh-audio/stzh-audio.localization.js +1 -0
  104. package/dist/collection/components/stzh-audio/stzh-audio.stories.js +89 -0
  105. package/dist/collection/components/stzh-badge/stzh-badge.css +22 -2
  106. package/dist/collection/components/stzh-badge/stzh-badge.js +24 -2
  107. package/dist/collection/components/stzh-button/stzh-button.css +1 -0
  108. package/dist/collection/components/stzh-button/stzh-button.js +65 -46
  109. package/dist/collection/components/stzh-calendar/stzh-calendar.js +8 -24
  110. package/dist/collection/components/stzh-card/stzh-card.css +2 -14
  111. package/dist/collection/components/stzh-card/stzh-card.js +39 -69
  112. package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -4
  113. package/dist/collection/components/stzh-card-list/stzh-card-list.js +25 -54
  114. package/dist/collection/components/stzh-card-list/stzh-card-list.stories.js +2 -2
  115. package/dist/collection/components/stzh-cell/stzh-cell.js +0 -7
  116. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +13 -18
  117. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +33 -20
  118. package/dist/collection/components/stzh-chip/stzh-chip.js +49 -23
  119. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +80 -0
  120. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +217 -9
  121. package/dist/collection/components/stzh-clamp/stzh-clamp.css +279 -0
  122. package/dist/collection/components/stzh-clamp/stzh-clamp.js +125 -0
  123. package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +41 -0
  124. package/dist/collection/components/stzh-cspace/stzh-cspace.css +87 -176
  125. package/dist/collection/components/stzh-datalist/stzh-datalist.js +7 -19
  126. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +3 -8
  127. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +10 -10
  128. package/dist/collection/components/stzh-datatable/stzh-datatable.css +5 -0
  129. package/dist/collection/components/stzh-datatable/stzh-datatable.js +14 -20
  130. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +19 -35
  131. package/dist/collection/components/stzh-dialog/stzh-dialog.css +9 -19
  132. package/dist/collection/components/stzh-dialog/stzh-dialog.js +10 -18
  133. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +15 -35
  134. package/dist/collection/components/stzh-fieldset/stzh-fieldset.js +0 -4
  135. package/dist/collection/components/stzh-figure/stzh-figure.js +0 -2
  136. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +6 -6
  137. package/dist/collection/components/stzh-footer/stzh-footer.js +4 -4
  138. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +16 -16
  139. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +7 -16
  140. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.stories.js +6 -6
  141. package/dist/collection/components/stzh-header/stzh-header.js +2 -8
  142. package/dist/collection/components/stzh-heading/stzh-heading.css +5 -15
  143. package/dist/collection/components/stzh-heading/stzh-heading.js +0 -3
  144. package/dist/collection/components/stzh-hr/stzh-hr.stories.js +11 -1
  145. package/dist/collection/components/stzh-hspace/stzh-hspace.css +19 -24
  146. package/dist/collection/components/stzh-hspace/stzh-hspace.js +0 -9
  147. package/dist/collection/components/stzh-icon/stzh-icon.js +0 -8
  148. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +58 -32
  149. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  150. package/dist/collection/components/stzh-input/stzh-input.js +31 -38
  151. package/dist/collection/components/stzh-link/stzh-link.css +18 -0
  152. package/dist/collection/components/stzh-link/stzh-link.js +97 -31
  153. package/dist/collection/components/stzh-link/stzh-link.stories.js +3 -1
  154. package/dist/collection/components/stzh-list/stzh-list.js +0 -1
  155. package/dist/collection/components/stzh-loader/stzh-loader.js +0 -3
  156. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.js +0 -3
  157. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +48 -16
  158. package/dist/collection/components/stzh-message/stzh-message.css +5 -0
  159. package/dist/collection/components/stzh-message/stzh-message.js +4 -17
  160. package/dist/collection/components/stzh-olmap/stzh-olmap.css +284 -0
  161. package/dist/collection/components/stzh-olmap/stzh-olmap.js +1042 -0
  162. package/dist/collection/components/stzh-olmap/stzh-olmap.localization.js +1 -0
  163. package/dist/collection/components/stzh-olmap/stzh-olmap.stories.js +36 -0
  164. package/dist/collection/components/stzh-overlay/stzh-overlay.js +0 -3
  165. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +3 -8
  166. package/dist/collection/components/stzh-popover/stzh-popover.js +9 -12
  167. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +226 -337
  168. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.js +1 -2
  169. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.stories.js +1 -1
  170. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +8 -23
  171. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +8 -8
  172. package/dist/collection/components/stzh-radio/stzh-radio.js +13 -18
  173. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +34 -22
  174. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +2 -0
  175. package/dist/collection/components/stzh-richtext/stzh-richtext.css +88 -129
  176. package/dist/collection/components/stzh-richtext/stzh-richtext.js +0 -2
  177. package/dist/collection/components/stzh-row/stzh-row.js +0 -8
  178. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +8 -8
  179. package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +3 -6
  180. package/dist/collection/components/stzh-section/stzh-section.js +0 -1
  181. package/dist/collection/components/stzh-skiplink/stzh-skiplink.js +3 -1
  182. package/dist/collection/components/stzh-sortable/stzh-sortable.css +12 -6
  183. package/dist/collection/components/stzh-sortable/stzh-sortable.js +27 -30
  184. package/dist/collection/components/stzh-status/stzh-status.js +0 -4
  185. package/dist/collection/components/stzh-sticky/stzh-sticky.css +144 -0
  186. package/dist/collection/components/stzh-sticky/stzh-sticky.js +184 -0
  187. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +91 -0
  188. package/dist/collection/components/stzh-table/stzh-table.css +5 -0
  189. package/dist/collection/components/stzh-table/stzh-table.js +7 -9
  190. package/dist/collection/components/stzh-text/stzh-text.js +0 -8
  191. package/dist/collection/components/stzh-toggle/stzh-toggle.js +14 -20
  192. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +11 -22
  193. package/dist/collection/components/stzh-upload/stzh-upload.css +16 -7
  194. package/dist/collection/components/stzh-upload/stzh-upload.js +49 -128
  195. package/dist/collection/components/stzh-upload/stzh-upload.stories.js +1 -1
  196. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +4 -6
  197. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.js +7 -8
  198. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +2 -7
  199. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +5 -6
  200. package/dist/collection/components/stzh-vspace/stzh-vspace.css +19 -24
  201. package/dist/collection/components/stzh-vspace/stzh-vspace.js +0 -9
  202. package/dist/collection/pages/meinkonto.stories.js +3 -3
  203. package/dist/components/index.d.ts +5 -0
  204. package/dist/components/index.js +6 -1
  205. package/dist/components/stzh-accordion-item.js +51 -26
  206. package/dist/components/stzh-accordion.js +0 -2
  207. package/dist/components/stzh-actions.js +2 -4
  208. package/dist/components/stzh-actionset2.js +15 -23
  209. package/dist/components/stzh-anchornav.d.ts +11 -0
  210. package/dist/components/stzh-anchornav.js +97 -0
  211. package/dist/components/stzh-appnav.js +3 -6
  212. package/dist/components/stzh-appointments.js +11 -16
  213. package/dist/components/stzh-audio.d.ts +11 -0
  214. package/dist/components/stzh-audio.js +4195 -0
  215. package/dist/components/stzh-badge2.js +9 -4
  216. package/dist/components/stzh-button2.js +32 -47
  217. package/dist/components/stzh-calendar2.js +8 -24
  218. package/dist/components/stzh-card-list.js +23 -27
  219. package/dist/components/stzh-card.js +36 -49
  220. package/dist/components/stzh-cell.js +0 -7
  221. package/dist/components/stzh-checkbox.js +13 -18
  222. package/dist/components/stzh-checkboxgroup.js +28 -19
  223. package/dist/components/stzh-chip-select.js +67 -12
  224. package/dist/components/stzh-chip2.js +16 -23
  225. package/dist/components/stzh-clamp.d.ts +11 -0
  226. package/dist/components/stzh-clamp.js +6 -0
  227. package/dist/components/stzh-clamp2.js +43 -0
  228. package/dist/components/stzh-cspace.js +1 -1
  229. package/dist/components/stzh-datalist.js +7 -19
  230. package/dist/components/stzh-datamessagelist-item.js +11 -11
  231. package/dist/components/stzh-datatable.js +15 -21
  232. package/dist/components/stzh-datepicker2.js +19 -35
  233. package/dist/components/stzh-dialog.js +11 -19
  234. package/dist/components/stzh-dropdown2.js +15 -35
  235. package/dist/components/stzh-fieldset.js +0 -4
  236. package/dist/components/stzh-figure.js +0 -2
  237. package/dist/components/stzh-flyingfocus.js +6 -6
  238. package/dist/components/stzh-footer.js +4 -4
  239. package/dist/components/stzh-ghettobox2.js +8 -17
  240. package/dist/components/stzh-header.js +2 -8
  241. package/dist/components/stzh-heading2.js +1 -4
  242. package/dist/components/stzh-hspace.js +1 -10
  243. package/dist/components/stzh-icon-sprite.js +1 -1
  244. package/dist/components/stzh-icon2.js +0 -8
  245. package/dist/components/stzh-input2.js +30 -37
  246. package/dist/components/stzh-link2.js +30 -32
  247. package/dist/components/stzh-list.js +0 -1
  248. package/dist/components/stzh-loader.js +1 -43
  249. package/dist/components/stzh-loader2.js +42 -0
  250. package/dist/components/stzh-loadingbar.js +0 -3
  251. package/dist/components/stzh-menu-item2.js +14 -16
  252. package/dist/components/stzh-message.js +5 -18
  253. package/dist/components/stzh-olmap.d.ts +11 -0
  254. package/dist/components/stzh-olmap.js +51168 -0
  255. package/dist/components/stzh-overlay.js +0 -3
  256. package/dist/components/stzh-pagetitle.js +1 -1
  257. package/dist/components/stzh-popover2.js +9 -12
  258. package/dist/components/stzh-portal-mitwirken.js +1 -1
  259. package/dist/components/stzh-progressbar-item2.js +8 -8
  260. package/dist/components/stzh-progressbar.js +8 -23
  261. package/dist/components/stzh-radio2.js +13 -18
  262. package/dist/components/stzh-radiogroup2.js +29 -21
  263. package/dist/components/stzh-readspeaker.js +2 -0
  264. package/dist/components/stzh-richtext2.js +1 -3
  265. package/dist/components/stzh-row.js +0 -8
  266. package/dist/components/stzh-saptcha.js +4 -7
  267. package/dist/components/stzh-section.js +0 -1
  268. package/dist/components/stzh-skiplink.js +3 -1
  269. package/dist/components/stzh-sortable2.js +28 -31
  270. package/dist/components/stzh-status2.js +0 -4
  271. package/dist/components/stzh-sticky.d.ts +11 -0
  272. package/dist/components/stzh-sticky.js +102 -0
  273. package/dist/components/stzh-table.js +8 -10
  274. package/dist/components/stzh-text2.js +0 -8
  275. package/dist/components/stzh-toggle.js +14 -20
  276. package/dist/components/stzh-tooltip2.js +11 -22
  277. package/dist/components/stzh-upload.js +50 -129
  278. package/dist/components/stzh-vbz-linechip2.js +4 -6
  279. package/dist/components/stzh-vbz-majorticker.js +7 -8
  280. package/dist/components/stzh-vbz-ticker.js +6 -7
  281. package/dist/components/stzh-vspace.js +1 -10
  282. package/dist/esm/{app-globals-6b6ff890.js → app-globals-453acbdb.js} +1 -1
  283. package/dist/esm/{dom-104fb833.js → dom-6be6f662.js} +1 -1
  284. package/dist/esm/{index-84f71a43.js → index-2915b467.js} +228 -210
  285. package/dist/esm/loader.js +4 -4
  286. package/dist/esm/polyfills/css-shim.js +1 -1
  287. package/dist/esm/{shadow-css-4261c637.js → shadow-css-ed4599f8.js} +1 -1
  288. package/dist/esm/stzh-accordion-item.entry.js +34 -26
  289. package/dist/esm/stzh-accordion.entry.js +1 -3
  290. package/dist/esm/stzh-actions.entry.js +3 -5
  291. package/dist/esm/stzh-actionset.entry.js +16 -24
  292. package/dist/esm/stzh-anchornav.entry.js +48 -0
  293. package/dist/esm/stzh-appnav.entry.js +4 -7
  294. package/dist/esm/stzh-appointments.entry.js +12 -17
  295. package/dist/esm/stzh-audio.entry.js +4146 -0
  296. package/dist/esm/stzh-badge_3.entry.js +38 -59
  297. package/dist/esm/stzh-calendar.entry.js +10 -26
  298. package/dist/esm/stzh-card-list.entry.js +23 -26
  299. package/dist/esm/stzh-card.entry.js +37 -49
  300. package/dist/esm/stzh-cell.entry.js +1 -8
  301. package/dist/esm/stzh-checkbox.entry.js +15 -20
  302. package/dist/esm/stzh-checkboxgroup.entry.js +29 -20
  303. package/dist/esm/stzh-chip-select.entry.js +57 -11
  304. package/dist/esm/stzh-chip.entry.js +15 -24
  305. package/dist/esm/stzh-clamp.entry.js +23 -0
  306. package/dist/esm/stzh-components.js +5 -5
  307. package/dist/esm/stzh-container.entry.js +1 -1
  308. package/dist/esm/stzh-cspace.entry.js +2 -2
  309. package/dist/esm/stzh-datalist.entry.js +8 -20
  310. package/dist/esm/stzh-datamessagelist-item.entry.js +12 -12
  311. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  312. package/dist/esm/stzh-datatable.entry.js +16 -22
  313. package/dist/esm/stzh-datepicker_3.entry.js +425 -0
  314. package/dist/esm/stzh-dialog.entry.js +12 -20
  315. package/dist/esm/stzh-dropdown.entry.js +17 -37
  316. package/dist/esm/stzh-fieldset.entry.js +1 -5
  317. package/dist/esm/stzh-figure.entry.js +1 -3
  318. package/dist/esm/stzh-flyingfocus.entry.js +7 -7
  319. package/dist/esm/stzh-footer.entry.js +5 -5
  320. package/dist/esm/stzh-ghettobox_2.entry.js +10 -21
  321. package/dist/esm/stzh-header.entry.js +3 -9
  322. package/dist/esm/stzh-heading.entry.js +2 -5
  323. package/dist/esm/stzh-hr.entry.js +1 -1
  324. package/dist/esm/stzh-hspace.entry.js +2 -11
  325. package/dist/esm/stzh-icon-sprite.entry.js +2 -2
  326. package/dist/esm/{stzh-input-description-8c477f97.js → stzh-input-description-e87e6697.js} +1 -1
  327. package/dist/esm/stzh-input.entry.js +32 -39
  328. package/dist/esm/stzh-link.entry.js +27 -33
  329. package/dist/esm/stzh-list-item.entry.js +1 -1
  330. package/dist/esm/stzh-list.entry.js +1 -2
  331. package/dist/esm/stzh-loader.entry.js +1 -4
  332. package/dist/esm/stzh-loadingbar.entry.js +1 -4
  333. package/dist/esm/stzh-menu_2.entry.js +13 -17
  334. package/dist/esm/stzh-message.entry.js +6 -19
  335. package/dist/esm/stzh-metanav.entry.js +1 -1
  336. package/dist/esm/stzh-olmap.entry.js +51125 -0
  337. package/dist/esm/stzh-overlay.entry.js +1 -4
  338. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  339. package/dist/esm/stzh-pagetitle.entry.js +2 -2
  340. package/dist/esm/stzh-popover.entry.js +10 -13
  341. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  342. package/dist/esm/stzh-progressbar-item.entry.js +9 -9
  343. package/dist/esm/stzh-progressbar.entry.js +9 -24
  344. package/dist/esm/stzh-readspeaker.entry.js +3 -1
  345. package/dist/esm/stzh-row.entry.js +1 -9
  346. package/dist/esm/stzh-saptcha.entry.js +5 -8
  347. package/dist/esm/stzh-section.entry.js +1 -2
  348. package/dist/esm/stzh-skiplink.entry.js +4 -2
  349. package/dist/esm/stzh-sortable.entry.js +29 -32
  350. package/dist/esm/stzh-status.entry.js +1 -5
  351. package/dist/esm/stzh-sticky.entry.js +80 -0
  352. package/dist/esm/stzh-table.entry.js +9 -11
  353. package/dist/esm/stzh-text.entry.js +33 -0
  354. package/dist/esm/stzh-toggle.entry.js +16 -22
  355. package/dist/esm/stzh-tooltip.entry.js +12 -23
  356. package/dist/esm/stzh-upload.entry.js +52 -131
  357. package/dist/esm/stzh-vbz-linechip.entry.js +5 -7
  358. package/dist/esm/stzh-vbz-majorticker.entry.js +8 -9
  359. package/dist/esm/stzh-vbz-ticker.entry.js +7 -8
  360. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  361. package/dist/esm/stzh-vspace.entry.js +2 -11
  362. package/dist/esm-es5/app-globals-453acbdb.js +1 -0
  363. package/dist/esm-es5/{dom-104fb833.js → dom-6be6f662.js} +0 -0
  364. package/dist/esm-es5/index-2915b467.js +2 -0
  365. package/dist/esm-es5/loader.js +1 -1
  366. package/dist/esm-es5/{shadow-css-4261c637.js → shadow-css-ed4599f8.js} +0 -0
  367. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  368. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  369. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  370. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  371. package/dist/esm-es5/stzh-anchornav.entry.js +1 -0
  372. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  373. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  374. package/dist/esm-es5/stzh-audio.entry.js +31 -0
  375. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  376. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  377. package/dist/esm-es5/stzh-card-list.entry.js +1 -1
  378. package/dist/esm-es5/stzh-card.entry.js +1 -1
  379. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  380. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  381. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  382. package/dist/esm-es5/stzh-chip-select.entry.js +1 -1
  383. package/dist/esm-es5/stzh-chip.entry.js +1 -1
  384. package/dist/esm-es5/stzh-clamp.entry.js +1 -0
  385. package/dist/esm-es5/stzh-components.js +1 -1
  386. package/dist/esm-es5/stzh-container.entry.js +1 -1
  387. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  388. package/dist/esm-es5/stzh-datalist.entry.js +1 -1
  389. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  390. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  391. package/dist/esm-es5/stzh-datatable.entry.js +2 -2
  392. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -0
  393. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  394. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  395. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  396. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  397. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  398. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  399. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  400. package/dist/esm-es5/stzh-header.entry.js +1 -1
  401. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  402. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  403. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  404. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  405. package/dist/esm-es5/{stzh-input-description-8c477f97.js → stzh-input-description-e87e6697.js} +1 -1
  406. package/dist/esm-es5/stzh-input.entry.js +1 -1
  407. package/dist/esm-es5/stzh-link.entry.js +1 -1
  408. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  409. package/dist/esm-es5/stzh-list.entry.js +1 -1
  410. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  411. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  412. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  413. package/dist/esm-es5/stzh-message.entry.js +1 -1
  414. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  415. package/dist/esm-es5/stzh-olmap.entry.js +7 -0
  416. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  417. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  418. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  419. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  420. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  421. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  422. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  423. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  424. package/dist/esm-es5/stzh-row.entry.js +1 -1
  425. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  426. package/dist/esm-es5/stzh-section.entry.js +1 -1
  427. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  428. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  429. package/dist/esm-es5/stzh-status.entry.js +1 -1
  430. package/dist/esm-es5/stzh-sticky.entry.js +1 -0
  431. package/dist/esm-es5/stzh-table.entry.js +1 -1
  432. package/dist/{stzh-components/p-fc6b4f91.system.entry.js → esm-es5/stzh-text.entry.js} +1 -1
  433. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  434. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  435. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  436. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  437. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  438. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  439. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  440. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  441. package/dist/stzh-components/assets/i18n/de.json +19 -0
  442. package/dist/stzh-components/assets/i18n/en.json +19 -0
  443. package/dist/stzh-components/assets/icons/mono/code-window.svg +3 -0
  444. package/dist/stzh-components/assets/icons/mono/target-bullet.svg +12 -0
  445. package/dist/stzh-components/assets/media/olmap/marker-active.png +0 -0
  446. package/dist/stzh-components/assets/media/olmap/marker-position.png +0 -0
  447. package/dist/stzh-components/assets/media/olmap/marker.png +0 -0
  448. package/dist/stzh-components/assets/media/olmap/thumb-satellite.jpg +0 -0
  449. package/dist/stzh-components/assets/media/olmap/thumb-streets.jpg +0 -0
  450. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +58 -32
  451. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  452. package/dist/stzh-components/{p-5a354428.system.entry.js → p-011dcf30.system.entry.js} +1 -1
  453. package/dist/stzh-components/p-01909f35.system.entry.js +1 -0
  454. package/dist/stzh-components/p-020379d7.system.entry.js +7 -0
  455. package/dist/stzh-components/p-025953d1.system.entry.js +1 -0
  456. package/dist/stzh-components/{p-981b2629.system.entry.js → p-0321e98e.system.entry.js} +1 -1
  457. package/dist/stzh-components/p-04dd6821.entry.js +1 -0
  458. package/dist/stzh-components/p-05901b22.system.entry.js +1 -0
  459. package/dist/stzh-components/{p-fdf0b4bc.system.entry.js → p-08714718.system.entry.js} +1 -1
  460. package/dist/stzh-components/p-090bfb8e.system.entry.js +1 -0
  461. package/dist/stzh-components/p-0977d9b6.entry.js +1 -0
  462. package/dist/stzh-components/{p-8f16b0ac.entry.js → p-0c10d9b1.entry.js} +2 -2
  463. package/dist/stzh-components/p-0e474d1a.system.entry.js +1 -0
  464. package/dist/stzh-components/p-0e48efa7.entry.js +1 -0
  465. package/dist/stzh-components/{p-4c61dcad.js → p-13051e1c.js} +0 -0
  466. package/dist/stzh-components/{p-b9295dc2.entry.js → p-1399b2d7.entry.js} +1 -1
  467. package/dist/stzh-components/p-140e4b63.entry.js +1 -0
  468. package/dist/stzh-components/p-14f0d546.entry.js +1 -0
  469. package/dist/stzh-components/p-183e4790.system.entry.js +1 -0
  470. package/dist/stzh-components/p-1a5fc8e3.system.entry.js +1 -0
  471. package/dist/stzh-components/{p-db5363ef.entry.js → p-20a6ffbb.entry.js} +1 -1
  472. package/dist/stzh-components/p-229f4ebc.system.entry.js +1 -0
  473. package/dist/stzh-components/{p-89274cd5.system.entry.js → p-26159eac.system.entry.js} +1 -1
  474. package/dist/stzh-components/{p-6523a23b.system.js → p-2732d8c8.system.js} +0 -0
  475. package/dist/stzh-components/{p-56b9cc3c.system.entry.js → p-27573504.system.entry.js} +1 -1
  476. package/dist/stzh-components/p-27839f48.entry.js +1 -0
  477. package/dist/stzh-components/{p-fc13d017.system.entry.js → p-27bfb4c2.system.entry.js} +1 -1
  478. package/dist/stzh-components/{p-29427863.entry.js → p-29d9a568.entry.js} +1 -1
  479. package/dist/stzh-components/p-2bf021f2.js +1 -0
  480. package/dist/stzh-components/{p-f1356a85.entry.js → p-2c16d2ea.entry.js} +1 -1
  481. package/dist/stzh-components/p-2c783943.entry.js +1 -0
  482. package/dist/stzh-components/p-2c891eee.entry.js +1 -0
  483. package/dist/stzh-components/{p-17c6c1db.system.entry.js → p-2e276f2e.system.entry.js} +1 -1
  484. package/dist/stzh-components/{p-5bd2849d.entry.js → p-30e5a674.entry.js} +1 -1
  485. package/dist/stzh-components/{p-19bff884.system.entry.js → p-33a52001.system.entry.js} +1 -1
  486. package/dist/stzh-components/p-34eb65b9.entry.js +1 -0
  487. package/dist/stzh-components/p-3623b3a5.system.js +1 -0
  488. package/dist/stzh-components/p-36596b2b.system.entry.js +1 -0
  489. package/dist/stzh-components/{p-d6c07494.system.entry.js → p-37bdb9cd.system.entry.js} +1 -1
  490. package/dist/stzh-components/p-38977481.entry.js +1 -0
  491. package/dist/stzh-components/p-3a279b45.entry.js +1 -0
  492. package/dist/stzh-components/p-3a47ff2d.system.entry.js +1 -0
  493. package/dist/stzh-components/p-3b33fa76.system.entry.js +1 -0
  494. package/dist/stzh-components/{p-2b338050.entry.js → p-3e24b964.entry.js} +1 -1
  495. package/dist/stzh-components/{p-ee22256f.entry.js → p-3e504f50.entry.js} +1 -1
  496. package/dist/stzh-components/{p-b9382599.entry.js → p-3efefb7f.entry.js} +1 -1
  497. package/dist/stzh-components/{p-8a9e588e.system.entry.js → p-3f8976bc.system.entry.js} +1 -1
  498. package/dist/stzh-components/{p-8d0da18d.system.entry.js → p-3fc40cc0.system.entry.js} +1 -1
  499. package/dist/stzh-components/{p-4c6989ae.system.entry.js → p-440ae0cc.system.entry.js} +1 -1
  500. package/dist/stzh-components/{p-b550feaa.system.entry.js → p-44435254.system.entry.js} +1 -1
  501. package/dist/stzh-components/{p-ab246b66.entry.js → p-456143f9.entry.js} +1 -1
  502. package/dist/stzh-components/{p-190de4de.entry.js → p-46f4e907.entry.js} +1 -1
  503. package/dist/stzh-components/p-470e5f38.system.entry.js +1 -0
  504. package/dist/stzh-components/{p-ce070ccd.entry.js → p-4b93fb24.entry.js} +1 -1
  505. package/dist/stzh-components/p-509c97c9.system.entry.js +1 -0
  506. package/dist/stzh-components/{p-0fc83964.system.entry.js → p-529a56aa.system.entry.js} +1 -1
  507. package/dist/stzh-components/{p-63d89b96.system.js → p-52cd1bd1.system.js} +1 -1
  508. package/dist/stzh-components/p-53c30c58.entry.js +1 -0
  509. package/dist/stzh-components/p-55435022.system.entry.js +1 -0
  510. package/dist/stzh-components/p-554fb3ac.system.js +1 -0
  511. package/dist/stzh-components/{p-e213663c.system.entry.js → p-5869502c.system.entry.js} +1 -1
  512. package/dist/stzh-components/p-58714045.entry.js +1 -0
  513. package/dist/stzh-components/p-59970f71.entry.js +1 -0
  514. package/dist/stzh-components/{p-3d8317b5.entry.js → p-5c2d0572.entry.js} +1 -1
  515. package/dist/stzh-components/p-5c311df3.entry.js +1 -0
  516. package/dist/stzh-components/{p-72f29f07.entry.js → p-5e81420b.entry.js} +1 -1
  517. package/dist/stzh-components/p-609bf766.system.js +2 -0
  518. package/dist/stzh-components/{p-f832e938.system.entry.js → p-616e70e9.system.entry.js} +1 -1
  519. package/dist/stzh-components/p-62afe664.entry.js +1 -0
  520. package/dist/stzh-components/p-62c7caed.entry.js +1 -0
  521. package/dist/stzh-components/{p-851e0caa.system.entry.js → p-641126a8.system.entry.js} +1 -1
  522. package/dist/stzh-components/p-648e03bc.entry.js +1 -0
  523. package/dist/stzh-components/p-652eee8b.system.entry.js +1 -0
  524. package/dist/stzh-components/{p-69c3187f.system.entry.js → p-67ade1c7.system.entry.js} +1 -1
  525. package/dist/stzh-components/p-6a16ceff.entry.js +1 -0
  526. package/dist/stzh-components/{p-9c72f491.system.entry.js → p-6a96d63e.system.entry.js} +1 -1
  527. package/dist/stzh-components/p-6b2282cd.system.entry.js +1 -0
  528. package/dist/stzh-components/p-6b5f447c.system.entry.js +1 -0
  529. package/dist/stzh-components/{p-33c0229f.system.entry.js → p-6c1ad586.system.entry.js} +1 -1
  530. package/dist/stzh-components/{p-f788a468.entry.js → p-6c76e51d.entry.js} +1 -1
  531. package/dist/stzh-components/p-6cbdbd06.entry.js +1 -0
  532. package/dist/stzh-components/{p-64b4cc74.entry.js → p-6f7a7f7a.entry.js} +1 -1
  533. package/dist/stzh-components/{p-61aac051.system.entry.js → p-725b3e74.system.entry.js} +1 -1
  534. package/dist/stzh-components/p-74786856.system.entry.js +1 -0
  535. package/dist/stzh-components/p-783346ed.entry.js +1 -0
  536. package/dist/stzh-components/p-7a4c6adb.js +2 -0
  537. package/dist/stzh-components/{p-a7ee2636.entry.js → p-7d77b8d2.entry.js} +1 -1
  538. package/dist/stzh-components/{p-9fb4da92.system.entry.js → p-7dd6fbc9.system.entry.js} +1 -1
  539. package/dist/stzh-components/{p-f84fa2a4.js → p-8347b91f.js} +1 -1
  540. package/dist/stzh-components/{p-ef5d4167.js → p-8364475f.js} +0 -0
  541. package/dist/stzh-components/{p-b636a18a.system.entry.js → p-881e526e.system.entry.js} +1 -1
  542. package/dist/stzh-components/p-8d9056de.entry.js +1 -0
  543. package/dist/stzh-components/p-8e363084.system.entry.js +1 -0
  544. package/dist/stzh-components/{p-8d547247.system.entry.js → p-8eb72064.system.entry.js} +1 -1
  545. package/dist/stzh-components/{p-fa56fc0d.system.entry.js → p-8fc8d8c2.system.entry.js} +1 -1
  546. package/dist/stzh-components/{p-6305db38.system.entry.js → p-90665664.system.entry.js} +1 -1
  547. package/dist/stzh-components/{p-48b5b697.system.entry.js → p-90941379.system.entry.js} +1 -1
  548. package/dist/stzh-components/p-90ad5e2c.entry.js +1 -0
  549. package/dist/stzh-components/p-92788577.entry.js +34 -0
  550. package/dist/stzh-components/{p-27fd6c6f.system.entry.js → p-92ad9720.system.entry.js} +1 -1
  551. package/dist/stzh-components/{p-c58dd9de.entry.js → p-9454a438.entry.js} +1 -1
  552. package/dist/stzh-components/{p-b084fcbf.system.entry.js → p-965829a6.system.entry.js} +1 -1
  553. package/dist/stzh-components/p-9a7593f5.entry.js +1 -0
  554. package/dist/stzh-components/{p-58d886cb.system.entry.js → p-9ca1efe4.system.entry.js} +1 -1
  555. package/dist/stzh-components/p-9d58c713.entry.js +1 -0
  556. package/dist/stzh-components/p-a10e0117.system.entry.js +1 -0
  557. package/dist/stzh-components/p-a3559e69.entry.js +1 -0
  558. package/dist/stzh-components/p-a4a4370d.entry.js +1 -0
  559. package/dist/stzh-components/p-a61bf274.entry.js +9 -0
  560. package/dist/stzh-components/{p-ab455116.system.entry.js → p-a6da8c06.system.entry.js} +1 -1
  561. package/dist/stzh-components/p-afaa9c37.system.entry.js +1 -0
  562. package/dist/stzh-components/{p-88e0f453.entry.js → p-b09b85ac.entry.js} +1 -1
  563. package/dist/stzh-components/{p-5997e418.system.entry.js → p-b3587b9d.system.entry.js} +1 -1
  564. package/dist/stzh-components/{p-a67e09cd.system.entry.js → p-b491bcd7.system.entry.js} +1 -1
  565. package/dist/stzh-components/p-b5a59ac0.entry.js +1 -0
  566. package/dist/stzh-components/p-b666bb15.entry.js +1 -0
  567. package/dist/stzh-components/{p-2e559062.entry.js → p-b99c0844.entry.js} +1 -1
  568. package/dist/stzh-components/p-bb8f71a4.entry.js +7 -0
  569. package/dist/stzh-components/p-bb9e8364.entry.js +1 -0
  570. package/dist/stzh-components/p-bc841847.entry.js +1 -0
  571. package/dist/stzh-components/p-bd7dd853.system.entry.js +1 -0
  572. package/dist/stzh-components/p-bdc627fa.system.entry.js +1 -0
  573. package/dist/stzh-components/p-be534671.entry.js +1 -0
  574. package/dist/stzh-components/p-bfdce66c.entry.js +1 -0
  575. package/dist/stzh-components/p-c051fc3b.entry.js +1 -0
  576. package/dist/stzh-components/p-c1100fde.entry.js +1 -0
  577. package/dist/stzh-components/{p-55d23a3c.system.entry.js → p-c3161c9b.system.entry.js} +1 -1
  578. package/dist/stzh-components/{p-0fc06049.system.entry.js → p-c5749124.system.entry.js} +1 -1
  579. package/dist/stzh-components/p-c6813d9f.system.entry.js +1 -0
  580. package/dist/stzh-components/p-c7c3735a.entry.js +1 -0
  581. package/dist/stzh-components/p-c8009c05.system.entry.js +1 -0
  582. package/dist/stzh-components/{p-d0aa9d3b.entry.js → p-c866224d.entry.js} +1 -1
  583. package/dist/stzh-components/p-cbaab05e.entry.js +1 -0
  584. package/dist/stzh-components/{p-3b27a43f.system.entry.js → p-cc735465.system.entry.js} +2 -2
  585. package/dist/stzh-components/{p-6a873872.entry.js → p-d00e20ff.entry.js} +1 -1
  586. package/dist/stzh-components/{p-c3d93395.entry.js → p-d26ed018.entry.js} +1 -1
  587. package/dist/stzh-components/p-d408604f.system.entry.js +1 -0
  588. package/dist/stzh-components/{p-b9a027aa.entry.js → p-d69b12f8.entry.js} +1 -1
  589. package/dist/stzh-components/p-da857e0d.entry.js +1 -0
  590. package/dist/stzh-components/p-de8f9508.system.entry.js +1 -0
  591. package/dist/stzh-components/{p-a7c35778.system.entry.js → p-e347ce1e.system.entry.js} +1 -1
  592. package/dist/stzh-components/p-e56d7b16.system.entry.js +1 -0
  593. package/dist/stzh-components/{p-961cb979.entry.js → p-e662b688.entry.js} +1 -1
  594. package/dist/stzh-components/{p-c4b7c2be.entry.js → p-e69903fe.entry.js} +1 -1
  595. package/dist/stzh-components/p-e7afcd6f.entry.js +1 -0
  596. package/dist/stzh-components/p-e9313802.system.entry.js +31 -0
  597. package/dist/stzh-components/{p-560f96f0.system.entry.js → p-eb3425a1.system.entry.js} +1 -1
  598. package/dist/stzh-components/p-ee711f37.system.entry.js +1 -0
  599. package/dist/stzh-components/{p-5987573e.system.entry.js → p-ee944add.system.entry.js} +1 -1
  600. package/dist/stzh-components/{p-5a02ef03.entry.js → p-ef62b905.entry.js} +1 -1
  601. package/dist/stzh-components/{p-a8de6293.system.js → p-f39f347c.system.js} +0 -0
  602. package/dist/stzh-components/p-f8ccf5b1.entry.js +1 -0
  603. package/dist/stzh-components/p-f9039c23.entry.js +1 -0
  604. package/dist/stzh-components/{p-ba94e315.system.entry.js → p-fa9a4cd5.system.entry.js} +1 -1
  605. package/dist/stzh-components/p-fade35c7.entry.js +1 -0
  606. package/dist/stzh-components/{p-e7a84e53.system.entry.js → p-fd811f6b.system.entry.js} +2 -2
  607. package/dist/stzh-components/stzh-components.css +1 -1
  608. package/dist/stzh-components/stzh-components.esm.js +1 -1
  609. package/dist/stzh-components/stzh-components.js +1 -1
  610. package/dist/types/components/stzh-anchornav/stzh-anchornav.d.ts +32 -0
  611. package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +11 -0
  612. package/dist/types/components/stzh-badge/stzh-badge.d.ts +2 -0
  613. package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +16 -0
  614. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +10 -0
  615. package/dist/types/components/stzh-portal-mitwirken/stzh-portal-mitwirken.d.ts +1 -2
  616. package/dist/types/components.d.ts +644 -43
  617. package/dist/types/index.d.ts +72 -1
  618. package/dist/types/stencil-public-runtime.d.ts +20 -4
  619. package/dist/vscode-data.json +383 -25
  620. package/package.json +7 -2
  621. package/dist/cjs/stzh-datepicker_4.cjs.entry.js +0 -483
  622. package/dist/esm/stzh-datepicker_4.entry.js +0 -476
  623. package/dist/esm-es5/app-globals-6b6ff890.js +0 -1
  624. package/dist/esm-es5/index-84f71a43.js +0 -2
  625. package/dist/esm-es5/stzh-datepicker_4.entry.js +0 -1
  626. package/dist/stzh-components/p-001b7d10.entry.js +0 -1
  627. package/dist/stzh-components/p-08a564af.entry.js +0 -1
  628. package/dist/stzh-components/p-0b8de542.system.entry.js +0 -1
  629. package/dist/stzh-components/p-0bbbbe85.system.entry.js +0 -1
  630. package/dist/stzh-components/p-0d5522dc.system.entry.js +0 -1
  631. package/dist/stzh-components/p-0efe125f.system.entry.js +0 -1
  632. package/dist/stzh-components/p-13b3500e.entry.js +0 -1
  633. package/dist/stzh-components/p-13f44000.entry.js +0 -1
  634. package/dist/stzh-components/p-216577b4.entry.js +0 -1
  635. package/dist/stzh-components/p-2818488f.entry.js +0 -1
  636. package/dist/stzh-components/p-2cf1ae40.system.entry.js +0 -1
  637. package/dist/stzh-components/p-332e4fd3.entry.js +0 -1
  638. package/dist/stzh-components/p-373f79e8.entry.js +0 -1
  639. package/dist/stzh-components/p-3ac93a01.entry.js +0 -1
  640. package/dist/stzh-components/p-45bab70d.system.entry.js +0 -1
  641. package/dist/stzh-components/p-552f49c4.entry.js +0 -1
  642. package/dist/stzh-components/p-5975c355.system.entry.js +0 -1
  643. package/dist/stzh-components/p-59c323ce.entry.js +0 -1
  644. package/dist/stzh-components/p-6354fee3.entry.js +0 -1
  645. package/dist/stzh-components/p-638bedfa.entry.js +0 -1
  646. package/dist/stzh-components/p-63d8db7b.entry.js +0 -1
  647. package/dist/stzh-components/p-653c6bbc.entry.js +0 -1
  648. package/dist/stzh-components/p-67f906b1.entry.js +0 -1
  649. package/dist/stzh-components/p-69f4a27e.entry.js +0 -1
  650. package/dist/stzh-components/p-6a81e64b.entry.js +0 -1
  651. package/dist/stzh-components/p-75cdc8a6.system.entry.js +0 -1
  652. package/dist/stzh-components/p-7ad87d98.system.entry.js +0 -1
  653. package/dist/stzh-components/p-7d8c9866.entry.js +0 -1
  654. package/dist/stzh-components/p-7f9f9a8d.entry.js +0 -1
  655. package/dist/stzh-components/p-83b1e379.entry.js +0 -9
  656. package/dist/stzh-components/p-86bc421e.system.entry.js +0 -1
  657. package/dist/stzh-components/p-8aebb240.entry.js +0 -1
  658. package/dist/stzh-components/p-8cbc987f.system.entry.js +0 -1
  659. package/dist/stzh-components/p-938ef748.entry.js +0 -1
  660. package/dist/stzh-components/p-93e8e31f.js +0 -2
  661. package/dist/stzh-components/p-9bda100f.system.js +0 -1
  662. package/dist/stzh-components/p-a448f5a5.entry.js +0 -1
  663. package/dist/stzh-components/p-a646c09a.entry.js +0 -1
  664. package/dist/stzh-components/p-a6627504.entry.js +0 -1
  665. package/dist/stzh-components/p-a99d3e97.system.entry.js +0 -1
  666. package/dist/stzh-components/p-af2664fc.system.entry.js +0 -1
  667. package/dist/stzh-components/p-b9c3f3cc.entry.js +0 -1
  668. package/dist/stzh-components/p-bd178c32.system.entry.js +0 -1
  669. package/dist/stzh-components/p-be461e19.system.entry.js +0 -1
  670. package/dist/stzh-components/p-bf0fdd23.system.js +0 -2
  671. package/dist/stzh-components/p-c013a00b.system.entry.js +0 -1
  672. package/dist/stzh-components/p-c1337453.entry.js +0 -1
  673. package/dist/stzh-components/p-c456c04b.system.entry.js +0 -1
  674. package/dist/stzh-components/p-c499e04d.entry.js +0 -1
  675. package/dist/stzh-components/p-c692e405.entry.js +0 -1
  676. package/dist/stzh-components/p-c83e4fec.system.entry.js +0 -1
  677. package/dist/stzh-components/p-ca062c11.system.js +0 -1
  678. package/dist/stzh-components/p-ce28428b.entry.js +0 -1
  679. package/dist/stzh-components/p-cfaac121.js +0 -1
  680. package/dist/stzh-components/p-d11a70e2.system.entry.js +0 -1
  681. package/dist/stzh-components/p-d1dba399.system.entry.js +0 -1
  682. package/dist/stzh-components/p-d2b5e066.entry.js +0 -1
  683. package/dist/stzh-components/p-d54f04c8.system.entry.js +0 -1
  684. package/dist/stzh-components/p-d645d645.entry.js +0 -1
  685. package/dist/stzh-components/p-d7893dfd.entry.js +0 -1
  686. package/dist/stzh-components/p-d9643cc4.entry.js +0 -1
  687. package/dist/stzh-components/p-da7b363e.entry.js +0 -1
  688. package/dist/stzh-components/p-de017b87.system.entry.js +0 -1
  689. package/dist/stzh-components/p-e009bfdc.entry.js +0 -1
  690. package/dist/stzh-components/p-f167eaa4.system.entry.js +0 -1
  691. package/dist/stzh-components/p-f2ee016a.entry.js +0 -1
  692. package/dist/stzh-components/p-fdd1998f.entry.js +0 -1
  693. package/dist/stzh-components/p-ffa1e9dd.system.entry.js +0 -1
@@ -1,7 +1,7 @@
1
- var __awaiter=this&&this.__awaiter||function(t,n,r,o){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,l){function a(t){try{c(o.next(t))}catch(e){l(e)}}function s(t){try{c(o["throw"](t))}catch(e){l(e)}}function c(e){e.done?r(e.value):i(e.value).then(a,s)}c((o=o.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,i,l,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,i&&(l=a[0]&2?i["return"]:a[0]?i["throw"]||((l=i["return"])&&l.call(i),0):i.next)&&!(l=l.call(i,a[1])).done)return l;if(i=0,l)a=[a[0]&2,l.value];switch(a[0]){case 0:case 1:l=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(l=r.trys,l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){r.label=a[1];break}if(a[0]===6&&r.label<l[1]){r.label=l[1];l=a;break}if(l&&r.label<l[2]){r.label=l[2];r.ops.push(a);break}if(l[2])r.ops.pop();r.trys.pop();continue}a=n.call(t,r)}catch(e){a=[6,e];i=0}finally{o=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-84f71a43.js";import{c as cloneElement}from"./utils-68a28fce.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";function t(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(t)}return!1}function r(e,t,n,r,o,i,l,a){return i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-r:l>t&&a<n||i<e&&a>n?l-t+o:0}function compute(e,o){var i=window,l=o.scrollMode,a=o.block,s=o.inline,c=o.boundary,u=o.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,h=[],g=e;t(g)&&d(g);){if((g=g.parentElement)===f){h.push(g);break}null!=g&&g===document.body&&n(g)&&!n(document.documentElement)||null!=g&&n(g,u)&&h.push(g)}for(var p=i.visualViewport?i.visualViewport.width:innerWidth,m=i.visualViewport?i.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),S=b.height,w=b.width,y=b.top,D=b.right,_=b.bottom,x=b.left,C="start"===a||"nearest"===a?y:"end"===a?_:y+S/2,I="center"===s?x+w/2:"end"===s?D:x,A=[],T=0;T<h.length;T++){var O=h[T],P=O.getBoundingClientRect(),M=P.height,R=P.width,k=P.top,N=P.right,z=P.bottom,L=P.left;if("if-needed"===l&&y>=0&&x>=0&&_<=m&&D<=p&&y>=k&&_<=z&&x>=L&&D<=N)return A;var F=getComputedStyle(O),H=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),W=parseInt(F.borderRightWidth,10),B=parseInt(F.borderBottomWidth,10),X=0,Y=0,G="offsetWidth"in O?O.offsetWidth-O.clientWidth-H-W:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-j-B:0;if(f===O)X="start"===a?C:"end"===a?C-m:"nearest"===a?r(E,E+m,m,j,B,E+C,E+C+S,S):C-m/2,Y="start"===s?I:"center"===s?I-p/2:"end"===s?I-p:r(v,v+p,p,H,W,v+I,v+I+w,w),X=Math.max(0,X+E),Y=Math.max(0,Y+v);else{X="start"===a?C-k-j:"end"===a?C-z+B+$:"nearest"===a?r(k,z,M,j,B+$,C,C+S,S):C-(k+M/2)+$/2,Y="start"===s?I-L-H:"center"===s?I-(L+R/2)+G/2:"end"===s?I-N+W+G:r(L,N,R,H,W+G,I,I+w,w);var K=O.scrollLeft,U=O.scrollTop;C+=U-(X=Math.max(0,Math.min(U+X,O.scrollHeight-M+$))),I+=K-(Y=Math.max(0,Math.min(K+Y,O.scrollWidth-R+G)))}A.push({el:O,top:X,left:Y})}return A}function isOptionsObject(e){return e===Object(e)&&Object.keys(e).length!==0}function defaultBehavior(e,t){if(t===void 0){t="auto"}var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;if(r.scroll&&n){r.scroll({top:o,left:i,behavior:t})}else{r.scrollTop=o;r.scrollLeft=i}}))}function getOptions(e){if(e===false){return{block:"end",inline:"nearest"}}if(isOptionsObject(e)){return e}return{block:"start",inline:"nearest"}}function scrollIntoView(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(isOptionsObject(t)&&typeof t.behavior==="function"){return t.behavior(n?compute(e,t):[])}if(!n){return}var r=getOptions(t);return defaultBehavior(compute(e,r),r.behavior)}
1
+ var __awaiter=this&&this.__awaiter||function(t,n,r,o){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,l){function a(t){try{c(o.next(t))}catch(e){l(e)}}function s(t){try{c(o["throw"](t))}catch(e){l(e)}}function c(e){e.done?r(e.value):i(e.value).then(a,s)}c((o=o.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,i,l,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return c([e,t])}}function c(a){if(o)throw new TypeError("Generator is already executing.");while(r)try{if(o=1,i&&(l=a[0]&2?i["return"]:a[0]?i["throw"]||((l=i["return"])&&l.call(i),0):i.next)&&!(l=l.call(i,a[1])).done)return l;if(i=0,l)a=[a[0]&2,l.value];switch(a[0]){case 0:case 1:l=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;i=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(l=r.trys,l=l.length>0&&l[l.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!l||a[1]>l[0]&&a[1]<l[3])){r.label=a[1];break}if(a[0]===6&&r.label<l[1]){r.label=l[1];l=a;break}if(l&&r.label<l[2]){r.label=l[2];r.ops.push(a);break}if(l[2])r.ops.pop();r.trys.pop();continue}a=n.call(t,r)}catch(e){a=[6,e];i=0}finally{o=l=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-2915b467.js";import{c as cloneElement}from"./utils-68a28fce.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";function t(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function e(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function n(t,n){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var r=getComputedStyle(t,null);return e(r.overflowY,n)||e(r.overflowX,n)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(t)}return!1}function r(e,t,n,r,o,i,l,a){return i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-r:l>t&&a<n||i<e&&a>n?l-t+o:0}function compute(e,o){var i=window,l=o.scrollMode,a=o.block,s=o.inline,c=o.boundary,u=o.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!t(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,h=[],g=e;t(g)&&d(g);){if((g=g.parentElement)===f){h.push(g);break}null!=g&&g===document.body&&n(g)&&!n(document.documentElement)||null!=g&&n(g,u)&&h.push(g)}for(var p=i.visualViewport?i.visualViewport.width:innerWidth,m=i.visualViewport?i.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,E=window.scrollY||pageYOffset,b=e.getBoundingClientRect(),S=b.height,w=b.width,y=b.top,D=b.right,_=b.bottom,x=b.left,C="start"===a||"nearest"===a?y:"end"===a?_:y+S/2,I="center"===s?x+w/2:"end"===s?D:x,A=[],T=0;T<h.length;T++){var O=h[T],P=O.getBoundingClientRect(),M=P.height,R=P.width,k=P.top,N=P.right,z=P.bottom,L=P.left;if("if-needed"===l&&y>=0&&x>=0&&_<=m&&D<=p&&y>=k&&_<=z&&x>=L&&D<=N)return A;var F=getComputedStyle(O),H=parseInt(F.borderLeftWidth,10),j=parseInt(F.borderTopWidth,10),W=parseInt(F.borderRightWidth,10),B=parseInt(F.borderBottomWidth,10),X=0,Y=0,G="offsetWidth"in O?O.offsetWidth-O.clientWidth-H-W:0,$="offsetHeight"in O?O.offsetHeight-O.clientHeight-j-B:0;if(f===O)X="start"===a?C:"end"===a?C-m:"nearest"===a?r(E,E+m,m,j,B,E+C,E+C+S,S):C-m/2,Y="start"===s?I:"center"===s?I-p/2:"end"===s?I-p:r(v,v+p,p,H,W,v+I,v+I+w,w),X=Math.max(0,X+E),Y=Math.max(0,Y+v);else{X="start"===a?C-k-j:"end"===a?C-z+B+$:"nearest"===a?r(k,z,M,j,B+$,C,C+S,S):C-(k+M/2)+$/2,Y="start"===s?I-L-H:"center"===s?I-(L+R/2)+G/2:"end"===s?I-N+W+G:r(L,N,R,H,W+G,I,I+w,w);var K=O.scrollLeft,U=O.scrollTop;C+=U-(X=Math.max(0,Math.min(U+X,O.scrollHeight-M+$))),I+=K-(Y=Math.max(0,Math.min(K+Y,O.scrollWidth-R+G)))}A.push({el:O,top:X,left:Y})}return A}function isOptionsObject(e){return e===Object(e)&&Object.keys(e).length!==0}function defaultBehavior(e,t){if(t===void 0){t="auto"}var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;if(r.scroll&&n){r.scroll({top:o,left:i,behavior:t})}else{r.scrollTop=o;r.scrollLeft=i}}))}function getOptions(e){if(e===false){return{block:"end",inline:"nearest"}}if(isOptionsObject(e)){return e}return{block:"start",inline:"nearest"}}function scrollIntoView(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(isOptionsObject(t)&&typeof t.behavior==="function"){return t.behavior(n?compute(e,t):[])}if(!n){return}var r=getOptions(t);return defaultBehavior(compute(e,r),r.behavior)}
2
2
  /**!
3
3
  * Sortable 1.15.0
4
4
  * @author RubaXa <trash@rubaxa.org>
5
5
  * @author owenm <owen23355@gmail.com>
6
6
  * @license MIT
7
- */function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(n),true).forEach((function(t){_defineProperty(e,t,n[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}}return e}function _typeof(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return _extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function _objectWithoutProperties(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var version="1.15.0";function userAgent(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var Edge=userAgent(/Edge/i);var FireFox=userAgent(/firefox/i);var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i);var IOS=userAgent(/iP(ad|od|hone)/i);var ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i);var captureMode={capture:false,passive:false};function on(e,t,n){e.addEventListener(t,n,!IE11OrLess&&captureMode)}function off(e,t,n){e.removeEventListener(t,n,!IE11OrLess&&captureMode)}function matches(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&matches(e,t):matches(e,t))||r&&e===n){return e}if(e===n)break}while(e=getParentOrHost(e))}return null}var R_SPACE=/\s+/g;function toggleClass(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var r=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(R_SPACE," ")}}}function css(e,t,n){var r=e&&e.style;if(r){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in r)&&t.indexOf("webkit")===-1){t="-webkit-"+t}r[t]=n+(typeof n==="string"?"":"px")}}}function matrix(e,t){var n="";if(typeof e==="string"){n=e}else{do{var r=css(e,"transform");if(r&&r!=="none"){n=r+" "+n}}while(!t&&(e=e.parentNode))}var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function find(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n){for(;o<i;o++){n(r[o],o)}}return r}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;if(e){return e}else{return document.documentElement}}function getRect(e,t,n,r,o){if(!e.getBoundingClientRect&&e!==window)return;var i,l,a,s,c,u,d;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()){i=e.getBoundingClientRect();l=i.top;a=i.left;s=i.bottom;c=i.right;u=i.height;d=i.width}else{l=0;a=0;s=window.innerHeight;c=window.innerWidth;u=window.innerHeight;d=window.innerWidth}if((t||n)&&e!==window){o=o||e.parentNode;if(!IE11OrLess){do{if(o&&o.getBoundingClientRect&&(css(o,"transform")!=="none"||n&&css(o,"position")!=="static")){var f=o.getBoundingClientRect();l-=f.top+parseInt(css(o,"border-top-width"));a-=f.left+parseInt(css(o,"border-left-width"));s=l+i.height;c=a+i.width;break}}while(o=o.parentNode)}}if(r&&e!==window){var h=matrix(o||e),g=h&&h.a,p=h&&h.d;if(h){l/=p;a/=g;d/=g;u/=p;s=l+u;c=a+d}}return{top:l,left:a,bottom:s,right:c,width:d,height:u}}function isScrolledPast(e,t,n){var r=getParentAutoScrollElement(e,true),o=getRect(e)[t];while(r){var i=getRect(r)[n],l=void 0;if(n==="top"||n==="left"){l=o>=i}else{l=o<=i}if(!l)return r;if(r===getWindowScrollingElement())break;r=getParentAutoScrollElement(r,false)}return false}function getChild(e,t,n,r){var o=0,i=0,l=e.children;while(i<l.length){if(l[i].style.display!=="none"&&l[i]!==Sortable.ghost&&(r||l[i]!==Sortable.dragged)&&closest(l[i],n.draggable,e,false)){if(o===t){return l[i]}o++}i++}return null}function lastChild(e,t){var n=e.lastElementChild;while(n&&(n===Sortable.ghost||css(n,"display")==="none"||t&&!matches(n,t))){n=n.previousElementSibling}return n||null}function index(e,t){var n=0;if(!e||!e.parentNode){return-1}while(e=e.previousElementSibling){if(e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Sortable.clone&&(!t||matches(e,t))){n++}}return n}function getRelativeScrollOffset(e){var t=0,n=0,r=getWindowScrollingElement();if(e){do{var o=matrix(e),i=o.a,l=o.d;t+=e.scrollLeft*i;n+=e.scrollTop*l}while(e!==r&&(e=e.parentNode))}return[t,n]}function indexOfObject(e,t){for(var n in e){if(!e.hasOwnProperty(n))continue;for(var r in t){if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}}return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var n=e;var r=false;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=css(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return getWindowScrollingElement();if(r||t)return n;r=true}}}while(n=n.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t){for(var n in t){if(t.hasOwnProperty(n)){e[n]=t[n]}}}return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _throttleTimeout;function throttle(e,t){return function(){if(!_throttleTimeout){var n=arguments,r=this;if(n.length===1){e.call(r,n[0])}else{e.apply(r,n)}_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout);_throttleTimeout=void 0}function scrollBy(e,t,n){e.scrollLeft+=t;e.scrollTop+=n}function clone(e){var t=window.Polymer;var n=window.jQuery||window.Zepto;if(t&&t.dom){return t.dom(e).cloneNode(true)}else if(n){return n(e).clone(true)[0]}else{return e.cloneNode(true)}}function setRect(e,t){css(e,"position","absolute");css(e,"top",t.top);css(e,"left",t.left);css(e,"width",t.width);css(e,"height",t.height)}function unsetRect(e){css(e,"position","");css(e,"top","");css(e,"left","");css(e,"width","");css(e,"height","")}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var e=[],t;return{captureAnimationState:function t(){e=[];if(!this.options.animation)return;var n=[].slice.call(this.el.children);n.forEach((function(t){if(css(t,"display")==="none"||t===Sortable.ghost)return;e.push({target:t,rect:getRect(t)});var n=_objectSpread2({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=matrix(t,true);if(r){n.top-=r.f;n.left-=r.e}}t.fromRect=n}))},addAnimationState:function t(n){e.push(n)},removeAnimationState:function t(n){e.splice(indexOfObject(e,{target:n}),1)},animateAll:function n(r){var o=this;if(!this.options.animation){clearTimeout(t);if(typeof r==="function")r();return}var i=false,l=0;e.forEach((function(e){var t=0,n=e.target,r=n.fromRect,a=getRect(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=matrix(n,true);if(d){a.top-=d.f;a.left-=d.e}n.toRect=a;if(n.thisAnimationDuration){if(isRectEqual(s,a)&&!isRectEqual(r,a)&&(u.top-a.top)/(u.left-a.left)===(r.top-a.top)/(r.left-a.left)){t=calculateRealTime(u,s,c,o.options)}}if(!isRectEqual(a,r)){n.prevFromRect=r;n.prevToRect=a;if(!t){t=o.options.animation}o.animate(n,u,a,t)}if(t){i=true;l=Math.max(l,t);clearTimeout(n.animationResetTimer);n.animationResetTimer=setTimeout((function(){n.animationTime=0;n.prevFromRect=null;n.fromRect=null;n.prevToRect=null;n.thisAnimationDuration=null}),t);n.thisAnimationDuration=t}}));clearTimeout(t);if(!i){if(typeof r==="function")r()}else{t=setTimeout((function(){if(typeof r==="function")r()}),l)}e=[]},animate:function e(t,n,r,o){if(o){css(t,"transition","");css(t,"transform","");var i=matrix(this.el),l=i&&i.a,a=i&&i.d,s=(n.left-r.left)/(l||1),c=(n.top-r.top)/(a||1);t.animatingX=!!s;t.animatingY=!!c;css(t,"transform","translate3d("+s+"px,"+c+"px,0)");this.forRepaintDummy=repaint(t);css(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:""));css(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){css(t,"transition","");css(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),o)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var plugins=[];var defaults={initializeByDefault:true};var PluginManager={mount:function e(t){for(var n in defaults){if(defaults.hasOwnProperty(n)&&!(n in t)){t[n]=defaults[n]}}plugins.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));plugins.push(t)},pluginEvent:function e(t,n,r){var o=this;this.eventCanceled=false;r.cancel=function(){o.eventCanceled=true};var i=t+"Global";plugins.forEach((function(e){if(!n[e.pluginName])return;if(n[e.pluginName][i]){n[e.pluginName][i](_objectSpread2({sortable:n},r))}if(n.options[e.pluginName]&&n[e.pluginName][t]){n[e.pluginName][t](_objectSpread2({sortable:n},r))}}))},initializePlugins:function e(t,n,r,o){plugins.forEach((function(e){var o=e.pluginName;if(!t.options[o]&&!e.initializeByDefault)return;var i=new e(t,n,t.options);i.sortable=t;i.options=t.options;t[o]=i;_extends(r,i.defaults)}));for(var i in t.options){if(!t.options.hasOwnProperty(i))continue;var l=this.modifyOption(t,i,t.options[i]);if(typeof l!=="undefined"){t.options[i]=l}}},getEventProperties:function e(t,n){var r={};plugins.forEach((function(e){if(typeof e.eventProperties!=="function")return;_extends(r,e.eventProperties.call(n[e.pluginName],t))}));return r},modifyOption:function e(t,n,r){var o;plugins.forEach((function(e){if(!t[e.pluginName])return;if(e.optionListeners&&typeof e.optionListeners[n]==="function"){o=e.optionListeners[n].call(t[e.pluginName],r)}}));return o}};function dispatchEvent(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,l=e.toEl,a=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;t=t||n&&n[expando];if(!t)return;var p,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);if(window.CustomEvent&&!IE11OrLess&&!Edge){p=new CustomEvent(r,{bubbles:true,cancelable:true})}else{p=document.createEvent("Event");p.initEvent(r,true,true)}p.to=l||n;p.from=a||n;p.item=o||n;p.clone=i;p.oldIndex=s;p.newIndex=c;p.oldDraggableIndex=u;p.newDraggableIndex=d;p.originalEvent=f;p.pullMode=h?h.lastPutMode:undefined;var E=_objectSpread2(_objectSpread2({},g),PluginManager.getEventProperties(r,t));for(var b in E){p[b]=E[b]}if(n){n.dispatchEvent(p)}if(m[v]){m[v].call(t,p)}}var _excluded=["evt"];var pluginEvent=function e(t,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},o=r.evt,i=_objectWithoutProperties(r,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,n,_objectSpread2({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:o,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function e(){cloneHidden=true},cloneNowShown:function e(){cloneHidden=false},dispatchSortableEvent:function e(t){_dispatchEvent({sortable:n,name:t,originalEvent:o})}},i))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=false,ignoreNextClick=false,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=false,isCircumstantialInvert=false,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=false,savedInputChecked=[];var documentExists=typeof document!=="undefined",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!documentExists)return;if(IE11OrLess){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),_detectDirection=function e(t,n){var r=css(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=getChild(t,0,n),l=getChild(t,1,n),a=i&&css(i),s=l&&css(l),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+getRect(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+getRect(l).width;if(r.display==="flex"){return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal"}if(r.display==="grid"){return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(i&&a["float"]&&a["float"]!=="none"){var d=a["float"]==="left"?"left":"right";return l&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=o&&r[CSSFloatProperty]==="none"||l&&r[CSSFloatProperty]==="none"&&c+u>o)?"vertical":"horizontal"},_dragElInRowColumn=function e(t,n,r){var o=r?t.left:t.top,i=r?t.right:t.bottom,l=r?t.width:t.height,a=r?n.left:n.top,s=r?n.right:n.bottom,c=r?n.width:n.height;return o===a||i===s||o+l/2===a+c/2},_detectNearestEmptySortable=function e(t,n){var r;sortables.some((function(e){var o=e[expando].options.emptyInsertThreshold;if(!o||lastChild(e))return;var i=getRect(e),l=t>=i.left-o&&t<=i.right+o,a=n>=i.top-o&&n<=i.bottom+o;if(l&&a){return r=e}}));return r},_prepareGroup=function e(t){function n(e,t){return function(r,o,i,l){var a=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(e==null&&(t||a)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(r,o,i,l),t)(r,o,i,l)}else{var s=(t?r:o).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var r={};var o=t.group;if(!o||_typeof(o)!="object"){o={name:o}}r.name=o.name;r.checkPull=n(o.pull,true);r.checkPut=n(o.put);r.revertClone=o.revertClone;t.group=r},_hideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","none")}},_unhideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","")}};if(documentExists&&!ChromeForAndroid){document.addEventListener("click",(function(e){if(ignoreNextClick){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();ignoreNextClick=false;return false}}),true)}var nearestEmptyInsertDetectEvent=function e(t){if(dragEl){t=t.touches?t.touches[0]:t;var n=_detectNearestEmptySortable(t.clientX,t.clientY);if(n){var r={};for(var o in t){if(t.hasOwnProperty(o)){r[o]=t[o]}}r.target=r.rootEl=n;r.preventDefault=void 0;r.stopPropagation=void 0;n[expando]._onDragOver(r)}}};var _checkOutsideTargetEl=function e(t){if(dragEl){dragEl.parentNode[expando]._isOutsideThisEl(t.target)}};function Sortable(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=_extends({},t);e[expando]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return _detectDirection(e,this.options)},ghostClone:function(e){return e.cloneNode(true)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==false&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,e,n);for(var r in n){!(r in t)&&(t[r]=n[r])}_prepareGroup(t);for(var o in this){if(o.charAt(0)==="_"&&typeof this[o]==="function"){this[o]=this[o].bind(this)}}this.nativeDraggable=t.forceFallback?false:supportDraggable;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){on(e,"pointerdown",this._onTapStart)}else{on(e,"mousedown",this._onTapStart);on(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){on(e,"dragover",this);on(e,"dragenter",this)}sortables.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){lastTarget=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,dragEl):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,r=this.el,o=this.options,i=o.preventOnFilter,l=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=o.filter;_saveInputCheckedState(r);if(dragEl){return}if(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled){return}if(c.isContentEditable){return}if(!this.nativeDraggable&&Safari&&s&&s.tagName.toUpperCase()==="SELECT"){return}s=closest(s,o.draggable,r,false);if(s&&s.animated){return}if(lastDownEl===s){return}oldIndex=index(s);oldDraggableIndex=index(s,o.draggable);if(typeof u==="function"){if(u.call(this,t,s,this)){_dispatchEvent({sortable:n,rootEl:c,name:"filter",targetEl:s,toEl:r,fromEl:r});pluginEvent("filter",n,{evt:t});i&&t.cancelable&&t.preventDefault();return}}else if(u){u=u.split(",").some((function(e){e=closest(c,e.trim(),r,false);if(e){_dispatchEvent({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:r,toEl:r});pluginEvent("filter",n,{evt:t});return true}}));if(u){i&&t.cancelable&&t.preventDefault();return}}if(o.handle&&!closest(c,o.handle,r,false)){return}this._prepareDragStart(t,a,s)},_prepareDragStart:function e(t,n,r){var o=this,i=o.el,l=o.options,a=i.ownerDocument,s;if(r&&!dragEl&&r.parentNode===i){var c=getRect(r);rootEl=i;dragEl=r;parentEl=dragEl.parentNode;nextEl=dragEl.nextSibling;lastDownEl=r;activeGroup=l.group;Sortable.dragged=dragEl;tapEvt={target:dragEl,clientX:(n||t).clientX,clientY:(n||t).clientY};tapDistanceLeft=tapEvt.clientX-c.left;tapDistanceTop=tapEvt.clientY-c.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;dragEl.style["will-change"]="all";s=function e(){pluginEvent("delayEnded",o,{evt:t});if(Sortable.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents();if(!FireFox&&o.nativeDraggable){dragEl.draggable=true}o._triggerDragStart(t,n);_dispatchEvent({sortable:o,name:"choose",originalEvent:t});toggleClass(dragEl,l.chosenClass,true)};l.ignore.split(",").forEach((function(e){find(dragEl,e.trim(),_disableDraggable)}));on(a,"dragover",nearestEmptyInsertDetectEvent);on(a,"mousemove",nearestEmptyInsertDetectEvent);on(a,"touchmove",nearestEmptyInsertDetectEvent);on(a,"mouseup",o._onDrop);on(a,"touchend",o._onDrop);on(a,"touchcancel",o._onDrop);if(FireFox&&this.nativeDraggable){this.options.touchStartThreshold=4;dragEl.draggable=true}pluginEvent("delayStart",this,{evt:t});if(l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(a,"mouseup",o._disableDelayedDrag);on(a,"touchend",o._disableDelayedDrag);on(a,"touchcancel",o._disableDelayedDrag);on(a,"mousemove",o._delayedDragTouchMoveHandler);on(a,"touchmove",o._delayedDragTouchMoveHandler);l.supportPointer&&on(a,"pointermove",o._delayedDragTouchMoveHandler);o._dragStartTimer=setTimeout(s,l.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){dragEl&&_disableDraggable(dragEl);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag);off(t,"touchend",this._disableDelayedDrag);off(t,"touchcancel",this._disableDelayedDrag);off(t,"mousemove",this._delayedDragTouchMoveHandler);off(t,"touchmove",this._delayedDragTouchMoveHandler);off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){on(document,"pointermove",this._onTouchMove)}else if(n){on(document,"touchmove",this._onTouchMove)}else{on(document,"mousemove",this._onTouchMove)}}else{on(dragEl,"dragend",this);on(rootEl,"dragstart",this._onDragStart)}try{if(document.selection){_nextTick((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(r){}},_dragStarted:function e(t,n){awaitingDragStarted=false;if(rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:n});if(this.nativeDraggable){on(document,"dragover",_checkOutsideTargetEl)}var r=this.options;!t&&toggleClass(dragEl,r.dragClass,false);toggleClass(dragEl,r.ghostClass,true);Sortable.active=this;t&&this._appendGhost();_dispatchEvent({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(touchEvt){this._lastX=touchEvt.clientX;this._lastY=touchEvt.clientY;_hideGhostForTarget();var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY);if(t===n)break;n=t}dragEl.parentNode[expando]._isOutsideThisEl(t);if(n){do{if(n[expando]){var r=void 0;r=n[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:n});if(r&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}_unhideGhostForTarget()}},_onTouchMove:function e(t){if(tapEvt){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=t.touches?t.touches[0]:t,l=ghostEl&&matrix(ghostEl,true),a=ghostEl&&l&&l.a,s=ghostEl&&l&&l.d,c=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),u=(i.clientX-tapEvt.clientX+o.x)/(a||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(a||1),d=(i.clientY-tapEvt.clientY+o.y)/(s||1)+(c?c[1]-ghostRelativeParentInitialScroll[1]:0)/(s||1);if(!Sortable.active&&!awaitingDragStarted){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r){return}this._onDragStart(t,true)}if(ghostEl){if(l){l.e+=u-(lastDx||0);l.f+=d-(lastDy||0)}else{l={a:1,b:0,c:0,d:1,e:u,f:d}}var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");css(ghostEl,"webkitTransform",f);css(ghostEl,"mozTransform",f);css(ghostEl,"msTransform",f);css(ghostEl,"transform",f);lastDx=u;lastDy=d;touchEvt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,n=getRect(dragEl,true,PositionGhostAbsolutely,true,t),r=this.options;if(PositionGhostAbsolutely){ghostRelativeParent=t;while(css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document){ghostRelativeParent=ghostRelativeParent.parentNode}if(ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement){if(ghostRelativeParent===document)ghostRelativeParent=getWindowScrollingElement();n.top+=ghostRelativeParent.scrollTop;n.left+=ghostRelativeParent.scrollLeft}else{ghostRelativeParent=getWindowScrollingElement()}ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=r.ghostClone(dragEl);toggleClass(ghostEl,r.ghostClass,false);toggleClass(ghostEl,r.fallbackClass,true);toggleClass(ghostEl,r.dragClass,true);css(ghostEl,"transition","");css(ghostEl,"transform","");css(ghostEl,"box-sizing","border-box");css(ghostEl,"margin",0);css(ghostEl,"top",n.top);css(ghostEl,"left",n.left);css(ghostEl,"width",n.width);css(ghostEl,"height",n.height);css(ghostEl,"opacity","0.8");css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed");css(ghostEl,"zIndex","100000");css(ghostEl,"pointerEvents","none");Sortable.ghost=ghostEl;t.appendChild(ghostEl);css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function e(t,n){var r=this;var o=t.dataTransfer;var i=r.options;pluginEvent("dragStart",this,{evt:t});if(Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this);if(!Sortable.eventCanceled){cloneEl=clone(dragEl);cloneEl.removeAttribute("id");cloneEl.draggable=false;cloneEl.style["will-change"]="";this._hideClone();toggleClass(cloneEl,this.options.chosenClass,false);Sortable.clone=cloneEl}r.cloneId=_nextTick((function(){pluginEvent("clone",r);if(Sortable.eventCanceled)return;if(!r.options.removeCloneOnHide){rootEl.insertBefore(cloneEl,dragEl)}r._hideClone();_dispatchEvent({sortable:r,name:"clone"})}));!n&&toggleClass(dragEl,i.dragClass,true);if(n){ignoreNextClick=true;r._loopId=setInterval(r._emulateDragOver,50)}else{off(document,"mouseup",r._onDrop);off(document,"touchend",r._onDrop);off(document,"touchcancel",r._onDrop);if(o){o.effectAllowed="move";i.setData&&i.setData.call(r,o,dragEl)}on(document,"drop",r);css(dragEl,"transform","translateZ(0)")}awaitingDragStarted=true;r._dragStartId=_nextTick(r._dragStarted.bind(r,n,t));on(document,"selectstart",r);moved=true;if(Safari){css(document.body,"user-select","none")}},_onDragOver:function e(t){var n=this.el,r=t.target,o,i,l,a=this.options,s=a.group,c=Sortable.active,u=activeGroup===s,d=a.sort,f=putSortable||c,h,g=this,p=false;if(_silent)return;function m(e,a){pluginEvent(e,g,_objectSpread2({evt:t,isOwner:u,axis:h?"vertical":"horizontal",revert:l,dragRect:o,targetRect:i,canSort:d,fromSortable:f,target:r,completed:E,onMove:function e(r,i){return _onMove(rootEl,n,dragEl,o,r,getRect(r),t,i)},changed:b},a))}function v(){m("dragOverAnimationCapture");g.captureAnimationState();if(g!==f){f.captureAnimationState()}}function E(e){m("dragOverCompleted",{insertion:e});if(e){if(u){c._hideClone()}else{c._showClone(g)}if(g!==f){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,false);toggleClass(dragEl,a.ghostClass,true)}if(putSortable!==g&&g!==Sortable.active){putSortable=g}else if(g===Sortable.active&&putSortable){putSortable=null}if(f===g){g._ignoreWhileAnimating=r}g.animateAll((function(){m("dragOverAnimationComplete");g._ignoreWhileAnimating=null}));if(g!==f){f.animateAll();f._ignoreWhileAnimating=null}}if(r===dragEl&&!dragEl.animated||r===n&&!r.animated){lastTarget=null}if(!a.dragoverBubble&&!t.rootEl&&r!==document){dragEl.parentNode[expando]._isOutsideThisEl(t.target);!e&&nearestEmptyInsertDetectEvent(t)}!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return p=true}function b(){newIndex=index(dragEl);newDraggableIndex=index(dragEl,a.draggable);_dispatchEvent({sortable:g,name:"change",toEl:n,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}r=closest(r,a.draggable,n,true);m("dragOver");if(Sortable.eventCanceled)return p;if(dragEl.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r){return E(false)}ignoreNextClick=false;if(c&&!a.disabled&&(u?d||(l=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&s.checkPut(this,c,dragEl,t))){h=this._getDirection(t,r)==="vertical";o=getRect(dragEl);m("dragOverValid");if(Sortable.eventCanceled)return p;if(l){parentEl=rootEl;v();this._hideClone();m("revert");if(!Sortable.eventCanceled){if(nextEl){rootEl.insertBefore(dragEl,nextEl)}else{rootEl.appendChild(dragEl)}}return E(true)}var S=lastChild(n,a.draggable);if(!S||_ghostIsLast(t,h,this)&&!S.animated){if(S===dragEl){return E(false)}if(S&&n===t.target){r=S}if(r){i=getRect(r)}if(_onMove(rootEl,n,dragEl,o,r,i,t,!!r)!==false){v();if(S&&S.nextSibling){n.insertBefore(dragEl,S.nextSibling)}else{n.appendChild(dragEl)}parentEl=n;b();return E(true)}}else if(S&&_ghostIsFirst(t,h,this)){var w=getChild(n,0,a,true);if(w===dragEl){return E(false)}r=w;i=getRect(r);if(_onMove(rootEl,n,dragEl,o,r,i,t,false)!==false){v();n.insertBefore(dragEl,w);parentEl=n;b();return E(true)}}else if(r.parentNode===n){i=getRect(r);var y=0,D,_=dragEl.parentNode!==n,x=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||o,r.animated&&r.toRect||i,h),C=h?"top":"left",I=isScrolledPast(r,"top","top")||isScrolledPast(dragEl,"top","top"),A=I?I.scrollTop:void 0;if(lastTarget!==r){D=i[C];pastFirstInvertThresh=false;isCircumstantialInvert=!x&&a.invertSwap||_}y=_getSwapDirection(t,r,i,h,x?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,isCircumstantialInvert,lastTarget===r);var T;if(y!==0){var O=index(dragEl);do{O-=y;T=parentEl.children[O]}while(T&&(css(T,"display")==="none"||T===ghostEl))}if(y===0||T===r){return E(false)}lastTarget=r;lastDirection=y;var P=r.nextElementSibling,M=false;M=y===1;var R=_onMove(rootEl,n,dragEl,o,r,i,t,M);if(R!==false){if(R===1||R===-1){M=R===1}_silent=true;setTimeout(_unsilent,30);v();if(M&&!P){n.appendChild(dragEl)}else{r.parentNode.insertBefore(dragEl,M?P:r)}if(I){scrollBy(I,0,A-I.scrollTop)}parentEl=dragEl.parentNode;if(D!==undefined&&!isCircumstantialInvert){targetMoveDistance=Math.abs(D-getRect(r)[C])}b();return E(true)}}if(n.contains(dragEl)){return E(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function e(){off(document,"mousemove",this._onTouchMove);off(document,"touchmove",this._onTouchMove);off(document,"pointermove",this._onTouchMove);off(document,"dragover",nearestEmptyInsertDetectEvent);off(document,"mousemove",nearestEmptyInsertDetectEvent);off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop);off(t,"touchend",this._onDrop);off(t,"pointerup",this._onDrop);off(t,"touchcancel",this._onDrop);off(document,"selectstart",this)},_onDrop:function e(t){var n=this.el,r=this.options;newIndex=index(dragEl);newDraggableIndex=index(dragEl,r.draggable);pluginEvent("drop",this,{evt:t});parentEl=dragEl&&dragEl.parentNode;newIndex=index(dragEl);newDraggableIndex=index(dragEl,r.draggable);if(Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=false;isCircumstantialInvert=false;pastFirstInvertThresh=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);_cancelNextTick(this.cloneId);_cancelNextTick(this._dragStartId);if(this.nativeDraggable){off(document,"drop",this);off(n,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(Safari){css(document.body,"user-select","")}css(dragEl,"transform","");if(t){if(moved){t.cancelable&&t.preventDefault();!r.dropBubble&&t.stopPropagation()}ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl);if(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone"){cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl)}if(dragEl){if(this.nativeDraggable){off(dragEl,"dragend",this)}_disableDraggable(dragEl);dragEl.style["will-change"]="";if(moved&&!awaitingDragStarted){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,false)}toggleClass(dragEl,this.options.chosenClass,false);_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t});if(rootEl!==parentEl){if(newIndex>=0){_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t});_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}putSortable&&putSortable.save()}else{if(newIndex!==oldIndex){if(newIndex>=0){_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}}}if(Sortable.active){if(newIndex==null||newIndex===-1){newIndex=oldIndex;newDraggableIndex=oldDraggableIndex}_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){pluginEvent("nulling",this);rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null;savedInputChecked.forEach((function(e){e.checked=true}));savedInputChecked.length=lastDx=lastDy=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(dragEl){this._onDragOver(t);_globalDragOver(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,r=this.el.children,o=0,i=r.length,l=this.options;for(;o<i;o++){n=r[o];if(closest(n,l.draggable,this.el,false)){t.push(n.getAttribute(l.dataIdAttr)||_generateId(n))}}return t},sort:function e(t,n){var r={},o=this.el;this.toArray().forEach((function(e,t){var n=o.children[t];if(closest(n,this.options.draggable,o,false)){r[e]=n}}),this);n&&this.captureAnimationState();t.forEach((function(e){if(r[e]){o.removeChild(r[e]);o.appendChild(r[e])}}));n&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,n){return closest(t,n||this.options.draggable,this.el,false)},option:function e(t,n){var r=this.options;if(n===void 0){return r[t]}else{var o=PluginManager.modifyOption(this,t,n);if(typeof o!=="undefined"){r[t]=o}else{r[t]=n}if(t==="group"){_prepareGroup(r)}}},destroy:function e(){pluginEvent("destroy",this);var t=this.el;t[expando]=null;off(t,"mousedown",this._onTapStart);off(t,"touchstart",this._onTapStart);off(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){off(t,"dragover",this);off(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();sortables.splice(sortables.indexOf(this.el),1);this.el=t=null},_hideClone:function e(){if(!cloneHidden){pluginEvent("hideClone",this);if(Sortable.eventCanceled)return;css(cloneEl,"display","none");if(this.options.removeCloneOnHide&&cloneEl.parentNode){cloneEl.parentNode.removeChild(cloneEl)}cloneHidden=true}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){pluginEvent("showClone",this);if(Sortable.eventCanceled)return;if(dragEl.parentNode==rootEl&&!this.options.group.revertClone){rootEl.insertBefore(cloneEl,dragEl)}else if(nextEl){rootEl.insertBefore(cloneEl,nextEl)}else{rootEl.appendChild(cloneEl)}if(this.options.group.revertClone){this.animate(dragEl,cloneEl)}css(cloneEl,"display","");cloneHidden=false}}};function _globalDragOver(e){if(e.dataTransfer){e.dataTransfer.dropEffect="move"}e.cancelable&&e.preventDefault()}function _onMove(e,t,n,r,o,i,l,a){var s,c=e[expando],u=c.options.onMove,d;if(window.CustomEvent&&!IE11OrLess&&!Edge){s=new CustomEvent("move",{bubbles:true,cancelable:true})}else{s=document.createEvent("Event");s.initEvent("move",true,true)}s.to=t;s.from=e;s.dragged=n;s.draggedRect=r;s.related=o||t;s.relatedRect=i||getRect(t);s.willInsertAfter=a;s.originalEvent=l;e.dispatchEvent(s);if(u){d=u.call(c,s,l)}return d}function _disableDraggable(e){e.draggable=false}function _unsilent(){_silent=false}function _ghostIsFirst(e,t,n){var r=getRect(getChild(n.el,0,n.options,true));var o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function _ghostIsLast(e,t,n){var r=getRect(lastChild(n.el,n.options.draggable));var o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function _getSwapDirection(e,t,n,r,o,i,l,a){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=false;if(!l){if(a&&targetMoveDistance<c*o){if(!pastFirstInvertThresh&&(lastDirection===1?s>u+c*i/2:s<d-c*i/2)){pastFirstInvertThresh=true}if(!pastFirstInvertThresh){if(lastDirection===1?s<u+targetMoveDistance:s>d-targetMoveDistance){return-lastDirection}}else{f=true}}else{if(s>u+c*(1-o)/2&&s<d-c*(1-o)/2){return _getInsertDirection(t)}}}f=f||l;if(f){if(s<u+c*i/2||s>d-c*i/2){return s>u+c/2?1:-1}}return 0}function _getInsertDirection(e){if(index(dragEl)<index(e)){return 1}else{return-1}}function _generateId(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--){r+=t.charCodeAt(n)}return r.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;var t=e.getElementsByTagName("input");var n=t.length;while(n--){var r=t[n];r.checked&&savedInputChecked.push(r)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}if(documentExists){on(document,"touchmove",(function(e){if((Sortable.active||awaitingDragStarted)&&e.cancelable){e.preventDefault()}}))}Sortable.utils={on:on,off:off,css:css,find:find,is:function e(t,n){return!!closest(t,n,t,false)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild};Sortable.get=function(e){return e[expando]};Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t[0].constructor===Array)t=t[0];t.forEach((function(e){if(!e.prototype||!e.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e))}if(e.utils)Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),e.utils);PluginManager.mount(e)}))};Sortable.create=function(e,t){return new Sortable(e,t)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=false,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function e(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}}e.prototype={dragStarted:function e(t){var n=t.originalEvent;if(this.sortable.nativeDraggable){on(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){on(document,"pointermove",this._handleFallbackAutoScroll)}else if(n.touches){on(document,"touchmove",this._handleFallbackAutoScroll)}else{on(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function e(t){var n=t.originalEvent;if(!this.options.dragOverBubble&&!n.rootEl){this._handleAutoScroll(n)}},drop:function e(){if(this.sortable.nativeDraggable){off(document,"dragover",this._handleAutoScroll)}else{off(document,"pointermove",this._handleFallbackAutoScroll);off(document,"touchmove",this._handleFallbackAutoScroll);off(document,"mousemove",this._handleFallbackAutoScroll)}clearPointerElemChangedInterval();clearAutoScrolls();cancelThrottle()},nulling:function e(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null;autoScrolls.length=0},_handleFallbackAutoScroll:function e(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function e(t,n){var r=this;var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(o,i);touchEvt$1=t;if(n||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(t,this.options,l,n);var a=getParentAutoScrollElement(l,true);if(scrolling&&(!pointerElemChangedInterval||o!==lastAutoScrollX||i!==lastAutoScrollY)){pointerElemChangedInterval&&clearPointerElemChangedInterval();pointerElemChangedInterval=setInterval((function(){var e=getParentAutoScrollElement(document.elementFromPoint(o,i),true);if(e!==a){a=e;clearAutoScrolls()}autoScroll(t,r.options,e,n)}),10);lastAutoScrollX=o;lastAutoScrollY=i}}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(l,true)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(t,this.options,getParentAutoScrollElement(l,false),false)}}};return _extends(e,{pluginName:"scroll",initializeByDefault:true})}function clearAutoScrolls(){autoScrolls.forEach((function(e){clearInterval(e.pid)}));autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(e,t,n,r){if(!t.scroll)return;var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,a=t.scrollSpeed,s=getWindowScrollingElement();var c=false,u;if(scrollRootEl!==n){scrollRootEl=n;clearAutoScrolls();scrollEl=t.scroll;u=t.scrollFn;if(scrollEl===true){scrollEl=getParentAutoScrollElement(n,true)}}var d=0;var f=scrollEl;do{var h=f,g=getRect(h),p=g.top,m=g.bottom,v=g.left,E=g.right,b=g.width,S=g.height,w=void 0,y=void 0,D=h.scrollWidth,_=h.scrollHeight,x=css(h),C=h.scrollLeft,I=h.scrollTop;if(h===s){w=b<D&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible");y=S<_&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")}else{w=b<D&&(x.overflowX==="auto"||x.overflowX==="scroll");y=S<_&&(x.overflowY==="auto"||x.overflowY==="scroll")}var A=w&&(Math.abs(E-o)<=l&&C+b<D)-(Math.abs(v-o)<=l&&!!C);var T=y&&(Math.abs(m-i)<=l&&I+S<_)-(Math.abs(p-i)<=l&&!!I);if(!autoScrolls[d]){for(var O=0;O<=d;O++){if(!autoScrolls[O]){autoScrolls[O]={}}}}if(autoScrolls[d].vx!=A||autoScrolls[d].vy!=T||autoScrolls[d].el!==h){autoScrolls[d].el=h;autoScrolls[d].vx=A;autoScrolls[d].vy=T;clearInterval(autoScrolls[d].pid);if(A!=0||T!=0){c=true;autoScrolls[d].pid=setInterval(function(){if(r&&this.layer===0){Sortable.active._onTouchMove(touchEvt$1)}var t=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*a:0;var n=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*a:0;if(typeof u==="function"){if(u.call(Sortable.dragged.parentNode[expando],n,t,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"){return}}scrollBy(autoScrolls[this.layer].el,n,t)}.bind({layer:d}),24)}}d++}while(t.bubbleScroll&&f!==s&&(f=getParentAutoScrollElement(f,false)));scrolling=c}),30);var drop=function e(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,i=t.activeSortable,l=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(!n)return;var c=r||i;a();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n;var d=document.elementFromPoint(u.clientX,u.clientY);s();if(c&&!c.el.contains(d)){l("spill");this.onSpill({dragEl:o,putSortable:r})}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function e(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function e(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState();if(r){r.captureAnimationState()}var o=getChild(this.sortable.el,this.startIndex,this.options);if(o){this.sortable.el.insertBefore(n,o)}else{this.sortable.el.appendChild(n)}this.sortable.animateAll();if(r){r.animateAll()}},drop:drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function e(t){var n=t.dragEl,r=t.putSortable;var o=r||this.sortable;o.captureAnimationState();n.parentNode&&n.parentNode.removeChild(n);o.animateAll()},drop:drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}e.prototype={dragStart:function e(t){var n=t.dragEl;lastSwapEl=n},dragOverValid:function e(t){var n=t.completed,r=t.target,o=t.onMove,i=t.activeSortable,l=t.changed,a=t.cancel;if(!i.options.swap)return;var s=this.sortable.el,c=this.options;if(r&&r!==s){var u=lastSwapEl;if(o(r)!==false){toggleClass(r,c.swapClass,true);lastSwapEl=r}else{lastSwapEl=null}if(u&&u!==lastSwapEl){toggleClass(u,c.swapClass,false)}}l();n(true);a()},drop:function e(t){var n=t.activeSortable,r=t.putSortable,o=t.dragEl;var i=r||this.sortable;var l=this.options;lastSwapEl&&toggleClass(lastSwapEl,l.swapClass,false);if(lastSwapEl&&(l.swap||r&&r.options.swap)){if(o!==lastSwapEl){i.captureAnimationState();if(i!==n)n.captureAnimationState();swapNodes(o,lastSwapEl);i.animateAll();if(i!==n)n.animateAll()}}},nulling:function e(){lastSwapEl=null}};return _extends(e,{pluginName:"swap",eventProperties:function e(){return{swapItem:lastSwapEl}}})}function swapNodes(e,t){var n=e.parentNode,r=t.parentNode,o,i;if(!n||!r||n.isEqualNode(t)||r.isEqualNode(e))return;o=index(e);i=index(t);if(n.isEqualNode(r)&&o<i){i++}n.insertBefore(t,n.children[o]);r.insertBefore(e,r.children[i])}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=false,folding=false,dragStarted=false,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function e(e){for(var t in this){if(t.charAt(0)==="_"&&typeof this[t]==="function"){this[t]=this[t].bind(this)}}if(!e.options.avoidImplicitDeselect){if(e.options.supportPointer){on(document,"pointerup",this._deselectMultiDrag)}else{on(document,"mouseup",this._deselectMultiDrag);on(document,"touchend",this._deselectMultiDrag)}}on(document,"keydown",this._checkKeyDown);on(document,"keyup",this._checkKeyUp);this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:false,setData:function t(n,r){var o="";if(multiDragElements.length&&multiDragSortable===e){multiDragElements.forEach((function(e,t){o+=(!t?"":", ")+e.textContent}))}else{o=r.textContent}n.setData("Text",o)}}}e.prototype={multiDragKeyDown:false,isMultiDrag:false,delayStartGlobal:function e(t){var n=t.dragEl;dragEl$1=n},delayEnded:function e(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function e(t){var n=t.sortable,r=t.cancel;if(!this.isMultiDrag)return;for(var o=0;o<multiDragElements.length;o++){multiDragClones.push(clone(multiDragElements[o]));multiDragClones[o].sortableIndex=multiDragElements[o].sortableIndex;multiDragClones[o].draggable=false;multiDragClones[o].style["will-change"]="";toggleClass(multiDragClones[o],this.options.selectedClass,false);multiDragElements[o]===dragEl$1&&toggleClass(multiDragClones[o],this.options.chosenClass,false)}n._hideClone();r()},clone:function e(t){var n=t.sortable,r=t.rootEl,o=t.dispatchSortableEvent,i=t.cancel;if(!this.isMultiDrag)return;if(!this.options.removeCloneOnHide){if(multiDragElements.length&&multiDragSortable===n){insertMultiDragClones(true,r);o("clone");i()}}},showClone:function e(t){var n=t.cloneNowShown,r=t.rootEl,o=t.cancel;if(!this.isMultiDrag)return;insertMultiDragClones(false,r);multiDragClones.forEach((function(e){css(e,"display","")}));n();clonesHidden=false;o()},hideClone:function e(t){var n=this;var r=t.cloneNowHidden,o=t.cancel;if(!this.isMultiDrag)return;multiDragClones.forEach((function(e){css(e,"display","none");if(n.options.removeCloneOnHide&&e.parentNode){e.parentNode.removeChild(e)}}));r();clonesHidden=true;o()},dragStartGlobal:function e(t){if(!this.isMultiDrag&&multiDragSortable){multiDragSortable.multiDrag._deselectMultiDrag()}multiDragElements.forEach((function(e){e.sortableIndex=index(e)}));multiDragElements=multiDragElements.sort((function(e,t){return e.sortableIndex-t.sortableIndex}));dragStarted=true},dragStarted:function e(t){var n=this;var r=t.sortable;if(!this.isMultiDrag)return;if(this.options.sort){r.captureAnimationState();if(this.options.animation){multiDragElements.forEach((function(e){if(e===dragEl$1)return;css(e,"position","absolute")}));var o=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(e){if(e===dragEl$1)return;setRect(e,o)}));folding=true;initialFolding=true}}r.animateAll((function(){folding=false;initialFolding=false;if(n.options.animation){multiDragElements.forEach((function(e){unsetRect(e)}))}if(n.options.sort){removeMultiDragElements()}}))},dragOver:function e(t){var n=t.target,r=t.completed,o=t.cancel;if(folding&&~multiDragElements.indexOf(n)){r(false);o()}},revert:function e(t){var n=t.fromSortable,r=t.rootEl,o=t.sortable,i=t.dragRect;if(multiDragElements.length>1){multiDragElements.forEach((function(e){o.addAnimationState({target:e,rect:folding?getRect(e):i});unsetRect(e);e.fromRect=i;n.removeAnimationState(e)}));folding=false;insertMultiDragElements(!this.options.removeCloneOnHide,r)}},dragOverCompleted:function e(t){var n=t.sortable,r=t.isOwner,o=t.insertion,i=t.activeSortable,l=t.parentEl,a=t.putSortable;var s=this.options;if(o){if(r){i._hideClone()}initialFolding=false;if(s.animation&&multiDragElements.length>1&&(folding||!r&&!i.options.sort&&!a)){var c=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(e){if(e===dragEl$1)return;setRect(e,c);l.appendChild(e)}));folding=true}if(!r){if(!folding){removeMultiDragElements()}if(multiDragElements.length>1){var u=clonesHidden;i._showClone(n);if(i.options.animation&&!clonesHidden&&u){multiDragClones.forEach((function(e){i.addAnimationState({target:e,rect:clonesFromRect});e.fromRect=clonesFromRect;e.thisAnimationDuration=null}))}}else{i._showClone(n)}}}},dragOverAnimationCapture:function e(t){var n=t.dragRect,r=t.isOwner,o=t.activeSortable;multiDragElements.forEach((function(e){e.thisAnimationDuration=null}));if(o.options.animation&&!r&&o.multiDrag.isMultiDrag){clonesFromRect=_extends({},n);var i=matrix(dragEl$1,true);clonesFromRect.top-=i.f;clonesFromRect.left-=i.e}},dragOverAnimationComplete:function e(){if(folding){folding=false;removeMultiDragElements()}},drop:function e(t){var n=t.originalEvent,r=t.rootEl,o=t.parentEl,i=t.sortable,l=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable;var c=s||this.sortable;if(!n)return;var u=this.options,d=o.children;if(!dragStarted){if(u.multiDragKey&&!this.multiDragKeyDown){this._deselectMultiDrag()}toggleClass(dragEl$1,u.selectedClass,!~multiDragElements.indexOf(dragEl$1));if(!~multiDragElements.indexOf(dragEl$1)){multiDragElements.push(dragEl$1);dispatchEvent({sortable:i,rootEl:r,name:"select",targetEl:dragEl$1,originalEvent:n});if(n.shiftKey&&lastMultiDragSelect&&i.el.contains(lastMultiDragSelect)){var f=index(lastMultiDragSelect),h=index(dragEl$1);if(~f&&~h&&f!==h){var g,p;if(h>f){p=f;g=h}else{p=h;g=f+1}for(;p<g;p++){if(~multiDragElements.indexOf(d[p]))continue;toggleClass(d[p],u.selectedClass,true);multiDragElements.push(d[p]);dispatchEvent({sortable:i,rootEl:r,name:"select",targetEl:d[p],originalEvent:n})}}}else{lastMultiDragSelect=dragEl$1}multiDragSortable=c}else{multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1);lastMultiDragSelect=null;dispatchEvent({sortable:i,rootEl:r,name:"deselect",targetEl:dragEl$1,originalEvent:n})}}if(dragStarted&&this.isMultiDrag){folding=false;if((o[expando].options.sort||o!==r)&&multiDragElements.length>1){var m=getRect(dragEl$1),v=index(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&u.animation)dragEl$1.thisAnimationDuration=null;c.captureAnimationState();if(!initialFolding){if(u.animation){dragEl$1.fromRect=m;multiDragElements.forEach((function(e){e.thisAnimationDuration=null;if(e!==dragEl$1){var t=folding?getRect(e):m;e.fromRect=t;c.addAnimationState({target:e,rect:t})}}))}removeMultiDragElements();multiDragElements.forEach((function(e){if(d[v]){o.insertBefore(e,d[v])}else{o.appendChild(e)}v++}));if(a===index(dragEl$1)){var E=false;multiDragElements.forEach((function(e){if(e.sortableIndex!==index(e)){E=true;return}}));if(E){l("update")}}}multiDragElements.forEach((function(e){unsetRect(e)}));c.animateAll()}multiDragSortable=c}if(r===o||s&&s.lastPutMode!=="clone"){multiDragClones.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function e(){this.isMultiDrag=dragStarted=false;multiDragClones.length=0},destroyGlobal:function e(){this._deselectMultiDrag();off(document,"pointerup",this._deselectMultiDrag);off(document,"mouseup",this._deselectMultiDrag);off(document,"touchend",this._deselectMultiDrag);off(document,"keydown",this._checkKeyDown);off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function e(t){if(typeof dragStarted!=="undefined"&&dragStarted)return;if(multiDragSortable!==this.sortable)return;if(t&&closest(t.target,this.options.draggable,this.sortable.el,false))return;if(t&&t.button!==0)return;while(multiDragElements.length){var n=multiDragElements[0];toggleClass(n,this.options.selectedClass,false);multiDragElements.shift();dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:t})}},_checkKeyDown:function e(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=true}},_checkKeyUp:function e(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=false}}};return _extends(e,{pluginName:"multiDrag",utils:{select:function e(t){var n=t.parentNode[expando];if(!n||!n.options.multiDrag||~multiDragElements.indexOf(t))return;if(multiDragSortable&&multiDragSortable!==n){multiDragSortable.multiDrag._deselectMultiDrag();multiDragSortable=n}toggleClass(t,n.options.selectedClass,true);multiDragElements.push(t)},deselect:function e(t){var n=t.parentNode[expando],r=multiDragElements.indexOf(t);if(!n||!n.options.multiDrag||!~r)return;toggleClass(t,n.options.selectedClass,false);multiDragElements.splice(r,1)}},eventProperties:function e(){var t=this;var n=[],r=[];multiDragElements.forEach((function(e){n.push({multiDragElement:e,index:e.sortableIndex});var o;if(folding&&e!==dragEl$1){o=-1}else if(folding){o=index(e,":not(."+t.options.selectedClass+")")}else{o=index(e)}r.push({multiDragElement:e,index:o})}));return{items:_toConsumableArray(multiDragElements),clones:[].concat(multiDragClones),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function e(t){t=t.toLowerCase();if(t==="ctrl"){t="Control"}else if(t.length>1){t=t.charAt(0).toUpperCase()+t.substr(1)}return t}}})}function insertMultiDragElements(e,t){multiDragElements.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];if(o){t.insertBefore(n,o)}else{t.appendChild(n)}}))}function insertMultiDragClones(e,t){multiDragClones.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];if(o){t.insertBefore(n,o)}else{t.appendChild(n)}}))}function removeMultiDragElements(){multiDragElements.forEach((function(e){if(e===dragEl$1)return;e.parentNode&&e.parentNode.removeChild(e)}))}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);Sortable.mount(new SwapPlugin);Sortable.mount(new MultiDragPlugin);var stzhSortableCss='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-sortable-h{--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0 0 0.5rem rgba(0, 0, 0, 0.32)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:move;cursor:-webkit-grab;cursor:grab}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:move;cursor:-webkit-grabbing;cursor:grabbing}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var CLASS_ITEM="is-sortable-item";var CLASS_GHOST="is-ghost";var CLASS_SELECTED="is-selected";var CLASS_CHOSEN="is-chosen";var CLASS_DRAG="is-drag";var CLASS_PARENT_SELECTED="has-item-selected";var sortableCounter=0;var StzhSortable=function(){function e(e){var t=this;registerInstance(this,e);this.stzhUpdate=createEvent(this,"stzhUpdate",7);this.stzhDisable=createEvent(this,"stzhDisable",7);this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var e;return(e=t.containerElement)===null||e===void 0?void 0:e.firstElementChild};this.ghostClone=function(e){var t=cloneElement(e)[0];return t};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"];this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!t.getContainer()){return}Array.from(t.getContainer().children).forEach((function(e){e.classList.add(CLASS_ITEM);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};this.updated=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n,r,o,i;var l;return __generator(this,(function(a){switch(a.label){case 0:if(e){t=e.newIndex;n=e.oldIndex;r=e.item}else{t=this.getIndexOfSelectedItem();n=this.lastIndex;r=this.selectedItem}if(!(t!==n))return[3,2];i=(o=this.stzhUpdate).emit;l={component:"stzh-sortable"};return[4,this.toArray()];case 1:i.apply(o,[(l.data=a.sent(),l.item=r,l.newIndex=t,l.oldIndex=n,l)]);a.label=2;case 2:return[2]}}))}))};this.onKeydown=function(e){var n=e.currentTarget;var r=e.target;if(!t.getContainer()||t.disabled){return}var o=r.matches(t._filterElements.join(", "));if(e.key===" "&&!o){e.preventDefault();if(!t.selectedItem){t.selectedItem=n;t.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);t.selectedItem.classList.add(CLASS_SELECTED);t.lastIndex=t.getIndexOfSelectedItem();t.resetItemOnBlur=true;t.updateAriaLive(t.localization.started)}else{t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}else if(e.key==="Tab"&&t.selectedItem&&t.selectedItem===e.currentTarget){e.preventDefault()}else if(e.key==="Escape"&&t.selectedItem){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.canceled);t.resetActiveItem(true)}else if(e.key==="ArrowUp"){if(t.selectedItem){t.moveItem(t.selectedItem,"up")}else{t.focusItem(n.previousElementSibling)}}else if(e.key==="ArrowDown"){if(t.selectedItem){t.moveItem(t.selectedItem,"down")}else{t.focusItem(n.nextElementSibling)}}};this.onBlur=function(){if(t.resetItemOnBlur){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}}e.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.sortable.toArray()]}))}))};e.prototype.sort=function(e,t){if(t===void 0){t=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.sortable.sort(e,t)]}))}))};e.prototype.moveItem=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i;var l;return __generator(this,(function(a){switch(a.label){case 0:if(!e||!e.nextElementSibling&&t==="down"||!e.previousElementSibling&&t==="up"){return[2]}this.resetItemOnBlur=false;if(t==="up"){e.previousElementSibling.before(e)}else if(t==="down"){e.nextElementSibling.after(e)}this.updateAriaLive(this.localization.moved,e);this.focusItem(e);r=Array.from((n=e.parentElement)===null||n===void 0?void 0:n.children).indexOf(e);i=(o=this.stzhUpdate).emit;l={component:"stzh-sortable"};return[4,this.toArray()];case 1:i.apply(o,[(l.data=a.sent(),l.item=e,l.newIndex=r,l.oldIndex=r+(t==="up"?1:-1),l)]);this.resetItemOnBlur=true;return[2]}}))}))};e.prototype.disabledWatcher=function(){this.stzhDisable.emit({component:"stzh-sortable",disabled:this.disabled})};e.prototype.filterElementsWatcher=function(e){if(typeof e==="string"){this._filterElements=JSON.parse(e)}else{this._filterElements=e}};e.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};e.prototype.updateAriaLive=function(e,t){if(t===void 0){t=this.selectedItem}if(!this.getContainer()){return}if(t){var n=t.getAttribute("aria-label")||"";var r=this.getIndexOfSelectedItem(t);e=e.replace("{title}",n).replace("{current}",(r+1).toString())}var o=this.getContainer().children.length;e=e.replace("{total}",o.toString());this.ariaLiveElement.textContent=e};e.prototype.getIndexOfSelectedItem=function(e){if(e===void 0){e=this.selectedItem}if(e){return Array.from(e.parentElement.children).indexOf(e)}};e.prototype.resetActiveItem=function(e){if(e===void 0){e=false}if(!this.selectedItem){return}var t=this.getIndexOfSelectedItem();var n=this.selectedItem.parentElement;if(e&&this.lastIndex!==t){if(this.lastIndex>t){n.children[this.lastIndex].after(this.selectedItem)}else{n.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}n.classList.remove(CLASS_PARENT_SELECTED);this.selectedItem.classList.remove(CLASS_SELECTED);this.selectedItem=null;this.lastIndex=null};e.prototype.focusItem=function(e){if(!e){return}e.focus();var t=document.querySelector("stzh-flyingfocus");if(t){t.reposition()}scrollIntoView(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.sortableId="stzh-sortable-".concat(sortableCounter++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];e=this;return[4,fetchTranslations(this.element,"sortable")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new Sortable(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:CLASS_GHOST,chosenClass:CLASS_CHOSEN,dragClass:CLASS_DRAG,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,ghostClone:this.ghostClone,onUpdate:this.updated})};e.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect();if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.render=function(){var e=this;var t={"stzh-sortable":true};return h(Host,null,h("div",{class:t},h("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),h("div",{ref:function(t){return e.ariaLiveElement=t},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),h("div",{ref:function(t){return e.containerElement=t},class:"stzh-sortable__container"},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledWatcher"],filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return e}();StzhSortable.style=stzhSortableCss;export{StzhSortable as stzh_sortable};
7
+ */function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}n.push.apply(n,r)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(n),true).forEach((function(t){_defineProperty(e,t,n[t])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{ownKeys(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}}return e}function _typeof(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function(e){return typeof e}}else{_typeof=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}function _defineProperty(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function _extends(){_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e};return _extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={};var r=Object.keys(e);var o,i;for(i=0;i<r.length;i++){o=r[i];if(t.indexOf(o)>=0)continue;n[o]=e[o]}return n}function _objectWithoutProperties(e,t){if(e==null)return{};var n=_objectWithoutPropertiesLoose(e,t);var r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++){r=i[o];if(t.indexOf(r)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,r))continue;n[r]=e[r]}}return n}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if(typeof Symbol!=="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _unsupportedIterableToArray(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}function _arrayLikeToArray(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var version="1.15.0";function userAgent(e){if(typeof window!=="undefined"&&window.navigator){return!!navigator.userAgent.match(e)}}var IE11OrLess=userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);var Edge=userAgent(/Edge/i);var FireFox=userAgent(/firefox/i);var Safari=userAgent(/safari/i)&&!userAgent(/chrome/i)&&!userAgent(/android/i);var IOS=userAgent(/iP(ad|od|hone)/i);var ChromeForAndroid=userAgent(/chrome/i)&&userAgent(/android/i);var captureMode={capture:false,passive:false};function on(e,t,n){e.addEventListener(t,n,!IE11OrLess&&captureMode)}function off(e,t,n){e.removeEventListener(t,n,!IE11OrLess&&captureMode)}function matches(e,t){if(!t)return;t[0]===">"&&(t=t.substring(1));if(e){try{if(e.matches){return e.matches(t)}else if(e.msMatchesSelector){return e.msMatchesSelector(t)}else if(e.webkitMatchesSelector){return e.webkitMatchesSelector(t)}}catch(n){return false}}return false}function getParentOrHost(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function closest(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&matches(e,t):matches(e,t))||r&&e===n){return e}if(e===n)break}while(e=getParentOrHost(e))}return null}var R_SPACE=/\s+/g;function toggleClass(e,t,n){if(e&&t){if(e.classList){e.classList[n?"add":"remove"](t)}else{var r=(" "+e.className+" ").replace(R_SPACE," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(R_SPACE," ")}}}function css(e,t,n){var r=e&&e.style;if(r){if(n===void 0){if(document.defaultView&&document.defaultView.getComputedStyle){n=document.defaultView.getComputedStyle(e,"")}else if(e.currentStyle){n=e.currentStyle}return t===void 0?n:n[t]}else{if(!(t in r)&&t.indexOf("webkit")===-1){t="-webkit-"+t}r[t]=n+(typeof n==="string"?"":"px")}}}function matrix(e,t){var n="";if(typeof e==="string"){n=e}else{do{var r=css(e,"transform");if(r&&r!=="none"){n=r+" "+n}}while(!t&&(e=e.parentNode))}var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function find(e,t,n){if(e){var r=e.getElementsByTagName(t),o=0,i=r.length;if(n){for(;o<i;o++){n(r[o],o)}}return r}return[]}function getWindowScrollingElement(){var e=document.scrollingElement;if(e){return e}else{return document.documentElement}}function getRect(e,t,n,r,o){if(!e.getBoundingClientRect&&e!==window)return;var i,l,a,s,c,u,d;if(e!==window&&e.parentNode&&e!==getWindowScrollingElement()){i=e.getBoundingClientRect();l=i.top;a=i.left;s=i.bottom;c=i.right;u=i.height;d=i.width}else{l=0;a=0;s=window.innerHeight;c=window.innerWidth;u=window.innerHeight;d=window.innerWidth}if((t||n)&&e!==window){o=o||e.parentNode;if(!IE11OrLess){do{if(o&&o.getBoundingClientRect&&(css(o,"transform")!=="none"||n&&css(o,"position")!=="static")){var f=o.getBoundingClientRect();l-=f.top+parseInt(css(o,"border-top-width"));a-=f.left+parseInt(css(o,"border-left-width"));s=l+i.height;c=a+i.width;break}}while(o=o.parentNode)}}if(r&&e!==window){var h=matrix(o||e),g=h&&h.a,p=h&&h.d;if(h){l/=p;a/=g;d/=g;u/=p;s=l+u;c=a+d}}return{top:l,left:a,bottom:s,right:c,width:d,height:u}}function isScrolledPast(e,t,n){var r=getParentAutoScrollElement(e,true),o=getRect(e)[t];while(r){var i=getRect(r)[n],l=void 0;if(n==="top"||n==="left"){l=o>=i}else{l=o<=i}if(!l)return r;if(r===getWindowScrollingElement())break;r=getParentAutoScrollElement(r,false)}return false}function getChild(e,t,n,r){var o=0,i=0,l=e.children;while(i<l.length){if(l[i].style.display!=="none"&&l[i]!==Sortable.ghost&&(r||l[i]!==Sortable.dragged)&&closest(l[i],n.draggable,e,false)){if(o===t){return l[i]}o++}i++}return null}function lastChild(e,t){var n=e.lastElementChild;while(n&&(n===Sortable.ghost||css(n,"display")==="none"||t&&!matches(n,t))){n=n.previousElementSibling}return n||null}function index(e,t){var n=0;if(!e||!e.parentNode){return-1}while(e=e.previousElementSibling){if(e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Sortable.clone&&(!t||matches(e,t))){n++}}return n}function getRelativeScrollOffset(e){var t=0,n=0,r=getWindowScrollingElement();if(e){do{var o=matrix(e),i=o.a,l=o.d;t+=e.scrollLeft*i;n+=e.scrollTop*l}while(e!==r&&(e=e.parentNode))}return[t,n]}function indexOfObject(e,t){for(var n in e){if(!e.hasOwnProperty(n))continue;for(var r in t){if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}}return-1}function getParentAutoScrollElement(e,t){if(!e||!e.getBoundingClientRect)return getWindowScrollingElement();var n=e;var r=false;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=css(n);if(n.clientWidth<n.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return getWindowScrollingElement();if(r||t)return n;r=true}}}while(n=n.parentNode);return getWindowScrollingElement()}function extend(e,t){if(e&&t){for(var n in t){if(t.hasOwnProperty(n)){e[n]=t[n]}}}return e}function isRectEqual(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var _throttleTimeout;function throttle(e,t){return function(){if(!_throttleTimeout){var n=arguments,r=this;if(n.length===1){e.call(r,n[0])}else{e.apply(r,n)}_throttleTimeout=setTimeout((function(){_throttleTimeout=void 0}),t)}}}function cancelThrottle(){clearTimeout(_throttleTimeout);_throttleTimeout=void 0}function scrollBy(e,t,n){e.scrollLeft+=t;e.scrollTop+=n}function clone(e){var t=window.Polymer;var n=window.jQuery||window.Zepto;if(t&&t.dom){return t.dom(e).cloneNode(true)}else if(n){return n(e).clone(true)[0]}else{return e.cloneNode(true)}}function setRect(e,t){css(e,"position","absolute");css(e,"top",t.top);css(e,"left",t.left);css(e,"width",t.width);css(e,"height",t.height)}function unsetRect(e){css(e,"position","");css(e,"top","");css(e,"left","");css(e,"width","");css(e,"height","")}var expando="Sortable"+(new Date).getTime();function AnimationStateManager(){var e=[],t;return{captureAnimationState:function t(){e=[];if(!this.options.animation)return;var n=[].slice.call(this.el.children);n.forEach((function(t){if(css(t,"display")==="none"||t===Sortable.ghost)return;e.push({target:t,rect:getRect(t)});var n=_objectSpread2({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=matrix(t,true);if(r){n.top-=r.f;n.left-=r.e}}t.fromRect=n}))},addAnimationState:function t(n){e.push(n)},removeAnimationState:function t(n){e.splice(indexOfObject(e,{target:n}),1)},animateAll:function n(r){var o=this;if(!this.options.animation){clearTimeout(t);if(typeof r==="function")r();return}var i=false,l=0;e.forEach((function(e){var t=0,n=e.target,r=n.fromRect,a=getRect(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,d=matrix(n,true);if(d){a.top-=d.f;a.left-=d.e}n.toRect=a;if(n.thisAnimationDuration){if(isRectEqual(s,a)&&!isRectEqual(r,a)&&(u.top-a.top)/(u.left-a.left)===(r.top-a.top)/(r.left-a.left)){t=calculateRealTime(u,s,c,o.options)}}if(!isRectEqual(a,r)){n.prevFromRect=r;n.prevToRect=a;if(!t){t=o.options.animation}o.animate(n,u,a,t)}if(t){i=true;l=Math.max(l,t);clearTimeout(n.animationResetTimer);n.animationResetTimer=setTimeout((function(){n.animationTime=0;n.prevFromRect=null;n.fromRect=null;n.prevToRect=null;n.thisAnimationDuration=null}),t);n.thisAnimationDuration=t}}));clearTimeout(t);if(!i){if(typeof r==="function")r()}else{t=setTimeout((function(){if(typeof r==="function")r()}),l)}e=[]},animate:function e(t,n,r,o){if(o){css(t,"transition","");css(t,"transform","");var i=matrix(this.el),l=i&&i.a,a=i&&i.d,s=(n.left-r.left)/(l||1),c=(n.top-r.top)/(a||1);t.animatingX=!!s;t.animatingY=!!c;css(t,"transform","translate3d("+s+"px,"+c+"px,0)");this.forRepaintDummy=repaint(t);css(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:""));css(t,"transform","translate3d(0,0,0)");typeof t.animated==="number"&&clearTimeout(t.animated);t.animated=setTimeout((function(){css(t,"transition","");css(t,"transform","");t.animated=false;t.animatingX=false;t.animatingY=false}),o)}}}}function repaint(e){return e.offsetWidth}function calculateRealTime(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var plugins=[];var defaults={initializeByDefault:true};var PluginManager={mount:function e(t){for(var n in defaults){if(defaults.hasOwnProperty(n)&&!(n in t)){t[n]=defaults[n]}}plugins.forEach((function(e){if(e.pluginName===t.pluginName){throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}}));plugins.push(t)},pluginEvent:function e(t,n,r){var o=this;this.eventCanceled=false;r.cancel=function(){o.eventCanceled=true};var i=t+"Global";plugins.forEach((function(e){if(!n[e.pluginName])return;if(n[e.pluginName][i]){n[e.pluginName][i](_objectSpread2({sortable:n},r))}if(n.options[e.pluginName]&&n[e.pluginName][t]){n[e.pluginName][t](_objectSpread2({sortable:n},r))}}))},initializePlugins:function e(t,n,r,o){plugins.forEach((function(e){var o=e.pluginName;if(!t.options[o]&&!e.initializeByDefault)return;var i=new e(t,n,t.options);i.sortable=t;i.options=t.options;t[o]=i;_extends(r,i.defaults)}));for(var i in t.options){if(!t.options.hasOwnProperty(i))continue;var l=this.modifyOption(t,i,t.options[i]);if(typeof l!=="undefined"){t.options[i]=l}}},getEventProperties:function e(t,n){var r={};plugins.forEach((function(e){if(typeof e.eventProperties!=="function")return;_extends(r,e.eventProperties.call(n[e.pluginName],t))}));return r},modifyOption:function e(t,n,r){var o;plugins.forEach((function(e){if(!t[e.pluginName])return;if(e.optionListeners&&typeof e.optionListeners[n]==="function"){o=e.optionListeners[n].call(t[e.pluginName],r)}}));return o}};function dispatchEvent(e){var t=e.sortable,n=e.rootEl,r=e.name,o=e.targetEl,i=e.cloneEl,l=e.toEl,a=e.fromEl,s=e.oldIndex,c=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,g=e.extraEventProperties;t=t||n&&n[expando];if(!t)return;var p,m=t.options,v="on"+r.charAt(0).toUpperCase()+r.substr(1);if(window.CustomEvent&&!IE11OrLess&&!Edge){p=new CustomEvent(r,{bubbles:true,cancelable:true})}else{p=document.createEvent("Event");p.initEvent(r,true,true)}p.to=l||n;p.from=a||n;p.item=o||n;p.clone=i;p.oldIndex=s;p.newIndex=c;p.oldDraggableIndex=u;p.newDraggableIndex=d;p.originalEvent=f;p.pullMode=h?h.lastPutMode:undefined;var E=_objectSpread2(_objectSpread2({},g),PluginManager.getEventProperties(r,t));for(var b in E){p[b]=E[b]}if(n){n.dispatchEvent(p)}if(m[v]){m[v].call(t,p)}}var _excluded=["evt"];var pluginEvent=function e(t,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},o=r.evt,i=_objectWithoutProperties(r,_excluded);PluginManager.pluginEvent.bind(Sortable)(t,n,_objectSpread2({dragEl:dragEl,parentEl:parentEl,ghostEl:ghostEl,rootEl:rootEl,nextEl:nextEl,lastDownEl:lastDownEl,cloneEl:cloneEl,cloneHidden:cloneHidden,dragStarted:moved,putSortable:putSortable,activeSortable:Sortable.active,originalEvent:o,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex,hideGhostForTarget:_hideGhostForTarget,unhideGhostForTarget:_unhideGhostForTarget,cloneNowHidden:function e(){cloneHidden=true},cloneNowShown:function e(){cloneHidden=false},dispatchSortableEvent:function e(t){_dispatchEvent({sortable:n,name:t,originalEvent:o})}},i))};function _dispatchEvent(e){dispatchEvent(_objectSpread2({putSortable:putSortable,cloneEl:cloneEl,targetEl:dragEl,rootEl:rootEl,oldIndex:oldIndex,oldDraggableIndex:oldDraggableIndex,newIndex:newIndex,newDraggableIndex:newDraggableIndex},e))}var dragEl,parentEl,ghostEl,rootEl,nextEl,lastDownEl,cloneEl,cloneHidden,oldIndex,newIndex,oldDraggableIndex,newDraggableIndex,activeGroup,putSortable,awaitingDragStarted=false,ignoreNextClick=false,sortables=[],tapEvt,touchEvt,lastDx,lastDy,tapDistanceLeft,tapDistanceTop,moved,lastTarget,lastDirection,pastFirstInvertThresh=false,isCircumstantialInvert=false,targetMoveDistance,ghostRelativeParent,ghostRelativeParentInitialScroll=[],_silent=false,savedInputChecked=[];var documentExists=typeof document!=="undefined",PositionGhostAbsolutely=IOS,CSSFloatProperty=Edge||IE11OrLess?"cssFloat":"float",supportDraggable=documentExists&&!ChromeForAndroid&&!IOS&&"draggable"in document.createElement("div"),supportCssPointerEvents=function(){if(!documentExists)return;if(IE11OrLess){return false}var e=document.createElement("x");e.style.cssText="pointer-events:auto";return e.style.pointerEvents==="auto"}(),_detectDirection=function e(t,n){var r=css(t),o=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),i=getChild(t,0,n),l=getChild(t,1,n),a=i&&css(i),s=l&&css(l),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+getRect(i).width,u=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+getRect(l).width;if(r.display==="flex"){return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal"}if(r.display==="grid"){return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal"}if(i&&a["float"]&&a["float"]!=="none"){var d=a["float"]==="left"?"left":"right";return l&&(s.clear==="both"||s.clear===d)?"vertical":"horizontal"}return i&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=o&&r[CSSFloatProperty]==="none"||l&&r[CSSFloatProperty]==="none"&&c+u>o)?"vertical":"horizontal"},_dragElInRowColumn=function e(t,n,r){var o=r?t.left:t.top,i=r?t.right:t.bottom,l=r?t.width:t.height,a=r?n.left:n.top,s=r?n.right:n.bottom,c=r?n.width:n.height;return o===a||i===s||o+l/2===a+c/2},_detectNearestEmptySortable=function e(t,n){var r;sortables.some((function(e){var o=e[expando].options.emptyInsertThreshold;if(!o||lastChild(e))return;var i=getRect(e),l=t>=i.left-o&&t<=i.right+o,a=n>=i.top-o&&n<=i.bottom+o;if(l&&a){return r=e}}));return r},_prepareGroup=function e(t){function n(e,t){return function(r,o,i,l){var a=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(e==null&&(t||a)){return true}else if(e==null||e===false){return false}else if(t&&e==="clone"){return e}else if(typeof e==="function"){return n(e(r,o,i,l),t)(r,o,i,l)}else{var s=(t?r:o).options.group.name;return e===true||typeof e==="string"&&e===s||e.join&&e.indexOf(s)>-1}}}var r={};var o=t.group;if(!o||_typeof(o)!="object"){o={name:o}}r.name=o.name;r.checkPull=n(o.pull,true);r.checkPut=n(o.put);r.revertClone=o.revertClone;t.group=r},_hideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","none")}},_unhideGhostForTarget=function e(){if(!supportCssPointerEvents&&ghostEl){css(ghostEl,"display","")}};if(documentExists&&!ChromeForAndroid){document.addEventListener("click",(function(e){if(ignoreNextClick){e.preventDefault();e.stopPropagation&&e.stopPropagation();e.stopImmediatePropagation&&e.stopImmediatePropagation();ignoreNextClick=false;return false}}),true)}var nearestEmptyInsertDetectEvent=function e(t){if(dragEl){t=t.touches?t.touches[0]:t;var n=_detectNearestEmptySortable(t.clientX,t.clientY);if(n){var r={};for(var o in t){if(t.hasOwnProperty(o)){r[o]=t[o]}}r.target=r.rootEl=n;r.preventDefault=void 0;r.stopPropagation=void 0;n[expando]._onDragOver(r)}}};var _checkOutsideTargetEl=function e(t){if(dragEl){dragEl.parentNode[expando]._isOutsideThisEl(t.target)}};function Sortable(e,t){if(!(e&&e.nodeType&&e.nodeType===1)){throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e))}this.el=e;this.options=t=_extends({},t);e[expando]=this;var n={group:null,sort:true,disabled:false,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:false,invertedSwapThreshold:null,removeCloneOnHide:true,direction:function t(){return _detectDirection(e,this.options)},ghostClone:function(e){return e.cloneNode(true)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:true,animation:0,easing:null,setData:function e(t,n){t.setData("Text",n.textContent)},dropBubble:false,dragoverBubble:false,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:false,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:false,fallbackClass:"sortable-fallback",fallbackOnBody:false,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Sortable.supportPointer!==false&&"PointerEvent"in window&&!Safari,emptyInsertThreshold:5};PluginManager.initializePlugins(this,e,n);for(var r in n){!(r in t)&&(t[r]=n[r])}_prepareGroup(t);for(var o in this){if(o.charAt(0)==="_"&&typeof this[o]==="function"){this[o]=this[o].bind(this)}}this.nativeDraggable=t.forceFallback?false:supportDraggable;if(this.nativeDraggable){this.options.touchStartThreshold=1}if(t.supportPointer){on(e,"pointerdown",this._onTapStart)}else{on(e,"mousedown",this._onTapStart);on(e,"touchstart",this._onTapStart)}if(this.nativeDraggable){on(e,"dragover",this);on(e,"dragenter",this)}sortables.push(this.el);t.store&&t.store.get&&this.sort(t.store.get(this)||[]);_extends(this,AnimationStateManager())}Sortable.prototype={constructor:Sortable,_isOutsideThisEl:function e(t){if(!this.el.contains(t)&&t!==this.el){lastTarget=null}},_getDirection:function e(t,n){return typeof this.options.direction==="function"?this.options.direction.call(this,t,n,dragEl):this.options.direction},_onTapStart:function e(t){if(!t.cancelable)return;var n=this,r=this.el,o=this.options,i=o.preventOnFilter,l=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,u=o.filter;_saveInputCheckedState(r);if(dragEl){return}if(/mousedown|pointerdown/.test(l)&&t.button!==0||o.disabled){return}if(c.isContentEditable){return}if(!this.nativeDraggable&&Safari&&s&&s.tagName.toUpperCase()==="SELECT"){return}s=closest(s,o.draggable,r,false);if(s&&s.animated){return}if(lastDownEl===s){return}oldIndex=index(s);oldDraggableIndex=index(s,o.draggable);if(typeof u==="function"){if(u.call(this,t,s,this)){_dispatchEvent({sortable:n,rootEl:c,name:"filter",targetEl:s,toEl:r,fromEl:r});pluginEvent("filter",n,{evt:t});i&&t.cancelable&&t.preventDefault();return}}else if(u){u=u.split(",").some((function(e){e=closest(c,e.trim(),r,false);if(e){_dispatchEvent({sortable:n,rootEl:e,name:"filter",targetEl:s,fromEl:r,toEl:r});pluginEvent("filter",n,{evt:t});return true}}));if(u){i&&t.cancelable&&t.preventDefault();return}}if(o.handle&&!closest(c,o.handle,r,false)){return}this._prepareDragStart(t,a,s)},_prepareDragStart:function e(t,n,r){var o=this,i=o.el,l=o.options,a=i.ownerDocument,s;if(r&&!dragEl&&r.parentNode===i){var c=getRect(r);rootEl=i;dragEl=r;parentEl=dragEl.parentNode;nextEl=dragEl.nextSibling;lastDownEl=r;activeGroup=l.group;Sortable.dragged=dragEl;tapEvt={target:dragEl,clientX:(n||t).clientX,clientY:(n||t).clientY};tapDistanceLeft=tapEvt.clientX-c.left;tapDistanceTop=tapEvt.clientY-c.top;this._lastX=(n||t).clientX;this._lastY=(n||t).clientY;dragEl.style["will-change"]="all";s=function e(){pluginEvent("delayEnded",o,{evt:t});if(Sortable.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents();if(!FireFox&&o.nativeDraggable){dragEl.draggable=true}o._triggerDragStart(t,n);_dispatchEvent({sortable:o,name:"choose",originalEvent:t});toggleClass(dragEl,l.chosenClass,true)};l.ignore.split(",").forEach((function(e){find(dragEl,e.trim(),_disableDraggable)}));on(a,"dragover",nearestEmptyInsertDetectEvent);on(a,"mousemove",nearestEmptyInsertDetectEvent);on(a,"touchmove",nearestEmptyInsertDetectEvent);on(a,"mouseup",o._onDrop);on(a,"touchend",o._onDrop);on(a,"touchcancel",o._onDrop);if(FireFox&&this.nativeDraggable){this.options.touchStartThreshold=4;dragEl.draggable=true}pluginEvent("delayStart",this,{evt:t});if(l.delay&&(!l.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Edge||IE11OrLess))){if(Sortable.eventCanceled){this._onDrop();return}on(a,"mouseup",o._disableDelayedDrag);on(a,"touchend",o._disableDelayedDrag);on(a,"touchcancel",o._disableDelayedDrag);on(a,"mousemove",o._delayedDragTouchMoveHandler);on(a,"touchmove",o._delayedDragTouchMoveHandler);l.supportPointer&&on(a,"pointermove",o._delayedDragTouchMoveHandler);o._dragStartTimer=setTimeout(s,l.delay)}else{s()}}},_delayedDragTouchMoveHandler:function e(t){var n=t.touches?t.touches[0]:t;if(Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))){this._disableDelayedDrag()}},_disableDelayedDrag:function e(){dragEl&&_disableDraggable(dragEl);clearTimeout(this._dragStartTimer);this._disableDelayedDragEvents()},_disableDelayedDragEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._disableDelayedDrag);off(t,"touchend",this._disableDelayedDrag);off(t,"touchcancel",this._disableDelayedDrag);off(t,"mousemove",this._delayedDragTouchMoveHandler);off(t,"touchmove",this._delayedDragTouchMoveHandler);off(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function e(t,n){n=n||t.pointerType=="touch"&&t;if(!this.nativeDraggable||n){if(this.options.supportPointer){on(document,"pointermove",this._onTouchMove)}else if(n){on(document,"touchmove",this._onTouchMove)}else{on(document,"mousemove",this._onTouchMove)}}else{on(dragEl,"dragend",this);on(rootEl,"dragstart",this._onDragStart)}try{if(document.selection){_nextTick((function(){document.selection.empty()}))}else{window.getSelection().removeAllRanges()}}catch(r){}},_dragStarted:function e(t,n){awaitingDragStarted=false;if(rootEl&&dragEl){pluginEvent("dragStarted",this,{evt:n});if(this.nativeDraggable){on(document,"dragover",_checkOutsideTargetEl)}var r=this.options;!t&&toggleClass(dragEl,r.dragClass,false);toggleClass(dragEl,r.ghostClass,true);Sortable.active=this;t&&this._appendGhost();_dispatchEvent({sortable:this,name:"start",originalEvent:n})}else{this._nulling()}},_emulateDragOver:function e(){if(touchEvt){this._lastX=touchEvt.clientX;this._lastY=touchEvt.clientY;_hideGhostForTarget();var t=document.elementFromPoint(touchEvt.clientX,touchEvt.clientY);var n=t;while(t&&t.shadowRoot){t=t.shadowRoot.elementFromPoint(touchEvt.clientX,touchEvt.clientY);if(t===n)break;n=t}dragEl.parentNode[expando]._isOutsideThisEl(t);if(n){do{if(n[expando]){var r=void 0;r=n[expando]._onDragOver({clientX:touchEvt.clientX,clientY:touchEvt.clientY,target:t,rootEl:n});if(r&&!this.options.dragoverBubble){break}}t=n}while(n=n.parentNode)}_unhideGhostForTarget()}},_onTouchMove:function e(t){if(tapEvt){var n=this.options,r=n.fallbackTolerance,o=n.fallbackOffset,i=t.touches?t.touches[0]:t,l=ghostEl&&matrix(ghostEl,true),a=ghostEl&&l&&l.a,s=ghostEl&&l&&l.d,c=PositionGhostAbsolutely&&ghostRelativeParent&&getRelativeScrollOffset(ghostRelativeParent),u=(i.clientX-tapEvt.clientX+o.x)/(a||1)+(c?c[0]-ghostRelativeParentInitialScroll[0]:0)/(a||1),d=(i.clientY-tapEvt.clientY+o.y)/(s||1)+(c?c[1]-ghostRelativeParentInitialScroll[1]:0)/(s||1);if(!Sortable.active&&!awaitingDragStarted){if(r&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<r){return}this._onDragStart(t,true)}if(ghostEl){if(l){l.e+=u-(lastDx||0);l.f+=d-(lastDy||0)}else{l={a:1,b:0,c:0,d:1,e:u,f:d}}var f="matrix(".concat(l.a,",").concat(l.b,",").concat(l.c,",").concat(l.d,",").concat(l.e,",").concat(l.f,")");css(ghostEl,"webkitTransform",f);css(ghostEl,"mozTransform",f);css(ghostEl,"msTransform",f);css(ghostEl,"transform",f);lastDx=u;lastDy=d;touchEvt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function e(){if(!ghostEl){var t=this.options.fallbackOnBody?document.body:rootEl,n=getRect(dragEl,true,PositionGhostAbsolutely,true,t),r=this.options;if(PositionGhostAbsolutely){ghostRelativeParent=t;while(css(ghostRelativeParent,"position")==="static"&&css(ghostRelativeParent,"transform")==="none"&&ghostRelativeParent!==document){ghostRelativeParent=ghostRelativeParent.parentNode}if(ghostRelativeParent!==document.body&&ghostRelativeParent!==document.documentElement){if(ghostRelativeParent===document)ghostRelativeParent=getWindowScrollingElement();n.top+=ghostRelativeParent.scrollTop;n.left+=ghostRelativeParent.scrollLeft}else{ghostRelativeParent=getWindowScrollingElement()}ghostRelativeParentInitialScroll=getRelativeScrollOffset(ghostRelativeParent)}ghostEl=r.ghostClone(dragEl);toggleClass(ghostEl,r.ghostClass,false);toggleClass(ghostEl,r.fallbackClass,true);toggleClass(ghostEl,r.dragClass,true);css(ghostEl,"transition","");css(ghostEl,"transform","");css(ghostEl,"box-sizing","border-box");css(ghostEl,"margin",0);css(ghostEl,"top",n.top);css(ghostEl,"left",n.left);css(ghostEl,"width",n.width);css(ghostEl,"height",n.height);css(ghostEl,"opacity","0.8");css(ghostEl,"position",PositionGhostAbsolutely?"absolute":"fixed");css(ghostEl,"zIndex","100000");css(ghostEl,"pointerEvents","none");Sortable.ghost=ghostEl;t.appendChild(ghostEl);css(ghostEl,"transform-origin",tapDistanceLeft/parseInt(ghostEl.style.width)*100+"% "+tapDistanceTop/parseInt(ghostEl.style.height)*100+"%")}},_onDragStart:function e(t,n){var r=this;var o=t.dataTransfer;var i=r.options;pluginEvent("dragStart",this,{evt:t});if(Sortable.eventCanceled){this._onDrop();return}pluginEvent("setupClone",this);if(!Sortable.eventCanceled){cloneEl=clone(dragEl);cloneEl.removeAttribute("id");cloneEl.draggable=false;cloneEl.style["will-change"]="";this._hideClone();toggleClass(cloneEl,this.options.chosenClass,false);Sortable.clone=cloneEl}r.cloneId=_nextTick((function(){pluginEvent("clone",r);if(Sortable.eventCanceled)return;if(!r.options.removeCloneOnHide){rootEl.insertBefore(cloneEl,dragEl)}r._hideClone();_dispatchEvent({sortable:r,name:"clone"})}));!n&&toggleClass(dragEl,i.dragClass,true);if(n){ignoreNextClick=true;r._loopId=setInterval(r._emulateDragOver,50)}else{off(document,"mouseup",r._onDrop);off(document,"touchend",r._onDrop);off(document,"touchcancel",r._onDrop);if(o){o.effectAllowed="move";i.setData&&i.setData.call(r,o,dragEl)}on(document,"drop",r);css(dragEl,"transform","translateZ(0)")}awaitingDragStarted=true;r._dragStartId=_nextTick(r._dragStarted.bind(r,n,t));on(document,"selectstart",r);moved=true;if(Safari){css(document.body,"user-select","none")}},_onDragOver:function e(t){var n=this.el,r=t.target,o,i,l,a=this.options,s=a.group,c=Sortable.active,u=activeGroup===s,d=a.sort,f=putSortable||c,h,g=this,p=false;if(_silent)return;function m(e,a){pluginEvent(e,g,_objectSpread2({evt:t,isOwner:u,axis:h?"vertical":"horizontal",revert:l,dragRect:o,targetRect:i,canSort:d,fromSortable:f,target:r,completed:E,onMove:function e(r,i){return _onMove(rootEl,n,dragEl,o,r,getRect(r),t,i)},changed:b},a))}function v(){m("dragOverAnimationCapture");g.captureAnimationState();if(g!==f){f.captureAnimationState()}}function E(e){m("dragOverCompleted",{insertion:e});if(e){if(u){c._hideClone()}else{c._showClone(g)}if(g!==f){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:c.options.ghostClass,false);toggleClass(dragEl,a.ghostClass,true)}if(putSortable!==g&&g!==Sortable.active){putSortable=g}else if(g===Sortable.active&&putSortable){putSortable=null}if(f===g){g._ignoreWhileAnimating=r}g.animateAll((function(){m("dragOverAnimationComplete");g._ignoreWhileAnimating=null}));if(g!==f){f.animateAll();f._ignoreWhileAnimating=null}}if(r===dragEl&&!dragEl.animated||r===n&&!r.animated){lastTarget=null}if(!a.dragoverBubble&&!t.rootEl&&r!==document){dragEl.parentNode[expando]._isOutsideThisEl(t.target);!e&&nearestEmptyInsertDetectEvent(t)}!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation();return p=true}function b(){newIndex=index(dragEl);newDraggableIndex=index(dragEl,a.draggable);_dispatchEvent({sortable:g,name:"change",toEl:n,newIndex:newIndex,newDraggableIndex:newDraggableIndex,originalEvent:t})}if(t.preventDefault!==void 0){t.cancelable&&t.preventDefault()}r=closest(r,a.draggable,n,true);m("dragOver");if(Sortable.eventCanceled)return p;if(dragEl.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||g._ignoreWhileAnimating===r){return E(false)}ignoreNextClick=false;if(c&&!a.disabled&&(u?d||(l=parentEl!==rootEl):putSortable===this||(this.lastPutMode=activeGroup.checkPull(this,c,dragEl,t))&&s.checkPut(this,c,dragEl,t))){h=this._getDirection(t,r)==="vertical";o=getRect(dragEl);m("dragOverValid");if(Sortable.eventCanceled)return p;if(l){parentEl=rootEl;v();this._hideClone();m("revert");if(!Sortable.eventCanceled){if(nextEl){rootEl.insertBefore(dragEl,nextEl)}else{rootEl.appendChild(dragEl)}}return E(true)}var S=lastChild(n,a.draggable);if(!S||_ghostIsLast(t,h,this)&&!S.animated){if(S===dragEl){return E(false)}if(S&&n===t.target){r=S}if(r){i=getRect(r)}if(_onMove(rootEl,n,dragEl,o,r,i,t,!!r)!==false){v();if(S&&S.nextSibling){n.insertBefore(dragEl,S.nextSibling)}else{n.appendChild(dragEl)}parentEl=n;b();return E(true)}}else if(S&&_ghostIsFirst(t,h,this)){var w=getChild(n,0,a,true);if(w===dragEl){return E(false)}r=w;i=getRect(r);if(_onMove(rootEl,n,dragEl,o,r,i,t,false)!==false){v();n.insertBefore(dragEl,w);parentEl=n;b();return E(true)}}else if(r.parentNode===n){i=getRect(r);var y=0,D,_=dragEl.parentNode!==n,x=!_dragElInRowColumn(dragEl.animated&&dragEl.toRect||o,r.animated&&r.toRect||i,h),C=h?"top":"left",I=isScrolledPast(r,"top","top")||isScrolledPast(dragEl,"top","top"),A=I?I.scrollTop:void 0;if(lastTarget!==r){D=i[C];pastFirstInvertThresh=false;isCircumstantialInvert=!x&&a.invertSwap||_}y=_getSwapDirection(t,r,i,h,x?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,isCircumstantialInvert,lastTarget===r);var T;if(y!==0){var O=index(dragEl);do{O-=y;T=parentEl.children[O]}while(T&&(css(T,"display")==="none"||T===ghostEl))}if(y===0||T===r){return E(false)}lastTarget=r;lastDirection=y;var P=r.nextElementSibling,M=false;M=y===1;var R=_onMove(rootEl,n,dragEl,o,r,i,t,M);if(R!==false){if(R===1||R===-1){M=R===1}_silent=true;setTimeout(_unsilent,30);v();if(M&&!P){n.appendChild(dragEl)}else{r.parentNode.insertBefore(dragEl,M?P:r)}if(I){scrollBy(I,0,A-I.scrollTop)}parentEl=dragEl.parentNode;if(D!==undefined&&!isCircumstantialInvert){targetMoveDistance=Math.abs(D-getRect(r)[C])}b();return E(true)}}if(n.contains(dragEl)){return E(false)}}return false},_ignoreWhileAnimating:null,_offMoveEvents:function e(){off(document,"mousemove",this._onTouchMove);off(document,"touchmove",this._onTouchMove);off(document,"pointermove",this._onTouchMove);off(document,"dragover",nearestEmptyInsertDetectEvent);off(document,"mousemove",nearestEmptyInsertDetectEvent);off(document,"touchmove",nearestEmptyInsertDetectEvent)},_offUpEvents:function e(){var t=this.el.ownerDocument;off(t,"mouseup",this._onDrop);off(t,"touchend",this._onDrop);off(t,"pointerup",this._onDrop);off(t,"touchcancel",this._onDrop);off(document,"selectstart",this)},_onDrop:function e(t){var n=this.el,r=this.options;newIndex=index(dragEl);newDraggableIndex=index(dragEl,r.draggable);pluginEvent("drop",this,{evt:t});parentEl=dragEl&&dragEl.parentNode;newIndex=index(dragEl);newDraggableIndex=index(dragEl,r.draggable);if(Sortable.eventCanceled){this._nulling();return}awaitingDragStarted=false;isCircumstantialInvert=false;pastFirstInvertThresh=false;clearInterval(this._loopId);clearTimeout(this._dragStartTimer);_cancelNextTick(this.cloneId);_cancelNextTick(this._dragStartId);if(this.nativeDraggable){off(document,"drop",this);off(n,"dragstart",this._onDragStart)}this._offMoveEvents();this._offUpEvents();if(Safari){css(document.body,"user-select","")}css(dragEl,"transform","");if(t){if(moved){t.cancelable&&t.preventDefault();!r.dropBubble&&t.stopPropagation()}ghostEl&&ghostEl.parentNode&&ghostEl.parentNode.removeChild(ghostEl);if(rootEl===parentEl||putSortable&&putSortable.lastPutMode!=="clone"){cloneEl&&cloneEl.parentNode&&cloneEl.parentNode.removeChild(cloneEl)}if(dragEl){if(this.nativeDraggable){off(dragEl,"dragend",this)}_disableDraggable(dragEl);dragEl.style["will-change"]="";if(moved&&!awaitingDragStarted){toggleClass(dragEl,putSortable?putSortable.options.ghostClass:this.options.ghostClass,false)}toggleClass(dragEl,this.options.chosenClass,false);_dispatchEvent({sortable:this,name:"unchoose",toEl:parentEl,newIndex:null,newDraggableIndex:null,originalEvent:t});if(rootEl!==parentEl){if(newIndex>=0){_dispatchEvent({rootEl:parentEl,name:"add",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"remove",toEl:parentEl,originalEvent:t});_dispatchEvent({rootEl:parentEl,name:"sort",toEl:parentEl,fromEl:rootEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}putSortable&&putSortable.save()}else{if(newIndex!==oldIndex){if(newIndex>=0){_dispatchEvent({sortable:this,name:"update",toEl:parentEl,originalEvent:t});_dispatchEvent({sortable:this,name:"sort",toEl:parentEl,originalEvent:t})}}}if(Sortable.active){if(newIndex==null||newIndex===-1){newIndex=oldIndex;newDraggableIndex=oldDraggableIndex}_dispatchEvent({sortable:this,name:"end",toEl:parentEl,originalEvent:t});this.save()}}}this._nulling()},_nulling:function e(){pluginEvent("nulling",this);rootEl=dragEl=parentEl=ghostEl=nextEl=cloneEl=lastDownEl=cloneHidden=tapEvt=touchEvt=moved=newIndex=newDraggableIndex=oldIndex=oldDraggableIndex=lastTarget=lastDirection=putSortable=activeGroup=Sortable.dragged=Sortable.ghost=Sortable.clone=Sortable.active=null;savedInputChecked.forEach((function(e){e.checked=true}));savedInputChecked.length=lastDx=lastDy=0},handleEvent:function e(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":if(dragEl){this._onDragOver(t);_globalDragOver(t)}break;case"selectstart":t.preventDefault();break}},toArray:function e(){var t=[],n,r=this.el.children,o=0,i=r.length,l=this.options;for(;o<i;o++){n=r[o];if(closest(n,l.draggable,this.el,false)){t.push(n.getAttribute(l.dataIdAttr)||_generateId(n))}}return t},sort:function e(t,n){var r={},o=this.el;this.toArray().forEach((function(e,t){var n=o.children[t];if(closest(n,this.options.draggable,o,false)){r[e]=n}}),this);n&&this.captureAnimationState();t.forEach((function(e){if(r[e]){o.removeChild(r[e]);o.appendChild(r[e])}}));n&&this.animateAll()},save:function e(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function e(t,n){return closest(t,n||this.options.draggable,this.el,false)},option:function e(t,n){var r=this.options;if(n===void 0){return r[t]}else{var o=PluginManager.modifyOption(this,t,n);if(typeof o!=="undefined"){r[t]=o}else{r[t]=n}if(t==="group"){_prepareGroup(r)}}},destroy:function e(){pluginEvent("destroy",this);var t=this.el;t[expando]=null;off(t,"mousedown",this._onTapStart);off(t,"touchstart",this._onTapStart);off(t,"pointerdown",this._onTapStart);if(this.nativeDraggable){off(t,"dragover",this);off(t,"dragenter",this)}Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")}));this._onDrop();this._disableDelayedDragEvents();sortables.splice(sortables.indexOf(this.el),1);this.el=t=null},_hideClone:function e(){if(!cloneHidden){pluginEvent("hideClone",this);if(Sortable.eventCanceled)return;css(cloneEl,"display","none");if(this.options.removeCloneOnHide&&cloneEl.parentNode){cloneEl.parentNode.removeChild(cloneEl)}cloneHidden=true}},_showClone:function e(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(cloneHidden){pluginEvent("showClone",this);if(Sortable.eventCanceled)return;if(dragEl.parentNode==rootEl&&!this.options.group.revertClone){rootEl.insertBefore(cloneEl,dragEl)}else if(nextEl){rootEl.insertBefore(cloneEl,nextEl)}else{rootEl.appendChild(cloneEl)}if(this.options.group.revertClone){this.animate(dragEl,cloneEl)}css(cloneEl,"display","");cloneHidden=false}}};function _globalDragOver(e){if(e.dataTransfer){e.dataTransfer.dropEffect="move"}e.cancelable&&e.preventDefault()}function _onMove(e,t,n,r,o,i,l,a){var s,c=e[expando],u=c.options.onMove,d;if(window.CustomEvent&&!IE11OrLess&&!Edge){s=new CustomEvent("move",{bubbles:true,cancelable:true})}else{s=document.createEvent("Event");s.initEvent("move",true,true)}s.to=t;s.from=e;s.dragged=n;s.draggedRect=r;s.related=o||t;s.relatedRect=i||getRect(t);s.willInsertAfter=a;s.originalEvent=l;e.dispatchEvent(s);if(u){d=u.call(c,s,l)}return d}function _disableDraggable(e){e.draggable=false}function _unsilent(){_silent=false}function _ghostIsFirst(e,t,n){var r=getRect(getChild(n.el,0,n.options,true));var o=10;return t?e.clientX<r.left-o||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-o||e.clientY<r.bottom&&e.clientX<r.left}function _ghostIsLast(e,t,n){var r=getRect(lastChild(n.el,n.options.draggable));var o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function _getSwapDirection(e,t,n,r,o,i,l,a){var s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=false;if(!l){if(a&&targetMoveDistance<c*o){if(!pastFirstInvertThresh&&(lastDirection===1?s>u+c*i/2:s<d-c*i/2)){pastFirstInvertThresh=true}if(!pastFirstInvertThresh){if(lastDirection===1?s<u+targetMoveDistance:s>d-targetMoveDistance){return-lastDirection}}else{f=true}}else{if(s>u+c*(1-o)/2&&s<d-c*(1-o)/2){return _getInsertDirection(t)}}}f=f||l;if(f){if(s<u+c*i/2||s>d-c*i/2){return s>u+c/2?1:-1}}return 0}function _getInsertDirection(e){if(index(dragEl)<index(e)){return 1}else{return-1}}function _generateId(e){var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;while(n--){r+=t.charCodeAt(n)}return r.toString(36)}function _saveInputCheckedState(e){savedInputChecked.length=0;var t=e.getElementsByTagName("input");var n=t.length;while(n--){var r=t[n];r.checked&&savedInputChecked.push(r)}}function _nextTick(e){return setTimeout(e,0)}function _cancelNextTick(e){return clearTimeout(e)}if(documentExists){on(document,"touchmove",(function(e){if((Sortable.active||awaitingDragStarted)&&e.cancelable){e.preventDefault()}}))}Sortable.utils={on:on,off:off,css:css,find:find,is:function e(t,n){return!!closest(t,n,t,false)},extend:extend,throttle:throttle,closest:closest,toggleClass:toggleClass,clone:clone,index:index,nextTick:_nextTick,cancelNextTick:_cancelNextTick,detectDirection:_detectDirection,getChild:getChild};Sortable.get=function(e){return e[expando]};Sortable.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++){t[n]=arguments[n]}if(t[0].constructor===Array)t=t[0];t.forEach((function(e){if(!e.prototype||!e.prototype.constructor){throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(e))}if(e.utils)Sortable.utils=_objectSpread2(_objectSpread2({},Sortable.utils),e.utils);PluginManager.mount(e)}))};Sortable.create=function(e,t){return new Sortable(e,t)};Sortable.version=version;var autoScrolls=[],scrollEl,scrollRootEl,scrolling=false,lastAutoScrollX,lastAutoScrollY,touchEvt$1,pointerElemChangedInterval;function AutoScrollPlugin(){function e(){this.defaults={scroll:true,forceAutoScrollFallback:false,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:true};for(var e in this){if(e.charAt(0)==="_"&&typeof this[e]==="function"){this[e]=this[e].bind(this)}}}e.prototype={dragStarted:function e(t){var n=t.originalEvent;if(this.sortable.nativeDraggable){on(document,"dragover",this._handleAutoScroll)}else{if(this.options.supportPointer){on(document,"pointermove",this._handleFallbackAutoScroll)}else if(n.touches){on(document,"touchmove",this._handleFallbackAutoScroll)}else{on(document,"mousemove",this._handleFallbackAutoScroll)}}},dragOverCompleted:function e(t){var n=t.originalEvent;if(!this.options.dragOverBubble&&!n.rootEl){this._handleAutoScroll(n)}},drop:function e(){if(this.sortable.nativeDraggable){off(document,"dragover",this._handleAutoScroll)}else{off(document,"pointermove",this._handleFallbackAutoScroll);off(document,"touchmove",this._handleFallbackAutoScroll);off(document,"mousemove",this._handleFallbackAutoScroll)}clearPointerElemChangedInterval();clearAutoScrolls();cancelThrottle()},nulling:function e(){touchEvt$1=scrollRootEl=scrollEl=scrolling=pointerElemChangedInterval=lastAutoScrollX=lastAutoScrollY=null;autoScrolls.length=0},_handleFallbackAutoScroll:function e(t){this._handleAutoScroll(t,true)},_handleAutoScroll:function e(t,n){var r=this;var o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,l=document.elementFromPoint(o,i);touchEvt$1=t;if(n||this.options.forceAutoScrollFallback||Edge||IE11OrLess||Safari){autoScroll(t,this.options,l,n);var a=getParentAutoScrollElement(l,true);if(scrolling&&(!pointerElemChangedInterval||o!==lastAutoScrollX||i!==lastAutoScrollY)){pointerElemChangedInterval&&clearPointerElemChangedInterval();pointerElemChangedInterval=setInterval((function(){var e=getParentAutoScrollElement(document.elementFromPoint(o,i),true);if(e!==a){a=e;clearAutoScrolls()}autoScroll(t,r.options,e,n)}),10);lastAutoScrollX=o;lastAutoScrollY=i}}else{if(!this.options.bubbleScroll||getParentAutoScrollElement(l,true)===getWindowScrollingElement()){clearAutoScrolls();return}autoScroll(t,this.options,getParentAutoScrollElement(l,false),false)}}};return _extends(e,{pluginName:"scroll",initializeByDefault:true})}function clearAutoScrolls(){autoScrolls.forEach((function(e){clearInterval(e.pid)}));autoScrolls=[]}function clearPointerElemChangedInterval(){clearInterval(pointerElemChangedInterval)}var autoScroll=throttle((function(e,t,n,r){if(!t.scroll)return;var o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,l=t.scrollSensitivity,a=t.scrollSpeed,s=getWindowScrollingElement();var c=false,u;if(scrollRootEl!==n){scrollRootEl=n;clearAutoScrolls();scrollEl=t.scroll;u=t.scrollFn;if(scrollEl===true){scrollEl=getParentAutoScrollElement(n,true)}}var d=0;var f=scrollEl;do{var h=f,g=getRect(h),p=g.top,m=g.bottom,v=g.left,E=g.right,b=g.width,S=g.height,w=void 0,y=void 0,D=h.scrollWidth,_=h.scrollHeight,x=css(h),C=h.scrollLeft,I=h.scrollTop;if(h===s){w=b<D&&(x.overflowX==="auto"||x.overflowX==="scroll"||x.overflowX==="visible");y=S<_&&(x.overflowY==="auto"||x.overflowY==="scroll"||x.overflowY==="visible")}else{w=b<D&&(x.overflowX==="auto"||x.overflowX==="scroll");y=S<_&&(x.overflowY==="auto"||x.overflowY==="scroll")}var A=w&&(Math.abs(E-o)<=l&&C+b<D)-(Math.abs(v-o)<=l&&!!C);var T=y&&(Math.abs(m-i)<=l&&I+S<_)-(Math.abs(p-i)<=l&&!!I);if(!autoScrolls[d]){for(var O=0;O<=d;O++){if(!autoScrolls[O]){autoScrolls[O]={}}}}if(autoScrolls[d].vx!=A||autoScrolls[d].vy!=T||autoScrolls[d].el!==h){autoScrolls[d].el=h;autoScrolls[d].vx=A;autoScrolls[d].vy=T;clearInterval(autoScrolls[d].pid);if(A!=0||T!=0){c=true;autoScrolls[d].pid=setInterval(function(){if(r&&this.layer===0){Sortable.active._onTouchMove(touchEvt$1)}var t=autoScrolls[this.layer].vy?autoScrolls[this.layer].vy*a:0;var n=autoScrolls[this.layer].vx?autoScrolls[this.layer].vx*a:0;if(typeof u==="function"){if(u.call(Sortable.dragged.parentNode[expando],n,t,e,touchEvt$1,autoScrolls[this.layer].el)!=="continue"){return}}scrollBy(autoScrolls[this.layer].el,n,t)}.bind({layer:d}),24)}}d++}while(t.bubbleScroll&&f!==s&&(f=getParentAutoScrollElement(f,false)));scrolling=c}),30);var drop=function e(t){var n=t.originalEvent,r=t.putSortable,o=t.dragEl,i=t.activeSortable,l=t.dispatchSortableEvent,a=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(!n)return;var c=r||i;a();var u=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n;var d=document.elementFromPoint(u.clientX,u.clientY);s();if(c&&!c.el.contains(d)){l("spill");this.onSpill({dragEl:o,putSortable:r})}};function Revert(){}Revert.prototype={startIndex:null,dragStart:function e(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function e(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState();if(r){r.captureAnimationState()}var o=getChild(this.sortable.el,this.startIndex,this.options);if(o){this.sortable.el.insertBefore(n,o)}else{this.sortable.el.appendChild(n)}this.sortable.animateAll();if(r){r.animateAll()}},drop:drop};_extends(Revert,{pluginName:"revertOnSpill"});function Remove(){}Remove.prototype={onSpill:function e(t){var n=t.dragEl,r=t.putSortable;var o=r||this.sortable;o.captureAnimationState();n.parentNode&&n.parentNode.removeChild(n);o.animateAll()},drop:drop};_extends(Remove,{pluginName:"removeOnSpill"});var lastSwapEl;function SwapPlugin(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}e.prototype={dragStart:function e(t){var n=t.dragEl;lastSwapEl=n},dragOverValid:function e(t){var n=t.completed,r=t.target,o=t.onMove,i=t.activeSortable,l=t.changed,a=t.cancel;if(!i.options.swap)return;var s=this.sortable.el,c=this.options;if(r&&r!==s){var u=lastSwapEl;if(o(r)!==false){toggleClass(r,c.swapClass,true);lastSwapEl=r}else{lastSwapEl=null}if(u&&u!==lastSwapEl){toggleClass(u,c.swapClass,false)}}l();n(true);a()},drop:function e(t){var n=t.activeSortable,r=t.putSortable,o=t.dragEl;var i=r||this.sortable;var l=this.options;lastSwapEl&&toggleClass(lastSwapEl,l.swapClass,false);if(lastSwapEl&&(l.swap||r&&r.options.swap)){if(o!==lastSwapEl){i.captureAnimationState();if(i!==n)n.captureAnimationState();swapNodes(o,lastSwapEl);i.animateAll();if(i!==n)n.animateAll()}}},nulling:function e(){lastSwapEl=null}};return _extends(e,{pluginName:"swap",eventProperties:function e(){return{swapItem:lastSwapEl}}})}function swapNodes(e,t){var n=e.parentNode,r=t.parentNode,o,i;if(!n||!r||n.isEqualNode(t)||r.isEqualNode(e))return;o=index(e);i=index(t);if(n.isEqualNode(r)&&o<i){i++}n.insertBefore(t,n.children[o]);r.insertBefore(e,r.children[i])}var multiDragElements=[],multiDragClones=[],lastMultiDragSelect,multiDragSortable,initialFolding=false,folding=false,dragStarted=false,dragEl$1,clonesFromRect,clonesHidden;function MultiDragPlugin(){function e(e){for(var t in this){if(t.charAt(0)==="_"&&typeof this[t]==="function"){this[t]=this[t].bind(this)}}if(!e.options.avoidImplicitDeselect){if(e.options.supportPointer){on(document,"pointerup",this._deselectMultiDrag)}else{on(document,"mouseup",this._deselectMultiDrag);on(document,"touchend",this._deselectMultiDrag)}}on(document,"keydown",this._checkKeyDown);on(document,"keyup",this._checkKeyUp);this.defaults={selectedClass:"sortable-selected",multiDragKey:null,avoidImplicitDeselect:false,setData:function t(n,r){var o="";if(multiDragElements.length&&multiDragSortable===e){multiDragElements.forEach((function(e,t){o+=(!t?"":", ")+e.textContent}))}else{o=r.textContent}n.setData("Text",o)}}}e.prototype={multiDragKeyDown:false,isMultiDrag:false,delayStartGlobal:function e(t){var n=t.dragEl;dragEl$1=n},delayEnded:function e(){this.isMultiDrag=~multiDragElements.indexOf(dragEl$1)},setupClone:function e(t){var n=t.sortable,r=t.cancel;if(!this.isMultiDrag)return;for(var o=0;o<multiDragElements.length;o++){multiDragClones.push(clone(multiDragElements[o]));multiDragClones[o].sortableIndex=multiDragElements[o].sortableIndex;multiDragClones[o].draggable=false;multiDragClones[o].style["will-change"]="";toggleClass(multiDragClones[o],this.options.selectedClass,false);multiDragElements[o]===dragEl$1&&toggleClass(multiDragClones[o],this.options.chosenClass,false)}n._hideClone();r()},clone:function e(t){var n=t.sortable,r=t.rootEl,o=t.dispatchSortableEvent,i=t.cancel;if(!this.isMultiDrag)return;if(!this.options.removeCloneOnHide){if(multiDragElements.length&&multiDragSortable===n){insertMultiDragClones(true,r);o("clone");i()}}},showClone:function e(t){var n=t.cloneNowShown,r=t.rootEl,o=t.cancel;if(!this.isMultiDrag)return;insertMultiDragClones(false,r);multiDragClones.forEach((function(e){css(e,"display","")}));n();clonesHidden=false;o()},hideClone:function e(t){var n=this;var r=t.cloneNowHidden,o=t.cancel;if(!this.isMultiDrag)return;multiDragClones.forEach((function(e){css(e,"display","none");if(n.options.removeCloneOnHide&&e.parentNode){e.parentNode.removeChild(e)}}));r();clonesHidden=true;o()},dragStartGlobal:function e(t){if(!this.isMultiDrag&&multiDragSortable){multiDragSortable.multiDrag._deselectMultiDrag()}multiDragElements.forEach((function(e){e.sortableIndex=index(e)}));multiDragElements=multiDragElements.sort((function(e,t){return e.sortableIndex-t.sortableIndex}));dragStarted=true},dragStarted:function e(t){var n=this;var r=t.sortable;if(!this.isMultiDrag)return;if(this.options.sort){r.captureAnimationState();if(this.options.animation){multiDragElements.forEach((function(e){if(e===dragEl$1)return;css(e,"position","absolute")}));var o=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(e){if(e===dragEl$1)return;setRect(e,o)}));folding=true;initialFolding=true}}r.animateAll((function(){folding=false;initialFolding=false;if(n.options.animation){multiDragElements.forEach((function(e){unsetRect(e)}))}if(n.options.sort){removeMultiDragElements()}}))},dragOver:function e(t){var n=t.target,r=t.completed,o=t.cancel;if(folding&&~multiDragElements.indexOf(n)){r(false);o()}},revert:function e(t){var n=t.fromSortable,r=t.rootEl,o=t.sortable,i=t.dragRect;if(multiDragElements.length>1){multiDragElements.forEach((function(e){o.addAnimationState({target:e,rect:folding?getRect(e):i});unsetRect(e);e.fromRect=i;n.removeAnimationState(e)}));folding=false;insertMultiDragElements(!this.options.removeCloneOnHide,r)}},dragOverCompleted:function e(t){var n=t.sortable,r=t.isOwner,o=t.insertion,i=t.activeSortable,l=t.parentEl,a=t.putSortable;var s=this.options;if(o){if(r){i._hideClone()}initialFolding=false;if(s.animation&&multiDragElements.length>1&&(folding||!r&&!i.options.sort&&!a)){var c=getRect(dragEl$1,false,true,true);multiDragElements.forEach((function(e){if(e===dragEl$1)return;setRect(e,c);l.appendChild(e)}));folding=true}if(!r){if(!folding){removeMultiDragElements()}if(multiDragElements.length>1){var u=clonesHidden;i._showClone(n);if(i.options.animation&&!clonesHidden&&u){multiDragClones.forEach((function(e){i.addAnimationState({target:e,rect:clonesFromRect});e.fromRect=clonesFromRect;e.thisAnimationDuration=null}))}}else{i._showClone(n)}}}},dragOverAnimationCapture:function e(t){var n=t.dragRect,r=t.isOwner,o=t.activeSortable;multiDragElements.forEach((function(e){e.thisAnimationDuration=null}));if(o.options.animation&&!r&&o.multiDrag.isMultiDrag){clonesFromRect=_extends({},n);var i=matrix(dragEl$1,true);clonesFromRect.top-=i.f;clonesFromRect.left-=i.e}},dragOverAnimationComplete:function e(){if(folding){folding=false;removeMultiDragElements()}},drop:function e(t){var n=t.originalEvent,r=t.rootEl,o=t.parentEl,i=t.sortable,l=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable;var c=s||this.sortable;if(!n)return;var u=this.options,d=o.children;if(!dragStarted){if(u.multiDragKey&&!this.multiDragKeyDown){this._deselectMultiDrag()}toggleClass(dragEl$1,u.selectedClass,!~multiDragElements.indexOf(dragEl$1));if(!~multiDragElements.indexOf(dragEl$1)){multiDragElements.push(dragEl$1);dispatchEvent({sortable:i,rootEl:r,name:"select",targetEl:dragEl$1,originalEvent:n});if(n.shiftKey&&lastMultiDragSelect&&i.el.contains(lastMultiDragSelect)){var f=index(lastMultiDragSelect),h=index(dragEl$1);if(~f&&~h&&f!==h){var g,p;if(h>f){p=f;g=h}else{p=h;g=f+1}for(;p<g;p++){if(~multiDragElements.indexOf(d[p]))continue;toggleClass(d[p],u.selectedClass,true);multiDragElements.push(d[p]);dispatchEvent({sortable:i,rootEl:r,name:"select",targetEl:d[p],originalEvent:n})}}}else{lastMultiDragSelect=dragEl$1}multiDragSortable=c}else{multiDragElements.splice(multiDragElements.indexOf(dragEl$1),1);lastMultiDragSelect=null;dispatchEvent({sortable:i,rootEl:r,name:"deselect",targetEl:dragEl$1,originalEvent:n})}}if(dragStarted&&this.isMultiDrag){folding=false;if((o[expando].options.sort||o!==r)&&multiDragElements.length>1){var m=getRect(dragEl$1),v=index(dragEl$1,":not(."+this.options.selectedClass+")");if(!initialFolding&&u.animation)dragEl$1.thisAnimationDuration=null;c.captureAnimationState();if(!initialFolding){if(u.animation){dragEl$1.fromRect=m;multiDragElements.forEach((function(e){e.thisAnimationDuration=null;if(e!==dragEl$1){var t=folding?getRect(e):m;e.fromRect=t;c.addAnimationState({target:e,rect:t})}}))}removeMultiDragElements();multiDragElements.forEach((function(e){if(d[v]){o.insertBefore(e,d[v])}else{o.appendChild(e)}v++}));if(a===index(dragEl$1)){var E=false;multiDragElements.forEach((function(e){if(e.sortableIndex!==index(e)){E=true;return}}));if(E){l("update")}}}multiDragElements.forEach((function(e){unsetRect(e)}));c.animateAll()}multiDragSortable=c}if(r===o||s&&s.lastPutMode!=="clone"){multiDragClones.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))}},nullingGlobal:function e(){this.isMultiDrag=dragStarted=false;multiDragClones.length=0},destroyGlobal:function e(){this._deselectMultiDrag();off(document,"pointerup",this._deselectMultiDrag);off(document,"mouseup",this._deselectMultiDrag);off(document,"touchend",this._deselectMultiDrag);off(document,"keydown",this._checkKeyDown);off(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function e(t){if(typeof dragStarted!=="undefined"&&dragStarted)return;if(multiDragSortable!==this.sortable)return;if(t&&closest(t.target,this.options.draggable,this.sortable.el,false))return;if(t&&t.button!==0)return;while(multiDragElements.length){var n=multiDragElements[0];toggleClass(n,this.options.selectedClass,false);multiDragElements.shift();dispatchEvent({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:n,originalEvent:t})}},_checkKeyDown:function e(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=true}},_checkKeyUp:function e(t){if(t.key===this.options.multiDragKey){this.multiDragKeyDown=false}}};return _extends(e,{pluginName:"multiDrag",utils:{select:function e(t){var n=t.parentNode[expando];if(!n||!n.options.multiDrag||~multiDragElements.indexOf(t))return;if(multiDragSortable&&multiDragSortable!==n){multiDragSortable.multiDrag._deselectMultiDrag();multiDragSortable=n}toggleClass(t,n.options.selectedClass,true);multiDragElements.push(t)},deselect:function e(t){var n=t.parentNode[expando],r=multiDragElements.indexOf(t);if(!n||!n.options.multiDrag||!~r)return;toggleClass(t,n.options.selectedClass,false);multiDragElements.splice(r,1)}},eventProperties:function e(){var t=this;var n=[],r=[];multiDragElements.forEach((function(e){n.push({multiDragElement:e,index:e.sortableIndex});var o;if(folding&&e!==dragEl$1){o=-1}else if(folding){o=index(e,":not(."+t.options.selectedClass+")")}else{o=index(e)}r.push({multiDragElement:e,index:o})}));return{items:_toConsumableArray(multiDragElements),clones:[].concat(multiDragClones),oldIndicies:n,newIndicies:r}},optionListeners:{multiDragKey:function e(t){t=t.toLowerCase();if(t==="ctrl"){t="Control"}else if(t.length>1){t=t.charAt(0).toUpperCase()+t.substr(1)}return t}}})}function insertMultiDragElements(e,t){multiDragElements.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];if(o){t.insertBefore(n,o)}else{t.appendChild(n)}}))}function insertMultiDragClones(e,t){multiDragClones.forEach((function(n,r){var o=t.children[n.sortableIndex+(e?Number(r):0)];if(o){t.insertBefore(n,o)}else{t.appendChild(n)}}))}function removeMultiDragElements(){multiDragElements.forEach((function(e){if(e===dragEl$1)return;e.parentNode&&e.parentNode.removeChild(e)}))}Sortable.mount(new AutoScrollPlugin);Sortable.mount(Remove,Revert);Sortable.mount(new SwapPlugin);Sortable.mount(new MultiDragPlugin);var stzhSortableCss='.sc-stzh-sortable-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sortable-h{display:none}.sc-stzh-sortable-h *.sc-stzh-sortable,.sc-stzh-sortable-h *.sc-stzh-sortable::before,.sc-stzh-sortable-h *.sc-stzh-sortable::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-sortable-h{--cursor:grab;--grabbing-cursor:grabbing;--unselected-item-opacity:0.6;--ghost-item-background:var(--stzh-color-grey5);--ghost-item-box-shadow:inset 0 0 0.5rem rgba(0, 0, 0, 0.32)}[disabled].sc-stzh-sortable-h{--cursor:inherit}.sc-stzh-sortable-h[disabled] .sc-stzh-sortable-s *.is-sortable-item{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item{position:relative;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:var(--cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-chosen,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost,.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-selected{cursor:var(--grabbing-cursor)}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-drag{opacity:1 !important}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost{z-index:0}.sc-stzh-sortable-h .sc-stzh-sortable-s *.is-sortable-item.is-ghost::after{z-index:99;content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:var(--ghost-item-background);-webkit-box-shadow:var(--ghost-item-box-shadow);box-shadow:var(--ghost-item-box-shadow)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item{opacity:var(--unselected-item-opacity)}.sc-stzh-sortable-h .sc-stzh-sortable-s>*.has-item-selected>*.is-sortable-item.is-selected{opacity:1}.stzh-sortable__description.sc-stzh-sortable,.stzh-sortable__aria-live.sc-stzh-sortable{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}';var CLASS_ITEM="is-sortable-item";var CLASS_GHOST="is-ghost";var CLASS_SELECTED="is-selected";var CLASS_CHOSEN="is-chosen";var CLASS_DRAG="is-drag";var CLASS_PARENT_SELECTED="has-item-selected";var sortableCounter=0;var StzhSortable=function(){function e(e){var t=this;registerInstance(this,e);this.stzhUpdate=createEvent(this,"stzhUpdate",7);this.stzhDisable=createEvent(this,"stzhDisable",7);this.selectedItem=null;this.resetItemOnBlur=false;this.init=function(){if(!t.getContainer()){return}Array.from(t.getContainer().children).forEach((function(e){e.classList.add(CLASS_ITEM);e.addEventListener("blur",t.onBlur);e.addEventListener("keydown",t.onKeydown);e.setAttribute("tabindex","0");e.setAttribute("aria-describedby","".concat(t.sortableId,"-description"))}))};this.updated=function(e){return __awaiter(t,void 0,void 0,(function(){var t,n,r,o,i;var l;return __generator(this,(function(a){switch(a.label){case 0:if(e){t=e.newIndex;n=e.oldIndex;r=e.item}else{t=this.getIndexOfSelectedItem();n=this.lastIndex;r=this.selectedItem}if(!(t!==n))return[3,2];i=(o=this.stzhUpdate).emit;l={component:"stzh-sortable"};return[4,this.toArray()];case 1:i.apply(o,[(l.data=a.sent(),l.item=r,l.newIndex=t,l.oldIndex=n,l)]);a.label=2;case 2:return[2]}}))}))};this.onKeydown=function(e){var n=e.currentTarget;var r=e.target;if(!t.getContainer()||t.disabled){return}var o=r.matches(t._filterElements.join(", "));if(e.key===" "&&!o){e.preventDefault();if(!t.selectedItem){t.selectedItem=n;t.selectedItem.parentElement.classList.add(CLASS_PARENT_SELECTED);t.selectedItem.classList.add(CLASS_SELECTED);t.lastIndex=t.getIndexOfSelectedItem();t.resetItemOnBlur=true;t.updateAriaLive(t.localization.started)}else{t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}}else if(e.key==="Tab"&&t.selectedItem&&t.selectedItem===e.currentTarget){e.preventDefault()}else if(e.key==="Escape"&&t.selectedItem){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.canceled);t.resetActiveItem(true)}else if(e.key==="ArrowUp"){if(t.selectedItem){t.moveItem(t.selectedItem,"up")}else{t.focusItem(n.previousElementSibling)}}else if(e.key==="ArrowDown"){if(t.selectedItem){t.moveItem(t.selectedItem,"down")}else{t.focusItem(n.nextElementSibling)}}};this.onBlur=function(){if(t.resetItemOnBlur){t.resetItemOnBlur=false;t.updateAriaLive(t.localization.dropped);t.updated();t.resetActiveItem()}};this.localization=undefined;this.disabled=false;this.dataIdAttribute="data-id";this.container=function(){var e;return(e=t.containerElement)===null||e===void 0?void 0:e.firstElementChild};this.ghostClone=function(e){var t=cloneElement(e)[0];return t};this.filterElements=["[data-stzh-sortable-filtered]","[sortable-disabled]","button","a[href]","input","select","textarea","label","iframe","details","area","stzh-sortable"]}e.prototype.toArray=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.sortable.toArray()]}))}))};e.prototype.sort=function(e,t){if(t===void 0){t=true}return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,this.sortable.sort(e,t)]}))}))};e.prototype.moveItem=function(e,t){return __awaiter(this,void 0,void 0,(function(){var n,r,o,i;var l;return __generator(this,(function(a){switch(a.label){case 0:if(!e||!e.nextElementSibling&&t==="down"||!e.previousElementSibling&&t==="up"){return[2]}this.resetItemOnBlur=false;if(t==="up"){e.previousElementSibling.before(e)}else if(t==="down"){e.nextElementSibling.after(e)}this.updateAriaLive(this.localization.moved,e);this.focusItem(e);r=Array.from((n=e.parentElement)===null||n===void 0?void 0:n.children).indexOf(e);i=(o=this.stzhUpdate).emit;l={component:"stzh-sortable"};return[4,this.toArray()];case 1:i.apply(o,[(l.data=a.sent(),l.item=e,l.newIndex=r,l.oldIndex=r+(t==="up"?1:-1),l)]);this.resetItemOnBlur=true;return[2]}}))}))};e.prototype.disabledWatcher=function(){this.stzhDisable.emit({component:"stzh-sortable",disabled:this.disabled})};e.prototype.filterElementsWatcher=function(e){if(typeof e==="string"){this._filterElements=JSON.parse(e)}else{this._filterElements=e}};e.prototype.getContainer=function(){return typeof this.container==="function"?this.container():this.container};e.prototype.updateAriaLive=function(e,t){if(t===void 0){t=this.selectedItem}if(!this.getContainer()){return}if(t){var n=t.getAttribute("aria-label")||"";var r=this.getIndexOfSelectedItem(t);e=e.replace("{title}",n).replace("{current}",(r+1).toString())}var o=this.getContainer().children.length;e=e.replace("{total}",o.toString());this.ariaLiveElement.textContent=e};e.prototype.getIndexOfSelectedItem=function(e){if(e===void 0){e=this.selectedItem}if(e){return Array.from(e.parentElement.children).indexOf(e)}};e.prototype.resetActiveItem=function(e){if(e===void 0){e=false}if(!this.selectedItem){return}var t=this.getIndexOfSelectedItem();var n=this.selectedItem.parentElement;if(e&&this.lastIndex!==t){if(this.lastIndex>t){n.children[this.lastIndex].after(this.selectedItem)}else{n.children[this.lastIndex].before(this.selectedItem)}this.selectedItem.focus()}n.classList.remove(CLASS_PARENT_SELECTED);this.selectedItem.classList.remove(CLASS_SELECTED);this.selectedItem=null;this.lastIndex=null};e.prototype.focusItem=function(e){if(!e){return}e.focus();var t=document.querySelector("stzh-flyingfocus");if(t){t.reposition()}scrollIntoView(e,{scrollMode:"if-needed",block:"nearest",inline:"nearest"})};e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:this.sortableId="stzh-sortable-".concat(sortableCounter++);this.filterElementsWatcher(this.filterElements);if(!!this.localization)return[3,2];e=this;return[4,fetchTranslations(this.element,"sortable")];case 1:e.localization=t.sent();t.label=2;case 2:return[2]}}))}))};e.prototype.componentWillUpdate=function(){if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.componentDidRender=function(){if(this.sortable){return}this.sortable=new Sortable(this.getContainer(),{animation:150,filter:this._filterElements.join(", "),ghostClass:CLASS_GHOST,chosenClass:CLASS_CHOSEN,dragClass:CLASS_DRAG,dataIdAttr:this.dataIdAttribute,preventOnFilter:false,forceFallback:true,delay:200,delayOnTouchOnly:true,disabled:this.disabled,ghostClone:this.ghostClone,onUpdate:this.updated})};e.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){this.observer.disconnect();if(this.sortable){this.sortable.destroy();this.sortable=null}};e.prototype.render=function(){var e=this;var t={"stzh-sortable":true,"stzh-sortable--disabled":this.disabled};return h(Host,null,h("div",{class:t},h("div",{id:"".concat(this.sortableId,"-description"),class:"stzh-sortable__description"},this.localization.description),h("div",{ref:function(t){return e.ariaLiveElement=t},"aria-live":"assertive",class:"stzh-sortable__aria-live"}),h("div",{ref:function(t){return e.containerElement=t},class:"stzh-sortable__container"},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledWatcher"],filterElements:["filterElementsWatcher"]}},enumerable:false,configurable:true});return e}();StzhSortable.style=stzhSortableCss;export{StzhSortable as stzh_sortable};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-84f71a43.js";var stzhStatusCss=".sc-stzh-status-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-status-h{display:none}.sc-stzh-status-h *.sc-stzh-status,.sc-stzh-status-h *.sc-stzh-status::before,.sc-stzh-status-h *.sc-stzh-status::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-status-h{--color:var(--stzh-base-color)}[type=success].sc-stzh-status-h{--color:var(--stzh-color-truegreen)}[type=warning].sc-stzh-status-h{--color:var(--stzh-color-warning)}[type=error].sc-stzh-status-h{--color:var(--stzh-color-error)}[type=info].sc-stzh-status-h{--color:var(--stzh-color-zueriblue)}.stzh-status.sc-stzh-status{min-width:10rem;color:var(--color)}.stzh-status__dot.sc-stzh-status{border-radius:50%;width:0.75rem;height:0.75rem;background-color:currentColor;margin-right:var(--stzh-space-xxsmall)}.stzh-status__bar.sc-stzh-status{display:block;height:0.25rem;border-radius:0.75rem;background-color:var(--stzh-color-grey13);margin-top:var(--stzh-space-xxsmall)}.stzh-status__bar-inner.sc-stzh-status{display:block;height:100%;width:0;border-radius:0.75rem;background:currentColor}.stzh-status__text.sc-stzh-status{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var StzhStatus=function(){function t(t){registerInstance(this,t);this.percent=0;this.withLoadingbar=false;this.label="";this.type="default"}t.prototype.render=function(){var t;var s=(t={"stzh-status":true},t["stzh-status--type-".concat(this.type)]=!!this.type,t);return h(Host,null,h("div",{class:s},h("div",{class:"stzh-status__text"},h("div",{class:"stzh-status__dot"}),this.label&&h("div",{class:"stzh-status__label"},this.label)),this.withLoadingbar&&h("div",{class:"stzh-status__bar"},h("div",{class:"stzh-status__bar-inner",style:{width:"".concat(this.percent,"%")}}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhStatus.style=stzhStatusCss;export{StzhStatus as stzh_status};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-2915b467.js";var stzhStatusCss=".sc-stzh-status-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-status-h{display:none}.sc-stzh-status-h *.sc-stzh-status,.sc-stzh-status-h *.sc-stzh-status::before,.sc-stzh-status-h *.sc-stzh-status::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-status-h{--color:var(--stzh-base-color)}[type=success].sc-stzh-status-h{--color:var(--stzh-color-truegreen)}[type=warning].sc-stzh-status-h{--color:var(--stzh-color-warning)}[type=error].sc-stzh-status-h{--color:var(--stzh-color-error)}[type=info].sc-stzh-status-h{--color:var(--stzh-color-zueriblue)}.stzh-status.sc-stzh-status{min-width:10rem;color:var(--color)}.stzh-status__dot.sc-stzh-status{border-radius:50%;width:0.75rem;height:0.75rem;background-color:currentColor;margin-right:var(--stzh-space-xxsmall)}.stzh-status__bar.sc-stzh-status{display:block;height:0.25rem;border-radius:0.75rem;background-color:var(--stzh-color-grey13);margin-top:var(--stzh-space-xxsmall)}.stzh-status__bar-inner.sc-stzh-status{display:block;height:100%;width:0;border-radius:0.75rem;background:currentColor}.stzh-status__text.sc-stzh-status{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";var StzhStatus=function(){function t(t){registerInstance(this,t);this.percent=0;this.withLoadingbar=false;this.label="";this.type="default"}t.prototype.render=function(){var t;var s=(t={"stzh-status":true},t["stzh-status--type-".concat(this.type)]=!!this.type,t);return h(Host,null,h("div",{class:s},h("div",{class:"stzh-status__text"},h("div",{class:"stzh-status__dot"}),this.label&&h("div",{class:"stzh-status__label"},this.label)),this.withLoadingbar&&h("div",{class:"stzh-status__bar"},h("div",{class:"stzh-status__bar-inner",style:{width:"".concat(this.percent,"%")}}))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhStatus.style=stzhStatusCss;export{StzhStatus as stzh_status};
@@ -0,0 +1 @@
1
+ import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-2915b467.js";var stzhStickyCss='.sc-stzh-sticky-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-sticky-h{display:none}.sc-stzh-sticky-h *.sc-stzh-sticky,.sc-stzh-sticky-h *.sc-stzh-sticky::before,.sc-stzh-sticky-h *.sc-stzh-sticky::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-sticky-h{--padding:var(--stzh-space-large) 0;position:-webkit-sticky;position:sticky;top:-0.0625rem;bottom:-0.0625rem}[disable-sticky-top].sc-stzh-sticky-h:not([disable-sticky-top=false]){top:auto}[disable-sticky-bottom].sc-stzh-sticky-h:not([disable-sticky-bottom=false]){bottom:auto}.stzh-sticky.sc-stzh-sticky{position:relative;padding:var(--padding)}.stzh-sticky.sc-stzh-sticky::before,.stzh-sticky.sc-stzh-sticky::after{content:"";pointer-events:none;display:block;position:absolute;left:0;width:100%;height:var(--stzh-space-xxlarge);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-sticky.sc-stzh-sticky::before{background:-webkit-gradient(linear, left bottom, left top, from(#FFFFFF), to(rgba(255, 255, 255, 0)));background:linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%);top:0;-webkit-transform:translateY(-100%);transform:translateY(-100%)}.stzh-sticky.sc-stzh-sticky::after{background:-webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 0)), to(#FFFFFF));background:linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, #FFFFFF 100%);bottom:0;-webkit-transform:translateY(100%);transform:translateY(100%)}.stzh-sticky--is-stuck.sc-stzh-sticky{background-color:var(--stzh-color-white)}.stzh-sticky--is-stuck-bottom.sc-stzh-sticky::before{opacity:1}.stzh-sticky--is-stuck-top.sc-stzh-sticky::after{opacity:1}';var StzhSticky=function(){function t(t){var s=this;registerInstance(this,t);this.stzhStuckTop=createEvent(this,"stzhStuckTop",7);this.stzhStuckBottom=createEvent(this,"stzhStuckBottom",7);this.observe=function(t){var i=t[0];s.updateStuck(i.target)};this.disableStickyTop=false;this.disableStickyBottom=false;this.isStuckTop=false;this.isStuckBottom=false}t.prototype.disableStickyWatcher=function(){var t=this;requestAnimationFrame((function(){requestAnimationFrame((function(){t.updateStuck(t.element)}))}))};t.prototype.isStuckTopWatcher=function(t){this.stzhStuckTop.emit({component:"stzh-sticky",sticky:t})};t.prototype.isStuckBottomWatcher=function(t){this.stzhStuckBottom.emit({component:"stzh-sticky",sticky:t})};t.prototype.updateStuck=function(t){var s=parseInt(getComputedStyle(t).top,10);var i=parseInt(getComputedStyle(t).bottom,10);var e=t.getBoundingClientRect();if(s){this.isStuckTop=e.top<0}else{this.isStuckTop=false}if(i){this.isStuckBottom=document.documentElement.clientHeight<e.bottom}else{this.isStuckBottom=false}};t.prototype.connectedCallback=function(){this.observer=new IntersectionObserver(this.observe,{threshold:[1]});this.observer.observe(this.element)};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t={"stzh-sticky":true,"stzh-sticky--is-stuck":this.isStuckTop||this.isStuckBottom,"stzh-sticky--is-stuck-top":this.isStuckTop,"stzh-sticky--is-stuck-bottom":this.isStuckBottom};return h(Host,{"is-stuck":this.isStuckTop||this.isStuckBottom,"is-stuck-top":this.isStuckTop,"is-stuck-bottom":this.isStuckBottom},h("div",{class:t},h("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{disableStickyTop:["disableStickyWatcher"],disableStickyBottom:["disableStickyWatcher"],isStuckTop:["isStuckTopWatcher"],isStuckBottom:["isStuckBottomWatcher"]}},enumerable:false,configurable:true});return t}();StzhSticky.style=stzhStickyCss;export{StzhSticky as stzh_sticky};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-84f71a43.js";import{s as setPropsIfNull}from"./utils-68a28fce.js";var stzhTableCss=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-table{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-table[hidden]{display:none}stzh-table *,stzh-table *::before,stzh-table *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-table{}.stzh-table__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-table__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1024px){.stzh-table__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-table__header{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-table__header{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}.stzh-table__heading{margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-table__heading{margin-bottom:0}}.stzh-table__header .stzh-table__search{width:var(--stzh-table-input-width)}@media screen and (min-width: 1024px){.stzh-table__header .stzh-table__search{margin-left:var(--stzh-space-large)}}.stzh-table__outer-wrapper{position:relative}.stzh-table__outer-wrapper::before,.stzh-table__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-table__outer-wrapper::before{left:0}.stzh-table__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-table__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-table__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-table__sort-button:hover,.stzh-table__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-table__sort-icon{opacity:0}.stzh-table table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-table thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-table tr:hover td,.stzh-table tr:hover th{background-color:var(--stzh-color-grey5)}.stzh-table td,.stzh-table th{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-table td a,.stzh-table th a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-table td a:hover,.stzh-table td a:focus,.stzh-table th a:hover,.stzh-table th a:focus{color:var(--stzh-link-hover-color)}.stzh-table td b,.stzh-table td strong,.stzh-table th b,.stzh-table th strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-table td i,.stzh-table td em,.stzh-table th i,.stzh-table th em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-table td.align-left,.stzh-table th.align-left{text-align:left}.stzh-table td.align-right,.stzh-table th.align-right{text-align:right}.stzh-table td.align-center,.stzh-table th.align-center{text-align:center}.stzh-table td.valign-auto,.stzh-table th.valign-auto{vertical-align:auto}.stzh-table td.valign-middle,.stzh-table th.valign-middle{vertical-align:middle}.stzh-table td.valign-bottom,.stzh-table th.valign-bottom{vertical-align:bottom}.stzh-table td.nowrap,.stzh-table th.nowrap{white-space:nowrap}.stzh-table td.is-sticky-left,.stzh-table td.is-sticky-right,.stzh-table th.is-sticky-left,.stzh-table th.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-table td.has-sticked,.stzh-table th.has-sticked{z-index:2}.stzh-table td.is-sticky-left,.stzh-table th.is-sticky-left{left:0}.stzh-table td.is-sticky-right,.stzh-table th.is-sticky-right{right:0}.stzh-table td.is-sticky-left::after,.stzh-table td.is-sticky-right::after,.stzh-table th.is-sticky-left::after,.stzh-table th.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-table td.is-sticky-left::after,.stzh-table th.is-sticky-left::after{right:0}.stzh-table td.is-sticky-right::after,.stzh-table th.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-table td.has-sticked.is-sticky-left::after,.stzh-table td.has-sticked.is-sticky-right::after,.stzh-table th.has-sticked.is-sticky-left::after,.stzh-table th.has-sticked.is-sticky-right::after{opacity:1}.stzh-table th{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-table th.is-sortable{padding:0}td.has-sorted .stzh-table__sort-icon,th.has-sorted .stzh-table__sort-icon{opacity:1}td.has-sorted-desc .stzh-table__sort-icon,th.has-sorted-desc .stzh-table__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-table.has-scroll-left-shadow .stzh-table__outer-wrapper::before,.stzh-table.has-scroll-right-shadow .stzh-table__outer-wrapper::after{opacity:1}';var CLASS_HAS_STICKED="has-sticked";var CLASS_IS_STICKY_LEFT="is-sticky-left";var CLASS_IS_STICKY_RIGHT="is-sticky-right";var StzhTable=function(){function t(t){var e=this;registerInstance(this,t);this.fixedLeft=null;this.fixedRight=null;this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[];this.updateCellClasses=function(){if(!e.tableWrapper){return}var t=Array.from(e.tableWrapper.querySelectorAll("tr"));t.forEach((function(t){var a=Array.from(t.children);a.forEach((function(t,a){t.classList.remove(CLASS_IS_STICKY_LEFT);t.classList.remove(CLASS_IS_STICKY_RIGHT);if(a===e.fixedLeft){t.classList.add(CLASS_IS_STICKY_LEFT)}if(a===e.fixedRight){t.classList.add(CLASS_IS_STICKY_RIGHT)}}))}))};this.updateScrollStates=function(){if(!e.tableWrapper){return}var t=e.tableWrapper.scrollLeft;var a=e.tableWrapper.scrollWidth;var r=e.tableWrapper.clientWidth;e.isScrollable=a>r;e.hasScrollLeft=t>0;e.hasScrollRight=t<a-r;var s=Array.from(e.tableWrapper.querySelectorAll("tr"));var i=s[0];if(!i){return}e.cellsStickyLeft=[];e.cellsStickyRight=[];var l=Array.from(i.children);l.forEach((function(a,s){var i=a.offsetLeft;var l=i+a.offsetWidth;if(e.hasScrollLeft&&s===e.fixedLeft&&Math.ceil(t)>=i){e.cellsStickyLeft.push(s)}if(e.hasScrollRight&&s===e.fixedRight&&Math.ceil(t)+r<=l){e.cellsStickyRight.push(s)}}));s.forEach((function(t){var a=Array.from(t.children);a.forEach((function(t,a){if(e.cellsStickyLeft.indexOf(a)>-1||e.cellsStickyRight.indexOf(a)>-1){t.classList.add(CLASS_HAS_STICKED)}else{t.classList.remove(CLASS_HAS_STICKED)}}))}))};this.init=function(){var t=e.element.querySelector('stzh-input[slot="search"], [slot="search"] stzh-input');if(t){setPropsIfNull(t,{size:"small"})}e.updateCellClasses();e.updateScrollStates()};this.handleScroll=function(){if(e.debounceScroll){window.cancelAnimationFrame(e.debounceScroll)}e.debounceScroll=requestAnimationFrame(e.updateScrollStates)}}t.prototype.fixedCellWatcher=function(){this.updateCellClasses();this.updateScrollStates()};t.prototype.handleResize=function(){this.updateScrollStates()};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t=this;var e={"stzh-table":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-table__header"},h("div",{class:"stzh-table__heading"},h("slot",{name:"heading"})),h("div",{class:"stzh-table__search"},h("slot",{name:"search"}))),h("div",{class:"stzh-table__outer-wrapper"},h("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-table__wrapper",onScroll:this.handleScroll},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{fixedLeft:["fixedCellWatcher"],fixedRight:["fixedCellWatcher"]}},enumerable:false,configurable:true});return t}();StzhTable.style=stzhTableCss;export{StzhTable as stzh_table};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-2915b467.js";import{s as setPropsIfNull}from"./utils-68a28fce.js";var stzhTableCss=':host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-table{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-table[hidden]{display:none}stzh-table *,stzh-table *::before,stzh-table *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-table{}.stzh-table__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-table__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-table__header{padding-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-table__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-table__header{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-table__header{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}.stzh-table__heading{margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-table__heading{margin-bottom:0}}.stzh-table__header .stzh-table__search{width:var(--stzh-table-input-width)}@media screen and (min-width: 1024px){.stzh-table__header .stzh-table__search{margin-left:var(--stzh-space-large)}}.stzh-table__outer-wrapper{position:relative}.stzh-table__outer-wrapper::before,.stzh-table__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-table__outer-wrapper::before{left:0}.stzh-table__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-table__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-table__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-table__sort-button:hover,.stzh-table__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-table__sort-icon{opacity:0}.stzh-table table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-table thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-table tr:hover td,.stzh-table tr:hover th{background-color:var(--stzh-color-grey5)}.stzh-table td,.stzh-table th{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-table td a,.stzh-table th a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-table td a:hover,.stzh-table td a:focus,.stzh-table th a:hover,.stzh-table th a:focus{color:var(--stzh-link-hover-color)}.stzh-table td b,.stzh-table td strong,.stzh-table th b,.stzh-table th strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-table td i,.stzh-table td em,.stzh-table th i,.stzh-table th em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-table td.align-left,.stzh-table th.align-left{text-align:left}.stzh-table td.align-right,.stzh-table th.align-right{text-align:right}.stzh-table td.align-center,.stzh-table th.align-center{text-align:center}.stzh-table td.valign-auto,.stzh-table th.valign-auto{vertical-align:auto}.stzh-table td.valign-middle,.stzh-table th.valign-middle{vertical-align:middle}.stzh-table td.valign-bottom,.stzh-table th.valign-bottom{vertical-align:bottom}.stzh-table td.nowrap,.stzh-table th.nowrap{white-space:nowrap}.stzh-table td.is-sticky-left,.stzh-table td.is-sticky-right,.stzh-table th.is-sticky-left,.stzh-table th.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-table td.has-sticked,.stzh-table th.has-sticked{z-index:2}.stzh-table td.is-sticky-left,.stzh-table th.is-sticky-left{left:0}.stzh-table td.is-sticky-right,.stzh-table th.is-sticky-right{right:0}.stzh-table td.is-sticky-left::after,.stzh-table td.is-sticky-right::after,.stzh-table th.is-sticky-left::after,.stzh-table th.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-table td.is-sticky-left::after,.stzh-table th.is-sticky-left::after{right:0}.stzh-table td.is-sticky-right::after,.stzh-table th.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-table td.has-sticked.is-sticky-left::after,.stzh-table td.has-sticked.is-sticky-right::after,.stzh-table th.has-sticked.is-sticky-left::after,.stzh-table th.has-sticked.is-sticky-right::after{opacity:1}.stzh-table th{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-table th.is-sortable{padding:0}td.has-sorted .stzh-table__sort-icon,th.has-sorted .stzh-table__sort-icon{opacity:1}td.has-sorted-desc .stzh-table__sort-icon,th.has-sorted-desc .stzh-table__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-table.has-scroll-left-shadow .stzh-table__outer-wrapper::before,.stzh-table.has-scroll-right-shadow .stzh-table__outer-wrapper::after{opacity:1}';var CLASS_HAS_STICKED="has-sticked";var CLASS_IS_STICKY_LEFT="is-sticky-left";var CLASS_IS_STICKY_RIGHT="is-sticky-right";var StzhTable=function(){function t(t){var e=this;registerInstance(this,t);this.updateCellClasses=function(){if(!e.tableWrapper){return}var t=Array.from(e.tableWrapper.querySelectorAll("tr"));t.forEach((function(t){var a=Array.from(t.children);a.forEach((function(t,a){t.classList.remove(CLASS_IS_STICKY_LEFT);t.classList.remove(CLASS_IS_STICKY_RIGHT);if(a===e.fixedLeft){t.classList.add(CLASS_IS_STICKY_LEFT)}if(a===e.fixedRight){t.classList.add(CLASS_IS_STICKY_RIGHT)}}))}))};this.updateScrollStates=function(){if(!e.tableWrapper){return}var t=e.tableWrapper.scrollLeft;var a=e.tableWrapper.scrollWidth;var r=e.tableWrapper.clientWidth;e.isScrollable=a>r;e.hasScrollLeft=t>0;e.hasScrollRight=t<a-r;var s=Array.from(e.tableWrapper.querySelectorAll("tr"));var i=s[0];if(!i){return}e.cellsStickyLeft=[];e.cellsStickyRight=[];var l=Array.from(i.children);l.forEach((function(a,s){var i=a.offsetLeft;var l=i+a.offsetWidth;if(e.hasScrollLeft&&s===e.fixedLeft&&Math.ceil(t)>=i){e.cellsStickyLeft.push(s)}if(e.hasScrollRight&&s===e.fixedRight&&Math.ceil(t)+r<=l){e.cellsStickyRight.push(s)}}));s.forEach((function(t){var a=Array.from(t.children);a.forEach((function(t,a){if(e.cellsStickyLeft.indexOf(a)>-1||e.cellsStickyRight.indexOf(a)>-1){t.classList.add(CLASS_HAS_STICKED)}else{t.classList.remove(CLASS_HAS_STICKED)}}))}))};this.init=function(){var t=e.element.querySelector('stzh-input[slot="search"], [slot="search"] stzh-input');if(t){setPropsIfNull(t,{size:"small"})}e.updateCellClasses();e.updateScrollStates()};this.handleScroll=function(){if(e.debounceScroll){window.cancelAnimationFrame(e.debounceScroll)}e.debounceScroll=requestAnimationFrame(e.updateScrollStates)};this.fixedLeft=null;this.fixedRight=null;this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[]}t.prototype.fixedCellWatcher=function(){this.updateCellClasses();this.updateScrollStates()};t.prototype.handleResize=function(){this.updateScrollStates()};t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t=this;var e={"stzh-table":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-table__header"},h("div",{class:"stzh-table__heading"},h("slot",{name:"heading"})),h("div",{class:"stzh-table__search"},h("slot",{name:"search"}))),h("div",{class:"stzh-table__outer-wrapper"},h("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-table__wrapper",onScroll:this.handleScroll},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{fixedLeft:["fixedCellWatcher"],fixedRight:["fixedCellWatcher"]}},enumerable:false,configurable:true});return t}();StzhTable.style=stzhTableCss;export{StzhTable as stzh_table};