@antv/s2-vue 1.0.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/README.md +389 -0
- package/dist/index.min.js +2 -0
- package/dist/index.min.js.map +1 -0
- package/dist/style.min.css +1 -0
- package/esm/common/constant/index.d.ts +3 -0
- package/esm/common/constant/index.d.ts.map +1 -0
- package/esm/common/constant/options.d.ts +3 -0
- package/esm/common/constant/options.d.ts.map +1 -0
- package/esm/common/constant/sort.d.ts +15 -0
- package/esm/common/constant/sort.d.ts.map +1 -0
- package/esm/components/index.d.ts +5 -0
- package/esm/components/index.d.ts.map +1 -0
- package/esm/components/pagination/index.vue.d.ts +43 -0
- package/esm/components/pagination/index.vue.d.ts.map +1 -0
- package/esm/components/sheets/base-sheet.vue.d.ts +287 -0
- package/esm/components/sheets/base-sheet.vue.d.ts.map +1 -0
- package/esm/components/sheets/index.vue.d.ts +432 -0
- package/esm/components/sheets/index.vue.d.ts.map +1 -0
- package/esm/components/sheets/pivot-sheet.vue.d.ts +217 -0
- package/esm/components/sheets/pivot-sheet.vue.d.ts.map +1 -0
- package/esm/components/sheets/table-sheet.vue.d.ts +217 -0
- package/esm/components/sheets/table-sheet.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/detail.vue.d.ts +7 -0
- package/esm/components/tooltip/components/detail.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/head-info.vue.d.ts +7 -0
- package/esm/components/tooltip/components/head-info.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/infos.vue.d.ts +7 -0
- package/esm/components/tooltip/components/infos.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/index.d.ts +4 -0
- package/esm/components/tooltip/components/operator/index.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/index.vue.d.ts +11 -0
- package/esm/components/tooltip/components/operator/index.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/menu.vue.d.ts +12 -0
- package/esm/components/tooltip/components/operator/menu.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/operator/title.vue.d.ts +11 -0
- package/esm/components/tooltip/components/operator/title.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/simple-tips.vue.d.ts +7 -0
- package/esm/components/tooltip/components/simple-tips.vue.d.ts.map +1 -0
- package/esm/components/tooltip/components/summary.vue.d.ts +9 -0
- package/esm/components/tooltip/components/summary.vue.d.ts.map +1 -0
- package/esm/components/tooltip/custom-tooltip.d.ts +7 -0
- package/esm/components/tooltip/custom-tooltip.d.ts.map +1 -0
- package/esm/components/tooltip/index.vue.d.ts +8 -0
- package/esm/components/tooltip/index.vue.d.ts.map +1 -0
- package/esm/components/tooltip/interface.d.ts +9 -0
- package/esm/components/tooltip/interface.d.ts.map +1 -0
- package/esm/hooks/useEvents.d.ts +5 -0
- package/esm/hooks/useEvents.d.ts.map +1 -0
- package/esm/hooks/useExpose.d.ts +6 -0
- package/esm/hooks/useExpose.d.ts.map +1 -0
- package/esm/hooks/useLoading.d.ts +7 -0
- package/esm/hooks/useLoading.d.ts.map +1 -0
- package/esm/hooks/usePagination.d.ts +14 -0
- package/esm/hooks/usePagination.d.ts.map +1 -0
- package/esm/hooks/useResize.d.ts +8 -0
- package/esm/hooks/useResize.d.ts.map +1 -0
- package/esm/hooks/useSheetUpdate.d.ts +5 -0
- package/esm/hooks/useSheetUpdate.d.ts.map +1 -0
- package/esm/hooks/useSpreadSheet.d.ts +19 -0
- package/esm/hooks/useSpreadSheet.d.ts.map +1 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +2379 -0
- package/esm/index.js.map +1 -0
- package/esm/interface.d.ts +36 -0
- package/esm/interface.d.ts.map +1 -0
- package/esm/style.css +208 -0
- package/esm/utils/extendLocale.d.ts +2 -0
- package/esm/utils/extendLocale.d.ts.map +1 -0
- package/esm/utils/initPropAndEmits.d.ts +137 -0
- package/esm/utils/initPropAndEmits.d.ts.map +1 -0
- package/esm/utils/options.d.ts +3 -0
- package/esm/utils/options.d.ts.map +1 -0
- package/esm/utils/traverse.d.ts +2 -0
- package/esm/utils/traverse.d.ts.map +1 -0
- package/lib/index.js +2385 -0
- package/lib/index.js.map +1 -0
- package/lib/style.css +208 -0
- package/package.json +88 -0
package/README.md
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
<h1 align="center">@antv/s2-vue</h1>
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
数据驱动的多维分析表格 (Vue 版本)。
|
|
6
|
+
|
|
7
|
+
</div>
|
|
8
|
+
|
|
9
|
+
## 📦 安装
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
$ npm install @antv/s2-vue
|
|
13
|
+
# yarn add @antv/s2-vue
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## 🔨 使用
|
|
17
|
+
|
|
18
|
+
### 1. 数据准备
|
|
19
|
+
|
|
20
|
+
<details>
|
|
21
|
+
<summary> s2DataConfig</summary>
|
|
22
|
+
|
|
23
|
+
```ts
|
|
24
|
+
const rawDataCfg: S2DataConfig = {
|
|
25
|
+
fields: {
|
|
26
|
+
rows: ['province', 'city'],
|
|
27
|
+
columns: ['type', 'sub_type'],
|
|
28
|
+
values: ['number'],
|
|
29
|
+
valueInCols: true,
|
|
30
|
+
},
|
|
31
|
+
meta: [
|
|
32
|
+
{
|
|
33
|
+
field: 'number',
|
|
34
|
+
name: '数量',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
field: 'province',
|
|
38
|
+
name: '省份',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
field: 'city',
|
|
42
|
+
name: '城市',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
field: 'type',
|
|
46
|
+
name: '类别',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
field: 'sub_type',
|
|
50
|
+
name: '子类别',
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
data: [
|
|
54
|
+
{
|
|
55
|
+
number: 7789,
|
|
56
|
+
province: '浙江省',
|
|
57
|
+
city: '杭州市',
|
|
58
|
+
type: '家具',
|
|
59
|
+
sub_type: '桌子',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
number: 2367,
|
|
63
|
+
province: '浙江省',
|
|
64
|
+
city: '绍兴市',
|
|
65
|
+
type: '家具',
|
|
66
|
+
sub_type: '桌子',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
number: 3877,
|
|
70
|
+
province: '浙江省',
|
|
71
|
+
city: '宁波市',
|
|
72
|
+
type: '家具',
|
|
73
|
+
sub_type: '桌子',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
number: 4342,
|
|
77
|
+
province: '浙江省',
|
|
78
|
+
city: '舟山市',
|
|
79
|
+
type: '家具',
|
|
80
|
+
sub_type: '桌子',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
number: 5343,
|
|
84
|
+
province: '浙江省',
|
|
85
|
+
city: '杭州市',
|
|
86
|
+
type: '家具',
|
|
87
|
+
sub_type: '沙发',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
number: 632,
|
|
91
|
+
province: '浙江省',
|
|
92
|
+
city: '绍兴市',
|
|
93
|
+
type: '家具',
|
|
94
|
+
sub_type: '沙发',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
number: 7234,
|
|
98
|
+
province: '浙江省',
|
|
99
|
+
city: '宁波市',
|
|
100
|
+
type: '家具',
|
|
101
|
+
sub_type: '沙发',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
number: 834,
|
|
105
|
+
province: '浙江省',
|
|
106
|
+
city: '舟山市',
|
|
107
|
+
type: '家具',
|
|
108
|
+
sub_type: '沙发',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
number: 945,
|
|
112
|
+
province: '浙江省',
|
|
113
|
+
city: '杭州市',
|
|
114
|
+
type: '办公用品',
|
|
115
|
+
sub_type: '笔',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
number: 1304,
|
|
119
|
+
province: '浙江省',
|
|
120
|
+
city: '绍兴市',
|
|
121
|
+
type: '办公用品',
|
|
122
|
+
sub_type: '笔',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
number: 1145,
|
|
126
|
+
province: '浙江省',
|
|
127
|
+
city: '宁波市',
|
|
128
|
+
type: '办公用品',
|
|
129
|
+
sub_type: '笔',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
number: 1432,
|
|
133
|
+
province: '浙江省',
|
|
134
|
+
city: '舟山市',
|
|
135
|
+
type: '办公用品',
|
|
136
|
+
sub_type: '笔',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
number: 1343,
|
|
140
|
+
province: '浙江省',
|
|
141
|
+
city: '杭州市',
|
|
142
|
+
type: '办公用品',
|
|
143
|
+
sub_type: '纸张',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
number: 1354,
|
|
147
|
+
province: '浙江省',
|
|
148
|
+
city: '绍兴市',
|
|
149
|
+
type: '办公用品',
|
|
150
|
+
sub_type: '纸张',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
number: 1523,
|
|
154
|
+
province: '浙江省',
|
|
155
|
+
city: '宁波市',
|
|
156
|
+
type: '办公用品',
|
|
157
|
+
sub_type: '纸张',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
number: 1634,
|
|
161
|
+
province: '浙江省',
|
|
162
|
+
city: '舟山市',
|
|
163
|
+
type: '办公用品',
|
|
164
|
+
sub_type: '纸张',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
number: 1723,
|
|
168
|
+
province: '四川省',
|
|
169
|
+
city: '成都市',
|
|
170
|
+
type: '家具',
|
|
171
|
+
sub_type: '桌子',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
number: 1822,
|
|
175
|
+
province: '四川省',
|
|
176
|
+
city: '绵阳市',
|
|
177
|
+
type: '家具',
|
|
178
|
+
sub_type: '桌子',
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
number: 1943,
|
|
182
|
+
province: '四川省',
|
|
183
|
+
city: '南充市',
|
|
184
|
+
type: '家具',
|
|
185
|
+
sub_type: '桌子',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
number: 2330,
|
|
189
|
+
province: '四川省',
|
|
190
|
+
city: '乐山市',
|
|
191
|
+
type: '家具',
|
|
192
|
+
sub_type: '桌子',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
number: 2451,
|
|
196
|
+
province: '四川省',
|
|
197
|
+
city: '成都市',
|
|
198
|
+
type: '家具',
|
|
199
|
+
sub_type: '沙发',
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
number: 2244,
|
|
203
|
+
province: '四川省',
|
|
204
|
+
city: '绵阳市',
|
|
205
|
+
type: '家具',
|
|
206
|
+
sub_type: '沙发',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
number: 2333,
|
|
210
|
+
province: '四川省',
|
|
211
|
+
city: '南充市',
|
|
212
|
+
type: '家具',
|
|
213
|
+
sub_type: '沙发',
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
number: 2445,
|
|
217
|
+
province: '四川省',
|
|
218
|
+
city: '乐山市',
|
|
219
|
+
type: '家具',
|
|
220
|
+
sub_type: '沙发',
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
number: 2335,
|
|
224
|
+
province: '四川省',
|
|
225
|
+
city: '成都市',
|
|
226
|
+
type: '办公用品',
|
|
227
|
+
sub_type: '笔',
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
number: 245,
|
|
231
|
+
province: '四川省',
|
|
232
|
+
city: '绵阳市',
|
|
233
|
+
type: '办公用品',
|
|
234
|
+
sub_type: '笔',
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
number: 2457,
|
|
238
|
+
province: '四川省',
|
|
239
|
+
city: '南充市',
|
|
240
|
+
type: '办公用品',
|
|
241
|
+
sub_type: '笔',
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
number: 2458,
|
|
245
|
+
province: '四川省',
|
|
246
|
+
city: '乐山市',
|
|
247
|
+
type: '办公用品',
|
|
248
|
+
sub_type: '笔',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
number: 4004,
|
|
252
|
+
province: '四川省',
|
|
253
|
+
city: '成都市',
|
|
254
|
+
type: '办公用品',
|
|
255
|
+
sub_type: '纸张',
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
number: 3077,
|
|
259
|
+
province: '四川省',
|
|
260
|
+
city: '绵阳市',
|
|
261
|
+
type: '办公用品',
|
|
262
|
+
sub_type: '纸张',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
number: 3551,
|
|
266
|
+
province: '四川省',
|
|
267
|
+
city: '南充市',
|
|
268
|
+
type: '办公用品',
|
|
269
|
+
sub_type: '纸张',
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
number: 352,
|
|
273
|
+
province: '四川省',
|
|
274
|
+
city: '乐山市',
|
|
275
|
+
type: '办公用品',
|
|
276
|
+
sub_type: '纸张',
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
};
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
</details>
|
|
283
|
+
|
|
284
|
+
<details>
|
|
285
|
+
<summary> S2Options</summary>
|
|
286
|
+
|
|
287
|
+
```ts
|
|
288
|
+
const rawOptions: S2Options = {
|
|
289
|
+
debug: true,
|
|
290
|
+
width: 600,
|
|
291
|
+
height: 400,
|
|
292
|
+
hierarchyCollapse: false,
|
|
293
|
+
tooltip: {
|
|
294
|
+
operation: {
|
|
295
|
+
trend: true,
|
|
296
|
+
hiddenColumns: true,
|
|
297
|
+
sort: true,
|
|
298
|
+
onClick: (...args) => {
|
|
299
|
+
console.log('menuClick', ...args);
|
|
300
|
+
},
|
|
301
|
+
menus: [
|
|
302
|
+
{
|
|
303
|
+
key: '1',
|
|
304
|
+
icon: 'Trend',
|
|
305
|
+
text: '菜单 1',
|
|
306
|
+
onClick(cell) {
|
|
307
|
+
console.log('cell-1: ', cell);
|
|
308
|
+
},
|
|
309
|
+
children: [
|
|
310
|
+
{
|
|
311
|
+
key: '1-1',
|
|
312
|
+
icon: 'Trend',
|
|
313
|
+
text: '菜单 1-1',
|
|
314
|
+
onClick(cell) {
|
|
315
|
+
console.log('cell-1-1: ', cell);
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
key: '2',
|
|
322
|
+
icon: 'Trend',
|
|
323
|
+
text: '菜单 2',
|
|
324
|
+
onClick(cell) {
|
|
325
|
+
console.log('cell-2: ', cell);
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
};
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
</details>
|
|
335
|
+
|
|
336
|
+
### 2. 组件配置
|
|
337
|
+
|
|
338
|
+
```ts
|
|
339
|
+
// App.vue
|
|
340
|
+
<script lang="ts">
|
|
341
|
+
import type { S2DataConfig, S2Options } from '@antv/s2';
|
|
342
|
+
import { Sheet } from '@antv/s2-vue';
|
|
343
|
+
import { defineComponent, onMounted, reactive, shallowRef } from 'vue';
|
|
344
|
+
|
|
345
|
+
export default defineComponent({
|
|
346
|
+
setup() {
|
|
347
|
+
const s2 = shallowRef();
|
|
348
|
+
// dataCfg 数据字段较多,建议使用 shallow, 如果有数据更改直接替换整个对象
|
|
349
|
+
const dataCfg = shallowRef(rawDataCfg);
|
|
350
|
+
const options: S2Options = reactive(rawOptions);
|
|
351
|
+
|
|
352
|
+
onMounted(() => {
|
|
353
|
+
console.log('s2 instance:', s2.value?.instance);
|
|
354
|
+
});
|
|
355
|
+
return {
|
|
356
|
+
s2,
|
|
357
|
+
dataCfg,
|
|
358
|
+
options,
|
|
359
|
+
};
|
|
360
|
+
},
|
|
361
|
+
|
|
362
|
+
components: {
|
|
363
|
+
Sheet,
|
|
364
|
+
},
|
|
365
|
+
});
|
|
366
|
+
</script>
|
|
367
|
+
|
|
368
|
+
<template>
|
|
369
|
+
<Sheet ref="s2" :dataCfg="dataCfg" :options="options" />
|
|
370
|
+
</template>
|
|
371
|
+
|
|
372
|
+
<style lang="less">
|
|
373
|
+
@import 'ant-design-vue/dist/antd.less';
|
|
374
|
+
</style>
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### 3. 渲染
|
|
378
|
+
|
|
379
|
+
```ts
|
|
380
|
+
import { createApp } from 'vue';
|
|
381
|
+
import App from './App.vue';
|
|
382
|
+
|
|
383
|
+
createApp(App).mount('#app');
|
|
384
|
+
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
### 4. 结果
|
|
388
|
+
|
|
389
|
+

|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var _l=Object.defineProperty,Cl=Object.defineProperties;var gl=Object.getOwnPropertyDescriptors;var $n=Object.getOwnPropertySymbols;var hl=Object.prototype.hasOwnProperty,Sl=Object.prototype.propertyIsEnumerable;var In=(h,i,t)=>i in h?_l(h,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):h[i]=t,wn=(h,i)=>{for(var t in i||(i={}))hl.call(i,t)&&In(h,t,i[t]);if($n)for(var t of $n(i))Sl.call(i,t)&&In(h,t,i[t]);return h},Dn=(h,i)=>Cl(h,gl(i));(function(h,i){typeof exports=="object"&&typeof module!="undefined"?i(exports,require("@antv/s2"),require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","@antv/s2","vue","ant-design-vue"],i):(h=typeof globalThis!="undefined"?globalThis:h||self,i(h["S2-Vue"]={},h.S2,h.Vue,h.antDesignVue))})(this,function(h,i,t,X){"use strict";const bn={tooltip:{showTooltip:!0,autoAdjustBoundary:"body",operation:{hiddenColumns:!0,trend:!1,sort:!0}},showDefaultHeaderActionIcon:!0},Fn=(...e)=>i.customMerge(i.DEFAULT_OPTIONS,bn,...e);var Mn=typeof global=="object"&&global&&global.Object===Object&&global,De=Mn,Rn=typeof self=="object"&&self&&self.Object===Object&&self,kn=De||Rn||Function("return this")(),b=kn,vn=b.Symbol,k=vn,be=Object.prototype,Nn=be.hasOwnProperty,Un=be.toString,V=k?k.toStringTag:void 0;function zn(e){var n=Nn.call(e,V),r=e[V];try{e[V]=void 0;var o=!0}catch{}var a=Un.call(e);return o&&(n?e[V]=r:delete e[V]),a}var Hn=Object.prototype,jn=Hn.toString;function Xn(e){return jn.call(e)}var Gn="[object Null]",Wn="[object Undefined]",Fe=k?k.toStringTag:void 0;function v(e){return e==null?e===void 0?Wn:Gn:Fe&&Fe in Object(e)?zn(e):Xn(e)}function N(e){return e!=null&&typeof e=="object"}var Vn="[object Symbol]";function q(e){return typeof e=="symbol"||N(e)&&v(e)==Vn}function Yn(e,n){for(var r=-1,o=e==null?0:e.length,a=Array(o);++r<o;)a[r]=n(e[r],r,e);return a}var Kn=Array.isArray,w=Kn,Zn=1/0,Me=k?k.prototype:void 0,Re=Me?Me.toString:void 0;function ke(e){if(typeof e=="string")return e;if(w(e))return Yn(e,ke)+"";if(q(e))return Re?Re.call(e):"";var n=e+"";return n=="0"&&1/e==-Zn?"-0":n}var Jn=/\s/;function qn(e){for(var n=e.length;n--&&Jn.test(e.charAt(n)););return n}var Qn=/^\s+/;function xn(e){return e&&e.slice(0,qn(e)+1).replace(Qn,"")}function G(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var ve=0/0,et=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,tt=/^0o[0-7]+$/i,rt=parseInt;function Ne(e){if(typeof e=="number")return e;if(q(e))return ve;if(G(e)){var n=typeof e.valueOf=="function"?e.valueOf():e;e=G(n)?n+"":n}if(typeof e!="string")return e===0?e:+e;e=xn(e);var r=nt.test(e);return r||tt.test(e)?rt(e.slice(2),r?2:8):et.test(e)?ve:+e}function ot(e){return e}var at="[object AsyncFunction]",it="[object Function]",lt="[object GeneratorFunction]",ut="[object Proxy]";function Ue(e){if(!G(e))return!1;var n=v(e);return n==it||n==lt||n==at||n==ut}var st=b["__core-js_shared__"],le=st,ze=function(){var e=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ct(e){return!!ze&&ze in e}var pt=Function.prototype,dt=pt.toString;function z(e){if(e!=null){try{return dt.call(e)}catch{}try{return e+""}catch{}}return""}var ft=/[\\^$.*+?()[\]{}|]/g,Et=/^\[object .+?Constructor\]$/,_t=Function.prototype,Ct=Object.prototype,gt=_t.toString,ht=Ct.hasOwnProperty,St=RegExp("^"+gt.call(ht).replace(ft,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Tt(e){if(!G(e)||ct(e))return!1;var n=Ue(e)?St:Et;return n.test(z(e))}function Ot(e,n){return e==null?void 0:e[n]}function W(e,n){var r=Ot(e,n);return Tt(r)?r:void 0}var mt=W(b,"WeakMap"),ue=mt,yt=9007199254740991,Lt=/^(?:0|[1-9]\d*)$/;function He(e,n){var r=typeof e;return n=n==null?yt:n,!!n&&(r=="number"||r!="symbol"&&Lt.test(e))&&e>-1&&e%1==0&&e<n}function je(e,n){return e===n||e!==e&&n!==n}var Bt=9007199254740991;function se(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bt}function Q(e){return e!=null&&se(e.length)&&!Ue(e)}var At=Object.prototype;function Xe(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||At;return e===r}function Pt(e,n){for(var r=-1,o=Array(e);++r<e;)o[r]=n(r);return o}var $t="[object Arguments]";function Ge(e){return N(e)&&v(e)==$t}var We=Object.prototype,It=We.hasOwnProperty,wt=We.propertyIsEnumerable,Dt=Ge(function(){return arguments}())?Ge:function(e){return N(e)&&It.call(e,"callee")&&!wt.call(e,"callee")},ce=Dt;function bt(){return!1}var Ve=typeof h=="object"&&h&&!h.nodeType&&h,Ye=Ve&&typeof module=="object"&&module&&!module.nodeType&&module,Ft=Ye&&Ye.exports===Ve,Ke=Ft?b.Buffer:void 0,Mt=Ke?Ke.isBuffer:void 0,Rt=Mt||bt,x=Rt,kt="[object Arguments]",vt="[object Array]",Nt="[object Boolean]",Ut="[object Date]",zt="[object Error]",Ht="[object Function]",jt="[object Map]",Xt="[object Number]",Gt="[object Object]",Wt="[object RegExp]",Vt="[object Set]",Yt="[object String]",Kt="[object WeakMap]",Zt="[object ArrayBuffer]",Jt="[object DataView]",qt="[object Float32Array]",Qt="[object Float64Array]",xt="[object Int8Array]",er="[object Int16Array]",nr="[object Int32Array]",tr="[object Uint8Array]",rr="[object Uint8ClampedArray]",or="[object Uint16Array]",ar="[object Uint32Array]",m={};m[qt]=m[Qt]=m[xt]=m[er]=m[nr]=m[tr]=m[rr]=m[or]=m[ar]=!0,m[kt]=m[vt]=m[Zt]=m[Nt]=m[Jt]=m[Ut]=m[zt]=m[Ht]=m[jt]=m[Xt]=m[Gt]=m[Wt]=m[Vt]=m[Yt]=m[Kt]=!1;function ir(e){return N(e)&&se(e.length)&&!!m[v(e)]}function lr(e){return function(n){return e(n)}}var Ze=typeof h=="object"&&h&&!h.nodeType&&h,Y=Ze&&typeof module=="object"&&module&&!module.nodeType&&module,ur=Y&&Y.exports===Ze,pe=ur&&De.process,sr=function(){try{var e=Y&&Y.require&&Y.require("util").types;return e||pe&&pe.binding&&pe.binding("util")}catch{}}(),Je=sr,qe=Je&&Je.isTypedArray,cr=qe?lr(qe):ir,de=cr,pr=Object.prototype,dr=pr.hasOwnProperty;function fr(e,n){var r=w(e),o=!r&&ce(e),a=!r&&!o&&x(e),l=!r&&!o&&!a&&de(e),u=r||o||a||l,s=u?Pt(e.length,String):[],c=s.length;for(var d in e)(n||dr.call(e,d))&&!(u&&(d=="length"||a&&(d=="offset"||d=="parent")||l&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||He(d,c)))&&s.push(d);return s}function Er(e,n){return function(r){return e(n(r))}}var _r=Er(Object.keys,Object),Cr=_r,gr=Object.prototype,hr=gr.hasOwnProperty;function fe(e){if(!Xe(e))return Cr(e);var n=[];for(var r in Object(e))hr.call(e,r)&&r!="constructor"&&n.push(r);return n}function Ee(e){return Q(e)?fr(e):fe(e)}var Sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tr=/^\w*$/;function _e(e,n){if(w(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||q(e)?!0:Tr.test(e)||!Sr.test(e)||n!=null&&e in Object(n)}var Or=W(Object,"create"),K=Or;function mr(){this.__data__=K?K(null):{},this.size=0}function yr(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var Lr="__lodash_hash_undefined__",Br=Object.prototype,Ar=Br.hasOwnProperty;function Pr(e){var n=this.__data__;if(K){var r=n[e];return r===Lr?void 0:r}return Ar.call(n,e)?n[e]:void 0}var $r=Object.prototype,Ir=$r.hasOwnProperty;function wr(e){var n=this.__data__;return K?n[e]!==void 0:Ir.call(n,e)}var Dr="__lodash_hash_undefined__";function br(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=K&&n===void 0?Dr:n,this}function H(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var o=e[n];this.set(o[0],o[1])}}H.prototype.clear=mr,H.prototype.delete=yr,H.prototype.get=Pr,H.prototype.has=wr,H.prototype.set=br;function Fr(){this.__data__=[],this.size=0}function ee(e,n){for(var r=e.length;r--;)if(je(e[r][0],n))return r;return-1}var Mr=Array.prototype,Rr=Mr.splice;function kr(e){var n=this.__data__,r=ee(n,e);if(r<0)return!1;var o=n.length-1;return r==o?n.pop():Rr.call(n,r,1),--this.size,!0}function vr(e){var n=this.__data__,r=ee(n,e);return r<0?void 0:n[r][1]}function Nr(e){return ee(this.__data__,e)>-1}function Ur(e,n){var r=this.__data__,o=ee(r,e);return o<0?(++this.size,r.push([e,n])):r[o][1]=n,this}function F(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var o=e[n];this.set(o[0],o[1])}}F.prototype.clear=Fr,F.prototype.delete=kr,F.prototype.get=vr,F.prototype.has=Nr,F.prototype.set=Ur;var zr=W(b,"Map"),Z=zr;function Hr(){this.size=0,this.__data__={hash:new H,map:new(Z||F),string:new H}}function jr(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function ne(e,n){var r=e.__data__;return jr(n)?r[typeof n=="string"?"string":"hash"]:r.map}function Xr(e){var n=ne(this,e).delete(e);return this.size-=n?1:0,n}function Gr(e){return ne(this,e).get(e)}function Wr(e){return ne(this,e).has(e)}function Vr(e,n){var r=ne(this,e),o=r.size;return r.set(e,n),this.size+=r.size==o?0:1,this}function M(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var o=e[n];this.set(o[0],o[1])}}M.prototype.clear=Hr,M.prototype.delete=Xr,M.prototype.get=Gr,M.prototype.has=Wr,M.prototype.set=Vr;var Yr="Expected a function";function Ce(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(Yr);var r=function(){var o=arguments,a=n?n.apply(this,o):o[0],l=r.cache;if(l.has(a))return l.get(a);var u=e.apply(this,o);return r.cache=l.set(a,u)||l,u};return r.cache=new(Ce.Cache||M),r}Ce.Cache=M;var Kr=500;function Zr(e){var n=Ce(e,function(o){return r.size===Kr&&r.clear(),o}),r=n.cache;return n}var Jr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qr=/\\(\\)?/g,Qr=Zr(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(Jr,function(r,o,a,l){n.push(a?l.replace(qr,"$1"):o||r)}),n}),xr=Qr;function eo(e){return e==null?"":ke(e)}function Qe(e,n){return w(e)?e:_e(e,n)?[e]:xr(eo(e))}var no=1/0;function te(e){if(typeof e=="string"||q(e))return e;var n=e+"";return n=="0"&&1/e==-no?"-0":n}function xe(e,n){n=Qe(n,e);for(var r=0,o=n.length;e!=null&&r<o;)e=e[te(n[r++])];return r&&r==o?e:void 0}function to(e,n,r){var o=e==null?void 0:xe(e,n);return o===void 0?r:o}function ro(e,n){for(var r=-1,o=n.length,a=e.length;++r<o;)e[a+r]=n[r];return e}var oo="\\ud800-\\udfff",ao="\\u0300-\\u036f",io="\\ufe20-\\ufe2f",lo="\\u20d0-\\u20ff",uo=ao+io+lo,so="\\ufe0e\\ufe0f",co="\\u200d",po=RegExp("["+co+oo+uo+so+"]");function fo(e){return po.test(e)}function Eo(e,n,r,o){var a=-1,l=e==null?0:e.length;for(o&&l&&(r=e[++a]);++a<l;)r=n(r,e[a],a,e);return r}function _o(){this.__data__=new F,this.size=0}function Co(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}function go(e){return this.__data__.get(e)}function ho(e){return this.__data__.has(e)}var So=200;function To(e,n){var r=this.__data__;if(r instanceof F){var o=r.__data__;if(!Z||o.length<So-1)return o.push([e,n]),this.size=++r.size,this;r=this.__data__=new M(o)}return r.set(e,n),this.size=r.size,this}function R(e){var n=this.__data__=new F(e);this.size=n.size}R.prototype.clear=_o,R.prototype.delete=Co,R.prototype.get=go,R.prototype.has=ho,R.prototype.set=To;function Oo(e,n){for(var r=-1,o=e==null?0:e.length,a=0,l=[];++r<o;){var u=e[r];n(u,r,e)&&(l[a++]=u)}return l}function mo(){return[]}var yo=Object.prototype,Lo=yo.propertyIsEnumerable,en=Object.getOwnPropertySymbols,Bo=en?function(e){return e==null?[]:(e=Object(e),Oo(en(e),function(n){return Lo.call(e,n)}))}:mo,Ao=Bo;function Po(e,n,r){var o=n(e);return w(e)?o:ro(o,r(e))}function nn(e){return Po(e,Ee,Ao)}var $o=W(b,"DataView"),ge=$o,Io=W(b,"Promise"),he=Io,wo=W(b,"Set"),Se=wo,tn="[object Map]",Do="[object Object]",rn="[object Promise]",on="[object Set]",an="[object WeakMap]",ln="[object DataView]",bo=z(ge),Fo=z(Z),Mo=z(he),Ro=z(Se),ko=z(ue),j=v;(ge&&j(new ge(new ArrayBuffer(1)))!=ln||Z&&j(new Z)!=tn||he&&j(he.resolve())!=rn||Se&&j(new Se)!=on||ue&&j(new ue)!=an)&&(j=function(e){var n=v(e),r=n==Do?e.constructor:void 0,o=r?z(r):"";if(o)switch(o){case bo:return ln;case Fo:return tn;case Mo:return rn;case Ro:return on;case ko:return an}return n});var re=j,vo=b.Uint8Array,un=vo,No="__lodash_hash_undefined__";function Uo(e){return this.__data__.set(e,No),this}function zo(e){return this.__data__.has(e)}function oe(e){var n=-1,r=e==null?0:e.length;for(this.__data__=new M;++n<r;)this.add(e[n])}oe.prototype.add=oe.prototype.push=Uo,oe.prototype.has=zo;function Ho(e,n){for(var r=-1,o=e==null?0:e.length;++r<o;)if(n(e[r],r,e))return!0;return!1}function jo(e,n){return e.has(n)}var Xo=1,Go=2;function sn(e,n,r,o,a,l){var u=r&Xo,s=e.length,c=n.length;if(s!=c&&!(u&&c>s))return!1;var d=l.get(e),p=l.get(n);if(d&&p)return d==n&&p==e;var f=-1,E=!0,S=r&Go?new oe:void 0;for(l.set(e,n),l.set(n,e);++f<s;){var _=e[f],T=n[f];if(o)var B=u?o(T,_,f,n,e,l):o(_,T,f,e,n,l);if(B!==void 0){if(B)continue;E=!1;break}if(S){if(!Ho(n,function(O,y){if(!jo(S,y)&&(_===O||a(_,O,r,o,l)))return S.push(y)})){E=!1;break}}else if(!(_===T||a(_,T,r,o,l))){E=!1;break}}return l.delete(e),l.delete(n),E}function Wo(e){var n=-1,r=Array(e.size);return e.forEach(function(o,a){r[++n]=[a,o]}),r}function Vo(e){var n=-1,r=Array(e.size);return e.forEach(function(o){r[++n]=o}),r}var Yo=1,Ko=2,Zo="[object Boolean]",Jo="[object Date]",qo="[object Error]",Qo="[object Map]",xo="[object Number]",ea="[object RegExp]",na="[object Set]",ta="[object String]",ra="[object Symbol]",oa="[object ArrayBuffer]",aa="[object DataView]",cn=k?k.prototype:void 0,Te=cn?cn.valueOf:void 0;function ia(e,n,r,o,a,l,u){switch(r){case aa:if(e.byteLength!=n.byteLength||e.byteOffset!=n.byteOffset)return!1;e=e.buffer,n=n.buffer;case oa:return!(e.byteLength!=n.byteLength||!l(new un(e),new un(n)));case Zo:case Jo:case xo:return je(+e,+n);case qo:return e.name==n.name&&e.message==n.message;case ea:case ta:return e==n+"";case Qo:var s=Wo;case na:var c=o&Yo;if(s||(s=Vo),e.size!=n.size&&!c)return!1;var d=u.get(e);if(d)return d==n;o|=Ko,u.set(e,n);var p=sn(s(e),s(n),o,a,l,u);return u.delete(e),p;case ra:if(Te)return Te.call(e)==Te.call(n)}return!1}var la=1,ua=Object.prototype,sa=ua.hasOwnProperty;function ca(e,n,r,o,a,l){var u=r&la,s=nn(e),c=s.length,d=nn(n),p=d.length;if(c!=p&&!u)return!1;for(var f=c;f--;){var E=s[f];if(!(u?E in n:sa.call(n,E)))return!1}var S=l.get(e),_=l.get(n);if(S&&_)return S==n&&_==e;var T=!0;l.set(e,n),l.set(n,e);for(var B=u;++f<c;){E=s[f];var O=e[E],y=n[E];if(o)var $=u?o(y,O,E,n,e,l):o(O,y,E,e,n,l);if(!($===void 0?O===y||a(O,y,r,o,l):$)){T=!1;break}B||(B=E=="constructor")}if(T&&!B){var A=e.constructor,P=n.constructor;A!=P&&"constructor"in e&&"constructor"in n&&!(typeof A=="function"&&A instanceof A&&typeof P=="function"&&P instanceof P)&&(T=!1)}return l.delete(e),l.delete(n),T}var pa=1,pn="[object Arguments]",dn="[object Array]",ae="[object Object]",da=Object.prototype,fn=da.hasOwnProperty;function fa(e,n,r,o,a,l){var u=w(e),s=w(n),c=u?dn:re(e),d=s?dn:re(n);c=c==pn?ae:c,d=d==pn?ae:d;var p=c==ae,f=d==ae,E=c==d;if(E&&x(e)){if(!x(n))return!1;u=!0,p=!1}if(E&&!p)return l||(l=new R),u||de(e)?sn(e,n,r,o,a,l):ia(e,n,c,r,o,a,l);if(!(r&pa)){var S=p&&fn.call(e,"__wrapped__"),_=f&&fn.call(n,"__wrapped__");if(S||_){var T=S?e.value():e,B=_?n.value():n;return l||(l=new R),a(T,B,r,o,l)}}return E?(l||(l=new R),ca(e,n,r,o,a,l)):!1}function Oe(e,n,r,o,a){return e===n?!0:e==null||n==null||!N(e)&&!N(n)?e!==e&&n!==n:fa(e,n,r,o,Oe,a)}var Ea=1,_a=2;function Ca(e,n,r,o){var a=r.length,l=a,u=!o;if(e==null)return!l;for(e=Object(e);a--;){var s=r[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<l;){s=r[a];var c=s[0],d=e[c],p=s[1];if(u&&s[2]){if(d===void 0&&!(c in e))return!1}else{var f=new R;if(o)var E=o(d,p,c,e,n,f);if(!(E===void 0?Oe(p,d,Ea|_a,o,f):E))return!1}}return!0}function En(e){return e===e&&!G(e)}function ga(e){for(var n=Ee(e),r=n.length;r--;){var o=n[r],a=e[o];n[r]=[o,a,En(a)]}return n}function _n(e,n){return function(r){return r==null?!1:r[e]===n&&(n!==void 0||e in Object(r))}}function ha(e){var n=ga(e);return n.length==1&&n[0][2]?_n(n[0][0],n[0][1]):function(r){return r===e||Ca(r,e,n)}}function Sa(e,n){return e!=null&&n in Object(e)}function Ta(e,n,r){n=Qe(n,e);for(var o=-1,a=n.length,l=!1;++o<a;){var u=te(n[o]);if(!(l=e!=null&&r(e,u)))break;e=e[u]}return l||++o!=a?l:(a=e==null?0:e.length,!!a&&se(a)&&He(u,a)&&(w(e)||ce(e)))}function Oa(e,n){return e!=null&&Ta(e,n,Sa)}var ma=1,ya=2;function La(e,n){return _e(e)&&En(n)?_n(te(e),n):function(r){var o=to(r,e);return o===void 0&&o===n?Oa(r,e):Oe(n,o,ma|ya)}}function Cn(e){return function(n){return n==null?void 0:n[e]}}function Ba(e){return function(n){return xe(n,e)}}function Aa(e){return _e(e)?Cn(te(e)):Ba(e)}function Pa(e){return typeof e=="function"?e:e==null?ot:typeof e=="object"?w(e)?La(e[0],e[1]):ha(e):Aa(e)}function $a(e){return function(n,r,o){for(var a=-1,l=Object(n),u=o(n),s=u.length;s--;){var c=u[e?s:++a];if(r(l[c],c,l)===!1)break}return n}}var Ia=$a(),wa=Ia;function Da(e,n){return e&&wa(e,n,Ee)}function ba(e,n){return function(r,o){if(r==null)return r;if(!Q(r))return e(r,o);for(var a=r.length,l=n?a:-1,u=Object(r);(n?l--:++l<a)&&o(u[l],l,u)!==!1;);return r}}var Fa=ba(Da),Ma=Fa,Ra=function(){return b.Date.now()},me=Ra,ka="Expected a function",va=Math.max,Na=Math.min;function Ua(e,n,r){var o,a,l,u,s,c,d=0,p=!1,f=!1,E=!0;if(typeof e!="function")throw new TypeError(ka);n=Ne(n)||0,G(r)&&(p=!!r.leading,f="maxWait"in r,l=f?va(Ne(r.maxWait)||0,n):l,E="trailing"in r?!!r.trailing:E);function S(L){var D=o,U=a;return o=a=void 0,d=L,u=e.apply(U,D),u}function _(L){return d=L,s=setTimeout(O,n),p?S(L):u}function T(L){var D=L-c,U=L-d,J=n-D;return f?Na(J,l-U):J}function B(L){var D=L-c,U=L-d;return c===void 0||D>=n||D<0||f&&U>=l}function O(){var L=me();if(B(L))return y(L);s=setTimeout(O,T(L))}function y(L){return s=void 0,E&&o?S(L):(o=a=void 0,u)}function $(){s!==void 0&&clearTimeout(s),d=0,o=c=a=s=void 0}function A(){return s===void 0?u:y(me())}function P(){var L=me(),D=B(L);if(o=arguments,a=this,c=L,D){if(s===void 0)return _(c);if(f)return clearTimeout(s),s=setTimeout(O,n),S(c)}return s===void 0&&(s=setTimeout(O,n)),u}return P.cancel=$,P.flush=A,P}var za="[object String]";function Ha(e){return typeof e=="string"||!w(e)&&N(e)&&v(e)==za}var ja="[object Boolean]";function gn(e){return e===!0||e===!1||N(e)&&v(e)==ja}var Xa="[object Map]",Ga="[object Set]",Wa=Object.prototype,Va=Wa.hasOwnProperty;function ye(e){if(e==null)return!0;if(Q(e)&&(w(e)||typeof e=="string"||typeof e.splice=="function"||x(e)||de(e)||ce(e)))return!e.length;var n=re(e);if(n==Xa||n==Ga)return!e.size;if(Xe(e))return!fe(e).length;for(var r in e)if(Va.call(e,r))return!1;return!0}var Ya=Cn("length"),Ka=Ya,hn="\\ud800-\\udfff",Za="\\u0300-\\u036f",Ja="\\ufe20-\\ufe2f",qa="\\u20d0-\\u20ff",Qa=Za+Ja+qa,xa="\\ufe0e\\ufe0f",ei="["+hn+"]",Le="["+Qa+"]",Be="\\ud83c[\\udffb-\\udfff]",ni="(?:"+Le+"|"+Be+")",Sn="[^"+hn+"]",Tn="(?:\\ud83c[\\udde6-\\uddff]){2}",On="[\\ud800-\\udbff][\\udc00-\\udfff]",ti="\\u200d",mn=ni+"?",yn="["+xa+"]?",ri="(?:"+ti+"(?:"+[Sn,Tn,On].join("|")+")"+yn+mn+")*",oi=yn+mn+ri,ai="(?:"+[Sn+Le+"?",Le,Tn,On,ei].join("|")+")",Ln=RegExp(Be+"(?="+Be+")|"+ai+oi,"g");function ii(e){for(var n=Ln.lastIndex=0;Ln.test(e);)++n;return n}function li(e){return fo(e)?ii(e):Ka(e)}function ui(e,n,r,o,a){return a(e,function(l,u,s){r=o?(o=!1,l):n(r,l,u,s)}),r}function si(e,n,r){var o=w(e)?Eo:ui,a=arguments.length<3;return o(e,Pa(n),r,a,Ma)}var ci="[object Map]",pi="[object Set]";function di(e){if(e==null)return 0;if(Q(e))return Ha(e)?li(e):e.length;var n=re(e);return n==ci||n==pi?e.size:fe(e).length}const fi=200,Ei=(e,n)=>{var l,u,s;let r=e,o=!0,a=!1;return typeof n!="boolean"&&(r=((l=n==null?void 0:n.getContainer)==null?void 0:l.call(n))||e,o=(u=n==null?void 0:n.width)!=null?u:!0,a=(s=n==null?void 0:n.height)!=null?s:!0),{container:r,adaptiveWidth:o,adaptiveHeight:a}},_i=e=>{let n=!0;const{s2:r,adaptive:o,container:a,wrapper:l}=e,{container:u,adaptiveWidth:s,adaptiveHeight:c}=Ei(l,o);if(!u||!a||!o||!r)return;const d=(S,_)=>{r==null||r.changeSheetSize(S,_),r==null||r.render(!1)},p=Ua(d,fi),f=()=>{const{width:S,height:_}=a==null?void 0:a.getBoundingClientRect(),T=s?Math.floor(S!=null?S:r.options.width):r.options.width,B=c?Math.floor(_!=null?_:r.options.height):r.options.height;if(!(!s&&!c)){if(n){d(T,B),n=!1;return}p(T,B)}},E=new ResizeObserver(([S]=[])=>{S&&f()});return E.observe(u,{box:"border-box"}),()=>{E.unobserve(u)}},Ci={zh_CN:{\u9009\u62E9\u5206\u6790\u4FE1\u606F:"\u9009\u62E9\u5206\u6790\u4FE1\u606F",\u5207\u6362\u6307\u6807:"\u5207\u6362\u6307\u6807",\u786E\u5B9A:"\u786E\u5B9A",\u53D6\u6D88:"\u53D6\u6D88",\u91CD\u7F6E:"\u91CD\u7F6E",\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22",\u641C\u7D22:"\u641C\u7D22",\u6062\u590D:"\u6062\u590D","\u5DF2\u9009 {} \u9879":"\u5DF2\u9009 {} \u9879",\u6240\u9009\u9879:"\u6240\u9009\u9879",\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6:"\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6",\u6062\u590D\u9ED8\u8BA4:"\u6062\u590D\u9ED8\u8BA4",\u641C\u7D22\u5B57\u6BB5:"\u641C\u7D22\u5B57\u6BB5",\u884C\u5217\u5207\u6362:"\u884C\u5217\u5207\u6362",\u884C\u5934:"\u884C\u5934",\u5217\u5934:"\u5217\u5934",\u503C:"\u503C",\u5C55\u5F00\u5B50\u9879:"\u5C55\u5F00\u5B50\u9879",\u9996\u5B57\u6BCD:"\u9996\u5B57\u6BCD",\u624B\u52A8\u6392\u5E8F:"\u624B\u52A8\u6392\u5E8F",\u5176\u4ED6\u5B57\u6BB5:"\u5176\u4ED6\u5B57\u6BB5",\u9AD8\u7EA7\u6392\u5E8F:"\u9AD8\u7EA7\u6392\u5E8F",\u8BBE\u7F6E\u987A\u5E8F:"\u8BBE\u7F6E\u987A\u5E8F",\u53EF\u9009\u5B57\u6BB5:"\u53EF\u9009\u5B57\u6BB5","\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09":"\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09",\u6309:"\u6309",\u8BF4\u660E:"\u8BF4\u660E"},en_US:{\u9009\u62E9\u5206\u6790\u4FE1\u606F:"Select Analysis Information",\u5207\u6362\u6307\u6807:"Switch indicator",\u786E\u5B9A:"Ok",\u53D6\u6D88:"Cancel",\u91CD\u7F6E:"Reset",\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u641C\u7D22:"Please enter a keyword search",\u641C\u7D22:"Search",\u6062\u590D:"Recover","\u5DF2\u9009 {} \u9879":"selected {} item",\u6240\u9009\u9879:"selected items",\u9009\u62E9\u4E0B\u94BB\u7EF4\u5EA6:"Select drill down dimension",\u6062\u590D\u9ED8\u8BA4:"Restore default",\u641C\u7D22\u5B57\u6BB5:"Search field",\u884C\u5217\u5207\u6362:"Switch Dimensions",\u884C\u5934:"Rows",\u5217\u5934:"Cols",\u503C:"Values",\u5C55\u5F00\u5B50\u9879:"Expand Children",\u9996\u5B57\u6BCD:"Alphabetical order",\u624B\u52A8\u6392\u5E8F:"Custom order",\u5176\u4ED6\u5B57\u6BB5:"Other field",\u9AD8\u7EA7\u6392\u5E8F:"Advanced order",\u8BBE\u7F6E\u987A\u5E8F:"SetManual",\u53EF\u9009\u5B57\u6BB5:"Fields","\u6309\u4EE5\u4E0B\u89C4\u5219\u8FDB\u884C\u6392\u5E8F\uFF08\u4F18\u5148\u7EA7\u7531\u4F4E\u5230\u9AD8\uFF09":"Order according to the following rules (from low to high priority)",\u6309:"By",\u8BF4\u660E:"Description"}};i.extendLocale(Ci);const ie=e=>{const n=t.shallowRef();return e({get instance(){var r;return(r=n.value)==null?void 0:r.instance}}),n},Ae=1,Pe=10,gi=(e,n)=>{var c,d,p,f,E,S;const r=t.ref((p=(d=(c=n.options)==null?void 0:c.pagination)==null?void 0:d.current)!=null?p:Ae),o=t.ref((S=(E=(f=n.options)==null?void 0:f.pagination)==null?void 0:E.pageSize)!=null?S:Pe),a=t.ref(0),l=_=>{r.value=_},u=_=>{o.value=_},s=t.computed(()=>{var _;return n.showPagination&&!ye((_=n.options)==null?void 0:_.pagination)});return t.watch([r,o],()=>{var T;if(!e.value)return;const _=ye((T=n.options)==null?void 0:T.pagination)?null:{current:r.value,pageSize:o.value};e.value.updatePagination(_),e.value.render(!1)}),t.watch([()=>{var _;return(_=n.options)==null?void 0:_.pagination},e],()=>{var _,T,B,O,y,$,A,P,L;r.value=(B=(T=(_=n.options)==null?void 0:_.pagination)==null?void 0:T.current)!=null?B:Ae,o.value=($=(y=(O=n.options)==null?void 0:O.pagination)==null?void 0:y.pageSize)!=null?$:Pe,a.value=(L=(P=(A=e.value)==null?void 0:A.facet)==null?void 0:P.viewCellHeights.getTotalLength())!=null?L:0},{immediate:!0}),t.watch(e,(_,T,B)=>{if(!e.value)return;const O=y=>{var $;ye(($=n.options)==null?void 0:$.pagination)||(a.value=y.total)};e.value.on(i.S2Event.LAYOUT_PAGINATION,O),B(()=>{var y;(y=e.value)==null||y.off(i.S2Event.LAYOUT_PAGINATION,O)})}),{visible:s,current:r,pageSize:o,total:a,change:l,showSizeChange:u}};var I=(e,n)=>{const r=e.__vccOpts||e;for(const[o,a]of n)r[o]=a;return r};const hi=`${i.S2_PREFIX_CLS}-pagination`,Si=t.defineComponent({name:"s2-pagination",props:{current:{type:Number,default:Ae},total:{type:Number,default:0},pageSize:{type:Number,default:Pe}},emits:["change","showSizeChange"],setup:e=>({showQuickJumper:t.computed(()=>e.total/e.pageSize>5),PRE_CLASS:hi,i18n:i.i18n}),components:{AntDPagination:X.Pagination}});function Ti(e,n,r,o,a,l){const u=t.resolveComponent("AntDPagination");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.PRE_CLASS)},[t.createVNode(u,{"default-current":1,current:e.current,total:e.total,pageSize:e.pageSize,showSizeChanger:!0,onShowSizeChange:n[0]||(n[0]=(s,c)=>e.$emit("showSizeChange",c)),size:"small",showQuickJumper:e.showQuickJumper,onChange:n[1]||(n[1]=s=>e.$emit("change",s))},null,8,["current","total","pageSize","showQuickJumper"]),t.createElementVNode("span",{class:t.normalizeClass(`${e.PRE_CLASS}-count`)},t.toDisplayString(e.i18n("\u5171\u8BA1"))+" "+t.toDisplayString(e.total||" - ")+" "+t.toDisplayString(e.i18n("\u6761")),3)],2)}var Oi=I(Si,[["render",Ti]]);const mi=t.defineComponent({name:"TooltipDetail",props:["list"],setup(){return{TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}}});function yi(e,n,r,o,a,l){return t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(u,s)=>(t.openBlock(),t.createElementBlock("div",{key:`${u.value}-${s}`,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-detail-list`)},[t.createElementVNode("div",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-detail-item`)},[t.createElementVNode("span",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-detail-item-key`)},t.toDisplayString(u.name),3),t.createElementVNode("span",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-detail-item-val ${e.TOOLTIP_PREFIX_CLS}-highlight`)},t.toDisplayString(u.value),3)],2)],2))),128)}var Li=I(mi,[["render",yi]]);const Bi=t.defineComponent({name:"TooltipHeadInfo",props:["rows","cols"],setup(){return{TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}},components:{}}),Ai={key:0};function Pi(e,n,r,o,a,l){var u,s,c,d;return((u=e.cols)==null?void 0:u.length)||((s=e.rows)==null?void 0:s.length)?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-head-info-list`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.cols,p=>(t.openBlock(),t.createElementBlock("span",{key:p.value},t.toDisplayString(p.value)+"/",1))),128)),((c=e.cols)==null?void 0:c.length)>0&&((d=e.rows)==null?void 0:d.length)>0?(t.openBlock(),t.createElementBlock("span",Ai,"\uFF0C")):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.rows,p=>(t.openBlock(),t.createElementBlock("span",{key:p.value},t.toDisplayString(p.value)+"/",1))),128))],2)):t.createCommentVNode("",!0)}var $i=I(Bi,[["render",Pi]]);const Ii=t.defineComponent({name:"TooltipInfos",props:["infos"],setup(){return{TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}},components:{}});function wi(e,n,r,o,a,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-infos`)},t.toDisplayString(e.infos),3)}var Di=I(Ii,[["render",wi]]);const bi=t.defineComponent({name:"TooltipSimpleTips",props:["name","tips"],setup(){return{TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}},components:{}});function Fi(e,n,r,o,a,l){return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.name?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-name`)},t.toDisplayString(e.name),3)):t.createCommentVNode("",!0),e.tips?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-tips`)},t.toDisplayString(e.tips),3)):t.createCommentVNode("",!0)],64)}var Mi=I(bi,[["render",Fi]]);const Ri=t.defineComponent({name:"TooltipSummary",props:["summaries"],setup(e){return{count:t.computed(()=>si(e.summaries,(r,o)=>r+di(o==null?void 0:o.selectedData),0)).value,i18n:i.i18n,TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}},components:{}});function ki(e,n,r,o,a,l){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-summary`)},[t.createElementVNode("div",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-summary-item`)},[t.createElementVNode("span",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-selected`)},t.toDisplayString(e.count)+" "+t.toDisplayString(e.i18n("\u9879")),3),t.createTextVNode(" "+t.toDisplayString(e.i18n("\u5DF2\u9009\u62E9")),1)],2),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.summaries,u=>(t.openBlock(),t.createElementBlock("div",{key:`${u.name}-${u.value}`,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-summary-item`)},[t.createElementVNode("span",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-summary-key`)},t.toDisplayString(u.name)+" "+t.toDisplayString(e.i18n("\u603B\u548C")),3),t.createElementVNode("span",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-summary-val ${e.TOOLTIP_PREFIX_CLS}-bold`)},t.toDisplayString(u.value),3)],2))),128))],2)}var vi=I(Ri,[["render",ki]]);const Ni=t.defineComponent({name:"TooltipOperatorTitle",props:["menu"],setup(e){const n=t.computed(()=>i.getIcon(e.menu.icon));return{TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS,icon:n}}}),Ui=["innerHTML"];function zi(e,n,r,o,a,l){return t.openBlock(),t.createElementBlock("span",null,[e.icon?(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.icon,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-operator-icon`)},null,10,Ui)):t.createCommentVNode("",!0),t.createElementVNode("span",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-operator-text`)},t.toDisplayString(e.menu.text),3)])}var Bn=I(Ni,[["render",zi]]);const Hi=t.defineComponent({name:"TooltipOperatorMenu",props:["menu","cell"],setup(e){return{onMenuTitleClick:()=>{var r,o;(o=(r=e.menu).onClick)==null||o.call(r,e.cell)},TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}},components:{MenuItem:X.Menu.Item,SubMenu:X.Menu.SubMenu,TooltipOperatorTitle:Bn}});function ji(e,n,r,o,a,l){const u=t.resolveComponent("TooltipOperatorTitle"),s=t.resolveComponent("TooltipOperatorMenu"),c=t.resolveComponent("MenuItem"),d=t.resolveComponent("SubMenu");return t.openBlock(),t.createBlock(d,{key:e.menu.key,popupClassName:`${e.TOOLTIP_PREFIX_CLS}-operator-submenu-popup`,onTitleClick:e.onMenuTitleClick},{title:t.withCtx(()=>[t.createVNode(u,{menu:e.menu,onClick:e.onMenuTitleClick},null,8,["menu","onClick"])]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menu.children,p=>{var f;return t.openBlock(),t.createElementBlock(t.Fragment,{key:p.key},[(f=p==null?void 0:p.children)!=null&&f.length?(t.openBlock(),t.createBlock(s,{key:0,menu:p,cell:e.cell},null,8,["menu","cell"])):(t.openBlock(),t.createBlock(c,{title:p.text,key:p.key},{default:t.withCtx(()=>[t.createVNode(u,{menu:p,onClick:e.onMenuTitleClick},null,8,["menu","onClick"])]),_:2},1032,["title"]))],64)}),128))]),_:1},8,["popupClassName","onTitleClick"])}var Xi=I(Hi,[["render",ji]]),ml="";const Gi=t.defineComponent({name:"TooltipOperator",props:["menus","onlyMenu","onClick","cell"],setup(){return{TOOLTIP_PREFIX_CLS:i.TOOLTIP_PREFIX_CLS}},components:{Menu:X.Menu,Dropdown:X.Dropdown,TooltipOperatorTitle:Bn,TooltipOperatorMenu:Xi}});function Wi(e,n,r,o,a,l){const u=t.resolveComponent("TooltipOperatorMenu"),s=t.resolveComponent("Menu"),c=t.resolveComponent("TooltipOperatorTitle"),d=t.resolveComponent("Dropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-operator`)},[e.onlyMenu?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-operator-menus`),onClick:n[0]||(n[0]=p=>e.$.emit("click"))},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menus,p=>(t.openBlock(),t.createBlock(u,{key:p.key,menu:p,cell:e.cell},null,8,["menu","cell"]))),128))]),_:1},8,["class"])):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.menus,p=>(t.openBlock(),t.createBlock(d,{key:p.key,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-operator-dropdown`)},{overlay:t.withCtx(()=>{var f;return[(f=p==null?void 0:p.children)!=null&&f.length?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(`${e.TOOLTIP_PREFIX_CLS}-operator-menus`),onClick:n[1]||(n[1]=E=>e.$.emit("click"))},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menus,E=>(t.openBlock(),t.createBlock(u,{key:E.key,menu:E,cell:e.cell},null,8,["menu","cell"]))),128))]),_:2},1032,["class"])):t.createCommentVNode("",!0)]}),default:t.withCtx(()=>[t.createVNode(c,{menu:p,onClick:f=>{var E;return(E=p.onClick)==null?void 0:E.call(p,e.cell)}},null,8,["menu","onClick"])]),_:2},1032,["class"]))),128))],2)}var Vi=I(Gi,[["render",Wi]]),yl="";const Yi=t.defineComponent({name:"TooltipComponent",props:["content","data","options","cell","position","event"],setup(e){const{operator:n,onlyMenu:r}=i.getTooltipDefaultOptions(e.options);return{operator:n,onlyMenu:r}},components:{TooltipDetail:Li,TooltipHeadInfo:$i,TooltipInfos:Di,TooltipSimpleTips:Mi,TooltipSummary:vi,TooltipOperator:Vi}});function Ki(e,n,r,o,a,l){var E,S,_,T,B,O,y,$,A,P,L,D,U,J,An,Pn;const u=t.resolveComponent("TooltipOperator"),s=t.resolveComponent("TooltipSimpleTips"),c=t.resolveComponent("TooltipSummary"),d=t.resolveComponent("TooltipHeadInfo"),p=t.resolveComponent("TooltipDetail"),f=t.resolveComponent("TooltipInfos");return e.onlyMenu?(t.openBlock(),t.createBlock(u,{key:0,menus:((E=e.operator)==null?void 0:E.menus)||[],onlyMenu:!0,cell:e.cell,onClick:(S=e.operator)==null?void 0:S.onClick},null,8,["menus","cell","onClick"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(u,{menus:((_=e.operator)==null?void 0:_.menus)||[],onlyMenu:!1,cell:e.cell,onClick:(T=e.operator)==null?void 0:T.onClick},null,8,["menus","cell","onClick"]),e.content?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.content),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{name:(B=e.data)==null?void 0:B.name,tips:(O=e.data)==null?void 0:O.tips},null,8,["name","tips"]),($=(y=e.data)==null?void 0:y.summaries)!=null&&$.length?(t.openBlock(),t.createBlock(c,{key:0,summaries:(A=e.data)==null?void 0:A.summaries},null,8,["summaries"])):t.createCommentVNode("",!0),t.createVNode(d,{rows:((L=(P=e.data)==null?void 0:P.headInfo)==null?void 0:L.rows)||[],cols:((U=(D=e.data)==null?void 0:D.headInfo)==null?void 0:U.cols)||[]},null,8,["rows","cols"]),t.createVNode(p,{list:((J=e.data)==null?void 0:J.details)||[]},null,8,["list"]),(An=e.data)!=null&&An.infos?(t.openBlock(),t.createBlock(f,{key:1,infos:(Pn=e.data)==null?void 0:Pn.infos},null,8,["infos"])):t.createCommentVNode("",!0)],64))],64))}var Zi=I(Yi,[["render",Ki]]);class Ji extends i.BaseTooltip{constructor(n){super(n)}renderContent(){var s,c;const{tooltip:n}=this.spreadsheet.options,r=this.options,o=this.spreadsheet.getCell((s=r.event)==null?void 0:s.target),a=(c=r.content)!=null?c:n==null?void 0:n.content,l=Dn(wn({},r),{cell:o,content:a}),u=t.createVNode(Zi,l);t.render(null,this.container),t.render(u,this.container)}destroy(){super.destroy(),this.container&&t.render(null,this.container)}}const qi={tooltip:{renderTooltip:e=>new Ji(e)}};i.i18n("\u5347\u5E8F"),i.i18n("\u964D\u5E8F"),i.i18n("\u9996\u5B57\u6BCD"),i.i18n("\u624B\u52A8\u6392\u5E8F"),i.i18n("\u5176\u4ED6\u5B57\u6BB5");const Qi=(...e)=>Fn(qi,...e),g=(e,n,r,o)=>{var l;const a=u=>{const s=i.getBaseCellData(u);n(o,s)};(l=e.value)==null||l.on(r,a)},C=(e,n,r,o)=>{var l;const a=u=>{n(o,u)};(l=e.value)==null||l.on(r,a)},xi=(e,n)=>{t.onMounted(()=>{!e.value||(g(e,n,i.S2Event.ROW_CELL_HOVER,"rowCellHover"),g(e,n,i.S2Event.ROW_CELL_CLICK,"rowCellClick"),g(e,n,i.S2Event.ROW_CELL_DOUBLE_CLICK,"rowCellDoubleClick"),g(e,n,i.S2Event.ROW_CELL_CONTEXT_MENU,"rowCellContextMenu"),g(e,n,i.S2Event.ROW_CELL_MOUSE_DOWN,"rowCellMouseDown"),g(e,n,i.S2Event.ROW_CELL_MOUSE_UP,"rowCellMouseUp"),g(e,n,i.S2Event.ROW_CELL_MOUSE_MOVE,"rowCellMouseMove"),C(e,n,i.S2Event.ROW_CELL_COLLAPSE_TREE_ROWS,"rowCellCollapseTreeRows"),g(e,n,i.S2Event.COL_CELL_HOVER,"colCellHover"),g(e,n,i.S2Event.COL_CELL_CLICK,"colCellClick"),g(e,n,i.S2Event.COL_CELL_DOUBLE_CLICK,"colCellDoubleClick"),g(e,n,i.S2Event.COL_CELL_CONTEXT_MENU,"colCellContextMenu"),g(e,n,i.S2Event.COL_CELL_MOUSE_DOWN,"colCellMouseDown"),g(e,n,i.S2Event.COL_CELL_MOUSE_UP,"colCellMouseUp"),g(e,n,i.S2Event.COL_CELL_MOUSE_MOVE,"colCellMouseMove"),g(e,n,i.S2Event.DATA_CELL_HOVER,"dataCellHover"),g(e,n,i.S2Event.DATA_CELL_CLICK,"dataCellClick"),g(e,n,i.S2Event.DATA_CELL_DOUBLE_CLICK,"dataCellDoubleClick"),g(e,n,i.S2Event.DATA_CELL_CONTEXT_MENU,"dataCellContextMenu"),g(e,n,i.S2Event.DATA_CELL_MOUSE_DOWN,"dataCellMouseDown"),g(e,n,i.S2Event.DATA_CELL_MOUSE_UP,"dataCellMouseUp"),g(e,n,i.S2Event.DATA_CELL_MOUSE_MOVE,"dataCellMouseMove"),C(e,n,i.S2Event.DATA_CELL_TREND_ICON_CLICK,"dataCellTrendIconClick"),C(e,n,i.S2Event.DATE_CELL_BRUSH_SELECTION,"dataCellBrushSelection"),g(e,n,i.S2Event.CORNER_CELL_HOVER,"cornerCellHover"),g(e,n,i.S2Event.CORNER_CELL_CLICK,"cornerCellClick"),g(e,n,i.S2Event.CORNER_CELL_DOUBLE_CLICK,"cornerCellDoubleClick"),g(e,n,i.S2Event.CORNER_CELL_CONTEXT_MENU,"cornerCellContextMenu"),g(e,n,i.S2Event.CORNER_CELL_MOUSE_DOWN,"cornerCellMouseDown"),g(e,n,i.S2Event.CORNER_CELL_MOUSE_UP,"cornerCellMouseUp"),g(e,n,i.S2Event.CORNER_CELL_MOUSE_MOVE,"cornerCellMouseMove"),g(e,n,i.S2Event.MERGED_CELLS_HOVER,"mergedCellsHover"),g(e,n,i.S2Event.MERGED_CELLS_CLICK,"mergedCellsClick"),g(e,n,i.S2Event.MERGED_CELLS_DOUBLE_CLICK,"mergedCellsDoubleClick"),g(e,n,i.S2Event.MERGED_CELLS_CONTEXT_MENU,"mergedCellsContextMenu"),g(e,n,i.S2Event.MERGED_CELLS_MOUSE_DOWN,"mergedCellsMouseDown"),g(e,n,i.S2Event.MERGED_CELLS_MOUSE_UP,"mergedCellsMouseUp"),g(e,n,i.S2Event.MERGED_CELLS_MOUSE_MOVE,"mergedCellsMouseMove"),C(e,n,i.S2Event.RANGE_SORT,"rangeSort"),C(e,n,i.S2Event.RANGE_SORTED,"rangeSorted"),C(e,n,i.S2Event.RANGE_FILTER,"rangeFilter"),C(e,n,i.S2Event.RANGE_FILTERED,"rangeFiltered"),C(e,n,i.S2Event.LAYOUT_AFTER_HEADER_LAYOUT,"layoutAfterHeaderLayout"),C(e,n,i.S2Event.LAYOUT_PAGINATION,"layoutPagination"),C(e,n,i.S2Event.LAYOUT_CELL_SCROLL,"layoutCellScroll"),C(e,n,i.S2Event.LAYOUT_AFTER_COLLAPSE_ROWS,"layoutAfterCollapseRows"),C(e,n,i.S2Event.LAYOUT_TREE_ROWS_COLLAPSE_ALL,"collapseRowsAll"),C(e,n,i.S2Event.LAYOUT_COLS_EXPANDED,"layoutColsExpanded"),C(e,n,i.S2Event.LAYOUT_COLS_HIDDEN,"layoutColsHidden"),C(e,n,i.S2Event.LAYOUT_BEFORE_RENDER,"beforeRender"),C(e,n,i.S2Event.LAYOUT_AFTER_RENDER,"afterRender"),C(e,n,i.S2Event.LAYOUT_DESTROY,"destroy"),C(e,n,i.S2Event.LAYOUT_RESIZE,"layoutResize"),C(e,n,i.S2Event.LAYOUT_RESIZE_SERIES_WIDTH,"layoutResizeSeriesWidth"),C(e,n,i.S2Event.LAYOUT_RESIZE_ROW_WIDTH,"layoutResizeRowWidth"),C(e,n,i.S2Event.LAYOUT_RESIZE_ROW_HEIGHT,"layoutResizeRowHeight"),C(e,n,i.S2Event.LAYOUT_RESIZE_COL_WIDTH,"layoutResizeColWidth"),C(e,n,i.S2Event.LAYOUT_RESIZE_COL_HEIGHT,"layoutResizeColHeight"),C(e,n,i.S2Event.LAYOUT_RESIZE_TREE_WIDTH,"layoutResizeTreeWidth"),C(e,n,i.S2Event.LAYOUT_RESIZE_MOUSE_DOWN,"layoutResizeMouseDown"),C(e,n,i.S2Event.LAYOUT_RESIZE_MOUSE_UP,"layoutResizeMouseUp"),C(e,n,i.S2Event.LAYOUT_RESIZE_MOUSE_MOVE,"layoutResizeMouseMove"),C(e,n,i.S2Event.GLOBAL_KEYBOARD_DOWN,"keyBoardDown"),C(e,n,i.S2Event.GLOBAL_KEYBOARD_UP,"keyBoardUp"),C(e,n,i.S2Event.GLOBAL_COPIED,"copied"),C(e,n,i.S2Event.GLOBAL_ACTION_ICON_HOVER,"actionIconHover"),C(e,n,i.S2Event.GLOBAL_ACTION_ICON_CLICK,"actionIconClick"),C(e,n,i.S2Event.GLOBAL_CONTEXT_MENU,"contextMenu"),C(e,n,i.S2Event.GLOBAL_HOVER,"mouseHover"),C(e,n,i.S2Event.GLOBAL_CLICK,"click"),C(e,n,i.S2Event.GLOBAL_DOUBLE_CLICK,"doubleClick"),C(e,n,i.S2Event.GLOBAL_SELECTED,"selected"),C(e,n,i.S2Event.GLOBAL_MOUSE_UP,"mouseUp"),C(e,n,i.S2Event.GLOBAL_RESET,"reset"),C(e,n,i.S2Event.GLOBAL_LINK_FIELD_JUMP,"linkFieldJump"))})},el=(e,n=!1)=>{const r=t.ref(n),o=a=>{r.value=a};return t.watch(e,a=>{a==null||a.on(i.S2Event.LAYOUT_BEFORE_RENDER,()=>{o(!0)}),a==null||a.on(i.S2Event.LAYOUT_AFTER_RENDER,()=>{o(!1)})}),{loading:r,setLoading:o}},nl=(e,n)=>{const r=t.reactive({rerender:!1,reloadData:!1,rebuildDataset:!1});t.watch(()=>n.options,(o,a)=>{var l,u;r.rerender=!0,Object.is(a==null?void 0:a.hierarchyType,o==null?void 0:o.hierarchyType)||(r.reloadData=!0,r.rebuildDataset=!0),(l=e.value)==null||l.setOptions(o),(u=e.value)==null||u.changeSheetSize(o==null?void 0:o.width,o==null?void 0:o.height)},{deep:t.isProxy(n.options)}),t.watch(()=>n.dataCfg,o=>{var a;r.rerender=!0,r.reloadData=!0,(a=e.value)==null||a.setDataCfg(o)},{deep:t.isProxy(n.dataCfg)}),t.watch(()=>n.themeCfg,o=>{var a;r.rerender=!0,(a=e.value)==null||a.setThemeCfg(o)},{deep:t.isProxy(n.themeCfg)}),t.watch(r,o=>{var a;!o.rerender||((a=e.value)==null||a.render(o.reloadData,{reBuildDataSet:o.rebuildDataset}),o.rerender=!1,o.reloadData=!1,o.rebuildDataset=!1)})},tl=(e,n,r)=>{const o=t.ref();t.watch([e,()=>n.adaptive],([a,l],u,s)=>{!a||(o.value=_i({s2:a,adaptive:l,wrapper:r.wrapperRef.value,container:r.containerRef.value}),s(()=>{var c;(c=o.value)==null||c.call(o)}))},{deep:!0})};function rl(e,n){const{dataCfg:r,options:o,themeCfg:a,loading:l,sheetType:u,onSpreadsheet:s,onGetSpreadSheet:c}=e,d=t.ref(),p=t.ref(),f=t.shallowRef(),{loading:E,setLoading:S}=el(f,l),_=gi(f,e),T=O=>{const y=t.toRaw(r),$=t.toRaw(o),A=Qi($),P=[O,y,A];return s?s(...P):u==="table"?new i.TableSheet(O,y,A):new i.PivotSheet(O,y,A)},B=()=>{S(!0),f.value=T(p.value),f.value.setThemeCfg(t.toRaw(a)),f.value.render(),S(!1),c==null||c(f.value)};return t.onMounted(B),xi(f,n),nl(f,e),tl(f,e,{wrapperRef:d,containerRef:p}),t.onBeforeUnmount(()=>{var O;(O=f.value)==null||O.destroy()}),{wrapperRef:d,containerRef:p,s2Ref:f,loading:E,setLoading:S,pagination:_}}const ol=()=>({sheetType:String,dataCfg:Object,themeCfg:Object,showPagination:{type:Object,default:!1},loading:Boolean,partDrillDown:Object,header:Object,options:{type:Object,default:{}},adaptive:{type:Object,default:!1},onSpreadsheet:Function,onGetSpreadSheet:Function}),al=()=>["spreadsheet","getSpreadSheet","rowCellHover","rowCellClick","rowCellDoubleClick","rowCellMouseDown","rowCellMouseUp","rowCellMouseMove","rowCellCollapseTreeRows","colCellHover","colCellClick","colCellDoubleClick","colCellMouseDown","colCellMouseUp","colCellMouseMove","dataCellHover","dataCellClick","dataCellDoubleClick","dataCellMouseDown","dataCellMouseUp","dataCellMouseMove","dataCellTrendIconClick","dataCellBrushSelection","cornerCellHover","cornerCellClick","cornerCellDoubleClick","cornerCellMouseDown","cornerCellMouseUp","cornerCellMouseMove","mergedCellsHover","mergedCellsClick","mergedCellsDoubleClick","mergedCellsMouseDown","mergedCellsMouseUp","mergedCellsMouseMove","rangeSort","rangeSorted","rangeFilter","rangeFiltered","layoutAfterHeaderLayout","layoutPagination","layoutCellScroll","layoutAfterCollapseRows","collapseRowsAll","layoutColsExpanded","layoutColsHidden","beforeRender","afterRender","destroy","layoutResize","layoutResizeSeriesWidth","layoutResizeRowWidth","layoutResizeRowHeight","layoutResizeColWidth","layoutResizeColHeight","layoutResizeTreeWidth","layoutResizeMouseDown","layoutResizeMouseUp","layoutResizeMouseMove","keyBoardDown","keyBoardUp","copied","actionIconHover","contextMenu","actionIconClick","mouseHover","mouseUp","selected","reset","linkFieldJump"];var Ll="";const il=t.defineComponent({name:"BaseSheet",props:ol(),emits:al(),setup(e,n){const{wrapperRef:r,containerRef:o,s2Ref:a,loading:l,pagination:u}=rl(e,n.emit);n.expose({get instance(){return a.value}});const s=d=>{var p,f;e.showPagination&&!gn(e.showPagination)&&((f=(p=e.showPagination).onChange)==null||f.call(p,d)),u.change(d)},c=d=>{var p,f;e.showPagination&&!gn(e.showPagination)&&((f=(p=e.showPagination).onShowSizeChange)==null||f.call(p,d)),u.showSizeChange(d)};return{S2_PREFIX_CLS:i.S2_PREFIX_CLS,wrapperRef:r,containerRef:o,s2Ref:a,loading:l,pagination:u,handlePageChange:s,handlePageSizeChange:c}},components:{Spin:X.Spin,S2Pagination:Oi}});function ll(e,n,r,o,a,l){const u=t.resolveComponent("S2Pagination"),s=t.resolveComponent("Spin");return t.openBlock(),t.createBlock(s,{wrapperClassName:e.S2_PREFIX_CLS+"-spin",spinning:e.loading},{default:t.withCtx(()=>[t.createElementVNode("div",{ref:"wrapperRef",class:t.normalizeClass(e.S2_PREFIX_CLS+"-wrapper")},[t.createElementVNode("div",{ref:"containerRef",class:t.normalizeClass(e.S2_PREFIX_CLS+"-container")},null,2),e.pagination.visible.value?(t.openBlock(),t.createBlock(u,{key:0,current:e.pagination.current.value,pageSize:e.pagination.pageSize.value,total:e.pagination.total.value,onChange:e.handlePageChange,onShowSizeChange:e.handlePageSizeChange},null,8,["current","pageSize","total","onChange","onShowSizeChange"])):t.createCommentVNode("",!0)],2)]),_:1},8,["wrapperClassName","spinning"])}var $e=I(il,[["render",ll]]);const ul=t.defineComponent({name:"PivotSheet",props:[],emits:[],setup(e,n){return{s2Ref:ie(n.expose)}},components:{BaseSheet:$e}});function sl(e,n,r,o,a,l){const u=t.resolveComponent("BaseSheet");return t.openBlock(),t.createBlock(u,{ref:"s2Ref"},null,512)}var Ie=I(ul,[["render",sl]]);const cl=t.defineComponent({name:"TableSheet",props:[],emits:[],setup(e,n){return{s2Ref:ie(n.expose)}},components:{BaseSheet:$e}});function pl(e,n,r,o,a,l){const u=t.resolveComponent("BaseSheet");return t.openBlock(),t.createBlock(u,{ref:"s2Ref"},null,512)}var we=I(cl,[["render",pl]]);const dl=t.defineComponent({name:"Sheet",props:[],emits:[],setup(e,n){const r=ie(n.expose),o=t.computed(()=>{switch(n.attrs.sheetType){case"table":return we;default:return Ie}});return{s2Ref:r,sheetType:o}},components:{PivotSheet:Ie,TableSheet:we}});function fl(e,n,r,o,a,l){return t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.sheetType),{ref:"s2Ref"},null,512)}var El=I(dl,[["render",fl]]);h.BaseSheet=$e,h.PivotSheet=Ie,h.Sheet=El,h.TableSheet=we,h.useExpose=ie,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
2
|
+
//# sourceMappingURL=index.min.js.map
|