@sisense/sdk-ui-vue 2.11.0 → 2.13.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 +35 -39
- package/dist/ai.js +1886 -1416
- package/dist/index.cjs +1 -1
- package/dist/index.js +719 -725
- package/dist/packages/sdk-ui-vue/src/ai/components/chatbot.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/ai/components/get-nlg-insights.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-nlq-result.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/ai/composables/use-get-query-recommendations.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider/ai-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/ai/providers/ai-context-provider/ai-context.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/area-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/area-range-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/areamap-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/bar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/boxplot-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/calendar-heatmap-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/column-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/funnel-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/indicator-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/line-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/pie-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/pivot-table.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/polar-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/scatter-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/scattermap-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/sunburst-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/table.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/treemap-chart.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/context-menu.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard-by-id.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard.d.ts +1 -13
- package/dist/packages/sdk-ui-vue/src/components/drilldown-breadcrumbs.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/drilldown-widget.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/filters/criteria-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/filters/date-range-filter-tile.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/components/filters/filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/filters/filters-panel.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/filters/member-filter-tile.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/filters/relative-date-filter-tile.d.ts +3 -3
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/widgets/table-widget.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-composed-dashboard.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/composables/use-execute-csv-query.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-execute-custom-widget-query.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-get-dashboard-model.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-get-filter-members.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/helpers/setup-helper.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/custom-widgets-provider/custom-widgets-context.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context-provider.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/theme-provider/theme-context.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/theme-provider/theme-provider.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/utilities/widget-model-translator.d.ts +1 -1
- package/dist/use-tracking-4caf6db2.cjs +1068 -0
- package/dist/{use-tracking-90a13197.js → use-tracking-dd4d60d8.js} +75896 -75570
- package/package.json +2 -2
- package/dist/use-tracking-579cab15.cjs +0 -1068
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
1
|
+
import { s as It, B as ln, a as b, T as cn, E as dn, z as fn, _ as pn, A as gn, D as hn, M as mn, I as yn, W as bn, d as Sn, O as On, P as vn, N as xn, L as Cn, n as wn, R as Dn, j as Pn, F as jn, b as Fn, c as An, q as Ln, e as En, H as Nn, f as Tn, g as Rn, r as U, i as we, h as Mn, k as Qe, l as _t, m as $n, o as In, p as _n, t as kt, u as Bt, S as it, v as Ut, w as be, x as qt, y as kn, C as q, G as V, J as M, K as T, Q as O, U as Vt, V as Bn, X as Je, Y as Un, Z as De, $ as qn, a0 as Pe, a1 as je, a2 as Vn, a3 as Wn, a4 as Hn, a5 as X, a6 as Kn, a7 as zn, a8 as Gn, a9 as Qn, aa as Jn, ab as Yn, ac as Xn, ad as Zn, ae as er, af as tr, ag as nr, ah as at, ai as rr, aj as sr, ak as ot, al as ir, am as ar, an as or, ao as ur, ap as lr, aq as cr, ar as dr, as as fr, at as pr, au as gr, av as hr, aw as Z, ax as W } from "./use-tracking-dd4d60d8.js";
|
|
2
|
+
import { aA as gu, ay as hu, az as mu, aB as yu, aC as bu } from "./use-tracking-dd4d60d8.js";
|
|
3
|
+
import { defineComponent as y, watch as R, toRefs as F, ref as B, onBeforeUnmount as Fe, createApp as mr, computed as Ve, openBlock as yr, createElementBlock as br, renderSlot as Te, createVNode as ut, unref as E, createElementVNode as Sr } from "vue";
|
|
4
|
+
const Or = y({
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
7
7
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -40,8 +40,8 @@ const vr = y({
|
|
|
40
40
|
required: !0
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
setup: (e, { slots: t }) =>
|
|
44
|
-
}),
|
|
43
|
+
setup: (e, { slots: t }) => It(ln, e, t, [])
|
|
44
|
+
}), bo = y({
|
|
45
45
|
props: {
|
|
46
46
|
/**
|
|
47
47
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -107,8 +107,8 @@ const vr = y({
|
|
|
107
107
|
*/
|
|
108
108
|
onDataPointsSelected: Function
|
|
109
109
|
},
|
|
110
|
-
setup: (e) => b(
|
|
111
|
-
}),
|
|
110
|
+
setup: (e) => b(cn, e)
|
|
111
|
+
}), So = y({
|
|
112
112
|
props: {
|
|
113
113
|
/**
|
|
114
114
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -174,8 +174,8 @@ const vr = y({
|
|
|
174
174
|
*/
|
|
175
175
|
styleOptions: Object
|
|
176
176
|
},
|
|
177
|
-
setup: (e) => b(
|
|
178
|
-
}),
|
|
177
|
+
setup: (e) => b(dn, e)
|
|
178
|
+
}), Oo = y({
|
|
179
179
|
props: {
|
|
180
180
|
/**
|
|
181
181
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -241,8 +241,8 @@ const vr = y({
|
|
|
241
241
|
*/
|
|
242
242
|
onDataPointsSelected: Function
|
|
243
243
|
},
|
|
244
|
-
setup: (e) => b(
|
|
245
|
-
}),
|
|
244
|
+
setup: (e) => b(fn, e)
|
|
245
|
+
}), vo = y({
|
|
246
246
|
props: {
|
|
247
247
|
/**
|
|
248
248
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -308,8 +308,8 @@ const vr = y({
|
|
|
308
308
|
*/
|
|
309
309
|
styleOptions: Object
|
|
310
310
|
},
|
|
311
|
-
setup: (e) => b(
|
|
312
|
-
}),
|
|
311
|
+
setup: (e) => b(pn, e)
|
|
312
|
+
}), xo = y({
|
|
313
313
|
props: {
|
|
314
314
|
/**
|
|
315
315
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -375,8 +375,8 @@ const vr = y({
|
|
|
375
375
|
*/
|
|
376
376
|
styleOptions: Object
|
|
377
377
|
},
|
|
378
|
-
setup: (e) => b(
|
|
379
|
-
}),
|
|
378
|
+
setup: (e) => b(gn, e)
|
|
379
|
+
}), Co = y({
|
|
380
380
|
props: {
|
|
381
381
|
/**
|
|
382
382
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -442,8 +442,8 @@ const vr = y({
|
|
|
442
442
|
*/
|
|
443
443
|
styleOptions: Object
|
|
444
444
|
},
|
|
445
|
-
setup: (e) => b(
|
|
446
|
-
}),
|
|
445
|
+
setup: (e) => b(hn, e)
|
|
446
|
+
}), wo = y({
|
|
447
447
|
props: {
|
|
448
448
|
/**
|
|
449
449
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -509,7 +509,7 @@ const vr = y({
|
|
|
509
509
|
*/
|
|
510
510
|
styleOptions: Object
|
|
511
511
|
},
|
|
512
|
-
setup: (e) => b(
|
|
512
|
+
setup: (e) => b(mn, e)
|
|
513
513
|
}), Do = y({
|
|
514
514
|
props: {
|
|
515
515
|
/**
|
|
@@ -576,8 +576,8 @@ const vr = y({
|
|
|
576
576
|
*/
|
|
577
577
|
styleOptions: Object
|
|
578
578
|
},
|
|
579
|
-
setup: (e) => b(
|
|
580
|
-
}),
|
|
579
|
+
setup: (e) => b(yn, e)
|
|
580
|
+
}), Po = y({
|
|
581
581
|
props: {
|
|
582
582
|
/**
|
|
583
583
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -615,8 +615,8 @@ const vr = y({
|
|
|
615
615
|
*/
|
|
616
616
|
onDataReady: Function
|
|
617
617
|
},
|
|
618
|
-
setup: (e) => b(
|
|
619
|
-
}),
|
|
618
|
+
setup: (e) => b(bn, e)
|
|
619
|
+
}), jo = y({
|
|
620
620
|
props: {
|
|
621
621
|
/**
|
|
622
622
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -654,7 +654,7 @@ const vr = y({
|
|
|
654
654
|
*/
|
|
655
655
|
styleOptions: Object
|
|
656
656
|
},
|
|
657
|
-
setup: (e) => b(
|
|
657
|
+
setup: (e) => b(Sn, e)
|
|
658
658
|
}), Fo = y({
|
|
659
659
|
props: {
|
|
660
660
|
/**
|
|
@@ -721,8 +721,8 @@ const vr = y({
|
|
|
721
721
|
*/
|
|
722
722
|
styleOptions: Object
|
|
723
723
|
},
|
|
724
|
-
setup: (e) => b(
|
|
725
|
-
}),
|
|
724
|
+
setup: (e) => b(On, e)
|
|
725
|
+
}), Ao = y({
|
|
726
726
|
props: {
|
|
727
727
|
/**
|
|
728
728
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -788,8 +788,8 @@ const vr = y({
|
|
|
788
788
|
*/
|
|
789
789
|
styleOptions: Object
|
|
790
790
|
},
|
|
791
|
-
setup: (e) => b(
|
|
792
|
-
}),
|
|
791
|
+
setup: (e) => b(vn, e)
|
|
792
|
+
}), Lo = y({
|
|
793
793
|
props: {
|
|
794
794
|
/**
|
|
795
795
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -855,8 +855,8 @@ const vr = y({
|
|
|
855
855
|
*/
|
|
856
856
|
styleOptions: Object
|
|
857
857
|
},
|
|
858
|
-
setup: (e) => b(
|
|
859
|
-
}),
|
|
858
|
+
setup: (e) => b(xn, e)
|
|
859
|
+
}), Eo = y({
|
|
860
860
|
props: {
|
|
861
861
|
/**
|
|
862
862
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -904,8 +904,8 @@ const vr = y({
|
|
|
904
904
|
*/
|
|
905
905
|
onDataReady: Function
|
|
906
906
|
},
|
|
907
|
-
setup: (e) => b(
|
|
908
|
-
}),
|
|
907
|
+
setup: (e) => b(Cn, e)
|
|
908
|
+
}), No = y({
|
|
909
909
|
props: {
|
|
910
910
|
/**
|
|
911
911
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -984,8 +984,8 @@ const vr = y({
|
|
|
984
984
|
*/
|
|
985
985
|
refreshCounter: Number
|
|
986
986
|
},
|
|
987
|
-
setup: (e) => b(
|
|
988
|
-
}),
|
|
987
|
+
setup: (e) => b(wn, e)
|
|
988
|
+
}), To = y({
|
|
989
989
|
props: {
|
|
990
990
|
/**
|
|
991
991
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1051,8 +1051,8 @@ const vr = y({
|
|
|
1051
1051
|
*/
|
|
1052
1052
|
onDataPointsSelected: Function
|
|
1053
1053
|
},
|
|
1054
|
-
setup: (e) => b(
|
|
1055
|
-
}),
|
|
1054
|
+
setup: (e) => b(Dn, e)
|
|
1055
|
+
}), Ro = y({
|
|
1056
1056
|
props: {
|
|
1057
1057
|
/**
|
|
1058
1058
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1100,8 +1100,8 @@ const vr = y({
|
|
|
1100
1100
|
*/
|
|
1101
1101
|
onDataPointClick: Function
|
|
1102
1102
|
},
|
|
1103
|
-
setup: (e) => b(
|
|
1104
|
-
}),
|
|
1103
|
+
setup: (e) => b(Pn, e)
|
|
1104
|
+
}), Mo = y({
|
|
1105
1105
|
props: {
|
|
1106
1106
|
/**
|
|
1107
1107
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1149,8 +1149,8 @@ const vr = y({
|
|
|
1149
1149
|
*/
|
|
1150
1150
|
onDataPointClick: Object
|
|
1151
1151
|
},
|
|
1152
|
-
setup: (e) => b(
|
|
1153
|
-
}),
|
|
1152
|
+
setup: (e) => b(jn, e)
|
|
1153
|
+
}), $o = y({
|
|
1154
1154
|
props: {
|
|
1155
1155
|
/**
|
|
1156
1156
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1216,8 +1216,8 @@ const vr = y({
|
|
|
1216
1216
|
*/
|
|
1217
1217
|
styleOptions: Object
|
|
1218
1218
|
},
|
|
1219
|
-
setup: (e) => b(
|
|
1220
|
-
}),
|
|
1219
|
+
setup: (e) => b(Fn, e)
|
|
1220
|
+
}), Io = y({
|
|
1221
1221
|
props: {
|
|
1222
1222
|
/**
|
|
1223
1223
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1277,8 +1277,8 @@ const vr = y({
|
|
|
1277
1277
|
*/
|
|
1278
1278
|
onEdit: Function
|
|
1279
1279
|
},
|
|
1280
|
-
setup: (e) => b(
|
|
1281
|
-
}),
|
|
1280
|
+
setup: (e) => b(An, e)
|
|
1281
|
+
}), _o = y({
|
|
1282
1282
|
props: {
|
|
1283
1283
|
/**
|
|
1284
1284
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1325,8 +1325,8 @@ const vr = y({
|
|
|
1325
1325
|
*/
|
|
1326
1326
|
onEdit: Function
|
|
1327
1327
|
},
|
|
1328
|
-
setup: (e) => b(
|
|
1329
|
-
}),
|
|
1328
|
+
setup: (e) => b(Ln, e)
|
|
1329
|
+
}), ko = y({
|
|
1330
1330
|
props: {
|
|
1331
1331
|
/**
|
|
1332
1332
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1366,8 +1366,8 @@ const vr = y({
|
|
|
1366
1366
|
*/
|
|
1367
1367
|
onEdit: Function
|
|
1368
1368
|
},
|
|
1369
|
-
setup: (e) => b(
|
|
1370
|
-
}),
|
|
1369
|
+
setup: (e) => b(En, e)
|
|
1370
|
+
}), Bo = y({
|
|
1371
1371
|
props: {
|
|
1372
1372
|
/**
|
|
1373
1373
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1412,8 +1412,8 @@ const vr = y({
|
|
|
1412
1412
|
*/
|
|
1413
1413
|
onEdit: Function
|
|
1414
1414
|
},
|
|
1415
|
-
setup: (e) => b(
|
|
1416
|
-
}),
|
|
1415
|
+
setup: (e) => b(Nn, e)
|
|
1416
|
+
}), Uo = y({
|
|
1417
1417
|
props: {
|
|
1418
1418
|
/**
|
|
1419
1419
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1442,8 +1442,8 @@ const vr = y({
|
|
|
1442
1442
|
*/
|
|
1443
1443
|
onEdit: Function
|
|
1444
1444
|
},
|
|
1445
|
-
setup: (e) => b(
|
|
1446
|
-
}),
|
|
1445
|
+
setup: (e) => b(Tn, e)
|
|
1446
|
+
}), qo = y({
|
|
1447
1447
|
props: {
|
|
1448
1448
|
/**
|
|
1449
1449
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1474,8 +1474,8 @@ const vr = y({
|
|
|
1474
1474
|
required: !0
|
|
1475
1475
|
}
|
|
1476
1476
|
},
|
|
1477
|
-
setup: (e) => b(
|
|
1478
|
-
}),
|
|
1477
|
+
setup: (e) => b(Rn, e)
|
|
1478
|
+
}), vr = {
|
|
1479
1479
|
type: "logger",
|
|
1480
1480
|
log(e) {
|
|
1481
1481
|
this.output("log", e);
|
|
@@ -1490,14 +1490,14 @@ const vr = y({
|
|
|
1490
1490
|
console && console[e] && console[e].apply(console, t);
|
|
1491
1491
|
}
|
|
1492
1492
|
};
|
|
1493
|
-
class
|
|
1493
|
+
class Se {
|
|
1494
1494
|
constructor(t) {
|
|
1495
1495
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1496
1496
|
this.init(t, n);
|
|
1497
1497
|
}
|
|
1498
1498
|
init(t) {
|
|
1499
1499
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1500
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
1500
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || vr, this.options = n, this.debug = n.debug;
|
|
1501
1501
|
}
|
|
1502
1502
|
log() {
|
|
1503
1503
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
@@ -1523,17 +1523,17 @@ class Oe {
|
|
|
1523
1523
|
return s && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
1524
1524
|
}
|
|
1525
1525
|
create(t) {
|
|
1526
|
-
return new
|
|
1526
|
+
return new Se(this.logger, {
|
|
1527
1527
|
prefix: `${this.prefix}:${t}:`,
|
|
1528
1528
|
...this.options
|
|
1529
1529
|
});
|
|
1530
1530
|
}
|
|
1531
1531
|
clone(t) {
|
|
1532
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
|
1532
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new Se(this.logger, t);
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
var _ = new
|
|
1536
|
-
class
|
|
1535
|
+
var _ = new Se();
|
|
1536
|
+
class Ae {
|
|
1537
1537
|
constructor() {
|
|
1538
1538
|
this.observers = {};
|
|
1539
1539
|
}
|
|
@@ -1561,22 +1561,22 @@ class Le {
|
|
|
1561
1561
|
});
|
|
1562
1562
|
}
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function ie() {
|
|
1565
1565
|
let e, t;
|
|
1566
1566
|
const n = new Promise((r, s) => {
|
|
1567
1567
|
e = r, t = s;
|
|
1568
1568
|
});
|
|
1569
1569
|
return n.resolve = e, n.reject = t, n;
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function lt(e) {
|
|
1572
1572
|
return e == null ? "" : "" + e;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function xr(e, t, n) {
|
|
1575
1575
|
e.forEach((r) => {
|
|
1576
1576
|
t[r] && (n[r] = t[r]);
|
|
1577
1577
|
});
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function Ye(e, t, n) {
|
|
1580
1580
|
function r(a) {
|
|
1581
1581
|
return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
|
|
1582
1582
|
}
|
|
@@ -1595,38 +1595,38 @@ function Ze(e, t, n) {
|
|
|
1595
1595
|
k: r(i.shift())
|
|
1596
1596
|
};
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function ct(e, t, n) {
|
|
1599
1599
|
const {
|
|
1600
1600
|
obj: r,
|
|
1601
1601
|
k: s
|
|
1602
|
-
} =
|
|
1602
|
+
} = Ye(e, t, Object);
|
|
1603
1603
|
r[s] = n;
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function Cr(e, t, n, r) {
|
|
1606
1606
|
const {
|
|
1607
1607
|
obj: s,
|
|
1608
1608
|
k: i
|
|
1609
|
-
} =
|
|
1609
|
+
} = Ye(e, t, Object);
|
|
1610
1610
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function Oe(e, t) {
|
|
1613
1613
|
const {
|
|
1614
1614
|
obj: n,
|
|
1615
1615
|
k: r
|
|
1616
|
-
} =
|
|
1616
|
+
} = Ye(e, t);
|
|
1617
1617
|
if (n)
|
|
1618
1618
|
return n[r];
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const r =
|
|
1622
|
-
return r !== void 0 ? r :
|
|
1620
|
+
function wr(e, t, n) {
|
|
1621
|
+
const r = Oe(e, n);
|
|
1622
|
+
return r !== void 0 ? r : Oe(t, n);
|
|
1623
1623
|
}
|
|
1624
|
-
function
|
|
1624
|
+
function Wt(e, t, n) {
|
|
1625
1625
|
for (const r in t)
|
|
1626
|
-
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]) :
|
|
1626
|
+
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]) : Wt(e[r], t[r], n) : e[r] = t[r]);
|
|
1627
1627
|
return e;
|
|
1628
1628
|
}
|
|
1629
|
-
function
|
|
1629
|
+
function J(e) {
|
|
1630
1630
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1631
1631
|
}
|
|
1632
1632
|
var Dr = {
|
|
@@ -1637,13 +1637,13 @@ var Dr = {
|
|
|
1637
1637
|
"'": "'",
|
|
1638
1638
|
"/": "/"
|
|
1639
1639
|
};
|
|
1640
|
-
function
|
|
1640
|
+
function Pr(e) {
|
|
1641
1641
|
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Dr[t]) : e;
|
|
1642
1642
|
}
|
|
1643
|
-
const
|
|
1643
|
+
const jr = [" ", ",", "?", "!", ";"];
|
|
1644
1644
|
function Fr(e, t, n) {
|
|
1645
1645
|
t = t || "", n = n || "";
|
|
1646
|
-
const r =
|
|
1646
|
+
const r = jr.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
1647
1647
|
if (r.length === 0)
|
|
1648
1648
|
return !0;
|
|
1649
1649
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
@@ -1654,7 +1654,7 @@ function Fr(e, t, n) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
return i;
|
|
1656
1656
|
}
|
|
1657
|
-
function
|
|
1657
|
+
function ve(e, t) {
|
|
1658
1658
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
1659
1659
|
if (!e)
|
|
1660
1660
|
return;
|
|
@@ -1680,16 +1680,16 @@ function xe(e, t) {
|
|
|
1680
1680
|
return u[o];
|
|
1681
1681
|
}
|
|
1682
1682
|
const c = r.slice(i + a).join(n);
|
|
1683
|
-
return c ?
|
|
1683
|
+
return c ? ve(u, c, n) : void 0;
|
|
1684
1684
|
}
|
|
1685
1685
|
s = s[r[i]];
|
|
1686
1686
|
}
|
|
1687
1687
|
return s;
|
|
1688
1688
|
}
|
|
1689
|
-
function
|
|
1689
|
+
function xe(e) {
|
|
1690
1690
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
1691
1691
|
}
|
|
1692
|
-
class
|
|
1692
|
+
class dt extends Ae {
|
|
1693
1693
|
constructor(t) {
|
|
1694
1694
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
1695
1695
|
ns: ["translation"],
|
|
@@ -1709,8 +1709,8 @@ class ft extends Le {
|
|
|
1709
1709
|
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
1710
1710
|
let o = [t, n];
|
|
1711
1711
|
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("."));
|
|
1712
|
-
const u =
|
|
1713
|
-
return u || !a || typeof r != "string" ? u :
|
|
1712
|
+
const u = Oe(this.data, o);
|
|
1713
|
+
return u || !a || typeof r != "string" ? u : ve(this.data && this.data[t] && this.data[t][n], r, i);
|
|
1714
1714
|
}
|
|
1715
1715
|
addResource(t, n, r, s) {
|
|
1716
1716
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -1718,7 +1718,7 @@ class ft extends Le {
|
|
|
1718
1718
|
};
|
|
1719
1719
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
|
1720
1720
|
let o = [t, n];
|
|
1721
|
-
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n),
|
|
1721
|
+
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n), ct(this.data, o, s), i.silent || this.emit("added", t, n, r, s);
|
|
1722
1722
|
}
|
|
1723
1723
|
addResources(t, n, r) {
|
|
1724
1724
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
|
@@ -1735,11 +1735,11 @@ class ft extends Le {
|
|
|
1735
1735
|
silent: !1
|
|
1736
1736
|
}, o = [t, n];
|
|
1737
1737
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
|
1738
|
-
let u =
|
|
1739
|
-
s ?
|
|
1738
|
+
let u = Oe(this.data, o) || {};
|
|
1739
|
+
s ? Wt(u, r, i) : u = {
|
|
1740
1740
|
...u,
|
|
1741
1741
|
...r
|
|
1742
|
-
},
|
|
1742
|
+
}, ct(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
|
1743
1743
|
}
|
|
1744
1744
|
removeResourceBundle(t, n) {
|
|
1745
1745
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
|
@@ -1763,7 +1763,7 @@ class ft extends Le {
|
|
|
1763
1763
|
return this.data;
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1766
|
+
var Ht = {
|
|
1767
1767
|
processors: {},
|
|
1768
1768
|
addPostProcessor(e) {
|
|
1769
1769
|
this.processors[e.name] = e;
|
|
@@ -1774,11 +1774,11 @@ var Wt = {
|
|
|
1774
1774
|
}), t;
|
|
1775
1775
|
}
|
|
1776
1776
|
};
|
|
1777
|
-
const
|
|
1778
|
-
class
|
|
1777
|
+
const ft = {};
|
|
1778
|
+
class Ce extends Ae {
|
|
1779
1779
|
constructor(t) {
|
|
1780
1780
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1781
|
-
super(),
|
|
1781
|
+
super(), xr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = _.create("translator");
|
|
1782
1782
|
}
|
|
1783
1783
|
changeLanguage(t) {
|
|
1784
1784
|
t && (this.language = t);
|
|
@@ -1855,53 +1855,53 @@ class we extends Le {
|
|
|
1855
1855
|
return s ? (f.res = C, f) : C;
|
|
1856
1856
|
}
|
|
1857
1857
|
if (i) {
|
|
1858
|
-
const C = m === "[object Array]",
|
|
1858
|
+
const C = m === "[object Array]", A = C ? [] : {}, $ = C ? p : g;
|
|
1859
1859
|
for (const j in l)
|
|
1860
1860
|
if (Object.prototype.hasOwnProperty.call(l, j)) {
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1861
|
+
const le = `${$}${i}${j}`;
|
|
1862
|
+
A[j] = this.translate(le, {
|
|
1863
1863
|
...n,
|
|
1864
1864
|
joinArrays: !1,
|
|
1865
1865
|
ns: o
|
|
1866
|
-
}),
|
|
1866
|
+
}), A[j] === le && (A[j] = l[j]);
|
|
1867
1867
|
}
|
|
1868
|
-
l =
|
|
1868
|
+
l = A;
|
|
1869
1869
|
}
|
|
1870
1870
|
} else if (w && typeof x == "string" && m === "[object Array]")
|
|
1871
1871
|
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
|
1872
1872
|
else {
|
|
1873
|
-
let C = !1,
|
|
1874
|
-
const $ = n.count !== void 0 && typeof n.count != "string", j =
|
|
1873
|
+
let C = !1, A = !1;
|
|
1874
|
+
const $ = n.count !== void 0 && typeof n.count != "string", j = Ce.hasDefaultValue(n), le = $ ? this.pluralResolver.getSuffix(c, n.count, n) : "", on = n.ordinal && $ ? this.pluralResolver.getSuffix(c, n.count, {
|
|
1875
1875
|
ordinal: !1
|
|
1876
|
-
}) : "",
|
|
1877
|
-
!this.isValidLookup(l) && j && (C = !0, l =
|
|
1878
|
-
const
|
|
1879
|
-
if (
|
|
1880
|
-
if (this.logger.log(
|
|
1876
|
+
}) : "", ne = n[`defaultValue${le}`] || n[`defaultValue${on}`] || n.defaultValue;
|
|
1877
|
+
!this.isValidLookup(l) && j && (C = !0, l = ne), this.isValidLookup(l) || (A = !0, l = a);
|
|
1878
|
+
const un = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && A ? void 0 : l, re = j && ne !== l && this.options.updateMissing;
|
|
1879
|
+
if (A || C || re) {
|
|
1880
|
+
if (this.logger.log(re ? "updateKey" : "missingKey", c, u, a, re ? ne : l), i) {
|
|
1881
1881
|
const L = this.resolve(a, {
|
|
1882
1882
|
...n,
|
|
1883
1883
|
keySeparator: !1
|
|
1884
1884
|
});
|
|
1885
1885
|
L && L.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.");
|
|
1886
1886
|
}
|
|
1887
|
-
let
|
|
1888
|
-
const
|
|
1889
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
1890
|
-
for (let L = 0; L <
|
|
1891
|
-
|
|
1887
|
+
let se = [];
|
|
1888
|
+
const ce = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
1889
|
+
if (this.options.saveMissingTo === "fallback" && ce && ce[0])
|
|
1890
|
+
for (let L = 0; L < ce.length; L++)
|
|
1891
|
+
se.push(ce[L]);
|
|
1892
1892
|
else
|
|
1893
|
-
this.options.saveMissingTo === "all" ?
|
|
1894
|
-
const
|
|
1895
|
-
const
|
|
1896
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(L, u, Q,
|
|
1893
|
+
this.options.saveMissingTo === "all" ? se = this.languageUtils.toResolveHierarchy(n.lng || this.language) : se.push(n.lng || this.language);
|
|
1894
|
+
const nt = (L, Q, rt) => {
|
|
1895
|
+
const st = j && rt !== l ? rt : un;
|
|
1896
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(L, u, Q, st, re, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(L, u, Q, st, re, n), this.emit("missingKey", L, u, Q, l);
|
|
1897
1897
|
};
|
|
1898
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && $ ?
|
|
1898
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? se.forEach((L) => {
|
|
1899
1899
|
this.pluralResolver.getSuffixes(L, n).forEach((Q) => {
|
|
1900
|
-
|
|
1900
|
+
nt([L], a + Q, n[`defaultValue${Q}`] || ne);
|
|
1901
1901
|
});
|
|
1902
|
-
}) :
|
|
1902
|
+
}) : nt(se, a, ne));
|
|
1903
1903
|
}
|
|
1904
|
-
l = this.extendTranslation(l, t, n, f, r),
|
|
1904
|
+
l = this.extendTranslation(l, t, n, f, r), A && l === a && this.options.appendNamespaceToMissingKey && (l = `${u}:${a}`), (A || 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));
|
|
1905
1905
|
}
|
|
1906
1906
|
return s ? (f.res = l, f) : l;
|
|
1907
1907
|
}
|
|
@@ -1943,7 +1943,7 @@ class we extends Le {
|
|
|
1943
1943
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
1944
1944
|
}
|
|
1945
1945
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
|
1946
|
-
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t =
|
|
1946
|
+
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t = Ht.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
1947
1947
|
i18nResolved: s,
|
|
1948
1948
|
...r
|
|
1949
1949
|
} : r, this)), t;
|
|
@@ -1959,7 +1959,7 @@ class we extends Le {
|
|
|
1959
1959
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
1960
1960
|
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 !== "", m = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
1961
1961
|
f.forEach((h) => {
|
|
1962
|
-
this.isValidLookup(r) || (o = h, !
|
|
1962
|
+
this.isValidLookup(r) || (o = h, !ft[`${m[0]}-${h}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ft[`${m[0]}-${h}`] = !0, this.logger.warn(`key "${s}" for languages "${m.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!!!")), m.forEach((x) => {
|
|
1963
1963
|
if (this.isValidLookup(r))
|
|
1964
1964
|
return;
|
|
1965
1965
|
a = x;
|
|
@@ -1969,15 +1969,15 @@ class we extends Le {
|
|
|
1969
1969
|
else {
|
|
1970
1970
|
let C;
|
|
1971
1971
|
l && (C = this.pluralResolver.getSuffix(x, n.count, n));
|
|
1972
|
-
const
|
|
1973
|
-
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d +
|
|
1972
|
+
const A = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
1973
|
+
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d + A)), p) {
|
|
1974
1974
|
const j = `${d}${this.options.contextSeparator}${n.context}`;
|
|
1975
|
-
w.push(j), l && (w.push(j + C), n.ordinal && C.indexOf($) === 0 && w.push(j + C.replace($, this.options.pluralSeparator)), g && w.push(j +
|
|
1975
|
+
w.push(j), l && (w.push(j + C), n.ordinal && C.indexOf($) === 0 && w.push(j + C.replace($, this.options.pluralSeparator)), g && w.push(j + A));
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
let
|
|
1979
|
-
for (;
|
|
1980
|
-
this.isValidLookup(r) || (i =
|
|
1978
|
+
let D;
|
|
1979
|
+
for (; D = w.pop(); )
|
|
1980
|
+
this.isValidLookup(r) || (i = D, r = this.getResource(x, h, D, n));
|
|
1981
1981
|
}));
|
|
1982
1982
|
});
|
|
1983
1983
|
}), {
|
|
@@ -2003,21 +2003,21 @@ class we extends Le {
|
|
|
2003
2003
|
return !1;
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
function
|
|
2006
|
+
function Re(e) {
|
|
2007
2007
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2008
2008
|
}
|
|
2009
|
-
class
|
|
2009
|
+
class pt {
|
|
2010
2010
|
constructor(t) {
|
|
2011
2011
|
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = _.create("languageUtils");
|
|
2012
2012
|
}
|
|
2013
2013
|
getScriptPartFromCode(t) {
|
|
2014
|
-
if (t =
|
|
2014
|
+
if (t = xe(t), !t || t.indexOf("-") < 0)
|
|
2015
2015
|
return null;
|
|
2016
2016
|
const n = t.split("-");
|
|
2017
2017
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
2018
2018
|
}
|
|
2019
2019
|
getLanguagePartFromCode(t) {
|
|
2020
|
-
if (t =
|
|
2020
|
+
if (t = xe(t), !t || t.indexOf("-") < 0)
|
|
2021
2021
|
return t;
|
|
2022
2022
|
const n = t.split("-");
|
|
2023
2023
|
return this.formatLanguageCode(n[0]);
|
|
@@ -2026,7 +2026,7 @@ class gt {
|
|
|
2026
2026
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
2027
2027
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2028
2028
|
let r = t.split("-");
|
|
2029
|
-
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] =
|
|
2029
|
+
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] = Re(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] = Re(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Re(r[2].toLowerCase()))), r.join("-");
|
|
2030
2030
|
}
|
|
2031
2031
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
2032
2032
|
}
|
|
@@ -2075,7 +2075,7 @@ class gt {
|
|
|
2075
2075
|
}), s;
|
|
2076
2076
|
}
|
|
2077
2077
|
}
|
|
2078
|
-
let
|
|
2078
|
+
let Ar = [{
|
|
2079
2079
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2080
2080
|
nr: [1, 2],
|
|
2081
2081
|
fc: 1
|
|
@@ -2167,7 +2167,7 @@ let Lr = [{
|
|
|
2167
2167
|
lngs: ["he", "iw"],
|
|
2168
2168
|
nr: [1, 2, 20, 21],
|
|
2169
2169
|
fc: 22
|
|
2170
|
-
}],
|
|
2170
|
+
}], Lr = {
|
|
2171
2171
|
1: function(e) {
|
|
2172
2172
|
return +(e > 1);
|
|
2173
2173
|
},
|
|
@@ -2235,7 +2235,7 @@ let Lr = [{
|
|
|
2235
2235
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
2236
2236
|
}
|
|
2237
2237
|
};
|
|
2238
|
-
const
|
|
2238
|
+
const Er = ["v1", "v2", "v3"], Nr = ["v4"], gt = {
|
|
2239
2239
|
zero: 0,
|
|
2240
2240
|
one: 1,
|
|
2241
2241
|
two: 2,
|
|
@@ -2243,21 +2243,21 @@ const Nr = ["v1", "v2", "v3"], Tr = ["v4"], ht = {
|
|
|
2243
2243
|
many: 4,
|
|
2244
2244
|
other: 5
|
|
2245
2245
|
};
|
|
2246
|
-
function
|
|
2246
|
+
function Tr() {
|
|
2247
2247
|
const e = {};
|
|
2248
|
-
return
|
|
2248
|
+
return Ar.forEach((t) => {
|
|
2249
2249
|
t.lngs.forEach((n) => {
|
|
2250
2250
|
e[n] = {
|
|
2251
2251
|
numbers: t.nr,
|
|
2252
|
-
plurals:
|
|
2252
|
+
plurals: Lr[t.fc]
|
|
2253
2253
|
};
|
|
2254
2254
|
});
|
|
2255
2255
|
}), e;
|
|
2256
2256
|
}
|
|
2257
|
-
class
|
|
2257
|
+
class Rr {
|
|
2258
2258
|
constructor(t) {
|
|
2259
2259
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2260
|
-
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
2260
|
+
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON || Nr.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 = Tr();
|
|
2261
2261
|
}
|
|
2262
2262
|
addRule(t, n) {
|
|
2263
2263
|
this.rules[t] = n;
|
|
@@ -2266,7 +2266,7 @@ class Mr {
|
|
|
2266
2266
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2267
2267
|
if (this.shouldUseIntlApi())
|
|
2268
2268
|
try {
|
|
2269
|
-
return new Intl.PluralRules(
|
|
2269
|
+
return new Intl.PluralRules(xe(t), {
|
|
2270
2270
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
2271
2271
|
});
|
|
2272
2272
|
} catch {
|
|
@@ -2286,7 +2286,7 @@ class Mr {
|
|
|
2286
2286
|
getSuffixes(t) {
|
|
2287
2287
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2288
2288
|
const r = this.getRule(t, n);
|
|
2289
|
-
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) =>
|
|
2289
|
+
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) => gt[s] - gt[i]).map((s) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : r.numbers.map((s) => this.getSuffix(t, s, n)) : [];
|
|
2290
2290
|
}
|
|
2291
2291
|
getSuffix(t, n) {
|
|
2292
2292
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
@@ -2301,14 +2301,14 @@ class Mr {
|
|
|
2301
2301
|
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();
|
|
2302
2302
|
}
|
|
2303
2303
|
shouldUseIntlApi() {
|
|
2304
|
-
return !
|
|
2304
|
+
return !Er.includes(this.options.compatibilityJSON);
|
|
2305
2305
|
}
|
|
2306
2306
|
}
|
|
2307
|
-
function
|
|
2308
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
|
2309
|
-
return !i && s && typeof n == "string" && (i =
|
|
2307
|
+
function ht(e, t, n) {
|
|
2308
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = wr(e, t, n);
|
|
2309
|
+
return !i && s && typeof n == "string" && (i = ve(e, n, r), i === void 0 && (i = ve(t, n, r))), i;
|
|
2310
2310
|
}
|
|
2311
|
-
class
|
|
2311
|
+
class Mr {
|
|
2312
2312
|
constructor() {
|
|
2313
2313
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2314
2314
|
this.logger = _.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
@@ -2319,7 +2319,7 @@ class $r {
|
|
|
2319
2319
|
escapeValue: !0
|
|
2320
2320
|
});
|
|
2321
2321
|
const n = t.interpolation;
|
|
2322
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
|
2322
|
+
this.escape = n.escape !== void 0 ? n.escape : Pr, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? J(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? J(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 ? J(n.nestingPrefix) : n.nestingPrefixEscaped || J("$t("), this.nestingSuffix = n.nestingSuffix ? J(n.nestingSuffix) : n.nestingSuffixEscaped || J(")"), 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();
|
|
2323
2323
|
}
|
|
2324
2324
|
reset() {
|
|
2325
2325
|
this.options && this.init(this.options);
|
|
@@ -2340,7 +2340,7 @@ class $r {
|
|
|
2340
2340
|
}
|
|
2341
2341
|
const d = (p) => {
|
|
2342
2342
|
if (p.indexOf(this.formatSeparator) < 0) {
|
|
2343
|
-
const w =
|
|
2343
|
+
const w = ht(n, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
|
2344
2344
|
return this.alwaysFormat ? this.format(w, void 0, r, {
|
|
2345
2345
|
...s,
|
|
2346
2346
|
...n,
|
|
@@ -2348,7 +2348,7 @@ class $r {
|
|
|
2348
2348
|
}) : w;
|
|
2349
2349
|
}
|
|
2350
2350
|
const m = p.split(this.formatSeparator), h = m.shift().trim(), x = m.join(this.formatSeparator).trim();
|
|
2351
|
-
return this.format(
|
|
2351
|
+
return this.format(ht(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), x, r, {
|
|
2352
2352
|
...s,
|
|
2353
2353
|
...n,
|
|
2354
2354
|
interpolationkey: h
|
|
@@ -2377,7 +2377,7 @@ class $r {
|
|
|
2377
2377
|
} else
|
|
2378
2378
|
this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`), a = "";
|
|
2379
2379
|
else
|
|
2380
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
|
2380
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = lt(a));
|
|
2381
2381
|
const h = p.safeValue(a);
|
|
2382
2382
|
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)
|
|
2383
2383
|
break;
|
|
@@ -2417,7 +2417,7 @@ class $r {
|
|
|
2417
2417
|
}
|
|
2418
2418
|
if (i = n(o.call(this, s[1].trim(), a), a), i && s[0] === t && typeof i != "string")
|
|
2419
2419
|
return i;
|
|
2420
|
-
typeof i != "string" && (i =
|
|
2420
|
+
typeof i != "string" && (i = lt(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, {
|
|
2421
2421
|
...r,
|
|
2422
2422
|
interpolationkey: s[1].trim()
|
|
2423
2423
|
}), i.trim())), t = t.replace(s[0], i), this.regexp.lastIndex = 0;
|
|
@@ -2425,7 +2425,7 @@ class $r {
|
|
|
2425
2425
|
return t;
|
|
2426
2426
|
}
|
|
2427
2427
|
}
|
|
2428
|
-
function
|
|
2428
|
+
function $r(e) {
|
|
2429
2429
|
let t = e.toLowerCase().trim();
|
|
2430
2430
|
const n = {};
|
|
2431
2431
|
if (e.indexOf("(") > -1) {
|
|
@@ -2444,44 +2444,44 @@ function Ir(e) {
|
|
|
2444
2444
|
formatOptions: n
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
function
|
|
2447
|
+
function Y(e) {
|
|
2448
2448
|
const t = {};
|
|
2449
2449
|
return function(r, s, i) {
|
|
2450
2450
|
const a = s + JSON.stringify(i);
|
|
2451
2451
|
let o = t[a];
|
|
2452
|
-
return o || (o = e(
|
|
2452
|
+
return o || (o = e(xe(s), i), t[a] = o), o(r);
|
|
2453
2453
|
};
|
|
2454
2454
|
}
|
|
2455
|
-
class
|
|
2455
|
+
class Ir {
|
|
2456
2456
|
constructor() {
|
|
2457
2457
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2458
2458
|
this.logger = _.create("formatter"), this.options = t, this.formats = {
|
|
2459
|
-
number:
|
|
2459
|
+
number: Y((n, r) => {
|
|
2460
2460
|
const s = new Intl.NumberFormat(n, {
|
|
2461
2461
|
...r
|
|
2462
2462
|
});
|
|
2463
2463
|
return (i) => s.format(i);
|
|
2464
2464
|
}),
|
|
2465
|
-
currency:
|
|
2465
|
+
currency: Y((n, r) => {
|
|
2466
2466
|
const s = new Intl.NumberFormat(n, {
|
|
2467
2467
|
...r,
|
|
2468
2468
|
style: "currency"
|
|
2469
2469
|
});
|
|
2470
2470
|
return (i) => s.format(i);
|
|
2471
2471
|
}),
|
|
2472
|
-
datetime:
|
|
2472
|
+
datetime: Y((n, r) => {
|
|
2473
2473
|
const s = new Intl.DateTimeFormat(n, {
|
|
2474
2474
|
...r
|
|
2475
2475
|
});
|
|
2476
2476
|
return (i) => s.format(i);
|
|
2477
2477
|
}),
|
|
2478
|
-
relativetime:
|
|
2478
|
+
relativetime: Y((n, r) => {
|
|
2479
2479
|
const s = new Intl.RelativeTimeFormat(n, {
|
|
2480
2480
|
...r
|
|
2481
2481
|
});
|
|
2482
2482
|
return (i) => s.format(i, r.range || "day");
|
|
2483
2483
|
}),
|
|
2484
|
-
list:
|
|
2484
|
+
list: Y((n, r) => {
|
|
2485
2485
|
const s = new Intl.ListFormat(n, {
|
|
2486
2486
|
...r
|
|
2487
2487
|
});
|
|
@@ -2499,7 +2499,7 @@ class _r {
|
|
|
2499
2499
|
this.formats[t.toLowerCase().trim()] = n;
|
|
2500
2500
|
}
|
|
2501
2501
|
addCached(t, n) {
|
|
2502
|
-
this.formats[t.toLowerCase().trim()] =
|
|
2502
|
+
this.formats[t.toLowerCase().trim()] = Y(n);
|
|
2503
2503
|
}
|
|
2504
2504
|
format(t, n, r) {
|
|
2505
2505
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -2507,7 +2507,7 @@ class _r {
|
|
|
2507
2507
|
const {
|
|
2508
2508
|
formatName: c,
|
|
2509
2509
|
formatOptions: d
|
|
2510
|
-
} =
|
|
2510
|
+
} = $r(u);
|
|
2511
2511
|
if (this.formats[c]) {
|
|
2512
2512
|
let f = o;
|
|
2513
2513
|
try {
|
|
@@ -2527,10 +2527,10 @@ class _r {
|
|
|
2527
2527
|
}, t);
|
|
2528
2528
|
}
|
|
2529
2529
|
}
|
|
2530
|
-
function
|
|
2530
|
+
function _r(e, t) {
|
|
2531
2531
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2532
2532
|
}
|
|
2533
|
-
class
|
|
2533
|
+
class kr extends Ae {
|
|
2534
2534
|
constructor(t, n, r) {
|
|
2535
2535
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
2536
2536
|
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = _.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);
|
|
@@ -2561,7 +2561,7 @@ class Br extends Le {
|
|
|
2561
2561
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
|
2562
2562
|
const o = {};
|
|
2563
2563
|
this.queue.forEach((u) => {
|
|
2564
|
-
|
|
2564
|
+
Cr(u.loaded, [i], a), _r(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
2565
2565
|
o[c] || (o[c] = {});
|
|
2566
2566
|
const d = u.loaded[c];
|
|
2567
2567
|
d.length && d.forEach((f) => {
|
|
@@ -2664,7 +2664,7 @@ class Br extends Le {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
}
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function mt() {
|
|
2668
2668
|
return {
|
|
2669
2669
|
debug: !1,
|
|
2670
2670
|
initImmediate: !0,
|
|
@@ -2723,22 +2723,22 @@ function yt() {
|
|
|
2723
2723
|
}
|
|
2724
2724
|
};
|
|
2725
2725
|
}
|
|
2726
|
-
function
|
|
2726
|
+
function yt(e) {
|
|
2727
2727
|
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;
|
|
2728
2728
|
}
|
|
2729
|
-
function
|
|
2729
|
+
function de() {
|
|
2730
2730
|
}
|
|
2731
|
-
function
|
|
2731
|
+
function Br(e) {
|
|
2732
2732
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
2733
2733
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
2734
2734
|
});
|
|
2735
2735
|
}
|
|
2736
|
-
class
|
|
2736
|
+
class ae extends Ae {
|
|
2737
2737
|
constructor() {
|
|
2738
2738
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2739
|
-
if (super(), this.options =
|
|
2739
|
+
if (super(), this.options = yt(t), this.services = {}, this.logger = _, this.modules = {
|
|
2740
2740
|
external: []
|
|
2741
|
-
},
|
|
2741
|
+
}, Br(this), n && !this.isInitialized && !t.isClone) {
|
|
2742
2742
|
if (!this.options.initImmediate)
|
|
2743
2743
|
return this.init(t, n), this;
|
|
2744
2744
|
setTimeout(() => {
|
|
@@ -2750,11 +2750,11 @@ class oe extends Le {
|
|
|
2750
2750
|
var t = this;
|
|
2751
2751
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
2752
2752
|
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]));
|
|
2753
|
-
const s =
|
|
2753
|
+
const s = mt();
|
|
2754
2754
|
this.options = {
|
|
2755
2755
|
...s,
|
|
2756
2756
|
...this.options,
|
|
2757
|
-
...
|
|
2757
|
+
...yt(n)
|
|
2758
2758
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
|
2759
2759
|
...s.interpolation,
|
|
2760
2760
|
...this.options.interpolation
|
|
@@ -2765,21 +2765,21 @@ class oe extends Le {
|
|
|
2765
2765
|
if (!this.options.isClone) {
|
|
2766
2766
|
this.modules.logger ? _.init(i(this.modules.logger), this.options) : _.init(null, this.options);
|
|
2767
2767
|
let d;
|
|
2768
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
2769
|
-
const f = new
|
|
2770
|
-
this.store = new
|
|
2768
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Ir);
|
|
2769
|
+
const f = new pt(this.options);
|
|
2770
|
+
this.store = new dt(this.options.resources, this.options);
|
|
2771
2771
|
const l = this.services;
|
|
2772
|
-
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new
|
|
2772
|
+
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Rr(f, {
|
|
2773
2773
|
prepend: this.options.pluralSeparator,
|
|
2774
2774
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
2775
2775
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2776
|
-
}), 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
|
|
2776
|
+
}), 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 Mr(this.options), l.utils = {
|
|
2777
2777
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2778
|
-
}, l.backendConnector = new
|
|
2778
|
+
}, l.backendConnector = new kr(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
|
2779
2779
|
for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2780
2780
|
m[h - 1] = arguments[h];
|
|
2781
2781
|
t.emit(g, ...m);
|
|
2782
|
-
}), 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
|
|
2782
|
+
}), 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 Ce(this.services, this.options), this.translator.on("*", function(g) {
|
|
2783
2783
|
for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2784
2784
|
m[h - 1] = arguments[h];
|
|
2785
2785
|
t.emit(g, ...m);
|
|
@@ -2787,7 +2787,7 @@ class oe extends Le {
|
|
|
2787
2787
|
g.init && g.init(this);
|
|
2788
2788
|
});
|
|
2789
2789
|
}
|
|
2790
|
-
if (this.format = this.options.interpolation.format, r || (r =
|
|
2790
|
+
if (this.format = this.options.interpolation.format, r || (r = de), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2791
2791
|
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2792
2792
|
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
2793
2793
|
}
|
|
@@ -2800,7 +2800,7 @@ class oe extends Le {
|
|
|
2800
2800
|
return t.store[d](...arguments), t;
|
|
2801
2801
|
};
|
|
2802
2802
|
});
|
|
2803
|
-
const u =
|
|
2803
|
+
const u = ie(), c = () => {
|
|
2804
2804
|
const d = (f, l) => {
|
|
2805
2805
|
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);
|
|
2806
2806
|
};
|
|
@@ -2811,7 +2811,7 @@ class oe extends Le {
|
|
|
2811
2811
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), u;
|
|
2812
2812
|
}
|
|
2813
2813
|
loadResources(t) {
|
|
2814
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2814
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : de;
|
|
2815
2815
|
const s = typeof t == "string" ? t : this.language;
|
|
2816
2816
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2817
2817
|
if (s && s.toLowerCase() === "cimode")
|
|
@@ -2830,8 +2830,8 @@ class oe extends Le {
|
|
|
2830
2830
|
r(null);
|
|
2831
2831
|
}
|
|
2832
2832
|
reloadResources(t, n, r) {
|
|
2833
|
-
const s =
|
|
2834
|
-
return t || (t = this.languages), n || (n = this.options.ns), r || (r =
|
|
2833
|
+
const s = ie();
|
|
2834
|
+
return t || (t = this.languages), n || (n = this.options.ns), r || (r = de), this.services.backendConnector.reload(t, n, (i) => {
|
|
2835
2835
|
s.resolve(), r(i);
|
|
2836
2836
|
}), s;
|
|
2837
2837
|
}
|
|
@@ -2840,7 +2840,7 @@ class oe extends Le {
|
|
|
2840
2840
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
2841
2841
|
if (!t.type)
|
|
2842
2842
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
2843
|
-
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" &&
|
|
2843
|
+
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;
|
|
2844
2844
|
}
|
|
2845
2845
|
setResolvedLanguage(t) {
|
|
2846
2846
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -2855,7 +2855,7 @@ class oe extends Le {
|
|
|
2855
2855
|
changeLanguage(t, n) {
|
|
2856
2856
|
var r = this;
|
|
2857
2857
|
this.isLanguageChangingTo = t;
|
|
2858
|
-
const s =
|
|
2858
|
+
const s = ie();
|
|
2859
2859
|
this.emit("languageChanging", t);
|
|
2860
2860
|
const i = (u) => {
|
|
2861
2861
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -2923,7 +2923,7 @@ class oe extends Le {
|
|
|
2923
2923
|
return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, t) && (!s || a(i, t)));
|
|
2924
2924
|
}
|
|
2925
2925
|
loadNamespaces(t, n) {
|
|
2926
|
-
const r =
|
|
2926
|
+
const r = ie();
|
|
2927
2927
|
return this.options.ns ? (typeof t == "string" && (t = [t]), t.forEach((s) => {
|
|
2928
2928
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
2929
2929
|
}), this.loadResources((s) => {
|
|
@@ -2931,7 +2931,7 @@ class oe extends Le {
|
|
|
2931
2931
|
}), r) : (n && n(), Promise.resolve());
|
|
2932
2932
|
}
|
|
2933
2933
|
loadLanguages(t, n) {
|
|
2934
|
-
const r =
|
|
2934
|
+
const r = ie();
|
|
2935
2935
|
typeof t == "string" && (t = [t]);
|
|
2936
2936
|
const s = this.options.preload || [], i = t.filter((a) => s.indexOf(a) < 0);
|
|
2937
2937
|
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
@@ -2941,29 +2941,29 @@ class oe extends Le {
|
|
|
2941
2941
|
dir(t) {
|
|
2942
2942
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
|
2943
2943
|
return "rtl";
|
|
2944
|
-
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
|
|
2944
|
+
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 pt(mt());
|
|
2945
2945
|
return n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
|
2946
2946
|
}
|
|
2947
2947
|
static createInstance() {
|
|
2948
2948
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2949
|
-
return new
|
|
2949
|
+
return new ae(t, n);
|
|
2950
2950
|
}
|
|
2951
2951
|
cloneInstance() {
|
|
2952
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2952
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : de;
|
|
2953
2953
|
const r = t.forkResourceStore;
|
|
2954
2954
|
r && delete t.forkResourceStore;
|
|
2955
2955
|
const s = {
|
|
2956
2956
|
...this.options,
|
|
2957
2957
|
...t,
|
|
2958
2958
|
isClone: !0
|
|
2959
|
-
}, i = new
|
|
2959
|
+
}, i = new ae(s);
|
|
2960
2960
|
return (t.debug !== void 0 || t.prefix !== void 0) && (i.logger = i.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
2961
2961
|
i[o] = this[o];
|
|
2962
2962
|
}), i.services = {
|
|
2963
2963
|
...this.services
|
|
2964
2964
|
}, i.services.utils = {
|
|
2965
2965
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
2966
|
-
}, r && (i.store = new
|
|
2966
|
+
}, r && (i.store = new dt(this.store.data, s), i.services.resourceStore = i.store), i.translator = new Ce(i.services, s), i.translator.on("*", function(o) {
|
|
2967
2967
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
|
2968
2968
|
c[d - 1] = arguments[d];
|
|
2969
2969
|
i.emit(o, ...c);
|
|
@@ -2981,42 +2981,42 @@ class oe extends Le {
|
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
|
-
const
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
const
|
|
2984
|
+
const P = ae.createInstance();
|
|
2985
|
+
P.createInstance = ae.createInstance;
|
|
2986
|
+
P.createInstance;
|
|
2987
|
+
P.dir;
|
|
2988
|
+
P.init;
|
|
2989
|
+
P.loadResources;
|
|
2990
|
+
P.reloadResources;
|
|
2991
|
+
P.use;
|
|
2992
|
+
P.changeLanguage;
|
|
2993
|
+
P.getFixedT;
|
|
2994
|
+
P.t;
|
|
2995
|
+
P.exists;
|
|
2996
|
+
P.setDefaultNamespace;
|
|
2997
|
+
P.hasLoadedNamespace;
|
|
2998
|
+
P.loadNamespaces;
|
|
2999
|
+
P.loadLanguages;
|
|
3000
|
+
const Ur = {
|
|
3001
3001
|
error: "Error"
|
|
3002
|
-
},
|
|
3002
|
+
}, qr = {
|
|
3003
3003
|
error: "Помилка"
|
|
3004
|
-
},
|
|
3005
|
-
en:
|
|
3006
|
-
uk:
|
|
3007
|
-
}, I =
|
|
3008
|
-
defaultNS:
|
|
3009
|
-
resources:
|
|
3004
|
+
}, bt = "common", Vr = {
|
|
3005
|
+
en: Ur,
|
|
3006
|
+
uk: qr
|
|
3007
|
+
}, I = P.createInstance({
|
|
3008
|
+
defaultNS: bt,
|
|
3009
|
+
resources: Hr(Vr, bt),
|
|
3010
3010
|
lng: "en",
|
|
3011
3011
|
fallbackLng: "en"
|
|
3012
|
-
}),
|
|
3012
|
+
}), Kt = {
|
|
3013
3013
|
i18nextInstance: I,
|
|
3014
3014
|
initPromise: I.init().then(() => I)
|
|
3015
|
-
},
|
|
3016
|
-
|
|
3017
|
-
const
|
|
3018
|
-
if (
|
|
3019
|
-
return
|
|
3015
|
+
}, fe = /* @__PURE__ */ new Map();
|
|
3016
|
+
fe.set("common", Kt);
|
|
3017
|
+
const Wr = (e) => {
|
|
3018
|
+
if (fe.has(e.namespace))
|
|
3019
|
+
return fe.get(e.namespace);
|
|
3020
3020
|
if (e.plugins)
|
|
3021
3021
|
for (const i of e.plugins)
|
|
3022
3022
|
I.use(i);
|
|
@@ -3026,7 +3026,7 @@ const Kr = (e) => {
|
|
|
3026
3026
|
const t = I.cloneInstance({
|
|
3027
3027
|
defaultNS: e.namespace
|
|
3028
3028
|
});
|
|
3029
|
-
let n =
|
|
3029
|
+
let n = Kt.initPromise.then(() => t);
|
|
3030
3030
|
t.on("languageChanged", (i) => {
|
|
3031
3031
|
I.language !== i && I.changeLanguage(i);
|
|
3032
3032
|
}), I.on("languageChanged", (i) => {
|
|
@@ -3035,14 +3035,14 @@ const Kr = (e) => {
|
|
|
3035
3035
|
const r = e.language || "en";
|
|
3036
3036
|
I.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
|
3037
3037
|
const s = { initPromise: n, i18nextInstance: t };
|
|
3038
|
-
return
|
|
3038
|
+
return fe.set(e.namespace, s), s;
|
|
3039
3039
|
};
|
|
3040
|
-
function
|
|
3040
|
+
function Hr(e, t) {
|
|
3041
3041
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3042
3042
|
[t]: e[r]
|
|
3043
3043
|
}, n), {});
|
|
3044
3044
|
}
|
|
3045
|
-
function
|
|
3045
|
+
function Kr(e) {
|
|
3046
3046
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
|
3047
3047
|
}
|
|
3048
3048
|
const zr = {
|
|
@@ -3071,7 +3071,7 @@ const zr = {
|
|
|
3071
3071
|
},
|
|
3072
3072
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
|
3073
3073
|
}
|
|
3074
|
-
},
|
|
3074
|
+
}, Gr = {
|
|
3075
3075
|
errors: {
|
|
3076
3076
|
measure: {
|
|
3077
3077
|
unsupportedType: "Непідтримуваний тип measure",
|
|
@@ -3097,47 +3097,47 @@ const zr = {
|
|
|
3097
3097
|
},
|
|
3098
3098
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
|
3099
3099
|
}
|
|
3100
|
-
}, Qr = "sdkData",
|
|
3100
|
+
}, Qr = "sdkData", Jr = {
|
|
3101
3101
|
en: zr,
|
|
3102
|
-
uk:
|
|
3102
|
+
uk: Gr
|
|
3103
3103
|
};
|
|
3104
|
-
function
|
|
3105
|
-
return
|
|
3106
|
-
resource:
|
|
3104
|
+
function Yr() {
|
|
3105
|
+
return Wr({
|
|
3106
|
+
resource: Jr,
|
|
3107
3107
|
language: "en",
|
|
3108
3108
|
namespace: Qr
|
|
3109
3109
|
});
|
|
3110
3110
|
}
|
|
3111
|
-
|
|
3111
|
+
Yr();
|
|
3112
3112
|
function Xr() {
|
|
3113
3113
|
this.__data__ = [], this.size = 0;
|
|
3114
3114
|
}
|
|
3115
3115
|
function zt(e, t) {
|
|
3116
3116
|
return e === t || e !== e && t !== t;
|
|
3117
3117
|
}
|
|
3118
|
-
function
|
|
3118
|
+
function Le(e, t) {
|
|
3119
3119
|
for (var n = e.length; n--; )
|
|
3120
3120
|
if (zt(e[n][0], t))
|
|
3121
3121
|
return n;
|
|
3122
3122
|
return -1;
|
|
3123
3123
|
}
|
|
3124
|
-
var
|
|
3125
|
-
function
|
|
3126
|
-
var t = this.__data__, n =
|
|
3124
|
+
var Zr = Array.prototype, es = Zr.splice;
|
|
3125
|
+
function ts(e) {
|
|
3126
|
+
var t = this.__data__, n = Le(t, e);
|
|
3127
3127
|
if (n < 0)
|
|
3128
3128
|
return !1;
|
|
3129
3129
|
var r = t.length - 1;
|
|
3130
|
-
return n == r ? t.pop() :
|
|
3130
|
+
return n == r ? t.pop() : es.call(t, n, 1), --this.size, !0;
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3133
|
-
var t = this.__data__, n =
|
|
3132
|
+
function ns(e) {
|
|
3133
|
+
var t = this.__data__, n = Le(t, e);
|
|
3134
3134
|
return n < 0 ? void 0 : t[n][1];
|
|
3135
3135
|
}
|
|
3136
|
-
function
|
|
3137
|
-
return
|
|
3136
|
+
function rs(e) {
|
|
3137
|
+
return Le(this.__data__, e) > -1;
|
|
3138
3138
|
}
|
|
3139
|
-
function
|
|
3140
|
-
var n = this.__data__, r =
|
|
3139
|
+
function ss(e, t) {
|
|
3140
|
+
var n = this.__data__, r = Le(n, e);
|
|
3141
3141
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
3142
3142
|
}
|
|
3143
3143
|
function k(e) {
|
|
@@ -3148,37 +3148,37 @@ function k(e) {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
}
|
|
3150
3150
|
k.prototype.clear = Xr;
|
|
3151
|
-
k.prototype.delete =
|
|
3152
|
-
k.prototype.get =
|
|
3153
|
-
k.prototype.has =
|
|
3154
|
-
k.prototype.set =
|
|
3155
|
-
function
|
|
3151
|
+
k.prototype.delete = ts;
|
|
3152
|
+
k.prototype.get = ns;
|
|
3153
|
+
k.prototype.has = rs;
|
|
3154
|
+
k.prototype.set = ss;
|
|
3155
|
+
function is() {
|
|
3156
3156
|
this.__data__ = new k(), this.size = 0;
|
|
3157
3157
|
}
|
|
3158
|
-
function
|
|
3158
|
+
function as(e) {
|
|
3159
3159
|
var t = this.__data__, n = t.delete(e);
|
|
3160
3160
|
return this.size = t.size, n;
|
|
3161
3161
|
}
|
|
3162
|
-
function
|
|
3162
|
+
function os(e) {
|
|
3163
3163
|
return this.__data__.get(e);
|
|
3164
3164
|
}
|
|
3165
|
-
function
|
|
3165
|
+
function us(e) {
|
|
3166
3166
|
return this.__data__.has(e);
|
|
3167
3167
|
}
|
|
3168
|
-
var
|
|
3169
|
-
const
|
|
3170
|
-
var
|
|
3171
|
-
var e = /[^.]+$/.exec(
|
|
3168
|
+
var ls = U["__core-js_shared__"];
|
|
3169
|
+
const Me = ls;
|
|
3170
|
+
var St = function() {
|
|
3171
|
+
var e = /[^.]+$/.exec(Me && Me.keys && Me.keys.IE_PROTO || "");
|
|
3172
3172
|
return e ? "Symbol(src)_1." + e : "";
|
|
3173
3173
|
}();
|
|
3174
|
-
function
|
|
3175
|
-
return !!
|
|
3174
|
+
function cs(e) {
|
|
3175
|
+
return !!St && St in e;
|
|
3176
3176
|
}
|
|
3177
|
-
var
|
|
3177
|
+
var ds = Function.prototype, fs = ds.toString;
|
|
3178
3178
|
function z(e) {
|
|
3179
3179
|
if (e != null) {
|
|
3180
3180
|
try {
|
|
3181
|
-
return
|
|
3181
|
+
return fs.call(e);
|
|
3182
3182
|
} catch {
|
|
3183
3183
|
}
|
|
3184
3184
|
try {
|
|
@@ -3188,419 +3188,419 @@ function z(e) {
|
|
|
3188
3188
|
}
|
|
3189
3189
|
return "";
|
|
3190
3190
|
}
|
|
3191
|
-
var
|
|
3192
|
-
"^" +
|
|
3191
|
+
var ps = /[\\^$.*+?()[\]{}|]/g, gs = /^\[object .+?Constructor\]$/, hs = Function.prototype, ms = Object.prototype, ys = hs.toString, bs = ms.hasOwnProperty, Ss = RegExp(
|
|
3192
|
+
"^" + ys.call(bs).replace(ps, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3193
3193
|
);
|
|
3194
|
-
function
|
|
3195
|
-
if (!
|
|
3194
|
+
function Os(e) {
|
|
3195
|
+
if (!we(e) || cs(e))
|
|
3196
3196
|
return !1;
|
|
3197
|
-
var t =
|
|
3197
|
+
var t = Mn(e) ? Ss : gs;
|
|
3198
3198
|
return t.test(z(e));
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function vs(e, t) {
|
|
3201
3201
|
return e == null ? void 0 : e[t];
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3204
|
-
var n =
|
|
3205
|
-
return
|
|
3203
|
+
function G(e, t) {
|
|
3204
|
+
var n = vs(e, t);
|
|
3205
|
+
return Os(n) ? n : void 0;
|
|
3206
3206
|
}
|
|
3207
|
-
var
|
|
3207
|
+
var xs = G(U, "Map");
|
|
3208
|
+
const oe = xs;
|
|
3209
|
+
var Cs = G(Object, "create");
|
|
3208
3210
|
const ue = Cs;
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
function Ps() {
|
|
3212
|
-
this.__data__ = le ? le(null) : {}, this.size = 0;
|
|
3211
|
+
function ws() {
|
|
3212
|
+
this.__data__ = ue ? ue(null) : {}, this.size = 0;
|
|
3213
3213
|
}
|
|
3214
3214
|
function Ds(e) {
|
|
3215
3215
|
var t = this.has(e) && delete this.__data__[e];
|
|
3216
3216
|
return this.size -= t ? 1 : 0, t;
|
|
3217
3217
|
}
|
|
3218
|
-
var
|
|
3219
|
-
function
|
|
3218
|
+
var Ps = "__lodash_hash_undefined__", js = Object.prototype, Fs = js.hasOwnProperty;
|
|
3219
|
+
function As(e) {
|
|
3220
3220
|
var t = this.__data__;
|
|
3221
|
-
if (
|
|
3221
|
+
if (ue) {
|
|
3222
3222
|
var n = t[e];
|
|
3223
|
-
return n ===
|
|
3223
|
+
return n === Ps ? void 0 : n;
|
|
3224
3224
|
}
|
|
3225
3225
|
return Fs.call(t, e) ? t[e] : void 0;
|
|
3226
3226
|
}
|
|
3227
|
-
var
|
|
3228
|
-
function
|
|
3227
|
+
var Ls = Object.prototype, Es = Ls.hasOwnProperty;
|
|
3228
|
+
function Ns(e) {
|
|
3229
3229
|
var t = this.__data__;
|
|
3230
|
-
return
|
|
3230
|
+
return ue ? t[e] !== void 0 : Es.call(t, e);
|
|
3231
3231
|
}
|
|
3232
|
-
var
|
|
3233
|
-
function
|
|
3232
|
+
var Ts = "__lodash_hash_undefined__";
|
|
3233
|
+
function Rs(e, t) {
|
|
3234
3234
|
var n = this.__data__;
|
|
3235
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
3235
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = ue && t === void 0 ? Ts : t, this;
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3237
|
+
function K(e) {
|
|
3238
3238
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3239
3239
|
for (this.clear(); ++t < n; ) {
|
|
3240
3240
|
var r = e[t];
|
|
3241
3241
|
this.set(r[0], r[1]);
|
|
3242
3242
|
}
|
|
3243
3243
|
}
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
function
|
|
3244
|
+
K.prototype.clear = ws;
|
|
3245
|
+
K.prototype.delete = Ds;
|
|
3246
|
+
K.prototype.get = As;
|
|
3247
|
+
K.prototype.has = Ns;
|
|
3248
|
+
K.prototype.set = Rs;
|
|
3249
|
+
function Ms() {
|
|
3250
3250
|
this.size = 0, this.__data__ = {
|
|
3251
|
-
hash: new
|
|
3252
|
-
map: new (
|
|
3253
|
-
string: new
|
|
3251
|
+
hash: new K(),
|
|
3252
|
+
map: new (oe || k)(),
|
|
3253
|
+
string: new K()
|
|
3254
3254
|
};
|
|
3255
3255
|
}
|
|
3256
|
-
function
|
|
3256
|
+
function $s(e) {
|
|
3257
3257
|
var t = typeof e;
|
|
3258
3258
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function Ee(e, t) {
|
|
3261
3261
|
var n = e.__data__;
|
|
3262
|
-
return
|
|
3262
|
+
return $s(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
3263
3263
|
}
|
|
3264
|
-
function
|
|
3265
|
-
var t =
|
|
3264
|
+
function Is(e) {
|
|
3265
|
+
var t = Ee(this, e).delete(e);
|
|
3266
3266
|
return this.size -= t ? 1 : 0, t;
|
|
3267
3267
|
}
|
|
3268
|
-
function
|
|
3269
|
-
return
|
|
3268
|
+
function _s(e) {
|
|
3269
|
+
return Ee(this, e).get(e);
|
|
3270
3270
|
}
|
|
3271
|
-
function
|
|
3272
|
-
return
|
|
3271
|
+
function ks(e) {
|
|
3272
|
+
return Ee(this, e).has(e);
|
|
3273
3273
|
}
|
|
3274
|
-
function
|
|
3275
|
-
var n =
|
|
3274
|
+
function Bs(e, t) {
|
|
3275
|
+
var n = Ee(this, e), r = n.size;
|
|
3276
3276
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
3277
3277
|
}
|
|
3278
|
-
function
|
|
3278
|
+
function ee(e) {
|
|
3279
3279
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3280
3280
|
for (this.clear(); ++t < n; ) {
|
|
3281
3281
|
var r = e[t];
|
|
3282
3282
|
this.set(r[0], r[1]);
|
|
3283
3283
|
}
|
|
3284
3284
|
}
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
var
|
|
3291
|
-
function
|
|
3285
|
+
ee.prototype.clear = Ms;
|
|
3286
|
+
ee.prototype.delete = Is;
|
|
3287
|
+
ee.prototype.get = _s;
|
|
3288
|
+
ee.prototype.has = ks;
|
|
3289
|
+
ee.prototype.set = Bs;
|
|
3290
|
+
var Us = 200;
|
|
3291
|
+
function qs(e, t) {
|
|
3292
3292
|
var n = this.__data__;
|
|
3293
3293
|
if (n instanceof k) {
|
|
3294
3294
|
var r = n.__data__;
|
|
3295
|
-
if (!
|
|
3295
|
+
if (!oe || r.length < Us - 1)
|
|
3296
3296
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
3297
|
-
n = this.__data__ = new
|
|
3297
|
+
n = this.__data__ = new ee(r);
|
|
3298
3298
|
}
|
|
3299
3299
|
return n.set(e, t), this.size = n.size, this;
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function te(e) {
|
|
3302
3302
|
var t = this.__data__ = new k(e);
|
|
3303
3303
|
this.size = t.size;
|
|
3304
3304
|
}
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
function
|
|
3305
|
+
te.prototype.clear = is;
|
|
3306
|
+
te.prototype.delete = as;
|
|
3307
|
+
te.prototype.get = os;
|
|
3308
|
+
te.prototype.has = us;
|
|
3309
|
+
te.prototype.set = qs;
|
|
3310
|
+
function Vs(e, t) {
|
|
3311
3311
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
3312
3312
|
;
|
|
3313
3313
|
return e;
|
|
3314
3314
|
}
|
|
3315
|
-
var
|
|
3315
|
+
var Ws = function() {
|
|
3316
3316
|
try {
|
|
3317
|
-
var e =
|
|
3317
|
+
var e = G(Object, "defineProperty");
|
|
3318
3318
|
return e({}, "", {}), e;
|
|
3319
3319
|
} catch {
|
|
3320
3320
|
}
|
|
3321
3321
|
}();
|
|
3322
|
-
const
|
|
3323
|
-
function
|
|
3324
|
-
t == "__proto__" &&
|
|
3322
|
+
const Ot = Ws;
|
|
3323
|
+
function Gt(e, t, n) {
|
|
3324
|
+
t == "__proto__" && Ot ? Ot(e, t, {
|
|
3325
3325
|
configurable: !0,
|
|
3326
3326
|
enumerable: !0,
|
|
3327
3327
|
value: n,
|
|
3328
3328
|
writable: !0
|
|
3329
3329
|
}) : e[t] = n;
|
|
3330
3330
|
}
|
|
3331
|
-
var
|
|
3331
|
+
var Hs = Object.prototype, Ks = Hs.hasOwnProperty;
|
|
3332
3332
|
function Qt(e, t, n) {
|
|
3333
3333
|
var r = e[t];
|
|
3334
|
-
(!(
|
|
3334
|
+
(!(Ks.call(e, t) && zt(r, n)) || n === void 0 && !(t in e)) && Gt(e, t, n);
|
|
3335
3335
|
}
|
|
3336
|
-
function
|
|
3336
|
+
function Ne(e, t, n, r) {
|
|
3337
3337
|
var s = !n;
|
|
3338
3338
|
n || (n = {});
|
|
3339
3339
|
for (var i = -1, a = t.length; ++i < a; ) {
|
|
3340
3340
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
3341
|
-
u === void 0 && (u = e[o]), s ?
|
|
3341
|
+
u === void 0 && (u = e[o]), s ? Gt(n, o, u) : Qt(n, o, u);
|
|
3342
3342
|
}
|
|
3343
3343
|
return n;
|
|
3344
3344
|
}
|
|
3345
3345
|
function zs(e, t) {
|
|
3346
|
-
return e &&
|
|
3346
|
+
return e && Ne(t, Qe(t), e);
|
|
3347
3347
|
}
|
|
3348
|
-
function
|
|
3348
|
+
function Gs(e) {
|
|
3349
3349
|
var t = [];
|
|
3350
3350
|
if (e != null)
|
|
3351
3351
|
for (var n in Object(e))
|
|
3352
3352
|
t.push(n);
|
|
3353
3353
|
return t;
|
|
3354
3354
|
}
|
|
3355
|
-
var Qs = Object.prototype,
|
|
3356
|
-
function
|
|
3357
|
-
if (!
|
|
3358
|
-
return
|
|
3359
|
-
var t =
|
|
3355
|
+
var Qs = Object.prototype, Js = Qs.hasOwnProperty;
|
|
3356
|
+
function Ys(e) {
|
|
3357
|
+
if (!we(e))
|
|
3358
|
+
return Gs(e);
|
|
3359
|
+
var t = _t(e), n = [];
|
|
3360
3360
|
for (var r in e)
|
|
3361
|
-
r == "constructor" && (t || !
|
|
3361
|
+
r == "constructor" && (t || !Js.call(e, r)) || n.push(r);
|
|
3362
3362
|
return n;
|
|
3363
3363
|
}
|
|
3364
3364
|
function Xe(e) {
|
|
3365
|
-
return
|
|
3365
|
+
return $n(e) ? In(e, !0) : Ys(e);
|
|
3366
3366
|
}
|
|
3367
3367
|
function Xs(e, t) {
|
|
3368
|
-
return e &&
|
|
3368
|
+
return e && Ne(t, Xe(t), e);
|
|
3369
3369
|
}
|
|
3370
|
-
var
|
|
3371
|
-
function
|
|
3370
|
+
var Jt = typeof exports == "object" && exports && !exports.nodeType && exports, vt = Jt && typeof module == "object" && module && !module.nodeType && module, Zs = vt && vt.exports === Jt, xt = Zs ? U.Buffer : void 0, Ct = xt ? xt.allocUnsafe : void 0;
|
|
3371
|
+
function ei(e, t) {
|
|
3372
3372
|
if (t)
|
|
3373
3373
|
return e.slice();
|
|
3374
|
-
var n = e.length, r =
|
|
3374
|
+
var n = e.length, r = Ct ? Ct(n) : new e.constructor(n);
|
|
3375
3375
|
return e.copy(r), r;
|
|
3376
3376
|
}
|
|
3377
|
-
function
|
|
3377
|
+
function ti(e, t) {
|
|
3378
3378
|
var n = -1, r = e.length;
|
|
3379
3379
|
for (t || (t = Array(r)); ++n < r; )
|
|
3380
3380
|
t[n] = e[n];
|
|
3381
3381
|
return t;
|
|
3382
3382
|
}
|
|
3383
|
-
function
|
|
3383
|
+
function ni(e, t) {
|
|
3384
3384
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
|
3385
3385
|
var a = e[n];
|
|
3386
3386
|
t(a, n, e) && (i[s++] = a);
|
|
3387
3387
|
}
|
|
3388
3388
|
return i;
|
|
3389
3389
|
}
|
|
3390
|
-
function
|
|
3390
|
+
function Yt() {
|
|
3391
3391
|
return [];
|
|
3392
3392
|
}
|
|
3393
|
-
var
|
|
3394
|
-
return e == null ? [] : (e = Object(e),
|
|
3395
|
-
return
|
|
3393
|
+
var ri = Object.prototype, si = ri.propertyIsEnumerable, wt = Object.getOwnPropertySymbols, ii = wt ? function(e) {
|
|
3394
|
+
return e == null ? [] : (e = Object(e), ni(wt(e), function(t) {
|
|
3395
|
+
return si.call(e, t);
|
|
3396
3396
|
}));
|
|
3397
|
-
} :
|
|
3398
|
-
const
|
|
3399
|
-
function
|
|
3400
|
-
return
|
|
3397
|
+
} : Yt;
|
|
3398
|
+
const Ze = ii;
|
|
3399
|
+
function ai(e, t) {
|
|
3400
|
+
return Ne(e, Ze(e), t);
|
|
3401
3401
|
}
|
|
3402
3402
|
function Xt(e, t) {
|
|
3403
3403
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
3404
3404
|
e[s + n] = t[n];
|
|
3405
3405
|
return e;
|
|
3406
3406
|
}
|
|
3407
|
-
var
|
|
3408
|
-
const
|
|
3409
|
-
var
|
|
3407
|
+
var oi = _n(Object.getPrototypeOf, Object);
|
|
3408
|
+
const Zt = oi;
|
|
3409
|
+
var ui = Object.getOwnPropertySymbols, li = ui ? function(e) {
|
|
3410
3410
|
for (var t = []; e; )
|
|
3411
|
-
Xt(t,
|
|
3411
|
+
Xt(t, Ze(e)), e = Zt(e);
|
|
3412
3412
|
return t;
|
|
3413
|
-
} :
|
|
3414
|
-
const
|
|
3415
|
-
function
|
|
3416
|
-
return
|
|
3413
|
+
} : Yt;
|
|
3414
|
+
const en = li;
|
|
3415
|
+
function ci(e, t) {
|
|
3416
|
+
return Ne(e, en(e), t);
|
|
3417
3417
|
}
|
|
3418
|
-
function
|
|
3418
|
+
function tn(e, t, n) {
|
|
3419
3419
|
var r = t(e);
|
|
3420
|
-
return
|
|
3420
|
+
return kt(e) ? r : Xt(r, n(e));
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3423
|
-
return
|
|
3422
|
+
function di(e) {
|
|
3423
|
+
return tn(e, Qe, Ze);
|
|
3424
3424
|
}
|
|
3425
|
-
function
|
|
3426
|
-
return
|
|
3425
|
+
function fi(e) {
|
|
3426
|
+
return tn(e, Xe, en);
|
|
3427
3427
|
}
|
|
3428
|
-
var
|
|
3429
|
-
const
|
|
3430
|
-
var
|
|
3431
|
-
const
|
|
3432
|
-
var
|
|
3433
|
-
const
|
|
3434
|
-
var
|
|
3435
|
-
const ze =
|
|
3436
|
-
var Dt = "[object Map]",
|
|
3437
|
-
(
|
|
3438
|
-
var t =
|
|
3428
|
+
var pi = G(U, "DataView");
|
|
3429
|
+
const We = pi;
|
|
3430
|
+
var gi = G(U, "Promise");
|
|
3431
|
+
const He = gi;
|
|
3432
|
+
var hi = G(U, "Set");
|
|
3433
|
+
const Ke = hi;
|
|
3434
|
+
var mi = G(U, "WeakMap");
|
|
3435
|
+
const ze = mi;
|
|
3436
|
+
var Dt = "[object Map]", yi = "[object Object]", Pt = "[object Promise]", jt = "[object Set]", Ft = "[object WeakMap]", At = "[object DataView]", bi = z(We), Si = z(oe), Oi = z(He), vi = z(Ke), xi = z(ze), H = Bt;
|
|
3437
|
+
(We && H(new We(new ArrayBuffer(1))) != At || oe && H(new oe()) != Dt || He && H(He.resolve()) != Pt || Ke && H(new Ke()) != jt || ze && H(new ze()) != Ft) && (H = function(e) {
|
|
3438
|
+
var t = Bt(e), n = t == yi ? e.constructor : void 0, r = n ? z(n) : "";
|
|
3439
3439
|
if (r)
|
|
3440
3440
|
switch (r) {
|
|
3441
|
+
case bi:
|
|
3442
|
+
return At;
|
|
3441
3443
|
case Si:
|
|
3442
|
-
return Lt;
|
|
3443
|
-
case Oi:
|
|
3444
3444
|
return Dt;
|
|
3445
|
+
case Oi:
|
|
3446
|
+
return Pt;
|
|
3445
3447
|
case vi:
|
|
3446
3448
|
return jt;
|
|
3447
3449
|
case xi:
|
|
3448
|
-
return At;
|
|
3449
|
-
case Ci:
|
|
3450
3450
|
return Ft;
|
|
3451
3451
|
}
|
|
3452
3452
|
return t;
|
|
3453
3453
|
});
|
|
3454
|
-
const
|
|
3455
|
-
var
|
|
3454
|
+
const et = H;
|
|
3455
|
+
var Ci = Object.prototype, wi = Ci.hasOwnProperty;
|
|
3456
3456
|
function Di(e) {
|
|
3457
3457
|
var t = e.length, n = new e.constructor(t);
|
|
3458
|
-
return t && typeof e[0] == "string" &&
|
|
3458
|
+
return t && typeof e[0] == "string" && wi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
3459
3459
|
}
|
|
3460
|
-
var
|
|
3461
|
-
const
|
|
3462
|
-
function
|
|
3460
|
+
var Pi = U.Uint8Array;
|
|
3461
|
+
const Lt = Pi;
|
|
3462
|
+
function tt(e) {
|
|
3463
3463
|
var t = new e.constructor(e.byteLength);
|
|
3464
|
-
return new
|
|
3464
|
+
return new Lt(t).set(new Lt(e)), t;
|
|
3465
3465
|
}
|
|
3466
|
-
function
|
|
3467
|
-
var n = t ?
|
|
3466
|
+
function ji(e, t) {
|
|
3467
|
+
var n = t ? tt(e.buffer) : e.buffer;
|
|
3468
3468
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
3469
3469
|
}
|
|
3470
3470
|
var Fi = /\w*$/;
|
|
3471
|
-
function
|
|
3471
|
+
function Ai(e) {
|
|
3472
3472
|
var t = new e.constructor(e.source, Fi.exec(e));
|
|
3473
3473
|
return t.lastIndex = e.lastIndex, t;
|
|
3474
3474
|
}
|
|
3475
|
-
var
|
|
3476
|
-
function
|
|
3477
|
-
return
|
|
3475
|
+
var Et = it ? it.prototype : void 0, Nt = Et ? Et.valueOf : void 0;
|
|
3476
|
+
function Li(e) {
|
|
3477
|
+
return Nt ? Object(Nt.call(e)) : {};
|
|
3478
3478
|
}
|
|
3479
|
-
function
|
|
3480
|
-
var n = t ?
|
|
3479
|
+
function Ei(e, t) {
|
|
3480
|
+
var n = t ? tt(e.buffer) : e.buffer;
|
|
3481
3481
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
3482
3482
|
}
|
|
3483
|
-
var
|
|
3484
|
-
function
|
|
3483
|
+
var Ni = "[object Boolean]", Ti = "[object Date]", Ri = "[object Map]", Mi = "[object Number]", $i = "[object RegExp]", Ii = "[object Set]", _i = "[object String]", ki = "[object Symbol]", Bi = "[object ArrayBuffer]", Ui = "[object DataView]", qi = "[object Float32Array]", Vi = "[object Float64Array]", Wi = "[object Int8Array]", Hi = "[object Int16Array]", Ki = "[object Int32Array]", zi = "[object Uint8Array]", Gi = "[object Uint8ClampedArray]", Qi = "[object Uint16Array]", Ji = "[object Uint32Array]";
|
|
3484
|
+
function Yi(e, t, n) {
|
|
3485
3485
|
var r = e.constructor;
|
|
3486
3486
|
switch (t) {
|
|
3487
|
-
case
|
|
3488
|
-
return
|
|
3487
|
+
case Bi:
|
|
3488
|
+
return tt(e);
|
|
3489
|
+
case Ni:
|
|
3489
3490
|
case Ti:
|
|
3490
|
-
case Ri:
|
|
3491
3491
|
return new r(+e);
|
|
3492
|
+
case Ui:
|
|
3493
|
+
return ji(e, n);
|
|
3492
3494
|
case qi:
|
|
3493
|
-
return Ai(e, n);
|
|
3494
3495
|
case Vi:
|
|
3496
|
+
case Wi:
|
|
3495
3497
|
case Hi:
|
|
3496
3498
|
case Ki:
|
|
3497
|
-
case Wi:
|
|
3498
|
-
case Gi:
|
|
3499
3499
|
case zi:
|
|
3500
|
-
case
|
|
3500
|
+
case Gi:
|
|
3501
3501
|
case Qi:
|
|
3502
|
-
case
|
|
3503
|
-
return
|
|
3504
|
-
case
|
|
3502
|
+
case Ji:
|
|
3503
|
+
return Ei(e, n);
|
|
3504
|
+
case Ri:
|
|
3505
3505
|
return new r();
|
|
3506
|
-
case
|
|
3507
|
-
case
|
|
3506
|
+
case Mi:
|
|
3507
|
+
case _i:
|
|
3508
3508
|
return new r(e);
|
|
3509
|
+
case $i:
|
|
3510
|
+
return Ai(e);
|
|
3509
3511
|
case Ii:
|
|
3510
|
-
return Li(e);
|
|
3511
|
-
case _i:
|
|
3512
3512
|
return new r();
|
|
3513
|
-
case
|
|
3514
|
-
return
|
|
3513
|
+
case ki:
|
|
3514
|
+
return Li(e);
|
|
3515
3515
|
}
|
|
3516
3516
|
}
|
|
3517
|
-
var
|
|
3517
|
+
var Tt = Object.create, Xi = function() {
|
|
3518
3518
|
function e() {
|
|
3519
3519
|
}
|
|
3520
3520
|
return function(t) {
|
|
3521
|
-
if (!
|
|
3521
|
+
if (!we(t))
|
|
3522
3522
|
return {};
|
|
3523
|
-
if (
|
|
3524
|
-
return
|
|
3523
|
+
if (Tt)
|
|
3524
|
+
return Tt(t);
|
|
3525
3525
|
e.prototype = t;
|
|
3526
3526
|
var n = new e();
|
|
3527
3527
|
return e.prototype = void 0, n;
|
|
3528
3528
|
};
|
|
3529
3529
|
}();
|
|
3530
|
-
const
|
|
3531
|
-
function
|
|
3532
|
-
return typeof e.constructor == "function" && !
|
|
3530
|
+
const Zi = Xi;
|
|
3531
|
+
function ea(e) {
|
|
3532
|
+
return typeof e.constructor == "function" && !_t(e) ? Zi(Zt(e)) : {};
|
|
3533
3533
|
}
|
|
3534
|
-
var
|
|
3535
|
-
function
|
|
3536
|
-
return
|
|
3534
|
+
var ta = "[object Map]";
|
|
3535
|
+
function na(e) {
|
|
3536
|
+
return Ut(e) && et(e) == ta;
|
|
3537
3537
|
}
|
|
3538
|
-
var
|
|
3539
|
-
const
|
|
3540
|
-
var
|
|
3541
|
-
function
|
|
3542
|
-
return
|
|
3538
|
+
var Rt = be && be.isMap, ra = Rt ? qt(Rt) : na;
|
|
3539
|
+
const sa = ra;
|
|
3540
|
+
var ia = "[object Set]";
|
|
3541
|
+
function aa(e) {
|
|
3542
|
+
return Ut(e) && et(e) == ia;
|
|
3543
3543
|
}
|
|
3544
|
-
var
|
|
3545
|
-
const
|
|
3546
|
-
var
|
|
3547
|
-
v[
|
|
3548
|
-
v[
|
|
3549
|
-
function
|
|
3550
|
-
var a, o = t &
|
|
3544
|
+
var Mt = be && be.isSet, oa = Mt ? qt(Mt) : aa;
|
|
3545
|
+
const ua = oa;
|
|
3546
|
+
var la = 1, ca = 2, da = 4, nn = "[object Arguments]", fa = "[object Array]", pa = "[object Boolean]", ga = "[object Date]", ha = "[object Error]", rn = "[object Function]", ma = "[object GeneratorFunction]", ya = "[object Map]", ba = "[object Number]", sn = "[object Object]", Sa = "[object RegExp]", Oa = "[object Set]", va = "[object String]", xa = "[object Symbol]", Ca = "[object WeakMap]", wa = "[object ArrayBuffer]", Da = "[object DataView]", Pa = "[object Float32Array]", ja = "[object Float64Array]", Fa = "[object Int8Array]", Aa = "[object Int16Array]", La = "[object Int32Array]", Ea = "[object Uint8Array]", Na = "[object Uint8ClampedArray]", Ta = "[object Uint16Array]", Ra = "[object Uint32Array]", v = {};
|
|
3547
|
+
v[nn] = v[fa] = v[wa] = v[Da] = v[pa] = v[ga] = v[Pa] = v[ja] = v[Fa] = v[Aa] = v[La] = v[ya] = v[ba] = v[sn] = v[Sa] = v[Oa] = v[va] = v[xa] = v[Ea] = v[Na] = v[Ta] = v[Ra] = !0;
|
|
3548
|
+
v[ha] = v[rn] = v[Ca] = !1;
|
|
3549
|
+
function pe(e, t, n, r, s, i) {
|
|
3550
|
+
var a, o = t & la, u = t & ca, c = t & da;
|
|
3551
3551
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
|
3552
3552
|
return a;
|
|
3553
|
-
if (!
|
|
3553
|
+
if (!we(e))
|
|
3554
3554
|
return e;
|
|
3555
|
-
var d =
|
|
3555
|
+
var d = kt(e);
|
|
3556
3556
|
if (d) {
|
|
3557
3557
|
if (a = Di(e), !o)
|
|
3558
|
-
return
|
|
3558
|
+
return ti(e, a);
|
|
3559
3559
|
} else {
|
|
3560
|
-
var f =
|
|
3561
|
-
if (
|
|
3562
|
-
return
|
|
3563
|
-
if (f ==
|
|
3564
|
-
if (a = u || l ? {} :
|
|
3565
|
-
return u ?
|
|
3560
|
+
var f = et(e), l = f == rn || f == ma;
|
|
3561
|
+
if (kn(e))
|
|
3562
|
+
return ei(e, o);
|
|
3563
|
+
if (f == sn || f == nn || l && !s) {
|
|
3564
|
+
if (a = u || l ? {} : ea(e), !o)
|
|
3565
|
+
return u ? ci(e, Xs(a, e)) : ai(e, zs(a, e));
|
|
3566
3566
|
} else {
|
|
3567
3567
|
if (!v[f])
|
|
3568
3568
|
return s ? e : {};
|
|
3569
|
-
a =
|
|
3569
|
+
a = Yi(e, f, o);
|
|
3570
3570
|
}
|
|
3571
3571
|
}
|
|
3572
|
-
i || (i = new
|
|
3572
|
+
i || (i = new te());
|
|
3573
3573
|
var g = i.get(e);
|
|
3574
3574
|
if (g)
|
|
3575
3575
|
return g;
|
|
3576
|
-
i.set(e, a),
|
|
3577
|
-
a.add(
|
|
3578
|
-
}) :
|
|
3579
|
-
a.set(x,
|
|
3576
|
+
i.set(e, a), ua(e) ? e.forEach(function(h) {
|
|
3577
|
+
a.add(pe(h, t, n, h, e, i));
|
|
3578
|
+
}) : sa(e) && e.forEach(function(h, x) {
|
|
3579
|
+
a.set(x, pe(h, t, n, x, e, i));
|
|
3580
3580
|
});
|
|
3581
|
-
var p = c ? u ?
|
|
3582
|
-
return
|
|
3583
|
-
m && (x = h, h = e[x]), Qt(a, x,
|
|
3581
|
+
var p = c ? u ? fi : di : u ? Xe : Qe, m = d ? void 0 : p(e);
|
|
3582
|
+
return Vs(m || e, function(h, x) {
|
|
3583
|
+
m && (x = h, h = e[x]), Qt(a, x, pe(h, t, n, x, e, i));
|
|
3584
3584
|
}), a;
|
|
3585
3585
|
}
|
|
3586
|
-
var
|
|
3587
|
-
function
|
|
3588
|
-
return
|
|
3586
|
+
var Ma = 1, $a = 4;
|
|
3587
|
+
function Ia(e) {
|
|
3588
|
+
return pe(e, Ma | $a);
|
|
3589
3589
|
}
|
|
3590
|
-
function
|
|
3590
|
+
function _a(e) {
|
|
3591
3591
|
return Buffer.from(e).toString("utf8");
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3593
|
+
function ka(e) {
|
|
3594
3594
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
|
3595
3595
|
}
|
|
3596
|
-
function
|
|
3596
|
+
function Ba() {
|
|
3597
3597
|
return "UNSUPPORTED";
|
|
3598
3598
|
}
|
|
3599
3599
|
typeof Buffer < "u" && Buffer.from;
|
|
3600
|
-
var
|
|
3600
|
+
var $e;
|
|
3601
3601
|
(function(e) {
|
|
3602
3602
|
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
|
3603
|
-
})(
|
|
3603
|
+
})($e = $e || ($e = {}));
|
|
3604
3604
|
const S = {
|
|
3605
3605
|
Measure: "measure",
|
|
3606
3606
|
MeasureTemplate: "measuretemplate",
|
|
@@ -3735,92 +3735,92 @@ const S = {
|
|
|
3735
3735
|
return !1;
|
|
3736
3736
|
}
|
|
3737
3737
|
};
|
|
3738
|
-
var
|
|
3738
|
+
var Ie;
|
|
3739
3739
|
(function(e) {
|
|
3740
3740
|
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
|
3741
|
-
})(
|
|
3742
|
-
var
|
|
3741
|
+
})(Ie = Ie || (Ie = {}));
|
|
3742
|
+
var _e;
|
|
3743
3743
|
(function(e) {
|
|
3744
3744
|
e.ASC = "asc", e.DESC = "desc";
|
|
3745
|
-
})(
|
|
3746
|
-
var
|
|
3745
|
+
})(_e = _e || (_e = {}));
|
|
3746
|
+
var ke;
|
|
3747
3747
|
(function(e) {
|
|
3748
3748
|
e.PRE = "pre", e.POST = "post";
|
|
3749
|
-
})(
|
|
3750
|
-
function
|
|
3749
|
+
})(ke = ke || (ke = {}));
|
|
3750
|
+
function Ge(e, t = []) {
|
|
3751
3751
|
try {
|
|
3752
|
-
return e == null ? String(e) : typeof e == "string" ? `'${
|
|
3752
|
+
return e == null ? String(e) : typeof e == "string" ? `'${Kr(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => Ge(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}: ${Ge(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
|
3753
3753
|
} catch (n) {
|
|
3754
3754
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
|
3755
3755
|
}
|
|
3756
3756
|
}
|
|
3757
|
-
function
|
|
3757
|
+
function Ua(e) {
|
|
3758
3758
|
let t = e.length;
|
|
3759
3759
|
for (; t > 0 && e[t - 1] === void 0; )
|
|
3760
3760
|
t--;
|
|
3761
3761
|
return e.slice(0, t);
|
|
3762
3762
|
}
|
|
3763
|
-
function
|
|
3763
|
+
function qa(e, t) {
|
|
3764
3764
|
return function(n) {
|
|
3765
3765
|
return function(...r) {
|
|
3766
|
-
const s =
|
|
3766
|
+
const s = Ua(r), i = s.length, a = s.map((c) => Ge(c, ["guid"])).filter((c, d) => !(["", "{ }", "{}", "undefined", "null"].includes(c) && d === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
|
3767
3767
|
return u.composeCode = o, u;
|
|
3768
3768
|
};
|
|
3769
3769
|
};
|
|
3770
3770
|
}
|
|
3771
|
-
function
|
|
3772
|
-
return
|
|
3771
|
+
function $t(e, t) {
|
|
3772
|
+
return qa("filterFactory.logic", t)(e);
|
|
3773
3773
|
}
|
|
3774
|
-
function
|
|
3774
|
+
function Va(e) {
|
|
3775
3775
|
return e && e.__serializable === "MembersFilter";
|
|
3776
3776
|
}
|
|
3777
|
-
function
|
|
3777
|
+
function Wa(e) {
|
|
3778
3778
|
return e && e.__serializable === "CascadingFilter";
|
|
3779
3779
|
}
|
|
3780
|
-
|
|
3781
|
-
if (Array.isArray(e)) {
|
|
3782
|
-
const [t, ...n] = e;
|
|
3783
|
-
return n.length === 0 ? W(t) : {
|
|
3784
|
-
operator: "AND",
|
|
3785
|
-
left: W(t),
|
|
3786
|
-
right: W(n)
|
|
3787
|
-
};
|
|
3788
|
-
}
|
|
3789
|
-
return e;
|
|
3790
|
-
};
|
|
3791
|
-
var Ue;
|
|
3780
|
+
var Be;
|
|
3792
3781
|
(function(e) {
|
|
3793
|
-
|
|
3782
|
+
const t = (n) => {
|
|
3783
|
+
if (Array.isArray(n)) {
|
|
3784
|
+
const [r, ...s] = n;
|
|
3785
|
+
return s.length === 0 ? t(r) : {
|
|
3786
|
+
operator: "AND",
|
|
3787
|
+
left: t(r),
|
|
3788
|
+
right: t(s)
|
|
3789
|
+
};
|
|
3790
|
+
}
|
|
3791
|
+
return n;
|
|
3792
|
+
};
|
|
3793
|
+
e.and = $t((n, r) => ({
|
|
3794
3794
|
operator: "AND",
|
|
3795
|
-
left:
|
|
3796
|
-
right:
|
|
3797
|
-
}), "and"), e.or =
|
|
3795
|
+
left: t(n),
|
|
3796
|
+
right: t(r)
|
|
3797
|
+
}), "and"), e.or = $t((n, r) => ({
|
|
3798
3798
|
operator: "OR",
|
|
3799
|
-
left:
|
|
3800
|
-
right:
|
|
3799
|
+
left: t(n),
|
|
3800
|
+
right: t(r)
|
|
3801
3801
|
}), "or");
|
|
3802
|
-
})(
|
|
3803
|
-
var
|
|
3802
|
+
})(Be = Be || (Be = {}));
|
|
3803
|
+
var ge;
|
|
3804
3804
|
(function(e) {
|
|
3805
3805
|
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3806
|
+
})(ge = ge || (ge = {}));
|
|
3807
|
+
var he;
|
|
3808
|
+
(function(e) {
|
|
3809
|
+
e.PERIOD = "PERIOD", e.DATE_RANGE = "DATE_RANGE";
|
|
3806
3810
|
})(he = he || (he = {}));
|
|
3807
3811
|
var me;
|
|
3808
3812
|
(function(e) {
|
|
3809
|
-
e.
|
|
3813
|
+
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
|
3810
3814
|
})(me = me || (me = {}));
|
|
3811
3815
|
var ye;
|
|
3812
|
-
(function(e) {
|
|
3813
|
-
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
|
3814
|
-
})(ye = ye || (ye = {}));
|
|
3815
|
-
var be;
|
|
3816
3816
|
(function(e) {
|
|
3817
3817
|
e.YEARS = "years", e.QUARTERS = "quarters", e.MONTHS = "months", e.WEEKS = "weeks", e.DAYS = "days", e.HOURS = "hours", e.MINUTES = "minutes";
|
|
3818
|
-
})(
|
|
3819
|
-
var
|
|
3818
|
+
})(ye = ye || (ye = {}));
|
|
3819
|
+
var Ue;
|
|
3820
3820
|
(function(e) {
|
|
3821
3821
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
|
3822
|
-
})(
|
|
3823
|
-
const N = Object.assign(Object.assign(Object.assign({},
|
|
3822
|
+
})(Ue = Ue || (Ue = {}));
|
|
3823
|
+
const N = Object.assign(Object.assign(Object.assign({}, ge), he), me), Ha = {
|
|
3824
3824
|
[N.INCLUDE_ALL]: {
|
|
3825
3825
|
all: !0,
|
|
3826
3826
|
filterType: N.INCLUDE_ALL
|
|
@@ -3849,12 +3849,12 @@ const N = Object.assign(Object.assign(Object.assign({}, he), me), ye), Wa = {
|
|
|
3849
3849
|
filterType: N.SPECIFIC_ITEMS
|
|
3850
3850
|
}
|
|
3851
3851
|
};
|
|
3852
|
-
|
|
3853
|
-
var
|
|
3852
|
+
Ha.INCLUDE_ALL, ye.YEARS;
|
|
3853
|
+
var qe;
|
|
3854
3854
|
(function(e) {
|
|
3855
3855
|
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";
|
|
3856
|
-
})(
|
|
3857
|
-
const
|
|
3856
|
+
})(qe = qe || (qe = {}));
|
|
3857
|
+
const an = (e) => {
|
|
3858
3858
|
if (!e)
|
|
3859
3859
|
return { filters: void 0, relations: void 0 };
|
|
3860
3860
|
if (Array.isArray(e))
|
|
@@ -3868,17 +3868,17 @@ const on = (e) => {
|
|
|
3868
3868
|
return { left: c, right: d, operator: "AND" };
|
|
3869
3869
|
}
|
|
3870
3870
|
function r(a) {
|
|
3871
|
-
return a && (
|
|
3871
|
+
return a && (Ka(a) ? Wa(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));
|
|
3872
3872
|
}
|
|
3873
|
-
const s =
|
|
3873
|
+
const s = Ia(e), i = r(s);
|
|
3874
3874
|
return { filters: Array.from(t), relations: i };
|
|
3875
3875
|
};
|
|
3876
|
-
function
|
|
3876
|
+
function Ka(e) {
|
|
3877
3877
|
return "config" in e && "guid" in e.config;
|
|
3878
3878
|
}
|
|
3879
3879
|
S.TextAttribute, S.NumericAttribute, S.DateLevel;
|
|
3880
|
-
const
|
|
3881
|
-
const [t, n] = q(
|
|
3880
|
+
const Vo = (e) => {
|
|
3881
|
+
const [t, n] = q(Vt, {
|
|
3882
3882
|
isLoading: !0,
|
|
3883
3883
|
isError: !1,
|
|
3884
3884
|
isSuccess: !1,
|
|
@@ -3899,9 +3899,9 @@ const Ho = (e) => {
|
|
|
3899
3899
|
offset: l,
|
|
3900
3900
|
ungroup: g,
|
|
3901
3901
|
onBeforeQuery: p
|
|
3902
|
-
} = O(e), { filters: m, relations: h } =
|
|
3902
|
+
} = O(e), { filters: m, relations: h } = an(c);
|
|
3903
3903
|
n({ type: "loading" });
|
|
3904
|
-
const x = await
|
|
3904
|
+
const x = await Bn(
|
|
3905
3905
|
{
|
|
3906
3906
|
dataSource: a,
|
|
3907
3907
|
dimensions: o,
|
|
@@ -3914,25 +3914,25 @@ const Ho = (e) => {
|
|
|
3914
3914
|
ungroup: g
|
|
3915
3915
|
},
|
|
3916
3916
|
i,
|
|
3917
|
-
{ onBeforeQuery:
|
|
3917
|
+
{ onBeforeQuery: Je(p) }
|
|
3918
3918
|
);
|
|
3919
3919
|
n({ type: "success", data: x });
|
|
3920
3920
|
} catch (a) {
|
|
3921
3921
|
n({ type: "error", error: a });
|
|
3922
3922
|
}
|
|
3923
3923
|
};
|
|
3924
|
-
return
|
|
3925
|
-
[...
|
|
3924
|
+
return R(
|
|
3925
|
+
[...T(e), r],
|
|
3926
3926
|
() => {
|
|
3927
3927
|
const { app: i } = r.value, { enabled: a } = O(e);
|
|
3928
3928
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
3929
3929
|
},
|
|
3930
3930
|
{ immediate: !0 }
|
|
3931
|
-
),
|
|
3932
|
-
},
|
|
3931
|
+
), F(t.value);
|
|
3932
|
+
}, Wo = (e) => {
|
|
3933
3933
|
const t = B(void 0), n = B(void 0);
|
|
3934
3934
|
M("useExecuteQueryByWidgetId");
|
|
3935
|
-
const [r, s] = q(
|
|
3935
|
+
const [r, s] = q(Vt, {
|
|
3936
3936
|
isLoading: !0,
|
|
3937
3937
|
isError: !1,
|
|
3938
3938
|
isSuccess: !1,
|
|
@@ -3942,11 +3942,11 @@ const Ho = (e) => {
|
|
|
3942
3942
|
}), i = V(), a = async (o) => {
|
|
3943
3943
|
try {
|
|
3944
3944
|
s({ type: "loading" });
|
|
3945
|
-
const { filters: u, ...c } = O(e), { filters: d } =
|
|
3945
|
+
const { filters: u, ...c } = O(e), { filters: d } = an(Je(u)), {
|
|
3946
3946
|
data: f,
|
|
3947
3947
|
query: l,
|
|
3948
3948
|
pivotQuery: g
|
|
3949
|
-
} = await
|
|
3949
|
+
} = await Un({
|
|
3950
3950
|
...c,
|
|
3951
3951
|
filters: d,
|
|
3952
3952
|
app: o
|
|
@@ -3956,23 +3956,23 @@ const Ho = (e) => {
|
|
|
3956
3956
|
s({ type: "error", error: u });
|
|
3957
3957
|
}
|
|
3958
3958
|
};
|
|
3959
|
-
return
|
|
3960
|
-
[...
|
|
3959
|
+
return R(
|
|
3960
|
+
[...T(e), i],
|
|
3961
3961
|
() => {
|
|
3962
3962
|
const { app: o } = i.value, { enabled: u } = O(e);
|
|
3963
3963
|
!o || !(u === void 0 || u === !0) || a(o);
|
|
3964
3964
|
},
|
|
3965
3965
|
{ immediate: !0 }
|
|
3966
3966
|
), {
|
|
3967
|
-
...
|
|
3967
|
+
...F(r.value),
|
|
3968
3968
|
query: t,
|
|
3969
3969
|
pivotQuery: n
|
|
3970
3970
|
};
|
|
3971
|
-
},
|
|
3971
|
+
}, Ho = (e) => {
|
|
3972
3972
|
M("useExecuteCsvQuery");
|
|
3973
|
-
const t = new
|
|
3974
|
-
|
|
3975
|
-
]), [n, r] =
|
|
3973
|
+
const t = new De(qn, [
|
|
3974
|
+
Pe()
|
|
3975
|
+
]), [n, r] = je({
|
|
3976
3976
|
isLoading: !0,
|
|
3977
3977
|
isError: !1,
|
|
3978
3978
|
isSuccess: !1,
|
|
@@ -3982,16 +3982,16 @@ const Ho = (e) => {
|
|
|
3982
3982
|
});
|
|
3983
3983
|
return t.subscribe((s) => {
|
|
3984
3984
|
r(s);
|
|
3985
|
-
}), t.run(O(e)),
|
|
3985
|
+
}), t.run(O(e)), R([...T(e)], () => {
|
|
3986
3986
|
t.run(O(e));
|
|
3987
|
-
}),
|
|
3987
|
+
}), Fe(() => {
|
|
3988
3988
|
t.destroy();
|
|
3989
|
-
}),
|
|
3990
|
-
},
|
|
3989
|
+
}), F(n.value);
|
|
3990
|
+
}, Ko = (e) => {
|
|
3991
3991
|
M("useExecuteCustomWidgetQuery");
|
|
3992
|
-
const t = new
|
|
3993
|
-
|
|
3994
|
-
]), [n, r] =
|
|
3992
|
+
const t = new De(Vn, [
|
|
3993
|
+
Pe()
|
|
3994
|
+
]), [n, r] = je({
|
|
3995
3995
|
data: void 0,
|
|
3996
3996
|
isLoading: !0,
|
|
3997
3997
|
isError: !1,
|
|
@@ -4001,17 +4001,17 @@ const Ho = (e) => {
|
|
|
4001
4001
|
});
|
|
4002
4002
|
return t.subscribe((s) => {
|
|
4003
4003
|
r(s);
|
|
4004
|
-
}), t.run(O(e)),
|
|
4004
|
+
}), t.run(O(e)), R([...T(e)], () => {
|
|
4005
4005
|
t.run(O(e));
|
|
4006
|
-
}),
|
|
4006
|
+
}), Fe(() => {
|
|
4007
4007
|
t.destroy();
|
|
4008
|
-
}),
|
|
4008
|
+
}), F(n.value);
|
|
4009
4009
|
}, zo = (e) => {
|
|
4010
4010
|
M("useGetFilterMembers");
|
|
4011
4011
|
const { filter: t, parentFilters: n = [] } = O(e), r = {
|
|
4012
4012
|
selectedMembers: [],
|
|
4013
4013
|
allMembers: [],
|
|
4014
|
-
...
|
|
4014
|
+
...Va(t) ? {
|
|
4015
4015
|
excludeMembers: t.config.excludeMembers,
|
|
4016
4016
|
enableMultiSelection: t.config.enableMultiSelection,
|
|
4017
4017
|
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
|
@@ -4020,7 +4020,7 @@ const Ho = (e) => {
|
|
|
4020
4020
|
enableMultiSelection: !1,
|
|
4021
4021
|
hasBackgroundFilter: !1
|
|
4022
4022
|
}
|
|
4023
|
-
}, s = new
|
|
4023
|
+
}, s = new De(Wn, [Pe()]), [i, a] = je({
|
|
4024
4024
|
isLoading: !0,
|
|
4025
4025
|
isError: !1,
|
|
4026
4026
|
isSuccess: !1,
|
|
@@ -4030,12 +4030,12 @@ const Ho = (e) => {
|
|
|
4030
4030
|
});
|
|
4031
4031
|
return s.subscribe((o) => {
|
|
4032
4032
|
a(o);
|
|
4033
|
-
}), s.run(O(e)),
|
|
4033
|
+
}), s.run(O(e)), R([...T(e)], () => {
|
|
4034
4034
|
s.run(O(e));
|
|
4035
|
-
}),
|
|
4035
|
+
}), Fe(() => {
|
|
4036
4036
|
s.destroy();
|
|
4037
|
-
}),
|
|
4038
|
-
},
|
|
4037
|
+
}), F(i.value);
|
|
4038
|
+
}, Go = (e) => {
|
|
4039
4039
|
M("useGetDashboardModel");
|
|
4040
4040
|
const [t, n] = q(X, {
|
|
4041
4041
|
isLoading: !0,
|
|
@@ -4047,7 +4047,7 @@ const Ho = (e) => {
|
|
|
4047
4047
|
}), r = V(), s = async (a) => {
|
|
4048
4048
|
try {
|
|
4049
4049
|
n({ type: "loading" });
|
|
4050
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = O(e), d = await
|
|
4050
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = O(e), d = await Kn(a.httpClient, o, {
|
|
4051
4051
|
includeWidgets: u,
|
|
4052
4052
|
includeFilters: c
|
|
4053
4053
|
});
|
|
@@ -4056,16 +4056,16 @@ const Ho = (e) => {
|
|
|
4056
4056
|
n({ type: "error", error: o });
|
|
4057
4057
|
}
|
|
4058
4058
|
};
|
|
4059
|
-
|
|
4060
|
-
[...
|
|
4059
|
+
R(
|
|
4060
|
+
[...T(e), r],
|
|
4061
4061
|
() => {
|
|
4062
4062
|
const { app: a } = r.value, { enabled: o } = O(e);
|
|
4063
4063
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4064
4064
|
},
|
|
4065
4065
|
{ immediate: !0 }
|
|
4066
4066
|
);
|
|
4067
|
-
const i =
|
|
4068
|
-
return
|
|
4067
|
+
const i = F(t.value);
|
|
4068
|
+
return F(Hn(i));
|
|
4069
4069
|
}, Qo = (e) => {
|
|
4070
4070
|
M("useGetDashboardModels");
|
|
4071
4071
|
const [t, n] = q(X, {
|
|
@@ -4078,23 +4078,23 @@ const Ho = (e) => {
|
|
|
4078
4078
|
}), r = V(), s = async (a) => {
|
|
4079
4079
|
try {
|
|
4080
4080
|
n({ type: "loading" });
|
|
4081
|
-
const o = O(e), u = await
|
|
4081
|
+
const o = O(e), u = await Gn(a.httpClient, o);
|
|
4082
4082
|
n({ type: "success", data: u });
|
|
4083
4083
|
} catch (o) {
|
|
4084
4084
|
n({ type: "error", error: o });
|
|
4085
4085
|
}
|
|
4086
4086
|
};
|
|
4087
|
-
|
|
4088
|
-
[...
|
|
4087
|
+
R(
|
|
4088
|
+
[...T(e), r],
|
|
4089
4089
|
() => {
|
|
4090
4090
|
const { app: a } = r.value, { enabled: o } = O(e);
|
|
4091
4091
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4092
4092
|
},
|
|
4093
4093
|
{ immediate: !0 }
|
|
4094
4094
|
);
|
|
4095
|
-
const i =
|
|
4096
|
-
return
|
|
4097
|
-
},
|
|
4095
|
+
const i = F(t.value);
|
|
4096
|
+
return F(zn(i));
|
|
4097
|
+
}, Jo = (e) => {
|
|
4098
4098
|
M("useGetSharedFormula");
|
|
4099
4099
|
const [t, n] = q(X, {
|
|
4100
4100
|
isLoading: !0,
|
|
@@ -4107,25 +4107,25 @@ const Ho = (e) => {
|
|
|
4107
4107
|
n({ type: "loading" });
|
|
4108
4108
|
const { dataSource: o, name: u, oid: c } = O(e);
|
|
4109
4109
|
let d = Promise.resolve(null);
|
|
4110
|
-
c ? d =
|
|
4110
|
+
c ? d = Jn(c, a) : u && o && (d = Yn(u, o, a)), d.then((f) => {
|
|
4111
4111
|
n({ type: "success", data: f });
|
|
4112
4112
|
}).catch((f) => {
|
|
4113
4113
|
n({ type: "error", error: f });
|
|
4114
4114
|
});
|
|
4115
4115
|
};
|
|
4116
|
-
|
|
4117
|
-
[...
|
|
4116
|
+
R(
|
|
4117
|
+
[...T(e), r],
|
|
4118
4118
|
() => {
|
|
4119
4119
|
const { app: a } = r.value, { enabled: o } = O(e);
|
|
4120
4120
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4121
4121
|
},
|
|
4122
4122
|
{ immediate: !0 }
|
|
4123
4123
|
);
|
|
4124
|
-
const i =
|
|
4125
|
-
return
|
|
4126
|
-
|
|
4124
|
+
const i = F(t.value);
|
|
4125
|
+
return F(
|
|
4126
|
+
Qn(i)
|
|
4127
4127
|
);
|
|
4128
|
-
},
|
|
4128
|
+
}, Yo = (e) => {
|
|
4129
4129
|
M("useGetWidgetModel");
|
|
4130
4130
|
const [t, n] = q(X, {
|
|
4131
4131
|
isLoading: !0,
|
|
@@ -4137,20 +4137,20 @@ const Ho = (e) => {
|
|
|
4137
4137
|
}), r = V(), s = async (i) => {
|
|
4138
4138
|
try {
|
|
4139
4139
|
n({ type: "loading" });
|
|
4140
|
-
const { dashboardOid: a, widgetOid: o } = O(e), u = await
|
|
4140
|
+
const { dashboardOid: a, widgetOid: o } = O(e), u = await Xn(i.httpClient, a, o);
|
|
4141
4141
|
n({ type: "success", data: u });
|
|
4142
4142
|
} catch (a) {
|
|
4143
4143
|
n({ type: "error", error: a });
|
|
4144
4144
|
}
|
|
4145
4145
|
};
|
|
4146
|
-
return
|
|
4147
|
-
[...
|
|
4146
|
+
return R(
|
|
4147
|
+
[...T(e), r],
|
|
4148
4148
|
() => {
|
|
4149
4149
|
const { app: i } = r.value, { enabled: a } = O(e);
|
|
4150
4150
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4151
4151
|
},
|
|
4152
4152
|
{ immediate: !0 }
|
|
4153
|
-
),
|
|
4153
|
+
), F(t.value);
|
|
4154
4154
|
}, Xo = (e) => {
|
|
4155
4155
|
M("useGetHierarchyModels");
|
|
4156
4156
|
const [t, n] = q(X, {
|
|
@@ -4163,21 +4163,21 @@ const Ho = (e) => {
|
|
|
4163
4163
|
}), r = V(), s = async (i) => {
|
|
4164
4164
|
try {
|
|
4165
4165
|
n({ type: "loading" });
|
|
4166
|
-
const a = await
|
|
4166
|
+
const a = await Zn(i.httpClient, O(e));
|
|
4167
4167
|
n({ type: "success", data: a });
|
|
4168
4168
|
} catch (a) {
|
|
4169
4169
|
n({ type: "error", error: a });
|
|
4170
4170
|
}
|
|
4171
4171
|
};
|
|
4172
|
-
return
|
|
4173
|
-
[...
|
|
4172
|
+
return R(
|
|
4173
|
+
[...T(e), r],
|
|
4174
4174
|
() => {
|
|
4175
4175
|
const { app: i } = r.value, { enabled: a } = O(e);
|
|
4176
4176
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4177
4177
|
},
|
|
4178
4178
|
{ immediate: !0 }
|
|
4179
|
-
),
|
|
4180
|
-
},
|
|
4179
|
+
), F(t.value);
|
|
4180
|
+
}, Zo = (e, t, n) => {
|
|
4181
4181
|
const [r, s] = q(X, {
|
|
4182
4182
|
isLoading: !0,
|
|
4183
4183
|
isError: !1,
|
|
@@ -4188,7 +4188,7 @@ const Ho = (e) => {
|
|
|
4188
4188
|
}), i = V(), a = async (o) => {
|
|
4189
4189
|
try {
|
|
4190
4190
|
s({ type: "loading" });
|
|
4191
|
-
const u =
|
|
4191
|
+
const u = Je(e), c = t ? O(t) : {}, d = n ? O(n) : {}, f = {
|
|
4192
4192
|
requestConfig: d.requestConfig ? O(d.requestConfig) : {},
|
|
4193
4193
|
skipTrackingParam: !0
|
|
4194
4194
|
}, l = await o.call(
|
|
@@ -4201,19 +4201,19 @@ const Ho = (e) => {
|
|
|
4201
4201
|
s({ type: "error", error: u });
|
|
4202
4202
|
}
|
|
4203
4203
|
};
|
|
4204
|
-
return
|
|
4205
|
-
[...
|
|
4204
|
+
return R(
|
|
4205
|
+
[...T(e, t, n), i],
|
|
4206
4206
|
() => {
|
|
4207
4207
|
const { app: o } = i.value, u = O(n || {}).enabled;
|
|
4208
4208
|
!o || !(u === void 0 || u === !0) || a(o.httpClient);
|
|
4209
4209
|
},
|
|
4210
4210
|
{ immediate: !0 }
|
|
4211
|
-
),
|
|
4211
|
+
), F(r.value);
|
|
4212
4212
|
};
|
|
4213
4213
|
function za(e, t) {
|
|
4214
4214
|
const n = document.createElement("div");
|
|
4215
4215
|
n.style.width = "100%", n.style.height = "100%";
|
|
4216
|
-
const r =
|
|
4216
|
+
const r = mr(e, t);
|
|
4217
4217
|
return r.mount(n), {
|
|
4218
4218
|
element: n,
|
|
4219
4219
|
app: r,
|
|
@@ -4222,8 +4222,8 @@ function za(e, t) {
|
|
|
4222
4222
|
}
|
|
4223
4223
|
};
|
|
4224
4224
|
}
|
|
4225
|
-
const
|
|
4226
|
-
const e =
|
|
4225
|
+
const eu = () => {
|
|
4226
|
+
const e = er();
|
|
4227
4227
|
return {
|
|
4228
4228
|
/**
|
|
4229
4229
|
* Registers a new custom widget.
|
|
@@ -4234,7 +4234,7 @@ const tu = () => {
|
|
|
4234
4234
|
registerCustomWidget: (t, n) => {
|
|
4235
4235
|
const r = (s) => {
|
|
4236
4236
|
const i = za(n, s);
|
|
4237
|
-
return
|
|
4237
|
+
return tr(
|
|
4238
4238
|
i.element,
|
|
4239
4239
|
() => i.destroy()
|
|
4240
4240
|
);
|
|
@@ -4252,25 +4252,25 @@ const tu = () => {
|
|
|
4252
4252
|
*/
|
|
4253
4253
|
hasCustomWidget: (t) => e.value.customWidgetsMap.has(t)
|
|
4254
4254
|
};
|
|
4255
|
-
},
|
|
4255
|
+
}, tu = (e, t = {}) => {
|
|
4256
4256
|
M("useComposedDashboard");
|
|
4257
|
-
const n = new
|
|
4258
|
-
|
|
4259
|
-
]), [r, s] =
|
|
4257
|
+
const n = new De(nr, [
|
|
4258
|
+
Pe()
|
|
4259
|
+
]), [r, s] = je(O(e));
|
|
4260
4260
|
n.subscribe(({ dashboard: o }) => {
|
|
4261
4261
|
s(o);
|
|
4262
|
-
}), n.run(O(e), t),
|
|
4262
|
+
}), n.run(O(e), t), R([...T(e)], () => {
|
|
4263
4263
|
n.run(O(e), t);
|
|
4264
|
-
}),
|
|
4264
|
+
}), Fe(() => {
|
|
4265
4265
|
n.destroy();
|
|
4266
4266
|
});
|
|
4267
|
-
const i =
|
|
4267
|
+
const i = at(n, "setFilters"), a = at(n, "setWidgetsLayout");
|
|
4268
4268
|
return {
|
|
4269
4269
|
dashboard: r,
|
|
4270
4270
|
setFilters: i,
|
|
4271
4271
|
setWidgetsLayout: a
|
|
4272
4272
|
};
|
|
4273
|
-
},
|
|
4273
|
+
}, Ga = y({
|
|
4274
4274
|
props: {
|
|
4275
4275
|
/**
|
|
4276
4276
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -4288,7 +4288,7 @@ const tu = () => {
|
|
|
4288
4288
|
*/
|
|
4289
4289
|
position: Object
|
|
4290
4290
|
},
|
|
4291
|
-
setup: (e, { slots: t }) =>
|
|
4291
|
+
setup: (e, { slots: t }) => It(rr, e, t, [])
|
|
4292
4292
|
}), Qa = ({
|
|
4293
4293
|
drilldownPaths: e,
|
|
4294
4294
|
initialDimension: t
|
|
@@ -4297,24 +4297,24 @@ const tu = () => {
|
|
|
4297
4297
|
throw new Error(
|
|
4298
4298
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
4299
4299
|
);
|
|
4300
|
-
const n = B([]), r = B(), s = B([]), i = B([]), a =
|
|
4301
|
-
|
|
4300
|
+
const n = B([]), r = B(), s = B([]), i = B([]), a = Ve(() => [
|
|
4301
|
+
sr(t),
|
|
4302
4302
|
...n.value.map(({ nextDimension: l }) => l)
|
|
4303
|
-
]), o =
|
|
4303
|
+
]), o = Ve(
|
|
4304
4304
|
() => e.value.filter((l) => {
|
|
4305
4305
|
if (S.isAttribute(l)) {
|
|
4306
4306
|
const m = l;
|
|
4307
4307
|
return a.value.every(
|
|
4308
|
-
(h) => !
|
|
4308
|
+
(h) => !ot(h, m)
|
|
4309
4309
|
);
|
|
4310
4310
|
}
|
|
4311
4311
|
const p = l;
|
|
4312
4312
|
return a.value.every(
|
|
4313
|
-
(m, h) =>
|
|
4313
|
+
(m, h) => ot(m, p.levels[h])
|
|
4314
4314
|
);
|
|
4315
4315
|
})
|
|
4316
4316
|
), u = (l, g, p) => {
|
|
4317
|
-
n.value =
|
|
4317
|
+
n.value = ir(
|
|
4318
4318
|
n.value,
|
|
4319
4319
|
l,
|
|
4320
4320
|
g,
|
|
@@ -4325,7 +4325,7 @@ const tu = () => {
|
|
|
4325
4325
|
}, d = () => {
|
|
4326
4326
|
n.value = [], f();
|
|
4327
4327
|
}, f = () => {
|
|
4328
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
|
4328
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = ar(
|
|
4329
4329
|
n.value,
|
|
4330
4330
|
t,
|
|
4331
4331
|
l
|
|
@@ -4342,7 +4342,7 @@ const tu = () => {
|
|
|
4342
4342
|
sliceDrilldownSelections: c,
|
|
4343
4343
|
clearDrilldownSelections: d
|
|
4344
4344
|
};
|
|
4345
|
-
},
|
|
4345
|
+
}, Ja = y({
|
|
4346
4346
|
props: {
|
|
4347
4347
|
/**
|
|
4348
4348
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -4378,11 +4378,11 @@ const tu = () => {
|
|
|
4378
4378
|
},
|
|
4379
4379
|
setup: () => {
|
|
4380
4380
|
}
|
|
4381
|
-
}),
|
|
4381
|
+
}), Ya = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, Xa = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, nu = /* @__PURE__ */ y({
|
|
4382
4382
|
__name: "drilldown-widget",
|
|
4383
|
-
props:
|
|
4383
|
+
props: Ja.props,
|
|
4384
4384
|
setup(e) {
|
|
4385
|
-
const t = e, { drilldownPaths: n, initialDimension: r, config: s } =
|
|
4385
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = F(t), i = B(null), a = B([]), {
|
|
4386
4386
|
drilldownFilters: o,
|
|
4387
4387
|
// computed
|
|
4388
4388
|
drilldownDimension: u,
|
|
@@ -4397,37 +4397,37 @@ const tu = () => {
|
|
|
4397
4397
|
} = Qa({
|
|
4398
4398
|
drilldownPaths: n,
|
|
4399
4399
|
initialDimension: r.value
|
|
4400
|
-
}), p = (
|
|
4401
|
-
f(a.value,
|
|
4402
|
-
}, m =
|
|
4403
|
-
const
|
|
4400
|
+
}), p = (D) => {
|
|
4401
|
+
f(a.value, D);
|
|
4402
|
+
}, m = Ve(() => {
|
|
4403
|
+
const D = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
|
4404
4404
|
return [
|
|
4405
|
-
|
|
4406
|
-
|
|
4405
|
+
or(a.value, u.value),
|
|
4406
|
+
ur(
|
|
4407
4407
|
d.value,
|
|
4408
4408
|
u.value,
|
|
4409
4409
|
p,
|
|
4410
|
-
|
|
4410
|
+
D
|
|
4411
4411
|
)
|
|
4412
4412
|
];
|
|
4413
|
-
}), h = (
|
|
4414
|
-
i.value =
|
|
4415
|
-
}, x = (
|
|
4416
|
-
a.value =
|
|
4413
|
+
}), h = (D) => {
|
|
4414
|
+
i.value = D;
|
|
4415
|
+
}, x = (D) => {
|
|
4416
|
+
a.value = D;
|
|
4417
4417
|
}, w = () => {
|
|
4418
4418
|
i.value = null;
|
|
4419
4419
|
};
|
|
4420
|
-
return (
|
|
4421
|
-
|
|
4420
|
+
return (D, C) => (yr(), br("div", Ya, [
|
|
4421
|
+
Te(D.$slots, "contextMenu", {
|
|
4422
4422
|
contextMenuProps: { position: i.value, itemSections: m.value, closeContextMenu: w }
|
|
4423
4423
|
}, () => [
|
|
4424
|
-
|
|
4424
|
+
ut(E(Ga), {
|
|
4425
4425
|
position: i.value,
|
|
4426
4426
|
itemSections: m.value,
|
|
4427
4427
|
closeContextMenu: w
|
|
4428
4428
|
}, null, 8, ["position", "itemSections"])
|
|
4429
4429
|
]),
|
|
4430
|
-
|
|
4430
|
+
Te(D.$slots, "breadcrumbs", {
|
|
4431
4431
|
drilldownBreadcrumbsProps: {
|
|
4432
4432
|
clearDrilldownSelections: E(g),
|
|
4433
4433
|
sliceDrilldownSelections: E(l),
|
|
@@ -4435,15 +4435,15 @@ const tu = () => {
|
|
|
4435
4435
|
drilldownDimension: E(u)
|
|
4436
4436
|
}
|
|
4437
4437
|
}, () => [
|
|
4438
|
-
|
|
4438
|
+
ut(E(Or), {
|
|
4439
4439
|
"clear-drilldown-selections": E(g),
|
|
4440
4440
|
"slice-drilldown-selections": E(l),
|
|
4441
4441
|
"filters-display-values": E(c),
|
|
4442
4442
|
"current-dimension": E(u)
|
|
4443
4443
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
4444
4444
|
]),
|
|
4445
|
-
|
|
4446
|
-
|
|
4445
|
+
Sr("div", Xa, [
|
|
4446
|
+
Te(D.$slots, "chart", {
|
|
4447
4447
|
drilldownFilters: E(o),
|
|
4448
4448
|
drilldownDimension: E(u),
|
|
4449
4449
|
onDataPointsSelected: x,
|
|
@@ -4452,7 +4452,7 @@ const tu = () => {
|
|
|
4452
4452
|
])
|
|
4453
4453
|
]));
|
|
4454
4454
|
}
|
|
4455
|
-
}),
|
|
4455
|
+
}), ru = y({
|
|
4456
4456
|
props: {
|
|
4457
4457
|
/**
|
|
4458
4458
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -4587,8 +4587,8 @@ const tu = () => {
|
|
|
4587
4587
|
*/
|
|
4588
4588
|
onDataReady: Function
|
|
4589
4589
|
},
|
|
4590
|
-
setup: (e) => b(
|
|
4591
|
-
}),
|
|
4590
|
+
setup: (e) => b(lr, e)
|
|
4591
|
+
}), su = y({
|
|
4592
4592
|
props: {
|
|
4593
4593
|
/** @internal */
|
|
4594
4594
|
bottomSlot: Object,
|
|
@@ -4699,8 +4699,8 @@ const tu = () => {
|
|
|
4699
4699
|
*/
|
|
4700
4700
|
onDataReady: Function
|
|
4701
4701
|
},
|
|
4702
|
-
setup: (e) => b(
|
|
4703
|
-
}),
|
|
4702
|
+
setup: (e) => b(cr, e)
|
|
4703
|
+
}), iu = y({
|
|
4704
4704
|
props: {
|
|
4705
4705
|
bottomSlot: Object,
|
|
4706
4706
|
dataOptions: {
|
|
@@ -4715,8 +4715,8 @@ const tu = () => {
|
|
|
4715
4715
|
topSlot: Object,
|
|
4716
4716
|
widgetStyleOptions: Object
|
|
4717
4717
|
},
|
|
4718
|
-
setup: (e) => b(
|
|
4719
|
-
}),
|
|
4718
|
+
setup: (e) => b(dr, e)
|
|
4719
|
+
}), au = y({
|
|
4720
4720
|
props: {
|
|
4721
4721
|
/**
|
|
4722
4722
|
* Unique identifier of the widget
|
|
@@ -4841,8 +4841,8 @@ const tu = () => {
|
|
|
4841
4841
|
*/
|
|
4842
4842
|
onDataPointsSelected: Function
|
|
4843
4843
|
},
|
|
4844
|
-
setup: (e) => b(
|
|
4845
|
-
}),
|
|
4844
|
+
setup: (e) => b(fr, e)
|
|
4845
|
+
}), ou = y({
|
|
4846
4846
|
props: {
|
|
4847
4847
|
/**
|
|
4848
4848
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -4856,8 +4856,8 @@ const tu = () => {
|
|
|
4856
4856
|
*/
|
|
4857
4857
|
config: Object
|
|
4858
4858
|
},
|
|
4859
|
-
setup: (e) => b(
|
|
4860
|
-
}),
|
|
4859
|
+
setup: (e) => b(pr, e)
|
|
4860
|
+
}), uu = y({
|
|
4861
4861
|
props: {
|
|
4862
4862
|
/**
|
|
4863
4863
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -4893,118 +4893,112 @@ const tu = () => {
|
|
|
4893
4893
|
/**
|
|
4894
4894
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.styleOptions}
|
|
4895
4895
|
*/
|
|
4896
|
-
styleOptions: Object
|
|
4897
|
-
/**
|
|
4898
|
-
* {@inheritDoc @sisense/sdk-ui!DashboardProps.tabbersOptions}
|
|
4899
|
-
*
|
|
4900
|
-
* @internal
|
|
4901
|
-
*/
|
|
4902
|
-
tabbersOptions: Object
|
|
4896
|
+
styleOptions: Object
|
|
4903
4897
|
},
|
|
4904
|
-
setup: (e) => b(
|
|
4898
|
+
setup: (e) => b(gr, e)
|
|
4905
4899
|
});
|
|
4906
|
-
function
|
|
4907
|
-
return
|
|
4900
|
+
function Za(e) {
|
|
4901
|
+
return hr.toDashboardProps(e);
|
|
4908
4902
|
}
|
|
4909
|
-
const
|
|
4903
|
+
const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4910
4904
|
__proto__: null,
|
|
4911
|
-
toDashboardProps:
|
|
4912
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4905
|
+
toDashboardProps: Za
|
|
4906
|
+
}, Symbol.toStringTag, { value: "Module" })), eo = (e, t) => Z.replaceFilters(e, t), to = (e, t) => Z.addFilter(e, t), no = (e, t) => Z.addFilters(e, t), ro = (e, t, n) => Z.replaceFilter(
|
|
4913
4907
|
e,
|
|
4914
4908
|
t,
|
|
4915
4909
|
n
|
|
4916
|
-
),
|
|
4910
|
+
), so = (e, t) => Z.removeFilter(e, t), io = (e, t) => Z.removeFilters(e, t), cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4917
4911
|
__proto__: null,
|
|
4918
|
-
addFilter:
|
|
4919
|
-
addFilters:
|
|
4920
|
-
removeFilter:
|
|
4921
|
-
removeFilters:
|
|
4922
|
-
replaceFilter:
|
|
4923
|
-
replaceFilters:
|
|
4924
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4912
|
+
addFilter: to,
|
|
4913
|
+
addFilters: no,
|
|
4914
|
+
removeFilter: so,
|
|
4915
|
+
removeFilters: io,
|
|
4916
|
+
replaceFilter: ro,
|
|
4917
|
+
replaceFilters: eo
|
|
4918
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = (e) => W.toExecuteQueryParams(e), oo = (e) => W.toExecutePivotQueryParams(e);
|
|
4919
|
+
function uo(e) {
|
|
4920
|
+
return W.toChartProps(e);
|
|
4921
|
+
}
|
|
4925
4922
|
function lo(e) {
|
|
4926
|
-
return
|
|
4923
|
+
return W.toTableProps(e);
|
|
4927
4924
|
}
|
|
4928
4925
|
function co(e) {
|
|
4929
|
-
return
|
|
4926
|
+
return W.toPivotTableProps(e);
|
|
4930
4927
|
}
|
|
4931
4928
|
function fo(e) {
|
|
4932
|
-
return
|
|
4929
|
+
return W.toChartWidgetProps(e);
|
|
4933
4930
|
}
|
|
4934
4931
|
function po(e) {
|
|
4935
|
-
return
|
|
4932
|
+
return W.toPivotTableWidgetProps(e);
|
|
4936
4933
|
}
|
|
4937
4934
|
function go(e) {
|
|
4938
|
-
return
|
|
4939
|
-
}
|
|
4940
|
-
function ho(e) {
|
|
4941
|
-
return H.toTextWidgetProps(e);
|
|
4935
|
+
return W.toTextWidgetProps(e);
|
|
4942
4936
|
}
|
|
4943
|
-
const
|
|
4937
|
+
const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4944
4938
|
__proto__: null,
|
|
4945
|
-
toChartProps:
|
|
4946
|
-
toChartWidgetProps:
|
|
4947
|
-
toExecutePivotQueryParams:
|
|
4948
|
-
toExecuteQueryParams:
|
|
4949
|
-
toPivotTableProps:
|
|
4950
|
-
toPivotTableWidgetProps:
|
|
4951
|
-
toTableProps:
|
|
4952
|
-
toTextWidgetProps:
|
|
4939
|
+
toChartProps: uo,
|
|
4940
|
+
toChartWidgetProps: fo,
|
|
4941
|
+
toExecutePivotQueryParams: oo,
|
|
4942
|
+
toExecuteQueryParams: ao,
|
|
4943
|
+
toPivotTableProps: co,
|
|
4944
|
+
toPivotTableWidgetProps: po,
|
|
4945
|
+
toTableProps: lo,
|
|
4946
|
+
toTextWidgetProps: go
|
|
4953
4947
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4954
4948
|
export {
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4949
|
+
bo as AreaChart,
|
|
4950
|
+
$o as AreaRangeChart,
|
|
4951
|
+
Ro as AreamapChart,
|
|
4952
|
+
So as BarChart,
|
|
4953
|
+
To as BoxplotChart,
|
|
4954
|
+
Oo as CalendarHeatmapChart,
|
|
4955
|
+
No as Chart,
|
|
4956
|
+
ru as ChartWidget,
|
|
4957
|
+
vo as ColumnChart,
|
|
4958
|
+
Ga as ContextMenu,
|
|
4959
|
+
ko as CriteriaFilterTile,
|
|
4960
|
+
gu as CustomWidgetsProvider,
|
|
4961
|
+
uu as Dashboard,
|
|
4962
|
+
ou as DashboardById,
|
|
4963
|
+
Io as DateRangeFilterTile,
|
|
4964
|
+
Or as DrilldownBreadcrumbs,
|
|
4965
|
+
nu as DrilldownWidget,
|
|
4966
|
+
Uo as FilterTile,
|
|
4967
|
+
qo as FiltersPanel,
|
|
4968
|
+
xo as FunnelChart,
|
|
4969
|
+
Eo as IndicatorChart,
|
|
4970
|
+
Co as LineChart,
|
|
4971
|
+
_o as MemberFilterTile,
|
|
4972
|
+
wo as PieChart,
|
|
4973
|
+
jo as PivotTable,
|
|
4974
|
+
Lo as PolarChart,
|
|
4975
|
+
Bo as RelativeDateFilterTile,
|
|
4982
4976
|
Do as ScatterChart,
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4977
|
+
Mo as ScattermapChart,
|
|
4978
|
+
hu as SisenseContextProvider,
|
|
4979
|
+
Ao as SunburstChart,
|
|
4980
|
+
Po as Table,
|
|
4981
|
+
iu as TableWidget,
|
|
4982
|
+
mu as ThemeProvider,
|
|
4989
4983
|
Fo as TreemapChart,
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
4984
|
+
au as Widget,
|
|
4985
|
+
su as WidgetById,
|
|
4986
|
+
yu as boxWhiskerProcessResult,
|
|
4987
|
+
cu as dashboardHelpers,
|
|
4988
|
+
lu as dashboardModelTranslator,
|
|
4989
|
+
bu as extractDimensionsAndMeasures,
|
|
4990
|
+
tu as useComposedDashboard,
|
|
4991
|
+
eu as useCustomWidgets,
|
|
4992
|
+
Ho as useExecuteCsvQuery,
|
|
4993
|
+
Ko as useExecuteCustomWidgetQuery,
|
|
4994
|
+
Vo as useExecuteQuery,
|
|
4995
|
+
Wo as useExecuteQueryByWidgetId,
|
|
4996
|
+
Zo as useFetch,
|
|
4997
|
+
Go as useGetDashboardModel,
|
|
5004
4998
|
Qo as useGetDashboardModels,
|
|
5005
4999
|
zo as useGetFilterMembers,
|
|
5006
5000
|
Xo as useGetHierarchyModels,
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5001
|
+
Jo as useGetSharedFormula,
|
|
5002
|
+
Yo as useGetWidgetModel,
|
|
5003
|
+
du as widgetModelTranslator
|
|
5010
5004
|
};
|