@ximatai/muyun-web-app 0.26.10 → 0.26.12

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 (172) hide show
  1. package/dist/ModuleActionManagementView-BHEooZ5L.js +672 -0
  2. package/dist/ModuleGovernanceView-DB3TWlMy.js +28521 -0
  3. package/dist/RoleDetailWorkspaceView-D6X7pAj5.js +1379 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index.js +1929 -351
  6. package/dist/moduleGovernanceWorkspaceView-C5pqJOEJ.js +40 -0
  7. package/dist/platform-workbench-DJj42YQP.js +22911 -0
  8. package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
  9. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
  10. package/dist/types/app/LoginView.vue.d.ts +1 -1
  11. package/dist/types/app/workbenchRouteSync.d.ts +10 -1
  12. package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
  13. package/dist/types/app/workbenchStartup.d.ts +7 -0
  14. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
  15. package/dist/types/consumer/index.d.ts +2 -1
  16. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
  17. package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +12 -1
  18. package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +17 -0
  19. package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
  20. package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
  21. package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
  22. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +3 -1
  23. package/dist/types/dynamic-page-runtime/composables/useModulePageFormContributionRuntime.d.ts +5 -3
  24. package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +82 -28
  25. package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
  26. package/dist/types/dynamic-page-runtime/formActionResult.d.ts +5 -0
  27. package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
  28. package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
  29. package/dist/types/dynamic-page-runtime/index.d.ts +1 -2
  30. package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +75 -1
  31. package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
  32. package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
  33. package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -0
  34. package/dist/types/formula/FormulaRuntime.d.ts +9 -0
  35. package/dist/types/{dynamic-page-runtime/DynamicModuleHost.vue.d.ts → platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts} +2 -2
  36. package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
  37. package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
  38. package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
  39. package/dist/types/platform-admin-runtime/role/RoleAccountGrantDrawerSurface.vue.d.ts +7 -0
  40. package/dist/types/platform-admin-runtime/role/RoleAuthorizationDrawerSurface.vue.d.ts +7 -0
  41. package/dist/types/platform-admin-runtime/role/RoleEmploymentGrantDrawerSurface.vue.d.ts +7 -0
  42. package/dist/types/platform-admin-runtime/role/RoleEnumTitleCell.vue.d.ts +8 -0
  43. package/dist/types/platform-admin-runtime/role/RoleGroupMemberFormField.vue.d.ts +7 -0
  44. package/dist/types/platform-admin-runtime/role/RoleScopeTree.vue.d.ts +7 -0
  45. package/dist/types/platform-admin-runtime/roleModulePageEnhancement.d.ts +7 -0
  46. package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
  47. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
  48. package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +9 -4
  49. package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
  50. package/dist/types/platform-components/DrawerOperationBar.vue.d.ts +4 -2
  51. package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
  52. package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
  53. package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
  54. package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
  55. package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
  56. package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
  57. package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +1 -0
  58. package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +2 -0
  59. package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -2
  60. package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +8 -3
  61. package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
  62. package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
  63. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
  64. package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
  65. package/dist/types/platform-components/RecordFormFields.vue.d.ts +21 -2
  66. package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
  67. package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
  68. package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -2
  69. package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
  70. package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
  71. package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -2
  72. package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
  73. package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
  74. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +110 -64
  75. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +124 -0
  76. package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
  77. package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
  78. package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
  79. package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
  80. package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +15 -4
  81. package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
  82. package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
  83. package/dist/types/platform-components/index.d.ts +20 -1
  84. package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
  85. package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
  86. package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
  87. package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
  88. package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
  89. package/dist/types/platform-components/recordQueryListColumnModel.d.ts +42 -0
  90. package/dist/types/platform-components/scopedTreeModuleContext.d.ts +2 -2
  91. package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
  92. package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
  93. package/dist/types/platform-components/staticTreeResourceModuleContext.d.ts +3 -3
  94. package/dist/types/platform-workbench/index.d.ts +2 -0
  95. package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
  96. package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
  97. package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
  98. package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
  99. package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
  100. package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -0
  101. package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
  102. package/dist/types/views/EmployeeEmploymentTable.vue.d.ts +5 -0
  103. package/dist/types/views/{UserDetailRouteView.vue.d.ts → MetadataGovernanceSurface.vue.d.ts} +3 -3
  104. package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
  105. package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
  106. package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
  107. package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
  108. package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
  109. package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
  110. package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
  111. package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
  112. package/dist/types/views/RoleAccountGrantDrawer.vue.d.ts +6 -2
  113. package/dist/types/views/RoleAuthorizationView.vue.d.ts +7 -0
  114. package/dist/types/views/RoleEmploymentGrantDrawer.vue.d.ts +5 -1
  115. package/dist/types/views/businessRuleGovernance.d.ts +201 -0
  116. package/dist/types/views/metadataModelEditSession.d.ts +75 -0
  117. package/dist/types/views/metadataModelTree.d.ts +40 -0
  118. package/dist/types/views/metadataNaming.d.ts +7 -0
  119. package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
  120. package/dist/types/views/metadataSourceTree.d.ts +10 -0
  121. package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
  122. package/dist/types/views/pageCompositionDraftState.d.ts +375 -0
  123. package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
  124. package/dist/types/views/pageCompositionMode.d.ts +86 -0
  125. package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
  126. package/dist/types/views/pageCompositionTransport.d.ts +9 -0
  127. package/dist/types/views/roleGrantClient.d.ts +8 -5
  128. package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
  129. package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
  130. package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
  131. package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
  132. package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +5 -2
  133. package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
  134. package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
  135. package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
  136. package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +5 -1
  137. package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
  138. package/dist/types/vue-ui-antdv/components/UiTable.vue.d.ts +1 -0
  139. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
  140. package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
  141. package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +76 -3
  142. package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +1 -1
  143. package/dist/types/vue-ui-antdv/index.d.ts +6 -1
  144. package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
  145. package/dist/types/vue-ui-antdv/types.d.ts +70 -0
  146. package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
  147. package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
  148. package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
  149. package/dist/types/web-contracts/index.d.ts +75 -8
  150. package/dist/types/web-core/module/index.d.ts +1 -0
  151. package/dist/types/web-core/module/moduleContext.d.ts +15 -0
  152. package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
  153. package/dist/types/web-core/module/runtimeContext.d.ts +7 -3
  154. package/dist/types/web-core/module/staticModuleClient.d.ts +29 -6
  155. package/dist/workspaceViews-DI_1vYX9.js +3518 -0
  156. package/package.json +1 -1
  157. package/dist/MetadataOrchestrationView-BhtVwJII.js +0 -661
  158. package/dist/ModuleActionManagementView-DpZS-xAD.js +0 -597
  159. package/dist/RoleAuthorizationView-8lilhtMB.js +0 -646
  160. package/dist/RoleDetailWorkspaceView-CFha6JHn.js +0 -26
  161. package/dist/RoleManagementView-0_KDrzgh.js +0 -1948
  162. package/dist/platform-components-oRIsIoxu.js +0 -12371
  163. package/dist/types/dynamic-page-runtime/DynamicRecordDetailActions.vue.d.ts +0 -39
  164. package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +0 -5
  165. package/dist/types/views/UserDetailContent.vue.d.ts +0 -32
  166. package/dist/types/views/UserManagementListView.vue.d.ts +0 -3
  167. package/dist/types/views/UserManagementView.vue.d.ts +0 -3
  168. package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
  169. package/dist/types/views/useUserSessionRows.d.ts +0 -28
  170. package/dist/types/views/userDetailStateModel.d.ts +0 -9
  171. package/dist/types/views/userManagementRouteState.d.ts +0 -11
  172. package/dist/workspaceViews-D-RiJ64o.js +0 -9078
package/dist/index.js CHANGED
@@ -1,23 +1,1488 @@
1
- import { $ as e, $n as t, $t as n, An as r, At as i, Bn as a, Bt as o, Cn as s, Ct as c, Dn as l, En as u, Et as d, Fn as f, G as p, Gn as m, Gt as h, Hn as g, Ht as _, In as v, It as y, J as b, Jn as x, Jt as S, Kn as ee, Kt as te, Ln as ne, Mn as re, Nn as ie, On as ae, Ot as oe, Pn as se, Q as ce, Qn as le, Qt as ue, Rn as de, Rt as fe, Sn as pe, St as me, Tn as he, Tt as ge, Un as _e, Ut as ve, V as ye, Vn as be, Vt as xe, Wn as Se, Wt as Ce, X as we, Xn as Te, Xt as Ee, Y as De, Yn as Oe, Yt as ke, Z as Ae, Zn as je, Zt as Me, _n as Ne, _t as Pe, an as Fe, ar as Ie, at as Le, bn as Re, cn as ze, cr as Be, ct as Ve, dn as He, en as Ue, er as We, et as Ge, fn as Ke, gn as qe, hn as Je, ht as Ye, in as Xe, ir as Ze, jn as Qe, jt as C, kn as $e, ln as et, lr as tt, mn as nt, mt as rt, nn as it, nr as at, nt as ot, on as st, or as ct, ot as lt, pn as ut, qn as dt, qt as ft, rn as pt, rr as mt, sn as ht, sr as gt, st as _t, tn as vt, tr as yt, un as bt, ur as xt, ut as St, vn as Ct, wn as wt, wt as Tt, xn as Et, yn as Dt, yt as Ot, zn as kt, zt as At } from "./platform-components-oRIsIoxu.js";
2
- import { $ as jt, A as Mt, B as Nt, C as Pt, D as Ft, E as It, F as Lt, G as Rt, H as zt, I as Bt, J as Vt, K as Ht, L as Ut, M as w, N as Wt, O as Gt, P as Kt, Q as T, R as qt, S as Jt, T as Yt, U as Xt, V as Zt, W as Qt, X as $t, Y as en, Z as tn, _ as nn, a as rn, at as E, b as an, c as on, ct as sn, d as cn, dt as D, et as ln, f as un, g as dn, h as fn, i as pn, it as mn, j as hn, k as gn, l as _n, lt as vn, m as yn, n as bn, nt as xn, o as Sn, ot as Cn, p as wn, q as Tn, r as En, rt as Dn, s as On, st as O, t as kn, tt as k, u as An, ut as jn, w as Mn, x as Nn, z as Pn } from "./workspaceViews-D-RiJ64o.js";
3
- import { Fragment as Fn, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createTextVNode as In, createVNode as F, defineAsyncComponent as Ln, defineComponent as I, normalizeClass as Rn, normalizeStyle as zn, onBeforeUnmount as Bn, onMounted as Vn, openBlock as L, provide as Hn, ref as R, renderList as Un, renderSlot as Wn, resolveDynamicComponent as Gn, toDisplayString as z, unref as B, watch as Kn, withCtx as V, withModifiers as qn } from "vue";
1
+ import { n as e, r as t } from "./rolldown-runtime-DPVXH0ON.js";
2
+ import { $n as n, An as r, Ar as i, At as a, Bn as o, Br as s, Bt as c, Cr as l, Ct as u, Dn as d, Dr as f, Dt as p, Er as m, Et as h, Fn as g, Fr as _, Ft as v, Gn as ee, Gr as te, Gt as ne, Hn as re, Hr as ie, Ht as y, In as ae, Ir as oe, It as se, Jn as ce, Jr as le, Jt as ue, Kn as de, Kr as fe, Kt as pe, Ln as me, Lr as he, Lt as ge, Mn as _e, Mr as ve, Mt as ye, Nn as be, Nr as xe, Nt as Se, On as Ce, Or as we, Ot as Te, Pn as Ee, Pr as De, Pt as Oe, Qn as ke, Rn as Ae, Rr as je, Rt as Me, S as Ne, Sr as Pe, St as Fe, Tn as Ie, Tr as Le, Tt as Re, Un as ze, Ur as Be, Ut as Ve, Vn as He, Vr as Ue, Vt as We, Wn as Ge, Wr as Ke, Wt as b, Xn as qe, Xr as Je, Xt as x, Y as Ye, Yn as Xe, Yr as Ze, Yt as Qe, Zn as $e, Zr as et, Zt as tt, _n as nt, _r as rt, a as it, an as at, ar as ot, b as st, bn as S, br as ct, bt as lt, c as ut, cn as dt, cr as ft, ct as pt, d as mt, dn as ht, dr as gt, dt as _t, er as vt, f as yt, fn as bt, fr as xt, ft as St, g as Ct, gr as wt, h as Tt, hn as Et, hr as Dt, ht as Ot, i as kt, ir as At, jn as jt, jr as Mt, jt as Nt, kn as Pt, kr as Ft, kt as It, l as Lt, ln as Rt, lr as zt, lt as Bt, m as C, mr as Vt, mt as Ht, n as Ut, nn as Wt, nr as Gt, o as Kt, or as qt, ot as Jt, p as Yt, pr as Xt, pt as Zt, qn as Qt, qr as $t, qt as w, r as en, rn as tn, rr as nn, s as rn, sr as an, t as on, tn as sn, tr as cn, u as ln, un, ur as dn, v as fn, vr as pn, vt as mn, wr as hn, x as gn, xr as _n, xt as vn, y as yn, yr as bn, yt as xn, zn as Sn, zr as Cn, zt as wn } from "./platform-workbench-DJj42YQP.js";
3
+ import { C as Tn, S as En, _ as Dn, b as On, d as kn, f as An, g as jn, h as Mn, l as Nn, m as Pn, p as Fn, u as In, v as Ln, y as Rn } from "./workspaceViews-DI_1vYX9.js";
4
+ import { r as zn } from "./moduleGovernanceWorkspaceView-C5pqJOEJ.js";
5
+ import * as Bn from "vue";
6
+ import { Fragment as Vn, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createTextVNode as Hn, createVNode as A, defineAsyncComponent as Un, defineComponent as j, normalizeClass as Wn, normalizeStyle as Gn, onBeforeUnmount as Kn, onMounted as qn, openBlock as M, provide as Jn, ref as N, renderList as Yn, renderSlot as Xn, resolveDynamicComponent as Zn, toDisplayString as P, unref as F, watch as Qn, withCtx as I, withModifiers as $n } from "vue";
7
+ //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
8
+ var er = class {
9
+ constructor() {
10
+ this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
11
+ }
12
+ subscribe(e) {
13
+ return this.listeners.add(e), this.onSubscribe(), () => {
14
+ this.listeners.delete(e), this.onUnsubscribe();
15
+ };
16
+ }
17
+ hasListeners() {
18
+ return this.listeners.size > 0;
19
+ }
20
+ onSubscribe() {}
21
+ onUnsubscribe() {}
22
+ }, tr = new class extends er {
23
+ #e;
24
+ #t;
25
+ #n;
26
+ constructor() {
27
+ super(), this.#n = (e) => {
28
+ if (typeof window < "u" && window.addEventListener) {
29
+ let t = () => e();
30
+ return window.addEventListener("visibilitychange", t, !1), () => {
31
+ window.removeEventListener("visibilitychange", t);
32
+ };
33
+ }
34
+ };
35
+ }
36
+ onSubscribe() {
37
+ this.#t || this.setEventListener(this.#n);
38
+ }
39
+ onUnsubscribe() {
40
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
41
+ }
42
+ setEventListener(e) {
43
+ this.#n = e, this.#t?.(), this.#t = e((e) => {
44
+ typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
45
+ });
46
+ }
47
+ setFocused(e) {
48
+ this.#e !== e && (this.#e = e, this.onFocus());
49
+ }
50
+ onFocus() {
51
+ let e = this.isFocused();
52
+ this.listeners.forEach((t) => {
53
+ t(e);
54
+ });
55
+ }
56
+ isFocused() {
57
+ return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
58
+ }
59
+ }(), nr = {
60
+ setTimeout: (e, t) => setTimeout(e, t),
61
+ clearTimeout: (e) => clearTimeout(e),
62
+ setInterval: (e, t) => setInterval(e, t),
63
+ clearInterval: (e) => clearInterval(e)
64
+ }, rr = new class {
65
+ #e = nr;
66
+ #t = !1;
67
+ setTimeoutProvider(e) {
68
+ process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
69
+ previous: this.#e,
70
+ provider: e
71
+ }), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
72
+ }
73
+ setTimeout(e, t) {
74
+ return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
75
+ }
76
+ clearTimeout(e) {
77
+ this.#e.clearTimeout(e);
78
+ }
79
+ setInterval(e, t) {
80
+ return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
81
+ }
82
+ clearInterval(e) {
83
+ this.#e.clearInterval(e);
84
+ }
85
+ }();
86
+ function ir(e) {
87
+ setTimeout(e, 0);
88
+ }
89
+ //#endregion
90
+ //#region node_modules/@tanstack/query-core/build/modern/utils.js
91
+ var ar = typeof window > "u" || "Deno" in globalThis;
92
+ function L() {}
93
+ function or(e, t) {
94
+ return typeof e == "function" ? e(t) : e;
95
+ }
96
+ function sr(e) {
97
+ return typeof e == "number" && e >= 0 && e !== Infinity;
98
+ }
99
+ function cr(e, t) {
100
+ return Math.max(e + (t || 0) - Date.now(), 0);
101
+ }
102
+ function lr(e, t) {
103
+ return typeof e == "function" ? e(t) : e;
104
+ }
105
+ function ur(e, t) {
106
+ return typeof e == "function" ? e(t) : e;
107
+ }
108
+ function dr(e, t) {
109
+ let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
110
+ if (o) {
111
+ if (r) {
112
+ if (t.queryHash !== pr(o, t.options)) return !1;
113
+ } else if (!z(t.queryKey, o)) return !1;
114
+ }
115
+ if (n !== "all") {
116
+ let e = t.isActive();
117
+ if (n === "active" && !e || n === "inactive" && e) return !1;
118
+ }
119
+ return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
120
+ }
121
+ function fr(e, t) {
122
+ let { exact: n, status: r, predicate: i, mutationKey: a } = e;
123
+ if (a) {
124
+ if (!t.options.mutationKey) return !1;
125
+ if (n) {
126
+ if (R(t.options.mutationKey) !== R(a)) return !1;
127
+ } else if (!z(t.options.mutationKey, a)) return !1;
128
+ }
129
+ return !(r && t.state.status !== r || i && !i(t));
130
+ }
131
+ function pr(e, t) {
132
+ return (t?.queryKeyHashFn || R)(e);
133
+ }
134
+ function R(e) {
135
+ return JSON.stringify(e, (e, t) => _r(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
136
+ }
137
+ function z(e, t) {
138
+ return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => z(e[n], t[n])) : !1;
139
+ }
140
+ var mr = Object.prototype.hasOwnProperty;
141
+ function hr(e, t, n = 0) {
142
+ if (e === t) return e;
143
+ if (n > 500) return t;
144
+ let r = gr(e) && gr(t);
145
+ if (!r && !(_r(e) && _r(t))) return t;
146
+ let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
147
+ for (let l = 0; l < o; l++) {
148
+ let o = r ? l : a[l], u = e[o], d = t[o];
149
+ if (u === d) {
150
+ s[o] = u, (r ? l < i : mr.call(e, o)) && c++;
151
+ continue;
152
+ }
153
+ if (u === null || d === null || typeof u != "object" || typeof d != "object") {
154
+ s[o] = d;
155
+ continue;
156
+ }
157
+ let f = hr(u, d, n + 1);
158
+ s[o] = f, f === u && c++;
159
+ }
160
+ return i === o && c === i ? e : s;
161
+ }
162
+ function gr(e) {
163
+ return Array.isArray(e) && e.length === Object.keys(e).length;
164
+ }
165
+ function _r(e) {
166
+ if (!vr(e)) return !1;
167
+ let t = e.constructor;
168
+ if (t === void 0) return !0;
169
+ let n = t.prototype;
170
+ return !(!vr(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
171
+ }
172
+ function vr(e) {
173
+ return Object.prototype.toString.call(e) === "[object Object]";
174
+ }
175
+ function yr(e) {
176
+ return new Promise((t) => {
177
+ rr.setTimeout(t, e);
178
+ });
179
+ }
180
+ function br(e, t, n) {
181
+ if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
182
+ if (n.structuralSharing !== !1) {
183
+ if (process.env.NODE_ENV !== "production") try {
184
+ return hr(e, t);
185
+ } catch (e) {
186
+ throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
187
+ }
188
+ return hr(e, t);
189
+ }
190
+ return t;
191
+ }
192
+ function xr(e, t, n = 0) {
193
+ let r = [...e, t];
194
+ return n && r.length > n ? r.slice(1) : r;
195
+ }
196
+ function Sr(e, t, n = 0) {
197
+ let r = [t, ...e];
198
+ return n && r.length > n ? r.slice(0, -1) : r;
199
+ }
200
+ var Cr = /* @__PURE__ */ Symbol();
201
+ function wr(e, t) {
202
+ return process.env.NODE_ENV !== "production" && e.queryFn === Cr && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Cr ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
203
+ }
204
+ function Tr(e, t, n) {
205
+ let r = !1, i;
206
+ return Object.defineProperty(e, "signal", {
207
+ enumerable: !0,
208
+ get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
209
+ }), e;
210
+ }
211
+ //#endregion
212
+ //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
213
+ var Er = /* @__PURE__ */ (() => {
214
+ let e = () => ar;
215
+ return {
216
+ isServer() {
217
+ return e();
218
+ },
219
+ setIsServer(t) {
220
+ e = t;
221
+ }
222
+ };
223
+ })();
224
+ //#endregion
225
+ //#region node_modules/@tanstack/query-core/build/modern/thenable.js
226
+ function Dr() {
227
+ let e, t, n = new Promise((n, r) => {
228
+ e = n, t = r;
229
+ });
230
+ n.status = "pending", n.catch(() => {});
231
+ function r(e) {
232
+ Object.assign(n, e), delete n.resolve, delete n.reject;
233
+ }
234
+ return n.resolve = (t) => {
235
+ r({
236
+ status: "fulfilled",
237
+ value: t
238
+ }), e(t);
239
+ }, n.reject = (e) => {
240
+ r({
241
+ status: "rejected",
242
+ reason: e
243
+ }), t(e);
244
+ }, n;
245
+ }
246
+ //#endregion
247
+ //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
248
+ var Or = ir;
249
+ function kr() {
250
+ let e = [], t = 0, n = (e) => {
251
+ e();
252
+ }, r = (e) => {
253
+ e();
254
+ }, i = Or, a = (r) => {
255
+ t ? e.push(r) : i(() => {
256
+ n(r);
257
+ });
258
+ }, o = () => {
259
+ let t = e;
260
+ e = [], t.length && i(() => {
261
+ r(() => {
262
+ t.forEach((e) => {
263
+ n(e);
264
+ });
265
+ });
266
+ });
267
+ };
268
+ return {
269
+ batch: (e) => {
270
+ let n;
271
+ t++;
272
+ try {
273
+ n = e();
274
+ } finally {
275
+ t--, t || o();
276
+ }
277
+ return n;
278
+ },
279
+ batchCalls: (e) => (...t) => {
280
+ a(() => {
281
+ e(...t);
282
+ });
283
+ },
284
+ schedule: a,
285
+ setNotifyFunction: (e) => {
286
+ n = e;
287
+ },
288
+ setBatchNotifyFunction: (e) => {
289
+ r = e;
290
+ },
291
+ setScheduler: (e) => {
292
+ i = e;
293
+ }
294
+ };
295
+ }
296
+ var B = kr(), V = new class extends er {
297
+ #e = !0;
298
+ #t;
299
+ #n;
300
+ constructor() {
301
+ super(), this.#n = (e) => {
302
+ if (typeof window < "u" && window.addEventListener) {
303
+ let t = () => e(!0), n = () => e(!1);
304
+ return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
305
+ window.removeEventListener("online", t), window.removeEventListener("offline", n);
306
+ };
307
+ }
308
+ };
309
+ }
310
+ onSubscribe() {
311
+ this.#t || this.setEventListener(this.#n);
312
+ }
313
+ onUnsubscribe() {
314
+ this.hasListeners() || (this.#t?.(), this.#t = void 0);
315
+ }
316
+ setEventListener(e) {
317
+ this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
318
+ }
319
+ setOnline(e) {
320
+ this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
321
+ t(e);
322
+ }));
323
+ }
324
+ isOnline() {
325
+ return this.#e;
326
+ }
327
+ }();
328
+ //#endregion
329
+ //#region node_modules/@tanstack/query-core/build/modern/retryer.js
330
+ function Ar(e) {
331
+ return Math.min(1e3 * 2 ** e, 3e4);
332
+ }
333
+ function jr(e) {
334
+ return (e ?? "online") !== "online" || V.isOnline();
335
+ }
336
+ var Mr = class extends Error {
337
+ constructor(e) {
338
+ super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
339
+ }
340
+ };
341
+ function Nr(e) {
342
+ let t = !1, n = 0, r, i = Dr(), a = () => i.status !== "pending", o = (t) => {
343
+ if (!a()) {
344
+ let n = new Mr(t);
345
+ f(n), e.onCancel?.(n);
346
+ }
347
+ }, s = () => {
348
+ t = !0;
349
+ }, c = () => {
350
+ t = !1;
351
+ }, l = () => tr.isFocused() && (e.networkMode === "always" || V.isOnline()) && e.canRun(), u = () => jr(e.networkMode) && e.canRun(), d = (e) => {
352
+ a() || (r?.(), i.resolve(e));
353
+ }, f = (e) => {
354
+ a() || (r?.(), i.reject(e));
355
+ }, p = () => new Promise((t) => {
356
+ r = (e) => {
357
+ (a() || l()) && t(e);
358
+ }, e.onPause?.();
359
+ }).then(() => {
360
+ r = void 0, a() || e.onContinue?.();
361
+ }), m = () => {
362
+ if (a()) return;
363
+ let r, i = n === 0 ? e.initialPromise : void 0;
364
+ try {
365
+ r = i ?? e.fn();
366
+ } catch (e) {
367
+ r = Promise.reject(e);
368
+ }
369
+ Promise.resolve(r).then(d).catch((r) => {
370
+ if (a()) return;
371
+ let i = e.retry ?? (Er.isServer() ? 0 : 3), o = e.retryDelay ?? Ar, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
372
+ if (t || !c) {
373
+ f(r);
374
+ return;
375
+ }
376
+ n++, e.onFail?.(n, r), yr(s).then(() => l() ? void 0 : p()).then(() => {
377
+ t ? f(r) : m();
378
+ });
379
+ });
380
+ };
381
+ return {
382
+ promise: i,
383
+ status: () => i.status,
384
+ cancel: o,
385
+ continue: () => (r?.(), i),
386
+ cancelRetry: s,
387
+ continueRetry: c,
388
+ canStart: u,
389
+ start: () => (u() ? m() : p().then(m), i)
390
+ };
391
+ }
392
+ //#endregion
393
+ //#region node_modules/@tanstack/query-core/build/modern/removable.js
394
+ var Pr = class {
395
+ #e;
396
+ destroy() {
397
+ this.clearGcTimeout();
398
+ }
399
+ scheduleGc() {
400
+ this.clearGcTimeout(), sr(this.gcTime) && (this.#e = rr.setTimeout(() => {
401
+ this.optionalRemove();
402
+ }, this.gcTime));
403
+ }
404
+ updateGcTime(e) {
405
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Er.isServer() ? Infinity : 3e5));
406
+ }
407
+ clearGcTimeout() {
408
+ this.#e !== void 0 && (rr.clearTimeout(this.#e), this.#e = void 0);
409
+ }
410
+ };
411
+ //#endregion
412
+ //#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
413
+ function Fr(e) {
414
+ return { onFetch: (t, n) => {
415
+ let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
416
+ pages: [],
417
+ pageParams: []
418
+ }, c = 0, l = async () => {
419
+ let n = !1, l = (e) => {
420
+ Tr(e, () => t.signal, () => n = !0);
421
+ }, u = wr(t.options, t.fetchOptions), d = async (e, r, i) => {
422
+ if (n) return Promise.reject(t.signal.reason);
423
+ if (r == null && e.pages.length) return Promise.resolve(e);
424
+ let a = (() => {
425
+ let e = {
426
+ client: t.client,
427
+ queryKey: t.queryKey,
428
+ pageParam: r,
429
+ direction: i ? "backward" : "forward",
430
+ meta: t.options.meta
431
+ };
432
+ return l(e), e;
433
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? Sr : xr;
434
+ return {
435
+ pages: c(e.pages, o, s),
436
+ pageParams: c(e.pageParams, r, s)
437
+ };
438
+ };
439
+ if (i && a.length) {
440
+ let e = i === "backward", t = e ? Lr : Ir, n = {
441
+ pages: a,
442
+ pageParams: o
443
+ };
444
+ s = await d(n, t(r, n), e);
445
+ } else {
446
+ let t = e ?? a.length;
447
+ do {
448
+ let e = c === 0 ? o[0] ?? r.initialPageParam : Ir(r, s);
449
+ if (c > 0 && e == null) break;
450
+ s = await d(s, e), c++;
451
+ } while (c < t);
452
+ }
453
+ return s;
454
+ };
455
+ t.fetchFn = t.options.persister ? () => t.options.persister?.(l, {
456
+ client: t.client,
457
+ queryKey: t.queryKey,
458
+ meta: t.options.meta,
459
+ signal: t.signal
460
+ }, n) : l;
461
+ } };
462
+ }
463
+ function Ir(e, { pages: t, pageParams: n }) {
464
+ let r = t.length - 1;
465
+ return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
466
+ }
467
+ function Lr(e, { pages: t, pageParams: n }) {
468
+ return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
469
+ }
470
+ //#endregion
471
+ //#region node_modules/@tanstack/query-core/build/modern/query.js
472
+ var Rr = class extends Pr {
473
+ #e;
474
+ #t;
475
+ #n;
476
+ #r;
477
+ #i;
478
+ #a;
479
+ #o;
480
+ #s;
481
+ constructor(e) {
482
+ super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Vr(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
483
+ }
484
+ get meta() {
485
+ return this.options.meta;
486
+ }
487
+ get queryType() {
488
+ return this.#e;
489
+ }
490
+ get promise() {
491
+ return this.#a?.promise;
492
+ }
493
+ setOptions(e) {
494
+ if (this.options = {
495
+ ...this.#o,
496
+ ...e
497
+ }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
498
+ let e = Vr(this.options);
499
+ e.data !== void 0 && (this.setState(Br(e.data, e.dataUpdatedAt)), this.#t = e);
500
+ }
501
+ }
502
+ optionalRemove() {
503
+ !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
504
+ }
505
+ setData(e, t) {
506
+ let n = br(this.state.data, e, this.options);
507
+ return this.#l({
508
+ data: n,
509
+ type: "success",
510
+ dataUpdatedAt: t?.updatedAt,
511
+ manual: t?.manual
512
+ }), n;
513
+ }
514
+ setState(e) {
515
+ this.#l({
516
+ type: "setState",
517
+ state: e
518
+ });
519
+ }
520
+ cancel(e) {
521
+ let t = this.#a?.promise;
522
+ return this.#a?.cancel(e), t ? t.then(L).catch(L) : Promise.resolve();
523
+ }
524
+ destroy() {
525
+ super.destroy(), this.cancel({ silent: !0 });
526
+ }
527
+ get resetState() {
528
+ return this.#t;
529
+ }
530
+ reset() {
531
+ this.destroy(), this.setState(this.resetState);
532
+ }
533
+ isActive() {
534
+ return this.observers.some((e) => ur(e.options.enabled, this) !== !1);
535
+ }
536
+ isDisabled() {
537
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Cr || !this.isFetched();
538
+ }
539
+ isFetched() {
540
+ return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
541
+ }
542
+ isStatic() {
543
+ return this.getObserversCount() > 0 && this.observers.some((e) => lr(e.options.staleTime, this) === "static");
544
+ }
545
+ isStale() {
546
+ return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
547
+ }
548
+ isStaleByTime(e = 0) {
549
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !cr(this.state.dataUpdatedAt, e);
550
+ }
551
+ onFocus() {
552
+ this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
553
+ }
554
+ onOnline() {
555
+ this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
556
+ }
557
+ addObserver(e) {
558
+ this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
559
+ type: "observerAdded",
560
+ query: this,
561
+ observer: e
562
+ }));
563
+ }
564
+ removeObserver(e) {
565
+ this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
566
+ type: "observerRemoved",
567
+ query: this,
568
+ observer: e
569
+ }));
570
+ }
571
+ getObserversCount() {
572
+ return this.observers.length;
573
+ }
574
+ #c() {
575
+ return this.state.fetchStatus === "paused" && this.state.status === "pending";
576
+ }
577
+ invalidate() {
578
+ this.state.isInvalidated || this.#l({ type: "invalidate" });
579
+ }
580
+ async fetch(e, t) {
581
+ if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
582
+ if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
583
+ else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
584
+ }
585
+ if (e && this.setOptions(e), !this.options.queryFn) {
586
+ let e = this.observers.find((e) => e.options.queryFn);
587
+ e && this.setOptions(e.options);
588
+ }
589
+ process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
590
+ let n = new AbortController(), r = (e) => {
591
+ Object.defineProperty(e, "signal", {
592
+ enumerable: !0,
593
+ get: () => (this.#s = !0, n.signal)
594
+ });
595
+ }, i = () => {
596
+ let e = wr(this.options, t), n = (() => {
597
+ let e = {
598
+ client: this.#i,
599
+ queryKey: this.queryKey,
600
+ meta: this.meta
601
+ };
602
+ return r(e), e;
603
+ })();
604
+ return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
605
+ }, a = (() => {
606
+ let e = {
607
+ fetchOptions: t,
608
+ options: this.options,
609
+ queryKey: this.queryKey,
610
+ client: this.#i,
611
+ state: this.state,
612
+ fetchFn: i
613
+ };
614
+ return r(e), e;
615
+ })();
616
+ (this.#e === "infinite" ? Fr(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
617
+ type: "fetch",
618
+ meta: a.fetchOptions?.meta
619
+ }), this.#a = Nr({
620
+ initialPromise: t?.initialPromise,
621
+ fn: a.fetchFn,
622
+ onCancel: (e) => {
623
+ e instanceof Mr && e.revert && this.setState({
624
+ ...this.#n,
625
+ fetchStatus: "idle"
626
+ }), n.abort();
627
+ },
628
+ onFail: (e, t) => {
629
+ this.#l({
630
+ type: "failed",
631
+ failureCount: e,
632
+ error: t
633
+ });
634
+ },
635
+ onPause: () => {
636
+ this.#l({ type: "pause" });
637
+ },
638
+ onContinue: () => {
639
+ this.#l({ type: "continue" });
640
+ },
641
+ retry: a.options.retry,
642
+ retryDelay: a.options.retryDelay,
643
+ networkMode: a.options.networkMode,
644
+ canRun: () => !0
645
+ });
646
+ try {
647
+ let e = await this.#a.start();
648
+ if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
649
+ return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
650
+ } catch (e) {
651
+ if (e instanceof Mr) {
652
+ if (e.silent) return this.#a.promise;
653
+ if (e.revert) {
654
+ if (this.state.data === void 0) throw e;
655
+ return this.state.data;
656
+ }
657
+ }
658
+ throw this.#l({
659
+ type: "error",
660
+ error: e
661
+ }), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
662
+ } finally {
663
+ this.scheduleGc();
664
+ }
665
+ }
666
+ #l(e) {
667
+ let t = (t) => {
668
+ switch (e.type) {
669
+ case "failed": return {
670
+ ...t,
671
+ fetchFailureCount: e.failureCount,
672
+ fetchFailureReason: e.error
673
+ };
674
+ case "pause": return {
675
+ ...t,
676
+ fetchStatus: "paused"
677
+ };
678
+ case "continue": return {
679
+ ...t,
680
+ fetchStatus: "fetching"
681
+ };
682
+ case "fetch": return {
683
+ ...t,
684
+ ...zr(t.data, this.options),
685
+ fetchMeta: e.meta ?? null
686
+ };
687
+ case "success":
688
+ let n = {
689
+ ...t,
690
+ ...Br(e.data, e.dataUpdatedAt),
691
+ dataUpdateCount: t.dataUpdateCount + 1,
692
+ ...!e.manual && {
693
+ fetchStatus: "idle",
694
+ fetchFailureCount: 0,
695
+ fetchFailureReason: null
696
+ }
697
+ };
698
+ return this.#n = e.manual ? n : void 0, n;
699
+ case "error":
700
+ let r = e.error;
701
+ return {
702
+ ...t,
703
+ error: r,
704
+ errorUpdateCount: t.errorUpdateCount + 1,
705
+ errorUpdatedAt: Date.now(),
706
+ fetchFailureCount: t.fetchFailureCount + 1,
707
+ fetchFailureReason: r,
708
+ fetchStatus: "idle",
709
+ status: "error",
710
+ isInvalidated: !0
711
+ };
712
+ case "invalidate": return {
713
+ ...t,
714
+ isInvalidated: !0
715
+ };
716
+ case "setState": return {
717
+ ...t,
718
+ ...e.state
719
+ };
720
+ }
721
+ };
722
+ this.state = t(this.state), B.batch(() => {
723
+ this.observers.forEach((e) => {
724
+ e.onQueryUpdate();
725
+ }), this.#r.notify({
726
+ query: this,
727
+ type: "updated",
728
+ action: e
729
+ });
730
+ });
731
+ }
732
+ };
733
+ function zr(e, t) {
734
+ return {
735
+ fetchFailureCount: 0,
736
+ fetchFailureReason: null,
737
+ fetchStatus: jr(t.networkMode) ? "fetching" : "paused",
738
+ ...e === void 0 && {
739
+ error: null,
740
+ status: "pending"
741
+ }
742
+ };
743
+ }
744
+ function Br(e, t) {
745
+ return {
746
+ data: e,
747
+ dataUpdatedAt: t ?? Date.now(),
748
+ error: null,
749
+ isInvalidated: !1,
750
+ status: "success"
751
+ };
752
+ }
753
+ function Vr(e) {
754
+ let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
755
+ return {
756
+ data: t,
757
+ dataUpdateCount: 0,
758
+ dataUpdatedAt: n ? r ?? Date.now() : 0,
759
+ error: null,
760
+ errorUpdateCount: 0,
761
+ errorUpdatedAt: 0,
762
+ fetchFailureCount: 0,
763
+ fetchFailureReason: null,
764
+ fetchMeta: null,
765
+ isInvalidated: !1,
766
+ status: n ? "success" : "pending",
767
+ fetchStatus: "idle"
768
+ };
769
+ }
770
+ //#endregion
771
+ //#region node_modules/@tanstack/query-core/build/modern/mutation.js
772
+ var Hr = class extends Pr {
773
+ #e;
774
+ #t;
775
+ #n;
776
+ #r;
777
+ constructor(e) {
778
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Ur(), this.setOptions(e.options), this.scheduleGc();
779
+ }
780
+ setOptions(e) {
781
+ this.options = e, this.updateGcTime(this.options.gcTime);
782
+ }
783
+ get meta() {
784
+ return this.options.meta;
785
+ }
786
+ addObserver(e) {
787
+ this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
788
+ type: "observerAdded",
789
+ mutation: this,
790
+ observer: e
791
+ }));
792
+ }
793
+ removeObserver(e) {
794
+ this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
795
+ type: "observerRemoved",
796
+ mutation: this,
797
+ observer: e
798
+ });
799
+ }
800
+ optionalRemove() {
801
+ this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
802
+ }
803
+ continue() {
804
+ return this.#r?.continue() ?? this.execute(this.state.variables);
805
+ }
806
+ async execute(e) {
807
+ let t = () => {
808
+ this.#i({ type: "continue" });
809
+ }, n = {
810
+ client: this.#e,
811
+ meta: this.options.meta,
812
+ mutationKey: this.options.mutationKey
813
+ };
814
+ this.#r = Nr({
815
+ fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
816
+ onFail: (e, t) => {
817
+ this.#i({
818
+ type: "failed",
819
+ failureCount: e,
820
+ error: t
821
+ });
822
+ },
823
+ onPause: () => {
824
+ this.#i({ type: "pause" });
825
+ },
826
+ onContinue: t,
827
+ retry: this.options.retry ?? 0,
828
+ retryDelay: this.options.retryDelay,
829
+ networkMode: this.options.networkMode,
830
+ canRun: () => this.#n.canRun(this)
831
+ });
832
+ let r = this.state.status === "pending", i = !this.#r.canStart();
833
+ try {
834
+ if (r) t();
835
+ else {
836
+ this.#i({
837
+ type: "pending",
838
+ variables: e,
839
+ isPaused: i
840
+ }), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
841
+ let t = await this.options.onMutate?.(e, n);
842
+ t !== this.state.context && this.#i({
843
+ type: "pending",
844
+ context: t,
845
+ variables: e,
846
+ isPaused: i
847
+ });
848
+ }
849
+ let a = await this.#r.start();
850
+ return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
851
+ type: "success",
852
+ data: a
853
+ }), a;
854
+ } catch (t) {
855
+ try {
856
+ await this.#n.config.onError?.(t, e, this.state.context, this, n);
857
+ } catch (e) {
858
+ Promise.reject(e);
859
+ }
860
+ try {
861
+ await this.options.onError?.(t, e, this.state.context, n);
862
+ } catch (e) {
863
+ Promise.reject(e);
864
+ }
865
+ try {
866
+ await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
867
+ } catch (e) {
868
+ Promise.reject(e);
869
+ }
870
+ try {
871
+ await this.options.onSettled?.(void 0, t, e, this.state.context, n);
872
+ } catch (e) {
873
+ Promise.reject(e);
874
+ }
875
+ throw this.#i({
876
+ type: "error",
877
+ error: t
878
+ }), t;
879
+ } finally {
880
+ this.#n.runNext(this);
881
+ }
882
+ }
883
+ #i(e) {
884
+ let t = (t) => {
885
+ switch (e.type) {
886
+ case "failed": return {
887
+ ...t,
888
+ failureCount: e.failureCount,
889
+ failureReason: e.error
890
+ };
891
+ case "pause": return {
892
+ ...t,
893
+ isPaused: !0
894
+ };
895
+ case "continue": return {
896
+ ...t,
897
+ isPaused: !1
898
+ };
899
+ case "pending": return {
900
+ ...t,
901
+ context: e.context,
902
+ data: void 0,
903
+ failureCount: 0,
904
+ failureReason: null,
905
+ error: null,
906
+ isPaused: e.isPaused,
907
+ status: "pending",
908
+ variables: e.variables,
909
+ submittedAt: Date.now()
910
+ };
911
+ case "success": return {
912
+ ...t,
913
+ data: e.data,
914
+ failureCount: 0,
915
+ failureReason: null,
916
+ error: null,
917
+ status: "success",
918
+ isPaused: !1
919
+ };
920
+ case "error": return {
921
+ ...t,
922
+ data: void 0,
923
+ error: e.error,
924
+ failureCount: t.failureCount + 1,
925
+ failureReason: e.error,
926
+ isPaused: !1,
927
+ status: "error"
928
+ };
929
+ }
930
+ };
931
+ this.state = t(this.state), B.batch(() => {
932
+ this.#t.forEach((t) => {
933
+ t.onMutationUpdate(e);
934
+ }), this.#n.notify({
935
+ mutation: this,
936
+ type: "updated",
937
+ action: e
938
+ });
939
+ });
940
+ }
941
+ };
942
+ function Ur() {
943
+ return {
944
+ context: void 0,
945
+ data: void 0,
946
+ error: null,
947
+ failureCount: 0,
948
+ failureReason: null,
949
+ isPaused: !1,
950
+ status: "idle",
951
+ variables: void 0,
952
+ submittedAt: 0
953
+ };
954
+ }
955
+ //#endregion
956
+ //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
957
+ var Wr = class extends er {
958
+ constructor(e = {}) {
959
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
960
+ }
961
+ #e;
962
+ #t;
963
+ #n;
964
+ build(e, t, n) {
965
+ let r = new Hr({
966
+ client: e,
967
+ mutationCache: this,
968
+ mutationId: ++this.#n,
969
+ options: e.defaultMutationOptions(t),
970
+ state: n
971
+ });
972
+ return this.add(r), r;
973
+ }
974
+ add(e) {
975
+ this.#e.add(e);
976
+ let t = Gr(e);
977
+ if (typeof t == "string") {
978
+ let n = this.#t.get(t);
979
+ n ? n.push(e) : this.#t.set(t, [e]);
980
+ }
981
+ this.notify({
982
+ type: "added",
983
+ mutation: e
984
+ });
985
+ }
986
+ remove(e) {
987
+ if (this.#e.delete(e)) {
988
+ let t = Gr(e);
989
+ if (typeof t == "string") {
990
+ let n = this.#t.get(t);
991
+ if (n) {
992
+ if (n.length > 1) {
993
+ let t = n.indexOf(e);
994
+ t !== -1 && n.splice(t, 1);
995
+ } else n[0] === e && this.#t.delete(t);
996
+ }
997
+ }
998
+ }
999
+ this.notify({
1000
+ type: "removed",
1001
+ mutation: e
1002
+ });
1003
+ }
1004
+ canRun(e) {
1005
+ let t = Gr(e);
1006
+ if (typeof t == "string") {
1007
+ let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
1008
+ return !n || n === e;
1009
+ }
1010
+ return !0;
1011
+ }
1012
+ runNext(e) {
1013
+ let t = Gr(e);
1014
+ return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
1015
+ }
1016
+ clear() {
1017
+ B.batch(() => {
1018
+ this.#e.forEach((e) => {
1019
+ this.notify({
1020
+ type: "removed",
1021
+ mutation: e
1022
+ });
1023
+ }), this.#e.clear(), this.#t.clear();
1024
+ });
1025
+ }
1026
+ getAll() {
1027
+ return Array.from(this.#e);
1028
+ }
1029
+ find(e) {
1030
+ let t = {
1031
+ exact: !0,
1032
+ ...e
1033
+ };
1034
+ return this.getAll().find((e) => fr(t, e));
1035
+ }
1036
+ findAll(e = {}) {
1037
+ return this.getAll().filter((t) => fr(e, t));
1038
+ }
1039
+ notify(e) {
1040
+ B.batch(() => {
1041
+ this.listeners.forEach((t) => {
1042
+ t(e);
1043
+ });
1044
+ });
1045
+ }
1046
+ resumePausedMutations() {
1047
+ let e = this.getAll().filter((e) => e.state.isPaused);
1048
+ return B.batch(() => Promise.all(e.map((e) => e.continue().catch(L))));
1049
+ }
1050
+ };
1051
+ function Gr(e) {
1052
+ return e.options.scope?.id;
1053
+ }
1054
+ //#endregion
1055
+ //#region node_modules/@tanstack/query-core/build/modern/queryCache.js
1056
+ var Kr = class extends er {
1057
+ constructor(e = {}) {
1058
+ super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1059
+ }
1060
+ #e;
1061
+ build(e, t, n) {
1062
+ let r = t.queryKey, i = t.queryHash ?? pr(r, t), a = this.get(i);
1063
+ return a || (a = new Rr({
1064
+ client: e,
1065
+ queryKey: r,
1066
+ queryHash: i,
1067
+ options: e.defaultQueryOptions(t),
1068
+ state: n,
1069
+ defaultOptions: e.getQueryDefaults(r)
1070
+ }), this.add(a)), a;
1071
+ }
1072
+ add(e) {
1073
+ this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
1074
+ type: "added",
1075
+ query: e
1076
+ }));
1077
+ }
1078
+ remove(e) {
1079
+ let t = this.#e.get(e.queryHash);
1080
+ t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
1081
+ type: "removed",
1082
+ query: e
1083
+ }));
1084
+ }
1085
+ clear() {
1086
+ B.batch(() => {
1087
+ this.getAll().forEach((e) => {
1088
+ this.remove(e);
1089
+ });
1090
+ });
1091
+ }
1092
+ get(e) {
1093
+ return this.#e.get(e);
1094
+ }
1095
+ getAll() {
1096
+ return [...this.#e.values()];
1097
+ }
1098
+ find(e) {
1099
+ let t = {
1100
+ exact: !0,
1101
+ ...e
1102
+ };
1103
+ return this.getAll().find((e) => dr(t, e));
1104
+ }
1105
+ findAll(e = {}) {
1106
+ let t = this.getAll();
1107
+ return Object.keys(e).length > 0 ? t.filter((t) => dr(e, t)) : t;
1108
+ }
1109
+ notify(e) {
1110
+ B.batch(() => {
1111
+ this.listeners.forEach((t) => {
1112
+ t(e);
1113
+ });
1114
+ });
1115
+ }
1116
+ onFocus() {
1117
+ B.batch(() => {
1118
+ this.getAll().forEach((e) => {
1119
+ e.onFocus();
1120
+ });
1121
+ });
1122
+ }
1123
+ onOnline() {
1124
+ B.batch(() => {
1125
+ this.getAll().forEach((e) => {
1126
+ e.onOnline();
1127
+ });
1128
+ });
1129
+ }
1130
+ }, qr = class {
1131
+ #e;
1132
+ #t;
1133
+ #n;
1134
+ #r;
1135
+ #i;
1136
+ #a;
1137
+ #o;
1138
+ #s;
1139
+ constructor(e = {}) {
1140
+ this.#e = e.queryCache || new Kr(), this.#t = e.mutationCache || new Wr(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1141
+ }
1142
+ mount() {
1143
+ this.#a++, this.#a === 1 && (this.#o = tr.subscribe(async (e) => {
1144
+ e && (await this.resumePausedMutations(), this.#e.onFocus());
1145
+ }), this.#s = V.subscribe(async (e) => {
1146
+ e && (await this.resumePausedMutations(), this.#e.onOnline());
1147
+ }));
1148
+ }
1149
+ unmount() {
1150
+ this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
1151
+ }
1152
+ isFetching(e) {
1153
+ return this.#e.findAll({
1154
+ ...e,
1155
+ fetchStatus: "fetching"
1156
+ }).length;
1157
+ }
1158
+ isMutating(e) {
1159
+ return this.#t.findAll({
1160
+ ...e,
1161
+ status: "pending"
1162
+ }).length;
1163
+ }
1164
+ getQueryData(e) {
1165
+ let t = this.defaultQueryOptions({ queryKey: e });
1166
+ return this.#e.get(t.queryHash)?.state.data;
1167
+ }
1168
+ ensureQueryData(e) {
1169
+ let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
1170
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(lr(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1171
+ }
1172
+ getQueriesData(e) {
1173
+ return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
1174
+ }
1175
+ setQueryData(e, t, n) {
1176
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = or(t, i);
1177
+ if (a !== void 0) return this.#e.build(this, r).setData(a, {
1178
+ ...n,
1179
+ manual: !0
1180
+ });
1181
+ }
1182
+ setQueriesData(e, t, n) {
1183
+ return B.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
1184
+ }
1185
+ getQueryState(e) {
1186
+ let t = this.defaultQueryOptions({ queryKey: e });
1187
+ return this.#e.get(t.queryHash)?.state;
1188
+ }
1189
+ removeQueries(e) {
1190
+ let t = this.#e;
1191
+ B.batch(() => {
1192
+ t.findAll(e).forEach((e) => {
1193
+ t.remove(e);
1194
+ });
1195
+ });
1196
+ }
1197
+ resetQueries(e, t) {
1198
+ let n = this.#e;
1199
+ return B.batch(() => (n.findAll(e).forEach((e) => {
1200
+ e.reset();
1201
+ }), this.refetchQueries({
1202
+ type: "active",
1203
+ ...e
1204
+ }, t)));
1205
+ }
1206
+ cancelQueries(e, t = {}) {
1207
+ let n = {
1208
+ revert: !0,
1209
+ ...t
1210
+ }, r = B.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1211
+ return Promise.all(r).then(L).catch(L);
1212
+ }
1213
+ invalidateQueries(e, t = {}) {
1214
+ return B.batch(() => (this.#e.findAll(e).forEach((e) => {
1215
+ e.invalidate();
1216
+ }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
1217
+ ...e,
1218
+ type: e?.refetchType ?? e?.type ?? "active"
1219
+ }, t)));
1220
+ }
1221
+ refetchQueries(e, t = {}) {
1222
+ let n = {
1223
+ ...t,
1224
+ cancelRefetch: t.cancelRefetch ?? !0
1225
+ }, r = B.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1226
+ let t = e.fetch(void 0, n);
1227
+ return n.throwOnError || (t = t.catch(L)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1228
+ }));
1229
+ return Promise.all(r).then(L);
1230
+ }
1231
+ fetchQuery(e) {
1232
+ let t = this.defaultQueryOptions(e);
1233
+ t.retry === void 0 && (t.retry = !1);
1234
+ let n = this.#e.build(this, t);
1235
+ return n.isStaleByTime(lr(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1236
+ }
1237
+ prefetchQuery(e) {
1238
+ return this.fetchQuery(e).then(L).catch(L);
1239
+ }
1240
+ fetchInfiniteQuery(e) {
1241
+ return e._type = "infinite", this.fetchQuery(e);
1242
+ }
1243
+ prefetchInfiniteQuery(e) {
1244
+ return this.fetchInfiniteQuery(e).then(L).catch(L);
1245
+ }
1246
+ ensureInfiniteQueryData(e) {
1247
+ return e._type = "infinite", this.ensureQueryData(e);
1248
+ }
1249
+ resumePausedMutations() {
1250
+ return V.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1251
+ }
1252
+ getQueryCache() {
1253
+ return this.#e;
1254
+ }
1255
+ getMutationCache() {
1256
+ return this.#t;
1257
+ }
1258
+ getDefaultOptions() {
1259
+ return this.#n;
1260
+ }
1261
+ setDefaultOptions(e) {
1262
+ this.#n = e;
1263
+ }
1264
+ setQueryDefaults(e, t) {
1265
+ this.#r.set(R(e), {
1266
+ queryKey: e,
1267
+ defaultOptions: t
1268
+ });
1269
+ }
1270
+ getQueryDefaults(e) {
1271
+ let t = [...this.#r.values()], n = {};
1272
+ return t.forEach((t) => {
1273
+ z(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1274
+ }), n;
1275
+ }
1276
+ setMutationDefaults(e, t) {
1277
+ this.#i.set(R(e), {
1278
+ mutationKey: e,
1279
+ defaultOptions: t
1280
+ });
1281
+ }
1282
+ getMutationDefaults(e) {
1283
+ let t = [...this.#i.values()], n = {};
1284
+ return t.forEach((t) => {
1285
+ z(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1286
+ }), n;
1287
+ }
1288
+ defaultQueryOptions(e) {
1289
+ if (e._defaulted) return e;
1290
+ let t = {
1291
+ ...this.#n.queries,
1292
+ ...this.getQueryDefaults(e.queryKey),
1293
+ ...e,
1294
+ _defaulted: !0
1295
+ };
1296
+ return t.queryHash ||= pr(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Cr && (t.enabled = !1), t;
1297
+ }
1298
+ defaultMutationOptions(e) {
1299
+ return e?._defaulted ? e : {
1300
+ ...this.#n.mutations,
1301
+ ...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
1302
+ ...e,
1303
+ _defaulted: !0
1304
+ };
1305
+ }
1306
+ clear() {
1307
+ this.#e.clear(), this.#t.clear();
1308
+ }
1309
+ }, H = /* @__PURE__ */ e({
1310
+ Vue: () => Bn,
1311
+ Vue2: () => void 0,
1312
+ del: () => Zr,
1313
+ install: () => Yr,
1314
+ isVue2: () => !1,
1315
+ isVue3: () => !0,
1316
+ set: () => Xr
1317
+ });
1318
+ import * as Jr from "vue";
1319
+ t(H, Jr);
1320
+ function Yr() {}
1321
+ function Xr(e, t, n) {
1322
+ return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
1323
+ }
1324
+ function Zr(e, t) {
1325
+ if (Array.isArray(e)) {
1326
+ e.splice(t, 1);
1327
+ return;
1328
+ }
1329
+ delete e[t];
1330
+ }
1331
+ //#endregion
1332
+ //#region node_modules/@tanstack/vue-query/build/modern/utils.js
1333
+ var Qr = "VUE_QUERY_CLIENT";
1334
+ function $r(e) {
1335
+ return `${Qr}${e ? `:${e}` : ""}`;
1336
+ }
1337
+ function ei(e, t, n = "", r = 0) {
1338
+ if (t) {
1339
+ let i = t(e, n, r);
1340
+ if (i === void 0 && (0, H.isRef)(e) || i !== void 0) return i;
1341
+ }
1342
+ if (Array.isArray(e)) return e.map((e, n) => ei(e, t, String(n), r + 1));
1343
+ if (typeof e == "object" && ni(e)) {
1344
+ let n = Object.entries(e).map(([e, n]) => [e, ei(n, t, e, r + 1)]);
1345
+ return Object.fromEntries(n);
1346
+ }
1347
+ return e;
1348
+ }
1349
+ function ti(e, t) {
1350
+ return ei(e, t);
1351
+ }
1352
+ function U(e, t = !1) {
1353
+ return ti(e, (e, n, r) => {
1354
+ if (r === 1 && n === "queryKey") return U(e, !0);
1355
+ if (t && ri(e)) return U(e(), t);
1356
+ if ((0, H.isRef)(e)) return U((0, H.unref)(e), t);
1357
+ });
1358
+ }
1359
+ function ni(e) {
1360
+ if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
1361
+ let t = Object.getPrototypeOf(e);
1362
+ return t === null || t === Object.prototype;
1363
+ }
1364
+ function ri(e) {
1365
+ return typeof e == "function";
1366
+ }
1367
+ //#endregion
1368
+ //#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
1369
+ var ii = class extends Kr {
1370
+ find(e) {
1371
+ return super.find(U(e));
1372
+ }
1373
+ findAll(e = {}) {
1374
+ return super.findAll(U(e));
1375
+ }
1376
+ }, ai = class extends Wr {
1377
+ find(e) {
1378
+ return super.find(U(e));
1379
+ }
1380
+ findAll(e = {}) {
1381
+ return super.findAll(U(e));
1382
+ }
1383
+ }, oi = class extends qr {
1384
+ constructor(e = {}) {
1385
+ let t = {
1386
+ defaultOptions: e.defaultOptions,
1387
+ queryCache: e.queryCache || new ii(),
1388
+ mutationCache: e.mutationCache || new ai()
1389
+ };
1390
+ super(t), this.isRestoring = (0, H.ref)(!1);
1391
+ }
1392
+ isFetching(e = {}) {
1393
+ return super.isFetching(U(e));
1394
+ }
1395
+ isMutating(e = {}) {
1396
+ return super.isMutating(U(e));
1397
+ }
1398
+ getQueryData(e) {
1399
+ return super.getQueryData(U(e));
1400
+ }
1401
+ ensureQueryData(e) {
1402
+ return super.ensureQueryData(U(e));
1403
+ }
1404
+ getQueriesData(e) {
1405
+ return super.getQueriesData(U(e));
1406
+ }
1407
+ setQueryData(e, t, n = {}) {
1408
+ return super.setQueryData(U(e), t, U(n));
1409
+ }
1410
+ setQueriesData(e, t, n = {}) {
1411
+ return super.setQueriesData(U(e), t, U(n));
1412
+ }
1413
+ getQueryState(e) {
1414
+ return super.getQueryState(U(e));
1415
+ }
1416
+ removeQueries(e = {}) {
1417
+ return super.removeQueries(U(e));
1418
+ }
1419
+ resetQueries(e = {}, t = {}) {
1420
+ return super.resetQueries(U(e), U(t));
1421
+ }
1422
+ cancelQueries(e = {}, t = {}) {
1423
+ return super.cancelQueries(U(e), U(t));
1424
+ }
1425
+ invalidateQueries(e = {}, t = {}) {
1426
+ let n = U(e), r = U(t);
1427
+ if (super.invalidateQueries({
1428
+ ...n,
1429
+ refetchType: "none"
1430
+ }, r), n.refetchType === "none") return Promise.resolve();
1431
+ let i = {
1432
+ ...n,
1433
+ type: n.refetchType ?? n.type ?? "active"
1434
+ };
1435
+ return (0, H.nextTick)().then(() => super.refetchQueries(i, r));
1436
+ }
1437
+ refetchQueries(e = {}, t = {}) {
1438
+ return super.refetchQueries(U(e), U(t));
1439
+ }
1440
+ fetchQuery(e) {
1441
+ return super.fetchQuery(U(e));
1442
+ }
1443
+ prefetchQuery(e) {
1444
+ return super.prefetchQuery(U(e));
1445
+ }
1446
+ fetchInfiniteQuery(e) {
1447
+ return super.fetchInfiniteQuery(U(e));
1448
+ }
1449
+ prefetchInfiniteQuery(e) {
1450
+ return super.prefetchInfiniteQuery(U(e));
1451
+ }
1452
+ setDefaultOptions(e) {
1453
+ super.setDefaultOptions(U(e));
1454
+ }
1455
+ setQueryDefaults(e, t) {
1456
+ super.setQueryDefaults(U(e), U(t));
1457
+ }
1458
+ getQueryDefaults(e) {
1459
+ return super.getQueryDefaults(U(e));
1460
+ }
1461
+ setMutationDefaults(e, t) {
1462
+ super.setMutationDefaults(U(e), U(t));
1463
+ }
1464
+ getMutationDefaults(e) {
1465
+ return super.getMutationDefaults(U(e));
1466
+ }
1467
+ };
1468
+ //#endregion
4
1469
  //#region node_modules/@vue/devtools-api/lib/esm/env.js
5
- function Jn() {
6
- return Yn().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1470
+ function si() {
1471
+ return ci().__VUE_DEVTOOLS_GLOBAL_HOOK__;
7
1472
  }
8
- function Yn() {
1473
+ function ci() {
9
1474
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
10
1475
  }
11
- var Xn = typeof Proxy == "function", Zn = "devtools-plugin:setup", Qn = "plugin:settings:set", H, $n;
12
- function er() {
13
- return H === void 0 && (typeof window < "u" && window.performance ? (H = !0, $n = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (H = !0, $n = globalThis.perf_hooks.performance) : H = !1), H;
1476
+ var li = typeof Proxy == "function", ui = "devtools-plugin:setup", di = "plugin:settings:set", W, fi;
1477
+ function pi() {
1478
+ return W === void 0 && (typeof window < "u" && window.performance ? (W = !0, fi = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (W = !0, fi = globalThis.perf_hooks.performance) : W = !1), W;
14
1479
  }
15
- function tr() {
16
- return er() ? $n.now() : Date.now();
1480
+ function mi() {
1481
+ return pi() ? fi.now() : Date.now();
17
1482
  }
18
1483
  //#endregion
19
1484
  //#region node_modules/@vue/devtools-api/lib/esm/proxy.js
20
- var nr = class {
1485
+ var hi = class {
21
1486
  constructor(e, t) {
22
1487
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
23
1488
  let n = {};
@@ -38,9 +1503,9 @@ var nr = class {
38
1503
  i = e;
39
1504
  },
40
1505
  now() {
41
- return tr();
1506
+ return mi();
42
1507
  }
43
- }, t && t.on(Qn, (e, t) => {
1508
+ }, t && t.on(di, (e, t) => {
44
1509
  e === this.plugin.id && this.fallbacks.setSettings(t);
45
1510
  }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
46
1511
  this.onQueue.push({
@@ -67,11 +1532,11 @@ var nr = class {
67
1532
  };
68
1533
  //#endregion
69
1534
  //#region node_modules/@vue/devtools-api/lib/esm/index.js
70
- function rr(e, t) {
71
- let n = e, r = Yn(), i = Jn(), a = Xn && n.enableEarlyProxy;
72
- if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Zn, e, t);
1535
+ function gi(e, t) {
1536
+ let n = e, r = ci(), i = si(), a = li && n.enableEarlyProxy;
1537
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(ui, e, t);
73
1538
  else {
74
- let e = a ? new nr(n, i) : null;
1539
+ let e = a ? new hi(n, i) : null;
75
1540
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
76
1541
  pluginDescriptor: n,
77
1542
  setupFn: t,
@@ -81,7 +1546,7 @@ function rr(e, t) {
81
1546
  }
82
1547
  //#endregion
83
1548
  //#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
84
- var ir = {
1549
+ var _i = {
85
1550
  À: "A",
86
1551
  Á: "A",
87
1552
  Â: "A",
@@ -481,11 +1946,11 @@ var ir = {
481
1946
  x̧: "x",
482
1947
  Z̧: "Z",
483
1948
  z̧: "z"
484
- }, ar = Object.keys(ir).join("|"), or = new RegExp(ar, "g");
485
- function sr(e) {
486
- return e.replace(or, (e) => ir[e]);
1949
+ }, vi = Object.keys(_i).join("|"), yi = new RegExp(vi, "g");
1950
+ function bi(e) {
1951
+ return e.replace(yi, (e) => _i[e]);
487
1952
  }
488
- var U = {
1953
+ var G = {
489
1954
  CASE_SENSITIVE_EQUAL: 7,
490
1955
  EQUAL: 6,
491
1956
  STARTS_WITH: 5,
@@ -495,9 +1960,9 @@ var U = {
495
1960
  MATCHES: 1,
496
1961
  NO_MATCH: 0
497
1962
  };
498
- function cr(e, t, n) {
499
- if (n ||= {}, n.threshold = n.threshold ?? U.MATCHES, !n.accessors) {
500
- let r = lr(e, t, n);
1963
+ function xi(e, t, n) {
1964
+ if (n ||= {}, n.threshold = n.threshold ?? G.MATCHES, !n.accessors) {
1965
+ let r = Si(e, t, n);
501
1966
  return {
502
1967
  rankedValue: e,
503
1968
  rank: r,
@@ -506,23 +1971,23 @@ function cr(e, t, n) {
506
1971
  passed: r >= n.threshold
507
1972
  };
508
1973
  }
509
- let r = mr(e, n.accessors), i = {
1974
+ let r = Di(e, n.accessors), i = {
510
1975
  rankedValue: e,
511
- rank: U.NO_MATCH,
1976
+ rank: G.NO_MATCH,
512
1977
  accessorIndex: -1,
513
1978
  accessorThreshold: n.threshold,
514
1979
  passed: !1
515
1980
  };
516
1981
  for (let e = 0; e < r.length; e++) {
517
- let a = r[e], o = lr(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
518
- o < s && o >= U.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
1982
+ let a = r[e], o = Si(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1983
+ o < s && o >= G.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
519
1984
  }
520
1985
  return i;
521
1986
  }
522
- function lr(e, t, n) {
523
- return e = fr(e, n), t = fr(t, n), t.length > e.length ? U.NO_MATCH : e === t ? U.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? U.EQUAL : e.startsWith(t) ? U.STARTS_WITH : e.includes(` ${t}`) ? U.WORD_STARTS_WITH : e.includes(t) ? U.CONTAINS : t.length === 1 ? U.NO_MATCH : ur(e).includes(t) ? U.ACRONYM : dr(e, t));
1987
+ function Si(e, t, n) {
1988
+ return e = Ti(e, n), t = Ti(t, n), t.length > e.length ? G.NO_MATCH : e === t ? G.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? G.EQUAL : e.startsWith(t) ? G.STARTS_WITH : e.includes(` ${t}`) ? G.WORD_STARTS_WITH : e.includes(t) ? G.CONTAINS : t.length === 1 ? G.NO_MATCH : Ci(e).includes(t) ? G.ACRONYM : wi(e, t));
524
1989
  }
525
- function ur(e) {
1990
+ function Ci(e) {
526
1991
  let t = "";
527
1992
  return e.split(" ").forEach((e) => {
528
1993
  e.split("-").forEach((e) => {
@@ -530,7 +1995,7 @@ function ur(e) {
530
1995
  });
531
1996
  }), t;
532
1997
  }
533
- function dr(e, t) {
1998
+ function wi(e, t) {
534
1999
  let n = 0, r = 0;
535
2000
  function i(e, t, r) {
536
2001
  for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
@@ -538,31 +2003,31 @@ function dr(e, t) {
538
2003
  }
539
2004
  function a(e) {
540
2005
  let r = 1 / e, i = n / t.length;
541
- return U.MATCHES + i * r;
2006
+ return G.MATCHES + i * r;
542
2007
  }
543
2008
  let o = i(t[0], e, 0);
544
- if (o < 0) return U.NO_MATCH;
2009
+ if (o < 0) return G.NO_MATCH;
545
2010
  r = o;
546
2011
  for (let n = 1, a = t.length; n < a; n++) {
547
2012
  let a = t[n];
548
- if (r = i(a, e, r), !(r > -1)) return U.NO_MATCH;
2013
+ if (r = i(a, e, r), !(r > -1)) return G.NO_MATCH;
549
2014
  }
550
2015
  return a(r - o);
551
2016
  }
552
- function fr(e, t) {
2017
+ function Ti(e, t) {
553
2018
  let { keepDiacritics: n } = t;
554
- return e = `${e}`, n || (e = sr(e)), e;
2019
+ return e = `${e}`, n || (e = bi(e)), e;
555
2020
  }
556
- function pr(e, t) {
2021
+ function Ei(e, t) {
557
2022
  let n = t;
558
2023
  typeof t == "object" && (n = t.accessor);
559
2024
  let r = n(e);
560
2025
  return r == null ? [] : Array.isArray(r) ? r : [String(r)];
561
2026
  }
562
- function mr(e, t) {
2027
+ function Di(e, t) {
563
2028
  let n = [];
564
2029
  for (let r = 0, i = t.length; r < i; r++) {
565
- let i = t[r], a = gr(i), o = pr(e, i);
2030
+ let i = t[r], a = ki(i), o = Ei(e, i);
566
2031
  for (let e = 0, t = o.length; e < t; e++) n.push({
567
2032
  itemValue: o[e],
568
2033
  attributes: a
@@ -570,41 +2035,41 @@ function mr(e, t) {
570
2035
  }
571
2036
  return n;
572
2037
  }
573
- var hr = {
2038
+ var Oi = {
574
2039
  maxRanking: Infinity,
575
2040
  minRanking: -Infinity
576
2041
  };
577
- function gr(e) {
578
- return typeof e == "function" ? hr : {
579
- ...hr,
2042
+ function ki(e) {
2043
+ return typeof e == "function" ? Oi : {
2044
+ ...Oi,
580
2045
  ...e
581
2046
  };
582
2047
  }
583
2048
  //#endregion
584
2049
  //#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
585
- function W(e) {
2050
+ function K(e) {
586
2051
  return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
587
2052
  }
588
- function _r(e) {
589
- let t = W(e);
2053
+ function Ai(e) {
2054
+ let t = K(e);
590
2055
  return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
591
2056
  }
592
- function vr(e) {
593
- return W(e) === 2 ? 0 : 16777215;
2057
+ function ji(e) {
2058
+ return K(e) === 2 ? 0 : 16777215;
594
2059
  }
595
- function yr(e) {
596
- let t = W(e);
2060
+ function Mi(e) {
2061
+ let t = K(e);
597
2062
  return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
598
2063
  }
599
- var br = (e, t) => e.queryHash.localeCompare(t.queryHash), xr = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Sr = {
600
- "Status > Last Updated": (e, t) => W(e) === W(t) ? xr(e, t) : W(e) > W(t) ? 1 : -1,
601
- "Query Hash": br,
602
- "Last Updated": xr
603
- }, G = "vue-query", Cr = "Vue Query";
604
- function wr(e, t) {
605
- rr({
606
- id: G,
607
- label: Cr,
2064
+ var Ni = (e, t) => e.queryHash.localeCompare(t.queryHash), Pi = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Fi = {
2065
+ "Status > Last Updated": (e, t) => K(e) === K(t) ? Pi(e, t) : K(e) > K(t) ? 1 : -1,
2066
+ "Query Hash": Ni,
2067
+ "Last Updated": Pi
2068
+ }, q = "vue-query", Ii = "Vue Query";
2069
+ function Li(e, t) {
2070
+ gi({
2071
+ id: q,
2072
+ label: Ii,
608
2073
  packageName: "vue-query",
609
2074
  homepage: "https://tanstack.com/query/latest",
610
2075
  logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
@@ -626,11 +2091,11 @@ function wr(e, t) {
626
2091
  sortFn: {
627
2092
  type: "choice",
628
2093
  label: "Sort Function",
629
- options: Object.keys(Sr).map((e) => ({
2094
+ options: Object.keys(Fi).map((e) => ({
630
2095
  label: e,
631
2096
  value: e
632
2097
  })),
633
- defaultValue: Object.keys(Sr)[0]
2098
+ defaultValue: Object.keys(Fi)[0]
634
2099
  },
635
2100
  onlineMode: {
636
2101
  type: "choice",
@@ -648,11 +2113,11 @@ function wr(e, t) {
648
2113
  }
649
2114
  }, (e) => {
650
2115
  let n = e.getSettings();
651
- je.setOnline(!!n.onlineMode.valueOf());
2116
+ V.setOnline(!!n.onlineMode.valueOf());
652
2117
  let r = t.getQueryCache();
653
2118
  e.addInspector({
654
- id: G,
655
- label: Cr,
2119
+ id: q,
2120
+ label: Ii,
656
2121
  icon: "api",
657
2122
  nodeActions: [
658
2123
  {
@@ -711,16 +2176,16 @@ function wr(e, t) {
711
2176
  }
712
2177
  ]
713
2178
  }), e.addTimelineLayer({
714
- id: G,
715
- label: Cr,
2179
+ id: q,
2180
+ label: Ii,
716
2181
  color: 16767308
717
2182
  }), r.subscribe((t) => {
718
- e.sendInspectorTree(G), e.sendInspectorState(G), [
2183
+ e.sendInspectorTree(q), e.sendInspectorState(q), [
719
2184
  "added",
720
2185
  "removed",
721
2186
  "updated"
722
2187
  ].includes(t.type) && e.addTimelineEvent({
723
- layerId: G,
2188
+ layerId: q,
724
2189
  event: {
725
2190
  title: t.type,
726
2191
  subtitle: t.query.queryHash,
@@ -732,25 +2197,25 @@ function wr(e, t) {
732
2197
  }
733
2198
  });
734
2199
  }), e.on.setPluginSettings((e) => {
735
- e.key === "onlineMode" && je.setOnline(!!e.newValue);
2200
+ e.key === "onlineMode" && V.setOnline(!!e.newValue);
736
2201
  }), e.on.getInspectorTree((t) => {
737
- if (t.inspectorId === G) {
2202
+ if (t.inspectorId === q) {
738
2203
  let n = r.getAll(), i = e.getSettings();
739
- t.rootNodes = (t.filter ? n.filter((e) => cr(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Sr[i.sortFn](e, t) * i.baseSort).map((e) => {
740
- let t = _r(e);
2204
+ t.rootNodes = (t.filter ? n.filter((e) => xi(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Fi[i.sortFn](e, t) * i.baseSort).map((e) => {
2205
+ let t = Ai(e);
741
2206
  return {
742
2207
  id: e.queryHash,
743
2208
  label: e.queryHash,
744
2209
  tags: [{
745
2210
  label: `${t} [${e.getObserversCount()}]`,
746
- textColor: vr(e),
747
- backgroundColor: yr(e)
2211
+ textColor: ji(e),
2212
+ backgroundColor: Mi(e)
748
2213
  }]
749
2214
  };
750
2215
  });
751
2216
  }
752
2217
  }), e.on.getInspectorState((e) => {
753
- if (e.inspectorId === G) {
2218
+ if (e.inspectorId === q) {
754
2219
  let t = r.get(e.nodeId);
755
2220
  if (!t) return;
756
2221
  e.state = {
@@ -761,7 +2226,7 @@ function wr(e, t) {
761
2226
  },
762
2227
  {
763
2228
  key: "Query status",
764
- value: _r(t)
2229
+ value: Ai(t)
765
2230
  },
766
2231
  {
767
2232
  key: "Observers",
@@ -787,9 +2252,9 @@ function wr(e, t) {
787
2252
  }
788
2253
  //#endregion
789
2254
  //#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
790
- var Tr = { install: (e, t = {}) => {
791
- let n = Te(t.queryClientKey), r;
792
- r = "queryClient" in t && t.queryClient ? t.queryClient : new Oe("queryClientConfig" in t ? t.queryClientConfig : void 0), le.isServer() || r.mount();
2255
+ var Ri = { install: (e, t = {}) => {
2256
+ let n = $r(t.queryClientKey), r;
2257
+ r = "queryClient" in t && t.queryClient ? t.queryClient : new oi("queryClientConfig" in t ? t.queryClientConfig : void 0), Er.isServer() || r.mount();
793
2258
  let i = () => {};
794
2259
  if (t.clientPersister) {
795
2260
  r.isRestoring && (r.isRestoring.value = !0);
@@ -808,47 +2273,84 @@ var Tr = { install: (e, t = {}) => {
808
2273
  a(), t();
809
2274
  };
810
2275
  }
811
- e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && wr(e, r);
812
- } }, Er = Ln(() => import("./RoleManagementView-0_KDrzgh.js").then((e) => e.n)), Dr = Ln(() => import("./RoleAuthorizationView-8lilhtMB.js").then((e) => e.n)), K = [{
813
- route: "/iam/role",
814
- moduleAlias: "iam.role",
815
- component: Er,
816
- layout: "workspace"
817
- }, {
2276
+ e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Li(e, r);
2277
+ } };
2278
+ //#endregion
2279
+ //#region src/web-core/query.ts
2280
+ function zi() {
2281
+ return new oi({ defaultOptions: { queries: {
2282
+ staleTime: 3e4,
2283
+ refetchOnWindowFocus: !1
2284
+ } } });
2285
+ }
2286
+ var Bi = {
2287
+ session: { current: ["session", "current"] },
2288
+ menu: { mine: ["menu", "mine"] },
2289
+ staticModule: {
2290
+ query: (e, t) => [
2291
+ "static-module",
2292
+ e,
2293
+ "query",
2294
+ t
2295
+ ],
2296
+ tree: (e, t) => [
2297
+ "static-module",
2298
+ e,
2299
+ "tree",
2300
+ t
2301
+ ],
2302
+ view: (e, t) => [
2303
+ "static-module",
2304
+ e,
2305
+ "view",
2306
+ t
2307
+ ]
2308
+ }
2309
+ };
2310
+ //#endregion
2311
+ //#region src/web-core/businessNotifications.ts
2312
+ function Vi(e, t) {
2313
+ return e.request({
2314
+ method: "POST",
2315
+ path: `/${encodeURIComponent(t.moduleAlias)}/${encodeURIComponent(t.actionCode)}/${encodeURIComponent(t.recordId)}`,
2316
+ body: { payload: t.arguments ?? {} }
2317
+ });
2318
+ }
2319
+ var J = [{
818
2320
  route: "/iam/role/authorization",
819
2321
  moduleAlias: "iam.role",
820
- component: Dr,
2322
+ component: Un(() => import("./workspaceViews-DI_1vYX9.js").then((e) => e.n)),
821
2323
  layout: "workspace",
822
2324
  menuEntry: !1
823
- }], Or = Array.from(new Set(["/_platform/workspace", ...K.map((e) => e.route)])), kr = Object.fromEntries(K.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Ar = Object.fromEntries(K.map((e) => [e.route, e.layout]));
824
- function jr(e) {
825
- if (e) return K.find((t) => Nr(t, e.target));
2325
+ }], Hi = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...J.map((e) => e.route)])), Ui = Object.fromEntries(J.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Wi = Object.fromEntries(J.map((e) => [e.route, e.layout]));
2326
+ function Gi(e) {
2327
+ if (e) return J.find((t) => qi(t, e.target));
826
2328
  }
827
- function Mr(e) {
828
- return e?.pageType === "business-route" && !!jr(e);
2329
+ function Ki(e) {
2330
+ return e?.pageType === "business-route" && !!Gi(e);
829
2331
  }
830
- function Nr(e, t) {
831
- return t.route ? Pr(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2332
+ function qi(e, t) {
2333
+ return t.route ? Ji(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
832
2334
  }
833
- function Pr(e, t) {
2335
+ function Ji(e, t) {
834
2336
  let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
835
2337
  return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
836
2338
  }
837
2339
  //#endregion
838
2340
  //#region src/app/pageRouteContext.ts
839
- var Fr = Symbol("page-route");
840
- function Ir(e) {
841
- Hn(Fr, A(e));
2341
+ var Yi = Symbol("page-route");
2342
+ function Xi(e) {
2343
+ Jn(Yi, T(e));
842
2344
  }
843
2345
  //#endregion
844
2346
  //#region src/platform-admin-runtime/PlatformAdminOutlet.vue
845
- var Lr = /* @__PURE__ */ I({
2347
+ var Zi = /* @__PURE__ */ j({
846
2348
  name: "PlatformAdminRouteOutlet",
847
2349
  __name: "PlatformAdminOutlet",
848
2350
  props: { descriptor: {} },
849
2351
  setup(e) {
850
- let t = e, n = A(() => jr(t.descriptor)), r = A(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = A(() => t.descriptor.target.query?.workspacePresentation);
851
- p(A(() => t.descriptor.layout ?? n.value?.layout)), Ir(() => {
2352
+ let t = e, n = T(() => Gi(t.descriptor)), r = T(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = T(() => t.descriptor.target.query?.workspacePresentation);
2353
+ Jt(T(() => t.descriptor.layout ?? n.value?.layout)), Xi(() => {
852
2354
  let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
853
2355
  return {
854
2356
  path: r,
@@ -864,24 +2366,66 @@ var Lr = /* @__PURE__ */ I({
864
2366
  e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
865
2367
  }), n;
866
2368
  }
867
- return (t, a) => n.value && r.value ? (L(), j(B(At), {
2369
+ return (t, a) => n.value && r.value ? (M(), E(F(_e), {
868
2370
  key: 0,
869
2371
  "module-alias": r.value
870
2372
  }, {
871
- default: V(() => [i.value === "drawer" || i.value === "tab" ? (L(), j(B(Jt), {
2373
+ default: I(() => [i.value === "drawer" || i.value === "tab" ? (M(), E(F(it), {
872
2374
  key: 0,
873
2375
  descriptor: e.descriptor
874
- }, null, 8, ["descriptor"])) : (L(), j(Gn(n.value.component), { key: 1 }))]),
2376
+ }, null, 8, ["descriptor"])) : (M(), E(Zn(n.value.component), { key: 1 }))]),
875
2377
  _: 1
876
- }, 8, ["module-alias"])) : M("v-if", !0);
2378
+ }, 8, ["module-alias"])) : D("v-if", !0);
877
2379
  }
878
- });
2380
+ }), Qi = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2381
+ function $i(e) {
2382
+ return Qi.exec(e)?.[1];
2383
+ }
2384
+ function ea(e, t) {
2385
+ return {
2386
+ pageType: "platform-route",
2387
+ openMode: "workbench-route",
2388
+ hostType: "platform-route-host",
2389
+ title: `${t ?? e}.OpenAPI`,
2390
+ target: {
2391
+ route: `/openapi/${encodeURIComponent(e)}`,
2392
+ moduleAlias: e
2393
+ },
2394
+ tabPolicy: {
2395
+ identity: "by-target",
2396
+ closable: !0,
2397
+ cacheable: !0
2398
+ }
2399
+ };
2400
+ }
2401
+ function ta() {
2402
+ return {
2403
+ pageType: "platform-route",
2404
+ openMode: "workbench-route",
2405
+ hostType: "platform-route-host",
2406
+ title: "开放模块 API",
2407
+ target: { route: "/openapi" },
2408
+ tabPolicy: {
2409
+ identity: "by-target",
2410
+ closable: !0,
2411
+ cacheable: !0
2412
+ }
2413
+ };
2414
+ }
2415
+ function na(e) {
2416
+ if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
2417
+ let t = $i(e.target.route ?? "");
2418
+ return t !== void 0 && e.target.moduleAlias === t;
2419
+ }
2420
+ function ra(e) {
2421
+ return e === "/openapi" || e === "/openapi/";
2422
+ }
879
2423
  //#endregion
880
2424
  //#region src/app/workbenchStartup.ts
881
- function Rr(e, t, n, r = {}) {
882
- let i = T(t, n, r), a = e.find((e) => e.key === i.key);
2425
+ function ia(e, t, n, r = {}) {
2426
+ let i = ge(t, n, r), a = e.find((e) => e.key === i.key);
883
2427
  if (a) {
884
- let o = a.pageDescriptor ? ti(t, n, a.pageDescriptor, r) : i;
2428
+ let o = a.pageDescriptor ? Ta(t, n, a.pageDescriptor, r) : i;
885
2429
  return {
886
2430
  tabs: e.map((e) => e.key === i.key ? o : e),
887
2431
  activeTabKey: i.key
@@ -892,8 +2436,8 @@ function Rr(e, t, n, r = {}) {
892
2436
  activeTabKey: i.key
893
2437
  };
894
2438
  }
895
- function zr(e, t, n = {}) {
896
- let r = X(D(t), n), i = e.find((e) => e.key === r.key ? !0 : r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && sn(e.pageDescriptor) === sn(r.pageDescriptor));
2439
+ function aa(e, t, n = {}) {
2440
+ let r = X(x(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && w(e.pageDescriptor) === w(r.pageDescriptor));
897
2441
  return i ? {
898
2442
  tabs: e,
899
2443
  activeTabKey: i.key,
@@ -904,41 +2448,48 @@ function zr(e, t, n = {}) {
904
2448
  created: !0
905
2449
  };
906
2450
  }
907
- function Br(e, t, n = {}) {
908
- return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : E(O(t, {
2451
+ function oa(e, t, n = {}) {
2452
+ return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : b(pe(t, {
909
2453
  ...n,
910
2454
  title: e.title
911
2455
  }), n);
912
2456
  }
913
- function Vr(e) {
2457
+ function sa(e) {
914
2458
  let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
915
2459
  if (t?.fullPath) return t.fullPath;
916
- let n = t?.pageDescriptor ?? (t?.target ? O(t.target, { title: t.title }) : void 0);
917
- return n?.pageType === "platform-route" && _n(n) && n.target.route ? n.target.route : n ? E(n) : void 0;
2460
+ let n = t?.pageDescriptor ?? (t?.target ? pe(t.target, { title: t.title }) : void 0);
2461
+ return n?.pageType === "platform-route" && na(n) && n.target.route ? n.target.route : n ? b(n) : void 0;
918
2462
  }
919
- function q(e, t, n = {}, r = !1) {
2463
+ function ca(e, t, n = {}, r = !1) {
920
2464
  if (t === "/" || t === "") return e;
921
- let i = t.split(/[?#]/, 1)[0] ?? "", a = cn(i), o = a ? On(a) : An(i) ? on() : jn(t, n);
2465
+ let i = t.split(/[?#]/, 1)[0] ?? "", a = $i(i), o = a ? ea(a) : ra(i) ? ta() : Qe(t, n);
922
2466
  if (!o) return e;
923
- let s = o.menuId ? ci(e.menus, o.menuId) : void 0, c = s ? k(s) : void 0, l = s && c && Ur(c, o) ? {
2467
+ let s = o.menuId ? Ma(e.menus, o.menuId) : void 0, l = s ? c(s) : void 0, u = s && l && fa(l, o) ? {
924
2468
  ...o,
925
2469
  title: s.title
926
- } : o, u = Hr(l), d = u ?? l, f = r ? D(d) : d, p = s && oi(s, f, n) ? s : ai(e.menus, f, n), m = p === s ? c : p ? k(p) : void 0, h = u ? X(u, n) : p && m && xn(m) ? ti(p, m, f, n) : X(f, n), g = ei(e.tabs ?? [], h);
2470
+ } : o, d = da(u), f = d ?? u, p = e.tabs ?? [], m = d ? ua(p, d) : void 0, h = d ? la(d, m) : r ? x(f) : f, g = s && Aa(s, h, n) ? s : ka(e.menus, h, n), _ = g === s ? l : g ? c(g) : void 0, v = d ? X(h, n) : g && _ && We(_) ? Ta(g, _, h, n) : X(h, n), ee = wa(p, v);
927
2471
  return {
928
2472
  ...e,
929
- tabs: g,
930
- activeTabKey: h.key
2473
+ tabs: ee,
2474
+ activeTabKey: v.key
931
2475
  };
932
2476
  }
933
- function Hr(e) {
2477
+ function la(e, t) {
2478
+ return t?.instanceKey ? x(e, t.instanceKey) : t ? e : x(e);
2479
+ }
2480
+ function ua(e, t) {
2481
+ let n = w(t);
2482
+ return e.find((e) => e.pageDescriptor?.pageType === "business-route" && w(e.pageDescriptor) === n);
2483
+ }
2484
+ function da(e) {
934
2485
  if (e.pageType !== "business-route") return;
935
- let t = Ft(e);
936
- return t ? Mn(t.view, t.input, t.presentation, e.title) : void 0;
2486
+ let t = ln(e);
2487
+ return t ? rn(t.view, t.input, t.presentation, e.title) : void 0;
937
2488
  }
938
- function Ur(e, t) {
2489
+ function fa(e, t) {
939
2490
  return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
940
2491
  }
941
- function Wr(e, t, n) {
2492
+ function pa(e, t, n) {
942
2493
  let r = e.findIndex((e) => e.key === n);
943
2494
  if (r < 0) return {
944
2495
  tabs: e,
@@ -953,7 +2504,7 @@ function Wr(e, t, n) {
953
2504
  activeTabKey: t
954
2505
  };
955
2506
  }
956
- function Gr(e, t, n) {
2507
+ function ma(e, t, n) {
957
2508
  let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
958
2509
  return !t || !r.has(t) ? {
959
2510
  tabs: a,
@@ -963,16 +2514,16 @@ function Gr(e, t, n) {
963
2514
  activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
964
2515
  };
965
2516
  }
966
- function J(e, t, n = !0) {
2517
+ function ha(e, t, n = !0) {
967
2518
  let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
968
2519
  return [...t.flatMap((e) => {
969
2520
  if (i.has(e.key)) return [];
970
2521
  i.add(e.key);
971
2522
  let t = r.get(e.key);
972
- return t ? [Kr(t, e)] : n ? [e] : [];
2523
+ return t ? [ga(t, e)] : n ? [e] : [];
973
2524
  }), ...e.filter((e) => !i.has(e.key))];
974
2525
  }
975
- function Kr(e, t) {
2526
+ function ga(e, t) {
976
2527
  let n = e.pageDescriptor, r = t.pageDescriptor;
977
2528
  if (!n || !r || !t.target) return e;
978
2529
  let i = {
@@ -987,48 +2538,48 @@ function Kr(e, t) {
987
2538
  target: t.target
988
2539
  };
989
2540
  }
990
- function qr(e, t, n = {}) {
2541
+ function _a(e, t, n = {}) {
991
2542
  let r = /* @__PURE__ */ new Map();
992
- Zr(t, r);
2543
+ xa(t, r);
993
2544
  let i = /* @__PURE__ */ new Set();
994
2545
  return e.flatMap((e) => {
995
- let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? Jr(e.key);
2546
+ let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? va(e.key);
996
2547
  if (t) {
997
2548
  if (i.has(t)) return [];
998
2549
  let e = r.get(t);
999
- return e ? (i.add(t), [T(e.menu, e.target, n)]) : [];
2550
+ return e ? (i.add(t), [ge(e.menu, e.target, n)]) : [];
1000
2551
  }
1001
- let a = Yr(e);
2552
+ let a = ya(e);
1002
2553
  return !a || i.has(a.key) ? [] : (i.add(a.key), [a]);
1003
2554
  });
1004
2555
  }
1005
- function Jr(e) {
2556
+ function va(e) {
1006
2557
  return e.startsWith("menu:") && e.slice(5) || void 0;
1007
2558
  }
1008
- function Yr(e) {
2559
+ function ya(e) {
1009
2560
  let t = e.pageDescriptor;
1010
2561
  if (t?.pageType !== "business-route") return;
1011
- let n = Ft(t);
1012
- if (!(!n || n.presentation !== "tab")) return X(Mn(n.view, n.input, "tab"));
2562
+ let n = ln(t);
2563
+ if (n && n.presentation === "tab") return X(rn(n.view, n.input, "tab"));
1013
2564
  }
1014
- function Xr(e, t) {
2565
+ function ba(e, t) {
1015
2566
  let n = e.findIndex((e) => e.key === t.key);
1016
2567
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
1017
2568
  }
1018
- function Zr(e, t) {
2569
+ function xa(e, t) {
1019
2570
  for (let n of e) {
1020
- let e = k(n.record);
1021
- e && xn(e) && t.set(n.record.id, {
2571
+ let e = c(n.record);
2572
+ e && We(e) && t.set(n.record.id, {
1022
2573
  menu: n.record,
1023
2574
  target: e
1024
- }), Zr(n.children, t);
2575
+ }), xa(n.children, t);
1025
2576
  }
1026
2577
  }
1027
2578
  function Y(e, t) {
1028
2579
  let n = new Set(t);
1029
2580
  return e.filter((e) => !n.has(e.key));
1030
2581
  }
1031
- function Qr(e, t, n = []) {
2582
+ function Sa(e, t, n = []) {
1032
2583
  if (e.length !== t.length || new Set(t).size !== e.length) return e;
1033
2584
  let r = new Map(e.map((e) => [e.key, e]));
1034
2585
  if (t.some((e) => !r.has(e))) return e;
@@ -1036,27 +2587,27 @@ function Qr(e, t, n = []) {
1036
2587
  return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
1037
2588
  }
1038
2589
  function X(e, t = {}) {
1039
- let n = E(e, t);
2590
+ let n = b(e, t);
1040
2591
  return {
1041
- ...$r(e) ? { instanceKey: $r(e) } : {},
1042
- key: vn(e),
1043
- title: e.title ?? ii(e),
2592
+ ...Ca(e) ? { instanceKey: Ca(e) } : {},
2593
+ key: ue(e),
2594
+ title: e.title ?? Oa(e),
1044
2595
  fullPath: n,
1045
2596
  pageDescriptor: e,
1046
2597
  restoreState: { url: n },
1047
2598
  closable: !0
1048
2599
  };
1049
2600
  }
1050
- function $r(e) {
2601
+ function Ca(e) {
1051
2602
  let t = (e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.query ?? e.params : e.params)?.InstanceKey, n = Array.isArray(t) ? t[0] : t;
1052
2603
  return typeof n == "string" && n ? n : void 0;
1053
2604
  }
1054
- function ei(e, t) {
2605
+ function wa(e, t) {
1055
2606
  let n = e.findIndex((e) => e.key === t.key);
1056
2607
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
1057
2608
  }
1058
- function ti(e, t, n, r) {
1059
- let i = T(e, t, r), a = i.pageDescriptor ?? n, o = ni(n) && ni(a) || ri(n) && ri(a) ? {
2609
+ function Ta(e, t, n, r) {
2610
+ let i = ge(e, t, r), a = i.pageDescriptor ?? n, o = Ea(n) && Ea(a) || Da(n) && Da(a) ? {
1060
2611
  ...n,
1061
2612
  title: n.title ?? e.title,
1062
2613
  menuId: e.id,
@@ -1077,84 +2628,89 @@ function ti(e, t, n, r) {
1077
2628
  target: t
1078
2629
  };
1079
2630
  }
1080
- function ni(e) {
2631
+ function Ea(e) {
1081
2632
  return e.pageType === "platform-route" || e.pageType === "business-route";
1082
2633
  }
1083
- function ri(e) {
2634
+ function Da(e) {
1084
2635
  return e.pageType === "remote-url" || e.pageType === "external-link";
1085
2636
  }
1086
- function ii(e) {
2637
+ function Oa(e) {
1087
2638
  return e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url;
1088
2639
  }
1089
- function ai(e, t, n) {
2640
+ function ka(e, t, n) {
1090
2641
  for (let r of e) {
1091
- if (oi(r.record, t, n)) return r.record;
1092
- let e = ai(r.children, t, n);
2642
+ if (Aa(r.record, t, n)) return r.record;
2643
+ let e = ka(r.children, t, n);
1093
2644
  if (e) return e;
1094
2645
  }
1095
2646
  }
1096
- function oi(e, t, n) {
1097
- let r = k(e), i = r ? O(r, {
2647
+ function Aa(e, t, n) {
2648
+ let r = c(e), i = r ? pe(r, {
1098
2649
  ...n,
1099
2650
  title: e.title
1100
2651
  }) : void 0;
1101
- return i ? si(i, t) : !1;
2652
+ return i ? ja(i, t) : !1;
1102
2653
  }
1103
- function si(e, t) {
1104
- return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") ? e.target.url === t.target.url : !1;
2654
+ function ja(e, t) {
2655
+ return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") && e.target.url === t.target.url;
1105
2656
  }
1106
- function ci(e, t) {
2657
+ function Ma(e, t) {
1107
2658
  for (let n of e) {
1108
2659
  if (n.record.id === t) return n.record;
1109
- let e = ci(n.children, t);
2660
+ let e = Ma(n.children, t);
1110
2661
  if (e) return e;
1111
2662
  }
1112
2663
  }
1113
2664
  //#endregion
1114
- //#region src/app/lockedTabPreference.ts
1115
- var li = "workbench.locked-tabs";
1116
- async function ui(e) {
1117
- return fi(await e.restore(li, [], { persistence: "backend" }));
1118
- }
1119
- async function di(e, t) {
1120
- await e.set(li, t, { persistence: "backend" });
1121
- }
1122
- function fi(e) {
2665
+ //#region src/app/workbenchSessionTabs.ts
2666
+ function Na(e) {
1123
2667
  if (!Array.isArray(e)) return [];
1124
2668
  let t = /* @__PURE__ */ new Set();
1125
- return e.flatMap((e) => !pi(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2669
+ return e.flatMap((e) => !Pa(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
1126
2670
  }
1127
- function pi(e) {
2671
+ function Pa(e) {
1128
2672
  let t = e;
1129
- return typeof e == "object" && !!e && typeof t.key == "string" && typeof t.title == "string" && (mi(t.pageDescriptor) || gi(t.target));
2673
+ return Z(e) && typeof t.key == "string" && typeof t.title == "string" && (Fa(t.pageDescriptor) || La(t.target));
1130
2674
  }
1131
- function mi(e) {
2675
+ function Fa(e) {
1132
2676
  return !Z(e) || !Z(e.target) || !Z(e.tabPolicy) || ![
1133
2677
  "by-menu",
1134
2678
  "by-target",
1135
2679
  "by-params"
1136
- ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && hi(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && hi(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
2680
+ ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Ia(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Ia(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
1137
2681
  }
1138
- function hi(e) {
2682
+ function Ia(e) {
1139
2683
  return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
1140
2684
  }
1141
- function gi(e) {
2685
+ function La(e) {
1142
2686
  return !Z(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
1143
2687
  }
1144
2688
  function Z(e) {
1145
2689
  return typeof e == "object" && !!e;
1146
2690
  }
1147
2691
  //#endregion
2692
+ //#region src/app/lockedTabPreference.ts
2693
+ var Ra = "workbench.locked-tabs";
2694
+ async function za(e) {
2695
+ return Va(await e.restore(Ra, [], { persistence: "backend" }));
2696
+ }
2697
+ async function Ba(e, t) {
2698
+ await e.set(Ra, t, { persistence: "backend" });
2699
+ }
2700
+ function Va(e) {
2701
+ return Na(e);
2702
+ }
2703
+ //#endregion
1148
2704
  //#region src/consumer/PlatformAdminOutlet.vue
1149
- var _i = /* @__PURE__ */ I({
2705
+ var Ha = /* @__PURE__ */ j({
1150
2706
  name: "PlatformAdminOutlet",
1151
2707
  __name: "PlatformAdminOutlet",
1152
2708
  props: { descriptor: {} },
1153
2709
  setup(e) {
1154
- return (t, n) => B(Mr)(e.descriptor) ? (L(), j(Lr, {
2710
+ return (t, n) => F(Ki)(e.descriptor) ? (M(), E(Zi, {
1155
2711
  key: 0,
1156
2712
  descriptor: e.descriptor
1157
- }, null, 8, ["descriptor"])) : (L(), j(an, {
2713
+ }, null, 8, ["descriptor"])) : (M(), E(en, {
1158
2714
  key: 1,
1159
2715
  descriptor: e.descriptor
1160
2716
  }, null, 8, ["descriptor"]));
@@ -1162,8 +2718,8 @@ var _i = /* @__PURE__ */ I({
1162
2718
  });
1163
2719
  //#endregion
1164
2720
  //#region src/app/workbenchRouteSync.ts
1165
- function vi(e, t, n) {
1166
- let r = Vr(e) ?? "/";
2721
+ function Ua(e, t, n) {
2722
+ let r = sa(e) ?? "/";
1167
2723
  return r === t ? void 0 : {
1168
2724
  url: r,
1169
2725
  mode: n
@@ -1171,11 +2727,15 @@ function vi(e, t, n) {
1171
2727
  }
1172
2728
  //#endregion
1173
2729
  //#region src/consumer/AppWorkbenchShell.vue
1174
- var yi = /* @__PURE__ */ I({
2730
+ var Wa = /* @__PURE__ */ j({
1175
2731
  name: "AppWorkbenchShell",
1176
2732
  __name: "AppWorkbenchShell",
1177
2733
  props: {
1178
2734
  startup: {},
2735
+ loadMenus: {
2736
+ type: Function,
2737
+ default: void 0
2738
+ },
1179
2739
  location: {},
1180
2740
  resolveOptions: { default: () => ({}) },
1181
2741
  loading: {
@@ -1193,142 +2753,154 @@ var yi = /* @__PURE__ */ I({
1193
2753
  "userCommand"
1194
2754
  ],
1195
2755
  setup(e, { emit: t }) {
1196
- let n = e, r = t, i = A(() => n.startup.activeTabKey), a = R([]), o = 0, s = Promise.resolve(), c = !1;
1197
- hn({
1198
- openRoute: y,
1199
- replaceRoute: b,
1200
- closeCurrentTab: x,
1201
- openPage: v,
1202
- replacePage: te,
1203
- closePage: f,
1204
- setTabName: ee
1205
- }), Vn(() => {
1206
- c = !0, Nn(), ie(), re(n.location);
1207
- }), Bn(() => {
1208
- c = !1;
1209
- }), Kn(() => n.location, (e) => re(e));
1210
- function l(e, t = void 0) {
1211
- r("update:startup", e), t && ne(e, t);
2756
+ let n = e, r = t, i = T(() => n.startup.activeTabKey), a = N([]), o = 0, s = Promise.resolve(), l = !1;
2757
+ Yt({
2758
+ refreshMenus: n.loadMenus ? async () => {
2759
+ let e = n.startup.session, t = await n.loadMenus();
2760
+ if (!l || e !== n.startup.session) throw Error("登录状态已变化,请重试");
2761
+ return r("update:startup", {
2762
+ ...n.startup,
2763
+ menus: t
2764
+ }), t;
2765
+ } : void 0,
2766
+ openMenu: (e) => {
2767
+ let t = c(e);
2768
+ t && d(e, t);
2769
+ },
2770
+ openRoute: ne,
2771
+ replaceRoute: re,
2772
+ closeCurrentTab: ie,
2773
+ openPage: te,
2774
+ replacePage: oe,
2775
+ closePage: m,
2776
+ setTabName: ae
2777
+ }), qn(() => {
2778
+ l = !0, kt(), le(), ce(n.location);
2779
+ }), Kn(() => {
2780
+ l = !1;
2781
+ }), Qn(() => n.location, (e) => ce(e));
2782
+ function u(e, t = void 0) {
2783
+ r("update:startup", e), t && se(e, t);
1212
2784
  }
1213
- function u(e, t) {
2785
+ function d(e, t) {
1214
2786
  if (t.openMode === "window") {
1215
- window.open(Br(e, t), "_blank", "noopener,noreferrer");
2787
+ window.open(oa(e, t), "_blank", "noopener,noreferrer");
1216
2788
  return;
1217
2789
  }
1218
- let r = Rr(n.startup.tabs ?? [], e, t, n.resolveOptions);
1219
- l({
2790
+ let r = ia(n.startup.tabs ?? [], e, t, n.resolveOptions);
2791
+ u({
1220
2792
  ...n.startup,
1221
2793
  tabs: r.tabs,
1222
2794
  activeTabKey: r.activeTabKey
1223
2795
  }, "push");
1224
2796
  }
1225
- function d(e) {
1226
- e !== n.startup.activeTabKey && l({
2797
+ function f(e) {
2798
+ e !== n.startup.activeTabKey && u({
1227
2799
  ...n.startup,
1228
2800
  activeTabKey: e
1229
2801
  }, "push");
1230
2802
  }
1231
- function f(e) {
1232
- let t = Wr(n.startup.tabs ?? [], n.startup.activeTabKey, e);
1233
- a.value.some((t) => t.key === e) && g(Y(a.value, [e])), l({
2803
+ function m(e) {
2804
+ let t = pa(n.startup.tabs ?? [], n.startup.activeTabKey, e);
2805
+ a.value.some((t) => t.key === e) && v(Y(a.value, [e])), u({
1234
2806
  ...n.startup,
1235
2807
  tabs: t.tabs,
1236
2808
  activeTabKey: t.activeTabKey
1237
2809
  }, "replace");
1238
2810
  }
1239
- function p(e) {
1240
- let t = Gr(n.startup.tabs ?? [], n.startup.activeTabKey, e), r = e.filter((e) => a.value.some((t) => t.key === e));
1241
- r.length > 0 && g(Y(a.value, r)), l({
2811
+ function h(e) {
2812
+ let t = ma(n.startup.tabs ?? [], n.startup.activeTabKey, e), r = e.filter((e) => a.value.some((t) => t.key === e));
2813
+ r.length > 0 && v(Y(a.value, r)), u({
1242
2814
  ...n.startup,
1243
2815
  tabs: t.tabs,
1244
2816
  activeTabKey: t.activeTabKey
1245
2817
  }, "replace");
1246
2818
  }
1247
- function m(e) {
1248
- let t = Qr(n.startup.tabs ?? [], e, a.value.map((e) => e.key)), r = t.filter((e) => a.value.some((t) => t.key === e.key));
1249
- r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") && g(r), l({
2819
+ function g(e) {
2820
+ let t = Sa(n.startup.tabs ?? [], e, a.value.map((e) => e.key)), r = t.filter((e) => a.value.some((t) => t.key === e.key));
2821
+ r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") && v(r), u({
1250
2822
  ...n.startup,
1251
2823
  tabs: t
1252
2824
  });
1253
2825
  }
1254
- function h(e) {
2826
+ function _(e) {
1255
2827
  let t = n.startup.tabs?.find((t) => t.key === e);
1256
2828
  if (!t) return;
1257
- let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) : Xr(i, t);
1258
- g(o), l({
2829
+ let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) : ba(i, t);
2830
+ v(o), u({
1259
2831
  ...n.startup,
1260
- tabs: J(n.startup.tabs ?? [], o)
2832
+ tabs: ha(n.startup.tabs ?? [], o)
1261
2833
  });
1262
2834
  }
1263
- function g(e) {
2835
+ function v(e) {
1264
2836
  let t = a.value, n = ++o;
1265
- a.value = e, _(e, t, n);
2837
+ a.value = e, ee(e, t, n);
1266
2838
  }
1267
- async function _(e, t, r) {
2839
+ async function ee(e, t, r) {
1268
2840
  try {
1269
- s = s.catch(() => void 0).then(() => di(Fe, e)), await s;
2841
+ s = s.catch(() => void 0).then(() => Ba(cn, e)), await s;
1270
2842
  } catch {
1271
2843
  if (r !== o) return;
1272
- a.value = t, l({
2844
+ a.value = t, u({
1273
2845
  ...n.startup,
1274
- tabs: J(n.startup.tabs ?? [], t, !1)
2846
+ tabs: ha(n.startup.tabs ?? [], t, !1)
1275
2847
  });
1276
2848
  }
1277
2849
  }
1278
- function v(e) {
1279
- let t = zr(n.startup.tabs ?? [], e);
1280
- return l({
2850
+ function te(e) {
2851
+ let t = aa(n.startup.tabs ?? [], e);
2852
+ return u({
1281
2853
  ...n.startup,
1282
2854
  tabs: t.tabs,
1283
2855
  activeTabKey: t.activeTabKey
1284
2856
  }, "push"), { created: t.created };
1285
2857
  }
1286
- function y(e, t = {}) {
1287
- return S(w(e, t), "push", n.startup, t.tabTitle, t.newInstance);
2858
+ function ne(e, t = {}) {
2859
+ return y(C(e, t), "push", n.startup, t.tabTitle, t.newInstance);
1288
2860
  }
1289
- function b(e, t = {}) {
1290
- let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a = w(e, t);
1291
- if (!r || !i) return S(a, "replace", n.startup, t.tabTitle);
1292
- let o = q(n.startup, a, n.resolveOptions), s = o.tabs?.find((e) => e.key === o.activeTabKey);
2861
+ function re(e, t = {}) {
2862
+ let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a = C(e, t);
2863
+ if (!r || !i) return y(a, "replace", n.startup, t.tabTitle);
2864
+ let o = ca(n.startup, a, n.resolveOptions), s = o.tabs?.find((e) => e.key === o.activeTabKey);
1293
2865
  if (!s) return { created: !1 };
1294
- let c = s.pageDescriptor && i.instanceKey ? D(s.pageDescriptor, i.instanceKey) : s.pageDescriptor, u = c ? E(c, n.resolveOptions) : s.fullPath, d = (o.tabs ?? []).filter((e) => e.key !== s.key).map((e) => e.key === r ? {
2866
+ let c = s.pageDescriptor && i.instanceKey ? x(s.pageDescriptor, i.instanceKey) : s.pageDescriptor, l = c ? b(c, n.resolveOptions) : s.fullPath, d = (o.tabs ?? []).filter((e) => e.key !== s.key).map((e) => e.key === r ? {
1295
2867
  ...i,
1296
2868
  ...s,
1297
2869
  key: r,
1298
2870
  instanceKey: i.instanceKey,
1299
2871
  pageDescriptor: c,
1300
- fullPath: u,
1301
- restoreState: u ? { url: u } : s.restoreState,
2872
+ fullPath: l,
2873
+ restoreState: l ? { url: l } : s.restoreState,
1302
2874
  title: t.tabTitle ?? s.title
1303
2875
  } : e);
1304
- return l({
2876
+ return u({
1305
2877
  ...o,
1306
2878
  tabs: d,
1307
2879
  activeTabKey: r
1308
2880
  }, "replace"), { created: !1 };
1309
2881
  }
1310
- function x(e) {
1311
- let t = n.startup.activeTabKey, r = t ? Wr(n.startup.tabs ?? [], t, t) : {
2882
+ function ie(e) {
2883
+ let t = n.startup.activeTabKey, r = t ? pa(n.startup.tabs ?? [], t, t) : {
1312
2884
  tabs: n.startup.tabs ?? [],
1313
2885
  activeTabKey: n.startup.activeTabKey
1314
2886
  };
1315
- t && a.value.some((e) => e.key === t) && g(Y(a.value, [t]));
2887
+ t && a.value.some((e) => e.key === t) && v(Y(a.value, [t]));
1316
2888
  let i = r.tabs.find((t) => {
1317
- let n = t.fullPath ?? (t.pageDescriptor ? E(t.pageDescriptor) : void 0);
2889
+ let n = t.fullPath ?? (t.pageDescriptor ? b(t.pageDescriptor) : void 0);
1318
2890
  return n && new URL(n, "http://muyun.local").pathname === e;
1319
2891
  });
1320
- return i ? (l({
2892
+ return i ? (u({
1321
2893
  ...n.startup,
1322
2894
  tabs: r.tabs,
1323
2895
  activeTabKey: i.key
1324
- }, "replace"), { created: !1 }) : S(w(e), "replace", {
2896
+ }, "replace"), { created: !1 }) : y(C(e), "replace", {
1325
2897
  ...n.startup,
1326
2898
  tabs: r.tabs,
1327
2899
  activeTabKey: r.activeTabKey
1328
2900
  });
1329
2901
  }
1330
- function S(e, t, r, i, a = !1) {
1331
- let o = new Set((r.tabs ?? []).map((e) => e.key)), s = q(r, e, {
2902
+ function y(e, t, r, i, a = !1) {
2903
+ let o = new Set((r.tabs ?? []).map((e) => e.key)), s = ca(r, e, {
1332
2904
  ...n.resolveOptions,
1333
2905
  title: i ?? n.resolveOptions.title
1334
2906
  }, a);
@@ -1338,11 +2910,11 @@ var yi = /* @__PURE__ */ I({
1338
2910
  ...e,
1339
2911
  title: i
1340
2912
  } : e)
1341
- }), l(s, t), { created: !!(s.activeTabKey && !o.has(s.activeTabKey)) };
2913
+ }), u(s, t), { created: !(!s.activeTabKey || o.has(s.activeTabKey)) };
1342
2914
  }
1343
- function ee(e, t) {
2915
+ function ae(e, t) {
1344
2916
  let r = t.trim();
1345
- !e || !r || l({
2917
+ e && r && u({
1346
2918
  ...n.startup,
1347
2919
  tabs: (n.startup.tabs ?? []).map((t) => t.instanceKey === e ? {
1348
2920
  ...t,
@@ -1350,39 +2922,39 @@ var yi = /* @__PURE__ */ I({
1350
2922
  } : t)
1351
2923
  });
1352
2924
  }
1353
- function te(e, t) {
2925
+ function oe(e, t) {
1354
2926
  let r = (n.startup.tabs ?? []).map((n) => n.key === e ? {
1355
2927
  ...n,
1356
2928
  title: t.title ?? n.title,
1357
2929
  pageDescriptor: t,
1358
- restoreState: { url: E(t) }
2930
+ restoreState: { url: b(t) }
1359
2931
  } : n), i = r.find((t) => t.key === e);
1360
- i && a.value.some((t) => t.key === e) && g(Xr(a.value, i)), l({
2932
+ i && a.value.some((t) => t.key === e) && v(ba(a.value, i)), u({
1361
2933
  ...n.startup,
1362
2934
  tabs: r
1363
2935
  }, "replace");
1364
2936
  }
1365
- function ne(e, t) {
1366
- let i = vi(e, n.location, t);
2937
+ function se(e, t) {
2938
+ let i = Ua(e, n.location, t);
1367
2939
  i && r("navigate", i);
1368
2940
  }
1369
- function re(e) {
1370
- l(q(n.startup, e, n.resolveOptions));
2941
+ function ce(e) {
2942
+ u(ca(n.startup, e, n.resolveOptions));
1371
2943
  }
1372
- async function ie() {
2944
+ async function le() {
1373
2945
  let e = o;
1374
2946
  try {
1375
- let t = qr(await ui(Fe), n.startup.menus, n.resolveOptions);
1376
- if (!c || e !== o) return;
2947
+ let t = _a(await za(cn), n.startup.menus, n.resolveOptions);
2948
+ if (!l || e !== o) return;
1377
2949
  a.value = t;
1378
2950
  let r = new Set(t.map((e) => e.key)), i = [...t, ...(n.startup.tabs ?? []).filter((e) => !r.has(e.key))];
1379
- l({
2951
+ u({
1380
2952
  ...n.startup,
1381
- tabs: J(i, t)
2953
+ tabs: ha(i, t)
1382
2954
  });
1383
2955
  } catch {}
1384
2956
  }
1385
- return (t, n) => (L(), j(zt, {
2957
+ return (t, n) => (M(), E(p, {
1386
2958
  startup: e.startup,
1387
2959
  loading: e.loading,
1388
2960
  error: e.error,
@@ -1390,16 +2962,16 @@ var yi = /* @__PURE__ */ I({
1390
2962
  "locked-tab-keys": a.value.map((e) => e.key),
1391
2963
  "realtime-status": e.realtimeStatus,
1392
2964
  "theme-appearance": e.themeAppearance,
1393
- onSelectMenu: u,
1394
- onChangeTab: d,
1395
- onCloseTab: f,
1396
- onCloseTabs: p,
1397
- onReorderTabs: m,
1398
- onToggleTabLock: h,
2965
+ onSelectMenu: d,
2966
+ onChangeTab: f,
2967
+ onCloseTab: m,
2968
+ onCloseTabs: h,
2969
+ onReorderTabs: g,
2970
+ onToggleTabLock: _,
1399
2971
  onRefreshPage: n[0] ||= (e) => r("refreshPage", e),
1400
2972
  onUserCommand: n[1] ||= (e) => r("userCommand", e)
1401
2973
  }, {
1402
- default: V(({ pageDescriptor: e }) => [Wn(t.$slots, "default", { pageDescriptor: e })]),
2974
+ default: I(({ pageDescriptor: e }) => [Xn(t.$slots, "default", { pageDescriptor: e })]),
1403
2975
  _: 3
1404
2976
  }, 8, [
1405
2977
  "startup",
@@ -1414,8 +2986,8 @@ var yi = /* @__PURE__ */ I({
1414
2986
  });
1415
2987
  //#endregion
1416
2988
  //#region src/app/loginTenant.ts
1417
- function bi(e, t = Ci(), n = wi(), r = "/") {
1418
- let i = Si(t, n === xi(r));
2989
+ function Ga(e, t = Ja(), n = Ya(), r = "/") {
2990
+ let i = qa(t, n === Ka(r));
1419
2991
  return i ? {
1420
2992
  tenantId: i,
1421
2993
  tenantLocked: !0
@@ -1427,29 +2999,29 @@ function bi(e, t = Ci(), n = wi(), r = "/") {
1427
2999
  function Q(e) {
1428
3000
  return e?.trim() ?? "";
1429
3001
  }
1430
- function xi(e) {
3002
+ function Ka(e) {
1431
3003
  let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
1432
3004
  return t === "/" ? t : `${t}/`;
1433
3005
  }
1434
- function Si(e, t) {
3006
+ function qa(e, t) {
1435
3007
  let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Q(n.get("_muyunTenantId"));
1436
3008
  return r || !t ? r : Q(n.get("tenantId")) || Q(n.get("tenant"));
1437
3009
  }
1438
- function Ci() {
3010
+ function Ja() {
1439
3011
  return typeof window > "u" ? "" : window.location.search;
1440
3012
  }
1441
- function wi() {
3013
+ function Ya() {
1442
3014
  return typeof window > "u" ? "/" : window.location.pathname;
1443
3015
  }
1444
3016
  //#endregion
1445
3017
  //#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
1446
- var Ti = { class: "login-page" }, Ei = { class: "login-panel" }, Di = { class: "login-brand" }, Oi = ["src"], ki = { key: 1 }, Ai = { key: 0 }, ji = {
3018
+ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "login-brand" }, $a = ["src"], eo = { key: 1 }, to = { key: 0 }, no = {
1447
3019
  key: 1,
1448
3020
  class: "login-subtitle"
1449
- }, Mi = {
3021
+ }, ro = {
1450
3022
  key: 0,
1451
3023
  class: "login-error"
1452
- }, Ni = { key: 0 }, Pi = /*#__PURE__*/ fe(/* @__PURE__ */ I({
3024
+ }, io = { key: 0 }, ao = /*#__PURE__*/ d(/* @__PURE__ */ j({
1453
3025
  name: "LoginView",
1454
3026
  __name: "LoginView",
1455
3027
  props: {
@@ -1461,13 +3033,14 @@ var Ti = { class: "login-page" }, Ei = { class: "login-panel" }, Di = { class: "
1461
3033
  },
1462
3034
  emits: ["authenticated"],
1463
3035
  setup(e, { emit: t }) {
1464
- let n = e, r = t, i = bi(void 0), a = R(i.tenantId), o = i.tenantLocked, s = R(Q(n.initialUsername) || Q(void 0)), c = R(Q(void 0)), l = R(!1), u = R(), d = R(!1), f = R(), p = R(""), m = R(""), h = R(), g = R(!1), _ = R(), v = A(() => !o || !g.value && !_.value), b = A(() => h.value?.mode !== "logoOnly"), x = A(() => h.value?.title || "平台登录"), S = A(() => h.value?.subtitle);
1465
- Vn(async () => {
1466
- if (!(!o || !a.value)) {
3036
+ let n = e, r = t, i = Ga(void 0), a = N(i.tenantId), o = i.tenantLocked, s = N(Q(n.initialUsername) || Q(void 0)), c = N(Q(void 0)), l = N(!1), u = N(), d = N(!1), f = N(), p = N(""), m = N(""), h = N(), g = N(!1), _ = N(), v = T(() => !o || !g.value && !_.value), ee = T(() => h.value?.mode !== "logoOnly"), te = T(() => h.value?.title || "平台登录"), ne = T(() => h.value?.subtitle);
3037
+ qn(async () => {
3038
+ if (o && a.value) {
1467
3039
  g.value = !0;
1468
3040
  try {
1469
3041
  if (!n.loginContextClient) throw Error("login context client is unavailable");
1470
- h.value = (await n.loginContextClient.loginContext(a.value)).branding;
3042
+ let e = await n.loginContextClient.loginContext(a.value);
3043
+ h.value = e.branding;
1471
3044
  } catch {
1472
3045
  _.value = "无法打开该租户的登录入口";
1473
3046
  } finally {
@@ -1475,7 +3048,7 @@ var Ti = { class: "login-page" }, Ei = { class: "login-panel" }, Di = { class: "
1475
3048
  }
1476
3049
  }
1477
3050
  });
1478
- async function ee() {
3051
+ async function re() {
1479
3052
  u.value = void 0, l.value = !0;
1480
3053
  try {
1481
3054
  let e = await n.authClient.login({
@@ -1489,12 +3062,15 @@ var Ti = { class: "login-page" }, Ei = { class: "login-panel" }, Di = { class: "
1489
3062
  }
1490
3063
  r("authenticated", e);
1491
3064
  } catch (e) {
1492
- u.value = e instanceof Error ? e.message : "Login failed";
3065
+ u.value = ie(e);
1493
3066
  } finally {
1494
3067
  l.value = !1;
1495
3068
  }
1496
3069
  }
1497
- async function te() {
3070
+ function ie(e) {
3071
+ return e instanceof Be ? e.code === fe.networkError || e.code === fe.httpError || (e.status ?? 0) >= 500 ? "无法连接后端服务,请确认服务已启动后重试" : e.code === fe.loginBadCredentials ? "用户名或密码错误" : e.message : e instanceof Error ? e.message : "登录失败,请稍后重试";
3072
+ }
3073
+ async function y() {
1498
3074
  if (u.value = void 0, !f.value) {
1499
3075
  u.value = "登录状态已失效,请重新登录", d.value = !1;
1500
3076
  return;
@@ -1508,100 +3084,102 @@ var Ti = { class: "login-page" }, Ei = { class: "login-panel" }, Di = { class: "
1508
3084
  await n.authClient.changeOwnPassword({
1509
3085
  currentPassword: c.value,
1510
3086
  newPassword: p.value
1511
- }, f.value), c.value = p.value, r("authenticated", await n.authClient.login({
3087
+ }, f.value), c.value = p.value;
3088
+ let e = await n.authClient.login({
1512
3089
  tenantId: a.value,
1513
3090
  username: s.value,
1514
3091
  password: p.value
1515
- }));
3092
+ });
3093
+ r("authenticated", e);
1516
3094
  } catch (e) {
1517
3095
  u.value = e instanceof Error ? e.message : "Password change failed";
1518
3096
  } finally {
1519
3097
  l.value = !1;
1520
3098
  }
1521
3099
  }
1522
- return (t, n) => (L(), N("main", Ti, [P("section", Ei, [
1523
- P("header", null, [P("div", Di, [h.value?.lightLogo ? (L(), N("img", {
3100
+ return (t, n) => (M(), O("main", Xa, [k("section", Za, [
3101
+ k("header", null, [k("div", Qa, [h.value?.lightLogo ? (M(), O("img", {
1524
3102
  key: 0,
1525
3103
  class: "login-logo",
1526
3104
  src: h.value.lightLogo,
1527
3105
  alt: ""
1528
- }, null, 8, Oi)) : M("v-if", !0), b.value ? (L(), N("div", ki, [
1529
- h.value?.lightLogo ? M("v-if", !0) : (L(), N("p", Ai, "MuYun Platform")),
1530
- P("h1", null, z(x.value), 1),
1531
- S.value ? (L(), N("p", ji, z(S.value), 1)) : M("v-if", !0)
1532
- ])) : M("v-if", !0)])]),
1533
- u.value || e.error || _.value ? (L(), N("p", Mi, z(u.value || e.error || _.value), 1)) : M("v-if", !0),
1534
- d.value ? (L(), N("form", {
3106
+ }, null, 8, $a)) : D("v-if", !0), ee.value ? (M(), O("div", eo, [
3107
+ h.value?.lightLogo ? D("v-if", !0) : (M(), O("p", to, "MuYun Platform")),
3108
+ k("h1", null, P(te.value), 1),
3109
+ ne.value ? (M(), O("p", no, P(ne.value), 1)) : D("v-if", !0)
3110
+ ])) : D("v-if", !0)])]),
3111
+ u.value || e.error || _.value ? (M(), O("p", ro, P(u.value || e.error || _.value), 1)) : D("v-if", !0),
3112
+ d.value ? (M(), O("form", {
1535
3113
  key: 2,
1536
3114
  class: "login-form",
1537
- onSubmit: qn(te, ["prevent"])
3115
+ onSubmit: $n(y, ["prevent"])
1538
3116
  }, [
1539
- n[10] ||= P("p", { class: "login-context" }, "当前密码需要修改后才能进入系统", -1),
1540
- P("label", null, [n[8] ||= P("span", null, "新密码", -1), F(B(C), {
3117
+ n[10] ||= k("p", { class: "login-context" }, "当前密码需要修改后才能进入系统", -1),
3118
+ k("label", null, [n[8] ||= k("span", null, "新密码", -1), A(F(S), {
1541
3119
  value: p.value,
1542
3120
  "onUpdate:value": n[3] ||= (e) => p.value = e,
1543
3121
  type: "password",
1544
3122
  autocomplete: "new-password",
1545
3123
  required: ""
1546
3124
  }, null, 8, ["value"])]),
1547
- P("label", null, [n[9] ||= P("span", null, "确认新密码", -1), F(B(C), {
3125
+ k("label", null, [n[9] ||= k("span", null, "确认新密码", -1), A(F(S), {
1548
3126
  value: m.value,
1549
3127
  "onUpdate:value": n[4] ||= (e) => m.value = e,
1550
3128
  type: "password",
1551
3129
  autocomplete: "new-password",
1552
3130
  required: ""
1553
3131
  }, null, 8, ["value"])]),
1554
- F(B(y), {
3132
+ A(F(Ie), {
1555
3133
  class: "login-submit",
1556
3134
  "html-type": "submit",
1557
3135
  type: "primary",
1558
3136
  loading: l.value || e.loading
1559
3137
  }, {
1560
- default: V(() => [In(z(l.value || e.loading ? "保存中" : "修改密码"), 1)]),
3138
+ default: I(() => [Hn(P(l.value || e.loading ? "保存中" : "修改密码"), 1)]),
1561
3139
  _: 1
1562
3140
  }, 8, ["loading"])
1563
- ], 32)) : (L(), N("form", {
3141
+ ], 32)) : (M(), O("form", {
1564
3142
  key: 1,
1565
3143
  class: "login-form",
1566
- onSubmit: qn(ee, ["prevent"])
3144
+ onSubmit: $n(re, ["prevent"])
1567
3145
  }, [
1568
- B(o) ? M("v-if", !0) : (L(), N("label", Ni, [n[5] ||= P("span", null, "租户 ID", -1), F(B(C), {
3146
+ F(o) ? D("v-if", !0) : (M(), O("label", io, [n[5] ||= k("span", null, "租户 ID", -1), A(F(S), {
1569
3147
  value: a.value,
1570
3148
  "onUpdate:value": n[0] ||= (e) => a.value = e,
1571
3149
  autocomplete: "organization",
1572
3150
  placeholder: "留空进入系统工作区"
1573
3151
  }, null, 8, ["value"])])),
1574
- P("label", null, [n[6] ||= P("span", null, "用户名", -1), F(B(C), {
3152
+ k("label", null, [n[6] ||= k("span", null, "用户名", -1), A(F(S), {
1575
3153
  value: s.value,
1576
3154
  "onUpdate:value": n[1] ||= (e) => s.value = e,
1577
3155
  autocomplete: "username",
1578
3156
  required: ""
1579
3157
  }, null, 8, ["value"])]),
1580
- P("label", null, [n[7] ||= P("span", null, "密码", -1), F(B(C), {
3158
+ k("label", null, [n[7] ||= k("span", null, "密码", -1), A(F(S), {
1581
3159
  value: c.value,
1582
3160
  "onUpdate:value": n[2] ||= (e) => c.value = e,
1583
3161
  type: "password",
1584
3162
  autocomplete: "current-password",
1585
3163
  required: ""
1586
3164
  }, null, 8, ["value"])]),
1587
- F(B(y), {
3165
+ A(F(Ie), {
1588
3166
  class: "login-submit",
1589
3167
  "html-type": "submit",
1590
3168
  type: "primary",
1591
3169
  disabled: !v.value,
1592
3170
  loading: l.value || e.loading || g.value
1593
3171
  }, {
1594
- default: V(() => [In(z(l.value || e.loading ? "登录中" : "登录"), 1)]),
3172
+ default: I(() => [Hn(P(l.value || e.loading ? "登录中" : "登录"), 1)]),
1595
3173
  _: 1
1596
3174
  }, 8, ["disabled", "loading"])
1597
3175
  ], 32))
1598
3176
  ])]));
1599
3177
  }
1600
- }), [["__scopeId", "data-v-9164ba1f"]]);
3178
+ }), [["__scopeId", "data-v-76190b2a"]]);
1601
3179
  //#endregion
1602
3180
  //#region src/consumer/userPreferencePersistence.ts
1603
- function Fi(e) {
1604
- Xe({
3181
+ function oo(e) {
3182
+ vt({
1605
3183
  load: async (t) => (await e().request({
1606
3184
  path: `/platform.user-preference/${encodeURIComponent(t)}`,
1607
3185
  query: { clientType: "WEB" }
@@ -1623,10 +3201,10 @@ function Fi(e) {
1623
3201
  }
1624
3202
  //#endregion
1625
3203
  //#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
1626
- var Ii = { class: "change-own-password-fields" }, Li = {
3204
+ var so = { class: "change-own-password-fields" }, co = {
1627
3205
  key: 0,
1628
3206
  class: "change-own-password-error"
1629
- }, Ri = /*#__PURE__*/ fe(/* @__PURE__ */ I({
3207
+ }, lo = /*#__PURE__*/ d(/* @__PURE__ */ j({
1630
3208
  name: "ChangeOwnPasswordDialog",
1631
3209
  __name: "ChangeOwnPasswordDialog",
1632
3210
  props: {
@@ -1652,7 +3230,7 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1652
3230
  ],
1653
3231
  setup(e, { emit: t }) {
1654
3232
  let n = t;
1655
- return (t, r) => (L(), j(B(rt), {
3233
+ return (t, r) => (M(), E(F(sn), {
1656
3234
  open: e.open,
1657
3235
  title: "修改密码",
1658
3236
  "confirm-text": "保存",
@@ -1661,8 +3239,8 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1661
3239
  onConfirm: r[3] ||= (e) => n("submit"),
1662
3240
  onCancel: r[4] ||= (e) => n("close")
1663
3241
  }, {
1664
- default: V(() => [P("div", Ii, [
1665
- P("label", null, [r[5] ||= P("span", null, "当前密码", -1), F(B(C), {
3242
+ default: I(() => [k("div", so, [
3243
+ k("label", null, [r[5] ||= k("span", null, "当前密码", -1), A(F(S), {
1666
3244
  value: e.currentPassword,
1667
3245
  type: "password",
1668
3246
  autocomplete: "current-password",
@@ -1670,7 +3248,7 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1670
3248
  placeholder: "请输入当前密码",
1671
3249
  "onUpdate:value": r[0] ||= (e) => n("update:currentPassword", e)
1672
3250
  }, null, 8, ["value", "disabled"])]),
1673
- P("label", null, [r[6] ||= P("span", null, "新密码", -1), F(B(C), {
3251
+ k("label", null, [r[6] ||= k("span", null, "新密码", -1), A(F(S), {
1674
3252
  value: e.newPassword,
1675
3253
  type: "password",
1676
3254
  autocomplete: "new-password",
@@ -1678,7 +3256,7 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1678
3256
  placeholder: "请输入新密码",
1679
3257
  "onUpdate:value": r[1] ||= (e) => n("update:newPassword", e)
1680
3258
  }, null, 8, ["value", "disabled"])]),
1681
- P("label", null, [r[7] ||= P("span", null, "确认新密码", -1), F(B(C), {
3259
+ k("label", null, [r[7] ||= k("span", null, "确认新密码", -1), A(F(S), {
1682
3260
  value: e.confirmPassword,
1683
3261
  type: "password",
1684
3262
  autocomplete: "new-password",
@@ -1686,7 +3264,7 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1686
3264
  placeholder: "请再次输入新密码",
1687
3265
  "onUpdate:value": r[2] ||= (e) => n("update:confirmPassword", e)
1688
3266
  }, null, 8, ["value", "disabled"])])
1689
- ]), e.error ? (L(), N("p", Li, z(e.error), 1)) : M("v-if", !0)]),
3267
+ ]), e.error ? (M(), O("p", co, P(e.error), 1)) : D("v-if", !0)]),
1690
3268
  _: 1
1691
3269
  }, 8, [
1692
3270
  "open",
@@ -1694,22 +3272,22 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1694
3272
  "confirm-disabled"
1695
3273
  ]));
1696
3274
  }
1697
- }), [["__scopeId", "data-v-6905dcfc"]]), zi = { class: "theme-skin-preferences" }, Bi = {
3275
+ }), [["__scopeId", "data-v-6905dcfc"]]), uo = { class: "theme-skin-preferences" }, fo = {
1698
3276
  key: 0,
1699
3277
  class: "theme-skin-error",
1700
3278
  role: "alert"
1701
- }, Vi = {
3279
+ }, po = {
1702
3280
  class: "theme-skin-grid",
1703
3281
  role: "radiogroup",
1704
3282
  "aria-label": "工作台皮肤"
1705
- }, Hi = [
3283
+ }, mo = [
1706
3284
  "aria-checked",
1707
3285
  "tabindex",
1708
3286
  "data-skin-id",
1709
3287
  "disabled",
1710
3288
  "onClick",
1711
3289
  "onKeydown"
1712
- ], Ui = /*#__PURE__*/ fe(/* @__PURE__ */ I({
3290
+ ], ho = /*#__PURE__*/ d(/* @__PURE__ */ j({
1713
3291
  name: "ThemeSkinPreferencesDialog",
1714
3292
  __name: "ThemeSkinPreferencesDialog",
1715
3293
  props: {
@@ -1740,7 +3318,7 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1740
3318
  let a = e.key === "Home" ? 0 : e.key === "End" ? i - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + i) % i, o = r?.children.item(a), s = o?.dataset.skinId;
1741
3319
  s && (n("select", s), o?.focus());
1742
3320
  }
1743
- return (t, i) => (L(), j(B(rt), {
3321
+ return (t, i) => (M(), E(F(sn), {
1744
3322
  open: e.open,
1745
3323
  title: "偏好设置",
1746
3324
  width: 460,
@@ -1749,12 +3327,12 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1749
3327
  onConfirm: i[0] ||= (e) => n("close"),
1750
3328
  onCancel: i[1] ||= (e) => n("close")
1751
3329
  }, {
1752
- default: V(() => [P("section", zi, [
1753
- i[3] ||= P("header", null, [P("h2", null, "工作台皮肤"), P("p", null, "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")], -1),
1754
- e.error ? (L(), N("p", Bi, z(e.error), 1)) : M("v-if", !0),
1755
- P("div", Vi, [(L(!0), N(Fn, null, Un(e.skins, (t, a) => (L(), N("button", {
3330
+ default: I(() => [k("section", uo, [
3331
+ i[3] ||= k("header", null, [k("h2", null, "工作台皮肤"), k("p", null, "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")], -1),
3332
+ e.error ? (M(), O("p", fo, P(e.error), 1)) : D("v-if", !0),
3333
+ k("div", po, [(M(!0), O(Vn, null, Yn(e.skins, (t, a) => (M(), O("button", {
1756
3334
  key: t.id,
1757
- class: Rn(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3335
+ class: Wn(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
1758
3336
  type: "button",
1759
3337
  role: "radio",
1760
3338
  "aria-checked": t.id === e.activeSkinId,
@@ -1764,9 +3342,9 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1764
3342
  onClick: (e) => n("select", t.id),
1765
3343
  onKeydown: (e) => r(e, a)
1766
3344
  }, [
1767
- P("span", {
3345
+ k("span", {
1768
3346
  class: "theme-skin-preview",
1769
- style: zn({
3347
+ style: Gn({
1770
3348
  "--skin-canvas": t.theme.support.canvas,
1771
3349
  "--skin-surface": t.theme.support.surface,
1772
3350
  "--skin-text": t.theme.support.text,
@@ -1774,13 +3352,13 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1774
3352
  "--skin-accent": t.theme.brandAccent.base
1775
3353
  })
1776
3354
  }, [...i[2] ||= [
1777
- P("i", { class: "theme-skin-preview-sidebar" }, null, -1),
1778
- P("i", { class: "theme-skin-preview-toolbar" }, null, -1),
1779
- P("i", { class: "theme-skin-preview-card" }, null, -1)
3355
+ k("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3356
+ k("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3357
+ k("i", { class: "theme-skin-preview-card" }, null, -1)
1780
3358
  ]], 4),
1781
- P("strong", null, z(t.title), 1),
1782
- P("small", null, z(t.description), 1)
1783
- ], 42, Hi))), 128))])
3359
+ k("strong", null, P(t.title), 1),
3360
+ k("small", null, P(t.description), 1)
3361
+ ], 42, mo))), 128))])
1784
3362
  ])]),
1785
3363
  _: 1
1786
3364
  }, 8, [
@@ -1790,11 +3368,11 @@ var Ii = { class: "change-own-password-fields" }, Li = {
1790
3368
  ]));
1791
3369
  }
1792
3370
  }), [["__scopeId", "data-v-5d36f806"]]), $ = "workbench.theme-skin";
1793
- async function Wi(e, t) {
1794
- let n = ge(await e.restore($, t, { persistence: "backend" })).id;
1795
- return await e.set($, n, { persistence: "local" }), n;
3371
+ async function go(e, t) {
3372
+ let n = await e.restore($, t, { persistence: "backend" }), r = ht(n).id;
3373
+ return await e.set($, r, { persistence: "local" }), r;
1796
3374
  }
1797
- async function Gi(e, t, n) {
3375
+ async function _o(e, t, n) {
1798
3376
  await e.set($, t, { persistence: "local" });
1799
3377
  try {
1800
3378
  return await e.set($, t, { persistence: "backend" }), { skinId: t };
@@ -1806,4 +3384,4 @@ async function Gi(e, t, n) {
1806
3384
  }
1807
3385
  }
1808
3386
  //#endregion
1809
- export { at as AppError, yi as AppWorkbenchShell, Ri as ChangeOwnPasswordDialog, Ge as DateTimeText, ot as DrawerOperationBar, Kt as DynamicModuleWorkspaceDetailView, e as FileSizeText, we as FileTransferUploader, Pi as LoginView, At as ModuleContextProvider, _i as PlatformAdminOutlet, Lr as PlatformAdminRouteOutlet, ye as RecordDetailDrawer, b as SingleImageFileReferenceField, Ui as ThemeSkinPreferencesDialog, y as UiButton, Pe as UiDataTable, C as UiInput, Ye as UiSidePanel, me as UiSwitch, i as UiTextArea, c as UiThemeProvider, Ot as UiTree, oe as UiTreeSelect, Tr as VueQueryPlugin, zt as Workbench, Xt as WorkbenchMenu, an as WorkbenchOutlet, Jt as WorkspaceViewOutlet, be as actionResultData, Vr as activeTabUrlOf, J as arrangeLockedMenuTabs, Rt as buildWorkbenchMegaMenuModel, vt as canQueryRecycleBin, tn as canonicalDynamicModulePath, un as clearAuthToken, o as configureModuleContext, Bt as configureModulePageEnhancementContributions, Ut as configureModulePageEnhancements, Fi as configureUserPreferencePersistence, Pt as configureWorkspaceViewContributions, St as confirmAction, kn as connectAppRealtime, ut as connectRealtimeBusinessEvents, nt as connectRealtimeBusinessNotifications, Je as connectRealtimeDataChanges, qe as connectRealtimeUserNotifications, Ne as contextDataChangeChannel, ht as createAuthClient, Sn as createBackendHttpClient, Ae as createBrowserFileTransferUpload, de as createDataChangeDispatcher, t as createHttpClient, ze as createLoginContextClient, te as createManagedDetailRelationClient, et as createMenuClient, T as createMenuTab, xe as createModuleContext, ft as createModuleCrudClient, qt as createModulePageEnhancementRegistry, S as createModuleTreeClient, _ as createModuleTreeContext, ke as createNavigatorReferenceCrudClient, Ee as createNavigatorReferenceTreeClient, bt as createPageBootstrapClient, dt as createQueryClient, Ct as createRealtimeClient, st as createReferenceResolveClient, He as createSessionClient, Me as createStaticModuleCrudClient, ue as createStaticModuleTreeClient, n as createStaticResourceCrudClient, Ue as createStaticResourceTreeClient, Ht as createWorkbenchMenuNodes, Mn as createWorkspaceViewDescriptor, Yt as createWorkspaceViewRegistry, Dt as dataChangeChannel, Tt as defaultUiThemeSkinId, Gt as defineWorkspaceView, bn as disconnectAppRealtime, It as dismissWorkspaceViewDescriptor, jt as dynamicModuleAliasFromPath, wn as effectiveAuthToken, Tn as filterWorkbenchMenuNodes, ln as findFirstNavigationMenu, Vt as findWorkbenchMenuNodeById, en as findWorkbenchMenuPath, $t as firstDeepRootIdOf, k as getMenuNavigationTarget, Be as hasExecutableDetailRelationMutationContract, tt as hasExecutableDetailRelationQueryContract, it as hasRecycleBinAbility, Re as imConversationMessageChannel, Et as imMessageSendCommand, a as invokeBusinessNotificationRecordAction, We as isHttpStreamClient, Mr as isPlatformAdminRoutePage, xn as isTabMenuTarget, mt as isUnexpectedPlatformError, Dn as isWindowMenuTarget, pt as moduleAbilityCodes, pe as moduleDataChangeChannel, Pn as modulePageWorkspaceViews, kt as normalizeChangeSet, Ze as normalizeError, Ke as normalizeMenuMineResponse, s as organizationPublicDataChangeChannel, wt as organizationPublicNotificationChannel, mn as pageDescriptorFromUrl, E as pageDescriptorToUrl, Cn as pageInstanceKeyOf, kr as platformAdminModuleRoutes, Ar as platformAdminRouteLayouts, Or as platformAdminRoutePrefixes, K as platformAdminRoutes, Ie as platformErrorCodes, he as platformPingCommand, Le as presentPlatformError, lt as presentPlatformInfo, _t as presentPlatformMessage, Ve as presentPlatformSuccess, Qt as presentWorkbenchRealtimeStatus, Nt as provideCurrentUserContext, ve as provideModuleContextConfig, hn as provideWorkbenchNavigation, gn as provideWorkspaceViewHost, x as queryKeys, u as realtimeDestinations, l as realtimeMessageTypes, ae as recordDataChangeChannel, Lt as refreshModulePageList, Y as removeLockedMenuTabs, ct as resolveGlobalErrorPresentation, O as resolvePageDescriptor, jr as resolvePlatformAdminRoute, g as resolveWebActionResult, _e as resolveWebActionResultMessage, Ft as resolveWorkspaceView, $e as resourceDataChangeChannel, r as resourceRecordDataChangeChannel, ui as restoreLockedTabPreference, qr as restoreLockedWorkbenchTabs, Wi as restoreThemeSkinPreference, q as restoreWorkbenchStartupStateFromUrl, w as routeUrlWithOpenOptions, yn as saveAuthSessionId, fn as saveAuthToken, di as saveLockedTabPreference, Gi as saveThemeSkinPreference, Qe as sessionActivityCommand, dn as storedAuthSessionId, nn as storedAuthToken, En as subscribeAppBusinessEvents, pn as subscribeAppDataChanges, rn as subscribeAppModuleDataChanges, Nn as syncModulePageWorkspaceViewContributions, sn as tabIdentityKeyOf, vn as tabKeyOf, re as tenantPublicDataChangeChannel, ie as tenantPublicNotificationChannel, $ as themeSkinPreferenceKey, jn as tryPageDescriptorFromUrl, ge as uiThemeSkinById, d as uiThemeSkins, ce as unwrapResponsePayload, Xr as updateLockedMenuTabs, De as uploadedFileId, Zt as useCurrentUserContext, Ce as useModuleContext, h as useModuleTreeContext, Wt as useWorkbenchNavigation, Mt as useWorkspaceViewHost, se as userBusinessEventChannel, f as userBusinessNotificationChannel, gt as userFacingErrorMessage, v as userImMessageChannel, ne as userNotificationChannel, Fe as userPreferences, Se as webDataChangeKey, xt as webDataChangeTypes, m as webDataChanges, yt as withHttpHeaders, D as withPageInstanceKey, ee as withWebActionResultChanges };
3387
+ export { Be as AppError, Wa as AppWorkbenchShell, Fe as BusinessNotificationPanel, lo as ChangeOwnPasswordDialog, u as DateTimeText, Ot as DrawerOperationBar, Ct as DynamicModuleWorkspaceDetailView, Ht as FileSizeText, _t as FileTransferUploader, ao as LoginView, _e as ModuleContextProvider, be as ModuleHttpProvider, Ha as PlatformAdminOutlet, Zi as PlatformAdminRouteOutlet, Ye as RecordDetailDrawer, pt as SingleImageFileReferenceField, ho as ThemeSkinPreferencesDialog, Ie as UiButton, tn as UiDataTable, S as UiInput, Wt as UiSidePanel, dt as UiSwitch, nt as UiTextArea, Rt as UiThemeProvider, at as UiTree, Et as UiTreeSelect, Ri as VueQueryPlugin, p as Workbench, Te as WorkbenchMenu, en as WorkbenchOutlet, it as WorkspaceViewOutlet, De as actionResultData, sa as activeTabUrlOf, ha as arrangeLockedMenuTabs, a as buildWorkbenchMegaMenuModel, $e as canQueryRecycleBin, se as canonicalDynamicModulePath, Mn as clearAuthToken, Ee as configureModuleContext, yn as configureModulePageEnhancementContributions, st as configureModulePageEnhancements, oo as configureUserPreferencePersistence, Kt as configureWorkspaceViewContributions, tt as confirmAction, Nn as connectAppRealtime, zt as connectRealtimeBusinessEvents, dn as connectRealtimeBusinessNotifications, gt as connectRealtimeDataChanges, xt as connectRealtimeUserNotifications, Xt as contextDataChangeChannel, nn as createAuthClient, Pn as createBackendHttpClient, St as createBrowserFileTransferUpload, En as createDataChangeDispatcher, s as createHttpClient, At as createLoginContextClient, o as createManagedDetailRelationClient, ot as createMenuClient, ge as createMenuTab, g as createModuleContext, He as createModuleCrudClient, gn as createModulePageEnhancementRegistry, re as createModuleTreeClient, ae as createModuleTreeContext, ze as createNavigatorReferenceCrudClient, Ge as createNavigatorReferenceTreeClient, qt as createPageBootstrapClient, zi as createQueryClient, Vt as createRealtimeClient, Gt as createReferenceResolveClient, an as createSessionClient, ee as createStaticModuleCrudClient, de as createStaticModuleTreeClient, Qt as createStaticResourceCrudClient, ce as createStaticResourceTreeClient, Nt as createWorkbenchMenuNodes, rn as createWorkspaceViewDescriptor, ut as createWorkspaceViewRegistry, Dt as dataChangeChannel, un as defaultUiThemeSkinId, zn as defineWorkspaceView, In as disconnectAppRealtime, Lt as dismissWorkspaceViewDescriptor, Me as dynamicModuleAliasFromPath, jn as effectiveAuthToken, ye as filterWorkbenchMenuNodes, wn as findFirstNavigationMenu, Se as findWorkbenchMenuNodeById, Oe as findWorkbenchMenuPath, v as firstDeepRootIdOf, c as getMenuNavigationTarget, Ze as hasExecutableDetailRelationMutationContract, Je as hasExecutableDetailRelationQueryContract, ke as hasRecycleBinAbility, wt as imConversationMessageChannel, rt as imMessageSendCommand, Vi as invokeBusinessNotificationRecordAction, Ue as isHttpStreamClient, Ki as isPlatformAdminRoutePage, We as isTabMenuTarget, Ke as isUnexpectedPlatformError, y as isWindowMenuTarget, n as moduleAbilityCodes, pn as moduleDataChangeChannel, Ne as modulePageWorkspaceViews, Tn as normalizeChangeSet, te as normalizeError, ft as normalizeMenuMineResponse, Xe as normalizeModulePageResponse, qe as normalizeModuleRecord, bn as organizationPublicDataChangeChannel, ct as organizationPublicNotificationChannel, Ce as pageActionEntryDescription, Pt as pageActionEntryTitle, r as pageActionEntryVisible, jt as pageActionIntent, Ve as pageDescriptorFromUrl, b as pageDescriptorToUrl, ne as pageInstanceKeyOf, Ui as platformAdminModuleRoutes, Wi as platformAdminRouteLayouts, Hi as platformAdminRoutePrefixes, J as platformAdminRoutes, fe as platformErrorCodes, _n as platformPingCommand, mn as presentPlatformError, xn as presentPlatformInfo, lt as presentPlatformMessage, vn as presentPlatformSuccess, It as presentWorkbenchRealtimeStatus, Re as provideCurrentUserContext, me as provideModuleContextConfig, Yt as provideWorkbenchNavigation, mt as provideWorkspaceViewHost, Bi as queryKeys, Pe as realtimeDestinations, l as realtimeMessageTypes, hn as recordDataChangeChannel, fn as refreshModulePageList, Y as removeLockedMenuTabs, $t as resolveGlobalErrorPresentation, pe as resolvePageDescriptor, Gi as resolvePlatformAdminRoute, _ as resolveWebActionResult, oe as resolveWebActionResultMessage, ln as resolveWorkspaceView, Le as resourceDataChangeChannel, m as resourceRecordDataChangeChannel, za as restoreLockedTabPreference, _a as restoreLockedWorkbenchTabs, go as restoreThemeSkinPreference, ca as restoreWorkbenchStartupStateFromUrl, C as routeUrlWithOpenOptions, Dn as saveAuthSessionId, Ln as saveAuthToken, Ba as saveLockedTabPreference, _o as saveThemeSkinPreference, f as sessionActivityCommand, Rn as storedAuthSessionId, On as storedAuthToken, kn as subscribeAppBusinessEvents, An as subscribeAppDataChanges, Fn as subscribeAppModuleDataChanges, kt as syncModulePageWorkspaceViewContributions, w as tabIdentityKeyOf, ue as tabKeyOf, we as tenantPublicDataChangeChannel, Ft as tenantPublicNotificationChannel, $ as themeSkinPreferenceKey, Qe as tryPageDescriptorFromUrl, ht as uiThemeSkinById, bt as uiThemeSkins, Zt as unwrapResponsePayload, ba as updateLockedMenuTabs, Bt as uploadedFileId, h as useCurrentUserContext, Ae as useModuleContext, Sn as useModuleTreeContext, Tt as useWorkbenchNavigation, yt as useWorkspaceViewHost, Ut as useWorkspaceViewNavigation, on as useWorkspaceViewUnsavedState, i as userBusinessEventChannel, Mt as userBusinessNotificationChannel, le as userFacingErrorMessage, ve as userImMessageChannel, xe as userNotificationChannel, cn as userPreferences, he as webDataChangeKey, et as webDataChangeTypes, je as webDataChanges, ie as withHttpHeaders, x as withPageInstanceKey, Cn as withWebActionResultChanges };