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.
- package/lib/gcs-ui-lib.common.js +406 -185
- package/lib/gcs-ui-lib.css +2 -3
- package/lib/gcs-ui-lib.umd.js +406 -185
- package/lib/gcs-ui-lib.umd.min.js +11 -11
- package/package.json +1 -1
- package/src/utils/exportPageSnapshot.js +725 -0
package/lib/gcs-ui-lib.umd.js
CHANGED
|
@@ -43893,70 +43893,106 @@ function isReactElement(value) {
|
|
|
43893
43893
|
}
|
|
43894
43894
|
|
|
43895
43895
|
function emptyTarget(val) {
|
|
43896
|
-
|
|
43896
|
+
return Array.isArray(val) ? [] : {}
|
|
43897
43897
|
}
|
|
43898
43898
|
|
|
43899
|
-
function
|
|
43900
|
-
|
|
43901
|
-
|
|
43899
|
+
function cloneUnlessOtherwiseSpecified(value, options) {
|
|
43900
|
+
return (options.clone !== false && options.isMergeableObject(value))
|
|
43901
|
+
? deepmerge(emptyTarget(value), value, options)
|
|
43902
|
+
: value
|
|
43902
43903
|
}
|
|
43903
43904
|
|
|
43904
|
-
function defaultArrayMerge(target, source,
|
|
43905
|
-
|
|
43906
|
-
|
|
43907
|
-
|
|
43908
|
-
destination[i] = cloneIfNecessary(e, optionsArgument);
|
|
43909
|
-
} else if (isMergeableObject(e)) {
|
|
43910
|
-
destination[i] = deepmerge(target[i], e, optionsArgument);
|
|
43911
|
-
} else if (target.indexOf(e) === -1) {
|
|
43912
|
-
destination.push(cloneIfNecessary(e, optionsArgument));
|
|
43913
|
-
}
|
|
43914
|
-
});
|
|
43915
|
-
return destination
|
|
43905
|
+
function defaultArrayMerge(target, source, options) {
|
|
43906
|
+
return target.concat(source).map(function(element) {
|
|
43907
|
+
return cloneUnlessOtherwiseSpecified(element, options)
|
|
43908
|
+
})
|
|
43916
43909
|
}
|
|
43917
43910
|
|
|
43918
|
-
function
|
|
43919
|
-
|
|
43920
|
-
|
|
43921
|
-
|
|
43922
|
-
|
|
43923
|
-
|
|
43924
|
-
}
|
|
43925
|
-
Object.keys(source).forEach(function(key) {
|
|
43926
|
-
if (!isMergeableObject(source[key]) || !target[key]) {
|
|
43927
|
-
destination[key] = cloneIfNecessary(source[key], optionsArgument);
|
|
43928
|
-
} else {
|
|
43929
|
-
destination[key] = deepmerge(target[key], source[key], optionsArgument);
|
|
43930
|
-
}
|
|
43931
|
-
});
|
|
43932
|
-
return destination
|
|
43911
|
+
function getMergeFunction(key, options) {
|
|
43912
|
+
if (!options.customMerge) {
|
|
43913
|
+
return deepmerge
|
|
43914
|
+
}
|
|
43915
|
+
var customMerge = options.customMerge(key);
|
|
43916
|
+
return typeof customMerge === 'function' ? customMerge : deepmerge
|
|
43933
43917
|
}
|
|
43934
43918
|
|
|
43935
|
-
function
|
|
43936
|
-
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
|
|
43940
|
-
|
|
43941
|
-
if (!sourceAndTargetTypesMatch) {
|
|
43942
|
-
return cloneIfNecessary(source, optionsArgument)
|
|
43943
|
-
} else if (sourceIsArray) {
|
|
43944
|
-
var arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
43945
|
-
return arrayMerge(target, source, optionsArgument)
|
|
43946
|
-
} else {
|
|
43947
|
-
return mergeObject(target, source, optionsArgument)
|
|
43948
|
-
}
|
|
43919
|
+
function getEnumerableOwnPropertySymbols(target) {
|
|
43920
|
+
return Object.getOwnPropertySymbols
|
|
43921
|
+
? Object.getOwnPropertySymbols(target).filter(function(symbol) {
|
|
43922
|
+
return Object.propertyIsEnumerable.call(target, symbol)
|
|
43923
|
+
})
|
|
43924
|
+
: []
|
|
43949
43925
|
}
|
|
43950
43926
|
|
|
43951
|
-
|
|
43952
|
-
|
|
43953
|
-
|
|
43954
|
-
}
|
|
43927
|
+
function getKeys(target) {
|
|
43928
|
+
return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
|
|
43929
|
+
}
|
|
43955
43930
|
|
|
43956
|
-
|
|
43957
|
-
|
|
43958
|
-
|
|
43959
|
-
|
|
43931
|
+
function propertyIsOnObject(object, property) {
|
|
43932
|
+
try {
|
|
43933
|
+
return property in object
|
|
43934
|
+
} catch(_) {
|
|
43935
|
+
return false
|
|
43936
|
+
}
|
|
43937
|
+
}
|
|
43938
|
+
|
|
43939
|
+
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
43940
|
+
function propertyIsUnsafe(target, key) {
|
|
43941
|
+
return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
|
|
43942
|
+
&& !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
|
|
43943
|
+
&& Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
|
|
43944
|
+
}
|
|
43945
|
+
|
|
43946
|
+
function mergeObject(target, source, options) {
|
|
43947
|
+
var destination = {};
|
|
43948
|
+
if (options.isMergeableObject(target)) {
|
|
43949
|
+
getKeys(target).forEach(function(key) {
|
|
43950
|
+
destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
|
|
43951
|
+
});
|
|
43952
|
+
}
|
|
43953
|
+
getKeys(source).forEach(function(key) {
|
|
43954
|
+
if (propertyIsUnsafe(target, key)) {
|
|
43955
|
+
return
|
|
43956
|
+
}
|
|
43957
|
+
|
|
43958
|
+
if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
|
|
43959
|
+
destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
|
|
43960
|
+
} else {
|
|
43961
|
+
destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
|
|
43962
|
+
}
|
|
43963
|
+
});
|
|
43964
|
+
return destination
|
|
43965
|
+
}
|
|
43966
|
+
|
|
43967
|
+
function deepmerge(target, source, options) {
|
|
43968
|
+
options = options || {};
|
|
43969
|
+
options.arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
43970
|
+
options.isMergeableObject = options.isMergeableObject || isMergeableObject;
|
|
43971
|
+
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
43972
|
+
// implementations can use it. The caller may not replace it.
|
|
43973
|
+
options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
|
|
43974
|
+
|
|
43975
|
+
var sourceIsArray = Array.isArray(source);
|
|
43976
|
+
var targetIsArray = Array.isArray(target);
|
|
43977
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
43978
|
+
|
|
43979
|
+
if (!sourceAndTargetTypesMatch) {
|
|
43980
|
+
return cloneUnlessOtherwiseSpecified(source, options)
|
|
43981
|
+
} else if (sourceIsArray) {
|
|
43982
|
+
return options.arrayMerge(target, source, options)
|
|
43983
|
+
} else {
|
|
43984
|
+
return mergeObject(target, source, options)
|
|
43985
|
+
}
|
|
43986
|
+
}
|
|
43987
|
+
|
|
43988
|
+
deepmerge.all = function deepmergeAll(array, options) {
|
|
43989
|
+
if (!Array.isArray(array)) {
|
|
43990
|
+
throw new Error('first argument should be an array')
|
|
43991
|
+
}
|
|
43992
|
+
|
|
43993
|
+
return array.reduce(function(prev, next) {
|
|
43994
|
+
return deepmerge(prev, next, options)
|
|
43995
|
+
}, {})
|
|
43960
43996
|
};
|
|
43961
43997
|
|
|
43962
43998
|
var deepmerge_1 = deepmerge;
|
|
@@ -43976,10 +44012,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
43976
44012
|
value: true
|
|
43977
44013
|
});
|
|
43978
44014
|
exports.default = void 0;
|
|
43979
|
-
/**
|
|
43980
|
-
*
|
|
43981
|
-
* @param {Blob} data 下载的文件流
|
|
43982
|
-
* @param {String} name 文件名称
|
|
44015
|
+
/**
|
|
44016
|
+
*
|
|
44017
|
+
* @param {Blob} data 下载的文件流
|
|
44018
|
+
* @param {String} name 文件名称
|
|
43983
44019
|
*/
|
|
43984
44020
|
|
|
43985
44021
|
const downloadBlob = (data, name) => {
|
|
@@ -45365,7 +45401,7 @@ var stringify = function stringify(
|
|
|
45365
45401
|
|
|
45366
45402
|
if (obj === null) {
|
|
45367
45403
|
if (strictNullHandling) {
|
|
45368
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
45404
|
+
return formatter(encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix);
|
|
45369
45405
|
}
|
|
45370
45406
|
|
|
45371
45407
|
obj = '';
|
|
@@ -45389,7 +45425,9 @@ var stringify = function stringify(
|
|
|
45389
45425
|
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
45390
45426
|
// we need to join elements in
|
|
45391
45427
|
if (encodeValuesOnly && encoder) {
|
|
45392
|
-
obj = utils.maybeMap(obj,
|
|
45428
|
+
obj = utils.maybeMap(obj, function (v) {
|
|
45429
|
+
return v == null ? v : encoder(v);
|
|
45430
|
+
});
|
|
45393
45431
|
}
|
|
45394
45432
|
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
45395
45433
|
} else if (isArray(filter)) {
|
|
@@ -45559,6 +45597,11 @@ module.exports = function (object, opts) {
|
|
|
45559
45597
|
var sideChannel = getSideChannel();
|
|
45560
45598
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
45561
45599
|
var key = objKeys[i];
|
|
45600
|
+
|
|
45601
|
+
if (typeof key === 'undefined' || key === null) {
|
|
45602
|
+
continue;
|
|
45603
|
+
}
|
|
45604
|
+
|
|
45562
45605
|
var value = obj[key];
|
|
45563
45606
|
|
|
45564
45607
|
if (options.skipNulls && value === null) {
|
|
@@ -45592,10 +45635,10 @@ module.exports = function (object, opts) {
|
|
|
45592
45635
|
if (options.charsetSentinel) {
|
|
45593
45636
|
if (options.charset === 'iso-8859-1') {
|
|
45594
45637
|
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
45595
|
-
prefix += 'utf8=%26%2310003%3B
|
|
45638
|
+
prefix += 'utf8=%26%2310003%3B' + options.delimiter;
|
|
45596
45639
|
} else {
|
|
45597
45640
|
// encodeURIComponent('✓')
|
|
45598
|
-
prefix += 'utf8=%E2%9C%93
|
|
45641
|
+
prefix += 'utf8=%E2%9C%93' + options.delimiter;
|
|
45599
45642
|
}
|
|
45600
45643
|
}
|
|
45601
45644
|
|
|
@@ -52356,7 +52399,7 @@ var _zhCN = __webpack_require__("f0d9");
|
|
|
52356
52399
|
var _zhCN2 = _interopRequireDefault(_zhCN);
|
|
52357
52400
|
var _vue = __webpack_require__("8bbf");
|
|
52358
52401
|
var _vue2 = _interopRequireDefault(_vue);
|
|
52359
|
-
var _deepmerge = __webpack_require__("
|
|
52402
|
+
var _deepmerge = __webpack_require__("9afc");
|
|
52360
52403
|
var _deepmerge2 = _interopRequireDefault(_deepmerge);
|
|
52361
52404
|
var _format = __webpack_require__("9d7e");
|
|
52362
52405
|
var _format2 = _interopRequireDefault(_format);
|
|
@@ -53847,7 +53890,7 @@ function selectBillFilter(vm) {
|
|
|
53847
53890
|
/***/ "4a0c":
|
|
53848
53891
|
/***/ (function(module) {
|
|
53849
53892
|
|
|
53850
|
-
module.exports = JSON.parse("{\"
|
|
53893
|
+
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\"}]}");
|
|
53851
53894
|
|
|
53852
53895
|
/***/ }),
|
|
53853
53896
|
|
|
@@ -58345,7 +58388,10 @@ module.exports = function getSideChannel() {
|
|
|
58345
58388
|
var channel = {
|
|
58346
58389
|
assert: function (key) {
|
|
58347
58390
|
if (!channel.has(key)) {
|
|
58348
|
-
|
|
58391
|
+
var keyDesc = key && Object(key) === key
|
|
58392
|
+
? 'the given object key'
|
|
58393
|
+
: inspect(key);
|
|
58394
|
+
throw new $TypeError('Side channel does not contain ' + keyDesc);
|
|
58349
58395
|
}
|
|
58350
58396
|
},
|
|
58351
58397
|
'delete': function (key) {
|
|
@@ -58365,7 +58411,7 @@ module.exports = function getSideChannel() {
|
|
|
58365
58411
|
$channelData.set(key, value);
|
|
58366
58412
|
}
|
|
58367
58413
|
};
|
|
58368
|
-
|
|
58414
|
+
|
|
58369
58415
|
return channel;
|
|
58370
58416
|
};
|
|
58371
58417
|
|
|
@@ -67739,7 +67785,7 @@ var ec = [
|
|
|
67739
67785
|
'invalid distance',
|
|
67740
67786
|
'stream finished',
|
|
67741
67787
|
'no stream handler',
|
|
67742
|
-
,
|
|
67788
|
+
, // determined by compression function
|
|
67743
67789
|
'no callback',
|
|
67744
67790
|
'invalid UTF-8 data',
|
|
67745
67791
|
'extra field too long',
|
|
@@ -68456,12 +68502,12 @@ var cbify = function (dat, opts, fns, init, id, cb) {
|
|
|
68456
68502
|
var astrm = function (strm) {
|
|
68457
68503
|
strm.ondata = function (dat, final) { return postMessage([dat, final], [dat.buffer]); };
|
|
68458
68504
|
return function (ev) {
|
|
68459
|
-
if (ev.data
|
|
68505
|
+
if (ev.data[0]) {
|
|
68460
68506
|
strm.push(ev.data[0], ev.data[1]);
|
|
68461
68507
|
postMessage([ev.data[0].length]);
|
|
68462
68508
|
}
|
|
68463
68509
|
else
|
|
68464
|
-
strm.flush();
|
|
68510
|
+
strm.flush(ev.data[1]);
|
|
68465
68511
|
};
|
|
68466
68512
|
};
|
|
68467
68513
|
// async stream attach
|
|
@@ -68491,17 +68537,19 @@ var astrmify = function (fns, strm, opts, init, id, flush, ext) {
|
|
|
68491
68537
|
if (t)
|
|
68492
68538
|
strm.ondata(err(4, 0, 1), null, !!f);
|
|
68493
68539
|
strm.queuedSize += d.length;
|
|
68494
|
-
|
|
68540
|
+
// can fail for cross-realm Uint8Array, but ok - only a small performance penalty
|
|
68541
|
+
w.postMessage([d, t = f], d.buffer instanceof ArrayBuffer ? [d.buffer] : []);
|
|
68495
68542
|
};
|
|
68496
68543
|
strm.terminate = function () { w.terminate(); };
|
|
68497
68544
|
if (flush) {
|
|
68498
|
-
strm.flush = function () { w.postMessage([]); };
|
|
68545
|
+
strm.flush = function (sync) { w.postMessage([0, sync]); };
|
|
68499
68546
|
}
|
|
68500
68547
|
};
|
|
68501
68548
|
// read 2 bytes
|
|
68502
68549
|
var b2 = function (d, b) { return d[b] | (d[b + 1] << 8); };
|
|
68503
68550
|
// read 4 bytes
|
|
68504
68551
|
var b4 = function (d, b) { return (d[b] | (d[b + 1] << 8) | (d[b + 2] << 16) | (d[b + 3] << 24)) >>> 0; };
|
|
68552
|
+
// read 8 bytes
|
|
68505
68553
|
var b8 = function (d, b) { return b4(d, b) + (b4(d, b + 4) * 4294967296); };
|
|
68506
68554
|
// write bytes
|
|
68507
68555
|
var wbytes = function (d, b, v) {
|
|
@@ -68622,18 +68670,37 @@ var Deflate = /*#__PURE__*/ (function () {
|
|
|
68622
68670
|
this.p(this.b, final || false);
|
|
68623
68671
|
this.s.w = this.s.i, this.s.i -= 2;
|
|
68624
68672
|
}
|
|
68673
|
+
if (final) {
|
|
68674
|
+
// cleanup unneeded buffers/state to reduce memory usage
|
|
68675
|
+
this.s = this.o = {};
|
|
68676
|
+
this.b = et;
|
|
68677
|
+
}
|
|
68625
68678
|
};
|
|
68626
68679
|
/**
|
|
68627
68680
|
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
68628
68681
|
* deflated output for small inputs.
|
|
68682
|
+
* @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
|
|
68683
|
+
* extra bytes, but guarantees all pushed data is immediately
|
|
68684
|
+
* decompressible. A separate DEFLATE stream may be concatenated
|
|
68685
|
+
* with the current output after a sync flush.
|
|
68629
68686
|
*/
|
|
68630
|
-
Deflate.prototype.flush = function () {
|
|
68687
|
+
Deflate.prototype.flush = function (sync) {
|
|
68631
68688
|
if (!this.ondata)
|
|
68632
68689
|
err(5);
|
|
68633
68690
|
if (this.s.l)
|
|
68634
68691
|
err(4);
|
|
68635
68692
|
this.p(this.b, false);
|
|
68636
68693
|
this.s.w = this.s.i, this.s.i -= 2;
|
|
68694
|
+
// could technically skip writing the type-0 block for (this.s.r & 7) == 0,
|
|
68695
|
+
// but the deterministic trailer (00 00 FF FF) is useful in some situations
|
|
68696
|
+
if (sync) {
|
|
68697
|
+
var c = new u8(6);
|
|
68698
|
+
c[0] = this.s.r >> 3;
|
|
68699
|
+
// write empty, non-final type-0 block
|
|
68700
|
+
var ep = wfblk(c, this.s.r, et);
|
|
68701
|
+
this.s.r = 0;
|
|
68702
|
+
this.ondata(c.subarray(0, ep >> 3), false);
|
|
68703
|
+
}
|
|
68637
68704
|
};
|
|
68638
68705
|
return Deflate;
|
|
68639
68706
|
}());
|
|
@@ -68744,12 +68811,6 @@ function inflate(data, opts, cb) {
|
|
|
68744
68811
|
bInflt
|
|
68745
68812
|
], function (ev) { return pbf(inflateSync(ev.data[0], gopt(ev.data[1]))); }, 1, cb);
|
|
68746
68813
|
}
|
|
68747
|
-
/**
|
|
68748
|
-
* Expands DEFLATE data with no wrapper
|
|
68749
|
-
* @param data The data to decompress
|
|
68750
|
-
* @param opts The decompression options
|
|
68751
|
-
* @returns The decompressed version of the data
|
|
68752
|
-
*/
|
|
68753
68814
|
function inflateSync(data, opts) {
|
|
68754
68815
|
return inflt(data, { i: 2 }, opts && opts.out, opts && opts.dictionary);
|
|
68755
68816
|
}
|
|
@@ -68785,9 +68846,12 @@ var Gzip = /*#__PURE__*/ (function () {
|
|
|
68785
68846
|
/**
|
|
68786
68847
|
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
68787
68848
|
* GZIPped output for small inputs.
|
|
68849
|
+
* @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
|
|
68850
|
+
* extra bytes, but guarantees all pushed data is immediately
|
|
68851
|
+
* decompressible.
|
|
68788
68852
|
*/
|
|
68789
|
-
Gzip.prototype.flush = function () {
|
|
68790
|
-
Deflate.prototype.flush.call(this);
|
|
68853
|
+
Gzip.prototype.flush = function (sync) {
|
|
68854
|
+
Deflate.prototype.flush.call(this, sync);
|
|
68791
68855
|
};
|
|
68792
68856
|
return Gzip;
|
|
68793
68857
|
}());
|
|
@@ -68865,14 +68929,17 @@ var Gunzip = /*#__PURE__*/ (function () {
|
|
|
68865
68929
|
}
|
|
68866
68930
|
// necessary to prevent TS from using the closure value
|
|
68867
68931
|
// This allows for workerization to function correctly
|
|
68868
|
-
Inflate.prototype.c.call(this,
|
|
68932
|
+
Inflate.prototype.c.call(this, 0);
|
|
68869
68933
|
// process concatenated GZIP
|
|
68870
|
-
if (this.s.f && !this.s.l
|
|
68934
|
+
if (this.s.f && !this.s.l) {
|
|
68871
68935
|
this.v = shft(this.s.p) + 9;
|
|
68872
68936
|
this.s = { i: 0 };
|
|
68873
68937
|
this.o = new u8(0);
|
|
68874
68938
|
this.push(new u8(0), final);
|
|
68875
68939
|
}
|
|
68940
|
+
else if (final) {
|
|
68941
|
+
Inflate.prototype.c.call(this, final);
|
|
68942
|
+
}
|
|
68876
68943
|
};
|
|
68877
68944
|
return Gunzip;
|
|
68878
68945
|
}());
|
|
@@ -68907,12 +68974,6 @@ function gunzip(data, opts, cb) {
|
|
|
68907
68974
|
function () { return [gunzipSync]; }
|
|
68908
68975
|
], function (ev) { return pbf(gunzipSync(ev.data[0], ev.data[1])); }, 3, cb);
|
|
68909
68976
|
}
|
|
68910
|
-
/**
|
|
68911
|
-
* Expands GZIP data
|
|
68912
|
-
* @param data The data to decompress
|
|
68913
|
-
* @param opts The decompression options
|
|
68914
|
-
* @returns The decompressed version of the data
|
|
68915
|
-
*/
|
|
68916
68977
|
function gunzipSync(data, opts) {
|
|
68917
68978
|
var st = gzs(data);
|
|
68918
68979
|
if (st + 8 > data.length)
|
|
@@ -68948,9 +69009,12 @@ var Zlib = /*#__PURE__*/ (function () {
|
|
|
68948
69009
|
/**
|
|
68949
69010
|
* Flushes buffered uncompressed data. Useful to immediately retrieve the
|
|
68950
69011
|
* zlibbed output for small inputs.
|
|
69012
|
+
* @param sync Whether to flush to a byte boundary. A sync flush takes 4-5
|
|
69013
|
+
* extra bytes, but guarantees all pushed data is immediately
|
|
69014
|
+
* decompressible.
|
|
68951
69015
|
*/
|
|
68952
|
-
Zlib.prototype.flush = function () {
|
|
68953
|
-
Deflate.prototype.flush.call(this);
|
|
69016
|
+
Zlib.prototype.flush = function (sync) {
|
|
69017
|
+
Deflate.prototype.flush.call(this, sync);
|
|
68954
69018
|
};
|
|
68955
69019
|
return Zlib;
|
|
68956
69020
|
}());
|
|
@@ -69057,12 +69121,6 @@ function unzlib(data, opts, cb) {
|
|
|
69057
69121
|
function () { return [unzlibSync]; }
|
|
69058
69122
|
], function (ev) { return pbf(unzlibSync(ev.data[0], gopt(ev.data[1]))); }, 5, cb);
|
|
69059
69123
|
}
|
|
69060
|
-
/**
|
|
69061
|
-
* Expands Zlib data
|
|
69062
|
-
* @param data The data to decompress
|
|
69063
|
-
* @param opts The decompression options
|
|
69064
|
-
* @returns The decompressed version of the data
|
|
69065
|
-
*/
|
|
69066
69124
|
function unzlibSync(data, opts) {
|
|
69067
69125
|
return inflt(data.subarray(zls(data, opts && opts.dictionary), -4), { i: 2 }, opts && opts.out, opts && opts.dictionary);
|
|
69068
69126
|
}
|
|
@@ -69183,7 +69241,7 @@ var fltn = function (d, p, t, o) {
|
|
|
69183
69241
|
var val = d[k], n = p + k, op = o;
|
|
69184
69242
|
if (Array.isArray(val))
|
|
69185
69243
|
op = mrg(o, val[1]), val = val[0];
|
|
69186
|
-
if (val
|
|
69244
|
+
if (ArrayBuffer.isView(val))
|
|
69187
69245
|
t[n] = [val, op];
|
|
69188
69246
|
else {
|
|
69189
69247
|
t[n += '/'] = [new u8(0), op];
|
|
@@ -69368,15 +69426,30 @@ var dbf = function (l) { return l == 1 ? 3 : l < 6 ? 2 : l == 9 ? 1 : 0; };
|
|
|
69368
69426
|
var slzh = function (d, b) { return b + 30 + b2(d, b + 26) + b2(d, b + 28); };
|
|
69369
69427
|
// read zip header
|
|
69370
69428
|
var zh = function (d, b, z) {
|
|
69371
|
-
var fnl = b2(d, b + 28), fn = strFromU8(d.subarray(b + 46, b + 46 + fnl), !(b2(d, b + 8) & 2048)), es = b + 46 + fnl
|
|
69372
|
-
var _a =
|
|
69373
|
-
return [b2(d, b + 10), sc, su, fn, es +
|
|
69374
|
-
};
|
|
69375
|
-
// read zip64
|
|
69376
|
-
var
|
|
69377
|
-
|
|
69378
|
-
|
|
69379
|
-
|
|
69429
|
+
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;
|
|
69430
|
+
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];
|
|
69431
|
+
return [b2(d, b + 10), sc, su, fn, es + efl + b2(d, b + 32), off];
|
|
69432
|
+
};
|
|
69433
|
+
// read zip64 header sizes
|
|
69434
|
+
var z64hs = function (d, b, l, z, sc, su, off) {
|
|
69435
|
+
var nsc = sc == 4294967295, nsu = su == 4294967295, noff = off == 4294967295, e = b + l;
|
|
69436
|
+
var nf = nsc + nsu + noff;
|
|
69437
|
+
if (z && nf) {
|
|
69438
|
+
for (; b + 4 < e; b += 4 + b2(d, b + 2)) {
|
|
69439
|
+
if (b2(d, b) == 1) {
|
|
69440
|
+
return [
|
|
69441
|
+
nsc ? b8(d, b + 4 + 8 * nsu) : sc,
|
|
69442
|
+
nsu ? b8(d, b + 4) : su,
|
|
69443
|
+
noff ? b8(d, b + 4 + 8 * (nsu + nsc)) : off,
|
|
69444
|
+
1
|
|
69445
|
+
];
|
|
69446
|
+
}
|
|
69447
|
+
}
|
|
69448
|
+
// z == 2 for unknown whether or not zip64
|
|
69449
|
+
if (z < 2)
|
|
69450
|
+
err(13);
|
|
69451
|
+
}
|
|
69452
|
+
return [sc, su, off, 0];
|
|
69380
69453
|
};
|
|
69381
69454
|
// extra field length
|
|
69382
69455
|
var exfl = function (ex) {
|
|
@@ -69478,6 +69551,8 @@ var ZipPassThrough = /*#__PURE__*/ (function () {
|
|
|
69478
69551
|
this.size += chunk.length;
|
|
69479
69552
|
if (final)
|
|
69480
69553
|
this.crc = this.c.d();
|
|
69554
|
+
// we shouldn't really do this cast, but properly handling ArrayBufferLike
|
|
69555
|
+
// makes the API unergonomic with Buffer
|
|
69481
69556
|
this.process(chunk, final || false);
|
|
69482
69557
|
};
|
|
69483
69558
|
return ZipPassThrough;
|
|
@@ -69857,8 +69932,9 @@ function zipSync(data, opts) {
|
|
|
69857
69932
|
var UnzipPassThrough = /*#__PURE__*/ (function () {
|
|
69858
69933
|
function UnzipPassThrough() {
|
|
69859
69934
|
}
|
|
69860
|
-
UnzipPassThrough.prototype.push = function (
|
|
69861
|
-
|
|
69935
|
+
UnzipPassThrough.prototype.push = function (chunk, final) {
|
|
69936
|
+
// same as ZipPassThrough: cast to retain Buffer ergonomics
|
|
69937
|
+
this.ondata(null, chunk, final);
|
|
69862
69938
|
};
|
|
69863
69939
|
UnzipPassThrough.compression = 0;
|
|
69864
69940
|
return UnzipPassThrough;
|
|
@@ -69878,9 +69954,9 @@ var UnzipInflate = /*#__PURE__*/ (function () {
|
|
|
69878
69954
|
_this.ondata(null, dat, final);
|
|
69879
69955
|
});
|
|
69880
69956
|
}
|
|
69881
|
-
UnzipInflate.prototype.push = function (
|
|
69957
|
+
UnzipInflate.prototype.push = function (chunk, final) {
|
|
69882
69958
|
try {
|
|
69883
|
-
this.i.push(
|
|
69959
|
+
this.i.push(chunk, final);
|
|
69884
69960
|
}
|
|
69885
69961
|
catch (e) {
|
|
69886
69962
|
this.ondata(e, null, final);
|
|
@@ -69911,10 +69987,10 @@ var AsyncUnzipInflate = /*#__PURE__*/ (function () {
|
|
|
69911
69987
|
this.terminate = this.i.terminate;
|
|
69912
69988
|
}
|
|
69913
69989
|
}
|
|
69914
|
-
AsyncUnzipInflate.prototype.push = function (
|
|
69990
|
+
AsyncUnzipInflate.prototype.push = function (chunk, final) {
|
|
69915
69991
|
if (this.i.terminate)
|
|
69916
|
-
|
|
69917
|
-
this.i.push(
|
|
69992
|
+
chunk = slc(chunk, 0);
|
|
69993
|
+
this.i.push(chunk, final);
|
|
69918
69994
|
};
|
|
69919
69995
|
AsyncUnzipInflate.compression = 8;
|
|
69920
69996
|
return AsyncUnzipInflate;
|
|
@@ -69971,7 +70047,6 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
69971
70047
|
}
|
|
69972
70048
|
var l = buf.length, oc = this.c, add = oc && this.d;
|
|
69973
70049
|
var _loop_2 = function () {
|
|
69974
|
-
var _a;
|
|
69975
70050
|
var sig = b4(buf, i);
|
|
69976
70051
|
if (sig == 0x4034B50) {
|
|
69977
70052
|
f = 1, is = i;
|
|
@@ -69982,13 +70057,11 @@ var Unzip = /*#__PURE__*/ (function () {
|
|
|
69982
70057
|
var chks_3 = [];
|
|
69983
70058
|
this_1.k.unshift(chks_3);
|
|
69984
70059
|
f = 2;
|
|
69985
|
-
var
|
|
70060
|
+
var lsc = b4(buf, i + 18), lsu = b4(buf, i + 22);
|
|
69986
70061
|
var fn_1 = strFromU8(buf.subarray(i + 30, i += 30 + fnl), !u);
|
|
69987
|
-
|
|
69988
|
-
|
|
69989
|
-
|
|
69990
|
-
else if (dd)
|
|
69991
|
-
sc_1 = -1;
|
|
70062
|
+
var _a = z64hs(buf, i, es, 2, lsc, lsu, 0), sc_1 = _a[0], su_1 = _a[1], z64 = _a[3];
|
|
70063
|
+
if (dd)
|
|
70064
|
+
sc_1 = -1 - z64;
|
|
69992
70065
|
i += es;
|
|
69993
70066
|
this_1.c = sc_1;
|
|
69994
70067
|
var d_1;
|
|
@@ -70101,7 +70174,7 @@ function unzip(data, opts, cb) {
|
|
|
70101
70174
|
if (lft) {
|
|
70102
70175
|
var c = lft;
|
|
70103
70176
|
var o = b4(data, e + 16);
|
|
70104
|
-
var z =
|
|
70177
|
+
var z = b4(data, e - 20) == 0x7064B50;
|
|
70105
70178
|
if (z) {
|
|
70106
70179
|
var ze = b4(data, e - 12);
|
|
70107
70180
|
z = b4(data, ze) == 0x6064B50;
|
|
@@ -70181,7 +70254,7 @@ function unzipSync(data, opts) {
|
|
|
70181
70254
|
if (!c)
|
|
70182
70255
|
return {};
|
|
70183
70256
|
var o = b4(data, e + 16);
|
|
70184
|
-
var z =
|
|
70257
|
+
var z = b4(data, e - 20) == 0x7064B50;
|
|
70185
70258
|
if (z) {
|
|
70186
70259
|
var ze = b4(data, e - 12);
|
|
70187
70260
|
z = b4(data, ze) == 0x6064B50;
|
|
@@ -75083,26 +75156,24 @@ var _default = exports.default = {
|
|
|
75083
75156
|
/***/ "852e":
|
|
75084
75157
|
/***/ (function(module, exports, __webpack_require__) {
|
|
75085
75158
|
|
|
75086
|
-
/*! js-cookie v3.0.
|
|
75159
|
+
/*! js-cookie v3.0.8 | MIT */
|
|
75087
75160
|
;
|
|
75088
75161
|
(function (global, factory) {
|
|
75089
75162
|
true ? module.exports = factory() :
|
|
75090
75163
|
undefined;
|
|
75091
75164
|
})(this, (function () { 'use strict';
|
|
75092
75165
|
|
|
75093
|
-
/* eslint-disable no-var */
|
|
75094
75166
|
function assign (target) {
|
|
75095
75167
|
for (var i = 1; i < arguments.length; i++) {
|
|
75096
75168
|
var source = arguments[i];
|
|
75097
75169
|
for (var key in source) {
|
|
75170
|
+
if (key === '__proto__') continue
|
|
75098
75171
|
target[key] = source[key];
|
|
75099
75172
|
}
|
|
75100
75173
|
}
|
|
75101
75174
|
return target
|
|
75102
75175
|
}
|
|
75103
|
-
/* eslint-enable no-var */
|
|
75104
75176
|
|
|
75105
|
-
/* eslint-disable no-var */
|
|
75106
75177
|
var defaultConverter = {
|
|
75107
75178
|
read: function (value) {
|
|
75108
75179
|
if (value[0] === '"') {
|
|
@@ -75117,12 +75188,9 @@ var _default = exports.default = {
|
|
|
75117
75188
|
)
|
|
75118
75189
|
}
|
|
75119
75190
|
};
|
|
75120
|
-
/* eslint-enable no-var */
|
|
75121
75191
|
|
|
75122
|
-
|
|
75123
|
-
|
|
75124
|
-
function init (converter, defaultAttributes) {
|
|
75125
|
-
function set (name, value, attributes) {
|
|
75192
|
+
function init(converter, defaultAttributes) {
|
|
75193
|
+
function set(name, value, attributes) {
|
|
75126
75194
|
if (typeof document === 'undefined') {
|
|
75127
75195
|
return
|
|
75128
75196
|
}
|
|
@@ -75166,7 +75234,7 @@ var _default = exports.default = {
|
|
|
75166
75234
|
name + '=' + converter.write(value, name) + stringifiedAttributes)
|
|
75167
75235
|
}
|
|
75168
75236
|
|
|
75169
|
-
function get
|
|
75237
|
+
function get(name) {
|
|
75170
75238
|
if (typeof document === 'undefined' || (arguments.length && !name)) {
|
|
75171
75239
|
return
|
|
75172
75240
|
}
|
|
@@ -75181,12 +75249,13 @@ var _default = exports.default = {
|
|
|
75181
75249
|
|
|
75182
75250
|
try {
|
|
75183
75251
|
var found = decodeURIComponent(parts[0]);
|
|
75184
|
-
jar[found] = converter.read(value, found);
|
|
75185
|
-
|
|
75252
|
+
if (!(found in jar)) jar[found] = converter.read(value, found);
|
|
75186
75253
|
if (name === found) {
|
|
75187
75254
|
break
|
|
75188
75255
|
}
|
|
75189
|
-
} catch (
|
|
75256
|
+
} catch (_e) {
|
|
75257
|
+
// Do nothing...
|
|
75258
|
+
}
|
|
75190
75259
|
}
|
|
75191
75260
|
|
|
75192
75261
|
return name ? jar[name] : jar
|
|
@@ -75194,8 +75263,8 @@ var _default = exports.default = {
|
|
|
75194
75263
|
|
|
75195
75264
|
return Object.create(
|
|
75196
75265
|
{
|
|
75197
|
-
set,
|
|
75198
|
-
get,
|
|
75266
|
+
set: set,
|
|
75267
|
+
get: get,
|
|
75199
75268
|
remove: function (name, attributes) {
|
|
75200
75269
|
set(
|
|
75201
75270
|
name,
|
|
@@ -75220,7 +75289,6 @@ var _default = exports.default = {
|
|
|
75220
75289
|
}
|
|
75221
75290
|
|
|
75222
75291
|
var api = init(defaultConverter, { path: '/' });
|
|
75223
|
-
/* eslint-enable no-var */
|
|
75224
75292
|
|
|
75225
75293
|
return api;
|
|
75226
75294
|
|
|
@@ -79767,7 +79835,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
79767
79835
|
exports.use = exports.t = exports.i18n = exports.default = void 0;
|
|
79768
79836
|
var _zhCN = _interopRequireDefault(__webpack_require__("bd2b"));
|
|
79769
79837
|
var _vue = _interopRequireDefault(__webpack_require__("8bbf"));
|
|
79770
|
-
var _deepmerge = _interopRequireDefault(__webpack_require__("
|
|
79838
|
+
var _deepmerge = _interopRequireDefault(__webpack_require__("9afc"));
|
|
79771
79839
|
var _format = _interopRequireDefault(__webpack_require__("7371"));
|
|
79772
79840
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
79773
79841
|
const format = (0, _format.default)(_vue.default);
|
|
@@ -82368,6 +82436,96 @@ var _default = exports.default = {
|
|
|
82368
82436
|
|
|
82369
82437
|
/***/ }),
|
|
82370
82438
|
|
|
82439
|
+
/***/ "9afc":
|
|
82440
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
82441
|
+
|
|
82442
|
+
"use strict";
|
|
82443
|
+
|
|
82444
|
+
|
|
82445
|
+
var isMergeableObject = function isMergeableObject(value) {
|
|
82446
|
+
return isNonNullObject(value) && !isSpecial(value);
|
|
82447
|
+
};
|
|
82448
|
+
function isNonNullObject(value) {
|
|
82449
|
+
return !!value && typeof value === 'object';
|
|
82450
|
+
}
|
|
82451
|
+
function isSpecial(value) {
|
|
82452
|
+
var stringValue = Object.prototype.toString.call(value);
|
|
82453
|
+
return stringValue === '[object RegExp]' || stringValue === '[object Date]' || isReactElement(value);
|
|
82454
|
+
}
|
|
82455
|
+
|
|
82456
|
+
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
82457
|
+
var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
82458
|
+
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
82459
|
+
function isReactElement(value) {
|
|
82460
|
+
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
82461
|
+
}
|
|
82462
|
+
function emptyTarget(val) {
|
|
82463
|
+
return Array.isArray(val) ? [] : {};
|
|
82464
|
+
}
|
|
82465
|
+
function cloneIfNecessary(value, optionsArgument) {
|
|
82466
|
+
var clone = optionsArgument && optionsArgument.clone === true;
|
|
82467
|
+
return clone && isMergeableObject(value) ? deepmerge(emptyTarget(value), value, optionsArgument) : value;
|
|
82468
|
+
}
|
|
82469
|
+
function defaultArrayMerge(target, source, optionsArgument) {
|
|
82470
|
+
var destination = target.slice();
|
|
82471
|
+
source.forEach(function (e, i) {
|
|
82472
|
+
if (typeof destination[i] === 'undefined') {
|
|
82473
|
+
destination[i] = cloneIfNecessary(e, optionsArgument);
|
|
82474
|
+
} else if (isMergeableObject(e)) {
|
|
82475
|
+
destination[i] = deepmerge(target[i], e, optionsArgument);
|
|
82476
|
+
} else if (target.indexOf(e) === -1) {
|
|
82477
|
+
destination.push(cloneIfNecessary(e, optionsArgument));
|
|
82478
|
+
}
|
|
82479
|
+
});
|
|
82480
|
+
return destination;
|
|
82481
|
+
}
|
|
82482
|
+
function mergeObject(target, source, optionsArgument) {
|
|
82483
|
+
var destination = {};
|
|
82484
|
+
if (isMergeableObject(target)) {
|
|
82485
|
+
Object.keys(target).forEach(function (key) {
|
|
82486
|
+
destination[key] = cloneIfNecessary(target[key], optionsArgument);
|
|
82487
|
+
});
|
|
82488
|
+
}
|
|
82489
|
+
Object.keys(source).forEach(function (key) {
|
|
82490
|
+
if (!isMergeableObject(source[key]) || !target[key]) {
|
|
82491
|
+
destination[key] = cloneIfNecessary(source[key], optionsArgument);
|
|
82492
|
+
} else {
|
|
82493
|
+
destination[key] = deepmerge(target[key], source[key], optionsArgument);
|
|
82494
|
+
}
|
|
82495
|
+
});
|
|
82496
|
+
return destination;
|
|
82497
|
+
}
|
|
82498
|
+
function deepmerge(target, source, optionsArgument) {
|
|
82499
|
+
var sourceIsArray = Array.isArray(source);
|
|
82500
|
+
var targetIsArray = Array.isArray(target);
|
|
82501
|
+
var options = optionsArgument || {
|
|
82502
|
+
arrayMerge: defaultArrayMerge
|
|
82503
|
+
};
|
|
82504
|
+
var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
|
|
82505
|
+
if (!sourceAndTargetTypesMatch) {
|
|
82506
|
+
return cloneIfNecessary(source, optionsArgument);
|
|
82507
|
+
} else if (sourceIsArray) {
|
|
82508
|
+
var arrayMerge = options.arrayMerge || defaultArrayMerge;
|
|
82509
|
+
return arrayMerge(target, source, optionsArgument);
|
|
82510
|
+
} else {
|
|
82511
|
+
return mergeObject(target, source, optionsArgument);
|
|
82512
|
+
}
|
|
82513
|
+
}
|
|
82514
|
+
deepmerge.all = function deepmergeAll(array, optionsArgument) {
|
|
82515
|
+
if (!Array.isArray(array) || array.length < 2) {
|
|
82516
|
+
throw new Error('first argument should be an array with at least two elements');
|
|
82517
|
+
}
|
|
82518
|
+
|
|
82519
|
+
// we are sure there are at least 2 values, so it is safe to have no initial value
|
|
82520
|
+
return array.reduce(function (prev, next) {
|
|
82521
|
+
return deepmerge(prev, next, optionsArgument);
|
|
82522
|
+
});
|
|
82523
|
+
};
|
|
82524
|
+
var deepmerge_1 = deepmerge;
|
|
82525
|
+
module.exports = deepmerge_1;
|
|
82526
|
+
|
|
82527
|
+
/***/ }),
|
|
82528
|
+
|
|
82371
82529
|
/***/ "9bbb":
|
|
82372
82530
|
/***/ (function(module, exports, __webpack_require__) {
|
|
82373
82531
|
|
|
@@ -83262,6 +83420,7 @@ var defaults = {
|
|
|
83262
83420
|
parseArrays: true,
|
|
83263
83421
|
plainObjects: false,
|
|
83264
83422
|
strictDepth: false,
|
|
83423
|
+
strictMerge: true,
|
|
83265
83424
|
strictNullHandling: false,
|
|
83266
83425
|
throwOnLimitExceeded: false
|
|
83267
83426
|
};
|
|
@@ -83300,13 +83459,13 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
83300
83459
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
83301
83460
|
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
83302
83461
|
|
|
83303
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
83462
|
+
var limit = options.parameterLimit === Infinity ? void undefined : options.parameterLimit;
|
|
83304
83463
|
var parts = cleanStr.split(
|
|
83305
83464
|
options.delimiter,
|
|
83306
|
-
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
83465
|
+
options.throwOnLimitExceeded && typeof limit !== 'undefined' ? limit + 1 : limit
|
|
83307
83466
|
);
|
|
83308
83467
|
|
|
83309
|
-
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
83468
|
+
if (options.throwOnLimitExceeded && typeof limit !== 'undefined' && parts.length > limit) {
|
|
83310
83469
|
throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
|
|
83311
83470
|
}
|
|
83312
83471
|
|
|
@@ -83367,9 +83526,16 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
83367
83526
|
val = isArray(val) ? [val] : val;
|
|
83368
83527
|
}
|
|
83369
83528
|
|
|
83529
|
+
if (options.comma && isArray(val) && val.length > options.arrayLimit) {
|
|
83530
|
+
if (options.throwOnLimitExceeded) {
|
|
83531
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
83532
|
+
}
|
|
83533
|
+
val = utils.combine([], val, options.arrayLimit, options.plainObjects);
|
|
83534
|
+
}
|
|
83535
|
+
|
|
83370
83536
|
if (key !== null) {
|
|
83371
83537
|
var existing = has.call(obj, key);
|
|
83372
|
-
if (existing && options.duplicates === 'combine') {
|
|
83538
|
+
if (existing && (options.duplicates === 'combine' || part.indexOf('[]=') > -1)) {
|
|
83373
83539
|
obj[key] = utils.combine(
|
|
83374
83540
|
obj[key],
|
|
83375
83541
|
val,
|
|
@@ -83417,17 +83583,21 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
83417
83583
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
83418
83584
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
83419
83585
|
var index = parseInt(decodedRoot, 10);
|
|
83420
|
-
|
|
83421
|
-
obj = { 0: leaf };
|
|
83422
|
-
} else if (
|
|
83423
|
-
!isNaN(index)
|
|
83586
|
+
var isValidArrayIndex = !isNaN(index)
|
|
83424
83587
|
&& root !== decodedRoot
|
|
83425
83588
|
&& String(index) === decodedRoot
|
|
83426
83589
|
&& index >= 0
|
|
83427
|
-
&&
|
|
83428
|
-
) {
|
|
83590
|
+
&& options.parseArrays;
|
|
83591
|
+
if (!options.parseArrays && decodedRoot === '') {
|
|
83592
|
+
obj = { 0: leaf };
|
|
83593
|
+
} else if (isValidArrayIndex && index < options.arrayLimit) {
|
|
83429
83594
|
obj = [];
|
|
83430
83595
|
obj[index] = leaf;
|
|
83596
|
+
} else if (isValidArrayIndex && options.throwOnLimitExceeded) {
|
|
83597
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
83598
|
+
} else if (isValidArrayIndex) {
|
|
83599
|
+
obj[index] = leaf;
|
|
83600
|
+
utils.markOverflow(obj, index);
|
|
83431
83601
|
} else if (decodedRoot !== '__proto__') {
|
|
83432
83602
|
obj[decodedRoot] = leaf;
|
|
83433
83603
|
}
|
|
@@ -83439,9 +83609,12 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
83439
83609
|
return leaf;
|
|
83440
83610
|
};
|
|
83441
83611
|
|
|
83442
|
-
|
|
83443
|
-
|
|
83612
|
+
// Split a key like "a[b][c[]]" into ['a', '[b]', '[c[]]'] while preserving
|
|
83613
|
+
// qs parse semantics for depth/prototype guards.
|
|
83614
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments(originalKey, options) {
|
|
83615
|
+
var key = options.allowDots ? originalKey.replace(/\.([^.[]+)/g, '[$1]') : originalKey;
|
|
83444
83616
|
|
|
83617
|
+
// depth <= 0 keeps the whole key as one segment
|
|
83445
83618
|
if (options.depth <= 0) {
|
|
83446
83619
|
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
83447
83620
|
if (!options.allowPrototypes) {
|
|
@@ -83452,14 +83625,11 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
|
83452
83625
|
return [key];
|
|
83453
83626
|
}
|
|
83454
83627
|
|
|
83455
|
-
var
|
|
83456
|
-
var child = /(\[[^[\]]*])/g;
|
|
83457
|
-
|
|
83458
|
-
var segment = brackets.exec(key);
|
|
83459
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
83460
|
-
|
|
83461
|
-
var keys = [];
|
|
83628
|
+
var segments = [];
|
|
83462
83629
|
|
|
83630
|
+
// parent before the first '[' (may be empty if key starts with '[')
|
|
83631
|
+
var first = key.indexOf('[');
|
|
83632
|
+
var parent = first >= 0 ? key.slice(0, first) : key;
|
|
83463
83633
|
if (parent) {
|
|
83464
83634
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
83465
83635
|
if (!options.allowPrototypes) {
|
|
@@ -83467,32 +83637,62 @@ var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
|
83467
83637
|
}
|
|
83468
83638
|
}
|
|
83469
83639
|
|
|
83470
|
-
|
|
83640
|
+
segments[segments.length] = parent;
|
|
83471
83641
|
}
|
|
83472
83642
|
|
|
83473
|
-
var
|
|
83474
|
-
|
|
83475
|
-
|
|
83643
|
+
var n = key.length;
|
|
83644
|
+
var open = first;
|
|
83645
|
+
var collected = 0;
|
|
83476
83646
|
|
|
83477
|
-
|
|
83478
|
-
|
|
83479
|
-
|
|
83480
|
-
|
|
83647
|
+
while (open >= 0 && collected < options.depth) {
|
|
83648
|
+
var level = 1;
|
|
83649
|
+
var i = open + 1;
|
|
83650
|
+
var close = -1;
|
|
83651
|
+
|
|
83652
|
+
// balance nested '[' and ']' inside this bracket group using a nesting level counter
|
|
83653
|
+
while (i < n && close < 0) {
|
|
83654
|
+
var cu = key.charCodeAt(i);
|
|
83655
|
+
if (cu === 0x5B) { // '['
|
|
83656
|
+
level += 1;
|
|
83657
|
+
} else if (cu === 0x5D) { // ']'
|
|
83658
|
+
level -= 1;
|
|
83659
|
+
if (level === 0) {
|
|
83660
|
+
close = i; // found matching close; loop will exit by condition
|
|
83661
|
+
}
|
|
83481
83662
|
}
|
|
83663
|
+
i += 1;
|
|
83664
|
+
}
|
|
83665
|
+
|
|
83666
|
+
if (close < 0) {
|
|
83667
|
+
// Unterminated group: wrap the raw remainder in one bracket pair so it stays
|
|
83668
|
+
// a single literal segment (e.g. "[[]b" -> "[[]b]"); we do not infer missing ']'.
|
|
83669
|
+
segments[segments.length] = '[' + key.slice(open) + ']';
|
|
83670
|
+
return segments;
|
|
83671
|
+
}
|
|
83672
|
+
|
|
83673
|
+
var seg = key.slice(open, close + 1);
|
|
83674
|
+
// prototype guard for the content of this group
|
|
83675
|
+
var content = seg.slice(1, -1);
|
|
83676
|
+
if (!options.plainObjects && has.call(Object.prototype, content) && !options.allowPrototypes) {
|
|
83677
|
+
return;
|
|
83482
83678
|
}
|
|
83483
83679
|
|
|
83484
|
-
|
|
83680
|
+
segments[segments.length] = seg;
|
|
83681
|
+
collected += 1;
|
|
83682
|
+
|
|
83683
|
+
// find the next '[' after this balanced group
|
|
83684
|
+
open = key.indexOf('[', close + 1);
|
|
83485
83685
|
}
|
|
83486
83686
|
|
|
83487
|
-
if (
|
|
83687
|
+
if (open >= 0) {
|
|
83488
83688
|
if (options.strictDepth === true) {
|
|
83489
83689
|
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
83490
83690
|
}
|
|
83491
83691
|
|
|
83492
|
-
|
|
83692
|
+
segments[segments.length] = '[' + key.slice(open) + ']';
|
|
83493
83693
|
}
|
|
83494
83694
|
|
|
83495
|
-
return
|
|
83695
|
+
return segments;
|
|
83496
83696
|
};
|
|
83497
83697
|
|
|
83498
83698
|
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
@@ -83565,6 +83765,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
83565
83765
|
parseArrays: opts.parseArrays !== false,
|
|
83566
83766
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
83567
83767
|
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
83768
|
+
strictMerge: typeof opts.strictMerge === 'boolean' ? !!opts.strictMerge : defaults.strictMerge,
|
|
83568
83769
|
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
83569
83770
|
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
83570
83771
|
};
|
|
@@ -103983,9 +104184,8 @@ module.exports = function getSideChannelList() {
|
|
|
103983
104184
|
}
|
|
103984
104185
|
},
|
|
103985
104186
|
'delete': function (key) {
|
|
103986
|
-
var root = $o && $o.next;
|
|
103987
104187
|
var deletedNode = listDelete($o, key);
|
|
103988
|
-
if (deletedNode &&
|
|
104188
|
+
if (deletedNode && $o && !$o.next) {
|
|
103989
104189
|
$o = void undefined;
|
|
103990
104190
|
}
|
|
103991
104191
|
return !!deletedNode;
|
|
@@ -104007,7 +104207,6 @@ module.exports = function getSideChannelList() {
|
|
|
104007
104207
|
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
104008
104208
|
}
|
|
104009
104209
|
};
|
|
104010
|
-
// @ts-expect-error TODO: figure out why this is erroring
|
|
104011
104210
|
return channel;
|
|
104012
104211
|
};
|
|
104013
104212
|
|
|
@@ -105006,11 +105205,11 @@ exports.default = void 0;
|
|
|
105006
105205
|
// 全局模块缓存对象
|
|
105007
105206
|
const globalModuleCache = window._g_import_g_ || (window._g_import_g_ = {});
|
|
105008
105207
|
|
|
105009
|
-
/**
|
|
105010
|
-
* 异步导入模块并缓存
|
|
105011
|
-
* @param {string} name - 模块名称
|
|
105012
|
-
* @param {Function} importPromise - 返回 import promise 的函数
|
|
105013
|
-
* @returns {Promise} 返回模块的 Promise
|
|
105208
|
+
/**
|
|
105209
|
+
* 异步导入模块并缓存
|
|
105210
|
+
* @param {string} name - 模块名称
|
|
105211
|
+
* @param {Function} importPromise - 返回 import promise 的函数
|
|
105212
|
+
* @returns {Promise} 返回模块的 Promise
|
|
105014
105213
|
*/
|
|
105015
105214
|
async function importG(name, importPromise) {
|
|
105016
105215
|
try {
|
|
@@ -105317,7 +105516,7 @@ var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
|
105317
105516
|
var hexTable = (function () {
|
|
105318
105517
|
var array = [];
|
|
105319
105518
|
for (var i = 0; i < 256; ++i) {
|
|
105320
|
-
array.
|
|
105519
|
+
array[array.length] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();
|
|
105321
105520
|
}
|
|
105322
105521
|
|
|
105323
105522
|
return array;
|
|
@@ -105333,7 +105532,7 @@ var compactQueue = function compactQueue(queue) {
|
|
|
105333
105532
|
|
|
105334
105533
|
for (var j = 0; j < obj.length; ++j) {
|
|
105335
105534
|
if (typeof obj[j] !== 'undefined') {
|
|
105336
|
-
compacted.
|
|
105535
|
+
compacted[compacted.length] = obj[j];
|
|
105337
105536
|
}
|
|
105338
105537
|
}
|
|
105339
105538
|
|
|
@@ -105361,13 +105560,19 @@ var merge = function merge(target, source, options) {
|
|
|
105361
105560
|
|
|
105362
105561
|
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
105363
105562
|
if (isArray(target)) {
|
|
105364
|
-
target.
|
|
105563
|
+
var nextIndex = target.length;
|
|
105564
|
+
if (options && typeof options.arrayLimit === 'number' && nextIndex > options.arrayLimit) {
|
|
105565
|
+
return markOverflow(arrayToObject(target.concat(source), options), nextIndex);
|
|
105566
|
+
}
|
|
105567
|
+
target[nextIndex] = source;
|
|
105365
105568
|
} else if (target && typeof target === 'object') {
|
|
105366
105569
|
if (isOverflow(target)) {
|
|
105367
105570
|
// Add at next numeric index for overflow objects
|
|
105368
105571
|
var newIndex = getMaxIndex(target) + 1;
|
|
105369
105572
|
target[newIndex] = source;
|
|
105370
105573
|
setMaxIndex(target, newIndex);
|
|
105574
|
+
} else if (options && options.strictMerge) {
|
|
105575
|
+
return [target, source];
|
|
105371
105576
|
} else if (
|
|
105372
105577
|
(options && (options.plainObjects || options.allowPrototypes))
|
|
105373
105578
|
|| !has.call(Object.prototype, source)
|
|
@@ -105394,7 +105599,11 @@ var merge = function merge(target, source, options) {
|
|
|
105394
105599
|
}
|
|
105395
105600
|
return markOverflow(result, getMaxIndex(source) + 1);
|
|
105396
105601
|
}
|
|
105397
|
-
|
|
105602
|
+
var combined = [target].concat(source);
|
|
105603
|
+
if (options && typeof options.arrayLimit === 'number' && combined.length > options.arrayLimit) {
|
|
105604
|
+
return markOverflow(arrayToObject(combined, options), combined.length - 1);
|
|
105605
|
+
}
|
|
105606
|
+
return combined;
|
|
105398
105607
|
}
|
|
105399
105608
|
|
|
105400
105609
|
var mergeTarget = target;
|
|
@@ -105409,7 +105618,7 @@ var merge = function merge(target, source, options) {
|
|
|
105409
105618
|
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
105410
105619
|
target[i] = merge(targetItem, item, options);
|
|
105411
105620
|
} else {
|
|
105412
|
-
target.
|
|
105621
|
+
target[target.length] = item;
|
|
105413
105622
|
}
|
|
105414
105623
|
} else {
|
|
105415
105624
|
target[i] = item;
|
|
@@ -105426,6 +105635,17 @@ var merge = function merge(target, source, options) {
|
|
|
105426
105635
|
} else {
|
|
105427
105636
|
acc[key] = value;
|
|
105428
105637
|
}
|
|
105638
|
+
|
|
105639
|
+
if (isOverflow(source) && !isOverflow(acc)) {
|
|
105640
|
+
markOverflow(acc, getMaxIndex(source));
|
|
105641
|
+
}
|
|
105642
|
+
if (isOverflow(acc)) {
|
|
105643
|
+
var keyNum = parseInt(key, 10);
|
|
105644
|
+
if (String(keyNum) === key && keyNum >= 0 && keyNum > getMaxIndex(acc)) {
|
|
105645
|
+
setMaxIndex(acc, keyNum);
|
|
105646
|
+
}
|
|
105647
|
+
}
|
|
105648
|
+
|
|
105429
105649
|
return acc;
|
|
105430
105650
|
}, mergeTarget);
|
|
105431
105651
|
};
|
|
@@ -105542,8 +105762,8 @@ var compact = function compact(value) {
|
|
|
105542
105762
|
var key = keys[j];
|
|
105543
105763
|
var val = obj[key];
|
|
105544
105764
|
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
105545
|
-
queue.
|
|
105546
|
-
refs.
|
|
105765
|
+
queue[queue.length] = { obj: obj, prop: key };
|
|
105766
|
+
refs[refs.length] = val;
|
|
105547
105767
|
}
|
|
105548
105768
|
}
|
|
105549
105769
|
}
|
|
@@ -105585,7 +105805,7 @@ var maybeMap = function maybeMap(val, fn) {
|
|
|
105585
105805
|
if (isArray(val)) {
|
|
105586
105806
|
var mapped = [];
|
|
105587
105807
|
for (var i = 0; i < val.length; i += 1) {
|
|
105588
|
-
mapped.
|
|
105808
|
+
mapped[mapped.length] = fn(val[i]);
|
|
105589
105809
|
}
|
|
105590
105810
|
return mapped;
|
|
105591
105811
|
}
|
|
@@ -105602,6 +105822,7 @@ module.exports = {
|
|
|
105602
105822
|
isBuffer: isBuffer,
|
|
105603
105823
|
isOverflow: isOverflow,
|
|
105604
105824
|
isRegExp: isRegExp,
|
|
105825
|
+
markOverflow: markOverflow,
|
|
105605
105826
|
maybeMap: maybeMap,
|
|
105606
105827
|
merge: merge
|
|
105607
105828
|
};
|