@antv/s2-vue 1.6.1 → 1.7.1

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/lib/index.js CHANGED
@@ -105,12 +105,12 @@ var root = freeGlobal$1 || freeSelf || Function("return this")();
105
105
  var root$1 = root;
106
106
  var Symbol$1 = root$1.Symbol;
107
107
  var Symbol$2 = Symbol$1;
108
- var objectProto$f = Object.prototype;
109
- var hasOwnProperty$c = objectProto$f.hasOwnProperty;
110
- var nativeObjectToString$1 = objectProto$f.toString;
108
+ var objectProto$g = Object.prototype;
109
+ var hasOwnProperty$d = objectProto$g.hasOwnProperty;
110
+ var nativeObjectToString$1 = objectProto$g.toString;
111
111
  var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
112
112
  function getRawTag(value) {
113
- var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
113
+ var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
114
114
  try {
115
115
  value[symToStringTag$1] = void 0;
116
116
  var unmasked = true;
@@ -126,8 +126,8 @@ function getRawTag(value) {
126
126
  }
127
127
  return result;
128
128
  }
129
- var objectProto$e = Object.prototype;
130
- var nativeObjectToString = objectProto$e.toString;
129
+ var objectProto$f = Object.prototype;
130
+ var nativeObjectToString = objectProto$f.toString;
131
131
  function objectToString(value) {
132
132
  return nativeObjectToString.call(value);
133
133
  }
@@ -228,12 +228,12 @@ var maskSrcKey = function() {
228
228
  function isMasked(func) {
229
229
  return !!maskSrcKey && maskSrcKey in func;
230
230
  }
231
- var funcProto$1 = Function.prototype;
232
- var funcToString$1 = funcProto$1.toString;
231
+ var funcProto$2 = Function.prototype;
232
+ var funcToString$2 = funcProto$2.toString;
233
233
  function toSource(func) {
234
234
  if (func != null) {
235
235
  try {
236
- return funcToString$1.call(func);
236
+ return funcToString$2.call(func);
237
237
  } catch (e) {
238
238
  }
239
239
  try {
@@ -245,11 +245,11 @@ function toSource(func) {
245
245
  }
246
246
  var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
247
247
  var reIsHostCtor = /^\[object .+?Constructor\]$/;
248
- var funcProto = Function.prototype, objectProto$d = Object.prototype;
249
- var funcToString = funcProto.toString;
250
- var hasOwnProperty$b = objectProto$d.hasOwnProperty;
248
+ var funcProto$1 = Function.prototype, objectProto$e = Object.prototype;
249
+ var funcToString$1 = funcProto$1.toString;
250
+ var hasOwnProperty$c = objectProto$e.hasOwnProperty;
251
251
  var reIsNative = RegExp(
252
- "^" + funcToString.call(hasOwnProperty$b).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
252
+ "^" + funcToString$1.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
253
253
  );
254
254
  function baseIsNative(value) {
255
255
  if (!isObject(value) || isMasked(value)) {
@@ -285,6 +285,19 @@ var baseCreate = function() {
285
285
  };
286
286
  }();
287
287
  var baseCreate$1 = baseCreate;
288
+ function apply(func, thisArg, args) {
289
+ switch (args.length) {
290
+ case 0:
291
+ return func.call(thisArg);
292
+ case 1:
293
+ return func.call(thisArg, args[0]);
294
+ case 2:
295
+ return func.call(thisArg, args[0], args[1]);
296
+ case 3:
297
+ return func.call(thisArg, args[0], args[1], args[2]);
298
+ }
299
+ return func.apply(thisArg, args);
300
+ }
288
301
  function copyArray(source, array) {
289
302
  var index2 = -1, length = source.length;
290
303
  array || (array = Array(length));
@@ -293,6 +306,28 @@ function copyArray(source, array) {
293
306
  }
294
307
  return array;
295
308
  }
309
+ var HOT_COUNT = 800, HOT_SPAN = 16;
310
+ var nativeNow = Date.now;
311
+ function shortOut(func) {
312
+ var count = 0, lastCalled = 0;
313
+ return function() {
314
+ var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
315
+ lastCalled = stamp;
316
+ if (remaining > 0) {
317
+ if (++count >= HOT_COUNT) {
318
+ return arguments[0];
319
+ }
320
+ } else {
321
+ count = 0;
322
+ }
323
+ return func.apply(void 0, arguments);
324
+ };
325
+ }
326
+ function constant(value) {
327
+ return function() {
328
+ return value;
329
+ };
330
+ }
296
331
  var defineProperty = function() {
297
332
  try {
298
333
  var func = getNative(Object, "defineProperty");
@@ -302,6 +337,17 @@ var defineProperty = function() {
302
337
  }
303
338
  }();
304
339
  var defineProperty$1 = defineProperty;
340
+ var baseSetToString = !defineProperty$1 ? identity : function(func, string) {
341
+ return defineProperty$1(func, "toString", {
342
+ "configurable": true,
343
+ "enumerable": false,
344
+ "value": constant(string),
345
+ "writable": true
346
+ });
347
+ };
348
+ var baseSetToString$1 = baseSetToString;
349
+ var setToString = shortOut(baseSetToString$1);
350
+ var setToString$1 = setToString;
305
351
  function arrayEach(array, iteratee) {
306
352
  var index2 = -1, length = array == null ? 0 : array.length;
307
353
  while (++index2 < length) {
@@ -333,11 +379,11 @@ function baseAssignValue(object, key, value) {
333
379
  function eq(value, other) {
334
380
  return value === other || value !== value && other !== other;
335
381
  }
336
- var objectProto$c = Object.prototype;
337
- var hasOwnProperty$a = objectProto$c.hasOwnProperty;
382
+ var objectProto$d = Object.prototype;
383
+ var hasOwnProperty$b = objectProto$d.hasOwnProperty;
338
384
  function assignValue(object, key, value) {
339
385
  var objValue = object[key];
340
- if (!(hasOwnProperty$a.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
386
+ if (!(hasOwnProperty$b.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
341
387
  baseAssignValue(object, key, value);
342
388
  }
343
389
  }
@@ -359,6 +405,23 @@ function copyObject(source, props, object, customizer) {
359
405
  }
360
406
  return object;
361
407
  }
408
+ var nativeMax$1 = Math.max;
409
+ function overRest(func, start, transform) {
410
+ start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
411
+ return function() {
412
+ var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
413
+ while (++index2 < length) {
414
+ array[index2] = args[start + index2];
415
+ }
416
+ index2 = -1;
417
+ var otherArgs = Array(start + 1);
418
+ while (++index2 < start) {
419
+ otherArgs[index2] = args[index2];
420
+ }
421
+ otherArgs[start] = transform(array);
422
+ return apply(func, this, otherArgs);
423
+ };
424
+ }
362
425
  var MAX_SAFE_INTEGER = 9007199254740991;
363
426
  function isLength(value) {
364
427
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
@@ -366,9 +429,9 @@ function isLength(value) {
366
429
  function isArrayLike(value) {
367
430
  return value != null && isLength(value.length) && !isFunction(value);
368
431
  }
369
- var objectProto$b = Object.prototype;
432
+ var objectProto$c = Object.prototype;
370
433
  function isPrototype(value) {
371
- var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b;
434
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$c;
372
435
  return value === proto;
373
436
  }
374
437
  function baseTimes(n, iteratee) {
@@ -382,13 +445,13 @@ var argsTag$3 = "[object Arguments]";
382
445
  function baseIsArguments(value) {
383
446
  return isObjectLike(value) && baseGetTag(value) == argsTag$3;
384
447
  }
385
- var objectProto$a = Object.prototype;
386
- var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
387
- var propertyIsEnumerable$1 = objectProto$a.propertyIsEnumerable;
448
+ var objectProto$b = Object.prototype;
449
+ var hasOwnProperty$a = objectProto$b.hasOwnProperty;
450
+ var propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable;
388
451
  var isArguments = baseIsArguments(function() {
389
452
  return arguments;
390
453
  }()) ? baseIsArguments : function(value) {
391
- return isObjectLike(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
454
+ return isObjectLike(value) && hasOwnProperty$a.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
392
455
  };
393
456
  var isArguments$1 = isArguments;
394
457
  function stubFalse() {
@@ -401,11 +464,11 @@ var Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0;
401
464
  var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
402
465
  var isBuffer = nativeIsBuffer || stubFalse;
403
466
  var isBuffer$1 = isBuffer;
404
- var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
467
+ var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$4 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]";
405
468
  var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
406
469
  var typedArrayTags = {};
407
470
  typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
408
- typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$4] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = false;
471
+ typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$4] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = false;
409
472
  function baseIsTypedArray(value) {
410
473
  return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
411
474
  }
@@ -432,12 +495,12 @@ var nodeUtil$1 = nodeUtil;
432
495
  var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray;
433
496
  var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
434
497
  var isTypedArray$1 = isTypedArray;
435
- var objectProto$9 = Object.prototype;
436
- var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
498
+ var objectProto$a = Object.prototype;
499
+ var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
437
500
  function arrayLikeKeys(value, inherited) {
438
501
  var isArr = isArray$1(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$1(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
439
502
  for (var key in value) {
440
- if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
503
+ if ((inherited || hasOwnProperty$9.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
441
504
  result.push(key);
442
505
  }
443
506
  }
@@ -450,15 +513,15 @@ function overArg(func, transform) {
450
513
  }
451
514
  var nativeKeys = overArg(Object.keys, Object);
452
515
  var nativeKeys$1 = nativeKeys;
453
- var objectProto$8 = Object.prototype;
454
- var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
516
+ var objectProto$9 = Object.prototype;
517
+ var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
455
518
  function baseKeys(object) {
456
519
  if (!isPrototype(object)) {
457
520
  return nativeKeys$1(object);
458
521
  }
459
522
  var result = [];
460
523
  for (var key in Object(object)) {
461
- if (hasOwnProperty$7.call(object, key) && key != "constructor") {
524
+ if (hasOwnProperty$8.call(object, key) && key != "constructor") {
462
525
  result.push(key);
463
526
  }
464
527
  }
@@ -476,15 +539,15 @@ function nativeKeysIn(object) {
476
539
  }
477
540
  return result;
478
541
  }
479
- var objectProto$7 = Object.prototype;
480
- var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
542
+ var objectProto$8 = Object.prototype;
543
+ var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
481
544
  function baseKeysIn(object) {
482
545
  if (!isObject(object)) {
483
546
  return nativeKeysIn(object);
484
547
  }
485
548
  var isProto = isPrototype(object), result = [];
486
549
  for (var key in object) {
487
- if (!(key == "constructor" && (isProto || !hasOwnProperty$6.call(object, key)))) {
550
+ if (!(key == "constructor" && (isProto || !hasOwnProperty$7.call(object, key)))) {
488
551
  result.push(key);
489
552
  }
490
553
  }
@@ -516,21 +579,21 @@ function hashDelete(key) {
516
579
  return result;
517
580
  }
518
581
  var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
519
- var objectProto$6 = Object.prototype;
520
- var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
582
+ var objectProto$7 = Object.prototype;
583
+ var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
521
584
  function hashGet(key) {
522
585
  var data = this.__data__;
523
586
  if (nativeCreate$1) {
524
587
  var result = data[key];
525
588
  return result === HASH_UNDEFINED$2 ? void 0 : result;
526
589
  }
527
- return hasOwnProperty$5.call(data, key) ? data[key] : void 0;
590
+ return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
528
591
  }
529
- var objectProto$5 = Object.prototype;
530
- var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
592
+ var objectProto$6 = Object.prototype;
593
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
531
594
  function hashHas(key) {
532
595
  var data = this.__data__;
533
- return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$4.call(data, key);
596
+ return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
534
597
  }
535
598
  var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
536
599
  function hashSet(key, value) {
@@ -737,8 +800,70 @@ function arrayPush(array, values) {
737
800
  }
738
801
  return array;
739
802
  }
803
+ var spreadableSymbol = Symbol$2 ? Symbol$2.isConcatSpreadable : void 0;
804
+ function isFlattenable(value) {
805
+ return isArray$1(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
806
+ }
807
+ function baseFlatten(array, depth, predicate, isStrict, result) {
808
+ var index2 = -1, length = array.length;
809
+ predicate || (predicate = isFlattenable);
810
+ result || (result = []);
811
+ while (++index2 < length) {
812
+ var value = array[index2];
813
+ if (depth > 0 && predicate(value)) {
814
+ if (depth > 1) {
815
+ baseFlatten(value, depth - 1, predicate, isStrict, result);
816
+ } else {
817
+ arrayPush(result, value);
818
+ }
819
+ } else if (!isStrict) {
820
+ result[result.length] = value;
821
+ }
822
+ }
823
+ return result;
824
+ }
825
+ function flatten(array) {
826
+ var length = array == null ? 0 : array.length;
827
+ return length ? baseFlatten(array, 1) : [];
828
+ }
829
+ function flatRest(func) {
830
+ return setToString$1(overRest(func, void 0, flatten), func + "");
831
+ }
740
832
  var getPrototype = overArg(Object.getPrototypeOf, Object);
741
833
  var getPrototype$1 = getPrototype;
834
+ var objectTag$3 = "[object Object]";
835
+ var funcProto = Function.prototype, objectProto$5 = Object.prototype;
836
+ var funcToString = funcProto.toString;
837
+ var hasOwnProperty$4 = objectProto$5.hasOwnProperty;
838
+ var objectCtorString = funcToString.call(Object);
839
+ function isPlainObject(value) {
840
+ if (!isObjectLike(value) || baseGetTag(value) != objectTag$3) {
841
+ return false;
842
+ }
843
+ var proto = getPrototype$1(value);
844
+ if (proto === null) {
845
+ return true;
846
+ }
847
+ var Ctor = hasOwnProperty$4.call(proto, "constructor") && proto.constructor;
848
+ return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
849
+ }
850
+ function baseSlice(array, start, end) {
851
+ var index2 = -1, length = array.length;
852
+ if (start < 0) {
853
+ start = -start > length ? 0 : length + start;
854
+ }
855
+ end = end > length ? length : end;
856
+ if (end < 0) {
857
+ end += length;
858
+ }
859
+ length = start > end ? 0 : end - start >>> 0;
860
+ start >>>= 0;
861
+ var result = Array(length);
862
+ while (++index2 < length) {
863
+ result[index2] = array[index2 + start];
864
+ }
865
+ return result;
866
+ }
742
867
  var rsAstralRange$1 = "\\ud800-\\udfff", rsComboMarksRange$1 = "\\u0300-\\u036f", reComboHalfMarksRange$1 = "\\ufe20-\\ufe2f", rsComboSymbolsRange$1 = "\\u20d0-\\u20ff", rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1, rsVarRange$1 = "\\ufe0e\\ufe0f";
743
868
  var rsZWJ$1 = "\\u200d";
744
869
  var reHasUnicode = RegExp("[" + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + "]");
@@ -983,14 +1108,14 @@ function baseIsSet(value) {
983
1108
  var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet;
984
1109
  var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
985
1110
  var isSet$1 = isSet;
986
- var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
1111
+ var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$2 = 4;
987
1112
  var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$2 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]";
988
1113
  var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
989
1114
  var cloneableTags = {};
990
1115
  cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$2] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$3] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$3] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
991
1116
  cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
992
1117
  function baseClone(value, bitmask, customizer, key, object, stack) {
993
- var result, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
1118
+ var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$2;
994
1119
  if (customizer) {
995
1120
  result = object ? customizer(value, key, object, stack) : customizer(value);
996
1121
  }
@@ -1049,9 +1174,9 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
1049
1174
  });
1050
1175
  return result;
1051
1176
  }
1052
- var CLONE_SYMBOLS_FLAG = 4;
1177
+ var CLONE_SYMBOLS_FLAG$1 = 4;
1053
1178
  function clone(value) {
1054
- return baseClone(value, CLONE_SYMBOLS_FLAG);
1179
+ return baseClone(value, CLONE_SYMBOLS_FLAG$1);
1055
1180
  }
1056
1181
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
1057
1182
  function setCacheAdd(value) {
@@ -1519,6 +1644,10 @@ function debounce(func, wait, options) {
1519
1644
  debounced.flush = flush;
1520
1645
  return debounced;
1521
1646
  }
1647
+ function last(array) {
1648
+ var length = array == null ? 0 : array.length;
1649
+ return length ? array[length - 1] : void 0;
1650
+ }
1522
1651
  function baseFilter(collection, predicate) {
1523
1652
  var result = [];
1524
1653
  baseEach$1(collection, function(value, index2, collection2) {
@@ -1536,6 +1665,9 @@ var stringTag = "[object String]";
1536
1665
  function isString(value) {
1537
1666
  return typeof value == "string" || !isArray$1(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1538
1667
  }
1668
+ function parent(object, path) {
1669
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
1670
+ }
1539
1671
  var boolTag = "[object Boolean]";
1540
1672
  function isBoolean(value) {
1541
1673
  return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag;
@@ -1564,6 +1696,37 @@ function isEmpty(value) {
1564
1696
  }
1565
1697
  return true;
1566
1698
  }
1699
+ function baseUnset(object, path) {
1700
+ path = castPath(path, object);
1701
+ object = parent(object, path);
1702
+ return object == null || delete object[toKey(last(path))];
1703
+ }
1704
+ function customOmitClone(value) {
1705
+ return isPlainObject(value) ? void 0 : value;
1706
+ }
1707
+ var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4;
1708
+ var omit = flatRest(function(object, paths) {
1709
+ var result = {};
1710
+ if (object == null) {
1711
+ return result;
1712
+ }
1713
+ var isDeep = false;
1714
+ paths = arrayMap(paths, function(path) {
1715
+ path = castPath(path, object);
1716
+ isDeep || (isDeep = path.length > 1);
1717
+ return path;
1718
+ });
1719
+ copyObject(object, getAllKeysIn(object), result);
1720
+ if (isDeep) {
1721
+ result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
1722
+ }
1723
+ var length = paths.length;
1724
+ while (length--) {
1725
+ baseUnset(result, paths[length]);
1726
+ }
1727
+ return result;
1728
+ });
1729
+ var omit$1 = omit;
1567
1730
  var asciiSize = baseProperty("length");
1568
1731
  var asciiSize$1 = asciiSize;
1569
1732
  var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsVarRange = "\\ufe0e\\ufe0f";
@@ -1668,7 +1831,7 @@ const getDrillDownCache = (spreadsheet, meta) => {
1668
1831
  "drillDownDataCache",
1669
1832
  []
1670
1833
  );
1671
- const cache = drillDownDataCache.find((dc) => dc.rowId === meta.id);
1834
+ const cache = drillDownDataCache == null ? void 0 : drillDownDataCache.find((dc) => dc.rowId === meta.id);
1672
1835
  return {
1673
1836
  drillDownDataCache,
1674
1837
  drillDownCurrentCache: cache
@@ -2247,13 +2410,13 @@ class CustomTooltip extends s2.BaseTooltip {
2247
2410
  const DEFAULT_PAGE_NUMBER = 1;
2248
2411
  const DEFAULT_PAGE_SIZE = 10;
2249
2412
  const usePagination = (s2Ref, props) => {
2250
- var _a, _b, _c, _d, _e, _f;
2251
- const current = vue.ref(
2252
- (_c = (_b = (_a = props.options) == null ? void 0 : _a.pagination) == null ? void 0 : _b.current) != null ? _c : DEFAULT_PAGE_NUMBER
2253
- );
2254
- const pageSize = vue.ref(
2255
- (_f = (_e = (_d = props.options) == null ? void 0 : _d.pagination) == null ? void 0 : _e.pageSize) != null ? _f : DEFAULT_PAGE_SIZE
2256
- );
2413
+ var _a, _b;
2414
+ const {
2415
+ options: { pagination: paginationCfg },
2416
+ showPagination
2417
+ } = props;
2418
+ const current = vue.ref((_a = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a : DEFAULT_PAGE_NUMBER);
2419
+ const pageSize = vue.ref((_b = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b : DEFAULT_PAGE_SIZE);
2257
2420
  const total = vue.ref(0);
2258
2421
  const change = (nextCurrent) => {
2259
2422
  current.value = nextCurrent;
@@ -2262,15 +2425,13 @@ const usePagination = (s2Ref, props) => {
2262
2425
  pageSize.value = nextPageSize;
2263
2426
  };
2264
2427
  const visible = vue.computed(() => {
2265
- var _a2;
2266
- return props.showPagination && !isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination);
2428
+ return showPagination && !isEmpty(paginationCfg);
2267
2429
  });
2268
2430
  vue.watch([current, pageSize], () => {
2269
- var _a2;
2270
2431
  if (!s2Ref.value) {
2271
2432
  return;
2272
2433
  }
2273
- const nextPagination = isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination) ? null : {
2434
+ const nextPagination = isEmpty(paginationCfg) ? null : {
2274
2435
  current: current.value,
2275
2436
  pageSize: pageSize.value
2276
2437
  };
@@ -2278,15 +2439,12 @@ const usePagination = (s2Ref, props) => {
2278
2439
  s2Ref.value.render(false);
2279
2440
  });
2280
2441
  vue.watch(
2281
- [() => {
2282
- var _a2;
2283
- return (_a2 = props.options) == null ? void 0 : _a2.pagination;
2284
- }, s2Ref],
2442
+ [() => paginationCfg, s2Ref],
2285
2443
  () => {
2286
- var _a2, _b2, _c2, _d2, _e2, _f2, _g, _h, _i;
2287
- current.value = (_c2 = (_b2 = (_a2 = props.options) == null ? void 0 : _a2.pagination) == null ? void 0 : _b2.current) != null ? _c2 : DEFAULT_PAGE_NUMBER;
2288
- pageSize.value = (_f2 = (_e2 = (_d2 = props.options) == null ? void 0 : _d2.pagination) == null ? void 0 : _e2.pageSize) != null ? _f2 : DEFAULT_PAGE_SIZE;
2289
- total.value = (_i = (_h = (_g = s2Ref.value) == null ? void 0 : _g.facet) == null ? void 0 : _h.viewCellHeights.getTotalLength()) != null ? _i : 0;
2444
+ var _a2, _b2, _c, _d, _e;
2445
+ current.value = (_a2 = paginationCfg == null ? void 0 : paginationCfg.current) != null ? _a2 : DEFAULT_PAGE_NUMBER;
2446
+ pageSize.value = (_b2 = paginationCfg == null ? void 0 : paginationCfg.pageSize) != null ? _b2 : DEFAULT_PAGE_SIZE;
2447
+ total.value = (_e = (_d = (_c = s2Ref.value) == null ? void 0 : _c.facet) == null ? void 0 : _d.viewCellHeights.getTotalLength()) != null ? _e : 0;
2290
2448
  },
2291
2449
  {
2292
2450
  immediate: true
@@ -2297,8 +2455,7 @@ const usePagination = (s2Ref, props) => {
2297
2455
  return;
2298
2456
  }
2299
2457
  const totalUpdateCallback = (data) => {
2300
- var _a2;
2301
- if (isEmpty((_a2 = props.options) == null ? void 0 : _a2.pagination)) {
2458
+ if (isEmpty(paginationCfg)) {
2302
2459
  return;
2303
2460
  }
2304
2461
  total.value = data.total;
@@ -2310,6 +2467,7 @@ const usePagination = (s2Ref, props) => {
2310
2467
  });
2311
2468
  });
2312
2469
  return {
2470
+ customOptions: omit$1(paginationCfg, ["current", "pageSize", "total"]),
2313
2471
  visible,
2314
2472
  current,
2315
2473
  pageSize,
@@ -2333,7 +2491,8 @@ const _sfc_main$5 = vue.defineComponent({
2333
2491
  pageSize: {
2334
2492
  type: Number,
2335
2493
  default: DEFAULT_PAGE_SIZE
2336
- }
2494
+ },
2495
+ customOptions: Object
2337
2496
  },
2338
2497
  emits: ["change", "showSizeChange"],
2339
2498
  setup: (props) => {
@@ -2355,17 +2514,18 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
2355
2514
  return vue.openBlock(), vue.createElementBlock("div", {
2356
2515
  class: vue.normalizeClass(_ctx.PRE_CLASS)
2357
2516
  }, [
2358
- vue.createVNode(_component_AntDPagination, {
2517
+ vue.createVNode(_component_AntDPagination, vue.mergeProps({
2518
+ size: "small",
2359
2519
  "default-current": 1,
2520
+ showSizeChanger: true,
2521
+ showQuickJumper: _ctx.showQuickJumper
2522
+ }, _ctx.customOptions, {
2360
2523
  current: _ctx.current,
2361
2524
  total: _ctx.total,
2362
2525
  pageSize: _ctx.pageSize,
2363
- showSizeChanger: true,
2364
2526
  onShowSizeChange: _cache[0] || (_cache[0] = (_, size2) => _ctx.$emit("showSizeChange", size2)),
2365
- size: "small",
2366
- showQuickJumper: _ctx.showQuickJumper,
2367
2527
  onChange: _cache[1] || (_cache[1] = (current) => _ctx.$emit("change", current))
2368
- }, null, 8, ["current", "total", "pageSize", "showQuickJumper"]),
2528
+ }), null, 16, ["showQuickJumper", "current", "total", "pageSize"]),
2369
2529
  vue.createElementVNode("span", {
2370
2530
  class: vue.normalizeClass(`${_ctx.PRE_CLASS}-count`)
2371
2531
  }, vue.toDisplayString(_ctx.i18n("\u5171\u8BA1")) + " " + vue.toDisplayString(_ctx.total || " - ") + " " + vue.toDisplayString(_ctx.i18n("\u6761")), 3)
@@ -3031,9 +3191,10 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3031
3191
  current: _ctx.pagination.current.value,
3032
3192
  pageSize: _ctx.pagination.pageSize.value,
3033
3193
  total: _ctx.pagination.total.value,
3194
+ customOptions: _ctx.pagination.customOptions,
3034
3195
  onChange: _ctx.handlePageChange,
3035
3196
  onShowSizeChange: _ctx.handlePageSizeChange
3036
- }, null, 8, ["current", "pageSize", "total", "onChange", "onShowSizeChange"])) : vue.createCommentVNode("", true)
3197
+ }, null, 8, ["current", "pageSize", "total", "customOptions", "onChange", "onShowSizeChange"])) : vue.createCommentVNode("", true)
3037
3198
  ], 2)
3038
3199
  ]),
3039
3200
  _: 1
@@ -3350,7 +3511,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
3350
3511
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.sheetType), { ref: "s2Ref" }, null, 512);
3351
3512
  }
3352
3513
  var index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
3353
- const version = "@antv/s2-vue-v1.6.1";
3514
+ const version = "@antv/s2-vue-v1.7.1";
3354
3515
  exports.BaseSheet = BaseSheet;
3355
3516
  exports.CustomTooltip = CustomTooltip;
3356
3517
  exports.PivotSheet = PivotSheet;