(window["webpackjsonp"] = window["webpackjsonp"] || []).push([[10],{ /***/ 48: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* unused harmony export $url */ /* unused harmony export cleandoubleslashes */ /* unused harmony export createurl */ /* unused harmony export decode */ /* unused harmony export decodepath */ /* unused harmony export decodequerykey */ /* unused harmony export decodequeryvalue */ /* unused harmony export encode */ /* unused harmony export encodehash */ /* unused harmony export encodehost */ /* unused harmony export encodeparam */ /* unused harmony export encodepath */ /* unused harmony export encodequeryitem */ /* unused harmony export encodequerykey */ /* unused harmony export encodequeryvalue */ /* unused harmony export getquery */ /* unused harmony export hasleadingslash */ /* unused harmony export hasprotocol */ /* unused harmony export hastrailingslash */ /* unused harmony export isemptyurl */ /* unused harmony export isequal */ /* unused harmony export isnonemptyurl */ /* unused harmony export isrelative */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return issamepath; }); /* unused harmony export isscriptprotocol */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return joinurl; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return normalizeurl; }); /* unused harmony export parseauth */ /* unused harmony export parsefilename */ /* unused harmony export parsehost */ /* unused harmony export parsepath */ /* unused harmony export parsequery */ /* unused harmony export parseurl */ /* unused harmony export resolveurl */ /* unused harmony export stringifyparsedurl */ /* unused harmony export stringifyquery */ /* unused harmony export withbase */ /* unused harmony export withhttp */ /* unused harmony export withhttps */ /* unused harmony export withleadingslash */ /* unused harmony export withprotocol */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return withquery; }); /* unused harmony export withtrailingslash */ /* unused harmony export withoutbase */ /* unused harmony export withoutleadingslash */ /* unused harmony export withoutprotocol */ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return withouttrailingslash; }); /* harmony import */ var core_js_modules_es_function_name_js__webpack_imported_module_0__ = __webpack_require__(27); /* 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__); /* harmony import */ var core_js_modules_es_array_from_js__webpack_imported_module_1__ = __webpack_require__(62); /* harmony import */ var core_js_modules_es_array_from_js__webpack_imported_module_1___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_from_js__webpack_imported_module_1__); /* harmony import */ var core_js_modules_es_symbol_js__webpack_imported_module_2__ = __webpack_require__(39); /* harmony import */ var core_js_modules_es_symbol_js__webpack_imported_module_2___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_symbol_js__webpack_imported_module_2__); /* harmony import */ var core_js_modules_es_symbol_description_js__webpack_imported_module_3__ = __webpack_require__(54); /* harmony import */ var core_js_modules_es_symbol_description_js__webpack_imported_module_3___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__webpack_imported_module_3__); /* harmony import */ var core_js_modules_es_symbol_iterator_js__webpack_imported_module_4__ = __webpack_require__(75); /* harmony import */ var core_js_modules_es_symbol_iterator_js__webpack_imported_module_4___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__webpack_imported_module_4__); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__webpack_imported_module_5__ = __webpack_require__(77); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__webpack_imported_module_5___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__webpack_imported_module_5__); /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__webpack_imported_module_6__ = __webpack_require__(40); /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__webpack_imported_module_6___default = /*#__pure__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__webpack_imported_module_6__); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__webpack_imported_module_7__ = __webpack_require__(78); /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__webpack_imported_module_7___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__webpack_imported_module_7__); /* harmony import */ var _babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__ = __webpack_require__(30); /* harmony import */ var _babel_runtime_helpers_esm_defineproperty__webpack_imported_module_9__ = __webpack_require__(34); /* harmony import */ var _babel_runtime_helpers_esm_toarray__webpack_imported_module_10__ = __webpack_require__(163); /* harmony import */ var _babel_runtime_helpers_esm_typeof__webpack_imported_module_11__ = __webpack_require__(22); /* harmony import */ var _babel_runtime_helpers_esm_classcallcheck__webpack_imported_module_12__ = __webpack_require__(257); /* harmony import */ var _babel_runtime_helpers_esm_createclass__webpack_imported_module_13__ = __webpack_require__(258); /* harmony import */ var core_js_modules_es_array_join_js__webpack_imported_module_14__ = __webpack_require__(134); /* harmony import */ var core_js_modules_es_array_join_js__webpack_imported_module_14___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_join_js__webpack_imported_module_14__); /* harmony import */ var core_js_modules_es_regexp_exec_js__webpack_imported_module_15__ = __webpack_require__(32); /* harmony import */ var core_js_modules_es_regexp_exec_js__webpack_imported_module_15___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__webpack_imported_module_15__); /* harmony import */ var core_js_modules_es_string_replace_js__webpack_imported_module_16__ = __webpack_require__(79); /* harmony import */ var core_js_modules_es_string_replace_js__webpack_imported_module_16___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_string_replace_js__webpack_imported_module_16__); /* harmony import */ var core_js_modules_es_array_slice_js__webpack_imported_module_17__ = __webpack_require__(64); /* harmony import */ var core_js_modules_es_array_slice_js__webpack_imported_module_17___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_slice_js__webpack_imported_module_17__); /* harmony import */ var core_js_modules_es_string_match_js__webpack_imported_module_18__ = __webpack_require__(330); /* harmony import */ var core_js_modules_es_string_match_js__webpack_imported_module_18___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_string_match_js__webpack_imported_module_18__); /* harmony import */ var core_js_modules_es_array_map_js__webpack_imported_module_19__ = __webpack_require__(66); /* harmony import */ var core_js_modules_es_array_map_js__webpack_imported_module_19___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_map_js__webpack_imported_module_19__); /* harmony import */ var core_js_modules_es_array_concat_js__webpack_imported_module_20__ = __webpack_require__(83); /* harmony import */ var core_js_modules_es_array_concat_js__webpack_imported_module_20___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_concat_js__webpack_imported_module_20__); /* harmony import */ var core_js_modules_es_array_filter_js__webpack_imported_module_21__ = __webpack_require__(47); /* harmony import */ var core_js_modules_es_array_filter_js__webpack_imported_module_21___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_filter_js__webpack_imported_module_21__); /* harmony import */ var core_js_modules_es_object_to_string_js__webpack_imported_module_22__ = __webpack_require__(21); /* harmony import */ var core_js_modules_es_object_to_string_js__webpack_imported_module_22___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__webpack_imported_module_22__); /* harmony import */ var core_js_modules_es_object_keys_js__webpack_imported_module_23__ = __webpack_require__(41); /* harmony import */ var core_js_modules_es_object_keys_js__webpack_imported_module_23___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_object_keys_js__webpack_imported_module_23__); /* harmony import */ var core_js_modules_es_string_search_js__webpack_imported_module_24__ = __webpack_require__(232); /* harmony import */ var core_js_modules_es_string_search_js__webpack_imported_module_24___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_string_search_js__webpack_imported_module_24__); /* harmony import */ var core_js_modules_es_string_iterator_js__webpack_imported_module_25__ = __webpack_require__(55); /* harmony import */ var core_js_modules_es_string_iterator_js__webpack_imported_module_25___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__webpack_imported_module_25__); /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__webpack_imported_module_26__ = __webpack_require__(57); /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__webpack_imported_module_26___default = /*#__pure__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__webpack_imported_module_26__); /* harmony import */ var core_js_modules_web_url_search_params_js__webpack_imported_module_27__ = __webpack_require__(331); /* harmony import */ var core_js_modules_web_url_search_params_js__webpack_imported_module_27___default = /*#__pure__*/__webpack_require__.n(core_js_modules_web_url_search_params_js__webpack_imported_module_27__); /* harmony import */ var core_js_modules_es_string_starts_with_js__webpack_imported_module_28__ = __webpack_require__(231); /* harmony import */ var core_js_modules_es_string_starts_with_js__webpack_imported_module_28___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__webpack_imported_module_28__); /* harmony import */ var core_js_modules_es_string_ends_with_js__webpack_imported_module_29__ = __webpack_require__(334); /* harmony import */ var core_js_modules_es_string_ends_with_js__webpack_imported_module_29___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_string_ends_with_js__webpack_imported_module_29__); /* harmony import */ var core_js_modules_es_regexp_to_string_js__webpack_imported_module_30__ = __webpack_require__(44); /* harmony import */ var core_js_modules_es_regexp_to_string_js__webpack_imported_module_30___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__webpack_imported_module_30__); /* harmony import */ var core_js_modules_es_array_splice_js__webpack_imported_module_31__ = __webpack_require__(190); /* harmony import */ var core_js_modules_es_array_splice_js__webpack_imported_module_31___default = /*#__pure__*/__webpack_require__.n(core_js_modules_es_array_splice_js__webpack_imported_module_31__); function ownkeys(e, r) { var t = object.keys(e); if (object.getownpropertysymbols) { var o = object.getownpropertysymbols(e); r && (o = o.filter(function (r) { return object.getownpropertydescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; } function _objectspread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownkeys(object(t), !0).foreach(function (r) { object(_babel_runtime_helpers_esm_defineproperty__webpack_imported_module_9__[/* default */ "a"])(e, r, t[r]); }) : object.getownpropertydescriptors ? object.defineproperties(e, object.getownpropertydescriptors(t)) : ownkeys(object(t)).foreach(function (r) { object.defineproperty(e, r, object.getownpropertydescriptor(t, r)); }); } return e; } function _createforofiteratorhelper(o, allowarraylike) { var it = typeof symbol !== "undefined" && o[symbol.iterator] || o["@@iterator"]; if (!it) { if (array.isarray(o) || (it = _unsupportediterabletoarray(o)) || allowarraylike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var f = function f() {}; return { s: f, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: f }; } throw new typeerror("invalid attempt to iterate non-iterable instance.\nin order to be iterable, non-array objects must have a [symbol.iterator]() method."); } var normalcompletion = true, diderr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalcompletion = step.done; return step; }, e: function e(_e2) { diderr = true; err = _e2; }, f: function f() { try { if (!normalcompletion && it.return != null) it.return(); } finally { if (diderr) throw err; } } }; } function _unsupportediterabletoarray(o, minlen) { if (!o) return; if (typeof o === "string") return _arrayliketoarray(o, minlen); var n = object.prototype.tostring.call(o).slice(8, -1); if (n === "object" && o.constructor) n = o.constructor.name; if (n === "map" || n === "set") return array.from(o); if (n === "arguments" || /^(?:ui|i)nt(?:8|16|32)(?:clamped)?array$/.test(n)) return _arrayliketoarray(o, minlen); } function _arrayliketoarray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } var n = /[^\0-\x7e]/; var t = /[\x2e\u3002\uff0e\uff61]/g; var o = { overflow: "overflow error", "not-basic": "illegal input", "invalid-input": "invalid input" }; var e = math.floor; var r = string.fromcharcode; function s(n2) { throw new rangeerror(o[n2]); } var c = function c(n2, t2) { return n2 + 22 + 75 * (n2 < 26) - ((t2 != 0) << 5); }; var u = function u(n2, t2, o2) { var r2 = 0; for (n2 = o2 ? e(n2 / 700) : n2 >> 1, n2 += e(n2 / t2); n2 > 455; r2 += 36) { n2 = e(n2 / 35); } return e(r2 + 36 * n2 / (n2 + 38)); }; function toascii(o2) { return function (n2, o3) { var e2 = n2.split("@"); var r2 = ""; e2.length > 1 && (r2 = e2[0] + "@", n2 = e2[1]); var s2 = function (n3, t2) { var o4 = []; var e3 = n3.length; for (; e3--;) { o4[e3] = t2(n3[e3]); } return o4; }((n2 = n2.replace(t, ".")).split("."), o3).join("."); return r2 + s2; }(o2, function (t2) { return n.test(t2) ? "xn--" + function (n2) { var t3 = []; var o3 = (n2 = function (n3) { var t4 = []; var o4 = 0; var e2 = n3.length; for (; o4 < e2;) { var r2 = n3.charcodeat(o4++); if (r2 >= 55296 && r2 <= 56319 && o4 < e2) { var e3 = n3.charcodeat(o4++); (64512 & e3) == 56320 ? t4.push(((1023 & r2) << 10) + (1023 & e3) + 65536) : (t4.push(r2), o4--); } else { t4.push(r2); } } return t4; }(n2)).length; var f = 128; var i = 0; var l = 72; var _iterator = _createforofiteratorhelper(n2), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var _o = _step.value; _o < 128 && t3.push(r(_o)); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var h = t3.length; var p = h; for (h && t3.push("-"); p < o3;) { var o4 = 2147483647; var _iterator2 = _createforofiteratorhelper(n2), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var t4 = _step2.value; t4 >= f && t4 < o4 && (o4 = t4); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } var a = p + 1; o4 - f > e((2147483647 - i) / a) && s("overflow"), i += (o4 - f) * a, f = o4; var _iterator3 = _createforofiteratorhelper(n2), _step3; try { for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) { var o5 = _step3.value; if (o5 < f && ++i > 2147483647 && s("overflow"), o5 == f) { var n3 = i; for (var o6 = 36;; o6 += 36) { var s2 = o6 <= l ? 1 : o6 >= l + 26 ? 26 : o6 - l; if (n3 < s2) { break; } var u2 = n3 - s2; var f2 = 36 - s2; t3.push(r(c(s2 + u2 % f2, 0))), n3 = e(u2 / f2); } t3.push(r(c(n3, 0))), l = u(i, a, p == h), i = 0, ++p; } } } catch (err) { _iterator3.e(err); } finally { _iterator3.f(); } ++i, ++f; } return t3.join(""); }(t2) : t2; }); } var hash_re = /#/g; var ampersand_re = /&/g; var slash_re = /\//g; var equal_re = /=/g; var im_re = /\?/g; var plus_re = /\+/g; var enc_caret_re = /%5e/gi; var enc_backtick_re = /%60/gi; var enc_curly_open_re = /%7b/gi; var enc_pipe_re = /%7c/gi; var enc_curly_close_re = /%7d/gi; var enc_space_re = /%20/gi; var enc_slash_re = /%2f/gi; var enc_enc_slash_re = /%252f/gi; function encode(text) { return encodeuri("" + text).replace(enc_pipe_re, "|"); } function encodehash(text) { return encode(text).replace(enc_curly_open_re, "{").replace(enc_curly_close_re, "}").replace(enc_caret_re, "^"); } function encodequeryvalue(input) { return encode(typeof input === "string" ? input : json.stringify(input)).replace(plus_re, "%2b").replace(enc_space_re, "+").replace(hash_re, "%23").replace(ampersand_re, "%26").replace(enc_backtick_re, "`").replace(enc_caret_re, "^"); } function encodequerykey(text) { return encodequeryvalue(text).replace(equal_re, "%3d"); } function encodepath(text) { return encode(text).replace(hash_re, "%23").replace(im_re, "%3f").replace(enc_enc_slash_re, "%2f").replace(ampersand_re, "%26").replace(plus_re, "%2b"); } function encodeparam(text) { return encodepath(text).replace(slash_re, "%2f"); } function decode() { var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; try { return decodeuricomponent("" + text); } catch (_unused) { return "" + text; } } function decodepath(text) { return decode(text.replace(enc_slash_re, "%252f")); } function decodequerykey(text) { return decode(text.replace(plus_re, " ")); } function decodequeryvalue(text) { return decode(text.replace(plus_re, " ")); } function encodehost() { var name = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; return toascii(name); } function parsequery() { var parametersstring = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var object = {}; if (parametersstring[0] === "?") { parametersstring = parametersstring.slice(1); } var _iterator4 = _createforofiteratorhelper(parametersstring.split("&")), _step4; try { for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) { var parameter = _step4.value; var _s = parameter.match(/([^=]+)=?(.*)/) || []; if (_s.length < 2) { continue; } var key = decodequerykey(_s[1]); if (key === "__proto__" || key === "constructor") { continue; } var value = decodequeryvalue(_s[2] || ""); if (object[key] === void 0) { object[key] = value; } else if (array.isarray(object[key])) { object[key].push(value); } else { object[key] = [object[key], value]; } } } catch (err) { _iterator4.e(err); } finally { _iterator4.f(); } return object; } function encodequeryitem(key, value) { if (typeof value === "number" || typeof value === "boolean") { value = string(value); } if (!value) { return encodequerykey(key); } if (array.isarray(value)) { return value.map(function (_value) { return "".concat(encodequerykey(key), "=").concat(encodequeryvalue(_value)); }).join("&"); } return "".concat(encodequerykey(key), "=").concat(encodequeryvalue(value)); } function stringifyquery(query) { return object.keys(query).filter(function (k) { return query[k] !== void 0; }).map(function (k) { return encodequeryitem(k, query[k]); }).filter(boolean).join("&"); } var $url = /*#__pure__*/function () { function $url() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; object(_babel_runtime_helpers_esm_classcallcheck__webpack_imported_module_12__[/* default */ "a"])(this, $url); this.query = {}; if (typeof input !== "string") { throw new typeerror("url input should be string received ".concat(object(_babel_runtime_helpers_esm_typeof__webpack_imported_module_11__[/* default */ "a"])(input), " (").concat(input, ")")); } var parsed = parseurl(input); this.protocol = decode(parsed.protocol); this.host = decode(parsed.host); this.auth = decode(parsed.auth); this.pathname = decodepath(parsed.pathname); this.query = parsequery(parsed.search); this.hash = decode(parsed.hash); } object(_babel_runtime_helpers_esm_createclass__webpack_imported_module_13__[/* default */ "a"])($url, [{ key: "hostname", get: function get() { return parsehost(this.host).hostname; } }, { key: "port", get: function get() { return parsehost(this.host).port || ""; } }, { key: "username", get: function get() { return parseauth(this.auth).username; } }, { key: "password", get: function get() { return parseauth(this.auth).password || ""; } }, { key: "hasprotocol", get: function get() { return this.protocol.length; } }, { key: "isabsolute", get: function get() { return this.hasprotocol || this.pathname[0] === "/"; } }, { key: "search", get: function get() { var q = stringifyquery(this.query); return q.length > 0 ? "?" + q : ""; } }, { key: "searchparams", get: function get() { var p = new urlsearchparams(); for (var name in this.query) { var value = this.query[name]; if (array.isarray(value)) { var _iterator5 = _createforofiteratorhelper(value), _step5; try { for (_iterator5.s(); !(_step5 = _iterator5.n()).done;) { var v = _step5.value; p.append(name, v); } } catch (err) { _iterator5.e(err); } finally { _iterator5.f(); } } else { p.append(name, typeof value === "string" ? value : json.stringify(value)); } } return p; } }, { key: "origin", get: function get() { return (this.protocol ? this.protocol + "//" : "") + encodehost(this.host); } }, { key: "fullpath", get: function get() { return encodepath(this.pathname) + this.search + encodehash(this.hash); } }, { key: "encodedauth", get: function get() { if (!this.auth) { return ""; } var _parseauth = parseauth(this.auth), username = _parseauth.username, password = _parseauth.password; return encodeuricomponent(username) + (password ? ":" + encodeuricomponent(password) : ""); } }, { key: "href", get: function get() { var auth = this.encodedauth; var originwithauth = (this.protocol ? this.protocol + "//" : "") + (auth ? auth + "@" : "") + encodehost(this.host); return this.hasprotocol && this.isabsolute ? originwithauth + this.fullpath : this.fullpath; } }, { key: "append", value: function append(url) { if (url.hasprotocol) { throw new error("cannot append a url with protocol"); } object.assign(this.query, url.query); if (url.pathname) { this.pathname = withtrailingslash(this.pathname) + withoutleadingslash(url.pathname); } if (url.hash) { this.hash = url.hash; } } }, { key: "tojson", value: function tojson() { return this.href; } }, { key: "tostring", value: function tostring() { return this.href; } }]); return $url; }(); function isrelative(inputstring) { return ["./", "../"].some(function (string_) { return inputstring.startswith(string_); }); } var protocol_strict_regex = /^[\s\w\0+.-]{2,}:([/\\]{1,2})/; var protocol_regex = /^[\s\w\0+.-]{2,}:([/\\]{2})?/; var protocol_relative_regex = /^([/\\]\s*){2,}[^/\\]/; function hasprotocol(inputstring) { var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; if (typeof opts === "boolean") { opts = { acceptrelative: opts }; } if (opts.strict) { return protocol_strict_regex.test(inputstring); } return protocol_regex.test(inputstring) || (opts.acceptrelative ? protocol_relative_regex.test(inputstring) : false); } var protocol_script_re = /^[\s\0]*(blob|data|javascript|vbscript):$/; function isscriptprotocol(protocol) { return !!protocol && protocol_script_re.test(protocol); } var trailing_slash_re = /\/$|\/\?/; function hastrailingslash() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var queryparameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (!queryparameters) { return input.endswith("/"); } return trailing_slash_re.test(input); } function withouttrailingslash() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var queryparameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (!queryparameters) { return (hastrailingslash(input) ? input.slice(0, -1) : input) || "/"; } if (!hastrailingslash(input, true)) { return input || "/"; } var _input$split = input.split("?"), _input$split2 = object(_babel_runtime_helpers_esm_toarray__webpack_imported_module_10__[/* default */ "a"])(_input$split), s0 = _input$split2[0], s = _input$split2.slice(1); return (s0.slice(0, -1) || "/") + (s.length > 0 ? "?".concat(s.join("?")) : ""); } function withtrailingslash() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var queryparameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; if (!queryparameters) { return input.endswith("/") ? input : input + "/"; } if (hastrailingslash(input, true)) { return input || "/"; } var _input$split3 = input.split("?"), _input$split4 = object(_babel_runtime_helpers_esm_toarray__webpack_imported_module_10__[/* default */ "a"])(_input$split3), s0 = _input$split4[0], s = _input$split4.slice(1); return s0 + "/" + (s.length > 0 ? "?".concat(s.join("?")) : ""); } function hasleadingslash() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; return input.startswith("/"); } function withoutleadingslash() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; return (hasleadingslash(input) ? input.slice(1) : input) || "/"; } function withleadingslash() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; return hasleadingslash(input) ? input : "/" + input; } function cleandoubleslashes() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; return input.split("://").map(function (string_) { return string_.replace(/\/{2,}/g, "/"); }).join("://"); } function withbase(input, base) { if (isemptyurl(base) || hasprotocol(input)) { return input; } var _base = withouttrailingslash(base); if (input.startswith(_base)) { return input; } return joinurl(_base, input); } function withoutbase(input, base) { if (isemptyurl(base)) { return input; } var _base = withouttrailingslash(base); if (!input.startswith(_base)) { return input; } var trimmed = input.slice(_base.length); return trimmed[0] === "/" ? trimmed : "/" + trimmed; } function withquery(input, query) { var parsed = parseurl(input); var mergedquery = _objectspread(_objectspread({}, parsequery(parsed.search)), query); parsed.search = stringifyquery(mergedquery); return stringifyparsedurl(parsed); } function getquery(input) { return parsequery(parseurl(input).search); } function isemptyurl(url) { return !url || url === "/"; } function isnonemptyurl(url) { return url && url !== "/"; } var join_leading_slash_re = /^\.?\//; function joinurl(base) { var url = base || ""; for (var _len = arguments.length, input = new array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { input[_key - 1] = arguments[_key]; } var _iterator6 = _createforofiteratorhelper(input.filter(function (url2) { return isnonemptyurl(url2); })), _step6; try { for (_iterator6.s(); !(_step6 = _iterator6.n()).done;) { var segment = _step6.value; if (url) { var _segment = segment.replace(join_leading_slash_re, ""); url = withtrailingslash(url) + _segment; } else { url = segment; } } } catch (err) { _iterator6.e(err); } finally { _iterator6.f(); } return url; } function withhttp(input) { return withprotocol(input, "http://"); } function withhttps(input) { return withprotocol(input, "https://"); } function withoutprotocol(input) { return withprotocol(input, ""); } function withprotocol(input, protocol) { var match = input.match(protocol_regex); if (!match) { return protocol + input; } return protocol + input.slice(match[0].length); } function createurl(input) { return new $url(input); } function normalizeurl(input) { return createurl(input).tostring(); } function resolveurl(base) { var url = createurl(base); for (var _len2 = arguments.length, input = new array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { input[_key2 - 1] = arguments[_key2]; } var _iterator7 = _createforofiteratorhelper(input.filter(function (url2) { return isnonemptyurl(url2); })), _step7; try { for (_iterator7.s(); !(_step7 = _iterator7.n()).done;) { var index = _step7.value; url.append(createurl(index)); } } catch (err) { _iterator7.e(err); } finally { _iterator7.f(); } return url.tostring(); } function issamepath(p1, p2) { return decode(withouttrailingslash(p1)) === decode(withouttrailingslash(p2)); } function isequal(a, b) { var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; if (!options.trailingslash) { a = withtrailingslash(a); b = withtrailingslash(b); } if (!options.leadingslash) { a = withleadingslash(a); b = withleadingslash(b); } if (!options.encoding) { a = decode(a); b = decode(b); } return a === b; } function parseurl() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var defaultproto = arguments.length > 1 ? arguments[1] : undefined; var _specialprotomatch = input.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/); if (_specialprotomatch) { var _specialprotomatch2 = object(_babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__[/* default */ "a"])(_specialprotomatch, 3), _proto = _specialprotomatch2[1], _specialprotomatch2$ = _specialprotomatch2[2], _pathname = _specialprotomatch2$ === void 0 ? "" : _specialprotomatch2$; return { protocol: _proto, pathname: _pathname, href: _proto + _pathname, auth: "", host: "", search: "", hash: "" }; } if (!hasprotocol(input, { acceptrelative: true })) { return defaultproto ? parseurl(defaultproto + input) : parsepath(input); } var _ref = input.replace(/\\/g, "/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/) || [], _ref2 = object(_babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__[/* default */ "a"])(_ref, 4), _ref2$ = _ref2[1], protocol = _ref2$ === void 0 ? "" : _ref2$, auth = _ref2[2], _ref2$2 = _ref2[3], hostandpath = _ref2$2 === void 0 ? "" : _ref2$2; var _ref3 = hostandpath.match(/([^#/?]*)(.*)?/) || [], _ref4 = object(_babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__[/* default */ "a"])(_ref3, 3), _ref4$ = _ref4[1], host = _ref4$ === void 0 ? "" : _ref4$, _ref4$2 = _ref4[2], path = _ref4$2 === void 0 ? "" : _ref4$2; var _parsepath = parsepath(path.replace(/\/(?=[a-za-z]:)/, "")), pathname = _parsepath.pathname, search = _parsepath.search, hash = _parsepath.hash; return { protocol: protocol, auth: auth ? auth.slice(0, math.max(0, auth.length - 1)) : "", host: host, pathname: pathname, search: search, hash: hash }; } function parsepath() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var _splice = (input.match(/([^#?]*)(\?[^#]*)?(#.*)?/) || []).splice(1), _splice2 = object(_babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__[/* default */ "a"])(_splice, 3), _splice2$ = _splice2[0], pathname = _splice2$ === void 0 ? "" : _splice2$, _splice2$2 = _splice2[1], search = _splice2$2 === void 0 ? "" : _splice2$2, _splice2$3 = _splice2[2], hash = _splice2$3 === void 0 ? "" : _splice2$3; return { pathname: pathname, search: search, hash: hash }; } function parseauth() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var _input$split5 = input.split(":"), _input$split6 = object(_babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__[/* default */ "a"])(_input$split5, 2), username = _input$split6[0], password = _input$split6[1]; return { username: decode(username), password: decode(password) }; } function parsehost() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var _splice3 = (input.match(/([^/:]*):?(\d+)?/) || []).splice(1), _splice4 = object(_babel_runtime_helpers_esm_slicedtoarray__webpack_imported_module_8__[/* default */ "a"])(_splice3, 2), hostname = _splice4[0], port = _splice4[1]; return { hostname: decode(hostname), port: port }; } function stringifyparsedurl(parsed) { var pathname = parsed.pathname || ""; var search = parsed.search ? (parsed.search.startswith("?") ? "" : "?") + parsed.search : ""; var hash = parsed.hash || ""; var auth = parsed.auth ? parsed.auth + "@" : ""; var host = parsed.host || ""; var proto = parsed.protocol ? parsed.protocol + "//" : ""; return proto + auth + host + pathname + search + hash; } var filename_strict_regex = /\/([^/]+\.[^/]+)$/; var filename_regex = /\/([^/]+)$/; function parsefilename() { var input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : ""; var _ref5 = arguments.length > 1 ? arguments[1] : undefined, strict = _ref5.strict; var _parseurl = parseurl(input), pathname = _parseurl.pathname; var matches = strict ? pathname.match(filename_strict_regex) : pathname.match(filename_regex); return matches ? matches[1] : void 0; } /***/ }) }]);