@fewangsit/wangsvue 1.5.219-alpha.1 → 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 (588) 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 +1 -1
  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 +67705 -0
  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-DbLuqCHa.js +0 -1
  555. package/loading-plane-CgfbWppy.js +0 -1
  556. package/loading-table-Bdr9ZhtP.js +0 -1
  557. package/loading-table-BzrSQlA0.js +0 -1
  558. package/loading-table-chOgXi94.js +0 -1
  559. package/no-data-Cgze_Rvp.js +0 -1
  560. package/no-data-Dep79CBh.js +0 -1
  561. package/no-data-y1X5WtcQ.js +0 -1
  562. package/notificationitem/index.d.ts +0 -107
  563. package/notificationitem/index.es.js +0 -333
  564. package/reviewitem/index.es.js +0 -65
  565. package/reviewtab/index.es.js +0 -44
  566. package/services/calendar.service.es.js +0 -32
  567. package/sonarqubesummary/index.es.js +0 -234
  568. package/sprintsummary/index.es.js +0 -73
  569. package/summaryaccordion/index.d.ts +0 -121
  570. package/summaryaccordion/index.es.js +0 -365
  571. package/taskdependency/index.es.js +0 -686
  572. package/taskdetail/index.d.ts +0 -82
  573. package/taskdetail/index.es.js +0 -491
  574. package/taskdetailpbi/index.d.ts +0 -35
  575. package/taskdetailpbi/index.es.js +0 -172
  576. package/taskdetailunassignedpbi/index.es.js +0 -261
  577. package/tasklink/index.es.js +0 -257
  578. package/tasklinkchangelog/index.es.js +0 -93
  579. package/tasklist/index.es.js +0 -92
  580. package/taskmore/index.es.js +0 -52
  581. package/taskstatusbadge/index.es.js +0 -18
  582. package/tasktable/index.d.ts +0 -87
  583. package/tasktable/index.es.js +0 -832
  584. package/ticket/index.es.js +0 -151
  585. package/tooltipspan/index.es.js +0 -30
  586. package/utils/updateSprintStatus.util.es.js +0 -17
  587. package/valueformdatainput/index.es.js +0 -70
  588. package/workcalendar/index.es.js +0 -351
@@ -1,668 +1,669 @@
1
- var qe = Object.freeze({ __proto__: null, get start() {
2
- return lt;
1
+ var t = Object.freeze({ __proto__: null, get start() {
2
+ return It;
3
3
  }, get ensureJQuerySupport() {
4
- return Be;
4
+ return ft;
5
5
  }, get setBootstrapMaxTime() {
6
- return rt;
6
+ return K;
7
7
  }, get setMountMaxTime() {
8
- return ot;
8
+ return H;
9
9
  }, get setUnmountMaxTime() {
10
- return st;
10
+ return J;
11
11
  }, get setUnloadMaxTime() {
12
- return it;
12
+ return Q;
13
13
  }, get registerApplication() {
14
- return ut;
14
+ return Tt;
15
15
  }, get unregisterApplication() {
16
- return Ke;
16
+ return At;
17
17
  }, get getMountedApps() {
18
- return We;
18
+ return Et;
19
19
  }, get getAppStatus() {
20
- return ke;
20
+ return Pt;
21
21
  }, get unloadApplication() {
22
- return He;
22
+ return Nt;
23
23
  }, get checkActivityFunctions() {
24
- return Fe;
24
+ return bt;
25
25
  }, get getAppNames() {
26
- return Ce;
26
+ return vt;
27
27
  }, get pathToActiveWhen() {
28
- return Je;
28
+ return Dt;
29
29
  }, get navigateToUrl() {
30
- return Re;
30
+ return tt;
31
31
  }, get patchHistoryApi() {
32
- return Ie;
32
+ return at;
33
33
  }, get triggerAppChange() {
34
- return Qe;
34
+ return $t;
35
35
  }, get addErrorHandler() {
36
- return ze;
36
+ return i;
37
37
  }, get removeErrorHandler() {
38
- return Xe;
38
+ return s;
39
39
  }, get mountRootParcel() {
40
- return nt;
40
+ return G;
41
41
  }, get NOT_LOADED() {
42
- return D;
42
+ return c;
43
43
  }, get LOADING_SOURCE_CODE() {
44
- return z;
44
+ return l;
45
45
  }, get NOT_BOOTSTRAPPED() {
46
- return I;
46
+ return f;
47
47
  }, get BOOTSTRAPPING() {
48
- return Ne;
48
+ return p;
49
49
  }, get NOT_MOUNTED() {
50
- return U;
50
+ return h;
51
51
  }, get MOUNTING() {
52
- return Se;
52
+ return m;
53
53
  }, get UPDATING() {
54
- return _e;
54
+ return w;
55
55
  }, get LOAD_ERROR() {
56
- return B;
56
+ return E;
57
57
  }, get MOUNTED() {
58
- return N;
58
+ return d;
59
59
  }, get UNLOADING() {
60
- return ne;
60
+ return y;
61
61
  }, get UNMOUNTING() {
62
- return De;
62
+ return g;
63
63
  }, get SKIP_BECAUSE_BROKEN() {
64
64
  return v;
65
- } }), ce = (typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}).CustomEvent, te = function() {
65
+ } }), e = ("undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}).CustomEvent, n = function() {
66
66
  try {
67
- var e = new ce("cat", { detail: { foo: "bar" } });
68
- return e.type === "cat" && e.detail.foo === "bar";
69
- } catch {
67
+ var t2 = new e("cat", { detail: { foo: "bar" } });
68
+ return "cat" === t2.type && "bar" === t2.detail.foo;
69
+ } catch (t3) {
70
70
  }
71
- return !1;
72
- }() ? ce : typeof document < "u" && typeof document.createEvent == "function" ? function(e, t) {
73
- var n = document.createEvent("CustomEvent");
74
- return t ? n.initCustomEvent(e, t.bubbles, t.cancelable, t.detail) : n.initCustomEvent(e, !1, !1, void 0), n;
75
- } : function(e, t) {
76
- var n = document.createEventObject();
77
- return n.type = e, t ? (n.bubbles = !!t.bubbles, n.cancelable = !!t.cancelable, n.detail = t.detail) : (n.bubbles = !1, n.cancelable = !1, n.detail = void 0), n;
71
+ return false;
72
+ }() ? e : "undefined" != typeof document && "function" == typeof document.createEvent ? function(t2, e2) {
73
+ var n2 = document.createEvent("CustomEvent");
74
+ return e2 ? n2.initCustomEvent(t2, e2.bubbles, e2.cancelable, e2.detail) : n2.initCustomEvent(t2, false, false, void 0), n2;
75
+ } : function(t2, e2) {
76
+ var n2 = document.createEventObject();
77
+ return n2.type = t2, e2 ? (n2.bubbles = Boolean(e2.bubbles), n2.cancelable = Boolean(e2.cancelable), n2.detail = e2.detail) : (n2.bubbles = false, n2.cancelable = false, n2.detail = void 0), n2;
78
78
  };
79
- let F = [];
80
- function j(e, t, n) {
81
- const r = x(e, t, n);
82
- F.length ? F.forEach((o) => o(r)) : setTimeout(() => {
83
- throw r;
79
+ let r = [];
80
+ function o(t2, e2, n2) {
81
+ const o2 = a(t2, e2, n2);
82
+ r.length ? r.forEach((t3) => t3(o2)) : setTimeout(() => {
83
+ throw o2;
84
84
  });
85
85
  }
86
- function ze(e) {
87
- if (typeof e != "function") throw Error(a(28));
88
- F.push(e);
89
- }
90
- function Xe(e) {
91
- if (typeof e != "function") throw Error(a(29));
92
- let t = !1;
93
- return F = F.filter((n) => {
94
- const r = n === e;
95
- return t = t || r, !r;
96
- }), t;
97
- }
98
- function a(e, t, ...n) {
99
- return `single-spa minified message #${e}: See https://single-spa.js.org/error/?code=${e}${n.length ? `&arg=${n.join("&arg=")}` : ""}`;
100
- }
101
- function x(e, t, n) {
102
- const r = `${X(t)} '${m(t)}' died in status ${t.status}: `;
103
- let o;
104
- if (e instanceof Error) {
86
+ function i(t2) {
87
+ if ("function" != typeof t2) throw Error(u(28));
88
+ r.push(t2);
89
+ }
90
+ function s(t2) {
91
+ if ("function" != typeof t2) throw Error(u(29));
92
+ let e2 = false;
93
+ return r = r.filter((n2) => {
94
+ const r2 = n2 === t2;
95
+ return e2 = e2 || r2, !r2;
96
+ }), e2;
97
+ }
98
+ function u(t2, e2, ...n2) {
99
+ return `single-spa minified message #${t2}: ${""}See https://single-spa.js.org/error/?code=${t2}${n2.length ? `&arg=${n2.join("&arg=")}` : ""}`;
100
+ }
101
+ function a(t2, e2, n2) {
102
+ const r2 = `${A(e2)} '${T(e2)}' died in status ${e2.status}: `;
103
+ let o2;
104
+ if (t2 instanceof Error) {
105
105
  try {
106
- e.message = r + e.message;
107
- } catch {
106
+ t2.message = r2 + t2.message;
107
+ } catch (t3) {
108
108
  }
109
- o = e;
109
+ o2 = t2;
110
110
  } else {
111
- console.warn(a(30, !1, t.status, m(t)));
111
+ console.warn(u(30, false, e2.status, T(e2)));
112
112
  try {
113
- o = Error(r + JSON.stringify(e));
114
- } catch {
115
- o = e;
113
+ o2 = Error(r2 + JSON.stringify(t2));
114
+ } catch (e3) {
115
+ o2 = t2;
116
116
  }
117
117
  }
118
- return o.appOrParcelName = m(t), t.status = n, o;
118
+ return o2.appOrParcelName = T(e2), e2.status = n2, o2;
119
119
  }
120
- const D = "NOT_LOADED", z = "LOADING_SOURCE_CODE", I = "NOT_BOOTSTRAPPED", Ne = "BOOTSTRAPPING", U = "NOT_MOUNTED", Se = "MOUNTING", N = "MOUNTED", _e = "UPDATING", De = "UNMOUNTING", ne = "UNLOADING", B = "LOAD_ERROR", v = "SKIP_BECAUSE_BROKEN";
121
- function Ye(e) {
122
- return e.status === N;
120
+ const c = "NOT_LOADED", l = "LOADING_SOURCE_CODE", f = "NOT_BOOTSTRAPPED", p = "BOOTSTRAPPING", h = "NOT_MOUNTED", m = "MOUNTING", d = "MOUNTED", w = "UPDATING", g = "UNMOUNTING", y = "UNLOADING", E = "LOAD_ERROR", v = "SKIP_BECAUSE_BROKEN";
121
+ function P(t2) {
122
+ return t2.status === d;
123
123
  }
124
- function re(e) {
124
+ function O(t2) {
125
125
  try {
126
- return e.activeWhen(window.location);
127
- } catch (t) {
128
- return j(t, e, v), !1;
126
+ return t2.activeWhen(window.location);
127
+ } catch (e2) {
128
+ return o(e2, t2, v), false;
129
129
  }
130
130
  }
131
- function m(e) {
132
- return e.name;
131
+ function T(t2) {
132
+ return t2.name;
133
133
  }
134
- function Ue(e) {
135
- return !!e.unmountThisParcel;
134
+ function b(t2) {
135
+ return Boolean(t2.unmountThisParcel);
136
136
  }
137
- function X(e) {
138
- return Ue(e) ? "parcel" : "application";
137
+ function A(t2) {
138
+ return b(t2) ? "parcel" : "application";
139
139
  }
140
- function K() {
141
- for (let e = arguments.length - 1; e > 0; e--) for (let t in arguments[e]) t !== "__proto__" && (arguments[e - 1][t] = arguments[e][t]);
140
+ function N() {
141
+ for (let t2 = arguments.length - 1; t2 > 0; t2--) for (let e2 in arguments[t2]) "__proto__" !== e2 && (arguments[t2 - 1][e2] = arguments[t2][e2]);
142
142
  return arguments[0];
143
143
  }
144
- function H(e, t) {
145
- for (let n = 0; n < e.length; n++) if (t(e[n])) return e[n];
144
+ function S(t2, e2) {
145
+ for (let n2 = 0; n2 < t2.length; n2++) if (e2(t2[n2])) return t2[n2];
146
146
  return null;
147
147
  }
148
- function R(e) {
149
- return e && (typeof e == "function" || (t = e, Array.isArray(t) && !H(t, (n) => typeof n != "function")));
150
- var t;
151
- }
152
- function M(e, t) {
153
- let n = e[t] || [];
154
- n = Array.isArray(n) ? n : [n], n.length === 0 && (n = [() => Promise.resolve()]);
155
- const r = X(e), o = m(e);
156
- return function(s) {
157
- return n.reduce((p, i, y) => p.then(() => {
158
- const u = i(s);
159
- return Me(u) ? u : Promise.reject(a(15, !1, r, o, t, y));
148
+ function _(t2) {
149
+ return t2 && ("function" == typeof t2 || (e2 = t2, Array.isArray(e2) && !S(e2, (t3) => "function" != typeof t3)));
150
+ var e2;
151
+ }
152
+ function D(t2, e2) {
153
+ let n2 = t2[e2] || [];
154
+ n2 = Array.isArray(n2) ? n2 : [n2], 0 === n2.length && (n2 = [() => Promise.resolve()]);
155
+ const r2 = A(t2), o2 = T(t2);
156
+ return function(t3) {
157
+ return n2.reduce((n3, i2, s2) => n3.then(() => {
158
+ const n4 = i2(t3);
159
+ return U(n4) ? n4 : Promise.reject(u(15, false, r2, o2, e2, s2));
160
160
  }), Promise.resolve());
161
161
  };
162
162
  }
163
- function Me(e) {
164
- return e && typeof e.then == "function" && typeof e.catch == "function";
165
- }
166
- let Ze = [];
167
- function le(e, t) {
168
- return Promise.resolve().then(() => e.status !== I ? e : (e.status = Ne, e.bootstrap ? J(e, "bootstrap").then(n).catch((r) => {
169
- if (t) throw x(r, e, v);
170
- return j(r, e, v), e;
171
- }) : Promise.resolve().then(n)));
172
- function n() {
173
- return e.status = U, e;
163
+ function U(t2) {
164
+ return t2 && "function" == typeof t2.then && "function" == typeof t2.catch;
165
+ }
166
+ let M = [];
167
+ function j(t2, e2) {
168
+ return Promise.resolve().then(() => t2.status !== f ? t2 : (t2.status = p, t2.bootstrap ? V(t2, "bootstrap").then(n2).catch((n3) => {
169
+ if (e2) throw a(n3, t2, v);
170
+ return o(n3, t2, v), t2;
171
+ }) : Promise.resolve().then(n2)));
172
+ function n2() {
173
+ return t2.status = h, t2;
174
174
  }
175
175
  }
176
- function Y(e, t) {
176
+ function $(t2, e2) {
177
177
  return Promise.resolve().then(() => {
178
- if (e.status !== N) return e;
179
- e.status = De;
180
- const n = Object.keys(e.parcels).map((o) => e.parcels[o].unmountThisParcel());
181
- return Promise.all(n).then(r, (o) => r().then(() => {
182
- const s = Error(o.message);
183
- if (t) throw x(s, e, v);
184
- j(s, e, v);
185
- })).then(() => e);
186
- function r() {
187
- return J(e, "unmount").then(() => {
188
- e.status = U;
189
- }, (o) => {
190
- if (t) throw x(o, e, v);
191
- j(o, e, v);
178
+ if (t2.status !== d) return t2;
179
+ t2.status = g;
180
+ const n2 = Object.keys(t2.parcels).map((e3) => t2.parcels[e3].unmountThisParcel());
181
+ return Promise.all(n2).then(r2, (n3) => r2().then(() => {
182
+ const r3 = Error(n3.message);
183
+ if (e2) throw a(r3, t2, v);
184
+ o(r3, t2, v);
185
+ })).then(() => t2);
186
+ function r2() {
187
+ return V(t2, "unmount").then(() => {
188
+ t2.status = h;
189
+ }, (n3) => {
190
+ if (e2) throw a(n3, t2, v);
191
+ o(n3, t2, v);
192
192
  });
193
193
  }
194
194
  });
195
195
  }
196
- let fe = !1, pe = !1;
197
- function oe(e, t) {
198
- return Promise.resolve().then(() => e.status !== U ? e : (fe || (window.dispatchEvent(new te("single-spa:before-first-mount")), fe = !0), e.status = Se, J(e, "mount").then(() => (e.status = N, pe || (window.dispatchEvent(new te("single-spa:first-mount")), pe = !0), e)).catch((n) => {
199
- return e.status = N, Y(e, !0).then(r, r);
200
- function r() {
201
- if (t) throw x(n, e, v);
202
- return j(n, e, v), e;
196
+ let L = false, R = false;
197
+ function x(t2, e2) {
198
+ return Promise.resolve().then(() => t2.status !== h ? t2 : (L || (window.dispatchEvent(new n("single-spa:before-first-mount")), L = true), t2.status = m, V(t2, "mount").then(() => (t2.status = d, R || (window.dispatchEvent(new n("single-spa:first-mount")), R = true), t2)).catch((n2) => {
199
+ return t2.status = d, $(t2, true).then(r2, r2);
200
+ function r2() {
201
+ if (e2) throw a(n2, t2, v);
202
+ return o(n2, t2, v), t2;
203
203
  }
204
204
  })));
205
205
  }
206
- let et = 0;
207
- const tt = { parcels: {} };
208
- function nt() {
209
- return je.apply(tt, arguments);
210
- }
211
- function je(e, t) {
212
- const n = this;
213
- if (!e || typeof e != "object" && typeof e != "function") throw Error(a(2));
214
- if (e.name && typeof e.name != "string") throw Error(a(3, !1, typeof e.name));
215
- const r = et++;
216
- let o = e.name || `parcel-${r}`;
217
- if (typeof t != "object") throw Error(a(4, !1, o, typeof t));
218
- if (!t.domElement) throw Error(a(5, !1, o));
219
- const s = typeof e == "function", p = s ? e : () => Promise.resolve(e), i = { id: r, parcels: {}, status: s ? z : I, customProps: t, parentName: m(n), unmountThisParcel: () => l.then(() => {
220
- if (i.status !== N) throw Error(a(6, !1, o, i.status));
221
- return Y(i, !0);
222
- }).then((c) => (i.parentName && delete n.parcels[i.id], c)).then((c) => (P(c), c)).catch((c) => {
223
- throw i.status = v, w(c), c;
206
+ let I = 0;
207
+ const B = { parcels: {} };
208
+ function G() {
209
+ return W.apply(B, arguments);
210
+ }
211
+ function W(t2, e2) {
212
+ const n2 = this;
213
+ if (!t2 || "object" != typeof t2 && "function" != typeof t2) throw Error(u(2));
214
+ if (t2.name && "string" != typeof t2.name) throw Error(u(3, false, typeof t2.name));
215
+ const r2 = I++;
216
+ let o2 = t2.name || `parcel-${r2}`;
217
+ if ("object" != typeof e2) throw Error(u(4, false, o2, typeof e2));
218
+ if (!e2.domElement) throw Error(u(5, false, o2));
219
+ const i2 = "function" == typeof t2, s2 = i2 ? t2 : () => Promise.resolve(t2), c2 = { id: r2, parcels: {}, status: i2 ? l : f, customProps: e2, parentName: T(n2), unmountThisParcel: () => y2.then(() => {
220
+ if (c2.status !== d) throw Error(u(6, false, o2, c2.status));
221
+ return $(c2, true);
222
+ }).then((t3) => (c2.parentName && delete n2.parcels[c2.id], t3)).then((t3) => (E2(t3), t3)).catch((t3) => {
223
+ throw c2.status = v, P2(t3), t3;
224
224
  }) };
225
- let y;
226
- n.parcels[r] = i;
227
- let u = p();
228
- if (!u || typeof u.then != "function") throw Error(a(7));
229
- u = u.then((c) => {
230
- if (!c) throw Error(a(8));
231
- if (o = c.name || `parcel-${r}`, Object.prototype.hasOwnProperty.call(c, "bootstrap") && !R(c.bootstrap)) throw Error(a(9, !1, o));
232
- if (!R(c.mount)) throw Error(a(10, !1, o));
233
- if (!R(c.unmount)) throw Error(a(11, !1, o));
234
- if (c.update && !R(c.update)) throw Error(a(12, !1, o));
235
- const h = M(c, "bootstrap"), d = M(c, "mount"), A = M(c, "unmount");
236
- i.status = I, i.name = o, i.bootstrap = h, i.mount = d, i.unmount = A, i.timeouts = Le(c.timeouts), c.update && (i.update = M(c, "update"), y.update = function(b) {
237
- return i.customProps = b, L((O = i, Promise.resolve().then(() => {
238
- if (O.status !== N) throw Error(a(32, !1, m(O)));
239
- return O.status = _e, J(O, "update").then(() => (O.status = N, O)).catch((g) => {
240
- throw x(g, O, v);
225
+ let p2;
226
+ n2.parcels[r2] = c2;
227
+ let m2 = s2();
228
+ if (!m2 || "function" != typeof m2.then) throw Error(u(7));
229
+ m2 = m2.then((t3) => {
230
+ if (!t3) throw Error(u(8));
231
+ if (o2 = t3.name || `parcel-${r2}`, Object.prototype.hasOwnProperty.call(t3, "bootstrap") && !_(t3.bootstrap)) throw Error(u(9, false, o2));
232
+ if (!_(t3.mount)) throw Error(u(10, false, o2));
233
+ if (!_(t3.unmount)) throw Error(u(11, false, o2));
234
+ if (t3.update && !_(t3.update)) throw Error(u(12, false, o2));
235
+ const e3 = D(t3, "bootstrap"), n3 = D(t3, "mount"), i3 = D(t3, "unmount");
236
+ c2.status = f, c2.name = o2, c2.bootstrap = e3, c2.mount = n3, c2.unmount = i3, c2.timeouts = q(t3.timeouts), t3.update && (c2.update = D(t3, "update"), p2.update = function(t4) {
237
+ return c2.customProps = t4, C((e4 = c2, Promise.resolve().then(() => {
238
+ if (e4.status !== d) throw Error(u(32, false, T(e4)));
239
+ return e4.status = w, V(e4, "update").then(() => (e4.status = d, e4)).catch((t5) => {
240
+ throw a(t5, e4, v);
241
241
  });
242
242
  })));
243
- var O;
243
+ var e4;
244
244
  });
245
245
  });
246
- const E = u.then(() => le(i, !0)), l = E.then(() => oe(i, !0));
247
- let P, w;
248
- const T = new Promise((c, h) => {
249
- P = c, w = h;
246
+ const g2 = m2.then(() => j(c2, true)), y2 = g2.then(() => x(c2, true));
247
+ let E2, P2;
248
+ const O2 = new Promise((t3, e3) => {
249
+ E2 = t3, P2 = e3;
250
250
  });
251
- return y = { mount: () => L(Promise.resolve().then(() => {
252
- if (i.status !== U) throw Error(a(13, !1, o, i.status));
253
- return n.parcels[r] = i, oe(i);
254
- })), unmount: () => L(i.unmountThisParcel()), getStatus: () => i.status, loadPromise: L(u), bootstrapPromise: L(E), mountPromise: L(l), unmountPromise: L(T) }, y;
255
- }
256
- function L(e) {
257
- return e.then(() => null);
258
- }
259
- function $e(e) {
260
- const t = m(e);
261
- let n = typeof e.customProps == "function" ? e.customProps(t, window.location) : e.customProps;
262
- (typeof n != "object" || n === null || Array.isArray(n)) && (n = {}, console.warn(a(40), t, n));
263
- const r = K({}, n, { name: t, mountParcel: je.bind(e), singleSpa: qe });
264
- return Ue(e) && (r.unmountSelf = e.unmountThisParcel), r;
265
- }
266
- const G = { bootstrap: { millis: 4e3, dieOnTimeout: !1, warningMillis: 1e3 }, mount: { millis: 3e3, dieOnTimeout: !1, warningMillis: 1e3 }, unmount: { millis: 3e3, dieOnTimeout: !1, warningMillis: 1e3 }, unload: { millis: 3e3, dieOnTimeout: !1, warningMillis: 1e3 }, update: { millis: 3e3, dieOnTimeout: !1, warningMillis: 1e3 } };
267
- function rt(e, t, n) {
268
- if (typeof e != "number" || e <= 0) throw Error(a(16));
269
- G.bootstrap = { millis: e, dieOnTimeout: t, warningMillis: n || 1e3 };
270
- }
271
- function ot(e, t, n) {
272
- if (typeof e != "number" || e <= 0) throw Error(a(17));
273
- G.mount = { millis: e, dieOnTimeout: t, warningMillis: n || 1e3 };
274
- }
275
- function st(e, t, n) {
276
- if (typeof e != "number" || e <= 0) throw Error(a(18));
277
- G.unmount = { millis: e, dieOnTimeout: t, warningMillis: n || 1e3 };
278
- }
279
- function it(e, t, n) {
280
- if (typeof e != "number" || e <= 0) throw Error(a(19));
281
- G.unload = { millis: e, dieOnTimeout: t, warningMillis: n || 1e3 };
282
- }
283
- function J(e, t) {
284
- const n = e.timeouts[t], r = n.warningMillis, o = X(e);
285
- return new Promise((s, p) => {
286
- let i = !1, y = !1;
287
- e[t]($e(e)).then((l) => {
288
- i = !0, s(l);
289
- }).catch((l) => {
290
- i = !0, p(l);
291
- }), setTimeout(() => E(1), r), setTimeout(() => E(!0), n.millis);
292
- const u = a(31, !1, t, o, m(e), n.millis);
293
- function E(l) {
294
- if (!i) {
295
- if (l === !0) y = !0, n.dieOnTimeout ? p(Error(u)) : console.error(u);
296
- else if (!y) {
297
- const P = l, w = P * r;
298
- console.warn(u), w + r < n.millis && setTimeout(() => E(P + 1), r);
251
+ return p2 = { mount: () => C(Promise.resolve().then(() => {
252
+ if (c2.status !== h) throw Error(u(13, false, o2, c2.status));
253
+ return n2.parcels[r2] = c2, x(c2);
254
+ })), unmount: () => C(c2.unmountThisParcel()), getStatus: () => c2.status, loadPromise: C(m2), bootstrapPromise: C(g2), mountPromise: C(y2), unmountPromise: C(O2) }, p2;
255
+ }
256
+ function C(t2) {
257
+ return t2.then(() => null);
258
+ }
259
+ function k(e2) {
260
+ const n2 = T(e2);
261
+ let r2 = "function" == typeof e2.customProps ? e2.customProps(n2, window.location) : e2.customProps;
262
+ ("object" != typeof r2 || null === r2 || Array.isArray(r2)) && (r2 = {}, console.warn(u(40), n2, r2));
263
+ const o2 = N({}, r2, { name: n2, mountParcel: W.bind(e2), singleSpa: t });
264
+ return b(e2) && (o2.unmountSelf = e2.unmountThisParcel), o2;
265
+ }
266
+ const F = { bootstrap: { millis: 4e3, dieOnTimeout: false, warningMillis: 1e3 }, mount: { millis: 3e3, dieOnTimeout: false, warningMillis: 1e3 }, unmount: { millis: 3e3, dieOnTimeout: false, warningMillis: 1e3 }, unload: { millis: 3e3, dieOnTimeout: false, warningMillis: 1e3 }, update: { millis: 3e3, dieOnTimeout: false, warningMillis: 1e3 } };
267
+ function K(t2, e2, n2) {
268
+ if ("number" != typeof t2 || t2 <= 0) throw Error(u(16));
269
+ F.bootstrap = { millis: t2, dieOnTimeout: e2, warningMillis: n2 || 1e3 };
270
+ }
271
+ function H(t2, e2, n2) {
272
+ if ("number" != typeof t2 || t2 <= 0) throw Error(u(17));
273
+ F.mount = { millis: t2, dieOnTimeout: e2, warningMillis: n2 || 1e3 };
274
+ }
275
+ function J(t2, e2, n2) {
276
+ if ("number" != typeof t2 || t2 <= 0) throw Error(u(18));
277
+ F.unmount = { millis: t2, dieOnTimeout: e2, warningMillis: n2 || 1e3 };
278
+ }
279
+ function Q(t2, e2, n2) {
280
+ if ("number" != typeof t2 || t2 <= 0) throw Error(u(19));
281
+ F.unload = { millis: t2, dieOnTimeout: e2, warningMillis: n2 || 1e3 };
282
+ }
283
+ function V(t2, e2) {
284
+ const n2 = t2.timeouts[e2], r2 = n2.warningMillis, o2 = A(t2);
285
+ return new Promise((i2, s2) => {
286
+ let a2 = false, c2 = false;
287
+ t2[e2](k(t2)).then((t3) => {
288
+ a2 = true, i2(t3);
289
+ }).catch((t3) => {
290
+ a2 = true, s2(t3);
291
+ }), setTimeout(() => f2(1), r2), setTimeout(() => f2(true), n2.millis);
292
+ const l2 = u(31, false, e2, o2, T(t2), n2.millis);
293
+ function f2(t3) {
294
+ if (!a2) {
295
+ if (true === t3) c2 = true, n2.dieOnTimeout ? s2(Error(l2)) : console.error(l2);
296
+ else if (!c2) {
297
+ const e3 = t3, o3 = e3 * r2;
298
+ console.warn(l2), o3 + r2 < n2.millis && setTimeout(() => f2(e3 + 1), r2);
299
299
  }
300
300
  }
301
301
  }
302
302
  });
303
303
  }
304
- function Le(e) {
305
- const t = {};
306
- for (let n in G) t[n] = K({}, G[n], e && e[n] || {});
307
- return t;
304
+ function q(t2) {
305
+ const e2 = {};
306
+ for (let n2 in F) e2[n2] = N({}, F[n2], t2 && t2[n2] || {});
307
+ return e2;
308
308
  }
309
- function se(e) {
309
+ function z(t2) {
310
310
  return Promise.resolve().then(() => {
311
- if (e.loadPromise) return e.loadPromise;
312
- if (e.status !== D && e.status !== B) return e;
313
- let t, n;
314
- return e.status = z, e.loadPromise = Promise.resolve().then(() => {
315
- const r = e.loadApp($e(e));
316
- if (!Me(r)) throw n = !0, Error(a(33, !1, m(e)));
317
- return r.then((o) => {
318
- let s;
319
- e.loadErrorTime = null, t = o, typeof t != "object" && (s = 34), Object.prototype.hasOwnProperty.call(t, "bootstrap") && !R(t.bootstrap) && (s = 35), R(t.mount) || (s = 36), R(t.unmount) || (s = 37);
320
- const p = X(t);
321
- if (s) {
322
- let i;
311
+ if (t2.loadPromise) return t2.loadPromise;
312
+ if (t2.status !== c && t2.status !== E) return t2;
313
+ let e2, n2;
314
+ return t2.status = l, t2.loadPromise = Promise.resolve().then(() => {
315
+ const r2 = t2.loadApp(k(t2));
316
+ if (!U(r2)) throw n2 = true, Error(u(33, false, T(t2)));
317
+ return r2.then((n3) => {
318
+ let r3;
319
+ t2.loadErrorTime = null, e2 = n3, "object" != typeof e2 && (r3 = 34), Object.prototype.hasOwnProperty.call(e2, "bootstrap") && !_(e2.bootstrap) && (r3 = 35), _(e2.mount) || (r3 = 36), _(e2.unmount) || (r3 = 37);
320
+ const i2 = A(e2);
321
+ if (r3) {
322
+ let n4;
323
323
  try {
324
- i = JSON.stringify(t);
325
- } catch {
324
+ n4 = JSON.stringify(e2);
325
+ } catch (t3) {
326
326
  }
327
- return console.error(a(s, !1, p, m(e), i), t), j(void 0, e, v), e;
327
+ return console.error(u(r3, false, i2, T(t2), n4), e2), o(void 0, t2, v), t2;
328
328
  }
329
- return t.devtools && t.devtools.overlays && (e.devtools.overlays = K({}, e.devtools.overlays, t.devtools.overlays)), e.status = I, e.bootstrap = M(t, "bootstrap"), e.mount = M(t, "mount"), e.unmount = M(t, "unmount"), e.unload = M(t, "unload"), e.timeouts = Le(t.timeouts), delete e.loadPromise, e;
329
+ return e2.devtools && e2.devtools.overlays && (t2.devtools.overlays = N({}, t2.devtools.overlays, e2.devtools.overlays)), t2.status = f, t2.bootstrap = D(e2, "bootstrap"), t2.mount = D(e2, "mount"), t2.unmount = D(e2, "unmount"), t2.unload = D(e2, "unload"), t2.timeouts = q(e2.timeouts), delete t2.loadPromise, t2;
330
330
  });
331
- }).catch((r) => {
332
- let o;
333
- return delete e.loadPromise, n ? o = v : (o = B, e.loadErrorTime = (/* @__PURE__ */ new Date()).getTime()), j(r, e, o), e;
331
+ }).catch((e3) => {
332
+ let r2;
333
+ return delete t2.loadPromise, n2 ? r2 = v : (r2 = E, t2.loadErrorTime = (/* @__PURE__ */ new Date()).getTime()), o(e3, t2, r2), t2;
334
334
  });
335
335
  });
336
336
  }
337
- const C = typeof window < "u", k = { hashchange: [], popstate: [] }, q = ["hashchange", "popstate"];
338
- function Re(e) {
339
- let t;
340
- if (typeof e == "string") t = e;
341
- else if (this && this.href) t = this.href;
337
+ const X = "undefined" != typeof window, Y = { hashchange: [], popstate: [] }, Z = ["hashchange", "popstate"];
338
+ function tt(t2) {
339
+ let e2;
340
+ if ("string" == typeof t2) e2 = t2;
341
+ else if (this && this.href) e2 = this.href;
342
342
  else {
343
- if (!(e && e.currentTarget && e.currentTarget.href && e.preventDefault)) throw Error(a(14));
344
- t = e.currentTarget.href, e.preventDefault();
343
+ if (!(t2 && t2.currentTarget && t2.currentTarget.href && t2.preventDefault)) throw Error(u(14));
344
+ e2 = t2.currentTarget.href, t2.preventDefault();
345
345
  }
346
- const n = ge(window.location.href), r = ge(t);
347
- t.indexOf("#") === 0 ? window.location.hash = r.hash : n.host !== r.host && r.host ? window.location.href = t : r.pathname === n.pathname && r.search === n.search ? window.location.hash = r.hash : window.history.pushState(null, null, t);
346
+ const n2 = ct(window.location.href), r2 = ct(e2);
347
+ 0 === e2.indexOf("#") ? window.location.hash = r2.hash : n2.host !== r2.host && r2.host ? window.location.href = e2 : r2.pathname === n2.pathname && r2.search === n2.search ? window.location.hash = r2.hash : window.history.pushState(null, null, e2);
348
348
  }
349
- function he(e) {
350
- if (e) {
351
- const t = e[0].type;
352
- q.indexOf(t) >= 0 && k[t].forEach((n) => {
349
+ function et(t2) {
350
+ if (t2) {
351
+ const e2 = t2[0].type;
352
+ Z.indexOf(e2) >= 0 && Y[e2].forEach((e3) => {
353
353
  try {
354
- n.apply(this, e);
355
- } catch (r) {
354
+ e3.apply(this, t2);
355
+ } catch (t3) {
356
356
  setTimeout(() => {
357
- throw r;
357
+ throw t3;
358
358
  });
359
359
  }
360
360
  });
361
361
  }
362
362
  }
363
- let xe;
364
- function me() {
365
- $([], arguments);
363
+ let nt;
364
+ function rt() {
365
+ Lt([], arguments);
366
366
  }
367
- function de(e, t) {
367
+ function ot(t2, e2) {
368
368
  return function() {
369
- const n = window.location.href, r = e.apply(this, arguments), o = window.location.href;
370
- return xe && n === o || window.dispatchEvent(at(window.history.state, t)), r;
369
+ const n2 = window.location.href, r2 = t2.apply(this, arguments), o2 = window.location.href;
370
+ return nt && n2 === o2 || window.dispatchEvent(it(window.history.state, e2)), r2;
371
371
  };
372
372
  }
373
- function at(e, t) {
374
- let n;
373
+ function it(t2, e2) {
374
+ let n2;
375
375
  try {
376
- n = new PopStateEvent("popstate", { state: e });
377
- } catch {
378
- n = document.createEvent("PopStateEvent"), n.initPopStateEvent("popstate", !1, !1, e);
376
+ n2 = new PopStateEvent("popstate", { state: t2 });
377
+ } catch (e3) {
378
+ n2 = document.createEvent("PopStateEvent"), n2.initPopStateEvent("popstate", false, false, t2);
379
379
  }
380
- return n.singleSpa = !0, n.singleSpaTrigger = t, n;
381
- }
382
- let ie = null, we = !1;
383
- function Ie(e) {
384
- if (we) throw Error(a(43));
385
- xe = !e || !e.hasOwnProperty("urlRerouteOnly") || e.urlRerouteOnly, we = !0, ie = window.history.replaceState, window.addEventListener("hashchange", me), window.addEventListener("popstate", me);
386
- const t = window.addEventListener, n = window.removeEventListener;
387
- window.addEventListener = function(r, o) {
388
- if (!(typeof o == "function" && q.indexOf(r) >= 0) || H(k[r], (s) => s === o)) return t.apply(this, arguments);
389
- k[r].push(o);
390
- }, window.removeEventListener = function(r, o) {
391
- if (!(typeof o == "function" && q.indexOf(r) >= 0)) return n.apply(this, arguments);
392
- k[r] = k[r].filter((s) => s !== o);
393
- }, window.history.pushState = de(window.history.pushState, "pushState"), window.history.replaceState = de(ie, "replaceState");
394
- }
395
- function ge(e) {
396
- const t = document.createElement("a");
397
- return t.href = e, t;
398
- }
399
- C && (window.singleSpaNavigate ? console.warn(a(41)) : window.singleSpaNavigate = Re);
400
- let ye = !1;
401
- function Be(e = window.jQuery) {
402
- if (e || window.$ && window.$.fn && window.$.fn.jquery && (e = window.$), e && !ye) {
403
- const t = e.fn.on, n = e.fn.off;
404
- e.fn.on = function(r, o) {
405
- return Ee.call(this, t, window.addEventListener, r, o, arguments);
406
- }, e.fn.off = function(r, o) {
407
- return Ee.call(this, n, window.removeEventListener, r, o, arguments);
408
- }, ye = !0;
380
+ return n2.singleSpa = true, n2.singleSpaTrigger = e2, n2;
381
+ }
382
+ let st = null, ut = false;
383
+ function at(t2) {
384
+ if (ut) throw Error(u(43));
385
+ nt = !t2 || !t2.hasOwnProperty("urlRerouteOnly") || t2.urlRerouteOnly, ut = true, st = window.history.replaceState, window.addEventListener("hashchange", rt), window.addEventListener("popstate", rt);
386
+ const e2 = window.addEventListener, n2 = window.removeEventListener;
387
+ window.addEventListener = function(t3, n3) {
388
+ if (!("function" == typeof n3 && Z.indexOf(t3) >= 0) || S(Y[t3], (t4) => t4 === n3)) return e2.apply(this, arguments);
389
+ Y[t3].push(n3);
390
+ }, window.removeEventListener = function(t3, e3) {
391
+ if (!("function" == typeof e3 && Z.indexOf(t3) >= 0)) return n2.apply(this, arguments);
392
+ Y[t3] = Y[t3].filter((t4) => t4 !== e3);
393
+ }, window.history.pushState = ot(window.history.pushState, "pushState"), window.history.replaceState = ot(st, "replaceState");
394
+ }
395
+ function ct(t2) {
396
+ const e2 = document.createElement("a");
397
+ return e2.href = t2, e2;
398
+ }
399
+ X && (window.singleSpaNavigate ? console.warn(u(41)) : window.singleSpaNavigate = tt);
400
+ let lt = false;
401
+ function ft(t2 = window.jQuery) {
402
+ if (t2 || window.$ && window.$.fn && window.$.fn.jquery && (t2 = window.$), t2 && !lt) {
403
+ const e2 = t2.fn.on, n2 = t2.fn.off;
404
+ t2.fn.on = function(t3, n3) {
405
+ return pt.call(this, e2, window.addEventListener, t3, n3, arguments);
406
+ }, t2.fn.off = function(t3, e3) {
407
+ return pt.call(this, n2, window.removeEventListener, t3, e3, arguments);
408
+ }, lt = true;
409
409
  }
410
410
  }
411
- function Ee(e, t, n, r, o) {
412
- return typeof n != "string" ? e.apply(this, o) : (n.split(/\s+/).forEach((s) => {
413
- q.indexOf(s) >= 0 && (t(s, r), n = n.replace(s, ""));
414
- }), n.trim() === "" ? this : e.apply(this, o));
411
+ function pt(t2, e2, n2, r2, o2) {
412
+ return "string" != typeof n2 ? t2.apply(this, o2) : (n2.split(/\s+/).forEach((t3) => {
413
+ Z.indexOf(t3) >= 0 && (e2(t3, r2), n2 = n2.replace(t3, ""));
414
+ }), "" === n2.trim() ? this : t2.apply(this, o2));
415
415
  }
416
- const W = {};
417
- function ae(e) {
416
+ const ht = {};
417
+ function mt(t2) {
418
418
  return Promise.resolve().then(() => {
419
- const t = W[m(e)];
420
- if (!t) return e;
421
- if (e.status === D) return ve(e, t), e;
422
- if (e.status === ne) return t.promise.then(() => e);
423
- if (e.status !== U && e.status !== B) return e;
424
- const n = e.status === B ? Promise.resolve() : J(e, "unload");
425
- return e.status = ne, n.then(() => (ve(e, t), e)).catch((r) => (function(o, s, p) {
426
- delete W[m(o)], delete o.bootstrap, delete o.mount, delete o.unmount, delete o.unload, j(p, o, v), s.reject(p);
427
- }(e, t, r), e));
419
+ const e2 = ht[T(t2)];
420
+ if (!e2) return t2;
421
+ if (t2.status === c) return dt(t2, e2), t2;
422
+ if (t2.status === y) return e2.promise.then(() => t2);
423
+ if (t2.status !== h && t2.status !== E) return t2;
424
+ const n2 = t2.status === E ? Promise.resolve() : V(t2, "unload");
425
+ return t2.status = y, n2.then(() => (dt(t2, e2), t2)).catch((n3) => (function(t3, e3, n4) {
426
+ delete ht[T(t3)], delete t3.bootstrap, delete t3.mount, delete t3.unmount, delete t3.unload, o(n4, t3, v), e3.reject(n4);
427
+ }(t2, e2, n3), t2));
428
428
  });
429
429
  }
430
- function ve(e, t) {
431
- delete W[m(e)], delete e.bootstrap, delete e.mount, delete e.unmount, delete e.unload, e.status = D, t.resolve();
432
- }
433
- function Pe(e, t, n, r) {
434
- W[m(e)] = { app: e, resolve: n, reject: r }, Object.defineProperty(W[m(e)], "promise", { get: t });
435
- }
436
- function Ge(e) {
437
- return W[e];
438
- }
439
- const S = [];
440
- function We() {
441
- return S.filter(Ye).map(m);
442
- }
443
- function Ce() {
444
- return S.map(m);
445
- }
446
- function ke(e) {
447
- const t = H(S, (n) => m(n) === e);
448
- return t ? t.status : null;
449
- }
450
- let Oe = !1;
451
- function ut(e, t, n, r) {
452
- const o = function(s, p, i, y) {
453
- const u = { name: null, loadApp: null, activeWhen: null, customProps: null };
454
- return typeof s == "object" ? (function(l) {
455
- if (Array.isArray(l) || l === null) throw Error(a(39));
456
- const P = ["name", "app", "activeWhen", "customProps"], w = Object.keys(l).reduce((c, h) => P.indexOf(h) >= 0 ? c : c.concat(h), []);
457
- if (w.length !== 0) throw Error(a(38, !1, P.join(", "), w.join(", ")));
458
- if (typeof l.name != "string" || l.name.length === 0 || typeof l.app != "object" && typeof l.app != "function") throw Error(a(20));
459
- const T = (c) => typeof c == "string" || typeof c == "function";
460
- if (!(T(l.activeWhen) || Array.isArray(l.activeWhen) && l.activeWhen.every(T))) throw Error(a(24));
461
- if (!be(l.customProps)) throw Error(a(22));
462
- }(s), u.name = s.name, u.loadApp = s.app, u.activeWhen = s.activeWhen, u.customProps = s.customProps) : (function(l, P, w, T) {
463
- if (typeof l != "string" || l.length === 0) throw Error(a(20));
464
- if (!P) throw Error(a(23));
465
- if (typeof w != "function") throw Error(a(24));
466
- if (!be(T)) throw Error(a(22));
467
- }(s, p, i, y), u.name = s, u.loadApp = p, u.activeWhen = i, u.customProps = y), u.loadApp = typeof (E = u.loadApp) != "function" ? () => Promise.resolve(E) : E, u.customProps = /* @__PURE__ */ function(l) {
468
- return l || {};
469
- }(u.customProps), u.activeWhen = function(l) {
470
- let P = Array.isArray(l) ? l : [l];
471
- return P = P.map((w) => typeof w == "function" ? w : Je(w)), (w) => P.some((T) => T(w));
472
- }(u.activeWhen), u;
473
- var E;
474
- }(e, t, n, r);
475
- if (ue() || Oe || (Oe = !0, setTimeout(() => {
476
- ue() || console.warn(a(1));
477
- }, 5e3)), Ce().indexOf(o.name) !== -1) throw Error(a(21, !1, o.name));
478
- S.push(K({ loadErrorTime: null, status: D, parcels: {}, devtools: { overlays: { options: {}, selectors: [] } } }, o)), C && (Be(), $());
479
- }
480
- function Fe(e = window.location) {
481
- return S.filter((t) => t.activeWhen(e)).map(m);
482
- }
483
- function Ke(e) {
484
- if (S.filter((t) => m(t) === e).length === 0) throw Error(a(25, !1, e));
485
- return (C ? He(e, { waitForUnmount: !1 }) : Promise.resolve()).then(() => {
486
- const t = S.map(m).indexOf(e);
487
- S.splice(t, 1);
430
+ function dt(t2, e2) {
431
+ delete ht[T(t2)], delete t2.bootstrap, delete t2.mount, delete t2.unmount, delete t2.unload, t2.status = c, e2.resolve();
432
+ }
433
+ function wt(t2, e2, n2, r2) {
434
+ ht[T(t2)] = { app: t2, resolve: n2, reject: r2 }, Object.defineProperty(ht[T(t2)], "promise", { get: e2 });
435
+ }
436
+ function gt(t2) {
437
+ return ht[t2];
438
+ }
439
+ const yt = [];
440
+ function Et() {
441
+ return yt.filter(P).map(T);
442
+ }
443
+ function vt() {
444
+ return yt.map(T);
445
+ }
446
+ function Pt(t2) {
447
+ const e2 = S(yt, (e3) => T(e3) === t2);
448
+ return e2 ? e2.status : null;
449
+ }
450
+ let Ot = false;
451
+ function Tt(t2, e2, n2, r2) {
452
+ const o2 = function(t3, e3, n3, r3) {
453
+ const o3 = { name: null, loadApp: null, activeWhen: null, customProps: null };
454
+ return "object" == typeof t3 ? (function(t4) {
455
+ if (Array.isArray(t4) || null === t4) throw Error(u(39));
456
+ const e4 = ["name", "app", "activeWhen", "customProps"], n4 = Object.keys(t4).reduce((t5, n5) => e4.indexOf(n5) >= 0 ? t5 : t5.concat(n5), []);
457
+ if (0 !== n4.length) throw Error(u(38, false, e4.join(", "), n4.join(", ")));
458
+ if ("string" != typeof t4.name || 0 === t4.name.length) throw Error(u(20));
459
+ if ("object" != typeof t4.app && "function" != typeof t4.app) throw Error(u(20));
460
+ const r4 = (t5) => "string" == typeof t5 || "function" == typeof t5;
461
+ if (!(r4(t4.activeWhen) || Array.isArray(t4.activeWhen) && t4.activeWhen.every(r4))) throw Error(u(24));
462
+ if (!_t(t4.customProps)) throw Error(u(22));
463
+ }(t3), o3.name = t3.name, o3.loadApp = t3.app, o3.activeWhen = t3.activeWhen, o3.customProps = t3.customProps) : (function(t4, e4, n4, r4) {
464
+ if ("string" != typeof t4 || 0 === t4.length) throw Error(u(20));
465
+ if (!e4) throw Error(u(23));
466
+ if ("function" != typeof n4) throw Error(u(24));
467
+ if (!_t(r4)) throw Error(u(22));
468
+ }(t3, e3, n3, r3), o3.name = t3, o3.loadApp = e3, o3.activeWhen = n3, o3.customProps = r3), o3.loadApp = "function" != typeof (i2 = o3.loadApp) ? () => Promise.resolve(i2) : i2, o3.customProps = /* @__PURE__ */ function(t4) {
469
+ return t4 || {};
470
+ }(o3.customProps), o3.activeWhen = function(t4) {
471
+ let e4 = Array.isArray(t4) ? t4 : [t4];
472
+ return e4 = e4.map((t5) => "function" == typeof t5 ? t5 : Dt(t5)), (t5) => e4.some((e5) => e5(t5));
473
+ }(o3.activeWhen), o3;
474
+ var i2;
475
+ }(t2, e2, n2, r2);
476
+ if (Bt() || Ot || (Ot = true, setTimeout(() => {
477
+ Bt() || console.warn(u(1));
478
+ }, 5e3)), -1 !== vt().indexOf(o2.name)) throw Error(u(21, false, o2.name));
479
+ yt.push(N({ loadErrorTime: null, status: c, parcels: {}, devtools: { overlays: { options: {}, selectors: [] } } }, o2)), X && (ft(), Lt());
480
+ }
481
+ function bt(t2 = window.location) {
482
+ return yt.filter((e2) => e2.activeWhen(t2)).map(T);
483
+ }
484
+ function At(t2) {
485
+ if (0 === yt.filter((e2) => T(e2) === t2).length) throw Error(u(25, false, t2));
486
+ return (X ? Nt(t2, { waitForUnmount: false }) : Promise.resolve()).then(() => {
487
+ const e2 = yt.map(T).indexOf(t2);
488
+ yt.splice(e2, 1);
488
489
  });
489
490
  }
490
- function He(e, t = { waitForUnmount: !1 }) {
491
- if (typeof e != "string") throw Error(a(26));
492
- const n = H(S, (o) => m(o) === e);
493
- if (!n) throw Error(a(27, !1, e));
494
- const r = Ge(m(n));
495
- if (t && t.waitForUnmount) {
496
- if (r) return r.promise;
491
+ function Nt(t2, e2 = { waitForUnmount: false }) {
492
+ if ("string" != typeof t2) throw Error(u(26));
493
+ const n2 = S(yt, (e3) => T(e3) === t2);
494
+ if (!n2) throw Error(u(27, false, t2));
495
+ const r2 = gt(T(n2));
496
+ if (e2 && e2.waitForUnmount) {
497
+ if (r2) return r2.promise;
497
498
  {
498
- const o = new Promise((s, p) => {
499
- Pe(n, () => o, s, p);
499
+ const t3 = new Promise((e3, r3) => {
500
+ wt(n2, () => t3, e3, r3);
500
501
  });
501
- return o;
502
+ return t3;
502
503
  }
503
504
  }
504
505
  {
505
- let o;
506
- return r ? (o = r.promise, Te(n, r.resolve, r.reject)) : o = new Promise((s, p) => {
507
- Pe(n, () => o, s, p), Te(n, s, p);
508
- }), o;
506
+ let t3;
507
+ return r2 ? (t3 = r2.promise, St(n2, r2.resolve, r2.reject)) : t3 = new Promise((e3, r3) => {
508
+ wt(n2, () => t3, e3, r3), St(n2, e3, r3);
509
+ }), t3;
509
510
  }
510
511
  }
511
- function Te(e, t, n) {
512
+ function St(t2, e2, n2) {
512
513
  Promise.resolve().then(() => {
513
- if (H(Fe(), (r) => r === m(e))) return Qe();
514
- }).then(() => Y(e).then(ae).then(() => {
515
- t(), setTimeout(() => {
516
- $();
514
+ if (S(bt(), (e3) => e3 === T(t2))) return $t();
515
+ }).then(() => $(t2).then(mt).then(() => {
516
+ e2(), setTimeout(() => {
517
+ Lt();
517
518
  });
518
- })).catch(n);
519
- }
520
- function be(e) {
521
- return !e || typeof e == "function" || typeof e == "object" && e !== null && !Array.isArray(e);
522
- }
523
- function Je(e, t) {
524
- const n = function(r, o) {
525
- let s = 0, p = !1, i = "^";
526
- r[0] !== "/" && (r = "/" + r);
527
- for (let u = 0; u < r.length; u++) {
528
- const E = r[u];
529
- (!p && E === ":" || p && E === "/") && y(u);
519
+ })).catch(n2);
520
+ }
521
+ function _t(t2) {
522
+ return !t2 || "function" == typeof t2 || "object" == typeof t2 && null !== t2 && !Array.isArray(t2);
523
+ }
524
+ function Dt(t2, e2) {
525
+ const n2 = function(t3, e3) {
526
+ let n3 = 0, r2 = false, o2 = "^";
527
+ "/" !== t3[0] && (t3 = "/" + t3);
528
+ for (let e4 = 0; e4 < t3.length; e4++) {
529
+ const n4 = t3[e4], o3 = r2 && "/" === n4;
530
+ (!r2 && ":" === n4 || o3) && i2(e4);
530
531
  }
531
- return y(r.length), new RegExp(i, "i");
532
- function y(u) {
533
- const E = r.slice(s, u).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
534
- if (i += p ? "[^/]+/?" : E, u === r.length) if (p) o && (i += "$");
532
+ return i2(t3.length), new RegExp(o2, "i");
533
+ function i2(i3) {
534
+ const s2 = t3.slice(n3, i3).replace(/[|\\{}()[\]^$+*?.]/g, "\\$&");
535
+ if (o2 += r2 ? "[^/]+/?" : s2, i3 === t3.length) if (r2) e3 && (o2 += "$");
535
536
  else {
536
- const l = o ? "" : ".*";
537
- i = i.charAt(i.length - 1) === "/" ? `${i}${l}$` : `${i}(/${l})?(#.*)?$`;
537
+ const t4 = e3 ? "" : ".*";
538
+ o2 = "/" === o2.charAt(o2.length - 1) ? `${o2}${t4}$` : `${o2}(/${t4})?(#.*)?$`;
538
539
  }
539
- p = !p, s = u;
540
+ r2 = !r2, n3 = i3;
540
541
  }
541
- }(e, t);
542
- return (r) => {
543
- let o = r.origin;
544
- o || (o = `${r.protocol}//${r.host}`);
545
- const s = r.href.replace(o, "").replace(r.search, "").split("?")[0];
546
- return n.test(s);
542
+ }(t2, e2);
543
+ return (t3) => {
544
+ let e3 = t3.origin;
545
+ e3 || (e3 = `${t3.protocol}//${t3.host}`);
546
+ const r2 = t3.href.replace(e3, "").replace(t3.search, "").split("?")[0];
547
+ return n2.test(r2);
547
548
  };
548
549
  }
549
- let Q = !1, V = [], ee = C && window.location.href;
550
- function Qe() {
551
- return $();
550
+ let Ut = false, Mt = [], jt = X && window.location.href;
551
+ function $t() {
552
+ return Lt();
552
553
  }
553
- function $(e = [], t, n = !1) {
554
- if (Q) return new Promise((h, d) => {
555
- V.push({ resolve: h, reject: d, eventArguments: t });
554
+ function Lt(t2 = [], e2, r2 = false) {
555
+ if (Ut) return new Promise((t3, n2) => {
556
+ Mt.push({ resolve: t3, reject: n2, eventArguments: e2 });
556
557
  });
557
- const { appsToUnload: r, appsToUnmount: o, appsToLoad: s, appsToMount: p } = function() {
558
- const h = [], d = [], A = [], b = [], O = (/* @__PURE__ */ new Date()).getTime();
559
- return S.forEach((g) => {
560
- const f = g.status !== v && re(g);
561
- switch (g.status) {
562
- case B:
563
- f && O - g.loadErrorTime >= 200 && A.push(g);
558
+ const { appsToUnload: o2, appsToUnmount: i2, appsToLoad: s2, appsToMount: a2 } = function() {
559
+ const t3 = [], e3 = [], n2 = [], r3 = [], o3 = (/* @__PURE__ */ new Date()).getTime();
560
+ return yt.forEach((i3) => {
561
+ const s3 = i3.status !== v && O(i3);
562
+ switch (i3.status) {
563
+ case E:
564
+ s3 && o3 - i3.loadErrorTime >= 200 && n2.push(i3);
564
565
  break;
565
- case D:
566
- case z:
567
- f && A.push(g);
566
+ case c:
567
+ case l:
568
+ s3 && n2.push(i3);
568
569
  break;
569
- case I:
570
- case U:
571
- !f && Ge(m(g)) ? h.push(g) : f && b.push(g);
570
+ case f:
571
+ case h:
572
+ !s3 && gt(T(i3)) ? t3.push(i3) : s3 && r3.push(i3);
572
573
  break;
573
- case N:
574
- f || d.push(g);
574
+ case d:
575
+ s3 || e3.push(i3);
575
576
  }
576
- }), { appsToUnload: h, appsToUnmount: d, appsToLoad: A, appsToMount: b };
577
+ }), { appsToUnload: t3, appsToUnmount: e3, appsToLoad: n2, appsToMount: r3 };
577
578
  }();
578
- let i, y = [], u = ee, E = ee = window.location.href;
579
- return ue() ? (Q = !0, i = r.concat(s, o, p), Promise.resolve().then(() => (c(i.length === 0 ? "before-no-app-change" : "before-app-change", T(!0)), c("before-routing-event", T(!0, { cancelNavigation: l })), Promise.all(y).then((h) => {
580
- if (h.some((f) => f)) return ie.call(window.history, history.state, "", u.substring(location.origin.length)), ee = location.href, Q = !1, $(e, t, !0);
581
- const d = r.map(ae), A = o.map(Y).map((f) => f.then(ae)).concat(d), b = Promise.all(A);
582
- b.then(() => {
583
- c("before-mount-routing-event", T(!0));
584
- }, (f) => {
585
- throw f;
579
+ let p2, m2 = [], w2 = jt, g2 = jt = window.location.href;
580
+ return Bt() ? (Ut = true, p2 = o2.concat(s2, i2, a2), Promise.resolve().then(() => (S2(0 === p2.length ? "before-no-app-change" : "before-app-change", A2(true)), S2("before-routing-event", A2(true, { cancelNavigation: y2 })), Promise.all(m2).then((n2) => {
581
+ if (n2.some((t3) => t3)) return st.call(window.history, history.state, "", w2.substring(location.origin.length)), jt = location.href, Ut = false, Lt(t2, e2, true);
582
+ const r3 = o2.map(mt), u2 = i2.map($).map((t3) => t3.then(mt)).concat(r3), c2 = Promise.all(u2);
583
+ c2.then(() => {
584
+ S2("before-mount-routing-event", A2(true));
585
+ }, (t3) => {
586
+ throw t3;
586
587
  });
587
- const O = s.map((f) => se(f).then((_) => Ae(_, b))), g = p.filter((f) => s.indexOf(f) < 0).map((f) => Ae(f, b));
588
- return b.catch((f) => {
589
- throw w(), f;
590
- }).then(() => (w(), Promise.all(O.concat(g)).catch((f) => {
591
- throw e.forEach((_) => _.reject(f)), f;
592
- }).then(P).then(() => {
593
- }, (f) => {
594
- throw f;
588
+ const l2 = s2.map((t3) => z(t3).then((t4) => Rt(t4, c2))), f2 = a2.filter((t3) => s2.indexOf(t3) < 0).map((t3) => Rt(t3, c2));
589
+ return c2.catch((t3) => {
590
+ throw b2(), t3;
591
+ }).then(() => (b2(), Promise.all(l2.concat(f2)).catch((e3) => {
592
+ throw t2.forEach((t3) => t3.reject(e3)), e3;
593
+ }).then(P2).then(() => {
594
+ }, (t3) => {
595
+ throw t3;
595
596
  })));
596
- })))) : (i = s, Promise.resolve().then(() => {
597
- const h = s.map(se);
598
- return Promise.all(h).then(w).then(() => []).catch((d) => {
599
- throw w(), d;
597
+ })))) : (p2 = s2, Promise.resolve().then(() => {
598
+ const t3 = s2.map(z);
599
+ return Promise.all(t3).then(b2).then(() => []).catch((t4) => {
600
+ throw b2(), t4;
600
601
  }).finally(() => {
601
602
  });
602
603
  }));
603
- function l(h = !0) {
604
- const d = typeof (h == null ? void 0 : h.then) == "function" ? h : Promise.resolve(h);
605
- y.push(d.catch((A) => (console.warn(Error(a(42))), console.warn(A), !1)));
604
+ function y2(t3 = true) {
605
+ const e3 = "function" == typeof (null == t3 ? void 0 : t3.then) ? t3 : Promise.resolve(t3);
606
+ m2.push(e3.catch((t4) => (console.warn(Error(u(42))), console.warn(t4), false)));
606
607
  }
607
- function P() {
608
- const h = We();
609
- e.forEach((d) => d.resolve(h));
608
+ function P2() {
609
+ const e3 = Et();
610
+ t2.forEach((t3) => t3.resolve(e3));
610
611
  try {
611
- c(i.length === 0 ? "no-app-change" : "app-change", T()), c("routing-event", T());
612
- } catch (d) {
612
+ S2(0 === p2.length ? "no-app-change" : "app-change", A2()), S2("routing-event", A2());
613
+ } catch (t3) {
613
614
  setTimeout(() => {
614
- throw d;
615
+ throw t3;
615
616
  });
616
617
  }
617
- if (Q = !1, V.length > 0) {
618
- const d = V;
619
- V = [], $(d);
618
+ if (Ut = false, Mt.length > 0) {
619
+ const t3 = Mt;
620
+ Mt = [], Lt(t3);
620
621
  }
621
- return h;
622
+ return e3;
622
623
  }
623
- function w() {
624
- n || (e.forEach((h) => {
625
- he(h.eventArguments);
626
- }), he(t));
624
+ function b2() {
625
+ r2 || (t2.forEach((t3) => {
626
+ et(t3.eventArguments);
627
+ }), et(e2));
627
628
  }
628
- function T(h = !1, d) {
629
- const A = {}, b = { [N]: [], [U]: [], [D]: [], [v]: [] };
630
- h ? (s.concat(p).forEach((f, _) => {
631
- g(f, N);
632
- }), r.forEach((f) => {
633
- g(f, D);
634
- }), o.forEach((f) => {
635
- g(f, U);
636
- })) : i.forEach((f) => {
637
- g(f);
629
+ function A2(t3 = false, n2) {
630
+ const r3 = {}, u2 = { [d]: [], [h]: [], [c]: [], [v]: [] };
631
+ t3 ? (s2.concat(a2).forEach((t4, e3) => {
632
+ f2(t4, d);
633
+ }), o2.forEach((t4) => {
634
+ f2(t4, c);
635
+ }), i2.forEach((t4) => {
636
+ f2(t4, h);
637
+ })) : p2.forEach((t4) => {
638
+ f2(t4);
638
639
  });
639
- const O = { detail: { newAppStatuses: A, appsByNewStatus: b, totalAppChanges: i.length, originalEvent: t == null ? void 0 : t[0], oldUrl: u, newUrl: E } };
640
- return d && K(O.detail, d), O;
641
- function g(f, _) {
642
- const Z = m(f);
643
- _ = _ || ke(Z), A[Z] = _, (b[_] = b[_] || []).push(Z);
640
+ const l2 = { detail: { newAppStatuses: r3, appsByNewStatus: u2, totalAppChanges: p2.length, originalEvent: null == e2 ? void 0 : e2[0], oldUrl: w2, newUrl: g2 } };
641
+ return n2 && N(l2.detail, n2), l2;
642
+ function f2(t4, e3) {
643
+ const n3 = T(t4);
644
+ e3 = e3 || Pt(n3), r3[n3] = e3, (u2[e3] = u2[e3] || []).push(n3);
644
645
  }
645
646
  }
646
- function c(h, d) {
647
- n || window.dispatchEvent(new te(`single-spa:${h}`, d));
647
+ function S2(t3, e3) {
648
+ r2 || window.dispatchEvent(new n(`single-spa:${t3}`, e3));
648
649
  }
649
650
  }
650
- function Ae(e, t) {
651
- return re(e) ? le(e).then((n) => t.then(() => re(n) ? oe(n) : n)) : t.then(() => e);
651
+ function Rt(t2, e2) {
652
+ return O(t2) ? j(t2).then((t3) => e2.then(() => O(t3) ? x(t3) : t3)) : e2.then(() => t2);
652
653
  }
653
- let Ve = !1;
654
- function lt(e) {
655
- Ve = !0, C && (Ie(e), $());
654
+ let xt = false;
655
+ function It(t2) {
656
+ xt = true, X && (at(t2), Lt());
656
657
  }
657
- function ue() {
658
- return Ve;
658
+ function Bt() {
659
+ return xt;
659
660
  }
660
- var ct = { getRawAppData: function() {
661
- return [...S];
662
- }, reroute: $, NOT_LOADED: D, toLoadPromise: se, toBootstrapPromise: le, unregisterApplication: Ke, getProfilerData: function() {
663
- return Ze;
661
+ var Gt = { getRawAppData: function() {
662
+ return [...yt];
663
+ }, reroute: Lt, NOT_LOADED: c, toLoadPromise: z, toBootstrapPromise: j, unregisterApplication: At, getProfilerData: function() {
664
+ return M;
664
665
  } };
665
- C && window.__SINGLE_SPA_DEVTOOLS__ && (window.__SINGLE_SPA_DEVTOOLS__.exposedMethods = ct);
666
+ X && window.__SINGLE_SPA_DEVTOOLS__ && (window.__SINGLE_SPA_DEVTOOLS__.exposedMethods = Gt);
666
667
  export {
667
- Re as t
668
+ tt as t
668
669
  };