@sisense/sdk-ui-vue 2.20.0 → 2.22.0
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.
- package/dist/ai.cjs +82 -82
- package/dist/ai.js +1555 -1523
- package/dist/{index-Ck90GjPy-96e79d43-84fb39da.cjs → index-kxX21arA-e16cd0d3-4d73ca0a.cjs} +1 -1
- package/dist/{index-Ck90GjPy-96e79d43-96e79d43.js → index-kxX21arA-e16cd0d3-e16cd0d3.js} +15 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +819 -809
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +0 -28
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +0 -8
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +6 -6
- package/dist/packages/sdk-ui-vue/src/composables/use-custom-widgets.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-get-shared-formula.d.ts +12 -5
- package/dist/packages/sdk-ui-vue/src/helpers/vue-component-adapter.d.ts +54 -0
- package/dist/translations/de-de.cjs +1 -1
- package/dist/translations/de-de.js +16 -2
- package/dist/translations/en-us.cjs +1 -1
- package/dist/translations/en-us.js +1 -1
- package/dist/translations/es-ar.cjs +1 -1
- package/dist/translations/es-ar.js +16 -2
- package/dist/translations/es-es.cjs +1 -1
- package/dist/translations/es-es.js +16 -2
- package/dist/translations/fr-fr.cjs +1 -1
- package/dist/translations/fr-fr.js +16 -2
- package/dist/translations/it-it.cjs +1 -1
- package/dist/translations/it-it.js +16 -2
- package/dist/translations/ja-jp.cjs +1 -1
- package/dist/translations/ja-jp.js +16 -2
- package/dist/translations/ko-kr.cjs +1 -1
- package/dist/translations/ko-kr.js +16 -2
- package/dist/translations/nl-nl.cjs +1 -1
- package/dist/translations/nl-nl.js +16 -2
- package/dist/translations/pt-br.cjs +1 -1
- package/dist/translations/pt-br.js +16 -2
- package/dist/translations/ru-ru.cjs +1 -1
- package/dist/translations/ru-ru.js +16 -2
- package/dist/translations/tr-tr.cjs +1 -1
- package/dist/translations/tr-tr.js +16 -2
- package/dist/translations/zh-cn.cjs +1 -1
- package/dist/translations/zh-cn.js +16 -2
- package/dist/use-tracking-0311d864.cjs +3175 -0
- package/dist/{use-tracking-5246ab32.js → use-tracking-e265dc37.js} +45810 -45058
- package/package.json +13 -3
- package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +0 -140
- package/dist/packages/sdk-ui-vue/src/components/widgets/pivot-table-widget.d.ts +0 -245
- package/dist/packages/sdk-ui-vue/src/helpers/dynamic-renderer.d.ts +0 -16
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context.d.ts +0 -9
- package/dist/use-tracking-5885abd6.cjs +0 -3110
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "./
|
|
5
|
-
|
|
1
|
+
var cn = Object.defineProperty;
|
|
2
|
+
var dn = (e, t, n) => t in e ? cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var ue = (e, t, n) => (dn(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
|
+
import { s as _t, B as fn, a as b, H as pn, q as gn, b as hn, W as mn, G as yn, z as bn, V as Sn, Q as On, K as vn, c as xn, e as Cn, t as wn, Y as Dn, Z as jn, j as Pn, n as Fn, o as An, r as Ln, U as En, i as Nn, d as Rn, f as Tn, g as Mn, X as $n, h as In, P as _n, k as q, l as Ae, m as kn, p as Je, u as kt, v as Bn, w as Un, x as qn, y as Bt, A as Ut, S as at, C as qt, D as Ce, E as Wt, F as Wn, I as H, J as W, L as R, M as F, N as S, O as Vt, R as Vn, T as Ye, _ as Kn, $ as z, a0 as Hn, a1 as G, a2 as te, a3 as zn, a4 as Gn, a5 as Qn, a6 as Jn, a7 as pe, a8 as Yn, a9 as Xn, aa as Zn, ab as er, ac as tr, ad as nr, ae as rr, af as sr, ag as ir, ah as ar, ai as or, aj as ur, ak as lr, al as cr, am as ot, an as dr, ao as fr, ap as pr, aq as gr, ar as ut, as as hr, at as mr, au as yr, av as br, aw as Sr, ax as Or, ay as vr, az as xr, aA as Cr, aB as wr, aC as Dr, aD as jr, aE as ne, aF as B } from "./use-tracking-e265dc37.js";
|
|
5
|
+
import { aI as Tu, aG as Mu, aH as $u, aJ as Iu, aK as _u } from "./use-tracking-e265dc37.js";
|
|
6
|
+
import { defineComponent as m, watch as L, toRefs as A, ref as _, onBeforeUnmount as Q, createApp as Pr, h as Fr, toValue as Ar, computed as Ve, openBlock as Lr, createElementBlock as Er, renderSlot as Te, createVNode as lt, unref as T, createElementVNode as Nr } from "vue";
|
|
7
|
+
import "./index-kxX21arA-e16cd0d3-e16cd0d3.js";
|
|
8
|
+
const Rr = m({
|
|
6
9
|
props: {
|
|
7
10
|
/**
|
|
8
11
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -41,8 +44,8 @@ const Dr = m({
|
|
|
41
44
|
required: !0
|
|
42
45
|
}
|
|
43
46
|
},
|
|
44
|
-
setup: (e, { slots: t }) =>
|
|
45
|
-
}),
|
|
47
|
+
setup: (e, { slots: t }) => _t(fn, e, t, [])
|
|
48
|
+
}), To = m({
|
|
46
49
|
props: {
|
|
47
50
|
/**
|
|
48
51
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -108,8 +111,8 @@ const Dr = m({
|
|
|
108
111
|
*/
|
|
109
112
|
onDataPointsSelected: Function
|
|
110
113
|
},
|
|
111
|
-
setup: (e) => b(
|
|
112
|
-
}),
|
|
114
|
+
setup: (e) => b(pn, e)
|
|
115
|
+
}), Mo = m({
|
|
113
116
|
props: {
|
|
114
117
|
/**
|
|
115
118
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -175,8 +178,8 @@ const Dr = m({
|
|
|
175
178
|
*/
|
|
176
179
|
styleOptions: Object
|
|
177
180
|
},
|
|
178
|
-
setup: (e) => b(
|
|
179
|
-
}),
|
|
181
|
+
setup: (e) => b(gn, e)
|
|
182
|
+
}), $o = m({
|
|
180
183
|
props: {
|
|
181
184
|
/**
|
|
182
185
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -242,8 +245,8 @@ const Dr = m({
|
|
|
242
245
|
*/
|
|
243
246
|
onDataPointsSelected: Function
|
|
244
247
|
},
|
|
245
|
-
setup: (e) => b(
|
|
246
|
-
}),
|
|
248
|
+
setup: (e) => b(hn, e)
|
|
249
|
+
}), Io = m({
|
|
247
250
|
props: {
|
|
248
251
|
/**
|
|
249
252
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -309,8 +312,8 @@ const Dr = m({
|
|
|
309
312
|
*/
|
|
310
313
|
styleOptions: Object
|
|
311
314
|
},
|
|
312
|
-
setup: (e) => b(
|
|
313
|
-
}),
|
|
315
|
+
setup: (e) => b(mn, e)
|
|
316
|
+
}), _o = m({
|
|
314
317
|
props: {
|
|
315
318
|
/**
|
|
316
319
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -376,8 +379,8 @@ const Dr = m({
|
|
|
376
379
|
*/
|
|
377
380
|
styleOptions: Object
|
|
378
381
|
},
|
|
379
|
-
setup: (e) => b(
|
|
380
|
-
}),
|
|
382
|
+
setup: (e) => b(yn, e)
|
|
383
|
+
}), ko = m({
|
|
381
384
|
props: {
|
|
382
385
|
/**
|
|
383
386
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -443,8 +446,8 @@ const Dr = m({
|
|
|
443
446
|
*/
|
|
444
447
|
styleOptions: Object
|
|
445
448
|
},
|
|
446
|
-
setup: (e) => b(
|
|
447
|
-
}),
|
|
449
|
+
setup: (e) => b(bn, e)
|
|
450
|
+
}), Bo = m({
|
|
448
451
|
props: {
|
|
449
452
|
/**
|
|
450
453
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -510,8 +513,8 @@ const Dr = m({
|
|
|
510
513
|
*/
|
|
511
514
|
styleOptions: Object
|
|
512
515
|
},
|
|
513
|
-
setup: (e) => b(
|
|
514
|
-
}),
|
|
516
|
+
setup: (e) => b(Sn, e)
|
|
517
|
+
}), Uo = m({
|
|
515
518
|
props: {
|
|
516
519
|
/**
|
|
517
520
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -577,8 +580,8 @@ const Dr = m({
|
|
|
577
580
|
*/
|
|
578
581
|
styleOptions: Object
|
|
579
582
|
},
|
|
580
|
-
setup: (e) => b(
|
|
581
|
-
}),
|
|
583
|
+
setup: (e) => b(On, e)
|
|
584
|
+
}), qo = m({
|
|
582
585
|
props: {
|
|
583
586
|
/**
|
|
584
587
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -616,8 +619,8 @@ const Dr = m({
|
|
|
616
619
|
*/
|
|
617
620
|
onDataReady: Function
|
|
618
621
|
},
|
|
619
|
-
setup: (e) => b(
|
|
620
|
-
}),
|
|
622
|
+
setup: (e) => b(vn, e)
|
|
623
|
+
}), Wo = m({
|
|
621
624
|
props: {
|
|
622
625
|
/**
|
|
623
626
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -667,8 +670,8 @@ const Dr = m({
|
|
|
667
670
|
*/
|
|
668
671
|
onDataPointContextMenu: Function
|
|
669
672
|
},
|
|
670
|
-
setup: (e) => b(
|
|
671
|
-
}),
|
|
673
|
+
setup: (e) => b(xn, e)
|
|
674
|
+
}), Vo = m({
|
|
672
675
|
props: {
|
|
673
676
|
/**
|
|
674
677
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -734,8 +737,8 @@ const Dr = m({
|
|
|
734
737
|
*/
|
|
735
738
|
styleOptions: Object
|
|
736
739
|
},
|
|
737
|
-
setup: (e) => b(
|
|
738
|
-
}),
|
|
740
|
+
setup: (e) => b(Cn, e)
|
|
741
|
+
}), Ko = m({
|
|
739
742
|
props: {
|
|
740
743
|
/**
|
|
741
744
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -801,8 +804,8 @@ const Dr = m({
|
|
|
801
804
|
*/
|
|
802
805
|
styleOptions: Object
|
|
803
806
|
},
|
|
804
|
-
setup: (e) => b(
|
|
805
|
-
}),
|
|
807
|
+
setup: (e) => b(wn, e)
|
|
808
|
+
}), Ho = m({
|
|
806
809
|
props: {
|
|
807
810
|
/**
|
|
808
811
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -868,8 +871,8 @@ const Dr = m({
|
|
|
868
871
|
*/
|
|
869
872
|
styleOptions: Object
|
|
870
873
|
},
|
|
871
|
-
setup: (e) => b(
|
|
872
|
-
}),
|
|
874
|
+
setup: (e) => b(Dn, e)
|
|
875
|
+
}), zo = m({
|
|
873
876
|
props: {
|
|
874
877
|
/**
|
|
875
878
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -917,8 +920,8 @@ const Dr = m({
|
|
|
917
920
|
*/
|
|
918
921
|
onDataReady: Function
|
|
919
922
|
},
|
|
920
|
-
setup: (e) => b(
|
|
921
|
-
}),
|
|
923
|
+
setup: (e) => b(jn, e)
|
|
924
|
+
}), Go = m({
|
|
922
925
|
props: {
|
|
923
926
|
/**
|
|
924
927
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -997,8 +1000,8 @@ const Dr = m({
|
|
|
997
1000
|
*/
|
|
998
1001
|
refreshCounter: Number
|
|
999
1002
|
},
|
|
1000
|
-
setup: (e) => b(
|
|
1001
|
-
}),
|
|
1003
|
+
setup: (e) => b(Pn, e)
|
|
1004
|
+
}), Qo = m({
|
|
1002
1005
|
props: {
|
|
1003
1006
|
/**
|
|
1004
1007
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1064,8 +1067,8 @@ const Dr = m({
|
|
|
1064
1067
|
*/
|
|
1065
1068
|
onDataPointsSelected: Function
|
|
1066
1069
|
},
|
|
1067
|
-
setup: (e) => b(
|
|
1068
|
-
}),
|
|
1070
|
+
setup: (e) => b(Fn, e)
|
|
1071
|
+
}), Jo = m({
|
|
1069
1072
|
props: {
|
|
1070
1073
|
/**
|
|
1071
1074
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1113,8 +1116,8 @@ const Dr = m({
|
|
|
1113
1116
|
*/
|
|
1114
1117
|
onDataPointClick: Function
|
|
1115
1118
|
},
|
|
1116
|
-
setup: (e) => b(
|
|
1117
|
-
}),
|
|
1119
|
+
setup: (e) => b(An, e)
|
|
1120
|
+
}), Yo = m({
|
|
1118
1121
|
props: {
|
|
1119
1122
|
/**
|
|
1120
1123
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1162,8 +1165,8 @@ const Dr = m({
|
|
|
1162
1165
|
*/
|
|
1163
1166
|
onDataPointClick: Object
|
|
1164
1167
|
},
|
|
1165
|
-
setup: (e) => b(
|
|
1166
|
-
}),
|
|
1168
|
+
setup: (e) => b(Ln, e)
|
|
1169
|
+
}), Xo = m({
|
|
1167
1170
|
props: {
|
|
1168
1171
|
/**
|
|
1169
1172
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1229,8 +1232,8 @@ const Dr = m({
|
|
|
1229
1232
|
*/
|
|
1230
1233
|
onDataPointsSelected: Function
|
|
1231
1234
|
},
|
|
1232
|
-
setup: (e) => b(
|
|
1233
|
-
}),
|
|
1235
|
+
setup: (e) => b(En, e)
|
|
1236
|
+
}), Zo = m({
|
|
1234
1237
|
props: {
|
|
1235
1238
|
/**
|
|
1236
1239
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1296,8 +1299,8 @@ const Dr = m({
|
|
|
1296
1299
|
*/
|
|
1297
1300
|
styleOptions: Object
|
|
1298
1301
|
},
|
|
1299
|
-
setup: (e) => b(
|
|
1300
|
-
}),
|
|
1302
|
+
setup: (e) => b(Nn, e)
|
|
1303
|
+
}), eu = m({
|
|
1301
1304
|
props: {
|
|
1302
1305
|
/**
|
|
1303
1306
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1357,8 +1360,8 @@ const Dr = m({
|
|
|
1357
1360
|
*/
|
|
1358
1361
|
onEdit: Function
|
|
1359
1362
|
},
|
|
1360
|
-
setup: (e) => b(
|
|
1361
|
-
}),
|
|
1363
|
+
setup: (e) => b(Rn, e)
|
|
1364
|
+
}), tu = m({
|
|
1362
1365
|
props: {
|
|
1363
1366
|
/**
|
|
1364
1367
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1405,8 +1408,8 @@ const Dr = m({
|
|
|
1405
1408
|
*/
|
|
1406
1409
|
onEdit: Function
|
|
1407
1410
|
},
|
|
1408
|
-
setup: (e) => b(
|
|
1409
|
-
}),
|
|
1411
|
+
setup: (e) => b(Tn, e)
|
|
1412
|
+
}), nu = m({
|
|
1410
1413
|
props: {
|
|
1411
1414
|
/**
|
|
1412
1415
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1446,8 +1449,8 @@ const Dr = m({
|
|
|
1446
1449
|
*/
|
|
1447
1450
|
onEdit: Function
|
|
1448
1451
|
},
|
|
1449
|
-
setup: (e) => b(
|
|
1450
|
-
}),
|
|
1452
|
+
setup: (e) => b(Mn, e)
|
|
1453
|
+
}), ru = m({
|
|
1451
1454
|
props: {
|
|
1452
1455
|
/**
|
|
1453
1456
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1492,8 +1495,8 @@ const Dr = m({
|
|
|
1492
1495
|
*/
|
|
1493
1496
|
onEdit: Function
|
|
1494
1497
|
},
|
|
1495
|
-
setup: (e) => b(
|
|
1496
|
-
}),
|
|
1498
|
+
setup: (e) => b($n, e)
|
|
1499
|
+
}), su = m({
|
|
1497
1500
|
props: {
|
|
1498
1501
|
/**
|
|
1499
1502
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1522,8 +1525,8 @@ const Dr = m({
|
|
|
1522
1525
|
*/
|
|
1523
1526
|
onEdit: Function
|
|
1524
1527
|
},
|
|
1525
|
-
setup: (e) => b(
|
|
1526
|
-
}),
|
|
1528
|
+
setup: (e) => b(In, e)
|
|
1529
|
+
}), iu = m({
|
|
1527
1530
|
props: {
|
|
1528
1531
|
/**
|
|
1529
1532
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1554,8 +1557,8 @@ const Dr = m({
|
|
|
1554
1557
|
required: !0
|
|
1555
1558
|
}
|
|
1556
1559
|
},
|
|
1557
|
-
setup: (e) => b(
|
|
1558
|
-
}),
|
|
1560
|
+
setup: (e) => b(_n, e)
|
|
1561
|
+
}), Tr = {
|
|
1559
1562
|
type: "logger",
|
|
1560
1563
|
log(e) {
|
|
1561
1564
|
this.output("log", e);
|
|
@@ -1570,14 +1573,14 @@ const Dr = m({
|
|
|
1570
1573
|
console && console[e] && console[e].apply(console, t);
|
|
1571
1574
|
}
|
|
1572
1575
|
};
|
|
1573
|
-
class
|
|
1576
|
+
class we {
|
|
1574
1577
|
constructor(t) {
|
|
1575
1578
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1576
1579
|
this.init(t, n);
|
|
1577
1580
|
}
|
|
1578
1581
|
init(t) {
|
|
1579
1582
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1580
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
1583
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || Tr, this.options = n, this.debug = n.debug;
|
|
1581
1584
|
}
|
|
1582
1585
|
log() {
|
|
1583
1586
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
@@ -1603,17 +1606,17 @@ class Ce {
|
|
|
1603
1606
|
return s && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
1604
1607
|
}
|
|
1605
1608
|
create(t) {
|
|
1606
|
-
return new
|
|
1609
|
+
return new we(this.logger, {
|
|
1607
1610
|
prefix: `${this.prefix}:${t}:`,
|
|
1608
1611
|
...this.options
|
|
1609
1612
|
});
|
|
1610
1613
|
}
|
|
1611
1614
|
clone(t) {
|
|
1612
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
|
1615
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new we(this.logger, t);
|
|
1613
1616
|
}
|
|
1614
1617
|
}
|
|
1615
|
-
var
|
|
1616
|
-
class
|
|
1618
|
+
var k = new we();
|
|
1619
|
+
class Le {
|
|
1617
1620
|
constructor() {
|
|
1618
1621
|
this.observers = {};
|
|
1619
1622
|
}
|
|
@@ -1641,22 +1644,22 @@ class Ae {
|
|
|
1641
1644
|
});
|
|
1642
1645
|
}
|
|
1643
1646
|
}
|
|
1644
|
-
function
|
|
1647
|
+
function le() {
|
|
1645
1648
|
let e, t;
|
|
1646
1649
|
const n = new Promise((r, s) => {
|
|
1647
1650
|
e = r, t = s;
|
|
1648
1651
|
});
|
|
1649
1652
|
return n.resolve = e, n.reject = t, n;
|
|
1650
1653
|
}
|
|
1651
|
-
function
|
|
1654
|
+
function ct(e) {
|
|
1652
1655
|
return e == null ? "" : "" + e;
|
|
1653
1656
|
}
|
|
1654
|
-
function
|
|
1657
|
+
function Mr(e, t, n) {
|
|
1655
1658
|
e.forEach((r) => {
|
|
1656
1659
|
t[r] && (n[r] = t[r]);
|
|
1657
1660
|
});
|
|
1658
1661
|
}
|
|
1659
|
-
function
|
|
1662
|
+
function Xe(e, t, n) {
|
|
1660
1663
|
function r(a) {
|
|
1661
1664
|
return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
|
|
1662
1665
|
}
|
|
@@ -1675,41 +1678,41 @@ function Ye(e, t, n) {
|
|
|
1675
1678
|
k: r(i.shift())
|
|
1676
1679
|
};
|
|
1677
1680
|
}
|
|
1678
|
-
function
|
|
1681
|
+
function dt(e, t, n) {
|
|
1679
1682
|
const {
|
|
1680
1683
|
obj: r,
|
|
1681
1684
|
k: s
|
|
1682
|
-
} =
|
|
1685
|
+
} = Xe(e, t, Object);
|
|
1683
1686
|
r[s] = n;
|
|
1684
1687
|
}
|
|
1685
|
-
function
|
|
1688
|
+
function $r(e, t, n, r) {
|
|
1686
1689
|
const {
|
|
1687
1690
|
obj: s,
|
|
1688
1691
|
k: i
|
|
1689
|
-
} =
|
|
1692
|
+
} = Xe(e, t, Object);
|
|
1690
1693
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
|
1691
1694
|
}
|
|
1692
|
-
function
|
|
1695
|
+
function De(e, t) {
|
|
1693
1696
|
const {
|
|
1694
1697
|
obj: n,
|
|
1695
1698
|
k: r
|
|
1696
|
-
} =
|
|
1699
|
+
} = Xe(e, t);
|
|
1697
1700
|
if (n)
|
|
1698
1701
|
return n[r];
|
|
1699
1702
|
}
|
|
1700
|
-
function
|
|
1701
|
-
const r =
|
|
1702
|
-
return r !== void 0 ? r :
|
|
1703
|
+
function Ir(e, t, n) {
|
|
1704
|
+
const r = De(e, n);
|
|
1705
|
+
return r !== void 0 ? r : De(t, n);
|
|
1703
1706
|
}
|
|
1704
|
-
function
|
|
1707
|
+
function Kt(e, t, n) {
|
|
1705
1708
|
for (const r in t)
|
|
1706
|
-
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) :
|
|
1709
|
+
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Kt(e[r], t[r], n) : e[r] = t[r]);
|
|
1707
1710
|
return e;
|
|
1708
1711
|
}
|
|
1709
|
-
function
|
|
1712
|
+
function Z(e) {
|
|
1710
1713
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1711
1714
|
}
|
|
1712
|
-
var
|
|
1715
|
+
var _r = {
|
|
1713
1716
|
"&": "&",
|
|
1714
1717
|
"<": "<",
|
|
1715
1718
|
">": ">",
|
|
@@ -1717,13 +1720,13 @@ var Er = {
|
|
|
1717
1720
|
"'": "'",
|
|
1718
1721
|
"/": "/"
|
|
1719
1722
|
};
|
|
1720
|
-
function
|
|
1721
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
|
1723
|
+
function kr(e) {
|
|
1724
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => _r[t]) : e;
|
|
1722
1725
|
}
|
|
1723
|
-
const
|
|
1724
|
-
function
|
|
1726
|
+
const Br = [" ", ",", "?", "!", ";"];
|
|
1727
|
+
function Ur(e, t, n) {
|
|
1725
1728
|
t = t || "", n = n || "";
|
|
1726
|
-
const r =
|
|
1729
|
+
const r = Br.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
1727
1730
|
if (r.length === 0)
|
|
1728
1731
|
return !0;
|
|
1729
1732
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
@@ -1734,7 +1737,7 @@ function Tr(e, t, n) {
|
|
|
1734
1737
|
}
|
|
1735
1738
|
return i;
|
|
1736
1739
|
}
|
|
1737
|
-
function
|
|
1740
|
+
function je(e, t) {
|
|
1738
1741
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
1739
1742
|
if (!e)
|
|
1740
1743
|
return;
|
|
@@ -1760,16 +1763,16 @@ function Pe(e, t) {
|
|
|
1760
1763
|
return u[o];
|
|
1761
1764
|
}
|
|
1762
1765
|
const c = r.slice(i + a).join(n);
|
|
1763
|
-
return c ?
|
|
1766
|
+
return c ? je(u, c, n) : void 0;
|
|
1764
1767
|
}
|
|
1765
1768
|
s = s[r[i]];
|
|
1766
1769
|
}
|
|
1767
1770
|
return s;
|
|
1768
1771
|
}
|
|
1769
|
-
function
|
|
1772
|
+
function Pe(e) {
|
|
1770
1773
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
1771
1774
|
}
|
|
1772
|
-
class
|
|
1775
|
+
class ft extends Le {
|
|
1773
1776
|
constructor(t) {
|
|
1774
1777
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1775
1778
|
ns: ["translation"],
|
|
@@ -1789,8 +1792,8 @@ class dt extends Ae {
|
|
|
1789
1792
|
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
1790
1793
|
let o = [t, n];
|
|
1791
1794
|
r && typeof r != "string" && (o = o.concat(r)), r && typeof r == "string" && (o = o.concat(i ? r.split(i) : r)), t.indexOf(".") > -1 && (o = t.split("."));
|
|
1792
|
-
const u =
|
|
1793
|
-
return u || !a || typeof r != "string" ? u :
|
|
1795
|
+
const u = De(this.data, o);
|
|
1796
|
+
return u || !a || typeof r != "string" ? u : je(this.data && this.data[t] && this.data[t][n], r, i);
|
|
1794
1797
|
}
|
|
1795
1798
|
addResource(t, n, r, s) {
|
|
1796
1799
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -1798,7 +1801,7 @@ class dt extends Ae {
|
|
|
1798
1801
|
};
|
|
1799
1802
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
1800
1803
|
let o = [t, n];
|
|
1801
|
-
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n),
|
|
1804
|
+
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n), dt(this.data, o, s), i.silent || this.emit("added", t, n, r, s);
|
|
1802
1805
|
}
|
|
1803
1806
|
addResources(t, n, r) {
|
|
1804
1807
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -1815,11 +1818,11 @@ class dt extends Ae {
|
|
|
1815
1818
|
silent: !1
|
|
1816
1819
|
}, o = [t, n];
|
|
1817
1820
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
|
1818
|
-
let u =
|
|
1819
|
-
s ?
|
|
1821
|
+
let u = De(this.data, o) || {};
|
|
1822
|
+
s ? Kt(u, r, i) : u = {
|
|
1820
1823
|
...u,
|
|
1821
1824
|
...r
|
|
1822
|
-
},
|
|
1825
|
+
}, dt(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
|
1823
1826
|
}
|
|
1824
1827
|
removeResourceBundle(t, n) {
|
|
1825
1828
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -1843,7 +1846,7 @@ class dt extends Ae {
|
|
|
1843
1846
|
return this.data;
|
|
1844
1847
|
}
|
|
1845
1848
|
}
|
|
1846
|
-
var
|
|
1849
|
+
var Ht = {
|
|
1847
1850
|
processors: {},
|
|
1848
1851
|
addPostProcessor(e) {
|
|
1849
1852
|
this.processors[e.name] = e;
|
|
@@ -1854,11 +1857,11 @@ var Wt = {
|
|
|
1854
1857
|
}), t;
|
|
1855
1858
|
}
|
|
1856
1859
|
};
|
|
1857
|
-
const
|
|
1858
|
-
class
|
|
1860
|
+
const pt = {};
|
|
1861
|
+
class Fe extends Le {
|
|
1859
1862
|
constructor(t) {
|
|
1860
1863
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1861
|
-
super(),
|
|
1864
|
+
super(), Mr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = k.create("translator");
|
|
1862
1865
|
}
|
|
1863
1866
|
changeLanguage(t) {
|
|
1864
1867
|
t && (this.language = t);
|
|
@@ -1877,7 +1880,7 @@ class je extends Ae {
|
|
|
1877
1880
|
r === void 0 && (r = ":");
|
|
1878
1881
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
1879
1882
|
let i = n.ns || this.options.defaultNS || [];
|
|
1880
|
-
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
1883
|
+
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Ur(t, r, s);
|
|
1881
1884
|
if (a && !o) {
|
|
1882
1885
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
1883
1886
|
if (u && u.length > 0)
|
|
@@ -1936,14 +1939,14 @@ class je extends Ae {
|
|
|
1936
1939
|
}
|
|
1937
1940
|
if (i) {
|
|
1938
1941
|
const C = y === "[object Array]", E = C ? [] : {}, $ = C ? p : g;
|
|
1939
|
-
for (const
|
|
1940
|
-
if (Object.prototype.hasOwnProperty.call(l,
|
|
1941
|
-
const
|
|
1942
|
-
E[
|
|
1942
|
+
for (const P in l)
|
|
1943
|
+
if (Object.prototype.hasOwnProperty.call(l, P)) {
|
|
1944
|
+
const ge = `${$}${i}${P}`;
|
|
1945
|
+
E[P] = this.translate(ge, {
|
|
1943
1946
|
...n,
|
|
1944
1947
|
joinArrays: !1,
|
|
1945
1948
|
ns: o
|
|
1946
|
-
}), E[
|
|
1949
|
+
}), E[P] === ge && (E[P] = l[P]);
|
|
1947
1950
|
}
|
|
1948
1951
|
l = E;
|
|
1949
1952
|
}
|
|
@@ -1951,11 +1954,11 @@ class je extends Ae {
|
|
|
1951
1954
|
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
|
1952
1955
|
else {
|
|
1953
1956
|
let C = !1, E = !1;
|
|
1954
|
-
const $ = n.count !== void 0 && typeof n.count != "string",
|
|
1957
|
+
const $ = n.count !== void 0 && typeof n.count != "string", P = Fe.hasDefaultValue(n), ge = $ ? this.pluralResolver.getSuffix(c, n.count, n) : "", un = n.ordinal && $ ? this.pluralResolver.getSuffix(c, n.count, {
|
|
1955
1958
|
ordinal: !1
|
|
1956
|
-
}) : "", ie = n[`defaultValue${
|
|
1957
|
-
!this.isValidLookup(l) &&
|
|
1958
|
-
const
|
|
1959
|
+
}) : "", ie = n[`defaultValue${ge}`] || n[`defaultValue${un}`] || n.defaultValue;
|
|
1960
|
+
!this.isValidLookup(l) && P && (C = !0, l = ie), this.isValidLookup(l) || (E = !0, l = a);
|
|
1961
|
+
const ln = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && E ? void 0 : l, ae = P && ie !== l && this.options.updateMissing;
|
|
1959
1962
|
if (E || C || ae) {
|
|
1960
1963
|
if (this.logger.log(ae ? "updateKey" : "missingKey", c, u, a, ae ? ie : l), i) {
|
|
1961
1964
|
const N = this.resolve(a, {
|
|
@@ -1965,21 +1968,21 @@ class je extends Ae {
|
|
|
1965
1968
|
N && N.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
1966
1969
|
}
|
|
1967
1970
|
let oe = [];
|
|
1968
|
-
const
|
|
1969
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
1970
|
-
for (let N = 0; N <
|
|
1971
|
-
oe.push(
|
|
1971
|
+
const he = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
1972
|
+
if (this.options.saveMissingTo === "fallback" && he && he[0])
|
|
1973
|
+
for (let N = 0; N < he.length; N++)
|
|
1974
|
+
oe.push(he[N]);
|
|
1972
1975
|
else
|
|
1973
1976
|
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(n.lng || this.language) : oe.push(n.lng || this.language);
|
|
1974
|
-
const
|
|
1975
|
-
const
|
|
1976
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u,
|
|
1977
|
+
const rt = (N, X, st) => {
|
|
1978
|
+
const it = P && st !== l ? st : ln;
|
|
1979
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, X, it, ae, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(N, u, X, it, ae, n), this.emit("missingKey", N, u, X, l);
|
|
1977
1980
|
};
|
|
1978
1981
|
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? oe.forEach((N) => {
|
|
1979
|
-
this.pluralResolver.getSuffixes(N, n).forEach((
|
|
1980
|
-
|
|
1982
|
+
this.pluralResolver.getSuffixes(N, n).forEach((X) => {
|
|
1983
|
+
rt([N], a + X, n[`defaultValue${X}`] || ie);
|
|
1981
1984
|
});
|
|
1982
|
-
}) :
|
|
1985
|
+
}) : rt(oe, a, ie));
|
|
1983
1986
|
}
|
|
1984
1987
|
l = this.extendTranslation(l, t, n, f, r), E && l === a && this.options.appendNamespaceToMissingKey && (l = `${u}:${a}`), (E || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, C ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
|
|
1985
1988
|
}
|
|
@@ -2023,7 +2026,7 @@ class je extends Ae {
|
|
|
2023
2026
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
2024
2027
|
}
|
|
2025
2028
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
|
2026
|
-
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t =
|
|
2029
|
+
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t = Ht.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
2027
2030
|
i18nResolved: s,
|
|
2028
2031
|
...r
|
|
2029
2032
|
} : r, this)), t;
|
|
@@ -2039,7 +2042,7 @@ class je extends Ae {
|
|
|
2039
2042
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
2040
2043
|
const l = n.count !== void 0 && typeof n.count != "string", g = l && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", y = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
2041
2044
|
f.forEach((h) => {
|
|
2042
|
-
this.isValidLookup(r) || (o = h, !
|
|
2045
|
+
this.isValidLookup(r) || (o = h, !pt[`${y[0]}-${h}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (pt[`${y[0]}-${h}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((x) => {
|
|
2043
2046
|
if (this.isValidLookup(r))
|
|
2044
2047
|
return;
|
|
2045
2048
|
a = x;
|
|
@@ -2051,13 +2054,13 @@ class je extends Ae {
|
|
|
2051
2054
|
l && (C = this.pluralResolver.getSuffix(x, n.count, n));
|
|
2052
2055
|
const E = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2053
2056
|
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d + E)), p) {
|
|
2054
|
-
const
|
|
2055
|
-
w.push(
|
|
2057
|
+
const P = `${d}${this.options.contextSeparator}${n.context}`;
|
|
2058
|
+
w.push(P), l && (w.push(P + C), n.ordinal && C.indexOf($) === 0 && w.push(P + C.replace($, this.options.pluralSeparator)), g && w.push(P + E));
|
|
2056
2059
|
}
|
|
2057
2060
|
}
|
|
2058
|
-
let
|
|
2059
|
-
for (;
|
|
2060
|
-
this.isValidLookup(r) || (i =
|
|
2061
|
+
let D;
|
|
2062
|
+
for (; D = w.pop(); )
|
|
2063
|
+
this.isValidLookup(r) || (i = D, r = this.getResource(x, h, D, n));
|
|
2061
2064
|
}));
|
|
2062
2065
|
});
|
|
2063
2066
|
}), {
|
|
@@ -2083,21 +2086,21 @@ class je extends Ae {
|
|
|
2083
2086
|
return !1;
|
|
2084
2087
|
}
|
|
2085
2088
|
}
|
|
2086
|
-
function
|
|
2089
|
+
function Me(e) {
|
|
2087
2090
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2088
2091
|
}
|
|
2089
|
-
class
|
|
2092
|
+
class gt {
|
|
2090
2093
|
constructor(t) {
|
|
2091
|
-
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
|
2094
|
+
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = k.create("languageUtils");
|
|
2092
2095
|
}
|
|
2093
2096
|
getScriptPartFromCode(t) {
|
|
2094
|
-
if (t =
|
|
2097
|
+
if (t = Pe(t), !t || t.indexOf("-") < 0)
|
|
2095
2098
|
return null;
|
|
2096
2099
|
const n = t.split("-");
|
|
2097
2100
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
2098
2101
|
}
|
|
2099
2102
|
getLanguagePartFromCode(t) {
|
|
2100
|
-
if (t =
|
|
2103
|
+
if (t = Pe(t), !t || t.indexOf("-") < 0)
|
|
2101
2104
|
return t;
|
|
2102
2105
|
const n = t.split("-");
|
|
2103
2106
|
return this.formatLanguageCode(n[0]);
|
|
@@ -2106,7 +2109,7 @@ class pt {
|
|
|
2106
2109
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
2107
2110
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2108
2111
|
let r = t.split("-");
|
|
2109
|
-
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] =
|
|
2112
|
+
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Me(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Me(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Me(r[2].toLowerCase()))), r.join("-");
|
|
2110
2113
|
}
|
|
2111
2114
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
2112
2115
|
}
|
|
@@ -2155,7 +2158,7 @@ class pt {
|
|
|
2155
2158
|
}), s;
|
|
2156
2159
|
}
|
|
2157
2160
|
}
|
|
2158
|
-
let
|
|
2161
|
+
let qr = [{
|
|
2159
2162
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2160
2163
|
nr: [1, 2],
|
|
2161
2164
|
fc: 1
|
|
@@ -2247,7 +2250,7 @@ let Mr = [{
|
|
|
2247
2250
|
lngs: ["he", "iw"],
|
|
2248
2251
|
nr: [1, 2, 20, 21],
|
|
2249
2252
|
fc: 22
|
|
2250
|
-
}],
|
|
2253
|
+
}], Wr = {
|
|
2251
2254
|
1: function(e) {
|
|
2252
2255
|
return +(e > 1);
|
|
2253
2256
|
},
|
|
@@ -2315,7 +2318,7 @@ let Mr = [{
|
|
|
2315
2318
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
2316
2319
|
}
|
|
2317
2320
|
};
|
|
2318
|
-
const
|
|
2321
|
+
const Vr = ["v1", "v2", "v3"], Kr = ["v4"], ht = {
|
|
2319
2322
|
zero: 0,
|
|
2320
2323
|
one: 1,
|
|
2321
2324
|
two: 2,
|
|
@@ -2323,21 +2326,21 @@ const Ir = ["v1", "v2", "v3"], _r = ["v4"], gt = {
|
|
|
2323
2326
|
many: 4,
|
|
2324
2327
|
other: 5
|
|
2325
2328
|
};
|
|
2326
|
-
function
|
|
2329
|
+
function Hr() {
|
|
2327
2330
|
const e = {};
|
|
2328
|
-
return
|
|
2331
|
+
return qr.forEach((t) => {
|
|
2329
2332
|
t.lngs.forEach((n) => {
|
|
2330
2333
|
e[n] = {
|
|
2331
2334
|
numbers: t.nr,
|
|
2332
|
-
plurals:
|
|
2335
|
+
plurals: Wr[t.fc]
|
|
2333
2336
|
};
|
|
2334
2337
|
});
|
|
2335
2338
|
}), e;
|
|
2336
2339
|
}
|
|
2337
|
-
class
|
|
2340
|
+
class zr {
|
|
2338
2341
|
constructor(t) {
|
|
2339
2342
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2340
|
-
this.languageUtils = t, this.options = n, this.logger =
|
|
2343
|
+
this.languageUtils = t, this.options = n, this.logger = k.create("pluralResolver"), (!this.options.compatibilityJSON || Kr.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = Hr();
|
|
2341
2344
|
}
|
|
2342
2345
|
addRule(t, n) {
|
|
2343
2346
|
this.rules[t] = n;
|
|
@@ -2346,7 +2349,7 @@ class Br {
|
|
|
2346
2349
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2347
2350
|
if (this.shouldUseIntlApi())
|
|
2348
2351
|
try {
|
|
2349
|
-
return new Intl.PluralRules(
|
|
2352
|
+
return new Intl.PluralRules(Pe(t), {
|
|
2350
2353
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
2351
2354
|
});
|
|
2352
2355
|
} catch {
|
|
@@ -2366,7 +2369,7 @@ class Br {
|
|
|
2366
2369
|
getSuffixes(t) {
|
|
2367
2370
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2368
2371
|
const r = this.getRule(t, n);
|
|
2369
|
-
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) =>
|
|
2372
|
+
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) => ht[s] - ht[i]).map((s) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : r.numbers.map((s) => this.getSuffix(t, s, n)) : [];
|
|
2370
2373
|
}
|
|
2371
2374
|
getSuffix(t, n) {
|
|
2372
2375
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -2381,17 +2384,17 @@ class Br {
|
|
|
2381
2384
|
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` : i() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? i() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString();
|
|
2382
2385
|
}
|
|
2383
2386
|
shouldUseIntlApi() {
|
|
2384
|
-
return !
|
|
2387
|
+
return !Vr.includes(this.options.compatibilityJSON);
|
|
2385
2388
|
}
|
|
2386
2389
|
}
|
|
2387
|
-
function
|
|
2388
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
|
2389
|
-
return !i && s && typeof n == "string" && (i =
|
|
2390
|
+
function mt(e, t, n) {
|
|
2391
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Ir(e, t, n);
|
|
2392
|
+
return !i && s && typeof n == "string" && (i = je(e, n, r), i === void 0 && (i = je(t, n, r))), i;
|
|
2390
2393
|
}
|
|
2391
|
-
class
|
|
2394
|
+
class Gr {
|
|
2392
2395
|
constructor() {
|
|
2393
2396
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2394
|
-
this.logger =
|
|
2397
|
+
this.logger = k.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
2395
2398
|
}
|
|
2396
2399
|
init() {
|
|
2397
2400
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
@@ -2399,7 +2402,7 @@ class Ur {
|
|
|
2399
2402
|
escapeValue: !0
|
|
2400
2403
|
});
|
|
2401
2404
|
const n = t.interpolation;
|
|
2402
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
|
2405
|
+
this.escape = n.escape !== void 0 ? n.escape : kr, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? Z(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? Z(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? Z(n.nestingPrefix) : n.nestingPrefixEscaped || Z("$t("), this.nestingSuffix = n.nestingSuffix ? Z(n.nestingSuffix) : n.nestingSuffixEscaped || Z(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
|
|
2403
2406
|
}
|
|
2404
2407
|
reset() {
|
|
2405
2408
|
this.options && this.init(this.options);
|
|
@@ -2420,7 +2423,7 @@ class Ur {
|
|
|
2420
2423
|
}
|
|
2421
2424
|
const d = (p) => {
|
|
2422
2425
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
2423
|
-
const w =
|
|
2426
|
+
const w = mt(n, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2424
2427
|
return this.alwaysFormat ? this.format(w, void 0, r, {
|
|
2425
2428
|
...s,
|
|
2426
2429
|
...n,
|
|
@@ -2428,7 +2431,7 @@ class Ur {
|
|
|
2428
2431
|
}) : w;
|
|
2429
2432
|
}
|
|
2430
2433
|
const y = p.split(this.formatSeparator), h = y.shift().trim(), x = y.join(this.formatSeparator).trim();
|
|
2431
|
-
return this.format(
|
|
2434
|
+
return this.format(mt(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), x, r, {
|
|
2432
2435
|
...s,
|
|
2433
2436
|
...n,
|
|
2434
2437
|
interpolationkey: h
|
|
@@ -2457,7 +2460,7 @@ class Ur {
|
|
|
2457
2460
|
} else
|
|
2458
2461
|
this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`), a = "";
|
|
2459
2462
|
else
|
|
2460
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
|
2463
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = ct(a));
|
|
2461
2464
|
const h = p.safeValue(a);
|
|
2462
2465
|
if (t = t.replace(i[0], h), l ? (p.regex.lastIndex += a.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
|
2463
2466
|
break;
|
|
@@ -2497,7 +2500,7 @@ class Ur {
|
|
|
2497
2500
|
}
|
|
2498
2501
|
if (i = n(o.call(this, s[1].trim(), a), a), i && s[0] === t && typeof i != "string")
|
|
2499
2502
|
return i;
|
|
2500
|
-
typeof i != "string" && (i =
|
|
2503
|
+
typeof i != "string" && (i = ct(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`), i = ""), c && (i = u.reduce((d, f) => this.format(d, f, r.lng, {
|
|
2501
2504
|
...r,
|
|
2502
2505
|
interpolationkey: s[1].trim()
|
|
2503
2506
|
}), i.trim())), t = t.replace(s[0], i), this.regexp.lastIndex = 0;
|
|
@@ -2505,7 +2508,7 @@ class Ur {
|
|
|
2505
2508
|
return t;
|
|
2506
2509
|
}
|
|
2507
2510
|
}
|
|
2508
|
-
function
|
|
2511
|
+
function Qr(e) {
|
|
2509
2512
|
let t = e.toLowerCase().trim();
|
|
2510
2513
|
const n = {};
|
|
2511
2514
|
if (e.indexOf("(") > -1) {
|
|
@@ -2524,44 +2527,44 @@ function qr(e) {
|
|
|
2524
2527
|
formatOptions: n
|
|
2525
2528
|
};
|
|
2526
2529
|
}
|
|
2527
|
-
function
|
|
2530
|
+
function ee(e) {
|
|
2528
2531
|
const t = {};
|
|
2529
2532
|
return function(r, s, i) {
|
|
2530
2533
|
const a = s + JSON.stringify(i);
|
|
2531
2534
|
let o = t[a];
|
|
2532
|
-
return o || (o = e(
|
|
2535
|
+
return o || (o = e(Pe(s), i), t[a] = o), o(r);
|
|
2533
2536
|
};
|
|
2534
2537
|
}
|
|
2535
|
-
class
|
|
2538
|
+
class Jr {
|
|
2536
2539
|
constructor() {
|
|
2537
2540
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2538
|
-
this.logger =
|
|
2539
|
-
number:
|
|
2541
|
+
this.logger = k.create("formatter"), this.options = t, this.formats = {
|
|
2542
|
+
number: ee((n, r) => {
|
|
2540
2543
|
const s = new Intl.NumberFormat(n, {
|
|
2541
2544
|
...r
|
|
2542
2545
|
});
|
|
2543
2546
|
return (i) => s.format(i);
|
|
2544
2547
|
}),
|
|
2545
|
-
currency:
|
|
2548
|
+
currency: ee((n, r) => {
|
|
2546
2549
|
const s = new Intl.NumberFormat(n, {
|
|
2547
2550
|
...r,
|
|
2548
2551
|
style: "currency"
|
|
2549
2552
|
});
|
|
2550
2553
|
return (i) => s.format(i);
|
|
2551
2554
|
}),
|
|
2552
|
-
datetime:
|
|
2555
|
+
datetime: ee((n, r) => {
|
|
2553
2556
|
const s = new Intl.DateTimeFormat(n, {
|
|
2554
2557
|
...r
|
|
2555
2558
|
});
|
|
2556
2559
|
return (i) => s.format(i);
|
|
2557
2560
|
}),
|
|
2558
|
-
relativetime:
|
|
2561
|
+
relativetime: ee((n, r) => {
|
|
2559
2562
|
const s = new Intl.RelativeTimeFormat(n, {
|
|
2560
2563
|
...r
|
|
2561
2564
|
});
|
|
2562
2565
|
return (i) => s.format(i, r.range || "day");
|
|
2563
2566
|
}),
|
|
2564
|
-
list:
|
|
2567
|
+
list: ee((n, r) => {
|
|
2565
2568
|
const s = new Intl.ListFormat(n, {
|
|
2566
2569
|
...r
|
|
2567
2570
|
});
|
|
@@ -2579,7 +2582,7 @@ class Hr {
|
|
|
2579
2582
|
this.formats[t.toLowerCase().trim()] = n;
|
|
2580
2583
|
}
|
|
2581
2584
|
addCached(t, n) {
|
|
2582
|
-
this.formats[t.toLowerCase().trim()] =
|
|
2585
|
+
this.formats[t.toLowerCase().trim()] = ee(n);
|
|
2583
2586
|
}
|
|
2584
2587
|
format(t, n, r) {
|
|
2585
2588
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -2587,7 +2590,7 @@ class Hr {
|
|
|
2587
2590
|
const {
|
|
2588
2591
|
formatName: c,
|
|
2589
2592
|
formatOptions: d
|
|
2590
|
-
} =
|
|
2593
|
+
} = Qr(u);
|
|
2591
2594
|
if (this.formats[c]) {
|
|
2592
2595
|
let f = o;
|
|
2593
2596
|
try {
|
|
@@ -2607,13 +2610,13 @@ class Hr {
|
|
|
2607
2610
|
}, t);
|
|
2608
2611
|
}
|
|
2609
2612
|
}
|
|
2610
|
-
function
|
|
2613
|
+
function Yr(e, t) {
|
|
2611
2614
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2612
2615
|
}
|
|
2613
|
-
class
|
|
2616
|
+
class Xr extends Le {
|
|
2614
2617
|
constructor(t, n, r) {
|
|
2615
2618
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
2616
|
-
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger =
|
|
2619
|
+
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = k.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, s.backend, s);
|
|
2617
2620
|
}
|
|
2618
2621
|
queueLoad(t, n, r, s) {
|
|
2619
2622
|
const i = {}, a = {}, o = {}, u = {};
|
|
@@ -2641,7 +2644,7 @@ class Wr extends Ae {
|
|
|
2641
2644
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
|
2642
2645
|
const o = {};
|
|
2643
2646
|
this.queue.forEach((u) => {
|
|
2644
|
-
|
|
2647
|
+
$r(u.loaded, [i], a), Yr(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
2645
2648
|
o[c] || (o[c] = {});
|
|
2646
2649
|
const d = u.loaded[c];
|
|
2647
2650
|
d.length && d.forEach((f) => {
|
|
@@ -2744,7 +2747,7 @@ class Wr extends Ae {
|
|
|
2744
2747
|
}
|
|
2745
2748
|
}
|
|
2746
2749
|
}
|
|
2747
|
-
function
|
|
2750
|
+
function yt() {
|
|
2748
2751
|
return {
|
|
2749
2752
|
debug: !1,
|
|
2750
2753
|
initImmediate: !0,
|
|
@@ -2803,22 +2806,22 @@ function mt() {
|
|
|
2803
2806
|
}
|
|
2804
2807
|
};
|
|
2805
2808
|
}
|
|
2806
|
-
function
|
|
2809
|
+
function bt(e) {
|
|
2807
2810
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
2808
2811
|
}
|
|
2809
|
-
function
|
|
2812
|
+
function me() {
|
|
2810
2813
|
}
|
|
2811
|
-
function
|
|
2814
|
+
function Zr(e) {
|
|
2812
2815
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
2813
2816
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
2814
2817
|
});
|
|
2815
2818
|
}
|
|
2816
|
-
class
|
|
2819
|
+
class ce extends Le {
|
|
2817
2820
|
constructor() {
|
|
2818
2821
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2819
|
-
if (super(), this.options =
|
|
2822
|
+
if (super(), this.options = bt(t), this.services = {}, this.logger = k, this.modules = {
|
|
2820
2823
|
external: []
|
|
2821
|
-
},
|
|
2824
|
+
}, Zr(this), n && !this.isInitialized && !t.isClone) {
|
|
2822
2825
|
if (!this.options.initImmediate)
|
|
2823
2826
|
return this.init(t, n), this;
|
|
2824
2827
|
setTimeout(() => {
|
|
@@ -2830,11 +2833,11 @@ class le extends Ae {
|
|
|
2830
2833
|
var t = this;
|
|
2831
2834
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
2832
2835
|
typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == "string" ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
|
2833
|
-
const s =
|
|
2836
|
+
const s = yt();
|
|
2834
2837
|
this.options = {
|
|
2835
2838
|
...s,
|
|
2836
2839
|
...this.options,
|
|
2837
|
-
...
|
|
2840
|
+
...bt(n)
|
|
2838
2841
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
2839
2842
|
...s.interpolation,
|
|
2840
2843
|
...this.options.interpolation
|
|
@@ -2843,23 +2846,23 @@ class le extends Ae {
|
|
|
2843
2846
|
return d ? typeof d == "function" ? new d() : d : null;
|
|
2844
2847
|
}
|
|
2845
2848
|
if (!this.options.isClone) {
|
|
2846
|
-
this.modules.logger ?
|
|
2849
|
+
this.modules.logger ? k.init(i(this.modules.logger), this.options) : k.init(null, this.options);
|
|
2847
2850
|
let d;
|
|
2848
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
2849
|
-
const f = new
|
|
2850
|
-
this.store = new
|
|
2851
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Jr);
|
|
2852
|
+
const f = new gt(this.options);
|
|
2853
|
+
this.store = new ft(this.options.resources, this.options);
|
|
2851
2854
|
const l = this.services;
|
|
2852
|
-
l.logger =
|
|
2855
|
+
l.logger = k, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new zr(f, {
|
|
2853
2856
|
prepend: this.options.pluralSeparator,
|
|
2854
2857
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
2855
2858
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2856
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new
|
|
2859
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Gr(this.options), l.utils = {
|
|
2857
2860
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2858
|
-
}, l.backendConnector = new
|
|
2861
|
+
}, l.backendConnector = new Xr(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
|
2859
2862
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2860
2863
|
y[h - 1] = arguments[h];
|
|
2861
2864
|
t.emit(g, ...y);
|
|
2862
|
-
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new
|
|
2865
|
+
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new Fe(this.services, this.options), this.translator.on("*", function(g) {
|
|
2863
2866
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2864
2867
|
y[h - 1] = arguments[h];
|
|
2865
2868
|
t.emit(g, ...y);
|
|
@@ -2867,7 +2870,7 @@ class le extends Ae {
|
|
|
2867
2870
|
g.init && g.init(this);
|
|
2868
2871
|
});
|
|
2869
2872
|
}
|
|
2870
|
-
if (this.format = this.options.interpolation.format, r || (r =
|
|
2873
|
+
if (this.format = this.options.interpolation.format, r || (r = me), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2871
2874
|
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2872
2875
|
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
2873
2876
|
}
|
|
@@ -2880,7 +2883,7 @@ class le extends Ae {
|
|
|
2880
2883
|
return t.store[d](...arguments), t;
|
|
2881
2884
|
};
|
|
2882
2885
|
});
|
|
2883
|
-
const u =
|
|
2886
|
+
const u = le(), c = () => {
|
|
2884
2887
|
const d = (f, l) => {
|
|
2885
2888
|
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(l), r(f, l);
|
|
2886
2889
|
};
|
|
@@ -2891,7 +2894,7 @@ class le extends Ae {
|
|
|
2891
2894
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), u;
|
|
2892
2895
|
}
|
|
2893
2896
|
loadResources(t) {
|
|
2894
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2897
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : me;
|
|
2895
2898
|
const s = typeof t == "string" ? t : this.language;
|
|
2896
2899
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2897
2900
|
if (s && s.toLowerCase() === "cimode")
|
|
@@ -2910,8 +2913,8 @@ class le extends Ae {
|
|
|
2910
2913
|
r(null);
|
|
2911
2914
|
}
|
|
2912
2915
|
reloadResources(t, n, r) {
|
|
2913
|
-
const s =
|
|
2914
|
-
return t || (t = this.languages), n || (n = this.options.ns), r || (r =
|
|
2916
|
+
const s = le();
|
|
2917
|
+
return t || (t = this.languages), n || (n = this.options.ns), r || (r = me), this.services.backendConnector.reload(t, n, (i) => {
|
|
2915
2918
|
s.resolve(), r(i);
|
|
2916
2919
|
}), s;
|
|
2917
2920
|
}
|
|
@@ -2920,7 +2923,7 @@ class le extends Ae {
|
|
|
2920
2923
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
2921
2924
|
if (!t.type)
|
|
2922
2925
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
2923
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
2926
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Ht.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
2924
2927
|
}
|
|
2925
2928
|
setResolvedLanguage(t) {
|
|
2926
2929
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -2935,7 +2938,7 @@ class le extends Ae {
|
|
|
2935
2938
|
changeLanguage(t, n) {
|
|
2936
2939
|
var r = this;
|
|
2937
2940
|
this.isLanguageChangingTo = t;
|
|
2938
|
-
const s =
|
|
2941
|
+
const s = le();
|
|
2939
2942
|
this.emit("languageChanging", t);
|
|
2940
2943
|
const i = (u) => {
|
|
2941
2944
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -3003,7 +3006,7 @@ class le extends Ae {
|
|
|
3003
3006
|
return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, t) && (!s || a(i, t)));
|
|
3004
3007
|
}
|
|
3005
3008
|
loadNamespaces(t, n) {
|
|
3006
|
-
const r =
|
|
3009
|
+
const r = le();
|
|
3007
3010
|
return this.options.ns ? (typeof t == "string" && (t = [t]), t.forEach((s) => {
|
|
3008
3011
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
3009
3012
|
}), this.loadResources((s) => {
|
|
@@ -3011,7 +3014,7 @@ class le extends Ae {
|
|
|
3011
3014
|
}), r) : (n && n(), Promise.resolve());
|
|
3012
3015
|
}
|
|
3013
3016
|
loadLanguages(t, n) {
|
|
3014
|
-
const r =
|
|
3017
|
+
const r = le();
|
|
3015
3018
|
typeof t == "string" && (t = [t]);
|
|
3016
3019
|
const s = this.options.preload || [], i = t.filter((a) => s.indexOf(a) < 0);
|
|
3017
3020
|
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
@@ -3021,29 +3024,29 @@ class le extends Ae {
|
|
|
3021
3024
|
dir(t) {
|
|
3022
3025
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
3023
3026
|
return "rtl";
|
|
3024
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new
|
|
3027
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new gt(yt());
|
|
3025
3028
|
return n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
3026
3029
|
}
|
|
3027
3030
|
static createInstance() {
|
|
3028
3031
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3029
|
-
return new
|
|
3032
|
+
return new ce(t, n);
|
|
3030
3033
|
}
|
|
3031
3034
|
cloneInstance() {
|
|
3032
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3035
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : me;
|
|
3033
3036
|
const r = t.forkResourceStore;
|
|
3034
3037
|
r && delete t.forkResourceStore;
|
|
3035
3038
|
const s = {
|
|
3036
3039
|
...this.options,
|
|
3037
3040
|
...t,
|
|
3038
3041
|
isClone: !0
|
|
3039
|
-
}, i = new
|
|
3042
|
+
}, i = new ce(s);
|
|
3040
3043
|
return (t.debug !== void 0 || t.prefix !== void 0) && (i.logger = i.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
3041
3044
|
i[o] = this[o];
|
|
3042
3045
|
}), i.services = {
|
|
3043
3046
|
...this.services
|
|
3044
3047
|
}, i.services.utils = {
|
|
3045
3048
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
3046
|
-
}, r && (i.store = new
|
|
3049
|
+
}, r && (i.store = new ft(this.store.data, s), i.services.resourceStore = i.store), i.translator = new Fe(i.services, s), i.translator.on("*", function(o) {
|
|
3047
3050
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
|
3048
3051
|
c[d - 1] = arguments[d];
|
|
3049
3052
|
i.emit(o, ...c);
|
|
@@ -3061,8 +3064,8 @@ class le extends Ae {
|
|
|
3061
3064
|
};
|
|
3062
3065
|
}
|
|
3063
3066
|
}
|
|
3064
|
-
const j =
|
|
3065
|
-
j.createInstance =
|
|
3067
|
+
const j = ce.createInstance();
|
|
3068
|
+
j.createInstance = ce.createInstance;
|
|
3066
3069
|
j.createInstance;
|
|
3067
3070
|
j.dir;
|
|
3068
3071
|
j.init;
|
|
@@ -3077,26 +3080,26 @@ j.setDefaultNamespace;
|
|
|
3077
3080
|
j.hasLoadedNamespace;
|
|
3078
3081
|
j.loadNamespaces;
|
|
3079
3082
|
j.loadLanguages;
|
|
3080
|
-
const
|
|
3083
|
+
const es = {
|
|
3081
3084
|
error: "Error"
|
|
3082
|
-
},
|
|
3085
|
+
}, ts = {
|
|
3083
3086
|
error: "Помилка"
|
|
3084
|
-
},
|
|
3085
|
-
en:
|
|
3086
|
-
uk:
|
|
3087
|
+
}, St = "common", ns = {
|
|
3088
|
+
en: es,
|
|
3089
|
+
uk: ts
|
|
3087
3090
|
}, I = j.createInstance({
|
|
3088
|
-
defaultNS:
|
|
3089
|
-
resources:
|
|
3091
|
+
defaultNS: St,
|
|
3092
|
+
resources: ss(ns, St),
|
|
3090
3093
|
lng: "en",
|
|
3091
3094
|
fallbackLng: "en"
|
|
3092
|
-
}),
|
|
3095
|
+
}), zt = {
|
|
3093
3096
|
i18nextInstance: I,
|
|
3094
3097
|
initPromise: I.init().then(() => I)
|
|
3095
|
-
},
|
|
3096
|
-
|
|
3097
|
-
const
|
|
3098
|
-
if (
|
|
3099
|
-
return
|
|
3098
|
+
}, ye = /* @__PURE__ */ new Map();
|
|
3099
|
+
ye.set("common", zt);
|
|
3100
|
+
const rs = (e) => {
|
|
3101
|
+
if (ye.has(e.namespace))
|
|
3102
|
+
return ye.get(e.namespace);
|
|
3100
3103
|
if (e.plugins)
|
|
3101
3104
|
for (const i of e.plugins)
|
|
3102
3105
|
I.use(i);
|
|
@@ -3106,7 +3109,7 @@ const Jr = (e) => {
|
|
|
3106
3109
|
const t = I.cloneInstance({
|
|
3107
3110
|
defaultNS: e.namespace
|
|
3108
3111
|
});
|
|
3109
|
-
let n =
|
|
3112
|
+
let n = zt.initPromise.then(() => t);
|
|
3110
3113
|
t.on("languageChanged", (i) => {
|
|
3111
3114
|
I.language !== i && I.changeLanguage(i);
|
|
3112
3115
|
}), I.on("languageChanged", (i) => {
|
|
@@ -3115,17 +3118,17 @@ const Jr = (e) => {
|
|
|
3115
3118
|
const r = e.language || "en";
|
|
3116
3119
|
I.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
|
3117
3120
|
const s = { initPromise: n, i18nextInstance: t };
|
|
3118
|
-
return
|
|
3121
|
+
return ye.set(e.namespace, s), s;
|
|
3119
3122
|
};
|
|
3120
|
-
function
|
|
3123
|
+
function ss(e, t) {
|
|
3121
3124
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3122
3125
|
[t]: e[r]
|
|
3123
3126
|
}, n), {});
|
|
3124
3127
|
}
|
|
3125
|
-
function
|
|
3128
|
+
function is(e) {
|
|
3126
3129
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
|
3127
3130
|
}
|
|
3128
|
-
const
|
|
3131
|
+
const as = {
|
|
3129
3132
|
errors: {
|
|
3130
3133
|
measure: {
|
|
3131
3134
|
unsupportedType: "Unsupported measure type for measure: {{measureName}}",
|
|
@@ -3150,7 +3153,7 @@ const Xr = {
|
|
|
3150
3153
|
},
|
|
3151
3154
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
|
3152
3155
|
}
|
|
3153
|
-
},
|
|
3156
|
+
}, os = {
|
|
3154
3157
|
errors: {
|
|
3155
3158
|
measure: {
|
|
3156
3159
|
unsupportedType: "Непідтримуваний тип measure: {{measureName}}",
|
|
@@ -3175,47 +3178,47 @@ const Xr = {
|
|
|
3175
3178
|
},
|
|
3176
3179
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
|
3177
3180
|
}
|
|
3178
|
-
},
|
|
3179
|
-
en:
|
|
3180
|
-
uk:
|
|
3181
|
+
}, us = "sdkData", ls = {
|
|
3182
|
+
en: as,
|
|
3183
|
+
uk: os
|
|
3181
3184
|
};
|
|
3182
|
-
function
|
|
3183
|
-
return
|
|
3184
|
-
resource:
|
|
3185
|
+
function cs() {
|
|
3186
|
+
return rs({
|
|
3187
|
+
resource: ls,
|
|
3185
3188
|
language: "en",
|
|
3186
|
-
namespace:
|
|
3189
|
+
namespace: us
|
|
3187
3190
|
});
|
|
3188
3191
|
}
|
|
3189
|
-
|
|
3190
|
-
function
|
|
3192
|
+
cs();
|
|
3193
|
+
function ds() {
|
|
3191
3194
|
this.__data__ = [], this.size = 0;
|
|
3192
3195
|
}
|
|
3193
|
-
function
|
|
3196
|
+
function Gt(e, t) {
|
|
3194
3197
|
return e === t || e !== e && t !== t;
|
|
3195
3198
|
}
|
|
3196
|
-
function
|
|
3199
|
+
function Ee(e, t) {
|
|
3197
3200
|
for (var n = e.length; n--; )
|
|
3198
|
-
if (
|
|
3201
|
+
if (Gt(e[n][0], t))
|
|
3199
3202
|
return n;
|
|
3200
3203
|
return -1;
|
|
3201
3204
|
}
|
|
3202
|
-
var
|
|
3203
|
-
function
|
|
3204
|
-
var t = this.__data__, n =
|
|
3205
|
+
var fs = Array.prototype, ps = fs.splice;
|
|
3206
|
+
function gs(e) {
|
|
3207
|
+
var t = this.__data__, n = Ee(t, e);
|
|
3205
3208
|
if (n < 0)
|
|
3206
3209
|
return !1;
|
|
3207
3210
|
var r = t.length - 1;
|
|
3208
|
-
return n == r ? t.pop() :
|
|
3211
|
+
return n == r ? t.pop() : ps.call(t, n, 1), --this.size, !0;
|
|
3209
3212
|
}
|
|
3210
|
-
function
|
|
3211
|
-
var t = this.__data__, n =
|
|
3213
|
+
function hs(e) {
|
|
3214
|
+
var t = this.__data__, n = Ee(t, e);
|
|
3212
3215
|
return n < 0 ? void 0 : t[n][1];
|
|
3213
3216
|
}
|
|
3214
|
-
function
|
|
3215
|
-
return
|
|
3217
|
+
function ms(e) {
|
|
3218
|
+
return Ee(this.__data__, e) > -1;
|
|
3216
3219
|
}
|
|
3217
|
-
function
|
|
3218
|
-
var n = this.__data__, r =
|
|
3220
|
+
function ys(e, t) {
|
|
3221
|
+
var n = this.__data__, r = Ee(n, e);
|
|
3219
3222
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
3220
3223
|
}
|
|
3221
3224
|
function U(e) {
|
|
@@ -3225,38 +3228,38 @@ function U(e) {
|
|
|
3225
3228
|
this.set(r[0], r[1]);
|
|
3226
3229
|
}
|
|
3227
3230
|
}
|
|
3228
|
-
U.prototype.clear =
|
|
3229
|
-
U.prototype.delete =
|
|
3230
|
-
U.prototype.get =
|
|
3231
|
-
U.prototype.has =
|
|
3232
|
-
U.prototype.set =
|
|
3233
|
-
function
|
|
3231
|
+
U.prototype.clear = ds;
|
|
3232
|
+
U.prototype.delete = gs;
|
|
3233
|
+
U.prototype.get = hs;
|
|
3234
|
+
U.prototype.has = ms;
|
|
3235
|
+
U.prototype.set = ys;
|
|
3236
|
+
function bs() {
|
|
3234
3237
|
this.__data__ = new U(), this.size = 0;
|
|
3235
3238
|
}
|
|
3236
|
-
function
|
|
3239
|
+
function Ss(e) {
|
|
3237
3240
|
var t = this.__data__, n = t.delete(e);
|
|
3238
3241
|
return this.size = t.size, n;
|
|
3239
3242
|
}
|
|
3240
|
-
function
|
|
3243
|
+
function Os(e) {
|
|
3241
3244
|
return this.__data__.get(e);
|
|
3242
3245
|
}
|
|
3243
|
-
function
|
|
3246
|
+
function vs(e) {
|
|
3244
3247
|
return this.__data__.has(e);
|
|
3245
3248
|
}
|
|
3246
|
-
var
|
|
3247
|
-
const
|
|
3248
|
-
var
|
|
3249
|
-
var e = /[^.]+$/.exec(
|
|
3249
|
+
var xs = q["__core-js_shared__"];
|
|
3250
|
+
const $e = xs;
|
|
3251
|
+
var Ot = function() {
|
|
3252
|
+
var e = /[^.]+$/.exec($e && $e.keys && $e.keys.IE_PROTO || "");
|
|
3250
3253
|
return e ? "Symbol(src)_1." + e : "";
|
|
3251
3254
|
}();
|
|
3252
|
-
function
|
|
3253
|
-
return !!
|
|
3255
|
+
function Cs(e) {
|
|
3256
|
+
return !!Ot && Ot in e;
|
|
3254
3257
|
}
|
|
3255
|
-
var
|
|
3256
|
-
function
|
|
3258
|
+
var ws = Function.prototype, Ds = ws.toString;
|
|
3259
|
+
function J(e) {
|
|
3257
3260
|
if (e != null) {
|
|
3258
3261
|
try {
|
|
3259
|
-
return
|
|
3262
|
+
return Ds.call(e);
|
|
3260
3263
|
} catch {
|
|
3261
3264
|
}
|
|
3262
3265
|
try {
|
|
@@ -3266,51 +3269,51 @@ function z(e) {
|
|
|
3266
3269
|
}
|
|
3267
3270
|
return "";
|
|
3268
3271
|
}
|
|
3269
|
-
var
|
|
3270
|
-
"^" +
|
|
3272
|
+
var js = /[\\^$.*+?()[\]{}|]/g, Ps = /^\[object .+?Constructor\]$/, Fs = Function.prototype, As = Object.prototype, Ls = Fs.toString, Es = As.hasOwnProperty, Ns = RegExp(
|
|
3273
|
+
"^" + Ls.call(Es).replace(js, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3271
3274
|
);
|
|
3272
|
-
function
|
|
3273
|
-
if (!
|
|
3275
|
+
function Rs(e) {
|
|
3276
|
+
if (!Ae(e) || Cs(e))
|
|
3274
3277
|
return !1;
|
|
3275
|
-
var t =
|
|
3276
|
-
return t.test(
|
|
3278
|
+
var t = kn(e) ? Ns : Ps;
|
|
3279
|
+
return t.test(J(e));
|
|
3277
3280
|
}
|
|
3278
|
-
function
|
|
3281
|
+
function Ts(e, t) {
|
|
3279
3282
|
return e == null ? void 0 : e[t];
|
|
3280
3283
|
}
|
|
3281
|
-
function
|
|
3282
|
-
var n =
|
|
3283
|
-
return
|
|
3284
|
+
function Y(e, t) {
|
|
3285
|
+
var n = Ts(e, t);
|
|
3286
|
+
return Rs(n) ? n : void 0;
|
|
3284
3287
|
}
|
|
3285
|
-
var
|
|
3286
|
-
const
|
|
3287
|
-
var
|
|
3288
|
-
const
|
|
3289
|
-
function
|
|
3290
|
-
this.__data__ =
|
|
3288
|
+
var Ms = Y(q, "Map");
|
|
3289
|
+
const de = Ms;
|
|
3290
|
+
var $s = Y(Object, "create");
|
|
3291
|
+
const fe = $s;
|
|
3292
|
+
function Is() {
|
|
3293
|
+
this.__data__ = fe ? fe(null) : {}, this.size = 0;
|
|
3291
3294
|
}
|
|
3292
|
-
function
|
|
3295
|
+
function _s(e) {
|
|
3293
3296
|
var t = this.has(e) && delete this.__data__[e];
|
|
3294
3297
|
return this.size -= t ? 1 : 0, t;
|
|
3295
3298
|
}
|
|
3296
|
-
var
|
|
3297
|
-
function
|
|
3299
|
+
var ks = "__lodash_hash_undefined__", Bs = Object.prototype, Us = Bs.hasOwnProperty;
|
|
3300
|
+
function qs(e) {
|
|
3298
3301
|
var t = this.__data__;
|
|
3299
|
-
if (
|
|
3302
|
+
if (fe) {
|
|
3300
3303
|
var n = t[e];
|
|
3301
|
-
return n ===
|
|
3304
|
+
return n === ks ? void 0 : n;
|
|
3302
3305
|
}
|
|
3303
|
-
return
|
|
3306
|
+
return Us.call(t, e) ? t[e] : void 0;
|
|
3304
3307
|
}
|
|
3305
|
-
var
|
|
3306
|
-
function
|
|
3308
|
+
var Ws = Object.prototype, Vs = Ws.hasOwnProperty;
|
|
3309
|
+
function Ks(e) {
|
|
3307
3310
|
var t = this.__data__;
|
|
3308
|
-
return
|
|
3311
|
+
return fe ? t[e] !== void 0 : Vs.call(t, e);
|
|
3309
3312
|
}
|
|
3310
|
-
var
|
|
3311
|
-
function
|
|
3313
|
+
var Hs = "__lodash_hash_undefined__";
|
|
3314
|
+
function zs(e, t) {
|
|
3312
3315
|
var n = this.__data__;
|
|
3313
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
3316
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = fe && t === void 0 ? Hs : t, this;
|
|
3314
3317
|
}
|
|
3315
3318
|
function K(e) {
|
|
3316
3319
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -3319,38 +3322,38 @@ function K(e) {
|
|
|
3319
3322
|
this.set(r[0], r[1]);
|
|
3320
3323
|
}
|
|
3321
3324
|
}
|
|
3322
|
-
K.prototype.clear =
|
|
3323
|
-
K.prototype.delete =
|
|
3324
|
-
K.prototype.get =
|
|
3325
|
-
K.prototype.has =
|
|
3326
|
-
K.prototype.set =
|
|
3327
|
-
function
|
|
3325
|
+
K.prototype.clear = Is;
|
|
3326
|
+
K.prototype.delete = _s;
|
|
3327
|
+
K.prototype.get = qs;
|
|
3328
|
+
K.prototype.has = Ks;
|
|
3329
|
+
K.prototype.set = zs;
|
|
3330
|
+
function Gs() {
|
|
3328
3331
|
this.size = 0, this.__data__ = {
|
|
3329
3332
|
hash: new K(),
|
|
3330
|
-
map: new (
|
|
3333
|
+
map: new (de || U)(),
|
|
3331
3334
|
string: new K()
|
|
3332
3335
|
};
|
|
3333
3336
|
}
|
|
3334
|
-
function
|
|
3337
|
+
function Qs(e) {
|
|
3335
3338
|
var t = typeof e;
|
|
3336
3339
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3337
3340
|
}
|
|
3338
|
-
function
|
|
3341
|
+
function Ne(e, t) {
|
|
3339
3342
|
var n = e.__data__;
|
|
3340
|
-
return
|
|
3343
|
+
return Qs(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
3341
3344
|
}
|
|
3342
|
-
function
|
|
3343
|
-
var t =
|
|
3345
|
+
function Js(e) {
|
|
3346
|
+
var t = Ne(this, e).delete(e);
|
|
3344
3347
|
return this.size -= t ? 1 : 0, t;
|
|
3345
3348
|
}
|
|
3346
|
-
function
|
|
3347
|
-
return
|
|
3349
|
+
function Ys(e) {
|
|
3350
|
+
return Ne(this, e).get(e);
|
|
3348
3351
|
}
|
|
3349
|
-
function
|
|
3350
|
-
return
|
|
3352
|
+
function Xs(e) {
|
|
3353
|
+
return Ne(this, e).has(e);
|
|
3351
3354
|
}
|
|
3352
|
-
function
|
|
3353
|
-
var n =
|
|
3355
|
+
function Zs(e, t) {
|
|
3356
|
+
var n = Ne(this, e), r = n.size;
|
|
3354
3357
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
3355
3358
|
}
|
|
3356
3359
|
function re(e) {
|
|
@@ -3360,17 +3363,17 @@ function re(e) {
|
|
|
3360
3363
|
this.set(r[0], r[1]);
|
|
3361
3364
|
}
|
|
3362
3365
|
}
|
|
3363
|
-
re.prototype.clear =
|
|
3364
|
-
re.prototype.delete =
|
|
3365
|
-
re.prototype.get =
|
|
3366
|
-
re.prototype.has =
|
|
3367
|
-
re.prototype.set =
|
|
3368
|
-
var
|
|
3369
|
-
function
|
|
3366
|
+
re.prototype.clear = Gs;
|
|
3367
|
+
re.prototype.delete = Js;
|
|
3368
|
+
re.prototype.get = Ys;
|
|
3369
|
+
re.prototype.has = Xs;
|
|
3370
|
+
re.prototype.set = Zs;
|
|
3371
|
+
var ei = 200;
|
|
3372
|
+
function ti(e, t) {
|
|
3370
3373
|
var n = this.__data__;
|
|
3371
3374
|
if (n instanceof U) {
|
|
3372
3375
|
var r = n.__data__;
|
|
3373
|
-
if (!
|
|
3376
|
+
if (!de || r.length < ei - 1)
|
|
3374
3377
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
3375
3378
|
n = this.__data__ = new re(r);
|
|
3376
3379
|
}
|
|
@@ -3380,305 +3383,305 @@ function se(e) {
|
|
|
3380
3383
|
var t = this.__data__ = new U(e);
|
|
3381
3384
|
this.size = t.size;
|
|
3382
3385
|
}
|
|
3383
|
-
se.prototype.clear =
|
|
3384
|
-
se.prototype.delete =
|
|
3385
|
-
se.prototype.get =
|
|
3386
|
-
se.prototype.has =
|
|
3387
|
-
se.prototype.set =
|
|
3388
|
-
function
|
|
3386
|
+
se.prototype.clear = bs;
|
|
3387
|
+
se.prototype.delete = Ss;
|
|
3388
|
+
se.prototype.get = Os;
|
|
3389
|
+
se.prototype.has = vs;
|
|
3390
|
+
se.prototype.set = ti;
|
|
3391
|
+
function ni(e, t) {
|
|
3389
3392
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
3390
3393
|
;
|
|
3391
3394
|
return e;
|
|
3392
3395
|
}
|
|
3393
|
-
var
|
|
3396
|
+
var ri = function() {
|
|
3394
3397
|
try {
|
|
3395
|
-
var e =
|
|
3398
|
+
var e = Y(Object, "defineProperty");
|
|
3396
3399
|
return e({}, "", {}), e;
|
|
3397
3400
|
} catch {
|
|
3398
3401
|
}
|
|
3399
3402
|
}();
|
|
3400
|
-
const
|
|
3401
|
-
function
|
|
3402
|
-
t == "__proto__" &&
|
|
3403
|
+
const vt = ri;
|
|
3404
|
+
function Qt(e, t, n) {
|
|
3405
|
+
t == "__proto__" && vt ? vt(e, t, {
|
|
3403
3406
|
configurable: !0,
|
|
3404
3407
|
enumerable: !0,
|
|
3405
3408
|
value: n,
|
|
3406
3409
|
writable: !0
|
|
3407
3410
|
}) : e[t] = n;
|
|
3408
3411
|
}
|
|
3409
|
-
var
|
|
3410
|
-
function
|
|
3412
|
+
var si = Object.prototype, ii = si.hasOwnProperty;
|
|
3413
|
+
function Jt(e, t, n) {
|
|
3411
3414
|
var r = e[t];
|
|
3412
|
-
(!(
|
|
3415
|
+
(!(ii.call(e, t) && Gt(r, n)) || n === void 0 && !(t in e)) && Qt(e, t, n);
|
|
3413
3416
|
}
|
|
3414
|
-
function
|
|
3417
|
+
function Re(e, t, n, r) {
|
|
3415
3418
|
var s = !n;
|
|
3416
3419
|
n || (n = {});
|
|
3417
3420
|
for (var i = -1, a = t.length; ++i < a; ) {
|
|
3418
3421
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
3419
|
-
u === void 0 && (u = e[o]), s ?
|
|
3422
|
+
u === void 0 && (u = e[o]), s ? Qt(n, o, u) : Jt(n, o, u);
|
|
3420
3423
|
}
|
|
3421
3424
|
return n;
|
|
3422
3425
|
}
|
|
3423
|
-
function
|
|
3424
|
-
return e &&
|
|
3426
|
+
function ai(e, t) {
|
|
3427
|
+
return e && Re(t, Je(t), e);
|
|
3425
3428
|
}
|
|
3426
|
-
function
|
|
3429
|
+
function oi(e) {
|
|
3427
3430
|
var t = [];
|
|
3428
3431
|
if (e != null)
|
|
3429
3432
|
for (var n in Object(e))
|
|
3430
3433
|
t.push(n);
|
|
3431
3434
|
return t;
|
|
3432
3435
|
}
|
|
3433
|
-
var
|
|
3434
|
-
function
|
|
3435
|
-
if (!
|
|
3436
|
-
return
|
|
3437
|
-
var t =
|
|
3436
|
+
var ui = Object.prototype, li = ui.hasOwnProperty;
|
|
3437
|
+
function ci(e) {
|
|
3438
|
+
if (!Ae(e))
|
|
3439
|
+
return oi(e);
|
|
3440
|
+
var t = kt(e), n = [];
|
|
3438
3441
|
for (var r in e)
|
|
3439
|
-
r == "constructor" && (t || !
|
|
3442
|
+
r == "constructor" && (t || !li.call(e, r)) || n.push(r);
|
|
3440
3443
|
return n;
|
|
3441
3444
|
}
|
|
3442
3445
|
function Ze(e) {
|
|
3443
|
-
return
|
|
3446
|
+
return Bn(e) ? Un(e, !0) : ci(e);
|
|
3444
3447
|
}
|
|
3445
|
-
function
|
|
3446
|
-
return e &&
|
|
3448
|
+
function di(e, t) {
|
|
3449
|
+
return e && Re(t, Ze(t), e);
|
|
3447
3450
|
}
|
|
3448
|
-
var
|
|
3449
|
-
function
|
|
3451
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, xt = Yt && typeof module == "object" && module && !module.nodeType && module, fi = xt && xt.exports === Yt, Ct = fi ? q.Buffer : void 0, wt = Ct ? Ct.allocUnsafe : void 0;
|
|
3452
|
+
function pi(e, t) {
|
|
3450
3453
|
if (t)
|
|
3451
3454
|
return e.slice();
|
|
3452
|
-
var n = e.length, r =
|
|
3455
|
+
var n = e.length, r = wt ? wt(n) : new e.constructor(n);
|
|
3453
3456
|
return e.copy(r), r;
|
|
3454
3457
|
}
|
|
3455
|
-
function
|
|
3458
|
+
function gi(e, t) {
|
|
3456
3459
|
var n = -1, r = e.length;
|
|
3457
3460
|
for (t || (t = Array(r)); ++n < r; )
|
|
3458
3461
|
t[n] = e[n];
|
|
3459
3462
|
return t;
|
|
3460
3463
|
}
|
|
3461
|
-
function
|
|
3464
|
+
function hi(e, t) {
|
|
3462
3465
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
|
3463
3466
|
var a = e[n];
|
|
3464
3467
|
t(a, n, e) && (i[s++] = a);
|
|
3465
3468
|
}
|
|
3466
3469
|
return i;
|
|
3467
3470
|
}
|
|
3468
|
-
function
|
|
3471
|
+
function Xt() {
|
|
3469
3472
|
return [];
|
|
3470
3473
|
}
|
|
3471
|
-
var
|
|
3472
|
-
return e == null ? [] : (e = Object(e),
|
|
3473
|
-
return
|
|
3474
|
+
var mi = Object.prototype, yi = mi.propertyIsEnumerable, Dt = Object.getOwnPropertySymbols, bi = Dt ? function(e) {
|
|
3475
|
+
return e == null ? [] : (e = Object(e), hi(Dt(e), function(t) {
|
|
3476
|
+
return yi.call(e, t);
|
|
3474
3477
|
}));
|
|
3475
|
-
} :
|
|
3476
|
-
const
|
|
3477
|
-
function
|
|
3478
|
-
return
|
|
3478
|
+
} : Xt;
|
|
3479
|
+
const et = bi;
|
|
3480
|
+
function Si(e, t) {
|
|
3481
|
+
return Re(e, et(e), t);
|
|
3479
3482
|
}
|
|
3480
3483
|
function Zt(e, t) {
|
|
3481
3484
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
3482
3485
|
e[s + n] = t[n];
|
|
3483
3486
|
return e;
|
|
3484
3487
|
}
|
|
3485
|
-
var
|
|
3486
|
-
const
|
|
3487
|
-
var
|
|
3488
|
+
var Oi = qn(Object.getPrototypeOf, Object);
|
|
3489
|
+
const en = Oi;
|
|
3490
|
+
var vi = Object.getOwnPropertySymbols, xi = vi ? function(e) {
|
|
3488
3491
|
for (var t = []; e; )
|
|
3489
|
-
Zt(t,
|
|
3492
|
+
Zt(t, et(e)), e = en(e);
|
|
3490
3493
|
return t;
|
|
3491
|
-
} :
|
|
3492
|
-
const
|
|
3493
|
-
function
|
|
3494
|
-
return
|
|
3494
|
+
} : Xt;
|
|
3495
|
+
const tn = xi;
|
|
3496
|
+
function Ci(e, t) {
|
|
3497
|
+
return Re(e, tn(e), t);
|
|
3495
3498
|
}
|
|
3496
|
-
function
|
|
3499
|
+
function nn(e, t, n) {
|
|
3497
3500
|
var r = t(e);
|
|
3498
|
-
return
|
|
3501
|
+
return Bt(e) ? r : Zt(r, n(e));
|
|
3499
3502
|
}
|
|
3500
|
-
function
|
|
3501
|
-
return
|
|
3503
|
+
function wi(e) {
|
|
3504
|
+
return nn(e, Je, et);
|
|
3502
3505
|
}
|
|
3503
|
-
function
|
|
3504
|
-
return
|
|
3506
|
+
function Di(e) {
|
|
3507
|
+
return nn(e, Ze, tn);
|
|
3505
3508
|
}
|
|
3506
|
-
var
|
|
3507
|
-
const
|
|
3508
|
-
var
|
|
3509
|
-
const
|
|
3510
|
-
var
|
|
3511
|
-
const
|
|
3512
|
-
var
|
|
3513
|
-
const
|
|
3514
|
-
var
|
|
3515
|
-
(
|
|
3516
|
-
var t =
|
|
3509
|
+
var ji = Y(q, "DataView");
|
|
3510
|
+
const Ke = ji;
|
|
3511
|
+
var Pi = Y(q, "Promise");
|
|
3512
|
+
const He = Pi;
|
|
3513
|
+
var Fi = Y(q, "Set");
|
|
3514
|
+
const ze = Fi;
|
|
3515
|
+
var Ai = Y(q, "WeakMap");
|
|
3516
|
+
const Ge = Ai;
|
|
3517
|
+
var jt = "[object Map]", Li = "[object Object]", Pt = "[object Promise]", Ft = "[object Set]", At = "[object WeakMap]", Lt = "[object DataView]", Ei = J(Ke), Ni = J(de), Ri = J(He), Ti = J(ze), Mi = J(Ge), V = Ut;
|
|
3518
|
+
(Ke && V(new Ke(new ArrayBuffer(1))) != Lt || de && V(new de()) != jt || He && V(He.resolve()) != Pt || ze && V(new ze()) != Ft || Ge && V(new Ge()) != At) && (V = function(e) {
|
|
3519
|
+
var t = Ut(e), n = t == Li ? e.constructor : void 0, r = n ? J(n) : "";
|
|
3517
3520
|
if (r)
|
|
3518
3521
|
switch (r) {
|
|
3519
|
-
case
|
|
3520
|
-
return
|
|
3521
|
-
case
|
|
3522
|
-
return Pt;
|
|
3523
|
-
case Di:
|
|
3524
|
-
return Dt;
|
|
3525
|
-
case ji:
|
|
3522
|
+
case Ei:
|
|
3523
|
+
return Lt;
|
|
3524
|
+
case Ni:
|
|
3526
3525
|
return jt;
|
|
3527
|
-
case
|
|
3526
|
+
case Ri:
|
|
3527
|
+
return Pt;
|
|
3528
|
+
case Ti:
|
|
3528
3529
|
return Ft;
|
|
3530
|
+
case Mi:
|
|
3531
|
+
return At;
|
|
3529
3532
|
}
|
|
3530
3533
|
return t;
|
|
3531
3534
|
});
|
|
3532
|
-
const
|
|
3533
|
-
var
|
|
3534
|
-
function
|
|
3535
|
+
const tt = V;
|
|
3536
|
+
var $i = Object.prototype, Ii = $i.hasOwnProperty;
|
|
3537
|
+
function _i(e) {
|
|
3535
3538
|
var t = e.length, n = new e.constructor(t);
|
|
3536
|
-
return t && typeof e[0] == "string" &&
|
|
3539
|
+
return t && typeof e[0] == "string" && Ii.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
3537
3540
|
}
|
|
3538
|
-
var
|
|
3539
|
-
const
|
|
3540
|
-
function
|
|
3541
|
+
var ki = q.Uint8Array;
|
|
3542
|
+
const Et = ki;
|
|
3543
|
+
function nt(e) {
|
|
3541
3544
|
var t = new e.constructor(e.byteLength);
|
|
3542
|
-
return new
|
|
3545
|
+
return new Et(t).set(new Et(e)), t;
|
|
3543
3546
|
}
|
|
3544
|
-
function
|
|
3545
|
-
var n = t ?
|
|
3547
|
+
function Bi(e, t) {
|
|
3548
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
|
3546
3549
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
3547
3550
|
}
|
|
3548
|
-
var
|
|
3549
|
-
function
|
|
3550
|
-
var t = new e.constructor(e.source,
|
|
3551
|
+
var Ui = /\w*$/;
|
|
3552
|
+
function qi(e) {
|
|
3553
|
+
var t = new e.constructor(e.source, Ui.exec(e));
|
|
3551
3554
|
return t.lastIndex = e.lastIndex, t;
|
|
3552
3555
|
}
|
|
3553
|
-
var
|
|
3554
|
-
function
|
|
3555
|
-
return
|
|
3556
|
+
var Nt = at ? at.prototype : void 0, Rt = Nt ? Nt.valueOf : void 0;
|
|
3557
|
+
function Wi(e) {
|
|
3558
|
+
return Rt ? Object(Rt.call(e)) : {};
|
|
3556
3559
|
}
|
|
3557
|
-
function
|
|
3558
|
-
var n = t ?
|
|
3560
|
+
function Vi(e, t) {
|
|
3561
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
|
3559
3562
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
3560
3563
|
}
|
|
3561
|
-
var
|
|
3562
|
-
function
|
|
3564
|
+
var Ki = "[object Boolean]", Hi = "[object Date]", zi = "[object Map]", Gi = "[object Number]", Qi = "[object RegExp]", Ji = "[object Set]", Yi = "[object String]", Xi = "[object Symbol]", Zi = "[object ArrayBuffer]", ea = "[object DataView]", ta = "[object Float32Array]", na = "[object Float64Array]", ra = "[object Int8Array]", sa = "[object Int16Array]", ia = "[object Int32Array]", aa = "[object Uint8Array]", oa = "[object Uint8ClampedArray]", ua = "[object Uint16Array]", la = "[object Uint32Array]";
|
|
3565
|
+
function ca(e, t, n) {
|
|
3563
3566
|
var r = e.constructor;
|
|
3564
3567
|
switch (t) {
|
|
3568
|
+
case Zi:
|
|
3569
|
+
return nt(e);
|
|
3565
3570
|
case Ki:
|
|
3566
|
-
|
|
3567
|
-
case _i:
|
|
3568
|
-
case ki:
|
|
3571
|
+
case Hi:
|
|
3569
3572
|
return new r(+e);
|
|
3570
|
-
case zi:
|
|
3571
|
-
return Ri(e, n);
|
|
3572
|
-
case Gi:
|
|
3573
|
-
case Qi:
|
|
3574
|
-
case Ji:
|
|
3575
|
-
case Yi:
|
|
3576
|
-
case Zi:
|
|
3577
|
-
case Xi:
|
|
3578
3573
|
case ea:
|
|
3574
|
+
return Bi(e, n);
|
|
3579
3575
|
case ta:
|
|
3580
3576
|
case na:
|
|
3581
|
-
|
|
3582
|
-
case
|
|
3577
|
+
case ra:
|
|
3578
|
+
case sa:
|
|
3579
|
+
case ia:
|
|
3580
|
+
case aa:
|
|
3581
|
+
case oa:
|
|
3582
|
+
case ua:
|
|
3583
|
+
case la:
|
|
3584
|
+
return Vi(e, n);
|
|
3585
|
+
case zi:
|
|
3583
3586
|
return new r();
|
|
3584
|
-
case
|
|
3585
|
-
case
|
|
3587
|
+
case Gi:
|
|
3588
|
+
case Yi:
|
|
3586
3589
|
return new r(e);
|
|
3587
|
-
case
|
|
3588
|
-
return
|
|
3589
|
-
case
|
|
3590
|
+
case Qi:
|
|
3591
|
+
return qi(e);
|
|
3592
|
+
case Ji:
|
|
3590
3593
|
return new r();
|
|
3591
|
-
case
|
|
3592
|
-
return
|
|
3594
|
+
case Xi:
|
|
3595
|
+
return Wi(e);
|
|
3593
3596
|
}
|
|
3594
3597
|
}
|
|
3595
|
-
var
|
|
3598
|
+
var Tt = Object.create, da = function() {
|
|
3596
3599
|
function e() {
|
|
3597
3600
|
}
|
|
3598
3601
|
return function(t) {
|
|
3599
|
-
if (!
|
|
3602
|
+
if (!Ae(t))
|
|
3600
3603
|
return {};
|
|
3601
|
-
if (
|
|
3602
|
-
return
|
|
3604
|
+
if (Tt)
|
|
3605
|
+
return Tt(t);
|
|
3603
3606
|
e.prototype = t;
|
|
3604
3607
|
var n = new e();
|
|
3605
3608
|
return e.prototype = void 0, n;
|
|
3606
3609
|
};
|
|
3607
3610
|
}();
|
|
3608
|
-
const
|
|
3609
|
-
function
|
|
3610
|
-
return typeof e.constructor == "function" && !
|
|
3611
|
+
const fa = da;
|
|
3612
|
+
function pa(e) {
|
|
3613
|
+
return typeof e.constructor == "function" && !kt(e) ? fa(en(e)) : {};
|
|
3611
3614
|
}
|
|
3612
|
-
var
|
|
3613
|
-
function
|
|
3614
|
-
return
|
|
3615
|
+
var ga = "[object Map]";
|
|
3616
|
+
function ha(e) {
|
|
3617
|
+
return qt(e) && tt(e) == ga;
|
|
3615
3618
|
}
|
|
3616
|
-
var
|
|
3617
|
-
const
|
|
3618
|
-
var
|
|
3619
|
-
function
|
|
3620
|
-
return
|
|
3619
|
+
var Mt = Ce && Ce.isMap, ma = Mt ? Wt(Mt) : ha;
|
|
3620
|
+
const ya = ma;
|
|
3621
|
+
var ba = "[object Set]";
|
|
3622
|
+
function Sa(e) {
|
|
3623
|
+
return qt(e) && tt(e) == ba;
|
|
3621
3624
|
}
|
|
3622
|
-
var
|
|
3623
|
-
const
|
|
3624
|
-
var
|
|
3625
|
-
v[
|
|
3626
|
-
v[
|
|
3627
|
-
function
|
|
3628
|
-
var a, o = t &
|
|
3625
|
+
var $t = Ce && Ce.isSet, Oa = $t ? Wt($t) : Sa;
|
|
3626
|
+
const va = Oa;
|
|
3627
|
+
var xa = 1, Ca = 2, wa = 4, rn = "[object Arguments]", Da = "[object Array]", ja = "[object Boolean]", Pa = "[object Date]", Fa = "[object Error]", sn = "[object Function]", Aa = "[object GeneratorFunction]", La = "[object Map]", Ea = "[object Number]", an = "[object Object]", Na = "[object RegExp]", Ra = "[object Set]", Ta = "[object String]", Ma = "[object Symbol]", $a = "[object WeakMap]", Ia = "[object ArrayBuffer]", _a = "[object DataView]", ka = "[object Float32Array]", Ba = "[object Float64Array]", Ua = "[object Int8Array]", qa = "[object Int16Array]", Wa = "[object Int32Array]", Va = "[object Uint8Array]", Ka = "[object Uint8ClampedArray]", Ha = "[object Uint16Array]", za = "[object Uint32Array]", v = {};
|
|
3628
|
+
v[rn] = v[Da] = v[Ia] = v[_a] = v[ja] = v[Pa] = v[ka] = v[Ba] = v[Ua] = v[qa] = v[Wa] = v[La] = v[Ea] = v[an] = v[Na] = v[Ra] = v[Ta] = v[Ma] = v[Va] = v[Ka] = v[Ha] = v[za] = !0;
|
|
3629
|
+
v[Fa] = v[sn] = v[$a] = !1;
|
|
3630
|
+
function be(e, t, n, r, s, i) {
|
|
3631
|
+
var a, o = t & xa, u = t & Ca, c = t & wa;
|
|
3629
3632
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
|
3630
3633
|
return a;
|
|
3631
|
-
if (!
|
|
3634
|
+
if (!Ae(e))
|
|
3632
3635
|
return e;
|
|
3633
|
-
var d =
|
|
3636
|
+
var d = Bt(e);
|
|
3634
3637
|
if (d) {
|
|
3635
|
-
if (a =
|
|
3636
|
-
return
|
|
3638
|
+
if (a = _i(e), !o)
|
|
3639
|
+
return gi(e, a);
|
|
3637
3640
|
} else {
|
|
3638
|
-
var f =
|
|
3639
|
-
if (
|
|
3640
|
-
return
|
|
3641
|
-
if (f ==
|
|
3642
|
-
if (a = u || l ? {} :
|
|
3643
|
-
return u ?
|
|
3641
|
+
var f = tt(e), l = f == sn || f == Aa;
|
|
3642
|
+
if (Wn(e))
|
|
3643
|
+
return pi(e, o);
|
|
3644
|
+
if (f == an || f == rn || l && !s) {
|
|
3645
|
+
if (a = u || l ? {} : pa(e), !o)
|
|
3646
|
+
return u ? Ci(e, di(a, e)) : Si(e, ai(a, e));
|
|
3644
3647
|
} else {
|
|
3645
3648
|
if (!v[f])
|
|
3646
3649
|
return s ? e : {};
|
|
3647
|
-
a =
|
|
3650
|
+
a = ca(e, f, o);
|
|
3648
3651
|
}
|
|
3649
3652
|
}
|
|
3650
3653
|
i || (i = new se());
|
|
3651
3654
|
var g = i.get(e);
|
|
3652
3655
|
if (g)
|
|
3653
3656
|
return g;
|
|
3654
|
-
i.set(e, a),
|
|
3655
|
-
a.add(
|
|
3656
|
-
}) :
|
|
3657
|
-
a.set(x,
|
|
3657
|
+
i.set(e, a), va(e) ? e.forEach(function(h) {
|
|
3658
|
+
a.add(be(h, t, n, h, e, i));
|
|
3659
|
+
}) : ya(e) && e.forEach(function(h, x) {
|
|
3660
|
+
a.set(x, be(h, t, n, x, e, i));
|
|
3658
3661
|
});
|
|
3659
|
-
var p = c ? u ?
|
|
3660
|
-
return
|
|
3661
|
-
y && (x = h, h = e[x]),
|
|
3662
|
+
var p = c ? u ? Di : wi : u ? Ze : Je, y = d ? void 0 : p(e);
|
|
3663
|
+
return ni(y || e, function(h, x) {
|
|
3664
|
+
y && (x = h, h = e[x]), Jt(a, x, be(h, t, n, x, e, i));
|
|
3662
3665
|
}), a;
|
|
3663
3666
|
}
|
|
3664
|
-
var
|
|
3665
|
-
function
|
|
3666
|
-
return
|
|
3667
|
+
var Ga = 1, Qa = 4;
|
|
3668
|
+
function Ja(e) {
|
|
3669
|
+
return be(e, Ga | Qa);
|
|
3667
3670
|
}
|
|
3668
|
-
function
|
|
3671
|
+
function Ya(e) {
|
|
3669
3672
|
return Buffer.from(e).toString("utf8");
|
|
3670
3673
|
}
|
|
3671
|
-
function
|
|
3674
|
+
function Xa(e) {
|
|
3672
3675
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
|
3673
3676
|
}
|
|
3674
|
-
function
|
|
3677
|
+
function Za() {
|
|
3675
3678
|
return "UNSUPPORTED";
|
|
3676
3679
|
}
|
|
3677
3680
|
typeof Buffer < "u" && Buffer.from;
|
|
3678
|
-
var
|
|
3681
|
+
var Ie;
|
|
3679
3682
|
(function(e) {
|
|
3680
3683
|
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
|
3681
|
-
})(
|
|
3684
|
+
})(Ie = Ie || (Ie = {}));
|
|
3682
3685
|
const O = {
|
|
3683
3686
|
Measure: "measure",
|
|
3684
3687
|
MeasureTemplate: "measuretemplate",
|
|
@@ -3813,49 +3816,49 @@ const O = {
|
|
|
3813
3816
|
return !1;
|
|
3814
3817
|
}
|
|
3815
3818
|
};
|
|
3816
|
-
var Ie;
|
|
3817
|
-
(function(e) {
|
|
3818
|
-
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3819
|
-
})(Ie = Ie || (Ie = {}));
|
|
3820
3819
|
var _e;
|
|
3821
3820
|
(function(e) {
|
|
3822
|
-
e.
|
|
3821
|
+
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3823
3822
|
})(_e = _e || (_e = {}));
|
|
3824
3823
|
var ke;
|
|
3825
3824
|
(function(e) {
|
|
3826
|
-
e.
|
|
3825
|
+
e.ASC = "asc", e.DESC = "desc";
|
|
3827
3826
|
})(ke = ke || (ke = {}));
|
|
3828
|
-
|
|
3827
|
+
var Be;
|
|
3828
|
+
(function(e) {
|
|
3829
|
+
e.PRE = "pre", e.POST = "post";
|
|
3830
|
+
})(Be = Be || (Be = {}));
|
|
3831
|
+
function Qe(e, t = []) {
|
|
3829
3832
|
try {
|
|
3830
|
-
return e == null ? String(e) : typeof e == "string" ? `'${
|
|
3833
|
+
return e == null ? String(e) : typeof e == "string" ? `'${is(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => Qe(n, t)).join(", ")}]` : typeof e == "object" && e !== null ? "composeCode" in e ? e.composeCode : `{ ${Object.entries(e).filter(([r]) => !t.includes(r)).map(([r, s]) => `${/[^a-zA-Z0-9_$]/.test(r) ? `'${r}'` : r}: ${Qe(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
|
3831
3834
|
} catch (n) {
|
|
3832
3835
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
|
3833
3836
|
}
|
|
3834
3837
|
}
|
|
3835
|
-
function
|
|
3838
|
+
function eo(e) {
|
|
3836
3839
|
let t = e.length;
|
|
3837
3840
|
for (; t > 0 && e[t - 1] === void 0; )
|
|
3838
3841
|
t--;
|
|
3839
3842
|
return e.slice(0, t);
|
|
3840
3843
|
}
|
|
3841
|
-
function
|
|
3844
|
+
function to(e, t) {
|
|
3842
3845
|
return function(n) {
|
|
3843
3846
|
return function(...r) {
|
|
3844
|
-
const s =
|
|
3847
|
+
const s = eo(r), i = s.length, a = s.map((c) => Qe(c, ["guid"])).filter((c, d) => !(["", "{ }", "{}", "undefined", "null"].includes(c) && d === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
|
3845
3848
|
return u.composeCode = o, u;
|
|
3846
3849
|
};
|
|
3847
3850
|
};
|
|
3848
3851
|
}
|
|
3849
|
-
function
|
|
3850
|
-
return
|
|
3852
|
+
function It(e, t) {
|
|
3853
|
+
return to("filterFactory.logic", t)(e);
|
|
3851
3854
|
}
|
|
3852
|
-
function
|
|
3855
|
+
function no(e) {
|
|
3853
3856
|
return e && e.__serializable === "MembersFilter";
|
|
3854
3857
|
}
|
|
3855
|
-
function
|
|
3858
|
+
function ro(e) {
|
|
3856
3859
|
return e && e.__serializable === "CascadingFilter";
|
|
3857
3860
|
}
|
|
3858
|
-
var
|
|
3861
|
+
var Ue;
|
|
3859
3862
|
(function(e) {
|
|
3860
3863
|
const t = (n) => {
|
|
3861
3864
|
if (Array.isArray(n)) {
|
|
@@ -3868,37 +3871,37 @@ var Be;
|
|
|
3868
3871
|
}
|
|
3869
3872
|
return n;
|
|
3870
3873
|
};
|
|
3871
|
-
e.and =
|
|
3874
|
+
e.and = It((n, r) => ({
|
|
3872
3875
|
operator: "AND",
|
|
3873
3876
|
left: t(n),
|
|
3874
3877
|
right: t(r)
|
|
3875
|
-
}), "and"), e.or =
|
|
3878
|
+
}), "and"), e.or = It((n, r) => ({
|
|
3876
3879
|
operator: "OR",
|
|
3877
3880
|
left: t(n),
|
|
3878
3881
|
right: t(r)
|
|
3879
3882
|
}), "or");
|
|
3880
|
-
})(
|
|
3881
|
-
var be;
|
|
3882
|
-
(function(e) {
|
|
3883
|
-
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3884
|
-
})(be = be || (be = {}));
|
|
3883
|
+
})(Ue = Ue || (Ue = {}));
|
|
3885
3884
|
var Se;
|
|
3886
3885
|
(function(e) {
|
|
3887
|
-
e.
|
|
3886
|
+
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3888
3887
|
})(Se = Se || (Se = {}));
|
|
3889
3888
|
var Oe;
|
|
3890
3889
|
(function(e) {
|
|
3891
|
-
e.
|
|
3890
|
+
e.PERIOD = "PERIOD", e.DATE_RANGE = "DATE_RANGE";
|
|
3892
3891
|
})(Oe = Oe || (Oe = {}));
|
|
3893
3892
|
var ve;
|
|
3894
3893
|
(function(e) {
|
|
3895
|
-
e.
|
|
3894
|
+
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
|
3896
3895
|
})(ve = ve || (ve = {}));
|
|
3897
|
-
var
|
|
3896
|
+
var xe;
|
|
3897
|
+
(function(e) {
|
|
3898
|
+
e.YEARS = "years", e.QUARTERS = "quarters", e.MONTHS = "months", e.WEEKS = "weeks", e.DAYS = "days", e.HOURS = "hours", e.MINUTES = "minutes";
|
|
3899
|
+
})(xe = xe || (xe = {}));
|
|
3900
|
+
var qe;
|
|
3898
3901
|
(function(e) {
|
|
3899
3902
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
|
3900
|
-
})(
|
|
3901
|
-
const M = Object.assign(Object.assign(Object.assign({},
|
|
3903
|
+
})(qe = qe || (qe = {}));
|
|
3904
|
+
const M = Object.assign(Object.assign(Object.assign({}, Se), Oe), ve), so = {
|
|
3902
3905
|
[M.INCLUDE_ALL]: {
|
|
3903
3906
|
all: !0,
|
|
3904
3907
|
filterType: M.INCLUDE_ALL
|
|
@@ -3927,12 +3930,12 @@ const M = Object.assign(Object.assign(Object.assign({}, be), Se), Oe), Ya = {
|
|
|
3927
3930
|
filterType: M.SPECIFIC_ITEMS
|
|
3928
3931
|
}
|
|
3929
3932
|
};
|
|
3930
|
-
|
|
3931
|
-
var
|
|
3933
|
+
so.INCLUDE_ALL, xe.YEARS;
|
|
3934
|
+
var We;
|
|
3932
3935
|
(function(e) {
|
|
3933
3936
|
e.IS = "members", e.IS_NOT = "exclude", e.IS_WITHIN = "isWithin", e.TOP = "top", e.BOTTOM = "bottom", e.AFTER = "after", e.BEFORE = "before", e.STARTS_WITH = "startsWith", e.DOESNT_START_WITH = "doesntStartWith", e.ENDS_WITH = "endsWith", e.DOESNT_END_WITH = "doesntEndWith", e.CONTAINS = "contains", e.DOESNT_CONTAIN = "doesntContain", e.EQUALS = "equals", e.DOESNT_EQUAL = "doesntEqual", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.GREATER_THAN = "fromNotEqual", e.GREATER_THAN_OR_EQUAL = "from", e.LESS_THAN = "toNotEqual", e.LESS_THAN_OR_EQUAL = "to", e.BETWEEN = "between", e.IS_NOT_BETWEEN = "isNotBetween", e.MULTIPLE_CONDITION = "multipleCondition", e.NONE = "none";
|
|
3934
|
-
})(
|
|
3935
|
-
const
|
|
3937
|
+
})(We = We || (We = {}));
|
|
3938
|
+
const on = (e) => {
|
|
3936
3939
|
if (!e)
|
|
3937
3940
|
return { filters: void 0, relations: void 0 };
|
|
3938
3941
|
if (Array.isArray(e))
|
|
@@ -3946,24 +3949,24 @@ const an = (e) => {
|
|
|
3946
3949
|
return { left: c, right: d, operator: "AND" };
|
|
3947
3950
|
}
|
|
3948
3951
|
function r(a) {
|
|
3949
|
-
return a && (
|
|
3952
|
+
return a && (io(a) ? ro(a) ? n(a.filters) : (t.add(a), { instanceid: a.config.guid }) : ("left" in a && (a.left = r(a.left)), "right" in a && (a.right = r(a.right)), "composeCode" in a && delete a.composeCode, a));
|
|
3950
3953
|
}
|
|
3951
|
-
const s =
|
|
3954
|
+
const s = Ja(e), i = r(s);
|
|
3952
3955
|
return { filters: Array.from(t), relations: i };
|
|
3953
3956
|
};
|
|
3954
|
-
function
|
|
3957
|
+
function io(e) {
|
|
3955
3958
|
return "config" in e && "guid" in e.config;
|
|
3956
3959
|
}
|
|
3957
3960
|
O.TextAttribute, O.NumericAttribute, O.DateLevel;
|
|
3958
|
-
const
|
|
3959
|
-
const [t, n] = H(
|
|
3961
|
+
const au = (e) => {
|
|
3962
|
+
const [t, n] = H(Vt, {
|
|
3960
3963
|
isLoading: !0,
|
|
3961
3964
|
isError: !1,
|
|
3962
3965
|
isSuccess: !1,
|
|
3963
3966
|
status: "loading",
|
|
3964
3967
|
error: void 0,
|
|
3965
3968
|
data: void 0
|
|
3966
|
-
}), r =
|
|
3969
|
+
}), r = W();
|
|
3967
3970
|
R("useExecuteQuery");
|
|
3968
3971
|
const s = async (i) => {
|
|
3969
3972
|
try {
|
|
@@ -3977,9 +3980,9 @@ const Zo = (e) => {
|
|
|
3977
3980
|
offset: l,
|
|
3978
3981
|
ungroup: g,
|
|
3979
3982
|
onBeforeQuery: p
|
|
3980
|
-
} = S(e), { filters: y, relations: h } =
|
|
3983
|
+
} = S(e), { filters: y, relations: h } = on(c);
|
|
3981
3984
|
n({ type: "loading" });
|
|
3982
|
-
const x = await
|
|
3985
|
+
const x = await Vn(
|
|
3983
3986
|
{
|
|
3984
3987
|
dataSource: a,
|
|
3985
3988
|
dimensions: o,
|
|
@@ -3992,7 +3995,7 @@ const Zo = (e) => {
|
|
|
3992
3995
|
ungroup: g
|
|
3993
3996
|
},
|
|
3994
3997
|
i,
|
|
3995
|
-
{ onBeforeQuery:
|
|
3998
|
+
{ onBeforeQuery: Ye(p) }
|
|
3996
3999
|
);
|
|
3997
4000
|
n({ type: "success", data: x });
|
|
3998
4001
|
} catch (a) {
|
|
@@ -4000,31 +4003,31 @@ const Zo = (e) => {
|
|
|
4000
4003
|
}
|
|
4001
4004
|
};
|
|
4002
4005
|
return L(
|
|
4003
|
-
[...
|
|
4006
|
+
[...F(e), r],
|
|
4004
4007
|
() => {
|
|
4005
4008
|
const { app: i } = r.value, { enabled: a } = S(e);
|
|
4006
4009
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4007
4010
|
},
|
|
4008
4011
|
{ immediate: !0 }
|
|
4009
|
-
),
|
|
4010
|
-
},
|
|
4011
|
-
const t =
|
|
4012
|
+
), A(t.value);
|
|
4013
|
+
}, ou = (e) => {
|
|
4014
|
+
const t = _(void 0), n = _(void 0);
|
|
4012
4015
|
R("useExecuteQueryByWidgetId");
|
|
4013
|
-
const [r, s] = H(
|
|
4016
|
+
const [r, s] = H(Vt, {
|
|
4014
4017
|
isLoading: !0,
|
|
4015
4018
|
isError: !1,
|
|
4016
4019
|
isSuccess: !1,
|
|
4017
4020
|
status: "loading",
|
|
4018
4021
|
error: void 0,
|
|
4019
4022
|
data: void 0
|
|
4020
|
-
}), i =
|
|
4023
|
+
}), i = W(), a = async (o) => {
|
|
4021
4024
|
try {
|
|
4022
4025
|
s({ type: "loading" });
|
|
4023
|
-
const { filters: u, ...c } = S(e), { filters: d } =
|
|
4026
|
+
const { filters: u, ...c } = S(e), { filters: d } = on(Ye(u)), {
|
|
4024
4027
|
data: f,
|
|
4025
4028
|
query: l,
|
|
4026
4029
|
pivotQuery: g
|
|
4027
|
-
} = await
|
|
4030
|
+
} = await Kn({
|
|
4028
4031
|
...c,
|
|
4029
4032
|
filters: d,
|
|
4030
4033
|
app: o
|
|
@@ -4035,22 +4038,22 @@ const Zo = (e) => {
|
|
|
4035
4038
|
}
|
|
4036
4039
|
};
|
|
4037
4040
|
return L(
|
|
4038
|
-
[...
|
|
4041
|
+
[...F(e), i],
|
|
4039
4042
|
() => {
|
|
4040
4043
|
const { app: o } = i.value, { enabled: u } = S(e);
|
|
4041
4044
|
!o || !(u === void 0 || u === !0) || a(o);
|
|
4042
4045
|
},
|
|
4043
4046
|
{ immediate: !0 }
|
|
4044
4047
|
), {
|
|
4045
|
-
...
|
|
4048
|
+
...A(r.value),
|
|
4046
4049
|
query: t,
|
|
4047
4050
|
pivotQuery: n
|
|
4048
4051
|
};
|
|
4049
|
-
},
|
|
4052
|
+
}, uu = (e) => {
|
|
4050
4053
|
R("useExecuteCsvQuery");
|
|
4051
|
-
const t = new
|
|
4052
|
-
|
|
4053
|
-
]), [n, r] =
|
|
4054
|
+
const t = new z(Hn, [
|
|
4055
|
+
G()
|
|
4056
|
+
]), [n, r] = te({
|
|
4054
4057
|
isLoading: !0,
|
|
4055
4058
|
isError: !1,
|
|
4056
4059
|
isSuccess: !1,
|
|
@@ -4060,16 +4063,16 @@ const Zo = (e) => {
|
|
|
4060
4063
|
});
|
|
4061
4064
|
return t.subscribe((s) => {
|
|
4062
4065
|
r(s);
|
|
4063
|
-
}), t.run(S(e)), L([...
|
|
4066
|
+
}), t.run(S(e)), L([...F(e)], () => {
|
|
4064
4067
|
t.run(S(e));
|
|
4065
|
-
}),
|
|
4068
|
+
}), Q(() => {
|
|
4066
4069
|
t.destroy();
|
|
4067
|
-
}),
|
|
4068
|
-
},
|
|
4070
|
+
}), A(n.value);
|
|
4071
|
+
}, lu = (e) => {
|
|
4069
4072
|
R("useExecutePivotQuery");
|
|
4070
|
-
const t = new
|
|
4071
|
-
|
|
4072
|
-
]), [n, r] =
|
|
4073
|
+
const t = new z(zn, [
|
|
4074
|
+
G()
|
|
4075
|
+
]), [n, r] = te({
|
|
4073
4076
|
isLoading: !0,
|
|
4074
4077
|
isError: !1,
|
|
4075
4078
|
isSuccess: !1,
|
|
@@ -4079,16 +4082,16 @@ const Zo = (e) => {
|
|
|
4079
4082
|
});
|
|
4080
4083
|
return t.subscribe((s) => {
|
|
4081
4084
|
r(s);
|
|
4082
|
-
}), t.run(S(e)), L([...
|
|
4085
|
+
}), t.run(S(e)), L([...F(e)], () => {
|
|
4083
4086
|
t.run(S(e));
|
|
4084
|
-
}),
|
|
4087
|
+
}), Q(() => {
|
|
4085
4088
|
t.destroy();
|
|
4086
|
-
}),
|
|
4087
|
-
},
|
|
4089
|
+
}), A(n.value);
|
|
4090
|
+
}, cu = (e) => {
|
|
4088
4091
|
R("useExecuteCustomWidgetQuery");
|
|
4089
|
-
const t = new
|
|
4090
|
-
|
|
4091
|
-
]), [n, r] =
|
|
4092
|
+
const t = new z(Gn, [
|
|
4093
|
+
G()
|
|
4094
|
+
]), [n, r] = te({
|
|
4092
4095
|
data: void 0,
|
|
4093
4096
|
isLoading: !0,
|
|
4094
4097
|
isError: !1,
|
|
@@ -4098,17 +4101,17 @@ const Zo = (e) => {
|
|
|
4098
4101
|
});
|
|
4099
4102
|
return t.subscribe((s) => {
|
|
4100
4103
|
r(s);
|
|
4101
|
-
}), t.run(S(e)), L([...
|
|
4104
|
+
}), t.run(S(e)), L([...F(e)], () => {
|
|
4102
4105
|
t.run(S(e));
|
|
4103
|
-
}),
|
|
4106
|
+
}), Q(() => {
|
|
4104
4107
|
t.destroy();
|
|
4105
|
-
}),
|
|
4106
|
-
},
|
|
4108
|
+
}), A(n.value);
|
|
4109
|
+
}, du = (e) => {
|
|
4107
4110
|
R("useGetFilterMembers");
|
|
4108
4111
|
const { filter: t, parentFilters: n = [] } = S(e), r = {
|
|
4109
4112
|
selectedMembers: [],
|
|
4110
4113
|
allMembers: [],
|
|
4111
|
-
...
|
|
4114
|
+
...no(t) ? {
|
|
4112
4115
|
excludeMembers: t.config.excludeMembers,
|
|
4113
4116
|
enableMultiSelection: t.config.enableMultiSelection,
|
|
4114
4117
|
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
|
@@ -4117,7 +4120,7 @@ const Zo = (e) => {
|
|
|
4117
4120
|
enableMultiSelection: !1,
|
|
4118
4121
|
hasBackgroundFilter: !1
|
|
4119
4122
|
}
|
|
4120
|
-
}, s = new
|
|
4123
|
+
}, s = new z(Qn, [G()]), [i, a] = te({
|
|
4121
4124
|
isLoading: !0,
|
|
4122
4125
|
isError: !1,
|
|
4123
4126
|
isSuccess: !1,
|
|
@@ -4128,24 +4131,24 @@ const Zo = (e) => {
|
|
|
4128
4131
|
});
|
|
4129
4132
|
return s.subscribe((o) => {
|
|
4130
4133
|
a(o);
|
|
4131
|
-
}), s.run(S(e)), L([...
|
|
4134
|
+
}), s.run(S(e)), L([...F(e)], () => {
|
|
4132
4135
|
s.run(S(e));
|
|
4133
|
-
}),
|
|
4136
|
+
}), Q(() => {
|
|
4134
4137
|
s.destroy();
|
|
4135
|
-
}),
|
|
4136
|
-
},
|
|
4138
|
+
}), A(i.value);
|
|
4139
|
+
}, fu = (e) => {
|
|
4137
4140
|
R("useGetDashboardModel");
|
|
4138
|
-
const [t, n] = H(
|
|
4141
|
+
const [t, n] = H(pe, {
|
|
4139
4142
|
isLoading: !0,
|
|
4140
4143
|
isError: !1,
|
|
4141
4144
|
isSuccess: !1,
|
|
4142
4145
|
status: "loading",
|
|
4143
4146
|
error: void 0,
|
|
4144
4147
|
data: void 0
|
|
4145
|
-
}), r =
|
|
4148
|
+
}), r = W(), s = async (a) => {
|
|
4146
4149
|
try {
|
|
4147
4150
|
n({ type: "loading" });
|
|
4148
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = S(e), d = await
|
|
4151
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = S(e), d = await Yn(a.httpClient, o, {
|
|
4149
4152
|
includeWidgets: u,
|
|
4150
4153
|
includeFilters: c
|
|
4151
4154
|
});
|
|
@@ -4155,138 +4158,126 @@ const Zo = (e) => {
|
|
|
4155
4158
|
}
|
|
4156
4159
|
};
|
|
4157
4160
|
L(
|
|
4158
|
-
[...
|
|
4161
|
+
[...F(e), r],
|
|
4159
4162
|
() => {
|
|
4160
4163
|
const { app: a } = r.value, { enabled: o } = S(e);
|
|
4161
4164
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4162
4165
|
},
|
|
4163
4166
|
{ immediate: !0 }
|
|
4164
4167
|
);
|
|
4165
|
-
const i =
|
|
4166
|
-
return
|
|
4167
|
-
},
|
|
4168
|
+
const i = A(t.value);
|
|
4169
|
+
return A(Jn(i));
|
|
4170
|
+
}, pu = (e) => {
|
|
4168
4171
|
R("useGetDashboardModels");
|
|
4169
|
-
const [t, n] = H(
|
|
4172
|
+
const [t, n] = H(pe, {
|
|
4170
4173
|
isLoading: !0,
|
|
4171
4174
|
isError: !1,
|
|
4172
4175
|
isSuccess: !1,
|
|
4173
4176
|
status: "loading",
|
|
4174
4177
|
error: void 0,
|
|
4175
4178
|
data: void 0
|
|
4176
|
-
}), r =
|
|
4179
|
+
}), r = W(), s = async (a) => {
|
|
4177
4180
|
try {
|
|
4178
4181
|
n({ type: "loading" });
|
|
4179
|
-
const o = S(e), u = await
|
|
4182
|
+
const o = S(e), u = await Zn(a.httpClient, o);
|
|
4180
4183
|
n({ type: "success", data: u });
|
|
4181
4184
|
} catch (o) {
|
|
4182
4185
|
n({ type: "error", error: o });
|
|
4183
4186
|
}
|
|
4184
4187
|
};
|
|
4185
4188
|
L(
|
|
4186
|
-
[...
|
|
4189
|
+
[...F(e), r],
|
|
4187
4190
|
() => {
|
|
4188
4191
|
const { app: a } = r.value, { enabled: o } = S(e);
|
|
4189
4192
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4190
4193
|
},
|
|
4191
4194
|
{ immediate: !0 }
|
|
4192
4195
|
);
|
|
4193
|
-
const i =
|
|
4194
|
-
return
|
|
4195
|
-
},
|
|
4196
|
+
const i = A(t.value);
|
|
4197
|
+
return A(Xn(i));
|
|
4198
|
+
}, gu = (e) => {
|
|
4196
4199
|
R("useGetSharedFormula");
|
|
4197
|
-
const
|
|
4200
|
+
const t = new z(er, [
|
|
4201
|
+
G()
|
|
4202
|
+
]), [n, r] = te({
|
|
4198
4203
|
isLoading: !0,
|
|
4199
4204
|
isError: !1,
|
|
4200
4205
|
isSuccess: !1,
|
|
4201
4206
|
status: "loading",
|
|
4202
4207
|
error: void 0,
|
|
4203
|
-
|
|
4204
|
-
})
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
};
|
|
4214
|
-
L(
|
|
4215
|
-
[...A(e), r],
|
|
4216
|
-
() => {
|
|
4217
|
-
const { app: a } = r.value, { enabled: o } = S(e);
|
|
4218
|
-
!a || !(o === void 0 || o === !0) || s(a);
|
|
4219
|
-
},
|
|
4220
|
-
{ immediate: !0 }
|
|
4221
|
-
);
|
|
4222
|
-
const i = D(t.value);
|
|
4223
|
-
return D(
|
|
4224
|
-
Yn(i)
|
|
4225
|
-
);
|
|
4226
|
-
}, ou = (e) => {
|
|
4208
|
+
formula: null
|
|
4209
|
+
});
|
|
4210
|
+
return t.subscribe((s) => {
|
|
4211
|
+
r(s);
|
|
4212
|
+
}), t.run(S(e)), L([...F(e)], () => {
|
|
4213
|
+
t.run(S(e));
|
|
4214
|
+
}), Q(() => {
|
|
4215
|
+
t.destroy();
|
|
4216
|
+
}), A(n.value);
|
|
4217
|
+
}, hu = (e) => {
|
|
4227
4218
|
R("useGetWidgetModel");
|
|
4228
|
-
const [t, n] = H(
|
|
4219
|
+
const [t, n] = H(pe, {
|
|
4229
4220
|
isLoading: !0,
|
|
4230
4221
|
isError: !1,
|
|
4231
4222
|
isSuccess: !1,
|
|
4232
4223
|
status: "loading",
|
|
4233
4224
|
error: void 0,
|
|
4234
4225
|
data: void 0
|
|
4235
|
-
}), r =
|
|
4226
|
+
}), r = W(), s = async (i) => {
|
|
4236
4227
|
try {
|
|
4237
4228
|
n({ type: "loading" });
|
|
4238
|
-
const { dashboardOid: a, widgetOid: o } = S(e), u = await
|
|
4229
|
+
const { dashboardOid: a, widgetOid: o } = S(e), u = await tr(i.httpClient, a, o);
|
|
4239
4230
|
n({ type: "success", data: u });
|
|
4240
4231
|
} catch (a) {
|
|
4241
4232
|
n({ type: "error", error: a });
|
|
4242
4233
|
}
|
|
4243
4234
|
};
|
|
4244
4235
|
return L(
|
|
4245
|
-
[...
|
|
4236
|
+
[...F(e), r],
|
|
4246
4237
|
() => {
|
|
4247
4238
|
const { app: i } = r.value, { enabled: a } = S(e);
|
|
4248
4239
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4249
4240
|
},
|
|
4250
4241
|
{ immediate: !0 }
|
|
4251
|
-
),
|
|
4252
|
-
},
|
|
4242
|
+
), A(t.value);
|
|
4243
|
+
}, mu = (e) => {
|
|
4253
4244
|
R("useGetHierarchyModels");
|
|
4254
|
-
const [t, n] = H(
|
|
4245
|
+
const [t, n] = H(pe, {
|
|
4255
4246
|
isLoading: !0,
|
|
4256
4247
|
isError: !1,
|
|
4257
4248
|
isSuccess: !1,
|
|
4258
4249
|
status: "loading",
|
|
4259
4250
|
error: void 0,
|
|
4260
4251
|
data: void 0
|
|
4261
|
-
}), r =
|
|
4252
|
+
}), r = W(), s = async (i) => {
|
|
4262
4253
|
try {
|
|
4263
4254
|
n({ type: "loading" });
|
|
4264
|
-
const a = await
|
|
4255
|
+
const a = await nr(i.httpClient, S(e));
|
|
4265
4256
|
n({ type: "success", data: a });
|
|
4266
4257
|
} catch (a) {
|
|
4267
4258
|
n({ type: "error", error: a });
|
|
4268
4259
|
}
|
|
4269
4260
|
};
|
|
4270
4261
|
return L(
|
|
4271
|
-
[...
|
|
4262
|
+
[...F(e), r],
|
|
4272
4263
|
() => {
|
|
4273
4264
|
const { app: i } = r.value, { enabled: a } = S(e);
|
|
4274
4265
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4275
4266
|
},
|
|
4276
4267
|
{ immediate: !0 }
|
|
4277
|
-
),
|
|
4278
|
-
},
|
|
4279
|
-
const [r, s] = H(
|
|
4268
|
+
), A(t.value);
|
|
4269
|
+
}, yu = (e, t, n) => {
|
|
4270
|
+
const [r, s] = H(pe, {
|
|
4280
4271
|
isLoading: !0,
|
|
4281
4272
|
isError: !1,
|
|
4282
4273
|
isSuccess: !1,
|
|
4283
4274
|
status: "loading",
|
|
4284
4275
|
error: void 0,
|
|
4285
4276
|
data: void 0
|
|
4286
|
-
}), i =
|
|
4277
|
+
}), i = W(), a = async (o) => {
|
|
4287
4278
|
try {
|
|
4288
4279
|
s({ type: "loading" });
|
|
4289
|
-
const u =
|
|
4280
|
+
const u = Ye(e), c = t ? S(t) : {}, d = n ? S(n) : {}, f = {
|
|
4290
4281
|
requestConfig: d.requestConfig ? S(d.requestConfig) : {},
|
|
4291
4282
|
skipTrackingParam: !0
|
|
4292
4283
|
}, l = await o.call(
|
|
@@ -4300,28 +4291,64 @@ const Zo = (e) => {
|
|
|
4300
4291
|
}
|
|
4301
4292
|
};
|
|
4302
4293
|
return L(
|
|
4303
|
-
[...
|
|
4294
|
+
[...F(e, t, n), i],
|
|
4304
4295
|
() => {
|
|
4305
4296
|
const { app: o } = i.value, u = S(n || {}).enabled;
|
|
4306
4297
|
!o || !(u === void 0 || u === !0) || a(o.httpClient);
|
|
4307
4298
|
},
|
|
4308
4299
|
{ immediate: !0 }
|
|
4309
|
-
),
|
|
4300
|
+
), A(r.value);
|
|
4310
4301
|
};
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4302
|
+
class ao {
|
|
4303
|
+
constructor(t, n) {
|
|
4304
|
+
ue(this, "app", null);
|
|
4305
|
+
ue(this, "container", null);
|
|
4306
|
+
ue(this, "isDestroyed", !1);
|
|
4307
|
+
ue(this, "propsRef", null);
|
|
4308
|
+
this.componentClass = t, this.contexts = n;
|
|
4309
|
+
}
|
|
4310
|
+
/**
|
|
4311
|
+
* Mounts the Vue component into the container element.
|
|
4312
|
+
* This should only be called once when the Preact wrapper mounts.
|
|
4313
|
+
*
|
|
4314
|
+
* @param container - The DOM element to mount the Vue component into
|
|
4315
|
+
* @param props - Initial props to pass to the component
|
|
4316
|
+
*/
|
|
4317
|
+
mount(t, n) {
|
|
4318
|
+
if (this.app || this.isDestroyed)
|
|
4319
|
+
return;
|
|
4320
|
+
this.container = t, this.propsRef = _(n);
|
|
4321
|
+
const r = {
|
|
4322
|
+
setup: () => () => Fr(this.componentClass, this.propsRef.value)
|
|
4323
|
+
};
|
|
4324
|
+
this.app = Pr(r), this.app.provide(rr, this.contexts.sisenseContext), this.app.provide(sr, this.contexts.themeContext), this.app.provide(ir, this.contexts.customWidgetsContext), this.app.mount(t);
|
|
4325
|
+
}
|
|
4326
|
+
/**
|
|
4327
|
+
* Updates the props on the existing Vue component instance.
|
|
4328
|
+
* This triggers Vue's reactivity system to re-render the component
|
|
4329
|
+
* without destroying and recreating it.
|
|
4330
|
+
*
|
|
4331
|
+
* @param props - New props to apply to the component
|
|
4332
|
+
*/
|
|
4333
|
+
update(t) {
|
|
4334
|
+
!this.propsRef || this.isDestroyed || (this.propsRef.value = t);
|
|
4335
|
+
}
|
|
4336
|
+
/**
|
|
4337
|
+
* Destroys the Vue component and cleans up resources.
|
|
4338
|
+
* This should be called when the Preact wrapper unmounts.
|
|
4339
|
+
*/
|
|
4340
|
+
destroy() {
|
|
4341
|
+
this.isDestroyed || (this.isDestroyed = !0, this.app && (this.app.unmount(), this.app = null), this.container = null, this.propsRef = null);
|
|
4342
|
+
}
|
|
4343
|
+
/**
|
|
4344
|
+
* Returns whether the adapter has an active component instance.
|
|
4345
|
+
*/
|
|
4346
|
+
isActive() {
|
|
4347
|
+
return this.app !== null && !this.isDestroyed;
|
|
4348
|
+
}
|
|
4322
4349
|
}
|
|
4323
|
-
const
|
|
4324
|
-
const e =
|
|
4350
|
+
const bu = () => {
|
|
4351
|
+
const e = ar(), t = W(), n = or(), r = e;
|
|
4325
4352
|
return {
|
|
4326
4353
|
/**
|
|
4327
4354
|
* Registers a new custom widget.
|
|
@@ -4329,17 +4356,18 @@ const cu = () => {
|
|
|
4329
4356
|
* @param customWidgetType - The unique identifier for the custom widget type.
|
|
4330
4357
|
* @param customWidget - The custom widget component to register.
|
|
4331
4358
|
*/
|
|
4332
|
-
registerCustomWidget: (
|
|
4333
|
-
const
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4359
|
+
registerCustomWidget: (s, i) => {
|
|
4360
|
+
const a = {
|
|
4361
|
+
sisenseContext: t,
|
|
4362
|
+
themeContext: n,
|
|
4363
|
+
customWidgetsContext: r
|
|
4364
|
+
}, o = () => new ao(i, a), u = (c) => ur(lr, {
|
|
4365
|
+
adapterFactory: o,
|
|
4366
|
+
componentProps: c
|
|
4367
|
+
});
|
|
4368
|
+
e.value.customWidgetsMap.has(s) || e.value.customWidgetsMap.set(
|
|
4369
|
+
s,
|
|
4370
|
+
u
|
|
4343
4371
|
);
|
|
4344
4372
|
},
|
|
4345
4373
|
/**
|
|
@@ -4348,45 +4376,45 @@ const cu = () => {
|
|
|
4348
4376
|
* @param customWidgetType - The type of the custom widget.
|
|
4349
4377
|
* @returns True if the custom widget is registered, false otherwise.
|
|
4350
4378
|
*/
|
|
4351
|
-
hasCustomWidget: (
|
|
4379
|
+
hasCustomWidget: (s) => e.value.customWidgetsMap.has(s)
|
|
4352
4380
|
};
|
|
4353
|
-
},
|
|
4381
|
+
}, Su = (e, t = {}) => {
|
|
4354
4382
|
R("useComposedDashboard");
|
|
4355
|
-
const n = new
|
|
4356
|
-
|
|
4357
|
-
]), [r, s] =
|
|
4383
|
+
const n = new z(cr, [
|
|
4384
|
+
G()
|
|
4385
|
+
]), [r, s] = te(S(e));
|
|
4358
4386
|
n.subscribe(({ dashboard: o }) => {
|
|
4359
4387
|
s(o);
|
|
4360
|
-
}), n.run(S(e), t), L([...
|
|
4388
|
+
}), n.run(S(e), t), L([...F(e)], () => {
|
|
4361
4389
|
n.run(S(e), t);
|
|
4362
|
-
}),
|
|
4390
|
+
}), Q(() => {
|
|
4363
4391
|
n.destroy();
|
|
4364
4392
|
});
|
|
4365
|
-
const i =
|
|
4393
|
+
const i = ot(n, "setFilters"), a = ot(n, "setWidgetsLayout");
|
|
4366
4394
|
return {
|
|
4367
4395
|
dashboard: r,
|
|
4368
4396
|
setFilters: i,
|
|
4369
4397
|
setWidgetsLayout: a
|
|
4370
4398
|
};
|
|
4371
|
-
},
|
|
4399
|
+
}, Ou = (e, t) => {
|
|
4372
4400
|
R("useJtdWidget");
|
|
4373
|
-
const n = new
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
]), r =
|
|
4401
|
+
const n = new z(dr, [
|
|
4402
|
+
G(),
|
|
4403
|
+
fr()
|
|
4404
|
+
]), r = _(null);
|
|
4377
4405
|
n.subscribe((i) => {
|
|
4378
4406
|
r.value = i;
|
|
4379
4407
|
});
|
|
4380
4408
|
const s = () => {
|
|
4381
|
-
const i =
|
|
4409
|
+
const i = Ar(e), a = S(t);
|
|
4382
4410
|
n.run(i, a);
|
|
4383
4411
|
};
|
|
4384
|
-
return s(), L([...
|
|
4412
|
+
return s(), L([...F(e), ...F(t)], () => {
|
|
4385
4413
|
s();
|
|
4386
|
-
}),
|
|
4414
|
+
}), Q(() => {
|
|
4387
4415
|
n.destroy();
|
|
4388
4416
|
}), r;
|
|
4389
|
-
},
|
|
4417
|
+
}, oo = m({
|
|
4390
4418
|
props: {
|
|
4391
4419
|
/**
|
|
4392
4420
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -4404,8 +4432,8 @@ const cu = () => {
|
|
|
4404
4432
|
*/
|
|
4405
4433
|
position: Object
|
|
4406
4434
|
},
|
|
4407
|
-
setup: (e, { slots: t }) =>
|
|
4408
|
-
}),
|
|
4435
|
+
setup: (e, { slots: t }) => _t(pr, e, t, [])
|
|
4436
|
+
}), uo = ({
|
|
4409
4437
|
drilldownPaths: e,
|
|
4410
4438
|
initialDimension: t
|
|
4411
4439
|
}) => {
|
|
@@ -4413,24 +4441,24 @@ const cu = () => {
|
|
|
4413
4441
|
throw new Error(
|
|
4414
4442
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
4415
4443
|
);
|
|
4416
|
-
const n =
|
|
4417
|
-
|
|
4444
|
+
const n = _([]), r = _(), s = _([]), i = _([]), a = Ve(() => [
|
|
4445
|
+
gr(t),
|
|
4418
4446
|
...n.value.map(({ nextDimension: l }) => l)
|
|
4419
|
-
]), o =
|
|
4447
|
+
]), o = Ve(
|
|
4420
4448
|
() => e.value.filter((l) => {
|
|
4421
4449
|
if (O.isAttribute(l)) {
|
|
4422
4450
|
const y = l;
|
|
4423
4451
|
return a.value.every(
|
|
4424
|
-
(h) => !
|
|
4452
|
+
(h) => !ut(h, y)
|
|
4425
4453
|
);
|
|
4426
4454
|
}
|
|
4427
4455
|
const p = l;
|
|
4428
4456
|
return a.value.every(
|
|
4429
|
-
(y, h) =>
|
|
4457
|
+
(y, h) => ut(y, p.levels[h])
|
|
4430
4458
|
);
|
|
4431
4459
|
})
|
|
4432
4460
|
), u = (l, g, p) => {
|
|
4433
|
-
n.value =
|
|
4461
|
+
n.value = hr(
|
|
4434
4462
|
n.value,
|
|
4435
4463
|
l,
|
|
4436
4464
|
g,
|
|
@@ -4441,7 +4469,7 @@ const cu = () => {
|
|
|
4441
4469
|
}, d = () => {
|
|
4442
4470
|
n.value = [], f();
|
|
4443
4471
|
}, f = () => {
|
|
4444
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
|
4472
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = mr(
|
|
4445
4473
|
n.value,
|
|
4446
4474
|
t,
|
|
4447
4475
|
l
|
|
@@ -4458,7 +4486,7 @@ const cu = () => {
|
|
|
4458
4486
|
sliceDrilldownSelections: c,
|
|
4459
4487
|
clearDrilldownSelections: d
|
|
4460
4488
|
};
|
|
4461
|
-
},
|
|
4489
|
+
}, lo = m({
|
|
4462
4490
|
props: {
|
|
4463
4491
|
/**
|
|
4464
4492
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -4494,11 +4522,11 @@ const cu = () => {
|
|
|
4494
4522
|
},
|
|
4495
4523
|
setup: () => {
|
|
4496
4524
|
}
|
|
4497
|
-
}),
|
|
4525
|
+
}), co = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, fo = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, vu = /* @__PURE__ */ m({
|
|
4498
4526
|
__name: "drilldown-widget",
|
|
4499
|
-
props:
|
|
4527
|
+
props: lo.props,
|
|
4500
4528
|
setup(e) {
|
|
4501
|
-
const t = e, { drilldownPaths: n, initialDimension: r, config: s } =
|
|
4529
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = A(t), i = _(null), a = _([]), {
|
|
4502
4530
|
drilldownFilters: o,
|
|
4503
4531
|
// computed
|
|
4504
4532
|
drilldownDimension: u,
|
|
@@ -4510,40 +4538,40 @@ const cu = () => {
|
|
|
4510
4538
|
selectDrilldown: f,
|
|
4511
4539
|
sliceDrilldownSelections: l,
|
|
4512
4540
|
clearDrilldownSelections: g
|
|
4513
|
-
} =
|
|
4541
|
+
} = uo({
|
|
4514
4542
|
drilldownPaths: n,
|
|
4515
4543
|
initialDimension: r.value
|
|
4516
|
-
}), p = (
|
|
4517
|
-
f(a.value,
|
|
4518
|
-
}, y =
|
|
4519
|
-
const
|
|
4544
|
+
}), p = (D) => {
|
|
4545
|
+
f(a.value, D);
|
|
4546
|
+
}, y = Ve(() => {
|
|
4547
|
+
const D = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
|
4520
4548
|
return [
|
|
4521
|
-
|
|
4522
|
-
|
|
4549
|
+
yr(a.value, u.value),
|
|
4550
|
+
br(
|
|
4523
4551
|
d.value,
|
|
4524
4552
|
u.value,
|
|
4525
4553
|
p,
|
|
4526
|
-
|
|
4554
|
+
D
|
|
4527
4555
|
)
|
|
4528
4556
|
];
|
|
4529
|
-
}), h = (
|
|
4530
|
-
i.value =
|
|
4531
|
-
}, x = (
|
|
4532
|
-
a.value =
|
|
4557
|
+
}), h = (D) => {
|
|
4558
|
+
i.value = D;
|
|
4559
|
+
}, x = (D) => {
|
|
4560
|
+
a.value = D;
|
|
4533
4561
|
}, w = () => {
|
|
4534
4562
|
i.value = null;
|
|
4535
4563
|
};
|
|
4536
|
-
return (
|
|
4537
|
-
|
|
4564
|
+
return (D, C) => (Lr(), Er("div", co, [
|
|
4565
|
+
Te(D.$slots, "contextMenu", {
|
|
4538
4566
|
contextMenuProps: { position: i.value, itemSections: y.value, closeContextMenu: w }
|
|
4539
4567
|
}, () => [
|
|
4540
|
-
|
|
4568
|
+
lt(T(oo), {
|
|
4541
4569
|
position: i.value,
|
|
4542
4570
|
itemSections: y.value,
|
|
4543
4571
|
closeContextMenu: w
|
|
4544
4572
|
}, null, 8, ["position", "itemSections"])
|
|
4545
4573
|
]),
|
|
4546
|
-
|
|
4574
|
+
Te(D.$slots, "breadcrumbs", {
|
|
4547
4575
|
drilldownBreadcrumbsProps: {
|
|
4548
4576
|
clearDrilldownSelections: T(g),
|
|
4549
4577
|
sliceDrilldownSelections: T(l),
|
|
@@ -4551,15 +4579,15 @@ const cu = () => {
|
|
|
4551
4579
|
drilldownDimension: T(u)
|
|
4552
4580
|
}
|
|
4553
4581
|
}, () => [
|
|
4554
|
-
|
|
4582
|
+
lt(T(Rr), {
|
|
4555
4583
|
"clear-drilldown-selections": T(g),
|
|
4556
4584
|
"slice-drilldown-selections": T(l),
|
|
4557
4585
|
"filters-display-values": T(c),
|
|
4558
4586
|
"current-dimension": T(u)
|
|
4559
4587
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
4560
4588
|
]),
|
|
4561
|
-
|
|
4562
|
-
|
|
4589
|
+
Nr("div", fo, [
|
|
4590
|
+
Te(D.$slots, "chart", {
|
|
4563
4591
|
drilldownFilters: T(o),
|
|
4564
4592
|
drilldownDimension: T(u),
|
|
4565
4593
|
onDataPointsSelected: x,
|
|
@@ -4568,7 +4596,7 @@ const cu = () => {
|
|
|
4568
4596
|
])
|
|
4569
4597
|
]));
|
|
4570
4598
|
}
|
|
4571
|
-
}),
|
|
4599
|
+
}), xu = m({
|
|
4572
4600
|
props: {
|
|
4573
4601
|
/**
|
|
4574
4602
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -4586,13 +4614,6 @@ const cu = () => {
|
|
|
4586
4614
|
type: String,
|
|
4587
4615
|
required: !0
|
|
4588
4616
|
},
|
|
4589
|
-
/**
|
|
4590
|
-
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.contextMenuItems}
|
|
4591
|
-
*
|
|
4592
|
-
* @category Widget
|
|
4593
|
-
* @internal
|
|
4594
|
-
*/
|
|
4595
|
-
contextMenuItems: Array,
|
|
4596
4617
|
/**
|
|
4597
4618
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataOptions}
|
|
4598
4619
|
*
|
|
@@ -4645,13 +4666,6 @@ const cu = () => {
|
|
|
4645
4666
|
* @category Callbacks
|
|
4646
4667
|
*/
|
|
4647
4668
|
onBeforeRender: Function,
|
|
4648
|
-
/**
|
|
4649
|
-
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointContextMenuClose}
|
|
4650
|
-
*
|
|
4651
|
-
* @category Callbacks
|
|
4652
|
-
* @internal
|
|
4653
|
-
*/
|
|
4654
|
-
onContextMenuClose: Function,
|
|
4655
4669
|
/**
|
|
4656
4670
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.onDataPointClick}
|
|
4657
4671
|
*
|
|
@@ -4703,13 +4717,11 @@ const cu = () => {
|
|
|
4703
4717
|
*/
|
|
4704
4718
|
onDataReady: Function
|
|
4705
4719
|
},
|
|
4706
|
-
setup: (e) => b(
|
|
4707
|
-
}),
|
|
4720
|
+
setup: (e) => b(Sr, e)
|
|
4721
|
+
}), Cu = m({
|
|
4708
4722
|
props: {
|
|
4709
4723
|
/** @internal */
|
|
4710
4724
|
bottomSlot: Object,
|
|
4711
|
-
/** @internal */
|
|
4712
|
-
contextMenuItems: Array,
|
|
4713
4725
|
/**
|
|
4714
4726
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.dashboardOid}
|
|
4715
4727
|
*
|
|
@@ -4763,8 +4775,6 @@ const cu = () => {
|
|
|
4763
4775
|
* @category Callbacks
|
|
4764
4776
|
*/
|
|
4765
4777
|
onBeforeRender: Function,
|
|
4766
|
-
/** @internal */
|
|
4767
|
-
onContextMenuClose: Function,
|
|
4768
4778
|
/**
|
|
4769
4779
|
* {@inheritDoc @sisense/sdk-ui!WidgetByIdProps.onDataPointClick}
|
|
4770
4780
|
*
|
|
@@ -4815,8 +4825,8 @@ const cu = () => {
|
|
|
4815
4825
|
*/
|
|
4816
4826
|
onDataReady: Function
|
|
4817
4827
|
},
|
|
4818
|
-
setup: (e) => b(
|
|
4819
|
-
}),
|
|
4828
|
+
setup: (e) => b(Or, e)
|
|
4829
|
+
}), wu = m({
|
|
4820
4830
|
props: {
|
|
4821
4831
|
bottomSlot: Object,
|
|
4822
4832
|
dataOptions: {
|
|
@@ -4831,8 +4841,8 @@ const cu = () => {
|
|
|
4831
4841
|
topSlot: Object,
|
|
4832
4842
|
widgetStyleOptions: Object
|
|
4833
4843
|
},
|
|
4834
|
-
setup: (e) => b(
|
|
4835
|
-
}),
|
|
4844
|
+
setup: (e) => b(vr, e)
|
|
4845
|
+
}), Du = m({
|
|
4836
4846
|
props: {
|
|
4837
4847
|
/**
|
|
4838
4848
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -4926,8 +4936,8 @@ const cu = () => {
|
|
|
4926
4936
|
*/
|
|
4927
4937
|
onHeaderCellFormat: Function
|
|
4928
4938
|
},
|
|
4929
|
-
setup: (e) => b(
|
|
4930
|
-
}),
|
|
4939
|
+
setup: (e) => b(xr, e)
|
|
4940
|
+
}), ju = m({
|
|
4931
4941
|
props: {
|
|
4932
4942
|
/**
|
|
4933
4943
|
* Unique identifier of the widget
|
|
@@ -5052,8 +5062,8 @@ const cu = () => {
|
|
|
5052
5062
|
*/
|
|
5053
5063
|
onDataPointsSelected: Function
|
|
5054
5064
|
},
|
|
5055
|
-
setup: (e) => b(
|
|
5056
|
-
}),
|
|
5065
|
+
setup: (e) => b(Cr, e)
|
|
5066
|
+
}), Pu = m({
|
|
5057
5067
|
props: {
|
|
5058
5068
|
/**
|
|
5059
5069
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -5067,8 +5077,8 @@ const cu = () => {
|
|
|
5067
5077
|
*/
|
|
5068
5078
|
config: Object
|
|
5069
5079
|
},
|
|
5070
|
-
setup: (e) => b(
|
|
5071
|
-
}),
|
|
5080
|
+
setup: (e) => b(wr, e)
|
|
5081
|
+
}), Fu = m({
|
|
5072
5082
|
props: {
|
|
5073
5083
|
/**
|
|
5074
5084
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -5106,118 +5116,118 @@ const cu = () => {
|
|
|
5106
5116
|
*/
|
|
5107
5117
|
styleOptions: Object
|
|
5108
5118
|
},
|
|
5109
|
-
setup: (e) => b(
|
|
5119
|
+
setup: (e) => b(Dr, e)
|
|
5110
5120
|
});
|
|
5111
|
-
function
|
|
5112
|
-
return
|
|
5121
|
+
function po(e) {
|
|
5122
|
+
return jr.toDashboardProps(e);
|
|
5113
5123
|
}
|
|
5114
|
-
const
|
|
5124
|
+
const Au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5115
5125
|
__proto__: null,
|
|
5116
|
-
toDashboardProps:
|
|
5117
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5126
|
+
toDashboardProps: po
|
|
5127
|
+
}, Symbol.toStringTag, { value: "Module" })), go = (e, t) => ne.replaceFilters(e, t), ho = (e, t) => ne.addFilter(e, t), mo = (e, t) => ne.addFilters(e, t), yo = (e, t, n) => ne.replaceFilter(
|
|
5118
5128
|
e,
|
|
5119
5129
|
t,
|
|
5120
5130
|
n
|
|
5121
|
-
),
|
|
5131
|
+
), bo = (e, t) => ne.removeFilter(e, t), So = (e, t) => ne.removeFilters(e, t), Lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5122
5132
|
__proto__: null,
|
|
5123
|
-
addFilter:
|
|
5124
|
-
addFilters:
|
|
5125
|
-
removeFilter:
|
|
5126
|
-
removeFilters:
|
|
5127
|
-
replaceFilter:
|
|
5128
|
-
replaceFilters:
|
|
5129
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5130
|
-
function
|
|
5133
|
+
addFilter: ho,
|
|
5134
|
+
addFilters: mo,
|
|
5135
|
+
removeFilter: bo,
|
|
5136
|
+
removeFilters: So,
|
|
5137
|
+
replaceFilter: yo,
|
|
5138
|
+
replaceFilters: go
|
|
5139
|
+
}, Symbol.toStringTag, { value: "Module" })), Oo = (e) => B.toExecuteQueryParams(e), vo = (e) => B.toExecutePivotQueryParams(e);
|
|
5140
|
+
function xo(e) {
|
|
5131
5141
|
return B.toChartProps(e);
|
|
5132
5142
|
}
|
|
5133
|
-
function
|
|
5143
|
+
function Co(e) {
|
|
5134
5144
|
return B.toTableProps(e);
|
|
5135
5145
|
}
|
|
5136
|
-
function
|
|
5146
|
+
function wo(e) {
|
|
5137
5147
|
return B.toPivotTableProps(e);
|
|
5138
5148
|
}
|
|
5139
|
-
function
|
|
5149
|
+
function Do(e) {
|
|
5140
5150
|
return B.toChartWidgetProps(e);
|
|
5141
5151
|
}
|
|
5142
|
-
function
|
|
5152
|
+
function jo(e) {
|
|
5143
5153
|
return B.toPivotTableWidgetProps(e);
|
|
5144
5154
|
}
|
|
5145
|
-
function
|
|
5155
|
+
function Po(e) {
|
|
5146
5156
|
return B.toTextWidgetProps(e);
|
|
5147
5157
|
}
|
|
5148
|
-
function
|
|
5158
|
+
function Fo(e) {
|
|
5149
5159
|
return B.toWidgetProps(e);
|
|
5150
5160
|
}
|
|
5151
|
-
const
|
|
5161
|
+
const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5152
5162
|
__proto__: null,
|
|
5153
|
-
toChartProps:
|
|
5154
|
-
toChartWidgetProps:
|
|
5155
|
-
toExecutePivotQueryParams:
|
|
5156
|
-
toExecuteQueryParams:
|
|
5157
|
-
toPivotTableProps:
|
|
5158
|
-
toPivotTableWidgetProps:
|
|
5159
|
-
toTableProps:
|
|
5160
|
-
toTextWidgetProps:
|
|
5161
|
-
toWidgetProps:
|
|
5163
|
+
toChartProps: xo,
|
|
5164
|
+
toChartWidgetProps: Do,
|
|
5165
|
+
toExecutePivotQueryParams: vo,
|
|
5166
|
+
toExecuteQueryParams: Oo,
|
|
5167
|
+
toPivotTableProps: wo,
|
|
5168
|
+
toPivotTableWidgetProps: jo,
|
|
5169
|
+
toTableProps: Co,
|
|
5170
|
+
toTextWidgetProps: Po,
|
|
5171
|
+
toWidgetProps: Fo
|
|
5162
5172
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5163
5173
|
export {
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5174
|
+
To as AreaChart,
|
|
5175
|
+
Zo as AreaRangeChart,
|
|
5176
|
+
Jo as AreamapChart,
|
|
5177
|
+
Mo as BarChart,
|
|
5178
|
+
Qo as BoxplotChart,
|
|
5179
|
+
$o as CalendarHeatmapChart,
|
|
5180
|
+
Go as Chart,
|
|
5181
|
+
xu as ChartWidget,
|
|
5182
|
+
Io as ColumnChart,
|
|
5183
|
+
oo as ContextMenu,
|
|
5184
|
+
nu as CriteriaFilterTile,
|
|
5185
|
+
Tu as CustomWidgetsProvider,
|
|
5186
|
+
Fu as Dashboard,
|
|
5187
|
+
Pu as DashboardById,
|
|
5188
|
+
eu as DateRangeFilterTile,
|
|
5189
|
+
Rr as DrilldownBreadcrumbs,
|
|
5190
|
+
vu as DrilldownWidget,
|
|
5191
|
+
su as FilterTile,
|
|
5192
|
+
iu as FiltersPanel,
|
|
5193
|
+
_o as FunnelChart,
|
|
5194
|
+
zo as IndicatorChart,
|
|
5195
|
+
ko as LineChart,
|
|
5196
|
+
tu as MemberFilterTile,
|
|
5197
|
+
Bo as PieChart,
|
|
5198
|
+
Wo as PivotTable,
|
|
5199
|
+
Du as PivotTableWidget,
|
|
5200
|
+
Ho as PolarChart,
|
|
5201
|
+
ru as RelativeDateFilterTile,
|
|
5202
|
+
Uo as ScatterChart,
|
|
5203
|
+
Yo as ScattermapChart,
|
|
5204
|
+
Mu as SisenseContextProvider,
|
|
5205
|
+
Xo as StreamgraphChart,
|
|
5206
|
+
Ko as SunburstChart,
|
|
5207
|
+
qo as Table,
|
|
5208
|
+
wu as TableWidget,
|
|
5209
|
+
$u as ThemeProvider,
|
|
5210
|
+
Vo as TreemapChart,
|
|
5211
|
+
ju as Widget,
|
|
5212
|
+
Cu as WidgetById,
|
|
5213
|
+
Iu as boxWhiskerProcessResult,
|
|
5214
|
+
Lu as dashboardHelpers,
|
|
5215
|
+
Au as dashboardModelTranslator,
|
|
5216
|
+
_u as extractDimensionsAndMeasures,
|
|
5217
|
+
Su as useComposedDashboard,
|
|
5218
|
+
bu as useCustomWidgets,
|
|
5219
|
+
uu as useExecuteCsvQuery,
|
|
5220
|
+
cu as useExecuteCustomWidgetQuery,
|
|
5221
|
+
lu as useExecutePivotQuery,
|
|
5222
|
+
au as useExecuteQuery,
|
|
5223
|
+
ou as useExecuteQueryByWidgetId,
|
|
5224
|
+
yu as useFetch,
|
|
5225
|
+
fu as useGetDashboardModel,
|
|
5226
|
+
pu as useGetDashboardModels,
|
|
5227
|
+
du as useGetFilterMembers,
|
|
5228
|
+
mu as useGetHierarchyModels,
|
|
5229
|
+
gu as useGetSharedFormula,
|
|
5230
|
+
hu as useGetWidgetModel,
|
|
5231
|
+
Ou as useJtdWidget,
|
|
5232
|
+
Eu as widgetModelTranslator
|
|
5223
5233
|
};
|