hbte-saas-ui 1.5.5 → 1.5.6

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.
@@ -463,6 +463,47 @@ _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
463
463
 
464
464
  /* harmony default export */ __webpack_exports__["default"] = (_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"]);
465
465
 
466
+ /***/ }),
467
+
468
+ /***/ "0d3b":
469
+ /***/ (function(module, exports, __webpack_require__) {
470
+
471
+ var fails = __webpack_require__("d039");
472
+ var wellKnownSymbol = __webpack_require__("b622");
473
+ var IS_PURE = __webpack_require__("c430");
474
+
475
+ var ITERATOR = wellKnownSymbol('iterator');
476
+
477
+ module.exports = !fails(function () {
478
+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing
479
+ var url = new URL('b?a=1&b=2&c=3', 'http://a');
480
+ var searchParams = url.searchParams;
481
+ var result = '';
482
+ url.pathname = 'c%20d';
483
+ searchParams.forEach(function (value, key) {
484
+ searchParams['delete']('b');
485
+ result += key + value;
486
+ });
487
+ return (IS_PURE && !url.toJSON)
488
+ || !searchParams.sort
489
+ || url.href !== 'http://a/c%20d?a=1&c=3'
490
+ || searchParams.get('c') !== '3'
491
+ || String(new URLSearchParams('?a=1')) !== 'a=1'
492
+ || !searchParams[ITERATOR]
493
+ // throws in Edge
494
+ || new URL('https://a@b').username !== 'a'
495
+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
496
+ // not punycoded in Edge
497
+ || new URL('http://тест').host !== 'xn--e1aybc'
498
+ // not escaped in Chrome 62-
499
+ || new URL('http://a#б').hash !== '#%D0%B1'
500
+ // fails in Chrome 66-
501
+ || result !== 'a1c3'
502
+ // throws in Safari
503
+ || new URL('http://x', undefined).host !== 'x';
504
+ });
505
+
506
+
466
507
  /***/ }),
467
508
 
468
509
  /***/ "0d51":
@@ -992,6 +1033,25 @@ module.exports = function (iterable, unboundFunction, options) {
992
1033
  };
993
1034
 
994
1035
 
1036
+ /***/ }),
1037
+
1038
+ /***/ "23b3":
1039
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1040
+
1041
+ "use strict";
1042
+ __webpack_require__.r(__webpack_exports__);
1043
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("b0c0");
1044
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_0__);
1045
+ /* harmony import */ var _src_main_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("d2ee");
1046
+
1047
+
1048
+
1049
+ _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].install = function (Vue) {
1050
+ Vue.component(_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"].name, _src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"]);
1051
+ };
1052
+
1053
+ /* harmony default export */ __webpack_exports__["default"] = (_src_main_vue__WEBPACK_IMPORTED_MODULE_1__["default"]);
1054
+
995
1055
  /***/ }),
996
1056
 
997
1057
  /***/ "23cb":
@@ -1429,6 +1489,1058 @@ module.exports = function (iterator, kind, value) {
1429
1489
  };
1430
1490
 
1431
1491
 
1492
+ /***/ }),
1493
+
1494
+ /***/ "2b3d":
1495
+ /***/ (function(module, exports, __webpack_require__) {
1496
+
1497
+ "use strict";
1498
+
1499
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
1500
+ __webpack_require__("3ca3");
1501
+ var $ = __webpack_require__("23e7");
1502
+ var DESCRIPTORS = __webpack_require__("83ab");
1503
+ var USE_NATIVE_URL = __webpack_require__("0d3b");
1504
+ var global = __webpack_require__("da84");
1505
+ var bind = __webpack_require__("0366");
1506
+ var uncurryThis = __webpack_require__("e330");
1507
+ var defineProperties = __webpack_require__("37e8").f;
1508
+ var redefine = __webpack_require__("6eeb");
1509
+ var anInstance = __webpack_require__("19aa");
1510
+ var hasOwn = __webpack_require__("1a2d");
1511
+ var assign = __webpack_require__("60da");
1512
+ var arrayFrom = __webpack_require__("4df4");
1513
+ var arraySlice = __webpack_require__("4dae");
1514
+ var codeAt = __webpack_require__("6547").codeAt;
1515
+ var toASCII = __webpack_require__("5fb2");
1516
+ var $toString = __webpack_require__("577e");
1517
+ var setToStringTag = __webpack_require__("d44e");
1518
+ var validateArgumentsLength = __webpack_require__("d6d6");
1519
+ var URLSearchParamsModule = __webpack_require__("9861");
1520
+ var InternalStateModule = __webpack_require__("69f3");
1521
+
1522
+ var setInternalState = InternalStateModule.set;
1523
+ var getInternalURLState = InternalStateModule.getterFor('URL');
1524
+ var URLSearchParams = URLSearchParamsModule.URLSearchParams;
1525
+ var getInternalSearchParamsState = URLSearchParamsModule.getState;
1526
+
1527
+ var NativeURL = global.URL;
1528
+ var TypeError = global.TypeError;
1529
+ var parseInt = global.parseInt;
1530
+ var floor = Math.floor;
1531
+ var pow = Math.pow;
1532
+ var charAt = uncurryThis(''.charAt);
1533
+ var exec = uncurryThis(/./.exec);
1534
+ var join = uncurryThis([].join);
1535
+ var numberToString = uncurryThis(1.0.toString);
1536
+ var pop = uncurryThis([].pop);
1537
+ var push = uncurryThis([].push);
1538
+ var replace = uncurryThis(''.replace);
1539
+ var shift = uncurryThis([].shift);
1540
+ var split = uncurryThis(''.split);
1541
+ var stringSlice = uncurryThis(''.slice);
1542
+ var toLowerCase = uncurryThis(''.toLowerCase);
1543
+ var unshift = uncurryThis([].unshift);
1544
+
1545
+ var INVALID_AUTHORITY = 'Invalid authority';
1546
+ var INVALID_SCHEME = 'Invalid scheme';
1547
+ var INVALID_HOST = 'Invalid host';
1548
+ var INVALID_PORT = 'Invalid port';
1549
+
1550
+ var ALPHA = /[a-z]/i;
1551
+ // eslint-disable-next-line regexp/no-obscure-range -- safe
1552
+ var ALPHANUMERIC = /[\d+-.a-z]/i;
1553
+ var DIGIT = /\d/;
1554
+ var HEX_START = /^0x/i;
1555
+ var OCT = /^[0-7]+$/;
1556
+ var DEC = /^\d+$/;
1557
+ var HEX = /^[\da-f]+$/i;
1558
+ /* eslint-disable regexp/no-control-character -- safe */
1559
+ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/;
1560
+ var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/;
1561
+ var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g;
1562
+ var TAB_AND_NEW_LINE = /[\t\n\r]/g;
1563
+ /* eslint-enable regexp/no-control-character -- safe */
1564
+ var EOF;
1565
+
1566
+ // https://url.spec.whatwg.org/#ipv4-number-parser
1567
+ var parseIPv4 = function (input) {
1568
+ var parts = split(input, '.');
1569
+ var partsLength, numbers, index, part, radix, number, ipv4;
1570
+ if (parts.length && parts[parts.length - 1] == '') {
1571
+ parts.length--;
1572
+ }
1573
+ partsLength = parts.length;
1574
+ if (partsLength > 4) return input;
1575
+ numbers = [];
1576
+ for (index = 0; index < partsLength; index++) {
1577
+ part = parts[index];
1578
+ if (part == '') return input;
1579
+ radix = 10;
1580
+ if (part.length > 1 && charAt(part, 0) == '0') {
1581
+ radix = exec(HEX_START, part) ? 16 : 8;
1582
+ part = stringSlice(part, radix == 8 ? 1 : 2);
1583
+ }
1584
+ if (part === '') {
1585
+ number = 0;
1586
+ } else {
1587
+ if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input;
1588
+ number = parseInt(part, radix);
1589
+ }
1590
+ push(numbers, number);
1591
+ }
1592
+ for (index = 0; index < partsLength; index++) {
1593
+ number = numbers[index];
1594
+ if (index == partsLength - 1) {
1595
+ if (number >= pow(256, 5 - partsLength)) return null;
1596
+ } else if (number > 255) return null;
1597
+ }
1598
+ ipv4 = pop(numbers);
1599
+ for (index = 0; index < numbers.length; index++) {
1600
+ ipv4 += numbers[index] * pow(256, 3 - index);
1601
+ }
1602
+ return ipv4;
1603
+ };
1604
+
1605
+ // https://url.spec.whatwg.org/#concept-ipv6-parser
1606
+ // eslint-disable-next-line max-statements -- TODO
1607
+ var parseIPv6 = function (input) {
1608
+ var address = [0, 0, 0, 0, 0, 0, 0, 0];
1609
+ var pieceIndex = 0;
1610
+ var compress = null;
1611
+ var pointer = 0;
1612
+ var value, length, numbersSeen, ipv4Piece, number, swaps, swap;
1613
+
1614
+ var chr = function () {
1615
+ return charAt(input, pointer);
1616
+ };
1617
+
1618
+ if (chr() == ':') {
1619
+ if (charAt(input, 1) != ':') return;
1620
+ pointer += 2;
1621
+ pieceIndex++;
1622
+ compress = pieceIndex;
1623
+ }
1624
+ while (chr()) {
1625
+ if (pieceIndex == 8) return;
1626
+ if (chr() == ':') {
1627
+ if (compress !== null) return;
1628
+ pointer++;
1629
+ pieceIndex++;
1630
+ compress = pieceIndex;
1631
+ continue;
1632
+ }
1633
+ value = length = 0;
1634
+ while (length < 4 && exec(HEX, chr())) {
1635
+ value = value * 16 + parseInt(chr(), 16);
1636
+ pointer++;
1637
+ length++;
1638
+ }
1639
+ if (chr() == '.') {
1640
+ if (length == 0) return;
1641
+ pointer -= length;
1642
+ if (pieceIndex > 6) return;
1643
+ numbersSeen = 0;
1644
+ while (chr()) {
1645
+ ipv4Piece = null;
1646
+ if (numbersSeen > 0) {
1647
+ if (chr() == '.' && numbersSeen < 4) pointer++;
1648
+ else return;
1649
+ }
1650
+ if (!exec(DIGIT, chr())) return;
1651
+ while (exec(DIGIT, chr())) {
1652
+ number = parseInt(chr(), 10);
1653
+ if (ipv4Piece === null) ipv4Piece = number;
1654
+ else if (ipv4Piece == 0) return;
1655
+ else ipv4Piece = ipv4Piece * 10 + number;
1656
+ if (ipv4Piece > 255) return;
1657
+ pointer++;
1658
+ }
1659
+ address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece;
1660
+ numbersSeen++;
1661
+ if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++;
1662
+ }
1663
+ if (numbersSeen != 4) return;
1664
+ break;
1665
+ } else if (chr() == ':') {
1666
+ pointer++;
1667
+ if (!chr()) return;
1668
+ } else if (chr()) return;
1669
+ address[pieceIndex++] = value;
1670
+ }
1671
+ if (compress !== null) {
1672
+ swaps = pieceIndex - compress;
1673
+ pieceIndex = 7;
1674
+ while (pieceIndex != 0 && swaps > 0) {
1675
+ swap = address[pieceIndex];
1676
+ address[pieceIndex--] = address[compress + swaps - 1];
1677
+ address[compress + --swaps] = swap;
1678
+ }
1679
+ } else if (pieceIndex != 8) return;
1680
+ return address;
1681
+ };
1682
+
1683
+ var findLongestZeroSequence = function (ipv6) {
1684
+ var maxIndex = null;
1685
+ var maxLength = 1;
1686
+ var currStart = null;
1687
+ var currLength = 0;
1688
+ var index = 0;
1689
+ for (; index < 8; index++) {
1690
+ if (ipv6[index] !== 0) {
1691
+ if (currLength > maxLength) {
1692
+ maxIndex = currStart;
1693
+ maxLength = currLength;
1694
+ }
1695
+ currStart = null;
1696
+ currLength = 0;
1697
+ } else {
1698
+ if (currStart === null) currStart = index;
1699
+ ++currLength;
1700
+ }
1701
+ }
1702
+ if (currLength > maxLength) {
1703
+ maxIndex = currStart;
1704
+ maxLength = currLength;
1705
+ }
1706
+ return maxIndex;
1707
+ };
1708
+
1709
+ // https://url.spec.whatwg.org/#host-serializing
1710
+ var serializeHost = function (host) {
1711
+ var result, index, compress, ignore0;
1712
+ // ipv4
1713
+ if (typeof host == 'number') {
1714
+ result = [];
1715
+ for (index = 0; index < 4; index++) {
1716
+ unshift(result, host % 256);
1717
+ host = floor(host / 256);
1718
+ } return join(result, '.');
1719
+ // ipv6
1720
+ } else if (typeof host == 'object') {
1721
+ result = '';
1722
+ compress = findLongestZeroSequence(host);
1723
+ for (index = 0; index < 8; index++) {
1724
+ if (ignore0 && host[index] === 0) continue;
1725
+ if (ignore0) ignore0 = false;
1726
+ if (compress === index) {
1727
+ result += index ? ':' : '::';
1728
+ ignore0 = true;
1729
+ } else {
1730
+ result += numberToString(host[index], 16);
1731
+ if (index < 7) result += ':';
1732
+ }
1733
+ }
1734
+ return '[' + result + ']';
1735
+ } return host;
1736
+ };
1737
+
1738
+ var C0ControlPercentEncodeSet = {};
1739
+ var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, {
1740
+ ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
1741
+ });
1742
+ var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, {
1743
+ '#': 1, '?': 1, '{': 1, '}': 1
1744
+ });
1745
+ var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, {
1746
+ '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1
1747
+ });
1748
+
1749
+ var percentEncode = function (chr, set) {
1750
+ var code = codeAt(chr, 0);
1751
+ return code > 0x20 && code < 0x7F && !hasOwn(set, chr) ? chr : encodeURIComponent(chr);
1752
+ };
1753
+
1754
+ // https://url.spec.whatwg.org/#special-scheme
1755
+ var specialSchemes = {
1756
+ ftp: 21,
1757
+ file: null,
1758
+ http: 80,
1759
+ https: 443,
1760
+ ws: 80,
1761
+ wss: 443
1762
+ };
1763
+
1764
+ // https://url.spec.whatwg.org/#windows-drive-letter
1765
+ var isWindowsDriveLetter = function (string, normalized) {
1766
+ var second;
1767
+ return string.length == 2 && exec(ALPHA, charAt(string, 0))
1768
+ && ((second = charAt(string, 1)) == ':' || (!normalized && second == '|'));
1769
+ };
1770
+
1771
+ // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter
1772
+ var startsWithWindowsDriveLetter = function (string) {
1773
+ var third;
1774
+ return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && (
1775
+ string.length == 2 ||
1776
+ ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#')
1777
+ );
1778
+ };
1779
+
1780
+ // https://url.spec.whatwg.org/#single-dot-path-segment
1781
+ var isSingleDot = function (segment) {
1782
+ return segment === '.' || toLowerCase(segment) === '%2e';
1783
+ };
1784
+
1785
+ // https://url.spec.whatwg.org/#double-dot-path-segment
1786
+ var isDoubleDot = function (segment) {
1787
+ segment = toLowerCase(segment);
1788
+ return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e';
1789
+ };
1790
+
1791
+ // States:
1792
+ var SCHEME_START = {};
1793
+ var SCHEME = {};
1794
+ var NO_SCHEME = {};
1795
+ var SPECIAL_RELATIVE_OR_AUTHORITY = {};
1796
+ var PATH_OR_AUTHORITY = {};
1797
+ var RELATIVE = {};
1798
+ var RELATIVE_SLASH = {};
1799
+ var SPECIAL_AUTHORITY_SLASHES = {};
1800
+ var SPECIAL_AUTHORITY_IGNORE_SLASHES = {};
1801
+ var AUTHORITY = {};
1802
+ var HOST = {};
1803
+ var HOSTNAME = {};
1804
+ var PORT = {};
1805
+ var FILE = {};
1806
+ var FILE_SLASH = {};
1807
+ var FILE_HOST = {};
1808
+ var PATH_START = {};
1809
+ var PATH = {};
1810
+ var CANNOT_BE_A_BASE_URL_PATH = {};
1811
+ var QUERY = {};
1812
+ var FRAGMENT = {};
1813
+
1814
+ var URLState = function (url, isBase, base) {
1815
+ var urlString = $toString(url);
1816
+ var baseState, failure, searchParams;
1817
+ if (isBase) {
1818
+ failure = this.parse(urlString);
1819
+ if (failure) throw TypeError(failure);
1820
+ this.searchParams = null;
1821
+ } else {
1822
+ if (base !== undefined) baseState = new URLState(base, true);
1823
+ failure = this.parse(urlString, null, baseState);
1824
+ if (failure) throw TypeError(failure);
1825
+ searchParams = getInternalSearchParamsState(new URLSearchParams());
1826
+ searchParams.bindURL(this);
1827
+ this.searchParams = searchParams;
1828
+ }
1829
+ };
1830
+
1831
+ URLState.prototype = {
1832
+ type: 'URL',
1833
+ // https://url.spec.whatwg.org/#url-parsing
1834
+ // eslint-disable-next-line max-statements -- TODO
1835
+ parse: function (input, stateOverride, base) {
1836
+ var url = this;
1837
+ var state = stateOverride || SCHEME_START;
1838
+ var pointer = 0;
1839
+ var buffer = '';
1840
+ var seenAt = false;
1841
+ var seenBracket = false;
1842
+ var seenPasswordToken = false;
1843
+ var codePoints, chr, bufferCodePoints, failure;
1844
+
1845
+ input = $toString(input);
1846
+
1847
+ if (!stateOverride) {
1848
+ url.scheme = '';
1849
+ url.username = '';
1850
+ url.password = '';
1851
+ url.host = null;
1852
+ url.port = null;
1853
+ url.path = [];
1854
+ url.query = null;
1855
+ url.fragment = null;
1856
+ url.cannotBeABaseURL = false;
1857
+ input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, '');
1858
+ }
1859
+
1860
+ input = replace(input, TAB_AND_NEW_LINE, '');
1861
+
1862
+ codePoints = arrayFrom(input);
1863
+
1864
+ while (pointer <= codePoints.length) {
1865
+ chr = codePoints[pointer];
1866
+ switch (state) {
1867
+ case SCHEME_START:
1868
+ if (chr && exec(ALPHA, chr)) {
1869
+ buffer += toLowerCase(chr);
1870
+ state = SCHEME;
1871
+ } else if (!stateOverride) {
1872
+ state = NO_SCHEME;
1873
+ continue;
1874
+ } else return INVALID_SCHEME;
1875
+ break;
1876
+
1877
+ case SCHEME:
1878
+ if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) {
1879
+ buffer += toLowerCase(chr);
1880
+ } else if (chr == ':') {
1881
+ if (stateOverride && (
1882
+ (url.isSpecial() != hasOwn(specialSchemes, buffer)) ||
1883
+ (buffer == 'file' && (url.includesCredentials() || url.port !== null)) ||
1884
+ (url.scheme == 'file' && !url.host)
1885
+ )) return;
1886
+ url.scheme = buffer;
1887
+ if (stateOverride) {
1888
+ if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null;
1889
+ return;
1890
+ }
1891
+ buffer = '';
1892
+ if (url.scheme == 'file') {
1893
+ state = FILE;
1894
+ } else if (url.isSpecial() && base && base.scheme == url.scheme) {
1895
+ state = SPECIAL_RELATIVE_OR_AUTHORITY;
1896
+ } else if (url.isSpecial()) {
1897
+ state = SPECIAL_AUTHORITY_SLASHES;
1898
+ } else if (codePoints[pointer + 1] == '/') {
1899
+ state = PATH_OR_AUTHORITY;
1900
+ pointer++;
1901
+ } else {
1902
+ url.cannotBeABaseURL = true;
1903
+ push(url.path, '');
1904
+ state = CANNOT_BE_A_BASE_URL_PATH;
1905
+ }
1906
+ } else if (!stateOverride) {
1907
+ buffer = '';
1908
+ state = NO_SCHEME;
1909
+ pointer = 0;
1910
+ continue;
1911
+ } else return INVALID_SCHEME;
1912
+ break;
1913
+
1914
+ case NO_SCHEME:
1915
+ if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME;
1916
+ if (base.cannotBeABaseURL && chr == '#') {
1917
+ url.scheme = base.scheme;
1918
+ url.path = arraySlice(base.path);
1919
+ url.query = base.query;
1920
+ url.fragment = '';
1921
+ url.cannotBeABaseURL = true;
1922
+ state = FRAGMENT;
1923
+ break;
1924
+ }
1925
+ state = base.scheme == 'file' ? FILE : RELATIVE;
1926
+ continue;
1927
+
1928
+ case SPECIAL_RELATIVE_OR_AUTHORITY:
1929
+ if (chr == '/' && codePoints[pointer + 1] == '/') {
1930
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
1931
+ pointer++;
1932
+ } else {
1933
+ state = RELATIVE;
1934
+ continue;
1935
+ } break;
1936
+
1937
+ case PATH_OR_AUTHORITY:
1938
+ if (chr == '/') {
1939
+ state = AUTHORITY;
1940
+ break;
1941
+ } else {
1942
+ state = PATH;
1943
+ continue;
1944
+ }
1945
+
1946
+ case RELATIVE:
1947
+ url.scheme = base.scheme;
1948
+ if (chr == EOF) {
1949
+ url.username = base.username;
1950
+ url.password = base.password;
1951
+ url.host = base.host;
1952
+ url.port = base.port;
1953
+ url.path = arraySlice(base.path);
1954
+ url.query = base.query;
1955
+ } else if (chr == '/' || (chr == '\\' && url.isSpecial())) {
1956
+ state = RELATIVE_SLASH;
1957
+ } else if (chr == '?') {
1958
+ url.username = base.username;
1959
+ url.password = base.password;
1960
+ url.host = base.host;
1961
+ url.port = base.port;
1962
+ url.path = arraySlice(base.path);
1963
+ url.query = '';
1964
+ state = QUERY;
1965
+ } else if (chr == '#') {
1966
+ url.username = base.username;
1967
+ url.password = base.password;
1968
+ url.host = base.host;
1969
+ url.port = base.port;
1970
+ url.path = arraySlice(base.path);
1971
+ url.query = base.query;
1972
+ url.fragment = '';
1973
+ state = FRAGMENT;
1974
+ } else {
1975
+ url.username = base.username;
1976
+ url.password = base.password;
1977
+ url.host = base.host;
1978
+ url.port = base.port;
1979
+ url.path = arraySlice(base.path);
1980
+ url.path.length--;
1981
+ state = PATH;
1982
+ continue;
1983
+ } break;
1984
+
1985
+ case RELATIVE_SLASH:
1986
+ if (url.isSpecial() && (chr == '/' || chr == '\\')) {
1987
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
1988
+ } else if (chr == '/') {
1989
+ state = AUTHORITY;
1990
+ } else {
1991
+ url.username = base.username;
1992
+ url.password = base.password;
1993
+ url.host = base.host;
1994
+ url.port = base.port;
1995
+ state = PATH;
1996
+ continue;
1997
+ } break;
1998
+
1999
+ case SPECIAL_AUTHORITY_SLASHES:
2000
+ state = SPECIAL_AUTHORITY_IGNORE_SLASHES;
2001
+ if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue;
2002
+ pointer++;
2003
+ break;
2004
+
2005
+ case SPECIAL_AUTHORITY_IGNORE_SLASHES:
2006
+ if (chr != '/' && chr != '\\') {
2007
+ state = AUTHORITY;
2008
+ continue;
2009
+ } break;
2010
+
2011
+ case AUTHORITY:
2012
+ if (chr == '@') {
2013
+ if (seenAt) buffer = '%40' + buffer;
2014
+ seenAt = true;
2015
+ bufferCodePoints = arrayFrom(buffer);
2016
+ for (var i = 0; i < bufferCodePoints.length; i++) {
2017
+ var codePoint = bufferCodePoints[i];
2018
+ if (codePoint == ':' && !seenPasswordToken) {
2019
+ seenPasswordToken = true;
2020
+ continue;
2021
+ }
2022
+ var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet);
2023
+ if (seenPasswordToken) url.password += encodedCodePoints;
2024
+ else url.username += encodedCodePoints;
2025
+ }
2026
+ buffer = '';
2027
+ } else if (
2028
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
2029
+ (chr == '\\' && url.isSpecial())
2030
+ ) {
2031
+ if (seenAt && buffer == '') return INVALID_AUTHORITY;
2032
+ pointer -= arrayFrom(buffer).length + 1;
2033
+ buffer = '';
2034
+ state = HOST;
2035
+ } else buffer += chr;
2036
+ break;
2037
+
2038
+ case HOST:
2039
+ case HOSTNAME:
2040
+ if (stateOverride && url.scheme == 'file') {
2041
+ state = FILE_HOST;
2042
+ continue;
2043
+ } else if (chr == ':' && !seenBracket) {
2044
+ if (buffer == '') return INVALID_HOST;
2045
+ failure = url.parseHost(buffer);
2046
+ if (failure) return failure;
2047
+ buffer = '';
2048
+ state = PORT;
2049
+ if (stateOverride == HOSTNAME) return;
2050
+ } else if (
2051
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
2052
+ (chr == '\\' && url.isSpecial())
2053
+ ) {
2054
+ if (url.isSpecial() && buffer == '') return INVALID_HOST;
2055
+ if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return;
2056
+ failure = url.parseHost(buffer);
2057
+ if (failure) return failure;
2058
+ buffer = '';
2059
+ state = PATH_START;
2060
+ if (stateOverride) return;
2061
+ continue;
2062
+ } else {
2063
+ if (chr == '[') seenBracket = true;
2064
+ else if (chr == ']') seenBracket = false;
2065
+ buffer += chr;
2066
+ } break;
2067
+
2068
+ case PORT:
2069
+ if (exec(DIGIT, chr)) {
2070
+ buffer += chr;
2071
+ } else if (
2072
+ chr == EOF || chr == '/' || chr == '?' || chr == '#' ||
2073
+ (chr == '\\' && url.isSpecial()) ||
2074
+ stateOverride
2075
+ ) {
2076
+ if (buffer != '') {
2077
+ var port = parseInt(buffer, 10);
2078
+ if (port > 0xFFFF) return INVALID_PORT;
2079
+ url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port;
2080
+ buffer = '';
2081
+ }
2082
+ if (stateOverride) return;
2083
+ state = PATH_START;
2084
+ continue;
2085
+ } else return INVALID_PORT;
2086
+ break;
2087
+
2088
+ case FILE:
2089
+ url.scheme = 'file';
2090
+ if (chr == '/' || chr == '\\') state = FILE_SLASH;
2091
+ else if (base && base.scheme == 'file') {
2092
+ if (chr == EOF) {
2093
+ url.host = base.host;
2094
+ url.path = arraySlice(base.path);
2095
+ url.query = base.query;
2096
+ } else if (chr == '?') {
2097
+ url.host = base.host;
2098
+ url.path = arraySlice(base.path);
2099
+ url.query = '';
2100
+ state = QUERY;
2101
+ } else if (chr == '#') {
2102
+ url.host = base.host;
2103
+ url.path = arraySlice(base.path);
2104
+ url.query = base.query;
2105
+ url.fragment = '';
2106
+ state = FRAGMENT;
2107
+ } else {
2108
+ if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
2109
+ url.host = base.host;
2110
+ url.path = arraySlice(base.path);
2111
+ url.shortenPath();
2112
+ }
2113
+ state = PATH;
2114
+ continue;
2115
+ }
2116
+ } else {
2117
+ state = PATH;
2118
+ continue;
2119
+ } break;
2120
+
2121
+ case FILE_SLASH:
2122
+ if (chr == '/' || chr == '\\') {
2123
+ state = FILE_HOST;
2124
+ break;
2125
+ }
2126
+ if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
2127
+ if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]);
2128
+ else url.host = base.host;
2129
+ }
2130
+ state = PATH;
2131
+ continue;
2132
+
2133
+ case FILE_HOST:
2134
+ if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') {
2135
+ if (!stateOverride && isWindowsDriveLetter(buffer)) {
2136
+ state = PATH;
2137
+ } else if (buffer == '') {
2138
+ url.host = '';
2139
+ if (stateOverride) return;
2140
+ state = PATH_START;
2141
+ } else {
2142
+ failure = url.parseHost(buffer);
2143
+ if (failure) return failure;
2144
+ if (url.host == 'localhost') url.host = '';
2145
+ if (stateOverride) return;
2146
+ buffer = '';
2147
+ state = PATH_START;
2148
+ } continue;
2149
+ } else buffer += chr;
2150
+ break;
2151
+
2152
+ case PATH_START:
2153
+ if (url.isSpecial()) {
2154
+ state = PATH;
2155
+ if (chr != '/' && chr != '\\') continue;
2156
+ } else if (!stateOverride && chr == '?') {
2157
+ url.query = '';
2158
+ state = QUERY;
2159
+ } else if (!stateOverride && chr == '#') {
2160
+ url.fragment = '';
2161
+ state = FRAGMENT;
2162
+ } else if (chr != EOF) {
2163
+ state = PATH;
2164
+ if (chr != '/') continue;
2165
+ } break;
2166
+
2167
+ case PATH:
2168
+ if (
2169
+ chr == EOF || chr == '/' ||
2170
+ (chr == '\\' && url.isSpecial()) ||
2171
+ (!stateOverride && (chr == '?' || chr == '#'))
2172
+ ) {
2173
+ if (isDoubleDot(buffer)) {
2174
+ url.shortenPath();
2175
+ if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
2176
+ push(url.path, '');
2177
+ }
2178
+ } else if (isSingleDot(buffer)) {
2179
+ if (chr != '/' && !(chr == '\\' && url.isSpecial())) {
2180
+ push(url.path, '');
2181
+ }
2182
+ } else {
2183
+ if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) {
2184
+ if (url.host) url.host = '';
2185
+ buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter
2186
+ }
2187
+ push(url.path, buffer);
2188
+ }
2189
+ buffer = '';
2190
+ if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) {
2191
+ while (url.path.length > 1 && url.path[0] === '') {
2192
+ shift(url.path);
2193
+ }
2194
+ }
2195
+ if (chr == '?') {
2196
+ url.query = '';
2197
+ state = QUERY;
2198
+ } else if (chr == '#') {
2199
+ url.fragment = '';
2200
+ state = FRAGMENT;
2201
+ }
2202
+ } else {
2203
+ buffer += percentEncode(chr, pathPercentEncodeSet);
2204
+ } break;
2205
+
2206
+ case CANNOT_BE_A_BASE_URL_PATH:
2207
+ if (chr == '?') {
2208
+ url.query = '';
2209
+ state = QUERY;
2210
+ } else if (chr == '#') {
2211
+ url.fragment = '';
2212
+ state = FRAGMENT;
2213
+ } else if (chr != EOF) {
2214
+ url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet);
2215
+ } break;
2216
+
2217
+ case QUERY:
2218
+ if (!stateOverride && chr == '#') {
2219
+ url.fragment = '';
2220
+ state = FRAGMENT;
2221
+ } else if (chr != EOF) {
2222
+ if (chr == "'" && url.isSpecial()) url.query += '%27';
2223
+ else if (chr == '#') url.query += '%23';
2224
+ else url.query += percentEncode(chr, C0ControlPercentEncodeSet);
2225
+ } break;
2226
+
2227
+ case FRAGMENT:
2228
+ if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet);
2229
+ break;
2230
+ }
2231
+
2232
+ pointer++;
2233
+ }
2234
+ },
2235
+ // https://url.spec.whatwg.org/#host-parsing
2236
+ parseHost: function (input) {
2237
+ var result, codePoints, index;
2238
+ if (charAt(input, 0) == '[') {
2239
+ if (charAt(input, input.length - 1) != ']') return INVALID_HOST;
2240
+ result = parseIPv6(stringSlice(input, 1, -1));
2241
+ if (!result) return INVALID_HOST;
2242
+ this.host = result;
2243
+ // opaque host
2244
+ } else if (!this.isSpecial()) {
2245
+ if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST;
2246
+ result = '';
2247
+ codePoints = arrayFrom(input);
2248
+ for (index = 0; index < codePoints.length; index++) {
2249
+ result += percentEncode(codePoints[index], C0ControlPercentEncodeSet);
2250
+ }
2251
+ this.host = result;
2252
+ } else {
2253
+ input = toASCII(input);
2254
+ if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST;
2255
+ result = parseIPv4(input);
2256
+ if (result === null) return INVALID_HOST;
2257
+ this.host = result;
2258
+ }
2259
+ },
2260
+ // https://url.spec.whatwg.org/#cannot-have-a-username-password-port
2261
+ cannotHaveUsernamePasswordPort: function () {
2262
+ return !this.host || this.cannotBeABaseURL || this.scheme == 'file';
2263
+ },
2264
+ // https://url.spec.whatwg.org/#include-credentials
2265
+ includesCredentials: function () {
2266
+ return this.username != '' || this.password != '';
2267
+ },
2268
+ // https://url.spec.whatwg.org/#is-special
2269
+ isSpecial: function () {
2270
+ return hasOwn(specialSchemes, this.scheme);
2271
+ },
2272
+ // https://url.spec.whatwg.org/#shorten-a-urls-path
2273
+ shortenPath: function () {
2274
+ var path = this.path;
2275
+ var pathSize = path.length;
2276
+ if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) {
2277
+ path.length--;
2278
+ }
2279
+ },
2280
+ // https://url.spec.whatwg.org/#concept-url-serializer
2281
+ serialize: function () {
2282
+ var url = this;
2283
+ var scheme = url.scheme;
2284
+ var username = url.username;
2285
+ var password = url.password;
2286
+ var host = url.host;
2287
+ var port = url.port;
2288
+ var path = url.path;
2289
+ var query = url.query;
2290
+ var fragment = url.fragment;
2291
+ var output = scheme + ':';
2292
+ if (host !== null) {
2293
+ output += '//';
2294
+ if (url.includesCredentials()) {
2295
+ output += username + (password ? ':' + password : '') + '@';
2296
+ }
2297
+ output += serializeHost(host);
2298
+ if (port !== null) output += ':' + port;
2299
+ } else if (scheme == 'file') output += '//';
2300
+ output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
2301
+ if (query !== null) output += '?' + query;
2302
+ if (fragment !== null) output += '#' + fragment;
2303
+ return output;
2304
+ },
2305
+ // https://url.spec.whatwg.org/#dom-url-href
2306
+ setHref: function (href) {
2307
+ var failure = this.parse(href);
2308
+ if (failure) throw TypeError(failure);
2309
+ this.searchParams.update();
2310
+ },
2311
+ // https://url.spec.whatwg.org/#dom-url-origin
2312
+ getOrigin: function () {
2313
+ var scheme = this.scheme;
2314
+ var port = this.port;
2315
+ if (scheme == 'blob') try {
2316
+ return new URLConstructor(scheme.path[0]).origin;
2317
+ } catch (error) {
2318
+ return 'null';
2319
+ }
2320
+ if (scheme == 'file' || !this.isSpecial()) return 'null';
2321
+ return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : '');
2322
+ },
2323
+ // https://url.spec.whatwg.org/#dom-url-protocol
2324
+ getProtocol: function () {
2325
+ return this.scheme + ':';
2326
+ },
2327
+ setProtocol: function (protocol) {
2328
+ this.parse($toString(protocol) + ':', SCHEME_START);
2329
+ },
2330
+ // https://url.spec.whatwg.org/#dom-url-username
2331
+ getUsername: function () {
2332
+ return this.username;
2333
+ },
2334
+ setUsername: function (username) {
2335
+ var codePoints = arrayFrom($toString(username));
2336
+ if (this.cannotHaveUsernamePasswordPort()) return;
2337
+ this.username = '';
2338
+ for (var i = 0; i < codePoints.length; i++) {
2339
+ this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet);
2340
+ }
2341
+ },
2342
+ // https://url.spec.whatwg.org/#dom-url-password
2343
+ getPassword: function () {
2344
+ return this.password;
2345
+ },
2346
+ setPassword: function (password) {
2347
+ var codePoints = arrayFrom($toString(password));
2348
+ if (this.cannotHaveUsernamePasswordPort()) return;
2349
+ this.password = '';
2350
+ for (var i = 0; i < codePoints.length; i++) {
2351
+ this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet);
2352
+ }
2353
+ },
2354
+ // https://url.spec.whatwg.org/#dom-url-host
2355
+ getHost: function () {
2356
+ var host = this.host;
2357
+ var port = this.port;
2358
+ return host === null ? ''
2359
+ : port === null ? serializeHost(host)
2360
+ : serializeHost(host) + ':' + port;
2361
+ },
2362
+ setHost: function (host) {
2363
+ if (this.cannotBeABaseURL) return;
2364
+ this.parse(host, HOST);
2365
+ },
2366
+ // https://url.spec.whatwg.org/#dom-url-hostname
2367
+ getHostname: function () {
2368
+ var host = this.host;
2369
+ return host === null ? '' : serializeHost(host);
2370
+ },
2371
+ setHostname: function (hostname) {
2372
+ if (this.cannotBeABaseURL) return;
2373
+ this.parse(hostname, HOSTNAME);
2374
+ },
2375
+ // https://url.spec.whatwg.org/#dom-url-port
2376
+ getPort: function () {
2377
+ var port = this.port;
2378
+ return port === null ? '' : $toString(port);
2379
+ },
2380
+ setPort: function (port) {
2381
+ if (this.cannotHaveUsernamePasswordPort()) return;
2382
+ port = $toString(port);
2383
+ if (port == '') this.port = null;
2384
+ else this.parse(port, PORT);
2385
+ },
2386
+ // https://url.spec.whatwg.org/#dom-url-pathname
2387
+ getPathname: function () {
2388
+ var path = this.path;
2389
+ return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join(path, '/') : '';
2390
+ },
2391
+ setPathname: function (pathname) {
2392
+ if (this.cannotBeABaseURL) return;
2393
+ this.path = [];
2394
+ this.parse(pathname, PATH_START);
2395
+ },
2396
+ // https://url.spec.whatwg.org/#dom-url-search
2397
+ getSearch: function () {
2398
+ var query = this.query;
2399
+ return query ? '?' + query : '';
2400
+ },
2401
+ setSearch: function (search) {
2402
+ search = $toString(search);
2403
+ if (search == '') {
2404
+ this.query = null;
2405
+ } else {
2406
+ if ('?' == charAt(search, 0)) search = stringSlice(search, 1);
2407
+ this.query = '';
2408
+ this.parse(search, QUERY);
2409
+ }
2410
+ this.searchParams.update();
2411
+ },
2412
+ // https://url.spec.whatwg.org/#dom-url-searchparams
2413
+ getSearchParams: function () {
2414
+ return this.searchParams.facade;
2415
+ },
2416
+ // https://url.spec.whatwg.org/#dom-url-hash
2417
+ getHash: function () {
2418
+ var fragment = this.fragment;
2419
+ return fragment ? '#' + fragment : '';
2420
+ },
2421
+ setHash: function (hash) {
2422
+ hash = $toString(hash);
2423
+ if (hash == '') {
2424
+ this.fragment = null;
2425
+ return;
2426
+ }
2427
+ if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1);
2428
+ this.fragment = '';
2429
+ this.parse(hash, FRAGMENT);
2430
+ },
2431
+ update: function () {
2432
+ this.query = this.searchParams.serialize() || null;
2433
+ }
2434
+ };
2435
+
2436
+ // `URL` constructor
2437
+ // https://url.spec.whatwg.org/#url-class
2438
+ var URLConstructor = function URL(url /* , base */) {
2439
+ var that = anInstance(this, URLPrototype);
2440
+ var base = validateArgumentsLength(arguments.length, 1) > 1 ? arguments[1] : undefined;
2441
+ var state = setInternalState(that, new URLState(url, false, base));
2442
+ if (!DESCRIPTORS) {
2443
+ that.href = state.serialize();
2444
+ that.origin = state.getOrigin();
2445
+ that.protocol = state.getProtocol();
2446
+ that.username = state.getUsername();
2447
+ that.password = state.getPassword();
2448
+ that.host = state.getHost();
2449
+ that.hostname = state.getHostname();
2450
+ that.port = state.getPort();
2451
+ that.pathname = state.getPathname();
2452
+ that.search = state.getSearch();
2453
+ that.searchParams = state.getSearchParams();
2454
+ that.hash = state.getHash();
2455
+ }
2456
+ };
2457
+
2458
+ var URLPrototype = URLConstructor.prototype;
2459
+
2460
+ var accessorDescriptor = function (getter, setter) {
2461
+ return {
2462
+ get: function () {
2463
+ return getInternalURLState(this)[getter]();
2464
+ },
2465
+ set: setter && function (value) {
2466
+ return getInternalURLState(this)[setter](value);
2467
+ },
2468
+ configurable: true,
2469
+ enumerable: true
2470
+ };
2471
+ };
2472
+
2473
+ if (DESCRIPTORS) {
2474
+ defineProperties(URLPrototype, {
2475
+ // `URL.prototype.href` accessors pair
2476
+ // https://url.spec.whatwg.org/#dom-url-href
2477
+ href: accessorDescriptor('serialize', 'setHref'),
2478
+ // `URL.prototype.origin` getter
2479
+ // https://url.spec.whatwg.org/#dom-url-origin
2480
+ origin: accessorDescriptor('getOrigin'),
2481
+ // `URL.prototype.protocol` accessors pair
2482
+ // https://url.spec.whatwg.org/#dom-url-protocol
2483
+ protocol: accessorDescriptor('getProtocol', 'setProtocol'),
2484
+ // `URL.prototype.username` accessors pair
2485
+ // https://url.spec.whatwg.org/#dom-url-username
2486
+ username: accessorDescriptor('getUsername', 'setUsername'),
2487
+ // `URL.prototype.password` accessors pair
2488
+ // https://url.spec.whatwg.org/#dom-url-password
2489
+ password: accessorDescriptor('getPassword', 'setPassword'),
2490
+ // `URL.prototype.host` accessors pair
2491
+ // https://url.spec.whatwg.org/#dom-url-host
2492
+ host: accessorDescriptor('getHost', 'setHost'),
2493
+ // `URL.prototype.hostname` accessors pair
2494
+ // https://url.spec.whatwg.org/#dom-url-hostname
2495
+ hostname: accessorDescriptor('getHostname', 'setHostname'),
2496
+ // `URL.prototype.port` accessors pair
2497
+ // https://url.spec.whatwg.org/#dom-url-port
2498
+ port: accessorDescriptor('getPort', 'setPort'),
2499
+ // `URL.prototype.pathname` accessors pair
2500
+ // https://url.spec.whatwg.org/#dom-url-pathname
2501
+ pathname: accessorDescriptor('getPathname', 'setPathname'),
2502
+ // `URL.prototype.search` accessors pair
2503
+ // https://url.spec.whatwg.org/#dom-url-search
2504
+ search: accessorDescriptor('getSearch', 'setSearch'),
2505
+ // `URL.prototype.searchParams` getter
2506
+ // https://url.spec.whatwg.org/#dom-url-searchparams
2507
+ searchParams: accessorDescriptor('getSearchParams'),
2508
+ // `URL.prototype.hash` accessors pair
2509
+ // https://url.spec.whatwg.org/#dom-url-hash
2510
+ hash: accessorDescriptor('getHash', 'setHash')
2511
+ });
2512
+ }
2513
+
2514
+ // `URL.prototype.toJSON` method
2515
+ // https://url.spec.whatwg.org/#dom-url-tojson
2516
+ redefine(URLPrototype, 'toJSON', function toJSON() {
2517
+ return getInternalURLState(this).serialize();
2518
+ }, { enumerable: true });
2519
+
2520
+ // `URL.prototype.toString` method
2521
+ // https://url.spec.whatwg.org/#URL-stringification-behavior
2522
+ redefine(URLPrototype, 'toString', function toString() {
2523
+ return getInternalURLState(this).serialize();
2524
+ }, { enumerable: true });
2525
+
2526
+ if (NativeURL) {
2527
+ var nativeCreateObjectURL = NativeURL.createObjectURL;
2528
+ var nativeRevokeObjectURL = NativeURL.revokeObjectURL;
2529
+ // `URL.createObjectURL` method
2530
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL
2531
+ if (nativeCreateObjectURL) redefine(URLConstructor, 'createObjectURL', bind(nativeCreateObjectURL, NativeURL));
2532
+ // `URL.revokeObjectURL` method
2533
+ // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL
2534
+ if (nativeRevokeObjectURL) redefine(URLConstructor, 'revokeObjectURL', bind(nativeRevokeObjectURL, NativeURL));
2535
+ }
2536
+
2537
+ setToStringTag(URLConstructor, 'URL');
2538
+
2539
+ $({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS }, {
2540
+ URL: URLConstructor
2541
+ });
2542
+
2543
+
1432
2544
  /***/ }),
1433
2545
 
1434
2546
  /***/ "2ba4":
@@ -20288,59 +21400,6 @@ var uncurryThis = __webpack_require__("e330");
20288
21400
  module.exports = uncurryThis({}.isPrototypeOf);
20289
21401
 
20290
21402
 
20291
- /***/ }),
20292
-
20293
- /***/ "3ad2":
20294
- /***/ (function(module, exports, __webpack_require__) {
20295
-
20296
- var map = {
20297
- "./adv-query/src/main.vue": "a3f9",
20298
- "./area-select/src/main.vue": "aa30",
20299
- "./authority/src/main.vue": "46d3",
20300
- "./avatar-list/src/main.vue": "e2db",
20301
- "./custom-query/src/main.vue": "8e19",
20302
- "./dialog/src/main.vue": "40df",
20303
- "./edit-area/src/main.vue": "70ec",
20304
- "./excel/src/main.vue": "d546",
20305
- "./export-dialog/src/main.vue": "89de",
20306
- "./filter-drop/src/main.vue": "d3da",
20307
- "./float-footer/src/main.vue": "905f",
20308
- "./form-active/src/main.vue": "d5de",
20309
- "./fragment/src/main.vue": "3e9a",
20310
- "./full-table/src/main.vue": "ce3c",
20311
- "./image-viewer/src/main.vue": "72b2",
20312
- "./nav-menu/src/main.vue": "926c",
20313
- "./organize-dialog/src/main.vue": "f1ee",
20314
- "./pagination/src/main.vue": "6549",
20315
- "./query-form/src/main.vue": "83d9",
20316
- "./select-vague/src/main.vue": "6f0b",
20317
- "./svg/src/main.vue": "5b81",
20318
- "./table-filter/src/main.vue": "9c3d",
20319
- "./table/src/main.vue": "4740",
20320
- "./tool-group/src/main.vue": "884a",
20321
- "./top-bar/src/main.vue": "2ce2"
20322
- };
20323
-
20324
-
20325
- function webpackContext(req) {
20326
- var id = webpackContextResolve(req);
20327
- return __webpack_require__(id);
20328
- }
20329
- function webpackContextResolve(req) {
20330
- if(!__webpack_require__.o(map, req)) {
20331
- var e = new Error("Cannot find module '" + req + "'");
20332
- e.code = 'MODULE_NOT_FOUND';
20333
- throw e;
20334
- }
20335
- return map[req];
20336
- }
20337
- webpackContext.keys = function webpackContextKeys() {
20338
- return Object.keys(map);
20339
- };
20340
- webpackContext.resolve = webpackContextResolve;
20341
- module.exports = webpackContext;
20342
- webpackContext.id = "3ad2";
20343
-
20344
21403
  /***/ }),
20345
21404
 
20346
21405
  /***/ "3bbe":
@@ -20532,6 +21591,17 @@ var component = Object(componentNormalizer["a" /* default */])(
20532
21591
 
20533
21592
  /* harmony default export */ var main = __webpack_exports__["default"] = (component.exports);
20534
21593
 
21594
+ /***/ }),
21595
+
21596
+ /***/ "3f11":
21597
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
21598
+
21599
+ "use strict";
21600
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6f87");
21601
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_main_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
21602
+ /* unused harmony reexport * */
21603
+
21604
+
20535
21605
  /***/ }),
20536
21606
 
20537
21607
  /***/ "3f8c":
@@ -23516,6 +24586,250 @@ module.exports = {
23516
24586
  };
23517
24587
 
23518
24588
 
24589
+ /***/ }),
24590
+
24591
+ /***/ "5eca":
24592
+ /***/ (function(module, exports, __webpack_require__) {
24593
+
24594
+ var map = {
24595
+ "./adv-query/src/main.vue": "a3f9",
24596
+ "./area-select/src/main.vue": "aa30",
24597
+ "./authority/src/main.vue": "46d3",
24598
+ "./avatar-list/src/main.vue": "e2db",
24599
+ "./custom-query/src/main.vue": "8e19",
24600
+ "./dialog/src/main.vue": "40df",
24601
+ "./edit-area/src/main.vue": "70ec",
24602
+ "./excel/src/main.vue": "d546",
24603
+ "./export-dialog/src/main.vue": "89de",
24604
+ "./filter-drop/src/main.vue": "d3da",
24605
+ "./float-footer/src/main.vue": "905f",
24606
+ "./form-active/src/main.vue": "d5de",
24607
+ "./fragment/src/main.vue": "3e9a",
24608
+ "./full-table/src/main.vue": "ce3c",
24609
+ "./image-viewer/src/main.vue": "72b2",
24610
+ "./nav-menu/src/main.vue": "926c",
24611
+ "./organize-dialog/src/main.vue": "f1ee",
24612
+ "./pagination/src/main.vue": "6549",
24613
+ "./query-form/src/main.vue": "83d9",
24614
+ "./select-vague/src/main.vue": "6f0b",
24615
+ "./svg/src/main.vue": "5b81",
24616
+ "./table-filter/src/main.vue": "9c3d",
24617
+ "./table/src/main.vue": "4740",
24618
+ "./tool-group/src/main.vue": "884a",
24619
+ "./top-bar/src/main.vue": "2ce2",
24620
+ "./upload/src/main.vue": "d2ee"
24621
+ };
24622
+
24623
+
24624
+ function webpackContext(req) {
24625
+ var id = webpackContextResolve(req);
24626
+ return __webpack_require__(id);
24627
+ }
24628
+ function webpackContextResolve(req) {
24629
+ if(!__webpack_require__.o(map, req)) {
24630
+ var e = new Error("Cannot find module '" + req + "'");
24631
+ e.code = 'MODULE_NOT_FOUND';
24632
+ throw e;
24633
+ }
24634
+ return map[req];
24635
+ }
24636
+ webpackContext.keys = function webpackContextKeys() {
24637
+ return Object.keys(map);
24638
+ };
24639
+ webpackContext.resolve = webpackContextResolve;
24640
+ module.exports = webpackContext;
24641
+ webpackContext.id = "5eca";
24642
+
24643
+ /***/ }),
24644
+
24645
+ /***/ "5fb2":
24646
+ /***/ (function(module, exports, __webpack_require__) {
24647
+
24648
+ "use strict";
24649
+
24650
+ // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js
24651
+ var global = __webpack_require__("da84");
24652
+ var uncurryThis = __webpack_require__("e330");
24653
+
24654
+ var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
24655
+ var base = 36;
24656
+ var tMin = 1;
24657
+ var tMax = 26;
24658
+ var skew = 38;
24659
+ var damp = 700;
24660
+ var initialBias = 72;
24661
+ var initialN = 128; // 0x80
24662
+ var delimiter = '-'; // '\x2D'
24663
+ var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars
24664
+ var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
24665
+ var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process';
24666
+ var baseMinusTMin = base - tMin;
24667
+
24668
+ var RangeError = global.RangeError;
24669
+ var exec = uncurryThis(regexSeparators.exec);
24670
+ var floor = Math.floor;
24671
+ var fromCharCode = String.fromCharCode;
24672
+ var charCodeAt = uncurryThis(''.charCodeAt);
24673
+ var join = uncurryThis([].join);
24674
+ var push = uncurryThis([].push);
24675
+ var replace = uncurryThis(''.replace);
24676
+ var split = uncurryThis(''.split);
24677
+ var toLowerCase = uncurryThis(''.toLowerCase);
24678
+
24679
+ /**
24680
+ * Creates an array containing the numeric code points of each Unicode
24681
+ * character in the string. While JavaScript uses UCS-2 internally,
24682
+ * this function will convert a pair of surrogate halves (each of which
24683
+ * UCS-2 exposes as separate characters) into a single code point,
24684
+ * matching UTF-16.
24685
+ */
24686
+ var ucs2decode = function (string) {
24687
+ var output = [];
24688
+ var counter = 0;
24689
+ var length = string.length;
24690
+ while (counter < length) {
24691
+ var value = charCodeAt(string, counter++);
24692
+ if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
24693
+ // It's a high surrogate, and there is a next character.
24694
+ var extra = charCodeAt(string, counter++);
24695
+ if ((extra & 0xFC00) == 0xDC00) { // Low surrogate.
24696
+ push(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
24697
+ } else {
24698
+ // It's an unmatched surrogate; only append this code unit, in case the
24699
+ // next code unit is the high surrogate of a surrogate pair.
24700
+ push(output, value);
24701
+ counter--;
24702
+ }
24703
+ } else {
24704
+ push(output, value);
24705
+ }
24706
+ }
24707
+ return output;
24708
+ };
24709
+
24710
+ /**
24711
+ * Converts a digit/integer into a basic code point.
24712
+ */
24713
+ var digitToBasic = function (digit) {
24714
+ // 0..25 map to ASCII a..z or A..Z
24715
+ // 26..35 map to ASCII 0..9
24716
+ return digit + 22 + 75 * (digit < 26);
24717
+ };
24718
+
24719
+ /**
24720
+ * Bias adaptation function as per section 3.4 of RFC 3492.
24721
+ * https://tools.ietf.org/html/rfc3492#section-3.4
24722
+ */
24723
+ var adapt = function (delta, numPoints, firstTime) {
24724
+ var k = 0;
24725
+ delta = firstTime ? floor(delta / damp) : delta >> 1;
24726
+ delta += floor(delta / numPoints);
24727
+ while (delta > baseMinusTMin * tMax >> 1) {
24728
+ delta = floor(delta / baseMinusTMin);
24729
+ k += base;
24730
+ }
24731
+ return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
24732
+ };
24733
+
24734
+ /**
24735
+ * Converts a string of Unicode symbols (e.g. a domain name label) to a
24736
+ * Punycode string of ASCII-only symbols.
24737
+ */
24738
+ var encode = function (input) {
24739
+ var output = [];
24740
+
24741
+ // Convert the input in UCS-2 to an array of Unicode code points.
24742
+ input = ucs2decode(input);
24743
+
24744
+ // Cache the length.
24745
+ var inputLength = input.length;
24746
+
24747
+ // Initialize the state.
24748
+ var n = initialN;
24749
+ var delta = 0;
24750
+ var bias = initialBias;
24751
+ var i, currentValue;
24752
+
24753
+ // Handle the basic code points.
24754
+ for (i = 0; i < input.length; i++) {
24755
+ currentValue = input[i];
24756
+ if (currentValue < 0x80) {
24757
+ push(output, fromCharCode(currentValue));
24758
+ }
24759
+ }
24760
+
24761
+ var basicLength = output.length; // number of basic code points.
24762
+ var handledCPCount = basicLength; // number of code points that have been handled;
24763
+
24764
+ // Finish the basic string with a delimiter unless it's empty.
24765
+ if (basicLength) {
24766
+ push(output, delimiter);
24767
+ }
24768
+
24769
+ // Main encoding loop:
24770
+ while (handledCPCount < inputLength) {
24771
+ // All non-basic code points < n have been handled already. Find the next larger one:
24772
+ var m = maxInt;
24773
+ for (i = 0; i < input.length; i++) {
24774
+ currentValue = input[i];
24775
+ if (currentValue >= n && currentValue < m) {
24776
+ m = currentValue;
24777
+ }
24778
+ }
24779
+
24780
+ // Increase `delta` enough to advance the decoder's <n,i> state to <m,0>, but guard against overflow.
24781
+ var handledCPCountPlusOne = handledCPCount + 1;
24782
+ if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
24783
+ throw RangeError(OVERFLOW_ERROR);
24784
+ }
24785
+
24786
+ delta += (m - n) * handledCPCountPlusOne;
24787
+ n = m;
24788
+
24789
+ for (i = 0; i < input.length; i++) {
24790
+ currentValue = input[i];
24791
+ if (currentValue < n && ++delta > maxInt) {
24792
+ throw RangeError(OVERFLOW_ERROR);
24793
+ }
24794
+ if (currentValue == n) {
24795
+ // Represent delta as a generalized variable-length integer.
24796
+ var q = delta;
24797
+ var k = base;
24798
+ while (true) {
24799
+ var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);
24800
+ if (q < t) break;
24801
+ var qMinusT = q - t;
24802
+ var baseMinusT = base - t;
24803
+ push(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
24804
+ q = floor(qMinusT / baseMinusT);
24805
+ k += base;
24806
+ }
24807
+
24808
+ push(output, fromCharCode(digitToBasic(q)));
24809
+ bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
24810
+ delta = 0;
24811
+ handledCPCount++;
24812
+ }
24813
+ }
24814
+
24815
+ delta++;
24816
+ n++;
24817
+ }
24818
+ return join(output, '');
24819
+ };
24820
+
24821
+ module.exports = function (input) {
24822
+ var encoded = [];
24823
+ var labels = split(replace(toLowerCase(input), regexSeparators, '\u002E'), '.');
24824
+ var i, label;
24825
+ for (i = 0; i < labels.length; i++) {
24826
+ label = labels[i];
24827
+ push(encoded, exec(regexNonASCII, label) ? 'xn--' + encode(label) : label);
24828
+ }
24829
+ return join(encoded, '.');
24830
+ };
24831
+
24832
+
23519
24833
  /***/ }),
23520
24834
 
23521
24835
  /***/ "605d":
@@ -24617,6 +25931,13 @@ var component = Object(componentNormalizer["a" /* default */])(
24617
25931
 
24618
25932
  /***/ }),
24619
25933
 
25934
+ /***/ "6f87":
25935
+ /***/ (function(module, exports, __webpack_require__) {
25936
+
25937
+ // extracted by mini-css-extract-plugin
25938
+
25939
+ /***/ }),
25940
+
24620
25941
  /***/ "7014":
24621
25942
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
24622
25943
 
@@ -27610,6 +28931,397 @@ var POLYFILL = isForced.POLYFILL = 'P';
27610
28931
  module.exports = isForced;
27611
28932
 
27612
28933
 
28934
+ /***/ }),
28935
+
28936
+ /***/ "9861":
28937
+ /***/ (function(module, exports, __webpack_require__) {
28938
+
28939
+ "use strict";
28940
+
28941
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
28942
+ __webpack_require__("e260");
28943
+ var $ = __webpack_require__("23e7");
28944
+ var global = __webpack_require__("da84");
28945
+ var getBuiltIn = __webpack_require__("d066");
28946
+ var call = __webpack_require__("c65b");
28947
+ var uncurryThis = __webpack_require__("e330");
28948
+ var USE_NATIVE_URL = __webpack_require__("0d3b");
28949
+ var redefine = __webpack_require__("6eeb");
28950
+ var redefineAll = __webpack_require__("e2cc");
28951
+ var setToStringTag = __webpack_require__("d44e");
28952
+ var createIteratorConstructor = __webpack_require__("9ed3");
28953
+ var InternalStateModule = __webpack_require__("69f3");
28954
+ var anInstance = __webpack_require__("19aa");
28955
+ var isCallable = __webpack_require__("1626");
28956
+ var hasOwn = __webpack_require__("1a2d");
28957
+ var bind = __webpack_require__("0366");
28958
+ var classof = __webpack_require__("f5df");
28959
+ var anObject = __webpack_require__("825a");
28960
+ var isObject = __webpack_require__("861d");
28961
+ var $toString = __webpack_require__("577e");
28962
+ var create = __webpack_require__("7c73");
28963
+ var createPropertyDescriptor = __webpack_require__("5c6c");
28964
+ var getIterator = __webpack_require__("9a1f");
28965
+ var getIteratorMethod = __webpack_require__("35a1");
28966
+ var validateArgumentsLength = __webpack_require__("d6d6");
28967
+ var wellKnownSymbol = __webpack_require__("b622");
28968
+ var arraySort = __webpack_require__("addb");
28969
+
28970
+ var ITERATOR = wellKnownSymbol('iterator');
28971
+ var URL_SEARCH_PARAMS = 'URLSearchParams';
28972
+ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
28973
+ var setInternalState = InternalStateModule.set;
28974
+ var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
28975
+ var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
28976
+
28977
+ var n$Fetch = getBuiltIn('fetch');
28978
+ var N$Request = getBuiltIn('Request');
28979
+ var Headers = getBuiltIn('Headers');
28980
+ var RequestPrototype = N$Request && N$Request.prototype;
28981
+ var HeadersPrototype = Headers && Headers.prototype;
28982
+ var RegExp = global.RegExp;
28983
+ var TypeError = global.TypeError;
28984
+ var decodeURIComponent = global.decodeURIComponent;
28985
+ var encodeURIComponent = global.encodeURIComponent;
28986
+ var charAt = uncurryThis(''.charAt);
28987
+ var join = uncurryThis([].join);
28988
+ var push = uncurryThis([].push);
28989
+ var replace = uncurryThis(''.replace);
28990
+ var shift = uncurryThis([].shift);
28991
+ var splice = uncurryThis([].splice);
28992
+ var split = uncurryThis(''.split);
28993
+ var stringSlice = uncurryThis(''.slice);
28994
+
28995
+ var plus = /\+/g;
28996
+ var sequences = Array(4);
28997
+
28998
+ var percentSequence = function (bytes) {
28999
+ return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
29000
+ };
29001
+
29002
+ var percentDecode = function (sequence) {
29003
+ try {
29004
+ return decodeURIComponent(sequence);
29005
+ } catch (error) {
29006
+ return sequence;
29007
+ }
29008
+ };
29009
+
29010
+ var deserialize = function (it) {
29011
+ var result = replace(it, plus, ' ');
29012
+ var bytes = 4;
29013
+ try {
29014
+ return decodeURIComponent(result);
29015
+ } catch (error) {
29016
+ while (bytes) {
29017
+ result = replace(result, percentSequence(bytes--), percentDecode);
29018
+ }
29019
+ return result;
29020
+ }
29021
+ };
29022
+
29023
+ var find = /[!'()~]|%20/g;
29024
+
29025
+ var replacements = {
29026
+ '!': '%21',
29027
+ "'": '%27',
29028
+ '(': '%28',
29029
+ ')': '%29',
29030
+ '~': '%7E',
29031
+ '%20': '+'
29032
+ };
29033
+
29034
+ var replacer = function (match) {
29035
+ return replacements[match];
29036
+ };
29037
+
29038
+ var serialize = function (it) {
29039
+ return replace(encodeURIComponent(it), find, replacer);
29040
+ };
29041
+
29042
+ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
29043
+ setInternalState(this, {
29044
+ type: URL_SEARCH_PARAMS_ITERATOR,
29045
+ iterator: getIterator(getInternalParamsState(params).entries),
29046
+ kind: kind
29047
+ });
29048
+ }, 'Iterator', function next() {
29049
+ var state = getInternalIteratorState(this);
29050
+ var kind = state.kind;
29051
+ var step = state.iterator.next();
29052
+ var entry = step.value;
29053
+ if (!step.done) {
29054
+ step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];
29055
+ } return step;
29056
+ }, true);
29057
+
29058
+ var URLSearchParamsState = function (init) {
29059
+ this.entries = [];
29060
+ this.url = null;
29061
+
29062
+ if (init !== undefined) {
29063
+ if (isObject(init)) this.parseObject(init);
29064
+ else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
29065
+ }
29066
+ };
29067
+
29068
+ URLSearchParamsState.prototype = {
29069
+ type: URL_SEARCH_PARAMS,
29070
+ bindURL: function (url) {
29071
+ this.url = url;
29072
+ this.update();
29073
+ },
29074
+ parseObject: function (object) {
29075
+ var iteratorMethod = getIteratorMethod(object);
29076
+ var iterator, next, step, entryIterator, entryNext, first, second;
29077
+
29078
+ if (iteratorMethod) {
29079
+ iterator = getIterator(object, iteratorMethod);
29080
+ next = iterator.next;
29081
+ while (!(step = call(next, iterator)).done) {
29082
+ entryIterator = getIterator(anObject(step.value));
29083
+ entryNext = entryIterator.next;
29084
+ if (
29085
+ (first = call(entryNext, entryIterator)).done ||
29086
+ (second = call(entryNext, entryIterator)).done ||
29087
+ !call(entryNext, entryIterator).done
29088
+ ) throw TypeError('Expected sequence with length 2');
29089
+ push(this.entries, { key: $toString(first.value), value: $toString(second.value) });
29090
+ }
29091
+ } else for (var key in object) if (hasOwn(object, key)) {
29092
+ push(this.entries, { key: key, value: $toString(object[key]) });
29093
+ }
29094
+ },
29095
+ parseQuery: function (query) {
29096
+ if (query) {
29097
+ var attributes = split(query, '&');
29098
+ var index = 0;
29099
+ var attribute, entry;
29100
+ while (index < attributes.length) {
29101
+ attribute = attributes[index++];
29102
+ if (attribute.length) {
29103
+ entry = split(attribute, '=');
29104
+ push(this.entries, {
29105
+ key: deserialize(shift(entry)),
29106
+ value: deserialize(join(entry, '='))
29107
+ });
29108
+ }
29109
+ }
29110
+ }
29111
+ },
29112
+ serialize: function () {
29113
+ var entries = this.entries;
29114
+ var result = [];
29115
+ var index = 0;
29116
+ var entry;
29117
+ while (index < entries.length) {
29118
+ entry = entries[index++];
29119
+ push(result, serialize(entry.key) + '=' + serialize(entry.value));
29120
+ } return join(result, '&');
29121
+ },
29122
+ update: function () {
29123
+ this.entries.length = 0;
29124
+ this.parseQuery(this.url.query);
29125
+ },
29126
+ updateURL: function () {
29127
+ if (this.url) this.url.update();
29128
+ }
29129
+ };
29130
+
29131
+ // `URLSearchParams` constructor
29132
+ // https://url.spec.whatwg.org/#interface-urlsearchparams
29133
+ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
29134
+ anInstance(this, URLSearchParamsPrototype);
29135
+ var init = arguments.length > 0 ? arguments[0] : undefined;
29136
+ setInternalState(this, new URLSearchParamsState(init));
29137
+ };
29138
+
29139
+ var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
29140
+
29141
+ redefineAll(URLSearchParamsPrototype, {
29142
+ // `URLSearchParams.prototype.append` method
29143
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-append
29144
+ append: function append(name, value) {
29145
+ validateArgumentsLength(arguments.length, 2);
29146
+ var state = getInternalParamsState(this);
29147
+ push(state.entries, { key: $toString(name), value: $toString(value) });
29148
+ state.updateURL();
29149
+ },
29150
+ // `URLSearchParams.prototype.delete` method
29151
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
29152
+ 'delete': function (name) {
29153
+ validateArgumentsLength(arguments.length, 1);
29154
+ var state = getInternalParamsState(this);
29155
+ var entries = state.entries;
29156
+ var key = $toString(name);
29157
+ var index = 0;
29158
+ while (index < entries.length) {
29159
+ if (entries[index].key === key) splice(entries, index, 1);
29160
+ else index++;
29161
+ }
29162
+ state.updateURL();
29163
+ },
29164
+ // `URLSearchParams.prototype.get` method
29165
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-get
29166
+ get: function get(name) {
29167
+ validateArgumentsLength(arguments.length, 1);
29168
+ var entries = getInternalParamsState(this).entries;
29169
+ var key = $toString(name);
29170
+ var index = 0;
29171
+ for (; index < entries.length; index++) {
29172
+ if (entries[index].key === key) return entries[index].value;
29173
+ }
29174
+ return null;
29175
+ },
29176
+ // `URLSearchParams.prototype.getAll` method
29177
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
29178
+ getAll: function getAll(name) {
29179
+ validateArgumentsLength(arguments.length, 1);
29180
+ var entries = getInternalParamsState(this).entries;
29181
+ var key = $toString(name);
29182
+ var result = [];
29183
+ var index = 0;
29184
+ for (; index < entries.length; index++) {
29185
+ if (entries[index].key === key) push(result, entries[index].value);
29186
+ }
29187
+ return result;
29188
+ },
29189
+ // `URLSearchParams.prototype.has` method
29190
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-has
29191
+ has: function has(name) {
29192
+ validateArgumentsLength(arguments.length, 1);
29193
+ var entries = getInternalParamsState(this).entries;
29194
+ var key = $toString(name);
29195
+ var index = 0;
29196
+ while (index < entries.length) {
29197
+ if (entries[index++].key === key) return true;
29198
+ }
29199
+ return false;
29200
+ },
29201
+ // `URLSearchParams.prototype.set` method
29202
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-set
29203
+ set: function set(name, value) {
29204
+ validateArgumentsLength(arguments.length, 1);
29205
+ var state = getInternalParamsState(this);
29206
+ var entries = state.entries;
29207
+ var found = false;
29208
+ var key = $toString(name);
29209
+ var val = $toString(value);
29210
+ var index = 0;
29211
+ var entry;
29212
+ for (; index < entries.length; index++) {
29213
+ entry = entries[index];
29214
+ if (entry.key === key) {
29215
+ if (found) splice(entries, index--, 1);
29216
+ else {
29217
+ found = true;
29218
+ entry.value = val;
29219
+ }
29220
+ }
29221
+ }
29222
+ if (!found) push(entries, { key: key, value: val });
29223
+ state.updateURL();
29224
+ },
29225
+ // `URLSearchParams.prototype.sort` method
29226
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
29227
+ sort: function sort() {
29228
+ var state = getInternalParamsState(this);
29229
+ arraySort(state.entries, function (a, b) {
29230
+ return a.key > b.key ? 1 : -1;
29231
+ });
29232
+ state.updateURL();
29233
+ },
29234
+ // `URLSearchParams.prototype.forEach` method
29235
+ forEach: function forEach(callback /* , thisArg */) {
29236
+ var entries = getInternalParamsState(this).entries;
29237
+ var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
29238
+ var index = 0;
29239
+ var entry;
29240
+ while (index < entries.length) {
29241
+ entry = entries[index++];
29242
+ boundFunction(entry.value, entry.key, this);
29243
+ }
29244
+ },
29245
+ // `URLSearchParams.prototype.keys` method
29246
+ keys: function keys() {
29247
+ return new URLSearchParamsIterator(this, 'keys');
29248
+ },
29249
+ // `URLSearchParams.prototype.values` method
29250
+ values: function values() {
29251
+ return new URLSearchParamsIterator(this, 'values');
29252
+ },
29253
+ // `URLSearchParams.prototype.entries` method
29254
+ entries: function entries() {
29255
+ return new URLSearchParamsIterator(this, 'entries');
29256
+ }
29257
+ }, { enumerable: true });
29258
+
29259
+ // `URLSearchParams.prototype[@@iterator]` method
29260
+ redefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
29261
+
29262
+ // `URLSearchParams.prototype.toString` method
29263
+ // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
29264
+ redefine(URLSearchParamsPrototype, 'toString', function toString() {
29265
+ return getInternalParamsState(this).serialize();
29266
+ }, { enumerable: true });
29267
+
29268
+ setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
29269
+
29270
+ $({ global: true, forced: !USE_NATIVE_URL }, {
29271
+ URLSearchParams: URLSearchParamsConstructor
29272
+ });
29273
+
29274
+ // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
29275
+ if (!USE_NATIVE_URL && isCallable(Headers)) {
29276
+ var headersHas = uncurryThis(HeadersPrototype.has);
29277
+ var headersSet = uncurryThis(HeadersPrototype.set);
29278
+
29279
+ var wrapRequestOptions = function (init) {
29280
+ if (isObject(init)) {
29281
+ var body = init.body;
29282
+ var headers;
29283
+ if (classof(body) === URL_SEARCH_PARAMS) {
29284
+ headers = init.headers ? new Headers(init.headers) : new Headers();
29285
+ if (!headersHas(headers, 'content-type')) {
29286
+ headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
29287
+ }
29288
+ return create(init, {
29289
+ body: createPropertyDescriptor(0, $toString(body)),
29290
+ headers: createPropertyDescriptor(0, headers)
29291
+ });
29292
+ }
29293
+ } return init;
29294
+ };
29295
+
29296
+ if (isCallable(n$Fetch)) {
29297
+ $({ global: true, enumerable: true, forced: true }, {
29298
+ fetch: function fetch(input /* , init */) {
29299
+ return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
29300
+ }
29301
+ });
29302
+ }
29303
+
29304
+ if (isCallable(N$Request)) {
29305
+ var RequestConstructor = function Request(input /* , init */) {
29306
+ anInstance(this, RequestPrototype);
29307
+ return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
29308
+ };
29309
+
29310
+ RequestPrototype.constructor = RequestConstructor;
29311
+ RequestConstructor.prototype = RequestPrototype;
29312
+
29313
+ $({ global: true, forced: true }, {
29314
+ Request: RequestConstructor
29315
+ });
29316
+ }
29317
+ }
29318
+
29319
+ module.exports = {
29320
+ URLSearchParams: URLSearchParamsConstructor,
29321
+ getState: getInternalParamsState
29322
+ };
29323
+
29324
+
27613
29325
  /***/ }),
27614
29326
 
27615
29327
  /***/ "99af":
@@ -27886,6 +29598,13 @@ var component = Object(componentNormalizer["a" /* default */])(
27886
29598
 
27887
29599
  /***/ }),
27888
29600
 
29601
+ /***/ "9cdf":
29602
+ /***/ (function(module, exports, __webpack_require__) {
29603
+
29604
+ // extracted by mini-css-extract-plugin
29605
+
29606
+ /***/ }),
29607
+
27889
29608
  /***/ "9d7e":
27890
29609
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
27891
29610
 
@@ -28995,6 +30714,55 @@ module.exports = function (METHOD_NAME, argument) {
28995
30714
  };
28996
30715
 
28997
30716
 
30717
+ /***/ }),
30718
+
30719
+ /***/ "a79d":
30720
+ /***/ (function(module, exports, __webpack_require__) {
30721
+
30722
+ "use strict";
30723
+
30724
+ var $ = __webpack_require__("23e7");
30725
+ var IS_PURE = __webpack_require__("c430");
30726
+ var NativePromise = __webpack_require__("fea9");
30727
+ var fails = __webpack_require__("d039");
30728
+ var getBuiltIn = __webpack_require__("d066");
30729
+ var isCallable = __webpack_require__("1626");
30730
+ var speciesConstructor = __webpack_require__("4840");
30731
+ var promiseResolve = __webpack_require__("cdf9");
30732
+ var redefine = __webpack_require__("6eeb");
30733
+
30734
+ // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
30735
+ var NON_GENERIC = !!NativePromise && fails(function () {
30736
+ // eslint-disable-next-line unicorn/no-thenable -- required for testing
30737
+ NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
30738
+ });
30739
+
30740
+ // `Promise.prototype.finally` method
30741
+ // https://tc39.es/ecma262/#sec-promise.prototype.finally
30742
+ $({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
30743
+ 'finally': function (onFinally) {
30744
+ var C = speciesConstructor(this, getBuiltIn('Promise'));
30745
+ var isFunction = isCallable(onFinally);
30746
+ return this.then(
30747
+ isFunction ? function (x) {
30748
+ return promiseResolve(C, onFinally()).then(function () { return x; });
30749
+ } : onFinally,
30750
+ isFunction ? function (e) {
30751
+ return promiseResolve(C, onFinally()).then(function () { throw e; });
30752
+ } : onFinally
30753
+ );
30754
+ }
30755
+ });
30756
+
30757
+ // makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
30758
+ if (!IS_PURE && isCallable(NativePromise)) {
30759
+ var method = getBuiltIn('Promise').prototype['finally'];
30760
+ if (NativePromise.prototype['finally'] !== method) {
30761
+ redefine(NativePromise.prototype, 'finally', method, { unsafe: true });
30762
+ }
30763
+ }
30764
+
30765
+
28998
30766
  /***/ }),
28999
30767
 
29000
30768
  /***/ "a9e3":
@@ -36622,6 +38390,683 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
36622
38390
  }() : undefined);
36623
38391
 
36624
38392
 
38393
+ /***/ }),
38394
+
38395
+ /***/ "d2ee":
38396
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
38397
+
38398
+ "use strict";
38399
+ // ESM COMPAT FLAG
38400
+ __webpack_require__.r(__webpack_exports__);
38401
+
38402
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b671419-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=template&id=5a2b1b66&
38403
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{key:_vm.key,staticClass:"hb-upload"},[_c('div',{directives:[{name:"layout-flex",rawName:"v-layout-flex",value:({ gutter: 20, maxWidth: 280 }),expression:"{ gutter: 20, maxWidth: 280 }"}],staticClass:"hb-upload-wrapper"},[_vm._l((_vm.list),function(item,index){return _c('div',{key:index,staticClass:"unit-item-wrapper"},[_c('div',{staticClass:"file unit-item",on:{"click":function($event){return _vm.viewFile(item)}}},[_c('HbSvg',{attrs:{"iconClass":_vm._f("fileIcon")(true,_vm.getSuffix(item.fileName)),"fontSize":"44px"}}),_c('div',{staticClass:"right"},[_c('div',{staticClass:"title"},[_vm._v(" "+_vm._s(item.fileName)+" ")]),_c('div',{staticClass:"info"},[_c('div',{staticClass:"time"},[_vm._v(_vm._s(item.createTime))]),_c('div',{staticClass:"icon"},[(item.fileType != '2')?_c('i',{staticClass:"icon-main-xiazai mr20",on:{"click":function($event){$event.stopPropagation();return _vm.downloadFile(item)}}}):_vm._e(),(_vm.editAble)?_c('i',{staticClass:"icon-main-shanchu",on:{"click":function($event){$event.stopPropagation();return _vm.remove(index, item.fileName)}}}):_vm._e()])])])],1),_vm._t("default",null,{"fileData":item})],2)}),(_vm.editAble)?_c('div',{staticClass:"upload unit-item"},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.netDisc),expression:"netDisc"}],staticClass:"netdisc",on:{"click":_vm.openNetDisc}},[_vm._v(" 选择网盘地址 ")]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.link),expression:"link"}],staticClass:"link",on:{"click":_vm.openLink}},[_vm._v("自定义链接")]),_c('div',{staticClass:"local-file",on:{"click":_vm.openFile}},[_c('i',{staticClass:"el-icon-plus"}),_vm._v(" 上传附件 "),_c('input',{ref:"input",staticClass:"hidden",attrs:{"type":"file","multiple":""},on:{"change":_vm.chooseFile}})])]):_vm._e()],2),_c('NetDisc',{ref:"netDisc",on:{"submit":_vm.addNet}}),_c('CustomLink',{ref:"customLink",on:{"submit":_vm.addLink}})],1)}
38404
+ var staticRenderFns = []
38405
+
38406
+
38407
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=template&id=5a2b1b66&
38408
+
38409
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
38410
+ var es_array_iterator = __webpack_require__("e260");
38411
+
38412
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
38413
+ var es_object_to_string = __webpack_require__("d3b7");
38414
+
38415
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
38416
+ var es_string_iterator = __webpack_require__("3ca3");
38417
+
38418
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.iterator.js
38419
+ var web_dom_collections_iterator = __webpack_require__("ddb0");
38420
+
38421
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url.js
38422
+ var web_url = __webpack_require__("2b3d");
38423
+
38424
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.js
38425
+ var web_url_search_params = __webpack_require__("9861");
38426
+
38427
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
38428
+ var es_array_from = __webpack_require__("a630");
38429
+
38430
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
38431
+ var web_dom_collections_for_each = __webpack_require__("159b");
38432
+
38433
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
38434
+ var es_array_map = __webpack_require__("d81d");
38435
+
38436
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
38437
+ var es_array_splice = __webpack_require__("a434");
38438
+
38439
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
38440
+ var es_regexp_exec = __webpack_require__("ac1f");
38441
+
38442
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
38443
+ var es_string_split = __webpack_require__("1276");
38444
+
38445
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
38446
+ var es_array_find = __webpack_require__("7db0");
38447
+
38448
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
38449
+ var es_array_includes = __webpack_require__("caad");
38450
+
38451
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
38452
+ var es_string_includes = __webpack_require__("2532");
38453
+
38454
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b671419-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/NetDisc.vue?vue&type=template&id=7e781764&
38455
+ var NetDiscvue_type_template_id_7e781764_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('hb-dialog',{ref:"dialog",attrs:{"title":"选择网盘地址","width":"700px","top":"0","append-to-body":true,"destroy-on-close":true},on:{"submit":_vm.submit,"closed":_vm.clear}},[_c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"wrapper",attrs:{"slot":"normal"},slot:"normal"},[_c('div',{staticClass:"top"},[_c('el-select',{attrs:{"clearable":false},on:{"change":_vm.discChange},model:{value:(_vm.disc),callback:function ($$v) {_vm.disc=$$v},expression:"disc"}},[_c('el-option',{attrs:{"label":"企业网盘","value":1}}),_c('el-option',{attrs:{"label":"我的收藏","value":2}})],1),_c('el-input',{staticClass:"search-ipt ml10",attrs:{"prefix-icon":"el-icon-search","size":"mini","placeholder":"输入文件名查找","clearable":""},nativeOn:{"keypress":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.init(0)}},model:{value:(_vm.searchValue),callback:function ($$v) {_vm.searchValue=$$v},expression:"searchValue"}},[_c('template',{slot:"append"},[_c('span',{staticClass:"append-text",on:{"click":function($event){return _vm.init(0)}}},[_vm._v("搜索")])])],2)],1),(_vm.disc === 1)?_c('el-breadcrumb',{staticClass:"custom-breadcrumb mb15",attrs:{"separator-class":"el-icon-arrow-right"}},_vm._l((_vm.breadList),function(item,index){return _c('el-breadcrumb-item',{key:index,nativeOn:{"click":function($event){return _vm.init(item.id, index === _vm.breadList.length - 1)}}},[_c('el-link',{attrs:{"type":index !== _vm.breadList.length - 1 ? 'primary' : '',"underline":false}},[_vm._v(" "+_vm._s(item.name)+" ")])],1)}),1):_vm._e(),_c('div',{staticClass:"tree-wrapper"},[_c('ul',_vm._l((_vm.treeList),function(item){return _c('li',{key:item.id,on:{"click":function($event){return _vm.init(item.id, item.fileType === '1')}}},[_c('div',{staticClass:"flex"},[_c('HbSvg',{staticClass:"mr10",attrs:{"iconClass":_vm._f("filterFileIcon")(true,_vm.getSuffix(item.fileName))}}),_c('div',{staticClass:"title",attrs:{"title":item.fileName}},[_vm._v(" "+_vm._s(item.fileName)+" ")])],1),(item.fileType === '1')?_c('div',{staticClass:"check-box",class:{ selected: _vm.selected.some(function (i) { return i.fileUrl === item.id; }) },on:{"click":function($event){$event.stopPropagation();return _vm.choose(item)}}}):_vm._e()])}),0)])],1)])}
38456
+ var NetDiscvue_type_template_id_7e781764_staticRenderFns = []
38457
+
38458
+
38459
+ // CONCATENATED MODULE: ./packages/upload/src/component/NetDisc.vue?vue&type=template&id=7e781764&
38460
+
38461
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 5 modules
38462
+ var toConsumableArray = __webpack_require__("2909");
38463
+
38464
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find-index.js
38465
+ var es_array_find_index = __webpack_require__("c740");
38466
+
38467
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.js
38468
+ var es_promise = __webpack_require__("e6cf");
38469
+
38470
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.promise.finally.js
38471
+ var es_promise_finally = __webpack_require__("a79d");
38472
+
38473
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/NetDisc.vue?vue&type=script&lang=js&
38474
+
38475
+
38476
+
38477
+
38478
+
38479
+
38480
+
38481
+
38482
+ //
38483
+ //
38484
+ //
38485
+ //
38486
+ //
38487
+ //
38488
+ //
38489
+ //
38490
+ //
38491
+ //
38492
+ //
38493
+ //
38494
+ //
38495
+ //
38496
+ //
38497
+ //
38498
+ //
38499
+ //
38500
+ //
38501
+ //
38502
+ //
38503
+ //
38504
+ //
38505
+ //
38506
+ //
38507
+ //
38508
+ //
38509
+ //
38510
+ //
38511
+ //
38512
+ //
38513
+ //
38514
+ //
38515
+ //
38516
+ //
38517
+ //
38518
+ //
38519
+ //
38520
+ //
38521
+ //
38522
+ //
38523
+ //
38524
+ //
38525
+ //
38526
+ //
38527
+ //
38528
+ //
38529
+ //
38530
+ //
38531
+ //
38532
+ //
38533
+ //
38534
+ //
38535
+ //
38536
+ //
38537
+ //
38538
+ //
38539
+ //
38540
+ //
38541
+ //
38542
+ //
38543
+ //
38544
+ //
38545
+ //
38546
+ //
38547
+ //
38548
+ //
38549
+ //
38550
+ //
38551
+ //
38552
+ //
38553
+ //
38554
+ //
38555
+ //
38556
+ //
38557
+ //
38558
+ //
38559
+ //
38560
+ //
38561
+ //
38562
+ /* harmony default export */ var NetDiscvue_type_script_lang_js_ = ({
38563
+ data: function data() {
38564
+ return {
38565
+ disc: 1,
38566
+ parentId: 0,
38567
+ breadList: [],
38568
+ treeList: [],
38569
+ selected: [],
38570
+ loading: true,
38571
+ searchValue: undefined
38572
+ };
38573
+ },
38574
+ methods: {
38575
+ clear: function clear() {
38576
+ this.parentId = 0;
38577
+ this.breadList = [];
38578
+ this.treeList = [];
38579
+ this.selected = [];
38580
+ this.loading = true;
38581
+ },
38582
+ open: function open() {
38583
+ this.$refs.dialog.open();
38584
+ this.init(this.parentId);
38585
+ },
38586
+ choose: function choose(item) {
38587
+ var index = this.selected.findIndex(function (i) {
38588
+ return i.fileUrl === item.id;
38589
+ });
38590
+
38591
+ if (index === -1) {
38592
+ this.selected.push({
38593
+ fileName: item.fileName,
38594
+ fileUrl: item.id,
38595
+ fileType: "3",
38596
+ downUrl: item.downloadUrl,
38597
+ onlineUrl: item.onlineUrl
38598
+ });
38599
+ } else {
38600
+ this.selected.splice(index, 1);
38601
+ }
38602
+ },
38603
+ getBreadList: function getBreadList() {
38604
+ var _this = this;
38605
+
38606
+ this.$http.get("/ndAuth/bread/".concat(this.parentId), {
38607
+ baseURL: "/platform"
38608
+ }).then(function (res) {
38609
+ _this.breadList = res;
38610
+ }).finally(function () {
38611
+ _this.loading = false;
38612
+ });
38613
+ },
38614
+ getTreeList: function getTreeList() {
38615
+ var _this2 = this;
38616
+
38617
+ this.$http.post("/ndRecord/recordByUser", {
38618
+ pSingle: this.parentId,
38619
+ fileName: this.searchValue
38620
+ }, {
38621
+ baseURL: "/platform"
38622
+ }).then(function (res) {
38623
+ _this2.treeList = res.record;
38624
+ }).finally(function () {
38625
+ _this2.loading = false;
38626
+ });
38627
+ },
38628
+ getCollectList: function getCollectList() {
38629
+ var _this3 = this;
38630
+
38631
+ this.loading = true;
38632
+ this.$http.get("/ndCollect/collectList").then(function (res) {
38633
+ _this3.treeList = res;
38634
+ }).finally(function () {
38635
+ _this3.loading = false;
38636
+ });
38637
+ },
38638
+ init: function init(pid) {
38639
+ var boo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
38640
+
38641
+ if (!boo) {
38642
+ this.loading = true;
38643
+ this.selected = [];
38644
+ this.parentId = pid;
38645
+ this.getBreadList();
38646
+ this.getTreeList();
38647
+ }
38648
+ },
38649
+ submit: function submit() {
38650
+ if (this.selected.length) {
38651
+ this.$emit("submit", Object(toConsumableArray["a" /* default */])(this.selected));
38652
+ }
38653
+
38654
+ this.$refs.dialog.close();
38655
+ },
38656
+ discChange: function discChange(val) {
38657
+ if (val === 1) {
38658
+ this.init(this.parentId);
38659
+ return;
38660
+ }
38661
+
38662
+ this.getCollectList();
38663
+ }
38664
+ },
38665
+ computed: {
38666
+ getSuffix: function getSuffix() {
38667
+ return function (filename) {
38668
+ if (!filename) return "";
38669
+ var arr = filename.split(".");
38670
+
38671
+ if (arr.length === 1) {
38672
+ return "";
38673
+ } else {
38674
+ return "." + arr.pop();
38675
+ }
38676
+ };
38677
+ }
38678
+ }
38679
+ });
38680
+ // CONCATENATED MODULE: ./packages/upload/src/component/NetDisc.vue?vue&type=script&lang=js&
38681
+ /* harmony default export */ var component_NetDiscvue_type_script_lang_js_ = (NetDiscvue_type_script_lang_js_);
38682
+ // EXTERNAL MODULE: ./packages/upload/src/component/NetDisc.vue?vue&type=style&index=0&lang=scss&
38683
+ var NetDiscvue_type_style_index_0_lang_scss_ = __webpack_require__("dad1");
38684
+
38685
+ // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
38686
+ var componentNormalizer = __webpack_require__("2877");
38687
+
38688
+ // CONCATENATED MODULE: ./packages/upload/src/component/NetDisc.vue
38689
+
38690
+
38691
+
38692
+
38693
+
38694
+
38695
+ /* normalize component */
38696
+
38697
+ var component = Object(componentNormalizer["a" /* default */])(
38698
+ component_NetDiscvue_type_script_lang_js_,
38699
+ NetDiscvue_type_template_id_7e781764_render,
38700
+ NetDiscvue_type_template_id_7e781764_staticRenderFns,
38701
+ false,
38702
+ null,
38703
+ null,
38704
+ null
38705
+
38706
+ )
38707
+
38708
+ /* harmony default export */ var NetDisc = (component.exports);
38709
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b671419-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=template&id=01816d01&
38710
+ var CustomLinkvue_type_template_id_01816d01_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('hb-dialog',{ref:"dialog",attrs:{"width":"480px","title":"添加自定义链接","formData":_vm.formData,"rules":_vm.rules,"append-to-body":true,"destroy-on-close":true},on:{"submit":_vm.submit,"closed":_vm.clear},scopedSlots:_vm._u([{key:"form",fn:function(){return [_c('el-form-item',{attrs:{"label":"文件名","prop":"fileName"}},[_c('el-input',{attrs:{"maxlength":"50"},model:{value:(_vm.formData.fileName),callback:function ($$v) {_vm.$set(_vm.formData, "fileName", $$v)},expression:"formData.fileName"}})],1),_c('el-form-item',{attrs:{"label":"链接","prop":"fileUrl"}},[_c('el-input',{attrs:{"maxlength":"200"},model:{value:(_vm.formData.fileUrl),callback:function ($$v) {_vm.$set(_vm.formData, "fileUrl", $$v)},expression:"formData.fileUrl"}})],1)]},proxy:true}])})}
38711
+ var CustomLinkvue_type_template_id_01816d01_staticRenderFns = []
38712
+
38713
+
38714
+ // CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=template&id=01816d01&
38715
+
38716
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
38717
+ var objectSpread2 = __webpack_require__("5530");
38718
+
38719
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/component/CustomLink.vue?vue&type=script&lang=js&
38720
+
38721
+ //
38722
+ //
38723
+ //
38724
+ //
38725
+ //
38726
+ //
38727
+ //
38728
+ //
38729
+ //
38730
+ //
38731
+ //
38732
+ //
38733
+ //
38734
+ //
38735
+ //
38736
+ //
38737
+ //
38738
+ //
38739
+ //
38740
+ //
38741
+ //
38742
+ //
38743
+ /* harmony default export */ var CustomLinkvue_type_script_lang_js_ = ({
38744
+ data: function data() {
38745
+ return {
38746
+ formData: {
38747
+ fileName: "",
38748
+ fileType: 2,
38749
+ fileUrl: ""
38750
+ },
38751
+ rules: {
38752
+ fileName: [{
38753
+ required: true,
38754
+ message: "请输入文件名",
38755
+ trigger: "change"
38756
+ }],
38757
+ fileUrl: [{
38758
+ required: true,
38759
+ message: "请输入链接",
38760
+ trigger: "change"
38761
+ }]
38762
+ }
38763
+ };
38764
+ },
38765
+ methods: {
38766
+ open: function open() {
38767
+ this.$refs.dialog.open();
38768
+ this.$refs.dialog.clearValidate();
38769
+ },
38770
+ submit: function submit() {
38771
+ this.formData.fileUrl;
38772
+ this.$emit("submit", Object(objectSpread2["a" /* default */])({}, this.formData));
38773
+ this.$refs.dialog.close();
38774
+ },
38775
+ clear: function clear() {
38776
+ this.formData = {
38777
+ fileName: "",
38778
+ fileType: "2",
38779
+ fileUrl: ""
38780
+ };
38781
+ }
38782
+ }
38783
+ });
38784
+ // CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue?vue&type=script&lang=js&
38785
+ /* harmony default export */ var component_CustomLinkvue_type_script_lang_js_ = (CustomLinkvue_type_script_lang_js_);
38786
+ // CONCATENATED MODULE: ./packages/upload/src/component/CustomLink.vue
38787
+
38788
+
38789
+
38790
+
38791
+
38792
+ /* normalize component */
38793
+
38794
+ var CustomLink_component = Object(componentNormalizer["a" /* default */])(
38795
+ component_CustomLinkvue_type_script_lang_js_,
38796
+ CustomLinkvue_type_template_id_01816d01_render,
38797
+ CustomLinkvue_type_template_id_01816d01_staticRenderFns,
38798
+ false,
38799
+ null,
38800
+ null,
38801
+ null
38802
+
38803
+ )
38804
+
38805
+ /* harmony default export */ var CustomLink = (CustomLink_component.exports);
38806
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/upload/src/main.vue?vue&type=script&lang=js&
38807
+
38808
+
38809
+
38810
+
38811
+
38812
+
38813
+
38814
+
38815
+
38816
+
38817
+
38818
+
38819
+
38820
+
38821
+
38822
+ //
38823
+ //
38824
+ //
38825
+ //
38826
+ //
38827
+ //
38828
+ //
38829
+ //
38830
+ //
38831
+ //
38832
+ //
38833
+ //
38834
+ //
38835
+ //
38836
+ //
38837
+ //
38838
+ //
38839
+ //
38840
+ //
38841
+ //
38842
+ //
38843
+ //
38844
+ //
38845
+ //
38846
+ //
38847
+ //
38848
+ //
38849
+ //
38850
+ //
38851
+ //
38852
+ //
38853
+ //
38854
+ //
38855
+ //
38856
+ //
38857
+ //
38858
+ //
38859
+ //
38860
+ //
38861
+ //
38862
+ //
38863
+ //
38864
+ //
38865
+ //
38866
+ //
38867
+ //
38868
+ //
38869
+ //
38870
+ //
38871
+ //
38872
+ //
38873
+ //
38874
+ //
38875
+ //
38876
+ //
38877
+ //
38878
+ //
38879
+
38880
+
38881
+ /* harmony default export */ var mainvue_type_script_lang_js_ = ({
38882
+ name: "HbUpload",
38883
+ componentName: "HbUpload",
38884
+ data: function data() {
38885
+ return {
38886
+ key: Math.random()
38887
+ };
38888
+ },
38889
+ props: {
38890
+ list: {
38891
+ type: Array,
38892
+ default: function _default() {
38893
+ return [];
38894
+ }
38895
+ },
38896
+ editAble: {
38897
+ type: Boolean,
38898
+ default: true
38899
+ },
38900
+ netDisc: {
38901
+ type: Boolean,
38902
+ default: true
38903
+ },
38904
+ link: {
38905
+ type: Boolean,
38906
+ default: true
38907
+ }
38908
+ },
38909
+ methods: {
38910
+ viewFile: function viewFile(item) {
38911
+ if (!item.onlineUrl) {
38912
+ this.$message.error("没有此网盘文件的预览权限!");
38913
+ return;
38914
+ }
38915
+
38916
+ window.open(item.onlineUrl);
38917
+ },
38918
+ downloadFile: function downloadFile(item) {
38919
+ if (!item.downUrl) {
38920
+ this.$message.error("没有此网盘文件的下载权限!");
38921
+ return;
38922
+ }
38923
+
38924
+ var downloadElement = document.createElement("a");
38925
+ downloadElement.href = item.downUrl;
38926
+ downloadElement.download = item.fileName; // 下载后文件名
38927
+
38928
+ document.body.appendChild(downloadElement);
38929
+ downloadElement.click(); // 点击下载
38930
+
38931
+ document.body.removeChild(downloadElement); // 下载完成移除元素
38932
+
38933
+ window.URL.revokeObjectURL(item.downUrl); // 释放掉blob对象
38934
+ },
38935
+ openNetDisc: function openNetDisc() {
38936
+ this.$refs.netDisc.open();
38937
+ },
38938
+ openLink: function openLink() {
38939
+ this.$refs.customLink.open();
38940
+ },
38941
+ openFile: function openFile() {
38942
+ this.$refs.input.click();
38943
+ },
38944
+ chooseFile: function chooseFile(ev) {
38945
+ var _this = this;
38946
+
38947
+ var fileList = Array.from(ev.target.files);
38948
+ console.log(ev);
38949
+ var files = new FormData();
38950
+ fileList.forEach(function (item, index) {
38951
+ files.append("files[".concat(index, "]"), item);
38952
+ });
38953
+ this.$http.post("/sysFiles/uploads", files).then(function (res) {
38954
+ _this.$message.success("上传成功"); //处理返回的数据
38955
+
38956
+
38957
+ var addList = res.map(function (item) {
38958
+ return {
38959
+ fileName: item.fileName,
38960
+ fileType: "1",
38961
+ fileUrl: item.fileUrl,
38962
+ downUrl: item.downUrl,
38963
+ onlineUrl: item.onlineUrl,
38964
+ fileSize: item.fileSize
38965
+ };
38966
+ });
38967
+ addList.forEach(function (item) {
38968
+ _this.list.push(item);
38969
+ });
38970
+ });
38971
+ },
38972
+ addLink: function addLink(data) {
38973
+ this.list.push(data);
38974
+ },
38975
+ addNet: function addNet(arr) {
38976
+ var _this2 = this;
38977
+
38978
+ arr.forEach(function (item) {
38979
+ _this2.list.push(item);
38980
+ });
38981
+ },
38982
+ remove: function remove(index, fileName) {
38983
+ var _this3 = this;
38984
+
38985
+ this.$confirm("\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u9644\u4EF6:".concat(fileName), "提示").then(function () {
38986
+ _this3.list.splice(index, 1);
38987
+ }).catch(function () {});
38988
+ },
38989
+ rerendering: function rerendering() {
38990
+ this.key = Math.random();
38991
+ }
38992
+ },
38993
+ computed: {
38994
+ getSuffix: function getSuffix() {
38995
+ return function (filename) {
38996
+ if (!filename) return "";
38997
+ var arr = filename.split(".");
38998
+
38999
+ if (arr.length === 1) {
39000
+ return "";
39001
+ } else {
39002
+ return "." + arr.pop();
39003
+ }
39004
+ };
39005
+ }
39006
+ },
39007
+ filters: {
39008
+ fileIcon: function fileIcon(isFile, fileType) {
39009
+ var _fileMap$find;
39010
+
39011
+ if (!isFile) {
39012
+ return "icon-color-wenjianjia";
39013
+ }
39014
+
39015
+ var lowerFileType = fileType.toLowerCase();
39016
+ var fileMap = [{
39017
+ suffix: [".jpg", ".jpeg", ".png", ".gif"],
39018
+ icon: "icon-color-JPG"
39019
+ }, {
39020
+ suffix: [".doc", ".docx"],
39021
+ icon: "icon-color-wendang"
39022
+ }, {
39023
+ suffix: [".xls", ".xlsx"],
39024
+ icon: "icon-color-excel"
39025
+ }, {
39026
+ suffix: ".pdf",
39027
+ icon: "icon-color-pdf"
39028
+ }, {
39029
+ suffix: ".txt",
39030
+ icon: "icon-color-txt"
39031
+ }];
39032
+ var iconClass = (_fileMap$find = fileMap.find(function (item) {
39033
+ return typeof item.suffix === "string" ? item.suffix === lowerFileType : item.suffix.includes(lowerFileType);
39034
+ })) === null || _fileMap$find === void 0 ? void 0 : _fileMap$find.icon;
39035
+ return iconClass || "icon-color-qita1";
39036
+ }
39037
+ },
39038
+ components: {
39039
+ NetDisc: NetDisc,
39040
+ CustomLink: CustomLink
39041
+ }
39042
+ });
39043
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue?vue&type=script&lang=js&
39044
+ /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
39045
+ // EXTERNAL MODULE: ./packages/upload/src/main.vue?vue&type=style&index=0&lang=scss&
39046
+ var mainvue_type_style_index_0_lang_scss_ = __webpack_require__("3f11");
39047
+
39048
+ // CONCATENATED MODULE: ./packages/upload/src/main.vue
39049
+
39050
+
39051
+
39052
+
39053
+
39054
+
39055
+ /* normalize component */
39056
+
39057
+ var main_component = Object(componentNormalizer["a" /* default */])(
39058
+ src_mainvue_type_script_lang_js_,
39059
+ render,
39060
+ staticRenderFns,
39061
+ false,
39062
+ null,
39063
+ null,
39064
+ null
39065
+
39066
+ )
39067
+
39068
+ /* harmony default export */ var main = __webpack_exports__["default"] = (main_component.exports);
39069
+
36625
39070
  /***/ }),
36626
39071
 
36627
39072
  /***/ "d39b":
@@ -36652,7 +39097,8 @@ var map = {
36652
39097
  "./table-filter/index.js": "008a",
36653
39098
  "./table/index.js": "4fde",
36654
39099
  "./tool-group/index.js": "bf30",
36655
- "./top-bar/index.js": "da15"
39100
+ "./top-bar/index.js": "da15",
39101
+ "./upload/index.js": "23b3"
36656
39102
  };
36657
39103
 
36658
39104
 
@@ -38116,6 +40562,17 @@ module.exports =
38116
40562
 
38117
40563
  /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
38118
40564
 
40565
+ /***/ }),
40566
+
40567
+ /***/ "dad1":
40568
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
40569
+
40570
+ "use strict";
40571
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NetDisc_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("9cdf");
40572
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NetDisc_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_NetDisc_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
40573
+ /* unused harmony reexport * */
40574
+
40575
+
38119
40576
  /***/ }),
38120
40577
 
38121
40578
  /***/ "dbb4":
@@ -40191,14 +42648,12 @@ var theme_chalk = __webpack_require__("2be4");
40191
42648
 
40192
42649
 
40193
42650
 
40194
- var requireComponents = __webpack_require__("3ad2"); // 代替import进行动态引入,webpack中方法
42651
+ var requireComponents = __webpack_require__("5eca"); // 代替import进行动态引入,webpack中方法
40195
42652
 
40196
42653
 
40197
42654
  var modulesArr = __webpack_require__("d39b"); // 只取二级目录,避免取到内层不符合文件结构的index.js
40198
42655
 
40199
42656
 
40200
- // import "@/assets/iconfont/iconfont.css"; // 之后看情况是否需要打包到项目中 不需要就删掉
40201
- // import "@/assets/css/global.scss"; // 之后看情况是否需要打包到项目中 不需要就删掉
40202
42657
 
40203
42658
  var components = {};
40204
42659