@fewangsit/wangsvue 1.5.219-alpha.0 → 1.5.219-alpha.2

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 (598) hide show
  1. package/animation/index.es.js +54 -37
  2. package/assets/lottiejs/loading-page.es.js +14 -9
  3. package/assets/lottiejs/loading-plane.es.js +2 -2
  4. package/assets/lottiejs/loading-table.es.js +14 -9
  5. package/assets/lottiejs/no-data.es.js +14 -9
  6. package/backgroundimagecropper/index.es.js +61 -37
  7. package/badge/index.es.js +77 -67
  8. package/badgegroup/index.es.js +62 -50
  9. package/basecalendar/index.es.js +1258 -735
  10. package/basetree/index.es.js +213 -113
  11. package/breadcrumb/index.es.js +46 -38
  12. package/button/index.es.js +60 -54
  13. package/buttonbulkaction/index.es.js +168 -117
  14. package/buttoncopy/index.es.js +25 -22
  15. package/buttondownload/index.es.js +125 -76
  16. package/buttonfilter/index.es.js +21 -15
  17. package/buttonradio/index.es.js +91 -67
  18. package/buttonsearch/index.es.js +62 -46
  19. package/buttonselecttree/index.es.js +233 -172
  20. package/buttontoggle/index.es.js +8 -6
  21. package/calendar/index.es.js +113 -58
  22. package/card/index.es.js +44 -42
  23. package/checkbox/index.es.js +105 -74
  24. package/codesnippet/index.es.js +91 -71
  25. package/codesnippetadapter/index.es.js +25 -21
  26. package/columnlist/index.es.js +249 -171
  27. package/components.d.ts +0 -21
  28. package/config/defaultProps.es.js +9 -9
  29. package/config/index.es.js +11 -10
  30. package/config/locale.es.js +2 -2
  31. package/customcolumn/index.es.js +95 -78
  32. package/datatable/index.es.js +1071 -732
  33. package/dialog/index.es.js +54 -54
  34. package/dialogconfirm/index.es.js +90 -75
  35. package/dialogform/index.es.js +170 -133
  36. package/dialogselecttree/index.es.js +242 -194
  37. package/directives/focus.es.js +13 -8
  38. package/dropdown/index.es.js +250 -196
  39. package/editor/index.es.js +694 -498
  40. package/editorbutton/index.es.js +21 -19
  41. package/event-bus/index.es.js +3 -3
  42. package/event-bus/mitt.es.js +37 -20
  43. package/fieldwrapper/index.es.js +30 -25
  44. package/fileupload/index.es.js +230 -140
  45. package/filtercontainer/index.es.js +299 -222
  46. package/form/index.es.js +176 -126
  47. package/gallerypreview/index.es.js +138 -101
  48. package/icon/index.es.js +38 -36
  49. package/image/index.es.js +161 -108
  50. package/imagecompressor/index.es.js +616 -449
  51. package/imageinputinfo/index.es.js +26 -22
  52. package/inlinemessage/index.es.js +77 -65
  53. package/inputbadge/index.es.js +230 -156
  54. package/inputcurrency/index.es.js +146 -109
  55. package/inputemail/index.es.js +18 -16
  56. package/inputgroup/index.es.js +19 -16
  57. package/inputnumber/index.es.js +252 -182
  58. package/inputpassword/index.es.js +120 -94
  59. package/inputphonenumber/index.es.js +1017 -550
  60. package/inputrangenumber/index.es.js +129 -98
  61. package/inputtext/index.es.js +264 -189
  62. package/inputurl/index.es.js +31 -29
  63. package/invisiblefield/index.es.js +24 -16
  64. package/litedropdown/index.es.js +87 -81
  65. package/loading/index.es.js +21 -19
  66. package/loading-page-BXZ4fLOS.js +8 -0
  67. package/loading-page-BuLpsb_1.js +8 -0
  68. package/loading-page-CNqVBg__.js +4 -0
  69. package/loading-page-DbhhZih2.js +4 -0
  70. package/loading-page-DjfWXoOy.js +8 -0
  71. package/loading-page-S-KRY5zm.js +4 -0
  72. package/loading-plane-C1mi7Whv.js +4 -0
  73. package/loading-plane-CWq1hz_l.js +8 -0
  74. package/loading-table-B7LAXzAp.js +4 -0
  75. package/loading-table-BLmgKUsR.js +4 -0
  76. package/loading-table-CG7-cuhv.js +8 -0
  77. package/loading-table-CUPS49ta.js +4 -0
  78. package/loading-table-CuWWrTbv.js +8 -0
  79. package/loading-table-DbBzVwaZ.js +8 -0
  80. package/mentionlist/index.es.js +77 -44
  81. package/mentionsection/index.es.js +53 -43
  82. package/menu/index.es.js +65 -51
  83. package/menuitem/index.es.js +39 -37
  84. package/multirow/index.es.js +29 -28
  85. package/multiselect/index.es.js +184 -152
  86. package/no-data-B781skt3.js +4 -0
  87. package/no-data-CAksOnDl.js +4 -0
  88. package/no-data-DCsjBXQR.js +4 -0
  89. package/no-data-Dz0QOe7Q.js +8 -0
  90. package/no-data-_Huxiv9q.js +8 -0
  91. package/no-data-ybRQontJ.js +8 -0
  92. package/overlaypanel/index.es.js +49 -36
  93. package/package.json +1 -1
  94. package/paginator/index.es.js +36 -33
  95. package/plugins/WangsVue.es.js +63 -45
  96. package/plugins/formValidation.es.js +15 -11
  97. package/progressbar/index.es.js +39 -32
  98. package/quickfilter/index.es.js +94 -81
  99. package/stats.html +1 -1
  100. package/style.css +2 -2
  101. package/tabmenu/index.es.js +18 -16
  102. package/textarea/index.es.js +94 -72
  103. package/timeline/index.es.js +124 -102
  104. package/timelinecontentbytype/index.es.js +114 -92
  105. package/toast/index.es.js +67 -54
  106. package/toggleswitch/index.es.js +83 -66
  107. package/tree/index.es.js +306 -198
  108. package/treenode/index.es.js +464 -339
  109. package/treesearchinput/index.es.js +32 -26
  110. package/usergroup/index.es.js +83 -67
  111. package/username/index.es.js +99 -85
  112. package/utils/addAttachment.util.es.js +47 -21
  113. package/utils/baseToast.util.es.js +41 -33
  114. package/utils/convertJsonImage.util.es.js +24 -24
  115. package/utils/date.util.es.js +131 -106
  116. package/utils/exportToExcel.util.es.js +81 -47
  117. package/utils/filterOptions.util.es.js +8 -2
  118. package/utils/genPlaceholder.util.es.js +30 -16
  119. package/utils/getProjectPermission.util.es.js +15 -12
  120. package/utils/getSalesRole.util.es.js +4 -4
  121. package/utils/getUser.util.es.js +2 -2
  122. package/utils/getUserType.util.es.js +13 -8
  123. package/utils/isIntersect.es.js +4 -2
  124. package/utils/mergePropsWithDefaults.util.es.js +7 -6
  125. package/utils/object.util.es.js +88 -54
  126. package/utils/queryParamsStringfy.util.es.js +19 -11
  127. package/utils/role.util.es.js +5 -4
  128. package/utils/statusSeverity.util.es.js +20 -5
  129. package/utils/textFormatter.util.es.js +28 -50
  130. package/utils/toast.util.es.js +8 -5
  131. package/utils/xlsx.util.es.js +12 -6
  132. package/validatormessage/index.es.js +9 -9
  133. package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
  134. package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
  135. package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
  136. package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
  137. package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
  138. package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
  139. package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
  140. package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
  141. package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
  142. package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
  143. package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
  144. package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
  145. package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
  146. package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
  147. package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
  148. package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
  149. package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
  150. package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
  151. package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
  152. package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
  153. package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
  154. package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
  155. package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
  156. package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
  157. package/vendor/@popperjs/core/lib/enums.es.js +43 -20
  158. package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
  159. package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
  160. package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
  161. package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
  162. package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
  163. package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
  164. package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
  165. package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
  166. package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
  167. package/vendor/@popperjs/core/lib/popper.es.js +14 -13
  168. package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
  169. package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
  170. package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
  171. package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
  172. package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
  173. package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
  174. package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
  175. package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
  176. package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
  177. package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
  178. package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
  179. package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
  180. package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
  181. package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
  182. package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
  183. package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
  184. package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
  185. package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
  186. package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
  187. package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
  188. package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
  189. package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
  190. package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
  191. package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
  192. package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
  193. package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
  194. package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
  195. package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
  196. package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
  197. package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
  198. package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
  199. package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
  200. package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
  201. package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
  202. package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
  203. package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
  204. package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
  205. package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
  206. package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
  207. package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
  208. package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
  209. package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
  210. package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
  211. package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
  212. package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
  213. package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
  214. package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
  215. package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
  216. package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
  217. package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
  218. package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
  219. package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
  220. package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
  221. package/vendor/base64toblob/base64toblob.es.js +31 -15
  222. package/vendor/highlight.js/es/core.es.js +5 -5
  223. package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
  224. package/vendor/highlight.js/es/languages/json.es.js +18 -15
  225. package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
  226. package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
  227. package/vendor/highlight.js/lib/core.es.js +1144 -666
  228. package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
  229. package/vendor/lodash/_Symbol.es.js +11 -8
  230. package/vendor/lodash/_baseGetTag.es.js +19 -12
  231. package/vendor/lodash/_baseTrim.es.js +13 -10
  232. package/vendor/lodash/_freeGlobal.es.js +10 -8
  233. package/vendor/lodash/_getRawTag.es.js +28 -15
  234. package/vendor/lodash/_objectToString.es.js +12 -9
  235. package/vendor/lodash/_root.es.js +12 -8
  236. package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
  237. package/vendor/lodash/debounce.es.js +92 -54
  238. package/vendor/lodash/isObject.es.js +11 -9
  239. package/vendor/lodash/isObjectLike.es.js +10 -8
  240. package/vendor/lodash/isSymbol.es.js +14 -11
  241. package/vendor/lodash/now.es.js +12 -9
  242. package/vendor/lodash/throttle.es.js +25 -17
  243. package/vendor/lodash/toNumber.es.js +33 -23
  244. package/vendor/lodash-es/_DataView.es.js +4 -4
  245. package/vendor/lodash-es/_Hash.es.js +17 -16
  246. package/vendor/lodash-es/_ListCache.es.js +17 -16
  247. package/vendor/lodash-es/_Map.es.js +4 -4
  248. package/vendor/lodash-es/_MapCache.es.js +17 -16
  249. package/vendor/lodash-es/_Promise.es.js +4 -4
  250. package/vendor/lodash-es/_Set.es.js +4 -4
  251. package/vendor/lodash-es/_SetCache.es.js +12 -10
  252. package/vendor/lodash-es/_Stack.es.js +15 -15
  253. package/vendor/lodash-es/_Symbol.es.js +3 -3
  254. package/vendor/lodash-es/_Uint8Array.es.js +3 -3
  255. package/vendor/lodash-es/_WeakMap.es.js +4 -4
  256. package/vendor/lodash-es/_arrayEach.es.js +9 -5
  257. package/vendor/lodash-es/_arrayFilter.es.js +9 -6
  258. package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
  259. package/vendor/lodash-es/_arrayPush.es.js +7 -5
  260. package/vendor/lodash-es/_arraySome.es.js +9 -6
  261. package/vendor/lodash-es/_assignValue.es.js +10 -7
  262. package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
  263. package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
  264. package/vendor/lodash-es/_baseClone.es.js +67 -49
  265. package/vendor/lodash-es/_baseCreate.es.js +15 -11
  266. package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
  267. package/vendor/lodash-es/_baseGetTag.es.js +11 -7
  268. package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
  269. package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
  270. package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
  271. package/vendor/lodash-es/_baseIsMap.es.js +6 -6
  272. package/vendor/lodash-es/_baseIsNative.es.js +18 -12
  273. package/vendor/lodash-es/_baseIsSet.es.js +6 -6
  274. package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
  275. package/vendor/lodash-es/_baseKeys.es.js +16 -11
  276. package/vendor/lodash-es/_baseTimes.es.js +7 -5
  277. package/vendor/lodash-es/_baseTrim.es.js +5 -5
  278. package/vendor/lodash-es/_baseUnary.es.js +4 -4
  279. package/vendor/lodash-es/_cacheHas.es.js +3 -3
  280. package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
  281. package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
  282. package/vendor/lodash-es/_cloneDataView.es.js +5 -5
  283. package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
  284. package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
  285. package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
  286. package/vendor/lodash-es/_coreJsData.es.js +3 -3
  287. package/vendor/lodash-es/_defineProperty.es.js +7 -6
  288. package/vendor/lodash-es/_equalArrays.es.js +38 -28
  289. package/vendor/lodash-es/_equalByTag.es.js +55 -41
  290. package/vendor/lodash-es/_equalObjects.es.js +42 -28
  291. package/vendor/lodash-es/_freeGlobal.es.js +2 -2
  292. package/vendor/lodash-es/_getAllKeys.es.js +6 -6
  293. package/vendor/lodash-es/_getMapData.es.js +5 -5
  294. package/vendor/lodash-es/_getNative.es.js +6 -6
  295. package/vendor/lodash-es/_getPrototype.es.js +3 -3
  296. package/vendor/lodash-es/_getRawTag.es.js +20 -10
  297. package/vendor/lodash-es/_getSymbols.es.js +15 -8
  298. package/vendor/lodash-es/_getTag.es.js +31 -25
  299. package/vendor/lodash-es/_getValue.es.js +3 -3
  300. package/vendor/lodash-es/_hashClear.es.js +5 -4
  301. package/vendor/lodash-es/_hashDelete.es.js +5 -4
  302. package/vendor/lodash-es/_hashGet.es.js +11 -9
  303. package/vendor/lodash-es/_hashHas.es.js +7 -6
  304. package/vendor/lodash-es/_hashSet.es.js +8 -6
  305. package/vendor/lodash-es/_initCloneArray.es.js +10 -5
  306. package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
  307. package/vendor/lodash-es/_initCloneObject.es.js +6 -6
  308. package/vendor/lodash-es/_isIndex.es.js +7 -5
  309. package/vendor/lodash-es/_isKeyable.es.js +4 -4
  310. package/vendor/lodash-es/_isMasked.es.js +7 -7
  311. package/vendor/lodash-es/_isPrototype.es.js +5 -5
  312. package/vendor/lodash-es/_listCacheClear.es.js +4 -3
  313. package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
  314. package/vendor/lodash-es/_listCacheGet.es.js +5 -5
  315. package/vendor/lodash-es/_listCacheHas.es.js +4 -4
  316. package/vendor/lodash-es/_listCacheSet.es.js +11 -5
  317. package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
  318. package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
  319. package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
  320. package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
  321. package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
  322. package/vendor/lodash-es/_mapToArray.es.js +7 -6
  323. package/vendor/lodash-es/_nativeCreate.es.js +3 -3
  324. package/vendor/lodash-es/_nativeKeys.es.js +3 -3
  325. package/vendor/lodash-es/_nodeUtil.es.js +13 -6
  326. package/vendor/lodash-es/_objectToString.es.js +5 -4
  327. package/vendor/lodash-es/_overArg.es.js +4 -4
  328. package/vendor/lodash-es/_root.es.js +4 -3
  329. package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
  330. package/vendor/lodash-es/_setCacheHas.es.js +3 -3
  331. package/vendor/lodash-es/_setToArray.es.js +7 -6
  332. package/vendor/lodash-es/_stackClear.es.js +5 -4
  333. package/vendor/lodash-es/_stackDelete.es.js +5 -4
  334. package/vendor/lodash-es/_stackGet.es.js +3 -3
  335. package/vendor/lodash-es/_stackHas.es.js +3 -3
  336. package/vendor/lodash-es/_stackSet.es.js +18 -13
  337. package/vendor/lodash-es/_toSource.es.js +9 -8
  338. package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
  339. package/vendor/lodash-es/cloneDeep.es.js +5 -5
  340. package/vendor/lodash-es/debounce.es.js +84 -49
  341. package/vendor/lodash-es/eq.es.js +3 -3
  342. package/vendor/lodash-es/isArguments.es.js +9 -6
  343. package/vendor/lodash-es/isArray.es.js +2 -2
  344. package/vendor/lodash-es/isArrayLike.es.js +5 -5
  345. package/vendor/lodash-es/isBuffer.es.js +9 -4
  346. package/vendor/lodash-es/isEqual.es.js +4 -4
  347. package/vendor/lodash-es/isFunction.es.js +10 -9
  348. package/vendor/lodash-es/isLength.es.js +4 -4
  349. package/vendor/lodash-es/isMap.es.js +6 -5
  350. package/vendor/lodash-es/isObject.es.js +4 -4
  351. package/vendor/lodash-es/isObjectLike.es.js +3 -3
  352. package/vendor/lodash-es/isSet.es.js +6 -5
  353. package/vendor/lodash-es/isSymbol.es.js +6 -6
  354. package/vendor/lodash-es/isTypedArray.es.js +6 -5
  355. package/vendor/lodash-es/keys.es.js +6 -6
  356. package/vendor/lodash-es/now.es.js +4 -4
  357. package/vendor/lodash-es/stubArray.es.js +2 -2
  358. package/vendor/lodash-es/stubFalse.es.js +3 -3
  359. package/vendor/lodash-es/toNumber.es.js +25 -18
  360. package/vendor/lodash-es/toString.es.js +2 -2
  361. package/vendor/lodash-es/uniqueId.es.js +6 -6
  362. package/vendor/orderedmap/dist/index.es.js +65 -49
  363. package/vendor/primevue/api/api.esm.es.js +214 -121
  364. package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
  365. package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
  366. package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
  367. package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
  368. package/vendor/primevue/badge/badge.esm.es.js +21 -20
  369. package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
  370. package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
  371. package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
  372. package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
  373. package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
  374. package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
  375. package/vendor/primevue/button/button.esm.es.js +76 -72
  376. package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
  377. package/vendor/primevue/card/card.esm.es.js +30 -29
  378. package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
  379. package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
  380. package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
  381. package/vendor/primevue/config/config.esm.es.js +76 -58
  382. package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
  383. package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
  384. package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
  385. package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
  386. package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
  387. package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
  388. package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
  389. package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
  390. package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
  391. package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
  392. package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
  393. package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
  394. package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
  395. package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
  396. package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
  397. package/vendor/primevue/icons/check/index.esm.es.js +13 -11
  398. package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
  399. package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
  400. package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
  401. package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
  402. package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
  403. package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
  404. package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
  405. package/vendor/primevue/icons/search/index.esm.es.js +13 -11
  406. package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
  407. package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
  408. package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
  409. package/vendor/primevue/icons/times/index.esm.es.js +13 -11
  410. package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
  411. package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
  412. package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
  413. package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
  414. package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
  415. package/vendor/primevue/image/image.esm.es.js +280 -235
  416. package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
  417. package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
  418. package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
  419. package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
  420. package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
  421. package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
  422. package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
  423. package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
  424. package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
  425. package/vendor/primevue/menu/menu.esm.es.js +402 -304
  426. package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
  427. package/vendor/primevue/message/message.esm.es.js +126 -112
  428. package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
  429. package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
  430. package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
  431. package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
  432. package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
  433. package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
  434. package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
  435. package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
  436. package/vendor/primevue/password/password.esm.es.js +306 -233
  437. package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
  438. package/vendor/primevue/portal/portal.esm.es.js +17 -17
  439. package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
  440. package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
  441. package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
  442. package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
  443. package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
  444. package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
  445. package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
  446. package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
  447. package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
  448. package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
  449. package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
  450. package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
  451. package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
  452. package/vendor/primevue/toast/toast.esm.es.js +309 -260
  453. package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
  454. package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
  455. package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
  456. package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
  457. package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
  458. package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
  459. package/vendor/primevue/utils/utils.esm.es.js +1078 -772
  460. package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
  461. package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
  462. package/vendor/prosemirror-commands/dist/index.es.js +454 -316
  463. package/vendor/prosemirror-history/dist/index.es.js +286 -178
  464. package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
  465. package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
  466. package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
  467. package/vendor/prosemirror-state/dist/index.es.js +467 -353
  468. package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
  469. package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
  470. package/vendor/rope-sequence/dist/index.es.js +165 -82
  471. package/vendor/simplebar-core/dist/index.es.js +670 -242
  472. package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
  473. package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
  474. package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
  475. package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
  476. package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
  477. package/vendor/w3c-keyname/index.es.js +25 -13
  478. package/wangsvue.es.js +167 -208
  479. package/wangsvue.esm.browser.js +49417 -48026
  480. package/wangsvue.system.js +67600 -234
  481. package/api/index.es.js +0 -149
  482. package/apiitem/index.es.js +0 -611
  483. package/assignmember/index.es.js +0 -434
  484. package/attachment/index.es.js +0 -118
  485. package/attachmentchangelog/index.es.js +0 -79
  486. package/attachmentitem/index.es.js +0 -231
  487. package/attachmentthumbnail/index.es.js +0 -83
  488. package/changelog/index.d.ts +0 -164
  489. package/changelog/index.es.js +0 -85
  490. package/changelogfilter/index.es.js +0 -113
  491. package/changelogpage/index.d.ts +0 -184
  492. package/changelogpage/index.es.js +0 -176
  493. package/checklist/index.es.js +0 -571
  494. package/checklistchangelog/index.es.js +0 -85
  495. package/comment/index.d.ts +0 -187
  496. package/comment/index.es.js +0 -267
  497. package/commentblock/index.es.js +0 -337
  498. package/confirmdeploy/index.es.js +0 -64
  499. package/dependencycol/index.es.js +0 -32
  500. package/description/index.es.js +0 -135
  501. package/descriptiontab/index.es.js +0 -30
  502. package/detailmember/index.d.ts +0 -77
  503. package/detailmember/index.es.js +0 -32
  504. package/detailmemberadmin/index.es.js +0 -210
  505. package/detailmemberleader/index.es.js +0 -164
  506. package/detailmemberlog/index.es.js +0 -117
  507. package/detailsprint/index.d.ts +0 -86
  508. package/detailsprint/index.es.js +0 -414
  509. package/dialogaddattachment/index.es.js +0 -273
  510. package/dialogaddchecklist/index.es.js +0 -120
  511. package/dialogaddeditapi/index.es.js +0 -87
  512. package/dialogaddpbi/index.es.js +0 -197
  513. package/dialogadjustmenttask/index.es.js +0 -484
  514. package/dialogadjustmenttaskheader/index.es.js +0 -193
  515. package/dialogapichangelog/index.es.js +0 -83
  516. package/dialogassignmember/index.es.js +0 -171
  517. package/dialogconfirmapproval/index.es.js +0 -54
  518. package/dialogconfirmchecklist/index.es.js +0 -189
  519. package/dialogconfirmdeletetask/index.es.js +0 -70
  520. package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
  521. package/dialogconfirmedit/index.es.js +0 -50
  522. package/dialogconfirmfinishtask/index.es.js +0 -50
  523. package/dialogconfirmrestoretask/index.es.js +0 -46
  524. package/dialogconfirmsprint/index.es.js +0 -42
  525. package/dialogcopyapi/index.es.js +0 -130
  526. package/dialogcustomdependency/index.es.js +0 -55
  527. package/dialogdetailchecklisttemplate/index.es.js +0 -214
  528. package/dialogdetailcomponent/index.es.js +0 -121
  529. package/dialogdetailpbi/index.es.js +0 -192
  530. package/dialogfinishreview/index.es.js +0 -126
  531. package/dialogimprovementtask/index.es.js +0 -191
  532. package/dialogmemberadmin/index.es.js +0 -93
  533. package/dialogpreparepbi/index.es.js +0 -93
  534. package/dialogpriorityvalue/index.es.js +0 -85
  535. package/dialogreportbug/index.es.js +0 -207
  536. package/dialogreviewleader/index.es.js +0 -280
  537. package/dialogsavechecklisttemplate/index.es.js +0 -127
  538. package/dialogselectproject/index.es.js +0 -69
  539. package/dialogsetduration/index.es.js +0 -109
  540. package/dialogsettasklink/index.es.js +0 -153
  541. package/dialogtestapi/index.es.js +0 -389
  542. package/eventlogtab/index.es.js +0 -50
  543. package/infotasktab/index.es.js +0 -186
  544. package/inputadditional/index.es.js +0 -62
  545. package/inputinitialname/index.d.ts +0 -118
  546. package/inputinitialname/index.es.js +0 -95
  547. package/inputrepositoryname/index.d.ts +0 -86
  548. package/inputrepositoryname/index.es.js +0 -41
  549. package/isrequiredtext/index.es.js +0 -16
  550. package/legend/index.es.js +0 -727
  551. package/legendlist/index.es.js +0 -33
  552. package/loading-page-BrQattYE.js +0 -1
  553. package/loading-page-CgfbWppy.js +0 -1
  554. package/loading-page-CoC9UhfC.js +0 -4
  555. package/loading-page-CoXtqoc9.js +0 -4
  556. package/loading-page-DbLuqCHa.js +0 -1
  557. package/loading-page-f8D03l3G.js +0 -4
  558. package/loading-plane-CgfbWppy.js +0 -1
  559. package/loading-plane-CoXtqoc9.js +0 -4
  560. package/loading-table-Bdr9ZhtP.js +0 -1
  561. package/loading-table-ByUoWqUo.js +0 -4
  562. package/loading-table-BygEMzFM.js +0 -4
  563. package/loading-table-BzrSQlA0.js +0 -1
  564. package/loading-table-D9bw9OcI.js +0 -4
  565. package/loading-table-chOgXi94.js +0 -1
  566. package/no-data-CTKux8RI.js +0 -4
  567. package/no-data-Cgze_Rvp.js +0 -1
  568. package/no-data-DLHO1L_u.js +0 -4
  569. package/no-data-Dep79CBh.js +0 -1
  570. package/no-data-g0dJCy2p.js +0 -4
  571. package/no-data-y1X5WtcQ.js +0 -1
  572. package/notificationitem/index.d.ts +0 -107
  573. package/notificationitem/index.es.js +0 -333
  574. package/reviewitem/index.es.js +0 -65
  575. package/reviewtab/index.es.js +0 -44
  576. package/services/calendar.service.es.js +0 -32
  577. package/sonarqubesummary/index.es.js +0 -234
  578. package/sprintsummary/index.es.js +0 -73
  579. package/summaryaccordion/index.d.ts +0 -121
  580. package/summaryaccordion/index.es.js +0 -365
  581. package/taskdependency/index.es.js +0 -686
  582. package/taskdetail/index.d.ts +0 -82
  583. package/taskdetail/index.es.js +0 -491
  584. package/taskdetailpbi/index.d.ts +0 -35
  585. package/taskdetailpbi/index.es.js +0 -172
  586. package/taskdetailunassignedpbi/index.es.js +0 -261
  587. package/tasklink/index.es.js +0 -257
  588. package/tasklinkchangelog/index.es.js +0 -93
  589. package/tasklist/index.es.js +0 -92
  590. package/taskmore/index.es.js +0 -52
  591. package/taskstatusbadge/index.es.js +0 -18
  592. package/tasktable/index.d.ts +0 -87
  593. package/tasktable/index.es.js +0 -832
  594. package/ticket/index.es.js +0 -151
  595. package/tooltipspan/index.es.js +0 -30
  596. package/utils/updateSprintStatus.util.es.js +0 -17
  597. package/valueformdatainput/index.es.js +0 -70
  598. package/workcalendar/index.es.js +0 -351
@@ -1,166 +1,172 @@
1
- function x(n, t) {
2
- var e = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
3
- if (!e) {
4
- if (Array.isArray(n) || (e = F(n)) || t) {
5
- e && (n = e);
6
- var r = 0, i = function() {
1
+ function _createForOfIteratorHelper$1(o, allowArrayLike) {
2
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
3
+ if (!it) {
4
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike) {
5
+ if (it) o = it;
6
+ var i = 0;
7
+ var F = function F2() {
7
8
  };
8
- return { s: i, n: function() {
9
- return r >= n.length ? { done: !0 } : { done: !1, value: n[r++] };
10
- }, e: function(l) {
11
- throw l;
12
- }, f: i };
13
- }
14
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
9
+ return { s: F, n: function n() {
10
+ if (i >= o.length) return { done: true };
11
+ return { done: false, value: o[i++] };
12
+ }, e: function e(_e) {
13
+ throw _e;
14
+ }, f: F };
15
+ }
16
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
16
17
  }
17
- var o = !0, a = !1, s;
18
- return { s: function() {
19
- e = e.call(n);
20
- }, n: function() {
21
- var l = e.next();
22
- return o = l.done, l;
23
- }, e: function(l) {
24
- a = !0, s = l;
25
- }, f: function() {
18
+ var normalCompletion = true, didErr = false, err;
19
+ return { s: function s() {
20
+ it = it.call(o);
21
+ }, n: function n() {
22
+ var step = it.next();
23
+ normalCompletion = step.done;
24
+ return step;
25
+ }, e: function e(_e2) {
26
+ didErr = true;
27
+ err = _e2;
28
+ }, f: function f() {
26
29
  try {
27
- !o && e.return != null && e.return();
30
+ if (!normalCompletion && it["return"] != null) it["return"]();
28
31
  } finally {
29
- if (a) throw s;
32
+ if (didErr) throw err;
30
33
  }
31
34
  } };
32
35
  }
33
- function H(n) {
34
- return D(n) || $(n) || F(n) || j();
36
+ function _toConsumableArray$3(arr) {
37
+ return _arrayWithoutHoles$3(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableSpread$3();
35
38
  }
36
- function j() {
37
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
38
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
39
+ function _nonIterableSpread$3() {
40
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
39
41
  }
40
- function $(n) {
41
- if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
42
+ function _iterableToArray$3(iter) {
43
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
42
44
  }
43
- function D(n) {
44
- if (Array.isArray(n)) return C(n);
45
+ function _arrayWithoutHoles$3(arr) {
46
+ if (Array.isArray(arr)) return _arrayLikeToArray$3(arr);
45
47
  }
46
- function m(n) {
48
+ function _typeof$3(o) {
47
49
  "@babel/helpers - typeof";
48
- return m = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
49
- return typeof t;
50
- } : function(t) {
51
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
52
- }, m(n);
50
+ return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
51
+ return typeof o2;
52
+ } : function(o2) {
53
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
54
+ }, _typeof$3(o);
53
55
  }
54
- function E(n, t) {
55
- return V(n) || B(n, t) || F(n, t) || R();
56
+ function _slicedToArray$1(arr, i) {
57
+ return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$1();
56
58
  }
57
- function R() {
58
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
59
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
59
+ function _nonIterableRest$1() {
60
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
60
61
  }
61
- function F(n, t) {
62
- if (n) {
63
- if (typeof n == "string") return C(n, t);
64
- var e = Object.prototype.toString.call(n).slice(8, -1);
65
- if (e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set") return Array.from(n);
66
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return C(n, t);
67
- }
62
+ function _unsupportedIterableToArray$3(o, minLen) {
63
+ if (!o) return;
64
+ if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
65
+ var n = Object.prototype.toString.call(o).slice(8, -1);
66
+ if (n === "Object" && o.constructor) n = o.constructor.name;
67
+ if (n === "Map" || n === "Set") return Array.from(o);
68
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
68
69
  }
69
- function C(n, t) {
70
- (t == null || t > n.length) && (t = n.length);
71
- for (var e = 0, r = new Array(t); e < t; e++) r[e] = n[e];
72
- return r;
70
+ function _arrayLikeToArray$3(arr, len) {
71
+ if (len == null || len > arr.length) len = arr.length;
72
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
73
+ return arr2;
73
74
  }
74
- function B(n, t) {
75
- var e = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
76
- if (e != null) {
77
- var r, i, o, a, s = [], u = !0, l = !1;
75
+ function _iterableToArrayLimit$1(r, l) {
76
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
77
+ if (null != t) {
78
+ var e, n, i, u, a = [], f = true, o = false;
78
79
  try {
79
- if (o = (e = e.call(n)).next, t !== 0) for (; !(u = (r = o.call(e)).done) && (s.push(r.value), s.length !== t); u = !0) ;
80
- } catch (c) {
81
- l = !0, i = c;
80
+ if (i = (t = t.call(r)).next, 0 === l) ;
81
+ else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
82
+ } catch (r2) {
83
+ o = true, n = r2;
82
84
  } finally {
83
85
  try {
84
- if (!u && e.return != null && (a = e.return(), Object(a) !== a)) return;
86
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
85
87
  } finally {
86
- if (l) throw i;
88
+ if (o) throw n;
87
89
  }
88
90
  }
89
- return s;
91
+ return a;
90
92
  }
91
93
  }
92
- function V(n) {
93
- if (Array.isArray(n)) return n;
94
+ function _arrayWithHoles$1(arr) {
95
+ if (Array.isArray(arr)) return arr;
94
96
  }
95
- var _ = {
96
- innerWidth: function(t) {
97
- if (t) {
98
- var e = t.offsetWidth, r = getComputedStyle(t);
99
- return e += parseFloat(r.paddingLeft) + parseFloat(r.paddingRight), e;
97
+ var DomHandler = {
98
+ innerWidth: function innerWidth(el) {
99
+ if (el) {
100
+ var width2 = el.offsetWidth;
101
+ var style = getComputedStyle(el);
102
+ width2 += parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
103
+ return width2;
100
104
  }
101
105
  return 0;
102
106
  },
103
- width: function(t) {
104
- if (t) {
105
- var e = t.offsetWidth, r = getComputedStyle(t);
106
- return e -= parseFloat(r.paddingLeft) + parseFloat(r.paddingRight), e;
107
+ width: function width(el) {
108
+ if (el) {
109
+ var width2 = el.offsetWidth;
110
+ var style = getComputedStyle(el);
111
+ width2 -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight);
112
+ return width2;
107
113
  }
108
114
  return 0;
109
115
  },
110
- getWindowScrollTop: function() {
111
- var t = document.documentElement;
112
- return (window.pageYOffset || t.scrollTop) - (t.clientTop || 0);
116
+ getWindowScrollTop: function getWindowScrollTop() {
117
+ var doc = document.documentElement;
118
+ return (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0);
113
119
  },
114
- getWindowScrollLeft: function() {
115
- var t = document.documentElement;
116
- return (window.pageXOffset || t.scrollLeft) - (t.clientLeft || 0);
120
+ getWindowScrollLeft: function getWindowScrollLeft() {
121
+ var doc = document.documentElement;
122
+ return (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0);
117
123
  },
118
- getOuterWidth: function(t, e) {
119
- if (t) {
120
- var r = t.offsetWidth;
121
- if (e) {
122
- var i = getComputedStyle(t);
123
- r += parseFloat(i.marginLeft) + parseFloat(i.marginRight);
124
+ getOuterWidth: function getOuterWidth(el, margin) {
125
+ if (el) {
126
+ var width2 = el.offsetWidth;
127
+ if (margin) {
128
+ var style = getComputedStyle(el);
129
+ width2 += parseFloat(style.marginLeft) + parseFloat(style.marginRight);
124
130
  }
125
- return r;
131
+ return width2;
126
132
  }
127
133
  return 0;
128
134
  },
129
- getOuterHeight: function(t, e) {
130
- if (t) {
131
- var r = t.offsetHeight;
132
- if (e) {
133
- var i = getComputedStyle(t);
134
- r += parseFloat(i.marginTop) + parseFloat(i.marginBottom);
135
+ getOuterHeight: function getOuterHeight(el, margin) {
136
+ if (el) {
137
+ var height = el.offsetHeight;
138
+ if (margin) {
139
+ var style = getComputedStyle(el);
140
+ height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
135
141
  }
136
- return r;
142
+ return height;
137
143
  }
138
144
  return 0;
139
145
  },
140
- getClientHeight: function(t, e) {
141
- if (t) {
142
- var r = t.clientHeight;
143
- if (e) {
144
- var i = getComputedStyle(t);
145
- r += parseFloat(i.marginTop) + parseFloat(i.marginBottom);
146
+ getClientHeight: function getClientHeight(el, margin) {
147
+ if (el) {
148
+ var height = el.clientHeight;
149
+ if (margin) {
150
+ var style = getComputedStyle(el);
151
+ height += parseFloat(style.marginTop) + parseFloat(style.marginBottom);
146
152
  }
147
- return r;
153
+ return height;
148
154
  }
149
155
  return 0;
150
156
  },
151
- getViewport: function() {
152
- var t = window, e = document, r = e.documentElement, i = e.getElementsByTagName("body")[0], o = t.innerWidth || r.clientWidth || i.clientWidth, a = t.innerHeight || r.clientHeight || i.clientHeight;
157
+ getViewport: function getViewport() {
158
+ var win = window, d = document, e = d.documentElement, g = d.getElementsByTagName("body")[0], w = win.innerWidth || e.clientWidth || g.clientWidth, h = win.innerHeight || e.clientHeight || g.clientHeight;
153
159
  return {
154
- width: o,
155
- height: a
160
+ width: w,
161
+ height: h
156
162
  };
157
163
  },
158
- getOffset: function(t) {
159
- if (t) {
160
- var e = t.getBoundingClientRect();
164
+ getOffset: function getOffset(el) {
165
+ if (el) {
166
+ var rect = el.getBoundingClientRect();
161
167
  return {
162
- top: e.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
163
- left: e.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
168
+ top: rect.top + (window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0),
169
+ left: rect.left + (window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0)
164
170
  };
165
171
  }
166
172
  return {
@@ -168,913 +174,1213 @@ var _ = {
168
174
  left: "auto"
169
175
  };
170
176
  },
171
- index: function(t) {
172
- if (t)
173
- for (var e, r = (e = this.getParentNode(t)) === null || e === void 0 ? void 0 : e.childNodes, i = 0, o = 0; o < r.length; o++) {
174
- if (r[o] === t) return i;
175
- r[o].nodeType === 1 && i++;
177
+ index: function index(element) {
178
+ if (element) {
179
+ var _this$getParentNode;
180
+ var children = (_this$getParentNode = this.getParentNode(element)) === null || _this$getParentNode === void 0 ? void 0 : _this$getParentNode.childNodes;
181
+ var num = 0;
182
+ for (var i = 0; i < children.length; i++) {
183
+ if (children[i] === element) return num;
184
+ if (children[i].nodeType === 1) num++;
176
185
  }
186
+ }
177
187
  return -1;
178
188
  },
179
- addMultipleClasses: function(t, e) {
180
- var r = this;
181
- t && e && [e].flat().filter(Boolean).forEach(function(i) {
182
- return i.split(" ").forEach(function(o) {
183
- return r.addClass(t, o);
189
+ addMultipleClasses: function addMultipleClasses(element, classNames) {
190
+ var _this = this;
191
+ if (element && classNames) {
192
+ [classNames].flat().filter(Boolean).forEach(function(cNames) {
193
+ return cNames.split(" ").forEach(function(className) {
194
+ return _this.addClass(element, className);
195
+ });
184
196
  });
185
- });
197
+ }
186
198
  },
187
- removeMultipleClasses: function(t, e) {
188
- var r = this;
189
- t && e && [e].flat().filter(Boolean).forEach(function(i) {
190
- return i.split(" ").forEach(function(o) {
191
- return r.removeClass(t, o);
199
+ removeMultipleClasses: function removeMultipleClasses(element, classNames) {
200
+ var _this2 = this;
201
+ if (element && classNames) {
202
+ [classNames].flat().filter(Boolean).forEach(function(cNames) {
203
+ return cNames.split(" ").forEach(function(className) {
204
+ return _this2.removeClass(element, className);
205
+ });
192
206
  });
193
- });
207
+ }
194
208
  },
195
- addClass: function(t, e) {
196
- t && e && !this.hasClass(t, e) && (t.classList ? t.classList.add(e) : t.className += " " + e);
209
+ addClass: function addClass(element, className) {
210
+ if (element && className && !this.hasClass(element, className)) {
211
+ if (element.classList) element.classList.add(className);
212
+ else element.className += " " + className;
213
+ }
197
214
  },
198
- removeClass: function(t, e) {
199
- t && e && (t.classList ? t.classList.remove(e) : t.className = t.className.replace(new RegExp("(^|\\b)" + e.split(" ").join("|") + "(\\b|$)", "gi"), " "));
215
+ removeClass: function removeClass(element, className) {
216
+ if (element && className) {
217
+ if (element.classList) element.classList.remove(className);
218
+ else element.className = element.className.replace(new RegExp("(^|\\b)" + className.split(" ").join("|") + "(\\b|$)", "gi"), " ");
219
+ }
200
220
  },
201
- hasClass: function(t, e) {
202
- return t ? t.classList ? t.classList.contains(e) : new RegExp("(^| )" + e + "( |$)", "gi").test(t.className) : !1;
221
+ hasClass: function hasClass(element, className) {
222
+ if (element) {
223
+ if (element.classList) return element.classList.contains(className);
224
+ else return new RegExp("(^| )" + className + "( |$)", "gi").test(element.className);
225
+ }
226
+ return false;
227
+ },
228
+ addStyles: function addStyles(element) {
229
+ var styles = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
230
+ if (element) {
231
+ Object.entries(styles).forEach(function(_ref) {
232
+ var _ref2 = _slicedToArray$1(_ref, 2), key = _ref2[0], value = _ref2[1];
233
+ return element.style[key] = value;
234
+ });
235
+ }
203
236
  },
204
- addStyles: function(t) {
205
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
206
- t && Object.entries(e).forEach(function(r) {
207
- var i = E(r, 2), o = i[0], a = i[1];
208
- return t.style[o] = a;
209
- });
237
+ find: function find(element, selector) {
238
+ return this.isElement(element) ? element.querySelectorAll(selector) : [];
239
+ },
240
+ findSingle: function findSingle(element, selector) {
241
+ return this.isElement(element) ? element.querySelector(selector) : null;
210
242
  },
211
- find: function(t, e) {
212
- return this.isElement(t) ? t.querySelectorAll(e) : [];
213
- },
214
- findSingle: function(t, e) {
215
- return this.isElement(t) ? t.querySelector(e) : null;
216
- },
217
- createElement: function(t) {
218
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
219
- if (t) {
220
- var r = document.createElement(t);
221
- this.setAttributes(r, e);
222
- for (var i = arguments.length, o = new Array(i > 2 ? i - 2 : 0), a = 2; a < i; a++)
223
- o[a - 2] = arguments[a];
224
- return r.append.apply(r, o), r;
225
- }
226
- },
227
- setAttribute: function(t) {
228
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = arguments.length > 2 ? arguments[2] : void 0;
229
- this.isElement(t) && r !== null && r !== void 0 && t.setAttribute(e, r);
230
- },
231
- setAttributes: function(t) {
232
- var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
233
- if (this.isElement(t)) {
234
- var i = function o(a, s) {
235
- var u, l, c = t != null && (u = t.$attrs) !== null && u !== void 0 && u[a] ? [t == null || (l = t.$attrs) === null || l === void 0 ? void 0 : l[a]] : [];
236
- return [s].flat().reduce(function(f, d) {
237
- if (d != null) {
238
- var h = m(d);
239
- if (h === "string" || h === "number")
240
- f.push(d);
241
- else if (h === "object") {
242
- var y = Array.isArray(d) ? o(a, d) : Object.entries(d).map(function(g) {
243
- var w = E(g, 2), p = w[0], b = w[1];
244
- return a === "style" && (b || b === 0) ? "".concat(p.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), ":").concat(b) : b ? p : void 0;
243
+ createElement: function createElement(type) {
244
+ var attributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
245
+ if (type) {
246
+ var element = document.createElement(type);
247
+ this.setAttributes(element, attributes);
248
+ for (var _len = arguments.length, children = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
249
+ children[_key - 2] = arguments[_key];
250
+ }
251
+ element.append.apply(element, children);
252
+ return element;
253
+ }
254
+ return void 0;
255
+ },
256
+ setAttribute: function setAttribute(element) {
257
+ var attribute = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
258
+ var value = arguments.length > 2 ? arguments[2] : void 0;
259
+ if (this.isElement(element) && value !== null && value !== void 0) {
260
+ element.setAttribute(attribute, value);
261
+ }
262
+ },
263
+ setAttributes: function setAttributes(element) {
264
+ var _this3 = this;
265
+ var attributes = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
266
+ if (this.isElement(element)) {
267
+ var computedStyles = function computedStyles2(rule, value) {
268
+ var _element$$attrs, _element$$attrs2;
269
+ var styles = element !== null && element !== void 0 && (_element$$attrs = element.$attrs) !== null && _element$$attrs !== void 0 && _element$$attrs[rule] ? [element === null || element === void 0 || (_element$$attrs2 = element.$attrs) === null || _element$$attrs2 === void 0 ? void 0 : _element$$attrs2[rule]] : [];
270
+ return [value].flat().reduce(function(cv, v) {
271
+ if (v !== null && v !== void 0) {
272
+ var type = _typeof$3(v);
273
+ if (type === "string" || type === "number") {
274
+ cv.push(v);
275
+ } else if (type === "object") {
276
+ var _cv = Array.isArray(v) ? computedStyles2(rule, v) : Object.entries(v).map(function(_ref3) {
277
+ var _ref4 = _slicedToArray$1(_ref3, 2), _k = _ref4[0], _v = _ref4[1];
278
+ return rule === "style" && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), ":").concat(_v) : !!_v ? _k : void 0;
245
279
  });
246
- f = y.length ? f.concat(y.filter(function(g) {
247
- return !!g;
248
- })) : f;
280
+ cv = _cv.length ? cv.concat(_cv.filter(function(c) {
281
+ return !!c;
282
+ })) : cv;
249
283
  }
250
284
  }
251
- return f;
252
- }, c);
285
+ return cv;
286
+ }, styles);
253
287
  };
254
- Object.entries(r).forEach(function(o) {
255
- var a = E(o, 2), s = a[0], u = a[1];
256
- if (u != null) {
257
- var l = s.match(/^on(.+)/);
258
- l ? t.addEventListener(l[1].toLowerCase(), u) : s === "p-bind" ? e.setAttributes(t, u) : (u = s === "class" ? H(new Set(i("class", u))).join(" ").trim() : s === "style" ? i("style", u).join(";").trim() : u, (t.$attrs = t.$attrs || {}) && (t.$attrs[s] = u), t.setAttribute(s, u));
288
+ Object.entries(attributes).forEach(function(_ref5) {
289
+ var _ref6 = _slicedToArray$1(_ref5, 2), key = _ref6[0], value = _ref6[1];
290
+ if (value !== void 0 && value !== null) {
291
+ var matchedEvent = key.match(/^on(.+)/);
292
+ if (matchedEvent) {
293
+ element.addEventListener(matchedEvent[1].toLowerCase(), value);
294
+ } else if (key === "p-bind") {
295
+ _this3.setAttributes(element, value);
296
+ } else {
297
+ value = key === "class" ? _toConsumableArray$3(new Set(computedStyles("class", value))).join(" ").trim() : key === "style" ? computedStyles("style", value).join(";").trim() : value;
298
+ (element.$attrs = element.$attrs || {}) && (element.$attrs[key] = value);
299
+ element.setAttribute(key, value);
300
+ }
259
301
  }
260
302
  });
261
303
  }
262
304
  },
263
- getAttribute: function(t, e) {
264
- if (this.isElement(t)) {
265
- var r = t.getAttribute(e);
266
- return isNaN(r) ? r === "true" || r === "false" ? r === "true" : r : +r;
305
+ getAttribute: function getAttribute(element, name) {
306
+ if (this.isElement(element)) {
307
+ var value = element.getAttribute(name);
308
+ if (!isNaN(value)) {
309
+ return +value;
310
+ }
311
+ if (value === "true" || value === "false") {
312
+ return value === "true";
313
+ }
314
+ return value;
267
315
  }
316
+ return void 0;
268
317
  },
269
- isAttributeEquals: function(t, e, r) {
270
- return this.isElement(t) ? this.getAttribute(t, e) === r : !1;
318
+ isAttributeEquals: function isAttributeEquals(element, name, value) {
319
+ return this.isElement(element) ? this.getAttribute(element, name) === value : false;
271
320
  },
272
- isAttributeNotEquals: function(t, e, r) {
273
- return !this.isAttributeEquals(t, e, r);
321
+ isAttributeNotEquals: function isAttributeNotEquals(element, name, value) {
322
+ return !this.isAttributeEquals(element, name, value);
274
323
  },
275
- getHeight: function(t) {
276
- if (t) {
277
- var e = t.offsetHeight, r = getComputedStyle(t);
278
- return e -= parseFloat(r.paddingTop) + parseFloat(r.paddingBottom) + parseFloat(r.borderTopWidth) + parseFloat(r.borderBottomWidth), e;
324
+ getHeight: function getHeight(el) {
325
+ if (el) {
326
+ var height = el.offsetHeight;
327
+ var style = getComputedStyle(el);
328
+ height -= parseFloat(style.paddingTop) + parseFloat(style.paddingBottom) + parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
329
+ return height;
279
330
  }
280
331
  return 0;
281
332
  },
282
- getWidth: function(t) {
283
- if (t) {
284
- var e = t.offsetWidth, r = getComputedStyle(t);
285
- return e -= parseFloat(r.paddingLeft) + parseFloat(r.paddingRight) + parseFloat(r.borderLeftWidth) + parseFloat(r.borderRightWidth), e;
333
+ getWidth: function getWidth(el) {
334
+ if (el) {
335
+ var width2 = el.offsetWidth;
336
+ var style = getComputedStyle(el);
337
+ width2 -= parseFloat(style.paddingLeft) + parseFloat(style.paddingRight) + parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth);
338
+ return width2;
286
339
  }
287
340
  return 0;
288
341
  },
289
- absolutePosition: function(t, e) {
290
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
291
- if (t) {
292
- var i = t.offsetParent ? {
293
- width: t.offsetWidth,
294
- height: t.offsetHeight
295
- } : this.getHiddenElementDimensions(t), o = i.height, a = i.width, s = e.offsetHeight, u = e.offsetWidth, l = e.getBoundingClientRect(), c = this.getWindowScrollTop(), f = this.getWindowScrollLeft(), d = this.getViewport(), h, y, g = "top";
296
- l.top + s + o > d.height ? (h = l.top + c - o, g = "bottom", h < 0 && (h = c)) : h = s + l.top + c, l.left + a > d.width ? y = Math.max(0, l.left + f + u - a) : y = l.left + f, t.style.top = h + "px", t.style.left = y + "px", t.style.transformOrigin = g, r && (t.style.marginTop = g === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
342
+ absolutePosition: function absolutePosition(element, target) {
343
+ var gutter = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
344
+ if (element) {
345
+ var elementDimensions = element.offsetParent ? {
346
+ width: element.offsetWidth,
347
+ height: element.offsetHeight
348
+ } : this.getHiddenElementDimensions(element);
349
+ var elementOuterHeight = elementDimensions.height;
350
+ var elementOuterWidth = elementDimensions.width;
351
+ var targetOuterHeight = target.offsetHeight;
352
+ var targetOuterWidth = target.offsetWidth;
353
+ var targetOffset = target.getBoundingClientRect();
354
+ var windowScrollTop = this.getWindowScrollTop();
355
+ var windowScrollLeft = this.getWindowScrollLeft();
356
+ var viewport = this.getViewport();
357
+ var top, left, origin = "top";
358
+ if (targetOffset.top + targetOuterHeight + elementOuterHeight > viewport.height) {
359
+ top = targetOffset.top + windowScrollTop - elementOuterHeight;
360
+ origin = "bottom";
361
+ if (top < 0) {
362
+ top = windowScrollTop;
363
+ }
364
+ } else {
365
+ top = targetOuterHeight + targetOffset.top + windowScrollTop;
366
+ }
367
+ if (targetOffset.left + elementOuterWidth > viewport.width) left = Math.max(0, targetOffset.left + windowScrollLeft + targetOuterWidth - elementOuterWidth);
368
+ else left = targetOffset.left + windowScrollLeft;
369
+ element.style.top = top + "px";
370
+ element.style.left = left + "px";
371
+ element.style.transformOrigin = origin;
372
+ gutter && (element.style.marginTop = origin === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
297
373
  }
298
374
  },
299
- relativePosition: function(t, e) {
300
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
301
- if (t) {
302
- var i = t.offsetParent ? {
303
- width: t.offsetWidth,
304
- height: t.offsetHeight
305
- } : this.getHiddenElementDimensions(t), o = e.offsetHeight, a = e.getBoundingClientRect(), s = this.getViewport(), u, l, c = "top";
306
- a.top + o + i.height > s.height ? (u = -1 * i.height, c = "bottom", a.top + u < 0 && (u = -1 * a.top)) : u = o, i.width > s.width ? l = a.left * -1 : a.left + i.width > s.width ? l = (a.left + i.width - s.width) * -1 : l = 0, t.style.top = u + "px", t.style.left = l + "px", t.style.transformOrigin = c, r && (t.style.marginTop = c === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
375
+ relativePosition: function relativePosition(element, target) {
376
+ var gutter = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
377
+ if (element) {
378
+ var elementDimensions = element.offsetParent ? {
379
+ width: element.offsetWidth,
380
+ height: element.offsetHeight
381
+ } : this.getHiddenElementDimensions(element);
382
+ var targetHeight = target.offsetHeight;
383
+ var targetOffset = target.getBoundingClientRect();
384
+ var viewport = this.getViewport();
385
+ var top, left, origin = "top";
386
+ if (targetOffset.top + targetHeight + elementDimensions.height > viewport.height) {
387
+ top = -1 * elementDimensions.height;
388
+ origin = "bottom";
389
+ if (targetOffset.top + top < 0) {
390
+ top = -1 * targetOffset.top;
391
+ }
392
+ } else {
393
+ top = targetHeight;
394
+ }
395
+ if (elementDimensions.width > viewport.width) {
396
+ left = targetOffset.left * -1;
397
+ } else if (targetOffset.left + elementDimensions.width > viewport.width) {
398
+ left = (targetOffset.left + elementDimensions.width - viewport.width) * -1;
399
+ } else {
400
+ left = 0;
401
+ }
402
+ element.style.top = top + "px";
403
+ element.style.left = left + "px";
404
+ element.style.transformOrigin = origin;
405
+ gutter && (element.style.marginTop = origin === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
307
406
  }
308
407
  },
309
- nestedPosition: function(t, e) {
310
- if (t) {
311
- var r = t.parentElement, i = this.getOffset(r), o = this.getViewport(), a = t.offsetParent ? t.offsetWidth : this.getHiddenElementOuterWidth(t), s = this.getOuterWidth(r.children[0]), u;
312
- parseInt(i.left, 10) + s + a > o.width - this.calculateScrollbarWidth() ? parseInt(i.left, 10) < a ? e % 2 === 1 ? u = parseInt(i.left, 10) ? "-" + parseInt(i.left, 10) + "px" : "100%" : e % 2 === 0 && (u = o.width - a - this.calculateScrollbarWidth() + "px") : u = "-100%" : u = "100%", t.style.top = "0px", t.style.left = u;
408
+ nestedPosition: function nestedPosition(element, level) {
409
+ if (element) {
410
+ var parentItem = element.parentElement;
411
+ var elementOffset = this.getOffset(parentItem);
412
+ var viewport = this.getViewport();
413
+ var sublistWidth = element.offsetParent ? element.offsetWidth : this.getHiddenElementOuterWidth(element);
414
+ var itemOuterWidth = this.getOuterWidth(parentItem.children[0]);
415
+ var left;
416
+ if (parseInt(elementOffset.left, 10) + itemOuterWidth + sublistWidth > viewport.width - this.calculateScrollbarWidth()) {
417
+ if (parseInt(elementOffset.left, 10) < sublistWidth) {
418
+ if (level % 2 === 1) {
419
+ left = parseInt(elementOffset.left, 10) ? "-" + parseInt(elementOffset.left, 10) + "px" : "100%";
420
+ } else if (level % 2 === 0) {
421
+ left = viewport.width - sublistWidth - this.calculateScrollbarWidth() + "px";
422
+ }
423
+ } else {
424
+ left = "-100%";
425
+ }
426
+ } else {
427
+ left = "100%";
428
+ }
429
+ element.style.top = "0px";
430
+ element.style.left = left;
313
431
  }
314
432
  },
315
- getParentNode: function(t) {
316
- var e = t == null ? void 0 : t.parentNode;
317
- return e && e instanceof ShadowRoot && e.host && (e = e.host), e;
318
- },
319
- getParents: function(t) {
320
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], r = this.getParentNode(t);
321
- return r === null ? e : this.getParents(r, e.concat([r]));
322
- },
323
- getScrollableParents: function(t) {
324
- var e = [];
325
- if (t) {
326
- var r = this.getParents(t), i = /(auto|scroll)/, o = function(w) {
433
+ getParentNode: function getParentNode(element) {
434
+ var parent = element === null || element === void 0 ? void 0 : element.parentNode;
435
+ if (parent && parent instanceof ShadowRoot && parent.host) {
436
+ parent = parent.host;
437
+ }
438
+ return parent;
439
+ },
440
+ getParents: function getParents(element) {
441
+ var parents = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
442
+ var parent = this.getParentNode(element);
443
+ return parent === null ? parents : this.getParents(parent, parents.concat([parent]));
444
+ },
445
+ getScrollableParents: function getScrollableParents(element) {
446
+ var scrollableParents = [];
447
+ if (element) {
448
+ var parents = this.getParents(element);
449
+ var overflowRegex = /(auto|scroll)/;
450
+ var overflowCheck = function overflowCheck2(node) {
327
451
  try {
328
- var p = window.getComputedStyle(w, null);
329
- return i.test(p.getPropertyValue("overflow")) || i.test(p.getPropertyValue("overflowX")) || i.test(p.getPropertyValue("overflowY"));
330
- } catch {
331
- return !1;
452
+ var styleDeclaration = window["getComputedStyle"](node, null);
453
+ return overflowRegex.test(styleDeclaration.getPropertyValue("overflow")) || overflowRegex.test(styleDeclaration.getPropertyValue("overflowX")) || overflowRegex.test(styleDeclaration.getPropertyValue("overflowY"));
454
+ } catch (err) {
455
+ return false;
332
456
  }
333
- }, a = x(r), s;
457
+ };
458
+ var _iterator = _createForOfIteratorHelper$1(parents), _step;
334
459
  try {
335
- for (a.s(); !(s = a.n()).done; ) {
336
- var u = s.value, l = u.nodeType === 1 && u.dataset.scrollselectors;
337
- if (l) {
338
- var c = l.split(","), f = x(c), d;
460
+ for (_iterator.s(); !(_step = _iterator.n()).done; ) {
461
+ var parent = _step.value;
462
+ var scrollSelectors = parent.nodeType === 1 && parent.dataset["scrollselectors"];
463
+ if (scrollSelectors) {
464
+ var selectors = scrollSelectors.split(",");
465
+ var _iterator2 = _createForOfIteratorHelper$1(selectors), _step2;
339
466
  try {
340
- for (f.s(); !(d = f.n()).done; ) {
341
- var h = d.value, y = this.findSingle(u, h);
342
- y && o(y) && e.push(y);
467
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
468
+ var selector = _step2.value;
469
+ var el = this.findSingle(parent, selector);
470
+ if (el && overflowCheck(el)) {
471
+ scrollableParents.push(el);
472
+ }
343
473
  }
344
- } catch (g) {
345
- f.e(g);
474
+ } catch (err) {
475
+ _iterator2.e(err);
346
476
  } finally {
347
- f.f();
477
+ _iterator2.f();
348
478
  }
349
479
  }
350
- u.nodeType !== 9 && o(u) && e.push(u);
480
+ if (parent.nodeType !== 9 && overflowCheck(parent)) {
481
+ scrollableParents.push(parent);
482
+ }
351
483
  }
352
- } catch (g) {
353
- a.e(g);
484
+ } catch (err) {
485
+ _iterator.e(err);
354
486
  } finally {
355
- a.f();
487
+ _iterator.f();
356
488
  }
357
489
  }
358
- return e;
359
- },
360
- getHiddenElementOuterHeight: function(t) {
361
- if (t) {
362
- t.style.visibility = "hidden", t.style.display = "block";
363
- var e = t.offsetHeight;
364
- return t.style.display = "none", t.style.visibility = "visible", e;
490
+ return scrollableParents;
491
+ },
492
+ getHiddenElementOuterHeight: function getHiddenElementOuterHeight(element) {
493
+ if (element) {
494
+ element.style.visibility = "hidden";
495
+ element.style.display = "block";
496
+ var elementHeight = element.offsetHeight;
497
+ element.style.display = "none";
498
+ element.style.visibility = "visible";
499
+ return elementHeight;
365
500
  }
366
501
  return 0;
367
502
  },
368
- getHiddenElementOuterWidth: function(t) {
369
- if (t) {
370
- t.style.visibility = "hidden", t.style.display = "block";
371
- var e = t.offsetWidth;
372
- return t.style.display = "none", t.style.visibility = "visible", e;
503
+ getHiddenElementOuterWidth: function getHiddenElementOuterWidth(element) {
504
+ if (element) {
505
+ element.style.visibility = "hidden";
506
+ element.style.display = "block";
507
+ var elementWidth = element.offsetWidth;
508
+ element.style.display = "none";
509
+ element.style.visibility = "visible";
510
+ return elementWidth;
373
511
  }
374
512
  return 0;
375
513
  },
376
- getHiddenElementDimensions: function(t) {
377
- if (t) {
378
- var e = {};
379
- return t.style.visibility = "hidden", t.style.display = "block", e.width = t.offsetWidth, e.height = t.offsetHeight, t.style.display = "none", t.style.visibility = "visible", e;
514
+ getHiddenElementDimensions: function getHiddenElementDimensions(element) {
515
+ if (element) {
516
+ var dimensions = {};
517
+ element.style.visibility = "hidden";
518
+ element.style.display = "block";
519
+ dimensions.width = element.offsetWidth;
520
+ dimensions.height = element.offsetHeight;
521
+ element.style.display = "none";
522
+ element.style.visibility = "visible";
523
+ return dimensions;
380
524
  }
381
525
  return 0;
382
526
  },
383
- fadeIn: function(t, e) {
384
- if (t) {
385
- t.style.opacity = 0;
386
- var r = +/* @__PURE__ */ new Date(), i = 0, o = function a() {
387
- i = +t.style.opacity + ((/* @__PURE__ */ new Date()).getTime() - r) / e, t.style.opacity = i, r = +/* @__PURE__ */ new Date(), +i < 1 && (window.requestAnimationFrame && requestAnimationFrame(a) || setTimeout(a, 16));
527
+ fadeIn: function fadeIn(element, duration) {
528
+ if (element) {
529
+ element.style.opacity = 0;
530
+ var last = +/* @__PURE__ */ new Date();
531
+ var opacity = 0;
532
+ var tick = function tick2() {
533
+ opacity = +element.style.opacity + ((/* @__PURE__ */ new Date()).getTime() - last) / duration;
534
+ element.style.opacity = opacity;
535
+ last = +/* @__PURE__ */ new Date();
536
+ if (+opacity < 1) {
537
+ window.requestAnimationFrame && requestAnimationFrame(tick2) || setTimeout(tick2, 16);
538
+ }
388
539
  };
389
- o();
540
+ tick();
390
541
  }
391
542
  },
392
- fadeOut: function(t, e) {
393
- if (t)
394
- var r = 1, i = 50, o = e, a = i / o, s = setInterval(function() {
395
- r -= a, r <= 0 && (r = 0, clearInterval(s)), t.style.opacity = r;
396
- }, i);
543
+ fadeOut: function fadeOut(element, ms) {
544
+ if (element) {
545
+ var opacity = 1, interval = 50, duration = ms, gap = interval / duration;
546
+ var fading = setInterval(function() {
547
+ opacity -= gap;
548
+ if (opacity <= 0) {
549
+ opacity = 0;
550
+ clearInterval(fading);
551
+ }
552
+ element.style.opacity = opacity;
553
+ }, interval);
554
+ }
397
555
  },
398
- getUserAgent: function() {
556
+ getUserAgent: function getUserAgent() {
399
557
  return navigator.userAgent;
400
558
  },
401
- appendChild: function(t, e) {
402
- if (this.isElement(e)) e.appendChild(t);
403
- else if (e.el && e.elElement) e.elElement.appendChild(t);
404
- else throw new Error("Cannot append " + e + " to " + t);
405
- },
406
- isElement: function(t) {
407
- return (typeof HTMLElement > "u" ? "undefined" : m(HTMLElement)) === "object" ? t instanceof HTMLElement : t && m(t) === "object" && t !== null && t.nodeType === 1 && typeof t.nodeName == "string";
408
- },
409
- scrollInView: function(t, e) {
410
- var r = getComputedStyle(t).getPropertyValue("borderTopWidth"), i = r ? parseFloat(r) : 0, o = getComputedStyle(t).getPropertyValue("paddingTop"), a = o ? parseFloat(o) : 0, s = t.getBoundingClientRect(), u = e.getBoundingClientRect(), l = u.top + document.body.scrollTop - (s.top + document.body.scrollTop) - i - a, c = t.scrollTop, f = t.clientHeight, d = this.getOuterHeight(e);
411
- l < 0 ? t.scrollTop = c + l : l + d > f && (t.scrollTop = c + l - f + d);
559
+ appendChild: function appendChild(element, target) {
560
+ if (this.isElement(target)) target.appendChild(element);
561
+ else if (target.el && target.elElement) target.elElement.appendChild(element);
562
+ else throw new Error("Cannot append " + target + " to " + element);
563
+ },
564
+ isElement: function isElement(obj) {
565
+ return (typeof HTMLElement === "undefined" ? "undefined" : _typeof$3(HTMLElement)) === "object" ? obj instanceof HTMLElement : obj && _typeof$3(obj) === "object" && obj !== null && obj.nodeType === 1 && typeof obj.nodeName === "string";
566
+ },
567
+ scrollInView: function scrollInView(container, item) {
568
+ var borderTopValue = getComputedStyle(container).getPropertyValue("borderTopWidth");
569
+ var borderTop = borderTopValue ? parseFloat(borderTopValue) : 0;
570
+ var paddingTopValue = getComputedStyle(container).getPropertyValue("paddingTop");
571
+ var paddingTop = paddingTopValue ? parseFloat(paddingTopValue) : 0;
572
+ var containerRect = container.getBoundingClientRect();
573
+ var itemRect = item.getBoundingClientRect();
574
+ var offset = itemRect.top + document.body.scrollTop - (containerRect.top + document.body.scrollTop) - borderTop - paddingTop;
575
+ var scroll = container.scrollTop;
576
+ var elementHeight = container.clientHeight;
577
+ var itemHeight = this.getOuterHeight(item);
578
+ if (offset < 0) {
579
+ container.scrollTop = scroll + offset;
580
+ } else if (offset + itemHeight > elementHeight) {
581
+ container.scrollTop = scroll + offset - elementHeight + itemHeight;
582
+ }
412
583
  },
413
- clearSelection: function() {
414
- if (window.getSelection)
415
- window.getSelection().empty ? window.getSelection().empty() : window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0 && window.getSelection().removeAllRanges();
416
- else if (document.selection && document.selection.empty)
584
+ clearSelection: function clearSelection() {
585
+ if (window.getSelection) {
586
+ if (window.getSelection().empty) {
587
+ window.getSelection().empty();
588
+ } else if (window.getSelection().removeAllRanges && window.getSelection().rangeCount > 0 && window.getSelection().getRangeAt(0).getClientRects().length > 0) {
589
+ window.getSelection().removeAllRanges();
590
+ }
591
+ } else if (document["selection"] && document["selection"].empty) {
417
592
  try {
418
- document.selection.empty();
419
- } catch {
593
+ document["selection"].empty();
594
+ } catch (error) {
420
595
  }
596
+ }
421
597
  },
422
- getSelection: function() {
423
- return window.getSelection ? window.getSelection().toString() : document.getSelection ? document.getSelection().toString() : document.selection ? document.selection.createRange().text : null;
598
+ getSelection: function getSelection() {
599
+ if (window.getSelection) return window.getSelection().toString();
600
+ else if (document.getSelection) return document.getSelection().toString();
601
+ else if (document["selection"]) return document["selection"].createRange().text;
602
+ return null;
424
603
  },
425
- calculateScrollbarWidth: function() {
604
+ calculateScrollbarWidth: function calculateScrollbarWidth() {
426
605
  if (this.calculatedScrollbarWidth != null) return this.calculatedScrollbarWidth;
427
- var t = document.createElement("div");
428
- this.addStyles(t, {
606
+ var scrollDiv = document.createElement("div");
607
+ this.addStyles(scrollDiv, {
429
608
  width: "100px",
430
609
  height: "100px",
431
610
  overflow: "scroll",
432
611
  position: "absolute",
433
612
  top: "-9999px"
434
- }), document.body.appendChild(t);
435
- var e = t.offsetWidth - t.clientWidth;
436
- return document.body.removeChild(t), this.calculatedScrollbarWidth = e, e;
613
+ });
614
+ document.body.appendChild(scrollDiv);
615
+ var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;
616
+ document.body.removeChild(scrollDiv);
617
+ this.calculatedScrollbarWidth = scrollbarWidth;
618
+ return scrollbarWidth;
437
619
  },
438
- calculateBodyScrollbarWidth: function() {
620
+ calculateBodyScrollbarWidth: function calculateBodyScrollbarWidth() {
439
621
  return window.innerWidth - document.documentElement.offsetWidth;
440
622
  },
441
- getBrowser: function() {
623
+ getBrowser: function getBrowser() {
442
624
  if (!this.browser) {
443
- var t = this.resolveUserAgent();
444
- this.browser = {}, t.browser && (this.browser[t.browser] = !0, this.browser.version = t.version), this.browser.chrome ? this.browser.webkit = !0 : this.browser.webkit && (this.browser.safari = !0);
625
+ var matched = this.resolveUserAgent();
626
+ this.browser = {};
627
+ if (matched.browser) {
628
+ this.browser[matched.browser] = true;
629
+ this.browser["version"] = matched.version;
630
+ }
631
+ if (this.browser["chrome"]) {
632
+ this.browser["webkit"] = true;
633
+ } else if (this.browser["webkit"]) {
634
+ this.browser["safari"] = true;
635
+ }
445
636
  }
446
637
  return this.browser;
447
638
  },
448
- resolveUserAgent: function() {
449
- var t = navigator.userAgent.toLowerCase(), e = /(chrome)[ ]([\w.]+)/.exec(t) || /(webkit)[ ]([\w.]+)/.exec(t) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(t) || /(msie) ([\w.]+)/.exec(t) || t.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t) || [];
639
+ resolveUserAgent: function resolveUserAgent() {
640
+ var ua = navigator.userAgent.toLowerCase();
641
+ var match = /(chrome)[ ]([\w.]+)/.exec(ua) || /(webkit)[ ]([\w.]+)/.exec(ua) || /(opera)(?:.*version|)[ ]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) || [];
450
642
  return {
451
- browser: e[1] || "",
452
- version: e[2] || "0"
643
+ browser: match[1] || "",
644
+ version: match[2] || "0"
453
645
  };
454
646
  },
455
- isVisible: function(t) {
456
- return t && t.offsetParent != null;
457
- },
458
- invokeElementMethod: function(t, e, r) {
459
- t[e].apply(t, r);
460
- },
461
- isExist: function(t) {
462
- return !!(t !== null && typeof t < "u" && t.nodeName && this.getParentNode(t));
463
- },
464
- isClient: function() {
465
- return !!(typeof window < "u" && window.document && window.document.createElement);
466
- },
467
- focus: function(t, e) {
468
- t && document.activeElement !== t && t.focus(e);
469
- },
470
- isFocusableElement: function(t) {
471
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
472
- return this.isElement(t) ? t.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(e, `,
473
- [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
474
- input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
475
- select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
476
- textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
477
- [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
478
- [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e)) : !1;
479
- },
480
- getFocusableElements: function(t) {
481
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = this.find(t, 'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(e, `,
482
- [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
483
- input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
484
- select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
485
- textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
486
- [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e, `,
487
- [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(e)), i = [], o = x(r), a;
488
- try {
489
- for (o.s(); !(a = o.n()).done; ) {
490
- var s = a.value;
491
- getComputedStyle(s).display != "none" && getComputedStyle(s).visibility != "hidden" && i.push(s);
492
- }
493
- } catch (u) {
494
- o.e(u);
495
- } finally {
496
- o.f();
497
- }
498
- return i;
647
+ isVisible: function isVisible(element) {
648
+ return element && element.offsetParent != null;
649
+ },
650
+ invokeElementMethod: function invokeElementMethod(element, methodName, args) {
651
+ element[methodName].apply(element, args);
652
+ },
653
+ isExist: function isExist(element) {
654
+ return !!(element !== null && typeof element !== "undefined" && element.nodeName && this.getParentNode(element));
499
655
  },
500
- getFirstFocusableElement: function(t, e) {
501
- var r = this.getFocusableElements(t, e);
502
- return r.length > 0 ? r[0] : null;
656
+ isClient: function isClient() {
657
+ return !!(typeof window !== "undefined" && window.document && window.document.createElement);
503
658
  },
504
- getLastFocusableElement: function(t, e) {
505
- var r = this.getFocusableElements(t, e);
506
- return r.length > 0 ? r[r.length - 1] : null;
659
+ focus: function focus(el, options) {
660
+ el && document.activeElement !== el && el.focus(options);
507
661
  },
508
- getNextFocusableElement: function(t, e, r) {
509
- var i = this.getFocusableElements(t, r), o = i.length > 0 ? i.findIndex(function(s) {
510
- return s === e;
511
- }) : -1, a = o > -1 && i.length >= o + 1 ? o + 1 : -1;
512
- return a > -1 ? i[a] : null;
662
+ isFocusableElement: function isFocusableElement(element) {
663
+ var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
664
+ return this.isElement(element) ? element.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(selector, ',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector)) : false;
513
665
  },
514
- getPreviousElementSibling: function(t, e) {
515
- for (var r = t.previousElementSibling; r; ) {
516
- if (r.matches(e))
517
- return r;
518
- r = r.previousElementSibling;
666
+ getFocusableElements: function getFocusableElements(element) {
667
+ var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
668
+ var focusableElements = this.find(element, 'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(selector, ',\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector, ',\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])').concat(selector));
669
+ var visibleFocusableElements = [];
670
+ var _iterator3 = _createForOfIteratorHelper$1(focusableElements), _step3;
671
+ try {
672
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
673
+ var focusableElement = _step3.value;
674
+ if (getComputedStyle(focusableElement).display != "none" && getComputedStyle(focusableElement).visibility != "hidden") visibleFocusableElements.push(focusableElement);
675
+ }
676
+ } catch (err) {
677
+ _iterator3.e(err);
678
+ } finally {
679
+ _iterator3.f();
680
+ }
681
+ return visibleFocusableElements;
682
+ },
683
+ getFirstFocusableElement: function getFirstFocusableElement(element, selector) {
684
+ var focusableElements = this.getFocusableElements(element, selector);
685
+ return focusableElements.length > 0 ? focusableElements[0] : null;
686
+ },
687
+ getLastFocusableElement: function getLastFocusableElement(element, selector) {
688
+ var focusableElements = this.getFocusableElements(element, selector);
689
+ return focusableElements.length > 0 ? focusableElements[focusableElements.length - 1] : null;
690
+ },
691
+ getNextFocusableElement: function getNextFocusableElement(container, element, selector) {
692
+ var focusableElements = this.getFocusableElements(container, selector);
693
+ var index2 = focusableElements.length > 0 ? focusableElements.findIndex(function(el) {
694
+ return el === element;
695
+ }) : -1;
696
+ var nextIndex = index2 > -1 && focusableElements.length >= index2 + 1 ? index2 + 1 : -1;
697
+ return nextIndex > -1 ? focusableElements[nextIndex] : null;
698
+ },
699
+ getPreviousElementSibling: function getPreviousElementSibling(element, selector) {
700
+ var previousElement = element.previousElementSibling;
701
+ while (previousElement) {
702
+ if (previousElement.matches(selector)) {
703
+ return previousElement;
704
+ } else {
705
+ previousElement = previousElement.previousElementSibling;
706
+ }
519
707
  }
520
708
  return null;
521
709
  },
522
- getNextElementSibling: function(t, e) {
523
- for (var r = t.nextElementSibling; r; ) {
524
- if (r.matches(e))
525
- return r;
526
- r = r.nextElementSibling;
710
+ getNextElementSibling: function getNextElementSibling(element, selector) {
711
+ var nextElement = element.nextElementSibling;
712
+ while (nextElement) {
713
+ if (nextElement.matches(selector)) {
714
+ return nextElement;
715
+ } else {
716
+ nextElement = nextElement.nextElementSibling;
717
+ }
527
718
  }
528
719
  return null;
529
720
  },
530
- isClickable: function(t) {
531
- if (t) {
532
- var e = t.nodeName, r = t.parentElement && t.parentElement.nodeName;
533
- return e === "INPUT" || e === "TEXTAREA" || e === "BUTTON" || e === "A" || r === "INPUT" || r === "TEXTAREA" || r === "BUTTON" || r === "A" || !!t.closest(".p-button, .p-checkbox, .p-radiobutton");
721
+ isClickable: function isClickable(element) {
722
+ if (element) {
723
+ var targetNode = element.nodeName;
724
+ var parentNode = element.parentElement && element.parentElement.nodeName;
725
+ return targetNode === "INPUT" || targetNode === "TEXTAREA" || targetNode === "BUTTON" || targetNode === "A" || parentNode === "INPUT" || parentNode === "TEXTAREA" || parentNode === "BUTTON" || parentNode === "A" || !!element.closest(".p-button, .p-checkbox, .p-radiobutton");
726
+ }
727
+ return false;
728
+ },
729
+ applyStyle: function applyStyle(element, style) {
730
+ if (typeof style === "string") {
731
+ element.style.cssText = style;
732
+ } else {
733
+ for (var prop in style) {
734
+ element.style[prop] = style[prop];
735
+ }
534
736
  }
535
- return !1;
536
- },
537
- applyStyle: function(t, e) {
538
- if (typeof e == "string")
539
- t.style.cssText = e;
540
- else
541
- for (var r in e)
542
- t.style[r] = e[r];
543
737
  },
544
- isIOS: function() {
545
- return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
738
+ isIOS: function isIOS() {
739
+ return /iPad|iPhone|iPod/.test(navigator.userAgent) && !window["MSStream"];
546
740
  },
547
- isAndroid: function() {
741
+ isAndroid: function isAndroid() {
548
742
  return /(android)/i.test(navigator.userAgent);
549
743
  },
550
- isTouchDevice: function() {
744
+ isTouchDevice: function isTouchDevice() {
551
745
  return "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
552
746
  },
553
- hasCSSAnimation: function(t) {
554
- if (t) {
555
- var e = getComputedStyle(t), r = parseFloat(e.getPropertyValue("animation-duration") || "0");
556
- return r > 0;
747
+ hasCSSAnimation: function hasCSSAnimation(element) {
748
+ if (element) {
749
+ var style = getComputedStyle(element);
750
+ var animationDuration = parseFloat(style.getPropertyValue("animation-duration") || "0");
751
+ return animationDuration > 0;
557
752
  }
558
- return !1;
753
+ return false;
559
754
  },
560
- hasCSSTransition: function(t) {
561
- if (t) {
562
- var e = getComputedStyle(t), r = parseFloat(e.getPropertyValue("transition-duration") || "0");
563
- return r > 0;
755
+ hasCSSTransition: function hasCSSTransition(element) {
756
+ if (element) {
757
+ var style = getComputedStyle(element);
758
+ var transitionDuration = parseFloat(style.getPropertyValue("transition-duration") || "0");
759
+ return transitionDuration > 0;
564
760
  }
565
- return !1;
761
+ return false;
566
762
  },
567
- exportCSV: function(t, e) {
568
- var r = new Blob([t], {
763
+ exportCSV: function exportCSV(csv, filename) {
764
+ var blob = new Blob([csv], {
569
765
  type: "application/csv;charset=utf-8;"
570
766
  });
571
- if (window.navigator.msSaveOrOpenBlob)
572
- navigator.msSaveOrOpenBlob(r, e + ".csv");
573
- else {
574
- var i = document.createElement("a");
575
- i.download !== void 0 ? (i.setAttribute("href", URL.createObjectURL(r)), i.setAttribute("download", e + ".csv"), i.style.display = "none", document.body.appendChild(i), i.click(), document.body.removeChild(i)) : (t = "data:text/csv;charset=utf-8," + t, window.open(encodeURI(t)));
767
+ if (window.navigator.msSaveOrOpenBlob) {
768
+ navigator.msSaveOrOpenBlob(blob, filename + ".csv");
769
+ } else {
770
+ var link = document.createElement("a");
771
+ if (link.download !== void 0) {
772
+ link.setAttribute("href", URL.createObjectURL(blob));
773
+ link.setAttribute("download", filename + ".csv");
774
+ link.style.display = "none";
775
+ document.body.appendChild(link);
776
+ link.click();
777
+ document.body.removeChild(link);
778
+ } else {
779
+ csv = "data:text/csv;charset=utf-8," + csv;
780
+ window.open(encodeURI(csv));
781
+ }
576
782
  }
577
783
  },
578
- blockBodyScroll: function() {
579
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "p-overflow-hidden";
580
- document.body.style.setProperty("--scrollbar-width", this.calculateBodyScrollbarWidth() + "px"), this.addClass(document.body, t);
784
+ blockBodyScroll: function blockBodyScroll() {
785
+ var className = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "p-overflow-hidden";
786
+ document.body.style.setProperty("--scrollbar-width", this.calculateBodyScrollbarWidth() + "px");
787
+ this.addClass(document.body, className);
581
788
  },
582
- unblockBodyScroll: function() {
583
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "p-overflow-hidden";
584
- document.body.style.removeProperty("--scrollbar-width"), this.removeClass(document.body, t);
789
+ unblockBodyScroll: function unblockBodyScroll() {
790
+ var className = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "p-overflow-hidden";
791
+ document.body.style.removeProperty("--scrollbar-width");
792
+ this.removeClass(document.body, className);
585
793
  }
586
794
  };
587
- function S(n) {
795
+ function _typeof$2(o) {
588
796
  "@babel/helpers - typeof";
589
- return S = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
590
- return typeof t;
591
- } : function(t) {
592
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
593
- }, S(n);
797
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
798
+ return typeof o2;
799
+ } : function(o2) {
800
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
801
+ }, _typeof$2(o);
594
802
  }
595
- function N(n, t) {
596
- if (!(n instanceof t))
803
+ function _classCallCheck$1(instance, Constructor) {
804
+ if (!(instance instanceof Constructor)) {
597
805
  throw new TypeError("Cannot call a class as a function");
806
+ }
598
807
  }
599
- function U(n, t) {
600
- for (var e = 0; e < t.length; e++) {
601
- var r = t[e];
602
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(n, Z(r.key), r);
808
+ function _defineProperties$1(target, props) {
809
+ for (var i = 0; i < props.length; i++) {
810
+ var descriptor = props[i];
811
+ descriptor.enumerable = descriptor.enumerable || false;
812
+ descriptor.configurable = true;
813
+ if ("value" in descriptor) descriptor.writable = true;
814
+ Object.defineProperty(target, _toPropertyKey$1(descriptor.key), descriptor);
603
815
  }
604
816
  }
605
- function k(n, t, e) {
606
- return t && U(n.prototype, t), Object.defineProperty(n, "prototype", { writable: !1 }), n;
817
+ function _createClass$1(Constructor, protoProps, staticProps) {
818
+ if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
819
+ Object.defineProperty(Constructor, "prototype", { writable: false });
820
+ return Constructor;
607
821
  }
608
- function Z(n) {
609
- var t = q(n, "string");
610
- return S(t) == "symbol" ? t : String(t);
822
+ function _toPropertyKey$1(t) {
823
+ var i = _toPrimitive$1(t, "string");
824
+ return "symbol" == _typeof$2(i) ? i : String(i);
611
825
  }
612
- function q(n, t) {
613
- if (S(n) != "object" || !n) return n;
614
- var e = n[Symbol.toPrimitive];
615
- if (e !== void 0) {
616
- var r = e.call(n, t);
617
- if (S(r) != "object") return r;
826
+ function _toPrimitive$1(t, r) {
827
+ if ("object" != _typeof$2(t) || !t) return t;
828
+ var e = t[Symbol.toPrimitive];
829
+ if (void 0 !== e) {
830
+ var i = e.call(t, r);
831
+ if ("object" != _typeof$2(i)) return i;
618
832
  throw new TypeError("@@toPrimitive must return a primitive value.");
619
833
  }
620
- return String(n);
834
+ return String(t);
621
835
  }
622
- var it = /* @__PURE__ */ function() {
623
- function n(t) {
624
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {
836
+ var ConnectedOverlayScrollHandler = /* @__PURE__ */ function() {
837
+ function ConnectedOverlayScrollHandler2(element) {
838
+ var listener = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function() {
625
839
  };
626
- N(this, n), this.element = t, this.listener = e;
840
+ _classCallCheck$1(this, ConnectedOverlayScrollHandler2);
841
+ this.element = element;
842
+ this.listener = listener;
627
843
  }
628
- return k(n, [{
844
+ _createClass$1(ConnectedOverlayScrollHandler2, [{
629
845
  key: "bindScrollListener",
630
- value: function() {
631
- this.scrollableParents = _.getScrollableParents(this.element);
632
- for (var e = 0; e < this.scrollableParents.length; e++)
633
- this.scrollableParents[e].addEventListener("scroll", this.listener);
846
+ value: function bindScrollListener() {
847
+ this.scrollableParents = DomHandler.getScrollableParents(this.element);
848
+ for (var i = 0; i < this.scrollableParents.length; i++) {
849
+ this.scrollableParents[i].addEventListener("scroll", this.listener);
850
+ }
634
851
  }
635
852
  }, {
636
853
  key: "unbindScrollListener",
637
- value: function() {
638
- if (this.scrollableParents)
639
- for (var e = 0; e < this.scrollableParents.length; e++)
640
- this.scrollableParents[e].removeEventListener("scroll", this.listener);
854
+ value: function unbindScrollListener() {
855
+ if (this.scrollableParents) {
856
+ for (var i = 0; i < this.scrollableParents.length; i++) {
857
+ this.scrollableParents[i].removeEventListener("scroll", this.listener);
858
+ }
859
+ }
641
860
  }
642
861
  }, {
643
862
  key: "destroy",
644
- value: function() {
645
- this.unbindScrollListener(), this.element = null, this.listener = null, this.scrollableParents = null;
863
+ value: function destroy() {
864
+ this.unbindScrollListener();
865
+ this.element = null;
866
+ this.listener = null;
867
+ this.scrollableParents = null;
646
868
  }
647
- }]), n;
869
+ }]);
870
+ return ConnectedOverlayScrollHandler2;
648
871
  }();
649
- function ot() {
650
- var n = /* @__PURE__ */ new Map();
872
+ function primebus() {
873
+ var allHandlers = /* @__PURE__ */ new Map();
651
874
  return {
652
- on: function(e, r) {
653
- var i = n.get(e);
654
- i ? i.push(r) : i = [r], n.set(e, i);
875
+ on: function on(type, handler2) {
876
+ var handlers = allHandlers.get(type);
877
+ if (!handlers) handlers = [handler2];
878
+ else handlers.push(handler2);
879
+ allHandlers.set(type, handlers);
655
880
  },
656
- off: function(e, r) {
657
- var i = n.get(e);
658
- i && i.splice(i.indexOf(r) >>> 0, 1);
881
+ off: function off(type, handler2) {
882
+ var handlers = allHandlers.get(type);
883
+ if (handlers) {
884
+ handlers.splice(handlers.indexOf(handler2) >>> 0, 1);
885
+ }
659
886
  },
660
- emit: function(e, r) {
661
- var i = n.get(e);
662
- i && i.slice().map(function(o) {
663
- o(r);
664
- });
887
+ emit: function emit(type, evt) {
888
+ var handlers = allHandlers.get(type);
889
+ if (handlers) {
890
+ handlers.slice().map(function(handler2) {
891
+ handler2(evt);
892
+ });
893
+ }
665
894
  }
666
895
  };
667
896
  }
668
- function P(n, t) {
669
- return z(n) || K(n, t) || O(n, t) || M();
897
+ function _slicedToArray(arr, i) {
898
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
670
899
  }
671
- function M() {
672
- throw new TypeError(`Invalid attempt to destructure non-iterable instance.
673
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
900
+ function _nonIterableRest() {
901
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
674
902
  }
675
- function K(n, t) {
676
- var e = n == null ? null : typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
677
- if (e != null) {
678
- var r, i, o, a, s = [], u = !0, l = !1;
903
+ function _iterableToArrayLimit(r, l) {
904
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
905
+ if (null != t) {
906
+ var e, n, i, u, a = [], f = true, o = false;
679
907
  try {
680
- if (o = (e = e.call(n)).next, t !== 0) for (; !(u = (r = o.call(e)).done) && (s.push(r.value), s.length !== t); u = !0) ;
681
- } catch (c) {
682
- l = !0, i = c;
908
+ if (i = (t = t.call(r)).next, 0 === l) ;
909
+ else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
910
+ } catch (r2) {
911
+ o = true, n = r2;
683
912
  } finally {
684
913
  try {
685
- if (!u && e.return != null && (a = e.return(), Object(a) !== a)) return;
914
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
686
915
  } finally {
687
- if (l) throw i;
916
+ if (o) throw n;
688
917
  }
689
918
  }
690
- return s;
919
+ return a;
691
920
  }
692
921
  }
693
- function z(n) {
694
- if (Array.isArray(n)) return n;
922
+ function _arrayWithHoles(arr) {
923
+ if (Array.isArray(arr)) return arr;
695
924
  }
696
- function L(n) {
697
- return J(n) || Y(n) || O(n) || X();
925
+ function _toConsumableArray$2(arr) {
926
+ return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2();
698
927
  }
699
- function X() {
700
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
701
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
928
+ function _nonIterableSpread$2() {
929
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
702
930
  }
703
- function Y(n) {
704
- if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
931
+ function _iterableToArray$2(iter) {
932
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
705
933
  }
706
- function J(n) {
707
- if (Array.isArray(n)) return I(n);
934
+ function _arrayWithoutHoles$2(arr) {
935
+ if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
708
936
  }
709
- function A(n, t) {
710
- var e = typeof Symbol < "u" && n[Symbol.iterator] || n["@@iterator"];
711
- if (!e) {
712
- if (Array.isArray(n) || (e = O(n)) || t) {
713
- e && (n = e);
714
- var r = 0, i = function() {
937
+ function _createForOfIteratorHelper(o, allowArrayLike) {
938
+ var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
939
+ if (!it) {
940
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike) {
941
+ if (it) o = it;
942
+ var i = 0;
943
+ var F = function F2() {
715
944
  };
716
- return { s: i, n: function() {
717
- return r >= n.length ? { done: !0 } : { done: !1, value: n[r++] };
718
- }, e: function(l) {
719
- throw l;
720
- }, f: i };
721
- }
722
- throw new TypeError(`Invalid attempt to iterate non-iterable instance.
723
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
945
+ return { s: F, n: function n() {
946
+ if (i >= o.length) return { done: true };
947
+ return { done: false, value: o[i++] };
948
+ }, e: function e(_e) {
949
+ throw _e;
950
+ }, f: F };
951
+ }
952
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
724
953
  }
725
- var o = !0, a = !1, s;
726
- return { s: function() {
727
- e = e.call(n);
728
- }, n: function() {
729
- var l = e.next();
730
- return o = l.done, l;
731
- }, e: function(l) {
732
- a = !0, s = l;
733
- }, f: function() {
954
+ var normalCompletion = true, didErr = false, err;
955
+ return { s: function s() {
956
+ it = it.call(o);
957
+ }, n: function n() {
958
+ var step = it.next();
959
+ normalCompletion = step.done;
960
+ return step;
961
+ }, e: function e(_e2) {
962
+ didErr = true;
963
+ err = _e2;
964
+ }, f: function f() {
734
965
  try {
735
- !o && e.return != null && e.return();
966
+ if (!normalCompletion && it["return"] != null) it["return"]();
736
967
  } finally {
737
- if (a) throw s;
968
+ if (didErr) throw err;
738
969
  }
739
970
  } };
740
971
  }
741
- function O(n, t) {
742
- if (n) {
743
- if (typeof n == "string") return I(n, t);
744
- var e = Object.prototype.toString.call(n).slice(8, -1);
745
- if (e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set") return Array.from(n);
746
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return I(n, t);
747
- }
972
+ function _unsupportedIterableToArray$2(o, minLen) {
973
+ if (!o) return;
974
+ if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
975
+ var n = Object.prototype.toString.call(o).slice(8, -1);
976
+ if (n === "Object" && o.constructor) n = o.constructor.name;
977
+ if (n === "Map" || n === "Set") return Array.from(o);
978
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
748
979
  }
749
- function I(n, t) {
750
- (t == null || t > n.length) && (t = n.length);
751
- for (var e = 0, r = new Array(t); e < t; e++) r[e] = n[e];
752
- return r;
980
+ function _arrayLikeToArray$2(arr, len) {
981
+ if (len == null || len > arr.length) len = arr.length;
982
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
983
+ return arr2;
753
984
  }
754
- function v(n) {
985
+ function _typeof$1(o) {
755
986
  "@babel/helpers - typeof";
756
- return v = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
757
- return typeof t;
758
- } : function(t) {
759
- return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
760
- }, v(n);
987
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
988
+ return typeof o2;
989
+ } : function(o2) {
990
+ return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
991
+ }, _typeof$1(o);
761
992
  }
762
- var at = {
763
- equals: function(t, e, r) {
764
- return r ? this.resolveFieldData(t, r) === this.resolveFieldData(e, r) : this.deepEquals(t, e);
765
- },
766
- deepEquals: function(t, e) {
767
- if (t === e) return !0;
768
- if (t && e && v(t) == "object" && v(e) == "object") {
769
- var r = Array.isArray(t), i = Array.isArray(e), o, a, s;
770
- if (r && i) {
771
- if (a = t.length, a != e.length) return !1;
772
- for (o = a; o-- !== 0; ) if (!this.deepEquals(t[o], e[o])) return !1;
773
- return !0;
993
+ var ObjectUtils = {
994
+ equals: function equals(obj1, obj2, field) {
995
+ if (field) return this.resolveFieldData(obj1, field) === this.resolveFieldData(obj2, field);
996
+ else return this.deepEquals(obj1, obj2);
997
+ },
998
+ deepEquals: function deepEquals(a, b) {
999
+ if (a === b) return true;
1000
+ if (a && b && _typeof$1(a) == "object" && _typeof$1(b) == "object") {
1001
+ var arrA = Array.isArray(a), arrB = Array.isArray(b), i, length, key;
1002
+ if (arrA && arrB) {
1003
+ length = a.length;
1004
+ if (length != b.length) return false;
1005
+ for (i = length; i-- !== 0; ) if (!this.deepEquals(a[i], b[i])) return false;
1006
+ return true;
1007
+ }
1008
+ if (arrA != arrB) return false;
1009
+ var dateA = a instanceof Date, dateB = b instanceof Date;
1010
+ if (dateA != dateB) return false;
1011
+ if (dateA && dateB) return a.getTime() == b.getTime();
1012
+ var regexpA = a instanceof RegExp, regexpB = b instanceof RegExp;
1013
+ if (regexpA != regexpB) return false;
1014
+ if (regexpA && regexpB) return a.toString() == b.toString();
1015
+ var keys = Object.keys(a);
1016
+ length = keys.length;
1017
+ if (length !== Object.keys(b).length) return false;
1018
+ for (i = length; i-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
1019
+ for (i = length; i-- !== 0; ) {
1020
+ key = keys[i];
1021
+ if (!this.deepEquals(a[key], b[key])) return false;
774
1022
  }
775
- if (r != i) return !1;
776
- var u = t instanceof Date, l = e instanceof Date;
777
- if (u != l) return !1;
778
- if (u && l) return t.getTime() == e.getTime();
779
- var c = t instanceof RegExp, f = e instanceof RegExp;
780
- if (c != f) return !1;
781
- if (c && f) return t.toString() == e.toString();
782
- var d = Object.keys(t);
783
- if (a = d.length, a !== Object.keys(e).length) return !1;
784
- for (o = a; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(e, d[o])) return !1;
785
- for (o = a; o-- !== 0; )
786
- if (s = d[o], !this.deepEquals(t[s], e[s])) return !1;
787
- return !0;
788
- }
789
- return t !== t && e !== e;
790
- },
791
- resolveFieldData: function(t, e) {
792
- if (!t || !e)
1023
+ return true;
1024
+ }
1025
+ return a !== a && b !== b;
1026
+ },
1027
+ resolveFieldData: function resolveFieldData(data, field) {
1028
+ if (!data || !field) {
793
1029
  return null;
1030
+ }
794
1031
  try {
795
- var r = t[e];
796
- if (this.isNotEmpty(r)) return r;
797
- } catch {
798
- }
799
- if (Object.keys(t).length) {
800
- if (this.isFunction(e))
801
- return e(t);
802
- if (e.indexOf(".") === -1)
803
- return t[e];
804
- for (var i = e.split("."), o = t, a = 0, s = i.length; a < s; ++a) {
805
- if (o == null)
806
- return null;
807
- o = o[i[a]];
1032
+ var value = data[field];
1033
+ if (this.isNotEmpty(value)) return value;
1034
+ } catch (_unused) {
1035
+ }
1036
+ if (Object.keys(data).length) {
1037
+ if (this.isFunction(field)) {
1038
+ return field(data);
1039
+ } else if (field.indexOf(".") === -1) {
1040
+ return data[field];
1041
+ } else {
1042
+ var fields = field.split(".");
1043
+ var _value = data;
1044
+ for (var i = 0, len = fields.length; i < len; ++i) {
1045
+ if (_value == null) {
1046
+ return null;
1047
+ }
1048
+ _value = _value[fields[i]];
1049
+ }
1050
+ return _value;
808
1051
  }
809
- return o;
810
1052
  }
811
1053
  return null;
812
1054
  },
813
- getItemValue: function(t) {
814
- for (var e = arguments.length, r = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
815
- r[i - 1] = arguments[i];
816
- return this.isFunction(t) ? t.apply(void 0, r) : t;
1055
+ getItemValue: function getItemValue(obj) {
1056
+ for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
1057
+ params[_key - 1] = arguments[_key];
1058
+ }
1059
+ return this.isFunction(obj) ? obj.apply(void 0, params) : obj;
817
1060
  },
818
- filter: function(t, e, r) {
819
- var i = [];
820
- if (t) {
821
- var o = A(t), a;
1061
+ filter: function filter(value, fields, filterValue) {
1062
+ var filteredItems = [];
1063
+ if (value) {
1064
+ var _iterator = _createForOfIteratorHelper(value), _step;
822
1065
  try {
823
- for (o.s(); !(a = o.n()).done; ) {
824
- var s = a.value, u = A(e), l;
1066
+ for (_iterator.s(); !(_step = _iterator.n()).done; ) {
1067
+ var item = _step.value;
1068
+ var _iterator2 = _createForOfIteratorHelper(fields), _step2;
825
1069
  try {
826
- for (u.s(); !(l = u.n()).done; ) {
827
- var c = l.value;
828
- if (String(this.resolveFieldData(s, c)).toLowerCase().indexOf(r.toLowerCase()) > -1) {
829
- i.push(s);
1070
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
1071
+ var field = _step2.value;
1072
+ if (String(this.resolveFieldData(item, field)).toLowerCase().indexOf(filterValue.toLowerCase()) > -1) {
1073
+ filteredItems.push(item);
830
1074
  break;
831
1075
  }
832
1076
  }
833
- } catch (f) {
834
- u.e(f);
1077
+ } catch (err) {
1078
+ _iterator2.e(err);
835
1079
  } finally {
836
- u.f();
1080
+ _iterator2.f();
837
1081
  }
838
1082
  }
839
- } catch (f) {
840
- o.e(f);
1083
+ } catch (err) {
1084
+ _iterator.e(err);
841
1085
  } finally {
842
- o.f();
1086
+ _iterator.f();
843
1087
  }
844
1088
  }
845
- return i;
1089
+ return filteredItems;
846
1090
  },
847
- reorderArray: function(t, e, r) {
848
- t && e !== r && (r >= t.length && (r %= t.length, e %= t.length), t.splice(r, 0, t.splice(e, 1)[0]));
1091
+ reorderArray: function reorderArray(value, from, to) {
1092
+ if (value && from !== to) {
1093
+ if (to >= value.length) {
1094
+ to %= value.length;
1095
+ from %= value.length;
1096
+ }
1097
+ value.splice(to, 0, value.splice(from, 1)[0]);
1098
+ }
849
1099
  },
850
- findIndexInList: function(t, e) {
851
- var r = -1;
852
- if (e) {
853
- for (var i = 0; i < e.length; i++)
854
- if (e[i] === t) {
855
- r = i;
1100
+ findIndexInList: function findIndexInList(value, list) {
1101
+ var index2 = -1;
1102
+ if (list) {
1103
+ for (var i = 0; i < list.length; i++) {
1104
+ if (list[i] === value) {
1105
+ index2 = i;
856
1106
  break;
857
1107
  }
1108
+ }
858
1109
  }
859
- return r;
1110
+ return index2;
860
1111
  },
861
- contains: function(t, e) {
862
- if (t != null && e && e.length) {
863
- var r = A(e), i;
1112
+ contains: function contains(value, list) {
1113
+ if (value != null && list && list.length) {
1114
+ var _iterator3 = _createForOfIteratorHelper(list), _step3;
864
1115
  try {
865
- for (r.s(); !(i = r.n()).done; ) {
866
- var o = i.value;
867
- if (this.equals(t, o)) return !0;
1116
+ for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
1117
+ var val = _step3.value;
1118
+ if (this.equals(value, val)) return true;
868
1119
  }
869
- } catch (a) {
870
- r.e(a);
1120
+ } catch (err) {
1121
+ _iterator3.e(err);
871
1122
  } finally {
872
- r.f();
1123
+ _iterator3.f();
873
1124
  }
874
1125
  }
875
- return !1;
876
- },
877
- insertIntoOrderedArray: function(t, e, r, i) {
878
- if (r.length > 0) {
879
- for (var o = !1, a = 0; a < r.length; a++) {
880
- var s = this.findIndexInList(r[a], i);
881
- if (s > e) {
882
- r.splice(a, 0, t), o = !0;
1126
+ return false;
1127
+ },
1128
+ insertIntoOrderedArray: function insertIntoOrderedArray(item, index2, arr, sourceArr) {
1129
+ if (arr.length > 0) {
1130
+ var injected = false;
1131
+ for (var i = 0; i < arr.length; i++) {
1132
+ var currentItemIndex = this.findIndexInList(arr[i], sourceArr);
1133
+ if (currentItemIndex > index2) {
1134
+ arr.splice(i, 0, item);
1135
+ injected = true;
883
1136
  break;
884
1137
  }
885
1138
  }
886
- o || r.push(t);
887
- } else
888
- r.push(t);
889
- },
890
- removeAccents: function(t) {
891
- return t && t.search(/[\xC0-\xFF]/g) > -1 && (t = t.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y")), t;
892
- },
893
- getVNodeProp: function(t, e) {
894
- if (t) {
895
- var r = t.props;
896
- if (r) {
897
- var i = e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), o = Object.prototype.hasOwnProperty.call(r, i) ? i : e;
898
- return t.type.extends.props[e].type === Boolean && r[o] === "" ? !0 : r[o];
1139
+ if (!injected) {
1140
+ arr.push(item);
1141
+ }
1142
+ } else {
1143
+ arr.push(item);
1144
+ }
1145
+ },
1146
+ removeAccents: function removeAccents(str) {
1147
+ if (str && str.search(/[\xC0-\xFF]/g) > -1) {
1148
+ str = str.replace(/[\xC0-\xC5]/g, "A").replace(/[\xC6]/g, "AE").replace(/[\xC7]/g, "C").replace(/[\xC8-\xCB]/g, "E").replace(/[\xCC-\xCF]/g, "I").replace(/[\xD0]/g, "D").replace(/[\xD1]/g, "N").replace(/[\xD2-\xD6\xD8]/g, "O").replace(/[\xD9-\xDC]/g, "U").replace(/[\xDD]/g, "Y").replace(/[\xDE]/g, "P").replace(/[\xE0-\xE5]/g, "a").replace(/[\xE6]/g, "ae").replace(/[\xE7]/g, "c").replace(/[\xE8-\xEB]/g, "e").replace(/[\xEC-\xEF]/g, "i").replace(/[\xF1]/g, "n").replace(/[\xF2-\xF6\xF8]/g, "o").replace(/[\xF9-\xFC]/g, "u").replace(/[\xFE]/g, "p").replace(/[\xFD\xFF]/g, "y");
1149
+ }
1150
+ return str;
1151
+ },
1152
+ getVNodeProp: function getVNodeProp(vnode, prop) {
1153
+ if (vnode) {
1154
+ var props = vnode.props;
1155
+ if (props) {
1156
+ var kebabProp = prop.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
1157
+ var propName = Object.prototype.hasOwnProperty.call(props, kebabProp) ? kebabProp : prop;
1158
+ return vnode.type["extends"].props[prop].type === Boolean && props[propName] === "" ? true : props[propName];
899
1159
  }
900
1160
  }
901
1161
  return null;
902
1162
  },
903
- toFlatCase: function(t) {
904
- return this.isString(t) ? t.replace(/(-|_)/g, "").toLowerCase() : t;
1163
+ toFlatCase: function toFlatCase(str) {
1164
+ return this.isString(str) ? str.replace(/(-|_)/g, "").toLowerCase() : str;
905
1165
  },
906
- toKebabCase: function(t) {
907
- return this.isString(t) ? t.replace(/(_)/g, "-").replace(/[A-Z]/g, function(e, r) {
908
- return r === 0 ? e : "-" + e.toLowerCase();
909
- }).toLowerCase() : t;
1166
+ toKebabCase: function toKebabCase(str) {
1167
+ return this.isString(str) ? str.replace(/(_)/g, "-").replace(/[A-Z]/g, function(c, i) {
1168
+ return i === 0 ? c : "-" + c.toLowerCase();
1169
+ }).toLowerCase() : str;
910
1170
  },
911
- toCapitalCase: function(t) {
912
- return this.isString(t, {
913
- empty: !1
914
- }) ? t[0].toUpperCase() + t.slice(1) : t;
1171
+ toCapitalCase: function toCapitalCase(str) {
1172
+ return this.isString(str, {
1173
+ empty: false
1174
+ }) ? str[0].toUpperCase() + str.slice(1) : str;
915
1175
  },
916
- isEmpty: function(t) {
917
- return t == null || t === "" || Array.isArray(t) && t.length === 0 || !(t instanceof Date) && v(t) === "object" && Object.keys(t).length === 0;
1176
+ isEmpty: function isEmpty(value) {
1177
+ return value === null || value === void 0 || value === "" || Array.isArray(value) && value.length === 0 || !(value instanceof Date) && _typeof$1(value) === "object" && Object.keys(value).length === 0;
918
1178
  },
919
- isNotEmpty: function(t) {
920
- return !this.isEmpty(t);
1179
+ isNotEmpty: function isNotEmpty(value) {
1180
+ return !this.isEmpty(value);
921
1181
  },
922
- isFunction: function(t) {
923
- return !!(t && t.constructor && t.call && t.apply);
1182
+ isFunction: function isFunction(value) {
1183
+ return !!(value && value.constructor && value.call && value.apply);
924
1184
  },
925
- isObject: function(t) {
926
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
927
- return t instanceof Object && t.constructor === Object && (e || Object.keys(t).length !== 0);
1185
+ isObject: function isObject(value) {
1186
+ var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
1187
+ return value instanceof Object && value.constructor === Object && (empty || Object.keys(value).length !== 0);
928
1188
  },
929
- isDate: function(t) {
930
- return t instanceof Date && t.constructor === Date;
1189
+ isDate: function isDate(value) {
1190
+ return value instanceof Date && value.constructor === Date;
931
1191
  },
932
- isArray: function(t) {
933
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
934
- return Array.isArray(t) && (e || t.length !== 0);
1192
+ isArray: function isArray(value) {
1193
+ var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
1194
+ return Array.isArray(value) && (empty || value.length !== 0);
935
1195
  },
936
- isString: function(t) {
937
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
938
- return typeof t == "string" && (e || t !== "");
1196
+ isString: function isString(value) {
1197
+ var empty = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
1198
+ return typeof value === "string" && (empty || value !== "");
939
1199
  },
940
- isPrintableCharacter: function() {
941
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
942
- return this.isNotEmpty(t) && t.length === 1 && t.match(/\S| /);
1200
+ isPrintableCharacter: function isPrintableCharacter() {
1201
+ var _char = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "";
1202
+ return this.isNotEmpty(_char) && _char.length === 1 && _char.match(/\S| /);
943
1203
  },
944
1204
  /**
945
1205
  * Firefox-v103 does not currently support the "findLast" method. It is stated that this method will be supported with Firefox-v104.
946
1206
  * https://caniuse.com/mdn-javascript_builtins_array_findlast
947
1207
  */
948
- findLast: function(t, e) {
949
- var r;
950
- if (this.isNotEmpty(t))
1208
+ findLast: function findLast(arr, callback) {
1209
+ var item;
1210
+ if (this.isNotEmpty(arr)) {
951
1211
  try {
952
- r = t.findLast(e);
953
- } catch {
954
- r = L(t).reverse().find(e);
1212
+ item = arr.findLast(callback);
1213
+ } catch (_unused2) {
1214
+ item = _toConsumableArray$2(arr).reverse().find(callback);
955
1215
  }
956
- return r;
1216
+ }
1217
+ return item;
957
1218
  },
958
1219
  /**
959
1220
  * Firefox-v103 does not currently support the "findLastIndex" method. It is stated that this method will be supported with Firefox-v104.
960
1221
  * https://caniuse.com/mdn-javascript_builtins_array_findlastindex
961
1222
  */
962
- findLastIndex: function(t, e) {
963
- var r = -1;
964
- if (this.isNotEmpty(t))
1223
+ findLastIndex: function findLastIndex(arr, callback) {
1224
+ var index2 = -1;
1225
+ if (this.isNotEmpty(arr)) {
965
1226
  try {
966
- r = t.findLastIndex(e);
967
- } catch {
968
- r = t.lastIndexOf(L(t).reverse().find(e));
1227
+ index2 = arr.findLastIndex(callback);
1228
+ } catch (_unused3) {
1229
+ index2 = arr.lastIndexOf(_toConsumableArray$2(arr).reverse().find(callback));
969
1230
  }
970
- return r;
971
- },
972
- sort: function(t, e) {
973
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, i = arguments.length > 3 ? arguments[3] : void 0, o = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 1, a = this.compare(t, e, i, r), s = r;
974
- return (this.isEmpty(t) || this.isEmpty(e)) && (s = o === 1 ? r : o), s * a;
975
- },
976
- compare: function(t, e, r) {
977
- var i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1, o = -1, a = this.isEmpty(t), s = this.isEmpty(e);
978
- return a && s ? o = 0 : a ? o = i : s ? o = -i : typeof t == "string" && typeof e == "string" ? o = r(t, e) : o = t < e ? -1 : t > e ? 1 : 0, o;
979
- },
980
- localeComparator: function() {
1231
+ }
1232
+ return index2;
1233
+ },
1234
+ sort: function sort(value1, value2) {
1235
+ var order = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
1236
+ var comparator = arguments.length > 3 ? arguments[3] : void 0;
1237
+ var nullSortOrder = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 1;
1238
+ var result = this.compare(value1, value2, comparator, order);
1239
+ var finalSortOrder = order;
1240
+ if (this.isEmpty(value1) || this.isEmpty(value2)) {
1241
+ finalSortOrder = nullSortOrder === 1 ? order : nullSortOrder;
1242
+ }
1243
+ return finalSortOrder * result;
1244
+ },
1245
+ compare: function compare(value1, value2, comparator) {
1246
+ var order = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 1;
1247
+ var result = -1;
1248
+ var emptyValue1 = this.isEmpty(value1);
1249
+ var emptyValue2 = this.isEmpty(value2);
1250
+ if (emptyValue1 && emptyValue2) result = 0;
1251
+ else if (emptyValue1) result = order;
1252
+ else if (emptyValue2) result = -order;
1253
+ else if (typeof value1 === "string" && typeof value2 === "string") result = comparator(value1, value2);
1254
+ else result = value1 < value2 ? -1 : value1 > value2 ? 1 : 0;
1255
+ return result;
1256
+ },
1257
+ localeComparator: function localeComparator() {
981
1258
  return new Intl.Collator(void 0, {
982
- numeric: !0
1259
+ numeric: true
983
1260
  }).compare;
984
1261
  },
985
- nestedKeys: function() {
986
- var t = this, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
987
- return Object.entries(e).reduce(function(i, o) {
988
- var a = P(o, 2), s = a[0], u = a[1], l = r ? "".concat(r, ".").concat(s) : s;
989
- return t.isObject(u) ? i = i.concat(t.nestedKeys(u, l)) : i.push(l), i;
1262
+ nestedKeys: function nestedKeys() {
1263
+ var _this = this;
1264
+ var obj = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1265
+ var parentKey = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
1266
+ return Object.entries(obj).reduce(function(o, _ref) {
1267
+ var _ref2 = _slicedToArray(_ref, 2), key = _ref2[0], value = _ref2[1];
1268
+ var currentKey = parentKey ? "".concat(parentKey, ".").concat(key) : key;
1269
+ _this.isObject(value) ? o = o.concat(_this.nestedKeys(value, currentKey)) : o.push(currentKey);
1270
+ return o;
990
1271
  }, []);
991
1272
  },
992
- stringify: function(t) {
993
- var e = this, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2, i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, o = " ".repeat(i), a = " ".repeat(i + r);
994
- return this.isArray(t) ? "[" + t.map(function(s) {
995
- return e.stringify(s, r, i + r);
996
- }).join(", ") + "]" : this.isDate(t) ? t.toISOString() : this.isFunction(t) ? t.toString() : this.isObject(t) ? `{
997
- ` + Object.entries(t).map(function(s) {
998
- var u = P(s, 2), l = u[0], c = u[1];
999
- return "".concat(a).concat(l, ": ").concat(e.stringify(c, r, i + r));
1000
- }).join(`,
1001
- `) + `
1002
- `.concat(o) + "}" : JSON.stringify(t);
1273
+ stringify: function stringify(value) {
1274
+ var _this2 = this;
1275
+ var indent = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
1276
+ var currentIndent = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
1277
+ var currentIndentStr = " ".repeat(currentIndent);
1278
+ var nextIndentStr = " ".repeat(currentIndent + indent);
1279
+ if (this.isArray(value)) {
1280
+ return "[" + value.map(function(v) {
1281
+ return _this2.stringify(v, indent, currentIndent + indent);
1282
+ }).join(", ") + "]";
1283
+ } else if (this.isDate(value)) {
1284
+ return value.toISOString();
1285
+ } else if (this.isFunction(value)) {
1286
+ return value.toString();
1287
+ } else if (this.isObject(value)) {
1288
+ return "{\n" + Object.entries(value).map(function(_ref3) {
1289
+ var _ref4 = _slicedToArray(_ref3, 2), k = _ref4[0], v = _ref4[1];
1290
+ return "".concat(nextIndentStr).concat(k, ": ").concat(_this2.stringify(v, indent, currentIndent + indent));
1291
+ }).join(",\n") + "\n".concat(currentIndentStr) + "}";
1292
+ } else {
1293
+ return JSON.stringify(value);
1294
+ }
1003
1295
  }
1004
- }, W = 0;
1005
- function st() {
1006
- var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
1007
- return W++, "".concat(n).concat(W);
1296
+ };
1297
+ var lastId = 0;
1298
+ function UniqueComponentId() {
1299
+ var prefix = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "pv_id_";
1300
+ lastId++;
1301
+ return "".concat(prefix).concat(lastId);
1008
1302
  }
1009
- function G(n) {
1010
- return nt(n) || et(n) || tt(n) || Q();
1303
+ function _toConsumableArray(arr) {
1304
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
1011
1305
  }
1012
- function Q() {
1013
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
1014
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1306
+ function _nonIterableSpread() {
1307
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1015
1308
  }
1016
- function tt(n, t) {
1017
- if (n) {
1018
- if (typeof n == "string") return T(n, t);
1019
- var e = Object.prototype.toString.call(n).slice(8, -1);
1020
- if (e === "Object" && n.constructor && (e = n.constructor.name), e === "Map" || e === "Set") return Array.from(n);
1021
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return T(n, t);
1022
- }
1309
+ function _unsupportedIterableToArray(o, minLen) {
1310
+ if (!o) return;
1311
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
1312
+ var n = Object.prototype.toString.call(o).slice(8, -1);
1313
+ if (n === "Object" && o.constructor) n = o.constructor.name;
1314
+ if (n === "Map" || n === "Set") return Array.from(o);
1315
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
1023
1316
  }
1024
- function et(n) {
1025
- if (typeof Symbol < "u" && n[Symbol.iterator] != null || n["@@iterator"] != null) return Array.from(n);
1317
+ function _iterableToArray(iter) {
1318
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
1026
1319
  }
1027
- function nt(n) {
1028
- if (Array.isArray(n)) return T(n);
1320
+ function _arrayWithoutHoles(arr) {
1321
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
1029
1322
  }
1030
- function T(n, t) {
1031
- (t == null || t > n.length) && (t = n.length);
1032
- for (var e = 0, r = new Array(t); e < t; e++) r[e] = n[e];
1033
- return r;
1323
+ function _arrayLikeToArray(arr, len) {
1324
+ if (len == null || len > arr.length) len = arr.length;
1325
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
1326
+ return arr2;
1034
1327
  }
1035
- function rt() {
1036
- var n = [], t = function(s, u) {
1037
- var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 999, c = i(s, u, l), f = c.value + (c.key === s ? 0 : l) + 1;
1038
- return n.push({
1039
- key: s,
1040
- value: f
1041
- }), f;
1042
- }, e = function(s) {
1043
- n = n.filter(function(u) {
1044
- return u.value !== s;
1328
+ function handler() {
1329
+ var zIndexes = [];
1330
+ var generateZIndex = function generateZIndex2(key, autoZIndex) {
1331
+ var baseZIndex = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 999;
1332
+ var lastZIndex = getLastZIndex(key, autoZIndex, baseZIndex);
1333
+ var newZIndex = lastZIndex.value + (lastZIndex.key === key ? 0 : baseZIndex) + 1;
1334
+ zIndexes.push({
1335
+ key,
1336
+ value: newZIndex
1045
1337
  });
1046
- }, r = function(s, u) {
1047
- return i(s, u).value;
1048
- }, i = function(s, u) {
1049
- var l = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
1050
- return G(n).reverse().find(function(c) {
1051
- return !0;
1338
+ return newZIndex;
1339
+ };
1340
+ var revertZIndex = function revertZIndex2(zIndex) {
1341
+ zIndexes = zIndexes.filter(function(obj) {
1342
+ return obj.value !== zIndex;
1343
+ });
1344
+ };
1345
+ var getCurrentZIndex = function getCurrentZIndex2(key, autoZIndex) {
1346
+ return getLastZIndex(key, autoZIndex).value;
1347
+ };
1348
+ var getLastZIndex = function getLastZIndex2(key, autoZIndex) {
1349
+ var baseZIndex = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
1350
+ return _toConsumableArray(zIndexes).reverse().find(function(obj) {
1351
+ return true;
1052
1352
  }) || {
1053
- key: s,
1054
- value: l
1353
+ key,
1354
+ value: baseZIndex
1055
1355
  };
1056
- }, o = function(s) {
1057
- return s && parseInt(s.style.zIndex, 10) || 0;
1356
+ };
1357
+ var getZIndex = function getZIndex2(el) {
1358
+ return el ? parseInt(el.style.zIndex, 10) || 0 : 0;
1058
1359
  };
1059
1360
  return {
1060
- get: o,
1061
- set: function(s, u, l) {
1062
- u && (u.style.zIndex = String(t(s, !0, l)));
1361
+ get: getZIndex,
1362
+ set: function set(key, el, baseZIndex) {
1363
+ if (el) {
1364
+ el.style.zIndex = String(generateZIndex(key, true, baseZIndex));
1365
+ }
1063
1366
  },
1064
- clear: function(s) {
1065
- s && (e(o(s)), s.style.zIndex = "");
1367
+ clear: function clear(el) {
1368
+ if (el) {
1369
+ revertZIndex(getZIndex(el));
1370
+ el.style.zIndex = "";
1371
+ }
1066
1372
  },
1067
- getCurrent: function(s) {
1068
- return r(s, !0);
1373
+ getCurrent: function getCurrent(key) {
1374
+ return getCurrentZIndex(key, true);
1069
1375
  }
1070
1376
  };
1071
1377
  }
1072
- var ut = rt();
1378
+ var ZIndexUtils = handler();
1073
1379
  export {
1074
- it as C,
1075
- _ as D,
1076
- at as O,
1077
- st as U,
1078
- ut as Z,
1079
- ot as p
1380
+ ConnectedOverlayScrollHandler as C,
1381
+ DomHandler as D,
1382
+ ObjectUtils as O,
1383
+ UniqueComponentId as U,
1384
+ ZIndexUtils as Z,
1385
+ primebus as p
1080
1386
  };