gcs-ui-lib 1.2.28 → 1.2.30

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.
@@ -43884,70 +43884,106 @@ function isReactElement(value) {
43884
43884
  }
43885
43885
 
43886
43886
  function emptyTarget(val) {
43887
- return Array.isArray(val) ? [] : {}
43887
+ return Array.isArray(val) ? [] : {}
43888
43888
  }
43889
43889
 
43890
- function cloneIfNecessary(value, optionsArgument) {
43891
- var clone = optionsArgument && optionsArgument.clone === true;
43892
- return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
43890
+ function cloneUnlessOtherwiseSpecified(value, options) {
43891
+ return (options.clone !== false && options.isMergeableObject(value))
43892
+ ? deepmerge(emptyTarget(value), value, options)
43893
+ : value
43893
43894
  }
43894
43895
 
43895
- function defaultArrayMerge(target, source, optionsArgument) {
43896
- var destination = target.slice();
43897
- source.forEach(function(e, i) {
43898
- if (typeof destination[i] === 'undefined') {
43899
- destination[i] = cloneIfNecessary(e, optionsArgument);
43900
- } else if (isMergeableObject(e)) {
43901
- destination[i] = deepmerge(target[i], e, optionsArgument);
43902
- } else if (target.indexOf(e) === -1) {
43903
- destination.push(cloneIfNecessary(e, optionsArgument));
43904
- }
43905
- });
43906
- return destination
43896
+ function defaultArrayMerge(target, source, options) {
43897
+ return target.concat(source).map(function(element) {
43898
+ return cloneUnlessOtherwiseSpecified(element, options)
43899
+ })
43907
43900
  }
43908
43901
 
43909
- function mergeObject(target, source, optionsArgument) {
43910
- var destination = {};
43911
- if (isMergeableObject(target)) {
43912
- Object.keys(target).forEach(function(key) {
43913
- destination[key] = cloneIfNecessary(target[key], optionsArgument);
43914
- });
43915
- }
43916
- Object.keys(source).forEach(function(key) {
43917
- if (!isMergeableObject(source[key]) || !target[key]) {
43918
- destination[key] = cloneIfNecessary(source[key], optionsArgument);
43919
- } else {
43920
- destination[key] = deepmerge(target[key], source[key], optionsArgument);
43921
- }
43922
- });
43923
- return destination
43902
+ function getMergeFunction(key, options) {
43903
+ if (!options.customMerge) {
43904
+ return deepmerge
43905
+ }
43906
+ var customMerge = options.customMerge(key);
43907
+ return typeof customMerge === 'function' ? customMerge : deepmerge
43924
43908
  }
43925
43909
 
43926
- function deepmerge(target, source, optionsArgument) {
43927
- var sourceIsArray = Array.isArray(source);
43928
- var targetIsArray = Array.isArray(target);
43929
- var options = optionsArgument || { arrayMerge: defaultArrayMerge };
43930
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
43931
-
43932
- if (!sourceAndTargetTypesMatch) {
43933
- return cloneIfNecessary(source, optionsArgument)
43934
- } else if (sourceIsArray) {
43935
- var arrayMerge = options.arrayMerge || defaultArrayMerge;
43936
- return arrayMerge(target, source, optionsArgument)
43937
- } else {
43938
- return mergeObject(target, source, optionsArgument)
43939
- }
43910
+ function getEnumerableOwnPropertySymbols(target) {
43911
+ return Object.getOwnPropertySymbols
43912
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
43913
+ return Object.propertyIsEnumerable.call(target, symbol)
43914
+ })
43915
+ : []
43940
43916
  }
43941
43917
 
43942
- deepmerge.all = function deepmergeAll(array, optionsArgument) {
43943
- if (!Array.isArray(array) || array.length < 2) {
43944
- throw new Error('first argument should be an array with at least two elements')
43945
- }
43918
+ function getKeys(target) {
43919
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
43920
+ }
43946
43921
 
43947
- // we are sure there are at least 2 values, so it is safe to have no initial value
43948
- return array.reduce(function(prev, next) {
43949
- return deepmerge(prev, next, optionsArgument)
43950
- })
43922
+ function propertyIsOnObject(object, property) {
43923
+ try {
43924
+ return property in object
43925
+ } catch(_) {
43926
+ return false
43927
+ }
43928
+ }
43929
+
43930
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
43931
+ function propertyIsUnsafe(target, key) {
43932
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
43933
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
43934
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
43935
+ }
43936
+
43937
+ function mergeObject(target, source, options) {
43938
+ var destination = {};
43939
+ if (options.isMergeableObject(target)) {
43940
+ getKeys(target).forEach(function(key) {
43941
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
43942
+ });
43943
+ }
43944
+ getKeys(source).forEach(function(key) {
43945
+ if (propertyIsUnsafe(target, key)) {
43946
+ return
43947
+ }
43948
+
43949
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
43950
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
43951
+ } else {
43952
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
43953
+ }
43954
+ });
43955
+ return destination
43956
+ }
43957
+
43958
+ function deepmerge(target, source, options) {
43959
+ options = options || {};
43960
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
43961
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
43962
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
43963
+ // implementations can use it. The caller may not replace it.
43964
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
43965
+
43966
+ var sourceIsArray = Array.isArray(source);
43967
+ var targetIsArray = Array.isArray(target);
43968
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
43969
+
43970
+ if (!sourceAndTargetTypesMatch) {
43971
+ return cloneUnlessOtherwiseSpecified(source, options)
43972
+ } else if (sourceIsArray) {
43973
+ return options.arrayMerge(target, source, options)
43974
+ } else {
43975
+ return mergeObject(target, source, options)
43976
+ }
43977
+ }
43978
+
43979
+ deepmerge.all = function deepmergeAll(array, options) {
43980
+ if (!Array.isArray(array)) {
43981
+ throw new Error('first argument should be an array')
43982
+ }
43983
+
43984
+ return array.reduce(function(prev, next) {
43985
+ return deepmerge(prev, next, options)
43986
+ }, {})
43951
43987
  };
43952
43988
 
43953
43989
  var deepmerge_1 = deepmerge;
@@ -43967,10 +44003,10 @@ Object.defineProperty(exports, "__esModule", {
43967
44003
  value: true
43968
44004
  });
43969
44005
  exports.default = void 0;
43970
- /**
43971
- *
43972
- * @param {Blob} data 下载的文件流
43973
- * @param {String} name 文件名称
44006
+ /**
44007
+ *
44008
+ * @param {Blob} data 下载的文件流
44009
+ * @param {String} name 文件名称
43974
44010
  */
43975
44011
 
43976
44012
  const downloadBlob = (data, name) => {
@@ -45356,7 +45392,7 @@ var stringify = function stringify(
45356
45392
 
45357
45393
  if (obj === null) {
45358
45394
  if (strictNullHandling) {
45359
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
45395
+ return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix);
45360
45396
  }
45361
45397
 
45362
45398
  obj = '';
@@ -45380,7 +45416,9 @@ var stringify = function stringify(
45380
45416
  if (generateArrayPrefix === 'comma' && isArray(obj)) {
45381
45417
  // we need to join elements in
45382
45418
  if (encodeValuesOnly && encoder) {
45383
- obj = utils.maybeMap(obj, encoder);
45419
+ obj = utils.maybeMap(obj, function (v) {
45420
+ return v == null ? v : encoder(v);
45421
+ });
45384
45422
  }
45385
45423
  objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
45386
45424
  } else if (isArray(filter)) {
@@ -45550,6 +45588,11 @@ module.exports = function (object, opts) {
45550
45588
  var sideChannel = getSideChannel();
45551
45589
  for (var i = 0; i < objKeys.length; ++i) {
45552
45590
  var key = objKeys[i];
45591
+
45592
+ if (typeof key === 'undefined' || key === null) {
45593
+ continue;
45594
+ }
45595
+
45553
45596
  var value = obj[key];
45554
45597
 
45555
45598
  if (options.skipNulls && value === null) {
@@ -45583,10 +45626,10 @@ module.exports = function (object, opts) {
45583
45626
  if (options.charsetSentinel) {
45584
45627
  if (options.charset === 'iso-8859-1') {
45585
45628
  // encodeURIComponent('&#10003;'), the "numeric entity" representation of a checkmark
45586
- prefix += 'utf8=%26%2310003%3B&';
45629
+ prefix += 'utf8=%26%2310003%3B' + options.delimiter;
45587
45630
  } else {
45588
45631
  // encodeURIComponent('✓')
45589
- prefix += 'utf8=%E2%9C%93&';
45632
+ prefix += 'utf8=%E2%9C%93' + options.delimiter;
45590
45633
  }
45591
45634
  }
45592
45635
 
@@ -52347,7 +52390,7 @@ var _zhCN = __webpack_require__("f0d9");
52347
52390
  var _zhCN2 = _interopRequireDefault(_zhCN);
52348
52391
  var _vue = __webpack_require__("8bbf");
52349
52392
  var _vue2 = _interopRequireDefault(_vue);
52350
- var _deepmerge = __webpack_require__("3c4e");
52393
+ var _deepmerge = __webpack_require__("9afc");
52351
52394
  var _deepmerge2 = _interopRequireDefault(_deepmerge);
52352
52395
  var _format = __webpack_require__("9d7e");
52353
52396
  var _format2 = _interopRequireDefault(_format);
@@ -53838,7 +53881,7 @@ function selectBillFilter(vm) {
53838
53881
  /***/ "4a0c":
53839
53882
  /***/ (function(module) {
53840
53883
 
53841
- module.exports = JSON.parse("{\"_from\":\"axios@^0.21.4\",\"_id\":\"axios@0.21.4\",\"_inBundle\":false,\"_integrity\":\"sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==\",\"_location\":\"/axios\",\"_phantomChildren\":{},\"_requested\":{\"type\":\"range\",\"registry\":true,\"raw\":\"axios@^0.21.4\",\"name\":\"axios\",\"escapedName\":\"axios\",\"rawSpec\":\"^0.21.4\",\"saveSpec\":null,\"fetchSpec\":\"^0.21.4\"},\"_requiredBy\":[\"/\",\"/n20-common-lib\"],\"_resolved\":\"https://registry.npmjs.org/axios/-/axios-0.21.4.tgz\",\"_shasum\":\"c67b90dc0568e5c1cf2b0b858c43ba28e2eda575\",\"_spec\":\"axios@^0.21.4\",\"_where\":\"D:\\\\G20WorkSpace\\\\gcm-front-base\",\"author\":{\"name\":\"Matt Zabriskie\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"bundleDependencies\":false,\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}],\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"deprecated\":false,\"description\":\"Promise based HTTP client for the browser and node.js\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"homepage\":\"https://axios-http.com\",\"jsdelivr\":\"dist/axios.min.js\",\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"license\":\"MIT\",\"main\":\"index.js\",\"name\":\"axios\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/axios/axios.git\"},\"scripts\":{\"build\":\"NODE_ENV=production grunt build\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"examples\":\"node ./examples/server.js\",\"fix\":\"eslint --fix lib/**/*.js\",\"postversion\":\"git push && git push --tags\",\"preversion\":\"npm test\",\"start\":\"node ./sandbox/server.js\",\"test\":\"grunt test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\"},\"typings\":\"./index.d.ts\",\"unpkg\":\"dist/axios.min.js\",\"version\":\"0.21.4\"}");
53884
+ module.exports = JSON.parse("{\"name\":\"axios\",\"version\":\"0.21.4\",\"description\":\"Promise based HTTP client for the browser and node.js\",\"main\":\"index.js\",\"scripts\":{\"test\":\"grunt test\",\"start\":\"node ./sandbox/server.js\",\"build\":\"NODE_ENV=production grunt build\",\"preversion\":\"npm test\",\"version\":\"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json\",\"postversion\":\"git push && git push --tags\",\"examples\":\"node ./examples/server.js\",\"coveralls\":\"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js\",\"fix\":\"eslint --fix lib/**/*.js\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/axios/axios.git\"},\"keywords\":[\"xhr\",\"http\",\"ajax\",\"promise\",\"node\"],\"author\":\"Matt Zabriskie\",\"license\":\"MIT\",\"bugs\":{\"url\":\"https://github.com/axios/axios/issues\"},\"homepage\":\"https://axios-http.com\",\"devDependencies\":{\"coveralls\":\"^3.0.0\",\"es6-promise\":\"^4.2.4\",\"grunt\":\"^1.3.0\",\"grunt-banner\":\"^0.6.0\",\"grunt-cli\":\"^1.2.0\",\"grunt-contrib-clean\":\"^1.1.0\",\"grunt-contrib-watch\":\"^1.0.0\",\"grunt-eslint\":\"^23.0.0\",\"grunt-karma\":\"^4.0.0\",\"grunt-mocha-test\":\"^0.13.3\",\"grunt-ts\":\"^6.0.0-beta.19\",\"grunt-webpack\":\"^4.0.2\",\"istanbul-instrumenter-loader\":\"^1.0.0\",\"jasmine-core\":\"^2.4.1\",\"karma\":\"^6.3.2\",\"karma-chrome-launcher\":\"^3.1.0\",\"karma-firefox-launcher\":\"^2.1.0\",\"karma-jasmine\":\"^1.1.1\",\"karma-jasmine-ajax\":\"^0.1.13\",\"karma-safari-launcher\":\"^1.0.0\",\"karma-sauce-launcher\":\"^4.3.6\",\"karma-sinon\":\"^1.0.5\",\"karma-sourcemap-loader\":\"^0.3.8\",\"karma-webpack\":\"^4.0.2\",\"load-grunt-tasks\":\"^3.5.2\",\"minimist\":\"^1.2.0\",\"mocha\":\"^8.2.1\",\"sinon\":\"^4.5.0\",\"terser-webpack-plugin\":\"^4.2.3\",\"typescript\":\"^4.0.5\",\"url-search-params\":\"^0.10.0\",\"webpack\":\"^4.44.2\",\"webpack-dev-server\":\"^3.11.0\"},\"browser\":{\"./lib/adapters/http.js\":\"./lib/adapters/xhr.js\"},\"jsdelivr\":\"dist/axios.min.js\",\"unpkg\":\"dist/axios.min.js\",\"typings\":\"./index.d.ts\",\"dependencies\":{\"follow-redirects\":\"^1.14.0\"},\"bundlesize\":[{\"path\":\"./dist/axios.min.js\",\"threshold\":\"5kB\"}]}");
53842
53885
 
53843
53886
  /***/ }),
53844
53887
 
@@ -58336,7 +58379,10 @@ module.exports = function getSideChannel() {
58336
58379
  var channel = {
58337
58380
  assert: function (key) {
58338
58381
  if (!channel.has(key)) {
58339
- throw new $TypeError('Side channel does not contain ' + inspect(key));
58382
+ var keyDesc = key && Object(key) === key
58383
+ ? 'the given object key'
58384
+ : inspect(key);
58385
+ throw new $TypeError('Side channel does not contain ' + keyDesc);
58340
58386
  }
58341
58387
  },
58342
58388
  'delete': function (key) {
@@ -58356,7 +58402,7 @@ module.exports = function getSideChannel() {
58356
58402
  $channelData.set(key, value);
58357
58403
  }
58358
58404
  };
58359
- // @ts-expect-error TODO: figure out why this is erroring
58405
+
58360
58406
  return channel;
58361
58407
  };
58362
58408
 
@@ -67730,7 +67776,7 @@ var ec = [
67730
67776
  'invalid distance',
67731
67777
  'stream finished',
67732
67778
  'no stream handler',
67733
- ,
67779
+ , // determined by compression function
67734
67780
  'no callback',
67735
67781
  'invalid UTF-8 data',
67736
67782
  'extra field too long',
@@ -68447,12 +68493,12 @@ var cbify = function (dat, opts, fns, init, id, cb) {
68447
68493
  var astrm = function (strm) {
68448
68494
  strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); };
68449
68495
  return function (ev) {
68450
- if (ev.data.length) {
68496
+ if (ev.data[0]) {
68451
68497
  strm.push(ev.data[0], ev.data[1]);
68452
68498
  postMessage([ev.data[0].length]);
68453
68499
  }
68454
68500
  else
68455
- strm.flush();
68501
+ strm.flush(ev.data[1]);
68456
68502
  };
68457
68503
  };
68458
68504
  // async stream attach
@@ -68482,17 +68528,19 @@ var astrmify = function (fns, strm, opts, init, id, flush, ext) {
68482
68528
  if (t)
68483
68529
  strm.ondata(err(4, 0, 1), null, !!f);
68484
68530
  strm.queuedSize += d.length;
68485
- w.postMessage([d, t = f], [d.buffer]);
68531
+ // can fail for cross-realm Uint8Array, but ok - only a small performance penalty
68532
+ w.postMessage([d, t = f], d.buffer instanceof ArrayBuffer ? [d.buffer] : []);
68486
68533
  };
68487
68534
  strm.terminate = function () { w.terminate(); };
68488
68535
  if (flush) {
68489
- strm.flush = function () { w.postMessage([]); };
68536
+ strm.flush = function (sync) { w.postMessage([0, sync]); };
68490
68537
  }
68491
68538
  };
68492
68539
  // read 2 bytes
68493
68540
  var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); };
68494
68541
  // read 4 bytes
68495
68542
  var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; };
68543
+ // read 8 bytes
68496
68544
  var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); };
68497
68545
  // write bytes
68498
68546
  var wbytes = function (d, b, v) {
@@ -68613,18 +68661,37 @@ var Deflate = /*#__PURE__*/ (function () {
68613
68661
  this.p(this.b, final || false);
68614
68662
  this.s.w = this.s.i, this.s.i -= 2;
68615
68663
  }
68664
+ if (final) {
68665
+ // cleanup unneeded buffers/state to reduce memory usage
68666
+ this.s = this.o = {};
68667
+ this.b = et;
68668
+ }
68616
68669
  };
68617
68670
  /**
68618
68671
  * Flushes buffered uncompressed data. Useful to immediately retrieve the
68619
68672
  * deflated output for small inputs.
68673
+ * @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
68674
+ * extra bytes, but guarantees all pushed data is immediately
68675
+ * decompressible. A separate DEFLATE stream may be concatenated
68676
+ * with the current output after a sync flush.
68620
68677
  */
68621
- Deflate.prototype.flush = function () {
68678
+ Deflate.prototype.flush = function (sync) {
68622
68679
  if (!this.ondata)
68623
68680
  err(5);
68624
68681
  if (this.s.l)
68625
68682
  err(4);
68626
68683
  this.p(this.b, false);
68627
68684
  this.s.w = this.s.i, this.s.i -= 2;
68685
+ // could technically skip writing the type-0 block for (this.s.r & 7) == 0,
68686
+ // but the deterministic trailer (00 00 FF FF) is useful in some situations
68687
+ if (sync) {
68688
+ var c = new u8(6);
68689
+ c[0] = this.s.r >> 3;
68690
+ // write empty, non-final type-0 block
68691
+ var ep = wfblk(c, this.s.r, et);
68692
+ this.s.r = 0;
68693
+ this.ondata(c.subarray(0, ep >> 3), false);
68694
+ }
68628
68695
  };
68629
68696
  return Deflate;
68630
68697
  }());
@@ -68735,12 +68802,6 @@ function inflate(data, opts, cb) {
68735
68802
  bInflt
68736
68803
  ], function (ev) { return pbf(inflateSync(ev.data[0], gopt(ev.data[1]))); }, 1, cb);
68737
68804
  }
68738
- /**
68739
- * Expands DEFLATE data with no wrapper
68740
- * @param data The data to decompress
68741
- * @param opts The decompression options
68742
- * @returns The decompressed version of the data
68743
- */
68744
68805
  function inflateSync(data, opts) {
68745
68806
  return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary);
68746
68807
  }
@@ -68776,9 +68837,12 @@ var Gzip = /*#__PURE__*/ (function () {
68776
68837
  /**
68777
68838
  * Flushes buffered uncompressed data. Useful to immediately retrieve the
68778
68839
  * GZIPped output for small inputs.
68840
+ * @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
68841
+ * extra bytes, but guarantees all pushed data is immediately
68842
+ * decompressible.
68779
68843
  */
68780
- Gzip.prototype.flush = function () {
68781
- Deflate.prototype.flush.call(this);
68844
+ Gzip.prototype.flush = function (sync) {
68845
+ Deflate.prototype.flush.call(this, sync);
68782
68846
  };
68783
68847
  return Gzip;
68784
68848
  }());
@@ -68856,14 +68920,17 @@ var Gunzip = /*#__PURE__*/ (function () {
68856
68920
  }
68857
68921
  // necessary to prevent TS from using the closure value
68858
68922
  // This allows for workerization to function correctly
68859
- Inflate.prototype.c.call(this, final);
68923
+ Inflate.prototype.c.call(this, 0);
68860
68924
  // process concatenated GZIP
68861
- if (this.s.f && !this.s.l && !final) {
68925
+ if (this.s.f && !this.s.l) {
68862
68926
  this.v = shft(this.s.p) + 9;
68863
68927
  this.s = { i: 0 };
68864
68928
  this.o = new u8(0);
68865
68929
  this.push(new u8(0), final);
68866
68930
  }
68931
+ else if (final) {
68932
+ Inflate.prototype.c.call(this, final);
68933
+ }
68867
68934
  };
68868
68935
  return Gunzip;
68869
68936
  }());
@@ -68898,12 +68965,6 @@ function gunzip(data, opts, cb) {
68898
68965
  function () { return [gunzipSync]; }
68899
68966
  ], function (ev) { return pbf(gunzipSync(ev.data[0], ev.data[1])); }, 3, cb);
68900
68967
  }
68901
- /**
68902
- * Expands GZIP data
68903
- * @param data The data to decompress
68904
- * @param opts The decompression options
68905
- * @returns The decompressed version of the data
68906
- */
68907
68968
  function gunzipSync(data, opts) {
68908
68969
  var st = gzs(data);
68909
68970
  if (st + 8 > data.length)
@@ -68939,9 +69000,12 @@ var Zlib = /*#__PURE__*/ (function () {
68939
69000
  /**
68940
69001
  * Flushes buffered uncompressed data. Useful to immediately retrieve the
68941
69002
  * zlibbed output for small inputs.
69003
+ * @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
69004
+ * extra bytes, but guarantees all pushed data is immediately
69005
+ * decompressible.
68942
69006
  */
68943
- Zlib.prototype.flush = function () {
68944
- Deflate.prototype.flush.call(this);
69007
+ Zlib.prototype.flush = function (sync) {
69008
+ Deflate.prototype.flush.call(this, sync);
68945
69009
  };
68946
69010
  return Zlib;
68947
69011
  }());
@@ -69048,12 +69112,6 @@ function unzlib(data, opts, cb) {
69048
69112
  function () { return [unzlibSync]; }
69049
69113
  ], function (ev) { return pbf(unzlibSync(ev.data[0], gopt(ev.data[1]))); }, 5, cb);
69050
69114
  }
69051
- /**
69052
- * Expands Zlib data
69053
- * @param data The data to decompress
69054
- * @param opts The decompression options
69055
- * @returns The decompressed version of the data
69056
- */
69057
69115
  function unzlibSync(data, opts) {
69058
69116
  return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary);
69059
69117
  }
@@ -69174,7 +69232,7 @@ var fltn = function (d, p, t, o) {
69174
69232
  var val = d[k], n = p + k, op = o;
69175
69233
  if (Array.isArray(val))
69176
69234
  op = mrg(o, val[1]), val = val[0];
69177
- if (val instanceof u8)
69235
+ if (ArrayBuffer.isView(val))
69178
69236
  t[n] = [val, op];
69179
69237
  else {
69180
69238
  t[n += '/'] = [new u8(0), op];
@@ -69359,15 +69417,30 @@ var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
69359
69417
  var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); };
69360
69418
  // read zip header
69361
69419
  var zh = function (d, b, z) {
69362
- var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl, bs = b4(d, b + 20);
69363
- var _a = z && bs == 4294967295 ? z64e(d, es) : [bs, b4(d, b + 24), b4(d, b + 42)], sc = _a[0], su = _a[1], off = _a[2];
69364
- return [b2(d, b + 10), sc, su, fn, es + b2(d, b + 30) + b2(d, b + 32), off];
69365
- };
69366
- // read zip64 extra field
69367
- var z64e = function (d, b) {
69368
- for (; b2(d, b) != 1; b += 4 + b2(d, b + 2))
69369
- ;
69370
- return [b8(d, b + 12), b8(d, b + 4), b8(d, b + 20)];
69420
+ var fnl = b2(d, b + 28), efl = b2(d, b + 30), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl;
69421
+ var _a = z64hs(d, es, efl, z, b4(d, b + 20), b4(d, b + 24), b4(d, b + 42)), sc = _a[0], su = _a[1], off = _a[2];
69422
+ return [b2(d, b + 10), sc, su, fn, es + efl + b2(d, b + 32), off];
69423
+ };
69424
+ // read zip64 header sizes
69425
+ var z64hs = function (d, b, l, z, sc, su, off) {
69426
+ var nsc = sc == 4294967295, nsu = su == 4294967295, noff = off == 4294967295, e = b + l;
69427
+ var nf = nsc + nsu + noff;
69428
+ if (z && nf) {
69429
+ for (; b + 4 < e; b += 4 + b2(d, b + 2)) {
69430
+ if (b2(d, b) == 1) {
69431
+ return [
69432
+ nsc ? b8(d, b + 4 + 8 * nsu) : sc,
69433
+ nsu ? b8(d, b + 4) : su,
69434
+ noff ? b8(d, b + 4 + 8 * (nsu + nsc)) : off,
69435
+ 1
69436
+ ];
69437
+ }
69438
+ }
69439
+ // z == 2 for unknown whether or not zip64
69440
+ if (z < 2)
69441
+ err(13);
69442
+ }
69443
+ return [sc, su, off, 0];
69371
69444
  };
69372
69445
  // extra field length
69373
69446
  var exfl = function (ex) {
@@ -69469,6 +69542,8 @@ var ZipPassThrough = /*#__PURE__*/ (function () {
69469
69542
  this.size += chunk.length;
69470
69543
  if (final)
69471
69544
  this.crc = this.c.d();
69545
+ // we shouldn't really do this cast, but properly handling ArrayBufferLike
69546
+ // makes the API unergonomic with Buffer
69472
69547
  this.process(chunk, final || false);
69473
69548
  };
69474
69549
  return ZipPassThrough;
@@ -69848,8 +69923,9 @@ function zipSync(data, opts) {
69848
69923
  var UnzipPassThrough = /*#__PURE__*/ (function () {
69849
69924
  function UnzipPassThrough() {
69850
69925
  }
69851
- UnzipPassThrough.prototype.push = function (data, final) {
69852
- this.ondata(null, data, final);
69926
+ UnzipPassThrough.prototype.push = function (chunk, final) {
69927
+ // same as ZipPassThrough: cast to retain Buffer ergonomics
69928
+ this.ondata(null, chunk, final);
69853
69929
  };
69854
69930
  UnzipPassThrough.compression = 0;
69855
69931
  return UnzipPassThrough;
@@ -69869,9 +69945,9 @@ var UnzipInflate = /*#__PURE__*/ (function () {
69869
69945
  _this.ondata(null, dat, final);
69870
69946
  });
69871
69947
  }
69872
- UnzipInflate.prototype.push = function (data, final) {
69948
+ UnzipInflate.prototype.push = function (chunk, final) {
69873
69949
  try {
69874
- this.i.push(data, final);
69950
+ this.i.push(chunk, final);
69875
69951
  }
69876
69952
  catch (e) {
69877
69953
  this.ondata(e, null, final);
@@ -69902,10 +69978,10 @@ var AsyncUnzipInflate = /*#__PURE__*/ (function () {
69902
69978
  this.terminate = this.i.terminate;
69903
69979
  }
69904
69980
  }
69905
- AsyncUnzipInflate.prototype.push = function (data, final) {
69981
+ AsyncUnzipInflate.prototype.push = function (chunk, final) {
69906
69982
  if (this.i.terminate)
69907
- data = slc(data, 0);
69908
- this.i.push(data, final);
69983
+ chunk = slc(chunk, 0);
69984
+ this.i.push(chunk, final);
69909
69985
  };
69910
69986
  AsyncUnzipInflate.compression = 8;
69911
69987
  return AsyncUnzipInflate;
@@ -69962,7 +70038,6 @@ var Unzip = /*#__PURE__*/ (function () {
69962
70038
  }
69963
70039
  var l = buf.length, oc = this.c, add = oc && this.d;
69964
70040
  var _loop_2 = function () {
69965
- var _a;
69966
70041
  var sig = b4(buf, i);
69967
70042
  if (sig == 0x4034B50) {
69968
70043
  f = 1, is = i;
@@ -69973,13 +70048,11 @@ var Unzip = /*#__PURE__*/ (function () {
69973
70048
  var chks_3 = [];
69974
70049
  this_1.k.unshift(chks_3);
69975
70050
  f = 2;
69976
- var sc_1 = b4(buf, i + 18), su_1 = b4(buf, i + 22);
70051
+ var lsc = b4(buf, i + 18), lsu = b4(buf, i + 22);
69977
70052
  var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u);
69978
- if (sc_1 == 4294967295) {
69979
- _a = dd ? [-2] : z64e(buf, i), sc_1 = _a[0], su_1 = _a[1];
69980
- }
69981
- else if (dd)
69982
- sc_1 = -1;
70053
+ var _a = z64hs(buf, i, es, 2, lsc, lsu, 0), sc_1 = _a[0], su_1 = _a[1], z64 = _a[3];
70054
+ if (dd)
70055
+ sc_1 = -1 - z64;
69983
70056
  i += es;
69984
70057
  this_1.c = sc_1;
69985
70058
  var d_1;
@@ -70092,7 +70165,7 @@ function unzip(data, opts, cb) {
70092
70165
  if (lft) {
70093
70166
  var c = lft;
70094
70167
  var o = b4(data, e + 16);
70095
- var z = o == 4294967295 || c == 65535;
70168
+ var z = b4(data, e - 20) == 0x7064B50;
70096
70169
  if (z) {
70097
70170
  var ze = b4(data, e - 12);
70098
70171
  z = b4(data, ze) == 0x6064B50;
@@ -70172,7 +70245,7 @@ function unzipSync(data, opts) {
70172
70245
  if (!c)
70173
70246
  return {};
70174
70247
  var o = b4(data, e + 16);
70175
- var z = o == 4294967295 || c == 65535;
70248
+ var z = b4(data, e - 20) == 0x7064B50;
70176
70249
  if (z) {
70177
70250
  var ze = b4(data, e - 12);
70178
70251
  z = b4(data, ze) == 0x6064B50;
@@ -75074,26 +75147,24 @@ var _default = exports.default = {
75074
75147
  /***/ "852e":
75075
75148
  /***/ (function(module, exports, __webpack_require__) {
75076
75149
 
75077
- /*! js-cookie v3.0.5 | MIT */
75150
+ /*! js-cookie v3.0.8 | MIT */
75078
75151
  ;
75079
75152
  (function (global, factory) {
75080
75153
  true ? module.exports = factory() :
75081
75154
  undefined;
75082
75155
  })(this, (function () { 'use strict';
75083
75156
 
75084
- /* eslint-disable no-var */
75085
75157
  function assign (target) {
75086
75158
  for (var i = 1; i < arguments.length; i++) {
75087
75159
  var source = arguments[i];
75088
75160
  for (var key in source) {
75161
+ if (key === '__proto__') continue
75089
75162
  target[key] = source[key];
75090
75163
  }
75091
75164
  }
75092
75165
  return target
75093
75166
  }
75094
- /* eslint-enable no-var */
75095
75167
 
75096
- /* eslint-disable no-var */
75097
75168
  var defaultConverter = {
75098
75169
  read: function (value) {
75099
75170
  if (value[0] === '"') {
@@ -75108,12 +75179,9 @@ var _default = exports.default = {
75108
75179
  )
75109
75180
  }
75110
75181
  };
75111
- /* eslint-enable no-var */
75112
75182
 
75113
- /* eslint-disable no-var */
75114
-
75115
- function init (converter, defaultAttributes) {
75116
- function set (name, value, attributes) {
75183
+ function init(converter, defaultAttributes) {
75184
+ function set(name, value, attributes) {
75117
75185
  if (typeof document === 'undefined') {
75118
75186
  return
75119
75187
  }
@@ -75157,7 +75225,7 @@ var _default = exports.default = {
75157
75225
  name + '=' + converter.write(value, name) + stringifiedAttributes)
75158
75226
  }
75159
75227
 
75160
- function get (name) {
75228
+ function get(name) {
75161
75229
  if (typeof document === 'undefined' || (arguments.length && !name)) {
75162
75230
  return
75163
75231
  }
@@ -75172,12 +75240,13 @@ var _default = exports.default = {
75172
75240
 
75173
75241
  try {
75174
75242
  var found = decodeURIComponent(parts[0]);
75175
- jar[found] = converter.read(value, found);
75176
-
75243
+ if (!(found in jar)) jar[found] = converter.read(value, found);
75177
75244
  if (name === found) {
75178
75245
  break
75179
75246
  }
75180
- } catch (e) {}
75247
+ } catch (_e) {
75248
+ // Do nothing...
75249
+ }
75181
75250
  }
75182
75251
 
75183
75252
  return name ? jar[name] : jar
@@ -75185,8 +75254,8 @@ var _default = exports.default = {
75185
75254
 
75186
75255
  return Object.create(
75187
75256
  {
75188
- set,
75189
- get,
75257
+ set: set,
75258
+ get: get,
75190
75259
  remove: function (name, attributes) {
75191
75260
  set(
75192
75261
  name,
@@ -75211,7 +75280,6 @@ var _default = exports.default = {
75211
75280
  }
75212
75281
 
75213
75282
  var api = init(defaultConverter, { path: '/' });
75214
- /* eslint-enable no-var */
75215
75283
 
75216
75284
  return api;
75217
75285
 
@@ -79758,7 +79826,7 @@ Object.defineProperty(exports, "__esModule", {
79758
79826
  exports.use = exports.t = exports.i18n = exports.default = void 0;
79759
79827
  var _zhCN = _interopRequireDefault(__webpack_require__("bd2b"));
79760
79828
  var _vue = _interopRequireDefault(__webpack_require__("8bbf"));
79761
- var _deepmerge = _interopRequireDefault(__webpack_require__("3c4e"));
79829
+ var _deepmerge = _interopRequireDefault(__webpack_require__("9afc"));
79762
79830
  var _format = _interopRequireDefault(__webpack_require__("7371"));
79763
79831
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
79764
79832
  const format = (0, _format.default)(_vue.default);
@@ -82359,6 +82427,96 @@ var _default = exports.default = {
82359
82427
 
82360
82428
  /***/ }),
82361
82429
 
82430
+ /***/ "9afc":
82431
+ /***/ (function(module, exports, __webpack_require__) {
82432
+
82433
+ "use strict";
82434
+
82435
+
82436
+ var isMergeableObject = function isMergeableObject(value) {
82437
+ return isNonNullObject(value) && !isSpecial(value);
82438
+ };
82439
+ function isNonNullObject(value) {
82440
+ return !!value && typeof value === 'object';
82441
+ }
82442
+ function isSpecial(value) {
82443
+ var stringValue = Object.prototype.toString.call(value);
82444
+ return stringValue === '[object RegExp]' || stringValue === '[object Date]' || isReactElement(value);
82445
+ }
82446
+
82447
+ // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
82448
+ var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
82449
+ var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
82450
+ function isReactElement(value) {
82451
+ return value.$$typeof === REACT_ELEMENT_TYPE;
82452
+ }
82453
+ function emptyTarget(val) {
82454
+ return Array.isArray(val) ? [] : {};
82455
+ }
82456
+ function cloneIfNecessary(value, optionsArgument) {
82457
+ var clone = optionsArgument && optionsArgument.clone === true;
82458
+ return clone && isMergeableObject(value) ? deepmerge(emptyTarget(value), value, optionsArgument) : value;
82459
+ }
82460
+ function defaultArrayMerge(target, source, optionsArgument) {
82461
+ var destination = target.slice();
82462
+ source.forEach(function (e, i) {
82463
+ if (typeof destination[i] === 'undefined') {
82464
+ destination[i] = cloneIfNecessary(e, optionsArgument);
82465
+ } else if (isMergeableObject(e)) {
82466
+ destination[i] = deepmerge(target[i], e, optionsArgument);
82467
+ } else if (target.indexOf(e) === -1) {
82468
+ destination.push(cloneIfNecessary(e, optionsArgument));
82469
+ }
82470
+ });
82471
+ return destination;
82472
+ }
82473
+ function mergeObject(target, source, optionsArgument) {
82474
+ var destination = {};
82475
+ if (isMergeableObject(target)) {
82476
+ Object.keys(target).forEach(function (key) {
82477
+ destination[key] = cloneIfNecessary(target[key], optionsArgument);
82478
+ });
82479
+ }
82480
+ Object.keys(source).forEach(function (key) {
82481
+ if (!isMergeableObject(source[key]) || !target[key]) {
82482
+ destination[key] = cloneIfNecessary(source[key], optionsArgument);
82483
+ } else {
82484
+ destination[key] = deepmerge(target[key], source[key], optionsArgument);
82485
+ }
82486
+ });
82487
+ return destination;
82488
+ }
82489
+ function deepmerge(target, source, optionsArgument) {
82490
+ var sourceIsArray = Array.isArray(source);
82491
+ var targetIsArray = Array.isArray(target);
82492
+ var options = optionsArgument || {
82493
+ arrayMerge: defaultArrayMerge
82494
+ };
82495
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
82496
+ if (!sourceAndTargetTypesMatch) {
82497
+ return cloneIfNecessary(source, optionsArgument);
82498
+ } else if (sourceIsArray) {
82499
+ var arrayMerge = options.arrayMerge || defaultArrayMerge;
82500
+ return arrayMerge(target, source, optionsArgument);
82501
+ } else {
82502
+ return mergeObject(target, source, optionsArgument);
82503
+ }
82504
+ }
82505
+ deepmerge.all = function deepmergeAll(array, optionsArgument) {
82506
+ if (!Array.isArray(array) || array.length < 2) {
82507
+ throw new Error('first argument should be an array with at least two elements');
82508
+ }
82509
+
82510
+ // we are sure there are at least 2 values, so it is safe to have no initial value
82511
+ return array.reduce(function (prev, next) {
82512
+ return deepmerge(prev, next, optionsArgument);
82513
+ });
82514
+ };
82515
+ var deepmerge_1 = deepmerge;
82516
+ module.exports = deepmerge_1;
82517
+
82518
+ /***/ }),
82519
+
82362
82520
  /***/ "9bbb":
82363
82521
  /***/ (function(module, exports, __webpack_require__) {
82364
82522
 
@@ -83253,6 +83411,7 @@ var defaults = {
83253
83411
  parseArrays: true,
83254
83412
  plainObjects: false,
83255
83413
  strictDepth: false,
83414
+ strictMerge: true,
83256
83415
  strictNullHandling: false,
83257
83416
  throwOnLimitExceeded: false
83258
83417
  };
@@ -83291,13 +83450,13 @@ var parseValues = function parseQueryStringValues(str, options) {
83291
83450
  var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
83292
83451
  cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
83293
83452
 
83294
- var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
83453
+ var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
83295
83454
  var parts = cleanStr.split(
83296
83455
  options.delimiter,
83297
- options.throwOnLimitExceeded ? limit + 1 : limit
83456
+ options.throwOnLimitExceeded && typeof limit !== 'undefined' ? limit + 1 : limit
83298
83457
  );
83299
83458
 
83300
- if (options.throwOnLimitExceeded && parts.length > limit) {
83459
+ if (options.throwOnLimitExceeded && typeof limit !== 'undefined' && parts.length > limit) {
83301
83460
  throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
83302
83461
  }
83303
83462
 
@@ -83358,9 +83517,16 @@ var parseValues = function parseQueryStringValues(str, options) {
83358
83517
  val = isArray(val) ? [val] : val;
83359
83518
  }
83360
83519
 
83520
+ if (options.comma && isArray(val) && val.length > options.arrayLimit) {
83521
+ if (options.throwOnLimitExceeded) {
83522
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
83523
+ }
83524
+ val = utils.combine([], val, options.arrayLimit, options.plainObjects);
83525
+ }
83526
+
83361
83527
  if (key !== null) {
83362
83528
  var existing = has.call(obj, key);
83363
- if (existing && options.duplicates === 'combine') {
83529
+ if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
83364
83530
  obj[key] = utils.combine(
83365
83531
  obj[key],
83366
83532
  val,
@@ -83408,17 +83574,21 @@ var parseObject = function (chain, val, options, valuesParsed) {
83408
83574
  var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
83409
83575
  var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
83410
83576
  var index = parseInt(decodedRoot, 10);
83411
- if (!options.parseArrays && decodedRoot === '') {
83412
- obj = { 0: leaf };
83413
- } else if (
83414
- !isNaN(index)
83577
+ var isValidArrayIndex = !isNaN(index)
83415
83578
  && root !== decodedRoot
83416
83579
  && String(index) === decodedRoot
83417
83580
  && index >= 0
83418
- && (options.parseArrays && index <= options.arrayLimit)
83419
- ) {
83581
+ && options.parseArrays;
83582
+ if (!options.parseArrays && decodedRoot === '') {
83583
+ obj = { 0: leaf };
83584
+ } else if (isValidArrayIndex && index < options.arrayLimit) {
83420
83585
  obj = [];
83421
83586
  obj[index] = leaf;
83587
+ } else if (isValidArrayIndex && options.throwOnLimitExceeded) {
83588
+ throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
83589
+ } else if (isValidArrayIndex) {
83590
+ obj[index] = leaf;
83591
+ utils.markOverflow(obj, index);
83422
83592
  } else if (decodedRoot !== '__proto__') {
83423
83593
  obj[decodedRoot] = leaf;
83424
83594
  }
@@ -83430,9 +83600,12 @@ var parseObject = function (chain, val, options, valuesParsed) {
83430
83600
  return leaf;
83431
83601
  };
83432
83602
 
83433
- var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
83434
- var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
83603
+ // Split a key like "a[b][c[]]" into ['a', '[b]', '[c[]]'] while preserving
83604
+ // qs parse semantics for depth/prototype guards.
83605
+ var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
83606
+ var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, '[$1]') : originalKey;
83435
83607
 
83608
+ // depth <= 0 keeps the whole key as one segment
83436
83609
  if (options.depth <= 0) {
83437
83610
  if (!options.plainObjects && has.call(Object.prototype, key)) {
83438
83611
  if (!options.allowPrototypes) {
@@ -83443,14 +83616,11 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
83443
83616
  return [key];
83444
83617
  }
83445
83618
 
83446
- var brackets = /(\[[^[\]]*])/;
83447
- var child = /(\[[^[\]]*])/g;
83448
-
83449
- var segment = brackets.exec(key);
83450
- var parent = segment ? key.slice(0, segment.index) : key;
83451
-
83452
- var keys = [];
83619
+ var segments = [];
83453
83620
 
83621
+ // parent before the first '[' (may be empty if key starts with '[')
83622
+ var first = key.indexOf('[');
83623
+ var parent = first >= 0 ? key.slice(0, first) : key;
83454
83624
  if (parent) {
83455
83625
  if (!options.plainObjects && has.call(Object.prototype, parent)) {
83456
83626
  if (!options.allowPrototypes) {
@@ -83458,32 +83628,62 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
83458
83628
  }
83459
83629
  }
83460
83630
 
83461
- keys.push(parent);
83631
+ segments[segments.length] = parent;
83462
83632
  }
83463
83633
 
83464
- var i = 0;
83465
- while ((segment = child.exec(key)) !== null && i < options.depth) {
83466
- i += 1;
83634
+ var n = key.length;
83635
+ var open = first;
83636
+ var collected = 0;
83467
83637
 
83468
- var segmentContent = segment[1].slice(1, -1);
83469
- if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
83470
- if (!options.allowPrototypes) {
83471
- return;
83638
+ while (open >= 0 && collected < options.depth) {
83639
+ var level = 1;
83640
+ var i = open + 1;
83641
+ var close = -1;
83642
+
83643
+ // balance nested '[' and ']' inside this bracket group using a nesting level counter
83644
+ while (i < n && close < 0) {
83645
+ var cu = key.charCodeAt(i);
83646
+ if (cu === 0x5B) { // '['
83647
+ level += 1;
83648
+ } else if (cu === 0x5D) { // ']'
83649
+ level -= 1;
83650
+ if (level === 0) {
83651
+ close = i; // found matching close; loop will exit by condition
83652
+ }
83472
83653
  }
83654
+ i += 1;
83655
+ }
83656
+
83657
+ if (close < 0) {
83658
+ // Unterminated group: wrap the raw remainder in one bracket pair so it stays
83659
+ // a single literal segment (e.g. "[[]b" -> "[[]b]"); we do not infer missing ']'.
83660
+ segments[segments.length] = '[' + key.slice(open) + ']';
83661
+ return segments;
83662
+ }
83663
+
83664
+ var seg = key.slice(open, close + 1);
83665
+ // prototype guard for the content of this group
83666
+ var content = seg.slice(1, -1);
83667
+ if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
83668
+ return;
83473
83669
  }
83474
83670
 
83475
- keys.push(segment[1]);
83671
+ segments[segments.length] = seg;
83672
+ collected += 1;
83673
+
83674
+ // find the next '[' after this balanced group
83675
+ open = key.indexOf('[', close + 1);
83476
83676
  }
83477
83677
 
83478
- if (segment) {
83678
+ if (open >= 0) {
83479
83679
  if (options.strictDepth === true) {
83480
83680
  throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
83481
83681
  }
83482
83682
 
83483
- keys.push('[' + key.slice(segment.index) + ']');
83683
+ segments[segments.length] = '[' + key.slice(open) + ']';
83484
83684
  }
83485
83685
 
83486
- return keys;
83686
+ return segments;
83487
83687
  };
83488
83688
 
83489
83689
  var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
@@ -83556,6 +83756,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
83556
83756
  parseArrays: opts.parseArrays !== false,
83557
83757
  plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
83558
83758
  strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
83759
+ strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge,
83559
83760
  strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
83560
83761
  throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
83561
83762
  };
@@ -103974,9 +104175,8 @@ module.exports = function getSideChannelList() {
103974
104175
  }
103975
104176
  },
103976
104177
  'delete': function (key) {
103977
- var root = $o && $o.next;
103978
104178
  var deletedNode = listDelete($o, key);
103979
- if (deletedNode && root && root === deletedNode) {
104179
+ if (deletedNode && $o && !$o.next) {
103980
104180
  $o = void undefined;
103981
104181
  }
103982
104182
  return !!deletedNode;
@@ -103998,7 +104198,6 @@ module.exports = function getSideChannelList() {
103998
104198
  listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
103999
104199
  }
104000
104200
  };
104001
- // @ts-expect-error TODO: figure out why this is erroring
104002
104201
  return channel;
104003
104202
  };
104004
104203
 
@@ -104997,11 +105196,11 @@ exports.default = void 0;
104997
105196
  // 全局模块缓存对象
104998
105197
  const globalModuleCache = window._g_import_g_ || (window._g_import_g_ = {});
104999
105198
 
105000
- /**
105001
- * 异步导入模块并缓存
105002
- * @param {string} name - 模块名称
105003
- * @param {Function} importPromise - 返回 import promise 的函数
105004
- * @returns {Promise} 返回模块的 Promise
105199
+ /**
105200
+ * 异步导入模块并缓存
105201
+ * @param {string} name - 模块名称
105202
+ * @param {Function} importPromise - 返回 import promise 的函数
105203
+ * @returns {Promise} 返回模块的 Promise
105005
105204
  */
105006
105205
  async function importG(name, importPromise) {
105007
105206
  try {
@@ -105308,7 +105507,7 @@ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
105308
105507
  var hexTable = (function () {
105309
105508
  var array = [];
105310
105509
  for (var i = 0; i < 256; ++i) {
105311
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
105510
+ array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
105312
105511
  }
105313
105512
 
105314
105513
  return array;
@@ -105324,7 +105523,7 @@ var compactQueue = function compactQueue(queue) {
105324
105523
 
105325
105524
  for (var j = 0; j < obj.length; ++j) {
105326
105525
  if (typeof obj[j] !== 'undefined') {
105327
- compacted.push(obj[j]);
105526
+ compacted[compacted.length] = obj[j];
105328
105527
  }
105329
105528
  }
105330
105529
 
@@ -105352,13 +105551,19 @@ var merge = function merge(target, source, options) {
105352
105551
 
105353
105552
  if (typeof source !== 'object' && typeof source !== 'function') {
105354
105553
  if (isArray(target)) {
105355
- target.push(source);
105554
+ var nextIndex = target.length;
105555
+ if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
105556
+ return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
105557
+ }
105558
+ target[nextIndex] = source;
105356
105559
  } else if (target && typeof target === 'object') {
105357
105560
  if (isOverflow(target)) {
105358
105561
  // Add at next numeric index for overflow objects
105359
105562
  var newIndex = getMaxIndex(target) + 1;
105360
105563
  target[newIndex] = source;
105361
105564
  setMaxIndex(target, newIndex);
105565
+ } else if (options && options.strictMerge) {
105566
+ return [target, source];
105362
105567
  } else if (
105363
105568
  (options && (options.plainObjects || options.allowPrototypes))
105364
105569
  || !has.call(Object.prototype, source)
@@ -105385,7 +105590,11 @@ var merge = function merge(target, source, options) {
105385
105590
  }
105386
105591
  return markOverflow(result, getMaxIndex(source) + 1);
105387
105592
  }
105388
- return [target].concat(source);
105593
+ var combined = [target].concat(source);
105594
+ if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
105595
+ return markOverflow(arrayToObject(combined, options), combined.length - 1);
105596
+ }
105597
+ return combined;
105389
105598
  }
105390
105599
 
105391
105600
  var mergeTarget = target;
@@ -105400,7 +105609,7 @@ var merge = function merge(target, source, options) {
105400
105609
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
105401
105610
  target[i] = merge(targetItem, item, options);
105402
105611
  } else {
105403
- target.push(item);
105612
+ target[target.length] = item;
105404
105613
  }
105405
105614
  } else {
105406
105615
  target[i] = item;
@@ -105417,6 +105626,17 @@ var merge = function merge(target, source, options) {
105417
105626
  } else {
105418
105627
  acc[key] = value;
105419
105628
  }
105629
+
105630
+ if (isOverflow(source) && !isOverflow(acc)) {
105631
+ markOverflow(acc, getMaxIndex(source));
105632
+ }
105633
+ if (isOverflow(acc)) {
105634
+ var keyNum = parseInt(key, 10);
105635
+ if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
105636
+ setMaxIndex(acc, keyNum);
105637
+ }
105638
+ }
105639
+
105420
105640
  return acc;
105421
105641
  }, mergeTarget);
105422
105642
  };
@@ -105533,8 +105753,8 @@ var compact = function compact(value) {
105533
105753
  var key = keys[j];
105534
105754
  var val = obj[key];
105535
105755
  if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
105536
- queue.push({ obj: obj, prop: key });
105537
- refs.push(val);
105756
+ queue[queue.length] = { obj: obj, prop: key };
105757
+ refs[refs.length] = val;
105538
105758
  }
105539
105759
  }
105540
105760
  }
@@ -105576,7 +105796,7 @@ var maybeMap = function maybeMap(val, fn) {
105576
105796
  if (isArray(val)) {
105577
105797
  var mapped = [];
105578
105798
  for (var i = 0; i < val.length; i += 1) {
105579
- mapped.push(fn(val[i]));
105799
+ mapped[mapped.length] = fn(val[i]);
105580
105800
  }
105581
105801
  return mapped;
105582
105802
  }
@@ -105593,6 +105813,7 @@ module.exports = {
105593
105813
  isBuffer: isBuffer,
105594
105814
  isOverflow: isOverflow,
105595
105815
  isRegExp: isRegExp,
105816
+ markOverflow: markOverflow,
105596
105817
  maybeMap: maybeMap,
105597
105818
  merge: merge
105598
105819
  };