@das-fed/upf-utils 6.4.0-dev.246 → 6.4.0-dev.248

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 (62) hide show
  1. package/api-services/es5.js +973 -976
  2. package/api-services/index.js +729 -733
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +852 -849
  5. package/api-services/modules/app-manage/index.js +665 -661
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/bems/es5.js +1106 -1118
  8. package/api-services/modules/bems/index.js +905 -923
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/es5.js +852 -849
  11. package/api-services/modules/contract/index.js +665 -661
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/es5.js +1114 -1102
  14. package/api-services/modules/enterpriseright/index.js +920 -902
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/es5.js +1349 -1361
  17. package/api-services/modules/file/es5.js +1259 -1271
  18. package/api-services/modules/file/index.js +1030 -1048
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1055 -1073
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/es5.js +871 -868
  23. package/api-services/modules/iot/index.js +685 -681
  24. package/api-services/modules/iot/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/es5.js +1102 -1114
  26. package/api-services/modules/knowledge/index.js +902 -920
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/es5.js +1114 -1102
  29. package/api-services/modules/link/index.js +920 -902
  30. package/api-services/modules/link/index.js.gz +0 -0
  31. package/api-services/modules/permission/es5.js +1079 -1088
  32. package/api-services/modules/permission/index.js +883 -897
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/es5.js +1144 -1132
  35. package/api-services/modules/platformManage/index.js +953 -935
  36. package/api-services/modules/platformManage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/es5.js +1093 -1081
  38. package/api-services/modules/super-admin/index.js +901 -883
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/es5.js +1081 -1093
  41. package/api-services/modules/supplier/index.js +883 -901
  42. package/api-services/modules/supplier/index.js.gz +0 -0
  43. package/api-services/modules/supplychain-manage/es5.js +1102 -1114
  44. package/api-services/modules/supplychain-manage/index.js +902 -920
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/es5.js +1089 -1077
  47. package/api-services/modules/systemConfiguration/index.js +899 -881
  48. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  49. package/common-info/es5.js +1258 -1246
  50. package/common-info/getPermissionMethod/es5.js +1334 -1343
  51. package/common-info/getPermissionMethod/index.js +1106 -1120
  52. package/common-info/getPermissionMethod/index.js.gz +0 -0
  53. package/common-info/index.js +1042 -1024
  54. package/common-info/index.js.gz +0 -0
  55. package/esm-map.json +3 -1
  56. package/package.json +3 -3
  57. package/theme/color.d.ts +7 -0
  58. package/theme/es5.d.ts +24 -8
  59. package/theme/es5.js +651 -492
  60. package/theme/index.d.ts +24 -8
  61. package/theme/index.js +430 -325
  62. package/theme/index.js.gz +0 -0
package/theme/index.js CHANGED
@@ -1,8 +1,34 @@
1
- import { bus as q } from "@das-fed/mframe";
2
- const J = {
1
+ import { bus as fe } from "@das-fed/mframe";
2
+ const p = "#ffffff", d = "#000000", ne = 0.115, q = (e) => {
3
+ const r = String(e || "").trim();
4
+ return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((t) => `${t}${t}`).join("")}` : r : "";
5
+ }, B = (e) => {
6
+ const r = q(e);
7
+ if (!r)
8
+ return null;
9
+ const t = r.slice(1);
10
+ return {
11
+ red: Number.parseInt(t.slice(0, 2), 16),
12
+ green: Number.parseInt(t.slice(2, 4), 16),
13
+ blue: Number.parseInt(t.slice(4, 6), 16)
14
+ };
15
+ }, A = (e) => Math.min(255, Math.max(0, Math.round(e))), J = (e, r, t, o) => {
16
+ const u = B(e), f = B(r);
17
+ if (!u || !f)
18
+ return o;
19
+ const n = Math.min(1, Math.max(0, t)), l = A(u.red * n + f.red * (1 - n)), i = A(u.green * n + f.green * (1 - n)), c = A(u.blue * n + f.blue * (1 - n));
20
+ return `#${[l, i, c].map((m) => m.toString(16).padStart(2, "0")).join("")}`;
21
+ }, le = (e, r, t) => {
22
+ const o = B(e);
23
+ if (!o)
24
+ return t;
25
+ const u = Math.min(1, Math.max(0, r));
26
+ return `rgba(${o.red}, ${o.green}, ${o.blue}, ${u})`;
27
+ }, y = (e, r = p) => J(e || "#5582F3", r || p, ne, "#ebf1fe"), O = "#5582f3", ie = {
3
28
  "--upf-brand-primary": "#ffffff",
4
29
  "--upf-brand-secondary": "#f2f6ff",
5
- "--upf-color-primary": "#5582f3",
30
+ "--upf-color-primary": O,
31
+ "--upf-color-primary-bg": y(O),
6
32
  "--upf-color-success": "#52c41a",
7
33
  "--upf-color-warning": "#faad14",
8
34
  "--upf-color-error": "#ff4d4f",
@@ -36,18 +62,19 @@ const J = {
36
62
  "--upf-border-radius": "4px",
37
63
  "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
38
64
  "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
39
- }, Y = {
65
+ }, se = {
40
66
  name: "cjb",
41
67
  displayName: "纯净白",
42
68
  description: "白底壳层主题,内容区沿用浅蓝高亮交互色",
43
69
  mode: "light",
44
70
  source: "preset",
45
71
  basePresetName: "cjb",
46
- variables: J
47
- }, X = {
72
+ variables: ie
73
+ }, L = "#5582f3", ce = {
48
74
  "--upf-brand-primary": "#0e5fd8",
49
75
  "--upf-brand-secondary": "#3579de",
50
- "--upf-color-primary": "#5582f3",
76
+ "--upf-color-primary": L,
77
+ "--upf-color-primary-bg": y(L),
51
78
  "--upf-color-success": "#52c41a",
52
79
  "--upf-color-warning": "#faad14",
53
80
  "--upf-color-error": "#ff4d4f",
@@ -81,18 +108,19 @@ const J = {
81
108
  "--upf-border-radius": "4px",
82
109
  "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.1)",
83
110
  "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.15)"
84
- }, Q = {
111
+ }, pe = {
85
112
  name: "default",
86
113
  displayName: "经典蓝",
87
114
  description: "经典蓝导航主题,内容区沿用浅底与高亮蓝交互色",
88
115
  mode: "light",
89
116
  source: "preset",
90
117
  basePresetName: "default",
91
- variables: X
92
- }, Z = {
118
+ variables: ce
119
+ }, z = "#e63946", me = {
93
120
  "--upf-brand-primary": "#eb0e1b",
94
121
  "--upf-brand-secondary": "#f15760",
95
- "--upf-color-primary": "#e63946",
122
+ "--upf-color-primary": z,
123
+ "--upf-color-primary-bg": y(z),
96
124
  "--upf-color-success": "#52c41a",
97
125
  "--upf-color-warning": "#faad14",
98
126
  "--upf-color-error": "#ff4d4f",
@@ -126,18 +154,19 @@ const J = {
126
154
  "--upf-border-radius": "4px",
127
155
  "--upf-box-shadow": "0 2px 8px rgba(0, 0, 0, 0.08)",
128
156
  "--upf-box-shadow-elevated": "0 4px 16px rgba(0, 0, 0, 0.12)"
129
- }, ee = {
157
+ }, de = {
130
158
  name: "dkh",
131
159
  displayName: "大咖红",
132
160
  description: "大咖红主题,壳层与内容交互色保持同系红色",
133
161
  mode: "light",
134
162
  source: "preset",
135
163
  basePresetName: "dkh",
136
- variables: Z
137
- }, re = {
164
+ variables: me
165
+ }, U = "#5582f3", ge = {
138
166
  "--upf-brand-primary": "#1f2346",
139
167
  "--upf-brand-secondary": "#2d3158",
140
- "--upf-color-primary": "#5582f3",
168
+ "--upf-color-primary": U,
169
+ "--upf-color-primary-bg": y(U),
141
170
  "--upf-color-success": "#52c41a",
142
171
  "--upf-color-warning": "#faad14",
143
172
  "--upf-color-error": "#ff4d4f",
@@ -151,7 +180,7 @@ const J = {
151
180
  "--upf-bg-elevated": "#ffffff",
152
181
  "--upf-bg-mask": "rgba(15, 23, 42, 0.45)",
153
182
  "--upf-border-color": "#D9D9D9",
154
- "--upf-divider-color": "#ebeff5",
183
+ "--upf-divider-color": "rgba(235, 239, 245, 0.1)",
155
184
  "--upf-nav-bg": "#1f2346",
156
185
  "--upf-nav-text": "#ffffff",
157
186
  "--upf-nav-hover-bg": "rgba(255, 255, 255, 0.16)",
@@ -171,63 +200,47 @@ const J = {
171
200
  "--upf-border-radius": "4px",
172
201
  "--upf-box-shadow": "0 6px 18px rgba(15, 23, 42, 0.08)",
173
202
  "--upf-box-shadow-elevated": "0 10px 28px rgba(35, 41, 75, 0.12)"
174
- }, te = {
203
+ }, be = {
175
204
  name: "ssl",
176
205
  displayName: "深邃蓝",
177
206
  description: "深邃蓝壳层主题,内容区沿用浅底与高亮蓝交互色",
178
207
  mode: "dark",
179
208
  source: "preset",
180
209
  basePresetName: "ssl",
181
- variables: re
182
- }, oe = ["default", "cjb", "ssl", "dkh"], _ = {
183
- default: Q,
184
- cjb: Y,
185
- ssl: te,
186
- dkh: ee
187
- }, ae = (e) => ({ ...e }), I = (e) => ({
210
+ variables: ge
211
+ }, he = ["default", "cjb", "ssl", "dkh"], H = {
212
+ default: pe,
213
+ cjb: se,
214
+ ssl: be,
215
+ dkh: de
216
+ }, ye = (e) => ({ ...e }), X = (e) => ({
188
217
  ...e,
189
- variables: ae(e.variables)
190
- }), y = (e) => {
218
+ variables: ye(e.variables)
219
+ }), g = (e) => {
191
220
  const r = String(e || "").trim();
192
- return _[r] ? I(_[r]) : void 0;
193
- }, ue = () => oe.map((e) => I(_[e])), A = "themeChange", p = "#ffffff", d = "#000000", v = "upf-theme-root-vars", fe = "upf-default-theme-vars", le = ["--upf-color-primary", "--upf-brand-primary"], D = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakSet(), b = /* @__PURE__ */ new WeakMap(), x = (e) => e ? Object.entries(h(e)).reduce((r, [t, a]) => (r[t] = String(a ?? ""), r), {}) : null, h = (e) => e, o = (e, r) => {
194
- const t = h(e);
221
+ return H[r] ? X(H[r]) : void 0;
222
+ }, ve = () => he.map((e) => X(H[e])), j = "themeChange", E = "upf-theme-root-vars", xe = "upf-default-theme-vars", T = "upf-theme-config", Ee = ["--upf-color-primary", "--upf-brand-primary"], $ = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakSet(), h = /* @__PURE__ */ new WeakMap(), x = (e) => e ? Object.entries(D(e)).reduce((r, [t, o]) => (r[t] = String(o ?? ""), r), {}) : null, D = (e) => e, a = (e, r) => {
223
+ const t = D(e);
195
224
  return String((r ? t[r] : "") ?? "");
196
- }, n = (e, r) => r.map((t) => ({ target: t, from: e })), P = (e) => {
197
- const r = String(e || "").trim();
198
- return /^#([\da-f]{3}|[\da-f]{6})$/i.test(r) ? r.length === 4 ? `#${r.slice(1).split("").map((t) => `${t}${t}`).join("")}` : r : "";
199
- }, k = (e) => {
200
- const r = P(e);
201
- if (!r)
202
- return null;
203
- const t = r.slice(1);
204
- return {
205
- red: Number.parseInt(t.slice(0, 2), 16),
206
- green: Number.parseInt(t.slice(2, 4), 16),
207
- blue: Number.parseInt(t.slice(4, 6), 16)
208
- };
209
- }, w = (e) => Math.min(255, Math.max(0, Math.round(e))), ne = (e, r, t, a) => {
210
- const u = k(e), f = k(r);
211
- if (!u || !f)
212
- return a;
213
- const l = Math.min(1, Math.max(0, t)), s = w(u.red * l + f.red * (1 - l)), i = w(u.green * l + f.green * (1 - l)), c = w(u.blue * l + f.blue * (1 - l));
214
- return `#${[s, i, c].map((m) => m.toString(16).padStart(2, "0")).join("")}`;
215
- }, ie = (e, r, t) => {
216
- const a = k(e);
217
- if (!a)
218
- return t;
219
- const u = Math.min(1, Math.max(0, r));
220
- return `rgba(${a.red}, ${a.green}, ${a.blue}, ${u})`;
221
- }, se = {
225
+ }, s = (e, r) => r.map((t) => ({ target: t, from: e })), R = (e) => {
226
+ var o;
227
+ const r = D(e), t = Object.entries(r).reduce((u, [f, n]) => (u[f] = String(n ?? ""), u), {});
228
+ return (o = t["--upf-color-primary-bg"]) != null && o.trim() || (t["--upf-color-primary-bg"] = y(
229
+ t["--upf-color-primary"],
230
+ t["--upf-bg-primary"] || p
231
+ )), t;
232
+ }, Te = {
222
233
  "#5582f3": "#3761CA",
223
234
  "#e63946": "#C9303C"
224
- }, V = (e, r) => {
235
+ }, W = (e, r) => {
225
236
  const t = e || "#5582F3";
226
- return se[P(t).toLowerCase()] || r(t, d, 0.84, "#3761CA");
227
- }, E = (e, r) => r.reduce((t, a) => {
228
- const u = a.resolve ? a.resolve({ variables: e, result: t, mixHexColor: ne, toRgbaColor: ie }) : a.from ? o(e, String(a.from)) : String(a.value ?? "");
229
- return t[a.target] = String(u ?? ""), t;
230
- }, {}), ce = [
237
+ return Te[q(t).toLowerCase()] || r(t, d, 0.84, "#3761CA");
238
+ }, Ce = "#999", Se = (e) => [e.themeName, e.basePresetName].some((r) => String(r || "").trim() === "dkh"), Fe = (e) => Se(e) ? Ce : a(e.variables, "--upf-color-primary"), we = (e) => Array.isArray(e) ? [...e] : [e], C = (e, r, t = {}) => r.reduce((o, u) => {
239
+ const f = u.resolve ? u.resolve({ variables: e, result: o, mixHexColor: J, toRgbaColor: le, ...t }) : u.from ? a(e, String(u.from)) : String(u.value ?? "");
240
+ return we(u.target).forEach((n) => {
241
+ o[n] = String(f ?? "");
242
+ }), o;
243
+ }, {}), _e = [
231
244
  { target: "--upf-primary", from: "--upf-color-primary" },
232
245
  { target: "--upf-text", from: "--upf-text-primary" },
233
246
  { target: "--upf-surface", from: "--upf-bg-primary" },
@@ -237,7 +250,7 @@ const J = {
237
250
  { target: "--upf-menu-item-hover-bg", from: "--upf-menu-hover-bg" },
238
251
  { target: "--upf-menu-item-active-bg", from: "--upf-menu-active-bg" },
239
252
  { target: "--upf-menu-item-active-text", from: "--upf-menu-active-text" }
240
- ], pe = [
253
+ ], Ne = [
241
254
  { target: "--el-color-primary", from: "--upf-color-primary" },
242
255
  { target: "--el-color-success", from: "--upf-color-success" },
243
256
  { target: "--el-color-warning", from: "--upf-color-warning" },
@@ -268,15 +281,15 @@ const J = {
268
281
  { target: "--el-checkbox-checked-icon-color", value: p },
269
282
  {
270
283
  target: "--el-checkbox-input-border",
271
- resolve: ({ variables: e }) => `1px solid ${o(e, "--upf-border-color")}`
284
+ resolve: ({ variables: e }) => `1px solid ${a(e, "--upf-border-color")}`
272
285
  }
273
- ], de = [
286
+ ], Ae = [
274
287
  { target: "--das-ui-color-primary-level1", from: "--upf-color-primary-bg" },
275
- ...n("--upf-color-primary-bg", [
288
+ ...s("--upf-color-primary-bg", [
276
289
  "--das-ui-color-primary-level1",
277
290
  "--das-ui-upload-bgcolor-hover"
278
291
  ]),
279
- ...n("--upf-bg-primary", [
292
+ ...s("--upf-bg-primary", [
280
293
  "--das-black-list-mange-color-white"
281
294
  ]),
282
295
  { target: "--das-ui-color-primary", from: "--upf-color-primary" },
@@ -304,7 +317,7 @@ const J = {
304
317
  { target: "--das-ui-rich-editor-active-font-color", from: "--upf-color-primary" },
305
318
  {
306
319
  target: "--das-ui-dropdown-bgff-color",
307
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
320
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
308
321
  },
309
322
  { target: "--das-ui-dropdown-divided-color", from: "--upf-border-color" },
310
323
  { target: "--das-ui-dropdown-active-color", from: "--upf-color-primary" },
@@ -325,8 +338,8 @@ const J = {
325
338
  {
326
339
  target: "--das-ui-special-range-picker-in-range",
327
340
  resolve: ({ variables: e, mixHexColor: r }) => r(
328
- o(e, "--upf-color-primary"),
329
- o(e, "--upf-bg-primary"),
341
+ a(e, "--upf-color-primary"),
342
+ a(e, "--upf-bg-primary"),
330
343
  0.08,
331
344
  "#F2F6FF"
332
345
  )
@@ -334,8 +347,8 @@ const J = {
334
347
  {
335
348
  target: "--das-ui-special-range-picker-new-range",
336
349
  resolve: ({ variables: e, mixHexColor: r }) => r(
337
- o(e, "--upf-color-primary"),
338
- o(e, "--upf-bg-primary"),
350
+ a(e, "--upf-color-primary"),
351
+ a(e, "--upf-bg-primary"),
339
352
  0.14,
340
353
  "#E3EBFF"
341
354
  )
@@ -352,7 +365,10 @@ const J = {
352
365
  { target: "--das-ui-table-required-color", from: "--upf-color-error" },
353
366
  { target: "--das-ui-form-error-label-color", from: "--upf-color-error" },
354
367
  { target: "--das-input-base-border-color", from: "--upf-border-color" },
355
- { target: "--das-input-active-border-color", from: "--upf-color-primary" },
368
+ {
369
+ target: ["--upf-form-active-border-color", "--das-input-active-border-color", "--upf-date-picker-active-border-color"],
370
+ resolve: Fe
371
+ },
356
372
  { target: "--das-input-font-color", from: "--upf-text-primary" },
357
373
  { target: "--das-input-sub-font-color", from: "--upf-text-placeholder" },
358
374
  { target: "--das-input-disabled-bg-color", from: "--upf-bg-secondary" },
@@ -365,6 +381,8 @@ const J = {
365
381
  { target: "--das-user-manage-white", value: p },
366
382
  { target: "--das-user-manage-shadow-color", value: "rgba(38, 38, 38, 0.1)" },
367
383
  { target: "--das-user-manage-border-color", value: "rgba(38, 38, 38, 0.1)" },
384
+ { target: "--das-layout-micro-container-bg-color", value: "#e2e7ef" },
385
+ { target: "--das-layout-breadcrumb-bg-color", value: "#ffffff" },
368
386
  { target: "--das-ui-font-size-sm", value: "12px" },
369
387
  { target: "--das-ui-font-size-md", value: "14px" },
370
388
  { target: "--das-ui-font-size-lg", value: "16px" },
@@ -388,7 +406,7 @@ const J = {
388
406
  { target: "--das-ui-steps-title-font-size", value: "12px" },
389
407
  {
390
408
  target: "--das-ui-collaspe-bgcolor",
391
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
409
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
392
410
  },
393
411
  { target: "--das-ui-calendar-color-text", value: "#212121" },
394
412
  { target: "--das-ui-calendar-color-border", value: "#D9D9D9" },
@@ -400,8 +418,8 @@ const J = {
400
418
  {
401
419
  target: "--das-ui-color-primary-level2",
402
420
  resolve: ({ variables: e, mixHexColor: r }) => r(
403
- o(e, "--upf-color-primary"),
404
- o(e, "--upf-bg-primary"),
421
+ a(e, "--upf-color-primary"),
422
+ a(e, "--upf-bg-primary"),
405
423
  0.16,
406
424
  "#E0EFFE"
407
425
  )
@@ -409,8 +427,8 @@ const J = {
409
427
  {
410
428
  target: "--das-ui-color-primary-level3",
411
429
  resolve: ({ variables: e, mixHexColor: r }) => r(
412
- o(e, "--upf-color-primary"),
413
- o(e, "--upf-bg-primary"),
430
+ a(e, "--upf-color-primary"),
431
+ a(e, "--upf-bg-primary"),
414
432
  0.32,
415
433
  "#B3D5FF"
416
434
  )
@@ -418,8 +436,8 @@ const J = {
418
436
  {
419
437
  target: "--das-ui-color-primary-level4",
420
438
  resolve: ({ variables: e, mixHexColor: r }) => r(
421
- o(e, "--upf-color-primary"),
422
- o(e, "--upf-bg-primary"),
439
+ a(e, "--upf-color-primary"),
440
+ a(e, "--upf-bg-primary"),
423
441
  0.48,
424
442
  "#85B8FE"
425
443
  )
@@ -427,29 +445,29 @@ const J = {
427
445
  {
428
446
  target: "--das-ui-color-primary-level5",
429
447
  resolve: ({ variables: e, mixHexColor: r }) => r(
430
- o(e, "--upf-color-primary"),
431
- o(e, "--upf-bg-primary"),
448
+ a(e, "--upf-color-primary"),
449
+ a(e, "--upf-bg-primary"),
432
450
  0.68,
433
451
  "#5797FF"
434
452
  )
435
453
  },
436
454
  {
437
455
  target: "--das-ui-color-primary-level7",
438
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
456
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.82, "#104CCC")
439
457
  },
440
458
  {
441
459
  target: "--das-ui-color-primary-level8",
442
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.68, "#002EA3")
460
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.68, "#002EA3")
443
461
  },
444
462
  {
445
463
  target: "--das-ui-color-primary-level9",
446
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.5, "#001F7A")
464
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.5, "#001F7A")
447
465
  },
448
466
  {
449
467
  target: "--das-ui-color-danger-level1",
450
468
  resolve: ({ variables: e, mixHexColor: r }) => r(
451
- o(e, "--upf-color-error"),
452
- o(e, "--upf-bg-primary"),
469
+ a(e, "--upf-color-error"),
470
+ a(e, "--upf-bg-primary"),
453
471
  0.14,
454
472
  "#FFDBE0"
455
473
  )
@@ -457,8 +475,8 @@ const J = {
457
475
  {
458
476
  target: "--das-ui-color-danger-level2",
459
477
  resolve: ({ variables: e, mixHexColor: r }) => r(
460
- o(e, "--upf-color-error"),
461
- o(e, "--upf-bg-primary"),
478
+ a(e, "--upf-color-error"),
479
+ a(e, "--upf-bg-primary"),
462
480
  0.08,
463
481
  "#FFF2F4"
464
482
  )
@@ -466,8 +484,8 @@ const J = {
466
484
  {
467
485
  target: "--das-ui-color-warning-level1",
468
486
  resolve: ({ variables: e, mixHexColor: r }) => r(
469
- o(e, "--upf-color-warning"),
470
- o(e, "--upf-bg-primary"),
487
+ a(e, "--upf-color-warning"),
488
+ a(e, "--upf-bg-primary"),
471
489
  0.08,
472
490
  "#FFFBF2"
473
491
  )
@@ -475,8 +493,8 @@ const J = {
475
493
  {
476
494
  target: "--das-ui-color-warning-level2",
477
495
  resolve: ({ variables: e, mixHexColor: r }) => r(
478
- o(e, "--upf-color-warning"),
479
- o(e, "--upf-bg-primary"),
496
+ a(e, "--upf-color-warning"),
497
+ a(e, "--upf-bg-primary"),
480
498
  0.16,
481
499
  "#FFF1D4"
482
500
  )
@@ -484,8 +502,8 @@ const J = {
484
502
  {
485
503
  target: "--das-ui-color-success-level1",
486
504
  resolve: ({ variables: e, mixHexColor: r }) => r(
487
- o(e, "--upf-color-success"),
488
- o(e, "--upf-bg-primary"),
505
+ a(e, "--upf-color-success"),
506
+ a(e, "--upf-bg-primary"),
489
507
  0.08,
490
508
  "#F2FFF5"
491
509
  )
@@ -493,8 +511,8 @@ const J = {
493
511
  {
494
512
  target: "--das-ui-color-success-level2",
495
513
  resolve: ({ variables: e, mixHexColor: r }) => r(
496
- o(e, "--upf-color-success"),
497
- o(e, "--upf-bg-primary"),
514
+ a(e, "--upf-color-success"),
515
+ a(e, "--upf-bg-primary"),
498
516
  0.16,
499
517
  "#DCFAE4"
500
518
  )
@@ -502,30 +520,30 @@ const J = {
502
520
  {
503
521
  target: "--das-ui-color-amount",
504
522
  resolve: ({ variables: e, mixHexColor: r }) => r(
505
- o(e, "--upf-color-warning"),
506
- o(e, "--upf-color-error"),
523
+ a(e, "--upf-color-warning"),
524
+ a(e, "--upf-color-error"),
507
525
  0.55,
508
526
  "#FF5F1F"
509
527
  )
510
528
  },
511
529
  {
512
530
  target: "--das-ui-button-primary-hover",
513
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), d, 0.82, "#104CCC")
531
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), d, 0.82, "#104CCC")
514
532
  },
515
- ...n("--upf-color-primary", [
533
+ ...s("--upf-color-primary", [
516
534
  "--das-ui-search-form-primary-color"
517
535
  ]),
518
- ...n("--upf-text-primary", [
536
+ ...s("--upf-text-primary", [
519
537
  "--das-ui-tag-list-text-color"
520
538
  ]),
521
- ...n("--upf-border-color", [
539
+ ...s("--upf-border-color", [
522
540
  "--das-ui-tag-list-border-color",
523
541
  "--das-ui-upload-border-color"
524
542
  ]),
525
- ...n("--upf-bg-secondary", [
543
+ ...s("--upf-bg-secondary", [
526
544
  "--das-ui-upload-bgcolor"
527
545
  ]),
528
- ...n("--upf-text-secondary", [
546
+ ...s("--upf-text-secondary", [
529
547
  "--das-ui-search-form-tip-color"
530
548
  ]),
531
549
  { target: "--das-ui-layout-header-menu-border-color", from: "--upf-border-color" },
@@ -537,17 +555,17 @@ const J = {
537
555
  { target: "--das-ui-layout-header-menu-active-color", from: "--upf-nav-active-text" },
538
556
  {
539
557
  target: "--das-ui-layout-header-menu-remove-btn-color",
540
- resolve: ({ variables: e, toRgbaColor: r }) => r(o(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
558
+ resolve: ({ variables: e, toRgbaColor: r }) => r(a(e, "--upf-nav-text"), 0.72, "rgba(170, 170, 172, 0.72)")
541
559
  },
542
560
  { target: "--das-ui-layout-header-menu-remove-btn-hover-color", from: "--upf-nav-active-text" },
543
561
  {
544
562
  target: "--das-ui-layout-header-icon-color",
545
- resolve: ({ variables: e }) => o(e, "--upf-nav-text") || o(e, "--upf-text-secondary")
563
+ resolve: ({ variables: e }) => a(e, "--upf-nav-text") || a(e, "--upf-text-secondary")
546
564
  },
547
565
  {
548
566
  target: "--das-ui-layout-header-left-box-line",
549
567
  resolve: ({ variables: e, toRgbaColor: r }) => r(
550
- o(e, "--upf-nav-text") || o(e, "--upf-text-secondary"),
568
+ a(e, "--upf-nav-text") || a(e, "--upf-text-secondary"),
551
569
  0.28,
552
570
  "#CCCCCC"
553
571
  )
@@ -578,37 +596,37 @@ const J = {
578
596
  { target: "--das-ui-layout-aside-menu-expired-color", from: "--upf-text-disabled" },
579
597
  { target: "--das-ui-layout-aside-menu-top-left-icon-color", from: "--upf-color-primary" },
580
598
  { target: "--das-ui-layout-aside-menu-top-right-icon-color", from: "--upf-text-secondary" }
581
- ], me = [
599
+ ], ke = [
582
600
  // 同源变量集中维护,新增 target 时优先追加到对应 source 分组。
583
- ...n("--upf-color-primary", [
601
+ ...s("--upf-color-primary", [
584
602
  "--upf-button-primary",
585
603
  "--upf-notification-primary-bg"
586
604
  ]),
587
- ...n("--upf-text-primary", [
605
+ ...s("--upf-text-primary", [
588
606
  "--upf-button-default-text",
589
607
  "--upf-notification-title-text",
590
608
  "--upf-text-tooltip-text"
591
609
  ]),
592
- ...n("--upf-border-color", [
610
+ ...s("--upf-border-color", [
593
611
  "--upf-button-default-border",
594
612
  "--upf-text-tooltip-border"
595
613
  ]),
596
- ...n("--upf-text-disabled", [
614
+ ...s("--upf-text-disabled", [
597
615
  "--upf-button-default-disabled",
598
616
  "--upf-switch-off-color",
599
617
  "--upf-message-thumb",
600
618
  "--upf-text-tooltip-scrollbar-thumb"
601
619
  ]),
602
- ...n("--upf-bg-secondary", [
620
+ ...s("--upf-bg-secondary", [
603
621
  "--upf-button-default-disabled-bg",
604
622
  "--upf-table-header-bg"
605
623
  ]),
606
- ...n("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
607
- ...n("--upf-color-info", ["--upf-loading-color-1"]),
608
- ...n("--upf-brand-secondary", ["--upf-loading-color-2"]),
609
- ...n("--upf-color-success", ["--upf-loading-color-3"]),
610
- ...n("--upf-divider-color", ["--upf-loading-color-6"]),
611
- ...n("--upf-text-secondary", [
624
+ ...s("--upf-bg-primary", ["--upf-checkbox-filter-bg"]),
625
+ ...s("--upf-color-info", ["--upf-loading-color-1"]),
626
+ ...s("--upf-brand-secondary", ["--upf-loading-color-2"]),
627
+ ...s("--upf-color-success", ["--upf-loading-color-3"]),
628
+ ...s("--upf-divider-color", ["--upf-loading-color-6"]),
629
+ ...s("--upf-text-secondary", [
612
630
  "--upf-message-close",
613
631
  "--upf-notification-description-text",
614
632
  "--upf-notification-close",
@@ -637,45 +655,45 @@ const J = {
637
655
  { target: "--upf-text-tooltip-scrollbar-padding", value: "1px" },
638
656
  {
639
657
  target: "--upf-button-primary-hover",
640
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF")
658
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", p, 0.82, "#87A9FF")
641
659
  },
642
660
  {
643
661
  target: "--upf-button-active",
644
- resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
662
+ resolve: ({ variables: e, mixHexColor: r }) => W(a(e, "--upf-color-primary"), r)
645
663
  },
646
664
  {
647
665
  target: "--upf-button-disabled",
648
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF")
666
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", p, 0.3, "#B5CAFF")
649
667
  },
650
668
  {
651
669
  target: "--upf-button-set",
652
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
670
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", d, 0.78, "#4367C1")
653
671
  },
654
672
  {
655
673
  target: "--upf-button-set-hover",
656
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
674
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary") || "#5582F3", d, 0.86, "#4C74DA")
657
675
  },
658
676
  {
659
677
  target: "--upf-button-set-active",
660
- resolve: ({ variables: e, mixHexColor: r }) => V(o(e, "--upf-color-primary"), r)
678
+ resolve: ({ variables: e, mixHexColor: r }) => W(a(e, "--upf-color-primary"), r)
661
679
  },
662
680
  {
663
681
  target: "--upf-button-set-disabled",
664
682
  resolve: ({ variables: e, mixHexColor: r, result: t }) => r(
665
- t["--upf-button-set"] || o(e, "--upf-color-primary") || "#5582F3",
666
- o(e, "--upf-bg-primary"),
683
+ t["--upf-button-set"] || a(e, "--upf-color-primary") || "#5582F3",
684
+ a(e, "--upf-bg-primary"),
667
685
  0.55,
668
686
  "#95A4C8"
669
687
  )
670
688
  },
671
689
  {
672
690
  target: "--upf-switch-on-color-disabled",
673
- resolve: ({ variables: e, mixHexColor: r }) => r(o(e, "--upf-color-primary"), p, 0.32, "#B5CAFF")
691
+ resolve: ({ variables: e, mixHexColor: r }) => r(a(e, "--upf-color-primary"), p, 0.32, "#B5CAFF")
674
692
  },
675
693
  {
676
694
  target: "--upf-checkbox-focus-shadow",
677
695
  resolve: ({ variables: e, toRgbaColor: r }) => r(
678
- o(e, "--upf-color-primary") || "#5582F3",
696
+ a(e, "--upf-color-primary") || "#5582F3",
679
697
  0.1,
680
698
  "rgba(85, 130, 243, 0.1)"
681
699
  )
@@ -683,8 +701,8 @@ const J = {
683
701
  {
684
702
  target: "--upf-checkbox-overlay-error-bg",
685
703
  resolve: ({ variables: e, mixHexColor: r }) => r(
686
- o(e, "--upf-color-error"),
687
- o(e, "--upf-bg-primary"),
704
+ a(e, "--upf-color-error"),
705
+ a(e, "--upf-bg-primary"),
688
706
  0.14,
689
707
  "#FFDBE0"
690
708
  )
@@ -692,22 +710,22 @@ const J = {
692
710
  {
693
711
  target: "--upf-loading-color-4",
694
712
  resolve: ({ variables: e, mixHexColor: r }) => r(
695
- o(e, "--upf-brand-secondary"),
696
- o(e, "--upf-color-primary"),
713
+ a(e, "--upf-brand-secondary"),
714
+ a(e, "--upf-color-primary"),
697
715
  0.45,
698
716
  "#A06EFF"
699
717
  )
700
718
  },
701
719
  {
702
720
  target: "--upf-loading-color-5",
703
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
721
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
704
722
  },
705
723
  { target: "--upf-table-row-hover-bg", from: "--upf-bg-secondary" },
706
724
  {
707
725
  target: "--upf-table-row-active-bg",
708
726
  resolve: ({ variables: e, mixHexColor: r }) => r(
709
- o(e, "--upf-color-primary"),
710
- o(e, "--upf-bg-primary"),
727
+ a(e, "--upf-color-primary"),
728
+ a(e, "--upf-bg-primary"),
711
729
  0.08,
712
730
  "#F2F6FF"
713
731
  )
@@ -715,8 +733,8 @@ const J = {
715
733
  {
716
734
  target: "--upf-table-row-active-hover-bg",
717
735
  resolve: ({ variables: e, mixHexColor: r }) => r(
718
- o(e, "--upf-color-primary"),
719
- o(e, "--upf-bg-primary"),
736
+ a(e, "--upf-color-primary"),
737
+ a(e, "--upf-bg-primary"),
720
738
  0.14,
721
739
  "#E3EBFF"
722
740
  )
@@ -724,8 +742,8 @@ const J = {
724
742
  {
725
743
  target: "--upf-table-summary-row-color",
726
744
  resolve: ({ variables: e, mixHexColor: r }) => r(
727
- o(e, "--upf-color-warning"),
728
- o(e, "--upf-color-error"),
745
+ a(e, "--upf-color-warning"),
746
+ a(e, "--upf-color-error"),
729
747
  0.55,
730
748
  "#FF5F1F"
731
749
  )
@@ -733,8 +751,8 @@ const J = {
733
751
  {
734
752
  target: "--upf-table-summary-row-bg",
735
753
  resolve: ({ variables: e, mixHexColor: r }) => r(
736
- o(e, "--upf-color-warning"),
737
- o(e, "--upf-bg-primary"),
754
+ a(e, "--upf-color-warning"),
755
+ a(e, "--upf-bg-primary"),
738
756
  0.18,
739
757
  "#FFF1D4"
740
758
  )
@@ -742,47 +760,47 @@ const J = {
742
760
  {
743
761
  target: "--upf-message-bg",
744
762
  resolve: ({ variables: e, mixHexColor: r }) => r(
745
- o(e, "--upf-color-info"),
746
- o(e, "--upf-bg-primary"),
763
+ a(e, "--upf-color-info"),
764
+ a(e, "--upf-bg-primary"),
747
765
  0.14,
748
766
  "#E0EFFF"
749
767
  )
750
768
  },
751
769
  {
752
770
  target: "--upf-message-text",
753
- resolve: ({ variables: e }) => o(e, "--upf-color-info") || o(e, "--upf-color-primary") || "#0E5FD8"
771
+ resolve: ({ variables: e }) => a(e, "--upf-color-info") || a(e, "--upf-color-primary") || "#0E5FD8"
754
772
  },
755
773
  {
756
774
  target: "--upf-message-border",
757
775
  resolve: ({ variables: e, mixHexColor: r }) => r(
758
- o(e, "--upf-color-info"),
759
- o(e, "--upf-bg-primary"),
776
+ a(e, "--upf-color-info"),
777
+ a(e, "--upf-bg-primary"),
760
778
  0.32,
761
779
  "#B3D5FF"
762
780
  )
763
781
  },
764
782
  {
765
783
  target: "--upf-message-close-hover",
766
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
784
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
767
785
  },
768
786
  {
769
787
  target: "--upf-message-success-bg",
770
788
  resolve: ({ variables: e, mixHexColor: r }) => r(
771
- o(e, "--upf-color-success"),
772
- o(e, "--upf-bg-primary"),
789
+ a(e, "--upf-color-success"),
790
+ a(e, "--upf-bg-primary"),
773
791
  0.16,
774
792
  "#DCFAE4"
775
793
  )
776
794
  },
777
795
  {
778
796
  target: "--upf-message-success-text",
779
- resolve: ({ variables: e }) => o(e, "--upf-color-success") || "#1BA854"
797
+ resolve: ({ variables: e }) => a(e, "--upf-color-success") || "#1BA854"
780
798
  },
781
799
  {
782
800
  target: "--upf-message-success-border",
783
801
  resolve: ({ variables: e, mixHexColor: r }) => r(
784
- o(e, "--upf-color-success"),
785
- o(e, "--upf-bg-primary"),
802
+ a(e, "--upf-color-success"),
803
+ a(e, "--upf-bg-primary"),
786
804
  0.32,
787
805
  "#A1E6B5"
788
806
  )
@@ -802,21 +820,21 @@ const J = {
802
820
  {
803
821
  target: "--upf-message-warning-bg",
804
822
  resolve: ({ variables: e, mixHexColor: r }) => r(
805
- o(e, "--upf-color-warning"),
806
- o(e, "--upf-bg-primary"),
823
+ a(e, "--upf-color-warning"),
824
+ a(e, "--upf-bg-primary"),
807
825
  0.16,
808
826
  "#FFF1D4"
809
827
  )
810
828
  },
811
829
  {
812
830
  target: "--upf-message-warning-text",
813
- resolve: ({ variables: e }) => o(e, "--upf-color-warning") || "#FF991C"
831
+ resolve: ({ variables: e }) => a(e, "--upf-color-warning") || "#FF991C"
814
832
  },
815
833
  {
816
834
  target: "--upf-message-warning-border",
817
835
  resolve: ({ variables: e, mixHexColor: r }) => r(
818
- o(e, "--upf-color-warning"),
819
- o(e, "--upf-bg-primary"),
836
+ a(e, "--upf-color-warning"),
837
+ a(e, "--upf-bg-primary"),
820
838
  0.32,
821
839
  "#FFE0A6"
822
840
  )
@@ -824,36 +842,36 @@ const J = {
824
842
  {
825
843
  target: "--upf-message-error-bg",
826
844
  resolve: ({ variables: e, mixHexColor: r }) => r(
827
- o(e, "--upf-color-error"),
828
- o(e, "--upf-bg-primary"),
845
+ a(e, "--upf-color-error"),
846
+ a(e, "--upf-bg-primary"),
829
847
  0.14,
830
848
  "#FFDBE0"
831
849
  )
832
850
  },
833
851
  {
834
852
  target: "--upf-message-error-text",
835
- resolve: ({ variables: e }) => o(e, "--upf-color-error") || "#FB2323"
853
+ resolve: ({ variables: e }) => a(e, "--upf-color-error") || "#FB2323"
836
854
  },
837
855
  {
838
856
  target: "--upf-message-error-border",
839
857
  resolve: ({ variables: e, mixHexColor: r }) => r(
840
- o(e, "--upf-color-error"),
841
- o(e, "--upf-bg-primary"),
858
+ a(e, "--upf-color-error"),
859
+ a(e, "--upf-bg-primary"),
842
860
  0.32,
843
861
  "#FFADB6"
844
862
  )
845
863
  },
846
864
  {
847
865
  target: "--upf-notification-bg",
848
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
866
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
849
867
  },
850
868
  {
851
869
  target: "--upf-notification-close-hover",
852
- resolve: ({ variables: e }) => o(e, "--upf-color-primary") || "#5582F3"
870
+ resolve: ({ variables: e }) => a(e, "--upf-color-primary") || "#5582F3"
853
871
  },
854
872
  {
855
873
  target: "--upf-text-tooltip-bg",
856
- resolve: ({ variables: e }) => o(e, "--upf-bg-elevated") || o(e, "--upf-bg-primary")
874
+ resolve: ({ variables: e }) => a(e, "--upf-bg-elevated") || a(e, "--upf-bg-primary")
857
875
  },
858
876
  {
859
877
  target: "--upf-text-tooltip-shadow-color",
@@ -861,258 +879,345 @@ const J = {
861
879
  },
862
880
  { target: "--upf-app-container-app-bg-override", from: "--upf-nav-bg" },
863
881
  { target: "--upf-app-container-app-text-override", from: "--upf-nav-text" }
864
- ], ge = (e) => E(e, ce), be = (e) => E(e, pe), xe = (e) => E(e, de), ve = (e) => E(e, me), O = (e, r = {}) => {
865
- const t = h(e), { includeElementAndDasUiBridges: a = !0 } = r, u = ve(t), f = {
882
+ ], Be = (e, r = {}) => C(e, _e, r), He = (e, r = {}) => C(e, Ne, r), De = (e, r = {}) => C(e, Ae, r), Re = (e, r = {}) => C(e, ke, r), V = (e, r = {}) => {
883
+ const t = R(e), { includeElementAndDasUiBridges: o = !0, themeName: u, basePresetName: f } = r, n = { themeName: u, basePresetName: f }, l = Re(t, n), i = {
866
884
  ...t,
867
- ...u
885
+ ...l
868
886
  };
869
887
  return {
870
888
  ...t,
871
- ...u,
872
- ...a ? be(f) : {},
873
- ...a ? xe(f) : {},
874
- ...ge(f)
889
+ ...l,
890
+ ...o ? He(i, n) : {},
891
+ ...o ? De(i, n) : {},
892
+ ...Be(i, n)
875
893
  };
876
- }, Le = (e) => y(e), Ue = () => ue(), H = () => y("default"), ze = () => ({ ...H().variables }), B = (e) => e || (typeof document > "u" ? null : document.documentElement), L = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), C = (e) => e.head || e.documentElement, U = (e, r) => {
877
- const t = C(e);
894
+ }, nr = (e) => g(e), lr = () => ve(), S = () => g("default"), ir = () => ({ ...S().variables }), P = (e) => e || (typeof document > "u" ? null : document.documentElement), Q = (e) => !!(e && String(e.tagName || "").toLowerCase() === "style"), F = (e) => e.head || e.documentElement, Z = (e, r) => {
895
+ const t = F(e);
878
896
  t && (r.parentNode !== t || t.lastElementChild !== r) && t.appendChild(r);
879
- }, M = (e) => {
897
+ }, G = (e) => {
880
898
  var u;
881
- if (N.has(e))
899
+ if (K.has(e))
882
900
  return;
883
- const r = C(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
901
+ const r = F(e), t = ((u = e.defaultView) == null ? void 0 : u.MutationObserver) || (typeof MutationObserver < "u" ? MutationObserver : void 0);
884
902
  if (!r || !t)
885
903
  return;
886
904
  new t(() => {
887
- const f = e.getElementById(v);
888
- L(f) && U(e, f);
889
- }).observe(r, { childList: !0 }), N.add(e);
890
- }, ye = (e) => {
891
- const r = e.getElementById(v);
892
- if (L(r))
893
- return U(e, r), M(e), r;
905
+ const f = e.getElementById(E);
906
+ Q(f) && Z(e, f);
907
+ }).observe(r, { childList: !0 }), K.add(e);
908
+ }, Ve = (e) => {
909
+ const r = e.getElementById(E);
910
+ if (Q(r))
911
+ return Z(e, r), G(e), r;
894
912
  const t = e.createElement("style");
895
- return t.id = v, C(e).appendChild(t), M(e), t;
896
- }, z = (e) => {
897
- const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, a]) => ` ${t}: ${String(a ?? "")};`).join(`
913
+ return t.id = E, F(e).appendChild(t), G(e), t;
914
+ }, M = (e) => {
915
+ const r = Object.entries(e).filter(([, t]) => String(t ?? "").trim()).map(([t, o]) => ` ${t}: ${String(o ?? "")};`).join(`
898
916
  `);
899
917
  return r ? `:root {
900
918
  ${r}
901
919
  }` : ":root {}";
902
- }, $ = (e = "default", r = {}) => {
903
- const t = y(e) || H();
904
- return z(O(t.variables, r));
905
- }, $e = (e = {}) => $("default", e), he = (e) => {
906
- const r = e.getElementById(v);
920
+ }, Pe = (e = "default", r = {}) => {
921
+ const t = g(e) || S();
922
+ return M(V(t.variables, {
923
+ ...r,
924
+ themeName: r.themeName || t.name,
925
+ basePresetName: r.basePresetName || t.basePresetName
926
+ }));
927
+ }, sr = (e = {}) => Pe("default", e), Me = (e) => {
928
+ const r = e.getElementById(E);
907
929
  if (r != null && r.textContent)
908
930
  return !0;
909
- const t = b.get(e) || b.get(e.documentElement);
931
+ const t = h.get(e) || h.get(e.documentElement);
910
932
  return !!(t && Object.keys(t).length);
911
- }, Ee = (e) => {
912
- var a;
913
- const r = ((a = e.defaultView) == null ? void 0 : a.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
933
+ }, Ie = (e) => {
934
+ var o;
935
+ const r = ((o = e.defaultView) == null ? void 0 : o.getComputedStyle) || (typeof getComputedStyle == "function" ? getComputedStyle : void 0);
914
936
  if (!r || !e.documentElement)
915
937
  return !1;
916
938
  const t = r(e.documentElement);
917
- return le.some((u) => t.getPropertyValue(u).trim());
918
- }, Ce = (e, r) => {
919
- const t = C(e);
939
+ return Ee.some((u) => t.getPropertyValue(u).trim());
940
+ }, I = (e) => Object.prototype.toString.call(e) === "[object Object]", w = (e) => ({
941
+ themeName: e.name,
942
+ basePresetName: e.basePresetName,
943
+ variables: e.variables
944
+ }), v = () => w(S()), ee = (e) => {
945
+ if (typeof window > "u")
946
+ return null;
947
+ try {
948
+ const r = window.localStorage.getItem(e);
949
+ if (!r)
950
+ return null;
951
+ const t = JSON.parse(r);
952
+ return I(t) ? t : null;
953
+ } catch {
954
+ return null;
955
+ }
956
+ }, Oe = (e, r) => {
957
+ if (!I(e))
958
+ return null;
959
+ const t = { ...r };
960
+ return Object.entries(e).forEach(([o, u]) => {
961
+ !o.startsWith("--") || typeof u != "string" && typeof u != "number" || (t[o] = String(u));
962
+ }), R(t);
963
+ }, re = (e) => {
964
+ const r = I(e.customTheme) ? e.customTheme : null;
965
+ if (!r)
966
+ return null;
967
+ const t = String(r.basePresetName || e.remoteTheme || "").trim(), o = g(t) || S(), u = Oe(r.variables, o.variables);
968
+ return u ? {
969
+ themeName: "custom",
970
+ basePresetName: o.name,
971
+ variables: u
972
+ } : null;
973
+ }, Le = (e) => {
974
+ if (!e.useStoredTheme)
975
+ return null;
976
+ const r = String(e.storageKey || T).trim() || T, t = ee(r);
977
+ if (!t)
978
+ return null;
979
+ const o = [t.currentTheme, t.remoteTheme];
980
+ for (const u of o) {
981
+ const f = String(u || "").trim();
982
+ if (!f)
983
+ continue;
984
+ if (f === "custom") {
985
+ const l = re(t);
986
+ if (l)
987
+ return l;
988
+ continue;
989
+ }
990
+ const n = g(f);
991
+ if (n)
992
+ return w(n);
993
+ }
994
+ return null;
995
+ }, ze = (e) => {
996
+ const r = e.documentElement, t = [r.getAttribute("data-theme"), r.getAttribute("data-skin")];
997
+ for (const o of t) {
998
+ const u = g(String(o || "").trim());
999
+ if (u)
1000
+ return w(u);
1001
+ }
1002
+ return null;
1003
+ }, Ue = (e, r) => {
1004
+ const t = String(r.presetName || "").trim();
1005
+ if (t) {
1006
+ if (t === "custom") {
1007
+ if (r.useStoredTheme === !1)
1008
+ return v();
1009
+ const u = String(r.storageKey || T).trim() || T, f = ee(u);
1010
+ return (f ? re(f) : null) || v();
1011
+ }
1012
+ const o = g(t);
1013
+ return o ? w(o) : v();
1014
+ }
1015
+ return ze(e) || Le(r) || v();
1016
+ }, je = (e, r) => {
1017
+ const t = F(e);
920
1018
  (r.parentNode !== t || t.firstChild !== r) && t.insertBefore(r, t.firstChild);
921
- }, je = (e = {}) => {
922
- var i;
1019
+ }, cr = (e = {}) => {
1020
+ var m;
923
1021
  if (typeof document > "u")
924
1022
  return null;
925
- const r = ((i = e.root) == null ? void 0 : i.ownerDocument) || document, t = y(e.presetName || "default") || H(), a = e.styleId || fe;
926
- if (!e.force && he(r))
1023
+ const r = ((m = e.root) == null ? void 0 : m.ownerDocument) || document, t = Ue(r, e), o = e.styleId || xe;
1024
+ if (!e.force && Me(r))
927
1025
  return null;
928
- const u = r.getElementById(a);
929
- if (!e.force && !u && Ee(r))
1026
+ const u = r.getElementById(o);
1027
+ if (!e.force && !u && Ie(r))
930
1028
  return null;
931
1029
  const f = u || r.createElement("style");
932
- f.id || (f.id = a);
933
- const l = $(t.name, {
934
- includeElementAndDasUiBridges: e.includeElementAndDasUiBridges
935
- });
936
- f.textContent !== l && (f.textContent = l), Ce(r, f);
937
- const { setThemeAttributes: s = !0 } = e;
938
- return s && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", e.themeName || t.name), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || t.basePresetName)), f;
939
- }, R = (e, r) => {
1030
+ f.id || (f.id = o);
1031
+ const n = e.themeName || t.themeName, l = e.basePresetName || t.basePresetName, i = M(V(t.variables, {
1032
+ includeElementAndDasUiBridges: e.includeElementAndDasUiBridges,
1033
+ themeName: n,
1034
+ basePresetName: l
1035
+ }));
1036
+ f.textContent !== i && (f.textContent = i), je(r, f);
1037
+ const { setThemeAttributes: c = !0 } = e;
1038
+ return c && ((e.themeName || !r.documentElement.getAttribute("data-theme")) && r.documentElement.setAttribute("data-theme", n), e.skinName !== null && !r.documentElement.getAttribute("data-skin") && r.documentElement.setAttribute("data-skin", e.skinName || l)), f;
1039
+ }, Y = (e, r) => {
940
1040
  if (!e.length || !r.length)
941
1041
  return;
942
1042
  const t = new Set(r);
943
- for (let a = e.length - 1; a >= 0; a--) {
944
- const u = e[a];
1043
+ for (let o = e.length - 1; o >= 0; o--) {
1044
+ const u = e[o];
945
1045
  t.has(u) && e.removeProperty(u);
946
1046
  }
947
- }, Te = (e, r) => {
948
- const t = ye(e), a = z(r);
949
- (D.get(e) !== a || t.textContent !== a) && (t.textContent = a, D.set(e, a));
1047
+ }, $e = (e, r) => {
1048
+ const t = Ve(e), o = M(r);
1049
+ ($.get(e) !== o || t.textContent !== o) && (t.textContent = o, $.set(e, o));
950
1050
  const u = Object.keys(r);
951
- R(e.documentElement.style, u), e.body && R(e.body.style, u);
952
- }, Fe = (e) => {
1051
+ Y(e.documentElement.style, u), e.body && Y(e.body.style, u);
1052
+ }, Ke = (e) => {
953
1053
  typeof window > "u" || (window.__UPF_THEME_SNAPSHOT__ = e);
954
- }, we = (e, r) => {
955
- const t = x(r) || {}, a = e.ownerDocument || document;
956
- b.set(e, t);
957
- const u = e === a.documentElement || e === a.body;
958
- u && b.set(a, t), u && typeof window < "u" && a === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
959
- }, Se = (e) => {
960
- const r = B(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), a = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
961
- return (r ? b.get(r) : null) || (t ? b.get(t) : null) || a;
962
- }, _e = (e = !0) => {
1054
+ }, We = (e, r) => {
1055
+ const t = x(r) || {}, o = e.ownerDocument || document;
1056
+ h.set(e, t);
1057
+ const u = e === o.documentElement || e === o.body;
1058
+ u && h.set(o, t), u && typeof window < "u" && o === document && (window.__UPF_THEME_RUNTIME_VARIABLES__ = t);
1059
+ }, Ge = (e) => {
1060
+ const r = P(e), t = (r == null ? void 0 : r.ownerDocument) || (typeof document < "u" ? document : null), o = typeof window < "u" && t === document && window.__UPF_THEME_RUNTIME_VARIABLES__ || null;
1061
+ return (r ? h.get(r) : null) || (t ? h.get(t) : null) || o;
1062
+ }, Ye = (e = !0) => {
963
1063
  var r;
964
1064
  if (typeof window > "u" || !window.name)
965
1065
  return null;
966
1066
  try {
967
- const t = JSON.parse(window.name), a = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
968
- return !(a != null && a.variables) || typeof a.variables != "object" ? null : {
969
- themeName: String(a.themeName || ""),
970
- config: a.config || null,
971
- variables: a.variables,
972
- timestamp: Number(a.timestamp) || Date.now()
1067
+ const t = JSON.parse(window.name), o = (r = t == null ? void 0 : t.parentData) == null ? void 0 : r.theme;
1068
+ return !(o != null && o.variables) || typeof o.variables != "object" ? null : {
1069
+ themeName: String(o.themeName || ""),
1070
+ config: o.config || null,
1071
+ variables: o.variables,
1072
+ timestamp: Number(o.timestamp) || Date.now()
973
1073
  };
974
1074
  } catch {
975
1075
  return null;
976
1076
  }
977
- }, ke = (e, r) => {
1077
+ }, qe = (e, r) => {
978
1078
  if (r !== void 0)
979
1079
  return r;
980
1080
  const t = e.config || {};
981
1081
  return String(t.basePresetName || t.name || e.themeName || "").trim() || null;
982
- }, He = (e, r = {}) => {
983
- const t = B(r.root);
1082
+ }, Je = (e, r = {}) => {
1083
+ const t = P(r.root);
984
1084
  if (!t)
985
1085
  return {};
986
- const a = h(e), u = r.includeBridges === !1 ? Object.entries(a).reduce((l, [s, i]) => (l[s] = String(i ?? ""), l), {}) : O(a, {
987
- includeElementAndDasUiBridges: r.includeElementAndDasUiBridges
1086
+ const o = R(e), u = r.includeBridges === !1 ? Object.entries(o).reduce((n, [l, i]) => (n[l] = String(i ?? ""), n), {}) : V(o, {
1087
+ includeElementAndDasUiBridges: r.includeElementAndDasUiBridges,
1088
+ themeName: r.themeName,
1089
+ basePresetName: r.basePresetName
988
1090
  }), f = t.ownerDocument || document;
989
- return t === f.documentElement || t === f.body ? Te(f, u) : Object.entries(u).forEach(([l, s]) => {
990
- t.style.getPropertyValue(l) !== s && t.style.setProperty(l, s);
991
- }), we(t, u), r.themeName && t.setAttribute("data-theme", r.themeName), r.skinName === null ? t.removeAttribute("data-skin") : r.skinName && t.setAttribute("data-skin", r.skinName), u;
992
- }, j = (e, r = {}) => {
993
- const t = He(e.variables || {}, {
1091
+ return t === f.documentElement || t === f.body ? $e(f, u) : Object.entries(u).forEach(([n, l]) => {
1092
+ t.style.getPropertyValue(n) !== l && t.style.setProperty(n, l);
1093
+ }), We(t, u), r.themeName && t.setAttribute("data-theme", r.themeName), r.skinName === null ? t.removeAttribute("data-skin") : r.skinName && t.setAttribute("data-skin", r.skinName), u;
1094
+ }, te = (e, r = {}) => {
1095
+ const t = e.config || {}, o = Je(e.variables || {}, {
994
1096
  ...r,
995
1097
  themeName: r.themeName || e.themeName,
996
- skinName: ke(e, r.skinName)
1098
+ basePresetName: r.basePresetName || String(t.basePresetName || t.name || ""),
1099
+ skinName: qe(e, r.skinName)
997
1100
  });
998
- return Fe(e), t;
999
- }, S = (e, r, t = !0) => {
1101
+ return Ke(e), o;
1102
+ }, k = (e, r, t = !0) => {
1000
1103
  try {
1001
1104
  return e && e.__THEME_API__ || null;
1002
1105
  } catch {
1003
1106
  return null;
1004
1107
  }
1005
- }, T = (e = !0) => typeof window > "u" ? null : S(window, "current", e) || S(window.parent, "parent", e) || S(window.top, "top", e), W = (e = {}) => {
1006
- const r = T(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1108
+ }, _ = (e = !0) => typeof window > "u" ? null : k(window, "current", e) || k(window.parent, "parent", e) || k(window.top, "top", e), oe = (e = {}) => {
1109
+ const r = _(e.debug), t = r != null && r.getCurrentTheme ? r.getCurrentTheme() : null;
1007
1110
  if (t)
1008
1111
  return t;
1009
- const a = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1010
- return a || _e(e.debug);
1011
- }, Be = (e = {}) => {
1012
- const r = Se(e.root);
1112
+ const o = (typeof window < "u" ? window.__UPF_THEME_SNAPSHOT__ : null) || null;
1113
+ return o || Ye(e.debug);
1114
+ }, Xe = (e = {}) => {
1115
+ const r = Ge(e.root);
1013
1116
  if (r)
1014
1117
  return x(r);
1015
- const t = W(e);
1118
+ const t = oe(e);
1016
1119
  if (t != null && t.variables)
1017
1120
  return x(t.variables);
1018
- const a = T(e.debug);
1019
- if (!a)
1121
+ const o = _(e.debug);
1122
+ if (!o)
1020
1123
  return null;
1021
- const u = a.getVariables ? a.getVariables() : null;
1124
+ const u = o.getVariables ? o.getVariables() : null;
1022
1125
  return x(u);
1023
- }, We = (e, r = !0) => {
1024
- const t = T(r);
1126
+ }, pr = (e, r = !0) => {
1127
+ const t = _(r);
1025
1128
  return t != null && t.changeTheme ? (t.changeTheme(e), !0) : !1;
1026
- }, G = (e = {}) => {
1027
- const r = W(e);
1028
- return r ? (j(r, e), r) : (e.debug, null);
1029
- }, Ge = (e = {}) => G({
1129
+ }, ae = (e = {}) => {
1130
+ const r = oe(e);
1131
+ return r ? (te(r, e), r) : (e.debug, null);
1132
+ }, mr = (e = {}) => ae({
1030
1133
  includeBridges: !1,
1031
1134
  includeElementAndDasUiBridges: !1,
1032
1135
  ...e
1033
- }), Ae = (e, r = !0) => {
1136
+ }), Qe = (e, r = !0) => {
1034
1137
  try {
1035
- const t = q("microApp");
1036
- return t.event.on(A, e), () => {
1037
- t.event.off(A, e);
1138
+ const t = fe("microApp");
1139
+ return t.event.on(j, e), () => {
1140
+ t.event.off(j, e);
1038
1141
  };
1039
1142
  } catch {
1040
1143
  return null;
1041
1144
  }
1042
- }, De = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, Ne = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", Ve = (e) => {
1145
+ }, Ze = (e, r) => e != null && e.onThemeChange ? e.onThemeChange(r) : null, er = (e) => e ? [String(e.themeName || ""), String(e.source || ""), String(Number(e.timestamp) || 0)].join("|") : "", rr = (e) => {
1043
1146
  let r = "";
1044
1147
  return (t) => {
1045
- const a = Ne(t);
1046
- a && a === r || (r = a, e(t));
1148
+ const o = er(t);
1149
+ o && o === r || (r = o, e(t));
1047
1150
  };
1048
- }, Me = (e, r, t = !1, a = !0) => {
1049
- const u = Ve(r), f = De(e, u), l = Ae(u, a), i = (t ? [f, l] : [l, f]).filter(Boolean);
1151
+ }, tr = (e, r, t = !1, o = !0) => {
1152
+ const u = rr(r), f = Ze(e, u), n = Qe(u, o), i = (t ? [f, n] : [n, f]).filter(Boolean);
1050
1153
  return i.length ? () => {
1051
1154
  i.forEach((c) => c());
1052
1155
  } : null;
1053
- }, Re = (e = {}) => {
1054
- const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: a, debug: u = !0, ...f } = e, l = T(u);
1055
- let s = !1, i = null, c = null;
1156
+ }, or = (e = {}) => {
1157
+ const { syncOnInit: r = !0, preferWindowSubscription: t = !1, onThemeChange: o, debug: u = !0, ...f } = e, n = _(u);
1158
+ let l = !1, i = null, c = null;
1056
1159
  const m = () => {
1057
- s || G({ ...f, debug: u });
1058
- }, F = Me(l, (g) => {
1059
- j(g, f), a && (g == null ? void 0 : g.source) !== "mountSync" && a(g);
1160
+ l || ae({ ...f, debug: u });
1161
+ }, N = tr(n, (b) => {
1162
+ te(b, f), o && (b == null ? void 0 : b.source) !== "mountSync" && o(b);
1060
1163
  }, t, u);
1061
- return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (K) => Promise.resolve().then(K))(m), typeof requestAnimationFrame == "function" ? i = requestAnimationFrame(() => {
1164
+ return r && (m(), (typeof queueMicrotask == "function" ? queueMicrotask : (ue) => Promise.resolve().then(ue))(m), typeof requestAnimationFrame == "function" ? i = requestAnimationFrame(() => {
1062
1165
  i = null, m();
1063
1166
  }) : c = setTimeout(() => {
1064
1167
  c = null, m();
1065
1168
  }, 16)), () => {
1066
- s = !0, i !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(i), i = null), c !== null && (clearTimeout(c), c = null), F == null || F();
1169
+ l = !0, i !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(i), i = null), c !== null && (clearTimeout(c), c = null), N == null || N();
1067
1170
  };
1068
- }, Ke = (e = {}) => Re({
1171
+ }, dr = (e = {}) => or({
1069
1172
  includeBridges: !1,
1070
1173
  includeElementAndDasUiBridges: !1,
1071
1174
  ...e
1072
- }), Ie = (e, r) => {
1175
+ }), ar = (e, r) => {
1073
1176
  var f;
1074
- const t = B(r), a = String(e || "").trim();
1075
- if (!t || !a)
1177
+ const t = P(r), o = String(e || "").trim();
1178
+ if (!t || !o)
1076
1179
  return "";
1077
- const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(a).trim();
1078
- return u || String(((f = Be({ root: t, debug: !1 })) == null ? void 0 : f[a]) ?? "");
1079
- }, qe = (e) => `var(${String(e || "").trim()})`, Je = (e, r) => ({
1080
- value: Ie(String(e || "").trim(), r)
1180
+ const u = typeof getComputedStyle > "u" ? "" : getComputedStyle(t).getPropertyValue(o).trim();
1181
+ return u || String(((f = Xe({ root: t, debug: !1 })) == null ? void 0 : f[o]) ?? "");
1182
+ }, gr = (e) => `var(${String(e || "").trim()})`, br = (e, r) => ({
1183
+ value: ar(String(e || "").trim(), r)
1081
1184
  });
1082
1185
  export {
1083
- oe as BUILTIN_PRESET_THEME_NAMES,
1084
- de as DAS_UI_THEME_BRIDGE_ITEMS,
1085
- pe as ELEMENT_THEME_BRIDGE_ITEMS,
1086
- ce as LEGACY_THEME_BRIDGE_ITEMS,
1087
- _ as PRESET_THEMES,
1088
- me as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
1089
- j as applyThemeEventToDocument,
1090
- He as applyThemeVariablesToDocument,
1091
- $e as buildDefaultThemeCssText,
1092
- $ as buildPresetThemeCssText,
1093
- O as buildRuntimeThemeVariables,
1094
- We as changeTheme,
1095
- je as ensureDefaultThemeStyle,
1096
- Ue as getAllPresetThemes,
1097
- W as getCurrentTheme,
1098
- H as getDefaultPresetTheme,
1099
- ze as getDefaultThemeVariables,
1100
- _e as getHostThemeSnapshotFromWindowName,
1101
- Le as getPresetTheme,
1102
- T as getThemeAPI,
1103
- Ie as getThemeVariable,
1104
- Be as getThemeVariables,
1105
- qe as getVar,
1106
- Je as getVarValue,
1107
- Ke as initHostThemeRootSync,
1108
- Re as initSubAppThemeSync,
1109
- ne as mixHexColor,
1110
- E as resolveThemeBridgeVariables,
1111
- Ge as syncHostThemeRoot,
1112
- G as syncThemeFromHost,
1113
- xe as toDasUiColorOverrides,
1114
- be as toElementThemeVariables,
1115
- ge as toLegacyThemeVariables,
1116
- ie as toRgbaColor,
1117
- ve as toUpfComponentThemeVariables
1186
+ he as BUILTIN_PRESET_THEME_NAMES,
1187
+ Ae as DAS_UI_THEME_BRIDGE_ITEMS,
1188
+ Ne as ELEMENT_THEME_BRIDGE_ITEMS,
1189
+ _e as LEGACY_THEME_BRIDGE_ITEMS,
1190
+ H as PRESET_THEMES,
1191
+ ke as UPF_COMPONENT_THEME_BRIDGE_ITEMS,
1192
+ te as applyThemeEventToDocument,
1193
+ Je as applyThemeVariablesToDocument,
1194
+ sr as buildDefaultThemeCssText,
1195
+ Pe as buildPresetThemeCssText,
1196
+ V as buildRuntimeThemeVariables,
1197
+ pr as changeTheme,
1198
+ cr as ensureDefaultThemeStyle,
1199
+ lr as getAllPresetThemes,
1200
+ oe as getCurrentTheme,
1201
+ S as getDefaultPresetTheme,
1202
+ ir as getDefaultThemeVariables,
1203
+ Ye as getHostThemeSnapshotFromWindowName,
1204
+ nr as getPresetTheme,
1205
+ _ as getThemeAPI,
1206
+ ar as getThemeVariable,
1207
+ Xe as getThemeVariables,
1208
+ gr as getVar,
1209
+ br as getVarValue,
1210
+ dr as initHostThemeRootSync,
1211
+ or as initSubAppThemeSync,
1212
+ J as mixHexColor,
1213
+ q as normalizeHexColor,
1214
+ y as resolvePrimaryBgColor,
1215
+ C as resolveThemeBridgeVariables,
1216
+ mr as syncHostThemeRoot,
1217
+ ae as syncThemeFromHost,
1218
+ De as toDasUiColorOverrides,
1219
+ He as toElementThemeVariables,
1220
+ Be as toLegacyThemeVariables,
1221
+ le as toRgbaColor,
1222
+ Re as toUpfComponentThemeVariables
1118
1223
  };